Remove more shifts for sign/zero extension
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d8edc8b7
PW
12019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2
3 * NEWS: Document -raw-values option and the related setting commands.
4 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
5 only set it on when /r is given.
6 * valprint.c (value_print_option_defs): New element raw-values.
7 * Makefile.in: Add the new file.
8
cb511130
CB
92019-12-10 Christian Biesinger <cbiesinger@google.com>
10
11 * gdbsupport/safe-strerror.c: Supress the unused function warning
12 for select_strerror_r.
13
ab7d13f0
CB
142019-12-10 Christian Biesinger <cbiesinger@google.com>
15
16 * config.in: Regenerate.
17 * configure: Regenerate.
18 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
19 safe_strerror instead of strerror.
20 * gdbsupport/common.m4: Don't check for strerror.
21 * gdbsupport/safe-strerror.c: Support both the glibc version
22 of strerror_r and the XSI version.
23
6c71eb7d
TT
242019-12-10 Tom Tromey <tromey@adacore.com>
25
26 * ada-typeprint.c (print_choices): Use a single "?".
27 (print_variant_part): Print "?" if the discriminant name
28 is not known.
29
bac7c5cf
GB
302019-12-10 George Barrett <bob@bob131.so>
31
32 Fix scripted probe breakpoints.
33 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
34 declaration forward.
35 (breakpoint_ops_for_event_location_type)
36 (breakpoint_ops_for_event_location): Add function definitions.
37 (break_command_1, trace_command): Use
38 breakpoint_ops_for_event_location.
39 * breakpoint.h (breakpoint_ops_for_event_location): Add function
40 declarations.
41 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
42 breakpoint_ops_for_event_location.
43 * python/py-breakpoint.c (bppy_init): Use
44 breakpoint_ops_for_event_location.
45
330f1d38
TBA
462019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
47
48 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
49 when ranking an lvalue argument for an rvalue parameter.
50
b1f0c0b9
WA
512019-12-08 Wataru Ashihara <wataash@wataash.com>
52
53 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
54 template argument for scoped_restore_tmpl from bool to int.
55
aa2d5a42
KS
562019-12-07 Keith Seitz <keiths@redhat.com>
57
58 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
59 (build_id_to_debug_bfd): Make static, rewriting to use
60 build_id_to_bfd_suffix.
61 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
62 adding `suffix' parameter. Append SUFFIX to file names
63 when searching for matching files.
64 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
65 (build_id_to_exec_bfd): Likewise.
66 * build-id.h (build_id_to_debug_bfd): Clarify that function
67 searches for BFD of debug info file.
68 (build_id_to_exec_bfd): Declare.
69 * corelow.c: Include build-id.h.
70 (locate_exec_from_corefile_build_id): New function.
71 (core_target_open): If no executable BFD is found,
72 search for a core file BFD using build-id.
73
dfb65191
CB
742019-12-06 Christian Biesinger <cbiesinger@google.com>
75
76 * bcache.c: Put in namespace gdb.
77 * bcache.h: Likewise.
78 * gdbtypes.c (check_types_worklist): Update.
79 (types_deeply_equal): Update.
80 * macrotab.c (struct macro_table) <bcache>: Update.
81 (new_macro_table): Update.
82 * macrotab.h (struct bcache): Put this forward declaration
83 inside namespace gdb.
84 (new_macro_table): Update.
85 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
86 Update.
87 <macro_cache>: Update.
88 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
89
93e55f0a
TV
902019-12-06 Tom de Vries <tdevries@suse.de>
91
92 PR symtab/24971
93 * block.c (best_symbol, better_symbol): New function.
94 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
95 decl.
96
06acc08f
TBA
972019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
98
99 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
100 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
101 for ranking see-through reference cases.
102
e0fad1ea
PW
1032019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
104 * stack.c (faas_command): Check a command is provided.
105 * thread.c (taas_command, tfaas_command): Likewise.
106
908641f5
PW
1072019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
108 * inferior.c (prune_inferiors): Only call delete_inferior,
109 Do not modify the inferior list.
110
b858499d
SM
1112019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
112
113 * c-exp.y: Update calls to lookup_typename,
114 lookup_signed_typename and lookup_unsigned_typename.
115 * c-lang.c (evaluate_subexp_c): Likewise.
116 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
117 Likewise.
118 * eval.c (binop_promote): Likewise.
119 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
120 (lookup_unsigned_typename): Likewise.
121 (lookup_signed_typename): Likewise.
122 * gdbtypes.h (lookup_unsigned_typename): Likewise.
123 (lookup_signed_typename): Likewise.
124 (lookup_typename): Likewise.
125 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
126 lookup_typename, lookup_signed_typename,
127 lookup_unsigned_typename.
128 * m2-exp.y: Likewise.
129 * printcmd.c (printf_wide_c_string): Likewise.
130 (ui_printf): Likewise.
131 * python/py-type.c (typy_lookup_typename): Likewise.
132 * python/py-xmethods.c (python_xmethod_worker::invoke):
133 Likewise.
134 * rust-exp.y: Likewise.
135
3a8fa228
CB
1362019-12-04 Christian Biesinger <cbiesinger@google.com>
137
138 * configure.nat (obsd64): Add missing files x86-nat.o and
139 nat/x86-dregs.o.
140
2dbc041e
TT
1412019-12-04 Tom Tromey <tom@tromey.com>
142
143 * valprint.c (val_print_string): Use metadata_style.
144 * go-valprint.c (print_go_string): Use metadata style.
145 * p-valprint.c (pascal_object_print_static_field): Use metadata
146 style.
147 * cp-valprint.c (cp_print_static_field): Use metadata style.
148
36c8fb93
AB
1492019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
150 Chris January <chris.january@arm.com>
151
152 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
153 tokens.
154 (typebase): New patterns for complex, single/double precision, and
155 single/double complex.
156 (f77_keywords): Change token for complex keyword, and add single,
157 double, and precision keywords.
158
c6170c2c
SM
1592019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
160
161 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
162 "info io_registers".
163
894ecaf4
SM
1642019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
165
166 * regcache.c (cooked_read_test): Initialize thread list of
167 mock_inferior.
168
be155ebb
SM
1692019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
170
171 * aarch64-linux-tdep.c: Remove includes.
172
c577cdd7
SM
1732019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
174
175 * aarch64-tdep.c: Remove includes.
176
610cfd61
SM
1772019-12-04 Simon Marchi <simon.marchi@efficios.com>
178
179 * filtered-iterator.h (filtered_iterator) <operator==,
180 operator!=>: Compare wrapped iterators, not wrapped pointers.
181 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
182 unittests/filtered_iterator-selftests.c.
183 * unittests/filtered_iterator-selftests.c: New file.
184
a05cf17a
TT
1852019-12-04 Tom Tromey <tromey@adacore.com>
186
187 * gdbtypes.c (create_range_type): Inherit endianity
188 from base type.
189
d5a22e77
TT
1902019-12-04 Tom Tromey <tromey@adacore.com>
191
192 * ada-lang.c (decode_constrained_packed_array)
193 (ada_value_assign, value_assign_to_component): Update.
194 * dwarf2loc.c (rw_pieced_value, access_memory)
195 (dwarf2_compile_expr_to_ax): Update.
196 * dwarf2read.c (dwarf2_add_field): Update.
197 * eval.c (evaluate_subexp_standard): Update.
198 * gdbarch.c, gdbarch.h: Rebuild.
199 * gdbarch.sh (bits_big_endian): Remove.
200 * gdbtypes.h (union field_location): Update comment.
201 * target-descriptions.c (make_gdb_type): Update.
202 * valarith.c (value_bit_index): Update.
203 * value.c (struct value) <bitpos>: Update comment.
204 (unpack_bits_as_long, modify_field): Update.
205 * value.h (value_bitpos): Update comment.
206
7ab4a236
TT
2072019-12-04 Tom Tromey <tromey@adacore.com>
208
209 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
210 endian-ness.
211
103a685e
TT
2122019-12-04 Tom Tromey <tromey@adacore.com>
213
214 * dwarf2read.c (dwarf2_init_float_type)
215 (dwarf2_init_complex_target_type): Add byte_order parameter.
216 (read_base_type): Compute byte order earlier.
217 * gdbtypes.c (init_float_type): Add byte_order parameter.
218 * gdbtypes.h (init_float_type): Add byte_order parameter.
219
7a9e9f9f
TT
2202019-12-04 Tom Tromey <tromey@adacore.com>
221
222 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
223
feee869b
TT
2242019-12-04 Tom Tromey <tromey@adacore.com>
225
226 * dwarf2read.c (process_structure_scope): Initialize
227 "discr_offset".
228
c2512106
AB
2292019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
230
231 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
232 add it into the search spec.
233 (parse_max_results_option): New function.
234 (mi_info_functions_or_variables): Parse -max-results flag and pass
235 it to mi_symbol_info.
236 (mi_cmd_symbol_info_modules): Likewise.
237 (mi_cmd_symbol_info_types): Likewise.
238 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
239 return type to bool, change result container into a set, and don't
240 add new results if we have enough already.
241 (global_symbol_searcher::add_matching_msymbols): Change return
242 type to bool, and don't add new results if we have enough already.
243 (sort_search_symbols_remove_dups): Delete.
244 (global_symbol_searcher::search): Early exit from search loop when
245 we have enough results. Use a std::set to collect the results
246 from calling add_matching_symbols.
247 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
248 member function.
249 (global_symbol_searcher) <m_max_search_results>: New member
250 variable.
251 (global_symbol_searcher) <add_matching_symbols>: Update header
252 comment and change return type to bool.
253 (global_symbol_searcher) <add_matching_msymbols>: Update header
254 comment and change return type to bool.
255
f97a63c5
AB
2562019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
257
258 * symtab.c (symbol_search::compare_search_syms): Update header
259 comment.
260 (global_symbol_searcher::is_suitable_msymbol): New function.
261 (global_symbol_searcher::expand_symtabs): New function.
262 (global_symbol_searcher::add_matching_symbols): New function.
263 (global_symbol_searcher::add_matching_msymbols): New function.
264 (global_symbol_searcher::search): Move most of the content
265 into the new functions above, and call them as needed.
266 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
267 function.
268 (global_symbol_searcher) <add_matching_symbols>: New member
269 function.
270 (global_symbol_searcher) <add_matching_msymbols>: New member
271 function.
272 (global_symbol_searcher) <is_suitable_msymbol>: New member
273 function.
274
293b38d6
AB
2752019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
276
277 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
278 -symbol-info-module-variables entries.
279 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
280 (mi_cmd_symbol_info_module_variables): Declare.
281 * mi/mi-symbol-cmds.c
282 (module_symbol_search_iterator): New typedef.
283 (output_module_symbols_in_single_module_and_file): New function.
284 (output_module_symbols_in_single_module): New function.
285 (mi_info_module_functions_or_variables): New function.
286 (mi_cmd_symbol_info_module_functions): New function.
287 (mi_cmd_symbol_info_module_variables): New function.
288 * NEWS: Mention new MI command.
289
4cbd39b2
CB
2902019-12-03 Christian Biesinger <cbiesinger@google.com>
291
292 * bcache.c (hash): Remove.
293 (hash_continue): Remove.
294 * bcache.h (hash): Remove.
295 (hash_continue): Remove.
296 (struct bcache) <ctor>: Update.
297 * psymtab.c (psymbol_hash): Update.
298 * stabsread.c (hashname): Update.
299 * utils.h (fast_hash): Add an argument for a start value,
300 defaulting to zero.
301
82f910ea
PW
3022019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
303 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
304 (destroy_block_symbol_cache): New function.
305 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
306 (resize_symbol_cache): Likewise.
307
de2396d0
TT
3082019-12-02 Tom Tromey <tom@tromey.com>
309
310 * unittests/tui-selftests.c (run_tests): Make conditional.
311 (_initialize_tui_selftest): Make conditional.
312
638d85bc
CB
3132019-12-02 Christian Biesinger <cbiesinger@google.com>
314
315 * aix-thread.c (debug_aix_thread): Change type to bool.
316
7532a164
LM
3172019-12-02 Luis Machado <luis.machado@linaro.org>
318
319 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
320
216a7e6b
AB
3212019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
322
323 * dwarf2read.c (read_tag_string_type): Read the fields required to
324 make a dynamic string, and possibly create a dynamic range for the
325 string.
326 (attr_to_dynamic_prop): Setup is_reference based on the type of
327 attribute being processed.
328 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
329 (resolve_dynamic_array): Rename to...
330 (resolve_dynamic_array_or_string): ...this, update header comment,
331 and accept TYPE_CODE_STRING.
332 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
333
11a8b164
AB
3342019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
335
336 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
337 of its implementation from...
338 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
339 the new function.
340
5bbd8269
AB
3412019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
342
343 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
344 create a range with stride where appropriate.
345 * f-valprint.c: Include 'gdbarch.h'.
346 (f77_print_array_1): Take the stride into account when walking the
347 array. Also convert the stride into addressable units.
348 * gdbtypes.c (create_range_type): Initialise the stride to
349 constant zero.
350 (create_range_type_with_stride): New function, initialise the
351 range as normal, and then setup the stride.
352 (has_static_range): Include the stride here. Also change the
353 return type to bool.
354 (create_array_type_with_stride): Consider the range stride if the
355 array isn't given its own stride.
356 (resolve_dynamic_range): Resolve the stride if needed.
357 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
358 (struct range_bounds) <flag_is_byte_stride>: New member variable.
359 (TYPE_BIT_STRIDE): Define.
360 (TYPE_ARRAY_BIT_STRIDE): Define.
361 (create_range_type_with_stride): Declare.
362 * valarith.c (value_subscripted_rvalue): Take range stride into
363 account when walking the array.
364
82e3b564
TT
3652019-12-01 Tom Tromey <tom@tromey.com>
366
367 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
368 specially.
369
517d261d
TT
3702019-12-01 Tom Tromey <tom@tromey.com>
371
372 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
373 \0.
374 * unittests/tui-selftests.c: New file.
375 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
376
484c9b64
TT
3772019-12-01 Tom Tromey <tom@tromey.com>
378
379 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
380
a2a7af0c
TT
3812019-12-01 Tom Tromey <tom@tromey.com>
382
383 * NEWS: Document new settings.
384 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
385 * tui/tui-win.c (_initialize_tui_win): Add border style
386 observers.
387 * tui/tui-io.h (tui_apply_style): Declare.
388 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
389 longer static.
390 (apply_ansi_escape, tui_set_reverse_mode): Update.
391 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
392 Add "skip_intensity" parameter.
393 <changed>: New member.
394 <do_set_value>: Declare.
395 (tui_border_style, tui_active_border_style): Declare.
396 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
397 globals.
398 (cli_style_option): Initialize "changed".
399 (cli_style_option::do_set_value): New function.
400 (cli_style_option::add_setshow_commands): Add "skip_intensity"
401 parameter. Update.
402 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
403 (_initialize_cli_style): Update. Create TUI border style
404 commands.
405
d1da6b01
TT
4062019-12-01 Tom Tromey <tom@tromey.com>
407
408 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
409 parameter.
410 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
411 parameter.
412 * tui/tui-win.h (compact_source): Declare.
413 * tui/tui-win.c (compact_source): New global.
414 (tui_set_compact_source, tui_show_compact_source): New functions.
415 (_initialize_tui_win): Add "compact-source" setting.
416 * tui/tui-source.c (tui_source_window::set_contents): Handle
417 compact_source setting.
418 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
419 * NEWS: Document new setting.
420
489dbda6
TT
4212019-11-30 Tom Tromey <tom@tromey.com>
422
423 * dwarf2read.c (dwarf2_add_field): Include field offset when
424 computing variant part length.
425
bf498525
PW
4262019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
427 * NEWS: Mention define-prefix. Tell that command names can now
428 contain a . character.
429
be09caf1
PW
4302019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
431
432 * command.h (valid_cmd_char_p): Declare.
433 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
434 the check of valid command char.
435 (find_command_name_length, valid_user_defined_cmd_name_p): Use
436 valid_cmd_char_p.
437 * cli/cli-script.c (validate_comname): Likewise.
438 * completer.c (gdb_completer_command_word_break_characters):
439 Do not remove . from the word break char, update comments.
440 (complete_line_internal_1): Use valid_cmd_char_p.
441 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
442 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
443
c6ac7fc9
PW
4442019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
445
446 * cli/cli-script.c (do_define_command): Ensure a redefined
447 prefix command is kept as a prefix command.
448 (define_prefix_command): New function.
449 (show_user_1): Report user defined prefixes.
450 (_initialize_cli_script): Create the new 'define-prefix' command.
451 Add completers for 'define' and 'document'.
452 * top.c (execute_command): If command is a user-defined prefix only
453 command, report the list of commands for this prefix command.
454
a992a3b0
TBA
4552019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
456
457 * valops.c (find_oload_champ): Improve debug output.
458
e9194a1a
TBA
4592019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
460
461 * valops.c (find_oload_champ): Print part of debug messages
462 before the badness vector is std::move'd.
463
53a008a6
TT
4642019-11-28 Tom Tromey <tom@tromey.com>
465
466 * value.c (creal_internal_fn): Fix comment.
467
bab05c83
TT
4682019-11-28 Tom Tromey <tom@tromey.com>
469
470 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
471 flag_bound_evaluated>: Now unsigned.
472
2522f049
TT
4732019-11-28 Tom Tromey <tom@tromey.com>
474
475 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
476 declare.
477
38b49e22
MS
4782019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
479
480 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
481 debug output.
482 * jit.c (jit_unregister_code): Add debug print to match
483 `jit_register_code`.
484
35125921
CB
4852019-11-27 Christian Biesinger <cbiesinger@google.com>
486
487 * NEWS: Mention the new multithreaded symbol loading.
488
62e77f56
CB
4892019-11-27 Christian Biesinger <cbiesinger@google.com>
490
491 * maint.c (n_worker_threads): Default to 0.
492 (worker_threads_disabled): New function.
493 * maint.h (worker_threads_disabled): New function.
494 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
495 here if worker_threads_disabled () is true.
496 (minimal_symbol_reader::install): Skip all threading if
497 worker_threads_disabled () is true.
498
f29d7f6b
CB
4992019-11-27 Christian Biesinger <cbiesinger@google.com>
500
501 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
502 hash code if possible.
503 (add_minsym_to_demangled_hash_table): Likewise.
504 (minimal_symbol_reader::install): Compute the hash codes for msymbol
505 on the background thread.
506 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
507 Add these fields.
508
e76b2246
CB
5092019-11-27 Christian Biesinger <cbiesinger@google.com>
510
511 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
512 of the mangled name on the background thread.
513 * symtab.c (symbol_set_names): Allow passing in the hash of the
514 linkage_name.
515 * symtab.h (symbol_set_names): Likewise.
516
8d9a2568
KB
5172019-11-27 Kevin Buettner <kevinb@redhat.com>
518
519 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
520 physnames are computed for inherited DIEs.
521
fad03f6e
TT
5222019-11-27 Tom Tromey <tromey@adacore.com>
523
524 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
525 backslashes.
526 * cp-support.c: Remove unnecessary backslashes.
527
43678b0a
CB
5282019-11-27 Christian Biesinger <cbiesinger@google.com>
529
530 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
531 with sym->set_linkage_name.
532 * coffread.c (coff_read_enum_type): Likewise.
533 * mdebugread.c (parse_symbol): Likewise.
534 * stabsread.c (patch_block_stabs): Likewise.
535 (define_symbol): Likewise.
536 (read_enum_type): Likewise.
537 (common_block_end): Likewise.
538 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
539 function.
540 (SYMBOL_SET_LINKAGE_NAME): Remove.
541 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
542 with sym->set_linkage_name.
543
db5960b4
AB
5442019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
545
546 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
547 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
548 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
549 * NEWS: Mention new MI command.
550
7dc42066
AB
5512019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
554 '-symbol-info-types', and '-symbol-info-variables'.
555 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
556 (mi_cmd_symbol_info_types): Declare.
557 (mi_cmd_symbol_info_variables): Declare.
558 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
559 (output_debug_symbol): New function.
560 (output_nondebug_symbol): New function.
561 (mi_symbol_info): New function.
562 (mi_info_functions_or_variables): New function.
563 (mi_cmd_symbol_info_functions): New function.
564 (mi_cmd_symbol_info_types): New function.
565 (mi_cmd_symbol_info_variables): New function.
566 * NEWS: Mention new commands.
567
5f512a7d
AB
5682019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * symtab.c (symbol_to_info_string): New function, most content
571 moved from print_symbol_info, but updated to return a std::string.
572 (print_symbol_info): Update to use symbol_to_info_string and print
573 returned string.
574 * symtab.h (symbol_to_info_string): Declare new function.
575
470c0b1c
AB
5762019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
577
578 * python/python.c (gdbpy_rbreak): Convert to using
579 global_symbol_searcher.
580 * symtab.c (file_matches): Convert return type to bool, change
581 file list to std::vector, update header comment.
582 (search_symbols): Rename to...
583 (global_symbol_searcher::search): ...this and update now its
584 a member function of global_symbol_searcher. Take account of the
585 changes to file_matches.
586 (symtab_symbol_info): Convert to using global_symbol_searcher.
587 (rbreak_command): Likewise.
588 (search_module_symbols): Likewise.
589 * symtab.h (enum symbol_search): Update comment.
590 (search_symbols): Remove declaration.
591 (class global_symbol_searcher): New class.
592
57357d9d
TT
5932019-11-26 Tom Tromey <tromey@adacore.com>
594
595 * cp-support.c (_initialize_cp_support): Conditionally initialize
596 gdb_demangle_attempt_core_dump.
597
3ea16160
TT
5982019-11-26 Tom Tromey <tom@tromey.com>
599
600 * python/py-function.c (fnpy_init): Update.
601 * value.h (add_internal_function): Adjust declaration.
602 * value.c (function_destroyer): Remove.
603 (do_add_internal_function): Don't set destroyer or copy name.
604 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
605 Set name_allocated.
606 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
607 (cmdpy_init): Set name_allocated.
608 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
609 member.
610 (~cmd_list_element): Free "name" if needed.
611
1a6d41c6
TT
6122019-11-26 Tom Tromey <tom@tromey.com>
613
614 * value.h (add_internal_function): Add new overload. Move
615 documentation from value.h.
616 * value.c (do_add_internal_function): New function.
617 (add_internal_function): Use it. Add new overload.
618 (function_destroyer): Don't free doc.
619 * python/py-function.c (fnpy_init): Update.
620
8318f3c3
TT
6212019-11-26 Tom Tromey <tom@tromey.com>
622
623 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
624 (cmdpy_init): Set "doc_allocated".
625
4da8c3a8
TT
6262019-11-26 Tom Tromey <tom@tromey.com>
627
628 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
629 name of worker thread.
630 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
631 pthread_setname_np.
632 * configure, config.in: Rebuild.
633
971db5e2
TT
6342019-11-26 Tom Tromey <tom@tromey.com>
635
636 * python/python.c (class gdbpy_gil): New.
637 (struct gdbpy_event): Add constructor, destructor, operator().
638 (gdbpy_post_event): Use run_on_main_thread.
639 (gdbpy_initialize_events): Remove.
640 (do_start_initialization): Update.
641
22138db6
TT
6422019-11-26 Tom Tromey <tom@tromey.com>
643
644 * NEWS: Add entry.
645 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
646 commands. Call update_thread_pool_size.
647 (update_thread_pool_size, maintenance_set_worker_threads): New
648 functions.
649 (n_worker_threads): New global.
650
d55c9a68
TT
6512019-11-26 Christian Biesinger <cbiesinger@google.com>
652 Tom Tromey <tom@tromey.com>
653
654 * minsyms.c (minimal_symbol_reader::install): Use
655 parallel_for_each.
656 * gdbsupport/parallel-for.h: New file.
657 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
658
a0b57563
CB
6592019-11-26 Christian Biesinger <cbiesinger@google.com>
660 Tom Tromey <tom@tromey.com>
661
662 * gdbsupport/thread-pool.h: New file.
663 * gdbsupport/thread-pool.c: New file.
664 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
665 (HFILES_NO_SRCDIR): Add thread-pool.h.
666
3b3978bc
TT
6672019-11-26 Tom Tromey <tom@tromey.com>
668
669 * event-top.h (thread_local_segv_handler): Declare.
670 * event-top.c (thread_local_segv_handler): New global.
671 (install_handle_sigsegv, handle_sigsegv): New functions.
672 (async_init_signals): Install SIGSEGV handler.
673 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
674 thread-local.
675 (report_failed_demangle): New function.
676 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
677 handler-setting code, instead use segv_handler. Run warning code
678 on main thread.
679
9411c49e
TT
6802019-11-26 Tom Tromey <tom@tromey.com>
681
682 * run-on-main-thread.c: New file.
683 * run-on-main-thread.h: New file.
684 * unittests/main-thread-selftests.c: New file.
685 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
686 main-thread-selftests.c.
687 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
688 (COMMON_SFILES): Add run-on-main-thread.c.
689
c3efb965
TT
6902019-11-26 Tom Tromey <tom@tromey.com>
691
692 * main.c (setup_alternate_signal_stack): Remove.
693 (captured_main_1): Use gdb::alternate_signal_stack.
694 * gdbsupport/alt-stack.h: New file.
695
21987b9c
TT
6962019-11-26 Tom Tromey <tom@tromey.com>
697
698 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
699 Remove comment.
700 (save_original_signals_state, restore_original_signals_state): Use
701 gdb_sigmask.
702 * linux-nat.c (block_child_signals, restore_child_signals_mask)
703 (_initialize_linux_nat): Use gdb_sigmask.
704 * guile/guile.c (_initialize_guile): Use block_signals.
705 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
706 * gdbsupport/gdb-sigmask.h: New file.
707 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
708 * cp-support.c (gdb_demangle): Use gdb_sigmask.
709 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
710 pthread_sigmask.
711 * configure, config.in: Rebuild.
712 * gdbsupport/block-signals.h: New file.
713
5e030278
TT
7142019-11-26 Tom Tromey <tom@tromey.com>
715
716 * acinclude.m4: Include ax_pthread.m4.
717 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
718 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
719 (CLIBS): Use PTHREAD_LIBS.
720 (aclocal_m4_deps): Add ax_pthread.m4.
721 * config.in, configure: Rebuild.
722 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
723
5a79c107
TT
7242019-11-26 Tom Tromey <tom@tromey.com>
725
726 * symtab.h (struct minimal_symbol) <name_set>: New member.
727 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
728 Don't call symbol_set_names.
729 (minimal_symbol_reader::install): Call symbol_set_names.
730
aa369509
PW
7312019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
732
733 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
734 restore_active_ext_lang, as GIL is needed for (indirectly)
735 called PyOS_InterruptOccurred.
736
cadc9cb8
SM
7372019-11-26 Simon Marchi <simon.marchi@efficios.com>
738
739 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
740 definition.
741
d04afd58
SM
7422019-11-26 Simon Marchi <simon.marchi@efficios.com>
743
744 * remote-sim.c (simulator_command): Make static, remove
745 declaration.
746
dd694d77
SM
7472019-11-26 Simon Marchi <simon.marchi@efficios.com>
748
749 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
750 static.
751 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
752 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
753 (main): Likewise.
754 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
755 (main): Likewise.
756 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
757 (main): Likewise.
758 * unittests/basic_string_view/element_access/char/1.cc (test01):
759 Likewise.
760 (main): Likewise.
761 * unittests/basic_string_view/element_access/char/empty.cc (main):
762 Likewise.
763 * unittests/basic_string_view/element_access/char/front_back.cc
764 (test01): Likewise.
765 (main): Likewise.
766 * unittests/basic_string_view/inserters/char/2.cc (test05):
767 Likewise.
768 (main): Likewise.
769 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
770 (test01): Likewise.
771 (main): Likewise.
772 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
773 (test01): Likewise.
774 (main): Likewise.
775 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
776 Likewise.
777 * unittests/basic_string_view/operations/compare/char/1.cc
778 (test01): Likewise.
779 (main): Likewise.
780 * unittests/basic_string_view/operations/compare/char/13650.cc
781 (test01): Likewise.
782 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
783 Likewise.
784 (main): Likewise.
785 * unittests/basic_string_view/operations/data/char/1.cc (test01):
786 Likewise.
787 (main): Likewise.
788 * unittests/basic_string_view/operations/find/char/1.cc (test01):
789 Likewise.
790 (main): Likewise.
791 * unittests/basic_string_view/operations/find/char/2.cc (test02):
792 Likewise.
793 (main): Likewise.
794 * unittests/basic_string_view/operations/find/char/3.cc (test03):
795 Likewise.
796 (main): Likewise.
797 * unittests/basic_string_view/operations/find/char/4.cc (main):
798 Likewise.
799 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
800 Likewise.
801 (main): Likewise.
802 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
803 Likewise.
804 (main): Likewise.
805 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
806 Likewise.
807 (main): Likewise.
808 * unittests/basic_string_view/operations/substr/char/1.cc
809 (test01): Likewise.
810 (main): Likewise.
811 * unittests/basic_string_view/operators/char/2.cc (main):
812 Likewise.
813 * unittests/optional/assignment/1.cc (test): Likewise.
814 * unittests/optional/assignment/2.cc (test): Likewise.
815 * unittests/optional/assignment/3.cc (test): Likewise.
816 * unittests/optional/assignment/4.cc (test): Likewise.
817 * unittests/optional/assignment/5.cc (test): Likewise.
818 * unittests/optional/assignment/6.cc (test): Likewise.
819 * unittests/optional/assignment/7.cc (test): Likewise.
820 * unittests/optional/cons/copy.cc (test): Likewise.
821 * unittests/optional/cons/default.cc (test): Likewise.
822 * unittests/optional/cons/move.cc (test): Likewise.
823 * unittests/optional/cons/value.cc (test): Likewise.
824 * unittests/optional/in_place.cc (test): Likewise.
825 * unittests/optional/observers/1.cc (test): Likewise.
826 * unittests/optional/observers/2.cc (test): Likewise.
827
3b5c1d49
SM
8282019-11-26 Simon Marchi <simon.marchi@efficios.com>
829
830 * tui-win.h (tui_set_var_cmd): Remove.
831 * tui-win.c (tui_set_var_cmd): Make static.
832
adce99fe
SM
8332019-11-26 Simon Marchi <simon.marchi@efficios.com>
834
835 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
836 rbreak_command_wrapper): Remove.
837 * symtab.c (rbreak_command_wrapper): Remove.
838
fe3adccf
SM
8392019-11-26 Simon Marchi <simon.marchi@efficios.com>
840
841 * inferior.h (info_terminal_command): Remove declaration.
842 * inflow.c (info_terminal_command): Make static.
843
b926335f
SM
8442019-11-26 Simon Marchi <simon.marchi@efficios.com>
845
846 * inferior.c (exit_inferior_silent): Remove.
847
b62f6f54
SM
8482019-11-26 Simon Marchi <simon.marchi@efficios.com>
849
850 * dictionary.c (dict_empty, mdict_empty): Remove.
851 * dictionary.c (mdict_empty): Remove.
852
cb8c24b6
SM
8532019-11-26 Simon Marchi <simon.marchi@efficios.com>
854
855 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
856 (arc_insn_get_memory_offset): Likewise.
857 (arc_insn_dump): Likewise.
858 * cp-support.c (test_cp_symbol_name_matches): Likewise.
859 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
860 * dictionary.c (dict_iterator_next): Likewise.
861 (dict_iter_match_first): Likewise.
862 (dict_iter_match_next): Likewise.
863 * f-lang.c (evaluate_subexp_f): Likewise.
864 * hppa-tdep.c (hppa_read_pc): Likewise.
865 * i386-tdep.c (i386_floatformat_for_type): Likewise.
866 * parse.c (write_exp_elt_msym): Likewise.
867 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
868 * remote.c (remote_packet_size): Likewise.
869 (remote_notif_stop_parse): Likewise.
870 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
871 * s12z-tdep.c (s12z_disassemble_info): Likewise.
872 * source.c (prepare_path_for_appending): Likewise.
873 * sparc64-linux-tdep.c
874 (sparc64_linux_handle_segmentation_fault); Likewise.
875 * stack.c (frame_selection_by_function_completer): Likewise.
876
781597ff
SM
8772019-11-26 Simon Marchi <simon.marchi@efficios.com>
878
879 * completer.c (set_gdb_completion_word_break_characters):
880 Remove.
881
23baa4cc
SM
8822019-11-26 Simon Marchi <simon.marchi@efficios.com>
883
884 * dwarf-index-write.c: Include dwarf-index-write.h.
885 * mi/mi-interp.c: Include mi/mi-interp.h.
886
23767560
SM
8872019-11-26 Simon Marchi <simon.marchi@efficios.com>
888
889 * aarch32-tdep.c: Include aarch32-tdep.h.
890 * aarch32-tdep.h: Forward-declare struct target_desc.
891
6d91ce9a
CB
8922019-11-26 Christian Biesinger <cbiesinger@google.com>
893
894 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
895 strerror.
896 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
897 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
898
3cf2f237
TV
8992019-11-25 Tom de Vries <tdevries@suse.de>
900
901 * contrib/words.sh: Add -c option.
902
5b89c67a
CB
9032019-11-25 Christian Biesinger <cbiesinger@google.com>
904
905 * solib.c (solib_find_1): Change int to bool.
906 (exec_file_find): Change int to bool.
907 (solib_find): Change int to bool.
908 (solib_read_symbols): Change int to bool.
909 (solib_used): Change int to bool.
910 (solib_add): Change int to bool.
911 (info_sharedlibrary_command): Change int to bool.
912 (solib_contains_address_p): Change int to bool.
913 (solib_keep_data_in_core): Change int to bool.
914 (in_solib_dynsym_resolve_code): Change int to bool.
915 (reload_shared_libraries_1): Change int to bool.
916 (gdb_sysroot_changed): Change int to bool.
917 * solib.h (solib_read_symbols): Change int to bool.
918 (solib_contains_address_p): Change int to bool.
919 (solib_keep_data_in_core): Change int to bool.
920 (in_solib_dynsym_resolve_code): Change int to bool.
921 (libpthread_name_p): Change int to bool.
922
6cc8564b
LM
9232019-11-25 Luis Machado <luis.machado@linaro.org>
924
925 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
926 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
927 (remote_packet_max_chars): New static global.
928 (show_remote_packet_max_chars): New function.
929 (remote_target::putpkt_binary): Adjust to use new
930 remote_packet_max_chars option.
931 (remote_target::getpkt_or_notif_sane_1): Likewise.
932 (_initialize_remote): Register new remote-packet-max-chars option.
933
a7cdaa91
SM
9342019-11-24 Simon Marchi <simon.marchi@efficios.com>
935
936 * m68k-linux-nat.c: Include gdbarch.h.
937
26abc753
TT
9382019-11-24 Tom Tromey <tom@tromey.com>
939
940 * symfile.c (read_symbols): Update.
941 * psymtab.c (require_partial_symbols): Change type of "verbose" to
942 bool.
943 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
944 (psym_lookup_symbol, psym_find_last_source_symtab)
945 (psym_forget_cached_source_info, psym_print_stats)
946 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
947 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
948 (psym_map_matching_symbols, psym_expand_symtabs_matching)
949 (psym_find_compunit_symtab_by_address)
950 (maintenance_print_psymbols, maintenance_info_psymtabs)
951 (maintenance_check_psymtabs): Update.
952 * psymtab.h (require_partial_symbols): Change type of "verbose" to
953 bool.
954
012fc909
TT
9552019-11-22 Tom Tromey <tom@tromey.com>
956
957 * observable.h: Update comments.
958
c83d8d32
TT
9592019-11-22 Tom Tromey <tromey@adacore.com>
960
961 * ada-tasks.c (ada_task_is_alive): Make parameter const.
962 (print_ada_task_info): Don't try to fetch thread id if task is not
963 alive.
964
987012b8
CB
9652019-11-22 Christian Biesinger <cbiesinger@google.com>
966
967 * ada-exp.y: Update.
968 * ada-lang.c (sort_choices): Update.
969 (ada_print_symbol_signature): Update.
970 (resolve_subexp): Update.
971 (ada_parse_renaming): Update.
972 (ada_read_renaming_var_value): Update.
973 (lesseq_defined_than): Update.
974 (remove_extra_symbols): Update.
975 (remove_irrelevant_renamings): Update.
976 (ada_add_block_symbols): Update.
977 (ada_collect_symbol_completion_matches): Update.
978 (ada_is_renaming_symbol): Update.
979 (aggregate_assign_from_choices): Update.
980 (ada_evaluate_subexp): Update.
981 (ada_has_this_exception_support): Update.
982 (ada_is_non_standard_exception_sym): Update.
983 (ada_add_exceptions_from_frame): Update.
984 (ada_add_global_exceptions): Update.
985 (ada_print_subexp): Update.
986 * ax-gdb.c (gen_var_ref): Update.
987 (gen_maybe_namespace_elt): Update.
988 (gen_expr_for_cast): Update.
989 (gen_expr): Update.
990 * block.h: Update.
991 * blockframe.c (find_pc_partial_function): Update.
992 * breakpoint.c (print_breakpoint_location): Update.
993 (update_static_tracepoint): Update.
994 * btrace.c (ftrace_print_function_name): Update.
995 (ftrace_function_switched): Update.
996 * buildsym.c (find_symbol_in_list): Update.
997 * c-exp.y: Update.
998 * c-typeprint.c (c_print_typedef): Update.
999 (c_type_print_template_args): Update.
1000 * cli/cli-cmds.c (edit_command): Update.
1001 (list_command): Update.
1002 (print_sal_location): Update.
1003 * coffread.c (patch_opaque_types): Update.
1004 (process_coff_symbol): Update.
1005 (coff_read_enum_type): Update.
1006 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1007 (convert_one_symbol): Update.
1008 (hash_symname): Update.
1009 (eq_symname): Update.
1010 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1011 * compile/compile-cplus-types.c (debug_print_scope): Update.
1012 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1013 * compile/compile-object-load.c (get_out_value_type): Update.
1014 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1015 (search_symbol_list): Update.
1016 (cp_lookup_symbol_imports_or_template): Update.
1017 * cp-support.c (overload_list_add_symbol): Update.
1018 * ctfread.c (psymtab_to_symtab): Update.
1019 * dbxread.c (cp_set_block_scope): Update.
1020 * dictionary.c (iter_match_first_hashed): Update.
1021 (iter_match_next_hashed): Update.
1022 (insert_symbol_hashed): Update.
1023 (iter_match_next_linear): Update.
1024 * dictionary.h: Update.
1025 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1026 (locexpr_describe_location_piece): Update.
1027 (locexpr_describe_location_1): Update.
1028 (locexpr_generate_c_location): Update.
1029 (loclist_describe_location): Update.
1030 (loclist_generate_c_location): Update.
1031 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1032 (read_func_scope): Update.
1033 (process_enumeration_scope): Update.
1034 (new_symbol): Update.
1035 (dwarf2_const_value): Update.
1036 (dwarf2_symbol_mark_computed): Update.
1037 * eval.c (evaluate_funcall): Update.
1038 (evaluate_subexp_standard): Update.
1039 * expprint.c (print_subexp_standard): Update.
1040 (dump_subexp_body_standard): Update.
1041 * f-valprint.c (info_common_command_for_block): Update.
1042 * findvar.c (get_hosting_frame): Update.
1043 (default_read_var_value): Update.
1044 * go-lang.c (go_symbol_package_name): Update.
1045 * guile/scm-block.c (bkscm_print_block_smob): Update.
1046 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1047 (gdbscm_symbol_name): Update.
1048 (gdbscm_symbol_linkage_name): Update.
1049 (gdbscm_symbol_print_name): Update.
1050 * infcall.c (get_function_name): Update.
1051 * infcmd.c (jump_command): Update.
1052 (finish_command): Update.
1053 * infrun.c (insert_exception_resume_breakpoint): Update.
1054 * linespec.c (canonicalize_linespec): Update.
1055 (create_sals_line_offset): Update.
1056 (convert_linespec_to_sals): Update.
1057 (complete_label): Update.
1058 (find_label_symbols_in_block): Update.
1059 * m2-typeprint.c (m2_print_typedef): Update.
1060 * mdebugread.c (mdebug_reg_to_regnum): Update.
1061 (parse_symbol): Update.
1062 (mylookup_symbol): Update.
1063 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1064 (list_args_or_locals): Update.
1065 * objc-lang.c (compare_selectors): Update.
1066 (info_selectors_command): Update.
1067 (compare_classes): Update.
1068 (info_classes_command): Update.
1069 (find_imps): Update.
1070 * p-typeprint.c (pascal_print_typedef): Update.
1071 * printcmd.c (build_address_symbolic): Update.
1072 (info_address_command): Update.
1073 (print_variable_and_value): Update.
1074 * python/py-framefilter.c (extract_sym): Update.
1075 (py_print_single_arg): Update.
1076 * python/py-symbol.c (sympy_str): Update.
1077 (sympy_get_name): Update.
1078 (sympy_get_linkage_name): Update.
1079 * python/python.c (gdbpy_rbreak): Update.
1080 * record-btrace.c (btrace_get_bfun_name): Update.
1081 (btrace_call_history): Update.
1082 * rust-lang.c (rust_print_typedef): Update.
1083 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1084 * stabsread.c (stab_reg_to_regnum): Update.
1085 (define_symbol): Update.
1086 (read_enum_type): Update.
1087 (common_block_end): Update.
1088 (cleanup_undefined_types_1): Update.
1089 (scan_file_globals): Update.
1090 * stack.c (print_frame_arg): Update.
1091 (print_frame_args): Update.
1092 (find_frame_funname): Update.
1093 (info_frame_command_core): Update.
1094 (iterate_over_block_locals): Update.
1095 (print_block_frame_labels): Update.
1096 (do_print_variable_and_value): Update.
1097 (iterate_over_block_arg_vars): Update.
1098 (return_command): Update.
1099 * symmisc.c (dump_symtab_1): Update.
1100 (print_symbol): Update.
1101 * symtab.c (eq_symbol_entry): Update.
1102 (symbol_cache_dump): Update.
1103 (lookup_language_this): Update.
1104 (find_pc_sect_line): Update.
1105 (skip_prologue_sal): Update.
1106 (symbol_search::compare_search_syms): Update.
1107 (treg_matches_sym_type_name): Update.
1108 (search_symbols): Update.
1109 (print_symbol_info): Update.
1110 (rbreak_command): Update.
1111 (completion_list_add_symbol): Update.
1112 (find_gnu_ifunc): Update.
1113 (get_symbol_address): Update.
1114 (search_module_symbols): Update.
1115 (info_module_subcommand): Update.
1116 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1117 (SYMBOL_LINKAGE_NAME): Remove.
1118 (SYMBOL_DEMANGLED_NAME): Remove.
1119 (SYMBOL_PRINT_NAME): Remove.
1120 (SYMBOL_SEARCH_NAME): Remove.
1121 * tracepoint.c (set_traceframe_context): Update.
1122 (validate_actionline): Update.
1123 (collection_list::collect_symbol): Update.
1124 (encode_actions_1): Update.
1125 (info_scope_command): Update.
1126 (print_one_static_tracepoint_marker): Update.
1127 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1128 * valops.c (address_of_variable): Update.
1129 (find_overload_match): Update.
1130 (find_oload_champ): Update.
1131
c9d95fa3
CB
11322019-11-22 Christian Biesinger <cbiesinger@google.com>
1133
1134 * ada-lang.c (ada_lookup_simple_minsym): Update.
1135 (ada_collect_symbol_completion_matches): Update.
1136 * ada-tasks.c (read_atcb): Update.
1137 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1138 (amd64_windows_skip_trampoline_code): Update.
1139 * arm-tdep.c (skip_prologue_function): Update.
1140 (arm_skip_stack_protector): Update.
1141 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1142 (arm_wince_skip_main_prologue): Update.
1143 * ax-gdb.c (gen_expr): Update.
1144 * block.c (call_site_for_pc): Update.
1145 * blockframe.c (find_pc_partial_function): Update.
1146 * breakpoint.c (set_breakpoint_location_function): Update.
1147 * btrace.c (ftrace_print_function_name): Update.
1148 (ftrace_function_switched): Update.
1149 * c-valprint.c (print_unpacked_pointer): Update.
1150 * coffread.c (coff_symfile_read): Update.
1151 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1152 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1153 * dwarf-index-write.c (write_psymbols): Update.
1154 * dwarf2loc.c (call_site_to_target_addr): Update.
1155 (func_verify_no_selftailcall): Update.
1156 (tailcall_dump): Update.
1157 (call_site_find_chain_1): Update.
1158 (dwarf_expr_reg_to_entry_parameter): Update.
1159 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1160 * eval.c (evaluate_funcall): Update.
1161 (evaluate_subexp_standard): Update.
1162 (evaluate_subexp_for_sizeof): Update.
1163 * expprint.c (print_subexp_standard): Update.
1164 (dump_subexp_body_standard): Update.
1165 * frame.c (get_prev_frame_always_1): Update.
1166 * frv-tdep.c (frv_skip_main_prologue): Update.
1167 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1168 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1169 (gnuv3_get_typename_from_type_info): Update.
1170 (gnuv3_skip_trampoline): Update.
1171 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1172 * i386-tdep.c (i386_skip_main_prologue): Update.
1173 (i386_pe_skip_trampoline_code): Update.
1174 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1175 * infcall.c (get_function_name): Update.
1176 * linespec.c (minsym_found): Update.
1177 * linux-fork.c (info_checkpoints_command): Update.
1178 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1179 (m32c_m16c_pointer_to_address): Update.
1180 * maint.c (maintenance_translate_address): Update.
1181 * minsyms.c (add_minsym_to_hash_table): Update.
1182 (add_minsym_to_demangled_hash_table): Update.
1183 (lookup_minimal_symbol_mangled): Update.
1184 (lookup_minimal_symbol_demangled): Update.
1185 (lookup_minimal_symbol_linkage): Update.
1186 (lookup_minimal_symbol_text): Update.
1187 (lookup_minimal_symbol_by_pc_name): Update.
1188 (minimal_symbol_is_less_than): Update.
1189 (compact_minimal_symbols): Update.
1190 (build_minimal_symbol_hash_tables): Update.
1191 (find_solib_trampoline_target): Update.
1192 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1193 (mips_skip_pic_trampoline_code): Update.
1194 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1195 * objc-lang.c (info_selectors_command): Update.
1196 (info_classes_command): Update.
1197 (find_methods): Update.
1198 (find_imps): Update.
1199 * p-valprint.c (pascal_val_print): Update.
1200 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1201 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1202 * printcmd.c (build_address_symbolic): Update.
1203 (info_symbol_command): Update.
1204 * psymtab.c (psymbol_name_matches): Update.
1205 (match_partial_symbol): Update.
1206 (lookup_partial_symbol): Update.
1207 (print_partial_symbols): Update.
1208 (sort_pst_symbols): Update.
1209 (maintenance_check_psymtabs): Update.
1210 * python/py-framefilter.c (py_print_frame): Update.
1211 * python/python.c (gdbpy_rbreak): Update.
1212 * record-btrace.c (btrace_get_bfun_name): Update.
1213 (btrace_call_history): Update.
1214 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1215 (rs6000_skip_trampoline_code): Update.
1216 * sol-thread.c (info_cb): Update.
1217 * stabsread.c (scan_file_globals): Update.
1218 * stack.c (find_frame_funname): Update.
1219 (info_frame_command_core): Update.
1220 * symmisc.c (dump_msymbols): Update.
1221 * symtab.c (symbol_natural_name): Rename to..,
1222 (general_symbol_info::natural_name): ...this.
1223 (symbol_demangled_name): Rename to...
1224 (general_symbol_info::demangled_name): ...this.
1225 (symbol_search_name): Rename to...
1226 (general_symbol_info::search_name): ...this.
1227 (symbol_matches_search_name): Update.
1228 (find_pc_sect_line): Update.
1229 (skip_prologue_sal): Update.
1230 (search_symbols): Update.
1231 (print_msymbol_info): Update.
1232 (rbreak_command): Update.
1233 (completion_list_add_msymbol): Update.
1234 (completion_list_objc_symbol): Update.
1235 (get_msymbol_address): Update.
1236 * symtab.h (struct general_symbol_info): Add member functions
1237 natural_name (), linkage_name (), print_name (), demangled_name (),
1238 and search_name ().
1239 (SYMBOL_NATURAL_NAME): Update.
1240 (symbol_natural_name): Move to a member function on general_symbol_info.
1241 (SYMBOL_DEMANGLED_NAME): Update.
1242 (symbol_demangled_name): Move to a member function on
1243 general_symbol_info.
1244 (SYMBOL_SEARCH_NAME): Update.
1245 (symbol_search_name): Move to a member function on general_symbol_info.
1246 (MSYMBOL_NATURAL_NAME): Remove.
1247 (MSYMBOL_LINKAGE_NAME): Remove.
1248 (MSYMBOL_PRINT_NAME): Remove.
1249 (MSYMBOL_DEMANGLED_NAME): Remove.
1250 (MSYMBOL_SEARCH_NAME): Remove.
1251 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1252
f8bab2d6
CB
12532019-11-22 Christian Biesinger <cbiesinger@google.com>
1254
1255 * symtab.c (create_demangled_names_hash): Use per_bfd->
1256 minimal_symbol_count for computing the initial size, if greater
1257 than our default size.
1258
85e7588d
TV
12592019-11-22 Tom de Vries <tdevries@suse.de>
1260
1261 * contrib/words.sh: Improve words extraction.
1262
f6180073
TV
12632019-11-22 Tom de Vries <tdevries@suse.de>
1264
1265 * contrib/words.sh: Combine sed invocations.
1266
f10ffa41
CB
12672019-11-21 Christian Biesinger <cbiesinger@google.com>
1268
1269 * Makefile.in: Update.
1270 * demangle.c: Rename to...
1271 * gdb-demangle.c: ..this.
1272 (is_cplus_marker): Change return type to bool.
1273 (_initialize_demangler): Rename to...
1274 (_initialize_gdb_demangle): ...this.
1275 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1276 * symtab.h (demangle): Remove declaration; instead include
1277 gdb-demangle.h.
1278
6ba18521
TT
12792019-11-21 Tom Tromey <tromey@adacore.com>
1280
1281 * gdbsupport/format.c (format_pieces): Parse %I64d.
1282 * unittests/format_pieces-selftests.c (test_windows_formats): New
1283 function.
1284 (run_tests): Call it.
1285
34877895
PJ
12862019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1287
1288 Byte reverse display of variables with DW_END_big, DW_END_little
1289 (DW_AT_endianity) dwarf attributes if different than the native
1290 byte order.
1291 * ada-lang.c (ada_value_binop):
1292 Use type_byte_order instead of gdbarch_byte_order.
1293 * ada-valprint.c (printstr):
1294 (ada_val_print_string):
1295 * ada-lang.c (value_pointer):
1296 (ada_value_binop):
1297 Use type_byte_order instead of gdbarch_byte_order.
1298 * c-lang.c (c_get_string):
1299 Use type_byte_order instead of gdbarch_byte_order.
1300 * c-valprint.c (c_val_print_array):
1301 Use type_byte_order instead of gdbarch_byte_order.
1302 * cp-valprint.c (cp_print_class_member):
1303 Use type_byte_order instead of gdbarch_byte_order.
1304 * dwarf2loc.c (rw_pieced_value):
1305 Use type_byte_order instead of gdbarch_byte_order.
1306 * dwarf2read.c (read_base_type): Handle DW_END_big,
1307 DW_END_little
1308 * f-lang.c (f_get_encoding):
1309 Use type_byte_order instead of gdbarch_byte_order.
1310 * findvar.c (default_read_var_value):
1311 Use type_byte_order instead of gdbarch_byte_order.
1312 * gdbtypes.c (check_types_equal):
1313 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1314 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1315 and TYPE_ENDIANITY_LITTLE if set.
1316 (type_byte_order): new function.
1317 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1318 (struct main_type) <flag_endianity_not_default>:
1319 New field.
1320 (type_byte_order): New function.
1321 * infcmd.c (default_print_one_register_info):
1322 Use type_byte_order instead of gdbarch_byte_order.
1323 * p-lang.c (pascal_printstr):
1324 Use type_byte_order instead of gdbarch_byte_order.
1325 * p-valprint.c (pascal_val_print):
1326 Use type_byte_order instead of gdbarch_byte_order.
1327 * printcmd.c (print_scalar_formatted):
1328 Use type_byte_order instead of gdbarch_byte_order.
1329 * solib-darwin.c (darwin_current_sos):
1330 Use type_byte_order instead of gdbarch_byte_order.
1331 * solib-svr4.c (solib_svr4_r_ldsomap):
1332 Use type_byte_order instead of gdbarch_byte_order.
1333 * stap-probe.c (stap_modify_semaphore):
1334 Use type_byte_order instead of gdbarch_byte_order.
1335 * target-float.c (target_float_same_format_p):
1336 Use type_byte_order instead of gdbarch_byte_order.
1337 * valarith.c (scalar_binop):
1338 (value_bit_index):
1339 Use type_byte_order instead of gdbarch_byte_order.
1340 * valops.c (value_cast):
1341 Use type_byte_order instead of gdbarch_byte_order.
1342 * valprint.c (generic_emit_char):
1343 (generic_printstr):
1344 (val_print_string):
1345 Use type_byte_order instead of gdbarch_byte_order.
1346 * value.c (unpack_long):
1347 (unpack_bits_as_long):
1348 (unpack_value_bitfield):
1349 (modify_field):
1350 (pack_long):
1351 (pack_unsigned_long):
1352 Use type_byte_order instead of gdbarch_byte_order.
1353 * findvar.c (unsigned_pointer_to_address):
1354 (signed_pointer_to_address):
1355 (unsigned_address_to_pointer):
1356 (address_to_signed_pointer):
1357 (default_read_var_value):
1358 (default_value_from_register):
1359 Use type_byte_order instead of gdbarch_byte_order.
1360 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1361 Use type_byte_order instead of gdbarch_byte_order.
1362 * riscv-tdep.c (riscv_print_one_register_info):
1363 Use type_byte_order instead of gdbarch_byte_order.
1364
87fb00ea
SM
13652019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1366
1367 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1368 (current_ui_gdb_stdin_ptr): Likewise.
1369 (current_ui_gdb_stderr_ptr): Likewise.
1370 (current_ui_gdb_stdlog_ptr): Likewise.
1371 (current_ui_current_uiout_ptr): Likewise.
1372 (gen_ret_current_ui_field_ptr): Remove.
1373
65d1cd5f
TV
13742019-11-21 Tom de Vries <tdevries@suse.de>
1375
1376 PR gdb/24956
1377 * cli/cli-script.c (execute_control_command): Only switch to
1378 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1379
9f6ad286
TT
13802019-11-19 Tom Tromey <tom@tromey.com>
1381
1382 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1383 Now static. Change type of "name".
1384 (tui_set_win_height_command): Don't copy "arg".
1385 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1386 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1387
435d3d88
AT
13882019-11-19 Ali Tamur <tamur@google.com>
1389
1390 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1391 "if (attr != nullptr)".
1392 (dwarf2_find_base_address): Likewise.
1393 (dwarf2_build_include_psymtabs): Likewise.
1394 (read_cutu_die_from_dwo): Likewise.
1395 (read_func_scope): Likewise.
1396 (read_call_site_scope): Likewise.
1397 (dwarf2_get_pc_bounds): Likewise.
1398 (dwarf2_record_block_ranges): Likewise.
1399 (dwarf2_add_field): Likewise.
1400 (dwarf2_add_member_fn): Likewise.
1401 (read_structure_type): Likewise.
1402 (read_enumeration_type): Likewise.
1403 (read_array_type): Likewise.
1404 (read_array_order): Likewise.
1405 (read_set_type): Likewise.
1406 (read_common_block): Likewise.
1407 (read_tag_reference_type): Likewise.
1408 (read_tag_string_type): Likewise.
1409 (read_subroutine_type): Likewise.
1410 (read_base_type): Likewise.
1411 (read_subrange_type): Likewise.
1412 (new_symbol): Likewise.
1413 (prepare_one_comp_unit): Likewise.
1414
c9739b6a
TT
14152019-11-19 Tom Tromey <tromey@adacore.com>
1416
1417 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1418 result in error when DebugActiveProcess fails.
1419
494409bb
SDJ
14202019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1421 Pedro Alves <palves@redhat.com>
1422
1423 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1424 * target.c (target_stack::push): Call 'unpush' if there's a
1425 target on top of the stack.
1426
2e953aca
PW
14272019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1428
1429 * python/py-block.c (blpy_dealloc): Call tp_free.
1430 (blpy_block_syms_dealloc): Likewise.
1431 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1432 * python/py-inferior.c (infpy_dealloc): Likewise.
1433 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1434 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1435 * python/py-symbol.c (sympy_dealloc): Likewise.
1436 * python/py-symtab.c (stpy_dealloc): Likewise.
1437 * python/py-type.c (typy_iterator_dealloc): Likewise.
1438
6edc43ec
CB
14392019-11-18 Christian Biesinger <cbiesinger@google.com>
1440
1441 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1442 constructor instead of using a class initializer.
1443
cd850b40
CB
14442019-11-15 Christian Biesinger <cbiesinger@google.com>
1445
1446 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1447 * configure: Regenerate.
1448 * configure.ac: Don't source common.host.
1449 * gdbsupport/common.host: Remove.
1450 * gdbsupport/mingw-strerror.c: Remove.
1451 * gdbsupport/posix-strerror.c: Rename to...
1452 * gdbsupport/safe-strerror.c: ...this.
1453
53fea9c7
CB
14542019-11-15 Christian Biesinger <cbiesinger@google.com>
1455
1456 * maint.c (scoped_command_stats::print_time): Use localtime_r
1457 instead of localtime (provided through gnulib if necessary).
1458 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1459 of ctime.
1460
f8e27d88
CB
14612019-11-15 Christian Biesinger <cbiesinger@google.com>
1462
1463 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1464 avoid compile errors.
1465
5abebf3c
CB
14662019-11-15 Christian Biesinger <cbiesinger@google.com>
1467
1468 * config.in: Regenerate.
1469 * configure: Regenerate.
1470 * gdbsupport/common.m4: No longer check for strerror_r.
1471 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1472 POSIX version of strerror_r, now that gnulib provides it if
1473 necessary.
1474
9a351667
CB
14752019-11-14 Christian Biesinger <cbiesinger@google.com>
1476
1477 * README (`configure' options): Update.
1478
55708e99
TT
14792019-11-14 Tom Tromey <tromey@adacore.com>
1480
1481 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1482 expected type for the RHS if the LHS is a convenience variable.
1483
4b09bb2e
SM
14842019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1485
1486 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1487 Provide explicit default and copy constructor.
1488
bd454f8b
PW
14892019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1490
1491 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1492 only call Py_INCREF (newbp) in the bppy_pending_object case.
1493
d1aa3cf0
TT
14942019-11-13 Tom Tromey <tromey@adacore.com>
1495
1496 PR build/25182:
1497 * psympriv.h (partial_symbol): Remove static assert.
1498 * symtab.h (general_symbol_info, symbol): Remove static assert.
1499
e06f3d6e
AB
15002019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1501
1502 * gdbsupport/format.c (format_pieces::format_pieces): Support
1503 printf 'z' size modifier.
1504 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1505 * printcmd.c (ui_printf): Handle size_t_arg.
1506 * ui-out.c (ui_out::vmessage): Likewise.
1507 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1508 function.
1509 (run_tests): Call test_format_int_sizes.
1510
468c0cbb
CB
15112019-11-12 Christian Biesinger <cbiesinger@google.com>
1512
1513 * ada-exp.y (write_ambiguous_var): Update.
1514 * buildsym.c (add_symbol_to_list): Update.
1515 * dwarf2read.c (read_variable): Update.
1516 (new_symbol): Update.
1517 * jit.c (finalize_symtab): Update.
1518 * language.c (language_alloc_type_symbol): Update.
1519 * symtab.c (fixup_symbol_section): Update.
1520 (initialize_objfile_symbol_1): Move code to...
1521 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1522 (allocate_symbol): Update.
1523 (allocate_template_symbol): Update.
1524 (get_symbol_address): Update.
1525 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1526 of having as a field, and add a constructor.
1527 (SYMBOL_VALUE): Update.
1528 (SYMBOL_VALUE_ADDRESS): Update.
1529 (SET_SYMBOL_VALUE_ADDRESS): Update.
1530 (SYMBOL_VALUE_BYTES): Update.
1531 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1532 (SYMBOL_BLOCK_VALUE): Update.
1533 (SYMBOL_VALUE_CHAIN): Update.
1534 (SYMBOL_LANGUAGE): Update.
1535 (SYMBOL_SECTION): Update.
1536 (SYMBOL_OBJ_SECTION): Update.
1537 (SYMBOL_SET_LANGUAGE): Update.
1538 (SYMBOL_SET_LINKAGE_NAME): Update.
1539 (SYMBOL_SET_NAMES): Update.
1540 (SYMBOL_NATURAL_NAME): Update.
1541 (SYMBOL_LINKAGE_NAME): Update.
1542 (SYMBOL_DEMANGLED_NAME): Update.
1543 (SYMBOL_SEARCH_NAME): Update.
1544 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1545 (struct symbol): Update.
1546 (struct template_symbol): Update.
1547 (struct rust_vtable_symbol): Update.
1548 * xcoffread.c (SYMBOL_DUP): Update.
1549
ed2c82c3
TT
15502019-11-12 Tom Tromey <tom@tromey.com>
1551
1552 * tui/tui-layout.c (show_layout): Set current_layout.
1553 (show_source_disasm_command, show_data)
1554 (show_source_or_disasm_and_command): Don't set current_layout.
1555
d9fcefd5
TT
15562019-11-12 Tom Tromey <tom@tromey.com>
1557
1558 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1559
45e42163
TT
15602019-11-12 Tom Tromey <tom@tromey.com>
1561
1562 * tui/tui-win.c (resize_message): New global.
1563 (show_tui_resize_message): New function.
1564 (tui_async_resize_screen): Print message if requested.
1565 (_initialize_tui_win): Add tui-resize-message setting.
1566 * NEWS: Add entry for new commands.
1567
c86d74cc
TT
15682019-11-11 Tom Tromey <tom@tromey.com>
1569
1570 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1571 functions.
1572
7b7b9424
CB
15732019-11-11 Christian Biesinger <cbiesinger@google.com>
1574
1575 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1576
086baaf1
AB
15772019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1578
1579 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1580 function.
1581 * python/python-internal.h (gdbpy_lookup_static_symbols):
1582 Declare new function.
1583 * python/python.c (python_GdbMethods): Add
1584 gdb.lookup_static_symbols method.
1585 * NEWS: Mention gdb.lookup_static_symbols.
1586
09ff83af
AB
15872019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1588
1589 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1590 static block of current object file first. Also fix typo in
1591 header comment.
1592
eb2dd8df
AB
15932019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1594
1595 * stack.c (set_last_displayed_sal): Delete.
1596 (last_displayed_sal_valid): Delete.
1597 (last_displayed_pspace): Delete.
1598 (last_displayed_addr): Delete.
1599 (last_displayed_symtab): Delete.
1600 (last_displayed_line): Delete.
1601 (class last_displayed_symtab_info_type): New.
1602 (last_displayed_symtab_info): New static global variable.
1603 (print_frame_info): Call methods on last_displayed_symtab_info.
1604 (clear_last_displayed_sal): Update header comment, and make use of
1605 last_displayed_symtab_info.
1606 (last_displayed_sal_is_valid): Likewise.
1607 (get_last_displayed_pspace): Likewise.
1608 (get_last_displayed_addr): Likewise.
1609 (get_last_displayed_symtab): Likewise.
1610 (get_last_displayed_line): Likewise.
1611 (get_last_displayed_sal): Likewise.
1612 * stack.h (clear_last_displayed_sal): Update header comment.
1613 (last_displayed_sal_is_valid): Likewise.
1614 (get_last_displayed_pspace): Likewise.
1615 (get_last_displayed_addr): Likewise.
1616 (get_last_displayed_symtab): Likewise.
1617 (get_last_displayed_line): Likewise.
1618 (get_last_displayed_sal): Likewise.
1619
62137775
AB
16202019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1621
1622 * stack.c (frame_show_address): Convert return type to bool.
1623 * stack.h (frame_show_address): Likewise, and update header
1624 comment.
1625
cf57ad6d
AB
16262019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1627
1628 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1629 * unittests/vec-utils-selftests.c: New file.
1630 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1631
0b026263
TT
16322019-11-10 Tom Tromey <tom@tromey.com>
1633
1634 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1635 (tui_highlight_win): Likewise.
1636 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1637 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1638 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1639 Don't set can_highlight.
1640
b049ce2d
TT
16412019-11-10 Tom Tromey <tom@tromey.com>
1642
1643 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1644 Remove unused declaration.
1645
992a7040
TT
16462019-11-08 Tom Tromey <tromey@adacore.com>
1647
1648 * top.c (read_command_file): Update.
1649 (command_line_input): Make return type const.
1650 * python/py-gdb-readline.c: Update.
1651 * linespec.c (decode_line_2): Update.
1652 * defs.h (command_line_input): Make return type const.
1653 * cli/cli-script.c (read_next_line): Make return type const.
1654 * ada-lang.c (get_selections): Update.
1655
ca3a04f6
CB
16562019-11-06 Christian Biesinger <cbiesinger@google.com>
1657
1658 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1659 * mi/mi-main.c (output_cores): Likewise.
1660 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1661 (linux_xfer_osdata_modules): Likewise.
1662 * remote.c (register_remote_support_xml): Likewise.
1663 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1664 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1665
e0eac551
TT
16662019-11-06 Tom Tromey <tom@tromey.com>
1667
1668 * tui/tui-interp.c: Don't include readline.h.
1669 * tui/tui-hooks.c: Don't include readline.h.
1670 * symmisc.c: Include tilde.h, not readline.h.
1671 * symfile.c: Include tilde.h, not readline.h.
1672 * source.c: Include tilde.h, not readline.h.
1673 * solib.c: Include tilde.h, not readline.h.
1674 * psymtab.c: Include tilde.h, not readline.h.
1675 * exec.c: Include tilde.h, not readline.h.
1676 * corelow.c: Include tilde.h, not readline.h.
1677 * cli/cli-dump.c: Include tilde.h, not readline.h.
1678 * cli/cli-cmds.c: Don't include readline.h.
1679
825165c5
TT
16802019-11-05 Tom Tromey <tom@tromey.com>
1681
1682 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1683 (tui_disassemble): Set addr_size.
1684 (tui_disasm_window::set_contents): Use addr_size.
1685
91ae903f
TT
16862019-11-05 Tom Tromey <tom@tromey.com>
1687
1688 * rust-lang.c (rust_language_defn): Update.
1689 * python/py-value.c (valpy_string): Call c_get_string.
1690 * p-lang.c (pascal_language_defn): Update.
1691 * opencl-lang.c (opencl_language_defn): Update.
1692 * objc-lang.c (objc_language_defn): Update.
1693 * m2-lang.c (m2_language_defn): Update.
1694 * language.c (unknown_language_defn, auto_language_defn): Update.
1695 (default_get_string): Remove.
1696 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1697 * go-lang.c (go_language_defn): Update.
1698 * f-lang.c (f_language_defn): Update.
1699 * d-lang.c (d_language_defn): Update.
1700 * c-lang.c (c_language_defn, cplus_language_defn)
1701 (asm_language_defn, minimal_language_defn): Update.
1702 * ada-lang.c (ada_language_defn): Update.
1703 * language.h (struct language_defn) <la_get_string>: Remove.
1704 (LA_GET_STRING): Remove.
1705 (default_get_string): Don't declare.
1706
1df2f9ef
TT
17072019-11-05 Tom Tromey <tom@tromey.com>
1708
1709 * tui/tui-source.h (struct tui_source_window): Inline
1710 constructor. Remove destructor.
1711 <style_changed, m_observable>: Move to superclass.
1712 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1713 (struct tui_source_window_base): Move private members to end.
1714 <style_changed, m_observable>: Move from tui_source_window.
1715 * tui/tui-winsource.c (tui_copy_source_line): Move from
1716 tui-source.c. Rename from copy_source_line. Add special handling
1717 for negative line number.
1718 (tui_source_window_base::style_changed): Move from
1719 tui_source_window.
1720 (tui_source_window_base): Register observer.
1721 (~tui_source_window_base): New.
1722 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1723 rename.
1724 (tui_source_window::set_contents): Use tui_copy_source_line.
1725 (tui_source_window::tui_source_window): Move to tui-source.h.
1726 (tui_source_window::~tui_source_window): Remove.
1727 (tui_source_window::style_changed): Move to superclass.
1728 * tui/tui-disasm.c (tui_disassemble): Create string file with
1729 styling, when possible. Add "addr_size" parameter.
1730 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1731 Don't compute maximum size.
1732 (len_without_escapes): New function
1733
5d051055
TT
17342019-11-05 Tom Tromey <tom@tromey.com>
1735
1736 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1737 std::string.
1738 * tui/tui-winsource.c (tui_show_source_line): Update.
1739 * tui/tui-source.c (tui_source_window::set_contents): Update.
1740 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1741
ade7beea
CB
17422019-11-05 Christian Biesinger <cbiesinger@google.com>
1743
1744 * symtab.h (gdb_static_assert): Put && operator at the beginning
1745 of the line instead of the end.
1746
3573abe1
CB
17472019-11-04 Christian Biesinger <cbiesinger@google.com>
1748
1749 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1750 and sizeof (symbol).
1751 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1752
dae8b3eb
RO
17532019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1754
1755 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1756 * configure.host: Mark *-*-solaris2.10* obsolete.
1757 * configure.tgt: Mark Solaris < 11 obsolete.
1758 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1759 Update target triplet.
1760
5df96a4e
TT
17612019-11-01 Tom Tromey <tromey@adacore.com>
1762
1763 * utils.c (print_sys_errmsg): Simplify.
1764
b7481649
TT
17652019-11-01 Tom Tromey <tromey@adacore.com>
1766
1767 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1768
e48f6033
CB
17692019-11-01 Christian Biesinger <cbiesinger@google.com>
1770
1771 * configure: Regenerate.
1772 * configure.ac: Remove check for strerror_r.
1773 * gdbsupport/common.m4: Check for strerror_r.
1774
bd5766ec
LM
17752019-11-01 Luis Machado <luis.machado@linaro.org>
1776
1777 PR gdb/25124
1778
1779 * arm-tdep.c (arm_per_objfile): Rename to ...
1780 (arm_per_bfd): ... this.
1781 (arm_objfile_data_key): Rename to ...
1782 (arm_bfd_data_key): ... this.
1783 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1784 data.
1785 (arm_record_special_symbol): Likewise.
1786
e1709896
AB
17872019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1788
1789 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1790 end.
1791 * c-typeprint.c (c_print_typedef): Likewise.
1792 * f-typeprint.c (f_print_typedef): Likewise.
1793 * m2-typeprint.c (m2_print_typedef): Likewise.
1794 * p-typeprint.c (pascal_print_typedef): Likewise.
1795 * rust-lang.c (rust_print_typedef): Likewise.
1796 * symtab.c (print_symbol_info): Print a newline after calling
1797 typedef_print.
1798
165f8965
AB
17992019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * symtab.c (info_module_cmdlist): New variable.
1802 (info_module_command): New function.
1803 (search_module_symbols): New function.
1804 (info_module_subcommand): New function.
1805 (struct info_modules_var_func_options): New struct.
1806 (info_modules_var_func_options_defs): New variable.
1807 (make_info_modules_var_func_options_def_group): New function.
1808 (info_module_functions_command): New function.
1809 (info_module_variables_command): New function.
1810 (info_module_var_func_command_completer): New function.
1811 (_initialize_symtab): Register new 'info module functions' and
1812 'info module variables' commands.
1813 * symtab.h (typedef symbol_search_in_module): New typedef.
1814 (search_module_symbols): Declare new function.
1815 * NEWS: Mention new commands.
1816
59c35742
AB
18172019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1818
1819 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1820 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1821 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1822 MODULES_DOMAIN.
1823 (scan_partial_symbols): Only create partial module symbols for non
1824 declarations.
1825 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1826 and MODULES_DOMAIN.
1827 * symtab.c (search_domain_name): Likewise.
1828 (search_symbols): Likewise.
1829 (print_symbol_info): Likewise.
1830 (symtab_symbol_info): Likewise.
1831 (info_modules_command): New function.
1832 (_initialize_symtab): Register 'info modules' command.
1833 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1834 * NEWS: Mention new 'info modules' command.
1835
aed61d02
PW
18362019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1837
1838 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1839 and $_gdb_maint_setting_str.
1840
9ad9b77d
PW
18412019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1842
1843 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1844 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1845 (str_value_from_setting, gdb_setting_str_internal_fn)
1846 (gdb_maint_setting_str_internal_fn): New functions.
1847 (_initialize_cli_cmds): Define the new convenience functions.
1848 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1849 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1850
8d6efaa2
CB
18512019-10-31 Christian Biesinger <cbiesinger@google.com>
1852
1853 * agent.c (set_can_use_agent): When the setting is turned on,
1854 look up agent symbols if we don't have them yet.
1855 (agent_new_objfile): Don't look up agent symbols when the agent
1856 setting is off.
1857
33cb1647
CB
18582019-10-31 Christian Biesinger <cbiesinger@google.com>
1859
1860 * config.in: Regenerate.
1861
b231e86a
CB
18622019-10-31 Christian Biesinger <cbiesinger@google.com>
1863
1864 * configure: Regenerate.
1865 * configure.ac: Check for strerror_r.
1866 * gdbsupport/common-utils.h (safe_strerror): Change return value
1867 to const char * and document that this function is now threadsafe.
1868 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1869 thread_local and call strerror_r, if available.
1870 * utils.c (perror_string): Update.
1871 (print_sys_errmsg): Update.
1872
a2726d4f
LM
18732019-10-31 Luis Machado <luis.machado@linaro.org>
1874
1875 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1876 objfile_key.
1877 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1878 objfile to fetch per-bfd data.
1879 (arm_find_exidx_entry): Likewise.
1880
75cafaa6
CB
18812019-10-31 Christian Biesinger <cbiesinger@google.com>
1882
1883 * gdbsupport/agent.c (debug_agent): Change type to bool.
1884 (use_agent): Likewise.
1885 (all_agent_symbols_look_up): Likewise.
1886 (agent_loaded_p): Change return value to bool.
1887 (agent_look_up_symbols): Update.
1888 (agent_capability_check): Change return value to bool.
1889 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1890 (debug_agent): Change type to bool.
1891 (use_agent): Likewise.
1892 (agent_capability_check): Change return value to bool.
1893
808590ec
CB
18942019-10-30 Christian Biesinger <cbiesinger@google.com>
1895
1896 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1897 (build_minimal_symbol_hash_tables): Code to clear the table moved
1898 to clear_minimal_symbol_hash_tables.
1899 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1900 when needed.
1901
f18ad8a1
SM
19022019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * infcmd.c: Remove includes.
1905 * infrun.c: Remove includes.
1906
de93309a
SM
19072019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1908
1909 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1910 (grow_vect): Remove declaration.
1911 (ada_type_of_array): Remove declaration.
1912 (ada_update_initial_language): Remove declaration.
1913 (ada_fold_name): Remove declaration.
1914 (ada_fill_in_ada_prototype): Remove declaration.
1915 (user_select_syms): Remove declaration.
1916 (get_selections): Remove declaration.
1917 (ada_tag_type): Remove declaration.
1918 (ada_value_tag): Remove declaration.
1919 (ada_is_others_clause): Remove declaration.
1920 (ada_in_variant): Remove declaration.
1921 (ada_value_struct_elt): Remove declaration.
1922 (ada_attribute_name): Remove declaration.
1923 (ada_system_address_type): Remove declaration.
1924 * ada-lang.c (ada_watch_location_expression): Make static.
1925 (GROW_VECT): Move here from ada-lang.h.
1926 (grow_vect): Make static.
1927 (ada_update_initial_language): Make static.
1928 (ada_fold_name): Make static.
1929 (ada_type_of_array): Make static.
1930 (encoded_ordered_before): Move up.
1931 (sort_choices): Move up.
1932 (print_signatures): Move up.
1933 (ada_print_symbol_signature): Move up.
1934 (get_selections): Move up and make static.
1935 (user_select_syms): Move up and make static.
1936 (ada_value_struct_elt): Move up and make static.
1937 (ada_tag_type): Make static.
1938 (ada_value_tag): Make static.
1939 (ada_is_others_clause): Make static.
1940 (ada_in_variant): Make static.
1941 (ada_attribute_name): Make static.
1942
cdc46a9f
SM
19432019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1944
1945 * ada-lang.c: Remove includes.
1946 * ada-typeprint.c: Remove includes.
1947 * ada-valprint.c: Remove includes.
1948
90421c56
SM
19492019-10-29 Simon Marchi <simon.marchi@efficios.com>
1950
1951 * addrmap.c: Add static assertions of type size, moved from
1952 _initialize_addrmap.
1953 (_initialize_addrmap): Remove.
1954
31edb802
CB
19552019-10-29 Christian Biesinger <cbiesinger@google.com>
1956
1957 * coffread.c (record_minimal_symbol): Update.
1958 (process_coff_symbol): Update.
1959 * dbxread.c (read_dbx_symtab): Update.
1960 * dwarf2read.c (add_partial_symbol): Update.
1961 (fixup_go_packaging): Update.
1962 (load_partial_dies): Update.
1963 (new_symbol): Update.
1964 * elfread.c (record_minimal_symbol): Change signature to use
1965 gdb::string_view instead of name+len.
1966 (elf_symtab_read): Update.
1967 (elf_rel_plt_read): Update.
1968 * mdebugread.c (parse_partial_symbols): Update.
1969 (handle_psymbol_enumerators): Update.
1970 (new_symbol): Update.
1971 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1972 to use gdb::string_view instead of name+len.
1973 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1974 * psympriv.h (add_psymbol_to_list): Likewise.
1975 * psymtab.c (add_psymbol_to_bcache): Likewise.
1976 (add_psymbol_to_list): Likewise.
1977 * stabsread.c (define_symbol): Update.
1978 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1979 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1980 (symbol_set_names): Likewise.
1981 * xcoffread.c (scan_xcoff_symtab): Update.
1982
0c921b21
CB
19832019-10-29 Christian Biesinger <cbiesinger@google.com>
1984
1985 * symtab.h (symbol_set_names): Document that copy_name must be
1986 set to true for non-nullterminated strings.
1987 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1988 linkage_name if the entry was not found and we need to demangle.
1989
35e65c49
CB
19902019-10-29 Christian Biesinger <cbiesinger@google.com>
1991
1992 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1993 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1994 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1995 * gdbsupport/gdb_binary_search.h: New file.
1996
ed2a2229
CB
19972019-10-29 Christian Biesinger <cbiesinger@google.com>
1998
1999 * NEWS: Mention new --with-system-gdbinit-dir option.
2000 * config.in: Regenerate.
2001 * configure: Regenerate.
2002 * configure.ac: Add new option --with-system-gdbinit-dir.
2003 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2004 for a ".gdb" suffix.
2005 * main.c (get_init_files): Change system_gdbinit argument to
2006 a vector and return the files in SYSTEM_GDBINIT_DIR in
2007 addition to SYSTEM_GDBINIT.
2008 (captured_main_1): Update.
2009 (print_gdb_help): Update.
2010 * top.c (print_gdb_configuration): Also print the value of
2011 SYSTEM_GDBINIT_DIR.
2012
87f34879
CB
20132019-10-28 Christian Biesinger <cbiesinger@google.com>
2014
2015 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2016 that takes gdb::string_view arguments.
2017
30baf67b
TV
20182019-10-26 Tom de Vries <tdevries@suse.de>
2019
2020 * aarch64-linux-tdep.c: Fix typos in comments.
2021 * aarch64-tdep.c: Same.
2022 * ada-lang.c: Same.
2023 * amd64-nat.c: Same.
2024 * arc-tdep.c: Same.
2025 * arch/aarch64-insn.c: Same.
2026 * block.c: Same.
2027 * breakpoint.h: Same.
2028 * btrace.h: Same.
2029 * c-varobj.c: Same.
2030 * cli/cli-decode.c: Same.
2031 * cli/cli-script.c: Same.
2032 * cli/cli-utils.h: Same.
2033 * coff-pe-read.c: Same.
2034 * coffread.c: Same.
2035 * compile/compile-cplus-symbols.c: Same.
2036 * compile/compile-object-run.c: Same.
2037 * completer.c: Same.
2038 * corelow.c: Same.
2039 * cp-support.c: Same.
2040 * demangle.c: Same.
2041 * dwarf-index-write.c: Same.
2042 * dwarf2-frame.c: Same.
2043 * dwarf2-frame.h: Same.
2044 * eval.c: Same.
2045 * frame-base.h: Same.
2046 * frame.h: Same.
2047 * gdbcmd.h: Same.
2048 * gdbtypes.h: Same.
2049 * gnu-nat.c: Same.
2050 * guile/scm-objfile.c: Same.
2051 * i386-tdep.c: Same.
2052 * i386-tdep.h: Same.
2053 * infcall.c: Same.
2054 * infcall.h: Same.
2055 * linux-nat.c: Same.
2056 * m68k-tdep.c: Same.
2057 * macroexp.c: Same.
2058 * memattr.c: Same.
2059 * mi/mi-cmd-disas.c: Same.
2060 * mi/mi-getopt.h: Same.
2061 * mi/mi-main.c: Same.
2062 * minsyms.c: Same.
2063 * nat/aarch64-sve-linux-sigcontext.h: Same.
2064 * objfiles.h: Same.
2065 * ppc-linux-nat.c: Same.
2066 * ppc-linux-tdep.c: Same.
2067 * ppc-tdep.h: Same.
2068 * progspace.h: Same.
2069 * prologue-value.h: Same.
2070 * python/py-evtregistry.c: Same.
2071 * python/py-instruction.h: Same.
2072 * record-btrace.c: Same.
2073 * record-full.c: Same.
2074 * remote.c: Same.
2075 * rs6000-tdep.c: Same.
2076 * ser-tcp.c: Same.
2077 * sol-thread.c: Same.
2078 * sparc-sol2-tdep.c: Same.
2079 * sparc64-tdep.c: Same.
2080 * stabsread.c: Same.
2081 * symfile.c: Same.
2082 * symtab.h: Same.
2083 * target.c: Same.
2084 * tracepoint.c: Same.
2085 * tui/tui-data.h: Same.
2086 * tui/tui-io.c: Same.
2087 * tui/tui-win.c: Same.
2088 * tui/tui.c: Same.
2089 * unittests/rsp-low-selftests.c: Same.
2090 * user-regs.h: Same.
2091 * utils.c: Same.
2092 * utils.h: Same.
2093 * valarith.c: Same.
2094 * valops.c: Same.
2095 * valprint.c: Same.
2096 * valprint.h: Same.
2097 * value.c: Same.
2098 * value.h: Same.
2099 * varobj.c: Same.
2100 * x86-nat.h: Same.
2101 * xtensa-tdep.c: Same.
2102
1834d45f
AT
21032019-10-25 Ali Tamur <tamur@google.com>
2104
2105 * charset.c (find_charset_names): Reflect API change.
2106
5396ae17
CB
21072019-10-25 Christian Biesinger <cbiesinger@google.com>
2108
2109 * symtab.c (struct demangled_name_entry): Change demangled name
2110 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2111 part of the struct anymore.
2112 (symbol_set_names): No longer obstack allocate + copy the demangled
2113 name, just store the allocated name from bfd.
2114
93878f47
TT
21152019-10-25 Tom Tromey <tromey@adacore.com>
2116
2117 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2118 (bsearch_cie_cmp, add_cie): Remove.
2119 (find_cie): Reimplement.
2120 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2121 (dwarf2_build_frame_info): Update.
2122
7b71fc97
L
21232019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2124
2125 PR gdb/25126
2126 * symfile.c (reread_symbols): Call forget_cached_source_info to
2127 clear the stale source cache.
2128
cbb5a2ea
CB
21292019-10-24 Christian Biesinger <cbiesinger@google.com>
2130
2131 * configure: Regenerate.
2132 * configure.ac: Remove code that sets python_has_threads.
2133
71737c43
CB
21342019-10-24 Christian Biesinger <cbiesinger@google.com>
2135
2136 * config.in: Regenerate.
2137 * configure: Regenerate.
2138 * configure.ac: Remove the code that uses sed to get the python
2139 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2140
33d569b7
AB
21412019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2144 error paths.
2145
f16f7b7c
TT
21462019-10-23 Tom Tromey <tom@tromey.com>
2147
2148 * arc-tdep.c: Remove ".." from include.
2149 * frv-tdep.c: Remove ".." from include.
2150 * lm32-tdep.c: Remove ".." from include.
2151 * microblaze-tdep.c: Remove ".." from include.
2152 * or1k-tdep.h: Remove ".." from include.
2153 * s12z-tdep.c: Remove ".." from include.
2154 * Makefile.in (OPCODES_CFLAGS): Add comment.
2155 (TOP_CFLAGS): New variable.
2156 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2157
6999161a
TT
21582019-10-23 Tom Tromey <tom@tromey.com>
2159
2160 * Makefile.in (READLINE_DIR): Update.
2161
12e7c35e
TBA
21622019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2163
2164 * infcall.c (call_function_by_hand_dummy): Fix the function
2165 comment. And extract out a code section into...
2166 (reserve_stack_space): ...this new function.
2167
37055cad
TBA
21682019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2169
2170 * infcall.c (value_arg_coerce): Remove an unused parameter.
2171 (call_function_by_hand_dummy): Update the call to
2172 'value_arg_coerce'.
2173
39bcc47c
TBA
21742019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2175
2176 * infcall.c (call_function_by_hand_dummy): Refactor.
2177
bd888c0f
TBA
21782019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2179
2180 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2181
c12d372d
TT
21822019-10-23 Tom Tromey <tom@tromey.com>
2183
2184 * configure: Rebuild.
2185 * configure.ac: Don't check for sigprocmask.
2186 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2187
4d0b984b
TT
21882019-10-23 Tom Tromey <tom@tromey.com>
2189
2190 * configure: Rebuild.
2191 * acinclude.m4: Use m4_include, not sinclude.
2192
7e785608
TV
21932019-10-23 Tom de Vries <tdevries@suse.de>
2194
2195 PR breakpoints/24687
2196 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2197
403772ef
CB
21982019-10-22 Christian Biesinger <cbiesinger@google.com>
2199
2200 * symtab.c (struct demangled_name_entry) <language>: Change from
2201 bitfield to regular variable.
2202
3a494279
CB
22032019-10-22 Christian Biesinger <cbiesinger@google.com>
2204
2205 * symtab.c (struct demangled_name_entry): Add a constructor.
2206 (free_demangled_name_entry): New function to call the destructor
2207 for demangled_name_entry.
2208 (create_demangled_names_hash): Pass free_demangled_name_entry to
2209 htab_create_alloc.
2210 (symbol_set_names): Call placement new for demangled_name_entry.
2211 * utils.c: No longer include xxhash.h here, now that fast_hash
2212 is inlined in the header.
2213 * utils.h: Instead, include it here.
2214
ccb1ba62
CB
22152019-10-22 Christian Biesinger <cbiesinger@google.com>
2216
2217 * Makefile.in: Link with libxxhash.
2218 * config.in: Regenerate.
2219 * configure: Regenerate.
2220 * configure.ac: Search for libxxhash.
2221 * utils.c (fast_hash): Use xxhash if present.
2222
1a6ff1a9
CB
22232019-10-22 Christian Biesinger <cbiesinger@google.com>
2224
2225 * utils.h (fast_hash): New function.
2226 * symtab.c (hash_demangled_name_entry): Call new function
2227 fast_hash.
2228
7bb43059
CB
22292019-10-22 Christian Biesinger <cbiesinger@google.com>
2230
2231 * symtab.c (struct demangled_name_entry): Change type of mangled
2232 to gdb::string_view. Also adds a constructor that takes the
2233 mangled name.
2234 (hash_demangled_name_entry): Update.
2235 (eq_demangled_name_entry): Update.
2236 (free_demangled_name_entry): New function to call the destructor
2237 now that this is not a POD anymore.
2238 (create_demangled_names_hash): Pass free_demangled_name_entry to
2239 htab_create_alloc.
2240 (symbol_set_names): Update.
2241
7ba99d21
AT
22422019-10-21 Ali Tamur <tamu@google.com>
2243
2244 * dwarf2read.c (dir_index): Change type.
2245 (file_name_index): Likewise.
2246 (line_header::include_dir_at): Change comment and implementation on
2247 whether it is DWARF 5.
2248 (line_header::is_valid_file_index): New function.
2249 (line_header::file_name_at): Change comment and implementation on
2250 whether it is DWARF 5.
2251 (line_header::file_names): Change to private field renamed as
2252 m_file_names and introduce a new accessor method.
2253 (line_header::file_names_size): New method.
2254 (line_header::include_dirs): Change to private field and rename as
2255 m_include_dirs.
2256 (dw2_get_file_names_reader): Define local var at a smaller scope and
2257 reflect API change.
2258 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2259 (process_structure_scope): Likewise.
2260 (line_header::add_include_dir): Change message and reflect renaming.
2261 (line_header::add_file_name): Likewise.
2262 (read_formatted_entries): Handle DW_FORM_data16.
2263 (dwarf_decode_line_header): Fix line header length calculation.
2264 (psymtab_include_file_name): Change comment and API.
2265 (lnp_state_machine::m_file): Update comment and reflect type change.
2266 (lnp_state_machine::record_line): Reflect type change.
2267 (dwarf_decode_lines): Reflect API change.
2268 (file_file_name): Likewise.
2269 (file_full_name): Likewise.
2270
45f47c3a
AB
22712019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2272
2273 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2274
e5f3c0e3
TT
22752019-10-21 Tom Tromey <tom@tromey.com>
2276
2277 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2278
a0a461e5
TT
22792019-10-21 Tom Tromey <tom@tromey.com>
2280
2281 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2282 NM_H. Use AC_CONFIG_LINKS.
2283 * configure: Rebuild.
2284 * Makefile.in (NM_H): New variable.
2285 (generated_files): Add NM_H. Remove gcore.
2286 (nm.h, stamp-nmh): New targets.
2287
54d83b8d
TT
22882019-10-20 Tom Tromey <tom@tromey.com>
2289
2290 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2291 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2292 obsolete comment.
2293 (put_objfile_before): Now static.
2294
23771117
SM
22952019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2296
2297 * gdbsupport/common-utils.h (startswith): Change return type to
2298 bool.
2299
39ef2f62
CB
23002019-10-19 Christian Biesinger <cbiesinger@google.com>
2301
2302 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2303 * breakpoint.c (bp_locations_compare): Rename to...
2304 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2305 (update_global_location_list): Use std::sort instead of qsort.
2306 * buildsym.c (compare_line_numbers): Rename to...
2307 (lte_is_less_than): ...this, and change to std::sort semantics.
2308 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2309 instead of qsort.
2310 * disasm.c (compare_lines): Rename to...
2311 (line_is_less_than): ...this, and change to std::sort semantics.
2312 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2313 of qsort.
2314 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2315 (fde_is_less_than): ...this, and change to std::sort semantics.
2316 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2317 * mdebugread.c (compare_blocks):
2318 (block_is_less_than): ...this, and change to std::sort semantics.
2319 (sort_blocks): Call std::sort instead of qsort.
2320 * objfiles.c (qsort_cmp): Rename to...
2321 (sort_cmp): ...this, and change to std::sort semantics.
2322 (update_section_map): Call std::sort instead of qsort.
2323 * remote.c (compare_pnums): Remove.
2324 (map_regcache_remote_table): Call std::sort instead of qsort.
2325 * utils.c (compare_positive_ints): Remove.
2326 * utils.h (compare_positive_ints): Remove.
2327 * xcoffread.c (compare_lte): Remove.
2328 (arrange_linetable): Call std::sort instead of qsort.
2329
f71433ee
SDJ
23302019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2331
2332 * symfile.c (init_entry_point_info): Fix typo.
2333 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2334
85102364
TV
23352019-10-18 Tom de Vries <tdevries@suse.de>
2336
2337 * aarch64-tdep.c: Fix typos in comments.
2338 * ada-lang.c: Same.
2339 * ada-tasks.c: Same.
2340 * alpha-tdep.c: Same.
2341 * alpha-tdep.h: Same.
2342 * amd64-nat.c: Same.
2343 * amd64-windows-tdep.c: Same.
2344 * arc-tdep.c: Same.
2345 * arc-tdep.h: Same.
2346 * arch-utils.c: Same.
2347 * arm-nbsd-tdep.c: Same.
2348 * arm-tdep.c: Same.
2349 * ax-gdb.c: Same.
2350 * blockframe.c: Same.
2351 * btrace.c: Same.
2352 * c-varobj.c: Same.
2353 * coff-pe-read.c: Same.
2354 * coffread.c: Same.
2355 * cris-tdep.c: Same.
2356 * darwin-nat.c: Same.
2357 * dbxread.c: Same.
2358 * dcache.c: Same.
2359 * disasm.c: Same.
2360 * dtrace-probe.c: Same.
2361 * dwarf-index-write.c: Same.
2362 * dwarf2-frame-tailcall.c: Same.
2363 * dwarf2-frame.c: Same.
2364 * dwarf2read.c: Same.
2365 * eval.c: Same.
2366 * exceptions.c: Same.
2367 * fbsd-tdep.c: Same.
2368 * findvar.c: Same.
2369 * frame.c: Same.
2370 * frv-tdep.c: Same.
2371 * gnu-v3-abi.c: Same.
2372 * go32-nat.c: Same.
2373 * h8300-tdep.c: Same.
2374 * hppa-tdep.c: Same.
2375 * i386-linux-tdep.c: Same.
2376 * i386-tdep.c: Same.
2377 * ia64-libunwind-tdep.c: Same.
2378 * ia64-tdep.c: Same.
2379 * infcmd.c: Same.
2380 * infrun.c: Same.
2381 * linespec.c: Same.
2382 * linux-nat.c: Same.
2383 * linux-thread-db.c: Same.
2384 * machoread.c: Same.
2385 * mdebugread.c: Same.
2386 * mep-tdep.c: Same.
2387 * mn10300-tdep.c: Same.
2388 * namespace.c: Same.
2389 * objfiles.c: Same.
2390 * opencl-lang.c: Same.
2391 * or1k-tdep.c: Same.
2392 * osabi.c: Same.
2393 * ppc-linux-nat.c: Same.
2394 * ppc-linux-tdep.c: Same.
2395 * ppc-sysv-tdep.c: Same.
2396 * printcmd.c: Same.
2397 * procfs.c: Same.
2398 * record-btrace.c: Same.
2399 * record-full.c: Same.
2400 * remote-fileio.c: Same.
2401 * remote.c: Same.
2402 * rs6000-tdep.c: Same.
2403 * s12z-tdep.c: Same.
2404 * score-tdep.c: Same.
2405 * ser-base.c: Same.
2406 * ser-go32.c: Same.
2407 * skip.c: Same.
2408 * sol-thread.c: Same.
2409 * solib-svr4.c: Same.
2410 * solib.c: Same.
2411 * source.c: Same.
2412 * sparc-nat.c: Same.
2413 * sparc-sol2-tdep.c: Same.
2414 * sparc-tdep.c: Same.
2415 * sparc64-tdep.c: Same.
2416 * stabsread.c: Same.
2417 * stack.c: Same.
2418 * symfile.c: Same.
2419 * symtab.c: Same.
2420 * target-descriptions.c: Same.
2421 * target-float.c: Same.
2422 * thread.c: Same.
2423 * utils.c: Same.
2424 * valops.c: Same.
2425 * valprint.c: Same.
2426 * value.c: Same.
2427 * varobj.c: Same.
2428 * windows-nat.c: Same.
2429 * xcoffread.c: Same.
2430 * xstormy16-tdep.c: Same.
2431 * xtensa-tdep.c: Same.
2432
c5adaa19
TT
24332019-10-17 Tom Tromey <tromey@adacore.com>
2434
2435 * configure: Rebuild.
2436 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2437 in AC_CONFIG_FILES invocation.
2438 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2439 new-style config.status invocation.
2440
405feb71
TV
24412019-10-17 Tom de Vries <tdevries@suse.de>
2442
2443 * arm-nbsd-nat.c: Fix typos in comments.
2444 * arm-tdep.c: Same.
2445 * darwin-nat-info.c: Same.
2446 * dwarf2read.c: Same.
2447 * elfread.c: Same.
2448 * event-top.c: Same.
2449 * findvar.c: Same.
2450 * gdbtypes.c: Same.
2451 * hppa-tdep.c: Same.
2452 * i386-tdep.c: Same.
2453 * jit.c: Same.
2454 * main.c: Same.
2455 * mdebugread.c: Same.
2456 * moxie-tdep.c: Same.
2457 * nto-procfs.c: Same.
2458 * osabi.c: Same.
2459 * ppc-linux-tdep.c: Same.
2460 * remote.c: Same.
2461 * riscv-tdep.c: Same.
2462 * s390-tdep.c: Same.
2463 * sh-tdep.c: Same.
2464 * sparc-linux-tdep.c: Same.
2465 * sparc-nat.c: Same.
2466 * stack.c: Same.
2467 * target-descriptions.c: Same.
2468 * top.c: Same.
2469 * varobj.c: Same.
2470
befcd486
TT
24712019-10-16 Tom Tromey <tom@tromey.com>
2472
2473 * objfiles.h (struct objfile) <original_name>: Now const.
2474
17bfe554
CB
24752019-10-16 Christian Biesinger <cbiesinger@google.com>
2476
2477 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2478 pass on to sigsetjmp's second argument.
2479 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2480
950b7495
KS
24812019-10-16 Keith Seitz <keiths@redhat.com>
2482
2483 PR gdb/23567
2484 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2485 sections whose size is greater than the file size.
2486
ff371ec9
JW
24872019-10-16 Jim Wilson <jimw@sifive.com>
2488
2489 * riscv-tdep.c (riscv_gcc_target_options): New.
2490 (riscv_gnu_triplet_regexp): New.
2491 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2492 set_gdbarch_gnu_triplet_regexp.
2493
fec4e896
CB
24942019-10-16 Christian Biesinger <cbiesinger@google.com>
2495
2496 * Makefile.in: Add xml-builtin.h.
2497 * features/feature_to_c.sh: Add an include for xml-builtin.h
2498 to ensure that the compiler checks that the types match.
2499 * xml-builtin.h: New file.
2500 * xml-support.c (fetch_xml_builtin): Add missing const.
2501 * xml-support.h: Remove declaration of xml_builtins.
2502
d10eccaa
TV
25032019-10-16 Tom de Vries <tdevries@suse.de>
2504
2505 PR tdep/25096
2506 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2507 (amd64_classify_aggregate): ... here.
2508 (amd64_classify_aggregate_field): Handled fiels of nested structs
2509 recursively.
2510
745ff14e
TV
25112019-10-16 Tom de Vries <tdevries@suse.de>
2512
2513 PR tdep/24104
2514 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2515 that handles 'theclass'.
2516
791b7405
AB
25172019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * linespec.c (decode_digits_ordinary): Update comment.
2520 * make-target-delegates: No longer need to handle VEC case.
2521 * memrange.c (normalize_mem_ranges): Update comment.
2522 * namespace.c (add_using_directive): Update comment.
2523 * objc-lang.c (uniquify_strings): Update comment.
2524 * ppc-linux-nat.c (struct thread_points): Update comment.
2525 * probe.h (find_probes_in_objfile): Update comment.
2526 * target.h (enum flash_preserve_mode): Update comment.
2527 * varobj.c (varobj_restrict_range): Update comment.
2528 * varobj.h (varobj_list_children): Update comment.
2529
0dc32745
AB
25302019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2531
2532 * Makefile.in: Remove references to vec.h and vec.c.
2533 * aarch64-tdep.c: No longer include vec.h.
2534 * ada-lang.c: Likewise.
2535 * ada-lang.h: Likewise.
2536 * arm-tdep.c: Likewise.
2537 * ax.h: Likewise.
2538 * breakpoint.h: Likewise.
2539 * charset.c: Likewise.
2540 * cp-support.h: Likewise.
2541 * dtrace-probe.c: Likewise.
2542 * dwarf2read.c: Likewise.
2543 * extension.h: Likewise.
2544 * gdb_bfd.c: Likewise.
2545 * gdbsupport/gdb_vecs.h: Likewise.
2546 * gdbsupport/vec.c: Remove.
2547 * gdbsupport/vec.h: Remove.
2548 * gdbthread.h: Likewise.
2549 * guile/scm-type.c: Likewise.
2550 * inline-frame.c: Likewise.
2551 * machoread.c: Likewise.
2552 * memattr.c: Likewise.
2553 * memrange.h: Likewise.
2554 * namespace.h: Likewise.
2555 * nat/linux-btrace.h: Likewise.
2556 * osdata.c: Likewise.
2557 * parser-defs.h: Likewise.
2558 * progspace.h: Likewise.
2559 * python/py-type.c: Likewise.
2560 * record-btrace.c: Likewise.
2561 * rust-exp.y: Likewise.
2562 * solib-target.c: Likewise.
2563 * stap-probe.c: Likewise.
2564 * target-descriptions.c: Likewise.
2565 * target-memory.c: Likewise.
2566 * target.h: Likewise.
2567 * varobj.c: Likewise.
2568 * varobj.h: Likewise.
2569 * xml-support.h: Likewise.
2570
ae640021
AB
25712019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2572
2573 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2574 Update for new std::vector based implementation.
2575 (process_psymtab_comp_unit_reader): Likewise.
2576 (scan_partial_symbols): Likewise.
2577 (recursively_compute_inclusions): Likewise.
2578 (compute_compunit_symtab_includes): Likewise.
2579 (process_imported_unit_die): Likewise.
2580 (queue_and_load_dwo_tu): Likewise.
2581 (follow_die_sig_1): Likewise.
2582 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2583 (typedef dwarf2_per_cu_ptr): Remove.
2584 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2585 function.
2586 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2587 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2588 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2589 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2590 std::vector.
2591
55dfc88f
TT
25922019-10-15 Tom Tromey <tromey@adacore.com>
2593
2594 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2595 TID.
2596
96b49c5e
TT
25972019-10-15 Tom Tromey <tromey@adacore.com>
2598
2599 * windows-nat.c (windows_nat_target::fetch_registers)
2600 (windows_nat_target::store_registers): Rename "pid" to "tid".
2601
953cff56
TT
26022019-10-15 Tom Tromey <tromey@adacore.com>
2603
2604 * gdbarch.h, gdbarch.c: Rebuild.
2605 * gdbarch.sh (gcc_target_options): Change return type to
2606 std::string.
2607 * compile/compile.c (get_args): Update.
2608 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2609 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2610 std::string.
2611 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2612 std::string.
2613 * arch-utils.c (default_gcc_target_options): Return std::string.
2614 * arch-utils.h (default_gcc_target_options): Return std::string.
2615 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2616
81e6b8eb
CB
26172019-10-15 Christian Biesinger <cbiesinger@google.com>
2618
2619 * breakpoint.c (breakpoint_chain): Make static.
2620 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2621 of accessing breakpoint_chain.
2622
95da600f
CB
26232019-10-15 Christian Biesinger <cbiesinger@google.com>
2624
2625 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2626 to a gdb::function_view and return value to bool.
2627 * breakpoint.h (iterate_over_breakpoints): Likewise.
2628 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2629 (pop_dummy_frame): Update.
2630 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2631 (gdbscm_breakpoints): Update.
2632 * python/py-breakpoint.c (build_bp_list): Update.
2633 (gdbpy_breakpoints): Update.
2634 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2635 Update.
2636 (bpfinishpy_handle_stop): Update.
2637 (bpfinishpy_handle_exit): Update.
2638 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2639 (svr4_update_solib_event_breakpoints): Update.
2640
ba18312d
AA
26412019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2642
2643 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2644 when unwrapping single-field structs.
2645
6acc1a0b
SM
26462019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2647
2648 * dwarf2read.c: Remove includes.
2649
284782de
SM
26502019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2651
2652 * ui-out.c (ui_out::call_do_message): Silence
2653 -Wformat-nonliteral warning.
2654
073bbbb0
SM
26552019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2656
2657 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2658 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2659 include: readline/tilde.h.
2660
7b9a15e1
CB
26612019-10-12 Christian Biesinger <cbiesinger@google.com>
2662
2663 * remote.c (remote_target::get_trace_status): Remove declaration of
2664 trace_regblock_size.
2665
cc8dee1f
CB
26662019-10-12 Christian Biesinger <cbiesinger@google.com>
2667
2668 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2669 (show_user): Remove declaration of cmdlist.
2670 * cli/cli-cmds.h (max_user_call_depth): Declare.
2671 * cli/cli-script.c (execute_user_command): Remove declaration
2672 of max_user_call_depth.
2673
a83d4ef6
JW
26742019-10-11 Jim Wilson <jimw@sifive.com>
2675
5f93c5a6
JW
2676 * gdbsupport/print-utils.h (pulongest): Fix comment.
2677 (plongest): Likewise.
2678 (phex): Add missing comment, mention leading zeros.
2679 (phex_nz): Add mention of no leading zeros to comment.
2680
a83d4ef6
JW
2681 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2682 plongest instead of unsigned long long cast.
2683
26344e0c
CB
26842019-10-10 Christian Biesinger <cbiesinger@google.com>
2685
2686 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2687 for external_editor_command and gdbtk_test.
2688
c2c440a9
CB
26892019-10-10 Christian Biesinger <cbiesinger@google.com>
2690
2691 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2692 * varobj.c (varobjdebug): Move comment to...
2693 * varobj.h (varobjdebug): ...here, and declare.
2694
a31bff9d
TT
26952019-10-09 Tom Tromey <tom@tromey.com>
2696
2697 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2698 erase_data_content.
2699
7523da63
TT
27002019-10-09 Tom Tromey <tom@tromey.com>
2701
2702 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2703 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2704 * tui/tui-command.c (tui_cmd_window::resize)
2705 (tui_refresh_cmd_win): Update.
2706 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2707 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2708 * tui/tui-data.c (~tui_gen_win_info): Remove.
2709 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2710 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2711 (tui_redisplay_readline, tui_mld_flush)
2712 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2713 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2714 (tui_data_window::erase_data_content)
2715 (tui_data_item_window::rerender)
2716 (tui_data_item_window::refresh_window): Update.
2717 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2718 (box_win, tui_gen_win_info::make_window)
2719 (tui_gen_win_info::make_visible): Update.
2720 (tui_delete_win): Remove.
2721 * tui/tui-winsource.c
2722 (tui_source_window_base::do_erase_source_content): Update.
2723 (tui_show_source_line, tui_source_window_base::update_tab_width)
2724 (tui_source_window_base::update_exec_info): Update.
2725 * tui/tui-data.h (struct curses_deleter): New.
2726 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2727 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2728
a7798e7f
TT
27292019-10-09 Tom Tromey <tom@tromey.com>
2730
2731 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2732
5c45899e
TT
27332019-10-09 Tom Tromey <tom@tromey.com>
2734
2735 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2736 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2737
6d7fd9aa
TT
27382019-10-09 Tom Tromey <tom@tromey.com>
2739
2740 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2741 window height directly.
2742 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2743 declare.
2744 * tui/tui-layout.c (tui_default_win_height): Remove.
2745 (tui_default_win_viewport_height): Remove.
2746
d2dd1084
TT
27472019-10-09 Tom Tromey <tom@tromey.com>
2748
2749 * tui/tui.h: Remove comments.
2750
cff32449
TV
27512019-10-09 Tom de Vries <tdevries@suse.de>
2752
2753 * python/lib/gdb/printer/bound_registers.py: Use
2754 '^builtin_type_bound128' as regexp argument for
2755 add_builtin_pretty_printer.
2756
6a25e8a2
CB
27572019-10-09 Christian Biesinger <cbiesinger@google.com>
2758
2759 * guile/guile.c (guile_extension_script_ops): Remove forward
2760 declaration and mark as static.
2761 (guile_script_ops): Likewise.
2762 (extension_language_guile): Move further down in the file so
2763 it can reference the definitions for guile_{extension_,}script_ops.
2764
6d9d6da4
AA
27652019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2766
2767 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2768 except SORTL, DFLTCC, and KDSA.
2769
3abea05d
TT
27702019-10-08 Tom Tromey <tromey@adacore.com>
2771
2772 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2773 (struct safe_symbol_file_add_args): Remove.
2774
dde996e2
TT
27752019-10-08 Tom Tromey <tromey@adacore.com>
2776
2777 * windows-nat.c: Don't include buildsym-legacy.h.
2778
cd6fdaa1
TT
27792019-10-08 Tom Tromey <tromey@adacore.com>
2780
2781 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2782
79bb1944
CB
27832019-10-08 Christian Biesinger <cbiesinger@google.com>
2784
2785 * gdbtypes.c (overload_debug): Move comment to header.
2786 * gdbtypes.h (overload_debug): Declare.
2787 * valops.c: Remove declaration of overload_debug, instead
2788 include gdbtypes.h.
2789
34916edc
CB
27902019-10-08 Christian Biesinger <cbiesinger@google.com>
2791
2792 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2793 through _().
2794 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2795 move comment...
2796 * language.h (lang_frame_mismatch_warn): ... here. Also add
2797 declaration.
2798 * top.c (lang_frame_mismatch_warn): Remove declaration.
2799 (check_frame_language_change): Pass lang_frame_mismatch_warn
2800 through _().
2801
bad5c026
CB
28022019-10-07 Christian Biesinger <cbiesinger@google.com>
2803
2804 * c-lang.h (vtbl_ptr_name): Declare.
2805 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2806 it from the header.
2807 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2808
51f1fdc3
CB
28092019-10-07 Christian Biesinger <cbiesinger@google.com>
2810
2811 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2812 gdb_static_assert.
2813
30d1f018
WP
28142019-10-07 Weimin Pan <weimin.pan@oracle.com>
2815
606813d5
WP
2816 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2817 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2818 * ctfread.c: New file.
2819 * ctfread.h: New file.
2820 * elfread.c: Include ctfread.h.
2821 (struct elfinfo text_p): New member ctfsect.
2822 (elf_locate_sections): Mark CTF section.
2823 (elf_symfile_read): Call elfctf_build_psymtabs.
2824 * Makefile.in (LIBCTF): Add.
2825 (CLIBS): Use it.
2826 (CDEPS): Likewise.
2827 (DIST): Add ctfread.c.
606813d5
WP
2828
28292019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2830
2831 * ctfread.c (struct nextfield): Renamed to ...
2832 (struct ctf_nextfield): ... this.
2833 (struct field_info): Renamed to ...
2834 (strut ctf_field_info): ... this.
2835 (attach_fields_to_type): Update for renamed structures.
2836 (ctf_add_member_cb): Likewise.
2837 (ctf_add_enum_member_cb): Likewise.
2838 (process_struct_members): Likewise.
2839 (process_enum_type): Likewise.
30d1f018 2840
518fe38c
WP
28412019-10-07 Weimin Pan <weimin.pan@oracle.com>
2842
2843 * tracectf.h: Rename, was ctf.h.
2844 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2845 * tracefile.c: Likewise.
2846 * tracepoint.c: Remove unused include ctf.h.
2847 * mi/mi-main.c: Likewise.
2848 * Makefile.in Replace ctf.c with tracectf.c.
2849
225f296a
JB
28502019-10-06 Joel Brobecker <brobecker@adacore.com>
2851
2852 * version.in: Change version number to "9.0.50.DATE-git".
2853
77c2dba3
TT
28542019-10-03 Tom Tromey <tom@tromey.com>
2855
2856 PR rust/24976:
2857 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2858
179aed7f
AB
28592019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2860
2861 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2862 cp_search_name_hash.
2863 * NEWS: Add entry about nested function support.
2864
0a4b0913
AB
28652019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2866 Andrew Burgess <andrew.burgess@embecosm.com>
2867
2868 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2869 for nested static variables when searchin VAR_DOMAIN.
2870 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2871 global scope, update comment.
2872 (add_partial_subprogram): Call add_partial_subprogram recursively
2873 for nested subroutines when processinng Fortran.
2874 (load_partial_dies): Process the child entities of a subprogram
2875 when processing Fortran.
2876 (partial_die_parent_scope): Handle building scope
2877 for Fortran nested functions.
2878 (process_die): Record that nested functions have a scope.
2879 (new_symbol): Always record Fortran subprograms on the global
2880 symbol list.
2881 (determine_prefix): How to build the prefix for Fortran
2882 subprograms.
2883
d8c06f22
AB
28842019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2885
2886 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2887 have just sent the thread a SIGSTOP and are waiting for it to
2888 arrive.
2889
a8b3b8e9
AB
28902019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2891
2892 * btrace.c (btrace_add_pc): Remove whitespace before the template
2893 parameter in 'std::vector <...>'.
2894 (parse_xml_btrace_block): Likewise.
2895 (btrace_maint_decode_pt): Likewise.
2896 (btrace_maint_update_packets): Likewise.
2897 (btrace_maint_print_packets): Likewise.
2898 * btrace.h (struct btrace_maint_info): Likewise.
2899 * dwarf2read.c (struct type_unit_group): Likewise.
2900 (build_type_psymtabs_reader): Likewise.
2901 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2902 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2903 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2904
4d825eab
TV
29052019-10-03 Tom de Vries <tdevries@suse.de>
2906
2907 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2908 the first line of the help text for set/show style metadata.
2909
80fd2826
TT
29102019-10-02 Tom Tromey <tromey@adacore.com>
2911
2912 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2913 * gdbsupport/common-inferior.c: New file.
2914 * infcmd.c (startup_with_shell): Don't define.
2915 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2916 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2917 * inferior.h (startup_with_shell): Don't declare.
2918
70054538
CB
29192019-10-02 Christian Biesinger <cbiesinger@google.com>
2920
2921 * gdbsupport/gdb_assert.h: Include errors.h.
2922 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2923
37f6a7f4
TT
29242019-10-02 Tom Tromey <tromey@adacore.com>
2925
2926 * NEWS: Add $_ada_exception entry.
2927 * ada-lang.c (struct ada_catchpoint): Add constructor.
2928 <m_kind>: New member.
2929 (allocate_location_exception, re_set_exception): Remove
2930 "ex" parameter.
2931 (should_stop_exception): Compute $_ada_exception.
2932 (check_status_exception, print_it_exception)
2933 (print_one_exception, print_mention_exception): Remove
2934 "ex" parameter.
2935 (allocate_location_catch_exception, re_set_catch_exception)
2936 (check_status_exception, print_it_catch_exception)
2937 (print_one_catch_exception, print_mention_catch_exception)
2938 (print_recreate_catch_exception)
2939 (allocate_location_catch_exception_unhandled)
2940 (re_set_catch_exception_unhandled)
2941 (check_status_exception, print_it_catch_exception_unhandled)
2942 (print_one_catch_exception_unhandled)
2943 (print_mention_catch_exception_unhandled)
2944 (print_recreate_catch_exception_unhandled)
2945 (allocate_location_catch_assert, re_set_catch_assert)
2946 (check_status_assert, print_it_catch_assert)
2947 (print_one_catch_assert, print_mention_catch_assert)
2948 (print_recreate_catch_assert)
2949 (allocate_location_catch_handlers, re_set_catch_handlers)
2950 (check_status_handlers, print_it_catch_handlers)
2951 (print_one_catch_handlers, print_mention_catch_handlers)
2952 (print_recreate_catch_handlers): Remove.
2953 (create_ada_exception_catchpoint): Update.
2954 (initialize_ada_catchpoint_ops): Update.
2955
fccf9de1
TT
29562019-10-02 Tom Tromey <tromey@adacore.com>
2957
2958 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2959 (create_excep_cond_exprs): Simplify exception string computation.
2960 (ada_exception_catchpoint_cond_string): Likewise.
2961
4b610737
TT
29622019-10-02 Tom Tromey <tromey@adacore.com>
2963
2964 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2965 * ada-lang.c (lesseq_defined_than): Handle
2966 LOC_STATIC.
2967 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2968 parameter.
2969 (dwarf2_has_info): Likewise.
2970 (new_symbol): Set maybe_copied on symbol when
2971 appropriate.
2972 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2973 parameter.
2974 <can_copy>: New member.
2975 * elfread.c (record_minimal_symbol): Set maybe_copied
2976 on symbol when appropriate.
2977 (elf_symfile_read): Update call to dwarf2_has_info.
2978 * minsyms.c (lookup_minimal_symbol_linkage): New
2979 function.
2980 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2981 * symtab.c (get_symbol_address, get_msymbol_address):
2982 New functions.
2983 * symtab.h (get_symbol_address, get_msymbol_address):
2984 Declare.
2985 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2986 maybe_copied.
2987 (struct symbol, struct minimal_symbol) <maybe_copied>:
2988 New member.
2989
1dd58850
TT
29902019-10-02 Tom Tromey <tromey@adacore.com>
2991
2992 * source.c (struct current_source_location): New.
2993 (current_source_key): New global.
2994 (current_source_symtab, current_source_line)
2995 (current_source_pspace): Remove.
2996 (get_source_location): New function.
2997 (get_current_source_symtab_and_line)
2998 (set_default_source_symtab_and_line)
2999 (set_current_source_symtab_and_line)
3000 (clear_current_source_symtab_and_line, select_source_symtab)
3001 (info_source_command, print_source_lines_base)
3002 (info_line_command, search_command_helper, _initialize_source):
3003 Update.
3004
5c281dbb
TT
30052019-10-02 Tom Tromey <tromey@adacore.com>
3006
3007 * source.c (select_source_symtab): Don't call
3008 decode_line_with_current_source.
3009
d3d32391
AB
30102019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3011
3012 * symtab.c (lookup_global_symbol): Search global block.
3013
38583298
TT
30142019-10-02 Tom Tromey <tromey@adacore.com>
3015
3016 * coffread.c (process_coff_symbol): Update.
3017 * dwarf2read.c (var_decode_location, new_symbol): Update.
3018 * mdebugread.c (parse_symbol): Update.
3019 * objfiles.c (relocate_one_symbol): Update.
3020 * stabsread.c (define_symbol, fix_common_block)
3021 (scan_file_globals): Update.
3022 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3023 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3024 * xcoffread.c (process_xcoff_symbol): Update.
3025
9344c18f
AA
30262019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3027
3028 * MAINTAINERS: Update my email address.
3029
df07e2c7
AB
30302019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3031
3032 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3033 std::vector.
3034 (build_type_psymtabs_reader): Update for std::vector.
3035 (build_type_psymtab_dependencies): Likewise.
3036 * dwarf2read.h: Remove use of DEF_VEC_P.
3037 (typedef sig_type_ptr): Delete.
3038
554ac434
AB
30392019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3040
3041 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3042 to std::vector.
3043 (btrace_maint_decode_pt): Likewise, and move allocation of the
3044 vector outside of the loop.
3045 (btrace_maint_update_packets): Update to handle change from VEC to
3046 std::vector.
3047 (btrace_maint_print_packets): Likewise.
3048 (maint_info_btrace_cmd): Likewise.
3049 * btrace.h: Remove use of DEF_VEC_O.
3050 (typedef btrace_pt_packet_s): Delete.
3051 (struct btrace_maint_info) <packets>: Change fromm VEC to
3052 std::vector.
3053 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3054
46f29a9a
AB
30552019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3056
3057 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3058 make accesses into the vector constant references.
3059 (btrace_add_pc): Update for std::vector.
3060 (btrace_stitch_bts): Likewise.
3061 (parse_xml_btrace_block): Likewise.
3062 (btrace_maint_update_packets): Likewise.
3063 (btrace_maint_print_packets): Likewise.
3064 (maint_info_btrace_cmd): Likewise.
3065 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3066 std::vector.
3067 (btrace_data::empty): Likewise.
3068 (btrace_data_append): Likewise.
3069 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3070 (typedef btrace_block_s): Delete.
3071 (struct btrace_block): Add constructor.
3072 (struct btrace_data_bts) <blocks>: Change to std::vector.
3073 * nat/linux-btrace.c (perf_event_read_bts): Update for
3074 std::vector.
3075 (linux_read_bts): Likewise.
3076
d770d56f
TT
30772019-10-01 Tom Tromey <tom@tromey.com>
3078
3079 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3080
9d636d67
TT
30812019-10-01 Tom Tromey <tom@tromey.com>
3082
3083 * stack.c (print_frame, info_frame_command_core): Use
3084 styled_string.
3085 * linux-thread-db.c (try_thread_db_load_1)
3086 (try_thread_db_load_from_pdir_1): Use styled_string.
3087 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3088 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3089 (maybe_print_unsupported_script_warning)
3090 (maybe_print_script_not_found_warning): Use styled_string.
3091 * ada-lang.c (user_select_syms): Use styled_string.
3092
7f6aba03
TT
30932019-10-01 Tom Tromey <tom@tromey.com>
3094
3095 * p-lang.c (pascal_printstr): Use metadata style.
3096 * value.c (show_convenience): Use metadata style.
3097 * valprint.c (valprint_check_validity, val_print_optimized_out)
3098 (val_print_not_saved, val_print_unavailable)
3099 (val_print_invalid_address, generic_val_print, val_print)
3100 (value_check_printable, val_print_array_elements): Use metadata
3101 style.
3102 * ui-out.h (class ui_out) <field_fmt>: New overload.
3103 <do_field_fmt>: Add style parameter.
3104 * ui-out.c (ui_out::field_fmt): New overload.
3105 * typeprint.c (type_print_unknown_return_type)
3106 (val_print_not_allocated, val_print_not_associated): Use metadata
3107 style.
3108 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3109 parameter.
3110 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3111 * tracepoint.c (tvariables_info_1): Use metadata style.
3112 * stack.c (print_frame_arg, print_frame_info, print_frame)
3113 (info_frame_command_core): Use metadata style.
3114 * skip.c (info_skip_command): Use metadata style.
3115 * rust-lang.c (rust_print_enum): Use metadata style.
3116 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3117 metadata style.
3118 * python/py-framefilter.c (py_print_single_arg): Use metadata
3119 style.
3120 * printcmd.c (do_one_display, print_variable_and_value): Use
3121 metadata style.
3122 * p-valprint.c (pascal_val_print)
3123 (pascal_object_print_value_fields): Use metadata style.
3124 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3125 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3126 parameter.
3127 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3128 * m2-valprint.c (m2_print_long_set): Use metadata style.
3129 * m2-typeprint.c (m2_print_type): Use metadata style.
3130 * infcmd.c (print_return_value_1): Use metadata style.
3131 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3132 * f-valprint.c (info_common_command_for_block): Use metadata
3133 style.
3134 * f-typeprint.c (f_type_print_base): Use metadata style.
3135 * expprint.c (print_subexp_standard): Use metadata style.
3136 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3137 * cli/cli-style.h (class cli_style_option): Add constructor.
3138 (metadata_style): Declare.
3139 * cli/cli-style.c (metadata_style): New global.
3140 (_initialize_cli_style): Register metadata style.
3141 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3142 parameter.
3143 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3144 * c-typeprint.c (c_type_print_base_struct_union)
3145 (c_type_print_base_1): Use metadata style.
3146 * breakpoint.c (watchpoint_value_print)
3147 (print_one_breakpoint_location): Use metadata style.
3148 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3149 style.
3150 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3151 style.
3152 * ada-valprint.c (val_print_packed_array_elements, printstr)
3153 (print_field_values, ada_val_print_ref, ada_val_print): Use
3154 metadata style.
3155 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3156 style.
3157 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3158 style.
3159 * ada-lang.c (user_select_syms): Use metadata style.
3160
14309bb6
TT
31612019-10-01 Tom Tromey <tom@tromey.com>
3162
3163 * cli/cli-cmds.c (pwd_command): Style output.
3164
6a831f06
PA
31652019-10-01 Pedro Alves <palves@redhat.com>
3166 Tom Tromey <tom@tromey.com>
3167
3168 * symtab.c (print_symbol_info): Use %ps.
3169 (print_msymbol_info): Use %ps.
3170 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3171 * printcmd.c (print_variable_and_value): Use %ps.
3172 * macrocmd.c (show_pp_source_pos): Use %ps.
3173 * infrun.c (print_exited_reason): Use ui_out::message.
3174 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3175 (describe_other_breakpoints): Use ui_out::message and new
3176 formats.
3177 (say_where): Use new formats.
3178 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3179 and new formats.
3180
2a3c1174
PA
31812019-10-01 Pedro Alves <palves@redhat.com>
3182 Tom Tromey <tom@tromey.com>
3183
3184 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3185 (test_gdb_formats): New function.
3186 (run_tests): Call it.
3187 (test_format_specifier): Update.
3188 * utils.h (fputs_filtered): Update comment.
3189 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3190 (fputs_styled_unfiltered): Declare.
3191 * utils.c (fputs_styled_unfiltered): New function.
3192 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3193 (vfprintf_filtered): Update.
3194 (vfprintf_unfiltered, vprintf_filtered): Update.
3195 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3196 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3197 disallow_ui_out_field>: New constants.
3198 (enum class field_kind): New.
3199 (struct base_field_s, struct signed_field_s): New.
3200 (signed_field): New function.
3201 (struct string_field_s): New.
3202 (string_field): New function.
3203 (struct styled_string_s): New.
3204 (styled_string): New function.
3205 (class ui_out) <message>: Add comment.
3206 <vmessage, call_do_message>: New methods.
3207 <do_message>: Add style parameter.
3208 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3209 methods.
3210 (ui_out::message): Rewrite.
3211 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3212 parameter.
3213 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3214 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3215 gdb_extensions parameter.
3216 (class format_piece): Add parameter to constructor.
3217 (n_int_args): New field.
3218 * gdbsupport/format.c (format_pieces::format_pieces): Add
3219 gdb_extensions parameter. Handle '*'.
3220 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3221 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3222 vfprintf_styled_no_gdbfmt.
3223 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3224 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3225 unfiltered output.
3226 * ui-style.h (struct ui_file_style) <ptr>: New method.
3227
0dfe5bfb
TT
32282019-10-01 Tom Tromey <tom@tromey.com>
3229
3230 * unittests/format_pieces-selftests.c: Update. Add final format.
3231 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3232 empty literal pieces.
3233
e43b10e1
TT
32342019-10-01 Tom Tromey <tom@tromey.com>
3235
3236 * ui-out.h (enum class ui_out_style_kind): Remove.
3237 (class ui_out) <field_string, field_stsream, do_field_string>:
3238 Change type of "style".
3239 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3240 (ui_out::field_string): Update.
3241 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3242 of "style".
3243 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3244 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3245 * stack.c (print_frame_arg, print_frame_info, print_frame):
3246 Update.
3247 * source.c (print_source_lines_base): Update.
3248 * solib.c (info_sharedlibrary_command): Update.
3249 * skip.c (info_skip_command): Update.
3250 * record-btrace.c (btrace_call_history_src_line)
3251 (btrace_call_history): Update.
3252 * python/py-framefilter.c (py_print_frame): Update.
3253 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3254 "style".
3255 * mi/mi-out.c (mi_ui_out::do_table_header)
3256 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3257 (mi_ui_out::do_field_string): Update.
3258 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3259 Update.
3260 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3261 "style".
3262 * cli-out.c (cli_ui_out::do_table_header)
3263 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3264 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3265 (cli_ui_out::do_field_fmt): Update.
3266 * breakpoint.c (print_breakpoint_location): Update.
3267 (update_static_tracepoint): Update.
3268
cd7c32c3
PW
32692019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3270
3271 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3272 conversion of gdb_datadir.
3273 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3274 remove not needed c_str ().
3275
8fe0f950
AT
32762019-09-30 Ali Tamur <tamur@google.com>
3277
3278 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3279 (dwarf2_string_attr): Likewise.
3280
5f48f8f3
AT
32812019-09-30 Ali Tamur <tamur@google.com>
3282
3283 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3284 (process_full_type_unit): Likewise.
3285 (dump_die_shallow): Likewise.
3286 (cu_debug_loc_section): Likewise.
3287
6fb08628
CB
32882019-09-28 Christian Biesinger <cbiesinger@google.com>
3289
3290 * minsyms.c (compare_minimal_symbols): Rename to...
3291 (minimal_symbol_is_less_than): ...this, and adjust to STL
3292 conventions (return bool, take arguments as references)
3293 (minimal_symbol_reader::install): Call std::sort instead
3294 of qsort.
3295
c7ee338a
CB
32962019-09-29 Christian Biesinger <cbiesinger@google.com>
3297
3298 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3299 hash and why.
3300 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3301 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3302
703a86c2
SM
33032019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3304
3305 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3306 * psympriv.h (add_psymbol_to_list): Move comment here and update
3307 it.
3308
0df0352a
TV
33092019-09-29 Tom de Vries <tdevries@suse.de>
3310
3311 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3312 Use $tmpdir/$(basename "$output_file").dwz instead of
3313 "${output_file}.dwz".
3314
ad75efa6
SM
33152019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3316
3317 PR gdb/25045
3318 * hppa-linux-nat.c: Include gdbarch.h.
3319
ececd218
CB
33202019-09-26 Christian Biesinger <cbiesinger@google.com>
3321
3322 * blockframe.c (find_pc_partial_function): Change return type to bool.
3323 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3324 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3325 (stub_gnu_ifunc_resolve_name): Likewise.
3326 * symtab.c (compare_filenames_for_search): Likewise.
3327 (compare_glob_filenames_for_search): Likewise.
3328 (matching_obj_sections): Likewise.
3329 (symbol_matches_domain): Likewise.
3330 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3331 (find_line_pc): Change return type to bool.
3332 (find_line_pc_range): Likewise.
3333 (producer_is_realview): Likewise.
3334 * symtab.h (symbol_matches_domain): Likewise.
3335 (find_pc_partial_function): Likewise.
3336 (find_pc_line_pc_range): Likewise.
3337 (in_gnu_ifunc_stub): Likewise.
3338 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3339 (find_line_pc): Likewise.
3340 (find_line_pc_range): Likewise.
3341 (matching_obj_sections): Likewise.
3342 (find_line_symtab): Change out parameter to bool.
3343 (producer_is_realview): Change return type to bool.
3344 (compare_filenames_for_search): Likewise.
3345 (compare_glob_filenames_for_search): Likewise.
3346
27a900b8
TT
33472019-09-26 Tom Tromey <tom@tromey.com>
3348
3349 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3350 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3351 * gdb_usleep.h: Remove.
3352 * gdb_usleep.c: Remove.
3353 * utils.c: Don't include gdb_usleep.h.
3354
5d63b30a
TT
33552019-09-26 Tom Tromey <tromey@adacore.com>
3356
3357 * python/py-type.c (type_to_type_object): Call check_typedef
3358 for stub types.
3359
12904d37
TT
33602019-09-26 Tom Tromey <tom@tromey.com>
3361
3362 * utils.h (initialize_utils): Don't declare.
3363 * top.c (gdb_init): Don't call initialize_utils.
3364 * utils.c (initialize_utils): Remove. Move contents...
3365 (_initialize_utils): ... here.
3366
858f25f0
TT
33672019-09-25 Tom Tromey <tom@tromey.com>
3368
3369 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3370 * utils.h (make_hex_string): Don't declare.
3371 * utils.c (make_hex_string): Remove.
3372
3d435220
TV
33732019-09-24 Tom de Vries <tdevries@suse.de>
3374
3375 PR gdb/23815
3376 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3377 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3378
ddd44b70
DD
33792019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3380
3381 * NEWS: Mention new simulator port for PRU.
3382
f945dedf
CB
33832019-09-23 Christian Biesinger <cbiesinger@google.com>
3384
3385 * ada-exp.y (write_object_remaining): Update.
3386 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3387 and eliminate the static buffer.
3388 (ada_decode_symbol): Update.
3389 (ada_la_decode): Update.
3390 (ada_sniff_from_mangled_name): Update.
3391 (is_valid_name_for_wild_match): Update.
3392 (ada_lookup_name_info::matches): Update and simplify.
3393 (name_matches_regex): Update.
3394 (ada_add_global_exceptions): Update.
3395 * ada-lang.h (ada_decode): Update signature.
3396 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3397 * dwarf-index-write.c (debug_names::insert): Update.
3398
7ab78ccb
SM
33992019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3400
3401 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3402 formatting.
3403
9252448b
SM
34042019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3405
3406 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3407 Change "nonzero" to "true" in documentation.
3408
626ca2c0
CB
34092019-09-20 Christian Biesinger <cbiesinger@google.com>
3410
3411 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3412 (_initialize_darwin_solib): Don't set
3413 darwin_so_ops.lookup_lib_global_symbol.
3414 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3415 set_gdbarch_iterate_over_objfiles_in_search_order.
3416 (elf_lookup_lib_symbol): Rename to...
3417 (svr4_iterate_over_objfiles_in_search_order): this, and update
3418 to iterate semantics.
3419 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3420 * solib.c (solib_global_lookup): Remove.
3421 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3422 (solib_global_lookup): Remove.
3423 * symtab.c (lookup_global_or_static_symbol): Remove call to
3424 solib_global_lookup.
3425
5a3a0d63
JB
34262019-09-20 Joel Brobecker <brobecker@adacore.com>
3427
3428 * NEWS: Move entries about default MI version now being
3429 version 3, and about the GDB/MI fix for multi-location
3430 breakpoints to the "since GDB 8.3" section.
3431
ffea1427
JB
34322019-09-20 Joel Brobecker <brobecker@adacore.com>
3433
3434 GDB 8.3.1 released.
3435
abf516c6
UW
34362019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3437
3438 * NEWS: Mention that Cell/B.E. debugging support was removed.
3439 * MAINTAINERS: Remove spu target.
3440
3441 * config/djgpp/fnchange.lst: Remove entries for removed files.
3442
3443 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3444 spu-multiarch.o, and spu-tdep.o.
3445 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3446 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3447 spu-multiarch.c, and spu-tdep.c.
3448 * spu-linux-nat.c: Remove file.
3449 * spu-multiarch.c: Remove file.
3450 * spu-tdep.c: Remove file.
3451 * spu-tdep.h: Remove file.
3452 * solib-spu.c: Remove file.
3453 * solib-spu.h: Remove file.
3454
3455 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3456 * configure.nat (spu-linux): Remove.
3457 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3458 solib-multiarch.o from gdb_target_obs.
3459 (spu*-*-*): Remove.
3460
3461 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3462 feature flag.
3463 (ppc_linux_no_features): Update.
3464 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3465 Cell/B.E. support.
3466 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3467 (tdesc_powerpc_cell64l): Likewise.
3468 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3469 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3470 Cell/B.E. support.
3471 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3472 Do not include "features/rs6000/powerpc-cell32l.c" or
3473 "features/rs6000/powerpc-cell64l.c".
3474 (ppc_linux_spu_section): Remove.
3475 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3476 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3477 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3478 (ppc_linux_spe_context_lookup): Remove.
3479 (ppc_linux_spe_context_inferior_created): Remove.
3480 (ppc_linux_spe_context_solib_loaded): Remove.
3481 (ppc_linux_spe_context_solib_unloaded): Remove.
3482 (ppc_linux_spe_context): Remove.
3483 (struct ppu2spu_cache): Remove.
3484 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3485 (struct ppu2spu_data): Remove.
3486 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3487 ppu2spu_unwind): Remove.
3488 (ppc_linux_init_abi): Remove Cell/B.E. support.
3489 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3490
3491 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3492 (rs6000/powerpc-cell64l-expedite): Likewise
3493 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3494 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3495 rs6000/powerpc-cell64l.xml.
3496 * features/rs6000/powerpc-cell32l.xml: Remove.
3497 * features/rs6000/powerpc-cell64l.xml: Likewise.
3498 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3499 * features/rs6000/powerpc-cell64l.c: Likewise.
3500 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3501 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3502 * regformats/reg-spu.dat: Remove.
3503
3504 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3505 * corelow.c (struct spuid_list): Remove.
3506 (add_to_spuid_list): Remove.
3507 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3508 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3509 (remote_protocol_features): Remove associated entries.
3510 (_initialize_remote): No longer initialize them.
3511 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3512 * linux-nat.c (SPUFS_MAGIC): Remove.
3513 (linux_proc_xfer_spu): Remove.
3514 (spu_enumerate_spu_ids): Remove.
3515 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3516 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3517 (linux_make_corefile_notes): No longer call it.
3518
3519 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3520 (cooked_write_test): Likewise.
3521
78e8cb91
TT
35222019-09-20 Tom Tromey <tom@tromey.com>
3523
3524 * NEWS: Mention case-sensitivity of TUI commands.
3525 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3526 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3527 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3528
f074b67e
TT
35292019-09-20 Tom Tromey <tom@tromey.com>
3530
3531 * tui/tui-source.c (tui_source_window::set_contents): Use
3532 make_unique_xstrdup.
3533 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3534 make_unique_xstrdup.
3535
63c4bf19
TT
35362019-09-20 Tom Tromey <tom@tromey.com>
3537
3538 * tui/tui-data.c: Remove separator comments.
3539 * tui/tui-layout.c: Remove separator comments.
3540 * tui/tui-win.c: Remove separator comments.
3541 * tui/tui-wingeneral.c: Remove separator comments.
3542
43df9b2f
TT
35432019-09-20 Tom Tromey <tom@tromey.com>
3544
3545 * tui/tui.h (strcat_to_buf): Don't declare.
3546 * tui/tui.c (strcat_to_buf): Remove.
3547
7226433c
TT
35482019-09-20 Tom Tromey <tom@tromey.com>
3549
3550 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3551 from "fullname".
3552 * tui/tui-source.c (tui_source_window::set_contents)
3553 (tui_source_window::location_matches_p)
3554 (tui_source_window::maybe_update): Update.
3555
80df3337
TT
35562019-09-20 Tom Tromey <tom@tromey.com>
3557
3558 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3559 Update.
3560 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3561 prefix.
3562 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3563 (tui_data_window::line_from_reg_element_no)
3564 (tui_data_window::first_reg_element_no_inline)
3565 (tui_data_window::show_registers)
3566 (tui_data_window::show_register_group)
3567 (tui_data_window::display_registers_from)
3568 (tui_data_window::display_registers_from_line)
3569 (tui_data_window::first_data_item_displayed)
3570 (tui_data_window::delete_data_content_windows)
3571 (tui_data_window::erase_data_content)
3572 (tui_data_window::do_scroll_vertical)
3573 (tui_data_window::refresh_window)
3574 (tui_data_window::check_register_values): Update.
3575
9923f347
TT
35762019-09-20 Tom Tromey <tom@tromey.com>
3577
3578 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3579 (struct tui_locator_window) <full_name, proc_name>: Now
3580 std::string.
3581 * tui/tui-stack.c (tui_locator_window::make_status_line)
3582 (tui_locator_window::set_locator_fullname)
3583 (tui_locator_window::set_locator_info): Update.
3584 * tui/tui-source.c (tui_source_window::set_contents)
3585 (tui_source_window::showing_source_p): Update.
3586
b76251ab
TT
35872019-09-20 Tom Tromey <tom@tromey.com>
3588
3589 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3590 Don't call tui_locator_win_info_ptr.
3591
0891be08
TT
35922019-09-20 Tom Tromey <tom@tromey.com>
3593
3594 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3595
1b935acf
TT
35962019-09-20 Tom Tromey <tom@tromey.com>
3597
3598 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3599 height for locator.
3600 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3601 * tui/tui-layout.c (show_source_disasm_command, show_data)
3602 (show_source_or_disasm_and_command): Use 1 as height for locator.
3603
9abd8a65
TT
36042019-09-20 Tom Tromey <tom@tromey.com>
3605
3606 * tui/tui.c (tui_enable): Update.
3607 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3608 Update.
3609 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3610 Update.
3611 * tui/tui-data.c (win_resized): Now bool.
3612 (tui_win_resized): Return bool.
3613 (tui_set_win_resized_to): Accept a bool.
3614
b5457826
TT
36152019-09-20 Tom Tromey <tom@tromey.com>
3616
3617 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3618 Change type of "refresh_values_only".
3619 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3620 type of "refresh_values_only".
3621
6b915f7d
TT
36222019-09-20 Tom Tromey <tom@tromey.com>
3623
3624 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3625 std::string.
3626 (tui_disassemble): Add "pos" parameter.
3627 (tui_disasm_window::set_contents): Simplify.
3628
2ad52f6f
TT
36292019-09-20 Tom Tromey <tom@tromey.com>
3630
3631 * tui/tui-winsource.h (struct tui_source_window_base)
3632 <show_source_content>: Now private.
3633 * tui/tui-winsource.c
3634 (tui_source_window_base::show_source_content): Don't handle empty
3635 content case.
3636
b3b1bde6
TT
36372019-09-20 Tom Tromey <tom@tromey.com>
3638
3639 * tui/tui-layout.c (show_source_disasm_command)
3640 (show_source_or_disasm_and_command): Don't call
3641 show_source_content.
3642
71a25ed2
TT
36432019-09-20 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3646 Declare.
3647 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3648 from tui_make_status_line.
3649 (tui_locator_window::rerender): Update.
3650
f8532154
TT
36512019-09-20 Tom Tromey <tom@tromey.com>
3652
3653 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3654 (tui_locator_window::rerender): Update.
3655
2d81b349
TT
36562019-09-20 Tom Tromey <tom@tromey.com>
3657
3658 * tui/tui-winsource.h (struct tui_source_window_base)
3659 <~tui_source_window_base>: Don't declare.
3660 <fullname>: Remove.
3661 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3662 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3663 member.
3664 * tui/tui-source.c (tui_source_window::set_contents): Update.
3665 (tui_source_window::location_matches_p)
3666 (tui_source_window::maybe_update): Update.
3667
f14bec58
TT
36682019-09-20 Tom Tromey <tom@tromey.com>
3669
3670 * tui/tui-winsource.h (~tui_source_element): Remove.
3671 (tui_source_element): Update.
3672 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3673 * tui/tui-winsource.c (tui_show_source_line): Update.
3674 * tui/tui-source.c (tui_source_window::set_contents): Update.
3675 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3676
78d5933a
TT
36772019-09-20 Tom Tromey <tom@tromey.com>
3678
3679 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3680 declare.
3681 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3682 tui_clear_source_windows_detail.
3683 * tui/tui-winsource.h (struct tui_source_window_base)
3684 <clear_detail>: Don't declare.
3685 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3686 Remove.
3687 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3688
d4207696
TT
36892019-09-20 Tom Tromey <tromey@adacore.com>
3690
3691 PR ada/24919:
3692 * block.c (contained_in): Fix final return value.
3693
00f93c44
AM
36942019-09-20 Alan Modra <amodra@gmail.com>
3695
3696 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3697 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3698 (read_indirect_string_from_dwz): Use bfd accessor.
3699 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3700 * machoread.c (macho_symfile_read_all_oso): Likewise.
3701 * solib.c (solib_bfd_open): Likewise.
3702
e4153ae6
CB
37032019-09-19 Christian Biesinger <cbiesinger@google.com>
3704
3705 * eval.c: Move declaration of overload_resolution to...
3706 * value.h: ...here.
3707
c7ae7675
CB
37082019-09-19 Christian Biesinger <cbiesinger@google.com>
3709
3710 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3711 * arm-linux-tdep.c: Likewise.
3712 * arm-nbsd-nat.c: Likewise.
3713 * arm-tdep.h: Declare arm_apcs_32.
3714 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3715
e86f08d2
CB
37162019-09-19 Christian Biesinger <cbiesinger@google.com>
3717
3718 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3719 * dwarf2read.h: Declare dwarf_always_disassemble.
3720
f64e2f40
TV
37212019-09-19 Tom de Vries <tdevries@suse.de>
3722
3723 PR gdb/25009
3724 * source-cache.c (source_cache::ensure): Catch exception thrown during
3725 construction of the highlighter.
3726
fd361982
AM
37272019-09-18 Alan Modra <amodra@gmail.com>
3728
3729 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3730 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3731 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3732 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3733 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3734 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3735 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3736 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3737 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3738 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3739 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3740 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3741 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3742 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3743 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3744 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3745 * mi/mi-interp.c: Update throughout for bfd section macro and
3746 function changes.
3747 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3748 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3749
11061048
TT
37502019-09-18 Tom Tromey <tom@tromey.com>
3751
3752 * NEWS: Add entry.
3753 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3754 call rl_initialize.
3755 (tui_enable): Do not call rl_initialize.
3756
7a27b85f
CG
37572019-09-18 Christian Groessler <chris@groessler.org>
3758
3759 * alpha-linux-nat.c: Include gdbarch.h.
3760
f64eea3a
SM
37612019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3762
3763 * ui-file.c: Include cli/cli-style.h.
3764 (term_cli_styling): Remove cli_styling declaration.
3765
e6f7f6d1
AM
37662019-09-18 Alan Modra <amodra@gmail.com>
3767
3768 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3769 to bfd_asymbol_section.
3770
1d38e9d1
AM
37712019-09-18 Alan Modra <amodra@gmail.com>
3772
3773 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3774 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3775 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3776
90d92a63
AM
37772019-09-18 Alan Modra <amodra@gmail.com>
3778
3779 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3780 * spu-linux-nat.c (spu_bfd_open): Likewise.
3781
a3d181d2
CB
37822019-09-18 Christian Biesinger <cbiesinger@google.com>
3783
3784 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3785 to bool to match definition in dwarf2read.c.
3786
491144b5
CB
37872019-09-17 Christian Biesinger <cbiesinger@google.com>
3788
3789 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3790 (print_signatures): Likewise.
3791 (trust_pad_over_xvs): Likewise.
3792 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3793 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3794 * arm-linux-nat.c (arm_apcs_32): Likewise.
3795 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3796 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3797 * arm-tdep.c (arm_debug): Likewise.
3798 (arm_apcs_32): Likewise.
3799 * auto-load.c (debug_auto_load): Likewise.
3800 (auto_load_gdb_scripts): Likewise.
3801 (global_auto_load): Likewise.
3802 (auto_load_local_gdbinit): Likewise.
3803 (auto_load_local_gdbinit_loaded): Likewise.
3804 * auto-load.h (global_auto_load): Likewise.
3805 (auto_load_local_gdbinit): Likewise.
3806 (auto_load_local_gdbinit_loaded): Likewise.
3807 * breakpoint.c (disconnected_dprintf): Likewise.
3808 (breakpoint_proceeded): Likewise.
3809 (automatic_hardware_breakpoints): Likewise.
3810 (always_inserted_mode): Likewise.
3811 (target_exact_watchpoints): Likewise.
3812 (_initialize_breakpoint): Update.
3813 * breakpoint.h (target_exact_watchpoints): Change to bool.
3814 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3815 * cli/cli-cmds.c (trace_commands): Likewise.
3816 * cli/cli-cmds.h (trace_commands): Likewise.
3817 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3818 to bool*.
3819 * cli/cli-logging.c (logging_overwrite): Change to bool.
3820 (logging_redirect): Likewise.
3821 (debug_redirect): Likewise.
3822 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3823 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3824 to bool.
3825 <boolean_option_def>: Update.
3826 (struct flag_option_def): Change default type of Context to bool
3827 from int.
3828 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3829 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3830 (get_setshow_command_value_string): Likewise.
3831 * cli/cli-style.c (cli_styling): Change to bool.
3832 (source_styling): Likewise.
3833 * cli/cli-style.h (source_styling): Likewise.
3834 (cli_styling): Likewise.
3835 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3836 to bool.
3837 * command.h (var_types): Update comment.
3838 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3839 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3840 bool.
3841 (debug_compile_cplus_scopes): Likewise.
3842 * compile/compile-internal.h (compile_debug): Likewise.
3843 * compile/compile.c (compile_debug): Likewise.
3844 (struct compile_options) <raw>: Likewise.
3845 * cp-support.c (catch_demangler_crashes): Likewise.
3846 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3847 (usr_cmd_cris_dwarf2_cfi): Likewise.
3848 * csky-tdep.c (csky_debug): Likewise.
3849 * darwin-nat.c (enable_mach_exceptions): Likewise.
3850 * dcache.c (dcache_enabled_p): Likewise.
3851 * defs.h (info_verbose): Likewise.
3852 * demangle.c (demangle): Likewise.
3853 (asm_demangle): Likewise.
3854 * dwarf-index-cache.c (debug_index_cache): Likewise.
3855 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3856 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3857 * dwarf2read.c (check_physname): Likewise.
3858 (use_deprecated_index_sections): Likewise.
3859 (dwarf_always_disassemble): Likewise.
3860 * eval.c (overload_resolution): Likewise.
3861 * event-top.c (set_editing_cmd_var): Likewise.
3862 (exec_done_display_p): Likewise.
3863 * event-top.h (set_editing_cmd_var): Likewise.
3864 (exec_done_display_p): Likewise.
3865 * exec.c (write_files): Likewise.
3866 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3867 (debug_fbsd_nat): Likewise.
3868 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3869 Likewise.
3870 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3871 <backtrace_past_entry> Likewise.
3872 * gdb-demangle.h (demangle): Likewise.
3873 (asm_demangle): Likewise.
3874 * gdb_bfd.c (bfd_sharing): Likewise.
3875 * gdbcore.h (write_files): Likewise.
3876 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3877 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3878 * gdbthread.h (print_thread_events): Likewise.
3879 * gdbtypes.c (opaque_type_resolution): Likewise.
3880 (strict_type_checking): Likewise.
3881 * gnu-nat.c (gnu_debug_flag): Likewise.
3882 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3883 * guile/scm-param.c (pascm_variable): Add boolval.
3884 (add_setshow_generic): Update.
3885 (pascm_param_value): Update.
3886 (pascm_set_param_value_x): Update.
3887 * hppa-tdep.c (hppa_debug): Change to bool..
3888 * infcall.c (may_call_functions_p): Likewise.
3889 (coerce_float_to_double_p): Likewise.
3890 (unwind_on_signal_p): Likewise.
3891 (unwind_on_terminating_exception_p): Likewise.
3892 * infcmd.c (startup_with_shell): Likewise.
3893 * inferior.c (print_inferior_events): Likewise.
3894 * inferior.h (startup_with_shell): Likewise.
3895 (print_inferior_events): Likewise.
3896 * infrun.c (step_stop_if_no_debug): Likewise.
3897 (detach_fork): Likewise.
3898 (debug_displaced): Likewise.
3899 (disable_randomization): Likewise.
3900 (non_stop): Likewise.
3901 (non_stop_1): Likewise.
3902 (observer_mode): Likewise.
3903 (observer_mode_1): Likewise.
3904 (set_observer_mode): Update.
3905 (sched_multi): Change to bool.
3906 * infrun.h (debug_displaced): Likewise.
3907 (sched_multi): Likewise.
3908 (step_stop_if_no_debug): Likewise.
3909 (non_stop): Likewise.
3910 (disable_randomization): Likewise.
3911 * linux-tdep.c (use_coredump_filter): Likewise.
3912 (dump_excluded_mappings): Likewise.
3913 * linux-thread-db.c (auto_load_thread_db): Likewise.
3914 (check_thread_db_on_load): Likewise.
3915 * main.c (captured_main_1): Update.
3916 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3917 xx2_opt, boolean_opt>: Change to bool.
3918 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3919 * maint.c (maintenance_profile_p): Likewise.
3920 (per_command_time): Likewise.
3921 (per_command_space): Likewise.
3922 (per_command_symtab): Likewise.
3923 * memattr.c (inaccessible_by_default): Likewise.
3924 * mi/mi-main.c (mi_async): Likewise.
3925 (mi_async_1): Likewise.
3926 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3927 * nat/fork-inferior.h (startup_with_shell): Likewise.
3928 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3929 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3930 * nios2-tdep.c (nios2_debug): Likewise.
3931 * or1k-tdep.c (or1k_debug): Likewise.
3932 * parse.c (parser_debug): Likewise.
3933 * parser-defs.h (parser_debug): Likewise.
3934 * printcmd.c (print_symbol_filename): Likewise.
3935 * proc-api.c (procfs_trace): Likewise.
3936 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3937 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3938 (set_parameter_value): Update.
3939 (add_setshow_generic): Update.
3940 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3941 to bool*.
3942 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3943 int*.
3944 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3945 * record-btrace.c (record_btrace_target::store_registers): Update.
3946 * record-full.c (record_full_memory_query): Change to bool.
3947 (record_full_stop_at_limit): Likewise.
3948 * record-full.h (record_full_memory_query): Likewise.
3949 * remote-notif.c (notif_debug): Likewise.
3950 * remote-notif.h (notif_debug): Likewise.
3951 * remote.c (use_range_stepping): Likewise.
3952 (interrupt_on_connect): Likewise.
3953 (remote_break): Likewise.
3954 * ser-tcp.c (tcp_auto_retry): Likewise.
3955 * ser-unix.c (serial_hwflow): Likewise.
3956 * skip.c (debug_skip): Likewise.
3957 * solib-aix.c (solib_aix_debug): Likewise.
3958 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3959 (spu_auto_flush_cache_p): Likewise.
3960 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3961 Likewise.
3962 (struct info_print_options) <quiet>: Likewise.
3963 * symfile-debug.c (debug_symfile): Likewise.
3964 * symfile.c (auto_solib_add): Likewise.
3965 (separate_debug_file_debug): Likewise.
3966 * symfile.h (auto_solib_add): Likewise.
3967 (separate_debug_file_debug): Likewise.
3968 * symtab.c (basenames_may_differ): Likewise.
3969 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3970 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3971 (struct info_types_options) <quiet>: Likewise.
3972 * symtab.h (demangle): Likewise.
3973 (basenames_may_differ): Likewise.
3974 * target-dcache.c (stack_cache_enabled_1): Likewise.
3975 (code_cache_enabled_1): Likewise.
3976 * target.c (trust_readonly): Likewise.
3977 (may_write_registers): Likewise.
3978 (may_write_memory): Likewise.
3979 (may_insert_breakpoints): Likewise.
3980 (may_insert_tracepoints): Likewise.
3981 (may_insert_fast_tracepoints): Likewise.
3982 (may_stop): Likewise.
3983 (auto_connect_native_target): Likewise.
3984 (target_stop_and_wait): Update.
3985 (target_async_permitted): Change to bool.
3986 (target_async_permitted_1): Likewise.
3987 (may_write_registers_1): Likewise.
3988 (may_write_memory_1): Likewise.
3989 (may_insert_breakpoints_1): Likewise.
3990 (may_insert_tracepoints_1): Likewise.
3991 (may_insert_fast_tracepoints_1): Likewise.
3992 (may_stop_1): Likewise.
3993 * target.h (target_async_permitted): Likewise.
3994 (may_write_registers): Likewise.
3995 (may_write_memory): Likewise.
3996 (may_insert_breakpoints): Likewise.
3997 (may_insert_tracepoints): Likewise.
3998 (may_insert_fast_tracepoints): Likewise.
3999 (may_stop): Likewise.
4000 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4001 (make_thread_apply_all_options_def_group): Change argument from int*
4002 to bool*.
4003 (thread_apply_all_command): Update.
4004 (print_thread_events): Change to bool.
4005 * top.c (confirm): Likewise.
4006 (command_editing_p): Likewise.
4007 (history_expansion_p): Likewise.
4008 (write_history_p): Likewise.
4009 (info_verbose): Likewise.
4010 * top.h (confirm): Likewise.
4011 (history_expansion_p): Likewise.
4012 * tracepoint.c (disconnected_tracing): Likewise.
4013 (circular_trace_buffer): Likewise.
4014 * typeprint.c (print_methods): Likewise.
4015 (print_typedefs): Likewise.
4016 * utils.c (debug_timestamp): Likewise.
4017 (sevenbit_strings): Likewise.
4018 (pagination_enabled): Likewise.
4019 * utils.h (sevenbit_strings): Likewise.
4020 (pagination_enabled): Likewise.
4021 * valops.c (overload_resolution): Likewise.
4022 * valprint.h (struct value_print_options) <prettyformat_arrays,
4023 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4024 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4025 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4026 Likewise.
4027 * windows-nat.c (new_console): Likewise.
4028 (cygwin_exceptions): Likewise.
4029 (new_group): Likewise.
4030 (debug_exec): Likewise.
4031 (debug_events): Likewise.
4032 (debug_memory): Likewise.
4033 (debug_exceptions): Likewise.
4034 (useshell): Likewise.
4035 * windows-tdep.c (maint_display_all_tib): Likewise.
4036 * xml-support.c (debug_xml): Likewise.
4037
f1b620e9
MG
40382019-09-17 Mike Gulick <mgulick@mathworks.com>
4039
4040 * source.c (prepare_path_for_appending): New function.
4041 (openp): Make use of new function.
4042 (find_and_open_source): Search for the compilation directory and
4043 source file as a relative path beneath the directory search path.
4044
67f3ed6a
AB
40452019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4046
4047 * source-cache.c (source_cache::get_line_charpos): Catch
4048 exceptions and return false, this matches the behaviour documented
4049 in the header file.
4050
74332189
JB
40512019-09-17 Joel Brobecker <brobecker@adacore.com>
4052
4053 * ada-tasks.c (info_task): Remove quoting of the task's name.
4054
f2f24aa9
CB
40552019-09-16 Christian Biesinger <cbiesinger@google.com>
4056
4057 * symfile.c (auto_solib_add): Replace comment with a reference
4058 to the header file.
4059
6a062a93
CB
40602019-09-14 Christian Biesinger <cbiesinger@google.com>
4061
4062 * NEWS: Mention that gdb can now be compiled with Python 3
4063 on Windows.
4064
ec6c8338
AB
40652019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4066
4067 * maint.c (maint_print_section_data::maint_print_section_data):
4068 Force use of 'float log10 (float)' by casting the argument to
4069 float.
4070
aa17805f
AB
40712019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4072
4073 * maint.c: Add 'cmath' include.
4074 (struct maint_print_section_data): New structure.
4075 (print_section_index): New function.
4076 (print_bfd_section_info): Add header comment, small whitespace
4077 cleanup, and update to call new print_section_index function.
4078 (print_objfile_section_info): Likewise.
4079 (maint_obj_section_from_bfd_section): New function.
4080 (print_bfd_section_info_maybe_relocated): New function.
4081 (maintenance_info_sections): Add header comment, always use
4082 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4083
3dd9bb46
AB
40842019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4085
4086 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4087 inner scope, add check that the objfile has psymtabs before
4088 checking psymtabs_addrmap.
4089 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4090
4993045d
PW
40912019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4092
4093 * NEWS: Announce that Ada task names are now shown at more places,
4094 and between quotes (except in info task output).
4095 * gdb/ada-tasks.c (task_to_str): New function.
4096 (display_current_task_id): Call task_to_str.
4097 (task_command_1): Likewise.
4098 (print_ada_task_info): In non-mi mode, Properly align headers and data
4099 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4100
7a289707
RO
41012019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4102
4103 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4104 prstatus.pr_lwp.pr_info instead of making it up.
4105
f2aec7f6
CB
41062019-09-11 Christian Biesinger <cbiesinger@google.com>
4107
4108 * auto-load.c (auto_load_expand_dir_vars): Update.
4109 * defs.h (gdb_datadir): Change to std::string.
4110 (python_libdir): Likewise.
4111 (relocate_gdb_directory): Change return type to std::string.
4112 * guile/guile.c (gdbscm_data_directory): Update.
4113 (initialize_scheme_side): Update.
4114 * jit.c (jit_reader_dir): Change to std::string.
4115 (jit_reader_load_command): Update.
4116 * main.c (gdb_datadir): Change to std::string.
4117 (python_libdir): Likewise.
4118 (set_gdb_data_directory): Update.
4119 (relocate_path): Change to return std::string.
4120 (relocate_gdb_directory): Change to return std::string.
4121 (relocate_gdbinit_path_maybe_in_datadir): Update.
4122 (captured_main_1): Update.
4123 * python/python.c (do_start_initialization): Update.
4124 * top.c (show_gdb_datadir): Update.
4125 * xml-syscall.c (xml_init_syscalls_info): Update.
4126 (init_syscalls_info): Update.
4127
9224a013
CB
41282019-09-11 Christian Biesinger <cbiesinger@google.com>
4129
4130 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4131 out of get_init_files.
4132 (get_init_files): Update.
4133
f48cd836
CB
41342019-09-11 Christian Biesinger <cbiesinger@google.com>
4135
4136 * main.c (get_init_files): Change to use std::string.
4137 (captured_main_1): Update.
4138 (print_gdb_help): Update.
4139
9cab7ecd
AT
41402019-09-11 Ali Tamur <tamur@google.com>
4141
4142 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4143 implementation.
4144
67547d89
CB
41452019-09-11 Christian Biesinger <cbiesinger@google.com>
4146
4147 * dbxread.c (read_dbx_symtab): Update.
4148 * dwarf2read.c (load_partial_dies): Update.
4149 * mdebugread.c (parse_partial_symbols): Update.
4150 (handle_psymbol_enumerators): Update.
4151 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4152 * psymtab.c (add_psymbol_to_bcache): Likewise.
4153 (add_psymbol_to_list): Likewise.
4154 * symtab.c (symbol_set_names): Likewise.
4155 * symtab.h (symbol_set_names): Likewise.
4156 * xcoffread.c (scan_xcoff_symtab): Update.
4157
64b2d4a0
TT
41582019-09-11 Tom Tromey <tom@tromey.com>
4159
4160 * symfile-mem.c (symbol_file_add_from_memory): Use
4161 bfd_set_filename.
4162 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4163 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4164
3b00ef10
TT
41652019-09-10 Tom Tromey <tromey@adacore.com>
4166
4167 * dwarf-index-write.c (write_psymbols): Extend error message.
4168 (debug_names::insert): Add Ada code.
4169 (debug_names::write_psymbols): Remove Ada check.
4170 (debug_names) <m_string_obstack>: New member.
4171 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4172 (gdb_index_symbol_name_matcher::matches): Remove.
4173 (mapped_index_base::find_name_components_bounds): Add "lang"
4174 parameter.
4175 (mapped_index_base::build_name_components): Also split names
4176 according to Ada syntax.
4177 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4178 type of "match_callback".
4179 (check_match, check_find_bounds_finds)
4180 (dw2_expand_symtabs_matching): Update.
4181 (dw2_debug_names_iterator): Add new constructor.
4182 (dw2_debug_names_map_matching_symbols): New function.
4183 (dw2_debug_names_expand_symtabs_matching): Update.
4184 (dwarf2_debug_names_functions): Use
4185 dw2_debug_names_map_matching_symbols.
4186
aa391654
TT
41872019-09-10 Tom Tromey <tromey@adacore.com>
4188
4189 * dwarf2read.c (dw2_get_file_names_reader): Add the
4190 CU's file name to the results.
4191
b054970d
TT
41922019-09-10 Tom Tromey <tromey@adacore.com>
4193
4194 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4195 map_matching_symbols. Update.
4196 * dwarf2read.c (dw2_map_matching_symbols): Update.
4197 * psymtab.c (match_partial_symbol): Change type; update.
4198 (psym_map_matching_symbols): Likewise.
4199 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4200 type; update.
4201 * symfile.h (struct quick_symbol_functions)
4202 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4203 Remove "match".
4204
6a3dbf1b
TT
42052019-09-10 Tom Tromey <tromey@adacore.com>
4206
4207 * psymtab.c (map_block): Remove.
4208 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4209 * symtab.c (iterate_over_symbols_terminated): New function.
4210 * symtab.c (iterate_over_symbols_terminated): Declare.
4211
6969f124
TT
42122019-09-10 Tom Tromey <tromey@adacore.com>
4213
4214 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4215 * language.h (struct language_defn) <la_iterate_over_symbols>:
4216 Return bool.
4217 * symtab.c (iterate_over_symbols): Return bool.
4218 * symtab.h (iterate_over_symbols): Return bool.
4219
199b4314
TT
42202019-09-10 Tom Tromey <tromey@adacore.com>
4221
4222 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4223 (add_nonlocal_symbols): Update.
4224 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4225 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4226 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4227 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4228 Change type of "callback". Remove "data".
4229
a084a2a6
AT
4230
42312019-09-09 Ali Tamur <tamur@google.com>
4232
4233 * dwarf2read.c (comp_unit_head): Update comment.
4234 (dwarf2_dwo_name): New function declaration.
4235 (dwarf_unit_type_name): New function declaration.
4236 (read_comp_unit_head): Add support for new compilation units,
4237 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4238 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4239 (currently named as "signature") in their header. Also clarify error
4240 messages.
4241 (lookup_dwo_id): New function. Returns the dwo id of the given
4242 compile unit.
4243 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4244 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4245 functions.
4246 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4247 (dwarf2_dwo_name): Get the dwo name if present.
4248 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4249 purposes.
4250
25a2915e
TT
42512019-09-09 Tom Tromey <tom@tromey.com>
4252
4253 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4254
e4df0874
PW
42552019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4256
4257 * python/python.c (do_start_initialization): Make progname_copy static,
4258 to avoid a leak report.
4259
8634b462
TT
42602019-09-08 Tom Tromey <tom@tromey.com>
4261
4262 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4263
c7f839cb
SM
42642019-09-07 Simon Marchi <simon.marchi@efficios.com>
4265
4266 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4267 Change type to gdb::optional<block_enum>.
4268 (dw2_symtab_iter_init): Change block_index parameter type
4269 to gdb::optional<block_enum>.
4270 (dw2_lookup_symbol): Change block_index parameter
4271 type to block_enum.c
4272 (dw2_debug_names_lookup_symbol): Likewise.
4273 * psymtab.c (psym_lookup_symbol): Likewise.
4274 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4275 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4276 Likewise.
4277
ead0e69a
CB
42782019-09-06 Christian Biesinger <cbiesinger@google.com>
4279
4280 * defs.h (relocate_gdb_directory): Change int to bool in
4281 signature and rename flag to relocatable.
4282 * main.c (relocate_path): Likewise.
4283 (relocate_gdb_directory): Likewise.
4284
b16c44de
AM
42852019-09-06 Alan Modra <amodra@gmail.com>
4286
4287 * coffread.c (coff_symfile_read): Constify filename variable.
4288 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4289 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4290 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4291 * solib.c (reload_shared_libraries_1): Likewise.
4292 * symfile.c (reread_symbols): Likewise.
4293 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4294 * solib-darwin.c (darwin_bfd_open): Likewise.
4295 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4296
06ff036e
AB
42972019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4298
4299 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4300 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4301
4e962e74
TT
43022019-09-03 Tom Tromey <tromey@adacore.com>
4303
4304 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4305 types.
4306 (has_negatives): Unbias a range type bound.
4307 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4308 * gdbtypes.c (operator==): Handle new field.
4309 (create_range_type): Add "bias" parameter.
4310 (create_static_range_type, resolve_dynamic_range): Update.
4311 * gdbtypes.h (struct range_bounds) <bias>: New member.
4312 (create_range_type): Add bias parameter.
4313 * printcmd.c (print_scalar_formatted): Unbias range types.
4314 * value.c (unpack_long): Unbias range types.
4315 (pack_long): Bias range types.
4316
d90b8f26
AH
43172019-09-02 Alan Hayward <alan.hayward@arm.com>
4318
4319 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4320 probe arguments.
4321
fe01123e
AH
43222019-09-02 Alan Hayward <alan.hayward@arm.com>
4323
4324 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4325 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4326 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4327 (compile_probe_arg): Likewise.
4328 * probe.h (get_argument_count): Likewise.
4329 * solib-svr4.c (solib_event_probe_action): Likewise.
4330 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4331
e661ef01
AH
43322019-09-02 Alan Hayward <alan.hayward@arm.com>
4333
4334 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4335 code to here...
4336 (svr4_create_solib_event_breakpoints): ...from here.
4337
47a536d9
SDJ
43382019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4339
4340 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4341 suffix from warning message.
4342
d6a00eba
TT
43432019-08-30 Tom Tromey <tom@tromey.com>
4344
4345 * tui/tui-winsource.h (struct tui_source_window_base)
4346 <refresh_all>: Don't declare.
4347 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4348 Remove.
4349 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4350 tui_show_locator_content.
4351 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4352 declare.
4353 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4354 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4355 declare.
4356
55b2657b
TT
43572019-08-30 Tom Tromey <tom@tromey.com>
4358
4359 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4360
12a8555a
TT
43612019-08-30 Tom Tromey <tom@tromey.com>
4362
4363 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4364 Remove unnecessary forward declarations.
4365
900ac242
TT
43662019-08-30 Tom Tromey <tom@tromey.com>
4367
4368 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4369 rerender.
4370 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4371 tui_show_locator_content.
4372
99ab33fb
TT
43732019-08-30 Tom Tromey <tom@tromey.com>
4374
4375 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4376 (tui_locator_window::rerender): Rewrite using body of previous
4377 tui_show_locator_content.
4378
e594a5d1
TT
43792019-08-30 Tom Tromey <tom@tromey.com>
4380
4381 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4382 set_locator_fullname>: New methods.
4383 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4384 Rename from tui_set_locator_fullname.
4385 (tui_locator_window::set_locator_info): Rename from
4386 tui_set_locator_info. Return bool.
4387 (tui_update_locator_fullname, tui_show_frame_info): Update.
4388
715bb467
TT
43892019-08-30 Tom Tromey <tom@tromey.com>
4390
4391 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4392
772f3f03
TT
43932019-08-30 Tom Tromey <tom@tromey.com>
4394
4395 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4396 call touchwin.
4397
108e13ab
TT
43982019-08-30 Tom Tromey <tom@tromey.com>
4399
4400 * tui/tui-wingeneral.c (box_win): Assume win_info and
4401 win_info->handle cannot be NULL.
4402
cdaa6eb4
TT
44032019-08-30 Tom Tromey <tom@tromey.com>
4404
4405 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4406 refresh_window>: Declare.
4407 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4408 resize.
4409 (tui_data_item_window::rerender): Rename from
4410 tui_display_register.
4411 (tui_data_item_window::refresh_window): New method.
4412 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4413 no-op.
4414
89df7f90
TT
44152019-08-30 Tom Tromey <tom@tromey.com>
4416
4417 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4418 regs_column_count, current_group>: Move later. Now private.
4419 <get_current_group>: New method.
4420 * tui/tui-regs.c (tui_reg_command): Update.
4421 * tui/tui-layout.c (tui_set_layout): Update.
4422
1bf2866a
TT
44232019-08-30 Tom Tromey <tom@tromey.com>
4424
4425 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4426 (tui_data_window::rerender): Don't call
4427 check_and_display_highlight_if_needed.
4428 (tui_data_window::refresh_all): Remove call to
4429 erase_data_content.
4430
0670413d
TT
44312019-08-30 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4434 (tui_data_window::display_registers_from)
4435 (tui_data_window::display_reg_element_at_line)
4436 (tui_data_window::display_registers_from_line): Remove checks of
4437 "empty".
4438
18bb55c7
TT
44392019-08-30 Tom Tromey <tom@tromey.com>
4440
4441 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4442 Don't declare.
4443 * tui/tui-regs.c (tui_data_window::show_registers): Call
4444 rerender.
4445 (tui_data_window::rerender): Rename from display_all_data.
4446 (tui_data_window::rerender): Remove old implementation.
4447
1f6d2f10
TT
44482019-08-30 Tom Tromey <tom@tromey.com>
4449
4450 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4451 text.
4452 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4453
16d01f9c
BW
44542019-08-29 Bernhard Wodok <barto@gmx.net>
4455 Sergio Durigan Junior <sergiodj@redhat.com>
4456
4457 PR win32/24284
4458 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4459
d8f27c60
AB
44602019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4461
4462 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4463 when searching for types.
4464
1f20c35e
AB
44652019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4466
4467 * f-lang.c (f_language_defn): Use f_print_typedef.
4468 * f-lang.h (f_print_typedef): Declare.
4469 * f-typeprint.c (f_print_typedef): Define.
4470
550105b7
CB
44712019-08-27 Christian Biesinger <cbiesinger@google.com>
4472
4473 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4474
4acfdd20
AB
44752019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4476
4477 * cli/cli-utils.c (info_print_options_defs): Delete.
4478 (make_info_print_options_def_group): Delete.
4479 (extract_info_print_options): Delete.
4480 (info_print_command_completer): Delete.
4481 (info_print_args_help): Add extra parameter, and optionally
4482 include text about -n flag.
4483 * cli/cli-utils.h (struct info_print_options): Delete.
4484 (extract_info_print_options): Delete declaration.
4485 (info_print_command_completer): Delete declaration.
4486 (info_print_args_help): Add extra parameter, extend header
4487 comment.
4488 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4489 search_symbols.
4490 * stack.c (struct info_print_options): New type.
4491 (info_print_options_defs): New file scoped variable.
4492 (make_info_print_options_def_group): New static function.
4493 (info_print_command_completer): New static function.
4494 (info_locals_command): Update to use new local functions.
4495 (info_args_command): Likewise.
4496 (_initialize_stack): Add extra parameter to calls to
4497 info_print_args_help.
4498 * symtab.c (search_symbols): Add extra parameter, use this to
4499 possibly excluse non-debug symbols.
4500 (symtab_symbol_info): Add extra parameter, which is passed on to
4501 search_symbols.
4502 (struct info_print_options): New type.
4503 (info_print_options_defs): New file scoped variable.
4504 (make_info_print_options_def_group): New static function.
4505 (info_print_command_completer): New static function.
4506 (info_variables_command): Update to use local functions, and pass
4507 extra parameter through to symtab_symbol_info.
4508 (info_functions_command): Likewise.
4509 (info_types_command): Pass additional argument through to
4510 symtab_symbol_info.
4511 (rbreak_command): Pass extra argument to search_symbols.
4512 (_initialize_symtab): Add extra arguments for calls to
4513 info_print_args_help, and update help text for 'info variables',
4514 'whereis', and 'info functions' commands.
4515 * symtab.h (search_symbols): Add extra argument to declaration.
4516 * NEWS: Mention new flags.
4517
9aa55206
CB
45182019-08-26 Christian Biesinger <cbiesinger@google.com>
4519
4520 * symtab.c (lookup_static_symbol): Call the new function (and move
4521 it down to be next to lookup_global_symbol).
4522 (struct global_sym_lookup_data): Add block_enum member and rename to...
4523 (struct global_or_static_sym_lookup_data): ...this.
4524 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4525 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4526 (lookup_symbol_global_or_static_iterator_cb): ...this.
4527 (lookup_global_or_static_symbol): New function.
4528 (lookup_global_symbol): Call new function.
4529
5c31b358
TV
45302019-08-26 Tom de Vries <tdevries@suse.de>
4531
4532 PR c++/24852
4533 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4534 when pc_probe.prob == NULL.
4535
23c13d42
SM
45362019-08-25 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4539 variable symbol_linkage to symbol_linkage_.
4540
beadd3e8
SM
45412019-08-25 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4544 represent whether the symbol is static, dynamic, or we don't
4545 know.
4546
e3ec872f
YS
45472019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4548
4549 * gdb/rx-tdep.c (rx_register_names): New.
4550 (rx_register_name): Delete.
4551 (rx_psw_type): Delete.
4552 (rx_fpsw_type): Delete.
4553 (rx_register_type): Delete.
4554 (rx_gdbarch_init): Convert target-descriptions.
4555 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4556 * gdb/features/Makefile: Add rx.xml.
4557 * gdb/features/rx.xml: New.
4558 * gdb/features/rx.c: Generated.
4559 * gdb/NEWS: Mention target description support.
4560
d0509ba4
CB
45612019-08-22 Christian Biesinger <cbiesinger@google.com>
4562
4563 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4564 *slot_ptr.
4565
2d41fa11
SDJ
45662019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4567
4568 * configure.ac: Don't check for 'dlfcn.h' (moved to
4569 gdbsupport/common.m4).
4570 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4571 'gdbsupport/'.
4572 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4573 * compile/compile-c-support.c: Include
4574 'gdbsupport/gdb-dlfcn.h'.
4575 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4576 * gdb-dlfcn.c: Move to...
4577 * gdbsupport/gdb-dlfcn.c: ... here.
4578 * gdb-dlfcn.h: Move to...
4579 * gdbsupport/gdb-dlfcn.h: ... here.
4580
de8af808
SL
45812019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4582
4583 * nios2-tdep.c (struct reg_value): Improve comments. Make
4584 the offset field signed.
4585
27204489
CB
45862019-08-22 Christian Biesinger <cbiesinger@google.com>
4587
4588 * python/lib/gdb/__init__.py (_execute_file): New function.
4589 * python/python.c (python_run_simple_file): Call gdb._execute_file
4590 on Windows.
4591
43771869
AB
45922019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4593
4594 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4595 all uses as this was never set to anything but a zero value.
4596
26c957f1
PA
45972019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4598
4599 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4600
c07aae6e
CB
46012019-08-21 Christian Biesinger <cbiesinger@google.com>
4602
4603 * tui/tui-data.h (tui_gen_win_info): Add an =default
4604 move constructor, required by some GCC versions.
4605
3960cb7a
JF
46062019-08-21 Jinke Fan <fanjinke51@yeah.net>
4607
4608 * go32-nat.c (go32_sysinfo): Add hygon_p.
4609
04c72a68
TT
46102019-08-20 Tom Tromey <tom@tromey.com>
4611
4612 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4613 line_from_reg_element_no, first_reg_element_no_inline,
4614 display_all_data, delete_data_content_windows,
4615 erase_data_content>: Now private.
4616
072272ce
TT
46172019-08-20 Tom Tromey <tom@tromey.com>
4618
4619 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4620 (tui_unhighlight_win, tui_highlight_win)
4621 (tui_win_info::make_window): Update.
4622 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4623
973961bd
TT
46242019-08-20 Tom Tromey <tom@tromey.com>
4625
4626 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4627 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4628 (MAX_PID_WIDTH): Move to tui-stack.c.
4629 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4630 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4631 (MAX_PID_WIDTH): Move from tui-data.h.
4632
ab0e1f1a
TT
46332019-08-20 Tom Tromey <tom@tromey.com>
4634
4635 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4636 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4637 (box_win): Update.
4638 (tui_gen_win_info::make_window): Rename from tui_make_window.
4639 (tui_win_info::make_window): New method.
4640 (tui_gen_win_info::make_visible): Update.
4641 * tui/tui-source.c (tui_source_window::set_contents): Update.
4642 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4643 (tui_data_window::display_registers_from): Update.
4644 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4645 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4646 Declare.
4647 <can_box>: Remove.
4648 <title>: Remove.
4649 (struct tui_win_info) <make_window>: Declare.
4650 <can_box>: Now virtual.
4651 <title>: New member.
4652 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4653 * tui/tui-command.c (tui_cmd_window::resize): Update.
4654
100c2bf3
TT
46552019-08-20 Tom Tromey <tom@tromey.com>
4656
4657 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4658 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4659 (tui_data_window::check_register_values): Update.
4660
fa4dc567
TT
46612019-08-20 Tom Tromey <tom@tromey.com>
4662
4663 * tui/tui-regs.h (struct tui_data_window): Use
4664 DISABLE_COPY_AND_ASSIGN.
4665 <regs_content>: Change type, removing unique_ptr.
4666 <tui_data_window>: Add move constructor.
4667 * tui/tui-regs.c (tui_data_window::show_registers)
4668 (tui_data_window::show_register_group)
4669 (tui_data_window::display_registers_from)
4670 (tui_data_window::display_registers_from)
4671 (tui_data_window::first_data_item_displayed)
4672 (tui_data_window::delete_data_content_windows)
4673 (tui_data_window::rerender, tui_data_window::refresh_window)
4674 (tui_data_window::check_register_values): Update.
4675
ca02d7c8
TT
46762019-08-20 Tom Tromey <tom@tromey.com>
4677
4678 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4679 show_register_group>: Declare.
4680 (tui_show_register_group): Don't declare.
4681 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4682 tui_show_registers.
4683 (tui_data_window::show_register_group): Rename from
4684 tui_show_register_group.
4685 (tui_data_window::check_register_values, tui_reg_command):
4686 Update.
4687 * tui/tui-layout.c (tui_set_layout): Update.
4688
63356bfd
TT
46892019-08-20 Tom Tromey <tom@tromey.com>
4690
4691 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4692 Declare.
4693 (tui_check_register_values): Don't declare.
4694 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4695 from tui_check_register_values.
4696 * tui/tui-hooks.c (tui_register_changed): Update.
4697
42cc14a7
TT
46982019-08-20 Tom Tromey <tom@tromey.com>
4699
4700 * tui/tui-regs.c (tui_reg_layout): Move later.
4701 (tui_show_registers): Don't enable TUI mode or change layout.
4702
b9ad3686
TT
47032019-08-20 Tom Tromey <tom@tromey.com>
4704
4705 * tui/tui-regs.h (struct tui_data_item_window)
4706 <~tui_data_item_window>: Remove.
4707 <content>: Now a unique_xmalloc_ptr.
4708 * tui/tui-regs.c (tui_register_format): Return a
4709 unique_xmalloc_ptr.
4710 (tui_get_register): Update.
4711 (~tui_data_item_window): Remove.
4712 (tui_data_window::display_registers_from, tui_display_register):
4713 Update.
4714 * tui/tui-io.h (tui_expand_tabs): Update.
4715 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4716 Remove "col" parameter.
4717
8e114aab
TT
47182019-08-20 Tom Tromey <tom@tromey.com>
4719
4720 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4721 field.
4722 * tui/tui-regs.c (~tui_data_item_window): Update.
4723
1a4f81dd
TT
47242019-08-20 Tom Tromey <tom@tromey.com>
4725
4726 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4727 earlier.
4728
0f8d8876
TT
47292019-08-20 Tom Tromey <tom@tromey.com>
4730
4731 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4732
605dc2c2
TT
47332019-08-20 Tom Tromey <tom@tromey.com>
4734
4735 * tui/tui-source.h (struct tui_source_window): Update.
4736 * tui/tui-regs.c (tui_show_registers): Update.
4737 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4738 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4739 (NO_REGS_STRING): Remove defines.
4740
aedbe3bb
CM
47412019-08-20 Conrad Meyer <cem@FreeBSD.org>
4742
4743 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4744 unnecessary thread walk if remote doesn't support the packet.
4745
7ce8f214
TT
47462019-08-19 Tom Tromey <tromey@adacore.com>
4747
4748 * python/py-value.c (value_has_field): Fix indentation.
4749
f21c2bd7
TT
47502019-08-19 Tom Tromey <tromey@adacore.com>
4751
4752 * printcmd.c (do_one_display, info_display_command): Update.
4753 * block.h (contained_in): Return bool. Add allow_nested
4754 parameter.
4755 * block.c (contained_in): Return bool. Add allow_nested
4756 parameter.
4757
d806ea2d
TT
47582019-08-19 Tom Tromey <tom@tromey.com>
4759
4760 * configure: Rebuild.
4761 * configure.ac: Disallow the combination of -static-libstdc++ and
4762 source highlight.
4763 * source-cache.c (get_language_name): Handle rust.
4764 (source_cache::get_source_lines): Ignore highlighting exceptions.
4765
398fdd60
TT
47662019-08-16 Tom Tromey <tom@tromey.com>
4767
4768 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4769 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4770 (struct tui_source_window_base) <make_visible, refresh_window,
4771 resize>: Remove methods.
4772 <execution_info>: Remove field.
4773 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4774 (tui_show_source_line, tui_source_window_base)
4775 (~tui_source_window_base): Update.
4776 (tui_source_window_base::resize)
4777 (tui_source_window_base::make_visible)
4778 (tui_source_window_base::refresh_window): Remove.
4779 (tui_source_window_base::update_exec_info): Update.
4780 * tui/tui-source.c (tui_source_window::set_contents): Update.
4781 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4782
e699d331
TT
47832019-08-16 Tom Tromey <tom@tromey.com>
4784
4785 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4786 deprecated_query_hook.
4787
bb01dbfc
TT
47882019-08-16 Tom Tromey <tom@tromey.com>
4789
4790 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4791 (tui_update_source_windows_with_line): Update.
4792 * tui/tui-source.h (struct tui_source_window)
4793 <show_symtab_source>: Declare.
4794 (tui_show_symtab_source): Don't declare.
4795 * tui/tui-source.c (tui_show_symtab_source): Rename from
4796 tui_show_symtab_source.
4797
81c82c4b
TT
47982019-08-16 Tom Tromey <tom@tromey.com>
4799
4800 * tui/tui-winsource.h (struct tui_source_window_base)
4801 <set_contents>: Declare.
4802 * tui/tui-winsource.c
4803 (tui_source_window_base::update_source_window_as_is): Update.
4804 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4805 Declare.
4806 (tui_set_source_content): Don't declare.
4807 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4808 tui_set_source_content.
4809 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4810 Declare.
4811 (tui_set_disassem_content): Don't declare.
4812 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4813 tui_set_disassem_content.
4814
2ddaf614
TT
48152019-08-16 Tom Tromey <tom@tromey.com>
4816
4817 * tui/tui-winsource.h (struct tui_source_window_base)
4818 <update_breakpoint_info>: Declare.
4819 (tui_update_breakpoint_info): Don't declare.
4820 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4821 (tui_update_all_breakpoint_info): Update.
4822 (tui_source_window_base::update_breakpoint_info): Rename from
4823 tui_update_breakpoint_info.
4824 (tui_source_window_base::update_exec_info): Update.
4825
017f9828
TT
48262019-08-16 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-winsource.h (struct tui_source_window_base)
4829 <update_source_window>: Declare.
4830 (tui_update_source_window): Don't declare.
4831 * tui/tui-winsource.c
4832 (tui_source_window_base::update_source_window): Rename from
4833 tui_update_source_window.
4834 (tui_source_window_base::rerender): Update.
4835 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4836 * tui/tui-disasm.c (tui_show_disassem)
4837 (tui_show_disassem_and_update_source)
4838 (tui_disasm_window::maybe_update): Update.
4839
ed8358e9
TT
48402019-08-16 Tom Tromey <tom@tromey.com>
4841
4842 * tui/tui-winsource.h (struct tui_source_window_base)
4843 <update_source_window_as_is>: Declare.
4844 (tui_update_source_window_as_is): Don't declare.
4845 * tui/tui-winsource.c (tui_update_source_window): Update
4846 (tui_source_window_base::update_source_window_as_is): Rename from
4847 tui_update_source_window_as_is.
4848 (tui_source_window_base::refill): Update.
4849 * tui/tui-source.c (tui_show_symtab_source): Update.
4850 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4851 Update.
4852
20149b6b
TT
48532019-08-16 Tom Tromey <tom@tromey.com>
4854
4855 * tui/tui-winsource.h (tui_update_source_window)
4856 (tui_update_source_window_as_is): Remove "noerror" parameter.
4857 * tui/tui-winsource.c (tui_update_source_window)
4858 (tui_update_source_window_as_is): Remove "noerror" parameter.
4859 (tui_update_source_windows_with_addr)
4860 (tui_update_source_windows_with_line)
4861 (tui_source_window_base::rerender)
4862 (tui_source_window_base::refill): Update.
4863 * tui/tui-source.h (tui_set_source_content)
4864 (tui_show_symtab_source): Remove "noerror" parameter.
4865 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4866 parameter.
4867 (tui_show_symtab_source): Likewise.
4868 (tui_source_window::maybe_update): Update.
4869 * tui/tui-disasm.c (tui_show_disassem)
4870 (tui_show_disassem_and_update_source)
4871 (tui_disasm_window::do_scroll_vertical)
4872 (tui_disasm_window::maybe_update): Update.
4873
2d83e710
TT
48742019-08-16 Tom Tromey <tom@tromey.com>
4875
4876 * tui/tui.c (tui_is_window_visible): Update.
4877 * tui/tui-wingeneral.c (tui_make_window)
4878 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4879 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4880 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4881 (tui_set_win_height_command, parse_scrolling_args): Update.
4882 * tui/tui-source.c (tui_source_window::style_changed): Update.
4883 * tui/tui-regs.c (tui_show_registers)
4884 (tui_data_window::first_data_item_displayed)
4885 (tui_data_window::delete_data_content_windows)
4886 (tui_check_register_values, tui_reg_command): Update.
4887 * tui/tui-disasm.c (tui_show_disassem): Update.
4888 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4889 method.
4890 <is_visible>: Remove field.
4891 * tui/tui-data.c (tui_next_win, tui_prev_win)
4892 (tui_delete_invisible_windows): Update.
4893
d4ab829a
TT
48942019-08-16 Tom Tromey <tom@tromey.com>
4895
4896 * tui/tui-winsource.h (struct tui_source_window_base)
4897 <m_has_locator>: Remove.
4898 * tui/tui-layout.c (show_source_disasm_command, show_data)
4899 (show_source_or_disasm_and_command): Update.
4900
aa7ca1bb
AH
49012019-08-16 Alan Hayward <alan.hayward@arm.com>
4902
4903 * NEWS (Other MI changes): New subsection.
4904 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4905 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4906 * arch-utils.c (default_get_pc_address_flags): New function.
4907 * arch-utils.h (default_get_pc_address_flags): New declaration.
4908 * gdbarch.sh: Add get_pc_address_flags.
4909 * gdbarch.c: Regenerate.
4910 * gdbarch.h: Likewise.
4911 * stack.c (print_pc): New function.
4912 (print_frame_info) (print_frame): Call print_pc.
4913
6eac171f
TV
49142019-08-16 Tom de Vries <tdevries@suse.de>
4915
4916 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4917 print_objfile_section_info.
4918
3df505f6
TT
49192019-08-15 Tom Tromey <tom@tromey.com>
4920
4921 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4922 calling update_cmdwin_start_line.
4923 * tui/tui-winsource.h (struct tui_source_window_base)
4924 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4925 <rerender>: Declare.
4926 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4927 Call rerender.
4928 (tui_source_window_base::set_new_height): Remove.
4929 (tui_source_window_base::rerender): Rename from
4930 do_make_visible_with_new_height.
4931 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4932 resize method.
4933 (tui_win_info::make_invisible_and_set_new_height)
4934 (tui_win_info::make_visible_with_new_height): Remove.
4935 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4936 Declare.
4937 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4938 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4939 do_make_visible_with_new_height>: Don't declare.
4940 <rerender>: Declare.
4941 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4942 set_new_height.
4943 (tui_data_window::do_make_visible_with_new_height): Remove.
4944 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4945 call tui_show_locator_content.
4946 (tui_gen_win_info::resize): Call rerender.
4947 (show_source_or_disasm_and_command): Don't call
4948 tui_show_locator_content.
4949 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4950 method.
4951 (struct tui_win_info) <rerender>: Declare.
4952 <set_new_height, make_invisible_and_set_new_height,
4953 make_visible_with_new_height>: Don't declare.
4954 * tui/tui-data.c (tui_win_list::rerender): New method.
4955 * tui/tui-command.h (struct tui_cmd_window)
4956 <do_make_visible_with_new_height>: Don't declare.
4957 * tui/tui-command.c
4958 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4959
272560b5
TT
49602019-08-15 Tom Tromey <tromey@adacore.com>
4961
4962 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4963 * ada-lang.c (ada_enum_name): Likewise.
4964
08235187
CB
49652019-08-15 Christian Biesinger <cbiesinger@google.com>
4966
4967 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4968 leading underscore.
4969 (GdbOutputErrorFile): Likewise.
4970 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4971 accordingly.
4972 (execute_unwinders): Rename to have a leading underscore.
4973 (auto_load_packages): Likewise.
4974 (global scope): Adjust call to auto_load_packages accordingly.
4975 (GdbSetPythonDirectory): Likewise.
4976 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4977 instead of execute_unwinders.
4978
db502012
TT
49792019-08-15 Tom Tromey <tom@tromey.com>
4980
4981 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4982 (show_data): Don't change window visibility.
4983 (tui_gen_win_info::resize): Remove special case for command
4984 window. Use wresize, when available.
4985 (show_source_or_disasm_and_command): Don't change window
4986 visibility.
4987 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4988 <make_visible>: New method.
4989 * tui/tui-command.c (tui_cmd_window::resize): New method.
4990
3891b65e
TT
49912019-08-15 Tom Tromey <tom@tromey.com>
4992
4993 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4994 (struct tui_source_windows): New.
4995 * tui/tui-winsource.c (tui_display_main): Update.
4996 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4997 (new_height_ok, parse_scrolling_args): Update.
4998 * tui/tui-layout.c (show_layout, show_data): Update.
4999 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5000 (tui_add_to_source_windows): Don't declare.
5001 * tui/tui-data.c (source_windows, tui_source_windows)
5002 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5003
ee556432
TT
50042019-08-15 Tom Tromey <tom@tromey.com>
5005
5006 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5007 Rename from reset.
5008 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5009 * tui/tui-layout.c (show_source_disasm_command, show_data):
5010 Update.
5011 (tui_gen_win_info::resize): Rename.
5012 (show_source_or_disasm_and_command): Update.
5013 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5014 reset.
5015
46f438e3
TT
50162019-08-15 Tom Tromey <tom@tromey.com>
5017
5018 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5019 * tui/tui-interp.c (tui_interp::init): Don't call
5020 tui_initialize_static_data.
5021 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5022
f4ce562c
TT
50232019-08-15 Tom Tromey <tom@tromey.com>
5024
5025 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5026 examine tui_win_list.
5027
c398c3d0
TT
50282019-08-15 Tom Tromey <tom@tromey.com>
5029
5030 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5031 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5032 tui_clear_source_content.
5033 (tui_clear_source_content): Remove.
5034 (tui_source_window_base::do_erase_source_content): Hoist call to
5035 content.clear().
5036 * tui/tui-stack.c (tui_show_frame_info): Don't call
5037 tui_clear_source_content.
5038
e25d2004
TT
50392019-08-15 Tom Tromey <tom@tromey.com>
5040
5041 * tui/tui-winsource.h (struct tui_source_window_base)
5042 <do_erase_source_content>: New method.
5043 <erase_source_content>: New method.
5044 (tui_erase_source_content): Don't declare.
5045 * tui/tui-winsource.c (tui_clear_source_content): Update.
5046 (tui_source_window_base::do_erase_source_content): Rename from
5047 tui_erase_source_content.
5048 (tui_source_window_base::show_source_content): Update.
5049 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5050 * tui/tui-source.h (struct tui_source_window)
5051 <erase_source_content>: New method.
5052 * tui/tui-disasm.h (struct tui_disasm_window)
5053 <erase_source_content>: New method.
5054
002f15c2
TT
50552019-08-15 Tom Tromey <tom@tromey.com>
5056
5057 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5058 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5059 constructor.
5060 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5061 * tui/tui-source.c (tui_set_source_content): Update.
5062 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5063
c9033fe8
TT
50642019-08-15 Tom Tromey <tom@tromey.com>
5065
5066 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5067 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5068 tui-source.c.
5069 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5070 Declare.
5071 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5072 method.
5073 (tui_source_window::maybe_update): Update.
5074
088f37dd
TT
50752019-08-15 Tom Tromey <tom@tromey.com>
5076
5077 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5078 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5079 tui-disasm.c.
5080 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5081 Declare.
5082 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5083 method.
5084 (tui_disasm_window::maybe_update): Update.
5085
a54700c6
TT
50862019-08-15 Tom Tromey <tom@tromey.com>
5087
5088 * tui/tui-winsource.h (struct tui_source_window_base)
5089 <maybe_update>: Declare.
5090 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5091 method.
5092 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5093 Declare.
5094 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5095 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5096 Declare.
5097 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5098
e2a678a5
TT
50992019-08-15 Tom Tromey <tom@tromey.com>
5100
5101 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5102
f2dda477
TT
51032019-08-15 Tom Tromey <tom@tromey.com>
5104
5105 * tui/tui-wingeneral.c: Include tui-stack.h.
5106 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5107 (struct tui_locator_window): Move from tui-data.h.
5108 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5109 (tui_initialize_static_data): Move from tui-data.c.
5110 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5111 (struct tui_locator_window): Move to tui-stack.c.
5112 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5113 (tui_initialize_static_data): Move to tui-stack.c.
5114
ed4a1084
TT
51152019-08-15 Tom Tromey <tom@tromey.com>
5116
5117 * tui/tui-layout.c (show_source_disasm_command)
5118 (show_source_or_disasm_and_command): Use make_visible method, not
5119 tui_make_window.
5120 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5121 Remove.
5122
65962b20
TT
51232019-08-15 Tom Tromey <tom@tromey.com>
5124
5125 * tui/tui-wingeneral.h (tui_make_window): Update.
5126 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5127 parameter.
5128 (tui_gen_win_info::make_visible): Update.
5129 * tui/tui-regs.c (tui_data_window::display_registers_from):
5130 Update.
5131 * tui/tui-layout.c (show_source_disasm_command)
5132 (show_source_or_disasm_and_command): Update.
5133 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5134 (enum tui_box): Remove.
5135 (struct tui_win_info) <can_box>: New method.
5136 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5137 method.
5138
2208ee91
TV
51392019-08-15 Tom de Vries <tdevries@suse.de>
5140
5141 * linux-nat-trad.c: Include gdbarch.h.
5142
75faf5c4
AH
51432019-08-14 Alan Hayward <alan.hayward@arm.com>
5144
5145 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5146 register sizes.
5147
b1c896b3
TT
51482019-08-14 Tom Tromey <tromey@adacore.com>
5149
5150 * darwin-nat.c: Include gdbarch.h.
5151 * darwin-nat-info.c: Include gdbarch.h.
5152
6405cd73
TT
51532019-08-13 Tom Tromey <tom@tromey.com>
5154
5155 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5156 Remove.
5157 * tui/tui-data.c (tui_initialize_static_data): Update.
5158
5216580d
TT
51592019-08-13 Tom Tromey <tom@tromey.com>
5160
5161 * tui/tui-winsource.h (struct tui_exec_info_window)
5162 <~tui_exec_info_window, maybe_allocate_content, get_content,
5163 m_content>: Remove.
5164 (struct tui_source_window_base) <set_exec_info_content,
5165 show_exec_info_content>: Don't declare.
5166 * tui/tui-winsource.c
5167 (tui_exec_info_window::maybe_allocate_content): Remove.
5168 (tui_source_window_base::update_exec_info): Rename from
5169 set_exec_info_content.
5170 (tui_source_window_base::show_exec_info_content)
5171 (tui_source_window_base::update_exec_info): Remove.
5172
93858ad3
TT
51732019-08-13 Tom Tromey <tom@tromey.com>
5174
5175 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5176 declare.
5177 * tui/tui-winsource.c (tui_update_source_window_as_is)
5178 (tui_update_source_windows_with_addr, tui_erase_source_content):
5179 Update.
5180 (tui_clear_exec_info_content): Remove.
5181
e321e7ce
TT
51822019-08-13 Tom Tromey <tom@tromey.com>
5183
5184 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5185 declare.
5186 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5187 call tui_erase_exec_info_content.
5188 (tui_clear_exec_info_content): Rename from
5189 tui_erase_exec_info_content.
5190 (tui_clear_exec_info_content): Delete.
5191
8270ac62
TT
51922019-08-13 Tom Tromey <tom@tromey.com>
5193
5194 * tui/tui-winsource.h (struct tui_source_window_base)
5195 <show_exec_info_content>: Declare.
5196 (tui_show_exec_info_content): Don't declare.
5197 * tui/tui-winsource.c
5198 (tui_source_window_base::show_exec_info_content): Rename from
5199 tui_show_exec_info_content.
5200 (tui_source_window_base::update_exec_info): Update.
5201
7b56485d
TT
52022019-08-13 Tom Tromey <tom@tromey.com>
5203
5204 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5205 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5206 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5207 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5208 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5209 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5210 ... here.
5211
7ba913dc
TT
52122019-08-13 Tom Tromey <tom@tromey.com>
5213
5214 * tui/tui-winsource.h (struct tui_source_window_base)
5215 <update_exec_info>: Declare.
5216 (tui_update_exec_info): Don't declare.
5217 * tui/tui-winsource.c (tui_update_source_window_as_is)
5218 (tui_source_window_base::refresh_all)
5219 (tui_update_all_breakpoint_info): Update.
5220 (tui_source_window_base::update_exec_info): Rename from
5221 tui_update_exec_info.
5222 * tui/tui-stack.c (tui_show_frame_info): Update.
5223
37a4a131
TT
52242019-08-13 Tom Tromey <tom@tromey.com>
5225
5226 * tui/tui-winsource.h (struct tui_source_window_base)
5227 <set_exec_info_content>: Declare.
5228 (tui_set_exec_info_content): Don't declare.
5229 * tui/tui-winsource.c
5230 (tui_source_window_base::set_exec_info_content): Rename from
5231 tui_set_exec_info_content.
5232 (tui_update_exec_info): Update.
5233
0bd27e07
TT
52342019-08-13 Tom Tromey <tom@tromey.com>
5235
5236 * tui/tui-winsource.h (struct tui_source_window_base)
5237 <show_source_content>: Declare.
5238 (tui_show_source_content): Don't declare.
5239 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5240 (tui_source_window_base::show_source_content): Rename from
5241 tui_show_source_content.
5242 (tui_source_window_base::refresh_all): Update.
5243 * tui/tui-layout.c (show_source_disasm_command)
5244 (show_source_or_disasm_and_command): Update.
5245
b4ef5aeb
TT
52462019-08-13 Tom Tromey <tom@tromey.com>
5247
5248 * tui/tui-winsource.c (tui_erase_source_content)
5249 (tui_show_source_content, tui_source_window_base::refresh_all):
5250 Update.
5251 * tui/tui-wingeneral.h
5252 (tui_check_and_display_highlight_if_needed): Don't declare.
5253 * tui/tui-wingeneral.c
5254 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5255 check_and_display_highlight_if_needed.
5256 * tui/tui-win.c (tui_rehighlight_all)
5257 (tui_win_info::make_visible_with_new_height): Update.
5258 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5259 (tui_data_window::erase_data_content)
5260 (tui_data_window::display_all_data): Update.
5261 * tui/tui-data.h (struct tui_win_info)
5262 <check_and_display_highlight_if_needed>: Declare.
5263
fede5273
TT
52642019-08-13 Tom Tromey <tom@tromey.com>
5265
5266 * tui/tui-win.c (tui_resize_all): Call
5267 tui_delete_invisible_windows.
5268 * tui/tui-layout.c (show_layout): Call
5269 tui_delete_invisible_windows.
5270 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5271 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5272
22c3f490
TT
52732019-08-13 Tom Tromey <tom@tromey.com>
5274
5275 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5276 tui_add_win_to_layout.
5277
16cb7910
TT
52782019-08-13 Tom Tromey <tom@tromey.com>
5279
5280 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5281 * tui/tui-layout.c (tui_default_win_height): Now static.
5282
cc0c3ffb
TT
52832019-08-13 Tom Tromey <tom@tromey.com>
5284
5285 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5286 single switch.
5287 (show_source_disasm_command, show_source_or_disasm_and_command):
5288 Don't check current layout.
5289
3f3ffe54
TT
52902019-08-13 Tom Tromey <tom@tromey.com>
5291
5292 * tui/tui-wingeneral.c (make_all_visible): Remove.
5293 (tui_make_all_invisible): Simplify.
5294 * tui/tui-layout.c (tui_make_all_invisible): Move from
5295 tui-wingeneral.c; simplify.
5296 (show_layout): Hoist call to tui_make_all_invisible.
5297 (show_data): Don't call tui_make_all_invisible.
5298
69258091
TT
52992019-08-13 Tom Tromey <tom@tromey.com>
5300
5301 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5302 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5303
62cf57fe
TT
53042019-08-13 Tom Tromey <tom@tromey.com>
5305
5306 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5307 tui-data.c.
5308 (show_source_disasm_command, show_data)
5309 (show_source_or_disasm_and_command): Don't use
5310 tui_set_current_layout_to.
5311 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5312 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5313 tui-layout.c.
5314 (tui_set_current_layout_to): Remove.
5315
2afade5d
TT
53162019-08-13 Tom Tromey <tom@tromey.com>
5317
5318 * tui/tui-layout.c (tui_set_layout): Update.
5319 * tui/tui-data.h (struct tui_layout_def): Remove.
5320 (tui_layout_def): Don't declare.
5321 * tui/tui-data.c (layout_def): Remove.
5322 (tui_layout_def): Remove.
5323
a3504e96
TT
53242019-08-13 Tom Tromey <tom@tromey.com>
5325
5326 * tui/tui-winsource.h (struct tui_source_window_base)
5327 <clear_detail>: No longer "override".
5328 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5329 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5330 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5331 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5332 Remove.
5333 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5334
29c92911
TT
53352019-08-13 Tom Tromey <tromey@adacore.com>
5336
5337 * tracepoint.c: Don't include readline.h or history.h.
5338
86c6b807
TT
53392019-08-12 Tom Tromey <tom@tromey.com>
5340
5341 * configure: Rebuild.
5342 * configure.ac: Check for readline 7.
5343 * NEWS: Mention readline 7 requirement.
5344 * README: Update.
5345
5db2718c
TT
53462019-08-12 Tom Tromey <tom@tromey.com>
5347
5348 * mingw-hdep.c (gdb_select): Remove readline hack.
5349
dac36daf
PFC
53502019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5351
5352 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5353 when the function fails.
5354
1022c627
AA
53552019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5356
5357 * s390-tdep.c (s390_type_align): New function.
5358 (s390_gdbarch_init): Set it as type_align gdbarch method.
5359
eba4caf2
TV
53602019-08-09 Tom de Vries <tdevries@suse.de>
5361
5362 PR gdb/24591
5363 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5364 pc_low with relocation offset.
5365
123cd851
TT
53662019-08-07 Tom Tromey <tromey@adacore.com>
5367
5368 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5369 (print_frame_args): Update.
5370 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5371 Update.
5372 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5373 * frame.h (struct frame_arg): Add initializers.
5374 <error>: Now a unique_xmalloc_ptr.
5375
3d31bc39
AH
53762019-08-07 Alan Hayward <alan.hayward@arm.com>
5377
5378 * NEWS: Expand the Pointer Authentication entry.
5379 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5380 (aarch64_frame_unmask_lr): ... to this.
5381 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5382 Call aarch64_frame_unmask_lr.
5383 * frame.c (struct frame_info): Add "masked" variable.
5384 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5385 (fprint_frame): Check for masked pc.
5386 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5387 declarations.
5388 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5389 * stack.c (print_frame): Check for masked pc.
5390
0cf9feb9
TT
53912019-08-06 Tom Tromey <tom@tromey.com>
5392
5393 * stabsread.c (patch_block_stabs, read_one_struct_field)
5394 (read_enum_type): Use obstack_strndup.
5395 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5396 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5397 * dwarf2read.c (guess_full_die_structure_name)
5398 (anonymous_struct_prefix): Use obstack_strndup.
5399 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5400 * c-exp.y (yylex): Use obstack_strndup.
5401 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5402 (write_var_or_type): Use obstack_strndup.
5403
efba19b0
TT
54042019-08-06 Tom Tromey <tom@tromey.com>
5405
5406 * symfile.c (reread_symbols): Use obstack_strdup.
5407 * stabsread.c (read_type): Use obstack_strdup.
5408 * gdb_obstack.h (obstack_strdup): New overload.
5409 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5410 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5411 (dwarf2_canonicalize_name): Use obstack_strdup.
5412 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5413 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5414 Use obstack_strdup.
5415
f25102f7
TT
54162019-08-06 Tom Tromey <tom@tromey.com>
5417
5418 * gdb_obstack.h (obstack_strdup): Define.
5419 * gdb_obstack.c (obstack_strdup): Don't define.
5420
021887d8
TT
54212019-08-06 Tom Tromey <tom@tromey.com>
5422
5423 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5424 obstack_strdup.
5425 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5426 obstack_strdup.
5427 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5428 * stabsread.c (common_block_start): Use obstack_strdup.
5429 * objfiles.c (set_objfile_main_name, objfile): Use
5430 obstack_strdup.
5431 * namespace.c (add_using_directive): Use obstack_strdup.
5432 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5433 * jit.c (finalize_symtab): Use obstack_strdup.
5434 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5435 (guess_partial_die_structure_name, partial_die_info::fixup)
5436 (dwarf2_name): Use obstack_strdup.
5437 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5438 obstack_strdup.
5439 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5440 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5441 obstack_strdup.
5442 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5443
d2834edc
PW
54442019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5445
5446 * unittests/help-doc-selftests.c: New file.
5447 * Makefile.in: Add the new file.
5448
590042fc
PW
54492019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5450
5451 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5452 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5453 the full first line, except when FOR_VALUE_PREFIX. In this case,
5454 the trailing '.' is not output, and the first character is uppercased.
5455 (print_help_for_command): Update call to print_doc_line.
5456 (print_doc_of_command): Likewise.
5457 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5458 * cli/cli-option.c (append_indented_doc): Do not append newline.
5459 (build_help_option): Append newline after first appended_indented_doc
5460 only if a second call is done.
5461 (build_help): Append 2 new lines before each option, except the first
5462 one.
5463 * compile/compile.c (_initialize_compile): Add new lines after
5464 %OPTIONS%, when not at the end of the help.
5465 Change help doc or code
5466 producing the help doc to respect the invariants.
5467 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5468 Also removed the new line after 'Options:', as all other commands
5469 do not put an empty line between 'Options:' and the first option.
5470 * printcmd.c (_initialize_printcmd): Likewise.
5471 * stack.c (_initialize_stack): Likewise.
5472 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5473 incorrectly telling COMMAND is optional.
5474 * ada-lang.c (_initialize_ada_language): Change help doc or code
5475 producing the help doc to respect the invariants.
5476 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5477 * breakpoint.c (_initialize_breakpoint): Likewise.
5478 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5479 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5480 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5481 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5482 _initialize_cli_style): Likewise.
5483 * corelow.c (core_target_info): Likewise.
5484 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5485 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5486 * filesystem.c (_initialize_filesystem): Likewise.
5487 * frame.c (_initialize_frame): Likewise.
5488 * gnu-nat.c (add_task_commands): Likewise.
5489 * infcall.c (_initialize_infcall): Likewise.
5490 * infcmd.c (_initialize_infcmd): Likewise.
5491 * interps.c (_initialize_interpreter): Likewise.
5492 * language.c (_initialize_language): Likewise.
5493 * linux-fork.c (_initialize_linux_fork): Likewise.
5494 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5495 * maint.c (_initialize_maint_cmds): Likewise.
5496 * memattr.c (_initialize_mem): Likewise.
5497 * printcmd.c (_initialize_printcmd): Likewise.
5498 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5499 _RegEx): Likewise.
5500 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5501 * record-btrace.c (_initialize_record_btrace): Likewise.
5502 * record-full.c (_initialize_record_full): Likewise.
5503 * record.c (_initialize_record): Likewise.
5504 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5505 * regcache.c (_initialize_regcache): Likewise.
5506 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5507 _initialize_remote): Likewise.
5508 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5509 * serial.c (_initialize_serial): Likewise.
5510 * skip.c (_initialize_step_skip): Likewise.
5511 * source.c (_initialize_source): Likewise.
5512 * stack.c (_initialize_stack): Likewise.
5513 * symfile.c (_initialize_symfile): Likewise.
5514 * symtab.c (_initialize_symtab): Likewise.
5515 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5516 * top.c (init_main): Likewise.
5517 * tracefile-tfile.c (tfile_target_info): Likewise.
5518 * tracepoint.c (_initialize_tracepoint): Likewise.
5519 * tui/tui-win.c (_initialize_tui_win): Likewise.
5520 * utils.c (add_internal_problem_command): Likewise.
5521 * valprint.c (value_print_option_defs): Likewise.
5522
404f2902
FCE
55232019-08-06 Frank Ch. Eigler <fche@redhat.com>
5524
5525 PR build/24886
5526 * configure.ac: Drop enable-libmcheck support.
5527 * configure, config.in: Rebuild.
5528 * libmcheck.m4: Remove.
5529 * acinclude.m4: Don't include it.
5530 * Makefile.in: Don't distribute it.
5531 * top.c (print_gdb_configuration): Don't mention it.
5532
046bebe1
TT
55332019-08-06 Tom Tromey <tom@tromey.com>
5534
5535 * utils.c (set_output_style): Sometimes pass stream to
5536 emit_style_escape.
5537 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5538 * record-btrace.c (btrace_insn_history): Update.
5539 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5540 method.
5541 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5542 Update initializers.
5543 <m_uiout>: New field.
5544 <m_di>: Move lower.
5545 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5546 Remove "uiout" parameter.
5547 (dump_insns): Update.
5548 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5549 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5550
ddbcedf5
CB
55512019-08-06 Christian Biesinger <cbiesinger@google.com>
5552
5553 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5554 (error_in_psymtab_expansion): Likewise.
5555 (lookup_symbol_via_quick_fns): Likewise.
5556 (basic_lookup_transparent_type_quick): Likewise.
5557 (basic_lookup_transparent_type_1): Likewise.
5558
b08b16c8
TT
55592019-08-06 Tom Tromey <tromey@adacore.com>
5560
5561 * source.c (last_source_error): Now bool.
5562 (print_source_lines_base): Make "noprint" bool. Only open
5563 source file when last_source_visited changes.
5564
cb44333d
TT
55652019-08-06 Tom Tromey <tromey@adacore.com>
5566
5567 * annotate.c (annotate_source_line): Use g_source_cache.
5568 * source-cache.c (source_cache::get_plain_source_lines): Change
5569 parameters. Populate m_offset_cache.
5570 (source_cache::ensure): New method.
5571 (source_cache::get_line_charpos): New method.
5572 (extract_lines): Move lower. Change parameters.
5573 (source_cache::get_source_lines): Move lower.
5574 * source-cache.h (class source_cache): Update comment.
5575 <get_line_charpos>: New method.
5576 <get_source_lines>: Update comment.
5577 <clear>: Clear m_offset_cache.
5578 <get_plain_source_lines>: Change parameters.
5579 <ensure>: New method
5580 <m_offset_cache>: New member.
5581 * source.c (forget_cached_source_info_for_objfile): Update.
5582 (info_source_command): Use g_source_cache.
5583 (find_source_lines, open_source_file_with_line_charpos): Remove.
5584 (print_source_lines_base, search_command_helper): Use g_source_cache.
5585 * source.h (open_source_file_with_line_charpos): Don't declare.
5586 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5587 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5588 Use g_source_cache.
5589
872dceaa
TT
55902019-08-06 Tom Tromey <tromey@adacore.com>
5591
5592 * source-cache.c (source_cache::get_plain_source_lines):
5593 Remove "first_line" and "last_line" parameters.
5594 (source_cache::get_source_lines): Cache plain text.
5595 * source-cache.h (class source_cache)
5596 <get_plain_source_lines>: Update.
5597
269249d9
TT
55982019-08-06 Tom Tromey <tromey@adacore.com>
5599
5600 * source-cache.c (extract_lines): No longer a method.
5601 Changed type of parameter. Include final newline.
5602 (selftests::extract_lines_test): New function.
5603 (_initialize_source_cache): Likewise.
5604 * source-cache.h (class source_cache)
5605 <extract_lines>: Don't declare.
5606
c0e8dcd8
TT
56072019-08-06 Tom Tromey <tromey@adacore.com>
5608
5609 * breakpoint.c (init_breakpoint_sal): Update.
5610 (breakpoint): Update.
5611 * breakpoint.h (struct breakpoint) <filter>: Now a
5612 unique_xmalloc_ptr.
5613
0b27c27d
CB
56142019-08-05 Christian Biesinger <cbiesinger@google.com>
5615
5616 * NEWS: Mention dictionary access on blocks.
5617 * python/py-block.c (blpy_getitem): New function.
5618 (block_object_as_mapping): New struct.
5619 (block_object_type): Use new struct for tp_as_mapping field.
5620
4ee94178
CB
56212019-08-05 Christian Biesinger <cbiesinger@google.com>
5622
5623 * objfiles.h (objfile): Add a comment describing partial symbols.
5624
8abfcabc
TT
56252019-08-05 Tom Tromey <tromey@adacore.com>
5626
5627 * compile/compile.c (_initialize_compile): Use _(), not N_().
5628 * thread.c (_initialize_thread): Use _(), not N_().
5629 * stack.c (_initialize_stack): Use _(), not N_().
5630 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5631
2b79f376
SM
56322019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5633
5634 * dwarf2read.c (struct dw2_symtab_iterator):
5635 <want_specific_block>: Remove.
5636 <block_index>: Change type to gdb::optional.
5637 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5638 change type of BLOCK_INDEX parameter to gdb::optional.
5639 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5640 (dw2_lookup_symbol): Don't pass argument for
5641 WANT_SPECIFIC_BLOCK.
5642 (dw2_expand_symtabs_for_function): Don't pass argument for
5643 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5644 (class dw2_debug_names_iterator)
5645 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5646 parameter, change BLOCK_INDEX type to gdb::optional.
5647 <m_want_specific_block>: Remove.
5648 <m_block_index>: Change type to gdb::optional.
5649 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5650 gdb::optional. Re-write in function of gdb::optional.
5651 (dw2_debug_names_lookup_symbol): Don't pass argument for
5652 WANT_SPECIFIC_BLOCK.
5653 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5654 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5655 BLOCK_INDEX.
5656
ae60f04e
PW
56572019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5658
5659 * NEWS: Mention changes to "info sources" command.
5660
28cd9371
PW
56612019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5662
5663 * symtab.c (filename_partial_match_opts): New struct type.
5664 (struct output_source_filename_data): New members
5665 regexp, c_regexp, partial_match.
5666 (output_source_filename): Use new members to decide to print file.
5667 (info_sources_option_defs): New variable.
5668 (make_info_sources_options_def_group, print_info_sources_header,
5669 info_sources_command_completer):
5670 New functions.
5671 (info_sources_command): Read new optional arguments.
5672 (_initialize_symtab): Update info sources help.
5673
ca683e3a
AO
56742019-08-02 Alexandre Oliva <oliva@adacore.com>
5675
5676 * ada-lang.c (exception_support_info_v0): Renamed from...
5677 (default_exception_support_info): ... this. Create new
5678 definition for v1.
5679 (ada_has_this_exception_support): Look up catch_handlers_sym.
5680 (ada_exception_support_info_sniffer): Try v0 after default.
5681
f1264162
TT
56822019-08-01 Tom Tromey <tromey@adacore.com>
5683
5684 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5685 gdbarch.h.
5686
0a7b2485
CB
56872019-08-01 Christian Biesinger <cbiesinger@google.com>
5688
5689 * s12z-tdep.c: Fix include path for s12z-opc.h.
5690
c6bdbeb7
AH
56912019-08-01 Alan Hayward <alan.hayward@arm.com>
5692
5693 * NEWS: Require GNU make 3.82.
5694
a2bd7b82
TT
56952019-07-16 Tom Tromey <tom@tromey.com>
5696
5697 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5698 declare.
5699
aa3b6533
TT
57002019-07-30 Tom Tromey <tromey@adacore.com>
5701
5702 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5703
a1530dc7
KB
57042019-07-30 Kevin Buettner <kevinb@redhat.com>
5705
5706 * printcmd.c (print_address_symbolic): Print negative offsets.
5707 (build_address_symbolic): Force signed arithmetic when computing
5708 offset.
5709
2906593f
CB
57102019-07-30 Christian Biesinger <cbiesinger@google.com>
5711
5712 PR/24474: Add a function to lookup static variables.
5713 * NEWS: Mention this new function.
5714 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5715 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5716 * python/python.c (python_GdbMethods): Add new function.
5717
c620ed88
CB
57182019-07-29 Christian Biesinger <cbiesinger@google.com>
5719
5720 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5721 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5722 (objfpy_lookup_static_symbol): New function.
5723 (objfile_object_methods): Add new functions.
5724
bc4268a5
PW
57252019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5726
5727 * NEWS: Mention 'set|show print frame-info'. Mention new
5728 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5729 backtrace argument. Mention that python frame filtering code
5730 is now consistent with what 'backtrace' command prints.
5731
4b5e8d19
PW
57322019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5733
5734 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5735 comments.
5736 (print_frame_info_auto, print_frame_info_source_line,
5737 print_frame_info_location, print_frame_info_source_and_location,
5738 print_frame_info_location_and_address, print_frame_info_short_location):
5739 New declarations.
5740 (struct frame_print_options): New member print_frame_info.
5741 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5742 * stack.h (get_user_print_what_frame_info): New declaration.
5743 (frame_show_address): New declaration.
5744 * stack.c (print_frame_arguments_choices): New value 'presence'.
5745 (print_frame_info_auto, print_frame_info_source_line,
5746 print_frame_info_location, print_frame_info_source_and_location,
5747 print_frame_info_location_and_address, print_frame_info_short_location,
5748 print_frame_info_choices, print_frame_info_print_what): New definitions.
5749 (print_frame_args): Only print dots for args if print frame-arguments
5750 is 'presence'.
5751 (frame_print_option_defs): New element for "frame-info".
5752 (get_user_print_what_frame_info): New function.
5753 (frame_show_address): Make non static. Move comment to stack.h.
5754 (print_frame_info_to_print_what): New function.
5755 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5756 to decide what to print.
5757 (backtrace_command_1): Handle the new print_frame_arguments_presence
5758 value.
5759 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5760 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5761 (py_print_frame): In non-mi mode, use LOCATION as default for
5762 print_what, similarly to frame information printed directly by
5763 backtrace command. Handle frame-info user option in non MI mode.
5764
6bdfee81
KB
57652019-07-27 Kevin Buettner <kevinb@redhat.com>
5766
5767 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5768 Add case for debugging 32-bit target on 64-bit host. Revise
5769 comment.
5770
98a617f8
KB
57712019-07-27 Kevin Buettner <kevinb@redhat.com>
5772
5773 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5774 instead of find_function_entry_range_from_pc.
5775
567238c9
KB
57762019-07-27 Kevin Buettner <kevinb@redhat.com>
5777
5778 * stack.c (find_frame_funname): Remove code which preferred
5779 minsym over symtab sym in "certain pathological cases".
5780
2dc80cf8
KB
5781 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5782 parameter. Change type of "do_demangle" to bool.
5783 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5784 Pass suitable "prefer_sym_over_minsym" flag to
5785 build_address_symbolic(). Don't output "+" for negative offsets.
5786 * printcmd.c (print_address_symbolic): Update invocation of
5787 build_address_symbolic to include a "prefer_sym_over_minsym"
5788 flag.
5789 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5790 Restrict cases in which use of minimal symbol is preferred to that
5791 of a found symbol. Update comments.
5792
1aff7173
KB
5793 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5794 for entry pc when entry pc is out of range for that FDE.
5795
89b085ac
BC
57962019-07-26 Brian Callahan <bcallah@openbsd.org>
5797
5798 PR gdb/24839:
5799 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5800 type.
5801
f32feb4a
CB
58022019-07-25 Christian Biesinger <cbiesinger@google.com>
5803
5804 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5805 this function's Python signature.
5806
5807
58082019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5809
5810 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5811 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5812 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5813 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5814 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5815
5816
c54e4253
YS
58172019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5818
5819 * h8300-tdep.c (h8300_register_name_common): New.
5820 h8300_register_name): Use h8300_register_name_common.
5821 (h8300s_register_name): Likewise.
5822 (h8300sx_register_name): Likewise.
5823 (h8300h_register_nam): New.
5824 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5825
5826
40eadf04
SP
58272019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5828
5829 * arm-tdep.c (arm_skip_cmse_entry): New function.
5830 (arm_is_sgstubs_section): New function.
5831 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5832
bfa2a36d
TT
58332019-07-22 Tom Tromey <tom@tromey.com>
5834
5835 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5836 Don't self-assign.
5837
a8e9d247
AB
58382019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5839
5840 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5841 type_print.
5842
eb86c5e2
AB
58432019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5844
5845 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5846 so that GDB doesn't match any msymbols when searching in the
5847 TYPES_DOMAIN.
5848 (print_symbol_info): Print using typedef_print or type_print based
5849 on the type of the symbol. Add updated FIXME comment moved from...
5850 (_initialize_symtab): ... move and update FIXME comment to above.
5851
a8eab7c6
AB
58522019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5853
5854 * NEWS: Mention adding -q option to "info types".
5855 * symtab.c (struct info_types_options): New struct.
5856 (info_types_options_defs): New variable.
5857 (make_info_types_options_def_group): New function.
5858 (info_types_command): Use gdb::option framework to parse options.
5859 (info_types_command_completer): New function.
5860 (_initialize_symtab): Extend the help text on "info types" and
5861 register command completer.
5862
b4603c34
CB
58632019-07-21 Christian Biesinger <cbiesinger@google.com>
5864
5865 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5866 (lookup_symbol_in_objfile): Change int to block_enum and add a
5867 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5868
c8cdc1e0
CB
58692019-07-20 Christian Biesinger <cbiesinger@google.com>
5870
5871 * MAINTAINERS (Write After Approval): Add self.
5872
01e175fe
AB
58732019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5874
5875 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5876 instruction to the dummy code region.
5877
56f79b63
TT
58782019-07-19 Tom Tromey <tromey@adacore.com>
5879
5880 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5881 (ARGSUSED, PARAMS, __func__): Remove rules.
5882
4c5aa8e0
AH
58832019-07-19 Alan Hayward <alan.hayward@arm.com>
5884
5885 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5886 * features/arm/arm-with-iwmmxt.c: Remove.
5887 * features/arm/arm-with-iwmmxt.xml: Remove.
5888 * features/arm/arm-with-m-fpa-layout.c: Remove.
5889 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5890 * features/arm/arm-with-m-vfp-d16.c: Remove.
5891 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5892 * features/arm/arm-with-m.c: Remove.
5893 * features/arm/arm-with-m.xml: Remove.
5894 * features/arm/arm-with-neon.c: Remove.
5895 * features/arm/arm-with-neon.xml: Remove.
5896 * features/arm/arm-with-vfpv2.c: Remove.
5897 * features/arm/arm-with-vfpv2.xml: Remove.
5898 * features/arm/arm-with-vfpv3.c: Remove.
5899 * features/arm/arm-with-vfpv3.xml: Remove.
5900
f42b2617
AH
59012019-07-19 Alan Hayward <alan.hayward@arm.com>
5902
5903 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5904
f29ec966
AH
59052019-07-19 Alan Hayward <alan.hayward@arm.com>
5906
5907 * arch/aarch32.c (aarch32_create_target_description): Create
5908 target descriptions using features.
5909 * arch/arm.c (arm_create_target_description)
5910 (arm_create_mprofile_target_description): Likewise.
5911 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5912
d105cce5
AH
59132019-07-19 Alan Hayward <alan.hayward@arm.com>
5914
5915 * Makefile.in: Add new files.
5916 * aarch32-tdep.c: New file.
5917 * aarch32-tdep.h: New file.
5918 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5919 Call aarch32_read_description.
5920 * arch/aarch32.c: New file.
5921 * arch/aarch32.h: New file.
5922 * arch/arm.c (arm_create_target_description)
5923 (arm_create_mprofile_target_description): New function.
5924 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5925 (arm_create_target_description)
5926 (arm_create_mprofile_target_description): New declaration.
5927 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5928 read_description functions.
5929 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5930 Likewise.
5931 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5932 * arm-tdep.c (tdesc_arm_list): New variable.
5933 (arm_register_g_packet_guesses): Call create description functions.
5934 (arm_read_description) (arm_read_mprofile_description): New
5935 function.
5936 * arm-tdep.h (arm_read_description)
5937 (arm_read_mprofile_description): Add declaration.
5938 * configure.tgt: Add new files.
5939
afe09f0b
GL
59402019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5941
5942 * top.c (new_ui_command): Open specified terminal just once.
5943
cd215b2e
TT
59442019-07-18 Tom Tromey <tromey@adacore.com>
5945
5946 * symtab.c (main_name): Constify return type.
5947 * symfile.c (set_initial_language): Update.
5948 * symtab.h (main_name): Constify return type.
5949
d8f68fcb
TT
59502019-07-17 Tom Tromey <tom@tromey.com>
5951
5952 * tui/tui-winsource.c (tui_update_source_window)
5953 (tui_update_source_window_as_is)
5954 (tui_update_source_windows_with_line): Remove return.
5955 * tui/tui-disasm.c (tui_show_disassem)
5956 (tui_show_disassem_and_update_source): Remove return.
5957 * tui/tui.c (tui_reset): Remove return.
5958 * tui/tui-wingeneral.c
5959 (tui_check_and_display_highlight_if_needed): Remove return.
5960
ca5af91e
TT
59612019-07-17 Tom Tromey <tom@tromey.com>
5962
5963 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5964
5104fe36
TT
59652019-07-17 Tom Tromey <tom@tromey.com>
5966
5967 * tui/tui-winsource.h (struct tui_exec_info_window)
5968 (struct tui_source_window_base): Move from tui-data.h.
5969 * tui/tui-winsource.c: Move many method definitions from
5970 elsewhere. Remove "structuring" comments.
5971 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5972 (tui_source_window_base::refresh_window): Move to
5973 tui-winsource.c.
5974 * tui/tui-win.c (tui_source_window_base::refresh_all)
5975 (tui_source_window_base::update_tab_width)
5976 (tui_source_window_base::set_new_height)
5977 (tui_source_window_base::do_make_visible_with_new_height): Move to
5978 tui-winsource.c.
5979 * tui/tui-source.h: Update.
5980 * tui/tui-source.c (tui_source_window_base::reset): Move to
5981 tui-winsource.c.
5982 * tui/tui-disasm.h: Update.
5983 * tui/tui-data.h (struct tui_exec_info_window): Move to
5984 tui-winsource.h.
5985 (struct tui_source_window_base): Likewise.
5986 * tui/tui-data.c (tui_source_window_base::clear_detail)
5987 (tui_source_window_base, ~tui_source_window_base): Move to
5988 tui-winsource.c.
5989
daa15dde
TT
59902019-07-17 Tom Tromey <tom@tromey.com>
5991
5992 * tui/tui-win.c (tui_resize_all)
5993 (tui_source_window_base::update_tab_width)
5994 (tui_adjust_win_heights): Update.
5995 (tui_win_info::make_invisible_and_set_new_height): Rename from
5996 make_invisible_and_set_new_height.
5997 * tui/tui-data.h (struct tui_win_info)
5998 <make_invisible_and_set_new_height>: New method.
5999
bfad4537
TT
60002019-07-17 Tom Tromey <tom@tromey.com>
6001
6002 * tui/tui.c: Update.
6003 * tui/tui-source.h (struct tui_source_window): Move from
6004 tui-data.h.
6005 * tui/tui-layout.c: Update.
6006 * tui/tui-disasm.c: Update.
6007 * tui/tui-data.h (struct tui_source_window): Move to
6008 tui-source.h.
6009
88f7e873
TT
60102019-07-17 Tom Tromey <tom@tromey.com>
6011
6012 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6013 tui-data.h.
6014 * tui/tui-data.h (struct tui_disasm_window): Move to
6015 tui-disasm.h.
6016
96bd6233
TT
60172019-07-17 Tom Tromey <tom@tromey.com>
6018
6019 * tui/tui-regs.h (struct tui_data_item_window): Move from
6020 tui-data.h.
6021 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6022 * tui/tui-data.h (struct tui_data_item_window): Move to
6023 tui-regs.h.
6024 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6025
ce38393b
TT
60262019-07-17 Tom Tromey <tom@tromey.com>
6027
6028 * tui/tui.c: Update.
6029 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6030 (tui_cmd_window::max_height): Move to tui-command.c.
6031 * tui/tui-layout.c: Update.
6032 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6033 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6034 tui-command.c.
6035 * tui/tui-command.h (struct tui_cmd_window): Move from
6036 tui-data.h.
6037 * tui/tui-command.c: Remove "structuring" comments.
6038 (tui_cmd_window::clear_detail)
6039 (tui_cmd_window::do_make_visible_with_new_height)
6040 (tui_cmd_window::max_height): Move from elsewhere.
6041
2d8b51cb
TT
60422019-07-17 Tom Tromey <tom@tromey.com>
6043
6044 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6045 Now static.
6046 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6047 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6048
18ab23af
TT
60492019-07-17 Tom Tromey <tom@tromey.com>
6050
6051 * tui/tui.c: Update.
6052 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6053 tui-regs.c.
6054 * tui/tui-windata.h: Remove file.
6055 * tui/tui-windata.c: Remove file.
6056 * tui/tui-win.c (tui_data_window::set_new_height)
6057 (tui_data_window::do_make_visible_with_new_height): Move to
6058 tui-regs.c.
6059 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6060 * tui/tui-regs.c: Remove "structuring" comments.
6061 (tui_data_window::first_data_item_displayed)
6062 (tui_data_window::delete_data_content_windows)
6063 (tui_data_window::erase_data_content)
6064 (tui_data_window::display_all_data)
6065 (tui_data_window::refresh_all)
6066 (tui_data_window::do_scroll_vertical)
6067 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6068 (tui_data_window::do_make_visible_with_new_height)
6069 (tui_data_window::refresh_window): Move from elsewhere.
6070 (_initialize_tui_regs): Move to end of file.
6071 * tui/tui-layout.c: Update.
6072 * tui/tui-hooks.c: Update.
6073 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6074 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6075 tui-regs.c.
6076 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6077
88b7e7cc
TT
60782019-07-17 Tom Tromey <tom@tromey.com>
6079
6080 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6081 seen.
6082
0fcd3711
TT
60832019-07-17 Tom Tromey <tom@tromey.com>
6084
6085 * tui/tui-win.c (tui_source_window_base::set_new_height)
6086 (tui_source_window_base::do_make_visible_with_new_height): Use
6087 m_has_locator field directly.
6088 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6089 method.
6090 (struct tui_source_window_base) <has_locator>: Likewise.
6091
4a38112d
TT
60922019-07-17 Tom Tromey <tom@tromey.com>
6093
6094 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6095 Don't declare.
6096 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6097 Remove.
6098 * tui/tui-win.c (tui_source_window_base::set_new_height)
6099 (tui_source_window_base::set_new_height)
6100 (make_invisible_and_set_new_height)
6101 (tui_source_window_base::do_make_visible_with_new_height)
6102 (tui_source_window_base::do_make_visible_with_new_height):
6103 Update.
6104 * tui/tui-layout.c (show_source_disasm_command, show_data)
6105 (show_source_or_disasm_and_command): Update.
6106 * tui/tui-layout.c (show_layout): Update.
6107
09129226
TT
61082019-07-17 Tom Tromey <tom@tromey.com>
6109
6110 * tui/tui-layout.c (make_data_window): Remove.
6111 (show_data): Unify creation and re-initialization cases.
6112
4a8a5e84
TT
61132019-07-17 Tom Tromey <tom@tromey.com>
6114
6115 * tui/tui-layout.c (make_source_window, make_disasm_window):
6116 Remove.
6117 (show_data): Unify creation and re-initialization cases.
6118
76d2be8e
TT
61192019-07-17 Tom Tromey <tom@tromey.com>
6120
6121 * tui/tui-layout.c (make_command_window): Remove.
6122 (show_source_disasm_command, show_source_or_disasm_and_command):
6123 Unify creation and re-initialization cases.
6124
890b8bde
TT
61252019-07-17 Tom Tromey <tom@tromey.com>
6126
6127 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6128 creation and re-initialization cases.
6129
2cdfa113
TT
61302019-07-17 Tom Tromey <tom@tromey.com>
6131
6132 * tui/tui-regs.c (tui_get_register): Return void.
6133
8e3cfd09
TT
61342019-07-17 Tom Tromey <tom@tromey.com>
6135
6136 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6137 Simplify.
6138
f4e04977
TT
61392019-07-17 Tom Tromey <tom@tromey.com>
6140
6141 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6142 resetting.
6143
0379b883
TT
61442019-07-17 Tom Tromey <tom@tromey.com>
6145
6146 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6147 * tui/tui-regs.c (tui_reg_layout): New function.
6148 (tui_show_registers, tui_reg_command): Use it.
6149 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6150 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6151 parameters.
6152 (tui_layout_command): Remove.
6153
b7fbad91
TT
61542019-07-17 Tom Tromey <tom@tromey.com>
6155
6156 * tui/tui-layout.h (tui/tui-layout): Return void.
6157 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6158
4e1e56b9
TT
61592019-07-17 Tom Tromey <tom@tromey.com>
6160
6161 * tui/tui-layout.c (show_source_disasm_command, show_data):
6162 Update.
6163 (reset_locator): Remove.
6164 (show_source_or_disasm_and_command): Update.
6165
1e0c09ba
TT
61662019-07-17 Tom Tromey <tom@tromey.com>
6167
6168 * tui/tui-source.c (tui_source_window_base::reset): Remove
6169 win_type parameter.
6170 * tui/tui-layout.c (make_command_window, make_source_window)
6171 (make_disasm_window, make_data_window)
6172 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6173 (reset_locator, show_source_or_disasm_and_command): Update.
6174 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6175 win_type parameter.
6176 (struct tui_source_window_base) <reset>: Likewise.
6177
1bf605de
TT
61782019-07-17 Tom Tromey <tom@tromey.com>
6179
6180 * tui/tui-layout.c (show_source_disasm_command): Use
6181 reset_locator.
6182 (reset_locator): New function.
6183 (init_and_make_win): Remove.
6184 (show_source_or_disasm_and_command): Use reset_locator.
6185
098f9ed4
TT
61862019-07-17 Tom Tromey <tom@tromey.com>
6187
6188 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6189 condition.
6190 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6191 Remove condition.
6192 * tui/tui-source.c (tui_source_window_base::reset): New method.
6193 * tui/tui-layout.c (make_command_window): Don't call
6194 init_and_make_win.
6195 (make_source_window, make_disasm_window): Don't call
6196 make_source_or_disasm_window.
6197 (make_data_window): Don't call init_and_make_win. Change calling
6198 convention.
6199 (show_source_disasm_command, show_data): Simplify.
6200 (make_source_or_disasm_window): Remove.
6201 (show_source_or_disasm_and_command): Simplify.
6202 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6203 (struct tui_source_window_base) <reset>: Likewise.
6204 <execution_info>: Remove initializer.
6205 * tui/tui-data.c (tui_source_window_base): Initialize
6206 execution_info.
6207
80110957
TT
62082019-07-17 Tom Tromey <tom@tromey.com>
6209
6210 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6211 variable.
6212
cf82af05
TT
62132019-07-17 Tom Tromey <tom@tromey.com>
6214
6215 * tui/tui.c (tui_rl_other_window): Update.
6216 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6217 superclass method first. Always iterate over regs_content.
6218 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6219 method.
6220 * tui/tui-win.c (tui_set_focus_command): Update.
6221
01aeb396
TT
62222019-07-17 Tom Tromey <tom@tromey.com>
6223
6224 * tui/tui-win.c (tui_set_focus_command): Rename from
6225 tui_set_focus. Call tui_enable.
6226 (tui_set_focus_command): Remove.
6227
fd6c75ee
TT
62282019-07-17 Tom Tromey <tom@tromey.com>
6229
6230 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6231 refresh_window.
6232 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6233 touchwin.
6234 (tui_data_window::refresh_window): Call refresh_window on data
6235 items. Always call superclass refresh_window.
6236 (tui_win_info::refresh): Remove.
6237 (tui_source_window_base::refresh_window): Update.
6238 (tui_refresh_all): Update.
6239 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6240 refresh_window.
6241 (show_source_or_disasm_and_command): Likewise.
6242 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6243 (struct tui_source_window_base) <refresh>: Likewise.
6244
f6cc34a9
TT
62452019-07-17 Tom Tromey <tom@tromey.com>
6246
6247 * tui/tui-winsource.c (tui_clear_source_content)
6248 (tui_show_source_content): Update.
6249 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6250 whether content is empty.
6251 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6252 Remove.
6253
f31ec9af
TT
62542019-07-17 Tom Tromey <tom@tromey.com>
6255
6256 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6257 window's contents.
6258 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6259 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6260
d1b6f1e5
TT
62612019-07-17 Tom Tromey <tom@tromey.com>
6262
6263 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6264 (struct tui_data_item_window): Update.
6265
d9743a13
TT
62662019-07-17 Tom Tromey <tom@tromey.com>
6267
6268 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6269 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6270 defines.
6271
caf0bc4e
TT
62722019-07-17 Tom Tromey <tom@tromey.com>
6273
6274 * tui/tui-winsource.h (tui_erase_source_content)
6275 (tui_clear_source_content): Remove "display_prompt" parameter.
6276 * tui/tui-winsource.c (tui_update_source_window_as_is)
6277 (tui_update_source_windows_with_addr): Update.
6278 (tui_clear_source_content): Remove "display_prompt" parameter.
6279 (tui_erase_source_content): Likewise. Simplify.
6280 (tui_show_source_content): Update.
6281 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6282 * tui/tui-stack.c (tui_show_frame_info): Update.
6283 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6284 Remove defines.
6285
9d391078
TT
62862019-07-17 Tom Tromey <tom@tromey.com>
6287
6288 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6289 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6290 parameter.
6291 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6292 parameter.
6293
a38da35d
TT
62942019-07-17 Tom Tromey <tom@tromey.com>
6295
6296 * tui/tui-winsource.c (tui_clear_source_content)
6297 (tui_show_source_content, tui_show_exec_info_content)
6298 (tui_clear_exec_info_content): Update.
6299 * tui/tui-stack.c (tui_show_locator_content): Update.
6300 (tui_show_frame_info): Update.
6301 * tui/tui-source.h (tui_source_window): Don't declare.
6302 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6303 from tui_source_is_displayed.
6304 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6305 Remove field.
6306 (struct tui_source_window_base) <content_in_use>: New field. Now
6307 bool.
6308 (struct tui_source_window) <showing_source_p>: New method.
6309 (TUI_SRC_WIN): Change cast.
6310 * tui/tui-data.c (tui_initialize_static_data): Update.
6311
c2cd8994
TT
63122019-07-17 Tom Tromey <tom@tromey.com>
6313
6314 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6315 location_matches_p.
6316 * tui/tui-source.c (tui_source_window::location_matches_p): New
6317 method.
6318 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6319 method.
6320 * tui/tui-data.h (struct tui_source_window_base)
6321 <location_matches_p>: New method.
6322 (struct tui_source_window, struct tui_disasm_window)
6323 <location_matches_p>: Likewise.
6324
4dde7b34
TT
63252019-07-17 Tom Tromey <tom@tromey.com>
6326
6327 * tui/tui-win.c (tui_set_win_height_command): Rename from
6328 tui_set_win_height.
6329 (tui_set_win_height_command): Remove.
6330
b73dd877
TT
63312019-07-17 Tom Tromey <tom@tromey.com>
6332
6333 * tui/tui-source.c (tui_source_window): New constructor. Add
6334 observer.
6335 (~tui_source_window): New destructor.
6336 (tui_source_window::style_changed): New method.
6337 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6338 (tui_attach_detach_observers): Update.
6339 * tui/tui-data.h (struct tui_source_window): Make constructor not
6340 inline. Add destructor.
6341 (struct tui_source_window) <style_changed>: New method.
6342 <m_observable>: New member.
6343
ae2b5380
TT
63442019-07-17 Tom Tromey <tom@tromey.com>
6345
6346 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6347 * tui/tui-win.c (tui_resize_all): Fix typo.
6348
1ce3e844
TT
63492019-07-17 Tom Tromey <tom@tromey.com>
6350
6351 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6352 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6353 (tui_refresh_all): Remove "list" parameter. Use foreach.
6354 * tui/tui-win.c (window_name_completer): Use foreach.
6355 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6356 (update_tab_width): Likewise.
6357 * tui/tui-layout.c (show_layout): Update.
6358 * tui/tui-data.h (class tui_window_iterator): New.
6359 (struct all_tui_windows): New.
6360 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6361
fe3eaf1c
TT
63622019-07-17 Tom Tromey <tom@tromey.com>
6363
6364 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6365 parameter. Don't reference globals.
6366 (tui_reg_command): Update.
6367
368c1354
TT
63682019-07-17 Tom Tromey <tom@tromey.com>
6369
6370 * tui/tui-regs.c (tui_show_registers): Simplify.
6371
e80cd204
TT
63722019-07-17 Tom Tromey <tom@tromey.com>
6373
6374 * tui/tui-regs.c (tui_show_registers): Update.
6375 (tui_show_register_group): Add win_info parameter.
6376
aca2dd16
TT
63772019-07-17 Tom Tromey <tom@tromey.com>
6378
6379 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6380 Rename from tui_display_reg_element_at_line.
6381 (tui_data_window::display_registers_from_line): Update.
6382 * tui/tui-data.h (struct tui_data_window)
6383 <display_reg_element_at_line>: New method.
6384
517e9505
TT
63852019-07-17 Tom Tromey <tom@tromey.com>
6386
6387 * tui/tui-regs.h (tui_display_registers_from)
6388 (tui_display_registers_from_line): Don't declare.
6389 * tui/tui-windata.c (tui_data_window::display_all_data)
6390 (tui_data_window::refresh_all)
6391 (tui_data_window::do_scroll_vertical): Update.
6392 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6393 from tui_display_registers_from.
6394 (tui_display_reg_element_at_line): Update.
6395 (tui_data_window::display_registers_from_line): Rename from
6396 tui_display_registers_from_line.
6397 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6398 display_registers_from_line>: New methods.
6399
f76d8b19
TT
64002019-07-17 Tom Tromey <tom@tromey.com>
6401
6402 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6403 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6404 from tui_erase_data_content.
6405 (tui_data_window::display_all_data)
6406 (tui_data_window::refresh_all)
6407 (tui_data_window::do_scroll_vertical): Update.
6408 * tui/tui-regs.c (tui_show_registers): Update.
6409 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6410 New method.
6411
b4094625
TT
64122019-07-17 Tom Tromey <tom@tromey.com>
6413
6414 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6415 declare.
6416 * tui/tui-windata.c
6417 (tui_data_window::delete_data_content_windows): Rename from
6418 tui_delete_data_content_windows.
6419 (tui_data_window::display_all_data)
6420 (tui_data_window::do_scroll_vertical): Update.
6421 * tui/tui-data.h (struct tui_data_window)
6422 <delete_data_content_windows>: New method.
6423
c223a729
TT
64242019-07-17 Tom Tromey <tom@tromey.com>
6425
6426 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6427 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6428
50daf268
TT
64292019-07-17 Tom Tromey <tom@tromey.com>
6430
6431 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6432 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6433 from tui_display_all_data.
6434 * tui/tui-win.c
6435 (tui_data_window::do_make_visible_with_new_height): Update.
6436 * tui/tui-regs.c (tui_show_registers): Update.
6437 * tui/tui-layout.c (tui_set_layout): Update.
6438 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6439 method.
6440
df5f8cab
TT
64412019-07-17 Tom Tromey <tom@tromey.com>
6442
6443 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6444 * tui/tui-windata.c (tui_display_data_from): Remove.
6445 (tui_data_window::refresh_all): Update.
6446
80cb6c27
TT
64472019-07-17 Tom Tromey <tom@tromey.com>
6448
6449 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6450 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6451 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6452 tui_display_registers_from_line.
6453 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6454 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6455 "force_display" parameter.
6456
baff0c28
TT
64572019-07-17 Tom Tromey <tom@tromey.com>
6458
6459 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6460 declare.
6461 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6462 Rename from tui_first_reg_element_no_inline.
6463 (tui_display_reg_element_at_line)
6464 (tui_display_registers_from_line): Update.
6465 * tui/tui-data.h (struct tui_data_window)
6466 <first_reg_element_no_inline>: New method.
6467
3b23c5f2
TT
64682019-07-17 Tom Tromey <tom@tromey.com>
6469
6470 * tui/tui-windata.c (tui_display_data_from)
6471 (tui_data_window::do_scroll_vertical): Update.
6472 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6473 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6474 Rename from tui_line_from_reg_element_no.
6475 (tui_display_registers_from_line): Update.
6476 * tui/tui-data.h (struct tui_data_window)
6477 <line_from_reg_element_no>: New method.
6478
0b5ec218
TT
64792019-07-17 Tom Tromey <tom@tromey.com>
6480
6481 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6482 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6483 tui_last_regs_line_no.
6484 (tui_display_reg_element_at_line)
6485 (tui_display_registers_from_line): Update.
6486 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6487 method.
6488
0807ab7b
TT
64892019-07-17 Tom Tromey <tom@tromey.com>
6490
6491 PR tui/24722:
6492 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6493 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6494 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6495 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6496 (tui_update_breakpoint_info): Likewise.
6497 * tui/tui-hooks.c (tui_event_create_breakpoint)
6498 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6499 Update.
6500
9ad7fdef
TT
65012019-07-17 Tom Tromey <tom@tromey.com>
6502
6503 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6504
5813316f
TT
65052019-07-17 Tom Tromey <tom@tromey.com>
6506
6507 * tui/tui-winsource.c (tui_update_source_window_as_is)
6508 (tui_update_source_windows_with_addr): Update.
6509 * tui/tui-source.h (tui_set_source_content)
6510 (tui_show_symtab_source): Add "win_info" parameter.
6511 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6512 parameter.
6513 (tui_show_symtab_source): Likewise.
6514
00e264e7
TT
65152019-07-17 Tom Tromey <tom@tromey.com>
6516
6517 * tui/tui-wingeneral.c
6518 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6519
06210ce4
TT
65202019-07-17 Tom Tromey <tom@tromey.com>
6521
6522 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6523 (struct tui_cmd_window) <can_scroll>: New method.
6524 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6525 method.
6526
381befee
TT
65272019-07-17 Tom Tromey <tromey@adacore.com>
6528
6529 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6530 do_field_signed>: Rename. Change type of "value".
6531 * ui-out.c (ui_out::field_signed): Rename from field_int.
6532 Change type of "value".
6533 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6534 type of "value".
6535 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6536 do_field_int. Change type of "value".
6537 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6538 do_field_int. Change type of "value".
6539 * tracepoint.c (trace_status_mi, tfind_1)
6540 (print_one_static_tracepoint_marker): Update.
6541 * thread.c (print_thread_info_1, print_selected_thread_frame):
6542 Update.
6543 * stack.c (print_frame, print_frame_info): Update.
6544 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6545 Update.
6546 * source.c (print_source_lines_base): Update.
6547 * skip.c (info_skip_command): Update.
6548 * record-btrace.c (btrace_ui_out_decode_error)
6549 (btrace_call_history_src_line): Update.
6550 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6551 Update.
6552 * progspace.c (print_program_space): Update.
6553 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6554 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6555 do_field_int. Change type of "value".
6556 * mi/mi-out.c (mi_ui_out::do_table_begin)
6557 (mi_ui_out::do_table_header): Update.
6558 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6559 type of "value".
6560 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6561 (mi_cmd_data_list_changed_registers, output_register)
6562 (mi_cmd_data_read_memory, mi_load_progress)
6563 (mi_cmd_trace_frame_collected): Update.
6564 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6565 Update.
6566 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6567 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6568 (mi_cmd_var_list_children, varobj_update_one): Update.
6569 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6570 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6571 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6572 * inferior.c (print_inferior): Update.
6573 * gdb_bfd.c (print_one_bfd): Update.
6574 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6575 Update.
6576 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6577 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6578 do_field_int. Change type of "value".
6579 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6580 do_field_int. Change type of "value".
6581 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6582 (print_one_breakpoint_location, print_it_catch_fork)
6583 (print_one_catch_fork, print_it_catch_vfork)
6584 (print_one_catch_vfork, print_it_catch_solib)
6585 (print_it_catch_exec, print_it_ranged_breakpoint)
6586 (print_mention_watchpoint, print_mention_masked_watchpoint)
6587 (bkpt_print_it, update_static_tracepoint): Update.
6588 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6589 * break-catch-syscall.c (print_it_catch_syscall): Update.
6590 * ada-tasks.c (print_ada_task_info): Update.
6591 * ada-lang.c (print_it_exception, print_mention_exception):
6592 Update.
6593
6b78c3f8
AB
65942019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6595
6596 PR breakpoints/24541
6597 * gdbarch.c: Regenerate.
6598 * gdbarch.h: Regenerate.
6599 * gdbarch.sh: Adjust return type and parameter types for
6600 'stap_adjust_register'.
6601 (i386_stap_adjust_register): Adjust signature and return new
6602 register name.
6603 * stap-probe.c (stap_parse_register_operand): Adjust use of
6604 'gdbarch_stap_adjust_register'.
6605
d72a9b85
TT
66062019-07-17 Tom Tromey <tromey@adacore.com>
6607
6608 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6609 declare VEC.
6610 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6611 std::vector.
6612 (struct s390_process_info): Add initializers.
6613 (s390_add_process): Use new.
6614 (s390_linux_nat_target::low_forget_process): Use delete.
6615 (s390_linux_nat_target::low_new_fork)
6616 (s390_linux_nat_target::stopped_by_watchpoint)
6617 (s390_linux_nat_target::low_prepare_to_resume)
6618 (s390_linux_nat_target::insert_watchpoint)
6619 (s390_linux_nat_target::insert_hw_breakpoint)
6620 (s390_linux_nat_target::remove_watchpoint)
6621 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6622
206e6c58
JB
66232019-07-16 John Baldwin <jhb@FreeBSD.org>
6624
6625 * aarch64-fbsd-nat.c: Include regcache.h.
6626 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6627 argument.
6628 (aarch64_fbsd_nat_target::fetch_registers)
6629 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6630 variable.
6631 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6632
cbde90f2
JB
66332019-07-16 John Baldwin <jhb@FreeBSD.org>
6634
6635 * fbsd-nat.c: Include gdbarch.h.
6636
07128006
TT
66372019-07-15 Tom Tromey <tromey@adacore.com>
6638
6639 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6640
1f77b012
TT
66412019-07-15 Tom Tromey <tromey@adacore.com>
6642
6643 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6644 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6645 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6646 * cli-out.c (cli_ui_out::do_field_int): New method.
6647 * ui-out.c (ui_out::field_unsigned): New method.
6648 * symfile.c (generic_load): Use field_unsigned.
6649 (print_transfer_performance): Likewise.
6650 * record-btrace.c (ui_out_field_uint): Remove.
6651 (btrace_call_history_insn_range, btrace_call_history): Use
6652 field_unsigned.
6653 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6654 field_unsigned.
6655 * ui-out.h (class ui_out) <field_unsigned>: New method.
6656 <do_field_unsigned>: Likewise.
6657
33eca680
TT
66582019-07-15 Tom Tromey <tromey@adacore.com>
6659
6660 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6661 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6662 * target.c (flash_erase_command): Use field_string.
6663 * infrun.c (print_signal_received_reason): Use field_string.
6664 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6665 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6666 field_string.
6667 * ada-tasks.c (print_ada_task_info): Use field_string.
6668
ca8d69be
TT
66692019-07-15 Tom Tromey <tromey@adacore.com>
6670
6671 * target.c (flash_erase_command): Use field_core_addr.
6672 * symfile.c (generic_load): Use field_core_addr.
6673 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6674 Use field_core_addr.
6675 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6676 field_core_addr.
6677
0d4e84ed
AB
66782019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6679
6680 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6681 value if its desired type is smaller than a CORE_ADDR and signed.
6682
9a49df9d
AB
66832019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6684
6685 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6686 of changes to field names, and use new is_reference field to
6687 decide if a property is a reference or not.
6688 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6689 field.
6690 (struct dwarf2_property_baton): Update header comment, rename
6691 'referenced_type' to 'property_type' and update comments.
6692 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6693 default property type, store in property baton, update to take
6694 accound of renamed field.
6695 (read_func_scope): Update call to attr_to_dynamic_prop.
6696 (read_array_type): Likewise.
6697 (dwarf2_per_cu_addr_sized_int_type): New function.
6698 (read_subrange_index_type): Move type finding code to
6699 dwarf2_per_cu_addr_sized_int_type.
6700 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6701 (dwarf2_per_cu_addr_type): New function.
6702 (set_die_type): Update calls to attr_to_dynamic_prop.
6703
b86352cf
AB
67042019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6705
6706 * dwarf2read.c (read_subrange_index_type): New function.
6707 (read_subrange_type): Move code into new function and call it.
6708 * gdbtypes.c (create_range_type): Add some asserts.
6709
603490bf
AB
67102019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6711
6712 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6713 update return statements.
6714 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6715 declaration, and update comment to match.
6716 * gdbtypes.c (resolve_dynamic_array): Update call to
6717 dwarf2_evaluate_property to match new return type.
6718
592f9d27
AB
67192019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6720
6721 * valarith.c (value_subscripted_rvalue): Change lowerbound
6722 parameter type from int to LONGEST.
6723 * value.h (value_subscripted_rvalue): Likewise in declaration.
6724
60cfcb20
AB
67252019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6726
6727 * cli/cli-utils.c (info_print_command_completer): New function.
6728 * cli/cli-utils.h: Add 'completer.h' include, and forward
6729 declaration for 'struct cmd_list_element'.
6730 (info_print_command_completer): Declare.
6731 * stack.c (_initialize_stack): Add completer for 'info locals' and
6732 'info args'.
6733 * symtab.c (_initialize_symtab): Add completer for 'info
6734 variables' and 'info functions'.
6735 * NEWS: Mention completion for additional info commands.
6736
b16507e0
AB
67372019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6738
6739 * cli/cli-utils.c (extract_info_print_args): Delete.
6740 (extract_arg_maybe_quoted): Delete.
6741 (info_print_options_defs): New variable.
6742 (make_info_print_options_def_group): New function.
6743 (extract_info_print_options): Define new function.
6744 * cli/cli-utils.h (extract_info_print_args): Delete.
6745 (struct info_print_options): New structure.
6746 (extract_info_print_options): Declare new function.
6747 * stack.c (info_locals_command): Update to use new
6748 extract_info_print_options, also add a header comment.
6749 (info_args_command): Likewise.
6750 * symtab.c (info_variables_command): Likewise.
6751 (info_functions_command): Likewise.
6752
021d8588
AB
67532019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6754
6755 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6756 to extract string arguments.
6757 * common/common-utils.c (extract_string_maybe_quoted): New function.
6758 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6759
b777eb6d
TT
67602019-07-11 Tom Tromey <tromey@adacore.com>
6761
6762 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6763 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6764 * top.h (gdbinit): Don't declare.
6765 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6766 into...
6767 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6768 * top.c (gdb_init): Don't call init_cli_cmds.
6769 (gdbinit): Remove.
6770 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6771
72ee03ff
TT
67722019-07-11 Tom Tromey <tromey@adacore.com>
6773
6774 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6775 after it has been moved.
6776
00db9531
SM
67772019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6778
6779 * valops.c (value_must_coerce_to_target): Change return type to
6780 bool.
6781 * value.h (value_must_coerce_to_target): Likewise.
6782
f2478a7e
SM
67832019-07-10 Simon Marchi <simon.marchi@efficios.com>
6784
6785 * breakpoint.c (is_hardware_watchpoint): Remove
6786 forward-declaration.
6787 (is_masked_watchpoint): Change return type to bool.
6788 (is_tracepoint): Likewise.
6789 (is_breakpoint): Likewise.
6790 (is_hardware_watchpoint): Likewise.
6791 (is_watchpoint): Likewise.
6792 (is_no_memory_software_watchpoint): Likewise.
6793 (is_catchpoint): Likewise.
6794 (breakpoint_1): Make FILTER parameter's return type bool.
6795 is_masked_watchpoint): Change return type to bool.
6796 (save_breakpoints): Make FILTER parameter's return type bool.
6797 * breakpoint.h (is_breakpoint): Change return type to bool.
6798 (is_watchpoint): Likewise.
6799 (is_catchpoint): Likewise.
6800 (is_tracepoint): Likewise.
6801
0d12e84c
TT
68022019-07-10 Tom Tromey <tom@tromey.com>
6803
6804 * defs.h: Don't include gdbarch.h.
6805 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6806 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6807 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6808 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6809 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6810 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6811 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6812 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6813 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6814 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6815 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6816 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6817 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6818 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6819 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6820 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6821 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6822 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6823 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6824 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6825 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6826 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6827 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6828 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6829 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6830 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6831 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6832
f06f1252
TT
68332019-07-10 Tom Tromey <tromey@adacore.com>
6834
6835 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6836 * breakpoint.c (init_ada_exception_breakpoint): Register as
6837 bp_catchpoint.
6838 (print_one_breakpoint_location, print_one_breakpoint): Use
6839 is_ada_exception_catchpoint.
6840 * ada-lang.c (class ada_catchpoint_location): Pass
6841 bp_loc_software_breakpoint to bp_location constructor.
6842 (is_ada_exception_catchpoint): New function.
6843
7a5d944b
TT
68442019-07-10 Tom Tromey <tromey@adacore.com>
6845
6846 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6847 VEC.
6848 (struct arm_exidx_entry): New method operator<.
6849 (struct arm_exidx_data) <section_maps>: Change type.
6850 (arm_exidx_data_free): Remove.
6851 (arm_exidx_data_key): Change type. Move lower.
6852 (arm_exidx_new_objfile): Update.
6853 (arm_compare_exidx_entries): Remove.
6854 (arm_find_exidx_entry, _initialize_arm_tdep)
6855
48c66e1d
TT
68562019-07-10 Tom Tromey <tromey@adacore.com>
6857
6858 * solib-spu.c (ocl_program_data_key): Change type.
6859 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6860 Update.
6861
a269fbf1
TT
68622019-07-10 Tom Tromey <tromey@adacore.com>
6863
6864 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6865 (struct solib_aix_inferior_data) <library_list>: Change type.
6866 (solib_aix_inferior_data_handle): Change type.
6867 (get_solib_aix_inferior_data): Update.
6868 (solib_aix_free_library_list): Remove.
6869 (library_list_start_library): Update.
6870 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6871 return type.
6872 (solib_aix_get_library_list)
6873 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6874 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6875
c294730c
TT
68762019-07-10 Tom Tromey <tromey@adacore.com>
6877
6878 * solib-dsbt.c (struct dsbt_info): Add initializers.
6879 (solib_dsbt_pspace_data): Change type.
6880 (dsbt_pspace_data_cleanup): Remove.
6881 (get_dsbt_info, _initialize_dsbt_solib): Update.
6882
9d52077d
TT
68832019-07-10 Tom Tromey <tromey@adacore.com>
6884
6885 * spu-tdep.c (spu_overlay_data): Change type.
6886 (spu_get_overlay_table, spu_overlay_new_objfile)
6887 (_initialize_spu_tdep): Update.
6888
22a20dca
TT
68892019-07-10 Tom Tromey <tromey@adacore.com>
6890
6891 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6892 destructor.
6893 (dbx_objfile_data_key): Change type and declare later.
6894 (DBX_SYMFILE_INFO): Rewrite.
6895 * dbxread.c (dbx_objfile_data_key): Change type.
6896 (dbx_symfile_init): Update.
6897 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6898 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6899 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6900
cb60f420
TT
69012019-07-10 Tom Tromey <tromey@adacore.com>
6902
6903 * jit.c (jit_program_space_key): Change type. Move lower.
6904 (get_jit_program_space_data): Update.
6905 (jit_program_space_data_cleanup): Remove.
6906 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6907 Update.
6908 (struct jit_program_space_data): Add initializers.
6909
51df2ae3
TT
69102019-07-10 Tom Tromey <tromey@adacore.com>
6911
6912 * solib-darwin.c (struct darwin_info): Add initializers.
6913 (solib_darwin_pspace_data): Change type.
6914 (darwin_pspace_data_cleanup): Remove.
6915 (get_darwin_info, _initialize_darwin_solib): Update.
6916
18101a35
TT
69172019-07-10 Tom Tromey <tromey@adacore.com>
6918
6919 * remote-sim.c (struct sim_inferior_data): Add initializers,
6920 constructor, and destructor.
6921 (sim_inferior_data_key): Change type. Move lower.
6922 (check_for_duplicate_sim_descriptor): Update.
6923 (get_sim_inferior_data): Use new. Update.
6924 (~sim_inferior_data_cleanup): Rename from
6925 sim_inferior_data_cleanup. Simplify.
6926 (gdbsim_close_inferior, simulator_command)
6927 (sim_command_completer, _initialize_remote_sim): Update.
6928 (next_pid, INITIAL_PID): Move earlier.
6929
05b08ac1
TT
69302019-07-10 Tom Tromey <tromey@adacore.com>
6931
6932 * python/python-internal.h (create_thread_object): Return
6933 gdbpy_ref.
6934 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6935 * python/py-inferior.c (struct threadlist_entry): Add
6936 constructor.
6937 <thread_obj>: Now a gdbpy_ref.
6938 (thread_to_thread_object): Update.
6939 (add_thread_object): Use new.
6940 (delete_thread_object): Use delete.
6941 (infpy_threads): Update.
6942 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6943 GIL.
6944
32372d80
TT
69452019-07-10 Tom Tromey <tromey@adacore.com>
6946
6947 * valops.c (value_cast): Specialize error message for Ada.
6948
5c458ae8
SM
69492019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6950
6951 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6952
4c462cb0
SM
69532019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6954
6955 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6956 bpstat_should_step): Return bool, adjust comments.
6957 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6958 bpstat_should_step): Likewise.
6959
89abbcc2
AH
69602019-07-10 Alan Hayward <alan.hayward@arm.com>
6961
6962 * features/Makefile: Use feature target descriptions for Arm.
6963 * features/arm/arm-core.c: Generate new file.
6964 * features/arm/arm-fpa.c: Likewise.
6965 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6966 * features/arm/arm-m-profile.c: Likewise.
6967 * features/arm/arm-vfpv2.c: Likewise.
6968 * features/arm/arm-vfpv3.c: Likewise.
6969 * features/arm/xscale-iwmmxt.c: Likewise.
6970 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6971
166a82be
AH
69722019-07-10 Alan Hayward <alan.hayward@arm.com>
6973
6974 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6975 ptrace earlier.
6976
9fb4c7e9
AH
69772019-07-10 Alan Hayward <alan.hayward@arm.com>
6978
6979 * features/aarch64-pauth.c: Regenerate.
6980
e2d0f980
SM
69812019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6982
6983 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6984 bool.
6985 (bpstat_what): Use false instead of 0.
6986
a38118e5
PA
69872019-07-09 Pedro Alves <palves@redhat.com>
6988
6989 * break-catch-throw.c (is_exception_catchpoint): New.
6990 * breakpoint.c (print_one_breakpoint_location): New parameter
6991 'raw_loc'. Handle it. Use
6992 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6993 looking at the breakpoint's type.
6994 (print_one_breakpoint): If handling "maint info breakpoints", also
6995 print locations of exception catchpoints.
6996 * breakpoint.h (is_exception_catchpoint): Declare.
6997
cb1e4e32
PA
69982019-07-09 Pedro Alves <palves@redhat.com>
6999
7000 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7001 "addr" field.
7002 (allocate_location_exception_catchpoint): New.
7003 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7004 (initialize_throw_catchpoint_ops): Install
7005 allocate_location_exception_catchpoint as allocate_location
7006 method.
7007 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7008 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7009 bp_loc_other.
7010 (breakpoint_address_is_meaningful): Delete.
7011 (bl_address_is_meaningful): New.
7012 (breakpoint_locations_match): Adjust comment.
7013 (bp_location_from_bp_type): New, factored out of...
7014 (bp_location::bp_location(breakpoint *)): ... this.
7015 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7016 factored out of...
7017 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7018 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7019 breakpoint_address_is_meaningful.
7020 (bp_locations_compare): Adjust comment.
7021 (update_global_location_list): Use bl_address_is_meaningful
7022 instead of breakpoint_address_is_meaningful.
7023 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7024 explicit.
7025 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7026 * python/py-breakpoint.c (bppy_get_location): No longer check
7027 whether location is null.
7028
b58a68fe
PA
70292019-07-09 Pedro Alves <palves@redhat.com>
7030
7031 PR c++/15468
7032 * breakpoint.c (print_one_breakpoint_location): Remove
7033 single-location assert.
7034
268a13a5
TT
70352019-07-09 Tom Tromey <tom@tromey.com>
7036
7037 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7038 * configure: Rebuild.
7039 * configure.ac: Change common to gdbsupport.
7040 * gdbsupport: Rename from common.
7041 * acinclude.m4: Change common to gdbsupport.
7042 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7043 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7044 gdbsupport.
7045 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7046 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7047 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7048 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7049 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7050 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7051 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7052 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7053 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7054 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7055 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7056 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7057 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7058 coff-pe-read.c, command.h, compile/compile-c-support.c,
7059 compile/compile-c.h, compile/compile-cplus-symbols.c,
7060 compile/compile-cplus-types.c, compile/compile-cplus.h,
7061 compile/compile-loc2c.c, compile/compile.c, completer.c,
7062 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7063 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7064 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7065 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7066 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7067 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7068 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7069 features/aarch64-core.c, features/aarch64-fpu.c,
7070 features/aarch64-pauth.c, features/aarch64-sve.c,
7071 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7072 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7073 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7074 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7075 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7076 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7077 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7078 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7079 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7080 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7081 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7082 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7083 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7084 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7085 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7086 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7087 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7088 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7089 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7090 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7091 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7092 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7093 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7094 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7095 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7096 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7097 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7098 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7099 minsyms.c, mips-linux-tdep.c, namespace.h,
7100 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7101 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7102 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7103 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7104 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7105 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7106 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7107 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7108 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7109 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7110 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7111 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7112 procfs.c, producer.c, progspace.h, psymtab.h,
7113 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7114 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7115 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7116 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7117 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7118 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7119 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7120 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7121 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7122 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7123 target-memory.c, target.c, target.h, target/waitstatus.c,
7124 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7125 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7126 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7127 unittests/array-view-selftests.c,
7128 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7129 unittests/common-utils-selftests.c,
7130 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7131 unittests/format_pieces-selftests.c,
7132 unittests/function-view-selftests.c,
7133 unittests/lookup_name_info-selftests.c,
7134 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7135 unittests/mkdir-recursive-selftests.c,
7136 unittests/observable-selftests.c,
7137 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7138 unittests/parse-connection-spec-selftests.c,
7139 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7140 unittests/scoped_fd-selftests.c,
7141 unittests/scoped_mmap-selftests.c,
7142 unittests/scoped_restore-selftests.c,
7143 unittests/string_view-selftests.c, unittests/style-selftests.c,
7144 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7145 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7146 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7147 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7148 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7149 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7150
5b0e2db4
AB
71512019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7152
7153 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7154 bool value.
7155 (decode_digits_ordinary): Set explicit_line field in sal.
7156 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7157 symtab_and_line that was set on an explicit line number in
7158 assembler code. Do always update the recorded symtab and line if
7159 we do skip the prologue.
7160
0ba852ab
AB
71612019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7162
7163 * breakpoint.c (set_breakpoint_location_function): Remove
7164 explicit_loc parameter.
7165 (momentary_breakpoint_from_master): Update call to
7166 set_breakpoint_location_function.
7167 (add_location_to_breakpoint): Likewise.
7168
b3a7d171
AB
71692019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7170
7171 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7172 required features based on default bfd type when no specific bfd
7173 is present.
7174
1f6f6e21
PW
71752019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7176
7177 * NEWS: Mention that GDB printf and eval commands can now print
7178 C-style and Ada-style convenience var strings without
7179 calling the inferior.
7180 * printcmd.c (printf_c_string): Locally print GDB internal var
7181 instead of transiting via the inferior.
7182 (printf_wide_c_string): Likewise.
7183
71842019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7185
5862c886 7186 PR breakpoints/25011
ea142fbf
AH
7187 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7188
0598af48
TT
71892019-07-04 Tom Tromey <tom@tromey.com>
7190
7191 PR tui/24724:
7192 * tui/tui-winsource.c (tui_clear_source_content): Update.
7193 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7194 (tui_update_breakpoint_info): Update.
7195 (tui_set_exec_info_content): Update.
7196 * tui/tui-source.c (tui_set_source_content_nil): Update.
7197 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7198 has_break.
7199 * tui/tui-data.h (enum tui_bp_flag): New.
7200 (tui_bp_flags): New enum flags type.
7201 (struct tui_source_element) <break_mode>: Change type. Rename
7202 from has_break.
7203 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7204 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7205 constants.
7206 * tui/tui-winsource.h: Fix comment.
7207
350fab54
AH
72082019-07-04 Alan Hayward <alan.hayward@arm.com>
7209
7210 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7211 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7212 (store_fpregs_to_thread)
7213 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7214 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7215 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7216 (IWMMXT_REGS_SIZE): Add define.
7217 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7218 (fetch_vfp_regs, store_vfp_regs)
7219 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7220 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7221
f0452268
AH
72222019-07-04 Alan Hayward <alan.hayward@arm.com>
7223
7224 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7225 defines.
7226 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7227 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7228 (ARM_INT_REGISTER_SIZE): ...to this.
7229 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7230 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7231 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7232 (arm_linux_collect_gregset, supply_nwfpe_register)
7233 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7234 defines.
7235 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7236 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7237 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7238 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7239 (arm_return_in_memory, arm_store_return_value)
7240 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7241 (arm_record_ld_st_multiple): Likewise.
7242 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7243 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7244
e935475c
AH
72452019-07-04 Alan Hayward <alan.hayward@arm.com>
7246
7247 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7248 AARCH64_DISPLACED_MODIFIED_INSNS.
7249 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7250 (aarch64_displaced_step_copy_insn): Likewise.
7251 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7252 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7253 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7254 ARM_DISPLACED_MODIFIED_INSNS.
7255 * arm-tdep.c (arm_gdbarch_init): Likewise.
7256 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7257 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7258 (struct arm_displaced_step_closure): Use
7259 ARM_DISPLACED_MODIFIED_INSNS.
7260
df0bb381
AH
72612019-07-04 Alan Hayward <alan.hayward@arm.com>
7262
7263 * features/Makefile: Remove unused xml files.
7264 * features/aarch64.xml: Remove.
7265 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7266 * features/i386/amd64-avx-avx512.xml: Remove.
7267 * features/i386/amd64-avx-linux.xml: Remove.
7268 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7269 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7270 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7271 * features/i386/amd64-avx-mpx.xml: Remove.
7272 * features/i386/amd64-avx.xml: Remove.
7273 * features/i386/amd64-linux.xml: Remove.
7274 * features/i386/amd64-mpx-linux.xml: Remove.
7275 * features/i386/amd64-mpx.xml: Remove.
7276 * features/i386/amd64.xml: Remove.
7277 * features/i386/i386-avx-avx512-linux.xml: Remove.
7278 * features/i386/i386-avx-avx512.xml: Remove.
7279 * features/i386/i386-avx-linux.xml: Remove.
7280 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7281 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7282 * features/i386/i386-avx-mpx-linux.xml: Remove.
7283 * features/i386/i386-avx-mpx.xml: Remove.
7284 * features/i386/i386-avx.xml: Remove.
7285 * features/i386/i386-linux.xml: Remove.
7286 * features/i386/i386-mmx-linux.xml: Remove.
7287 * features/i386/i386-mmx.xml: Remove.
7288 * features/i386/i386-mpx-linux.xml: Remove.
7289 * features/i386/i386-mpx.xml: Remove.
7290 * features/i386/i386.xml: Remove.
7291 * features/i386/x32-avx-avx512-linux.xml: Remove.
7292 * features/i386/x32-avx-linux.xml: Remove.
7293 * features/i386/x32-linux.xml: Remove.
7294
edd6266a
AH
72952019-07-04 Alan Hayward <alan.hayward@arm.com>
7296
7297 * regformats/aarch64.dat: Remove.
7298 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7299 * regformats/i386/amd64-avx-linux.dat: Remove.
7300 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7301 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7302 * regformats/i386/amd64-linux.dat: Remove.
7303 * regformats/i386/amd64-mpx-linux.dat: Remove.
7304 * regformats/i386/amd64.dat: Remove.
7305 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7306 * regformats/i386/i386-avx-linux.dat: Remove.
7307 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7308 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7309 * regformats/i386/i386-linux.dat: Remove.
7310 * regformats/i386/i386-mmx-linux.dat: Remove.
7311 * regformats/i386/i386-mpx-linux.dat: Remove.
7312 * regformats/i386/i386.dat: Remove.
7313 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7314 * regformats/i386/x32-avx-linux.dat: Remove.
7315 * regformats/i386/x32-linux.dat: Remove.
7316
2b40fda7
AH
73172019-07-04 Alan Hayward <alan.hayward@arm.com>
7318
7319 * aarch64-tdep.c: Remove xml self tests.
7320 * amd64-linux-tdep.c: Likewise.
7321 * amd64-tdep.c: Likewise.
7322 * i386-linux-tdep.c: Likewise.
7323 * i386-tdep.c: Likewise.
7324
5f4ba3e7
PA
73252019-07-03 Pedro Alves <palves@redhat.com>
7326
7327 PR cli/24732
7328 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7329 (pipe_cmd_option_defs): New.
7330 (make_pipe_cmd_options_def_group): New.
7331 (pipe_command): Use gdb::option::process_options.
7332 (pipe_command_completer): New function.
7333 (_initialize_cli_cmds): Install completer for "pipe" command.
7334
3d9be6f5
PA
73352019-07-03 Pedro Alves <palves@redhat.com>
7336
7337 * cli/cli-option.c (union option_value) <string>: New field.
7338 (struct option_def_and_value): Add ctor, move ctor, dtor and
7339 use DISABLE_COPY_AND_ASSIGN.
7340 (option_def_and_value::clear_value): New.
7341 (parse_option, save_option_value_in_ctx, get_val_type_str)
7342 (add_setshow_cmds_for_options): Handle var_string.
7343 * cli-option.h (union option_def::var_address) <string>: New
7344 field.
7345 (struct string_option_def): New.
7346 * maint-test-options.c (struct test_options_opts): Add default
7347 ctor and use DISABLE_COPY_AND_ASSIGN.
7348 <string_opt>: New field.
7349 (test_options_opts::~test_options_opts): New.
7350 (test_options_opts::dump): Also dump "-string".
7351 (test_options_option_defs): Install "string.
7352
41fc454c
PA
73532019-07-03 Pedro Alves <palves@redhat.com>
7354
7355 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7356 option_value with a null enumeration.
7357 (complete_options): Save the option values in the context.
7358 (save_option_value_in_ctx): New, factored out from ...
7359 (process_options): ... here.
7360 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7361 of the function.
7362 * maint-test-options.c (test_options_opts::dump): New, factored
7363 out from ...
7364 (maintenance_test_options_command_mode): ... here.
7365 (maintenance_test_options_command_completion_result): Delete.
7366 (maintenance_test_options_command_completion_text): Update
7367 comment.
7368 (maintenance_show_test_options_completion_result): Change
7369 prototype. Just print
7370 maintenance_test_options_command_completion_text.
7371 (save_completion_result): New.
7372 (maintenance_test_options_completer_mode): Pass options context to
7373 complete_options, and then save a dump.
7374 (_initialize_maint_test_options): Use add_cmd to install "maint
7375 show test-options-completion-result".
7376
fdbc9870
PA
73772019-07-03 Pedro Alves <palves@redhat.com>
7378
7379 * NEWS (New commands): Mention "with" and "maint with".
7380 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7381 (with_command, with_command_completer): New.
7382 (pipe_command): Adjust to new repeat_previous
7383 interface.
7384 (_initialize_cli_cmds): Install the "with" command and its "w"
7385 alias.
7386 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7387 declarations.
7388 * cli/cli-setshow.c (parse_cli_var_uinteger)
7389 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7390 argument strings for all var_types.
7391 (get_setshow_command_value_string): New, factored out from ...
7392 (do_show_command): ... this.
7393 * cli/cli-setshow.h: Include <string>.
7394 (get_setshow_command_value_string): Declare.
7395 * command.h (repeat_previous): Now returns const char *. Adjust
7396 comment.
7397 * maint.c: Include "cli/cli-cmds.h".
7398 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7399 (_initialize_maint_cmds): Register the "maintenance with" command.
7400 * top.c (repeat_previous): Move bits from pipe_command here:
7401 Return the saved command line, if any; error out if there's no
7402 command to relaunch.
7403
c6ac8931
PA
74042019-07-03 Pedro Alves <palves@redhat.com>
7405
7406 * NEWS (New commands): Mention "maint set/show test-settings"
7407 instead of "maint test-settings".
7408 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7409 (maintenance_test_settings_set_list): Rename to ...
7410 (maintenance_set_test_settings_list): ... this.
7411 (maintenance_test_settings_show_list): Rename to ...
7412 (maintenance_show_test_settings_list): ... this.
7413 (maintenance_test_settings_cmd): Delete.
7414 (maintenance_test_settings_set_cmd): ...
7415 (maintenance_set_test_settings_cmd): ... this.
7416 (maintenance_test_settings_show_cmd): ...
7417 (maintenance_show_test_settings_cmd): ... this.
7418 (maintenance_test_settings_show_value_cmd):
7419 (maintenance_show_test_settings_value_cmd): ... this.
7420 (_initialize_maint_test_settings): No longer install the "maint
7421 test-settings" prefix command. Rename "maint test-settings set"
7422 to "maint set test-settings", and "maint test-settings show" to
7423 "maint show test-settings". Adjust all subcommands.
7424
d1fcf2fd
PA
74252019-07-03 Pedro Alves <palves@redhat.com>
7426
7427 * maint-test-settings.c: Fix file's intro comment. Replace all
7428 references to "test-options" with references to "test-settings",
7429 in comments.
7430
970f9d09
PA
74312019-07-03 Pedro Alves <palves@redhat.com>
7432
7433 * maint-test-settings.c (maintenance_test_settings_xxx)
7434 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7435 New.
7436 (maintenance_test_settings_enums): Use them.
7437 (maintenance_test_settings_enum): Default to
7438 maintenance_test_settings_xxx.
7439 (_initialize_maint_test_settings): Initialize
7440 MAINTENANCE_TEST_SETTINGS_FILENAME.
7441
f3869b1a
SM
74422019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7443
7444 * breakpoint.h (remove_breakpoints_inf): Change return type to
7445 void, move function documentation here.
7446 * breakpoint.c (remove_breakpoints_inf): Change return type to
7447 void, move function documentation to header.
7448
54d66006
PA
74492019-07-02 Pedro Alves <palves@redhat.com>
7450
7451 * NEWS (Completion improvements): Mention "info threads".
7452 * thread.c (struct info_threads_opts, info_threads_option_defs)
7453 (make_info_threads_options_def_group): New.
7454 (info_threads_command): Use gdb::option::process_options.
7455 (info_threads_command_completer): New.
7456 (_initialize_thread): Use gdb::option::build_help to build the
7457 help text for "info threads".
7458
854f6088
SM
74592019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7460
7461 * defs.h (generic_load): Move from here...
7462 * symfile.h (generic_load): ... to here. Rename name parameter
7463 to args.
7464 * symfile.c (generic_load): Add comment.
7465
54ee4252
TT
74662019-07-01 Tom Tromey <tromey@adacore.com>
7467
7468 * dwarf2read.c
7469 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7470 declaration of without_params. Fix formatting.
7471
65392b3e
TT
74722019-07-01 Tom Tromey <tromey@adacore.com>
7473
7474 * ada-exp.y (find_primitive_type): Update.
7475 * ada-lang.h (ada_lookup_symbol): Update.
7476 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7477 parameter.
7478 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7479
7d7571f0
SDJ
74802019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7481
7482 PR breakpoints/24541
7483 * gdbarch.c: Regenerate.
7484 * gdbarch.h: Regenerate.
7485 * gdbarch.sh: Add 'stap_adjust_register'.
7486 * i386-tdep.c: Include '<unordered_set>'.
7487 (i386_stap_adjust_register): New function.
7488 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7489 * stap-probe.c (stap_parse_register_operand): Call
7490 'gdbarch_stap_adjust_register'.
7491
5af5392a
SDJ
74922019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7493
7494 PR python/24742
7495 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7496 * python/python.c (do_start_initialization): Use 'xmalloc'
7497 instead of 'PyMem_Malloc'.
7498
10d06d82
TT
74992019-06-28 Tom Tromey <tromey@adacore.com>
7500
7501 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7502 for Ada.
7503
1b7f24cd
TT
75042019-06-27 Tom Tromey <tromey@adacore.com>
7505
7506 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7507 objfile_key.
7508 (arm_find_mapping_symbol, arm_record_special_symbol)
7509 (_initialize_arm_tdep): Update.
7510 (arm_objfile_data_free): Remove.
7511
3d507ff2
TT
75122019-06-27 Tom Tromey <tromey@adacore.com>
7513
7514 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7515 to cp_print_static_field.
7516
762c164d
TT
75172019-06-26 Tom Tromey <tromey@adacore.com>
7518
7519 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7520 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7521 declare.
7522
aa2f9bcf
AH
75232019-06-26 Alan Hayward <alan.hayward@arm.com>
7524
7525 * features/aarch64-core.c (create_feature_aarch64_core):
7526 Regenerate.
7527 * features/aarch64-core.xml: Add cpsr flags.
7528
3426ae57
AH
75292019-06-26 Alan Hayward <alan.hayward@arm.com>
7530
7531 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7532 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7533
4838e44c
SM
75342019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7535
7536 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7537 field.
7538 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7539 use.
7540 (arm_record_special_symbol): Don't insert new symbol in sorted
7541 position, push it at the end.
7542
54cc7474
SM
75432019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7544
7545 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7546 (arm_mapping_symbol_s): Remove.
7547 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7548 (arm_mapping_symbol_vec): New typedef.
7549 (struct arm_per_objfile): Add constructor.
7550 <section_maps>: Change type to
7551 std::unique_ptr<arm_mapping_symbol_vec[]>.
7552 (arm_compare_mapping_symbols): Remove.
7553 (arm_find_mapping_symbol): Adjust to section_maps type change.
7554 (arm_objfile_data_free): Call delete on arm_per_objfile.
7555 (arm_record_special_symbol): Adjust to section_maps type change.
7556 Allocate arm_per_objfile with new.
7557
b65b566c
PW
75582019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7559
7560 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7561 with the command prefix.
7562
c2fc64f5
TT
75632019-06-25 Tom Tromey <tom@tromey.com>
7564
7565 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7566 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7567
fb54fa76
TT
75682019-06-25 Tom Tromey <tom@tromey.com>
7569
7570 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7571 type.
7572 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7573 protected.
7574
f7952c57
TT
75752019-06-25 Tom Tromey <tom@tromey.com>
7576
7577 * tui/tui-winsource.c
7578 (tui_source_window_base::set_is_exec_point_at): Add check against
7579 LOA_ADDRESS.
7580
17568d78
TT
75812019-06-25 Tom Tromey <tom@tromey.com>
7582
7583 * tui/tui-source.c (tui_set_source_content): Don't check before
7584 xfree.
7585 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7586
53e7cdba
TT
75872019-06-25 Tom Tromey <tom@tromey.com>
7588
7589 * tui/tui-winsource.h (tui_update_source_window_as_is)
7590 (tui_alloc_source_buffer, tui_line_is_displayed)
7591 (tui_addr_is_displayed): Change type of win_info.
7592 * tui/tui-winsource.c (tui_update_source_window_as_is)
7593 (tui_clear_source_content, tui_show_source_line)
7594 (tui_show_source_content, tui_source_window_base::refill)
7595 (tui_source_window_base::set_is_exec_point_at)
7596 (tui_source_window_base::set_is_exec_point_at)
7597 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7598 (tui_alloc_source_buffer, tui_line_is_displayed)
7599 (tui_addr_is_displayed): Change type of win_info. Update.
7600 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7601 (tui_source_window_base::do_make_visible_with_new_height):
7602 Update.
7603 * tui/tui-source.c (tui_set_source_content)
7604 (tui_set_source_content_nil)
7605 (tui_source_window::do_scroll_vertical): Update.
7606 * tui/tui-layout.c (show_layout): Update.
7607 * tui/tui-disasm.c (tui_set_disassem_content)
7608 (tui_disasm_window::do_scroll_vertical): Update.
7609 * tui/tui-data.h (tui_win_content): Remove.
7610 (struct tui_gen_win_info) <content, content_size>: Remove.
7611 (struct tui_source_element): Add initializers and destructor.
7612 (union tui_which_element, struct tui_win_element): Remove.
7613 (struct tui_source_window_base) <content>: New field.
7614 (struct tui_data_window): Remove destructor.
7615 (tui_alloc_content, tui_free_win_content)
7616 (tui_free_all_source_wins_content): Don't declare.
7617 * tui/tui-data.c (tui_initialize_static_data): Update.
7618 (init_content_element, tui_alloc_content): Remove.
7619 (~tui_gen_win_info): Update.
7620 (~tui_data_window, tui_free_all_source_wins_content)
7621 (tui_free_win_content, free_content, free_content_elements):
7622 Remove.
7623
7908abbf
TT
76242019-06-25 Tom Tromey <tom@tromey.com>
7625
7626 * tui/tui-winsource.h (tui_clear_source_content)
7627 (tui_erase_source_content, tui_show_source_content): Change type
7628 of win_info.
7629 * tui/tui-winsource.c (tui_clear_source_content)
7630 (tui_erase_source_content, tui_show_source_content): Change type
7631 of win_info.
7632 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7633 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7634 win_info.
7635 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7636 win_info.
7637 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7638
02c28df0
TT
76392019-06-25 Tom Tromey <tom@tromey.com>
7640
7641 * tui/tui-winsource.c (tui_clear_source_content)
7642 (tui_source_window_base::set_is_exec_point_at): Update.
7643 * tui/tui-source.c (tui_set_source_content_nil): Update.
7644 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7645 a bool.
7646 * tui/tui-data.c (init_content_element): Update.
7647
6658b1bf
TT
76482019-06-25 Tom Tromey <tom@tromey.com>
7649
7650 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7651 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7652 * tui/tui-layout.c (init_and_make_win): Update.
7653 * tui/tui.h (enum tui_win_type): Update.
7654 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7655 tui_win_is_auxillary.
7656 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7657 tui_win_is_auxillary.
7658
21e1c91e
TT
76592019-06-25 Tom Tromey <tom@tromey.com>
7660
7661 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7662 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7663 (tui_delete_data_content_windows, tui_display_all_data)
7664 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7665 Update.
7666 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7667 * tui/tui-regs.c (tui_last_regs_line_no)
7668 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7669 (tui_show_registers): Update.
7670 (tui_show_register_group): Return void. Update.
7671 (tui_display_registers_from, tui_display_reg_element_at_line)
7672 (tui_display_registers_from_line, tui_check_register_values):
7673 Update.
7674 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7675 member.
7676 (struct tui_data_window) <regs_content>: Now a std::vector.
7677 <regs_content_count>: Remove.
7678 (tui_add_content_elements, tui_free_data_content): Don't declare.
7679 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7680 (init_content_element): Remove DATA_WIN case. Add assert.
7681 (tui_add_content_elements): Remove.
7682 (tui_data_window): Update.
7683 (tui_free_data_content): Remove.
7684 (free_content_elements): Remove DATA_WIN case.
7685
115ac53b
TT
76862019-06-25 Tom Tromey <tom@tromey.com>
7687
7688 * tui/tui-data.c (tui_data_item_window): Update.
7689 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7690 * tui/tui-windata.c (tui_display_all_data)
7691 (tui_display_data_from_line): Update.
7692 (tui_check_data_values): Remove.
7693 * tui/tui-regs.c (tui_show_register_group)
7694 (tui_display_reg_element_at_line): Update.
7695 * tui/tui-hooks.c (tui_register_changed)
7696 (tui_refresh_frame_and_register_information): Call
7697 tui_check_register_values.
7698 * tui/tui-data.h (struct tui_data_window) <data_content,
7699 data_content_count, data_type>: Remove.
7700 (enum tui_data_type): Remove.
7701
7702 * tui/tui-data.c (tui_data_window::clear_detail)
7703 (~tui_data_window): Update.
7704
eaf9738b
TT
77052019-06-25 Tom Tromey <tom@tromey.com>
7706
7707 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7708 declare.
7709 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7710 Rename from tui_first_data_item_displayed. Update.
7711 (tui_data_window::refresh_all)
7712 (tui_data_window::do_scroll_vertical): Update.
7713 * tui/tui-data.h (struct tui_data_window)
7714 <first_data_item_displayed>: Declare new method.
7715
31ca4723
TT
77162019-06-25 Tom Tromey <tom@tromey.com>
7717
7718 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7719 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7720 contents...
7721 (tui_initialize_static_data): ...here.
7722
41bcff7f
TT
77232019-06-25 Tom Tromey <tom@tromey.com>
7724
7725 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7726 (tui_display_registers_from, tui_check_register_values): Update.
7727 (tui_display_register): Remove win_info parameter; update.
7728 (tui_get_register): Change type of parameters.
7729 * tui/tui-data.h (struct tui_data_element): Remove.
7730 (union tui_which_element) <data>: Remove.
7731 <data_window>: Change type.
7732 (struct tui_data_item_window): New.
7733 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7734 case. Add assert.
7735 (~tui_data_item_window): New destructor.
7736 (free_content_elements): Remove DATA_ITEM_WIN case.
7737
d2802c33
TT
77382019-06-25 Tom Tromey <tom@tromey.com>
7739
7740 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7741 Remove.
7742
dd835f8b
TT
77432019-06-25 Tom Tromey <tom@tromey.com>
7744
7745 * tui/tui-data.h (struct tui_command_element): Remove.
7746 (union tui_which_element) <command>: Remove.
7747 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7748 assert.
7749 (free_content_elements): Remove CMD_WIN case.
7750
bd7db367
TT
77512019-06-25 Tom Tromey <tom@tromey.com>
7752
7753 * tui/tui-layout.c (tui_set_layout): Update.
7754 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7755 * tui/tui-data.c (layout_def): Update.
7756
3add462f
TT
77572019-06-25 Tom Tromey <tom@tromey.com>
7758
7759 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7760 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7761 (tui_source_window_base::set_new_height): Update.
7762 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7763 Update.
7764 (tui_set_locator_fullname, tui_set_locator_info)
7765 (tui_show_frame_info): Update.
7766 * tui/tui-source.c (tui_set_source_content)
7767 (tui_source_is_displayed): Update.
7768 * tui/tui-layout.c (show_source_disasm_command, show_data)
7769 (show_source_or_disasm_and_command): Update.
7770 * tui/tui-disasm.c (tui_set_disassem_content)
7771 (tui_get_begin_asm_address): Update.
7772 * tui/tui-data.h (struct tui_locator_element): Remove.
7773 (union tui_which_element) <locator>: Remove.
7774 (struct tui_locator_window): New.
7775 (tui_locator_win_info_ptr): Change return type.
7776 * tui/tui-data.c (_locator): Change type.
7777 (tui_locator_win_info_ptr): Change return type.
7778 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7779 (tui_alloc_content): Add assert.
7780
489e9d8b
TT
77812019-06-25 Tom Tromey <tom@tromey.com>
7782
7783 * tui/tui-winsource.c
7784 (tui_exec_info_window::maybe_allocate_content): New method.
7785 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7786 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7787 (make_source_or_disasm_window): Add cast.
7788 * tui/tui-data.h (union tui_which_element) <simple_string>:
7789 Remove.
7790 (struct tui_source_info): New.
7791 (struct tui_source_window_base) <execution_info>: Change type.
7792 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7793 case, and add assert.
7794 (tui_alloc_content): Add assert.
7795
c3fabb7d
TT
77962019-06-25 Tom Tromey <tom@tromey.com>
7797
7798 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7799 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7800 * tui/tui-data.c (tui_alloc_win_info): Remove.
7801
bbc228ee
TT
78022019-06-25 Tom Tromey <tom@tromey.com>
7803
7804 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7805 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7806 can_highlight.
7807
5fcee43a
TT
78082019-06-25 Tom Tromey <tom@tromey.com>
7809
7810 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7811 make_visible_with_new_height method.
7812 (tui_win_info::make_visible_with_new_height): New method.
7813 (tui_source_window_base::do_make_visible_with_new_height)
7814 (tui_data_window::do_make_visible_with_new_height)
7815 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7816 (make_visible_with_new_height): Remove.
7817 (tui_resize_all, tui_adjust_win_heights): Use
7818 make_visible_with_new_height method.
7819 * tui/tui-data.h (struct tui_win_info)
7820 <do_make_visible_with_new_height, make_visible_with_new_height>:
7821 New methods.
7822 (struct tui_source_window_base, struct tui_data_window)
7823 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7824 methods.
7825
d83f1fe6
TT
78262019-06-25 Tom Tromey <tom@tromey.com>
7827
7828 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7829 method.
7830 (update_tab_width): Call update_tab_width method.
7831 * tui/tui-data.h (struct tui_win_info)
7832 (struct tui_source_window_base) <update_tab_width>: New methods.
7833
17374de4
TT
78342019-06-25 Tom Tromey <tom@tromey.com>
7835
7836 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7837 parameter.
7838 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7839 parameter.
7840 (tui_gen_win_info::make_visible): Update.
7841 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7842 parameter.
7843 * tui/tui-data.h (enum tui_box): New enum.
7844 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7845
f936bca2
TT
78462019-06-25 Tom Tromey <tom@tromey.com>
7847
7848 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7849 init_and_make_win for EXEC_INFO_WIN.
7850 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7851 longer inline.
7852 (struct tui_win_info) <~tui_win_info>: Inline.
7853 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7854 Don't declare.
7855 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7856 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7857 Remove.
7858 (tui_initialize_static_data): Update.
7859 (~tui_gen_win_info): Handle more cleanup here.
7860 (~tui_source_window_base): Delete "execution_info".
7861 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7862
d6ba6a11
TT
78632019-06-25 Tom Tromey <tom@tromey.com>
7864
7865 * tui/tui-layout.c (make_command_window): Don't set
7866 can_highlight.
7867 (show_source_disasm_command): Call the reset method.
7868 (show_data): Don't set can_highlight. Call the reset method.
7869 (tui_gen_win_info::reset): Rename from init_gen_win_info
7870 (init_and_make_win): Simplify. Return tui_gen_win_info.
7871 (show_source_or_disasm_and_command): Call the reset method.
7872 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7873 (struct tui_cmd_window): Set can_highlight.
7874
48a3bd16
TT
78752019-06-25 Tom Tromey <tom@tromey.com>
7876
7877 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7878 from make_visible.
7879 (tui_make_visible, tui_make_invisible): Rewrite.
7880 (tui_win_info::make_visible): Remove.
7881 (tui_source_window_base::make_visible): Update.
7882 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7883 method. Moved from...
7884 (struct tui_win_info) <make_visible>: ...here.
7885
c3bd716f
TT
78862019-06-25 Tom Tromey <tom@tromey.com>
7887
7888 * tui/tui-winsource.c
7889 (tui_source_window_base::do_scroll_horizontal): Remove direction
7890 parameter.
7891 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7892 direction parameter.
7893 * tui/tui-win.c (tui_win_info::forward_scroll)
7894 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7895 (tui_win_info::right_scroll): Update.
7896 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7897 direction parameter.
7898 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7899 direction parameter.
7900 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7901 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7902 Remove direction parameter.
7903 (struct tui_source_window_base, struct tui_source_window)
7904 (struct tui_disasm_window, struct tui_data_window)
7905 (struct tui_cmd_window): Update.
7906
21c32dca
TT
79072019-06-25 Tom Tromey <tom@tromey.com>
7908
7909 * tui/tui-winsource.h (tui_set_exec_info_content)
7910 (tui_show_exec_info_content, tui_erase_exec_info_content)
7911 (tui_clear_exec_info_content, tui_update_exec_info): Change
7912 argument to tui_source_window_base.
7913 * tui/tui-winsource.c (tui_set_exec_info_content)
7914 (tui_show_exec_info_content, tui_erase_exec_info_content)
7915 (tui_clear_exec_info_content, tui_update_exec_info): Change
7916 argument to tui_source_window_base.
7917
73fbdc65
TT
79182019-06-25 Tom Tromey <tom@tromey.com>
7919
7920 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7921 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7922
33325343
TT
79232019-06-25 Tom Tromey <tom@tromey.com>
7924
7925 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7926 check.
7927
29d2c474
TT
79282019-06-25 Tom Tromey <tom@tromey.com>
7929
7930 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7931 type to void.
7932 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7933 type to void.
7934 * tui/tui-source.c (tui_set_source_content): Update.
7935 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7936
152f3f4b
TT
79372019-06-25 Tom Tromey <tom@tromey.com>
7938
7939 * tui/tui-win.c (window_name_completer, tui_set_focus)
7940 (tui_all_windows_info): Use name method.
7941 * tui/tui-data.h (struct tui_gen_win_info)
7942 (struct tui_source_window, struct tui_disasm_window)
7943 (struct tui_data_window, struct tui_cmd_window) <name>: New
7944 method.
7945 (tui_win_name): Don't declare.
7946 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7947 (tui_win_name): Remove.
7948
be4da588
TT
79492019-06-25 Tom Tromey <tom@tromey.com>
7950
7951 * tui/tui-winsource.h (tui_update_source_window)
7952 (tui_update_source_window_as_is): Change parameter type.
7953 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7954 to be a tui_source_window_base.
7955 (tui_update_source_window_as_is): Likewise.
7956 * tui/tui-win.c (make_visible_with_new_height): Update.
7957
5b81daba
TT
79582019-06-25 Tom Tromey <tom@tromey.com>
7959
7960 * tui/tui-winsource.c (tui_erase_source_content)
7961 (tui_show_source_content, tui_show_exec_info_content)
7962 (tui_erase_exec_info_content): Use refresh_window method.
7963 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7964 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7965 from tui_refresh_win.
7966 (tui_data_window::refresh_window): New method.
7967 (tui_win_info::refresh, tui_source_window_base::refresh)
7968 (tui_refresh_all): Use refresh_window method.
7969 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7970 method.
7971 * tui/tui-regs.c (tui_display_register): Call refresh_window
7972 method.
7973 * tui/tui-layout.c (show_source_disasm_command)
7974 (show_source_or_disasm_and_command): Call refresh_window method.
7975 * tui/tui-data.h (struct tui_gen_win_info)
7976 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7977 New method.
7978
cb2ce893
TT
79792019-06-25 Tom Tromey <tom@tromey.com>
7980
7981 * tui/tui.c (tui_rl_other_window, tui_enable)
7982 (tui_is_window_visible, tui_get_command_dimension): Update.
7983 * tui/tui-winsource.c (tui_update_source_window_as_is)
7984 (tui_clear_source_content, tui_erase_source_content)
7985 (tui_show_source_line, tui_source_window_base::refill)
7986 (tui_source_window_base::do_scroll_horizontal)
7987 (tui_source_window_base::set_is_exec_point_at)
7988 (tui_update_breakpoint_info, tui_set_exec_info_content)
7989 (tui_alloc_source_buffer, tui_line_is_displayed)
7990 (tui_addr_is_displayed): Update.
7991 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7992 (tui_check_and_display_highlight_if_needed)
7993 (tui_win_info::make_visible, tui_win_info::refresh)
7994 (tui_refresh_all): Update.
7995 * tui/tui-windata.c (tui_first_data_item_displayed)
7996 (tui_delete_data_content_windows, tui_erase_data_content)
7997 (tui_display_all_data, tui_data_window::refresh_all)
7998 (tui_check_data_values): Update.
7999 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8000 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8001 (tui_win_info::backward_scroll, tui_refresh_all_win)
8002 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8003 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8004 (tui_source_window_base::set_new_height)
8005 (tui_data_window::set_new_height)
8006 (make_invisible_and_set_new_height)
8007 (make_visible_with_new_height, new_height_ok)
8008 (parse_scrolling_args): Update.
8009 * tui/tui-stack.c (tui_show_frame_info): Update.
8010 * tui/tui-source.c (tui_set_source_content)
8011 (tui_set_source_content_nil, tui_source_is_displayed)
8012 (tui_source_window::do_scroll_vertical): Update.
8013 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8014 (tui_display_registers_from, tui_display_reg_element_at_line)
8015 (tui_check_register_values, tui_reg_command): Update.
8016 * tui/tui-layout.c (tui_default_win_height)
8017 (show_source_disasm_command, show_data, init_and_make_win)
8018 (show_source_or_disasm_and_command): Update.
8019 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8020 (tui_redisplay_readline, tui_mld_flush)
8021 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8022 (tui_getc): Update.
8023 * tui/tui-disasm.c (tui_set_disassem_content)
8024 (tui_disasm_window::do_scroll_vertical): Update.
8025 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8026 Now virtual.
8027 (struct tui_win_info): Derive from tui_gen_win_info.
8028 <~tui_win_info>: Mark as override.
8029 <generic>: Remove member.
8030 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8031 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8032 (~tui_data_window, ~tui_win_info)
8033 (tui_free_all_source_wins_content): Update.
8034 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8035
ab313b35
TT
80362019-06-25 Tom Tromey <tom@tromey.com>
8037
8038 * tui/tui-layout.c (init_and_make_win): Use new.
8039 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8040 destructor, initializers.
8041 (tui_alloc_generic_win_info): Don't declare.
8042 * tui/tui-data.c (_locator): Add argument to constructor.
8043 (source_win, disasm_win): New globals.
8044 (exec_info): Remove.
8045 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8046 Update.
8047 (tui_alloc_generic_win_info): Remove.
8048 (init_content_element): Use new.
8049 (tui_win_info::tui_win_info): Update.
8050 (free_content_elements) <case DATA_WIN>: Use delete.
8051
dc2c33e4
TT
80522019-06-25 Tom Tromey <tom@tromey.com>
8053
8054 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8055 * tui/tui-windata.c (tui_first_data_item_displayed)
8056 (tui_delete_data_content_windows): Update.
8057 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8058 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8059 (tui_display_registers_from, tui_check_register_values): Update.
8060 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8061 pointer.
8062 * tui/tui-data.c (init_content_element): Update. Allocate the new
8063 window.
8064 (tui_free_data_content): Update.
8065 (free_content_elements) <case DATA_WIN>: Free the window.
8066
214a5cbe
TT
80672019-06-25 Tom Tromey <tom@tromey.com>
8068
8069 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8070 Update.
8071 * tui/tui-layout.c (make_command_window)
8072 (show_source_disasm_command, show_data, init_and_make_win)
8073 (show_source_or_disasm_and_command): Update.
8074 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8075 method.
8076 <can_highight, is_highlighted>: Now bool.
8077 (tui_set_win_highlight): Don't declare.
8078 * tui/tui-data.c (tui_set_win_highlight): Remove.
8079
8e2daf15
TT
80802019-06-25 Tom Tromey <tom@tromey.com>
8081
8082 * tui/tui-wingeneral.c (make_visible): Remove check of window
8083 type.
8084
8903bd8a
TT
80852019-06-25 Tom Tromey <tom@tromey.com>
8086
8087 * tui/tui-win.c (tui_win_info::max_height)
8088 (tui_cmd_window::max_height): New methods.
8089 (new_height_ok): Call max_height.
8090 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8091 <max_height>: New method.
8092
3f02ce1e
TT
80932019-06-25 Tom Tromey <tom@tromey.com>
8094
8095 * tui/tui-win.c (tui_source_window_base::set_new_height)
8096 (tui_data_window::set_new_height): New methods.
8097 (make_invisible_and_set_new_height): Call set_new_height method.
8098 * tui/tui-data.h (struct tui_win_info)
8099 (struct tui_source_window_base, struct tui_data_window)
8100 <set_new_height>: New method.
8101
1825f487
TT
81022019-06-25 Tom Tromey <tom@tromey.com>
8103
8104 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8105 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8106 tui_refresh_data_win.
8107 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8108 method.
8109 (tui_refresh_all_win): Call the refresh_all method.
8110 (tui_set_focus): Likewise.
8111 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8112 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8113 Likewise.
8114
ad54d15b
TT
81152019-06-25 Tom Tromey <tom@tromey.com>
8116
8117 * tui/tui-winsource.h (tui_refill_source_window)
8118 (tui_set_is_exec_point_at): Don't declare.
8119 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8120 (tui_source_window_base::refill): Rename from
8121 tui_refill_source_window.
8122 (tui_source_window_base::do_scroll_horizontal): Update.
8123 (tui_source_window_base::set_is_exec_point_at): Rename from
8124 tui_set_is_exec_point_at.
8125 (tui_update_all_breakpoint_info): Update.
8126 * tui/tui-stack.c (tui_show_frame_info): Update.
8127 * tui/tui-layout.c (show_data): Add cast.
8128 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8129 * tui/tui-data.h (struct tui_source_window_base) <refill,
8130 set_is_exec_point_at>: New methods.
8131 (tui_source_windows, tui_add_to_source_windows): Update types.
8132 (tui_add_to_source_windows): Remove redundant declaration.
8133 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8134 (tui_source_windows): Change return type.
8135 (tui_clear_source_windows_detail): Update.
8136 (tui_add_to_source_windows): Change type of parameter.
8137 (tui_free_all_source_wins_content): Update.
8138
2042b506
TT
81392019-06-25 Tom Tromey <tom@tromey.com>
8140
8141 * tui/tui-wingeneral.c (tui_win_info::refresh)
8142 (tui_source_window_base::refresh): New methods.
8143 (tui_refresh_all): Call the refresh method.
8144 * tui/tui-data.h (struct tui_win_info)
8145 (struct tui_source_window_base) <refresh>: New method.
8146
56122977
TT
81472019-06-25 Tom Tromey <tom@tromey.com>
8148
8149 * tui/tui.h (tui_is_window_visible): Return bool.
8150 * tui/tui.c (tui_is_window_visible): Return bool.
8151 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8152 (tui_make_visible, tui_make_invisible)
8153 (tui_win_info::make_visible)
8154 (tui_source_window_base::make_visible, make_all_visible)
8155 (tui_make_all_visible, tui_make_all_invisible): Update.
8156 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8157 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8158 bool.
8159 (struct tui_win_info, struct tui_source_window_base)
8160 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8161 * tui/tui-data.c (tui_init_generic_part): Update.
8162
cda37efb
TT
81632019-06-25 Tom Tromey <tom@tromey.com>
8164
8165 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8166 (tui_source_window_base::make_visible): New methods.
8167 (make_all_visible): Make method call.
8168 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8169 (struct tui_source_window_base, struct tui_cmd_window): Override
8170 make_visible.
8171 (tui_win_is_source_type): Don't declare.
8172 * tui/tui-data.c (tui_win_is_source_type): Remove.
8173
6a0ee02c
TT
81742019-06-25 Tom Tromey <tom@tromey.com>
8175
8176 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8177 NULL check.
8178
63901aec
TT
81792019-06-25 Tom Tromey <tom@tromey.com>
8180
8181 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8182 Inline constructor. Add initializers for members.
8183 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8184 constructors; now inline in class.
8185
ceb13a13
TT
81862019-06-25 Tom Tromey <tom@tromey.com>
8187
8188 * tui/tui-regs.c (tui_show_registers): Update.
8189 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8190 bool.
8191 * tui/tui-data.c (tui_data_window::clear_detail)
8192 (tui_data_window): Update.
8193
238eb706
TT
81942019-06-25 Tom Tromey <tom@tromey.com>
8195
8196 * tui/tui-windata.c (tui_display_all_data)
8197 (tui_display_data_from_line, tui_display_data_from)
8198 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8199 Update.
8200 * tui/tui-regs.c (tui_last_regs_line_no)
8201 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8202 (tui_show_registers, tui_show_register_group)
8203 (tui_display_registers_from, tui_display_reg_element_at_line)
8204 (tui_display_registers_from_line, tui_check_register_values)
8205 (tui_reg_next, tui_reg_prev): Update.
8206 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8207 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8208 tui_data_window.
8209 (struct tui_win_info) <detail>: Remove. Add new fields from
8210 tui_data_info.
8211 (TUI_DATA_WIN): Add cast.
8212 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8213 (~tui_data_window): Simplify.
8214
81491aa0
TT
82152019-06-25 Tom Tromey <tom@tromey.com>
8216
8217 * tui/tui-layout.c (show_source_disasm_command)
8218 (show_source_or_disasm_and_command): Update.
8219 * tui/tui-io.c (update_cmdwin_start_line)
8220 (tui_redisplay_readline): Update.
8221 * tui/tui-data.h (struct tui_command_info): Remove.
8222 (struct tui_win_info) <detail>: Remove command_info member.
8223 (struct tui_data_window) <start_line>: New member, from
8224 tui_command_info.
8225 (TUI_CMD_WIN): Add casts.
8226
e6e41501
TT
82272019-06-25 Tom Tromey <tom@tromey.com>
8228
8229 * tui/tui-winsource.c (tui_update_source_window)
8230 (tui_refill_source_window)
8231 (tui_source_window_base::do_scroll_horizontal)
8232 (tui_update_breakpoint_info, tui_set_exec_info_content)
8233 (tui_show_exec_info_content, tui_erase_exec_info_content)
8234 (tui_clear_exec_info_content): Update.
8235 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8236 Update.
8237 * tui/tui-win.c (make_invisible_and_set_new_height)
8238 (make_visible_with_new_height): Update.
8239 * tui/tui-source.c (tui_set_source_content)
8240 (tui_show_symtab_source): Update.
8241 * tui/tui-layout.c (extract_display_start_addr)
8242 (show_source_disasm_command, show_data)
8243 (make_source_or_disasm_window)
8244 (show_source_or_disasm_and_command): Update.
8245 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8246 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8247 "gdbarch".
8248 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8249 to tui_source_window_base.
8250 (struct tui_win_info) <detail>: Remove source_info member.
8251 (struct tui_source_window_base) <has_locator>: Inline.
8252 Move contents from tui_source_info; rename has_locator member to
8253 m_has_locator.
8254 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8255 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8256 header file.
8257 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8258 Simplify.
8259 (tui_free_all_source_wins_content): Cast to
8260 tui_source_window_base.
8261
44f0e208
TT
82622019-06-25 Tom Tromey <tom@tromey.com>
8263
8264 * tui/tui-win.c (make_invisible_and_set_new_height)
8265 (make_visible_with_new_height): Call has_locator method.
8266 * tui/tui-layout.c (show_source_disasm_command, show_data)
8267 (show_source_or_disasm_and_command): Update for bool change.
8268 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8269 (tui_win_info) <has_locator>: New method.
8270 (struct tui_source_window_base) <has_locator>: New method.
8271 (tui_win_has_locator): Don't declare.
8272 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8273 from tui_win_has_locator.
8274 (tui_source_window_base): Use false, not FALSE.
8275
7778b912
TT
82762019-06-25 Tom Tromey <tom@tromey.com>
8277
8278 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8279 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8280 clear_detail method directly.
8281 (tui_clear_win_detail): Remove.
8282
f83d391c
TT
82832019-06-25 Tom Tromey <tom@tromey.com>
8284
8285 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8286 "this", not TUI_DISASM_WIN.
8287
13446e05
TT
82882019-06-25 Tom Tromey <tom@tromey.com>
8289
8290 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8291 declare.
8292 * tui/tui-winsource.c
8293 (tui_source_window_base::do_scroll_horizontal): Rename from
8294 tui_horizontal_source_scroll.
8295 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8296 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8297 from tui_vertical_data_scroll.
8298 * tui/tui-win.h (tui_scroll): Don't declare.
8299 * tui/tui-win.c (tui_win_info::forward_scroll)
8300 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8301 (tui_win_info::right_scroll): Rename and update.
8302 (tui_scroll_forward_command, tui_scroll_backward_command)
8303 (tui_scroll_left_command, tui_scroll_right_command): Update.
8304 (tui_scroll): Remove.
8305 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8306 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8307 from tui_vertical_source_scroll.
8308 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8309 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8310 from tui_vertical_disassem_scroll.
8311 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8312 do_scroll_horizontal>: New methods.
8313 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8314 Likewise.
8315 (struct tui_source_window_base): Add do_scroll_horizontal.
8316 (struct tui_source_window, struct tui_disasm_window): Add
8317 do_scroll_vertical.
8318 (struct tui_data_window, struct tui_cmd_window): Add
8319 do_scroll_horizontal and do_scroll_vertical.
8320 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8321
5cf82909
TT
83222019-06-25 Tom Tromey <tom@tromey.com>
8323
8324 * tui/tui-data.h (struct tui_source_window_base): New struct.
8325 (struct tui_source_window): Derive from tui_source_window_base.
8326 (struct tui_disasm_window): New struct.
8327 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8328 from tui_source_window::clear_detail.
8329 (tui_source_window_base): Rename from tui_source_window.
8330 (~tui_source_window_base): Rename from ~tui_source_window.
8331 (tui_alloc_win_info): Create a tui_disasm_window.
8332
ee1d42d6
TT
83332019-06-25 Tom Tromey <tom@tromey.com>
8334
8335 * tui/tui-data.h (struct tui_source_window)
8336 (struct tui_data_window): Declare destructors.
8337 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8338 destructors.
8339 (tui_win_info): Simplify.
8340
b4eb2452
TT
83412019-06-25 Tom Tromey <tom@tromey.com>
8342
8343 * tui/tui-winsource.c (tui_display_main)
8344 (tui_update_source_windows_with_addr)
8345 (tui_update_all_breakpoint_info): Update.
8346 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8347 (new_height_ok, parse_scrolling_args): Update.
8348 * tui/tui-stack.c (tui_show_frame_info): Update.
8349 * tui/tui-data.h (struct tui_list): Remove.
8350 (tui_source_windows): Return a reference to a std::vector.
8351 * tui/tui-data.c (source_windows): Now a std::vector.
8352 (tui_source_windows): Change return type.
8353 (tui_clear_source_windows): Rewrite.
8354 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8355 (tui_free_all_source_wins_content): Rewrite.
8356
8761a91b
TT
83572019-06-25 Tom Tromey <tom@tromey.com>
8358
8359 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8360 (struct tui_data_window, struct tui_cmd_window): Declare
8361 clear_detail method.
8362 * tui/tui-data.c (tui_source_window::clear_detail)
8363 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8364 methods.
8365 (tui_clear_win_detail): Simplify.
8366
0ed69eda
TT
83672019-06-25 Tom Tromey <tom@tromey.com>
8368
8369 * tui/tui-layout.c (make_source_window, make_disasm_window)
8370 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8371 Return the new window.
8372 (show_source_disasm_command, show_data)
8373 (show_source_or_disasm_and_command): Update.
8374
82432e10
TT
83752019-06-25 Tom Tromey <tom@tromey.com>
8376
8377 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8378 parameter. Return the new window.
8379 (show_source_disasm_command): Update and remove NULL check.
8380 (show_source_or_disasm_and_command): Update.
8381
ec328aa5
TT
83822019-06-25 Tom Tromey <tom@tromey.com>
8383
8384 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8385
33b906ab
TT
83862019-06-25 Tom Tromey <tom@tromey.com>
8387
8388 * tui/tui-data.h (struct tui_win_info): Make constructor
8389 protected. Make destructor virtual. Add initializers.
8390 (tui_source_window, tui_data_window, tui_cmd_window): New
8391 classes.
8392 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8393 constructor. Add "type" parameter.
8394 (tui_source_window, tui_data_window, tui_cmd_window): New
8395 constructors.
8396 (tui_alloc_win_info): Instantiate the appropriate subclass.
8397
e7e11af4
TT
83982019-06-25 Tom Tromey <tom@tromey.com>
8399
8400 * tui/tui-win.c (tui_resize_all): Use delete.
8401 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8402 destructor.
8403 (tui_free_window): Don't declare.
8404 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8405 Update.
8406
6792b55e
TT
84072019-06-25 Tom Tromey <tom@tromey.com>
8408
8409 * tui/tui-data.h (struct tui_win_info): Add constructor.
8410 * tui/tui-data.c (tui_alloc_win_info): Use new.
8411 (tui_free_window): Use delete.
8412
f95675e1
TT
84132019-06-22 Tom Tromey <tom@tromey.com>
8414
8415 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8416 declare.
8417 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8418
5bff081c
TT
84192019-06-22 Tom Tromey <tom@tromey.com>
8420
8421 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8422 declare.
8423 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8424
47e3f474
TV
84252019-06-22 Tom de Vries <tdevries@suse.de>
8426
8427 * dwarf2read.c (create_addrmap_from_aranges)
8428 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8429 instead of '%zu'.
8430
fd5866f6
SM
84312019-06-21 Simon Marchi <simon.marchi@efficios.com>
8432
8433 * dwarf2read.h (dwarf2_section_info_def): Remove.
8434 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8435 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8436 std::vector<dwarf2_section_info>.
8437 (struct dwo_file) <~dwo_file>: Remove.
8438 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8439 types field.
8440 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8441 (dwarf2_read_debug_names): Likewise.
8442 (create_debug_types_hash_table): Change parameter type to
8443 array_view, adjust code accordingly.
8444 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8445 (partial_die_info::fixup): Likewise.
8446 (determine_prefix): Likewise.
8447 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8448
fb1eb2f9
SM
84492019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8450
8451 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8452 gdb_bfd_ref_ptr.
8453 <~dwo_file>: Remove call to gdb_bfd_unref.
8454 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8455 gdb_bfd_ref_ptr::get.
8456
51ac9db5
SM
84572019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8458
8459 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8460 type to htab_up.
8461 * dwarf2read.c (struct dwo_file): Initialize fields.
8462 <~dwo_file>: New.
8463 (free_dwo_file): Remove, move content to ~dwo_file.
8464 (struct dwo_file_deleter): Remove.
8465 (dwo_file_up>: Remove custom deleter.
8466 (free_dwo_files): Remove.
8467 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8468 dwo_files.
8469 (process_skeletonless_type_units): Call unique_ptr::get.
8470 (allocate_dwo_file_hash_table): Add deleter to created hash
8471 table. Change return type to htab_up.
8472 (lookup_dwo_file_slot): Don't memset dwo_file, call
8473 unique_ptr::get.
8474 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8475 (create_dwo_unit_in_dwp_v2): Likewise.
8476 (open_and_init_dwo_file): Likewise.
8477 (free_dwo_file_from_slot): Remove.
8478
dc4ccb6f
SM
84792019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8480
8481 * dwarf2read.h (struct dwarf2_section_info) <readin,
8482 is_virtual>: Change type to bool.
8483 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8484 true instead of 1.
8485
e6a1c5cb
TT
84862019-06-19 Tom Tromey <tom@tromey.com>
8487
8488 * tui/tui-data.h (tui_init_content_element): Don't declare.
8489
6f6ffbeb
TT
84902019-06-19 Tom Tromey <tom@tromey.com>
8491
8492 * tui/tui-data.h (tui_init_win_info): Don't declare.
8493
f23f598e
TV
84942019-06-19 Tom de Vries <tdevries@suse.de>
8495
8496 * dwarf2read.h (abstract_to_concrete): Change type to
8497 std::unordered_map<sect_offset, std::vector<sect_offset>,
8498 gdb::hash_enum<sect_offset>>.
8499
680e1bee
TT
85002019-06-19 Tom Tromey <tromey@adacore.com>
8501
8502 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8503 EVAL_AVOID_SIDE_EFFECTS specially.
8504
dcf37923
TT
85052019-06-19 Tom Tromey <tromey@adacore.com>
8506
8507 * source-cache.c (highlighter): New global.
8508 (source_cache::get_source_lines): Create a highlighter on demand.
8509
494986d5
AB
85102019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8511
8512 * defs.h (deprecated_interactive_hook): Delete declaration.
8513 * interps.c (clear_interpreter_hooks): Remove use of
8514 deprecated_interactive_hook.
8515 * top.c (deprecated_interactive_hook): Delete definition.
8516 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8517
3360b6e7
TV
85182019-06-18 Tom de Vries <tdevries@suse.de>
8519
8520 PR gdb/24515
8521 * dwarf2read.h (abstract_to_concrete): Change type from
8522 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8523 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8524 * dwarf2read.c (read_variable): Update.
8525 (dwarf2_fetch_die_loc_sect_off): Update.
8526
310b3441
TV
85272019-06-17 Tom de Vries <tdevries@suse.de>
8528
8529 PR gdb/24617
8530 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8531 accessing parent[parent_len - 1].
8532
ba9777be
PP
85332019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8534
8535 PR gdb/24364
8536 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8537 call dtrace_process_dof with NULL dof.
8538
2b9f6e89
TV
85392019-06-16 Tom de Vries <tdevries@suse.de>
8540
8541 PR gdb/24445
8542 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8543
431b3ead
TT
85442019-06-16 Tom Tromey <tom@tromey.com>
8545
8546 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8547 (make_all_visible): Use address of member.
8548
d04b44a1
TT
85492019-06-16 Tom Tromey <tom@tromey.com>
8550
8551 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8552 (tui_free_window, free_content, free_content_elements): Remove
8553 unnecessary cast.
8554 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8555 cast.
8556 * tui/tui-regs.c (tui_show_register_group)
8557 (tui_display_registers_from, tui_display_reg_element_at_line):
8558 Remove unnecessary cast.
8559
bf5142e7
AB
85602019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8561
8562 * linux-nat.c (normal_mask): Delete.
8563 (_initialize_linux_nat): Don't initialise normal_mask.
8564
c4973306
SM
85652019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8566
8567 PR gdb/24445
8568 * dwarf-index-write.h (write_psymtabs_to_index): Add
8569 dwz_basename parameter.
8570 * dwarf-index-write.c (write_gdbindex): Move file writing to
8571 write_gdbindex_1. Change return type void.
8572 (assert_file_size): Move up, remove filename parameter.
8573 (write_gdbindex_1): New function.
8574 (write_debug_names): Change return type to void, call
8575 assert_file_size.
8576 (struct index_wip_file): New struct.
8577 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8578 file logic to index_wip_file. Write index for dwz file if
8579 needed.
8580 (save_gdb_index_command): Pass basename of dwz file, if present.
8581 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8582 build-id of dwz file, if present.
8583 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8584 (dwarf2_get_dwz_file): Likewise.
8585 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8586 (dwarf2_get_dwz_file): Likewise.
8587
395f9c91
TT
85882019-06-16 Tom Tromey <tom@tromey.com>
8589
8590 * coffread.c (process_coff_symbol): Use xstrdup.
8591 * value.c (create_internalvar): Use xstrdup.
8592
cafb3438
TT
85932019-06-16 Tom Tromey <tom@tromey.com>
8594
8595 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8596 * breakpoint.c (stopin_command, stopat_command)
8597 (until_break_command, decode_location_default): Remove unnecessary
8598 cast.
8599 * utils.c (subset_compare): Remove unnecessary cast.
8600 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8601 cast.
8602 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8603 cast.
8604 * infcmd.c (path_command): Remove unnecessary cast.
8605 * coffread.c (decode_type): Remove unnecessary cast.
8606 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8607 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8608 * tui/tui-stack.c (tui_show_locator_content)
8609 (tui_show_frame_info): Remove unnecessary cast.
8610 * tui/tui-win.c (tui_scroll_forward_command)
8611 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8612 (parse_scrolling_args): Remove unnecessary cast.
8613 * tui/tui-data.c (init_win_info, tui_del_window)
8614 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8615 (free_content_elements): Remove unnecessary cast.
8616 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8617 unnecessary cast.
8618 * tui/tui-source.c (tui_set_source_content)
8619 (tui_vertical_source_scroll): Remove unnecessary cast.
8620 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8621 cast.
8622 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8623 * tui/tui-regs.c (tui_display_registers_from)
8624 (tui_display_register): Remove unnecessary cast.
8625 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8626 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8627 (make_visible): Remove unnecessary cast.
8628 * tui/tui-winsource.c (tui_erase_source_content)
8629 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8630 unnecessary cast.
8631 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8632 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8633 * stabsread.c (read_type, read_array_type, read_range_type):
8634 Remove unnecessary cast.
8635 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8636 (parse_symbol, parse_type, upgrade_type, parse_external)
8637 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8638 unnecessary cast.
8639 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8640
730ead81
TT
86412019-06-16 Tom Tromey <tom@tromey.com>
8642
8643 * tui/tui-data.c (tui_alloc_generic_win_info)
8644 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8645 checks.
8646
584a927c
AB
86472019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8648 Andrew Burgess <andrew.burgess@embecosm.com>
8649
8650 * f-typeprint.c (f_print_type): Don't return early for not
8651 associated or not allocated types.
8652 (f_type_print_varspec_suffix): Add print_rank parameter and print
8653 ranks of array types in case they dangling.
8654 (f_type_print_base): Add print_rank parameter.
8655
30056ea0
AB
86562019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8657
8658 * NEWS: Mention new MI commands.
8659 * break-catch-throw.c (enum exception_event_kind): Move to
8660 breakpoint.h.
8661 (print_mention_exception_catchpoint): Output text as a single
8662 message.
8663 (catch_exception_command_1): Rename to...
8664 (catch_exception_event): ...this, make non-static, update header
8665 command, and change some parameter types.
8666 (catch_catch_command): Update for changes to
8667 catch_exception_command_1.
8668 (catch_throw_command): Likewise.
8669 (catch_rethrow_command): Likewise.
8670 * breakpoint.c (enum exception_event_kind): Delete.
8671 * breakpoint.h (enum exception_event_kind): Moved here from
8672 break-catch-throw.c.
8673 (catch_exception_event): Declare.
8674 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8675 (mi_cmd_catch_throw): New function.
8676 (mi_cmd_catch_rethrow): New function.
8677 (mi_cmd_catch_catch): New function.
8678 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8679 'catch-catch' entries.
8680 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8681 (mi_cmd_catch_rethrow): Declare.
8682 (mi_cmd_catch_catch): Declare.
8683
ec8e2b6d
AB
86842019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8685
8686 * annotate.c (annotate_source_line): Change return type to void,
8687 update implementation to match.
8688 * annotate.h (annotate_source_line): Change return type to void,
8689 update header comment.
8690 * stack.c (print_frame_info): Don't change what frame information
8691 is printed based on whether annotations are on or not.
8692
0d3abd8c
AB
86932019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8694
8695 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8696 (annotate_source): Make static.
8697 (annotate_source_line): Moved from source.c and renamed from
8698 identify_source_line. Update the return type.
8699 * annotate.h (annotate_source): Delete declaration.
8700 (annotate_source_line): Declaration moved from source.h, and
8701 renamed from identify_source_line. Return type updated.
8702 * source.c (identify_source_line): Moved to annotate.c and renamed
8703 to annotate_source_line.
8704 (info_line_command): Remove check of annotation_level.
8705 * source.h (identify_source_line): Move declaration to annotate.h
8706 and rename to annotate_source_line.
8707 * stack.c: Add 'annotate.h' include.
8708 (print_frame_info): Remove check of annotation_level before
8709 calling annotate_source_line.
8710
00df30ae
AB
87112019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8712
8713 * source-cache.c (source_cache::get_plain_source_lines): Use
8714 open_source_file_with_line_charpos instead of just
8715 open_source_file, remove call to find_source_lines.
8716 (source_cache::get_source_lines): Likewise.
8717 * source.c (find_source_lines): Make static.
8718 (get_filename_and_charpos): Renamed into...
8719 (open_source_file_with_line_charpos): ..this along with changes to
8720 return a scoped_fd, and some other minor clean ups.
8721 (identify_source_line): Use open_source_file_with_line_charpos.
8722 (search_command_helper): Use open_source_file_with_line_charpos
8723 instead of just open_source_file, remove call to
8724 find_source_lines.
8725 * source.h (open_source_file_with_line_charpos): Declare new
8726 function.
8727 (find_source_lines): Delete declaration.
8728
afda45a2
AB
87292019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8730
8731 * source.c (get_filename_and_charpos): Remove fullname
8732 parameter.
8733 (identify_source_line): Update call to get_filename_and_charpos.
8734
0735b091
TT
87352019-06-14 Tom Tromey <tromey@adacore.com>
8736
8737 PR gdb/24502:
8738 * ui-style.h (skip_ansi_escape): Update comment.
8739 * ui-file.h (class no_terminal_escape_file): New class.
8740 * ui-file.c (no_terminal_escape_file::write)
8741 (no_terminal_escape_file::puts): New methods.
8742 * cli/cli-logging.c (handle_redirections): Use
8743 no_terminal_escape_file.
8744
52ce35e2
TT
87452019-06-14 Tom Tromey <tromey@adacore.com>
8746
8747 * NEWS: Move convenience variable news above Python news.
8748
73cc7272
TT
87492019-06-14 Tom Tromey <tom@tromey.com>
8750
8751 * gnulib: Move directory to top-level.
8752 * configure.ac: Don't configure gnulib.
8753 * configure: Rebuild.
8754 * common/common-defs.h: Use new path to gnulib.
8755 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8756 (GNULIB_H): Remove.
8757 (INCGNU): Look in new gnulib location.
8758 (HFILES_NO_SRCDIR): Remove gnulib files.
8759 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8760 (generated_files): Remove GNULIB_H.
8761 ($(LIBGNU), all-lib): Remove targets.
8762 (distclean): Don't mention GNULIB_BUILDDIR.
8763 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8764
f5686554
TT
87652019-06-14 Tom Tromey <tromey@adacore.com>
8766
8767 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8768 Warn if symbol file does not provide any symbols.
8769
a0c1ffed
TT
87702019-06-14 Tom Tromey <tromey@adacore.com>
8771
8772 * source.c (find_and_open_source): Respect basenames_may_differ.
8773
7c39e397
AB
87742019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8775
8776 * annotate.c (annotate_breakpoints_invalid): Make use of
8777 scoped_restore_terminal_state.
8778 (annotate_frames_invalid): Likewise.
8779
f411722c
TT
87802019-06-14 Tom Tromey <tromey@adacore.com>
8781
8782 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8783 allow assignment to an internalvar.
8784
4268ec18
TT
87852019-06-14 Tom Tromey <tromey@adacore.com>
8786
8787 * ada-lex.l: Allow "_" in attribute names.
8788
abdb711e
TT
87892019-06-14 Tom Tromey <tromey@adacore.com>
8790
8791 PR gdb/24653:
8792 * regcache.c (registers_changed): Don't call alloca.
8793 * top.c (execute_command): Don't call alloca.
8794
4c048731
PA
87952019-06-13 Pedro Alves <palves@redhat.com>
8796
8797 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8798 'expression'. When parsing an expression, error out if there's
8799 junk after "unlimited".
8800 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8801 (do_set_command): Adjust calls to is_unlimited_literal.
8802
66eb1ed3
PA
88032019-06-13 Pedro Alves <palves@redhat.com>
8804
8805 * compile/compile.c (make_compile_options_def_group): Add braces
8806 around array_view initializer.
8807 * thread.c (make_thread_apply_all_options_def_group)
8808 (make_thread_apply_all_options_def_group): Likewise.
8809
3345721a
PA
88102019-06-13 Pedro Alves <palves@redhat.com>
8811
8812 * NEWS (New commands): Mention "maint test-options
8813 require-delimiter", "maint test-options unknown-is-error", "maint
8814 test-options unknown-is-operand" and "maint show
8815 test-options-completion-result".
8816 (New command options, command completion): New section.
8817 (Completion improvements): New section.
8818 Mention that you can abbreviate "unlimited".
8819
6206060d
PA
88202019-06-13 Pedro Alves <palves@redhat.com>
8821
8822 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8823 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8824 * unittests/cli-utils-selftests.c (test_parse_flags)
8825 (test_parse_flags_qcs): Delete.
8826 (test_cli_utils): Don't call deleted functions.
8827
6665660a
PA
88282019-06-13 Pedro Alves <palves@redhat.com>
8829
8830 * thread.c: Include "cli/cli-option.h".
8831 (tp_array_compar_ascending): Global.
8832 (tp_array_compar): Delete function.
8833 (tp_array_compar_ascending, tp_array_compar_descending): New
8834 functions.
8835 (ascending_option_def, qcs_flag_option_def)
8836 (thr_qcs_flags_option_defs)
8837 (make_thread_apply_all_options_def_group)
8838 (make_thread_apply_options_def_group): New.
8839 (thread_apply_all_command): Use gdb::option::process_options.
8840 (thread_apply_command_completer)
8841 (thread_apply_all_command_completer): New.
8842 (thread_apply_command): Use gdb::option::process_options.
8843 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8844 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8845 to generate help text of "thread apply". Adjust "taas"'s help.
8846 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8847 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8848
f7e13587
PA
88492019-06-13 Pedro Alves <palves@redhat.com>
8850
8851 * thread.c (thread_apply_command): Check for invalid TID with
8852 isdigit instead of !isalpha.
8853
5d707134
PA
88542019-06-13 Pedro Alves <palves@redhat.com>
8855
8856 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8857 (validate_flags_qcs): New.
8858 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8859 (validate_flags_qcs): Declare.
8860 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8861 (make_frame_apply_options_def_group): New.
8862 (frame_apply_command_count): Process options with
8863 gdb::option::process_options.
8864 (frame_apply_completer): New.
8865 (frame_apply_level_completer, frame_apply_all_completer)
8866 (frame_apply_completer): New.
8867 (_initialize_stack): Update help of "frame apply", "frame apply
8868 level", "frame apply all" and "faas" to mention supported options
8869 and install command completers.
8870 * stack.h (frame_apply_all_completer): Declare.
8871 * thread.c: Include "stack.h".
8872 (tfaas_command): Add "--".
8873 (_initialize_thread): Update help "tfaas" to mention supported
8874 options and install command completer.
8875
272d4594
PA
88762019-06-13 Pedro Alves <palves@redhat.com>
8877
8878 * completer.c (complete_nested_command_line): New.
8879 (gdb_completion_word_break_characters_throw): Add assertion.
8880 * completer.h (complete_nested_command_line): Declare.
8881
90a1ef87
PA
88822019-06-13 Pedro Alves <palves@redhat.com>
8883
8884 * stack.c (parse_backtrace_qualifiers): New.
8885 (backtrace_command): Use it.
8886 (backtrace_command_completer): Complete on qualifiers.
8887
d4c16835
PA
88882019-06-13 Pedro Alves <palves@redhat.com>
8889
8890 * frame.c: Include "cli/cli-option.h.
8891 (user_set_backtrace_options): New.
8892 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8893 Delete.
8894 (get_prev_frame): Adjust.
8895 (boolean_option_def, uinteger_option_def)
8896 (set_backtrace_option_defs): New.
8897 (_initialize_frame): Adjust and use
8898 gdb::option::add_setshow_cmds_for_options to install "set
8899 backtrace past-main" and "set backtrace past-entry".
8900 * frame.h: Include "cli/cli-option.h".
8901 (struct frame_print_options): Forward declare.
8902 (print_frame_arguments_all, print_frame_arguments_scalars)
8903 (print_frame_arguments_none): Declare.
8904 (print_entry_values): Delete declaration.
8905 (struct frame_print_options, user_frame_print_options): New.
8906 (struct set_backtrace_options): New.
8907 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8908 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8909 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8910 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8911 (list_args_or_locals): Add frame_print_options parameter.
8912 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8913 * python/py-framefilter.c (enumerate_args): Pass down
8914 USER_FRAME_PRINT_OPTIONS.
8915 * stack.c: Include "cli/cli-option.h".
8916 (print_frame_arguments_all, print_frame_arguments_scalars)
8917 (print_frame_arguments_none): Declare.
8918 (print_raw_frame_arguments, print_entry_values): Delete.
8919 (user_frame_print_options): New.
8920 (boolean_option_def, enum_option_def, frame_print_option_defs):
8921 New.
8922 (struct backtrace_cmd_options): New.
8923 (bt_flag_option_def): New.
8924 (backtrace_command_option_defs): New.
8925 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8926 (print_frame_arg, read_frame_arg, print_frame_args)
8927 (print_frame_info, print_frame): Add frame_print_options parameter
8928 and use it.
8929 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8930 (backtrace_command_1): Add frame_print_options and
8931 backtrace_cmd_options parameters and use them.
8932 (make_backtrace_options_def_group): New.
8933 (backtrace_command): Process command options with
8934 gdb::option::process_options.
8935 (backtrace_command_completer): New.
8936 (_initialize_stack): Extend "backtrace"'s help to mention
8937 supported options. Install completer for "backtrace".
8938 Install some settings commands with add_setshow_cmds_for_options.
8939
2daf894e
PA
89402019-06-13 Pedro Alves <palves@redhat.com>
8941
8942 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8943 and that "set/show print raw frame-arguments" are now deprecated.
8944
8945 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8946 command.
8947 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8948 * stack.c (_initialize_stack): Install "set/show print
8949 raw-frame-arguments", and deprecate "set/show print raw
8950 frame-arguments".
8951 * valprint.c (_initialize_valprint): Deprecate "set/show print
8952 raw".
8953
e6ed716c
PA
89542019-06-13 Pedro Alves <palves@redhat.com>
8955
8956 * compile/compile.c (struct compile_options): New.
8957 (compile_flag_option_def, compile_command_option_defs)
8958 (make_compile_options_def_group): New.
8959 (compile_file_command): Handle options with
8960 gdb::option::process_options.
8961 (compile_file_command_completer): New function.
8962 (compile_code_command): Handle options with
8963 gdb::option::process_options.
8964 (compile_code_command_completer): New function.
8965 (_initialize_compiler): Install completers for "compile code" and
8966 "compile file". Mention available options in "compile code" and
8967 "compile code"'s help.
8968 * completer.c (advance_to_completion_word): New, factored out from
8969 ...
8970 (advance_to_expression_complete_word_point): ... this.
8971 (advance_to_filename_complete_word_point): New.
8972 * completer.h (advance_to_filename_complete_word_point): New
8973 declaration.
8974
7d8062de
PA
89752019-06-13 Pedro Alves <palves@redhat.com>
8976
8977 * compile/compile.c: Include "cli/cli-option.h".
8978 (compile_print_value): Scope data pointer is now a
8979 value_print_options pointer; adjust.
8980 (compile_print_command): Process options. Scope data pointer is
8981 now a value_print_options pointer; adjust.
8982 (_initialize_compile): Update "compile print"'s help to include
8983 supported options. Install a completer for "compile print".
8984 * cp-valprint.c (show_vtblprint, show_objectprint)
8985 (show_static_field_print): Delete.
8986 (_initialize_cp_valprint): Don't install "set print
8987 static-members", "set print vtbl", "set print object" here.
8988 * printcmd.c: Include "cli/cli-option.h" and
8989 "common/gdb_optional.h".
8990 (print_command_parse_format): Rework to fill in a
8991 value_print_options instead of a format_data.
8992 (print_value): Change parameter type from format_data pointer to
8993 value_print_options reference. Adjust.
8994 (print_command_1): Process options. Adjust to pass down a
8995 value_print_options.
8996 (print_command_completer): New.
8997 (_initialize_printcmd): Install print_command_completer as
8998 handle_brkchars completer for the "print" command. Update
8999 "print"'s help to include supported options.
9000 * valprint.c: Include "cli/cli-option.h".
9001 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9002 here from cp-valprint.c.
9003 (boolean_option_def, uinteger_option_def)
9004 (value_print_option_defs, make_value_print_options_def_group):
9005 New. Use gdb::option::add_setshow_cmds_for_options to install
9006 "set print elements", "set print null-stop", "set print repeats",
9007 "set print pretty", "set print union", "set print array", "set
9008 print address", "set print symbol", "set print array-indexes".
9009 * valprint.h: Include <string> and "cli/cli-option.h".
9010 (make_value_print_options_def_group): Declare.
9011 (print_value): Change parameter type from format_data pointer to
9012 value_print_options reference.
9013 (print_command_completer): Declare.
9014
9d0faba9
PA
90152019-06-13 Pedro Alves <palves@redhat.com>
9016
9017 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9018 (COMMON_SFILES): Add maint-test-settings.c.
9019 * cli/cli-decode.c (boolean_enums): New global, factored out from
9020 ...
9021 (add_setshow_boolean_cmd): ... here.
9022 * cli/cli-decode.h (boolean_enums): Declare.
9023 * cli/cli-option.c: New file.
9024 * cli/cli-option.h: New file.
9025 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9026 factored out from ...
9027 (parse_cli_boolean_value(const char *)): ... this.
9028 (is_unlimited_literal): Change parameter type to pointer to
9029 pointer. Adjust and advance ARG pointer.
9030 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9031 (parse_cli_var_enum): New, factored out from ...
9032 (do_set_command): ... this. Adjust.
9033 * cli/cli-setshow.h (parse_cli_boolean_value)
9034 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9035 (parse_cli_var_enum): Declare.
9036 * cli/cli-utils.c: Include "cli/cli-option.h".
9037 (get_ulongest): New.
9038 * cli/cli-utils.h (get_ulongest): Declare.
9039 (check_for_argument): New overloads.
9040 * maint-test-options.c: New file.
9041
2c722807
PA
90422019-06-13 Pedro Alves <palves@redhat.com>
9043
9044 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9045 parse a range if "-" is at the end of the string.
9046
dee7b4c8
PA
90472019-06-13 Pedro Alves <palves@redhat.com>
9048
9049 * cli/cli-setshow.c (parse_auto_binary_operation)
9050 (parse_cli_boolean_value): Don't allow "o".
9051
dca0f6c0
PA
90522019-06-13 Pedro Alves <palves@redhat.com>
9053
9054 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9055 * NEWS: Mention maint test-settings KIND.
9056 * maint-test-settings.c: New file.
9057
597bf39d
PA
90582019-06-13 Pedro Alves <palves@redhat.com>
9059
9060 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9061 completer.
9062 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9063 "set" completers.
9064
48c410fb
PA
90652019-06-13 Pedro Alves <palves@redhat.com>
9066
9067 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9068 after item.
9069
93bcb043
PA
90702019-06-13 Pedro Alves <palves@redhat.com>
9071
9072 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9073
cbba3ecd
PA
90742019-06-13 Pedro Alves <palves@redhat.com>
9075
9076 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9077 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9078 call.
9079 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9080 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9081 calls.
9082 (check_for_argument): Skip spaces after argument.
9083
b9a3f842
PA
90842019-06-13 Pedro Alves <palves@redhat.com>
9085
9086 * thread.c (thread_apply_command): Adjust TID parsing.
9087 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9088 detected before end of string.
9089 (tid_is_in_list): Error out if LIST is invalid.
9090
3844e605
PA
90912019-06-13 Pedro Alves <palves@redhat.com>
9092
9093 * completer.c (complete_line_internal_1): Rewind completion word
9094 point.
9095 (completion_tracker::advance_custom_word_point_by): Change
9096 parameter type to int.
9097 * completer.h (completion_tracker::advance_custom_word_point_by):
9098 Likewise.
9099
00b56dbe
PA
91002019-06-13 Pedro Alves <palves@redhat.com>
9101
9102 * completer.c (advance_to_completion_word): Handle delimiters.
9103
d106773e
PA
91042019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9105
9106 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9107
08f10e02
TT
91082019-06-11 Tom Tromey <tom@tromey.com>
9109
9110 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9111 (xmalloc_failed): Move to alloc.c.
9112 * alloc.c: New file.
9113 * Makefile.in (COMMON_SFILES): Add alloc.c.
9114
1c7fe951
TT
91152019-06-11 Tom Tromey <tom@tromey.com>
9116
9117 * nat/linux-waitpid.c: Don't include server.h.
9118 (linux_debug): Remove.
9119 (my_waitpid): Update.
9120
89549d7f
TT
91212019-06-11 Tom Tromey <tromey@adacore.com>
9122
9123 * infcall.c (_initialize_infcall): Remove trailing newline from
9124 help.
9125 * user-regs.c (_initialize_user_regs): Remove trailing newline
9126 from help.
9127 * typeprint.c (_initialize_typeprint): Remove trailing newline
9128 from help.
9129 * reverse.c (_initialize_reverse): Remove trailing newlines from
9130 help.
9131 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9132 from help.
9133 * language.c (add_set_language_command): Remove trailing newline
9134 from help.
9135 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9136 help.
9137 * disasm.c (_initialize_disasm): Remove trailing newline from
9138 help.
9139 * top.c (init_main): Remove trailing newline from help.
9140 * interps.c (_initialize_interpreter): Remove trailing newline
9141 from help.
9142 * btrace.c (_initialize_btrace): Remove trailing newlines from
9143 help.
9144 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9145 from help.
9146 * python/python.c (_initialize_python): Remove trailing newline
9147 from help.
9148 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9149 help.
9150 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9151 from help. Reformat some text.
9152 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9153 from help.
9154 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9155 newline from help.
9156
86108c13
TT
91572019-06-11 Tom Tromey <tromey@adacore.com>
9158
9159 * darwin-nat.c (darwin_decode_exception_message)
9160 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9161
a7067863
AB
91622019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9163
9164 * valops.c (value_slice): Check for not allocated or not
9165 associated values.
9166
9ab08412
TV
91672019-06-10 Tom de Vries <tdevries@suse.de>
9168
9169 PR gdb/24618
9170 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9171 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9172 invalid.
9173
f19e22e9
TV
91742019-06-10 Tom de Vries <tdevries@suse.de>
9175
9176 PR gdb/24611
9177 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9178 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9179
e99f9db0
TV
91802019-06-10 Tom de Vries <tdevries@suse.de>
9181
9182 PR symtab/24545
9183 * symtab.c (struct demangled_name_entry): Add language field.
9184 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9185 static minimal symbol". Set and use language field.
9186
9bf7038b
TT
91872019-06-10 Tom Tromey <tromey@adacore.com>
9188
9189 * ada-lang.c (_initialize_ada_language): Update help text.
9190
422186a9
TT
91912019-06-10 Tom Tromey <tromey@adacore.com>
9192
9193 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9194 with a newline.
9195 * guile/guile.c (handle_boot_error): Don't end warning with a
9196 newline.
9197 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9198 warning with a newline.
9199 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9200 newline.
9201 (s12z_frame_cache): Likewise.
9202 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9203 a newline.
9204 * solib-svr4.c (disable_probes_interface): Don't end warning with
9205 a newline.
9206 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9207 newline.
9208 * python/python.c (do_finish_initialization): Don't end warning
9209 with a newline.
9210
25ce02ee
TT
92112019-06-10 Tom Tromey <tom@tromey.com>
9212
9213 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9214 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9215 gdbpy_enter.
9216
caa429d8
TT
92172019-06-10 Tom Tromey <tromey@adacore.com>
9218
9219 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9220 data.
9221 (elf_new_init): Don't call stabsread_new_init.
9222 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9223 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9224 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9225
81873cc8
TV
92262019-06-10 Tom de Vries <tdevries@suse.de>
9227
9228 PR symtab/16264
9229 PR symtab/24517
9230 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9231
4fa0265e
РИ
92322019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9233
9234 * source.c (find_and_open_source): Also rewrite relative file
9235 names.
9236
1a3da2cd
AB
92372019-04-26 Amos Bird <amosbird@gmail.com>
9238
9239 * annotate.c (annotate_thread_exited): Add "thread-exited"
9240 annotation.
9241
3847a7bf
TT
92422019-06-06 Tom Tromey <tromey@adacore.com>
9243
9244 * maint.h (class scoped_command_stats): Use
9245 DISABLE_COPY_AND_ASSIGN.
9246 <print_time>: New method.
9247 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9248 print_time.
9249 (scoped_command_stats::print_time): New method.
9250
312617a3
AB
92512019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9252
9253 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9254 instructions of lengths 6 or 8 bytes.
9255
b02f78f9
PA
92562019-06-04 Pedro Alves <palves@redhat.com>
9257
9258 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9259
9260 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9261 * breakpoint.c (condition_completer): Likewise.
9262 * cli/cli-dump.c (scan_expression): Likewise.
9263 * common/filestuff.c (mkdir_recursive): Likewise.
9264 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9265 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9266 (gdb_abspath): Likewise.
9267 * compile/compile-cplus-types.c
9268 (compile_cplus_instance::decl_name): Likewise.
9269 * completer.c (complete_explicit_location):
9270 (signal_completer, reg_or_group_completer_1): Likewise.
9271 * cp-support.c (cp_remove_params_if_any): Likewise.
9272 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9273 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9274 * infcmd.c (strip_bg_char): Likewise.
9275 * linespec.c (copy_token_string): Likewise.
9276 * mi/mi-main.c (output_cores): Likewise.
9277 * psymtab.c (psymtab_search_name):
9278 * symfile.c (test_set_ext_lang_command): Likewise.
9279 * target.c (target_fileio_read_stralloc): Likewise.
9280 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9281 * value.c (complete_internalvar): Likewise.
9282
e1f2e1a2
CB
92832019-06-04 Christian Biesinger <cbiesinger@google.com>
9284
9285 Add objfile property to gdb.Type.
d3238f7d
PA
9286 * NEWS: Mention Python API addition.
9287 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9288
e664d728
PW
92892019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9290
9291 * NEWS: Mention the new set|show style [title|highlight].
9292 Mention changes to "show style", "help" and "apropos".
9293
66d8c862
PW
92942019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9295
9296 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9297 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9298 instead of print_help_for_command.
9299 (print_doc_of_command): New function.
9300 (help_list): Add 'apropos -v word' suggestion.
9301 (print_help_for_command): Style the command name using title style.
9302 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9303 (_initialize_cli_cmds): Describe -v in apropos_command help.
9304
9303eb2f
PW
93052019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9306
9307 * cli/cli-style.h (cli_style_option): Add name in constructor,
9308 add m_name class member, add constructor with intensity,
9309 add name class function.
9310 (cli_style_option::add_setshow_commands): Remove name argument.
9311 (highlight_style, title_style): New styles.
9312 * cli/cli-style.c (do_show): New function that shows a style
9313 characteristic styling the style name with itself.
9314 (set_style_name): New function.
9315 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9316 Update all callers according to the changes in cli/cli-style.h.
9317 * utils.h (fputs_highlighted): New function.
9318 * utils.c (fputs_highlighted): Likewise.
9319
e2c52041
PW
93202019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9321
9322 * NEWS: Mention new pipe command and new convenience variables.
9323
947d3946
PW
93242019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9325
9326 * cli/cli-cmds.c (pipe_command): New function.
9327 (_initialize_cli_cmds): Call add_com for pipe_command.
9328 Define | as an alias for pipe.
9329 (exit_status_set_internal_vars): New function.
9330 (shell_escape): Call exit_status_set_internal_vars.
9331 cli/cli-decode.c (find_command_name_length): Recognize | as
9332 a single character command.
9333
b8fd0918
PW
93342019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9335
9336 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9337 top.c (execute_command_to_ui_file): New function, mostly a copy
9338 of execute_command_to_string.
9339 (execute_command_to_string): Implement by calling
9340 execute_command_to_ui_file.
9341
68bb5386
PW
93422019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9343
9344 * top.h (saved_command_line): Remove declaration.
9345 * top.c (previous_saved_command_line, previous_repeat_arguments):
9346 New variables.
9347 (saved_command_line): Make static, define together with other
9348 'repeat variables'.
9349 (dont_repeat): Clear repeat_arguments.
9350 (repeat_previous, get_saved_command_line, save_command_line):
9351 New functions.
9352 (gdb_init): Initialize saved_command_line
9353 and previous_saved_command_line.
9354 * main.c (captured_main_1): Remove saved_command_line initialization.
9355 * event-top.c (handle_line_of_input): Update to use
9356 the new 'repeat' related functions instead of direct access to
9357 saved_command_line.
9358 * command.h (repeat_previous, get_saved_command_line,
9359 save_command_line): New declarations.
9360 (dont_repeat): Add comment.
9361
bfcdb852
TT
93622019-05-30 Tom Tromey <tromey@adacore.com>
9363
9364 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9365 Fix comment.
9366 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9367
0ef209f2
JV
93682019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9369
9370 PR cli/24587
9371 * completer.c (complete): Initialize variable word.
9372
955b06fa
SDJ
93732019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9374
9375 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9376 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9377 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9378 'body' is NULL to the outter 'if', protecting the '!is_define'
9379 situation as well.
9380
fa9c3fa0
TT
93812019-05-29 Tom Tromey <tromey@adacore.com>
9382
9383 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9384 (dwarf_unknown): New function.
9385 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9386 (dwarf_type_encoding_name): Use dwarf_unknown.
9387
4330d61d
TT
93882019-05-29 Tom Tromey <tromey@adacore.com>
9389
9390 PR c++/20020:
9391 * cp-valprint.c (cp_print_value_fields): Call
9392 cp_print_static_field inside "try".
9393
33a6bc35
TT
93942019-05-29 Tom Tromey <tromey@adacore.com>
9395
9396 * inflow.c (struct terminal_info): Add default operator=.
9397 * configure: Rebuild.
9398 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9399 -Wdeprecated-copy-dtor, -Wredundant-move.
9400
000439d5
TT
94012019-05-29 Tom Tromey <tromey@adacore.com>
9402
9403 * NEWS: Add entry.
9404 * infcmd.c (print_return_value_1): Handle finish_print
9405 option.
9406 (show_print_finish): New function.
9407 (_initialize_infcmd): Add "set/show print finish" commands.
9408 * valprint.c (user_print_options): Initialize new member.
9409 * valprint.h (struct value_print_options) <finish_print>: New
9410 member.
9411
c0e70c62
TT
94122019-05-28 Tom Tromey <tromey@adacore.com>
9413
9414 * ada-lang.c (ada_remove_Xbn_suffix)
9415 (find_old_style_renaming_symbol)
9416 (parse_old_style_renaming): Remove.
9417 (ada_find_renaming_symbol): Don't call
9418 find_old_style_renaming_symbol.
9419 (ada_is_renaming_symbol): Rename from
9420 ada_find_renaming_symbol. Remove "block" parameter. Return
9421 bool. Now static.
9422 (ada_read_var_value): Update and simplify.
9423 * ada-exp.y (write_var_or_type): Remove old code.
9424
766f8836
AH
94252019-05-28 Alan Hayward <alan.hayward@arm.com>
9426
68255adc 9427 PR gdb/25010
766f8836
AH
9428 * event-top.c: Remove include comment.
9429 * inflow.c (class scoped_ignore_sigttou): Move from here...
9430 * inflow.h (class scoped_ignore_sigttou): ...to here.
9431 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9432 * top.c: Remove include comment.
9433
eb41253a
TT
94342019-05-27 Tom Tromey <tom@tromey.com>
9435
9436 * NEWS: Fix typo.
9437
4ca51187
TT
94382019-05-22 Tom Tromey <tromey@adacore.com>
9439
9440 * target.c (target_follow_exec): Constify parameter.
9441 * target-delegates.c: Rebuild.
9442 * remote.c (remote_target::follow_exec): Constify parameter.
9443 * infrun.c (follow_exec): Constify parameter.
9444 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9445 (target_follow_exec): Likewise.
9446
8fca4da0
AH
94472019-05-22 Alan Hayward <alan.hayward@arm.com>
9448
9449 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9450 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9451
b7060614
AH
94522019-05-22 Alan Hayward <alan.hayward@arm.com>
9453
9454 * NEWS: Add debugredirect and testsuite sections.
9455
0a5954bd
SC
94562019-05-22 Simon Cook <simon.cook@embecosm.com>
9457
9458 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9459 target descriptions using exclusively floating point register name
9460 aliases.
9461
dc42e902
AB
94622019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9463
9464 PR gdb/18644:
9465 * f-lang.c (build_fortran_types): Handle the case where
9466 gdbarch_floatformat_for_type returns a nullptr.
9467
fb7806c7
TV
94682019-05-21 Tom de Vries <tdevries@suse.de>
9469
9470 PR cli/24587
9471 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9472
34d11c68
AB
94732019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9474
9475 PR gdb/18644:
9476 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9477 16-byte floats.
9478 * i386-tdep.c (i386_floatformat_for_type): Use
9479 floatformats_ia64_quad for the 16-byte floating point component
9480 within a fortran 32-byte complex number.
9481
122cf0f2
AB
94822019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9483
9484 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9485 delete default constructor.
9486 (find_partial_die): Update to return const struct.
9487 (partial_die_parent_scope): Move variable declaration into scope
9488 of its use and change its type to auto.
9489 (guess_partial_die_structure_name): Likewise.
9490 (partial_die_info::fixup): Likewise.
9491
33d0e35a
TT
94922019-05-17 Tom Tromey <tromey@adacore.com>
9493
9494 * source.c (find_and_open_source): Remove cast.
9495
a45575b0
TT
94962019-05-17 Tom Tromey <tromey@adacore.com>
9497
9498 * annotate.c (annotate_source): Make "filename" const.
9499 * annotate.h (annotate_source): Use const.
9500
81f47ac2
AH
95012019-05-17 Alan Hayward <alan.hayward@arm.com>
9502
9503 * disasm.c (set_disassembler_options): Send errors to stderr.
9504
ca1285d1
AH
95052019-05-17 Alan Hayward <alan.hayward@arm.com>
9506
9507 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9508 (cli_interp_base::set_logging): Check debug_redirect.
9509 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9510 * cli/cli-logging.c (debug_redirect): Add static variable.
9511 (pop_output_files): Add default param.
9512 (handle_redirections): Print debug setting.
9513 (show_logging_command): Likewise.
9514 (_initialize_cli_logging): Add debugredirect command.
9515 * interps.c (current_interp_set_logging): Add debug_redirect
9516 parameter.
9517 * interps.h (set_logging): Add debug_redirect parameter.
9518 (current_interp_set_logging): Likewise.
9519 * mi/mi-common.h: Likewise.
9520 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9521
95222019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9523 Tom Tromey <tromey@adacore.com>
9524
9525 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9526 directly.
9527 * cli/cli-interp.h (make_logging_output): Remove declaration.
9528 * cli/cli-logging.c (make_logging_output): Remove function.
9529 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9530 directly.
9531 * ui-file.c (tee_file::tee_file): Remove bools.
9532 (tee_file::~tee_file): Remove deletes.
9533 * ui-file.h (tee_file): Remove bools.
9534
26648588
JV
95352019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9536
9537 * mi/mi-cmds.h (mi_cmd_complete): New function.
9538 * mi/mi-main.c (mi_cmd_complete): Likewise.
9539 * mi/mi-cmds.c: Define new MI command -complete.
9540 * NEWS: Mention new -complete command.
9541
6e035501
JV
95422019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9543
9544 * completer.h (complete): New function.
9545 * completer.c (complete): Likewise.
9546 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9547 function defined in completer.h.
9548
7d0e2ece
JV
95492019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9550
e79be6e5 9551 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9552
fb816e8b
TV
95532019-05-17 Tom de Vries <tdevries@suse.de>
9554
9555 PR gdb/24094
9556 * dwarf2read.c (struct cu_partial_die_info): New struct.
9557 (find_partial_die): Return cu_partial_die_info.
9558 (partial_die_parent_scope, guess_partial_die_structure_name)
9559 (partial_die_info::fixup): Handle new return type of find_partial_die.
9560
677052f2
SDJ
95612019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9562
a1726c38 9563 PR breakpoints/24541
677052f2
SDJ
9564 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9565 "std::string", simplifying the algorithm.
9566
f3da9116
SDJ
95672019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9568
9569 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9570 (stap_static_probe_ops::get_probes): Likewise.
9571
f1bb75ab
SDJ
95722019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9573
9574 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9575 '-')" and "else if".
9576 (stap_parse_single_operand): Join checks for
9577 "gdbarch_stap_parse_special_token_p" and
9578 "gdbarch_stap_parse_special_token" in the same "if" statement.
9579 Invert check when verifying for operation on register
9580 displacement.
9581
3ca58cde
SDJ
95822019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9583
9584 * stap-probe.c (stap_get_opcode): Update comment.
9585 (stap_get_expected_argument_type): Likewise.
9586 (handle_stap_probe): Likewise.
9587
af2d9bee
SDJ
95882019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9589
9590 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9591 return type to 'bool'. Adjust comment. Use 'bool' when
9592 appropriate.
9593 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9594 * stap-probe.c (stap_parse_argument_1): Likewise.
9595 (stap_is_operator): Likewise.
9596 (stap_is_generic_prefix): Likewise.
9597 (stap_is_register_prefix): Likewise.
9598 (stap_is_register_indirection_prefix): Likewise.
9599 (stap_is_integer_prefix): Likewise.
9600 (stap_generic_check_suffix): Likewise.
9601 (stap_check_integer_suffix): Likewise.
9602 (stap_check_register_suffix): Likewise.
9603 (stap_check_register_indirection_suffix): Likewise.
9604 (stap_parse_register_operand): Likewise.
9605 (stap_parse_single_operand): Likewise.
9606 (stap_parse_argument_1): Likewise.
9607 (stap_probe::get_argument_count): Likewise.
9608 (stap_is_operator): Likewise.
9609
61c9c421
TT
96102019-05-16 Tom Tromey <tromey@adacore.com>
9611
9612 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9613 keyword to foreach.
9614
9ddc1af1
SM
96152019-05-15 Simon Marchi <simon.marchi@efficios.com>
9616
9617 * linux-thread-db.c (try_thread_db_load_1): Change return type
9618 to bool.
9619 (try_thread_db_load): Likewise.
9620 (try_thread_db_load_from_pdir_1): Likewise.
9621 (try_thread_db_load_from_pdir): Likewise.
9622 (try_thread_db_load_from_sdir): Likewise.
9623 (try_thread_db_load_from_dir): Likewise.
9624 (thread_db_load_search): Likewise.
9625 (has_libpthread): Likewise.
9626 (thread_db_load): Likewise.
9627
7bede828
SDJ
96282019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9629
9630 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9631 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9632 NULL, and complain/return if that's the case.
9633
c5358db4
JD
96342019-05-15 John Darrington <john@darrington.wattle.id.au>
9635
9636 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9637 (advance, posn, abstract_read_memory): New functions.
9638 [struct mem_read_abstraction]: New struct.
9639 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9640
c408a94f
TT
96412019-05-14 Tom Tromey <tromey@adacore.com>
9642
9643 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9644 value is not lval_memory.
9645
e7bd7fba
TT
96462019-05-14 Tom Tromey <tromey@adacore.com>
9647
9648 * solib.c (info_sharedlibrary_command): Style the file name.
9649
a6d0f249
AH
96502019-05-14 Alan Hayward <alan.hayward@arm.com>
9651
9652 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9653 (aarch64_vnv_type): Likewise.
9654 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9655 * common/tdesc.c: Likewise.
9656 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9657 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9658 * features/aarch64-fpu.xml: Add ieee half view.
9659 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9660 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9661 * gdbtypes.h (struct builtin_type): Likewise.
9662 (struct objfile_type): Likewise.
9663
66b8bb74
SM
96642019-05-12 Paul Naert <paul.naert@polymtl.ca>
9665
9666 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9667 typo.
9668 * location.h (string_to_event_location): Likewise.
9669
21c219fd
JB
96702019-05-11 Joel Brobecker <brobecker@adacore.com>
9671
9672 GDB 8.3 released.
9673
13674803
SM
96742019-05-10 Simon Marchi <simon.marchi@efficios.com>
9675
9676 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9677 New variable declaration.
9678 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9679 New variable.
9680 (print_one_breakpoint): Use ui_out::test_flags and new global
9681 variable to compute use_fixed_output.
9682 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9683 Remove.
9684 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9685 (mi_multi_location_breakpoint_output_fixed): Remove.
9686 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9687 new variable.
9688 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9689 fix_multi_location_breakpoint_output flag if version >= 3.
9690 * ui-out.h (enum ui_out_flag)
9691 <fix_multi_location_breakpoint_output>: New enumerator.
9692
a9eac7f9
SM
96932019-05-10 Simon Marchi <simon.marchi@efficios.com>
9694
9695 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9696
71bed2db
TT
96972019-05-10 Tom Tromey <tromey@adacore.com>
9698
9699 * ada-lang.c (catch_ada_completer): New function.
9700 (_initialize_ada_language): Use it.
9701
24c54127
TT
97022019-05-10 Tom Tromey <tromey@adacore.com>
9703
9704 * thread.c (print_thread_info): Make "requested_threads" const.
9705 * gdbthread.h (print_thread_info): Make "requested_threads"
9706 const.
9707 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9708 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9709
7a102139
TT
97102019-05-08 Tom Tromey <tom@tromey.com>
9711
9712 * gdbtypes.c (objfile_type_data): Change type.
9713 (objfile_type, _initialize_gdbtypes): Update.
9714
924d79e2
TT
97152019-05-08 Tom Tromey <tom@tromey.com>
9716
9717 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9718 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9719 (_initialize_dwarf2_frame): Update.
9720
4c58e337
TT
97212019-05-08 Tom Tromey <tom@tromey.com>
9722
9723 * objc-lang.c (objc_objfile_data): Change type.
9724 (find_methods): Update.
9725 (_initialize_objc_lang): Remove.
9726
d772d2ab
TT
97272019-05-08 Tom Tromey <tom@tromey.com>
9728
9729 * stabsread.c (rs6000_builtin_type_data): Change type.
9730 (rs6000_builtin_type, _initialize_stabsread): Update.
9731
d11d83f4
TT
97322019-05-08 Tom Tromey <tom@tromey.com>
9733
9734 * mips-tdep.c (mips_pdr_data): Remove.
9735 (_initialize_mips_tdep): Update.
9736
9a73f0ad
TT
97372019-05-08 Tom Tromey <tom@tromey.com>
9738
9739 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9740 (hppa_init_objfile_priv_data, read_unwind_info)
9741 (find_unwind_entry, _initialize_hppa_tdep): Update.
9742
8127a2fa
TT
97432019-05-08 Tom Tromey <tom@tromey.com>
9744
9745 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9746 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9747 on obstack.
9748 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9749
91d3055d
TT
97502019-05-08 Tom Tromey <tom@tromey.com>
9751
9752 * mdebugread.c (basic_type_data): Change type.
9753 (basic_type, _initialize_mdebugread): Update.
9754
31930bd3
TT
97552019-05-08 Tom Tromey <tom@tromey.com>
9756
9757 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9758
bdb3ed9e
TT
97592019-05-08 Tom Tromey <tom@tromey.com>
9760
9761 * nto-tdep.c (nto_inferior_data_reg): Change type.
9762 (nto_inferior_data): Update.
9763 (nto_inferior_data_cleanup, nto_new_inferior_data)
9764 (_initialize_nto_tdep): Remove.
9765 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9766
f37b313d
TT
97672019-05-08 Tom Tromey <tom@tromey.com>
9768
9769 * ada-lang.c (struct ada_inferior_data): Add initializers.
9770 (ada_inferior_data): Change type.
9771 (ada_inferior_data_cleanup): Remove.
9772 (get_ada_inferior_data, ada_inferior_exit)
9773 (struct ada_pspace_data): Add initializers, destructor.
9774 (ada_pspace_data_handle): Change type.
9775 (get_ada_pspace_data): Update.
9776 (ada_pspace_data_cleanup): Remove.
9777
24699405
TT
97782019-05-08 Tom Tromey <tom@tromey.com>
9779
9780 * coffread.c (struct coff_symfile_info): Add initializers.
9781 (coff_objfile_data_key): Move lower. Change type.
9782 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9783 Update.
9784 (coff_free_info): Remove.
9785
d4e05d2f
TT
97862019-05-08 Tom Tromey <tom@tromey.com>
9787
9788 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9789 (fbsd_pspace_data_handle): Move lower. Change type.
9790 (get_fbsd_pspace_data): Update.
9791 (fbsd_pspace_data_cleanup): Remove.
9792 (_initialize_fbsd_tdep): Update.
9793
14ef6690
TT
97942019-05-08 Tom Tromey <tom@tromey.com>
9795
9796 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9797 (get_ada_tasks_pspace_data): Update.
9798 (ada_tasks_pspace_data_cleanup): Remove.
9799 (_initialize_tasks): Update.
9800 (ada_tasks_inferior_data_handle): Change type.
9801 (get_ada_tasks_inferior_data): Update.
9802 (ada_tasks_inferior_data_cleanup): Remove.
9803 (struct ada_tasks_pspace_data): Add initializers.
9804
814cf43a
TT
98052019-05-08 Tom Tromey <tom@tromey.com>
9806
9807 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9808 * symfile-debug.c (debug_sym_get_probes): Change type.
9809 * stap-probe.c (handle_stap_probe):
9810 (stap_static_probe_ops::get_probes): Change type.
9811 * probe.h (class static_probe_ops) <get_probes>: Change type.
9812 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9813 (parse_probes_in_pspace): Update.
9814 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9815 Update.
9816 (any_static_probe_ops::get_probes): Change type.
9817 * elfread.c (elfread_data): New typedef.
9818 (probe_key): Change type.
9819 (elf_get_probes): Likewise. Update.
9820 (probe_key_free): Remove.
9821 (_initialize_elfread): Update.
9822 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9823 Change type.
9824 (dtrace_process_dof_probe, dtrace_process_dof)
9825 (dtrace_static_probe_ops::get_probe): Change type.
9826
02dc647e
TT
98272019-05-08 Tom Tromey <tom@tromey.com>
9828
9829 * xcoffread.c (struct xcoff_symfile_info): Rename from
9830 coff_symfile_info. Add initializers.
9831 (xcoff_objfile_data_key): Move lower. Change type.
9832 (XCOFF_DATA): Rewrite.
9833 (xcoff_free_info): Remove.
9834 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9835 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9836 (xcoff_initial_scan): Update.
9837
09232438
TT
98382019-05-08 Tom Tromey <tom@tromey.com>
9839
9840 * solib-svr4.c (struct svr4_info): Add initializers and
9841 destructor.
9842 <probes_table>: Now an htab_up.
9843 (solib_svr4_pspace_data): Change type.
9844 (free_probes_table): Simplify.
9845 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9846 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9847 (probes_table_remove_objfile_probes, register_solib_event_probe)
9848 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9849 (_initialize_svr4_solib): Update.
9850
7b4a314f
TT
98512019-05-08 Tom Tromey <tom@tromey.com>
9852
9853 * remote.c (remote_pspace_data): Change type.
9854 (remote_pspace_data_cleanup): Remove.
9855 (get_remote_exec_file, set_pspace_remote_exec_file)
9856 (_initialize_remote): Update.
9857
51d3063a
TT
98582019-05-08 Tom Tromey <tom@tromey.com>
9859
9860 * breakpoint.c (breakpoint_objfile_key): Change type.
9861 (get_breakpoint_objfile_data): Update.
9862 (free_breakpoint_objfile_data): Remove.
9863 (_initialize_breakpoint): Update.
9864
89fb8848
TT
98652019-05-08 Tom Tromey <tom@tromey.com>
9866
9867 * linux-tdep.c (struct linux_info): Add initializers.
9868 (linux_inferior_data): Move. Change type.
9869 (invalidate_linux_cache_inf): Update.
9870 (linux_inferior_data_cleanup): Remove.
9871 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9872
e9b89e2d
TT
98732019-05-08 Tom Tromey <tom@tromey.com>
9874
9875 * auxv.c (auxv_inferior_data): Move. Change type.
9876 (auxv_inferior_data_cleanup): Remove.
9877 (invalidate_auxv_cache_inf): Rewrite.
9878 (get_auxv_inferior_data, _initialize_auxv): Update.
9879
8c42777c
TT
98802019-05-08 Tom Tromey <tom@tromey.com>
9881
9882 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9883 (symfile_debug_objfile_data_key): Change type.
9884 (symfile_debug_installed, debug_qf_has_symbols)
9885 (debug_qf_find_last_source_symtab)
9886 (debug_qf_forget_cached_source_info)
9887 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9888 (debug_qf_print_stats, debug_qf_dump)
9889 (debug_qf_expand_symtabs_for_function)
9890 (debug_qf_expand_all_symtabs)
9891 (debug_qf_expand_symtabs_with_fullname)
9892 (debug_qf_map_matching_symbols)
9893 (debug_qf_expand_symtabs_matching)
9894 (debug_qf_find_pc_sect_compunit_symtab)
9895 (debug_qf_map_symbol_filenames)
9896 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9897 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9898 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9899 (debug_sym_read_linetable, debug_sym_relocate): Update.
9900 (symfile_debug_free_objfile): Remove.
9901 (install_symfile_debug_logging, _initialize_symfile_debug):
9902 Update.
9903
5bfd760d
TT
99042019-05-08 Tom Tromey <tom@tromey.com>
9905
9906 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9907 allocate_on_obstack.
9908 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9909 (get_dwarf2_per_objfile): Update.
9910 (set_dwarf2_per_objfile): Remove.
9911 (dwarf2_has_info, dwarf2_get_section_info): Update.
9912 (dwarf2_free_objfile): Remove.
9913 (_initialize_dwarf2_read): Update.
9914
e85e19b4
TT
99152019-05-08 Tom Tromey <tom@tromey.com>
9916
9917 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9918 initializers.
9919 <unsupported_script_warning_printed,
9920 script_not_found_warning_printed>: Now bool.
9921 (auto_load_pspace_data): Change type.
9922 (~auto_load_pspace_info): Rename from
9923 auto_load_pspace_data_cleanup.
9924 (get_auto_load_pspace_data, init_loaded_scripts_info)
9925 (clear_section_scripts, maybe_print_unsupported_script_warning)
9926 (maybe_print_script_not_found_warning, _initialize_auto_load):
9927 Update.
9928
f6aa7436
TT
99292019-05-08 Tom Tromey <tom@tromey.com>
9930
9931 * objfiles.c (objfile_pspace_info): Add destructor and
9932 initializers.
9933 (objfiles_pspace_data): Change type.
9934 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9935 (get_objfile_pspace_data): Update.
9936 (objfiles_bfd_data): Change type.
9937 (get_objfile_bfd_data): Update.
9938 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9939
6ae614f6
TT
99402019-05-08 Tom Tromey <tom@tromey.com>
9941
9942 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9943 Change type.
9944 (get_catch_syscall_inferior_data): Update.
9945 (catch_syscall_inferior_data_cleanup): Remove.
9946 (_initialize_break_catch_syscall): Update.
9947
6509b8eb
TT
99482019-05-08 Tom Tromey <tom@tromey.com>
9949
9950 * inflow.c (struct terminal_info): Add destructor and
9951 initializers.
9952 (inflow_inferior_data): Change type.
9953 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9954 (get_inflow_inferior_data, inflow_inferior_exit)
9955 (swap_terminal_info, _initialize_inflow): Update.
9956
35632941
TT
99572019-05-08 Tom Tromey <tom@tromey.com>
9958
9959 * target-dcache.c (target_dcache_cleanup): Remove.
9960 (target_dcache_aspace_key): Change type.
9961 (target_dcache_init_p, target_dcache_invalidate)
9962 (target_dcache_get, target_dcache_get_or_init)
9963 (_initialize_target_dcache): Update.
9964 * dcache.h (struct dcache_deleter): New.
9965
3017b94d
TT
99662019-05-08 Tom Tromey <tom@tromey.com>
9967
9968 * symtab.c (struct symbol_cache): Add destructor and
9969 initializers.
9970 (symbol_cache_key): Move. Change type.
9971 (make_symbol_cache, free_symbol_cache): Remove.
9972 (get_symbol_cache): Update.
9973 (symbol_cache_cleanup): Remove.
9974 (ALL_PSPACES, symbol_cache_flush)
9975 (maintenance_print_symbol_cache)
9976 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9977 Update.
9978
a32ad8c5
TT
99792019-05-08 Tom Tromey <tom@tromey.com>
9980
9981 * symtab.c (struct main_info): Add destructor and initializers.
9982 (main_progspace_key): Move. Change type.
9983 (get_main_info): Update.
9984 (main_info_cleanup): Remove.
9985 (_initialize_symtab): Update.
9986
5f6e90a0
TT
99872019-05-08 Tom Tromey <tom@tromey.com>
9988
9989 * registry.h (DECLARE_REGISTRY): Define the _key class.
9990
1bd0c6e4
AB
99912019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9992
9993 * NEWS: Merge two 'New commands' sections.
9994
2228ef77
XR
99952019-05-08 Joel Brobecker <brobecker@adacore.com>
9996
9997 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9998 parameter and use Ada language definition instead.
9999 (ada_val_print_ptr): Remove unused language parameter.
10000 (ada_val_print_num): Remove language parameter and use Ada language
10001 definition instead.
10002 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10003 parameter.
10004 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10005 parameter and use Ada language definition instead.
10006 (ada_val_print_1): Update all ada_val_print_xxx calls.
10007 Remove language parameter.
10008 (ada_val_print): Update ada_val_print_1 call.
10009
60fcc1c3
TT
100102019-05-08 Tom Tromey <tromey@adacore.com>
10011
10012 * remote.c (remote_hw_watchpoint_limit)
10013 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10014 Now static.
10015
ed2b7c17
TT
100162019-05-08 Tom Tromey <tromey@adacore.com>
10017
10018 * maint.c (_initialize_maint_cmds): Move initialization code to
10019 remote.c.
10020 (watchdog, show_watchdog): Move to remote.c.
10021 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10022 "watchdog" static.
10023 (_initialize_remote): Move initialization code from maint.c.
10024 * defs.h (watchdog): Don't declare.
10025
b0be6c91
TT
100262019-05-08 Tom Tromey <tromey@adacore.com>
10027
10028 * tui/tui-interp.c: Include main.h.
10029 * interps.c: Include main.h.
10030 * main.h (interpreter_p): Declare.
10031 * defs.h (interpreter_p): Don't declare.
10032
587ee17b
TT
100332019-05-08 Tom Tromey <tromey@adacore.com>
10034
10035 * dwarf2loc.c: Include dwarf2read.h.
10036 * defs.h (read_unsigned_leb128): Don't declare.
10037 * dwarf2read.h (read_unsigned_leb128): Declare.
10038
ca1df239
TT
100392019-05-08 Tom Tromey <tromey@adacore.com>
10040
10041 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10042 method.
10043
99f20f08
TT
100442019-05-08 Tom Tromey <tromey@adacore.com>
10045
10046 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10047 when no wrap column is set.
10048
80e55b13
TT
100492019-05-08 Tom Tromey <tromey@adacore.com>
10050
10051 * c-lang.c (c_get_string): Handle non-C-style arrays.
10052
9d3421af
TT
100532019-05-08 Tom Tromey <tromey@adacore.com>
10054
10055 * typeprint.c (print_offset_data::update): Print the bit offset,
10056 not the number of bits remaining.
10057
844333e2
TT
100582019-05-08 Tom Tromey <tromey@adacore.com>
10059
10060 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10061 padding at end of comment.
10062
988915ee
TT
100632019-05-08 Tom Tromey <tromey@adacore.com>
10064
10065 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10066 Compare main types.
10067
26bfd823
TT
100682019-05-06 Tom Tromey <tom@tromey.com>
10069
10070 * common/scoped_mmap.c: Include common-defs.h.
10071 * common/scoped_mmap.h: Don't include config.h.
10072
89055eaa
TT
100732019-05-04 Tom Tromey <tom@tromey.com>
10074
10075 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10076 (struct aarch64_call_info): Add initializers.
10077 <si>: Now a std::vector.
10078 (pass_on_stack, aarch64_push_dummy_call): Update.
10079
5da01df5
TT
100802019-05-04 Simon Marchi <simon.marchi@efficios.com>
10081 Tom Tromey <tom@tromey.com>
10082
10083 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10084 (ppc_threads): Now a std::vector. Now static.
10085 (hwdebug_find_thread_points_by_tid)
10086 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10087 Update.
10088
fbdf05a1
TT
100892019-05-04 Tom Tromey <tom@tromey.com>
10090
10091 * arc-tdep.c (arc_tdesc_init): Return bool.
10092
06d16ec9
TT
100932019-05-04 Tom Tromey <tom@tromey.com>
10094
10095 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10096 Use gdb_assert_not_reached.
10097
9c056022
TT
100982019-05-04 Tom Tromey <tom@tromey.com>
10099
10100 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10101 "false".
10102
fa9c2a59
TT
101032019-05-04 Tom Tromey <tom@tromey.com>
10104
10105 * arc-tdep.c (arc_tdesc_init): Use bool.
10106
e2eb806a
TT
101072019-05-04 Tom Tromey <tom@tromey.com>
10108
10109 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10110
6fe87677
TT
101112019-05-04 Tom Tromey <tom@tromey.com>
10112
10113 * cli/cli-cmds.c (valid_command_p): Return bool.
10114
7f008c9e
TT
101152019-05-04 Tom Tromey <tom@tromey.com>
10116
10117 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10118 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10119
b6484282
RT
101202019-05-04 Raul Tambre <raul@tambre.ee>
10121
10122 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10123 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10124 operator for comparison.
10125
af97b416
TT
101262019-05-04 Tom Tromey <tom@tromey.com>
10127
10128 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10129 (lookup_partial_symbol, print_partial_symbols)
10130 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10131 (psymbol_compare): Update.
10132 (add_psymbol_to_bcache): Clear the entire psymbol.
10133 (maintenance_check_psymtabs): Update.
10134 * psympriv.h (struct partial_symbol): Don't derive from
10135 general_symbol_info.
10136 <obj_section, unrelocated_address, address,
10137 set_unrelocated_address>: Update.
10138 <ginfo>: New member.
10139 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10140 (debug_names::write_psymbols): Update.
10141
9d6d4be8
TV
101422019-05-04 Tom de Vries <tdevries@suse.de>
10143
10144 * contrib/cc-with-tweaks.sh: Support -n arg.
10145
66452beb
PW
101462019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10147
10148 * corelow.c (core_target::detach): Ensure frame cache and
10149 register caches are cleared.
10150 inferior.c (exit_inferior_1): Likewise.
10151
bde09ab7
TT
101522019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10153 Tom Tromey <tom@tromey.com>
10154
10155 * dictionary.c (collate_pending_symbols_by_language): Remove
10156 "struct" from foreach.
10157 * symtab.c (lookup_global_symbol_from_objfile)
10158 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10159 foreach.
10160 * ser-tcp.c (net_open): Remove "struct" from foreach.
10161 * objfiles.c (objfile_relocate, objfile_rebase)
10162 (objfile_has_symbols): Remove "struct" from foreach.
10163 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10164 from foreach.
10165 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10166 foreach.
10167 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10168 "struct" from foreach.
10169 * ada-lang.c (create_excep_cond_exprs)
10170 (ada_exception_catchpoint_cond_string): Remove "struct" from
10171 foreach.
10172
222a8d25
TT
101732019-05-03 Tom Tromey <tromey@adacore.com>
10174
10175 * ada-exp.y (convert_char_literal): Check suffix of each
10176 enumerator.
10177
fcd60b84
DP
101782019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10179
10180 PR ada/21406:
10181 * ada-exp.y (yywrap): Don't define.
10182 * ada-lex.l (%option): Add noyywrap
10183 (yywrap): Remove.
10184
5f2459c2
EZ
101852019-05-03 Eli Zaretskii <eliz@gnu.org>
10186
353ea2d1
EZ
10187 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10188 _WIN32_WINNT to the XP level, unless already defined to a higher
10189 level.
10190
10191 * unittests/parse-connection-spec-selftests.c:
10192 * ser-tcp.c:
10193 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10194 override.
10195
5f2459c2
EZ
10196 * symfile.c (find_separate_debug_file): Remove colon from the
10197 drive spec of DOS/Windows file names of the target, so that the
10198 file name produced from DEBUGDIR and the target's directory will
10199 be valid on DOS/Windows systems.
10200
80062eb9
AB
102012019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10202
10203 * rust-lang.c (val_print_struct): Handle printing structures
10204 containing strings.
10205
b8c05e85
TT
102062019-05-02 Tom Tromey <tromey@adacore.com>
10207
10208 * valarith.c (_initialize_valarith): Remove.
10209
4504bbde
TT
102102019-05-01 Tom Tromey <tromey@adacore.com>
10211
10212 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10213 bitfields.
10214
d48e62f4
TT
102152019-05-01 Tom Tromey <tromey@adacore.com>
10216
10217 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10218 for big-endian copies.
10219
15f18d14
AT
102202019-04-30 Ali Tamur <tamur@google.com>
10221 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10222 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10223 (read_3_bytes): New function.
10224
ab4ee614
JB
102252019-04-30 Joel Brobecker <brobecker@adacore.com>
10226
10227 * windows-nat.c (main_thread_id): Delete.
10228 (handle_output_debug_string): Replace main_thread_id by
10229 current_event.dwThreadId.
10230 (fake_create_process): Likewise.
10231 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10232 Do not set main_thread_id.
10233 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10234 current_event.dwThreadId.
10235 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10236
8ed5b76e
JB
102372019-04-30 Joel Brobecker <brobecker@adacore.com>
10238
10239 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10240 Use current_event.dwThreadId instead of main_thread_id.
10241
2ff0a947
TT
102422019-04-30 Tom Tromey <tromey@adacore.com>
10243
10244 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10245 (create_excep_cond_exprs): Iterate over program spaces.
10246 (ada_exception_catchpoint_cond_string): Examine all minimal
10247 symbols for exception types.
10248
a776957c
TT
102492019-04-30 Tom Tromey <tromey@adacore.com>
10250
10251 PR c++/24470:
10252 * dwarf2read.c (process_structure_scope): Handle case where type
10253 has template parameters but no symbol was created.
10254
bc68014d
AB
102552019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10256 Chris January <chris.january@arm.com>
10257
10258 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10259 qualifier.
10260 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10261
f1fdc960
AB
102622019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10263
10264 * f-typeprint.c (f_print_type): Update rules for printing
10265 whitespace.
10266 (f_type_print_varspec_suffix): Likewise.
10267
bf7a4de1
AB
102682019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10269 Chris January <chris.january@arm.com>
10270
10271 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10272 function arguments.
10273
bbe75b9d
AB
102742019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10275
10276 * f-lang.c (build_fortran_types): Change name of void type to
10277 lower case.
10278 * f-typeprint.c (f_type_print_base): Print the name of the void
10279 type, rather than a fixed string.
10280 * f-valprint.c (f_decorations): Use lower case void string.
10281
1db455a7
AB
102822019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10283 Chris January <chris.january@arm.com>
10284
10285 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10286 types for Fortran.
10287
b6d03bb2
AB
102882019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10289 Chris January <chris.january@arm.com>
10290 David Lecomber <david.lecomber@arm.com>
10291
10292 * f-exp.y (BINOP_INTRINSIC): New token.
10293 (exp): New parser rule handling BINOP_INTRINSIC.
10294 (f77_keywords): Add new builtin procedures.
10295 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10296 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10297 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10298 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10299 (print_unop_subexp_f): New function.
10300 (print_binop_subexp_f): New function.
10301 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10302 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10303 (dump_subexp_body_f): Likewise.
10304 (operator_check_f): Likewise.
10305 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10306 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10307
83228e93
AB
103082019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10309
10310 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10311 UNOP_KIND.
10312 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10313 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10314 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10315 (operator_length_f): New fuction.
10316 (print_subexp_f): New function.
10317 (op_name_f): New function.
10318 (dump_subexp_body_f): New function.
10319 (operator_check_f): New function.
10320 (exp_descriptor_f): Replace standard expression handling functions
10321 with new functions.
10322 * gdb/fortran-operator.def: New file.
10323 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10324 * gdb/std-operator.def: Remove UNOP_KIND.
10325
6fdcd7cc
AB
103262019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10327
10328 * std-operator.def: Remove unbalanced, stray double quote
10329 character.
10330
2e62ab40
AB
103312019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10332 Chris January <chris.january@arm.com>
10333 Daniel Everett <daniel.everett@arm.com>
10334 Nick Forrington <nick.forrington@arm.com>
10335 Richard Bunt <richard.bunt@arm.com>
10336
10337 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10338 of depth when printing anonymous structs or unions.
10339 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10340 Don't print either the top-level value, or the children if the
10341 max-depth is exceeded.
10342 (ppscm_print_children): When printing the key of a map, allow one
10343 extra level of depth.
10344 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10345 print either the top-level value, or the children if the max-depth
10346 is exceeded.
10347 (print_children): When printing the key of a map, allow one extra
10348 level of depth.
10349 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10350 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10351 (user_print_options): Initialise max_depth field.
10352 (val_print_scalar_or_string_type_p): New function.
10353 (val_print): Check to see if the max depth has been reached.
10354 (val_print_check_max_depth): Define new function.
10355 (show_print_max_depth): New function.
10356 (_initialize_valprint): Add 'print max-depth' option.
10357 * valprint.h (struct value_print_options) <max_depth>: New field.
10358 (val_print_check_max_depth): Declare new function.
10359 * NEWS: Document new feature.
10360
4be290b2
AB
103612019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10362
10363 * ada-lang.c (ada_language_defn): Initialise new field.
10364 * c-lang.c (c_is_string_type_p): New function.
10365 (c_language_defn): Initialise new field.
10366 (cplus_language_defn): Initialise new field.
10367 (asm_language_defn): Initialise new field.
10368 (minimal_language_defn): Initialise new field.
10369 * c-lang.h (c_is_string_type_p): Declare new function.
10370 * d-lang.c (d_language_defn): Initialise new field.
10371 * f-lang.c (f_is_string_type_p): New function.
10372 (f_language_defn): Initialise new field.
10373 * go-lang.c (go_is_string_type_p): New function.
10374 (go_language_defn): Initialise new field.
10375 * language.c (default_is_string_type_p): New function.
10376 (unknown_language_defn): Initialise new field.
10377 (auto_language_defn): Initialise new field.
10378 * language.h (struct language_defn) <la_is_string_type_p>: New
10379 member variable.
10380 (default_is_string_type_p): Declare new function.
10381 * m2-lang.c (m2_language_defn): Initialise new field.
10382 * objc-lang.c (objc_language_defn): Initialise new field.
10383 * opencl-lang.c (opencl_language_defn): Initialise new field.
10384 * p-lang.c (pascal_is_string_type_p): New function.
10385 (pascal_language_defn): Initialise new field.
10386 * rust-lang.c (rust_is_string_type_p): New function.
10387 (rust_language_defn): Initialise new field.
10388
721b08c6
AB
103892019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10390
10391 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10392 New field.
10393 * ada-lang.c (ada_language_defn): Initialise new field.
10394 * c-lang.c (c_language_defn): Likewise.
10395 (cplus_language_defn): Likewise.
10396 (asm_language_defn): Likewise.
10397 (minimal_language_defn): Likewise.
10398 * d-lang.c (d_language_defn): Likewise.
10399 * f-lang.c (f_language_defn): Likewise.
10400 * go-lang.c (go_language_defn): Likewise.
10401 * language.c (unknown_language_defn): Likewise.
10402 (auto_language_defn): Likewise.
10403 * m2-lang.c (m2_language_defn): Likewise.
10404 * objc-lang.c (objc_language_defn): Likewise.
10405 * opencl-lang.c (opencl_language_defn): Likewise.
10406 * p-lang.c (pascal_language_defn): Likewise.
10407 * rust-lang.c (rust_language_defn): Likewise.
10408
fc913e53
AB
104092019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10410
10411 * ada-lang.c (ada_is_character_type): Change return type to bool.
10412 (ada_is_string_type): Likewise.
10413 * ada-lang.h (ada_is_character_type): Update declaration
10414 (ada_is_string_type): Likewise.
10415
fa731fa0
PW
104162019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10417
10418 Support style in 'frame|thread apply'
10419
10420 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10421 * record.c (record_start, record_stop): Update callers of
10422 execute_command_to_string with false.
10423 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10424 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10425 methods.
10426 (class string_file): New constructor with term_out parameter.
10427 Override methods term_out and can_emit_style_escape. New member
10428 term_out.
10429 (class stdio_file): Override can_emit_style_escape.
10430 (class tee_file): Override term_out and can_emit_style_escape.
10431 * utils.h (can_emit_style_escape): Remove.
10432 * utils.c (can_emit_style_escape): Likewise.
10433 Update all callers of can_emit_style_escape (SOMESTREAM) to
10434 SOMESTREAM->can_emit_style_escape.
10435 * source-cache.c (source_cache::get_source_lines): Likewise.
10436 * stack.c (frame_apply_command_count): Call execute_command_to_string
10437 passing the term_out characteristic of the current gdb_stdout.
10438 * thread.c (thr_try_catch_cmd): Likewise.
10439 * top.c (execute_command_to_string): pass term_out parameter
10440 to construct the string_file for the command output.
10441 * ui-file.c (term_cli_styling): New function (most code moved
10442 from utils.c can_emit_style_escape).
10443 (string_file::string_file, string_file::can_emit_style_escape,
10444 stdio_file::can_emit_style_escape, tee_file::term_out,
10445 tee_file::can_emit_style_escape): New functions.
10446
136afab8
PW
104472019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10448
10449 * NEWS: Mention the new set|show may-call-functions.
10450 * infcall.c (may_call_functions_p): New variable.
10451 (show_may_call_functions_p): New function.
10452 (call_function_by_hand_dummy): Throws an error if not
10453 may-call-functions.
10454 (_initialize_infcall): Call add_setshow_boolean_cmd for
10455 may-call-functions.
10456
725cbb63
KS
104572019-04-25 Keith Seitz <keiths@redhat.com>
10458
10459 PR c++/24367
10460 * cp-support.c (inspect_type): Don't attempt substitutions
10461 of symbol with the same name.
10462
3d1cbb78
TT
104632019-04-25 Tom Tromey <tromey@adacore.com>
10464
10465 PR gdb/24475:
10466 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10467 static.
10468
94aeb44b
TT
104692019-04-25 Tom Tromey <tromey@adacore.com>
10470
10471 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10472 rvalue reference.
10473 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10474 (gdb_xml_parser::parse): Use std::move.
10475 * python/python-internal.h (gdbpy_convert_exception): Take a const
10476 reference.
10477 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10478 std::move.
10479 * python/py-utils.c (gdbpy_convert_exception): Take a const
10480 reference.
10481 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10482 Use std::move.
10483 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10484 Use std::move.
10485 * mi/mi-main.c (mi_print_exception): Take a const reference.
10486 * main.c (handle_command_errors): Take a const reference.
10487 * linespec.c (parse_linespec): Use std::move.
10488 * infcall.c (run_inferior_call): Use std::move.
10489 (call_function_by_hand_dummy): Use std::move.
10490 * exec.c (try_open_exec_file): Use std::move.
10491 * exceptions.h (exception_print, exception_fprintf)
10492 (exception_print_same): Update.
10493 * exceptions.c (print_exception, exception_print)
10494 (exception_fprintf, exception_print_same): Change parameters to
10495 const reference.
10496 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10497 * common/new-op.c: Use std::move.
10498 * common/common-exceptions.h (struct gdb_exception): Add move
10499 constructor.
10500 (struct gdb_exception_error, struct gdb_exception_quit, struct
10501 gdb_quit_bad_alloc): Change constructor to move constructor.
10502 (throw_exception): Change parameter to rvalue reference.
10503 * common/common-exceptions.c (throw_exception): Take rvalue
10504 reference.
10505 * cli/cli-interp.c (safe_execute_command): Use std::move.
10506 * breakpoint.c (insert_bp_location, location_to_sals): Use
10507 std::move.
10508
680d7fd5
TT
105092019-04-25 Tom Tromey <tromey@adacore.com>
10510
10511 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10512 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10513 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10514 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10515 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10516 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10517 guile/scm-value.c: Use unpack.
10518 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10519 gdbscm_gdb_exception.
10520 (gdbscm_throw_gdb_exception): Likewise.
10521 (struct gdbscm_gdb_exception): New.
10522 (unpack): New function.
10523 (gdbscm_wrap): Use unpack.
10524
c6fdd8b2
TT
105252019-04-25 Tom Tromey <tromey@adacore.com>
10526
10527 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10528 (gdb_rl_callback_handler): Use std::move.
10529 * common/common-exceptions.h (struct gdb_exception): Add move
10530 assignment operator.
10531 (throw_exception_sjlj): Change "exception" to const reference.
10532 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10533 (throw_exception_sjlj): Change "exception" to const reference.
10534
cc06b668
TT
105352019-04-25 Tom Tromey <tromey@adacore.com>
10536
10537 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10538 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10539 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10540 Update.
10541 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10542 Update.
10543 * mi/mi-interp.c (mi_interp::exec): Update.
10544 * linespec.c (parse_linespec): Update.
10545 * infcall.c (run_inferior_call): Update.
10546 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10547 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10548 (gdbscm_lookup_global_symbol): Update.
10549 * guile/scm-param.c (gdbscm_parameter_value): Update.
10550 * guile/scm-frame.c (gdbscm_frame_read_register)
10551 (gdbscm_frame_read_var): Update.
10552 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10553 * exec.c (try_open_exec_file): Update.
10554 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10555 (gdb_rl_callback_handler): Update.
10556 * common/common-exceptions.h (exception_none): Don't declare.
10557 * common/common-exceptions.c (exception_none): Don't define.
10558 (struct catcher) <exception>: Update.
10559 * cli/cli-interp.c (safe_execute_command): Update.
10560 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10561
cf532bd1
AT
105622019-04-25 Ali Tamur <tamur@google.com>
10563
10564 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10565 (read_attribute_value): Likewise.
10566 (dwarf2_read_addr_index): Update comment.
10567 (read_str_index): Add DW_FORM_strx.
10568 (dwarf2_string_attr): Likewise.
10569 (dwarf2_const_value_attr): Likewise.
10570 (dump_die_shallow): Likewise.
10571 (dwarf2_fetch_constant_bytes): Likewise.
10572 (skip_form_bytes): Likewise.
10573 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10574
82433e3e
SDJ
105752019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10576
10577 PR corefiles/11608
10578 PR corefiles/18187
10579 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10580 OFFSET. Verify if current mapping contains an ELF header.
10581 (linux_find_memory_regions_full): Adjust call to
10582 dump_mapping_p.
10583
723adb65
SL
105842019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10585 Kang Li <kanglictf@gmail.com>
10586
10587 PR gdb/21600
10588
10589 * dwarf2-frame.c (read_initial_length): Be consistent about using
10590 unsigned representation of length.
10591 (decode_frame_entry_1): Likewise. Check for wraparound of
10592 end pointer as well as buffer overflow.
10593
596179f7
SDJ
105942019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10595
10596 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10597 "vq".
10598
a59240a4
TT
105992019-04-24 Tom Tromey <tromey@adacore.com>
10600
10601 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10602
f872fdbb
AB
106032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10604
10605 * s12z-tdep.c (s12z_unwind_pc): Delete.
10606 (s12z_unwind_sp): Delete.
10607 (s12z_gdbarch_init): Don't register deleted functions with
10608 gdbarch.
10609
b614e6f3
AB
106102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10611
10612 * rl78-tdep.c (rl78_unwind_sp): Delete.
10613 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10614
14faed38
AB
106152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10616
10617 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10618 (xstormy16_unwind_pc): Delete.
10619 (xstormy16_dummy_id): Delete.
10620 (xstormy16_gdbarch_init): Don't register deleted functions with
10621 gdbarch.
10622
541aad8a
AB
106232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10624
10625 * vax-tdep.c (vax_unwind_pc): Delete.
10626 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10627
29222070
AB
106282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10629
10630 * v850-tdep.c (v850_unwind_sp): Delete.
10631 (v850_unwind_pc): Delete.
10632 (v850_dummy_id): Delete.
10633 (v850_gdbarch_init): Don't register deleted functions with
10634 gdbarch.
10635
0f534d76
AB
106362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10637
10638 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10639 (tilegx_unwind_pc): Delete.
10640 (tilegx_unwind_dummy_id): Delete.
10641 (tilegx_gdbarch_init): Don't register deleted functions with
10642 gdbarch.
10643
1ba7b7f9
AB
106442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10645
10646 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10647 (tic6x_dummy_id): Delete.
10648 (tic6x_gdbarch_init): Don't register deleted functions with
10649 gdbarch.
10650
d31f262c
AB
106512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10652
10653 * sparc-tdep.c (sparc_unwind_pc): Delete.
10654 (sparc32_gdbarch_init): Don't register deleted function with
10655 gdbarch.
10656
6d14d64d
AB
106572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10658
10659 * sh-tdep.c (sh_unwind_sp): Delete.
10660 (sh_unwind_pc): Delete.
10661 (sh_dummy_id): Delete.
10662 (sh_gdbarch_init): Don't register deleted functions with
10663 gdbarch.
10664
a40dde9d
AB
106652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10666
10667 * score-tdep.c (score_unwind_sp): Delete.
10668 (score_unwind_pc): Delete.
10669 (score_dummy_id): Delete.
10670 (score_gdbarch_init): Don't register deleted functions with
10671 gdbarch.
10672
47c47d69
AB
106732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10674
10675 * rx-tdep.c (rx_unwind_pc): Delete.
10676 (rx_unwind_sp): Delete.
10677 (rx_dummy_id): Delete.
10678 (rx_gdbarch_init): Don't register deleted functions with
10679 gdbarch. Update comment.
10680
833a4480
AB
106812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10682
10683 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10684 (rs6000_dummy_id): Delete.
10685 (rs6000_gdbarch_init): Don't register deleted functions with
10686 gdbarch.
10687
3f2cef49
AB
106882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10689
10690 * or1k-tdep.c (or1k_dummy_id): Delete.
10691 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10692
96acf884
AB
106932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10694
10695 * nios2-tdep.c (nios2_dummy_id): Delete.
10696 (nios2_unwind_sp): Delete.
10697 (nios2_gdbarch_init): Don't register deleted functions with
10698 gdbarch.
10699
ca0ab0aa
AB
107002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10701
10702 * nds32-tdep.c (nds32_dummy_id): Delete.
10703 (nds32_unwind_pc): Delete.
10704 (nds32_unwind_sp): Delete.
10705 (nds32_gdbarch_init): Don't register deleted functions with
10706 gdbarch.
10707
c8259044
AB
107082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10709
10710 * msp430-tdep.c (msp430_unwind_pc): Delete.
10711 (msp430_unwind_sp): Delete.
10712 (msp430_dummy_id): Delete.
10713 (msp430_gdbarch_init): Don't register deleted functions with
10714 gdbarch.
10715
27f113c8
AB
107162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10717
10718 * moxie-tdep.c (moxie_unwind_sp): Delete.
10719 (moxie_unwind_pc): Delete.
10720 (moxie_dummy_id): Delete.
10721 (moxie_gdbarch_init): Don't register deleted functions with
10722 gdbarch.
10723
aee6c3cd
AB
107242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10725
10726 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10727 (mn10300_unwind_pc): Delete.
10728 (mn10300_unwind_sp): Delete.
10729 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10730 mn10300_unwind_sp.
10731 (mn10300_frame_unwind_init): Don't register deleted functions with
10732 gdbarch.
10733
8e2b5aea
AB
107342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10735
10736 * mep-tdep.c (mep_unwind_pc): Delete.
10737 (mep_unwind_sp): Delete.
10738 (mep_dummy_id): Delete.
10739 (mep_gdbarch_init): Don't register deleted functions with
10740 gdbarch.
10741
43cf3ede
AB
107422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10743
10744 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10745 (m68hc11_unwind_sp): Delete.
10746 (m68hc11_gdbarch_init): Don't register deleted functions with
10747 gdbarch.
10748
5e79b7bb
AB
107492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10750
10751 * m32r-tdep.c (m32r_unwind_sp): Delete.
10752 (m32r_unwind_pc): Delete.
10753 (m32r_dummy_id): Delete.
10754 (m32r_gdbarch_init): Don't register deleted functions with
10755 gdbarch.
10756
89b268d8
AB
107572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10758
10759 * m32c-tdep.c (m32c_unwind_pc): Delete.
10760 (m32c_unwind_sp): Delete.
10761 (m32c_dummy_id): Delete.
10762 (m32c_gdbarch_init): Don't register deleted functions with
10763 gdbarch.
10764
946c28d2
AB
107652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10766
10767 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10768 (lm32_unwind_pc): Delete.
10769 (lm32_dummy_id): Delete.
10770 (lm32_gdbarch_init): Don't register deleted functions with
10771 gdbarch.
10772
bf12844a
AB
107732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10774
10775 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10776 (iq2000_unwind_pc): Delete.
10777 (iq2000_dummy_id): Delete.
10778 (iq2000_gdbarch_init): Don't register deleted functions with
10779 gdbarch.
10780
ecbc06d2
AB
107812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10782
10783 * nds32-tdep.c (nds32_type_align): Delete.
10784 (nds32_push_dummy_call): Use type_align instead.
10785
030197b4
AB
107862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10787
10788 * arm-tdep.c (arm_type_align): Only handle vector override case.
10789 (arm_push_dummy_call): Use type_align.
10790 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10791
b907456c
AB
107922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10793
10794 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10795 case.
10796 (pass_on_stack): Use type_align.
10797 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10798 function.
10799
9e97ba43
TT
108002019-04-23 Tom Tromey <tromey@adacore.com>
10801
10802 * dwarf2read.c (line_header::file_name_at): Remove unused
10803 overload.
10804
6892f601
TV
108052019-04-23 Tom de Vries <tdevries@suse.de>
10806
10807 PR gdb/24438
10808 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10809 invocation.
10810
336d760d
AT
10811
108122019-03-27 Ali Tamur <tamur@google.com>
10813
10814 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10815 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10816 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10817 (dwarf_expr_context::get_addr_index): Likewise
10818 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10819 (symbol_needs_eval_context::get_addr_index): Likewise
10820 (disassemble_dwarf_expression): Add DW_OP_addrx
10821 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10822 (read_cutu_die_from_dwo): Update comment
10823 (skip_one_die): Add DW_FORM_addrx
10824 (read_attribute_value): Likewise
10825 (var_decode_location): Add DW_OP_addrx
10826 (dwarf2_const_value_attr): Add DW_FORM_addrx
10827 (dump_die_shallow): Likewise
10828 (dwarf2_fetch_constant_bytes): Likewise
10829 (decode_locdesc): Add DW_OP_addrx
10830 (skip_form_bytes): Add DW_FORM_addrx
10831
ad9d13f8
AT
108322019-04-22 Ali Tamur <tamur@google.com>
10833
10834 * MAINTAINERS (Write After Approval): Add self.
10835
d70cc3ba
SM
108362019-04-22 Simon Marchi <simon.marchi@efficios.com>
10837
10838 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10839 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10840 (open_symbol_file_object): Likewise.
10841 (svr4_default_sos): Add info parameter.
10842 (svr4_read_so_list): Likewise.
10843 (svr4_current_sos_direct): Adjust functions calls to pass down
10844 info.
10845 (svr4_current_sos_1): Add info parameter.
10846 (svr4_current_sos): Call get_svr4_info, pass info down to
10847 svr4_current_sos_1.
10848 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10849 get_svr4_info.
10850 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10851 get_svr4_info.
10852 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10853 to get_svr4_info.
10854 (probes_table_remove_objfile_probes): Likewise.
10855 (register_solib_event_probe): Add info parameter.
10856 (solist_update_incremental): Pass info parameter down to
10857 svr4_read_so_list.
10858 (disable_probes_interface): Add info parameter.
10859 (svr4_handle_solib_event): Pass current_program_space to
10860 get_svr4_info. Adjust disable_probes_interface cleanup.
10861 (svr4_create_probe_breakpoints): Add info parameter, pass it
10862 down to register_solib_event_probe.
10863 (svr4_create_solib_event_breakpoints): Add info parameter,
10864 pass it down to svr4_create_probe_breakpoints.
10865 (enable_break): Pass info down to
10866 svr4_create_solib_event_breakpoints.
10867 (svr4_solib_create_inferior_hook): Pass current_program_space to
10868 get_svr4_info.
10869 (svr4_clear_solib): Likewise.
10870
7905fc35
PA
108712019-04-22 Pedro Alves <palves@redhat.com>
10872
10873 * solib-svr4.c (svr4_free_objfile_observer): New.
10874 (probe_and_action::objfile): New field.
10875 (probes_table_htab_remove_objfile_probes)
10876 (probes_table_remove_objfile_probes): New functions.
10877 (register_solib_event_probe): Add 'objfile' parameter. Store it
10878 in the new probe_and_action. Don't store the probe in 'lookup'.
10879 (svr4_create_probe_breakpoints): Pass objfile to
10880 register_solib_event_probe.
10881 (_initialize_svr4_solib): Register a free_objfile observer.
10882
fb881986
TT
108832019-04-19 Tom Tromey <tom@tromey.com>
10884
10885 * common/queue.h: Remove.
10886
8732db6c
TT
108872019-04-19 Tom Tromey <tom@tromey.com>
10888
10889 * event-loop.c: Don't include "common/queue.h".
10890
97dfbadd
TT
108912019-04-19 Tom Tromey <tom@tromey.com>
10892
10893 * remote.c (remote_target): Use delete.
10894 * remote-notif.h: Include <list>, not "common/queue.h".
10895 (notif_client_p): Remove typedef.
10896 (remote_notif_state): Add constructor, destructor, initializer.
10897 <notif_queue>: Now a std::list.
10898 (remote_notif_state_xfree): Don't declare.
10899 * remote-notif.c (remote_notif_process, handle_notification)
10900 (remote_notif_state_allocate): Update.
10901 (~remote_notif_state): Rename from remote_notif_state_xfree.
10902
cf250e36
TT
109032019-04-19 Tom Tromey <tom@tromey.com>
10904
10905 * symfile.c (reread_symbols): Update.
10906 * objfiles.c (objfile_register_static_link)
10907 (objfile_lookup_static_link): Update
10908 (~objfile) Don't delete static_links.
10909 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10910
61f4b350
TT
109112019-04-19 Tom Tromey <tom@tromey.com>
10912
10913 * type-stack.h (struct type_stack) <insert>: Constify string.
10914 * type-stack.c (type_stack::insert): Constify string.
10915 * gdbtypes.h (lookup_template_type): Update.
10916 (address_space_name_to_int): Update.
10917 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10918 const.
10919 (lookup_template_type): Make name const.
10920 * c-exp.y: Update rules.
10921 (lex_one_token, classify_name, classify_inner_name)
10922 (c_print_token): Update.
10923 * p-exp.y: Update rules.
10924 (yylex): Update.
10925 * f-exp.y: Update rules.
10926 (yylex): Update.
10927 * d-exp.y: Update rules.
10928 (lex_one_token, classify_name, classify_inner_name): Update.
10929 * parse.c (write_dollar_variable, copy_name): Return std::string.
10930 * parser-defs.h (copy_name): Change return type.
10931 * m2-exp.y: Update rules.
10932 (yylex): Update.
10933 * go-exp.y (lex_one_token): Update.
10934 Update rules.
10935 (classify_unsafe_function, classify_packaged_name)
10936 (classify_name, yylex): Update.
10937
189b8c2e
ST
109382019-04-19 Sergei Trofimovich <siarheit@google.com>
10939
10940 * configure.ac: add --enable-source-highlight switch.
10941 * configure: Regenerate.
10942 * top.c (print_gdb_version): plumb --enable-source-highlight
10943 status to "show configuration".
10944
8ecb59f8
TT
109452019-04-19 Tom Tromey <tromey@adacore.com>
10946
10947 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10948 Check ADA_TYPE_P.
10949 (empty_record, ada_template_to_fixed_record_type_1)
10950 (template_to_static_fixed_type)
10951 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10952 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10953 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10954 macros.
10955
62160ec9
TT
109562019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10957
10958 PR symtab/24423:
10959 * source.c (print_source_lines_base): Advance "iter" when a
10960 control character is seen.
10961
f2ae8bc8
PW
109622019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10963
10964 * inferior.h (struct infcall_suspend_state_deleter):
10965 Catch exception in destructor to avoid crash.
10966
d563b953
PW
109672019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10968
10969 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10970 close to the add_com "shell".
10971
dc34c897
TT
109722019-04-18 Tom Tromey <tromey@adacore.com>
10973
10974 * process-stratum-target.h (class process_stratum_target)
10975 <stratum>: Add "final".
10976
a12e5744
TT
109772019-04-17 Tom Tromey <tromey@adacore.com>
10978
10979 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10980 against nullptr before use.
10981
a7e559cc
AH
109822019-04-17 Alan Hayward <alan.hayward@arm.com>
10983
10984 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10985
c01660c6
AB
109862019-04-17 Jim Wilson <jimw@sifive.com>
10987 Andrew Burgess <andrew.burgess@embecosm.com>
10988
10989 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10990 code read might fail, assume 4-byte breakpoint in that case.
10991
4aa866af
LS
109922019-04-15 Leszek Swirski <leszeks@google.com>
10993
10994 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10995 rather than a hand-rolled POD check when checking for forced MEMORY
10996 classification.
10997
48574d91
AH
109982019-04-15 Alan Hayward <alan.hayward@arm.com>
10999
11000 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11001 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11002 function.
11003 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11004 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11005 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11006 declaration.
11007
4da037ef
AH
110082019-04-15 Alan Hayward <alan.hayward@arm.com>
11009
11010 * aarch64-linux-nat.c
11011 (aarch64_linux_nat_target::thread_architecture): Add override.
11012 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11013 each VQ.
11014
ccb8d7e8
AH
110152019-04-15 Alan Hayward <alan.hayward@arm.com>
11016
11017 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11018
35add35e
AB
110192019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11020
11021 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11022 target types of size 96-bits, add some additional comments, and
11023 check that the builtin type we found was the correct size.
11024
51196bbc
EZ
110252019-04-12 Eli Zaretskii <eliz@gnu.org>
11026
11027 * utils.c (prompt_for_continue): Don't restore the styling at the
11028 end, as applied_style has the wrong value. This fixes styling in
11029 long lists of file names that are interrupted by the "Continue?"
11030 prompt.
11031
62253a61
AB
110322019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11033
11034 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11035 * c-lang.c (c_language_defn): Likewise.
11036 (cplus_language_defn): Likewise.
11037 (asm_language_defn): Likewise.
11038 (minimal_language_defn): Likewise.
11039 * d-lang.c (d_language_defn): Likewise.
11040 * f-lang.c (f_language_defn): Likewise.
11041 * go-lang.c (go_language_defn): Likewise.
11042 * language.c (unknown_language_defn): Likewise.
11043 (auto_language_defn): Likewise.
11044 * language.h (struct language_defn): Remove la_magic field.
11045 (LANG_MAGIC): Delete.
11046 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11047 * objc-lang.c (objc_language_defn): Likewise.
11048 * opencl-lang.c (opencl_language_defn): Likewise.
11049 * p-lang.c (pascal_language_defn): Likewise.
11050 * rust-lang.c (rust_language_defn): Likewise.
11051
a9158a86
AB
110522019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11053
11054 * riscv-tdep.c (riscv_type_align): New function.
11055 (riscv_type_alignment): Delete.
11056 (riscv_arg_location): Use 'type_align'.
11057 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11058
41077b66
AB
110592019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11060
11061 * gdbtypes.c (type_align): A struct with no non-static fields also
11062 has alignment of 1.
11063
9f0272f8
AB
110642019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11065
11066 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11067 component to 0.
11068 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11069 member.
11070 (riscv_struct_info::analyse): New implementation using new
11071 analyse_inner member function.
11072 (riscv_struct_info::field_offset): New member function.
11073 (riscv_struct_info::m_offsets): New member variable.
11074 (riscv_struct_info::analyse_inner): New private member function,
11075 takes the old implementation of riscv_struct_info::analyse but
11076 extended to track field offsets.
11077 (riscv_call_arg_struct): Update the struct folding special cases
11078 to handle cases where empty C++ structs, which are non-zero
11079 length, are found.
11080 (riscv_arg_location): Initialise the length of each location, a
11081 non-zero length now indicates the location is in use.
11082 (riscv_push_dummy_call): Allow for the first location having a
11083 non-zero offset when setting up arguments.
11084 (riscv_return_value): Likewise, but for return values.
11085
02cf60c7
TT
110862019-04-11 Tom Tromey <tromey@adacore.com>
11087
11088 * utils.c (internal_vproblem): Make "msg" const.
11089
68811f8f
AH
110902019-04-11 Alan Hayward <alan.hayward@arm.com>
11091
11092 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11093 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11094 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11095 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11096
3f52fdbc
KB
110972019-04-10 Kevin Buettner <kevinb@redhat.com>
11098
11099 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11100 function.
11101 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11102 of amd64_collect_native_gregset.
11103 (amd64_linux_nat_target::store_registers): Likewise.
11104
e9ad22ee
TT
111052019-04-10 Tom Tromey <tom@tromey.com>
11106
11107 * symtab.c (lookup_global_symbol_from_objfile)
11108 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11109 * objfiles.h (class separate_debug_iterator): New.
11110 (class separate_debug_range): New.
11111 (struct objfile) <separate_debug_objfiles>: New method.
11112 (objfile_separate_debug_iterate): Don't declare.
11113 * objfiles.c (separate_debug_iterator::operator++): Rename from
11114 objfile_separate_debug_iterate.
11115 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11116 iterator.
11117 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11118 iterator.
11119
ee371134
TT
111202019-04-10 Tom Tromey <tom@tromey.com>
11121
11122 * symfile.c (reread_symbols): Remove old comment.
11123 * objfiles.c (free_all_objfiles): Fix a typo.
11124
bf227d61
TT
111252019-04-10 Tom Tromey <tom@tromey.com>
11126
11127 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11128 * minsyms.c (lookup_minimal_symbol): Use foreach.
11129 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11130 (lookup_minimal_symbol_solib_trampoline): Likewise.
11131 * symfile.c (reread_symbols): Use foreach.
11132
8dc433a0
TT
111332019-04-09 Ivan Begert <ivanbegert@gmail.com>
11134 Tom Tromey <tromey@adacore.com>
11135
11136 PR rust/24414:
11137 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11138 (rust_lex_int_test): Change "value" to be LONGEST.
11139 (rust_lex_tests): Add test for long integer literal.
11140
9ab8741a
TT
111412019-04-09 Tom Tromey <tromey@adacore.com>
11142
11143 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11144 to bool.
11145 (extended_remote_target::attach): Update.
11146 (remote_target::remote_notice_new_inferior): Update.
11147 (remote_target::add_current_inferior_and_thread): Update.
11148 * inferior.c (exit_inferior_1): Use "false".
11149 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11150
e242fd12
SM
111512019-04-09 Simon Marchi <simon.marchi@efficios.com>
11152
9ca1957f 11153 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11154 the "start" command.
11155
2b0c8b01
KB
111562019-04-08 Kevin Buettner <kevinb@redhat.com>
11157
11158 * python/py-inferior.c (infpy_thread_from_thread_handle):
11159 Adjust comments to reflect renaming of thread_from_thread_handle
11160 to thread_from_handle. Adjust keywords. Fix type error message.
11161 (inferior_object_methods): Add thread_from_handle. Retain
11162 thread_from_thread_handle, but mark it as deprecated.
11163
50a82723
KB
111642019-04-08 Kevin Buettner <kevinb@redhat.com>
11165
11166 * gdbthread.h (find_thread_by_handle): Revise declaration.
11167 * thread.c (find_thread_by_handle): Likewise. Adjust
11168 implementation too.
11169 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11170 support for buffer objects as handles.
11171
cf63b016
KB
111722019-04-08 Kevin Buettner <kevinb@redhat.com>
11173
11174 * python/py-infthread.c (thpy_thread_handle): New function.
11175 (thread_object_methods): Register thpy_thread_handle.
11176
3d6c6204
KB
111772019-04-08 Kevin Buettner <kevinb@redhat.com>
11178
11179 * gdbthread.h (thread_to_thread_handle): Declare.
11180 * thread.c (gdbtypes.h): Include.
11181 (thread_to_thread_handle): New function.
11182
11183 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11184 (target_thread_info_to_thread_handle): Declare.
11185 * target.c (target_thread_info_to_thread_handle): New function.
11186 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11187 * target-delegates.c: Regenerate.
11188
11189 * linux-thread-db.c (class thread_db_target): Add method
11190 thread_info_to_thread_handle.
11191 (thread_db_target::thread_info_to_thread_handle): Define.
11192 * remote.c (class remote_target): Add new method
11193 thread_info_to_thread_handle.
11194 (remote_target::thread_info_to_thread_handle): Define.
11195
56be6ea8
PA
111962019-04-08 Pedro Alves <palves@redhat.com>
11197
11198 * common/common-exceptions.c (throw_exception): Don't create
11199 named object to throw; throw directly.
11200 (throw_it): Likewise. Don't initialize gdb_exception::message
11201 here, with new; pass FMT and AP to the ctor instead.
11202 * common/common-exceptions.h: Include <string>.
11203 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11204 const char *, va_list)): New ctor. Use std::make_shared.
11205 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11206 errors)): Delete.
11207 (gdb_exception_error::gdb_exception_error(enum errors, const char
11208 *, va_list)): New.
11209 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11210 Add assertion.
11211 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11212 errors)): Delete.
11213 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11214 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11215 Add assertion.
11216
eedc3f4f
TT
112172019-04-08 Tom Tromey <tom@tromey.com>
11218
11219 * valops.c (value_rtti_indirect_type): Replace throw_exception
11220 with throw.
11221 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11222 with throw.
11223 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11224 throw.
11225 * target.c (target_translate_tls_address): Replace throw_exception
11226 with throw.
11227 * stack.c (frame_apply_command_count): Replace throw_exception
11228 with throw.
11229 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11230 throw.
11231 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11232 with throw.
11233 * rs6000-tdep.c (rs6000_frame_cache)
11234 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11235 * remote.c: Replace throw_exception with throw.
11236 * record-full.c (record_full_message, record_full_wait_1)
11237 (record_full_restore): Replace throw_exception with throw.
11238 * record-btrace.c:
11239 (get_thread_current_frame_id, record_btrace_start_replaying)
11240 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11241 (cmd_record_btrace_start): Replace throw_exception with throw.
11242 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11243 throw.
11244 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11245 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11246 * linespec.c:
11247 (find_linespec_symbols): Replace throw_exception with throw.
11248 * infrun.c (displaced_step_prepare, resume): Replace
11249 throw_exception with throw.
11250 * infcmd.c (post_create_inferior): Replace throw_exception with
11251 throw.
11252 * inf-loop.c (inferior_event_handler): Replace throw_exception
11253 with throw.
11254 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11255 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11256 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11257 (get_prev_frame_always, get_frame_pc_if_available)
11258 (get_frame_address_in_block_if_available, get_frame_language):
11259 Replace throw_exception with throw.
11260 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11261 throw_exception with throw.
11262 * eval.c (fetch_subexp_value, evaluate_var_value)
11263 (evaluate_funcall, evaluate_subexp_standard): Replace
11264 throw_exception with throw.
11265 * dwarf2loc.c (call_site_find_chain)
11266 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11267 Replace throw_exception with throw.
11268 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11269 with throw.
11270 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11271 throw.
11272 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11273 * completer.c (complete_line_internal): Replace throw_exception
11274 with throw.
11275 * compile/compile-object-run.c (compile_object_run): Replace
11276 throw_exception with throw.
11277 * cli/cli-script.c (process_next_line): Replace throw_exception
11278 with throw.
11279 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11280 (btrace_enable, btrace_maint_update_pt_packets): Replace
11281 throw_exception with throw.
11282 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11283 throw_exception with throw.
11284 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11285 throw_exception with throw.
11286 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11287 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11288 * aarch64-tdep.c (aarch64_make_prologue_cache)
11289 (aarch64_make_stub_cache): Replace throw_exception with throw.
11290
26003a20
TT
112912019-04-08 Tom Tromey <tom@tromey.com>
11292
11293 * common/common-exceptions.c (throw_exception): Rename from
11294 throw_exception_cxx. Remove old copy. Make argument const.
11295 (throw_it): Create and throw exception objects directly.
11296 * common/common-exceptions.h (throw_exception): Make argument
11297 const.
11298 (struct gdb_exception_error): Add constructor.
11299 (struct gdb_exception_quit): Add constructor.
11300
d272eb37
TT
113012019-04-08 Tom Tromey <tom@tromey.com>
11302
11303 * common/common-exceptions.h (exception_rethrow): Don't declare.
11304 (TRY_SJLJ): Update comment.
11305 (TRY, CATCH, END_CATCH): Remove.
11306 * common/common-exceptions.c (exception_rethrow): Remove.
11307
230d2906
TT
113082019-04-08 Tom Tromey <tom@tromey.com>
11309
11310 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11311 Remove.
11312 (gdb_exception_error): Rename from
11313 gdb_exception_RETURN_MASK_ERROR.
11314 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11315 (gdb_quit_bad_alloc): Update.
11316 * aarch64-tdep.c: Update.
11317 * ada-lang.c: Update.
11318 * ada-typeprint.c: Update.
11319 * ada-valprint.c: Update.
11320 * amd64-tdep.c: Update.
11321 * arch-utils.c: Update.
11322 * break-catch-throw.c: Update.
11323 * breakpoint.c: Update.
11324 * btrace.c: Update.
11325 * c-varobj.c: Update.
11326 * cli/cli-cmds.c: Update.
11327 * cli/cli-interp.c: Update.
11328 * cli/cli-script.c: Update.
11329 * common/common-exceptions.c: Update.
11330 * common/new-op.c: Update.
11331 * common/selftest.c: Update.
11332 * compile/compile-c-symbols.c: Update.
11333 * compile/compile-cplus-symbols.c: Update.
11334 * compile/compile-object-load.c: Update.
11335 * compile/compile-object-run.c: Update.
11336 * completer.c: Update.
11337 * corelow.c: Update.
11338 * cp-abi.c: Update.
11339 * cp-support.c: Update.
11340 * cp-valprint.c: Update.
11341 * darwin-nat.c: Update.
11342 * disasm-selftests.c: Update.
11343 * dtrace-probe.c: Update.
11344 * dwarf-index-cache.c: Update.
11345 * dwarf-index-write.c: Update.
11346 * dwarf2-frame-tailcall.c: Update.
11347 * dwarf2-frame.c: Update.
11348 * dwarf2loc.c: Update.
11349 * dwarf2read.c: Update.
11350 * eval.c: Update.
11351 * event-loop.c: Update.
11352 * event-top.c: Update.
11353 * exec.c: Update.
11354 * f-valprint.c: Update.
11355 * fbsd-tdep.c: Update.
11356 * frame-unwind.c: Update.
11357 * frame.c: Update.
11358 * gdbtypes.c: Update.
11359 * gnu-v3-abi.c: Update.
11360 * guile/guile-internal.h: Update.
11361 * guile/scm-block.c: Update.
11362 * guile/scm-breakpoint.c: Update.
11363 * guile/scm-cmd.c: Update.
11364 * guile/scm-disasm.c: Update.
11365 * guile/scm-frame.c: Update.
11366 * guile/scm-lazy-string.c: Update.
11367 * guile/scm-math.c: Update.
11368 * guile/scm-param.c: Update.
11369 * guile/scm-ports.c: Update.
11370 * guile/scm-pretty-print.c: Update.
11371 * guile/scm-symbol.c: Update.
11372 * guile/scm-symtab.c: Update.
11373 * guile/scm-type.c: Update.
11374 * guile/scm-value.c: Update.
11375 * i386-linux-tdep.c: Update.
11376 * i386-tdep.c: Update.
11377 * inf-loop.c: Update.
11378 * infcall.c: Update.
11379 * infcmd.c: Update.
11380 * infrun.c: Update.
11381 * jit.c: Update.
11382 * language.c: Update.
11383 * linespec.c: Update.
11384 * linux-fork.c: Update.
11385 * linux-nat.c: Update.
11386 * linux-tdep.c: Update.
11387 * linux-thread-db.c: Update.
11388 * main.c: Update.
11389 * mi/mi-cmd-break.c: Update.
11390 * mi/mi-cmd-stack.c: Update.
11391 * mi/mi-interp.c: Update.
11392 * mi/mi-main.c: Update.
11393 * objc-lang.c: Update.
11394 * p-valprint.c: Update.
11395 * parse.c: Update.
11396 * ppc-linux-tdep.c: Update.
11397 * printcmd.c: Update.
11398 * python/py-arch.c: Update.
11399 * python/py-breakpoint.c: Update.
11400 * python/py-cmd.c: Update.
11401 * python/py-finishbreakpoint.c: Update.
11402 * python/py-frame.c: Update.
11403 * python/py-framefilter.c: Update.
11404 * python/py-gdb-readline.c: Update.
11405 * python/py-inferior.c: Update.
11406 * python/py-infthread.c: Update.
11407 * python/py-lazy-string.c: Update.
11408 * python/py-linetable.c: Update.
11409 * python/py-objfile.c: Update.
11410 * python/py-param.c: Update.
11411 * python/py-prettyprint.c: Update.
11412 * python/py-progspace.c: Update.
11413 * python/py-record-btrace.c: Update.
11414 * python/py-record.c: Update.
11415 * python/py-symbol.c: Update.
11416 * python/py-type.c: Update.
11417 * python/py-unwind.c: Update.
11418 * python/py-utils.c: Update.
11419 * python/py-value.c: Update.
11420 * python/python.c: Update.
11421 * record-btrace.c: Update.
11422 * record-full.c: Update.
11423 * remote-fileio.c: Update.
11424 * remote.c: Update.
11425 * riscv-tdep.c: Update.
11426 * rs6000-aix-tdep.c: Update.
11427 * rs6000-tdep.c: Update.
11428 * rust-exp.y: Update.
11429 * rust-lang.c: Update.
11430 * s390-tdep.c: Update.
11431 * selftest-arch.c: Update.
11432 * solib-dsbt.c: Update.
11433 * solib-frv.c: Update.
11434 * solib-spu.c: Update.
11435 * solib-svr4.c: Update.
11436 * solib.c: Update.
11437 * sparc64-linux-tdep.c: Update.
11438 * stack.c: Update.
11439 * symfile-mem.c: Update.
11440 * symmisc.c: Update.
11441 * target.c: Update.
11442 * thread.c: Update.
11443 * top.c: Update.
11444 * tracefile-tfile.c: Update.
11445 * tui/tui.c: Update.
11446 * typeprint.c: Update.
11447 * unittests/cli-utils-selftests.c: Update.
11448 * unittests/parse-connection-spec-selftests.c: Update.
11449 * valops.c: Update.
11450 * valprint.c: Update.
11451 * value.c: Update.
11452 * varobj.c: Update.
11453 * windows-nat.c: Update.
11454 * x86-linux-nat.c: Update.
11455 * xml-support.c: Update.
11456
a70b8144
TT
114572019-04-08 Tom Tromey <tom@tromey.com>
11458
11459 * xml-support.c: Use C++ exception handling.
11460 * x86-linux-nat.c: Use C++ exception handling.
11461 * windows-nat.c: Use C++ exception handling.
11462 * varobj.c: Use C++ exception handling.
11463 * value.c: Use C++ exception handling.
11464 * valprint.c: Use C++ exception handling.
11465 * valops.c: Use C++ exception handling.
11466 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11467 handling.
11468 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11469 * typeprint.c: Use C++ exception handling.
11470 * tui/tui.c: Use C++ exception handling.
11471 * tracefile-tfile.c: Use C++ exception handling.
11472 * top.c: Use C++ exception handling.
11473 * thread.c: Use C++ exception handling.
11474 * target.c: Use C++ exception handling.
11475 * symmisc.c: Use C++ exception handling.
11476 * symfile-mem.c: Use C++ exception handling.
11477 * stack.c: Use C++ exception handling.
11478 * sparc64-linux-tdep.c: Use C++ exception handling.
11479 * solib.c: Use C++ exception handling.
11480 * solib-svr4.c: Use C++ exception handling.
11481 * solib-spu.c: Use C++ exception handling.
11482 * solib-frv.c: Use C++ exception handling.
11483 * solib-dsbt.c: Use C++ exception handling.
11484 * selftest-arch.c: Use C++ exception handling.
11485 * s390-tdep.c: Use C++ exception handling.
11486 * rust-lang.c: Use C++ exception handling.
11487 * rust-exp.y: Use C++ exception handling.
11488 * rs6000-tdep.c: Use C++ exception handling.
11489 * rs6000-aix-tdep.c: Use C++ exception handling.
11490 * riscv-tdep.c: Use C++ exception handling.
11491 * remote.c: Use C++ exception handling.
11492 * remote-fileio.c: Use C++ exception handling.
11493 * record-full.c: Use C++ exception handling.
11494 * record-btrace.c: Use C++ exception handling.
11495 * python/python.c: Use C++ exception handling.
11496 * python/py-value.c: Use C++ exception handling.
11497 * python/py-utils.c: Use C++ exception handling.
11498 * python/py-unwind.c: Use C++ exception handling.
11499 * python/py-type.c: Use C++ exception handling.
11500 * python/py-symbol.c: Use C++ exception handling.
11501 * python/py-record.c: Use C++ exception handling.
11502 * python/py-record-btrace.c: Use C++ exception handling.
11503 * python/py-progspace.c: Use C++ exception handling.
11504 * python/py-prettyprint.c: Use C++ exception handling.
11505 * python/py-param.c: Use C++ exception handling.
11506 * python/py-objfile.c: Use C++ exception handling.
11507 * python/py-linetable.c: Use C++ exception handling.
11508 * python/py-lazy-string.c: Use C++ exception handling.
11509 * python/py-infthread.c: Use C++ exception handling.
11510 * python/py-inferior.c: Use C++ exception handling.
11511 * python/py-gdb-readline.c: Use C++ exception handling.
11512 * python/py-framefilter.c: Use C++ exception handling.
11513 * python/py-frame.c: Use C++ exception handling.
11514 * python/py-finishbreakpoint.c: Use C++ exception handling.
11515 * python/py-cmd.c: Use C++ exception handling.
11516 * python/py-breakpoint.c: Use C++ exception handling.
11517 * python/py-arch.c: Use C++ exception handling.
11518 * printcmd.c: Use C++ exception handling.
11519 * ppc-linux-tdep.c: Use C++ exception handling.
11520 * parse.c: Use C++ exception handling.
11521 * p-valprint.c: Use C++ exception handling.
11522 * objc-lang.c: Use C++ exception handling.
11523 * mi/mi-main.c: Use C++ exception handling.
11524 * mi/mi-interp.c: Use C++ exception handling.
11525 * mi/mi-cmd-stack.c: Use C++ exception handling.
11526 * mi/mi-cmd-break.c: Use C++ exception handling.
11527 * main.c: Use C++ exception handling.
11528 * linux-thread-db.c: Use C++ exception handling.
11529 * linux-tdep.c: Use C++ exception handling.
11530 * linux-nat.c: Use C++ exception handling.
11531 * linux-fork.c: Use C++ exception handling.
11532 * linespec.c: Use C++ exception handling.
11533 * language.c: Use C++ exception handling.
11534 * jit.c: Use C++ exception handling.
11535 * infrun.c: Use C++ exception handling.
11536 * infcmd.c: Use C++ exception handling.
11537 * infcall.c: Use C++ exception handling.
11538 * inf-loop.c: Use C++ exception handling.
11539 * i386-tdep.c: Use C++ exception handling.
11540 * i386-linux-tdep.c: Use C++ exception handling.
11541 * guile/scm-value.c: Use C++ exception handling.
11542 * guile/scm-type.c: Use C++ exception handling.
11543 * guile/scm-symtab.c: Use C++ exception handling.
11544 * guile/scm-symbol.c: Use C++ exception handling.
11545 * guile/scm-pretty-print.c: Use C++ exception handling.
11546 * guile/scm-ports.c: Use C++ exception handling.
11547 * guile/scm-param.c: Use C++ exception handling.
11548 * guile/scm-math.c: Use C++ exception handling.
11549 * guile/scm-lazy-string.c: Use C++ exception handling.
11550 * guile/scm-frame.c: Use C++ exception handling.
11551 * guile/scm-disasm.c: Use C++ exception handling.
11552 * guile/scm-cmd.c: Use C++ exception handling.
11553 * guile/scm-breakpoint.c: Use C++ exception handling.
11554 * guile/scm-block.c: Use C++ exception handling.
11555 * guile/guile-internal.h: Use C++ exception handling.
11556 * gnu-v3-abi.c: Use C++ exception handling.
11557 * gdbtypes.c: Use C++ exception handling.
11558 * frame.c: Use C++ exception handling.
11559 * frame-unwind.c: Use C++ exception handling.
11560 * fbsd-tdep.c: Use C++ exception handling.
11561 * f-valprint.c: Use C++ exception handling.
11562 * exec.c: Use C++ exception handling.
11563 * event-top.c: Use C++ exception handling.
11564 * event-loop.c: Use C++ exception handling.
11565 * eval.c: Use C++ exception handling.
11566 * dwarf2read.c: Use C++ exception handling.
11567 * dwarf2loc.c: Use C++ exception handling.
11568 * dwarf2-frame.c: Use C++ exception handling.
11569 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11570 * dwarf-index-write.c: Use C++ exception handling.
11571 * dwarf-index-cache.c: Use C++ exception handling.
11572 * dtrace-probe.c: Use C++ exception handling.
11573 * disasm-selftests.c: Use C++ exception handling.
11574 * darwin-nat.c: Use C++ exception handling.
11575 * cp-valprint.c: Use C++ exception handling.
11576 * cp-support.c: Use C++ exception handling.
11577 * cp-abi.c: Use C++ exception handling.
11578 * corelow.c: Use C++ exception handling.
11579 * completer.c: Use C++ exception handling.
11580 * compile/compile-object-run.c: Use C++ exception handling.
11581 * compile/compile-object-load.c: Use C++ exception handling.
11582 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11583 * compile/compile-c-symbols.c: Use C++ exception handling.
11584 * common/selftest.c: Use C++ exception handling.
11585 * common/new-op.c: Use C++ exception handling.
11586 * cli/cli-script.c: Use C++ exception handling.
11587 * cli/cli-interp.c: Use C++ exception handling.
11588 * cli/cli-cmds.c: Use C++ exception handling.
11589 * c-varobj.c: Use C++ exception handling.
11590 * btrace.c: Use C++ exception handling.
11591 * breakpoint.c: Use C++ exception handling.
11592 * break-catch-throw.c: Use C++ exception handling.
11593 * arch-utils.c: Use C++ exception handling.
11594 * amd64-tdep.c: Use C++ exception handling.
11595 * ada-valprint.c: Use C++ exception handling.
11596 * ada-typeprint.c: Use C++ exception handling.
11597 * ada-lang.c: Use C++ exception handling.
11598 * aarch64-tdep.c: Use C++ exception handling.
11599
3d6e9d23
TT
116002019-04-08 Tom Tromey <tom@tromey.com>
11601
11602 * xml-support.c (gdb_xml_parser::parse): Update.
11603 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11604 * value.c (show_convenience): Update.
11605 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11606 (test_parse_flags_qcs): Update.
11607 * thread.c (thr_try_catch_cmd): Update.
11608 * target.c (target_translate_tls_address): Update.
11609 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11610 (info_frame_command_core, frame_apply_command_count): Update.
11611 * rust-exp.y (rust_lex_exception_test): Update.
11612 * riscv-tdep.c (riscv_print_one_register_info): Update.
11613 * remote.c (remote_target::enable_btrace): Update.
11614 * record-btrace.c (record_btrace_enable_warn): Update.
11615 * python/py-utils.c (gdbpy_convert_exception): Update.
11616 * printcmd.c (do_one_display, print_variable_and_value): Update.
11617 * mi/mi-main.c (mi_print_exception): Update.
11618 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11619 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11620 * linux-nat.c (linux_nat_target::attach): Update.
11621 * linux-fork.c (class scoped_switch_fork_info): Update.
11622 * infrun.c (displaced_step_prepare): Update.
11623 * infcall.c (call_function_by_hand_dummy): Update.
11624 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11625 * gnu-v3-abi.c (print_one_vtable): Update.
11626 * frame.c (get_prev_frame_always): Update.
11627 * f-valprint.c (info_common_command_for_block): Update.
11628 * exec.c (try_open_exec_file): Update.
11629 * exceptions.c (print_exception, exception_print)
11630 (exception_fprintf, exception_print_same): Update.
11631 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11632 * dwarf-index-cache.c (index_cache::store)
11633 (index_cache::lookup_gdb_index): Update.
11634 * darwin-nat.c (maybe_cache_shell): Update.
11635 * cp-valprint.c (cp_print_value_fields): Update.
11636 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11637 (gcc_cplus_symbol_address): Update.
11638 * compile/compile-c-symbols.c (gcc_convert_symbol)
11639 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11640 * common/selftest.c: Update.
11641 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11642 a std::string.
11643 (exception_try_scope_entry, exception_try_scope_exit): Don't
11644 declare.
11645 (struct exception_try_scope): Remove.
11646 (TRY): Don't use exception_try_scope.
11647 (struct gdb_exception): Add constructor, operator=.
11648 <what>: New method.
11649 (struct gdb_exception_RETURN_MASK_ALL)
11650 (struct gdb_exception_RETURN_MASK_ERROR)
11651 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11652 (struct gdb_quit_bad_alloc): Update.
11653 * common/common-exceptions.c (exception_none): Change
11654 initializer.
11655 (struct catcher) <state, exception>: Initialize inline.
11656 <prev>: Remove member.
11657 (current_catcher): Remove.
11658 (catchers): New global.
11659 (exceptions_state_mc_init): Simplify.
11660 (catcher_pop): Remove.
11661 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11662 (try_scope_depth, exception_try_scope_entry)
11663 (exception_try_scope_exit): Remove.
11664 (throw_exception_sjlj): Update.
11665 (exception_messages, exception_messages_size): Remove.
11666 (throw_it): Simplify.
11667 (gdb_exception_sliced_copy): Remove.
11668 (throw_exception_cxx): Update.
11669 * cli/cli-script.c (script_from_file): Update.
11670 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11671 Update.
11672 * ada-valprint.c (ada_val_print): Update.
11673 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11674 (create_excep_cond_exprs): Update.
11675
c5c10118
TT
116762019-04-08 Tom Tromey <tom@tromey.com>
11677
11678 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11679 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11680 (TRY, CATCH, END_CATCH): Remove some definitions.
11681 * common/common-exceptions.c: Don't use GDB_XCPT.
11682 (catcher_list_size): Remove.
11683 (throw_exception, throw_it): Simplify.
11684
4de283e4
TT
116852019-04-05 Tom Tromey <tom@tromey.com>
11686
11687 Revert the header-sorting patch.
11688 * ft32-tdep.c: Revert.
11689 * frv-tdep.c: Revert.
11690 * frv-linux-tdep.c: Revert.
11691 * frame.c: Revert.
11692 * frame-unwind.c: Revert.
11693 * frame-base.c: Revert.
11694 * fork-child.c: Revert.
11695 * findvar.c: Revert.
11696 * findcmd.c: Revert.
11697 * filesystem.c: Revert.
11698 * filename-seen-cache.h: Revert.
11699 * filename-seen-cache.c: Revert.
11700 * fbsd-tdep.c: Revert.
11701 * fbsd-nat.h: Revert.
11702 * fbsd-nat.c: Revert.
11703 * f-valprint.c: Revert.
11704 * f-typeprint.c: Revert.
11705 * f-lang.c: Revert.
11706 * extension.h: Revert.
11707 * extension.c: Revert.
11708 * extension-priv.h: Revert.
11709 * expprint.c: Revert.
11710 * exec.h: Revert.
11711 * exec.c: Revert.
11712 * exceptions.c: Revert.
11713 * event-top.c: Revert.
11714 * event-loop.c: Revert.
11715 * eval.c: Revert.
11716 * elfread.c: Revert.
11717 * dwarf2read.h: Revert.
11718 * dwarf2read.c: Revert.
11719 * dwarf2loc.c: Revert.
11720 * dwarf2expr.h: Revert.
11721 * dwarf2expr.c: Revert.
11722 * dwarf2-frame.c: Revert.
11723 * dwarf2-frame-tailcall.c: Revert.
11724 * dwarf-index-write.h: Revert.
11725 * dwarf-index-write.c: Revert.
11726 * dwarf-index-common.c: Revert.
11727 * dwarf-index-cache.h: Revert.
11728 * dwarf-index-cache.c: Revert.
11729 * dummy-frame.c: Revert.
11730 * dtrace-probe.c: Revert.
11731 * disasm.h: Revert.
11732 * disasm.c: Revert.
11733 * disasm-selftests.c: Revert.
11734 * dictionary.c: Revert.
11735 * dicos-tdep.c: Revert.
11736 * demangle.c: Revert.
11737 * dcache.h: Revert.
11738 * dcache.c: Revert.
11739 * darwin-nat.h: Revert.
11740 * darwin-nat.c: Revert.
11741 * darwin-nat-info.c: Revert.
11742 * d-valprint.c: Revert.
11743 * d-namespace.c: Revert.
11744 * d-lang.c: Revert.
11745 * ctf.c: Revert.
11746 * csky-tdep.c: Revert.
11747 * csky-linux-tdep.c: Revert.
11748 * cris-tdep.c: Revert.
11749 * cris-linux-tdep.c: Revert.
11750 * cp-valprint.c: Revert.
11751 * cp-support.c: Revert.
11752 * cp-namespace.c: Revert.
11753 * cp-abi.c: Revert.
11754 * corelow.c: Revert.
11755 * corefile.c: Revert.
11756 * continuations.c: Revert.
11757 * completer.h: Revert.
11758 * completer.c: Revert.
11759 * complaints.c: Revert.
11760 * coffread.c: Revert.
11761 * coff-pe-read.c: Revert.
11762 * cli-out.h: Revert.
11763 * cli-out.c: Revert.
11764 * charset.c: Revert.
11765 * c-varobj.c: Revert.
11766 * c-valprint.c: Revert.
11767 * c-typeprint.c: Revert.
11768 * c-lang.c: Revert.
11769 * buildsym.c: Revert.
11770 * buildsym-legacy.c: Revert.
11771 * build-id.h: Revert.
11772 * build-id.c: Revert.
11773 * btrace.c: Revert.
11774 * bsd-uthread.c: Revert.
11775 * breakpoint.h: Revert.
11776 * breakpoint.c: Revert.
11777 * break-catch-throw.c: Revert.
11778 * break-catch-syscall.c: Revert.
11779 * break-catch-sig.c: Revert.
11780 * blockframe.c: Revert.
11781 * block.c: Revert.
11782 * bfin-tdep.c: Revert.
11783 * bfin-linux-tdep.c: Revert.
11784 * bfd-target.c: Revert.
11785 * bcache.c: Revert.
11786 * ax-general.c: Revert.
11787 * ax-gdb.h: Revert.
11788 * ax-gdb.c: Revert.
11789 * avr-tdep.c: Revert.
11790 * auxv.c: Revert.
11791 * auto-load.c: Revert.
11792 * arm-wince-tdep.c: Revert.
11793 * arm-tdep.c: Revert.
11794 * arm-symbian-tdep.c: Revert.
11795 * arm-pikeos-tdep.c: Revert.
11796 * arm-obsd-tdep.c: Revert.
11797 * arm-nbsd-tdep.c: Revert.
11798 * arm-nbsd-nat.c: Revert.
11799 * arm-linux-tdep.c: Revert.
11800 * arm-linux-nat.c: Revert.
11801 * arm-fbsd-tdep.c: Revert.
11802 * arm-fbsd-nat.c: Revert.
11803 * arm-bsd-tdep.c: Revert.
11804 * arch-utils.c: Revert.
11805 * arc-tdep.c: Revert.
11806 * arc-newlib-tdep.c: Revert.
11807 * annotate.h: Revert.
11808 * annotate.c: Revert.
11809 * amd64-windows-tdep.c: Revert.
11810 * amd64-windows-nat.c: Revert.
11811 * amd64-tdep.c: Revert.
11812 * amd64-sol2-tdep.c: Revert.
11813 * amd64-obsd-tdep.c: Revert.
11814 * amd64-obsd-nat.c: Revert.
11815 * amd64-nbsd-tdep.c: Revert.
11816 * amd64-nbsd-nat.c: Revert.
11817 * amd64-nat.c: Revert.
11818 * amd64-linux-tdep.c: Revert.
11819 * amd64-linux-nat.c: Revert.
11820 * amd64-fbsd-tdep.c: Revert.
11821 * amd64-fbsd-nat.c: Revert.
11822 * amd64-dicos-tdep.c: Revert.
11823 * amd64-darwin-tdep.c: Revert.
11824 * amd64-bsd-nat.c: Revert.
11825 * alpha-tdep.c: Revert.
11826 * alpha-obsd-tdep.c: Revert.
11827 * alpha-nbsd-tdep.c: Revert.
11828 * alpha-mdebug-tdep.c: Revert.
11829 * alpha-linux-tdep.c: Revert.
11830 * alpha-linux-nat.c: Revert.
11831 * alpha-bsd-tdep.c: Revert.
11832 * alpha-bsd-nat.c: Revert.
11833 * aix-thread.c: Revert.
11834 * agent.c: Revert.
11835 * addrmap.c: Revert.
11836 * ada-varobj.c: Revert.
11837 * ada-valprint.c: Revert.
11838 * ada-typeprint.c: Revert.
11839 * ada-tasks.c: Revert.
11840 * ada-lang.c: Revert.
11841 * aarch64-tdep.c: Revert.
11842 * aarch64-ravenscar-thread.c: Revert.
11843 * aarch64-newlib-tdep.c: Revert.
11844 * aarch64-linux-tdep.c: Revert.
11845 * aarch64-linux-nat.c: Revert.
11846 * aarch64-fbsd-tdep.c: Revert.
11847 * aarch64-fbsd-nat.c: Revert.
11848 * aarch32-linux-nat.c: Revert.
11849
d55e5aa6
TT
118502019-04-05 Tom Tromey <tom@tromey.com>
11851
11852 * ft32-tdep.c: Sort headers.
11853 * frv-tdep.c: Sort headers.
11854 * frv-linux-tdep.c: Sort headers.
11855 * frame.c: Sort headers.
11856 * frame-unwind.c: Sort headers.
11857 * frame-base.c: Sort headers.
11858 * fork-child.c: Sort headers.
11859 * findvar.c: Sort headers.
11860 * findcmd.c: Sort headers.
11861 * filesystem.c: Sort headers.
11862 * filename-seen-cache.h: Sort headers.
11863 * filename-seen-cache.c: Sort headers.
11864 * fbsd-tdep.c: Sort headers.
11865 * fbsd-nat.h: Sort headers.
11866 * fbsd-nat.c: Sort headers.
11867 * f-valprint.c: Sort headers.
11868 * f-typeprint.c: Sort headers.
11869 * f-lang.c: Sort headers.
11870 * extension.h: Sort headers.
11871 * extension.c: Sort headers.
11872 * extension-priv.h: Sort headers.
11873 * expprint.c: Sort headers.
11874 * exec.h: Sort headers.
11875 * exec.c: Sort headers.
11876 * exceptions.c: Sort headers.
11877 * event-top.c: Sort headers.
11878 * event-loop.c: Sort headers.
11879 * eval.c: Sort headers.
11880 * elfread.c: Sort headers.
11881 * dwarf2read.h: Sort headers.
11882 * dwarf2read.c: Sort headers.
11883 * dwarf2loc.c: Sort headers.
11884 * dwarf2expr.h: Sort headers.
11885 * dwarf2expr.c: Sort headers.
11886 * dwarf2-frame.c: Sort headers.
11887 * dwarf2-frame-tailcall.c: Sort headers.
11888 * dwarf-index-write.h: Sort headers.
11889 * dwarf-index-write.c: Sort headers.
11890 * dwarf-index-common.c: Sort headers.
11891 * dwarf-index-cache.h: Sort headers.
11892 * dwarf-index-cache.c: Sort headers.
11893 * dummy-frame.c: Sort headers.
11894 * dtrace-probe.c: Sort headers.
11895 * disasm.h: Sort headers.
11896 * disasm.c: Sort headers.
11897 * disasm-selftests.c: Sort headers.
11898 * dictionary.c: Sort headers.
11899 * dicos-tdep.c: Sort headers.
11900 * demangle.c: Sort headers.
11901 * dcache.h: Sort headers.
11902 * dcache.c: Sort headers.
11903 * darwin-nat.h: Sort headers.
11904 * darwin-nat.c: Sort headers.
11905 * darwin-nat-info.c: Sort headers.
11906 * d-valprint.c: Sort headers.
11907 * d-namespace.c: Sort headers.
11908 * d-lang.c: Sort headers.
11909 * ctf.c: Sort headers.
11910 * csky-tdep.c: Sort headers.
11911 * csky-linux-tdep.c: Sort headers.
11912 * cris-tdep.c: Sort headers.
11913 * cris-linux-tdep.c: Sort headers.
11914 * cp-valprint.c: Sort headers.
11915 * cp-support.c: Sort headers.
11916 * cp-namespace.c: Sort headers.
11917 * cp-abi.c: Sort headers.
11918 * corelow.c: Sort headers.
11919 * corefile.c: Sort headers.
11920 * continuations.c: Sort headers.
11921 * completer.h: Sort headers.
11922 * completer.c: Sort headers.
11923 * complaints.c: Sort headers.
11924 * coffread.c: Sort headers.
11925 * coff-pe-read.c: Sort headers.
11926 * cli-out.h: Sort headers.
11927 * cli-out.c: Sort headers.
11928 * charset.c: Sort headers.
11929 * c-varobj.c: Sort headers.
11930 * c-valprint.c: Sort headers.
11931 * c-typeprint.c: Sort headers.
11932 * c-lang.c: Sort headers.
11933 * buildsym.c: Sort headers.
11934 * buildsym-legacy.c: Sort headers.
11935 * build-id.h: Sort headers.
11936 * build-id.c: Sort headers.
11937 * btrace.c: Sort headers.
11938 * bsd-uthread.c: Sort headers.
11939 * breakpoint.h: Sort headers.
11940 * breakpoint.c: Sort headers.
11941 * break-catch-throw.c: Sort headers.
11942 * break-catch-syscall.c: Sort headers.
11943 * break-catch-sig.c: Sort headers.
11944 * blockframe.c: Sort headers.
11945 * block.c: Sort headers.
11946 * bfin-tdep.c: Sort headers.
11947 * bfin-linux-tdep.c: Sort headers.
11948 * bfd-target.c: Sort headers.
11949 * bcache.c: Sort headers.
11950 * ax-general.c: Sort headers.
11951 * ax-gdb.h: Sort headers.
11952 * ax-gdb.c: Sort headers.
11953 * avr-tdep.c: Sort headers.
11954 * auxv.c: Sort headers.
11955 * auto-load.c: Sort headers.
11956 * arm-wince-tdep.c: Sort headers.
11957 * arm-tdep.c: Sort headers.
11958 * arm-symbian-tdep.c: Sort headers.
11959 * arm-pikeos-tdep.c: Sort headers.
11960 * arm-obsd-tdep.c: Sort headers.
11961 * arm-nbsd-tdep.c: Sort headers.
11962 * arm-nbsd-nat.c: Sort headers.
11963 * arm-linux-tdep.c: Sort headers.
11964 * arm-linux-nat.c: Sort headers.
11965 * arm-fbsd-tdep.c: Sort headers.
11966 * arm-fbsd-nat.c: Sort headers.
11967 * arm-bsd-tdep.c: Sort headers.
11968 * arch-utils.c: Sort headers.
11969 * arc-tdep.c: Sort headers.
11970 * arc-newlib-tdep.c: Sort headers.
11971 * annotate.h: Sort headers.
11972 * annotate.c: Sort headers.
11973 * amd64-windows-tdep.c: Sort headers.
11974 * amd64-windows-nat.c: Sort headers.
11975 * amd64-tdep.c: Sort headers.
11976 * amd64-sol2-tdep.c: Sort headers.
11977 * amd64-obsd-tdep.c: Sort headers.
11978 * amd64-obsd-nat.c: Sort headers.
11979 * amd64-nbsd-tdep.c: Sort headers.
11980 * amd64-nbsd-nat.c: Sort headers.
11981 * amd64-nat.c: Sort headers.
11982 * amd64-linux-tdep.c: Sort headers.
11983 * amd64-linux-nat.c: Sort headers.
11984 * amd64-fbsd-tdep.c: Sort headers.
11985 * amd64-fbsd-nat.c: Sort headers.
11986 * amd64-dicos-tdep.c: Sort headers.
11987 * amd64-darwin-tdep.c: Sort headers.
11988 * amd64-bsd-nat.c: Sort headers.
11989 * alpha-tdep.c: Sort headers.
11990 * alpha-obsd-tdep.c: Sort headers.
11991 * alpha-nbsd-tdep.c: Sort headers.
11992 * alpha-mdebug-tdep.c: Sort headers.
11993 * alpha-linux-tdep.c: Sort headers.
11994 * alpha-linux-nat.c: Sort headers.
11995 * alpha-bsd-tdep.c: Sort headers.
11996 * alpha-bsd-nat.c: Sort headers.
11997 * aix-thread.c: Sort headers.
11998 * agent.c: Sort headers.
11999 * addrmap.c: Sort headers.
12000 * ada-varobj.c: Sort headers.
12001 * ada-valprint.c: Sort headers.
12002 * ada-typeprint.c: Sort headers.
12003 * ada-tasks.c: Sort headers.
12004 * ada-lang.c: Sort headers.
12005 * aarch64-tdep.c: Sort headers.
12006 * aarch64-ravenscar-thread.c: Sort headers.
12007 * aarch64-newlib-tdep.c: Sort headers.
12008 * aarch64-linux-tdep.c: Sort headers.
12009 * aarch64-linux-nat.c: Sort headers.
12010 * aarch64-fbsd-tdep.c: Sort headers.
12011 * aarch64-fbsd-nat.c: Sort headers.
12012 * aarch32-linux-nat.c: Sort headers.
12013
699bd4cf
TT
120142019-04-04 Tom Tromey <tom@tromey.com>
12015
12016 * varobj.c (varobj_create): Update.
12017 * rust-exp.y (struct rust_parser) <update_innermost_block,
12018 lookup_symbol>: New methods.
12019 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12020 Rename.
12021 (rust_parser::rust_lookup_type)
12022 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12023 * printcmd.c (display_command, do_one_display): Update.
12024 * parser-defs.h (struct parser_state) <parser_state>: Add
12025 "tracker" parameter.
12026 (block_tracker): New member.
12027 (class innermost_block_tracker) <innermost_block_tracker>: Add
12028 "types" parameter.
12029 <reset>: Remove method.
12030 (innermost_block): Don't declare.
12031 (null_post_parser): Update.
12032 * parse.c (innermost_block): Remove global.
12033 (write_dollar_variable): Update.
12034 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12035 Remove "tracker_types" parameter.
12036 (parse_expression): Add "tracker" parameter.
12037 (parse_expression_for_completion): Update.
12038 (null_post_parser): Add "tracker" parameter.
12039 * p-exp.y: Update rules.
12040 * m2-exp.y: Update rules.
12041 * language.h (struct language_defn) <la_post_parser>: Add
12042 "tracker" parameter.
12043 * go-exp.y: Update rules.
12044 * f-exp.y: Update rules.
12045 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12046 parameter.
12047 * d-exp.y: Update rules.
12048 * c-exp.y: Update rules.
12049 * breakpoint.c (set_breakpoint_condition): Create an
12050 innermost_block_tracker.
12051 (watch_command_1): Likewise.
12052 * ada-lang.c (resolve): Add "tracker" parameter.
12053 (resolve_subexp): Likewise.
12054 * ada-exp.y (write_var_from_sym): Update.
12055
dac43e32
TT
120562019-04-04 Tom Tromey <tom@tromey.com>
12057
12058 * type-stack.h: New file.
12059 * type-stack.c: New file.
12060 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12061 type-stack.h.
12062 (insert_into_type_stack, insert_type, push_type, push_type_int)
12063 (insert_type_address_space, pop_type, pop_type_int)
12064 (pop_typelist, pop_type_stack, append_type_stack)
12065 (push_type_stack, get_type_stack, push_typelist)
12066 (follow_type_instance_flags, follow_types): Don't declare.
12067 * parse.c (type_stack): Remove global.
12068 (parse_exp_in_context): Update.
12069 (insert_into_type_stack, insert_type, push_type, push_type_int)
12070 (insert_type_address_space, pop_type, pop_type_int)
12071 (pop_typelist, pop_type_stack, append_type_stack)
12072 (push_type_stack, get_type_stack, push_typelist)
12073 (follow_type_instance_flags, follow_types): Remove (moved to
12074 type-stack.c).
12075 * f-exp.y (type_stack): New global.
12076 Update rules.
12077 (push_kind_type, f_parse): Update.
12078 * d-exp.y (type_stack): New global.
12079 Update rules.
12080 (d_parse): Update.
12081 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12082 Update rules.
12083 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12084 (HFILES_NO_SRCDIR): Add type-stack.h.
12085
2a612529
TT
120862019-04-04 Tom Tromey <tom@tromey.com>
12087
12088 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12089 (rust_parser::convert_ast_to_expression, rust_parse)
12090 (rust_lex_test_completion, rust_lex_tests): Update.
12091 * parser-defs.h (struct expr_completion_state): New.
12092 (struct parser_state) <parser_state>: Add completion parameter.
12093 <mark_struct_expression, mark_completion_tag>: New methods.
12094 <parse_completion, m_completion_state>: New members.
12095 (prefixify_expression, null_post_parser): Update.
12096 (mark_struct_expression, mark_completion_tag): Don't declare.
12097 * parse.c (parse_completion, expout_last_struct)
12098 (expout_tag_completion_type, expout_completion_name): Remove
12099 globals.
12100 (parser_state::mark_struct_expression)
12101 (parser_state::mark_completion_tag): Now methods.
12102 (prefixify_expression): Add last_struct parameter.
12103 (prefixify_subexp): Likewise.
12104 (parse_exp_1): Update.
12105 (parse_exp_in_context): Add cstate parameter. Update.
12106 (parse_expression_for_completion): Create an
12107 expr_completion_state.
12108 (null_post_parser): Add "completion" parameter.
12109 * p-exp.y: Update rules.
12110 (yylex): Update.
12111 * language.h (struct language_defn) <la_post_parser>: Add
12112 "completing" parameter.
12113 * go-exp.y: Update rules.
12114 (lex_one_token): Update.
12115 * expression.h (parse_completion): Don't declare.
12116 * d-exp.y: Update rules.
12117 (lex_one_token): Update rules.
12118 * c-exp.y: Update rules.
12119 (lex_one_token): Update.
12120 * ada-lang.c (resolve): Add "parse_completion" parameter.
12121 (resolve_subexp): Likewise.
12122 (ada_resolve_function): Likewise.
12123
43476f0b
TT
121242019-04-04 Tom Tromey <tom@tromey.com>
12125
12126 * parser-defs.h (struct parser_state) <start_arglist,
12127 end_arglist>: New methods.
12128 <arglist_len, m_funcall_chain>: New members.
12129 (arglist_len, start_arglist, end_arglist): Don't declare.
12130 * parse.c (arglist_len, funcall_chain): Remove global.
12131 (start_arglist, end_arglist): Remove functions.
12132 (parse_exp_in_context): Update.
12133 * p-exp.y: Update rules.
12134 * m2-exp.y: Update rules.
12135 * go-exp.y: Update rules.
12136 * f-exp.y: Update rules.
12137 * d-exp.y: Update rules.
12138 * c-exp.y: Update rules.
12139
5776fca3
TT
121402019-04-04 Tom Tromey <tom@tromey.com>
12141
12142 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12143 lex_operator, push_back>: New methods.
12144 Update all rules.
12145 (rust_parser::lex_hex, lex_escape): Rename and update.
12146 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12147 (rust_parser::lex_operator): Rename and update.
12148 (rust_parser::lex_number, rustyylex, rustyyerror)
12149 (rust_lex_test_init, rust_lex_test_sequence)
12150 (rust_lex_test_push_back, rust_lex_tests): Update.
12151 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12152 parameter.
12153 <lexptr, prev_lexptr>: New members.
12154 (lexptr, prev_lexptr): Don't declare.
12155 * parse.c (lexptr, prev_lexptr): Remove globals.
12156 (parse_exp_in_context): Update.
12157 * p-exp.y (yylex, yyerror): Update.
12158 * m2-exp.y (parse_number, yylex, yyerror): Update.
12159 * go-exp.y (lex_one_token, yyerror): Update.
12160 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12161 * d-exp.y (lex_one_token, yyerror): Update.
12162 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12163 (lex_one_token, yyerror): Update.
12164 * ada-lex.l (YY_INPUT): Update.
12165 (rewind_to_char): Update.
12166 * ada-exp.y (yyerror): Update.
12167
8621b685
TT
121682019-04-04 Tom Tromey <tom@tromey.com>
12169
12170 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12171 * parser-defs.h (struct parser_state) <parser_state>: Add new
12172 parameter.
12173 <comma_terminates>: New member.
12174 (comma_terminates): Don't declare global.
12175 * parse.c (comma_terminates): Remove global.
12176 (parse_exp_in_context): Update.
12177 * p-exp.y (yylex): Update.
12178 * m2-exp.y (yylex): Update.
12179 * go-exp.y (lex_one_token): Update.
12180 * f-exp.y (yylex): Update.
12181 * d-exp.y (lex_one_token): Update.
12182 * c-exp.y (lex_one_token): Update.
12183 * ada-lex.l: Update.
12184
28aaf3fd
TT
121852019-04-04 Tom Tromey <tom@tromey.com>
12186
12187 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12188 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12189 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12190 * parser-defs.h (paren_depth): Don't declare.
12191 * parse.c (paren_depth): Remove global.
12192 (parse_exp_in_context): Update.
12193 * p-exp.y (paren_depth): New global.
12194 (pascal_parse): Initialize it.
12195 * m2-exp.y (paren_depth): New global.
12196 (m2_parse): Initialize it.
12197 * go-exp.y (paren_depth): New global.
12198 (go_parse): Initialize it.
12199 * f-exp.y (paren_depth): New global.
12200 (f_parse): Initialize it.
12201 * d-exp.y (paren_depth): New global.
12202 (d_parse): Initialize it.
12203 * c-exp.y (paren_depth): New global.
12204 (c_parse): Initialize it.
12205 * ada-lex.l (paren_depth): New global.
12206 (lexer_init): Initialize it.
12207
1e58a4a4
TT
122082019-04-04 Tom Tromey <tom@tromey.com>
12209
12210 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12211 (rust_parser::convert_ast_to_type)
12212 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12213 * parser-defs.h (struct parser_state) <parser_state>: Add
12214 parameters. Initialize new members.
12215 <expression_context_block, expression_context_pc>: New members.
12216 * parse.c (expression_context_block, expression_context_pc):
12217 Remove globals.
12218 (parse_exp_in_context): Update.
12219 * p-exp.y: Update all rules.
12220 (yylex): Update.
12221 * m2-exp.y: Update all rules.
12222 (yylex): Update.
12223 * go-exp.y (yylex): Update.
12224 * f-exp.y (yylex): Update.
12225 * d-exp.y: Update all rules.
12226 (yylex): Update.
12227 * c-exp.y: Update all rules.
12228 (lex_one_token, classify_name, yylex, c_parse): Update.
12229 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12230
37eedb39
TT
122312019-04-04 Tom Tromey <tom@tromey.com>
12232
12233 * gdbarch.h, gdbarch.c: Rebuild.
12234 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12235 * stap-probe.h:
12236 (struct stap_parse_info): Replace "parser_state" with
12237 "expr_builder".
12238 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12239 (parser_state): New class.
12240 * parse.c (expr_builder): Rename.
12241 (expr_builder::release): Rename.
12242 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12243 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12244 (write_exp_elt_longcst, write_exp_elt_floatcst)
12245 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12246 (write_exp_string_vector, write_exp_bitstring)
12247 (write_exp_msymbol, mark_struct_expression)
12248 (write_dollar_variable)
12249 (insert_type_address_space, increase_expout_size): Replace
12250 "parser_state" with "expr_builder".
12251 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12252 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12253 "parser_state" with "expr_builder".
12254
73923d7e
TT
122552019-04-04 Tom Tromey <tom@tromey.com>
12256
12257 * rust-exp.y: Replace "parse_language" with method call.
12258 * p-exp.y:
12259 (yylex): Replace "parse_language" with method call.
12260 * m2-exp.y:
12261 (yylex): Replace "parse_language" with method call.
12262 * go-exp.y (classify_name): Replace "parse_language" with method
12263 call.
12264 * f-exp.y (yylex): Replace "parse_language" with method call.
12265 * d-exp.y (lex_one_token): Replace "parse_language" with method
12266 call.
12267 * c-exp.y:
12268 (lex_one_token, classify_name, yylex): Replace "parse_language"
12269 with method call.
12270 * ada-exp.y (find_primitive_type, type_char)
12271 (type_system_address): Replace "parse_language" with method call.
12272
fa9f5be6
TT
122732019-04-04 Tom Tromey <tom@tromey.com>
12274
12275 * rust-exp.y: Replace "parse_gdbarch" with method call.
12276 * parse.c (write_dollar_variable, insert_type_address_space):
12277 Replace "parse_gdbarch" with method call.
12278 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12279 call.
12280 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12281 call.
12282 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12283 "parse_gdbarch" with method call.
12284 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12285 with method call.
12286 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12287 "parse_gdbarch" with method call.
12288 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12289 "parse_gdbarch" with method call.
12290 * c-exp.y (parse_type, parse_number, classify_name): Replace
12291 "parse_gdbarch" with method call.
12292 * ada-lex.l: Replace "parse_gdbarch" with method call.
12293 * ada-exp.y (parse_type, find_primitive_type, type_char)
12294 (type_system_address): Replace "parse_gdbarch" with method call.
12295
1201a264
TT
122962019-04-04 Tom Tromey <tom@tromey.com>
12297
12298 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12299 * stap-probe.c (stap_parse_argument): Update.
12300 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12301 initial_size parameter.
12302 * rust-exp.y (rust_lex_tests): Update.
12303 * parse.c (parser_state): Update.
12304 (parse_exp_in_context): Update.
12305 * parser-defs.h (struct parser_state) <parser_state>: Remove
12306 "initial_size" parameter.
12307
e3980ce2
TT
123082019-04-04 Tom Tromey <tom@tromey.com>
12309
12310 * parser-defs.h (increase_expout_size): Don't declare.
12311 * parse.c (increase_expout_size): Now static.
12312
e9f8e3f1
TS
123132019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12314
12315 * gnu-nat.c (gnu_nat_target::wait): Fix
12316 target_waitstatus_to_string call.
12317
d7df6549
AB
123182019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12319
12320 * eval.c (evaluate_subexp_standard): Handle internal functions
12321 during Fortran function call handling.
12322
8bdc1658
AB
123232019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12324
12325 * NEWS: Mention new internal functions.
12326 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12327 (read_base_type): Use dwarf2_init_complex_target_type.
12328 * value.c (creal_internal_fn): New function.
12329 (cimag_internal_fn): New function.
12330 (_initialize_values): Register new internal functions.
12331
c29705b7
PW
123322019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12333
12334 * infrun.c (stop_all_threads): If debug_infrun, always
12335 trace the wait status after wait_one, using
12336 target_waitstatus_to_string and target_pid_to_str.
12337 (handle_inferior_event): Replace various trace of
12338 wait status kind by a single trace.
12339 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12340 wait status kind image by target_waitstatus_to_string.
12341 * target/waitstatus.c (target_waitstatus_to_string): Fix
12342 obsolete comment.
12343
05caa1d2
TT
123442019-04-01 Tom Tromey <tromey@adacore.com>
12345
12346 PR symtab/23331:
12347 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12348
9d1447e0
SDJ
123492019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12350 Pedro Alves <palves@redhat.com>
12351
12352 * top.c (quit_force): Call 'finalize_values'.
12353 * value.c (finalize_values): New function.
12354 * value.h (finalize_values): Declare.
12355
7734102d
EZ
123562019-03-30 Eli Zaretskii <eliz@gnu.org>
12357
12358 * NEWS: Announce $_gdb_major and $_gdb_minor.
12359
12360 * top.c (init_gdb_version_vars): New function.
12361 (gdb_init): Call init_gdb_version_vars.
12362
188e1fa9
TT
123632019-03-29 Tom Tromey <tromey@adacore.com>
12364
12365 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12366 help text. Remove dead code.
12367
2880242d
KS
123682019-03-29 Keith Seitz <keiths@redhat.com>
12369
12370 From Siddhesh Poyarekar:
12371 * f-lang.h (f77_get_upperbound): Return LONGEST.
12372 (f77_get_lowerbound): Likewise.
12373 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12374 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12375 print them.
12376 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12377 plongest to format print it.
12378 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12379 (f77_get_upperbound): Likewise.
12380 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12381 LOWER_BOUND to LONGEST.
12382 (f77_create_arrayprint_offset_tbl): Likewise.
12383
cc1defb1
KS
123842019-03-29 Keith Seitz <keiths@redhat.com>
12385
12386 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12387 %s/pulongest for TYPE_LENGTH instead of %d in format
12388 strings.
12389 * ada-typerint.c (ada_print_type): Likewise.
12390 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12391 * compile/compile-c-support.c (generate_register_struct): Likewise.
12392 * gdbtypes.c (recursive_dump_type): Likewise.
12393 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12394 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12395 instead of %d in format strings.
12396 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12397 to std::min to ULONGEST.
12398 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12399 instead of %d in format strings.
12400 * tracepoint.c (info_scope_command): Likewise.
12401 * typeprint.c (print_offset_data::update)
12402 (print_offset_data::finish): Likewise.
12403 * xtensa-tdep.c (xtensa_store_return_value)
12404 (xtensa_push_dummy_call): Likewise.
12405
e432ccf1
JT
124062019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12407
12408 * windows-nat.c (display_selector): Fixed format specifications
12409 for 64-bit Cygwin.
12410
65d2b333
PW
124112019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12412
12413 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12414
f489207e
SL
124152019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12416
12417 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12418 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12419 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12420 (nios2_linux_init_abi): Install it.
12421
bffa1015
AH
124222019-03-28 Alan Hayward <alan.hayward@arm.com>
12423
12424 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12425
fc96163a
AH
124262019-03-28 Alan Hayward <alan.hayward@arm.com>
12427
12428 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12429
20dc7e9b
PW
124302019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12431 Tom Tromey <tromey@adacore.com>
12432
12433 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12434
7f5331a8
JB
124352019-03-26 Joel Brobecker <brobecker@adacore.com>
12436
12437 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12438 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12439 method to compute the bounds of range types. Also print "[evaluated]"
12440 if the bounds' values come from a dynamic evaluation.
12441
18c77628
AB
124422019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12443
12444 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12445 whitespace when pretty printing is on.
12446
53c973f2
AH
124472019-03-26 Alan Hayward <alan.hayward@arm.com>
12448
e79be6e5 12449 * ppc-linux-nat.c: Add include.
53c973f2 12450
d851aa71
AH
124512019-03-26 Alan Hayward <alan.hayward@arm.com>
12452
e79be6e5 12453 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12454
2fe7bab7
AH
124552019-03-26 Alan Hayward <alan.hayward@arm.com>
12456
e79be6e5 12457 * arm-linux-nat.c: Add include.
2fe7bab7 12458
068ef30e
SM
124592019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12460
12461 * source-cache.c (source_cache::get_source_lines): Re-read
12462 fullname after calling open_source_file.
12463
81a24d04
JB
124642019-03-25 John Baldwin <jhb@FreeBSD.org>
12465
12466 * NEWS: Mention TLS support for FreeBSD.
12467
79e7ae11
TT
124682019-03-25 Tom Tromey <tromey@adacore.com>
12469
12470 * minsyms.c (BUNCH_SIZE): Update comment.
12471 (~minimal_symbol_reader): Remove old comment.
12472 (compact_minimal_symbols): Update comment.
12473 (minimal_symbol_reader::install): Remove old comment. Update
12474 other comments.
12475
d45963c2
AH
124762019-03-25 Alan Hayward <alan.hayward@arm.com>
12477
12478 * s390-linux-nat.c: Add include.
12479
0f83012e
AH
124802019-03-25 Alan Hayward <alan.hayward@arm.com>
12481
12482 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12483 Call linux_get_hwcap.
12484 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12485 Likewise.
12486 (aarch64_linux_get_hwcap): Remove function.
12487 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12488 declaration.
12489 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12490 linux_get_hwcap.
12491 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12492 * linux-tdep.c (linux_get_hwcap): Add function.
12493 (linux_get_hwcap2): Likewise.
12494 * linux-tdep.h (linux_get_hwcap): Add declaration.
12495 (linux_get_hwcap2): Likewise.
12496 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12497 (ppc_linux_get_hwcap2): Likewise.
12498 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12499 linux_get_hwcap.
12500 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12501 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12502 (ppc_linux_nat_target::read_description): Likewise.
12503 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12504 * s390-linux-nat.c: Likewise.
12505 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12506
6640a367
TT
125072019-03-24 Tom Tromey <tom@tromey.com>
12508
12509 * ada-lang.c (standard_lookup): Simplify initialization.
12510 (ada_lookup_symbol_nonlocal): Simplify return.
12511 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12512 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12513 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12514 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12515 initialization.
12516 * solib.c (solib_global_lookup): Simplify.
12517 * symtab.c (null_block_symbol): Remove.
12518 (symbol_cache_lookup): Simplify returns.
12519 (lookup_language_this): Simplify returns.
12520 (lookup_symbol_aux): Simplify return.
12521 (lookup_local_symbol): Simplify returns.
12522 (lookup_global_symbol_from_objfile): Simplify return.
12523 (lookup_symbol_in_objfile_symtabs)
12524 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12525 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12526 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12527 * cp-namespace.c (cp_lookup_bare_symbol)
12528 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12529 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12530 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12531 (cp_lookup_symbol_via_imports): Simplify initialization.
12532 (find_symbol_in_baseclass): Likewise.
12533 * symtab.h (null_block_symbol): Remove.
12534 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12535 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12536 (d_lookup_symbol_module): Likewise.
12537 (find_symbol_in_baseclass): Simplify initialization.
12538
a930ebcd
TT
125392019-03-24 Tom Tromey <tom@tromey.com>
12540
12541 * expression.h: Don't include symtab.h.
12542 (struct block): Forward declare.
12543
582942f4
TT
125442019-03-24 Tom Tromey <tom@tromey.com>
12545
12546 * c-exp.y (typebase): Remove casts.
12547 * gdbtypes.c (lookup_unsigned_typename, )
12548 (lookup_signed_typename): Remove cast.
12549 * eval.c (parse_to_comma_and_eval): Remove cast.
12550 * parse.c (write_dollar_variable): Remove cast.
12551 * block.h (struct block) <superblock>: Now const.
12552 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12553 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12554 (map_block): Make "block" const.
12555 * symfile.h (struct quick_symbol_functions)
12556 <map_matching_symbols>: Constify block argument to "callback".
12557 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12558 const.
12559 (find_pc_sect_compunit_symtab): Make "b" const.
12560 (find_symbol_at_address): Likewise.
12561 (search_symbols): Likewise.
12562 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12563 (dw2_debug_names_lookup_symbol): Likewise.
12564 (dw2_map_matching_symbols): Update.
12565 * p-valprint.c (pascal_val_print): Remove "block".
12566 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12567 (aux_add_nonlocal_symbols): Make "block" const.
12568 (resolve_subexp): Remove cast.
12569 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12570 const.
12571 (iterate_over_file_blocks): Likewise.
12572 * f-exp.y (%union) <bval>: Remove.
12573 * coffread.c (patch_opaque_types): Make "b" const.
12574 * spu-tdep.c (spu_catch_start): Make "block" const.
12575 * c-valprint.c (print_unpacked_pointer): Remove "block".
12576 * symmisc.c (dump_symtab_1): Make "b" const.
12577 (block_depth): Make "block" const.
12578 * d-exp.y (%union) <bval>: Remove.
12579 * cp-support.h (cp_lookup_rtti_type): Update.
12580 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12581 * psymtab.c (psym_lookup_symbol): Make "block" const.
12582 (maintenance_check_psymtabs): Make "b" const.
12583 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12584 (enumerate_locals, enumerate_args): Update.
12585 * python/py-symtab.c (stpy_global_block): Make "block" const.
12586 (stpy_static_block): Likewise.
12587 * inline-frame.c (block_starting_point_at): Make "new_block"
12588 const.
12589 * block.c (find_block_in_blockvector): Make return type const.
12590 (blockvector_for_pc_sect): Make "b" const.
12591 (find_block_in_blockvector): Make "b" const.
12592
7ad417dd
TT
125932019-03-23 Tom Tromey <tom@tromey.com>
12594
12595 * varobj.c (varobj_create): Update.
12596 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12597 * printcmd.c (display_command, do_one_display): Don't reset
12598 innermost_block.
12599 * parser-defs.h (enum innermost_block_tracker_type): Move to
12600 expression.h.
12601 (innermost_block): Update comment.
12602 * parse.c (parse_exp_1): Add tracker_types parameter.
12603 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12604 tracker_types parameter. Reset innermost_block.
12605 (parse_exp_in_context): Remove.
12606 (parse_expression_for_completion): Update.
12607 * objfiles.c (~objfile): Don't reset expression_context_block or
12608 innermost_block.
12609 * expression.h (enum innermost_block_tracker_type): Move from
12610 parser-defs.h.
12611 (parse_exp_1): Add tracker_types parameter.
12612 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12613 reset innermost_block.
12614
b366c208
TT
126152019-03-23 Tom Tromey <tom@tromey.com>
12616
12617 * objfiles.h: Include bcache.h.
12618
9bb9b2f9
TT
126192019-03-23 Tom Tromey <tom@tromey.com>
12620
12621 * linespec.c (get_current_search_block): Use
12622 scoped_restore_current_language.
12623 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12624
59c28372
AH
126252019-03-22 Alan Hayward <alan.hayward@arm.com>
12626 Jiong Wang <jiong.wang@arm.com>
12627
12628 * aarch64-linux-tdep.c
12629 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12630 section.
12631 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12632
17e116a7
AH
126332019-03-22 Alan Hayward <alan.hayward@arm.com>
12634 Jiong Wang <jiong.wang@arm.com>
12635
12636 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12637 instructions.
12638 (aarch64_analyze_prologue_test): Add PACIASP test.
12639 (aarch64_prologue_prev_register): Unmask PC value.
12640
11e1b75f
AH
126412019-03-22 Alan Hayward <alan.hayward@arm.com>
12642 Jiong Wang <jiong.wang@arm.com>
12643
12644 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12645 (aarch64_dwarf2_prev_register): Unmask PC value.
12646 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12647 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12648 DW_CFA_AARCH64_negate_ra_state.
12649 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12650
34dcc7cf
AH
126512019-03-22 Alan Hayward <alan.hayward@arm.com>
12652 Jiong Wang <jiong.wang@arm.com>
12653
12654 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12655 registers.
12656 (aarch64_pseudo_register_name): Likewise.
12657 (aarch64_pseudo_register_type): Likewise.
12658 (aarch64_pseudo_register_reggroup_p): Likewise.
12659 (aarch64_gdbarch_init): Add pauth registers.
12660 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12661 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12662 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12663 (struct gdbarch_tdep): Add regnum for ra_state.
12664
1ef53e6b
AH
126652019-03-22 Alan Hayward <alan.hayward@arm.com>
12666 Jiong Wang <jiong.wang@arm.com>
12667
12668 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12669
76bed0fd
AH
126702019-03-22 Alan Hayward <alan.hayward@arm.com>
12671 Jiong Wang <jiong.wang@arm.com>
12672
12673 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12674 function.
12675 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12676 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12677 (aarch64_gdbarch_init): Add puth registers.
12678 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12679 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12680 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12681
ee4fbcfa
AH
126822019-03-22 Alan Hayward <alan.hayward@arm.com>
12683 Jiong Wang <jiong.wang@arm.com>
12684
12685 * aarch64-linux-nat.c
12686 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12687 * aarch64-linux-tdep.c
12688 (aarch64_linux_core_read_description): Likewise.
12689 (aarch64_linux_get_hwcap): New function.
12690 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12691 (aarch64_linux_get_hwcap): New declaration.
12692
6dc0ebde
AH
126932019-03-22 Alan Hayward <alan.hayward@arm.com>
12694 Jiong Wang <jiong.wang@arm.com>
12695
12696 * aarch64-linux-nat.c
12697 (aarch64_linux_nat_target::read_description): Add pauth param.
12698 * aarch64-linux-tdep.c
12699 (aarch64_linux_core_read_description): Likewise.
12700 * aarch64-tdep.c (struct target_desc): Add in pauth.
12701 (aarch64_read_description): Add pauth param.
12702 (aarch64_gdbarch_init): Likewise.
12703 * aarch64-tdep.h (aarch64_read_description): Likewise.
12704 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12705 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12706 * features/Makefile: Add new files.
12707 * features/aarch64-pauth.c: New file.
12708 * features/aarch64-pauth.xml: New file.
12709
595915c1
TT
127102019-03-20 Tom Tromey <tromey@adacore.com>
12711
12712 * infrun.c (handle_inferior_event): Rename from
12713 handle_inferior_event_1. Create a scoped_value_mark.
12714 (handle_inferior_event): Remove.
12715
4c7d57e7
TT
127162019-03-19 Tom Tromey <tromey@adacore.com>
12717
12718 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12719 * infrun.h (print_stop_event): Add "displays" parameter.
12720 * infrun.c (print_stop_event): Add "displays" parameter.
12721
cb246234
PA
127222019-03-19 Pedro Alves <palves@redhat.com>
12723
12724 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12725 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12726 to -1. Fix TABs vs spaces.
12727 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12728 * tui/tui-out.h (tui_ui_out) Add intro comments.
12729 <m_line, m_start_of_line>: In-class initialize, and add describing
12730 comment.
12731
3a0e45b2
AH
127322019-03-18 Alan Hayward <alan.hayward@arm.com>
12733
12734 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12735 variable names.
12736 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12737
5371b850
PA
127382019-03-18 Pedro Alves <palves@redhat.com>
12739 Eli Zaretskii <eliz@gnu.org>
12740
12741 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12742 m_line and m_start_of_line.
12743
b17c4cd0
EZ
127442019-03-18 Eli Zaretskii <eliz@gnu.org>
12745
12746 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12747 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12748 it returns a newline. This fixes a regression in TU mode, whereby
12749 the next line is output on the same screen line as the user input.
12750
4bd56d18
TT
127512019-03-18 Tom Tromey <tromey@adacore.com>
12752
12753 * minsyms.c (minimal_symbol_reader::install): Remove call to
12754 obstack_blank.
12755
55c10aca
PA
127562019-03-18 Pedro Alves <palves@redhat.com>
12757
12758 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12759 New globals.
12760 (apply_style): New, factored out from ...
12761 (apply_ansi_escape): ... this. Handle reverse video mode.
12762 (tui_set_reverse_mode): New function.
12763 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12764 * tui/tui-winsource.c (tui_show_source_line): Use
12765 tui_set_reverse_mode instead of setting A_STANDOUT.
12766 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12767 New setter methods.
12768
647bb750
HD
127692019-03-18 Hannes Domani <ssbssa@yahoo.de>
12770
12771 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12772 Handle tabs.
12773
bff8c71f
TT
127742019-03-18 Tom Tromey <tromey@adacore.com>
12775
12776 * ada-lang.c (empty_array): Add "high" parameter.
12777 (ada_evaluate_subexp): Update.
12778
58785d98
ST
127792019-03-17 Sergei Trofimovich <siarheit@google.com>
12780
12781 * unittests/string_view-selftests.c: Define
12782 _initialize_string_view_selftests unconditionally.
12783
d4cbef22
ВМ
127842019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12785
12786 PR gdb/24350
12787 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12788
fce4c071
ВМ
127892019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12790
12791 PR gdb/24351
12792 * windows-nat.c (display_selector): Fix format specifiers.
12793
f7f0a123
EZ
127942019-03-17 Eli Zaretskii <eliz@gnu.org>
12795
12796 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12797 tui_refill_source_window instead of tui_refresh_win, to update the
12798 current execution line. This fixes redisplay of the current line
12799 when stepping through the code with "next" or "step".
12800
ab42892f
EZ
128012019-03-16 Eli Zaretskii <eliz@gnu.org>
12802
12803 * source-cache.c (source_cache::get_source_lines): Call
12804 find_source_lines to initialize s->nlines. This fixes vertical
12805 scrolling of TUI source window when the DOWN arrow is pressed.
12806
8d8c087f
PW
128072019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12808
12809 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12810 linux-thread-db.c (_initialize_thread_db): Likewise.
12811
798e1c30
EZ
128122019-03-16 Eli Zaretskii <eliz@gnu.org>
12813
12814 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12815 wclrtoeol in tui_show_source_line". This reverts changes made in
12816 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12817
eefba3da
TT
128182019-03-15 Tom Tromey <tom@tromey.com>
12819
12820 * symtab.h (struct minimal_symbol): Derive from
12821 general_symbol_info.
12822 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12823 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12824 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12825 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12826 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12827 (MSYMBOL_SEARCH_NAME): Update.
12828 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12829 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12830 * minsyms.c (minimal_symbol_reader::record_full): Update.
12831
0de2420c
TT
128322019-03-15 Tom Tromey <tom@tromey.com>
12833
12834 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12835
042d75e4
TT
128362019-03-15 Tom Tromey <tom@tromey.com>
12837
12838 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12839 unique_xmalloc_ptr.
12840 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12841 Update.
12842 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12843 (build_minimal_symbol_hash_tables)
12844 (minimal_symbol_reader::install): Update.
12845
db92718b
TT
128462019-03-15 Tom Tromey <tom@tromey.com>
12847
12848 * symtab.c (create_demangled_names_hash): Update.
12849 (symbol_set_names): Update.
12850 * objfiles.h (struct objfile_per_bfd_storage)
12851 <demangled_names_hash>: Now an htab_up.
12852 * objfiles.c (objfile_per_bfd_storage): Simplify.
12853
d6797f46
TT
128542019-03-15 Tom Tromey <tom@tromey.com>
12855
12856 * objfiles.h (struct objfile_per_bfd_storage): Declare
12857 destructor.
12858 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12859 New.
12860 (get_objfile_bfd_data): Use new. Don't initialize
12861 language_of_main.
12862 (free_objfile_per_bfd_storage): Remove.
12863 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12864
741d7538
TT
128652019-03-15 Tom Tromey <tom@tromey.com>
12866
12867 * symfile.c (reread_symbols): Update.
12868 * objfiles.c (objfile::objfile): Update.
12869 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12870 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12871 comment.
12872 (minimal_symbol_reader::install): Update.
12873 (terminate_minimal_symbol_table): Remove.
12874 * jit.c (jit_object_close_impl): Update.
12875
788c80d1
TT
128762019-03-15 Tom Tromey <tom@tromey.com>
12877
12878 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12879 initializations.
12880
1b7a07cb
TT
128812019-03-15 Tom Tromey <tom@tromey.com>
12882
12883 * objfiles.h (struct objfile_per_bfd_storage)
12884 <demangled_hash_languages>: Now a bitset.
12885 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12886 (lookup_minimal_symbol): Update.
12887
3db066bc
TT
128882019-03-15 Tom Tromey <tom@tromey.com>
12889
12890 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12891 Don't return the symbol.
12892 * coffread.c (record_minimal_symbol): Use record_full.
12893
3fff2c37
EZ
128942019-03-14 Eli Zaretskii <eliz@gnu.org>
12895
12896 The MS-Windows port of ncurses fails to switch to a color pair if
12897 one or both of the colors are the implicit default colors. This
12898 change records the default colors when TUI is initialized, and
12899 then specifies them explicitly when a color pair uses the default
12900 colors. This allows color styling in TUI mode on MS-Windows.
12901
12902 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12903 ncurses_norm_attr.
12904 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12905 colors in ncurses_norm_attr.
12906 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12907 "none", replace it with the default color recorded in
12908 ncurses_norm_attr.
12909
3b336828
TT
129102019-03-14 Tom Tromey <tromey@adacore.com>
12911
12912 * source-cache.h (class source_cache) <get_source_lines>: Return
12913 std::string.
12914 * source-cache.c (source_cache::extract_lines): Handle case where
12915 first_pos==npos. Return std::string.
12916 (source_cache::get_source_lines): Update.
12917
d085f989
TT
129182019-03-14 Tom Tromey <tromey@adacore.com>
12919
12920 * NEWS: Add item for "style sources" commands.
12921 * source-cache.c (source_cache::get_source_lines): Check
12922 source_styling.
12923 * cli/cli-style.c (source_styling): New global.
12924 (_initialize_cli_style): Add "style sources" commands.
12925 (show_style_sources): New function.
12926 * cli/cli-style.h (source_styling): Declare.
12927
6f11e682
TT
129282019-03-14 Pedro Alves <palves@redhat.com>
12929 Tom Tromey <tromey@adacore.com>
12930
12931 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12932 * tui/tui-winsource.c (tui_refill_source_window): New function,
12933 from...
12934 (tui_horizontal_source_scroll): ... here. Move some logic.
12935 * cli/cli-style.c (set_style_enabled): Notify new observable.
12936 * tui/tui-hooks.c (tui_redisplay_source): New function.
12937 (tui_attach_detach_observers): Attach or detach
12938 tui_redisplay_source.
12939 * observable.h (source_styling_changed): New observable.
12940 * observable.c: Define source_styling_changed observable.
12941
a068643d
TT
129422019-03-13 Tom Tromey <tromey@adacore.com>
12943
12944 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12945 (i386_gnu_nat_target::store_registers): Update.
12946 * target-debug.h (target_debug_print_std_string): New macro.
12947 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12948 * windows-tdep.c (display_one_tib): Update.
12949 * tui/tui-stack.c (tui_make_status_line): Update.
12950 * top.c (print_inferior_quit_action): Update.
12951 * thread.c (thr_try_catch_cmd): Update.
12952 (add_thread_with_info): Update.
12953 (thread_target_id_str): Update.
12954 (thr_try_catch_cmd): Update.
12955 (thread_command): Update.
12956 (thread_find_command): Update.
12957 * record-btrace.c (record_btrace_target::info_record)
12958 (record_btrace_resume_thread, record_btrace_target::resume)
12959 (record_btrace_cancel_resume, record_btrace_step_thread)
12960 (record_btrace_target::wait, record_btrace_target::wait)
12961 (record_btrace_target::wait, record_btrace_target::stop): Update.
12962 * progspace.c (print_program_space): Update.
12963 * process-stratum-target.c
12964 (process_stratum_target::thread_address_space): Update.
12965 * linux-fork.c (linux_fork_mourn_inferior)
12966 (detach_checkpoint_command, info_checkpoints_command)
12967 (linux_fork_context): Update.
12968 (linux_fork_detach): Update.
12969 (class scoped_switch_fork_info): Update.
12970 (delete_checkpoint_command): Update.
12971 * infrun.c (follow_fork_inferior): Update.
12972 (follow_fork_inferior): Update.
12973 (proceed_after_vfork_done): Update.
12974 (handle_vfork_child_exec_or_exit): Update.
12975 (follow_exec): Update.
12976 (displaced_step_prepare_throw): Update.
12977 (displaced_step_restore): Update.
12978 (start_step_over): Update.
12979 (resume_1): Update.
12980 (clear_proceed_status_thread): Update.
12981 (proceed): Update.
12982 (print_target_wait_results): Update.
12983 (do_target_wait): Update.
12984 (context_switch): Update.
12985 (stop_all_threads): Update.
12986 (restart_threads): Update.
12987 (finish_step_over): Update.
12988 (handle_signal_stop): Update.
12989 (switch_back_to_stepped_thread): Update.
12990 (keep_going_pass_signal): Update.
12991 (print_exited_reason): Update.
12992 (normal_stop): Update.
12993 * inferior.c (inferior_pid_to_str): Change return type.
12994 (print_selected_inferior): Update.
12995 (add_inferior): Update.
12996 (detach_inferior): Update.
12997 * dummy-frame.c (fprint_dummy_frames): Update.
12998 * dcache.c (dcache_info_1): Update.
12999 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13000 (btrace_fetch, btrace_clear): Update.
13001 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13002 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13003 type.
13004 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13005 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13006 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13007 * gdbarch.c, gdbarch.h: Rebuild.
13008 * gdbarch.sh (core_pid_to_str): Change return type.
13009 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13010 return type.
13011 (windows_nat_target::pid_to_str): Change return type.
13012 (windows_delete_thread): Update.
13013 (windows_nat_target::attach): Update.
13014 (windows_nat_target::files_info): Update.
13015 * target-delegates.c: Rebuild.
13016 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13017 return type.
13018 (sol_thread_target::pid_to_str): Change return type.
13019 * remote.c (class remote_target) <pid_to_str>: Change return
13020 type.
13021 (remote_target::pid_to_str): Change return type.
13022 (extended_remote_target::attach, remote_target::remote_stop_ns)
13023 (remote_target::remote_notif_remove_queued_reply)
13024 (remote_target::push_stop_reply, remote_target::disable_btrace):
13025 Update.
13026 (extended_remote_target::attach): Update.
13027 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13028 type.
13029 (gdbsim_target::pid_to_str): Change return type.
13030 * ravenscar-thread.c (struct ravenscar_thread_target)
13031 <pid_to_str>: Change return type.
13032 (ravenscar_thread_target::pid_to_str): Change return type.
13033 * procfs.c (class procfs_target) <pid_to_str>: Change return
13034 type.
13035 (procfs_target::pid_to_str): Change return type.
13036 (procfs_target::attach): Update.
13037 (procfs_target::detach): Update.
13038 (procfs_target::fetch_registers): Update.
13039 (procfs_target::store_registers): Update.
13040 (procfs_target::wait): Update.
13041 (procfs_target::files_info): Update.
13042 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13043 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13044 return type.
13045 (nto_procfs_target::pid_to_str): Change return type.
13046 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13047 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13048 return type.
13049 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13050 (exit_lwp): Update.
13051 (attach_proc_task_lwp_callback, get_detach_signal)
13052 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13053 (linux_nat_target::resume, wait_lwp, stop_callback)
13054 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13055 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13056 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13057 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13058 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13059 type.
13060 (inf_ptrace_target::attach): Update.
13061 (inf_ptrace_target::files_info): Update.
13062 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13063 type.
13064 (go32_nat_target::pid_to_str): Change return type.
13065 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13066 (gnu_nat_target::wait): Update.
13067 (gnu_nat_target::wait): Update.
13068 (gnu_nat_target::resume): Update.
13069 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13070 (fbsd_nat_target::wait): Update.
13071 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13072 type.
13073 (darwin_nat_target::attach): Update.
13074 * corelow.c (class core_target) <pid_to_str>: Change return type.
13075 (core_target::pid_to_str): Change return type.
13076 * target.c (normal_pid_to_str): Change return type.
13077 (default_pid_to_str): Likewise.
13078 (target_pid_to_str): Change return type.
13079 (target_translate_tls_address): Update.
13080 (target_announce_detach): Update.
13081 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13082 return type.
13083 (bsd_uthread_target::pid_to_str): Change return type.
13084 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13085 type.
13086 (bsd_kvm_target::pid_to_str): Change return type.
13087 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13088 return type.
13089 (aix_thread_target::pid_to_str): Change return type.
13090 * target.h (struct target_ops) <pid_to_str>: Change return type.
13091 (target_pid_to_str, normal_pid_to_str): Likewise.
13092 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13093 type.
13094 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13095 type.
13096 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13097 return type.
13098 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13099 type.
13100 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13101 type.
13102 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13103 return type.
13104
b4be1b06
SM
131052019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13106
13107 * NEWS: Mention that the new default MI version is 3. Mention
13108 changes to the output of commands and events that deal with
13109 multi-location breakpoints.
13110 * breakpoint.c: Include "mi/mi-out.h".
13111 (print_one_breakpoint): Change output syntax if using MI version
13112 >= 3.
13113 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13114 New.
13115 (mi_multi_location_breakpoint_output_fixed): New.
13116 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13117 (mi_cmd_fix_multi_location_breakpoint_output): New.
13118 (mi_multi_location_breakpoint_output_fixed): New.
13119 * mi/mi-cmds.c (mi_cmds): Register command
13120 -fix-multi-location-breakpoint-output.
13121 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13122 interpreter "mi".
13123
8e5e5494
SM
131242019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13125
13126 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13127 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13128 instantiate mi_ui_out based on interpreter name.
13129 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13130 * mi/mi-main.c (mi_load_progress): Likewise.
13131
197df35e
JB
131322019-03-12 John Baldwin <jhb@FreeBSD.org>
13133
13134 * NEWS: Combine separate "New targets" sections for 8.3.
13135
8399425f
JB
131362019-03-12 John Baldwin <jhb@FreeBSD.org>
13137
13138 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13139 (ppcfbsd_init_abi): Install gdbarch
13140 "fetch_tls_load_module_address" and "get_thread_local_address"
13141 methods.
13142
b0f87ed0
JB
131432019-03-12 John Baldwin <jhb@FreeBSD.org>
13144
13145 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13146 (riscv_fbsd_init_abi): Install gdbarch
13147 "fetch_tls_load_module_address" and "get_thread_local_address"
13148 methods.
13149
ce25aa57
JB
131502019-03-12 John Baldwin <jhb@FreeBSD.org>
13151
13152 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13153 (i386fbsd_init_abi): Install gdbarch
13154 "fetch_tls_load_module_address" and "get_thread_local_address"
13155 methods.
13156
f5424cfa
JB
131572019-03-12 John Baldwin <jhb@FreeBSD.org>
13158
13159 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13160 (amd64fbsd_init_abi): Install gdbarch
13161 "fetch_tls_load_module_address" and "get_thread_local_address"
13162 methods.
13163
945f3901
JB
131642019-03-12 John Baldwin <jhb@FreeBSD.org>
13165
13166 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13167 (struct fbsd_pspace_data): New type.
13168 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13169 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13170 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13171 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13172 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13173
ef0bd204
JB
131742019-03-12 John Baldwin <jhb@FreeBSD.org>
13175
13176 * gdbtypes.c (lookup_struct_elt): New function.
13177 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13178 * gdbtypes.h (struct struct_elt): New type.
13179 (lookup_struct_elt): New prototype.
13180
36c53a02
JB
131812019-03-12 John Baldwin <jhb@FreeBSD.org>
13182
13183 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13184 remove disabled code block.
13185
6e056c81
JB
131862019-03-12 John Baldwin <jhb@FreeBSD.org>
13187
13188 * gdbarch.sh (get_thread_local_address): New method.
13189 * gdbarch.h, gdbarch.c: Regenerate.
13190 * target.c (target_translate_tls_address): Use
13191 gdbarch_get_thread_local_address if present instead of
13192 target::get_thread_local_address.
13193
cd250a18
JB
131942019-03-12 John Baldwin <jhb@FreeBSD.org>
13195
13196 * target.h (target::get_thread_local_address): Update comment.
13197
df22c1e5
JB
131982019-03-12 John Baldwin <jhb@FreeBSD.org>
13199
13200 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13201 objfile->separate_debug_objfile_backlink if not NULL.
13202
dd6876c9
JB
132032019-03-12 John Baldwin <jhb@FreeBSD.org>
13204
13205 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13206 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13207 (amd64bsd_store_inferior_registers): Likewise.
13208 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13209 Enable segment base registers.
13210 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13211 PT_GETFSBASE and PT_GETGSBASE.
13212 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13213 PT_SETGSBASE.
13214 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13215 segment base registers.
13216 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13217
1163a4b7
JB
132182019-03-12 John Baldwin <jhb@FreeBSD.org>
13219
13220 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13221 Update calls to i386_target_description to add 'segments'
13222 parameter.
13223 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13224 add segment base registers.
13225 * arch/i386.c (i386_create_target_description): Add 'segments'
13226 parameter to enable segment base registers.
13227 * arch/i386.h (i386_create_target_description): Likewise.
13228 * features/i386/32bit-segments.xml: New file.
13229 * features/i386/32bit-segments.c: Generate.
13230 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13231 call to i386_target_description to add 'segments' parameter.
13232 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13233 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13234 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13235 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13236 if feature is present.
13237 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13238 Add 'segments' parameter to call to i386_target_description.
13239 (i386_target_description): Add 'segments' parameter to enable
13240 segment base registers.
13241 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13242 to call to i386_target_description.
13243 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13244 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13245 Define I386_NUM_REGS.
13246 (i386_target_description): Add 'segments' parameter to enable
13247 segment base registers.
13248
3a350822
EZ
132492019-03-12 Eli Zaretskii <eliz@gnu.org>
13250
13251 PR/24325
13252 * source-cache.c: #undef open and close, to avoid unresolved
13253 externals during linking.
13254
ffdd69cf
TT
132552019-03-12 Tom Tromey <tromey@adacore.com>
13256
13257 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13258 const. Add initializers.
13259 (_initialize_remote): Don't initialize ptid globals.
13260
ec148c57
PA
132612019-03-12 Pedro Alves <palves@redhat.com>
13262
13263 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13264
32764270
PA
132652019-03-12 Pedro Alves <palves@redhat.com>
13266
13267 * cp-name-parser.y (main): Remove unused 'len' variable.
13268
17547186
TT
132692019-03-12 Tom Tromey <tromey@adacore.com>
13270
13271 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13272 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13273
d3a70e03
TT
132742019-03-12 Tom Tromey <tromey@adacore.com>
13275
13276 * linux-nat.c (iterate_over_lwps): Update.
13277 (stop_callback): Remove parameter.
13278 (stop_wait_callback, detach_callback, resume_set_callback)
13279 (select_singlestep_lwp_callback, set_ignore_sigint)
13280 (status_callback, resumed_callback, resume_clear_callback)
13281 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13282 data parameter.
13283 (linux_nat_target::detach, linux_nat_target::resume)
13284 (linux_stop_and_wait_all_lwps, select_event_lwp)
13285 (linux_nat_filter_event, linux_nat_wait_1)
13286 (linux_nat_target::kill, linux_nat_target::stop)
13287 (linux_nat_target::stop): Update.
13288 (linux_nat_resume_callback): Change type.
13289 (resume_stopped_resumed_lwps, count_events_callback)
13290 (select_event_lwp_callback): Likewise.
13291 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13292 * arm-linux-nat.c (struct update_registers_data): Remove.
13293 (update_registers_callback): Change type.
13294 (arm_linux_insert_hw_breakpoint1): Update.
13295 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13296 parameter.
13297 (x86_linux_dr_set_addr): Update.
13298 (x86_linux_dr_set_control): Update.
13299 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13300 (iterate_over_lwps): Use gdb::function_view.
13301 * nat/aarch64-linux-hw-point.c (struct
13302 aarch64_dr_update_callback_param): Remove.
13303 (debug_reg_change_callback): Change type.
13304 (aarch64_notify_debug_reg_change): Update.
13305 * s390-linux-nat.c (s390_refresh_per_info): Update.
13306
82cb27ff
TT
133072019-03-11 Tom Tromey <tromey@adacore.com>
13308
13309 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13310 redundant assignment to "this_cu".
13311
568c0683
SM
133122019-03-08 Simon Marchi <simon.marchi@efficios.com>
13313
13314 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13315
f09ce22d
SM
133162019-03-08 Simon Marchi <simon.marchi@efficios.com>
13317
13318 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13319 from...
13320 (rank_one_type): ... this.
13321
595f96a9
SM
133222019-03-08 Simon Marchi <simon.marchi@efficios.com>
13323
13324 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13325 from...
13326 (rank_one_type): ... this.
13327
2598a94b
SM
133282019-03-08 Simon Marchi <simon.marchi@efficios.com>
13329
13330 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13331 from...
13332 (rank_one_type): ... this.
13333
7f17b20d
SM
133342019-03-08 Simon Marchi <simon.marchi@efficios.com>
13335
13336 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13337 from...
13338 (rank_one_type): ... this.
13339
2c509035
SM
133402019-03-08 Simon Marchi <simon.marchi@efficios.com>
13341
13342 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13343 from...
13344 (rank_one_type): ... this.
13345
0dd322dc
SM
133462019-03-08 Simon Marchi <simon.marchi@efficios.com>
13347
13348 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13349 from...
13350 (rank_one_type): ... this.
13351
41ea4728
SM
133522019-03-08 Simon Marchi <simon.marchi@efficios.com>
13353
13354 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13355 from...
13356 (rank_one_type): ... this.
13357
793cd1d2
SM
133582019-03-08 Simon Marchi <simon.marchi@efficios.com>
13359
13360 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13361 from...
13362 (rank_one_type): ... this.
13363
34910087
SM
133642019-03-08 Simon Marchi <simon.marchi@efficios.com>
13365
13366 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13367 from...
13368 (rank_one_type): ... this.
13369
f1f832d6
SM
133702019-03-08 Simon Marchi <simon.marchi@efficios.com>
13371
13372 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13373 from...
13374 (rank_one_type): ... this.
13375
b9f4512f
SM
133762019-03-08 Simon Marchi <simon.marchi@efficios.com>
13377
13378 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13379 from...
13380 (rank_one_type): ... this.
13381
9293fc63
SM
133822019-03-08 Simon Marchi <simon.marchi@efficios.com>
13383
13384 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13385 from...
13386 (rank_one_type): ... this.
13387
e3abbe7e
PW
133882019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13389
13390 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13391 inferior-events' shows the example events.
13392
e4adb939
EZ
133932019-03-08 Eli Zaretskii <eliz@gnu.org>
13394
13395 Support styling on native MS-Windows console
13396
13397 PR/24315
13398 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13399 on MS-Windows if $TERM is not defined.
13400
13401 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13402
13403 * posix-hdep.c (gdb_console_fputs):
13404 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13405 functions.
13406 * ui-file.h (gdb_console_fputs): Add prototype.
13407
13408 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13409 back to fputs only if the former returns zero.
13410
25629dfd
TT
134112019-03-07 Tom Tromey <tom@tromey.com>
13412
13413 * symmisc.c (print_symbol_bcache_statistics): Update.
13414 (print_objfile_statistics): Update.
13415 * symfile.c (allocate_symtab): Update.
13416 * stabsread.c: Don't include bcache.h.
13417 * psymtab.h (struct psymbol_bcache): Don't declare.
13418 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13419 (psymbol_bcache_init, psymbol_bcache_free)
13420 (psymbol_bcache_get_bcache): Don't declare.
13421 * psymtab.c (struct psymbol_bcache): Remove.
13422 (psymtab_storage::psymtab_storage): Update.
13423 (psymtab_storage::~psymtab_storage): Update.
13424 (psymbol_bcache_init, psymbol_bcache_free)
13425 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13426 (add_psymbol_to_bcache): Update.
13427 (allocate_psymtab): Update.
13428 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13429 macro_cache>: No longer pointers.
13430 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13431 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13432 * macrotab.c (macro_bcache): Update.
13433 * macroexp.c: Don't include bcache.h.
13434 * gdbtypes.c (check_types_worklist): Update.
13435 (types_deeply_equal): Remove TRY/CATCH. Update.
13436 * elfread.c (elf_symtab_read): Update.
13437 * dwarf2read.c: Don't include bcache.h.
13438 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13439 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13440 (print_bcache_statistics, bcache_memory_used): Don't declare.
13441 (struct bcache): Move from bcache.c. Add constructor, destructor,
13442 methods. Rename all data members.
13443 * bcache.c (struct bcache): Move to bcache.h.
13444 (bcache::expand_hash_table): Rename from expand_hash_table.
13445 (bcache): Remove.
13446 (bcache::insert): Rename from bcache_full.
13447 (bcache::compare): Rename from bcache_compare.
13448 (bcache_xmalloc): Remove.
13449 (bcache::~bcache): Rename from bcache_xfree.
13450 (bcache::print_statistics): Rename from print_bcache_statistics.
13451 (bcache::memory_used): Rename from bcache_memory_used.
13452
fe726667
PA
134532019-03-07 Pedro Alves <palves@redhat.com>
13454
13455 * infrun.c (normal_stop): Also check for
13456 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13457
7584bb30
AB
134582019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13459
13460 * f-lang.c (value_from_host_double): Moved to...
13461 * value.c (value_from_host_double): ...here.
13462 * value.h (value_from_host_double): Declare.
13463 * guile/scm-math.c (vlscm_convert_typed_number): Use
13464 value_from_host_double.
13465 (vlscm_convert_number): Likewise.
13466 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13467 * python/py-value.c (convert_value_from_python): Likewise.
13468
a7b1986e
TT
134692019-03-06 Tom Tromey <tom@tromey.com>
13470
13471 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13472
0ccf4211
TT
134732019-03-06 Tom Tromey <tom@tromey.com>
13474
13475 * utils.h (free_current_contents): Don't declare.
13476 * utils.c (free_current_contents): Remove.
13477
fe7b42e5
TT
134782019-03-06 Tom Tromey <tom@tromey.com>
13479
13480 * top.c (quit_force): Update.
13481 * main.c (captured_command_loop): Update.
13482 * common/new-op.c (operator new): Update.
13483 * common/common-exceptions.c (struct catcher)
13484 <save_cleanup_chain>: Remove member.
13485 (exceptions_state_mc_init): Update.
13486 (exception_try_scope_entry): Return nullptr.
13487 (exception_try_scope_exit, exception_rethrow)
13488 (throw_exception_sjlj, throw_exception_cxx): Update.
13489 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13490 (all_cleanups, do_cleanups, discard_cleanups)
13491 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13492 (restore_cleanups, restore_final_cleanups): Don't declare.
13493 (do_final_cleanups): Remove parameter.
13494 * common/cleanups.c (cleanup_chain, make_cleanup)
13495 (make_cleanup_dtor, all_cleanups, do_cleanups)
13496 (discard_my_cleanups, discard_cleanups)
13497 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13498 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13499 (null_cleanup): Remove.
13500 (do_final_cleanups): Remove parameter.
13501
c6321f19
TT
135022019-03-06 Tom Tromey <tom@tromey.com>
13503
13504 * remote.c (remote_target::remote_parse_stop_reply): Use
13505 unique_xmalloc_ptr.
13506
61b30099
TT
135072019-03-06 Tom Tromey <tom@tromey.com>
13508
13509 * stabsread.c (struct stabs_field_info): Rename from field_info.
13510 <list, fnlist>: Add initializers.
13511 <obstack>: New member.
13512 (read_member_functions, read_struct_fields, read_baseclasses):
13513 Allocate on obstack. Don't use cleanups.
13514 (read_one_struct_field, read_member_functions, read_struct_fields)
13515 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13516 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13517 (read_struct_type): Update.
13518
6cceac94
TT
135192019-03-06 Tom Tromey <tom@tromey.com>
13520
13521 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13522 * common/filestuff.h (make_cleanup_close): Don't declare.
13523 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13524 Remove.
13525
72412762
TT
135262019-03-06 Tom Tromey <tom@tromey.com>
13527
13528 * solib-aix.c: Use make_scope_exit.
13529
2b6ff1c0
TT
135302019-03-06 Tom Tromey <tom@tromey.com>
13531
13532 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13533 Use make_scope_exit.
13534
d01c5877
TT
135352019-03-06 Tom Tromey <tom@tromey.com>
13536
13537 * solib-svr4.c (disable_probes_interface): Remove parameter.
13538 (svr4_handle_solib_event): Use make_scope_exit.
13539
32603266
TT
135402019-03-06 Tom Tromey <tom@tromey.com>
13541
13542 * remote.c (struct stop_reply_deleter): Remove.
13543 (stop_reply_up): Update.
13544 (struct stop_reply): Derive from notif_event. Don't typedef.
13545 <regcache>: Now a std::vector.
13546 (stop_reply_xfree): Remove.
13547 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13548 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13549 (remote_target::discard_pending_stop_replies): Use delete.
13550 (remote_target::remote_parse_stop_reply): Update.
13551 (remote_target::process_stop_reply): Update.
13552 * remote-notif.h (struct notif_event): Add virtual destructor.
13553 Remove "dtr" member.
13554 (struct notif_client) <alloc_event>: Return a unique_ptr.
13555 (notif_event_xfree): Don't declare.
13556 (notif_event_up): New typedef.
13557 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13558 (notif_event_xfree, do_notif_event_xfree): Remove.
13559 (remote_notif_state_xfree): Update.
13560
9799571e
TT
135612019-03-06 Tom Tromey <tom@tromey.com>
13562
13563 * infrun.c (displaced_step_clear_cleanup): Now a
13564 forward_scope_exit type.
13565 (displaced_step_prepare_throw): Update.
13566 (displaced_step_fixup): Update.
13567
09e3c4ca
TT
135682019-03-06 Tom Tromey <tom@tromey.com>
13569
13570 * inferior.h (class inferior): Update comment.
13571 * gdbthread.h (class thread_info): Update comment.
13572
e2a03548
TT
135732019-03-06 Joel Brobecker <brobecker@adacore.com>
13574 Tom Tromey <tom@tromey.com>
13575
13576 * stabsread.h (struct stab_section_list): Remove.
13577 (coffstab_build_psymtabs): Update.
13578 * dbxread.c (symbuf_sections): Now a std::vector.
13579 (sect_idx): New global.
13580 (fill_symbuf): Update.
13581 (coffstab_build_psymtabs): Change type of stabsects parameter.
13582 Update.
13583 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13584 std::vector.
13585 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13586 (coff_locate_sections): Update.
13587 (coff_symfile_read): Remove cleanups. Update.
13588 (init_stringtab): Add storage parameter.
13589 (free_stringtab, free_stringtab_cleanup): Remove.
13590 (init_lineno): Add storage parameter.
13591 (free_linetab, free_linetab_cleanup): Remove.
13592
b7e60d85
PA
135932019-03-06 Pedro Alves <palves@redhat.com>
13594
13595 * linux-fork.c (fork_info::clobber_regs): Delete.
13596 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13597 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13598 comment. Adjust.
13599 (scoped_switch_fork_info::scoped_switch_fork_info)
13600 (checkpoint_command, linux_fork_context): Adjust
13601 fork_save_infrun_state calls.
13602
e52c971f
PA
136032019-03-06 Pedro Alves <palves@redhat.com>
13604
13605 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13606 (inf_has_multiple_threads): Return 'bool' and rewrite using
13607 inferior_info::threads().
13608
06974e6c
PA
136092019-03-06 Pedro Alves <palves@redhat.com>
13610
13611 * linux-fork.c: Include <list>.
13612 (fork_list): Now a std::list instance.
13613 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13614 (forks_exist_p, find_last_fork): Adjust.
13615 (new_fork): Delete.
13616 (one_fork_p): New.
13617 (add_fork): Adjust.
13618 (free_fork): Delete, folded into fork_info::~fork_info().
13619 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13620 Adjust.
13621 (init_fork_list): Delete.
13622 (linux_fork_killall, linux_fork_mourn_inferior)
13623 (linux_fork_detach, info_checkpoints_command): Adjust.
13624 (_initialize_linux_fork): No longer call init_fork_list.
13625
72f31aea
PA
136262019-03-06 Pedro Alves <palves@redhat.com>
13627
13628 * linux-fork.c (new_fork): New, split out of ...
13629 (add_fork): ... this. Return void. Move "first fork" special
13630 case from here, to ...
13631 (checkpoint_command): ... here.
13632 * linux-linux.h (add_fork): Return void.
13633
efbecbc1
AB
136342019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13635
13636 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13637
0841c79a
AB
136382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13639 Chris January <chris.january@arm.com>
13640 David Lecomber <david.lecomber@arm.com>
13641
13642 * f-exp.y: New token, UNOP_INTRINSIC.
13643 (exp): New pattern using UNOP_INTRINSIC token.
13644 (f77_keywords): Add 'abs' keyword.
13645 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13646 (value_from_host_double): New function.
13647 (evaluate_subexp_f): Support UNOP_ABS.
13648
4a270568
AB
136492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13650
13651 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13652 types.
13653
067630bd
AB
136542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13655
13656 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13657 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13658 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13659
3be47f7a
AB
136602019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13661
13662 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13663
4d00f5d8
AB
136642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13665 Chris January <chris.january@arm.com>
13666
13667 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13668 * f-exp.y: Define 'KIND' token.
13669 (exp): New pattern for KIND expressions.
13670 (ptype): Handle types with a kind extension.
13671 (direct_abs_decl): Extend to spot kind extensions.
13672 (f77_keywords): Add 'kind' to the list.
13673 (push_kind_type): New function.
13674 (convert_to_kind_type): New function.
13675 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13676 * parse.c (operator_length_standard): Likewise.
13677 * parser-defs.h (enum type_pieces): Add tp_kind.
13678 * std-operator.def: Add UNOP_KIND.
13679
e454224f
AB
136802019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13681
13682 * f-exp.y (f_parse): Set yydebug.
13683
9dad4a58
AB
136842019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13685
13686 * f-lang.c (evaluate_subexp_f): New function.
13687 (exp_descriptor_f): New global.
13688 (f_language_defn): Use exp_descriptor_f instead of
13689 exp_descriptor_standard.
13690
c8f91604
AB
136912019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13692
13693 * f-exp.y (struct token): Add comments.
13694 (dot_ops): Remove uppercase versions and the end marker.
13695 (f77_keywords): Likewise.
13696 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13697 entries in the dot_ops array are case insensitive, and use
13698 strncasecmp to compare strings. Also some whitespace cleanup in
13699 this area. Similar for the f77_keywords array, except entries in
13700 this list might be case sensitive.
13701
dd9f2c76
AB
137022019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13703
13704 * f-exp.y (struct f77_boolean_val): Add comments.
13705 (boolean_values): Remove uppercase versions, and end marker.
13706 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13707 and use strncasecmp to achieve case insensitivity. Additionally,
13708 perform whitespace cleanup around this code.
13709
67a3048c
TT
137102019-03-06 Tom Tromey <tromey@adacore.com>
13711
13712 * remote-sim.c (gdbsim_target_open): Use result of
13713 gdb_argv::release.
13714
aa3cfbda
RB
137152019-03-06 Richard Bunt <richard.bunt@arm.com>
13716 Dirk Schubert <dirk.schubert@arm.com>
13717 Chris January <chris.january@arm.com>
13718
13719 * eval.c (evaluate_subexp_standard): Call Fortran argument
13720 wrapping logic.
13721 * f-lang.c (struct value): A value which can be passed into a
13722 Fortran function call.
13723 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13724 where appropriate.
13725 (struct type): Value ready for a Fortran function call.
13726 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13727 is needed.
13728 * f-lang.h (fortran_argument_convert): Declaration.
13729 (fortran_preserve_arg_pointer): Declaration.
13730 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13731
ea38e5df
TT
137322019-03-05 Tom Tromey <tromey@adacore.com>
13733
13734 * python/py-prettyprint.c (print_string_repr): Remove #if.
13735 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13736
06b5b831
TT
137372019-03-05 Tom Tromey <tromey@adacore.com>
13738
13739 * target.c (the_dummy_target): Move later. Change type to
13740 "dummy_target".
13741 (initialize_targets): Don't initialize the_dummy_target.
13742
edbd9e45
TT
137432019-03-05 Tom Tromey <tromey@adacore.com>
13744
13745 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13746 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13747
c119e040
TT
137482019-03-05 Tom Tromey <tromey@adacore.com>
13749
13750 * windows-nat.c (windows_nat_target::attach)
13751 (windows_nat_target::detach): Don't call gdb_flush.
13752 * valprint.c (generic_val_print, val_print, val_print_string):
13753 Don't call gdb_flush.
13754 * utils.c (defaulted_query): Don't call gdb_flush.
13755 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13756 * target.c (target_announce_detach): Don't call gdb_flush.
13757 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13758 * remote.c (extended_remote_target::attach): Don't call
13759 gdb_flush.
13760 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13761 * printcmd.c (do_examine): Don't call gdb_flush.
13762 (info_display_command): Don't call gdb_flush.
13763 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13764 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13765 * memattr.c (info_mem_command): Don't call gdb_flush.
13766 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13767 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13768 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13769 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13770 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13771 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13772 (gnu_nat_target::detach): Don't call gdb_flush.
13773 * f-valprint.c (f_val_print): Don't call gdb_flush.
13774 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13775 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13776 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13777 gdb_flush.
13778 * c-valprint.c (c_val_print): Don't call gdb_flush.
13779 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13780
895dafa6
TT
137812019-03-05 Tom Tromey <tromey@adacore.com>
13782
13783 * varobj.c (update_dynamic_varobj_children): Update.
13784 (install_default_visualizer): Use reset, not release.
13785 * value.c (set_internalvar): Update.
13786 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13787 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13788 ATTRIBUTE_UNUSED_RESULT.
13789
88a774b9
TT
137902019-03-05 Tom Tromey <tromey@adacore.com>
13791
13792 * remote.c (class scoped_remote_fd) <release>: Add
13793 ATTRIBUTE_UNUSED_RESULT.
13794
4e4a8b93
TT
137952019-03-05 Tom Tromey <tromey@adacore.com>
13796
13797 * macroexp.c (struct macro_buffer) <release>: Add
13798 ATTRIBUTE_UNUSED_RESULT.
13799
083eef1f
TT
138002019-03-05 Tom Tromey <tromey@adacore.com>
13801
13802 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13803 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13804 ATTRIBUTE_UNUSED_RESULT.
13805
3cabd438
TT
138062019-03-05 Tom Tromey <tromey@adacore.com>
13807
13808 * common/scoped_fd.h (class scoped_fd) <release>: Add
13809 ATTRIBUTE_UNUSED_RESULT.
13810
41e3300a
TT
138112019-03-05 Tom Tromey <tromey@adacore.com>
13812
13813 * parser-defs.h (struct parser_state) <release>: Add
13814 ATTRIBUTE_UNUSED_RESULT.
13815
18cb7c9f
TT
138162019-03-05 Tom Tromey <tromey@adacore.com>
13817
13818 * utils.h (class gdb_argv) <release>: Add
13819 ATTRIBUTE_UNUSED_RESULT.
13820 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13821
41fa577f
EZ
138222019-03-02 Eli Zaretskii <eliz@gnu.org>
13823
a6a4b2c6
EZ
13824 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13825 for-loop range, to avoid compiler warnings.
13826
13827 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13828 avoid compiler warnings about unused variables.
13829
742a7df5
EZ
13830 * NEWS: Mention end of support for native debugging on MS-Windows
13831 before XP.
13832
41fa577f
EZ
13833 PR gdb/24292
13834 * common/netstuff.c:
13835 * gdbserver/gdbreplay.c
13836 * gdbserver/remote-utils.c:
13837 * ser-tcp.c:
13838 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13839 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13840 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13841 'getaddrinfo' and 'freeaddrinfo' were not available before
13842 Windows XP, and mingw.org's MinGW headers by default define
13843 _WIN32_WINNT to 0x500.
13844
827f438f
GB
138452019-03-01 Gary Benson <gbenson@redhat.com>
13846
13847 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13848
92137da0
RO
138492019-02-28 Brian Vandenberg <phantall@gmail.com>
13850 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13851
13852 PR gdb/8527
13853 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13854 set_sigint_trap, clear_sigint_trap.
13855
799efbe8
PW
138562019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13857
13858 * target.c (target_detach): Clear the regcache and the
13859 frame cache.
13860
8ed25214
PA
138612019-02-27 Pedro Alves <palves@redhat.com>
13862
13863 * utils.c (set_screen_size): When we cap the height/width sizes,
13864 tweak the corresponding command variable to show "unlimited":
13865
23031e31
SJ
138662019-02-27 Saagar Jha <saagar@saagarjha.com>
13867 Pedro Alves <palves@redhat.com>
13868
13869 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13870 before calling rl_set_screen_size.
13871
6c28e44a
TT
138722019-02-27 Tom Tromey <tromey@adacore.com>
13873
13874 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13875 define.
13876 * python/py-value.c: Remove Python 2.4 workaround.
13877 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13878 workaround.
13879 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13880 Python 2.4 workaround.
13881 * python/python-internal.h: Remove Python 2.4 comment.
13882 (Py_ssize_t): Don't define.
13883 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13884 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13885 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13886 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13887 * python/python.c (do_start_initialization): Remove Python 2.4
13888 workaround.
13889 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13890 (print_children): Remove Python 2.4 workaround.
13891 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13892 workaround.
13893 (CHARBUFFERPROC_NAME): Remove.
13894 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13895 Python 2.4 workaround.
13896
2c3fc25d 138972019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13898
2c3fc25d
KB
13899 * NEWS: Note minimum Python version.
13900
6ca62222
KB
139012019-02-27 Kevin Buettner <kevinb@redhat.com>
13902
13903 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13904 code from these functions. Remove corresponding ifdefs. Use
13905 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13906 Remove gotos and target of gotos.
13907 (infpy_search_memory): Likewise.
13908
f4bc7d2c
AB
139092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13910
13911 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13912 (hppa_gdbarch_init): Don't register deleted functions with
13913 gdbarch.
13914
9734a586
AB
139152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13916
13917 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13918 (h8300_unwind_sp): Delete.
13919 (h8300_dummy_id): Delete.
13920 (h8300_gdbarch_init): Don't register deleted functions with
13921 gdbarch.
13922
68b867f3
AB
139232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13924
13925 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13926 (ft32_unwind_pc): Delete.
13927 (ft32_unwind_sp): Delete.
13928 (ft32_gdbarch_init): Don't register deleted functions with
13929 gdbarch.
13930
2fbe7ad0
AB
139312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13932
13933 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13934 (frv_unwind_pc): Delete.
13935 (frv_unwind_sp): Delete.
13936 (frv_gdbarch_init): Don't register deleted functions with
13937 gdbarch.
13938
76055cbe
AB
139392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13940
13941 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13942 (riscv_unwind_pc): Delete.
13943 (riscv_unwind_sp): Delete.
13944 (riscv_gdbarch_init): Don't register deleted functions with
13945 gdbarch.
13946
4133e5a1
AB
139472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13948
13949 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13950 (csky_unwind_pc): Delete.
13951 (csky_unwind_sp): Delete.
13952 (csky_gdbarch_init): Don't register deleted functions with
13953 gdbarch.
13954
8010f576
AB
139552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13956
13957 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13958 (cris_unwind_pc): Delete.
13959 (cris_unwind_sp): Delete.
13960 (cris_gdbarch_init): Don't register deleted functions with
13961 gdbarch.
13962
b56bf084
AB
139632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13964
13965 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13966 (bfin_unwind_pc): Delete.
13967 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13968
a19a650f
AB
139692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13970
13971 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13972 (arm_unwind_pc): Delete.
13973 (arm_unwind_sp): Delete.
13974 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13975
f8278c3c
AB
139762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13977
13978 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13979 (arc_unwind_pc): Delete.
13980 (arc_unwind_sp): Delete.
13981 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13982
480e46cf
AB
139832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13984
13985 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13986 (alpha_unwind_pc): Delete.
13987 (alpha_gdbarch_init): Don't register deleted functions with
13988 gdbarch.
13989
7a995095
AB
139902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13991
13992 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13993 (aarch64_unwind_pc): Delete.
13994 (aarch64_unwind_sp): Delete.
13995 (aarch64_gdbarch_init): Don't register deleted functions with
13996 gdbarch.
13997
bf9a735e
AB
139982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13999
14000 * gdbtypes.c (type_align): Don't consider static members when
14001 computing structure alignment.
14002
5561fc30
AB
140032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14004
14005 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14006 return 0 for other types.
14007 * arch-utils.c (default_type_align): Always return 0.
14008 * gdbarch.h: Regenerate.
14009 * gdbarch.sh (type_align): Extend comment.
14010 * gdbtypes.c (type_align): Add additional comments, always call
14011 gdbarch_type_align before applying the default rules.
14012 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14013 generic code will then apply a suitable default.
14014 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14015 types, return 0 for other types.
14016
9335e75a
JB
140172019-02-27 Joel Brobecker <brobecker@adacore.com>
14018
14019 * NEWS: Create a new section for the next release branch.
14020 Rename the section of the current branch, now that it has
14021 been cut.
14022
3d34d8de
JB
140232019-02-27 Joel Brobecker <brobecker@adacore.com>
14024
14025 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14026 * version.in: Bump version to 8.3.50.DATE-git.
14027
143420fb
SM
140282019-02-26 Simon Marchi <simon.marchi@efficios.com>
14029
14030 * aix-thread.c (ptid_cmp): Remove unused variable.
14031 (get_signaled_thread): Likewise.
14032 (store_regs_user_thread): Likewise.
14033 (store_regs_kernel_thread): Likewise.
14034 (fetch_regs_kernel_thread): Remove shadowed variable.
14035
172fb711
AB
140362019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14037
14038 * features/riscv/32bit-cpu.xml: Add register numbers.
14039 * features/riscv/32bit-fpu.c: Regenerate.
14040 * features/riscv/32bit-fpu.xml: Add register numbers.
14041 * features/riscv/64bit-cpu.xml: Add register numbers.
14042 * features/riscv/64bit-fpu.c: Regenerate.
14043 * features/riscv/64bit-fpu.xml: Add register numbers.
14044
26c89782
KB
140452019-02-26 Kevin Buettner <kevinb@redhat.com>
14046
af54ade9 14047 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14048 * python/py-value.c (convert_buffer_and_type_to_value): New
14049 function.
14050 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14051 Add support for handling an optional second argument. Call
14052 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14053 * python/python-internal.h (Py_buffer_deleter): New struct.
14054 (Py_buffer_up): New typedef.
14055
0f58c9e8
JB
140562019-02-25 John Baldwin <jhb@FreeBSD.org>
14057
14058 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14059 instead of releasing ownership.
14060
0a0f4c01
JR
140612019-02-25 Jordan Rupprecht <rupprecht@google.com>
14062
14063 * dwarf2read.c (open_and_init_dwp_file): Call
14064 elf_numsections instead of bfd_count_sections to initialize
14065 dwp_file->num_sections.
14066
cd5a152c
TT
140672019-02-25 Tom Tromey <tromey@adacore.com>
14068
14069 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14070
8a6a8513
SDJ
140712019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14072
14073 * gcore.in: Add '--readnever' option when invoking GDB.
14074
04dcda9c
SM
140752019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14076
14077 * MAINTAINERS: Update my email address.
14078
07bc701d
SM
140792019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14080
14081 * build-id.c (build_id_to_debug_bfd_1): New function.
14082 (build_id_to_debug_bfd): Look for separate debug file in
14083 sysroot.
14084
c6f4a5d0
AB
140852019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14086
14087 * gdbarch.sh: Update the copyright year range that is placed into
14088 generated files.
14089
9600246d
KS
140902019-02-22 Keith Seitz <keiths@redhat.com>
14091
14092 PR symtab/23853
14093 * linespec.c (create_sals_line_offset): Search for the default
14094 symtab's filename instead of its fullname.
14095
7557a514
AH
140962019-02-21 Alan Hayward <alan.hayward@arm.com>
14097
14098 * NEWS: Update style defaults.
14099
ee2bcb0c
AH
141002019-02-21 Alan Hayward <alan.hayward@arm.com>
14101
14102 * main.c (captured_main_1): Disable styling in batch mode.
14103
0c95f9ed
TT
141042019-02-20 Tom Tromey <tom@tromey.com>
14105
14106 * symtab.c (symtab_symbol_info): Fix typos.
14107
c763b894
TT
141082019-02-20 Tom Tromey <tromey@adacore.com>
14109
14110 * findcmd.c (_initialize_mem_search): Use upper case for
14111 metasyntactic variables.
14112
0ef8a082
AH
141132019-02-20 Alan Hayward <alan.hayward@arm.com>
14114
14115 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14116 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14117
6caa91b6
SM
141182019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14119
14120 * top.h (source_file_name): Change to std::string.
14121 * top.c (source_file_name): Likewise.
14122 (command_line_input): Adjust.
14123 * cli/cli-script.c (script_from_file): Adjust.
14124
98814c6c
TT
141252019-02-19 Tom Tromey <tromey@adacore.com>
14126
14127 * ravenscar-thread.c
14128 (ravenscar_thread_target::update_thread_list): Don't call
14129 ada_build_task_list.
14130 * ada-lang.h (ada_build_task_list): Don't declare.
14131 * ada-tasks.c (struct ada_tasks_inferior_data)
14132 <task_list_valid_p>: Now bool.
14133 (read_known_tasks, ada_task_list_changed)
14134 (ada_tasks_invalidate_inferior_data): Update.
14135 (read_known_tasks_array): Return bool.
14136 (read_known_tasks_list): Likewise.
14137 (read_known_tasks): Return void.
14138 (ada_build_task_list): Now static.
14139
70cd633e
AB
141402019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14141
14142 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14143 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14144
040b3e95
PW
141452019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14146
14147 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14148 variant for ada_tasks_pspace_data_handle and
14149 ada_tasks_inferior_data_handle.
14150 (ada_tasks_pspace_data_cleanup): New function.
14151 (ada_tasks_inferior_data_cleanup): New function.
14152
9409233b
TT
141532019-02-17 Tom Tromey <tom@tromey.com>
14154
14155 * macrotab.h (macro_source_fullname): Return a std::string.
14156 * macrotab.c (macro_include, check_for_redefinition)
14157 (macro_undef, macro_lookup_definition, foreach_macro)
14158 (foreach_macro_in_scope): Update.
14159 (macro_source_fullname): Return a std::string.
14160 * macrocmd.c (show_pp_source_pos): Update.
14161
6506371f
TT
141622019-02-17 Tom Tromey <tom@tromey.com>
14163
14164 * macrocmd.c (show_pp_source_pos): Style the file names.
14165
0c820d67
TT
141662019-02-17 Tom Tromey <tom@tromey.com>
14167
14168 PR tui/24197:
14169 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14170
a0087920
TT
141712019-02-17 Tom Tromey <tom@tromey.com>
14172
14173 * ada-lang.c (user_select_syms): Use filtered printing.
14174 * utils.c (wrap_style): New global.
14175 (desired_style): Remove.
14176 (emit_style_escape): Add stream parameter.
14177 (set_output_style, reset_terminal_style, prompt_for_continue):
14178 Update.
14179 (flush_wrap_buffer): Only flush gdb_stdout.
14180 (wrap_here): Set wrap_style.
14181 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14182 treat escape sequences as a character. Change when wrap buffer is
14183 flushed.
14184 (fputs_styled): Do not set the output style when the default is
14185 requested.
14186 * ui-style.h (struct ui_file_style) <is_default>: New method.
14187 * source.c (print_source_lines_base): Emit escape sequences in one
14188 piece.
14189
75ba10dc
JB
141902019-02-17 Joel Brobecker <brobecker@adacore.com>
14191
14192 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14193 integers and enumeration types.
14194
a2cd4f14
JB
141952019-02-17 Joel Brobecker <brobecker@adacore.com>
14196
14197 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14198 instead of lookup_symbol_in_language
14199 (do_exact_match): New function.
14200 (ada_get_symbol_name_matcher): Return do_exact_match when
14201 doing a verbatim match.
14202
485b851b
TT
142032019-02-15 Tom Tromey <tromey@adacore.com>
14204
14205 * ravenscar-thread.c (ravenscar_thread_target::resume)
14206 (ravenscar_thread_target::wait): Special case wildcard requests.
14207
0b790b1e
TT
142082019-02-15 Tom Tromey <tromey@adacore.com>
14209
14210 * ravenscar-thread.c (base_ptid): Remove.
14211 (struct ravenscar_thread_target) <close>: New method.
14212 <m_base_ptid>: New member.
14213 <update_inferior_ptid, active_task, task_is_currently_active,
14214 runtime_initialized>: Declare methods.
14215 <ravenscar_thread_target>: Add constructor.
14216 (ravenscar_thread_target::task_is_currently_active)
14217 (ravenscar_thread_target::update_inferior_ptid)
14218 (ravenscar_runtime_initialized): Rename. Now methods.
14219 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14220 (ravenscar_thread_target::update_thread_list): Update.
14221 (ravenscar_thread_target::active_task): Now method.
14222 (ravenscar_thread_target::store_registers)
14223 (ravenscar_thread_target::prepare_to_store)
14224 (ravenscar_thread_target::prepare_to_store)
14225 (ravenscar_thread_target::mourn_inferior): Update.
14226 (ravenscar_inferior_created): Use "new" to create target.
14227 (ravenscar_thread_target::get_ada_task_ptid): Update.
14228 (_initialize_ravenscar): Don't initialize base_ptid.
14229 (ravenscar_ops): Remove global.
14230
dea57a62
TT
142312019-02-15 Tom Tromey <tromey@adacore.com>
14232
14233 * target.h (push_target): Declare new overload.
14234 * target.c (push_target): New overload, taking an rvalue reference.
14235 * remote.c (remote_target::open_1): Use push_target overload.
14236 * corelow.c (core_target_open): Use push_target overload.
14237
989f3c58
TT
142382019-02-15 Tom Tromey <tromey@adacore.com>
14239
14240 * ravenscar-thread.c (is_ravenscar_task)
14241 (ravenscar_task_is_currently_active): Return bool.
14242 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14243 (_initialize_ravenscar): Remove "(void)".
14244 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14245 Return bool.
14246
6cbcc006
TT
142472019-02-15 Tom Tromey <tromey@adacore.com>
14248
14249 * ravenscar-thread.c (ravenscar_runtime_initializer)
14250 (has_ravenscar_runtime, get_running_thread_id)
14251 (ravenscar_thread_target::resume): Fix indentation.
14252
7657f14d
TT
142532019-02-15 Tom Tromey <tromey@adacore.com>
14254
14255 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14256 from ravenscar_arch_ops.
14257 (sparc_ravenscar_ops::fetch_registers)
14258 (sparc_ravenscar_ops::store_registers): Now methods.
14259 (sparc_ravenscar_prepare_to_store): Remove.
14260 (sparc_ravenscar_ops): Redefine.
14261 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14262 methods and destructor. Remove members.
14263 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14264 (ravenscar_thread_target::store_registers)
14265 (ravenscar_thread_target::prepare_to_store): Update.
14266 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14267 Remove.
14268 (struct ppc_ravenscar_powerpc_ops): Derive from
14269 ravenscar_arch_ops.
14270 (ppc_ravenscar_powerpc_ops::fetch_registers)
14271 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14272 (ppc_ravenscar_powerpc_ops): Redefine.
14273 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14274 (ppc_ravenscar_e500_ops::fetch_registers)
14275 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14276 (ppc_ravenscar_e500_ops): Redefine.
14277 * aarch64-ravenscar-thread.c
14278 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14279 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14280 (aarch64_ravenscar_fetch_registers)
14281 (aarch64_ravenscar_store_registers): Now methods.
14282 (aarch64_ravenscar_ops): Redefine.
14283
5b6ea500
TT
142842019-02-15 Tom Tromey <tromey@adacore.com>
14285
14286 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14287 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14288 (ravenscar_thread_target::stopped_by_watchpoint)
14289 (ravenscar_thread_target::stopped_data_address)
14290 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14291
e397fd39
TT
142922019-02-15 Tom Tromey <tromey@adacore.com>
14293
14294 * ravenscar-thread.c: Fix some typos.
14295
cc12f4a8
TT
142962019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14297 Tom Tromey <tromey@adacore.com>
14298
14299 * ada-lang.c (ada_exception_sal): Change addr_string to a
14300 std::string.
14301 (create_ada_exception_catchpoint): Update.
14302
5f486660
TT
143032019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14304 Tom Tromey <tromey@adacore.com>
14305
14306 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14307 (bp_location_ops): Remove.
14308 (base_breakpoint_allocate_location): Update.
14309 (free_bp_location): Update.
14310 * ada-lang.c (class ada_catchpoint_location)
14311 <ada_catchpoint_location>: Remove ops parameter.
14312 (ada_catchpoint_location_dtor): Remove.
14313 (ada_catchpoint_location_ops): Remove.
14314 (allocate_location_exception): Update.
14315 * breakpoint.h (struct bp_location_ops): Remove.
14316 (class bp_location) <bp_location>: Remove bp_location_ops
14317 parameter.
14318 <~bp_location>: Add destructor.
14319 <ops>: Remove.
14320
b671c7fb
TS
143212019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14322 Pedro Alves <palves@redhat.com>
14323
14324 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14325 'PATH_MAX'.
14326
8071c5ce
DM
143272019-02-14 David Michael <fedora.dm0@gmail.com>
14328 Samuel Thibault <samuel.thibault@gnu.org>
14329 Thomas Schwinge <thomas@codesourcery.com>
14330
14331 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14332 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14333
b1041ae0
TS
143342019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14335
924514e1
TS
14336 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14337 (check_empty): Use "const char *".
14338
c29ee8d4
TS
14339 * gnu-nat.c (gnu_nat_target::detach): Instead of
14340 'detach_inferior (pid)' call
14341 'detach_inferior (find_inferior_pid (pid))'.
14342
6c6ef69f
TS
14343 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14344 'nat/fork-inferior.o'.
14345 * gnu-nat.c: #include "nat/fork-inferior.h".
14346
2d0a338c
TS
14347 * gnu-nat.c (gnu_nat_target::detach): Instead of
14348 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14349 * gnu-nat.h: #include "inf-child.h".
14350 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14351 'i386_gnu_nat_target::fetch_registers'.
14352 (gnu_store_registers): Rename/move to
14353 'i386_gnu_nat_target::store_registers'.
14354
cabb5f06
TS
14355 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14356 * gnu-nat.h (mach_thread_info): New function.
14357 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14358
b1041ae0
TS
14359 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14360
2988d01e
KF
143612019-02-14 Frederic Konrad <konrad@adacore.com>
14362
14363 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14364
c559d709
JB
143652019-02-14 Joel Brobecker <brobecker@adacore.com>
14366
14367 * windows-nat.c (windows_add_thread): Add new parameter
14368 "main_thread_p" with default value set to false. Update
14369 function documentation as well as all callers.
14370 (windows_delete_thread): Likewise.
14371 (fake_create_process): Update call to windows_add_thread.
14372 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14373 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14374 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14375 call to windows_delete_thread.
14376
007024cc
SM
143772019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14378
14379 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14380
f62318e9
JB
143812019-02-12 John Baldwin <jhb@FreeBSD.org>
14382
14383 * symfile.c (find_separate_debug_file): Use canonical path of
14384 sysroot with child_path instead of gdb_sysroot if it is valid.
14385
cd4b7848
JB
143862019-02-12 John Baldwin <jhb@FreeBSD.org>
14387
14388 * symfile.c (find_separate_debug_file): Use child_path to
14389 determine if an object file is under a sysroot.
14390
efac4bfe
JB
143912019-02-12 John Baldwin <jhb@FreeBSD.org>
14392
14393 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14394 unittests/child-path-selftests.c.
14395 * common/pathstuff.c (child_path): New function.
14396 * common/pathstuff.h (child_path): New prototype.
14397 * unittests/child-path-selftests.c: New file.
14398
402d2bfe
JB
143992019-02-12 John Baldwin <jhb@FreeBSD.org>
14400
14401 * symfile.c (find_separate_debug_file): Look for separate debug
14402 files in debug directories under the sysroot.
14403
1ed9f74e
PW
144042019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14405
14406 * symtab.h (struct minimal_symbol data_p): New const method.
14407 (struct minimal_symbol text_p): Likewise.
14408 * symtab.c (output_source_filename): Use file name style
14409 to print file name.
14410 (print_symbol_info): Likewise.
14411 (print_msymbol_info): Use address style to print addresses.
14412 Use function name style to print executable text symbols.
14413 (expand_symtab_containing_pc): Use data_p.
14414 (find_pc_sect_compunit_symtab): Likewise.
14415
2636d81d
PW
144162019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14417
14418 * breakpoint.c (describe_other_breakpoints): Use address style
14419 to print addresses.
14420 (say_where): Likewise.
14421
ac8c53cc
PW
144222019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14423
14424 * ada-typeprint.c (print_func_type): Print function name
14425 style to print function name.
14426 * c-typeprint.c (c_print_type_1): Likewise.
14427
ea638c43
AH
144282019-02-11 Alan Hayward <alan.hayward@arm.com>
14429
14430 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14431 for execve.
14432
ab759ca8
PW
144332019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14434
14435 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14436 type_stack.
14437
aff29d1c
JB
144382019-02-10 Joel Brobecker <brobecker@adacore.com>
14439
14440 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14441 TYPE_CODE_REF types.
14442
617126bc
JW
144432019-02-08 Jim Wilson <jimw@sifive.com>
14444
14445 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14446 (riscv_linux_fregset): New.
14447 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14448
46e3ed7f
TT
144492019-02-07 Tom Tromey <tom@tromey.com>
14450
14451 * thread.c (thread_cancel_execution_command): Update.
14452 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14453 methods.
14454 (struct thread_fsm_ops): Remove.
14455 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14456 (thread_fsm_should_stop, thread_fsm_return_value)
14457 (thread_fsm_set_finished, thread_fsm_finished_p)
14458 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14459 Don't declare.
14460 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14461 * infrun.c (clear_proceed_status_thread)
14462 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14463 (print_stop_event): Update.
14464 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14465 Add constructor.
14466 (step_command_fsm_ops): Remove.
14467 (new_step_command_fsm): Remove.
14468 (step_1): Update.
14469 (step_command_fsm::should_stop): Rename from
14470 step_command_fsm_should_stop.
14471 (step_command_fsm::clean_up): Rename from
14472 step_command_fsm_clean_up.
14473 (step_command_fsm::do_async_reply_reason): Rename from
14474 step_command_fsm_async_reply_reason.
14475 (struct until_next_fsm): Inherit from thread_fsm. Add
14476 constructor.
14477 (until_next_fsm_ops): Remove.
14478 (new_until_next_fsm): Remove.
14479 (until_next_fsm::should_stop): Rename from
14480 until_next_fsm_should_stop.
14481 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14482 (until_next_fsm::do_async_reply_reason): Rename from
14483 until_next_fsm_async_reply_reason.
14484 (struct finish_command_fsm): Inherit from thread_fsm. Add
14485 constructor. Change type of breakpoint.
14486 (finish_command_fsm_ops): Remove.
14487 (new_finish_command_fsm): Remove.
14488 (finish_command_fsm::should_stop): Rename from
14489 finish_command_fsm_should_stop.
14490 (finish_command_fsm::clean_up): Rename from
14491 finish_command_fsm_clean_up.
14492 (finish_command_fsm::return_value): Rename from
14493 finish_command_fsm_return_value.
14494 (finish_command_fsm::do_async_reply_reason): Rename from
14495 finish_command_fsm_async_reply_reason.
14496 (finish_command): Update.
14497 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14498 Add constructor.
14499 (call_thread_fsm_ops): Remove.
14500 (call_thread_fsm::call_thread_fsm): Rename from
14501 new_call_thread_fsm.
14502 (call_thread_fsm::should_stop): Rename from
14503 call_thread_fsm_should_stop.
14504 (call_thread_fsm::should_notify_stop): Rename from
14505 call_thread_fsm_should_notify_stop.
14506 (run_inferior_call, call_function_by_hand_dummy): Update.
14507 * cli/cli-interp.c (should_print_stop_to_console): Update.
14508 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14509 Add constructor. Change type of location_breakpoint,
14510 caller_breakpoint.
14511 (until_break_fsm_ops): Remove.
14512 (new_until_break_fsm): Remove.
14513 (until_break_fsm::should_stop): Rename from
14514 until_break_fsm_should_stop.
14515 (until_break_fsm::clean_up): Rename from
14516 until_break_fsm_clean_up.
14517 (until_break_fsm::do_async_reply_reason): Rename from
14518 until_break_fsm_async_reply_reason.
14519 (until_break_command): Update.
14520 * thread-fsm.c: Remove.
14521 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14522
1a5c2598
TT
145232019-02-07 Tom Tromey <tom@tromey.com>
14524
14525 * yy-remap.h: Add include guard.
14526 * xtensa-tdep.h: Add include guard.
14527 * xcoffread.h: Rename include guard.
14528 * varobj-iter.h: Add include guard.
14529 * tui/tui.h: Rename include guard.
14530 * tui/tui-winsource.h: Rename include guard.
14531 * tui/tui-wingeneral.h: Rename include guard.
14532 * tui/tui-windata.h: Rename include guard.
14533 * tui/tui-win.h: Rename include guard.
14534 * tui/tui-stack.h: Rename include guard.
14535 * tui/tui-source.h: Rename include guard.
14536 * tui/tui-regs.h: Rename include guard.
14537 * tui/tui-out.h: Rename include guard.
14538 * tui/tui-layout.h: Rename include guard.
14539 * tui/tui-io.h: Rename include guard.
14540 * tui/tui-hooks.h: Rename include guard.
14541 * tui/tui-file.h: Rename include guard.
14542 * tui/tui-disasm.h: Rename include guard.
14543 * tui/tui-data.h: Rename include guard.
14544 * tui/tui-command.h: Rename include guard.
14545 * tic6x-tdep.h: Add include guard.
14546 * target/waitstatus.h: Rename include guard.
14547 * target/wait.h: Rename include guard.
14548 * target/target.h: Rename include guard.
14549 * target/resume.h: Rename include guard.
14550 * target-float.h: Rename include guard.
14551 * stabsread.h: Add include guard.
14552 * rs6000-tdep.h: Add include guard.
14553 * riscv-fbsd-tdep.h: Add include guard.
14554 * regformats/regdef.h: Rename include guard.
14555 * record.h: Rename include guard.
14556 * python/python.h: Rename include guard.
14557 * python/python-internal.h: Rename include guard.
14558 * python/py-stopevent.h: Rename include guard.
14559 * python/py-ref.h: Rename include guard.
14560 * python/py-record.h: Rename include guard.
14561 * python/py-record-full.h: Rename include guard.
14562 * python/py-record-btrace.h: Rename include guard.
14563 * python/py-instruction.h: Rename include guard.
14564 * python/py-events.h: Rename include guard.
14565 * python/py-event.h: Rename include guard.
14566 * procfs.h: Add include guard.
14567 * proc-utils.h: Add include guard.
14568 * p-lang.h: Add include guard.
14569 * or1k-tdep.h: Rename include guard.
14570 * observable.h: Rename include guard.
14571 * nto-tdep.h: Rename include guard.
14572 * nat/x86-linux.h: Rename include guard.
14573 * nat/x86-linux-dregs.h: Rename include guard.
14574 * nat/x86-gcc-cpuid.h: Add include guard.
14575 * nat/x86-dregs.h: Rename include guard.
14576 * nat/x86-cpuid.h: Rename include guard.
14577 * nat/ppc-linux.h: Rename include guard.
14578 * nat/mips-linux-watch.h: Rename include guard.
14579 * nat/linux-waitpid.h: Rename include guard.
14580 * nat/linux-ptrace.h: Rename include guard.
14581 * nat/linux-procfs.h: Rename include guard.
14582 * nat/linux-osdata.h: Rename include guard.
14583 * nat/linux-nat.h: Rename include guard.
14584 * nat/linux-namespaces.h: Rename include guard.
14585 * nat/linux-btrace.h: Rename include guard.
14586 * nat/glibc_thread_db.h: Rename include guard.
14587 * nat/gdb_thread_db.h: Rename include guard.
14588 * nat/gdb_ptrace.h: Rename include guard.
14589 * nat/fork-inferior.h: Rename include guard.
14590 * nat/amd64-linux-siginfo.h: Rename include guard.
14591 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14592 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14593 * nat/aarch64-linux.h: Rename include guard.
14594 * nat/aarch64-linux-hw-point.h: Rename include guard.
14595 * mn10300-tdep.h: Add include guard.
14596 * mips-linux-tdep.h: Add include guard.
14597 * mi/mi-parse.h: Rename include guard.
14598 * mi/mi-out.h: Rename include guard.
14599 * mi/mi-main.h: Rename include guard.
14600 * mi/mi-interp.h: Rename include guard.
14601 * mi/mi-getopt.h: Rename include guard.
14602 * mi/mi-console.h: Rename include guard.
14603 * mi/mi-common.h: Rename include guard.
14604 * mi/mi-cmds.h: Rename include guard.
14605 * mi/mi-cmd-break.h: Rename include guard.
14606 * m2-lang.h: Add include guard.
14607 * location.h: Rename include guard.
14608 * linux-record.h: Rename include guard.
14609 * linux-nat.h: Add include guard.
14610 * linux-fork.h: Add include guard.
14611 * i386-darwin-tdep.h: Rename include guard.
14612 * hppa-linux-offsets.h: Add include guard.
14613 * guile/guile.h: Rename include guard.
14614 * guile/guile-internal.h: Rename include guard.
14615 * gnu-nat.h: Rename include guard.
14616 * gdb-stabs.h: Rename include guard.
14617 * frv-tdep.h: Add include guard.
14618 * f-lang.h: Add include guard.
14619 * event-loop.h: Add include guard.
14620 * darwin-nat.h: Rename include guard.
14621 * cp-abi.h: Rename include guard.
14622 * config/sparc/nm-sol2.h: Rename include guard.
14623 * config/nm-nto.h: Rename include guard.
14624 * config/nm-linux.h: Add include guard.
14625 * config/i386/nm-i386gnu.h: Rename include guard.
14626 * config/djgpp/nl_types.h: Rename include guard.
14627 * config/djgpp/langinfo.h: Rename include guard.
14628 * compile/gcc-cp-plugin.h: Add include guard.
14629 * compile/gcc-c-plugin.h: Add include guard.
14630 * compile/compile.h: Rename include guard.
14631 * compile/compile-object-run.h: Rename include guard.
14632 * compile/compile-object-load.h: Rename include guard.
14633 * compile/compile-internal.h: Rename include guard.
14634 * compile/compile-cplus.h: Rename include guard.
14635 * compile/compile-c.h: Rename include guard.
14636 * common/xml-utils.h: Rename include guard.
14637 * common/x86-xstate.h: Rename include guard.
14638 * common/version.h: Rename include guard.
14639 * common/vec.h: Rename include guard.
14640 * common/tdesc.h: Rename include guard.
14641 * common/selftest.h: Rename include guard.
14642 * common/scoped_restore.h: Rename include guard.
14643 * common/scoped_mmap.h: Rename include guard.
14644 * common/scoped_fd.h: Rename include guard.
14645 * common/safe-iterator.h: Rename include guard.
14646 * common/run-time-clock.h: Rename include guard.
14647 * common/refcounted-object.h: Rename include guard.
14648 * common/queue.h: Rename include guard.
14649 * common/ptid.h: Rename include guard.
14650 * common/print-utils.h: Rename include guard.
14651 * common/preprocessor.h: Rename include guard.
14652 * common/pathstuff.h: Rename include guard.
14653 * common/observable.h: Rename include guard.
14654 * common/netstuff.h: Rename include guard.
14655 * common/job-control.h: Rename include guard.
14656 * common/host-defs.h: Rename include guard.
14657 * common/gdb_wait.h: Rename include guard.
14658 * common/gdb_vecs.h: Rename include guard.
14659 * common/gdb_unlinker.h: Rename include guard.
14660 * common/gdb_unique_ptr.h: Rename include guard.
14661 * common/gdb_tilde_expand.h: Rename include guard.
14662 * common/gdb_sys_time.h: Rename include guard.
14663 * common/gdb_string_view.h: Rename include guard.
14664 * common/gdb_splay_tree.h: Rename include guard.
14665 * common/gdb_setjmp.h: Rename include guard.
14666 * common/gdb_ref_ptr.h: Rename include guard.
14667 * common/gdb_optional.h: Rename include guard.
14668 * common/gdb_locale.h: Rename include guard.
14669 * common/gdb_assert.h: Rename include guard.
14670 * common/filtered-iterator.h: Rename include guard.
14671 * common/filestuff.h: Rename include guard.
14672 * common/fileio.h: Rename include guard.
14673 * common/environ.h: Rename include guard.
14674 * common/common-utils.h: Rename include guard.
14675 * common/common-types.h: Rename include guard.
14676 * common/common-regcache.h: Rename include guard.
14677 * common/common-inferior.h: Rename include guard.
14678 * common/common-gdbthread.h: Rename include guard.
14679 * common/common-exceptions.h: Rename include guard.
14680 * common/common-defs.h: Rename include guard.
14681 * common/common-debug.h: Rename include guard.
14682 * common/cleanups.h: Rename include guard.
14683 * common/buffer.h: Rename include guard.
14684 * common/btrace-common.h: Rename include guard.
14685 * common/break-common.h: Rename include guard.
14686 * cli/cli-utils.h: Rename include guard.
14687 * cli/cli-style.h: Rename include guard.
14688 * cli/cli-setshow.h: Rename include guard.
14689 * cli/cli-script.h: Rename include guard.
14690 * cli/cli-interp.h: Rename include guard.
14691 * cli/cli-decode.h: Rename include guard.
14692 * cli/cli-cmds.h: Rename include guard.
14693 * charset-list.h: Add include guard.
14694 * buildsym-legacy.h: Rename include guard.
14695 * bfin-tdep.h: Add include guard.
14696 * ax.h: Rename include guard.
14697 * arm-linux-tdep.h: Add include guard.
14698 * arm-fbsd-tdep.h: Add include guard.
14699 * arch/xtensa.h: Rename include guard.
14700 * arch/tic6x.h: Add include guard.
14701 * arch/i386.h: Add include guard.
14702 * arch/arm.h: Rename include guard.
14703 * arch/arm-linux.h: Rename include guard.
14704 * arch/arm-get-next-pcs.h: Rename include guard.
14705 * arch/amd64.h: Add include guard.
14706 * arch/aarch64-insn.h: Rename include guard.
14707 * arch-utils.h: Rename include guard.
14708 * annotate.h: Add include guard.
14709 * amd64-darwin-tdep.h: Rename include guard.
14710 * aarch64-linux-tdep.h: Add include guard.
14711 * aarch64-fbsd-tdep.h: Add include guard.
14712 * aarch32-linux-nat.h: Add include guard.
14713
ab9268d2
PW
147142019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14715
14716 * macrotab.c (macro_define_internal): New function that
14717 factorizes macro_define_object_internal and macro_define_function
14718 code.
14719 (macro_define_object_internal): Use macro_define_internal.
14720 (macro_define_function): Likewise.
14721
bb0da2b4
PW
147222019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14723
14724 * macrocmd.c (extract_identifier): Return
14725 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14726 callers.
14727
424eb552
JB
147282019-02-06 John Baldwin <jhb@FreeBSD.org>
14729
14730 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14731
1688cb29
TT
147322019-02-05 Tom Tromey <tom@tromey.com>
14733
14734 * target.c (target_stack::unpush): Move assertion earlier.
14735
b5eba2d8
TT
147362019-01-30 Tom Tromey <tom@tromey.com>
14737
14738 PR python/23615:
14739 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14740 (gdbpy_parse_and_eval): Likewise.
14741 * python/python-internal.h (gdbpy_allow_threads): New class.
14742
7054e2ff
JB
147432019-01-28 John Baldwin <jhb@FreeBSD.org>
14744
14745 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14746 (aarch64_fbsd_fpregmap): Move earlier.
14747 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14748 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14749 instead of individual calls to trad_frame_set_reg_addr.
14750 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14751 earlier.
14752 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14753 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14754 instead of individual calls to trad_frame_set_reg_addr.
14755
36c25ffa
AH
147562019-01-28 Alan Hayward <alan.hayward@arm.com>
14757
14758 * CONTRIBUTE: Replace contribution list with wiki link.
14759
a0707f3c
TT
147602019-01-25 Tom Tromey <tom@tromey.com>
14761
14762 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14763
0747795c
TT
147642019-01-25 Tom Tromey <tom@tromey.com>
14765
14766 * xtensa-linux-nat.c: Fix common/ includes.
14767 * xml-support.h: Fix common/ includes.
14768 * xml-support.c: Fix common/ includes.
14769 * x86-linux-nat.c: Fix common/ includes.
14770 * windows-nat.c: Fix common/ includes.
14771 * varobj.h: Fix common/ includes.
14772 * varobj.c: Fix common/ includes.
14773 * value.c: Fix common/ includes.
14774 * valops.c: Fix common/ includes.
14775 * utils.c: Fix common/ includes.
14776 * unittests/xml-utils-selftests.c: Fix common/ includes.
14777 * unittests/utils-selftests.c: Fix common/ includes.
14778 * unittests/unpack-selftests.c: Fix common/ includes.
14779 * unittests/tracepoint-selftests.c: Fix common/ includes.
14780 * unittests/style-selftests.c: Fix common/ includes.
14781 * unittests/string_view-selftests.c: Fix common/ includes.
14782 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14783 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14784 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14785 * unittests/rsp-low-selftests.c: Fix common/ includes.
14786 * unittests/parse-connection-spec-selftests.c: Fix common/
14787 includes.
14788 * unittests/optional-selftests.c: Fix common/ includes.
14789 * unittests/offset-type-selftests.c: Fix common/ includes.
14790 * unittests/observable-selftests.c: Fix common/ includes.
14791 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14792 * unittests/memrange-selftests.c: Fix common/ includes.
14793 * unittests/memory-map-selftests.c: Fix common/ includes.
14794 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14795 * unittests/function-view-selftests.c: Fix common/ includes.
14796 * unittests/environ-selftests.c: Fix common/ includes.
14797 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14798 * unittests/common-utils-selftests.c: Fix common/ includes.
14799 * unittests/cli-utils-selftests.c: Fix common/ includes.
14800 * unittests/array-view-selftests.c: Fix common/ includes.
14801 * ui-file.c: Fix common/ includes.
14802 * tui/tui-io.c: Fix common/ includes.
14803 * tracepoint.h: Fix common/ includes.
14804 * tracepoint.c: Fix common/ includes.
14805 * tracefile-tfile.c: Fix common/ includes.
14806 * top.h: Fix common/ includes.
14807 * top.c: Fix common/ includes.
14808 * thread.c: Fix common/ includes.
14809 * target/waitstatus.h: Fix common/ includes.
14810 * target/waitstatus.c: Fix common/ includes.
14811 * target.h: Fix common/ includes.
14812 * target.c: Fix common/ includes.
14813 * target-memory.c: Fix common/ includes.
14814 * target-descriptions.c: Fix common/ includes.
14815 * symtab.h: Fix common/ includes.
14816 * symfile.c: Fix common/ includes.
14817 * stap-probe.c: Fix common/ includes.
14818 * spu-linux-nat.c: Fix common/ includes.
14819 * sparc-nat.c: Fix common/ includes.
14820 * source.c: Fix common/ includes.
14821 * solib.c: Fix common/ includes.
14822 * solib-target.c: Fix common/ includes.
14823 * ser-unix.c: Fix common/ includes.
14824 * ser-tcp.c: Fix common/ includes.
14825 * ser-pipe.c: Fix common/ includes.
14826 * ser-base.c: Fix common/ includes.
14827 * selftest-arch.c: Fix common/ includes.
14828 * s12z-tdep.c: Fix common/ includes.
14829 * rust-exp.y: Fix common/ includes.
14830 * rs6000-aix-tdep.c: Fix common/ includes.
14831 * riscv-tdep.c: Fix common/ includes.
14832 * remote.c: Fix common/ includes.
14833 * remote-notif.h: Fix common/ includes.
14834 * remote-fileio.h: Fix common/ includes.
14835 * remote-fileio.c: Fix common/ includes.
14836 * regcache.h: Fix common/ includes.
14837 * regcache.c: Fix common/ includes.
14838 * record-btrace.c: Fix common/ includes.
14839 * python/python.c: Fix common/ includes.
14840 * python/py-type.c: Fix common/ includes.
14841 * python/py-inferior.c: Fix common/ includes.
14842 * progspace.h: Fix common/ includes.
14843 * producer.c: Fix common/ includes.
14844 * procfs.c: Fix common/ includes.
14845 * proc-api.c: Fix common/ includes.
14846 * printcmd.c: Fix common/ includes.
14847 * ppc-linux-nat.c: Fix common/ includes.
14848 * parser-defs.h: Fix common/ includes.
14849 * osdata.c: Fix common/ includes.
14850 * obsd-nat.c: Fix common/ includes.
14851 * nat/x86-linux.c: Fix common/ includes.
14852 * nat/x86-linux-dregs.c: Fix common/ includes.
14853 * nat/x86-dregs.h: Fix common/ includes.
14854 * nat/x86-dregs.c: Fix common/ includes.
14855 * nat/ppc-linux.c: Fix common/ includes.
14856 * nat/mips-linux-watch.h: Fix common/ includes.
14857 * nat/mips-linux-watch.c: Fix common/ includes.
14858 * nat/linux-waitpid.c: Fix common/ includes.
14859 * nat/linux-ptrace.h: Fix common/ includes.
14860 * nat/linux-ptrace.c: Fix common/ includes.
14861 * nat/linux-procfs.c: Fix common/ includes.
14862 * nat/linux-personality.c: Fix common/ includes.
14863 * nat/linux-osdata.c: Fix common/ includes.
14864 * nat/linux-namespaces.c: Fix common/ includes.
14865 * nat/linux-btrace.h: Fix common/ includes.
14866 * nat/linux-btrace.c: Fix common/ includes.
14867 * nat/fork-inferior.c: Fix common/ includes.
14868 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14869 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14870 * nat/aarch64-linux.c: Fix common/ includes.
14871 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14872 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14873 * namespace.h: Fix common/ includes.
14874 * mips-linux-tdep.c: Fix common/ includes.
14875 * minsyms.c: Fix common/ includes.
14876 * mi/mi-parse.h: Fix common/ includes.
14877 * mi/mi-main.c: Fix common/ includes.
14878 * mi/mi-cmd-env.c: Fix common/ includes.
14879 * memrange.h: Fix common/ includes.
14880 * memattr.c: Fix common/ includes.
14881 * maint.h: Fix common/ includes.
14882 * maint.c: Fix common/ includes.
14883 * main.c: Fix common/ includes.
14884 * machoread.c: Fix common/ includes.
14885 * location.c: Fix common/ includes.
14886 * linux-thread-db.c: Fix common/ includes.
14887 * linux-nat.c: Fix common/ includes.
14888 * linux-fork.c: Fix common/ includes.
14889 * inline-frame.c: Fix common/ includes.
14890 * infrun.c: Fix common/ includes.
14891 * inflow.c: Fix common/ includes.
14892 * inferior.h: Fix common/ includes.
14893 * inferior.c: Fix common/ includes.
14894 * infcmd.c: Fix common/ includes.
14895 * inf-ptrace.c: Fix common/ includes.
14896 * inf-child.c: Fix common/ includes.
14897 * ia64-linux-nat.c: Fix common/ includes.
14898 * i387-tdep.c: Fix common/ includes.
14899 * i386-tdep.c: Fix common/ includes.
14900 * i386-linux-tdep.c: Fix common/ includes.
14901 * i386-linux-nat.c: Fix common/ includes.
14902 * i386-go32-tdep.c: Fix common/ includes.
14903 * i386-fbsd-tdep.c: Fix common/ includes.
14904 * i386-fbsd-nat.c: Fix common/ includes.
14905 * guile/scm-type.c: Fix common/ includes.
14906 * guile/guile.c: Fix common/ includes.
14907 * go32-nat.c: Fix common/ includes.
14908 * gnu-nat.c: Fix common/ includes.
14909 * gdbthread.h: Fix common/ includes.
14910 * gdbarch-selftests.c: Fix common/ includes.
14911 * gdb_usleep.c: Fix common/ includes.
14912 * gdb_select.h: Fix common/ includes.
14913 * gdb_bfd.c: Fix common/ includes.
14914 * gcore.c: Fix common/ includes.
14915 * fork-child.c: Fix common/ includes.
14916 * findvar.c: Fix common/ includes.
14917 * fbsd-nat.c: Fix common/ includes.
14918 * event-top.c: Fix common/ includes.
14919 * event-loop.c: Fix common/ includes.
14920 * dwarf2read.c: Fix common/ includes.
14921 * dwarf2loc.c: Fix common/ includes.
14922 * dwarf2-frame.c: Fix common/ includes.
14923 * dwarf-index-cache.c: Fix common/ includes.
14924 * dtrace-probe.c: Fix common/ includes.
14925 * disasm-selftests.c: Fix common/ includes.
14926 * defs.h: Fix common/ includes.
14927 * csky-tdep.c: Fix common/ includes.
14928 * cp-valprint.c: Fix common/ includes.
14929 * cp-support.h: Fix common/ includes.
14930 * cp-support.c: Fix common/ includes.
14931 * corelow.c: Fix common/ includes.
14932 * completer.h: Fix common/ includes.
14933 * completer.c: Fix common/ includes.
14934 * compile/compile.c: Fix common/ includes.
14935 * compile/compile-loc2c.c: Fix common/ includes.
14936 * compile/compile-cplus-types.c: Fix common/ includes.
14937 * compile/compile-cplus-symbols.c: Fix common/ includes.
14938 * command.h: Fix common/ includes.
14939 * cli/cli-dump.c: Fix common/ includes.
14940 * cli/cli-cmds.c: Fix common/ includes.
14941 * charset.c: Fix common/ includes.
14942 * build-id.c: Fix common/ includes.
14943 * btrace.h: Fix common/ includes.
14944 * btrace.c: Fix common/ includes.
14945 * breakpoint.h: Fix common/ includes.
14946 * breakpoint.c: Fix common/ includes.
14947 * ax.h:
14948 (enum agent_op): Fix common/ includes.
14949 * ax-general.c (struct aop_map): Fix common/ includes.
14950 * ax-gdb.c: Fix common/ includes.
14951 * auxv.c: Fix common/ includes.
14952 * auto-load.c: Fix common/ includes.
14953 * arm-tdep.c: Fix common/ includes.
14954 * arch/riscv.c: Fix common/ includes.
14955 * arch/ppc-linux-common.c: Fix common/ includes.
14956 * arch/i386.c: Fix common/ includes.
14957 * arch/arm.c: Fix common/ includes.
14958 * arch/arm-linux.c: Fix common/ includes.
14959 * arch/arm-get-next-pcs.c: Fix common/ includes.
14960 * arch/amd64.c: Fix common/ includes.
14961 * arch/aarch64.c: Fix common/ includes.
14962 * arch/aarch64-insn.c: Fix common/ includes.
14963 * arch-utils.c: Fix common/ includes.
14964 * amd64-windows-tdep.c: Fix common/ includes.
14965 * amd64-tdep.c: Fix common/ includes.
14966 * amd64-sol2-tdep.c: Fix common/ includes.
14967 * amd64-obsd-tdep.c: Fix common/ includes.
14968 * amd64-nbsd-tdep.c: Fix common/ includes.
14969 * amd64-linux-tdep.c: Fix common/ includes.
14970 * amd64-linux-nat.c: Fix common/ includes.
14971 * amd64-fbsd-tdep.c: Fix common/ includes.
14972 * amd64-fbsd-nat.c: Fix common/ includes.
14973 * amd64-dicos-tdep.c: Fix common/ includes.
14974 * amd64-darwin-tdep.c: Fix common/ includes.
14975 * agent.c: Fix common/ includes.
14976 * ada-lang.h: Fix common/ includes.
14977 * ada-lang.c: Fix common/ includes.
14978 * aarch64-tdep.c: Fix common/ includes.
14979
2f5c153e
TT
149802019-01-25 Tom Tromey <tom@tromey.com>
14981
14982 * common/create-version.sh: Use common/version.h.
14983
adc6a863
PA
149842019-01-24 Pedro Alves <palves@redhat.com>
14985
14986 * infrun.c (signal_stop, signal_print, signal_program)
14987 (signal_catch, signal_pass): Now arrays instead of pointers.
14988 (update_signals_program_target, do_target_resume)
14989 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14990 * linux-nat.c (linux_nat_target::pass_signals)
14991 (linux_nat_target::create_inferior, linux_nat_target::attach):
14992 Adjust.
14993 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14994 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14995 * procfs.c (procfs_target::pass_signals): Adjust.
14996 * record-full.c (record_full_target::resume): Adjust.
14997 * remote.c (remote_target::pass_signals)
14998 (remote_target::program_signals): Adjust.
14999 * target-debug.h (target_debug_print_signals): Now takes a
15000 gdb::array_view as parameter. Adjust.
15001 * target.h (target_ops) <pass_signals, program_signals>: Replace
15002 pointer and length parameters with gdb::array_view.
15003 (target_pass_signals, target_program_signals): Likewise.
15004 * target-delegates.c: Regenerate.
15005
3046d67a
PA
150062019-01-24 Pedro Alves <palves@redhat.com>
15007
15008 * common/forward-scope-exit.h
15009 (forward_scope_exit::forward_scope_exit): Pass arguments to
15010 m_bind_function directly, instead of creating a std::bind and
15011 copying that.
15012
353229bf
AH
150132019-01-24 Alan Hayward <alan.hayward@arm.com>
15014
15015 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15016 for static members.
15017 (pass_in_v_vfp_candidate): Likewise.
15018
311dc83a
TT
150192019-01-23 Tom Tromey <tom@tromey.com>
15020 Pedro Alves <palves@redhat.com>
15021
15022 * regcache.c (class regcache_invalidator): Remove.
15023 (regcache::raw_write): Use make_scope_exit.
15024
296bd123
TT
150252019-01-23 Tom Tromey <tom@tromey.com>
15026
15027 * ui-out.h (class ui_out_emit_type): Update comment.
15028
979a0d13
TT
150292019-01-23 Tom Tromey <tom@tromey.com>
15030
15031 * infrun.c (fetch_inferior_event): Update comment.
15032
d238133d
TT
150332019-01-23 Tom Tromey <tom@tromey.com>
15034 Pedro Alves <palves@redhat.com>
15035
15036 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15037 parameter.
15038 (fetch_inferior_event): Use SCOPE_EXIT.
15039
15040
9885e6bb
TT
150412019-01-23 Tom Tromey <tom@tromey.com>
15042 Pedro Alves <palves@redhat.com>
15043
15044 * infrun.c (disable_thread_events): Delete.
15045 (stop_all_threads): Use SCOPE_EXIT.
15046
286526c1
TT
150472019-01-23 Tom Tromey <tom@tromey.com>
15048 Pedro Alves <palves@redhat.com>
15049
15050 * symfile.c: Include forward-scope-exit.h.
15051 (clear_symtab_users_cleanup): Replace forward declaration with
15052 a FORWARD_SCOPE_EXIT.
15053 (syms_from_objfile_1): Use the forward_scope_exit and
15054 gdb::optional instead of cleanup_function.
15055 (reread_symbols): Use the forward_scope_exit instead of
15056 cleanup_function.
15057 (clear_symtab_users_cleanup): Remove function.
15058
1db93f14
TT
150592019-01-23 Tom Tromey <tom@tromey.com>
15060 Pedro Alves <palves@redhat.com>
15061
15062 * linux-nat.c: Include scope-exit.h.
15063 (cleanup_target_stop): Remove.
15064 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15065 SCOPE_EXIT.
15066
2cc83d1e
TT
150672019-01-23 Tom Tromey <tom@tromey.com>
15068 Pedro Alves <palves@redhat.com>
15069
15070 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15071 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15072
694c6bf5
TT
150732019-01-23 Tom Tromey <tom@tromey.com>
15074 Andrew Burgess <andrew.burgess@embecosm.com>
15075 Pedro Alves <palves@redhat.com>
15076
15077 * infrun.c (fetch_inferior_event): Use scope_exit.
15078 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15079 * top.c (execute_command): Use scope_exit.
15080 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15081 * utils.c (do_bpstat_clear_actions_cleanup)
15082 (make_bpstat_clear_actions_cleanup): Remove.
15083
4c41382a
TT
150842019-01-23 Tom Tromey <tom@tromey.com>
15085 Pedro Alves <palves@redhat.com>
15086
15087 * infrun.c: Include "common/scope-exit.h"
15088 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15089 (wait_for_inferior): Use SCOPE_EXIT.
15090 (fetch_inferior_event): Use scope_exit.
15091
89f8fb50
TT
150922019-01-23 Tom Tromey <tom@tromey.com>
15093 Pedro Alves <palves@redhat.com>
15094
15095 * breakpoint.c (create_breakpoint): Remove cleanup.
15096
5419bdae
TT
150972019-01-23 Tom Tromey <tom@tromey.com>
15098 Andrew Burgess <andrew.burgess@embecosm.com>
15099 Pedro Alves <palves@redhat.com>
15100
e587ef42
PA
151012019-01-23 Pedro Alves <palves@redhat.com>
15102
15103 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15104
77f0e74c
PA
151052019-01-23 Pedro Alves <palves@redhat.com>
15106 Andrew Burgess <andrew.burgess@embecosm.com>
15107
15108 * gdbthread.h: Include "common/forward-scope-exit.h".
15109 (scoped_finish_thread_state): Redefine custom class in terms of
15110 forward_scope_exit.
15111
5b9b3e53
PA
151122019-01-23 Pedro Alves <palves@redhat.com>
15113 Andrew Burgess <andrew.burgess@embecosm.com>
15114
15115 * common/forward-scope-exit.h: New file.
15116
54b65c9b
PA
151172019-01-23 Pedro Alves <palves@redhat.com>
15118 Andrew Burgess <andrew.burgess@embecosm.com>
15119 Tom Tromey <tom@tromey.com>
15120
15121 * common/scope-exit.h: New file.
15122
cf08fb29
PA
151232019-01-23 Pedro Alves <palves@redhat.com>
15124
15125 * common/preprocessor.h (ESC): Rename to ...
15126 (ESC_PARENS): ... this.
15127 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15128 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15129
ae73e2e2
TT
151302019-01-23 Tom Tromey <tom@tromey.com>
15131
15132 * language.h (class scoped_switch_to_sym_language_if_auto):
15133 Initialize m_lang in both cases.
15134
6594e122
AH
151352019-01-23 Alan Hayward <alan.hayward@arm.com>
15136
15137 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15138 with XCNEW.
15139
a7c9855d
TT
151402019-01-22 Tom Tromey <tom@tromey.com>
15141
15142 * corelow.c: Do not include sys/file.h.
15143
93cc1d53
TT
151442019-01-22 Tom Tromey <tom@tromey.com>
15145
15146 * tui/tui-wingeneral.h: Include gdb_curses.h.
15147
38561778
TT
151482019-01-22 Tom Tromey <tom@tromey.com>
15149
15150 * source-cache.h (class source_cache) <get_source_lines,
15151 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15152
37b3ab5b
TT
151532019-01-22 Tom Tromey <tom@tromey.com>
15154
15155 * remote-fileio.h (struct remote_target): Declare.
15156
3fabc016
TT
151572019-01-22 Tom Tromey <tom@tromey.com>
15158
15159 * python/py-arch.c: Do not include py-ref.h.
15160 * python/py-bpevent.c: Do not include py-ref.h.
15161 * python/py-cmd.c: Do not include py-ref.h.
15162 * python/py-continueevent.c: Do not include py-ref.h.
15163 * python/py-event.h: Do not include py-ref.h.
15164 * python/py-evtregistry.c: Do not include py-ref.h.
15165 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15166 * python/py-frame.c: Do not include py-ref.h.
15167 * python/py-framefilter.c: Do not include py-ref.h.
15168 * python/py-function.c: Do not include py-ref.h.
15169 * python/py-infevents.c: Do not include py-ref.h.
15170 * python/py-linetable.c: Do not include py-ref.h.
15171 * python/py-objfile.c: Do not include py-ref.h.
15172 * python/py-param.c: Do not include py-ref.h.
15173 * python/py-prettyprint.c: Do not include py-ref.h.
15174 * python/py-progspace.c: Do not include py-ref.h.
15175 * python/py-symbol.c: Do not include py-ref.h.
15176 * python/py-symtab.c: Do not include py-ref.h.
15177 * python/py-type.c: Do not include py-ref.h.
15178 * python/py-unwind.c: Do not include py-ref.h.
15179 * python/py-utils.c: Do not include py-ref.h.
15180 * python/py-value.c: Do not include py-ref.h.
15181 * python/py-varobj.c: Do not include py-ref.h.
15182 * python/py-xmethods.c: Do not include py-ref.h.
15183 * python/python.c: Do not include py-ref.h.
15184 * varobj.c: Do not include py-ref.h.
15185
6b4d7774
TT
151862019-01-22 Tom Tromey <tom@tromey.com>
15187
15188 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15189 keyword for bcache.
15190
7af7e9b5
TT
151912019-01-22 Tom Tromey <tom@tromey.com>
15192
15193 * compile/compile-cplus-types.c: Remove a comment by #include.
15194
951d1049
TT
151952019-01-22 Tom Tromey <tom@tromey.com>
15196
15197 * compile/gcc-c-plugin.h: Include compile-internal.h.
15198
d65d5705
TT
151992019-01-22 Tom Tromey <tom@tromey.com>
15200
15201 * stabsread.c (EXTERN): Do not define.
15202 (symnum, next_symbol_text_func, processing_gcc_compilation)
15203 (within_function, global_sym_chain, global_stabs)
15204 (previous_stab_code, this_object_header_files)
15205 (n_this_object_header_files)
15206 (n_allocated_this_object_header_files): Define.
15207 * stabsread.h (EXTERN): Never define. Use "extern".
15208
b6fb1ee5
PW
152092019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15210
15211 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15212 history_value.
15213
be6d4f74
TT
152142019-01-21 Tom Tromey <tom@tromey.com>
15215
15216 * ui-out.c: Fix includes.
15217 * tui/tui-source.c: Fix includes.
15218 * target.c: Fix includes.
15219 * remote.c: Fix includes.
15220 * regcache.c: Fix includes.
15221 * python/py-block.c: Fix includes.
15222 * printcmd.c: Fix includes.
15223 * or1k-tdep.c: Fix includes.
15224 * mi/mi-main.c: Fix includes.
15225 * m32r-tdep.c: Fix includes.
15226 * csky-tdep.c: Fix includes.
15227 * compile/compile-cplus-types.c: Fix includes.
15228 * cli/cli-interp.c: Fix includes.
15229
73021deb
AH
152302019-01-21 Alan Hayward <alan.hayward@arm.com>
15231
15232 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15233 for padding.
15234
7932255d
TT
152352019-01-16 Tom Tromey <tom@tromey.com>
15236
15237 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15238 earlier.
15239 (struct objfile) <msymbols_range>: Move from top level.
15240 <msymbols>: New method.
15241 (class objfile_msymbols): Remove.
15242 * symtab.c (default_collect_symbol_completion_matches_break_on):
15243 Update.
15244 * symmisc.c (dump_msymbols): Update.
15245 * stabsread.c (scan_file_globals): Update.
15246 * objc-lang.c (info_selectors_command, info_classes_command)
15247 (find_methods): Update.
15248 * minsyms.c (find_solib_trampoline_target): Update.
15249 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15250 * coffread.c (coff_symfile_read): Update.
15251 * ada-lang.c (ada_lookup_simple_minsym)
15252 (ada_collect_symbol_completion_matches): Update.
15253
604b1bfb
TT
152542019-01-16 Tom Tromey <tom@tromey.com>
15255
15256 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15257 type. Remove no-argument constructor.
15258 <iterator::operator++>: Simplify.
15259 <begin>: Update.
15260 <end>: Use minimal_symbol_count.
15261
f252c6d5
TT
152622019-01-16 Tom Tromey <tom@tromey.com>
15263
15264 * objfiles.h (struct objfile) <psymtabs>: New method.
15265 (class objfile_psymtabs): Remove.
15266 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15267 typedef.
15268 <range>: New method.
15269 (require_partial_symbols): Change return type.
15270 * psymtab.c (require_partial_symbols)
15271 (psym_expand_symtabs_matching): Update.
15272 * mdebugread.c (parse_partial_symbols): Update.
15273 * dbxread.c (dbx_end_psymtab): Update.
15274
b669c953
TT
152752019-01-15 Tom Tromey <tom@tromey.com>
15276
15277 * symtab.c (lookup_objfile_from_block)
15278 (lookup_symbol_in_objfile_symtabs)
15279 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15280 (find_line_symtab, info_sources_command)
15281 (default_collect_symbol_completion_matches_break_on)
15282 (make_source_files_completion_list): Update.
15283 * symmisc.c (print_objfile_statistics, dump_objfile)
15284 (maintenance_print_symbols, maintenance_info_symtabs)
15285 (maintenance_check_symtabs, maintenance_info_line_tables):
15286 Update.
15287 * source.c (select_source_symtab)
15288 (forget_cached_source_info_for_objfile): Update.
15289 * objfiles.h (class objfile_compunits): Remove.
15290 (struct objfile) <compunits_range>: New typedef.
15291 (compunits): New method.
15292 * objfiles.c (objfile_relocate1): Update.
15293 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15294 * maint.c (count_symtabs_and_blocks): Update.
15295 * linespec.c (iterate_over_all_matching_symtabs): Update.
15296 * cp-support.c (add_symbol_overload_list_qualified): Update.
15297 * coffread.c (coff_symtab_read): Update.
15298 * ada-lang.c (add_nonlocal_symbols)
15299 (ada_collect_symbol_completion_matches)
15300 (ada_add_global_exceptions): Update.
15301
7e955d83
TT
153022019-01-15 Tom Tromey <tom@tromey.com>
15303
15304 * progspace.h (program_space) <objfiles_safe_range>: New
15305 typedef.
15306 <objfiles_safe>: New method.
15307 * objfiles.h (class all_objfiles_safe): Remove.
15308 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15309 * jit.c (jit_inferior_exit_hook): Update.
15310
2030c079
TT
153112019-01-17 Tom Tromey <tom@tromey.com>
15312
15313 * progspace.h (program_space) <objfiles_range>: New typedef.
15314 <objfiles>: New method.
15315 <objfiles_head>: Rename from objfiles.
15316 (object_files): Update.
15317 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15318 * guile/scm-pretty-print.c
15319 (ppscm_find_pretty_printer_from_objfiles): Update.
15320 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15321 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15322 Update.
15323 * python/py-progspace.c (pspy_get_objfiles): Update.
15324 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15325 Update.
15326 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15327 (objfpy_lookup_objfile_by_build_id): Update.
15328 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15329 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15330 Update.
15331 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15332 (expand_symtab_containing_pc, lookup_objfile_from_block)
15333 (lookup_static_symbol, basic_lookup_transparent_type)
15334 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15335 (find_line_symtab, info_sources_command)
15336 (default_collect_symbol_completion_matches_break_on)
15337 (make_source_files_completion_list, find_main_name): Update.
15338 * symmisc.c (print_symbol_bcache_statistics)
15339 (print_objfile_statistics, maintenance_print_symbols)
15340 (maintenance_print_msymbols, maintenance_print_objfiles)
15341 (maintenance_info_symtabs, maintenance_check_symtabs)
15342 (maintenance_expand_symtabs, maintenance_info_line_tables):
15343 Update.
15344 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15345 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15346 (map_overlay_command, unmap_overlay_command)
15347 (simple_overlay_update, expand_symtabs_matching)
15348 (map_symbol_filenames): Update.
15349 * symfile-debug.c (set_debug_symfile): Update.
15350 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15351 Update.
15352 * source.c (select_source_symtab, forget_cached_source_info):
15353 Update.
15354 * solib.c (solib_read_symbols): Update.
15355 * solib-spu.c (append_ocl_sos): Update.
15356 * psymtab.c (maintenance_print_psymbols)
15357 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15358 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15359 * printcmd.c (info_symbol_command): Update.
15360 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15361 Update.
15362 * objfiles.h (class all_objfiles): Remove.
15363 * objfiles.c (have_partial_symbols, have_full_symbols)
15364 (have_minimal_symbols, qsort_cmp, update_section_map)
15365 (shared_objfile_contains_address_p)
15366 (default_iterate_over_objfiles_in_search_order): Update.
15367 * objc-lang.c (info_selectors_command, info_classes_command)
15368 (find_methods): Update.
15369 * minsyms.c (find_solib_trampoline_target): Update.
15370 * maint.c (maintenance_info_sections)
15371 (maintenance_translate_address, count_symtabs_and_blocks):
15372 Update.
15373 * main.c (captured_main_1): Update.
15374 * linux-thread-db.c (try_thread_db_load_from_pdir)
15375 (has_libpthread): Update.
15376 * linespec.c (iterate_over_all_matching_symtabs)
15377 (search_minsyms_for_name): Update.
15378 * jit.c (jit_find_objf_with_entry_addr): Update.
15379 * hppa-tdep.c (find_unwind_entry)
15380 (hppa_lookup_stub_minimal_symbol): Update.
15381 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15382 Update.
15383 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15384 (elf_gnu_ifunc_resolve_by_got): Update.
15385 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15386 * dwarf-index-write.c (save_gdb_index_command): Update.
15387 * cp-support.c (add_symbol_overload_list_qualified): Update.
15388 * breakpoint.c (create_overlay_event_breakpoint)
15389 (create_longjmp_master_breakpoint)
15390 (create_std_terminate_master_breakpoint)
15391 (create_exception_master_breakpoint): Update.
15392 * blockframe.c (find_pc_partial_function): Update.
15393 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15394 (ada_collect_symbol_completion_matches)
15395 (ada_add_global_exceptions): Update.
15396
776489e0
TT
153972019-01-17 Tom Tromey <tom@tromey.com>
15398
15399 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15400 declare VEC.
15401 (solib_target_parse_libraries): Change return type.
15402 (library_list_start_segment, library_list_start_section)
15403 (library_list_end_library, library_list_start_library); Update.
15404 (solib_target_free_library_list): Remove.
15405 (solib_target_parse_libraries): Remove cleanup. Change return
15406 type.
15407 (solib_target_current_sos): Update.
15408
6471e7d2
TT
154092019-01-17 Tom Tromey <tromey@bapiya>
15410
15411 * valprint.c: Replace "the the" with "the".
15412 * symtab.c: Replace "the the" with "the".
15413 * solib.c: Replace "the the" with "the".
15414 * solib-dsbt.c: Replace "the the" with "the".
15415 * linespec.c: Replace "the the" with "the".
15416 * dwarf2loc.h: Replace "the the" with "the".
15417 * amd64-windows-tdep.c: Replace "the the" with "the".
15418 * aarch64-tdep.c: Replace "the the" with "the".
15419
c24bdb02
KS
154202019-01-16 Keith Seitz <keiths@redhat.com>
15421
15422 PR gdb/23773
15423 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15424 <builder>: Rename to ..
15425 <m_builder>: ... this and make private.
15426 (dwarf2_cu::get_builder): New method. Change all users of
15427 `builder' to use this method.
15428 (dwarf2_start_symtab): Move to ...
15429 (dwarf2_cu::start_symtab): ... here. Update all callers
15430 (setup_type_unit_groups): Move to ...
15431 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15432 callers.
15433 (dwarf2_cu::reset_builder): New method.
15434 (process_full_compunit, process_full_type_unit): Use
15435 dwarf2_cu::reset_builder.
15436 (follow_die_offset): Record the ancestor CU if it is different
15437 from the followed DIE's CU.
15438 (follow_die_sig_1): Likewise.
15439
8d64371b
TT
154402019-01-15 Tom Tromey <tom@tromey.com>
15441
15442 * remote.c (class remote_state) <buf>: Now a char_vector.
15443 <buf_size>: Remove.
15444 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15445 parameter.
15446 (remote_target::getpkt_or_notif_sane_1)
15447 (remote_target::getpkt_sane)
15448 (remote_target::getpkt_or_notif_sane): Likewise.
15449 (class remote_target) <putpkt>: New overload.
15450 (remote_target::read_frame): Change type of "buf_p". Remove
15451 sizeof_p parameter.
15452 (packet_ok): New overload.
15453 (packet_check_result): New overload.
15454 Update all uses.
15455
bb277751
TT
154562019-01-14 Tom Tromey <tom@tromey.com>
15457
15458 * remote-notif.c (handle_notification, remote_notif_ack)
15459 (remote_notif_parse): Make "buf" const.
15460 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15461 const.
15462 (remote_notif_parse, remote_notif_ack, handle_notification):
15463 Likewise.
15464 * remote.c (remote_notif_stop_parse): Make "buf" const.
15465 (remote_target::remote_parse_stop_reply): Make "buf" const.
15466 (remote_notif_stop_ack): Make "buf" const.
15467
05be00a8
TT
154682019-01-14 Tom Tromey <tom@tromey.com>
15469
15470 * remote.c (remote_console_output): Make parameter const.
15471
491adeca
TT
154722019-01-14 Tom Tromey <tom@tromey.com>
15473
15474 * target-debug.h (target_debug_print_signals): Constify.
15475 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15476 * procfs.c (procfs_target::pass_signals): Update.
15477 * linux-nat.c (linux_nat_target::pass_signals): Update.
15478 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15479 * target-delegates.c: Rebuild.
15480 * remote.c (remote_target::program_signals): Update.
15481 (remote_target::pass_signals): Update.
15482 * target.c (target_pass_signals): Constify argument.
15483 (target_program_signals): Likewise.
15484 * target.h (struct target_ops) <pass_signals, program_signals>:
15485 Constify argument.
15486 (target_pass_signals, target_program_signals): Constify argument.
15487
bbd94648
TT
154882019-01-14 Tom Tromey <tom@tromey.com>
15489
15490 PR tui/28819:
15491 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15492
6f072a10
PFC
154932019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15494
15495 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15496 field.
15497 * rs6000-tdep.c: Include reggroups.h.
15498 (IS_V_ALIAS_PSEUDOREG): Define.
15499 (rs6000_register_name): Return names for the "vX" aliases.
15500 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15501 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15502 aliases. Call default_register_reggroup_p for all other
15503 pseudo-registers.
15504 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15505 New functions.
15506 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15507 Handle "vX" aliases.
15508 (v_alias_pseudo_register_collect): New function.
15509 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15510 (rs6000_gdbarch_init): Initialize "vX" aliases as
15511 pseudo-registers. Restore registration of
15512 rs6000_pseudo_register_reggroup_p with
15513 set_tdesc_pseudo_register_reggroup_p.
15514
1a782351
MF
155152019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15516
15517 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15518 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15519 set_gdbarch_num_pseudo_regs.
15520
d73cff18
PW
155212019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15522
15523 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15524 Remove arg prefixname, add do_set and do_show.
15525 Add member functions set_list and show_list.
15526 * cli/cli-style.c (class cli_style_option): Update accordingly.
15527 (style_set_list): Move to file scope.
15528 (style_show_list): Likewise.
15529 (set_style): Call help_list.
15530 (show_style): Call cmd_show_list.
15531 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15532 Update to use the new macro.
15533
60a90376
JB
155342019-10-12 Joel Brobecker <brobecker@adacore.com>
15535
15536 * ada-lang.c (_initialize_ada_language): Expand the help text
15537 for the "catch exception" command.
15538
9d7c67bf
PW
155392019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15540
15541 * symtab.c (matching_obj_sections): Initialize obj,
15542 declare it closer to its usage.
15543
7cf47dc4
TT
155442019-01-10 Tom Tromey <tom@tromey.com>
15545
15546 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15547 (basic_inf_threads_range): Remove.
15548 (inf_threads_range, inf_non_exited_threads_range)
15549 (safe_inf_threads_range): Use next_adapter.
15550
d3cb6808
KS
155512019-01-10 Keith Seitz <keiths@redhat.com>
15552
15553 PR gdb/23712
15554 PR symtab/23010
15555 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15556 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15557
63a20375
KS
155582019-01-10 Keith Seitz <keiths@redhat.com>
15559
15560 PR gdb/23712
15561 PR symtab/23010
15562 * dictionary.c (pending_to_vector): Remove.
15563 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15564 Remove _1 suffix, replacing functions of the same name. Update
15565 all callers.
15566 (dict_create_hashed, dict_create_hashed_expandable)
15567 (dict_create_linear, dict_create_linear_expandable, dict_free)
15568 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15569 Make functions static.
15570
b026f593
KS
155712019-01-10 Keith Seitz <keiths@redhat.com>
15572
15573 PR gdb/23712
15574 PR symtab/23010
15575 * dictionary.h (struct dictionary): Replace declaration with
15576 multidictionary.
15577 (dict_create_hashed, dict_create_hashed_expandable)
15578 (dict_create_linear, dict_create_linear_expandable)
15579 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15580 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15581 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15582 taking multidictionary argument.
15583 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15584 * block.h (struct block) <dict>: Change to multidictionary
15585 and rename `multidict'.
15586 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15587 symmisc.c: Update all dictionary references to multidictionary.
15588
c7748ee9
KS
155892019-01-10 Keith Seitz <keiths@redhat.com>
15590
15591 PR gdb/23712
15592 PR symtab/23010
15593 * dictionary.c: Include unordered_map.
15594 (pending_to_vector): New function.
15595 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15596 Rewrite the non-"_1" functions to take vector instead
15597 of linked list.
15598 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15599 "new" _1 versions of the same name.
15600 (multidictionary): Define.
15601 (std::hash<enum language): New definition.
15602 (collate_pending_symbols_by_language, mdict_create_hashed)
15603 (mdict_create_hashed_expandable, mdict_create_linear)
15604 (mdict_create_linear_expandable, mdict_free)
15605 (find_language_dictionary, create_new_language_dictionary)
15606 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15607 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15608 (mdict_size, mdict_empty): New functions.
15609 * dictionary.h (mdict_iterator): Define.
15610
67aa1f3c
PA
156112019-01-10 Pedro Alves <palves@redhat.com>
15612
15613 * breakpoint.c (read_uploaded_action)
15614 (create_tracepoint_from_upload): Adjust to use
15615 gdb::unique_xmalloc_ptr.
15616 * ctf.c (ctf_write_uploaded_tp):
15617 (SET_ARRAY_FIELD): Use emplace_back.
15618 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15619 * tracefile-tfile.c (tfile_write_uploaded_tp):
15620 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15621 gdb::unique_xmalloc_ptr.
15622 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15623 at_string, cond_string, cmd_strings>: Replace char pointers
15624 with gdb::unique_xmalloc_ptr.
15625
2f667667
PA
156262019-01-10 Pedro Alves <palves@redhat.com>
15627
15628 * solib-target.c (library_list_start_library): Don't xstrdup name.
15629
36cb7237
PA
156302019-01-10 Pedro Alves <palves@redhat.com>
15631
15632 * mdebugread.c (parse_partial_symbols): Use
15633 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15634
da584958
AB
156352019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15636
15637 * linux-fork.c (scoped_switch_fork_info)
15638 <~scoped_switch_fork_info>: Fix incorrect variable name.
15639
1ef8573c
AB
156402019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15641
15642 * linux-fork.c (scoped_switch_fork_info)
15643 <scoped_switch_fork_info>: Make explicit.
15644 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15645
8d7bcccb
TT
156462019-01-10 Tom Tromey <tom@tromey.com>
15647
15648 * objfiles.h (objfile::reset_psymtabs): Update.
15649 * objfiles.c (objfile::objfile): Update.
15650 * psymtab.h (psymtab_storage::obstack): Update.
15651 (psymtab_storage::m_obstack): Use gdb::optional.
15652 (class psymtab_storage): Update comment. Remove objfile
15653 parameter.
15654 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15655
b596a3c7
TT
156562019-01-10 Tom Tromey <tom@tromey.com>
15657
15658 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15659 <free_psymtabs>: Now private.
15660 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15661 (allocate_psymtab): Use new method.
15662
a9342b62
TT
156632019-01-10 Tom Tromey <tom@tromey.com>
15664
15665 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15666 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15667 * mdebugread.c (parse_partial_symbols): Use
15668 allocate_dependencies.
15669 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15670 allocate_dependencies.
15671 (process_psymtab_comp_unit_reader)
15672 (build_type_psymtab_dependencies): Likewise.
15673 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15674
5af70966
TT
156752019-01-10 Tom Tromey <tom@tromey.com>
15676
15677 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15678 PSYMBOL_SET_LANGUAGE.
15679 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15680
5923a04c
TT
156812019-01-10 Tom Tromey <tom@tromey.com>
15682
15683 * psymtab.h (psymtab_storage::obstack): New method.
15684 <m_obstack>: Rename from obstack; now private.
15685 * psymtab.c (psymtab_storage): Update.
15686 * dwarf2read.c (create_addrmap_from_index)
15687 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15688 Update.
15689
6d6a12bf
TT
156902019-01-10 Tom Tromey <tom@tromey.com>
15691
15692 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15693 * objfiles.h (objfile::reset_psymtabs): New method.
15694
d320c2b5
TT
156952019-01-10 Tom Tromey <tom@tromey.com>
15696
15697 * symmisc.c (print_symbol_bcache_statistics): Update.
15698 (print_objfile_statistics): Update.
15699 * symfile.c (reread_symbols): Update.
15700 * psymtab.h (class psymtab_storage): New.
15701 * psymtab.c (psymtab_storage): New constructor.
15702 (~psymtab_storage): New destructor.
15703 (require_partial_symbols): Update.
15704 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15705 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15706 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15707 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15708 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15709 (start_psymtab_common, end_psymtab_common)
15710 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15711 (allocate_psymtab): Update.
15712 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15713 Update.
15714 (dump_psymtab_addrmap, maintenance_print_psymbols)
15715 (maintenance_check_psymtabs): Update.
15716 (class objfile_psymtabs): Move to objfiles.h.
15717 * psympriv.h (discard_psymtab): Now inline.
15718 (psymtab_discarder::psymtab_discarder): Update.
15719 (psymtab_discarder::~psymtab_discarder): Update.
15720 (ALL_OBJFILE_PSYMTABS): Rewrite.
15721 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15722 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15723 Remove fields.
15724 <partial_symtabs>: New field.
15725 (class objfile_psymtabs): Move from psymtab.h. Update.
15726 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15727 psymbol_cache.
15728 (objfile::~objfile): Don't destroy psymbol_cache.
15729 * mdebugread.c (parse_partial_symbols): Update.
15730 * dwarf2read.c (create_addrmap_from_index)
15731 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15732 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15733 (add_partial_subprogram, dwarf2_ranges_read): Update.
15734 * dwarf-index-write.c (write_address_map)
15735 (write_one_signatured_type, recursively_write_psymbols)
15736 (class debug_names, class debug_names, write_psymtabs_to_index):
15737 Update.
15738
1d94a5a3
TT
157392019-01-10 Tom Tromey <tom@tromey.com>
15740
15741 * symtab.h (SYMBOL_SET_NAMES): Update.
15742 (symbol_set_names): Update.
15743 (MSYMBOL_SET_NAMES): Update.
15744 * symtab.c (symbol_set_names): Change argument to be an
15745 objfile_per_bfd_storage.
15746 * psymtab.c (add_psymbol_to_bcache): Update.
15747 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15748
0f14768a
TT
157492019-01-10 Tom Tromey <tom@tromey.com>
15750
15751 * symtab.c (create_demangled_names_hash): Change argument to be an
15752 objfile_per_bfd_storage.
15753 (symbol_set_names): Update.
15754
6eee24ce
TT
157552019-01-10 Tom Tromey <tom@tromey.com>
15756
15757 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15758 init_psymbol_list.
15759 * psymtab.c (init_psymbol_list): Do nothing if already called.
15760 * psympriv.h (init_psymbol_list): Add comment.
15761 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15762 init_psymbol_list.
15763 * dbxread.c (dbx_symfile_read): Unconditionally call
15764 init_psymbol_list.
15765
75aedd27
TT
157662019-01-10 Tom Tromey <tom@tromey.com>
15767
15768 * xcoffread.c (scan_xcoff_symtab): Update.
15769 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15770 "where".
15771 * mdebugread.c (parse_partial_symbols)
15772 (handle_psymbol_enumerators): Update.
15773 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15774 * dbxread.c (read_dbx_symtab): Update.
15775 * psympriv.h (psymbol_placement): New enum.
15776 (add_psymbol_to_list): Update.
15777
939652a5
TT
157782019-01-10 Tom Tromey <tom@tromey.com>
15779
15780 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15781 static_psymbols parameters.
15782 (scan_xcoff_symtab): Update.
15783 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15784 static_psymbols parameters.
15785 * psympriv.h (start_psymtab_common): Update.
15786 * mdebugread.c (parse_partial_symbols): Update.
15787 * dwarf2read.c (create_partial_symtab): Update.
15788 * dbxread.c (read_dbx_symtab): Update.
15789 (start_psymtab): Remove global_psymbols and static_psymbols
15790 parameters.
15791
baa62830
TT
157922019-01-10 Tom Tromey <tom@tromey.com>
15793
15794 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15795 * psymtab.c (allocate_psymtab): Add comment.
15796 * psympriv.h (allocate_psymtab): Add comment.
15797 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15798 initializations.
15799 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15800
0e8f53ba
TT
158012019-01-10 Tom Tromey <tom@tromey.com>
15802
15803 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15804 Don't declare.
15805 * mipsread.c: Include mdebugread.h.
15806 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15807 Declare.
15808 * elfread.c: Include mdebugread.h.
15809
b22a7c6a
TT
158102019-01-09 Tom Tromey <tom@tromey.com>
15811
15812 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15813 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15814 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15815 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15816 (psym_lookup_symbol, psym_find_last_source_symtab)
15817 (psym_forget_cached_source_info, psym_print_stats)
15818 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15819 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15820 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15821 (psym_find_compunit_symtab_by_address)
15822 (maintenance_print_psymbols, maintenance_info_psymtabs)
15823 (maintenance_check_psymtabs): Use ranged for.
15824 * psymtab.h (class objfile_psymtabs): New.
15825 (require_partial_symbols): Return objfile_psymtabs.
15826 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15827
3b9d3ac2
TT
158282019-01-09 Tom Tromey <tom@tromey.com>
15829
15830 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15831 (find_pc_mapped_section, list_overlays_command)
15832 (map_overlay_command, unmap_overlay_command)
15833 (simple_overlay_update): Use all_objfiles.
15834 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15835 * printcmd.c (info_symbol_command): Use all_objfiles.
15836 * objfiles.h (ALL_OBJSECTIONS): Remove.
15837 * maint.c (maintenance_translate_address): Use all_objfiles.
15838 * gcore.c (gcore_create_callback): Use all_objfiles.
15839 (objfile_find_memory_regions): Likewise.
15840
8b31193a
TT
158412019-01-09 Tom Tromey <tom@tromey.com>
15842
15843 * symtab.c (find_line_symtab, info_sources_command)
15844 (make_source_files_completion_list): Use objfile_compunits.
15845 * source.c (select_source_symtab): Use objfile_compunits.
15846 * objfiles.h (struct objfile): Update comment.
15847 (ALL_OBJFILES): Remove.
15848 (ALL_FILETABS): Remove.
15849 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15850 objfile_compunits.
15851
d5da8b3c
TT
158522019-01-09 Tom Tromey <tom@tromey.com>
15853
15854 * symmisc.c (print_objfile_statistics, dump_objfile)
15855 (maintenance_print_symbols): Use compunit_filetabs.
15856 * source.c (forget_cached_source_info_for_objfile): Use
15857 compunit_filetabs.
15858 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15859 (ALL_FILETABS): Use compunit_filetabs.
15860 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15861 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15862
5accd1a0
TT
158632019-01-09 Tom Tromey <tom@tromey.com>
15864
15865 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15866 (compunit_filetabs): New.
15867 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15868 compunit_filetabs.
15869 (info_sources_command, make_source_files_completion_list): Remove
15870 declaration.
15871 * symmisc.c (print_objfile_statistics, dump_objfile)
15872 (maintenance_print_symbols): Remove declaration.
15873 (maintenance_info_symtabs): Use compunit_filetabs.
15874 (maintenance_info_line_tables): Likewise.
15875 * source.c (select_source_symtab): Change local variable name.
15876 (forget_cached_source_info_for_objfile): Remove declaration.
15877 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15878 * objfiles.c (objfile_relocate1): Remove declaration.
15879 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15880 declaration.
15881 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15882 * coffread.c (coff_symtab_read): Remove declaration.
15883 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15884 compunit_filetabs.
15885
d8aeb77f
TT
158862019-01-09 Tom Tromey <tom@tromey.com>
15887
15888 * symtab.c (lookup_objfile_from_block)
15889 (find_pc_sect_compunit_symtab, search_symbols)
15890 (default_collect_symbol_completion_matches_break_on): Use
15891 objfile_compunits.
15892 * objfiles.h (ALL_COMPUNITS): Remove.
15893 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15894 * cp-support.c (add_symbol_overload_list_qualified): Use
15895 objfile_compunits.
15896 * ada-lang.c (ada_collect_symbol_completion_matches)
15897 (ada_add_global_exceptions): Use objfile_compunits.
15898
592553c4
TT
158992019-01-09 Tom Tromey <tom@tromey.com>
15900
15901 * source.c (select_source_symtab)
15902 (forget_cached_source_info_for_objfile): Remove declaration.
15903 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15904 declaration.
15905 * maint.c (count_symtabs_and_blocks): Remove declaration.
15906 * cp-support.c (add_symbol_overload_list_qualified): Remove
15907 declaration.
15908 * coffread.c (coff_symtab_read): Remove declaration.
15909 * symtab.c (lookup_symbol_in_objfile_symtabs)
15910 (basic_lookup_transparent_type_1): Use objfile_compunits.
15911 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15912 (info_sources_command, search_symbols)
15913 (default_collect_symbol_completion_matches_break_on)
15914 (make_source_files_completion_list): Remove declaration.
15915 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15916 (ada_collect_symbol_completion_matches)
15917 (ada_add_global_exceptions): Remove declaration.
15918 * linespec.c (iterate_over_all_matching_symtabs): Use
15919 objfile_compunits.
15920 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15921 (class objfile_compunits): New.
15922 (ALL_COMPUNITS): Use objfile_compunits.
15923 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15924 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15925 objfile_compunits.
15926 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15927
5325b9bf
TT
159282019-01-09 Tom Tromey <tom@tromey.com>
15929
15930 * symtab.c (search_symbols)
15931 (default_collect_symbol_completion_matches_break_on): Use
15932 objfile_msymbols.
15933 * ada-lang.c (ada_lookup_simple_minsym)
15934 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15935 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15936 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15937 objfile_msymbols.
15938 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15939 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15940 * objc-lang.c (find_methods): Use objfile_msymbols.
15941 (info_selectors_command, info_classes_command): Likewise.
15942 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15943 * objfiles.h (class objfile_msymbols): New.
15944 (ALL_OBJFILE_MSYMBOLS): Remove.
15945 (ALL_MSYMBOLS): Remove.
15946
cac85af2
TT
159472019-01-09 Tom Tromey <tom@tromey.com>
15948
15949 * common/next-iterator.h (next_adapter): Add Iterator template
15950 parameter.
15951 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15952 (class all_objfiles_safe): New.
15953 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15954 * objfiles.c (put_objfile_before): Update comment.
15955 (add_separate_debug_objfile): Likewise.
15956 (free_all_objfiles): Use all_objfiles_safe.
15957 (objfile_purge_solibs): Likewise.
15958
aed57c53
TT
159592019-01-09 Tom Tromey <tom@tromey.com>
15960
15961 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15962 (expand_symtab_containing_pc, lookup_static_symbol)
15963 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15964 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15965 all_objfiles.
15966 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15967 * breakpoint.c (create_overlay_event_breakpoint)
15968 (create_longjmp_master_breakpoint)
15969 (create_std_terminate_master_breakpoint)
15970 (create_exception_master_breakpoint): Use all_objfiles.
15971 * linux-thread-db.c (try_thread_db_load_from_pdir)
15972 (has_libpthread): Use all_objfiles.
15973 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15974 * linespec.c (iterate_over_all_matching_symtabs)
15975 (search_minsyms_for_name): Use all_objfiles.
15976 * maint.c (maintenance_info_sections): Use all_objfiles.
15977 * main.c (captured_main_1): Use all_objfiles.
15978 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15979 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15980 * guile/scm-pretty-print.c
15981 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15982 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15983 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15984 (maintenance_print_msymbols): Use all_objfiles.
15985 * source.c (select_source_symtab): Use all_objfiles.
15986 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15987 * symfile.c (remove_symbol_file_command)
15988 (expand_symtabs_matching, map_symbol_filenames): Use
15989 all_objfiles.
15990 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15991 all_objfiles.
15992 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15993 * objc-lang.c (find_methods): Use all_objfiles.
15994 * objfiles.c (have_partial_symbols, have_full_symbols)
15995 (have_minimal_symbols, qsort_cmp)
15996 (default_iterate_over_objfiles_in_search_order): Use
15997 all_objfiles.
15998 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15999 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16000 (maintenance_check_psymtabs): Use all_objfiles.
16001 (ALL_PSYMTABS): Remove.
16002 * compile/compile-object-run.c (do_module_cleanup): Use
16003 all_objfiles.
16004 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16005 * cp-support.c (add_symbol_overload_list_qualified): Use
16006 all_objfiles.
16007 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16008 Use all_objfiles.
16009 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16010 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16011 all_objfiles.
16012 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16013 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16014 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16015 Uses all_objfiles.
16016 * solib.c (solib_read_symbols): Use all_objfiles
16017
99d89cde
TT
160182019-01-09 Tom Tromey <tom@tromey.com>
16019
16020 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16021 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16022 all_objfiles.
16023 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16024 * symmisc.c (print_symbol_bcache_statistics)
16025 (print_objfile_statistics, maintenance_print_objfiles)
16026 (maintenance_info_symtabs, maintenance_check_symtabs)
16027 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16028 all_objfiles.
16029 * source.c (forget_cached_source_info): Use all_objfiles.
16030 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16031 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16032 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16033 * objfiles.c (update_section_map): Use all_objfiles.
16034 (shared_objfile_contains_address_p): Likewise.
16035 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16036 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16037
21708325
TT
160382019-01-09 Tom Tromey <tom@tromey.com>
16039
16040 * common/next-iterator.h: New file.
16041 * objfiles.h (class all_objfiles): New.
16042 (struct objfile_iterator): New.
16043
669e09f6
PW
160442019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16045
16046 * NEWS: Move the description of the changed "frame", "select-frame",
16047 and "info frame" commands to the Changed commands section.
16048
041be526
SM
160492019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16050
16051 * gdbtypes.c (check_stub_method_group): Remove handling of old
16052 mangling schemes.
16053 * linespec.c (find_methods): Likewise.
16054 * stabsread.c (read_member_functions): Likewise.
16055 * valops.c (search_struct_method): Likewise.
16056 (value_struct_elt_for_reference): Likewise.
16057 * NEWS: Mention this change.
16058
0e2a2133
AB
160592019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16060
16061 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16062 print_source_lines.
16063 * source.c (print_source_lines_base): Update line number check.
16064 (print_source_lines): New function.
16065 (source_lines_range::source_lines_range): New function.
16066 * source.h (class source_lines_range): New class.
16067 (print_source_lines): New declaration.
16068
1055a3b4
PW
160692019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16070
16071 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16072
cfeadda5
TT
160732019-01-08 Tom Tromey <tom@tromey.com>
16074 Simon Marchi <simon.marchi@ericsson.com>
16075
16076 PR gdb/24060
16077 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16078 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16079 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16080 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16081 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16082 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16083
583068ca
AB
160842019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16085
16086 * source.c (select_source_symtab): Move header comment to
16087 declaration in source.h.
16088 (forget_cached_source_info_for_objfile): Likewise.
16089 (forget_cached_source_info): Likewise.
16090 (identify_source_line): Likewise.
16091 * source.h (identify_source_line): Move declaration from symtab.h
16092 and add comment from source.c
16093 (print_source_lines): Likewise.
16094 (forget_cached_source_info_for_objfile): Likewise.
16095 (forget_cached_source_info): Likewise.
16096 (select_source_symtab): Likewise.
16097 (enum print_source_lines_flag): Move definition from symtab.h.
16098 * symtab.h (identify_source_line): Move declaration to source.h.
16099 (print_source_lines): Likewise.
16100 (forget_cached_source_info_for_objfile): Likewise.
16101 (forget_cached_source_info): Likewise.
16102 (select_source_symtab): Likewise.
16103 (enum print_source_lines_flag): Move definition to source.h.
16104 * tui/tui-hooks.c: Add 'source.h' include.
16105
ec98a4ad
AB
161062019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16107
16108 * source.c (print_source_lines_base): Handle requests to print
16109 reverse line number sequences, and guard against empty lines
16110 string.
16111
62ea19c1
AB
161122019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16113
16114 * source.c (print_source_lines_base): Fix skip of '\r' if next
16115 character is '\n'.
16116
9d30e1fd
TT
161172019-01-06 Tom Tromey <tom@tromey.com>
16118
16119 * c-exp.y (struct c_parse_state) <macro_original_text,
16120 expansion_obstack>: New member.
16121 (macro_original_text, expansion_obstack): Remove globals.
16122 (scan_macro_expansion, scanning_macro_expansion)
16123 (finished_macro_expansion): Update.
16124 (scan_macro_cleanup): Remove.
16125 (yylex, c_parse): Update.
16126
c65bac38
TT
161272019-01-06 Tom Tromey <tom@tromey.com>
16128
16129 * c-exp.y (struct c_parse_state) <strings>: New member.
16130 (operator_stoken): Update.
16131
02e12e38
TT
161322019-01-06 Tom Tromey <tom@tromey.com>
16133
16134 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16135 (union type_stack_elt) <typelist_val>: Now a pointer to
16136 std::vector.
16137 (type_stack_cleanup): Don't declare.
16138 (push_typelist): Update.
16139 * parse.c (pop_typelist): Return a std::vector.
16140 (push_typelist): Take a std::vector.
16141 (follow_types): Update. Do not free args.
16142 (type_stack_cleanup): Remove.
16143 * c-exp.y (struct c_parse_state): New.
16144 (cpstate): New global.
16145 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16146 (nonempty_typelist): Update.
16147 (func_mod): Create a new vector.
16148 (c_parse): Create a c_parse_state.
16149 (check_parameter_typelist): Do not delete params.
16150 (function_method): Update. Do not delete type_list.
16151
f097f5ad
TT
161522019-01-06 Tom Tromey <tom@tromey.com>
16153
16154 PR gdb/28155:
16155 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16156 check_typedef.
16157 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16158 (print_return_value): Likewise.
16159
d2adf9f1
TT
161602019-01-05 Tom Tromey <tom@tromey.com>
16161
16162 * contrib/cleanup_check.py: Remove.
16163 * contrib/gcc-with-excheck: Remove.
16164 * contrib/exsummary.py: Remove.
16165 * contrib/excheck.py: Remove.
16166
2eab46b1
JB
161672019-01-05 Joel Brobecker <brobecker@adacore.com>
16168
16169 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16170 NULL. Initialize tpprev to NULL instead of assigning it
16171 to NULL on the next statement.
16172 * windows-nat.c (windows_delete_thread): Remove check for
16173 main_thread_id before printing thread exit notifications.
16174 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16175 Remove thread ID check against main_thread_id.
16176 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16177 windows_delete_thread.
16178 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16179
48c5e7e2
TT
161802019-01-04 Tom Tromey <tom@tromey.com>
16181
16182 * compile/compile.c (_initialize_compile): Use upper case for
16183 metasyntactic variables.
16184 * symmisc.c (_initialize_symmisc): Use upper case for
16185 metasyntactic variables.
16186 * psymtab.c (_initialize_psymtab): Use upper case for
16187 metasyntactic variables.
16188 * demangle.c (demangle_command): Use upper case for metasyntactic
16189 variables.
16190 (_initialize_demangler): Likewise.
16191 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16192 variables.
16193
986041cd
TT
161942019-01-03 Tom Tromey <tom@tromey.com>
16195
16196 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16197
7c711119
TT
161982019-01-03 Tom Tromey <tom@tromey.com>
16199
16200 * python/py-symtab.c (salpy_str): Update.
16201 (struct salpy_sal_object) <symtab>: Now a PyObject.
16202 (salpy_dealloc): Update.
16203 (del_objfile_sal): Use gdbpy_ref.
16204
1b20edf0
TT
162052019-01-03 Tom Tromey <tom@tromey.com>
16206
16207 * python/py-type.c (convert_field): Use new_reference. Return
16208 gdbpy_ref.
16209 (make_fielditem): Return gdbpy_ref.
16210 (typy_fields): Update.
16211 (typy_getitem): Update.
16212 (field_name): Return gdbpy_ref. Use new_reference.
16213 (typy_iterator_iternext): Update.
16214
ea41325b
TT
162152019-01-03 Tom Tromey <tom@tromey.com>
16216
16217 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16218
2a3c71d6
TT
162192019-01-03 Tom Tromey <tom@tromey.com>
16220
16221 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16222 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16223 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16224 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16225 (pspy_set_type_printers): Likewise.
16226 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16227 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16228 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16229 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16230 (objfpy_set_type_printers): Likewise.
16231
5c329e6a
TT
162322019-01-03 Tom Tromey <tom@tromey.com>
16233
16234 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16235 (gdbpy_print_stack): Use gdbpy_err_fetch.
16236 * python/python-internal.h (class gdbpy_err_fetch): New class.
16237 (class gdbpy_enter) <m_error_type, m_error_value,
16238 m_error_traceback>: Remove.
16239 <m_error>: New member.
16240 (gdbpy_exception_to_string): Don't declare.
16241 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16242 * python/py-value.c (convert_value_from_python): Use
16243 gdbpy_err_fetch.
16244 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16245 gdbpy_exception_to_string.
16246 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16247 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16248 gdbpy_err_fetch.
16249
169bb27b
AB
162502019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16251
16252 * linux-nat.c (delete_lwp_cleanup): Delete.
16253 (struct lwp_deleter): New struct.
16254 (lwp_info_up): New typedef.
16255 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16256 lwp_info_up.
16257
a07c8880
AB
162582019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16259
16260 * linux-fork.c (class scoped_switch_fork_info): New class.
16261 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16262
26089c49
AB
162632019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16264
16265 * valops.c (find_overload_match): Remove use of null_cleanup, and
16266 calls to do_cleanups.
16267
06d3e5b0
AB
162682019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16269
16270 * compile/compile-cplus-types.c
16271 (compile_cplus_instance::decl_name): Handle changes to
16272 cp_func_name.
16273 * cp-support.c (cp_func_name): Update header comment, update
16274 return type.
16275 * cp-support.h (cp_func_name): Update return type in declaration.
16276 * valops.c (find_overload_match): Move temp_func local to top
16277 level of function and change its type. Use temp_func to hold and
16278 delete temporary string obtained from cp_func_name.
16279
66644cd3
AB
162802019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16281
16282 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16283 gdb::char_vector, remove cleanup, and update uses of `msg`.
16284
592d8c0a
JW
162852019-01-03 Jim Wilson <jimw@sifive.com>
16286
16287 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16288
c55d06ec
TT
162892019-01-02 Tom Tromey <tom@tromey.com>
16290
16291 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16292 (tdesc_parse_xml): Remove cleanups.
16293 * target-descriptions.h (make_cleanup_free_target_description):
16294 Don't declare.
16295 (target_desc_deleter): New struct.
16296 (target_desc_up): New typedef.
16297 * target-descriptions.c (target_desc_deleter::operator()): Rename
16298 from free_target_description.
16299 (make_cleanup_free_target_description): Remove.
16300
3a6ae42d
TT
163012019-01-02 Tom Tromey <tom@tromey.com>
16302
16303 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16304 constructor, destructor.
16305 (linespec_parser): Remove typedef.
16306 (~linespec_parser): Rename from linespec_parser_delete.
16307 (linespec_lex_to_end, linespec_complete_label)
16308 (linespec_complete): Update.
16309 (decode_line_full): Remove cleanups.
16310 (decode_line_1): Update.
16311
61fd3e73
TT
163122019-01-02 Tom Tromey <tom@tromey.com>
16313
16314 * python/python-internal.h (inferior_to_inferior_object): Change
16315 return type.
16316 * python/py-exitedevent.c (create_exited_event_object): Update.
16317 * python/py-inferior.c (inferior_to_inferior_object): Return
16318 gdbpy_ref.
16319 (python_new_inferior, python_inferior_deleted)
16320 (thread_to_thread_object, delete_thread_object)
16321 (build_inferior_list, gdbpy_selected_inferior): Update.
16322 * python/py-infthread.c (create_thread_object): Update. Also fail
16323 if inferior_to_inferior_object fails.
16324
d20172fc
SM
163252019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16326
16327 * inferior.h (class inferior) <displaced_step_state>: New field.
16328 * infrun.h (struct displaced_step_state): Move here from
16329 infrun.c. Initialize fields, add constructor.
16330 <inf>: Remove field.
16331 <reset>: New method.
16332 * infrun.c (struct displaced_step_inferior_state): Move to
16333 infrun.h.
16334 (displaced_step_inferior_states): Remove.
16335 (get_displaced_stepping_state): Adust.
16336 (displaced_step_in_progress_any_inferior): Adjust.
16337 (displaced_step_in_progress_thread): Adjust.
16338 (displaced_step_in_progress): Adjust.
16339 (add_displaced_stepping_state): Remove.
16340 (get_displaced_step_closure_by_addr): Adjust.
16341 (remove_displaced_stepping_state): Remove.
16342 (infrun_inferior_exit): Call displaced_step_state.reset.
16343 (use_displaced_stepping): Don't check for NULL.
16344 (displaced_step_prepare_throw): Call
16345 get_displaced_stepping_state.
16346 (displaced_step_fixup): Don't check for NULL.
16347 (prepare_for_detach): Don't check for NULL.
16348
e3319240
PW
163492019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16350
16351 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16352 in case of call that did not complete.
16353
5d36dfb9
AU
163542019-01-02 Andrey Utkin <autkin@undo.io>
16355
16356 * symfile.c (find_separate_debug_file): Fix search of debug files for
16357 remote debuggee.
16358
8833fbf0
TT
163592019-01-02 Tom Tromey <tom@tromey.com>
16360
16361 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16362 indentation.
16363 * python/py-frame.c (frapy_older): Remove cast.
16364 (frapy_newer): Likewise.
16365 * python/py-breakpoint.c (local_setattro): Remove cast.
16366 * python/py-arch.c (archpy_name): Remove local variable.
16367 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16368
4ada3dfd
JB
163692019-01-02 Joel Brobecker <brobecker@adacore.com>
16370
16371 * unittests/basic_string_view/element_access/char/empty.cc:
16372 Fix year range in copyright header.
16373
113b7b81
AB
163742019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16375
16376 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16377 Delete.
16378 <operator==>: Update with for removed field.
16379 <hash>: Likewise.
16380 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16381 <isa_features>: ...this.
16382 <abi_features>: New field.
16383 (riscv_isa_flen): Update comment.
16384 (riscv_abi_xlen): New declaration.
16385 (riscv_abi_flen): New declaration.
16386 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16387 isa_features.
16388 (riscv_abi_xlen): New function.
16389 (riscv_isa_flen): Update to get answer from isa_features.
16390 (riscv_abi_flen): New function.
16391 (riscv_has_fp_abi): Update to get answer from abi_features.
16392 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16393 xlen and flen.
16394 (riscv_call_info) <xlen, flen>: Update comment.
16395 (riscv_call_arg_struct): Remove invalid assertions
16396 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16397 is removed.
16398 (riscv_gdbarch_init): Gather isa features and abi features
16399 separately, ensure both match on the gdbarch when reusing an old
16400 gdbarch. Relax an error check to allow 32-bit abi float to run on
16401 a target with 64-bit float hardware.
16402
b18ca514
PW
164032019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16404
16405 * source.c (search_command_helper): Stop reverse search
16406 when line 1 has been searched.
16407
ec70d8db
PW
164082019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16409
16410 * record-full.c (record_full_base_target::close): Rewrite
16411 record_full_core_buf_list free logic.
16412
5b38f9c1
PW
164132019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16414
16415 * break-catch-syscall.c (print_one_catch_syscall): xfree
16416 the last text.
16417
66d91b39
JB
164182019-01-01 Joel Brobecker <brobecker@adacore.com>
16419
16420 * top.c (print_gdb_version): Update Copyright year in version
16421 message.
16422
42a4f53d
JB
164232019-01-01 Joel Brobecker <brobecker@adacore.com>
16424
16425 Update copyright year range in all GDB files.
16426
7e955d83 164272019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16428
5bbd631d 16429 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16430
5bbd631d 16431For older changes see ChangeLog-2018.
c906108c
SS
16432\f
16433Local Variables:
16434mode: change-log
16435left-margin: 8
16436fill-column: 74
16437version-control: never
57da7796 16438coding: utf-8
c906108c 16439End:
5bbd631d 16440
This page took 3.847757 seconds and 4 git commands to generate.