Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c0716f3e
CB
12019-12-26 Christian Biesinger <cbiesinger@google.com>
2
3 * configure: Regenerate.
4 * configure.ac: Quote variable arguments of test.
5 * gdbsupport/common.m4: Likewise.
6
527178f7
EZ
72019-12-21 Eli Zaretskii <eliz@gnu.org>
8
9 * top.c (print_gdb_configuration): Print "--with-xxhash" or
10 "--without-xxhash" according to HAVE_LIBXXHASH.
11
4ae7258e
TT
122019-12-18 Tom Tromey <tromey@adacore.com>
13
14 PR build/25268:
15 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
16 type on macOS. Add comment.
17
1c66314d
TT
182019-12-18 Tom Tromey <tromey@adacore.com>
19
20 PR build/25250:
21 * ui-out.c (ui_out::vmessage): Update.
22 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
23 Rename.
24 (string_field): Update.
25 (signed_field): Update.
26
be19b699
SM
272019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
28
29 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
30
3f434671
JB
312019-12-11 Joel Brobecker <brobecker@adacore.com>
32
33 * version.in: Set GDB version number to 9.0.90.DATE-git.
34
07d5aa38
JB
352019-12-11 Joel Brobecker <brobecker@adacore.com>
36
37 GDB 9.0.90 released.
38
b06b5486
JB
392019-12-11 Joel Brobecker <brobecker@adacore.com>
40
41 * version.in: Set GDB version number to 9.0.90.
42
41ec388b
JB
432019-12-11 Joel Brobecker <brobecker@adacore.com>
44
45 * NEWS: Change "Changes since GDB 8.3" into "Changes in GDB 9".
46
c87abc50
JB
472019-12-11 Joel Brobecker <brobecker@adacore.com>
48
49 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
50 * version.in: Bump version to 9.0.90.DATE-git.
51
2e744276
TT
522019-12-11 Tom Tromey <tromey@adacore.com>
53
54 PR build/25268:
55 * gdbsupport/thread-pool.c (set_thread_name): New function.
56 (thread_pool::set_thread_count): Don't call pthread_setname_np.
57 (thread_pool::thread_function): Call set_thread_name.
58
aac4760f
TT
592019-12-11 Tom Tromey <tromey@adacore.com>
60
61 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
62 bfd_get_signed_8.
63
d8edc8b7
PW
642019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
65
66 * NEWS: Document -raw-values option and the related setting commands.
67 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
68 only set it on when /r is given.
69 * valprint.c (value_print_option_defs): New element raw-values.
70 * Makefile.in: Add the new file.
71
cb511130
CB
722019-12-10 Christian Biesinger <cbiesinger@google.com>
73
74 * gdbsupport/safe-strerror.c: Supress the unused function warning
75 for select_strerror_r.
76
ab7d13f0
CB
772019-12-10 Christian Biesinger <cbiesinger@google.com>
78
79 * config.in: Regenerate.
80 * configure: Regenerate.
81 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
82 safe_strerror instead of strerror.
83 * gdbsupport/common.m4: Don't check for strerror.
84 * gdbsupport/safe-strerror.c: Support both the glibc version
85 of strerror_r and the XSI version.
86
6c71eb7d
TT
872019-12-10 Tom Tromey <tromey@adacore.com>
88
89 * ada-typeprint.c (print_choices): Use a single "?".
90 (print_variant_part): Print "?" if the discriminant name
91 is not known.
92
bac7c5cf
GB
932019-12-10 George Barrett <bob@bob131.so>
94
95 Fix scripted probe breakpoints.
96 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
97 declaration forward.
98 (breakpoint_ops_for_event_location_type)
99 (breakpoint_ops_for_event_location): Add function definitions.
100 (break_command_1, trace_command): Use
101 breakpoint_ops_for_event_location.
102 * breakpoint.h (breakpoint_ops_for_event_location): Add function
103 declarations.
104 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
105 breakpoint_ops_for_event_location.
106 * python/py-breakpoint.c (bppy_init): Use
107 breakpoint_ops_for_event_location.
108
330f1d38
TBA
1092019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
110
111 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
112 when ranking an lvalue argument for an rvalue parameter.
113
b1f0c0b9
WA
1142019-12-08 Wataru Ashihara <wataash@wataash.com>
115
116 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
117 template argument for scoped_restore_tmpl from bool to int.
118
aa2d5a42
KS
1192019-12-07 Keith Seitz <keiths@redhat.com>
120
121 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
122 (build_id_to_debug_bfd): Make static, rewriting to use
123 build_id_to_bfd_suffix.
124 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
125 adding `suffix' parameter. Append SUFFIX to file names
126 when searching for matching files.
127 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
128 (build_id_to_exec_bfd): Likewise.
129 * build-id.h (build_id_to_debug_bfd): Clarify that function
130 searches for BFD of debug info file.
131 (build_id_to_exec_bfd): Declare.
132 * corelow.c: Include build-id.h.
133 (locate_exec_from_corefile_build_id): New function.
134 (core_target_open): If no executable BFD is found,
135 search for a core file BFD using build-id.
136
dfb65191
CB
1372019-12-06 Christian Biesinger <cbiesinger@google.com>
138
139 * bcache.c: Put in namespace gdb.
140 * bcache.h: Likewise.
141 * gdbtypes.c (check_types_worklist): Update.
142 (types_deeply_equal): Update.
143 * macrotab.c (struct macro_table) <bcache>: Update.
144 (new_macro_table): Update.
145 * macrotab.h (struct bcache): Put this forward declaration
146 inside namespace gdb.
147 (new_macro_table): Update.
148 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
149 Update.
150 <macro_cache>: Update.
151 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
152
93e55f0a
TV
1532019-12-06 Tom de Vries <tdevries@suse.de>
154
155 PR symtab/24971
156 * block.c (best_symbol, better_symbol): New function.
157 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
158 decl.
159
06acc08f
TBA
1602019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
161
162 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
163 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
164 for ranking see-through reference cases.
165
e0fad1ea
PW
1662019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
167 * stack.c (faas_command): Check a command is provided.
168 * thread.c (taas_command, tfaas_command): Likewise.
169
908641f5
PW
1702019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
171 * inferior.c (prune_inferiors): Only call delete_inferior,
172 Do not modify the inferior list.
173
b858499d
SM
1742019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * c-exp.y: Update calls to lookup_typename,
177 lookup_signed_typename and lookup_unsigned_typename.
178 * c-lang.c (evaluate_subexp_c): Likewise.
179 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
180 Likewise.
181 * eval.c (binop_promote): Likewise.
182 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
183 (lookup_unsigned_typename): Likewise.
184 (lookup_signed_typename): Likewise.
185 * gdbtypes.h (lookup_unsigned_typename): Likewise.
186 (lookup_signed_typename): Likewise.
187 (lookup_typename): Likewise.
188 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
189 lookup_typename, lookup_signed_typename,
190 lookup_unsigned_typename.
191 * m2-exp.y: Likewise.
192 * printcmd.c (printf_wide_c_string): Likewise.
193 (ui_printf): Likewise.
194 * python/py-type.c (typy_lookup_typename): Likewise.
195 * python/py-xmethods.c (python_xmethod_worker::invoke):
196 Likewise.
197 * rust-exp.y: Likewise.
198
3a8fa228
CB
1992019-12-04 Christian Biesinger <cbiesinger@google.com>
200
201 * configure.nat (obsd64): Add missing files x86-nat.o and
202 nat/x86-dregs.o.
203
2dbc041e
TT
2042019-12-04 Tom Tromey <tom@tromey.com>
205
206 * valprint.c (val_print_string): Use metadata_style.
207 * go-valprint.c (print_go_string): Use metadata style.
208 * p-valprint.c (pascal_object_print_static_field): Use metadata
209 style.
210 * cp-valprint.c (cp_print_static_field): Use metadata style.
211
36c8fb93
AB
2122019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
213 Chris January <chris.january@arm.com>
214
215 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
216 tokens.
217 (typebase): New patterns for complex, single/double precision, and
218 single/double complex.
219 (f77_keywords): Change token for complex keyword, and add single,
220 double, and precision keywords.
221
c6170c2c
SM
2222019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
223
224 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
225 "info io_registers".
226
894ecaf4
SM
2272019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
228
229 * regcache.c (cooked_read_test): Initialize thread list of
230 mock_inferior.
231
be155ebb
SM
2322019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
233
234 * aarch64-linux-tdep.c: Remove includes.
235
c577cdd7
SM
2362019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * aarch64-tdep.c: Remove includes.
239
610cfd61
SM
2402019-12-04 Simon Marchi <simon.marchi@efficios.com>
241
242 * filtered-iterator.h (filtered_iterator) <operator==,
243 operator!=>: Compare wrapped iterators, not wrapped pointers.
244 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
245 unittests/filtered_iterator-selftests.c.
246 * unittests/filtered_iterator-selftests.c: New file.
247
a05cf17a
TT
2482019-12-04 Tom Tromey <tromey@adacore.com>
249
250 * gdbtypes.c (create_range_type): Inherit endianity
251 from base type.
252
d5a22e77
TT
2532019-12-04 Tom Tromey <tromey@adacore.com>
254
255 * ada-lang.c (decode_constrained_packed_array)
256 (ada_value_assign, value_assign_to_component): Update.
257 * dwarf2loc.c (rw_pieced_value, access_memory)
258 (dwarf2_compile_expr_to_ax): Update.
259 * dwarf2read.c (dwarf2_add_field): Update.
260 * eval.c (evaluate_subexp_standard): Update.
261 * gdbarch.c, gdbarch.h: Rebuild.
262 * gdbarch.sh (bits_big_endian): Remove.
263 * gdbtypes.h (union field_location): Update comment.
264 * target-descriptions.c (make_gdb_type): Update.
265 * valarith.c (value_bit_index): Update.
266 * value.c (struct value) <bitpos>: Update comment.
267 (unpack_bits_as_long, modify_field): Update.
268 * value.h (value_bitpos): Update comment.
269
7ab4a236
TT
2702019-12-04 Tom Tromey <tromey@adacore.com>
271
272 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
273 endian-ness.
274
103a685e
TT
2752019-12-04 Tom Tromey <tromey@adacore.com>
276
277 * dwarf2read.c (dwarf2_init_float_type)
278 (dwarf2_init_complex_target_type): Add byte_order parameter.
279 (read_base_type): Compute byte order earlier.
280 * gdbtypes.c (init_float_type): Add byte_order parameter.
281 * gdbtypes.h (init_float_type): Add byte_order parameter.
282
7a9e9f9f
TT
2832019-12-04 Tom Tromey <tromey@adacore.com>
284
285 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
286
feee869b
TT
2872019-12-04 Tom Tromey <tromey@adacore.com>
288
289 * dwarf2read.c (process_structure_scope): Initialize
290 "discr_offset".
291
c2512106
AB
2922019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
295 add it into the search spec.
296 (parse_max_results_option): New function.
297 (mi_info_functions_or_variables): Parse -max-results flag and pass
298 it to mi_symbol_info.
299 (mi_cmd_symbol_info_modules): Likewise.
300 (mi_cmd_symbol_info_types): Likewise.
301 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
302 return type to bool, change result container into a set, and don't
303 add new results if we have enough already.
304 (global_symbol_searcher::add_matching_msymbols): Change return
305 type to bool, and don't add new results if we have enough already.
306 (sort_search_symbols_remove_dups): Delete.
307 (global_symbol_searcher::search): Early exit from search loop when
308 we have enough results. Use a std::set to collect the results
309 from calling add_matching_symbols.
310 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
311 member function.
312 (global_symbol_searcher) <m_max_search_results>: New member
313 variable.
314 (global_symbol_searcher) <add_matching_symbols>: Update header
315 comment and change return type to bool.
316 (global_symbol_searcher) <add_matching_msymbols>: Update header
317 comment and change return type to bool.
318
f97a63c5
AB
3192019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
320
321 * symtab.c (symbol_search::compare_search_syms): Update header
322 comment.
323 (global_symbol_searcher::is_suitable_msymbol): New function.
324 (global_symbol_searcher::expand_symtabs): New function.
325 (global_symbol_searcher::add_matching_symbols): New function.
326 (global_symbol_searcher::add_matching_msymbols): New function.
327 (global_symbol_searcher::search): Move most of the content
328 into the new functions above, and call them as needed.
329 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
330 function.
331 (global_symbol_searcher) <add_matching_symbols>: New member
332 function.
333 (global_symbol_searcher) <add_matching_msymbols>: New member
334 function.
335 (global_symbol_searcher) <is_suitable_msymbol>: New member
336 function.
337
293b38d6
AB
3382019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
339
340 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
341 -symbol-info-module-variables entries.
342 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
343 (mi_cmd_symbol_info_module_variables): Declare.
344 * mi/mi-symbol-cmds.c
345 (module_symbol_search_iterator): New typedef.
346 (output_module_symbols_in_single_module_and_file): New function.
347 (output_module_symbols_in_single_module): New function.
348 (mi_info_module_functions_or_variables): New function.
349 (mi_cmd_symbol_info_module_functions): New function.
350 (mi_cmd_symbol_info_module_variables): New function.
351 * NEWS: Mention new MI command.
352
4cbd39b2
CB
3532019-12-03 Christian Biesinger <cbiesinger@google.com>
354
355 * bcache.c (hash): Remove.
356 (hash_continue): Remove.
357 * bcache.h (hash): Remove.
358 (hash_continue): Remove.
359 (struct bcache) <ctor>: Update.
360 * psymtab.c (psymbol_hash): Update.
361 * stabsread.c (hashname): Update.
362 * utils.h (fast_hash): Add an argument for a start value,
363 defaulting to zero.
364
82f910ea
PW
3652019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
366 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
367 (destroy_block_symbol_cache): New function.
368 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
369 (resize_symbol_cache): Likewise.
370
de2396d0
TT
3712019-12-02 Tom Tromey <tom@tromey.com>
372
373 * unittests/tui-selftests.c (run_tests): Make conditional.
374 (_initialize_tui_selftest): Make conditional.
375
638d85bc
CB
3762019-12-02 Christian Biesinger <cbiesinger@google.com>
377
378 * aix-thread.c (debug_aix_thread): Change type to bool.
379
7532a164
LM
3802019-12-02 Luis Machado <luis.machado@linaro.org>
381
382 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
383
216a7e6b
AB
3842019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
385
386 * dwarf2read.c (read_tag_string_type): Read the fields required to
387 make a dynamic string, and possibly create a dynamic range for the
388 string.
389 (attr_to_dynamic_prop): Setup is_reference based on the type of
390 attribute being processed.
391 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
392 (resolve_dynamic_array): Rename to...
393 (resolve_dynamic_array_or_string): ...this, update header comment,
394 and accept TYPE_CODE_STRING.
395 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
396
11a8b164
AB
3972019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
398
399 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
400 of its implementation from...
401 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
402 the new function.
403
5bbd8269
AB
4042019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
405
406 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
407 create a range with stride where appropriate.
408 * f-valprint.c: Include 'gdbarch.h'.
409 (f77_print_array_1): Take the stride into account when walking the
410 array. Also convert the stride into addressable units.
411 * gdbtypes.c (create_range_type): Initialise the stride to
412 constant zero.
413 (create_range_type_with_stride): New function, initialise the
414 range as normal, and then setup the stride.
415 (has_static_range): Include the stride here. Also change the
416 return type to bool.
417 (create_array_type_with_stride): Consider the range stride if the
418 array isn't given its own stride.
419 (resolve_dynamic_range): Resolve the stride if needed.
420 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
421 (struct range_bounds) <flag_is_byte_stride>: New member variable.
422 (TYPE_BIT_STRIDE): Define.
423 (TYPE_ARRAY_BIT_STRIDE): Define.
424 (create_range_type_with_stride): Declare.
425 * valarith.c (value_subscripted_rvalue): Take range stride into
426 account when walking the array.
427
82e3b564
TT
4282019-12-01 Tom Tromey <tom@tromey.com>
429
430 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
431 specially.
432
517d261d
TT
4332019-12-01 Tom Tromey <tom@tromey.com>
434
435 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
436 \0.
437 * unittests/tui-selftests.c: New file.
438 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
439
484c9b64
TT
4402019-12-01 Tom Tromey <tom@tromey.com>
441
442 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
443
a2a7af0c
TT
4442019-12-01 Tom Tromey <tom@tromey.com>
445
446 * NEWS: Document new settings.
447 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
448 * tui/tui-win.c (_initialize_tui_win): Add border style
449 observers.
450 * tui/tui-io.h (tui_apply_style): Declare.
451 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
452 longer static.
453 (apply_ansi_escape, tui_set_reverse_mode): Update.
454 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
455 Add "skip_intensity" parameter.
456 <changed>: New member.
457 <do_set_value>: Declare.
458 (tui_border_style, tui_active_border_style): Declare.
459 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
460 globals.
461 (cli_style_option): Initialize "changed".
462 (cli_style_option::do_set_value): New function.
463 (cli_style_option::add_setshow_commands): Add "skip_intensity"
464 parameter. Update.
465 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
466 (_initialize_cli_style): Update. Create TUI border style
467 commands.
468
d1da6b01
TT
4692019-12-01 Tom Tromey <tom@tromey.com>
470
471 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
472 parameter.
473 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
474 parameter.
475 * tui/tui-win.h (compact_source): Declare.
476 * tui/tui-win.c (compact_source): New global.
477 (tui_set_compact_source, tui_show_compact_source): New functions.
478 (_initialize_tui_win): Add "compact-source" setting.
479 * tui/tui-source.c (tui_source_window::set_contents): Handle
480 compact_source setting.
481 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
482 * NEWS: Document new setting.
483
489dbda6
TT
4842019-11-30 Tom Tromey <tom@tromey.com>
485
486 * dwarf2read.c (dwarf2_add_field): Include field offset when
487 computing variant part length.
488
bf498525
PW
4892019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
490 * NEWS: Mention define-prefix. Tell that command names can now
491 contain a . character.
492
be09caf1
PW
4932019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
494
495 * command.h (valid_cmd_char_p): Declare.
496 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
497 the check of valid command char.
498 (find_command_name_length, valid_user_defined_cmd_name_p): Use
499 valid_cmd_char_p.
500 * cli/cli-script.c (validate_comname): Likewise.
501 * completer.c (gdb_completer_command_word_break_characters):
502 Do not remove . from the word break char, update comments.
503 (complete_line_internal_1): Use valid_cmd_char_p.
504 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
505 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
506
c6ac7fc9
PW
5072019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
508
509 * cli/cli-script.c (do_define_command): Ensure a redefined
510 prefix command is kept as a prefix command.
511 (define_prefix_command): New function.
512 (show_user_1): Report user defined prefixes.
513 (_initialize_cli_script): Create the new 'define-prefix' command.
514 Add completers for 'define' and 'document'.
515 * top.c (execute_command): If command is a user-defined prefix only
516 command, report the list of commands for this prefix command.
517
a992a3b0
TBA
5182019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
519
520 * valops.c (find_oload_champ): Improve debug output.
521
e9194a1a
TBA
5222019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
523
524 * valops.c (find_oload_champ): Print part of debug messages
525 before the badness vector is std::move'd.
526
53a008a6
TT
5272019-11-28 Tom Tromey <tom@tromey.com>
528
529 * value.c (creal_internal_fn): Fix comment.
530
bab05c83
TT
5312019-11-28 Tom Tromey <tom@tromey.com>
532
533 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
534 flag_bound_evaluated>: Now unsigned.
535
2522f049
TT
5362019-11-28 Tom Tromey <tom@tromey.com>
537
538 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
539 declare.
540
38b49e22
MS
5412019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
542
543 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
544 debug output.
545 * jit.c (jit_unregister_code): Add debug print to match
546 `jit_register_code`.
547
35125921
CB
5482019-11-27 Christian Biesinger <cbiesinger@google.com>
549
550 * NEWS: Mention the new multithreaded symbol loading.
551
62e77f56
CB
5522019-11-27 Christian Biesinger <cbiesinger@google.com>
553
554 * maint.c (n_worker_threads): Default to 0.
555 (worker_threads_disabled): New function.
556 * maint.h (worker_threads_disabled): New function.
557 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
558 here if worker_threads_disabled () is true.
559 (minimal_symbol_reader::install): Skip all threading if
560 worker_threads_disabled () is true.
561
f29d7f6b
CB
5622019-11-27 Christian Biesinger <cbiesinger@google.com>
563
564 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
565 hash code if possible.
566 (add_minsym_to_demangled_hash_table): Likewise.
567 (minimal_symbol_reader::install): Compute the hash codes for msymbol
568 on the background thread.
569 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
570 Add these fields.
571
e76b2246
CB
5722019-11-27 Christian Biesinger <cbiesinger@google.com>
573
574 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
575 of the mangled name on the background thread.
576 * symtab.c (symbol_set_names): Allow passing in the hash of the
577 linkage_name.
578 * symtab.h (symbol_set_names): Likewise.
579
8d9a2568
KB
5802019-11-27 Kevin Buettner <kevinb@redhat.com>
581
582 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
583 physnames are computed for inherited DIEs.
584
fad03f6e
TT
5852019-11-27 Tom Tromey <tromey@adacore.com>
586
587 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
588 backslashes.
589 * cp-support.c: Remove unnecessary backslashes.
590
43678b0a
CB
5912019-11-27 Christian Biesinger <cbiesinger@google.com>
592
593 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
594 with sym->set_linkage_name.
595 * coffread.c (coff_read_enum_type): Likewise.
596 * mdebugread.c (parse_symbol): Likewise.
597 * stabsread.c (patch_block_stabs): Likewise.
598 (define_symbol): Likewise.
599 (read_enum_type): Likewise.
600 (common_block_end): Likewise.
601 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
602 function.
603 (SYMBOL_SET_LINKAGE_NAME): Remove.
604 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
605 with sym->set_linkage_name.
606
db5960b4
AB
6072019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
610 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
611 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
612 * NEWS: Mention new MI command.
613
7dc42066
AB
6142019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
615
616 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
617 '-symbol-info-types', and '-symbol-info-variables'.
618 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
619 (mi_cmd_symbol_info_types): Declare.
620 (mi_cmd_symbol_info_variables): Declare.
621 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
622 (output_debug_symbol): New function.
623 (output_nondebug_symbol): New function.
624 (mi_symbol_info): New function.
625 (mi_info_functions_or_variables): New function.
626 (mi_cmd_symbol_info_functions): New function.
627 (mi_cmd_symbol_info_types): New function.
628 (mi_cmd_symbol_info_variables): New function.
629 * NEWS: Mention new commands.
630
5f512a7d
AB
6312019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
632
633 * symtab.c (symbol_to_info_string): New function, most content
634 moved from print_symbol_info, but updated to return a std::string.
635 (print_symbol_info): Update to use symbol_to_info_string and print
636 returned string.
637 * symtab.h (symbol_to_info_string): Declare new function.
638
470c0b1c
AB
6392019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
640
641 * python/python.c (gdbpy_rbreak): Convert to using
642 global_symbol_searcher.
643 * symtab.c (file_matches): Convert return type to bool, change
644 file list to std::vector, update header comment.
645 (search_symbols): Rename to...
646 (global_symbol_searcher::search): ...this and update now its
647 a member function of global_symbol_searcher. Take account of the
648 changes to file_matches.
649 (symtab_symbol_info): Convert to using global_symbol_searcher.
650 (rbreak_command): Likewise.
651 (search_module_symbols): Likewise.
652 * symtab.h (enum symbol_search): Update comment.
653 (search_symbols): Remove declaration.
654 (class global_symbol_searcher): New class.
655
57357d9d
TT
6562019-11-26 Tom Tromey <tromey@adacore.com>
657
658 * cp-support.c (_initialize_cp_support): Conditionally initialize
659 gdb_demangle_attempt_core_dump.
660
3ea16160
TT
6612019-11-26 Tom Tromey <tom@tromey.com>
662
663 * python/py-function.c (fnpy_init): Update.
664 * value.h (add_internal_function): Adjust declaration.
665 * value.c (function_destroyer): Remove.
666 (do_add_internal_function): Don't set destroyer or copy name.
667 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
668 Set name_allocated.
669 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
670 (cmdpy_init): Set name_allocated.
671 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
672 member.
673 (~cmd_list_element): Free "name" if needed.
674
1a6d41c6
TT
6752019-11-26 Tom Tromey <tom@tromey.com>
676
677 * value.h (add_internal_function): Add new overload. Move
678 documentation from value.h.
679 * value.c (do_add_internal_function): New function.
680 (add_internal_function): Use it. Add new overload.
681 (function_destroyer): Don't free doc.
682 * python/py-function.c (fnpy_init): Update.
683
8318f3c3
TT
6842019-11-26 Tom Tromey <tom@tromey.com>
685
686 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
687 (cmdpy_init): Set "doc_allocated".
688
4da8c3a8
TT
6892019-11-26 Tom Tromey <tom@tromey.com>
690
691 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
692 name of worker thread.
693 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
694 pthread_setname_np.
695 * configure, config.in: Rebuild.
696
971db5e2
TT
6972019-11-26 Tom Tromey <tom@tromey.com>
698
699 * python/python.c (class gdbpy_gil): New.
700 (struct gdbpy_event): Add constructor, destructor, operator().
701 (gdbpy_post_event): Use run_on_main_thread.
702 (gdbpy_initialize_events): Remove.
703 (do_start_initialization): Update.
704
22138db6
TT
7052019-11-26 Tom Tromey <tom@tromey.com>
706
707 * NEWS: Add entry.
708 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
709 commands. Call update_thread_pool_size.
710 (update_thread_pool_size, maintenance_set_worker_threads): New
711 functions.
712 (n_worker_threads): New global.
713
d55c9a68
TT
7142019-11-26 Christian Biesinger <cbiesinger@google.com>
715 Tom Tromey <tom@tromey.com>
716
717 * minsyms.c (minimal_symbol_reader::install): Use
718 parallel_for_each.
719 * gdbsupport/parallel-for.h: New file.
720 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
721
a0b57563
CB
7222019-11-26 Christian Biesinger <cbiesinger@google.com>
723 Tom Tromey <tom@tromey.com>
724
725 * gdbsupport/thread-pool.h: New file.
726 * gdbsupport/thread-pool.c: New file.
727 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
728 (HFILES_NO_SRCDIR): Add thread-pool.h.
729
3b3978bc
TT
7302019-11-26 Tom Tromey <tom@tromey.com>
731
732 * event-top.h (thread_local_segv_handler): Declare.
733 * event-top.c (thread_local_segv_handler): New global.
734 (install_handle_sigsegv, handle_sigsegv): New functions.
735 (async_init_signals): Install SIGSEGV handler.
736 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
737 thread-local.
738 (report_failed_demangle): New function.
739 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
740 handler-setting code, instead use segv_handler. Run warning code
741 on main thread.
742
9411c49e
TT
7432019-11-26 Tom Tromey <tom@tromey.com>
744
745 * run-on-main-thread.c: New file.
746 * run-on-main-thread.h: New file.
747 * unittests/main-thread-selftests.c: New file.
748 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
749 main-thread-selftests.c.
750 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
751 (COMMON_SFILES): Add run-on-main-thread.c.
752
c3efb965
TT
7532019-11-26 Tom Tromey <tom@tromey.com>
754
755 * main.c (setup_alternate_signal_stack): Remove.
756 (captured_main_1): Use gdb::alternate_signal_stack.
757 * gdbsupport/alt-stack.h: New file.
758
21987b9c
TT
7592019-11-26 Tom Tromey <tom@tromey.com>
760
761 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
762 Remove comment.
763 (save_original_signals_state, restore_original_signals_state): Use
764 gdb_sigmask.
765 * linux-nat.c (block_child_signals, restore_child_signals_mask)
766 (_initialize_linux_nat): Use gdb_sigmask.
767 * guile/guile.c (_initialize_guile): Use block_signals.
768 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
769 * gdbsupport/gdb-sigmask.h: New file.
770 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
771 * cp-support.c (gdb_demangle): Use gdb_sigmask.
772 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
773 pthread_sigmask.
774 * configure, config.in: Rebuild.
775 * gdbsupport/block-signals.h: New file.
776
5e030278
TT
7772019-11-26 Tom Tromey <tom@tromey.com>
778
779 * acinclude.m4: Include ax_pthread.m4.
780 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
781 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
782 (CLIBS): Use PTHREAD_LIBS.
783 (aclocal_m4_deps): Add ax_pthread.m4.
784 * config.in, configure: Rebuild.
785 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
786
5a79c107
TT
7872019-11-26 Tom Tromey <tom@tromey.com>
788
789 * symtab.h (struct minimal_symbol) <name_set>: New member.
790 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
791 Don't call symbol_set_names.
792 (minimal_symbol_reader::install): Call symbol_set_names.
793
aa369509
PW
7942019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
795
796 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
797 restore_active_ext_lang, as GIL is needed for (indirectly)
798 called PyOS_InterruptOccurred.
799
cadc9cb8
SM
8002019-11-26 Simon Marchi <simon.marchi@efficios.com>
801
802 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
803 definition.
804
d04afd58
SM
8052019-11-26 Simon Marchi <simon.marchi@efficios.com>
806
807 * remote-sim.c (simulator_command): Make static, remove
808 declaration.
809
dd694d77
SM
8102019-11-26 Simon Marchi <simon.marchi@efficios.com>
811
812 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
813 static.
814 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
815 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
816 (main): Likewise.
817 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
818 (main): Likewise.
819 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
820 (main): Likewise.
821 * unittests/basic_string_view/element_access/char/1.cc (test01):
822 Likewise.
823 (main): Likewise.
824 * unittests/basic_string_view/element_access/char/empty.cc (main):
825 Likewise.
826 * unittests/basic_string_view/element_access/char/front_back.cc
827 (test01): Likewise.
828 (main): Likewise.
829 * unittests/basic_string_view/inserters/char/2.cc (test05):
830 Likewise.
831 (main): Likewise.
832 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
833 (test01): Likewise.
834 (main): Likewise.
835 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
836 (test01): Likewise.
837 (main): Likewise.
838 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
839 Likewise.
840 * unittests/basic_string_view/operations/compare/char/1.cc
841 (test01): Likewise.
842 (main): Likewise.
843 * unittests/basic_string_view/operations/compare/char/13650.cc
844 (test01): Likewise.
845 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
846 Likewise.
847 (main): Likewise.
848 * unittests/basic_string_view/operations/data/char/1.cc (test01):
849 Likewise.
850 (main): Likewise.
851 * unittests/basic_string_view/operations/find/char/1.cc (test01):
852 Likewise.
853 (main): Likewise.
854 * unittests/basic_string_view/operations/find/char/2.cc (test02):
855 Likewise.
856 (main): Likewise.
857 * unittests/basic_string_view/operations/find/char/3.cc (test03):
858 Likewise.
859 (main): Likewise.
860 * unittests/basic_string_view/operations/find/char/4.cc (main):
861 Likewise.
862 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
863 Likewise.
864 (main): Likewise.
865 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
866 Likewise.
867 (main): Likewise.
868 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
869 Likewise.
870 (main): Likewise.
871 * unittests/basic_string_view/operations/substr/char/1.cc
872 (test01): Likewise.
873 (main): Likewise.
874 * unittests/basic_string_view/operators/char/2.cc (main):
875 Likewise.
876 * unittests/optional/assignment/1.cc (test): Likewise.
877 * unittests/optional/assignment/2.cc (test): Likewise.
878 * unittests/optional/assignment/3.cc (test): Likewise.
879 * unittests/optional/assignment/4.cc (test): Likewise.
880 * unittests/optional/assignment/5.cc (test): Likewise.
881 * unittests/optional/assignment/6.cc (test): Likewise.
882 * unittests/optional/assignment/7.cc (test): Likewise.
883 * unittests/optional/cons/copy.cc (test): Likewise.
884 * unittests/optional/cons/default.cc (test): Likewise.
885 * unittests/optional/cons/move.cc (test): Likewise.
886 * unittests/optional/cons/value.cc (test): Likewise.
887 * unittests/optional/in_place.cc (test): Likewise.
888 * unittests/optional/observers/1.cc (test): Likewise.
889 * unittests/optional/observers/2.cc (test): Likewise.
890
3b5c1d49
SM
8912019-11-26 Simon Marchi <simon.marchi@efficios.com>
892
893 * tui-win.h (tui_set_var_cmd): Remove.
894 * tui-win.c (tui_set_var_cmd): Make static.
895
adce99fe
SM
8962019-11-26 Simon Marchi <simon.marchi@efficios.com>
897
898 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
899 rbreak_command_wrapper): Remove.
900 * symtab.c (rbreak_command_wrapper): Remove.
901
fe3adccf
SM
9022019-11-26 Simon Marchi <simon.marchi@efficios.com>
903
904 * inferior.h (info_terminal_command): Remove declaration.
905 * inflow.c (info_terminal_command): Make static.
906
b926335f
SM
9072019-11-26 Simon Marchi <simon.marchi@efficios.com>
908
909 * inferior.c (exit_inferior_silent): Remove.
910
b62f6f54
SM
9112019-11-26 Simon Marchi <simon.marchi@efficios.com>
912
913 * dictionary.c (dict_empty, mdict_empty): Remove.
914 * dictionary.c (mdict_empty): Remove.
915
cb8c24b6
SM
9162019-11-26 Simon Marchi <simon.marchi@efficios.com>
917
918 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
919 (arc_insn_get_memory_offset): Likewise.
920 (arc_insn_dump): Likewise.
921 * cp-support.c (test_cp_symbol_name_matches): Likewise.
922 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
923 * dictionary.c (dict_iterator_next): Likewise.
924 (dict_iter_match_first): Likewise.
925 (dict_iter_match_next): Likewise.
926 * f-lang.c (evaluate_subexp_f): Likewise.
927 * hppa-tdep.c (hppa_read_pc): Likewise.
928 * i386-tdep.c (i386_floatformat_for_type): Likewise.
929 * parse.c (write_exp_elt_msym): Likewise.
930 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
931 * remote.c (remote_packet_size): Likewise.
932 (remote_notif_stop_parse): Likewise.
933 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
934 * s12z-tdep.c (s12z_disassemble_info): Likewise.
935 * source.c (prepare_path_for_appending): Likewise.
936 * sparc64-linux-tdep.c
937 (sparc64_linux_handle_segmentation_fault); Likewise.
938 * stack.c (frame_selection_by_function_completer): Likewise.
939
781597ff
SM
9402019-11-26 Simon Marchi <simon.marchi@efficios.com>
941
942 * completer.c (set_gdb_completion_word_break_characters):
943 Remove.
944
23baa4cc
SM
9452019-11-26 Simon Marchi <simon.marchi@efficios.com>
946
947 * dwarf-index-write.c: Include dwarf-index-write.h.
948 * mi/mi-interp.c: Include mi/mi-interp.h.
949
23767560
SM
9502019-11-26 Simon Marchi <simon.marchi@efficios.com>
951
952 * aarch32-tdep.c: Include aarch32-tdep.h.
953 * aarch32-tdep.h: Forward-declare struct target_desc.
954
6d91ce9a
CB
9552019-11-26 Christian Biesinger <cbiesinger@google.com>
956
957 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
958 strerror.
959 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
960 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
961
3cf2f237
TV
9622019-11-25 Tom de Vries <tdevries@suse.de>
963
964 * contrib/words.sh: Add -c option.
965
5b89c67a
CB
9662019-11-25 Christian Biesinger <cbiesinger@google.com>
967
968 * solib.c (solib_find_1): Change int to bool.
969 (exec_file_find): Change int to bool.
970 (solib_find): Change int to bool.
971 (solib_read_symbols): Change int to bool.
972 (solib_used): Change int to bool.
973 (solib_add): Change int to bool.
974 (info_sharedlibrary_command): 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 (reload_shared_libraries_1): Change int to bool.
979 (gdb_sysroot_changed): Change int to bool.
980 * solib.h (solib_read_symbols): Change int to bool.
981 (solib_contains_address_p): Change int to bool.
982 (solib_keep_data_in_core): Change int to bool.
983 (in_solib_dynsym_resolve_code): Change int to bool.
984 (libpthread_name_p): Change int to bool.
985
6cc8564b
LM
9862019-11-25 Luis Machado <luis.machado@linaro.org>
987
988 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
989 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
990 (remote_packet_max_chars): New static global.
991 (show_remote_packet_max_chars): New function.
992 (remote_target::putpkt_binary): Adjust to use new
993 remote_packet_max_chars option.
994 (remote_target::getpkt_or_notif_sane_1): Likewise.
995 (_initialize_remote): Register new remote-packet-max-chars option.
996
a7cdaa91
SM
9972019-11-24 Simon Marchi <simon.marchi@efficios.com>
998
999 * m68k-linux-nat.c: Include gdbarch.h.
1000
26abc753
TT
10012019-11-24 Tom Tromey <tom@tromey.com>
1002
1003 * symfile.c (read_symbols): Update.
1004 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1005 bool.
1006 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1007 (psym_lookup_symbol, psym_find_last_source_symtab)
1008 (psym_forget_cached_source_info, psym_print_stats)
1009 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1010 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1011 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1012 (psym_find_compunit_symtab_by_address)
1013 (maintenance_print_psymbols, maintenance_info_psymtabs)
1014 (maintenance_check_psymtabs): Update.
1015 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1016 bool.
1017
012fc909
TT
10182019-11-22 Tom Tromey <tom@tromey.com>
1019
1020 * observable.h: Update comments.
1021
c83d8d32
TT
10222019-11-22 Tom Tromey <tromey@adacore.com>
1023
1024 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1025 (print_ada_task_info): Don't try to fetch thread id if task is not
1026 alive.
1027
987012b8
CB
10282019-11-22 Christian Biesinger <cbiesinger@google.com>
1029
1030 * ada-exp.y: Update.
1031 * ada-lang.c (sort_choices): Update.
1032 (ada_print_symbol_signature): Update.
1033 (resolve_subexp): Update.
1034 (ada_parse_renaming): Update.
1035 (ada_read_renaming_var_value): Update.
1036 (lesseq_defined_than): Update.
1037 (remove_extra_symbols): Update.
1038 (remove_irrelevant_renamings): Update.
1039 (ada_add_block_symbols): Update.
1040 (ada_collect_symbol_completion_matches): Update.
1041 (ada_is_renaming_symbol): Update.
1042 (aggregate_assign_from_choices): Update.
1043 (ada_evaluate_subexp): Update.
1044 (ada_has_this_exception_support): Update.
1045 (ada_is_non_standard_exception_sym): Update.
1046 (ada_add_exceptions_from_frame): Update.
1047 (ada_add_global_exceptions): Update.
1048 (ada_print_subexp): Update.
1049 * ax-gdb.c (gen_var_ref): Update.
1050 (gen_maybe_namespace_elt): Update.
1051 (gen_expr_for_cast): Update.
1052 (gen_expr): Update.
1053 * block.h: Update.
1054 * blockframe.c (find_pc_partial_function): Update.
1055 * breakpoint.c (print_breakpoint_location): Update.
1056 (update_static_tracepoint): Update.
1057 * btrace.c (ftrace_print_function_name): Update.
1058 (ftrace_function_switched): Update.
1059 * buildsym.c (find_symbol_in_list): Update.
1060 * c-exp.y: Update.
1061 * c-typeprint.c (c_print_typedef): Update.
1062 (c_type_print_template_args): Update.
1063 * cli/cli-cmds.c (edit_command): Update.
1064 (list_command): Update.
1065 (print_sal_location): Update.
1066 * coffread.c (patch_opaque_types): Update.
1067 (process_coff_symbol): Update.
1068 (coff_read_enum_type): Update.
1069 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1070 (convert_one_symbol): Update.
1071 (hash_symname): Update.
1072 (eq_symname): Update.
1073 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1074 * compile/compile-cplus-types.c (debug_print_scope): Update.
1075 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1076 * compile/compile-object-load.c (get_out_value_type): Update.
1077 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1078 (search_symbol_list): Update.
1079 (cp_lookup_symbol_imports_or_template): Update.
1080 * cp-support.c (overload_list_add_symbol): Update.
1081 * ctfread.c (psymtab_to_symtab): Update.
1082 * dbxread.c (cp_set_block_scope): Update.
1083 * dictionary.c (iter_match_first_hashed): Update.
1084 (iter_match_next_hashed): Update.
1085 (insert_symbol_hashed): Update.
1086 (iter_match_next_linear): Update.
1087 * dictionary.h: Update.
1088 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1089 (locexpr_describe_location_piece): Update.
1090 (locexpr_describe_location_1): Update.
1091 (locexpr_generate_c_location): Update.
1092 (loclist_describe_location): Update.
1093 (loclist_generate_c_location): Update.
1094 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1095 (read_func_scope): Update.
1096 (process_enumeration_scope): Update.
1097 (new_symbol): Update.
1098 (dwarf2_const_value): Update.
1099 (dwarf2_symbol_mark_computed): Update.
1100 * eval.c (evaluate_funcall): Update.
1101 (evaluate_subexp_standard): Update.
1102 * expprint.c (print_subexp_standard): Update.
1103 (dump_subexp_body_standard): Update.
1104 * f-valprint.c (info_common_command_for_block): Update.
1105 * findvar.c (get_hosting_frame): Update.
1106 (default_read_var_value): Update.
1107 * go-lang.c (go_symbol_package_name): Update.
1108 * guile/scm-block.c (bkscm_print_block_smob): Update.
1109 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1110 (gdbscm_symbol_name): Update.
1111 (gdbscm_symbol_linkage_name): Update.
1112 (gdbscm_symbol_print_name): Update.
1113 * infcall.c (get_function_name): Update.
1114 * infcmd.c (jump_command): Update.
1115 (finish_command): Update.
1116 * infrun.c (insert_exception_resume_breakpoint): Update.
1117 * linespec.c (canonicalize_linespec): Update.
1118 (create_sals_line_offset): Update.
1119 (convert_linespec_to_sals): Update.
1120 (complete_label): Update.
1121 (find_label_symbols_in_block): Update.
1122 * m2-typeprint.c (m2_print_typedef): Update.
1123 * mdebugread.c (mdebug_reg_to_regnum): Update.
1124 (parse_symbol): Update.
1125 (mylookup_symbol): Update.
1126 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1127 (list_args_or_locals): Update.
1128 * objc-lang.c (compare_selectors): Update.
1129 (info_selectors_command): Update.
1130 (compare_classes): Update.
1131 (info_classes_command): Update.
1132 (find_imps): Update.
1133 * p-typeprint.c (pascal_print_typedef): Update.
1134 * printcmd.c (build_address_symbolic): Update.
1135 (info_address_command): Update.
1136 (print_variable_and_value): Update.
1137 * python/py-framefilter.c (extract_sym): Update.
1138 (py_print_single_arg): Update.
1139 * python/py-symbol.c (sympy_str): Update.
1140 (sympy_get_name): Update.
1141 (sympy_get_linkage_name): Update.
1142 * python/python.c (gdbpy_rbreak): Update.
1143 * record-btrace.c (btrace_get_bfun_name): Update.
1144 (btrace_call_history): Update.
1145 * rust-lang.c (rust_print_typedef): Update.
1146 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1147 * stabsread.c (stab_reg_to_regnum): Update.
1148 (define_symbol): Update.
1149 (read_enum_type): Update.
1150 (common_block_end): Update.
1151 (cleanup_undefined_types_1): Update.
1152 (scan_file_globals): Update.
1153 * stack.c (print_frame_arg): Update.
1154 (print_frame_args): Update.
1155 (find_frame_funname): Update.
1156 (info_frame_command_core): Update.
1157 (iterate_over_block_locals): Update.
1158 (print_block_frame_labels): Update.
1159 (do_print_variable_and_value): Update.
1160 (iterate_over_block_arg_vars): Update.
1161 (return_command): Update.
1162 * symmisc.c (dump_symtab_1): Update.
1163 (print_symbol): Update.
1164 * symtab.c (eq_symbol_entry): Update.
1165 (symbol_cache_dump): Update.
1166 (lookup_language_this): Update.
1167 (find_pc_sect_line): Update.
1168 (skip_prologue_sal): Update.
1169 (symbol_search::compare_search_syms): Update.
1170 (treg_matches_sym_type_name): Update.
1171 (search_symbols): Update.
1172 (print_symbol_info): Update.
1173 (rbreak_command): Update.
1174 (completion_list_add_symbol): Update.
1175 (find_gnu_ifunc): Update.
1176 (get_symbol_address): Update.
1177 (search_module_symbols): Update.
1178 (info_module_subcommand): Update.
1179 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1180 (SYMBOL_LINKAGE_NAME): Remove.
1181 (SYMBOL_DEMANGLED_NAME): Remove.
1182 (SYMBOL_PRINT_NAME): Remove.
1183 (SYMBOL_SEARCH_NAME): Remove.
1184 * tracepoint.c (set_traceframe_context): Update.
1185 (validate_actionline): Update.
1186 (collection_list::collect_symbol): Update.
1187 (encode_actions_1): Update.
1188 (info_scope_command): Update.
1189 (print_one_static_tracepoint_marker): Update.
1190 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1191 * valops.c (address_of_variable): Update.
1192 (find_overload_match): Update.
1193 (find_oload_champ): Update.
1194
c9d95fa3
CB
11952019-11-22 Christian Biesinger <cbiesinger@google.com>
1196
1197 * ada-lang.c (ada_lookup_simple_minsym): Update.
1198 (ada_collect_symbol_completion_matches): Update.
1199 * ada-tasks.c (read_atcb): Update.
1200 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1201 (amd64_windows_skip_trampoline_code): Update.
1202 * arm-tdep.c (skip_prologue_function): Update.
1203 (arm_skip_stack_protector): Update.
1204 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1205 (arm_wince_skip_main_prologue): Update.
1206 * ax-gdb.c (gen_expr): Update.
1207 * block.c (call_site_for_pc): Update.
1208 * blockframe.c (find_pc_partial_function): Update.
1209 * breakpoint.c (set_breakpoint_location_function): Update.
1210 * btrace.c (ftrace_print_function_name): Update.
1211 (ftrace_function_switched): Update.
1212 * c-valprint.c (print_unpacked_pointer): Update.
1213 * coffread.c (coff_symfile_read): Update.
1214 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1215 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1216 * dwarf-index-write.c (write_psymbols): Update.
1217 * dwarf2loc.c (call_site_to_target_addr): Update.
1218 (func_verify_no_selftailcall): Update.
1219 (tailcall_dump): Update.
1220 (call_site_find_chain_1): Update.
1221 (dwarf_expr_reg_to_entry_parameter): Update.
1222 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1223 * eval.c (evaluate_funcall): Update.
1224 (evaluate_subexp_standard): Update.
1225 (evaluate_subexp_for_sizeof): Update.
1226 * expprint.c (print_subexp_standard): Update.
1227 (dump_subexp_body_standard): Update.
1228 * frame.c (get_prev_frame_always_1): Update.
1229 * frv-tdep.c (frv_skip_main_prologue): Update.
1230 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1231 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1232 (gnuv3_get_typename_from_type_info): Update.
1233 (gnuv3_skip_trampoline): Update.
1234 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1235 * i386-tdep.c (i386_skip_main_prologue): Update.
1236 (i386_pe_skip_trampoline_code): Update.
1237 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1238 * infcall.c (get_function_name): Update.
1239 * linespec.c (minsym_found): Update.
1240 * linux-fork.c (info_checkpoints_command): Update.
1241 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1242 (m32c_m16c_pointer_to_address): Update.
1243 * maint.c (maintenance_translate_address): Update.
1244 * minsyms.c (add_minsym_to_hash_table): Update.
1245 (add_minsym_to_demangled_hash_table): Update.
1246 (lookup_minimal_symbol_mangled): Update.
1247 (lookup_minimal_symbol_demangled): Update.
1248 (lookup_minimal_symbol_linkage): Update.
1249 (lookup_minimal_symbol_text): Update.
1250 (lookup_minimal_symbol_by_pc_name): Update.
1251 (minimal_symbol_is_less_than): Update.
1252 (compact_minimal_symbols): Update.
1253 (build_minimal_symbol_hash_tables): Update.
1254 (find_solib_trampoline_target): Update.
1255 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1256 (mips_skip_pic_trampoline_code): Update.
1257 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1258 * objc-lang.c (info_selectors_command): Update.
1259 (info_classes_command): Update.
1260 (find_methods): Update.
1261 (find_imps): Update.
1262 * p-valprint.c (pascal_val_print): Update.
1263 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1264 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1265 * printcmd.c (build_address_symbolic): Update.
1266 (info_symbol_command): Update.
1267 * psymtab.c (psymbol_name_matches): Update.
1268 (match_partial_symbol): Update.
1269 (lookup_partial_symbol): Update.
1270 (print_partial_symbols): Update.
1271 (sort_pst_symbols): Update.
1272 (maintenance_check_psymtabs): Update.
1273 * python/py-framefilter.c (py_print_frame): Update.
1274 * python/python.c (gdbpy_rbreak): Update.
1275 * record-btrace.c (btrace_get_bfun_name): Update.
1276 (btrace_call_history): Update.
1277 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1278 (rs6000_skip_trampoline_code): Update.
1279 * sol-thread.c (info_cb): Update.
1280 * stabsread.c (scan_file_globals): Update.
1281 * stack.c (find_frame_funname): Update.
1282 (info_frame_command_core): Update.
1283 * symmisc.c (dump_msymbols): Update.
1284 * symtab.c (symbol_natural_name): Rename to..,
1285 (general_symbol_info::natural_name): ...this.
1286 (symbol_demangled_name): Rename to...
1287 (general_symbol_info::demangled_name): ...this.
1288 (symbol_search_name): Rename to...
1289 (general_symbol_info::search_name): ...this.
1290 (symbol_matches_search_name): Update.
1291 (find_pc_sect_line): Update.
1292 (skip_prologue_sal): Update.
1293 (search_symbols): Update.
1294 (print_msymbol_info): Update.
1295 (rbreak_command): Update.
1296 (completion_list_add_msymbol): Update.
1297 (completion_list_objc_symbol): Update.
1298 (get_msymbol_address): Update.
1299 * symtab.h (struct general_symbol_info): Add member functions
1300 natural_name (), linkage_name (), print_name (), demangled_name (),
1301 and search_name ().
1302 (SYMBOL_NATURAL_NAME): Update.
1303 (symbol_natural_name): Move to a member function on general_symbol_info.
1304 (SYMBOL_DEMANGLED_NAME): Update.
1305 (symbol_demangled_name): Move to a member function on
1306 general_symbol_info.
1307 (SYMBOL_SEARCH_NAME): Update.
1308 (symbol_search_name): Move to a member function on general_symbol_info.
1309 (MSYMBOL_NATURAL_NAME): Remove.
1310 (MSYMBOL_LINKAGE_NAME): Remove.
1311 (MSYMBOL_PRINT_NAME): Remove.
1312 (MSYMBOL_DEMANGLED_NAME): Remove.
1313 (MSYMBOL_SEARCH_NAME): Remove.
1314 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1315
f8bab2d6
CB
13162019-11-22 Christian Biesinger <cbiesinger@google.com>
1317
1318 * symtab.c (create_demangled_names_hash): Use per_bfd->
1319 minimal_symbol_count for computing the initial size, if greater
1320 than our default size.
1321
85e7588d
TV
13222019-11-22 Tom de Vries <tdevries@suse.de>
1323
1324 * contrib/words.sh: Improve words extraction.
1325
f6180073
TV
13262019-11-22 Tom de Vries <tdevries@suse.de>
1327
1328 * contrib/words.sh: Combine sed invocations.
1329
f10ffa41
CB
13302019-11-21 Christian Biesinger <cbiesinger@google.com>
1331
1332 * Makefile.in: Update.
1333 * demangle.c: Rename to...
1334 * gdb-demangle.c: ..this.
1335 (is_cplus_marker): Change return type to bool.
1336 (_initialize_demangler): Rename to...
1337 (_initialize_gdb_demangle): ...this.
1338 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1339 * symtab.h (demangle): Remove declaration; instead include
1340 gdb-demangle.h.
1341
6ba18521
TT
13422019-11-21 Tom Tromey <tromey@adacore.com>
1343
1344 * gdbsupport/format.c (format_pieces): Parse %I64d.
1345 * unittests/format_pieces-selftests.c (test_windows_formats): New
1346 function.
1347 (run_tests): Call it.
1348
34877895
PJ
13492019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1350
1351 Byte reverse display of variables with DW_END_big, DW_END_little
1352 (DW_AT_endianity) dwarf attributes if different than the native
1353 byte order.
1354 * ada-lang.c (ada_value_binop):
1355 Use type_byte_order instead of gdbarch_byte_order.
1356 * ada-valprint.c (printstr):
1357 (ada_val_print_string):
1358 * ada-lang.c (value_pointer):
1359 (ada_value_binop):
1360 Use type_byte_order instead of gdbarch_byte_order.
1361 * c-lang.c (c_get_string):
1362 Use type_byte_order instead of gdbarch_byte_order.
1363 * c-valprint.c (c_val_print_array):
1364 Use type_byte_order instead of gdbarch_byte_order.
1365 * cp-valprint.c (cp_print_class_member):
1366 Use type_byte_order instead of gdbarch_byte_order.
1367 * dwarf2loc.c (rw_pieced_value):
1368 Use type_byte_order instead of gdbarch_byte_order.
1369 * dwarf2read.c (read_base_type): Handle DW_END_big,
1370 DW_END_little
1371 * f-lang.c (f_get_encoding):
1372 Use type_byte_order instead of gdbarch_byte_order.
1373 * findvar.c (default_read_var_value):
1374 Use type_byte_order instead of gdbarch_byte_order.
1375 * gdbtypes.c (check_types_equal):
1376 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1377 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1378 and TYPE_ENDIANITY_LITTLE if set.
1379 (type_byte_order): new function.
1380 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1381 (struct main_type) <flag_endianity_not_default>:
1382 New field.
1383 (type_byte_order): New function.
1384 * infcmd.c (default_print_one_register_info):
1385 Use type_byte_order instead of gdbarch_byte_order.
1386 * p-lang.c (pascal_printstr):
1387 Use type_byte_order instead of gdbarch_byte_order.
1388 * p-valprint.c (pascal_val_print):
1389 Use type_byte_order instead of gdbarch_byte_order.
1390 * printcmd.c (print_scalar_formatted):
1391 Use type_byte_order instead of gdbarch_byte_order.
1392 * solib-darwin.c (darwin_current_sos):
1393 Use type_byte_order instead of gdbarch_byte_order.
1394 * solib-svr4.c (solib_svr4_r_ldsomap):
1395 Use type_byte_order instead of gdbarch_byte_order.
1396 * stap-probe.c (stap_modify_semaphore):
1397 Use type_byte_order instead of gdbarch_byte_order.
1398 * target-float.c (target_float_same_format_p):
1399 Use type_byte_order instead of gdbarch_byte_order.
1400 * valarith.c (scalar_binop):
1401 (value_bit_index):
1402 Use type_byte_order instead of gdbarch_byte_order.
1403 * valops.c (value_cast):
1404 Use type_byte_order instead of gdbarch_byte_order.
1405 * valprint.c (generic_emit_char):
1406 (generic_printstr):
1407 (val_print_string):
1408 Use type_byte_order instead of gdbarch_byte_order.
1409 * value.c (unpack_long):
1410 (unpack_bits_as_long):
1411 (unpack_value_bitfield):
1412 (modify_field):
1413 (pack_long):
1414 (pack_unsigned_long):
1415 Use type_byte_order instead of gdbarch_byte_order.
1416 * findvar.c (unsigned_pointer_to_address):
1417 (signed_pointer_to_address):
1418 (unsigned_address_to_pointer):
1419 (address_to_signed_pointer):
1420 (default_read_var_value):
1421 (default_value_from_register):
1422 Use type_byte_order instead of gdbarch_byte_order.
1423 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1424 Use type_byte_order instead of gdbarch_byte_order.
1425 * riscv-tdep.c (riscv_print_one_register_info):
1426 Use type_byte_order instead of gdbarch_byte_order.
1427
87fb00ea
SM
14282019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1429
1430 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1431 (current_ui_gdb_stdin_ptr): Likewise.
1432 (current_ui_gdb_stderr_ptr): Likewise.
1433 (current_ui_gdb_stdlog_ptr): Likewise.
1434 (current_ui_current_uiout_ptr): Likewise.
1435 (gen_ret_current_ui_field_ptr): Remove.
1436
65d1cd5f
TV
14372019-11-21 Tom de Vries <tdevries@suse.de>
1438
1439 PR gdb/24956
1440 * cli/cli-script.c (execute_control_command): Only switch to
1441 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1442
9f6ad286
TT
14432019-11-19 Tom Tromey <tom@tromey.com>
1444
1445 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1446 Now static. Change type of "name".
1447 (tui_set_win_height_command): Don't copy "arg".
1448 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1449 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1450
435d3d88
AT
14512019-11-19 Ali Tamur <tamur@google.com>
1452
1453 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1454 "if (attr != nullptr)".
1455 (dwarf2_find_base_address): Likewise.
1456 (dwarf2_build_include_psymtabs): Likewise.
1457 (read_cutu_die_from_dwo): Likewise.
1458 (read_func_scope): Likewise.
1459 (read_call_site_scope): Likewise.
1460 (dwarf2_get_pc_bounds): Likewise.
1461 (dwarf2_record_block_ranges): Likewise.
1462 (dwarf2_add_field): Likewise.
1463 (dwarf2_add_member_fn): Likewise.
1464 (read_structure_type): Likewise.
1465 (read_enumeration_type): Likewise.
1466 (read_array_type): Likewise.
1467 (read_array_order): Likewise.
1468 (read_set_type): Likewise.
1469 (read_common_block): Likewise.
1470 (read_tag_reference_type): Likewise.
1471 (read_tag_string_type): Likewise.
1472 (read_subroutine_type): Likewise.
1473 (read_base_type): Likewise.
1474 (read_subrange_type): Likewise.
1475 (new_symbol): Likewise.
1476 (prepare_one_comp_unit): Likewise.
1477
c9739b6a
TT
14782019-11-19 Tom Tromey <tromey@adacore.com>
1479
1480 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1481 result in error when DebugActiveProcess fails.
1482
494409bb
SDJ
14832019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1484 Pedro Alves <palves@redhat.com>
1485
1486 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1487 * target.c (target_stack::push): Call 'unpush' if there's a
1488 target on top of the stack.
1489
2e953aca
PW
14902019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1491
1492 * python/py-block.c (blpy_dealloc): Call tp_free.
1493 (blpy_block_syms_dealloc): Likewise.
1494 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1495 * python/py-inferior.c (infpy_dealloc): Likewise.
1496 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1497 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1498 * python/py-symbol.c (sympy_dealloc): Likewise.
1499 * python/py-symtab.c (stpy_dealloc): Likewise.
1500 * python/py-type.c (typy_iterator_dealloc): Likewise.
1501
6edc43ec
CB
15022019-11-18 Christian Biesinger <cbiesinger@google.com>
1503
1504 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1505 constructor instead of using a class initializer.
1506
cd850b40
CB
15072019-11-15 Christian Biesinger <cbiesinger@google.com>
1508
1509 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1510 * configure: Regenerate.
1511 * configure.ac: Don't source common.host.
1512 * gdbsupport/common.host: Remove.
1513 * gdbsupport/mingw-strerror.c: Remove.
1514 * gdbsupport/posix-strerror.c: Rename to...
1515 * gdbsupport/safe-strerror.c: ...this.
1516
53fea9c7
CB
15172019-11-15 Christian Biesinger <cbiesinger@google.com>
1518
1519 * maint.c (scoped_command_stats::print_time): Use localtime_r
1520 instead of localtime (provided through gnulib if necessary).
1521 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1522 of ctime.
1523
f8e27d88
CB
15242019-11-15 Christian Biesinger <cbiesinger@google.com>
1525
1526 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1527 avoid compile errors.
1528
5abebf3c
CB
15292019-11-15 Christian Biesinger <cbiesinger@google.com>
1530
1531 * config.in: Regenerate.
1532 * configure: Regenerate.
1533 * gdbsupport/common.m4: No longer check for strerror_r.
1534 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1535 POSIX version of strerror_r, now that gnulib provides it if
1536 necessary.
1537
9a351667
CB
15382019-11-14 Christian Biesinger <cbiesinger@google.com>
1539
1540 * README (`configure' options): Update.
1541
55708e99
TT
15422019-11-14 Tom Tromey <tromey@adacore.com>
1543
1544 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1545 expected type for the RHS if the LHS is a convenience variable.
1546
4b09bb2e
SM
15472019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1548
1549 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1550 Provide explicit default and copy constructor.
1551
bd454f8b
PW
15522019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1553
1554 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1555 only call Py_INCREF (newbp) in the bppy_pending_object case.
1556
d1aa3cf0
TT
15572019-11-13 Tom Tromey <tromey@adacore.com>
1558
1559 PR build/25182:
1560 * psympriv.h (partial_symbol): Remove static assert.
1561 * symtab.h (general_symbol_info, symbol): Remove static assert.
1562
e06f3d6e
AB
15632019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1564
1565 * gdbsupport/format.c (format_pieces::format_pieces): Support
1566 printf 'z' size modifier.
1567 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1568 * printcmd.c (ui_printf): Handle size_t_arg.
1569 * ui-out.c (ui_out::vmessage): Likewise.
1570 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1571 function.
1572 (run_tests): Call test_format_int_sizes.
1573
468c0cbb
CB
15742019-11-12 Christian Biesinger <cbiesinger@google.com>
1575
1576 * ada-exp.y (write_ambiguous_var): Update.
1577 * buildsym.c (add_symbol_to_list): Update.
1578 * dwarf2read.c (read_variable): Update.
1579 (new_symbol): Update.
1580 * jit.c (finalize_symtab): Update.
1581 * language.c (language_alloc_type_symbol): Update.
1582 * symtab.c (fixup_symbol_section): Update.
1583 (initialize_objfile_symbol_1): Move code to...
1584 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1585 (allocate_symbol): Update.
1586 (allocate_template_symbol): Update.
1587 (get_symbol_address): Update.
1588 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1589 of having as a field, and add a constructor.
1590 (SYMBOL_VALUE): Update.
1591 (SYMBOL_VALUE_ADDRESS): Update.
1592 (SET_SYMBOL_VALUE_ADDRESS): Update.
1593 (SYMBOL_VALUE_BYTES): Update.
1594 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1595 (SYMBOL_BLOCK_VALUE): Update.
1596 (SYMBOL_VALUE_CHAIN): Update.
1597 (SYMBOL_LANGUAGE): Update.
1598 (SYMBOL_SECTION): Update.
1599 (SYMBOL_OBJ_SECTION): Update.
1600 (SYMBOL_SET_LANGUAGE): Update.
1601 (SYMBOL_SET_LINKAGE_NAME): Update.
1602 (SYMBOL_SET_NAMES): Update.
1603 (SYMBOL_NATURAL_NAME): Update.
1604 (SYMBOL_LINKAGE_NAME): Update.
1605 (SYMBOL_DEMANGLED_NAME): Update.
1606 (SYMBOL_SEARCH_NAME): Update.
1607 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1608 (struct symbol): Update.
1609 (struct template_symbol): Update.
1610 (struct rust_vtable_symbol): Update.
1611 * xcoffread.c (SYMBOL_DUP): Update.
1612
ed2c82c3
TT
16132019-11-12 Tom Tromey <tom@tromey.com>
1614
1615 * tui/tui-layout.c (show_layout): Set current_layout.
1616 (show_source_disasm_command, show_data)
1617 (show_source_or_disasm_and_command): Don't set current_layout.
1618
d9fcefd5
TT
16192019-11-12 Tom Tromey <tom@tromey.com>
1620
1621 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1622
45e42163
TT
16232019-11-12 Tom Tromey <tom@tromey.com>
1624
1625 * tui/tui-win.c (resize_message): New global.
1626 (show_tui_resize_message): New function.
1627 (tui_async_resize_screen): Print message if requested.
1628 (_initialize_tui_win): Add tui-resize-message setting.
1629 * NEWS: Add entry for new commands.
1630
c86d74cc
TT
16312019-11-11 Tom Tromey <tom@tromey.com>
1632
1633 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1634 functions.
1635
7b7b9424
CB
16362019-11-11 Christian Biesinger <cbiesinger@google.com>
1637
1638 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1639
086baaf1
AB
16402019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1641
1642 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1643 function.
1644 * python/python-internal.h (gdbpy_lookup_static_symbols):
1645 Declare new function.
1646 * python/python.c (python_GdbMethods): Add
1647 gdb.lookup_static_symbols method.
1648 * NEWS: Mention gdb.lookup_static_symbols.
1649
09ff83af
AB
16502019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1651
1652 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1653 static block of current object file first. Also fix typo in
1654 header comment.
1655
eb2dd8df
AB
16562019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1657
1658 * stack.c (set_last_displayed_sal): Delete.
1659 (last_displayed_sal_valid): Delete.
1660 (last_displayed_pspace): Delete.
1661 (last_displayed_addr): Delete.
1662 (last_displayed_symtab): Delete.
1663 (last_displayed_line): Delete.
1664 (class last_displayed_symtab_info_type): New.
1665 (last_displayed_symtab_info): New static global variable.
1666 (print_frame_info): Call methods on last_displayed_symtab_info.
1667 (clear_last_displayed_sal): Update header comment, and make use of
1668 last_displayed_symtab_info.
1669 (last_displayed_sal_is_valid): Likewise.
1670 (get_last_displayed_pspace): Likewise.
1671 (get_last_displayed_addr): Likewise.
1672 (get_last_displayed_symtab): Likewise.
1673 (get_last_displayed_line): Likewise.
1674 (get_last_displayed_sal): Likewise.
1675 * stack.h (clear_last_displayed_sal): Update header comment.
1676 (last_displayed_sal_is_valid): Likewise.
1677 (get_last_displayed_pspace): Likewise.
1678 (get_last_displayed_addr): Likewise.
1679 (get_last_displayed_symtab): Likewise.
1680 (get_last_displayed_line): Likewise.
1681 (get_last_displayed_sal): Likewise.
1682
62137775
AB
16832019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1684
1685 * stack.c (frame_show_address): Convert return type to bool.
1686 * stack.h (frame_show_address): Likewise, and update header
1687 comment.
1688
cf57ad6d
AB
16892019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1690
1691 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1692 * unittests/vec-utils-selftests.c: New file.
1693 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1694
0b026263
TT
16952019-11-10 Tom Tromey <tom@tromey.com>
1696
1697 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1698 (tui_highlight_win): Likewise.
1699 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1700 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1701 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1702 Don't set can_highlight.
1703
b049ce2d
TT
17042019-11-10 Tom Tromey <tom@tromey.com>
1705
1706 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1707 Remove unused declaration.
1708
992a7040
TT
17092019-11-08 Tom Tromey <tromey@adacore.com>
1710
1711 * top.c (read_command_file): Update.
1712 (command_line_input): Make return type const.
1713 * python/py-gdb-readline.c: Update.
1714 * linespec.c (decode_line_2): Update.
1715 * defs.h (command_line_input): Make return type const.
1716 * cli/cli-script.c (read_next_line): Make return type const.
1717 * ada-lang.c (get_selections): Update.
1718
ca3a04f6
CB
17192019-11-06 Christian Biesinger <cbiesinger@google.com>
1720
1721 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1722 * mi/mi-main.c (output_cores): Likewise.
1723 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1724 (linux_xfer_osdata_modules): Likewise.
1725 * remote.c (register_remote_support_xml): Likewise.
1726 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1727 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1728
e0eac551
TT
17292019-11-06 Tom Tromey <tom@tromey.com>
1730
1731 * tui/tui-interp.c: Don't include readline.h.
1732 * tui/tui-hooks.c: Don't include readline.h.
1733 * symmisc.c: Include tilde.h, not readline.h.
1734 * symfile.c: Include tilde.h, not readline.h.
1735 * source.c: Include tilde.h, not readline.h.
1736 * solib.c: Include tilde.h, not readline.h.
1737 * psymtab.c: Include tilde.h, not readline.h.
1738 * exec.c: Include tilde.h, not readline.h.
1739 * corelow.c: Include tilde.h, not readline.h.
1740 * cli/cli-dump.c: Include tilde.h, not readline.h.
1741 * cli/cli-cmds.c: Don't include readline.h.
1742
825165c5
TT
17432019-11-05 Tom Tromey <tom@tromey.com>
1744
1745 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1746 (tui_disassemble): Set addr_size.
1747 (tui_disasm_window::set_contents): Use addr_size.
1748
91ae903f
TT
17492019-11-05 Tom Tromey <tom@tromey.com>
1750
1751 * rust-lang.c (rust_language_defn): Update.
1752 * python/py-value.c (valpy_string): Call c_get_string.
1753 * p-lang.c (pascal_language_defn): Update.
1754 * opencl-lang.c (opencl_language_defn): Update.
1755 * objc-lang.c (objc_language_defn): Update.
1756 * m2-lang.c (m2_language_defn): Update.
1757 * language.c (unknown_language_defn, auto_language_defn): Update.
1758 (default_get_string): Remove.
1759 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1760 * go-lang.c (go_language_defn): Update.
1761 * f-lang.c (f_language_defn): Update.
1762 * d-lang.c (d_language_defn): Update.
1763 * c-lang.c (c_language_defn, cplus_language_defn)
1764 (asm_language_defn, minimal_language_defn): Update.
1765 * ada-lang.c (ada_language_defn): Update.
1766 * language.h (struct language_defn) <la_get_string>: Remove.
1767 (LA_GET_STRING): Remove.
1768 (default_get_string): Don't declare.
1769
1df2f9ef
TT
17702019-11-05 Tom Tromey <tom@tromey.com>
1771
1772 * tui/tui-source.h (struct tui_source_window): Inline
1773 constructor. Remove destructor.
1774 <style_changed, m_observable>: Move to superclass.
1775 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1776 (struct tui_source_window_base): Move private members to end.
1777 <style_changed, m_observable>: Move from tui_source_window.
1778 * tui/tui-winsource.c (tui_copy_source_line): Move from
1779 tui-source.c. Rename from copy_source_line. Add special handling
1780 for negative line number.
1781 (tui_source_window_base::style_changed): Move from
1782 tui_source_window.
1783 (tui_source_window_base): Register observer.
1784 (~tui_source_window_base): New.
1785 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1786 rename.
1787 (tui_source_window::set_contents): Use tui_copy_source_line.
1788 (tui_source_window::tui_source_window): Move to tui-source.h.
1789 (tui_source_window::~tui_source_window): Remove.
1790 (tui_source_window::style_changed): Move to superclass.
1791 * tui/tui-disasm.c (tui_disassemble): Create string file with
1792 styling, when possible. Add "addr_size" parameter.
1793 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1794 Don't compute maximum size.
1795 (len_without_escapes): New function
1796
5d051055
TT
17972019-11-05 Tom Tromey <tom@tromey.com>
1798
1799 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1800 std::string.
1801 * tui/tui-winsource.c (tui_show_source_line): Update.
1802 * tui/tui-source.c (tui_source_window::set_contents): Update.
1803 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1804
ade7beea
CB
18052019-11-05 Christian Biesinger <cbiesinger@google.com>
1806
1807 * symtab.h (gdb_static_assert): Put && operator at the beginning
1808 of the line instead of the end.
1809
3573abe1
CB
18102019-11-04 Christian Biesinger <cbiesinger@google.com>
1811
1812 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1813 and sizeof (symbol).
1814 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1815
dae8b3eb
RO
18162019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1817
1818 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1819 * configure.host: Mark *-*-solaris2.10* obsolete.
1820 * configure.tgt: Mark Solaris < 11 obsolete.
1821 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1822 Update target triplet.
1823
5df96a4e
TT
18242019-11-01 Tom Tromey <tromey@adacore.com>
1825
1826 * utils.c (print_sys_errmsg): Simplify.
1827
b7481649
TT
18282019-11-01 Tom Tromey <tromey@adacore.com>
1829
1830 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1831
e48f6033
CB
18322019-11-01 Christian Biesinger <cbiesinger@google.com>
1833
1834 * configure: Regenerate.
1835 * configure.ac: Remove check for strerror_r.
1836 * gdbsupport/common.m4: Check for strerror_r.
1837
bd5766ec
LM
18382019-11-01 Luis Machado <luis.machado@linaro.org>
1839
1840 PR gdb/25124
1841
1842 * arm-tdep.c (arm_per_objfile): Rename to ...
1843 (arm_per_bfd): ... this.
1844 (arm_objfile_data_key): Rename to ...
1845 (arm_bfd_data_key): ... this.
1846 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1847 data.
1848 (arm_record_special_symbol): Likewise.
1849
e1709896
AB
18502019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1851
1852 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1853 end.
1854 * c-typeprint.c (c_print_typedef): Likewise.
1855 * f-typeprint.c (f_print_typedef): Likewise.
1856 * m2-typeprint.c (m2_print_typedef): Likewise.
1857 * p-typeprint.c (pascal_print_typedef): Likewise.
1858 * rust-lang.c (rust_print_typedef): Likewise.
1859 * symtab.c (print_symbol_info): Print a newline after calling
1860 typedef_print.
1861
165f8965
AB
18622019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1863
1864 * symtab.c (info_module_cmdlist): New variable.
1865 (info_module_command): New function.
1866 (search_module_symbols): New function.
1867 (info_module_subcommand): New function.
1868 (struct info_modules_var_func_options): New struct.
1869 (info_modules_var_func_options_defs): New variable.
1870 (make_info_modules_var_func_options_def_group): New function.
1871 (info_module_functions_command): New function.
1872 (info_module_variables_command): New function.
1873 (info_module_var_func_command_completer): New function.
1874 (_initialize_symtab): Register new 'info module functions' and
1875 'info module variables' commands.
1876 * symtab.h (typedef symbol_search_in_module): New typedef.
1877 (search_module_symbols): Declare new function.
1878 * NEWS: Mention new commands.
1879
59c35742
AB
18802019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1881
1882 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1883 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1884 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1885 MODULES_DOMAIN.
1886 (scan_partial_symbols): Only create partial module symbols for non
1887 declarations.
1888 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1889 and MODULES_DOMAIN.
1890 * symtab.c (search_domain_name): Likewise.
1891 (search_symbols): Likewise.
1892 (print_symbol_info): Likewise.
1893 (symtab_symbol_info): Likewise.
1894 (info_modules_command): New function.
1895 (_initialize_symtab): Register 'info modules' command.
1896 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1897 * NEWS: Mention new 'info modules' command.
1898
aed61d02
PW
18992019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1900
1901 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1902 and $_gdb_maint_setting_str.
1903
9ad9b77d
PW
19042019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1905
1906 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1907 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1908 (str_value_from_setting, gdb_setting_str_internal_fn)
1909 (gdb_maint_setting_str_internal_fn): New functions.
1910 (_initialize_cli_cmds): Define the new convenience functions.
1911 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1912 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1913
8d6efaa2
CB
19142019-10-31 Christian Biesinger <cbiesinger@google.com>
1915
1916 * agent.c (set_can_use_agent): When the setting is turned on,
1917 look up agent symbols if we don't have them yet.
1918 (agent_new_objfile): Don't look up agent symbols when the agent
1919 setting is off.
1920
33cb1647
CB
19212019-10-31 Christian Biesinger <cbiesinger@google.com>
1922
1923 * config.in: Regenerate.
1924
b231e86a
CB
19252019-10-31 Christian Biesinger <cbiesinger@google.com>
1926
1927 * configure: Regenerate.
1928 * configure.ac: Check for strerror_r.
1929 * gdbsupport/common-utils.h (safe_strerror): Change return value
1930 to const char * and document that this function is now threadsafe.
1931 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1932 thread_local and call strerror_r, if available.
1933 * utils.c (perror_string): Update.
1934 (print_sys_errmsg): Update.
1935
a2726d4f
LM
19362019-10-31 Luis Machado <luis.machado@linaro.org>
1937
1938 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1939 objfile_key.
1940 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1941 objfile to fetch per-bfd data.
1942 (arm_find_exidx_entry): Likewise.
1943
75cafaa6
CB
19442019-10-31 Christian Biesinger <cbiesinger@google.com>
1945
1946 * gdbsupport/agent.c (debug_agent): Change type to bool.
1947 (use_agent): Likewise.
1948 (all_agent_symbols_look_up): Likewise.
1949 (agent_loaded_p): Change return value to bool.
1950 (agent_look_up_symbols): Update.
1951 (agent_capability_check): Change return value to bool.
1952 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1953 (debug_agent): Change type to bool.
1954 (use_agent): Likewise.
1955 (agent_capability_check): Change return value to bool.
1956
808590ec
CB
19572019-10-30 Christian Biesinger <cbiesinger@google.com>
1958
1959 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1960 (build_minimal_symbol_hash_tables): Code to clear the table moved
1961 to clear_minimal_symbol_hash_tables.
1962 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1963 when needed.
1964
f18ad8a1
SM
19652019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1966
1967 * infcmd.c: Remove includes.
1968 * infrun.c: Remove includes.
1969
de93309a
SM
19702019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1971
1972 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1973 (grow_vect): Remove declaration.
1974 (ada_type_of_array): Remove declaration.
1975 (ada_update_initial_language): Remove declaration.
1976 (ada_fold_name): Remove declaration.
1977 (ada_fill_in_ada_prototype): Remove declaration.
1978 (user_select_syms): Remove declaration.
1979 (get_selections): Remove declaration.
1980 (ada_tag_type): Remove declaration.
1981 (ada_value_tag): Remove declaration.
1982 (ada_is_others_clause): Remove declaration.
1983 (ada_in_variant): Remove declaration.
1984 (ada_value_struct_elt): Remove declaration.
1985 (ada_attribute_name): Remove declaration.
1986 (ada_system_address_type): Remove declaration.
1987 * ada-lang.c (ada_watch_location_expression): Make static.
1988 (GROW_VECT): Move here from ada-lang.h.
1989 (grow_vect): Make static.
1990 (ada_update_initial_language): Make static.
1991 (ada_fold_name): Make static.
1992 (ada_type_of_array): Make static.
1993 (encoded_ordered_before): Move up.
1994 (sort_choices): Move up.
1995 (print_signatures): Move up.
1996 (ada_print_symbol_signature): Move up.
1997 (get_selections): Move up and make static.
1998 (user_select_syms): Move up and make static.
1999 (ada_value_struct_elt): Move up and make static.
2000 (ada_tag_type): Make static.
2001 (ada_value_tag): Make static.
2002 (ada_is_others_clause): Make static.
2003 (ada_in_variant): Make static.
2004 (ada_attribute_name): Make static.
2005
cdc46a9f
SM
20062019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2007
2008 * ada-lang.c: Remove includes.
2009 * ada-typeprint.c: Remove includes.
2010 * ada-valprint.c: Remove includes.
2011
90421c56
SM
20122019-10-29 Simon Marchi <simon.marchi@efficios.com>
2013
2014 * addrmap.c: Add static assertions of type size, moved from
2015 _initialize_addrmap.
2016 (_initialize_addrmap): Remove.
2017
31edb802
CB
20182019-10-29 Christian Biesinger <cbiesinger@google.com>
2019
2020 * coffread.c (record_minimal_symbol): Update.
2021 (process_coff_symbol): Update.
2022 * dbxread.c (read_dbx_symtab): Update.
2023 * dwarf2read.c (add_partial_symbol): Update.
2024 (fixup_go_packaging): Update.
2025 (load_partial_dies): Update.
2026 (new_symbol): Update.
2027 * elfread.c (record_minimal_symbol): Change signature to use
2028 gdb::string_view instead of name+len.
2029 (elf_symtab_read): Update.
2030 (elf_rel_plt_read): Update.
2031 * mdebugread.c (parse_partial_symbols): Update.
2032 (handle_psymbol_enumerators): Update.
2033 (new_symbol): Update.
2034 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2035 to use gdb::string_view instead of name+len.
2036 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2037 * psympriv.h (add_psymbol_to_list): Likewise.
2038 * psymtab.c (add_psymbol_to_bcache): Likewise.
2039 (add_psymbol_to_list): Likewise.
2040 * stabsread.c (define_symbol): Update.
2041 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2042 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2043 (symbol_set_names): Likewise.
2044 * xcoffread.c (scan_xcoff_symtab): Update.
2045
0c921b21
CB
20462019-10-29 Christian Biesinger <cbiesinger@google.com>
2047
2048 * symtab.h (symbol_set_names): Document that copy_name must be
2049 set to true for non-nullterminated strings.
2050 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2051 linkage_name if the entry was not found and we need to demangle.
2052
35e65c49
CB
20532019-10-29 Christian Biesinger <cbiesinger@google.com>
2054
2055 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2056 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2057 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2058 * gdbsupport/gdb_binary_search.h: New file.
2059
ed2a2229
CB
20602019-10-29 Christian Biesinger <cbiesinger@google.com>
2061
2062 * NEWS: Mention new --with-system-gdbinit-dir option.
2063 * config.in: Regenerate.
2064 * configure: Regenerate.
2065 * configure.ac: Add new option --with-system-gdbinit-dir.
2066 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2067 for a ".gdb" suffix.
2068 * main.c (get_init_files): Change system_gdbinit argument to
2069 a vector and return the files in SYSTEM_GDBINIT_DIR in
2070 addition to SYSTEM_GDBINIT.
2071 (captured_main_1): Update.
2072 (print_gdb_help): Update.
2073 * top.c (print_gdb_configuration): Also print the value of
2074 SYSTEM_GDBINIT_DIR.
2075
87f34879
CB
20762019-10-28 Christian Biesinger <cbiesinger@google.com>
2077
2078 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2079 that takes gdb::string_view arguments.
2080
30baf67b
TV
20812019-10-26 Tom de Vries <tdevries@suse.de>
2082
2083 * aarch64-linux-tdep.c: Fix typos in comments.
2084 * aarch64-tdep.c: Same.
2085 * ada-lang.c: Same.
2086 * amd64-nat.c: Same.
2087 * arc-tdep.c: Same.
2088 * arch/aarch64-insn.c: Same.
2089 * block.c: Same.
2090 * breakpoint.h: Same.
2091 * btrace.h: Same.
2092 * c-varobj.c: Same.
2093 * cli/cli-decode.c: Same.
2094 * cli/cli-script.c: Same.
2095 * cli/cli-utils.h: Same.
2096 * coff-pe-read.c: Same.
2097 * coffread.c: Same.
2098 * compile/compile-cplus-symbols.c: Same.
2099 * compile/compile-object-run.c: Same.
2100 * completer.c: Same.
2101 * corelow.c: Same.
2102 * cp-support.c: Same.
2103 * demangle.c: Same.
2104 * dwarf-index-write.c: Same.
2105 * dwarf2-frame.c: Same.
2106 * dwarf2-frame.h: Same.
2107 * eval.c: Same.
2108 * frame-base.h: Same.
2109 * frame.h: Same.
2110 * gdbcmd.h: Same.
2111 * gdbtypes.h: Same.
2112 * gnu-nat.c: Same.
2113 * guile/scm-objfile.c: Same.
2114 * i386-tdep.c: Same.
2115 * i386-tdep.h: Same.
2116 * infcall.c: Same.
2117 * infcall.h: Same.
2118 * linux-nat.c: Same.
2119 * m68k-tdep.c: Same.
2120 * macroexp.c: Same.
2121 * memattr.c: Same.
2122 * mi/mi-cmd-disas.c: Same.
2123 * mi/mi-getopt.h: Same.
2124 * mi/mi-main.c: Same.
2125 * minsyms.c: Same.
2126 * nat/aarch64-sve-linux-sigcontext.h: Same.
2127 * objfiles.h: Same.
2128 * ppc-linux-nat.c: Same.
2129 * ppc-linux-tdep.c: Same.
2130 * ppc-tdep.h: Same.
2131 * progspace.h: Same.
2132 * prologue-value.h: Same.
2133 * python/py-evtregistry.c: Same.
2134 * python/py-instruction.h: Same.
2135 * record-btrace.c: Same.
2136 * record-full.c: Same.
2137 * remote.c: Same.
2138 * rs6000-tdep.c: Same.
2139 * ser-tcp.c: Same.
2140 * sol-thread.c: Same.
2141 * sparc-sol2-tdep.c: Same.
2142 * sparc64-tdep.c: Same.
2143 * stabsread.c: Same.
2144 * symfile.c: Same.
2145 * symtab.h: Same.
2146 * target.c: Same.
2147 * tracepoint.c: Same.
2148 * tui/tui-data.h: Same.
2149 * tui/tui-io.c: Same.
2150 * tui/tui-win.c: Same.
2151 * tui/tui.c: Same.
2152 * unittests/rsp-low-selftests.c: Same.
2153 * user-regs.h: Same.
2154 * utils.c: Same.
2155 * utils.h: Same.
2156 * valarith.c: Same.
2157 * valops.c: Same.
2158 * valprint.c: Same.
2159 * valprint.h: Same.
2160 * value.c: Same.
2161 * value.h: Same.
2162 * varobj.c: Same.
2163 * x86-nat.h: Same.
2164 * xtensa-tdep.c: Same.
2165
1834d45f
AT
21662019-10-25 Ali Tamur <tamur@google.com>
2167
2168 * charset.c (find_charset_names): Reflect API change.
2169
5396ae17
CB
21702019-10-25 Christian Biesinger <cbiesinger@google.com>
2171
2172 * symtab.c (struct demangled_name_entry): Change demangled name
2173 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2174 part of the struct anymore.
2175 (symbol_set_names): No longer obstack allocate + copy the demangled
2176 name, just store the allocated name from bfd.
2177
93878f47
TT
21782019-10-25 Tom Tromey <tromey@adacore.com>
2179
2180 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2181 (bsearch_cie_cmp, add_cie): Remove.
2182 (find_cie): Reimplement.
2183 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2184 (dwarf2_build_frame_info): Update.
2185
7b71fc97
L
21862019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2187
2188 PR gdb/25126
2189 * symfile.c (reread_symbols): Call forget_cached_source_info to
2190 clear the stale source cache.
2191
cbb5a2ea
CB
21922019-10-24 Christian Biesinger <cbiesinger@google.com>
2193
2194 * configure: Regenerate.
2195 * configure.ac: Remove code that sets python_has_threads.
2196
71737c43
CB
21972019-10-24 Christian Biesinger <cbiesinger@google.com>
2198
2199 * config.in: Regenerate.
2200 * configure: Regenerate.
2201 * configure.ac: Remove the code that uses sed to get the python
2202 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2203
33d569b7
AB
22042019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2205
2206 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2207 error paths.
2208
f16f7b7c
TT
22092019-10-23 Tom Tromey <tom@tromey.com>
2210
2211 * arc-tdep.c: Remove ".." from include.
2212 * frv-tdep.c: Remove ".." from include.
2213 * lm32-tdep.c: Remove ".." from include.
2214 * microblaze-tdep.c: Remove ".." from include.
2215 * or1k-tdep.h: Remove ".." from include.
2216 * s12z-tdep.c: Remove ".." from include.
2217 * Makefile.in (OPCODES_CFLAGS): Add comment.
2218 (TOP_CFLAGS): New variable.
2219 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2220
6999161a
TT
22212019-10-23 Tom Tromey <tom@tromey.com>
2222
2223 * Makefile.in (READLINE_DIR): Update.
2224
12e7c35e
TBA
22252019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2226
2227 * infcall.c (call_function_by_hand_dummy): Fix the function
2228 comment. And extract out a code section into...
2229 (reserve_stack_space): ...this new function.
2230
37055cad
TBA
22312019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2232
2233 * infcall.c (value_arg_coerce): Remove an unused parameter.
2234 (call_function_by_hand_dummy): Update the call to
2235 'value_arg_coerce'.
2236
39bcc47c
TBA
22372019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2238
2239 * infcall.c (call_function_by_hand_dummy): Refactor.
2240
bd888c0f
TBA
22412019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2242
2243 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2244
c12d372d
TT
22452019-10-23 Tom Tromey <tom@tromey.com>
2246
2247 * configure: Rebuild.
2248 * configure.ac: Don't check for sigprocmask.
2249 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2250
4d0b984b
TT
22512019-10-23 Tom Tromey <tom@tromey.com>
2252
2253 * configure: Rebuild.
2254 * acinclude.m4: Use m4_include, not sinclude.
2255
7e785608
TV
22562019-10-23 Tom de Vries <tdevries@suse.de>
2257
2258 PR breakpoints/24687
2259 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2260
403772ef
CB
22612019-10-22 Christian Biesinger <cbiesinger@google.com>
2262
2263 * symtab.c (struct demangled_name_entry) <language>: Change from
2264 bitfield to regular variable.
2265
3a494279
CB
22662019-10-22 Christian Biesinger <cbiesinger@google.com>
2267
2268 * symtab.c (struct demangled_name_entry): Add a constructor.
2269 (free_demangled_name_entry): New function to call the destructor
2270 for demangled_name_entry.
2271 (create_demangled_names_hash): Pass free_demangled_name_entry to
2272 htab_create_alloc.
2273 (symbol_set_names): Call placement new for demangled_name_entry.
2274 * utils.c: No longer include xxhash.h here, now that fast_hash
2275 is inlined in the header.
2276 * utils.h: Instead, include it here.
2277
ccb1ba62
CB
22782019-10-22 Christian Biesinger <cbiesinger@google.com>
2279
2280 * Makefile.in: Link with libxxhash.
2281 * config.in: Regenerate.
2282 * configure: Regenerate.
2283 * configure.ac: Search for libxxhash.
2284 * utils.c (fast_hash): Use xxhash if present.
2285
1a6ff1a9
CB
22862019-10-22 Christian Biesinger <cbiesinger@google.com>
2287
2288 * utils.h (fast_hash): New function.
2289 * symtab.c (hash_demangled_name_entry): Call new function
2290 fast_hash.
2291
7bb43059
CB
22922019-10-22 Christian Biesinger <cbiesinger@google.com>
2293
2294 * symtab.c (struct demangled_name_entry): Change type of mangled
2295 to gdb::string_view. Also adds a constructor that takes the
2296 mangled name.
2297 (hash_demangled_name_entry): Update.
2298 (eq_demangled_name_entry): Update.
2299 (free_demangled_name_entry): New function to call the destructor
2300 now that this is not a POD anymore.
2301 (create_demangled_names_hash): Pass free_demangled_name_entry to
2302 htab_create_alloc.
2303 (symbol_set_names): Update.
2304
7ba99d21
AT
23052019-10-21 Ali Tamur <tamu@google.com>
2306
2307 * dwarf2read.c (dir_index): Change type.
2308 (file_name_index): Likewise.
2309 (line_header::include_dir_at): Change comment and implementation on
2310 whether it is DWARF 5.
2311 (line_header::is_valid_file_index): New function.
2312 (line_header::file_name_at): Change comment and implementation on
2313 whether it is DWARF 5.
2314 (line_header::file_names): Change to private field renamed as
2315 m_file_names and introduce a new accessor method.
2316 (line_header::file_names_size): New method.
2317 (line_header::include_dirs): Change to private field and rename as
2318 m_include_dirs.
2319 (dw2_get_file_names_reader): Define local var at a smaller scope and
2320 reflect API change.
2321 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2322 (process_structure_scope): Likewise.
2323 (line_header::add_include_dir): Change message and reflect renaming.
2324 (line_header::add_file_name): Likewise.
2325 (read_formatted_entries): Handle DW_FORM_data16.
2326 (dwarf_decode_line_header): Fix line header length calculation.
2327 (psymtab_include_file_name): Change comment and API.
2328 (lnp_state_machine::m_file): Update comment and reflect type change.
2329 (lnp_state_machine::record_line): Reflect type change.
2330 (dwarf_decode_lines): Reflect API change.
2331 (file_file_name): Likewise.
2332 (file_full_name): Likewise.
2333
45f47c3a
AB
23342019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2335
2336 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2337
e5f3c0e3
TT
23382019-10-21 Tom Tromey <tom@tromey.com>
2339
2340 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2341
a0a461e5
TT
23422019-10-21 Tom Tromey <tom@tromey.com>
2343
2344 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2345 NM_H. Use AC_CONFIG_LINKS.
2346 * configure: Rebuild.
2347 * Makefile.in (NM_H): New variable.
2348 (generated_files): Add NM_H. Remove gcore.
2349 (nm.h, stamp-nmh): New targets.
2350
54d83b8d
TT
23512019-10-20 Tom Tromey <tom@tromey.com>
2352
2353 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2354 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2355 obsolete comment.
2356 (put_objfile_before): Now static.
2357
23771117
SM
23582019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2359
2360 * gdbsupport/common-utils.h (startswith): Change return type to
2361 bool.
2362
39ef2f62
CB
23632019-10-19 Christian Biesinger <cbiesinger@google.com>
2364
2365 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2366 * breakpoint.c (bp_locations_compare): Rename to...
2367 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2368 (update_global_location_list): Use std::sort instead of qsort.
2369 * buildsym.c (compare_line_numbers): Rename to...
2370 (lte_is_less_than): ...this, and change to std::sort semantics.
2371 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2372 instead of qsort.
2373 * disasm.c (compare_lines): Rename to...
2374 (line_is_less_than): ...this, and change to std::sort semantics.
2375 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2376 of qsort.
2377 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2378 (fde_is_less_than): ...this, and change to std::sort semantics.
2379 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2380 * mdebugread.c (compare_blocks):
2381 (block_is_less_than): ...this, and change to std::sort semantics.
2382 (sort_blocks): Call std::sort instead of qsort.
2383 * objfiles.c (qsort_cmp): Rename to...
2384 (sort_cmp): ...this, and change to std::sort semantics.
2385 (update_section_map): Call std::sort instead of qsort.
2386 * remote.c (compare_pnums): Remove.
2387 (map_regcache_remote_table): Call std::sort instead of qsort.
2388 * utils.c (compare_positive_ints): Remove.
2389 * utils.h (compare_positive_ints): Remove.
2390 * xcoffread.c (compare_lte): Remove.
2391 (arrange_linetable): Call std::sort instead of qsort.
2392
f71433ee
SDJ
23932019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2394
2395 * symfile.c (init_entry_point_info): Fix typo.
2396 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2397
85102364
TV
23982019-10-18 Tom de Vries <tdevries@suse.de>
2399
2400 * aarch64-tdep.c: Fix typos in comments.
2401 * ada-lang.c: Same.
2402 * ada-tasks.c: Same.
2403 * alpha-tdep.c: Same.
2404 * alpha-tdep.h: Same.
2405 * amd64-nat.c: Same.
2406 * amd64-windows-tdep.c: Same.
2407 * arc-tdep.c: Same.
2408 * arc-tdep.h: Same.
2409 * arch-utils.c: Same.
2410 * arm-nbsd-tdep.c: Same.
2411 * arm-tdep.c: Same.
2412 * ax-gdb.c: Same.
2413 * blockframe.c: Same.
2414 * btrace.c: Same.
2415 * c-varobj.c: Same.
2416 * coff-pe-read.c: Same.
2417 * coffread.c: Same.
2418 * cris-tdep.c: Same.
2419 * darwin-nat.c: Same.
2420 * dbxread.c: Same.
2421 * dcache.c: Same.
2422 * disasm.c: Same.
2423 * dtrace-probe.c: Same.
2424 * dwarf-index-write.c: Same.
2425 * dwarf2-frame-tailcall.c: Same.
2426 * dwarf2-frame.c: Same.
2427 * dwarf2read.c: Same.
2428 * eval.c: Same.
2429 * exceptions.c: Same.
2430 * fbsd-tdep.c: Same.
2431 * findvar.c: Same.
2432 * frame.c: Same.
2433 * frv-tdep.c: Same.
2434 * gnu-v3-abi.c: Same.
2435 * go32-nat.c: Same.
2436 * h8300-tdep.c: Same.
2437 * hppa-tdep.c: Same.
2438 * i386-linux-tdep.c: Same.
2439 * i386-tdep.c: Same.
2440 * ia64-libunwind-tdep.c: Same.
2441 * ia64-tdep.c: Same.
2442 * infcmd.c: Same.
2443 * infrun.c: Same.
2444 * linespec.c: Same.
2445 * linux-nat.c: Same.
2446 * linux-thread-db.c: Same.
2447 * machoread.c: Same.
2448 * mdebugread.c: Same.
2449 * mep-tdep.c: Same.
2450 * mn10300-tdep.c: Same.
2451 * namespace.c: Same.
2452 * objfiles.c: Same.
2453 * opencl-lang.c: Same.
2454 * or1k-tdep.c: Same.
2455 * osabi.c: Same.
2456 * ppc-linux-nat.c: Same.
2457 * ppc-linux-tdep.c: Same.
2458 * ppc-sysv-tdep.c: Same.
2459 * printcmd.c: Same.
2460 * procfs.c: Same.
2461 * record-btrace.c: Same.
2462 * record-full.c: Same.
2463 * remote-fileio.c: Same.
2464 * remote.c: Same.
2465 * rs6000-tdep.c: Same.
2466 * s12z-tdep.c: Same.
2467 * score-tdep.c: Same.
2468 * ser-base.c: Same.
2469 * ser-go32.c: Same.
2470 * skip.c: Same.
2471 * sol-thread.c: Same.
2472 * solib-svr4.c: Same.
2473 * solib.c: Same.
2474 * source.c: Same.
2475 * sparc-nat.c: Same.
2476 * sparc-sol2-tdep.c: Same.
2477 * sparc-tdep.c: Same.
2478 * sparc64-tdep.c: Same.
2479 * stabsread.c: Same.
2480 * stack.c: Same.
2481 * symfile.c: Same.
2482 * symtab.c: Same.
2483 * target-descriptions.c: Same.
2484 * target-float.c: Same.
2485 * thread.c: Same.
2486 * utils.c: Same.
2487 * valops.c: Same.
2488 * valprint.c: Same.
2489 * value.c: Same.
2490 * varobj.c: Same.
2491 * windows-nat.c: Same.
2492 * xcoffread.c: Same.
2493 * xstormy16-tdep.c: Same.
2494 * xtensa-tdep.c: Same.
2495
c5adaa19
TT
24962019-10-17 Tom Tromey <tromey@adacore.com>
2497
2498 * configure: Rebuild.
2499 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2500 in AC_CONFIG_FILES invocation.
2501 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2502 new-style config.status invocation.
2503
405feb71
TV
25042019-10-17 Tom de Vries <tdevries@suse.de>
2505
2506 * arm-nbsd-nat.c: Fix typos in comments.
2507 * arm-tdep.c: Same.
2508 * darwin-nat-info.c: Same.
2509 * dwarf2read.c: Same.
2510 * elfread.c: Same.
2511 * event-top.c: Same.
2512 * findvar.c: Same.
2513 * gdbtypes.c: Same.
2514 * hppa-tdep.c: Same.
2515 * i386-tdep.c: Same.
2516 * jit.c: Same.
2517 * main.c: Same.
2518 * mdebugread.c: Same.
2519 * moxie-tdep.c: Same.
2520 * nto-procfs.c: Same.
2521 * osabi.c: Same.
2522 * ppc-linux-tdep.c: Same.
2523 * remote.c: Same.
2524 * riscv-tdep.c: Same.
2525 * s390-tdep.c: Same.
2526 * sh-tdep.c: Same.
2527 * sparc-linux-tdep.c: Same.
2528 * sparc-nat.c: Same.
2529 * stack.c: Same.
2530 * target-descriptions.c: Same.
2531 * top.c: Same.
2532 * varobj.c: Same.
2533
befcd486
TT
25342019-10-16 Tom Tromey <tom@tromey.com>
2535
2536 * objfiles.h (struct objfile) <original_name>: Now const.
2537
17bfe554
CB
25382019-10-16 Christian Biesinger <cbiesinger@google.com>
2539
2540 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2541 pass on to sigsetjmp's second argument.
2542 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2543
950b7495
KS
25442019-10-16 Keith Seitz <keiths@redhat.com>
2545
2546 PR gdb/23567
2547 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2548 sections whose size is greater than the file size.
2549
ff371ec9
JW
25502019-10-16 Jim Wilson <jimw@sifive.com>
2551
2552 * riscv-tdep.c (riscv_gcc_target_options): New.
2553 (riscv_gnu_triplet_regexp): New.
2554 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2555 set_gdbarch_gnu_triplet_regexp.
2556
fec4e896
CB
25572019-10-16 Christian Biesinger <cbiesinger@google.com>
2558
2559 * Makefile.in: Add xml-builtin.h.
2560 * features/feature_to_c.sh: Add an include for xml-builtin.h
2561 to ensure that the compiler checks that the types match.
2562 * xml-builtin.h: New file.
2563 * xml-support.c (fetch_xml_builtin): Add missing const.
2564 * xml-support.h: Remove declaration of xml_builtins.
2565
d10eccaa
TV
25662019-10-16 Tom de Vries <tdevries@suse.de>
2567
2568 PR tdep/25096
2569 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2570 (amd64_classify_aggregate): ... here.
2571 (amd64_classify_aggregate_field): Handled fiels of nested structs
2572 recursively.
2573
745ff14e
TV
25742019-10-16 Tom de Vries <tdevries@suse.de>
2575
2576 PR tdep/24104
2577 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2578 that handles 'theclass'.
2579
791b7405
AB
25802019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2581
2582 * linespec.c (decode_digits_ordinary): Update comment.
2583 * make-target-delegates: No longer need to handle VEC case.
2584 * memrange.c (normalize_mem_ranges): Update comment.
2585 * namespace.c (add_using_directive): Update comment.
2586 * objc-lang.c (uniquify_strings): Update comment.
2587 * ppc-linux-nat.c (struct thread_points): Update comment.
2588 * probe.h (find_probes_in_objfile): Update comment.
2589 * target.h (enum flash_preserve_mode): Update comment.
2590 * varobj.c (varobj_restrict_range): Update comment.
2591 * varobj.h (varobj_list_children): Update comment.
2592
0dc32745
AB
25932019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * Makefile.in: Remove references to vec.h and vec.c.
2596 * aarch64-tdep.c: No longer include vec.h.
2597 * ada-lang.c: Likewise.
2598 * ada-lang.h: Likewise.
2599 * arm-tdep.c: Likewise.
2600 * ax.h: Likewise.
2601 * breakpoint.h: Likewise.
2602 * charset.c: Likewise.
2603 * cp-support.h: Likewise.
2604 * dtrace-probe.c: Likewise.
2605 * dwarf2read.c: Likewise.
2606 * extension.h: Likewise.
2607 * gdb_bfd.c: Likewise.
2608 * gdbsupport/gdb_vecs.h: Likewise.
2609 * gdbsupport/vec.c: Remove.
2610 * gdbsupport/vec.h: Remove.
2611 * gdbthread.h: Likewise.
2612 * guile/scm-type.c: Likewise.
2613 * inline-frame.c: Likewise.
2614 * machoread.c: Likewise.
2615 * memattr.c: Likewise.
2616 * memrange.h: Likewise.
2617 * namespace.h: Likewise.
2618 * nat/linux-btrace.h: Likewise.
2619 * osdata.c: Likewise.
2620 * parser-defs.h: Likewise.
2621 * progspace.h: Likewise.
2622 * python/py-type.c: Likewise.
2623 * record-btrace.c: Likewise.
2624 * rust-exp.y: Likewise.
2625 * solib-target.c: Likewise.
2626 * stap-probe.c: Likewise.
2627 * target-descriptions.c: Likewise.
2628 * target-memory.c: Likewise.
2629 * target.h: Likewise.
2630 * varobj.c: Likewise.
2631 * varobj.h: Likewise.
2632 * xml-support.h: Likewise.
2633
ae640021
AB
26342019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2635
2636 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2637 Update for new std::vector based implementation.
2638 (process_psymtab_comp_unit_reader): Likewise.
2639 (scan_partial_symbols): Likewise.
2640 (recursively_compute_inclusions): Likewise.
2641 (compute_compunit_symtab_includes): Likewise.
2642 (process_imported_unit_die): Likewise.
2643 (queue_and_load_dwo_tu): Likewise.
2644 (follow_die_sig_1): Likewise.
2645 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2646 (typedef dwarf2_per_cu_ptr): Remove.
2647 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2648 function.
2649 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2650 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2651 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2652 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2653 std::vector.
2654
55dfc88f
TT
26552019-10-15 Tom Tromey <tromey@adacore.com>
2656
2657 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2658 TID.
2659
96b49c5e
TT
26602019-10-15 Tom Tromey <tromey@adacore.com>
2661
2662 * windows-nat.c (windows_nat_target::fetch_registers)
2663 (windows_nat_target::store_registers): Rename "pid" to "tid".
2664
953cff56
TT
26652019-10-15 Tom Tromey <tromey@adacore.com>
2666
2667 * gdbarch.h, gdbarch.c: Rebuild.
2668 * gdbarch.sh (gcc_target_options): Change return type to
2669 std::string.
2670 * compile/compile.c (get_args): Update.
2671 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2672 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2673 std::string.
2674 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2675 std::string.
2676 * arch-utils.c (default_gcc_target_options): Return std::string.
2677 * arch-utils.h (default_gcc_target_options): Return std::string.
2678 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2679
81e6b8eb
CB
26802019-10-15 Christian Biesinger <cbiesinger@google.com>
2681
2682 * breakpoint.c (breakpoint_chain): Make static.
2683 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2684 of accessing breakpoint_chain.
2685
95da600f
CB
26862019-10-15 Christian Biesinger <cbiesinger@google.com>
2687
2688 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2689 to a gdb::function_view and return value to bool.
2690 * breakpoint.h (iterate_over_breakpoints): Likewise.
2691 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2692 (pop_dummy_frame): Update.
2693 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2694 (gdbscm_breakpoints): Update.
2695 * python/py-breakpoint.c (build_bp_list): Update.
2696 (gdbpy_breakpoints): Update.
2697 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2698 Update.
2699 (bpfinishpy_handle_stop): Update.
2700 (bpfinishpy_handle_exit): Update.
2701 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2702 (svr4_update_solib_event_breakpoints): Update.
2703
ba18312d
AA
27042019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2705
2706 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2707 when unwrapping single-field structs.
2708
6acc1a0b
SM
27092019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 * dwarf2read.c: Remove includes.
2712
284782de
SM
27132019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2714
2715 * ui-out.c (ui_out::call_do_message): Silence
2716 -Wformat-nonliteral warning.
2717
073bbbb0
SM
27182019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2719
2720 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2721 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2722 include: readline/tilde.h.
2723
7b9a15e1
CB
27242019-10-12 Christian Biesinger <cbiesinger@google.com>
2725
2726 * remote.c (remote_target::get_trace_status): Remove declaration of
2727 trace_regblock_size.
2728
cc8dee1f
CB
27292019-10-12 Christian Biesinger <cbiesinger@google.com>
2730
2731 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2732 (show_user): Remove declaration of cmdlist.
2733 * cli/cli-cmds.h (max_user_call_depth): Declare.
2734 * cli/cli-script.c (execute_user_command): Remove declaration
2735 of max_user_call_depth.
2736
a83d4ef6
JW
27372019-10-11 Jim Wilson <jimw@sifive.com>
2738
5f93c5a6
JW
2739 * gdbsupport/print-utils.h (pulongest): Fix comment.
2740 (plongest): Likewise.
2741 (phex): Add missing comment, mention leading zeros.
2742 (phex_nz): Add mention of no leading zeros to comment.
2743
a83d4ef6
JW
2744 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2745 plongest instead of unsigned long long cast.
2746
26344e0c
CB
27472019-10-10 Christian Biesinger <cbiesinger@google.com>
2748
2749 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2750 for external_editor_command and gdbtk_test.
2751
c2c440a9
CB
27522019-10-10 Christian Biesinger <cbiesinger@google.com>
2753
2754 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2755 * varobj.c (varobjdebug): Move comment to...
2756 * varobj.h (varobjdebug): ...here, and declare.
2757
a31bff9d
TT
27582019-10-09 Tom Tromey <tom@tromey.com>
2759
2760 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2761 erase_data_content.
2762
7523da63
TT
27632019-10-09 Tom Tromey <tom@tromey.com>
2764
2765 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2766 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2767 * tui/tui-command.c (tui_cmd_window::resize)
2768 (tui_refresh_cmd_win): Update.
2769 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2770 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2771 * tui/tui-data.c (~tui_gen_win_info): Remove.
2772 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2773 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2774 (tui_redisplay_readline, tui_mld_flush)
2775 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2776 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2777 (tui_data_window::erase_data_content)
2778 (tui_data_item_window::rerender)
2779 (tui_data_item_window::refresh_window): Update.
2780 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2781 (box_win, tui_gen_win_info::make_window)
2782 (tui_gen_win_info::make_visible): Update.
2783 (tui_delete_win): Remove.
2784 * tui/tui-winsource.c
2785 (tui_source_window_base::do_erase_source_content): Update.
2786 (tui_show_source_line, tui_source_window_base::update_tab_width)
2787 (tui_source_window_base::update_exec_info): Update.
2788 * tui/tui-data.h (struct curses_deleter): New.
2789 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2790 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2791
a7798e7f
TT
27922019-10-09 Tom Tromey <tom@tromey.com>
2793
2794 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2795
5c45899e
TT
27962019-10-09 Tom Tromey <tom@tromey.com>
2797
2798 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2799 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2800
6d7fd9aa
TT
28012019-10-09 Tom Tromey <tom@tromey.com>
2802
2803 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2804 window height directly.
2805 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2806 declare.
2807 * tui/tui-layout.c (tui_default_win_height): Remove.
2808 (tui_default_win_viewport_height): Remove.
2809
d2dd1084
TT
28102019-10-09 Tom Tromey <tom@tromey.com>
2811
2812 * tui/tui.h: Remove comments.
2813
cff32449
TV
28142019-10-09 Tom de Vries <tdevries@suse.de>
2815
2816 * python/lib/gdb/printer/bound_registers.py: Use
2817 '^builtin_type_bound128' as regexp argument for
2818 add_builtin_pretty_printer.
2819
6a25e8a2
CB
28202019-10-09 Christian Biesinger <cbiesinger@google.com>
2821
2822 * guile/guile.c (guile_extension_script_ops): Remove forward
2823 declaration and mark as static.
2824 (guile_script_ops): Likewise.
2825 (extension_language_guile): Move further down in the file so
2826 it can reference the definitions for guile_{extension_,}script_ops.
2827
6d9d6da4
AA
28282019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2829
2830 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2831 except SORTL, DFLTCC, and KDSA.
2832
3abea05d
TT
28332019-10-08 Tom Tromey <tromey@adacore.com>
2834
2835 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2836 (struct safe_symbol_file_add_args): Remove.
2837
dde996e2
TT
28382019-10-08 Tom Tromey <tromey@adacore.com>
2839
2840 * windows-nat.c: Don't include buildsym-legacy.h.
2841
cd6fdaa1
TT
28422019-10-08 Tom Tromey <tromey@adacore.com>
2843
2844 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2845
79bb1944
CB
28462019-10-08 Christian Biesinger <cbiesinger@google.com>
2847
2848 * gdbtypes.c (overload_debug): Move comment to header.
2849 * gdbtypes.h (overload_debug): Declare.
2850 * valops.c: Remove declaration of overload_debug, instead
2851 include gdbtypes.h.
2852
34916edc
CB
28532019-10-08 Christian Biesinger <cbiesinger@google.com>
2854
2855 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2856 through _().
2857 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2858 move comment...
2859 * language.h (lang_frame_mismatch_warn): ... here. Also add
2860 declaration.
2861 * top.c (lang_frame_mismatch_warn): Remove declaration.
2862 (check_frame_language_change): Pass lang_frame_mismatch_warn
2863 through _().
2864
bad5c026
CB
28652019-10-07 Christian Biesinger <cbiesinger@google.com>
2866
2867 * c-lang.h (vtbl_ptr_name): Declare.
2868 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2869 it from the header.
2870 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2871
51f1fdc3
CB
28722019-10-07 Christian Biesinger <cbiesinger@google.com>
2873
2874 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2875 gdb_static_assert.
2876
30d1f018
WP
28772019-10-07 Weimin Pan <weimin.pan@oracle.com>
2878
606813d5
WP
2879 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2880 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2881 * ctfread.c: New file.
2882 * ctfread.h: New file.
2883 * elfread.c: Include ctfread.h.
2884 (struct elfinfo text_p): New member ctfsect.
2885 (elf_locate_sections): Mark CTF section.
2886 (elf_symfile_read): Call elfctf_build_psymtabs.
2887 * Makefile.in (LIBCTF): Add.
2888 (CLIBS): Use it.
2889 (CDEPS): Likewise.
2890 (DIST): Add ctfread.c.
606813d5
WP
2891
28922019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2893
2894 * ctfread.c (struct nextfield): Renamed to ...
2895 (struct ctf_nextfield): ... this.
2896 (struct field_info): Renamed to ...
2897 (strut ctf_field_info): ... this.
2898 (attach_fields_to_type): Update for renamed structures.
2899 (ctf_add_member_cb): Likewise.
2900 (ctf_add_enum_member_cb): Likewise.
2901 (process_struct_members): Likewise.
2902 (process_enum_type): Likewise.
30d1f018 2903
518fe38c
WP
29042019-10-07 Weimin Pan <weimin.pan@oracle.com>
2905
2906 * tracectf.h: Rename, was ctf.h.
2907 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2908 * tracefile.c: Likewise.
2909 * tracepoint.c: Remove unused include ctf.h.
2910 * mi/mi-main.c: Likewise.
2911 * Makefile.in Replace ctf.c with tracectf.c.
2912
225f296a
JB
29132019-10-06 Joel Brobecker <brobecker@adacore.com>
2914
2915 * version.in: Change version number to "9.0.50.DATE-git".
2916
77c2dba3
TT
29172019-10-03 Tom Tromey <tom@tromey.com>
2918
2919 PR rust/24976:
2920 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2921
179aed7f
AB
29222019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2923
2924 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2925 cp_search_name_hash.
2926 * NEWS: Add entry about nested function support.
2927
0a4b0913
AB
29282019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2929 Andrew Burgess <andrew.burgess@embecosm.com>
2930
2931 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2932 for nested static variables when searchin VAR_DOMAIN.
2933 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2934 global scope, update comment.
2935 (add_partial_subprogram): Call add_partial_subprogram recursively
2936 for nested subroutines when processinng Fortran.
2937 (load_partial_dies): Process the child entities of a subprogram
2938 when processing Fortran.
2939 (partial_die_parent_scope): Handle building scope
2940 for Fortran nested functions.
2941 (process_die): Record that nested functions have a scope.
2942 (new_symbol): Always record Fortran subprograms on the global
2943 symbol list.
2944 (determine_prefix): How to build the prefix for Fortran
2945 subprograms.
2946
d8c06f22
AB
29472019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2948
2949 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2950 have just sent the thread a SIGSTOP and are waiting for it to
2951 arrive.
2952
a8b3b8e9
AB
29532019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2954
2955 * btrace.c (btrace_add_pc): Remove whitespace before the template
2956 parameter in 'std::vector <...>'.
2957 (parse_xml_btrace_block): Likewise.
2958 (btrace_maint_decode_pt): Likewise.
2959 (btrace_maint_update_packets): Likewise.
2960 (btrace_maint_print_packets): Likewise.
2961 * btrace.h (struct btrace_maint_info): Likewise.
2962 * dwarf2read.c (struct type_unit_group): Likewise.
2963 (build_type_psymtabs_reader): Likewise.
2964 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2965 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2966 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2967
4d825eab
TV
29682019-10-03 Tom de Vries <tdevries@suse.de>
2969
2970 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2971 the first line of the help text for set/show style metadata.
2972
80fd2826
TT
29732019-10-02 Tom Tromey <tromey@adacore.com>
2974
2975 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2976 * gdbsupport/common-inferior.c: New file.
2977 * infcmd.c (startup_with_shell): Don't define.
2978 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2979 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2980 * inferior.h (startup_with_shell): Don't declare.
2981
70054538
CB
29822019-10-02 Christian Biesinger <cbiesinger@google.com>
2983
2984 * gdbsupport/gdb_assert.h: Include errors.h.
2985 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2986
37f6a7f4
TT
29872019-10-02 Tom Tromey <tromey@adacore.com>
2988
2989 * NEWS: Add $_ada_exception entry.
2990 * ada-lang.c (struct ada_catchpoint): Add constructor.
2991 <m_kind>: New member.
2992 (allocate_location_exception, re_set_exception): Remove
2993 "ex" parameter.
2994 (should_stop_exception): Compute $_ada_exception.
2995 (check_status_exception, print_it_exception)
2996 (print_one_exception, print_mention_exception): Remove
2997 "ex" parameter.
2998 (allocate_location_catch_exception, re_set_catch_exception)
2999 (check_status_exception, print_it_catch_exception)
3000 (print_one_catch_exception, print_mention_catch_exception)
3001 (print_recreate_catch_exception)
3002 (allocate_location_catch_exception_unhandled)
3003 (re_set_catch_exception_unhandled)
3004 (check_status_exception, print_it_catch_exception_unhandled)
3005 (print_one_catch_exception_unhandled)
3006 (print_mention_catch_exception_unhandled)
3007 (print_recreate_catch_exception_unhandled)
3008 (allocate_location_catch_assert, re_set_catch_assert)
3009 (check_status_assert, print_it_catch_assert)
3010 (print_one_catch_assert, print_mention_catch_assert)
3011 (print_recreate_catch_assert)
3012 (allocate_location_catch_handlers, re_set_catch_handlers)
3013 (check_status_handlers, print_it_catch_handlers)
3014 (print_one_catch_handlers, print_mention_catch_handlers)
3015 (print_recreate_catch_handlers): Remove.
3016 (create_ada_exception_catchpoint): Update.
3017 (initialize_ada_catchpoint_ops): Update.
3018
fccf9de1
TT
30192019-10-02 Tom Tromey <tromey@adacore.com>
3020
3021 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3022 (create_excep_cond_exprs): Simplify exception string computation.
3023 (ada_exception_catchpoint_cond_string): Likewise.
3024
4b610737
TT
30252019-10-02 Tom Tromey <tromey@adacore.com>
3026
3027 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3028 * ada-lang.c (lesseq_defined_than): Handle
3029 LOC_STATIC.
3030 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3031 parameter.
3032 (dwarf2_has_info): Likewise.
3033 (new_symbol): Set maybe_copied on symbol when
3034 appropriate.
3035 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3036 parameter.
3037 <can_copy>: New member.
3038 * elfread.c (record_minimal_symbol): Set maybe_copied
3039 on symbol when appropriate.
3040 (elf_symfile_read): Update call to dwarf2_has_info.
3041 * minsyms.c (lookup_minimal_symbol_linkage): New
3042 function.
3043 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3044 * symtab.c (get_symbol_address, get_msymbol_address):
3045 New functions.
3046 * symtab.h (get_symbol_address, get_msymbol_address):
3047 Declare.
3048 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3049 maybe_copied.
3050 (struct symbol, struct minimal_symbol) <maybe_copied>:
3051 New member.
3052
1dd58850
TT
30532019-10-02 Tom Tromey <tromey@adacore.com>
3054
3055 * source.c (struct current_source_location): New.
3056 (current_source_key): New global.
3057 (current_source_symtab, current_source_line)
3058 (current_source_pspace): Remove.
3059 (get_source_location): New function.
3060 (get_current_source_symtab_and_line)
3061 (set_default_source_symtab_and_line)
3062 (set_current_source_symtab_and_line)
3063 (clear_current_source_symtab_and_line, select_source_symtab)
3064 (info_source_command, print_source_lines_base)
3065 (info_line_command, search_command_helper, _initialize_source):
3066 Update.
3067
5c281dbb
TT
30682019-10-02 Tom Tromey <tromey@adacore.com>
3069
3070 * source.c (select_source_symtab): Don't call
3071 decode_line_with_current_source.
3072
d3d32391
AB
30732019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3074
3075 * symtab.c (lookup_global_symbol): Search global block.
3076
38583298
TT
30772019-10-02 Tom Tromey <tromey@adacore.com>
3078
3079 * coffread.c (process_coff_symbol): Update.
3080 * dwarf2read.c (var_decode_location, new_symbol): Update.
3081 * mdebugread.c (parse_symbol): Update.
3082 * objfiles.c (relocate_one_symbol): Update.
3083 * stabsread.c (define_symbol, fix_common_block)
3084 (scan_file_globals): Update.
3085 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3086 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3087 * xcoffread.c (process_xcoff_symbol): Update.
3088
9344c18f
AA
30892019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3090
3091 * MAINTAINERS: Update my email address.
3092
df07e2c7
AB
30932019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3094
3095 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3096 std::vector.
3097 (build_type_psymtabs_reader): Update for std::vector.
3098 (build_type_psymtab_dependencies): Likewise.
3099 * dwarf2read.h: Remove use of DEF_VEC_P.
3100 (typedef sig_type_ptr): Delete.
3101
554ac434
AB
31022019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3103
3104 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3105 to std::vector.
3106 (btrace_maint_decode_pt): Likewise, and move allocation of the
3107 vector outside of the loop.
3108 (btrace_maint_update_packets): Update to handle change from VEC to
3109 std::vector.
3110 (btrace_maint_print_packets): Likewise.
3111 (maint_info_btrace_cmd): Likewise.
3112 * btrace.h: Remove use of DEF_VEC_O.
3113 (typedef btrace_pt_packet_s): Delete.
3114 (struct btrace_maint_info) <packets>: Change fromm VEC to
3115 std::vector.
3116 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3117
46f29a9a
AB
31182019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3119
3120 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3121 make accesses into the vector constant references.
3122 (btrace_add_pc): Update for std::vector.
3123 (btrace_stitch_bts): Likewise.
3124 (parse_xml_btrace_block): Likewise.
3125 (btrace_maint_update_packets): Likewise.
3126 (btrace_maint_print_packets): Likewise.
3127 (maint_info_btrace_cmd): Likewise.
3128 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3129 std::vector.
3130 (btrace_data::empty): Likewise.
3131 (btrace_data_append): Likewise.
3132 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3133 (typedef btrace_block_s): Delete.
3134 (struct btrace_block): Add constructor.
3135 (struct btrace_data_bts) <blocks>: Change to std::vector.
3136 * nat/linux-btrace.c (perf_event_read_bts): Update for
3137 std::vector.
3138 (linux_read_bts): Likewise.
3139
d770d56f
TT
31402019-10-01 Tom Tromey <tom@tromey.com>
3141
3142 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3143
9d636d67
TT
31442019-10-01 Tom Tromey <tom@tromey.com>
3145
3146 * stack.c (print_frame, info_frame_command_core): Use
3147 styled_string.
3148 * linux-thread-db.c (try_thread_db_load_1)
3149 (try_thread_db_load_from_pdir_1): Use styled_string.
3150 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3151 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3152 (maybe_print_unsupported_script_warning)
3153 (maybe_print_script_not_found_warning): Use styled_string.
3154 * ada-lang.c (user_select_syms): Use styled_string.
3155
7f6aba03
TT
31562019-10-01 Tom Tromey <tom@tromey.com>
3157
3158 * p-lang.c (pascal_printstr): Use metadata style.
3159 * value.c (show_convenience): Use metadata style.
3160 * valprint.c (valprint_check_validity, val_print_optimized_out)
3161 (val_print_not_saved, val_print_unavailable)
3162 (val_print_invalid_address, generic_val_print, val_print)
3163 (value_check_printable, val_print_array_elements): Use metadata
3164 style.
3165 * ui-out.h (class ui_out) <field_fmt>: New overload.
3166 <do_field_fmt>: Add style parameter.
3167 * ui-out.c (ui_out::field_fmt): New overload.
3168 * typeprint.c (type_print_unknown_return_type)
3169 (val_print_not_allocated, val_print_not_associated): Use metadata
3170 style.
3171 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3172 parameter.
3173 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3174 * tracepoint.c (tvariables_info_1): Use metadata style.
3175 * stack.c (print_frame_arg, print_frame_info, print_frame)
3176 (info_frame_command_core): Use metadata style.
3177 * skip.c (info_skip_command): Use metadata style.
3178 * rust-lang.c (rust_print_enum): Use metadata style.
3179 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3180 metadata style.
3181 * python/py-framefilter.c (py_print_single_arg): Use metadata
3182 style.
3183 * printcmd.c (do_one_display, print_variable_and_value): Use
3184 metadata style.
3185 * p-valprint.c (pascal_val_print)
3186 (pascal_object_print_value_fields): Use metadata style.
3187 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3188 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3189 parameter.
3190 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3191 * m2-valprint.c (m2_print_long_set): Use metadata style.
3192 * m2-typeprint.c (m2_print_type): Use metadata style.
3193 * infcmd.c (print_return_value_1): Use metadata style.
3194 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3195 * f-valprint.c (info_common_command_for_block): Use metadata
3196 style.
3197 * f-typeprint.c (f_type_print_base): Use metadata style.
3198 * expprint.c (print_subexp_standard): Use metadata style.
3199 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3200 * cli/cli-style.h (class cli_style_option): Add constructor.
3201 (metadata_style): Declare.
3202 * cli/cli-style.c (metadata_style): New global.
3203 (_initialize_cli_style): Register metadata style.
3204 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3205 parameter.
3206 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3207 * c-typeprint.c (c_type_print_base_struct_union)
3208 (c_type_print_base_1): Use metadata style.
3209 * breakpoint.c (watchpoint_value_print)
3210 (print_one_breakpoint_location): Use metadata style.
3211 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3212 style.
3213 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3214 style.
3215 * ada-valprint.c (val_print_packed_array_elements, printstr)
3216 (print_field_values, ada_val_print_ref, ada_val_print): Use
3217 metadata style.
3218 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3219 style.
3220 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3221 style.
3222 * ada-lang.c (user_select_syms): Use metadata style.
3223
14309bb6
TT
32242019-10-01 Tom Tromey <tom@tromey.com>
3225
3226 * cli/cli-cmds.c (pwd_command): Style output.
3227
6a831f06
PA
32282019-10-01 Pedro Alves <palves@redhat.com>
3229 Tom Tromey <tom@tromey.com>
3230
3231 * symtab.c (print_symbol_info): Use %ps.
3232 (print_msymbol_info): Use %ps.
3233 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3234 * printcmd.c (print_variable_and_value): Use %ps.
3235 * macrocmd.c (show_pp_source_pos): Use %ps.
3236 * infrun.c (print_exited_reason): Use ui_out::message.
3237 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3238 (describe_other_breakpoints): Use ui_out::message and new
3239 formats.
3240 (say_where): Use new formats.
3241 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3242 and new formats.
3243
2a3c1174
PA
32442019-10-01 Pedro Alves <palves@redhat.com>
3245 Tom Tromey <tom@tromey.com>
3246
3247 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3248 (test_gdb_formats): New function.
3249 (run_tests): Call it.
3250 (test_format_specifier): Update.
3251 * utils.h (fputs_filtered): Update comment.
3252 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3253 (fputs_styled_unfiltered): Declare.
3254 * utils.c (fputs_styled_unfiltered): New function.
3255 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3256 (vfprintf_filtered): Update.
3257 (vfprintf_unfiltered, vprintf_filtered): Update.
3258 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3259 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3260 disallow_ui_out_field>: New constants.
3261 (enum class field_kind): New.
3262 (struct base_field_s, struct signed_field_s): New.
3263 (signed_field): New function.
3264 (struct string_field_s): New.
3265 (string_field): New function.
3266 (struct styled_string_s): New.
3267 (styled_string): New function.
3268 (class ui_out) <message>: Add comment.
3269 <vmessage, call_do_message>: New methods.
3270 <do_message>: Add style parameter.
3271 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3272 methods.
3273 (ui_out::message): Rewrite.
3274 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3275 parameter.
3276 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3277 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3278 gdb_extensions parameter.
3279 (class format_piece): Add parameter to constructor.
3280 (n_int_args): New field.
3281 * gdbsupport/format.c (format_pieces::format_pieces): Add
3282 gdb_extensions parameter. Handle '*'.
3283 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3284 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3285 vfprintf_styled_no_gdbfmt.
3286 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3287 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3288 unfiltered output.
3289 * ui-style.h (struct ui_file_style) <ptr>: New method.
3290
0dfe5bfb
TT
32912019-10-01 Tom Tromey <tom@tromey.com>
3292
3293 * unittests/format_pieces-selftests.c: Update. Add final format.
3294 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3295 empty literal pieces.
3296
e43b10e1
TT
32972019-10-01 Tom Tromey <tom@tromey.com>
3298
3299 * ui-out.h (enum class ui_out_style_kind): Remove.
3300 (class ui_out) <field_string, field_stsream, do_field_string>:
3301 Change type of "style".
3302 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3303 (ui_out::field_string): Update.
3304 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3305 of "style".
3306 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3307 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3308 * stack.c (print_frame_arg, print_frame_info, print_frame):
3309 Update.
3310 * source.c (print_source_lines_base): Update.
3311 * solib.c (info_sharedlibrary_command): Update.
3312 * skip.c (info_skip_command): Update.
3313 * record-btrace.c (btrace_call_history_src_line)
3314 (btrace_call_history): Update.
3315 * python/py-framefilter.c (py_print_frame): Update.
3316 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3317 "style".
3318 * mi/mi-out.c (mi_ui_out::do_table_header)
3319 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3320 (mi_ui_out::do_field_string): Update.
3321 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3322 Update.
3323 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3324 "style".
3325 * cli-out.c (cli_ui_out::do_table_header)
3326 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3327 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3328 (cli_ui_out::do_field_fmt): Update.
3329 * breakpoint.c (print_breakpoint_location): Update.
3330 (update_static_tracepoint): Update.
3331
cd7c32c3
PW
33322019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3333
3334 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3335 conversion of gdb_datadir.
3336 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3337 remove not needed c_str ().
3338
8fe0f950
AT
33392019-09-30 Ali Tamur <tamur@google.com>
3340
3341 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3342 (dwarf2_string_attr): Likewise.
3343
5f48f8f3
AT
33442019-09-30 Ali Tamur <tamur@google.com>
3345
3346 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3347 (process_full_type_unit): Likewise.
3348 (dump_die_shallow): Likewise.
3349 (cu_debug_loc_section): Likewise.
3350
6fb08628
CB
33512019-09-28 Christian Biesinger <cbiesinger@google.com>
3352
3353 * minsyms.c (compare_minimal_symbols): Rename to...
3354 (minimal_symbol_is_less_than): ...this, and adjust to STL
3355 conventions (return bool, take arguments as references)
3356 (minimal_symbol_reader::install): Call std::sort instead
3357 of qsort.
3358
c7ee338a
CB
33592019-09-29 Christian Biesinger <cbiesinger@google.com>
3360
3361 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3362 hash and why.
3363 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3364 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3365
703a86c2
SM
33662019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3367
3368 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3369 * psympriv.h (add_psymbol_to_list): Move comment here and update
3370 it.
3371
0df0352a
TV
33722019-09-29 Tom de Vries <tdevries@suse.de>
3373
3374 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3375 Use $tmpdir/$(basename "$output_file").dwz instead of
3376 "${output_file}.dwz".
3377
ad75efa6
SM
33782019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3379
3380 PR gdb/25045
3381 * hppa-linux-nat.c: Include gdbarch.h.
3382
ececd218
CB
33832019-09-26 Christian Biesinger <cbiesinger@google.com>
3384
3385 * blockframe.c (find_pc_partial_function): Change return type to bool.
3386 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3387 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3388 (stub_gnu_ifunc_resolve_name): Likewise.
3389 * symtab.c (compare_filenames_for_search): Likewise.
3390 (compare_glob_filenames_for_search): Likewise.
3391 (matching_obj_sections): Likewise.
3392 (symbol_matches_domain): Likewise.
3393 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3394 (find_line_pc): Change return type to bool.
3395 (find_line_pc_range): Likewise.
3396 (producer_is_realview): Likewise.
3397 * symtab.h (symbol_matches_domain): Likewise.
3398 (find_pc_partial_function): Likewise.
3399 (find_pc_line_pc_range): Likewise.
3400 (in_gnu_ifunc_stub): Likewise.
3401 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3402 (find_line_pc): Likewise.
3403 (find_line_pc_range): Likewise.
3404 (matching_obj_sections): Likewise.
3405 (find_line_symtab): Change out parameter to bool.
3406 (producer_is_realview): Change return type to bool.
3407 (compare_filenames_for_search): Likewise.
3408 (compare_glob_filenames_for_search): Likewise.
3409
27a900b8
TT
34102019-09-26 Tom Tromey <tom@tromey.com>
3411
3412 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3413 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3414 * gdb_usleep.h: Remove.
3415 * gdb_usleep.c: Remove.
3416 * utils.c: Don't include gdb_usleep.h.
3417
5d63b30a
TT
34182019-09-26 Tom Tromey <tromey@adacore.com>
3419
3420 * python/py-type.c (type_to_type_object): Call check_typedef
3421 for stub types.
3422
12904d37
TT
34232019-09-26 Tom Tromey <tom@tromey.com>
3424
3425 * utils.h (initialize_utils): Don't declare.
3426 * top.c (gdb_init): Don't call initialize_utils.
3427 * utils.c (initialize_utils): Remove. Move contents...
3428 (_initialize_utils): ... here.
3429
858f25f0
TT
34302019-09-25 Tom Tromey <tom@tromey.com>
3431
3432 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3433 * utils.h (make_hex_string): Don't declare.
3434 * utils.c (make_hex_string): Remove.
3435
3d435220
TV
34362019-09-24 Tom de Vries <tdevries@suse.de>
3437
3438 PR gdb/23815
3439 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3440 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3441
ddd44b70
DD
34422019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3443
3444 * NEWS: Mention new simulator port for PRU.
3445
f945dedf
CB
34462019-09-23 Christian Biesinger <cbiesinger@google.com>
3447
3448 * ada-exp.y (write_object_remaining): Update.
3449 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3450 and eliminate the static buffer.
3451 (ada_decode_symbol): Update.
3452 (ada_la_decode): Update.
3453 (ada_sniff_from_mangled_name): Update.
3454 (is_valid_name_for_wild_match): Update.
3455 (ada_lookup_name_info::matches): Update and simplify.
3456 (name_matches_regex): Update.
3457 (ada_add_global_exceptions): Update.
3458 * ada-lang.h (ada_decode): Update signature.
3459 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3460 * dwarf-index-write.c (debug_names::insert): Update.
3461
7ab78ccb
SM
34622019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3463
3464 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3465 formatting.
3466
9252448b
SM
34672019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3468
3469 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3470 Change "nonzero" to "true" in documentation.
3471
626ca2c0
CB
34722019-09-20 Christian Biesinger <cbiesinger@google.com>
3473
3474 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3475 (_initialize_darwin_solib): Don't set
3476 darwin_so_ops.lookup_lib_global_symbol.
3477 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3478 set_gdbarch_iterate_over_objfiles_in_search_order.
3479 (elf_lookup_lib_symbol): Rename to...
3480 (svr4_iterate_over_objfiles_in_search_order): this, and update
3481 to iterate semantics.
3482 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3483 * solib.c (solib_global_lookup): Remove.
3484 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3485 (solib_global_lookup): Remove.
3486 * symtab.c (lookup_global_or_static_symbol): Remove call to
3487 solib_global_lookup.
3488
5a3a0d63
JB
34892019-09-20 Joel Brobecker <brobecker@adacore.com>
3490
3491 * NEWS: Move entries about default MI version now being
3492 version 3, and about the GDB/MI fix for multi-location
3493 breakpoints to the "since GDB 8.3" section.
3494
ffea1427
JB
34952019-09-20 Joel Brobecker <brobecker@adacore.com>
3496
3497 GDB 8.3.1 released.
3498
abf516c6
UW
34992019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3500
3501 * NEWS: Mention that Cell/B.E. debugging support was removed.
3502 * MAINTAINERS: Remove spu target.
3503
3504 * config/djgpp/fnchange.lst: Remove entries for removed files.
3505
3506 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3507 spu-multiarch.o, and spu-tdep.o.
3508 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3509 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3510 spu-multiarch.c, and spu-tdep.c.
3511 * spu-linux-nat.c: Remove file.
3512 * spu-multiarch.c: Remove file.
3513 * spu-tdep.c: Remove file.
3514 * spu-tdep.h: Remove file.
3515 * solib-spu.c: Remove file.
3516 * solib-spu.h: Remove file.
3517
3518 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3519 * configure.nat (spu-linux): Remove.
3520 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3521 solib-multiarch.o from gdb_target_obs.
3522 (spu*-*-*): Remove.
3523
3524 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3525 feature flag.
3526 (ppc_linux_no_features): Update.
3527 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3528 Cell/B.E. support.
3529 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3530 (tdesc_powerpc_cell64l): Likewise.
3531 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3532 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3533 Cell/B.E. support.
3534 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3535 Do not include "features/rs6000/powerpc-cell32l.c" or
3536 "features/rs6000/powerpc-cell64l.c".
3537 (ppc_linux_spu_section): Remove.
3538 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3539 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3540 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3541 (ppc_linux_spe_context_lookup): Remove.
3542 (ppc_linux_spe_context_inferior_created): Remove.
3543 (ppc_linux_spe_context_solib_loaded): Remove.
3544 (ppc_linux_spe_context_solib_unloaded): Remove.
3545 (ppc_linux_spe_context): Remove.
3546 (struct ppu2spu_cache): Remove.
3547 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3548 (struct ppu2spu_data): Remove.
3549 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3550 ppu2spu_unwind): Remove.
3551 (ppc_linux_init_abi): Remove Cell/B.E. support.
3552 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3553
3554 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3555 (rs6000/powerpc-cell64l-expedite): Likewise
3556 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3557 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3558 rs6000/powerpc-cell64l.xml.
3559 * features/rs6000/powerpc-cell32l.xml: Remove.
3560 * features/rs6000/powerpc-cell64l.xml: Likewise.
3561 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3562 * features/rs6000/powerpc-cell64l.c: Likewise.
3563 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3564 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3565 * regformats/reg-spu.dat: Remove.
3566
3567 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3568 * corelow.c (struct spuid_list): Remove.
3569 (add_to_spuid_list): Remove.
3570 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3571 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3572 (remote_protocol_features): Remove associated entries.
3573 (_initialize_remote): No longer initialize them.
3574 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3575 * linux-nat.c (SPUFS_MAGIC): Remove.
3576 (linux_proc_xfer_spu): Remove.
3577 (spu_enumerate_spu_ids): Remove.
3578 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3579 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3580 (linux_make_corefile_notes): No longer call it.
3581
3582 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3583 (cooked_write_test): Likewise.
3584
78e8cb91
TT
35852019-09-20 Tom Tromey <tom@tromey.com>
3586
3587 * NEWS: Mention case-sensitivity of TUI commands.
3588 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3589 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3590 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3591
f074b67e
TT
35922019-09-20 Tom Tromey <tom@tromey.com>
3593
3594 * tui/tui-source.c (tui_source_window::set_contents): Use
3595 make_unique_xstrdup.
3596 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3597 make_unique_xstrdup.
3598
63c4bf19
TT
35992019-09-20 Tom Tromey <tom@tromey.com>
3600
3601 * tui/tui-data.c: Remove separator comments.
3602 * tui/tui-layout.c: Remove separator comments.
3603 * tui/tui-win.c: Remove separator comments.
3604 * tui/tui-wingeneral.c: Remove separator comments.
3605
43df9b2f
TT
36062019-09-20 Tom Tromey <tom@tromey.com>
3607
3608 * tui/tui.h (strcat_to_buf): Don't declare.
3609 * tui/tui.c (strcat_to_buf): Remove.
3610
7226433c
TT
36112019-09-20 Tom Tromey <tom@tromey.com>
3612
3613 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3614 from "fullname".
3615 * tui/tui-source.c (tui_source_window::set_contents)
3616 (tui_source_window::location_matches_p)
3617 (tui_source_window::maybe_update): Update.
3618
80df3337
TT
36192019-09-20 Tom Tromey <tom@tromey.com>
3620
3621 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3622 Update.
3623 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3624 prefix.
3625 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3626 (tui_data_window::line_from_reg_element_no)
3627 (tui_data_window::first_reg_element_no_inline)
3628 (tui_data_window::show_registers)
3629 (tui_data_window::show_register_group)
3630 (tui_data_window::display_registers_from)
3631 (tui_data_window::display_registers_from_line)
3632 (tui_data_window::first_data_item_displayed)
3633 (tui_data_window::delete_data_content_windows)
3634 (tui_data_window::erase_data_content)
3635 (tui_data_window::do_scroll_vertical)
3636 (tui_data_window::refresh_window)
3637 (tui_data_window::check_register_values): Update.
3638
9923f347
TT
36392019-09-20 Tom Tromey <tom@tromey.com>
3640
3641 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3642 (struct tui_locator_window) <full_name, proc_name>: Now
3643 std::string.
3644 * tui/tui-stack.c (tui_locator_window::make_status_line)
3645 (tui_locator_window::set_locator_fullname)
3646 (tui_locator_window::set_locator_info): Update.
3647 * tui/tui-source.c (tui_source_window::set_contents)
3648 (tui_source_window::showing_source_p): Update.
3649
b76251ab
TT
36502019-09-20 Tom Tromey <tom@tromey.com>
3651
3652 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3653 Don't call tui_locator_win_info_ptr.
3654
0891be08
TT
36552019-09-20 Tom Tromey <tom@tromey.com>
3656
3657 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3658
1b935acf
TT
36592019-09-20 Tom Tromey <tom@tromey.com>
3660
3661 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3662 height for locator.
3663 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3664 * tui/tui-layout.c (show_source_disasm_command, show_data)
3665 (show_source_or_disasm_and_command): Use 1 as height for locator.
3666
9abd8a65
TT
36672019-09-20 Tom Tromey <tom@tromey.com>
3668
3669 * tui/tui.c (tui_enable): Update.
3670 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3671 Update.
3672 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3673 Update.
3674 * tui/tui-data.c (win_resized): Now bool.
3675 (tui_win_resized): Return bool.
3676 (tui_set_win_resized_to): Accept a bool.
3677
b5457826
TT
36782019-09-20 Tom Tromey <tom@tromey.com>
3679
3680 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3681 Change type of "refresh_values_only".
3682 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3683 type of "refresh_values_only".
3684
6b915f7d
TT
36852019-09-20 Tom Tromey <tom@tromey.com>
3686
3687 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3688 std::string.
3689 (tui_disassemble): Add "pos" parameter.
3690 (tui_disasm_window::set_contents): Simplify.
3691
2ad52f6f
TT
36922019-09-20 Tom Tromey <tom@tromey.com>
3693
3694 * tui/tui-winsource.h (struct tui_source_window_base)
3695 <show_source_content>: Now private.
3696 * tui/tui-winsource.c
3697 (tui_source_window_base::show_source_content): Don't handle empty
3698 content case.
3699
b3b1bde6
TT
37002019-09-20 Tom Tromey <tom@tromey.com>
3701
3702 * tui/tui-layout.c (show_source_disasm_command)
3703 (show_source_or_disasm_and_command): Don't call
3704 show_source_content.
3705
71a25ed2
TT
37062019-09-20 Tom Tromey <tom@tromey.com>
3707
3708 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3709 Declare.
3710 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3711 from tui_make_status_line.
3712 (tui_locator_window::rerender): Update.
3713
f8532154
TT
37142019-09-20 Tom Tromey <tom@tromey.com>
3715
3716 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3717 (tui_locator_window::rerender): Update.
3718
2d81b349
TT
37192019-09-20 Tom Tromey <tom@tromey.com>
3720
3721 * tui/tui-winsource.h (struct tui_source_window_base)
3722 <~tui_source_window_base>: Don't declare.
3723 <fullname>: Remove.
3724 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3725 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3726 member.
3727 * tui/tui-source.c (tui_source_window::set_contents): Update.
3728 (tui_source_window::location_matches_p)
3729 (tui_source_window::maybe_update): Update.
3730
f14bec58
TT
37312019-09-20 Tom Tromey <tom@tromey.com>
3732
3733 * tui/tui-winsource.h (~tui_source_element): Remove.
3734 (tui_source_element): Update.
3735 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3736 * tui/tui-winsource.c (tui_show_source_line): Update.
3737 * tui/tui-source.c (tui_source_window::set_contents): Update.
3738 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3739
78d5933a
TT
37402019-09-20 Tom Tromey <tom@tromey.com>
3741
3742 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3743 declare.
3744 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3745 tui_clear_source_windows_detail.
3746 * tui/tui-winsource.h (struct tui_source_window_base)
3747 <clear_detail>: Don't declare.
3748 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3749 Remove.
3750 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3751
d4207696
TT
37522019-09-20 Tom Tromey <tromey@adacore.com>
3753
3754 PR ada/24919:
3755 * block.c (contained_in): Fix final return value.
3756
00f93c44
AM
37572019-09-20 Alan Modra <amodra@gmail.com>
3758
3759 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3760 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3761 (read_indirect_string_from_dwz): Use bfd accessor.
3762 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3763 * machoread.c (macho_symfile_read_all_oso): Likewise.
3764 * solib.c (solib_bfd_open): Likewise.
3765
e4153ae6
CB
37662019-09-19 Christian Biesinger <cbiesinger@google.com>
3767
3768 * eval.c: Move declaration of overload_resolution to...
3769 * value.h: ...here.
3770
c7ae7675
CB
37712019-09-19 Christian Biesinger <cbiesinger@google.com>
3772
3773 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3774 * arm-linux-tdep.c: Likewise.
3775 * arm-nbsd-nat.c: Likewise.
3776 * arm-tdep.h: Declare arm_apcs_32.
3777 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3778
e86f08d2
CB
37792019-09-19 Christian Biesinger <cbiesinger@google.com>
3780
3781 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3782 * dwarf2read.h: Declare dwarf_always_disassemble.
3783
f64e2f40
TV
37842019-09-19 Tom de Vries <tdevries@suse.de>
3785
3786 PR gdb/25009
3787 * source-cache.c (source_cache::ensure): Catch exception thrown during
3788 construction of the highlighter.
3789
fd361982
AM
37902019-09-18 Alan Modra <amodra@gmail.com>
3791
3792 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3793 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3794 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3795 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3796 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3797 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3798 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3799 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3800 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3801 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3802 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3803 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3804 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3805 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3806 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3807 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3808 * mi/mi-interp.c: Update throughout for bfd section macro and
3809 function changes.
3810 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3811 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3812
11061048
TT
38132019-09-18 Tom Tromey <tom@tromey.com>
3814
3815 * NEWS: Add entry.
3816 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3817 call rl_initialize.
3818 (tui_enable): Do not call rl_initialize.
3819
7a27b85f
CG
38202019-09-18 Christian Groessler <chris@groessler.org>
3821
3822 * alpha-linux-nat.c: Include gdbarch.h.
3823
f64eea3a
SM
38242019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3825
3826 * ui-file.c: Include cli/cli-style.h.
3827 (term_cli_styling): Remove cli_styling declaration.
3828
e6f7f6d1
AM
38292019-09-18 Alan Modra <amodra@gmail.com>
3830
3831 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3832 to bfd_asymbol_section.
3833
1d38e9d1
AM
38342019-09-18 Alan Modra <amodra@gmail.com>
3835
3836 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3837 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3838 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3839
90d92a63
AM
38402019-09-18 Alan Modra <amodra@gmail.com>
3841
3842 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3843 * spu-linux-nat.c (spu_bfd_open): Likewise.
3844
a3d181d2
CB
38452019-09-18 Christian Biesinger <cbiesinger@google.com>
3846
3847 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3848 to bool to match definition in dwarf2read.c.
3849
491144b5
CB
38502019-09-17 Christian Biesinger <cbiesinger@google.com>
3851
3852 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3853 (print_signatures): Likewise.
3854 (trust_pad_over_xvs): Likewise.
3855 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3856 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3857 * arm-linux-nat.c (arm_apcs_32): Likewise.
3858 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3859 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3860 * arm-tdep.c (arm_debug): Likewise.
3861 (arm_apcs_32): Likewise.
3862 * auto-load.c (debug_auto_load): Likewise.
3863 (auto_load_gdb_scripts): Likewise.
3864 (global_auto_load): Likewise.
3865 (auto_load_local_gdbinit): Likewise.
3866 (auto_load_local_gdbinit_loaded): Likewise.
3867 * auto-load.h (global_auto_load): Likewise.
3868 (auto_load_local_gdbinit): Likewise.
3869 (auto_load_local_gdbinit_loaded): Likewise.
3870 * breakpoint.c (disconnected_dprintf): Likewise.
3871 (breakpoint_proceeded): Likewise.
3872 (automatic_hardware_breakpoints): Likewise.
3873 (always_inserted_mode): Likewise.
3874 (target_exact_watchpoints): Likewise.
3875 (_initialize_breakpoint): Update.
3876 * breakpoint.h (target_exact_watchpoints): Change to bool.
3877 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3878 * cli/cli-cmds.c (trace_commands): Likewise.
3879 * cli/cli-cmds.h (trace_commands): Likewise.
3880 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3881 to bool*.
3882 * cli/cli-logging.c (logging_overwrite): Change to bool.
3883 (logging_redirect): Likewise.
3884 (debug_redirect): Likewise.
3885 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3886 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3887 to bool.
3888 <boolean_option_def>: Update.
3889 (struct flag_option_def): Change default type of Context to bool
3890 from int.
3891 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3892 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3893 (get_setshow_command_value_string): Likewise.
3894 * cli/cli-style.c (cli_styling): Change to bool.
3895 (source_styling): Likewise.
3896 * cli/cli-style.h (source_styling): Likewise.
3897 (cli_styling): Likewise.
3898 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3899 to bool.
3900 * command.h (var_types): Update comment.
3901 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3902 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3903 bool.
3904 (debug_compile_cplus_scopes): Likewise.
3905 * compile/compile-internal.h (compile_debug): Likewise.
3906 * compile/compile.c (compile_debug): Likewise.
3907 (struct compile_options) <raw>: Likewise.
3908 * cp-support.c (catch_demangler_crashes): Likewise.
3909 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3910 (usr_cmd_cris_dwarf2_cfi): Likewise.
3911 * csky-tdep.c (csky_debug): Likewise.
3912 * darwin-nat.c (enable_mach_exceptions): Likewise.
3913 * dcache.c (dcache_enabled_p): Likewise.
3914 * defs.h (info_verbose): Likewise.
3915 * demangle.c (demangle): Likewise.
3916 (asm_demangle): Likewise.
3917 * dwarf-index-cache.c (debug_index_cache): Likewise.
3918 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3919 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3920 * dwarf2read.c (check_physname): Likewise.
3921 (use_deprecated_index_sections): Likewise.
3922 (dwarf_always_disassemble): Likewise.
3923 * eval.c (overload_resolution): Likewise.
3924 * event-top.c (set_editing_cmd_var): Likewise.
3925 (exec_done_display_p): Likewise.
3926 * event-top.h (set_editing_cmd_var): Likewise.
3927 (exec_done_display_p): Likewise.
3928 * exec.c (write_files): Likewise.
3929 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3930 (debug_fbsd_nat): Likewise.
3931 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3932 Likewise.
3933 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3934 <backtrace_past_entry> Likewise.
3935 * gdb-demangle.h (demangle): Likewise.
3936 (asm_demangle): Likewise.
3937 * gdb_bfd.c (bfd_sharing): Likewise.
3938 * gdbcore.h (write_files): Likewise.
3939 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3940 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3941 * gdbthread.h (print_thread_events): Likewise.
3942 * gdbtypes.c (opaque_type_resolution): Likewise.
3943 (strict_type_checking): Likewise.
3944 * gnu-nat.c (gnu_debug_flag): Likewise.
3945 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3946 * guile/scm-param.c (pascm_variable): Add boolval.
3947 (add_setshow_generic): Update.
3948 (pascm_param_value): Update.
3949 (pascm_set_param_value_x): Update.
3950 * hppa-tdep.c (hppa_debug): Change to bool..
3951 * infcall.c (may_call_functions_p): Likewise.
3952 (coerce_float_to_double_p): Likewise.
3953 (unwind_on_signal_p): Likewise.
3954 (unwind_on_terminating_exception_p): Likewise.
3955 * infcmd.c (startup_with_shell): Likewise.
3956 * inferior.c (print_inferior_events): Likewise.
3957 * inferior.h (startup_with_shell): Likewise.
3958 (print_inferior_events): Likewise.
3959 * infrun.c (step_stop_if_no_debug): Likewise.
3960 (detach_fork): Likewise.
3961 (debug_displaced): Likewise.
3962 (disable_randomization): Likewise.
3963 (non_stop): Likewise.
3964 (non_stop_1): Likewise.
3965 (observer_mode): Likewise.
3966 (observer_mode_1): Likewise.
3967 (set_observer_mode): Update.
3968 (sched_multi): Change to bool.
3969 * infrun.h (debug_displaced): Likewise.
3970 (sched_multi): Likewise.
3971 (step_stop_if_no_debug): Likewise.
3972 (non_stop): Likewise.
3973 (disable_randomization): Likewise.
3974 * linux-tdep.c (use_coredump_filter): Likewise.
3975 (dump_excluded_mappings): Likewise.
3976 * linux-thread-db.c (auto_load_thread_db): Likewise.
3977 (check_thread_db_on_load): Likewise.
3978 * main.c (captured_main_1): Update.
3979 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3980 xx2_opt, boolean_opt>: Change to bool.
3981 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3982 * maint.c (maintenance_profile_p): Likewise.
3983 (per_command_time): Likewise.
3984 (per_command_space): Likewise.
3985 (per_command_symtab): Likewise.
3986 * memattr.c (inaccessible_by_default): Likewise.
3987 * mi/mi-main.c (mi_async): Likewise.
3988 (mi_async_1): Likewise.
3989 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3990 * nat/fork-inferior.h (startup_with_shell): Likewise.
3991 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3992 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3993 * nios2-tdep.c (nios2_debug): Likewise.
3994 * or1k-tdep.c (or1k_debug): Likewise.
3995 * parse.c (parser_debug): Likewise.
3996 * parser-defs.h (parser_debug): Likewise.
3997 * printcmd.c (print_symbol_filename): Likewise.
3998 * proc-api.c (procfs_trace): Likewise.
3999 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4000 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4001 (set_parameter_value): Update.
4002 (add_setshow_generic): Update.
4003 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4004 to bool*.
4005 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4006 int*.
4007 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4008 * record-btrace.c (record_btrace_target::store_registers): Update.
4009 * record-full.c (record_full_memory_query): Change to bool.
4010 (record_full_stop_at_limit): Likewise.
4011 * record-full.h (record_full_memory_query): Likewise.
4012 * remote-notif.c (notif_debug): Likewise.
4013 * remote-notif.h (notif_debug): Likewise.
4014 * remote.c (use_range_stepping): Likewise.
4015 (interrupt_on_connect): Likewise.
4016 (remote_break): Likewise.
4017 * ser-tcp.c (tcp_auto_retry): Likewise.
4018 * ser-unix.c (serial_hwflow): Likewise.
4019 * skip.c (debug_skip): Likewise.
4020 * solib-aix.c (solib_aix_debug): Likewise.
4021 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4022 (spu_auto_flush_cache_p): Likewise.
4023 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4024 Likewise.
4025 (struct info_print_options) <quiet>: Likewise.
4026 * symfile-debug.c (debug_symfile): Likewise.
4027 * symfile.c (auto_solib_add): Likewise.
4028 (separate_debug_file_debug): Likewise.
4029 * symfile.h (auto_solib_add): Likewise.
4030 (separate_debug_file_debug): Likewise.
4031 * symtab.c (basenames_may_differ): Likewise.
4032 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4033 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4034 (struct info_types_options) <quiet>: Likewise.
4035 * symtab.h (demangle): Likewise.
4036 (basenames_may_differ): Likewise.
4037 * target-dcache.c (stack_cache_enabled_1): Likewise.
4038 (code_cache_enabled_1): Likewise.
4039 * target.c (trust_readonly): Likewise.
4040 (may_write_registers): Likewise.
4041 (may_write_memory): Likewise.
4042 (may_insert_breakpoints): Likewise.
4043 (may_insert_tracepoints): Likewise.
4044 (may_insert_fast_tracepoints): Likewise.
4045 (may_stop): Likewise.
4046 (auto_connect_native_target): Likewise.
4047 (target_stop_and_wait): Update.
4048 (target_async_permitted): Change to bool.
4049 (target_async_permitted_1): Likewise.
4050 (may_write_registers_1): Likewise.
4051 (may_write_memory_1): Likewise.
4052 (may_insert_breakpoints_1): Likewise.
4053 (may_insert_tracepoints_1): Likewise.
4054 (may_insert_fast_tracepoints_1): Likewise.
4055 (may_stop_1): Likewise.
4056 * target.h (target_async_permitted): Likewise.
4057 (may_write_registers): Likewise.
4058 (may_write_memory): Likewise.
4059 (may_insert_breakpoints): Likewise.
4060 (may_insert_tracepoints): Likewise.
4061 (may_insert_fast_tracepoints): Likewise.
4062 (may_stop): Likewise.
4063 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4064 (make_thread_apply_all_options_def_group): Change argument from int*
4065 to bool*.
4066 (thread_apply_all_command): Update.
4067 (print_thread_events): Change to bool.
4068 * top.c (confirm): Likewise.
4069 (command_editing_p): Likewise.
4070 (history_expansion_p): Likewise.
4071 (write_history_p): Likewise.
4072 (info_verbose): Likewise.
4073 * top.h (confirm): Likewise.
4074 (history_expansion_p): Likewise.
4075 * tracepoint.c (disconnected_tracing): Likewise.
4076 (circular_trace_buffer): Likewise.
4077 * typeprint.c (print_methods): Likewise.
4078 (print_typedefs): Likewise.
4079 * utils.c (debug_timestamp): Likewise.
4080 (sevenbit_strings): Likewise.
4081 (pagination_enabled): Likewise.
4082 * utils.h (sevenbit_strings): Likewise.
4083 (pagination_enabled): Likewise.
4084 * valops.c (overload_resolution): Likewise.
4085 * valprint.h (struct value_print_options) <prettyformat_arrays,
4086 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4087 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4088 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4089 Likewise.
4090 * windows-nat.c (new_console): Likewise.
4091 (cygwin_exceptions): Likewise.
4092 (new_group): Likewise.
4093 (debug_exec): Likewise.
4094 (debug_events): Likewise.
4095 (debug_memory): Likewise.
4096 (debug_exceptions): Likewise.
4097 (useshell): Likewise.
4098 * windows-tdep.c (maint_display_all_tib): Likewise.
4099 * xml-support.c (debug_xml): Likewise.
4100
f1b620e9
MG
41012019-09-17 Mike Gulick <mgulick@mathworks.com>
4102
4103 * source.c (prepare_path_for_appending): New function.
4104 (openp): Make use of new function.
4105 (find_and_open_source): Search for the compilation directory and
4106 source file as a relative path beneath the directory search path.
4107
67f3ed6a
AB
41082019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4109
4110 * source-cache.c (source_cache::get_line_charpos): Catch
4111 exceptions and return false, this matches the behaviour documented
4112 in the header file.
4113
74332189
JB
41142019-09-17 Joel Brobecker <brobecker@adacore.com>
4115
4116 * ada-tasks.c (info_task): Remove quoting of the task's name.
4117
f2f24aa9
CB
41182019-09-16 Christian Biesinger <cbiesinger@google.com>
4119
4120 * symfile.c (auto_solib_add): Replace comment with a reference
4121 to the header file.
4122
6a062a93
CB
41232019-09-14 Christian Biesinger <cbiesinger@google.com>
4124
4125 * NEWS: Mention that gdb can now be compiled with Python 3
4126 on Windows.
4127
ec6c8338
AB
41282019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4129
4130 * maint.c (maint_print_section_data::maint_print_section_data):
4131 Force use of 'float log10 (float)' by casting the argument to
4132 float.
4133
aa17805f
AB
41342019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4135
4136 * maint.c: Add 'cmath' include.
4137 (struct maint_print_section_data): New structure.
4138 (print_section_index): New function.
4139 (print_bfd_section_info): Add header comment, small whitespace
4140 cleanup, and update to call new print_section_index function.
4141 (print_objfile_section_info): Likewise.
4142 (maint_obj_section_from_bfd_section): New function.
4143 (print_bfd_section_info_maybe_relocated): New function.
4144 (maintenance_info_sections): Add header comment, always use
4145 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4146
3dd9bb46
AB
41472019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4148
4149 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4150 inner scope, add check that the objfile has psymtabs before
4151 checking psymtabs_addrmap.
4152 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4153
4993045d
PW
41542019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4155
4156 * NEWS: Announce that Ada task names are now shown at more places,
4157 and between quotes (except in info task output).
4158 * gdb/ada-tasks.c (task_to_str): New function.
4159 (display_current_task_id): Call task_to_str.
4160 (task_command_1): Likewise.
4161 (print_ada_task_info): In non-mi mode, Properly align headers and data
4162 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4163
7a289707
RO
41642019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4165
4166 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4167 prstatus.pr_lwp.pr_info instead of making it up.
4168
f2aec7f6
CB
41692019-09-11 Christian Biesinger <cbiesinger@google.com>
4170
4171 * auto-load.c (auto_load_expand_dir_vars): Update.
4172 * defs.h (gdb_datadir): Change to std::string.
4173 (python_libdir): Likewise.
4174 (relocate_gdb_directory): Change return type to std::string.
4175 * guile/guile.c (gdbscm_data_directory): Update.
4176 (initialize_scheme_side): Update.
4177 * jit.c (jit_reader_dir): Change to std::string.
4178 (jit_reader_load_command): Update.
4179 * main.c (gdb_datadir): Change to std::string.
4180 (python_libdir): Likewise.
4181 (set_gdb_data_directory): Update.
4182 (relocate_path): Change to return std::string.
4183 (relocate_gdb_directory): Change to return std::string.
4184 (relocate_gdbinit_path_maybe_in_datadir): Update.
4185 (captured_main_1): Update.
4186 * python/python.c (do_start_initialization): Update.
4187 * top.c (show_gdb_datadir): Update.
4188 * xml-syscall.c (xml_init_syscalls_info): Update.
4189 (init_syscalls_info): Update.
4190
9224a013
CB
41912019-09-11 Christian Biesinger <cbiesinger@google.com>
4192
4193 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4194 out of get_init_files.
4195 (get_init_files): Update.
4196
f48cd836
CB
41972019-09-11 Christian Biesinger <cbiesinger@google.com>
4198
4199 * main.c (get_init_files): Change to use std::string.
4200 (captured_main_1): Update.
4201 (print_gdb_help): Update.
4202
9cab7ecd
AT
42032019-09-11 Ali Tamur <tamur@google.com>
4204
4205 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4206 implementation.
4207
67547d89
CB
42082019-09-11 Christian Biesinger <cbiesinger@google.com>
4209
4210 * dbxread.c (read_dbx_symtab): Update.
4211 * dwarf2read.c (load_partial_dies): Update.
4212 * mdebugread.c (parse_partial_symbols): Update.
4213 (handle_psymbol_enumerators): Update.
4214 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4215 * psymtab.c (add_psymbol_to_bcache): Likewise.
4216 (add_psymbol_to_list): Likewise.
4217 * symtab.c (symbol_set_names): Likewise.
4218 * symtab.h (symbol_set_names): Likewise.
4219 * xcoffread.c (scan_xcoff_symtab): Update.
4220
64b2d4a0
TT
42212019-09-11 Tom Tromey <tom@tromey.com>
4222
4223 * symfile-mem.c (symbol_file_add_from_memory): Use
4224 bfd_set_filename.
4225 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4226 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4227
3b00ef10
TT
42282019-09-10 Tom Tromey <tromey@adacore.com>
4229
4230 * dwarf-index-write.c (write_psymbols): Extend error message.
4231 (debug_names::insert): Add Ada code.
4232 (debug_names::write_psymbols): Remove Ada check.
4233 (debug_names) <m_string_obstack>: New member.
4234 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4235 (gdb_index_symbol_name_matcher::matches): Remove.
4236 (mapped_index_base::find_name_components_bounds): Add "lang"
4237 parameter.
4238 (mapped_index_base::build_name_components): Also split names
4239 according to Ada syntax.
4240 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4241 type of "match_callback".
4242 (check_match, check_find_bounds_finds)
4243 (dw2_expand_symtabs_matching): Update.
4244 (dw2_debug_names_iterator): Add new constructor.
4245 (dw2_debug_names_map_matching_symbols): New function.
4246 (dw2_debug_names_expand_symtabs_matching): Update.
4247 (dwarf2_debug_names_functions): Use
4248 dw2_debug_names_map_matching_symbols.
4249
aa391654
TT
42502019-09-10 Tom Tromey <tromey@adacore.com>
4251
4252 * dwarf2read.c (dw2_get_file_names_reader): Add the
4253 CU's file name to the results.
4254
b054970d
TT
42552019-09-10 Tom Tromey <tromey@adacore.com>
4256
4257 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4258 map_matching_symbols. Update.
4259 * dwarf2read.c (dw2_map_matching_symbols): Update.
4260 * psymtab.c (match_partial_symbol): Change type; update.
4261 (psym_map_matching_symbols): Likewise.
4262 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4263 type; update.
4264 * symfile.h (struct quick_symbol_functions)
4265 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4266 Remove "match".
4267
6a3dbf1b
TT
42682019-09-10 Tom Tromey <tromey@adacore.com>
4269
4270 * psymtab.c (map_block): Remove.
4271 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4272 * symtab.c (iterate_over_symbols_terminated): New function.
4273 * symtab.c (iterate_over_symbols_terminated): Declare.
4274
6969f124
TT
42752019-09-10 Tom Tromey <tromey@adacore.com>
4276
4277 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4278 * language.h (struct language_defn) <la_iterate_over_symbols>:
4279 Return bool.
4280 * symtab.c (iterate_over_symbols): Return bool.
4281 * symtab.h (iterate_over_symbols): Return bool.
4282
199b4314
TT
42832019-09-10 Tom Tromey <tromey@adacore.com>
4284
4285 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4286 (add_nonlocal_symbols): Update.
4287 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4288 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4289 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4290 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4291 Change type of "callback". Remove "data".
4292
a084a2a6
AT
4293
42942019-09-09 Ali Tamur <tamur@google.com>
4295
4296 * dwarf2read.c (comp_unit_head): Update comment.
4297 (dwarf2_dwo_name): New function declaration.
4298 (dwarf_unit_type_name): New function declaration.
4299 (read_comp_unit_head): Add support for new compilation units,
4300 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4301 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4302 (currently named as "signature") in their header. Also clarify error
4303 messages.
4304 (lookup_dwo_id): New function. Returns the dwo id of the given
4305 compile unit.
4306 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4307 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4308 functions.
4309 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4310 (dwarf2_dwo_name): Get the dwo name if present.
4311 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4312 purposes.
4313
25a2915e
TT
43142019-09-09 Tom Tromey <tom@tromey.com>
4315
4316 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4317
e4df0874
PW
43182019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4319
4320 * python/python.c (do_start_initialization): Make progname_copy static,
4321 to avoid a leak report.
4322
8634b462
TT
43232019-09-08 Tom Tromey <tom@tromey.com>
4324
4325 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4326
c7f839cb
SM
43272019-09-07 Simon Marchi <simon.marchi@efficios.com>
4328
4329 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4330 Change type to gdb::optional<block_enum>.
4331 (dw2_symtab_iter_init): Change block_index parameter type
4332 to gdb::optional<block_enum>.
4333 (dw2_lookup_symbol): Change block_index parameter
4334 type to block_enum.c
4335 (dw2_debug_names_lookup_symbol): Likewise.
4336 * psymtab.c (psym_lookup_symbol): Likewise.
4337 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4338 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4339 Likewise.
4340
ead0e69a
CB
43412019-09-06 Christian Biesinger <cbiesinger@google.com>
4342
4343 * defs.h (relocate_gdb_directory): Change int to bool in
4344 signature and rename flag to relocatable.
4345 * main.c (relocate_path): Likewise.
4346 (relocate_gdb_directory): Likewise.
4347
b16c44de
AM
43482019-09-06 Alan Modra <amodra@gmail.com>
4349
4350 * coffread.c (coff_symfile_read): Constify filename variable.
4351 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4352 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4353 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4354 * solib.c (reload_shared_libraries_1): Likewise.
4355 * symfile.c (reread_symbols): Likewise.
4356 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4357 * solib-darwin.c (darwin_bfd_open): Likewise.
4358 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4359
06ff036e
AB
43602019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4361
4362 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4363 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4364
4e962e74
TT
43652019-09-03 Tom Tromey <tromey@adacore.com>
4366
4367 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4368 types.
4369 (has_negatives): Unbias a range type bound.
4370 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4371 * gdbtypes.c (operator==): Handle new field.
4372 (create_range_type): Add "bias" parameter.
4373 (create_static_range_type, resolve_dynamic_range): Update.
4374 * gdbtypes.h (struct range_bounds) <bias>: New member.
4375 (create_range_type): Add bias parameter.
4376 * printcmd.c (print_scalar_formatted): Unbias range types.
4377 * value.c (unpack_long): Unbias range types.
4378 (pack_long): Bias range types.
4379
d90b8f26
AH
43802019-09-02 Alan Hayward <alan.hayward@arm.com>
4381
4382 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4383 probe arguments.
4384
fe01123e
AH
43852019-09-02 Alan Hayward <alan.hayward@arm.com>
4386
4387 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4388 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4389 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4390 (compile_probe_arg): Likewise.
4391 * probe.h (get_argument_count): Likewise.
4392 * solib-svr4.c (solib_event_probe_action): Likewise.
4393 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4394
e661ef01
AH
43952019-09-02 Alan Hayward <alan.hayward@arm.com>
4396
4397 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4398 code to here...
4399 (svr4_create_solib_event_breakpoints): ...from here.
4400
47a536d9
SDJ
44012019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4402
4403 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4404 suffix from warning message.
4405
d6a00eba
TT
44062019-08-30 Tom Tromey <tom@tromey.com>
4407
4408 * tui/tui-winsource.h (struct tui_source_window_base)
4409 <refresh_all>: Don't declare.
4410 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4411 Remove.
4412 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4413 tui_show_locator_content.
4414 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4415 declare.
4416 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4417 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4418 declare.
4419
55b2657b
TT
44202019-08-30 Tom Tromey <tom@tromey.com>
4421
4422 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4423
12a8555a
TT
44242019-08-30 Tom Tromey <tom@tromey.com>
4425
4426 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4427 Remove unnecessary forward declarations.
4428
900ac242
TT
44292019-08-30 Tom Tromey <tom@tromey.com>
4430
4431 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4432 rerender.
4433 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4434 tui_show_locator_content.
4435
99ab33fb
TT
44362019-08-30 Tom Tromey <tom@tromey.com>
4437
4438 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4439 (tui_locator_window::rerender): Rewrite using body of previous
4440 tui_show_locator_content.
4441
e594a5d1
TT
44422019-08-30 Tom Tromey <tom@tromey.com>
4443
4444 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4445 set_locator_fullname>: New methods.
4446 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4447 Rename from tui_set_locator_fullname.
4448 (tui_locator_window::set_locator_info): Rename from
4449 tui_set_locator_info. Return bool.
4450 (tui_update_locator_fullname, tui_show_frame_info): Update.
4451
715bb467
TT
44522019-08-30 Tom Tromey <tom@tromey.com>
4453
4454 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4455
772f3f03
TT
44562019-08-30 Tom Tromey <tom@tromey.com>
4457
4458 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4459 call touchwin.
4460
108e13ab
TT
44612019-08-30 Tom Tromey <tom@tromey.com>
4462
4463 * tui/tui-wingeneral.c (box_win): Assume win_info and
4464 win_info->handle cannot be NULL.
4465
cdaa6eb4
TT
44662019-08-30 Tom Tromey <tom@tromey.com>
4467
4468 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4469 refresh_window>: Declare.
4470 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4471 resize.
4472 (tui_data_item_window::rerender): Rename from
4473 tui_display_register.
4474 (tui_data_item_window::refresh_window): New method.
4475 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4476 no-op.
4477
89df7f90
TT
44782019-08-30 Tom Tromey <tom@tromey.com>
4479
4480 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4481 regs_column_count, current_group>: Move later. Now private.
4482 <get_current_group>: New method.
4483 * tui/tui-regs.c (tui_reg_command): Update.
4484 * tui/tui-layout.c (tui_set_layout): Update.
4485
1bf2866a
TT
44862019-08-30 Tom Tromey <tom@tromey.com>
4487
4488 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4489 (tui_data_window::rerender): Don't call
4490 check_and_display_highlight_if_needed.
4491 (tui_data_window::refresh_all): Remove call to
4492 erase_data_content.
4493
0670413d
TT
44942019-08-30 Tom Tromey <tom@tromey.com>
4495
4496 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4497 (tui_data_window::display_registers_from)
4498 (tui_data_window::display_reg_element_at_line)
4499 (tui_data_window::display_registers_from_line): Remove checks of
4500 "empty".
4501
18bb55c7
TT
45022019-08-30 Tom Tromey <tom@tromey.com>
4503
4504 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4505 Don't declare.
4506 * tui/tui-regs.c (tui_data_window::show_registers): Call
4507 rerender.
4508 (tui_data_window::rerender): Rename from display_all_data.
4509 (tui_data_window::rerender): Remove old implementation.
4510
1f6d2f10
TT
45112019-08-30 Tom Tromey <tom@tromey.com>
4512
4513 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4514 text.
4515 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4516
16d01f9c
BW
45172019-08-29 Bernhard Wodok <barto@gmx.net>
4518 Sergio Durigan Junior <sergiodj@redhat.com>
4519
4520 PR win32/24284
4521 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4522
d8f27c60
AB
45232019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4524
4525 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4526 when searching for types.
4527
1f20c35e
AB
45282019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4529
4530 * f-lang.c (f_language_defn): Use f_print_typedef.
4531 * f-lang.h (f_print_typedef): Declare.
4532 * f-typeprint.c (f_print_typedef): Define.
4533
550105b7
CB
45342019-08-27 Christian Biesinger <cbiesinger@google.com>
4535
4536 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4537
4acfdd20
AB
45382019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4539
4540 * cli/cli-utils.c (info_print_options_defs): Delete.
4541 (make_info_print_options_def_group): Delete.
4542 (extract_info_print_options): Delete.
4543 (info_print_command_completer): Delete.
4544 (info_print_args_help): Add extra parameter, and optionally
4545 include text about -n flag.
4546 * cli/cli-utils.h (struct info_print_options): Delete.
4547 (extract_info_print_options): Delete declaration.
4548 (info_print_command_completer): Delete declaration.
4549 (info_print_args_help): Add extra parameter, extend header
4550 comment.
4551 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4552 search_symbols.
4553 * stack.c (struct info_print_options): New type.
4554 (info_print_options_defs): New file scoped variable.
4555 (make_info_print_options_def_group): New static function.
4556 (info_print_command_completer): New static function.
4557 (info_locals_command): Update to use new local functions.
4558 (info_args_command): Likewise.
4559 (_initialize_stack): Add extra parameter to calls to
4560 info_print_args_help.
4561 * symtab.c (search_symbols): Add extra parameter, use this to
4562 possibly excluse non-debug symbols.
4563 (symtab_symbol_info): Add extra parameter, which is passed on to
4564 search_symbols.
4565 (struct info_print_options): New type.
4566 (info_print_options_defs): New file scoped variable.
4567 (make_info_print_options_def_group): New static function.
4568 (info_print_command_completer): New static function.
4569 (info_variables_command): Update to use local functions, and pass
4570 extra parameter through to symtab_symbol_info.
4571 (info_functions_command): Likewise.
4572 (info_types_command): Pass additional argument through to
4573 symtab_symbol_info.
4574 (rbreak_command): Pass extra argument to search_symbols.
4575 (_initialize_symtab): Add extra arguments for calls to
4576 info_print_args_help, and update help text for 'info variables',
4577 'whereis', and 'info functions' commands.
4578 * symtab.h (search_symbols): Add extra argument to declaration.
4579 * NEWS: Mention new flags.
4580
9aa55206
CB
45812019-08-26 Christian Biesinger <cbiesinger@google.com>
4582
4583 * symtab.c (lookup_static_symbol): Call the new function (and move
4584 it down to be next to lookup_global_symbol).
4585 (struct global_sym_lookup_data): Add block_enum member and rename to...
4586 (struct global_or_static_sym_lookup_data): ...this.
4587 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4588 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4589 (lookup_symbol_global_or_static_iterator_cb): ...this.
4590 (lookup_global_or_static_symbol): New function.
4591 (lookup_global_symbol): Call new function.
4592
5c31b358
TV
45932019-08-26 Tom de Vries <tdevries@suse.de>
4594
4595 PR c++/24852
4596 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4597 when pc_probe.prob == NULL.
4598
23c13d42
SM
45992019-08-25 Simon Marchi <simon.marchi@efficios.com>
4600
4601 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4602 variable symbol_linkage to symbol_linkage_.
4603
beadd3e8
SM
46042019-08-25 Simon Marchi <simon.marchi@efficios.com>
4605
4606 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4607 represent whether the symbol is static, dynamic, or we don't
4608 know.
4609
e3ec872f
YS
46102019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4611
4612 * gdb/rx-tdep.c (rx_register_names): New.
4613 (rx_register_name): Delete.
4614 (rx_psw_type): Delete.
4615 (rx_fpsw_type): Delete.
4616 (rx_register_type): Delete.
4617 (rx_gdbarch_init): Convert target-descriptions.
4618 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4619 * gdb/features/Makefile: Add rx.xml.
4620 * gdb/features/rx.xml: New.
4621 * gdb/features/rx.c: Generated.
4622 * gdb/NEWS: Mention target description support.
4623
d0509ba4
CB
46242019-08-22 Christian Biesinger <cbiesinger@google.com>
4625
4626 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4627 *slot_ptr.
4628
2d41fa11
SDJ
46292019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4630
4631 * configure.ac: Don't check for 'dlfcn.h' (moved to
4632 gdbsupport/common.m4).
4633 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4634 'gdbsupport/'.
4635 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4636 * compile/compile-c-support.c: Include
4637 'gdbsupport/gdb-dlfcn.h'.
4638 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4639 * gdb-dlfcn.c: Move to...
4640 * gdbsupport/gdb-dlfcn.c: ... here.
4641 * gdb-dlfcn.h: Move to...
4642 * gdbsupport/gdb-dlfcn.h: ... here.
4643
de8af808
SL
46442019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4645
4646 * nios2-tdep.c (struct reg_value): Improve comments. Make
4647 the offset field signed.
4648
27204489
CB
46492019-08-22 Christian Biesinger <cbiesinger@google.com>
4650
4651 * python/lib/gdb/__init__.py (_execute_file): New function.
4652 * python/python.c (python_run_simple_file): Call gdb._execute_file
4653 on Windows.
4654
43771869
AB
46552019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4656
4657 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4658 all uses as this was never set to anything but a zero value.
4659
26c957f1
PA
46602019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4661
4662 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4663
c07aae6e
CB
46642019-08-21 Christian Biesinger <cbiesinger@google.com>
4665
4666 * tui/tui-data.h (tui_gen_win_info): Add an =default
4667 move constructor, required by some GCC versions.
4668
3960cb7a
JF
46692019-08-21 Jinke Fan <fanjinke51@yeah.net>
4670
4671 * go32-nat.c (go32_sysinfo): Add hygon_p.
4672
04c72a68
TT
46732019-08-20 Tom Tromey <tom@tromey.com>
4674
4675 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4676 line_from_reg_element_no, first_reg_element_no_inline,
4677 display_all_data, delete_data_content_windows,
4678 erase_data_content>: Now private.
4679
072272ce
TT
46802019-08-20 Tom Tromey <tom@tromey.com>
4681
4682 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4683 (tui_unhighlight_win, tui_highlight_win)
4684 (tui_win_info::make_window): Update.
4685 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4686
973961bd
TT
46872019-08-20 Tom Tromey <tom@tromey.com>
4688
4689 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4690 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4691 (MAX_PID_WIDTH): Move to tui-stack.c.
4692 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4693 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4694 (MAX_PID_WIDTH): Move from tui-data.h.
4695
ab0e1f1a
TT
46962019-08-20 Tom Tromey <tom@tromey.com>
4697
4698 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4699 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4700 (box_win): Update.
4701 (tui_gen_win_info::make_window): Rename from tui_make_window.
4702 (tui_win_info::make_window): New method.
4703 (tui_gen_win_info::make_visible): Update.
4704 * tui/tui-source.c (tui_source_window::set_contents): Update.
4705 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4706 (tui_data_window::display_registers_from): Update.
4707 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4708 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4709 Declare.
4710 <can_box>: Remove.
4711 <title>: Remove.
4712 (struct tui_win_info) <make_window>: Declare.
4713 <can_box>: Now virtual.
4714 <title>: New member.
4715 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4716 * tui/tui-command.c (tui_cmd_window::resize): Update.
4717
100c2bf3
TT
47182019-08-20 Tom Tromey <tom@tromey.com>
4719
4720 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4721 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4722 (tui_data_window::check_register_values): Update.
4723
fa4dc567
TT
47242019-08-20 Tom Tromey <tom@tromey.com>
4725
4726 * tui/tui-regs.h (struct tui_data_window): Use
4727 DISABLE_COPY_AND_ASSIGN.
4728 <regs_content>: Change type, removing unique_ptr.
4729 <tui_data_window>: Add move constructor.
4730 * tui/tui-regs.c (tui_data_window::show_registers)
4731 (tui_data_window::show_register_group)
4732 (tui_data_window::display_registers_from)
4733 (tui_data_window::display_registers_from)
4734 (tui_data_window::first_data_item_displayed)
4735 (tui_data_window::delete_data_content_windows)
4736 (tui_data_window::rerender, tui_data_window::refresh_window)
4737 (tui_data_window::check_register_values): Update.
4738
ca02d7c8
TT
47392019-08-20 Tom Tromey <tom@tromey.com>
4740
4741 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4742 show_register_group>: Declare.
4743 (tui_show_register_group): Don't declare.
4744 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4745 tui_show_registers.
4746 (tui_data_window::show_register_group): Rename from
4747 tui_show_register_group.
4748 (tui_data_window::check_register_values, tui_reg_command):
4749 Update.
4750 * tui/tui-layout.c (tui_set_layout): Update.
4751
63356bfd
TT
47522019-08-20 Tom Tromey <tom@tromey.com>
4753
4754 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4755 Declare.
4756 (tui_check_register_values): Don't declare.
4757 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4758 from tui_check_register_values.
4759 * tui/tui-hooks.c (tui_register_changed): Update.
4760
42cc14a7
TT
47612019-08-20 Tom Tromey <tom@tromey.com>
4762
4763 * tui/tui-regs.c (tui_reg_layout): Move later.
4764 (tui_show_registers): Don't enable TUI mode or change layout.
4765
b9ad3686
TT
47662019-08-20 Tom Tromey <tom@tromey.com>
4767
4768 * tui/tui-regs.h (struct tui_data_item_window)
4769 <~tui_data_item_window>: Remove.
4770 <content>: Now a unique_xmalloc_ptr.
4771 * tui/tui-regs.c (tui_register_format): Return a
4772 unique_xmalloc_ptr.
4773 (tui_get_register): Update.
4774 (~tui_data_item_window): Remove.
4775 (tui_data_window::display_registers_from, tui_display_register):
4776 Update.
4777 * tui/tui-io.h (tui_expand_tabs): Update.
4778 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4779 Remove "col" parameter.
4780
8e114aab
TT
47812019-08-20 Tom Tromey <tom@tromey.com>
4782
4783 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4784 field.
4785 * tui/tui-regs.c (~tui_data_item_window): Update.
4786
1a4f81dd
TT
47872019-08-20 Tom Tromey <tom@tromey.com>
4788
4789 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4790 earlier.
4791
0f8d8876
TT
47922019-08-20 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4795
605dc2c2
TT
47962019-08-20 Tom Tromey <tom@tromey.com>
4797
4798 * tui/tui-source.h (struct tui_source_window): Update.
4799 * tui/tui-regs.c (tui_show_registers): Update.
4800 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4801 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4802 (NO_REGS_STRING): Remove defines.
4803
aedbe3bb
CM
48042019-08-20 Conrad Meyer <cem@FreeBSD.org>
4805
4806 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4807 unnecessary thread walk if remote doesn't support the packet.
4808
7ce8f214
TT
48092019-08-19 Tom Tromey <tromey@adacore.com>
4810
4811 * python/py-value.c (value_has_field): Fix indentation.
4812
f21c2bd7
TT
48132019-08-19 Tom Tromey <tromey@adacore.com>
4814
4815 * printcmd.c (do_one_display, info_display_command): Update.
4816 * block.h (contained_in): Return bool. Add allow_nested
4817 parameter.
4818 * block.c (contained_in): Return bool. Add allow_nested
4819 parameter.
4820
d806ea2d
TT
48212019-08-19 Tom Tromey <tom@tromey.com>
4822
4823 * configure: Rebuild.
4824 * configure.ac: Disallow the combination of -static-libstdc++ and
4825 source highlight.
4826 * source-cache.c (get_language_name): Handle rust.
4827 (source_cache::get_source_lines): Ignore highlighting exceptions.
4828
398fdd60
TT
48292019-08-16 Tom Tromey <tom@tromey.com>
4830
4831 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4832 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4833 (struct tui_source_window_base) <make_visible, refresh_window,
4834 resize>: Remove methods.
4835 <execution_info>: Remove field.
4836 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4837 (tui_show_source_line, tui_source_window_base)
4838 (~tui_source_window_base): Update.
4839 (tui_source_window_base::resize)
4840 (tui_source_window_base::make_visible)
4841 (tui_source_window_base::refresh_window): Remove.
4842 (tui_source_window_base::update_exec_info): Update.
4843 * tui/tui-source.c (tui_source_window::set_contents): Update.
4844 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4845
e699d331
TT
48462019-08-16 Tom Tromey <tom@tromey.com>
4847
4848 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4849 deprecated_query_hook.
4850
bb01dbfc
TT
48512019-08-16 Tom Tromey <tom@tromey.com>
4852
4853 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4854 (tui_update_source_windows_with_line): Update.
4855 * tui/tui-source.h (struct tui_source_window)
4856 <show_symtab_source>: Declare.
4857 (tui_show_symtab_source): Don't declare.
4858 * tui/tui-source.c (tui_show_symtab_source): Rename from
4859 tui_show_symtab_source.
4860
81c82c4b
TT
48612019-08-16 Tom Tromey <tom@tromey.com>
4862
4863 * tui/tui-winsource.h (struct tui_source_window_base)
4864 <set_contents>: Declare.
4865 * tui/tui-winsource.c
4866 (tui_source_window_base::update_source_window_as_is): Update.
4867 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4868 Declare.
4869 (tui_set_source_content): Don't declare.
4870 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4871 tui_set_source_content.
4872 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4873 Declare.
4874 (tui_set_disassem_content): Don't declare.
4875 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4876 tui_set_disassem_content.
4877
2ddaf614
TT
48782019-08-16 Tom Tromey <tom@tromey.com>
4879
4880 * tui/tui-winsource.h (struct tui_source_window_base)
4881 <update_breakpoint_info>: Declare.
4882 (tui_update_breakpoint_info): Don't declare.
4883 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4884 (tui_update_all_breakpoint_info): Update.
4885 (tui_source_window_base::update_breakpoint_info): Rename from
4886 tui_update_breakpoint_info.
4887 (tui_source_window_base::update_exec_info): Update.
4888
017f9828
TT
48892019-08-16 Tom Tromey <tom@tromey.com>
4890
4891 * tui/tui-winsource.h (struct tui_source_window_base)
4892 <update_source_window>: Declare.
4893 (tui_update_source_window): Don't declare.
4894 * tui/tui-winsource.c
4895 (tui_source_window_base::update_source_window): Rename from
4896 tui_update_source_window.
4897 (tui_source_window_base::rerender): Update.
4898 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4899 * tui/tui-disasm.c (tui_show_disassem)
4900 (tui_show_disassem_and_update_source)
4901 (tui_disasm_window::maybe_update): Update.
4902
ed8358e9
TT
49032019-08-16 Tom Tromey <tom@tromey.com>
4904
4905 * tui/tui-winsource.h (struct tui_source_window_base)
4906 <update_source_window_as_is>: Declare.
4907 (tui_update_source_window_as_is): Don't declare.
4908 * tui/tui-winsource.c (tui_update_source_window): Update
4909 (tui_source_window_base::update_source_window_as_is): Rename from
4910 tui_update_source_window_as_is.
4911 (tui_source_window_base::refill): Update.
4912 * tui/tui-source.c (tui_show_symtab_source): Update.
4913 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4914 Update.
4915
20149b6b
TT
49162019-08-16 Tom Tromey <tom@tromey.com>
4917
4918 * tui/tui-winsource.h (tui_update_source_window)
4919 (tui_update_source_window_as_is): Remove "noerror" parameter.
4920 * tui/tui-winsource.c (tui_update_source_window)
4921 (tui_update_source_window_as_is): Remove "noerror" parameter.
4922 (tui_update_source_windows_with_addr)
4923 (tui_update_source_windows_with_line)
4924 (tui_source_window_base::rerender)
4925 (tui_source_window_base::refill): Update.
4926 * tui/tui-source.h (tui_set_source_content)
4927 (tui_show_symtab_source): Remove "noerror" parameter.
4928 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4929 parameter.
4930 (tui_show_symtab_source): Likewise.
4931 (tui_source_window::maybe_update): Update.
4932 * tui/tui-disasm.c (tui_show_disassem)
4933 (tui_show_disassem_and_update_source)
4934 (tui_disasm_window::do_scroll_vertical)
4935 (tui_disasm_window::maybe_update): Update.
4936
2d83e710
TT
49372019-08-16 Tom Tromey <tom@tromey.com>
4938
4939 * tui/tui.c (tui_is_window_visible): Update.
4940 * tui/tui-wingeneral.c (tui_make_window)
4941 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4942 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4943 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4944 (tui_set_win_height_command, parse_scrolling_args): Update.
4945 * tui/tui-source.c (tui_source_window::style_changed): Update.
4946 * tui/tui-regs.c (tui_show_registers)
4947 (tui_data_window::first_data_item_displayed)
4948 (tui_data_window::delete_data_content_windows)
4949 (tui_check_register_values, tui_reg_command): Update.
4950 * tui/tui-disasm.c (tui_show_disassem): Update.
4951 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4952 method.
4953 <is_visible>: Remove field.
4954 * tui/tui-data.c (tui_next_win, tui_prev_win)
4955 (tui_delete_invisible_windows): Update.
4956
d4ab829a
TT
49572019-08-16 Tom Tromey <tom@tromey.com>
4958
4959 * tui/tui-winsource.h (struct tui_source_window_base)
4960 <m_has_locator>: Remove.
4961 * tui/tui-layout.c (show_source_disasm_command, show_data)
4962 (show_source_or_disasm_and_command): Update.
4963
aa7ca1bb
AH
49642019-08-16 Alan Hayward <alan.hayward@arm.com>
4965
4966 * NEWS (Other MI changes): New subsection.
4967 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4968 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4969 * arch-utils.c (default_get_pc_address_flags): New function.
4970 * arch-utils.h (default_get_pc_address_flags): New declaration.
4971 * gdbarch.sh: Add get_pc_address_flags.
4972 * gdbarch.c: Regenerate.
4973 * gdbarch.h: Likewise.
4974 * stack.c (print_pc): New function.
4975 (print_frame_info) (print_frame): Call print_pc.
4976
6eac171f
TV
49772019-08-16 Tom de Vries <tdevries@suse.de>
4978
4979 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4980 print_objfile_section_info.
4981
3df505f6
TT
49822019-08-15 Tom Tromey <tom@tromey.com>
4983
4984 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4985 calling update_cmdwin_start_line.
4986 * tui/tui-winsource.h (struct tui_source_window_base)
4987 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4988 <rerender>: Declare.
4989 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4990 Call rerender.
4991 (tui_source_window_base::set_new_height): Remove.
4992 (tui_source_window_base::rerender): Rename from
4993 do_make_visible_with_new_height.
4994 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4995 resize method.
4996 (tui_win_info::make_invisible_and_set_new_height)
4997 (tui_win_info::make_visible_with_new_height): Remove.
4998 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4999 Declare.
5000 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5001 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5002 do_make_visible_with_new_height>: Don't declare.
5003 <rerender>: Declare.
5004 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5005 set_new_height.
5006 (tui_data_window::do_make_visible_with_new_height): Remove.
5007 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5008 call tui_show_locator_content.
5009 (tui_gen_win_info::resize): Call rerender.
5010 (show_source_or_disasm_and_command): Don't call
5011 tui_show_locator_content.
5012 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5013 method.
5014 (struct tui_win_info) <rerender>: Declare.
5015 <set_new_height, make_invisible_and_set_new_height,
5016 make_visible_with_new_height>: Don't declare.
5017 * tui/tui-data.c (tui_win_list::rerender): New method.
5018 * tui/tui-command.h (struct tui_cmd_window)
5019 <do_make_visible_with_new_height>: Don't declare.
5020 * tui/tui-command.c
5021 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5022
272560b5
TT
50232019-08-15 Tom Tromey <tromey@adacore.com>
5024
5025 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5026 * ada-lang.c (ada_enum_name): Likewise.
5027
08235187
CB
50282019-08-15 Christian Biesinger <cbiesinger@google.com>
5029
5030 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5031 leading underscore.
5032 (GdbOutputErrorFile): Likewise.
5033 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5034 accordingly.
5035 (execute_unwinders): Rename to have a leading underscore.
5036 (auto_load_packages): Likewise.
5037 (global scope): Adjust call to auto_load_packages accordingly.
5038 (GdbSetPythonDirectory): Likewise.
5039 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5040 instead of execute_unwinders.
5041
db502012
TT
50422019-08-15 Tom Tromey <tom@tromey.com>
5043
5044 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5045 (show_data): Don't change window visibility.
5046 (tui_gen_win_info::resize): Remove special case for command
5047 window. Use wresize, when available.
5048 (show_source_or_disasm_and_command): Don't change window
5049 visibility.
5050 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5051 <make_visible>: New method.
5052 * tui/tui-command.c (tui_cmd_window::resize): New method.
5053
3891b65e
TT
50542019-08-15 Tom Tromey <tom@tromey.com>
5055
5056 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5057 (struct tui_source_windows): New.
5058 * tui/tui-winsource.c (tui_display_main): Update.
5059 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5060 (new_height_ok, parse_scrolling_args): Update.
5061 * tui/tui-layout.c (show_layout, show_data): Update.
5062 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5063 (tui_add_to_source_windows): Don't declare.
5064 * tui/tui-data.c (source_windows, tui_source_windows)
5065 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5066
ee556432
TT
50672019-08-15 Tom Tromey <tom@tromey.com>
5068
5069 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5070 Rename from reset.
5071 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5072 * tui/tui-layout.c (show_source_disasm_command, show_data):
5073 Update.
5074 (tui_gen_win_info::resize): Rename.
5075 (show_source_or_disasm_and_command): Update.
5076 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5077 reset.
5078
46f438e3
TT
50792019-08-15 Tom Tromey <tom@tromey.com>
5080
5081 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5082 * tui/tui-interp.c (tui_interp::init): Don't call
5083 tui_initialize_static_data.
5084 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5085
f4ce562c
TT
50862019-08-15 Tom Tromey <tom@tromey.com>
5087
5088 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5089 examine tui_win_list.
5090
c398c3d0
TT
50912019-08-15 Tom Tromey <tom@tromey.com>
5092
5093 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5094 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5095 tui_clear_source_content.
5096 (tui_clear_source_content): Remove.
5097 (tui_source_window_base::do_erase_source_content): Hoist call to
5098 content.clear().
5099 * tui/tui-stack.c (tui_show_frame_info): Don't call
5100 tui_clear_source_content.
5101
e25d2004
TT
51022019-08-15 Tom Tromey <tom@tromey.com>
5103
5104 * tui/tui-winsource.h (struct tui_source_window_base)
5105 <do_erase_source_content>: New method.
5106 <erase_source_content>: New method.
5107 (tui_erase_source_content): Don't declare.
5108 * tui/tui-winsource.c (tui_clear_source_content): Update.
5109 (tui_source_window_base::do_erase_source_content): Rename from
5110 tui_erase_source_content.
5111 (tui_source_window_base::show_source_content): Update.
5112 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5113 * tui/tui-source.h (struct tui_source_window)
5114 <erase_source_content>: New method.
5115 * tui/tui-disasm.h (struct tui_disasm_window)
5116 <erase_source_content>: New method.
5117
002f15c2
TT
51182019-08-15 Tom Tromey <tom@tromey.com>
5119
5120 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5121 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5122 constructor.
5123 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5124 * tui/tui-source.c (tui_set_source_content): Update.
5125 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5126
c9033fe8
TT
51272019-08-15 Tom Tromey <tom@tromey.com>
5128
5129 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5130 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5131 tui-source.c.
5132 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5133 Declare.
5134 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5135 method.
5136 (tui_source_window::maybe_update): Update.
5137
088f37dd
TT
51382019-08-15 Tom Tromey <tom@tromey.com>
5139
5140 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5141 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5142 tui-disasm.c.
5143 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5144 Declare.
5145 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5146 method.
5147 (tui_disasm_window::maybe_update): Update.
5148
a54700c6
TT
51492019-08-15 Tom Tromey <tom@tromey.com>
5150
5151 * tui/tui-winsource.h (struct tui_source_window_base)
5152 <maybe_update>: Declare.
5153 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5154 method.
5155 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5156 Declare.
5157 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5158 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5159 Declare.
5160 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5161
e2a678a5
TT
51622019-08-15 Tom Tromey <tom@tromey.com>
5163
5164 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5165
f2dda477
TT
51662019-08-15 Tom Tromey <tom@tromey.com>
5167
5168 * tui/tui-wingeneral.c: Include tui-stack.h.
5169 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5170 (struct tui_locator_window): Move from tui-data.h.
5171 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5172 (tui_initialize_static_data): Move from tui-data.c.
5173 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5174 (struct tui_locator_window): Move to tui-stack.c.
5175 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5176 (tui_initialize_static_data): Move to tui-stack.c.
5177
ed4a1084
TT
51782019-08-15 Tom Tromey <tom@tromey.com>
5179
5180 * tui/tui-layout.c (show_source_disasm_command)
5181 (show_source_or_disasm_and_command): Use make_visible method, not
5182 tui_make_window.
5183 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5184 Remove.
5185
65962b20
TT
51862019-08-15 Tom Tromey <tom@tromey.com>
5187
5188 * tui/tui-wingeneral.h (tui_make_window): Update.
5189 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5190 parameter.
5191 (tui_gen_win_info::make_visible): Update.
5192 * tui/tui-regs.c (tui_data_window::display_registers_from):
5193 Update.
5194 * tui/tui-layout.c (show_source_disasm_command)
5195 (show_source_or_disasm_and_command): Update.
5196 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5197 (enum tui_box): Remove.
5198 (struct tui_win_info) <can_box>: New method.
5199 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5200 method.
5201
2208ee91
TV
52022019-08-15 Tom de Vries <tdevries@suse.de>
5203
5204 * linux-nat-trad.c: Include gdbarch.h.
5205
75faf5c4
AH
52062019-08-14 Alan Hayward <alan.hayward@arm.com>
5207
5208 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5209 register sizes.
5210
b1c896b3
TT
52112019-08-14 Tom Tromey <tromey@adacore.com>
5212
5213 * darwin-nat.c: Include gdbarch.h.
5214 * darwin-nat-info.c: Include gdbarch.h.
5215
6405cd73
TT
52162019-08-13 Tom Tromey <tom@tromey.com>
5217
5218 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5219 Remove.
5220 * tui/tui-data.c (tui_initialize_static_data): Update.
5221
5216580d
TT
52222019-08-13 Tom Tromey <tom@tromey.com>
5223
5224 * tui/tui-winsource.h (struct tui_exec_info_window)
5225 <~tui_exec_info_window, maybe_allocate_content, get_content,
5226 m_content>: Remove.
5227 (struct tui_source_window_base) <set_exec_info_content,
5228 show_exec_info_content>: Don't declare.
5229 * tui/tui-winsource.c
5230 (tui_exec_info_window::maybe_allocate_content): Remove.
5231 (tui_source_window_base::update_exec_info): Rename from
5232 set_exec_info_content.
5233 (tui_source_window_base::show_exec_info_content)
5234 (tui_source_window_base::update_exec_info): Remove.
5235
93858ad3
TT
52362019-08-13 Tom Tromey <tom@tromey.com>
5237
5238 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5239 declare.
5240 * tui/tui-winsource.c (tui_update_source_window_as_is)
5241 (tui_update_source_windows_with_addr, tui_erase_source_content):
5242 Update.
5243 (tui_clear_exec_info_content): Remove.
5244
e321e7ce
TT
52452019-08-13 Tom Tromey <tom@tromey.com>
5246
5247 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5248 declare.
5249 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5250 call tui_erase_exec_info_content.
5251 (tui_clear_exec_info_content): Rename from
5252 tui_erase_exec_info_content.
5253 (tui_clear_exec_info_content): Delete.
5254
8270ac62
TT
52552019-08-13 Tom Tromey <tom@tromey.com>
5256
5257 * tui/tui-winsource.h (struct tui_source_window_base)
5258 <show_exec_info_content>: Declare.
5259 (tui_show_exec_info_content): Don't declare.
5260 * tui/tui-winsource.c
5261 (tui_source_window_base::show_exec_info_content): Rename from
5262 tui_show_exec_info_content.
5263 (tui_source_window_base::update_exec_info): Update.
5264
7b56485d
TT
52652019-08-13 Tom Tromey <tom@tromey.com>
5266
5267 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5268 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5269 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5270 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5271 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5272 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5273 ... here.
5274
7ba913dc
TT
52752019-08-13 Tom Tromey <tom@tromey.com>
5276
5277 * tui/tui-winsource.h (struct tui_source_window_base)
5278 <update_exec_info>: Declare.
5279 (tui_update_exec_info): Don't declare.
5280 * tui/tui-winsource.c (tui_update_source_window_as_is)
5281 (tui_source_window_base::refresh_all)
5282 (tui_update_all_breakpoint_info): Update.
5283 (tui_source_window_base::update_exec_info): Rename from
5284 tui_update_exec_info.
5285 * tui/tui-stack.c (tui_show_frame_info): Update.
5286
37a4a131
TT
52872019-08-13 Tom Tromey <tom@tromey.com>
5288
5289 * tui/tui-winsource.h (struct tui_source_window_base)
5290 <set_exec_info_content>: Declare.
5291 (tui_set_exec_info_content): Don't declare.
5292 * tui/tui-winsource.c
5293 (tui_source_window_base::set_exec_info_content): Rename from
5294 tui_set_exec_info_content.
5295 (tui_update_exec_info): Update.
5296
0bd27e07
TT
52972019-08-13 Tom Tromey <tom@tromey.com>
5298
5299 * tui/tui-winsource.h (struct tui_source_window_base)
5300 <show_source_content>: Declare.
5301 (tui_show_source_content): Don't declare.
5302 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5303 (tui_source_window_base::show_source_content): Rename from
5304 tui_show_source_content.
5305 (tui_source_window_base::refresh_all): Update.
5306 * tui/tui-layout.c (show_source_disasm_command)
5307 (show_source_or_disasm_and_command): Update.
5308
b4ef5aeb
TT
53092019-08-13 Tom Tromey <tom@tromey.com>
5310
5311 * tui/tui-winsource.c (tui_erase_source_content)
5312 (tui_show_source_content, tui_source_window_base::refresh_all):
5313 Update.
5314 * tui/tui-wingeneral.h
5315 (tui_check_and_display_highlight_if_needed): Don't declare.
5316 * tui/tui-wingeneral.c
5317 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5318 check_and_display_highlight_if_needed.
5319 * tui/tui-win.c (tui_rehighlight_all)
5320 (tui_win_info::make_visible_with_new_height): Update.
5321 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5322 (tui_data_window::erase_data_content)
5323 (tui_data_window::display_all_data): Update.
5324 * tui/tui-data.h (struct tui_win_info)
5325 <check_and_display_highlight_if_needed>: Declare.
5326
fede5273
TT
53272019-08-13 Tom Tromey <tom@tromey.com>
5328
5329 * tui/tui-win.c (tui_resize_all): Call
5330 tui_delete_invisible_windows.
5331 * tui/tui-layout.c (show_layout): Call
5332 tui_delete_invisible_windows.
5333 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5334 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5335
22c3f490
TT
53362019-08-13 Tom Tromey <tom@tromey.com>
5337
5338 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5339 tui_add_win_to_layout.
5340
16cb7910
TT
53412019-08-13 Tom Tromey <tom@tromey.com>
5342
5343 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5344 * tui/tui-layout.c (tui_default_win_height): Now static.
5345
cc0c3ffb
TT
53462019-08-13 Tom Tromey <tom@tromey.com>
5347
5348 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5349 single switch.
5350 (show_source_disasm_command, show_source_or_disasm_and_command):
5351 Don't check current layout.
5352
3f3ffe54
TT
53532019-08-13 Tom Tromey <tom@tromey.com>
5354
5355 * tui/tui-wingeneral.c (make_all_visible): Remove.
5356 (tui_make_all_invisible): Simplify.
5357 * tui/tui-layout.c (tui_make_all_invisible): Move from
5358 tui-wingeneral.c; simplify.
5359 (show_layout): Hoist call to tui_make_all_invisible.
5360 (show_data): Don't call tui_make_all_invisible.
5361
69258091
TT
53622019-08-13 Tom Tromey <tom@tromey.com>
5363
5364 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5365 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5366
62cf57fe
TT
53672019-08-13 Tom Tromey <tom@tromey.com>
5368
5369 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5370 tui-data.c.
5371 (show_source_disasm_command, show_data)
5372 (show_source_or_disasm_and_command): Don't use
5373 tui_set_current_layout_to.
5374 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5375 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5376 tui-layout.c.
5377 (tui_set_current_layout_to): Remove.
5378
2afade5d
TT
53792019-08-13 Tom Tromey <tom@tromey.com>
5380
5381 * tui/tui-layout.c (tui_set_layout): Update.
5382 * tui/tui-data.h (struct tui_layout_def): Remove.
5383 (tui_layout_def): Don't declare.
5384 * tui/tui-data.c (layout_def): Remove.
5385 (tui_layout_def): Remove.
5386
a3504e96
TT
53872019-08-13 Tom Tromey <tom@tromey.com>
5388
5389 * tui/tui-winsource.h (struct tui_source_window_base)
5390 <clear_detail>: No longer "override".
5391 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5392 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5393 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5394 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5395 Remove.
5396 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5397
29c92911
TT
53982019-08-13 Tom Tromey <tromey@adacore.com>
5399
5400 * tracepoint.c: Don't include readline.h or history.h.
5401
86c6b807
TT
54022019-08-12 Tom Tromey <tom@tromey.com>
5403
5404 * configure: Rebuild.
5405 * configure.ac: Check for readline 7.
5406 * NEWS: Mention readline 7 requirement.
5407 * README: Update.
5408
5db2718c
TT
54092019-08-12 Tom Tromey <tom@tromey.com>
5410
5411 * mingw-hdep.c (gdb_select): Remove readline hack.
5412
dac36daf
PFC
54132019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5414
5415 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5416 when the function fails.
5417
1022c627
AA
54182019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5419
5420 * s390-tdep.c (s390_type_align): New function.
5421 (s390_gdbarch_init): Set it as type_align gdbarch method.
5422
eba4caf2
TV
54232019-08-09 Tom de Vries <tdevries@suse.de>
5424
5425 PR gdb/24591
5426 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5427 pc_low with relocation offset.
5428
123cd851
TT
54292019-08-07 Tom Tromey <tromey@adacore.com>
5430
5431 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5432 (print_frame_args): Update.
5433 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5434 Update.
5435 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5436 * frame.h (struct frame_arg): Add initializers.
5437 <error>: Now a unique_xmalloc_ptr.
5438
3d31bc39
AH
54392019-08-07 Alan Hayward <alan.hayward@arm.com>
5440
5441 * NEWS: Expand the Pointer Authentication entry.
5442 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5443 (aarch64_frame_unmask_lr): ... to this.
5444 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5445 Call aarch64_frame_unmask_lr.
5446 * frame.c (struct frame_info): Add "masked" variable.
5447 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5448 (fprint_frame): Check for masked pc.
5449 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5450 declarations.
5451 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5452 * stack.c (print_frame): Check for masked pc.
5453
0cf9feb9
TT
54542019-08-06 Tom Tromey <tom@tromey.com>
5455
5456 * stabsread.c (patch_block_stabs, read_one_struct_field)
5457 (read_enum_type): Use obstack_strndup.
5458 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5459 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5460 * dwarf2read.c (guess_full_die_structure_name)
5461 (anonymous_struct_prefix): Use obstack_strndup.
5462 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5463 * c-exp.y (yylex): Use obstack_strndup.
5464 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5465 (write_var_or_type): Use obstack_strndup.
5466
efba19b0
TT
54672019-08-06 Tom Tromey <tom@tromey.com>
5468
5469 * symfile.c (reread_symbols): Use obstack_strdup.
5470 * stabsread.c (read_type): Use obstack_strdup.
5471 * gdb_obstack.h (obstack_strdup): New overload.
5472 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5473 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5474 (dwarf2_canonicalize_name): Use obstack_strdup.
5475 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5476 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5477 Use obstack_strdup.
5478
f25102f7
TT
54792019-08-06 Tom Tromey <tom@tromey.com>
5480
5481 * gdb_obstack.h (obstack_strdup): Define.
5482 * gdb_obstack.c (obstack_strdup): Don't define.
5483
021887d8
TT
54842019-08-06 Tom Tromey <tom@tromey.com>
5485
5486 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5487 obstack_strdup.
5488 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5489 obstack_strdup.
5490 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5491 * stabsread.c (common_block_start): Use obstack_strdup.
5492 * objfiles.c (set_objfile_main_name, objfile): Use
5493 obstack_strdup.
5494 * namespace.c (add_using_directive): Use obstack_strdup.
5495 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5496 * jit.c (finalize_symtab): Use obstack_strdup.
5497 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5498 (guess_partial_die_structure_name, partial_die_info::fixup)
5499 (dwarf2_name): Use obstack_strdup.
5500 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5501 obstack_strdup.
5502 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5503 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5504 obstack_strdup.
5505 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5506
d2834edc
PW
55072019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5508
5509 * unittests/help-doc-selftests.c: New file.
5510 * Makefile.in: Add the new file.
5511
590042fc
PW
55122019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5513
5514 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5515 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5516 the full first line, except when FOR_VALUE_PREFIX. In this case,
5517 the trailing '.' is not output, and the first character is uppercased.
5518 (print_help_for_command): Update call to print_doc_line.
5519 (print_doc_of_command): Likewise.
5520 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5521 * cli/cli-option.c (append_indented_doc): Do not append newline.
5522 (build_help_option): Append newline after first appended_indented_doc
5523 only if a second call is done.
5524 (build_help): Append 2 new lines before each option, except the first
5525 one.
5526 * compile/compile.c (_initialize_compile): Add new lines after
5527 %OPTIONS%, when not at the end of the help.
5528 Change help doc or code
5529 producing the help doc to respect the invariants.
5530 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5531 Also removed the new line after 'Options:', as all other commands
5532 do not put an empty line between 'Options:' and the first option.
5533 * printcmd.c (_initialize_printcmd): Likewise.
5534 * stack.c (_initialize_stack): Likewise.
5535 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5536 incorrectly telling COMMAND is optional.
5537 * ada-lang.c (_initialize_ada_language): Change help doc or code
5538 producing the help doc to respect the invariants.
5539 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5540 * breakpoint.c (_initialize_breakpoint): Likewise.
5541 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5542 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5543 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5544 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5545 _initialize_cli_style): Likewise.
5546 * corelow.c (core_target_info): Likewise.
5547 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5548 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5549 * filesystem.c (_initialize_filesystem): Likewise.
5550 * frame.c (_initialize_frame): Likewise.
5551 * gnu-nat.c (add_task_commands): Likewise.
5552 * infcall.c (_initialize_infcall): Likewise.
5553 * infcmd.c (_initialize_infcmd): Likewise.
5554 * interps.c (_initialize_interpreter): Likewise.
5555 * language.c (_initialize_language): Likewise.
5556 * linux-fork.c (_initialize_linux_fork): Likewise.
5557 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5558 * maint.c (_initialize_maint_cmds): Likewise.
5559 * memattr.c (_initialize_mem): Likewise.
5560 * printcmd.c (_initialize_printcmd): Likewise.
5561 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5562 _RegEx): Likewise.
5563 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5564 * record-btrace.c (_initialize_record_btrace): Likewise.
5565 * record-full.c (_initialize_record_full): Likewise.
5566 * record.c (_initialize_record): Likewise.
5567 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5568 * regcache.c (_initialize_regcache): Likewise.
5569 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5570 _initialize_remote): Likewise.
5571 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5572 * serial.c (_initialize_serial): Likewise.
5573 * skip.c (_initialize_step_skip): Likewise.
5574 * source.c (_initialize_source): Likewise.
5575 * stack.c (_initialize_stack): Likewise.
5576 * symfile.c (_initialize_symfile): Likewise.
5577 * symtab.c (_initialize_symtab): Likewise.
5578 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5579 * top.c (init_main): Likewise.
5580 * tracefile-tfile.c (tfile_target_info): Likewise.
5581 * tracepoint.c (_initialize_tracepoint): Likewise.
5582 * tui/tui-win.c (_initialize_tui_win): Likewise.
5583 * utils.c (add_internal_problem_command): Likewise.
5584 * valprint.c (value_print_option_defs): Likewise.
5585
404f2902
FCE
55862019-08-06 Frank Ch. Eigler <fche@redhat.com>
5587
5588 PR build/24886
5589 * configure.ac: Drop enable-libmcheck support.
5590 * configure, config.in: Rebuild.
5591 * libmcheck.m4: Remove.
5592 * acinclude.m4: Don't include it.
5593 * Makefile.in: Don't distribute it.
5594 * top.c (print_gdb_configuration): Don't mention it.
5595
046bebe1
TT
55962019-08-06 Tom Tromey <tom@tromey.com>
5597
5598 * utils.c (set_output_style): Sometimes pass stream to
5599 emit_style_escape.
5600 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5601 * record-btrace.c (btrace_insn_history): Update.
5602 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5603 method.
5604 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5605 Update initializers.
5606 <m_uiout>: New field.
5607 <m_di>: Move lower.
5608 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5609 Remove "uiout" parameter.
5610 (dump_insns): Update.
5611 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5612 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5613
ddbcedf5
CB
56142019-08-06 Christian Biesinger <cbiesinger@google.com>
5615
5616 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5617 (error_in_psymtab_expansion): Likewise.
5618 (lookup_symbol_via_quick_fns): Likewise.
5619 (basic_lookup_transparent_type_quick): Likewise.
5620 (basic_lookup_transparent_type_1): Likewise.
5621
b08b16c8
TT
56222019-08-06 Tom Tromey <tromey@adacore.com>
5623
5624 * source.c (last_source_error): Now bool.
5625 (print_source_lines_base): Make "noprint" bool. Only open
5626 source file when last_source_visited changes.
5627
cb44333d
TT
56282019-08-06 Tom Tromey <tromey@adacore.com>
5629
5630 * annotate.c (annotate_source_line): Use g_source_cache.
5631 * source-cache.c (source_cache::get_plain_source_lines): Change
5632 parameters. Populate m_offset_cache.
5633 (source_cache::ensure): New method.
5634 (source_cache::get_line_charpos): New method.
5635 (extract_lines): Move lower. Change parameters.
5636 (source_cache::get_source_lines): Move lower.
5637 * source-cache.h (class source_cache): Update comment.
5638 <get_line_charpos>: New method.
5639 <get_source_lines>: Update comment.
5640 <clear>: Clear m_offset_cache.
5641 <get_plain_source_lines>: Change parameters.
5642 <ensure>: New method
5643 <m_offset_cache>: New member.
5644 * source.c (forget_cached_source_info_for_objfile): Update.
5645 (info_source_command): Use g_source_cache.
5646 (find_source_lines, open_source_file_with_line_charpos): Remove.
5647 (print_source_lines_base, search_command_helper): Use g_source_cache.
5648 * source.h (open_source_file_with_line_charpos): Don't declare.
5649 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5650 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5651 Use g_source_cache.
5652
872dceaa
TT
56532019-08-06 Tom Tromey <tromey@adacore.com>
5654
5655 * source-cache.c (source_cache::get_plain_source_lines):
5656 Remove "first_line" and "last_line" parameters.
5657 (source_cache::get_source_lines): Cache plain text.
5658 * source-cache.h (class source_cache)
5659 <get_plain_source_lines>: Update.
5660
269249d9
TT
56612019-08-06 Tom Tromey <tromey@adacore.com>
5662
5663 * source-cache.c (extract_lines): No longer a method.
5664 Changed type of parameter. Include final newline.
5665 (selftests::extract_lines_test): New function.
5666 (_initialize_source_cache): Likewise.
5667 * source-cache.h (class source_cache)
5668 <extract_lines>: Don't declare.
5669
c0e8dcd8
TT
56702019-08-06 Tom Tromey <tromey@adacore.com>
5671
5672 * breakpoint.c (init_breakpoint_sal): Update.
5673 (breakpoint): Update.
5674 * breakpoint.h (struct breakpoint) <filter>: Now a
5675 unique_xmalloc_ptr.
5676
0b27c27d
CB
56772019-08-05 Christian Biesinger <cbiesinger@google.com>
5678
5679 * NEWS: Mention dictionary access on blocks.
5680 * python/py-block.c (blpy_getitem): New function.
5681 (block_object_as_mapping): New struct.
5682 (block_object_type): Use new struct for tp_as_mapping field.
5683
4ee94178
CB
56842019-08-05 Christian Biesinger <cbiesinger@google.com>
5685
5686 * objfiles.h (objfile): Add a comment describing partial symbols.
5687
8abfcabc
TT
56882019-08-05 Tom Tromey <tromey@adacore.com>
5689
5690 * compile/compile.c (_initialize_compile): Use _(), not N_().
5691 * thread.c (_initialize_thread): Use _(), not N_().
5692 * stack.c (_initialize_stack): Use _(), not N_().
5693 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5694
2b79f376
SM
56952019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5696
5697 * dwarf2read.c (struct dw2_symtab_iterator):
5698 <want_specific_block>: Remove.
5699 <block_index>: Change type to gdb::optional.
5700 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5701 change type of BLOCK_INDEX parameter to gdb::optional.
5702 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5703 (dw2_lookup_symbol): Don't pass argument for
5704 WANT_SPECIFIC_BLOCK.
5705 (dw2_expand_symtabs_for_function): Don't pass argument for
5706 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5707 (class dw2_debug_names_iterator)
5708 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5709 parameter, change BLOCK_INDEX type to gdb::optional.
5710 <m_want_specific_block>: Remove.
5711 <m_block_index>: Change type to gdb::optional.
5712 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5713 gdb::optional. Re-write in function of gdb::optional.
5714 (dw2_debug_names_lookup_symbol): Don't pass argument for
5715 WANT_SPECIFIC_BLOCK.
5716 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5717 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5718 BLOCK_INDEX.
5719
ae60f04e
PW
57202019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5721
5722 * NEWS: Mention changes to "info sources" command.
5723
28cd9371
PW
57242019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5725
5726 * symtab.c (filename_partial_match_opts): New struct type.
5727 (struct output_source_filename_data): New members
5728 regexp, c_regexp, partial_match.
5729 (output_source_filename): Use new members to decide to print file.
5730 (info_sources_option_defs): New variable.
5731 (make_info_sources_options_def_group, print_info_sources_header,
5732 info_sources_command_completer):
5733 New functions.
5734 (info_sources_command): Read new optional arguments.
5735 (_initialize_symtab): Update info sources help.
5736
ca683e3a
AO
57372019-08-02 Alexandre Oliva <oliva@adacore.com>
5738
5739 * ada-lang.c (exception_support_info_v0): Renamed from...
5740 (default_exception_support_info): ... this. Create new
5741 definition for v1.
5742 (ada_has_this_exception_support): Look up catch_handlers_sym.
5743 (ada_exception_support_info_sniffer): Try v0 after default.
5744
f1264162
TT
57452019-08-01 Tom Tromey <tromey@adacore.com>
5746
5747 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5748 gdbarch.h.
5749
0a7b2485
CB
57502019-08-01 Christian Biesinger <cbiesinger@google.com>
5751
5752 * s12z-tdep.c: Fix include path for s12z-opc.h.
5753
c6bdbeb7
AH
57542019-08-01 Alan Hayward <alan.hayward@arm.com>
5755
5756 * NEWS: Require GNU make 3.82.
5757
a2bd7b82
TT
57582019-07-16 Tom Tromey <tom@tromey.com>
5759
5760 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5761 declare.
5762
aa3b6533
TT
57632019-07-30 Tom Tromey <tromey@adacore.com>
5764
5765 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5766
a1530dc7
KB
57672019-07-30 Kevin Buettner <kevinb@redhat.com>
5768
5769 * printcmd.c (print_address_symbolic): Print negative offsets.
5770 (build_address_symbolic): Force signed arithmetic when computing
5771 offset.
5772
2906593f
CB
57732019-07-30 Christian Biesinger <cbiesinger@google.com>
5774
5775 PR/24474: Add a function to lookup static variables.
5776 * NEWS: Mention this new function.
5777 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5778 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5779 * python/python.c (python_GdbMethods): Add new function.
5780
c620ed88
CB
57812019-07-29 Christian Biesinger <cbiesinger@google.com>
5782
5783 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5784 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5785 (objfpy_lookup_static_symbol): New function.
5786 (objfile_object_methods): Add new functions.
5787
bc4268a5
PW
57882019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5789
5790 * NEWS: Mention 'set|show print frame-info'. Mention new
5791 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5792 backtrace argument. Mention that python frame filtering code
5793 is now consistent with what 'backtrace' command prints.
5794
4b5e8d19
PW
57952019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5796
5797 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5798 comments.
5799 (print_frame_info_auto, print_frame_info_source_line,
5800 print_frame_info_location, print_frame_info_source_and_location,
5801 print_frame_info_location_and_address, print_frame_info_short_location):
5802 New declarations.
5803 (struct frame_print_options): New member print_frame_info.
5804 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5805 * stack.h (get_user_print_what_frame_info): New declaration.
5806 (frame_show_address): New declaration.
5807 * stack.c (print_frame_arguments_choices): New value 'presence'.
5808 (print_frame_info_auto, print_frame_info_source_line,
5809 print_frame_info_location, print_frame_info_source_and_location,
5810 print_frame_info_location_and_address, print_frame_info_short_location,
5811 print_frame_info_choices, print_frame_info_print_what): New definitions.
5812 (print_frame_args): Only print dots for args if print frame-arguments
5813 is 'presence'.
5814 (frame_print_option_defs): New element for "frame-info".
5815 (get_user_print_what_frame_info): New function.
5816 (frame_show_address): Make non static. Move comment to stack.h.
5817 (print_frame_info_to_print_what): New function.
5818 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5819 to decide what to print.
5820 (backtrace_command_1): Handle the new print_frame_arguments_presence
5821 value.
5822 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5823 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5824 (py_print_frame): In non-mi mode, use LOCATION as default for
5825 print_what, similarly to frame information printed directly by
5826 backtrace command. Handle frame-info user option in non MI mode.
5827
6bdfee81
KB
58282019-07-27 Kevin Buettner <kevinb@redhat.com>
5829
5830 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5831 Add case for debugging 32-bit target on 64-bit host. Revise
5832 comment.
5833
98a617f8
KB
58342019-07-27 Kevin Buettner <kevinb@redhat.com>
5835
5836 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5837 instead of find_function_entry_range_from_pc.
5838
567238c9
KB
58392019-07-27 Kevin Buettner <kevinb@redhat.com>
5840
5841 * stack.c (find_frame_funname): Remove code which preferred
5842 minsym over symtab sym in "certain pathological cases".
5843
2dc80cf8
KB
5844 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5845 parameter. Change type of "do_demangle" to bool.
5846 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5847 Pass suitable "prefer_sym_over_minsym" flag to
5848 build_address_symbolic(). Don't output "+" for negative offsets.
5849 * printcmd.c (print_address_symbolic): Update invocation of
5850 build_address_symbolic to include a "prefer_sym_over_minsym"
5851 flag.
5852 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5853 Restrict cases in which use of minimal symbol is preferred to that
5854 of a found symbol. Update comments.
5855
1aff7173
KB
5856 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5857 for entry pc when entry pc is out of range for that FDE.
5858
89b085ac
BC
58592019-07-26 Brian Callahan <bcallah@openbsd.org>
5860
5861 PR gdb/24839:
5862 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5863 type.
5864
f32feb4a
CB
58652019-07-25 Christian Biesinger <cbiesinger@google.com>
5866
5867 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5868 this function's Python signature.
5869
5870
58712019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5872
5873 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5874 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5875 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5876 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5877 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5878
5879
c54e4253
YS
58802019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5881
5882 * h8300-tdep.c (h8300_register_name_common): New.
5883 h8300_register_name): Use h8300_register_name_common.
5884 (h8300s_register_name): Likewise.
5885 (h8300sx_register_name): Likewise.
5886 (h8300h_register_nam): New.
5887 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5888
5889
40eadf04
SP
58902019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5891
5892 * arm-tdep.c (arm_skip_cmse_entry): New function.
5893 (arm_is_sgstubs_section): New function.
5894 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5895
bfa2a36d
TT
58962019-07-22 Tom Tromey <tom@tromey.com>
5897
5898 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5899 Don't self-assign.
5900
a8e9d247
AB
59012019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5902
5903 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5904 type_print.
5905
eb86c5e2
AB
59062019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5907
5908 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5909 so that GDB doesn't match any msymbols when searching in the
5910 TYPES_DOMAIN.
5911 (print_symbol_info): Print using typedef_print or type_print based
5912 on the type of the symbol. Add updated FIXME comment moved from...
5913 (_initialize_symtab): ... move and update FIXME comment to above.
5914
a8eab7c6
AB
59152019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5916
5917 * NEWS: Mention adding -q option to "info types".
5918 * symtab.c (struct info_types_options): New struct.
5919 (info_types_options_defs): New variable.
5920 (make_info_types_options_def_group): New function.
5921 (info_types_command): Use gdb::option framework to parse options.
5922 (info_types_command_completer): New function.
5923 (_initialize_symtab): Extend the help text on "info types" and
5924 register command completer.
5925
b4603c34
CB
59262019-07-21 Christian Biesinger <cbiesinger@google.com>
5927
5928 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5929 (lookup_symbol_in_objfile): Change int to block_enum and add a
5930 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5931
c8cdc1e0
CB
59322019-07-20 Christian Biesinger <cbiesinger@google.com>
5933
5934 * MAINTAINERS (Write After Approval): Add self.
5935
01e175fe
AB
59362019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5937
5938 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5939 instruction to the dummy code region.
5940
56f79b63
TT
59412019-07-19 Tom Tromey <tromey@adacore.com>
5942
5943 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5944 (ARGSUSED, PARAMS, __func__): Remove rules.
5945
4c5aa8e0
AH
59462019-07-19 Alan Hayward <alan.hayward@arm.com>
5947
5948 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5949 * features/arm/arm-with-iwmmxt.c: Remove.
5950 * features/arm/arm-with-iwmmxt.xml: Remove.
5951 * features/arm/arm-with-m-fpa-layout.c: Remove.
5952 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5953 * features/arm/arm-with-m-vfp-d16.c: Remove.
5954 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5955 * features/arm/arm-with-m.c: Remove.
5956 * features/arm/arm-with-m.xml: Remove.
5957 * features/arm/arm-with-neon.c: Remove.
5958 * features/arm/arm-with-neon.xml: Remove.
5959 * features/arm/arm-with-vfpv2.c: Remove.
5960 * features/arm/arm-with-vfpv2.xml: Remove.
5961 * features/arm/arm-with-vfpv3.c: Remove.
5962 * features/arm/arm-with-vfpv3.xml: Remove.
5963
f42b2617
AH
59642019-07-19 Alan Hayward <alan.hayward@arm.com>
5965
5966 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5967
f29ec966
AH
59682019-07-19 Alan Hayward <alan.hayward@arm.com>
5969
5970 * arch/aarch32.c (aarch32_create_target_description): Create
5971 target descriptions using features.
5972 * arch/arm.c (arm_create_target_description)
5973 (arm_create_mprofile_target_description): Likewise.
5974 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5975
d105cce5
AH
59762019-07-19 Alan Hayward <alan.hayward@arm.com>
5977
5978 * Makefile.in: Add new files.
5979 * aarch32-tdep.c: New file.
5980 * aarch32-tdep.h: New file.
5981 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5982 Call aarch32_read_description.
5983 * arch/aarch32.c: New file.
5984 * arch/aarch32.h: New file.
5985 * arch/arm.c (arm_create_target_description)
5986 (arm_create_mprofile_target_description): New function.
5987 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5988 (arm_create_target_description)
5989 (arm_create_mprofile_target_description): New declaration.
5990 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5991 read_description functions.
5992 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5993 Likewise.
5994 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5995 * arm-tdep.c (tdesc_arm_list): New variable.
5996 (arm_register_g_packet_guesses): Call create description functions.
5997 (arm_read_description) (arm_read_mprofile_description): New
5998 function.
5999 * arm-tdep.h (arm_read_description)
6000 (arm_read_mprofile_description): Add declaration.
6001 * configure.tgt: Add new files.
6002
afe09f0b
GL
60032019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6004
6005 * top.c (new_ui_command): Open specified terminal just once.
6006
cd215b2e
TT
60072019-07-18 Tom Tromey <tromey@adacore.com>
6008
6009 * symtab.c (main_name): Constify return type.
6010 * symfile.c (set_initial_language): Update.
6011 * symtab.h (main_name): Constify return type.
6012
d8f68fcb
TT
60132019-07-17 Tom Tromey <tom@tromey.com>
6014
6015 * tui/tui-winsource.c (tui_update_source_window)
6016 (tui_update_source_window_as_is)
6017 (tui_update_source_windows_with_line): Remove return.
6018 * tui/tui-disasm.c (tui_show_disassem)
6019 (tui_show_disassem_and_update_source): Remove return.
6020 * tui/tui.c (tui_reset): Remove return.
6021 * tui/tui-wingeneral.c
6022 (tui_check_and_display_highlight_if_needed): Remove return.
6023
ca5af91e
TT
60242019-07-17 Tom Tromey <tom@tromey.com>
6025
6026 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6027
5104fe36
TT
60282019-07-17 Tom Tromey <tom@tromey.com>
6029
6030 * tui/tui-winsource.h (struct tui_exec_info_window)
6031 (struct tui_source_window_base): Move from tui-data.h.
6032 * tui/tui-winsource.c: Move many method definitions from
6033 elsewhere. Remove "structuring" comments.
6034 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6035 (tui_source_window_base::refresh_window): Move to
6036 tui-winsource.c.
6037 * tui/tui-win.c (tui_source_window_base::refresh_all)
6038 (tui_source_window_base::update_tab_width)
6039 (tui_source_window_base::set_new_height)
6040 (tui_source_window_base::do_make_visible_with_new_height): Move to
6041 tui-winsource.c.
6042 * tui/tui-source.h: Update.
6043 * tui/tui-source.c (tui_source_window_base::reset): Move to
6044 tui-winsource.c.
6045 * tui/tui-disasm.h: Update.
6046 * tui/tui-data.h (struct tui_exec_info_window): Move to
6047 tui-winsource.h.
6048 (struct tui_source_window_base): Likewise.
6049 * tui/tui-data.c (tui_source_window_base::clear_detail)
6050 (tui_source_window_base, ~tui_source_window_base): Move to
6051 tui-winsource.c.
6052
daa15dde
TT
60532019-07-17 Tom Tromey <tom@tromey.com>
6054
6055 * tui/tui-win.c (tui_resize_all)
6056 (tui_source_window_base::update_tab_width)
6057 (tui_adjust_win_heights): Update.
6058 (tui_win_info::make_invisible_and_set_new_height): Rename from
6059 make_invisible_and_set_new_height.
6060 * tui/tui-data.h (struct tui_win_info)
6061 <make_invisible_and_set_new_height>: New method.
6062
bfad4537
TT
60632019-07-17 Tom Tromey <tom@tromey.com>
6064
6065 * tui/tui.c: Update.
6066 * tui/tui-source.h (struct tui_source_window): Move from
6067 tui-data.h.
6068 * tui/tui-layout.c: Update.
6069 * tui/tui-disasm.c: Update.
6070 * tui/tui-data.h (struct tui_source_window): Move to
6071 tui-source.h.
6072
88f7e873
TT
60732019-07-17 Tom Tromey <tom@tromey.com>
6074
6075 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6076 tui-data.h.
6077 * tui/tui-data.h (struct tui_disasm_window): Move to
6078 tui-disasm.h.
6079
96bd6233
TT
60802019-07-17 Tom Tromey <tom@tromey.com>
6081
6082 * tui/tui-regs.h (struct tui_data_item_window): Move from
6083 tui-data.h.
6084 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6085 * tui/tui-data.h (struct tui_data_item_window): Move to
6086 tui-regs.h.
6087 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6088
ce38393b
TT
60892019-07-17 Tom Tromey <tom@tromey.com>
6090
6091 * tui/tui.c: Update.
6092 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6093 (tui_cmd_window::max_height): Move to tui-command.c.
6094 * tui/tui-layout.c: Update.
6095 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6096 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6097 tui-command.c.
6098 * tui/tui-command.h (struct tui_cmd_window): Move from
6099 tui-data.h.
6100 * tui/tui-command.c: Remove "structuring" comments.
6101 (tui_cmd_window::clear_detail)
6102 (tui_cmd_window::do_make_visible_with_new_height)
6103 (tui_cmd_window::max_height): Move from elsewhere.
6104
2d8b51cb
TT
61052019-07-17 Tom Tromey <tom@tromey.com>
6106
6107 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6108 Now static.
6109 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6110 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6111
18ab23af
TT
61122019-07-17 Tom Tromey <tom@tromey.com>
6113
6114 * tui/tui.c: Update.
6115 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6116 tui-regs.c.
6117 * tui/tui-windata.h: Remove file.
6118 * tui/tui-windata.c: Remove file.
6119 * tui/tui-win.c (tui_data_window::set_new_height)
6120 (tui_data_window::do_make_visible_with_new_height): Move to
6121 tui-regs.c.
6122 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6123 * tui/tui-regs.c: Remove "structuring" comments.
6124 (tui_data_window::first_data_item_displayed)
6125 (tui_data_window::delete_data_content_windows)
6126 (tui_data_window::erase_data_content)
6127 (tui_data_window::display_all_data)
6128 (tui_data_window::refresh_all)
6129 (tui_data_window::do_scroll_vertical)
6130 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6131 (tui_data_window::do_make_visible_with_new_height)
6132 (tui_data_window::refresh_window): Move from elsewhere.
6133 (_initialize_tui_regs): Move to end of file.
6134 * tui/tui-layout.c: Update.
6135 * tui/tui-hooks.c: Update.
6136 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6137 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6138 tui-regs.c.
6139 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6140
88b7e7cc
TT
61412019-07-17 Tom Tromey <tom@tromey.com>
6142
6143 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6144 seen.
6145
0fcd3711
TT
61462019-07-17 Tom Tromey <tom@tromey.com>
6147
6148 * tui/tui-win.c (tui_source_window_base::set_new_height)
6149 (tui_source_window_base::do_make_visible_with_new_height): Use
6150 m_has_locator field directly.
6151 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6152 method.
6153 (struct tui_source_window_base) <has_locator>: Likewise.
6154
4a38112d
TT
61552019-07-17 Tom Tromey <tom@tromey.com>
6156
6157 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6158 Don't declare.
6159 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6160 Remove.
6161 * tui/tui-win.c (tui_source_window_base::set_new_height)
6162 (tui_source_window_base::set_new_height)
6163 (make_invisible_and_set_new_height)
6164 (tui_source_window_base::do_make_visible_with_new_height)
6165 (tui_source_window_base::do_make_visible_with_new_height):
6166 Update.
6167 * tui/tui-layout.c (show_source_disasm_command, show_data)
6168 (show_source_or_disasm_and_command): Update.
6169 * tui/tui-layout.c (show_layout): Update.
6170
09129226
TT
61712019-07-17 Tom Tromey <tom@tromey.com>
6172
6173 * tui/tui-layout.c (make_data_window): Remove.
6174 (show_data): Unify creation and re-initialization cases.
6175
4a8a5e84
TT
61762019-07-17 Tom Tromey <tom@tromey.com>
6177
6178 * tui/tui-layout.c (make_source_window, make_disasm_window):
6179 Remove.
6180 (show_data): Unify creation and re-initialization cases.
6181
76d2be8e
TT
61822019-07-17 Tom Tromey <tom@tromey.com>
6183
6184 * tui/tui-layout.c (make_command_window): Remove.
6185 (show_source_disasm_command, show_source_or_disasm_and_command):
6186 Unify creation and re-initialization cases.
6187
890b8bde
TT
61882019-07-17 Tom Tromey <tom@tromey.com>
6189
6190 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6191 creation and re-initialization cases.
6192
2cdfa113
TT
61932019-07-17 Tom Tromey <tom@tromey.com>
6194
6195 * tui/tui-regs.c (tui_get_register): Return void.
6196
8e3cfd09
TT
61972019-07-17 Tom Tromey <tom@tromey.com>
6198
6199 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6200 Simplify.
6201
f4e04977
TT
62022019-07-17 Tom Tromey <tom@tromey.com>
6203
6204 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6205 resetting.
6206
0379b883
TT
62072019-07-17 Tom Tromey <tom@tromey.com>
6208
6209 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6210 * tui/tui-regs.c (tui_reg_layout): New function.
6211 (tui_show_registers, tui_reg_command): Use it.
6212 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6213 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6214 parameters.
6215 (tui_layout_command): Remove.
6216
b7fbad91
TT
62172019-07-17 Tom Tromey <tom@tromey.com>
6218
6219 * tui/tui-layout.h (tui/tui-layout): Return void.
6220 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6221
4e1e56b9
TT
62222019-07-17 Tom Tromey <tom@tromey.com>
6223
6224 * tui/tui-layout.c (show_source_disasm_command, show_data):
6225 Update.
6226 (reset_locator): Remove.
6227 (show_source_or_disasm_and_command): Update.
6228
1e0c09ba
TT
62292019-07-17 Tom Tromey <tom@tromey.com>
6230
6231 * tui/tui-source.c (tui_source_window_base::reset): Remove
6232 win_type parameter.
6233 * tui/tui-layout.c (make_command_window, make_source_window)
6234 (make_disasm_window, make_data_window)
6235 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6236 (reset_locator, show_source_or_disasm_and_command): Update.
6237 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6238 win_type parameter.
6239 (struct tui_source_window_base) <reset>: Likewise.
6240
1bf605de
TT
62412019-07-17 Tom Tromey <tom@tromey.com>
6242
6243 * tui/tui-layout.c (show_source_disasm_command): Use
6244 reset_locator.
6245 (reset_locator): New function.
6246 (init_and_make_win): Remove.
6247 (show_source_or_disasm_and_command): Use reset_locator.
6248
098f9ed4
TT
62492019-07-17 Tom Tromey <tom@tromey.com>
6250
6251 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6252 condition.
6253 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6254 Remove condition.
6255 * tui/tui-source.c (tui_source_window_base::reset): New method.
6256 * tui/tui-layout.c (make_command_window): Don't call
6257 init_and_make_win.
6258 (make_source_window, make_disasm_window): Don't call
6259 make_source_or_disasm_window.
6260 (make_data_window): Don't call init_and_make_win. Change calling
6261 convention.
6262 (show_source_disasm_command, show_data): Simplify.
6263 (make_source_or_disasm_window): Remove.
6264 (show_source_or_disasm_and_command): Simplify.
6265 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6266 (struct tui_source_window_base) <reset>: Likewise.
6267 <execution_info>: Remove initializer.
6268 * tui/tui-data.c (tui_source_window_base): Initialize
6269 execution_info.
6270
80110957
TT
62712019-07-17 Tom Tromey <tom@tromey.com>
6272
6273 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6274 variable.
6275
cf82af05
TT
62762019-07-17 Tom Tromey <tom@tromey.com>
6277
6278 * tui/tui.c (tui_rl_other_window): Update.
6279 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6280 superclass method first. Always iterate over regs_content.
6281 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6282 method.
6283 * tui/tui-win.c (tui_set_focus_command): Update.
6284
01aeb396
TT
62852019-07-17 Tom Tromey <tom@tromey.com>
6286
6287 * tui/tui-win.c (tui_set_focus_command): Rename from
6288 tui_set_focus. Call tui_enable.
6289 (tui_set_focus_command): Remove.
6290
fd6c75ee
TT
62912019-07-17 Tom Tromey <tom@tromey.com>
6292
6293 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6294 refresh_window.
6295 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6296 touchwin.
6297 (tui_data_window::refresh_window): Call refresh_window on data
6298 items. Always call superclass refresh_window.
6299 (tui_win_info::refresh): Remove.
6300 (tui_source_window_base::refresh_window): Update.
6301 (tui_refresh_all): Update.
6302 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6303 refresh_window.
6304 (show_source_or_disasm_and_command): Likewise.
6305 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6306 (struct tui_source_window_base) <refresh>: Likewise.
6307
f6cc34a9
TT
63082019-07-17 Tom Tromey <tom@tromey.com>
6309
6310 * tui/tui-winsource.c (tui_clear_source_content)
6311 (tui_show_source_content): Update.
6312 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6313 whether content is empty.
6314 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6315 Remove.
6316
f31ec9af
TT
63172019-07-17 Tom Tromey <tom@tromey.com>
6318
6319 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6320 window's contents.
6321 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6322 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6323
d1b6f1e5
TT
63242019-07-17 Tom Tromey <tom@tromey.com>
6325
6326 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6327 (struct tui_data_item_window): Update.
6328
d9743a13
TT
63292019-07-17 Tom Tromey <tom@tromey.com>
6330
6331 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6332 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6333 defines.
6334
caf0bc4e
TT
63352019-07-17 Tom Tromey <tom@tromey.com>
6336
6337 * tui/tui-winsource.h (tui_erase_source_content)
6338 (tui_clear_source_content): Remove "display_prompt" parameter.
6339 * tui/tui-winsource.c (tui_update_source_window_as_is)
6340 (tui_update_source_windows_with_addr): Update.
6341 (tui_clear_source_content): Remove "display_prompt" parameter.
6342 (tui_erase_source_content): Likewise. Simplify.
6343 (tui_show_source_content): Update.
6344 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6345 * tui/tui-stack.c (tui_show_frame_info): Update.
6346 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6347 Remove defines.
6348
9d391078
TT
63492019-07-17 Tom Tromey <tom@tromey.com>
6350
6351 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6352 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6353 parameter.
6354 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6355 parameter.
6356
a38da35d
TT
63572019-07-17 Tom Tromey <tom@tromey.com>
6358
6359 * tui/tui-winsource.c (tui_clear_source_content)
6360 (tui_show_source_content, tui_show_exec_info_content)
6361 (tui_clear_exec_info_content): Update.
6362 * tui/tui-stack.c (tui_show_locator_content): Update.
6363 (tui_show_frame_info): Update.
6364 * tui/tui-source.h (tui_source_window): Don't declare.
6365 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6366 from tui_source_is_displayed.
6367 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6368 Remove field.
6369 (struct tui_source_window_base) <content_in_use>: New field. Now
6370 bool.
6371 (struct tui_source_window) <showing_source_p>: New method.
6372 (TUI_SRC_WIN): Change cast.
6373 * tui/tui-data.c (tui_initialize_static_data): Update.
6374
c2cd8994
TT
63752019-07-17 Tom Tromey <tom@tromey.com>
6376
6377 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6378 location_matches_p.
6379 * tui/tui-source.c (tui_source_window::location_matches_p): New
6380 method.
6381 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6382 method.
6383 * tui/tui-data.h (struct tui_source_window_base)
6384 <location_matches_p>: New method.
6385 (struct tui_source_window, struct tui_disasm_window)
6386 <location_matches_p>: Likewise.
6387
4dde7b34
TT
63882019-07-17 Tom Tromey <tom@tromey.com>
6389
6390 * tui/tui-win.c (tui_set_win_height_command): Rename from
6391 tui_set_win_height.
6392 (tui_set_win_height_command): Remove.
6393
b73dd877
TT
63942019-07-17 Tom Tromey <tom@tromey.com>
6395
6396 * tui/tui-source.c (tui_source_window): New constructor. Add
6397 observer.
6398 (~tui_source_window): New destructor.
6399 (tui_source_window::style_changed): New method.
6400 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6401 (tui_attach_detach_observers): Update.
6402 * tui/tui-data.h (struct tui_source_window): Make constructor not
6403 inline. Add destructor.
6404 (struct tui_source_window) <style_changed>: New method.
6405 <m_observable>: New member.
6406
ae2b5380
TT
64072019-07-17 Tom Tromey <tom@tromey.com>
6408
6409 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6410 * tui/tui-win.c (tui_resize_all): Fix typo.
6411
1ce3e844
TT
64122019-07-17 Tom Tromey <tom@tromey.com>
6413
6414 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6415 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6416 (tui_refresh_all): Remove "list" parameter. Use foreach.
6417 * tui/tui-win.c (window_name_completer): Use foreach.
6418 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6419 (update_tab_width): Likewise.
6420 * tui/tui-layout.c (show_layout): Update.
6421 * tui/tui-data.h (class tui_window_iterator): New.
6422 (struct all_tui_windows): New.
6423 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6424
fe3eaf1c
TT
64252019-07-17 Tom Tromey <tom@tromey.com>
6426
6427 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6428 parameter. Don't reference globals.
6429 (tui_reg_command): Update.
6430
368c1354
TT
64312019-07-17 Tom Tromey <tom@tromey.com>
6432
6433 * tui/tui-regs.c (tui_show_registers): Simplify.
6434
e80cd204
TT
64352019-07-17 Tom Tromey <tom@tromey.com>
6436
6437 * tui/tui-regs.c (tui_show_registers): Update.
6438 (tui_show_register_group): Add win_info parameter.
6439
aca2dd16
TT
64402019-07-17 Tom Tromey <tom@tromey.com>
6441
6442 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6443 Rename from tui_display_reg_element_at_line.
6444 (tui_data_window::display_registers_from_line): Update.
6445 * tui/tui-data.h (struct tui_data_window)
6446 <display_reg_element_at_line>: New method.
6447
517e9505
TT
64482019-07-17 Tom Tromey <tom@tromey.com>
6449
6450 * tui/tui-regs.h (tui_display_registers_from)
6451 (tui_display_registers_from_line): Don't declare.
6452 * tui/tui-windata.c (tui_data_window::display_all_data)
6453 (tui_data_window::refresh_all)
6454 (tui_data_window::do_scroll_vertical): Update.
6455 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6456 from tui_display_registers_from.
6457 (tui_display_reg_element_at_line): Update.
6458 (tui_data_window::display_registers_from_line): Rename from
6459 tui_display_registers_from_line.
6460 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6461 display_registers_from_line>: New methods.
6462
f76d8b19
TT
64632019-07-17 Tom Tromey <tom@tromey.com>
6464
6465 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6466 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6467 from tui_erase_data_content.
6468 (tui_data_window::display_all_data)
6469 (tui_data_window::refresh_all)
6470 (tui_data_window::do_scroll_vertical): Update.
6471 * tui/tui-regs.c (tui_show_registers): Update.
6472 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6473 New method.
6474
b4094625
TT
64752019-07-17 Tom Tromey <tom@tromey.com>
6476
6477 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6478 declare.
6479 * tui/tui-windata.c
6480 (tui_data_window::delete_data_content_windows): Rename from
6481 tui_delete_data_content_windows.
6482 (tui_data_window::display_all_data)
6483 (tui_data_window::do_scroll_vertical): Update.
6484 * tui/tui-data.h (struct tui_data_window)
6485 <delete_data_content_windows>: New method.
6486
c223a729
TT
64872019-07-17 Tom Tromey <tom@tromey.com>
6488
6489 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6490 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6491
50daf268
TT
64922019-07-17 Tom Tromey <tom@tromey.com>
6493
6494 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6495 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6496 from tui_display_all_data.
6497 * tui/tui-win.c
6498 (tui_data_window::do_make_visible_with_new_height): Update.
6499 * tui/tui-regs.c (tui_show_registers): Update.
6500 * tui/tui-layout.c (tui_set_layout): Update.
6501 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6502 method.
6503
df5f8cab
TT
65042019-07-17 Tom Tromey <tom@tromey.com>
6505
6506 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6507 * tui/tui-windata.c (tui_display_data_from): Remove.
6508 (tui_data_window::refresh_all): Update.
6509
80cb6c27
TT
65102019-07-17 Tom Tromey <tom@tromey.com>
6511
6512 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6513 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6514 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6515 tui_display_registers_from_line.
6516 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6517 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6518 "force_display" parameter.
6519
baff0c28
TT
65202019-07-17 Tom Tromey <tom@tromey.com>
6521
6522 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6523 declare.
6524 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6525 Rename from tui_first_reg_element_no_inline.
6526 (tui_display_reg_element_at_line)
6527 (tui_display_registers_from_line): Update.
6528 * tui/tui-data.h (struct tui_data_window)
6529 <first_reg_element_no_inline>: New method.
6530
3b23c5f2
TT
65312019-07-17 Tom Tromey <tom@tromey.com>
6532
6533 * tui/tui-windata.c (tui_display_data_from)
6534 (tui_data_window::do_scroll_vertical): Update.
6535 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6536 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6537 Rename from tui_line_from_reg_element_no.
6538 (tui_display_registers_from_line): Update.
6539 * tui/tui-data.h (struct tui_data_window)
6540 <line_from_reg_element_no>: New method.
6541
0b5ec218
TT
65422019-07-17 Tom Tromey <tom@tromey.com>
6543
6544 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6545 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6546 tui_last_regs_line_no.
6547 (tui_display_reg_element_at_line)
6548 (tui_display_registers_from_line): Update.
6549 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6550 method.
6551
0807ab7b
TT
65522019-07-17 Tom Tromey <tom@tromey.com>
6553
6554 PR tui/24722:
6555 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6556 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6557 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6558 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6559 (tui_update_breakpoint_info): Likewise.
6560 * tui/tui-hooks.c (tui_event_create_breakpoint)
6561 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6562 Update.
6563
9ad7fdef
TT
65642019-07-17 Tom Tromey <tom@tromey.com>
6565
6566 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6567
5813316f
TT
65682019-07-17 Tom Tromey <tom@tromey.com>
6569
6570 * tui/tui-winsource.c (tui_update_source_window_as_is)
6571 (tui_update_source_windows_with_addr): Update.
6572 * tui/tui-source.h (tui_set_source_content)
6573 (tui_show_symtab_source): Add "win_info" parameter.
6574 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6575 parameter.
6576 (tui_show_symtab_source): Likewise.
6577
00e264e7
TT
65782019-07-17 Tom Tromey <tom@tromey.com>
6579
6580 * tui/tui-wingeneral.c
6581 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6582
06210ce4
TT
65832019-07-17 Tom Tromey <tom@tromey.com>
6584
6585 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6586 (struct tui_cmd_window) <can_scroll>: New method.
6587 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6588 method.
6589
381befee
TT
65902019-07-17 Tom Tromey <tromey@adacore.com>
6591
6592 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6593 do_field_signed>: Rename. Change type of "value".
6594 * ui-out.c (ui_out::field_signed): Rename from field_int.
6595 Change type of "value".
6596 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6597 type of "value".
6598 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6599 do_field_int. Change type of "value".
6600 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6601 do_field_int. Change type of "value".
6602 * tracepoint.c (trace_status_mi, tfind_1)
6603 (print_one_static_tracepoint_marker): Update.
6604 * thread.c (print_thread_info_1, print_selected_thread_frame):
6605 Update.
6606 * stack.c (print_frame, print_frame_info): Update.
6607 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6608 Update.
6609 * source.c (print_source_lines_base): Update.
6610 * skip.c (info_skip_command): Update.
6611 * record-btrace.c (btrace_ui_out_decode_error)
6612 (btrace_call_history_src_line): Update.
6613 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6614 Update.
6615 * progspace.c (print_program_space): Update.
6616 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6617 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6618 do_field_int. Change type of "value".
6619 * mi/mi-out.c (mi_ui_out::do_table_begin)
6620 (mi_ui_out::do_table_header): Update.
6621 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6622 type of "value".
6623 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6624 (mi_cmd_data_list_changed_registers, output_register)
6625 (mi_cmd_data_read_memory, mi_load_progress)
6626 (mi_cmd_trace_frame_collected): Update.
6627 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6628 Update.
6629 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6630 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6631 (mi_cmd_var_list_children, varobj_update_one): Update.
6632 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6633 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6634 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6635 * inferior.c (print_inferior): Update.
6636 * gdb_bfd.c (print_one_bfd): Update.
6637 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6638 Update.
6639 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6640 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6641 do_field_int. Change type of "value".
6642 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6643 do_field_int. Change type of "value".
6644 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6645 (print_one_breakpoint_location, print_it_catch_fork)
6646 (print_one_catch_fork, print_it_catch_vfork)
6647 (print_one_catch_vfork, print_it_catch_solib)
6648 (print_it_catch_exec, print_it_ranged_breakpoint)
6649 (print_mention_watchpoint, print_mention_masked_watchpoint)
6650 (bkpt_print_it, update_static_tracepoint): Update.
6651 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6652 * break-catch-syscall.c (print_it_catch_syscall): Update.
6653 * ada-tasks.c (print_ada_task_info): Update.
6654 * ada-lang.c (print_it_exception, print_mention_exception):
6655 Update.
6656
6b78c3f8
AB
66572019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6658
6659 PR breakpoints/24541
6660 * gdbarch.c: Regenerate.
6661 * gdbarch.h: Regenerate.
6662 * gdbarch.sh: Adjust return type and parameter types for
6663 'stap_adjust_register'.
6664 (i386_stap_adjust_register): Adjust signature and return new
6665 register name.
6666 * stap-probe.c (stap_parse_register_operand): Adjust use of
6667 'gdbarch_stap_adjust_register'.
6668
d72a9b85
TT
66692019-07-17 Tom Tromey <tromey@adacore.com>
6670
6671 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6672 declare VEC.
6673 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6674 std::vector.
6675 (struct s390_process_info): Add initializers.
6676 (s390_add_process): Use new.
6677 (s390_linux_nat_target::low_forget_process): Use delete.
6678 (s390_linux_nat_target::low_new_fork)
6679 (s390_linux_nat_target::stopped_by_watchpoint)
6680 (s390_linux_nat_target::low_prepare_to_resume)
6681 (s390_linux_nat_target::insert_watchpoint)
6682 (s390_linux_nat_target::insert_hw_breakpoint)
6683 (s390_linux_nat_target::remove_watchpoint)
6684 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6685
206e6c58
JB
66862019-07-16 John Baldwin <jhb@FreeBSD.org>
6687
6688 * aarch64-fbsd-nat.c: Include regcache.h.
6689 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6690 argument.
6691 (aarch64_fbsd_nat_target::fetch_registers)
6692 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6693 variable.
6694 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6695
cbde90f2
JB
66962019-07-16 John Baldwin <jhb@FreeBSD.org>
6697
6698 * fbsd-nat.c: Include gdbarch.h.
6699
07128006
TT
67002019-07-15 Tom Tromey <tromey@adacore.com>
6701
6702 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6703
1f77b012
TT
67042019-07-15 Tom Tromey <tromey@adacore.com>
6705
6706 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6707 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6708 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6709 * cli-out.c (cli_ui_out::do_field_int): New method.
6710 * ui-out.c (ui_out::field_unsigned): New method.
6711 * symfile.c (generic_load): Use field_unsigned.
6712 (print_transfer_performance): Likewise.
6713 * record-btrace.c (ui_out_field_uint): Remove.
6714 (btrace_call_history_insn_range, btrace_call_history): Use
6715 field_unsigned.
6716 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6717 field_unsigned.
6718 * ui-out.h (class ui_out) <field_unsigned>: New method.
6719 <do_field_unsigned>: Likewise.
6720
33eca680
TT
67212019-07-15 Tom Tromey <tromey@adacore.com>
6722
6723 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6724 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6725 * target.c (flash_erase_command): Use field_string.
6726 * infrun.c (print_signal_received_reason): Use field_string.
6727 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6728 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6729 field_string.
6730 * ada-tasks.c (print_ada_task_info): Use field_string.
6731
ca8d69be
TT
67322019-07-15 Tom Tromey <tromey@adacore.com>
6733
6734 * target.c (flash_erase_command): Use field_core_addr.
6735 * symfile.c (generic_load): Use field_core_addr.
6736 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6737 Use field_core_addr.
6738 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6739 field_core_addr.
6740
0d4e84ed
AB
67412019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6742
6743 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6744 value if its desired type is smaller than a CORE_ADDR and signed.
6745
9a49df9d
AB
67462019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6747
6748 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6749 of changes to field names, and use new is_reference field to
6750 decide if a property is a reference or not.
6751 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6752 field.
6753 (struct dwarf2_property_baton): Update header comment, rename
6754 'referenced_type' to 'property_type' and update comments.
6755 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6756 default property type, store in property baton, update to take
6757 accound of renamed field.
6758 (read_func_scope): Update call to attr_to_dynamic_prop.
6759 (read_array_type): Likewise.
6760 (dwarf2_per_cu_addr_sized_int_type): New function.
6761 (read_subrange_index_type): Move type finding code to
6762 dwarf2_per_cu_addr_sized_int_type.
6763 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6764 (dwarf2_per_cu_addr_type): New function.
6765 (set_die_type): Update calls to attr_to_dynamic_prop.
6766
b86352cf
AB
67672019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6768
6769 * dwarf2read.c (read_subrange_index_type): New function.
6770 (read_subrange_type): Move code into new function and call it.
6771 * gdbtypes.c (create_range_type): Add some asserts.
6772
603490bf
AB
67732019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6774
6775 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6776 update return statements.
6777 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6778 declaration, and update comment to match.
6779 * gdbtypes.c (resolve_dynamic_array): Update call to
6780 dwarf2_evaluate_property to match new return type.
6781
592f9d27
AB
67822019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6783
6784 * valarith.c (value_subscripted_rvalue): Change lowerbound
6785 parameter type from int to LONGEST.
6786 * value.h (value_subscripted_rvalue): Likewise in declaration.
6787
60cfcb20
AB
67882019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6789
6790 * cli/cli-utils.c (info_print_command_completer): New function.
6791 * cli/cli-utils.h: Add 'completer.h' include, and forward
6792 declaration for 'struct cmd_list_element'.
6793 (info_print_command_completer): Declare.
6794 * stack.c (_initialize_stack): Add completer for 'info locals' and
6795 'info args'.
6796 * symtab.c (_initialize_symtab): Add completer for 'info
6797 variables' and 'info functions'.
6798 * NEWS: Mention completion for additional info commands.
6799
b16507e0
AB
68002019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6801
6802 * cli/cli-utils.c (extract_info_print_args): Delete.
6803 (extract_arg_maybe_quoted): Delete.
6804 (info_print_options_defs): New variable.
6805 (make_info_print_options_def_group): New function.
6806 (extract_info_print_options): Define new function.
6807 * cli/cli-utils.h (extract_info_print_args): Delete.
6808 (struct info_print_options): New structure.
6809 (extract_info_print_options): Declare new function.
6810 * stack.c (info_locals_command): Update to use new
6811 extract_info_print_options, also add a header comment.
6812 (info_args_command): Likewise.
6813 * symtab.c (info_variables_command): Likewise.
6814 (info_functions_command): Likewise.
6815
021d8588
AB
68162019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6817
6818 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6819 to extract string arguments.
6820 * common/common-utils.c (extract_string_maybe_quoted): New function.
6821 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6822
b777eb6d
TT
68232019-07-11 Tom Tromey <tromey@adacore.com>
6824
6825 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6826 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6827 * top.h (gdbinit): Don't declare.
6828 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6829 into...
6830 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6831 * top.c (gdb_init): Don't call init_cli_cmds.
6832 (gdbinit): Remove.
6833 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6834
72ee03ff
TT
68352019-07-11 Tom Tromey <tromey@adacore.com>
6836
6837 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6838 after it has been moved.
6839
00db9531
SM
68402019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6841
6842 * valops.c (value_must_coerce_to_target): Change return type to
6843 bool.
6844 * value.h (value_must_coerce_to_target): Likewise.
6845
f2478a7e
SM
68462019-07-10 Simon Marchi <simon.marchi@efficios.com>
6847
6848 * breakpoint.c (is_hardware_watchpoint): Remove
6849 forward-declaration.
6850 (is_masked_watchpoint): Change return type to bool.
6851 (is_tracepoint): Likewise.
6852 (is_breakpoint): Likewise.
6853 (is_hardware_watchpoint): Likewise.
6854 (is_watchpoint): Likewise.
6855 (is_no_memory_software_watchpoint): Likewise.
6856 (is_catchpoint): Likewise.
6857 (breakpoint_1): Make FILTER parameter's return type bool.
6858 is_masked_watchpoint): Change return type to bool.
6859 (save_breakpoints): Make FILTER parameter's return type bool.
6860 * breakpoint.h (is_breakpoint): Change return type to bool.
6861 (is_watchpoint): Likewise.
6862 (is_catchpoint): Likewise.
6863 (is_tracepoint): Likewise.
6864
0d12e84c
TT
68652019-07-10 Tom Tromey <tom@tromey.com>
6866
6867 * defs.h: Don't include gdbarch.h.
6868 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6869 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6870 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6871 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6872 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6873 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6874 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6875 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6876 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6877 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6878 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6879 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6880 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6881 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6882 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6883 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6884 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6885 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6886 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6887 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6888 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6889 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6890 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6891 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6892 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6893 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6894 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6895
f06f1252
TT
68962019-07-10 Tom Tromey <tromey@adacore.com>
6897
6898 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6899 * breakpoint.c (init_ada_exception_breakpoint): Register as
6900 bp_catchpoint.
6901 (print_one_breakpoint_location, print_one_breakpoint): Use
6902 is_ada_exception_catchpoint.
6903 * ada-lang.c (class ada_catchpoint_location): Pass
6904 bp_loc_software_breakpoint to bp_location constructor.
6905 (is_ada_exception_catchpoint): New function.
6906
7a5d944b
TT
69072019-07-10 Tom Tromey <tromey@adacore.com>
6908
6909 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6910 VEC.
6911 (struct arm_exidx_entry): New method operator<.
6912 (struct arm_exidx_data) <section_maps>: Change type.
6913 (arm_exidx_data_free): Remove.
6914 (arm_exidx_data_key): Change type. Move lower.
6915 (arm_exidx_new_objfile): Update.
6916 (arm_compare_exidx_entries): Remove.
6917 (arm_find_exidx_entry, _initialize_arm_tdep)
6918
48c66e1d
TT
69192019-07-10 Tom Tromey <tromey@adacore.com>
6920
6921 * solib-spu.c (ocl_program_data_key): Change type.
6922 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6923 Update.
6924
a269fbf1
TT
69252019-07-10 Tom Tromey <tromey@adacore.com>
6926
6927 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6928 (struct solib_aix_inferior_data) <library_list>: Change type.
6929 (solib_aix_inferior_data_handle): Change type.
6930 (get_solib_aix_inferior_data): Update.
6931 (solib_aix_free_library_list): Remove.
6932 (library_list_start_library): Update.
6933 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6934 return type.
6935 (solib_aix_get_library_list)
6936 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6937 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6938
c294730c
TT
69392019-07-10 Tom Tromey <tromey@adacore.com>
6940
6941 * solib-dsbt.c (struct dsbt_info): Add initializers.
6942 (solib_dsbt_pspace_data): Change type.
6943 (dsbt_pspace_data_cleanup): Remove.
6944 (get_dsbt_info, _initialize_dsbt_solib): Update.
6945
9d52077d
TT
69462019-07-10 Tom Tromey <tromey@adacore.com>
6947
6948 * spu-tdep.c (spu_overlay_data): Change type.
6949 (spu_get_overlay_table, spu_overlay_new_objfile)
6950 (_initialize_spu_tdep): Update.
6951
22a20dca
TT
69522019-07-10 Tom Tromey <tromey@adacore.com>
6953
6954 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6955 destructor.
6956 (dbx_objfile_data_key): Change type and declare later.
6957 (DBX_SYMFILE_INFO): Rewrite.
6958 * dbxread.c (dbx_objfile_data_key): Change type.
6959 (dbx_symfile_init): Update.
6960 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6961 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6962 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6963
cb60f420
TT
69642019-07-10 Tom Tromey <tromey@adacore.com>
6965
6966 * jit.c (jit_program_space_key): Change type. Move lower.
6967 (get_jit_program_space_data): Update.
6968 (jit_program_space_data_cleanup): Remove.
6969 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6970 Update.
6971 (struct jit_program_space_data): Add initializers.
6972
51df2ae3
TT
69732019-07-10 Tom Tromey <tromey@adacore.com>
6974
6975 * solib-darwin.c (struct darwin_info): Add initializers.
6976 (solib_darwin_pspace_data): Change type.
6977 (darwin_pspace_data_cleanup): Remove.
6978 (get_darwin_info, _initialize_darwin_solib): Update.
6979
18101a35
TT
69802019-07-10 Tom Tromey <tromey@adacore.com>
6981
6982 * remote-sim.c (struct sim_inferior_data): Add initializers,
6983 constructor, and destructor.
6984 (sim_inferior_data_key): Change type. Move lower.
6985 (check_for_duplicate_sim_descriptor): Update.
6986 (get_sim_inferior_data): Use new. Update.
6987 (~sim_inferior_data_cleanup): Rename from
6988 sim_inferior_data_cleanup. Simplify.
6989 (gdbsim_close_inferior, simulator_command)
6990 (sim_command_completer, _initialize_remote_sim): Update.
6991 (next_pid, INITIAL_PID): Move earlier.
6992
05b08ac1
TT
69932019-07-10 Tom Tromey <tromey@adacore.com>
6994
6995 * python/python-internal.h (create_thread_object): Return
6996 gdbpy_ref.
6997 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6998 * python/py-inferior.c (struct threadlist_entry): Add
6999 constructor.
7000 <thread_obj>: Now a gdbpy_ref.
7001 (thread_to_thread_object): Update.
7002 (add_thread_object): Use new.
7003 (delete_thread_object): Use delete.
7004 (infpy_threads): Update.
7005 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7006 GIL.
7007
32372d80
TT
70082019-07-10 Tom Tromey <tromey@adacore.com>
7009
7010 * valops.c (value_cast): Specialize error message for Ada.
7011
5c458ae8
SM
70122019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7013
7014 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7015
4c462cb0
SM
70162019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7017
7018 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7019 bpstat_should_step): Return bool, adjust comments.
7020 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7021 bpstat_should_step): Likewise.
7022
89abbcc2
AH
70232019-07-10 Alan Hayward <alan.hayward@arm.com>
7024
7025 * features/Makefile: Use feature target descriptions for Arm.
7026 * features/arm/arm-core.c: Generate new file.
7027 * features/arm/arm-fpa.c: Likewise.
7028 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7029 * features/arm/arm-m-profile.c: Likewise.
7030 * features/arm/arm-vfpv2.c: Likewise.
7031 * features/arm/arm-vfpv3.c: Likewise.
7032 * features/arm/xscale-iwmmxt.c: Likewise.
7033 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7034
166a82be
AH
70352019-07-10 Alan Hayward <alan.hayward@arm.com>
7036
7037 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7038 ptrace earlier.
7039
9fb4c7e9
AH
70402019-07-10 Alan Hayward <alan.hayward@arm.com>
7041
7042 * features/aarch64-pauth.c: Regenerate.
7043
e2d0f980
SM
70442019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7045
7046 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7047 bool.
7048 (bpstat_what): Use false instead of 0.
7049
a38118e5
PA
70502019-07-09 Pedro Alves <palves@redhat.com>
7051
7052 * break-catch-throw.c (is_exception_catchpoint): New.
7053 * breakpoint.c (print_one_breakpoint_location): New parameter
7054 'raw_loc'. Handle it. Use
7055 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7056 looking at the breakpoint's type.
7057 (print_one_breakpoint): If handling "maint info breakpoints", also
7058 print locations of exception catchpoints.
7059 * breakpoint.h (is_exception_catchpoint): Declare.
7060
cb1e4e32
PA
70612019-07-09 Pedro Alves <palves@redhat.com>
7062
7063 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7064 "addr" field.
7065 (allocate_location_exception_catchpoint): New.
7066 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7067 (initialize_throw_catchpoint_ops): Install
7068 allocate_location_exception_catchpoint as allocate_location
7069 method.
7070 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7071 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7072 bp_loc_other.
7073 (breakpoint_address_is_meaningful): Delete.
7074 (bl_address_is_meaningful): New.
7075 (breakpoint_locations_match): Adjust comment.
7076 (bp_location_from_bp_type): New, factored out of...
7077 (bp_location::bp_location(breakpoint *)): ... this.
7078 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7079 factored out of...
7080 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7081 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7082 breakpoint_address_is_meaningful.
7083 (bp_locations_compare): Adjust comment.
7084 (update_global_location_list): Use bl_address_is_meaningful
7085 instead of breakpoint_address_is_meaningful.
7086 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7087 explicit.
7088 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7089 * python/py-breakpoint.c (bppy_get_location): No longer check
7090 whether location is null.
7091
b58a68fe
PA
70922019-07-09 Pedro Alves <palves@redhat.com>
7093
7094 PR c++/15468
7095 * breakpoint.c (print_one_breakpoint_location): Remove
7096 single-location assert.
7097
268a13a5
TT
70982019-07-09 Tom Tromey <tom@tromey.com>
7099
7100 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7101 * configure: Rebuild.
7102 * configure.ac: Change common to gdbsupport.
7103 * gdbsupport: Rename from common.
7104 * acinclude.m4: Change common to gdbsupport.
7105 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7106 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7107 gdbsupport.
7108 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7109 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7110 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7111 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7112 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7113 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7114 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7115 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7116 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7117 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7118 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7119 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7120 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7121 coff-pe-read.c, command.h, compile/compile-c-support.c,
7122 compile/compile-c.h, compile/compile-cplus-symbols.c,
7123 compile/compile-cplus-types.c, compile/compile-cplus.h,
7124 compile/compile-loc2c.c, compile/compile.c, completer.c,
7125 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7126 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7127 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7128 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7129 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7130 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7131 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7132 features/aarch64-core.c, features/aarch64-fpu.c,
7133 features/aarch64-pauth.c, features/aarch64-sve.c,
7134 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7135 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7136 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7137 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7138 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7139 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7140 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7141 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7142 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7143 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7144 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7145 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7146 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7147 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7148 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7149 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7150 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7151 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7152 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7153 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7154 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7155 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7156 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7157 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7158 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7159 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7160 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7161 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7162 minsyms.c, mips-linux-tdep.c, namespace.h,
7163 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7164 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7165 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7166 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7167 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7168 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7169 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7170 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7171 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7172 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7173 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7174 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7175 procfs.c, producer.c, progspace.h, psymtab.h,
7176 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7177 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7178 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7179 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7180 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7181 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7182 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7183 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7184 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7185 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7186 target-memory.c, target.c, target.h, target/waitstatus.c,
7187 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7188 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7189 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7190 unittests/array-view-selftests.c,
7191 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7192 unittests/common-utils-selftests.c,
7193 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7194 unittests/format_pieces-selftests.c,
7195 unittests/function-view-selftests.c,
7196 unittests/lookup_name_info-selftests.c,
7197 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7198 unittests/mkdir-recursive-selftests.c,
7199 unittests/observable-selftests.c,
7200 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7201 unittests/parse-connection-spec-selftests.c,
7202 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7203 unittests/scoped_fd-selftests.c,
7204 unittests/scoped_mmap-selftests.c,
7205 unittests/scoped_restore-selftests.c,
7206 unittests/string_view-selftests.c, unittests/style-selftests.c,
7207 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7208 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7209 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7210 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7211 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7212 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7213
5b0e2db4
AB
72142019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7215
7216 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7217 bool value.
7218 (decode_digits_ordinary): Set explicit_line field in sal.
7219 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7220 symtab_and_line that was set on an explicit line number in
7221 assembler code. Do always update the recorded symtab and line if
7222 we do skip the prologue.
7223
0ba852ab
AB
72242019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7225
7226 * breakpoint.c (set_breakpoint_location_function): Remove
7227 explicit_loc parameter.
7228 (momentary_breakpoint_from_master): Update call to
7229 set_breakpoint_location_function.
7230 (add_location_to_breakpoint): Likewise.
7231
b3a7d171
AB
72322019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7233
7234 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7235 required features based on default bfd type when no specific bfd
7236 is present.
7237
1f6f6e21
PW
72382019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7239
7240 * NEWS: Mention that GDB printf and eval commands can now print
7241 C-style and Ada-style convenience var strings without
7242 calling the inferior.
7243 * printcmd.c (printf_c_string): Locally print GDB internal var
7244 instead of transiting via the inferior.
7245 (printf_wide_c_string): Likewise.
7246
72472019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7248
5862c886 7249 PR breakpoints/25011
ea142fbf
AH
7250 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7251
0598af48
TT
72522019-07-04 Tom Tromey <tom@tromey.com>
7253
7254 PR tui/24724:
7255 * tui/tui-winsource.c (tui_clear_source_content): Update.
7256 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7257 (tui_update_breakpoint_info): Update.
7258 (tui_set_exec_info_content): Update.
7259 * tui/tui-source.c (tui_set_source_content_nil): Update.
7260 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7261 has_break.
7262 * tui/tui-data.h (enum tui_bp_flag): New.
7263 (tui_bp_flags): New enum flags type.
7264 (struct tui_source_element) <break_mode>: Change type. Rename
7265 from has_break.
7266 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7267 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7268 constants.
7269 * tui/tui-winsource.h: Fix comment.
7270
350fab54
AH
72712019-07-04 Alan Hayward <alan.hayward@arm.com>
7272
7273 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7274 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7275 (store_fpregs_to_thread)
7276 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7277 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7278 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7279 (IWMMXT_REGS_SIZE): Add define.
7280 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7281 (fetch_vfp_regs, store_vfp_regs)
7282 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7283 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7284
f0452268
AH
72852019-07-04 Alan Hayward <alan.hayward@arm.com>
7286
7287 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7288 defines.
7289 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7290 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7291 (ARM_INT_REGISTER_SIZE): ...to this.
7292 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7293 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7294 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7295 (arm_linux_collect_gregset, supply_nwfpe_register)
7296 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7297 defines.
7298 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7299 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7300 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7301 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7302 (arm_return_in_memory, arm_store_return_value)
7303 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7304 (arm_record_ld_st_multiple): Likewise.
7305 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7306 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7307
e935475c
AH
73082019-07-04 Alan Hayward <alan.hayward@arm.com>
7309
7310 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7311 AARCH64_DISPLACED_MODIFIED_INSNS.
7312 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7313 (aarch64_displaced_step_copy_insn): Likewise.
7314 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7315 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7316 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7317 ARM_DISPLACED_MODIFIED_INSNS.
7318 * arm-tdep.c (arm_gdbarch_init): Likewise.
7319 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7320 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7321 (struct arm_displaced_step_closure): Use
7322 ARM_DISPLACED_MODIFIED_INSNS.
7323
df0bb381
AH
73242019-07-04 Alan Hayward <alan.hayward@arm.com>
7325
7326 * features/Makefile: Remove unused xml files.
7327 * features/aarch64.xml: Remove.
7328 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7329 * features/i386/amd64-avx-avx512.xml: Remove.
7330 * features/i386/amd64-avx-linux.xml: Remove.
7331 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7332 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7333 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7334 * features/i386/amd64-avx-mpx.xml: Remove.
7335 * features/i386/amd64-avx.xml: Remove.
7336 * features/i386/amd64-linux.xml: Remove.
7337 * features/i386/amd64-mpx-linux.xml: Remove.
7338 * features/i386/amd64-mpx.xml: Remove.
7339 * features/i386/amd64.xml: Remove.
7340 * features/i386/i386-avx-avx512-linux.xml: Remove.
7341 * features/i386/i386-avx-avx512.xml: Remove.
7342 * features/i386/i386-avx-linux.xml: Remove.
7343 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7344 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7345 * features/i386/i386-avx-mpx-linux.xml: Remove.
7346 * features/i386/i386-avx-mpx.xml: Remove.
7347 * features/i386/i386-avx.xml: Remove.
7348 * features/i386/i386-linux.xml: Remove.
7349 * features/i386/i386-mmx-linux.xml: Remove.
7350 * features/i386/i386-mmx.xml: Remove.
7351 * features/i386/i386-mpx-linux.xml: Remove.
7352 * features/i386/i386-mpx.xml: Remove.
7353 * features/i386/i386.xml: Remove.
7354 * features/i386/x32-avx-avx512-linux.xml: Remove.
7355 * features/i386/x32-avx-linux.xml: Remove.
7356 * features/i386/x32-linux.xml: Remove.
7357
edd6266a
AH
73582019-07-04 Alan Hayward <alan.hayward@arm.com>
7359
7360 * regformats/aarch64.dat: Remove.
7361 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7362 * regformats/i386/amd64-avx-linux.dat: Remove.
7363 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7364 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7365 * regformats/i386/amd64-linux.dat: Remove.
7366 * regformats/i386/amd64-mpx-linux.dat: Remove.
7367 * regformats/i386/amd64.dat: Remove.
7368 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7369 * regformats/i386/i386-avx-linux.dat: Remove.
7370 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7371 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7372 * regformats/i386/i386-linux.dat: Remove.
7373 * regformats/i386/i386-mmx-linux.dat: Remove.
7374 * regformats/i386/i386-mpx-linux.dat: Remove.
7375 * regformats/i386/i386.dat: Remove.
7376 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7377 * regformats/i386/x32-avx-linux.dat: Remove.
7378 * regformats/i386/x32-linux.dat: Remove.
7379
2b40fda7
AH
73802019-07-04 Alan Hayward <alan.hayward@arm.com>
7381
7382 * aarch64-tdep.c: Remove xml self tests.
7383 * amd64-linux-tdep.c: Likewise.
7384 * amd64-tdep.c: Likewise.
7385 * i386-linux-tdep.c: Likewise.
7386 * i386-tdep.c: Likewise.
7387
5f4ba3e7
PA
73882019-07-03 Pedro Alves <palves@redhat.com>
7389
7390 PR cli/24732
7391 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7392 (pipe_cmd_option_defs): New.
7393 (make_pipe_cmd_options_def_group): New.
7394 (pipe_command): Use gdb::option::process_options.
7395 (pipe_command_completer): New function.
7396 (_initialize_cli_cmds): Install completer for "pipe" command.
7397
3d9be6f5
PA
73982019-07-03 Pedro Alves <palves@redhat.com>
7399
7400 * cli/cli-option.c (union option_value) <string>: New field.
7401 (struct option_def_and_value): Add ctor, move ctor, dtor and
7402 use DISABLE_COPY_AND_ASSIGN.
7403 (option_def_and_value::clear_value): New.
7404 (parse_option, save_option_value_in_ctx, get_val_type_str)
7405 (add_setshow_cmds_for_options): Handle var_string.
7406 * cli-option.h (union option_def::var_address) <string>: New
7407 field.
7408 (struct string_option_def): New.
7409 * maint-test-options.c (struct test_options_opts): Add default
7410 ctor and use DISABLE_COPY_AND_ASSIGN.
7411 <string_opt>: New field.
7412 (test_options_opts::~test_options_opts): New.
7413 (test_options_opts::dump): Also dump "-string".
7414 (test_options_option_defs): Install "string.
7415
41fc454c
PA
74162019-07-03 Pedro Alves <palves@redhat.com>
7417
7418 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7419 option_value with a null enumeration.
7420 (complete_options): Save the option values in the context.
7421 (save_option_value_in_ctx): New, factored out from ...
7422 (process_options): ... here.
7423 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7424 of the function.
7425 * maint-test-options.c (test_options_opts::dump): New, factored
7426 out from ...
7427 (maintenance_test_options_command_mode): ... here.
7428 (maintenance_test_options_command_completion_result): Delete.
7429 (maintenance_test_options_command_completion_text): Update
7430 comment.
7431 (maintenance_show_test_options_completion_result): Change
7432 prototype. Just print
7433 maintenance_test_options_command_completion_text.
7434 (save_completion_result): New.
7435 (maintenance_test_options_completer_mode): Pass options context to
7436 complete_options, and then save a dump.
7437 (_initialize_maint_test_options): Use add_cmd to install "maint
7438 show test-options-completion-result".
7439
fdbc9870
PA
74402019-07-03 Pedro Alves <palves@redhat.com>
7441
7442 * NEWS (New commands): Mention "with" and "maint with".
7443 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7444 (with_command, with_command_completer): New.
7445 (pipe_command): Adjust to new repeat_previous
7446 interface.
7447 (_initialize_cli_cmds): Install the "with" command and its "w"
7448 alias.
7449 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7450 declarations.
7451 * cli/cli-setshow.c (parse_cli_var_uinteger)
7452 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7453 argument strings for all var_types.
7454 (get_setshow_command_value_string): New, factored out from ...
7455 (do_show_command): ... this.
7456 * cli/cli-setshow.h: Include <string>.
7457 (get_setshow_command_value_string): Declare.
7458 * command.h (repeat_previous): Now returns const char *. Adjust
7459 comment.
7460 * maint.c: Include "cli/cli-cmds.h".
7461 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7462 (_initialize_maint_cmds): Register the "maintenance with" command.
7463 * top.c (repeat_previous): Move bits from pipe_command here:
7464 Return the saved command line, if any; error out if there's no
7465 command to relaunch.
7466
c6ac8931
PA
74672019-07-03 Pedro Alves <palves@redhat.com>
7468
7469 * NEWS (New commands): Mention "maint set/show test-settings"
7470 instead of "maint test-settings".
7471 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7472 (maintenance_test_settings_set_list): Rename to ...
7473 (maintenance_set_test_settings_list): ... this.
7474 (maintenance_test_settings_show_list): Rename to ...
7475 (maintenance_show_test_settings_list): ... this.
7476 (maintenance_test_settings_cmd): Delete.
7477 (maintenance_test_settings_set_cmd): ...
7478 (maintenance_set_test_settings_cmd): ... this.
7479 (maintenance_test_settings_show_cmd): ...
7480 (maintenance_show_test_settings_cmd): ... this.
7481 (maintenance_test_settings_show_value_cmd):
7482 (maintenance_show_test_settings_value_cmd): ... this.
7483 (_initialize_maint_test_settings): No longer install the "maint
7484 test-settings" prefix command. Rename "maint test-settings set"
7485 to "maint set test-settings", and "maint test-settings show" to
7486 "maint show test-settings". Adjust all subcommands.
7487
d1fcf2fd
PA
74882019-07-03 Pedro Alves <palves@redhat.com>
7489
7490 * maint-test-settings.c: Fix file's intro comment. Replace all
7491 references to "test-options" with references to "test-settings",
7492 in comments.
7493
970f9d09
PA
74942019-07-03 Pedro Alves <palves@redhat.com>
7495
7496 * maint-test-settings.c (maintenance_test_settings_xxx)
7497 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7498 New.
7499 (maintenance_test_settings_enums): Use them.
7500 (maintenance_test_settings_enum): Default to
7501 maintenance_test_settings_xxx.
7502 (_initialize_maint_test_settings): Initialize
7503 MAINTENANCE_TEST_SETTINGS_FILENAME.
7504
f3869b1a
SM
75052019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7506
7507 * breakpoint.h (remove_breakpoints_inf): Change return type to
7508 void, move function documentation here.
7509 * breakpoint.c (remove_breakpoints_inf): Change return type to
7510 void, move function documentation to header.
7511
54d66006
PA
75122019-07-02 Pedro Alves <palves@redhat.com>
7513
7514 * NEWS (Completion improvements): Mention "info threads".
7515 * thread.c (struct info_threads_opts, info_threads_option_defs)
7516 (make_info_threads_options_def_group): New.
7517 (info_threads_command): Use gdb::option::process_options.
7518 (info_threads_command_completer): New.
7519 (_initialize_thread): Use gdb::option::build_help to build the
7520 help text for "info threads".
7521
854f6088
SM
75222019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7523
7524 * defs.h (generic_load): Move from here...
7525 * symfile.h (generic_load): ... to here. Rename name parameter
7526 to args.
7527 * symfile.c (generic_load): Add comment.
7528
54ee4252
TT
75292019-07-01 Tom Tromey <tromey@adacore.com>
7530
7531 * dwarf2read.c
7532 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7533 declaration of without_params. Fix formatting.
7534
65392b3e
TT
75352019-07-01 Tom Tromey <tromey@adacore.com>
7536
7537 * ada-exp.y (find_primitive_type): Update.
7538 * ada-lang.h (ada_lookup_symbol): Update.
7539 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7540 parameter.
7541 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7542
7d7571f0
SDJ
75432019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7544
7545 PR breakpoints/24541
7546 * gdbarch.c: Regenerate.
7547 * gdbarch.h: Regenerate.
7548 * gdbarch.sh: Add 'stap_adjust_register'.
7549 * i386-tdep.c: Include '<unordered_set>'.
7550 (i386_stap_adjust_register): New function.
7551 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7552 * stap-probe.c (stap_parse_register_operand): Call
7553 'gdbarch_stap_adjust_register'.
7554
5af5392a
SDJ
75552019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7556
7557 PR python/24742
7558 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7559 * python/python.c (do_start_initialization): Use 'xmalloc'
7560 instead of 'PyMem_Malloc'.
7561
10d06d82
TT
75622019-06-28 Tom Tromey <tromey@adacore.com>
7563
7564 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7565 for Ada.
7566
1b7f24cd
TT
75672019-06-27 Tom Tromey <tromey@adacore.com>
7568
7569 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7570 objfile_key.
7571 (arm_find_mapping_symbol, arm_record_special_symbol)
7572 (_initialize_arm_tdep): Update.
7573 (arm_objfile_data_free): Remove.
7574
3d507ff2
TT
75752019-06-27 Tom Tromey <tromey@adacore.com>
7576
7577 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7578 to cp_print_static_field.
7579
762c164d
TT
75802019-06-26 Tom Tromey <tromey@adacore.com>
7581
7582 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7583 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7584 declare.
7585
aa2f9bcf
AH
75862019-06-26 Alan Hayward <alan.hayward@arm.com>
7587
7588 * features/aarch64-core.c (create_feature_aarch64_core):
7589 Regenerate.
7590 * features/aarch64-core.xml: Add cpsr flags.
7591
3426ae57
AH
75922019-06-26 Alan Hayward <alan.hayward@arm.com>
7593
7594 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7595 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7596
4838e44c
SM
75972019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7598
7599 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7600 field.
7601 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7602 use.
7603 (arm_record_special_symbol): Don't insert new symbol in sorted
7604 position, push it at the end.
7605
54cc7474
SM
76062019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7607
7608 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7609 (arm_mapping_symbol_s): Remove.
7610 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7611 (arm_mapping_symbol_vec): New typedef.
7612 (struct arm_per_objfile): Add constructor.
7613 <section_maps>: Change type to
7614 std::unique_ptr<arm_mapping_symbol_vec[]>.
7615 (arm_compare_mapping_symbols): Remove.
7616 (arm_find_mapping_symbol): Adjust to section_maps type change.
7617 (arm_objfile_data_free): Call delete on arm_per_objfile.
7618 (arm_record_special_symbol): Adjust to section_maps type change.
7619 Allocate arm_per_objfile with new.
7620
b65b566c
PW
76212019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7622
7623 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7624 with the command prefix.
7625
c2fc64f5
TT
76262019-06-25 Tom Tromey <tom@tromey.com>
7627
7628 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7629 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7630
fb54fa76
TT
76312019-06-25 Tom Tromey <tom@tromey.com>
7632
7633 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7634 type.
7635 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7636 protected.
7637
f7952c57
TT
76382019-06-25 Tom Tromey <tom@tromey.com>
7639
7640 * tui/tui-winsource.c
7641 (tui_source_window_base::set_is_exec_point_at): Add check against
7642 LOA_ADDRESS.
7643
17568d78
TT
76442019-06-25 Tom Tromey <tom@tromey.com>
7645
7646 * tui/tui-source.c (tui_set_source_content): Don't check before
7647 xfree.
7648 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7649
53e7cdba
TT
76502019-06-25 Tom Tromey <tom@tromey.com>
7651
7652 * tui/tui-winsource.h (tui_update_source_window_as_is)
7653 (tui_alloc_source_buffer, tui_line_is_displayed)
7654 (tui_addr_is_displayed): Change type of win_info.
7655 * tui/tui-winsource.c (tui_update_source_window_as_is)
7656 (tui_clear_source_content, tui_show_source_line)
7657 (tui_show_source_content, tui_source_window_base::refill)
7658 (tui_source_window_base::set_is_exec_point_at)
7659 (tui_source_window_base::set_is_exec_point_at)
7660 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7661 (tui_alloc_source_buffer, tui_line_is_displayed)
7662 (tui_addr_is_displayed): Change type of win_info. Update.
7663 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7664 (tui_source_window_base::do_make_visible_with_new_height):
7665 Update.
7666 * tui/tui-source.c (tui_set_source_content)
7667 (tui_set_source_content_nil)
7668 (tui_source_window::do_scroll_vertical): Update.
7669 * tui/tui-layout.c (show_layout): Update.
7670 * tui/tui-disasm.c (tui_set_disassem_content)
7671 (tui_disasm_window::do_scroll_vertical): Update.
7672 * tui/tui-data.h (tui_win_content): Remove.
7673 (struct tui_gen_win_info) <content, content_size>: Remove.
7674 (struct tui_source_element): Add initializers and destructor.
7675 (union tui_which_element, struct tui_win_element): Remove.
7676 (struct tui_source_window_base) <content>: New field.
7677 (struct tui_data_window): Remove destructor.
7678 (tui_alloc_content, tui_free_win_content)
7679 (tui_free_all_source_wins_content): Don't declare.
7680 * tui/tui-data.c (tui_initialize_static_data): Update.
7681 (init_content_element, tui_alloc_content): Remove.
7682 (~tui_gen_win_info): Update.
7683 (~tui_data_window, tui_free_all_source_wins_content)
7684 (tui_free_win_content, free_content, free_content_elements):
7685 Remove.
7686
7908abbf
TT
76872019-06-25 Tom Tromey <tom@tromey.com>
7688
7689 * tui/tui-winsource.h (tui_clear_source_content)
7690 (tui_erase_source_content, tui_show_source_content): Change type
7691 of win_info.
7692 * tui/tui-winsource.c (tui_clear_source_content)
7693 (tui_erase_source_content, tui_show_source_content): Change type
7694 of win_info.
7695 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7696 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7697 win_info.
7698 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7699 win_info.
7700 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7701
02c28df0
TT
77022019-06-25 Tom Tromey <tom@tromey.com>
7703
7704 * tui/tui-winsource.c (tui_clear_source_content)
7705 (tui_source_window_base::set_is_exec_point_at): Update.
7706 * tui/tui-source.c (tui_set_source_content_nil): Update.
7707 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7708 a bool.
7709 * tui/tui-data.c (init_content_element): Update.
7710
6658b1bf
TT
77112019-06-25 Tom Tromey <tom@tromey.com>
7712
7713 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7714 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7715 * tui/tui-layout.c (init_and_make_win): Update.
7716 * tui/tui.h (enum tui_win_type): Update.
7717 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7718 tui_win_is_auxillary.
7719 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7720 tui_win_is_auxillary.
7721
21e1c91e
TT
77222019-06-25 Tom Tromey <tom@tromey.com>
7723
7724 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7725 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7726 (tui_delete_data_content_windows, tui_display_all_data)
7727 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7728 Update.
7729 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7730 * tui/tui-regs.c (tui_last_regs_line_no)
7731 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7732 (tui_show_registers): Update.
7733 (tui_show_register_group): Return void. Update.
7734 (tui_display_registers_from, tui_display_reg_element_at_line)
7735 (tui_display_registers_from_line, tui_check_register_values):
7736 Update.
7737 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7738 member.
7739 (struct tui_data_window) <regs_content>: Now a std::vector.
7740 <regs_content_count>: Remove.
7741 (tui_add_content_elements, tui_free_data_content): Don't declare.
7742 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7743 (init_content_element): Remove DATA_WIN case. Add assert.
7744 (tui_add_content_elements): Remove.
7745 (tui_data_window): Update.
7746 (tui_free_data_content): Remove.
7747 (free_content_elements): Remove DATA_WIN case.
7748
115ac53b
TT
77492019-06-25 Tom Tromey <tom@tromey.com>
7750
7751 * tui/tui-data.c (tui_data_item_window): Update.
7752 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7753 * tui/tui-windata.c (tui_display_all_data)
7754 (tui_display_data_from_line): Update.
7755 (tui_check_data_values): Remove.
7756 * tui/tui-regs.c (tui_show_register_group)
7757 (tui_display_reg_element_at_line): Update.
7758 * tui/tui-hooks.c (tui_register_changed)
7759 (tui_refresh_frame_and_register_information): Call
7760 tui_check_register_values.
7761 * tui/tui-data.h (struct tui_data_window) <data_content,
7762 data_content_count, data_type>: Remove.
7763 (enum tui_data_type): Remove.
7764
7765 * tui/tui-data.c (tui_data_window::clear_detail)
7766 (~tui_data_window): Update.
7767
eaf9738b
TT
77682019-06-25 Tom Tromey <tom@tromey.com>
7769
7770 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7771 declare.
7772 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7773 Rename from tui_first_data_item_displayed. Update.
7774 (tui_data_window::refresh_all)
7775 (tui_data_window::do_scroll_vertical): Update.
7776 * tui/tui-data.h (struct tui_data_window)
7777 <first_data_item_displayed>: Declare new method.
7778
31ca4723
TT
77792019-06-25 Tom Tromey <tom@tromey.com>
7780
7781 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7782 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7783 contents...
7784 (tui_initialize_static_data): ...here.
7785
41bcff7f
TT
77862019-06-25 Tom Tromey <tom@tromey.com>
7787
7788 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7789 (tui_display_registers_from, tui_check_register_values): Update.
7790 (tui_display_register): Remove win_info parameter; update.
7791 (tui_get_register): Change type of parameters.
7792 * tui/tui-data.h (struct tui_data_element): Remove.
7793 (union tui_which_element) <data>: Remove.
7794 <data_window>: Change type.
7795 (struct tui_data_item_window): New.
7796 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7797 case. Add assert.
7798 (~tui_data_item_window): New destructor.
7799 (free_content_elements): Remove DATA_ITEM_WIN case.
7800
d2802c33
TT
78012019-06-25 Tom Tromey <tom@tromey.com>
7802
7803 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7804 Remove.
7805
dd835f8b
TT
78062019-06-25 Tom Tromey <tom@tromey.com>
7807
7808 * tui/tui-data.h (struct tui_command_element): Remove.
7809 (union tui_which_element) <command>: Remove.
7810 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7811 assert.
7812 (free_content_elements): Remove CMD_WIN case.
7813
bd7db367
TT
78142019-06-25 Tom Tromey <tom@tromey.com>
7815
7816 * tui/tui-layout.c (tui_set_layout): Update.
7817 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7818 * tui/tui-data.c (layout_def): Update.
7819
3add462f
TT
78202019-06-25 Tom Tromey <tom@tromey.com>
7821
7822 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7823 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7824 (tui_source_window_base::set_new_height): Update.
7825 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7826 Update.
7827 (tui_set_locator_fullname, tui_set_locator_info)
7828 (tui_show_frame_info): Update.
7829 * tui/tui-source.c (tui_set_source_content)
7830 (tui_source_is_displayed): Update.
7831 * tui/tui-layout.c (show_source_disasm_command, show_data)
7832 (show_source_or_disasm_and_command): Update.
7833 * tui/tui-disasm.c (tui_set_disassem_content)
7834 (tui_get_begin_asm_address): Update.
7835 * tui/tui-data.h (struct tui_locator_element): Remove.
7836 (union tui_which_element) <locator>: Remove.
7837 (struct tui_locator_window): New.
7838 (tui_locator_win_info_ptr): Change return type.
7839 * tui/tui-data.c (_locator): Change type.
7840 (tui_locator_win_info_ptr): Change return type.
7841 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7842 (tui_alloc_content): Add assert.
7843
489e9d8b
TT
78442019-06-25 Tom Tromey <tom@tromey.com>
7845
7846 * tui/tui-winsource.c
7847 (tui_exec_info_window::maybe_allocate_content): New method.
7848 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7849 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7850 (make_source_or_disasm_window): Add cast.
7851 * tui/tui-data.h (union tui_which_element) <simple_string>:
7852 Remove.
7853 (struct tui_source_info): New.
7854 (struct tui_source_window_base) <execution_info>: Change type.
7855 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7856 case, and add assert.
7857 (tui_alloc_content): Add assert.
7858
c3fabb7d
TT
78592019-06-25 Tom Tromey <tom@tromey.com>
7860
7861 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7862 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7863 * tui/tui-data.c (tui_alloc_win_info): Remove.
7864
bbc228ee
TT
78652019-06-25 Tom Tromey <tom@tromey.com>
7866
7867 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7868 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7869 can_highlight.
7870
5fcee43a
TT
78712019-06-25 Tom Tromey <tom@tromey.com>
7872
7873 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7874 make_visible_with_new_height method.
7875 (tui_win_info::make_visible_with_new_height): New method.
7876 (tui_source_window_base::do_make_visible_with_new_height)
7877 (tui_data_window::do_make_visible_with_new_height)
7878 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7879 (make_visible_with_new_height): Remove.
7880 (tui_resize_all, tui_adjust_win_heights): Use
7881 make_visible_with_new_height method.
7882 * tui/tui-data.h (struct tui_win_info)
7883 <do_make_visible_with_new_height, make_visible_with_new_height>:
7884 New methods.
7885 (struct tui_source_window_base, struct tui_data_window)
7886 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7887 methods.
7888
d83f1fe6
TT
78892019-06-25 Tom Tromey <tom@tromey.com>
7890
7891 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7892 method.
7893 (update_tab_width): Call update_tab_width method.
7894 * tui/tui-data.h (struct tui_win_info)
7895 (struct tui_source_window_base) <update_tab_width>: New methods.
7896
17374de4
TT
78972019-06-25 Tom Tromey <tom@tromey.com>
7898
7899 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7900 parameter.
7901 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7902 parameter.
7903 (tui_gen_win_info::make_visible): Update.
7904 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7905 parameter.
7906 * tui/tui-data.h (enum tui_box): New enum.
7907 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7908
f936bca2
TT
79092019-06-25 Tom Tromey <tom@tromey.com>
7910
7911 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7912 init_and_make_win for EXEC_INFO_WIN.
7913 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7914 longer inline.
7915 (struct tui_win_info) <~tui_win_info>: Inline.
7916 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7917 Don't declare.
7918 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7919 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7920 Remove.
7921 (tui_initialize_static_data): Update.
7922 (~tui_gen_win_info): Handle more cleanup here.
7923 (~tui_source_window_base): Delete "execution_info".
7924 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7925
d6ba6a11
TT
79262019-06-25 Tom Tromey <tom@tromey.com>
7927
7928 * tui/tui-layout.c (make_command_window): Don't set
7929 can_highlight.
7930 (show_source_disasm_command): Call the reset method.
7931 (show_data): Don't set can_highlight. Call the reset method.
7932 (tui_gen_win_info::reset): Rename from init_gen_win_info
7933 (init_and_make_win): Simplify. Return tui_gen_win_info.
7934 (show_source_or_disasm_and_command): Call the reset method.
7935 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7936 (struct tui_cmd_window): Set can_highlight.
7937
48a3bd16
TT
79382019-06-25 Tom Tromey <tom@tromey.com>
7939
7940 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7941 from make_visible.
7942 (tui_make_visible, tui_make_invisible): Rewrite.
7943 (tui_win_info::make_visible): Remove.
7944 (tui_source_window_base::make_visible): Update.
7945 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7946 method. Moved from...
7947 (struct tui_win_info) <make_visible>: ...here.
7948
c3bd716f
TT
79492019-06-25 Tom Tromey <tom@tromey.com>
7950
7951 * tui/tui-winsource.c
7952 (tui_source_window_base::do_scroll_horizontal): Remove direction
7953 parameter.
7954 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7955 direction parameter.
7956 * tui/tui-win.c (tui_win_info::forward_scroll)
7957 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7958 (tui_win_info::right_scroll): Update.
7959 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7960 direction parameter.
7961 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7962 direction parameter.
7963 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7964 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7965 Remove direction parameter.
7966 (struct tui_source_window_base, struct tui_source_window)
7967 (struct tui_disasm_window, struct tui_data_window)
7968 (struct tui_cmd_window): Update.
7969
21c32dca
TT
79702019-06-25 Tom Tromey <tom@tromey.com>
7971
7972 * tui/tui-winsource.h (tui_set_exec_info_content)
7973 (tui_show_exec_info_content, tui_erase_exec_info_content)
7974 (tui_clear_exec_info_content, tui_update_exec_info): Change
7975 argument to tui_source_window_base.
7976 * tui/tui-winsource.c (tui_set_exec_info_content)
7977 (tui_show_exec_info_content, tui_erase_exec_info_content)
7978 (tui_clear_exec_info_content, tui_update_exec_info): Change
7979 argument to tui_source_window_base.
7980
73fbdc65
TT
79812019-06-25 Tom Tromey <tom@tromey.com>
7982
7983 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7984 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7985
33325343
TT
79862019-06-25 Tom Tromey <tom@tromey.com>
7987
7988 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7989 check.
7990
29d2c474
TT
79912019-06-25 Tom Tromey <tom@tromey.com>
7992
7993 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7994 type to void.
7995 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7996 type to void.
7997 * tui/tui-source.c (tui_set_source_content): Update.
7998 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7999
152f3f4b
TT
80002019-06-25 Tom Tromey <tom@tromey.com>
8001
8002 * tui/tui-win.c (window_name_completer, tui_set_focus)
8003 (tui_all_windows_info): Use name method.
8004 * tui/tui-data.h (struct tui_gen_win_info)
8005 (struct tui_source_window, struct tui_disasm_window)
8006 (struct tui_data_window, struct tui_cmd_window) <name>: New
8007 method.
8008 (tui_win_name): Don't declare.
8009 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8010 (tui_win_name): Remove.
8011
be4da588
TT
80122019-06-25 Tom Tromey <tom@tromey.com>
8013
8014 * tui/tui-winsource.h (tui_update_source_window)
8015 (tui_update_source_window_as_is): Change parameter type.
8016 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8017 to be a tui_source_window_base.
8018 (tui_update_source_window_as_is): Likewise.
8019 * tui/tui-win.c (make_visible_with_new_height): Update.
8020
5b81daba
TT
80212019-06-25 Tom Tromey <tom@tromey.com>
8022
8023 * tui/tui-winsource.c (tui_erase_source_content)
8024 (tui_show_source_content, tui_show_exec_info_content)
8025 (tui_erase_exec_info_content): Use refresh_window method.
8026 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8027 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8028 from tui_refresh_win.
8029 (tui_data_window::refresh_window): New method.
8030 (tui_win_info::refresh, tui_source_window_base::refresh)
8031 (tui_refresh_all): Use refresh_window method.
8032 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8033 method.
8034 * tui/tui-regs.c (tui_display_register): Call refresh_window
8035 method.
8036 * tui/tui-layout.c (show_source_disasm_command)
8037 (show_source_or_disasm_and_command): Call refresh_window method.
8038 * tui/tui-data.h (struct tui_gen_win_info)
8039 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8040 New method.
8041
cb2ce893
TT
80422019-06-25 Tom Tromey <tom@tromey.com>
8043
8044 * tui/tui.c (tui_rl_other_window, tui_enable)
8045 (tui_is_window_visible, tui_get_command_dimension): Update.
8046 * tui/tui-winsource.c (tui_update_source_window_as_is)
8047 (tui_clear_source_content, tui_erase_source_content)
8048 (tui_show_source_line, tui_source_window_base::refill)
8049 (tui_source_window_base::do_scroll_horizontal)
8050 (tui_source_window_base::set_is_exec_point_at)
8051 (tui_update_breakpoint_info, tui_set_exec_info_content)
8052 (tui_alloc_source_buffer, tui_line_is_displayed)
8053 (tui_addr_is_displayed): Update.
8054 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8055 (tui_check_and_display_highlight_if_needed)
8056 (tui_win_info::make_visible, tui_win_info::refresh)
8057 (tui_refresh_all): Update.
8058 * tui/tui-windata.c (tui_first_data_item_displayed)
8059 (tui_delete_data_content_windows, tui_erase_data_content)
8060 (tui_display_all_data, tui_data_window::refresh_all)
8061 (tui_check_data_values): Update.
8062 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8063 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8064 (tui_win_info::backward_scroll, tui_refresh_all_win)
8065 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8066 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8067 (tui_source_window_base::set_new_height)
8068 (tui_data_window::set_new_height)
8069 (make_invisible_and_set_new_height)
8070 (make_visible_with_new_height, new_height_ok)
8071 (parse_scrolling_args): Update.
8072 * tui/tui-stack.c (tui_show_frame_info): Update.
8073 * tui/tui-source.c (tui_set_source_content)
8074 (tui_set_source_content_nil, tui_source_is_displayed)
8075 (tui_source_window::do_scroll_vertical): Update.
8076 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8077 (tui_display_registers_from, tui_display_reg_element_at_line)
8078 (tui_check_register_values, tui_reg_command): Update.
8079 * tui/tui-layout.c (tui_default_win_height)
8080 (show_source_disasm_command, show_data, init_and_make_win)
8081 (show_source_or_disasm_and_command): Update.
8082 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8083 (tui_redisplay_readline, tui_mld_flush)
8084 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8085 (tui_getc): Update.
8086 * tui/tui-disasm.c (tui_set_disassem_content)
8087 (tui_disasm_window::do_scroll_vertical): Update.
8088 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8089 Now virtual.
8090 (struct tui_win_info): Derive from tui_gen_win_info.
8091 <~tui_win_info>: Mark as override.
8092 <generic>: Remove member.
8093 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8094 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8095 (~tui_data_window, ~tui_win_info)
8096 (tui_free_all_source_wins_content): Update.
8097 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8098
ab313b35
TT
80992019-06-25 Tom Tromey <tom@tromey.com>
8100
8101 * tui/tui-layout.c (init_and_make_win): Use new.
8102 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8103 destructor, initializers.
8104 (tui_alloc_generic_win_info): Don't declare.
8105 * tui/tui-data.c (_locator): Add argument to constructor.
8106 (source_win, disasm_win): New globals.
8107 (exec_info): Remove.
8108 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8109 Update.
8110 (tui_alloc_generic_win_info): Remove.
8111 (init_content_element): Use new.
8112 (tui_win_info::tui_win_info): Update.
8113 (free_content_elements) <case DATA_WIN>: Use delete.
8114
dc2c33e4
TT
81152019-06-25 Tom Tromey <tom@tromey.com>
8116
8117 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8118 * tui/tui-windata.c (tui_first_data_item_displayed)
8119 (tui_delete_data_content_windows): Update.
8120 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8121 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8122 (tui_display_registers_from, tui_check_register_values): Update.
8123 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8124 pointer.
8125 * tui/tui-data.c (init_content_element): Update. Allocate the new
8126 window.
8127 (tui_free_data_content): Update.
8128 (free_content_elements) <case DATA_WIN>: Free the window.
8129
214a5cbe
TT
81302019-06-25 Tom Tromey <tom@tromey.com>
8131
8132 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8133 Update.
8134 * tui/tui-layout.c (make_command_window)
8135 (show_source_disasm_command, show_data, init_and_make_win)
8136 (show_source_or_disasm_and_command): Update.
8137 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8138 method.
8139 <can_highight, is_highlighted>: Now bool.
8140 (tui_set_win_highlight): Don't declare.
8141 * tui/tui-data.c (tui_set_win_highlight): Remove.
8142
8e2daf15
TT
81432019-06-25 Tom Tromey <tom@tromey.com>
8144
8145 * tui/tui-wingeneral.c (make_visible): Remove check of window
8146 type.
8147
8903bd8a
TT
81482019-06-25 Tom Tromey <tom@tromey.com>
8149
8150 * tui/tui-win.c (tui_win_info::max_height)
8151 (tui_cmd_window::max_height): New methods.
8152 (new_height_ok): Call max_height.
8153 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8154 <max_height>: New method.
8155
3f02ce1e
TT
81562019-06-25 Tom Tromey <tom@tromey.com>
8157
8158 * tui/tui-win.c (tui_source_window_base::set_new_height)
8159 (tui_data_window::set_new_height): New methods.
8160 (make_invisible_and_set_new_height): Call set_new_height method.
8161 * tui/tui-data.h (struct tui_win_info)
8162 (struct tui_source_window_base, struct tui_data_window)
8163 <set_new_height>: New method.
8164
1825f487
TT
81652019-06-25 Tom Tromey <tom@tromey.com>
8166
8167 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8168 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8169 tui_refresh_data_win.
8170 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8171 method.
8172 (tui_refresh_all_win): Call the refresh_all method.
8173 (tui_set_focus): Likewise.
8174 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8175 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8176 Likewise.
8177
ad54d15b
TT
81782019-06-25 Tom Tromey <tom@tromey.com>
8179
8180 * tui/tui-winsource.h (tui_refill_source_window)
8181 (tui_set_is_exec_point_at): Don't declare.
8182 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8183 (tui_source_window_base::refill): Rename from
8184 tui_refill_source_window.
8185 (tui_source_window_base::do_scroll_horizontal): Update.
8186 (tui_source_window_base::set_is_exec_point_at): Rename from
8187 tui_set_is_exec_point_at.
8188 (tui_update_all_breakpoint_info): Update.
8189 * tui/tui-stack.c (tui_show_frame_info): Update.
8190 * tui/tui-layout.c (show_data): Add cast.
8191 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8192 * tui/tui-data.h (struct tui_source_window_base) <refill,
8193 set_is_exec_point_at>: New methods.
8194 (tui_source_windows, tui_add_to_source_windows): Update types.
8195 (tui_add_to_source_windows): Remove redundant declaration.
8196 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8197 (tui_source_windows): Change return type.
8198 (tui_clear_source_windows_detail): Update.
8199 (tui_add_to_source_windows): Change type of parameter.
8200 (tui_free_all_source_wins_content): Update.
8201
2042b506
TT
82022019-06-25 Tom Tromey <tom@tromey.com>
8203
8204 * tui/tui-wingeneral.c (tui_win_info::refresh)
8205 (tui_source_window_base::refresh): New methods.
8206 (tui_refresh_all): Call the refresh method.
8207 * tui/tui-data.h (struct tui_win_info)
8208 (struct tui_source_window_base) <refresh>: New method.
8209
56122977
TT
82102019-06-25 Tom Tromey <tom@tromey.com>
8211
8212 * tui/tui.h (tui_is_window_visible): Return bool.
8213 * tui/tui.c (tui_is_window_visible): Return bool.
8214 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8215 (tui_make_visible, tui_make_invisible)
8216 (tui_win_info::make_visible)
8217 (tui_source_window_base::make_visible, make_all_visible)
8218 (tui_make_all_visible, tui_make_all_invisible): Update.
8219 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8220 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8221 bool.
8222 (struct tui_win_info, struct tui_source_window_base)
8223 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8224 * tui/tui-data.c (tui_init_generic_part): Update.
8225
cda37efb
TT
82262019-06-25 Tom Tromey <tom@tromey.com>
8227
8228 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8229 (tui_source_window_base::make_visible): New methods.
8230 (make_all_visible): Make method call.
8231 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8232 (struct tui_source_window_base, struct tui_cmd_window): Override
8233 make_visible.
8234 (tui_win_is_source_type): Don't declare.
8235 * tui/tui-data.c (tui_win_is_source_type): Remove.
8236
6a0ee02c
TT
82372019-06-25 Tom Tromey <tom@tromey.com>
8238
8239 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8240 NULL check.
8241
63901aec
TT
82422019-06-25 Tom Tromey <tom@tromey.com>
8243
8244 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8245 Inline constructor. Add initializers for members.
8246 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8247 constructors; now inline in class.
8248
ceb13a13
TT
82492019-06-25 Tom Tromey <tom@tromey.com>
8250
8251 * tui/tui-regs.c (tui_show_registers): Update.
8252 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8253 bool.
8254 * tui/tui-data.c (tui_data_window::clear_detail)
8255 (tui_data_window): Update.
8256
238eb706
TT
82572019-06-25 Tom Tromey <tom@tromey.com>
8258
8259 * tui/tui-windata.c (tui_display_all_data)
8260 (tui_display_data_from_line, tui_display_data_from)
8261 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8262 Update.
8263 * tui/tui-regs.c (tui_last_regs_line_no)
8264 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8265 (tui_show_registers, tui_show_register_group)
8266 (tui_display_registers_from, tui_display_reg_element_at_line)
8267 (tui_display_registers_from_line, tui_check_register_values)
8268 (tui_reg_next, tui_reg_prev): Update.
8269 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8270 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8271 tui_data_window.
8272 (struct tui_win_info) <detail>: Remove. Add new fields from
8273 tui_data_info.
8274 (TUI_DATA_WIN): Add cast.
8275 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8276 (~tui_data_window): Simplify.
8277
81491aa0
TT
82782019-06-25 Tom Tromey <tom@tromey.com>
8279
8280 * tui/tui-layout.c (show_source_disasm_command)
8281 (show_source_or_disasm_and_command): Update.
8282 * tui/tui-io.c (update_cmdwin_start_line)
8283 (tui_redisplay_readline): Update.
8284 * tui/tui-data.h (struct tui_command_info): Remove.
8285 (struct tui_win_info) <detail>: Remove command_info member.
8286 (struct tui_data_window) <start_line>: New member, from
8287 tui_command_info.
8288 (TUI_CMD_WIN): Add casts.
8289
e6e41501
TT
82902019-06-25 Tom Tromey <tom@tromey.com>
8291
8292 * tui/tui-winsource.c (tui_update_source_window)
8293 (tui_refill_source_window)
8294 (tui_source_window_base::do_scroll_horizontal)
8295 (tui_update_breakpoint_info, tui_set_exec_info_content)
8296 (tui_show_exec_info_content, tui_erase_exec_info_content)
8297 (tui_clear_exec_info_content): Update.
8298 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8299 Update.
8300 * tui/tui-win.c (make_invisible_and_set_new_height)
8301 (make_visible_with_new_height): Update.
8302 * tui/tui-source.c (tui_set_source_content)
8303 (tui_show_symtab_source): Update.
8304 * tui/tui-layout.c (extract_display_start_addr)
8305 (show_source_disasm_command, show_data)
8306 (make_source_or_disasm_window)
8307 (show_source_or_disasm_and_command): Update.
8308 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8309 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8310 "gdbarch".
8311 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8312 to tui_source_window_base.
8313 (struct tui_win_info) <detail>: Remove source_info member.
8314 (struct tui_source_window_base) <has_locator>: Inline.
8315 Move contents from tui_source_info; rename has_locator member to
8316 m_has_locator.
8317 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8318 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8319 header file.
8320 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8321 Simplify.
8322 (tui_free_all_source_wins_content): Cast to
8323 tui_source_window_base.
8324
44f0e208
TT
83252019-06-25 Tom Tromey <tom@tromey.com>
8326
8327 * tui/tui-win.c (make_invisible_and_set_new_height)
8328 (make_visible_with_new_height): Call has_locator method.
8329 * tui/tui-layout.c (show_source_disasm_command, show_data)
8330 (show_source_or_disasm_and_command): Update for bool change.
8331 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8332 (tui_win_info) <has_locator>: New method.
8333 (struct tui_source_window_base) <has_locator>: New method.
8334 (tui_win_has_locator): Don't declare.
8335 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8336 from tui_win_has_locator.
8337 (tui_source_window_base): Use false, not FALSE.
8338
7778b912
TT
83392019-06-25 Tom Tromey <tom@tromey.com>
8340
8341 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8342 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8343 clear_detail method directly.
8344 (tui_clear_win_detail): Remove.
8345
f83d391c
TT
83462019-06-25 Tom Tromey <tom@tromey.com>
8347
8348 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8349 "this", not TUI_DISASM_WIN.
8350
13446e05
TT
83512019-06-25 Tom Tromey <tom@tromey.com>
8352
8353 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8354 declare.
8355 * tui/tui-winsource.c
8356 (tui_source_window_base::do_scroll_horizontal): Rename from
8357 tui_horizontal_source_scroll.
8358 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8359 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8360 from tui_vertical_data_scroll.
8361 * tui/tui-win.h (tui_scroll): Don't declare.
8362 * tui/tui-win.c (tui_win_info::forward_scroll)
8363 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8364 (tui_win_info::right_scroll): Rename and update.
8365 (tui_scroll_forward_command, tui_scroll_backward_command)
8366 (tui_scroll_left_command, tui_scroll_right_command): Update.
8367 (tui_scroll): Remove.
8368 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8369 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8370 from tui_vertical_source_scroll.
8371 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8372 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8373 from tui_vertical_disassem_scroll.
8374 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8375 do_scroll_horizontal>: New methods.
8376 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8377 Likewise.
8378 (struct tui_source_window_base): Add do_scroll_horizontal.
8379 (struct tui_source_window, struct tui_disasm_window): Add
8380 do_scroll_vertical.
8381 (struct tui_data_window, struct tui_cmd_window): Add
8382 do_scroll_horizontal and do_scroll_vertical.
8383 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8384
5cf82909
TT
83852019-06-25 Tom Tromey <tom@tromey.com>
8386
8387 * tui/tui-data.h (struct tui_source_window_base): New struct.
8388 (struct tui_source_window): Derive from tui_source_window_base.
8389 (struct tui_disasm_window): New struct.
8390 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8391 from tui_source_window::clear_detail.
8392 (tui_source_window_base): Rename from tui_source_window.
8393 (~tui_source_window_base): Rename from ~tui_source_window.
8394 (tui_alloc_win_info): Create a tui_disasm_window.
8395
ee1d42d6
TT
83962019-06-25 Tom Tromey <tom@tromey.com>
8397
8398 * tui/tui-data.h (struct tui_source_window)
8399 (struct tui_data_window): Declare destructors.
8400 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8401 destructors.
8402 (tui_win_info): Simplify.
8403
b4eb2452
TT
84042019-06-25 Tom Tromey <tom@tromey.com>
8405
8406 * tui/tui-winsource.c (tui_display_main)
8407 (tui_update_source_windows_with_addr)
8408 (tui_update_all_breakpoint_info): Update.
8409 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8410 (new_height_ok, parse_scrolling_args): Update.
8411 * tui/tui-stack.c (tui_show_frame_info): Update.
8412 * tui/tui-data.h (struct tui_list): Remove.
8413 (tui_source_windows): Return a reference to a std::vector.
8414 * tui/tui-data.c (source_windows): Now a std::vector.
8415 (tui_source_windows): Change return type.
8416 (tui_clear_source_windows): Rewrite.
8417 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8418 (tui_free_all_source_wins_content): Rewrite.
8419
8761a91b
TT
84202019-06-25 Tom Tromey <tom@tromey.com>
8421
8422 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8423 (struct tui_data_window, struct tui_cmd_window): Declare
8424 clear_detail method.
8425 * tui/tui-data.c (tui_source_window::clear_detail)
8426 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8427 methods.
8428 (tui_clear_win_detail): Simplify.
8429
0ed69eda
TT
84302019-06-25 Tom Tromey <tom@tromey.com>
8431
8432 * tui/tui-layout.c (make_source_window, make_disasm_window)
8433 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8434 Return the new window.
8435 (show_source_disasm_command, show_data)
8436 (show_source_or_disasm_and_command): Update.
8437
82432e10
TT
84382019-06-25 Tom Tromey <tom@tromey.com>
8439
8440 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8441 parameter. Return the new window.
8442 (show_source_disasm_command): Update and remove NULL check.
8443 (show_source_or_disasm_and_command): Update.
8444
ec328aa5
TT
84452019-06-25 Tom Tromey <tom@tromey.com>
8446
8447 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8448
33b906ab
TT
84492019-06-25 Tom Tromey <tom@tromey.com>
8450
8451 * tui/tui-data.h (struct tui_win_info): Make constructor
8452 protected. Make destructor virtual. Add initializers.
8453 (tui_source_window, tui_data_window, tui_cmd_window): New
8454 classes.
8455 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8456 constructor. Add "type" parameter.
8457 (tui_source_window, tui_data_window, tui_cmd_window): New
8458 constructors.
8459 (tui_alloc_win_info): Instantiate the appropriate subclass.
8460
e7e11af4
TT
84612019-06-25 Tom Tromey <tom@tromey.com>
8462
8463 * tui/tui-win.c (tui_resize_all): Use delete.
8464 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8465 destructor.
8466 (tui_free_window): Don't declare.
8467 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8468 Update.
8469
6792b55e
TT
84702019-06-25 Tom Tromey <tom@tromey.com>
8471
8472 * tui/tui-data.h (struct tui_win_info): Add constructor.
8473 * tui/tui-data.c (tui_alloc_win_info): Use new.
8474 (tui_free_window): Use delete.
8475
f95675e1
TT
84762019-06-22 Tom Tromey <tom@tromey.com>
8477
8478 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8479 declare.
8480 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8481
5bff081c
TT
84822019-06-22 Tom Tromey <tom@tromey.com>
8483
8484 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8485 declare.
8486 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8487
47e3f474
TV
84882019-06-22 Tom de Vries <tdevries@suse.de>
8489
8490 * dwarf2read.c (create_addrmap_from_aranges)
8491 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8492 instead of '%zu'.
8493
fd5866f6
SM
84942019-06-21 Simon Marchi <simon.marchi@efficios.com>
8495
8496 * dwarf2read.h (dwarf2_section_info_def): Remove.
8497 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8498 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8499 std::vector<dwarf2_section_info>.
8500 (struct dwo_file) <~dwo_file>: Remove.
8501 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8502 types field.
8503 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8504 (dwarf2_read_debug_names): Likewise.
8505 (create_debug_types_hash_table): Change parameter type to
8506 array_view, adjust code accordingly.
8507 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8508 (partial_die_info::fixup): Likewise.
8509 (determine_prefix): Likewise.
8510 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8511
fb1eb2f9
SM
85122019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8513
8514 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8515 gdb_bfd_ref_ptr.
8516 <~dwo_file>: Remove call to gdb_bfd_unref.
8517 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8518 gdb_bfd_ref_ptr::get.
8519
51ac9db5
SM
85202019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8521
8522 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8523 type to htab_up.
8524 * dwarf2read.c (struct dwo_file): Initialize fields.
8525 <~dwo_file>: New.
8526 (free_dwo_file): Remove, move content to ~dwo_file.
8527 (struct dwo_file_deleter): Remove.
8528 (dwo_file_up>: Remove custom deleter.
8529 (free_dwo_files): Remove.
8530 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8531 dwo_files.
8532 (process_skeletonless_type_units): Call unique_ptr::get.
8533 (allocate_dwo_file_hash_table): Add deleter to created hash
8534 table. Change return type to htab_up.
8535 (lookup_dwo_file_slot): Don't memset dwo_file, call
8536 unique_ptr::get.
8537 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8538 (create_dwo_unit_in_dwp_v2): Likewise.
8539 (open_and_init_dwo_file): Likewise.
8540 (free_dwo_file_from_slot): Remove.
8541
dc4ccb6f
SM
85422019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8543
8544 * dwarf2read.h (struct dwarf2_section_info) <readin,
8545 is_virtual>: Change type to bool.
8546 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8547 true instead of 1.
8548
e6a1c5cb
TT
85492019-06-19 Tom Tromey <tom@tromey.com>
8550
8551 * tui/tui-data.h (tui_init_content_element): Don't declare.
8552
6f6ffbeb
TT
85532019-06-19 Tom Tromey <tom@tromey.com>
8554
8555 * tui/tui-data.h (tui_init_win_info): Don't declare.
8556
f23f598e
TV
85572019-06-19 Tom de Vries <tdevries@suse.de>
8558
8559 * dwarf2read.h (abstract_to_concrete): Change type to
8560 std::unordered_map<sect_offset, std::vector<sect_offset>,
8561 gdb::hash_enum<sect_offset>>.
8562
680e1bee
TT
85632019-06-19 Tom Tromey <tromey@adacore.com>
8564
8565 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8566 EVAL_AVOID_SIDE_EFFECTS specially.
8567
dcf37923
TT
85682019-06-19 Tom Tromey <tromey@adacore.com>
8569
8570 * source-cache.c (highlighter): New global.
8571 (source_cache::get_source_lines): Create a highlighter on demand.
8572
494986d5
AB
85732019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8574
8575 * defs.h (deprecated_interactive_hook): Delete declaration.
8576 * interps.c (clear_interpreter_hooks): Remove use of
8577 deprecated_interactive_hook.
8578 * top.c (deprecated_interactive_hook): Delete definition.
8579 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8580
3360b6e7
TV
85812019-06-18 Tom de Vries <tdevries@suse.de>
8582
8583 PR gdb/24515
8584 * dwarf2read.h (abstract_to_concrete): Change type from
8585 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8586 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8587 * dwarf2read.c (read_variable): Update.
8588 (dwarf2_fetch_die_loc_sect_off): Update.
8589
310b3441
TV
85902019-06-17 Tom de Vries <tdevries@suse.de>
8591
8592 PR gdb/24617
8593 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8594 accessing parent[parent_len - 1].
8595
ba9777be
PP
85962019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8597
8598 PR gdb/24364
8599 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8600 call dtrace_process_dof with NULL dof.
8601
2b9f6e89
TV
86022019-06-16 Tom de Vries <tdevries@suse.de>
8603
8604 PR gdb/24445
8605 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8606
431b3ead
TT
86072019-06-16 Tom Tromey <tom@tromey.com>
8608
8609 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8610 (make_all_visible): Use address of member.
8611
d04b44a1
TT
86122019-06-16 Tom Tromey <tom@tromey.com>
8613
8614 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8615 (tui_free_window, free_content, free_content_elements): Remove
8616 unnecessary cast.
8617 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8618 cast.
8619 * tui/tui-regs.c (tui_show_register_group)
8620 (tui_display_registers_from, tui_display_reg_element_at_line):
8621 Remove unnecessary cast.
8622
bf5142e7
AB
86232019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8624
8625 * linux-nat.c (normal_mask): Delete.
8626 (_initialize_linux_nat): Don't initialise normal_mask.
8627
c4973306
SM
86282019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8629
8630 PR gdb/24445
8631 * dwarf-index-write.h (write_psymtabs_to_index): Add
8632 dwz_basename parameter.
8633 * dwarf-index-write.c (write_gdbindex): Move file writing to
8634 write_gdbindex_1. Change return type void.
8635 (assert_file_size): Move up, remove filename parameter.
8636 (write_gdbindex_1): New function.
8637 (write_debug_names): Change return type to void, call
8638 assert_file_size.
8639 (struct index_wip_file): New struct.
8640 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8641 file logic to index_wip_file. Write index for dwz file if
8642 needed.
8643 (save_gdb_index_command): Pass basename of dwz file, if present.
8644 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8645 build-id of dwz file, if present.
8646 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8647 (dwarf2_get_dwz_file): Likewise.
8648 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8649 (dwarf2_get_dwz_file): Likewise.
8650
395f9c91
TT
86512019-06-16 Tom Tromey <tom@tromey.com>
8652
8653 * coffread.c (process_coff_symbol): Use xstrdup.
8654 * value.c (create_internalvar): Use xstrdup.
8655
cafb3438
TT
86562019-06-16 Tom Tromey <tom@tromey.com>
8657
8658 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8659 * breakpoint.c (stopin_command, stopat_command)
8660 (until_break_command, decode_location_default): Remove unnecessary
8661 cast.
8662 * utils.c (subset_compare): Remove unnecessary cast.
8663 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8664 cast.
8665 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8666 cast.
8667 * infcmd.c (path_command): Remove unnecessary cast.
8668 * coffread.c (decode_type): Remove unnecessary cast.
8669 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8670 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8671 * tui/tui-stack.c (tui_show_locator_content)
8672 (tui_show_frame_info): Remove unnecessary cast.
8673 * tui/tui-win.c (tui_scroll_forward_command)
8674 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8675 (parse_scrolling_args): Remove unnecessary cast.
8676 * tui/tui-data.c (init_win_info, tui_del_window)
8677 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8678 (free_content_elements): Remove unnecessary cast.
8679 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8680 unnecessary cast.
8681 * tui/tui-source.c (tui_set_source_content)
8682 (tui_vertical_source_scroll): Remove unnecessary cast.
8683 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8684 cast.
8685 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8686 * tui/tui-regs.c (tui_display_registers_from)
8687 (tui_display_register): Remove unnecessary cast.
8688 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8689 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8690 (make_visible): Remove unnecessary cast.
8691 * tui/tui-winsource.c (tui_erase_source_content)
8692 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8693 unnecessary cast.
8694 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8695 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8696 * stabsread.c (read_type, read_array_type, read_range_type):
8697 Remove unnecessary cast.
8698 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8699 (parse_symbol, parse_type, upgrade_type, parse_external)
8700 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8701 unnecessary cast.
8702 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8703
730ead81
TT
87042019-06-16 Tom Tromey <tom@tromey.com>
8705
8706 * tui/tui-data.c (tui_alloc_generic_win_info)
8707 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8708 checks.
8709
584a927c
AB
87102019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8711 Andrew Burgess <andrew.burgess@embecosm.com>
8712
8713 * f-typeprint.c (f_print_type): Don't return early for not
8714 associated or not allocated types.
8715 (f_type_print_varspec_suffix): Add print_rank parameter and print
8716 ranks of array types in case they dangling.
8717 (f_type_print_base): Add print_rank parameter.
8718
30056ea0
AB
87192019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8720
8721 * NEWS: Mention new MI commands.
8722 * break-catch-throw.c (enum exception_event_kind): Move to
8723 breakpoint.h.
8724 (print_mention_exception_catchpoint): Output text as a single
8725 message.
8726 (catch_exception_command_1): Rename to...
8727 (catch_exception_event): ...this, make non-static, update header
8728 command, and change some parameter types.
8729 (catch_catch_command): Update for changes to
8730 catch_exception_command_1.
8731 (catch_throw_command): Likewise.
8732 (catch_rethrow_command): Likewise.
8733 * breakpoint.c (enum exception_event_kind): Delete.
8734 * breakpoint.h (enum exception_event_kind): Moved here from
8735 break-catch-throw.c.
8736 (catch_exception_event): Declare.
8737 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8738 (mi_cmd_catch_throw): New function.
8739 (mi_cmd_catch_rethrow): New function.
8740 (mi_cmd_catch_catch): New function.
8741 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8742 'catch-catch' entries.
8743 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8744 (mi_cmd_catch_rethrow): Declare.
8745 (mi_cmd_catch_catch): Declare.
8746
ec8e2b6d
AB
87472019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8748
8749 * annotate.c (annotate_source_line): Change return type to void,
8750 update implementation to match.
8751 * annotate.h (annotate_source_line): Change return type to void,
8752 update header comment.
8753 * stack.c (print_frame_info): Don't change what frame information
8754 is printed based on whether annotations are on or not.
8755
0d3abd8c
AB
87562019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8757
8758 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8759 (annotate_source): Make static.
8760 (annotate_source_line): Moved from source.c and renamed from
8761 identify_source_line. Update the return type.
8762 * annotate.h (annotate_source): Delete declaration.
8763 (annotate_source_line): Declaration moved from source.h, and
8764 renamed from identify_source_line. Return type updated.
8765 * source.c (identify_source_line): Moved to annotate.c and renamed
8766 to annotate_source_line.
8767 (info_line_command): Remove check of annotation_level.
8768 * source.h (identify_source_line): Move declaration to annotate.h
8769 and rename to annotate_source_line.
8770 * stack.c: Add 'annotate.h' include.
8771 (print_frame_info): Remove check of annotation_level before
8772 calling annotate_source_line.
8773
00df30ae
AB
87742019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8775
8776 * source-cache.c (source_cache::get_plain_source_lines): Use
8777 open_source_file_with_line_charpos instead of just
8778 open_source_file, remove call to find_source_lines.
8779 (source_cache::get_source_lines): Likewise.
8780 * source.c (find_source_lines): Make static.
8781 (get_filename_and_charpos): Renamed into...
8782 (open_source_file_with_line_charpos): ..this along with changes to
8783 return a scoped_fd, and some other minor clean ups.
8784 (identify_source_line): Use open_source_file_with_line_charpos.
8785 (search_command_helper): Use open_source_file_with_line_charpos
8786 instead of just open_source_file, remove call to
8787 find_source_lines.
8788 * source.h (open_source_file_with_line_charpos): Declare new
8789 function.
8790 (find_source_lines): Delete declaration.
8791
afda45a2
AB
87922019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8793
8794 * source.c (get_filename_and_charpos): Remove fullname
8795 parameter.
8796 (identify_source_line): Update call to get_filename_and_charpos.
8797
0735b091
TT
87982019-06-14 Tom Tromey <tromey@adacore.com>
8799
8800 PR gdb/24502:
8801 * ui-style.h (skip_ansi_escape): Update comment.
8802 * ui-file.h (class no_terminal_escape_file): New class.
8803 * ui-file.c (no_terminal_escape_file::write)
8804 (no_terminal_escape_file::puts): New methods.
8805 * cli/cli-logging.c (handle_redirections): Use
8806 no_terminal_escape_file.
8807
52ce35e2
TT
88082019-06-14 Tom Tromey <tromey@adacore.com>
8809
8810 * NEWS: Move convenience variable news above Python news.
8811
73cc7272
TT
88122019-06-14 Tom Tromey <tom@tromey.com>
8813
8814 * gnulib: Move directory to top-level.
8815 * configure.ac: Don't configure gnulib.
8816 * configure: Rebuild.
8817 * common/common-defs.h: Use new path to gnulib.
8818 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8819 (GNULIB_H): Remove.
8820 (INCGNU): Look in new gnulib location.
8821 (HFILES_NO_SRCDIR): Remove gnulib files.
8822 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8823 (generated_files): Remove GNULIB_H.
8824 ($(LIBGNU), all-lib): Remove targets.
8825 (distclean): Don't mention GNULIB_BUILDDIR.
8826 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8827
f5686554
TT
88282019-06-14 Tom Tromey <tromey@adacore.com>
8829
8830 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8831 Warn if symbol file does not provide any symbols.
8832
a0c1ffed
TT
88332019-06-14 Tom Tromey <tromey@adacore.com>
8834
8835 * source.c (find_and_open_source): Respect basenames_may_differ.
8836
7c39e397
AB
88372019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8838
8839 * annotate.c (annotate_breakpoints_invalid): Make use of
8840 scoped_restore_terminal_state.
8841 (annotate_frames_invalid): Likewise.
8842
f411722c
TT
88432019-06-14 Tom Tromey <tromey@adacore.com>
8844
8845 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8846 allow assignment to an internalvar.
8847
4268ec18
TT
88482019-06-14 Tom Tromey <tromey@adacore.com>
8849
8850 * ada-lex.l: Allow "_" in attribute names.
8851
abdb711e
TT
88522019-06-14 Tom Tromey <tromey@adacore.com>
8853
8854 PR gdb/24653:
8855 * regcache.c (registers_changed): Don't call alloca.
8856 * top.c (execute_command): Don't call alloca.
8857
4c048731
PA
88582019-06-13 Pedro Alves <palves@redhat.com>
8859
8860 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8861 'expression'. When parsing an expression, error out if there's
8862 junk after "unlimited".
8863 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8864 (do_set_command): Adjust calls to is_unlimited_literal.
8865
66eb1ed3
PA
88662019-06-13 Pedro Alves <palves@redhat.com>
8867
8868 * compile/compile.c (make_compile_options_def_group): Add braces
8869 around array_view initializer.
8870 * thread.c (make_thread_apply_all_options_def_group)
8871 (make_thread_apply_all_options_def_group): Likewise.
8872
3345721a
PA
88732019-06-13 Pedro Alves <palves@redhat.com>
8874
8875 * NEWS (New commands): Mention "maint test-options
8876 require-delimiter", "maint test-options unknown-is-error", "maint
8877 test-options unknown-is-operand" and "maint show
8878 test-options-completion-result".
8879 (New command options, command completion): New section.
8880 (Completion improvements): New section.
8881 Mention that you can abbreviate "unlimited".
8882
6206060d
PA
88832019-06-13 Pedro Alves <palves@redhat.com>
8884
8885 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8886 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8887 * unittests/cli-utils-selftests.c (test_parse_flags)
8888 (test_parse_flags_qcs): Delete.
8889 (test_cli_utils): Don't call deleted functions.
8890
6665660a
PA
88912019-06-13 Pedro Alves <palves@redhat.com>
8892
8893 * thread.c: Include "cli/cli-option.h".
8894 (tp_array_compar_ascending): Global.
8895 (tp_array_compar): Delete function.
8896 (tp_array_compar_ascending, tp_array_compar_descending): New
8897 functions.
8898 (ascending_option_def, qcs_flag_option_def)
8899 (thr_qcs_flags_option_defs)
8900 (make_thread_apply_all_options_def_group)
8901 (make_thread_apply_options_def_group): New.
8902 (thread_apply_all_command): Use gdb::option::process_options.
8903 (thread_apply_command_completer)
8904 (thread_apply_all_command_completer): New.
8905 (thread_apply_command): Use gdb::option::process_options.
8906 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8907 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8908 to generate help text of "thread apply". Adjust "taas"'s help.
8909 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8910 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8911
f7e13587
PA
89122019-06-13 Pedro Alves <palves@redhat.com>
8913
8914 * thread.c (thread_apply_command): Check for invalid TID with
8915 isdigit instead of !isalpha.
8916
5d707134
PA
89172019-06-13 Pedro Alves <palves@redhat.com>
8918
8919 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8920 (validate_flags_qcs): New.
8921 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8922 (validate_flags_qcs): Declare.
8923 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8924 (make_frame_apply_options_def_group): New.
8925 (frame_apply_command_count): Process options with
8926 gdb::option::process_options.
8927 (frame_apply_completer): New.
8928 (frame_apply_level_completer, frame_apply_all_completer)
8929 (frame_apply_completer): New.
8930 (_initialize_stack): Update help of "frame apply", "frame apply
8931 level", "frame apply all" and "faas" to mention supported options
8932 and install command completers.
8933 * stack.h (frame_apply_all_completer): Declare.
8934 * thread.c: Include "stack.h".
8935 (tfaas_command): Add "--".
8936 (_initialize_thread): Update help "tfaas" to mention supported
8937 options and install command completer.
8938
272d4594
PA
89392019-06-13 Pedro Alves <palves@redhat.com>
8940
8941 * completer.c (complete_nested_command_line): New.
8942 (gdb_completion_word_break_characters_throw): Add assertion.
8943 * completer.h (complete_nested_command_line): Declare.
8944
90a1ef87
PA
89452019-06-13 Pedro Alves <palves@redhat.com>
8946
8947 * stack.c (parse_backtrace_qualifiers): New.
8948 (backtrace_command): Use it.
8949 (backtrace_command_completer): Complete on qualifiers.
8950
d4c16835
PA
89512019-06-13 Pedro Alves <palves@redhat.com>
8952
8953 * frame.c: Include "cli/cli-option.h.
8954 (user_set_backtrace_options): New.
8955 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8956 Delete.
8957 (get_prev_frame): Adjust.
8958 (boolean_option_def, uinteger_option_def)
8959 (set_backtrace_option_defs): New.
8960 (_initialize_frame): Adjust and use
8961 gdb::option::add_setshow_cmds_for_options to install "set
8962 backtrace past-main" and "set backtrace past-entry".
8963 * frame.h: Include "cli/cli-option.h".
8964 (struct frame_print_options): Forward declare.
8965 (print_frame_arguments_all, print_frame_arguments_scalars)
8966 (print_frame_arguments_none): Declare.
8967 (print_entry_values): Delete declaration.
8968 (struct frame_print_options, user_frame_print_options): New.
8969 (struct set_backtrace_options): New.
8970 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8971 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8972 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8973 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8974 (list_args_or_locals): Add frame_print_options parameter.
8975 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8976 * python/py-framefilter.c (enumerate_args): Pass down
8977 USER_FRAME_PRINT_OPTIONS.
8978 * stack.c: Include "cli/cli-option.h".
8979 (print_frame_arguments_all, print_frame_arguments_scalars)
8980 (print_frame_arguments_none): Declare.
8981 (print_raw_frame_arguments, print_entry_values): Delete.
8982 (user_frame_print_options): New.
8983 (boolean_option_def, enum_option_def, frame_print_option_defs):
8984 New.
8985 (struct backtrace_cmd_options): New.
8986 (bt_flag_option_def): New.
8987 (backtrace_command_option_defs): New.
8988 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8989 (print_frame_arg, read_frame_arg, print_frame_args)
8990 (print_frame_info, print_frame): Add frame_print_options parameter
8991 and use it.
8992 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8993 (backtrace_command_1): Add frame_print_options and
8994 backtrace_cmd_options parameters and use them.
8995 (make_backtrace_options_def_group): New.
8996 (backtrace_command): Process command options with
8997 gdb::option::process_options.
8998 (backtrace_command_completer): New.
8999 (_initialize_stack): Extend "backtrace"'s help to mention
9000 supported options. Install completer for "backtrace".
9001 Install some settings commands with add_setshow_cmds_for_options.
9002
2daf894e
PA
90032019-06-13 Pedro Alves <palves@redhat.com>
9004
9005 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9006 and that "set/show print raw frame-arguments" are now deprecated.
9007
9008 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9009 command.
9010 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9011 * stack.c (_initialize_stack): Install "set/show print
9012 raw-frame-arguments", and deprecate "set/show print raw
9013 frame-arguments".
9014 * valprint.c (_initialize_valprint): Deprecate "set/show print
9015 raw".
9016
e6ed716c
PA
90172019-06-13 Pedro Alves <palves@redhat.com>
9018
9019 * compile/compile.c (struct compile_options): New.
9020 (compile_flag_option_def, compile_command_option_defs)
9021 (make_compile_options_def_group): New.
9022 (compile_file_command): Handle options with
9023 gdb::option::process_options.
9024 (compile_file_command_completer): New function.
9025 (compile_code_command): Handle options with
9026 gdb::option::process_options.
9027 (compile_code_command_completer): New function.
9028 (_initialize_compiler): Install completers for "compile code" and
9029 "compile file". Mention available options in "compile code" and
9030 "compile code"'s help.
9031 * completer.c (advance_to_completion_word): New, factored out from
9032 ...
9033 (advance_to_expression_complete_word_point): ... this.
9034 (advance_to_filename_complete_word_point): New.
9035 * completer.h (advance_to_filename_complete_word_point): New
9036 declaration.
9037
7d8062de
PA
90382019-06-13 Pedro Alves <palves@redhat.com>
9039
9040 * compile/compile.c: Include "cli/cli-option.h".
9041 (compile_print_value): Scope data pointer is now a
9042 value_print_options pointer; adjust.
9043 (compile_print_command): Process options. Scope data pointer is
9044 now a value_print_options pointer; adjust.
9045 (_initialize_compile): Update "compile print"'s help to include
9046 supported options. Install a completer for "compile print".
9047 * cp-valprint.c (show_vtblprint, show_objectprint)
9048 (show_static_field_print): Delete.
9049 (_initialize_cp_valprint): Don't install "set print
9050 static-members", "set print vtbl", "set print object" here.
9051 * printcmd.c: Include "cli/cli-option.h" and
9052 "common/gdb_optional.h".
9053 (print_command_parse_format): Rework to fill in a
9054 value_print_options instead of a format_data.
9055 (print_value): Change parameter type from format_data pointer to
9056 value_print_options reference. Adjust.
9057 (print_command_1): Process options. Adjust to pass down a
9058 value_print_options.
9059 (print_command_completer): New.
9060 (_initialize_printcmd): Install print_command_completer as
9061 handle_brkchars completer for the "print" command. Update
9062 "print"'s help to include supported options.
9063 * valprint.c: Include "cli/cli-option.h".
9064 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9065 here from cp-valprint.c.
9066 (boolean_option_def, uinteger_option_def)
9067 (value_print_option_defs, make_value_print_options_def_group):
9068 New. Use gdb::option::add_setshow_cmds_for_options to install
9069 "set print elements", "set print null-stop", "set print repeats",
9070 "set print pretty", "set print union", "set print array", "set
9071 print address", "set print symbol", "set print array-indexes".
9072 * valprint.h: Include <string> and "cli/cli-option.h".
9073 (make_value_print_options_def_group): Declare.
9074 (print_value): Change parameter type from format_data pointer to
9075 value_print_options reference.
9076 (print_command_completer): Declare.
9077
9d0faba9
PA
90782019-06-13 Pedro Alves <palves@redhat.com>
9079
9080 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9081 (COMMON_SFILES): Add maint-test-settings.c.
9082 * cli/cli-decode.c (boolean_enums): New global, factored out from
9083 ...
9084 (add_setshow_boolean_cmd): ... here.
9085 * cli/cli-decode.h (boolean_enums): Declare.
9086 * cli/cli-option.c: New file.
9087 * cli/cli-option.h: New file.
9088 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9089 factored out from ...
9090 (parse_cli_boolean_value(const char *)): ... this.
9091 (is_unlimited_literal): Change parameter type to pointer to
9092 pointer. Adjust and advance ARG pointer.
9093 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9094 (parse_cli_var_enum): New, factored out from ...
9095 (do_set_command): ... this. Adjust.
9096 * cli/cli-setshow.h (parse_cli_boolean_value)
9097 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9098 (parse_cli_var_enum): Declare.
9099 * cli/cli-utils.c: Include "cli/cli-option.h".
9100 (get_ulongest): New.
9101 * cli/cli-utils.h (get_ulongest): Declare.
9102 (check_for_argument): New overloads.
9103 * maint-test-options.c: New file.
9104
2c722807
PA
91052019-06-13 Pedro Alves <palves@redhat.com>
9106
9107 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9108 parse a range if "-" is at the end of the string.
9109
dee7b4c8
PA
91102019-06-13 Pedro Alves <palves@redhat.com>
9111
9112 * cli/cli-setshow.c (parse_auto_binary_operation)
9113 (parse_cli_boolean_value): Don't allow "o".
9114
dca0f6c0
PA
91152019-06-13 Pedro Alves <palves@redhat.com>
9116
9117 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9118 * NEWS: Mention maint test-settings KIND.
9119 * maint-test-settings.c: New file.
9120
597bf39d
PA
91212019-06-13 Pedro Alves <palves@redhat.com>
9122
9123 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9124 completer.
9125 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9126 "set" completers.
9127
48c410fb
PA
91282019-06-13 Pedro Alves <palves@redhat.com>
9129
9130 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9131 after item.
9132
93bcb043
PA
91332019-06-13 Pedro Alves <palves@redhat.com>
9134
9135 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9136
cbba3ecd
PA
91372019-06-13 Pedro Alves <palves@redhat.com>
9138
9139 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9140 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9141 call.
9142 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9143 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9144 calls.
9145 (check_for_argument): Skip spaces after argument.
9146
b9a3f842
PA
91472019-06-13 Pedro Alves <palves@redhat.com>
9148
9149 * thread.c (thread_apply_command): Adjust TID parsing.
9150 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9151 detected before end of string.
9152 (tid_is_in_list): Error out if LIST is invalid.
9153
3844e605
PA
91542019-06-13 Pedro Alves <palves@redhat.com>
9155
9156 * completer.c (complete_line_internal_1): Rewind completion word
9157 point.
9158 (completion_tracker::advance_custom_word_point_by): Change
9159 parameter type to int.
9160 * completer.h (completion_tracker::advance_custom_word_point_by):
9161 Likewise.
9162
00b56dbe
PA
91632019-06-13 Pedro Alves <palves@redhat.com>
9164
9165 * completer.c (advance_to_completion_word): Handle delimiters.
9166
d106773e
PA
91672019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9168
9169 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9170
08f10e02
TT
91712019-06-11 Tom Tromey <tom@tromey.com>
9172
9173 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9174 (xmalloc_failed): Move to alloc.c.
9175 * alloc.c: New file.
9176 * Makefile.in (COMMON_SFILES): Add alloc.c.
9177
1c7fe951
TT
91782019-06-11 Tom Tromey <tom@tromey.com>
9179
9180 * nat/linux-waitpid.c: Don't include server.h.
9181 (linux_debug): Remove.
9182 (my_waitpid): Update.
9183
89549d7f
TT
91842019-06-11 Tom Tromey <tromey@adacore.com>
9185
9186 * infcall.c (_initialize_infcall): Remove trailing newline from
9187 help.
9188 * user-regs.c (_initialize_user_regs): Remove trailing newline
9189 from help.
9190 * typeprint.c (_initialize_typeprint): Remove trailing newline
9191 from help.
9192 * reverse.c (_initialize_reverse): Remove trailing newlines from
9193 help.
9194 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9195 from help.
9196 * language.c (add_set_language_command): Remove trailing newline
9197 from help.
9198 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9199 help.
9200 * disasm.c (_initialize_disasm): Remove trailing newline from
9201 help.
9202 * top.c (init_main): Remove trailing newline from help.
9203 * interps.c (_initialize_interpreter): Remove trailing newline
9204 from help.
9205 * btrace.c (_initialize_btrace): Remove trailing newlines from
9206 help.
9207 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9208 from help.
9209 * python/python.c (_initialize_python): Remove trailing newline
9210 from help.
9211 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9212 help.
9213 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9214 from help. Reformat some text.
9215 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9216 from help.
9217 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9218 newline from help.
9219
86108c13
TT
92202019-06-11 Tom Tromey <tromey@adacore.com>
9221
9222 * darwin-nat.c (darwin_decode_exception_message)
9223 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9224
a7067863
AB
92252019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9226
9227 * valops.c (value_slice): Check for not allocated or not
9228 associated values.
9229
9ab08412
TV
92302019-06-10 Tom de Vries <tdevries@suse.de>
9231
9232 PR gdb/24618
9233 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9234 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9235 invalid.
9236
f19e22e9
TV
92372019-06-10 Tom de Vries <tdevries@suse.de>
9238
9239 PR gdb/24611
9240 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9241 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9242
e99f9db0
TV
92432019-06-10 Tom de Vries <tdevries@suse.de>
9244
9245 PR symtab/24545
9246 * symtab.c (struct demangled_name_entry): Add language field.
9247 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9248 static minimal symbol". Set and use language field.
9249
9bf7038b
TT
92502019-06-10 Tom Tromey <tromey@adacore.com>
9251
9252 * ada-lang.c (_initialize_ada_language): Update help text.
9253
422186a9
TT
92542019-06-10 Tom Tromey <tromey@adacore.com>
9255
9256 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9257 with a newline.
9258 * guile/guile.c (handle_boot_error): Don't end warning with a
9259 newline.
9260 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9261 warning with a newline.
9262 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9263 newline.
9264 (s12z_frame_cache): Likewise.
9265 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9266 a newline.
9267 * solib-svr4.c (disable_probes_interface): Don't end warning with
9268 a newline.
9269 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9270 newline.
9271 * python/python.c (do_finish_initialization): Don't end warning
9272 with a newline.
9273
25ce02ee
TT
92742019-06-10 Tom Tromey <tom@tromey.com>
9275
9276 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9277 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9278 gdbpy_enter.
9279
caa429d8
TT
92802019-06-10 Tom Tromey <tromey@adacore.com>
9281
9282 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9283 data.
9284 (elf_new_init): Don't call stabsread_new_init.
9285 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9286 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9287 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9288
81873cc8
TV
92892019-06-10 Tom de Vries <tdevries@suse.de>
9290
9291 PR symtab/16264
9292 PR symtab/24517
9293 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9294
4fa0265e
РИ
92952019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9296
9297 * source.c (find_and_open_source): Also rewrite relative file
9298 names.
9299
1a3da2cd
AB
93002019-04-26 Amos Bird <amosbird@gmail.com>
9301
9302 * annotate.c (annotate_thread_exited): Add "thread-exited"
9303 annotation.
9304
3847a7bf
TT
93052019-06-06 Tom Tromey <tromey@adacore.com>
9306
9307 * maint.h (class scoped_command_stats): Use
9308 DISABLE_COPY_AND_ASSIGN.
9309 <print_time>: New method.
9310 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9311 print_time.
9312 (scoped_command_stats::print_time): New method.
9313
312617a3
AB
93142019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9315
9316 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9317 instructions of lengths 6 or 8 bytes.
9318
b02f78f9
PA
93192019-06-04 Pedro Alves <palves@redhat.com>
9320
9321 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9322
9323 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9324 * breakpoint.c (condition_completer): Likewise.
9325 * cli/cli-dump.c (scan_expression): Likewise.
9326 * common/filestuff.c (mkdir_recursive): Likewise.
9327 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9328 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9329 (gdb_abspath): Likewise.
9330 * compile/compile-cplus-types.c
9331 (compile_cplus_instance::decl_name): Likewise.
9332 * completer.c (complete_explicit_location):
9333 (signal_completer, reg_or_group_completer_1): Likewise.
9334 * cp-support.c (cp_remove_params_if_any): Likewise.
9335 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9336 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9337 * infcmd.c (strip_bg_char): Likewise.
9338 * linespec.c (copy_token_string): Likewise.
9339 * mi/mi-main.c (output_cores): Likewise.
9340 * psymtab.c (psymtab_search_name):
9341 * symfile.c (test_set_ext_lang_command): Likewise.
9342 * target.c (target_fileio_read_stralloc): Likewise.
9343 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9344 * value.c (complete_internalvar): Likewise.
9345
e1f2e1a2
CB
93462019-06-04 Christian Biesinger <cbiesinger@google.com>
9347
9348 Add objfile property to gdb.Type.
d3238f7d
PA
9349 * NEWS: Mention Python API addition.
9350 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9351
e664d728
PW
93522019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9353
9354 * NEWS: Mention the new set|show style [title|highlight].
9355 Mention changes to "show style", "help" and "apropos".
9356
66d8c862
PW
93572019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9358
9359 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9360 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9361 instead of print_help_for_command.
9362 (print_doc_of_command): New function.
9363 (help_list): Add 'apropos -v word' suggestion.
9364 (print_help_for_command): Style the command name using title style.
9365 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9366 (_initialize_cli_cmds): Describe -v in apropos_command help.
9367
9303eb2f
PW
93682019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9369
9370 * cli/cli-style.h (cli_style_option): Add name in constructor,
9371 add m_name class member, add constructor with intensity,
9372 add name class function.
9373 (cli_style_option::add_setshow_commands): Remove name argument.
9374 (highlight_style, title_style): New styles.
9375 * cli/cli-style.c (do_show): New function that shows a style
9376 characteristic styling the style name with itself.
9377 (set_style_name): New function.
9378 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9379 Update all callers according to the changes in cli/cli-style.h.
9380 * utils.h (fputs_highlighted): New function.
9381 * utils.c (fputs_highlighted): Likewise.
9382
e2c52041
PW
93832019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9384
9385 * NEWS: Mention new pipe command and new convenience variables.
9386
947d3946
PW
93872019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9388
9389 * cli/cli-cmds.c (pipe_command): New function.
9390 (_initialize_cli_cmds): Call add_com for pipe_command.
9391 Define | as an alias for pipe.
9392 (exit_status_set_internal_vars): New function.
9393 (shell_escape): Call exit_status_set_internal_vars.
9394 cli/cli-decode.c (find_command_name_length): Recognize | as
9395 a single character command.
9396
b8fd0918
PW
93972019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9398
9399 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9400 top.c (execute_command_to_ui_file): New function, mostly a copy
9401 of execute_command_to_string.
9402 (execute_command_to_string): Implement by calling
9403 execute_command_to_ui_file.
9404
68bb5386
PW
94052019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9406
9407 * top.h (saved_command_line): Remove declaration.
9408 * top.c (previous_saved_command_line, previous_repeat_arguments):
9409 New variables.
9410 (saved_command_line): Make static, define together with other
9411 'repeat variables'.
9412 (dont_repeat): Clear repeat_arguments.
9413 (repeat_previous, get_saved_command_line, save_command_line):
9414 New functions.
9415 (gdb_init): Initialize saved_command_line
9416 and previous_saved_command_line.
9417 * main.c (captured_main_1): Remove saved_command_line initialization.
9418 * event-top.c (handle_line_of_input): Update to use
9419 the new 'repeat' related functions instead of direct access to
9420 saved_command_line.
9421 * command.h (repeat_previous, get_saved_command_line,
9422 save_command_line): New declarations.
9423 (dont_repeat): Add comment.
9424
bfcdb852
TT
94252019-05-30 Tom Tromey <tromey@adacore.com>
9426
9427 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9428 Fix comment.
9429 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9430
0ef209f2
JV
94312019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9432
9433 PR cli/24587
9434 * completer.c (complete): Initialize variable word.
9435
955b06fa
SDJ
94362019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9437
9438 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9439 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9440 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9441 'body' is NULL to the outter 'if', protecting the '!is_define'
9442 situation as well.
9443
fa9c3fa0
TT
94442019-05-29 Tom Tromey <tromey@adacore.com>
9445
9446 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9447 (dwarf_unknown): New function.
9448 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9449 (dwarf_type_encoding_name): Use dwarf_unknown.
9450
4330d61d
TT
94512019-05-29 Tom Tromey <tromey@adacore.com>
9452
9453 PR c++/20020:
9454 * cp-valprint.c (cp_print_value_fields): Call
9455 cp_print_static_field inside "try".
9456
33a6bc35
TT
94572019-05-29 Tom Tromey <tromey@adacore.com>
9458
9459 * inflow.c (struct terminal_info): Add default operator=.
9460 * configure: Rebuild.
9461 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9462 -Wdeprecated-copy-dtor, -Wredundant-move.
9463
000439d5
TT
94642019-05-29 Tom Tromey <tromey@adacore.com>
9465
9466 * NEWS: Add entry.
9467 * infcmd.c (print_return_value_1): Handle finish_print
9468 option.
9469 (show_print_finish): New function.
9470 (_initialize_infcmd): Add "set/show print finish" commands.
9471 * valprint.c (user_print_options): Initialize new member.
9472 * valprint.h (struct value_print_options) <finish_print>: New
9473 member.
9474
c0e70c62
TT
94752019-05-28 Tom Tromey <tromey@adacore.com>
9476
9477 * ada-lang.c (ada_remove_Xbn_suffix)
9478 (find_old_style_renaming_symbol)
9479 (parse_old_style_renaming): Remove.
9480 (ada_find_renaming_symbol): Don't call
9481 find_old_style_renaming_symbol.
9482 (ada_is_renaming_symbol): Rename from
9483 ada_find_renaming_symbol. Remove "block" parameter. Return
9484 bool. Now static.
9485 (ada_read_var_value): Update and simplify.
9486 * ada-exp.y (write_var_or_type): Remove old code.
9487
766f8836
AH
94882019-05-28 Alan Hayward <alan.hayward@arm.com>
9489
68255adc 9490 PR gdb/25010
766f8836
AH
9491 * event-top.c: Remove include comment.
9492 * inflow.c (class scoped_ignore_sigttou): Move from here...
9493 * inflow.h (class scoped_ignore_sigttou): ...to here.
9494 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9495 * top.c: Remove include comment.
9496
eb41253a
TT
94972019-05-27 Tom Tromey <tom@tromey.com>
9498
9499 * NEWS: Fix typo.
9500
4ca51187
TT
95012019-05-22 Tom Tromey <tromey@adacore.com>
9502
9503 * target.c (target_follow_exec): Constify parameter.
9504 * target-delegates.c: Rebuild.
9505 * remote.c (remote_target::follow_exec): Constify parameter.
9506 * infrun.c (follow_exec): Constify parameter.
9507 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9508 (target_follow_exec): Likewise.
9509
8fca4da0
AH
95102019-05-22 Alan Hayward <alan.hayward@arm.com>
9511
9512 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9513 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9514
b7060614
AH
95152019-05-22 Alan Hayward <alan.hayward@arm.com>
9516
9517 * NEWS: Add debugredirect and testsuite sections.
9518
0a5954bd
SC
95192019-05-22 Simon Cook <simon.cook@embecosm.com>
9520
9521 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9522 target descriptions using exclusively floating point register name
9523 aliases.
9524
dc42e902
AB
95252019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9526
9527 PR gdb/18644:
9528 * f-lang.c (build_fortran_types): Handle the case where
9529 gdbarch_floatformat_for_type returns a nullptr.
9530
fb7806c7
TV
95312019-05-21 Tom de Vries <tdevries@suse.de>
9532
9533 PR cli/24587
9534 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9535
34d11c68
AB
95362019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9537
9538 PR gdb/18644:
9539 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9540 16-byte floats.
9541 * i386-tdep.c (i386_floatformat_for_type): Use
9542 floatformats_ia64_quad for the 16-byte floating point component
9543 within a fortran 32-byte complex number.
9544
122cf0f2
AB
95452019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9546
9547 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9548 delete default constructor.
9549 (find_partial_die): Update to return const struct.
9550 (partial_die_parent_scope): Move variable declaration into scope
9551 of its use and change its type to auto.
9552 (guess_partial_die_structure_name): Likewise.
9553 (partial_die_info::fixup): Likewise.
9554
33d0e35a
TT
95552019-05-17 Tom Tromey <tromey@adacore.com>
9556
9557 * source.c (find_and_open_source): Remove cast.
9558
a45575b0
TT
95592019-05-17 Tom Tromey <tromey@adacore.com>
9560
9561 * annotate.c (annotate_source): Make "filename" const.
9562 * annotate.h (annotate_source): Use const.
9563
81f47ac2
AH
95642019-05-17 Alan Hayward <alan.hayward@arm.com>
9565
9566 * disasm.c (set_disassembler_options): Send errors to stderr.
9567
ca1285d1
AH
95682019-05-17 Alan Hayward <alan.hayward@arm.com>
9569
9570 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9571 (cli_interp_base::set_logging): Check debug_redirect.
9572 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9573 * cli/cli-logging.c (debug_redirect): Add static variable.
9574 (pop_output_files): Add default param.
9575 (handle_redirections): Print debug setting.
9576 (show_logging_command): Likewise.
9577 (_initialize_cli_logging): Add debugredirect command.
9578 * interps.c (current_interp_set_logging): Add debug_redirect
9579 parameter.
9580 * interps.h (set_logging): Add debug_redirect parameter.
9581 (current_interp_set_logging): Likewise.
9582 * mi/mi-common.h: Likewise.
9583 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9584
95852019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9586 Tom Tromey <tromey@adacore.com>
9587
9588 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9589 directly.
9590 * cli/cli-interp.h (make_logging_output): Remove declaration.
9591 * cli/cli-logging.c (make_logging_output): Remove function.
9592 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9593 directly.
9594 * ui-file.c (tee_file::tee_file): Remove bools.
9595 (tee_file::~tee_file): Remove deletes.
9596 * ui-file.h (tee_file): Remove bools.
9597
26648588
JV
95982019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9599
9600 * mi/mi-cmds.h (mi_cmd_complete): New function.
9601 * mi/mi-main.c (mi_cmd_complete): Likewise.
9602 * mi/mi-cmds.c: Define new MI command -complete.
9603 * NEWS: Mention new -complete command.
9604
6e035501
JV
96052019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9606
9607 * completer.h (complete): New function.
9608 * completer.c (complete): Likewise.
9609 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9610 function defined in completer.h.
9611
7d0e2ece
JV
96122019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9613
e79be6e5 9614 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9615
fb816e8b
TV
96162019-05-17 Tom de Vries <tdevries@suse.de>
9617
9618 PR gdb/24094
9619 * dwarf2read.c (struct cu_partial_die_info): New struct.
9620 (find_partial_die): Return cu_partial_die_info.
9621 (partial_die_parent_scope, guess_partial_die_structure_name)
9622 (partial_die_info::fixup): Handle new return type of find_partial_die.
9623
677052f2
SDJ
96242019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9625
a1726c38 9626 PR breakpoints/24541
677052f2
SDJ
9627 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9628 "std::string", simplifying the algorithm.
9629
f3da9116
SDJ
96302019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9631
9632 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9633 (stap_static_probe_ops::get_probes): Likewise.
9634
f1bb75ab
SDJ
96352019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9636
9637 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9638 '-')" and "else if".
9639 (stap_parse_single_operand): Join checks for
9640 "gdbarch_stap_parse_special_token_p" and
9641 "gdbarch_stap_parse_special_token" in the same "if" statement.
9642 Invert check when verifying for operation on register
9643 displacement.
9644
3ca58cde
SDJ
96452019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9646
9647 * stap-probe.c (stap_get_opcode): Update comment.
9648 (stap_get_expected_argument_type): Likewise.
9649 (handle_stap_probe): Likewise.
9650
af2d9bee
SDJ
96512019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9652
9653 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9654 return type to 'bool'. Adjust comment. Use 'bool' when
9655 appropriate.
9656 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9657 * stap-probe.c (stap_parse_argument_1): Likewise.
9658 (stap_is_operator): Likewise.
9659 (stap_is_generic_prefix): Likewise.
9660 (stap_is_register_prefix): Likewise.
9661 (stap_is_register_indirection_prefix): Likewise.
9662 (stap_is_integer_prefix): Likewise.
9663 (stap_generic_check_suffix): Likewise.
9664 (stap_check_integer_suffix): Likewise.
9665 (stap_check_register_suffix): Likewise.
9666 (stap_check_register_indirection_suffix): Likewise.
9667 (stap_parse_register_operand): Likewise.
9668 (stap_parse_single_operand): Likewise.
9669 (stap_parse_argument_1): Likewise.
9670 (stap_probe::get_argument_count): Likewise.
9671 (stap_is_operator): Likewise.
9672
61c9c421
TT
96732019-05-16 Tom Tromey <tromey@adacore.com>
9674
9675 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9676 keyword to foreach.
9677
9ddc1af1
SM
96782019-05-15 Simon Marchi <simon.marchi@efficios.com>
9679
9680 * linux-thread-db.c (try_thread_db_load_1): Change return type
9681 to bool.
9682 (try_thread_db_load): Likewise.
9683 (try_thread_db_load_from_pdir_1): Likewise.
9684 (try_thread_db_load_from_pdir): Likewise.
9685 (try_thread_db_load_from_sdir): Likewise.
9686 (try_thread_db_load_from_dir): Likewise.
9687 (thread_db_load_search): Likewise.
9688 (has_libpthread): Likewise.
9689 (thread_db_load): Likewise.
9690
7bede828
SDJ
96912019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9692
9693 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9694 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9695 NULL, and complain/return if that's the case.
9696
c5358db4
JD
96972019-05-15 John Darrington <john@darrington.wattle.id.au>
9698
9699 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9700 (advance, posn, abstract_read_memory): New functions.
9701 [struct mem_read_abstraction]: New struct.
9702 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9703
c408a94f
TT
97042019-05-14 Tom Tromey <tromey@adacore.com>
9705
9706 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9707 value is not lval_memory.
9708
e7bd7fba
TT
97092019-05-14 Tom Tromey <tromey@adacore.com>
9710
9711 * solib.c (info_sharedlibrary_command): Style the file name.
9712
a6d0f249
AH
97132019-05-14 Alan Hayward <alan.hayward@arm.com>
9714
9715 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9716 (aarch64_vnv_type): Likewise.
9717 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9718 * common/tdesc.c: Likewise.
9719 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9720 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9721 * features/aarch64-fpu.xml: Add ieee half view.
9722 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9723 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9724 * gdbtypes.h (struct builtin_type): Likewise.
9725 (struct objfile_type): Likewise.
9726
66b8bb74
SM
97272019-05-12 Paul Naert <paul.naert@polymtl.ca>
9728
9729 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9730 typo.
9731 * location.h (string_to_event_location): Likewise.
9732
21c219fd
JB
97332019-05-11 Joel Brobecker <brobecker@adacore.com>
9734
9735 GDB 8.3 released.
9736
13674803
SM
97372019-05-10 Simon Marchi <simon.marchi@efficios.com>
9738
9739 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9740 New variable declaration.
9741 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9742 New variable.
9743 (print_one_breakpoint): Use ui_out::test_flags and new global
9744 variable to compute use_fixed_output.
9745 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9746 Remove.
9747 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9748 (mi_multi_location_breakpoint_output_fixed): Remove.
9749 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9750 new variable.
9751 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9752 fix_multi_location_breakpoint_output flag if version >= 3.
9753 * ui-out.h (enum ui_out_flag)
9754 <fix_multi_location_breakpoint_output>: New enumerator.
9755
a9eac7f9
SM
97562019-05-10 Simon Marchi <simon.marchi@efficios.com>
9757
9758 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9759
71bed2db
TT
97602019-05-10 Tom Tromey <tromey@adacore.com>
9761
9762 * ada-lang.c (catch_ada_completer): New function.
9763 (_initialize_ada_language): Use it.
9764
24c54127
TT
97652019-05-10 Tom Tromey <tromey@adacore.com>
9766
9767 * thread.c (print_thread_info): Make "requested_threads" const.
9768 * gdbthread.h (print_thread_info): Make "requested_threads"
9769 const.
9770 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9771 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9772
7a102139
TT
97732019-05-08 Tom Tromey <tom@tromey.com>
9774
9775 * gdbtypes.c (objfile_type_data): Change type.
9776 (objfile_type, _initialize_gdbtypes): Update.
9777
924d79e2
TT
97782019-05-08 Tom Tromey <tom@tromey.com>
9779
9780 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9781 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9782 (_initialize_dwarf2_frame): Update.
9783
4c58e337
TT
97842019-05-08 Tom Tromey <tom@tromey.com>
9785
9786 * objc-lang.c (objc_objfile_data): Change type.
9787 (find_methods): Update.
9788 (_initialize_objc_lang): Remove.
9789
d772d2ab
TT
97902019-05-08 Tom Tromey <tom@tromey.com>
9791
9792 * stabsread.c (rs6000_builtin_type_data): Change type.
9793 (rs6000_builtin_type, _initialize_stabsread): Update.
9794
d11d83f4
TT
97952019-05-08 Tom Tromey <tom@tromey.com>
9796
9797 * mips-tdep.c (mips_pdr_data): Remove.
9798 (_initialize_mips_tdep): Update.
9799
9a73f0ad
TT
98002019-05-08 Tom Tromey <tom@tromey.com>
9801
9802 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9803 (hppa_init_objfile_priv_data, read_unwind_info)
9804 (find_unwind_entry, _initialize_hppa_tdep): Update.
9805
8127a2fa
TT
98062019-05-08 Tom Tromey <tom@tromey.com>
9807
9808 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9809 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9810 on obstack.
9811 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9812
91d3055d
TT
98132019-05-08 Tom Tromey <tom@tromey.com>
9814
9815 * mdebugread.c (basic_type_data): Change type.
9816 (basic_type, _initialize_mdebugread): Update.
9817
31930bd3
TT
98182019-05-08 Tom Tromey <tom@tromey.com>
9819
9820 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9821
bdb3ed9e
TT
98222019-05-08 Tom Tromey <tom@tromey.com>
9823
9824 * nto-tdep.c (nto_inferior_data_reg): Change type.
9825 (nto_inferior_data): Update.
9826 (nto_inferior_data_cleanup, nto_new_inferior_data)
9827 (_initialize_nto_tdep): Remove.
9828 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9829
f37b313d
TT
98302019-05-08 Tom Tromey <tom@tromey.com>
9831
9832 * ada-lang.c (struct ada_inferior_data): Add initializers.
9833 (ada_inferior_data): Change type.
9834 (ada_inferior_data_cleanup): Remove.
9835 (get_ada_inferior_data, ada_inferior_exit)
9836 (struct ada_pspace_data): Add initializers, destructor.
9837 (ada_pspace_data_handle): Change type.
9838 (get_ada_pspace_data): Update.
9839 (ada_pspace_data_cleanup): Remove.
9840
24699405
TT
98412019-05-08 Tom Tromey <tom@tromey.com>
9842
9843 * coffread.c (struct coff_symfile_info): Add initializers.
9844 (coff_objfile_data_key): Move lower. Change type.
9845 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9846 Update.
9847 (coff_free_info): Remove.
9848
d4e05d2f
TT
98492019-05-08 Tom Tromey <tom@tromey.com>
9850
9851 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9852 (fbsd_pspace_data_handle): Move lower. Change type.
9853 (get_fbsd_pspace_data): Update.
9854 (fbsd_pspace_data_cleanup): Remove.
9855 (_initialize_fbsd_tdep): Update.
9856
14ef6690
TT
98572019-05-08 Tom Tromey <tom@tromey.com>
9858
9859 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9860 (get_ada_tasks_pspace_data): Update.
9861 (ada_tasks_pspace_data_cleanup): Remove.
9862 (_initialize_tasks): Update.
9863 (ada_tasks_inferior_data_handle): Change type.
9864 (get_ada_tasks_inferior_data): Update.
9865 (ada_tasks_inferior_data_cleanup): Remove.
9866 (struct ada_tasks_pspace_data): Add initializers.
9867
814cf43a
TT
98682019-05-08 Tom Tromey <tom@tromey.com>
9869
9870 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9871 * symfile-debug.c (debug_sym_get_probes): Change type.
9872 * stap-probe.c (handle_stap_probe):
9873 (stap_static_probe_ops::get_probes): Change type.
9874 * probe.h (class static_probe_ops) <get_probes>: Change type.
9875 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9876 (parse_probes_in_pspace): Update.
9877 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9878 Update.
9879 (any_static_probe_ops::get_probes): Change type.
9880 * elfread.c (elfread_data): New typedef.
9881 (probe_key): Change type.
9882 (elf_get_probes): Likewise. Update.
9883 (probe_key_free): Remove.
9884 (_initialize_elfread): Update.
9885 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9886 Change type.
9887 (dtrace_process_dof_probe, dtrace_process_dof)
9888 (dtrace_static_probe_ops::get_probe): Change type.
9889
02dc647e
TT
98902019-05-08 Tom Tromey <tom@tromey.com>
9891
9892 * xcoffread.c (struct xcoff_symfile_info): Rename from
9893 coff_symfile_info. Add initializers.
9894 (xcoff_objfile_data_key): Move lower. Change type.
9895 (XCOFF_DATA): Rewrite.
9896 (xcoff_free_info): Remove.
9897 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9898 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9899 (xcoff_initial_scan): Update.
9900
09232438
TT
99012019-05-08 Tom Tromey <tom@tromey.com>
9902
9903 * solib-svr4.c (struct svr4_info): Add initializers and
9904 destructor.
9905 <probes_table>: Now an htab_up.
9906 (solib_svr4_pspace_data): Change type.
9907 (free_probes_table): Simplify.
9908 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9909 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9910 (probes_table_remove_objfile_probes, register_solib_event_probe)
9911 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9912 (_initialize_svr4_solib): Update.
9913
7b4a314f
TT
99142019-05-08 Tom Tromey <tom@tromey.com>
9915
9916 * remote.c (remote_pspace_data): Change type.
9917 (remote_pspace_data_cleanup): Remove.
9918 (get_remote_exec_file, set_pspace_remote_exec_file)
9919 (_initialize_remote): Update.
9920
51d3063a
TT
99212019-05-08 Tom Tromey <tom@tromey.com>
9922
9923 * breakpoint.c (breakpoint_objfile_key): Change type.
9924 (get_breakpoint_objfile_data): Update.
9925 (free_breakpoint_objfile_data): Remove.
9926 (_initialize_breakpoint): Update.
9927
89fb8848
TT
99282019-05-08 Tom Tromey <tom@tromey.com>
9929
9930 * linux-tdep.c (struct linux_info): Add initializers.
9931 (linux_inferior_data): Move. Change type.
9932 (invalidate_linux_cache_inf): Update.
9933 (linux_inferior_data_cleanup): Remove.
9934 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9935
e9b89e2d
TT
99362019-05-08 Tom Tromey <tom@tromey.com>
9937
9938 * auxv.c (auxv_inferior_data): Move. Change type.
9939 (auxv_inferior_data_cleanup): Remove.
9940 (invalidate_auxv_cache_inf): Rewrite.
9941 (get_auxv_inferior_data, _initialize_auxv): Update.
9942
8c42777c
TT
99432019-05-08 Tom Tromey <tom@tromey.com>
9944
9945 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9946 (symfile_debug_objfile_data_key): Change type.
9947 (symfile_debug_installed, debug_qf_has_symbols)
9948 (debug_qf_find_last_source_symtab)
9949 (debug_qf_forget_cached_source_info)
9950 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9951 (debug_qf_print_stats, debug_qf_dump)
9952 (debug_qf_expand_symtabs_for_function)
9953 (debug_qf_expand_all_symtabs)
9954 (debug_qf_expand_symtabs_with_fullname)
9955 (debug_qf_map_matching_symbols)
9956 (debug_qf_expand_symtabs_matching)
9957 (debug_qf_find_pc_sect_compunit_symtab)
9958 (debug_qf_map_symbol_filenames)
9959 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9960 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9961 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9962 (debug_sym_read_linetable, debug_sym_relocate): Update.
9963 (symfile_debug_free_objfile): Remove.
9964 (install_symfile_debug_logging, _initialize_symfile_debug):
9965 Update.
9966
5bfd760d
TT
99672019-05-08 Tom Tromey <tom@tromey.com>
9968
9969 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9970 allocate_on_obstack.
9971 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9972 (get_dwarf2_per_objfile): Update.
9973 (set_dwarf2_per_objfile): Remove.
9974 (dwarf2_has_info, dwarf2_get_section_info): Update.
9975 (dwarf2_free_objfile): Remove.
9976 (_initialize_dwarf2_read): Update.
9977
e85e19b4
TT
99782019-05-08 Tom Tromey <tom@tromey.com>
9979
9980 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9981 initializers.
9982 <unsupported_script_warning_printed,
9983 script_not_found_warning_printed>: Now bool.
9984 (auto_load_pspace_data): Change type.
9985 (~auto_load_pspace_info): Rename from
9986 auto_load_pspace_data_cleanup.
9987 (get_auto_load_pspace_data, init_loaded_scripts_info)
9988 (clear_section_scripts, maybe_print_unsupported_script_warning)
9989 (maybe_print_script_not_found_warning, _initialize_auto_load):
9990 Update.
9991
f6aa7436
TT
99922019-05-08 Tom Tromey <tom@tromey.com>
9993
9994 * objfiles.c (objfile_pspace_info): Add destructor and
9995 initializers.
9996 (objfiles_pspace_data): Change type.
9997 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9998 (get_objfile_pspace_data): Update.
9999 (objfiles_bfd_data): Change type.
10000 (get_objfile_bfd_data): Update.
10001 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10002
6ae614f6
TT
100032019-05-08 Tom Tromey <tom@tromey.com>
10004
10005 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10006 Change type.
10007 (get_catch_syscall_inferior_data): Update.
10008 (catch_syscall_inferior_data_cleanup): Remove.
10009 (_initialize_break_catch_syscall): Update.
10010
6509b8eb
TT
100112019-05-08 Tom Tromey <tom@tromey.com>
10012
10013 * inflow.c (struct terminal_info): Add destructor and
10014 initializers.
10015 (inflow_inferior_data): Change type.
10016 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10017 (get_inflow_inferior_data, inflow_inferior_exit)
10018 (swap_terminal_info, _initialize_inflow): Update.
10019
35632941
TT
100202019-05-08 Tom Tromey <tom@tromey.com>
10021
10022 * target-dcache.c (target_dcache_cleanup): Remove.
10023 (target_dcache_aspace_key): Change type.
10024 (target_dcache_init_p, target_dcache_invalidate)
10025 (target_dcache_get, target_dcache_get_or_init)
10026 (_initialize_target_dcache): Update.
10027 * dcache.h (struct dcache_deleter): New.
10028
3017b94d
TT
100292019-05-08 Tom Tromey <tom@tromey.com>
10030
10031 * symtab.c (struct symbol_cache): Add destructor and
10032 initializers.
10033 (symbol_cache_key): Move. Change type.
10034 (make_symbol_cache, free_symbol_cache): Remove.
10035 (get_symbol_cache): Update.
10036 (symbol_cache_cleanup): Remove.
10037 (ALL_PSPACES, symbol_cache_flush)
10038 (maintenance_print_symbol_cache)
10039 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10040 Update.
10041
a32ad8c5
TT
100422019-05-08 Tom Tromey <tom@tromey.com>
10043
10044 * symtab.c (struct main_info): Add destructor and initializers.
10045 (main_progspace_key): Move. Change type.
10046 (get_main_info): Update.
10047 (main_info_cleanup): Remove.
10048 (_initialize_symtab): Update.
10049
5f6e90a0
TT
100502019-05-08 Tom Tromey <tom@tromey.com>
10051
10052 * registry.h (DECLARE_REGISTRY): Define the _key class.
10053
1bd0c6e4
AB
100542019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10055
10056 * NEWS: Merge two 'New commands' sections.
10057
2228ef77
XR
100582019-05-08 Joel Brobecker <brobecker@adacore.com>
10059
10060 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10061 parameter and use Ada language definition instead.
10062 (ada_val_print_ptr): Remove unused language parameter.
10063 (ada_val_print_num): Remove language parameter and use Ada language
10064 definition instead.
10065 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10066 parameter.
10067 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10068 parameter and use Ada language definition instead.
10069 (ada_val_print_1): Update all ada_val_print_xxx calls.
10070 Remove language parameter.
10071 (ada_val_print): Update ada_val_print_1 call.
10072
60fcc1c3
TT
100732019-05-08 Tom Tromey <tromey@adacore.com>
10074
10075 * remote.c (remote_hw_watchpoint_limit)
10076 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10077 Now static.
10078
ed2b7c17
TT
100792019-05-08 Tom Tromey <tromey@adacore.com>
10080
10081 * maint.c (_initialize_maint_cmds): Move initialization code to
10082 remote.c.
10083 (watchdog, show_watchdog): Move to remote.c.
10084 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10085 "watchdog" static.
10086 (_initialize_remote): Move initialization code from maint.c.
10087 * defs.h (watchdog): Don't declare.
10088
b0be6c91
TT
100892019-05-08 Tom Tromey <tromey@adacore.com>
10090
10091 * tui/tui-interp.c: Include main.h.
10092 * interps.c: Include main.h.
10093 * main.h (interpreter_p): Declare.
10094 * defs.h (interpreter_p): Don't declare.
10095
587ee17b
TT
100962019-05-08 Tom Tromey <tromey@adacore.com>
10097
10098 * dwarf2loc.c: Include dwarf2read.h.
10099 * defs.h (read_unsigned_leb128): Don't declare.
10100 * dwarf2read.h (read_unsigned_leb128): Declare.
10101
ca1df239
TT
101022019-05-08 Tom Tromey <tromey@adacore.com>
10103
10104 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10105 method.
10106
99f20f08
TT
101072019-05-08 Tom Tromey <tromey@adacore.com>
10108
10109 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10110 when no wrap column is set.
10111
80e55b13
TT
101122019-05-08 Tom Tromey <tromey@adacore.com>
10113
10114 * c-lang.c (c_get_string): Handle non-C-style arrays.
10115
9d3421af
TT
101162019-05-08 Tom Tromey <tromey@adacore.com>
10117
10118 * typeprint.c (print_offset_data::update): Print the bit offset,
10119 not the number of bits remaining.
10120
844333e2
TT
101212019-05-08 Tom Tromey <tromey@adacore.com>
10122
10123 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10124 padding at end of comment.
10125
988915ee
TT
101262019-05-08 Tom Tromey <tromey@adacore.com>
10127
10128 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10129 Compare main types.
10130
26bfd823
TT
101312019-05-06 Tom Tromey <tom@tromey.com>
10132
10133 * common/scoped_mmap.c: Include common-defs.h.
10134 * common/scoped_mmap.h: Don't include config.h.
10135
89055eaa
TT
101362019-05-04 Tom Tromey <tom@tromey.com>
10137
10138 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10139 (struct aarch64_call_info): Add initializers.
10140 <si>: Now a std::vector.
10141 (pass_on_stack, aarch64_push_dummy_call): Update.
10142
5da01df5
TT
101432019-05-04 Simon Marchi <simon.marchi@efficios.com>
10144 Tom Tromey <tom@tromey.com>
10145
10146 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10147 (ppc_threads): Now a std::vector. Now static.
10148 (hwdebug_find_thread_points_by_tid)
10149 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10150 Update.
10151
fbdf05a1
TT
101522019-05-04 Tom Tromey <tom@tromey.com>
10153
10154 * arc-tdep.c (arc_tdesc_init): Return bool.
10155
06d16ec9
TT
101562019-05-04 Tom Tromey <tom@tromey.com>
10157
10158 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10159 Use gdb_assert_not_reached.
10160
9c056022
TT
101612019-05-04 Tom Tromey <tom@tromey.com>
10162
10163 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10164 "false".
10165
fa9c2a59
TT
101662019-05-04 Tom Tromey <tom@tromey.com>
10167
10168 * arc-tdep.c (arc_tdesc_init): Use bool.
10169
e2eb806a
TT
101702019-05-04 Tom Tromey <tom@tromey.com>
10171
10172 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10173
6fe87677
TT
101742019-05-04 Tom Tromey <tom@tromey.com>
10175
10176 * cli/cli-cmds.c (valid_command_p): Return bool.
10177
7f008c9e
TT
101782019-05-04 Tom Tromey <tom@tromey.com>
10179
10180 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10181 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10182
b6484282
RT
101832019-05-04 Raul Tambre <raul@tambre.ee>
10184
10185 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10186 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10187 operator for comparison.
10188
af97b416
TT
101892019-05-04 Tom Tromey <tom@tromey.com>
10190
10191 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10192 (lookup_partial_symbol, print_partial_symbols)
10193 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10194 (psymbol_compare): Update.
10195 (add_psymbol_to_bcache): Clear the entire psymbol.
10196 (maintenance_check_psymtabs): Update.
10197 * psympriv.h (struct partial_symbol): Don't derive from
10198 general_symbol_info.
10199 <obj_section, unrelocated_address, address,
10200 set_unrelocated_address>: Update.
10201 <ginfo>: New member.
10202 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10203 (debug_names::write_psymbols): Update.
10204
9d6d4be8
TV
102052019-05-04 Tom de Vries <tdevries@suse.de>
10206
10207 * contrib/cc-with-tweaks.sh: Support -n arg.
10208
66452beb
PW
102092019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10210
10211 * corelow.c (core_target::detach): Ensure frame cache and
10212 register caches are cleared.
10213 inferior.c (exit_inferior_1): Likewise.
10214
bde09ab7
TT
102152019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10216 Tom Tromey <tom@tromey.com>
10217
10218 * dictionary.c (collate_pending_symbols_by_language): Remove
10219 "struct" from foreach.
10220 * symtab.c (lookup_global_symbol_from_objfile)
10221 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10222 foreach.
10223 * ser-tcp.c (net_open): Remove "struct" from foreach.
10224 * objfiles.c (objfile_relocate, objfile_rebase)
10225 (objfile_has_symbols): Remove "struct" from foreach.
10226 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10227 from foreach.
10228 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10229 foreach.
10230 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10231 "struct" from foreach.
10232 * ada-lang.c (create_excep_cond_exprs)
10233 (ada_exception_catchpoint_cond_string): Remove "struct" from
10234 foreach.
10235
222a8d25
TT
102362019-05-03 Tom Tromey <tromey@adacore.com>
10237
10238 * ada-exp.y (convert_char_literal): Check suffix of each
10239 enumerator.
10240
fcd60b84
DP
102412019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10242
10243 PR ada/21406:
10244 * ada-exp.y (yywrap): Don't define.
10245 * ada-lex.l (%option): Add noyywrap
10246 (yywrap): Remove.
10247
5f2459c2
EZ
102482019-05-03 Eli Zaretskii <eliz@gnu.org>
10249
353ea2d1
EZ
10250 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10251 _WIN32_WINNT to the XP level, unless already defined to a higher
10252 level.
10253
10254 * unittests/parse-connection-spec-selftests.c:
10255 * ser-tcp.c:
10256 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10257 override.
10258
5f2459c2
EZ
10259 * symfile.c (find_separate_debug_file): Remove colon from the
10260 drive spec of DOS/Windows file names of the target, so that the
10261 file name produced from DEBUGDIR and the target's directory will
10262 be valid on DOS/Windows systems.
10263
80062eb9
AB
102642019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10265
10266 * rust-lang.c (val_print_struct): Handle printing structures
10267 containing strings.
10268
b8c05e85
TT
102692019-05-02 Tom Tromey <tromey@adacore.com>
10270
10271 * valarith.c (_initialize_valarith): Remove.
10272
4504bbde
TT
102732019-05-01 Tom Tromey <tromey@adacore.com>
10274
10275 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10276 bitfields.
10277
d48e62f4
TT
102782019-05-01 Tom Tromey <tromey@adacore.com>
10279
10280 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10281 for big-endian copies.
10282
15f18d14
AT
102832019-04-30 Ali Tamur <tamur@google.com>
10284 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10285 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10286 (read_3_bytes): New function.
10287
ab4ee614
JB
102882019-04-30 Joel Brobecker <brobecker@adacore.com>
10289
10290 * windows-nat.c (main_thread_id): Delete.
10291 (handle_output_debug_string): Replace main_thread_id by
10292 current_event.dwThreadId.
10293 (fake_create_process): Likewise.
10294 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10295 Do not set main_thread_id.
10296 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10297 current_event.dwThreadId.
10298 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10299
8ed5b76e
JB
103002019-04-30 Joel Brobecker <brobecker@adacore.com>
10301
10302 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10303 Use current_event.dwThreadId instead of main_thread_id.
10304
2ff0a947
TT
103052019-04-30 Tom Tromey <tromey@adacore.com>
10306
10307 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10308 (create_excep_cond_exprs): Iterate over program spaces.
10309 (ada_exception_catchpoint_cond_string): Examine all minimal
10310 symbols for exception types.
10311
a776957c
TT
103122019-04-30 Tom Tromey <tromey@adacore.com>
10313
10314 PR c++/24470:
10315 * dwarf2read.c (process_structure_scope): Handle case where type
10316 has template parameters but no symbol was created.
10317
bc68014d
AB
103182019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10319 Chris January <chris.january@arm.com>
10320
10321 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10322 qualifier.
10323 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10324
f1fdc960
AB
103252019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10326
10327 * f-typeprint.c (f_print_type): Update rules for printing
10328 whitespace.
10329 (f_type_print_varspec_suffix): Likewise.
10330
bf7a4de1
AB
103312019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10332 Chris January <chris.january@arm.com>
10333
10334 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10335 function arguments.
10336
bbe75b9d
AB
103372019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10338
10339 * f-lang.c (build_fortran_types): Change name of void type to
10340 lower case.
10341 * f-typeprint.c (f_type_print_base): Print the name of the void
10342 type, rather than a fixed string.
10343 * f-valprint.c (f_decorations): Use lower case void string.
10344
1db455a7
AB
103452019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10346 Chris January <chris.january@arm.com>
10347
10348 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10349 types for Fortran.
10350
b6d03bb2
AB
103512019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10352 Chris January <chris.january@arm.com>
10353 David Lecomber <david.lecomber@arm.com>
10354
10355 * f-exp.y (BINOP_INTRINSIC): New token.
10356 (exp): New parser rule handling BINOP_INTRINSIC.
10357 (f77_keywords): Add new builtin procedures.
10358 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10359 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10360 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10361 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10362 (print_unop_subexp_f): New function.
10363 (print_binop_subexp_f): New function.
10364 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10365 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10366 (dump_subexp_body_f): Likewise.
10367 (operator_check_f): Likewise.
10368 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10369 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10370
83228e93
AB
103712019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10372
10373 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10374 UNOP_KIND.
10375 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10376 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10377 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10378 (operator_length_f): New fuction.
10379 (print_subexp_f): New function.
10380 (op_name_f): New function.
10381 (dump_subexp_body_f): New function.
10382 (operator_check_f): New function.
10383 (exp_descriptor_f): Replace standard expression handling functions
10384 with new functions.
10385 * gdb/fortran-operator.def: New file.
10386 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10387 * gdb/std-operator.def: Remove UNOP_KIND.
10388
6fdcd7cc
AB
103892019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10390
10391 * std-operator.def: Remove unbalanced, stray double quote
10392 character.
10393
2e62ab40
AB
103942019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10395 Chris January <chris.january@arm.com>
10396 Daniel Everett <daniel.everett@arm.com>
10397 Nick Forrington <nick.forrington@arm.com>
10398 Richard Bunt <richard.bunt@arm.com>
10399
10400 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10401 of depth when printing anonymous structs or unions.
10402 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10403 Don't print either the top-level value, or the children if the
10404 max-depth is exceeded.
10405 (ppscm_print_children): When printing the key of a map, allow one
10406 extra level of depth.
10407 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10408 print either the top-level value, or the children if the max-depth
10409 is exceeded.
10410 (print_children): When printing the key of a map, allow one extra
10411 level of depth.
10412 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10413 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10414 (user_print_options): Initialise max_depth field.
10415 (val_print_scalar_or_string_type_p): New function.
10416 (val_print): Check to see if the max depth has been reached.
10417 (val_print_check_max_depth): Define new function.
10418 (show_print_max_depth): New function.
10419 (_initialize_valprint): Add 'print max-depth' option.
10420 * valprint.h (struct value_print_options) <max_depth>: New field.
10421 (val_print_check_max_depth): Declare new function.
10422 * NEWS: Document new feature.
10423
4be290b2
AB
104242019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10425
10426 * ada-lang.c (ada_language_defn): Initialise new field.
10427 * c-lang.c (c_is_string_type_p): New function.
10428 (c_language_defn): Initialise new field.
10429 (cplus_language_defn): Initialise new field.
10430 (asm_language_defn): Initialise new field.
10431 (minimal_language_defn): Initialise new field.
10432 * c-lang.h (c_is_string_type_p): Declare new function.
10433 * d-lang.c (d_language_defn): Initialise new field.
10434 * f-lang.c (f_is_string_type_p): New function.
10435 (f_language_defn): Initialise new field.
10436 * go-lang.c (go_is_string_type_p): New function.
10437 (go_language_defn): Initialise new field.
10438 * language.c (default_is_string_type_p): New function.
10439 (unknown_language_defn): Initialise new field.
10440 (auto_language_defn): Initialise new field.
10441 * language.h (struct language_defn) <la_is_string_type_p>: New
10442 member variable.
10443 (default_is_string_type_p): Declare new function.
10444 * m2-lang.c (m2_language_defn): Initialise new field.
10445 * objc-lang.c (objc_language_defn): Initialise new field.
10446 * opencl-lang.c (opencl_language_defn): Initialise new field.
10447 * p-lang.c (pascal_is_string_type_p): New function.
10448 (pascal_language_defn): Initialise new field.
10449 * rust-lang.c (rust_is_string_type_p): New function.
10450 (rust_language_defn): Initialise new field.
10451
721b08c6
AB
104522019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10453
10454 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10455 New field.
10456 * ada-lang.c (ada_language_defn): Initialise new field.
10457 * c-lang.c (c_language_defn): Likewise.
10458 (cplus_language_defn): Likewise.
10459 (asm_language_defn): Likewise.
10460 (minimal_language_defn): Likewise.
10461 * d-lang.c (d_language_defn): Likewise.
10462 * f-lang.c (f_language_defn): Likewise.
10463 * go-lang.c (go_language_defn): Likewise.
10464 * language.c (unknown_language_defn): Likewise.
10465 (auto_language_defn): Likewise.
10466 * m2-lang.c (m2_language_defn): Likewise.
10467 * objc-lang.c (objc_language_defn): Likewise.
10468 * opencl-lang.c (opencl_language_defn): Likewise.
10469 * p-lang.c (pascal_language_defn): Likewise.
10470 * rust-lang.c (rust_language_defn): Likewise.
10471
fc913e53
AB
104722019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10473
10474 * ada-lang.c (ada_is_character_type): Change return type to bool.
10475 (ada_is_string_type): Likewise.
10476 * ada-lang.h (ada_is_character_type): Update declaration
10477 (ada_is_string_type): Likewise.
10478
fa731fa0
PW
104792019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10480
10481 Support style in 'frame|thread apply'
10482
10483 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10484 * record.c (record_start, record_stop): Update callers of
10485 execute_command_to_string with false.
10486 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10487 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10488 methods.
10489 (class string_file): New constructor with term_out parameter.
10490 Override methods term_out and can_emit_style_escape. New member
10491 term_out.
10492 (class stdio_file): Override can_emit_style_escape.
10493 (class tee_file): Override term_out and can_emit_style_escape.
10494 * utils.h (can_emit_style_escape): Remove.
10495 * utils.c (can_emit_style_escape): Likewise.
10496 Update all callers of can_emit_style_escape (SOMESTREAM) to
10497 SOMESTREAM->can_emit_style_escape.
10498 * source-cache.c (source_cache::get_source_lines): Likewise.
10499 * stack.c (frame_apply_command_count): Call execute_command_to_string
10500 passing the term_out characteristic of the current gdb_stdout.
10501 * thread.c (thr_try_catch_cmd): Likewise.
10502 * top.c (execute_command_to_string): pass term_out parameter
10503 to construct the string_file for the command output.
10504 * ui-file.c (term_cli_styling): New function (most code moved
10505 from utils.c can_emit_style_escape).
10506 (string_file::string_file, string_file::can_emit_style_escape,
10507 stdio_file::can_emit_style_escape, tee_file::term_out,
10508 tee_file::can_emit_style_escape): New functions.
10509
136afab8
PW
105102019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10511
10512 * NEWS: Mention the new set|show may-call-functions.
10513 * infcall.c (may_call_functions_p): New variable.
10514 (show_may_call_functions_p): New function.
10515 (call_function_by_hand_dummy): Throws an error if not
10516 may-call-functions.
10517 (_initialize_infcall): Call add_setshow_boolean_cmd for
10518 may-call-functions.
10519
725cbb63
KS
105202019-04-25 Keith Seitz <keiths@redhat.com>
10521
10522 PR c++/24367
10523 * cp-support.c (inspect_type): Don't attempt substitutions
10524 of symbol with the same name.
10525
3d1cbb78
TT
105262019-04-25 Tom Tromey <tromey@adacore.com>
10527
10528 PR gdb/24475:
10529 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10530 static.
10531
94aeb44b
TT
105322019-04-25 Tom Tromey <tromey@adacore.com>
10533
10534 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10535 rvalue reference.
10536 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10537 (gdb_xml_parser::parse): Use std::move.
10538 * python/python-internal.h (gdbpy_convert_exception): Take a const
10539 reference.
10540 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10541 std::move.
10542 * python/py-utils.c (gdbpy_convert_exception): Take a const
10543 reference.
10544 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10545 Use std::move.
10546 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10547 Use std::move.
10548 * mi/mi-main.c (mi_print_exception): Take a const reference.
10549 * main.c (handle_command_errors): Take a const reference.
10550 * linespec.c (parse_linespec): Use std::move.
10551 * infcall.c (run_inferior_call): Use std::move.
10552 (call_function_by_hand_dummy): Use std::move.
10553 * exec.c (try_open_exec_file): Use std::move.
10554 * exceptions.h (exception_print, exception_fprintf)
10555 (exception_print_same): Update.
10556 * exceptions.c (print_exception, exception_print)
10557 (exception_fprintf, exception_print_same): Change parameters to
10558 const reference.
10559 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10560 * common/new-op.c: Use std::move.
10561 * common/common-exceptions.h (struct gdb_exception): Add move
10562 constructor.
10563 (struct gdb_exception_error, struct gdb_exception_quit, struct
10564 gdb_quit_bad_alloc): Change constructor to move constructor.
10565 (throw_exception): Change parameter to rvalue reference.
10566 * common/common-exceptions.c (throw_exception): Take rvalue
10567 reference.
10568 * cli/cli-interp.c (safe_execute_command): Use std::move.
10569 * breakpoint.c (insert_bp_location, location_to_sals): Use
10570 std::move.
10571
680d7fd5
TT
105722019-04-25 Tom Tromey <tromey@adacore.com>
10573
10574 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10575 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10576 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10577 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10578 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10579 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10580 guile/scm-value.c: Use unpack.
10581 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10582 gdbscm_gdb_exception.
10583 (gdbscm_throw_gdb_exception): Likewise.
10584 (struct gdbscm_gdb_exception): New.
10585 (unpack): New function.
10586 (gdbscm_wrap): Use unpack.
10587
c6fdd8b2
TT
105882019-04-25 Tom Tromey <tromey@adacore.com>
10589
10590 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10591 (gdb_rl_callback_handler): Use std::move.
10592 * common/common-exceptions.h (struct gdb_exception): Add move
10593 assignment operator.
10594 (throw_exception_sjlj): Change "exception" to const reference.
10595 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10596 (throw_exception_sjlj): Change "exception" to const reference.
10597
cc06b668
TT
105982019-04-25 Tom Tromey <tromey@adacore.com>
10599
10600 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10601 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10602 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10603 Update.
10604 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10605 Update.
10606 * mi/mi-interp.c (mi_interp::exec): Update.
10607 * linespec.c (parse_linespec): Update.
10608 * infcall.c (run_inferior_call): Update.
10609 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10610 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10611 (gdbscm_lookup_global_symbol): Update.
10612 * guile/scm-param.c (gdbscm_parameter_value): Update.
10613 * guile/scm-frame.c (gdbscm_frame_read_register)
10614 (gdbscm_frame_read_var): Update.
10615 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10616 * exec.c (try_open_exec_file): Update.
10617 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10618 (gdb_rl_callback_handler): Update.
10619 * common/common-exceptions.h (exception_none): Don't declare.
10620 * common/common-exceptions.c (exception_none): Don't define.
10621 (struct catcher) <exception>: Update.
10622 * cli/cli-interp.c (safe_execute_command): Update.
10623 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10624
cf532bd1
AT
106252019-04-25 Ali Tamur <tamur@google.com>
10626
10627 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10628 (read_attribute_value): Likewise.
10629 (dwarf2_read_addr_index): Update comment.
10630 (read_str_index): Add DW_FORM_strx.
10631 (dwarf2_string_attr): Likewise.
10632 (dwarf2_const_value_attr): Likewise.
10633 (dump_die_shallow): Likewise.
10634 (dwarf2_fetch_constant_bytes): Likewise.
10635 (skip_form_bytes): Likewise.
10636 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10637
82433e3e
SDJ
106382019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10639
10640 PR corefiles/11608
10641 PR corefiles/18187
10642 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10643 OFFSET. Verify if current mapping contains an ELF header.
10644 (linux_find_memory_regions_full): Adjust call to
10645 dump_mapping_p.
10646
723adb65
SL
106472019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10648 Kang Li <kanglictf@gmail.com>
10649
10650 PR gdb/21600
10651
10652 * dwarf2-frame.c (read_initial_length): Be consistent about using
10653 unsigned representation of length.
10654 (decode_frame_entry_1): Likewise. Check for wraparound of
10655 end pointer as well as buffer overflow.
10656
596179f7
SDJ
106572019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10658
10659 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10660 "vq".
10661
a59240a4
TT
106622019-04-24 Tom Tromey <tromey@adacore.com>
10663
10664 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10665
f872fdbb
AB
106662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10667
10668 * s12z-tdep.c (s12z_unwind_pc): Delete.
10669 (s12z_unwind_sp): Delete.
10670 (s12z_gdbarch_init): Don't register deleted functions with
10671 gdbarch.
10672
b614e6f3
AB
106732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10674
10675 * rl78-tdep.c (rl78_unwind_sp): Delete.
10676 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10677
14faed38
AB
106782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10679
10680 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10681 (xstormy16_unwind_pc): Delete.
10682 (xstormy16_dummy_id): Delete.
10683 (xstormy16_gdbarch_init): Don't register deleted functions with
10684 gdbarch.
10685
541aad8a
AB
106862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10687
10688 * vax-tdep.c (vax_unwind_pc): Delete.
10689 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10690
29222070
AB
106912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10692
10693 * v850-tdep.c (v850_unwind_sp): Delete.
10694 (v850_unwind_pc): Delete.
10695 (v850_dummy_id): Delete.
10696 (v850_gdbarch_init): Don't register deleted functions with
10697 gdbarch.
10698
0f534d76
AB
106992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10700
10701 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10702 (tilegx_unwind_pc): Delete.
10703 (tilegx_unwind_dummy_id): Delete.
10704 (tilegx_gdbarch_init): Don't register deleted functions with
10705 gdbarch.
10706
1ba7b7f9
AB
107072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10708
10709 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10710 (tic6x_dummy_id): Delete.
10711 (tic6x_gdbarch_init): Don't register deleted functions with
10712 gdbarch.
10713
d31f262c
AB
107142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10715
10716 * sparc-tdep.c (sparc_unwind_pc): Delete.
10717 (sparc32_gdbarch_init): Don't register deleted function with
10718 gdbarch.
10719
6d14d64d
AB
107202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10721
10722 * sh-tdep.c (sh_unwind_sp): Delete.
10723 (sh_unwind_pc): Delete.
10724 (sh_dummy_id): Delete.
10725 (sh_gdbarch_init): Don't register deleted functions with
10726 gdbarch.
10727
a40dde9d
AB
107282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10729
10730 * score-tdep.c (score_unwind_sp): Delete.
10731 (score_unwind_pc): Delete.
10732 (score_dummy_id): Delete.
10733 (score_gdbarch_init): Don't register deleted functions with
10734 gdbarch.
10735
47c47d69
AB
107362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10737
10738 * rx-tdep.c (rx_unwind_pc): Delete.
10739 (rx_unwind_sp): Delete.
10740 (rx_dummy_id): Delete.
10741 (rx_gdbarch_init): Don't register deleted functions with
10742 gdbarch. Update comment.
10743
833a4480
AB
107442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10745
10746 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10747 (rs6000_dummy_id): Delete.
10748 (rs6000_gdbarch_init): Don't register deleted functions with
10749 gdbarch.
10750
3f2cef49
AB
107512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10752
10753 * or1k-tdep.c (or1k_dummy_id): Delete.
10754 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10755
96acf884
AB
107562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10757
10758 * nios2-tdep.c (nios2_dummy_id): Delete.
10759 (nios2_unwind_sp): Delete.
10760 (nios2_gdbarch_init): Don't register deleted functions with
10761 gdbarch.
10762
ca0ab0aa
AB
107632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10764
10765 * nds32-tdep.c (nds32_dummy_id): Delete.
10766 (nds32_unwind_pc): Delete.
10767 (nds32_unwind_sp): Delete.
10768 (nds32_gdbarch_init): Don't register deleted functions with
10769 gdbarch.
10770
c8259044
AB
107712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10772
10773 * msp430-tdep.c (msp430_unwind_pc): Delete.
10774 (msp430_unwind_sp): Delete.
10775 (msp430_dummy_id): Delete.
10776 (msp430_gdbarch_init): Don't register deleted functions with
10777 gdbarch.
10778
27f113c8
AB
107792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10780
10781 * moxie-tdep.c (moxie_unwind_sp): Delete.
10782 (moxie_unwind_pc): Delete.
10783 (moxie_dummy_id): Delete.
10784 (moxie_gdbarch_init): Don't register deleted functions with
10785 gdbarch.
10786
aee6c3cd
AB
107872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10788
10789 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10790 (mn10300_unwind_pc): Delete.
10791 (mn10300_unwind_sp): Delete.
10792 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10793 mn10300_unwind_sp.
10794 (mn10300_frame_unwind_init): Don't register deleted functions with
10795 gdbarch.
10796
8e2b5aea
AB
107972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10798
10799 * mep-tdep.c (mep_unwind_pc): Delete.
10800 (mep_unwind_sp): Delete.
10801 (mep_dummy_id): Delete.
10802 (mep_gdbarch_init): Don't register deleted functions with
10803 gdbarch.
10804
43cf3ede
AB
108052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10806
10807 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10808 (m68hc11_unwind_sp): Delete.
10809 (m68hc11_gdbarch_init): Don't register deleted functions with
10810 gdbarch.
10811
5e79b7bb
AB
108122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10813
10814 * m32r-tdep.c (m32r_unwind_sp): Delete.
10815 (m32r_unwind_pc): Delete.
10816 (m32r_dummy_id): Delete.
10817 (m32r_gdbarch_init): Don't register deleted functions with
10818 gdbarch.
10819
89b268d8
AB
108202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10821
10822 * m32c-tdep.c (m32c_unwind_pc): Delete.
10823 (m32c_unwind_sp): Delete.
10824 (m32c_dummy_id): Delete.
10825 (m32c_gdbarch_init): Don't register deleted functions with
10826 gdbarch.
10827
946c28d2
AB
108282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10829
10830 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10831 (lm32_unwind_pc): Delete.
10832 (lm32_dummy_id): Delete.
10833 (lm32_gdbarch_init): Don't register deleted functions with
10834 gdbarch.
10835
bf12844a
AB
108362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10837
10838 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10839 (iq2000_unwind_pc): Delete.
10840 (iq2000_dummy_id): Delete.
10841 (iq2000_gdbarch_init): Don't register deleted functions with
10842 gdbarch.
10843
ecbc06d2
AB
108442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10845
10846 * nds32-tdep.c (nds32_type_align): Delete.
10847 (nds32_push_dummy_call): Use type_align instead.
10848
030197b4
AB
108492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10850
10851 * arm-tdep.c (arm_type_align): Only handle vector override case.
10852 (arm_push_dummy_call): Use type_align.
10853 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10854
b907456c
AB
108552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10856
10857 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10858 case.
10859 (pass_on_stack): Use type_align.
10860 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10861 function.
10862
9e97ba43
TT
108632019-04-23 Tom Tromey <tromey@adacore.com>
10864
10865 * dwarf2read.c (line_header::file_name_at): Remove unused
10866 overload.
10867
6892f601
TV
108682019-04-23 Tom de Vries <tdevries@suse.de>
10869
10870 PR gdb/24438
10871 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10872 invocation.
10873
336d760d
AT
10874
108752019-03-27 Ali Tamur <tamur@google.com>
10876
10877 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10878 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10879 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10880 (dwarf_expr_context::get_addr_index): Likewise
10881 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10882 (symbol_needs_eval_context::get_addr_index): Likewise
10883 (disassemble_dwarf_expression): Add DW_OP_addrx
10884 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10885 (read_cutu_die_from_dwo): Update comment
10886 (skip_one_die): Add DW_FORM_addrx
10887 (read_attribute_value): Likewise
10888 (var_decode_location): Add DW_OP_addrx
10889 (dwarf2_const_value_attr): Add DW_FORM_addrx
10890 (dump_die_shallow): Likewise
10891 (dwarf2_fetch_constant_bytes): Likewise
10892 (decode_locdesc): Add DW_OP_addrx
10893 (skip_form_bytes): Add DW_FORM_addrx
10894
ad9d13f8
AT
108952019-04-22 Ali Tamur <tamur@google.com>
10896
10897 * MAINTAINERS (Write After Approval): Add self.
10898
d70cc3ba
SM
108992019-04-22 Simon Marchi <simon.marchi@efficios.com>
10900
10901 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10902 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10903 (open_symbol_file_object): Likewise.
10904 (svr4_default_sos): Add info parameter.
10905 (svr4_read_so_list): Likewise.
10906 (svr4_current_sos_direct): Adjust functions calls to pass down
10907 info.
10908 (svr4_current_sos_1): Add info parameter.
10909 (svr4_current_sos): Call get_svr4_info, pass info down to
10910 svr4_current_sos_1.
10911 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10912 get_svr4_info.
10913 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10914 get_svr4_info.
10915 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10916 to get_svr4_info.
10917 (probes_table_remove_objfile_probes): Likewise.
10918 (register_solib_event_probe): Add info parameter.
10919 (solist_update_incremental): Pass info parameter down to
10920 svr4_read_so_list.
10921 (disable_probes_interface): Add info parameter.
10922 (svr4_handle_solib_event): Pass current_program_space to
10923 get_svr4_info. Adjust disable_probes_interface cleanup.
10924 (svr4_create_probe_breakpoints): Add info parameter, pass it
10925 down to register_solib_event_probe.
10926 (svr4_create_solib_event_breakpoints): Add info parameter,
10927 pass it down to svr4_create_probe_breakpoints.
10928 (enable_break): Pass info down to
10929 svr4_create_solib_event_breakpoints.
10930 (svr4_solib_create_inferior_hook): Pass current_program_space to
10931 get_svr4_info.
10932 (svr4_clear_solib): Likewise.
10933
7905fc35
PA
109342019-04-22 Pedro Alves <palves@redhat.com>
10935
10936 * solib-svr4.c (svr4_free_objfile_observer): New.
10937 (probe_and_action::objfile): New field.
10938 (probes_table_htab_remove_objfile_probes)
10939 (probes_table_remove_objfile_probes): New functions.
10940 (register_solib_event_probe): Add 'objfile' parameter. Store it
10941 in the new probe_and_action. Don't store the probe in 'lookup'.
10942 (svr4_create_probe_breakpoints): Pass objfile to
10943 register_solib_event_probe.
10944 (_initialize_svr4_solib): Register a free_objfile observer.
10945
fb881986
TT
109462019-04-19 Tom Tromey <tom@tromey.com>
10947
10948 * common/queue.h: Remove.
10949
8732db6c
TT
109502019-04-19 Tom Tromey <tom@tromey.com>
10951
10952 * event-loop.c: Don't include "common/queue.h".
10953
97dfbadd
TT
109542019-04-19 Tom Tromey <tom@tromey.com>
10955
10956 * remote.c (remote_target): Use delete.
10957 * remote-notif.h: Include <list>, not "common/queue.h".
10958 (notif_client_p): Remove typedef.
10959 (remote_notif_state): Add constructor, destructor, initializer.
10960 <notif_queue>: Now a std::list.
10961 (remote_notif_state_xfree): Don't declare.
10962 * remote-notif.c (remote_notif_process, handle_notification)
10963 (remote_notif_state_allocate): Update.
10964 (~remote_notif_state): Rename from remote_notif_state_xfree.
10965
cf250e36
TT
109662019-04-19 Tom Tromey <tom@tromey.com>
10967
10968 * symfile.c (reread_symbols): Update.
10969 * objfiles.c (objfile_register_static_link)
10970 (objfile_lookup_static_link): Update
10971 (~objfile) Don't delete static_links.
10972 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10973
61f4b350
TT
109742019-04-19 Tom Tromey <tom@tromey.com>
10975
10976 * type-stack.h (struct type_stack) <insert>: Constify string.
10977 * type-stack.c (type_stack::insert): Constify string.
10978 * gdbtypes.h (lookup_template_type): Update.
10979 (address_space_name_to_int): Update.
10980 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10981 const.
10982 (lookup_template_type): Make name const.
10983 * c-exp.y: Update rules.
10984 (lex_one_token, classify_name, classify_inner_name)
10985 (c_print_token): Update.
10986 * p-exp.y: Update rules.
10987 (yylex): Update.
10988 * f-exp.y: Update rules.
10989 (yylex): Update.
10990 * d-exp.y: Update rules.
10991 (lex_one_token, classify_name, classify_inner_name): Update.
10992 * parse.c (write_dollar_variable, copy_name): Return std::string.
10993 * parser-defs.h (copy_name): Change return type.
10994 * m2-exp.y: Update rules.
10995 (yylex): Update.
10996 * go-exp.y (lex_one_token): Update.
10997 Update rules.
10998 (classify_unsafe_function, classify_packaged_name)
10999 (classify_name, yylex): Update.
11000
189b8c2e
ST
110012019-04-19 Sergei Trofimovich <siarheit@google.com>
11002
11003 * configure.ac: add --enable-source-highlight switch.
11004 * configure: Regenerate.
11005 * top.c (print_gdb_version): plumb --enable-source-highlight
11006 status to "show configuration".
11007
8ecb59f8
TT
110082019-04-19 Tom Tromey <tromey@adacore.com>
11009
11010 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11011 Check ADA_TYPE_P.
11012 (empty_record, ada_template_to_fixed_record_type_1)
11013 (template_to_static_fixed_type)
11014 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11015 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11016 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11017 macros.
11018
62160ec9
TT
110192019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11020
11021 PR symtab/24423:
11022 * source.c (print_source_lines_base): Advance "iter" when a
11023 control character is seen.
11024
f2ae8bc8
PW
110252019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11026
11027 * inferior.h (struct infcall_suspend_state_deleter):
11028 Catch exception in destructor to avoid crash.
11029
d563b953
PW
110302019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11031
11032 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11033 close to the add_com "shell".
11034
dc34c897
TT
110352019-04-18 Tom Tromey <tromey@adacore.com>
11036
11037 * process-stratum-target.h (class process_stratum_target)
11038 <stratum>: Add "final".
11039
a12e5744
TT
110402019-04-17 Tom Tromey <tromey@adacore.com>
11041
11042 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11043 against nullptr before use.
11044
a7e559cc
AH
110452019-04-17 Alan Hayward <alan.hayward@arm.com>
11046
11047 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11048
c01660c6
AB
110492019-04-17 Jim Wilson <jimw@sifive.com>
11050 Andrew Burgess <andrew.burgess@embecosm.com>
11051
11052 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11053 code read might fail, assume 4-byte breakpoint in that case.
11054
4aa866af
LS
110552019-04-15 Leszek Swirski <leszeks@google.com>
11056
11057 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11058 rather than a hand-rolled POD check when checking for forced MEMORY
11059 classification.
11060
48574d91
AH
110612019-04-15 Alan Hayward <alan.hayward@arm.com>
11062
11063 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11064 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11065 function.
11066 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11067 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11068 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11069 declaration.
11070
4da037ef
AH
110712019-04-15 Alan Hayward <alan.hayward@arm.com>
11072
11073 * aarch64-linux-nat.c
11074 (aarch64_linux_nat_target::thread_architecture): Add override.
11075 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11076 each VQ.
11077
ccb8d7e8
AH
110782019-04-15 Alan Hayward <alan.hayward@arm.com>
11079
11080 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11081
35add35e
AB
110822019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11083
11084 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11085 target types of size 96-bits, add some additional comments, and
11086 check that the builtin type we found was the correct size.
11087
51196bbc
EZ
110882019-04-12 Eli Zaretskii <eliz@gnu.org>
11089
11090 * utils.c (prompt_for_continue): Don't restore the styling at the
11091 end, as applied_style has the wrong value. This fixes styling in
11092 long lists of file names that are interrupted by the "Continue?"
11093 prompt.
11094
62253a61
AB
110952019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11096
11097 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11098 * c-lang.c (c_language_defn): Likewise.
11099 (cplus_language_defn): Likewise.
11100 (asm_language_defn): Likewise.
11101 (minimal_language_defn): Likewise.
11102 * d-lang.c (d_language_defn): Likewise.
11103 * f-lang.c (f_language_defn): Likewise.
11104 * go-lang.c (go_language_defn): Likewise.
11105 * language.c (unknown_language_defn): Likewise.
11106 (auto_language_defn): Likewise.
11107 * language.h (struct language_defn): Remove la_magic field.
11108 (LANG_MAGIC): Delete.
11109 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11110 * objc-lang.c (objc_language_defn): Likewise.
11111 * opencl-lang.c (opencl_language_defn): Likewise.
11112 * p-lang.c (pascal_language_defn): Likewise.
11113 * rust-lang.c (rust_language_defn): Likewise.
11114
a9158a86
AB
111152019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11116
11117 * riscv-tdep.c (riscv_type_align): New function.
11118 (riscv_type_alignment): Delete.
11119 (riscv_arg_location): Use 'type_align'.
11120 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11121
41077b66
AB
111222019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11123
11124 * gdbtypes.c (type_align): A struct with no non-static fields also
11125 has alignment of 1.
11126
9f0272f8
AB
111272019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11128
11129 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11130 component to 0.
11131 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11132 member.
11133 (riscv_struct_info::analyse): New implementation using new
11134 analyse_inner member function.
11135 (riscv_struct_info::field_offset): New member function.
11136 (riscv_struct_info::m_offsets): New member variable.
11137 (riscv_struct_info::analyse_inner): New private member function,
11138 takes the old implementation of riscv_struct_info::analyse but
11139 extended to track field offsets.
11140 (riscv_call_arg_struct): Update the struct folding special cases
11141 to handle cases where empty C++ structs, which are non-zero
11142 length, are found.
11143 (riscv_arg_location): Initialise the length of each location, a
11144 non-zero length now indicates the location is in use.
11145 (riscv_push_dummy_call): Allow for the first location having a
11146 non-zero offset when setting up arguments.
11147 (riscv_return_value): Likewise, but for return values.
11148
02cf60c7
TT
111492019-04-11 Tom Tromey <tromey@adacore.com>
11150
11151 * utils.c (internal_vproblem): Make "msg" const.
11152
68811f8f
AH
111532019-04-11 Alan Hayward <alan.hayward@arm.com>
11154
11155 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11156 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11157 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11158 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11159
3f52fdbc
KB
111602019-04-10 Kevin Buettner <kevinb@redhat.com>
11161
11162 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11163 function.
11164 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11165 of amd64_collect_native_gregset.
11166 (amd64_linux_nat_target::store_registers): Likewise.
11167
e9ad22ee
TT
111682019-04-10 Tom Tromey <tom@tromey.com>
11169
11170 * symtab.c (lookup_global_symbol_from_objfile)
11171 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11172 * objfiles.h (class separate_debug_iterator): New.
11173 (class separate_debug_range): New.
11174 (struct objfile) <separate_debug_objfiles>: New method.
11175 (objfile_separate_debug_iterate): Don't declare.
11176 * objfiles.c (separate_debug_iterator::operator++): Rename from
11177 objfile_separate_debug_iterate.
11178 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11179 iterator.
11180 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11181 iterator.
11182
ee371134
TT
111832019-04-10 Tom Tromey <tom@tromey.com>
11184
11185 * symfile.c (reread_symbols): Remove old comment.
11186 * objfiles.c (free_all_objfiles): Fix a typo.
11187
bf227d61
TT
111882019-04-10 Tom Tromey <tom@tromey.com>
11189
11190 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11191 * minsyms.c (lookup_minimal_symbol): Use foreach.
11192 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11193 (lookup_minimal_symbol_solib_trampoline): Likewise.
11194 * symfile.c (reread_symbols): Use foreach.
11195
8dc433a0
TT
111962019-04-09 Ivan Begert <ivanbegert@gmail.com>
11197 Tom Tromey <tromey@adacore.com>
11198
11199 PR rust/24414:
11200 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11201 (rust_lex_int_test): Change "value" to be LONGEST.
11202 (rust_lex_tests): Add test for long integer literal.
11203
9ab8741a
TT
112042019-04-09 Tom Tromey <tromey@adacore.com>
11205
11206 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11207 to bool.
11208 (extended_remote_target::attach): Update.
11209 (remote_target::remote_notice_new_inferior): Update.
11210 (remote_target::add_current_inferior_and_thread): Update.
11211 * inferior.c (exit_inferior_1): Use "false".
11212 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11213
e242fd12
SM
112142019-04-09 Simon Marchi <simon.marchi@efficios.com>
11215
9ca1957f 11216 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11217 the "start" command.
11218
2b0c8b01
KB
112192019-04-08 Kevin Buettner <kevinb@redhat.com>
11220
11221 * python/py-inferior.c (infpy_thread_from_thread_handle):
11222 Adjust comments to reflect renaming of thread_from_thread_handle
11223 to thread_from_handle. Adjust keywords. Fix type error message.
11224 (inferior_object_methods): Add thread_from_handle. Retain
11225 thread_from_thread_handle, but mark it as deprecated.
11226
50a82723
KB
112272019-04-08 Kevin Buettner <kevinb@redhat.com>
11228
11229 * gdbthread.h (find_thread_by_handle): Revise declaration.
11230 * thread.c (find_thread_by_handle): Likewise. Adjust
11231 implementation too.
11232 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11233 support for buffer objects as handles.
11234
cf63b016
KB
112352019-04-08 Kevin Buettner <kevinb@redhat.com>
11236
11237 * python/py-infthread.c (thpy_thread_handle): New function.
11238 (thread_object_methods): Register thpy_thread_handle.
11239
3d6c6204
KB
112402019-04-08 Kevin Buettner <kevinb@redhat.com>
11241
11242 * gdbthread.h (thread_to_thread_handle): Declare.
11243 * thread.c (gdbtypes.h): Include.
11244 (thread_to_thread_handle): New function.
11245
11246 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11247 (target_thread_info_to_thread_handle): Declare.
11248 * target.c (target_thread_info_to_thread_handle): New function.
11249 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11250 * target-delegates.c: Regenerate.
11251
11252 * linux-thread-db.c (class thread_db_target): Add method
11253 thread_info_to_thread_handle.
11254 (thread_db_target::thread_info_to_thread_handle): Define.
11255 * remote.c (class remote_target): Add new method
11256 thread_info_to_thread_handle.
11257 (remote_target::thread_info_to_thread_handle): Define.
11258
56be6ea8
PA
112592019-04-08 Pedro Alves <palves@redhat.com>
11260
11261 * common/common-exceptions.c (throw_exception): Don't create
11262 named object to throw; throw directly.
11263 (throw_it): Likewise. Don't initialize gdb_exception::message
11264 here, with new; pass FMT and AP to the ctor instead.
11265 * common/common-exceptions.h: Include <string>.
11266 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11267 const char *, va_list)): New ctor. Use std::make_shared.
11268 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11269 errors)): Delete.
11270 (gdb_exception_error::gdb_exception_error(enum errors, const char
11271 *, va_list)): New.
11272 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11273 Add assertion.
11274 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11275 errors)): Delete.
11276 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11277 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11278 Add assertion.
11279
eedc3f4f
TT
112802019-04-08 Tom Tromey <tom@tromey.com>
11281
11282 * valops.c (value_rtti_indirect_type): Replace throw_exception
11283 with throw.
11284 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11285 with throw.
11286 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11287 throw.
11288 * target.c (target_translate_tls_address): Replace throw_exception
11289 with throw.
11290 * stack.c (frame_apply_command_count): Replace throw_exception
11291 with throw.
11292 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11293 throw.
11294 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11295 with throw.
11296 * rs6000-tdep.c (rs6000_frame_cache)
11297 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11298 * remote.c: Replace throw_exception with throw.
11299 * record-full.c (record_full_message, record_full_wait_1)
11300 (record_full_restore): Replace throw_exception with throw.
11301 * record-btrace.c:
11302 (get_thread_current_frame_id, record_btrace_start_replaying)
11303 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11304 (cmd_record_btrace_start): Replace throw_exception with throw.
11305 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11306 throw.
11307 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11308 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11309 * linespec.c:
11310 (find_linespec_symbols): Replace throw_exception with throw.
11311 * infrun.c (displaced_step_prepare, resume): Replace
11312 throw_exception with throw.
11313 * infcmd.c (post_create_inferior): Replace throw_exception with
11314 throw.
11315 * inf-loop.c (inferior_event_handler): Replace throw_exception
11316 with throw.
11317 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11318 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11319 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11320 (get_prev_frame_always, get_frame_pc_if_available)
11321 (get_frame_address_in_block_if_available, get_frame_language):
11322 Replace throw_exception with throw.
11323 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11324 throw_exception with throw.
11325 * eval.c (fetch_subexp_value, evaluate_var_value)
11326 (evaluate_funcall, evaluate_subexp_standard): Replace
11327 throw_exception with throw.
11328 * dwarf2loc.c (call_site_find_chain)
11329 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11330 Replace throw_exception with throw.
11331 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11332 with throw.
11333 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11334 throw.
11335 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11336 * completer.c (complete_line_internal): Replace throw_exception
11337 with throw.
11338 * compile/compile-object-run.c (compile_object_run): Replace
11339 throw_exception with throw.
11340 * cli/cli-script.c (process_next_line): Replace throw_exception
11341 with throw.
11342 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11343 (btrace_enable, btrace_maint_update_pt_packets): Replace
11344 throw_exception with throw.
11345 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11346 throw_exception with throw.
11347 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11348 throw_exception with throw.
11349 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11350 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11351 * aarch64-tdep.c (aarch64_make_prologue_cache)
11352 (aarch64_make_stub_cache): Replace throw_exception with throw.
11353
26003a20
TT
113542019-04-08 Tom Tromey <tom@tromey.com>
11355
11356 * common/common-exceptions.c (throw_exception): Rename from
11357 throw_exception_cxx. Remove old copy. Make argument const.
11358 (throw_it): Create and throw exception objects directly.
11359 * common/common-exceptions.h (throw_exception): Make argument
11360 const.
11361 (struct gdb_exception_error): Add constructor.
11362 (struct gdb_exception_quit): Add constructor.
11363
d272eb37
TT
113642019-04-08 Tom Tromey <tom@tromey.com>
11365
11366 * common/common-exceptions.h (exception_rethrow): Don't declare.
11367 (TRY_SJLJ): Update comment.
11368 (TRY, CATCH, END_CATCH): Remove.
11369 * common/common-exceptions.c (exception_rethrow): Remove.
11370
230d2906
TT
113712019-04-08 Tom Tromey <tom@tromey.com>
11372
11373 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11374 Remove.
11375 (gdb_exception_error): Rename from
11376 gdb_exception_RETURN_MASK_ERROR.
11377 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11378 (gdb_quit_bad_alloc): Update.
11379 * aarch64-tdep.c: Update.
11380 * ada-lang.c: Update.
11381 * ada-typeprint.c: Update.
11382 * ada-valprint.c: Update.
11383 * amd64-tdep.c: Update.
11384 * arch-utils.c: Update.
11385 * break-catch-throw.c: Update.
11386 * breakpoint.c: Update.
11387 * btrace.c: Update.
11388 * c-varobj.c: Update.
11389 * cli/cli-cmds.c: Update.
11390 * cli/cli-interp.c: Update.
11391 * cli/cli-script.c: Update.
11392 * common/common-exceptions.c: Update.
11393 * common/new-op.c: Update.
11394 * common/selftest.c: Update.
11395 * compile/compile-c-symbols.c: Update.
11396 * compile/compile-cplus-symbols.c: Update.
11397 * compile/compile-object-load.c: Update.
11398 * compile/compile-object-run.c: Update.
11399 * completer.c: Update.
11400 * corelow.c: Update.
11401 * cp-abi.c: Update.
11402 * cp-support.c: Update.
11403 * cp-valprint.c: Update.
11404 * darwin-nat.c: Update.
11405 * disasm-selftests.c: Update.
11406 * dtrace-probe.c: Update.
11407 * dwarf-index-cache.c: Update.
11408 * dwarf-index-write.c: Update.
11409 * dwarf2-frame-tailcall.c: Update.
11410 * dwarf2-frame.c: Update.
11411 * dwarf2loc.c: Update.
11412 * dwarf2read.c: Update.
11413 * eval.c: Update.
11414 * event-loop.c: Update.
11415 * event-top.c: Update.
11416 * exec.c: Update.
11417 * f-valprint.c: Update.
11418 * fbsd-tdep.c: Update.
11419 * frame-unwind.c: Update.
11420 * frame.c: Update.
11421 * gdbtypes.c: Update.
11422 * gnu-v3-abi.c: Update.
11423 * guile/guile-internal.h: Update.
11424 * guile/scm-block.c: Update.
11425 * guile/scm-breakpoint.c: Update.
11426 * guile/scm-cmd.c: Update.
11427 * guile/scm-disasm.c: Update.
11428 * guile/scm-frame.c: Update.
11429 * guile/scm-lazy-string.c: Update.
11430 * guile/scm-math.c: Update.
11431 * guile/scm-param.c: Update.
11432 * guile/scm-ports.c: Update.
11433 * guile/scm-pretty-print.c: Update.
11434 * guile/scm-symbol.c: Update.
11435 * guile/scm-symtab.c: Update.
11436 * guile/scm-type.c: Update.
11437 * guile/scm-value.c: Update.
11438 * i386-linux-tdep.c: Update.
11439 * i386-tdep.c: Update.
11440 * inf-loop.c: Update.
11441 * infcall.c: Update.
11442 * infcmd.c: Update.
11443 * infrun.c: Update.
11444 * jit.c: Update.
11445 * language.c: Update.
11446 * linespec.c: Update.
11447 * linux-fork.c: Update.
11448 * linux-nat.c: Update.
11449 * linux-tdep.c: Update.
11450 * linux-thread-db.c: Update.
11451 * main.c: Update.
11452 * mi/mi-cmd-break.c: Update.
11453 * mi/mi-cmd-stack.c: Update.
11454 * mi/mi-interp.c: Update.
11455 * mi/mi-main.c: Update.
11456 * objc-lang.c: Update.
11457 * p-valprint.c: Update.
11458 * parse.c: Update.
11459 * ppc-linux-tdep.c: Update.
11460 * printcmd.c: Update.
11461 * python/py-arch.c: Update.
11462 * python/py-breakpoint.c: Update.
11463 * python/py-cmd.c: Update.
11464 * python/py-finishbreakpoint.c: Update.
11465 * python/py-frame.c: Update.
11466 * python/py-framefilter.c: Update.
11467 * python/py-gdb-readline.c: Update.
11468 * python/py-inferior.c: Update.
11469 * python/py-infthread.c: Update.
11470 * python/py-lazy-string.c: Update.
11471 * python/py-linetable.c: Update.
11472 * python/py-objfile.c: Update.
11473 * python/py-param.c: Update.
11474 * python/py-prettyprint.c: Update.
11475 * python/py-progspace.c: Update.
11476 * python/py-record-btrace.c: Update.
11477 * python/py-record.c: Update.
11478 * python/py-symbol.c: Update.
11479 * python/py-type.c: Update.
11480 * python/py-unwind.c: Update.
11481 * python/py-utils.c: Update.
11482 * python/py-value.c: Update.
11483 * python/python.c: Update.
11484 * record-btrace.c: Update.
11485 * record-full.c: Update.
11486 * remote-fileio.c: Update.
11487 * remote.c: Update.
11488 * riscv-tdep.c: Update.
11489 * rs6000-aix-tdep.c: Update.
11490 * rs6000-tdep.c: Update.
11491 * rust-exp.y: Update.
11492 * rust-lang.c: Update.
11493 * s390-tdep.c: Update.
11494 * selftest-arch.c: Update.
11495 * solib-dsbt.c: Update.
11496 * solib-frv.c: Update.
11497 * solib-spu.c: Update.
11498 * solib-svr4.c: Update.
11499 * solib.c: Update.
11500 * sparc64-linux-tdep.c: Update.
11501 * stack.c: Update.
11502 * symfile-mem.c: Update.
11503 * symmisc.c: Update.
11504 * target.c: Update.
11505 * thread.c: Update.
11506 * top.c: Update.
11507 * tracefile-tfile.c: Update.
11508 * tui/tui.c: Update.
11509 * typeprint.c: Update.
11510 * unittests/cli-utils-selftests.c: Update.
11511 * unittests/parse-connection-spec-selftests.c: Update.
11512 * valops.c: Update.
11513 * valprint.c: Update.
11514 * value.c: Update.
11515 * varobj.c: Update.
11516 * windows-nat.c: Update.
11517 * x86-linux-nat.c: Update.
11518 * xml-support.c: Update.
11519
a70b8144
TT
115202019-04-08 Tom Tromey <tom@tromey.com>
11521
11522 * xml-support.c: Use C++ exception handling.
11523 * x86-linux-nat.c: Use C++ exception handling.
11524 * windows-nat.c: Use C++ exception handling.
11525 * varobj.c: Use C++ exception handling.
11526 * value.c: Use C++ exception handling.
11527 * valprint.c: Use C++ exception handling.
11528 * valops.c: Use C++ exception handling.
11529 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11530 handling.
11531 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11532 * typeprint.c: Use C++ exception handling.
11533 * tui/tui.c: Use C++ exception handling.
11534 * tracefile-tfile.c: Use C++ exception handling.
11535 * top.c: Use C++ exception handling.
11536 * thread.c: Use C++ exception handling.
11537 * target.c: Use C++ exception handling.
11538 * symmisc.c: Use C++ exception handling.
11539 * symfile-mem.c: Use C++ exception handling.
11540 * stack.c: Use C++ exception handling.
11541 * sparc64-linux-tdep.c: Use C++ exception handling.
11542 * solib.c: Use C++ exception handling.
11543 * solib-svr4.c: Use C++ exception handling.
11544 * solib-spu.c: Use C++ exception handling.
11545 * solib-frv.c: Use C++ exception handling.
11546 * solib-dsbt.c: Use C++ exception handling.
11547 * selftest-arch.c: Use C++ exception handling.
11548 * s390-tdep.c: Use C++ exception handling.
11549 * rust-lang.c: Use C++ exception handling.
11550 * rust-exp.y: Use C++ exception handling.
11551 * rs6000-tdep.c: Use C++ exception handling.
11552 * rs6000-aix-tdep.c: Use C++ exception handling.
11553 * riscv-tdep.c: Use C++ exception handling.
11554 * remote.c: Use C++ exception handling.
11555 * remote-fileio.c: Use C++ exception handling.
11556 * record-full.c: Use C++ exception handling.
11557 * record-btrace.c: Use C++ exception handling.
11558 * python/python.c: Use C++ exception handling.
11559 * python/py-value.c: Use C++ exception handling.
11560 * python/py-utils.c: Use C++ exception handling.
11561 * python/py-unwind.c: Use C++ exception handling.
11562 * python/py-type.c: Use C++ exception handling.
11563 * python/py-symbol.c: Use C++ exception handling.
11564 * python/py-record.c: Use C++ exception handling.
11565 * python/py-record-btrace.c: Use C++ exception handling.
11566 * python/py-progspace.c: Use C++ exception handling.
11567 * python/py-prettyprint.c: Use C++ exception handling.
11568 * python/py-param.c: Use C++ exception handling.
11569 * python/py-objfile.c: Use C++ exception handling.
11570 * python/py-linetable.c: Use C++ exception handling.
11571 * python/py-lazy-string.c: Use C++ exception handling.
11572 * python/py-infthread.c: Use C++ exception handling.
11573 * python/py-inferior.c: Use C++ exception handling.
11574 * python/py-gdb-readline.c: Use C++ exception handling.
11575 * python/py-framefilter.c: Use C++ exception handling.
11576 * python/py-frame.c: Use C++ exception handling.
11577 * python/py-finishbreakpoint.c: Use C++ exception handling.
11578 * python/py-cmd.c: Use C++ exception handling.
11579 * python/py-breakpoint.c: Use C++ exception handling.
11580 * python/py-arch.c: Use C++ exception handling.
11581 * printcmd.c: Use C++ exception handling.
11582 * ppc-linux-tdep.c: Use C++ exception handling.
11583 * parse.c: Use C++ exception handling.
11584 * p-valprint.c: Use C++ exception handling.
11585 * objc-lang.c: Use C++ exception handling.
11586 * mi/mi-main.c: Use C++ exception handling.
11587 * mi/mi-interp.c: Use C++ exception handling.
11588 * mi/mi-cmd-stack.c: Use C++ exception handling.
11589 * mi/mi-cmd-break.c: Use C++ exception handling.
11590 * main.c: Use C++ exception handling.
11591 * linux-thread-db.c: Use C++ exception handling.
11592 * linux-tdep.c: Use C++ exception handling.
11593 * linux-nat.c: Use C++ exception handling.
11594 * linux-fork.c: Use C++ exception handling.
11595 * linespec.c: Use C++ exception handling.
11596 * language.c: Use C++ exception handling.
11597 * jit.c: Use C++ exception handling.
11598 * infrun.c: Use C++ exception handling.
11599 * infcmd.c: Use C++ exception handling.
11600 * infcall.c: Use C++ exception handling.
11601 * inf-loop.c: Use C++ exception handling.
11602 * i386-tdep.c: Use C++ exception handling.
11603 * i386-linux-tdep.c: Use C++ exception handling.
11604 * guile/scm-value.c: Use C++ exception handling.
11605 * guile/scm-type.c: Use C++ exception handling.
11606 * guile/scm-symtab.c: Use C++ exception handling.
11607 * guile/scm-symbol.c: Use C++ exception handling.
11608 * guile/scm-pretty-print.c: Use C++ exception handling.
11609 * guile/scm-ports.c: Use C++ exception handling.
11610 * guile/scm-param.c: Use C++ exception handling.
11611 * guile/scm-math.c: Use C++ exception handling.
11612 * guile/scm-lazy-string.c: Use C++ exception handling.
11613 * guile/scm-frame.c: Use C++ exception handling.
11614 * guile/scm-disasm.c: Use C++ exception handling.
11615 * guile/scm-cmd.c: Use C++ exception handling.
11616 * guile/scm-breakpoint.c: Use C++ exception handling.
11617 * guile/scm-block.c: Use C++ exception handling.
11618 * guile/guile-internal.h: Use C++ exception handling.
11619 * gnu-v3-abi.c: Use C++ exception handling.
11620 * gdbtypes.c: Use C++ exception handling.
11621 * frame.c: Use C++ exception handling.
11622 * frame-unwind.c: Use C++ exception handling.
11623 * fbsd-tdep.c: Use C++ exception handling.
11624 * f-valprint.c: Use C++ exception handling.
11625 * exec.c: Use C++ exception handling.
11626 * event-top.c: Use C++ exception handling.
11627 * event-loop.c: Use C++ exception handling.
11628 * eval.c: Use C++ exception handling.
11629 * dwarf2read.c: Use C++ exception handling.
11630 * dwarf2loc.c: Use C++ exception handling.
11631 * dwarf2-frame.c: Use C++ exception handling.
11632 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11633 * dwarf-index-write.c: Use C++ exception handling.
11634 * dwarf-index-cache.c: Use C++ exception handling.
11635 * dtrace-probe.c: Use C++ exception handling.
11636 * disasm-selftests.c: Use C++ exception handling.
11637 * darwin-nat.c: Use C++ exception handling.
11638 * cp-valprint.c: Use C++ exception handling.
11639 * cp-support.c: Use C++ exception handling.
11640 * cp-abi.c: Use C++ exception handling.
11641 * corelow.c: Use C++ exception handling.
11642 * completer.c: Use C++ exception handling.
11643 * compile/compile-object-run.c: Use C++ exception handling.
11644 * compile/compile-object-load.c: Use C++ exception handling.
11645 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11646 * compile/compile-c-symbols.c: Use C++ exception handling.
11647 * common/selftest.c: Use C++ exception handling.
11648 * common/new-op.c: Use C++ exception handling.
11649 * cli/cli-script.c: Use C++ exception handling.
11650 * cli/cli-interp.c: Use C++ exception handling.
11651 * cli/cli-cmds.c: Use C++ exception handling.
11652 * c-varobj.c: Use C++ exception handling.
11653 * btrace.c: Use C++ exception handling.
11654 * breakpoint.c: Use C++ exception handling.
11655 * break-catch-throw.c: Use C++ exception handling.
11656 * arch-utils.c: Use C++ exception handling.
11657 * amd64-tdep.c: Use C++ exception handling.
11658 * ada-valprint.c: Use C++ exception handling.
11659 * ada-typeprint.c: Use C++ exception handling.
11660 * ada-lang.c: Use C++ exception handling.
11661 * aarch64-tdep.c: Use C++ exception handling.
11662
3d6e9d23
TT
116632019-04-08 Tom Tromey <tom@tromey.com>
11664
11665 * xml-support.c (gdb_xml_parser::parse): Update.
11666 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11667 * value.c (show_convenience): Update.
11668 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11669 (test_parse_flags_qcs): Update.
11670 * thread.c (thr_try_catch_cmd): Update.
11671 * target.c (target_translate_tls_address): Update.
11672 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11673 (info_frame_command_core, frame_apply_command_count): Update.
11674 * rust-exp.y (rust_lex_exception_test): Update.
11675 * riscv-tdep.c (riscv_print_one_register_info): Update.
11676 * remote.c (remote_target::enable_btrace): Update.
11677 * record-btrace.c (record_btrace_enable_warn): Update.
11678 * python/py-utils.c (gdbpy_convert_exception): Update.
11679 * printcmd.c (do_one_display, print_variable_and_value): Update.
11680 * mi/mi-main.c (mi_print_exception): Update.
11681 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11682 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11683 * linux-nat.c (linux_nat_target::attach): Update.
11684 * linux-fork.c (class scoped_switch_fork_info): Update.
11685 * infrun.c (displaced_step_prepare): Update.
11686 * infcall.c (call_function_by_hand_dummy): Update.
11687 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11688 * gnu-v3-abi.c (print_one_vtable): Update.
11689 * frame.c (get_prev_frame_always): Update.
11690 * f-valprint.c (info_common_command_for_block): Update.
11691 * exec.c (try_open_exec_file): Update.
11692 * exceptions.c (print_exception, exception_print)
11693 (exception_fprintf, exception_print_same): Update.
11694 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11695 * dwarf-index-cache.c (index_cache::store)
11696 (index_cache::lookup_gdb_index): Update.
11697 * darwin-nat.c (maybe_cache_shell): Update.
11698 * cp-valprint.c (cp_print_value_fields): Update.
11699 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11700 (gcc_cplus_symbol_address): Update.
11701 * compile/compile-c-symbols.c (gcc_convert_symbol)
11702 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11703 * common/selftest.c: Update.
11704 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11705 a std::string.
11706 (exception_try_scope_entry, exception_try_scope_exit): Don't
11707 declare.
11708 (struct exception_try_scope): Remove.
11709 (TRY): Don't use exception_try_scope.
11710 (struct gdb_exception): Add constructor, operator=.
11711 <what>: New method.
11712 (struct gdb_exception_RETURN_MASK_ALL)
11713 (struct gdb_exception_RETURN_MASK_ERROR)
11714 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11715 (struct gdb_quit_bad_alloc): Update.
11716 * common/common-exceptions.c (exception_none): Change
11717 initializer.
11718 (struct catcher) <state, exception>: Initialize inline.
11719 <prev>: Remove member.
11720 (current_catcher): Remove.
11721 (catchers): New global.
11722 (exceptions_state_mc_init): Simplify.
11723 (catcher_pop): Remove.
11724 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11725 (try_scope_depth, exception_try_scope_entry)
11726 (exception_try_scope_exit): Remove.
11727 (throw_exception_sjlj): Update.
11728 (exception_messages, exception_messages_size): Remove.
11729 (throw_it): Simplify.
11730 (gdb_exception_sliced_copy): Remove.
11731 (throw_exception_cxx): Update.
11732 * cli/cli-script.c (script_from_file): Update.
11733 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11734 Update.
11735 * ada-valprint.c (ada_val_print): Update.
11736 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11737 (create_excep_cond_exprs): Update.
11738
c5c10118
TT
117392019-04-08 Tom Tromey <tom@tromey.com>
11740
11741 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11742 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11743 (TRY, CATCH, END_CATCH): Remove some definitions.
11744 * common/common-exceptions.c: Don't use GDB_XCPT.
11745 (catcher_list_size): Remove.
11746 (throw_exception, throw_it): Simplify.
11747
4de283e4
TT
117482019-04-05 Tom Tromey <tom@tromey.com>
11749
11750 Revert the header-sorting patch.
11751 * ft32-tdep.c: Revert.
11752 * frv-tdep.c: Revert.
11753 * frv-linux-tdep.c: Revert.
11754 * frame.c: Revert.
11755 * frame-unwind.c: Revert.
11756 * frame-base.c: Revert.
11757 * fork-child.c: Revert.
11758 * findvar.c: Revert.
11759 * findcmd.c: Revert.
11760 * filesystem.c: Revert.
11761 * filename-seen-cache.h: Revert.
11762 * filename-seen-cache.c: Revert.
11763 * fbsd-tdep.c: Revert.
11764 * fbsd-nat.h: Revert.
11765 * fbsd-nat.c: Revert.
11766 * f-valprint.c: Revert.
11767 * f-typeprint.c: Revert.
11768 * f-lang.c: Revert.
11769 * extension.h: Revert.
11770 * extension.c: Revert.
11771 * extension-priv.h: Revert.
11772 * expprint.c: Revert.
11773 * exec.h: Revert.
11774 * exec.c: Revert.
11775 * exceptions.c: Revert.
11776 * event-top.c: Revert.
11777 * event-loop.c: Revert.
11778 * eval.c: Revert.
11779 * elfread.c: Revert.
11780 * dwarf2read.h: Revert.
11781 * dwarf2read.c: Revert.
11782 * dwarf2loc.c: Revert.
11783 * dwarf2expr.h: Revert.
11784 * dwarf2expr.c: Revert.
11785 * dwarf2-frame.c: Revert.
11786 * dwarf2-frame-tailcall.c: Revert.
11787 * dwarf-index-write.h: Revert.
11788 * dwarf-index-write.c: Revert.
11789 * dwarf-index-common.c: Revert.
11790 * dwarf-index-cache.h: Revert.
11791 * dwarf-index-cache.c: Revert.
11792 * dummy-frame.c: Revert.
11793 * dtrace-probe.c: Revert.
11794 * disasm.h: Revert.
11795 * disasm.c: Revert.
11796 * disasm-selftests.c: Revert.
11797 * dictionary.c: Revert.
11798 * dicos-tdep.c: Revert.
11799 * demangle.c: Revert.
11800 * dcache.h: Revert.
11801 * dcache.c: Revert.
11802 * darwin-nat.h: Revert.
11803 * darwin-nat.c: Revert.
11804 * darwin-nat-info.c: Revert.
11805 * d-valprint.c: Revert.
11806 * d-namespace.c: Revert.
11807 * d-lang.c: Revert.
11808 * ctf.c: Revert.
11809 * csky-tdep.c: Revert.
11810 * csky-linux-tdep.c: Revert.
11811 * cris-tdep.c: Revert.
11812 * cris-linux-tdep.c: Revert.
11813 * cp-valprint.c: Revert.
11814 * cp-support.c: Revert.
11815 * cp-namespace.c: Revert.
11816 * cp-abi.c: Revert.
11817 * corelow.c: Revert.
11818 * corefile.c: Revert.
11819 * continuations.c: Revert.
11820 * completer.h: Revert.
11821 * completer.c: Revert.
11822 * complaints.c: Revert.
11823 * coffread.c: Revert.
11824 * coff-pe-read.c: Revert.
11825 * cli-out.h: Revert.
11826 * cli-out.c: Revert.
11827 * charset.c: Revert.
11828 * c-varobj.c: Revert.
11829 * c-valprint.c: Revert.
11830 * c-typeprint.c: Revert.
11831 * c-lang.c: Revert.
11832 * buildsym.c: Revert.
11833 * buildsym-legacy.c: Revert.
11834 * build-id.h: Revert.
11835 * build-id.c: Revert.
11836 * btrace.c: Revert.
11837 * bsd-uthread.c: Revert.
11838 * breakpoint.h: Revert.
11839 * breakpoint.c: Revert.
11840 * break-catch-throw.c: Revert.
11841 * break-catch-syscall.c: Revert.
11842 * break-catch-sig.c: Revert.
11843 * blockframe.c: Revert.
11844 * block.c: Revert.
11845 * bfin-tdep.c: Revert.
11846 * bfin-linux-tdep.c: Revert.
11847 * bfd-target.c: Revert.
11848 * bcache.c: Revert.
11849 * ax-general.c: Revert.
11850 * ax-gdb.h: Revert.
11851 * ax-gdb.c: Revert.
11852 * avr-tdep.c: Revert.
11853 * auxv.c: Revert.
11854 * auto-load.c: Revert.
11855 * arm-wince-tdep.c: Revert.
11856 * arm-tdep.c: Revert.
11857 * arm-symbian-tdep.c: Revert.
11858 * arm-pikeos-tdep.c: Revert.
11859 * arm-obsd-tdep.c: Revert.
11860 * arm-nbsd-tdep.c: Revert.
11861 * arm-nbsd-nat.c: Revert.
11862 * arm-linux-tdep.c: Revert.
11863 * arm-linux-nat.c: Revert.
11864 * arm-fbsd-tdep.c: Revert.
11865 * arm-fbsd-nat.c: Revert.
11866 * arm-bsd-tdep.c: Revert.
11867 * arch-utils.c: Revert.
11868 * arc-tdep.c: Revert.
11869 * arc-newlib-tdep.c: Revert.
11870 * annotate.h: Revert.
11871 * annotate.c: Revert.
11872 * amd64-windows-tdep.c: Revert.
11873 * amd64-windows-nat.c: Revert.
11874 * amd64-tdep.c: Revert.
11875 * amd64-sol2-tdep.c: Revert.
11876 * amd64-obsd-tdep.c: Revert.
11877 * amd64-obsd-nat.c: Revert.
11878 * amd64-nbsd-tdep.c: Revert.
11879 * amd64-nbsd-nat.c: Revert.
11880 * amd64-nat.c: Revert.
11881 * amd64-linux-tdep.c: Revert.
11882 * amd64-linux-nat.c: Revert.
11883 * amd64-fbsd-tdep.c: Revert.
11884 * amd64-fbsd-nat.c: Revert.
11885 * amd64-dicos-tdep.c: Revert.
11886 * amd64-darwin-tdep.c: Revert.
11887 * amd64-bsd-nat.c: Revert.
11888 * alpha-tdep.c: Revert.
11889 * alpha-obsd-tdep.c: Revert.
11890 * alpha-nbsd-tdep.c: Revert.
11891 * alpha-mdebug-tdep.c: Revert.
11892 * alpha-linux-tdep.c: Revert.
11893 * alpha-linux-nat.c: Revert.
11894 * alpha-bsd-tdep.c: Revert.
11895 * alpha-bsd-nat.c: Revert.
11896 * aix-thread.c: Revert.
11897 * agent.c: Revert.
11898 * addrmap.c: Revert.
11899 * ada-varobj.c: Revert.
11900 * ada-valprint.c: Revert.
11901 * ada-typeprint.c: Revert.
11902 * ada-tasks.c: Revert.
11903 * ada-lang.c: Revert.
11904 * aarch64-tdep.c: Revert.
11905 * aarch64-ravenscar-thread.c: Revert.
11906 * aarch64-newlib-tdep.c: Revert.
11907 * aarch64-linux-tdep.c: Revert.
11908 * aarch64-linux-nat.c: Revert.
11909 * aarch64-fbsd-tdep.c: Revert.
11910 * aarch64-fbsd-nat.c: Revert.
11911 * aarch32-linux-nat.c: Revert.
11912
d55e5aa6
TT
119132019-04-05 Tom Tromey <tom@tromey.com>
11914
11915 * ft32-tdep.c: Sort headers.
11916 * frv-tdep.c: Sort headers.
11917 * frv-linux-tdep.c: Sort headers.
11918 * frame.c: Sort headers.
11919 * frame-unwind.c: Sort headers.
11920 * frame-base.c: Sort headers.
11921 * fork-child.c: Sort headers.
11922 * findvar.c: Sort headers.
11923 * findcmd.c: Sort headers.
11924 * filesystem.c: Sort headers.
11925 * filename-seen-cache.h: Sort headers.
11926 * filename-seen-cache.c: Sort headers.
11927 * fbsd-tdep.c: Sort headers.
11928 * fbsd-nat.h: Sort headers.
11929 * fbsd-nat.c: Sort headers.
11930 * f-valprint.c: Sort headers.
11931 * f-typeprint.c: Sort headers.
11932 * f-lang.c: Sort headers.
11933 * extension.h: Sort headers.
11934 * extension.c: Sort headers.
11935 * extension-priv.h: Sort headers.
11936 * expprint.c: Sort headers.
11937 * exec.h: Sort headers.
11938 * exec.c: Sort headers.
11939 * exceptions.c: Sort headers.
11940 * event-top.c: Sort headers.
11941 * event-loop.c: Sort headers.
11942 * eval.c: Sort headers.
11943 * elfread.c: Sort headers.
11944 * dwarf2read.h: Sort headers.
11945 * dwarf2read.c: Sort headers.
11946 * dwarf2loc.c: Sort headers.
11947 * dwarf2expr.h: Sort headers.
11948 * dwarf2expr.c: Sort headers.
11949 * dwarf2-frame.c: Sort headers.
11950 * dwarf2-frame-tailcall.c: Sort headers.
11951 * dwarf-index-write.h: Sort headers.
11952 * dwarf-index-write.c: Sort headers.
11953 * dwarf-index-common.c: Sort headers.
11954 * dwarf-index-cache.h: Sort headers.
11955 * dwarf-index-cache.c: Sort headers.
11956 * dummy-frame.c: Sort headers.
11957 * dtrace-probe.c: Sort headers.
11958 * disasm.h: Sort headers.
11959 * disasm.c: Sort headers.
11960 * disasm-selftests.c: Sort headers.
11961 * dictionary.c: Sort headers.
11962 * dicos-tdep.c: Sort headers.
11963 * demangle.c: Sort headers.
11964 * dcache.h: Sort headers.
11965 * dcache.c: Sort headers.
11966 * darwin-nat.h: Sort headers.
11967 * darwin-nat.c: Sort headers.
11968 * darwin-nat-info.c: Sort headers.
11969 * d-valprint.c: Sort headers.
11970 * d-namespace.c: Sort headers.
11971 * d-lang.c: Sort headers.
11972 * ctf.c: Sort headers.
11973 * csky-tdep.c: Sort headers.
11974 * csky-linux-tdep.c: Sort headers.
11975 * cris-tdep.c: Sort headers.
11976 * cris-linux-tdep.c: Sort headers.
11977 * cp-valprint.c: Sort headers.
11978 * cp-support.c: Sort headers.
11979 * cp-namespace.c: Sort headers.
11980 * cp-abi.c: Sort headers.
11981 * corelow.c: Sort headers.
11982 * corefile.c: Sort headers.
11983 * continuations.c: Sort headers.
11984 * completer.h: Sort headers.
11985 * completer.c: Sort headers.
11986 * complaints.c: Sort headers.
11987 * coffread.c: Sort headers.
11988 * coff-pe-read.c: Sort headers.
11989 * cli-out.h: Sort headers.
11990 * cli-out.c: Sort headers.
11991 * charset.c: Sort headers.
11992 * c-varobj.c: Sort headers.
11993 * c-valprint.c: Sort headers.
11994 * c-typeprint.c: Sort headers.
11995 * c-lang.c: Sort headers.
11996 * buildsym.c: Sort headers.
11997 * buildsym-legacy.c: Sort headers.
11998 * build-id.h: Sort headers.
11999 * build-id.c: Sort headers.
12000 * btrace.c: Sort headers.
12001 * bsd-uthread.c: Sort headers.
12002 * breakpoint.h: Sort headers.
12003 * breakpoint.c: Sort headers.
12004 * break-catch-throw.c: Sort headers.
12005 * break-catch-syscall.c: Sort headers.
12006 * break-catch-sig.c: Sort headers.
12007 * blockframe.c: Sort headers.
12008 * block.c: Sort headers.
12009 * bfin-tdep.c: Sort headers.
12010 * bfin-linux-tdep.c: Sort headers.
12011 * bfd-target.c: Sort headers.
12012 * bcache.c: Sort headers.
12013 * ax-general.c: Sort headers.
12014 * ax-gdb.h: Sort headers.
12015 * ax-gdb.c: Sort headers.
12016 * avr-tdep.c: Sort headers.
12017 * auxv.c: Sort headers.
12018 * auto-load.c: Sort headers.
12019 * arm-wince-tdep.c: Sort headers.
12020 * arm-tdep.c: Sort headers.
12021 * arm-symbian-tdep.c: Sort headers.
12022 * arm-pikeos-tdep.c: Sort headers.
12023 * arm-obsd-tdep.c: Sort headers.
12024 * arm-nbsd-tdep.c: Sort headers.
12025 * arm-nbsd-nat.c: Sort headers.
12026 * arm-linux-tdep.c: Sort headers.
12027 * arm-linux-nat.c: Sort headers.
12028 * arm-fbsd-tdep.c: Sort headers.
12029 * arm-fbsd-nat.c: Sort headers.
12030 * arm-bsd-tdep.c: Sort headers.
12031 * arch-utils.c: Sort headers.
12032 * arc-tdep.c: Sort headers.
12033 * arc-newlib-tdep.c: Sort headers.
12034 * annotate.h: Sort headers.
12035 * annotate.c: Sort headers.
12036 * amd64-windows-tdep.c: Sort headers.
12037 * amd64-windows-nat.c: Sort headers.
12038 * amd64-tdep.c: Sort headers.
12039 * amd64-sol2-tdep.c: Sort headers.
12040 * amd64-obsd-tdep.c: Sort headers.
12041 * amd64-obsd-nat.c: Sort headers.
12042 * amd64-nbsd-tdep.c: Sort headers.
12043 * amd64-nbsd-nat.c: Sort headers.
12044 * amd64-nat.c: Sort headers.
12045 * amd64-linux-tdep.c: Sort headers.
12046 * amd64-linux-nat.c: Sort headers.
12047 * amd64-fbsd-tdep.c: Sort headers.
12048 * amd64-fbsd-nat.c: Sort headers.
12049 * amd64-dicos-tdep.c: Sort headers.
12050 * amd64-darwin-tdep.c: Sort headers.
12051 * amd64-bsd-nat.c: Sort headers.
12052 * alpha-tdep.c: Sort headers.
12053 * alpha-obsd-tdep.c: Sort headers.
12054 * alpha-nbsd-tdep.c: Sort headers.
12055 * alpha-mdebug-tdep.c: Sort headers.
12056 * alpha-linux-tdep.c: Sort headers.
12057 * alpha-linux-nat.c: Sort headers.
12058 * alpha-bsd-tdep.c: Sort headers.
12059 * alpha-bsd-nat.c: Sort headers.
12060 * aix-thread.c: Sort headers.
12061 * agent.c: Sort headers.
12062 * addrmap.c: Sort headers.
12063 * ada-varobj.c: Sort headers.
12064 * ada-valprint.c: Sort headers.
12065 * ada-typeprint.c: Sort headers.
12066 * ada-tasks.c: Sort headers.
12067 * ada-lang.c: Sort headers.
12068 * aarch64-tdep.c: Sort headers.
12069 * aarch64-ravenscar-thread.c: Sort headers.
12070 * aarch64-newlib-tdep.c: Sort headers.
12071 * aarch64-linux-tdep.c: Sort headers.
12072 * aarch64-linux-nat.c: Sort headers.
12073 * aarch64-fbsd-tdep.c: Sort headers.
12074 * aarch64-fbsd-nat.c: Sort headers.
12075 * aarch32-linux-nat.c: Sort headers.
12076
699bd4cf
TT
120772019-04-04 Tom Tromey <tom@tromey.com>
12078
12079 * varobj.c (varobj_create): Update.
12080 * rust-exp.y (struct rust_parser) <update_innermost_block,
12081 lookup_symbol>: New methods.
12082 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12083 Rename.
12084 (rust_parser::rust_lookup_type)
12085 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12086 * printcmd.c (display_command, do_one_display): Update.
12087 * parser-defs.h (struct parser_state) <parser_state>: Add
12088 "tracker" parameter.
12089 (block_tracker): New member.
12090 (class innermost_block_tracker) <innermost_block_tracker>: Add
12091 "types" parameter.
12092 <reset>: Remove method.
12093 (innermost_block): Don't declare.
12094 (null_post_parser): Update.
12095 * parse.c (innermost_block): Remove global.
12096 (write_dollar_variable): Update.
12097 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12098 Remove "tracker_types" parameter.
12099 (parse_expression): Add "tracker" parameter.
12100 (parse_expression_for_completion): Update.
12101 (null_post_parser): Add "tracker" parameter.
12102 * p-exp.y: Update rules.
12103 * m2-exp.y: Update rules.
12104 * language.h (struct language_defn) <la_post_parser>: Add
12105 "tracker" parameter.
12106 * go-exp.y: Update rules.
12107 * f-exp.y: Update rules.
12108 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12109 parameter.
12110 * d-exp.y: Update rules.
12111 * c-exp.y: Update rules.
12112 * breakpoint.c (set_breakpoint_condition): Create an
12113 innermost_block_tracker.
12114 (watch_command_1): Likewise.
12115 * ada-lang.c (resolve): Add "tracker" parameter.
12116 (resolve_subexp): Likewise.
12117 * ada-exp.y (write_var_from_sym): Update.
12118
dac43e32
TT
121192019-04-04 Tom Tromey <tom@tromey.com>
12120
12121 * type-stack.h: New file.
12122 * type-stack.c: New file.
12123 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12124 type-stack.h.
12125 (insert_into_type_stack, insert_type, push_type, push_type_int)
12126 (insert_type_address_space, pop_type, pop_type_int)
12127 (pop_typelist, pop_type_stack, append_type_stack)
12128 (push_type_stack, get_type_stack, push_typelist)
12129 (follow_type_instance_flags, follow_types): Don't declare.
12130 * parse.c (type_stack): Remove global.
12131 (parse_exp_in_context): Update.
12132 (insert_into_type_stack, insert_type, push_type, push_type_int)
12133 (insert_type_address_space, pop_type, pop_type_int)
12134 (pop_typelist, pop_type_stack, append_type_stack)
12135 (push_type_stack, get_type_stack, push_typelist)
12136 (follow_type_instance_flags, follow_types): Remove (moved to
12137 type-stack.c).
12138 * f-exp.y (type_stack): New global.
12139 Update rules.
12140 (push_kind_type, f_parse): Update.
12141 * d-exp.y (type_stack): New global.
12142 Update rules.
12143 (d_parse): Update.
12144 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12145 Update rules.
12146 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12147 (HFILES_NO_SRCDIR): Add type-stack.h.
12148
2a612529
TT
121492019-04-04 Tom Tromey <tom@tromey.com>
12150
12151 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12152 (rust_parser::convert_ast_to_expression, rust_parse)
12153 (rust_lex_test_completion, rust_lex_tests): Update.
12154 * parser-defs.h (struct expr_completion_state): New.
12155 (struct parser_state) <parser_state>: Add completion parameter.
12156 <mark_struct_expression, mark_completion_tag>: New methods.
12157 <parse_completion, m_completion_state>: New members.
12158 (prefixify_expression, null_post_parser): Update.
12159 (mark_struct_expression, mark_completion_tag): Don't declare.
12160 * parse.c (parse_completion, expout_last_struct)
12161 (expout_tag_completion_type, expout_completion_name): Remove
12162 globals.
12163 (parser_state::mark_struct_expression)
12164 (parser_state::mark_completion_tag): Now methods.
12165 (prefixify_expression): Add last_struct parameter.
12166 (prefixify_subexp): Likewise.
12167 (parse_exp_1): Update.
12168 (parse_exp_in_context): Add cstate parameter. Update.
12169 (parse_expression_for_completion): Create an
12170 expr_completion_state.
12171 (null_post_parser): Add "completion" parameter.
12172 * p-exp.y: Update rules.
12173 (yylex): Update.
12174 * language.h (struct language_defn) <la_post_parser>: Add
12175 "completing" parameter.
12176 * go-exp.y: Update rules.
12177 (lex_one_token): Update.
12178 * expression.h (parse_completion): Don't declare.
12179 * d-exp.y: Update rules.
12180 (lex_one_token): Update rules.
12181 * c-exp.y: Update rules.
12182 (lex_one_token): Update.
12183 * ada-lang.c (resolve): Add "parse_completion" parameter.
12184 (resolve_subexp): Likewise.
12185 (ada_resolve_function): Likewise.
12186
43476f0b
TT
121872019-04-04 Tom Tromey <tom@tromey.com>
12188
12189 * parser-defs.h (struct parser_state) <start_arglist,
12190 end_arglist>: New methods.
12191 <arglist_len, m_funcall_chain>: New members.
12192 (arglist_len, start_arglist, end_arglist): Don't declare.
12193 * parse.c (arglist_len, funcall_chain): Remove global.
12194 (start_arglist, end_arglist): Remove functions.
12195 (parse_exp_in_context): Update.
12196 * p-exp.y: Update rules.
12197 * m2-exp.y: Update rules.
12198 * go-exp.y: Update rules.
12199 * f-exp.y: Update rules.
12200 * d-exp.y: Update rules.
12201 * c-exp.y: Update rules.
12202
5776fca3
TT
122032019-04-04 Tom Tromey <tom@tromey.com>
12204
12205 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12206 lex_operator, push_back>: New methods.
12207 Update all rules.
12208 (rust_parser::lex_hex, lex_escape): Rename and update.
12209 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12210 (rust_parser::lex_operator): Rename and update.
12211 (rust_parser::lex_number, rustyylex, rustyyerror)
12212 (rust_lex_test_init, rust_lex_test_sequence)
12213 (rust_lex_test_push_back, rust_lex_tests): Update.
12214 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12215 parameter.
12216 <lexptr, prev_lexptr>: New members.
12217 (lexptr, prev_lexptr): Don't declare.
12218 * parse.c (lexptr, prev_lexptr): Remove globals.
12219 (parse_exp_in_context): Update.
12220 * p-exp.y (yylex, yyerror): Update.
12221 * m2-exp.y (parse_number, yylex, yyerror): Update.
12222 * go-exp.y (lex_one_token, yyerror): Update.
12223 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12224 * d-exp.y (lex_one_token, yyerror): Update.
12225 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12226 (lex_one_token, yyerror): Update.
12227 * ada-lex.l (YY_INPUT): Update.
12228 (rewind_to_char): Update.
12229 * ada-exp.y (yyerror): Update.
12230
8621b685
TT
122312019-04-04 Tom Tromey <tom@tromey.com>
12232
12233 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12234 * parser-defs.h (struct parser_state) <parser_state>: Add new
12235 parameter.
12236 <comma_terminates>: New member.
12237 (comma_terminates): Don't declare global.
12238 * parse.c (comma_terminates): Remove global.
12239 (parse_exp_in_context): Update.
12240 * p-exp.y (yylex): Update.
12241 * m2-exp.y (yylex): Update.
12242 * go-exp.y (lex_one_token): Update.
12243 * f-exp.y (yylex): Update.
12244 * d-exp.y (lex_one_token): Update.
12245 * c-exp.y (lex_one_token): Update.
12246 * ada-lex.l: Update.
12247
28aaf3fd
TT
122482019-04-04 Tom Tromey <tom@tromey.com>
12249
12250 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12251 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12252 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12253 * parser-defs.h (paren_depth): Don't declare.
12254 * parse.c (paren_depth): Remove global.
12255 (parse_exp_in_context): Update.
12256 * p-exp.y (paren_depth): New global.
12257 (pascal_parse): Initialize it.
12258 * m2-exp.y (paren_depth): New global.
12259 (m2_parse): Initialize it.
12260 * go-exp.y (paren_depth): New global.
12261 (go_parse): Initialize it.
12262 * f-exp.y (paren_depth): New global.
12263 (f_parse): Initialize it.
12264 * d-exp.y (paren_depth): New global.
12265 (d_parse): Initialize it.
12266 * c-exp.y (paren_depth): New global.
12267 (c_parse): Initialize it.
12268 * ada-lex.l (paren_depth): New global.
12269 (lexer_init): Initialize it.
12270
1e58a4a4
TT
122712019-04-04 Tom Tromey <tom@tromey.com>
12272
12273 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12274 (rust_parser::convert_ast_to_type)
12275 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12276 * parser-defs.h (struct parser_state) <parser_state>: Add
12277 parameters. Initialize new members.
12278 <expression_context_block, expression_context_pc>: New members.
12279 * parse.c (expression_context_block, expression_context_pc):
12280 Remove globals.
12281 (parse_exp_in_context): Update.
12282 * p-exp.y: Update all rules.
12283 (yylex): Update.
12284 * m2-exp.y: Update all rules.
12285 (yylex): Update.
12286 * go-exp.y (yylex): Update.
12287 * f-exp.y (yylex): Update.
12288 * d-exp.y: Update all rules.
12289 (yylex): Update.
12290 * c-exp.y: Update all rules.
12291 (lex_one_token, classify_name, yylex, c_parse): Update.
12292 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12293
37eedb39
TT
122942019-04-04 Tom Tromey <tom@tromey.com>
12295
12296 * gdbarch.h, gdbarch.c: Rebuild.
12297 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12298 * stap-probe.h:
12299 (struct stap_parse_info): Replace "parser_state" with
12300 "expr_builder".
12301 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12302 (parser_state): New class.
12303 * parse.c (expr_builder): Rename.
12304 (expr_builder::release): Rename.
12305 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12306 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12307 (write_exp_elt_longcst, write_exp_elt_floatcst)
12308 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12309 (write_exp_string_vector, write_exp_bitstring)
12310 (write_exp_msymbol, mark_struct_expression)
12311 (write_dollar_variable)
12312 (insert_type_address_space, increase_expout_size): Replace
12313 "parser_state" with "expr_builder".
12314 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12315 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12316 "parser_state" with "expr_builder".
12317
73923d7e
TT
123182019-04-04 Tom Tromey <tom@tromey.com>
12319
12320 * rust-exp.y: Replace "parse_language" with method call.
12321 * p-exp.y:
12322 (yylex): Replace "parse_language" with method call.
12323 * m2-exp.y:
12324 (yylex): Replace "parse_language" with method call.
12325 * go-exp.y (classify_name): Replace "parse_language" with method
12326 call.
12327 * f-exp.y (yylex): Replace "parse_language" with method call.
12328 * d-exp.y (lex_one_token): Replace "parse_language" with method
12329 call.
12330 * c-exp.y:
12331 (lex_one_token, classify_name, yylex): Replace "parse_language"
12332 with method call.
12333 * ada-exp.y (find_primitive_type, type_char)
12334 (type_system_address): Replace "parse_language" with method call.
12335
fa9f5be6
TT
123362019-04-04 Tom Tromey <tom@tromey.com>
12337
12338 * rust-exp.y: Replace "parse_gdbarch" with method call.
12339 * parse.c (write_dollar_variable, insert_type_address_space):
12340 Replace "parse_gdbarch" with method call.
12341 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12342 call.
12343 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12344 call.
12345 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12346 "parse_gdbarch" with method call.
12347 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12348 with method call.
12349 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12350 "parse_gdbarch" with method call.
12351 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12352 "parse_gdbarch" with method call.
12353 * c-exp.y (parse_type, parse_number, classify_name): Replace
12354 "parse_gdbarch" with method call.
12355 * ada-lex.l: Replace "parse_gdbarch" with method call.
12356 * ada-exp.y (parse_type, find_primitive_type, type_char)
12357 (type_system_address): Replace "parse_gdbarch" with method call.
12358
1201a264
TT
123592019-04-04 Tom Tromey <tom@tromey.com>
12360
12361 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12362 * stap-probe.c (stap_parse_argument): Update.
12363 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12364 initial_size parameter.
12365 * rust-exp.y (rust_lex_tests): Update.
12366 * parse.c (parser_state): Update.
12367 (parse_exp_in_context): Update.
12368 * parser-defs.h (struct parser_state) <parser_state>: Remove
12369 "initial_size" parameter.
12370
e3980ce2
TT
123712019-04-04 Tom Tromey <tom@tromey.com>
12372
12373 * parser-defs.h (increase_expout_size): Don't declare.
12374 * parse.c (increase_expout_size): Now static.
12375
e9f8e3f1
TS
123762019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12377
12378 * gnu-nat.c (gnu_nat_target::wait): Fix
12379 target_waitstatus_to_string call.
12380
d7df6549
AB
123812019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12382
12383 * eval.c (evaluate_subexp_standard): Handle internal functions
12384 during Fortran function call handling.
12385
8bdc1658
AB
123862019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12387
12388 * NEWS: Mention new internal functions.
12389 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12390 (read_base_type): Use dwarf2_init_complex_target_type.
12391 * value.c (creal_internal_fn): New function.
12392 (cimag_internal_fn): New function.
12393 (_initialize_values): Register new internal functions.
12394
c29705b7
PW
123952019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12396
12397 * infrun.c (stop_all_threads): If debug_infrun, always
12398 trace the wait status after wait_one, using
12399 target_waitstatus_to_string and target_pid_to_str.
12400 (handle_inferior_event): Replace various trace of
12401 wait status kind by a single trace.
12402 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12403 wait status kind image by target_waitstatus_to_string.
12404 * target/waitstatus.c (target_waitstatus_to_string): Fix
12405 obsolete comment.
12406
05caa1d2
TT
124072019-04-01 Tom Tromey <tromey@adacore.com>
12408
12409 PR symtab/23331:
12410 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12411
9d1447e0
SDJ
124122019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12413 Pedro Alves <palves@redhat.com>
12414
12415 * top.c (quit_force): Call 'finalize_values'.
12416 * value.c (finalize_values): New function.
12417 * value.h (finalize_values): Declare.
12418
7734102d
EZ
124192019-03-30 Eli Zaretskii <eliz@gnu.org>
12420
12421 * NEWS: Announce $_gdb_major and $_gdb_minor.
12422
12423 * top.c (init_gdb_version_vars): New function.
12424 (gdb_init): Call init_gdb_version_vars.
12425
188e1fa9
TT
124262019-03-29 Tom Tromey <tromey@adacore.com>
12427
12428 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12429 help text. Remove dead code.
12430
2880242d
KS
124312019-03-29 Keith Seitz <keiths@redhat.com>
12432
12433 From Siddhesh Poyarekar:
12434 * f-lang.h (f77_get_upperbound): Return LONGEST.
12435 (f77_get_lowerbound): Likewise.
12436 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12437 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12438 print them.
12439 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12440 plongest to format print it.
12441 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12442 (f77_get_upperbound): Likewise.
12443 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12444 LOWER_BOUND to LONGEST.
12445 (f77_create_arrayprint_offset_tbl): Likewise.
12446
cc1defb1
KS
124472019-03-29 Keith Seitz <keiths@redhat.com>
12448
12449 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12450 %s/pulongest for TYPE_LENGTH instead of %d in format
12451 strings.
12452 * ada-typerint.c (ada_print_type): Likewise.
12453 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12454 * compile/compile-c-support.c (generate_register_struct): Likewise.
12455 * gdbtypes.c (recursive_dump_type): Likewise.
12456 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12457 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12458 instead of %d in format strings.
12459 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12460 to std::min to ULONGEST.
12461 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12462 instead of %d in format strings.
12463 * tracepoint.c (info_scope_command): Likewise.
12464 * typeprint.c (print_offset_data::update)
12465 (print_offset_data::finish): Likewise.
12466 * xtensa-tdep.c (xtensa_store_return_value)
12467 (xtensa_push_dummy_call): Likewise.
12468
e432ccf1
JT
124692019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12470
12471 * windows-nat.c (display_selector): Fixed format specifications
12472 for 64-bit Cygwin.
12473
65d2b333
PW
124742019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12475
12476 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12477
f489207e
SL
124782019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12479
12480 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12481 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12482 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12483 (nios2_linux_init_abi): Install it.
12484
bffa1015
AH
124852019-03-28 Alan Hayward <alan.hayward@arm.com>
12486
12487 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12488
fc96163a
AH
124892019-03-28 Alan Hayward <alan.hayward@arm.com>
12490
12491 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12492
20dc7e9b
PW
124932019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12494 Tom Tromey <tromey@adacore.com>
12495
12496 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12497
7f5331a8
JB
124982019-03-26 Joel Brobecker <brobecker@adacore.com>
12499
12500 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12501 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12502 method to compute the bounds of range types. Also print "[evaluated]"
12503 if the bounds' values come from a dynamic evaluation.
12504
18c77628
AB
125052019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12506
12507 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12508 whitespace when pretty printing is on.
12509
53c973f2
AH
125102019-03-26 Alan Hayward <alan.hayward@arm.com>
12511
e79be6e5 12512 * ppc-linux-nat.c: Add include.
53c973f2 12513
d851aa71
AH
125142019-03-26 Alan Hayward <alan.hayward@arm.com>
12515
e79be6e5 12516 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12517
2fe7bab7
AH
125182019-03-26 Alan Hayward <alan.hayward@arm.com>
12519
e79be6e5 12520 * arm-linux-nat.c: Add include.
2fe7bab7 12521
068ef30e
SM
125222019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12523
12524 * source-cache.c (source_cache::get_source_lines): Re-read
12525 fullname after calling open_source_file.
12526
81a24d04
JB
125272019-03-25 John Baldwin <jhb@FreeBSD.org>
12528
12529 * NEWS: Mention TLS support for FreeBSD.
12530
79e7ae11
TT
125312019-03-25 Tom Tromey <tromey@adacore.com>
12532
12533 * minsyms.c (BUNCH_SIZE): Update comment.
12534 (~minimal_symbol_reader): Remove old comment.
12535 (compact_minimal_symbols): Update comment.
12536 (minimal_symbol_reader::install): Remove old comment. Update
12537 other comments.
12538
d45963c2
AH
125392019-03-25 Alan Hayward <alan.hayward@arm.com>
12540
12541 * s390-linux-nat.c: Add include.
12542
0f83012e
AH
125432019-03-25 Alan Hayward <alan.hayward@arm.com>
12544
12545 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12546 Call linux_get_hwcap.
12547 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12548 Likewise.
12549 (aarch64_linux_get_hwcap): Remove function.
12550 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12551 declaration.
12552 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12553 linux_get_hwcap.
12554 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12555 * linux-tdep.c (linux_get_hwcap): Add function.
12556 (linux_get_hwcap2): Likewise.
12557 * linux-tdep.h (linux_get_hwcap): Add declaration.
12558 (linux_get_hwcap2): Likewise.
12559 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12560 (ppc_linux_get_hwcap2): Likewise.
12561 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12562 linux_get_hwcap.
12563 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12564 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12565 (ppc_linux_nat_target::read_description): Likewise.
12566 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12567 * s390-linux-nat.c: Likewise.
12568 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12569
6640a367
TT
125702019-03-24 Tom Tromey <tom@tromey.com>
12571
12572 * ada-lang.c (standard_lookup): Simplify initialization.
12573 (ada_lookup_symbol_nonlocal): Simplify return.
12574 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12575 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12576 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12577 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12578 initialization.
12579 * solib.c (solib_global_lookup): Simplify.
12580 * symtab.c (null_block_symbol): Remove.
12581 (symbol_cache_lookup): Simplify returns.
12582 (lookup_language_this): Simplify returns.
12583 (lookup_symbol_aux): Simplify return.
12584 (lookup_local_symbol): Simplify returns.
12585 (lookup_global_symbol_from_objfile): Simplify return.
12586 (lookup_symbol_in_objfile_symtabs)
12587 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12588 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12589 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12590 * cp-namespace.c (cp_lookup_bare_symbol)
12591 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12592 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12593 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12594 (cp_lookup_symbol_via_imports): Simplify initialization.
12595 (find_symbol_in_baseclass): Likewise.
12596 * symtab.h (null_block_symbol): Remove.
12597 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12598 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12599 (d_lookup_symbol_module): Likewise.
12600 (find_symbol_in_baseclass): Simplify initialization.
12601
a930ebcd
TT
126022019-03-24 Tom Tromey <tom@tromey.com>
12603
12604 * expression.h: Don't include symtab.h.
12605 (struct block): Forward declare.
12606
582942f4
TT
126072019-03-24 Tom Tromey <tom@tromey.com>
12608
12609 * c-exp.y (typebase): Remove casts.
12610 * gdbtypes.c (lookup_unsigned_typename, )
12611 (lookup_signed_typename): Remove cast.
12612 * eval.c (parse_to_comma_and_eval): Remove cast.
12613 * parse.c (write_dollar_variable): Remove cast.
12614 * block.h (struct block) <superblock>: Now const.
12615 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12616 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12617 (map_block): Make "block" const.
12618 * symfile.h (struct quick_symbol_functions)
12619 <map_matching_symbols>: Constify block argument to "callback".
12620 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12621 const.
12622 (find_pc_sect_compunit_symtab): Make "b" const.
12623 (find_symbol_at_address): Likewise.
12624 (search_symbols): Likewise.
12625 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12626 (dw2_debug_names_lookup_symbol): Likewise.
12627 (dw2_map_matching_symbols): Update.
12628 * p-valprint.c (pascal_val_print): Remove "block".
12629 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12630 (aux_add_nonlocal_symbols): Make "block" const.
12631 (resolve_subexp): Remove cast.
12632 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12633 const.
12634 (iterate_over_file_blocks): Likewise.
12635 * f-exp.y (%union) <bval>: Remove.
12636 * coffread.c (patch_opaque_types): Make "b" const.
12637 * spu-tdep.c (spu_catch_start): Make "block" const.
12638 * c-valprint.c (print_unpacked_pointer): Remove "block".
12639 * symmisc.c (dump_symtab_1): Make "b" const.
12640 (block_depth): Make "block" const.
12641 * d-exp.y (%union) <bval>: Remove.
12642 * cp-support.h (cp_lookup_rtti_type): Update.
12643 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12644 * psymtab.c (psym_lookup_symbol): Make "block" const.
12645 (maintenance_check_psymtabs): Make "b" const.
12646 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12647 (enumerate_locals, enumerate_args): Update.
12648 * python/py-symtab.c (stpy_global_block): Make "block" const.
12649 (stpy_static_block): Likewise.
12650 * inline-frame.c (block_starting_point_at): Make "new_block"
12651 const.
12652 * block.c (find_block_in_blockvector): Make return type const.
12653 (blockvector_for_pc_sect): Make "b" const.
12654 (find_block_in_blockvector): Make "b" const.
12655
7ad417dd
TT
126562019-03-23 Tom Tromey <tom@tromey.com>
12657
12658 * varobj.c (varobj_create): Update.
12659 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12660 * printcmd.c (display_command, do_one_display): Don't reset
12661 innermost_block.
12662 * parser-defs.h (enum innermost_block_tracker_type): Move to
12663 expression.h.
12664 (innermost_block): Update comment.
12665 * parse.c (parse_exp_1): Add tracker_types parameter.
12666 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12667 tracker_types parameter. Reset innermost_block.
12668 (parse_exp_in_context): Remove.
12669 (parse_expression_for_completion): Update.
12670 * objfiles.c (~objfile): Don't reset expression_context_block or
12671 innermost_block.
12672 * expression.h (enum innermost_block_tracker_type): Move from
12673 parser-defs.h.
12674 (parse_exp_1): Add tracker_types parameter.
12675 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12676 reset innermost_block.
12677
b366c208
TT
126782019-03-23 Tom Tromey <tom@tromey.com>
12679
12680 * objfiles.h: Include bcache.h.
12681
9bb9b2f9
TT
126822019-03-23 Tom Tromey <tom@tromey.com>
12683
12684 * linespec.c (get_current_search_block): Use
12685 scoped_restore_current_language.
12686 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12687
59c28372
AH
126882019-03-22 Alan Hayward <alan.hayward@arm.com>
12689 Jiong Wang <jiong.wang@arm.com>
12690
12691 * aarch64-linux-tdep.c
12692 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12693 section.
12694 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12695
17e116a7
AH
126962019-03-22 Alan Hayward <alan.hayward@arm.com>
12697 Jiong Wang <jiong.wang@arm.com>
12698
12699 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12700 instructions.
12701 (aarch64_analyze_prologue_test): Add PACIASP test.
12702 (aarch64_prologue_prev_register): Unmask PC value.
12703
11e1b75f
AH
127042019-03-22 Alan Hayward <alan.hayward@arm.com>
12705 Jiong Wang <jiong.wang@arm.com>
12706
12707 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12708 (aarch64_dwarf2_prev_register): Unmask PC value.
12709 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12710 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12711 DW_CFA_AARCH64_negate_ra_state.
12712 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12713
34dcc7cf
AH
127142019-03-22 Alan Hayward <alan.hayward@arm.com>
12715 Jiong Wang <jiong.wang@arm.com>
12716
12717 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12718 registers.
12719 (aarch64_pseudo_register_name): Likewise.
12720 (aarch64_pseudo_register_type): Likewise.
12721 (aarch64_pseudo_register_reggroup_p): Likewise.
12722 (aarch64_gdbarch_init): Add pauth registers.
12723 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12724 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12725 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12726 (struct gdbarch_tdep): Add regnum for ra_state.
12727
1ef53e6b
AH
127282019-03-22 Alan Hayward <alan.hayward@arm.com>
12729 Jiong Wang <jiong.wang@arm.com>
12730
12731 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12732
76bed0fd
AH
127332019-03-22 Alan Hayward <alan.hayward@arm.com>
12734 Jiong Wang <jiong.wang@arm.com>
12735
12736 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12737 function.
12738 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12739 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12740 (aarch64_gdbarch_init): Add puth registers.
12741 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12742 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12743 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12744
ee4fbcfa
AH
127452019-03-22 Alan Hayward <alan.hayward@arm.com>
12746 Jiong Wang <jiong.wang@arm.com>
12747
12748 * aarch64-linux-nat.c
12749 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12750 * aarch64-linux-tdep.c
12751 (aarch64_linux_core_read_description): Likewise.
12752 (aarch64_linux_get_hwcap): New function.
12753 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12754 (aarch64_linux_get_hwcap): New declaration.
12755
6dc0ebde
AH
127562019-03-22 Alan Hayward <alan.hayward@arm.com>
12757 Jiong Wang <jiong.wang@arm.com>
12758
12759 * aarch64-linux-nat.c
12760 (aarch64_linux_nat_target::read_description): Add pauth param.
12761 * aarch64-linux-tdep.c
12762 (aarch64_linux_core_read_description): Likewise.
12763 * aarch64-tdep.c (struct target_desc): Add in pauth.
12764 (aarch64_read_description): Add pauth param.
12765 (aarch64_gdbarch_init): Likewise.
12766 * aarch64-tdep.h (aarch64_read_description): Likewise.
12767 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12768 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12769 * features/Makefile: Add new files.
12770 * features/aarch64-pauth.c: New file.
12771 * features/aarch64-pauth.xml: New file.
12772
595915c1
TT
127732019-03-20 Tom Tromey <tromey@adacore.com>
12774
12775 * infrun.c (handle_inferior_event): Rename from
12776 handle_inferior_event_1. Create a scoped_value_mark.
12777 (handle_inferior_event): Remove.
12778
4c7d57e7
TT
127792019-03-19 Tom Tromey <tromey@adacore.com>
12780
12781 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12782 * infrun.h (print_stop_event): Add "displays" parameter.
12783 * infrun.c (print_stop_event): Add "displays" parameter.
12784
cb246234
PA
127852019-03-19 Pedro Alves <palves@redhat.com>
12786
12787 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12788 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12789 to -1. Fix TABs vs spaces.
12790 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12791 * tui/tui-out.h (tui_ui_out) Add intro comments.
12792 <m_line, m_start_of_line>: In-class initialize, and add describing
12793 comment.
12794
3a0e45b2
AH
127952019-03-18 Alan Hayward <alan.hayward@arm.com>
12796
12797 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12798 variable names.
12799 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12800
5371b850
PA
128012019-03-18 Pedro Alves <palves@redhat.com>
12802 Eli Zaretskii <eliz@gnu.org>
12803
12804 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12805 m_line and m_start_of_line.
12806
b17c4cd0
EZ
128072019-03-18 Eli Zaretskii <eliz@gnu.org>
12808
12809 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12810 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12811 it returns a newline. This fixes a regression in TU mode, whereby
12812 the next line is output on the same screen line as the user input.
12813
4bd56d18
TT
128142019-03-18 Tom Tromey <tromey@adacore.com>
12815
12816 * minsyms.c (minimal_symbol_reader::install): Remove call to
12817 obstack_blank.
12818
55c10aca
PA
128192019-03-18 Pedro Alves <palves@redhat.com>
12820
12821 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12822 New globals.
12823 (apply_style): New, factored out from ...
12824 (apply_ansi_escape): ... this. Handle reverse video mode.
12825 (tui_set_reverse_mode): New function.
12826 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12827 * tui/tui-winsource.c (tui_show_source_line): Use
12828 tui_set_reverse_mode instead of setting A_STANDOUT.
12829 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12830 New setter methods.
12831
647bb750
HD
128322019-03-18 Hannes Domani <ssbssa@yahoo.de>
12833
12834 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12835 Handle tabs.
12836
bff8c71f
TT
128372019-03-18 Tom Tromey <tromey@adacore.com>
12838
12839 * ada-lang.c (empty_array): Add "high" parameter.
12840 (ada_evaluate_subexp): Update.
12841
58785d98
ST
128422019-03-17 Sergei Trofimovich <siarheit@google.com>
12843
12844 * unittests/string_view-selftests.c: Define
12845 _initialize_string_view_selftests unconditionally.
12846
d4cbef22
ВМ
128472019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12848
12849 PR gdb/24350
12850 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12851
fce4c071
ВМ
128522019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12853
12854 PR gdb/24351
12855 * windows-nat.c (display_selector): Fix format specifiers.
12856
f7f0a123
EZ
128572019-03-17 Eli Zaretskii <eliz@gnu.org>
12858
12859 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12860 tui_refill_source_window instead of tui_refresh_win, to update the
12861 current execution line. This fixes redisplay of the current line
12862 when stepping through the code with "next" or "step".
12863
ab42892f
EZ
128642019-03-16 Eli Zaretskii <eliz@gnu.org>
12865
12866 * source-cache.c (source_cache::get_source_lines): Call
12867 find_source_lines to initialize s->nlines. This fixes vertical
12868 scrolling of TUI source window when the DOWN arrow is pressed.
12869
8d8c087f
PW
128702019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12871
12872 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12873 linux-thread-db.c (_initialize_thread_db): Likewise.
12874
798e1c30
EZ
128752019-03-16 Eli Zaretskii <eliz@gnu.org>
12876
12877 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12878 wclrtoeol in tui_show_source_line". This reverts changes made in
12879 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12880
eefba3da
TT
128812019-03-15 Tom Tromey <tom@tromey.com>
12882
12883 * symtab.h (struct minimal_symbol): Derive from
12884 general_symbol_info.
12885 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12886 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12887 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12888 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12889 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12890 (MSYMBOL_SEARCH_NAME): Update.
12891 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12892 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12893 * minsyms.c (minimal_symbol_reader::record_full): Update.
12894
0de2420c
TT
128952019-03-15 Tom Tromey <tom@tromey.com>
12896
12897 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12898
042d75e4
TT
128992019-03-15 Tom Tromey <tom@tromey.com>
12900
12901 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12902 unique_xmalloc_ptr.
12903 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12904 Update.
12905 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12906 (build_minimal_symbol_hash_tables)
12907 (minimal_symbol_reader::install): Update.
12908
db92718b
TT
129092019-03-15 Tom Tromey <tom@tromey.com>
12910
12911 * symtab.c (create_demangled_names_hash): Update.
12912 (symbol_set_names): Update.
12913 * objfiles.h (struct objfile_per_bfd_storage)
12914 <demangled_names_hash>: Now an htab_up.
12915 * objfiles.c (objfile_per_bfd_storage): Simplify.
12916
d6797f46
TT
129172019-03-15 Tom Tromey <tom@tromey.com>
12918
12919 * objfiles.h (struct objfile_per_bfd_storage): Declare
12920 destructor.
12921 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12922 New.
12923 (get_objfile_bfd_data): Use new. Don't initialize
12924 language_of_main.
12925 (free_objfile_per_bfd_storage): Remove.
12926 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12927
741d7538
TT
129282019-03-15 Tom Tromey <tom@tromey.com>
12929
12930 * symfile.c (reread_symbols): Update.
12931 * objfiles.c (objfile::objfile): Update.
12932 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12933 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12934 comment.
12935 (minimal_symbol_reader::install): Update.
12936 (terminate_minimal_symbol_table): Remove.
12937 * jit.c (jit_object_close_impl): Update.
12938
788c80d1
TT
129392019-03-15 Tom Tromey <tom@tromey.com>
12940
12941 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12942 initializations.
12943
1b7a07cb
TT
129442019-03-15 Tom Tromey <tom@tromey.com>
12945
12946 * objfiles.h (struct objfile_per_bfd_storage)
12947 <demangled_hash_languages>: Now a bitset.
12948 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12949 (lookup_minimal_symbol): Update.
12950
3db066bc
TT
129512019-03-15 Tom Tromey <tom@tromey.com>
12952
12953 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12954 Don't return the symbol.
12955 * coffread.c (record_minimal_symbol): Use record_full.
12956
3fff2c37
EZ
129572019-03-14 Eli Zaretskii <eliz@gnu.org>
12958
12959 The MS-Windows port of ncurses fails to switch to a color pair if
12960 one or both of the colors are the implicit default colors. This
12961 change records the default colors when TUI is initialized, and
12962 then specifies them explicitly when a color pair uses the default
12963 colors. This allows color styling in TUI mode on MS-Windows.
12964
12965 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12966 ncurses_norm_attr.
12967 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12968 colors in ncurses_norm_attr.
12969 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12970 "none", replace it with the default color recorded in
12971 ncurses_norm_attr.
12972
3b336828
TT
129732019-03-14 Tom Tromey <tromey@adacore.com>
12974
12975 * source-cache.h (class source_cache) <get_source_lines>: Return
12976 std::string.
12977 * source-cache.c (source_cache::extract_lines): Handle case where
12978 first_pos==npos. Return std::string.
12979 (source_cache::get_source_lines): Update.
12980
d085f989
TT
129812019-03-14 Tom Tromey <tromey@adacore.com>
12982
12983 * NEWS: Add item for "style sources" commands.
12984 * source-cache.c (source_cache::get_source_lines): Check
12985 source_styling.
12986 * cli/cli-style.c (source_styling): New global.
12987 (_initialize_cli_style): Add "style sources" commands.
12988 (show_style_sources): New function.
12989 * cli/cli-style.h (source_styling): Declare.
12990
6f11e682
TT
129912019-03-14 Pedro Alves <palves@redhat.com>
12992 Tom Tromey <tromey@adacore.com>
12993
12994 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12995 * tui/tui-winsource.c (tui_refill_source_window): New function,
12996 from...
12997 (tui_horizontal_source_scroll): ... here. Move some logic.
12998 * cli/cli-style.c (set_style_enabled): Notify new observable.
12999 * tui/tui-hooks.c (tui_redisplay_source): New function.
13000 (tui_attach_detach_observers): Attach or detach
13001 tui_redisplay_source.
13002 * observable.h (source_styling_changed): New observable.
13003 * observable.c: Define source_styling_changed observable.
13004
a068643d
TT
130052019-03-13 Tom Tromey <tromey@adacore.com>
13006
13007 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13008 (i386_gnu_nat_target::store_registers): Update.
13009 * target-debug.h (target_debug_print_std_string): New macro.
13010 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13011 * windows-tdep.c (display_one_tib): Update.
13012 * tui/tui-stack.c (tui_make_status_line): Update.
13013 * top.c (print_inferior_quit_action): Update.
13014 * thread.c (thr_try_catch_cmd): Update.
13015 (add_thread_with_info): Update.
13016 (thread_target_id_str): Update.
13017 (thr_try_catch_cmd): Update.
13018 (thread_command): Update.
13019 (thread_find_command): Update.
13020 * record-btrace.c (record_btrace_target::info_record)
13021 (record_btrace_resume_thread, record_btrace_target::resume)
13022 (record_btrace_cancel_resume, record_btrace_step_thread)
13023 (record_btrace_target::wait, record_btrace_target::wait)
13024 (record_btrace_target::wait, record_btrace_target::stop): Update.
13025 * progspace.c (print_program_space): Update.
13026 * process-stratum-target.c
13027 (process_stratum_target::thread_address_space): Update.
13028 * linux-fork.c (linux_fork_mourn_inferior)
13029 (detach_checkpoint_command, info_checkpoints_command)
13030 (linux_fork_context): Update.
13031 (linux_fork_detach): Update.
13032 (class scoped_switch_fork_info): Update.
13033 (delete_checkpoint_command): Update.
13034 * infrun.c (follow_fork_inferior): Update.
13035 (follow_fork_inferior): Update.
13036 (proceed_after_vfork_done): Update.
13037 (handle_vfork_child_exec_or_exit): Update.
13038 (follow_exec): Update.
13039 (displaced_step_prepare_throw): Update.
13040 (displaced_step_restore): Update.
13041 (start_step_over): Update.
13042 (resume_1): Update.
13043 (clear_proceed_status_thread): Update.
13044 (proceed): Update.
13045 (print_target_wait_results): Update.
13046 (do_target_wait): Update.
13047 (context_switch): Update.
13048 (stop_all_threads): Update.
13049 (restart_threads): Update.
13050 (finish_step_over): Update.
13051 (handle_signal_stop): Update.
13052 (switch_back_to_stepped_thread): Update.
13053 (keep_going_pass_signal): Update.
13054 (print_exited_reason): Update.
13055 (normal_stop): Update.
13056 * inferior.c (inferior_pid_to_str): Change return type.
13057 (print_selected_inferior): Update.
13058 (add_inferior): Update.
13059 (detach_inferior): Update.
13060 * dummy-frame.c (fprint_dummy_frames): Update.
13061 * dcache.c (dcache_info_1): Update.
13062 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13063 (btrace_fetch, btrace_clear): Update.
13064 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13065 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13066 type.
13067 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13068 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13069 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13070 * gdbarch.c, gdbarch.h: Rebuild.
13071 * gdbarch.sh (core_pid_to_str): Change return type.
13072 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13073 return type.
13074 (windows_nat_target::pid_to_str): Change return type.
13075 (windows_delete_thread): Update.
13076 (windows_nat_target::attach): Update.
13077 (windows_nat_target::files_info): Update.
13078 * target-delegates.c: Rebuild.
13079 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13080 return type.
13081 (sol_thread_target::pid_to_str): Change return type.
13082 * remote.c (class remote_target) <pid_to_str>: Change return
13083 type.
13084 (remote_target::pid_to_str): Change return type.
13085 (extended_remote_target::attach, remote_target::remote_stop_ns)
13086 (remote_target::remote_notif_remove_queued_reply)
13087 (remote_target::push_stop_reply, remote_target::disable_btrace):
13088 Update.
13089 (extended_remote_target::attach): Update.
13090 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13091 type.
13092 (gdbsim_target::pid_to_str): Change return type.
13093 * ravenscar-thread.c (struct ravenscar_thread_target)
13094 <pid_to_str>: Change return type.
13095 (ravenscar_thread_target::pid_to_str): Change return type.
13096 * procfs.c (class procfs_target) <pid_to_str>: Change return
13097 type.
13098 (procfs_target::pid_to_str): Change return type.
13099 (procfs_target::attach): Update.
13100 (procfs_target::detach): Update.
13101 (procfs_target::fetch_registers): Update.
13102 (procfs_target::store_registers): Update.
13103 (procfs_target::wait): Update.
13104 (procfs_target::files_info): Update.
13105 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13106 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13107 return type.
13108 (nto_procfs_target::pid_to_str): Change return type.
13109 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13110 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13111 return type.
13112 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13113 (exit_lwp): Update.
13114 (attach_proc_task_lwp_callback, get_detach_signal)
13115 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13116 (linux_nat_target::resume, wait_lwp, stop_callback)
13117 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13118 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13119 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13120 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13121 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13122 type.
13123 (inf_ptrace_target::attach): Update.
13124 (inf_ptrace_target::files_info): Update.
13125 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13126 type.
13127 (go32_nat_target::pid_to_str): Change return type.
13128 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13129 (gnu_nat_target::wait): Update.
13130 (gnu_nat_target::wait): Update.
13131 (gnu_nat_target::resume): Update.
13132 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13133 (fbsd_nat_target::wait): Update.
13134 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13135 type.
13136 (darwin_nat_target::attach): Update.
13137 * corelow.c (class core_target) <pid_to_str>: Change return type.
13138 (core_target::pid_to_str): Change return type.
13139 * target.c (normal_pid_to_str): Change return type.
13140 (default_pid_to_str): Likewise.
13141 (target_pid_to_str): Change return type.
13142 (target_translate_tls_address): Update.
13143 (target_announce_detach): Update.
13144 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13145 return type.
13146 (bsd_uthread_target::pid_to_str): Change return type.
13147 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13148 type.
13149 (bsd_kvm_target::pid_to_str): Change return type.
13150 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13151 return type.
13152 (aix_thread_target::pid_to_str): Change return type.
13153 * target.h (struct target_ops) <pid_to_str>: Change return type.
13154 (target_pid_to_str, normal_pid_to_str): Likewise.
13155 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13156 type.
13157 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13158 type.
13159 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13160 return type.
13161 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13162 type.
13163 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13164 type.
13165 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13166 return type.
13167
b4be1b06
SM
131682019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13169
13170 * NEWS: Mention that the new default MI version is 3. Mention
13171 changes to the output of commands and events that deal with
13172 multi-location breakpoints.
13173 * breakpoint.c: Include "mi/mi-out.h".
13174 (print_one_breakpoint): Change output syntax if using MI version
13175 >= 3.
13176 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13177 New.
13178 (mi_multi_location_breakpoint_output_fixed): New.
13179 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13180 (mi_cmd_fix_multi_location_breakpoint_output): New.
13181 (mi_multi_location_breakpoint_output_fixed): New.
13182 * mi/mi-cmds.c (mi_cmds): Register command
13183 -fix-multi-location-breakpoint-output.
13184 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13185 interpreter "mi".
13186
8e5e5494
SM
131872019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13188
13189 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13190 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13191 instantiate mi_ui_out based on interpreter name.
13192 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13193 * mi/mi-main.c (mi_load_progress): Likewise.
13194
197df35e
JB
131952019-03-12 John Baldwin <jhb@FreeBSD.org>
13196
13197 * NEWS: Combine separate "New targets" sections for 8.3.
13198
8399425f
JB
131992019-03-12 John Baldwin <jhb@FreeBSD.org>
13200
13201 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13202 (ppcfbsd_init_abi): Install gdbarch
13203 "fetch_tls_load_module_address" and "get_thread_local_address"
13204 methods.
13205
b0f87ed0
JB
132062019-03-12 John Baldwin <jhb@FreeBSD.org>
13207
13208 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13209 (riscv_fbsd_init_abi): Install gdbarch
13210 "fetch_tls_load_module_address" and "get_thread_local_address"
13211 methods.
13212
ce25aa57
JB
132132019-03-12 John Baldwin <jhb@FreeBSD.org>
13214
13215 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13216 (i386fbsd_init_abi): Install gdbarch
13217 "fetch_tls_load_module_address" and "get_thread_local_address"
13218 methods.
13219
f5424cfa
JB
132202019-03-12 John Baldwin <jhb@FreeBSD.org>
13221
13222 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13223 (amd64fbsd_init_abi): Install gdbarch
13224 "fetch_tls_load_module_address" and "get_thread_local_address"
13225 methods.
13226
945f3901
JB
132272019-03-12 John Baldwin <jhb@FreeBSD.org>
13228
13229 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13230 (struct fbsd_pspace_data): New type.
13231 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13232 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13233 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13234 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13235 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13236
ef0bd204
JB
132372019-03-12 John Baldwin <jhb@FreeBSD.org>
13238
13239 * gdbtypes.c (lookup_struct_elt): New function.
13240 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13241 * gdbtypes.h (struct struct_elt): New type.
13242 (lookup_struct_elt): New prototype.
13243
36c53a02
JB
132442019-03-12 John Baldwin <jhb@FreeBSD.org>
13245
13246 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13247 remove disabled code block.
13248
6e056c81
JB
132492019-03-12 John Baldwin <jhb@FreeBSD.org>
13250
13251 * gdbarch.sh (get_thread_local_address): New method.
13252 * gdbarch.h, gdbarch.c: Regenerate.
13253 * target.c (target_translate_tls_address): Use
13254 gdbarch_get_thread_local_address if present instead of
13255 target::get_thread_local_address.
13256
cd250a18
JB
132572019-03-12 John Baldwin <jhb@FreeBSD.org>
13258
13259 * target.h (target::get_thread_local_address): Update comment.
13260
df22c1e5
JB
132612019-03-12 John Baldwin <jhb@FreeBSD.org>
13262
13263 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13264 objfile->separate_debug_objfile_backlink if not NULL.
13265
dd6876c9
JB
132662019-03-12 John Baldwin <jhb@FreeBSD.org>
13267
13268 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13269 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13270 (amd64bsd_store_inferior_registers): Likewise.
13271 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13272 Enable segment base registers.
13273 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13274 PT_GETFSBASE and PT_GETGSBASE.
13275 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13276 PT_SETGSBASE.
13277 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13278 segment base registers.
13279 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13280
1163a4b7
JB
132812019-03-12 John Baldwin <jhb@FreeBSD.org>
13282
13283 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13284 Update calls to i386_target_description to add 'segments'
13285 parameter.
13286 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13287 add segment base registers.
13288 * arch/i386.c (i386_create_target_description): Add 'segments'
13289 parameter to enable segment base registers.
13290 * arch/i386.h (i386_create_target_description): Likewise.
13291 * features/i386/32bit-segments.xml: New file.
13292 * features/i386/32bit-segments.c: Generate.
13293 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13294 call to i386_target_description to add 'segments' parameter.
13295 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13296 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13297 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13298 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13299 if feature is present.
13300 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13301 Add 'segments' parameter to call to i386_target_description.
13302 (i386_target_description): Add 'segments' parameter to enable
13303 segment base registers.
13304 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13305 to call to i386_target_description.
13306 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13307 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13308 Define I386_NUM_REGS.
13309 (i386_target_description): Add 'segments' parameter to enable
13310 segment base registers.
13311
3a350822
EZ
133122019-03-12 Eli Zaretskii <eliz@gnu.org>
13313
13314 PR/24325
13315 * source-cache.c: #undef open and close, to avoid unresolved
13316 externals during linking.
13317
ffdd69cf
TT
133182019-03-12 Tom Tromey <tromey@adacore.com>
13319
13320 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13321 const. Add initializers.
13322 (_initialize_remote): Don't initialize ptid globals.
13323
ec148c57
PA
133242019-03-12 Pedro Alves <palves@redhat.com>
13325
13326 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13327
32764270
PA
133282019-03-12 Pedro Alves <palves@redhat.com>
13329
13330 * cp-name-parser.y (main): Remove unused 'len' variable.
13331
17547186
TT
133322019-03-12 Tom Tromey <tromey@adacore.com>
13333
13334 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13335 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13336
d3a70e03
TT
133372019-03-12 Tom Tromey <tromey@adacore.com>
13338
13339 * linux-nat.c (iterate_over_lwps): Update.
13340 (stop_callback): Remove parameter.
13341 (stop_wait_callback, detach_callback, resume_set_callback)
13342 (select_singlestep_lwp_callback, set_ignore_sigint)
13343 (status_callback, resumed_callback, resume_clear_callback)
13344 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13345 data parameter.
13346 (linux_nat_target::detach, linux_nat_target::resume)
13347 (linux_stop_and_wait_all_lwps, select_event_lwp)
13348 (linux_nat_filter_event, linux_nat_wait_1)
13349 (linux_nat_target::kill, linux_nat_target::stop)
13350 (linux_nat_target::stop): Update.
13351 (linux_nat_resume_callback): Change type.
13352 (resume_stopped_resumed_lwps, count_events_callback)
13353 (select_event_lwp_callback): Likewise.
13354 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13355 * arm-linux-nat.c (struct update_registers_data): Remove.
13356 (update_registers_callback): Change type.
13357 (arm_linux_insert_hw_breakpoint1): Update.
13358 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13359 parameter.
13360 (x86_linux_dr_set_addr): Update.
13361 (x86_linux_dr_set_control): Update.
13362 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13363 (iterate_over_lwps): Use gdb::function_view.
13364 * nat/aarch64-linux-hw-point.c (struct
13365 aarch64_dr_update_callback_param): Remove.
13366 (debug_reg_change_callback): Change type.
13367 (aarch64_notify_debug_reg_change): Update.
13368 * s390-linux-nat.c (s390_refresh_per_info): Update.
13369
82cb27ff
TT
133702019-03-11 Tom Tromey <tromey@adacore.com>
13371
13372 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13373 redundant assignment to "this_cu".
13374
568c0683
SM
133752019-03-08 Simon Marchi <simon.marchi@efficios.com>
13376
13377 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13378
f09ce22d
SM
133792019-03-08 Simon Marchi <simon.marchi@efficios.com>
13380
13381 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13382 from...
13383 (rank_one_type): ... this.
13384
595f96a9
SM
133852019-03-08 Simon Marchi <simon.marchi@efficios.com>
13386
13387 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13388 from...
13389 (rank_one_type): ... this.
13390
2598a94b
SM
133912019-03-08 Simon Marchi <simon.marchi@efficios.com>
13392
13393 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13394 from...
13395 (rank_one_type): ... this.
13396
7f17b20d
SM
133972019-03-08 Simon Marchi <simon.marchi@efficios.com>
13398
13399 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13400 from...
13401 (rank_one_type): ... this.
13402
2c509035
SM
134032019-03-08 Simon Marchi <simon.marchi@efficios.com>
13404
13405 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13406 from...
13407 (rank_one_type): ... this.
13408
0dd322dc
SM
134092019-03-08 Simon Marchi <simon.marchi@efficios.com>
13410
13411 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13412 from...
13413 (rank_one_type): ... this.
13414
41ea4728
SM
134152019-03-08 Simon Marchi <simon.marchi@efficios.com>
13416
13417 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13418 from...
13419 (rank_one_type): ... this.
13420
793cd1d2
SM
134212019-03-08 Simon Marchi <simon.marchi@efficios.com>
13422
13423 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13424 from...
13425 (rank_one_type): ... this.
13426
34910087
SM
134272019-03-08 Simon Marchi <simon.marchi@efficios.com>
13428
13429 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13430 from...
13431 (rank_one_type): ... this.
13432
f1f832d6
SM
134332019-03-08 Simon Marchi <simon.marchi@efficios.com>
13434
13435 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13436 from...
13437 (rank_one_type): ... this.
13438
b9f4512f
SM
134392019-03-08 Simon Marchi <simon.marchi@efficios.com>
13440
13441 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13442 from...
13443 (rank_one_type): ... this.
13444
9293fc63
SM
134452019-03-08 Simon Marchi <simon.marchi@efficios.com>
13446
13447 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13448 from...
13449 (rank_one_type): ... this.
13450
e3abbe7e
PW
134512019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13452
13453 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13454 inferior-events' shows the example events.
13455
e4adb939
EZ
134562019-03-08 Eli Zaretskii <eliz@gnu.org>
13457
13458 Support styling on native MS-Windows console
13459
13460 PR/24315
13461 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13462 on MS-Windows if $TERM is not defined.
13463
13464 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13465
13466 * posix-hdep.c (gdb_console_fputs):
13467 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13468 functions.
13469 * ui-file.h (gdb_console_fputs): Add prototype.
13470
13471 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13472 back to fputs only if the former returns zero.
13473
25629dfd
TT
134742019-03-07 Tom Tromey <tom@tromey.com>
13475
13476 * symmisc.c (print_symbol_bcache_statistics): Update.
13477 (print_objfile_statistics): Update.
13478 * symfile.c (allocate_symtab): Update.
13479 * stabsread.c: Don't include bcache.h.
13480 * psymtab.h (struct psymbol_bcache): Don't declare.
13481 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13482 (psymbol_bcache_init, psymbol_bcache_free)
13483 (psymbol_bcache_get_bcache): Don't declare.
13484 * psymtab.c (struct psymbol_bcache): Remove.
13485 (psymtab_storage::psymtab_storage): Update.
13486 (psymtab_storage::~psymtab_storage): Update.
13487 (psymbol_bcache_init, psymbol_bcache_free)
13488 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13489 (add_psymbol_to_bcache): Update.
13490 (allocate_psymtab): Update.
13491 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13492 macro_cache>: No longer pointers.
13493 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13494 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13495 * macrotab.c (macro_bcache): Update.
13496 * macroexp.c: Don't include bcache.h.
13497 * gdbtypes.c (check_types_worklist): Update.
13498 (types_deeply_equal): Remove TRY/CATCH. Update.
13499 * elfread.c (elf_symtab_read): Update.
13500 * dwarf2read.c: Don't include bcache.h.
13501 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13502 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13503 (print_bcache_statistics, bcache_memory_used): Don't declare.
13504 (struct bcache): Move from bcache.c. Add constructor, destructor,
13505 methods. Rename all data members.
13506 * bcache.c (struct bcache): Move to bcache.h.
13507 (bcache::expand_hash_table): Rename from expand_hash_table.
13508 (bcache): Remove.
13509 (bcache::insert): Rename from bcache_full.
13510 (bcache::compare): Rename from bcache_compare.
13511 (bcache_xmalloc): Remove.
13512 (bcache::~bcache): Rename from bcache_xfree.
13513 (bcache::print_statistics): Rename from print_bcache_statistics.
13514 (bcache::memory_used): Rename from bcache_memory_used.
13515
fe726667
PA
135162019-03-07 Pedro Alves <palves@redhat.com>
13517
13518 * infrun.c (normal_stop): Also check for
13519 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13520
7584bb30
AB
135212019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13522
13523 * f-lang.c (value_from_host_double): Moved to...
13524 * value.c (value_from_host_double): ...here.
13525 * value.h (value_from_host_double): Declare.
13526 * guile/scm-math.c (vlscm_convert_typed_number): Use
13527 value_from_host_double.
13528 (vlscm_convert_number): Likewise.
13529 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13530 * python/py-value.c (convert_value_from_python): Likewise.
13531
a7b1986e
TT
135322019-03-06 Tom Tromey <tom@tromey.com>
13533
13534 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13535
0ccf4211
TT
135362019-03-06 Tom Tromey <tom@tromey.com>
13537
13538 * utils.h (free_current_contents): Don't declare.
13539 * utils.c (free_current_contents): Remove.
13540
fe7b42e5
TT
135412019-03-06 Tom Tromey <tom@tromey.com>
13542
13543 * top.c (quit_force): Update.
13544 * main.c (captured_command_loop): Update.
13545 * common/new-op.c (operator new): Update.
13546 * common/common-exceptions.c (struct catcher)
13547 <save_cleanup_chain>: Remove member.
13548 (exceptions_state_mc_init): Update.
13549 (exception_try_scope_entry): Return nullptr.
13550 (exception_try_scope_exit, exception_rethrow)
13551 (throw_exception_sjlj, throw_exception_cxx): Update.
13552 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13553 (all_cleanups, do_cleanups, discard_cleanups)
13554 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13555 (restore_cleanups, restore_final_cleanups): Don't declare.
13556 (do_final_cleanups): Remove parameter.
13557 * common/cleanups.c (cleanup_chain, make_cleanup)
13558 (make_cleanup_dtor, all_cleanups, do_cleanups)
13559 (discard_my_cleanups, discard_cleanups)
13560 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13561 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13562 (null_cleanup): Remove.
13563 (do_final_cleanups): Remove parameter.
13564
c6321f19
TT
135652019-03-06 Tom Tromey <tom@tromey.com>
13566
13567 * remote.c (remote_target::remote_parse_stop_reply): Use
13568 unique_xmalloc_ptr.
13569
61b30099
TT
135702019-03-06 Tom Tromey <tom@tromey.com>
13571
13572 * stabsread.c (struct stabs_field_info): Rename from field_info.
13573 <list, fnlist>: Add initializers.
13574 <obstack>: New member.
13575 (read_member_functions, read_struct_fields, read_baseclasses):
13576 Allocate on obstack. Don't use cleanups.
13577 (read_one_struct_field, read_member_functions, read_struct_fields)
13578 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13579 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13580 (read_struct_type): Update.
13581
6cceac94
TT
135822019-03-06 Tom Tromey <tom@tromey.com>
13583
13584 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13585 * common/filestuff.h (make_cleanup_close): Don't declare.
13586 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13587 Remove.
13588
72412762
TT
135892019-03-06 Tom Tromey <tom@tromey.com>
13590
13591 * solib-aix.c: Use make_scope_exit.
13592
2b6ff1c0
TT
135932019-03-06 Tom Tromey <tom@tromey.com>
13594
13595 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13596 Use make_scope_exit.
13597
d01c5877
TT
135982019-03-06 Tom Tromey <tom@tromey.com>
13599
13600 * solib-svr4.c (disable_probes_interface): Remove parameter.
13601 (svr4_handle_solib_event): Use make_scope_exit.
13602
32603266
TT
136032019-03-06 Tom Tromey <tom@tromey.com>
13604
13605 * remote.c (struct stop_reply_deleter): Remove.
13606 (stop_reply_up): Update.
13607 (struct stop_reply): Derive from notif_event. Don't typedef.
13608 <regcache>: Now a std::vector.
13609 (stop_reply_xfree): Remove.
13610 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13611 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13612 (remote_target::discard_pending_stop_replies): Use delete.
13613 (remote_target::remote_parse_stop_reply): Update.
13614 (remote_target::process_stop_reply): Update.
13615 * remote-notif.h (struct notif_event): Add virtual destructor.
13616 Remove "dtr" member.
13617 (struct notif_client) <alloc_event>: Return a unique_ptr.
13618 (notif_event_xfree): Don't declare.
13619 (notif_event_up): New typedef.
13620 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13621 (notif_event_xfree, do_notif_event_xfree): Remove.
13622 (remote_notif_state_xfree): Update.
13623
9799571e
TT
136242019-03-06 Tom Tromey <tom@tromey.com>
13625
13626 * infrun.c (displaced_step_clear_cleanup): Now a
13627 forward_scope_exit type.
13628 (displaced_step_prepare_throw): Update.
13629 (displaced_step_fixup): Update.
13630
09e3c4ca
TT
136312019-03-06 Tom Tromey <tom@tromey.com>
13632
13633 * inferior.h (class inferior): Update comment.
13634 * gdbthread.h (class thread_info): Update comment.
13635
e2a03548
TT
136362019-03-06 Joel Brobecker <brobecker@adacore.com>
13637 Tom Tromey <tom@tromey.com>
13638
13639 * stabsread.h (struct stab_section_list): Remove.
13640 (coffstab_build_psymtabs): Update.
13641 * dbxread.c (symbuf_sections): Now a std::vector.
13642 (sect_idx): New global.
13643 (fill_symbuf): Update.
13644 (coffstab_build_psymtabs): Change type of stabsects parameter.
13645 Update.
13646 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13647 std::vector.
13648 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13649 (coff_locate_sections): Update.
13650 (coff_symfile_read): Remove cleanups. Update.
13651 (init_stringtab): Add storage parameter.
13652 (free_stringtab, free_stringtab_cleanup): Remove.
13653 (init_lineno): Add storage parameter.
13654 (free_linetab, free_linetab_cleanup): Remove.
13655
b7e60d85
PA
136562019-03-06 Pedro Alves <palves@redhat.com>
13657
13658 * linux-fork.c (fork_info::clobber_regs): Delete.
13659 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13660 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13661 comment. Adjust.
13662 (scoped_switch_fork_info::scoped_switch_fork_info)
13663 (checkpoint_command, linux_fork_context): Adjust
13664 fork_save_infrun_state calls.
13665
e52c971f
PA
136662019-03-06 Pedro Alves <palves@redhat.com>
13667
13668 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13669 (inf_has_multiple_threads): Return 'bool' and rewrite using
13670 inferior_info::threads().
13671
06974e6c
PA
136722019-03-06 Pedro Alves <palves@redhat.com>
13673
13674 * linux-fork.c: Include <list>.
13675 (fork_list): Now a std::list instance.
13676 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13677 (forks_exist_p, find_last_fork): Adjust.
13678 (new_fork): Delete.
13679 (one_fork_p): New.
13680 (add_fork): Adjust.
13681 (free_fork): Delete, folded into fork_info::~fork_info().
13682 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13683 Adjust.
13684 (init_fork_list): Delete.
13685 (linux_fork_killall, linux_fork_mourn_inferior)
13686 (linux_fork_detach, info_checkpoints_command): Adjust.
13687 (_initialize_linux_fork): No longer call init_fork_list.
13688
72f31aea
PA
136892019-03-06 Pedro Alves <palves@redhat.com>
13690
13691 * linux-fork.c (new_fork): New, split out of ...
13692 (add_fork): ... this. Return void. Move "first fork" special
13693 case from here, to ...
13694 (checkpoint_command): ... here.
13695 * linux-linux.h (add_fork): Return void.
13696
efbecbc1
AB
136972019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13698
13699 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13700
0841c79a
AB
137012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13702 Chris January <chris.january@arm.com>
13703 David Lecomber <david.lecomber@arm.com>
13704
13705 * f-exp.y: New token, UNOP_INTRINSIC.
13706 (exp): New pattern using UNOP_INTRINSIC token.
13707 (f77_keywords): Add 'abs' keyword.
13708 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13709 (value_from_host_double): New function.
13710 (evaluate_subexp_f): Support UNOP_ABS.
13711
4a270568
AB
137122019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13713
13714 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13715 types.
13716
067630bd
AB
137172019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13718
13719 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13720 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13721 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13722
3be47f7a
AB
137232019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13724
13725 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13726
4d00f5d8
AB
137272019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13728 Chris January <chris.january@arm.com>
13729
13730 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13731 * f-exp.y: Define 'KIND' token.
13732 (exp): New pattern for KIND expressions.
13733 (ptype): Handle types with a kind extension.
13734 (direct_abs_decl): Extend to spot kind extensions.
13735 (f77_keywords): Add 'kind' to the list.
13736 (push_kind_type): New function.
13737 (convert_to_kind_type): New function.
13738 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13739 * parse.c (operator_length_standard): Likewise.
13740 * parser-defs.h (enum type_pieces): Add tp_kind.
13741 * std-operator.def: Add UNOP_KIND.
13742
e454224f
AB
137432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13744
13745 * f-exp.y (f_parse): Set yydebug.
13746
9dad4a58
AB
137472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13748
13749 * f-lang.c (evaluate_subexp_f): New function.
13750 (exp_descriptor_f): New global.
13751 (f_language_defn): Use exp_descriptor_f instead of
13752 exp_descriptor_standard.
13753
c8f91604
AB
137542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13755
13756 * f-exp.y (struct token): Add comments.
13757 (dot_ops): Remove uppercase versions and the end marker.
13758 (f77_keywords): Likewise.
13759 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13760 entries in the dot_ops array are case insensitive, and use
13761 strncasecmp to compare strings. Also some whitespace cleanup in
13762 this area. Similar for the f77_keywords array, except entries in
13763 this list might be case sensitive.
13764
dd9f2c76
AB
137652019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13766
13767 * f-exp.y (struct f77_boolean_val): Add comments.
13768 (boolean_values): Remove uppercase versions, and end marker.
13769 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13770 and use strncasecmp to achieve case insensitivity. Additionally,
13771 perform whitespace cleanup around this code.
13772
67a3048c
TT
137732019-03-06 Tom Tromey <tromey@adacore.com>
13774
13775 * remote-sim.c (gdbsim_target_open): Use result of
13776 gdb_argv::release.
13777
aa3cfbda
RB
137782019-03-06 Richard Bunt <richard.bunt@arm.com>
13779 Dirk Schubert <dirk.schubert@arm.com>
13780 Chris January <chris.january@arm.com>
13781
13782 * eval.c (evaluate_subexp_standard): Call Fortran argument
13783 wrapping logic.
13784 * f-lang.c (struct value): A value which can be passed into a
13785 Fortran function call.
13786 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13787 where appropriate.
13788 (struct type): Value ready for a Fortran function call.
13789 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13790 is needed.
13791 * f-lang.h (fortran_argument_convert): Declaration.
13792 (fortran_preserve_arg_pointer): Declaration.
13793 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13794
ea38e5df
TT
137952019-03-05 Tom Tromey <tromey@adacore.com>
13796
13797 * python/py-prettyprint.c (print_string_repr): Remove #if.
13798 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13799
06b5b831
TT
138002019-03-05 Tom Tromey <tromey@adacore.com>
13801
13802 * target.c (the_dummy_target): Move later. Change type to
13803 "dummy_target".
13804 (initialize_targets): Don't initialize the_dummy_target.
13805
edbd9e45
TT
138062019-03-05 Tom Tromey <tromey@adacore.com>
13807
13808 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13809 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13810
c119e040
TT
138112019-03-05 Tom Tromey <tromey@adacore.com>
13812
13813 * windows-nat.c (windows_nat_target::attach)
13814 (windows_nat_target::detach): Don't call gdb_flush.
13815 * valprint.c (generic_val_print, val_print, val_print_string):
13816 Don't call gdb_flush.
13817 * utils.c (defaulted_query): Don't call gdb_flush.
13818 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13819 * target.c (target_announce_detach): Don't call gdb_flush.
13820 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13821 * remote.c (extended_remote_target::attach): Don't call
13822 gdb_flush.
13823 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13824 * printcmd.c (do_examine): Don't call gdb_flush.
13825 (info_display_command): Don't call gdb_flush.
13826 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13827 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13828 * memattr.c (info_mem_command): Don't call gdb_flush.
13829 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13830 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13831 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13832 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13833 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13834 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13835 (gnu_nat_target::detach): Don't call gdb_flush.
13836 * f-valprint.c (f_val_print): Don't call gdb_flush.
13837 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13838 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13839 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13840 gdb_flush.
13841 * c-valprint.c (c_val_print): Don't call gdb_flush.
13842 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13843
895dafa6
TT
138442019-03-05 Tom Tromey <tromey@adacore.com>
13845
13846 * varobj.c (update_dynamic_varobj_children): Update.
13847 (install_default_visualizer): Use reset, not release.
13848 * value.c (set_internalvar): Update.
13849 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13850 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13851 ATTRIBUTE_UNUSED_RESULT.
13852
88a774b9
TT
138532019-03-05 Tom Tromey <tromey@adacore.com>
13854
13855 * remote.c (class scoped_remote_fd) <release>: Add
13856 ATTRIBUTE_UNUSED_RESULT.
13857
4e4a8b93
TT
138582019-03-05 Tom Tromey <tromey@adacore.com>
13859
13860 * macroexp.c (struct macro_buffer) <release>: Add
13861 ATTRIBUTE_UNUSED_RESULT.
13862
083eef1f
TT
138632019-03-05 Tom Tromey <tromey@adacore.com>
13864
13865 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13866 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13867 ATTRIBUTE_UNUSED_RESULT.
13868
3cabd438
TT
138692019-03-05 Tom Tromey <tromey@adacore.com>
13870
13871 * common/scoped_fd.h (class scoped_fd) <release>: Add
13872 ATTRIBUTE_UNUSED_RESULT.
13873
41e3300a
TT
138742019-03-05 Tom Tromey <tromey@adacore.com>
13875
13876 * parser-defs.h (struct parser_state) <release>: Add
13877 ATTRIBUTE_UNUSED_RESULT.
13878
18cb7c9f
TT
138792019-03-05 Tom Tromey <tromey@adacore.com>
13880
13881 * utils.h (class gdb_argv) <release>: Add
13882 ATTRIBUTE_UNUSED_RESULT.
13883 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13884
41fa577f
EZ
138852019-03-02 Eli Zaretskii <eliz@gnu.org>
13886
a6a4b2c6
EZ
13887 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13888 for-loop range, to avoid compiler warnings.
13889
13890 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13891 avoid compiler warnings about unused variables.
13892
742a7df5
EZ
13893 * NEWS: Mention end of support for native debugging on MS-Windows
13894 before XP.
13895
41fa577f
EZ
13896 PR gdb/24292
13897 * common/netstuff.c:
13898 * gdbserver/gdbreplay.c
13899 * gdbserver/remote-utils.c:
13900 * ser-tcp.c:
13901 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13902 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13903 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13904 'getaddrinfo' and 'freeaddrinfo' were not available before
13905 Windows XP, and mingw.org's MinGW headers by default define
13906 _WIN32_WINNT to 0x500.
13907
827f438f
GB
139082019-03-01 Gary Benson <gbenson@redhat.com>
13909
13910 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13911
92137da0
RO
139122019-02-28 Brian Vandenberg <phantall@gmail.com>
13913 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13914
13915 PR gdb/8527
13916 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13917 set_sigint_trap, clear_sigint_trap.
13918
799efbe8
PW
139192019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13920
13921 * target.c (target_detach): Clear the regcache and the
13922 frame cache.
13923
8ed25214
PA
139242019-02-27 Pedro Alves <palves@redhat.com>
13925
13926 * utils.c (set_screen_size): When we cap the height/width sizes,
13927 tweak the corresponding command variable to show "unlimited":
13928
23031e31
SJ
139292019-02-27 Saagar Jha <saagar@saagarjha.com>
13930 Pedro Alves <palves@redhat.com>
13931
13932 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13933 before calling rl_set_screen_size.
13934
6c28e44a
TT
139352019-02-27 Tom Tromey <tromey@adacore.com>
13936
13937 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13938 define.
13939 * python/py-value.c: Remove Python 2.4 workaround.
13940 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13941 workaround.
13942 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13943 Python 2.4 workaround.
13944 * python/python-internal.h: Remove Python 2.4 comment.
13945 (Py_ssize_t): Don't define.
13946 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13947 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13948 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13949 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13950 * python/python.c (do_start_initialization): Remove Python 2.4
13951 workaround.
13952 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13953 (print_children): Remove Python 2.4 workaround.
13954 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13955 workaround.
13956 (CHARBUFFERPROC_NAME): Remove.
13957 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13958 Python 2.4 workaround.
13959
2c3fc25d 139602019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13961
2c3fc25d
KB
13962 * NEWS: Note minimum Python version.
13963
6ca62222
KB
139642019-02-27 Kevin Buettner <kevinb@redhat.com>
13965
13966 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13967 code from these functions. Remove corresponding ifdefs. Use
13968 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13969 Remove gotos and target of gotos.
13970 (infpy_search_memory): Likewise.
13971
f4bc7d2c
AB
139722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13973
13974 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13975 (hppa_gdbarch_init): Don't register deleted functions with
13976 gdbarch.
13977
9734a586
AB
139782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13979
13980 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13981 (h8300_unwind_sp): Delete.
13982 (h8300_dummy_id): Delete.
13983 (h8300_gdbarch_init): Don't register deleted functions with
13984 gdbarch.
13985
68b867f3
AB
139862019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13987
13988 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13989 (ft32_unwind_pc): Delete.
13990 (ft32_unwind_sp): Delete.
13991 (ft32_gdbarch_init): Don't register deleted functions with
13992 gdbarch.
13993
2fbe7ad0
AB
139942019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13995
13996 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13997 (frv_unwind_pc): Delete.
13998 (frv_unwind_sp): Delete.
13999 (frv_gdbarch_init): Don't register deleted functions with
14000 gdbarch.
14001
76055cbe
AB
140022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14003
14004 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14005 (riscv_unwind_pc): Delete.
14006 (riscv_unwind_sp): Delete.
14007 (riscv_gdbarch_init): Don't register deleted functions with
14008 gdbarch.
14009
4133e5a1
AB
140102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14011
14012 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14013 (csky_unwind_pc): Delete.
14014 (csky_unwind_sp): Delete.
14015 (csky_gdbarch_init): Don't register deleted functions with
14016 gdbarch.
14017
8010f576
AB
140182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14019
14020 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14021 (cris_unwind_pc): Delete.
14022 (cris_unwind_sp): Delete.
14023 (cris_gdbarch_init): Don't register deleted functions with
14024 gdbarch.
14025
b56bf084
AB
140262019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14027
14028 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14029 (bfin_unwind_pc): Delete.
14030 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14031
a19a650f
AB
140322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14033
14034 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14035 (arm_unwind_pc): Delete.
14036 (arm_unwind_sp): Delete.
14037 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14038
f8278c3c
AB
140392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14040
14041 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14042 (arc_unwind_pc): Delete.
14043 (arc_unwind_sp): Delete.
14044 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14045
480e46cf
AB
140462019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14047
14048 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14049 (alpha_unwind_pc): Delete.
14050 (alpha_gdbarch_init): Don't register deleted functions with
14051 gdbarch.
14052
7a995095
AB
140532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14054
14055 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14056 (aarch64_unwind_pc): Delete.
14057 (aarch64_unwind_sp): Delete.
14058 (aarch64_gdbarch_init): Don't register deleted functions with
14059 gdbarch.
14060
bf9a735e
AB
140612019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14062
14063 * gdbtypes.c (type_align): Don't consider static members when
14064 computing structure alignment.
14065
5561fc30
AB
140662019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14067
14068 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14069 return 0 for other types.
14070 * arch-utils.c (default_type_align): Always return 0.
14071 * gdbarch.h: Regenerate.
14072 * gdbarch.sh (type_align): Extend comment.
14073 * gdbtypes.c (type_align): Add additional comments, always call
14074 gdbarch_type_align before applying the default rules.
14075 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14076 generic code will then apply a suitable default.
14077 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14078 types, return 0 for other types.
14079
9335e75a
JB
140802019-02-27 Joel Brobecker <brobecker@adacore.com>
14081
14082 * NEWS: Create a new section for the next release branch.
14083 Rename the section of the current branch, now that it has
14084 been cut.
14085
3d34d8de
JB
140862019-02-27 Joel Brobecker <brobecker@adacore.com>
14087
14088 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14089 * version.in: Bump version to 8.3.50.DATE-git.
14090
143420fb
SM
140912019-02-26 Simon Marchi <simon.marchi@efficios.com>
14092
14093 * aix-thread.c (ptid_cmp): Remove unused variable.
14094 (get_signaled_thread): Likewise.
14095 (store_regs_user_thread): Likewise.
14096 (store_regs_kernel_thread): Likewise.
14097 (fetch_regs_kernel_thread): Remove shadowed variable.
14098
172fb711
AB
140992019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14100
14101 * features/riscv/32bit-cpu.xml: Add register numbers.
14102 * features/riscv/32bit-fpu.c: Regenerate.
14103 * features/riscv/32bit-fpu.xml: Add register numbers.
14104 * features/riscv/64bit-cpu.xml: Add register numbers.
14105 * features/riscv/64bit-fpu.c: Regenerate.
14106 * features/riscv/64bit-fpu.xml: Add register numbers.
14107
26c89782
KB
141082019-02-26 Kevin Buettner <kevinb@redhat.com>
14109
af54ade9 14110 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14111 * python/py-value.c (convert_buffer_and_type_to_value): New
14112 function.
14113 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14114 Add support for handling an optional second argument. Call
14115 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14116 * python/python-internal.h (Py_buffer_deleter): New struct.
14117 (Py_buffer_up): New typedef.
14118
0f58c9e8
JB
141192019-02-25 John Baldwin <jhb@FreeBSD.org>
14120
14121 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14122 instead of releasing ownership.
14123
0a0f4c01
JR
141242019-02-25 Jordan Rupprecht <rupprecht@google.com>
14125
14126 * dwarf2read.c (open_and_init_dwp_file): Call
14127 elf_numsections instead of bfd_count_sections to initialize
14128 dwp_file->num_sections.
14129
cd5a152c
TT
141302019-02-25 Tom Tromey <tromey@adacore.com>
14131
14132 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14133
8a6a8513
SDJ
141342019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14135
14136 * gcore.in: Add '--readnever' option when invoking GDB.
14137
04dcda9c
SM
141382019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14139
14140 * MAINTAINERS: Update my email address.
14141
07bc701d
SM
141422019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14143
14144 * build-id.c (build_id_to_debug_bfd_1): New function.
14145 (build_id_to_debug_bfd): Look for separate debug file in
14146 sysroot.
14147
c6f4a5d0
AB
141482019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14149
14150 * gdbarch.sh: Update the copyright year range that is placed into
14151 generated files.
14152
9600246d
KS
141532019-02-22 Keith Seitz <keiths@redhat.com>
14154
14155 PR symtab/23853
14156 * linespec.c (create_sals_line_offset): Search for the default
14157 symtab's filename instead of its fullname.
14158
7557a514
AH
141592019-02-21 Alan Hayward <alan.hayward@arm.com>
14160
14161 * NEWS: Update style defaults.
14162
ee2bcb0c
AH
141632019-02-21 Alan Hayward <alan.hayward@arm.com>
14164
14165 * main.c (captured_main_1): Disable styling in batch mode.
14166
0c95f9ed
TT
141672019-02-20 Tom Tromey <tom@tromey.com>
14168
14169 * symtab.c (symtab_symbol_info): Fix typos.
14170
c763b894
TT
141712019-02-20 Tom Tromey <tromey@adacore.com>
14172
14173 * findcmd.c (_initialize_mem_search): Use upper case for
14174 metasyntactic variables.
14175
0ef8a082
AH
141762019-02-20 Alan Hayward <alan.hayward@arm.com>
14177
14178 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14179 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14180
6caa91b6
SM
141812019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14182
14183 * top.h (source_file_name): Change to std::string.
14184 * top.c (source_file_name): Likewise.
14185 (command_line_input): Adjust.
14186 * cli/cli-script.c (script_from_file): Adjust.
14187
98814c6c
TT
141882019-02-19 Tom Tromey <tromey@adacore.com>
14189
14190 * ravenscar-thread.c
14191 (ravenscar_thread_target::update_thread_list): Don't call
14192 ada_build_task_list.
14193 * ada-lang.h (ada_build_task_list): Don't declare.
14194 * ada-tasks.c (struct ada_tasks_inferior_data)
14195 <task_list_valid_p>: Now bool.
14196 (read_known_tasks, ada_task_list_changed)
14197 (ada_tasks_invalidate_inferior_data): Update.
14198 (read_known_tasks_array): Return bool.
14199 (read_known_tasks_list): Likewise.
14200 (read_known_tasks): Return void.
14201 (ada_build_task_list): Now static.
14202
70cd633e
AB
142032019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14204
14205 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14206 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14207
040b3e95
PW
142082019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14209
14210 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14211 variant for ada_tasks_pspace_data_handle and
14212 ada_tasks_inferior_data_handle.
14213 (ada_tasks_pspace_data_cleanup): New function.
14214 (ada_tasks_inferior_data_cleanup): New function.
14215
9409233b
TT
142162019-02-17 Tom Tromey <tom@tromey.com>
14217
14218 * macrotab.h (macro_source_fullname): Return a std::string.
14219 * macrotab.c (macro_include, check_for_redefinition)
14220 (macro_undef, macro_lookup_definition, foreach_macro)
14221 (foreach_macro_in_scope): Update.
14222 (macro_source_fullname): Return a std::string.
14223 * macrocmd.c (show_pp_source_pos): Update.
14224
6506371f
TT
142252019-02-17 Tom Tromey <tom@tromey.com>
14226
14227 * macrocmd.c (show_pp_source_pos): Style the file names.
14228
0c820d67
TT
142292019-02-17 Tom Tromey <tom@tromey.com>
14230
14231 PR tui/24197:
14232 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14233
a0087920
TT
142342019-02-17 Tom Tromey <tom@tromey.com>
14235
14236 * ada-lang.c (user_select_syms): Use filtered printing.
14237 * utils.c (wrap_style): New global.
14238 (desired_style): Remove.
14239 (emit_style_escape): Add stream parameter.
14240 (set_output_style, reset_terminal_style, prompt_for_continue):
14241 Update.
14242 (flush_wrap_buffer): Only flush gdb_stdout.
14243 (wrap_here): Set wrap_style.
14244 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14245 treat escape sequences as a character. Change when wrap buffer is
14246 flushed.
14247 (fputs_styled): Do not set the output style when the default is
14248 requested.
14249 * ui-style.h (struct ui_file_style) <is_default>: New method.
14250 * source.c (print_source_lines_base): Emit escape sequences in one
14251 piece.
14252
75ba10dc
JB
142532019-02-17 Joel Brobecker <brobecker@adacore.com>
14254
14255 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14256 integers and enumeration types.
14257
a2cd4f14
JB
142582019-02-17 Joel Brobecker <brobecker@adacore.com>
14259
14260 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14261 instead of lookup_symbol_in_language
14262 (do_exact_match): New function.
14263 (ada_get_symbol_name_matcher): Return do_exact_match when
14264 doing a verbatim match.
14265
485b851b
TT
142662019-02-15 Tom Tromey <tromey@adacore.com>
14267
14268 * ravenscar-thread.c (ravenscar_thread_target::resume)
14269 (ravenscar_thread_target::wait): Special case wildcard requests.
14270
0b790b1e
TT
142712019-02-15 Tom Tromey <tromey@adacore.com>
14272
14273 * ravenscar-thread.c (base_ptid): Remove.
14274 (struct ravenscar_thread_target) <close>: New method.
14275 <m_base_ptid>: New member.
14276 <update_inferior_ptid, active_task, task_is_currently_active,
14277 runtime_initialized>: Declare methods.
14278 <ravenscar_thread_target>: Add constructor.
14279 (ravenscar_thread_target::task_is_currently_active)
14280 (ravenscar_thread_target::update_inferior_ptid)
14281 (ravenscar_runtime_initialized): Rename. Now methods.
14282 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14283 (ravenscar_thread_target::update_thread_list): Update.
14284 (ravenscar_thread_target::active_task): Now method.
14285 (ravenscar_thread_target::store_registers)
14286 (ravenscar_thread_target::prepare_to_store)
14287 (ravenscar_thread_target::prepare_to_store)
14288 (ravenscar_thread_target::mourn_inferior): Update.
14289 (ravenscar_inferior_created): Use "new" to create target.
14290 (ravenscar_thread_target::get_ada_task_ptid): Update.
14291 (_initialize_ravenscar): Don't initialize base_ptid.
14292 (ravenscar_ops): Remove global.
14293
dea57a62
TT
142942019-02-15 Tom Tromey <tromey@adacore.com>
14295
14296 * target.h (push_target): Declare new overload.
14297 * target.c (push_target): New overload, taking an rvalue reference.
14298 * remote.c (remote_target::open_1): Use push_target overload.
14299 * corelow.c (core_target_open): Use push_target overload.
14300
989f3c58
TT
143012019-02-15 Tom Tromey <tromey@adacore.com>
14302
14303 * ravenscar-thread.c (is_ravenscar_task)
14304 (ravenscar_task_is_currently_active): Return bool.
14305 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14306 (_initialize_ravenscar): Remove "(void)".
14307 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14308 Return bool.
14309
6cbcc006
TT
143102019-02-15 Tom Tromey <tromey@adacore.com>
14311
14312 * ravenscar-thread.c (ravenscar_runtime_initializer)
14313 (has_ravenscar_runtime, get_running_thread_id)
14314 (ravenscar_thread_target::resume): Fix indentation.
14315
7657f14d
TT
143162019-02-15 Tom Tromey <tromey@adacore.com>
14317
14318 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14319 from ravenscar_arch_ops.
14320 (sparc_ravenscar_ops::fetch_registers)
14321 (sparc_ravenscar_ops::store_registers): Now methods.
14322 (sparc_ravenscar_prepare_to_store): Remove.
14323 (sparc_ravenscar_ops): Redefine.
14324 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14325 methods and destructor. Remove members.
14326 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14327 (ravenscar_thread_target::store_registers)
14328 (ravenscar_thread_target::prepare_to_store): Update.
14329 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14330 Remove.
14331 (struct ppc_ravenscar_powerpc_ops): Derive from
14332 ravenscar_arch_ops.
14333 (ppc_ravenscar_powerpc_ops::fetch_registers)
14334 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14335 (ppc_ravenscar_powerpc_ops): Redefine.
14336 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14337 (ppc_ravenscar_e500_ops::fetch_registers)
14338 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14339 (ppc_ravenscar_e500_ops): Redefine.
14340 * aarch64-ravenscar-thread.c
14341 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14342 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14343 (aarch64_ravenscar_fetch_registers)
14344 (aarch64_ravenscar_store_registers): Now methods.
14345 (aarch64_ravenscar_ops): Redefine.
14346
5b6ea500
TT
143472019-02-15 Tom Tromey <tromey@adacore.com>
14348
14349 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14350 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14351 (ravenscar_thread_target::stopped_by_watchpoint)
14352 (ravenscar_thread_target::stopped_data_address)
14353 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14354
e397fd39
TT
143552019-02-15 Tom Tromey <tromey@adacore.com>
14356
14357 * ravenscar-thread.c: Fix some typos.
14358
cc12f4a8
TT
143592019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14360 Tom Tromey <tromey@adacore.com>
14361
14362 * ada-lang.c (ada_exception_sal): Change addr_string to a
14363 std::string.
14364 (create_ada_exception_catchpoint): Update.
14365
5f486660
TT
143662019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14367 Tom Tromey <tromey@adacore.com>
14368
14369 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14370 (bp_location_ops): Remove.
14371 (base_breakpoint_allocate_location): Update.
14372 (free_bp_location): Update.
14373 * ada-lang.c (class ada_catchpoint_location)
14374 <ada_catchpoint_location>: Remove ops parameter.
14375 (ada_catchpoint_location_dtor): Remove.
14376 (ada_catchpoint_location_ops): Remove.
14377 (allocate_location_exception): Update.
14378 * breakpoint.h (struct bp_location_ops): Remove.
14379 (class bp_location) <bp_location>: Remove bp_location_ops
14380 parameter.
14381 <~bp_location>: Add destructor.
14382 <ops>: Remove.
14383
b671c7fb
TS
143842019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14385 Pedro Alves <palves@redhat.com>
14386
14387 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14388 'PATH_MAX'.
14389
8071c5ce
DM
143902019-02-14 David Michael <fedora.dm0@gmail.com>
14391 Samuel Thibault <samuel.thibault@gnu.org>
14392 Thomas Schwinge <thomas@codesourcery.com>
14393
14394 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14395 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14396
b1041ae0
TS
143972019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14398
924514e1
TS
14399 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14400 (check_empty): Use "const char *".
14401
c29ee8d4
TS
14402 * gnu-nat.c (gnu_nat_target::detach): Instead of
14403 'detach_inferior (pid)' call
14404 'detach_inferior (find_inferior_pid (pid))'.
14405
6c6ef69f
TS
14406 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14407 'nat/fork-inferior.o'.
14408 * gnu-nat.c: #include "nat/fork-inferior.h".
14409
2d0a338c
TS
14410 * gnu-nat.c (gnu_nat_target::detach): Instead of
14411 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14412 * gnu-nat.h: #include "inf-child.h".
14413 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14414 'i386_gnu_nat_target::fetch_registers'.
14415 (gnu_store_registers): Rename/move to
14416 'i386_gnu_nat_target::store_registers'.
14417
cabb5f06
TS
14418 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14419 * gnu-nat.h (mach_thread_info): New function.
14420 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14421
b1041ae0
TS
14422 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14423
2988d01e
KF
144242019-02-14 Frederic Konrad <konrad@adacore.com>
14425
14426 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14427
c559d709
JB
144282019-02-14 Joel Brobecker <brobecker@adacore.com>
14429
14430 * windows-nat.c (windows_add_thread): Add new parameter
14431 "main_thread_p" with default value set to false. Update
14432 function documentation as well as all callers.
14433 (windows_delete_thread): Likewise.
14434 (fake_create_process): Update call to windows_add_thread.
14435 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14436 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14437 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14438 call to windows_delete_thread.
14439
007024cc
SM
144402019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14441
14442 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14443
f62318e9
JB
144442019-02-12 John Baldwin <jhb@FreeBSD.org>
14445
14446 * symfile.c (find_separate_debug_file): Use canonical path of
14447 sysroot with child_path instead of gdb_sysroot if it is valid.
14448
cd4b7848
JB
144492019-02-12 John Baldwin <jhb@FreeBSD.org>
14450
14451 * symfile.c (find_separate_debug_file): Use child_path to
14452 determine if an object file is under a sysroot.
14453
efac4bfe
JB
144542019-02-12 John Baldwin <jhb@FreeBSD.org>
14455
14456 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14457 unittests/child-path-selftests.c.
14458 * common/pathstuff.c (child_path): New function.
14459 * common/pathstuff.h (child_path): New prototype.
14460 * unittests/child-path-selftests.c: New file.
14461
402d2bfe
JB
144622019-02-12 John Baldwin <jhb@FreeBSD.org>
14463
14464 * symfile.c (find_separate_debug_file): Look for separate debug
14465 files in debug directories under the sysroot.
14466
1ed9f74e
PW
144672019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14468
14469 * symtab.h (struct minimal_symbol data_p): New const method.
14470 (struct minimal_symbol text_p): Likewise.
14471 * symtab.c (output_source_filename): Use file name style
14472 to print file name.
14473 (print_symbol_info): Likewise.
14474 (print_msymbol_info): Use address style to print addresses.
14475 Use function name style to print executable text symbols.
14476 (expand_symtab_containing_pc): Use data_p.
14477 (find_pc_sect_compunit_symtab): Likewise.
14478
2636d81d
PW
144792019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14480
14481 * breakpoint.c (describe_other_breakpoints): Use address style
14482 to print addresses.
14483 (say_where): Likewise.
14484
ac8c53cc
PW
144852019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14486
14487 * ada-typeprint.c (print_func_type): Print function name
14488 style to print function name.
14489 * c-typeprint.c (c_print_type_1): Likewise.
14490
ea638c43
AH
144912019-02-11 Alan Hayward <alan.hayward@arm.com>
14492
14493 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14494 for execve.
14495
ab759ca8
PW
144962019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14497
14498 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14499 type_stack.
14500
aff29d1c
JB
145012019-02-10 Joel Brobecker <brobecker@adacore.com>
14502
14503 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14504 TYPE_CODE_REF types.
14505
617126bc
JW
145062019-02-08 Jim Wilson <jimw@sifive.com>
14507
14508 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14509 (riscv_linux_fregset): New.
14510 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14511
46e3ed7f
TT
145122019-02-07 Tom Tromey <tom@tromey.com>
14513
14514 * thread.c (thread_cancel_execution_command): Update.
14515 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14516 methods.
14517 (struct thread_fsm_ops): Remove.
14518 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14519 (thread_fsm_should_stop, thread_fsm_return_value)
14520 (thread_fsm_set_finished, thread_fsm_finished_p)
14521 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14522 Don't declare.
14523 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14524 * infrun.c (clear_proceed_status_thread)
14525 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14526 (print_stop_event): Update.
14527 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14528 Add constructor.
14529 (step_command_fsm_ops): Remove.
14530 (new_step_command_fsm): Remove.
14531 (step_1): Update.
14532 (step_command_fsm::should_stop): Rename from
14533 step_command_fsm_should_stop.
14534 (step_command_fsm::clean_up): Rename from
14535 step_command_fsm_clean_up.
14536 (step_command_fsm::do_async_reply_reason): Rename from
14537 step_command_fsm_async_reply_reason.
14538 (struct until_next_fsm): Inherit from thread_fsm. Add
14539 constructor.
14540 (until_next_fsm_ops): Remove.
14541 (new_until_next_fsm): Remove.
14542 (until_next_fsm::should_stop): Rename from
14543 until_next_fsm_should_stop.
14544 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14545 (until_next_fsm::do_async_reply_reason): Rename from
14546 until_next_fsm_async_reply_reason.
14547 (struct finish_command_fsm): Inherit from thread_fsm. Add
14548 constructor. Change type of breakpoint.
14549 (finish_command_fsm_ops): Remove.
14550 (new_finish_command_fsm): Remove.
14551 (finish_command_fsm::should_stop): Rename from
14552 finish_command_fsm_should_stop.
14553 (finish_command_fsm::clean_up): Rename from
14554 finish_command_fsm_clean_up.
14555 (finish_command_fsm::return_value): Rename from
14556 finish_command_fsm_return_value.
14557 (finish_command_fsm::do_async_reply_reason): Rename from
14558 finish_command_fsm_async_reply_reason.
14559 (finish_command): Update.
14560 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14561 Add constructor.
14562 (call_thread_fsm_ops): Remove.
14563 (call_thread_fsm::call_thread_fsm): Rename from
14564 new_call_thread_fsm.
14565 (call_thread_fsm::should_stop): Rename from
14566 call_thread_fsm_should_stop.
14567 (call_thread_fsm::should_notify_stop): Rename from
14568 call_thread_fsm_should_notify_stop.
14569 (run_inferior_call, call_function_by_hand_dummy): Update.
14570 * cli/cli-interp.c (should_print_stop_to_console): Update.
14571 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14572 Add constructor. Change type of location_breakpoint,
14573 caller_breakpoint.
14574 (until_break_fsm_ops): Remove.
14575 (new_until_break_fsm): Remove.
14576 (until_break_fsm::should_stop): Rename from
14577 until_break_fsm_should_stop.
14578 (until_break_fsm::clean_up): Rename from
14579 until_break_fsm_clean_up.
14580 (until_break_fsm::do_async_reply_reason): Rename from
14581 until_break_fsm_async_reply_reason.
14582 (until_break_command): Update.
14583 * thread-fsm.c: Remove.
14584 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14585
1a5c2598
TT
145862019-02-07 Tom Tromey <tom@tromey.com>
14587
14588 * yy-remap.h: Add include guard.
14589 * xtensa-tdep.h: Add include guard.
14590 * xcoffread.h: Rename include guard.
14591 * varobj-iter.h: Add include guard.
14592 * tui/tui.h: Rename include guard.
14593 * tui/tui-winsource.h: Rename include guard.
14594 * tui/tui-wingeneral.h: Rename include guard.
14595 * tui/tui-windata.h: Rename include guard.
14596 * tui/tui-win.h: Rename include guard.
14597 * tui/tui-stack.h: Rename include guard.
14598 * tui/tui-source.h: Rename include guard.
14599 * tui/tui-regs.h: Rename include guard.
14600 * tui/tui-out.h: Rename include guard.
14601 * tui/tui-layout.h: Rename include guard.
14602 * tui/tui-io.h: Rename include guard.
14603 * tui/tui-hooks.h: Rename include guard.
14604 * tui/tui-file.h: Rename include guard.
14605 * tui/tui-disasm.h: Rename include guard.
14606 * tui/tui-data.h: Rename include guard.
14607 * tui/tui-command.h: Rename include guard.
14608 * tic6x-tdep.h: Add include guard.
14609 * target/waitstatus.h: Rename include guard.
14610 * target/wait.h: Rename include guard.
14611 * target/target.h: Rename include guard.
14612 * target/resume.h: Rename include guard.
14613 * target-float.h: Rename include guard.
14614 * stabsread.h: Add include guard.
14615 * rs6000-tdep.h: Add include guard.
14616 * riscv-fbsd-tdep.h: Add include guard.
14617 * regformats/regdef.h: Rename include guard.
14618 * record.h: Rename include guard.
14619 * python/python.h: Rename include guard.
14620 * python/python-internal.h: Rename include guard.
14621 * python/py-stopevent.h: Rename include guard.
14622 * python/py-ref.h: Rename include guard.
14623 * python/py-record.h: Rename include guard.
14624 * python/py-record-full.h: Rename include guard.
14625 * python/py-record-btrace.h: Rename include guard.
14626 * python/py-instruction.h: Rename include guard.
14627 * python/py-events.h: Rename include guard.
14628 * python/py-event.h: Rename include guard.
14629 * procfs.h: Add include guard.
14630 * proc-utils.h: Add include guard.
14631 * p-lang.h: Add include guard.
14632 * or1k-tdep.h: Rename include guard.
14633 * observable.h: Rename include guard.
14634 * nto-tdep.h: Rename include guard.
14635 * nat/x86-linux.h: Rename include guard.
14636 * nat/x86-linux-dregs.h: Rename include guard.
14637 * nat/x86-gcc-cpuid.h: Add include guard.
14638 * nat/x86-dregs.h: Rename include guard.
14639 * nat/x86-cpuid.h: Rename include guard.
14640 * nat/ppc-linux.h: Rename include guard.
14641 * nat/mips-linux-watch.h: Rename include guard.
14642 * nat/linux-waitpid.h: Rename include guard.
14643 * nat/linux-ptrace.h: Rename include guard.
14644 * nat/linux-procfs.h: Rename include guard.
14645 * nat/linux-osdata.h: Rename include guard.
14646 * nat/linux-nat.h: Rename include guard.
14647 * nat/linux-namespaces.h: Rename include guard.
14648 * nat/linux-btrace.h: Rename include guard.
14649 * nat/glibc_thread_db.h: Rename include guard.
14650 * nat/gdb_thread_db.h: Rename include guard.
14651 * nat/gdb_ptrace.h: Rename include guard.
14652 * nat/fork-inferior.h: Rename include guard.
14653 * nat/amd64-linux-siginfo.h: Rename include guard.
14654 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14655 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14656 * nat/aarch64-linux.h: Rename include guard.
14657 * nat/aarch64-linux-hw-point.h: Rename include guard.
14658 * mn10300-tdep.h: Add include guard.
14659 * mips-linux-tdep.h: Add include guard.
14660 * mi/mi-parse.h: Rename include guard.
14661 * mi/mi-out.h: Rename include guard.
14662 * mi/mi-main.h: Rename include guard.
14663 * mi/mi-interp.h: Rename include guard.
14664 * mi/mi-getopt.h: Rename include guard.
14665 * mi/mi-console.h: Rename include guard.
14666 * mi/mi-common.h: Rename include guard.
14667 * mi/mi-cmds.h: Rename include guard.
14668 * mi/mi-cmd-break.h: Rename include guard.
14669 * m2-lang.h: Add include guard.
14670 * location.h: Rename include guard.
14671 * linux-record.h: Rename include guard.
14672 * linux-nat.h: Add include guard.
14673 * linux-fork.h: Add include guard.
14674 * i386-darwin-tdep.h: Rename include guard.
14675 * hppa-linux-offsets.h: Add include guard.
14676 * guile/guile.h: Rename include guard.
14677 * guile/guile-internal.h: Rename include guard.
14678 * gnu-nat.h: Rename include guard.
14679 * gdb-stabs.h: Rename include guard.
14680 * frv-tdep.h: Add include guard.
14681 * f-lang.h: Add include guard.
14682 * event-loop.h: Add include guard.
14683 * darwin-nat.h: Rename include guard.
14684 * cp-abi.h: Rename include guard.
14685 * config/sparc/nm-sol2.h: Rename include guard.
14686 * config/nm-nto.h: Rename include guard.
14687 * config/nm-linux.h: Add include guard.
14688 * config/i386/nm-i386gnu.h: Rename include guard.
14689 * config/djgpp/nl_types.h: Rename include guard.
14690 * config/djgpp/langinfo.h: Rename include guard.
14691 * compile/gcc-cp-plugin.h: Add include guard.
14692 * compile/gcc-c-plugin.h: Add include guard.
14693 * compile/compile.h: Rename include guard.
14694 * compile/compile-object-run.h: Rename include guard.
14695 * compile/compile-object-load.h: Rename include guard.
14696 * compile/compile-internal.h: Rename include guard.
14697 * compile/compile-cplus.h: Rename include guard.
14698 * compile/compile-c.h: Rename include guard.
14699 * common/xml-utils.h: Rename include guard.
14700 * common/x86-xstate.h: Rename include guard.
14701 * common/version.h: Rename include guard.
14702 * common/vec.h: Rename include guard.
14703 * common/tdesc.h: Rename include guard.
14704 * common/selftest.h: Rename include guard.
14705 * common/scoped_restore.h: Rename include guard.
14706 * common/scoped_mmap.h: Rename include guard.
14707 * common/scoped_fd.h: Rename include guard.
14708 * common/safe-iterator.h: Rename include guard.
14709 * common/run-time-clock.h: Rename include guard.
14710 * common/refcounted-object.h: Rename include guard.
14711 * common/queue.h: Rename include guard.
14712 * common/ptid.h: Rename include guard.
14713 * common/print-utils.h: Rename include guard.
14714 * common/preprocessor.h: Rename include guard.
14715 * common/pathstuff.h: Rename include guard.
14716 * common/observable.h: Rename include guard.
14717 * common/netstuff.h: Rename include guard.
14718 * common/job-control.h: Rename include guard.
14719 * common/host-defs.h: Rename include guard.
14720 * common/gdb_wait.h: Rename include guard.
14721 * common/gdb_vecs.h: Rename include guard.
14722 * common/gdb_unlinker.h: Rename include guard.
14723 * common/gdb_unique_ptr.h: Rename include guard.
14724 * common/gdb_tilde_expand.h: Rename include guard.
14725 * common/gdb_sys_time.h: Rename include guard.
14726 * common/gdb_string_view.h: Rename include guard.
14727 * common/gdb_splay_tree.h: Rename include guard.
14728 * common/gdb_setjmp.h: Rename include guard.
14729 * common/gdb_ref_ptr.h: Rename include guard.
14730 * common/gdb_optional.h: Rename include guard.
14731 * common/gdb_locale.h: Rename include guard.
14732 * common/gdb_assert.h: Rename include guard.
14733 * common/filtered-iterator.h: Rename include guard.
14734 * common/filestuff.h: Rename include guard.
14735 * common/fileio.h: Rename include guard.
14736 * common/environ.h: Rename include guard.
14737 * common/common-utils.h: Rename include guard.
14738 * common/common-types.h: Rename include guard.
14739 * common/common-regcache.h: Rename include guard.
14740 * common/common-inferior.h: Rename include guard.
14741 * common/common-gdbthread.h: Rename include guard.
14742 * common/common-exceptions.h: Rename include guard.
14743 * common/common-defs.h: Rename include guard.
14744 * common/common-debug.h: Rename include guard.
14745 * common/cleanups.h: Rename include guard.
14746 * common/buffer.h: Rename include guard.
14747 * common/btrace-common.h: Rename include guard.
14748 * common/break-common.h: Rename include guard.
14749 * cli/cli-utils.h: Rename include guard.
14750 * cli/cli-style.h: Rename include guard.
14751 * cli/cli-setshow.h: Rename include guard.
14752 * cli/cli-script.h: Rename include guard.
14753 * cli/cli-interp.h: Rename include guard.
14754 * cli/cli-decode.h: Rename include guard.
14755 * cli/cli-cmds.h: Rename include guard.
14756 * charset-list.h: Add include guard.
14757 * buildsym-legacy.h: Rename include guard.
14758 * bfin-tdep.h: Add include guard.
14759 * ax.h: Rename include guard.
14760 * arm-linux-tdep.h: Add include guard.
14761 * arm-fbsd-tdep.h: Add include guard.
14762 * arch/xtensa.h: Rename include guard.
14763 * arch/tic6x.h: Add include guard.
14764 * arch/i386.h: Add include guard.
14765 * arch/arm.h: Rename include guard.
14766 * arch/arm-linux.h: Rename include guard.
14767 * arch/arm-get-next-pcs.h: Rename include guard.
14768 * arch/amd64.h: Add include guard.
14769 * arch/aarch64-insn.h: Rename include guard.
14770 * arch-utils.h: Rename include guard.
14771 * annotate.h: Add include guard.
14772 * amd64-darwin-tdep.h: Rename include guard.
14773 * aarch64-linux-tdep.h: Add include guard.
14774 * aarch64-fbsd-tdep.h: Add include guard.
14775 * aarch32-linux-nat.h: Add include guard.
14776
ab9268d2
PW
147772019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14778
14779 * macrotab.c (macro_define_internal): New function that
14780 factorizes macro_define_object_internal and macro_define_function
14781 code.
14782 (macro_define_object_internal): Use macro_define_internal.
14783 (macro_define_function): Likewise.
14784
bb0da2b4
PW
147852019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14786
14787 * macrocmd.c (extract_identifier): Return
14788 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14789 callers.
14790
424eb552
JB
147912019-02-06 John Baldwin <jhb@FreeBSD.org>
14792
14793 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14794
1688cb29
TT
147952019-02-05 Tom Tromey <tom@tromey.com>
14796
14797 * target.c (target_stack::unpush): Move assertion earlier.
14798
b5eba2d8
TT
147992019-01-30 Tom Tromey <tom@tromey.com>
14800
14801 PR python/23615:
14802 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14803 (gdbpy_parse_and_eval): Likewise.
14804 * python/python-internal.h (gdbpy_allow_threads): New class.
14805
7054e2ff
JB
148062019-01-28 John Baldwin <jhb@FreeBSD.org>
14807
14808 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14809 (aarch64_fbsd_fpregmap): Move earlier.
14810 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14811 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14812 instead of individual calls to trad_frame_set_reg_addr.
14813 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14814 earlier.
14815 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14816 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14817 instead of individual calls to trad_frame_set_reg_addr.
14818
36c25ffa
AH
148192019-01-28 Alan Hayward <alan.hayward@arm.com>
14820
14821 * CONTRIBUTE: Replace contribution list with wiki link.
14822
a0707f3c
TT
148232019-01-25 Tom Tromey <tom@tromey.com>
14824
14825 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14826
0747795c
TT
148272019-01-25 Tom Tromey <tom@tromey.com>
14828
14829 * xtensa-linux-nat.c: Fix common/ includes.
14830 * xml-support.h: Fix common/ includes.
14831 * xml-support.c: Fix common/ includes.
14832 * x86-linux-nat.c: Fix common/ includes.
14833 * windows-nat.c: Fix common/ includes.
14834 * varobj.h: Fix common/ includes.
14835 * varobj.c: Fix common/ includes.
14836 * value.c: Fix common/ includes.
14837 * valops.c: Fix common/ includes.
14838 * utils.c: Fix common/ includes.
14839 * unittests/xml-utils-selftests.c: Fix common/ includes.
14840 * unittests/utils-selftests.c: Fix common/ includes.
14841 * unittests/unpack-selftests.c: Fix common/ includes.
14842 * unittests/tracepoint-selftests.c: Fix common/ includes.
14843 * unittests/style-selftests.c: Fix common/ includes.
14844 * unittests/string_view-selftests.c: Fix common/ includes.
14845 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14846 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14847 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14848 * unittests/rsp-low-selftests.c: Fix common/ includes.
14849 * unittests/parse-connection-spec-selftests.c: Fix common/
14850 includes.
14851 * unittests/optional-selftests.c: Fix common/ includes.
14852 * unittests/offset-type-selftests.c: Fix common/ includes.
14853 * unittests/observable-selftests.c: Fix common/ includes.
14854 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14855 * unittests/memrange-selftests.c: Fix common/ includes.
14856 * unittests/memory-map-selftests.c: Fix common/ includes.
14857 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14858 * unittests/function-view-selftests.c: Fix common/ includes.
14859 * unittests/environ-selftests.c: Fix common/ includes.
14860 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14861 * unittests/common-utils-selftests.c: Fix common/ includes.
14862 * unittests/cli-utils-selftests.c: Fix common/ includes.
14863 * unittests/array-view-selftests.c: Fix common/ includes.
14864 * ui-file.c: Fix common/ includes.
14865 * tui/tui-io.c: Fix common/ includes.
14866 * tracepoint.h: Fix common/ includes.
14867 * tracepoint.c: Fix common/ includes.
14868 * tracefile-tfile.c: Fix common/ includes.
14869 * top.h: Fix common/ includes.
14870 * top.c: Fix common/ includes.
14871 * thread.c: Fix common/ includes.
14872 * target/waitstatus.h: Fix common/ includes.
14873 * target/waitstatus.c: Fix common/ includes.
14874 * target.h: Fix common/ includes.
14875 * target.c: Fix common/ includes.
14876 * target-memory.c: Fix common/ includes.
14877 * target-descriptions.c: Fix common/ includes.
14878 * symtab.h: Fix common/ includes.
14879 * symfile.c: Fix common/ includes.
14880 * stap-probe.c: Fix common/ includes.
14881 * spu-linux-nat.c: Fix common/ includes.
14882 * sparc-nat.c: Fix common/ includes.
14883 * source.c: Fix common/ includes.
14884 * solib.c: Fix common/ includes.
14885 * solib-target.c: Fix common/ includes.
14886 * ser-unix.c: Fix common/ includes.
14887 * ser-tcp.c: Fix common/ includes.
14888 * ser-pipe.c: Fix common/ includes.
14889 * ser-base.c: Fix common/ includes.
14890 * selftest-arch.c: Fix common/ includes.
14891 * s12z-tdep.c: Fix common/ includes.
14892 * rust-exp.y: Fix common/ includes.
14893 * rs6000-aix-tdep.c: Fix common/ includes.
14894 * riscv-tdep.c: Fix common/ includes.
14895 * remote.c: Fix common/ includes.
14896 * remote-notif.h: Fix common/ includes.
14897 * remote-fileio.h: Fix common/ includes.
14898 * remote-fileio.c: Fix common/ includes.
14899 * regcache.h: Fix common/ includes.
14900 * regcache.c: Fix common/ includes.
14901 * record-btrace.c: Fix common/ includes.
14902 * python/python.c: Fix common/ includes.
14903 * python/py-type.c: Fix common/ includes.
14904 * python/py-inferior.c: Fix common/ includes.
14905 * progspace.h: Fix common/ includes.
14906 * producer.c: Fix common/ includes.
14907 * procfs.c: Fix common/ includes.
14908 * proc-api.c: Fix common/ includes.
14909 * printcmd.c: Fix common/ includes.
14910 * ppc-linux-nat.c: Fix common/ includes.
14911 * parser-defs.h: Fix common/ includes.
14912 * osdata.c: Fix common/ includes.
14913 * obsd-nat.c: Fix common/ includes.
14914 * nat/x86-linux.c: Fix common/ includes.
14915 * nat/x86-linux-dregs.c: Fix common/ includes.
14916 * nat/x86-dregs.h: Fix common/ includes.
14917 * nat/x86-dregs.c: Fix common/ includes.
14918 * nat/ppc-linux.c: Fix common/ includes.
14919 * nat/mips-linux-watch.h: Fix common/ includes.
14920 * nat/mips-linux-watch.c: Fix common/ includes.
14921 * nat/linux-waitpid.c: Fix common/ includes.
14922 * nat/linux-ptrace.h: Fix common/ includes.
14923 * nat/linux-ptrace.c: Fix common/ includes.
14924 * nat/linux-procfs.c: Fix common/ includes.
14925 * nat/linux-personality.c: Fix common/ includes.
14926 * nat/linux-osdata.c: Fix common/ includes.
14927 * nat/linux-namespaces.c: Fix common/ includes.
14928 * nat/linux-btrace.h: Fix common/ includes.
14929 * nat/linux-btrace.c: Fix common/ includes.
14930 * nat/fork-inferior.c: Fix common/ includes.
14931 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14932 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14933 * nat/aarch64-linux.c: Fix common/ includes.
14934 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14935 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14936 * namespace.h: Fix common/ includes.
14937 * mips-linux-tdep.c: Fix common/ includes.
14938 * minsyms.c: Fix common/ includes.
14939 * mi/mi-parse.h: Fix common/ includes.
14940 * mi/mi-main.c: Fix common/ includes.
14941 * mi/mi-cmd-env.c: Fix common/ includes.
14942 * memrange.h: Fix common/ includes.
14943 * memattr.c: Fix common/ includes.
14944 * maint.h: Fix common/ includes.
14945 * maint.c: Fix common/ includes.
14946 * main.c: Fix common/ includes.
14947 * machoread.c: Fix common/ includes.
14948 * location.c: Fix common/ includes.
14949 * linux-thread-db.c: Fix common/ includes.
14950 * linux-nat.c: Fix common/ includes.
14951 * linux-fork.c: Fix common/ includes.
14952 * inline-frame.c: Fix common/ includes.
14953 * infrun.c: Fix common/ includes.
14954 * inflow.c: Fix common/ includes.
14955 * inferior.h: Fix common/ includes.
14956 * inferior.c: Fix common/ includes.
14957 * infcmd.c: Fix common/ includes.
14958 * inf-ptrace.c: Fix common/ includes.
14959 * inf-child.c: Fix common/ includes.
14960 * ia64-linux-nat.c: Fix common/ includes.
14961 * i387-tdep.c: Fix common/ includes.
14962 * i386-tdep.c: Fix common/ includes.
14963 * i386-linux-tdep.c: Fix common/ includes.
14964 * i386-linux-nat.c: Fix common/ includes.
14965 * i386-go32-tdep.c: Fix common/ includes.
14966 * i386-fbsd-tdep.c: Fix common/ includes.
14967 * i386-fbsd-nat.c: Fix common/ includes.
14968 * guile/scm-type.c: Fix common/ includes.
14969 * guile/guile.c: Fix common/ includes.
14970 * go32-nat.c: Fix common/ includes.
14971 * gnu-nat.c: Fix common/ includes.
14972 * gdbthread.h: Fix common/ includes.
14973 * gdbarch-selftests.c: Fix common/ includes.
14974 * gdb_usleep.c: Fix common/ includes.
14975 * gdb_select.h: Fix common/ includes.
14976 * gdb_bfd.c: Fix common/ includes.
14977 * gcore.c: Fix common/ includes.
14978 * fork-child.c: Fix common/ includes.
14979 * findvar.c: Fix common/ includes.
14980 * fbsd-nat.c: Fix common/ includes.
14981 * event-top.c: Fix common/ includes.
14982 * event-loop.c: Fix common/ includes.
14983 * dwarf2read.c: Fix common/ includes.
14984 * dwarf2loc.c: Fix common/ includes.
14985 * dwarf2-frame.c: Fix common/ includes.
14986 * dwarf-index-cache.c: Fix common/ includes.
14987 * dtrace-probe.c: Fix common/ includes.
14988 * disasm-selftests.c: Fix common/ includes.
14989 * defs.h: Fix common/ includes.
14990 * csky-tdep.c: Fix common/ includes.
14991 * cp-valprint.c: Fix common/ includes.
14992 * cp-support.h: Fix common/ includes.
14993 * cp-support.c: Fix common/ includes.
14994 * corelow.c: Fix common/ includes.
14995 * completer.h: Fix common/ includes.
14996 * completer.c: Fix common/ includes.
14997 * compile/compile.c: Fix common/ includes.
14998 * compile/compile-loc2c.c: Fix common/ includes.
14999 * compile/compile-cplus-types.c: Fix common/ includes.
15000 * compile/compile-cplus-symbols.c: Fix common/ includes.
15001 * command.h: Fix common/ includes.
15002 * cli/cli-dump.c: Fix common/ includes.
15003 * cli/cli-cmds.c: Fix common/ includes.
15004 * charset.c: Fix common/ includes.
15005 * build-id.c: Fix common/ includes.
15006 * btrace.h: Fix common/ includes.
15007 * btrace.c: Fix common/ includes.
15008 * breakpoint.h: Fix common/ includes.
15009 * breakpoint.c: Fix common/ includes.
15010 * ax.h:
15011 (enum agent_op): Fix common/ includes.
15012 * ax-general.c (struct aop_map): Fix common/ includes.
15013 * ax-gdb.c: Fix common/ includes.
15014 * auxv.c: Fix common/ includes.
15015 * auto-load.c: Fix common/ includes.
15016 * arm-tdep.c: Fix common/ includes.
15017 * arch/riscv.c: Fix common/ includes.
15018 * arch/ppc-linux-common.c: Fix common/ includes.
15019 * arch/i386.c: Fix common/ includes.
15020 * arch/arm.c: Fix common/ includes.
15021 * arch/arm-linux.c: Fix common/ includes.
15022 * arch/arm-get-next-pcs.c: Fix common/ includes.
15023 * arch/amd64.c: Fix common/ includes.
15024 * arch/aarch64.c: Fix common/ includes.
15025 * arch/aarch64-insn.c: Fix common/ includes.
15026 * arch-utils.c: Fix common/ includes.
15027 * amd64-windows-tdep.c: Fix common/ includes.
15028 * amd64-tdep.c: Fix common/ includes.
15029 * amd64-sol2-tdep.c: Fix common/ includes.
15030 * amd64-obsd-tdep.c: Fix common/ includes.
15031 * amd64-nbsd-tdep.c: Fix common/ includes.
15032 * amd64-linux-tdep.c: Fix common/ includes.
15033 * amd64-linux-nat.c: Fix common/ includes.
15034 * amd64-fbsd-tdep.c: Fix common/ includes.
15035 * amd64-fbsd-nat.c: Fix common/ includes.
15036 * amd64-dicos-tdep.c: Fix common/ includes.
15037 * amd64-darwin-tdep.c: Fix common/ includes.
15038 * agent.c: Fix common/ includes.
15039 * ada-lang.h: Fix common/ includes.
15040 * ada-lang.c: Fix common/ includes.
15041 * aarch64-tdep.c: Fix common/ includes.
15042
2f5c153e
TT
150432019-01-25 Tom Tromey <tom@tromey.com>
15044
15045 * common/create-version.sh: Use common/version.h.
15046
adc6a863
PA
150472019-01-24 Pedro Alves <palves@redhat.com>
15048
15049 * infrun.c (signal_stop, signal_print, signal_program)
15050 (signal_catch, signal_pass): Now arrays instead of pointers.
15051 (update_signals_program_target, do_target_resume)
15052 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15053 * linux-nat.c (linux_nat_target::pass_signals)
15054 (linux_nat_target::create_inferior, linux_nat_target::attach):
15055 Adjust.
15056 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15057 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15058 * procfs.c (procfs_target::pass_signals): Adjust.
15059 * record-full.c (record_full_target::resume): Adjust.
15060 * remote.c (remote_target::pass_signals)
15061 (remote_target::program_signals): Adjust.
15062 * target-debug.h (target_debug_print_signals): Now takes a
15063 gdb::array_view as parameter. Adjust.
15064 * target.h (target_ops) <pass_signals, program_signals>: Replace
15065 pointer and length parameters with gdb::array_view.
15066 (target_pass_signals, target_program_signals): Likewise.
15067 * target-delegates.c: Regenerate.
15068
3046d67a
PA
150692019-01-24 Pedro Alves <palves@redhat.com>
15070
15071 * common/forward-scope-exit.h
15072 (forward_scope_exit::forward_scope_exit): Pass arguments to
15073 m_bind_function directly, instead of creating a std::bind and
15074 copying that.
15075
353229bf
AH
150762019-01-24 Alan Hayward <alan.hayward@arm.com>
15077
15078 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15079 for static members.
15080 (pass_in_v_vfp_candidate): Likewise.
15081
311dc83a
TT
150822019-01-23 Tom Tromey <tom@tromey.com>
15083 Pedro Alves <palves@redhat.com>
15084
15085 * regcache.c (class regcache_invalidator): Remove.
15086 (regcache::raw_write): Use make_scope_exit.
15087
296bd123
TT
150882019-01-23 Tom Tromey <tom@tromey.com>
15089
15090 * ui-out.h (class ui_out_emit_type): Update comment.
15091
979a0d13
TT
150922019-01-23 Tom Tromey <tom@tromey.com>
15093
15094 * infrun.c (fetch_inferior_event): Update comment.
15095
d238133d
TT
150962019-01-23 Tom Tromey <tom@tromey.com>
15097 Pedro Alves <palves@redhat.com>
15098
15099 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15100 parameter.
15101 (fetch_inferior_event): Use SCOPE_EXIT.
15102
15103
9885e6bb
TT
151042019-01-23 Tom Tromey <tom@tromey.com>
15105 Pedro Alves <palves@redhat.com>
15106
15107 * infrun.c (disable_thread_events): Delete.
15108 (stop_all_threads): Use SCOPE_EXIT.
15109
286526c1
TT
151102019-01-23 Tom Tromey <tom@tromey.com>
15111 Pedro Alves <palves@redhat.com>
15112
15113 * symfile.c: Include forward-scope-exit.h.
15114 (clear_symtab_users_cleanup): Replace forward declaration with
15115 a FORWARD_SCOPE_EXIT.
15116 (syms_from_objfile_1): Use the forward_scope_exit and
15117 gdb::optional instead of cleanup_function.
15118 (reread_symbols): Use the forward_scope_exit instead of
15119 cleanup_function.
15120 (clear_symtab_users_cleanup): Remove function.
15121
1db93f14
TT
151222019-01-23 Tom Tromey <tom@tromey.com>
15123 Pedro Alves <palves@redhat.com>
15124
15125 * linux-nat.c: Include scope-exit.h.
15126 (cleanup_target_stop): Remove.
15127 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15128 SCOPE_EXIT.
15129
2cc83d1e
TT
151302019-01-23 Tom Tromey <tom@tromey.com>
15131 Pedro Alves <palves@redhat.com>
15132
15133 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15134 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15135
694c6bf5
TT
151362019-01-23 Tom Tromey <tom@tromey.com>
15137 Andrew Burgess <andrew.burgess@embecosm.com>
15138 Pedro Alves <palves@redhat.com>
15139
15140 * infrun.c (fetch_inferior_event): Use scope_exit.
15141 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15142 * top.c (execute_command): Use scope_exit.
15143 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15144 * utils.c (do_bpstat_clear_actions_cleanup)
15145 (make_bpstat_clear_actions_cleanup): Remove.
15146
4c41382a
TT
151472019-01-23 Tom Tromey <tom@tromey.com>
15148 Pedro Alves <palves@redhat.com>
15149
15150 * infrun.c: Include "common/scope-exit.h"
15151 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15152 (wait_for_inferior): Use SCOPE_EXIT.
15153 (fetch_inferior_event): Use scope_exit.
15154
89f8fb50
TT
151552019-01-23 Tom Tromey <tom@tromey.com>
15156 Pedro Alves <palves@redhat.com>
15157
15158 * breakpoint.c (create_breakpoint): Remove cleanup.
15159
5419bdae
TT
151602019-01-23 Tom Tromey <tom@tromey.com>
15161 Andrew Burgess <andrew.burgess@embecosm.com>
15162 Pedro Alves <palves@redhat.com>
15163
e587ef42
PA
151642019-01-23 Pedro Alves <palves@redhat.com>
15165
15166 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15167
77f0e74c
PA
151682019-01-23 Pedro Alves <palves@redhat.com>
15169 Andrew Burgess <andrew.burgess@embecosm.com>
15170
15171 * gdbthread.h: Include "common/forward-scope-exit.h".
15172 (scoped_finish_thread_state): Redefine custom class in terms of
15173 forward_scope_exit.
15174
5b9b3e53
PA
151752019-01-23 Pedro Alves <palves@redhat.com>
15176 Andrew Burgess <andrew.burgess@embecosm.com>
15177
15178 * common/forward-scope-exit.h: New file.
15179
54b65c9b
PA
151802019-01-23 Pedro Alves <palves@redhat.com>
15181 Andrew Burgess <andrew.burgess@embecosm.com>
15182 Tom Tromey <tom@tromey.com>
15183
15184 * common/scope-exit.h: New file.
15185
cf08fb29
PA
151862019-01-23 Pedro Alves <palves@redhat.com>
15187
15188 * common/preprocessor.h (ESC): Rename to ...
15189 (ESC_PARENS): ... this.
15190 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15191 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15192
ae73e2e2
TT
151932019-01-23 Tom Tromey <tom@tromey.com>
15194
15195 * language.h (class scoped_switch_to_sym_language_if_auto):
15196 Initialize m_lang in both cases.
15197
6594e122
AH
151982019-01-23 Alan Hayward <alan.hayward@arm.com>
15199
15200 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15201 with XCNEW.
15202
a7c9855d
TT
152032019-01-22 Tom Tromey <tom@tromey.com>
15204
15205 * corelow.c: Do not include sys/file.h.
15206
93cc1d53
TT
152072019-01-22 Tom Tromey <tom@tromey.com>
15208
15209 * tui/tui-wingeneral.h: Include gdb_curses.h.
15210
38561778
TT
152112019-01-22 Tom Tromey <tom@tromey.com>
15212
15213 * source-cache.h (class source_cache) <get_source_lines,
15214 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15215
37b3ab5b
TT
152162019-01-22 Tom Tromey <tom@tromey.com>
15217
15218 * remote-fileio.h (struct remote_target): Declare.
15219
3fabc016
TT
152202019-01-22 Tom Tromey <tom@tromey.com>
15221
15222 * python/py-arch.c: Do not include py-ref.h.
15223 * python/py-bpevent.c: Do not include py-ref.h.
15224 * python/py-cmd.c: Do not include py-ref.h.
15225 * python/py-continueevent.c: Do not include py-ref.h.
15226 * python/py-event.h: Do not include py-ref.h.
15227 * python/py-evtregistry.c: Do not include py-ref.h.
15228 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15229 * python/py-frame.c: Do not include py-ref.h.
15230 * python/py-framefilter.c: Do not include py-ref.h.
15231 * python/py-function.c: Do not include py-ref.h.
15232 * python/py-infevents.c: Do not include py-ref.h.
15233 * python/py-linetable.c: Do not include py-ref.h.
15234 * python/py-objfile.c: Do not include py-ref.h.
15235 * python/py-param.c: Do not include py-ref.h.
15236 * python/py-prettyprint.c: Do not include py-ref.h.
15237 * python/py-progspace.c: Do not include py-ref.h.
15238 * python/py-symbol.c: Do not include py-ref.h.
15239 * python/py-symtab.c: Do not include py-ref.h.
15240 * python/py-type.c: Do not include py-ref.h.
15241 * python/py-unwind.c: Do not include py-ref.h.
15242 * python/py-utils.c: Do not include py-ref.h.
15243 * python/py-value.c: Do not include py-ref.h.
15244 * python/py-varobj.c: Do not include py-ref.h.
15245 * python/py-xmethods.c: Do not include py-ref.h.
15246 * python/python.c: Do not include py-ref.h.
15247 * varobj.c: Do not include py-ref.h.
15248
6b4d7774
TT
152492019-01-22 Tom Tromey <tom@tromey.com>
15250
15251 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15252 keyword for bcache.
15253
7af7e9b5
TT
152542019-01-22 Tom Tromey <tom@tromey.com>
15255
15256 * compile/compile-cplus-types.c: Remove a comment by #include.
15257
951d1049
TT
152582019-01-22 Tom Tromey <tom@tromey.com>
15259
15260 * compile/gcc-c-plugin.h: Include compile-internal.h.
15261
d65d5705
TT
152622019-01-22 Tom Tromey <tom@tromey.com>
15263
15264 * stabsread.c (EXTERN): Do not define.
15265 (symnum, next_symbol_text_func, processing_gcc_compilation)
15266 (within_function, global_sym_chain, global_stabs)
15267 (previous_stab_code, this_object_header_files)
15268 (n_this_object_header_files)
15269 (n_allocated_this_object_header_files): Define.
15270 * stabsread.h (EXTERN): Never define. Use "extern".
15271
b6fb1ee5
PW
152722019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15273
15274 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15275 history_value.
15276
be6d4f74
TT
152772019-01-21 Tom Tromey <tom@tromey.com>
15278
15279 * ui-out.c: Fix includes.
15280 * tui/tui-source.c: Fix includes.
15281 * target.c: Fix includes.
15282 * remote.c: Fix includes.
15283 * regcache.c: Fix includes.
15284 * python/py-block.c: Fix includes.
15285 * printcmd.c: Fix includes.
15286 * or1k-tdep.c: Fix includes.
15287 * mi/mi-main.c: Fix includes.
15288 * m32r-tdep.c: Fix includes.
15289 * csky-tdep.c: Fix includes.
15290 * compile/compile-cplus-types.c: Fix includes.
15291 * cli/cli-interp.c: Fix includes.
15292
73021deb
AH
152932019-01-21 Alan Hayward <alan.hayward@arm.com>
15294
15295 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15296 for padding.
15297
7932255d
TT
152982019-01-16 Tom Tromey <tom@tromey.com>
15299
15300 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15301 earlier.
15302 (struct objfile) <msymbols_range>: Move from top level.
15303 <msymbols>: New method.
15304 (class objfile_msymbols): Remove.
15305 * symtab.c (default_collect_symbol_completion_matches_break_on):
15306 Update.
15307 * symmisc.c (dump_msymbols): Update.
15308 * stabsread.c (scan_file_globals): Update.
15309 * objc-lang.c (info_selectors_command, info_classes_command)
15310 (find_methods): Update.
15311 * minsyms.c (find_solib_trampoline_target): Update.
15312 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15313 * coffread.c (coff_symfile_read): Update.
15314 * ada-lang.c (ada_lookup_simple_minsym)
15315 (ada_collect_symbol_completion_matches): Update.
15316
604b1bfb
TT
153172019-01-16 Tom Tromey <tom@tromey.com>
15318
15319 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15320 type. Remove no-argument constructor.
15321 <iterator::operator++>: Simplify.
15322 <begin>: Update.
15323 <end>: Use minimal_symbol_count.
15324
f252c6d5
TT
153252019-01-16 Tom Tromey <tom@tromey.com>
15326
15327 * objfiles.h (struct objfile) <psymtabs>: New method.
15328 (class objfile_psymtabs): Remove.
15329 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15330 typedef.
15331 <range>: New method.
15332 (require_partial_symbols): Change return type.
15333 * psymtab.c (require_partial_symbols)
15334 (psym_expand_symtabs_matching): Update.
15335 * mdebugread.c (parse_partial_symbols): Update.
15336 * dbxread.c (dbx_end_psymtab): Update.
15337
b669c953
TT
153382019-01-15 Tom Tromey <tom@tromey.com>
15339
15340 * symtab.c (lookup_objfile_from_block)
15341 (lookup_symbol_in_objfile_symtabs)
15342 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15343 (find_line_symtab, info_sources_command)
15344 (default_collect_symbol_completion_matches_break_on)
15345 (make_source_files_completion_list): Update.
15346 * symmisc.c (print_objfile_statistics, dump_objfile)
15347 (maintenance_print_symbols, maintenance_info_symtabs)
15348 (maintenance_check_symtabs, maintenance_info_line_tables):
15349 Update.
15350 * source.c (select_source_symtab)
15351 (forget_cached_source_info_for_objfile): Update.
15352 * objfiles.h (class objfile_compunits): Remove.
15353 (struct objfile) <compunits_range>: New typedef.
15354 (compunits): New method.
15355 * objfiles.c (objfile_relocate1): Update.
15356 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15357 * maint.c (count_symtabs_and_blocks): Update.
15358 * linespec.c (iterate_over_all_matching_symtabs): Update.
15359 * cp-support.c (add_symbol_overload_list_qualified): Update.
15360 * coffread.c (coff_symtab_read): Update.
15361 * ada-lang.c (add_nonlocal_symbols)
15362 (ada_collect_symbol_completion_matches)
15363 (ada_add_global_exceptions): Update.
15364
7e955d83
TT
153652019-01-15 Tom Tromey <tom@tromey.com>
15366
15367 * progspace.h (program_space) <objfiles_safe_range>: New
15368 typedef.
15369 <objfiles_safe>: New method.
15370 * objfiles.h (class all_objfiles_safe): Remove.
15371 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15372 * jit.c (jit_inferior_exit_hook): Update.
15373
2030c079
TT
153742019-01-17 Tom Tromey <tom@tromey.com>
15375
15376 * progspace.h (program_space) <objfiles_range>: New typedef.
15377 <objfiles>: New method.
15378 <objfiles_head>: Rename from objfiles.
15379 (object_files): Update.
15380 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15381 * guile/scm-pretty-print.c
15382 (ppscm_find_pretty_printer_from_objfiles): Update.
15383 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15384 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15385 Update.
15386 * python/py-progspace.c (pspy_get_objfiles): Update.
15387 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15388 Update.
15389 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15390 (objfpy_lookup_objfile_by_build_id): Update.
15391 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15392 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15393 Update.
15394 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15395 (expand_symtab_containing_pc, lookup_objfile_from_block)
15396 (lookup_static_symbol, basic_lookup_transparent_type)
15397 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15398 (find_line_symtab, info_sources_command)
15399 (default_collect_symbol_completion_matches_break_on)
15400 (make_source_files_completion_list, find_main_name): Update.
15401 * symmisc.c (print_symbol_bcache_statistics)
15402 (print_objfile_statistics, maintenance_print_symbols)
15403 (maintenance_print_msymbols, maintenance_print_objfiles)
15404 (maintenance_info_symtabs, maintenance_check_symtabs)
15405 (maintenance_expand_symtabs, maintenance_info_line_tables):
15406 Update.
15407 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15408 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15409 (map_overlay_command, unmap_overlay_command)
15410 (simple_overlay_update, expand_symtabs_matching)
15411 (map_symbol_filenames): Update.
15412 * symfile-debug.c (set_debug_symfile): Update.
15413 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15414 Update.
15415 * source.c (select_source_symtab, forget_cached_source_info):
15416 Update.
15417 * solib.c (solib_read_symbols): Update.
15418 * solib-spu.c (append_ocl_sos): Update.
15419 * psymtab.c (maintenance_print_psymbols)
15420 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15421 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15422 * printcmd.c (info_symbol_command): Update.
15423 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15424 Update.
15425 * objfiles.h (class all_objfiles): Remove.
15426 * objfiles.c (have_partial_symbols, have_full_symbols)
15427 (have_minimal_symbols, qsort_cmp, update_section_map)
15428 (shared_objfile_contains_address_p)
15429 (default_iterate_over_objfiles_in_search_order): Update.
15430 * objc-lang.c (info_selectors_command, info_classes_command)
15431 (find_methods): Update.
15432 * minsyms.c (find_solib_trampoline_target): Update.
15433 * maint.c (maintenance_info_sections)
15434 (maintenance_translate_address, count_symtabs_and_blocks):
15435 Update.
15436 * main.c (captured_main_1): Update.
15437 * linux-thread-db.c (try_thread_db_load_from_pdir)
15438 (has_libpthread): Update.
15439 * linespec.c (iterate_over_all_matching_symtabs)
15440 (search_minsyms_for_name): Update.
15441 * jit.c (jit_find_objf_with_entry_addr): Update.
15442 * hppa-tdep.c (find_unwind_entry)
15443 (hppa_lookup_stub_minimal_symbol): Update.
15444 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15445 Update.
15446 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15447 (elf_gnu_ifunc_resolve_by_got): Update.
15448 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15449 * dwarf-index-write.c (save_gdb_index_command): Update.
15450 * cp-support.c (add_symbol_overload_list_qualified): Update.
15451 * breakpoint.c (create_overlay_event_breakpoint)
15452 (create_longjmp_master_breakpoint)
15453 (create_std_terminate_master_breakpoint)
15454 (create_exception_master_breakpoint): Update.
15455 * blockframe.c (find_pc_partial_function): Update.
15456 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15457 (ada_collect_symbol_completion_matches)
15458 (ada_add_global_exceptions): Update.
15459
776489e0
TT
154602019-01-17 Tom Tromey <tom@tromey.com>
15461
15462 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15463 declare VEC.
15464 (solib_target_parse_libraries): Change return type.
15465 (library_list_start_segment, library_list_start_section)
15466 (library_list_end_library, library_list_start_library); Update.
15467 (solib_target_free_library_list): Remove.
15468 (solib_target_parse_libraries): Remove cleanup. Change return
15469 type.
15470 (solib_target_current_sos): Update.
15471
6471e7d2
TT
154722019-01-17 Tom Tromey <tromey@bapiya>
15473
15474 * valprint.c: Replace "the the" with "the".
15475 * symtab.c: Replace "the the" with "the".
15476 * solib.c: Replace "the the" with "the".
15477 * solib-dsbt.c: Replace "the the" with "the".
15478 * linespec.c: Replace "the the" with "the".
15479 * dwarf2loc.h: Replace "the the" with "the".
15480 * amd64-windows-tdep.c: Replace "the the" with "the".
15481 * aarch64-tdep.c: Replace "the the" with "the".
15482
c24bdb02
KS
154832019-01-16 Keith Seitz <keiths@redhat.com>
15484
15485 PR gdb/23773
15486 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15487 <builder>: Rename to ..
15488 <m_builder>: ... this and make private.
15489 (dwarf2_cu::get_builder): New method. Change all users of
15490 `builder' to use this method.
15491 (dwarf2_start_symtab): Move to ...
15492 (dwarf2_cu::start_symtab): ... here. Update all callers
15493 (setup_type_unit_groups): Move to ...
15494 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15495 callers.
15496 (dwarf2_cu::reset_builder): New method.
15497 (process_full_compunit, process_full_type_unit): Use
15498 dwarf2_cu::reset_builder.
15499 (follow_die_offset): Record the ancestor CU if it is different
15500 from the followed DIE's CU.
15501 (follow_die_sig_1): Likewise.
15502
8d64371b
TT
155032019-01-15 Tom Tromey <tom@tromey.com>
15504
15505 * remote.c (class remote_state) <buf>: Now a char_vector.
15506 <buf_size>: Remove.
15507 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15508 parameter.
15509 (remote_target::getpkt_or_notif_sane_1)
15510 (remote_target::getpkt_sane)
15511 (remote_target::getpkt_or_notif_sane): Likewise.
15512 (class remote_target) <putpkt>: New overload.
15513 (remote_target::read_frame): Change type of "buf_p". Remove
15514 sizeof_p parameter.
15515 (packet_ok): New overload.
15516 (packet_check_result): New overload.
15517 Update all uses.
15518
bb277751
TT
155192019-01-14 Tom Tromey <tom@tromey.com>
15520
15521 * remote-notif.c (handle_notification, remote_notif_ack)
15522 (remote_notif_parse): Make "buf" const.
15523 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15524 const.
15525 (remote_notif_parse, remote_notif_ack, handle_notification):
15526 Likewise.
15527 * remote.c (remote_notif_stop_parse): Make "buf" const.
15528 (remote_target::remote_parse_stop_reply): Make "buf" const.
15529 (remote_notif_stop_ack): Make "buf" const.
15530
05be00a8
TT
155312019-01-14 Tom Tromey <tom@tromey.com>
15532
15533 * remote.c (remote_console_output): Make parameter const.
15534
491adeca
TT
155352019-01-14 Tom Tromey <tom@tromey.com>
15536
15537 * target-debug.h (target_debug_print_signals): Constify.
15538 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15539 * procfs.c (procfs_target::pass_signals): Update.
15540 * linux-nat.c (linux_nat_target::pass_signals): Update.
15541 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15542 * target-delegates.c: Rebuild.
15543 * remote.c (remote_target::program_signals): Update.
15544 (remote_target::pass_signals): Update.
15545 * target.c (target_pass_signals): Constify argument.
15546 (target_program_signals): Likewise.
15547 * target.h (struct target_ops) <pass_signals, program_signals>:
15548 Constify argument.
15549 (target_pass_signals, target_program_signals): Constify argument.
15550
bbd94648
TT
155512019-01-14 Tom Tromey <tom@tromey.com>
15552
15553 PR tui/28819:
15554 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15555
6f072a10
PFC
155562019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15557
15558 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15559 field.
15560 * rs6000-tdep.c: Include reggroups.h.
15561 (IS_V_ALIAS_PSEUDOREG): Define.
15562 (rs6000_register_name): Return names for the "vX" aliases.
15563 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15564 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15565 aliases. Call default_register_reggroup_p for all other
15566 pseudo-registers.
15567 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15568 New functions.
15569 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15570 Handle "vX" aliases.
15571 (v_alias_pseudo_register_collect): New function.
15572 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15573 (rs6000_gdbarch_init): Initialize "vX" aliases as
15574 pseudo-registers. Restore registration of
15575 rs6000_pseudo_register_reggroup_p with
15576 set_tdesc_pseudo_register_reggroup_p.
15577
1a782351
MF
155782019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15579
15580 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15581 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15582 set_gdbarch_num_pseudo_regs.
15583
d73cff18
PW
155842019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15585
15586 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15587 Remove arg prefixname, add do_set and do_show.
15588 Add member functions set_list and show_list.
15589 * cli/cli-style.c (class cli_style_option): Update accordingly.
15590 (style_set_list): Move to file scope.
15591 (style_show_list): Likewise.
15592 (set_style): Call help_list.
15593 (show_style): Call cmd_show_list.
15594 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15595 Update to use the new macro.
15596
60a90376
JB
155972019-10-12 Joel Brobecker <brobecker@adacore.com>
15598
15599 * ada-lang.c (_initialize_ada_language): Expand the help text
15600 for the "catch exception" command.
15601
9d7c67bf
PW
156022019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15603
15604 * symtab.c (matching_obj_sections): Initialize obj,
15605 declare it closer to its usage.
15606
7cf47dc4
TT
156072019-01-10 Tom Tromey <tom@tromey.com>
15608
15609 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15610 (basic_inf_threads_range): Remove.
15611 (inf_threads_range, inf_non_exited_threads_range)
15612 (safe_inf_threads_range): Use next_adapter.
15613
d3cb6808
KS
156142019-01-10 Keith Seitz <keiths@redhat.com>
15615
15616 PR gdb/23712
15617 PR symtab/23010
15618 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15619 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15620
63a20375
KS
156212019-01-10 Keith Seitz <keiths@redhat.com>
15622
15623 PR gdb/23712
15624 PR symtab/23010
15625 * dictionary.c (pending_to_vector): Remove.
15626 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15627 Remove _1 suffix, replacing functions of the same name. Update
15628 all callers.
15629 (dict_create_hashed, dict_create_hashed_expandable)
15630 (dict_create_linear, dict_create_linear_expandable, dict_free)
15631 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15632 Make functions static.
15633
b026f593
KS
156342019-01-10 Keith Seitz <keiths@redhat.com>
15635
15636 PR gdb/23712
15637 PR symtab/23010
15638 * dictionary.h (struct dictionary): Replace declaration with
15639 multidictionary.
15640 (dict_create_hashed, dict_create_hashed_expandable)
15641 (dict_create_linear, dict_create_linear_expandable)
15642 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15643 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15644 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15645 taking multidictionary argument.
15646 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15647 * block.h (struct block) <dict>: Change to multidictionary
15648 and rename `multidict'.
15649 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15650 symmisc.c: Update all dictionary references to multidictionary.
15651
c7748ee9
KS
156522019-01-10 Keith Seitz <keiths@redhat.com>
15653
15654 PR gdb/23712
15655 PR symtab/23010
15656 * dictionary.c: Include unordered_map.
15657 (pending_to_vector): New function.
15658 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15659 Rewrite the non-"_1" functions to take vector instead
15660 of linked list.
15661 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15662 "new" _1 versions of the same name.
15663 (multidictionary): Define.
15664 (std::hash<enum language): New definition.
15665 (collate_pending_symbols_by_language, mdict_create_hashed)
15666 (mdict_create_hashed_expandable, mdict_create_linear)
15667 (mdict_create_linear_expandable, mdict_free)
15668 (find_language_dictionary, create_new_language_dictionary)
15669 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15670 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15671 (mdict_size, mdict_empty): New functions.
15672 * dictionary.h (mdict_iterator): Define.
15673
67aa1f3c
PA
156742019-01-10 Pedro Alves <palves@redhat.com>
15675
15676 * breakpoint.c (read_uploaded_action)
15677 (create_tracepoint_from_upload): Adjust to use
15678 gdb::unique_xmalloc_ptr.
15679 * ctf.c (ctf_write_uploaded_tp):
15680 (SET_ARRAY_FIELD): Use emplace_back.
15681 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15682 * tracefile-tfile.c (tfile_write_uploaded_tp):
15683 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15684 gdb::unique_xmalloc_ptr.
15685 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15686 at_string, cond_string, cmd_strings>: Replace char pointers
15687 with gdb::unique_xmalloc_ptr.
15688
2f667667
PA
156892019-01-10 Pedro Alves <palves@redhat.com>
15690
15691 * solib-target.c (library_list_start_library): Don't xstrdup name.
15692
36cb7237
PA
156932019-01-10 Pedro Alves <palves@redhat.com>
15694
15695 * mdebugread.c (parse_partial_symbols): Use
15696 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15697
da584958
AB
156982019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15699
15700 * linux-fork.c (scoped_switch_fork_info)
15701 <~scoped_switch_fork_info>: Fix incorrect variable name.
15702
1ef8573c
AB
157032019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15704
15705 * linux-fork.c (scoped_switch_fork_info)
15706 <scoped_switch_fork_info>: Make explicit.
15707 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15708
8d7bcccb
TT
157092019-01-10 Tom Tromey <tom@tromey.com>
15710
15711 * objfiles.h (objfile::reset_psymtabs): Update.
15712 * objfiles.c (objfile::objfile): Update.
15713 * psymtab.h (psymtab_storage::obstack): Update.
15714 (psymtab_storage::m_obstack): Use gdb::optional.
15715 (class psymtab_storage): Update comment. Remove objfile
15716 parameter.
15717 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15718
b596a3c7
TT
157192019-01-10 Tom Tromey <tom@tromey.com>
15720
15721 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15722 <free_psymtabs>: Now private.
15723 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15724 (allocate_psymtab): Use new method.
15725
a9342b62
TT
157262019-01-10 Tom Tromey <tom@tromey.com>
15727
15728 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15729 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15730 * mdebugread.c (parse_partial_symbols): Use
15731 allocate_dependencies.
15732 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15733 allocate_dependencies.
15734 (process_psymtab_comp_unit_reader)
15735 (build_type_psymtab_dependencies): Likewise.
15736 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15737
5af70966
TT
157382019-01-10 Tom Tromey <tom@tromey.com>
15739
15740 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15741 PSYMBOL_SET_LANGUAGE.
15742 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15743
5923a04c
TT
157442019-01-10 Tom Tromey <tom@tromey.com>
15745
15746 * psymtab.h (psymtab_storage::obstack): New method.
15747 <m_obstack>: Rename from obstack; now private.
15748 * psymtab.c (psymtab_storage): Update.
15749 * dwarf2read.c (create_addrmap_from_index)
15750 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15751 Update.
15752
6d6a12bf
TT
157532019-01-10 Tom Tromey <tom@tromey.com>
15754
15755 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15756 * objfiles.h (objfile::reset_psymtabs): New method.
15757
d320c2b5
TT
157582019-01-10 Tom Tromey <tom@tromey.com>
15759
15760 * symmisc.c (print_symbol_bcache_statistics): Update.
15761 (print_objfile_statistics): Update.
15762 * symfile.c (reread_symbols): Update.
15763 * psymtab.h (class psymtab_storage): New.
15764 * psymtab.c (psymtab_storage): New constructor.
15765 (~psymtab_storage): New destructor.
15766 (require_partial_symbols): Update.
15767 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15768 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15769 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15770 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15771 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15772 (start_psymtab_common, end_psymtab_common)
15773 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15774 (allocate_psymtab): Update.
15775 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15776 Update.
15777 (dump_psymtab_addrmap, maintenance_print_psymbols)
15778 (maintenance_check_psymtabs): Update.
15779 (class objfile_psymtabs): Move to objfiles.h.
15780 * psympriv.h (discard_psymtab): Now inline.
15781 (psymtab_discarder::psymtab_discarder): Update.
15782 (psymtab_discarder::~psymtab_discarder): Update.
15783 (ALL_OBJFILE_PSYMTABS): Rewrite.
15784 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15785 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15786 Remove fields.
15787 <partial_symtabs>: New field.
15788 (class objfile_psymtabs): Move from psymtab.h. Update.
15789 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15790 psymbol_cache.
15791 (objfile::~objfile): Don't destroy psymbol_cache.
15792 * mdebugread.c (parse_partial_symbols): Update.
15793 * dwarf2read.c (create_addrmap_from_index)
15794 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15795 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15796 (add_partial_subprogram, dwarf2_ranges_read): Update.
15797 * dwarf-index-write.c (write_address_map)
15798 (write_one_signatured_type, recursively_write_psymbols)
15799 (class debug_names, class debug_names, write_psymtabs_to_index):
15800 Update.
15801
1d94a5a3
TT
158022019-01-10 Tom Tromey <tom@tromey.com>
15803
15804 * symtab.h (SYMBOL_SET_NAMES): Update.
15805 (symbol_set_names): Update.
15806 (MSYMBOL_SET_NAMES): Update.
15807 * symtab.c (symbol_set_names): Change argument to be an
15808 objfile_per_bfd_storage.
15809 * psymtab.c (add_psymbol_to_bcache): Update.
15810 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15811
0f14768a
TT
158122019-01-10 Tom Tromey <tom@tromey.com>
15813
15814 * symtab.c (create_demangled_names_hash): Change argument to be an
15815 objfile_per_bfd_storage.
15816 (symbol_set_names): Update.
15817
6eee24ce
TT
158182019-01-10 Tom Tromey <tom@tromey.com>
15819
15820 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15821 init_psymbol_list.
15822 * psymtab.c (init_psymbol_list): Do nothing if already called.
15823 * psympriv.h (init_psymbol_list): Add comment.
15824 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15825 init_psymbol_list.
15826 * dbxread.c (dbx_symfile_read): Unconditionally call
15827 init_psymbol_list.
15828
75aedd27
TT
158292019-01-10 Tom Tromey <tom@tromey.com>
15830
15831 * xcoffread.c (scan_xcoff_symtab): Update.
15832 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15833 "where".
15834 * mdebugread.c (parse_partial_symbols)
15835 (handle_psymbol_enumerators): Update.
15836 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15837 * dbxread.c (read_dbx_symtab): Update.
15838 * psympriv.h (psymbol_placement): New enum.
15839 (add_psymbol_to_list): Update.
15840
939652a5
TT
158412019-01-10 Tom Tromey <tom@tromey.com>
15842
15843 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15844 static_psymbols parameters.
15845 (scan_xcoff_symtab): Update.
15846 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15847 static_psymbols parameters.
15848 * psympriv.h (start_psymtab_common): Update.
15849 * mdebugread.c (parse_partial_symbols): Update.
15850 * dwarf2read.c (create_partial_symtab): Update.
15851 * dbxread.c (read_dbx_symtab): Update.
15852 (start_psymtab): Remove global_psymbols and static_psymbols
15853 parameters.
15854
baa62830
TT
158552019-01-10 Tom Tromey <tom@tromey.com>
15856
15857 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15858 * psymtab.c (allocate_psymtab): Add comment.
15859 * psympriv.h (allocate_psymtab): Add comment.
15860 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15861 initializations.
15862 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15863
0e8f53ba
TT
158642019-01-10 Tom Tromey <tom@tromey.com>
15865
15866 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15867 Don't declare.
15868 * mipsread.c: Include mdebugread.h.
15869 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15870 Declare.
15871 * elfread.c: Include mdebugread.h.
15872
b22a7c6a
TT
158732019-01-09 Tom Tromey <tom@tromey.com>
15874
15875 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15876 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15877 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15878 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15879 (psym_lookup_symbol, psym_find_last_source_symtab)
15880 (psym_forget_cached_source_info, psym_print_stats)
15881 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15882 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15883 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15884 (psym_find_compunit_symtab_by_address)
15885 (maintenance_print_psymbols, maintenance_info_psymtabs)
15886 (maintenance_check_psymtabs): Use ranged for.
15887 * psymtab.h (class objfile_psymtabs): New.
15888 (require_partial_symbols): Return objfile_psymtabs.
15889 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15890
3b9d3ac2
TT
158912019-01-09 Tom Tromey <tom@tromey.com>
15892
15893 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15894 (find_pc_mapped_section, list_overlays_command)
15895 (map_overlay_command, unmap_overlay_command)
15896 (simple_overlay_update): Use all_objfiles.
15897 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15898 * printcmd.c (info_symbol_command): Use all_objfiles.
15899 * objfiles.h (ALL_OBJSECTIONS): Remove.
15900 * maint.c (maintenance_translate_address): Use all_objfiles.
15901 * gcore.c (gcore_create_callback): Use all_objfiles.
15902 (objfile_find_memory_regions): Likewise.
15903
8b31193a
TT
159042019-01-09 Tom Tromey <tom@tromey.com>
15905
15906 * symtab.c (find_line_symtab, info_sources_command)
15907 (make_source_files_completion_list): Use objfile_compunits.
15908 * source.c (select_source_symtab): Use objfile_compunits.
15909 * objfiles.h (struct objfile): Update comment.
15910 (ALL_OBJFILES): Remove.
15911 (ALL_FILETABS): Remove.
15912 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15913 objfile_compunits.
15914
d5da8b3c
TT
159152019-01-09 Tom Tromey <tom@tromey.com>
15916
15917 * symmisc.c (print_objfile_statistics, dump_objfile)
15918 (maintenance_print_symbols): Use compunit_filetabs.
15919 * source.c (forget_cached_source_info_for_objfile): Use
15920 compunit_filetabs.
15921 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15922 (ALL_FILETABS): Use compunit_filetabs.
15923 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15924 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15925
5accd1a0
TT
159262019-01-09 Tom Tromey <tom@tromey.com>
15927
15928 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15929 (compunit_filetabs): New.
15930 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15931 compunit_filetabs.
15932 (info_sources_command, make_source_files_completion_list): Remove
15933 declaration.
15934 * symmisc.c (print_objfile_statistics, dump_objfile)
15935 (maintenance_print_symbols): Remove declaration.
15936 (maintenance_info_symtabs): Use compunit_filetabs.
15937 (maintenance_info_line_tables): Likewise.
15938 * source.c (select_source_symtab): Change local variable name.
15939 (forget_cached_source_info_for_objfile): Remove declaration.
15940 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15941 * objfiles.c (objfile_relocate1): Remove declaration.
15942 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15943 declaration.
15944 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15945 * coffread.c (coff_symtab_read): Remove declaration.
15946 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15947 compunit_filetabs.
15948
d8aeb77f
TT
159492019-01-09 Tom Tromey <tom@tromey.com>
15950
15951 * symtab.c (lookup_objfile_from_block)
15952 (find_pc_sect_compunit_symtab, search_symbols)
15953 (default_collect_symbol_completion_matches_break_on): Use
15954 objfile_compunits.
15955 * objfiles.h (ALL_COMPUNITS): Remove.
15956 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15957 * cp-support.c (add_symbol_overload_list_qualified): Use
15958 objfile_compunits.
15959 * ada-lang.c (ada_collect_symbol_completion_matches)
15960 (ada_add_global_exceptions): Use objfile_compunits.
15961
592553c4
TT
159622019-01-09 Tom Tromey <tom@tromey.com>
15963
15964 * source.c (select_source_symtab)
15965 (forget_cached_source_info_for_objfile): Remove declaration.
15966 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15967 declaration.
15968 * maint.c (count_symtabs_and_blocks): Remove declaration.
15969 * cp-support.c (add_symbol_overload_list_qualified): Remove
15970 declaration.
15971 * coffread.c (coff_symtab_read): Remove declaration.
15972 * symtab.c (lookup_symbol_in_objfile_symtabs)
15973 (basic_lookup_transparent_type_1): Use objfile_compunits.
15974 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15975 (info_sources_command, search_symbols)
15976 (default_collect_symbol_completion_matches_break_on)
15977 (make_source_files_completion_list): Remove declaration.
15978 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15979 (ada_collect_symbol_completion_matches)
15980 (ada_add_global_exceptions): Remove declaration.
15981 * linespec.c (iterate_over_all_matching_symtabs): Use
15982 objfile_compunits.
15983 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15984 (class objfile_compunits): New.
15985 (ALL_COMPUNITS): Use objfile_compunits.
15986 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15987 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15988 objfile_compunits.
15989 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15990
5325b9bf
TT
159912019-01-09 Tom Tromey <tom@tromey.com>
15992
15993 * symtab.c (search_symbols)
15994 (default_collect_symbol_completion_matches_break_on): Use
15995 objfile_msymbols.
15996 * ada-lang.c (ada_lookup_simple_minsym)
15997 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15998 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15999 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16000 objfile_msymbols.
16001 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16002 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16003 * objc-lang.c (find_methods): Use objfile_msymbols.
16004 (info_selectors_command, info_classes_command): Likewise.
16005 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16006 * objfiles.h (class objfile_msymbols): New.
16007 (ALL_OBJFILE_MSYMBOLS): Remove.
16008 (ALL_MSYMBOLS): Remove.
16009
cac85af2
TT
160102019-01-09 Tom Tromey <tom@tromey.com>
16011
16012 * common/next-iterator.h (next_adapter): Add Iterator template
16013 parameter.
16014 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16015 (class all_objfiles_safe): New.
16016 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16017 * objfiles.c (put_objfile_before): Update comment.
16018 (add_separate_debug_objfile): Likewise.
16019 (free_all_objfiles): Use all_objfiles_safe.
16020 (objfile_purge_solibs): Likewise.
16021
aed57c53
TT
160222019-01-09 Tom Tromey <tom@tromey.com>
16023
16024 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16025 (expand_symtab_containing_pc, lookup_static_symbol)
16026 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16027 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16028 all_objfiles.
16029 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16030 * breakpoint.c (create_overlay_event_breakpoint)
16031 (create_longjmp_master_breakpoint)
16032 (create_std_terminate_master_breakpoint)
16033 (create_exception_master_breakpoint): Use all_objfiles.
16034 * linux-thread-db.c (try_thread_db_load_from_pdir)
16035 (has_libpthread): Use all_objfiles.
16036 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16037 * linespec.c (iterate_over_all_matching_symtabs)
16038 (search_minsyms_for_name): Use all_objfiles.
16039 * maint.c (maintenance_info_sections): Use all_objfiles.
16040 * main.c (captured_main_1): Use all_objfiles.
16041 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16042 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16043 * guile/scm-pretty-print.c
16044 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16045 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16046 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16047 (maintenance_print_msymbols): Use all_objfiles.
16048 * source.c (select_source_symtab): Use all_objfiles.
16049 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16050 * symfile.c (remove_symbol_file_command)
16051 (expand_symtabs_matching, map_symbol_filenames): Use
16052 all_objfiles.
16053 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16054 all_objfiles.
16055 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16056 * objc-lang.c (find_methods): Use all_objfiles.
16057 * objfiles.c (have_partial_symbols, have_full_symbols)
16058 (have_minimal_symbols, qsort_cmp)
16059 (default_iterate_over_objfiles_in_search_order): Use
16060 all_objfiles.
16061 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16062 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16063 (maintenance_check_psymtabs): Use all_objfiles.
16064 (ALL_PSYMTABS): Remove.
16065 * compile/compile-object-run.c (do_module_cleanup): Use
16066 all_objfiles.
16067 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16068 * cp-support.c (add_symbol_overload_list_qualified): Use
16069 all_objfiles.
16070 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16071 Use all_objfiles.
16072 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16073 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16074 all_objfiles.
16075 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16076 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16077 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16078 Uses all_objfiles.
16079 * solib.c (solib_read_symbols): Use all_objfiles
16080
99d89cde
TT
160812019-01-09 Tom Tromey <tom@tromey.com>
16082
16083 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16084 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16085 all_objfiles.
16086 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16087 * symmisc.c (print_symbol_bcache_statistics)
16088 (print_objfile_statistics, maintenance_print_objfiles)
16089 (maintenance_info_symtabs, maintenance_check_symtabs)
16090 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16091 all_objfiles.
16092 * source.c (forget_cached_source_info): Use all_objfiles.
16093 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16094 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16095 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16096 * objfiles.c (update_section_map): Use all_objfiles.
16097 (shared_objfile_contains_address_p): Likewise.
16098 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16099 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16100
21708325
TT
161012019-01-09 Tom Tromey <tom@tromey.com>
16102
16103 * common/next-iterator.h: New file.
16104 * objfiles.h (class all_objfiles): New.
16105 (struct objfile_iterator): New.
16106
669e09f6
PW
161072019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16108
16109 * NEWS: Move the description of the changed "frame", "select-frame",
16110 and "info frame" commands to the Changed commands section.
16111
041be526
SM
161122019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16113
16114 * gdbtypes.c (check_stub_method_group): Remove handling of old
16115 mangling schemes.
16116 * linespec.c (find_methods): Likewise.
16117 * stabsread.c (read_member_functions): Likewise.
16118 * valops.c (search_struct_method): Likewise.
16119 (value_struct_elt_for_reference): Likewise.
16120 * NEWS: Mention this change.
16121
0e2a2133
AB
161222019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16123
16124 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16125 print_source_lines.
16126 * source.c (print_source_lines_base): Update line number check.
16127 (print_source_lines): New function.
16128 (source_lines_range::source_lines_range): New function.
16129 * source.h (class source_lines_range): New class.
16130 (print_source_lines): New declaration.
16131
1055a3b4
PW
161322019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16133
16134 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16135
cfeadda5
TT
161362019-01-08 Tom Tromey <tom@tromey.com>
16137 Simon Marchi <simon.marchi@ericsson.com>
16138
16139 PR gdb/24060
16140 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16141 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16142 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16143 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16144 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16145 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16146
583068ca
AB
161472019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16148
16149 * source.c (select_source_symtab): Move header comment to
16150 declaration in source.h.
16151 (forget_cached_source_info_for_objfile): Likewise.
16152 (forget_cached_source_info): Likewise.
16153 (identify_source_line): Likewise.
16154 * source.h (identify_source_line): Move declaration from symtab.h
16155 and add comment from source.c
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 from symtab.h.
16161 * symtab.h (identify_source_line): Move declaration to source.h.
16162 (print_source_lines): Likewise.
16163 (forget_cached_source_info_for_objfile): Likewise.
16164 (forget_cached_source_info): Likewise.
16165 (select_source_symtab): Likewise.
16166 (enum print_source_lines_flag): Move definition to source.h.
16167 * tui/tui-hooks.c: Add 'source.h' include.
16168
ec98a4ad
AB
161692019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16170
16171 * source.c (print_source_lines_base): Handle requests to print
16172 reverse line number sequences, and guard against empty lines
16173 string.
16174
62ea19c1
AB
161752019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16176
16177 * source.c (print_source_lines_base): Fix skip of '\r' if next
16178 character is '\n'.
16179
9d30e1fd
TT
161802019-01-06 Tom Tromey <tom@tromey.com>
16181
16182 * c-exp.y (struct c_parse_state) <macro_original_text,
16183 expansion_obstack>: New member.
16184 (macro_original_text, expansion_obstack): Remove globals.
16185 (scan_macro_expansion, scanning_macro_expansion)
16186 (finished_macro_expansion): Update.
16187 (scan_macro_cleanup): Remove.
16188 (yylex, c_parse): Update.
16189
c65bac38
TT
161902019-01-06 Tom Tromey <tom@tromey.com>
16191
16192 * c-exp.y (struct c_parse_state) <strings>: New member.
16193 (operator_stoken): Update.
16194
02e12e38
TT
161952019-01-06 Tom Tromey <tom@tromey.com>
16196
16197 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16198 (union type_stack_elt) <typelist_val>: Now a pointer to
16199 std::vector.
16200 (type_stack_cleanup): Don't declare.
16201 (push_typelist): Update.
16202 * parse.c (pop_typelist): Return a std::vector.
16203 (push_typelist): Take a std::vector.
16204 (follow_types): Update. Do not free args.
16205 (type_stack_cleanup): Remove.
16206 * c-exp.y (struct c_parse_state): New.
16207 (cpstate): New global.
16208 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16209 (nonempty_typelist): Update.
16210 (func_mod): Create a new vector.
16211 (c_parse): Create a c_parse_state.
16212 (check_parameter_typelist): Do not delete params.
16213 (function_method): Update. Do not delete type_list.
16214
f097f5ad
TT
162152019-01-06 Tom Tromey <tom@tromey.com>
16216
16217 PR gdb/28155:
16218 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16219 check_typedef.
16220 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16221 (print_return_value): Likewise.
16222
d2adf9f1
TT
162232019-01-05 Tom Tromey <tom@tromey.com>
16224
16225 * contrib/cleanup_check.py: Remove.
16226 * contrib/gcc-with-excheck: Remove.
16227 * contrib/exsummary.py: Remove.
16228 * contrib/excheck.py: Remove.
16229
2eab46b1
JB
162302019-01-05 Joel Brobecker <brobecker@adacore.com>
16231
16232 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16233 NULL. Initialize tpprev to NULL instead of assigning it
16234 to NULL on the next statement.
16235 * windows-nat.c (windows_delete_thread): Remove check for
16236 main_thread_id before printing thread exit notifications.
16237 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16238 Remove thread ID check against main_thread_id.
16239 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16240 windows_delete_thread.
16241 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16242
48c5e7e2
TT
162432019-01-04 Tom Tromey <tom@tromey.com>
16244
16245 * compile/compile.c (_initialize_compile): Use upper case for
16246 metasyntactic variables.
16247 * symmisc.c (_initialize_symmisc): Use upper case for
16248 metasyntactic variables.
16249 * psymtab.c (_initialize_psymtab): Use upper case for
16250 metasyntactic variables.
16251 * demangle.c (demangle_command): Use upper case for metasyntactic
16252 variables.
16253 (_initialize_demangler): Likewise.
16254 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16255 variables.
16256
986041cd
TT
162572019-01-03 Tom Tromey <tom@tromey.com>
16258
16259 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16260
7c711119
TT
162612019-01-03 Tom Tromey <tom@tromey.com>
16262
16263 * python/py-symtab.c (salpy_str): Update.
16264 (struct salpy_sal_object) <symtab>: Now a PyObject.
16265 (salpy_dealloc): Update.
16266 (del_objfile_sal): Use gdbpy_ref.
16267
1b20edf0
TT
162682019-01-03 Tom Tromey <tom@tromey.com>
16269
16270 * python/py-type.c (convert_field): Use new_reference. Return
16271 gdbpy_ref.
16272 (make_fielditem): Return gdbpy_ref.
16273 (typy_fields): Update.
16274 (typy_getitem): Update.
16275 (field_name): Return gdbpy_ref. Use new_reference.
16276 (typy_iterator_iternext): Update.
16277
ea41325b
TT
162782019-01-03 Tom Tromey <tom@tromey.com>
16279
16280 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16281
2a3c71d6
TT
162822019-01-03 Tom Tromey <tom@tromey.com>
16283
16284 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16285 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16286 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16287 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16288 (pspy_set_type_printers): Likewise.
16289 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16290 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16291 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16292 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16293 (objfpy_set_type_printers): Likewise.
16294
5c329e6a
TT
162952019-01-03 Tom Tromey <tom@tromey.com>
16296
16297 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16298 (gdbpy_print_stack): Use gdbpy_err_fetch.
16299 * python/python-internal.h (class gdbpy_err_fetch): New class.
16300 (class gdbpy_enter) <m_error_type, m_error_value,
16301 m_error_traceback>: Remove.
16302 <m_error>: New member.
16303 (gdbpy_exception_to_string): Don't declare.
16304 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16305 * python/py-value.c (convert_value_from_python): Use
16306 gdbpy_err_fetch.
16307 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16308 gdbpy_exception_to_string.
16309 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16310 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16311 gdbpy_err_fetch.
16312
169bb27b
AB
163132019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16314
16315 * linux-nat.c (delete_lwp_cleanup): Delete.
16316 (struct lwp_deleter): New struct.
16317 (lwp_info_up): New typedef.
16318 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16319 lwp_info_up.
16320
a07c8880
AB
163212019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16322
16323 * linux-fork.c (class scoped_switch_fork_info): New class.
16324 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16325
26089c49
AB
163262019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16327
16328 * valops.c (find_overload_match): Remove use of null_cleanup, and
16329 calls to do_cleanups.
16330
06d3e5b0
AB
163312019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16332
16333 * compile/compile-cplus-types.c
16334 (compile_cplus_instance::decl_name): Handle changes to
16335 cp_func_name.
16336 * cp-support.c (cp_func_name): Update header comment, update
16337 return type.
16338 * cp-support.h (cp_func_name): Update return type in declaration.
16339 * valops.c (find_overload_match): Move temp_func local to top
16340 level of function and change its type. Use temp_func to hold and
16341 delete temporary string obtained from cp_func_name.
16342
66644cd3
AB
163432019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16344
16345 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16346 gdb::char_vector, remove cleanup, and update uses of `msg`.
16347
592d8c0a
JW
163482019-01-03 Jim Wilson <jimw@sifive.com>
16349
16350 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16351
c55d06ec
TT
163522019-01-02 Tom Tromey <tom@tromey.com>
16353
16354 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16355 (tdesc_parse_xml): Remove cleanups.
16356 * target-descriptions.h (make_cleanup_free_target_description):
16357 Don't declare.
16358 (target_desc_deleter): New struct.
16359 (target_desc_up): New typedef.
16360 * target-descriptions.c (target_desc_deleter::operator()): Rename
16361 from free_target_description.
16362 (make_cleanup_free_target_description): Remove.
16363
3a6ae42d
TT
163642019-01-02 Tom Tromey <tom@tromey.com>
16365
16366 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16367 constructor, destructor.
16368 (linespec_parser): Remove typedef.
16369 (~linespec_parser): Rename from linespec_parser_delete.
16370 (linespec_lex_to_end, linespec_complete_label)
16371 (linespec_complete): Update.
16372 (decode_line_full): Remove cleanups.
16373 (decode_line_1): Update.
16374
61fd3e73
TT
163752019-01-02 Tom Tromey <tom@tromey.com>
16376
16377 * python/python-internal.h (inferior_to_inferior_object): Change
16378 return type.
16379 * python/py-exitedevent.c (create_exited_event_object): Update.
16380 * python/py-inferior.c (inferior_to_inferior_object): Return
16381 gdbpy_ref.
16382 (python_new_inferior, python_inferior_deleted)
16383 (thread_to_thread_object, delete_thread_object)
16384 (build_inferior_list, gdbpy_selected_inferior): Update.
16385 * python/py-infthread.c (create_thread_object): Update. Also fail
16386 if inferior_to_inferior_object fails.
16387
d20172fc
SM
163882019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16389
16390 * inferior.h (class inferior) <displaced_step_state>: New field.
16391 * infrun.h (struct displaced_step_state): Move here from
16392 infrun.c. Initialize fields, add constructor.
16393 <inf>: Remove field.
16394 <reset>: New method.
16395 * infrun.c (struct displaced_step_inferior_state): Move to
16396 infrun.h.
16397 (displaced_step_inferior_states): Remove.
16398 (get_displaced_stepping_state): Adust.
16399 (displaced_step_in_progress_any_inferior): Adjust.
16400 (displaced_step_in_progress_thread): Adjust.
16401 (displaced_step_in_progress): Adjust.
16402 (add_displaced_stepping_state): Remove.
16403 (get_displaced_step_closure_by_addr): Adjust.
16404 (remove_displaced_stepping_state): Remove.
16405 (infrun_inferior_exit): Call displaced_step_state.reset.
16406 (use_displaced_stepping): Don't check for NULL.
16407 (displaced_step_prepare_throw): Call
16408 get_displaced_stepping_state.
16409 (displaced_step_fixup): Don't check for NULL.
16410 (prepare_for_detach): Don't check for NULL.
16411
e3319240
PW
164122019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16413
16414 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16415 in case of call that did not complete.
16416
5d36dfb9
AU
164172019-01-02 Andrey Utkin <autkin@undo.io>
16418
16419 * symfile.c (find_separate_debug_file): Fix search of debug files for
16420 remote debuggee.
16421
8833fbf0
TT
164222019-01-02 Tom Tromey <tom@tromey.com>
16423
16424 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16425 indentation.
16426 * python/py-frame.c (frapy_older): Remove cast.
16427 (frapy_newer): Likewise.
16428 * python/py-breakpoint.c (local_setattro): Remove cast.
16429 * python/py-arch.c (archpy_name): Remove local variable.
16430 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16431
4ada3dfd
JB
164322019-01-02 Joel Brobecker <brobecker@adacore.com>
16433
16434 * unittests/basic_string_view/element_access/char/empty.cc:
16435 Fix year range in copyright header.
16436
113b7b81
AB
164372019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16438
16439 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16440 Delete.
16441 <operator==>: Update with for removed field.
16442 <hash>: Likewise.
16443 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16444 <isa_features>: ...this.
16445 <abi_features>: New field.
16446 (riscv_isa_flen): Update comment.
16447 (riscv_abi_xlen): New declaration.
16448 (riscv_abi_flen): New declaration.
16449 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16450 isa_features.
16451 (riscv_abi_xlen): New function.
16452 (riscv_isa_flen): Update to get answer from isa_features.
16453 (riscv_abi_flen): New function.
16454 (riscv_has_fp_abi): Update to get answer from abi_features.
16455 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16456 xlen and flen.
16457 (riscv_call_info) <xlen, flen>: Update comment.
16458 (riscv_call_arg_struct): Remove invalid assertions
16459 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16460 is removed.
16461 (riscv_gdbarch_init): Gather isa features and abi features
16462 separately, ensure both match on the gdbarch when reusing an old
16463 gdbarch. Relax an error check to allow 32-bit abi float to run on
16464 a target with 64-bit float hardware.
16465
b18ca514
PW
164662019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16467
16468 * source.c (search_command_helper): Stop reverse search
16469 when line 1 has been searched.
16470
ec70d8db
PW
164712019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16472
16473 * record-full.c (record_full_base_target::close): Rewrite
16474 record_full_core_buf_list free logic.
16475
5b38f9c1
PW
164762019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16477
16478 * break-catch-syscall.c (print_one_catch_syscall): xfree
16479 the last text.
16480
66d91b39
JB
164812019-01-01 Joel Brobecker <brobecker@adacore.com>
16482
16483 * top.c (print_gdb_version): Update Copyright year in version
16484 message.
16485
42a4f53d
JB
164862019-01-01 Joel Brobecker <brobecker@adacore.com>
16487
16488 Update copyright year range in all GDB files.
16489
7e955d83 164902019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16491
5bbd631d 16492 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16493
5bbd631d 16494For older changes see ChangeLog-2018.
c906108c
SS
16495\f
16496Local Variables:
16497mode: change-log
16498left-margin: 8
16499fill-column: 74
16500version-control: never
57da7796 16501coding: utf-8
c906108c 16502End:
5bbd631d 16503
This page took 2.963635 seconds and 4 git commands to generate.