Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
527178f7
EZ
12019-12-21 Eli Zaretskii <eliz@gnu.org>
2
3 * top.c (print_gdb_configuration): Print "--with-xxhash" or
4 "--without-xxhash" according to HAVE_LIBXXHASH.
5
4ae7258e
TT
62019-12-18 Tom Tromey <tromey@adacore.com>
7
8 PR build/25268:
9 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
10 type on macOS. Add comment.
11
1c66314d
TT
122019-12-18 Tom Tromey <tromey@adacore.com>
13
14 PR build/25250:
15 * ui-out.c (ui_out::vmessage): Update.
16 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
17 Rename.
18 (string_field): Update.
19 (signed_field): Update.
20
be19b699
SM
212019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
24
3f434671
JB
252019-12-11 Joel Brobecker <brobecker@adacore.com>
26
27 * version.in: Set GDB version number to 9.0.90.DATE-git.
28
07d5aa38
JB
292019-12-11 Joel Brobecker <brobecker@adacore.com>
30
31 GDB 9.0.90 released.
32
b06b5486
JB
332019-12-11 Joel Brobecker <brobecker@adacore.com>
34
35 * version.in: Set GDB version number to 9.0.90.
36
41ec388b
JB
372019-12-11 Joel Brobecker <brobecker@adacore.com>
38
39 * NEWS: Change "Changes since GDB 8.3" into "Changes in GDB 9".
40
c87abc50
JB
412019-12-11 Joel Brobecker <brobecker@adacore.com>
42
43 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
44 * version.in: Bump version to 9.0.90.DATE-git.
45
2e744276
TT
462019-12-11 Tom Tromey <tromey@adacore.com>
47
48 PR build/25268:
49 * gdbsupport/thread-pool.c (set_thread_name): New function.
50 (thread_pool::set_thread_count): Don't call pthread_setname_np.
51 (thread_pool::thread_function): Call set_thread_name.
52
aac4760f
TT
532019-12-11 Tom Tromey <tromey@adacore.com>
54
55 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
56 bfd_get_signed_8.
57
d8edc8b7
PW
582019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
59
60 * NEWS: Document -raw-values option and the related setting commands.
61 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
62 only set it on when /r is given.
63 * valprint.c (value_print_option_defs): New element raw-values.
64 * Makefile.in: Add the new file.
65
cb511130
CB
662019-12-10 Christian Biesinger <cbiesinger@google.com>
67
68 * gdbsupport/safe-strerror.c: Supress the unused function warning
69 for select_strerror_r.
70
ab7d13f0
CB
712019-12-10 Christian Biesinger <cbiesinger@google.com>
72
73 * config.in: Regenerate.
74 * configure: Regenerate.
75 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
76 safe_strerror instead of strerror.
77 * gdbsupport/common.m4: Don't check for strerror.
78 * gdbsupport/safe-strerror.c: Support both the glibc version
79 of strerror_r and the XSI version.
80
6c71eb7d
TT
812019-12-10 Tom Tromey <tromey@adacore.com>
82
83 * ada-typeprint.c (print_choices): Use a single "?".
84 (print_variant_part): Print "?" if the discriminant name
85 is not known.
86
bac7c5cf
GB
872019-12-10 George Barrett <bob@bob131.so>
88
89 Fix scripted probe breakpoints.
90 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
91 declaration forward.
92 (breakpoint_ops_for_event_location_type)
93 (breakpoint_ops_for_event_location): Add function definitions.
94 (break_command_1, trace_command): Use
95 breakpoint_ops_for_event_location.
96 * breakpoint.h (breakpoint_ops_for_event_location): Add function
97 declarations.
98 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
99 breakpoint_ops_for_event_location.
100 * python/py-breakpoint.c (bppy_init): Use
101 breakpoint_ops_for_event_location.
102
330f1d38
TBA
1032019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
104
105 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
106 when ranking an lvalue argument for an rvalue parameter.
107
b1f0c0b9
WA
1082019-12-08 Wataru Ashihara <wataash@wataash.com>
109
110 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
111 template argument for scoped_restore_tmpl from bool to int.
112
aa2d5a42
KS
1132019-12-07 Keith Seitz <keiths@redhat.com>
114
115 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
116 (build_id_to_debug_bfd): Make static, rewriting to use
117 build_id_to_bfd_suffix.
118 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
119 adding `suffix' parameter. Append SUFFIX to file names
120 when searching for matching files.
121 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
122 (build_id_to_exec_bfd): Likewise.
123 * build-id.h (build_id_to_debug_bfd): Clarify that function
124 searches for BFD of debug info file.
125 (build_id_to_exec_bfd): Declare.
126 * corelow.c: Include build-id.h.
127 (locate_exec_from_corefile_build_id): New function.
128 (core_target_open): If no executable BFD is found,
129 search for a core file BFD using build-id.
130
dfb65191
CB
1312019-12-06 Christian Biesinger <cbiesinger@google.com>
132
133 * bcache.c: Put in namespace gdb.
134 * bcache.h: Likewise.
135 * gdbtypes.c (check_types_worklist): Update.
136 (types_deeply_equal): Update.
137 * macrotab.c (struct macro_table) <bcache>: Update.
138 (new_macro_table): Update.
139 * macrotab.h (struct bcache): Put this forward declaration
140 inside namespace gdb.
141 (new_macro_table): Update.
142 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
143 Update.
144 <macro_cache>: Update.
145 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
146
93e55f0a
TV
1472019-12-06 Tom de Vries <tdevries@suse.de>
148
149 PR symtab/24971
150 * block.c (best_symbol, better_symbol): New function.
151 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
152 decl.
153
06acc08f
TBA
1542019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
155
156 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
157 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
158 for ranking see-through reference cases.
159
e0fad1ea
PW
1602019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
161 * stack.c (faas_command): Check a command is provided.
162 * thread.c (taas_command, tfaas_command): Likewise.
163
908641f5
PW
1642019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
165 * inferior.c (prune_inferiors): Only call delete_inferior,
166 Do not modify the inferior list.
167
b858499d
SM
1682019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * c-exp.y: Update calls to lookup_typename,
171 lookup_signed_typename and lookup_unsigned_typename.
172 * c-lang.c (evaluate_subexp_c): Likewise.
173 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
174 Likewise.
175 * eval.c (binop_promote): Likewise.
176 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
177 (lookup_unsigned_typename): Likewise.
178 (lookup_signed_typename): Likewise.
179 * gdbtypes.h (lookup_unsigned_typename): Likewise.
180 (lookup_signed_typename): Likewise.
181 (lookup_typename): Likewise.
182 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
183 lookup_typename, lookup_signed_typename,
184 lookup_unsigned_typename.
185 * m2-exp.y: Likewise.
186 * printcmd.c (printf_wide_c_string): Likewise.
187 (ui_printf): Likewise.
188 * python/py-type.c (typy_lookup_typename): Likewise.
189 * python/py-xmethods.c (python_xmethod_worker::invoke):
190 Likewise.
191 * rust-exp.y: Likewise.
192
3a8fa228
CB
1932019-12-04 Christian Biesinger <cbiesinger@google.com>
194
195 * configure.nat (obsd64): Add missing files x86-nat.o and
196 nat/x86-dregs.o.
197
2dbc041e
TT
1982019-12-04 Tom Tromey <tom@tromey.com>
199
200 * valprint.c (val_print_string): Use metadata_style.
201 * go-valprint.c (print_go_string): Use metadata style.
202 * p-valprint.c (pascal_object_print_static_field): Use metadata
203 style.
204 * cp-valprint.c (cp_print_static_field): Use metadata style.
205
36c8fb93
AB
2062019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
207 Chris January <chris.january@arm.com>
208
209 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
210 tokens.
211 (typebase): New patterns for complex, single/double precision, and
212 single/double complex.
213 (f77_keywords): Change token for complex keyword, and add single,
214 double, and precision keywords.
215
c6170c2c
SM
2162019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
217
218 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
219 "info io_registers".
220
894ecaf4
SM
2212019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
222
223 * regcache.c (cooked_read_test): Initialize thread list of
224 mock_inferior.
225
be155ebb
SM
2262019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
227
228 * aarch64-linux-tdep.c: Remove includes.
229
c577cdd7
SM
2302019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
231
232 * aarch64-tdep.c: Remove includes.
233
610cfd61
SM
2342019-12-04 Simon Marchi <simon.marchi@efficios.com>
235
236 * filtered-iterator.h (filtered_iterator) <operator==,
237 operator!=>: Compare wrapped iterators, not wrapped pointers.
238 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
239 unittests/filtered_iterator-selftests.c.
240 * unittests/filtered_iterator-selftests.c: New file.
241
a05cf17a
TT
2422019-12-04 Tom Tromey <tromey@adacore.com>
243
244 * gdbtypes.c (create_range_type): Inherit endianity
245 from base type.
246
d5a22e77
TT
2472019-12-04 Tom Tromey <tromey@adacore.com>
248
249 * ada-lang.c (decode_constrained_packed_array)
250 (ada_value_assign, value_assign_to_component): Update.
251 * dwarf2loc.c (rw_pieced_value, access_memory)
252 (dwarf2_compile_expr_to_ax): Update.
253 * dwarf2read.c (dwarf2_add_field): Update.
254 * eval.c (evaluate_subexp_standard): Update.
255 * gdbarch.c, gdbarch.h: Rebuild.
256 * gdbarch.sh (bits_big_endian): Remove.
257 * gdbtypes.h (union field_location): Update comment.
258 * target-descriptions.c (make_gdb_type): Update.
259 * valarith.c (value_bit_index): Update.
260 * value.c (struct value) <bitpos>: Update comment.
261 (unpack_bits_as_long, modify_field): Update.
262 * value.h (value_bitpos): Update comment.
263
7ab4a236
TT
2642019-12-04 Tom Tromey <tromey@adacore.com>
265
266 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
267 endian-ness.
268
103a685e
TT
2692019-12-04 Tom Tromey <tromey@adacore.com>
270
271 * dwarf2read.c (dwarf2_init_float_type)
272 (dwarf2_init_complex_target_type): Add byte_order parameter.
273 (read_base_type): Compute byte order earlier.
274 * gdbtypes.c (init_float_type): Add byte_order parameter.
275 * gdbtypes.h (init_float_type): Add byte_order parameter.
276
7a9e9f9f
TT
2772019-12-04 Tom Tromey <tromey@adacore.com>
278
279 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
280
feee869b
TT
2812019-12-04 Tom Tromey <tromey@adacore.com>
282
283 * dwarf2read.c (process_structure_scope): Initialize
284 "discr_offset".
285
c2512106
AB
2862019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
287
288 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
289 add it into the search spec.
290 (parse_max_results_option): New function.
291 (mi_info_functions_or_variables): Parse -max-results flag and pass
292 it to mi_symbol_info.
293 (mi_cmd_symbol_info_modules): Likewise.
294 (mi_cmd_symbol_info_types): Likewise.
295 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
296 return type to bool, change result container into a set, and don't
297 add new results if we have enough already.
298 (global_symbol_searcher::add_matching_msymbols): Change return
299 type to bool, and don't add new results if we have enough already.
300 (sort_search_symbols_remove_dups): Delete.
301 (global_symbol_searcher::search): Early exit from search loop when
302 we have enough results. Use a std::set to collect the results
303 from calling add_matching_symbols.
304 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
305 member function.
306 (global_symbol_searcher) <m_max_search_results>: New member
307 variable.
308 (global_symbol_searcher) <add_matching_symbols>: Update header
309 comment and change return type to bool.
310 (global_symbol_searcher) <add_matching_msymbols>: Update header
311 comment and change return type to bool.
312
f97a63c5
AB
3132019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
314
315 * symtab.c (symbol_search::compare_search_syms): Update header
316 comment.
317 (global_symbol_searcher::is_suitable_msymbol): New function.
318 (global_symbol_searcher::expand_symtabs): New function.
319 (global_symbol_searcher::add_matching_symbols): New function.
320 (global_symbol_searcher::add_matching_msymbols): New function.
321 (global_symbol_searcher::search): Move most of the content
322 into the new functions above, and call them as needed.
323 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
324 function.
325 (global_symbol_searcher) <add_matching_symbols>: New member
326 function.
327 (global_symbol_searcher) <add_matching_msymbols>: New member
328 function.
329 (global_symbol_searcher) <is_suitable_msymbol>: New member
330 function.
331
293b38d6
AB
3322019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
335 -symbol-info-module-variables entries.
336 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
337 (mi_cmd_symbol_info_module_variables): Declare.
338 * mi/mi-symbol-cmds.c
339 (module_symbol_search_iterator): New typedef.
340 (output_module_symbols_in_single_module_and_file): New function.
341 (output_module_symbols_in_single_module): New function.
342 (mi_info_module_functions_or_variables): New function.
343 (mi_cmd_symbol_info_module_functions): New function.
344 (mi_cmd_symbol_info_module_variables): New function.
345 * NEWS: Mention new MI command.
346
4cbd39b2
CB
3472019-12-03 Christian Biesinger <cbiesinger@google.com>
348
349 * bcache.c (hash): Remove.
350 (hash_continue): Remove.
351 * bcache.h (hash): Remove.
352 (hash_continue): Remove.
353 (struct bcache) <ctor>: Update.
354 * psymtab.c (psymbol_hash): Update.
355 * stabsread.c (hashname): Update.
356 * utils.h (fast_hash): Add an argument for a start value,
357 defaulting to zero.
358
82f910ea
PW
3592019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
360 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
361 (destroy_block_symbol_cache): New function.
362 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
363 (resize_symbol_cache): Likewise.
364
de2396d0
TT
3652019-12-02 Tom Tromey <tom@tromey.com>
366
367 * unittests/tui-selftests.c (run_tests): Make conditional.
368 (_initialize_tui_selftest): Make conditional.
369
638d85bc
CB
3702019-12-02 Christian Biesinger <cbiesinger@google.com>
371
372 * aix-thread.c (debug_aix_thread): Change type to bool.
373
7532a164
LM
3742019-12-02 Luis Machado <luis.machado@linaro.org>
375
376 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
377
216a7e6b
AB
3782019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
379
380 * dwarf2read.c (read_tag_string_type): Read the fields required to
381 make a dynamic string, and possibly create a dynamic range for the
382 string.
383 (attr_to_dynamic_prop): Setup is_reference based on the type of
384 attribute being processed.
385 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
386 (resolve_dynamic_array): Rename to...
387 (resolve_dynamic_array_or_string): ...this, update header comment,
388 and accept TYPE_CODE_STRING.
389 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
390
11a8b164
AB
3912019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
392
393 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
394 of its implementation from...
395 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
396 the new function.
397
5bbd8269
AB
3982019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
399
400 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
401 create a range with stride where appropriate.
402 * f-valprint.c: Include 'gdbarch.h'.
403 (f77_print_array_1): Take the stride into account when walking the
404 array. Also convert the stride into addressable units.
405 * gdbtypes.c (create_range_type): Initialise the stride to
406 constant zero.
407 (create_range_type_with_stride): New function, initialise the
408 range as normal, and then setup the stride.
409 (has_static_range): Include the stride here. Also change the
410 return type to bool.
411 (create_array_type_with_stride): Consider the range stride if the
412 array isn't given its own stride.
413 (resolve_dynamic_range): Resolve the stride if needed.
414 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
415 (struct range_bounds) <flag_is_byte_stride>: New member variable.
416 (TYPE_BIT_STRIDE): Define.
417 (TYPE_ARRAY_BIT_STRIDE): Define.
418 (create_range_type_with_stride): Declare.
419 * valarith.c (value_subscripted_rvalue): Take range stride into
420 account when walking the array.
421
82e3b564
TT
4222019-12-01 Tom Tromey <tom@tromey.com>
423
424 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
425 specially.
426
517d261d
TT
4272019-12-01 Tom Tromey <tom@tromey.com>
428
429 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
430 \0.
431 * unittests/tui-selftests.c: New file.
432 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
433
484c9b64
TT
4342019-12-01 Tom Tromey <tom@tromey.com>
435
436 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
437
a2a7af0c
TT
4382019-12-01 Tom Tromey <tom@tromey.com>
439
440 * NEWS: Document new settings.
441 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
442 * tui/tui-win.c (_initialize_tui_win): Add border style
443 observers.
444 * tui/tui-io.h (tui_apply_style): Declare.
445 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
446 longer static.
447 (apply_ansi_escape, tui_set_reverse_mode): Update.
448 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
449 Add "skip_intensity" parameter.
450 <changed>: New member.
451 <do_set_value>: Declare.
452 (tui_border_style, tui_active_border_style): Declare.
453 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
454 globals.
455 (cli_style_option): Initialize "changed".
456 (cli_style_option::do_set_value): New function.
457 (cli_style_option::add_setshow_commands): Add "skip_intensity"
458 parameter. Update.
459 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
460 (_initialize_cli_style): Update. Create TUI border style
461 commands.
462
d1da6b01
TT
4632019-12-01 Tom Tromey <tom@tromey.com>
464
465 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
466 parameter.
467 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
468 parameter.
469 * tui/tui-win.h (compact_source): Declare.
470 * tui/tui-win.c (compact_source): New global.
471 (tui_set_compact_source, tui_show_compact_source): New functions.
472 (_initialize_tui_win): Add "compact-source" setting.
473 * tui/tui-source.c (tui_source_window::set_contents): Handle
474 compact_source setting.
475 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
476 * NEWS: Document new setting.
477
489dbda6
TT
4782019-11-30 Tom Tromey <tom@tromey.com>
479
480 * dwarf2read.c (dwarf2_add_field): Include field offset when
481 computing variant part length.
482
bf498525
PW
4832019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
484 * NEWS: Mention define-prefix. Tell that command names can now
485 contain a . character.
486
be09caf1
PW
4872019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
488
489 * command.h (valid_cmd_char_p): Declare.
490 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
491 the check of valid command char.
492 (find_command_name_length, valid_user_defined_cmd_name_p): Use
493 valid_cmd_char_p.
494 * cli/cli-script.c (validate_comname): Likewise.
495 * completer.c (gdb_completer_command_word_break_characters):
496 Do not remove . from the word break char, update comments.
497 (complete_line_internal_1): Use valid_cmd_char_p.
498 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
499 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
500
c6ac7fc9
PW
5012019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
502
503 * cli/cli-script.c (do_define_command): Ensure a redefined
504 prefix command is kept as a prefix command.
505 (define_prefix_command): New function.
506 (show_user_1): Report user defined prefixes.
507 (_initialize_cli_script): Create the new 'define-prefix' command.
508 Add completers for 'define' and 'document'.
509 * top.c (execute_command): If command is a user-defined prefix only
510 command, report the list of commands for this prefix command.
511
a992a3b0
TBA
5122019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
513
514 * valops.c (find_oload_champ): Improve debug output.
515
e9194a1a
TBA
5162019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
517
518 * valops.c (find_oload_champ): Print part of debug messages
519 before the badness vector is std::move'd.
520
53a008a6
TT
5212019-11-28 Tom Tromey <tom@tromey.com>
522
523 * value.c (creal_internal_fn): Fix comment.
524
bab05c83
TT
5252019-11-28 Tom Tromey <tom@tromey.com>
526
527 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
528 flag_bound_evaluated>: Now unsigned.
529
2522f049
TT
5302019-11-28 Tom Tromey <tom@tromey.com>
531
532 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
533 declare.
534
38b49e22
MS
5352019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
536
537 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
538 debug output.
539 * jit.c (jit_unregister_code): Add debug print to match
540 `jit_register_code`.
541
35125921
CB
5422019-11-27 Christian Biesinger <cbiesinger@google.com>
543
544 * NEWS: Mention the new multithreaded symbol loading.
545
62e77f56
CB
5462019-11-27 Christian Biesinger <cbiesinger@google.com>
547
548 * maint.c (n_worker_threads): Default to 0.
549 (worker_threads_disabled): New function.
550 * maint.h (worker_threads_disabled): New function.
551 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
552 here if worker_threads_disabled () is true.
553 (minimal_symbol_reader::install): Skip all threading if
554 worker_threads_disabled () is true.
555
f29d7f6b
CB
5562019-11-27 Christian Biesinger <cbiesinger@google.com>
557
558 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
559 hash code if possible.
560 (add_minsym_to_demangled_hash_table): Likewise.
561 (minimal_symbol_reader::install): Compute the hash codes for msymbol
562 on the background thread.
563 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
564 Add these fields.
565
e76b2246
CB
5662019-11-27 Christian Biesinger <cbiesinger@google.com>
567
568 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
569 of the mangled name on the background thread.
570 * symtab.c (symbol_set_names): Allow passing in the hash of the
571 linkage_name.
572 * symtab.h (symbol_set_names): Likewise.
573
8d9a2568
KB
5742019-11-27 Kevin Buettner <kevinb@redhat.com>
575
576 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
577 physnames are computed for inherited DIEs.
578
fad03f6e
TT
5792019-11-27 Tom Tromey <tromey@adacore.com>
580
581 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
582 backslashes.
583 * cp-support.c: Remove unnecessary backslashes.
584
43678b0a
CB
5852019-11-27 Christian Biesinger <cbiesinger@google.com>
586
587 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
588 with sym->set_linkage_name.
589 * coffread.c (coff_read_enum_type): Likewise.
590 * mdebugread.c (parse_symbol): Likewise.
591 * stabsread.c (patch_block_stabs): Likewise.
592 (define_symbol): Likewise.
593 (read_enum_type): Likewise.
594 (common_block_end): Likewise.
595 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
596 function.
597 (SYMBOL_SET_LINKAGE_NAME): Remove.
598 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
599 with sym->set_linkage_name.
600
db5960b4
AB
6012019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
602
603 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
604 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
605 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
606 * NEWS: Mention new MI command.
607
7dc42066
AB
6082019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
609
610 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
611 '-symbol-info-types', and '-symbol-info-variables'.
612 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
613 (mi_cmd_symbol_info_types): Declare.
614 (mi_cmd_symbol_info_variables): Declare.
615 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
616 (output_debug_symbol): New function.
617 (output_nondebug_symbol): New function.
618 (mi_symbol_info): New function.
619 (mi_info_functions_or_variables): New function.
620 (mi_cmd_symbol_info_functions): New function.
621 (mi_cmd_symbol_info_types): New function.
622 (mi_cmd_symbol_info_variables): New function.
623 * NEWS: Mention new commands.
624
5f512a7d
AB
6252019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 * symtab.c (symbol_to_info_string): New function, most content
628 moved from print_symbol_info, but updated to return a std::string.
629 (print_symbol_info): Update to use symbol_to_info_string and print
630 returned string.
631 * symtab.h (symbol_to_info_string): Declare new function.
632
470c0b1c
AB
6332019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
634
635 * python/python.c (gdbpy_rbreak): Convert to using
636 global_symbol_searcher.
637 * symtab.c (file_matches): Convert return type to bool, change
638 file list to std::vector, update header comment.
639 (search_symbols): Rename to...
640 (global_symbol_searcher::search): ...this and update now its
641 a member function of global_symbol_searcher. Take account of the
642 changes to file_matches.
643 (symtab_symbol_info): Convert to using global_symbol_searcher.
644 (rbreak_command): Likewise.
645 (search_module_symbols): Likewise.
646 * symtab.h (enum symbol_search): Update comment.
647 (search_symbols): Remove declaration.
648 (class global_symbol_searcher): New class.
649
57357d9d
TT
6502019-11-26 Tom Tromey <tromey@adacore.com>
651
652 * cp-support.c (_initialize_cp_support): Conditionally initialize
653 gdb_demangle_attempt_core_dump.
654
3ea16160
TT
6552019-11-26 Tom Tromey <tom@tromey.com>
656
657 * python/py-function.c (fnpy_init): Update.
658 * value.h (add_internal_function): Adjust declaration.
659 * value.c (function_destroyer): Remove.
660 (do_add_internal_function): Don't set destroyer or copy name.
661 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
662 Set name_allocated.
663 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
664 (cmdpy_init): Set name_allocated.
665 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
666 member.
667 (~cmd_list_element): Free "name" if needed.
668
1a6d41c6
TT
6692019-11-26 Tom Tromey <tom@tromey.com>
670
671 * value.h (add_internal_function): Add new overload. Move
672 documentation from value.h.
673 * value.c (do_add_internal_function): New function.
674 (add_internal_function): Use it. Add new overload.
675 (function_destroyer): Don't free doc.
676 * python/py-function.c (fnpy_init): Update.
677
8318f3c3
TT
6782019-11-26 Tom Tromey <tom@tromey.com>
679
680 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
681 (cmdpy_init): Set "doc_allocated".
682
4da8c3a8
TT
6832019-11-26 Tom Tromey <tom@tromey.com>
684
685 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
686 name of worker thread.
687 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
688 pthread_setname_np.
689 * configure, config.in: Rebuild.
690
971db5e2
TT
6912019-11-26 Tom Tromey <tom@tromey.com>
692
693 * python/python.c (class gdbpy_gil): New.
694 (struct gdbpy_event): Add constructor, destructor, operator().
695 (gdbpy_post_event): Use run_on_main_thread.
696 (gdbpy_initialize_events): Remove.
697 (do_start_initialization): Update.
698
22138db6
TT
6992019-11-26 Tom Tromey <tom@tromey.com>
700
701 * NEWS: Add entry.
702 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
703 commands. Call update_thread_pool_size.
704 (update_thread_pool_size, maintenance_set_worker_threads): New
705 functions.
706 (n_worker_threads): New global.
707
d55c9a68
TT
7082019-11-26 Christian Biesinger <cbiesinger@google.com>
709 Tom Tromey <tom@tromey.com>
710
711 * minsyms.c (minimal_symbol_reader::install): Use
712 parallel_for_each.
713 * gdbsupport/parallel-for.h: New file.
714 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
715
a0b57563
CB
7162019-11-26 Christian Biesinger <cbiesinger@google.com>
717 Tom Tromey <tom@tromey.com>
718
719 * gdbsupport/thread-pool.h: New file.
720 * gdbsupport/thread-pool.c: New file.
721 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
722 (HFILES_NO_SRCDIR): Add thread-pool.h.
723
3b3978bc
TT
7242019-11-26 Tom Tromey <tom@tromey.com>
725
726 * event-top.h (thread_local_segv_handler): Declare.
727 * event-top.c (thread_local_segv_handler): New global.
728 (install_handle_sigsegv, handle_sigsegv): New functions.
729 (async_init_signals): Install SIGSEGV handler.
730 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
731 thread-local.
732 (report_failed_demangle): New function.
733 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
734 handler-setting code, instead use segv_handler. Run warning code
735 on main thread.
736
9411c49e
TT
7372019-11-26 Tom Tromey <tom@tromey.com>
738
739 * run-on-main-thread.c: New file.
740 * run-on-main-thread.h: New file.
741 * unittests/main-thread-selftests.c: New file.
742 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
743 main-thread-selftests.c.
744 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
745 (COMMON_SFILES): Add run-on-main-thread.c.
746
c3efb965
TT
7472019-11-26 Tom Tromey <tom@tromey.com>
748
749 * main.c (setup_alternate_signal_stack): Remove.
750 (captured_main_1): Use gdb::alternate_signal_stack.
751 * gdbsupport/alt-stack.h: New file.
752
21987b9c
TT
7532019-11-26 Tom Tromey <tom@tromey.com>
754
755 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
756 Remove comment.
757 (save_original_signals_state, restore_original_signals_state): Use
758 gdb_sigmask.
759 * linux-nat.c (block_child_signals, restore_child_signals_mask)
760 (_initialize_linux_nat): Use gdb_sigmask.
761 * guile/guile.c (_initialize_guile): Use block_signals.
762 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
763 * gdbsupport/gdb-sigmask.h: New file.
764 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
765 * cp-support.c (gdb_demangle): Use gdb_sigmask.
766 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
767 pthread_sigmask.
768 * configure, config.in: Rebuild.
769 * gdbsupport/block-signals.h: New file.
770
5e030278
TT
7712019-11-26 Tom Tromey <tom@tromey.com>
772
773 * acinclude.m4: Include ax_pthread.m4.
774 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
775 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
776 (CLIBS): Use PTHREAD_LIBS.
777 (aclocal_m4_deps): Add ax_pthread.m4.
778 * config.in, configure: Rebuild.
779 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
780
5a79c107
TT
7812019-11-26 Tom Tromey <tom@tromey.com>
782
783 * symtab.h (struct minimal_symbol) <name_set>: New member.
784 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
785 Don't call symbol_set_names.
786 (minimal_symbol_reader::install): Call symbol_set_names.
787
aa369509
PW
7882019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
789
790 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
791 restore_active_ext_lang, as GIL is needed for (indirectly)
792 called PyOS_InterruptOccurred.
793
cadc9cb8
SM
7942019-11-26 Simon Marchi <simon.marchi@efficios.com>
795
796 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
797 definition.
798
d04afd58
SM
7992019-11-26 Simon Marchi <simon.marchi@efficios.com>
800
801 * remote-sim.c (simulator_command): Make static, remove
802 declaration.
803
dd694d77
SM
8042019-11-26 Simon Marchi <simon.marchi@efficios.com>
805
806 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
807 static.
808 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
809 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
810 (main): Likewise.
811 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
812 (main): Likewise.
813 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
814 (main): Likewise.
815 * unittests/basic_string_view/element_access/char/1.cc (test01):
816 Likewise.
817 (main): Likewise.
818 * unittests/basic_string_view/element_access/char/empty.cc (main):
819 Likewise.
820 * unittests/basic_string_view/element_access/char/front_back.cc
821 (test01): Likewise.
822 (main): Likewise.
823 * unittests/basic_string_view/inserters/char/2.cc (test05):
824 Likewise.
825 (main): Likewise.
826 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
827 (test01): Likewise.
828 (main): Likewise.
829 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
830 (test01): Likewise.
831 (main): Likewise.
832 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
833 Likewise.
834 * unittests/basic_string_view/operations/compare/char/1.cc
835 (test01): Likewise.
836 (main): Likewise.
837 * unittests/basic_string_view/operations/compare/char/13650.cc
838 (test01): Likewise.
839 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
840 Likewise.
841 (main): Likewise.
842 * unittests/basic_string_view/operations/data/char/1.cc (test01):
843 Likewise.
844 (main): Likewise.
845 * unittests/basic_string_view/operations/find/char/1.cc (test01):
846 Likewise.
847 (main): Likewise.
848 * unittests/basic_string_view/operations/find/char/2.cc (test02):
849 Likewise.
850 (main): Likewise.
851 * unittests/basic_string_view/operations/find/char/3.cc (test03):
852 Likewise.
853 (main): Likewise.
854 * unittests/basic_string_view/operations/find/char/4.cc (main):
855 Likewise.
856 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
857 Likewise.
858 (main): Likewise.
859 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
860 Likewise.
861 (main): Likewise.
862 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
863 Likewise.
864 (main): Likewise.
865 * unittests/basic_string_view/operations/substr/char/1.cc
866 (test01): Likewise.
867 (main): Likewise.
868 * unittests/basic_string_view/operators/char/2.cc (main):
869 Likewise.
870 * unittests/optional/assignment/1.cc (test): Likewise.
871 * unittests/optional/assignment/2.cc (test): Likewise.
872 * unittests/optional/assignment/3.cc (test): Likewise.
873 * unittests/optional/assignment/4.cc (test): Likewise.
874 * unittests/optional/assignment/5.cc (test): Likewise.
875 * unittests/optional/assignment/6.cc (test): Likewise.
876 * unittests/optional/assignment/7.cc (test): Likewise.
877 * unittests/optional/cons/copy.cc (test): Likewise.
878 * unittests/optional/cons/default.cc (test): Likewise.
879 * unittests/optional/cons/move.cc (test): Likewise.
880 * unittests/optional/cons/value.cc (test): Likewise.
881 * unittests/optional/in_place.cc (test): Likewise.
882 * unittests/optional/observers/1.cc (test): Likewise.
883 * unittests/optional/observers/2.cc (test): Likewise.
884
3b5c1d49
SM
8852019-11-26 Simon Marchi <simon.marchi@efficios.com>
886
887 * tui-win.h (tui_set_var_cmd): Remove.
888 * tui-win.c (tui_set_var_cmd): Make static.
889
adce99fe
SM
8902019-11-26 Simon Marchi <simon.marchi@efficios.com>
891
892 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
893 rbreak_command_wrapper): Remove.
894 * symtab.c (rbreak_command_wrapper): Remove.
895
fe3adccf
SM
8962019-11-26 Simon Marchi <simon.marchi@efficios.com>
897
898 * inferior.h (info_terminal_command): Remove declaration.
899 * inflow.c (info_terminal_command): Make static.
900
b926335f
SM
9012019-11-26 Simon Marchi <simon.marchi@efficios.com>
902
903 * inferior.c (exit_inferior_silent): Remove.
904
b62f6f54
SM
9052019-11-26 Simon Marchi <simon.marchi@efficios.com>
906
907 * dictionary.c (dict_empty, mdict_empty): Remove.
908 * dictionary.c (mdict_empty): Remove.
909
cb8c24b6
SM
9102019-11-26 Simon Marchi <simon.marchi@efficios.com>
911
912 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
913 (arc_insn_get_memory_offset): Likewise.
914 (arc_insn_dump): Likewise.
915 * cp-support.c (test_cp_symbol_name_matches): Likewise.
916 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
917 * dictionary.c (dict_iterator_next): Likewise.
918 (dict_iter_match_first): Likewise.
919 (dict_iter_match_next): Likewise.
920 * f-lang.c (evaluate_subexp_f): Likewise.
921 * hppa-tdep.c (hppa_read_pc): Likewise.
922 * i386-tdep.c (i386_floatformat_for_type): Likewise.
923 * parse.c (write_exp_elt_msym): Likewise.
924 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
925 * remote.c (remote_packet_size): Likewise.
926 (remote_notif_stop_parse): Likewise.
927 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
928 * s12z-tdep.c (s12z_disassemble_info): Likewise.
929 * source.c (prepare_path_for_appending): Likewise.
930 * sparc64-linux-tdep.c
931 (sparc64_linux_handle_segmentation_fault); Likewise.
932 * stack.c (frame_selection_by_function_completer): Likewise.
933
781597ff
SM
9342019-11-26 Simon Marchi <simon.marchi@efficios.com>
935
936 * completer.c (set_gdb_completion_word_break_characters):
937 Remove.
938
23baa4cc
SM
9392019-11-26 Simon Marchi <simon.marchi@efficios.com>
940
941 * dwarf-index-write.c: Include dwarf-index-write.h.
942 * mi/mi-interp.c: Include mi/mi-interp.h.
943
23767560
SM
9442019-11-26 Simon Marchi <simon.marchi@efficios.com>
945
946 * aarch32-tdep.c: Include aarch32-tdep.h.
947 * aarch32-tdep.h: Forward-declare struct target_desc.
948
6d91ce9a
CB
9492019-11-26 Christian Biesinger <cbiesinger@google.com>
950
951 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
952 strerror.
953 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
954 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
955
3cf2f237
TV
9562019-11-25 Tom de Vries <tdevries@suse.de>
957
958 * contrib/words.sh: Add -c option.
959
5b89c67a
CB
9602019-11-25 Christian Biesinger <cbiesinger@google.com>
961
962 * solib.c (solib_find_1): Change int to bool.
963 (exec_file_find): Change int to bool.
964 (solib_find): Change int to bool.
965 (solib_read_symbols): Change int to bool.
966 (solib_used): Change int to bool.
967 (solib_add): Change int to bool.
968 (info_sharedlibrary_command): Change int to bool.
969 (solib_contains_address_p): Change int to bool.
970 (solib_keep_data_in_core): Change int to bool.
971 (in_solib_dynsym_resolve_code): Change int to bool.
972 (reload_shared_libraries_1): Change int to bool.
973 (gdb_sysroot_changed): Change int to bool.
974 * solib.h (solib_read_symbols): Change int to bool.
975 (solib_contains_address_p): Change int to bool.
976 (solib_keep_data_in_core): Change int to bool.
977 (in_solib_dynsym_resolve_code): Change int to bool.
978 (libpthread_name_p): Change int to bool.
979
6cc8564b
LM
9802019-11-25 Luis Machado <luis.machado@linaro.org>
981
982 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
983 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
984 (remote_packet_max_chars): New static global.
985 (show_remote_packet_max_chars): New function.
986 (remote_target::putpkt_binary): Adjust to use new
987 remote_packet_max_chars option.
988 (remote_target::getpkt_or_notif_sane_1): Likewise.
989 (_initialize_remote): Register new remote-packet-max-chars option.
990
a7cdaa91
SM
9912019-11-24 Simon Marchi <simon.marchi@efficios.com>
992
993 * m68k-linux-nat.c: Include gdbarch.h.
994
26abc753
TT
9952019-11-24 Tom Tromey <tom@tromey.com>
996
997 * symfile.c (read_symbols): Update.
998 * psymtab.c (require_partial_symbols): Change type of "verbose" to
999 bool.
1000 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1001 (psym_lookup_symbol, psym_find_last_source_symtab)
1002 (psym_forget_cached_source_info, psym_print_stats)
1003 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1004 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1005 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1006 (psym_find_compunit_symtab_by_address)
1007 (maintenance_print_psymbols, maintenance_info_psymtabs)
1008 (maintenance_check_psymtabs): Update.
1009 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1010 bool.
1011
012fc909
TT
10122019-11-22 Tom Tromey <tom@tromey.com>
1013
1014 * observable.h: Update comments.
1015
c83d8d32
TT
10162019-11-22 Tom Tromey <tromey@adacore.com>
1017
1018 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1019 (print_ada_task_info): Don't try to fetch thread id if task is not
1020 alive.
1021
987012b8
CB
10222019-11-22 Christian Biesinger <cbiesinger@google.com>
1023
1024 * ada-exp.y: Update.
1025 * ada-lang.c (sort_choices): Update.
1026 (ada_print_symbol_signature): Update.
1027 (resolve_subexp): Update.
1028 (ada_parse_renaming): Update.
1029 (ada_read_renaming_var_value): Update.
1030 (lesseq_defined_than): Update.
1031 (remove_extra_symbols): Update.
1032 (remove_irrelevant_renamings): Update.
1033 (ada_add_block_symbols): Update.
1034 (ada_collect_symbol_completion_matches): Update.
1035 (ada_is_renaming_symbol): Update.
1036 (aggregate_assign_from_choices): Update.
1037 (ada_evaluate_subexp): Update.
1038 (ada_has_this_exception_support): Update.
1039 (ada_is_non_standard_exception_sym): Update.
1040 (ada_add_exceptions_from_frame): Update.
1041 (ada_add_global_exceptions): Update.
1042 (ada_print_subexp): Update.
1043 * ax-gdb.c (gen_var_ref): Update.
1044 (gen_maybe_namespace_elt): Update.
1045 (gen_expr_for_cast): Update.
1046 (gen_expr): Update.
1047 * block.h: Update.
1048 * blockframe.c (find_pc_partial_function): Update.
1049 * breakpoint.c (print_breakpoint_location): Update.
1050 (update_static_tracepoint): Update.
1051 * btrace.c (ftrace_print_function_name): Update.
1052 (ftrace_function_switched): Update.
1053 * buildsym.c (find_symbol_in_list): Update.
1054 * c-exp.y: Update.
1055 * c-typeprint.c (c_print_typedef): Update.
1056 (c_type_print_template_args): Update.
1057 * cli/cli-cmds.c (edit_command): Update.
1058 (list_command): Update.
1059 (print_sal_location): Update.
1060 * coffread.c (patch_opaque_types): Update.
1061 (process_coff_symbol): Update.
1062 (coff_read_enum_type): Update.
1063 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1064 (convert_one_symbol): Update.
1065 (hash_symname): Update.
1066 (eq_symname): Update.
1067 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1068 * compile/compile-cplus-types.c (debug_print_scope): Update.
1069 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1070 * compile/compile-object-load.c (get_out_value_type): Update.
1071 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1072 (search_symbol_list): Update.
1073 (cp_lookup_symbol_imports_or_template): Update.
1074 * cp-support.c (overload_list_add_symbol): Update.
1075 * ctfread.c (psymtab_to_symtab): Update.
1076 * dbxread.c (cp_set_block_scope): Update.
1077 * dictionary.c (iter_match_first_hashed): Update.
1078 (iter_match_next_hashed): Update.
1079 (insert_symbol_hashed): Update.
1080 (iter_match_next_linear): Update.
1081 * dictionary.h: Update.
1082 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1083 (locexpr_describe_location_piece): Update.
1084 (locexpr_describe_location_1): Update.
1085 (locexpr_generate_c_location): Update.
1086 (loclist_describe_location): Update.
1087 (loclist_generate_c_location): Update.
1088 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1089 (read_func_scope): Update.
1090 (process_enumeration_scope): Update.
1091 (new_symbol): Update.
1092 (dwarf2_const_value): Update.
1093 (dwarf2_symbol_mark_computed): Update.
1094 * eval.c (evaluate_funcall): Update.
1095 (evaluate_subexp_standard): Update.
1096 * expprint.c (print_subexp_standard): Update.
1097 (dump_subexp_body_standard): Update.
1098 * f-valprint.c (info_common_command_for_block): Update.
1099 * findvar.c (get_hosting_frame): Update.
1100 (default_read_var_value): Update.
1101 * go-lang.c (go_symbol_package_name): Update.
1102 * guile/scm-block.c (bkscm_print_block_smob): Update.
1103 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1104 (gdbscm_symbol_name): Update.
1105 (gdbscm_symbol_linkage_name): Update.
1106 (gdbscm_symbol_print_name): Update.
1107 * infcall.c (get_function_name): Update.
1108 * infcmd.c (jump_command): Update.
1109 (finish_command): Update.
1110 * infrun.c (insert_exception_resume_breakpoint): Update.
1111 * linespec.c (canonicalize_linespec): Update.
1112 (create_sals_line_offset): Update.
1113 (convert_linespec_to_sals): Update.
1114 (complete_label): Update.
1115 (find_label_symbols_in_block): Update.
1116 * m2-typeprint.c (m2_print_typedef): Update.
1117 * mdebugread.c (mdebug_reg_to_regnum): Update.
1118 (parse_symbol): Update.
1119 (mylookup_symbol): Update.
1120 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1121 (list_args_or_locals): Update.
1122 * objc-lang.c (compare_selectors): Update.
1123 (info_selectors_command): Update.
1124 (compare_classes): Update.
1125 (info_classes_command): Update.
1126 (find_imps): Update.
1127 * p-typeprint.c (pascal_print_typedef): Update.
1128 * printcmd.c (build_address_symbolic): Update.
1129 (info_address_command): Update.
1130 (print_variable_and_value): Update.
1131 * python/py-framefilter.c (extract_sym): Update.
1132 (py_print_single_arg): Update.
1133 * python/py-symbol.c (sympy_str): Update.
1134 (sympy_get_name): Update.
1135 (sympy_get_linkage_name): Update.
1136 * python/python.c (gdbpy_rbreak): Update.
1137 * record-btrace.c (btrace_get_bfun_name): Update.
1138 (btrace_call_history): Update.
1139 * rust-lang.c (rust_print_typedef): Update.
1140 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1141 * stabsread.c (stab_reg_to_regnum): Update.
1142 (define_symbol): Update.
1143 (read_enum_type): Update.
1144 (common_block_end): Update.
1145 (cleanup_undefined_types_1): Update.
1146 (scan_file_globals): Update.
1147 * stack.c (print_frame_arg): Update.
1148 (print_frame_args): Update.
1149 (find_frame_funname): Update.
1150 (info_frame_command_core): Update.
1151 (iterate_over_block_locals): Update.
1152 (print_block_frame_labels): Update.
1153 (do_print_variable_and_value): Update.
1154 (iterate_over_block_arg_vars): Update.
1155 (return_command): Update.
1156 * symmisc.c (dump_symtab_1): Update.
1157 (print_symbol): Update.
1158 * symtab.c (eq_symbol_entry): Update.
1159 (symbol_cache_dump): Update.
1160 (lookup_language_this): Update.
1161 (find_pc_sect_line): Update.
1162 (skip_prologue_sal): Update.
1163 (symbol_search::compare_search_syms): Update.
1164 (treg_matches_sym_type_name): Update.
1165 (search_symbols): Update.
1166 (print_symbol_info): Update.
1167 (rbreak_command): Update.
1168 (completion_list_add_symbol): Update.
1169 (find_gnu_ifunc): Update.
1170 (get_symbol_address): Update.
1171 (search_module_symbols): Update.
1172 (info_module_subcommand): Update.
1173 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1174 (SYMBOL_LINKAGE_NAME): Remove.
1175 (SYMBOL_DEMANGLED_NAME): Remove.
1176 (SYMBOL_PRINT_NAME): Remove.
1177 (SYMBOL_SEARCH_NAME): Remove.
1178 * tracepoint.c (set_traceframe_context): Update.
1179 (validate_actionline): Update.
1180 (collection_list::collect_symbol): Update.
1181 (encode_actions_1): Update.
1182 (info_scope_command): Update.
1183 (print_one_static_tracepoint_marker): Update.
1184 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1185 * valops.c (address_of_variable): Update.
1186 (find_overload_match): Update.
1187 (find_oload_champ): Update.
1188
c9d95fa3
CB
11892019-11-22 Christian Biesinger <cbiesinger@google.com>
1190
1191 * ada-lang.c (ada_lookup_simple_minsym): Update.
1192 (ada_collect_symbol_completion_matches): Update.
1193 * ada-tasks.c (read_atcb): Update.
1194 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1195 (amd64_windows_skip_trampoline_code): Update.
1196 * arm-tdep.c (skip_prologue_function): Update.
1197 (arm_skip_stack_protector): Update.
1198 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1199 (arm_wince_skip_main_prologue): Update.
1200 * ax-gdb.c (gen_expr): Update.
1201 * block.c (call_site_for_pc): Update.
1202 * blockframe.c (find_pc_partial_function): Update.
1203 * breakpoint.c (set_breakpoint_location_function): Update.
1204 * btrace.c (ftrace_print_function_name): Update.
1205 (ftrace_function_switched): Update.
1206 * c-valprint.c (print_unpacked_pointer): Update.
1207 * coffread.c (coff_symfile_read): Update.
1208 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1209 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1210 * dwarf-index-write.c (write_psymbols): Update.
1211 * dwarf2loc.c (call_site_to_target_addr): Update.
1212 (func_verify_no_selftailcall): Update.
1213 (tailcall_dump): Update.
1214 (call_site_find_chain_1): Update.
1215 (dwarf_expr_reg_to_entry_parameter): Update.
1216 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1217 * eval.c (evaluate_funcall): Update.
1218 (evaluate_subexp_standard): Update.
1219 (evaluate_subexp_for_sizeof): Update.
1220 * expprint.c (print_subexp_standard): Update.
1221 (dump_subexp_body_standard): Update.
1222 * frame.c (get_prev_frame_always_1): Update.
1223 * frv-tdep.c (frv_skip_main_prologue): Update.
1224 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1225 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1226 (gnuv3_get_typename_from_type_info): Update.
1227 (gnuv3_skip_trampoline): Update.
1228 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1229 * i386-tdep.c (i386_skip_main_prologue): Update.
1230 (i386_pe_skip_trampoline_code): Update.
1231 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1232 * infcall.c (get_function_name): Update.
1233 * linespec.c (minsym_found): Update.
1234 * linux-fork.c (info_checkpoints_command): Update.
1235 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1236 (m32c_m16c_pointer_to_address): Update.
1237 * maint.c (maintenance_translate_address): Update.
1238 * minsyms.c (add_minsym_to_hash_table): Update.
1239 (add_minsym_to_demangled_hash_table): Update.
1240 (lookup_minimal_symbol_mangled): Update.
1241 (lookup_minimal_symbol_demangled): Update.
1242 (lookup_minimal_symbol_linkage): Update.
1243 (lookup_minimal_symbol_text): Update.
1244 (lookup_minimal_symbol_by_pc_name): Update.
1245 (minimal_symbol_is_less_than): Update.
1246 (compact_minimal_symbols): Update.
1247 (build_minimal_symbol_hash_tables): Update.
1248 (find_solib_trampoline_target): Update.
1249 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1250 (mips_skip_pic_trampoline_code): Update.
1251 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1252 * objc-lang.c (info_selectors_command): Update.
1253 (info_classes_command): Update.
1254 (find_methods): Update.
1255 (find_imps): Update.
1256 * p-valprint.c (pascal_val_print): Update.
1257 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1258 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1259 * printcmd.c (build_address_symbolic): Update.
1260 (info_symbol_command): Update.
1261 * psymtab.c (psymbol_name_matches): Update.
1262 (match_partial_symbol): Update.
1263 (lookup_partial_symbol): Update.
1264 (print_partial_symbols): Update.
1265 (sort_pst_symbols): Update.
1266 (maintenance_check_psymtabs): Update.
1267 * python/py-framefilter.c (py_print_frame): Update.
1268 * python/python.c (gdbpy_rbreak): Update.
1269 * record-btrace.c (btrace_get_bfun_name): Update.
1270 (btrace_call_history): Update.
1271 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1272 (rs6000_skip_trampoline_code): Update.
1273 * sol-thread.c (info_cb): Update.
1274 * stabsread.c (scan_file_globals): Update.
1275 * stack.c (find_frame_funname): Update.
1276 (info_frame_command_core): Update.
1277 * symmisc.c (dump_msymbols): Update.
1278 * symtab.c (symbol_natural_name): Rename to..,
1279 (general_symbol_info::natural_name): ...this.
1280 (symbol_demangled_name): Rename to...
1281 (general_symbol_info::demangled_name): ...this.
1282 (symbol_search_name): Rename to...
1283 (general_symbol_info::search_name): ...this.
1284 (symbol_matches_search_name): Update.
1285 (find_pc_sect_line): Update.
1286 (skip_prologue_sal): Update.
1287 (search_symbols): Update.
1288 (print_msymbol_info): Update.
1289 (rbreak_command): Update.
1290 (completion_list_add_msymbol): Update.
1291 (completion_list_objc_symbol): Update.
1292 (get_msymbol_address): Update.
1293 * symtab.h (struct general_symbol_info): Add member functions
1294 natural_name (), linkage_name (), print_name (), demangled_name (),
1295 and search_name ().
1296 (SYMBOL_NATURAL_NAME): Update.
1297 (symbol_natural_name): Move to a member function on general_symbol_info.
1298 (SYMBOL_DEMANGLED_NAME): Update.
1299 (symbol_demangled_name): Move to a member function on
1300 general_symbol_info.
1301 (SYMBOL_SEARCH_NAME): Update.
1302 (symbol_search_name): Move to a member function on general_symbol_info.
1303 (MSYMBOL_NATURAL_NAME): Remove.
1304 (MSYMBOL_LINKAGE_NAME): Remove.
1305 (MSYMBOL_PRINT_NAME): Remove.
1306 (MSYMBOL_DEMANGLED_NAME): Remove.
1307 (MSYMBOL_SEARCH_NAME): Remove.
1308 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1309
f8bab2d6
CB
13102019-11-22 Christian Biesinger <cbiesinger@google.com>
1311
1312 * symtab.c (create_demangled_names_hash): Use per_bfd->
1313 minimal_symbol_count for computing the initial size, if greater
1314 than our default size.
1315
85e7588d
TV
13162019-11-22 Tom de Vries <tdevries@suse.de>
1317
1318 * contrib/words.sh: Improve words extraction.
1319
f6180073
TV
13202019-11-22 Tom de Vries <tdevries@suse.de>
1321
1322 * contrib/words.sh: Combine sed invocations.
1323
f10ffa41
CB
13242019-11-21 Christian Biesinger <cbiesinger@google.com>
1325
1326 * Makefile.in: Update.
1327 * demangle.c: Rename to...
1328 * gdb-demangle.c: ..this.
1329 (is_cplus_marker): Change return type to bool.
1330 (_initialize_demangler): Rename to...
1331 (_initialize_gdb_demangle): ...this.
1332 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1333 * symtab.h (demangle): Remove declaration; instead include
1334 gdb-demangle.h.
1335
6ba18521
TT
13362019-11-21 Tom Tromey <tromey@adacore.com>
1337
1338 * gdbsupport/format.c (format_pieces): Parse %I64d.
1339 * unittests/format_pieces-selftests.c (test_windows_formats): New
1340 function.
1341 (run_tests): Call it.
1342
34877895
PJ
13432019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1344
1345 Byte reverse display of variables with DW_END_big, DW_END_little
1346 (DW_AT_endianity) dwarf attributes if different than the native
1347 byte order.
1348 * ada-lang.c (ada_value_binop):
1349 Use type_byte_order instead of gdbarch_byte_order.
1350 * ada-valprint.c (printstr):
1351 (ada_val_print_string):
1352 * ada-lang.c (value_pointer):
1353 (ada_value_binop):
1354 Use type_byte_order instead of gdbarch_byte_order.
1355 * c-lang.c (c_get_string):
1356 Use type_byte_order instead of gdbarch_byte_order.
1357 * c-valprint.c (c_val_print_array):
1358 Use type_byte_order instead of gdbarch_byte_order.
1359 * cp-valprint.c (cp_print_class_member):
1360 Use type_byte_order instead of gdbarch_byte_order.
1361 * dwarf2loc.c (rw_pieced_value):
1362 Use type_byte_order instead of gdbarch_byte_order.
1363 * dwarf2read.c (read_base_type): Handle DW_END_big,
1364 DW_END_little
1365 * f-lang.c (f_get_encoding):
1366 Use type_byte_order instead of gdbarch_byte_order.
1367 * findvar.c (default_read_var_value):
1368 Use type_byte_order instead of gdbarch_byte_order.
1369 * gdbtypes.c (check_types_equal):
1370 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1371 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1372 and TYPE_ENDIANITY_LITTLE if set.
1373 (type_byte_order): new function.
1374 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1375 (struct main_type) <flag_endianity_not_default>:
1376 New field.
1377 (type_byte_order): New function.
1378 * infcmd.c (default_print_one_register_info):
1379 Use type_byte_order instead of gdbarch_byte_order.
1380 * p-lang.c (pascal_printstr):
1381 Use type_byte_order instead of gdbarch_byte_order.
1382 * p-valprint.c (pascal_val_print):
1383 Use type_byte_order instead of gdbarch_byte_order.
1384 * printcmd.c (print_scalar_formatted):
1385 Use type_byte_order instead of gdbarch_byte_order.
1386 * solib-darwin.c (darwin_current_sos):
1387 Use type_byte_order instead of gdbarch_byte_order.
1388 * solib-svr4.c (solib_svr4_r_ldsomap):
1389 Use type_byte_order instead of gdbarch_byte_order.
1390 * stap-probe.c (stap_modify_semaphore):
1391 Use type_byte_order instead of gdbarch_byte_order.
1392 * target-float.c (target_float_same_format_p):
1393 Use type_byte_order instead of gdbarch_byte_order.
1394 * valarith.c (scalar_binop):
1395 (value_bit_index):
1396 Use type_byte_order instead of gdbarch_byte_order.
1397 * valops.c (value_cast):
1398 Use type_byte_order instead of gdbarch_byte_order.
1399 * valprint.c (generic_emit_char):
1400 (generic_printstr):
1401 (val_print_string):
1402 Use type_byte_order instead of gdbarch_byte_order.
1403 * value.c (unpack_long):
1404 (unpack_bits_as_long):
1405 (unpack_value_bitfield):
1406 (modify_field):
1407 (pack_long):
1408 (pack_unsigned_long):
1409 Use type_byte_order instead of gdbarch_byte_order.
1410 * findvar.c (unsigned_pointer_to_address):
1411 (signed_pointer_to_address):
1412 (unsigned_address_to_pointer):
1413 (address_to_signed_pointer):
1414 (default_read_var_value):
1415 (default_value_from_register):
1416 Use type_byte_order instead of gdbarch_byte_order.
1417 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1418 Use type_byte_order instead of gdbarch_byte_order.
1419 * riscv-tdep.c (riscv_print_one_register_info):
1420 Use type_byte_order instead of gdbarch_byte_order.
1421
87fb00ea
SM
14222019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1423
1424 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1425 (current_ui_gdb_stdin_ptr): Likewise.
1426 (current_ui_gdb_stderr_ptr): Likewise.
1427 (current_ui_gdb_stdlog_ptr): Likewise.
1428 (current_ui_current_uiout_ptr): Likewise.
1429 (gen_ret_current_ui_field_ptr): Remove.
1430
65d1cd5f
TV
14312019-11-21 Tom de Vries <tdevries@suse.de>
1432
1433 PR gdb/24956
1434 * cli/cli-script.c (execute_control_command): Only switch to
1435 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1436
9f6ad286
TT
14372019-11-19 Tom Tromey <tom@tromey.com>
1438
1439 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1440 Now static. Change type of "name".
1441 (tui_set_win_height_command): Don't copy "arg".
1442 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1443 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1444
435d3d88
AT
14452019-11-19 Ali Tamur <tamur@google.com>
1446
1447 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1448 "if (attr != nullptr)".
1449 (dwarf2_find_base_address): Likewise.
1450 (dwarf2_build_include_psymtabs): Likewise.
1451 (read_cutu_die_from_dwo): Likewise.
1452 (read_func_scope): Likewise.
1453 (read_call_site_scope): Likewise.
1454 (dwarf2_get_pc_bounds): Likewise.
1455 (dwarf2_record_block_ranges): Likewise.
1456 (dwarf2_add_field): Likewise.
1457 (dwarf2_add_member_fn): Likewise.
1458 (read_structure_type): Likewise.
1459 (read_enumeration_type): Likewise.
1460 (read_array_type): Likewise.
1461 (read_array_order): Likewise.
1462 (read_set_type): Likewise.
1463 (read_common_block): Likewise.
1464 (read_tag_reference_type): Likewise.
1465 (read_tag_string_type): Likewise.
1466 (read_subroutine_type): Likewise.
1467 (read_base_type): Likewise.
1468 (read_subrange_type): Likewise.
1469 (new_symbol): Likewise.
1470 (prepare_one_comp_unit): Likewise.
1471
c9739b6a
TT
14722019-11-19 Tom Tromey <tromey@adacore.com>
1473
1474 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1475 result in error when DebugActiveProcess fails.
1476
494409bb
SDJ
14772019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1478 Pedro Alves <palves@redhat.com>
1479
1480 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1481 * target.c (target_stack::push): Call 'unpush' if there's a
1482 target on top of the stack.
1483
2e953aca
PW
14842019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1485
1486 * python/py-block.c (blpy_dealloc): Call tp_free.
1487 (blpy_block_syms_dealloc): Likewise.
1488 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1489 * python/py-inferior.c (infpy_dealloc): Likewise.
1490 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1491 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1492 * python/py-symbol.c (sympy_dealloc): Likewise.
1493 * python/py-symtab.c (stpy_dealloc): Likewise.
1494 * python/py-type.c (typy_iterator_dealloc): Likewise.
1495
6edc43ec
CB
14962019-11-18 Christian Biesinger <cbiesinger@google.com>
1497
1498 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1499 constructor instead of using a class initializer.
1500
cd850b40
CB
15012019-11-15 Christian Biesinger <cbiesinger@google.com>
1502
1503 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1504 * configure: Regenerate.
1505 * configure.ac: Don't source common.host.
1506 * gdbsupport/common.host: Remove.
1507 * gdbsupport/mingw-strerror.c: Remove.
1508 * gdbsupport/posix-strerror.c: Rename to...
1509 * gdbsupport/safe-strerror.c: ...this.
1510
53fea9c7
CB
15112019-11-15 Christian Biesinger <cbiesinger@google.com>
1512
1513 * maint.c (scoped_command_stats::print_time): Use localtime_r
1514 instead of localtime (provided through gnulib if necessary).
1515 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1516 of ctime.
1517
f8e27d88
CB
15182019-11-15 Christian Biesinger <cbiesinger@google.com>
1519
1520 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1521 avoid compile errors.
1522
5abebf3c
CB
15232019-11-15 Christian Biesinger <cbiesinger@google.com>
1524
1525 * config.in: Regenerate.
1526 * configure: Regenerate.
1527 * gdbsupport/common.m4: No longer check for strerror_r.
1528 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1529 POSIX version of strerror_r, now that gnulib provides it if
1530 necessary.
1531
9a351667
CB
15322019-11-14 Christian Biesinger <cbiesinger@google.com>
1533
1534 * README (`configure' options): Update.
1535
55708e99
TT
15362019-11-14 Tom Tromey <tromey@adacore.com>
1537
1538 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1539 expected type for the RHS if the LHS is a convenience variable.
1540
4b09bb2e
SM
15412019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1542
1543 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1544 Provide explicit default and copy constructor.
1545
bd454f8b
PW
15462019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1547
1548 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1549 only call Py_INCREF (newbp) in the bppy_pending_object case.
1550
d1aa3cf0
TT
15512019-11-13 Tom Tromey <tromey@adacore.com>
1552
1553 PR build/25182:
1554 * psympriv.h (partial_symbol): Remove static assert.
1555 * symtab.h (general_symbol_info, symbol): Remove static assert.
1556
e06f3d6e
AB
15572019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1558
1559 * gdbsupport/format.c (format_pieces::format_pieces): Support
1560 printf 'z' size modifier.
1561 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1562 * printcmd.c (ui_printf): Handle size_t_arg.
1563 * ui-out.c (ui_out::vmessage): Likewise.
1564 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1565 function.
1566 (run_tests): Call test_format_int_sizes.
1567
468c0cbb
CB
15682019-11-12 Christian Biesinger <cbiesinger@google.com>
1569
1570 * ada-exp.y (write_ambiguous_var): Update.
1571 * buildsym.c (add_symbol_to_list): Update.
1572 * dwarf2read.c (read_variable): Update.
1573 (new_symbol): Update.
1574 * jit.c (finalize_symtab): Update.
1575 * language.c (language_alloc_type_symbol): Update.
1576 * symtab.c (fixup_symbol_section): Update.
1577 (initialize_objfile_symbol_1): Move code to...
1578 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1579 (allocate_symbol): Update.
1580 (allocate_template_symbol): Update.
1581 (get_symbol_address): Update.
1582 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1583 of having as a field, and add a constructor.
1584 (SYMBOL_VALUE): Update.
1585 (SYMBOL_VALUE_ADDRESS): Update.
1586 (SET_SYMBOL_VALUE_ADDRESS): Update.
1587 (SYMBOL_VALUE_BYTES): Update.
1588 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1589 (SYMBOL_BLOCK_VALUE): Update.
1590 (SYMBOL_VALUE_CHAIN): Update.
1591 (SYMBOL_LANGUAGE): Update.
1592 (SYMBOL_SECTION): Update.
1593 (SYMBOL_OBJ_SECTION): Update.
1594 (SYMBOL_SET_LANGUAGE): Update.
1595 (SYMBOL_SET_LINKAGE_NAME): Update.
1596 (SYMBOL_SET_NAMES): Update.
1597 (SYMBOL_NATURAL_NAME): Update.
1598 (SYMBOL_LINKAGE_NAME): Update.
1599 (SYMBOL_DEMANGLED_NAME): Update.
1600 (SYMBOL_SEARCH_NAME): Update.
1601 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1602 (struct symbol): Update.
1603 (struct template_symbol): Update.
1604 (struct rust_vtable_symbol): Update.
1605 * xcoffread.c (SYMBOL_DUP): Update.
1606
ed2c82c3
TT
16072019-11-12 Tom Tromey <tom@tromey.com>
1608
1609 * tui/tui-layout.c (show_layout): Set current_layout.
1610 (show_source_disasm_command, show_data)
1611 (show_source_or_disasm_and_command): Don't set current_layout.
1612
d9fcefd5
TT
16132019-11-12 Tom Tromey <tom@tromey.com>
1614
1615 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1616
45e42163
TT
16172019-11-12 Tom Tromey <tom@tromey.com>
1618
1619 * tui/tui-win.c (resize_message): New global.
1620 (show_tui_resize_message): New function.
1621 (tui_async_resize_screen): Print message if requested.
1622 (_initialize_tui_win): Add tui-resize-message setting.
1623 * NEWS: Add entry for new commands.
1624
c86d74cc
TT
16252019-11-11 Tom Tromey <tom@tromey.com>
1626
1627 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1628 functions.
1629
7b7b9424
CB
16302019-11-11 Christian Biesinger <cbiesinger@google.com>
1631
1632 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1633
086baaf1
AB
16342019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1635
1636 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1637 function.
1638 * python/python-internal.h (gdbpy_lookup_static_symbols):
1639 Declare new function.
1640 * python/python.c (python_GdbMethods): Add
1641 gdb.lookup_static_symbols method.
1642 * NEWS: Mention gdb.lookup_static_symbols.
1643
09ff83af
AB
16442019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1647 static block of current object file first. Also fix typo in
1648 header comment.
1649
eb2dd8df
AB
16502019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1651
1652 * stack.c (set_last_displayed_sal): Delete.
1653 (last_displayed_sal_valid): Delete.
1654 (last_displayed_pspace): Delete.
1655 (last_displayed_addr): Delete.
1656 (last_displayed_symtab): Delete.
1657 (last_displayed_line): Delete.
1658 (class last_displayed_symtab_info_type): New.
1659 (last_displayed_symtab_info): New static global variable.
1660 (print_frame_info): Call methods on last_displayed_symtab_info.
1661 (clear_last_displayed_sal): Update header comment, and make use of
1662 last_displayed_symtab_info.
1663 (last_displayed_sal_is_valid): Likewise.
1664 (get_last_displayed_pspace): Likewise.
1665 (get_last_displayed_addr): Likewise.
1666 (get_last_displayed_symtab): Likewise.
1667 (get_last_displayed_line): Likewise.
1668 (get_last_displayed_sal): Likewise.
1669 * stack.h (clear_last_displayed_sal): Update header comment.
1670 (last_displayed_sal_is_valid): Likewise.
1671 (get_last_displayed_pspace): Likewise.
1672 (get_last_displayed_addr): Likewise.
1673 (get_last_displayed_symtab): Likewise.
1674 (get_last_displayed_line): Likewise.
1675 (get_last_displayed_sal): Likewise.
1676
62137775
AB
16772019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * stack.c (frame_show_address): Convert return type to bool.
1680 * stack.h (frame_show_address): Likewise, and update header
1681 comment.
1682
cf57ad6d
AB
16832019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1684
1685 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1686 * unittests/vec-utils-selftests.c: New file.
1687 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1688
0b026263
TT
16892019-11-10 Tom Tromey <tom@tromey.com>
1690
1691 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1692 (tui_highlight_win): Likewise.
1693 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1694 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1695 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1696 Don't set can_highlight.
1697
b049ce2d
TT
16982019-11-10 Tom Tromey <tom@tromey.com>
1699
1700 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1701 Remove unused declaration.
1702
992a7040
TT
17032019-11-08 Tom Tromey <tromey@adacore.com>
1704
1705 * top.c (read_command_file): Update.
1706 (command_line_input): Make return type const.
1707 * python/py-gdb-readline.c: Update.
1708 * linespec.c (decode_line_2): Update.
1709 * defs.h (command_line_input): Make return type const.
1710 * cli/cli-script.c (read_next_line): Make return type const.
1711 * ada-lang.c (get_selections): Update.
1712
ca3a04f6
CB
17132019-11-06 Christian Biesinger <cbiesinger@google.com>
1714
1715 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1716 * mi/mi-main.c (output_cores): Likewise.
1717 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1718 (linux_xfer_osdata_modules): Likewise.
1719 * remote.c (register_remote_support_xml): Likewise.
1720 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1721 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1722
e0eac551
TT
17232019-11-06 Tom Tromey <tom@tromey.com>
1724
1725 * tui/tui-interp.c: Don't include readline.h.
1726 * tui/tui-hooks.c: Don't include readline.h.
1727 * symmisc.c: Include tilde.h, not readline.h.
1728 * symfile.c: Include tilde.h, not readline.h.
1729 * source.c: Include tilde.h, not readline.h.
1730 * solib.c: Include tilde.h, not readline.h.
1731 * psymtab.c: Include tilde.h, not readline.h.
1732 * exec.c: Include tilde.h, not readline.h.
1733 * corelow.c: Include tilde.h, not readline.h.
1734 * cli/cli-dump.c: Include tilde.h, not readline.h.
1735 * cli/cli-cmds.c: Don't include readline.h.
1736
825165c5
TT
17372019-11-05 Tom Tromey <tom@tromey.com>
1738
1739 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1740 (tui_disassemble): Set addr_size.
1741 (tui_disasm_window::set_contents): Use addr_size.
1742
91ae903f
TT
17432019-11-05 Tom Tromey <tom@tromey.com>
1744
1745 * rust-lang.c (rust_language_defn): Update.
1746 * python/py-value.c (valpy_string): Call c_get_string.
1747 * p-lang.c (pascal_language_defn): Update.
1748 * opencl-lang.c (opencl_language_defn): Update.
1749 * objc-lang.c (objc_language_defn): Update.
1750 * m2-lang.c (m2_language_defn): Update.
1751 * language.c (unknown_language_defn, auto_language_defn): Update.
1752 (default_get_string): Remove.
1753 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1754 * go-lang.c (go_language_defn): Update.
1755 * f-lang.c (f_language_defn): Update.
1756 * d-lang.c (d_language_defn): Update.
1757 * c-lang.c (c_language_defn, cplus_language_defn)
1758 (asm_language_defn, minimal_language_defn): Update.
1759 * ada-lang.c (ada_language_defn): Update.
1760 * language.h (struct language_defn) <la_get_string>: Remove.
1761 (LA_GET_STRING): Remove.
1762 (default_get_string): Don't declare.
1763
1df2f9ef
TT
17642019-11-05 Tom Tromey <tom@tromey.com>
1765
1766 * tui/tui-source.h (struct tui_source_window): Inline
1767 constructor. Remove destructor.
1768 <style_changed, m_observable>: Move to superclass.
1769 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1770 (struct tui_source_window_base): Move private members to end.
1771 <style_changed, m_observable>: Move from tui_source_window.
1772 * tui/tui-winsource.c (tui_copy_source_line): Move from
1773 tui-source.c. Rename from copy_source_line. Add special handling
1774 for negative line number.
1775 (tui_source_window_base::style_changed): Move from
1776 tui_source_window.
1777 (tui_source_window_base): Register observer.
1778 (~tui_source_window_base): New.
1779 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1780 rename.
1781 (tui_source_window::set_contents): Use tui_copy_source_line.
1782 (tui_source_window::tui_source_window): Move to tui-source.h.
1783 (tui_source_window::~tui_source_window): Remove.
1784 (tui_source_window::style_changed): Move to superclass.
1785 * tui/tui-disasm.c (tui_disassemble): Create string file with
1786 styling, when possible. Add "addr_size" parameter.
1787 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1788 Don't compute maximum size.
1789 (len_without_escapes): New function
1790
5d051055
TT
17912019-11-05 Tom Tromey <tom@tromey.com>
1792
1793 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1794 std::string.
1795 * tui/tui-winsource.c (tui_show_source_line): Update.
1796 * tui/tui-source.c (tui_source_window::set_contents): Update.
1797 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1798
ade7beea
CB
17992019-11-05 Christian Biesinger <cbiesinger@google.com>
1800
1801 * symtab.h (gdb_static_assert): Put && operator at the beginning
1802 of the line instead of the end.
1803
3573abe1
CB
18042019-11-04 Christian Biesinger <cbiesinger@google.com>
1805
1806 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1807 and sizeof (symbol).
1808 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1809
dae8b3eb
RO
18102019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1811
1812 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1813 * configure.host: Mark *-*-solaris2.10* obsolete.
1814 * configure.tgt: Mark Solaris < 11 obsolete.
1815 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1816 Update target triplet.
1817
5df96a4e
TT
18182019-11-01 Tom Tromey <tromey@adacore.com>
1819
1820 * utils.c (print_sys_errmsg): Simplify.
1821
b7481649
TT
18222019-11-01 Tom Tromey <tromey@adacore.com>
1823
1824 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1825
e48f6033
CB
18262019-11-01 Christian Biesinger <cbiesinger@google.com>
1827
1828 * configure: Regenerate.
1829 * configure.ac: Remove check for strerror_r.
1830 * gdbsupport/common.m4: Check for strerror_r.
1831
bd5766ec
LM
18322019-11-01 Luis Machado <luis.machado@linaro.org>
1833
1834 PR gdb/25124
1835
1836 * arm-tdep.c (arm_per_objfile): Rename to ...
1837 (arm_per_bfd): ... this.
1838 (arm_objfile_data_key): Rename to ...
1839 (arm_bfd_data_key): ... this.
1840 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1841 data.
1842 (arm_record_special_symbol): Likewise.
1843
e1709896
AB
18442019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1845
1846 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1847 end.
1848 * c-typeprint.c (c_print_typedef): Likewise.
1849 * f-typeprint.c (f_print_typedef): Likewise.
1850 * m2-typeprint.c (m2_print_typedef): Likewise.
1851 * p-typeprint.c (pascal_print_typedef): Likewise.
1852 * rust-lang.c (rust_print_typedef): Likewise.
1853 * symtab.c (print_symbol_info): Print a newline after calling
1854 typedef_print.
1855
165f8965
AB
18562019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1857
1858 * symtab.c (info_module_cmdlist): New variable.
1859 (info_module_command): New function.
1860 (search_module_symbols): New function.
1861 (info_module_subcommand): New function.
1862 (struct info_modules_var_func_options): New struct.
1863 (info_modules_var_func_options_defs): New variable.
1864 (make_info_modules_var_func_options_def_group): New function.
1865 (info_module_functions_command): New function.
1866 (info_module_variables_command): New function.
1867 (info_module_var_func_command_completer): New function.
1868 (_initialize_symtab): Register new 'info module functions' and
1869 'info module variables' commands.
1870 * symtab.h (typedef symbol_search_in_module): New typedef.
1871 (search_module_symbols): Declare new function.
1872 * NEWS: Mention new commands.
1873
59c35742
AB
18742019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1875
1876 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1877 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1878 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1879 MODULES_DOMAIN.
1880 (scan_partial_symbols): Only create partial module symbols for non
1881 declarations.
1882 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1883 and MODULES_DOMAIN.
1884 * symtab.c (search_domain_name): Likewise.
1885 (search_symbols): Likewise.
1886 (print_symbol_info): Likewise.
1887 (symtab_symbol_info): Likewise.
1888 (info_modules_command): New function.
1889 (_initialize_symtab): Register 'info modules' command.
1890 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1891 * NEWS: Mention new 'info modules' command.
1892
aed61d02
PW
18932019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1894
1895 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1896 and $_gdb_maint_setting_str.
1897
9ad9b77d
PW
18982019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1899
1900 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1901 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1902 (str_value_from_setting, gdb_setting_str_internal_fn)
1903 (gdb_maint_setting_str_internal_fn): New functions.
1904 (_initialize_cli_cmds): Define the new convenience functions.
1905 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1906 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1907
8d6efaa2
CB
19082019-10-31 Christian Biesinger <cbiesinger@google.com>
1909
1910 * agent.c (set_can_use_agent): When the setting is turned on,
1911 look up agent symbols if we don't have them yet.
1912 (agent_new_objfile): Don't look up agent symbols when the agent
1913 setting is off.
1914
33cb1647
CB
19152019-10-31 Christian Biesinger <cbiesinger@google.com>
1916
1917 * config.in: Regenerate.
1918
b231e86a
CB
19192019-10-31 Christian Biesinger <cbiesinger@google.com>
1920
1921 * configure: Regenerate.
1922 * configure.ac: Check for strerror_r.
1923 * gdbsupport/common-utils.h (safe_strerror): Change return value
1924 to const char * and document that this function is now threadsafe.
1925 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1926 thread_local and call strerror_r, if available.
1927 * utils.c (perror_string): Update.
1928 (print_sys_errmsg): Update.
1929
a2726d4f
LM
19302019-10-31 Luis Machado <luis.machado@linaro.org>
1931
1932 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1933 objfile_key.
1934 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1935 objfile to fetch per-bfd data.
1936 (arm_find_exidx_entry): Likewise.
1937
75cafaa6
CB
19382019-10-31 Christian Biesinger <cbiesinger@google.com>
1939
1940 * gdbsupport/agent.c (debug_agent): Change type to bool.
1941 (use_agent): Likewise.
1942 (all_agent_symbols_look_up): Likewise.
1943 (agent_loaded_p): Change return value to bool.
1944 (agent_look_up_symbols): Update.
1945 (agent_capability_check): Change return value to bool.
1946 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1947 (debug_agent): Change type to bool.
1948 (use_agent): Likewise.
1949 (agent_capability_check): Change return value to bool.
1950
808590ec
CB
19512019-10-30 Christian Biesinger <cbiesinger@google.com>
1952
1953 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1954 (build_minimal_symbol_hash_tables): Code to clear the table moved
1955 to clear_minimal_symbol_hash_tables.
1956 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1957 when needed.
1958
f18ad8a1
SM
19592019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1960
1961 * infcmd.c: Remove includes.
1962 * infrun.c: Remove includes.
1963
de93309a
SM
19642019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1965
1966 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1967 (grow_vect): Remove declaration.
1968 (ada_type_of_array): Remove declaration.
1969 (ada_update_initial_language): Remove declaration.
1970 (ada_fold_name): Remove declaration.
1971 (ada_fill_in_ada_prototype): Remove declaration.
1972 (user_select_syms): Remove declaration.
1973 (get_selections): Remove declaration.
1974 (ada_tag_type): Remove declaration.
1975 (ada_value_tag): Remove declaration.
1976 (ada_is_others_clause): Remove declaration.
1977 (ada_in_variant): Remove declaration.
1978 (ada_value_struct_elt): Remove declaration.
1979 (ada_attribute_name): Remove declaration.
1980 (ada_system_address_type): Remove declaration.
1981 * ada-lang.c (ada_watch_location_expression): Make static.
1982 (GROW_VECT): Move here from ada-lang.h.
1983 (grow_vect): Make static.
1984 (ada_update_initial_language): Make static.
1985 (ada_fold_name): Make static.
1986 (ada_type_of_array): Make static.
1987 (encoded_ordered_before): Move up.
1988 (sort_choices): Move up.
1989 (print_signatures): Move up.
1990 (ada_print_symbol_signature): Move up.
1991 (get_selections): Move up and make static.
1992 (user_select_syms): Move up and make static.
1993 (ada_value_struct_elt): Move up and make static.
1994 (ada_tag_type): Make static.
1995 (ada_value_tag): Make static.
1996 (ada_is_others_clause): Make static.
1997 (ada_in_variant): Make static.
1998 (ada_attribute_name): Make static.
1999
cdc46a9f
SM
20002019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2001
2002 * ada-lang.c: Remove includes.
2003 * ada-typeprint.c: Remove includes.
2004 * ada-valprint.c: Remove includes.
2005
90421c56
SM
20062019-10-29 Simon Marchi <simon.marchi@efficios.com>
2007
2008 * addrmap.c: Add static assertions of type size, moved from
2009 _initialize_addrmap.
2010 (_initialize_addrmap): Remove.
2011
31edb802
CB
20122019-10-29 Christian Biesinger <cbiesinger@google.com>
2013
2014 * coffread.c (record_minimal_symbol): Update.
2015 (process_coff_symbol): Update.
2016 * dbxread.c (read_dbx_symtab): Update.
2017 * dwarf2read.c (add_partial_symbol): Update.
2018 (fixup_go_packaging): Update.
2019 (load_partial_dies): Update.
2020 (new_symbol): Update.
2021 * elfread.c (record_minimal_symbol): Change signature to use
2022 gdb::string_view instead of name+len.
2023 (elf_symtab_read): Update.
2024 (elf_rel_plt_read): Update.
2025 * mdebugread.c (parse_partial_symbols): Update.
2026 (handle_psymbol_enumerators): Update.
2027 (new_symbol): Update.
2028 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2029 to use gdb::string_view instead of name+len.
2030 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2031 * psympriv.h (add_psymbol_to_list): Likewise.
2032 * psymtab.c (add_psymbol_to_bcache): Likewise.
2033 (add_psymbol_to_list): Likewise.
2034 * stabsread.c (define_symbol): Update.
2035 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2036 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2037 (symbol_set_names): Likewise.
2038 * xcoffread.c (scan_xcoff_symtab): Update.
2039
0c921b21
CB
20402019-10-29 Christian Biesinger <cbiesinger@google.com>
2041
2042 * symtab.h (symbol_set_names): Document that copy_name must be
2043 set to true for non-nullterminated strings.
2044 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2045 linkage_name if the entry was not found and we need to demangle.
2046
35e65c49
CB
20472019-10-29 Christian Biesinger <cbiesinger@google.com>
2048
2049 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2050 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2051 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2052 * gdbsupport/gdb_binary_search.h: New file.
2053
ed2a2229
CB
20542019-10-29 Christian Biesinger <cbiesinger@google.com>
2055
2056 * NEWS: Mention new --with-system-gdbinit-dir option.
2057 * config.in: Regenerate.
2058 * configure: Regenerate.
2059 * configure.ac: Add new option --with-system-gdbinit-dir.
2060 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2061 for a ".gdb" suffix.
2062 * main.c (get_init_files): Change system_gdbinit argument to
2063 a vector and return the files in SYSTEM_GDBINIT_DIR in
2064 addition to SYSTEM_GDBINIT.
2065 (captured_main_1): Update.
2066 (print_gdb_help): Update.
2067 * top.c (print_gdb_configuration): Also print the value of
2068 SYSTEM_GDBINIT_DIR.
2069
87f34879
CB
20702019-10-28 Christian Biesinger <cbiesinger@google.com>
2071
2072 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2073 that takes gdb::string_view arguments.
2074
30baf67b
TV
20752019-10-26 Tom de Vries <tdevries@suse.de>
2076
2077 * aarch64-linux-tdep.c: Fix typos in comments.
2078 * aarch64-tdep.c: Same.
2079 * ada-lang.c: Same.
2080 * amd64-nat.c: Same.
2081 * arc-tdep.c: Same.
2082 * arch/aarch64-insn.c: Same.
2083 * block.c: Same.
2084 * breakpoint.h: Same.
2085 * btrace.h: Same.
2086 * c-varobj.c: Same.
2087 * cli/cli-decode.c: Same.
2088 * cli/cli-script.c: Same.
2089 * cli/cli-utils.h: Same.
2090 * coff-pe-read.c: Same.
2091 * coffread.c: Same.
2092 * compile/compile-cplus-symbols.c: Same.
2093 * compile/compile-object-run.c: Same.
2094 * completer.c: Same.
2095 * corelow.c: Same.
2096 * cp-support.c: Same.
2097 * demangle.c: Same.
2098 * dwarf-index-write.c: Same.
2099 * dwarf2-frame.c: Same.
2100 * dwarf2-frame.h: Same.
2101 * eval.c: Same.
2102 * frame-base.h: Same.
2103 * frame.h: Same.
2104 * gdbcmd.h: Same.
2105 * gdbtypes.h: Same.
2106 * gnu-nat.c: Same.
2107 * guile/scm-objfile.c: Same.
2108 * i386-tdep.c: Same.
2109 * i386-tdep.h: Same.
2110 * infcall.c: Same.
2111 * infcall.h: Same.
2112 * linux-nat.c: Same.
2113 * m68k-tdep.c: Same.
2114 * macroexp.c: Same.
2115 * memattr.c: Same.
2116 * mi/mi-cmd-disas.c: Same.
2117 * mi/mi-getopt.h: Same.
2118 * mi/mi-main.c: Same.
2119 * minsyms.c: Same.
2120 * nat/aarch64-sve-linux-sigcontext.h: Same.
2121 * objfiles.h: Same.
2122 * ppc-linux-nat.c: Same.
2123 * ppc-linux-tdep.c: Same.
2124 * ppc-tdep.h: Same.
2125 * progspace.h: Same.
2126 * prologue-value.h: Same.
2127 * python/py-evtregistry.c: Same.
2128 * python/py-instruction.h: Same.
2129 * record-btrace.c: Same.
2130 * record-full.c: Same.
2131 * remote.c: Same.
2132 * rs6000-tdep.c: Same.
2133 * ser-tcp.c: Same.
2134 * sol-thread.c: Same.
2135 * sparc-sol2-tdep.c: Same.
2136 * sparc64-tdep.c: Same.
2137 * stabsread.c: Same.
2138 * symfile.c: Same.
2139 * symtab.h: Same.
2140 * target.c: Same.
2141 * tracepoint.c: Same.
2142 * tui/tui-data.h: Same.
2143 * tui/tui-io.c: Same.
2144 * tui/tui-win.c: Same.
2145 * tui/tui.c: Same.
2146 * unittests/rsp-low-selftests.c: Same.
2147 * user-regs.h: Same.
2148 * utils.c: Same.
2149 * utils.h: Same.
2150 * valarith.c: Same.
2151 * valops.c: Same.
2152 * valprint.c: Same.
2153 * valprint.h: Same.
2154 * value.c: Same.
2155 * value.h: Same.
2156 * varobj.c: Same.
2157 * x86-nat.h: Same.
2158 * xtensa-tdep.c: Same.
2159
1834d45f
AT
21602019-10-25 Ali Tamur <tamur@google.com>
2161
2162 * charset.c (find_charset_names): Reflect API change.
2163
5396ae17
CB
21642019-10-25 Christian Biesinger <cbiesinger@google.com>
2165
2166 * symtab.c (struct demangled_name_entry): Change demangled name
2167 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2168 part of the struct anymore.
2169 (symbol_set_names): No longer obstack allocate + copy the demangled
2170 name, just store the allocated name from bfd.
2171
93878f47
TT
21722019-10-25 Tom Tromey <tromey@adacore.com>
2173
2174 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2175 (bsearch_cie_cmp, add_cie): Remove.
2176 (find_cie): Reimplement.
2177 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2178 (dwarf2_build_frame_info): Update.
2179
7b71fc97
L
21802019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2181
2182 PR gdb/25126
2183 * symfile.c (reread_symbols): Call forget_cached_source_info to
2184 clear the stale source cache.
2185
cbb5a2ea
CB
21862019-10-24 Christian Biesinger <cbiesinger@google.com>
2187
2188 * configure: Regenerate.
2189 * configure.ac: Remove code that sets python_has_threads.
2190
71737c43
CB
21912019-10-24 Christian Biesinger <cbiesinger@google.com>
2192
2193 * config.in: Regenerate.
2194 * configure: Regenerate.
2195 * configure.ac: Remove the code that uses sed to get the python
2196 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2197
33d569b7
AB
21982019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2199
2200 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2201 error paths.
2202
f16f7b7c
TT
22032019-10-23 Tom Tromey <tom@tromey.com>
2204
2205 * arc-tdep.c: Remove ".." from include.
2206 * frv-tdep.c: Remove ".." from include.
2207 * lm32-tdep.c: Remove ".." from include.
2208 * microblaze-tdep.c: Remove ".." from include.
2209 * or1k-tdep.h: Remove ".." from include.
2210 * s12z-tdep.c: Remove ".." from include.
2211 * Makefile.in (OPCODES_CFLAGS): Add comment.
2212 (TOP_CFLAGS): New variable.
2213 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2214
6999161a
TT
22152019-10-23 Tom Tromey <tom@tromey.com>
2216
2217 * Makefile.in (READLINE_DIR): Update.
2218
12e7c35e
TBA
22192019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2220
2221 * infcall.c (call_function_by_hand_dummy): Fix the function
2222 comment. And extract out a code section into...
2223 (reserve_stack_space): ...this new function.
2224
37055cad
TBA
22252019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2226
2227 * infcall.c (value_arg_coerce): Remove an unused parameter.
2228 (call_function_by_hand_dummy): Update the call to
2229 'value_arg_coerce'.
2230
39bcc47c
TBA
22312019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2232
2233 * infcall.c (call_function_by_hand_dummy): Refactor.
2234
bd888c0f
TBA
22352019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2236
2237 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2238
c12d372d
TT
22392019-10-23 Tom Tromey <tom@tromey.com>
2240
2241 * configure: Rebuild.
2242 * configure.ac: Don't check for sigprocmask.
2243 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2244
4d0b984b
TT
22452019-10-23 Tom Tromey <tom@tromey.com>
2246
2247 * configure: Rebuild.
2248 * acinclude.m4: Use m4_include, not sinclude.
2249
7e785608
TV
22502019-10-23 Tom de Vries <tdevries@suse.de>
2251
2252 PR breakpoints/24687
2253 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2254
403772ef
CB
22552019-10-22 Christian Biesinger <cbiesinger@google.com>
2256
2257 * symtab.c (struct demangled_name_entry) <language>: Change from
2258 bitfield to regular variable.
2259
3a494279
CB
22602019-10-22 Christian Biesinger <cbiesinger@google.com>
2261
2262 * symtab.c (struct demangled_name_entry): Add a constructor.
2263 (free_demangled_name_entry): New function to call the destructor
2264 for demangled_name_entry.
2265 (create_demangled_names_hash): Pass free_demangled_name_entry to
2266 htab_create_alloc.
2267 (symbol_set_names): Call placement new for demangled_name_entry.
2268 * utils.c: No longer include xxhash.h here, now that fast_hash
2269 is inlined in the header.
2270 * utils.h: Instead, include it here.
2271
ccb1ba62
CB
22722019-10-22 Christian Biesinger <cbiesinger@google.com>
2273
2274 * Makefile.in: Link with libxxhash.
2275 * config.in: Regenerate.
2276 * configure: Regenerate.
2277 * configure.ac: Search for libxxhash.
2278 * utils.c (fast_hash): Use xxhash if present.
2279
1a6ff1a9
CB
22802019-10-22 Christian Biesinger <cbiesinger@google.com>
2281
2282 * utils.h (fast_hash): New function.
2283 * symtab.c (hash_demangled_name_entry): Call new function
2284 fast_hash.
2285
7bb43059
CB
22862019-10-22 Christian Biesinger <cbiesinger@google.com>
2287
2288 * symtab.c (struct demangled_name_entry): Change type of mangled
2289 to gdb::string_view. Also adds a constructor that takes the
2290 mangled name.
2291 (hash_demangled_name_entry): Update.
2292 (eq_demangled_name_entry): Update.
2293 (free_demangled_name_entry): New function to call the destructor
2294 now that this is not a POD anymore.
2295 (create_demangled_names_hash): Pass free_demangled_name_entry to
2296 htab_create_alloc.
2297 (symbol_set_names): Update.
2298
7ba99d21
AT
22992019-10-21 Ali Tamur <tamu@google.com>
2300
2301 * dwarf2read.c (dir_index): Change type.
2302 (file_name_index): Likewise.
2303 (line_header::include_dir_at): Change comment and implementation on
2304 whether it is DWARF 5.
2305 (line_header::is_valid_file_index): New function.
2306 (line_header::file_name_at): Change comment and implementation on
2307 whether it is DWARF 5.
2308 (line_header::file_names): Change to private field renamed as
2309 m_file_names and introduce a new accessor method.
2310 (line_header::file_names_size): New method.
2311 (line_header::include_dirs): Change to private field and rename as
2312 m_include_dirs.
2313 (dw2_get_file_names_reader): Define local var at a smaller scope and
2314 reflect API change.
2315 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2316 (process_structure_scope): Likewise.
2317 (line_header::add_include_dir): Change message and reflect renaming.
2318 (line_header::add_file_name): Likewise.
2319 (read_formatted_entries): Handle DW_FORM_data16.
2320 (dwarf_decode_line_header): Fix line header length calculation.
2321 (psymtab_include_file_name): Change comment and API.
2322 (lnp_state_machine::m_file): Update comment and reflect type change.
2323 (lnp_state_machine::record_line): Reflect type change.
2324 (dwarf_decode_lines): Reflect API change.
2325 (file_file_name): Likewise.
2326 (file_full_name): Likewise.
2327
45f47c3a
AB
23282019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2329
2330 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2331
e5f3c0e3
TT
23322019-10-21 Tom Tromey <tom@tromey.com>
2333
2334 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2335
a0a461e5
TT
23362019-10-21 Tom Tromey <tom@tromey.com>
2337
2338 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2339 NM_H. Use AC_CONFIG_LINKS.
2340 * configure: Rebuild.
2341 * Makefile.in (NM_H): New variable.
2342 (generated_files): Add NM_H. Remove gcore.
2343 (nm.h, stamp-nmh): New targets.
2344
54d83b8d
TT
23452019-10-20 Tom Tromey <tom@tromey.com>
2346
2347 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2348 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2349 obsolete comment.
2350 (put_objfile_before): Now static.
2351
23771117
SM
23522019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2353
2354 * gdbsupport/common-utils.h (startswith): Change return type to
2355 bool.
2356
39ef2f62
CB
23572019-10-19 Christian Biesinger <cbiesinger@google.com>
2358
2359 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2360 * breakpoint.c (bp_locations_compare): Rename to...
2361 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2362 (update_global_location_list): Use std::sort instead of qsort.
2363 * buildsym.c (compare_line_numbers): Rename to...
2364 (lte_is_less_than): ...this, and change to std::sort semantics.
2365 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2366 instead of qsort.
2367 * disasm.c (compare_lines): Rename to...
2368 (line_is_less_than): ...this, and change to std::sort semantics.
2369 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2370 of qsort.
2371 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2372 (fde_is_less_than): ...this, and change to std::sort semantics.
2373 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2374 * mdebugread.c (compare_blocks):
2375 (block_is_less_than): ...this, and change to std::sort semantics.
2376 (sort_blocks): Call std::sort instead of qsort.
2377 * objfiles.c (qsort_cmp): Rename to...
2378 (sort_cmp): ...this, and change to std::sort semantics.
2379 (update_section_map): Call std::sort instead of qsort.
2380 * remote.c (compare_pnums): Remove.
2381 (map_regcache_remote_table): Call std::sort instead of qsort.
2382 * utils.c (compare_positive_ints): Remove.
2383 * utils.h (compare_positive_ints): Remove.
2384 * xcoffread.c (compare_lte): Remove.
2385 (arrange_linetable): Call std::sort instead of qsort.
2386
f71433ee
SDJ
23872019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2388
2389 * symfile.c (init_entry_point_info): Fix typo.
2390 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2391
85102364
TV
23922019-10-18 Tom de Vries <tdevries@suse.de>
2393
2394 * aarch64-tdep.c: Fix typos in comments.
2395 * ada-lang.c: Same.
2396 * ada-tasks.c: Same.
2397 * alpha-tdep.c: Same.
2398 * alpha-tdep.h: Same.
2399 * amd64-nat.c: Same.
2400 * amd64-windows-tdep.c: Same.
2401 * arc-tdep.c: Same.
2402 * arc-tdep.h: Same.
2403 * arch-utils.c: Same.
2404 * arm-nbsd-tdep.c: Same.
2405 * arm-tdep.c: Same.
2406 * ax-gdb.c: Same.
2407 * blockframe.c: Same.
2408 * btrace.c: Same.
2409 * c-varobj.c: Same.
2410 * coff-pe-read.c: Same.
2411 * coffread.c: Same.
2412 * cris-tdep.c: Same.
2413 * darwin-nat.c: Same.
2414 * dbxread.c: Same.
2415 * dcache.c: Same.
2416 * disasm.c: Same.
2417 * dtrace-probe.c: Same.
2418 * dwarf-index-write.c: Same.
2419 * dwarf2-frame-tailcall.c: Same.
2420 * dwarf2-frame.c: Same.
2421 * dwarf2read.c: Same.
2422 * eval.c: Same.
2423 * exceptions.c: Same.
2424 * fbsd-tdep.c: Same.
2425 * findvar.c: Same.
2426 * frame.c: Same.
2427 * frv-tdep.c: Same.
2428 * gnu-v3-abi.c: Same.
2429 * go32-nat.c: Same.
2430 * h8300-tdep.c: Same.
2431 * hppa-tdep.c: Same.
2432 * i386-linux-tdep.c: Same.
2433 * i386-tdep.c: Same.
2434 * ia64-libunwind-tdep.c: Same.
2435 * ia64-tdep.c: Same.
2436 * infcmd.c: Same.
2437 * infrun.c: Same.
2438 * linespec.c: Same.
2439 * linux-nat.c: Same.
2440 * linux-thread-db.c: Same.
2441 * machoread.c: Same.
2442 * mdebugread.c: Same.
2443 * mep-tdep.c: Same.
2444 * mn10300-tdep.c: Same.
2445 * namespace.c: Same.
2446 * objfiles.c: Same.
2447 * opencl-lang.c: Same.
2448 * or1k-tdep.c: Same.
2449 * osabi.c: Same.
2450 * ppc-linux-nat.c: Same.
2451 * ppc-linux-tdep.c: Same.
2452 * ppc-sysv-tdep.c: Same.
2453 * printcmd.c: Same.
2454 * procfs.c: Same.
2455 * record-btrace.c: Same.
2456 * record-full.c: Same.
2457 * remote-fileio.c: Same.
2458 * remote.c: Same.
2459 * rs6000-tdep.c: Same.
2460 * s12z-tdep.c: Same.
2461 * score-tdep.c: Same.
2462 * ser-base.c: Same.
2463 * ser-go32.c: Same.
2464 * skip.c: Same.
2465 * sol-thread.c: Same.
2466 * solib-svr4.c: Same.
2467 * solib.c: Same.
2468 * source.c: Same.
2469 * sparc-nat.c: Same.
2470 * sparc-sol2-tdep.c: Same.
2471 * sparc-tdep.c: Same.
2472 * sparc64-tdep.c: Same.
2473 * stabsread.c: Same.
2474 * stack.c: Same.
2475 * symfile.c: Same.
2476 * symtab.c: Same.
2477 * target-descriptions.c: Same.
2478 * target-float.c: Same.
2479 * thread.c: Same.
2480 * utils.c: Same.
2481 * valops.c: Same.
2482 * valprint.c: Same.
2483 * value.c: Same.
2484 * varobj.c: Same.
2485 * windows-nat.c: Same.
2486 * xcoffread.c: Same.
2487 * xstormy16-tdep.c: Same.
2488 * xtensa-tdep.c: Same.
2489
c5adaa19
TT
24902019-10-17 Tom Tromey <tromey@adacore.com>
2491
2492 * configure: Rebuild.
2493 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2494 in AC_CONFIG_FILES invocation.
2495 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2496 new-style config.status invocation.
2497
405feb71
TV
24982019-10-17 Tom de Vries <tdevries@suse.de>
2499
2500 * arm-nbsd-nat.c: Fix typos in comments.
2501 * arm-tdep.c: Same.
2502 * darwin-nat-info.c: Same.
2503 * dwarf2read.c: Same.
2504 * elfread.c: Same.
2505 * event-top.c: Same.
2506 * findvar.c: Same.
2507 * gdbtypes.c: Same.
2508 * hppa-tdep.c: Same.
2509 * i386-tdep.c: Same.
2510 * jit.c: Same.
2511 * main.c: Same.
2512 * mdebugread.c: Same.
2513 * moxie-tdep.c: Same.
2514 * nto-procfs.c: Same.
2515 * osabi.c: Same.
2516 * ppc-linux-tdep.c: Same.
2517 * remote.c: Same.
2518 * riscv-tdep.c: Same.
2519 * s390-tdep.c: Same.
2520 * sh-tdep.c: Same.
2521 * sparc-linux-tdep.c: Same.
2522 * sparc-nat.c: Same.
2523 * stack.c: Same.
2524 * target-descriptions.c: Same.
2525 * top.c: Same.
2526 * varobj.c: Same.
2527
befcd486
TT
25282019-10-16 Tom Tromey <tom@tromey.com>
2529
2530 * objfiles.h (struct objfile) <original_name>: Now const.
2531
17bfe554
CB
25322019-10-16 Christian Biesinger <cbiesinger@google.com>
2533
2534 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2535 pass on to sigsetjmp's second argument.
2536 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2537
950b7495
KS
25382019-10-16 Keith Seitz <keiths@redhat.com>
2539
2540 PR gdb/23567
2541 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2542 sections whose size is greater than the file size.
2543
ff371ec9
JW
25442019-10-16 Jim Wilson <jimw@sifive.com>
2545
2546 * riscv-tdep.c (riscv_gcc_target_options): New.
2547 (riscv_gnu_triplet_regexp): New.
2548 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2549 set_gdbarch_gnu_triplet_regexp.
2550
fec4e896
CB
25512019-10-16 Christian Biesinger <cbiesinger@google.com>
2552
2553 * Makefile.in: Add xml-builtin.h.
2554 * features/feature_to_c.sh: Add an include for xml-builtin.h
2555 to ensure that the compiler checks that the types match.
2556 * xml-builtin.h: New file.
2557 * xml-support.c (fetch_xml_builtin): Add missing const.
2558 * xml-support.h: Remove declaration of xml_builtins.
2559
d10eccaa
TV
25602019-10-16 Tom de Vries <tdevries@suse.de>
2561
2562 PR tdep/25096
2563 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2564 (amd64_classify_aggregate): ... here.
2565 (amd64_classify_aggregate_field): Handled fiels of nested structs
2566 recursively.
2567
745ff14e
TV
25682019-10-16 Tom de Vries <tdevries@suse.de>
2569
2570 PR tdep/24104
2571 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2572 that handles 'theclass'.
2573
791b7405
AB
25742019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2575
2576 * linespec.c (decode_digits_ordinary): Update comment.
2577 * make-target-delegates: No longer need to handle VEC case.
2578 * memrange.c (normalize_mem_ranges): Update comment.
2579 * namespace.c (add_using_directive): Update comment.
2580 * objc-lang.c (uniquify_strings): Update comment.
2581 * ppc-linux-nat.c (struct thread_points): Update comment.
2582 * probe.h (find_probes_in_objfile): Update comment.
2583 * target.h (enum flash_preserve_mode): Update comment.
2584 * varobj.c (varobj_restrict_range): Update comment.
2585 * varobj.h (varobj_list_children): Update comment.
2586
0dc32745
AB
25872019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2588
2589 * Makefile.in: Remove references to vec.h and vec.c.
2590 * aarch64-tdep.c: No longer include vec.h.
2591 * ada-lang.c: Likewise.
2592 * ada-lang.h: Likewise.
2593 * arm-tdep.c: Likewise.
2594 * ax.h: Likewise.
2595 * breakpoint.h: Likewise.
2596 * charset.c: Likewise.
2597 * cp-support.h: Likewise.
2598 * dtrace-probe.c: Likewise.
2599 * dwarf2read.c: Likewise.
2600 * extension.h: Likewise.
2601 * gdb_bfd.c: Likewise.
2602 * gdbsupport/gdb_vecs.h: Likewise.
2603 * gdbsupport/vec.c: Remove.
2604 * gdbsupport/vec.h: Remove.
2605 * gdbthread.h: Likewise.
2606 * guile/scm-type.c: Likewise.
2607 * inline-frame.c: Likewise.
2608 * machoread.c: Likewise.
2609 * memattr.c: Likewise.
2610 * memrange.h: Likewise.
2611 * namespace.h: Likewise.
2612 * nat/linux-btrace.h: Likewise.
2613 * osdata.c: Likewise.
2614 * parser-defs.h: Likewise.
2615 * progspace.h: Likewise.
2616 * python/py-type.c: Likewise.
2617 * record-btrace.c: Likewise.
2618 * rust-exp.y: Likewise.
2619 * solib-target.c: Likewise.
2620 * stap-probe.c: Likewise.
2621 * target-descriptions.c: Likewise.
2622 * target-memory.c: Likewise.
2623 * target.h: Likewise.
2624 * varobj.c: Likewise.
2625 * varobj.h: Likewise.
2626 * xml-support.h: Likewise.
2627
ae640021
AB
26282019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2629
2630 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2631 Update for new std::vector based implementation.
2632 (process_psymtab_comp_unit_reader): Likewise.
2633 (scan_partial_symbols): Likewise.
2634 (recursively_compute_inclusions): Likewise.
2635 (compute_compunit_symtab_includes): Likewise.
2636 (process_imported_unit_die): Likewise.
2637 (queue_and_load_dwo_tu): Likewise.
2638 (follow_die_sig_1): Likewise.
2639 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2640 (typedef dwarf2_per_cu_ptr): Remove.
2641 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2642 function.
2643 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2644 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2645 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2646 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2647 std::vector.
2648
55dfc88f
TT
26492019-10-15 Tom Tromey <tromey@adacore.com>
2650
2651 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2652 TID.
2653
96b49c5e
TT
26542019-10-15 Tom Tromey <tromey@adacore.com>
2655
2656 * windows-nat.c (windows_nat_target::fetch_registers)
2657 (windows_nat_target::store_registers): Rename "pid" to "tid".
2658
953cff56
TT
26592019-10-15 Tom Tromey <tromey@adacore.com>
2660
2661 * gdbarch.h, gdbarch.c: Rebuild.
2662 * gdbarch.sh (gcc_target_options): Change return type to
2663 std::string.
2664 * compile/compile.c (get_args): Update.
2665 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2666 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2667 std::string.
2668 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2669 std::string.
2670 * arch-utils.c (default_gcc_target_options): Return std::string.
2671 * arch-utils.h (default_gcc_target_options): Return std::string.
2672 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2673
81e6b8eb
CB
26742019-10-15 Christian Biesinger <cbiesinger@google.com>
2675
2676 * breakpoint.c (breakpoint_chain): Make static.
2677 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2678 of accessing breakpoint_chain.
2679
95da600f
CB
26802019-10-15 Christian Biesinger <cbiesinger@google.com>
2681
2682 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2683 to a gdb::function_view and return value to bool.
2684 * breakpoint.h (iterate_over_breakpoints): Likewise.
2685 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2686 (pop_dummy_frame): Update.
2687 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2688 (gdbscm_breakpoints): Update.
2689 * python/py-breakpoint.c (build_bp_list): Update.
2690 (gdbpy_breakpoints): Update.
2691 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2692 Update.
2693 (bpfinishpy_handle_stop): Update.
2694 (bpfinishpy_handle_exit): Update.
2695 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2696 (svr4_update_solib_event_breakpoints): Update.
2697
ba18312d
AA
26982019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2699
2700 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2701 when unwrapping single-field structs.
2702
6acc1a0b
SM
27032019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2704
2705 * dwarf2read.c: Remove includes.
2706
284782de
SM
27072019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2708
2709 * ui-out.c (ui_out::call_do_message): Silence
2710 -Wformat-nonliteral warning.
2711
073bbbb0
SM
27122019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2713
2714 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2715 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2716 include: readline/tilde.h.
2717
7b9a15e1
CB
27182019-10-12 Christian Biesinger <cbiesinger@google.com>
2719
2720 * remote.c (remote_target::get_trace_status): Remove declaration of
2721 trace_regblock_size.
2722
cc8dee1f
CB
27232019-10-12 Christian Biesinger <cbiesinger@google.com>
2724
2725 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2726 (show_user): Remove declaration of cmdlist.
2727 * cli/cli-cmds.h (max_user_call_depth): Declare.
2728 * cli/cli-script.c (execute_user_command): Remove declaration
2729 of max_user_call_depth.
2730
a83d4ef6
JW
27312019-10-11 Jim Wilson <jimw@sifive.com>
2732
5f93c5a6
JW
2733 * gdbsupport/print-utils.h (pulongest): Fix comment.
2734 (plongest): Likewise.
2735 (phex): Add missing comment, mention leading zeros.
2736 (phex_nz): Add mention of no leading zeros to comment.
2737
a83d4ef6
JW
2738 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2739 plongest instead of unsigned long long cast.
2740
26344e0c
CB
27412019-10-10 Christian Biesinger <cbiesinger@google.com>
2742
2743 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2744 for external_editor_command and gdbtk_test.
2745
c2c440a9
CB
27462019-10-10 Christian Biesinger <cbiesinger@google.com>
2747
2748 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2749 * varobj.c (varobjdebug): Move comment to...
2750 * varobj.h (varobjdebug): ...here, and declare.
2751
a31bff9d
TT
27522019-10-09 Tom Tromey <tom@tromey.com>
2753
2754 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2755 erase_data_content.
2756
7523da63
TT
27572019-10-09 Tom Tromey <tom@tromey.com>
2758
2759 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2760 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2761 * tui/tui-command.c (tui_cmd_window::resize)
2762 (tui_refresh_cmd_win): Update.
2763 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2764 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2765 * tui/tui-data.c (~tui_gen_win_info): Remove.
2766 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2767 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2768 (tui_redisplay_readline, tui_mld_flush)
2769 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2770 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2771 (tui_data_window::erase_data_content)
2772 (tui_data_item_window::rerender)
2773 (tui_data_item_window::refresh_window): Update.
2774 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2775 (box_win, tui_gen_win_info::make_window)
2776 (tui_gen_win_info::make_visible): Update.
2777 (tui_delete_win): Remove.
2778 * tui/tui-winsource.c
2779 (tui_source_window_base::do_erase_source_content): Update.
2780 (tui_show_source_line, tui_source_window_base::update_tab_width)
2781 (tui_source_window_base::update_exec_info): Update.
2782 * tui/tui-data.h (struct curses_deleter): New.
2783 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2784 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2785
a7798e7f
TT
27862019-10-09 Tom Tromey <tom@tromey.com>
2787
2788 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2789
5c45899e
TT
27902019-10-09 Tom Tromey <tom@tromey.com>
2791
2792 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2793 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2794
6d7fd9aa
TT
27952019-10-09 Tom Tromey <tom@tromey.com>
2796
2797 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2798 window height directly.
2799 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2800 declare.
2801 * tui/tui-layout.c (tui_default_win_height): Remove.
2802 (tui_default_win_viewport_height): Remove.
2803
d2dd1084
TT
28042019-10-09 Tom Tromey <tom@tromey.com>
2805
2806 * tui/tui.h: Remove comments.
2807
cff32449
TV
28082019-10-09 Tom de Vries <tdevries@suse.de>
2809
2810 * python/lib/gdb/printer/bound_registers.py: Use
2811 '^builtin_type_bound128' as regexp argument for
2812 add_builtin_pretty_printer.
2813
6a25e8a2
CB
28142019-10-09 Christian Biesinger <cbiesinger@google.com>
2815
2816 * guile/guile.c (guile_extension_script_ops): Remove forward
2817 declaration and mark as static.
2818 (guile_script_ops): Likewise.
2819 (extension_language_guile): Move further down in the file so
2820 it can reference the definitions for guile_{extension_,}script_ops.
2821
6d9d6da4
AA
28222019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2823
2824 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2825 except SORTL, DFLTCC, and KDSA.
2826
3abea05d
TT
28272019-10-08 Tom Tromey <tromey@adacore.com>
2828
2829 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2830 (struct safe_symbol_file_add_args): Remove.
2831
dde996e2
TT
28322019-10-08 Tom Tromey <tromey@adacore.com>
2833
2834 * windows-nat.c: Don't include buildsym-legacy.h.
2835
cd6fdaa1
TT
28362019-10-08 Tom Tromey <tromey@adacore.com>
2837
2838 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2839
79bb1944
CB
28402019-10-08 Christian Biesinger <cbiesinger@google.com>
2841
2842 * gdbtypes.c (overload_debug): Move comment to header.
2843 * gdbtypes.h (overload_debug): Declare.
2844 * valops.c: Remove declaration of overload_debug, instead
2845 include gdbtypes.h.
2846
34916edc
CB
28472019-10-08 Christian Biesinger <cbiesinger@google.com>
2848
2849 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2850 through _().
2851 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2852 move comment...
2853 * language.h (lang_frame_mismatch_warn): ... here. Also add
2854 declaration.
2855 * top.c (lang_frame_mismatch_warn): Remove declaration.
2856 (check_frame_language_change): Pass lang_frame_mismatch_warn
2857 through _().
2858
bad5c026
CB
28592019-10-07 Christian Biesinger <cbiesinger@google.com>
2860
2861 * c-lang.h (vtbl_ptr_name): Declare.
2862 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2863 it from the header.
2864 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2865
51f1fdc3
CB
28662019-10-07 Christian Biesinger <cbiesinger@google.com>
2867
2868 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2869 gdb_static_assert.
2870
30d1f018
WP
28712019-10-07 Weimin Pan <weimin.pan@oracle.com>
2872
606813d5
WP
2873 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2874 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2875 * ctfread.c: New file.
2876 * ctfread.h: New file.
2877 * elfread.c: Include ctfread.h.
2878 (struct elfinfo text_p): New member ctfsect.
2879 (elf_locate_sections): Mark CTF section.
2880 (elf_symfile_read): Call elfctf_build_psymtabs.
2881 * Makefile.in (LIBCTF): Add.
2882 (CLIBS): Use it.
2883 (CDEPS): Likewise.
2884 (DIST): Add ctfread.c.
606813d5
WP
2885
28862019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2887
2888 * ctfread.c (struct nextfield): Renamed to ...
2889 (struct ctf_nextfield): ... this.
2890 (struct field_info): Renamed to ...
2891 (strut ctf_field_info): ... this.
2892 (attach_fields_to_type): Update for renamed structures.
2893 (ctf_add_member_cb): Likewise.
2894 (ctf_add_enum_member_cb): Likewise.
2895 (process_struct_members): Likewise.
2896 (process_enum_type): Likewise.
30d1f018 2897
518fe38c
WP
28982019-10-07 Weimin Pan <weimin.pan@oracle.com>
2899
2900 * tracectf.h: Rename, was ctf.h.
2901 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2902 * tracefile.c: Likewise.
2903 * tracepoint.c: Remove unused include ctf.h.
2904 * mi/mi-main.c: Likewise.
2905 * Makefile.in Replace ctf.c with tracectf.c.
2906
225f296a
JB
29072019-10-06 Joel Brobecker <brobecker@adacore.com>
2908
2909 * version.in: Change version number to "9.0.50.DATE-git".
2910
77c2dba3
TT
29112019-10-03 Tom Tromey <tom@tromey.com>
2912
2913 PR rust/24976:
2914 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2915
179aed7f
AB
29162019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2917
2918 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2919 cp_search_name_hash.
2920 * NEWS: Add entry about nested function support.
2921
0a4b0913
AB
29222019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2923 Andrew Burgess <andrew.burgess@embecosm.com>
2924
2925 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2926 for nested static variables when searchin VAR_DOMAIN.
2927 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2928 global scope, update comment.
2929 (add_partial_subprogram): Call add_partial_subprogram recursively
2930 for nested subroutines when processinng Fortran.
2931 (load_partial_dies): Process the child entities of a subprogram
2932 when processing Fortran.
2933 (partial_die_parent_scope): Handle building scope
2934 for Fortran nested functions.
2935 (process_die): Record that nested functions have a scope.
2936 (new_symbol): Always record Fortran subprograms on the global
2937 symbol list.
2938 (determine_prefix): How to build the prefix for Fortran
2939 subprograms.
2940
d8c06f22
AB
29412019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2942
2943 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2944 have just sent the thread a SIGSTOP and are waiting for it to
2945 arrive.
2946
a8b3b8e9
AB
29472019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2948
2949 * btrace.c (btrace_add_pc): Remove whitespace before the template
2950 parameter in 'std::vector <...>'.
2951 (parse_xml_btrace_block): Likewise.
2952 (btrace_maint_decode_pt): Likewise.
2953 (btrace_maint_update_packets): Likewise.
2954 (btrace_maint_print_packets): Likewise.
2955 * btrace.h (struct btrace_maint_info): Likewise.
2956 * dwarf2read.c (struct type_unit_group): Likewise.
2957 (build_type_psymtabs_reader): Likewise.
2958 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2959 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2960 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2961
4d825eab
TV
29622019-10-03 Tom de Vries <tdevries@suse.de>
2963
2964 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2965 the first line of the help text for set/show style metadata.
2966
80fd2826
TT
29672019-10-02 Tom Tromey <tromey@adacore.com>
2968
2969 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2970 * gdbsupport/common-inferior.c: New file.
2971 * infcmd.c (startup_with_shell): Don't define.
2972 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2973 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2974 * inferior.h (startup_with_shell): Don't declare.
2975
70054538
CB
29762019-10-02 Christian Biesinger <cbiesinger@google.com>
2977
2978 * gdbsupport/gdb_assert.h: Include errors.h.
2979 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2980
37f6a7f4
TT
29812019-10-02 Tom Tromey <tromey@adacore.com>
2982
2983 * NEWS: Add $_ada_exception entry.
2984 * ada-lang.c (struct ada_catchpoint): Add constructor.
2985 <m_kind>: New member.
2986 (allocate_location_exception, re_set_exception): Remove
2987 "ex" parameter.
2988 (should_stop_exception): Compute $_ada_exception.
2989 (check_status_exception, print_it_exception)
2990 (print_one_exception, print_mention_exception): Remove
2991 "ex" parameter.
2992 (allocate_location_catch_exception, re_set_catch_exception)
2993 (check_status_exception, print_it_catch_exception)
2994 (print_one_catch_exception, print_mention_catch_exception)
2995 (print_recreate_catch_exception)
2996 (allocate_location_catch_exception_unhandled)
2997 (re_set_catch_exception_unhandled)
2998 (check_status_exception, print_it_catch_exception_unhandled)
2999 (print_one_catch_exception_unhandled)
3000 (print_mention_catch_exception_unhandled)
3001 (print_recreate_catch_exception_unhandled)
3002 (allocate_location_catch_assert, re_set_catch_assert)
3003 (check_status_assert, print_it_catch_assert)
3004 (print_one_catch_assert, print_mention_catch_assert)
3005 (print_recreate_catch_assert)
3006 (allocate_location_catch_handlers, re_set_catch_handlers)
3007 (check_status_handlers, print_it_catch_handlers)
3008 (print_one_catch_handlers, print_mention_catch_handlers)
3009 (print_recreate_catch_handlers): Remove.
3010 (create_ada_exception_catchpoint): Update.
3011 (initialize_ada_catchpoint_ops): Update.
3012
fccf9de1
TT
30132019-10-02 Tom Tromey <tromey@adacore.com>
3014
3015 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3016 (create_excep_cond_exprs): Simplify exception string computation.
3017 (ada_exception_catchpoint_cond_string): Likewise.
3018
4b610737
TT
30192019-10-02 Tom Tromey <tromey@adacore.com>
3020
3021 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3022 * ada-lang.c (lesseq_defined_than): Handle
3023 LOC_STATIC.
3024 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3025 parameter.
3026 (dwarf2_has_info): Likewise.
3027 (new_symbol): Set maybe_copied on symbol when
3028 appropriate.
3029 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3030 parameter.
3031 <can_copy>: New member.
3032 * elfread.c (record_minimal_symbol): Set maybe_copied
3033 on symbol when appropriate.
3034 (elf_symfile_read): Update call to dwarf2_has_info.
3035 * minsyms.c (lookup_minimal_symbol_linkage): New
3036 function.
3037 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3038 * symtab.c (get_symbol_address, get_msymbol_address):
3039 New functions.
3040 * symtab.h (get_symbol_address, get_msymbol_address):
3041 Declare.
3042 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3043 maybe_copied.
3044 (struct symbol, struct minimal_symbol) <maybe_copied>:
3045 New member.
3046
1dd58850
TT
30472019-10-02 Tom Tromey <tromey@adacore.com>
3048
3049 * source.c (struct current_source_location): New.
3050 (current_source_key): New global.
3051 (current_source_symtab, current_source_line)
3052 (current_source_pspace): Remove.
3053 (get_source_location): New function.
3054 (get_current_source_symtab_and_line)
3055 (set_default_source_symtab_and_line)
3056 (set_current_source_symtab_and_line)
3057 (clear_current_source_symtab_and_line, select_source_symtab)
3058 (info_source_command, print_source_lines_base)
3059 (info_line_command, search_command_helper, _initialize_source):
3060 Update.
3061
5c281dbb
TT
30622019-10-02 Tom Tromey <tromey@adacore.com>
3063
3064 * source.c (select_source_symtab): Don't call
3065 decode_line_with_current_source.
3066
d3d32391
AB
30672019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3068
3069 * symtab.c (lookup_global_symbol): Search global block.
3070
38583298
TT
30712019-10-02 Tom Tromey <tromey@adacore.com>
3072
3073 * coffread.c (process_coff_symbol): Update.
3074 * dwarf2read.c (var_decode_location, new_symbol): Update.
3075 * mdebugread.c (parse_symbol): Update.
3076 * objfiles.c (relocate_one_symbol): Update.
3077 * stabsread.c (define_symbol, fix_common_block)
3078 (scan_file_globals): Update.
3079 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3080 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3081 * xcoffread.c (process_xcoff_symbol): Update.
3082
9344c18f
AA
30832019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3084
3085 * MAINTAINERS: Update my email address.
3086
df07e2c7
AB
30872019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3088
3089 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3090 std::vector.
3091 (build_type_psymtabs_reader): Update for std::vector.
3092 (build_type_psymtab_dependencies): Likewise.
3093 * dwarf2read.h: Remove use of DEF_VEC_P.
3094 (typedef sig_type_ptr): Delete.
3095
554ac434
AB
30962019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3097
3098 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3099 to std::vector.
3100 (btrace_maint_decode_pt): Likewise, and move allocation of the
3101 vector outside of the loop.
3102 (btrace_maint_update_packets): Update to handle change from VEC to
3103 std::vector.
3104 (btrace_maint_print_packets): Likewise.
3105 (maint_info_btrace_cmd): Likewise.
3106 * btrace.h: Remove use of DEF_VEC_O.
3107 (typedef btrace_pt_packet_s): Delete.
3108 (struct btrace_maint_info) <packets>: Change fromm VEC to
3109 std::vector.
3110 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3111
46f29a9a
AB
31122019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3113
3114 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3115 make accesses into the vector constant references.
3116 (btrace_add_pc): Update for std::vector.
3117 (btrace_stitch_bts): Likewise.
3118 (parse_xml_btrace_block): Likewise.
3119 (btrace_maint_update_packets): Likewise.
3120 (btrace_maint_print_packets): Likewise.
3121 (maint_info_btrace_cmd): Likewise.
3122 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3123 std::vector.
3124 (btrace_data::empty): Likewise.
3125 (btrace_data_append): Likewise.
3126 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3127 (typedef btrace_block_s): Delete.
3128 (struct btrace_block): Add constructor.
3129 (struct btrace_data_bts) <blocks>: Change to std::vector.
3130 * nat/linux-btrace.c (perf_event_read_bts): Update for
3131 std::vector.
3132 (linux_read_bts): Likewise.
3133
d770d56f
TT
31342019-10-01 Tom Tromey <tom@tromey.com>
3135
3136 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3137
9d636d67
TT
31382019-10-01 Tom Tromey <tom@tromey.com>
3139
3140 * stack.c (print_frame, info_frame_command_core): Use
3141 styled_string.
3142 * linux-thread-db.c (try_thread_db_load_1)
3143 (try_thread_db_load_from_pdir_1): Use styled_string.
3144 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3145 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3146 (maybe_print_unsupported_script_warning)
3147 (maybe_print_script_not_found_warning): Use styled_string.
3148 * ada-lang.c (user_select_syms): Use styled_string.
3149
7f6aba03
TT
31502019-10-01 Tom Tromey <tom@tromey.com>
3151
3152 * p-lang.c (pascal_printstr): Use metadata style.
3153 * value.c (show_convenience): Use metadata style.
3154 * valprint.c (valprint_check_validity, val_print_optimized_out)
3155 (val_print_not_saved, val_print_unavailable)
3156 (val_print_invalid_address, generic_val_print, val_print)
3157 (value_check_printable, val_print_array_elements): Use metadata
3158 style.
3159 * ui-out.h (class ui_out) <field_fmt>: New overload.
3160 <do_field_fmt>: Add style parameter.
3161 * ui-out.c (ui_out::field_fmt): New overload.
3162 * typeprint.c (type_print_unknown_return_type)
3163 (val_print_not_allocated, val_print_not_associated): Use metadata
3164 style.
3165 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3166 parameter.
3167 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3168 * tracepoint.c (tvariables_info_1): Use metadata style.
3169 * stack.c (print_frame_arg, print_frame_info, print_frame)
3170 (info_frame_command_core): Use metadata style.
3171 * skip.c (info_skip_command): Use metadata style.
3172 * rust-lang.c (rust_print_enum): Use metadata style.
3173 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3174 metadata style.
3175 * python/py-framefilter.c (py_print_single_arg): Use metadata
3176 style.
3177 * printcmd.c (do_one_display, print_variable_and_value): Use
3178 metadata style.
3179 * p-valprint.c (pascal_val_print)
3180 (pascal_object_print_value_fields): Use metadata style.
3181 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3182 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3183 parameter.
3184 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3185 * m2-valprint.c (m2_print_long_set): Use metadata style.
3186 * m2-typeprint.c (m2_print_type): Use metadata style.
3187 * infcmd.c (print_return_value_1): Use metadata style.
3188 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3189 * f-valprint.c (info_common_command_for_block): Use metadata
3190 style.
3191 * f-typeprint.c (f_type_print_base): Use metadata style.
3192 * expprint.c (print_subexp_standard): Use metadata style.
3193 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3194 * cli/cli-style.h (class cli_style_option): Add constructor.
3195 (metadata_style): Declare.
3196 * cli/cli-style.c (metadata_style): New global.
3197 (_initialize_cli_style): Register metadata style.
3198 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3199 parameter.
3200 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3201 * c-typeprint.c (c_type_print_base_struct_union)
3202 (c_type_print_base_1): Use metadata style.
3203 * breakpoint.c (watchpoint_value_print)
3204 (print_one_breakpoint_location): Use metadata style.
3205 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3206 style.
3207 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3208 style.
3209 * ada-valprint.c (val_print_packed_array_elements, printstr)
3210 (print_field_values, ada_val_print_ref, ada_val_print): Use
3211 metadata style.
3212 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3213 style.
3214 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3215 style.
3216 * ada-lang.c (user_select_syms): Use metadata style.
3217
14309bb6
TT
32182019-10-01 Tom Tromey <tom@tromey.com>
3219
3220 * cli/cli-cmds.c (pwd_command): Style output.
3221
6a831f06
PA
32222019-10-01 Pedro Alves <palves@redhat.com>
3223 Tom Tromey <tom@tromey.com>
3224
3225 * symtab.c (print_symbol_info): Use %ps.
3226 (print_msymbol_info): Use %ps.
3227 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3228 * printcmd.c (print_variable_and_value): Use %ps.
3229 * macrocmd.c (show_pp_source_pos): Use %ps.
3230 * infrun.c (print_exited_reason): Use ui_out::message.
3231 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3232 (describe_other_breakpoints): Use ui_out::message and new
3233 formats.
3234 (say_where): Use new formats.
3235 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3236 and new formats.
3237
2a3c1174
PA
32382019-10-01 Pedro Alves <palves@redhat.com>
3239 Tom Tromey <tom@tromey.com>
3240
3241 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3242 (test_gdb_formats): New function.
3243 (run_tests): Call it.
3244 (test_format_specifier): Update.
3245 * utils.h (fputs_filtered): Update comment.
3246 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3247 (fputs_styled_unfiltered): Declare.
3248 * utils.c (fputs_styled_unfiltered): New function.
3249 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3250 (vfprintf_filtered): Update.
3251 (vfprintf_unfiltered, vprintf_filtered): Update.
3252 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3253 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3254 disallow_ui_out_field>: New constants.
3255 (enum class field_kind): New.
3256 (struct base_field_s, struct signed_field_s): New.
3257 (signed_field): New function.
3258 (struct string_field_s): New.
3259 (string_field): New function.
3260 (struct styled_string_s): New.
3261 (styled_string): New function.
3262 (class ui_out) <message>: Add comment.
3263 <vmessage, call_do_message>: New methods.
3264 <do_message>: Add style parameter.
3265 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3266 methods.
3267 (ui_out::message): Rewrite.
3268 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3269 parameter.
3270 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3271 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3272 gdb_extensions parameter.
3273 (class format_piece): Add parameter to constructor.
3274 (n_int_args): New field.
3275 * gdbsupport/format.c (format_pieces::format_pieces): Add
3276 gdb_extensions parameter. Handle '*'.
3277 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3278 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3279 vfprintf_styled_no_gdbfmt.
3280 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3281 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3282 unfiltered output.
3283 * ui-style.h (struct ui_file_style) <ptr>: New method.
3284
0dfe5bfb
TT
32852019-10-01 Tom Tromey <tom@tromey.com>
3286
3287 * unittests/format_pieces-selftests.c: Update. Add final format.
3288 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3289 empty literal pieces.
3290
e43b10e1
TT
32912019-10-01 Tom Tromey <tom@tromey.com>
3292
3293 * ui-out.h (enum class ui_out_style_kind): Remove.
3294 (class ui_out) <field_string, field_stsream, do_field_string>:
3295 Change type of "style".
3296 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3297 (ui_out::field_string): Update.
3298 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3299 of "style".
3300 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3301 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3302 * stack.c (print_frame_arg, print_frame_info, print_frame):
3303 Update.
3304 * source.c (print_source_lines_base): Update.
3305 * solib.c (info_sharedlibrary_command): Update.
3306 * skip.c (info_skip_command): Update.
3307 * record-btrace.c (btrace_call_history_src_line)
3308 (btrace_call_history): Update.
3309 * python/py-framefilter.c (py_print_frame): Update.
3310 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3311 "style".
3312 * mi/mi-out.c (mi_ui_out::do_table_header)
3313 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3314 (mi_ui_out::do_field_string): Update.
3315 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3316 Update.
3317 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3318 "style".
3319 * cli-out.c (cli_ui_out::do_table_header)
3320 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3321 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3322 (cli_ui_out::do_field_fmt): Update.
3323 * breakpoint.c (print_breakpoint_location): Update.
3324 (update_static_tracepoint): Update.
3325
cd7c32c3
PW
33262019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3327
3328 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3329 conversion of gdb_datadir.
3330 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3331 remove not needed c_str ().
3332
8fe0f950
AT
33332019-09-30 Ali Tamur <tamur@google.com>
3334
3335 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3336 (dwarf2_string_attr): Likewise.
3337
5f48f8f3
AT
33382019-09-30 Ali Tamur <tamur@google.com>
3339
3340 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3341 (process_full_type_unit): Likewise.
3342 (dump_die_shallow): Likewise.
3343 (cu_debug_loc_section): Likewise.
3344
6fb08628
CB
33452019-09-28 Christian Biesinger <cbiesinger@google.com>
3346
3347 * minsyms.c (compare_minimal_symbols): Rename to...
3348 (minimal_symbol_is_less_than): ...this, and adjust to STL
3349 conventions (return bool, take arguments as references)
3350 (minimal_symbol_reader::install): Call std::sort instead
3351 of qsort.
3352
c7ee338a
CB
33532019-09-29 Christian Biesinger <cbiesinger@google.com>
3354
3355 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3356 hash and why.
3357 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3358 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3359
703a86c2
SM
33602019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3361
3362 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3363 * psympriv.h (add_psymbol_to_list): Move comment here and update
3364 it.
3365
0df0352a
TV
33662019-09-29 Tom de Vries <tdevries@suse.de>
3367
3368 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3369 Use $tmpdir/$(basename "$output_file").dwz instead of
3370 "${output_file}.dwz".
3371
ad75efa6
SM
33722019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3373
3374 PR gdb/25045
3375 * hppa-linux-nat.c: Include gdbarch.h.
3376
ececd218
CB
33772019-09-26 Christian Biesinger <cbiesinger@google.com>
3378
3379 * blockframe.c (find_pc_partial_function): Change return type to bool.
3380 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3381 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3382 (stub_gnu_ifunc_resolve_name): Likewise.
3383 * symtab.c (compare_filenames_for_search): Likewise.
3384 (compare_glob_filenames_for_search): Likewise.
3385 (matching_obj_sections): Likewise.
3386 (symbol_matches_domain): Likewise.
3387 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3388 (find_line_pc): Change return type to bool.
3389 (find_line_pc_range): Likewise.
3390 (producer_is_realview): Likewise.
3391 * symtab.h (symbol_matches_domain): Likewise.
3392 (find_pc_partial_function): Likewise.
3393 (find_pc_line_pc_range): Likewise.
3394 (in_gnu_ifunc_stub): Likewise.
3395 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3396 (find_line_pc): Likewise.
3397 (find_line_pc_range): Likewise.
3398 (matching_obj_sections): Likewise.
3399 (find_line_symtab): Change out parameter to bool.
3400 (producer_is_realview): Change return type to bool.
3401 (compare_filenames_for_search): Likewise.
3402 (compare_glob_filenames_for_search): Likewise.
3403
27a900b8
TT
34042019-09-26 Tom Tromey <tom@tromey.com>
3405
3406 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3407 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3408 * gdb_usleep.h: Remove.
3409 * gdb_usleep.c: Remove.
3410 * utils.c: Don't include gdb_usleep.h.
3411
5d63b30a
TT
34122019-09-26 Tom Tromey <tromey@adacore.com>
3413
3414 * python/py-type.c (type_to_type_object): Call check_typedef
3415 for stub types.
3416
12904d37
TT
34172019-09-26 Tom Tromey <tom@tromey.com>
3418
3419 * utils.h (initialize_utils): Don't declare.
3420 * top.c (gdb_init): Don't call initialize_utils.
3421 * utils.c (initialize_utils): Remove. Move contents...
3422 (_initialize_utils): ... here.
3423
858f25f0
TT
34242019-09-25 Tom Tromey <tom@tromey.com>
3425
3426 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3427 * utils.h (make_hex_string): Don't declare.
3428 * utils.c (make_hex_string): Remove.
3429
3d435220
TV
34302019-09-24 Tom de Vries <tdevries@suse.de>
3431
3432 PR gdb/23815
3433 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3434 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3435
ddd44b70
DD
34362019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3437
3438 * NEWS: Mention new simulator port for PRU.
3439
f945dedf
CB
34402019-09-23 Christian Biesinger <cbiesinger@google.com>
3441
3442 * ada-exp.y (write_object_remaining): Update.
3443 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3444 and eliminate the static buffer.
3445 (ada_decode_symbol): Update.
3446 (ada_la_decode): Update.
3447 (ada_sniff_from_mangled_name): Update.
3448 (is_valid_name_for_wild_match): Update.
3449 (ada_lookup_name_info::matches): Update and simplify.
3450 (name_matches_regex): Update.
3451 (ada_add_global_exceptions): Update.
3452 * ada-lang.h (ada_decode): Update signature.
3453 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3454 * dwarf-index-write.c (debug_names::insert): Update.
3455
7ab78ccb
SM
34562019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3457
3458 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3459 formatting.
3460
9252448b
SM
34612019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3462
3463 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3464 Change "nonzero" to "true" in documentation.
3465
626ca2c0
CB
34662019-09-20 Christian Biesinger <cbiesinger@google.com>
3467
3468 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3469 (_initialize_darwin_solib): Don't set
3470 darwin_so_ops.lookup_lib_global_symbol.
3471 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3472 set_gdbarch_iterate_over_objfiles_in_search_order.
3473 (elf_lookup_lib_symbol): Rename to...
3474 (svr4_iterate_over_objfiles_in_search_order): this, and update
3475 to iterate semantics.
3476 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3477 * solib.c (solib_global_lookup): Remove.
3478 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3479 (solib_global_lookup): Remove.
3480 * symtab.c (lookup_global_or_static_symbol): Remove call to
3481 solib_global_lookup.
3482
5a3a0d63
JB
34832019-09-20 Joel Brobecker <brobecker@adacore.com>
3484
3485 * NEWS: Move entries about default MI version now being
3486 version 3, and about the GDB/MI fix for multi-location
3487 breakpoints to the "since GDB 8.3" section.
3488
ffea1427
JB
34892019-09-20 Joel Brobecker <brobecker@adacore.com>
3490
3491 GDB 8.3.1 released.
3492
abf516c6
UW
34932019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3494
3495 * NEWS: Mention that Cell/B.E. debugging support was removed.
3496 * MAINTAINERS: Remove spu target.
3497
3498 * config/djgpp/fnchange.lst: Remove entries for removed files.
3499
3500 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3501 spu-multiarch.o, and spu-tdep.o.
3502 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3503 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3504 spu-multiarch.c, and spu-tdep.c.
3505 * spu-linux-nat.c: Remove file.
3506 * spu-multiarch.c: Remove file.
3507 * spu-tdep.c: Remove file.
3508 * spu-tdep.h: Remove file.
3509 * solib-spu.c: Remove file.
3510 * solib-spu.h: Remove file.
3511
3512 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3513 * configure.nat (spu-linux): Remove.
3514 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3515 solib-multiarch.o from gdb_target_obs.
3516 (spu*-*-*): Remove.
3517
3518 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3519 feature flag.
3520 (ppc_linux_no_features): Update.
3521 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3522 Cell/B.E. support.
3523 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3524 (tdesc_powerpc_cell64l): Likewise.
3525 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3526 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3527 Cell/B.E. support.
3528 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3529 Do not include "features/rs6000/powerpc-cell32l.c" or
3530 "features/rs6000/powerpc-cell64l.c".
3531 (ppc_linux_spu_section): Remove.
3532 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3533 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3534 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3535 (ppc_linux_spe_context_lookup): Remove.
3536 (ppc_linux_spe_context_inferior_created): Remove.
3537 (ppc_linux_spe_context_solib_loaded): Remove.
3538 (ppc_linux_spe_context_solib_unloaded): Remove.
3539 (ppc_linux_spe_context): Remove.
3540 (struct ppu2spu_cache): Remove.
3541 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3542 (struct ppu2spu_data): Remove.
3543 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3544 ppu2spu_unwind): Remove.
3545 (ppc_linux_init_abi): Remove Cell/B.E. support.
3546 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3547
3548 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3549 (rs6000/powerpc-cell64l-expedite): Likewise
3550 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3551 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3552 rs6000/powerpc-cell64l.xml.
3553 * features/rs6000/powerpc-cell32l.xml: Remove.
3554 * features/rs6000/powerpc-cell64l.xml: Likewise.
3555 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3556 * features/rs6000/powerpc-cell64l.c: Likewise.
3557 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3558 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3559 * regformats/reg-spu.dat: Remove.
3560
3561 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3562 * corelow.c (struct spuid_list): Remove.
3563 (add_to_spuid_list): Remove.
3564 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3565 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3566 (remote_protocol_features): Remove associated entries.
3567 (_initialize_remote): No longer initialize them.
3568 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3569 * linux-nat.c (SPUFS_MAGIC): Remove.
3570 (linux_proc_xfer_spu): Remove.
3571 (spu_enumerate_spu_ids): Remove.
3572 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3573 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3574 (linux_make_corefile_notes): No longer call it.
3575
3576 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3577 (cooked_write_test): Likewise.
3578
78e8cb91
TT
35792019-09-20 Tom Tromey <tom@tromey.com>
3580
3581 * NEWS: Mention case-sensitivity of TUI commands.
3582 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3583 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3584 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3585
f074b67e
TT
35862019-09-20 Tom Tromey <tom@tromey.com>
3587
3588 * tui/tui-source.c (tui_source_window::set_contents): Use
3589 make_unique_xstrdup.
3590 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3591 make_unique_xstrdup.
3592
63c4bf19
TT
35932019-09-20 Tom Tromey <tom@tromey.com>
3594
3595 * tui/tui-data.c: Remove separator comments.
3596 * tui/tui-layout.c: Remove separator comments.
3597 * tui/tui-win.c: Remove separator comments.
3598 * tui/tui-wingeneral.c: Remove separator comments.
3599
43df9b2f
TT
36002019-09-20 Tom Tromey <tom@tromey.com>
3601
3602 * tui/tui.h (strcat_to_buf): Don't declare.
3603 * tui/tui.c (strcat_to_buf): Remove.
3604
7226433c
TT
36052019-09-20 Tom Tromey <tom@tromey.com>
3606
3607 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3608 from "fullname".
3609 * tui/tui-source.c (tui_source_window::set_contents)
3610 (tui_source_window::location_matches_p)
3611 (tui_source_window::maybe_update): Update.
3612
80df3337
TT
36132019-09-20 Tom Tromey <tom@tromey.com>
3614
3615 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3616 Update.
3617 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3618 prefix.
3619 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3620 (tui_data_window::line_from_reg_element_no)
3621 (tui_data_window::first_reg_element_no_inline)
3622 (tui_data_window::show_registers)
3623 (tui_data_window::show_register_group)
3624 (tui_data_window::display_registers_from)
3625 (tui_data_window::display_registers_from_line)
3626 (tui_data_window::first_data_item_displayed)
3627 (tui_data_window::delete_data_content_windows)
3628 (tui_data_window::erase_data_content)
3629 (tui_data_window::do_scroll_vertical)
3630 (tui_data_window::refresh_window)
3631 (tui_data_window::check_register_values): Update.
3632
9923f347
TT
36332019-09-20 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3636 (struct tui_locator_window) <full_name, proc_name>: Now
3637 std::string.
3638 * tui/tui-stack.c (tui_locator_window::make_status_line)
3639 (tui_locator_window::set_locator_fullname)
3640 (tui_locator_window::set_locator_info): Update.
3641 * tui/tui-source.c (tui_source_window::set_contents)
3642 (tui_source_window::showing_source_p): Update.
3643
b76251ab
TT
36442019-09-20 Tom Tromey <tom@tromey.com>
3645
3646 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3647 Don't call tui_locator_win_info_ptr.
3648
0891be08
TT
36492019-09-20 Tom Tromey <tom@tromey.com>
3650
3651 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3652
1b935acf
TT
36532019-09-20 Tom Tromey <tom@tromey.com>
3654
3655 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3656 height for locator.
3657 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3658 * tui/tui-layout.c (show_source_disasm_command, show_data)
3659 (show_source_or_disasm_and_command): Use 1 as height for locator.
3660
9abd8a65
TT
36612019-09-20 Tom Tromey <tom@tromey.com>
3662
3663 * tui/tui.c (tui_enable): Update.
3664 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3665 Update.
3666 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3667 Update.
3668 * tui/tui-data.c (win_resized): Now bool.
3669 (tui_win_resized): Return bool.
3670 (tui_set_win_resized_to): Accept a bool.
3671
b5457826
TT
36722019-09-20 Tom Tromey <tom@tromey.com>
3673
3674 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3675 Change type of "refresh_values_only".
3676 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3677 type of "refresh_values_only".
3678
6b915f7d
TT
36792019-09-20 Tom Tromey <tom@tromey.com>
3680
3681 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3682 std::string.
3683 (tui_disassemble): Add "pos" parameter.
3684 (tui_disasm_window::set_contents): Simplify.
3685
2ad52f6f
TT
36862019-09-20 Tom Tromey <tom@tromey.com>
3687
3688 * tui/tui-winsource.h (struct tui_source_window_base)
3689 <show_source_content>: Now private.
3690 * tui/tui-winsource.c
3691 (tui_source_window_base::show_source_content): Don't handle empty
3692 content case.
3693
b3b1bde6
TT
36942019-09-20 Tom Tromey <tom@tromey.com>
3695
3696 * tui/tui-layout.c (show_source_disasm_command)
3697 (show_source_or_disasm_and_command): Don't call
3698 show_source_content.
3699
71a25ed2
TT
37002019-09-20 Tom Tromey <tom@tromey.com>
3701
3702 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3703 Declare.
3704 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3705 from tui_make_status_line.
3706 (tui_locator_window::rerender): Update.
3707
f8532154
TT
37082019-09-20 Tom Tromey <tom@tromey.com>
3709
3710 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3711 (tui_locator_window::rerender): Update.
3712
2d81b349
TT
37132019-09-20 Tom Tromey <tom@tromey.com>
3714
3715 * tui/tui-winsource.h (struct tui_source_window_base)
3716 <~tui_source_window_base>: Don't declare.
3717 <fullname>: Remove.
3718 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3719 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3720 member.
3721 * tui/tui-source.c (tui_source_window::set_contents): Update.
3722 (tui_source_window::location_matches_p)
3723 (tui_source_window::maybe_update): Update.
3724
f14bec58
TT
37252019-09-20 Tom Tromey <tom@tromey.com>
3726
3727 * tui/tui-winsource.h (~tui_source_element): Remove.
3728 (tui_source_element): Update.
3729 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3730 * tui/tui-winsource.c (tui_show_source_line): Update.
3731 * tui/tui-source.c (tui_source_window::set_contents): Update.
3732 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3733
78d5933a
TT
37342019-09-20 Tom Tromey <tom@tromey.com>
3735
3736 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3737 declare.
3738 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3739 tui_clear_source_windows_detail.
3740 * tui/tui-winsource.h (struct tui_source_window_base)
3741 <clear_detail>: Don't declare.
3742 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3743 Remove.
3744 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3745
d4207696
TT
37462019-09-20 Tom Tromey <tromey@adacore.com>
3747
3748 PR ada/24919:
3749 * block.c (contained_in): Fix final return value.
3750
00f93c44
AM
37512019-09-20 Alan Modra <amodra@gmail.com>
3752
3753 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3754 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3755 (read_indirect_string_from_dwz): Use bfd accessor.
3756 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3757 * machoread.c (macho_symfile_read_all_oso): Likewise.
3758 * solib.c (solib_bfd_open): Likewise.
3759
e4153ae6
CB
37602019-09-19 Christian Biesinger <cbiesinger@google.com>
3761
3762 * eval.c: Move declaration of overload_resolution to...
3763 * value.h: ...here.
3764
c7ae7675
CB
37652019-09-19 Christian Biesinger <cbiesinger@google.com>
3766
3767 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3768 * arm-linux-tdep.c: Likewise.
3769 * arm-nbsd-nat.c: Likewise.
3770 * arm-tdep.h: Declare arm_apcs_32.
3771 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3772
e86f08d2
CB
37732019-09-19 Christian Biesinger <cbiesinger@google.com>
3774
3775 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3776 * dwarf2read.h: Declare dwarf_always_disassemble.
3777
f64e2f40
TV
37782019-09-19 Tom de Vries <tdevries@suse.de>
3779
3780 PR gdb/25009
3781 * source-cache.c (source_cache::ensure): Catch exception thrown during
3782 construction of the highlighter.
3783
fd361982
AM
37842019-09-18 Alan Modra <amodra@gmail.com>
3785
3786 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3787 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3788 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3789 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3790 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3791 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3792 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3793 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3794 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3795 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3796 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3797 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3798 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3799 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3800 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3801 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3802 * mi/mi-interp.c: Update throughout for bfd section macro and
3803 function changes.
3804 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3805 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3806
11061048
TT
38072019-09-18 Tom Tromey <tom@tromey.com>
3808
3809 * NEWS: Add entry.
3810 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3811 call rl_initialize.
3812 (tui_enable): Do not call rl_initialize.
3813
7a27b85f
CG
38142019-09-18 Christian Groessler <chris@groessler.org>
3815
3816 * alpha-linux-nat.c: Include gdbarch.h.
3817
f64eea3a
SM
38182019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3819
3820 * ui-file.c: Include cli/cli-style.h.
3821 (term_cli_styling): Remove cli_styling declaration.
3822
e6f7f6d1
AM
38232019-09-18 Alan Modra <amodra@gmail.com>
3824
3825 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3826 to bfd_asymbol_section.
3827
1d38e9d1
AM
38282019-09-18 Alan Modra <amodra@gmail.com>
3829
3830 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3831 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3832 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3833
90d92a63
AM
38342019-09-18 Alan Modra <amodra@gmail.com>
3835
3836 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3837 * spu-linux-nat.c (spu_bfd_open): Likewise.
3838
a3d181d2
CB
38392019-09-18 Christian Biesinger <cbiesinger@google.com>
3840
3841 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3842 to bool to match definition in dwarf2read.c.
3843
491144b5
CB
38442019-09-17 Christian Biesinger <cbiesinger@google.com>
3845
3846 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3847 (print_signatures): Likewise.
3848 (trust_pad_over_xvs): Likewise.
3849 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3850 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3851 * arm-linux-nat.c (arm_apcs_32): Likewise.
3852 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3853 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3854 * arm-tdep.c (arm_debug): Likewise.
3855 (arm_apcs_32): Likewise.
3856 * auto-load.c (debug_auto_load): Likewise.
3857 (auto_load_gdb_scripts): Likewise.
3858 (global_auto_load): Likewise.
3859 (auto_load_local_gdbinit): Likewise.
3860 (auto_load_local_gdbinit_loaded): Likewise.
3861 * auto-load.h (global_auto_load): Likewise.
3862 (auto_load_local_gdbinit): Likewise.
3863 (auto_load_local_gdbinit_loaded): Likewise.
3864 * breakpoint.c (disconnected_dprintf): Likewise.
3865 (breakpoint_proceeded): Likewise.
3866 (automatic_hardware_breakpoints): Likewise.
3867 (always_inserted_mode): Likewise.
3868 (target_exact_watchpoints): Likewise.
3869 (_initialize_breakpoint): Update.
3870 * breakpoint.h (target_exact_watchpoints): Change to bool.
3871 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3872 * cli/cli-cmds.c (trace_commands): Likewise.
3873 * cli/cli-cmds.h (trace_commands): Likewise.
3874 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3875 to bool*.
3876 * cli/cli-logging.c (logging_overwrite): Change to bool.
3877 (logging_redirect): Likewise.
3878 (debug_redirect): Likewise.
3879 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3880 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3881 to bool.
3882 <boolean_option_def>: Update.
3883 (struct flag_option_def): Change default type of Context to bool
3884 from int.
3885 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3886 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3887 (get_setshow_command_value_string): Likewise.
3888 * cli/cli-style.c (cli_styling): Change to bool.
3889 (source_styling): Likewise.
3890 * cli/cli-style.h (source_styling): Likewise.
3891 (cli_styling): Likewise.
3892 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3893 to bool.
3894 * command.h (var_types): Update comment.
3895 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3896 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3897 bool.
3898 (debug_compile_cplus_scopes): Likewise.
3899 * compile/compile-internal.h (compile_debug): Likewise.
3900 * compile/compile.c (compile_debug): Likewise.
3901 (struct compile_options) <raw>: Likewise.
3902 * cp-support.c (catch_demangler_crashes): Likewise.
3903 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3904 (usr_cmd_cris_dwarf2_cfi): Likewise.
3905 * csky-tdep.c (csky_debug): Likewise.
3906 * darwin-nat.c (enable_mach_exceptions): Likewise.
3907 * dcache.c (dcache_enabled_p): Likewise.
3908 * defs.h (info_verbose): Likewise.
3909 * demangle.c (demangle): Likewise.
3910 (asm_demangle): Likewise.
3911 * dwarf-index-cache.c (debug_index_cache): Likewise.
3912 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3913 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3914 * dwarf2read.c (check_physname): Likewise.
3915 (use_deprecated_index_sections): Likewise.
3916 (dwarf_always_disassemble): Likewise.
3917 * eval.c (overload_resolution): Likewise.
3918 * event-top.c (set_editing_cmd_var): Likewise.
3919 (exec_done_display_p): Likewise.
3920 * event-top.h (set_editing_cmd_var): Likewise.
3921 (exec_done_display_p): Likewise.
3922 * exec.c (write_files): Likewise.
3923 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3924 (debug_fbsd_nat): Likewise.
3925 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3926 Likewise.
3927 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3928 <backtrace_past_entry> Likewise.
3929 * gdb-demangle.h (demangle): Likewise.
3930 (asm_demangle): Likewise.
3931 * gdb_bfd.c (bfd_sharing): Likewise.
3932 * gdbcore.h (write_files): Likewise.
3933 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3934 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3935 * gdbthread.h (print_thread_events): Likewise.
3936 * gdbtypes.c (opaque_type_resolution): Likewise.
3937 (strict_type_checking): Likewise.
3938 * gnu-nat.c (gnu_debug_flag): Likewise.
3939 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3940 * guile/scm-param.c (pascm_variable): Add boolval.
3941 (add_setshow_generic): Update.
3942 (pascm_param_value): Update.
3943 (pascm_set_param_value_x): Update.
3944 * hppa-tdep.c (hppa_debug): Change to bool..
3945 * infcall.c (may_call_functions_p): Likewise.
3946 (coerce_float_to_double_p): Likewise.
3947 (unwind_on_signal_p): Likewise.
3948 (unwind_on_terminating_exception_p): Likewise.
3949 * infcmd.c (startup_with_shell): Likewise.
3950 * inferior.c (print_inferior_events): Likewise.
3951 * inferior.h (startup_with_shell): Likewise.
3952 (print_inferior_events): Likewise.
3953 * infrun.c (step_stop_if_no_debug): Likewise.
3954 (detach_fork): Likewise.
3955 (debug_displaced): Likewise.
3956 (disable_randomization): Likewise.
3957 (non_stop): Likewise.
3958 (non_stop_1): Likewise.
3959 (observer_mode): Likewise.
3960 (observer_mode_1): Likewise.
3961 (set_observer_mode): Update.
3962 (sched_multi): Change to bool.
3963 * infrun.h (debug_displaced): Likewise.
3964 (sched_multi): Likewise.
3965 (step_stop_if_no_debug): Likewise.
3966 (non_stop): Likewise.
3967 (disable_randomization): Likewise.
3968 * linux-tdep.c (use_coredump_filter): Likewise.
3969 (dump_excluded_mappings): Likewise.
3970 * linux-thread-db.c (auto_load_thread_db): Likewise.
3971 (check_thread_db_on_load): Likewise.
3972 * main.c (captured_main_1): Update.
3973 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3974 xx2_opt, boolean_opt>: Change to bool.
3975 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3976 * maint.c (maintenance_profile_p): Likewise.
3977 (per_command_time): Likewise.
3978 (per_command_space): Likewise.
3979 (per_command_symtab): Likewise.
3980 * memattr.c (inaccessible_by_default): Likewise.
3981 * mi/mi-main.c (mi_async): Likewise.
3982 (mi_async_1): Likewise.
3983 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3984 * nat/fork-inferior.h (startup_with_shell): Likewise.
3985 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3986 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3987 * nios2-tdep.c (nios2_debug): Likewise.
3988 * or1k-tdep.c (or1k_debug): Likewise.
3989 * parse.c (parser_debug): Likewise.
3990 * parser-defs.h (parser_debug): Likewise.
3991 * printcmd.c (print_symbol_filename): Likewise.
3992 * proc-api.c (procfs_trace): Likewise.
3993 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3994 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3995 (set_parameter_value): Update.
3996 (add_setshow_generic): Update.
3997 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3998 to bool*.
3999 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4000 int*.
4001 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4002 * record-btrace.c (record_btrace_target::store_registers): Update.
4003 * record-full.c (record_full_memory_query): Change to bool.
4004 (record_full_stop_at_limit): Likewise.
4005 * record-full.h (record_full_memory_query): Likewise.
4006 * remote-notif.c (notif_debug): Likewise.
4007 * remote-notif.h (notif_debug): Likewise.
4008 * remote.c (use_range_stepping): Likewise.
4009 (interrupt_on_connect): Likewise.
4010 (remote_break): Likewise.
4011 * ser-tcp.c (tcp_auto_retry): Likewise.
4012 * ser-unix.c (serial_hwflow): Likewise.
4013 * skip.c (debug_skip): Likewise.
4014 * solib-aix.c (solib_aix_debug): Likewise.
4015 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4016 (spu_auto_flush_cache_p): Likewise.
4017 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4018 Likewise.
4019 (struct info_print_options) <quiet>: Likewise.
4020 * symfile-debug.c (debug_symfile): Likewise.
4021 * symfile.c (auto_solib_add): Likewise.
4022 (separate_debug_file_debug): Likewise.
4023 * symfile.h (auto_solib_add): Likewise.
4024 (separate_debug_file_debug): Likewise.
4025 * symtab.c (basenames_may_differ): Likewise.
4026 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4027 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4028 (struct info_types_options) <quiet>: Likewise.
4029 * symtab.h (demangle): Likewise.
4030 (basenames_may_differ): Likewise.
4031 * target-dcache.c (stack_cache_enabled_1): Likewise.
4032 (code_cache_enabled_1): Likewise.
4033 * target.c (trust_readonly): Likewise.
4034 (may_write_registers): Likewise.
4035 (may_write_memory): Likewise.
4036 (may_insert_breakpoints): Likewise.
4037 (may_insert_tracepoints): Likewise.
4038 (may_insert_fast_tracepoints): Likewise.
4039 (may_stop): Likewise.
4040 (auto_connect_native_target): Likewise.
4041 (target_stop_and_wait): Update.
4042 (target_async_permitted): Change to bool.
4043 (target_async_permitted_1): Likewise.
4044 (may_write_registers_1): Likewise.
4045 (may_write_memory_1): Likewise.
4046 (may_insert_breakpoints_1): Likewise.
4047 (may_insert_tracepoints_1): Likewise.
4048 (may_insert_fast_tracepoints_1): Likewise.
4049 (may_stop_1): Likewise.
4050 * target.h (target_async_permitted): Likewise.
4051 (may_write_registers): Likewise.
4052 (may_write_memory): Likewise.
4053 (may_insert_breakpoints): Likewise.
4054 (may_insert_tracepoints): Likewise.
4055 (may_insert_fast_tracepoints): Likewise.
4056 (may_stop): Likewise.
4057 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4058 (make_thread_apply_all_options_def_group): Change argument from int*
4059 to bool*.
4060 (thread_apply_all_command): Update.
4061 (print_thread_events): Change to bool.
4062 * top.c (confirm): Likewise.
4063 (command_editing_p): Likewise.
4064 (history_expansion_p): Likewise.
4065 (write_history_p): Likewise.
4066 (info_verbose): Likewise.
4067 * top.h (confirm): Likewise.
4068 (history_expansion_p): Likewise.
4069 * tracepoint.c (disconnected_tracing): Likewise.
4070 (circular_trace_buffer): Likewise.
4071 * typeprint.c (print_methods): Likewise.
4072 (print_typedefs): Likewise.
4073 * utils.c (debug_timestamp): Likewise.
4074 (sevenbit_strings): Likewise.
4075 (pagination_enabled): Likewise.
4076 * utils.h (sevenbit_strings): Likewise.
4077 (pagination_enabled): Likewise.
4078 * valops.c (overload_resolution): Likewise.
4079 * valprint.h (struct value_print_options) <prettyformat_arrays,
4080 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4081 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4082 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4083 Likewise.
4084 * windows-nat.c (new_console): Likewise.
4085 (cygwin_exceptions): Likewise.
4086 (new_group): Likewise.
4087 (debug_exec): Likewise.
4088 (debug_events): Likewise.
4089 (debug_memory): Likewise.
4090 (debug_exceptions): Likewise.
4091 (useshell): Likewise.
4092 * windows-tdep.c (maint_display_all_tib): Likewise.
4093 * xml-support.c (debug_xml): Likewise.
4094
f1b620e9
MG
40952019-09-17 Mike Gulick <mgulick@mathworks.com>
4096
4097 * source.c (prepare_path_for_appending): New function.
4098 (openp): Make use of new function.
4099 (find_and_open_source): Search for the compilation directory and
4100 source file as a relative path beneath the directory search path.
4101
67f3ed6a
AB
41022019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4103
4104 * source-cache.c (source_cache::get_line_charpos): Catch
4105 exceptions and return false, this matches the behaviour documented
4106 in the header file.
4107
74332189
JB
41082019-09-17 Joel Brobecker <brobecker@adacore.com>
4109
4110 * ada-tasks.c (info_task): Remove quoting of the task's name.
4111
f2f24aa9
CB
41122019-09-16 Christian Biesinger <cbiesinger@google.com>
4113
4114 * symfile.c (auto_solib_add): Replace comment with a reference
4115 to the header file.
4116
6a062a93
CB
41172019-09-14 Christian Biesinger <cbiesinger@google.com>
4118
4119 * NEWS: Mention that gdb can now be compiled with Python 3
4120 on Windows.
4121
ec6c8338
AB
41222019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 * maint.c (maint_print_section_data::maint_print_section_data):
4125 Force use of 'float log10 (float)' by casting the argument to
4126 float.
4127
aa17805f
AB
41282019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4129
4130 * maint.c: Add 'cmath' include.
4131 (struct maint_print_section_data): New structure.
4132 (print_section_index): New function.
4133 (print_bfd_section_info): Add header comment, small whitespace
4134 cleanup, and update to call new print_section_index function.
4135 (print_objfile_section_info): Likewise.
4136 (maint_obj_section_from_bfd_section): New function.
4137 (print_bfd_section_info_maybe_relocated): New function.
4138 (maintenance_info_sections): Add header comment, always use
4139 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4140
3dd9bb46
AB
41412019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4142
4143 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4144 inner scope, add check that the objfile has psymtabs before
4145 checking psymtabs_addrmap.
4146 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4147
4993045d
PW
41482019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4149
4150 * NEWS: Announce that Ada task names are now shown at more places,
4151 and between quotes (except in info task output).
4152 * gdb/ada-tasks.c (task_to_str): New function.
4153 (display_current_task_id): Call task_to_str.
4154 (task_command_1): Likewise.
4155 (print_ada_task_info): In non-mi mode, Properly align headers and data
4156 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4157
7a289707
RO
41582019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4159
4160 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4161 prstatus.pr_lwp.pr_info instead of making it up.
4162
f2aec7f6
CB
41632019-09-11 Christian Biesinger <cbiesinger@google.com>
4164
4165 * auto-load.c (auto_load_expand_dir_vars): Update.
4166 * defs.h (gdb_datadir): Change to std::string.
4167 (python_libdir): Likewise.
4168 (relocate_gdb_directory): Change return type to std::string.
4169 * guile/guile.c (gdbscm_data_directory): Update.
4170 (initialize_scheme_side): Update.
4171 * jit.c (jit_reader_dir): Change to std::string.
4172 (jit_reader_load_command): Update.
4173 * main.c (gdb_datadir): Change to std::string.
4174 (python_libdir): Likewise.
4175 (set_gdb_data_directory): Update.
4176 (relocate_path): Change to return std::string.
4177 (relocate_gdb_directory): Change to return std::string.
4178 (relocate_gdbinit_path_maybe_in_datadir): Update.
4179 (captured_main_1): Update.
4180 * python/python.c (do_start_initialization): Update.
4181 * top.c (show_gdb_datadir): Update.
4182 * xml-syscall.c (xml_init_syscalls_info): Update.
4183 (init_syscalls_info): Update.
4184
9224a013
CB
41852019-09-11 Christian Biesinger <cbiesinger@google.com>
4186
4187 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4188 out of get_init_files.
4189 (get_init_files): Update.
4190
f48cd836
CB
41912019-09-11 Christian Biesinger <cbiesinger@google.com>
4192
4193 * main.c (get_init_files): Change to use std::string.
4194 (captured_main_1): Update.
4195 (print_gdb_help): Update.
4196
9cab7ecd
AT
41972019-09-11 Ali Tamur <tamur@google.com>
4198
4199 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4200 implementation.
4201
67547d89
CB
42022019-09-11 Christian Biesinger <cbiesinger@google.com>
4203
4204 * dbxread.c (read_dbx_symtab): Update.
4205 * dwarf2read.c (load_partial_dies): Update.
4206 * mdebugread.c (parse_partial_symbols): Update.
4207 (handle_psymbol_enumerators): Update.
4208 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4209 * psymtab.c (add_psymbol_to_bcache): Likewise.
4210 (add_psymbol_to_list): Likewise.
4211 * symtab.c (symbol_set_names): Likewise.
4212 * symtab.h (symbol_set_names): Likewise.
4213 * xcoffread.c (scan_xcoff_symtab): Update.
4214
64b2d4a0
TT
42152019-09-11 Tom Tromey <tom@tromey.com>
4216
4217 * symfile-mem.c (symbol_file_add_from_memory): Use
4218 bfd_set_filename.
4219 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4220 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4221
3b00ef10
TT
42222019-09-10 Tom Tromey <tromey@adacore.com>
4223
4224 * dwarf-index-write.c (write_psymbols): Extend error message.
4225 (debug_names::insert): Add Ada code.
4226 (debug_names::write_psymbols): Remove Ada check.
4227 (debug_names) <m_string_obstack>: New member.
4228 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4229 (gdb_index_symbol_name_matcher::matches): Remove.
4230 (mapped_index_base::find_name_components_bounds): Add "lang"
4231 parameter.
4232 (mapped_index_base::build_name_components): Also split names
4233 according to Ada syntax.
4234 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4235 type of "match_callback".
4236 (check_match, check_find_bounds_finds)
4237 (dw2_expand_symtabs_matching): Update.
4238 (dw2_debug_names_iterator): Add new constructor.
4239 (dw2_debug_names_map_matching_symbols): New function.
4240 (dw2_debug_names_expand_symtabs_matching): Update.
4241 (dwarf2_debug_names_functions): Use
4242 dw2_debug_names_map_matching_symbols.
4243
aa391654
TT
42442019-09-10 Tom Tromey <tromey@adacore.com>
4245
4246 * dwarf2read.c (dw2_get_file_names_reader): Add the
4247 CU's file name to the results.
4248
b054970d
TT
42492019-09-10 Tom Tromey <tromey@adacore.com>
4250
4251 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4252 map_matching_symbols. Update.
4253 * dwarf2read.c (dw2_map_matching_symbols): Update.
4254 * psymtab.c (match_partial_symbol): Change type; update.
4255 (psym_map_matching_symbols): Likewise.
4256 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4257 type; update.
4258 * symfile.h (struct quick_symbol_functions)
4259 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4260 Remove "match".
4261
6a3dbf1b
TT
42622019-09-10 Tom Tromey <tromey@adacore.com>
4263
4264 * psymtab.c (map_block): Remove.
4265 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4266 * symtab.c (iterate_over_symbols_terminated): New function.
4267 * symtab.c (iterate_over_symbols_terminated): Declare.
4268
6969f124
TT
42692019-09-10 Tom Tromey <tromey@adacore.com>
4270
4271 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4272 * language.h (struct language_defn) <la_iterate_over_symbols>:
4273 Return bool.
4274 * symtab.c (iterate_over_symbols): Return bool.
4275 * symtab.h (iterate_over_symbols): Return bool.
4276
199b4314
TT
42772019-09-10 Tom Tromey <tromey@adacore.com>
4278
4279 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4280 (add_nonlocal_symbols): Update.
4281 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4282 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4283 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4284 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4285 Change type of "callback". Remove "data".
4286
a084a2a6
AT
4287
42882019-09-09 Ali Tamur <tamur@google.com>
4289
4290 * dwarf2read.c (comp_unit_head): Update comment.
4291 (dwarf2_dwo_name): New function declaration.
4292 (dwarf_unit_type_name): New function declaration.
4293 (read_comp_unit_head): Add support for new compilation units,
4294 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4295 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4296 (currently named as "signature") in their header. Also clarify error
4297 messages.
4298 (lookup_dwo_id): New function. Returns the dwo id of the given
4299 compile unit.
4300 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4301 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4302 functions.
4303 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4304 (dwarf2_dwo_name): Get the dwo name if present.
4305 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4306 purposes.
4307
25a2915e
TT
43082019-09-09 Tom Tromey <tom@tromey.com>
4309
4310 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4311
e4df0874
PW
43122019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4313
4314 * python/python.c (do_start_initialization): Make progname_copy static,
4315 to avoid a leak report.
4316
8634b462
TT
43172019-09-08 Tom Tromey <tom@tromey.com>
4318
4319 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4320
c7f839cb
SM
43212019-09-07 Simon Marchi <simon.marchi@efficios.com>
4322
4323 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4324 Change type to gdb::optional<block_enum>.
4325 (dw2_symtab_iter_init): Change block_index parameter type
4326 to gdb::optional<block_enum>.
4327 (dw2_lookup_symbol): Change block_index parameter
4328 type to block_enum.c
4329 (dw2_debug_names_lookup_symbol): Likewise.
4330 * psymtab.c (psym_lookup_symbol): Likewise.
4331 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4332 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4333 Likewise.
4334
ead0e69a
CB
43352019-09-06 Christian Biesinger <cbiesinger@google.com>
4336
4337 * defs.h (relocate_gdb_directory): Change int to bool in
4338 signature and rename flag to relocatable.
4339 * main.c (relocate_path): Likewise.
4340 (relocate_gdb_directory): Likewise.
4341
b16c44de
AM
43422019-09-06 Alan Modra <amodra@gmail.com>
4343
4344 * coffread.c (coff_symfile_read): Constify filename variable.
4345 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4346 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4347 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4348 * solib.c (reload_shared_libraries_1): Likewise.
4349 * symfile.c (reread_symbols): Likewise.
4350 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4351 * solib-darwin.c (darwin_bfd_open): Likewise.
4352 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4353
06ff036e
AB
43542019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4355
4356 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4357 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4358
4e962e74
TT
43592019-09-03 Tom Tromey <tromey@adacore.com>
4360
4361 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4362 types.
4363 (has_negatives): Unbias a range type bound.
4364 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4365 * gdbtypes.c (operator==): Handle new field.
4366 (create_range_type): Add "bias" parameter.
4367 (create_static_range_type, resolve_dynamic_range): Update.
4368 * gdbtypes.h (struct range_bounds) <bias>: New member.
4369 (create_range_type): Add bias parameter.
4370 * printcmd.c (print_scalar_formatted): Unbias range types.
4371 * value.c (unpack_long): Unbias range types.
4372 (pack_long): Bias range types.
4373
d90b8f26
AH
43742019-09-02 Alan Hayward <alan.hayward@arm.com>
4375
4376 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4377 probe arguments.
4378
fe01123e
AH
43792019-09-02 Alan Hayward <alan.hayward@arm.com>
4380
4381 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4382 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4383 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4384 (compile_probe_arg): Likewise.
4385 * probe.h (get_argument_count): Likewise.
4386 * solib-svr4.c (solib_event_probe_action): Likewise.
4387 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4388
e661ef01
AH
43892019-09-02 Alan Hayward <alan.hayward@arm.com>
4390
4391 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4392 code to here...
4393 (svr4_create_solib_event_breakpoints): ...from here.
4394
47a536d9
SDJ
43952019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4396
4397 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4398 suffix from warning message.
4399
d6a00eba
TT
44002019-08-30 Tom Tromey <tom@tromey.com>
4401
4402 * tui/tui-winsource.h (struct tui_source_window_base)
4403 <refresh_all>: Don't declare.
4404 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4405 Remove.
4406 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4407 tui_show_locator_content.
4408 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4409 declare.
4410 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4411 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4412 declare.
4413
55b2657b
TT
44142019-08-30 Tom Tromey <tom@tromey.com>
4415
4416 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4417
12a8555a
TT
44182019-08-30 Tom Tromey <tom@tromey.com>
4419
4420 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4421 Remove unnecessary forward declarations.
4422
900ac242
TT
44232019-08-30 Tom Tromey <tom@tromey.com>
4424
4425 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4426 rerender.
4427 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4428 tui_show_locator_content.
4429
99ab33fb
TT
44302019-08-30 Tom Tromey <tom@tromey.com>
4431
4432 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4433 (tui_locator_window::rerender): Rewrite using body of previous
4434 tui_show_locator_content.
4435
e594a5d1
TT
44362019-08-30 Tom Tromey <tom@tromey.com>
4437
4438 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4439 set_locator_fullname>: New methods.
4440 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4441 Rename from tui_set_locator_fullname.
4442 (tui_locator_window::set_locator_info): Rename from
4443 tui_set_locator_info. Return bool.
4444 (tui_update_locator_fullname, tui_show_frame_info): Update.
4445
715bb467
TT
44462019-08-30 Tom Tromey <tom@tromey.com>
4447
4448 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4449
772f3f03
TT
44502019-08-30 Tom Tromey <tom@tromey.com>
4451
4452 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4453 call touchwin.
4454
108e13ab
TT
44552019-08-30 Tom Tromey <tom@tromey.com>
4456
4457 * tui/tui-wingeneral.c (box_win): Assume win_info and
4458 win_info->handle cannot be NULL.
4459
cdaa6eb4
TT
44602019-08-30 Tom Tromey <tom@tromey.com>
4461
4462 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4463 refresh_window>: Declare.
4464 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4465 resize.
4466 (tui_data_item_window::rerender): Rename from
4467 tui_display_register.
4468 (tui_data_item_window::refresh_window): New method.
4469 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4470 no-op.
4471
89df7f90
TT
44722019-08-30 Tom Tromey <tom@tromey.com>
4473
4474 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4475 regs_column_count, current_group>: Move later. Now private.
4476 <get_current_group>: New method.
4477 * tui/tui-regs.c (tui_reg_command): Update.
4478 * tui/tui-layout.c (tui_set_layout): Update.
4479
1bf2866a
TT
44802019-08-30 Tom Tromey <tom@tromey.com>
4481
4482 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4483 (tui_data_window::rerender): Don't call
4484 check_and_display_highlight_if_needed.
4485 (tui_data_window::refresh_all): Remove call to
4486 erase_data_content.
4487
0670413d
TT
44882019-08-30 Tom Tromey <tom@tromey.com>
4489
4490 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4491 (tui_data_window::display_registers_from)
4492 (tui_data_window::display_reg_element_at_line)
4493 (tui_data_window::display_registers_from_line): Remove checks of
4494 "empty".
4495
18bb55c7
TT
44962019-08-30 Tom Tromey <tom@tromey.com>
4497
4498 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4499 Don't declare.
4500 * tui/tui-regs.c (tui_data_window::show_registers): Call
4501 rerender.
4502 (tui_data_window::rerender): Rename from display_all_data.
4503 (tui_data_window::rerender): Remove old implementation.
4504
1f6d2f10
TT
45052019-08-30 Tom Tromey <tom@tromey.com>
4506
4507 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4508 text.
4509 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4510
16d01f9c
BW
45112019-08-29 Bernhard Wodok <barto@gmx.net>
4512 Sergio Durigan Junior <sergiodj@redhat.com>
4513
4514 PR win32/24284
4515 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4516
d8f27c60
AB
45172019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4518
4519 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4520 when searching for types.
4521
1f20c35e
AB
45222019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4523
4524 * f-lang.c (f_language_defn): Use f_print_typedef.
4525 * f-lang.h (f_print_typedef): Declare.
4526 * f-typeprint.c (f_print_typedef): Define.
4527
550105b7
CB
45282019-08-27 Christian Biesinger <cbiesinger@google.com>
4529
4530 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4531
4acfdd20
AB
45322019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4533
4534 * cli/cli-utils.c (info_print_options_defs): Delete.
4535 (make_info_print_options_def_group): Delete.
4536 (extract_info_print_options): Delete.
4537 (info_print_command_completer): Delete.
4538 (info_print_args_help): Add extra parameter, and optionally
4539 include text about -n flag.
4540 * cli/cli-utils.h (struct info_print_options): Delete.
4541 (extract_info_print_options): Delete declaration.
4542 (info_print_command_completer): Delete declaration.
4543 (info_print_args_help): Add extra parameter, extend header
4544 comment.
4545 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4546 search_symbols.
4547 * stack.c (struct info_print_options): New type.
4548 (info_print_options_defs): New file scoped variable.
4549 (make_info_print_options_def_group): New static function.
4550 (info_print_command_completer): New static function.
4551 (info_locals_command): Update to use new local functions.
4552 (info_args_command): Likewise.
4553 (_initialize_stack): Add extra parameter to calls to
4554 info_print_args_help.
4555 * symtab.c (search_symbols): Add extra parameter, use this to
4556 possibly excluse non-debug symbols.
4557 (symtab_symbol_info): Add extra parameter, which is passed on to
4558 search_symbols.
4559 (struct info_print_options): New type.
4560 (info_print_options_defs): New file scoped variable.
4561 (make_info_print_options_def_group): New static function.
4562 (info_print_command_completer): New static function.
4563 (info_variables_command): Update to use local functions, and pass
4564 extra parameter through to symtab_symbol_info.
4565 (info_functions_command): Likewise.
4566 (info_types_command): Pass additional argument through to
4567 symtab_symbol_info.
4568 (rbreak_command): Pass extra argument to search_symbols.
4569 (_initialize_symtab): Add extra arguments for calls to
4570 info_print_args_help, and update help text for 'info variables',
4571 'whereis', and 'info functions' commands.
4572 * symtab.h (search_symbols): Add extra argument to declaration.
4573 * NEWS: Mention new flags.
4574
9aa55206
CB
45752019-08-26 Christian Biesinger <cbiesinger@google.com>
4576
4577 * symtab.c (lookup_static_symbol): Call the new function (and move
4578 it down to be next to lookup_global_symbol).
4579 (struct global_sym_lookup_data): Add block_enum member and rename to...
4580 (struct global_or_static_sym_lookup_data): ...this.
4581 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4582 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4583 (lookup_symbol_global_or_static_iterator_cb): ...this.
4584 (lookup_global_or_static_symbol): New function.
4585 (lookup_global_symbol): Call new function.
4586
5c31b358
TV
45872019-08-26 Tom de Vries <tdevries@suse.de>
4588
4589 PR c++/24852
4590 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4591 when pc_probe.prob == NULL.
4592
23c13d42
SM
45932019-08-25 Simon Marchi <simon.marchi@efficios.com>
4594
4595 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4596 variable symbol_linkage to symbol_linkage_.
4597
beadd3e8
SM
45982019-08-25 Simon Marchi <simon.marchi@efficios.com>
4599
4600 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4601 represent whether the symbol is static, dynamic, or we don't
4602 know.
4603
e3ec872f
YS
46042019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4605
4606 * gdb/rx-tdep.c (rx_register_names): New.
4607 (rx_register_name): Delete.
4608 (rx_psw_type): Delete.
4609 (rx_fpsw_type): Delete.
4610 (rx_register_type): Delete.
4611 (rx_gdbarch_init): Convert target-descriptions.
4612 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4613 * gdb/features/Makefile: Add rx.xml.
4614 * gdb/features/rx.xml: New.
4615 * gdb/features/rx.c: Generated.
4616 * gdb/NEWS: Mention target description support.
4617
d0509ba4
CB
46182019-08-22 Christian Biesinger <cbiesinger@google.com>
4619
4620 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4621 *slot_ptr.
4622
2d41fa11
SDJ
46232019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4624
4625 * configure.ac: Don't check for 'dlfcn.h' (moved to
4626 gdbsupport/common.m4).
4627 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4628 'gdbsupport/'.
4629 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4630 * compile/compile-c-support.c: Include
4631 'gdbsupport/gdb-dlfcn.h'.
4632 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4633 * gdb-dlfcn.c: Move to...
4634 * gdbsupport/gdb-dlfcn.c: ... here.
4635 * gdb-dlfcn.h: Move to...
4636 * gdbsupport/gdb-dlfcn.h: ... here.
4637
de8af808
SL
46382019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4639
4640 * nios2-tdep.c (struct reg_value): Improve comments. Make
4641 the offset field signed.
4642
27204489
CB
46432019-08-22 Christian Biesinger <cbiesinger@google.com>
4644
4645 * python/lib/gdb/__init__.py (_execute_file): New function.
4646 * python/python.c (python_run_simple_file): Call gdb._execute_file
4647 on Windows.
4648
43771869
AB
46492019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4650
4651 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4652 all uses as this was never set to anything but a zero value.
4653
26c957f1
PA
46542019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4655
4656 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4657
c07aae6e
CB
46582019-08-21 Christian Biesinger <cbiesinger@google.com>
4659
4660 * tui/tui-data.h (tui_gen_win_info): Add an =default
4661 move constructor, required by some GCC versions.
4662
3960cb7a
JF
46632019-08-21 Jinke Fan <fanjinke51@yeah.net>
4664
4665 * go32-nat.c (go32_sysinfo): Add hygon_p.
4666
04c72a68
TT
46672019-08-20 Tom Tromey <tom@tromey.com>
4668
4669 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4670 line_from_reg_element_no, first_reg_element_no_inline,
4671 display_all_data, delete_data_content_windows,
4672 erase_data_content>: Now private.
4673
072272ce
TT
46742019-08-20 Tom Tromey <tom@tromey.com>
4675
4676 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4677 (tui_unhighlight_win, tui_highlight_win)
4678 (tui_win_info::make_window): Update.
4679 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4680
973961bd
TT
46812019-08-20 Tom Tromey <tom@tromey.com>
4682
4683 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4684 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4685 (MAX_PID_WIDTH): Move to tui-stack.c.
4686 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4687 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4688 (MAX_PID_WIDTH): Move from tui-data.h.
4689
ab0e1f1a
TT
46902019-08-20 Tom Tromey <tom@tromey.com>
4691
4692 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4693 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4694 (box_win): Update.
4695 (tui_gen_win_info::make_window): Rename from tui_make_window.
4696 (tui_win_info::make_window): New method.
4697 (tui_gen_win_info::make_visible): Update.
4698 * tui/tui-source.c (tui_source_window::set_contents): Update.
4699 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4700 (tui_data_window::display_registers_from): Update.
4701 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4702 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4703 Declare.
4704 <can_box>: Remove.
4705 <title>: Remove.
4706 (struct tui_win_info) <make_window>: Declare.
4707 <can_box>: Now virtual.
4708 <title>: New member.
4709 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4710 * tui/tui-command.c (tui_cmd_window::resize): Update.
4711
100c2bf3
TT
47122019-08-20 Tom Tromey <tom@tromey.com>
4713
4714 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4715 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4716 (tui_data_window::check_register_values): Update.
4717
fa4dc567
TT
47182019-08-20 Tom Tromey <tom@tromey.com>
4719
4720 * tui/tui-regs.h (struct tui_data_window): Use
4721 DISABLE_COPY_AND_ASSIGN.
4722 <regs_content>: Change type, removing unique_ptr.
4723 <tui_data_window>: Add move constructor.
4724 * tui/tui-regs.c (tui_data_window::show_registers)
4725 (tui_data_window::show_register_group)
4726 (tui_data_window::display_registers_from)
4727 (tui_data_window::display_registers_from)
4728 (tui_data_window::first_data_item_displayed)
4729 (tui_data_window::delete_data_content_windows)
4730 (tui_data_window::rerender, tui_data_window::refresh_window)
4731 (tui_data_window::check_register_values): Update.
4732
ca02d7c8
TT
47332019-08-20 Tom Tromey <tom@tromey.com>
4734
4735 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4736 show_register_group>: Declare.
4737 (tui_show_register_group): Don't declare.
4738 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4739 tui_show_registers.
4740 (tui_data_window::show_register_group): Rename from
4741 tui_show_register_group.
4742 (tui_data_window::check_register_values, tui_reg_command):
4743 Update.
4744 * tui/tui-layout.c (tui_set_layout): Update.
4745
63356bfd
TT
47462019-08-20 Tom Tromey <tom@tromey.com>
4747
4748 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4749 Declare.
4750 (tui_check_register_values): Don't declare.
4751 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4752 from tui_check_register_values.
4753 * tui/tui-hooks.c (tui_register_changed): Update.
4754
42cc14a7
TT
47552019-08-20 Tom Tromey <tom@tromey.com>
4756
4757 * tui/tui-regs.c (tui_reg_layout): Move later.
4758 (tui_show_registers): Don't enable TUI mode or change layout.
4759
b9ad3686
TT
47602019-08-20 Tom Tromey <tom@tromey.com>
4761
4762 * tui/tui-regs.h (struct tui_data_item_window)
4763 <~tui_data_item_window>: Remove.
4764 <content>: Now a unique_xmalloc_ptr.
4765 * tui/tui-regs.c (tui_register_format): Return a
4766 unique_xmalloc_ptr.
4767 (tui_get_register): Update.
4768 (~tui_data_item_window): Remove.
4769 (tui_data_window::display_registers_from, tui_display_register):
4770 Update.
4771 * tui/tui-io.h (tui_expand_tabs): Update.
4772 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4773 Remove "col" parameter.
4774
8e114aab
TT
47752019-08-20 Tom Tromey <tom@tromey.com>
4776
4777 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4778 field.
4779 * tui/tui-regs.c (~tui_data_item_window): Update.
4780
1a4f81dd
TT
47812019-08-20 Tom Tromey <tom@tromey.com>
4782
4783 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4784 earlier.
4785
0f8d8876
TT
47862019-08-20 Tom Tromey <tom@tromey.com>
4787
4788 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4789
605dc2c2
TT
47902019-08-20 Tom Tromey <tom@tromey.com>
4791
4792 * tui/tui-source.h (struct tui_source_window): Update.
4793 * tui/tui-regs.c (tui_show_registers): Update.
4794 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4795 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4796 (NO_REGS_STRING): Remove defines.
4797
aedbe3bb
CM
47982019-08-20 Conrad Meyer <cem@FreeBSD.org>
4799
4800 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4801 unnecessary thread walk if remote doesn't support the packet.
4802
7ce8f214
TT
48032019-08-19 Tom Tromey <tromey@adacore.com>
4804
4805 * python/py-value.c (value_has_field): Fix indentation.
4806
f21c2bd7
TT
48072019-08-19 Tom Tromey <tromey@adacore.com>
4808
4809 * printcmd.c (do_one_display, info_display_command): Update.
4810 * block.h (contained_in): Return bool. Add allow_nested
4811 parameter.
4812 * block.c (contained_in): Return bool. Add allow_nested
4813 parameter.
4814
d806ea2d
TT
48152019-08-19 Tom Tromey <tom@tromey.com>
4816
4817 * configure: Rebuild.
4818 * configure.ac: Disallow the combination of -static-libstdc++ and
4819 source highlight.
4820 * source-cache.c (get_language_name): Handle rust.
4821 (source_cache::get_source_lines): Ignore highlighting exceptions.
4822
398fdd60
TT
48232019-08-16 Tom Tromey <tom@tromey.com>
4824
4825 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4826 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4827 (struct tui_source_window_base) <make_visible, refresh_window,
4828 resize>: Remove methods.
4829 <execution_info>: Remove field.
4830 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4831 (tui_show_source_line, tui_source_window_base)
4832 (~tui_source_window_base): Update.
4833 (tui_source_window_base::resize)
4834 (tui_source_window_base::make_visible)
4835 (tui_source_window_base::refresh_window): Remove.
4836 (tui_source_window_base::update_exec_info): Update.
4837 * tui/tui-source.c (tui_source_window::set_contents): Update.
4838 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4839
e699d331
TT
48402019-08-16 Tom Tromey <tom@tromey.com>
4841
4842 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4843 deprecated_query_hook.
4844
bb01dbfc
TT
48452019-08-16 Tom Tromey <tom@tromey.com>
4846
4847 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4848 (tui_update_source_windows_with_line): Update.
4849 * tui/tui-source.h (struct tui_source_window)
4850 <show_symtab_source>: Declare.
4851 (tui_show_symtab_source): Don't declare.
4852 * tui/tui-source.c (tui_show_symtab_source): Rename from
4853 tui_show_symtab_source.
4854
81c82c4b
TT
48552019-08-16 Tom Tromey <tom@tromey.com>
4856
4857 * tui/tui-winsource.h (struct tui_source_window_base)
4858 <set_contents>: Declare.
4859 * tui/tui-winsource.c
4860 (tui_source_window_base::update_source_window_as_is): Update.
4861 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4862 Declare.
4863 (tui_set_source_content): Don't declare.
4864 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4865 tui_set_source_content.
4866 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4867 Declare.
4868 (tui_set_disassem_content): Don't declare.
4869 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4870 tui_set_disassem_content.
4871
2ddaf614
TT
48722019-08-16 Tom Tromey <tom@tromey.com>
4873
4874 * tui/tui-winsource.h (struct tui_source_window_base)
4875 <update_breakpoint_info>: Declare.
4876 (tui_update_breakpoint_info): Don't declare.
4877 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4878 (tui_update_all_breakpoint_info): Update.
4879 (tui_source_window_base::update_breakpoint_info): Rename from
4880 tui_update_breakpoint_info.
4881 (tui_source_window_base::update_exec_info): Update.
4882
017f9828
TT
48832019-08-16 Tom Tromey <tom@tromey.com>
4884
4885 * tui/tui-winsource.h (struct tui_source_window_base)
4886 <update_source_window>: Declare.
4887 (tui_update_source_window): Don't declare.
4888 * tui/tui-winsource.c
4889 (tui_source_window_base::update_source_window): Rename from
4890 tui_update_source_window.
4891 (tui_source_window_base::rerender): Update.
4892 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4893 * tui/tui-disasm.c (tui_show_disassem)
4894 (tui_show_disassem_and_update_source)
4895 (tui_disasm_window::maybe_update): Update.
4896
ed8358e9
TT
48972019-08-16 Tom Tromey <tom@tromey.com>
4898
4899 * tui/tui-winsource.h (struct tui_source_window_base)
4900 <update_source_window_as_is>: Declare.
4901 (tui_update_source_window_as_is): Don't declare.
4902 * tui/tui-winsource.c (tui_update_source_window): Update
4903 (tui_source_window_base::update_source_window_as_is): Rename from
4904 tui_update_source_window_as_is.
4905 (tui_source_window_base::refill): Update.
4906 * tui/tui-source.c (tui_show_symtab_source): Update.
4907 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4908 Update.
4909
20149b6b
TT
49102019-08-16 Tom Tromey <tom@tromey.com>
4911
4912 * tui/tui-winsource.h (tui_update_source_window)
4913 (tui_update_source_window_as_is): Remove "noerror" parameter.
4914 * tui/tui-winsource.c (tui_update_source_window)
4915 (tui_update_source_window_as_is): Remove "noerror" parameter.
4916 (tui_update_source_windows_with_addr)
4917 (tui_update_source_windows_with_line)
4918 (tui_source_window_base::rerender)
4919 (tui_source_window_base::refill): Update.
4920 * tui/tui-source.h (tui_set_source_content)
4921 (tui_show_symtab_source): Remove "noerror" parameter.
4922 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4923 parameter.
4924 (tui_show_symtab_source): Likewise.
4925 (tui_source_window::maybe_update): Update.
4926 * tui/tui-disasm.c (tui_show_disassem)
4927 (tui_show_disassem_and_update_source)
4928 (tui_disasm_window::do_scroll_vertical)
4929 (tui_disasm_window::maybe_update): Update.
4930
2d83e710
TT
49312019-08-16 Tom Tromey <tom@tromey.com>
4932
4933 * tui/tui.c (tui_is_window_visible): Update.
4934 * tui/tui-wingeneral.c (tui_make_window)
4935 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4936 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4937 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4938 (tui_set_win_height_command, parse_scrolling_args): Update.
4939 * tui/tui-source.c (tui_source_window::style_changed): Update.
4940 * tui/tui-regs.c (tui_show_registers)
4941 (tui_data_window::first_data_item_displayed)
4942 (tui_data_window::delete_data_content_windows)
4943 (tui_check_register_values, tui_reg_command): Update.
4944 * tui/tui-disasm.c (tui_show_disassem): Update.
4945 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4946 method.
4947 <is_visible>: Remove field.
4948 * tui/tui-data.c (tui_next_win, tui_prev_win)
4949 (tui_delete_invisible_windows): Update.
4950
d4ab829a
TT
49512019-08-16 Tom Tromey <tom@tromey.com>
4952
4953 * tui/tui-winsource.h (struct tui_source_window_base)
4954 <m_has_locator>: Remove.
4955 * tui/tui-layout.c (show_source_disasm_command, show_data)
4956 (show_source_or_disasm_and_command): Update.
4957
aa7ca1bb
AH
49582019-08-16 Alan Hayward <alan.hayward@arm.com>
4959
4960 * NEWS (Other MI changes): New subsection.
4961 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4962 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4963 * arch-utils.c (default_get_pc_address_flags): New function.
4964 * arch-utils.h (default_get_pc_address_flags): New declaration.
4965 * gdbarch.sh: Add get_pc_address_flags.
4966 * gdbarch.c: Regenerate.
4967 * gdbarch.h: Likewise.
4968 * stack.c (print_pc): New function.
4969 (print_frame_info) (print_frame): Call print_pc.
4970
6eac171f
TV
49712019-08-16 Tom de Vries <tdevries@suse.de>
4972
4973 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4974 print_objfile_section_info.
4975
3df505f6
TT
49762019-08-15 Tom Tromey <tom@tromey.com>
4977
4978 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4979 calling update_cmdwin_start_line.
4980 * tui/tui-winsource.h (struct tui_source_window_base)
4981 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4982 <rerender>: Declare.
4983 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4984 Call rerender.
4985 (tui_source_window_base::set_new_height): Remove.
4986 (tui_source_window_base::rerender): Rename from
4987 do_make_visible_with_new_height.
4988 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4989 resize method.
4990 (tui_win_info::make_invisible_and_set_new_height)
4991 (tui_win_info::make_visible_with_new_height): Remove.
4992 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4993 Declare.
4994 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4995 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4996 do_make_visible_with_new_height>: Don't declare.
4997 <rerender>: Declare.
4998 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4999 set_new_height.
5000 (tui_data_window::do_make_visible_with_new_height): Remove.
5001 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5002 call tui_show_locator_content.
5003 (tui_gen_win_info::resize): Call rerender.
5004 (show_source_or_disasm_and_command): Don't call
5005 tui_show_locator_content.
5006 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5007 method.
5008 (struct tui_win_info) <rerender>: Declare.
5009 <set_new_height, make_invisible_and_set_new_height,
5010 make_visible_with_new_height>: Don't declare.
5011 * tui/tui-data.c (tui_win_list::rerender): New method.
5012 * tui/tui-command.h (struct tui_cmd_window)
5013 <do_make_visible_with_new_height>: Don't declare.
5014 * tui/tui-command.c
5015 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5016
272560b5
TT
50172019-08-15 Tom Tromey <tromey@adacore.com>
5018
5019 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5020 * ada-lang.c (ada_enum_name): Likewise.
5021
08235187
CB
50222019-08-15 Christian Biesinger <cbiesinger@google.com>
5023
5024 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5025 leading underscore.
5026 (GdbOutputErrorFile): Likewise.
5027 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5028 accordingly.
5029 (execute_unwinders): Rename to have a leading underscore.
5030 (auto_load_packages): Likewise.
5031 (global scope): Adjust call to auto_load_packages accordingly.
5032 (GdbSetPythonDirectory): Likewise.
5033 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5034 instead of execute_unwinders.
5035
db502012
TT
50362019-08-15 Tom Tromey <tom@tromey.com>
5037
5038 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5039 (show_data): Don't change window visibility.
5040 (tui_gen_win_info::resize): Remove special case for command
5041 window. Use wresize, when available.
5042 (show_source_or_disasm_and_command): Don't change window
5043 visibility.
5044 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5045 <make_visible>: New method.
5046 * tui/tui-command.c (tui_cmd_window::resize): New method.
5047
3891b65e
TT
50482019-08-15 Tom Tromey <tom@tromey.com>
5049
5050 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5051 (struct tui_source_windows): New.
5052 * tui/tui-winsource.c (tui_display_main): Update.
5053 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5054 (new_height_ok, parse_scrolling_args): Update.
5055 * tui/tui-layout.c (show_layout, show_data): Update.
5056 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5057 (tui_add_to_source_windows): Don't declare.
5058 * tui/tui-data.c (source_windows, tui_source_windows)
5059 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5060
ee556432
TT
50612019-08-15 Tom Tromey <tom@tromey.com>
5062
5063 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5064 Rename from reset.
5065 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5066 * tui/tui-layout.c (show_source_disasm_command, show_data):
5067 Update.
5068 (tui_gen_win_info::resize): Rename.
5069 (show_source_or_disasm_and_command): Update.
5070 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5071 reset.
5072
46f438e3
TT
50732019-08-15 Tom Tromey <tom@tromey.com>
5074
5075 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5076 * tui/tui-interp.c (tui_interp::init): Don't call
5077 tui_initialize_static_data.
5078 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5079
f4ce562c
TT
50802019-08-15 Tom Tromey <tom@tromey.com>
5081
5082 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5083 examine tui_win_list.
5084
c398c3d0
TT
50852019-08-15 Tom Tromey <tom@tromey.com>
5086
5087 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5088 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5089 tui_clear_source_content.
5090 (tui_clear_source_content): Remove.
5091 (tui_source_window_base::do_erase_source_content): Hoist call to
5092 content.clear().
5093 * tui/tui-stack.c (tui_show_frame_info): Don't call
5094 tui_clear_source_content.
5095
e25d2004
TT
50962019-08-15 Tom Tromey <tom@tromey.com>
5097
5098 * tui/tui-winsource.h (struct tui_source_window_base)
5099 <do_erase_source_content>: New method.
5100 <erase_source_content>: New method.
5101 (tui_erase_source_content): Don't declare.
5102 * tui/tui-winsource.c (tui_clear_source_content): Update.
5103 (tui_source_window_base::do_erase_source_content): Rename from
5104 tui_erase_source_content.
5105 (tui_source_window_base::show_source_content): Update.
5106 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5107 * tui/tui-source.h (struct tui_source_window)
5108 <erase_source_content>: New method.
5109 * tui/tui-disasm.h (struct tui_disasm_window)
5110 <erase_source_content>: New method.
5111
002f15c2
TT
51122019-08-15 Tom Tromey <tom@tromey.com>
5113
5114 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5115 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5116 constructor.
5117 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5118 * tui/tui-source.c (tui_set_source_content): Update.
5119 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5120
c9033fe8
TT
51212019-08-15 Tom Tromey <tom@tromey.com>
5122
5123 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5124 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5125 tui-source.c.
5126 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5127 Declare.
5128 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5129 method.
5130 (tui_source_window::maybe_update): Update.
5131
088f37dd
TT
51322019-08-15 Tom Tromey <tom@tromey.com>
5133
5134 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5135 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5136 tui-disasm.c.
5137 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5138 Declare.
5139 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5140 method.
5141 (tui_disasm_window::maybe_update): Update.
5142
a54700c6
TT
51432019-08-15 Tom Tromey <tom@tromey.com>
5144
5145 * tui/tui-winsource.h (struct tui_source_window_base)
5146 <maybe_update>: Declare.
5147 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5148 method.
5149 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5150 Declare.
5151 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5152 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5153 Declare.
5154 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5155
e2a678a5
TT
51562019-08-15 Tom Tromey <tom@tromey.com>
5157
5158 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5159
f2dda477
TT
51602019-08-15 Tom Tromey <tom@tromey.com>
5161
5162 * tui/tui-wingeneral.c: Include tui-stack.h.
5163 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5164 (struct tui_locator_window): Move from tui-data.h.
5165 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5166 (tui_initialize_static_data): Move from tui-data.c.
5167 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5168 (struct tui_locator_window): Move to tui-stack.c.
5169 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5170 (tui_initialize_static_data): Move to tui-stack.c.
5171
ed4a1084
TT
51722019-08-15 Tom Tromey <tom@tromey.com>
5173
5174 * tui/tui-layout.c (show_source_disasm_command)
5175 (show_source_or_disasm_and_command): Use make_visible method, not
5176 tui_make_window.
5177 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5178 Remove.
5179
65962b20
TT
51802019-08-15 Tom Tromey <tom@tromey.com>
5181
5182 * tui/tui-wingeneral.h (tui_make_window): Update.
5183 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5184 parameter.
5185 (tui_gen_win_info::make_visible): Update.
5186 * tui/tui-regs.c (tui_data_window::display_registers_from):
5187 Update.
5188 * tui/tui-layout.c (show_source_disasm_command)
5189 (show_source_or_disasm_and_command): Update.
5190 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5191 (enum tui_box): Remove.
5192 (struct tui_win_info) <can_box>: New method.
5193 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5194 method.
5195
2208ee91
TV
51962019-08-15 Tom de Vries <tdevries@suse.de>
5197
5198 * linux-nat-trad.c: Include gdbarch.h.
5199
75faf5c4
AH
52002019-08-14 Alan Hayward <alan.hayward@arm.com>
5201
5202 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5203 register sizes.
5204
b1c896b3
TT
52052019-08-14 Tom Tromey <tromey@adacore.com>
5206
5207 * darwin-nat.c: Include gdbarch.h.
5208 * darwin-nat-info.c: Include gdbarch.h.
5209
6405cd73
TT
52102019-08-13 Tom Tromey <tom@tromey.com>
5211
5212 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5213 Remove.
5214 * tui/tui-data.c (tui_initialize_static_data): Update.
5215
5216580d
TT
52162019-08-13 Tom Tromey <tom@tromey.com>
5217
5218 * tui/tui-winsource.h (struct tui_exec_info_window)
5219 <~tui_exec_info_window, maybe_allocate_content, get_content,
5220 m_content>: Remove.
5221 (struct tui_source_window_base) <set_exec_info_content,
5222 show_exec_info_content>: Don't declare.
5223 * tui/tui-winsource.c
5224 (tui_exec_info_window::maybe_allocate_content): Remove.
5225 (tui_source_window_base::update_exec_info): Rename from
5226 set_exec_info_content.
5227 (tui_source_window_base::show_exec_info_content)
5228 (tui_source_window_base::update_exec_info): Remove.
5229
93858ad3
TT
52302019-08-13 Tom Tromey <tom@tromey.com>
5231
5232 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5233 declare.
5234 * tui/tui-winsource.c (tui_update_source_window_as_is)
5235 (tui_update_source_windows_with_addr, tui_erase_source_content):
5236 Update.
5237 (tui_clear_exec_info_content): Remove.
5238
e321e7ce
TT
52392019-08-13 Tom Tromey <tom@tromey.com>
5240
5241 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5242 declare.
5243 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5244 call tui_erase_exec_info_content.
5245 (tui_clear_exec_info_content): Rename from
5246 tui_erase_exec_info_content.
5247 (tui_clear_exec_info_content): Delete.
5248
8270ac62
TT
52492019-08-13 Tom Tromey <tom@tromey.com>
5250
5251 * tui/tui-winsource.h (struct tui_source_window_base)
5252 <show_exec_info_content>: Declare.
5253 (tui_show_exec_info_content): Don't declare.
5254 * tui/tui-winsource.c
5255 (tui_source_window_base::show_exec_info_content): Rename from
5256 tui_show_exec_info_content.
5257 (tui_source_window_base::update_exec_info): Update.
5258
7b56485d
TT
52592019-08-13 Tom Tromey <tom@tromey.com>
5260
5261 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5262 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5263 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5264 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5265 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5266 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5267 ... here.
5268
7ba913dc
TT
52692019-08-13 Tom Tromey <tom@tromey.com>
5270
5271 * tui/tui-winsource.h (struct tui_source_window_base)
5272 <update_exec_info>: Declare.
5273 (tui_update_exec_info): Don't declare.
5274 * tui/tui-winsource.c (tui_update_source_window_as_is)
5275 (tui_source_window_base::refresh_all)
5276 (tui_update_all_breakpoint_info): Update.
5277 (tui_source_window_base::update_exec_info): Rename from
5278 tui_update_exec_info.
5279 * tui/tui-stack.c (tui_show_frame_info): Update.
5280
37a4a131
TT
52812019-08-13 Tom Tromey <tom@tromey.com>
5282
5283 * tui/tui-winsource.h (struct tui_source_window_base)
5284 <set_exec_info_content>: Declare.
5285 (tui_set_exec_info_content): Don't declare.
5286 * tui/tui-winsource.c
5287 (tui_source_window_base::set_exec_info_content): Rename from
5288 tui_set_exec_info_content.
5289 (tui_update_exec_info): Update.
5290
0bd27e07
TT
52912019-08-13 Tom Tromey <tom@tromey.com>
5292
5293 * tui/tui-winsource.h (struct tui_source_window_base)
5294 <show_source_content>: Declare.
5295 (tui_show_source_content): Don't declare.
5296 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5297 (tui_source_window_base::show_source_content): Rename from
5298 tui_show_source_content.
5299 (tui_source_window_base::refresh_all): Update.
5300 * tui/tui-layout.c (show_source_disasm_command)
5301 (show_source_or_disasm_and_command): Update.
5302
b4ef5aeb
TT
53032019-08-13 Tom Tromey <tom@tromey.com>
5304
5305 * tui/tui-winsource.c (tui_erase_source_content)
5306 (tui_show_source_content, tui_source_window_base::refresh_all):
5307 Update.
5308 * tui/tui-wingeneral.h
5309 (tui_check_and_display_highlight_if_needed): Don't declare.
5310 * tui/tui-wingeneral.c
5311 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5312 check_and_display_highlight_if_needed.
5313 * tui/tui-win.c (tui_rehighlight_all)
5314 (tui_win_info::make_visible_with_new_height): Update.
5315 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5316 (tui_data_window::erase_data_content)
5317 (tui_data_window::display_all_data): Update.
5318 * tui/tui-data.h (struct tui_win_info)
5319 <check_and_display_highlight_if_needed>: Declare.
5320
fede5273
TT
53212019-08-13 Tom Tromey <tom@tromey.com>
5322
5323 * tui/tui-win.c (tui_resize_all): Call
5324 tui_delete_invisible_windows.
5325 * tui/tui-layout.c (show_layout): Call
5326 tui_delete_invisible_windows.
5327 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5328 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5329
22c3f490
TT
53302019-08-13 Tom Tromey <tom@tromey.com>
5331
5332 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5333 tui_add_win_to_layout.
5334
16cb7910
TT
53352019-08-13 Tom Tromey <tom@tromey.com>
5336
5337 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5338 * tui/tui-layout.c (tui_default_win_height): Now static.
5339
cc0c3ffb
TT
53402019-08-13 Tom Tromey <tom@tromey.com>
5341
5342 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5343 single switch.
5344 (show_source_disasm_command, show_source_or_disasm_and_command):
5345 Don't check current layout.
5346
3f3ffe54
TT
53472019-08-13 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-wingeneral.c (make_all_visible): Remove.
5350 (tui_make_all_invisible): Simplify.
5351 * tui/tui-layout.c (tui_make_all_invisible): Move from
5352 tui-wingeneral.c; simplify.
5353 (show_layout): Hoist call to tui_make_all_invisible.
5354 (show_data): Don't call tui_make_all_invisible.
5355
69258091
TT
53562019-08-13 Tom Tromey <tom@tromey.com>
5357
5358 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5359 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5360
62cf57fe
TT
53612019-08-13 Tom Tromey <tom@tromey.com>
5362
5363 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5364 tui-data.c.
5365 (show_source_disasm_command, show_data)
5366 (show_source_or_disasm_and_command): Don't use
5367 tui_set_current_layout_to.
5368 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5369 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5370 tui-layout.c.
5371 (tui_set_current_layout_to): Remove.
5372
2afade5d
TT
53732019-08-13 Tom Tromey <tom@tromey.com>
5374
5375 * tui/tui-layout.c (tui_set_layout): Update.
5376 * tui/tui-data.h (struct tui_layout_def): Remove.
5377 (tui_layout_def): Don't declare.
5378 * tui/tui-data.c (layout_def): Remove.
5379 (tui_layout_def): Remove.
5380
a3504e96
TT
53812019-08-13 Tom Tromey <tom@tromey.com>
5382
5383 * tui/tui-winsource.h (struct tui_source_window_base)
5384 <clear_detail>: No longer "override".
5385 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5386 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5387 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5388 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5389 Remove.
5390 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5391
29c92911
TT
53922019-08-13 Tom Tromey <tromey@adacore.com>
5393
5394 * tracepoint.c: Don't include readline.h or history.h.
5395
86c6b807
TT
53962019-08-12 Tom Tromey <tom@tromey.com>
5397
5398 * configure: Rebuild.
5399 * configure.ac: Check for readline 7.
5400 * NEWS: Mention readline 7 requirement.
5401 * README: Update.
5402
5db2718c
TT
54032019-08-12 Tom Tromey <tom@tromey.com>
5404
5405 * mingw-hdep.c (gdb_select): Remove readline hack.
5406
dac36daf
PFC
54072019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5408
5409 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5410 when the function fails.
5411
1022c627
AA
54122019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5413
5414 * s390-tdep.c (s390_type_align): New function.
5415 (s390_gdbarch_init): Set it as type_align gdbarch method.
5416
eba4caf2
TV
54172019-08-09 Tom de Vries <tdevries@suse.de>
5418
5419 PR gdb/24591
5420 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5421 pc_low with relocation offset.
5422
123cd851
TT
54232019-08-07 Tom Tromey <tromey@adacore.com>
5424
5425 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5426 (print_frame_args): Update.
5427 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5428 Update.
5429 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5430 * frame.h (struct frame_arg): Add initializers.
5431 <error>: Now a unique_xmalloc_ptr.
5432
3d31bc39
AH
54332019-08-07 Alan Hayward <alan.hayward@arm.com>
5434
5435 * NEWS: Expand the Pointer Authentication entry.
5436 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5437 (aarch64_frame_unmask_lr): ... to this.
5438 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5439 Call aarch64_frame_unmask_lr.
5440 * frame.c (struct frame_info): Add "masked" variable.
5441 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5442 (fprint_frame): Check for masked pc.
5443 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5444 declarations.
5445 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5446 * stack.c (print_frame): Check for masked pc.
5447
0cf9feb9
TT
54482019-08-06 Tom Tromey <tom@tromey.com>
5449
5450 * stabsread.c (patch_block_stabs, read_one_struct_field)
5451 (read_enum_type): Use obstack_strndup.
5452 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5453 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5454 * dwarf2read.c (guess_full_die_structure_name)
5455 (anonymous_struct_prefix): Use obstack_strndup.
5456 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5457 * c-exp.y (yylex): Use obstack_strndup.
5458 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5459 (write_var_or_type): Use obstack_strndup.
5460
efba19b0
TT
54612019-08-06 Tom Tromey <tom@tromey.com>
5462
5463 * symfile.c (reread_symbols): Use obstack_strdup.
5464 * stabsread.c (read_type): Use obstack_strdup.
5465 * gdb_obstack.h (obstack_strdup): New overload.
5466 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5467 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5468 (dwarf2_canonicalize_name): Use obstack_strdup.
5469 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5470 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5471 Use obstack_strdup.
5472
f25102f7
TT
54732019-08-06 Tom Tromey <tom@tromey.com>
5474
5475 * gdb_obstack.h (obstack_strdup): Define.
5476 * gdb_obstack.c (obstack_strdup): Don't define.
5477
021887d8
TT
54782019-08-06 Tom Tromey <tom@tromey.com>
5479
5480 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5481 obstack_strdup.
5482 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5483 obstack_strdup.
5484 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5485 * stabsread.c (common_block_start): Use obstack_strdup.
5486 * objfiles.c (set_objfile_main_name, objfile): Use
5487 obstack_strdup.
5488 * namespace.c (add_using_directive): Use obstack_strdup.
5489 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5490 * jit.c (finalize_symtab): Use obstack_strdup.
5491 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5492 (guess_partial_die_structure_name, partial_die_info::fixup)
5493 (dwarf2_name): Use obstack_strdup.
5494 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5495 obstack_strdup.
5496 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5497 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5498 obstack_strdup.
5499 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5500
d2834edc
PW
55012019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5502
5503 * unittests/help-doc-selftests.c: New file.
5504 * Makefile.in: Add the new file.
5505
590042fc
PW
55062019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5507
5508 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5509 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5510 the full first line, except when FOR_VALUE_PREFIX. In this case,
5511 the trailing '.' is not output, and the first character is uppercased.
5512 (print_help_for_command): Update call to print_doc_line.
5513 (print_doc_of_command): Likewise.
5514 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5515 * cli/cli-option.c (append_indented_doc): Do not append newline.
5516 (build_help_option): Append newline after first appended_indented_doc
5517 only if a second call is done.
5518 (build_help): Append 2 new lines before each option, except the first
5519 one.
5520 * compile/compile.c (_initialize_compile): Add new lines after
5521 %OPTIONS%, when not at the end of the help.
5522 Change help doc or code
5523 producing the help doc to respect the invariants.
5524 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5525 Also removed the new line after 'Options:', as all other commands
5526 do not put an empty line between 'Options:' and the first option.
5527 * printcmd.c (_initialize_printcmd): Likewise.
5528 * stack.c (_initialize_stack): Likewise.
5529 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5530 incorrectly telling COMMAND is optional.
5531 * ada-lang.c (_initialize_ada_language): Change help doc or code
5532 producing the help doc to respect the invariants.
5533 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5534 * breakpoint.c (_initialize_breakpoint): Likewise.
5535 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5536 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5537 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5538 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5539 _initialize_cli_style): Likewise.
5540 * corelow.c (core_target_info): Likewise.
5541 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5542 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5543 * filesystem.c (_initialize_filesystem): Likewise.
5544 * frame.c (_initialize_frame): Likewise.
5545 * gnu-nat.c (add_task_commands): Likewise.
5546 * infcall.c (_initialize_infcall): Likewise.
5547 * infcmd.c (_initialize_infcmd): Likewise.
5548 * interps.c (_initialize_interpreter): Likewise.
5549 * language.c (_initialize_language): Likewise.
5550 * linux-fork.c (_initialize_linux_fork): Likewise.
5551 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5552 * maint.c (_initialize_maint_cmds): Likewise.
5553 * memattr.c (_initialize_mem): Likewise.
5554 * printcmd.c (_initialize_printcmd): Likewise.
5555 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5556 _RegEx): Likewise.
5557 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5558 * record-btrace.c (_initialize_record_btrace): Likewise.
5559 * record-full.c (_initialize_record_full): Likewise.
5560 * record.c (_initialize_record): Likewise.
5561 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5562 * regcache.c (_initialize_regcache): Likewise.
5563 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5564 _initialize_remote): Likewise.
5565 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5566 * serial.c (_initialize_serial): Likewise.
5567 * skip.c (_initialize_step_skip): Likewise.
5568 * source.c (_initialize_source): Likewise.
5569 * stack.c (_initialize_stack): Likewise.
5570 * symfile.c (_initialize_symfile): Likewise.
5571 * symtab.c (_initialize_symtab): Likewise.
5572 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5573 * top.c (init_main): Likewise.
5574 * tracefile-tfile.c (tfile_target_info): Likewise.
5575 * tracepoint.c (_initialize_tracepoint): Likewise.
5576 * tui/tui-win.c (_initialize_tui_win): Likewise.
5577 * utils.c (add_internal_problem_command): Likewise.
5578 * valprint.c (value_print_option_defs): Likewise.
5579
404f2902
FCE
55802019-08-06 Frank Ch. Eigler <fche@redhat.com>
5581
5582 PR build/24886
5583 * configure.ac: Drop enable-libmcheck support.
5584 * configure, config.in: Rebuild.
5585 * libmcheck.m4: Remove.
5586 * acinclude.m4: Don't include it.
5587 * Makefile.in: Don't distribute it.
5588 * top.c (print_gdb_configuration): Don't mention it.
5589
046bebe1
TT
55902019-08-06 Tom Tromey <tom@tromey.com>
5591
5592 * utils.c (set_output_style): Sometimes pass stream to
5593 emit_style_escape.
5594 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5595 * record-btrace.c (btrace_insn_history): Update.
5596 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5597 method.
5598 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5599 Update initializers.
5600 <m_uiout>: New field.
5601 <m_di>: Move lower.
5602 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5603 Remove "uiout" parameter.
5604 (dump_insns): Update.
5605 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5606 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5607
ddbcedf5
CB
56082019-08-06 Christian Biesinger <cbiesinger@google.com>
5609
5610 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5611 (error_in_psymtab_expansion): Likewise.
5612 (lookup_symbol_via_quick_fns): Likewise.
5613 (basic_lookup_transparent_type_quick): Likewise.
5614 (basic_lookup_transparent_type_1): Likewise.
5615
b08b16c8
TT
56162019-08-06 Tom Tromey <tromey@adacore.com>
5617
5618 * source.c (last_source_error): Now bool.
5619 (print_source_lines_base): Make "noprint" bool. Only open
5620 source file when last_source_visited changes.
5621
cb44333d
TT
56222019-08-06 Tom Tromey <tromey@adacore.com>
5623
5624 * annotate.c (annotate_source_line): Use g_source_cache.
5625 * source-cache.c (source_cache::get_plain_source_lines): Change
5626 parameters. Populate m_offset_cache.
5627 (source_cache::ensure): New method.
5628 (source_cache::get_line_charpos): New method.
5629 (extract_lines): Move lower. Change parameters.
5630 (source_cache::get_source_lines): Move lower.
5631 * source-cache.h (class source_cache): Update comment.
5632 <get_line_charpos>: New method.
5633 <get_source_lines>: Update comment.
5634 <clear>: Clear m_offset_cache.
5635 <get_plain_source_lines>: Change parameters.
5636 <ensure>: New method
5637 <m_offset_cache>: New member.
5638 * source.c (forget_cached_source_info_for_objfile): Update.
5639 (info_source_command): Use g_source_cache.
5640 (find_source_lines, open_source_file_with_line_charpos): Remove.
5641 (print_source_lines_base, search_command_helper): Use g_source_cache.
5642 * source.h (open_source_file_with_line_charpos): Don't declare.
5643 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5644 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5645 Use g_source_cache.
5646
872dceaa
TT
56472019-08-06 Tom Tromey <tromey@adacore.com>
5648
5649 * source-cache.c (source_cache::get_plain_source_lines):
5650 Remove "first_line" and "last_line" parameters.
5651 (source_cache::get_source_lines): Cache plain text.
5652 * source-cache.h (class source_cache)
5653 <get_plain_source_lines>: Update.
5654
269249d9
TT
56552019-08-06 Tom Tromey <tromey@adacore.com>
5656
5657 * source-cache.c (extract_lines): No longer a method.
5658 Changed type of parameter. Include final newline.
5659 (selftests::extract_lines_test): New function.
5660 (_initialize_source_cache): Likewise.
5661 * source-cache.h (class source_cache)
5662 <extract_lines>: Don't declare.
5663
c0e8dcd8
TT
56642019-08-06 Tom Tromey <tromey@adacore.com>
5665
5666 * breakpoint.c (init_breakpoint_sal): Update.
5667 (breakpoint): Update.
5668 * breakpoint.h (struct breakpoint) <filter>: Now a
5669 unique_xmalloc_ptr.
5670
0b27c27d
CB
56712019-08-05 Christian Biesinger <cbiesinger@google.com>
5672
5673 * NEWS: Mention dictionary access on blocks.
5674 * python/py-block.c (blpy_getitem): New function.
5675 (block_object_as_mapping): New struct.
5676 (block_object_type): Use new struct for tp_as_mapping field.
5677
4ee94178
CB
56782019-08-05 Christian Biesinger <cbiesinger@google.com>
5679
5680 * objfiles.h (objfile): Add a comment describing partial symbols.
5681
8abfcabc
TT
56822019-08-05 Tom Tromey <tromey@adacore.com>
5683
5684 * compile/compile.c (_initialize_compile): Use _(), not N_().
5685 * thread.c (_initialize_thread): Use _(), not N_().
5686 * stack.c (_initialize_stack): Use _(), not N_().
5687 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5688
2b79f376
SM
56892019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5690
5691 * dwarf2read.c (struct dw2_symtab_iterator):
5692 <want_specific_block>: Remove.
5693 <block_index>: Change type to gdb::optional.
5694 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5695 change type of BLOCK_INDEX parameter to gdb::optional.
5696 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5697 (dw2_lookup_symbol): Don't pass argument for
5698 WANT_SPECIFIC_BLOCK.
5699 (dw2_expand_symtabs_for_function): Don't pass argument for
5700 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5701 (class dw2_debug_names_iterator)
5702 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5703 parameter, change BLOCK_INDEX type to gdb::optional.
5704 <m_want_specific_block>: Remove.
5705 <m_block_index>: Change type to gdb::optional.
5706 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5707 gdb::optional. Re-write in function of gdb::optional.
5708 (dw2_debug_names_lookup_symbol): Don't pass argument for
5709 WANT_SPECIFIC_BLOCK.
5710 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5711 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5712 BLOCK_INDEX.
5713
ae60f04e
PW
57142019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5715
5716 * NEWS: Mention changes to "info sources" command.
5717
28cd9371
PW
57182019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5719
5720 * symtab.c (filename_partial_match_opts): New struct type.
5721 (struct output_source_filename_data): New members
5722 regexp, c_regexp, partial_match.
5723 (output_source_filename): Use new members to decide to print file.
5724 (info_sources_option_defs): New variable.
5725 (make_info_sources_options_def_group, print_info_sources_header,
5726 info_sources_command_completer):
5727 New functions.
5728 (info_sources_command): Read new optional arguments.
5729 (_initialize_symtab): Update info sources help.
5730
ca683e3a
AO
57312019-08-02 Alexandre Oliva <oliva@adacore.com>
5732
5733 * ada-lang.c (exception_support_info_v0): Renamed from...
5734 (default_exception_support_info): ... this. Create new
5735 definition for v1.
5736 (ada_has_this_exception_support): Look up catch_handlers_sym.
5737 (ada_exception_support_info_sniffer): Try v0 after default.
5738
f1264162
TT
57392019-08-01 Tom Tromey <tromey@adacore.com>
5740
5741 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5742 gdbarch.h.
5743
0a7b2485
CB
57442019-08-01 Christian Biesinger <cbiesinger@google.com>
5745
5746 * s12z-tdep.c: Fix include path for s12z-opc.h.
5747
c6bdbeb7
AH
57482019-08-01 Alan Hayward <alan.hayward@arm.com>
5749
5750 * NEWS: Require GNU make 3.82.
5751
a2bd7b82
TT
57522019-07-16 Tom Tromey <tom@tromey.com>
5753
5754 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5755 declare.
5756
aa3b6533
TT
57572019-07-30 Tom Tromey <tromey@adacore.com>
5758
5759 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5760
a1530dc7
KB
57612019-07-30 Kevin Buettner <kevinb@redhat.com>
5762
5763 * printcmd.c (print_address_symbolic): Print negative offsets.
5764 (build_address_symbolic): Force signed arithmetic when computing
5765 offset.
5766
2906593f
CB
57672019-07-30 Christian Biesinger <cbiesinger@google.com>
5768
5769 PR/24474: Add a function to lookup static variables.
5770 * NEWS: Mention this new function.
5771 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5772 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5773 * python/python.c (python_GdbMethods): Add new function.
5774
c620ed88
CB
57752019-07-29 Christian Biesinger <cbiesinger@google.com>
5776
5777 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5778 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5779 (objfpy_lookup_static_symbol): New function.
5780 (objfile_object_methods): Add new functions.
5781
bc4268a5
PW
57822019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5783
5784 * NEWS: Mention 'set|show print frame-info'. Mention new
5785 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5786 backtrace argument. Mention that python frame filtering code
5787 is now consistent with what 'backtrace' command prints.
5788
4b5e8d19
PW
57892019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5790
5791 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5792 comments.
5793 (print_frame_info_auto, print_frame_info_source_line,
5794 print_frame_info_location, print_frame_info_source_and_location,
5795 print_frame_info_location_and_address, print_frame_info_short_location):
5796 New declarations.
5797 (struct frame_print_options): New member print_frame_info.
5798 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5799 * stack.h (get_user_print_what_frame_info): New declaration.
5800 (frame_show_address): New declaration.
5801 * stack.c (print_frame_arguments_choices): New value 'presence'.
5802 (print_frame_info_auto, print_frame_info_source_line,
5803 print_frame_info_location, print_frame_info_source_and_location,
5804 print_frame_info_location_and_address, print_frame_info_short_location,
5805 print_frame_info_choices, print_frame_info_print_what): New definitions.
5806 (print_frame_args): Only print dots for args if print frame-arguments
5807 is 'presence'.
5808 (frame_print_option_defs): New element for "frame-info".
5809 (get_user_print_what_frame_info): New function.
5810 (frame_show_address): Make non static. Move comment to stack.h.
5811 (print_frame_info_to_print_what): New function.
5812 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5813 to decide what to print.
5814 (backtrace_command_1): Handle the new print_frame_arguments_presence
5815 value.
5816 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5817 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5818 (py_print_frame): In non-mi mode, use LOCATION as default for
5819 print_what, similarly to frame information printed directly by
5820 backtrace command. Handle frame-info user option in non MI mode.
5821
6bdfee81
KB
58222019-07-27 Kevin Buettner <kevinb@redhat.com>
5823
5824 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5825 Add case for debugging 32-bit target on 64-bit host. Revise
5826 comment.
5827
98a617f8
KB
58282019-07-27 Kevin Buettner <kevinb@redhat.com>
5829
5830 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5831 instead of find_function_entry_range_from_pc.
5832
567238c9
KB
58332019-07-27 Kevin Buettner <kevinb@redhat.com>
5834
5835 * stack.c (find_frame_funname): Remove code which preferred
5836 minsym over symtab sym in "certain pathological cases".
5837
2dc80cf8
KB
5838 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5839 parameter. Change type of "do_demangle" to bool.
5840 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5841 Pass suitable "prefer_sym_over_minsym" flag to
5842 build_address_symbolic(). Don't output "+" for negative offsets.
5843 * printcmd.c (print_address_symbolic): Update invocation of
5844 build_address_symbolic to include a "prefer_sym_over_minsym"
5845 flag.
5846 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5847 Restrict cases in which use of minimal symbol is preferred to that
5848 of a found symbol. Update comments.
5849
1aff7173
KB
5850 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5851 for entry pc when entry pc is out of range for that FDE.
5852
89b085ac
BC
58532019-07-26 Brian Callahan <bcallah@openbsd.org>
5854
5855 PR gdb/24839:
5856 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5857 type.
5858
f32feb4a
CB
58592019-07-25 Christian Biesinger <cbiesinger@google.com>
5860
5861 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5862 this function's Python signature.
5863
5864
58652019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5866
5867 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5868 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5869 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5870 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5871 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5872
5873
c54e4253
YS
58742019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5875
5876 * h8300-tdep.c (h8300_register_name_common): New.
5877 h8300_register_name): Use h8300_register_name_common.
5878 (h8300s_register_name): Likewise.
5879 (h8300sx_register_name): Likewise.
5880 (h8300h_register_nam): New.
5881 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5882
5883
40eadf04
SP
58842019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5885
5886 * arm-tdep.c (arm_skip_cmse_entry): New function.
5887 (arm_is_sgstubs_section): New function.
5888 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5889
bfa2a36d
TT
58902019-07-22 Tom Tromey <tom@tromey.com>
5891
5892 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5893 Don't self-assign.
5894
a8e9d247
AB
58952019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5896
5897 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5898 type_print.
5899
eb86c5e2
AB
59002019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5901
5902 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5903 so that GDB doesn't match any msymbols when searching in the
5904 TYPES_DOMAIN.
5905 (print_symbol_info): Print using typedef_print or type_print based
5906 on the type of the symbol. Add updated FIXME comment moved from...
5907 (_initialize_symtab): ... move and update FIXME comment to above.
5908
a8eab7c6
AB
59092019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5910
5911 * NEWS: Mention adding -q option to "info types".
5912 * symtab.c (struct info_types_options): New struct.
5913 (info_types_options_defs): New variable.
5914 (make_info_types_options_def_group): New function.
5915 (info_types_command): Use gdb::option framework to parse options.
5916 (info_types_command_completer): New function.
5917 (_initialize_symtab): Extend the help text on "info types" and
5918 register command completer.
5919
b4603c34
CB
59202019-07-21 Christian Biesinger <cbiesinger@google.com>
5921
5922 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5923 (lookup_symbol_in_objfile): Change int to block_enum and add a
5924 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5925
c8cdc1e0
CB
59262019-07-20 Christian Biesinger <cbiesinger@google.com>
5927
5928 * MAINTAINERS (Write After Approval): Add self.
5929
01e175fe
AB
59302019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5931
5932 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5933 instruction to the dummy code region.
5934
56f79b63
TT
59352019-07-19 Tom Tromey <tromey@adacore.com>
5936
5937 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5938 (ARGSUSED, PARAMS, __func__): Remove rules.
5939
4c5aa8e0
AH
59402019-07-19 Alan Hayward <alan.hayward@arm.com>
5941
5942 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5943 * features/arm/arm-with-iwmmxt.c: Remove.
5944 * features/arm/arm-with-iwmmxt.xml: Remove.
5945 * features/arm/arm-with-m-fpa-layout.c: Remove.
5946 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5947 * features/arm/arm-with-m-vfp-d16.c: Remove.
5948 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5949 * features/arm/arm-with-m.c: Remove.
5950 * features/arm/arm-with-m.xml: Remove.
5951 * features/arm/arm-with-neon.c: Remove.
5952 * features/arm/arm-with-neon.xml: Remove.
5953 * features/arm/arm-with-vfpv2.c: Remove.
5954 * features/arm/arm-with-vfpv2.xml: Remove.
5955 * features/arm/arm-with-vfpv3.c: Remove.
5956 * features/arm/arm-with-vfpv3.xml: Remove.
5957
f42b2617
AH
59582019-07-19 Alan Hayward <alan.hayward@arm.com>
5959
5960 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5961
f29ec966
AH
59622019-07-19 Alan Hayward <alan.hayward@arm.com>
5963
5964 * arch/aarch32.c (aarch32_create_target_description): Create
5965 target descriptions using features.
5966 * arch/arm.c (arm_create_target_description)
5967 (arm_create_mprofile_target_description): Likewise.
5968 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5969
d105cce5
AH
59702019-07-19 Alan Hayward <alan.hayward@arm.com>
5971
5972 * Makefile.in: Add new files.
5973 * aarch32-tdep.c: New file.
5974 * aarch32-tdep.h: New file.
5975 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5976 Call aarch32_read_description.
5977 * arch/aarch32.c: New file.
5978 * arch/aarch32.h: New file.
5979 * arch/arm.c (arm_create_target_description)
5980 (arm_create_mprofile_target_description): New function.
5981 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5982 (arm_create_target_description)
5983 (arm_create_mprofile_target_description): New declaration.
5984 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5985 read_description functions.
5986 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5987 Likewise.
5988 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5989 * arm-tdep.c (tdesc_arm_list): New variable.
5990 (arm_register_g_packet_guesses): Call create description functions.
5991 (arm_read_description) (arm_read_mprofile_description): New
5992 function.
5993 * arm-tdep.h (arm_read_description)
5994 (arm_read_mprofile_description): Add declaration.
5995 * configure.tgt: Add new files.
5996
afe09f0b
GL
59972019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5998
5999 * top.c (new_ui_command): Open specified terminal just once.
6000
cd215b2e
TT
60012019-07-18 Tom Tromey <tromey@adacore.com>
6002
6003 * symtab.c (main_name): Constify return type.
6004 * symfile.c (set_initial_language): Update.
6005 * symtab.h (main_name): Constify return type.
6006
d8f68fcb
TT
60072019-07-17 Tom Tromey <tom@tromey.com>
6008
6009 * tui/tui-winsource.c (tui_update_source_window)
6010 (tui_update_source_window_as_is)
6011 (tui_update_source_windows_with_line): Remove return.
6012 * tui/tui-disasm.c (tui_show_disassem)
6013 (tui_show_disassem_and_update_source): Remove return.
6014 * tui/tui.c (tui_reset): Remove return.
6015 * tui/tui-wingeneral.c
6016 (tui_check_and_display_highlight_if_needed): Remove return.
6017
ca5af91e
TT
60182019-07-17 Tom Tromey <tom@tromey.com>
6019
6020 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6021
5104fe36
TT
60222019-07-17 Tom Tromey <tom@tromey.com>
6023
6024 * tui/tui-winsource.h (struct tui_exec_info_window)
6025 (struct tui_source_window_base): Move from tui-data.h.
6026 * tui/tui-winsource.c: Move many method definitions from
6027 elsewhere. Remove "structuring" comments.
6028 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6029 (tui_source_window_base::refresh_window): Move to
6030 tui-winsource.c.
6031 * tui/tui-win.c (tui_source_window_base::refresh_all)
6032 (tui_source_window_base::update_tab_width)
6033 (tui_source_window_base::set_new_height)
6034 (tui_source_window_base::do_make_visible_with_new_height): Move to
6035 tui-winsource.c.
6036 * tui/tui-source.h: Update.
6037 * tui/tui-source.c (tui_source_window_base::reset): Move to
6038 tui-winsource.c.
6039 * tui/tui-disasm.h: Update.
6040 * tui/tui-data.h (struct tui_exec_info_window): Move to
6041 tui-winsource.h.
6042 (struct tui_source_window_base): Likewise.
6043 * tui/tui-data.c (tui_source_window_base::clear_detail)
6044 (tui_source_window_base, ~tui_source_window_base): Move to
6045 tui-winsource.c.
6046
daa15dde
TT
60472019-07-17 Tom Tromey <tom@tromey.com>
6048
6049 * tui/tui-win.c (tui_resize_all)
6050 (tui_source_window_base::update_tab_width)
6051 (tui_adjust_win_heights): Update.
6052 (tui_win_info::make_invisible_and_set_new_height): Rename from
6053 make_invisible_and_set_new_height.
6054 * tui/tui-data.h (struct tui_win_info)
6055 <make_invisible_and_set_new_height>: New method.
6056
bfad4537
TT
60572019-07-17 Tom Tromey <tom@tromey.com>
6058
6059 * tui/tui.c: Update.
6060 * tui/tui-source.h (struct tui_source_window): Move from
6061 tui-data.h.
6062 * tui/tui-layout.c: Update.
6063 * tui/tui-disasm.c: Update.
6064 * tui/tui-data.h (struct tui_source_window): Move to
6065 tui-source.h.
6066
88f7e873
TT
60672019-07-17 Tom Tromey <tom@tromey.com>
6068
6069 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6070 tui-data.h.
6071 * tui/tui-data.h (struct tui_disasm_window): Move to
6072 tui-disasm.h.
6073
96bd6233
TT
60742019-07-17 Tom Tromey <tom@tromey.com>
6075
6076 * tui/tui-regs.h (struct tui_data_item_window): Move from
6077 tui-data.h.
6078 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6079 * tui/tui-data.h (struct tui_data_item_window): Move to
6080 tui-regs.h.
6081 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6082
ce38393b
TT
60832019-07-17 Tom Tromey <tom@tromey.com>
6084
6085 * tui/tui.c: Update.
6086 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6087 (tui_cmd_window::max_height): Move to tui-command.c.
6088 * tui/tui-layout.c: Update.
6089 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6090 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6091 tui-command.c.
6092 * tui/tui-command.h (struct tui_cmd_window): Move from
6093 tui-data.h.
6094 * tui/tui-command.c: Remove "structuring" comments.
6095 (tui_cmd_window::clear_detail)
6096 (tui_cmd_window::do_make_visible_with_new_height)
6097 (tui_cmd_window::max_height): Move from elsewhere.
6098
2d8b51cb
TT
60992019-07-17 Tom Tromey <tom@tromey.com>
6100
6101 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6102 Now static.
6103 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6104 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6105
18ab23af
TT
61062019-07-17 Tom Tromey <tom@tromey.com>
6107
6108 * tui/tui.c: Update.
6109 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6110 tui-regs.c.
6111 * tui/tui-windata.h: Remove file.
6112 * tui/tui-windata.c: Remove file.
6113 * tui/tui-win.c (tui_data_window::set_new_height)
6114 (tui_data_window::do_make_visible_with_new_height): Move to
6115 tui-regs.c.
6116 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6117 * tui/tui-regs.c: Remove "structuring" comments.
6118 (tui_data_window::first_data_item_displayed)
6119 (tui_data_window::delete_data_content_windows)
6120 (tui_data_window::erase_data_content)
6121 (tui_data_window::display_all_data)
6122 (tui_data_window::refresh_all)
6123 (tui_data_window::do_scroll_vertical)
6124 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6125 (tui_data_window::do_make_visible_with_new_height)
6126 (tui_data_window::refresh_window): Move from elsewhere.
6127 (_initialize_tui_regs): Move to end of file.
6128 * tui/tui-layout.c: Update.
6129 * tui/tui-hooks.c: Update.
6130 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6131 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6132 tui-regs.c.
6133 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6134
88b7e7cc
TT
61352019-07-17 Tom Tromey <tom@tromey.com>
6136
6137 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6138 seen.
6139
0fcd3711
TT
61402019-07-17 Tom Tromey <tom@tromey.com>
6141
6142 * tui/tui-win.c (tui_source_window_base::set_new_height)
6143 (tui_source_window_base::do_make_visible_with_new_height): Use
6144 m_has_locator field directly.
6145 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6146 method.
6147 (struct tui_source_window_base) <has_locator>: Likewise.
6148
4a38112d
TT
61492019-07-17 Tom Tromey <tom@tromey.com>
6150
6151 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6152 Don't declare.
6153 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6154 Remove.
6155 * tui/tui-win.c (tui_source_window_base::set_new_height)
6156 (tui_source_window_base::set_new_height)
6157 (make_invisible_and_set_new_height)
6158 (tui_source_window_base::do_make_visible_with_new_height)
6159 (tui_source_window_base::do_make_visible_with_new_height):
6160 Update.
6161 * tui/tui-layout.c (show_source_disasm_command, show_data)
6162 (show_source_or_disasm_and_command): Update.
6163 * tui/tui-layout.c (show_layout): Update.
6164
09129226
TT
61652019-07-17 Tom Tromey <tom@tromey.com>
6166
6167 * tui/tui-layout.c (make_data_window): Remove.
6168 (show_data): Unify creation and re-initialization cases.
6169
4a8a5e84
TT
61702019-07-17 Tom Tromey <tom@tromey.com>
6171
6172 * tui/tui-layout.c (make_source_window, make_disasm_window):
6173 Remove.
6174 (show_data): Unify creation and re-initialization cases.
6175
76d2be8e
TT
61762019-07-17 Tom Tromey <tom@tromey.com>
6177
6178 * tui/tui-layout.c (make_command_window): Remove.
6179 (show_source_disasm_command, show_source_or_disasm_and_command):
6180 Unify creation and re-initialization cases.
6181
890b8bde
TT
61822019-07-17 Tom Tromey <tom@tromey.com>
6183
6184 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6185 creation and re-initialization cases.
6186
2cdfa113
TT
61872019-07-17 Tom Tromey <tom@tromey.com>
6188
6189 * tui/tui-regs.c (tui_get_register): Return void.
6190
8e3cfd09
TT
61912019-07-17 Tom Tromey <tom@tromey.com>
6192
6193 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6194 Simplify.
6195
f4e04977
TT
61962019-07-17 Tom Tromey <tom@tromey.com>
6197
6198 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6199 resetting.
6200
0379b883
TT
62012019-07-17 Tom Tromey <tom@tromey.com>
6202
6203 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6204 * tui/tui-regs.c (tui_reg_layout): New function.
6205 (tui_show_registers, tui_reg_command): Use it.
6206 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6207 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6208 parameters.
6209 (tui_layout_command): Remove.
6210
b7fbad91
TT
62112019-07-17 Tom Tromey <tom@tromey.com>
6212
6213 * tui/tui-layout.h (tui/tui-layout): Return void.
6214 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6215
4e1e56b9
TT
62162019-07-17 Tom Tromey <tom@tromey.com>
6217
6218 * tui/tui-layout.c (show_source_disasm_command, show_data):
6219 Update.
6220 (reset_locator): Remove.
6221 (show_source_or_disasm_and_command): Update.
6222
1e0c09ba
TT
62232019-07-17 Tom Tromey <tom@tromey.com>
6224
6225 * tui/tui-source.c (tui_source_window_base::reset): Remove
6226 win_type parameter.
6227 * tui/tui-layout.c (make_command_window, make_source_window)
6228 (make_disasm_window, make_data_window)
6229 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6230 (reset_locator, show_source_or_disasm_and_command): Update.
6231 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6232 win_type parameter.
6233 (struct tui_source_window_base) <reset>: Likewise.
6234
1bf605de
TT
62352019-07-17 Tom Tromey <tom@tromey.com>
6236
6237 * tui/tui-layout.c (show_source_disasm_command): Use
6238 reset_locator.
6239 (reset_locator): New function.
6240 (init_and_make_win): Remove.
6241 (show_source_or_disasm_and_command): Use reset_locator.
6242
098f9ed4
TT
62432019-07-17 Tom Tromey <tom@tromey.com>
6244
6245 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6246 condition.
6247 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6248 Remove condition.
6249 * tui/tui-source.c (tui_source_window_base::reset): New method.
6250 * tui/tui-layout.c (make_command_window): Don't call
6251 init_and_make_win.
6252 (make_source_window, make_disasm_window): Don't call
6253 make_source_or_disasm_window.
6254 (make_data_window): Don't call init_and_make_win. Change calling
6255 convention.
6256 (show_source_disasm_command, show_data): Simplify.
6257 (make_source_or_disasm_window): Remove.
6258 (show_source_or_disasm_and_command): Simplify.
6259 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6260 (struct tui_source_window_base) <reset>: Likewise.
6261 <execution_info>: Remove initializer.
6262 * tui/tui-data.c (tui_source_window_base): Initialize
6263 execution_info.
6264
80110957
TT
62652019-07-17 Tom Tromey <tom@tromey.com>
6266
6267 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6268 variable.
6269
cf82af05
TT
62702019-07-17 Tom Tromey <tom@tromey.com>
6271
6272 * tui/tui.c (tui_rl_other_window): Update.
6273 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6274 superclass method first. Always iterate over regs_content.
6275 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6276 method.
6277 * tui/tui-win.c (tui_set_focus_command): Update.
6278
01aeb396
TT
62792019-07-17 Tom Tromey <tom@tromey.com>
6280
6281 * tui/tui-win.c (tui_set_focus_command): Rename from
6282 tui_set_focus. Call tui_enable.
6283 (tui_set_focus_command): Remove.
6284
fd6c75ee
TT
62852019-07-17 Tom Tromey <tom@tromey.com>
6286
6287 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6288 refresh_window.
6289 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6290 touchwin.
6291 (tui_data_window::refresh_window): Call refresh_window on data
6292 items. Always call superclass refresh_window.
6293 (tui_win_info::refresh): Remove.
6294 (tui_source_window_base::refresh_window): Update.
6295 (tui_refresh_all): Update.
6296 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6297 refresh_window.
6298 (show_source_or_disasm_and_command): Likewise.
6299 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6300 (struct tui_source_window_base) <refresh>: Likewise.
6301
f6cc34a9
TT
63022019-07-17 Tom Tromey <tom@tromey.com>
6303
6304 * tui/tui-winsource.c (tui_clear_source_content)
6305 (tui_show_source_content): Update.
6306 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6307 whether content is empty.
6308 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6309 Remove.
6310
f31ec9af
TT
63112019-07-17 Tom Tromey <tom@tromey.com>
6312
6313 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6314 window's contents.
6315 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6316 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6317
d1b6f1e5
TT
63182019-07-17 Tom Tromey <tom@tromey.com>
6319
6320 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6321 (struct tui_data_item_window): Update.
6322
d9743a13
TT
63232019-07-17 Tom Tromey <tom@tromey.com>
6324
6325 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6326 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6327 defines.
6328
caf0bc4e
TT
63292019-07-17 Tom Tromey <tom@tromey.com>
6330
6331 * tui/tui-winsource.h (tui_erase_source_content)
6332 (tui_clear_source_content): Remove "display_prompt" parameter.
6333 * tui/tui-winsource.c (tui_update_source_window_as_is)
6334 (tui_update_source_windows_with_addr): Update.
6335 (tui_clear_source_content): Remove "display_prompt" parameter.
6336 (tui_erase_source_content): Likewise. Simplify.
6337 (tui_show_source_content): Update.
6338 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6339 * tui/tui-stack.c (tui_show_frame_info): Update.
6340 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6341 Remove defines.
6342
9d391078
TT
63432019-07-17 Tom Tromey <tom@tromey.com>
6344
6345 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6346 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6347 parameter.
6348 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6349 parameter.
6350
a38da35d
TT
63512019-07-17 Tom Tromey <tom@tromey.com>
6352
6353 * tui/tui-winsource.c (tui_clear_source_content)
6354 (tui_show_source_content, tui_show_exec_info_content)
6355 (tui_clear_exec_info_content): Update.
6356 * tui/tui-stack.c (tui_show_locator_content): Update.
6357 (tui_show_frame_info): Update.
6358 * tui/tui-source.h (tui_source_window): Don't declare.
6359 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6360 from tui_source_is_displayed.
6361 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6362 Remove field.
6363 (struct tui_source_window_base) <content_in_use>: New field. Now
6364 bool.
6365 (struct tui_source_window) <showing_source_p>: New method.
6366 (TUI_SRC_WIN): Change cast.
6367 * tui/tui-data.c (tui_initialize_static_data): Update.
6368
c2cd8994
TT
63692019-07-17 Tom Tromey <tom@tromey.com>
6370
6371 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6372 location_matches_p.
6373 * tui/tui-source.c (tui_source_window::location_matches_p): New
6374 method.
6375 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6376 method.
6377 * tui/tui-data.h (struct tui_source_window_base)
6378 <location_matches_p>: New method.
6379 (struct tui_source_window, struct tui_disasm_window)
6380 <location_matches_p>: Likewise.
6381
4dde7b34
TT
63822019-07-17 Tom Tromey <tom@tromey.com>
6383
6384 * tui/tui-win.c (tui_set_win_height_command): Rename from
6385 tui_set_win_height.
6386 (tui_set_win_height_command): Remove.
6387
b73dd877
TT
63882019-07-17 Tom Tromey <tom@tromey.com>
6389
6390 * tui/tui-source.c (tui_source_window): New constructor. Add
6391 observer.
6392 (~tui_source_window): New destructor.
6393 (tui_source_window::style_changed): New method.
6394 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6395 (tui_attach_detach_observers): Update.
6396 * tui/tui-data.h (struct tui_source_window): Make constructor not
6397 inline. Add destructor.
6398 (struct tui_source_window) <style_changed>: New method.
6399 <m_observable>: New member.
6400
ae2b5380
TT
64012019-07-17 Tom Tromey <tom@tromey.com>
6402
6403 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6404 * tui/tui-win.c (tui_resize_all): Fix typo.
6405
1ce3e844
TT
64062019-07-17 Tom Tromey <tom@tromey.com>
6407
6408 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6409 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6410 (tui_refresh_all): Remove "list" parameter. Use foreach.
6411 * tui/tui-win.c (window_name_completer): Use foreach.
6412 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6413 (update_tab_width): Likewise.
6414 * tui/tui-layout.c (show_layout): Update.
6415 * tui/tui-data.h (class tui_window_iterator): New.
6416 (struct all_tui_windows): New.
6417 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6418
fe3eaf1c
TT
64192019-07-17 Tom Tromey <tom@tromey.com>
6420
6421 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6422 parameter. Don't reference globals.
6423 (tui_reg_command): Update.
6424
368c1354
TT
64252019-07-17 Tom Tromey <tom@tromey.com>
6426
6427 * tui/tui-regs.c (tui_show_registers): Simplify.
6428
e80cd204
TT
64292019-07-17 Tom Tromey <tom@tromey.com>
6430
6431 * tui/tui-regs.c (tui_show_registers): Update.
6432 (tui_show_register_group): Add win_info parameter.
6433
aca2dd16
TT
64342019-07-17 Tom Tromey <tom@tromey.com>
6435
6436 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6437 Rename from tui_display_reg_element_at_line.
6438 (tui_data_window::display_registers_from_line): Update.
6439 * tui/tui-data.h (struct tui_data_window)
6440 <display_reg_element_at_line>: New method.
6441
517e9505
TT
64422019-07-17 Tom Tromey <tom@tromey.com>
6443
6444 * tui/tui-regs.h (tui_display_registers_from)
6445 (tui_display_registers_from_line): Don't declare.
6446 * tui/tui-windata.c (tui_data_window::display_all_data)
6447 (tui_data_window::refresh_all)
6448 (tui_data_window::do_scroll_vertical): Update.
6449 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6450 from tui_display_registers_from.
6451 (tui_display_reg_element_at_line): Update.
6452 (tui_data_window::display_registers_from_line): Rename from
6453 tui_display_registers_from_line.
6454 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6455 display_registers_from_line>: New methods.
6456
f76d8b19
TT
64572019-07-17 Tom Tromey <tom@tromey.com>
6458
6459 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6460 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6461 from tui_erase_data_content.
6462 (tui_data_window::display_all_data)
6463 (tui_data_window::refresh_all)
6464 (tui_data_window::do_scroll_vertical): Update.
6465 * tui/tui-regs.c (tui_show_registers): Update.
6466 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6467 New method.
6468
b4094625
TT
64692019-07-17 Tom Tromey <tom@tromey.com>
6470
6471 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6472 declare.
6473 * tui/tui-windata.c
6474 (tui_data_window::delete_data_content_windows): Rename from
6475 tui_delete_data_content_windows.
6476 (tui_data_window::display_all_data)
6477 (tui_data_window::do_scroll_vertical): Update.
6478 * tui/tui-data.h (struct tui_data_window)
6479 <delete_data_content_windows>: New method.
6480
c223a729
TT
64812019-07-17 Tom Tromey <tom@tromey.com>
6482
6483 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6484 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6485
50daf268
TT
64862019-07-17 Tom Tromey <tom@tromey.com>
6487
6488 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6489 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6490 from tui_display_all_data.
6491 * tui/tui-win.c
6492 (tui_data_window::do_make_visible_with_new_height): Update.
6493 * tui/tui-regs.c (tui_show_registers): Update.
6494 * tui/tui-layout.c (tui_set_layout): Update.
6495 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6496 method.
6497
df5f8cab
TT
64982019-07-17 Tom Tromey <tom@tromey.com>
6499
6500 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6501 * tui/tui-windata.c (tui_display_data_from): Remove.
6502 (tui_data_window::refresh_all): Update.
6503
80cb6c27
TT
65042019-07-17 Tom Tromey <tom@tromey.com>
6505
6506 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6507 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6508 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6509 tui_display_registers_from_line.
6510 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6511 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6512 "force_display" parameter.
6513
baff0c28
TT
65142019-07-17 Tom Tromey <tom@tromey.com>
6515
6516 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6517 declare.
6518 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6519 Rename from tui_first_reg_element_no_inline.
6520 (tui_display_reg_element_at_line)
6521 (tui_display_registers_from_line): Update.
6522 * tui/tui-data.h (struct tui_data_window)
6523 <first_reg_element_no_inline>: New method.
6524
3b23c5f2
TT
65252019-07-17 Tom Tromey <tom@tromey.com>
6526
6527 * tui/tui-windata.c (tui_display_data_from)
6528 (tui_data_window::do_scroll_vertical): Update.
6529 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6530 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6531 Rename from tui_line_from_reg_element_no.
6532 (tui_display_registers_from_line): Update.
6533 * tui/tui-data.h (struct tui_data_window)
6534 <line_from_reg_element_no>: New method.
6535
0b5ec218
TT
65362019-07-17 Tom Tromey <tom@tromey.com>
6537
6538 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6539 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6540 tui_last_regs_line_no.
6541 (tui_display_reg_element_at_line)
6542 (tui_display_registers_from_line): Update.
6543 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6544 method.
6545
0807ab7b
TT
65462019-07-17 Tom Tromey <tom@tromey.com>
6547
6548 PR tui/24722:
6549 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6550 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6551 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6552 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6553 (tui_update_breakpoint_info): Likewise.
6554 * tui/tui-hooks.c (tui_event_create_breakpoint)
6555 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6556 Update.
6557
9ad7fdef
TT
65582019-07-17 Tom Tromey <tom@tromey.com>
6559
6560 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6561
5813316f
TT
65622019-07-17 Tom Tromey <tom@tromey.com>
6563
6564 * tui/tui-winsource.c (tui_update_source_window_as_is)
6565 (tui_update_source_windows_with_addr): Update.
6566 * tui/tui-source.h (tui_set_source_content)
6567 (tui_show_symtab_source): Add "win_info" parameter.
6568 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6569 parameter.
6570 (tui_show_symtab_source): Likewise.
6571
00e264e7
TT
65722019-07-17 Tom Tromey <tom@tromey.com>
6573
6574 * tui/tui-wingeneral.c
6575 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6576
06210ce4
TT
65772019-07-17 Tom Tromey <tom@tromey.com>
6578
6579 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6580 (struct tui_cmd_window) <can_scroll>: New method.
6581 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6582 method.
6583
381befee
TT
65842019-07-17 Tom Tromey <tromey@adacore.com>
6585
6586 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6587 do_field_signed>: Rename. Change type of "value".
6588 * ui-out.c (ui_out::field_signed): Rename from field_int.
6589 Change type of "value".
6590 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6591 type of "value".
6592 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6593 do_field_int. Change type of "value".
6594 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6595 do_field_int. Change type of "value".
6596 * tracepoint.c (trace_status_mi, tfind_1)
6597 (print_one_static_tracepoint_marker): Update.
6598 * thread.c (print_thread_info_1, print_selected_thread_frame):
6599 Update.
6600 * stack.c (print_frame, print_frame_info): Update.
6601 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6602 Update.
6603 * source.c (print_source_lines_base): Update.
6604 * skip.c (info_skip_command): Update.
6605 * record-btrace.c (btrace_ui_out_decode_error)
6606 (btrace_call_history_src_line): Update.
6607 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6608 Update.
6609 * progspace.c (print_program_space): Update.
6610 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6611 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6612 do_field_int. Change type of "value".
6613 * mi/mi-out.c (mi_ui_out::do_table_begin)
6614 (mi_ui_out::do_table_header): Update.
6615 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6616 type of "value".
6617 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6618 (mi_cmd_data_list_changed_registers, output_register)
6619 (mi_cmd_data_read_memory, mi_load_progress)
6620 (mi_cmd_trace_frame_collected): Update.
6621 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6622 Update.
6623 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6624 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6625 (mi_cmd_var_list_children, varobj_update_one): Update.
6626 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6627 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6628 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6629 * inferior.c (print_inferior): Update.
6630 * gdb_bfd.c (print_one_bfd): Update.
6631 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6632 Update.
6633 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6634 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6635 do_field_int. Change type of "value".
6636 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6637 do_field_int. Change type of "value".
6638 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6639 (print_one_breakpoint_location, print_it_catch_fork)
6640 (print_one_catch_fork, print_it_catch_vfork)
6641 (print_one_catch_vfork, print_it_catch_solib)
6642 (print_it_catch_exec, print_it_ranged_breakpoint)
6643 (print_mention_watchpoint, print_mention_masked_watchpoint)
6644 (bkpt_print_it, update_static_tracepoint): Update.
6645 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6646 * break-catch-syscall.c (print_it_catch_syscall): Update.
6647 * ada-tasks.c (print_ada_task_info): Update.
6648 * ada-lang.c (print_it_exception, print_mention_exception):
6649 Update.
6650
6b78c3f8
AB
66512019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6652
6653 PR breakpoints/24541
6654 * gdbarch.c: Regenerate.
6655 * gdbarch.h: Regenerate.
6656 * gdbarch.sh: Adjust return type and parameter types for
6657 'stap_adjust_register'.
6658 (i386_stap_adjust_register): Adjust signature and return new
6659 register name.
6660 * stap-probe.c (stap_parse_register_operand): Adjust use of
6661 'gdbarch_stap_adjust_register'.
6662
d72a9b85
TT
66632019-07-17 Tom Tromey <tromey@adacore.com>
6664
6665 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6666 declare VEC.
6667 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6668 std::vector.
6669 (struct s390_process_info): Add initializers.
6670 (s390_add_process): Use new.
6671 (s390_linux_nat_target::low_forget_process): Use delete.
6672 (s390_linux_nat_target::low_new_fork)
6673 (s390_linux_nat_target::stopped_by_watchpoint)
6674 (s390_linux_nat_target::low_prepare_to_resume)
6675 (s390_linux_nat_target::insert_watchpoint)
6676 (s390_linux_nat_target::insert_hw_breakpoint)
6677 (s390_linux_nat_target::remove_watchpoint)
6678 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6679
206e6c58
JB
66802019-07-16 John Baldwin <jhb@FreeBSD.org>
6681
6682 * aarch64-fbsd-nat.c: Include regcache.h.
6683 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6684 argument.
6685 (aarch64_fbsd_nat_target::fetch_registers)
6686 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6687 variable.
6688 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6689
cbde90f2
JB
66902019-07-16 John Baldwin <jhb@FreeBSD.org>
6691
6692 * fbsd-nat.c: Include gdbarch.h.
6693
07128006
TT
66942019-07-15 Tom Tromey <tromey@adacore.com>
6695
6696 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6697
1f77b012
TT
66982019-07-15 Tom Tromey <tromey@adacore.com>
6699
6700 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6701 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6702 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6703 * cli-out.c (cli_ui_out::do_field_int): New method.
6704 * ui-out.c (ui_out::field_unsigned): New method.
6705 * symfile.c (generic_load): Use field_unsigned.
6706 (print_transfer_performance): Likewise.
6707 * record-btrace.c (ui_out_field_uint): Remove.
6708 (btrace_call_history_insn_range, btrace_call_history): Use
6709 field_unsigned.
6710 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6711 field_unsigned.
6712 * ui-out.h (class ui_out) <field_unsigned>: New method.
6713 <do_field_unsigned>: Likewise.
6714
33eca680
TT
67152019-07-15 Tom Tromey <tromey@adacore.com>
6716
6717 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6718 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6719 * target.c (flash_erase_command): Use field_string.
6720 * infrun.c (print_signal_received_reason): Use field_string.
6721 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6722 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6723 field_string.
6724 * ada-tasks.c (print_ada_task_info): Use field_string.
6725
ca8d69be
TT
67262019-07-15 Tom Tromey <tromey@adacore.com>
6727
6728 * target.c (flash_erase_command): Use field_core_addr.
6729 * symfile.c (generic_load): Use field_core_addr.
6730 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6731 Use field_core_addr.
6732 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6733 field_core_addr.
6734
0d4e84ed
AB
67352019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6736
6737 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6738 value if its desired type is smaller than a CORE_ADDR and signed.
6739
9a49df9d
AB
67402019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6741
6742 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6743 of changes to field names, and use new is_reference field to
6744 decide if a property is a reference or not.
6745 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6746 field.
6747 (struct dwarf2_property_baton): Update header comment, rename
6748 'referenced_type' to 'property_type' and update comments.
6749 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6750 default property type, store in property baton, update to take
6751 accound of renamed field.
6752 (read_func_scope): Update call to attr_to_dynamic_prop.
6753 (read_array_type): Likewise.
6754 (dwarf2_per_cu_addr_sized_int_type): New function.
6755 (read_subrange_index_type): Move type finding code to
6756 dwarf2_per_cu_addr_sized_int_type.
6757 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6758 (dwarf2_per_cu_addr_type): New function.
6759 (set_die_type): Update calls to attr_to_dynamic_prop.
6760
b86352cf
AB
67612019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6762
6763 * dwarf2read.c (read_subrange_index_type): New function.
6764 (read_subrange_type): Move code into new function and call it.
6765 * gdbtypes.c (create_range_type): Add some asserts.
6766
603490bf
AB
67672019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6768
6769 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6770 update return statements.
6771 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6772 declaration, and update comment to match.
6773 * gdbtypes.c (resolve_dynamic_array): Update call to
6774 dwarf2_evaluate_property to match new return type.
6775
592f9d27
AB
67762019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6777
6778 * valarith.c (value_subscripted_rvalue): Change lowerbound
6779 parameter type from int to LONGEST.
6780 * value.h (value_subscripted_rvalue): Likewise in declaration.
6781
60cfcb20
AB
67822019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6783
6784 * cli/cli-utils.c (info_print_command_completer): New function.
6785 * cli/cli-utils.h: Add 'completer.h' include, and forward
6786 declaration for 'struct cmd_list_element'.
6787 (info_print_command_completer): Declare.
6788 * stack.c (_initialize_stack): Add completer for 'info locals' and
6789 'info args'.
6790 * symtab.c (_initialize_symtab): Add completer for 'info
6791 variables' and 'info functions'.
6792 * NEWS: Mention completion for additional info commands.
6793
b16507e0
AB
67942019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6795
6796 * cli/cli-utils.c (extract_info_print_args): Delete.
6797 (extract_arg_maybe_quoted): Delete.
6798 (info_print_options_defs): New variable.
6799 (make_info_print_options_def_group): New function.
6800 (extract_info_print_options): Define new function.
6801 * cli/cli-utils.h (extract_info_print_args): Delete.
6802 (struct info_print_options): New structure.
6803 (extract_info_print_options): Declare new function.
6804 * stack.c (info_locals_command): Update to use new
6805 extract_info_print_options, also add a header comment.
6806 (info_args_command): Likewise.
6807 * symtab.c (info_variables_command): Likewise.
6808 (info_functions_command): Likewise.
6809
021d8588
AB
68102019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6811
6812 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6813 to extract string arguments.
6814 * common/common-utils.c (extract_string_maybe_quoted): New function.
6815 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6816
b777eb6d
TT
68172019-07-11 Tom Tromey <tromey@adacore.com>
6818
6819 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6820 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6821 * top.h (gdbinit): Don't declare.
6822 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6823 into...
6824 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6825 * top.c (gdb_init): Don't call init_cli_cmds.
6826 (gdbinit): Remove.
6827 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6828
72ee03ff
TT
68292019-07-11 Tom Tromey <tromey@adacore.com>
6830
6831 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6832 after it has been moved.
6833
00db9531
SM
68342019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6835
6836 * valops.c (value_must_coerce_to_target): Change return type to
6837 bool.
6838 * value.h (value_must_coerce_to_target): Likewise.
6839
f2478a7e
SM
68402019-07-10 Simon Marchi <simon.marchi@efficios.com>
6841
6842 * breakpoint.c (is_hardware_watchpoint): Remove
6843 forward-declaration.
6844 (is_masked_watchpoint): Change return type to bool.
6845 (is_tracepoint): Likewise.
6846 (is_breakpoint): Likewise.
6847 (is_hardware_watchpoint): Likewise.
6848 (is_watchpoint): Likewise.
6849 (is_no_memory_software_watchpoint): Likewise.
6850 (is_catchpoint): Likewise.
6851 (breakpoint_1): Make FILTER parameter's return type bool.
6852 is_masked_watchpoint): Change return type to bool.
6853 (save_breakpoints): Make FILTER parameter's return type bool.
6854 * breakpoint.h (is_breakpoint): Change return type to bool.
6855 (is_watchpoint): Likewise.
6856 (is_catchpoint): Likewise.
6857 (is_tracepoint): Likewise.
6858
0d12e84c
TT
68592019-07-10 Tom Tromey <tom@tromey.com>
6860
6861 * defs.h: Don't include gdbarch.h.
6862 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6863 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6864 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6865 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6866 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6867 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6868 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6869 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6870 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6871 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6872 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6873 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6874 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6875 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6876 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6877 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6878 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6879 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6880 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6881 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6882 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6883 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6884 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6885 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6886 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6887 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6888 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6889
f06f1252
TT
68902019-07-10 Tom Tromey <tromey@adacore.com>
6891
6892 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6893 * breakpoint.c (init_ada_exception_breakpoint): Register as
6894 bp_catchpoint.
6895 (print_one_breakpoint_location, print_one_breakpoint): Use
6896 is_ada_exception_catchpoint.
6897 * ada-lang.c (class ada_catchpoint_location): Pass
6898 bp_loc_software_breakpoint to bp_location constructor.
6899 (is_ada_exception_catchpoint): New function.
6900
7a5d944b
TT
69012019-07-10 Tom Tromey <tromey@adacore.com>
6902
6903 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6904 VEC.
6905 (struct arm_exidx_entry): New method operator<.
6906 (struct arm_exidx_data) <section_maps>: Change type.
6907 (arm_exidx_data_free): Remove.
6908 (arm_exidx_data_key): Change type. Move lower.
6909 (arm_exidx_new_objfile): Update.
6910 (arm_compare_exidx_entries): Remove.
6911 (arm_find_exidx_entry, _initialize_arm_tdep)
6912
48c66e1d
TT
69132019-07-10 Tom Tromey <tromey@adacore.com>
6914
6915 * solib-spu.c (ocl_program_data_key): Change type.
6916 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6917 Update.
6918
a269fbf1
TT
69192019-07-10 Tom Tromey <tromey@adacore.com>
6920
6921 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6922 (struct solib_aix_inferior_data) <library_list>: Change type.
6923 (solib_aix_inferior_data_handle): Change type.
6924 (get_solib_aix_inferior_data): Update.
6925 (solib_aix_free_library_list): Remove.
6926 (library_list_start_library): Update.
6927 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6928 return type.
6929 (solib_aix_get_library_list)
6930 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6931 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6932
c294730c
TT
69332019-07-10 Tom Tromey <tromey@adacore.com>
6934
6935 * solib-dsbt.c (struct dsbt_info): Add initializers.
6936 (solib_dsbt_pspace_data): Change type.
6937 (dsbt_pspace_data_cleanup): Remove.
6938 (get_dsbt_info, _initialize_dsbt_solib): Update.
6939
9d52077d
TT
69402019-07-10 Tom Tromey <tromey@adacore.com>
6941
6942 * spu-tdep.c (spu_overlay_data): Change type.
6943 (spu_get_overlay_table, spu_overlay_new_objfile)
6944 (_initialize_spu_tdep): Update.
6945
22a20dca
TT
69462019-07-10 Tom Tromey <tromey@adacore.com>
6947
6948 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6949 destructor.
6950 (dbx_objfile_data_key): Change type and declare later.
6951 (DBX_SYMFILE_INFO): Rewrite.
6952 * dbxread.c (dbx_objfile_data_key): Change type.
6953 (dbx_symfile_init): Update.
6954 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6955 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6956 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6957
cb60f420
TT
69582019-07-10 Tom Tromey <tromey@adacore.com>
6959
6960 * jit.c (jit_program_space_key): Change type. Move lower.
6961 (get_jit_program_space_data): Update.
6962 (jit_program_space_data_cleanup): Remove.
6963 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6964 Update.
6965 (struct jit_program_space_data): Add initializers.
6966
51df2ae3
TT
69672019-07-10 Tom Tromey <tromey@adacore.com>
6968
6969 * solib-darwin.c (struct darwin_info): Add initializers.
6970 (solib_darwin_pspace_data): Change type.
6971 (darwin_pspace_data_cleanup): Remove.
6972 (get_darwin_info, _initialize_darwin_solib): Update.
6973
18101a35
TT
69742019-07-10 Tom Tromey <tromey@adacore.com>
6975
6976 * remote-sim.c (struct sim_inferior_data): Add initializers,
6977 constructor, and destructor.
6978 (sim_inferior_data_key): Change type. Move lower.
6979 (check_for_duplicate_sim_descriptor): Update.
6980 (get_sim_inferior_data): Use new. Update.
6981 (~sim_inferior_data_cleanup): Rename from
6982 sim_inferior_data_cleanup. Simplify.
6983 (gdbsim_close_inferior, simulator_command)
6984 (sim_command_completer, _initialize_remote_sim): Update.
6985 (next_pid, INITIAL_PID): Move earlier.
6986
05b08ac1
TT
69872019-07-10 Tom Tromey <tromey@adacore.com>
6988
6989 * python/python-internal.h (create_thread_object): Return
6990 gdbpy_ref.
6991 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6992 * python/py-inferior.c (struct threadlist_entry): Add
6993 constructor.
6994 <thread_obj>: Now a gdbpy_ref.
6995 (thread_to_thread_object): Update.
6996 (add_thread_object): Use new.
6997 (delete_thread_object): Use delete.
6998 (infpy_threads): Update.
6999 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7000 GIL.
7001
32372d80
TT
70022019-07-10 Tom Tromey <tromey@adacore.com>
7003
7004 * valops.c (value_cast): Specialize error message for Ada.
7005
5c458ae8
SM
70062019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7007
7008 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7009
4c462cb0
SM
70102019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7011
7012 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7013 bpstat_should_step): Return bool, adjust comments.
7014 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7015 bpstat_should_step): Likewise.
7016
89abbcc2
AH
70172019-07-10 Alan Hayward <alan.hayward@arm.com>
7018
7019 * features/Makefile: Use feature target descriptions for Arm.
7020 * features/arm/arm-core.c: Generate new file.
7021 * features/arm/arm-fpa.c: Likewise.
7022 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7023 * features/arm/arm-m-profile.c: Likewise.
7024 * features/arm/arm-vfpv2.c: Likewise.
7025 * features/arm/arm-vfpv3.c: Likewise.
7026 * features/arm/xscale-iwmmxt.c: Likewise.
7027 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7028
166a82be
AH
70292019-07-10 Alan Hayward <alan.hayward@arm.com>
7030
7031 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7032 ptrace earlier.
7033
9fb4c7e9
AH
70342019-07-10 Alan Hayward <alan.hayward@arm.com>
7035
7036 * features/aarch64-pauth.c: Regenerate.
7037
e2d0f980
SM
70382019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7039
7040 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7041 bool.
7042 (bpstat_what): Use false instead of 0.
7043
a38118e5
PA
70442019-07-09 Pedro Alves <palves@redhat.com>
7045
7046 * break-catch-throw.c (is_exception_catchpoint): New.
7047 * breakpoint.c (print_one_breakpoint_location): New parameter
7048 'raw_loc'. Handle it. Use
7049 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7050 looking at the breakpoint's type.
7051 (print_one_breakpoint): If handling "maint info breakpoints", also
7052 print locations of exception catchpoints.
7053 * breakpoint.h (is_exception_catchpoint): Declare.
7054
cb1e4e32
PA
70552019-07-09 Pedro Alves <palves@redhat.com>
7056
7057 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7058 "addr" field.
7059 (allocate_location_exception_catchpoint): New.
7060 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7061 (initialize_throw_catchpoint_ops): Install
7062 allocate_location_exception_catchpoint as allocate_location
7063 method.
7064 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7065 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7066 bp_loc_other.
7067 (breakpoint_address_is_meaningful): Delete.
7068 (bl_address_is_meaningful): New.
7069 (breakpoint_locations_match): Adjust comment.
7070 (bp_location_from_bp_type): New, factored out of...
7071 (bp_location::bp_location(breakpoint *)): ... this.
7072 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7073 factored out of...
7074 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7075 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7076 breakpoint_address_is_meaningful.
7077 (bp_locations_compare): Adjust comment.
7078 (update_global_location_list): Use bl_address_is_meaningful
7079 instead of breakpoint_address_is_meaningful.
7080 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7081 explicit.
7082 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7083 * python/py-breakpoint.c (bppy_get_location): No longer check
7084 whether location is null.
7085
b58a68fe
PA
70862019-07-09 Pedro Alves <palves@redhat.com>
7087
7088 PR c++/15468
7089 * breakpoint.c (print_one_breakpoint_location): Remove
7090 single-location assert.
7091
268a13a5
TT
70922019-07-09 Tom Tromey <tom@tromey.com>
7093
7094 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7095 * configure: Rebuild.
7096 * configure.ac: Change common to gdbsupport.
7097 * gdbsupport: Rename from common.
7098 * acinclude.m4: Change common to gdbsupport.
7099 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7100 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7101 gdbsupport.
7102 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7103 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7104 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7105 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7106 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7107 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7108 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7109 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7110 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7111 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7112 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7113 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7114 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7115 coff-pe-read.c, command.h, compile/compile-c-support.c,
7116 compile/compile-c.h, compile/compile-cplus-symbols.c,
7117 compile/compile-cplus-types.c, compile/compile-cplus.h,
7118 compile/compile-loc2c.c, compile/compile.c, completer.c,
7119 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7120 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7121 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7122 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7123 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7124 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7125 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7126 features/aarch64-core.c, features/aarch64-fpu.c,
7127 features/aarch64-pauth.c, features/aarch64-sve.c,
7128 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7129 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7130 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7131 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7132 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7133 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7134 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7135 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7136 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7137 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7138 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7139 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7140 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7141 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7142 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7143 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7144 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7145 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7146 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7147 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7148 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7149 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7150 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7151 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7152 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7153 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7154 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7155 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7156 minsyms.c, mips-linux-tdep.c, namespace.h,
7157 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7158 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7159 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7160 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7161 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7162 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7163 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7164 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7165 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7166 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7167 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7168 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7169 procfs.c, producer.c, progspace.h, psymtab.h,
7170 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7171 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7172 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7173 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7174 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7175 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7176 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7177 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7178 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7179 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7180 target-memory.c, target.c, target.h, target/waitstatus.c,
7181 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7182 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7183 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7184 unittests/array-view-selftests.c,
7185 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7186 unittests/common-utils-selftests.c,
7187 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7188 unittests/format_pieces-selftests.c,
7189 unittests/function-view-selftests.c,
7190 unittests/lookup_name_info-selftests.c,
7191 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7192 unittests/mkdir-recursive-selftests.c,
7193 unittests/observable-selftests.c,
7194 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7195 unittests/parse-connection-spec-selftests.c,
7196 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7197 unittests/scoped_fd-selftests.c,
7198 unittests/scoped_mmap-selftests.c,
7199 unittests/scoped_restore-selftests.c,
7200 unittests/string_view-selftests.c, unittests/style-selftests.c,
7201 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7202 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7203 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7204 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7205 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7206 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7207
5b0e2db4
AB
72082019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7209
7210 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7211 bool value.
7212 (decode_digits_ordinary): Set explicit_line field in sal.
7213 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7214 symtab_and_line that was set on an explicit line number in
7215 assembler code. Do always update the recorded symtab and line if
7216 we do skip the prologue.
7217
0ba852ab
AB
72182019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7219
7220 * breakpoint.c (set_breakpoint_location_function): Remove
7221 explicit_loc parameter.
7222 (momentary_breakpoint_from_master): Update call to
7223 set_breakpoint_location_function.
7224 (add_location_to_breakpoint): Likewise.
7225
b3a7d171
AB
72262019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7227
7228 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7229 required features based on default bfd type when no specific bfd
7230 is present.
7231
1f6f6e21
PW
72322019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7233
7234 * NEWS: Mention that GDB printf and eval commands can now print
7235 C-style and Ada-style convenience var strings without
7236 calling the inferior.
7237 * printcmd.c (printf_c_string): Locally print GDB internal var
7238 instead of transiting via the inferior.
7239 (printf_wide_c_string): Likewise.
7240
72412019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7242
5862c886 7243 PR breakpoints/25011
ea142fbf
AH
7244 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7245
0598af48
TT
72462019-07-04 Tom Tromey <tom@tromey.com>
7247
7248 PR tui/24724:
7249 * tui/tui-winsource.c (tui_clear_source_content): Update.
7250 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7251 (tui_update_breakpoint_info): Update.
7252 (tui_set_exec_info_content): Update.
7253 * tui/tui-source.c (tui_set_source_content_nil): Update.
7254 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7255 has_break.
7256 * tui/tui-data.h (enum tui_bp_flag): New.
7257 (tui_bp_flags): New enum flags type.
7258 (struct tui_source_element) <break_mode>: Change type. Rename
7259 from has_break.
7260 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7261 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7262 constants.
7263 * tui/tui-winsource.h: Fix comment.
7264
350fab54
AH
72652019-07-04 Alan Hayward <alan.hayward@arm.com>
7266
7267 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7268 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7269 (store_fpregs_to_thread)
7270 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7271 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7272 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7273 (IWMMXT_REGS_SIZE): Add define.
7274 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7275 (fetch_vfp_regs, store_vfp_regs)
7276 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7277 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7278
f0452268
AH
72792019-07-04 Alan Hayward <alan.hayward@arm.com>
7280
7281 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7282 defines.
7283 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7284 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7285 (ARM_INT_REGISTER_SIZE): ...to this.
7286 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7287 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7288 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7289 (arm_linux_collect_gregset, supply_nwfpe_register)
7290 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7291 defines.
7292 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7293 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7294 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7295 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7296 (arm_return_in_memory, arm_store_return_value)
7297 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7298 (arm_record_ld_st_multiple): Likewise.
7299 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7300 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7301
e935475c
AH
73022019-07-04 Alan Hayward <alan.hayward@arm.com>
7303
7304 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7305 AARCH64_DISPLACED_MODIFIED_INSNS.
7306 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7307 (aarch64_displaced_step_copy_insn): Likewise.
7308 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7309 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7310 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7311 ARM_DISPLACED_MODIFIED_INSNS.
7312 * arm-tdep.c (arm_gdbarch_init): Likewise.
7313 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7314 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7315 (struct arm_displaced_step_closure): Use
7316 ARM_DISPLACED_MODIFIED_INSNS.
7317
df0bb381
AH
73182019-07-04 Alan Hayward <alan.hayward@arm.com>
7319
7320 * features/Makefile: Remove unused xml files.
7321 * features/aarch64.xml: Remove.
7322 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7323 * features/i386/amd64-avx-avx512.xml: Remove.
7324 * features/i386/amd64-avx-linux.xml: Remove.
7325 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7326 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7327 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7328 * features/i386/amd64-avx-mpx.xml: Remove.
7329 * features/i386/amd64-avx.xml: Remove.
7330 * features/i386/amd64-linux.xml: Remove.
7331 * features/i386/amd64-mpx-linux.xml: Remove.
7332 * features/i386/amd64-mpx.xml: Remove.
7333 * features/i386/amd64.xml: Remove.
7334 * features/i386/i386-avx-avx512-linux.xml: Remove.
7335 * features/i386/i386-avx-avx512.xml: Remove.
7336 * features/i386/i386-avx-linux.xml: Remove.
7337 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7338 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7339 * features/i386/i386-avx-mpx-linux.xml: Remove.
7340 * features/i386/i386-avx-mpx.xml: Remove.
7341 * features/i386/i386-avx.xml: Remove.
7342 * features/i386/i386-linux.xml: Remove.
7343 * features/i386/i386-mmx-linux.xml: Remove.
7344 * features/i386/i386-mmx.xml: Remove.
7345 * features/i386/i386-mpx-linux.xml: Remove.
7346 * features/i386/i386-mpx.xml: Remove.
7347 * features/i386/i386.xml: Remove.
7348 * features/i386/x32-avx-avx512-linux.xml: Remove.
7349 * features/i386/x32-avx-linux.xml: Remove.
7350 * features/i386/x32-linux.xml: Remove.
7351
edd6266a
AH
73522019-07-04 Alan Hayward <alan.hayward@arm.com>
7353
7354 * regformats/aarch64.dat: Remove.
7355 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7356 * regformats/i386/amd64-avx-linux.dat: Remove.
7357 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7358 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7359 * regformats/i386/amd64-linux.dat: Remove.
7360 * regformats/i386/amd64-mpx-linux.dat: Remove.
7361 * regformats/i386/amd64.dat: Remove.
7362 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7363 * regformats/i386/i386-avx-linux.dat: Remove.
7364 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7365 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7366 * regformats/i386/i386-linux.dat: Remove.
7367 * regformats/i386/i386-mmx-linux.dat: Remove.
7368 * regformats/i386/i386-mpx-linux.dat: Remove.
7369 * regformats/i386/i386.dat: Remove.
7370 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7371 * regformats/i386/x32-avx-linux.dat: Remove.
7372 * regformats/i386/x32-linux.dat: Remove.
7373
2b40fda7
AH
73742019-07-04 Alan Hayward <alan.hayward@arm.com>
7375
7376 * aarch64-tdep.c: Remove xml self tests.
7377 * amd64-linux-tdep.c: Likewise.
7378 * amd64-tdep.c: Likewise.
7379 * i386-linux-tdep.c: Likewise.
7380 * i386-tdep.c: Likewise.
7381
5f4ba3e7
PA
73822019-07-03 Pedro Alves <palves@redhat.com>
7383
7384 PR cli/24732
7385 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7386 (pipe_cmd_option_defs): New.
7387 (make_pipe_cmd_options_def_group): New.
7388 (pipe_command): Use gdb::option::process_options.
7389 (pipe_command_completer): New function.
7390 (_initialize_cli_cmds): Install completer for "pipe" command.
7391
3d9be6f5
PA
73922019-07-03 Pedro Alves <palves@redhat.com>
7393
7394 * cli/cli-option.c (union option_value) <string>: New field.
7395 (struct option_def_and_value): Add ctor, move ctor, dtor and
7396 use DISABLE_COPY_AND_ASSIGN.
7397 (option_def_and_value::clear_value): New.
7398 (parse_option, save_option_value_in_ctx, get_val_type_str)
7399 (add_setshow_cmds_for_options): Handle var_string.
7400 * cli-option.h (union option_def::var_address) <string>: New
7401 field.
7402 (struct string_option_def): New.
7403 * maint-test-options.c (struct test_options_opts): Add default
7404 ctor and use DISABLE_COPY_AND_ASSIGN.
7405 <string_opt>: New field.
7406 (test_options_opts::~test_options_opts): New.
7407 (test_options_opts::dump): Also dump "-string".
7408 (test_options_option_defs): Install "string.
7409
41fc454c
PA
74102019-07-03 Pedro Alves <palves@redhat.com>
7411
7412 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7413 option_value with a null enumeration.
7414 (complete_options): Save the option values in the context.
7415 (save_option_value_in_ctx): New, factored out from ...
7416 (process_options): ... here.
7417 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7418 of the function.
7419 * maint-test-options.c (test_options_opts::dump): New, factored
7420 out from ...
7421 (maintenance_test_options_command_mode): ... here.
7422 (maintenance_test_options_command_completion_result): Delete.
7423 (maintenance_test_options_command_completion_text): Update
7424 comment.
7425 (maintenance_show_test_options_completion_result): Change
7426 prototype. Just print
7427 maintenance_test_options_command_completion_text.
7428 (save_completion_result): New.
7429 (maintenance_test_options_completer_mode): Pass options context to
7430 complete_options, and then save a dump.
7431 (_initialize_maint_test_options): Use add_cmd to install "maint
7432 show test-options-completion-result".
7433
fdbc9870
PA
74342019-07-03 Pedro Alves <palves@redhat.com>
7435
7436 * NEWS (New commands): Mention "with" and "maint with".
7437 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7438 (with_command, with_command_completer): New.
7439 (pipe_command): Adjust to new repeat_previous
7440 interface.
7441 (_initialize_cli_cmds): Install the "with" command and its "w"
7442 alias.
7443 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7444 declarations.
7445 * cli/cli-setshow.c (parse_cli_var_uinteger)
7446 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7447 argument strings for all var_types.
7448 (get_setshow_command_value_string): New, factored out from ...
7449 (do_show_command): ... this.
7450 * cli/cli-setshow.h: Include <string>.
7451 (get_setshow_command_value_string): Declare.
7452 * command.h (repeat_previous): Now returns const char *. Adjust
7453 comment.
7454 * maint.c: Include "cli/cli-cmds.h".
7455 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7456 (_initialize_maint_cmds): Register the "maintenance with" command.
7457 * top.c (repeat_previous): Move bits from pipe_command here:
7458 Return the saved command line, if any; error out if there's no
7459 command to relaunch.
7460
c6ac8931
PA
74612019-07-03 Pedro Alves <palves@redhat.com>
7462
7463 * NEWS (New commands): Mention "maint set/show test-settings"
7464 instead of "maint test-settings".
7465 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7466 (maintenance_test_settings_set_list): Rename to ...
7467 (maintenance_set_test_settings_list): ... this.
7468 (maintenance_test_settings_show_list): Rename to ...
7469 (maintenance_show_test_settings_list): ... this.
7470 (maintenance_test_settings_cmd): Delete.
7471 (maintenance_test_settings_set_cmd): ...
7472 (maintenance_set_test_settings_cmd): ... this.
7473 (maintenance_test_settings_show_cmd): ...
7474 (maintenance_show_test_settings_cmd): ... this.
7475 (maintenance_test_settings_show_value_cmd):
7476 (maintenance_show_test_settings_value_cmd): ... this.
7477 (_initialize_maint_test_settings): No longer install the "maint
7478 test-settings" prefix command. Rename "maint test-settings set"
7479 to "maint set test-settings", and "maint test-settings show" to
7480 "maint show test-settings". Adjust all subcommands.
7481
d1fcf2fd
PA
74822019-07-03 Pedro Alves <palves@redhat.com>
7483
7484 * maint-test-settings.c: Fix file's intro comment. Replace all
7485 references to "test-options" with references to "test-settings",
7486 in comments.
7487
970f9d09
PA
74882019-07-03 Pedro Alves <palves@redhat.com>
7489
7490 * maint-test-settings.c (maintenance_test_settings_xxx)
7491 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7492 New.
7493 (maintenance_test_settings_enums): Use them.
7494 (maintenance_test_settings_enum): Default to
7495 maintenance_test_settings_xxx.
7496 (_initialize_maint_test_settings): Initialize
7497 MAINTENANCE_TEST_SETTINGS_FILENAME.
7498
f3869b1a
SM
74992019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7500
7501 * breakpoint.h (remove_breakpoints_inf): Change return type to
7502 void, move function documentation here.
7503 * breakpoint.c (remove_breakpoints_inf): Change return type to
7504 void, move function documentation to header.
7505
54d66006
PA
75062019-07-02 Pedro Alves <palves@redhat.com>
7507
7508 * NEWS (Completion improvements): Mention "info threads".
7509 * thread.c (struct info_threads_opts, info_threads_option_defs)
7510 (make_info_threads_options_def_group): New.
7511 (info_threads_command): Use gdb::option::process_options.
7512 (info_threads_command_completer): New.
7513 (_initialize_thread): Use gdb::option::build_help to build the
7514 help text for "info threads".
7515
854f6088
SM
75162019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7517
7518 * defs.h (generic_load): Move from here...
7519 * symfile.h (generic_load): ... to here. Rename name parameter
7520 to args.
7521 * symfile.c (generic_load): Add comment.
7522
54ee4252
TT
75232019-07-01 Tom Tromey <tromey@adacore.com>
7524
7525 * dwarf2read.c
7526 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7527 declaration of without_params. Fix formatting.
7528
65392b3e
TT
75292019-07-01 Tom Tromey <tromey@adacore.com>
7530
7531 * ada-exp.y (find_primitive_type): Update.
7532 * ada-lang.h (ada_lookup_symbol): Update.
7533 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7534 parameter.
7535 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7536
7d7571f0
SDJ
75372019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7538
7539 PR breakpoints/24541
7540 * gdbarch.c: Regenerate.
7541 * gdbarch.h: Regenerate.
7542 * gdbarch.sh: Add 'stap_adjust_register'.
7543 * i386-tdep.c: Include '<unordered_set>'.
7544 (i386_stap_adjust_register): New function.
7545 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7546 * stap-probe.c (stap_parse_register_operand): Call
7547 'gdbarch_stap_adjust_register'.
7548
5af5392a
SDJ
75492019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7550
7551 PR python/24742
7552 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7553 * python/python.c (do_start_initialization): Use 'xmalloc'
7554 instead of 'PyMem_Malloc'.
7555
10d06d82
TT
75562019-06-28 Tom Tromey <tromey@adacore.com>
7557
7558 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7559 for Ada.
7560
1b7f24cd
TT
75612019-06-27 Tom Tromey <tromey@adacore.com>
7562
7563 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7564 objfile_key.
7565 (arm_find_mapping_symbol, arm_record_special_symbol)
7566 (_initialize_arm_tdep): Update.
7567 (arm_objfile_data_free): Remove.
7568
3d507ff2
TT
75692019-06-27 Tom Tromey <tromey@adacore.com>
7570
7571 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7572 to cp_print_static_field.
7573
762c164d
TT
75742019-06-26 Tom Tromey <tromey@adacore.com>
7575
7576 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7577 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7578 declare.
7579
aa2f9bcf
AH
75802019-06-26 Alan Hayward <alan.hayward@arm.com>
7581
7582 * features/aarch64-core.c (create_feature_aarch64_core):
7583 Regenerate.
7584 * features/aarch64-core.xml: Add cpsr flags.
7585
3426ae57
AH
75862019-06-26 Alan Hayward <alan.hayward@arm.com>
7587
7588 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7589 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7590
4838e44c
SM
75912019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7592
7593 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7594 field.
7595 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7596 use.
7597 (arm_record_special_symbol): Don't insert new symbol in sorted
7598 position, push it at the end.
7599
54cc7474
SM
76002019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7601
7602 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7603 (arm_mapping_symbol_s): Remove.
7604 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7605 (arm_mapping_symbol_vec): New typedef.
7606 (struct arm_per_objfile): Add constructor.
7607 <section_maps>: Change type to
7608 std::unique_ptr<arm_mapping_symbol_vec[]>.
7609 (arm_compare_mapping_symbols): Remove.
7610 (arm_find_mapping_symbol): Adjust to section_maps type change.
7611 (arm_objfile_data_free): Call delete on arm_per_objfile.
7612 (arm_record_special_symbol): Adjust to section_maps type change.
7613 Allocate arm_per_objfile with new.
7614
b65b566c
PW
76152019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7616
7617 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7618 with the command prefix.
7619
c2fc64f5
TT
76202019-06-25 Tom Tromey <tom@tromey.com>
7621
7622 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7623 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7624
fb54fa76
TT
76252019-06-25 Tom Tromey <tom@tromey.com>
7626
7627 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7628 type.
7629 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7630 protected.
7631
f7952c57
TT
76322019-06-25 Tom Tromey <tom@tromey.com>
7633
7634 * tui/tui-winsource.c
7635 (tui_source_window_base::set_is_exec_point_at): Add check against
7636 LOA_ADDRESS.
7637
17568d78
TT
76382019-06-25 Tom Tromey <tom@tromey.com>
7639
7640 * tui/tui-source.c (tui_set_source_content): Don't check before
7641 xfree.
7642 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7643
53e7cdba
TT
76442019-06-25 Tom Tromey <tom@tromey.com>
7645
7646 * tui/tui-winsource.h (tui_update_source_window_as_is)
7647 (tui_alloc_source_buffer, tui_line_is_displayed)
7648 (tui_addr_is_displayed): Change type of win_info.
7649 * tui/tui-winsource.c (tui_update_source_window_as_is)
7650 (tui_clear_source_content, tui_show_source_line)
7651 (tui_show_source_content, tui_source_window_base::refill)
7652 (tui_source_window_base::set_is_exec_point_at)
7653 (tui_source_window_base::set_is_exec_point_at)
7654 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7655 (tui_alloc_source_buffer, tui_line_is_displayed)
7656 (tui_addr_is_displayed): Change type of win_info. Update.
7657 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7658 (tui_source_window_base::do_make_visible_with_new_height):
7659 Update.
7660 * tui/tui-source.c (tui_set_source_content)
7661 (tui_set_source_content_nil)
7662 (tui_source_window::do_scroll_vertical): Update.
7663 * tui/tui-layout.c (show_layout): Update.
7664 * tui/tui-disasm.c (tui_set_disassem_content)
7665 (tui_disasm_window::do_scroll_vertical): Update.
7666 * tui/tui-data.h (tui_win_content): Remove.
7667 (struct tui_gen_win_info) <content, content_size>: Remove.
7668 (struct tui_source_element): Add initializers and destructor.
7669 (union tui_which_element, struct tui_win_element): Remove.
7670 (struct tui_source_window_base) <content>: New field.
7671 (struct tui_data_window): Remove destructor.
7672 (tui_alloc_content, tui_free_win_content)
7673 (tui_free_all_source_wins_content): Don't declare.
7674 * tui/tui-data.c (tui_initialize_static_data): Update.
7675 (init_content_element, tui_alloc_content): Remove.
7676 (~tui_gen_win_info): Update.
7677 (~tui_data_window, tui_free_all_source_wins_content)
7678 (tui_free_win_content, free_content, free_content_elements):
7679 Remove.
7680
7908abbf
TT
76812019-06-25 Tom Tromey <tom@tromey.com>
7682
7683 * tui/tui-winsource.h (tui_clear_source_content)
7684 (tui_erase_source_content, tui_show_source_content): Change type
7685 of win_info.
7686 * tui/tui-winsource.c (tui_clear_source_content)
7687 (tui_erase_source_content, tui_show_source_content): Change type
7688 of win_info.
7689 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7690 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7691 win_info.
7692 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7693 win_info.
7694 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7695
02c28df0
TT
76962019-06-25 Tom Tromey <tom@tromey.com>
7697
7698 * tui/tui-winsource.c (tui_clear_source_content)
7699 (tui_source_window_base::set_is_exec_point_at): Update.
7700 * tui/tui-source.c (tui_set_source_content_nil): Update.
7701 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7702 a bool.
7703 * tui/tui-data.c (init_content_element): Update.
7704
6658b1bf
TT
77052019-06-25 Tom Tromey <tom@tromey.com>
7706
7707 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7708 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7709 * tui/tui-layout.c (init_and_make_win): Update.
7710 * tui/tui.h (enum tui_win_type): Update.
7711 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7712 tui_win_is_auxillary.
7713 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7714 tui_win_is_auxillary.
7715
21e1c91e
TT
77162019-06-25 Tom Tromey <tom@tromey.com>
7717
7718 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7719 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7720 (tui_delete_data_content_windows, tui_display_all_data)
7721 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7722 Update.
7723 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7724 * tui/tui-regs.c (tui_last_regs_line_no)
7725 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7726 (tui_show_registers): Update.
7727 (tui_show_register_group): Return void. Update.
7728 (tui_display_registers_from, tui_display_reg_element_at_line)
7729 (tui_display_registers_from_line, tui_check_register_values):
7730 Update.
7731 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7732 member.
7733 (struct tui_data_window) <regs_content>: Now a std::vector.
7734 <regs_content_count>: Remove.
7735 (tui_add_content_elements, tui_free_data_content): Don't declare.
7736 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7737 (init_content_element): Remove DATA_WIN case. Add assert.
7738 (tui_add_content_elements): Remove.
7739 (tui_data_window): Update.
7740 (tui_free_data_content): Remove.
7741 (free_content_elements): Remove DATA_WIN case.
7742
115ac53b
TT
77432019-06-25 Tom Tromey <tom@tromey.com>
7744
7745 * tui/tui-data.c (tui_data_item_window): Update.
7746 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7747 * tui/tui-windata.c (tui_display_all_data)
7748 (tui_display_data_from_line): Update.
7749 (tui_check_data_values): Remove.
7750 * tui/tui-regs.c (tui_show_register_group)
7751 (tui_display_reg_element_at_line): Update.
7752 * tui/tui-hooks.c (tui_register_changed)
7753 (tui_refresh_frame_and_register_information): Call
7754 tui_check_register_values.
7755 * tui/tui-data.h (struct tui_data_window) <data_content,
7756 data_content_count, data_type>: Remove.
7757 (enum tui_data_type): Remove.
7758
7759 * tui/tui-data.c (tui_data_window::clear_detail)
7760 (~tui_data_window): Update.
7761
eaf9738b
TT
77622019-06-25 Tom Tromey <tom@tromey.com>
7763
7764 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7765 declare.
7766 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7767 Rename from tui_first_data_item_displayed. Update.
7768 (tui_data_window::refresh_all)
7769 (tui_data_window::do_scroll_vertical): Update.
7770 * tui/tui-data.h (struct tui_data_window)
7771 <first_data_item_displayed>: Declare new method.
7772
31ca4723
TT
77732019-06-25 Tom Tromey <tom@tromey.com>
7774
7775 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7776 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7777 contents...
7778 (tui_initialize_static_data): ...here.
7779
41bcff7f
TT
77802019-06-25 Tom Tromey <tom@tromey.com>
7781
7782 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7783 (tui_display_registers_from, tui_check_register_values): Update.
7784 (tui_display_register): Remove win_info parameter; update.
7785 (tui_get_register): Change type of parameters.
7786 * tui/tui-data.h (struct tui_data_element): Remove.
7787 (union tui_which_element) <data>: Remove.
7788 <data_window>: Change type.
7789 (struct tui_data_item_window): New.
7790 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7791 case. Add assert.
7792 (~tui_data_item_window): New destructor.
7793 (free_content_elements): Remove DATA_ITEM_WIN case.
7794
d2802c33
TT
77952019-06-25 Tom Tromey <tom@tromey.com>
7796
7797 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7798 Remove.
7799
dd835f8b
TT
78002019-06-25 Tom Tromey <tom@tromey.com>
7801
7802 * tui/tui-data.h (struct tui_command_element): Remove.
7803 (union tui_which_element) <command>: Remove.
7804 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7805 assert.
7806 (free_content_elements): Remove CMD_WIN case.
7807
bd7db367
TT
78082019-06-25 Tom Tromey <tom@tromey.com>
7809
7810 * tui/tui-layout.c (tui_set_layout): Update.
7811 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7812 * tui/tui-data.c (layout_def): Update.
7813
3add462f
TT
78142019-06-25 Tom Tromey <tom@tromey.com>
7815
7816 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7817 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7818 (tui_source_window_base::set_new_height): Update.
7819 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7820 Update.
7821 (tui_set_locator_fullname, tui_set_locator_info)
7822 (tui_show_frame_info): Update.
7823 * tui/tui-source.c (tui_set_source_content)
7824 (tui_source_is_displayed): Update.
7825 * tui/tui-layout.c (show_source_disasm_command, show_data)
7826 (show_source_or_disasm_and_command): Update.
7827 * tui/tui-disasm.c (tui_set_disassem_content)
7828 (tui_get_begin_asm_address): Update.
7829 * tui/tui-data.h (struct tui_locator_element): Remove.
7830 (union tui_which_element) <locator>: Remove.
7831 (struct tui_locator_window): New.
7832 (tui_locator_win_info_ptr): Change return type.
7833 * tui/tui-data.c (_locator): Change type.
7834 (tui_locator_win_info_ptr): Change return type.
7835 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7836 (tui_alloc_content): Add assert.
7837
489e9d8b
TT
78382019-06-25 Tom Tromey <tom@tromey.com>
7839
7840 * tui/tui-winsource.c
7841 (tui_exec_info_window::maybe_allocate_content): New method.
7842 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7843 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7844 (make_source_or_disasm_window): Add cast.
7845 * tui/tui-data.h (union tui_which_element) <simple_string>:
7846 Remove.
7847 (struct tui_source_info): New.
7848 (struct tui_source_window_base) <execution_info>: Change type.
7849 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7850 case, and add assert.
7851 (tui_alloc_content): Add assert.
7852
c3fabb7d
TT
78532019-06-25 Tom Tromey <tom@tromey.com>
7854
7855 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7856 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7857 * tui/tui-data.c (tui_alloc_win_info): Remove.
7858
bbc228ee
TT
78592019-06-25 Tom Tromey <tom@tromey.com>
7860
7861 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7862 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7863 can_highlight.
7864
5fcee43a
TT
78652019-06-25 Tom Tromey <tom@tromey.com>
7866
7867 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7868 make_visible_with_new_height method.
7869 (tui_win_info::make_visible_with_new_height): New method.
7870 (tui_source_window_base::do_make_visible_with_new_height)
7871 (tui_data_window::do_make_visible_with_new_height)
7872 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7873 (make_visible_with_new_height): Remove.
7874 (tui_resize_all, tui_adjust_win_heights): Use
7875 make_visible_with_new_height method.
7876 * tui/tui-data.h (struct tui_win_info)
7877 <do_make_visible_with_new_height, make_visible_with_new_height>:
7878 New methods.
7879 (struct tui_source_window_base, struct tui_data_window)
7880 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7881 methods.
7882
d83f1fe6
TT
78832019-06-25 Tom Tromey <tom@tromey.com>
7884
7885 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7886 method.
7887 (update_tab_width): Call update_tab_width method.
7888 * tui/tui-data.h (struct tui_win_info)
7889 (struct tui_source_window_base) <update_tab_width>: New methods.
7890
17374de4
TT
78912019-06-25 Tom Tromey <tom@tromey.com>
7892
7893 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7894 parameter.
7895 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7896 parameter.
7897 (tui_gen_win_info::make_visible): Update.
7898 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7899 parameter.
7900 * tui/tui-data.h (enum tui_box): New enum.
7901 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7902
f936bca2
TT
79032019-06-25 Tom Tromey <tom@tromey.com>
7904
7905 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7906 init_and_make_win for EXEC_INFO_WIN.
7907 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7908 longer inline.
7909 (struct tui_win_info) <~tui_win_info>: Inline.
7910 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7911 Don't declare.
7912 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7913 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7914 Remove.
7915 (tui_initialize_static_data): Update.
7916 (~tui_gen_win_info): Handle more cleanup here.
7917 (~tui_source_window_base): Delete "execution_info".
7918 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7919
d6ba6a11
TT
79202019-06-25 Tom Tromey <tom@tromey.com>
7921
7922 * tui/tui-layout.c (make_command_window): Don't set
7923 can_highlight.
7924 (show_source_disasm_command): Call the reset method.
7925 (show_data): Don't set can_highlight. Call the reset method.
7926 (tui_gen_win_info::reset): Rename from init_gen_win_info
7927 (init_and_make_win): Simplify. Return tui_gen_win_info.
7928 (show_source_or_disasm_and_command): Call the reset method.
7929 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7930 (struct tui_cmd_window): Set can_highlight.
7931
48a3bd16
TT
79322019-06-25 Tom Tromey <tom@tromey.com>
7933
7934 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7935 from make_visible.
7936 (tui_make_visible, tui_make_invisible): Rewrite.
7937 (tui_win_info::make_visible): Remove.
7938 (tui_source_window_base::make_visible): Update.
7939 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7940 method. Moved from...
7941 (struct tui_win_info) <make_visible>: ...here.
7942
c3bd716f
TT
79432019-06-25 Tom Tromey <tom@tromey.com>
7944
7945 * tui/tui-winsource.c
7946 (tui_source_window_base::do_scroll_horizontal): Remove direction
7947 parameter.
7948 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7949 direction parameter.
7950 * tui/tui-win.c (tui_win_info::forward_scroll)
7951 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7952 (tui_win_info::right_scroll): Update.
7953 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7954 direction parameter.
7955 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7956 direction parameter.
7957 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7958 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7959 Remove direction parameter.
7960 (struct tui_source_window_base, struct tui_source_window)
7961 (struct tui_disasm_window, struct tui_data_window)
7962 (struct tui_cmd_window): Update.
7963
21c32dca
TT
79642019-06-25 Tom Tromey <tom@tromey.com>
7965
7966 * tui/tui-winsource.h (tui_set_exec_info_content)
7967 (tui_show_exec_info_content, tui_erase_exec_info_content)
7968 (tui_clear_exec_info_content, tui_update_exec_info): Change
7969 argument to tui_source_window_base.
7970 * tui/tui-winsource.c (tui_set_exec_info_content)
7971 (tui_show_exec_info_content, tui_erase_exec_info_content)
7972 (tui_clear_exec_info_content, tui_update_exec_info): Change
7973 argument to tui_source_window_base.
7974
73fbdc65
TT
79752019-06-25 Tom Tromey <tom@tromey.com>
7976
7977 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7978 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7979
33325343
TT
79802019-06-25 Tom Tromey <tom@tromey.com>
7981
7982 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7983 check.
7984
29d2c474
TT
79852019-06-25 Tom Tromey <tom@tromey.com>
7986
7987 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7988 type to void.
7989 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7990 type to void.
7991 * tui/tui-source.c (tui_set_source_content): Update.
7992 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7993
152f3f4b
TT
79942019-06-25 Tom Tromey <tom@tromey.com>
7995
7996 * tui/tui-win.c (window_name_completer, tui_set_focus)
7997 (tui_all_windows_info): Use name method.
7998 * tui/tui-data.h (struct tui_gen_win_info)
7999 (struct tui_source_window, struct tui_disasm_window)
8000 (struct tui_data_window, struct tui_cmd_window) <name>: New
8001 method.
8002 (tui_win_name): Don't declare.
8003 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8004 (tui_win_name): Remove.
8005
be4da588
TT
80062019-06-25 Tom Tromey <tom@tromey.com>
8007
8008 * tui/tui-winsource.h (tui_update_source_window)
8009 (tui_update_source_window_as_is): Change parameter type.
8010 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8011 to be a tui_source_window_base.
8012 (tui_update_source_window_as_is): Likewise.
8013 * tui/tui-win.c (make_visible_with_new_height): Update.
8014
5b81daba
TT
80152019-06-25 Tom Tromey <tom@tromey.com>
8016
8017 * tui/tui-winsource.c (tui_erase_source_content)
8018 (tui_show_source_content, tui_show_exec_info_content)
8019 (tui_erase_exec_info_content): Use refresh_window method.
8020 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8021 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8022 from tui_refresh_win.
8023 (tui_data_window::refresh_window): New method.
8024 (tui_win_info::refresh, tui_source_window_base::refresh)
8025 (tui_refresh_all): Use refresh_window method.
8026 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8027 method.
8028 * tui/tui-regs.c (tui_display_register): Call refresh_window
8029 method.
8030 * tui/tui-layout.c (show_source_disasm_command)
8031 (show_source_or_disasm_and_command): Call refresh_window method.
8032 * tui/tui-data.h (struct tui_gen_win_info)
8033 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8034 New method.
8035
cb2ce893
TT
80362019-06-25 Tom Tromey <tom@tromey.com>
8037
8038 * tui/tui.c (tui_rl_other_window, tui_enable)
8039 (tui_is_window_visible, tui_get_command_dimension): Update.
8040 * tui/tui-winsource.c (tui_update_source_window_as_is)
8041 (tui_clear_source_content, tui_erase_source_content)
8042 (tui_show_source_line, tui_source_window_base::refill)
8043 (tui_source_window_base::do_scroll_horizontal)
8044 (tui_source_window_base::set_is_exec_point_at)
8045 (tui_update_breakpoint_info, tui_set_exec_info_content)
8046 (tui_alloc_source_buffer, tui_line_is_displayed)
8047 (tui_addr_is_displayed): Update.
8048 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8049 (tui_check_and_display_highlight_if_needed)
8050 (tui_win_info::make_visible, tui_win_info::refresh)
8051 (tui_refresh_all): Update.
8052 * tui/tui-windata.c (tui_first_data_item_displayed)
8053 (tui_delete_data_content_windows, tui_erase_data_content)
8054 (tui_display_all_data, tui_data_window::refresh_all)
8055 (tui_check_data_values): Update.
8056 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8057 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8058 (tui_win_info::backward_scroll, tui_refresh_all_win)
8059 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8060 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8061 (tui_source_window_base::set_new_height)
8062 (tui_data_window::set_new_height)
8063 (make_invisible_and_set_new_height)
8064 (make_visible_with_new_height, new_height_ok)
8065 (parse_scrolling_args): Update.
8066 * tui/tui-stack.c (tui_show_frame_info): Update.
8067 * tui/tui-source.c (tui_set_source_content)
8068 (tui_set_source_content_nil, tui_source_is_displayed)
8069 (tui_source_window::do_scroll_vertical): Update.
8070 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8071 (tui_display_registers_from, tui_display_reg_element_at_line)
8072 (tui_check_register_values, tui_reg_command): Update.
8073 * tui/tui-layout.c (tui_default_win_height)
8074 (show_source_disasm_command, show_data, init_and_make_win)
8075 (show_source_or_disasm_and_command): Update.
8076 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8077 (tui_redisplay_readline, tui_mld_flush)
8078 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8079 (tui_getc): Update.
8080 * tui/tui-disasm.c (tui_set_disassem_content)
8081 (tui_disasm_window::do_scroll_vertical): Update.
8082 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8083 Now virtual.
8084 (struct tui_win_info): Derive from tui_gen_win_info.
8085 <~tui_win_info>: Mark as override.
8086 <generic>: Remove member.
8087 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8088 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8089 (~tui_data_window, ~tui_win_info)
8090 (tui_free_all_source_wins_content): Update.
8091 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8092
ab313b35
TT
80932019-06-25 Tom Tromey <tom@tromey.com>
8094
8095 * tui/tui-layout.c (init_and_make_win): Use new.
8096 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8097 destructor, initializers.
8098 (tui_alloc_generic_win_info): Don't declare.
8099 * tui/tui-data.c (_locator): Add argument to constructor.
8100 (source_win, disasm_win): New globals.
8101 (exec_info): Remove.
8102 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8103 Update.
8104 (tui_alloc_generic_win_info): Remove.
8105 (init_content_element): Use new.
8106 (tui_win_info::tui_win_info): Update.
8107 (free_content_elements) <case DATA_WIN>: Use delete.
8108
dc2c33e4
TT
81092019-06-25 Tom Tromey <tom@tromey.com>
8110
8111 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8112 * tui/tui-windata.c (tui_first_data_item_displayed)
8113 (tui_delete_data_content_windows): Update.
8114 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8115 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8116 (tui_display_registers_from, tui_check_register_values): Update.
8117 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8118 pointer.
8119 * tui/tui-data.c (init_content_element): Update. Allocate the new
8120 window.
8121 (tui_free_data_content): Update.
8122 (free_content_elements) <case DATA_WIN>: Free the window.
8123
214a5cbe
TT
81242019-06-25 Tom Tromey <tom@tromey.com>
8125
8126 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8127 Update.
8128 * tui/tui-layout.c (make_command_window)
8129 (show_source_disasm_command, show_data, init_and_make_win)
8130 (show_source_or_disasm_and_command): Update.
8131 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8132 method.
8133 <can_highight, is_highlighted>: Now bool.
8134 (tui_set_win_highlight): Don't declare.
8135 * tui/tui-data.c (tui_set_win_highlight): Remove.
8136
8e2daf15
TT
81372019-06-25 Tom Tromey <tom@tromey.com>
8138
8139 * tui/tui-wingeneral.c (make_visible): Remove check of window
8140 type.
8141
8903bd8a
TT
81422019-06-25 Tom Tromey <tom@tromey.com>
8143
8144 * tui/tui-win.c (tui_win_info::max_height)
8145 (tui_cmd_window::max_height): New methods.
8146 (new_height_ok): Call max_height.
8147 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8148 <max_height>: New method.
8149
3f02ce1e
TT
81502019-06-25 Tom Tromey <tom@tromey.com>
8151
8152 * tui/tui-win.c (tui_source_window_base::set_new_height)
8153 (tui_data_window::set_new_height): New methods.
8154 (make_invisible_and_set_new_height): Call set_new_height method.
8155 * tui/tui-data.h (struct tui_win_info)
8156 (struct tui_source_window_base, struct tui_data_window)
8157 <set_new_height>: New method.
8158
1825f487
TT
81592019-06-25 Tom Tromey <tom@tromey.com>
8160
8161 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8162 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8163 tui_refresh_data_win.
8164 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8165 method.
8166 (tui_refresh_all_win): Call the refresh_all method.
8167 (tui_set_focus): Likewise.
8168 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8169 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8170 Likewise.
8171
ad54d15b
TT
81722019-06-25 Tom Tromey <tom@tromey.com>
8173
8174 * tui/tui-winsource.h (tui_refill_source_window)
8175 (tui_set_is_exec_point_at): Don't declare.
8176 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8177 (tui_source_window_base::refill): Rename from
8178 tui_refill_source_window.
8179 (tui_source_window_base::do_scroll_horizontal): Update.
8180 (tui_source_window_base::set_is_exec_point_at): Rename from
8181 tui_set_is_exec_point_at.
8182 (tui_update_all_breakpoint_info): Update.
8183 * tui/tui-stack.c (tui_show_frame_info): Update.
8184 * tui/tui-layout.c (show_data): Add cast.
8185 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8186 * tui/tui-data.h (struct tui_source_window_base) <refill,
8187 set_is_exec_point_at>: New methods.
8188 (tui_source_windows, tui_add_to_source_windows): Update types.
8189 (tui_add_to_source_windows): Remove redundant declaration.
8190 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8191 (tui_source_windows): Change return type.
8192 (tui_clear_source_windows_detail): Update.
8193 (tui_add_to_source_windows): Change type of parameter.
8194 (tui_free_all_source_wins_content): Update.
8195
2042b506
TT
81962019-06-25 Tom Tromey <tom@tromey.com>
8197
8198 * tui/tui-wingeneral.c (tui_win_info::refresh)
8199 (tui_source_window_base::refresh): New methods.
8200 (tui_refresh_all): Call the refresh method.
8201 * tui/tui-data.h (struct tui_win_info)
8202 (struct tui_source_window_base) <refresh>: New method.
8203
56122977
TT
82042019-06-25 Tom Tromey <tom@tromey.com>
8205
8206 * tui/tui.h (tui_is_window_visible): Return bool.
8207 * tui/tui.c (tui_is_window_visible): Return bool.
8208 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8209 (tui_make_visible, tui_make_invisible)
8210 (tui_win_info::make_visible)
8211 (tui_source_window_base::make_visible, make_all_visible)
8212 (tui_make_all_visible, tui_make_all_invisible): Update.
8213 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8214 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8215 bool.
8216 (struct tui_win_info, struct tui_source_window_base)
8217 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8218 * tui/tui-data.c (tui_init_generic_part): Update.
8219
cda37efb
TT
82202019-06-25 Tom Tromey <tom@tromey.com>
8221
8222 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8223 (tui_source_window_base::make_visible): New methods.
8224 (make_all_visible): Make method call.
8225 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8226 (struct tui_source_window_base, struct tui_cmd_window): Override
8227 make_visible.
8228 (tui_win_is_source_type): Don't declare.
8229 * tui/tui-data.c (tui_win_is_source_type): Remove.
8230
6a0ee02c
TT
82312019-06-25 Tom Tromey <tom@tromey.com>
8232
8233 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8234 NULL check.
8235
63901aec
TT
82362019-06-25 Tom Tromey <tom@tromey.com>
8237
8238 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8239 Inline constructor. Add initializers for members.
8240 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8241 constructors; now inline in class.
8242
ceb13a13
TT
82432019-06-25 Tom Tromey <tom@tromey.com>
8244
8245 * tui/tui-regs.c (tui_show_registers): Update.
8246 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8247 bool.
8248 * tui/tui-data.c (tui_data_window::clear_detail)
8249 (tui_data_window): Update.
8250
238eb706
TT
82512019-06-25 Tom Tromey <tom@tromey.com>
8252
8253 * tui/tui-windata.c (tui_display_all_data)
8254 (tui_display_data_from_line, tui_display_data_from)
8255 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8256 Update.
8257 * tui/tui-regs.c (tui_last_regs_line_no)
8258 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8259 (tui_show_registers, tui_show_register_group)
8260 (tui_display_registers_from, tui_display_reg_element_at_line)
8261 (tui_display_registers_from_line, tui_check_register_values)
8262 (tui_reg_next, tui_reg_prev): Update.
8263 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8264 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8265 tui_data_window.
8266 (struct tui_win_info) <detail>: Remove. Add new fields from
8267 tui_data_info.
8268 (TUI_DATA_WIN): Add cast.
8269 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8270 (~tui_data_window): Simplify.
8271
81491aa0
TT
82722019-06-25 Tom Tromey <tom@tromey.com>
8273
8274 * tui/tui-layout.c (show_source_disasm_command)
8275 (show_source_or_disasm_and_command): Update.
8276 * tui/tui-io.c (update_cmdwin_start_line)
8277 (tui_redisplay_readline): Update.
8278 * tui/tui-data.h (struct tui_command_info): Remove.
8279 (struct tui_win_info) <detail>: Remove command_info member.
8280 (struct tui_data_window) <start_line>: New member, from
8281 tui_command_info.
8282 (TUI_CMD_WIN): Add casts.
8283
e6e41501
TT
82842019-06-25 Tom Tromey <tom@tromey.com>
8285
8286 * tui/tui-winsource.c (tui_update_source_window)
8287 (tui_refill_source_window)
8288 (tui_source_window_base::do_scroll_horizontal)
8289 (tui_update_breakpoint_info, tui_set_exec_info_content)
8290 (tui_show_exec_info_content, tui_erase_exec_info_content)
8291 (tui_clear_exec_info_content): Update.
8292 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8293 Update.
8294 * tui/tui-win.c (make_invisible_and_set_new_height)
8295 (make_visible_with_new_height): Update.
8296 * tui/tui-source.c (tui_set_source_content)
8297 (tui_show_symtab_source): Update.
8298 * tui/tui-layout.c (extract_display_start_addr)
8299 (show_source_disasm_command, show_data)
8300 (make_source_or_disasm_window)
8301 (show_source_or_disasm_and_command): Update.
8302 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8303 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8304 "gdbarch".
8305 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8306 to tui_source_window_base.
8307 (struct tui_win_info) <detail>: Remove source_info member.
8308 (struct tui_source_window_base) <has_locator>: Inline.
8309 Move contents from tui_source_info; rename has_locator member to
8310 m_has_locator.
8311 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8312 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8313 header file.
8314 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8315 Simplify.
8316 (tui_free_all_source_wins_content): Cast to
8317 tui_source_window_base.
8318
44f0e208
TT
83192019-06-25 Tom Tromey <tom@tromey.com>
8320
8321 * tui/tui-win.c (make_invisible_and_set_new_height)
8322 (make_visible_with_new_height): Call has_locator method.
8323 * tui/tui-layout.c (show_source_disasm_command, show_data)
8324 (show_source_or_disasm_and_command): Update for bool change.
8325 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8326 (tui_win_info) <has_locator>: New method.
8327 (struct tui_source_window_base) <has_locator>: New method.
8328 (tui_win_has_locator): Don't declare.
8329 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8330 from tui_win_has_locator.
8331 (tui_source_window_base): Use false, not FALSE.
8332
7778b912
TT
83332019-06-25 Tom Tromey <tom@tromey.com>
8334
8335 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8336 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8337 clear_detail method directly.
8338 (tui_clear_win_detail): Remove.
8339
f83d391c
TT
83402019-06-25 Tom Tromey <tom@tromey.com>
8341
8342 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8343 "this", not TUI_DISASM_WIN.
8344
13446e05
TT
83452019-06-25 Tom Tromey <tom@tromey.com>
8346
8347 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8348 declare.
8349 * tui/tui-winsource.c
8350 (tui_source_window_base::do_scroll_horizontal): Rename from
8351 tui_horizontal_source_scroll.
8352 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8353 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8354 from tui_vertical_data_scroll.
8355 * tui/tui-win.h (tui_scroll): Don't declare.
8356 * tui/tui-win.c (tui_win_info::forward_scroll)
8357 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8358 (tui_win_info::right_scroll): Rename and update.
8359 (tui_scroll_forward_command, tui_scroll_backward_command)
8360 (tui_scroll_left_command, tui_scroll_right_command): Update.
8361 (tui_scroll): Remove.
8362 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8363 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8364 from tui_vertical_source_scroll.
8365 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8366 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8367 from tui_vertical_disassem_scroll.
8368 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8369 do_scroll_horizontal>: New methods.
8370 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8371 Likewise.
8372 (struct tui_source_window_base): Add do_scroll_horizontal.
8373 (struct tui_source_window, struct tui_disasm_window): Add
8374 do_scroll_vertical.
8375 (struct tui_data_window, struct tui_cmd_window): Add
8376 do_scroll_horizontal and do_scroll_vertical.
8377 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8378
5cf82909
TT
83792019-06-25 Tom Tromey <tom@tromey.com>
8380
8381 * tui/tui-data.h (struct tui_source_window_base): New struct.
8382 (struct tui_source_window): Derive from tui_source_window_base.
8383 (struct tui_disasm_window): New struct.
8384 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8385 from tui_source_window::clear_detail.
8386 (tui_source_window_base): Rename from tui_source_window.
8387 (~tui_source_window_base): Rename from ~tui_source_window.
8388 (tui_alloc_win_info): Create a tui_disasm_window.
8389
ee1d42d6
TT
83902019-06-25 Tom Tromey <tom@tromey.com>
8391
8392 * tui/tui-data.h (struct tui_source_window)
8393 (struct tui_data_window): Declare destructors.
8394 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8395 destructors.
8396 (tui_win_info): Simplify.
8397
b4eb2452
TT
83982019-06-25 Tom Tromey <tom@tromey.com>
8399
8400 * tui/tui-winsource.c (tui_display_main)
8401 (tui_update_source_windows_with_addr)
8402 (tui_update_all_breakpoint_info): Update.
8403 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8404 (new_height_ok, parse_scrolling_args): Update.
8405 * tui/tui-stack.c (tui_show_frame_info): Update.
8406 * tui/tui-data.h (struct tui_list): Remove.
8407 (tui_source_windows): Return a reference to a std::vector.
8408 * tui/tui-data.c (source_windows): Now a std::vector.
8409 (tui_source_windows): Change return type.
8410 (tui_clear_source_windows): Rewrite.
8411 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8412 (tui_free_all_source_wins_content): Rewrite.
8413
8761a91b
TT
84142019-06-25 Tom Tromey <tom@tromey.com>
8415
8416 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8417 (struct tui_data_window, struct tui_cmd_window): Declare
8418 clear_detail method.
8419 * tui/tui-data.c (tui_source_window::clear_detail)
8420 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8421 methods.
8422 (tui_clear_win_detail): Simplify.
8423
0ed69eda
TT
84242019-06-25 Tom Tromey <tom@tromey.com>
8425
8426 * tui/tui-layout.c (make_source_window, make_disasm_window)
8427 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8428 Return the new window.
8429 (show_source_disasm_command, show_data)
8430 (show_source_or_disasm_and_command): Update.
8431
82432e10
TT
84322019-06-25 Tom Tromey <tom@tromey.com>
8433
8434 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8435 parameter. Return the new window.
8436 (show_source_disasm_command): Update and remove NULL check.
8437 (show_source_or_disasm_and_command): Update.
8438
ec328aa5
TT
84392019-06-25 Tom Tromey <tom@tromey.com>
8440
8441 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8442
33b906ab
TT
84432019-06-25 Tom Tromey <tom@tromey.com>
8444
8445 * tui/tui-data.h (struct tui_win_info): Make constructor
8446 protected. Make destructor virtual. Add initializers.
8447 (tui_source_window, tui_data_window, tui_cmd_window): New
8448 classes.
8449 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8450 constructor. Add "type" parameter.
8451 (tui_source_window, tui_data_window, tui_cmd_window): New
8452 constructors.
8453 (tui_alloc_win_info): Instantiate the appropriate subclass.
8454
e7e11af4
TT
84552019-06-25 Tom Tromey <tom@tromey.com>
8456
8457 * tui/tui-win.c (tui_resize_all): Use delete.
8458 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8459 destructor.
8460 (tui_free_window): Don't declare.
8461 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8462 Update.
8463
6792b55e
TT
84642019-06-25 Tom Tromey <tom@tromey.com>
8465
8466 * tui/tui-data.h (struct tui_win_info): Add constructor.
8467 * tui/tui-data.c (tui_alloc_win_info): Use new.
8468 (tui_free_window): Use delete.
8469
f95675e1
TT
84702019-06-22 Tom Tromey <tom@tromey.com>
8471
8472 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8473 declare.
8474 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8475
5bff081c
TT
84762019-06-22 Tom Tromey <tom@tromey.com>
8477
8478 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8479 declare.
8480 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8481
47e3f474
TV
84822019-06-22 Tom de Vries <tdevries@suse.de>
8483
8484 * dwarf2read.c (create_addrmap_from_aranges)
8485 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8486 instead of '%zu'.
8487
fd5866f6
SM
84882019-06-21 Simon Marchi <simon.marchi@efficios.com>
8489
8490 * dwarf2read.h (dwarf2_section_info_def): Remove.
8491 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8492 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8493 std::vector<dwarf2_section_info>.
8494 (struct dwo_file) <~dwo_file>: Remove.
8495 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8496 types field.
8497 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8498 (dwarf2_read_debug_names): Likewise.
8499 (create_debug_types_hash_table): Change parameter type to
8500 array_view, adjust code accordingly.
8501 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8502 (partial_die_info::fixup): Likewise.
8503 (determine_prefix): Likewise.
8504 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8505
fb1eb2f9
SM
85062019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8507
8508 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8509 gdb_bfd_ref_ptr.
8510 <~dwo_file>: Remove call to gdb_bfd_unref.
8511 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8512 gdb_bfd_ref_ptr::get.
8513
51ac9db5
SM
85142019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8515
8516 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8517 type to htab_up.
8518 * dwarf2read.c (struct dwo_file): Initialize fields.
8519 <~dwo_file>: New.
8520 (free_dwo_file): Remove, move content to ~dwo_file.
8521 (struct dwo_file_deleter): Remove.
8522 (dwo_file_up>: Remove custom deleter.
8523 (free_dwo_files): Remove.
8524 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8525 dwo_files.
8526 (process_skeletonless_type_units): Call unique_ptr::get.
8527 (allocate_dwo_file_hash_table): Add deleter to created hash
8528 table. Change return type to htab_up.
8529 (lookup_dwo_file_slot): Don't memset dwo_file, call
8530 unique_ptr::get.
8531 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8532 (create_dwo_unit_in_dwp_v2): Likewise.
8533 (open_and_init_dwo_file): Likewise.
8534 (free_dwo_file_from_slot): Remove.
8535
dc4ccb6f
SM
85362019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8537
8538 * dwarf2read.h (struct dwarf2_section_info) <readin,
8539 is_virtual>: Change type to bool.
8540 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8541 true instead of 1.
8542
e6a1c5cb
TT
85432019-06-19 Tom Tromey <tom@tromey.com>
8544
8545 * tui/tui-data.h (tui_init_content_element): Don't declare.
8546
6f6ffbeb
TT
85472019-06-19 Tom Tromey <tom@tromey.com>
8548
8549 * tui/tui-data.h (tui_init_win_info): Don't declare.
8550
f23f598e
TV
85512019-06-19 Tom de Vries <tdevries@suse.de>
8552
8553 * dwarf2read.h (abstract_to_concrete): Change type to
8554 std::unordered_map<sect_offset, std::vector<sect_offset>,
8555 gdb::hash_enum<sect_offset>>.
8556
680e1bee
TT
85572019-06-19 Tom Tromey <tromey@adacore.com>
8558
8559 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8560 EVAL_AVOID_SIDE_EFFECTS specially.
8561
dcf37923
TT
85622019-06-19 Tom Tromey <tromey@adacore.com>
8563
8564 * source-cache.c (highlighter): New global.
8565 (source_cache::get_source_lines): Create a highlighter on demand.
8566
494986d5
AB
85672019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8568
8569 * defs.h (deprecated_interactive_hook): Delete declaration.
8570 * interps.c (clear_interpreter_hooks): Remove use of
8571 deprecated_interactive_hook.
8572 * top.c (deprecated_interactive_hook): Delete definition.
8573 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8574
3360b6e7
TV
85752019-06-18 Tom de Vries <tdevries@suse.de>
8576
8577 PR gdb/24515
8578 * dwarf2read.h (abstract_to_concrete): Change type from
8579 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8580 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8581 * dwarf2read.c (read_variable): Update.
8582 (dwarf2_fetch_die_loc_sect_off): Update.
8583
310b3441
TV
85842019-06-17 Tom de Vries <tdevries@suse.de>
8585
8586 PR gdb/24617
8587 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8588 accessing parent[parent_len - 1].
8589
ba9777be
PP
85902019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8591
8592 PR gdb/24364
8593 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8594 call dtrace_process_dof with NULL dof.
8595
2b9f6e89
TV
85962019-06-16 Tom de Vries <tdevries@suse.de>
8597
8598 PR gdb/24445
8599 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8600
431b3ead
TT
86012019-06-16 Tom Tromey <tom@tromey.com>
8602
8603 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8604 (make_all_visible): Use address of member.
8605
d04b44a1
TT
86062019-06-16 Tom Tromey <tom@tromey.com>
8607
8608 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8609 (tui_free_window, free_content, free_content_elements): Remove
8610 unnecessary cast.
8611 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8612 cast.
8613 * tui/tui-regs.c (tui_show_register_group)
8614 (tui_display_registers_from, tui_display_reg_element_at_line):
8615 Remove unnecessary cast.
8616
bf5142e7
AB
86172019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8618
8619 * linux-nat.c (normal_mask): Delete.
8620 (_initialize_linux_nat): Don't initialise normal_mask.
8621
c4973306
SM
86222019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8623
8624 PR gdb/24445
8625 * dwarf-index-write.h (write_psymtabs_to_index): Add
8626 dwz_basename parameter.
8627 * dwarf-index-write.c (write_gdbindex): Move file writing to
8628 write_gdbindex_1. Change return type void.
8629 (assert_file_size): Move up, remove filename parameter.
8630 (write_gdbindex_1): New function.
8631 (write_debug_names): Change return type to void, call
8632 assert_file_size.
8633 (struct index_wip_file): New struct.
8634 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8635 file logic to index_wip_file. Write index for dwz file if
8636 needed.
8637 (save_gdb_index_command): Pass basename of dwz file, if present.
8638 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8639 build-id of dwz file, if present.
8640 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8641 (dwarf2_get_dwz_file): Likewise.
8642 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8643 (dwarf2_get_dwz_file): Likewise.
8644
395f9c91
TT
86452019-06-16 Tom Tromey <tom@tromey.com>
8646
8647 * coffread.c (process_coff_symbol): Use xstrdup.
8648 * value.c (create_internalvar): Use xstrdup.
8649
cafb3438
TT
86502019-06-16 Tom Tromey <tom@tromey.com>
8651
8652 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8653 * breakpoint.c (stopin_command, stopat_command)
8654 (until_break_command, decode_location_default): Remove unnecessary
8655 cast.
8656 * utils.c (subset_compare): Remove unnecessary cast.
8657 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8658 cast.
8659 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8660 cast.
8661 * infcmd.c (path_command): Remove unnecessary cast.
8662 * coffread.c (decode_type): Remove unnecessary cast.
8663 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8664 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8665 * tui/tui-stack.c (tui_show_locator_content)
8666 (tui_show_frame_info): Remove unnecessary cast.
8667 * tui/tui-win.c (tui_scroll_forward_command)
8668 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8669 (parse_scrolling_args): Remove unnecessary cast.
8670 * tui/tui-data.c (init_win_info, tui_del_window)
8671 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8672 (free_content_elements): Remove unnecessary cast.
8673 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8674 unnecessary cast.
8675 * tui/tui-source.c (tui_set_source_content)
8676 (tui_vertical_source_scroll): Remove unnecessary cast.
8677 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8678 cast.
8679 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8680 * tui/tui-regs.c (tui_display_registers_from)
8681 (tui_display_register): Remove unnecessary cast.
8682 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8683 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8684 (make_visible): Remove unnecessary cast.
8685 * tui/tui-winsource.c (tui_erase_source_content)
8686 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8687 unnecessary cast.
8688 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8689 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8690 * stabsread.c (read_type, read_array_type, read_range_type):
8691 Remove unnecessary cast.
8692 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8693 (parse_symbol, parse_type, upgrade_type, parse_external)
8694 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8695 unnecessary cast.
8696 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8697
730ead81
TT
86982019-06-16 Tom Tromey <tom@tromey.com>
8699
8700 * tui/tui-data.c (tui_alloc_generic_win_info)
8701 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8702 checks.
8703
584a927c
AB
87042019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8705 Andrew Burgess <andrew.burgess@embecosm.com>
8706
8707 * f-typeprint.c (f_print_type): Don't return early for not
8708 associated or not allocated types.
8709 (f_type_print_varspec_suffix): Add print_rank parameter and print
8710 ranks of array types in case they dangling.
8711 (f_type_print_base): Add print_rank parameter.
8712
30056ea0
AB
87132019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8714
8715 * NEWS: Mention new MI commands.
8716 * break-catch-throw.c (enum exception_event_kind): Move to
8717 breakpoint.h.
8718 (print_mention_exception_catchpoint): Output text as a single
8719 message.
8720 (catch_exception_command_1): Rename to...
8721 (catch_exception_event): ...this, make non-static, update header
8722 command, and change some parameter types.
8723 (catch_catch_command): Update for changes to
8724 catch_exception_command_1.
8725 (catch_throw_command): Likewise.
8726 (catch_rethrow_command): Likewise.
8727 * breakpoint.c (enum exception_event_kind): Delete.
8728 * breakpoint.h (enum exception_event_kind): Moved here from
8729 break-catch-throw.c.
8730 (catch_exception_event): Declare.
8731 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8732 (mi_cmd_catch_throw): New function.
8733 (mi_cmd_catch_rethrow): New function.
8734 (mi_cmd_catch_catch): New function.
8735 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8736 'catch-catch' entries.
8737 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8738 (mi_cmd_catch_rethrow): Declare.
8739 (mi_cmd_catch_catch): Declare.
8740
ec8e2b6d
AB
87412019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8742
8743 * annotate.c (annotate_source_line): Change return type to void,
8744 update implementation to match.
8745 * annotate.h (annotate_source_line): Change return type to void,
8746 update header comment.
8747 * stack.c (print_frame_info): Don't change what frame information
8748 is printed based on whether annotations are on or not.
8749
0d3abd8c
AB
87502019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8751
8752 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8753 (annotate_source): Make static.
8754 (annotate_source_line): Moved from source.c and renamed from
8755 identify_source_line. Update the return type.
8756 * annotate.h (annotate_source): Delete declaration.
8757 (annotate_source_line): Declaration moved from source.h, and
8758 renamed from identify_source_line. Return type updated.
8759 * source.c (identify_source_line): Moved to annotate.c and renamed
8760 to annotate_source_line.
8761 (info_line_command): Remove check of annotation_level.
8762 * source.h (identify_source_line): Move declaration to annotate.h
8763 and rename to annotate_source_line.
8764 * stack.c: Add 'annotate.h' include.
8765 (print_frame_info): Remove check of annotation_level before
8766 calling annotate_source_line.
8767
00df30ae
AB
87682019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8769
8770 * source-cache.c (source_cache::get_plain_source_lines): Use
8771 open_source_file_with_line_charpos instead of just
8772 open_source_file, remove call to find_source_lines.
8773 (source_cache::get_source_lines): Likewise.
8774 * source.c (find_source_lines): Make static.
8775 (get_filename_and_charpos): Renamed into...
8776 (open_source_file_with_line_charpos): ..this along with changes to
8777 return a scoped_fd, and some other minor clean ups.
8778 (identify_source_line): Use open_source_file_with_line_charpos.
8779 (search_command_helper): Use open_source_file_with_line_charpos
8780 instead of just open_source_file, remove call to
8781 find_source_lines.
8782 * source.h (open_source_file_with_line_charpos): Declare new
8783 function.
8784 (find_source_lines): Delete declaration.
8785
afda45a2
AB
87862019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8787
8788 * source.c (get_filename_and_charpos): Remove fullname
8789 parameter.
8790 (identify_source_line): Update call to get_filename_and_charpos.
8791
0735b091
TT
87922019-06-14 Tom Tromey <tromey@adacore.com>
8793
8794 PR gdb/24502:
8795 * ui-style.h (skip_ansi_escape): Update comment.
8796 * ui-file.h (class no_terminal_escape_file): New class.
8797 * ui-file.c (no_terminal_escape_file::write)
8798 (no_terminal_escape_file::puts): New methods.
8799 * cli/cli-logging.c (handle_redirections): Use
8800 no_terminal_escape_file.
8801
52ce35e2
TT
88022019-06-14 Tom Tromey <tromey@adacore.com>
8803
8804 * NEWS: Move convenience variable news above Python news.
8805
73cc7272
TT
88062019-06-14 Tom Tromey <tom@tromey.com>
8807
8808 * gnulib: Move directory to top-level.
8809 * configure.ac: Don't configure gnulib.
8810 * configure: Rebuild.
8811 * common/common-defs.h: Use new path to gnulib.
8812 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8813 (GNULIB_H): Remove.
8814 (INCGNU): Look in new gnulib location.
8815 (HFILES_NO_SRCDIR): Remove gnulib files.
8816 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8817 (generated_files): Remove GNULIB_H.
8818 ($(LIBGNU), all-lib): Remove targets.
8819 (distclean): Don't mention GNULIB_BUILDDIR.
8820 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8821
f5686554
TT
88222019-06-14 Tom Tromey <tromey@adacore.com>
8823
8824 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8825 Warn if symbol file does not provide any symbols.
8826
a0c1ffed
TT
88272019-06-14 Tom Tromey <tromey@adacore.com>
8828
8829 * source.c (find_and_open_source): Respect basenames_may_differ.
8830
7c39e397
AB
88312019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8832
8833 * annotate.c (annotate_breakpoints_invalid): Make use of
8834 scoped_restore_terminal_state.
8835 (annotate_frames_invalid): Likewise.
8836
f411722c
TT
88372019-06-14 Tom Tromey <tromey@adacore.com>
8838
8839 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8840 allow assignment to an internalvar.
8841
4268ec18
TT
88422019-06-14 Tom Tromey <tromey@adacore.com>
8843
8844 * ada-lex.l: Allow "_" in attribute names.
8845
abdb711e
TT
88462019-06-14 Tom Tromey <tromey@adacore.com>
8847
8848 PR gdb/24653:
8849 * regcache.c (registers_changed): Don't call alloca.
8850 * top.c (execute_command): Don't call alloca.
8851
4c048731
PA
88522019-06-13 Pedro Alves <palves@redhat.com>
8853
8854 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8855 'expression'. When parsing an expression, error out if there's
8856 junk after "unlimited".
8857 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8858 (do_set_command): Adjust calls to is_unlimited_literal.
8859
66eb1ed3
PA
88602019-06-13 Pedro Alves <palves@redhat.com>
8861
8862 * compile/compile.c (make_compile_options_def_group): Add braces
8863 around array_view initializer.
8864 * thread.c (make_thread_apply_all_options_def_group)
8865 (make_thread_apply_all_options_def_group): Likewise.
8866
3345721a
PA
88672019-06-13 Pedro Alves <palves@redhat.com>
8868
8869 * NEWS (New commands): Mention "maint test-options
8870 require-delimiter", "maint test-options unknown-is-error", "maint
8871 test-options unknown-is-operand" and "maint show
8872 test-options-completion-result".
8873 (New command options, command completion): New section.
8874 (Completion improvements): New section.
8875 Mention that you can abbreviate "unlimited".
8876
6206060d
PA
88772019-06-13 Pedro Alves <palves@redhat.com>
8878
8879 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8880 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8881 * unittests/cli-utils-selftests.c (test_parse_flags)
8882 (test_parse_flags_qcs): Delete.
8883 (test_cli_utils): Don't call deleted functions.
8884
6665660a
PA
88852019-06-13 Pedro Alves <palves@redhat.com>
8886
8887 * thread.c: Include "cli/cli-option.h".
8888 (tp_array_compar_ascending): Global.
8889 (tp_array_compar): Delete function.
8890 (tp_array_compar_ascending, tp_array_compar_descending): New
8891 functions.
8892 (ascending_option_def, qcs_flag_option_def)
8893 (thr_qcs_flags_option_defs)
8894 (make_thread_apply_all_options_def_group)
8895 (make_thread_apply_options_def_group): New.
8896 (thread_apply_all_command): Use gdb::option::process_options.
8897 (thread_apply_command_completer)
8898 (thread_apply_all_command_completer): New.
8899 (thread_apply_command): Use gdb::option::process_options.
8900 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8901 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8902 to generate help text of "thread apply". Adjust "taas"'s help.
8903 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8904 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8905
f7e13587
PA
89062019-06-13 Pedro Alves <palves@redhat.com>
8907
8908 * thread.c (thread_apply_command): Check for invalid TID with
8909 isdigit instead of !isalpha.
8910
5d707134
PA
89112019-06-13 Pedro Alves <palves@redhat.com>
8912
8913 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8914 (validate_flags_qcs): New.
8915 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8916 (validate_flags_qcs): Declare.
8917 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8918 (make_frame_apply_options_def_group): New.
8919 (frame_apply_command_count): Process options with
8920 gdb::option::process_options.
8921 (frame_apply_completer): New.
8922 (frame_apply_level_completer, frame_apply_all_completer)
8923 (frame_apply_completer): New.
8924 (_initialize_stack): Update help of "frame apply", "frame apply
8925 level", "frame apply all" and "faas" to mention supported options
8926 and install command completers.
8927 * stack.h (frame_apply_all_completer): Declare.
8928 * thread.c: Include "stack.h".
8929 (tfaas_command): Add "--".
8930 (_initialize_thread): Update help "tfaas" to mention supported
8931 options and install command completer.
8932
272d4594
PA
89332019-06-13 Pedro Alves <palves@redhat.com>
8934
8935 * completer.c (complete_nested_command_line): New.
8936 (gdb_completion_word_break_characters_throw): Add assertion.
8937 * completer.h (complete_nested_command_line): Declare.
8938
90a1ef87
PA
89392019-06-13 Pedro Alves <palves@redhat.com>
8940
8941 * stack.c (parse_backtrace_qualifiers): New.
8942 (backtrace_command): Use it.
8943 (backtrace_command_completer): Complete on qualifiers.
8944
d4c16835
PA
89452019-06-13 Pedro Alves <palves@redhat.com>
8946
8947 * frame.c: Include "cli/cli-option.h.
8948 (user_set_backtrace_options): New.
8949 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8950 Delete.
8951 (get_prev_frame): Adjust.
8952 (boolean_option_def, uinteger_option_def)
8953 (set_backtrace_option_defs): New.
8954 (_initialize_frame): Adjust and use
8955 gdb::option::add_setshow_cmds_for_options to install "set
8956 backtrace past-main" and "set backtrace past-entry".
8957 * frame.h: Include "cli/cli-option.h".
8958 (struct frame_print_options): Forward declare.
8959 (print_frame_arguments_all, print_frame_arguments_scalars)
8960 (print_frame_arguments_none): Declare.
8961 (print_entry_values): Delete declaration.
8962 (struct frame_print_options, user_frame_print_options): New.
8963 (struct set_backtrace_options): New.
8964 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8965 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8966 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8967 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8968 (list_args_or_locals): Add frame_print_options parameter.
8969 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8970 * python/py-framefilter.c (enumerate_args): Pass down
8971 USER_FRAME_PRINT_OPTIONS.
8972 * stack.c: Include "cli/cli-option.h".
8973 (print_frame_arguments_all, print_frame_arguments_scalars)
8974 (print_frame_arguments_none): Declare.
8975 (print_raw_frame_arguments, print_entry_values): Delete.
8976 (user_frame_print_options): New.
8977 (boolean_option_def, enum_option_def, frame_print_option_defs):
8978 New.
8979 (struct backtrace_cmd_options): New.
8980 (bt_flag_option_def): New.
8981 (backtrace_command_option_defs): New.
8982 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8983 (print_frame_arg, read_frame_arg, print_frame_args)
8984 (print_frame_info, print_frame): Add frame_print_options parameter
8985 and use it.
8986 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8987 (backtrace_command_1): Add frame_print_options and
8988 backtrace_cmd_options parameters and use them.
8989 (make_backtrace_options_def_group): New.
8990 (backtrace_command): Process command options with
8991 gdb::option::process_options.
8992 (backtrace_command_completer): New.
8993 (_initialize_stack): Extend "backtrace"'s help to mention
8994 supported options. Install completer for "backtrace".
8995 Install some settings commands with add_setshow_cmds_for_options.
8996
2daf894e
PA
89972019-06-13 Pedro Alves <palves@redhat.com>
8998
8999 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9000 and that "set/show print raw frame-arguments" are now deprecated.
9001
9002 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9003 command.
9004 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9005 * stack.c (_initialize_stack): Install "set/show print
9006 raw-frame-arguments", and deprecate "set/show print raw
9007 frame-arguments".
9008 * valprint.c (_initialize_valprint): Deprecate "set/show print
9009 raw".
9010
e6ed716c
PA
90112019-06-13 Pedro Alves <palves@redhat.com>
9012
9013 * compile/compile.c (struct compile_options): New.
9014 (compile_flag_option_def, compile_command_option_defs)
9015 (make_compile_options_def_group): New.
9016 (compile_file_command): Handle options with
9017 gdb::option::process_options.
9018 (compile_file_command_completer): New function.
9019 (compile_code_command): Handle options with
9020 gdb::option::process_options.
9021 (compile_code_command_completer): New function.
9022 (_initialize_compiler): Install completers for "compile code" and
9023 "compile file". Mention available options in "compile code" and
9024 "compile code"'s help.
9025 * completer.c (advance_to_completion_word): New, factored out from
9026 ...
9027 (advance_to_expression_complete_word_point): ... this.
9028 (advance_to_filename_complete_word_point): New.
9029 * completer.h (advance_to_filename_complete_word_point): New
9030 declaration.
9031
7d8062de
PA
90322019-06-13 Pedro Alves <palves@redhat.com>
9033
9034 * compile/compile.c: Include "cli/cli-option.h".
9035 (compile_print_value): Scope data pointer is now a
9036 value_print_options pointer; adjust.
9037 (compile_print_command): Process options. Scope data pointer is
9038 now a value_print_options pointer; adjust.
9039 (_initialize_compile): Update "compile print"'s help to include
9040 supported options. Install a completer for "compile print".
9041 * cp-valprint.c (show_vtblprint, show_objectprint)
9042 (show_static_field_print): Delete.
9043 (_initialize_cp_valprint): Don't install "set print
9044 static-members", "set print vtbl", "set print object" here.
9045 * printcmd.c: Include "cli/cli-option.h" and
9046 "common/gdb_optional.h".
9047 (print_command_parse_format): Rework to fill in a
9048 value_print_options instead of a format_data.
9049 (print_value): Change parameter type from format_data pointer to
9050 value_print_options reference. Adjust.
9051 (print_command_1): Process options. Adjust to pass down a
9052 value_print_options.
9053 (print_command_completer): New.
9054 (_initialize_printcmd): Install print_command_completer as
9055 handle_brkchars completer for the "print" command. Update
9056 "print"'s help to include supported options.
9057 * valprint.c: Include "cli/cli-option.h".
9058 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9059 here from cp-valprint.c.
9060 (boolean_option_def, uinteger_option_def)
9061 (value_print_option_defs, make_value_print_options_def_group):
9062 New. Use gdb::option::add_setshow_cmds_for_options to install
9063 "set print elements", "set print null-stop", "set print repeats",
9064 "set print pretty", "set print union", "set print array", "set
9065 print address", "set print symbol", "set print array-indexes".
9066 * valprint.h: Include <string> and "cli/cli-option.h".
9067 (make_value_print_options_def_group): Declare.
9068 (print_value): Change parameter type from format_data pointer to
9069 value_print_options reference.
9070 (print_command_completer): Declare.
9071
9d0faba9
PA
90722019-06-13 Pedro Alves <palves@redhat.com>
9073
9074 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9075 (COMMON_SFILES): Add maint-test-settings.c.
9076 * cli/cli-decode.c (boolean_enums): New global, factored out from
9077 ...
9078 (add_setshow_boolean_cmd): ... here.
9079 * cli/cli-decode.h (boolean_enums): Declare.
9080 * cli/cli-option.c: New file.
9081 * cli/cli-option.h: New file.
9082 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9083 factored out from ...
9084 (parse_cli_boolean_value(const char *)): ... this.
9085 (is_unlimited_literal): Change parameter type to pointer to
9086 pointer. Adjust and advance ARG pointer.
9087 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9088 (parse_cli_var_enum): New, factored out from ...
9089 (do_set_command): ... this. Adjust.
9090 * cli/cli-setshow.h (parse_cli_boolean_value)
9091 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9092 (parse_cli_var_enum): Declare.
9093 * cli/cli-utils.c: Include "cli/cli-option.h".
9094 (get_ulongest): New.
9095 * cli/cli-utils.h (get_ulongest): Declare.
9096 (check_for_argument): New overloads.
9097 * maint-test-options.c: New file.
9098
2c722807
PA
90992019-06-13 Pedro Alves <palves@redhat.com>
9100
9101 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9102 parse a range if "-" is at the end of the string.
9103
dee7b4c8
PA
91042019-06-13 Pedro Alves <palves@redhat.com>
9105
9106 * cli/cli-setshow.c (parse_auto_binary_operation)
9107 (parse_cli_boolean_value): Don't allow "o".
9108
dca0f6c0
PA
91092019-06-13 Pedro Alves <palves@redhat.com>
9110
9111 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9112 * NEWS: Mention maint test-settings KIND.
9113 * maint-test-settings.c: New file.
9114
597bf39d
PA
91152019-06-13 Pedro Alves <palves@redhat.com>
9116
9117 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9118 completer.
9119 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9120 "set" completers.
9121
48c410fb
PA
91222019-06-13 Pedro Alves <palves@redhat.com>
9123
9124 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9125 after item.
9126
93bcb043
PA
91272019-06-13 Pedro Alves <palves@redhat.com>
9128
9129 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9130
cbba3ecd
PA
91312019-06-13 Pedro Alves <palves@redhat.com>
9132
9133 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9134 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9135 call.
9136 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9137 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9138 calls.
9139 (check_for_argument): Skip spaces after argument.
9140
b9a3f842
PA
91412019-06-13 Pedro Alves <palves@redhat.com>
9142
9143 * thread.c (thread_apply_command): Adjust TID parsing.
9144 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9145 detected before end of string.
9146 (tid_is_in_list): Error out if LIST is invalid.
9147
3844e605
PA
91482019-06-13 Pedro Alves <palves@redhat.com>
9149
9150 * completer.c (complete_line_internal_1): Rewind completion word
9151 point.
9152 (completion_tracker::advance_custom_word_point_by): Change
9153 parameter type to int.
9154 * completer.h (completion_tracker::advance_custom_word_point_by):
9155 Likewise.
9156
00b56dbe
PA
91572019-06-13 Pedro Alves <palves@redhat.com>
9158
9159 * completer.c (advance_to_completion_word): Handle delimiters.
9160
d106773e
PA
91612019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9162
9163 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9164
08f10e02
TT
91652019-06-11 Tom Tromey <tom@tromey.com>
9166
9167 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9168 (xmalloc_failed): Move to alloc.c.
9169 * alloc.c: New file.
9170 * Makefile.in (COMMON_SFILES): Add alloc.c.
9171
1c7fe951
TT
91722019-06-11 Tom Tromey <tom@tromey.com>
9173
9174 * nat/linux-waitpid.c: Don't include server.h.
9175 (linux_debug): Remove.
9176 (my_waitpid): Update.
9177
89549d7f
TT
91782019-06-11 Tom Tromey <tromey@adacore.com>
9179
9180 * infcall.c (_initialize_infcall): Remove trailing newline from
9181 help.
9182 * user-regs.c (_initialize_user_regs): Remove trailing newline
9183 from help.
9184 * typeprint.c (_initialize_typeprint): Remove trailing newline
9185 from help.
9186 * reverse.c (_initialize_reverse): Remove trailing newlines from
9187 help.
9188 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9189 from help.
9190 * language.c (add_set_language_command): Remove trailing newline
9191 from help.
9192 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9193 help.
9194 * disasm.c (_initialize_disasm): Remove trailing newline from
9195 help.
9196 * top.c (init_main): Remove trailing newline from help.
9197 * interps.c (_initialize_interpreter): Remove trailing newline
9198 from help.
9199 * btrace.c (_initialize_btrace): Remove trailing newlines from
9200 help.
9201 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9202 from help.
9203 * python/python.c (_initialize_python): Remove trailing newline
9204 from help.
9205 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9206 help.
9207 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9208 from help. Reformat some text.
9209 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9210 from help.
9211 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9212 newline from help.
9213
86108c13
TT
92142019-06-11 Tom Tromey <tromey@adacore.com>
9215
9216 * darwin-nat.c (darwin_decode_exception_message)
9217 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9218
a7067863
AB
92192019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9220
9221 * valops.c (value_slice): Check for not allocated or not
9222 associated values.
9223
9ab08412
TV
92242019-06-10 Tom de Vries <tdevries@suse.de>
9225
9226 PR gdb/24618
9227 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9228 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9229 invalid.
9230
f19e22e9
TV
92312019-06-10 Tom de Vries <tdevries@suse.de>
9232
9233 PR gdb/24611
9234 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9235 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9236
e99f9db0
TV
92372019-06-10 Tom de Vries <tdevries@suse.de>
9238
9239 PR symtab/24545
9240 * symtab.c (struct demangled_name_entry): Add language field.
9241 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9242 static minimal symbol". Set and use language field.
9243
9bf7038b
TT
92442019-06-10 Tom Tromey <tromey@adacore.com>
9245
9246 * ada-lang.c (_initialize_ada_language): Update help text.
9247
422186a9
TT
92482019-06-10 Tom Tromey <tromey@adacore.com>
9249
9250 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9251 with a newline.
9252 * guile/guile.c (handle_boot_error): Don't end warning with a
9253 newline.
9254 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9255 warning with a newline.
9256 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9257 newline.
9258 (s12z_frame_cache): Likewise.
9259 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9260 a newline.
9261 * solib-svr4.c (disable_probes_interface): Don't end warning with
9262 a newline.
9263 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9264 newline.
9265 * python/python.c (do_finish_initialization): Don't end warning
9266 with a newline.
9267
25ce02ee
TT
92682019-06-10 Tom Tromey <tom@tromey.com>
9269
9270 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9271 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9272 gdbpy_enter.
9273
caa429d8
TT
92742019-06-10 Tom Tromey <tromey@adacore.com>
9275
9276 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9277 data.
9278 (elf_new_init): Don't call stabsread_new_init.
9279 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9280 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9281 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9282
81873cc8
TV
92832019-06-10 Tom de Vries <tdevries@suse.de>
9284
9285 PR symtab/16264
9286 PR symtab/24517
9287 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9288
4fa0265e
РИ
92892019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9290
9291 * source.c (find_and_open_source): Also rewrite relative file
9292 names.
9293
1a3da2cd
AB
92942019-04-26 Amos Bird <amosbird@gmail.com>
9295
9296 * annotate.c (annotate_thread_exited): Add "thread-exited"
9297 annotation.
9298
3847a7bf
TT
92992019-06-06 Tom Tromey <tromey@adacore.com>
9300
9301 * maint.h (class scoped_command_stats): Use
9302 DISABLE_COPY_AND_ASSIGN.
9303 <print_time>: New method.
9304 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9305 print_time.
9306 (scoped_command_stats::print_time): New method.
9307
312617a3
AB
93082019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9309
9310 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9311 instructions of lengths 6 or 8 bytes.
9312
b02f78f9
PA
93132019-06-04 Pedro Alves <palves@redhat.com>
9314
9315 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9316
9317 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9318 * breakpoint.c (condition_completer): Likewise.
9319 * cli/cli-dump.c (scan_expression): Likewise.
9320 * common/filestuff.c (mkdir_recursive): Likewise.
9321 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9322 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9323 (gdb_abspath): Likewise.
9324 * compile/compile-cplus-types.c
9325 (compile_cplus_instance::decl_name): Likewise.
9326 * completer.c (complete_explicit_location):
9327 (signal_completer, reg_or_group_completer_1): Likewise.
9328 * cp-support.c (cp_remove_params_if_any): Likewise.
9329 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9330 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9331 * infcmd.c (strip_bg_char): Likewise.
9332 * linespec.c (copy_token_string): Likewise.
9333 * mi/mi-main.c (output_cores): Likewise.
9334 * psymtab.c (psymtab_search_name):
9335 * symfile.c (test_set_ext_lang_command): Likewise.
9336 * target.c (target_fileio_read_stralloc): Likewise.
9337 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9338 * value.c (complete_internalvar): Likewise.
9339
e1f2e1a2
CB
93402019-06-04 Christian Biesinger <cbiesinger@google.com>
9341
9342 Add objfile property to gdb.Type.
d3238f7d
PA
9343 * NEWS: Mention Python API addition.
9344 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9345
e664d728
PW
93462019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9347
9348 * NEWS: Mention the new set|show style [title|highlight].
9349 Mention changes to "show style", "help" and "apropos".
9350
66d8c862
PW
93512019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9352
9353 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9354 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9355 instead of print_help_for_command.
9356 (print_doc_of_command): New function.
9357 (help_list): Add 'apropos -v word' suggestion.
9358 (print_help_for_command): Style the command name using title style.
9359 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9360 (_initialize_cli_cmds): Describe -v in apropos_command help.
9361
9303eb2f
PW
93622019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9363
9364 * cli/cli-style.h (cli_style_option): Add name in constructor,
9365 add m_name class member, add constructor with intensity,
9366 add name class function.
9367 (cli_style_option::add_setshow_commands): Remove name argument.
9368 (highlight_style, title_style): New styles.
9369 * cli/cli-style.c (do_show): New function that shows a style
9370 characteristic styling the style name with itself.
9371 (set_style_name): New function.
9372 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9373 Update all callers according to the changes in cli/cli-style.h.
9374 * utils.h (fputs_highlighted): New function.
9375 * utils.c (fputs_highlighted): Likewise.
9376
e2c52041
PW
93772019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9378
9379 * NEWS: Mention new pipe command and new convenience variables.
9380
947d3946
PW
93812019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9382
9383 * cli/cli-cmds.c (pipe_command): New function.
9384 (_initialize_cli_cmds): Call add_com for pipe_command.
9385 Define | as an alias for pipe.
9386 (exit_status_set_internal_vars): New function.
9387 (shell_escape): Call exit_status_set_internal_vars.
9388 cli/cli-decode.c (find_command_name_length): Recognize | as
9389 a single character command.
9390
b8fd0918
PW
93912019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9392
9393 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9394 top.c (execute_command_to_ui_file): New function, mostly a copy
9395 of execute_command_to_string.
9396 (execute_command_to_string): Implement by calling
9397 execute_command_to_ui_file.
9398
68bb5386
PW
93992019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9400
9401 * top.h (saved_command_line): Remove declaration.
9402 * top.c (previous_saved_command_line, previous_repeat_arguments):
9403 New variables.
9404 (saved_command_line): Make static, define together with other
9405 'repeat variables'.
9406 (dont_repeat): Clear repeat_arguments.
9407 (repeat_previous, get_saved_command_line, save_command_line):
9408 New functions.
9409 (gdb_init): Initialize saved_command_line
9410 and previous_saved_command_line.
9411 * main.c (captured_main_1): Remove saved_command_line initialization.
9412 * event-top.c (handle_line_of_input): Update to use
9413 the new 'repeat' related functions instead of direct access to
9414 saved_command_line.
9415 * command.h (repeat_previous, get_saved_command_line,
9416 save_command_line): New declarations.
9417 (dont_repeat): Add comment.
9418
bfcdb852
TT
94192019-05-30 Tom Tromey <tromey@adacore.com>
9420
9421 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9422 Fix comment.
9423 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9424
0ef209f2
JV
94252019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9426
9427 PR cli/24587
9428 * completer.c (complete): Initialize variable word.
9429
955b06fa
SDJ
94302019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9431
9432 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9433 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9434 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9435 'body' is NULL to the outter 'if', protecting the '!is_define'
9436 situation as well.
9437
fa9c3fa0
TT
94382019-05-29 Tom Tromey <tromey@adacore.com>
9439
9440 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9441 (dwarf_unknown): New function.
9442 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9443 (dwarf_type_encoding_name): Use dwarf_unknown.
9444
4330d61d
TT
94452019-05-29 Tom Tromey <tromey@adacore.com>
9446
9447 PR c++/20020:
9448 * cp-valprint.c (cp_print_value_fields): Call
9449 cp_print_static_field inside "try".
9450
33a6bc35
TT
94512019-05-29 Tom Tromey <tromey@adacore.com>
9452
9453 * inflow.c (struct terminal_info): Add default operator=.
9454 * configure: Rebuild.
9455 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9456 -Wdeprecated-copy-dtor, -Wredundant-move.
9457
000439d5
TT
94582019-05-29 Tom Tromey <tromey@adacore.com>
9459
9460 * NEWS: Add entry.
9461 * infcmd.c (print_return_value_1): Handle finish_print
9462 option.
9463 (show_print_finish): New function.
9464 (_initialize_infcmd): Add "set/show print finish" commands.
9465 * valprint.c (user_print_options): Initialize new member.
9466 * valprint.h (struct value_print_options) <finish_print>: New
9467 member.
9468
c0e70c62
TT
94692019-05-28 Tom Tromey <tromey@adacore.com>
9470
9471 * ada-lang.c (ada_remove_Xbn_suffix)
9472 (find_old_style_renaming_symbol)
9473 (parse_old_style_renaming): Remove.
9474 (ada_find_renaming_symbol): Don't call
9475 find_old_style_renaming_symbol.
9476 (ada_is_renaming_symbol): Rename from
9477 ada_find_renaming_symbol. Remove "block" parameter. Return
9478 bool. Now static.
9479 (ada_read_var_value): Update and simplify.
9480 * ada-exp.y (write_var_or_type): Remove old code.
9481
766f8836
AH
94822019-05-28 Alan Hayward <alan.hayward@arm.com>
9483
68255adc 9484 PR gdb/25010
766f8836
AH
9485 * event-top.c: Remove include comment.
9486 * inflow.c (class scoped_ignore_sigttou): Move from here...
9487 * inflow.h (class scoped_ignore_sigttou): ...to here.
9488 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9489 * top.c: Remove include comment.
9490
eb41253a
TT
94912019-05-27 Tom Tromey <tom@tromey.com>
9492
9493 * NEWS: Fix typo.
9494
4ca51187
TT
94952019-05-22 Tom Tromey <tromey@adacore.com>
9496
9497 * target.c (target_follow_exec): Constify parameter.
9498 * target-delegates.c: Rebuild.
9499 * remote.c (remote_target::follow_exec): Constify parameter.
9500 * infrun.c (follow_exec): Constify parameter.
9501 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9502 (target_follow_exec): Likewise.
9503
8fca4da0
AH
95042019-05-22 Alan Hayward <alan.hayward@arm.com>
9505
9506 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9507 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9508
b7060614
AH
95092019-05-22 Alan Hayward <alan.hayward@arm.com>
9510
9511 * NEWS: Add debugredirect and testsuite sections.
9512
0a5954bd
SC
95132019-05-22 Simon Cook <simon.cook@embecosm.com>
9514
9515 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9516 target descriptions using exclusively floating point register name
9517 aliases.
9518
dc42e902
AB
95192019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9520
9521 PR gdb/18644:
9522 * f-lang.c (build_fortran_types): Handle the case where
9523 gdbarch_floatformat_for_type returns a nullptr.
9524
fb7806c7
TV
95252019-05-21 Tom de Vries <tdevries@suse.de>
9526
9527 PR cli/24587
9528 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9529
34d11c68
AB
95302019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9531
9532 PR gdb/18644:
9533 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9534 16-byte floats.
9535 * i386-tdep.c (i386_floatformat_for_type): Use
9536 floatformats_ia64_quad for the 16-byte floating point component
9537 within a fortran 32-byte complex number.
9538
122cf0f2
AB
95392019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9540
9541 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9542 delete default constructor.
9543 (find_partial_die): Update to return const struct.
9544 (partial_die_parent_scope): Move variable declaration into scope
9545 of its use and change its type to auto.
9546 (guess_partial_die_structure_name): Likewise.
9547 (partial_die_info::fixup): Likewise.
9548
33d0e35a
TT
95492019-05-17 Tom Tromey <tromey@adacore.com>
9550
9551 * source.c (find_and_open_source): Remove cast.
9552
a45575b0
TT
95532019-05-17 Tom Tromey <tromey@adacore.com>
9554
9555 * annotate.c (annotate_source): Make "filename" const.
9556 * annotate.h (annotate_source): Use const.
9557
81f47ac2
AH
95582019-05-17 Alan Hayward <alan.hayward@arm.com>
9559
9560 * disasm.c (set_disassembler_options): Send errors to stderr.
9561
ca1285d1
AH
95622019-05-17 Alan Hayward <alan.hayward@arm.com>
9563
9564 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9565 (cli_interp_base::set_logging): Check debug_redirect.
9566 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9567 * cli/cli-logging.c (debug_redirect): Add static variable.
9568 (pop_output_files): Add default param.
9569 (handle_redirections): Print debug setting.
9570 (show_logging_command): Likewise.
9571 (_initialize_cli_logging): Add debugredirect command.
9572 * interps.c (current_interp_set_logging): Add debug_redirect
9573 parameter.
9574 * interps.h (set_logging): Add debug_redirect parameter.
9575 (current_interp_set_logging): Likewise.
9576 * mi/mi-common.h: Likewise.
9577 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9578
95792019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9580 Tom Tromey <tromey@adacore.com>
9581
9582 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9583 directly.
9584 * cli/cli-interp.h (make_logging_output): Remove declaration.
9585 * cli/cli-logging.c (make_logging_output): Remove function.
9586 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9587 directly.
9588 * ui-file.c (tee_file::tee_file): Remove bools.
9589 (tee_file::~tee_file): Remove deletes.
9590 * ui-file.h (tee_file): Remove bools.
9591
26648588
JV
95922019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9593
9594 * mi/mi-cmds.h (mi_cmd_complete): New function.
9595 * mi/mi-main.c (mi_cmd_complete): Likewise.
9596 * mi/mi-cmds.c: Define new MI command -complete.
9597 * NEWS: Mention new -complete command.
9598
6e035501
JV
95992019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9600
9601 * completer.h (complete): New function.
9602 * completer.c (complete): Likewise.
9603 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9604 function defined in completer.h.
9605
7d0e2ece
JV
96062019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9607
e79be6e5 9608 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9609
fb816e8b
TV
96102019-05-17 Tom de Vries <tdevries@suse.de>
9611
9612 PR gdb/24094
9613 * dwarf2read.c (struct cu_partial_die_info): New struct.
9614 (find_partial_die): Return cu_partial_die_info.
9615 (partial_die_parent_scope, guess_partial_die_structure_name)
9616 (partial_die_info::fixup): Handle new return type of find_partial_die.
9617
677052f2
SDJ
96182019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9619
a1726c38 9620 PR breakpoints/24541
677052f2
SDJ
9621 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9622 "std::string", simplifying the algorithm.
9623
f3da9116
SDJ
96242019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9625
9626 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9627 (stap_static_probe_ops::get_probes): Likewise.
9628
f1bb75ab
SDJ
96292019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9630
9631 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9632 '-')" and "else if".
9633 (stap_parse_single_operand): Join checks for
9634 "gdbarch_stap_parse_special_token_p" and
9635 "gdbarch_stap_parse_special_token" in the same "if" statement.
9636 Invert check when verifying for operation on register
9637 displacement.
9638
3ca58cde
SDJ
96392019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9640
9641 * stap-probe.c (stap_get_opcode): Update comment.
9642 (stap_get_expected_argument_type): Likewise.
9643 (handle_stap_probe): Likewise.
9644
af2d9bee
SDJ
96452019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9646
9647 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9648 return type to 'bool'. Adjust comment. Use 'bool' when
9649 appropriate.
9650 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9651 * stap-probe.c (stap_parse_argument_1): Likewise.
9652 (stap_is_operator): Likewise.
9653 (stap_is_generic_prefix): Likewise.
9654 (stap_is_register_prefix): Likewise.
9655 (stap_is_register_indirection_prefix): Likewise.
9656 (stap_is_integer_prefix): Likewise.
9657 (stap_generic_check_suffix): Likewise.
9658 (stap_check_integer_suffix): Likewise.
9659 (stap_check_register_suffix): Likewise.
9660 (stap_check_register_indirection_suffix): Likewise.
9661 (stap_parse_register_operand): Likewise.
9662 (stap_parse_single_operand): Likewise.
9663 (stap_parse_argument_1): Likewise.
9664 (stap_probe::get_argument_count): Likewise.
9665 (stap_is_operator): Likewise.
9666
61c9c421
TT
96672019-05-16 Tom Tromey <tromey@adacore.com>
9668
9669 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9670 keyword to foreach.
9671
9ddc1af1
SM
96722019-05-15 Simon Marchi <simon.marchi@efficios.com>
9673
9674 * linux-thread-db.c (try_thread_db_load_1): Change return type
9675 to bool.
9676 (try_thread_db_load): Likewise.
9677 (try_thread_db_load_from_pdir_1): Likewise.
9678 (try_thread_db_load_from_pdir): Likewise.
9679 (try_thread_db_load_from_sdir): Likewise.
9680 (try_thread_db_load_from_dir): Likewise.
9681 (thread_db_load_search): Likewise.
9682 (has_libpthread): Likewise.
9683 (thread_db_load): Likewise.
9684
7bede828
SDJ
96852019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9686
9687 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9688 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9689 NULL, and complain/return if that's the case.
9690
c5358db4
JD
96912019-05-15 John Darrington <john@darrington.wattle.id.au>
9692
9693 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9694 (advance, posn, abstract_read_memory): New functions.
9695 [struct mem_read_abstraction]: New struct.
9696 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9697
c408a94f
TT
96982019-05-14 Tom Tromey <tromey@adacore.com>
9699
9700 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9701 value is not lval_memory.
9702
e7bd7fba
TT
97032019-05-14 Tom Tromey <tromey@adacore.com>
9704
9705 * solib.c (info_sharedlibrary_command): Style the file name.
9706
a6d0f249
AH
97072019-05-14 Alan Hayward <alan.hayward@arm.com>
9708
9709 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9710 (aarch64_vnv_type): Likewise.
9711 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9712 * common/tdesc.c: Likewise.
9713 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9714 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9715 * features/aarch64-fpu.xml: Add ieee half view.
9716 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9717 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9718 * gdbtypes.h (struct builtin_type): Likewise.
9719 (struct objfile_type): Likewise.
9720
66b8bb74
SM
97212019-05-12 Paul Naert <paul.naert@polymtl.ca>
9722
9723 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9724 typo.
9725 * location.h (string_to_event_location): Likewise.
9726
21c219fd
JB
97272019-05-11 Joel Brobecker <brobecker@adacore.com>
9728
9729 GDB 8.3 released.
9730
13674803
SM
97312019-05-10 Simon Marchi <simon.marchi@efficios.com>
9732
9733 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9734 New variable declaration.
9735 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9736 New variable.
9737 (print_one_breakpoint): Use ui_out::test_flags and new global
9738 variable to compute use_fixed_output.
9739 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9740 Remove.
9741 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9742 (mi_multi_location_breakpoint_output_fixed): Remove.
9743 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9744 new variable.
9745 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9746 fix_multi_location_breakpoint_output flag if version >= 3.
9747 * ui-out.h (enum ui_out_flag)
9748 <fix_multi_location_breakpoint_output>: New enumerator.
9749
a9eac7f9
SM
97502019-05-10 Simon Marchi <simon.marchi@efficios.com>
9751
9752 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9753
71bed2db
TT
97542019-05-10 Tom Tromey <tromey@adacore.com>
9755
9756 * ada-lang.c (catch_ada_completer): New function.
9757 (_initialize_ada_language): Use it.
9758
24c54127
TT
97592019-05-10 Tom Tromey <tromey@adacore.com>
9760
9761 * thread.c (print_thread_info): Make "requested_threads" const.
9762 * gdbthread.h (print_thread_info): Make "requested_threads"
9763 const.
9764 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9765 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9766
7a102139
TT
97672019-05-08 Tom Tromey <tom@tromey.com>
9768
9769 * gdbtypes.c (objfile_type_data): Change type.
9770 (objfile_type, _initialize_gdbtypes): Update.
9771
924d79e2
TT
97722019-05-08 Tom Tromey <tom@tromey.com>
9773
9774 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9775 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9776 (_initialize_dwarf2_frame): Update.
9777
4c58e337
TT
97782019-05-08 Tom Tromey <tom@tromey.com>
9779
9780 * objc-lang.c (objc_objfile_data): Change type.
9781 (find_methods): Update.
9782 (_initialize_objc_lang): Remove.
9783
d772d2ab
TT
97842019-05-08 Tom Tromey <tom@tromey.com>
9785
9786 * stabsread.c (rs6000_builtin_type_data): Change type.
9787 (rs6000_builtin_type, _initialize_stabsread): Update.
9788
d11d83f4
TT
97892019-05-08 Tom Tromey <tom@tromey.com>
9790
9791 * mips-tdep.c (mips_pdr_data): Remove.
9792 (_initialize_mips_tdep): Update.
9793
9a73f0ad
TT
97942019-05-08 Tom Tromey <tom@tromey.com>
9795
9796 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9797 (hppa_init_objfile_priv_data, read_unwind_info)
9798 (find_unwind_entry, _initialize_hppa_tdep): Update.
9799
8127a2fa
TT
98002019-05-08 Tom Tromey <tom@tromey.com>
9801
9802 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9803 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9804 on obstack.
9805 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9806
91d3055d
TT
98072019-05-08 Tom Tromey <tom@tromey.com>
9808
9809 * mdebugread.c (basic_type_data): Change type.
9810 (basic_type, _initialize_mdebugread): Update.
9811
31930bd3
TT
98122019-05-08 Tom Tromey <tom@tromey.com>
9813
9814 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9815
bdb3ed9e
TT
98162019-05-08 Tom Tromey <tom@tromey.com>
9817
9818 * nto-tdep.c (nto_inferior_data_reg): Change type.
9819 (nto_inferior_data): Update.
9820 (nto_inferior_data_cleanup, nto_new_inferior_data)
9821 (_initialize_nto_tdep): Remove.
9822 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9823
f37b313d
TT
98242019-05-08 Tom Tromey <tom@tromey.com>
9825
9826 * ada-lang.c (struct ada_inferior_data): Add initializers.
9827 (ada_inferior_data): Change type.
9828 (ada_inferior_data_cleanup): Remove.
9829 (get_ada_inferior_data, ada_inferior_exit)
9830 (struct ada_pspace_data): Add initializers, destructor.
9831 (ada_pspace_data_handle): Change type.
9832 (get_ada_pspace_data): Update.
9833 (ada_pspace_data_cleanup): Remove.
9834
24699405
TT
98352019-05-08 Tom Tromey <tom@tromey.com>
9836
9837 * coffread.c (struct coff_symfile_info): Add initializers.
9838 (coff_objfile_data_key): Move lower. Change type.
9839 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9840 Update.
9841 (coff_free_info): Remove.
9842
d4e05d2f
TT
98432019-05-08 Tom Tromey <tom@tromey.com>
9844
9845 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9846 (fbsd_pspace_data_handle): Move lower. Change type.
9847 (get_fbsd_pspace_data): Update.
9848 (fbsd_pspace_data_cleanup): Remove.
9849 (_initialize_fbsd_tdep): Update.
9850
14ef6690
TT
98512019-05-08 Tom Tromey <tom@tromey.com>
9852
9853 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9854 (get_ada_tasks_pspace_data): Update.
9855 (ada_tasks_pspace_data_cleanup): Remove.
9856 (_initialize_tasks): Update.
9857 (ada_tasks_inferior_data_handle): Change type.
9858 (get_ada_tasks_inferior_data): Update.
9859 (ada_tasks_inferior_data_cleanup): Remove.
9860 (struct ada_tasks_pspace_data): Add initializers.
9861
814cf43a
TT
98622019-05-08 Tom Tromey <tom@tromey.com>
9863
9864 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9865 * symfile-debug.c (debug_sym_get_probes): Change type.
9866 * stap-probe.c (handle_stap_probe):
9867 (stap_static_probe_ops::get_probes): Change type.
9868 * probe.h (class static_probe_ops) <get_probes>: Change type.
9869 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9870 (parse_probes_in_pspace): Update.
9871 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9872 Update.
9873 (any_static_probe_ops::get_probes): Change type.
9874 * elfread.c (elfread_data): New typedef.
9875 (probe_key): Change type.
9876 (elf_get_probes): Likewise. Update.
9877 (probe_key_free): Remove.
9878 (_initialize_elfread): Update.
9879 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9880 Change type.
9881 (dtrace_process_dof_probe, dtrace_process_dof)
9882 (dtrace_static_probe_ops::get_probe): Change type.
9883
02dc647e
TT
98842019-05-08 Tom Tromey <tom@tromey.com>
9885
9886 * xcoffread.c (struct xcoff_symfile_info): Rename from
9887 coff_symfile_info. Add initializers.
9888 (xcoff_objfile_data_key): Move lower. Change type.
9889 (XCOFF_DATA): Rewrite.
9890 (xcoff_free_info): Remove.
9891 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9892 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9893 (xcoff_initial_scan): Update.
9894
09232438
TT
98952019-05-08 Tom Tromey <tom@tromey.com>
9896
9897 * solib-svr4.c (struct svr4_info): Add initializers and
9898 destructor.
9899 <probes_table>: Now an htab_up.
9900 (solib_svr4_pspace_data): Change type.
9901 (free_probes_table): Simplify.
9902 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9903 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9904 (probes_table_remove_objfile_probes, register_solib_event_probe)
9905 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9906 (_initialize_svr4_solib): Update.
9907
7b4a314f
TT
99082019-05-08 Tom Tromey <tom@tromey.com>
9909
9910 * remote.c (remote_pspace_data): Change type.
9911 (remote_pspace_data_cleanup): Remove.
9912 (get_remote_exec_file, set_pspace_remote_exec_file)
9913 (_initialize_remote): Update.
9914
51d3063a
TT
99152019-05-08 Tom Tromey <tom@tromey.com>
9916
9917 * breakpoint.c (breakpoint_objfile_key): Change type.
9918 (get_breakpoint_objfile_data): Update.
9919 (free_breakpoint_objfile_data): Remove.
9920 (_initialize_breakpoint): Update.
9921
89fb8848
TT
99222019-05-08 Tom Tromey <tom@tromey.com>
9923
9924 * linux-tdep.c (struct linux_info): Add initializers.
9925 (linux_inferior_data): Move. Change type.
9926 (invalidate_linux_cache_inf): Update.
9927 (linux_inferior_data_cleanup): Remove.
9928 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9929
e9b89e2d
TT
99302019-05-08 Tom Tromey <tom@tromey.com>
9931
9932 * auxv.c (auxv_inferior_data): Move. Change type.
9933 (auxv_inferior_data_cleanup): Remove.
9934 (invalidate_auxv_cache_inf): Rewrite.
9935 (get_auxv_inferior_data, _initialize_auxv): Update.
9936
8c42777c
TT
99372019-05-08 Tom Tromey <tom@tromey.com>
9938
9939 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9940 (symfile_debug_objfile_data_key): Change type.
9941 (symfile_debug_installed, debug_qf_has_symbols)
9942 (debug_qf_find_last_source_symtab)
9943 (debug_qf_forget_cached_source_info)
9944 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9945 (debug_qf_print_stats, debug_qf_dump)
9946 (debug_qf_expand_symtabs_for_function)
9947 (debug_qf_expand_all_symtabs)
9948 (debug_qf_expand_symtabs_with_fullname)
9949 (debug_qf_map_matching_symbols)
9950 (debug_qf_expand_symtabs_matching)
9951 (debug_qf_find_pc_sect_compunit_symtab)
9952 (debug_qf_map_symbol_filenames)
9953 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9954 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9955 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9956 (debug_sym_read_linetable, debug_sym_relocate): Update.
9957 (symfile_debug_free_objfile): Remove.
9958 (install_symfile_debug_logging, _initialize_symfile_debug):
9959 Update.
9960
5bfd760d
TT
99612019-05-08 Tom Tromey <tom@tromey.com>
9962
9963 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9964 allocate_on_obstack.
9965 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9966 (get_dwarf2_per_objfile): Update.
9967 (set_dwarf2_per_objfile): Remove.
9968 (dwarf2_has_info, dwarf2_get_section_info): Update.
9969 (dwarf2_free_objfile): Remove.
9970 (_initialize_dwarf2_read): Update.
9971
e85e19b4
TT
99722019-05-08 Tom Tromey <tom@tromey.com>
9973
9974 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9975 initializers.
9976 <unsupported_script_warning_printed,
9977 script_not_found_warning_printed>: Now bool.
9978 (auto_load_pspace_data): Change type.
9979 (~auto_load_pspace_info): Rename from
9980 auto_load_pspace_data_cleanup.
9981 (get_auto_load_pspace_data, init_loaded_scripts_info)
9982 (clear_section_scripts, maybe_print_unsupported_script_warning)
9983 (maybe_print_script_not_found_warning, _initialize_auto_load):
9984 Update.
9985
f6aa7436
TT
99862019-05-08 Tom Tromey <tom@tromey.com>
9987
9988 * objfiles.c (objfile_pspace_info): Add destructor and
9989 initializers.
9990 (objfiles_pspace_data): Change type.
9991 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9992 (get_objfile_pspace_data): Update.
9993 (objfiles_bfd_data): Change type.
9994 (get_objfile_bfd_data): Update.
9995 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9996
6ae614f6
TT
99972019-05-08 Tom Tromey <tom@tromey.com>
9998
9999 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10000 Change type.
10001 (get_catch_syscall_inferior_data): Update.
10002 (catch_syscall_inferior_data_cleanup): Remove.
10003 (_initialize_break_catch_syscall): Update.
10004
6509b8eb
TT
100052019-05-08 Tom Tromey <tom@tromey.com>
10006
10007 * inflow.c (struct terminal_info): Add destructor and
10008 initializers.
10009 (inflow_inferior_data): Change type.
10010 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10011 (get_inflow_inferior_data, inflow_inferior_exit)
10012 (swap_terminal_info, _initialize_inflow): Update.
10013
35632941
TT
100142019-05-08 Tom Tromey <tom@tromey.com>
10015
10016 * target-dcache.c (target_dcache_cleanup): Remove.
10017 (target_dcache_aspace_key): Change type.
10018 (target_dcache_init_p, target_dcache_invalidate)
10019 (target_dcache_get, target_dcache_get_or_init)
10020 (_initialize_target_dcache): Update.
10021 * dcache.h (struct dcache_deleter): New.
10022
3017b94d
TT
100232019-05-08 Tom Tromey <tom@tromey.com>
10024
10025 * symtab.c (struct symbol_cache): Add destructor and
10026 initializers.
10027 (symbol_cache_key): Move. Change type.
10028 (make_symbol_cache, free_symbol_cache): Remove.
10029 (get_symbol_cache): Update.
10030 (symbol_cache_cleanup): Remove.
10031 (ALL_PSPACES, symbol_cache_flush)
10032 (maintenance_print_symbol_cache)
10033 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10034 Update.
10035
a32ad8c5
TT
100362019-05-08 Tom Tromey <tom@tromey.com>
10037
10038 * symtab.c (struct main_info): Add destructor and initializers.
10039 (main_progspace_key): Move. Change type.
10040 (get_main_info): Update.
10041 (main_info_cleanup): Remove.
10042 (_initialize_symtab): Update.
10043
5f6e90a0
TT
100442019-05-08 Tom Tromey <tom@tromey.com>
10045
10046 * registry.h (DECLARE_REGISTRY): Define the _key class.
10047
1bd0c6e4
AB
100482019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10049
10050 * NEWS: Merge two 'New commands' sections.
10051
2228ef77
XR
100522019-05-08 Joel Brobecker <brobecker@adacore.com>
10053
10054 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10055 parameter and use Ada language definition instead.
10056 (ada_val_print_ptr): Remove unused language parameter.
10057 (ada_val_print_num): Remove language parameter and use Ada language
10058 definition instead.
10059 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10060 parameter.
10061 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10062 parameter and use Ada language definition instead.
10063 (ada_val_print_1): Update all ada_val_print_xxx calls.
10064 Remove language parameter.
10065 (ada_val_print): Update ada_val_print_1 call.
10066
60fcc1c3
TT
100672019-05-08 Tom Tromey <tromey@adacore.com>
10068
10069 * remote.c (remote_hw_watchpoint_limit)
10070 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10071 Now static.
10072
ed2b7c17
TT
100732019-05-08 Tom Tromey <tromey@adacore.com>
10074
10075 * maint.c (_initialize_maint_cmds): Move initialization code to
10076 remote.c.
10077 (watchdog, show_watchdog): Move to remote.c.
10078 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10079 "watchdog" static.
10080 (_initialize_remote): Move initialization code from maint.c.
10081 * defs.h (watchdog): Don't declare.
10082
b0be6c91
TT
100832019-05-08 Tom Tromey <tromey@adacore.com>
10084
10085 * tui/tui-interp.c: Include main.h.
10086 * interps.c: Include main.h.
10087 * main.h (interpreter_p): Declare.
10088 * defs.h (interpreter_p): Don't declare.
10089
587ee17b
TT
100902019-05-08 Tom Tromey <tromey@adacore.com>
10091
10092 * dwarf2loc.c: Include dwarf2read.h.
10093 * defs.h (read_unsigned_leb128): Don't declare.
10094 * dwarf2read.h (read_unsigned_leb128): Declare.
10095
ca1df239
TT
100962019-05-08 Tom Tromey <tromey@adacore.com>
10097
10098 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10099 method.
10100
99f20f08
TT
101012019-05-08 Tom Tromey <tromey@adacore.com>
10102
10103 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10104 when no wrap column is set.
10105
80e55b13
TT
101062019-05-08 Tom Tromey <tromey@adacore.com>
10107
10108 * c-lang.c (c_get_string): Handle non-C-style arrays.
10109
9d3421af
TT
101102019-05-08 Tom Tromey <tromey@adacore.com>
10111
10112 * typeprint.c (print_offset_data::update): Print the bit offset,
10113 not the number of bits remaining.
10114
844333e2
TT
101152019-05-08 Tom Tromey <tromey@adacore.com>
10116
10117 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10118 padding at end of comment.
10119
988915ee
TT
101202019-05-08 Tom Tromey <tromey@adacore.com>
10121
10122 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10123 Compare main types.
10124
26bfd823
TT
101252019-05-06 Tom Tromey <tom@tromey.com>
10126
10127 * common/scoped_mmap.c: Include common-defs.h.
10128 * common/scoped_mmap.h: Don't include config.h.
10129
89055eaa
TT
101302019-05-04 Tom Tromey <tom@tromey.com>
10131
10132 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10133 (struct aarch64_call_info): Add initializers.
10134 <si>: Now a std::vector.
10135 (pass_on_stack, aarch64_push_dummy_call): Update.
10136
5da01df5
TT
101372019-05-04 Simon Marchi <simon.marchi@efficios.com>
10138 Tom Tromey <tom@tromey.com>
10139
10140 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10141 (ppc_threads): Now a std::vector. Now static.
10142 (hwdebug_find_thread_points_by_tid)
10143 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10144 Update.
10145
fbdf05a1
TT
101462019-05-04 Tom Tromey <tom@tromey.com>
10147
10148 * arc-tdep.c (arc_tdesc_init): Return bool.
10149
06d16ec9
TT
101502019-05-04 Tom Tromey <tom@tromey.com>
10151
10152 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10153 Use gdb_assert_not_reached.
10154
9c056022
TT
101552019-05-04 Tom Tromey <tom@tromey.com>
10156
10157 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10158 "false".
10159
fa9c2a59
TT
101602019-05-04 Tom Tromey <tom@tromey.com>
10161
10162 * arc-tdep.c (arc_tdesc_init): Use bool.
10163
e2eb806a
TT
101642019-05-04 Tom Tromey <tom@tromey.com>
10165
10166 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10167
6fe87677
TT
101682019-05-04 Tom Tromey <tom@tromey.com>
10169
10170 * cli/cli-cmds.c (valid_command_p): Return bool.
10171
7f008c9e
TT
101722019-05-04 Tom Tromey <tom@tromey.com>
10173
10174 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10175 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10176
b6484282
RT
101772019-05-04 Raul Tambre <raul@tambre.ee>
10178
10179 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10180 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10181 operator for comparison.
10182
af97b416
TT
101832019-05-04 Tom Tromey <tom@tromey.com>
10184
10185 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10186 (lookup_partial_symbol, print_partial_symbols)
10187 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10188 (psymbol_compare): Update.
10189 (add_psymbol_to_bcache): Clear the entire psymbol.
10190 (maintenance_check_psymtabs): Update.
10191 * psympriv.h (struct partial_symbol): Don't derive from
10192 general_symbol_info.
10193 <obj_section, unrelocated_address, address,
10194 set_unrelocated_address>: Update.
10195 <ginfo>: New member.
10196 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10197 (debug_names::write_psymbols): Update.
10198
9d6d4be8
TV
101992019-05-04 Tom de Vries <tdevries@suse.de>
10200
10201 * contrib/cc-with-tweaks.sh: Support -n arg.
10202
66452beb
PW
102032019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10204
10205 * corelow.c (core_target::detach): Ensure frame cache and
10206 register caches are cleared.
10207 inferior.c (exit_inferior_1): Likewise.
10208
bde09ab7
TT
102092019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10210 Tom Tromey <tom@tromey.com>
10211
10212 * dictionary.c (collate_pending_symbols_by_language): Remove
10213 "struct" from foreach.
10214 * symtab.c (lookup_global_symbol_from_objfile)
10215 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10216 foreach.
10217 * ser-tcp.c (net_open): Remove "struct" from foreach.
10218 * objfiles.c (objfile_relocate, objfile_rebase)
10219 (objfile_has_symbols): Remove "struct" from foreach.
10220 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10221 from foreach.
10222 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10223 foreach.
10224 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10225 "struct" from foreach.
10226 * ada-lang.c (create_excep_cond_exprs)
10227 (ada_exception_catchpoint_cond_string): Remove "struct" from
10228 foreach.
10229
222a8d25
TT
102302019-05-03 Tom Tromey <tromey@adacore.com>
10231
10232 * ada-exp.y (convert_char_literal): Check suffix of each
10233 enumerator.
10234
fcd60b84
DP
102352019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10236
10237 PR ada/21406:
10238 * ada-exp.y (yywrap): Don't define.
10239 * ada-lex.l (%option): Add noyywrap
10240 (yywrap): Remove.
10241
5f2459c2
EZ
102422019-05-03 Eli Zaretskii <eliz@gnu.org>
10243
353ea2d1
EZ
10244 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10245 _WIN32_WINNT to the XP level, unless already defined to a higher
10246 level.
10247
10248 * unittests/parse-connection-spec-selftests.c:
10249 * ser-tcp.c:
10250 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10251 override.
10252
5f2459c2
EZ
10253 * symfile.c (find_separate_debug_file): Remove colon from the
10254 drive spec of DOS/Windows file names of the target, so that the
10255 file name produced from DEBUGDIR and the target's directory will
10256 be valid on DOS/Windows systems.
10257
80062eb9
AB
102582019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10259
10260 * rust-lang.c (val_print_struct): Handle printing structures
10261 containing strings.
10262
b8c05e85
TT
102632019-05-02 Tom Tromey <tromey@adacore.com>
10264
10265 * valarith.c (_initialize_valarith): Remove.
10266
4504bbde
TT
102672019-05-01 Tom Tromey <tromey@adacore.com>
10268
10269 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10270 bitfields.
10271
d48e62f4
TT
102722019-05-01 Tom Tromey <tromey@adacore.com>
10273
10274 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10275 for big-endian copies.
10276
15f18d14
AT
102772019-04-30 Ali Tamur <tamur@google.com>
10278 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10279 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10280 (read_3_bytes): New function.
10281
ab4ee614
JB
102822019-04-30 Joel Brobecker <brobecker@adacore.com>
10283
10284 * windows-nat.c (main_thread_id): Delete.
10285 (handle_output_debug_string): Replace main_thread_id by
10286 current_event.dwThreadId.
10287 (fake_create_process): Likewise.
10288 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10289 Do not set main_thread_id.
10290 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10291 current_event.dwThreadId.
10292 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10293
8ed5b76e
JB
102942019-04-30 Joel Brobecker <brobecker@adacore.com>
10295
10296 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10297 Use current_event.dwThreadId instead of main_thread_id.
10298
2ff0a947
TT
102992019-04-30 Tom Tromey <tromey@adacore.com>
10300
10301 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10302 (create_excep_cond_exprs): Iterate over program spaces.
10303 (ada_exception_catchpoint_cond_string): Examine all minimal
10304 symbols for exception types.
10305
a776957c
TT
103062019-04-30 Tom Tromey <tromey@adacore.com>
10307
10308 PR c++/24470:
10309 * dwarf2read.c (process_structure_scope): Handle case where type
10310 has template parameters but no symbol was created.
10311
bc68014d
AB
103122019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10313 Chris January <chris.january@arm.com>
10314
10315 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10316 qualifier.
10317 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10318
f1fdc960
AB
103192019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10320
10321 * f-typeprint.c (f_print_type): Update rules for printing
10322 whitespace.
10323 (f_type_print_varspec_suffix): Likewise.
10324
bf7a4de1
AB
103252019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10326 Chris January <chris.january@arm.com>
10327
10328 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10329 function arguments.
10330
bbe75b9d
AB
103312019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10332
10333 * f-lang.c (build_fortran_types): Change name of void type to
10334 lower case.
10335 * f-typeprint.c (f_type_print_base): Print the name of the void
10336 type, rather than a fixed string.
10337 * f-valprint.c (f_decorations): Use lower case void string.
10338
1db455a7
AB
103392019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10340 Chris January <chris.january@arm.com>
10341
10342 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10343 types for Fortran.
10344
b6d03bb2
AB
103452019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10346 Chris January <chris.january@arm.com>
10347 David Lecomber <david.lecomber@arm.com>
10348
10349 * f-exp.y (BINOP_INTRINSIC): New token.
10350 (exp): New parser rule handling BINOP_INTRINSIC.
10351 (f77_keywords): Add new builtin procedures.
10352 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10353 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10354 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10355 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10356 (print_unop_subexp_f): New function.
10357 (print_binop_subexp_f): New function.
10358 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10359 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10360 (dump_subexp_body_f): Likewise.
10361 (operator_check_f): Likewise.
10362 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10363 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10364
83228e93
AB
103652019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10366
10367 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10368 UNOP_KIND.
10369 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10370 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10371 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10372 (operator_length_f): New fuction.
10373 (print_subexp_f): New function.
10374 (op_name_f): New function.
10375 (dump_subexp_body_f): New function.
10376 (operator_check_f): New function.
10377 (exp_descriptor_f): Replace standard expression handling functions
10378 with new functions.
10379 * gdb/fortran-operator.def: New file.
10380 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10381 * gdb/std-operator.def: Remove UNOP_KIND.
10382
6fdcd7cc
AB
103832019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10384
10385 * std-operator.def: Remove unbalanced, stray double quote
10386 character.
10387
2e62ab40
AB
103882019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10389 Chris January <chris.january@arm.com>
10390 Daniel Everett <daniel.everett@arm.com>
10391 Nick Forrington <nick.forrington@arm.com>
10392 Richard Bunt <richard.bunt@arm.com>
10393
10394 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10395 of depth when printing anonymous structs or unions.
10396 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10397 Don't print either the top-level value, or the children if the
10398 max-depth is exceeded.
10399 (ppscm_print_children): When printing the key of a map, allow one
10400 extra level of depth.
10401 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10402 print either the top-level value, or the children if the max-depth
10403 is exceeded.
10404 (print_children): When printing the key of a map, allow one extra
10405 level of depth.
10406 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10407 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10408 (user_print_options): Initialise max_depth field.
10409 (val_print_scalar_or_string_type_p): New function.
10410 (val_print): Check to see if the max depth has been reached.
10411 (val_print_check_max_depth): Define new function.
10412 (show_print_max_depth): New function.
10413 (_initialize_valprint): Add 'print max-depth' option.
10414 * valprint.h (struct value_print_options) <max_depth>: New field.
10415 (val_print_check_max_depth): Declare new function.
10416 * NEWS: Document new feature.
10417
4be290b2
AB
104182019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10419
10420 * ada-lang.c (ada_language_defn): Initialise new field.
10421 * c-lang.c (c_is_string_type_p): New function.
10422 (c_language_defn): Initialise new field.
10423 (cplus_language_defn): Initialise new field.
10424 (asm_language_defn): Initialise new field.
10425 (minimal_language_defn): Initialise new field.
10426 * c-lang.h (c_is_string_type_p): Declare new function.
10427 * d-lang.c (d_language_defn): Initialise new field.
10428 * f-lang.c (f_is_string_type_p): New function.
10429 (f_language_defn): Initialise new field.
10430 * go-lang.c (go_is_string_type_p): New function.
10431 (go_language_defn): Initialise new field.
10432 * language.c (default_is_string_type_p): New function.
10433 (unknown_language_defn): Initialise new field.
10434 (auto_language_defn): Initialise new field.
10435 * language.h (struct language_defn) <la_is_string_type_p>: New
10436 member variable.
10437 (default_is_string_type_p): Declare new function.
10438 * m2-lang.c (m2_language_defn): Initialise new field.
10439 * objc-lang.c (objc_language_defn): Initialise new field.
10440 * opencl-lang.c (opencl_language_defn): Initialise new field.
10441 * p-lang.c (pascal_is_string_type_p): New function.
10442 (pascal_language_defn): Initialise new field.
10443 * rust-lang.c (rust_is_string_type_p): New function.
10444 (rust_language_defn): Initialise new field.
10445
721b08c6
AB
104462019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10447
10448 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10449 New field.
10450 * ada-lang.c (ada_language_defn): Initialise new field.
10451 * c-lang.c (c_language_defn): Likewise.
10452 (cplus_language_defn): Likewise.
10453 (asm_language_defn): Likewise.
10454 (minimal_language_defn): Likewise.
10455 * d-lang.c (d_language_defn): Likewise.
10456 * f-lang.c (f_language_defn): Likewise.
10457 * go-lang.c (go_language_defn): Likewise.
10458 * language.c (unknown_language_defn): Likewise.
10459 (auto_language_defn): Likewise.
10460 * m2-lang.c (m2_language_defn): Likewise.
10461 * objc-lang.c (objc_language_defn): Likewise.
10462 * opencl-lang.c (opencl_language_defn): Likewise.
10463 * p-lang.c (pascal_language_defn): Likewise.
10464 * rust-lang.c (rust_language_defn): Likewise.
10465
fc913e53
AB
104662019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10467
10468 * ada-lang.c (ada_is_character_type): Change return type to bool.
10469 (ada_is_string_type): Likewise.
10470 * ada-lang.h (ada_is_character_type): Update declaration
10471 (ada_is_string_type): Likewise.
10472
fa731fa0
PW
104732019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10474
10475 Support style in 'frame|thread apply'
10476
10477 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10478 * record.c (record_start, record_stop): Update callers of
10479 execute_command_to_string with false.
10480 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10481 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10482 methods.
10483 (class string_file): New constructor with term_out parameter.
10484 Override methods term_out and can_emit_style_escape. New member
10485 term_out.
10486 (class stdio_file): Override can_emit_style_escape.
10487 (class tee_file): Override term_out and can_emit_style_escape.
10488 * utils.h (can_emit_style_escape): Remove.
10489 * utils.c (can_emit_style_escape): Likewise.
10490 Update all callers of can_emit_style_escape (SOMESTREAM) to
10491 SOMESTREAM->can_emit_style_escape.
10492 * source-cache.c (source_cache::get_source_lines): Likewise.
10493 * stack.c (frame_apply_command_count): Call execute_command_to_string
10494 passing the term_out characteristic of the current gdb_stdout.
10495 * thread.c (thr_try_catch_cmd): Likewise.
10496 * top.c (execute_command_to_string): pass term_out parameter
10497 to construct the string_file for the command output.
10498 * ui-file.c (term_cli_styling): New function (most code moved
10499 from utils.c can_emit_style_escape).
10500 (string_file::string_file, string_file::can_emit_style_escape,
10501 stdio_file::can_emit_style_escape, tee_file::term_out,
10502 tee_file::can_emit_style_escape): New functions.
10503
136afab8
PW
105042019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10505
10506 * NEWS: Mention the new set|show may-call-functions.
10507 * infcall.c (may_call_functions_p): New variable.
10508 (show_may_call_functions_p): New function.
10509 (call_function_by_hand_dummy): Throws an error if not
10510 may-call-functions.
10511 (_initialize_infcall): Call add_setshow_boolean_cmd for
10512 may-call-functions.
10513
725cbb63
KS
105142019-04-25 Keith Seitz <keiths@redhat.com>
10515
10516 PR c++/24367
10517 * cp-support.c (inspect_type): Don't attempt substitutions
10518 of symbol with the same name.
10519
3d1cbb78
TT
105202019-04-25 Tom Tromey <tromey@adacore.com>
10521
10522 PR gdb/24475:
10523 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10524 static.
10525
94aeb44b
TT
105262019-04-25 Tom Tromey <tromey@adacore.com>
10527
10528 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10529 rvalue reference.
10530 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10531 (gdb_xml_parser::parse): Use std::move.
10532 * python/python-internal.h (gdbpy_convert_exception): Take a const
10533 reference.
10534 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10535 std::move.
10536 * python/py-utils.c (gdbpy_convert_exception): Take a const
10537 reference.
10538 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10539 Use std::move.
10540 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10541 Use std::move.
10542 * mi/mi-main.c (mi_print_exception): Take a const reference.
10543 * main.c (handle_command_errors): Take a const reference.
10544 * linespec.c (parse_linespec): Use std::move.
10545 * infcall.c (run_inferior_call): Use std::move.
10546 (call_function_by_hand_dummy): Use std::move.
10547 * exec.c (try_open_exec_file): Use std::move.
10548 * exceptions.h (exception_print, exception_fprintf)
10549 (exception_print_same): Update.
10550 * exceptions.c (print_exception, exception_print)
10551 (exception_fprintf, exception_print_same): Change parameters to
10552 const reference.
10553 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10554 * common/new-op.c: Use std::move.
10555 * common/common-exceptions.h (struct gdb_exception): Add move
10556 constructor.
10557 (struct gdb_exception_error, struct gdb_exception_quit, struct
10558 gdb_quit_bad_alloc): Change constructor to move constructor.
10559 (throw_exception): Change parameter to rvalue reference.
10560 * common/common-exceptions.c (throw_exception): Take rvalue
10561 reference.
10562 * cli/cli-interp.c (safe_execute_command): Use std::move.
10563 * breakpoint.c (insert_bp_location, location_to_sals): Use
10564 std::move.
10565
680d7fd5
TT
105662019-04-25 Tom Tromey <tromey@adacore.com>
10567
10568 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10569 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10570 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10571 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10572 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10573 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10574 guile/scm-value.c: Use unpack.
10575 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10576 gdbscm_gdb_exception.
10577 (gdbscm_throw_gdb_exception): Likewise.
10578 (struct gdbscm_gdb_exception): New.
10579 (unpack): New function.
10580 (gdbscm_wrap): Use unpack.
10581
c6fdd8b2
TT
105822019-04-25 Tom Tromey <tromey@adacore.com>
10583
10584 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10585 (gdb_rl_callback_handler): Use std::move.
10586 * common/common-exceptions.h (struct gdb_exception): Add move
10587 assignment operator.
10588 (throw_exception_sjlj): Change "exception" to const reference.
10589 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10590 (throw_exception_sjlj): Change "exception" to const reference.
10591
cc06b668
TT
105922019-04-25 Tom Tromey <tromey@adacore.com>
10593
10594 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10595 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10596 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10597 Update.
10598 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10599 Update.
10600 * mi/mi-interp.c (mi_interp::exec): Update.
10601 * linespec.c (parse_linespec): Update.
10602 * infcall.c (run_inferior_call): Update.
10603 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10604 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10605 (gdbscm_lookup_global_symbol): Update.
10606 * guile/scm-param.c (gdbscm_parameter_value): Update.
10607 * guile/scm-frame.c (gdbscm_frame_read_register)
10608 (gdbscm_frame_read_var): Update.
10609 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10610 * exec.c (try_open_exec_file): Update.
10611 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10612 (gdb_rl_callback_handler): Update.
10613 * common/common-exceptions.h (exception_none): Don't declare.
10614 * common/common-exceptions.c (exception_none): Don't define.
10615 (struct catcher) <exception>: Update.
10616 * cli/cli-interp.c (safe_execute_command): Update.
10617 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10618
cf532bd1
AT
106192019-04-25 Ali Tamur <tamur@google.com>
10620
10621 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10622 (read_attribute_value): Likewise.
10623 (dwarf2_read_addr_index): Update comment.
10624 (read_str_index): Add DW_FORM_strx.
10625 (dwarf2_string_attr): Likewise.
10626 (dwarf2_const_value_attr): Likewise.
10627 (dump_die_shallow): Likewise.
10628 (dwarf2_fetch_constant_bytes): Likewise.
10629 (skip_form_bytes): Likewise.
10630 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10631
82433e3e
SDJ
106322019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10633
10634 PR corefiles/11608
10635 PR corefiles/18187
10636 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10637 OFFSET. Verify if current mapping contains an ELF header.
10638 (linux_find_memory_regions_full): Adjust call to
10639 dump_mapping_p.
10640
723adb65
SL
106412019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10642 Kang Li <kanglictf@gmail.com>
10643
10644 PR gdb/21600
10645
10646 * dwarf2-frame.c (read_initial_length): Be consistent about using
10647 unsigned representation of length.
10648 (decode_frame_entry_1): Likewise. Check for wraparound of
10649 end pointer as well as buffer overflow.
10650
596179f7
SDJ
106512019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10652
10653 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10654 "vq".
10655
a59240a4
TT
106562019-04-24 Tom Tromey <tromey@adacore.com>
10657
10658 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10659
f872fdbb
AB
106602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10661
10662 * s12z-tdep.c (s12z_unwind_pc): Delete.
10663 (s12z_unwind_sp): Delete.
10664 (s12z_gdbarch_init): Don't register deleted functions with
10665 gdbarch.
10666
b614e6f3
AB
106672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10668
10669 * rl78-tdep.c (rl78_unwind_sp): Delete.
10670 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10671
14faed38
AB
106722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10673
10674 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10675 (xstormy16_unwind_pc): Delete.
10676 (xstormy16_dummy_id): Delete.
10677 (xstormy16_gdbarch_init): Don't register deleted functions with
10678 gdbarch.
10679
541aad8a
AB
106802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10681
10682 * vax-tdep.c (vax_unwind_pc): Delete.
10683 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10684
29222070
AB
106852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10686
10687 * v850-tdep.c (v850_unwind_sp): Delete.
10688 (v850_unwind_pc): Delete.
10689 (v850_dummy_id): Delete.
10690 (v850_gdbarch_init): Don't register deleted functions with
10691 gdbarch.
10692
0f534d76
AB
106932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10694
10695 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10696 (tilegx_unwind_pc): Delete.
10697 (tilegx_unwind_dummy_id): Delete.
10698 (tilegx_gdbarch_init): Don't register deleted functions with
10699 gdbarch.
10700
1ba7b7f9
AB
107012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10702
10703 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10704 (tic6x_dummy_id): Delete.
10705 (tic6x_gdbarch_init): Don't register deleted functions with
10706 gdbarch.
10707
d31f262c
AB
107082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10709
10710 * sparc-tdep.c (sparc_unwind_pc): Delete.
10711 (sparc32_gdbarch_init): Don't register deleted function with
10712 gdbarch.
10713
6d14d64d
AB
107142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10715
10716 * sh-tdep.c (sh_unwind_sp): Delete.
10717 (sh_unwind_pc): Delete.
10718 (sh_dummy_id): Delete.
10719 (sh_gdbarch_init): Don't register deleted functions with
10720 gdbarch.
10721
a40dde9d
AB
107222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10723
10724 * score-tdep.c (score_unwind_sp): Delete.
10725 (score_unwind_pc): Delete.
10726 (score_dummy_id): Delete.
10727 (score_gdbarch_init): Don't register deleted functions with
10728 gdbarch.
10729
47c47d69
AB
107302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10731
10732 * rx-tdep.c (rx_unwind_pc): Delete.
10733 (rx_unwind_sp): Delete.
10734 (rx_dummy_id): Delete.
10735 (rx_gdbarch_init): Don't register deleted functions with
10736 gdbarch. Update comment.
10737
833a4480
AB
107382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10739
10740 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10741 (rs6000_dummy_id): Delete.
10742 (rs6000_gdbarch_init): Don't register deleted functions with
10743 gdbarch.
10744
3f2cef49
AB
107452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10746
10747 * or1k-tdep.c (or1k_dummy_id): Delete.
10748 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10749
96acf884
AB
107502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10751
10752 * nios2-tdep.c (nios2_dummy_id): Delete.
10753 (nios2_unwind_sp): Delete.
10754 (nios2_gdbarch_init): Don't register deleted functions with
10755 gdbarch.
10756
ca0ab0aa
AB
107572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10758
10759 * nds32-tdep.c (nds32_dummy_id): Delete.
10760 (nds32_unwind_pc): Delete.
10761 (nds32_unwind_sp): Delete.
10762 (nds32_gdbarch_init): Don't register deleted functions with
10763 gdbarch.
10764
c8259044
AB
107652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10766
10767 * msp430-tdep.c (msp430_unwind_pc): Delete.
10768 (msp430_unwind_sp): Delete.
10769 (msp430_dummy_id): Delete.
10770 (msp430_gdbarch_init): Don't register deleted functions with
10771 gdbarch.
10772
27f113c8
AB
107732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10774
10775 * moxie-tdep.c (moxie_unwind_sp): Delete.
10776 (moxie_unwind_pc): Delete.
10777 (moxie_dummy_id): Delete.
10778 (moxie_gdbarch_init): Don't register deleted functions with
10779 gdbarch.
10780
aee6c3cd
AB
107812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10782
10783 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10784 (mn10300_unwind_pc): Delete.
10785 (mn10300_unwind_sp): Delete.
10786 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10787 mn10300_unwind_sp.
10788 (mn10300_frame_unwind_init): Don't register deleted functions with
10789 gdbarch.
10790
8e2b5aea
AB
107912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10792
10793 * mep-tdep.c (mep_unwind_pc): Delete.
10794 (mep_unwind_sp): Delete.
10795 (mep_dummy_id): Delete.
10796 (mep_gdbarch_init): Don't register deleted functions with
10797 gdbarch.
10798
43cf3ede
AB
107992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10800
10801 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10802 (m68hc11_unwind_sp): Delete.
10803 (m68hc11_gdbarch_init): Don't register deleted functions with
10804 gdbarch.
10805
5e79b7bb
AB
108062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10807
10808 * m32r-tdep.c (m32r_unwind_sp): Delete.
10809 (m32r_unwind_pc): Delete.
10810 (m32r_dummy_id): Delete.
10811 (m32r_gdbarch_init): Don't register deleted functions with
10812 gdbarch.
10813
89b268d8
AB
108142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10815
10816 * m32c-tdep.c (m32c_unwind_pc): Delete.
10817 (m32c_unwind_sp): Delete.
10818 (m32c_dummy_id): Delete.
10819 (m32c_gdbarch_init): Don't register deleted functions with
10820 gdbarch.
10821
946c28d2
AB
108222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10823
10824 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10825 (lm32_unwind_pc): Delete.
10826 (lm32_dummy_id): Delete.
10827 (lm32_gdbarch_init): Don't register deleted functions with
10828 gdbarch.
10829
bf12844a
AB
108302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10831
10832 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10833 (iq2000_unwind_pc): Delete.
10834 (iq2000_dummy_id): Delete.
10835 (iq2000_gdbarch_init): Don't register deleted functions with
10836 gdbarch.
10837
ecbc06d2
AB
108382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10839
10840 * nds32-tdep.c (nds32_type_align): Delete.
10841 (nds32_push_dummy_call): Use type_align instead.
10842
030197b4
AB
108432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10844
10845 * arm-tdep.c (arm_type_align): Only handle vector override case.
10846 (arm_push_dummy_call): Use type_align.
10847 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10848
b907456c
AB
108492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10850
10851 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10852 case.
10853 (pass_on_stack): Use type_align.
10854 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10855 function.
10856
9e97ba43
TT
108572019-04-23 Tom Tromey <tromey@adacore.com>
10858
10859 * dwarf2read.c (line_header::file_name_at): Remove unused
10860 overload.
10861
6892f601
TV
108622019-04-23 Tom de Vries <tdevries@suse.de>
10863
10864 PR gdb/24438
10865 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10866 invocation.
10867
336d760d
AT
10868
108692019-03-27 Ali Tamur <tamur@google.com>
10870
10871 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10872 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10873 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10874 (dwarf_expr_context::get_addr_index): Likewise
10875 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10876 (symbol_needs_eval_context::get_addr_index): Likewise
10877 (disassemble_dwarf_expression): Add DW_OP_addrx
10878 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10879 (read_cutu_die_from_dwo): Update comment
10880 (skip_one_die): Add DW_FORM_addrx
10881 (read_attribute_value): Likewise
10882 (var_decode_location): Add DW_OP_addrx
10883 (dwarf2_const_value_attr): Add DW_FORM_addrx
10884 (dump_die_shallow): Likewise
10885 (dwarf2_fetch_constant_bytes): Likewise
10886 (decode_locdesc): Add DW_OP_addrx
10887 (skip_form_bytes): Add DW_FORM_addrx
10888
ad9d13f8
AT
108892019-04-22 Ali Tamur <tamur@google.com>
10890
10891 * MAINTAINERS (Write After Approval): Add self.
10892
d70cc3ba
SM
108932019-04-22 Simon Marchi <simon.marchi@efficios.com>
10894
10895 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10896 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10897 (open_symbol_file_object): Likewise.
10898 (svr4_default_sos): Add info parameter.
10899 (svr4_read_so_list): Likewise.
10900 (svr4_current_sos_direct): Adjust functions calls to pass down
10901 info.
10902 (svr4_current_sos_1): Add info parameter.
10903 (svr4_current_sos): Call get_svr4_info, pass info down to
10904 svr4_current_sos_1.
10905 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10906 get_svr4_info.
10907 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10908 get_svr4_info.
10909 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10910 to get_svr4_info.
10911 (probes_table_remove_objfile_probes): Likewise.
10912 (register_solib_event_probe): Add info parameter.
10913 (solist_update_incremental): Pass info parameter down to
10914 svr4_read_so_list.
10915 (disable_probes_interface): Add info parameter.
10916 (svr4_handle_solib_event): Pass current_program_space to
10917 get_svr4_info. Adjust disable_probes_interface cleanup.
10918 (svr4_create_probe_breakpoints): Add info parameter, pass it
10919 down to register_solib_event_probe.
10920 (svr4_create_solib_event_breakpoints): Add info parameter,
10921 pass it down to svr4_create_probe_breakpoints.
10922 (enable_break): Pass info down to
10923 svr4_create_solib_event_breakpoints.
10924 (svr4_solib_create_inferior_hook): Pass current_program_space to
10925 get_svr4_info.
10926 (svr4_clear_solib): Likewise.
10927
7905fc35
PA
109282019-04-22 Pedro Alves <palves@redhat.com>
10929
10930 * solib-svr4.c (svr4_free_objfile_observer): New.
10931 (probe_and_action::objfile): New field.
10932 (probes_table_htab_remove_objfile_probes)
10933 (probes_table_remove_objfile_probes): New functions.
10934 (register_solib_event_probe): Add 'objfile' parameter. Store it
10935 in the new probe_and_action. Don't store the probe in 'lookup'.
10936 (svr4_create_probe_breakpoints): Pass objfile to
10937 register_solib_event_probe.
10938 (_initialize_svr4_solib): Register a free_objfile observer.
10939
fb881986
TT
109402019-04-19 Tom Tromey <tom@tromey.com>
10941
10942 * common/queue.h: Remove.
10943
8732db6c
TT
109442019-04-19 Tom Tromey <tom@tromey.com>
10945
10946 * event-loop.c: Don't include "common/queue.h".
10947
97dfbadd
TT
109482019-04-19 Tom Tromey <tom@tromey.com>
10949
10950 * remote.c (remote_target): Use delete.
10951 * remote-notif.h: Include <list>, not "common/queue.h".
10952 (notif_client_p): Remove typedef.
10953 (remote_notif_state): Add constructor, destructor, initializer.
10954 <notif_queue>: Now a std::list.
10955 (remote_notif_state_xfree): Don't declare.
10956 * remote-notif.c (remote_notif_process, handle_notification)
10957 (remote_notif_state_allocate): Update.
10958 (~remote_notif_state): Rename from remote_notif_state_xfree.
10959
cf250e36
TT
109602019-04-19 Tom Tromey <tom@tromey.com>
10961
10962 * symfile.c (reread_symbols): Update.
10963 * objfiles.c (objfile_register_static_link)
10964 (objfile_lookup_static_link): Update
10965 (~objfile) Don't delete static_links.
10966 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10967
61f4b350
TT
109682019-04-19 Tom Tromey <tom@tromey.com>
10969
10970 * type-stack.h (struct type_stack) <insert>: Constify string.
10971 * type-stack.c (type_stack::insert): Constify string.
10972 * gdbtypes.h (lookup_template_type): Update.
10973 (address_space_name_to_int): Update.
10974 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10975 const.
10976 (lookup_template_type): Make name const.
10977 * c-exp.y: Update rules.
10978 (lex_one_token, classify_name, classify_inner_name)
10979 (c_print_token): Update.
10980 * p-exp.y: Update rules.
10981 (yylex): Update.
10982 * f-exp.y: Update rules.
10983 (yylex): Update.
10984 * d-exp.y: Update rules.
10985 (lex_one_token, classify_name, classify_inner_name): Update.
10986 * parse.c (write_dollar_variable, copy_name): Return std::string.
10987 * parser-defs.h (copy_name): Change return type.
10988 * m2-exp.y: Update rules.
10989 (yylex): Update.
10990 * go-exp.y (lex_one_token): Update.
10991 Update rules.
10992 (classify_unsafe_function, classify_packaged_name)
10993 (classify_name, yylex): Update.
10994
189b8c2e
ST
109952019-04-19 Sergei Trofimovich <siarheit@google.com>
10996
10997 * configure.ac: add --enable-source-highlight switch.
10998 * configure: Regenerate.
10999 * top.c (print_gdb_version): plumb --enable-source-highlight
11000 status to "show configuration".
11001
8ecb59f8
TT
110022019-04-19 Tom Tromey <tromey@adacore.com>
11003
11004 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11005 Check ADA_TYPE_P.
11006 (empty_record, ada_template_to_fixed_record_type_1)
11007 (template_to_static_fixed_type)
11008 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11009 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11010 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11011 macros.
11012
62160ec9
TT
110132019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11014
11015 PR symtab/24423:
11016 * source.c (print_source_lines_base): Advance "iter" when a
11017 control character is seen.
11018
f2ae8bc8
PW
110192019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11020
11021 * inferior.h (struct infcall_suspend_state_deleter):
11022 Catch exception in destructor to avoid crash.
11023
d563b953
PW
110242019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11025
11026 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11027 close to the add_com "shell".
11028
dc34c897
TT
110292019-04-18 Tom Tromey <tromey@adacore.com>
11030
11031 * process-stratum-target.h (class process_stratum_target)
11032 <stratum>: Add "final".
11033
a12e5744
TT
110342019-04-17 Tom Tromey <tromey@adacore.com>
11035
11036 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11037 against nullptr before use.
11038
a7e559cc
AH
110392019-04-17 Alan Hayward <alan.hayward@arm.com>
11040
11041 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11042
c01660c6
AB
110432019-04-17 Jim Wilson <jimw@sifive.com>
11044 Andrew Burgess <andrew.burgess@embecosm.com>
11045
11046 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11047 code read might fail, assume 4-byte breakpoint in that case.
11048
4aa866af
LS
110492019-04-15 Leszek Swirski <leszeks@google.com>
11050
11051 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11052 rather than a hand-rolled POD check when checking for forced MEMORY
11053 classification.
11054
48574d91
AH
110552019-04-15 Alan Hayward <alan.hayward@arm.com>
11056
11057 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11058 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11059 function.
11060 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11061 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11062 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11063 declaration.
11064
4da037ef
AH
110652019-04-15 Alan Hayward <alan.hayward@arm.com>
11066
11067 * aarch64-linux-nat.c
11068 (aarch64_linux_nat_target::thread_architecture): Add override.
11069 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11070 each VQ.
11071
ccb8d7e8
AH
110722019-04-15 Alan Hayward <alan.hayward@arm.com>
11073
11074 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11075
35add35e
AB
110762019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11077
11078 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11079 target types of size 96-bits, add some additional comments, and
11080 check that the builtin type we found was the correct size.
11081
51196bbc
EZ
110822019-04-12 Eli Zaretskii <eliz@gnu.org>
11083
11084 * utils.c (prompt_for_continue): Don't restore the styling at the
11085 end, as applied_style has the wrong value. This fixes styling in
11086 long lists of file names that are interrupted by the "Continue?"
11087 prompt.
11088
62253a61
AB
110892019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11090
11091 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11092 * c-lang.c (c_language_defn): Likewise.
11093 (cplus_language_defn): Likewise.
11094 (asm_language_defn): Likewise.
11095 (minimal_language_defn): Likewise.
11096 * d-lang.c (d_language_defn): Likewise.
11097 * f-lang.c (f_language_defn): Likewise.
11098 * go-lang.c (go_language_defn): Likewise.
11099 * language.c (unknown_language_defn): Likewise.
11100 (auto_language_defn): Likewise.
11101 * language.h (struct language_defn): Remove la_magic field.
11102 (LANG_MAGIC): Delete.
11103 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11104 * objc-lang.c (objc_language_defn): Likewise.
11105 * opencl-lang.c (opencl_language_defn): Likewise.
11106 * p-lang.c (pascal_language_defn): Likewise.
11107 * rust-lang.c (rust_language_defn): Likewise.
11108
a9158a86
AB
111092019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11110
11111 * riscv-tdep.c (riscv_type_align): New function.
11112 (riscv_type_alignment): Delete.
11113 (riscv_arg_location): Use 'type_align'.
11114 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11115
41077b66
AB
111162019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11117
11118 * gdbtypes.c (type_align): A struct with no non-static fields also
11119 has alignment of 1.
11120
9f0272f8
AB
111212019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11122
11123 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11124 component to 0.
11125 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11126 member.
11127 (riscv_struct_info::analyse): New implementation using new
11128 analyse_inner member function.
11129 (riscv_struct_info::field_offset): New member function.
11130 (riscv_struct_info::m_offsets): New member variable.
11131 (riscv_struct_info::analyse_inner): New private member function,
11132 takes the old implementation of riscv_struct_info::analyse but
11133 extended to track field offsets.
11134 (riscv_call_arg_struct): Update the struct folding special cases
11135 to handle cases where empty C++ structs, which are non-zero
11136 length, are found.
11137 (riscv_arg_location): Initialise the length of each location, a
11138 non-zero length now indicates the location is in use.
11139 (riscv_push_dummy_call): Allow for the first location having a
11140 non-zero offset when setting up arguments.
11141 (riscv_return_value): Likewise, but for return values.
11142
02cf60c7
TT
111432019-04-11 Tom Tromey <tromey@adacore.com>
11144
11145 * utils.c (internal_vproblem): Make "msg" const.
11146
68811f8f
AH
111472019-04-11 Alan Hayward <alan.hayward@arm.com>
11148
11149 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11150 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11151 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11152 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11153
3f52fdbc
KB
111542019-04-10 Kevin Buettner <kevinb@redhat.com>
11155
11156 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11157 function.
11158 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11159 of amd64_collect_native_gregset.
11160 (amd64_linux_nat_target::store_registers): Likewise.
11161
e9ad22ee
TT
111622019-04-10 Tom Tromey <tom@tromey.com>
11163
11164 * symtab.c (lookup_global_symbol_from_objfile)
11165 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11166 * objfiles.h (class separate_debug_iterator): New.
11167 (class separate_debug_range): New.
11168 (struct objfile) <separate_debug_objfiles>: New method.
11169 (objfile_separate_debug_iterate): Don't declare.
11170 * objfiles.c (separate_debug_iterator::operator++): Rename from
11171 objfile_separate_debug_iterate.
11172 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11173 iterator.
11174 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11175 iterator.
11176
ee371134
TT
111772019-04-10 Tom Tromey <tom@tromey.com>
11178
11179 * symfile.c (reread_symbols): Remove old comment.
11180 * objfiles.c (free_all_objfiles): Fix a typo.
11181
bf227d61
TT
111822019-04-10 Tom Tromey <tom@tromey.com>
11183
11184 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11185 * minsyms.c (lookup_minimal_symbol): Use foreach.
11186 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11187 (lookup_minimal_symbol_solib_trampoline): Likewise.
11188 * symfile.c (reread_symbols): Use foreach.
11189
8dc433a0
TT
111902019-04-09 Ivan Begert <ivanbegert@gmail.com>
11191 Tom Tromey <tromey@adacore.com>
11192
11193 PR rust/24414:
11194 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11195 (rust_lex_int_test): Change "value" to be LONGEST.
11196 (rust_lex_tests): Add test for long integer literal.
11197
9ab8741a
TT
111982019-04-09 Tom Tromey <tromey@adacore.com>
11199
11200 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11201 to bool.
11202 (extended_remote_target::attach): Update.
11203 (remote_target::remote_notice_new_inferior): Update.
11204 (remote_target::add_current_inferior_and_thread): Update.
11205 * inferior.c (exit_inferior_1): Use "false".
11206 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11207
e242fd12
SM
112082019-04-09 Simon Marchi <simon.marchi@efficios.com>
11209
9ca1957f 11210 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11211 the "start" command.
11212
2b0c8b01
KB
112132019-04-08 Kevin Buettner <kevinb@redhat.com>
11214
11215 * python/py-inferior.c (infpy_thread_from_thread_handle):
11216 Adjust comments to reflect renaming of thread_from_thread_handle
11217 to thread_from_handle. Adjust keywords. Fix type error message.
11218 (inferior_object_methods): Add thread_from_handle. Retain
11219 thread_from_thread_handle, but mark it as deprecated.
11220
50a82723
KB
112212019-04-08 Kevin Buettner <kevinb@redhat.com>
11222
11223 * gdbthread.h (find_thread_by_handle): Revise declaration.
11224 * thread.c (find_thread_by_handle): Likewise. Adjust
11225 implementation too.
11226 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11227 support for buffer objects as handles.
11228
cf63b016
KB
112292019-04-08 Kevin Buettner <kevinb@redhat.com>
11230
11231 * python/py-infthread.c (thpy_thread_handle): New function.
11232 (thread_object_methods): Register thpy_thread_handle.
11233
3d6c6204
KB
112342019-04-08 Kevin Buettner <kevinb@redhat.com>
11235
11236 * gdbthread.h (thread_to_thread_handle): Declare.
11237 * thread.c (gdbtypes.h): Include.
11238 (thread_to_thread_handle): New function.
11239
11240 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11241 (target_thread_info_to_thread_handle): Declare.
11242 * target.c (target_thread_info_to_thread_handle): New function.
11243 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11244 * target-delegates.c: Regenerate.
11245
11246 * linux-thread-db.c (class thread_db_target): Add method
11247 thread_info_to_thread_handle.
11248 (thread_db_target::thread_info_to_thread_handle): Define.
11249 * remote.c (class remote_target): Add new method
11250 thread_info_to_thread_handle.
11251 (remote_target::thread_info_to_thread_handle): Define.
11252
56be6ea8
PA
112532019-04-08 Pedro Alves <palves@redhat.com>
11254
11255 * common/common-exceptions.c (throw_exception): Don't create
11256 named object to throw; throw directly.
11257 (throw_it): Likewise. Don't initialize gdb_exception::message
11258 here, with new; pass FMT and AP to the ctor instead.
11259 * common/common-exceptions.h: Include <string>.
11260 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11261 const char *, va_list)): New ctor. Use std::make_shared.
11262 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11263 errors)): Delete.
11264 (gdb_exception_error::gdb_exception_error(enum errors, const char
11265 *, va_list)): New.
11266 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11267 Add assertion.
11268 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11269 errors)): Delete.
11270 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11271 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11272 Add assertion.
11273
eedc3f4f
TT
112742019-04-08 Tom Tromey <tom@tromey.com>
11275
11276 * valops.c (value_rtti_indirect_type): Replace throw_exception
11277 with throw.
11278 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11279 with throw.
11280 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11281 throw.
11282 * target.c (target_translate_tls_address): Replace throw_exception
11283 with throw.
11284 * stack.c (frame_apply_command_count): Replace throw_exception
11285 with throw.
11286 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11287 throw.
11288 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11289 with throw.
11290 * rs6000-tdep.c (rs6000_frame_cache)
11291 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11292 * remote.c: Replace throw_exception with throw.
11293 * record-full.c (record_full_message, record_full_wait_1)
11294 (record_full_restore): Replace throw_exception with throw.
11295 * record-btrace.c:
11296 (get_thread_current_frame_id, record_btrace_start_replaying)
11297 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11298 (cmd_record_btrace_start): Replace throw_exception with throw.
11299 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11300 throw.
11301 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11302 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11303 * linespec.c:
11304 (find_linespec_symbols): Replace throw_exception with throw.
11305 * infrun.c (displaced_step_prepare, resume): Replace
11306 throw_exception with throw.
11307 * infcmd.c (post_create_inferior): Replace throw_exception with
11308 throw.
11309 * inf-loop.c (inferior_event_handler): Replace throw_exception
11310 with throw.
11311 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11312 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11313 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11314 (get_prev_frame_always, get_frame_pc_if_available)
11315 (get_frame_address_in_block_if_available, get_frame_language):
11316 Replace throw_exception with throw.
11317 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11318 throw_exception with throw.
11319 * eval.c (fetch_subexp_value, evaluate_var_value)
11320 (evaluate_funcall, evaluate_subexp_standard): Replace
11321 throw_exception with throw.
11322 * dwarf2loc.c (call_site_find_chain)
11323 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11324 Replace throw_exception with throw.
11325 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11326 with throw.
11327 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11328 throw.
11329 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11330 * completer.c (complete_line_internal): Replace throw_exception
11331 with throw.
11332 * compile/compile-object-run.c (compile_object_run): Replace
11333 throw_exception with throw.
11334 * cli/cli-script.c (process_next_line): Replace throw_exception
11335 with throw.
11336 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11337 (btrace_enable, btrace_maint_update_pt_packets): Replace
11338 throw_exception with throw.
11339 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11340 throw_exception with throw.
11341 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11342 throw_exception with throw.
11343 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11344 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11345 * aarch64-tdep.c (aarch64_make_prologue_cache)
11346 (aarch64_make_stub_cache): Replace throw_exception with throw.
11347
26003a20
TT
113482019-04-08 Tom Tromey <tom@tromey.com>
11349
11350 * common/common-exceptions.c (throw_exception): Rename from
11351 throw_exception_cxx. Remove old copy. Make argument const.
11352 (throw_it): Create and throw exception objects directly.
11353 * common/common-exceptions.h (throw_exception): Make argument
11354 const.
11355 (struct gdb_exception_error): Add constructor.
11356 (struct gdb_exception_quit): Add constructor.
11357
d272eb37
TT
113582019-04-08 Tom Tromey <tom@tromey.com>
11359
11360 * common/common-exceptions.h (exception_rethrow): Don't declare.
11361 (TRY_SJLJ): Update comment.
11362 (TRY, CATCH, END_CATCH): Remove.
11363 * common/common-exceptions.c (exception_rethrow): Remove.
11364
230d2906
TT
113652019-04-08 Tom Tromey <tom@tromey.com>
11366
11367 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11368 Remove.
11369 (gdb_exception_error): Rename from
11370 gdb_exception_RETURN_MASK_ERROR.
11371 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11372 (gdb_quit_bad_alloc): Update.
11373 * aarch64-tdep.c: Update.
11374 * ada-lang.c: Update.
11375 * ada-typeprint.c: Update.
11376 * ada-valprint.c: Update.
11377 * amd64-tdep.c: Update.
11378 * arch-utils.c: Update.
11379 * break-catch-throw.c: Update.
11380 * breakpoint.c: Update.
11381 * btrace.c: Update.
11382 * c-varobj.c: Update.
11383 * cli/cli-cmds.c: Update.
11384 * cli/cli-interp.c: Update.
11385 * cli/cli-script.c: Update.
11386 * common/common-exceptions.c: Update.
11387 * common/new-op.c: Update.
11388 * common/selftest.c: Update.
11389 * compile/compile-c-symbols.c: Update.
11390 * compile/compile-cplus-symbols.c: Update.
11391 * compile/compile-object-load.c: Update.
11392 * compile/compile-object-run.c: Update.
11393 * completer.c: Update.
11394 * corelow.c: Update.
11395 * cp-abi.c: Update.
11396 * cp-support.c: Update.
11397 * cp-valprint.c: Update.
11398 * darwin-nat.c: Update.
11399 * disasm-selftests.c: Update.
11400 * dtrace-probe.c: Update.
11401 * dwarf-index-cache.c: Update.
11402 * dwarf-index-write.c: Update.
11403 * dwarf2-frame-tailcall.c: Update.
11404 * dwarf2-frame.c: Update.
11405 * dwarf2loc.c: Update.
11406 * dwarf2read.c: Update.
11407 * eval.c: Update.
11408 * event-loop.c: Update.
11409 * event-top.c: Update.
11410 * exec.c: Update.
11411 * f-valprint.c: Update.
11412 * fbsd-tdep.c: Update.
11413 * frame-unwind.c: Update.
11414 * frame.c: Update.
11415 * gdbtypes.c: Update.
11416 * gnu-v3-abi.c: Update.
11417 * guile/guile-internal.h: Update.
11418 * guile/scm-block.c: Update.
11419 * guile/scm-breakpoint.c: Update.
11420 * guile/scm-cmd.c: Update.
11421 * guile/scm-disasm.c: Update.
11422 * guile/scm-frame.c: Update.
11423 * guile/scm-lazy-string.c: Update.
11424 * guile/scm-math.c: Update.
11425 * guile/scm-param.c: Update.
11426 * guile/scm-ports.c: Update.
11427 * guile/scm-pretty-print.c: Update.
11428 * guile/scm-symbol.c: Update.
11429 * guile/scm-symtab.c: Update.
11430 * guile/scm-type.c: Update.
11431 * guile/scm-value.c: Update.
11432 * i386-linux-tdep.c: Update.
11433 * i386-tdep.c: Update.
11434 * inf-loop.c: Update.
11435 * infcall.c: Update.
11436 * infcmd.c: Update.
11437 * infrun.c: Update.
11438 * jit.c: Update.
11439 * language.c: Update.
11440 * linespec.c: Update.
11441 * linux-fork.c: Update.
11442 * linux-nat.c: Update.
11443 * linux-tdep.c: Update.
11444 * linux-thread-db.c: Update.
11445 * main.c: Update.
11446 * mi/mi-cmd-break.c: Update.
11447 * mi/mi-cmd-stack.c: Update.
11448 * mi/mi-interp.c: Update.
11449 * mi/mi-main.c: Update.
11450 * objc-lang.c: Update.
11451 * p-valprint.c: Update.
11452 * parse.c: Update.
11453 * ppc-linux-tdep.c: Update.
11454 * printcmd.c: Update.
11455 * python/py-arch.c: Update.
11456 * python/py-breakpoint.c: Update.
11457 * python/py-cmd.c: Update.
11458 * python/py-finishbreakpoint.c: Update.
11459 * python/py-frame.c: Update.
11460 * python/py-framefilter.c: Update.
11461 * python/py-gdb-readline.c: Update.
11462 * python/py-inferior.c: Update.
11463 * python/py-infthread.c: Update.
11464 * python/py-lazy-string.c: Update.
11465 * python/py-linetable.c: Update.
11466 * python/py-objfile.c: Update.
11467 * python/py-param.c: Update.
11468 * python/py-prettyprint.c: Update.
11469 * python/py-progspace.c: Update.
11470 * python/py-record-btrace.c: Update.
11471 * python/py-record.c: Update.
11472 * python/py-symbol.c: Update.
11473 * python/py-type.c: Update.
11474 * python/py-unwind.c: Update.
11475 * python/py-utils.c: Update.
11476 * python/py-value.c: Update.
11477 * python/python.c: Update.
11478 * record-btrace.c: Update.
11479 * record-full.c: Update.
11480 * remote-fileio.c: Update.
11481 * remote.c: Update.
11482 * riscv-tdep.c: Update.
11483 * rs6000-aix-tdep.c: Update.
11484 * rs6000-tdep.c: Update.
11485 * rust-exp.y: Update.
11486 * rust-lang.c: Update.
11487 * s390-tdep.c: Update.
11488 * selftest-arch.c: Update.
11489 * solib-dsbt.c: Update.
11490 * solib-frv.c: Update.
11491 * solib-spu.c: Update.
11492 * solib-svr4.c: Update.
11493 * solib.c: Update.
11494 * sparc64-linux-tdep.c: Update.
11495 * stack.c: Update.
11496 * symfile-mem.c: Update.
11497 * symmisc.c: Update.
11498 * target.c: Update.
11499 * thread.c: Update.
11500 * top.c: Update.
11501 * tracefile-tfile.c: Update.
11502 * tui/tui.c: Update.
11503 * typeprint.c: Update.
11504 * unittests/cli-utils-selftests.c: Update.
11505 * unittests/parse-connection-spec-selftests.c: Update.
11506 * valops.c: Update.
11507 * valprint.c: Update.
11508 * value.c: Update.
11509 * varobj.c: Update.
11510 * windows-nat.c: Update.
11511 * x86-linux-nat.c: Update.
11512 * xml-support.c: Update.
11513
a70b8144
TT
115142019-04-08 Tom Tromey <tom@tromey.com>
11515
11516 * xml-support.c: Use C++ exception handling.
11517 * x86-linux-nat.c: Use C++ exception handling.
11518 * windows-nat.c: Use C++ exception handling.
11519 * varobj.c: Use C++ exception handling.
11520 * value.c: Use C++ exception handling.
11521 * valprint.c: Use C++ exception handling.
11522 * valops.c: Use C++ exception handling.
11523 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11524 handling.
11525 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11526 * typeprint.c: Use C++ exception handling.
11527 * tui/tui.c: Use C++ exception handling.
11528 * tracefile-tfile.c: Use C++ exception handling.
11529 * top.c: Use C++ exception handling.
11530 * thread.c: Use C++ exception handling.
11531 * target.c: Use C++ exception handling.
11532 * symmisc.c: Use C++ exception handling.
11533 * symfile-mem.c: Use C++ exception handling.
11534 * stack.c: Use C++ exception handling.
11535 * sparc64-linux-tdep.c: Use C++ exception handling.
11536 * solib.c: Use C++ exception handling.
11537 * solib-svr4.c: Use C++ exception handling.
11538 * solib-spu.c: Use C++ exception handling.
11539 * solib-frv.c: Use C++ exception handling.
11540 * solib-dsbt.c: Use C++ exception handling.
11541 * selftest-arch.c: Use C++ exception handling.
11542 * s390-tdep.c: Use C++ exception handling.
11543 * rust-lang.c: Use C++ exception handling.
11544 * rust-exp.y: Use C++ exception handling.
11545 * rs6000-tdep.c: Use C++ exception handling.
11546 * rs6000-aix-tdep.c: Use C++ exception handling.
11547 * riscv-tdep.c: Use C++ exception handling.
11548 * remote.c: Use C++ exception handling.
11549 * remote-fileio.c: Use C++ exception handling.
11550 * record-full.c: Use C++ exception handling.
11551 * record-btrace.c: Use C++ exception handling.
11552 * python/python.c: Use C++ exception handling.
11553 * python/py-value.c: Use C++ exception handling.
11554 * python/py-utils.c: Use C++ exception handling.
11555 * python/py-unwind.c: Use C++ exception handling.
11556 * python/py-type.c: Use C++ exception handling.
11557 * python/py-symbol.c: Use C++ exception handling.
11558 * python/py-record.c: Use C++ exception handling.
11559 * python/py-record-btrace.c: Use C++ exception handling.
11560 * python/py-progspace.c: Use C++ exception handling.
11561 * python/py-prettyprint.c: Use C++ exception handling.
11562 * python/py-param.c: Use C++ exception handling.
11563 * python/py-objfile.c: Use C++ exception handling.
11564 * python/py-linetable.c: Use C++ exception handling.
11565 * python/py-lazy-string.c: Use C++ exception handling.
11566 * python/py-infthread.c: Use C++ exception handling.
11567 * python/py-inferior.c: Use C++ exception handling.
11568 * python/py-gdb-readline.c: Use C++ exception handling.
11569 * python/py-framefilter.c: Use C++ exception handling.
11570 * python/py-frame.c: Use C++ exception handling.
11571 * python/py-finishbreakpoint.c: Use C++ exception handling.
11572 * python/py-cmd.c: Use C++ exception handling.
11573 * python/py-breakpoint.c: Use C++ exception handling.
11574 * python/py-arch.c: Use C++ exception handling.
11575 * printcmd.c: Use C++ exception handling.
11576 * ppc-linux-tdep.c: Use C++ exception handling.
11577 * parse.c: Use C++ exception handling.
11578 * p-valprint.c: Use C++ exception handling.
11579 * objc-lang.c: Use C++ exception handling.
11580 * mi/mi-main.c: Use C++ exception handling.
11581 * mi/mi-interp.c: Use C++ exception handling.
11582 * mi/mi-cmd-stack.c: Use C++ exception handling.
11583 * mi/mi-cmd-break.c: Use C++ exception handling.
11584 * main.c: Use C++ exception handling.
11585 * linux-thread-db.c: Use C++ exception handling.
11586 * linux-tdep.c: Use C++ exception handling.
11587 * linux-nat.c: Use C++ exception handling.
11588 * linux-fork.c: Use C++ exception handling.
11589 * linespec.c: Use C++ exception handling.
11590 * language.c: Use C++ exception handling.
11591 * jit.c: Use C++ exception handling.
11592 * infrun.c: Use C++ exception handling.
11593 * infcmd.c: Use C++ exception handling.
11594 * infcall.c: Use C++ exception handling.
11595 * inf-loop.c: Use C++ exception handling.
11596 * i386-tdep.c: Use C++ exception handling.
11597 * i386-linux-tdep.c: Use C++ exception handling.
11598 * guile/scm-value.c: Use C++ exception handling.
11599 * guile/scm-type.c: Use C++ exception handling.
11600 * guile/scm-symtab.c: Use C++ exception handling.
11601 * guile/scm-symbol.c: Use C++ exception handling.
11602 * guile/scm-pretty-print.c: Use C++ exception handling.
11603 * guile/scm-ports.c: Use C++ exception handling.
11604 * guile/scm-param.c: Use C++ exception handling.
11605 * guile/scm-math.c: Use C++ exception handling.
11606 * guile/scm-lazy-string.c: Use C++ exception handling.
11607 * guile/scm-frame.c: Use C++ exception handling.
11608 * guile/scm-disasm.c: Use C++ exception handling.
11609 * guile/scm-cmd.c: Use C++ exception handling.
11610 * guile/scm-breakpoint.c: Use C++ exception handling.
11611 * guile/scm-block.c: Use C++ exception handling.
11612 * guile/guile-internal.h: Use C++ exception handling.
11613 * gnu-v3-abi.c: Use C++ exception handling.
11614 * gdbtypes.c: Use C++ exception handling.
11615 * frame.c: Use C++ exception handling.
11616 * frame-unwind.c: Use C++ exception handling.
11617 * fbsd-tdep.c: Use C++ exception handling.
11618 * f-valprint.c: Use C++ exception handling.
11619 * exec.c: Use C++ exception handling.
11620 * event-top.c: Use C++ exception handling.
11621 * event-loop.c: Use C++ exception handling.
11622 * eval.c: Use C++ exception handling.
11623 * dwarf2read.c: Use C++ exception handling.
11624 * dwarf2loc.c: Use C++ exception handling.
11625 * dwarf2-frame.c: Use C++ exception handling.
11626 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11627 * dwarf-index-write.c: Use C++ exception handling.
11628 * dwarf-index-cache.c: Use C++ exception handling.
11629 * dtrace-probe.c: Use C++ exception handling.
11630 * disasm-selftests.c: Use C++ exception handling.
11631 * darwin-nat.c: Use C++ exception handling.
11632 * cp-valprint.c: Use C++ exception handling.
11633 * cp-support.c: Use C++ exception handling.
11634 * cp-abi.c: Use C++ exception handling.
11635 * corelow.c: Use C++ exception handling.
11636 * completer.c: Use C++ exception handling.
11637 * compile/compile-object-run.c: Use C++ exception handling.
11638 * compile/compile-object-load.c: Use C++ exception handling.
11639 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11640 * compile/compile-c-symbols.c: Use C++ exception handling.
11641 * common/selftest.c: Use C++ exception handling.
11642 * common/new-op.c: Use C++ exception handling.
11643 * cli/cli-script.c: Use C++ exception handling.
11644 * cli/cli-interp.c: Use C++ exception handling.
11645 * cli/cli-cmds.c: Use C++ exception handling.
11646 * c-varobj.c: Use C++ exception handling.
11647 * btrace.c: Use C++ exception handling.
11648 * breakpoint.c: Use C++ exception handling.
11649 * break-catch-throw.c: Use C++ exception handling.
11650 * arch-utils.c: Use C++ exception handling.
11651 * amd64-tdep.c: Use C++ exception handling.
11652 * ada-valprint.c: Use C++ exception handling.
11653 * ada-typeprint.c: Use C++ exception handling.
11654 * ada-lang.c: Use C++ exception handling.
11655 * aarch64-tdep.c: Use C++ exception handling.
11656
3d6e9d23
TT
116572019-04-08 Tom Tromey <tom@tromey.com>
11658
11659 * xml-support.c (gdb_xml_parser::parse): Update.
11660 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11661 * value.c (show_convenience): Update.
11662 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11663 (test_parse_flags_qcs): Update.
11664 * thread.c (thr_try_catch_cmd): Update.
11665 * target.c (target_translate_tls_address): Update.
11666 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11667 (info_frame_command_core, frame_apply_command_count): Update.
11668 * rust-exp.y (rust_lex_exception_test): Update.
11669 * riscv-tdep.c (riscv_print_one_register_info): Update.
11670 * remote.c (remote_target::enable_btrace): Update.
11671 * record-btrace.c (record_btrace_enable_warn): Update.
11672 * python/py-utils.c (gdbpy_convert_exception): Update.
11673 * printcmd.c (do_one_display, print_variable_and_value): Update.
11674 * mi/mi-main.c (mi_print_exception): Update.
11675 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11676 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11677 * linux-nat.c (linux_nat_target::attach): Update.
11678 * linux-fork.c (class scoped_switch_fork_info): Update.
11679 * infrun.c (displaced_step_prepare): Update.
11680 * infcall.c (call_function_by_hand_dummy): Update.
11681 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11682 * gnu-v3-abi.c (print_one_vtable): Update.
11683 * frame.c (get_prev_frame_always): Update.
11684 * f-valprint.c (info_common_command_for_block): Update.
11685 * exec.c (try_open_exec_file): Update.
11686 * exceptions.c (print_exception, exception_print)
11687 (exception_fprintf, exception_print_same): Update.
11688 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11689 * dwarf-index-cache.c (index_cache::store)
11690 (index_cache::lookup_gdb_index): Update.
11691 * darwin-nat.c (maybe_cache_shell): Update.
11692 * cp-valprint.c (cp_print_value_fields): Update.
11693 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11694 (gcc_cplus_symbol_address): Update.
11695 * compile/compile-c-symbols.c (gcc_convert_symbol)
11696 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11697 * common/selftest.c: Update.
11698 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11699 a std::string.
11700 (exception_try_scope_entry, exception_try_scope_exit): Don't
11701 declare.
11702 (struct exception_try_scope): Remove.
11703 (TRY): Don't use exception_try_scope.
11704 (struct gdb_exception): Add constructor, operator=.
11705 <what>: New method.
11706 (struct gdb_exception_RETURN_MASK_ALL)
11707 (struct gdb_exception_RETURN_MASK_ERROR)
11708 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11709 (struct gdb_quit_bad_alloc): Update.
11710 * common/common-exceptions.c (exception_none): Change
11711 initializer.
11712 (struct catcher) <state, exception>: Initialize inline.
11713 <prev>: Remove member.
11714 (current_catcher): Remove.
11715 (catchers): New global.
11716 (exceptions_state_mc_init): Simplify.
11717 (catcher_pop): Remove.
11718 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11719 (try_scope_depth, exception_try_scope_entry)
11720 (exception_try_scope_exit): Remove.
11721 (throw_exception_sjlj): Update.
11722 (exception_messages, exception_messages_size): Remove.
11723 (throw_it): Simplify.
11724 (gdb_exception_sliced_copy): Remove.
11725 (throw_exception_cxx): Update.
11726 * cli/cli-script.c (script_from_file): Update.
11727 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11728 Update.
11729 * ada-valprint.c (ada_val_print): Update.
11730 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11731 (create_excep_cond_exprs): Update.
11732
c5c10118
TT
117332019-04-08 Tom Tromey <tom@tromey.com>
11734
11735 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11736 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11737 (TRY, CATCH, END_CATCH): Remove some definitions.
11738 * common/common-exceptions.c: Don't use GDB_XCPT.
11739 (catcher_list_size): Remove.
11740 (throw_exception, throw_it): Simplify.
11741
4de283e4
TT
117422019-04-05 Tom Tromey <tom@tromey.com>
11743
11744 Revert the header-sorting patch.
11745 * ft32-tdep.c: Revert.
11746 * frv-tdep.c: Revert.
11747 * frv-linux-tdep.c: Revert.
11748 * frame.c: Revert.
11749 * frame-unwind.c: Revert.
11750 * frame-base.c: Revert.
11751 * fork-child.c: Revert.
11752 * findvar.c: Revert.
11753 * findcmd.c: Revert.
11754 * filesystem.c: Revert.
11755 * filename-seen-cache.h: Revert.
11756 * filename-seen-cache.c: Revert.
11757 * fbsd-tdep.c: Revert.
11758 * fbsd-nat.h: Revert.
11759 * fbsd-nat.c: Revert.
11760 * f-valprint.c: Revert.
11761 * f-typeprint.c: Revert.
11762 * f-lang.c: Revert.
11763 * extension.h: Revert.
11764 * extension.c: Revert.
11765 * extension-priv.h: Revert.
11766 * expprint.c: Revert.
11767 * exec.h: Revert.
11768 * exec.c: Revert.
11769 * exceptions.c: Revert.
11770 * event-top.c: Revert.
11771 * event-loop.c: Revert.
11772 * eval.c: Revert.
11773 * elfread.c: Revert.
11774 * dwarf2read.h: Revert.
11775 * dwarf2read.c: Revert.
11776 * dwarf2loc.c: Revert.
11777 * dwarf2expr.h: Revert.
11778 * dwarf2expr.c: Revert.
11779 * dwarf2-frame.c: Revert.
11780 * dwarf2-frame-tailcall.c: Revert.
11781 * dwarf-index-write.h: Revert.
11782 * dwarf-index-write.c: Revert.
11783 * dwarf-index-common.c: Revert.
11784 * dwarf-index-cache.h: Revert.
11785 * dwarf-index-cache.c: Revert.
11786 * dummy-frame.c: Revert.
11787 * dtrace-probe.c: Revert.
11788 * disasm.h: Revert.
11789 * disasm.c: Revert.
11790 * disasm-selftests.c: Revert.
11791 * dictionary.c: Revert.
11792 * dicos-tdep.c: Revert.
11793 * demangle.c: Revert.
11794 * dcache.h: Revert.
11795 * dcache.c: Revert.
11796 * darwin-nat.h: Revert.
11797 * darwin-nat.c: Revert.
11798 * darwin-nat-info.c: Revert.
11799 * d-valprint.c: Revert.
11800 * d-namespace.c: Revert.
11801 * d-lang.c: Revert.
11802 * ctf.c: Revert.
11803 * csky-tdep.c: Revert.
11804 * csky-linux-tdep.c: Revert.
11805 * cris-tdep.c: Revert.
11806 * cris-linux-tdep.c: Revert.
11807 * cp-valprint.c: Revert.
11808 * cp-support.c: Revert.
11809 * cp-namespace.c: Revert.
11810 * cp-abi.c: Revert.
11811 * corelow.c: Revert.
11812 * corefile.c: Revert.
11813 * continuations.c: Revert.
11814 * completer.h: Revert.
11815 * completer.c: Revert.
11816 * complaints.c: Revert.
11817 * coffread.c: Revert.
11818 * coff-pe-read.c: Revert.
11819 * cli-out.h: Revert.
11820 * cli-out.c: Revert.
11821 * charset.c: Revert.
11822 * c-varobj.c: Revert.
11823 * c-valprint.c: Revert.
11824 * c-typeprint.c: Revert.
11825 * c-lang.c: Revert.
11826 * buildsym.c: Revert.
11827 * buildsym-legacy.c: Revert.
11828 * build-id.h: Revert.
11829 * build-id.c: Revert.
11830 * btrace.c: Revert.
11831 * bsd-uthread.c: Revert.
11832 * breakpoint.h: Revert.
11833 * breakpoint.c: Revert.
11834 * break-catch-throw.c: Revert.
11835 * break-catch-syscall.c: Revert.
11836 * break-catch-sig.c: Revert.
11837 * blockframe.c: Revert.
11838 * block.c: Revert.
11839 * bfin-tdep.c: Revert.
11840 * bfin-linux-tdep.c: Revert.
11841 * bfd-target.c: Revert.
11842 * bcache.c: Revert.
11843 * ax-general.c: Revert.
11844 * ax-gdb.h: Revert.
11845 * ax-gdb.c: Revert.
11846 * avr-tdep.c: Revert.
11847 * auxv.c: Revert.
11848 * auto-load.c: Revert.
11849 * arm-wince-tdep.c: Revert.
11850 * arm-tdep.c: Revert.
11851 * arm-symbian-tdep.c: Revert.
11852 * arm-pikeos-tdep.c: Revert.
11853 * arm-obsd-tdep.c: Revert.
11854 * arm-nbsd-tdep.c: Revert.
11855 * arm-nbsd-nat.c: Revert.
11856 * arm-linux-tdep.c: Revert.
11857 * arm-linux-nat.c: Revert.
11858 * arm-fbsd-tdep.c: Revert.
11859 * arm-fbsd-nat.c: Revert.
11860 * arm-bsd-tdep.c: Revert.
11861 * arch-utils.c: Revert.
11862 * arc-tdep.c: Revert.
11863 * arc-newlib-tdep.c: Revert.
11864 * annotate.h: Revert.
11865 * annotate.c: Revert.
11866 * amd64-windows-tdep.c: Revert.
11867 * amd64-windows-nat.c: Revert.
11868 * amd64-tdep.c: Revert.
11869 * amd64-sol2-tdep.c: Revert.
11870 * amd64-obsd-tdep.c: Revert.
11871 * amd64-obsd-nat.c: Revert.
11872 * amd64-nbsd-tdep.c: Revert.
11873 * amd64-nbsd-nat.c: Revert.
11874 * amd64-nat.c: Revert.
11875 * amd64-linux-tdep.c: Revert.
11876 * amd64-linux-nat.c: Revert.
11877 * amd64-fbsd-tdep.c: Revert.
11878 * amd64-fbsd-nat.c: Revert.
11879 * amd64-dicos-tdep.c: Revert.
11880 * amd64-darwin-tdep.c: Revert.
11881 * amd64-bsd-nat.c: Revert.
11882 * alpha-tdep.c: Revert.
11883 * alpha-obsd-tdep.c: Revert.
11884 * alpha-nbsd-tdep.c: Revert.
11885 * alpha-mdebug-tdep.c: Revert.
11886 * alpha-linux-tdep.c: Revert.
11887 * alpha-linux-nat.c: Revert.
11888 * alpha-bsd-tdep.c: Revert.
11889 * alpha-bsd-nat.c: Revert.
11890 * aix-thread.c: Revert.
11891 * agent.c: Revert.
11892 * addrmap.c: Revert.
11893 * ada-varobj.c: Revert.
11894 * ada-valprint.c: Revert.
11895 * ada-typeprint.c: Revert.
11896 * ada-tasks.c: Revert.
11897 * ada-lang.c: Revert.
11898 * aarch64-tdep.c: Revert.
11899 * aarch64-ravenscar-thread.c: Revert.
11900 * aarch64-newlib-tdep.c: Revert.
11901 * aarch64-linux-tdep.c: Revert.
11902 * aarch64-linux-nat.c: Revert.
11903 * aarch64-fbsd-tdep.c: Revert.
11904 * aarch64-fbsd-nat.c: Revert.
11905 * aarch32-linux-nat.c: Revert.
11906
d55e5aa6
TT
119072019-04-05 Tom Tromey <tom@tromey.com>
11908
11909 * ft32-tdep.c: Sort headers.
11910 * frv-tdep.c: Sort headers.
11911 * frv-linux-tdep.c: Sort headers.
11912 * frame.c: Sort headers.
11913 * frame-unwind.c: Sort headers.
11914 * frame-base.c: Sort headers.
11915 * fork-child.c: Sort headers.
11916 * findvar.c: Sort headers.
11917 * findcmd.c: Sort headers.
11918 * filesystem.c: Sort headers.
11919 * filename-seen-cache.h: Sort headers.
11920 * filename-seen-cache.c: Sort headers.
11921 * fbsd-tdep.c: Sort headers.
11922 * fbsd-nat.h: Sort headers.
11923 * fbsd-nat.c: Sort headers.
11924 * f-valprint.c: Sort headers.
11925 * f-typeprint.c: Sort headers.
11926 * f-lang.c: Sort headers.
11927 * extension.h: Sort headers.
11928 * extension.c: Sort headers.
11929 * extension-priv.h: Sort headers.
11930 * expprint.c: Sort headers.
11931 * exec.h: Sort headers.
11932 * exec.c: Sort headers.
11933 * exceptions.c: Sort headers.
11934 * event-top.c: Sort headers.
11935 * event-loop.c: Sort headers.
11936 * eval.c: Sort headers.
11937 * elfread.c: Sort headers.
11938 * dwarf2read.h: Sort headers.
11939 * dwarf2read.c: Sort headers.
11940 * dwarf2loc.c: Sort headers.
11941 * dwarf2expr.h: Sort headers.
11942 * dwarf2expr.c: Sort headers.
11943 * dwarf2-frame.c: Sort headers.
11944 * dwarf2-frame-tailcall.c: Sort headers.
11945 * dwarf-index-write.h: Sort headers.
11946 * dwarf-index-write.c: Sort headers.
11947 * dwarf-index-common.c: Sort headers.
11948 * dwarf-index-cache.h: Sort headers.
11949 * dwarf-index-cache.c: Sort headers.
11950 * dummy-frame.c: Sort headers.
11951 * dtrace-probe.c: Sort headers.
11952 * disasm.h: Sort headers.
11953 * disasm.c: Sort headers.
11954 * disasm-selftests.c: Sort headers.
11955 * dictionary.c: Sort headers.
11956 * dicos-tdep.c: Sort headers.
11957 * demangle.c: Sort headers.
11958 * dcache.h: Sort headers.
11959 * dcache.c: Sort headers.
11960 * darwin-nat.h: Sort headers.
11961 * darwin-nat.c: Sort headers.
11962 * darwin-nat-info.c: Sort headers.
11963 * d-valprint.c: Sort headers.
11964 * d-namespace.c: Sort headers.
11965 * d-lang.c: Sort headers.
11966 * ctf.c: Sort headers.
11967 * csky-tdep.c: Sort headers.
11968 * csky-linux-tdep.c: Sort headers.
11969 * cris-tdep.c: Sort headers.
11970 * cris-linux-tdep.c: Sort headers.
11971 * cp-valprint.c: Sort headers.
11972 * cp-support.c: Sort headers.
11973 * cp-namespace.c: Sort headers.
11974 * cp-abi.c: Sort headers.
11975 * corelow.c: Sort headers.
11976 * corefile.c: Sort headers.
11977 * continuations.c: Sort headers.
11978 * completer.h: Sort headers.
11979 * completer.c: Sort headers.
11980 * complaints.c: Sort headers.
11981 * coffread.c: Sort headers.
11982 * coff-pe-read.c: Sort headers.
11983 * cli-out.h: Sort headers.
11984 * cli-out.c: Sort headers.
11985 * charset.c: Sort headers.
11986 * c-varobj.c: Sort headers.
11987 * c-valprint.c: Sort headers.
11988 * c-typeprint.c: Sort headers.
11989 * c-lang.c: Sort headers.
11990 * buildsym.c: Sort headers.
11991 * buildsym-legacy.c: Sort headers.
11992 * build-id.h: Sort headers.
11993 * build-id.c: Sort headers.
11994 * btrace.c: Sort headers.
11995 * bsd-uthread.c: Sort headers.
11996 * breakpoint.h: Sort headers.
11997 * breakpoint.c: Sort headers.
11998 * break-catch-throw.c: Sort headers.
11999 * break-catch-syscall.c: Sort headers.
12000 * break-catch-sig.c: Sort headers.
12001 * blockframe.c: Sort headers.
12002 * block.c: Sort headers.
12003 * bfin-tdep.c: Sort headers.
12004 * bfin-linux-tdep.c: Sort headers.
12005 * bfd-target.c: Sort headers.
12006 * bcache.c: Sort headers.
12007 * ax-general.c: Sort headers.
12008 * ax-gdb.h: Sort headers.
12009 * ax-gdb.c: Sort headers.
12010 * avr-tdep.c: Sort headers.
12011 * auxv.c: Sort headers.
12012 * auto-load.c: Sort headers.
12013 * arm-wince-tdep.c: Sort headers.
12014 * arm-tdep.c: Sort headers.
12015 * arm-symbian-tdep.c: Sort headers.
12016 * arm-pikeos-tdep.c: Sort headers.
12017 * arm-obsd-tdep.c: Sort headers.
12018 * arm-nbsd-tdep.c: Sort headers.
12019 * arm-nbsd-nat.c: Sort headers.
12020 * arm-linux-tdep.c: Sort headers.
12021 * arm-linux-nat.c: Sort headers.
12022 * arm-fbsd-tdep.c: Sort headers.
12023 * arm-fbsd-nat.c: Sort headers.
12024 * arm-bsd-tdep.c: Sort headers.
12025 * arch-utils.c: Sort headers.
12026 * arc-tdep.c: Sort headers.
12027 * arc-newlib-tdep.c: Sort headers.
12028 * annotate.h: Sort headers.
12029 * annotate.c: Sort headers.
12030 * amd64-windows-tdep.c: Sort headers.
12031 * amd64-windows-nat.c: Sort headers.
12032 * amd64-tdep.c: Sort headers.
12033 * amd64-sol2-tdep.c: Sort headers.
12034 * amd64-obsd-tdep.c: Sort headers.
12035 * amd64-obsd-nat.c: Sort headers.
12036 * amd64-nbsd-tdep.c: Sort headers.
12037 * amd64-nbsd-nat.c: Sort headers.
12038 * amd64-nat.c: Sort headers.
12039 * amd64-linux-tdep.c: Sort headers.
12040 * amd64-linux-nat.c: Sort headers.
12041 * amd64-fbsd-tdep.c: Sort headers.
12042 * amd64-fbsd-nat.c: Sort headers.
12043 * amd64-dicos-tdep.c: Sort headers.
12044 * amd64-darwin-tdep.c: Sort headers.
12045 * amd64-bsd-nat.c: Sort headers.
12046 * alpha-tdep.c: Sort headers.
12047 * alpha-obsd-tdep.c: Sort headers.
12048 * alpha-nbsd-tdep.c: Sort headers.
12049 * alpha-mdebug-tdep.c: Sort headers.
12050 * alpha-linux-tdep.c: Sort headers.
12051 * alpha-linux-nat.c: Sort headers.
12052 * alpha-bsd-tdep.c: Sort headers.
12053 * alpha-bsd-nat.c: Sort headers.
12054 * aix-thread.c: Sort headers.
12055 * agent.c: Sort headers.
12056 * addrmap.c: Sort headers.
12057 * ada-varobj.c: Sort headers.
12058 * ada-valprint.c: Sort headers.
12059 * ada-typeprint.c: Sort headers.
12060 * ada-tasks.c: Sort headers.
12061 * ada-lang.c: Sort headers.
12062 * aarch64-tdep.c: Sort headers.
12063 * aarch64-ravenscar-thread.c: Sort headers.
12064 * aarch64-newlib-tdep.c: Sort headers.
12065 * aarch64-linux-tdep.c: Sort headers.
12066 * aarch64-linux-nat.c: Sort headers.
12067 * aarch64-fbsd-tdep.c: Sort headers.
12068 * aarch64-fbsd-nat.c: Sort headers.
12069 * aarch32-linux-nat.c: Sort headers.
12070
699bd4cf
TT
120712019-04-04 Tom Tromey <tom@tromey.com>
12072
12073 * varobj.c (varobj_create): Update.
12074 * rust-exp.y (struct rust_parser) <update_innermost_block,
12075 lookup_symbol>: New methods.
12076 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12077 Rename.
12078 (rust_parser::rust_lookup_type)
12079 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12080 * printcmd.c (display_command, do_one_display): Update.
12081 * parser-defs.h (struct parser_state) <parser_state>: Add
12082 "tracker" parameter.
12083 (block_tracker): New member.
12084 (class innermost_block_tracker) <innermost_block_tracker>: Add
12085 "types" parameter.
12086 <reset>: Remove method.
12087 (innermost_block): Don't declare.
12088 (null_post_parser): Update.
12089 * parse.c (innermost_block): Remove global.
12090 (write_dollar_variable): Update.
12091 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12092 Remove "tracker_types" parameter.
12093 (parse_expression): Add "tracker" parameter.
12094 (parse_expression_for_completion): Update.
12095 (null_post_parser): Add "tracker" parameter.
12096 * p-exp.y: Update rules.
12097 * m2-exp.y: Update rules.
12098 * language.h (struct language_defn) <la_post_parser>: Add
12099 "tracker" parameter.
12100 * go-exp.y: Update rules.
12101 * f-exp.y: Update rules.
12102 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12103 parameter.
12104 * d-exp.y: Update rules.
12105 * c-exp.y: Update rules.
12106 * breakpoint.c (set_breakpoint_condition): Create an
12107 innermost_block_tracker.
12108 (watch_command_1): Likewise.
12109 * ada-lang.c (resolve): Add "tracker" parameter.
12110 (resolve_subexp): Likewise.
12111 * ada-exp.y (write_var_from_sym): Update.
12112
dac43e32
TT
121132019-04-04 Tom Tromey <tom@tromey.com>
12114
12115 * type-stack.h: New file.
12116 * type-stack.c: New file.
12117 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12118 type-stack.h.
12119 (insert_into_type_stack, insert_type, push_type, push_type_int)
12120 (insert_type_address_space, pop_type, pop_type_int)
12121 (pop_typelist, pop_type_stack, append_type_stack)
12122 (push_type_stack, get_type_stack, push_typelist)
12123 (follow_type_instance_flags, follow_types): Don't declare.
12124 * parse.c (type_stack): Remove global.
12125 (parse_exp_in_context): Update.
12126 (insert_into_type_stack, insert_type, push_type, push_type_int)
12127 (insert_type_address_space, pop_type, pop_type_int)
12128 (pop_typelist, pop_type_stack, append_type_stack)
12129 (push_type_stack, get_type_stack, push_typelist)
12130 (follow_type_instance_flags, follow_types): Remove (moved to
12131 type-stack.c).
12132 * f-exp.y (type_stack): New global.
12133 Update rules.
12134 (push_kind_type, f_parse): Update.
12135 * d-exp.y (type_stack): New global.
12136 Update rules.
12137 (d_parse): Update.
12138 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12139 Update rules.
12140 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12141 (HFILES_NO_SRCDIR): Add type-stack.h.
12142
2a612529
TT
121432019-04-04 Tom Tromey <tom@tromey.com>
12144
12145 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12146 (rust_parser::convert_ast_to_expression, rust_parse)
12147 (rust_lex_test_completion, rust_lex_tests): Update.
12148 * parser-defs.h (struct expr_completion_state): New.
12149 (struct parser_state) <parser_state>: Add completion parameter.
12150 <mark_struct_expression, mark_completion_tag>: New methods.
12151 <parse_completion, m_completion_state>: New members.
12152 (prefixify_expression, null_post_parser): Update.
12153 (mark_struct_expression, mark_completion_tag): Don't declare.
12154 * parse.c (parse_completion, expout_last_struct)
12155 (expout_tag_completion_type, expout_completion_name): Remove
12156 globals.
12157 (parser_state::mark_struct_expression)
12158 (parser_state::mark_completion_tag): Now methods.
12159 (prefixify_expression): Add last_struct parameter.
12160 (prefixify_subexp): Likewise.
12161 (parse_exp_1): Update.
12162 (parse_exp_in_context): Add cstate parameter. Update.
12163 (parse_expression_for_completion): Create an
12164 expr_completion_state.
12165 (null_post_parser): Add "completion" parameter.
12166 * p-exp.y: Update rules.
12167 (yylex): Update.
12168 * language.h (struct language_defn) <la_post_parser>: Add
12169 "completing" parameter.
12170 * go-exp.y: Update rules.
12171 (lex_one_token): Update.
12172 * expression.h (parse_completion): Don't declare.
12173 * d-exp.y: Update rules.
12174 (lex_one_token): Update rules.
12175 * c-exp.y: Update rules.
12176 (lex_one_token): Update.
12177 * ada-lang.c (resolve): Add "parse_completion" parameter.
12178 (resolve_subexp): Likewise.
12179 (ada_resolve_function): Likewise.
12180
43476f0b
TT
121812019-04-04 Tom Tromey <tom@tromey.com>
12182
12183 * parser-defs.h (struct parser_state) <start_arglist,
12184 end_arglist>: New methods.
12185 <arglist_len, m_funcall_chain>: New members.
12186 (arglist_len, start_arglist, end_arglist): Don't declare.
12187 * parse.c (arglist_len, funcall_chain): Remove global.
12188 (start_arglist, end_arglist): Remove functions.
12189 (parse_exp_in_context): Update.
12190 * p-exp.y: Update rules.
12191 * m2-exp.y: Update rules.
12192 * go-exp.y: Update rules.
12193 * f-exp.y: Update rules.
12194 * d-exp.y: Update rules.
12195 * c-exp.y: Update rules.
12196
5776fca3
TT
121972019-04-04 Tom Tromey <tom@tromey.com>
12198
12199 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12200 lex_operator, push_back>: New methods.
12201 Update all rules.
12202 (rust_parser::lex_hex, lex_escape): Rename and update.
12203 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12204 (rust_parser::lex_operator): Rename and update.
12205 (rust_parser::lex_number, rustyylex, rustyyerror)
12206 (rust_lex_test_init, rust_lex_test_sequence)
12207 (rust_lex_test_push_back, rust_lex_tests): Update.
12208 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12209 parameter.
12210 <lexptr, prev_lexptr>: New members.
12211 (lexptr, prev_lexptr): Don't declare.
12212 * parse.c (lexptr, prev_lexptr): Remove globals.
12213 (parse_exp_in_context): Update.
12214 * p-exp.y (yylex, yyerror): Update.
12215 * m2-exp.y (parse_number, yylex, yyerror): Update.
12216 * go-exp.y (lex_one_token, yyerror): Update.
12217 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12218 * d-exp.y (lex_one_token, yyerror): Update.
12219 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12220 (lex_one_token, yyerror): Update.
12221 * ada-lex.l (YY_INPUT): Update.
12222 (rewind_to_char): Update.
12223 * ada-exp.y (yyerror): Update.
12224
8621b685
TT
122252019-04-04 Tom Tromey <tom@tromey.com>
12226
12227 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12228 * parser-defs.h (struct parser_state) <parser_state>: Add new
12229 parameter.
12230 <comma_terminates>: New member.
12231 (comma_terminates): Don't declare global.
12232 * parse.c (comma_terminates): Remove global.
12233 (parse_exp_in_context): Update.
12234 * p-exp.y (yylex): Update.
12235 * m2-exp.y (yylex): Update.
12236 * go-exp.y (lex_one_token): Update.
12237 * f-exp.y (yylex): Update.
12238 * d-exp.y (lex_one_token): Update.
12239 * c-exp.y (lex_one_token): Update.
12240 * ada-lex.l: Update.
12241
28aaf3fd
TT
122422019-04-04 Tom Tromey <tom@tromey.com>
12243
12244 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12245 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12246 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12247 * parser-defs.h (paren_depth): Don't declare.
12248 * parse.c (paren_depth): Remove global.
12249 (parse_exp_in_context): Update.
12250 * p-exp.y (paren_depth): New global.
12251 (pascal_parse): Initialize it.
12252 * m2-exp.y (paren_depth): New global.
12253 (m2_parse): Initialize it.
12254 * go-exp.y (paren_depth): New global.
12255 (go_parse): Initialize it.
12256 * f-exp.y (paren_depth): New global.
12257 (f_parse): Initialize it.
12258 * d-exp.y (paren_depth): New global.
12259 (d_parse): Initialize it.
12260 * c-exp.y (paren_depth): New global.
12261 (c_parse): Initialize it.
12262 * ada-lex.l (paren_depth): New global.
12263 (lexer_init): Initialize it.
12264
1e58a4a4
TT
122652019-04-04 Tom Tromey <tom@tromey.com>
12266
12267 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12268 (rust_parser::convert_ast_to_type)
12269 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12270 * parser-defs.h (struct parser_state) <parser_state>: Add
12271 parameters. Initialize new members.
12272 <expression_context_block, expression_context_pc>: New members.
12273 * parse.c (expression_context_block, expression_context_pc):
12274 Remove globals.
12275 (parse_exp_in_context): Update.
12276 * p-exp.y: Update all rules.
12277 (yylex): Update.
12278 * m2-exp.y: Update all rules.
12279 (yylex): Update.
12280 * go-exp.y (yylex): Update.
12281 * f-exp.y (yylex): Update.
12282 * d-exp.y: Update all rules.
12283 (yylex): Update.
12284 * c-exp.y: Update all rules.
12285 (lex_one_token, classify_name, yylex, c_parse): Update.
12286 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12287
37eedb39
TT
122882019-04-04 Tom Tromey <tom@tromey.com>
12289
12290 * gdbarch.h, gdbarch.c: Rebuild.
12291 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12292 * stap-probe.h:
12293 (struct stap_parse_info): Replace "parser_state" with
12294 "expr_builder".
12295 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12296 (parser_state): New class.
12297 * parse.c (expr_builder): Rename.
12298 (expr_builder::release): Rename.
12299 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12300 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12301 (write_exp_elt_longcst, write_exp_elt_floatcst)
12302 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12303 (write_exp_string_vector, write_exp_bitstring)
12304 (write_exp_msymbol, mark_struct_expression)
12305 (write_dollar_variable)
12306 (insert_type_address_space, increase_expout_size): Replace
12307 "parser_state" with "expr_builder".
12308 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12309 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12310 "parser_state" with "expr_builder".
12311
73923d7e
TT
123122019-04-04 Tom Tromey <tom@tromey.com>
12313
12314 * rust-exp.y: Replace "parse_language" with method call.
12315 * p-exp.y:
12316 (yylex): Replace "parse_language" with method call.
12317 * m2-exp.y:
12318 (yylex): Replace "parse_language" with method call.
12319 * go-exp.y (classify_name): Replace "parse_language" with method
12320 call.
12321 * f-exp.y (yylex): Replace "parse_language" with method call.
12322 * d-exp.y (lex_one_token): Replace "parse_language" with method
12323 call.
12324 * c-exp.y:
12325 (lex_one_token, classify_name, yylex): Replace "parse_language"
12326 with method call.
12327 * ada-exp.y (find_primitive_type, type_char)
12328 (type_system_address): Replace "parse_language" with method call.
12329
fa9f5be6
TT
123302019-04-04 Tom Tromey <tom@tromey.com>
12331
12332 * rust-exp.y: Replace "parse_gdbarch" with method call.
12333 * parse.c (write_dollar_variable, insert_type_address_space):
12334 Replace "parse_gdbarch" with method call.
12335 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12336 call.
12337 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12338 call.
12339 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12340 "parse_gdbarch" with method call.
12341 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12342 with method call.
12343 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12344 "parse_gdbarch" with method call.
12345 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12346 "parse_gdbarch" with method call.
12347 * c-exp.y (parse_type, parse_number, classify_name): Replace
12348 "parse_gdbarch" with method call.
12349 * ada-lex.l: Replace "parse_gdbarch" with method call.
12350 * ada-exp.y (parse_type, find_primitive_type, type_char)
12351 (type_system_address): Replace "parse_gdbarch" with method call.
12352
1201a264
TT
123532019-04-04 Tom Tromey <tom@tromey.com>
12354
12355 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12356 * stap-probe.c (stap_parse_argument): Update.
12357 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12358 initial_size parameter.
12359 * rust-exp.y (rust_lex_tests): Update.
12360 * parse.c (parser_state): Update.
12361 (parse_exp_in_context): Update.
12362 * parser-defs.h (struct parser_state) <parser_state>: Remove
12363 "initial_size" parameter.
12364
e3980ce2
TT
123652019-04-04 Tom Tromey <tom@tromey.com>
12366
12367 * parser-defs.h (increase_expout_size): Don't declare.
12368 * parse.c (increase_expout_size): Now static.
12369
e9f8e3f1
TS
123702019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12371
12372 * gnu-nat.c (gnu_nat_target::wait): Fix
12373 target_waitstatus_to_string call.
12374
d7df6549
AB
123752019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12376
12377 * eval.c (evaluate_subexp_standard): Handle internal functions
12378 during Fortran function call handling.
12379
8bdc1658
AB
123802019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12381
12382 * NEWS: Mention new internal functions.
12383 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12384 (read_base_type): Use dwarf2_init_complex_target_type.
12385 * value.c (creal_internal_fn): New function.
12386 (cimag_internal_fn): New function.
12387 (_initialize_values): Register new internal functions.
12388
c29705b7
PW
123892019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12390
12391 * infrun.c (stop_all_threads): If debug_infrun, always
12392 trace the wait status after wait_one, using
12393 target_waitstatus_to_string and target_pid_to_str.
12394 (handle_inferior_event): Replace various trace of
12395 wait status kind by a single trace.
12396 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12397 wait status kind image by target_waitstatus_to_string.
12398 * target/waitstatus.c (target_waitstatus_to_string): Fix
12399 obsolete comment.
12400
05caa1d2
TT
124012019-04-01 Tom Tromey <tromey@adacore.com>
12402
12403 PR symtab/23331:
12404 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12405
9d1447e0
SDJ
124062019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12407 Pedro Alves <palves@redhat.com>
12408
12409 * top.c (quit_force): Call 'finalize_values'.
12410 * value.c (finalize_values): New function.
12411 * value.h (finalize_values): Declare.
12412
7734102d
EZ
124132019-03-30 Eli Zaretskii <eliz@gnu.org>
12414
12415 * NEWS: Announce $_gdb_major and $_gdb_minor.
12416
12417 * top.c (init_gdb_version_vars): New function.
12418 (gdb_init): Call init_gdb_version_vars.
12419
188e1fa9
TT
124202019-03-29 Tom Tromey <tromey@adacore.com>
12421
12422 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12423 help text. Remove dead code.
12424
2880242d
KS
124252019-03-29 Keith Seitz <keiths@redhat.com>
12426
12427 From Siddhesh Poyarekar:
12428 * f-lang.h (f77_get_upperbound): Return LONGEST.
12429 (f77_get_lowerbound): Likewise.
12430 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12431 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12432 print them.
12433 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12434 plongest to format print it.
12435 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12436 (f77_get_upperbound): Likewise.
12437 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12438 LOWER_BOUND to LONGEST.
12439 (f77_create_arrayprint_offset_tbl): Likewise.
12440
cc1defb1
KS
124412019-03-29 Keith Seitz <keiths@redhat.com>
12442
12443 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12444 %s/pulongest for TYPE_LENGTH instead of %d in format
12445 strings.
12446 * ada-typerint.c (ada_print_type): Likewise.
12447 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12448 * compile/compile-c-support.c (generate_register_struct): Likewise.
12449 * gdbtypes.c (recursive_dump_type): Likewise.
12450 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12451 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12452 instead of %d in format strings.
12453 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12454 to std::min to ULONGEST.
12455 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12456 instead of %d in format strings.
12457 * tracepoint.c (info_scope_command): Likewise.
12458 * typeprint.c (print_offset_data::update)
12459 (print_offset_data::finish): Likewise.
12460 * xtensa-tdep.c (xtensa_store_return_value)
12461 (xtensa_push_dummy_call): Likewise.
12462
e432ccf1
JT
124632019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12464
12465 * windows-nat.c (display_selector): Fixed format specifications
12466 for 64-bit Cygwin.
12467
65d2b333
PW
124682019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12469
12470 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12471
f489207e
SL
124722019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12473
12474 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12475 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12476 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12477 (nios2_linux_init_abi): Install it.
12478
bffa1015
AH
124792019-03-28 Alan Hayward <alan.hayward@arm.com>
12480
12481 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12482
fc96163a
AH
124832019-03-28 Alan Hayward <alan.hayward@arm.com>
12484
12485 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12486
20dc7e9b
PW
124872019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12488 Tom Tromey <tromey@adacore.com>
12489
12490 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12491
7f5331a8
JB
124922019-03-26 Joel Brobecker <brobecker@adacore.com>
12493
12494 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12495 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12496 method to compute the bounds of range types. Also print "[evaluated]"
12497 if the bounds' values come from a dynamic evaluation.
12498
18c77628
AB
124992019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12500
12501 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12502 whitespace when pretty printing is on.
12503
53c973f2
AH
125042019-03-26 Alan Hayward <alan.hayward@arm.com>
12505
e79be6e5 12506 * ppc-linux-nat.c: Add include.
53c973f2 12507
d851aa71
AH
125082019-03-26 Alan Hayward <alan.hayward@arm.com>
12509
e79be6e5 12510 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12511
2fe7bab7
AH
125122019-03-26 Alan Hayward <alan.hayward@arm.com>
12513
e79be6e5 12514 * arm-linux-nat.c: Add include.
2fe7bab7 12515
068ef30e
SM
125162019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12517
12518 * source-cache.c (source_cache::get_source_lines): Re-read
12519 fullname after calling open_source_file.
12520
81a24d04
JB
125212019-03-25 John Baldwin <jhb@FreeBSD.org>
12522
12523 * NEWS: Mention TLS support for FreeBSD.
12524
79e7ae11
TT
125252019-03-25 Tom Tromey <tromey@adacore.com>
12526
12527 * minsyms.c (BUNCH_SIZE): Update comment.
12528 (~minimal_symbol_reader): Remove old comment.
12529 (compact_minimal_symbols): Update comment.
12530 (minimal_symbol_reader::install): Remove old comment. Update
12531 other comments.
12532
d45963c2
AH
125332019-03-25 Alan Hayward <alan.hayward@arm.com>
12534
12535 * s390-linux-nat.c: Add include.
12536
0f83012e
AH
125372019-03-25 Alan Hayward <alan.hayward@arm.com>
12538
12539 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12540 Call linux_get_hwcap.
12541 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12542 Likewise.
12543 (aarch64_linux_get_hwcap): Remove function.
12544 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12545 declaration.
12546 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12547 linux_get_hwcap.
12548 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12549 * linux-tdep.c (linux_get_hwcap): Add function.
12550 (linux_get_hwcap2): Likewise.
12551 * linux-tdep.h (linux_get_hwcap): Add declaration.
12552 (linux_get_hwcap2): Likewise.
12553 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12554 (ppc_linux_get_hwcap2): Likewise.
12555 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12556 linux_get_hwcap.
12557 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12558 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12559 (ppc_linux_nat_target::read_description): Likewise.
12560 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12561 * s390-linux-nat.c: Likewise.
12562 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12563
6640a367
TT
125642019-03-24 Tom Tromey <tom@tromey.com>
12565
12566 * ada-lang.c (standard_lookup): Simplify initialization.
12567 (ada_lookup_symbol_nonlocal): Simplify return.
12568 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12569 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12570 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12571 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12572 initialization.
12573 * solib.c (solib_global_lookup): Simplify.
12574 * symtab.c (null_block_symbol): Remove.
12575 (symbol_cache_lookup): Simplify returns.
12576 (lookup_language_this): Simplify returns.
12577 (lookup_symbol_aux): Simplify return.
12578 (lookup_local_symbol): Simplify returns.
12579 (lookup_global_symbol_from_objfile): Simplify return.
12580 (lookup_symbol_in_objfile_symtabs)
12581 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12582 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12583 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12584 * cp-namespace.c (cp_lookup_bare_symbol)
12585 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12586 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12587 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12588 (cp_lookup_symbol_via_imports): Simplify initialization.
12589 (find_symbol_in_baseclass): Likewise.
12590 * symtab.h (null_block_symbol): Remove.
12591 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12592 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12593 (d_lookup_symbol_module): Likewise.
12594 (find_symbol_in_baseclass): Simplify initialization.
12595
a930ebcd
TT
125962019-03-24 Tom Tromey <tom@tromey.com>
12597
12598 * expression.h: Don't include symtab.h.
12599 (struct block): Forward declare.
12600
582942f4
TT
126012019-03-24 Tom Tromey <tom@tromey.com>
12602
12603 * c-exp.y (typebase): Remove casts.
12604 * gdbtypes.c (lookup_unsigned_typename, )
12605 (lookup_signed_typename): Remove cast.
12606 * eval.c (parse_to_comma_and_eval): Remove cast.
12607 * parse.c (write_dollar_variable): Remove cast.
12608 * block.h (struct block) <superblock>: Now const.
12609 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12610 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12611 (map_block): Make "block" const.
12612 * symfile.h (struct quick_symbol_functions)
12613 <map_matching_symbols>: Constify block argument to "callback".
12614 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12615 const.
12616 (find_pc_sect_compunit_symtab): Make "b" const.
12617 (find_symbol_at_address): Likewise.
12618 (search_symbols): Likewise.
12619 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12620 (dw2_debug_names_lookup_symbol): Likewise.
12621 (dw2_map_matching_symbols): Update.
12622 * p-valprint.c (pascal_val_print): Remove "block".
12623 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12624 (aux_add_nonlocal_symbols): Make "block" const.
12625 (resolve_subexp): Remove cast.
12626 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12627 const.
12628 (iterate_over_file_blocks): Likewise.
12629 * f-exp.y (%union) <bval>: Remove.
12630 * coffread.c (patch_opaque_types): Make "b" const.
12631 * spu-tdep.c (spu_catch_start): Make "block" const.
12632 * c-valprint.c (print_unpacked_pointer): Remove "block".
12633 * symmisc.c (dump_symtab_1): Make "b" const.
12634 (block_depth): Make "block" const.
12635 * d-exp.y (%union) <bval>: Remove.
12636 * cp-support.h (cp_lookup_rtti_type): Update.
12637 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12638 * psymtab.c (psym_lookup_symbol): Make "block" const.
12639 (maintenance_check_psymtabs): Make "b" const.
12640 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12641 (enumerate_locals, enumerate_args): Update.
12642 * python/py-symtab.c (stpy_global_block): Make "block" const.
12643 (stpy_static_block): Likewise.
12644 * inline-frame.c (block_starting_point_at): Make "new_block"
12645 const.
12646 * block.c (find_block_in_blockvector): Make return type const.
12647 (blockvector_for_pc_sect): Make "b" const.
12648 (find_block_in_blockvector): Make "b" const.
12649
7ad417dd
TT
126502019-03-23 Tom Tromey <tom@tromey.com>
12651
12652 * varobj.c (varobj_create): Update.
12653 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12654 * printcmd.c (display_command, do_one_display): Don't reset
12655 innermost_block.
12656 * parser-defs.h (enum innermost_block_tracker_type): Move to
12657 expression.h.
12658 (innermost_block): Update comment.
12659 * parse.c (parse_exp_1): Add tracker_types parameter.
12660 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12661 tracker_types parameter. Reset innermost_block.
12662 (parse_exp_in_context): Remove.
12663 (parse_expression_for_completion): Update.
12664 * objfiles.c (~objfile): Don't reset expression_context_block or
12665 innermost_block.
12666 * expression.h (enum innermost_block_tracker_type): Move from
12667 parser-defs.h.
12668 (parse_exp_1): Add tracker_types parameter.
12669 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12670 reset innermost_block.
12671
b366c208
TT
126722019-03-23 Tom Tromey <tom@tromey.com>
12673
12674 * objfiles.h: Include bcache.h.
12675
9bb9b2f9
TT
126762019-03-23 Tom Tromey <tom@tromey.com>
12677
12678 * linespec.c (get_current_search_block): Use
12679 scoped_restore_current_language.
12680 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12681
59c28372
AH
126822019-03-22 Alan Hayward <alan.hayward@arm.com>
12683 Jiong Wang <jiong.wang@arm.com>
12684
12685 * aarch64-linux-tdep.c
12686 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12687 section.
12688 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12689
17e116a7
AH
126902019-03-22 Alan Hayward <alan.hayward@arm.com>
12691 Jiong Wang <jiong.wang@arm.com>
12692
12693 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12694 instructions.
12695 (aarch64_analyze_prologue_test): Add PACIASP test.
12696 (aarch64_prologue_prev_register): Unmask PC value.
12697
11e1b75f
AH
126982019-03-22 Alan Hayward <alan.hayward@arm.com>
12699 Jiong Wang <jiong.wang@arm.com>
12700
12701 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12702 (aarch64_dwarf2_prev_register): Unmask PC value.
12703 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12704 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12705 DW_CFA_AARCH64_negate_ra_state.
12706 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12707
34dcc7cf
AH
127082019-03-22 Alan Hayward <alan.hayward@arm.com>
12709 Jiong Wang <jiong.wang@arm.com>
12710
12711 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12712 registers.
12713 (aarch64_pseudo_register_name): Likewise.
12714 (aarch64_pseudo_register_type): Likewise.
12715 (aarch64_pseudo_register_reggroup_p): Likewise.
12716 (aarch64_gdbarch_init): Add pauth registers.
12717 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12718 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12719 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12720 (struct gdbarch_tdep): Add regnum for ra_state.
12721
1ef53e6b
AH
127222019-03-22 Alan Hayward <alan.hayward@arm.com>
12723 Jiong Wang <jiong.wang@arm.com>
12724
12725 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12726
76bed0fd
AH
127272019-03-22 Alan Hayward <alan.hayward@arm.com>
12728 Jiong Wang <jiong.wang@arm.com>
12729
12730 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12731 function.
12732 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12733 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12734 (aarch64_gdbarch_init): Add puth registers.
12735 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12736 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12737 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12738
ee4fbcfa
AH
127392019-03-22 Alan Hayward <alan.hayward@arm.com>
12740 Jiong Wang <jiong.wang@arm.com>
12741
12742 * aarch64-linux-nat.c
12743 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12744 * aarch64-linux-tdep.c
12745 (aarch64_linux_core_read_description): Likewise.
12746 (aarch64_linux_get_hwcap): New function.
12747 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12748 (aarch64_linux_get_hwcap): New declaration.
12749
6dc0ebde
AH
127502019-03-22 Alan Hayward <alan.hayward@arm.com>
12751 Jiong Wang <jiong.wang@arm.com>
12752
12753 * aarch64-linux-nat.c
12754 (aarch64_linux_nat_target::read_description): Add pauth param.
12755 * aarch64-linux-tdep.c
12756 (aarch64_linux_core_read_description): Likewise.
12757 * aarch64-tdep.c (struct target_desc): Add in pauth.
12758 (aarch64_read_description): Add pauth param.
12759 (aarch64_gdbarch_init): Likewise.
12760 * aarch64-tdep.h (aarch64_read_description): Likewise.
12761 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12762 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12763 * features/Makefile: Add new files.
12764 * features/aarch64-pauth.c: New file.
12765 * features/aarch64-pauth.xml: New file.
12766
595915c1
TT
127672019-03-20 Tom Tromey <tromey@adacore.com>
12768
12769 * infrun.c (handle_inferior_event): Rename from
12770 handle_inferior_event_1. Create a scoped_value_mark.
12771 (handle_inferior_event): Remove.
12772
4c7d57e7
TT
127732019-03-19 Tom Tromey <tromey@adacore.com>
12774
12775 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12776 * infrun.h (print_stop_event): Add "displays" parameter.
12777 * infrun.c (print_stop_event): Add "displays" parameter.
12778
cb246234
PA
127792019-03-19 Pedro Alves <palves@redhat.com>
12780
12781 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12782 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12783 to -1. Fix TABs vs spaces.
12784 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12785 * tui/tui-out.h (tui_ui_out) Add intro comments.
12786 <m_line, m_start_of_line>: In-class initialize, and add describing
12787 comment.
12788
3a0e45b2
AH
127892019-03-18 Alan Hayward <alan.hayward@arm.com>
12790
12791 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12792 variable names.
12793 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12794
5371b850
PA
127952019-03-18 Pedro Alves <palves@redhat.com>
12796 Eli Zaretskii <eliz@gnu.org>
12797
12798 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12799 m_line and m_start_of_line.
12800
b17c4cd0
EZ
128012019-03-18 Eli Zaretskii <eliz@gnu.org>
12802
12803 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12804 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12805 it returns a newline. This fixes a regression in TU mode, whereby
12806 the next line is output on the same screen line as the user input.
12807
4bd56d18
TT
128082019-03-18 Tom Tromey <tromey@adacore.com>
12809
12810 * minsyms.c (minimal_symbol_reader::install): Remove call to
12811 obstack_blank.
12812
55c10aca
PA
128132019-03-18 Pedro Alves <palves@redhat.com>
12814
12815 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12816 New globals.
12817 (apply_style): New, factored out from ...
12818 (apply_ansi_escape): ... this. Handle reverse video mode.
12819 (tui_set_reverse_mode): New function.
12820 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12821 * tui/tui-winsource.c (tui_show_source_line): Use
12822 tui_set_reverse_mode instead of setting A_STANDOUT.
12823 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12824 New setter methods.
12825
647bb750
HD
128262019-03-18 Hannes Domani <ssbssa@yahoo.de>
12827
12828 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12829 Handle tabs.
12830
bff8c71f
TT
128312019-03-18 Tom Tromey <tromey@adacore.com>
12832
12833 * ada-lang.c (empty_array): Add "high" parameter.
12834 (ada_evaluate_subexp): Update.
12835
58785d98
ST
128362019-03-17 Sergei Trofimovich <siarheit@google.com>
12837
12838 * unittests/string_view-selftests.c: Define
12839 _initialize_string_view_selftests unconditionally.
12840
d4cbef22
ВМ
128412019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12842
12843 PR gdb/24350
12844 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12845
fce4c071
ВМ
128462019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12847
12848 PR gdb/24351
12849 * windows-nat.c (display_selector): Fix format specifiers.
12850
f7f0a123
EZ
128512019-03-17 Eli Zaretskii <eliz@gnu.org>
12852
12853 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12854 tui_refill_source_window instead of tui_refresh_win, to update the
12855 current execution line. This fixes redisplay of the current line
12856 when stepping through the code with "next" or "step".
12857
ab42892f
EZ
128582019-03-16 Eli Zaretskii <eliz@gnu.org>
12859
12860 * source-cache.c (source_cache::get_source_lines): Call
12861 find_source_lines to initialize s->nlines. This fixes vertical
12862 scrolling of TUI source window when the DOWN arrow is pressed.
12863
8d8c087f
PW
128642019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12865
12866 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12867 linux-thread-db.c (_initialize_thread_db): Likewise.
12868
798e1c30
EZ
128692019-03-16 Eli Zaretskii <eliz@gnu.org>
12870
12871 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12872 wclrtoeol in tui_show_source_line". This reverts changes made in
12873 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12874
eefba3da
TT
128752019-03-15 Tom Tromey <tom@tromey.com>
12876
12877 * symtab.h (struct minimal_symbol): Derive from
12878 general_symbol_info.
12879 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12880 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12881 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12882 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12883 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12884 (MSYMBOL_SEARCH_NAME): Update.
12885 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12886 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12887 * minsyms.c (minimal_symbol_reader::record_full): Update.
12888
0de2420c
TT
128892019-03-15 Tom Tromey <tom@tromey.com>
12890
12891 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12892
042d75e4
TT
128932019-03-15 Tom Tromey <tom@tromey.com>
12894
12895 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12896 unique_xmalloc_ptr.
12897 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12898 Update.
12899 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12900 (build_minimal_symbol_hash_tables)
12901 (minimal_symbol_reader::install): Update.
12902
db92718b
TT
129032019-03-15 Tom Tromey <tom@tromey.com>
12904
12905 * symtab.c (create_demangled_names_hash): Update.
12906 (symbol_set_names): Update.
12907 * objfiles.h (struct objfile_per_bfd_storage)
12908 <demangled_names_hash>: Now an htab_up.
12909 * objfiles.c (objfile_per_bfd_storage): Simplify.
12910
d6797f46
TT
129112019-03-15 Tom Tromey <tom@tromey.com>
12912
12913 * objfiles.h (struct objfile_per_bfd_storage): Declare
12914 destructor.
12915 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12916 New.
12917 (get_objfile_bfd_data): Use new. Don't initialize
12918 language_of_main.
12919 (free_objfile_per_bfd_storage): Remove.
12920 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12921
741d7538
TT
129222019-03-15 Tom Tromey <tom@tromey.com>
12923
12924 * symfile.c (reread_symbols): Update.
12925 * objfiles.c (objfile::objfile): Update.
12926 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12927 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12928 comment.
12929 (minimal_symbol_reader::install): Update.
12930 (terminate_minimal_symbol_table): Remove.
12931 * jit.c (jit_object_close_impl): Update.
12932
788c80d1
TT
129332019-03-15 Tom Tromey <tom@tromey.com>
12934
12935 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12936 initializations.
12937
1b7a07cb
TT
129382019-03-15 Tom Tromey <tom@tromey.com>
12939
12940 * objfiles.h (struct objfile_per_bfd_storage)
12941 <demangled_hash_languages>: Now a bitset.
12942 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12943 (lookup_minimal_symbol): Update.
12944
3db066bc
TT
129452019-03-15 Tom Tromey <tom@tromey.com>
12946
12947 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12948 Don't return the symbol.
12949 * coffread.c (record_minimal_symbol): Use record_full.
12950
3fff2c37
EZ
129512019-03-14 Eli Zaretskii <eliz@gnu.org>
12952
12953 The MS-Windows port of ncurses fails to switch to a color pair if
12954 one or both of the colors are the implicit default colors. This
12955 change records the default colors when TUI is initialized, and
12956 then specifies them explicitly when a color pair uses the default
12957 colors. This allows color styling in TUI mode on MS-Windows.
12958
12959 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12960 ncurses_norm_attr.
12961 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12962 colors in ncurses_norm_attr.
12963 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12964 "none", replace it with the default color recorded in
12965 ncurses_norm_attr.
12966
3b336828
TT
129672019-03-14 Tom Tromey <tromey@adacore.com>
12968
12969 * source-cache.h (class source_cache) <get_source_lines>: Return
12970 std::string.
12971 * source-cache.c (source_cache::extract_lines): Handle case where
12972 first_pos==npos. Return std::string.
12973 (source_cache::get_source_lines): Update.
12974
d085f989
TT
129752019-03-14 Tom Tromey <tromey@adacore.com>
12976
12977 * NEWS: Add item for "style sources" commands.
12978 * source-cache.c (source_cache::get_source_lines): Check
12979 source_styling.
12980 * cli/cli-style.c (source_styling): New global.
12981 (_initialize_cli_style): Add "style sources" commands.
12982 (show_style_sources): New function.
12983 * cli/cli-style.h (source_styling): Declare.
12984
6f11e682
TT
129852019-03-14 Pedro Alves <palves@redhat.com>
12986 Tom Tromey <tromey@adacore.com>
12987
12988 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12989 * tui/tui-winsource.c (tui_refill_source_window): New function,
12990 from...
12991 (tui_horizontal_source_scroll): ... here. Move some logic.
12992 * cli/cli-style.c (set_style_enabled): Notify new observable.
12993 * tui/tui-hooks.c (tui_redisplay_source): New function.
12994 (tui_attach_detach_observers): Attach or detach
12995 tui_redisplay_source.
12996 * observable.h (source_styling_changed): New observable.
12997 * observable.c: Define source_styling_changed observable.
12998
a068643d
TT
129992019-03-13 Tom Tromey <tromey@adacore.com>
13000
13001 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13002 (i386_gnu_nat_target::store_registers): Update.
13003 * target-debug.h (target_debug_print_std_string): New macro.
13004 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13005 * windows-tdep.c (display_one_tib): Update.
13006 * tui/tui-stack.c (tui_make_status_line): Update.
13007 * top.c (print_inferior_quit_action): Update.
13008 * thread.c (thr_try_catch_cmd): Update.
13009 (add_thread_with_info): Update.
13010 (thread_target_id_str): Update.
13011 (thr_try_catch_cmd): Update.
13012 (thread_command): Update.
13013 (thread_find_command): Update.
13014 * record-btrace.c (record_btrace_target::info_record)
13015 (record_btrace_resume_thread, record_btrace_target::resume)
13016 (record_btrace_cancel_resume, record_btrace_step_thread)
13017 (record_btrace_target::wait, record_btrace_target::wait)
13018 (record_btrace_target::wait, record_btrace_target::stop): Update.
13019 * progspace.c (print_program_space): Update.
13020 * process-stratum-target.c
13021 (process_stratum_target::thread_address_space): Update.
13022 * linux-fork.c (linux_fork_mourn_inferior)
13023 (detach_checkpoint_command, info_checkpoints_command)
13024 (linux_fork_context): Update.
13025 (linux_fork_detach): Update.
13026 (class scoped_switch_fork_info): Update.
13027 (delete_checkpoint_command): Update.
13028 * infrun.c (follow_fork_inferior): Update.
13029 (follow_fork_inferior): Update.
13030 (proceed_after_vfork_done): Update.
13031 (handle_vfork_child_exec_or_exit): Update.
13032 (follow_exec): Update.
13033 (displaced_step_prepare_throw): Update.
13034 (displaced_step_restore): Update.
13035 (start_step_over): Update.
13036 (resume_1): Update.
13037 (clear_proceed_status_thread): Update.
13038 (proceed): Update.
13039 (print_target_wait_results): Update.
13040 (do_target_wait): Update.
13041 (context_switch): Update.
13042 (stop_all_threads): Update.
13043 (restart_threads): Update.
13044 (finish_step_over): Update.
13045 (handle_signal_stop): Update.
13046 (switch_back_to_stepped_thread): Update.
13047 (keep_going_pass_signal): Update.
13048 (print_exited_reason): Update.
13049 (normal_stop): Update.
13050 * inferior.c (inferior_pid_to_str): Change return type.
13051 (print_selected_inferior): Update.
13052 (add_inferior): Update.
13053 (detach_inferior): Update.
13054 * dummy-frame.c (fprint_dummy_frames): Update.
13055 * dcache.c (dcache_info_1): Update.
13056 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13057 (btrace_fetch, btrace_clear): Update.
13058 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13059 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13060 type.
13061 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13062 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13063 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13064 * gdbarch.c, gdbarch.h: Rebuild.
13065 * gdbarch.sh (core_pid_to_str): Change return type.
13066 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13067 return type.
13068 (windows_nat_target::pid_to_str): Change return type.
13069 (windows_delete_thread): Update.
13070 (windows_nat_target::attach): Update.
13071 (windows_nat_target::files_info): Update.
13072 * target-delegates.c: Rebuild.
13073 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13074 return type.
13075 (sol_thread_target::pid_to_str): Change return type.
13076 * remote.c (class remote_target) <pid_to_str>: Change return
13077 type.
13078 (remote_target::pid_to_str): Change return type.
13079 (extended_remote_target::attach, remote_target::remote_stop_ns)
13080 (remote_target::remote_notif_remove_queued_reply)
13081 (remote_target::push_stop_reply, remote_target::disable_btrace):
13082 Update.
13083 (extended_remote_target::attach): Update.
13084 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13085 type.
13086 (gdbsim_target::pid_to_str): Change return type.
13087 * ravenscar-thread.c (struct ravenscar_thread_target)
13088 <pid_to_str>: Change return type.
13089 (ravenscar_thread_target::pid_to_str): Change return type.
13090 * procfs.c (class procfs_target) <pid_to_str>: Change return
13091 type.
13092 (procfs_target::pid_to_str): Change return type.
13093 (procfs_target::attach): Update.
13094 (procfs_target::detach): Update.
13095 (procfs_target::fetch_registers): Update.
13096 (procfs_target::store_registers): Update.
13097 (procfs_target::wait): Update.
13098 (procfs_target::files_info): Update.
13099 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13100 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13101 return type.
13102 (nto_procfs_target::pid_to_str): Change return type.
13103 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13104 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13105 return type.
13106 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13107 (exit_lwp): Update.
13108 (attach_proc_task_lwp_callback, get_detach_signal)
13109 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13110 (linux_nat_target::resume, wait_lwp, stop_callback)
13111 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13112 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13113 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13114 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13115 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13116 type.
13117 (inf_ptrace_target::attach): Update.
13118 (inf_ptrace_target::files_info): Update.
13119 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13120 type.
13121 (go32_nat_target::pid_to_str): Change return type.
13122 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13123 (gnu_nat_target::wait): Update.
13124 (gnu_nat_target::wait): Update.
13125 (gnu_nat_target::resume): Update.
13126 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13127 (fbsd_nat_target::wait): Update.
13128 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13129 type.
13130 (darwin_nat_target::attach): Update.
13131 * corelow.c (class core_target) <pid_to_str>: Change return type.
13132 (core_target::pid_to_str): Change return type.
13133 * target.c (normal_pid_to_str): Change return type.
13134 (default_pid_to_str): Likewise.
13135 (target_pid_to_str): Change return type.
13136 (target_translate_tls_address): Update.
13137 (target_announce_detach): Update.
13138 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13139 return type.
13140 (bsd_uthread_target::pid_to_str): Change return type.
13141 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13142 type.
13143 (bsd_kvm_target::pid_to_str): Change return type.
13144 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13145 return type.
13146 (aix_thread_target::pid_to_str): Change return type.
13147 * target.h (struct target_ops) <pid_to_str>: Change return type.
13148 (target_pid_to_str, normal_pid_to_str): Likewise.
13149 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13150 type.
13151 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13152 type.
13153 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13154 return type.
13155 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13156 type.
13157 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13158 type.
13159 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13160 return type.
13161
b4be1b06
SM
131622019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13163
13164 * NEWS: Mention that the new default MI version is 3. Mention
13165 changes to the output of commands and events that deal with
13166 multi-location breakpoints.
13167 * breakpoint.c: Include "mi/mi-out.h".
13168 (print_one_breakpoint): Change output syntax if using MI version
13169 >= 3.
13170 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13171 New.
13172 (mi_multi_location_breakpoint_output_fixed): New.
13173 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13174 (mi_cmd_fix_multi_location_breakpoint_output): New.
13175 (mi_multi_location_breakpoint_output_fixed): New.
13176 * mi/mi-cmds.c (mi_cmds): Register command
13177 -fix-multi-location-breakpoint-output.
13178 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13179 interpreter "mi".
13180
8e5e5494
SM
131812019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13182
13183 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13184 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13185 instantiate mi_ui_out based on interpreter name.
13186 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13187 * mi/mi-main.c (mi_load_progress): Likewise.
13188
197df35e
JB
131892019-03-12 John Baldwin <jhb@FreeBSD.org>
13190
13191 * NEWS: Combine separate "New targets" sections for 8.3.
13192
8399425f
JB
131932019-03-12 John Baldwin <jhb@FreeBSD.org>
13194
13195 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13196 (ppcfbsd_init_abi): Install gdbarch
13197 "fetch_tls_load_module_address" and "get_thread_local_address"
13198 methods.
13199
b0f87ed0
JB
132002019-03-12 John Baldwin <jhb@FreeBSD.org>
13201
13202 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13203 (riscv_fbsd_init_abi): Install gdbarch
13204 "fetch_tls_load_module_address" and "get_thread_local_address"
13205 methods.
13206
ce25aa57
JB
132072019-03-12 John Baldwin <jhb@FreeBSD.org>
13208
13209 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13210 (i386fbsd_init_abi): Install gdbarch
13211 "fetch_tls_load_module_address" and "get_thread_local_address"
13212 methods.
13213
f5424cfa
JB
132142019-03-12 John Baldwin <jhb@FreeBSD.org>
13215
13216 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13217 (amd64fbsd_init_abi): Install gdbarch
13218 "fetch_tls_load_module_address" and "get_thread_local_address"
13219 methods.
13220
945f3901
JB
132212019-03-12 John Baldwin <jhb@FreeBSD.org>
13222
13223 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13224 (struct fbsd_pspace_data): New type.
13225 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13226 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13227 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13228 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13229 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13230
ef0bd204
JB
132312019-03-12 John Baldwin <jhb@FreeBSD.org>
13232
13233 * gdbtypes.c (lookup_struct_elt): New function.
13234 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13235 * gdbtypes.h (struct struct_elt): New type.
13236 (lookup_struct_elt): New prototype.
13237
36c53a02
JB
132382019-03-12 John Baldwin <jhb@FreeBSD.org>
13239
13240 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13241 remove disabled code block.
13242
6e056c81
JB
132432019-03-12 John Baldwin <jhb@FreeBSD.org>
13244
13245 * gdbarch.sh (get_thread_local_address): New method.
13246 * gdbarch.h, gdbarch.c: Regenerate.
13247 * target.c (target_translate_tls_address): Use
13248 gdbarch_get_thread_local_address if present instead of
13249 target::get_thread_local_address.
13250
cd250a18
JB
132512019-03-12 John Baldwin <jhb@FreeBSD.org>
13252
13253 * target.h (target::get_thread_local_address): Update comment.
13254
df22c1e5
JB
132552019-03-12 John Baldwin <jhb@FreeBSD.org>
13256
13257 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13258 objfile->separate_debug_objfile_backlink if not NULL.
13259
dd6876c9
JB
132602019-03-12 John Baldwin <jhb@FreeBSD.org>
13261
13262 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13263 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13264 (amd64bsd_store_inferior_registers): Likewise.
13265 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13266 Enable segment base registers.
13267 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13268 PT_GETFSBASE and PT_GETGSBASE.
13269 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13270 PT_SETGSBASE.
13271 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13272 segment base registers.
13273 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13274
1163a4b7
JB
132752019-03-12 John Baldwin <jhb@FreeBSD.org>
13276
13277 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13278 Update calls to i386_target_description to add 'segments'
13279 parameter.
13280 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13281 add segment base registers.
13282 * arch/i386.c (i386_create_target_description): Add 'segments'
13283 parameter to enable segment base registers.
13284 * arch/i386.h (i386_create_target_description): Likewise.
13285 * features/i386/32bit-segments.xml: New file.
13286 * features/i386/32bit-segments.c: Generate.
13287 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13288 call to i386_target_description to add 'segments' parameter.
13289 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13290 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13291 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13292 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13293 if feature is present.
13294 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13295 Add 'segments' parameter to call to i386_target_description.
13296 (i386_target_description): Add 'segments' parameter to enable
13297 segment base registers.
13298 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13299 to call to i386_target_description.
13300 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13301 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13302 Define I386_NUM_REGS.
13303 (i386_target_description): Add 'segments' parameter to enable
13304 segment base registers.
13305
3a350822
EZ
133062019-03-12 Eli Zaretskii <eliz@gnu.org>
13307
13308 PR/24325
13309 * source-cache.c: #undef open and close, to avoid unresolved
13310 externals during linking.
13311
ffdd69cf
TT
133122019-03-12 Tom Tromey <tromey@adacore.com>
13313
13314 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13315 const. Add initializers.
13316 (_initialize_remote): Don't initialize ptid globals.
13317
ec148c57
PA
133182019-03-12 Pedro Alves <palves@redhat.com>
13319
13320 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13321
32764270
PA
133222019-03-12 Pedro Alves <palves@redhat.com>
13323
13324 * cp-name-parser.y (main): Remove unused 'len' variable.
13325
17547186
TT
133262019-03-12 Tom Tromey <tromey@adacore.com>
13327
13328 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13329 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13330
d3a70e03
TT
133312019-03-12 Tom Tromey <tromey@adacore.com>
13332
13333 * linux-nat.c (iterate_over_lwps): Update.
13334 (stop_callback): Remove parameter.
13335 (stop_wait_callback, detach_callback, resume_set_callback)
13336 (select_singlestep_lwp_callback, set_ignore_sigint)
13337 (status_callback, resumed_callback, resume_clear_callback)
13338 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13339 data parameter.
13340 (linux_nat_target::detach, linux_nat_target::resume)
13341 (linux_stop_and_wait_all_lwps, select_event_lwp)
13342 (linux_nat_filter_event, linux_nat_wait_1)
13343 (linux_nat_target::kill, linux_nat_target::stop)
13344 (linux_nat_target::stop): Update.
13345 (linux_nat_resume_callback): Change type.
13346 (resume_stopped_resumed_lwps, count_events_callback)
13347 (select_event_lwp_callback): Likewise.
13348 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13349 * arm-linux-nat.c (struct update_registers_data): Remove.
13350 (update_registers_callback): Change type.
13351 (arm_linux_insert_hw_breakpoint1): Update.
13352 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13353 parameter.
13354 (x86_linux_dr_set_addr): Update.
13355 (x86_linux_dr_set_control): Update.
13356 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13357 (iterate_over_lwps): Use gdb::function_view.
13358 * nat/aarch64-linux-hw-point.c (struct
13359 aarch64_dr_update_callback_param): Remove.
13360 (debug_reg_change_callback): Change type.
13361 (aarch64_notify_debug_reg_change): Update.
13362 * s390-linux-nat.c (s390_refresh_per_info): Update.
13363
82cb27ff
TT
133642019-03-11 Tom Tromey <tromey@adacore.com>
13365
13366 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13367 redundant assignment to "this_cu".
13368
568c0683
SM
133692019-03-08 Simon Marchi <simon.marchi@efficios.com>
13370
13371 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13372
f09ce22d
SM
133732019-03-08 Simon Marchi <simon.marchi@efficios.com>
13374
13375 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13376 from...
13377 (rank_one_type): ... this.
13378
595f96a9
SM
133792019-03-08 Simon Marchi <simon.marchi@efficios.com>
13380
13381 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13382 from...
13383 (rank_one_type): ... this.
13384
2598a94b
SM
133852019-03-08 Simon Marchi <simon.marchi@efficios.com>
13386
13387 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13388 from...
13389 (rank_one_type): ... this.
13390
7f17b20d
SM
133912019-03-08 Simon Marchi <simon.marchi@efficios.com>
13392
13393 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13394 from...
13395 (rank_one_type): ... this.
13396
2c509035
SM
133972019-03-08 Simon Marchi <simon.marchi@efficios.com>
13398
13399 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13400 from...
13401 (rank_one_type): ... this.
13402
0dd322dc
SM
134032019-03-08 Simon Marchi <simon.marchi@efficios.com>
13404
13405 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13406 from...
13407 (rank_one_type): ... this.
13408
41ea4728
SM
134092019-03-08 Simon Marchi <simon.marchi@efficios.com>
13410
13411 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13412 from...
13413 (rank_one_type): ... this.
13414
793cd1d2
SM
134152019-03-08 Simon Marchi <simon.marchi@efficios.com>
13416
13417 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13418 from...
13419 (rank_one_type): ... this.
13420
34910087
SM
134212019-03-08 Simon Marchi <simon.marchi@efficios.com>
13422
13423 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13424 from...
13425 (rank_one_type): ... this.
13426
f1f832d6
SM
134272019-03-08 Simon Marchi <simon.marchi@efficios.com>
13428
13429 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13430 from...
13431 (rank_one_type): ... this.
13432
b9f4512f
SM
134332019-03-08 Simon Marchi <simon.marchi@efficios.com>
13434
13435 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13436 from...
13437 (rank_one_type): ... this.
13438
9293fc63
SM
134392019-03-08 Simon Marchi <simon.marchi@efficios.com>
13440
13441 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13442 from...
13443 (rank_one_type): ... this.
13444
e3abbe7e
PW
134452019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13446
13447 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13448 inferior-events' shows the example events.
13449
e4adb939
EZ
134502019-03-08 Eli Zaretskii <eliz@gnu.org>
13451
13452 Support styling on native MS-Windows console
13453
13454 PR/24315
13455 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13456 on MS-Windows if $TERM is not defined.
13457
13458 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13459
13460 * posix-hdep.c (gdb_console_fputs):
13461 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13462 functions.
13463 * ui-file.h (gdb_console_fputs): Add prototype.
13464
13465 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13466 back to fputs only if the former returns zero.
13467
25629dfd
TT
134682019-03-07 Tom Tromey <tom@tromey.com>
13469
13470 * symmisc.c (print_symbol_bcache_statistics): Update.
13471 (print_objfile_statistics): Update.
13472 * symfile.c (allocate_symtab): Update.
13473 * stabsread.c: Don't include bcache.h.
13474 * psymtab.h (struct psymbol_bcache): Don't declare.
13475 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13476 (psymbol_bcache_init, psymbol_bcache_free)
13477 (psymbol_bcache_get_bcache): Don't declare.
13478 * psymtab.c (struct psymbol_bcache): Remove.
13479 (psymtab_storage::psymtab_storage): Update.
13480 (psymtab_storage::~psymtab_storage): Update.
13481 (psymbol_bcache_init, psymbol_bcache_free)
13482 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13483 (add_psymbol_to_bcache): Update.
13484 (allocate_psymtab): Update.
13485 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13486 macro_cache>: No longer pointers.
13487 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13488 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13489 * macrotab.c (macro_bcache): Update.
13490 * macroexp.c: Don't include bcache.h.
13491 * gdbtypes.c (check_types_worklist): Update.
13492 (types_deeply_equal): Remove TRY/CATCH. Update.
13493 * elfread.c (elf_symtab_read): Update.
13494 * dwarf2read.c: Don't include bcache.h.
13495 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13496 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13497 (print_bcache_statistics, bcache_memory_used): Don't declare.
13498 (struct bcache): Move from bcache.c. Add constructor, destructor,
13499 methods. Rename all data members.
13500 * bcache.c (struct bcache): Move to bcache.h.
13501 (bcache::expand_hash_table): Rename from expand_hash_table.
13502 (bcache): Remove.
13503 (bcache::insert): Rename from bcache_full.
13504 (bcache::compare): Rename from bcache_compare.
13505 (bcache_xmalloc): Remove.
13506 (bcache::~bcache): Rename from bcache_xfree.
13507 (bcache::print_statistics): Rename from print_bcache_statistics.
13508 (bcache::memory_used): Rename from bcache_memory_used.
13509
fe726667
PA
135102019-03-07 Pedro Alves <palves@redhat.com>
13511
13512 * infrun.c (normal_stop): Also check for
13513 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13514
7584bb30
AB
135152019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13516
13517 * f-lang.c (value_from_host_double): Moved to...
13518 * value.c (value_from_host_double): ...here.
13519 * value.h (value_from_host_double): Declare.
13520 * guile/scm-math.c (vlscm_convert_typed_number): Use
13521 value_from_host_double.
13522 (vlscm_convert_number): Likewise.
13523 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13524 * python/py-value.c (convert_value_from_python): Likewise.
13525
a7b1986e
TT
135262019-03-06 Tom Tromey <tom@tromey.com>
13527
13528 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13529
0ccf4211
TT
135302019-03-06 Tom Tromey <tom@tromey.com>
13531
13532 * utils.h (free_current_contents): Don't declare.
13533 * utils.c (free_current_contents): Remove.
13534
fe7b42e5
TT
135352019-03-06 Tom Tromey <tom@tromey.com>
13536
13537 * top.c (quit_force): Update.
13538 * main.c (captured_command_loop): Update.
13539 * common/new-op.c (operator new): Update.
13540 * common/common-exceptions.c (struct catcher)
13541 <save_cleanup_chain>: Remove member.
13542 (exceptions_state_mc_init): Update.
13543 (exception_try_scope_entry): Return nullptr.
13544 (exception_try_scope_exit, exception_rethrow)
13545 (throw_exception_sjlj, throw_exception_cxx): Update.
13546 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13547 (all_cleanups, do_cleanups, discard_cleanups)
13548 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13549 (restore_cleanups, restore_final_cleanups): Don't declare.
13550 (do_final_cleanups): Remove parameter.
13551 * common/cleanups.c (cleanup_chain, make_cleanup)
13552 (make_cleanup_dtor, all_cleanups, do_cleanups)
13553 (discard_my_cleanups, discard_cleanups)
13554 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13555 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13556 (null_cleanup): Remove.
13557 (do_final_cleanups): Remove parameter.
13558
c6321f19
TT
135592019-03-06 Tom Tromey <tom@tromey.com>
13560
13561 * remote.c (remote_target::remote_parse_stop_reply): Use
13562 unique_xmalloc_ptr.
13563
61b30099
TT
135642019-03-06 Tom Tromey <tom@tromey.com>
13565
13566 * stabsread.c (struct stabs_field_info): Rename from field_info.
13567 <list, fnlist>: Add initializers.
13568 <obstack>: New member.
13569 (read_member_functions, read_struct_fields, read_baseclasses):
13570 Allocate on obstack. Don't use cleanups.
13571 (read_one_struct_field, read_member_functions, read_struct_fields)
13572 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13573 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13574 (read_struct_type): Update.
13575
6cceac94
TT
135762019-03-06 Tom Tromey <tom@tromey.com>
13577
13578 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13579 * common/filestuff.h (make_cleanup_close): Don't declare.
13580 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13581 Remove.
13582
72412762
TT
135832019-03-06 Tom Tromey <tom@tromey.com>
13584
13585 * solib-aix.c: Use make_scope_exit.
13586
2b6ff1c0
TT
135872019-03-06 Tom Tromey <tom@tromey.com>
13588
13589 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13590 Use make_scope_exit.
13591
d01c5877
TT
135922019-03-06 Tom Tromey <tom@tromey.com>
13593
13594 * solib-svr4.c (disable_probes_interface): Remove parameter.
13595 (svr4_handle_solib_event): Use make_scope_exit.
13596
32603266
TT
135972019-03-06 Tom Tromey <tom@tromey.com>
13598
13599 * remote.c (struct stop_reply_deleter): Remove.
13600 (stop_reply_up): Update.
13601 (struct stop_reply): Derive from notif_event. Don't typedef.
13602 <regcache>: Now a std::vector.
13603 (stop_reply_xfree): Remove.
13604 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13605 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13606 (remote_target::discard_pending_stop_replies): Use delete.
13607 (remote_target::remote_parse_stop_reply): Update.
13608 (remote_target::process_stop_reply): Update.
13609 * remote-notif.h (struct notif_event): Add virtual destructor.
13610 Remove "dtr" member.
13611 (struct notif_client) <alloc_event>: Return a unique_ptr.
13612 (notif_event_xfree): Don't declare.
13613 (notif_event_up): New typedef.
13614 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13615 (notif_event_xfree, do_notif_event_xfree): Remove.
13616 (remote_notif_state_xfree): Update.
13617
9799571e
TT
136182019-03-06 Tom Tromey <tom@tromey.com>
13619
13620 * infrun.c (displaced_step_clear_cleanup): Now a
13621 forward_scope_exit type.
13622 (displaced_step_prepare_throw): Update.
13623 (displaced_step_fixup): Update.
13624
09e3c4ca
TT
136252019-03-06 Tom Tromey <tom@tromey.com>
13626
13627 * inferior.h (class inferior): Update comment.
13628 * gdbthread.h (class thread_info): Update comment.
13629
e2a03548
TT
136302019-03-06 Joel Brobecker <brobecker@adacore.com>
13631 Tom Tromey <tom@tromey.com>
13632
13633 * stabsread.h (struct stab_section_list): Remove.
13634 (coffstab_build_psymtabs): Update.
13635 * dbxread.c (symbuf_sections): Now a std::vector.
13636 (sect_idx): New global.
13637 (fill_symbuf): Update.
13638 (coffstab_build_psymtabs): Change type of stabsects parameter.
13639 Update.
13640 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13641 std::vector.
13642 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13643 (coff_locate_sections): Update.
13644 (coff_symfile_read): Remove cleanups. Update.
13645 (init_stringtab): Add storage parameter.
13646 (free_stringtab, free_stringtab_cleanup): Remove.
13647 (init_lineno): Add storage parameter.
13648 (free_linetab, free_linetab_cleanup): Remove.
13649
b7e60d85
PA
136502019-03-06 Pedro Alves <palves@redhat.com>
13651
13652 * linux-fork.c (fork_info::clobber_regs): Delete.
13653 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13654 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13655 comment. Adjust.
13656 (scoped_switch_fork_info::scoped_switch_fork_info)
13657 (checkpoint_command, linux_fork_context): Adjust
13658 fork_save_infrun_state calls.
13659
e52c971f
PA
136602019-03-06 Pedro Alves <palves@redhat.com>
13661
13662 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13663 (inf_has_multiple_threads): Return 'bool' and rewrite using
13664 inferior_info::threads().
13665
06974e6c
PA
136662019-03-06 Pedro Alves <palves@redhat.com>
13667
13668 * linux-fork.c: Include <list>.
13669 (fork_list): Now a std::list instance.
13670 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13671 (forks_exist_p, find_last_fork): Adjust.
13672 (new_fork): Delete.
13673 (one_fork_p): New.
13674 (add_fork): Adjust.
13675 (free_fork): Delete, folded into fork_info::~fork_info().
13676 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13677 Adjust.
13678 (init_fork_list): Delete.
13679 (linux_fork_killall, linux_fork_mourn_inferior)
13680 (linux_fork_detach, info_checkpoints_command): Adjust.
13681 (_initialize_linux_fork): No longer call init_fork_list.
13682
72f31aea
PA
136832019-03-06 Pedro Alves <palves@redhat.com>
13684
13685 * linux-fork.c (new_fork): New, split out of ...
13686 (add_fork): ... this. Return void. Move "first fork" special
13687 case from here, to ...
13688 (checkpoint_command): ... here.
13689 * linux-linux.h (add_fork): Return void.
13690
efbecbc1
AB
136912019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13692
13693 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13694
0841c79a
AB
136952019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13696 Chris January <chris.january@arm.com>
13697 David Lecomber <david.lecomber@arm.com>
13698
13699 * f-exp.y: New token, UNOP_INTRINSIC.
13700 (exp): New pattern using UNOP_INTRINSIC token.
13701 (f77_keywords): Add 'abs' keyword.
13702 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13703 (value_from_host_double): New function.
13704 (evaluate_subexp_f): Support UNOP_ABS.
13705
4a270568
AB
137062019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13707
13708 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13709 types.
13710
067630bd
AB
137112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13712
13713 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13714 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13715 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13716
3be47f7a
AB
137172019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13718
13719 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13720
4d00f5d8
AB
137212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13722 Chris January <chris.january@arm.com>
13723
13724 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13725 * f-exp.y: Define 'KIND' token.
13726 (exp): New pattern for KIND expressions.
13727 (ptype): Handle types with a kind extension.
13728 (direct_abs_decl): Extend to spot kind extensions.
13729 (f77_keywords): Add 'kind' to the list.
13730 (push_kind_type): New function.
13731 (convert_to_kind_type): New function.
13732 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13733 * parse.c (operator_length_standard): Likewise.
13734 * parser-defs.h (enum type_pieces): Add tp_kind.
13735 * std-operator.def: Add UNOP_KIND.
13736
e454224f
AB
137372019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13738
13739 * f-exp.y (f_parse): Set yydebug.
13740
9dad4a58
AB
137412019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13742
13743 * f-lang.c (evaluate_subexp_f): New function.
13744 (exp_descriptor_f): New global.
13745 (f_language_defn): Use exp_descriptor_f instead of
13746 exp_descriptor_standard.
13747
c8f91604
AB
137482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13749
13750 * f-exp.y (struct token): Add comments.
13751 (dot_ops): Remove uppercase versions and the end marker.
13752 (f77_keywords): Likewise.
13753 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13754 entries in the dot_ops array are case insensitive, and use
13755 strncasecmp to compare strings. Also some whitespace cleanup in
13756 this area. Similar for the f77_keywords array, except entries in
13757 this list might be case sensitive.
13758
dd9f2c76
AB
137592019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13760
13761 * f-exp.y (struct f77_boolean_val): Add comments.
13762 (boolean_values): Remove uppercase versions, and end marker.
13763 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13764 and use strncasecmp to achieve case insensitivity. Additionally,
13765 perform whitespace cleanup around this code.
13766
67a3048c
TT
137672019-03-06 Tom Tromey <tromey@adacore.com>
13768
13769 * remote-sim.c (gdbsim_target_open): Use result of
13770 gdb_argv::release.
13771
aa3cfbda
RB
137722019-03-06 Richard Bunt <richard.bunt@arm.com>
13773 Dirk Schubert <dirk.schubert@arm.com>
13774 Chris January <chris.january@arm.com>
13775
13776 * eval.c (evaluate_subexp_standard): Call Fortran argument
13777 wrapping logic.
13778 * f-lang.c (struct value): A value which can be passed into a
13779 Fortran function call.
13780 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13781 where appropriate.
13782 (struct type): Value ready for a Fortran function call.
13783 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13784 is needed.
13785 * f-lang.h (fortran_argument_convert): Declaration.
13786 (fortran_preserve_arg_pointer): Declaration.
13787 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13788
ea38e5df
TT
137892019-03-05 Tom Tromey <tromey@adacore.com>
13790
13791 * python/py-prettyprint.c (print_string_repr): Remove #if.
13792 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13793
06b5b831
TT
137942019-03-05 Tom Tromey <tromey@adacore.com>
13795
13796 * target.c (the_dummy_target): Move later. Change type to
13797 "dummy_target".
13798 (initialize_targets): Don't initialize the_dummy_target.
13799
edbd9e45
TT
138002019-03-05 Tom Tromey <tromey@adacore.com>
13801
13802 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13803 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13804
c119e040
TT
138052019-03-05 Tom Tromey <tromey@adacore.com>
13806
13807 * windows-nat.c (windows_nat_target::attach)
13808 (windows_nat_target::detach): Don't call gdb_flush.
13809 * valprint.c (generic_val_print, val_print, val_print_string):
13810 Don't call gdb_flush.
13811 * utils.c (defaulted_query): Don't call gdb_flush.
13812 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13813 * target.c (target_announce_detach): Don't call gdb_flush.
13814 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13815 * remote.c (extended_remote_target::attach): Don't call
13816 gdb_flush.
13817 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13818 * printcmd.c (do_examine): Don't call gdb_flush.
13819 (info_display_command): Don't call gdb_flush.
13820 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13821 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13822 * memattr.c (info_mem_command): Don't call gdb_flush.
13823 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13824 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13825 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13826 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13827 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13828 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13829 (gnu_nat_target::detach): Don't call gdb_flush.
13830 * f-valprint.c (f_val_print): Don't call gdb_flush.
13831 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13832 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13833 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13834 gdb_flush.
13835 * c-valprint.c (c_val_print): Don't call gdb_flush.
13836 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13837
895dafa6
TT
138382019-03-05 Tom Tromey <tromey@adacore.com>
13839
13840 * varobj.c (update_dynamic_varobj_children): Update.
13841 (install_default_visualizer): Use reset, not release.
13842 * value.c (set_internalvar): Update.
13843 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13844 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13845 ATTRIBUTE_UNUSED_RESULT.
13846
88a774b9
TT
138472019-03-05 Tom Tromey <tromey@adacore.com>
13848
13849 * remote.c (class scoped_remote_fd) <release>: Add
13850 ATTRIBUTE_UNUSED_RESULT.
13851
4e4a8b93
TT
138522019-03-05 Tom Tromey <tromey@adacore.com>
13853
13854 * macroexp.c (struct macro_buffer) <release>: Add
13855 ATTRIBUTE_UNUSED_RESULT.
13856
083eef1f
TT
138572019-03-05 Tom Tromey <tromey@adacore.com>
13858
13859 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13860 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13861 ATTRIBUTE_UNUSED_RESULT.
13862
3cabd438
TT
138632019-03-05 Tom Tromey <tromey@adacore.com>
13864
13865 * common/scoped_fd.h (class scoped_fd) <release>: Add
13866 ATTRIBUTE_UNUSED_RESULT.
13867
41e3300a
TT
138682019-03-05 Tom Tromey <tromey@adacore.com>
13869
13870 * parser-defs.h (struct parser_state) <release>: Add
13871 ATTRIBUTE_UNUSED_RESULT.
13872
18cb7c9f
TT
138732019-03-05 Tom Tromey <tromey@adacore.com>
13874
13875 * utils.h (class gdb_argv) <release>: Add
13876 ATTRIBUTE_UNUSED_RESULT.
13877 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13878
41fa577f
EZ
138792019-03-02 Eli Zaretskii <eliz@gnu.org>
13880
a6a4b2c6
EZ
13881 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13882 for-loop range, to avoid compiler warnings.
13883
13884 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13885 avoid compiler warnings about unused variables.
13886
742a7df5
EZ
13887 * NEWS: Mention end of support for native debugging on MS-Windows
13888 before XP.
13889
41fa577f
EZ
13890 PR gdb/24292
13891 * common/netstuff.c:
13892 * gdbserver/gdbreplay.c
13893 * gdbserver/remote-utils.c:
13894 * ser-tcp.c:
13895 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13896 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13897 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13898 'getaddrinfo' and 'freeaddrinfo' were not available before
13899 Windows XP, and mingw.org's MinGW headers by default define
13900 _WIN32_WINNT to 0x500.
13901
827f438f
GB
139022019-03-01 Gary Benson <gbenson@redhat.com>
13903
13904 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13905
92137da0
RO
139062019-02-28 Brian Vandenberg <phantall@gmail.com>
13907 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13908
13909 PR gdb/8527
13910 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13911 set_sigint_trap, clear_sigint_trap.
13912
799efbe8
PW
139132019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13914
13915 * target.c (target_detach): Clear the regcache and the
13916 frame cache.
13917
8ed25214
PA
139182019-02-27 Pedro Alves <palves@redhat.com>
13919
13920 * utils.c (set_screen_size): When we cap the height/width sizes,
13921 tweak the corresponding command variable to show "unlimited":
13922
23031e31
SJ
139232019-02-27 Saagar Jha <saagar@saagarjha.com>
13924 Pedro Alves <palves@redhat.com>
13925
13926 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13927 before calling rl_set_screen_size.
13928
6c28e44a
TT
139292019-02-27 Tom Tromey <tromey@adacore.com>
13930
13931 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13932 define.
13933 * python/py-value.c: Remove Python 2.4 workaround.
13934 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13935 workaround.
13936 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13937 Python 2.4 workaround.
13938 * python/python-internal.h: Remove Python 2.4 comment.
13939 (Py_ssize_t): Don't define.
13940 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13941 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13942 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13943 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13944 * python/python.c (do_start_initialization): Remove Python 2.4
13945 workaround.
13946 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13947 (print_children): Remove Python 2.4 workaround.
13948 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13949 workaround.
13950 (CHARBUFFERPROC_NAME): Remove.
13951 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13952 Python 2.4 workaround.
13953
2c3fc25d 139542019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13955
2c3fc25d
KB
13956 * NEWS: Note minimum Python version.
13957
6ca62222
KB
139582019-02-27 Kevin Buettner <kevinb@redhat.com>
13959
13960 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13961 code from these functions. Remove corresponding ifdefs. Use
13962 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13963 Remove gotos and target of gotos.
13964 (infpy_search_memory): Likewise.
13965
f4bc7d2c
AB
139662019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13967
13968 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13969 (hppa_gdbarch_init): Don't register deleted functions with
13970 gdbarch.
13971
9734a586
AB
139722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13973
13974 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13975 (h8300_unwind_sp): Delete.
13976 (h8300_dummy_id): Delete.
13977 (h8300_gdbarch_init): Don't register deleted functions with
13978 gdbarch.
13979
68b867f3
AB
139802019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13981
13982 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13983 (ft32_unwind_pc): Delete.
13984 (ft32_unwind_sp): Delete.
13985 (ft32_gdbarch_init): Don't register deleted functions with
13986 gdbarch.
13987
2fbe7ad0
AB
139882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13989
13990 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13991 (frv_unwind_pc): Delete.
13992 (frv_unwind_sp): Delete.
13993 (frv_gdbarch_init): Don't register deleted functions with
13994 gdbarch.
13995
76055cbe
AB
139962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13997
13998 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13999 (riscv_unwind_pc): Delete.
14000 (riscv_unwind_sp): Delete.
14001 (riscv_gdbarch_init): Don't register deleted functions with
14002 gdbarch.
14003
4133e5a1
AB
140042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14005
14006 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14007 (csky_unwind_pc): Delete.
14008 (csky_unwind_sp): Delete.
14009 (csky_gdbarch_init): Don't register deleted functions with
14010 gdbarch.
14011
8010f576
AB
140122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14013
14014 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14015 (cris_unwind_pc): Delete.
14016 (cris_unwind_sp): Delete.
14017 (cris_gdbarch_init): Don't register deleted functions with
14018 gdbarch.
14019
b56bf084
AB
140202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14021
14022 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14023 (bfin_unwind_pc): Delete.
14024 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14025
a19a650f
AB
140262019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14027
14028 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14029 (arm_unwind_pc): Delete.
14030 (arm_unwind_sp): Delete.
14031 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14032
f8278c3c
AB
140332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14034
14035 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14036 (arc_unwind_pc): Delete.
14037 (arc_unwind_sp): Delete.
14038 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14039
480e46cf
AB
140402019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14041
14042 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14043 (alpha_unwind_pc): Delete.
14044 (alpha_gdbarch_init): Don't register deleted functions with
14045 gdbarch.
14046
7a995095
AB
140472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14048
14049 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14050 (aarch64_unwind_pc): Delete.
14051 (aarch64_unwind_sp): Delete.
14052 (aarch64_gdbarch_init): Don't register deleted functions with
14053 gdbarch.
14054
bf9a735e
AB
140552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14056
14057 * gdbtypes.c (type_align): Don't consider static members when
14058 computing structure alignment.
14059
5561fc30
AB
140602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14061
14062 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14063 return 0 for other types.
14064 * arch-utils.c (default_type_align): Always return 0.
14065 * gdbarch.h: Regenerate.
14066 * gdbarch.sh (type_align): Extend comment.
14067 * gdbtypes.c (type_align): Add additional comments, always call
14068 gdbarch_type_align before applying the default rules.
14069 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14070 generic code will then apply a suitable default.
14071 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14072 types, return 0 for other types.
14073
9335e75a
JB
140742019-02-27 Joel Brobecker <brobecker@adacore.com>
14075
14076 * NEWS: Create a new section for the next release branch.
14077 Rename the section of the current branch, now that it has
14078 been cut.
14079
3d34d8de
JB
140802019-02-27 Joel Brobecker <brobecker@adacore.com>
14081
14082 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14083 * version.in: Bump version to 8.3.50.DATE-git.
14084
143420fb
SM
140852019-02-26 Simon Marchi <simon.marchi@efficios.com>
14086
14087 * aix-thread.c (ptid_cmp): Remove unused variable.
14088 (get_signaled_thread): Likewise.
14089 (store_regs_user_thread): Likewise.
14090 (store_regs_kernel_thread): Likewise.
14091 (fetch_regs_kernel_thread): Remove shadowed variable.
14092
172fb711
AB
140932019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14094
14095 * features/riscv/32bit-cpu.xml: Add register numbers.
14096 * features/riscv/32bit-fpu.c: Regenerate.
14097 * features/riscv/32bit-fpu.xml: Add register numbers.
14098 * features/riscv/64bit-cpu.xml: Add register numbers.
14099 * features/riscv/64bit-fpu.c: Regenerate.
14100 * features/riscv/64bit-fpu.xml: Add register numbers.
14101
26c89782
KB
141022019-02-26 Kevin Buettner <kevinb@redhat.com>
14103
af54ade9 14104 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14105 * python/py-value.c (convert_buffer_and_type_to_value): New
14106 function.
14107 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14108 Add support for handling an optional second argument. Call
14109 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14110 * python/python-internal.h (Py_buffer_deleter): New struct.
14111 (Py_buffer_up): New typedef.
14112
0f58c9e8
JB
141132019-02-25 John Baldwin <jhb@FreeBSD.org>
14114
14115 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14116 instead of releasing ownership.
14117
0a0f4c01
JR
141182019-02-25 Jordan Rupprecht <rupprecht@google.com>
14119
14120 * dwarf2read.c (open_and_init_dwp_file): Call
14121 elf_numsections instead of bfd_count_sections to initialize
14122 dwp_file->num_sections.
14123
cd5a152c
TT
141242019-02-25 Tom Tromey <tromey@adacore.com>
14125
14126 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14127
8a6a8513
SDJ
141282019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14129
14130 * gcore.in: Add '--readnever' option when invoking GDB.
14131
04dcda9c
SM
141322019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14133
14134 * MAINTAINERS: Update my email address.
14135
07bc701d
SM
141362019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14137
14138 * build-id.c (build_id_to_debug_bfd_1): New function.
14139 (build_id_to_debug_bfd): Look for separate debug file in
14140 sysroot.
14141
c6f4a5d0
AB
141422019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14143
14144 * gdbarch.sh: Update the copyright year range that is placed into
14145 generated files.
14146
9600246d
KS
141472019-02-22 Keith Seitz <keiths@redhat.com>
14148
14149 PR symtab/23853
14150 * linespec.c (create_sals_line_offset): Search for the default
14151 symtab's filename instead of its fullname.
14152
7557a514
AH
141532019-02-21 Alan Hayward <alan.hayward@arm.com>
14154
14155 * NEWS: Update style defaults.
14156
ee2bcb0c
AH
141572019-02-21 Alan Hayward <alan.hayward@arm.com>
14158
14159 * main.c (captured_main_1): Disable styling in batch mode.
14160
0c95f9ed
TT
141612019-02-20 Tom Tromey <tom@tromey.com>
14162
14163 * symtab.c (symtab_symbol_info): Fix typos.
14164
c763b894
TT
141652019-02-20 Tom Tromey <tromey@adacore.com>
14166
14167 * findcmd.c (_initialize_mem_search): Use upper case for
14168 metasyntactic variables.
14169
0ef8a082
AH
141702019-02-20 Alan Hayward <alan.hayward@arm.com>
14171
14172 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14173 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14174
6caa91b6
SM
141752019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14176
14177 * top.h (source_file_name): Change to std::string.
14178 * top.c (source_file_name): Likewise.
14179 (command_line_input): Adjust.
14180 * cli/cli-script.c (script_from_file): Adjust.
14181
98814c6c
TT
141822019-02-19 Tom Tromey <tromey@adacore.com>
14183
14184 * ravenscar-thread.c
14185 (ravenscar_thread_target::update_thread_list): Don't call
14186 ada_build_task_list.
14187 * ada-lang.h (ada_build_task_list): Don't declare.
14188 * ada-tasks.c (struct ada_tasks_inferior_data)
14189 <task_list_valid_p>: Now bool.
14190 (read_known_tasks, ada_task_list_changed)
14191 (ada_tasks_invalidate_inferior_data): Update.
14192 (read_known_tasks_array): Return bool.
14193 (read_known_tasks_list): Likewise.
14194 (read_known_tasks): Return void.
14195 (ada_build_task_list): Now static.
14196
70cd633e
AB
141972019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14198
14199 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14200 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14201
040b3e95
PW
142022019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14203
14204 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14205 variant for ada_tasks_pspace_data_handle and
14206 ada_tasks_inferior_data_handle.
14207 (ada_tasks_pspace_data_cleanup): New function.
14208 (ada_tasks_inferior_data_cleanup): New function.
14209
9409233b
TT
142102019-02-17 Tom Tromey <tom@tromey.com>
14211
14212 * macrotab.h (macro_source_fullname): Return a std::string.
14213 * macrotab.c (macro_include, check_for_redefinition)
14214 (macro_undef, macro_lookup_definition, foreach_macro)
14215 (foreach_macro_in_scope): Update.
14216 (macro_source_fullname): Return a std::string.
14217 * macrocmd.c (show_pp_source_pos): Update.
14218
6506371f
TT
142192019-02-17 Tom Tromey <tom@tromey.com>
14220
14221 * macrocmd.c (show_pp_source_pos): Style the file names.
14222
0c820d67
TT
142232019-02-17 Tom Tromey <tom@tromey.com>
14224
14225 PR tui/24197:
14226 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14227
a0087920
TT
142282019-02-17 Tom Tromey <tom@tromey.com>
14229
14230 * ada-lang.c (user_select_syms): Use filtered printing.
14231 * utils.c (wrap_style): New global.
14232 (desired_style): Remove.
14233 (emit_style_escape): Add stream parameter.
14234 (set_output_style, reset_terminal_style, prompt_for_continue):
14235 Update.
14236 (flush_wrap_buffer): Only flush gdb_stdout.
14237 (wrap_here): Set wrap_style.
14238 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14239 treat escape sequences as a character. Change when wrap buffer is
14240 flushed.
14241 (fputs_styled): Do not set the output style when the default is
14242 requested.
14243 * ui-style.h (struct ui_file_style) <is_default>: New method.
14244 * source.c (print_source_lines_base): Emit escape sequences in one
14245 piece.
14246
75ba10dc
JB
142472019-02-17 Joel Brobecker <brobecker@adacore.com>
14248
14249 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14250 integers and enumeration types.
14251
a2cd4f14
JB
142522019-02-17 Joel Brobecker <brobecker@adacore.com>
14253
14254 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14255 instead of lookup_symbol_in_language
14256 (do_exact_match): New function.
14257 (ada_get_symbol_name_matcher): Return do_exact_match when
14258 doing a verbatim match.
14259
485b851b
TT
142602019-02-15 Tom Tromey <tromey@adacore.com>
14261
14262 * ravenscar-thread.c (ravenscar_thread_target::resume)
14263 (ravenscar_thread_target::wait): Special case wildcard requests.
14264
0b790b1e
TT
142652019-02-15 Tom Tromey <tromey@adacore.com>
14266
14267 * ravenscar-thread.c (base_ptid): Remove.
14268 (struct ravenscar_thread_target) <close>: New method.
14269 <m_base_ptid>: New member.
14270 <update_inferior_ptid, active_task, task_is_currently_active,
14271 runtime_initialized>: Declare methods.
14272 <ravenscar_thread_target>: Add constructor.
14273 (ravenscar_thread_target::task_is_currently_active)
14274 (ravenscar_thread_target::update_inferior_ptid)
14275 (ravenscar_runtime_initialized): Rename. Now methods.
14276 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14277 (ravenscar_thread_target::update_thread_list): Update.
14278 (ravenscar_thread_target::active_task): Now method.
14279 (ravenscar_thread_target::store_registers)
14280 (ravenscar_thread_target::prepare_to_store)
14281 (ravenscar_thread_target::prepare_to_store)
14282 (ravenscar_thread_target::mourn_inferior): Update.
14283 (ravenscar_inferior_created): Use "new" to create target.
14284 (ravenscar_thread_target::get_ada_task_ptid): Update.
14285 (_initialize_ravenscar): Don't initialize base_ptid.
14286 (ravenscar_ops): Remove global.
14287
dea57a62
TT
142882019-02-15 Tom Tromey <tromey@adacore.com>
14289
14290 * target.h (push_target): Declare new overload.
14291 * target.c (push_target): New overload, taking an rvalue reference.
14292 * remote.c (remote_target::open_1): Use push_target overload.
14293 * corelow.c (core_target_open): Use push_target overload.
14294
989f3c58
TT
142952019-02-15 Tom Tromey <tromey@adacore.com>
14296
14297 * ravenscar-thread.c (is_ravenscar_task)
14298 (ravenscar_task_is_currently_active): Return bool.
14299 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14300 (_initialize_ravenscar): Remove "(void)".
14301 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14302 Return bool.
14303
6cbcc006
TT
143042019-02-15 Tom Tromey <tromey@adacore.com>
14305
14306 * ravenscar-thread.c (ravenscar_runtime_initializer)
14307 (has_ravenscar_runtime, get_running_thread_id)
14308 (ravenscar_thread_target::resume): Fix indentation.
14309
7657f14d
TT
143102019-02-15 Tom Tromey <tromey@adacore.com>
14311
14312 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14313 from ravenscar_arch_ops.
14314 (sparc_ravenscar_ops::fetch_registers)
14315 (sparc_ravenscar_ops::store_registers): Now methods.
14316 (sparc_ravenscar_prepare_to_store): Remove.
14317 (sparc_ravenscar_ops): Redefine.
14318 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14319 methods and destructor. Remove members.
14320 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14321 (ravenscar_thread_target::store_registers)
14322 (ravenscar_thread_target::prepare_to_store): Update.
14323 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14324 Remove.
14325 (struct ppc_ravenscar_powerpc_ops): Derive from
14326 ravenscar_arch_ops.
14327 (ppc_ravenscar_powerpc_ops::fetch_registers)
14328 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14329 (ppc_ravenscar_powerpc_ops): Redefine.
14330 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14331 (ppc_ravenscar_e500_ops::fetch_registers)
14332 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14333 (ppc_ravenscar_e500_ops): Redefine.
14334 * aarch64-ravenscar-thread.c
14335 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14336 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14337 (aarch64_ravenscar_fetch_registers)
14338 (aarch64_ravenscar_store_registers): Now methods.
14339 (aarch64_ravenscar_ops): Redefine.
14340
5b6ea500
TT
143412019-02-15 Tom Tromey <tromey@adacore.com>
14342
14343 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14344 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14345 (ravenscar_thread_target::stopped_by_watchpoint)
14346 (ravenscar_thread_target::stopped_data_address)
14347 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14348
e397fd39
TT
143492019-02-15 Tom Tromey <tromey@adacore.com>
14350
14351 * ravenscar-thread.c: Fix some typos.
14352
cc12f4a8
TT
143532019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14354 Tom Tromey <tromey@adacore.com>
14355
14356 * ada-lang.c (ada_exception_sal): Change addr_string to a
14357 std::string.
14358 (create_ada_exception_catchpoint): Update.
14359
5f486660
TT
143602019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14361 Tom Tromey <tromey@adacore.com>
14362
14363 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14364 (bp_location_ops): Remove.
14365 (base_breakpoint_allocate_location): Update.
14366 (free_bp_location): Update.
14367 * ada-lang.c (class ada_catchpoint_location)
14368 <ada_catchpoint_location>: Remove ops parameter.
14369 (ada_catchpoint_location_dtor): Remove.
14370 (ada_catchpoint_location_ops): Remove.
14371 (allocate_location_exception): Update.
14372 * breakpoint.h (struct bp_location_ops): Remove.
14373 (class bp_location) <bp_location>: Remove bp_location_ops
14374 parameter.
14375 <~bp_location>: Add destructor.
14376 <ops>: Remove.
14377
b671c7fb
TS
143782019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14379 Pedro Alves <palves@redhat.com>
14380
14381 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14382 'PATH_MAX'.
14383
8071c5ce
DM
143842019-02-14 David Michael <fedora.dm0@gmail.com>
14385 Samuel Thibault <samuel.thibault@gnu.org>
14386 Thomas Schwinge <thomas@codesourcery.com>
14387
14388 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14389 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14390
b1041ae0
TS
143912019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14392
924514e1
TS
14393 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14394 (check_empty): Use "const char *".
14395
c29ee8d4
TS
14396 * gnu-nat.c (gnu_nat_target::detach): Instead of
14397 'detach_inferior (pid)' call
14398 'detach_inferior (find_inferior_pid (pid))'.
14399
6c6ef69f
TS
14400 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14401 'nat/fork-inferior.o'.
14402 * gnu-nat.c: #include "nat/fork-inferior.h".
14403
2d0a338c
TS
14404 * gnu-nat.c (gnu_nat_target::detach): Instead of
14405 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14406 * gnu-nat.h: #include "inf-child.h".
14407 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14408 'i386_gnu_nat_target::fetch_registers'.
14409 (gnu_store_registers): Rename/move to
14410 'i386_gnu_nat_target::store_registers'.
14411
cabb5f06
TS
14412 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14413 * gnu-nat.h (mach_thread_info): New function.
14414 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14415
b1041ae0
TS
14416 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14417
2988d01e
KF
144182019-02-14 Frederic Konrad <konrad@adacore.com>
14419
14420 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14421
c559d709
JB
144222019-02-14 Joel Brobecker <brobecker@adacore.com>
14423
14424 * windows-nat.c (windows_add_thread): Add new parameter
14425 "main_thread_p" with default value set to false. Update
14426 function documentation as well as all callers.
14427 (windows_delete_thread): Likewise.
14428 (fake_create_process): Update call to windows_add_thread.
14429 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14430 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14431 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14432 call to windows_delete_thread.
14433
007024cc
SM
144342019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14435
14436 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14437
f62318e9
JB
144382019-02-12 John Baldwin <jhb@FreeBSD.org>
14439
14440 * symfile.c (find_separate_debug_file): Use canonical path of
14441 sysroot with child_path instead of gdb_sysroot if it is valid.
14442
cd4b7848
JB
144432019-02-12 John Baldwin <jhb@FreeBSD.org>
14444
14445 * symfile.c (find_separate_debug_file): Use child_path to
14446 determine if an object file is under a sysroot.
14447
efac4bfe
JB
144482019-02-12 John Baldwin <jhb@FreeBSD.org>
14449
14450 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14451 unittests/child-path-selftests.c.
14452 * common/pathstuff.c (child_path): New function.
14453 * common/pathstuff.h (child_path): New prototype.
14454 * unittests/child-path-selftests.c: New file.
14455
402d2bfe
JB
144562019-02-12 John Baldwin <jhb@FreeBSD.org>
14457
14458 * symfile.c (find_separate_debug_file): Look for separate debug
14459 files in debug directories under the sysroot.
14460
1ed9f74e
PW
144612019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14462
14463 * symtab.h (struct minimal_symbol data_p): New const method.
14464 (struct minimal_symbol text_p): Likewise.
14465 * symtab.c (output_source_filename): Use file name style
14466 to print file name.
14467 (print_symbol_info): Likewise.
14468 (print_msymbol_info): Use address style to print addresses.
14469 Use function name style to print executable text symbols.
14470 (expand_symtab_containing_pc): Use data_p.
14471 (find_pc_sect_compunit_symtab): Likewise.
14472
2636d81d
PW
144732019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14474
14475 * breakpoint.c (describe_other_breakpoints): Use address style
14476 to print addresses.
14477 (say_where): Likewise.
14478
ac8c53cc
PW
144792019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14480
14481 * ada-typeprint.c (print_func_type): Print function name
14482 style to print function name.
14483 * c-typeprint.c (c_print_type_1): Likewise.
14484
ea638c43
AH
144852019-02-11 Alan Hayward <alan.hayward@arm.com>
14486
14487 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14488 for execve.
14489
ab759ca8
PW
144902019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14491
14492 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14493 type_stack.
14494
aff29d1c
JB
144952019-02-10 Joel Brobecker <brobecker@adacore.com>
14496
14497 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14498 TYPE_CODE_REF types.
14499
617126bc
JW
145002019-02-08 Jim Wilson <jimw@sifive.com>
14501
14502 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14503 (riscv_linux_fregset): New.
14504 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14505
46e3ed7f
TT
145062019-02-07 Tom Tromey <tom@tromey.com>
14507
14508 * thread.c (thread_cancel_execution_command): Update.
14509 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14510 methods.
14511 (struct thread_fsm_ops): Remove.
14512 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14513 (thread_fsm_should_stop, thread_fsm_return_value)
14514 (thread_fsm_set_finished, thread_fsm_finished_p)
14515 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14516 Don't declare.
14517 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14518 * infrun.c (clear_proceed_status_thread)
14519 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14520 (print_stop_event): Update.
14521 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14522 Add constructor.
14523 (step_command_fsm_ops): Remove.
14524 (new_step_command_fsm): Remove.
14525 (step_1): Update.
14526 (step_command_fsm::should_stop): Rename from
14527 step_command_fsm_should_stop.
14528 (step_command_fsm::clean_up): Rename from
14529 step_command_fsm_clean_up.
14530 (step_command_fsm::do_async_reply_reason): Rename from
14531 step_command_fsm_async_reply_reason.
14532 (struct until_next_fsm): Inherit from thread_fsm. Add
14533 constructor.
14534 (until_next_fsm_ops): Remove.
14535 (new_until_next_fsm): Remove.
14536 (until_next_fsm::should_stop): Rename from
14537 until_next_fsm_should_stop.
14538 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14539 (until_next_fsm::do_async_reply_reason): Rename from
14540 until_next_fsm_async_reply_reason.
14541 (struct finish_command_fsm): Inherit from thread_fsm. Add
14542 constructor. Change type of breakpoint.
14543 (finish_command_fsm_ops): Remove.
14544 (new_finish_command_fsm): Remove.
14545 (finish_command_fsm::should_stop): Rename from
14546 finish_command_fsm_should_stop.
14547 (finish_command_fsm::clean_up): Rename from
14548 finish_command_fsm_clean_up.
14549 (finish_command_fsm::return_value): Rename from
14550 finish_command_fsm_return_value.
14551 (finish_command_fsm::do_async_reply_reason): Rename from
14552 finish_command_fsm_async_reply_reason.
14553 (finish_command): Update.
14554 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14555 Add constructor.
14556 (call_thread_fsm_ops): Remove.
14557 (call_thread_fsm::call_thread_fsm): Rename from
14558 new_call_thread_fsm.
14559 (call_thread_fsm::should_stop): Rename from
14560 call_thread_fsm_should_stop.
14561 (call_thread_fsm::should_notify_stop): Rename from
14562 call_thread_fsm_should_notify_stop.
14563 (run_inferior_call, call_function_by_hand_dummy): Update.
14564 * cli/cli-interp.c (should_print_stop_to_console): Update.
14565 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14566 Add constructor. Change type of location_breakpoint,
14567 caller_breakpoint.
14568 (until_break_fsm_ops): Remove.
14569 (new_until_break_fsm): Remove.
14570 (until_break_fsm::should_stop): Rename from
14571 until_break_fsm_should_stop.
14572 (until_break_fsm::clean_up): Rename from
14573 until_break_fsm_clean_up.
14574 (until_break_fsm::do_async_reply_reason): Rename from
14575 until_break_fsm_async_reply_reason.
14576 (until_break_command): Update.
14577 * thread-fsm.c: Remove.
14578 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14579
1a5c2598
TT
145802019-02-07 Tom Tromey <tom@tromey.com>
14581
14582 * yy-remap.h: Add include guard.
14583 * xtensa-tdep.h: Add include guard.
14584 * xcoffread.h: Rename include guard.
14585 * varobj-iter.h: Add include guard.
14586 * tui/tui.h: Rename include guard.
14587 * tui/tui-winsource.h: Rename include guard.
14588 * tui/tui-wingeneral.h: Rename include guard.
14589 * tui/tui-windata.h: Rename include guard.
14590 * tui/tui-win.h: Rename include guard.
14591 * tui/tui-stack.h: Rename include guard.
14592 * tui/tui-source.h: Rename include guard.
14593 * tui/tui-regs.h: Rename include guard.
14594 * tui/tui-out.h: Rename include guard.
14595 * tui/tui-layout.h: Rename include guard.
14596 * tui/tui-io.h: Rename include guard.
14597 * tui/tui-hooks.h: Rename include guard.
14598 * tui/tui-file.h: Rename include guard.
14599 * tui/tui-disasm.h: Rename include guard.
14600 * tui/tui-data.h: Rename include guard.
14601 * tui/tui-command.h: Rename include guard.
14602 * tic6x-tdep.h: Add include guard.
14603 * target/waitstatus.h: Rename include guard.
14604 * target/wait.h: Rename include guard.
14605 * target/target.h: Rename include guard.
14606 * target/resume.h: Rename include guard.
14607 * target-float.h: Rename include guard.
14608 * stabsread.h: Add include guard.
14609 * rs6000-tdep.h: Add include guard.
14610 * riscv-fbsd-tdep.h: Add include guard.
14611 * regformats/regdef.h: Rename include guard.
14612 * record.h: Rename include guard.
14613 * python/python.h: Rename include guard.
14614 * python/python-internal.h: Rename include guard.
14615 * python/py-stopevent.h: Rename include guard.
14616 * python/py-ref.h: Rename include guard.
14617 * python/py-record.h: Rename include guard.
14618 * python/py-record-full.h: Rename include guard.
14619 * python/py-record-btrace.h: Rename include guard.
14620 * python/py-instruction.h: Rename include guard.
14621 * python/py-events.h: Rename include guard.
14622 * python/py-event.h: Rename include guard.
14623 * procfs.h: Add include guard.
14624 * proc-utils.h: Add include guard.
14625 * p-lang.h: Add include guard.
14626 * or1k-tdep.h: Rename include guard.
14627 * observable.h: Rename include guard.
14628 * nto-tdep.h: Rename include guard.
14629 * nat/x86-linux.h: Rename include guard.
14630 * nat/x86-linux-dregs.h: Rename include guard.
14631 * nat/x86-gcc-cpuid.h: Add include guard.
14632 * nat/x86-dregs.h: Rename include guard.
14633 * nat/x86-cpuid.h: Rename include guard.
14634 * nat/ppc-linux.h: Rename include guard.
14635 * nat/mips-linux-watch.h: Rename include guard.
14636 * nat/linux-waitpid.h: Rename include guard.
14637 * nat/linux-ptrace.h: Rename include guard.
14638 * nat/linux-procfs.h: Rename include guard.
14639 * nat/linux-osdata.h: Rename include guard.
14640 * nat/linux-nat.h: Rename include guard.
14641 * nat/linux-namespaces.h: Rename include guard.
14642 * nat/linux-btrace.h: Rename include guard.
14643 * nat/glibc_thread_db.h: Rename include guard.
14644 * nat/gdb_thread_db.h: Rename include guard.
14645 * nat/gdb_ptrace.h: Rename include guard.
14646 * nat/fork-inferior.h: Rename include guard.
14647 * nat/amd64-linux-siginfo.h: Rename include guard.
14648 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14649 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14650 * nat/aarch64-linux.h: Rename include guard.
14651 * nat/aarch64-linux-hw-point.h: Rename include guard.
14652 * mn10300-tdep.h: Add include guard.
14653 * mips-linux-tdep.h: Add include guard.
14654 * mi/mi-parse.h: Rename include guard.
14655 * mi/mi-out.h: Rename include guard.
14656 * mi/mi-main.h: Rename include guard.
14657 * mi/mi-interp.h: Rename include guard.
14658 * mi/mi-getopt.h: Rename include guard.
14659 * mi/mi-console.h: Rename include guard.
14660 * mi/mi-common.h: Rename include guard.
14661 * mi/mi-cmds.h: Rename include guard.
14662 * mi/mi-cmd-break.h: Rename include guard.
14663 * m2-lang.h: Add include guard.
14664 * location.h: Rename include guard.
14665 * linux-record.h: Rename include guard.
14666 * linux-nat.h: Add include guard.
14667 * linux-fork.h: Add include guard.
14668 * i386-darwin-tdep.h: Rename include guard.
14669 * hppa-linux-offsets.h: Add include guard.
14670 * guile/guile.h: Rename include guard.
14671 * guile/guile-internal.h: Rename include guard.
14672 * gnu-nat.h: Rename include guard.
14673 * gdb-stabs.h: Rename include guard.
14674 * frv-tdep.h: Add include guard.
14675 * f-lang.h: Add include guard.
14676 * event-loop.h: Add include guard.
14677 * darwin-nat.h: Rename include guard.
14678 * cp-abi.h: Rename include guard.
14679 * config/sparc/nm-sol2.h: Rename include guard.
14680 * config/nm-nto.h: Rename include guard.
14681 * config/nm-linux.h: Add include guard.
14682 * config/i386/nm-i386gnu.h: Rename include guard.
14683 * config/djgpp/nl_types.h: Rename include guard.
14684 * config/djgpp/langinfo.h: Rename include guard.
14685 * compile/gcc-cp-plugin.h: Add include guard.
14686 * compile/gcc-c-plugin.h: Add include guard.
14687 * compile/compile.h: Rename include guard.
14688 * compile/compile-object-run.h: Rename include guard.
14689 * compile/compile-object-load.h: Rename include guard.
14690 * compile/compile-internal.h: Rename include guard.
14691 * compile/compile-cplus.h: Rename include guard.
14692 * compile/compile-c.h: Rename include guard.
14693 * common/xml-utils.h: Rename include guard.
14694 * common/x86-xstate.h: Rename include guard.
14695 * common/version.h: Rename include guard.
14696 * common/vec.h: Rename include guard.
14697 * common/tdesc.h: Rename include guard.
14698 * common/selftest.h: Rename include guard.
14699 * common/scoped_restore.h: Rename include guard.
14700 * common/scoped_mmap.h: Rename include guard.
14701 * common/scoped_fd.h: Rename include guard.
14702 * common/safe-iterator.h: Rename include guard.
14703 * common/run-time-clock.h: Rename include guard.
14704 * common/refcounted-object.h: Rename include guard.
14705 * common/queue.h: Rename include guard.
14706 * common/ptid.h: Rename include guard.
14707 * common/print-utils.h: Rename include guard.
14708 * common/preprocessor.h: Rename include guard.
14709 * common/pathstuff.h: Rename include guard.
14710 * common/observable.h: Rename include guard.
14711 * common/netstuff.h: Rename include guard.
14712 * common/job-control.h: Rename include guard.
14713 * common/host-defs.h: Rename include guard.
14714 * common/gdb_wait.h: Rename include guard.
14715 * common/gdb_vecs.h: Rename include guard.
14716 * common/gdb_unlinker.h: Rename include guard.
14717 * common/gdb_unique_ptr.h: Rename include guard.
14718 * common/gdb_tilde_expand.h: Rename include guard.
14719 * common/gdb_sys_time.h: Rename include guard.
14720 * common/gdb_string_view.h: Rename include guard.
14721 * common/gdb_splay_tree.h: Rename include guard.
14722 * common/gdb_setjmp.h: Rename include guard.
14723 * common/gdb_ref_ptr.h: Rename include guard.
14724 * common/gdb_optional.h: Rename include guard.
14725 * common/gdb_locale.h: Rename include guard.
14726 * common/gdb_assert.h: Rename include guard.
14727 * common/filtered-iterator.h: Rename include guard.
14728 * common/filestuff.h: Rename include guard.
14729 * common/fileio.h: Rename include guard.
14730 * common/environ.h: Rename include guard.
14731 * common/common-utils.h: Rename include guard.
14732 * common/common-types.h: Rename include guard.
14733 * common/common-regcache.h: Rename include guard.
14734 * common/common-inferior.h: Rename include guard.
14735 * common/common-gdbthread.h: Rename include guard.
14736 * common/common-exceptions.h: Rename include guard.
14737 * common/common-defs.h: Rename include guard.
14738 * common/common-debug.h: Rename include guard.
14739 * common/cleanups.h: Rename include guard.
14740 * common/buffer.h: Rename include guard.
14741 * common/btrace-common.h: Rename include guard.
14742 * common/break-common.h: Rename include guard.
14743 * cli/cli-utils.h: Rename include guard.
14744 * cli/cli-style.h: Rename include guard.
14745 * cli/cli-setshow.h: Rename include guard.
14746 * cli/cli-script.h: Rename include guard.
14747 * cli/cli-interp.h: Rename include guard.
14748 * cli/cli-decode.h: Rename include guard.
14749 * cli/cli-cmds.h: Rename include guard.
14750 * charset-list.h: Add include guard.
14751 * buildsym-legacy.h: Rename include guard.
14752 * bfin-tdep.h: Add include guard.
14753 * ax.h: Rename include guard.
14754 * arm-linux-tdep.h: Add include guard.
14755 * arm-fbsd-tdep.h: Add include guard.
14756 * arch/xtensa.h: Rename include guard.
14757 * arch/tic6x.h: Add include guard.
14758 * arch/i386.h: Add include guard.
14759 * arch/arm.h: Rename include guard.
14760 * arch/arm-linux.h: Rename include guard.
14761 * arch/arm-get-next-pcs.h: Rename include guard.
14762 * arch/amd64.h: Add include guard.
14763 * arch/aarch64-insn.h: Rename include guard.
14764 * arch-utils.h: Rename include guard.
14765 * annotate.h: Add include guard.
14766 * amd64-darwin-tdep.h: Rename include guard.
14767 * aarch64-linux-tdep.h: Add include guard.
14768 * aarch64-fbsd-tdep.h: Add include guard.
14769 * aarch32-linux-nat.h: Add include guard.
14770
ab9268d2
PW
147712019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14772
14773 * macrotab.c (macro_define_internal): New function that
14774 factorizes macro_define_object_internal and macro_define_function
14775 code.
14776 (macro_define_object_internal): Use macro_define_internal.
14777 (macro_define_function): Likewise.
14778
bb0da2b4
PW
147792019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14780
14781 * macrocmd.c (extract_identifier): Return
14782 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14783 callers.
14784
424eb552
JB
147852019-02-06 John Baldwin <jhb@FreeBSD.org>
14786
14787 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14788
1688cb29
TT
147892019-02-05 Tom Tromey <tom@tromey.com>
14790
14791 * target.c (target_stack::unpush): Move assertion earlier.
14792
b5eba2d8
TT
147932019-01-30 Tom Tromey <tom@tromey.com>
14794
14795 PR python/23615:
14796 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14797 (gdbpy_parse_and_eval): Likewise.
14798 * python/python-internal.h (gdbpy_allow_threads): New class.
14799
7054e2ff
JB
148002019-01-28 John Baldwin <jhb@FreeBSD.org>
14801
14802 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14803 (aarch64_fbsd_fpregmap): Move earlier.
14804 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14805 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14806 instead of individual calls to trad_frame_set_reg_addr.
14807 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14808 earlier.
14809 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14810 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14811 instead of individual calls to trad_frame_set_reg_addr.
14812
36c25ffa
AH
148132019-01-28 Alan Hayward <alan.hayward@arm.com>
14814
14815 * CONTRIBUTE: Replace contribution list with wiki link.
14816
a0707f3c
TT
148172019-01-25 Tom Tromey <tom@tromey.com>
14818
14819 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14820
0747795c
TT
148212019-01-25 Tom Tromey <tom@tromey.com>
14822
14823 * xtensa-linux-nat.c: Fix common/ includes.
14824 * xml-support.h: Fix common/ includes.
14825 * xml-support.c: Fix common/ includes.
14826 * x86-linux-nat.c: Fix common/ includes.
14827 * windows-nat.c: Fix common/ includes.
14828 * varobj.h: Fix common/ includes.
14829 * varobj.c: Fix common/ includes.
14830 * value.c: Fix common/ includes.
14831 * valops.c: Fix common/ includes.
14832 * utils.c: Fix common/ includes.
14833 * unittests/xml-utils-selftests.c: Fix common/ includes.
14834 * unittests/utils-selftests.c: Fix common/ includes.
14835 * unittests/unpack-selftests.c: Fix common/ includes.
14836 * unittests/tracepoint-selftests.c: Fix common/ includes.
14837 * unittests/style-selftests.c: Fix common/ includes.
14838 * unittests/string_view-selftests.c: Fix common/ includes.
14839 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14840 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14841 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14842 * unittests/rsp-low-selftests.c: Fix common/ includes.
14843 * unittests/parse-connection-spec-selftests.c: Fix common/
14844 includes.
14845 * unittests/optional-selftests.c: Fix common/ includes.
14846 * unittests/offset-type-selftests.c: Fix common/ includes.
14847 * unittests/observable-selftests.c: Fix common/ includes.
14848 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14849 * unittests/memrange-selftests.c: Fix common/ includes.
14850 * unittests/memory-map-selftests.c: Fix common/ includes.
14851 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14852 * unittests/function-view-selftests.c: Fix common/ includes.
14853 * unittests/environ-selftests.c: Fix common/ includes.
14854 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14855 * unittests/common-utils-selftests.c: Fix common/ includes.
14856 * unittests/cli-utils-selftests.c: Fix common/ includes.
14857 * unittests/array-view-selftests.c: Fix common/ includes.
14858 * ui-file.c: Fix common/ includes.
14859 * tui/tui-io.c: Fix common/ includes.
14860 * tracepoint.h: Fix common/ includes.
14861 * tracepoint.c: Fix common/ includes.
14862 * tracefile-tfile.c: Fix common/ includes.
14863 * top.h: Fix common/ includes.
14864 * top.c: Fix common/ includes.
14865 * thread.c: Fix common/ includes.
14866 * target/waitstatus.h: Fix common/ includes.
14867 * target/waitstatus.c: Fix common/ includes.
14868 * target.h: Fix common/ includes.
14869 * target.c: Fix common/ includes.
14870 * target-memory.c: Fix common/ includes.
14871 * target-descriptions.c: Fix common/ includes.
14872 * symtab.h: Fix common/ includes.
14873 * symfile.c: Fix common/ includes.
14874 * stap-probe.c: Fix common/ includes.
14875 * spu-linux-nat.c: Fix common/ includes.
14876 * sparc-nat.c: Fix common/ includes.
14877 * source.c: Fix common/ includes.
14878 * solib.c: Fix common/ includes.
14879 * solib-target.c: Fix common/ includes.
14880 * ser-unix.c: Fix common/ includes.
14881 * ser-tcp.c: Fix common/ includes.
14882 * ser-pipe.c: Fix common/ includes.
14883 * ser-base.c: Fix common/ includes.
14884 * selftest-arch.c: Fix common/ includes.
14885 * s12z-tdep.c: Fix common/ includes.
14886 * rust-exp.y: Fix common/ includes.
14887 * rs6000-aix-tdep.c: Fix common/ includes.
14888 * riscv-tdep.c: Fix common/ includes.
14889 * remote.c: Fix common/ includes.
14890 * remote-notif.h: Fix common/ includes.
14891 * remote-fileio.h: Fix common/ includes.
14892 * remote-fileio.c: Fix common/ includes.
14893 * regcache.h: Fix common/ includes.
14894 * regcache.c: Fix common/ includes.
14895 * record-btrace.c: Fix common/ includes.
14896 * python/python.c: Fix common/ includes.
14897 * python/py-type.c: Fix common/ includes.
14898 * python/py-inferior.c: Fix common/ includes.
14899 * progspace.h: Fix common/ includes.
14900 * producer.c: Fix common/ includes.
14901 * procfs.c: Fix common/ includes.
14902 * proc-api.c: Fix common/ includes.
14903 * printcmd.c: Fix common/ includes.
14904 * ppc-linux-nat.c: Fix common/ includes.
14905 * parser-defs.h: Fix common/ includes.
14906 * osdata.c: Fix common/ includes.
14907 * obsd-nat.c: Fix common/ includes.
14908 * nat/x86-linux.c: Fix common/ includes.
14909 * nat/x86-linux-dregs.c: Fix common/ includes.
14910 * nat/x86-dregs.h: Fix common/ includes.
14911 * nat/x86-dregs.c: Fix common/ includes.
14912 * nat/ppc-linux.c: Fix common/ includes.
14913 * nat/mips-linux-watch.h: Fix common/ includes.
14914 * nat/mips-linux-watch.c: Fix common/ includes.
14915 * nat/linux-waitpid.c: Fix common/ includes.
14916 * nat/linux-ptrace.h: Fix common/ includes.
14917 * nat/linux-ptrace.c: Fix common/ includes.
14918 * nat/linux-procfs.c: Fix common/ includes.
14919 * nat/linux-personality.c: Fix common/ includes.
14920 * nat/linux-osdata.c: Fix common/ includes.
14921 * nat/linux-namespaces.c: Fix common/ includes.
14922 * nat/linux-btrace.h: Fix common/ includes.
14923 * nat/linux-btrace.c: Fix common/ includes.
14924 * nat/fork-inferior.c: Fix common/ includes.
14925 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14926 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14927 * nat/aarch64-linux.c: Fix common/ includes.
14928 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14929 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14930 * namespace.h: Fix common/ includes.
14931 * mips-linux-tdep.c: Fix common/ includes.
14932 * minsyms.c: Fix common/ includes.
14933 * mi/mi-parse.h: Fix common/ includes.
14934 * mi/mi-main.c: Fix common/ includes.
14935 * mi/mi-cmd-env.c: Fix common/ includes.
14936 * memrange.h: Fix common/ includes.
14937 * memattr.c: Fix common/ includes.
14938 * maint.h: Fix common/ includes.
14939 * maint.c: Fix common/ includes.
14940 * main.c: Fix common/ includes.
14941 * machoread.c: Fix common/ includes.
14942 * location.c: Fix common/ includes.
14943 * linux-thread-db.c: Fix common/ includes.
14944 * linux-nat.c: Fix common/ includes.
14945 * linux-fork.c: Fix common/ includes.
14946 * inline-frame.c: Fix common/ includes.
14947 * infrun.c: Fix common/ includes.
14948 * inflow.c: Fix common/ includes.
14949 * inferior.h: Fix common/ includes.
14950 * inferior.c: Fix common/ includes.
14951 * infcmd.c: Fix common/ includes.
14952 * inf-ptrace.c: Fix common/ includes.
14953 * inf-child.c: Fix common/ includes.
14954 * ia64-linux-nat.c: Fix common/ includes.
14955 * i387-tdep.c: Fix common/ includes.
14956 * i386-tdep.c: Fix common/ includes.
14957 * i386-linux-tdep.c: Fix common/ includes.
14958 * i386-linux-nat.c: Fix common/ includes.
14959 * i386-go32-tdep.c: Fix common/ includes.
14960 * i386-fbsd-tdep.c: Fix common/ includes.
14961 * i386-fbsd-nat.c: Fix common/ includes.
14962 * guile/scm-type.c: Fix common/ includes.
14963 * guile/guile.c: Fix common/ includes.
14964 * go32-nat.c: Fix common/ includes.
14965 * gnu-nat.c: Fix common/ includes.
14966 * gdbthread.h: Fix common/ includes.
14967 * gdbarch-selftests.c: Fix common/ includes.
14968 * gdb_usleep.c: Fix common/ includes.
14969 * gdb_select.h: Fix common/ includes.
14970 * gdb_bfd.c: Fix common/ includes.
14971 * gcore.c: Fix common/ includes.
14972 * fork-child.c: Fix common/ includes.
14973 * findvar.c: Fix common/ includes.
14974 * fbsd-nat.c: Fix common/ includes.
14975 * event-top.c: Fix common/ includes.
14976 * event-loop.c: Fix common/ includes.
14977 * dwarf2read.c: Fix common/ includes.
14978 * dwarf2loc.c: Fix common/ includes.
14979 * dwarf2-frame.c: Fix common/ includes.
14980 * dwarf-index-cache.c: Fix common/ includes.
14981 * dtrace-probe.c: Fix common/ includes.
14982 * disasm-selftests.c: Fix common/ includes.
14983 * defs.h: Fix common/ includes.
14984 * csky-tdep.c: Fix common/ includes.
14985 * cp-valprint.c: Fix common/ includes.
14986 * cp-support.h: Fix common/ includes.
14987 * cp-support.c: Fix common/ includes.
14988 * corelow.c: Fix common/ includes.
14989 * completer.h: Fix common/ includes.
14990 * completer.c: Fix common/ includes.
14991 * compile/compile.c: Fix common/ includes.
14992 * compile/compile-loc2c.c: Fix common/ includes.
14993 * compile/compile-cplus-types.c: Fix common/ includes.
14994 * compile/compile-cplus-symbols.c: Fix common/ includes.
14995 * command.h: Fix common/ includes.
14996 * cli/cli-dump.c: Fix common/ includes.
14997 * cli/cli-cmds.c: Fix common/ includes.
14998 * charset.c: Fix common/ includes.
14999 * build-id.c: Fix common/ includes.
15000 * btrace.h: Fix common/ includes.
15001 * btrace.c: Fix common/ includes.
15002 * breakpoint.h: Fix common/ includes.
15003 * breakpoint.c: Fix common/ includes.
15004 * ax.h:
15005 (enum agent_op): Fix common/ includes.
15006 * ax-general.c (struct aop_map): Fix common/ includes.
15007 * ax-gdb.c: Fix common/ includes.
15008 * auxv.c: Fix common/ includes.
15009 * auto-load.c: Fix common/ includes.
15010 * arm-tdep.c: Fix common/ includes.
15011 * arch/riscv.c: Fix common/ includes.
15012 * arch/ppc-linux-common.c: Fix common/ includes.
15013 * arch/i386.c: Fix common/ includes.
15014 * arch/arm.c: Fix common/ includes.
15015 * arch/arm-linux.c: Fix common/ includes.
15016 * arch/arm-get-next-pcs.c: Fix common/ includes.
15017 * arch/amd64.c: Fix common/ includes.
15018 * arch/aarch64.c: Fix common/ includes.
15019 * arch/aarch64-insn.c: Fix common/ includes.
15020 * arch-utils.c: Fix common/ includes.
15021 * amd64-windows-tdep.c: Fix common/ includes.
15022 * amd64-tdep.c: Fix common/ includes.
15023 * amd64-sol2-tdep.c: Fix common/ includes.
15024 * amd64-obsd-tdep.c: Fix common/ includes.
15025 * amd64-nbsd-tdep.c: Fix common/ includes.
15026 * amd64-linux-tdep.c: Fix common/ includes.
15027 * amd64-linux-nat.c: Fix common/ includes.
15028 * amd64-fbsd-tdep.c: Fix common/ includes.
15029 * amd64-fbsd-nat.c: Fix common/ includes.
15030 * amd64-dicos-tdep.c: Fix common/ includes.
15031 * amd64-darwin-tdep.c: Fix common/ includes.
15032 * agent.c: Fix common/ includes.
15033 * ada-lang.h: Fix common/ includes.
15034 * ada-lang.c: Fix common/ includes.
15035 * aarch64-tdep.c: Fix common/ includes.
15036
2f5c153e
TT
150372019-01-25 Tom Tromey <tom@tromey.com>
15038
15039 * common/create-version.sh: Use common/version.h.
15040
adc6a863
PA
150412019-01-24 Pedro Alves <palves@redhat.com>
15042
15043 * infrun.c (signal_stop, signal_print, signal_program)
15044 (signal_catch, signal_pass): Now arrays instead of pointers.
15045 (update_signals_program_target, do_target_resume)
15046 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15047 * linux-nat.c (linux_nat_target::pass_signals)
15048 (linux_nat_target::create_inferior, linux_nat_target::attach):
15049 Adjust.
15050 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15051 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15052 * procfs.c (procfs_target::pass_signals): Adjust.
15053 * record-full.c (record_full_target::resume): Adjust.
15054 * remote.c (remote_target::pass_signals)
15055 (remote_target::program_signals): Adjust.
15056 * target-debug.h (target_debug_print_signals): Now takes a
15057 gdb::array_view as parameter. Adjust.
15058 * target.h (target_ops) <pass_signals, program_signals>: Replace
15059 pointer and length parameters with gdb::array_view.
15060 (target_pass_signals, target_program_signals): Likewise.
15061 * target-delegates.c: Regenerate.
15062
3046d67a
PA
150632019-01-24 Pedro Alves <palves@redhat.com>
15064
15065 * common/forward-scope-exit.h
15066 (forward_scope_exit::forward_scope_exit): Pass arguments to
15067 m_bind_function directly, instead of creating a std::bind and
15068 copying that.
15069
353229bf
AH
150702019-01-24 Alan Hayward <alan.hayward@arm.com>
15071
15072 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15073 for static members.
15074 (pass_in_v_vfp_candidate): Likewise.
15075
311dc83a
TT
150762019-01-23 Tom Tromey <tom@tromey.com>
15077 Pedro Alves <palves@redhat.com>
15078
15079 * regcache.c (class regcache_invalidator): Remove.
15080 (regcache::raw_write): Use make_scope_exit.
15081
296bd123
TT
150822019-01-23 Tom Tromey <tom@tromey.com>
15083
15084 * ui-out.h (class ui_out_emit_type): Update comment.
15085
979a0d13
TT
150862019-01-23 Tom Tromey <tom@tromey.com>
15087
15088 * infrun.c (fetch_inferior_event): Update comment.
15089
d238133d
TT
150902019-01-23 Tom Tromey <tom@tromey.com>
15091 Pedro Alves <palves@redhat.com>
15092
15093 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15094 parameter.
15095 (fetch_inferior_event): Use SCOPE_EXIT.
15096
15097
9885e6bb
TT
150982019-01-23 Tom Tromey <tom@tromey.com>
15099 Pedro Alves <palves@redhat.com>
15100
15101 * infrun.c (disable_thread_events): Delete.
15102 (stop_all_threads): Use SCOPE_EXIT.
15103
286526c1
TT
151042019-01-23 Tom Tromey <tom@tromey.com>
15105 Pedro Alves <palves@redhat.com>
15106
15107 * symfile.c: Include forward-scope-exit.h.
15108 (clear_symtab_users_cleanup): Replace forward declaration with
15109 a FORWARD_SCOPE_EXIT.
15110 (syms_from_objfile_1): Use the forward_scope_exit and
15111 gdb::optional instead of cleanup_function.
15112 (reread_symbols): Use the forward_scope_exit instead of
15113 cleanup_function.
15114 (clear_symtab_users_cleanup): Remove function.
15115
1db93f14
TT
151162019-01-23 Tom Tromey <tom@tromey.com>
15117 Pedro Alves <palves@redhat.com>
15118
15119 * linux-nat.c: Include scope-exit.h.
15120 (cleanup_target_stop): Remove.
15121 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15122 SCOPE_EXIT.
15123
2cc83d1e
TT
151242019-01-23 Tom Tromey <tom@tromey.com>
15125 Pedro Alves <palves@redhat.com>
15126
15127 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15128 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15129
694c6bf5
TT
151302019-01-23 Tom Tromey <tom@tromey.com>
15131 Andrew Burgess <andrew.burgess@embecosm.com>
15132 Pedro Alves <palves@redhat.com>
15133
15134 * infrun.c (fetch_inferior_event): Use scope_exit.
15135 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15136 * top.c (execute_command): Use scope_exit.
15137 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15138 * utils.c (do_bpstat_clear_actions_cleanup)
15139 (make_bpstat_clear_actions_cleanup): Remove.
15140
4c41382a
TT
151412019-01-23 Tom Tromey <tom@tromey.com>
15142 Pedro Alves <palves@redhat.com>
15143
15144 * infrun.c: Include "common/scope-exit.h"
15145 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15146 (wait_for_inferior): Use SCOPE_EXIT.
15147 (fetch_inferior_event): Use scope_exit.
15148
89f8fb50
TT
151492019-01-23 Tom Tromey <tom@tromey.com>
15150 Pedro Alves <palves@redhat.com>
15151
15152 * breakpoint.c (create_breakpoint): Remove cleanup.
15153
5419bdae
TT
151542019-01-23 Tom Tromey <tom@tromey.com>
15155 Andrew Burgess <andrew.burgess@embecosm.com>
15156 Pedro Alves <palves@redhat.com>
15157
e587ef42
PA
151582019-01-23 Pedro Alves <palves@redhat.com>
15159
15160 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15161
77f0e74c
PA
151622019-01-23 Pedro Alves <palves@redhat.com>
15163 Andrew Burgess <andrew.burgess@embecosm.com>
15164
15165 * gdbthread.h: Include "common/forward-scope-exit.h".
15166 (scoped_finish_thread_state): Redefine custom class in terms of
15167 forward_scope_exit.
15168
5b9b3e53
PA
151692019-01-23 Pedro Alves <palves@redhat.com>
15170 Andrew Burgess <andrew.burgess@embecosm.com>
15171
15172 * common/forward-scope-exit.h: New file.
15173
54b65c9b
PA
151742019-01-23 Pedro Alves <palves@redhat.com>
15175 Andrew Burgess <andrew.burgess@embecosm.com>
15176 Tom Tromey <tom@tromey.com>
15177
15178 * common/scope-exit.h: New file.
15179
cf08fb29
PA
151802019-01-23 Pedro Alves <palves@redhat.com>
15181
15182 * common/preprocessor.h (ESC): Rename to ...
15183 (ESC_PARENS): ... this.
15184 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15185 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15186
ae73e2e2
TT
151872019-01-23 Tom Tromey <tom@tromey.com>
15188
15189 * language.h (class scoped_switch_to_sym_language_if_auto):
15190 Initialize m_lang in both cases.
15191
6594e122
AH
151922019-01-23 Alan Hayward <alan.hayward@arm.com>
15193
15194 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15195 with XCNEW.
15196
a7c9855d
TT
151972019-01-22 Tom Tromey <tom@tromey.com>
15198
15199 * corelow.c: Do not include sys/file.h.
15200
93cc1d53
TT
152012019-01-22 Tom Tromey <tom@tromey.com>
15202
15203 * tui/tui-wingeneral.h: Include gdb_curses.h.
15204
38561778
TT
152052019-01-22 Tom Tromey <tom@tromey.com>
15206
15207 * source-cache.h (class source_cache) <get_source_lines,
15208 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15209
37b3ab5b
TT
152102019-01-22 Tom Tromey <tom@tromey.com>
15211
15212 * remote-fileio.h (struct remote_target): Declare.
15213
3fabc016
TT
152142019-01-22 Tom Tromey <tom@tromey.com>
15215
15216 * python/py-arch.c: Do not include py-ref.h.
15217 * python/py-bpevent.c: Do not include py-ref.h.
15218 * python/py-cmd.c: Do not include py-ref.h.
15219 * python/py-continueevent.c: Do not include py-ref.h.
15220 * python/py-event.h: Do not include py-ref.h.
15221 * python/py-evtregistry.c: Do not include py-ref.h.
15222 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15223 * python/py-frame.c: Do not include py-ref.h.
15224 * python/py-framefilter.c: Do not include py-ref.h.
15225 * python/py-function.c: Do not include py-ref.h.
15226 * python/py-infevents.c: Do not include py-ref.h.
15227 * python/py-linetable.c: Do not include py-ref.h.
15228 * python/py-objfile.c: Do not include py-ref.h.
15229 * python/py-param.c: Do not include py-ref.h.
15230 * python/py-prettyprint.c: Do not include py-ref.h.
15231 * python/py-progspace.c: Do not include py-ref.h.
15232 * python/py-symbol.c: Do not include py-ref.h.
15233 * python/py-symtab.c: Do not include py-ref.h.
15234 * python/py-type.c: Do not include py-ref.h.
15235 * python/py-unwind.c: Do not include py-ref.h.
15236 * python/py-utils.c: Do not include py-ref.h.
15237 * python/py-value.c: Do not include py-ref.h.
15238 * python/py-varobj.c: Do not include py-ref.h.
15239 * python/py-xmethods.c: Do not include py-ref.h.
15240 * python/python.c: Do not include py-ref.h.
15241 * varobj.c: Do not include py-ref.h.
15242
6b4d7774
TT
152432019-01-22 Tom Tromey <tom@tromey.com>
15244
15245 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15246 keyword for bcache.
15247
7af7e9b5
TT
152482019-01-22 Tom Tromey <tom@tromey.com>
15249
15250 * compile/compile-cplus-types.c: Remove a comment by #include.
15251
951d1049
TT
152522019-01-22 Tom Tromey <tom@tromey.com>
15253
15254 * compile/gcc-c-plugin.h: Include compile-internal.h.
15255
d65d5705
TT
152562019-01-22 Tom Tromey <tom@tromey.com>
15257
15258 * stabsread.c (EXTERN): Do not define.
15259 (symnum, next_symbol_text_func, processing_gcc_compilation)
15260 (within_function, global_sym_chain, global_stabs)
15261 (previous_stab_code, this_object_header_files)
15262 (n_this_object_header_files)
15263 (n_allocated_this_object_header_files): Define.
15264 * stabsread.h (EXTERN): Never define. Use "extern".
15265
b6fb1ee5
PW
152662019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15267
15268 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15269 history_value.
15270
be6d4f74
TT
152712019-01-21 Tom Tromey <tom@tromey.com>
15272
15273 * ui-out.c: Fix includes.
15274 * tui/tui-source.c: Fix includes.
15275 * target.c: Fix includes.
15276 * remote.c: Fix includes.
15277 * regcache.c: Fix includes.
15278 * python/py-block.c: Fix includes.
15279 * printcmd.c: Fix includes.
15280 * or1k-tdep.c: Fix includes.
15281 * mi/mi-main.c: Fix includes.
15282 * m32r-tdep.c: Fix includes.
15283 * csky-tdep.c: Fix includes.
15284 * compile/compile-cplus-types.c: Fix includes.
15285 * cli/cli-interp.c: Fix includes.
15286
73021deb
AH
152872019-01-21 Alan Hayward <alan.hayward@arm.com>
15288
15289 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15290 for padding.
15291
7932255d
TT
152922019-01-16 Tom Tromey <tom@tromey.com>
15293
15294 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15295 earlier.
15296 (struct objfile) <msymbols_range>: Move from top level.
15297 <msymbols>: New method.
15298 (class objfile_msymbols): Remove.
15299 * symtab.c (default_collect_symbol_completion_matches_break_on):
15300 Update.
15301 * symmisc.c (dump_msymbols): Update.
15302 * stabsread.c (scan_file_globals): Update.
15303 * objc-lang.c (info_selectors_command, info_classes_command)
15304 (find_methods): Update.
15305 * minsyms.c (find_solib_trampoline_target): Update.
15306 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15307 * coffread.c (coff_symfile_read): Update.
15308 * ada-lang.c (ada_lookup_simple_minsym)
15309 (ada_collect_symbol_completion_matches): Update.
15310
604b1bfb
TT
153112019-01-16 Tom Tromey <tom@tromey.com>
15312
15313 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15314 type. Remove no-argument constructor.
15315 <iterator::operator++>: Simplify.
15316 <begin>: Update.
15317 <end>: Use minimal_symbol_count.
15318
f252c6d5
TT
153192019-01-16 Tom Tromey <tom@tromey.com>
15320
15321 * objfiles.h (struct objfile) <psymtabs>: New method.
15322 (class objfile_psymtabs): Remove.
15323 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15324 typedef.
15325 <range>: New method.
15326 (require_partial_symbols): Change return type.
15327 * psymtab.c (require_partial_symbols)
15328 (psym_expand_symtabs_matching): Update.
15329 * mdebugread.c (parse_partial_symbols): Update.
15330 * dbxread.c (dbx_end_psymtab): Update.
15331
b669c953
TT
153322019-01-15 Tom Tromey <tom@tromey.com>
15333
15334 * symtab.c (lookup_objfile_from_block)
15335 (lookup_symbol_in_objfile_symtabs)
15336 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15337 (find_line_symtab, info_sources_command)
15338 (default_collect_symbol_completion_matches_break_on)
15339 (make_source_files_completion_list): Update.
15340 * symmisc.c (print_objfile_statistics, dump_objfile)
15341 (maintenance_print_symbols, maintenance_info_symtabs)
15342 (maintenance_check_symtabs, maintenance_info_line_tables):
15343 Update.
15344 * source.c (select_source_symtab)
15345 (forget_cached_source_info_for_objfile): Update.
15346 * objfiles.h (class objfile_compunits): Remove.
15347 (struct objfile) <compunits_range>: New typedef.
15348 (compunits): New method.
15349 * objfiles.c (objfile_relocate1): Update.
15350 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15351 * maint.c (count_symtabs_and_blocks): Update.
15352 * linespec.c (iterate_over_all_matching_symtabs): Update.
15353 * cp-support.c (add_symbol_overload_list_qualified): Update.
15354 * coffread.c (coff_symtab_read): Update.
15355 * ada-lang.c (add_nonlocal_symbols)
15356 (ada_collect_symbol_completion_matches)
15357 (ada_add_global_exceptions): Update.
15358
7e955d83
TT
153592019-01-15 Tom Tromey <tom@tromey.com>
15360
15361 * progspace.h (program_space) <objfiles_safe_range>: New
15362 typedef.
15363 <objfiles_safe>: New method.
15364 * objfiles.h (class all_objfiles_safe): Remove.
15365 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15366 * jit.c (jit_inferior_exit_hook): Update.
15367
2030c079
TT
153682019-01-17 Tom Tromey <tom@tromey.com>
15369
15370 * progspace.h (program_space) <objfiles_range>: New typedef.
15371 <objfiles>: New method.
15372 <objfiles_head>: Rename from objfiles.
15373 (object_files): Update.
15374 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15375 * guile/scm-pretty-print.c
15376 (ppscm_find_pretty_printer_from_objfiles): Update.
15377 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15378 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15379 Update.
15380 * python/py-progspace.c (pspy_get_objfiles): Update.
15381 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15382 Update.
15383 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15384 (objfpy_lookup_objfile_by_build_id): Update.
15385 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15386 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15387 Update.
15388 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15389 (expand_symtab_containing_pc, lookup_objfile_from_block)
15390 (lookup_static_symbol, basic_lookup_transparent_type)
15391 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15392 (find_line_symtab, info_sources_command)
15393 (default_collect_symbol_completion_matches_break_on)
15394 (make_source_files_completion_list, find_main_name): Update.
15395 * symmisc.c (print_symbol_bcache_statistics)
15396 (print_objfile_statistics, maintenance_print_symbols)
15397 (maintenance_print_msymbols, maintenance_print_objfiles)
15398 (maintenance_info_symtabs, maintenance_check_symtabs)
15399 (maintenance_expand_symtabs, maintenance_info_line_tables):
15400 Update.
15401 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15402 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15403 (map_overlay_command, unmap_overlay_command)
15404 (simple_overlay_update, expand_symtabs_matching)
15405 (map_symbol_filenames): Update.
15406 * symfile-debug.c (set_debug_symfile): Update.
15407 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15408 Update.
15409 * source.c (select_source_symtab, forget_cached_source_info):
15410 Update.
15411 * solib.c (solib_read_symbols): Update.
15412 * solib-spu.c (append_ocl_sos): Update.
15413 * psymtab.c (maintenance_print_psymbols)
15414 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15415 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15416 * printcmd.c (info_symbol_command): Update.
15417 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15418 Update.
15419 * objfiles.h (class all_objfiles): Remove.
15420 * objfiles.c (have_partial_symbols, have_full_symbols)
15421 (have_minimal_symbols, qsort_cmp, update_section_map)
15422 (shared_objfile_contains_address_p)
15423 (default_iterate_over_objfiles_in_search_order): Update.
15424 * objc-lang.c (info_selectors_command, info_classes_command)
15425 (find_methods): Update.
15426 * minsyms.c (find_solib_trampoline_target): Update.
15427 * maint.c (maintenance_info_sections)
15428 (maintenance_translate_address, count_symtabs_and_blocks):
15429 Update.
15430 * main.c (captured_main_1): Update.
15431 * linux-thread-db.c (try_thread_db_load_from_pdir)
15432 (has_libpthread): Update.
15433 * linespec.c (iterate_over_all_matching_symtabs)
15434 (search_minsyms_for_name): Update.
15435 * jit.c (jit_find_objf_with_entry_addr): Update.
15436 * hppa-tdep.c (find_unwind_entry)
15437 (hppa_lookup_stub_minimal_symbol): Update.
15438 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15439 Update.
15440 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15441 (elf_gnu_ifunc_resolve_by_got): Update.
15442 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15443 * dwarf-index-write.c (save_gdb_index_command): Update.
15444 * cp-support.c (add_symbol_overload_list_qualified): Update.
15445 * breakpoint.c (create_overlay_event_breakpoint)
15446 (create_longjmp_master_breakpoint)
15447 (create_std_terminate_master_breakpoint)
15448 (create_exception_master_breakpoint): Update.
15449 * blockframe.c (find_pc_partial_function): Update.
15450 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15451 (ada_collect_symbol_completion_matches)
15452 (ada_add_global_exceptions): Update.
15453
776489e0
TT
154542019-01-17 Tom Tromey <tom@tromey.com>
15455
15456 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15457 declare VEC.
15458 (solib_target_parse_libraries): Change return type.
15459 (library_list_start_segment, library_list_start_section)
15460 (library_list_end_library, library_list_start_library); Update.
15461 (solib_target_free_library_list): Remove.
15462 (solib_target_parse_libraries): Remove cleanup. Change return
15463 type.
15464 (solib_target_current_sos): Update.
15465
6471e7d2
TT
154662019-01-17 Tom Tromey <tromey@bapiya>
15467
15468 * valprint.c: Replace "the the" with "the".
15469 * symtab.c: Replace "the the" with "the".
15470 * solib.c: Replace "the the" with "the".
15471 * solib-dsbt.c: Replace "the the" with "the".
15472 * linespec.c: Replace "the the" with "the".
15473 * dwarf2loc.h: Replace "the the" with "the".
15474 * amd64-windows-tdep.c: Replace "the the" with "the".
15475 * aarch64-tdep.c: Replace "the the" with "the".
15476
c24bdb02
KS
154772019-01-16 Keith Seitz <keiths@redhat.com>
15478
15479 PR gdb/23773
15480 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15481 <builder>: Rename to ..
15482 <m_builder>: ... this and make private.
15483 (dwarf2_cu::get_builder): New method. Change all users of
15484 `builder' to use this method.
15485 (dwarf2_start_symtab): Move to ...
15486 (dwarf2_cu::start_symtab): ... here. Update all callers
15487 (setup_type_unit_groups): Move to ...
15488 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15489 callers.
15490 (dwarf2_cu::reset_builder): New method.
15491 (process_full_compunit, process_full_type_unit): Use
15492 dwarf2_cu::reset_builder.
15493 (follow_die_offset): Record the ancestor CU if it is different
15494 from the followed DIE's CU.
15495 (follow_die_sig_1): Likewise.
15496
8d64371b
TT
154972019-01-15 Tom Tromey <tom@tromey.com>
15498
15499 * remote.c (class remote_state) <buf>: Now a char_vector.
15500 <buf_size>: Remove.
15501 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15502 parameter.
15503 (remote_target::getpkt_or_notif_sane_1)
15504 (remote_target::getpkt_sane)
15505 (remote_target::getpkt_or_notif_sane): Likewise.
15506 (class remote_target) <putpkt>: New overload.
15507 (remote_target::read_frame): Change type of "buf_p". Remove
15508 sizeof_p parameter.
15509 (packet_ok): New overload.
15510 (packet_check_result): New overload.
15511 Update all uses.
15512
bb277751
TT
155132019-01-14 Tom Tromey <tom@tromey.com>
15514
15515 * remote-notif.c (handle_notification, remote_notif_ack)
15516 (remote_notif_parse): Make "buf" const.
15517 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15518 const.
15519 (remote_notif_parse, remote_notif_ack, handle_notification):
15520 Likewise.
15521 * remote.c (remote_notif_stop_parse): Make "buf" const.
15522 (remote_target::remote_parse_stop_reply): Make "buf" const.
15523 (remote_notif_stop_ack): Make "buf" const.
15524
05be00a8
TT
155252019-01-14 Tom Tromey <tom@tromey.com>
15526
15527 * remote.c (remote_console_output): Make parameter const.
15528
491adeca
TT
155292019-01-14 Tom Tromey <tom@tromey.com>
15530
15531 * target-debug.h (target_debug_print_signals): Constify.
15532 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15533 * procfs.c (procfs_target::pass_signals): Update.
15534 * linux-nat.c (linux_nat_target::pass_signals): Update.
15535 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15536 * target-delegates.c: Rebuild.
15537 * remote.c (remote_target::program_signals): Update.
15538 (remote_target::pass_signals): Update.
15539 * target.c (target_pass_signals): Constify argument.
15540 (target_program_signals): Likewise.
15541 * target.h (struct target_ops) <pass_signals, program_signals>:
15542 Constify argument.
15543 (target_pass_signals, target_program_signals): Constify argument.
15544
bbd94648
TT
155452019-01-14 Tom Tromey <tom@tromey.com>
15546
15547 PR tui/28819:
15548 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15549
6f072a10
PFC
155502019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15551
15552 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15553 field.
15554 * rs6000-tdep.c: Include reggroups.h.
15555 (IS_V_ALIAS_PSEUDOREG): Define.
15556 (rs6000_register_name): Return names for the "vX" aliases.
15557 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15558 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15559 aliases. Call default_register_reggroup_p for all other
15560 pseudo-registers.
15561 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15562 New functions.
15563 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15564 Handle "vX" aliases.
15565 (v_alias_pseudo_register_collect): New function.
15566 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15567 (rs6000_gdbarch_init): Initialize "vX" aliases as
15568 pseudo-registers. Restore registration of
15569 rs6000_pseudo_register_reggroup_p with
15570 set_tdesc_pseudo_register_reggroup_p.
15571
1a782351
MF
155722019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15573
15574 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15575 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15576 set_gdbarch_num_pseudo_regs.
15577
d73cff18
PW
155782019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15579
15580 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15581 Remove arg prefixname, add do_set and do_show.
15582 Add member functions set_list and show_list.
15583 * cli/cli-style.c (class cli_style_option): Update accordingly.
15584 (style_set_list): Move to file scope.
15585 (style_show_list): Likewise.
15586 (set_style): Call help_list.
15587 (show_style): Call cmd_show_list.
15588 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15589 Update to use the new macro.
15590
60a90376
JB
155912019-10-12 Joel Brobecker <brobecker@adacore.com>
15592
15593 * ada-lang.c (_initialize_ada_language): Expand the help text
15594 for the "catch exception" command.
15595
9d7c67bf
PW
155962019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15597
15598 * symtab.c (matching_obj_sections): Initialize obj,
15599 declare it closer to its usage.
15600
7cf47dc4
TT
156012019-01-10 Tom Tromey <tom@tromey.com>
15602
15603 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15604 (basic_inf_threads_range): Remove.
15605 (inf_threads_range, inf_non_exited_threads_range)
15606 (safe_inf_threads_range): Use next_adapter.
15607
d3cb6808
KS
156082019-01-10 Keith Seitz <keiths@redhat.com>
15609
15610 PR gdb/23712
15611 PR symtab/23010
15612 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15613 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15614
63a20375
KS
156152019-01-10 Keith Seitz <keiths@redhat.com>
15616
15617 PR gdb/23712
15618 PR symtab/23010
15619 * dictionary.c (pending_to_vector): Remove.
15620 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15621 Remove _1 suffix, replacing functions of the same name. Update
15622 all callers.
15623 (dict_create_hashed, dict_create_hashed_expandable)
15624 (dict_create_linear, dict_create_linear_expandable, dict_free)
15625 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15626 Make functions static.
15627
b026f593
KS
156282019-01-10 Keith Seitz <keiths@redhat.com>
15629
15630 PR gdb/23712
15631 PR symtab/23010
15632 * dictionary.h (struct dictionary): Replace declaration with
15633 multidictionary.
15634 (dict_create_hashed, dict_create_hashed_expandable)
15635 (dict_create_linear, dict_create_linear_expandable)
15636 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15637 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15638 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15639 taking multidictionary argument.
15640 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15641 * block.h (struct block) <dict>: Change to multidictionary
15642 and rename `multidict'.
15643 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15644 symmisc.c: Update all dictionary references to multidictionary.
15645
c7748ee9
KS
156462019-01-10 Keith Seitz <keiths@redhat.com>
15647
15648 PR gdb/23712
15649 PR symtab/23010
15650 * dictionary.c: Include unordered_map.
15651 (pending_to_vector): New function.
15652 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15653 Rewrite the non-"_1" functions to take vector instead
15654 of linked list.
15655 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15656 "new" _1 versions of the same name.
15657 (multidictionary): Define.
15658 (std::hash<enum language): New definition.
15659 (collate_pending_symbols_by_language, mdict_create_hashed)
15660 (mdict_create_hashed_expandable, mdict_create_linear)
15661 (mdict_create_linear_expandable, mdict_free)
15662 (find_language_dictionary, create_new_language_dictionary)
15663 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15664 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15665 (mdict_size, mdict_empty): New functions.
15666 * dictionary.h (mdict_iterator): Define.
15667
67aa1f3c
PA
156682019-01-10 Pedro Alves <palves@redhat.com>
15669
15670 * breakpoint.c (read_uploaded_action)
15671 (create_tracepoint_from_upload): Adjust to use
15672 gdb::unique_xmalloc_ptr.
15673 * ctf.c (ctf_write_uploaded_tp):
15674 (SET_ARRAY_FIELD): Use emplace_back.
15675 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15676 * tracefile-tfile.c (tfile_write_uploaded_tp):
15677 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15678 gdb::unique_xmalloc_ptr.
15679 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15680 at_string, cond_string, cmd_strings>: Replace char pointers
15681 with gdb::unique_xmalloc_ptr.
15682
2f667667
PA
156832019-01-10 Pedro Alves <palves@redhat.com>
15684
15685 * solib-target.c (library_list_start_library): Don't xstrdup name.
15686
36cb7237
PA
156872019-01-10 Pedro Alves <palves@redhat.com>
15688
15689 * mdebugread.c (parse_partial_symbols): Use
15690 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15691
da584958
AB
156922019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15693
15694 * linux-fork.c (scoped_switch_fork_info)
15695 <~scoped_switch_fork_info>: Fix incorrect variable name.
15696
1ef8573c
AB
156972019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15698
15699 * linux-fork.c (scoped_switch_fork_info)
15700 <scoped_switch_fork_info>: Make explicit.
15701 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15702
8d7bcccb
TT
157032019-01-10 Tom Tromey <tom@tromey.com>
15704
15705 * objfiles.h (objfile::reset_psymtabs): Update.
15706 * objfiles.c (objfile::objfile): Update.
15707 * psymtab.h (psymtab_storage::obstack): Update.
15708 (psymtab_storage::m_obstack): Use gdb::optional.
15709 (class psymtab_storage): Update comment. Remove objfile
15710 parameter.
15711 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15712
b596a3c7
TT
157132019-01-10 Tom Tromey <tom@tromey.com>
15714
15715 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15716 <free_psymtabs>: Now private.
15717 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15718 (allocate_psymtab): Use new method.
15719
a9342b62
TT
157202019-01-10 Tom Tromey <tom@tromey.com>
15721
15722 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15723 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15724 * mdebugread.c (parse_partial_symbols): Use
15725 allocate_dependencies.
15726 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15727 allocate_dependencies.
15728 (process_psymtab_comp_unit_reader)
15729 (build_type_psymtab_dependencies): Likewise.
15730 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15731
5af70966
TT
157322019-01-10 Tom Tromey <tom@tromey.com>
15733
15734 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15735 PSYMBOL_SET_LANGUAGE.
15736 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15737
5923a04c
TT
157382019-01-10 Tom Tromey <tom@tromey.com>
15739
15740 * psymtab.h (psymtab_storage::obstack): New method.
15741 <m_obstack>: Rename from obstack; now private.
15742 * psymtab.c (psymtab_storage): Update.
15743 * dwarf2read.c (create_addrmap_from_index)
15744 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15745 Update.
15746
6d6a12bf
TT
157472019-01-10 Tom Tromey <tom@tromey.com>
15748
15749 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15750 * objfiles.h (objfile::reset_psymtabs): New method.
15751
d320c2b5
TT
157522019-01-10 Tom Tromey <tom@tromey.com>
15753
15754 * symmisc.c (print_symbol_bcache_statistics): Update.
15755 (print_objfile_statistics): Update.
15756 * symfile.c (reread_symbols): Update.
15757 * psymtab.h (class psymtab_storage): New.
15758 * psymtab.c (psymtab_storage): New constructor.
15759 (~psymtab_storage): New destructor.
15760 (require_partial_symbols): Update.
15761 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15762 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15763 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15764 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15765 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15766 (start_psymtab_common, end_psymtab_common)
15767 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15768 (allocate_psymtab): Update.
15769 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15770 Update.
15771 (dump_psymtab_addrmap, maintenance_print_psymbols)
15772 (maintenance_check_psymtabs): Update.
15773 (class objfile_psymtabs): Move to objfiles.h.
15774 * psympriv.h (discard_psymtab): Now inline.
15775 (psymtab_discarder::psymtab_discarder): Update.
15776 (psymtab_discarder::~psymtab_discarder): Update.
15777 (ALL_OBJFILE_PSYMTABS): Rewrite.
15778 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15779 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15780 Remove fields.
15781 <partial_symtabs>: New field.
15782 (class objfile_psymtabs): Move from psymtab.h. Update.
15783 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15784 psymbol_cache.
15785 (objfile::~objfile): Don't destroy psymbol_cache.
15786 * mdebugread.c (parse_partial_symbols): Update.
15787 * dwarf2read.c (create_addrmap_from_index)
15788 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15789 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15790 (add_partial_subprogram, dwarf2_ranges_read): Update.
15791 * dwarf-index-write.c (write_address_map)
15792 (write_one_signatured_type, recursively_write_psymbols)
15793 (class debug_names, class debug_names, write_psymtabs_to_index):
15794 Update.
15795
1d94a5a3
TT
157962019-01-10 Tom Tromey <tom@tromey.com>
15797
15798 * symtab.h (SYMBOL_SET_NAMES): Update.
15799 (symbol_set_names): Update.
15800 (MSYMBOL_SET_NAMES): Update.
15801 * symtab.c (symbol_set_names): Change argument to be an
15802 objfile_per_bfd_storage.
15803 * psymtab.c (add_psymbol_to_bcache): Update.
15804 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15805
0f14768a
TT
158062019-01-10 Tom Tromey <tom@tromey.com>
15807
15808 * symtab.c (create_demangled_names_hash): Change argument to be an
15809 objfile_per_bfd_storage.
15810 (symbol_set_names): Update.
15811
6eee24ce
TT
158122019-01-10 Tom Tromey <tom@tromey.com>
15813
15814 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15815 init_psymbol_list.
15816 * psymtab.c (init_psymbol_list): Do nothing if already called.
15817 * psympriv.h (init_psymbol_list): Add comment.
15818 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15819 init_psymbol_list.
15820 * dbxread.c (dbx_symfile_read): Unconditionally call
15821 init_psymbol_list.
15822
75aedd27
TT
158232019-01-10 Tom Tromey <tom@tromey.com>
15824
15825 * xcoffread.c (scan_xcoff_symtab): Update.
15826 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15827 "where".
15828 * mdebugread.c (parse_partial_symbols)
15829 (handle_psymbol_enumerators): Update.
15830 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15831 * dbxread.c (read_dbx_symtab): Update.
15832 * psympriv.h (psymbol_placement): New enum.
15833 (add_psymbol_to_list): Update.
15834
939652a5
TT
158352019-01-10 Tom Tromey <tom@tromey.com>
15836
15837 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15838 static_psymbols parameters.
15839 (scan_xcoff_symtab): Update.
15840 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15841 static_psymbols parameters.
15842 * psympriv.h (start_psymtab_common): Update.
15843 * mdebugread.c (parse_partial_symbols): Update.
15844 * dwarf2read.c (create_partial_symtab): Update.
15845 * dbxread.c (read_dbx_symtab): Update.
15846 (start_psymtab): Remove global_psymbols and static_psymbols
15847 parameters.
15848
baa62830
TT
158492019-01-10 Tom Tromey <tom@tromey.com>
15850
15851 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15852 * psymtab.c (allocate_psymtab): Add comment.
15853 * psympriv.h (allocate_psymtab): Add comment.
15854 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15855 initializations.
15856 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15857
0e8f53ba
TT
158582019-01-10 Tom Tromey <tom@tromey.com>
15859
15860 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15861 Don't declare.
15862 * mipsread.c: Include mdebugread.h.
15863 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15864 Declare.
15865 * elfread.c: Include mdebugread.h.
15866
b22a7c6a
TT
158672019-01-09 Tom Tromey <tom@tromey.com>
15868
15869 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15870 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15871 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15872 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15873 (psym_lookup_symbol, psym_find_last_source_symtab)
15874 (psym_forget_cached_source_info, psym_print_stats)
15875 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15876 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15877 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15878 (psym_find_compunit_symtab_by_address)
15879 (maintenance_print_psymbols, maintenance_info_psymtabs)
15880 (maintenance_check_psymtabs): Use ranged for.
15881 * psymtab.h (class objfile_psymtabs): New.
15882 (require_partial_symbols): Return objfile_psymtabs.
15883 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15884
3b9d3ac2
TT
158852019-01-09 Tom Tromey <tom@tromey.com>
15886
15887 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15888 (find_pc_mapped_section, list_overlays_command)
15889 (map_overlay_command, unmap_overlay_command)
15890 (simple_overlay_update): Use all_objfiles.
15891 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15892 * printcmd.c (info_symbol_command): Use all_objfiles.
15893 * objfiles.h (ALL_OBJSECTIONS): Remove.
15894 * maint.c (maintenance_translate_address): Use all_objfiles.
15895 * gcore.c (gcore_create_callback): Use all_objfiles.
15896 (objfile_find_memory_regions): Likewise.
15897
8b31193a
TT
158982019-01-09 Tom Tromey <tom@tromey.com>
15899
15900 * symtab.c (find_line_symtab, info_sources_command)
15901 (make_source_files_completion_list): Use objfile_compunits.
15902 * source.c (select_source_symtab): Use objfile_compunits.
15903 * objfiles.h (struct objfile): Update comment.
15904 (ALL_OBJFILES): Remove.
15905 (ALL_FILETABS): Remove.
15906 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15907 objfile_compunits.
15908
d5da8b3c
TT
159092019-01-09 Tom Tromey <tom@tromey.com>
15910
15911 * symmisc.c (print_objfile_statistics, dump_objfile)
15912 (maintenance_print_symbols): Use compunit_filetabs.
15913 * source.c (forget_cached_source_info_for_objfile): Use
15914 compunit_filetabs.
15915 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15916 (ALL_FILETABS): Use compunit_filetabs.
15917 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15918 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15919
5accd1a0
TT
159202019-01-09 Tom Tromey <tom@tromey.com>
15921
15922 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15923 (compunit_filetabs): New.
15924 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15925 compunit_filetabs.
15926 (info_sources_command, make_source_files_completion_list): Remove
15927 declaration.
15928 * symmisc.c (print_objfile_statistics, dump_objfile)
15929 (maintenance_print_symbols): Remove declaration.
15930 (maintenance_info_symtabs): Use compunit_filetabs.
15931 (maintenance_info_line_tables): Likewise.
15932 * source.c (select_source_symtab): Change local variable name.
15933 (forget_cached_source_info_for_objfile): Remove declaration.
15934 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15935 * objfiles.c (objfile_relocate1): Remove declaration.
15936 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15937 declaration.
15938 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15939 * coffread.c (coff_symtab_read): Remove declaration.
15940 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15941 compunit_filetabs.
15942
d8aeb77f
TT
159432019-01-09 Tom Tromey <tom@tromey.com>
15944
15945 * symtab.c (lookup_objfile_from_block)
15946 (find_pc_sect_compunit_symtab, search_symbols)
15947 (default_collect_symbol_completion_matches_break_on): Use
15948 objfile_compunits.
15949 * objfiles.h (ALL_COMPUNITS): Remove.
15950 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15951 * cp-support.c (add_symbol_overload_list_qualified): Use
15952 objfile_compunits.
15953 * ada-lang.c (ada_collect_symbol_completion_matches)
15954 (ada_add_global_exceptions): Use objfile_compunits.
15955
592553c4
TT
159562019-01-09 Tom Tromey <tom@tromey.com>
15957
15958 * source.c (select_source_symtab)
15959 (forget_cached_source_info_for_objfile): Remove declaration.
15960 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15961 declaration.
15962 * maint.c (count_symtabs_and_blocks): Remove declaration.
15963 * cp-support.c (add_symbol_overload_list_qualified): Remove
15964 declaration.
15965 * coffread.c (coff_symtab_read): Remove declaration.
15966 * symtab.c (lookup_symbol_in_objfile_symtabs)
15967 (basic_lookup_transparent_type_1): Use objfile_compunits.
15968 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15969 (info_sources_command, search_symbols)
15970 (default_collect_symbol_completion_matches_break_on)
15971 (make_source_files_completion_list): Remove declaration.
15972 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15973 (ada_collect_symbol_completion_matches)
15974 (ada_add_global_exceptions): Remove declaration.
15975 * linespec.c (iterate_over_all_matching_symtabs): Use
15976 objfile_compunits.
15977 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15978 (class objfile_compunits): New.
15979 (ALL_COMPUNITS): Use objfile_compunits.
15980 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15981 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15982 objfile_compunits.
15983 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15984
5325b9bf
TT
159852019-01-09 Tom Tromey <tom@tromey.com>
15986
15987 * symtab.c (search_symbols)
15988 (default_collect_symbol_completion_matches_break_on): Use
15989 objfile_msymbols.
15990 * ada-lang.c (ada_lookup_simple_minsym)
15991 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15992 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15993 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15994 objfile_msymbols.
15995 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15996 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15997 * objc-lang.c (find_methods): Use objfile_msymbols.
15998 (info_selectors_command, info_classes_command): Likewise.
15999 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16000 * objfiles.h (class objfile_msymbols): New.
16001 (ALL_OBJFILE_MSYMBOLS): Remove.
16002 (ALL_MSYMBOLS): Remove.
16003
cac85af2
TT
160042019-01-09 Tom Tromey <tom@tromey.com>
16005
16006 * common/next-iterator.h (next_adapter): Add Iterator template
16007 parameter.
16008 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16009 (class all_objfiles_safe): New.
16010 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16011 * objfiles.c (put_objfile_before): Update comment.
16012 (add_separate_debug_objfile): Likewise.
16013 (free_all_objfiles): Use all_objfiles_safe.
16014 (objfile_purge_solibs): Likewise.
16015
aed57c53
TT
160162019-01-09 Tom Tromey <tom@tromey.com>
16017
16018 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16019 (expand_symtab_containing_pc, lookup_static_symbol)
16020 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16021 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16022 all_objfiles.
16023 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16024 * breakpoint.c (create_overlay_event_breakpoint)
16025 (create_longjmp_master_breakpoint)
16026 (create_std_terminate_master_breakpoint)
16027 (create_exception_master_breakpoint): Use all_objfiles.
16028 * linux-thread-db.c (try_thread_db_load_from_pdir)
16029 (has_libpthread): Use all_objfiles.
16030 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16031 * linespec.c (iterate_over_all_matching_symtabs)
16032 (search_minsyms_for_name): Use all_objfiles.
16033 * maint.c (maintenance_info_sections): Use all_objfiles.
16034 * main.c (captured_main_1): Use all_objfiles.
16035 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16036 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16037 * guile/scm-pretty-print.c
16038 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16039 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16040 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16041 (maintenance_print_msymbols): Use all_objfiles.
16042 * source.c (select_source_symtab): Use all_objfiles.
16043 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16044 * symfile.c (remove_symbol_file_command)
16045 (expand_symtabs_matching, map_symbol_filenames): Use
16046 all_objfiles.
16047 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16048 all_objfiles.
16049 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16050 * objc-lang.c (find_methods): Use all_objfiles.
16051 * objfiles.c (have_partial_symbols, have_full_symbols)
16052 (have_minimal_symbols, qsort_cmp)
16053 (default_iterate_over_objfiles_in_search_order): Use
16054 all_objfiles.
16055 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16056 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16057 (maintenance_check_psymtabs): Use all_objfiles.
16058 (ALL_PSYMTABS): Remove.
16059 * compile/compile-object-run.c (do_module_cleanup): Use
16060 all_objfiles.
16061 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16062 * cp-support.c (add_symbol_overload_list_qualified): Use
16063 all_objfiles.
16064 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16065 Use all_objfiles.
16066 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16067 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16068 all_objfiles.
16069 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16070 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16071 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16072 Uses all_objfiles.
16073 * solib.c (solib_read_symbols): Use all_objfiles
16074
99d89cde
TT
160752019-01-09 Tom Tromey <tom@tromey.com>
16076
16077 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16078 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16079 all_objfiles.
16080 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16081 * symmisc.c (print_symbol_bcache_statistics)
16082 (print_objfile_statistics, maintenance_print_objfiles)
16083 (maintenance_info_symtabs, maintenance_check_symtabs)
16084 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16085 all_objfiles.
16086 * source.c (forget_cached_source_info): Use all_objfiles.
16087 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16088 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16089 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16090 * objfiles.c (update_section_map): Use all_objfiles.
16091 (shared_objfile_contains_address_p): Likewise.
16092 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16093 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16094
21708325
TT
160952019-01-09 Tom Tromey <tom@tromey.com>
16096
16097 * common/next-iterator.h: New file.
16098 * objfiles.h (class all_objfiles): New.
16099 (struct objfile_iterator): New.
16100
669e09f6
PW
161012019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16102
16103 * NEWS: Move the description of the changed "frame", "select-frame",
16104 and "info frame" commands to the Changed commands section.
16105
041be526
SM
161062019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16107
16108 * gdbtypes.c (check_stub_method_group): Remove handling of old
16109 mangling schemes.
16110 * linespec.c (find_methods): Likewise.
16111 * stabsread.c (read_member_functions): Likewise.
16112 * valops.c (search_struct_method): Likewise.
16113 (value_struct_elt_for_reference): Likewise.
16114 * NEWS: Mention this change.
16115
0e2a2133
AB
161162019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16117
16118 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16119 print_source_lines.
16120 * source.c (print_source_lines_base): Update line number check.
16121 (print_source_lines): New function.
16122 (source_lines_range::source_lines_range): New function.
16123 * source.h (class source_lines_range): New class.
16124 (print_source_lines): New declaration.
16125
1055a3b4
PW
161262019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16127
16128 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16129
cfeadda5
TT
161302019-01-08 Tom Tromey <tom@tromey.com>
16131 Simon Marchi <simon.marchi@ericsson.com>
16132
16133 PR gdb/24060
16134 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16135 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16136 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16137 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16138 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16139 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16140
583068ca
AB
161412019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16142
16143 * source.c (select_source_symtab): Move header comment to
16144 declaration in source.h.
16145 (forget_cached_source_info_for_objfile): Likewise.
16146 (forget_cached_source_info): Likewise.
16147 (identify_source_line): Likewise.
16148 * source.h (identify_source_line): Move declaration from symtab.h
16149 and add comment from source.c
16150 (print_source_lines): Likewise.
16151 (forget_cached_source_info_for_objfile): Likewise.
16152 (forget_cached_source_info): Likewise.
16153 (select_source_symtab): Likewise.
16154 (enum print_source_lines_flag): Move definition from symtab.h.
16155 * symtab.h (identify_source_line): Move declaration to source.h.
16156 (print_source_lines): Likewise.
16157 (forget_cached_source_info_for_objfile): Likewise.
16158 (forget_cached_source_info): Likewise.
16159 (select_source_symtab): Likewise.
16160 (enum print_source_lines_flag): Move definition to source.h.
16161 * tui/tui-hooks.c: Add 'source.h' include.
16162
ec98a4ad
AB
161632019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16164
16165 * source.c (print_source_lines_base): Handle requests to print
16166 reverse line number sequences, and guard against empty lines
16167 string.
16168
62ea19c1
AB
161692019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16170
16171 * source.c (print_source_lines_base): Fix skip of '\r' if next
16172 character is '\n'.
16173
9d30e1fd
TT
161742019-01-06 Tom Tromey <tom@tromey.com>
16175
16176 * c-exp.y (struct c_parse_state) <macro_original_text,
16177 expansion_obstack>: New member.
16178 (macro_original_text, expansion_obstack): Remove globals.
16179 (scan_macro_expansion, scanning_macro_expansion)
16180 (finished_macro_expansion): Update.
16181 (scan_macro_cleanup): Remove.
16182 (yylex, c_parse): Update.
16183
c65bac38
TT
161842019-01-06 Tom Tromey <tom@tromey.com>
16185
16186 * c-exp.y (struct c_parse_state) <strings>: New member.
16187 (operator_stoken): Update.
16188
02e12e38
TT
161892019-01-06 Tom Tromey <tom@tromey.com>
16190
16191 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16192 (union type_stack_elt) <typelist_val>: Now a pointer to
16193 std::vector.
16194 (type_stack_cleanup): Don't declare.
16195 (push_typelist): Update.
16196 * parse.c (pop_typelist): Return a std::vector.
16197 (push_typelist): Take a std::vector.
16198 (follow_types): Update. Do not free args.
16199 (type_stack_cleanup): Remove.
16200 * c-exp.y (struct c_parse_state): New.
16201 (cpstate): New global.
16202 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16203 (nonempty_typelist): Update.
16204 (func_mod): Create a new vector.
16205 (c_parse): Create a c_parse_state.
16206 (check_parameter_typelist): Do not delete params.
16207 (function_method): Update. Do not delete type_list.
16208
f097f5ad
TT
162092019-01-06 Tom Tromey <tom@tromey.com>
16210
16211 PR gdb/28155:
16212 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16213 check_typedef.
16214 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16215 (print_return_value): Likewise.
16216
d2adf9f1
TT
162172019-01-05 Tom Tromey <tom@tromey.com>
16218
16219 * contrib/cleanup_check.py: Remove.
16220 * contrib/gcc-with-excheck: Remove.
16221 * contrib/exsummary.py: Remove.
16222 * contrib/excheck.py: Remove.
16223
2eab46b1
JB
162242019-01-05 Joel Brobecker <brobecker@adacore.com>
16225
16226 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16227 NULL. Initialize tpprev to NULL instead of assigning it
16228 to NULL on the next statement.
16229 * windows-nat.c (windows_delete_thread): Remove check for
16230 main_thread_id before printing thread exit notifications.
16231 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16232 Remove thread ID check against main_thread_id.
16233 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16234 windows_delete_thread.
16235 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16236
48c5e7e2
TT
162372019-01-04 Tom Tromey <tom@tromey.com>
16238
16239 * compile/compile.c (_initialize_compile): Use upper case for
16240 metasyntactic variables.
16241 * symmisc.c (_initialize_symmisc): Use upper case for
16242 metasyntactic variables.
16243 * psymtab.c (_initialize_psymtab): Use upper case for
16244 metasyntactic variables.
16245 * demangle.c (demangle_command): Use upper case for metasyntactic
16246 variables.
16247 (_initialize_demangler): Likewise.
16248 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16249 variables.
16250
986041cd
TT
162512019-01-03 Tom Tromey <tom@tromey.com>
16252
16253 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16254
7c711119
TT
162552019-01-03 Tom Tromey <tom@tromey.com>
16256
16257 * python/py-symtab.c (salpy_str): Update.
16258 (struct salpy_sal_object) <symtab>: Now a PyObject.
16259 (salpy_dealloc): Update.
16260 (del_objfile_sal): Use gdbpy_ref.
16261
1b20edf0
TT
162622019-01-03 Tom Tromey <tom@tromey.com>
16263
16264 * python/py-type.c (convert_field): Use new_reference. Return
16265 gdbpy_ref.
16266 (make_fielditem): Return gdbpy_ref.
16267 (typy_fields): Update.
16268 (typy_getitem): Update.
16269 (field_name): Return gdbpy_ref. Use new_reference.
16270 (typy_iterator_iternext): Update.
16271
ea41325b
TT
162722019-01-03 Tom Tromey <tom@tromey.com>
16273
16274 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16275
2a3c71d6
TT
162762019-01-03 Tom Tromey <tom@tromey.com>
16277
16278 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16279 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16280 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16281 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16282 (pspy_set_type_printers): Likewise.
16283 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16284 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16285 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16286 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16287 (objfpy_set_type_printers): Likewise.
16288
5c329e6a
TT
162892019-01-03 Tom Tromey <tom@tromey.com>
16290
16291 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16292 (gdbpy_print_stack): Use gdbpy_err_fetch.
16293 * python/python-internal.h (class gdbpy_err_fetch): New class.
16294 (class gdbpy_enter) <m_error_type, m_error_value,
16295 m_error_traceback>: Remove.
16296 <m_error>: New member.
16297 (gdbpy_exception_to_string): Don't declare.
16298 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16299 * python/py-value.c (convert_value_from_python): Use
16300 gdbpy_err_fetch.
16301 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16302 gdbpy_exception_to_string.
16303 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16304 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16305 gdbpy_err_fetch.
16306
169bb27b
AB
163072019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16308
16309 * linux-nat.c (delete_lwp_cleanup): Delete.
16310 (struct lwp_deleter): New struct.
16311 (lwp_info_up): New typedef.
16312 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16313 lwp_info_up.
16314
a07c8880
AB
163152019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16316
16317 * linux-fork.c (class scoped_switch_fork_info): New class.
16318 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16319
26089c49
AB
163202019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16321
16322 * valops.c (find_overload_match): Remove use of null_cleanup, and
16323 calls to do_cleanups.
16324
06d3e5b0
AB
163252019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16326
16327 * compile/compile-cplus-types.c
16328 (compile_cplus_instance::decl_name): Handle changes to
16329 cp_func_name.
16330 * cp-support.c (cp_func_name): Update header comment, update
16331 return type.
16332 * cp-support.h (cp_func_name): Update return type in declaration.
16333 * valops.c (find_overload_match): Move temp_func local to top
16334 level of function and change its type. Use temp_func to hold and
16335 delete temporary string obtained from cp_func_name.
16336
66644cd3
AB
163372019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16338
16339 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16340 gdb::char_vector, remove cleanup, and update uses of `msg`.
16341
592d8c0a
JW
163422019-01-03 Jim Wilson <jimw@sifive.com>
16343
16344 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16345
c55d06ec
TT
163462019-01-02 Tom Tromey <tom@tromey.com>
16347
16348 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16349 (tdesc_parse_xml): Remove cleanups.
16350 * target-descriptions.h (make_cleanup_free_target_description):
16351 Don't declare.
16352 (target_desc_deleter): New struct.
16353 (target_desc_up): New typedef.
16354 * target-descriptions.c (target_desc_deleter::operator()): Rename
16355 from free_target_description.
16356 (make_cleanup_free_target_description): Remove.
16357
3a6ae42d
TT
163582019-01-02 Tom Tromey <tom@tromey.com>
16359
16360 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16361 constructor, destructor.
16362 (linespec_parser): Remove typedef.
16363 (~linespec_parser): Rename from linespec_parser_delete.
16364 (linespec_lex_to_end, linespec_complete_label)
16365 (linespec_complete): Update.
16366 (decode_line_full): Remove cleanups.
16367 (decode_line_1): Update.
16368
61fd3e73
TT
163692019-01-02 Tom Tromey <tom@tromey.com>
16370
16371 * python/python-internal.h (inferior_to_inferior_object): Change
16372 return type.
16373 * python/py-exitedevent.c (create_exited_event_object): Update.
16374 * python/py-inferior.c (inferior_to_inferior_object): Return
16375 gdbpy_ref.
16376 (python_new_inferior, python_inferior_deleted)
16377 (thread_to_thread_object, delete_thread_object)
16378 (build_inferior_list, gdbpy_selected_inferior): Update.
16379 * python/py-infthread.c (create_thread_object): Update. Also fail
16380 if inferior_to_inferior_object fails.
16381
d20172fc
SM
163822019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16383
16384 * inferior.h (class inferior) <displaced_step_state>: New field.
16385 * infrun.h (struct displaced_step_state): Move here from
16386 infrun.c. Initialize fields, add constructor.
16387 <inf>: Remove field.
16388 <reset>: New method.
16389 * infrun.c (struct displaced_step_inferior_state): Move to
16390 infrun.h.
16391 (displaced_step_inferior_states): Remove.
16392 (get_displaced_stepping_state): Adust.
16393 (displaced_step_in_progress_any_inferior): Adjust.
16394 (displaced_step_in_progress_thread): Adjust.
16395 (displaced_step_in_progress): Adjust.
16396 (add_displaced_stepping_state): Remove.
16397 (get_displaced_step_closure_by_addr): Adjust.
16398 (remove_displaced_stepping_state): Remove.
16399 (infrun_inferior_exit): Call displaced_step_state.reset.
16400 (use_displaced_stepping): Don't check for NULL.
16401 (displaced_step_prepare_throw): Call
16402 get_displaced_stepping_state.
16403 (displaced_step_fixup): Don't check for NULL.
16404 (prepare_for_detach): Don't check for NULL.
16405
e3319240
PW
164062019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16407
16408 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16409 in case of call that did not complete.
16410
5d36dfb9
AU
164112019-01-02 Andrey Utkin <autkin@undo.io>
16412
16413 * symfile.c (find_separate_debug_file): Fix search of debug files for
16414 remote debuggee.
16415
8833fbf0
TT
164162019-01-02 Tom Tromey <tom@tromey.com>
16417
16418 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16419 indentation.
16420 * python/py-frame.c (frapy_older): Remove cast.
16421 (frapy_newer): Likewise.
16422 * python/py-breakpoint.c (local_setattro): Remove cast.
16423 * python/py-arch.c (archpy_name): Remove local variable.
16424 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16425
4ada3dfd
JB
164262019-01-02 Joel Brobecker <brobecker@adacore.com>
16427
16428 * unittests/basic_string_view/element_access/char/empty.cc:
16429 Fix year range in copyright header.
16430
113b7b81
AB
164312019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16432
16433 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16434 Delete.
16435 <operator==>: Update with for removed field.
16436 <hash>: Likewise.
16437 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16438 <isa_features>: ...this.
16439 <abi_features>: New field.
16440 (riscv_isa_flen): Update comment.
16441 (riscv_abi_xlen): New declaration.
16442 (riscv_abi_flen): New declaration.
16443 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16444 isa_features.
16445 (riscv_abi_xlen): New function.
16446 (riscv_isa_flen): Update to get answer from isa_features.
16447 (riscv_abi_flen): New function.
16448 (riscv_has_fp_abi): Update to get answer from abi_features.
16449 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16450 xlen and flen.
16451 (riscv_call_info) <xlen, flen>: Update comment.
16452 (riscv_call_arg_struct): Remove invalid assertions
16453 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16454 is removed.
16455 (riscv_gdbarch_init): Gather isa features and abi features
16456 separately, ensure both match on the gdbarch when reusing an old
16457 gdbarch. Relax an error check to allow 32-bit abi float to run on
16458 a target with 64-bit float hardware.
16459
b18ca514
PW
164602019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16461
16462 * source.c (search_command_helper): Stop reverse search
16463 when line 1 has been searched.
16464
ec70d8db
PW
164652019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16466
16467 * record-full.c (record_full_base_target::close): Rewrite
16468 record_full_core_buf_list free logic.
16469
5b38f9c1
PW
164702019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16471
16472 * break-catch-syscall.c (print_one_catch_syscall): xfree
16473 the last text.
16474
66d91b39
JB
164752019-01-01 Joel Brobecker <brobecker@adacore.com>
16476
16477 * top.c (print_gdb_version): Update Copyright year in version
16478 message.
16479
42a4f53d
JB
164802019-01-01 Joel Brobecker <brobecker@adacore.com>
16481
16482 Update copyright year range in all GDB files.
16483
7e955d83 164842019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16485
5bbd631d 16486 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16487
5bbd631d 16488For older changes see ChangeLog-2018.
c906108c
SS
16489\f
16490Local Variables:
16491mode: change-log
16492left-margin: 8
16493fill-column: 74
16494version-control: never
57da7796 16495coding: utf-8
c906108c 16496End:
5bbd631d 16497
This page took 3.689472 seconds and 4 git commands to generate.