]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
PR gdb/24364: Don't call dtrace_process_dof with NULL dof.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ba9777be
PP
12019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
2
3 PR gdb/24364
4 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5 call dtrace_process_dof with NULL dof.
6
2b9f6e89
TV
72019-06-16 Tom de Vries <tdevries@suse.de>
8
9 PR gdb/24445
10 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
11
431b3ead
TT
122019-06-16 Tom Tromey <tom@tromey.com>
13
14 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
15 (make_all_visible): Use address of member.
16
d04b44a1
TT
172019-06-16 Tom Tromey <tom@tromey.com>
18
19 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
20 (tui_free_window, free_content, free_content_elements): Remove
21 unnecessary cast.
22 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
23 cast.
24 * tui/tui-regs.c (tui_show_register_group)
25 (tui_display_registers_from, tui_display_reg_element_at_line):
26 Remove unnecessary cast.
27
bf5142e7
AB
282019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * linux-nat.c (normal_mask): Delete.
31 (_initialize_linux_nat): Don't initialise normal_mask.
32
c4973306
SM
332019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
34
35 PR gdb/24445
36 * dwarf-index-write.h (write_psymtabs_to_index): Add
37 dwz_basename parameter.
38 * dwarf-index-write.c (write_gdbindex): Move file writing to
39 write_gdbindex_1. Change return type void.
40 (assert_file_size): Move up, remove filename parameter.
41 (write_gdbindex_1): New function.
42 (write_debug_names): Change return type to void, call
43 assert_file_size.
44 (struct index_wip_file): New struct.
45 (write_psymtabs_to_index): Add dwz_basename parameter. Move
46 file logic to index_wip_file. Write index for dwz file if
47 needed.
48 (save_gdb_index_command): Pass basename of dwz file, if present.
49 * dwarf-index-cache.c (index_cache::store): Obtain and pass
50 build-id of dwz file, if present.
51 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
52 (dwarf2_get_dwz_file): Likewise.
53 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
54 (dwarf2_get_dwz_file): Likewise.
55
395f9c91
TT
562019-06-16 Tom Tromey <tom@tromey.com>
57
58 * coffread.c (process_coff_symbol): Use xstrdup.
59 * value.c (create_internalvar): Use xstrdup.
60
cafb3438
TT
612019-06-16 Tom Tromey <tom@tromey.com>
62
63 * valops.c (value_cast, value_slice): Remove unnecessary cast.
64 * breakpoint.c (stopin_command, stopat_command)
65 (until_break_command, decode_location_default): Remove unnecessary
66 cast.
67 * utils.c (subset_compare): Remove unnecessary cast.
68 * ada-lang.c (ada_update_initial_language): Remove unnecessary
69 cast.
70 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
71 cast.
72 * infcmd.c (path_command): Remove unnecessary cast.
73 * coffread.c (decode_type): Remove unnecessary cast.
74 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
75 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
76 * tui/tui-stack.c (tui_show_locator_content)
77 (tui_show_frame_info): Remove unnecessary cast.
78 * tui/tui-win.c (tui_scroll_forward_command)
79 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
80 (parse_scrolling_args): Remove unnecessary cast.
81 * tui/tui-data.c (init_win_info, tui_del_window)
82 (tui_free_window, tui_del_data_windows, tui_free_data_content)
83 (free_content_elements): Remove unnecessary cast.
84 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
85 unnecessary cast.
86 * tui/tui-source.c (tui_set_source_content)
87 (tui_vertical_source_scroll): Remove unnecessary cast.
88 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
89 cast.
90 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
91 * tui/tui-regs.c (tui_display_registers_from)
92 (tui_display_register): Remove unnecessary cast.
93 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
94 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
95 (make_visible): Remove unnecessary cast.
96 * tui/tui-winsource.c (tui_erase_source_content)
97 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
98 unnecessary cast.
99 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
100 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
101 * stabsread.c (read_type, read_array_type, read_range_type):
102 Remove unnecessary cast.
103 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
104 (parse_symbol, parse_type, upgrade_type, parse_external)
105 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
106 unnecessary cast.
107 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
108
730ead81
TT
1092019-06-16 Tom Tromey <tom@tromey.com>
110
111 * tui/tui-data.c (tui_alloc_generic_win_info)
112 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
113 checks.
114
584a927c
AB
1152019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
116 Andrew Burgess <andrew.burgess@embecosm.com>
117
118 * f-typeprint.c (f_print_type): Don't return early for not
119 associated or not allocated types.
120 (f_type_print_varspec_suffix): Add print_rank parameter and print
121 ranks of array types in case they dangling.
122 (f_type_print_base): Add print_rank parameter.
123
30056ea0
AB
1242019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
125
126 * NEWS: Mention new MI commands.
127 * break-catch-throw.c (enum exception_event_kind): Move to
128 breakpoint.h.
129 (print_mention_exception_catchpoint): Output text as a single
130 message.
131 (catch_exception_command_1): Rename to...
132 (catch_exception_event): ...this, make non-static, update header
133 command, and change some parameter types.
134 (catch_catch_command): Update for changes to
135 catch_exception_command_1.
136 (catch_throw_command): Likewise.
137 (catch_rethrow_command): Likewise.
138 * breakpoint.c (enum exception_event_kind): Delete.
139 * breakpoint.h (enum exception_event_kind): Moved here from
140 break-catch-throw.c.
141 (catch_exception_event): Declare.
142 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
143 (mi_cmd_catch_throw): New function.
144 (mi_cmd_catch_rethrow): New function.
145 (mi_cmd_catch_catch): New function.
146 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
147 'catch-catch' entries.
148 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
149 (mi_cmd_catch_rethrow): Declare.
150 (mi_cmd_catch_catch): Declare.
151
ec8e2b6d
AB
1522019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * annotate.c (annotate_source_line): Change return type to void,
155 update implementation to match.
156 * annotate.h (annotate_source_line): Change return type to void,
157 update header comment.
158 * stack.c (print_frame_info): Don't change what frame information
159 is printed based on whether annotations are on or not.
160
0d3abd8c
AB
1612019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
162
163 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
164 (annotate_source): Make static.
165 (annotate_source_line): Moved from source.c and renamed from
166 identify_source_line. Update the return type.
167 * annotate.h (annotate_source): Delete declaration.
168 (annotate_source_line): Declaration moved from source.h, and
169 renamed from identify_source_line. Return type updated.
170 * source.c (identify_source_line): Moved to annotate.c and renamed
171 to annotate_source_line.
172 (info_line_command): Remove check of annotation_level.
173 * source.h (identify_source_line): Move declaration to annotate.h
174 and rename to annotate_source_line.
175 * stack.c: Add 'annotate.h' include.
176 (print_frame_info): Remove check of annotation_level before
177 calling annotate_source_line.
178
00df30ae
AB
1792019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
180
181 * source-cache.c (source_cache::get_plain_source_lines): Use
182 open_source_file_with_line_charpos instead of just
183 open_source_file, remove call to find_source_lines.
184 (source_cache::get_source_lines): Likewise.
185 * source.c (find_source_lines): Make static.
186 (get_filename_and_charpos): Renamed into...
187 (open_source_file_with_line_charpos): ..this along with changes to
188 return a scoped_fd, and some other minor clean ups.
189 (identify_source_line): Use open_source_file_with_line_charpos.
190 (search_command_helper): Use open_source_file_with_line_charpos
191 instead of just open_source_file, remove call to
192 find_source_lines.
193 * source.h (open_source_file_with_line_charpos): Declare new
194 function.
195 (find_source_lines): Delete declaration.
196
afda45a2
AB
1972019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
198
199 * source.c (get_filename_and_charpos): Remove fullname
200 parameter.
201 (identify_source_line): Update call to get_filename_and_charpos.
202
0735b091
TT
2032019-06-14 Tom Tromey <tromey@adacore.com>
204
205 PR gdb/24502:
206 * ui-style.h (skip_ansi_escape): Update comment.
207 * ui-file.h (class no_terminal_escape_file): New class.
208 * ui-file.c (no_terminal_escape_file::write)
209 (no_terminal_escape_file::puts): New methods.
210 * cli/cli-logging.c (handle_redirections): Use
211 no_terminal_escape_file.
212
52ce35e2
TT
2132019-06-14 Tom Tromey <tromey@adacore.com>
214
215 * NEWS: Move convenience variable news above Python news.
216
73cc7272
TT
2172019-06-14 Tom Tromey <tom@tromey.com>
218
219 * gnulib: Move directory to top-level.
220 * configure.ac: Don't configure gnulib.
221 * configure: Rebuild.
222 * common/common-defs.h: Use new path to gnulib.
223 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
224 (GNULIB_H): Remove.
225 (INCGNU): Look in new gnulib location.
226 (HFILES_NO_SRCDIR): Remove gnulib files.
227 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
228 (generated_files): Remove GNULIB_H.
229 ($(LIBGNU), all-lib): Remove targets.
230 (distclean): Don't mention GNULIB_BUILDDIR.
231 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
232
f5686554
TT
2332019-06-14 Tom Tromey <tromey@adacore.com>
234
235 * symfile.c (add_symbol_file_command): Remove obsolete comment.
236 Warn if symbol file does not provide any symbols.
237
a0c1ffed
TT
2382019-06-14 Tom Tromey <tromey@adacore.com>
239
240 * source.c (find_and_open_source): Respect basenames_may_differ.
241
7c39e397
AB
2422019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
243
244 * annotate.c (annotate_breakpoints_invalid): Make use of
245 scoped_restore_terminal_state.
246 (annotate_frames_invalid): Likewise.
247
f411722c
TT
2482019-06-14 Tom Tromey <tromey@adacore.com>
249
250 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
251 allow assignment to an internalvar.
252
4268ec18
TT
2532019-06-14 Tom Tromey <tromey@adacore.com>
254
255 * ada-lex.l: Allow "_" in attribute names.
256
abdb711e
TT
2572019-06-14 Tom Tromey <tromey@adacore.com>
258
259 PR gdb/24653:
260 * regcache.c (registers_changed): Don't call alloca.
261 * top.c (execute_command): Don't call alloca.
262
4c048731
PA
2632019-06-13 Pedro Alves <palves@redhat.com>
264
265 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
266 'expression'. When parsing an expression, error out if there's
267 junk after "unlimited".
268 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
269 (do_set_command): Adjust calls to is_unlimited_literal.
270
66eb1ed3
PA
2712019-06-13 Pedro Alves <palves@redhat.com>
272
273 * compile/compile.c (make_compile_options_def_group): Add braces
274 around array_view initializer.
275 * thread.c (make_thread_apply_all_options_def_group)
276 (make_thread_apply_all_options_def_group): Likewise.
277
3345721a
PA
2782019-06-13 Pedro Alves <palves@redhat.com>
279
280 * NEWS (New commands): Mention "maint test-options
281 require-delimiter", "maint test-options unknown-is-error", "maint
282 test-options unknown-is-operand" and "maint show
283 test-options-completion-result".
284 (New command options, command completion): New section.
285 (Completion improvements): New section.
286 Mention that you can abbreviate "unlimited".
287
6206060d
PA
2882019-06-13 Pedro Alves <palves@redhat.com>
289
290 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
291 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
292 * unittests/cli-utils-selftests.c (test_parse_flags)
293 (test_parse_flags_qcs): Delete.
294 (test_cli_utils): Don't call deleted functions.
295
6665660a
PA
2962019-06-13 Pedro Alves <palves@redhat.com>
297
298 * thread.c: Include "cli/cli-option.h".
299 (tp_array_compar_ascending): Global.
300 (tp_array_compar): Delete function.
301 (tp_array_compar_ascending, tp_array_compar_descending): New
302 functions.
303 (ascending_option_def, qcs_flag_option_def)
304 (thr_qcs_flags_option_defs)
305 (make_thread_apply_all_options_def_group)
306 (make_thread_apply_options_def_group): New.
307 (thread_apply_all_command): Use gdb::option::process_options.
308 (thread_apply_command_completer)
309 (thread_apply_all_command_completer): New.
310 (thread_apply_command): Use gdb::option::process_options.
311 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
312 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
313 to generate help text of "thread apply". Adjust "taas"'s help.
314 * tid-parse.c (tid_range_parser::in_thread_range): New method.
315 * tid-parse.h (tid_range_parser::in_thread_range): New method.
316
f7e13587
PA
3172019-06-13 Pedro Alves <palves@redhat.com>
318
319 * thread.c (thread_apply_command): Check for invalid TID with
320 isdigit instead of !isalpha.
321
5d707134
PA
3222019-06-13 Pedro Alves <palves@redhat.com>
323
324 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
325 (validate_flags_qcs): New.
326 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
327 (validate_flags_qcs): Declare.
328 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
329 (make_frame_apply_options_def_group): New.
330 (frame_apply_command_count): Process options with
331 gdb::option::process_options.
332 (frame_apply_completer): New.
333 (frame_apply_level_completer, frame_apply_all_completer)
334 (frame_apply_completer): New.
335 (_initialize_stack): Update help of "frame apply", "frame apply
336 level", "frame apply all" and "faas" to mention supported options
337 and install command completers.
338 * stack.h (frame_apply_all_completer): Declare.
339 * thread.c: Include "stack.h".
340 (tfaas_command): Add "--".
341 (_initialize_thread): Update help "tfaas" to mention supported
342 options and install command completer.
343
272d4594
PA
3442019-06-13 Pedro Alves <palves@redhat.com>
345
346 * completer.c (complete_nested_command_line): New.
347 (gdb_completion_word_break_characters_throw): Add assertion.
348 * completer.h (complete_nested_command_line): Declare.
349
90a1ef87
PA
3502019-06-13 Pedro Alves <palves@redhat.com>
351
352 * stack.c (parse_backtrace_qualifiers): New.
353 (backtrace_command): Use it.
354 (backtrace_command_completer): Complete on qualifiers.
355
d4c16835
PA
3562019-06-13 Pedro Alves <palves@redhat.com>
357
358 * frame.c: Include "cli/cli-option.h.
359 (user_set_backtrace_options): New.
360 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
361 Delete.
362 (get_prev_frame): Adjust.
363 (boolean_option_def, uinteger_option_def)
364 (set_backtrace_option_defs): New.
365 (_initialize_frame): Adjust and use
366 gdb::option::add_setshow_cmds_for_options to install "set
367 backtrace past-main" and "set backtrace past-entry".
368 * frame.h: Include "cli/cli-option.h".
369 (struct frame_print_options): Forward declare.
370 (print_frame_arguments_all, print_frame_arguments_scalars)
371 (print_frame_arguments_none): Declare.
372 (print_entry_values): Delete declaration.
373 (struct frame_print_options, user_frame_print_options): New.
374 (struct set_backtrace_options): New.
375 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
376 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
377 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
378 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
379 (list_args_or_locals): Add frame_print_options parameter.
380 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
381 * python/py-framefilter.c (enumerate_args): Pass down
382 USER_FRAME_PRINT_OPTIONS.
383 * stack.c: Include "cli/cli-option.h".
384 (print_frame_arguments_all, print_frame_arguments_scalars)
385 (print_frame_arguments_none): Declare.
386 (print_raw_frame_arguments, print_entry_values): Delete.
387 (user_frame_print_options): New.
388 (boolean_option_def, enum_option_def, frame_print_option_defs):
389 New.
390 (struct backtrace_cmd_options): New.
391 (bt_flag_option_def): New.
392 (backtrace_command_option_defs): New.
393 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
394 (print_frame_arg, read_frame_arg, print_frame_args)
395 (print_frame_info, print_frame): Add frame_print_options parameter
396 and use it.
397 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
398 (backtrace_command_1): Add frame_print_options and
399 backtrace_cmd_options parameters and use them.
400 (make_backtrace_options_def_group): New.
401 (backtrace_command): Process command options with
402 gdb::option::process_options.
403 (backtrace_command_completer): New.
404 (_initialize_stack): Extend "backtrace"'s help to mention
405 supported options. Install completer for "backtrace".
406 Install some settings commands with add_setshow_cmds_for_options.
407
2daf894e
PA
4082019-06-13 Pedro Alves <palves@redhat.com>
409
410 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
411 and that "set/show print raw frame-arguments" are now deprecated.
412
413 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
414 command.
415 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
416 * stack.c (_initialize_stack): Install "set/show print
417 raw-frame-arguments", and deprecate "set/show print raw
418 frame-arguments".
419 * valprint.c (_initialize_valprint): Deprecate "set/show print
420 raw".
421
e6ed716c
PA
4222019-06-13 Pedro Alves <palves@redhat.com>
423
424 * compile/compile.c (struct compile_options): New.
425 (compile_flag_option_def, compile_command_option_defs)
426 (make_compile_options_def_group): New.
427 (compile_file_command): Handle options with
428 gdb::option::process_options.
429 (compile_file_command_completer): New function.
430 (compile_code_command): Handle options with
431 gdb::option::process_options.
432 (compile_code_command_completer): New function.
433 (_initialize_compiler): Install completers for "compile code" and
434 "compile file". Mention available options in "compile code" and
435 "compile code"'s help.
436 * completer.c (advance_to_completion_word): New, factored out from
437 ...
438 (advance_to_expression_complete_word_point): ... this.
439 (advance_to_filename_complete_word_point): New.
440 * completer.h (advance_to_filename_complete_word_point): New
441 declaration.
442
7d8062de
PA
4432019-06-13 Pedro Alves <palves@redhat.com>
444
445 * compile/compile.c: Include "cli/cli-option.h".
446 (compile_print_value): Scope data pointer is now a
447 value_print_options pointer; adjust.
448 (compile_print_command): Process options. Scope data pointer is
449 now a value_print_options pointer; adjust.
450 (_initialize_compile): Update "compile print"'s help to include
451 supported options. Install a completer for "compile print".
452 * cp-valprint.c (show_vtblprint, show_objectprint)
453 (show_static_field_print): Delete.
454 (_initialize_cp_valprint): Don't install "set print
455 static-members", "set print vtbl", "set print object" here.
456 * printcmd.c: Include "cli/cli-option.h" and
457 "common/gdb_optional.h".
458 (print_command_parse_format): Rework to fill in a
459 value_print_options instead of a format_data.
460 (print_value): Change parameter type from format_data pointer to
461 value_print_options reference. Adjust.
462 (print_command_1): Process options. Adjust to pass down a
463 value_print_options.
464 (print_command_completer): New.
465 (_initialize_printcmd): Install print_command_completer as
466 handle_brkchars completer for the "print" command. Update
467 "print"'s help to include supported options.
468 * valprint.c: Include "cli/cli-option.h".
469 (show_vtblprint, show_objectprint, show_static_field_print): Moved
470 here from cp-valprint.c.
471 (boolean_option_def, uinteger_option_def)
472 (value_print_option_defs, make_value_print_options_def_group):
473 New. Use gdb::option::add_setshow_cmds_for_options to install
474 "set print elements", "set print null-stop", "set print repeats",
475 "set print pretty", "set print union", "set print array", "set
476 print address", "set print symbol", "set print array-indexes".
477 * valprint.h: Include <string> and "cli/cli-option.h".
478 (make_value_print_options_def_group): Declare.
479 (print_value): Change parameter type from format_data pointer to
480 value_print_options reference.
481 (print_command_completer): Declare.
482
9d0faba9
PA
4832019-06-13 Pedro Alves <palves@redhat.com>
484
485 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
486 (COMMON_SFILES): Add maint-test-settings.c.
487 * cli/cli-decode.c (boolean_enums): New global, factored out from
488 ...
489 (add_setshow_boolean_cmd): ... here.
490 * cli/cli-decode.h (boolean_enums): Declare.
491 * cli/cli-option.c: New file.
492 * cli/cli-option.h: New file.
493 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
494 factored out from ...
495 (parse_cli_boolean_value(const char *)): ... this.
496 (is_unlimited_literal): Change parameter type to pointer to
497 pointer. Adjust and advance ARG pointer.
498 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
499 (parse_cli_var_enum): New, factored out from ...
500 (do_set_command): ... this. Adjust.
501 * cli/cli-setshow.h (parse_cli_boolean_value)
502 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
503 (parse_cli_var_enum): Declare.
504 * cli/cli-utils.c: Include "cli/cli-option.h".
505 (get_ulongest): New.
506 * cli/cli-utils.h (get_ulongest): Declare.
507 (check_for_argument): New overloads.
508 * maint-test-options.c: New file.
509
2c722807
PA
5102019-06-13 Pedro Alves <palves@redhat.com>
511
512 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
513 parse a range if "-" is at the end of the string.
514
dee7b4c8
PA
5152019-06-13 Pedro Alves <palves@redhat.com>
516
517 * cli/cli-setshow.c (parse_auto_binary_operation)
518 (parse_cli_boolean_value): Don't allow "o".
519
dca0f6c0
PA
5202019-06-13 Pedro Alves <palves@redhat.com>
521
522 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
523 * NEWS: Mention maint test-settings KIND.
524 * maint-test-settings.c: New file.
525
597bf39d
PA
5262019-06-13 Pedro Alves <palves@redhat.com>
527
528 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
529 completer.
530 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
531 "set" completers.
532
48c410fb
PA
5332019-06-13 Pedro Alves <palves@redhat.com>
534
535 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
536 after item.
537
93bcb043
PA
5382019-06-13 Pedro Alves <palves@redhat.com>
539
540 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
541
cbba3ecd
PA
5422019-06-13 Pedro Alves <palves@redhat.com>
543
544 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
545 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
546 call.
547 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
548 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
549 calls.
550 (check_for_argument): Skip spaces after argument.
551
b9a3f842
PA
5522019-06-13 Pedro Alves <palves@redhat.com>
553
554 * thread.c (thread_apply_command): Adjust TID parsing.
555 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
556 detected before end of string.
557 (tid_is_in_list): Error out if LIST is invalid.
558
3844e605
PA
5592019-06-13 Pedro Alves <palves@redhat.com>
560
561 * completer.c (complete_line_internal_1): Rewind completion word
562 point.
563 (completion_tracker::advance_custom_word_point_by): Change
564 parameter type to int.
565 * completer.h (completion_tracker::advance_custom_word_point_by):
566 Likewise.
567
00b56dbe
PA
5682019-06-13 Pedro Alves <palves@redhat.com>
569
570 * completer.c (advance_to_completion_word): Handle delimiters.
571
d106773e
PA
5722019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
573
574 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
575
08f10e02
TT
5762019-06-11 Tom Tromey <tom@tromey.com>
577
578 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
579 (xmalloc_failed): Move to alloc.c.
580 * alloc.c: New file.
581 * Makefile.in (COMMON_SFILES): Add alloc.c.
582
1c7fe951
TT
5832019-06-11 Tom Tromey <tom@tromey.com>
584
585 * nat/linux-waitpid.c: Don't include server.h.
586 (linux_debug): Remove.
587 (my_waitpid): Update.
588
89549d7f
TT
5892019-06-11 Tom Tromey <tromey@adacore.com>
590
591 * infcall.c (_initialize_infcall): Remove trailing newline from
592 help.
593 * user-regs.c (_initialize_user_regs): Remove trailing newline
594 from help.
595 * typeprint.c (_initialize_typeprint): Remove trailing newline
596 from help.
597 * reverse.c (_initialize_reverse): Remove trailing newlines from
598 help.
599 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
600 from help.
601 * language.c (add_set_language_command): Remove trailing newline
602 from help.
603 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
604 help.
605 * disasm.c (_initialize_disasm): Remove trailing newline from
606 help.
607 * top.c (init_main): Remove trailing newline from help.
608 * interps.c (_initialize_interpreter): Remove trailing newline
609 from help.
610 * btrace.c (_initialize_btrace): Remove trailing newlines from
611 help.
612 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
613 from help.
614 * python/python.c (_initialize_python): Remove trailing newline
615 from help.
616 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
617 help.
618 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
619 from help. Reformat some text.
620 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
621 from help.
622 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
623 newline from help.
624
86108c13
TT
6252019-06-11 Tom Tromey <tromey@adacore.com>
626
627 * darwin-nat.c (darwin_decode_exception_message)
628 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
629
a7067863
AB
6302019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
631
632 * valops.c (value_slice): Check for not allocated or not
633 associated values.
634
9ab08412
TV
6352019-06-10 Tom de Vries <tdevries@suse.de>
636
637 PR gdb/24618
638 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
639 sure an empty slot (defined by a 32-bit zero pair) is recognized as
640 invalid.
641
f19e22e9
TV
6422019-06-10 Tom de Vries <tdevries@suse.de>
643
644 PR gdb/24611
645 * linespec.c (linespec_lexer_lex_string): Remove incorrect
646 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
647
e99f9db0
TV
6482019-06-10 Tom de Vries <tdevries@suse.de>
649
650 PR symtab/24545
651 * symtab.c (struct demangled_name_entry): Add language field.
652 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
653 static minimal symbol". Set and use language field.
654
9bf7038b
TT
6552019-06-10 Tom Tromey <tromey@adacore.com>
656
657 * ada-lang.c (_initialize_ada_language): Update help text.
658
422186a9
TT
6592019-06-10 Tom Tromey <tromey@adacore.com>
660
661 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
662 with a newline.
663 * guile/guile.c (handle_boot_error): Don't end warning with a
664 newline.
665 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
666 warning with a newline.
667 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
668 newline.
669 (s12z_frame_cache): Likewise.
670 * dwarf-index-cache.c (index_cache::store): Don't end warning with
671 a newline.
672 * solib-svr4.c (disable_probes_interface): Don't end warning with
673 a newline.
674 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
675 newline.
676 * python/python.c (do_finish_initialization): Don't end warning
677 with a newline.
678
25ce02ee
TT
6792019-06-10 Tom Tromey <tom@tromey.com>
680
681 * python/py-breakpoint.c (gdbpy_breakpoint_created)
682 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
683 gdbpy_enter.
684
caa429d8
TT
6852019-06-10 Tom Tromey <tromey@adacore.com>
686
687 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
688 data.
689 (elf_new_init): Don't call stabsread_new_init.
690 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
691 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
692 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
693
81873cc8
TV
6942019-06-10 Tom de Vries <tdevries@suse.de>
695
696 PR symtab/16264
697 PR symtab/24517
698 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
699
4fa0265e
РИ
7002019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
701
702 * source.c (find_and_open_source): Also rewrite relative file
703 names.
704
1a3da2cd
AB
7052019-04-26 Amos Bird <amosbird@gmail.com>
706
707 * annotate.c (annotate_thread_exited): Add "thread-exited"
708 annotation.
709
3847a7bf
TT
7102019-06-06 Tom Tromey <tromey@adacore.com>
711
712 * maint.h (class scoped_command_stats): Use
713 DISABLE_COPY_AND_ASSIGN.
714 <print_time>: New method.
715 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
716 print_time.
717 (scoped_command_stats::print_time): New method.
718
312617a3
AB
7192019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
720
721 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
722 instructions of lengths 6 or 8 bytes.
723
b02f78f9
PA
7242019-06-04 Pedro Alves <palves@redhat.com>
725
726 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
727
728 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
729 * breakpoint.c (condition_completer): Likewise.
730 * cli/cli-dump.c (scan_expression): Likewise.
731 * common/filestuff.c (mkdir_recursive): Likewise.
732 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
733 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
734 (gdb_abspath): Likewise.
735 * compile/compile-cplus-types.c
736 (compile_cplus_instance::decl_name): Likewise.
737 * completer.c (complete_explicit_location):
738 (signal_completer, reg_or_group_completer_1): Likewise.
739 * cp-support.c (cp_remove_params_if_any): Likewise.
740 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
741 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
742 * infcmd.c (strip_bg_char): Likewise.
743 * linespec.c (copy_token_string): Likewise.
744 * mi/mi-main.c (output_cores): Likewise.
745 * psymtab.c (psymtab_search_name):
746 * symfile.c (test_set_ext_lang_command): Likewise.
747 * target.c (target_fileio_read_stralloc): Likewise.
748 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
749 * value.c (complete_internalvar): Likewise.
750
e1f2e1a2
CB
7512019-06-04 Christian Biesinger <cbiesinger@google.com>
752
753 Add objfile property to gdb.Type.
d3238f7d
PA
754 * NEWS: Mention Python API addition.
755 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 756
e664d728
PW
7572019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
758
759 * NEWS: Mention the new set|show style [title|highlight].
760 Mention changes to "show style", "help" and "apropos".
761
66d8c862
PW
7622019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
763
764 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
765 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
766 instead of print_help_for_command.
767 (print_doc_of_command): New function.
768 (help_list): Add 'apropos -v word' suggestion.
769 (print_help_for_command): Style the command name using title style.
770 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
771 (_initialize_cli_cmds): Describe -v in apropos_command help.
772
9303eb2f
PW
7732019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
774
775 * cli/cli-style.h (cli_style_option): Add name in constructor,
776 add m_name class member, add constructor with intensity,
777 add name class function.
778 (cli_style_option::add_setshow_commands): Remove name argument.
779 (highlight_style, title_style): New styles.
780 * cli/cli-style.c (do_show): New function that shows a style
781 characteristic styling the style name with itself.
782 (set_style_name): New function.
783 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
784 Update all callers according to the changes in cli/cli-style.h.
785 * utils.h (fputs_highlighted): New function.
786 * utils.c (fputs_highlighted): Likewise.
787
e2c52041
PW
7882019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
789
790 * NEWS: Mention new pipe command and new convenience variables.
791
947d3946
PW
7922019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
793
794 * cli/cli-cmds.c (pipe_command): New function.
795 (_initialize_cli_cmds): Call add_com for pipe_command.
796 Define | as an alias for pipe.
797 (exit_status_set_internal_vars): New function.
798 (shell_escape): Call exit_status_set_internal_vars.
799 cli/cli-decode.c (find_command_name_length): Recognize | as
800 a single character command.
801
b8fd0918
PW
8022019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
803
804 * gdbcmd.h (execute_command_to_ui_file): New declaration.
805 top.c (execute_command_to_ui_file): New function, mostly a copy
806 of execute_command_to_string.
807 (execute_command_to_string): Implement by calling
808 execute_command_to_ui_file.
809
68bb5386
PW
8102019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
811
812 * top.h (saved_command_line): Remove declaration.
813 * top.c (previous_saved_command_line, previous_repeat_arguments):
814 New variables.
815 (saved_command_line): Make static, define together with other
816 'repeat variables'.
817 (dont_repeat): Clear repeat_arguments.
818 (repeat_previous, get_saved_command_line, save_command_line):
819 New functions.
820 (gdb_init): Initialize saved_command_line
821 and previous_saved_command_line.
822 * main.c (captured_main_1): Remove saved_command_line initialization.
823 * event-top.c (handle_line_of_input): Update to use
824 the new 'repeat' related functions instead of direct access to
825 saved_command_line.
826 * command.h (repeat_previous, get_saved_command_line,
827 save_command_line): New declarations.
828 (dont_repeat): Add comment.
829
bfcdb852
TT
8302019-05-30 Tom Tromey <tromey@adacore.com>
831
832 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
833 Fix comment.
834 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
835
0ef209f2
JV
8362019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
837
838 PR cli/24587
839 * completer.c (complete): Initialize variable word.
840
955b06fa
SDJ
8412019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
842
843 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
844 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
845 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
846 'body' is NULL to the outter 'if', protecting the '!is_define'
847 situation as well.
848
fa9c3fa0
TT
8492019-05-29 Tom Tromey <tromey@adacore.com>
850
851 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
852 (dwarf_unknown): New function.
853 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
854 (dwarf_type_encoding_name): Use dwarf_unknown.
855
4330d61d
TT
8562019-05-29 Tom Tromey <tromey@adacore.com>
857
858 PR c++/20020:
859 * cp-valprint.c (cp_print_value_fields): Call
860 cp_print_static_field inside "try".
861
33a6bc35
TT
8622019-05-29 Tom Tromey <tromey@adacore.com>
863
864 * inflow.c (struct terminal_info): Add default operator=.
865 * configure: Rebuild.
866 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
867 -Wdeprecated-copy-dtor, -Wredundant-move.
868
000439d5
TT
8692019-05-29 Tom Tromey <tromey@adacore.com>
870
871 * NEWS: Add entry.
872 * infcmd.c (print_return_value_1): Handle finish_print
873 option.
874 (show_print_finish): New function.
875 (_initialize_infcmd): Add "set/show print finish" commands.
876 * valprint.c (user_print_options): Initialize new member.
877 * valprint.h (struct value_print_options) <finish_print>: New
878 member.
879
c0e70c62
TT
8802019-05-28 Tom Tromey <tromey@adacore.com>
881
882 * ada-lang.c (ada_remove_Xbn_suffix)
883 (find_old_style_renaming_symbol)
884 (parse_old_style_renaming): Remove.
885 (ada_find_renaming_symbol): Don't call
886 find_old_style_renaming_symbol.
887 (ada_is_renaming_symbol): Rename from
888 ada_find_renaming_symbol. Remove "block" parameter. Return
889 bool. Now static.
890 (ada_read_var_value): Update and simplify.
891 * ada-exp.y (write_var_or_type): Remove old code.
892
766f8836
AH
8932019-05-28 Alan Hayward <alan.hayward@arm.com>
894
895 * event-top.c: Remove include comment.
896 * inflow.c (class scoped_ignore_sigttou): Move from here...
897 * inflow.h (class scoped_ignore_sigttou): ...to here.
898 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
899 * top.c: Remove include comment.
900
eb41253a
TT
9012019-05-27 Tom Tromey <tom@tromey.com>
902
903 * NEWS: Fix typo.
904
4ca51187
TT
9052019-05-22 Tom Tromey <tromey@adacore.com>
906
907 * target.c (target_follow_exec): Constify parameter.
908 * target-delegates.c: Rebuild.
909 * remote.c (remote_target::follow_exec): Constify parameter.
910 * infrun.c (follow_exec): Constify parameter.
911 * target.h (struct target_ops) <follow_exec>: Constify parameter.
912 (target_follow_exec): Likewise.
913
8fca4da0
AH
9142019-05-22 Alan Hayward <alan.hayward@arm.com>
915
916 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
917 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
918
b7060614
AH
9192019-05-22 Alan Hayward <alan.hayward@arm.com>
920
921 * NEWS: Add debugredirect and testsuite sections.
922
0a5954bd
SC
9232019-05-22 Simon Cook <simon.cook@embecosm.com>
924
925 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
926 target descriptions using exclusively floating point register name
927 aliases.
928
dc42e902
AB
9292019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
930
931 PR gdb/18644:
932 * f-lang.c (build_fortran_types): Handle the case where
933 gdbarch_floatformat_for_type returns a nullptr.
934
fb7806c7
TV
9352019-05-21 Tom de Vries <tdevries@suse.de>
936
937 PR cli/24587
938 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
939
34d11c68
AB
9402019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
941
942 PR gdb/18644:
943 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
944 16-byte floats.
945 * i386-tdep.c (i386_floatformat_for_type): Use
946 floatformats_ia64_quad for the 16-byte floating point component
947 within a fortran 32-byte complex number.
948
122cf0f2
AB
9492019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
950
951 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
952 delete default constructor.
953 (find_partial_die): Update to return const struct.
954 (partial_die_parent_scope): Move variable declaration into scope
955 of its use and change its type to auto.
956 (guess_partial_die_structure_name): Likewise.
957 (partial_die_info::fixup): Likewise.
958
33d0e35a
TT
9592019-05-17 Tom Tromey <tromey@adacore.com>
960
961 * source.c (find_and_open_source): Remove cast.
962
a45575b0
TT
9632019-05-17 Tom Tromey <tromey@adacore.com>
964
965 * annotate.c (annotate_source): Make "filename" const.
966 * annotate.h (annotate_source): Use const.
967
81f47ac2
AH
9682019-05-17 Alan Hayward <alan.hayward@arm.com>
969
970 * disasm.c (set_disassembler_options): Send errors to stderr.
971
ca1285d1
AH
9722019-05-17 Alan Hayward <alan.hayward@arm.com>
973
974 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
975 (cli_interp_base::set_logging): Check debug_redirect.
976 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
977 * cli/cli-logging.c (debug_redirect): Add static variable.
978 (pop_output_files): Add default param.
979 (handle_redirections): Print debug setting.
980 (show_logging_command): Likewise.
981 (_initialize_cli_logging): Add debugredirect command.
982 * interps.c (current_interp_set_logging): Add debug_redirect
983 parameter.
984 * interps.h (set_logging): Add debug_redirect parameter.
985 (current_interp_set_logging): Likewise.
986 * mi/mi-common.h: Likewise.
987 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
988
9892019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
990 Tom Tromey <tromey@adacore.com>
991
992 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
993 directly.
994 * cli/cli-interp.h (make_logging_output): Remove declaration.
995 * cli/cli-logging.c (make_logging_output): Remove function.
996 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
997 directly.
998 * ui-file.c (tee_file::tee_file): Remove bools.
999 (tee_file::~tee_file): Remove deletes.
1000 * ui-file.h (tee_file): Remove bools.
1001
26648588
JV
10022019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
1003
1004 * mi/mi-cmds.h (mi_cmd_complete): New function.
1005 * mi/mi-main.c (mi_cmd_complete): Likewise.
1006 * mi/mi-cmds.c: Define new MI command -complete.
1007 * NEWS: Mention new -complete command.
1008
6e035501
JV
10092019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
1010
1011 * completer.h (complete): New function.
1012 * completer.c (complete): Likewise.
1013 * cli/cli-cmds.c: (complete_command): Update to use new complete()
1014 function defined in completer.h.
1015
7d0e2ece
JV
10162019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
1017
e79be6e5 1018 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 1019
fb816e8b
TV
10202019-05-17 Tom de Vries <tdevries@suse.de>
1021
1022 PR gdb/24094
1023 * dwarf2read.c (struct cu_partial_die_info): New struct.
1024 (find_partial_die): Return cu_partial_die_info.
1025 (partial_die_parent_scope, guess_partial_die_structure_name)
1026 (partial_die_info::fixup): Handle new return type of find_partial_die.
1027
677052f2
SDJ
10282019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1029
1030 * stap-probe.c (stap_parse_register_operand): Make "regname" an
1031 "std::string", simplifying the algorithm.
1032
f3da9116
SDJ
10332019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1034
1035 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
1036 (stap_static_probe_ops::get_probes): Likewise.
1037
f1bb75ab
SDJ
10382019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1039
1040 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
1041 '-')" and "else if".
1042 (stap_parse_single_operand): Join checks for
1043 "gdbarch_stap_parse_special_token_p" and
1044 "gdbarch_stap_parse_special_token" in the same "if" statement.
1045 Invert check when verifying for operation on register
1046 displacement.
1047
3ca58cde
SDJ
10482019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1049
1050 * stap-probe.c (stap_get_opcode): Update comment.
1051 (stap_get_expected_argument_type): Likewise.
1052 (handle_stap_probe): Likewise.
1053
af2d9bee
SDJ
10542019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1055
1056 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
1057 return type to 'bool'. Adjust comment. Use 'bool' when
1058 appropriate.
1059 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1060 * stap-probe.c (stap_parse_argument_1): Likewise.
1061 (stap_is_operator): Likewise.
1062 (stap_is_generic_prefix): Likewise.
1063 (stap_is_register_prefix): Likewise.
1064 (stap_is_register_indirection_prefix): Likewise.
1065 (stap_is_integer_prefix): Likewise.
1066 (stap_generic_check_suffix): Likewise.
1067 (stap_check_integer_suffix): Likewise.
1068 (stap_check_register_suffix): Likewise.
1069 (stap_check_register_indirection_suffix): Likewise.
1070 (stap_parse_register_operand): Likewise.
1071 (stap_parse_single_operand): Likewise.
1072 (stap_parse_argument_1): Likewise.
1073 (stap_probe::get_argument_count): Likewise.
1074 (stap_is_operator): Likewise.
1075
61c9c421
TT
10762019-05-16 Tom Tromey <tromey@adacore.com>
1077
1078 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
1079 keyword to foreach.
1080
9ddc1af1
SM
10812019-05-15 Simon Marchi <simon.marchi@efficios.com>
1082
1083 * linux-thread-db.c (try_thread_db_load_1): Change return type
1084 to bool.
1085 (try_thread_db_load): Likewise.
1086 (try_thread_db_load_from_pdir_1): Likewise.
1087 (try_thread_db_load_from_pdir): Likewise.
1088 (try_thread_db_load_from_sdir): Likewise.
1089 (try_thread_db_load_from_dir): Likewise.
1090 (thread_db_load_search): Likewise.
1091 (has_libpthread): Likewise.
1092 (thread_db_load): Likewise.
1093
7bede828
SDJ
10942019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
1095
1096 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
1097 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
1098 NULL, and complain/return if that's the case.
1099
c5358db4
JD
11002019-05-15 John Darrington <john@darrington.wattle.id.au>
1101
1102 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
1103 (advance, posn, abstract_read_memory): New functions.
1104 [struct mem_read_abstraction]: New struct.
1105 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
1106
c408a94f
TT
11072019-05-14 Tom Tromey <tromey@adacore.com>
1108
1109 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
1110 value is not lval_memory.
1111
e7bd7fba
TT
11122019-05-14 Tom Tromey <tromey@adacore.com>
1113
1114 * solib.c (info_sharedlibrary_command): Style the file name.
1115
a6d0f249
AH
11162019-05-14 Alan Hayward <alan.hayward@arm.com>
1117
1118 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
1119 (aarch64_vnv_type): Likewise.
1120 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
1121 * common/tdesc.c: Likewise.
1122 * common/tdesc.h (enum tdesc_type_kind): Likewise.
1123 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1124 * features/aarch64-fpu.xml: Add ieee half view.
1125 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
1126 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
1127 * gdbtypes.h (struct builtin_type): Likewise.
1128 (struct objfile_type): Likewise.
1129
66b8bb74
SM
11302019-05-12 Paul Naert <paul.naert@polymtl.ca>
1131
1132 * language.c (language_sniff_from_mangled_name): Fix "langauge"
1133 typo.
1134 * location.h (string_to_event_location): Likewise.
1135
21c219fd
JB
11362019-05-11 Joel Brobecker <brobecker@adacore.com>
1137
1138 GDB 8.3 released.
1139
13674803
SM
11402019-05-10 Simon Marchi <simon.marchi@efficios.com>
1141
1142 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
1143 New variable declaration.
1144 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
1145 New variable.
1146 (print_one_breakpoint): Use ui_out::test_flags and new global
1147 variable to compute use_fixed_output.
1148 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
1149 Remove.
1150 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
1151 (mi_multi_location_breakpoint_output_fixed): Remove.
1152 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
1153 new variable.
1154 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
1155 fix_multi_location_breakpoint_output flag if version >= 3.
1156 * ui-out.h (enum ui_out_flag)
1157 <fix_multi_location_breakpoint_output>: New enumerator.
1158
a9eac7f9
SM
11592019-05-10 Simon Marchi <simon.marchi@efficios.com>
1160
1161 * contrib/cc-with-tweaks.sh: Validate dwz's work.
1162
71bed2db
TT
11632019-05-10 Tom Tromey <tromey@adacore.com>
1164
1165 * ada-lang.c (catch_ada_completer): New function.
1166 (_initialize_ada_language): Use it.
1167
24c54127
TT
11682019-05-10 Tom Tromey <tromey@adacore.com>
1169
1170 * thread.c (print_thread_info): Make "requested_threads" const.
1171 * gdbthread.h (print_thread_info): Make "requested_threads"
1172 const.
1173 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
1174 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
1175
7a102139
TT
11762019-05-08 Tom Tromey <tom@tromey.com>
1177
1178 * gdbtypes.c (objfile_type_data): Change type.
1179 (objfile_type, _initialize_gdbtypes): Update.
1180
924d79e2
TT
11812019-05-08 Tom Tromey <tom@tromey.com>
1182
1183 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
1184 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
1185 (_initialize_dwarf2_frame): Update.
1186
4c58e337
TT
11872019-05-08 Tom Tromey <tom@tromey.com>
1188
1189 * objc-lang.c (objc_objfile_data): Change type.
1190 (find_methods): Update.
1191 (_initialize_objc_lang): Remove.
1192
d772d2ab
TT
11932019-05-08 Tom Tromey <tom@tromey.com>
1194
1195 * stabsread.c (rs6000_builtin_type_data): Change type.
1196 (rs6000_builtin_type, _initialize_stabsread): Update.
1197
d11d83f4
TT
11982019-05-08 Tom Tromey <tom@tromey.com>
1199
1200 * mips-tdep.c (mips_pdr_data): Remove.
1201 (_initialize_mips_tdep): Update.
1202
9a73f0ad
TT
12032019-05-08 Tom Tromey <tom@tromey.com>
1204
1205 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
1206 (hppa_init_objfile_priv_data, read_unwind_info)
1207 (find_unwind_entry, _initialize_hppa_tdep): Update.
1208
8127a2fa
TT
12092019-05-08 Tom Tromey <tom@tromey.com>
1210
1211 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
1212 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
1213 on obstack.
1214 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
1215
91d3055d
TT
12162019-05-08 Tom Tromey <tom@tromey.com>
1217
1218 * mdebugread.c (basic_type_data): Change type.
1219 (basic_type, _initialize_mdebugread): Update.
1220
31930bd3
TT
12212019-05-08 Tom Tromey <tom@tromey.com>
1222
1223 * common/gdb_unique_ptr.h (struct noop_deleter): New.
1224
bdb3ed9e
TT
12252019-05-08 Tom Tromey <tom@tromey.com>
1226
1227 * nto-tdep.c (nto_inferior_data_reg): Change type.
1228 (nto_inferior_data): Update.
1229 (nto_inferior_data_cleanup, nto_new_inferior_data)
1230 (_initialize_nto_tdep): Remove.
1231 * nto-tdep.h (struct nto_inferior_data): Add initializers.
1232
f37b313d
TT
12332019-05-08 Tom Tromey <tom@tromey.com>
1234
1235 * ada-lang.c (struct ada_inferior_data): Add initializers.
1236 (ada_inferior_data): Change type.
1237 (ada_inferior_data_cleanup): Remove.
1238 (get_ada_inferior_data, ada_inferior_exit)
1239 (struct ada_pspace_data): Add initializers, destructor.
1240 (ada_pspace_data_handle): Change type.
1241 (get_ada_pspace_data): Update.
1242 (ada_pspace_data_cleanup): Remove.
1243
24699405
TT
12442019-05-08 Tom Tromey <tom@tromey.com>
1245
1246 * coffread.c (struct coff_symfile_info): Add initializers.
1247 (coff_objfile_data_key): Move lower. Change type.
1248 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
1249 Update.
1250 (coff_free_info): Remove.
1251
d4e05d2f
TT
12522019-05-08 Tom Tromey <tom@tromey.com>
1253
1254 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
1255 (fbsd_pspace_data_handle): Move lower. Change type.
1256 (get_fbsd_pspace_data): Update.
1257 (fbsd_pspace_data_cleanup): Remove.
1258 (_initialize_fbsd_tdep): Update.
1259
14ef6690
TT
12602019-05-08 Tom Tromey <tom@tromey.com>
1261
1262 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
1263 (get_ada_tasks_pspace_data): Update.
1264 (ada_tasks_pspace_data_cleanup): Remove.
1265 (_initialize_tasks): Update.
1266 (ada_tasks_inferior_data_handle): Change type.
1267 (get_ada_tasks_inferior_data): Update.
1268 (ada_tasks_inferior_data_cleanup): Remove.
1269 (struct ada_tasks_pspace_data): Add initializers.
1270
814cf43a
TT
12712019-05-08 Tom Tromey <tom@tromey.com>
1272
1273 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
1274 * symfile-debug.c (debug_sym_get_probes): Change type.
1275 * stap-probe.c (handle_stap_probe):
1276 (stap_static_probe_ops::get_probes): Change type.
1277 * probe.h (class static_probe_ops) <get_probes>: Change type.
1278 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
1279 (parse_probes_in_pspace): Update.
1280 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
1281 Update.
1282 (any_static_probe_ops::get_probes): Change type.
1283 * elfread.c (elfread_data): New typedef.
1284 (probe_key): Change type.
1285 (elf_get_probes): Likewise. Update.
1286 (probe_key_free): Remove.
1287 (_initialize_elfread): Update.
1288 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
1289 Change type.
1290 (dtrace_process_dof_probe, dtrace_process_dof)
1291 (dtrace_static_probe_ops::get_probe): Change type.
1292
02dc647e
TT
12932019-05-08 Tom Tromey <tom@tromey.com>
1294
1295 * xcoffread.c (struct xcoff_symfile_info): Rename from
1296 coff_symfile_info. Add initializers.
1297 (xcoff_objfile_data_key): Move lower. Change type.
1298 (XCOFF_DATA): Rewrite.
1299 (xcoff_free_info): Remove.
1300 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
1301 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
1302 (xcoff_initial_scan): Update.
1303
09232438
TT
13042019-05-08 Tom Tromey <tom@tromey.com>
1305
1306 * solib-svr4.c (struct svr4_info): Add initializers and
1307 destructor.
1308 <probes_table>: Now an htab_up.
1309 (solib_svr4_pspace_data): Change type.
1310 (free_probes_table): Simplify.
1311 (~svr4_info): Rename from svr4_pspace_data_cleanup.
1312 (get_svr4_info, probes_table_htab_remove_objfile_probes)
1313 (probes_table_remove_objfile_probes, register_solib_event_probe)
1314 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
1315 (_initialize_svr4_solib): Update.
1316
7b4a314f
TT
13172019-05-08 Tom Tromey <tom@tromey.com>
1318
1319 * remote.c (remote_pspace_data): Change type.
1320 (remote_pspace_data_cleanup): Remove.
1321 (get_remote_exec_file, set_pspace_remote_exec_file)
1322 (_initialize_remote): Update.
1323
51d3063a
TT
13242019-05-08 Tom Tromey <tom@tromey.com>
1325
1326 * breakpoint.c (breakpoint_objfile_key): Change type.
1327 (get_breakpoint_objfile_data): Update.
1328 (free_breakpoint_objfile_data): Remove.
1329 (_initialize_breakpoint): Update.
1330
89fb8848
TT
13312019-05-08 Tom Tromey <tom@tromey.com>
1332
1333 * linux-tdep.c (struct linux_info): Add initializers.
1334 (linux_inferior_data): Move. Change type.
1335 (invalidate_linux_cache_inf): Update.
1336 (linux_inferior_data_cleanup): Remove.
1337 (get_linux_inferior_data, _initialize_linux_tdep): Update.
1338
e9b89e2d
TT
13392019-05-08 Tom Tromey <tom@tromey.com>
1340
1341 * auxv.c (auxv_inferior_data): Move. Change type.
1342 (auxv_inferior_data_cleanup): Remove.
1343 (invalidate_auxv_cache_inf): Rewrite.
1344 (get_auxv_inferior_data, _initialize_auxv): Update.
1345
8c42777c
TT
13462019-05-08 Tom Tromey <tom@tromey.com>
1347
1348 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
1349 (symfile_debug_objfile_data_key): Change type.
1350 (symfile_debug_installed, debug_qf_has_symbols)
1351 (debug_qf_find_last_source_symtab)
1352 (debug_qf_forget_cached_source_info)
1353 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
1354 (debug_qf_print_stats, debug_qf_dump)
1355 (debug_qf_expand_symtabs_for_function)
1356 (debug_qf_expand_all_symtabs)
1357 (debug_qf_expand_symtabs_with_fullname)
1358 (debug_qf_map_matching_symbols)
1359 (debug_qf_expand_symtabs_matching)
1360 (debug_qf_find_pc_sect_compunit_symtab)
1361 (debug_qf_map_symbol_filenames)
1362 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
1363 (debug_sym_new_init, debug_sym_init, debug_sym_read)
1364 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
1365 (debug_sym_read_linetable, debug_sym_relocate): Update.
1366 (symfile_debug_free_objfile): Remove.
1367 (install_symfile_debug_logging, _initialize_symfile_debug):
1368 Update.
1369
5bfd760d
TT
13702019-05-08 Tom Tromey <tom@tromey.com>
1371
1372 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
1373 allocate_on_obstack.
1374 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
1375 (get_dwarf2_per_objfile): Update.
1376 (set_dwarf2_per_objfile): Remove.
1377 (dwarf2_has_info, dwarf2_get_section_info): Update.
1378 (dwarf2_free_objfile): Remove.
1379 (_initialize_dwarf2_read): Update.
1380
e85e19b4
TT
13812019-05-08 Tom Tromey <tom@tromey.com>
1382
1383 * auto-load.c (struct auto_load_pspace_info): Add destructor and
1384 initializers.
1385 <unsupported_script_warning_printed,
1386 script_not_found_warning_printed>: Now bool.
1387 (auto_load_pspace_data): Change type.
1388 (~auto_load_pspace_info): Rename from
1389 auto_load_pspace_data_cleanup.
1390 (get_auto_load_pspace_data, init_loaded_scripts_info)
1391 (clear_section_scripts, maybe_print_unsupported_script_warning)
1392 (maybe_print_script_not_found_warning, _initialize_auto_load):
1393 Update.
1394
f6aa7436
TT
13952019-05-08 Tom Tromey <tom@tromey.com>
1396
1397 * objfiles.c (objfile_pspace_info): Add destructor and
1398 initializers.
1399 (objfiles_pspace_data): Change type.
1400 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
1401 (get_objfile_pspace_data): Update.
1402 (objfiles_bfd_data): Change type.
1403 (get_objfile_bfd_data): Update.
1404 (objfile_bfd_data_free, _initialize_objfiles): Remove.
1405
6ae614f6
TT
14062019-05-08 Tom Tromey <tom@tromey.com>
1407
1408 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
1409 Change type.
1410 (get_catch_syscall_inferior_data): Update.
1411 (catch_syscall_inferior_data_cleanup): Remove.
1412 (_initialize_break_catch_syscall): Update.
1413
6509b8eb
TT
14142019-05-08 Tom Tromey <tom@tromey.com>
1415
1416 * inflow.c (struct terminal_info): Add destructor and
1417 initializers.
1418 (inflow_inferior_data): Change type.
1419 (~terminal_info): Rename from inflow_inferior_data_cleanup.
1420 (get_inflow_inferior_data, inflow_inferior_exit)
1421 (swap_terminal_info, _initialize_inflow): Update.
1422
35632941
TT
14232019-05-08 Tom Tromey <tom@tromey.com>
1424
1425 * target-dcache.c (target_dcache_cleanup): Remove.
1426 (target_dcache_aspace_key): Change type.
1427 (target_dcache_init_p, target_dcache_invalidate)
1428 (target_dcache_get, target_dcache_get_or_init)
1429 (_initialize_target_dcache): Update.
1430 * dcache.h (struct dcache_deleter): New.
1431
3017b94d
TT
14322019-05-08 Tom Tromey <tom@tromey.com>
1433
1434 * symtab.c (struct symbol_cache): Add destructor and
1435 initializers.
1436 (symbol_cache_key): Move. Change type.
1437 (make_symbol_cache, free_symbol_cache): Remove.
1438 (get_symbol_cache): Update.
1439 (symbol_cache_cleanup): Remove.
1440 (ALL_PSPACES, symbol_cache_flush)
1441 (maintenance_print_symbol_cache)
1442 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
1443 Update.
1444
a32ad8c5
TT
14452019-05-08 Tom Tromey <tom@tromey.com>
1446
1447 * symtab.c (struct main_info): Add destructor and initializers.
1448 (main_progspace_key): Move. Change type.
1449 (get_main_info): Update.
1450 (main_info_cleanup): Remove.
1451 (_initialize_symtab): Update.
1452
5f6e90a0
TT
14532019-05-08 Tom Tromey <tom@tromey.com>
1454
1455 * registry.h (DECLARE_REGISTRY): Define the _key class.
1456
1bd0c6e4
AB
14572019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1458
1459 * NEWS: Merge two 'New commands' sections.
1460
2228ef77
XR
14612019-05-08 Joel Brobecker <brobecker@adacore.com>
1462
1463 * ada-valprint.c (ada_val_print_gnat_array): Remove language
1464 parameter and use Ada language definition instead.
1465 (ada_val_print_ptr): Remove unused language parameter.
1466 (ada_val_print_num): Remove language parameter and use Ada language
1467 definition instead.
1468 (ada_val_print_enum, ada_val_print_flt): Remove unused language
1469 parameter.
1470 (ada_val_print_struct_union, ada_val_print_ref): Remove language
1471 parameter and use Ada language definition instead.
1472 (ada_val_print_1): Update all ada_val_print_xxx calls.
1473 Remove language parameter.
1474 (ada_val_print): Update ada_val_print_1 call.
1475
60fcc1c3
TT
14762019-05-08 Tom Tromey <tromey@adacore.com>
1477
1478 * remote.c (remote_hw_watchpoint_limit)
1479 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
1480 Now static.
1481
ed2b7c17
TT
14822019-05-08 Tom Tromey <tromey@adacore.com>
1483
1484 * maint.c (_initialize_maint_cmds): Move initialization code to
1485 remote.c.
1486 (watchdog, show_watchdog): Move to remote.c.
1487 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
1488 "watchdog" static.
1489 (_initialize_remote): Move initialization code from maint.c.
1490 * defs.h (watchdog): Don't declare.
1491
b0be6c91
TT
14922019-05-08 Tom Tromey <tromey@adacore.com>
1493
1494 * tui/tui-interp.c: Include main.h.
1495 * interps.c: Include main.h.
1496 * main.h (interpreter_p): Declare.
1497 * defs.h (interpreter_p): Don't declare.
1498
587ee17b
TT
14992019-05-08 Tom Tromey <tromey@adacore.com>
1500
1501 * dwarf2loc.c: Include dwarf2read.h.
1502 * defs.h (read_unsigned_leb128): Don't declare.
1503 * dwarf2read.h (read_unsigned_leb128): Declare.
1504
ca1df239
TT
15052019-05-08 Tom Tromey <tromey@adacore.com>
1506
1507 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
1508 method.
1509
99f20f08
TT
15102019-05-08 Tom Tromey <tromey@adacore.com>
1511
1512 * utils.c (fputs_maybe_filtered): Reset style after paging, even
1513 when no wrap column is set.
1514
80e55b13
TT
15152019-05-08 Tom Tromey <tromey@adacore.com>
1516
1517 * c-lang.c (c_get_string): Handle non-C-style arrays.
1518
9d3421af
TT
15192019-05-08 Tom Tromey <tromey@adacore.com>
1520
1521 * typeprint.c (print_offset_data::update): Print the bit offset,
1522 not the number of bits remaining.
1523
844333e2
TT
15242019-05-08 Tom Tromey <tromey@adacore.com>
1525
1526 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
1527 padding at end of comment.
1528
988915ee
TT
15292019-05-08 Tom Tromey <tromey@adacore.com>
1530
1531 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
1532 Compare main types.
1533
26bfd823
TT
15342019-05-06 Tom Tromey <tom@tromey.com>
1535
1536 * common/scoped_mmap.c: Include common-defs.h.
1537 * common/scoped_mmap.h: Don't include config.h.
1538
89055eaa
TT
15392019-05-04 Tom Tromey <tom@tromey.com>
1540
1541 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
1542 (struct aarch64_call_info): Add initializers.
1543 <si>: Now a std::vector.
1544 (pass_on_stack, aarch64_push_dummy_call): Update.
1545
5da01df5
TT
15462019-05-04 Simon Marchi <simon.marchi@efficios.com>
1547 Tom Tromey <tom@tromey.com>
1548
1549 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
1550 (ppc_threads): Now a std::vector. Now static.
1551 (hwdebug_find_thread_points_by_tid)
1552 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
1553 Update.
1554
fbdf05a1
TT
15552019-05-04 Tom Tromey <tom@tromey.com>
1556
1557 * arc-tdep.c (arc_tdesc_init): Return bool.
1558
06d16ec9
TT
15592019-05-04 Tom Tromey <tom@tromey.com>
1560
1561 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
1562 Use gdb_assert_not_reached.
1563
9c056022
TT
15642019-05-04 Tom Tromey <tom@tromey.com>
1565
1566 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
1567 "false".
1568
fa9c2a59
TT
15692019-05-04 Tom Tromey <tom@tromey.com>
1570
1571 * arc-tdep.c (arc_tdesc_init): Use bool.
1572
e2eb806a
TT
15732019-05-04 Tom Tromey <tom@tromey.com>
1574
1575 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
1576
6fe87677
TT
15772019-05-04 Tom Tromey <tom@tromey.com>
1578
1579 * cli/cli-cmds.c (valid_command_p): Return bool.
1580
7f008c9e
TT
15812019-05-04 Tom Tromey <tom@tromey.com>
1582
1583 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
1584 * command.h (valid_user_defined_cmd_name_p): Channge return type.
1585
b6484282
RT
15862019-05-04 Raul Tambre <raul@tambre.ee>
1587
1588 * python/lib/gdb/prompt.py (_ExtendedPrompt)
1589 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
1590 operator for comparison.
1591
af97b416
TT
15922019-05-04 Tom Tromey <tom@tromey.com>
1593
1594 * psymtab.c (psymbol_name_matches, match_partial_symbol)
1595 (lookup_partial_symbol, print_partial_symbols)
1596 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
1597 (psymbol_compare): Update.
1598 (add_psymbol_to_bcache): Clear the entire psymbol.
1599 (maintenance_check_psymtabs): Update.
1600 * psympriv.h (struct partial_symbol): Don't derive from
1601 general_symbol_info.
1602 <obj_section, unrelocated_address, address,
1603 set_unrelocated_address>: Update.
1604 <ginfo>: New member.
1605 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1606 (debug_names::write_psymbols): Update.
1607
9d6d4be8
TV
16082019-05-04 Tom de Vries <tdevries@suse.de>
1609
1610 * contrib/cc-with-tweaks.sh: Support -n arg.
1611
66452beb
PW
16122019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1613
1614 * corelow.c (core_target::detach): Ensure frame cache and
1615 register caches are cleared.
1616 inferior.c (exit_inferior_1): Likewise.
1617
bde09ab7
TT
16182019-05-03 Sandra Loosemore <sandra@codesourcery.com>
1619 Tom Tromey <tom@tromey.com>
1620
1621 * dictionary.c (collate_pending_symbols_by_language): Remove
1622 "struct" from foreach.
1623 * symtab.c (lookup_global_symbol_from_objfile)
1624 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
1625 foreach.
1626 * ser-tcp.c (net_open): Remove "struct" from foreach.
1627 * objfiles.c (objfile_relocate, objfile_rebase)
1628 (objfile_has_symbols): Remove "struct" from foreach.
1629 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
1630 from foreach.
1631 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
1632 foreach.
1633 * darwin-nat.c (thread_info_from_private_thread_info): Remove
1634 "struct" from foreach.
1635 * ada-lang.c (create_excep_cond_exprs)
1636 (ada_exception_catchpoint_cond_string): Remove "struct" from
1637 foreach.
1638
222a8d25
TT
16392019-05-03 Tom Tromey <tromey@adacore.com>
1640
1641 * ada-exp.y (convert_char_literal): Check suffix of each
1642 enumerator.
1643
fcd60b84
DP
16442019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1645
1646 PR ada/21406:
1647 * ada-exp.y (yywrap): Don't define.
1648 * ada-lex.l (%option): Add noyywrap
1649 (yywrap): Remove.
1650
5f2459c2
EZ
16512019-05-03 Eli Zaretskii <eliz@gnu.org>
1652
353ea2d1
EZ
1653 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
1654 _WIN32_WINNT to the XP level, unless already defined to a higher
1655 level.
1656
1657 * unittests/parse-connection-spec-selftests.c:
1658 * ser-tcp.c:
1659 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
1660 override.
1661
5f2459c2
EZ
1662 * symfile.c (find_separate_debug_file): Remove colon from the
1663 drive spec of DOS/Windows file names of the target, so that the
1664 file name produced from DEBUGDIR and the target's directory will
1665 be valid on DOS/Windows systems.
1666
80062eb9
AB
16672019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
1668
1669 * rust-lang.c (val_print_struct): Handle printing structures
1670 containing strings.
1671
b8c05e85
TT
16722019-05-02 Tom Tromey <tromey@adacore.com>
1673
1674 * valarith.c (_initialize_valarith): Remove.
1675
4504bbde
TT
16762019-05-01 Tom Tromey <tromey@adacore.com>
1677
1678 * ada-lang.c (ada_value_primitive_field): Treat more fields as
1679 bitfields.
1680
d48e62f4
TT
16812019-05-01 Tom Tromey <tromey@adacore.com>
1682
1683 * ada-lang.c (ada_value_assign): Correctly compute starting offset
1684 for big-endian copies.
1685
15f18d14
AT
16862019-04-30 Ali Tamur <tamur@google.com>
1687 * gdb/dwarf2read.c (read_3_bytes): New declaration.
1688 (read_attribute_value): Added DW_FORM_strx1-4 cases.
1689 (read_3_bytes): New function.
1690
ab4ee614
JB
16912019-04-30 Joel Brobecker <brobecker@adacore.com>
1692
1693 * windows-nat.c (main_thread_id): Delete.
1694 (handle_output_debug_string): Replace main_thread_id by
1695 current_event.dwThreadId.
1696 (fake_create_process): Likewise.
1697 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
1698 Do not set main_thread_id.
1699 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
1700 current_event.dwThreadId.
1701 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
1702
8ed5b76e
JB
17032019-04-30 Joel Brobecker <brobecker@adacore.com>
1704
1705 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
1706 Use current_event.dwThreadId instead of main_thread_id.
1707
2ff0a947
TT
17082019-04-30 Tom Tromey <tromey@adacore.com>
1709
1710 * ada-lang.c (ada_lookup_simple_minsyms): New function.
1711 (create_excep_cond_exprs): Iterate over program spaces.
1712 (ada_exception_catchpoint_cond_string): Examine all minimal
1713 symbols for exception types.
1714
a776957c
TT
17152019-04-30 Tom Tromey <tromey@adacore.com>
1716
1717 PR c++/24470:
1718 * dwarf2read.c (process_structure_scope): Handle case where type
1719 has template parameters but no symbol was created.
1720
bc68014d
AB
17212019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1722 Chris January <chris.january@arm.com>
1723
1724 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
1725 qualifier.
1726 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
1727
f1fdc960
AB
17282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1729
1730 * f-typeprint.c (f_print_type): Update rules for printing
1731 whitespace.
1732 (f_type_print_varspec_suffix): Likewise.
1733
bf7a4de1
AB
17342019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1735 Chris January <chris.january@arm.com>
1736
1737 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
1738 function arguments.
1739
bbe75b9d
AB
17402019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1741
1742 * f-lang.c (build_fortran_types): Change name of void type to
1743 lower case.
1744 * f-typeprint.c (f_type_print_base): Print the name of the void
1745 type, rather than a fixed string.
1746 * f-valprint.c (f_decorations): Use lower case void string.
1747
1db455a7
AB
17482019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1749 Chris January <chris.january@arm.com>
1750
1751 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
1752 types for Fortran.
1753
b6d03bb2
AB
17542019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1755 Chris January <chris.january@arm.com>
1756 David Lecomber <david.lecomber@arm.com>
1757
1758 * f-exp.y (BINOP_INTRINSIC): New token.
1759 (exp): New parser rule handling BINOP_INTRINSIC.
1760 (f77_keywords): Add new builtin procedures.
1761 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
1762 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1763 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
1764 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1765 (print_unop_subexp_f): New function.
1766 (print_binop_subexp_f): New function.
1767 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1768 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
1769 (dump_subexp_body_f): Likewise.
1770 (operator_check_f): Likewise.
1771 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
1772 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
1773
83228e93
AB
17742019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1775
1776 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
1777 UNOP_KIND.
1778 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
1779 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
1780 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
1781 (operator_length_f): New fuction.
1782 (print_subexp_f): New function.
1783 (op_name_f): New function.
1784 (dump_subexp_body_f): New function.
1785 (operator_check_f): New function.
1786 (exp_descriptor_f): Replace standard expression handling functions
1787 with new functions.
1788 * gdb/fortran-operator.def: New file.
1789 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
1790 * gdb/std-operator.def: Remove UNOP_KIND.
1791
6fdcd7cc
AB
17922019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * std-operator.def: Remove unbalanced, stray double quote
1795 character.
1796
2e62ab40
AB
17972019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1798 Chris January <chris.january@arm.com>
1799 Daniel Everett <daniel.everett@arm.com>
1800 Nick Forrington <nick.forrington@arm.com>
1801 Richard Bunt <richard.bunt@arm.com>
1802
1803 * cp-valprint.c (cp_print_value_fields): Allow an additional level
1804 of depth when printing anonymous structs or unions.
1805 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1806 Don't print either the top-level value, or the children if the
1807 max-depth is exceeded.
1808 (ppscm_print_children): When printing the key of a map, allow one
1809 extra level of depth.
1810 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
1811 print either the top-level value, or the children if the max-depth
1812 is exceeded.
1813 (print_children): When printing the key of a map, allow one extra
1814 level of depth.
1815 * python/py-value.c (valpy_format_string): Add max_depth keyword.
1816 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
1817 (user_print_options): Initialise max_depth field.
1818 (val_print_scalar_or_string_type_p): New function.
1819 (val_print): Check to see if the max depth has been reached.
1820 (val_print_check_max_depth): Define new function.
1821 (show_print_max_depth): New function.
1822 (_initialize_valprint): Add 'print max-depth' option.
1823 * valprint.h (struct value_print_options) <max_depth>: New field.
1824 (val_print_check_max_depth): Declare new function.
1825 * NEWS: Document new feature.
1826
4be290b2
AB
18272019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1828
1829 * ada-lang.c (ada_language_defn): Initialise new field.
1830 * c-lang.c (c_is_string_type_p): New function.
1831 (c_language_defn): Initialise new field.
1832 (cplus_language_defn): Initialise new field.
1833 (asm_language_defn): Initialise new field.
1834 (minimal_language_defn): Initialise new field.
1835 * c-lang.h (c_is_string_type_p): Declare new function.
1836 * d-lang.c (d_language_defn): Initialise new field.
1837 * f-lang.c (f_is_string_type_p): New function.
1838 (f_language_defn): Initialise new field.
1839 * go-lang.c (go_is_string_type_p): New function.
1840 (go_language_defn): Initialise new field.
1841 * language.c (default_is_string_type_p): New function.
1842 (unknown_language_defn): Initialise new field.
1843 (auto_language_defn): Initialise new field.
1844 * language.h (struct language_defn) <la_is_string_type_p>: New
1845 member variable.
1846 (default_is_string_type_p): Declare new function.
1847 * m2-lang.c (m2_language_defn): Initialise new field.
1848 * objc-lang.c (objc_language_defn): Initialise new field.
1849 * opencl-lang.c (opencl_language_defn): Initialise new field.
1850 * p-lang.c (pascal_is_string_type_p): New function.
1851 (pascal_language_defn): Initialise new field.
1852 * rust-lang.c (rust_is_string_type_p): New function.
1853 (rust_language_defn): Initialise new field.
1854
721b08c6
AB
18552019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1856
1857 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
1858 New field.
1859 * ada-lang.c (ada_language_defn): Initialise new field.
1860 * c-lang.c (c_language_defn): Likewise.
1861 (cplus_language_defn): Likewise.
1862 (asm_language_defn): Likewise.
1863 (minimal_language_defn): Likewise.
1864 * d-lang.c (d_language_defn): Likewise.
1865 * f-lang.c (f_language_defn): Likewise.
1866 * go-lang.c (go_language_defn): Likewise.
1867 * language.c (unknown_language_defn): Likewise.
1868 (auto_language_defn): Likewise.
1869 * m2-lang.c (m2_language_defn): Likewise.
1870 * objc-lang.c (objc_language_defn): Likewise.
1871 * opencl-lang.c (opencl_language_defn): Likewise.
1872 * p-lang.c (pascal_language_defn): Likewise.
1873 * rust-lang.c (rust_language_defn): Likewise.
1874
fc913e53
AB
18752019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1876
1877 * ada-lang.c (ada_is_character_type): Change return type to bool.
1878 (ada_is_string_type): Likewise.
1879 * ada-lang.h (ada_is_character_type): Update declaration
1880 (ada_is_string_type): Likewise.
1881
fa731fa0
PW
18822019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1883
1884 Support style in 'frame|thread apply'
1885
1886 * gdbcmd.h (execute_command_to_string): New term_out parameter.
1887 * record.c (record_start, record_stop): Update callers of
1888 execute_command_to_string with false.
1889 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
1890 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
1891 methods.
1892 (class string_file): New constructor with term_out parameter.
1893 Override methods term_out and can_emit_style_escape. New member
1894 term_out.
1895 (class stdio_file): Override can_emit_style_escape.
1896 (class tee_file): Override term_out and can_emit_style_escape.
1897 * utils.h (can_emit_style_escape): Remove.
1898 * utils.c (can_emit_style_escape): Likewise.
1899 Update all callers of can_emit_style_escape (SOMESTREAM) to
1900 SOMESTREAM->can_emit_style_escape.
1901 * source-cache.c (source_cache::get_source_lines): Likewise.
1902 * stack.c (frame_apply_command_count): Call execute_command_to_string
1903 passing the term_out characteristic of the current gdb_stdout.
1904 * thread.c (thr_try_catch_cmd): Likewise.
1905 * top.c (execute_command_to_string): pass term_out parameter
1906 to construct the string_file for the command output.
1907 * ui-file.c (term_cli_styling): New function (most code moved
1908 from utils.c can_emit_style_escape).
1909 (string_file::string_file, string_file::can_emit_style_escape,
1910 stdio_file::can_emit_style_escape, tee_file::term_out,
1911 tee_file::can_emit_style_escape): New functions.
1912
136afab8
PW
19132019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1914
1915 * NEWS: Mention the new set|show may-call-functions.
1916 * infcall.c (may_call_functions_p): New variable.
1917 (show_may_call_functions_p): New function.
1918 (call_function_by_hand_dummy): Throws an error if not
1919 may-call-functions.
1920 (_initialize_infcall): Call add_setshow_boolean_cmd for
1921 may-call-functions.
1922
725cbb63
KS
19232019-04-25 Keith Seitz <keiths@redhat.com>
1924
1925 PR c++/24367
1926 * cp-support.c (inspect_type): Don't attempt substitutions
1927 of symbol with the same name.
1928
3d1cbb78
TT
19292019-04-25 Tom Tromey <tromey@adacore.com>
1930
1931 PR gdb/24475:
1932 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
1933 static.
1934
94aeb44b
TT
19352019-04-25 Tom Tromey <tromey@adacore.com>
1936
1937 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
1938 rvalue reference.
1939 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
1940 (gdb_xml_parser::parse): Use std::move.
1941 * python/python-internal.h (gdbpy_convert_exception): Take a const
1942 reference.
1943 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
1944 std::move.
1945 * python/py-utils.c (gdbpy_convert_exception): Take a const
1946 reference.
1947 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
1948 Use std::move.
1949 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
1950 Use std::move.
1951 * mi/mi-main.c (mi_print_exception): Take a const reference.
1952 * main.c (handle_command_errors): Take a const reference.
1953 * linespec.c (parse_linespec): Use std::move.
1954 * infcall.c (run_inferior_call): Use std::move.
1955 (call_function_by_hand_dummy): Use std::move.
1956 * exec.c (try_open_exec_file): Use std::move.
1957 * exceptions.h (exception_print, exception_fprintf)
1958 (exception_print_same): Update.
1959 * exceptions.c (print_exception, exception_print)
1960 (exception_fprintf, exception_print_same): Change parameters to
1961 const reference.
1962 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
1963 * common/new-op.c: Use std::move.
1964 * common/common-exceptions.h (struct gdb_exception): Add move
1965 constructor.
1966 (struct gdb_exception_error, struct gdb_exception_quit, struct
1967 gdb_quit_bad_alloc): Change constructor to move constructor.
1968 (throw_exception): Change parameter to rvalue reference.
1969 * common/common-exceptions.c (throw_exception): Take rvalue
1970 reference.
1971 * cli/cli-interp.c (safe_execute_command): Use std::move.
1972 * breakpoint.c (insert_bp_location, location_to_sals): Use
1973 std::move.
1974
680d7fd5
TT
19752019-04-25 Tom Tromey <tromey@adacore.com>
1976
1977 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
1978 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
1979 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
1980 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
1981 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
1982 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
1983 guile/scm-value.c: Use unpack.
1984 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
1985 gdbscm_gdb_exception.
1986 (gdbscm_throw_gdb_exception): Likewise.
1987 (struct gdbscm_gdb_exception): New.
1988 (unpack): New function.
1989 (gdbscm_wrap): Use unpack.
1990
c6fdd8b2
TT
19912019-04-25 Tom Tromey <tromey@adacore.com>
1992
1993 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
1994 (gdb_rl_callback_handler): Use std::move.
1995 * common/common-exceptions.h (struct gdb_exception): Add move
1996 assignment operator.
1997 (throw_exception_sjlj): Change "exception" to const reference.
1998 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
1999 (throw_exception_sjlj): Change "exception" to const reference.
2000
cc06b668
TT
20012019-04-25 Tom Tromey <tromey@adacore.com>
2002
2003 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
2004 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
2005 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
2006 Update.
2007 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
2008 Update.
2009 * mi/mi-interp.c (mi_interp::exec): Update.
2010 * linespec.c (parse_linespec): Update.
2011 * infcall.c (run_inferior_call): Update.
2012 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
2013 * guile/scm-symbol.c (gdbscm_lookup_symbol)
2014 (gdbscm_lookup_global_symbol): Update.
2015 * guile/scm-param.c (gdbscm_parameter_value): Update.
2016 * guile/scm-frame.c (gdbscm_frame_read_register)
2017 (gdbscm_frame_read_var): Update.
2018 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2019 * exec.c (try_open_exec_file): Update.
2020 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
2021 (gdb_rl_callback_handler): Update.
2022 * common/common-exceptions.h (exception_none): Don't declare.
2023 * common/common-exceptions.c (exception_none): Don't define.
2024 (struct catcher) <exception>: Update.
2025 * cli/cli-interp.c (safe_execute_command): Update.
2026 * breakpoint.c (insert_bp_location, location_to_sals): Update.
2027
cf532bd1
AT
20282019-04-25 Ali Tamur <tamur@google.com>
2029
2030 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
2031 (read_attribute_value): Likewise.
2032 (dwarf2_read_addr_index): Update comment.
2033 (read_str_index): Add DW_FORM_strx.
2034 (dwarf2_string_attr): Likewise.
2035 (dwarf2_const_value_attr): Likewise.
2036 (dump_die_shallow): Likewise.
2037 (dwarf2_fetch_constant_bytes): Likewise.
2038 (skip_form_bytes): Likewise.
2039 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
2040
82433e3e
SDJ
20412019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2042
2043 PR corefiles/11608
2044 PR corefiles/18187
2045 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
2046 OFFSET. Verify if current mapping contains an ELF header.
2047 (linux_find_memory_regions_full): Adjust call to
2048 dump_mapping_p.
2049
723adb65
SL
20502019-04-25 Sandra Loosemore <sandra@codesourcery.com>
2051 Kang Li <kanglictf@gmail.com>
2052
2053 PR gdb/21600
2054
2055 * dwarf2-frame.c (read_initial_length): Be consistent about using
2056 unsigned representation of length.
2057 (decode_frame_entry_1): Likewise. Check for wraparound of
2058 end pointer as well as buffer overflow.
2059
596179f7
SDJ
20602019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2061
2062 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
2063 "vq".
2064
a59240a4
TT
20652019-04-24 Tom Tromey <tromey@adacore.com>
2066
2067 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
2068
f872fdbb
AB
20692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * s12z-tdep.c (s12z_unwind_pc): Delete.
2072 (s12z_unwind_sp): Delete.
2073 (s12z_gdbarch_init): Don't register deleted functions with
2074 gdbarch.
2075
b614e6f3
AB
20762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * rl78-tdep.c (rl78_unwind_sp): Delete.
2079 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
2080
14faed38
AB
20812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2082
2083 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
2084 (xstormy16_unwind_pc): Delete.
2085 (xstormy16_dummy_id): Delete.
2086 (xstormy16_gdbarch_init): Don't register deleted functions with
2087 gdbarch.
2088
541aad8a
AB
20892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2090
2091 * vax-tdep.c (vax_unwind_pc): Delete.
2092 (vax_gdbarch_init): Don't register deleted function with gdbarch.
2093
29222070
AB
20942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2095
2096 * v850-tdep.c (v850_unwind_sp): Delete.
2097 (v850_unwind_pc): Delete.
2098 (v850_dummy_id): Delete.
2099 (v850_gdbarch_init): Don't register deleted functions with
2100 gdbarch.
2101
0f534d76
AB
21022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2103
2104 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
2105 (tilegx_unwind_pc): Delete.
2106 (tilegx_unwind_dummy_id): Delete.
2107 (tilegx_gdbarch_init): Don't register deleted functions with
2108 gdbarch.
2109
1ba7b7f9
AB
21102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2111
2112 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
2113 (tic6x_dummy_id): Delete.
2114 (tic6x_gdbarch_init): Don't register deleted functions with
2115 gdbarch.
2116
d31f262c
AB
21172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2118
2119 * sparc-tdep.c (sparc_unwind_pc): Delete.
2120 (sparc32_gdbarch_init): Don't register deleted function with
2121 gdbarch.
2122
6d14d64d
AB
21232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2124
2125 * sh-tdep.c (sh_unwind_sp): Delete.
2126 (sh_unwind_pc): Delete.
2127 (sh_dummy_id): Delete.
2128 (sh_gdbarch_init): Don't register deleted functions with
2129 gdbarch.
2130
a40dde9d
AB
21312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2132
2133 * score-tdep.c (score_unwind_sp): Delete.
2134 (score_unwind_pc): Delete.
2135 (score_dummy_id): Delete.
2136 (score_gdbarch_init): Don't register deleted functions with
2137 gdbarch.
2138
47c47d69
AB
21392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2140
2141 * rx-tdep.c (rx_unwind_pc): Delete.
2142 (rx_unwind_sp): Delete.
2143 (rx_dummy_id): Delete.
2144 (rx_gdbarch_init): Don't register deleted functions with
2145 gdbarch. Update comment.
2146
833a4480
AB
21472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2148
2149 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
2150 (rs6000_dummy_id): Delete.
2151 (rs6000_gdbarch_init): Don't register deleted functions with
2152 gdbarch.
2153
3f2cef49
AB
21542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2155
2156 * or1k-tdep.c (or1k_dummy_id): Delete.
2157 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
2158
96acf884
AB
21592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2160
2161 * nios2-tdep.c (nios2_dummy_id): Delete.
2162 (nios2_unwind_sp): Delete.
2163 (nios2_gdbarch_init): Don't register deleted functions with
2164 gdbarch.
2165
ca0ab0aa
AB
21662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2167
2168 * nds32-tdep.c (nds32_dummy_id): Delete.
2169 (nds32_unwind_pc): Delete.
2170 (nds32_unwind_sp): Delete.
2171 (nds32_gdbarch_init): Don't register deleted functions with
2172 gdbarch.
2173
c8259044
AB
21742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2175
2176 * msp430-tdep.c (msp430_unwind_pc): Delete.
2177 (msp430_unwind_sp): Delete.
2178 (msp430_dummy_id): Delete.
2179 (msp430_gdbarch_init): Don't register deleted functions with
2180 gdbarch.
2181
27f113c8
AB
21822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2183
2184 * moxie-tdep.c (moxie_unwind_sp): Delete.
2185 (moxie_unwind_pc): Delete.
2186 (moxie_dummy_id): Delete.
2187 (moxie_gdbarch_init): Don't register deleted functions with
2188 gdbarch.
2189
aee6c3cd
AB
21902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2191
2192 * mn10300-tdep.c (mn10300_dummy_id): Delete.
2193 (mn10300_unwind_pc): Delete.
2194 (mn10300_unwind_sp): Delete.
2195 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
2196 mn10300_unwind_sp.
2197 (mn10300_frame_unwind_init): Don't register deleted functions with
2198 gdbarch.
2199
8e2b5aea
AB
22002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2201
2202 * mep-tdep.c (mep_unwind_pc): Delete.
2203 (mep_unwind_sp): Delete.
2204 (mep_dummy_id): Delete.
2205 (mep_gdbarch_init): Don't register deleted functions with
2206 gdbarch.
2207
43cf3ede
AB
22082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2209
2210 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
2211 (m68hc11_unwind_sp): Delete.
2212 (m68hc11_gdbarch_init): Don't register deleted functions with
2213 gdbarch.
2214
5e79b7bb
AB
22152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2216
2217 * m32r-tdep.c (m32r_unwind_sp): Delete.
2218 (m32r_unwind_pc): Delete.
2219 (m32r_dummy_id): Delete.
2220 (m32r_gdbarch_init): Don't register deleted functions with
2221 gdbarch.
2222
89b268d8
AB
22232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * m32c-tdep.c (m32c_unwind_pc): Delete.
2226 (m32c_unwind_sp): Delete.
2227 (m32c_dummy_id): Delete.
2228 (m32c_gdbarch_init): Don't register deleted functions with
2229 gdbarch.
2230
946c28d2
AB
22312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2232
2233 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
2234 (lm32_unwind_pc): Delete.
2235 (lm32_dummy_id): Delete.
2236 (lm32_gdbarch_init): Don't register deleted functions with
2237 gdbarch.
2238
bf12844a
AB
22392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2240
2241 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
2242 (iq2000_unwind_pc): Delete.
2243 (iq2000_dummy_id): Delete.
2244 (iq2000_gdbarch_init): Don't register deleted functions with
2245 gdbarch.
2246
ecbc06d2
AB
22472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2248
2249 * nds32-tdep.c (nds32_type_align): Delete.
2250 (nds32_push_dummy_call): Use type_align instead.
2251
030197b4
AB
22522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2253
2254 * arm-tdep.c (arm_type_align): Only handle vector override case.
2255 (arm_push_dummy_call): Use type_align.
2256 (arm_gdbarch_init): Register arm_type_align gdbarch function.
2257
b907456c
AB
22582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2259
2260 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
2261 case.
2262 (pass_on_stack): Use type_align.
2263 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
2264 function.
2265
9e97ba43
TT
22662019-04-23 Tom Tromey <tromey@adacore.com>
2267
2268 * dwarf2read.c (line_header::file_name_at): Remove unused
2269 overload.
2270
6892f601
TV
22712019-04-23 Tom de Vries <tdevries@suse.de>
2272
2273 PR gdb/24438
2274 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
2275 invocation.
2276
336d760d
AT
2277
22782019-03-27 Ali Tamur <tamur@google.com>
2279
2280 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
2281 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
2282 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
2283 (dwarf_expr_context::get_addr_index): Likewise
2284 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
2285 (symbol_needs_eval_context::get_addr_index): Likewise
2286 (disassemble_dwarf_expression): Add DW_OP_addrx
2287 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
2288 (read_cutu_die_from_dwo): Update comment
2289 (skip_one_die): Add DW_FORM_addrx
2290 (read_attribute_value): Likewise
2291 (var_decode_location): Add DW_OP_addrx
2292 (dwarf2_const_value_attr): Add DW_FORM_addrx
2293 (dump_die_shallow): Likewise
2294 (dwarf2_fetch_constant_bytes): Likewise
2295 (decode_locdesc): Add DW_OP_addrx
2296 (skip_form_bytes): Add DW_FORM_addrx
2297
ad9d13f8
AT
22982019-04-22 Ali Tamur <tamur@google.com>
2299
2300 * MAINTAINERS (Write After Approval): Add self.
2301
d70cc3ba
SM
23022019-04-22 Simon Marchi <simon.marchi@efficios.com>
2303
2304 * solib-svr4.c (get_svr4_info): Add pspace parameter.
2305 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
2306 (open_symbol_file_object): Likewise.
2307 (svr4_default_sos): Add info parameter.
2308 (svr4_read_so_list): Likewise.
2309 (svr4_current_sos_direct): Adjust functions calls to pass down
2310 info.
2311 (svr4_current_sos_1): Add info parameter.
2312 (svr4_current_sos): Call get_svr4_info, pass info down to
2313 svr4_current_sos_1.
2314 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
2315 get_svr4_info.
2316 (svr4_in_dynsym_resolve_code): Pass current_program_space to
2317 get_svr4_info.
2318 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
2319 to get_svr4_info.
2320 (probes_table_remove_objfile_probes): Likewise.
2321 (register_solib_event_probe): Add info parameter.
2322 (solist_update_incremental): Pass info parameter down to
2323 svr4_read_so_list.
2324 (disable_probes_interface): Add info parameter.
2325 (svr4_handle_solib_event): Pass current_program_space to
2326 get_svr4_info. Adjust disable_probes_interface cleanup.
2327 (svr4_create_probe_breakpoints): Add info parameter, pass it
2328 down to register_solib_event_probe.
2329 (svr4_create_solib_event_breakpoints): Add info parameter,
2330 pass it down to svr4_create_probe_breakpoints.
2331 (enable_break): Pass info down to
2332 svr4_create_solib_event_breakpoints.
2333 (svr4_solib_create_inferior_hook): Pass current_program_space to
2334 get_svr4_info.
2335 (svr4_clear_solib): Likewise.
2336
7905fc35
PA
23372019-04-22 Pedro Alves <palves@redhat.com>
2338
2339 * solib-svr4.c (svr4_free_objfile_observer): New.
2340 (probe_and_action::objfile): New field.
2341 (probes_table_htab_remove_objfile_probes)
2342 (probes_table_remove_objfile_probes): New functions.
2343 (register_solib_event_probe): Add 'objfile' parameter. Store it
2344 in the new probe_and_action. Don't store the probe in 'lookup'.
2345 (svr4_create_probe_breakpoints): Pass objfile to
2346 register_solib_event_probe.
2347 (_initialize_svr4_solib): Register a free_objfile observer.
2348
fb881986
TT
23492019-04-19 Tom Tromey <tom@tromey.com>
2350
2351 * common/queue.h: Remove.
2352
8732db6c
TT
23532019-04-19 Tom Tromey <tom@tromey.com>
2354
2355 * event-loop.c: Don't include "common/queue.h".
2356
97dfbadd
TT
23572019-04-19 Tom Tromey <tom@tromey.com>
2358
2359 * remote.c (remote_target): Use delete.
2360 * remote-notif.h: Include <list>, not "common/queue.h".
2361 (notif_client_p): Remove typedef.
2362 (remote_notif_state): Add constructor, destructor, initializer.
2363 <notif_queue>: Now a std::list.
2364 (remote_notif_state_xfree): Don't declare.
2365 * remote-notif.c (remote_notif_process, handle_notification)
2366 (remote_notif_state_allocate): Update.
2367 (~remote_notif_state): Rename from remote_notif_state_xfree.
2368
cf250e36
TT
23692019-04-19 Tom Tromey <tom@tromey.com>
2370
2371 * symfile.c (reread_symbols): Update.
2372 * objfiles.c (objfile_register_static_link)
2373 (objfile_lookup_static_link): Update
2374 (~objfile) Don't delete static_links.
2375 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
2376
61f4b350
TT
23772019-04-19 Tom Tromey <tom@tromey.com>
2378
2379 * type-stack.h (struct type_stack) <insert>: Constify string.
2380 * type-stack.c (type_stack::insert): Constify string.
2381 * gdbtypes.h (lookup_template_type): Update.
2382 (address_space_name_to_int): Update.
2383 * gdbtypes.c (address_space_name_to_int): Make space_identifier
2384 const.
2385 (lookup_template_type): Make name const.
2386 * c-exp.y: Update rules.
2387 (lex_one_token, classify_name, classify_inner_name)
2388 (c_print_token): Update.
2389 * p-exp.y: Update rules.
2390 (yylex): Update.
2391 * f-exp.y: Update rules.
2392 (yylex): Update.
2393 * d-exp.y: Update rules.
2394 (lex_one_token, classify_name, classify_inner_name): Update.
2395 * parse.c (write_dollar_variable, copy_name): Return std::string.
2396 * parser-defs.h (copy_name): Change return type.
2397 * m2-exp.y: Update rules.
2398 (yylex): Update.
2399 * go-exp.y (lex_one_token): Update.
2400 Update rules.
2401 (classify_unsafe_function, classify_packaged_name)
2402 (classify_name, yylex): Update.
2403
189b8c2e
ST
24042019-04-19 Sergei Trofimovich <siarheit@google.com>
2405
2406 * configure.ac: add --enable-source-highlight switch.
2407 * configure: Regenerate.
2408 * top.c (print_gdb_version): plumb --enable-source-highlight
2409 status to "show configuration".
2410
8ecb59f8
TT
24112019-04-19 Tom Tromey <tromey@adacore.com>
2412
2413 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
2414 Check ADA_TYPE_P.
2415 (empty_record, ada_template_to_fixed_record_type_1)
2416 (template_to_static_fixed_type)
2417 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
2418 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
2419 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
2420 macros.
2421
62160ec9
TT
24222019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
2423
2424 PR symtab/24423:
2425 * source.c (print_source_lines_base): Advance "iter" when a
2426 control character is seen.
2427
f2ae8bc8
PW
24282019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2429
2430 * inferior.h (struct infcall_suspend_state_deleter):
2431 Catch exception in destructor to avoid crash.
2432
d563b953
PW
24332019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2434
2435 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
2436 close to the add_com "shell".
2437
dc34c897
TT
24382019-04-18 Tom Tromey <tromey@adacore.com>
2439
2440 * process-stratum-target.h (class process_stratum_target)
2441 <stratum>: Add "final".
2442
a12e5744
TT
24432019-04-17 Tom Tromey <tromey@adacore.com>
2444
2445 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
2446 against nullptr before use.
2447
a7e559cc
AH
24482019-04-17 Alan Hayward <alan.hayward@arm.com>
2449
2450 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
2451
c01660c6
AB
24522019-04-17 Jim Wilson <jimw@sifive.com>
2453 Andrew Burgess <andrew.burgess@embecosm.com>
2454
2455 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
2456 code read might fail, assume 4-byte breakpoint in that case.
2457
4aa866af
LS
24582019-04-15 Leszek Swirski <leszeks@google.com>
2459
2460 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
2461 rather than a hand-rolled POD check when checking for forced MEMORY
2462 classification.
2463
48574d91
AH
24642019-04-15 Alan Hayward <alan.hayward@arm.com>
2465
2466 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
2467 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
2468 function.
2469 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
2470 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
2471 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
2472 declaration.
2473
4da037ef
AH
24742019-04-15 Alan Hayward <alan.hayward@arm.com>
2475
2476 * aarch64-linux-nat.c
2477 (aarch64_linux_nat_target::thread_architecture): Add override.
2478 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
2479 each VQ.
2480
ccb8d7e8
AH
24812019-04-15 Alan Hayward <alan.hayward@arm.com>
2482
2483 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
2484
35add35e
AB
24852019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
2486
2487 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
2488 target types of size 96-bits, add some additional comments, and
2489 check that the builtin type we found was the correct size.
2490
51196bbc
EZ
24912019-04-12 Eli Zaretskii <eliz@gnu.org>
2492
2493 * utils.c (prompt_for_continue): Don't restore the styling at the
2494 end, as applied_style has the wrong value. This fixes styling in
2495 long lists of file names that are interrupted by the "Continue?"
2496 prompt.
2497
62253a61
AB
24982019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
2499
2500 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
2501 * c-lang.c (c_language_defn): Likewise.
2502 (cplus_language_defn): Likewise.
2503 (asm_language_defn): Likewise.
2504 (minimal_language_defn): Likewise.
2505 * d-lang.c (d_language_defn): Likewise.
2506 * f-lang.c (f_language_defn): Likewise.
2507 * go-lang.c (go_language_defn): Likewise.
2508 * language.c (unknown_language_defn): Likewise.
2509 (auto_language_defn): Likewise.
2510 * language.h (struct language_defn): Remove la_magic field.
2511 (LANG_MAGIC): Delete.
2512 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
2513 * objc-lang.c (objc_language_defn): Likewise.
2514 * opencl-lang.c (opencl_language_defn): Likewise.
2515 * p-lang.c (pascal_language_defn): Likewise.
2516 * rust-lang.c (rust_language_defn): Likewise.
2517
a9158a86
AB
25182019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2519
2520 * riscv-tdep.c (riscv_type_align): New function.
2521 (riscv_type_alignment): Delete.
2522 (riscv_arg_location): Use 'type_align'.
2523 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
2524
41077b66
AB
25252019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2526
2527 * gdbtypes.c (type_align): A struct with no non-static fields also
2528 has alignment of 1.
2529
9f0272f8
AB
25302019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
2531
2532 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
2533 component to 0.
2534 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
2535 member.
2536 (riscv_struct_info::analyse): New implementation using new
2537 analyse_inner member function.
2538 (riscv_struct_info::field_offset): New member function.
2539 (riscv_struct_info::m_offsets): New member variable.
2540 (riscv_struct_info::analyse_inner): New private member function,
2541 takes the old implementation of riscv_struct_info::analyse but
2542 extended to track field offsets.
2543 (riscv_call_arg_struct): Update the struct folding special cases
2544 to handle cases where empty C++ structs, which are non-zero
2545 length, are found.
2546 (riscv_arg_location): Initialise the length of each location, a
2547 non-zero length now indicates the location is in use.
2548 (riscv_push_dummy_call): Allow for the first location having a
2549 non-zero offset when setting up arguments.
2550 (riscv_return_value): Likewise, but for return values.
2551
02cf60c7
TT
25522019-04-11 Tom Tromey <tromey@adacore.com>
2553
2554 * utils.c (internal_vproblem): Make "msg" const.
2555
68811f8f
AH
25562019-04-11 Alan Hayward <alan.hayward@arm.com>
2557
2558 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
2559 * trad-frame.c (trad_frame_reset_saved_regs): New function.
2560 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
2561 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
2562
3f52fdbc
KB
25632019-04-10 Kevin Buettner <kevinb@redhat.com>
2564
2565 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
2566 function.
2567 (fill_gregset): Call amd64_linux_collect_native_gregset instead
2568 of amd64_collect_native_gregset.
2569 (amd64_linux_nat_target::store_registers): Likewise.
2570
e9ad22ee
TT
25712019-04-10 Tom Tromey <tom@tromey.com>
2572
2573 * symtab.c (lookup_global_symbol_from_objfile)
2574 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
2575 * objfiles.h (class separate_debug_iterator): New.
2576 (class separate_debug_range): New.
2577 (struct objfile) <separate_debug_objfiles>: New method.
2578 (objfile_separate_debug_iterate): Don't declare.
2579 * objfiles.c (separate_debug_iterator::operator++): Rename from
2580 objfile_separate_debug_iterate.
2581 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
2582 iterator.
2583 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
2584 iterator.
2585
ee371134
TT
25862019-04-10 Tom Tromey <tom@tromey.com>
2587
2588 * symfile.c (reread_symbols): Remove old comment.
2589 * objfiles.c (free_all_objfiles): Fix a typo.
2590
bf227d61
TT
25912019-04-10 Tom Tromey <tom@tromey.com>
2592
2593 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
2594 * minsyms.c (lookup_minimal_symbol): Use foreach.
2595 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2596 (lookup_minimal_symbol_solib_trampoline): Likewise.
2597 * symfile.c (reread_symbols): Use foreach.
2598
8dc433a0
TT
25992019-04-09 Ivan Begert <ivanbegert@gmail.com>
2600 Tom Tromey <tromey@adacore.com>
2601
2602 PR rust/24414:
2603 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
2604 (rust_lex_int_test): Change "value" to be LONGEST.
2605 (rust_lex_tests): Add test for long integer literal.
2606
9ab8741a
TT
26072019-04-09 Tom Tromey <tromey@adacore.com>
2608
2609 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
2610 to bool.
2611 (extended_remote_target::attach): Update.
2612 (remote_target::remote_notice_new_inferior): Update.
2613 (remote_target::add_current_inferior_and_thread): Update.
2614 * inferior.c (exit_inferior_1): Use "false".
2615 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
2616
e242fd12
SM
26172019-04-09 Simon Marchi <simon.marchi@efficios.com>
2618
9ca1957f 2619 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
2620 the "start" command.
2621
2b0c8b01
KB
26222019-04-08 Kevin Buettner <kevinb@redhat.com>
2623
2624 * python/py-inferior.c (infpy_thread_from_thread_handle):
2625 Adjust comments to reflect renaming of thread_from_thread_handle
2626 to thread_from_handle. Adjust keywords. Fix type error message.
2627 (inferior_object_methods): Add thread_from_handle. Retain
2628 thread_from_thread_handle, but mark it as deprecated.
2629
50a82723
KB
26302019-04-08 Kevin Buettner <kevinb@redhat.com>
2631
2632 * gdbthread.h (find_thread_by_handle): Revise declaration.
2633 * thread.c (find_thread_by_handle): Likewise. Adjust
2634 implementation too.
2635 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
2636 support for buffer objects as handles.
2637
cf63b016
KB
26382019-04-08 Kevin Buettner <kevinb@redhat.com>
2639
2640 * python/py-infthread.c (thpy_thread_handle): New function.
2641 (thread_object_methods): Register thpy_thread_handle.
2642
3d6c6204
KB
26432019-04-08 Kevin Buettner <kevinb@redhat.com>
2644
2645 * gdbthread.h (thread_to_thread_handle): Declare.
2646 * thread.c (gdbtypes.h): Include.
2647 (thread_to_thread_handle): New function.
2648
2649 * target.h (struct target_ops): Add thread_info_to_thread_handle.
2650 (target_thread_info_to_thread_handle): Declare.
2651 * target.c (target_thread_info_to_thread_handle): New function.
2652 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
2653 * target-delegates.c: Regenerate.
2654
2655 * linux-thread-db.c (class thread_db_target): Add method
2656 thread_info_to_thread_handle.
2657 (thread_db_target::thread_info_to_thread_handle): Define.
2658 * remote.c (class remote_target): Add new method
2659 thread_info_to_thread_handle.
2660 (remote_target::thread_info_to_thread_handle): Define.
2661
56be6ea8
PA
26622019-04-08 Pedro Alves <palves@redhat.com>
2663
2664 * common/common-exceptions.c (throw_exception): Don't create
2665 named object to throw; throw directly.
2666 (throw_it): Likewise. Don't initialize gdb_exception::message
2667 here, with new; pass FMT and AP to the ctor instead.
2668 * common/common-exceptions.h: Include <string>.
2669 (gdb_exception::gdb_exception(enum return_reason, enum errors,
2670 const char *, va_list)): New ctor. Use std::make_shared.
2671 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
2672 errors)): Delete.
2673 (gdb_exception_error::gdb_exception_error(enum errors, const char
2674 *, va_list)): New.
2675 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
2676 Add assertion.
2677 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
2678 errors)): Delete.
2679 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
2680 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
2681 Add assertion.
2682
eedc3f4f
TT
26832019-04-08 Tom Tromey <tom@tromey.com>
2684
2685 * valops.c (value_rtti_indirect_type): Replace throw_exception
2686 with throw.
2687 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
2688 with throw.
2689 * thread.c (thr_try_catch_cmd): Replace throw_exception with
2690 throw.
2691 * target.c (target_translate_tls_address): Replace throw_exception
2692 with throw.
2693 * stack.c (frame_apply_command_count): Replace throw_exception
2694 with throw.
2695 * solib-spu.c (append_ocl_sos): Replace throw_exception with
2696 throw.
2697 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
2698 with throw.
2699 * rs6000-tdep.c (rs6000_frame_cache)
2700 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
2701 * remote.c: Replace throw_exception with throw.
2702 * record-full.c (record_full_message, record_full_wait_1)
2703 (record_full_restore): Replace throw_exception with throw.
2704 * record-btrace.c:
2705 (get_thread_current_frame_id, record_btrace_start_replaying)
2706 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
2707 (cmd_record_btrace_start): Replace throw_exception with throw.
2708 * parse.c (parse_exp_in_context_1): Replace throw_exception with
2709 throw.
2710 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
2711 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
2712 * linespec.c:
2713 (find_linespec_symbols): Replace throw_exception with throw.
2714 * infrun.c (displaced_step_prepare, resume): Replace
2715 throw_exception with throw.
2716 * infcmd.c (post_create_inferior): Replace throw_exception with
2717 throw.
2718 * inf-loop.c (inferior_event_handler): Replace throw_exception
2719 with throw.
2720 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2721 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
2722 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
2723 (get_prev_frame_always, get_frame_pc_if_available)
2724 (get_frame_address_in_block_if_available, get_frame_language):
2725 Replace throw_exception with throw.
2726 * frame-unwind.c (frame_unwind_try_unwinder): Replace
2727 throw_exception with throw.
2728 * eval.c (fetch_subexp_value, evaluate_var_value)
2729 (evaluate_funcall, evaluate_subexp_standard): Replace
2730 throw_exception with throw.
2731 * dwarf2loc.c (call_site_find_chain)
2732 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
2733 Replace throw_exception with throw.
2734 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
2735 with throw.
2736 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
2737 throw.
2738 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
2739 * completer.c (complete_line_internal): Replace throw_exception
2740 with throw.
2741 * compile/compile-object-run.c (compile_object_run): Replace
2742 throw_exception with throw.
2743 * cli/cli-script.c (process_next_line): Replace throw_exception
2744 with throw.
2745 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
2746 (btrace_enable, btrace_maint_update_pt_packets): Replace
2747 throw_exception with throw.
2748 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
2749 throw_exception with throw.
2750 * break-catch-throw.c (re_set_exception_catchpoint): Replace
2751 throw_exception with throw.
2752 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2753 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
2754 * aarch64-tdep.c (aarch64_make_prologue_cache)
2755 (aarch64_make_stub_cache): Replace throw_exception with throw.
2756
26003a20
TT
27572019-04-08 Tom Tromey <tom@tromey.com>
2758
2759 * common/common-exceptions.c (throw_exception): Rename from
2760 throw_exception_cxx. Remove old copy. Make argument const.
2761 (throw_it): Create and throw exception objects directly.
2762 * common/common-exceptions.h (throw_exception): Make argument
2763 const.
2764 (struct gdb_exception_error): Add constructor.
2765 (struct gdb_exception_quit): Add constructor.
2766
d272eb37
TT
27672019-04-08 Tom Tromey <tom@tromey.com>
2768
2769 * common/common-exceptions.h (exception_rethrow): Don't declare.
2770 (TRY_SJLJ): Update comment.
2771 (TRY, CATCH, END_CATCH): Remove.
2772 * common/common-exceptions.c (exception_rethrow): Remove.
2773
230d2906
TT
27742019-04-08 Tom Tromey <tom@tromey.com>
2775
2776 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
2777 Remove.
2778 (gdb_exception_error): Rename from
2779 gdb_exception_RETURN_MASK_ERROR.
2780 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
2781 (gdb_quit_bad_alloc): Update.
2782 * aarch64-tdep.c: Update.
2783 * ada-lang.c: Update.
2784 * ada-typeprint.c: Update.
2785 * ada-valprint.c: Update.
2786 * amd64-tdep.c: Update.
2787 * arch-utils.c: Update.
2788 * break-catch-throw.c: Update.
2789 * breakpoint.c: Update.
2790 * btrace.c: Update.
2791 * c-varobj.c: Update.
2792 * cli/cli-cmds.c: Update.
2793 * cli/cli-interp.c: Update.
2794 * cli/cli-script.c: Update.
2795 * common/common-exceptions.c: Update.
2796 * common/new-op.c: Update.
2797 * common/selftest.c: Update.
2798 * compile/compile-c-symbols.c: Update.
2799 * compile/compile-cplus-symbols.c: Update.
2800 * compile/compile-object-load.c: Update.
2801 * compile/compile-object-run.c: Update.
2802 * completer.c: Update.
2803 * corelow.c: Update.
2804 * cp-abi.c: Update.
2805 * cp-support.c: Update.
2806 * cp-valprint.c: Update.
2807 * darwin-nat.c: Update.
2808 * disasm-selftests.c: Update.
2809 * dtrace-probe.c: Update.
2810 * dwarf-index-cache.c: Update.
2811 * dwarf-index-write.c: Update.
2812 * dwarf2-frame-tailcall.c: Update.
2813 * dwarf2-frame.c: Update.
2814 * dwarf2loc.c: Update.
2815 * dwarf2read.c: Update.
2816 * eval.c: Update.
2817 * event-loop.c: Update.
2818 * event-top.c: Update.
2819 * exec.c: Update.
2820 * f-valprint.c: Update.
2821 * fbsd-tdep.c: Update.
2822 * frame-unwind.c: Update.
2823 * frame.c: Update.
2824 * gdbtypes.c: Update.
2825 * gnu-v3-abi.c: Update.
2826 * guile/guile-internal.h: Update.
2827 * guile/scm-block.c: Update.
2828 * guile/scm-breakpoint.c: Update.
2829 * guile/scm-cmd.c: Update.
2830 * guile/scm-disasm.c: Update.
2831 * guile/scm-frame.c: Update.
2832 * guile/scm-lazy-string.c: Update.
2833 * guile/scm-math.c: Update.
2834 * guile/scm-param.c: Update.
2835 * guile/scm-ports.c: Update.
2836 * guile/scm-pretty-print.c: Update.
2837 * guile/scm-symbol.c: Update.
2838 * guile/scm-symtab.c: Update.
2839 * guile/scm-type.c: Update.
2840 * guile/scm-value.c: Update.
2841 * i386-linux-tdep.c: Update.
2842 * i386-tdep.c: Update.
2843 * inf-loop.c: Update.
2844 * infcall.c: Update.
2845 * infcmd.c: Update.
2846 * infrun.c: Update.
2847 * jit.c: Update.
2848 * language.c: Update.
2849 * linespec.c: Update.
2850 * linux-fork.c: Update.
2851 * linux-nat.c: Update.
2852 * linux-tdep.c: Update.
2853 * linux-thread-db.c: Update.
2854 * main.c: Update.
2855 * mi/mi-cmd-break.c: Update.
2856 * mi/mi-cmd-stack.c: Update.
2857 * mi/mi-interp.c: Update.
2858 * mi/mi-main.c: Update.
2859 * objc-lang.c: Update.
2860 * p-valprint.c: Update.
2861 * parse.c: Update.
2862 * ppc-linux-tdep.c: Update.
2863 * printcmd.c: Update.
2864 * python/py-arch.c: Update.
2865 * python/py-breakpoint.c: Update.
2866 * python/py-cmd.c: Update.
2867 * python/py-finishbreakpoint.c: Update.
2868 * python/py-frame.c: Update.
2869 * python/py-framefilter.c: Update.
2870 * python/py-gdb-readline.c: Update.
2871 * python/py-inferior.c: Update.
2872 * python/py-infthread.c: Update.
2873 * python/py-lazy-string.c: Update.
2874 * python/py-linetable.c: Update.
2875 * python/py-objfile.c: Update.
2876 * python/py-param.c: Update.
2877 * python/py-prettyprint.c: Update.
2878 * python/py-progspace.c: Update.
2879 * python/py-record-btrace.c: Update.
2880 * python/py-record.c: Update.
2881 * python/py-symbol.c: Update.
2882 * python/py-type.c: Update.
2883 * python/py-unwind.c: Update.
2884 * python/py-utils.c: Update.
2885 * python/py-value.c: Update.
2886 * python/python.c: Update.
2887 * record-btrace.c: Update.
2888 * record-full.c: Update.
2889 * remote-fileio.c: Update.
2890 * remote.c: Update.
2891 * riscv-tdep.c: Update.
2892 * rs6000-aix-tdep.c: Update.
2893 * rs6000-tdep.c: Update.
2894 * rust-exp.y: Update.
2895 * rust-lang.c: Update.
2896 * s390-tdep.c: Update.
2897 * selftest-arch.c: Update.
2898 * solib-dsbt.c: Update.
2899 * solib-frv.c: Update.
2900 * solib-spu.c: Update.
2901 * solib-svr4.c: Update.
2902 * solib.c: Update.
2903 * sparc64-linux-tdep.c: Update.
2904 * stack.c: Update.
2905 * symfile-mem.c: Update.
2906 * symmisc.c: Update.
2907 * target.c: Update.
2908 * thread.c: Update.
2909 * top.c: Update.
2910 * tracefile-tfile.c: Update.
2911 * tui/tui.c: Update.
2912 * typeprint.c: Update.
2913 * unittests/cli-utils-selftests.c: Update.
2914 * unittests/parse-connection-spec-selftests.c: Update.
2915 * valops.c: Update.
2916 * valprint.c: Update.
2917 * value.c: Update.
2918 * varobj.c: Update.
2919 * windows-nat.c: Update.
2920 * x86-linux-nat.c: Update.
2921 * xml-support.c: Update.
2922
a70b8144
TT
29232019-04-08 Tom Tromey <tom@tromey.com>
2924
2925 * xml-support.c: Use C++ exception handling.
2926 * x86-linux-nat.c: Use C++ exception handling.
2927 * windows-nat.c: Use C++ exception handling.
2928 * varobj.c: Use C++ exception handling.
2929 * value.c: Use C++ exception handling.
2930 * valprint.c: Use C++ exception handling.
2931 * valops.c: Use C++ exception handling.
2932 * unittests/parse-connection-spec-selftests.c: Use C++ exception
2933 handling.
2934 * unittests/cli-utils-selftests.c: Use C++ exception handling.
2935 * typeprint.c: Use C++ exception handling.
2936 * tui/tui.c: Use C++ exception handling.
2937 * tracefile-tfile.c: Use C++ exception handling.
2938 * top.c: Use C++ exception handling.
2939 * thread.c: Use C++ exception handling.
2940 * target.c: Use C++ exception handling.
2941 * symmisc.c: Use C++ exception handling.
2942 * symfile-mem.c: Use C++ exception handling.
2943 * stack.c: Use C++ exception handling.
2944 * sparc64-linux-tdep.c: Use C++ exception handling.
2945 * solib.c: Use C++ exception handling.
2946 * solib-svr4.c: Use C++ exception handling.
2947 * solib-spu.c: Use C++ exception handling.
2948 * solib-frv.c: Use C++ exception handling.
2949 * solib-dsbt.c: Use C++ exception handling.
2950 * selftest-arch.c: Use C++ exception handling.
2951 * s390-tdep.c: Use C++ exception handling.
2952 * rust-lang.c: Use C++ exception handling.
2953 * rust-exp.y: Use C++ exception handling.
2954 * rs6000-tdep.c: Use C++ exception handling.
2955 * rs6000-aix-tdep.c: Use C++ exception handling.
2956 * riscv-tdep.c: Use C++ exception handling.
2957 * remote.c: Use C++ exception handling.
2958 * remote-fileio.c: Use C++ exception handling.
2959 * record-full.c: Use C++ exception handling.
2960 * record-btrace.c: Use C++ exception handling.
2961 * python/python.c: Use C++ exception handling.
2962 * python/py-value.c: Use C++ exception handling.
2963 * python/py-utils.c: Use C++ exception handling.
2964 * python/py-unwind.c: Use C++ exception handling.
2965 * python/py-type.c: Use C++ exception handling.
2966 * python/py-symbol.c: Use C++ exception handling.
2967 * python/py-record.c: Use C++ exception handling.
2968 * python/py-record-btrace.c: Use C++ exception handling.
2969 * python/py-progspace.c: Use C++ exception handling.
2970 * python/py-prettyprint.c: Use C++ exception handling.
2971 * python/py-param.c: Use C++ exception handling.
2972 * python/py-objfile.c: Use C++ exception handling.
2973 * python/py-linetable.c: Use C++ exception handling.
2974 * python/py-lazy-string.c: Use C++ exception handling.
2975 * python/py-infthread.c: Use C++ exception handling.
2976 * python/py-inferior.c: Use C++ exception handling.
2977 * python/py-gdb-readline.c: Use C++ exception handling.
2978 * python/py-framefilter.c: Use C++ exception handling.
2979 * python/py-frame.c: Use C++ exception handling.
2980 * python/py-finishbreakpoint.c: Use C++ exception handling.
2981 * python/py-cmd.c: Use C++ exception handling.
2982 * python/py-breakpoint.c: Use C++ exception handling.
2983 * python/py-arch.c: Use C++ exception handling.
2984 * printcmd.c: Use C++ exception handling.
2985 * ppc-linux-tdep.c: Use C++ exception handling.
2986 * parse.c: Use C++ exception handling.
2987 * p-valprint.c: Use C++ exception handling.
2988 * objc-lang.c: Use C++ exception handling.
2989 * mi/mi-main.c: Use C++ exception handling.
2990 * mi/mi-interp.c: Use C++ exception handling.
2991 * mi/mi-cmd-stack.c: Use C++ exception handling.
2992 * mi/mi-cmd-break.c: Use C++ exception handling.
2993 * main.c: Use C++ exception handling.
2994 * linux-thread-db.c: Use C++ exception handling.
2995 * linux-tdep.c: Use C++ exception handling.
2996 * linux-nat.c: Use C++ exception handling.
2997 * linux-fork.c: Use C++ exception handling.
2998 * linespec.c: Use C++ exception handling.
2999 * language.c: Use C++ exception handling.
3000 * jit.c: Use C++ exception handling.
3001 * infrun.c: Use C++ exception handling.
3002 * infcmd.c: Use C++ exception handling.
3003 * infcall.c: Use C++ exception handling.
3004 * inf-loop.c: Use C++ exception handling.
3005 * i386-tdep.c: Use C++ exception handling.
3006 * i386-linux-tdep.c: Use C++ exception handling.
3007 * guile/scm-value.c: Use C++ exception handling.
3008 * guile/scm-type.c: Use C++ exception handling.
3009 * guile/scm-symtab.c: Use C++ exception handling.
3010 * guile/scm-symbol.c: Use C++ exception handling.
3011 * guile/scm-pretty-print.c: Use C++ exception handling.
3012 * guile/scm-ports.c: Use C++ exception handling.
3013 * guile/scm-param.c: Use C++ exception handling.
3014 * guile/scm-math.c: Use C++ exception handling.
3015 * guile/scm-lazy-string.c: Use C++ exception handling.
3016 * guile/scm-frame.c: Use C++ exception handling.
3017 * guile/scm-disasm.c: Use C++ exception handling.
3018 * guile/scm-cmd.c: Use C++ exception handling.
3019 * guile/scm-breakpoint.c: Use C++ exception handling.
3020 * guile/scm-block.c: Use C++ exception handling.
3021 * guile/guile-internal.h: Use C++ exception handling.
3022 * gnu-v3-abi.c: Use C++ exception handling.
3023 * gdbtypes.c: Use C++ exception handling.
3024 * frame.c: Use C++ exception handling.
3025 * frame-unwind.c: Use C++ exception handling.
3026 * fbsd-tdep.c: Use C++ exception handling.
3027 * f-valprint.c: Use C++ exception handling.
3028 * exec.c: Use C++ exception handling.
3029 * event-top.c: Use C++ exception handling.
3030 * event-loop.c: Use C++ exception handling.
3031 * eval.c: Use C++ exception handling.
3032 * dwarf2read.c: Use C++ exception handling.
3033 * dwarf2loc.c: Use C++ exception handling.
3034 * dwarf2-frame.c: Use C++ exception handling.
3035 * dwarf2-frame-tailcall.c: Use C++ exception handling.
3036 * dwarf-index-write.c: Use C++ exception handling.
3037 * dwarf-index-cache.c: Use C++ exception handling.
3038 * dtrace-probe.c: Use C++ exception handling.
3039 * disasm-selftests.c: Use C++ exception handling.
3040 * darwin-nat.c: Use C++ exception handling.
3041 * cp-valprint.c: Use C++ exception handling.
3042 * cp-support.c: Use C++ exception handling.
3043 * cp-abi.c: Use C++ exception handling.
3044 * corelow.c: Use C++ exception handling.
3045 * completer.c: Use C++ exception handling.
3046 * compile/compile-object-run.c: Use C++ exception handling.
3047 * compile/compile-object-load.c: Use C++ exception handling.
3048 * compile/compile-cplus-symbols.c: Use C++ exception handling.
3049 * compile/compile-c-symbols.c: Use C++ exception handling.
3050 * common/selftest.c: Use C++ exception handling.
3051 * common/new-op.c: Use C++ exception handling.
3052 * cli/cli-script.c: Use C++ exception handling.
3053 * cli/cli-interp.c: Use C++ exception handling.
3054 * cli/cli-cmds.c: Use C++ exception handling.
3055 * c-varobj.c: Use C++ exception handling.
3056 * btrace.c: Use C++ exception handling.
3057 * breakpoint.c: Use C++ exception handling.
3058 * break-catch-throw.c: Use C++ exception handling.
3059 * arch-utils.c: Use C++ exception handling.
3060 * amd64-tdep.c: Use C++ exception handling.
3061 * ada-valprint.c: Use C++ exception handling.
3062 * ada-typeprint.c: Use C++ exception handling.
3063 * ada-lang.c: Use C++ exception handling.
3064 * aarch64-tdep.c: Use C++ exception handling.
3065
3d6e9d23
TT
30662019-04-08 Tom Tromey <tom@tromey.com>
3067
3068 * xml-support.c (gdb_xml_parser::parse): Update.
3069 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3070 * value.c (show_convenience): Update.
3071 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
3072 (test_parse_flags_qcs): Update.
3073 * thread.c (thr_try_catch_cmd): Update.
3074 * target.c (target_translate_tls_address): Update.
3075 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3076 (info_frame_command_core, frame_apply_command_count): Update.
3077 * rust-exp.y (rust_lex_exception_test): Update.
3078 * riscv-tdep.c (riscv_print_one_register_info): Update.
3079 * remote.c (remote_target::enable_btrace): Update.
3080 * record-btrace.c (record_btrace_enable_warn): Update.
3081 * python/py-utils.c (gdbpy_convert_exception): Update.
3082 * printcmd.c (do_one_display, print_variable_and_value): Update.
3083 * mi/mi-main.c (mi_print_exception): Update.
3084 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
3085 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3086 * linux-nat.c (linux_nat_target::attach): Update.
3087 * linux-fork.c (class scoped_switch_fork_info): Update.
3088 * infrun.c (displaced_step_prepare): Update.
3089 * infcall.c (call_function_by_hand_dummy): Update.
3090 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
3091 * gnu-v3-abi.c (print_one_vtable): Update.
3092 * frame.c (get_prev_frame_always): Update.
3093 * f-valprint.c (info_common_command_for_block): Update.
3094 * exec.c (try_open_exec_file): Update.
3095 * exceptions.c (print_exception, exception_print)
3096 (exception_fprintf, exception_print_same): Update.
3097 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
3098 * dwarf-index-cache.c (index_cache::store)
3099 (index_cache::lookup_gdb_index): Update.
3100 * darwin-nat.c (maybe_cache_shell): Update.
3101 * cp-valprint.c (cp_print_value_fields): Update.
3102 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
3103 (gcc_cplus_symbol_address): Update.
3104 * compile/compile-c-symbols.c (gcc_convert_symbol)
3105 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
3106 * common/selftest.c: Update.
3107 * common/common-exceptions.h (struct gdb_exception) <message>: Now
3108 a std::string.
3109 (exception_try_scope_entry, exception_try_scope_exit): Don't
3110 declare.
3111 (struct exception_try_scope): Remove.
3112 (TRY): Don't use exception_try_scope.
3113 (struct gdb_exception): Add constructor, operator=.
3114 <what>: New method.
3115 (struct gdb_exception_RETURN_MASK_ALL)
3116 (struct gdb_exception_RETURN_MASK_ERROR)
3117 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
3118 (struct gdb_quit_bad_alloc): Update.
3119 * common/common-exceptions.c (exception_none): Change
3120 initializer.
3121 (struct catcher) <state, exception>: Initialize inline.
3122 <prev>: Remove member.
3123 (current_catcher): Remove.
3124 (catchers): New global.
3125 (exceptions_state_mc_init): Simplify.
3126 (catcher_pop): Remove.
3127 (exceptions_state_mc, exceptions_state_mc_catch): Update.
3128 (try_scope_depth, exception_try_scope_entry)
3129 (exception_try_scope_exit): Remove.
3130 (throw_exception_sjlj): Update.
3131 (exception_messages, exception_messages_size): Remove.
3132 (throw_it): Simplify.
3133 (gdb_exception_sliced_copy): Remove.
3134 (throw_exception_cxx): Update.
3135 * cli/cli-script.c (script_from_file): Update.
3136 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
3137 Update.
3138 * ada-valprint.c (ada_val_print): Update.
3139 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
3140 (create_excep_cond_exprs): Update.
3141
c5c10118
TT
31422019-04-08 Tom Tromey <tom@tromey.com>
3143
3144 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
3145 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
3146 (TRY, CATCH, END_CATCH): Remove some definitions.
3147 * common/common-exceptions.c: Don't use GDB_XCPT.
3148 (catcher_list_size): Remove.
3149 (throw_exception, throw_it): Simplify.
3150
4de283e4
TT
31512019-04-05 Tom Tromey <tom@tromey.com>
3152
3153 Revert the header-sorting patch.
3154 * ft32-tdep.c: Revert.
3155 * frv-tdep.c: Revert.
3156 * frv-linux-tdep.c: Revert.
3157 * frame.c: Revert.
3158 * frame-unwind.c: Revert.
3159 * frame-base.c: Revert.
3160 * fork-child.c: Revert.
3161 * findvar.c: Revert.
3162 * findcmd.c: Revert.
3163 * filesystem.c: Revert.
3164 * filename-seen-cache.h: Revert.
3165 * filename-seen-cache.c: Revert.
3166 * fbsd-tdep.c: Revert.
3167 * fbsd-nat.h: Revert.
3168 * fbsd-nat.c: Revert.
3169 * f-valprint.c: Revert.
3170 * f-typeprint.c: Revert.
3171 * f-lang.c: Revert.
3172 * extension.h: Revert.
3173 * extension.c: Revert.
3174 * extension-priv.h: Revert.
3175 * expprint.c: Revert.
3176 * exec.h: Revert.
3177 * exec.c: Revert.
3178 * exceptions.c: Revert.
3179 * event-top.c: Revert.
3180 * event-loop.c: Revert.
3181 * eval.c: Revert.
3182 * elfread.c: Revert.
3183 * dwarf2read.h: Revert.
3184 * dwarf2read.c: Revert.
3185 * dwarf2loc.c: Revert.
3186 * dwarf2expr.h: Revert.
3187 * dwarf2expr.c: Revert.
3188 * dwarf2-frame.c: Revert.
3189 * dwarf2-frame-tailcall.c: Revert.
3190 * dwarf-index-write.h: Revert.
3191 * dwarf-index-write.c: Revert.
3192 * dwarf-index-common.c: Revert.
3193 * dwarf-index-cache.h: Revert.
3194 * dwarf-index-cache.c: Revert.
3195 * dummy-frame.c: Revert.
3196 * dtrace-probe.c: Revert.
3197 * disasm.h: Revert.
3198 * disasm.c: Revert.
3199 * disasm-selftests.c: Revert.
3200 * dictionary.c: Revert.
3201 * dicos-tdep.c: Revert.
3202 * demangle.c: Revert.
3203 * dcache.h: Revert.
3204 * dcache.c: Revert.
3205 * darwin-nat.h: Revert.
3206 * darwin-nat.c: Revert.
3207 * darwin-nat-info.c: Revert.
3208 * d-valprint.c: Revert.
3209 * d-namespace.c: Revert.
3210 * d-lang.c: Revert.
3211 * ctf.c: Revert.
3212 * csky-tdep.c: Revert.
3213 * csky-linux-tdep.c: Revert.
3214 * cris-tdep.c: Revert.
3215 * cris-linux-tdep.c: Revert.
3216 * cp-valprint.c: Revert.
3217 * cp-support.c: Revert.
3218 * cp-namespace.c: Revert.
3219 * cp-abi.c: Revert.
3220 * corelow.c: Revert.
3221 * corefile.c: Revert.
3222 * continuations.c: Revert.
3223 * completer.h: Revert.
3224 * completer.c: Revert.
3225 * complaints.c: Revert.
3226 * coffread.c: Revert.
3227 * coff-pe-read.c: Revert.
3228 * cli-out.h: Revert.
3229 * cli-out.c: Revert.
3230 * charset.c: Revert.
3231 * c-varobj.c: Revert.
3232 * c-valprint.c: Revert.
3233 * c-typeprint.c: Revert.
3234 * c-lang.c: Revert.
3235 * buildsym.c: Revert.
3236 * buildsym-legacy.c: Revert.
3237 * build-id.h: Revert.
3238 * build-id.c: Revert.
3239 * btrace.c: Revert.
3240 * bsd-uthread.c: Revert.
3241 * breakpoint.h: Revert.
3242 * breakpoint.c: Revert.
3243 * break-catch-throw.c: Revert.
3244 * break-catch-syscall.c: Revert.
3245 * break-catch-sig.c: Revert.
3246 * blockframe.c: Revert.
3247 * block.c: Revert.
3248 * bfin-tdep.c: Revert.
3249 * bfin-linux-tdep.c: Revert.
3250 * bfd-target.c: Revert.
3251 * bcache.c: Revert.
3252 * ax-general.c: Revert.
3253 * ax-gdb.h: Revert.
3254 * ax-gdb.c: Revert.
3255 * avr-tdep.c: Revert.
3256 * auxv.c: Revert.
3257 * auto-load.c: Revert.
3258 * arm-wince-tdep.c: Revert.
3259 * arm-tdep.c: Revert.
3260 * arm-symbian-tdep.c: Revert.
3261 * arm-pikeos-tdep.c: Revert.
3262 * arm-obsd-tdep.c: Revert.
3263 * arm-nbsd-tdep.c: Revert.
3264 * arm-nbsd-nat.c: Revert.
3265 * arm-linux-tdep.c: Revert.
3266 * arm-linux-nat.c: Revert.
3267 * arm-fbsd-tdep.c: Revert.
3268 * arm-fbsd-nat.c: Revert.
3269 * arm-bsd-tdep.c: Revert.
3270 * arch-utils.c: Revert.
3271 * arc-tdep.c: Revert.
3272 * arc-newlib-tdep.c: Revert.
3273 * annotate.h: Revert.
3274 * annotate.c: Revert.
3275 * amd64-windows-tdep.c: Revert.
3276 * amd64-windows-nat.c: Revert.
3277 * amd64-tdep.c: Revert.
3278 * amd64-sol2-tdep.c: Revert.
3279 * amd64-obsd-tdep.c: Revert.
3280 * amd64-obsd-nat.c: Revert.
3281 * amd64-nbsd-tdep.c: Revert.
3282 * amd64-nbsd-nat.c: Revert.
3283 * amd64-nat.c: Revert.
3284 * amd64-linux-tdep.c: Revert.
3285 * amd64-linux-nat.c: Revert.
3286 * amd64-fbsd-tdep.c: Revert.
3287 * amd64-fbsd-nat.c: Revert.
3288 * amd64-dicos-tdep.c: Revert.
3289 * amd64-darwin-tdep.c: Revert.
3290 * amd64-bsd-nat.c: Revert.
3291 * alpha-tdep.c: Revert.
3292 * alpha-obsd-tdep.c: Revert.
3293 * alpha-nbsd-tdep.c: Revert.
3294 * alpha-mdebug-tdep.c: Revert.
3295 * alpha-linux-tdep.c: Revert.
3296 * alpha-linux-nat.c: Revert.
3297 * alpha-bsd-tdep.c: Revert.
3298 * alpha-bsd-nat.c: Revert.
3299 * aix-thread.c: Revert.
3300 * agent.c: Revert.
3301 * addrmap.c: Revert.
3302 * ada-varobj.c: Revert.
3303 * ada-valprint.c: Revert.
3304 * ada-typeprint.c: Revert.
3305 * ada-tasks.c: Revert.
3306 * ada-lang.c: Revert.
3307 * aarch64-tdep.c: Revert.
3308 * aarch64-ravenscar-thread.c: Revert.
3309 * aarch64-newlib-tdep.c: Revert.
3310 * aarch64-linux-tdep.c: Revert.
3311 * aarch64-linux-nat.c: Revert.
3312 * aarch64-fbsd-tdep.c: Revert.
3313 * aarch64-fbsd-nat.c: Revert.
3314 * aarch32-linux-nat.c: Revert.
3315
d55e5aa6
TT
33162019-04-05 Tom Tromey <tom@tromey.com>
3317
3318 * ft32-tdep.c: Sort headers.
3319 * frv-tdep.c: Sort headers.
3320 * frv-linux-tdep.c: Sort headers.
3321 * frame.c: Sort headers.
3322 * frame-unwind.c: Sort headers.
3323 * frame-base.c: Sort headers.
3324 * fork-child.c: Sort headers.
3325 * findvar.c: Sort headers.
3326 * findcmd.c: Sort headers.
3327 * filesystem.c: Sort headers.
3328 * filename-seen-cache.h: Sort headers.
3329 * filename-seen-cache.c: Sort headers.
3330 * fbsd-tdep.c: Sort headers.
3331 * fbsd-nat.h: Sort headers.
3332 * fbsd-nat.c: Sort headers.
3333 * f-valprint.c: Sort headers.
3334 * f-typeprint.c: Sort headers.
3335 * f-lang.c: Sort headers.
3336 * extension.h: Sort headers.
3337 * extension.c: Sort headers.
3338 * extension-priv.h: Sort headers.
3339 * expprint.c: Sort headers.
3340 * exec.h: Sort headers.
3341 * exec.c: Sort headers.
3342 * exceptions.c: Sort headers.
3343 * event-top.c: Sort headers.
3344 * event-loop.c: Sort headers.
3345 * eval.c: Sort headers.
3346 * elfread.c: Sort headers.
3347 * dwarf2read.h: Sort headers.
3348 * dwarf2read.c: Sort headers.
3349 * dwarf2loc.c: Sort headers.
3350 * dwarf2expr.h: Sort headers.
3351 * dwarf2expr.c: Sort headers.
3352 * dwarf2-frame.c: Sort headers.
3353 * dwarf2-frame-tailcall.c: Sort headers.
3354 * dwarf-index-write.h: Sort headers.
3355 * dwarf-index-write.c: Sort headers.
3356 * dwarf-index-common.c: Sort headers.
3357 * dwarf-index-cache.h: Sort headers.
3358 * dwarf-index-cache.c: Sort headers.
3359 * dummy-frame.c: Sort headers.
3360 * dtrace-probe.c: Sort headers.
3361 * disasm.h: Sort headers.
3362 * disasm.c: Sort headers.
3363 * disasm-selftests.c: Sort headers.
3364 * dictionary.c: Sort headers.
3365 * dicos-tdep.c: Sort headers.
3366 * demangle.c: Sort headers.
3367 * dcache.h: Sort headers.
3368 * dcache.c: Sort headers.
3369 * darwin-nat.h: Sort headers.
3370 * darwin-nat.c: Sort headers.
3371 * darwin-nat-info.c: Sort headers.
3372 * d-valprint.c: Sort headers.
3373 * d-namespace.c: Sort headers.
3374 * d-lang.c: Sort headers.
3375 * ctf.c: Sort headers.
3376 * csky-tdep.c: Sort headers.
3377 * csky-linux-tdep.c: Sort headers.
3378 * cris-tdep.c: Sort headers.
3379 * cris-linux-tdep.c: Sort headers.
3380 * cp-valprint.c: Sort headers.
3381 * cp-support.c: Sort headers.
3382 * cp-namespace.c: Sort headers.
3383 * cp-abi.c: Sort headers.
3384 * corelow.c: Sort headers.
3385 * corefile.c: Sort headers.
3386 * continuations.c: Sort headers.
3387 * completer.h: Sort headers.
3388 * completer.c: Sort headers.
3389 * complaints.c: Sort headers.
3390 * coffread.c: Sort headers.
3391 * coff-pe-read.c: Sort headers.
3392 * cli-out.h: Sort headers.
3393 * cli-out.c: Sort headers.
3394 * charset.c: Sort headers.
3395 * c-varobj.c: Sort headers.
3396 * c-valprint.c: Sort headers.
3397 * c-typeprint.c: Sort headers.
3398 * c-lang.c: Sort headers.
3399 * buildsym.c: Sort headers.
3400 * buildsym-legacy.c: Sort headers.
3401 * build-id.h: Sort headers.
3402 * build-id.c: Sort headers.
3403 * btrace.c: Sort headers.
3404 * bsd-uthread.c: Sort headers.
3405 * breakpoint.h: Sort headers.
3406 * breakpoint.c: Sort headers.
3407 * break-catch-throw.c: Sort headers.
3408 * break-catch-syscall.c: Sort headers.
3409 * break-catch-sig.c: Sort headers.
3410 * blockframe.c: Sort headers.
3411 * block.c: Sort headers.
3412 * bfin-tdep.c: Sort headers.
3413 * bfin-linux-tdep.c: Sort headers.
3414 * bfd-target.c: Sort headers.
3415 * bcache.c: Sort headers.
3416 * ax-general.c: Sort headers.
3417 * ax-gdb.h: Sort headers.
3418 * ax-gdb.c: Sort headers.
3419 * avr-tdep.c: Sort headers.
3420 * auxv.c: Sort headers.
3421 * auto-load.c: Sort headers.
3422 * arm-wince-tdep.c: Sort headers.
3423 * arm-tdep.c: Sort headers.
3424 * arm-symbian-tdep.c: Sort headers.
3425 * arm-pikeos-tdep.c: Sort headers.
3426 * arm-obsd-tdep.c: Sort headers.
3427 * arm-nbsd-tdep.c: Sort headers.
3428 * arm-nbsd-nat.c: Sort headers.
3429 * arm-linux-tdep.c: Sort headers.
3430 * arm-linux-nat.c: Sort headers.
3431 * arm-fbsd-tdep.c: Sort headers.
3432 * arm-fbsd-nat.c: Sort headers.
3433 * arm-bsd-tdep.c: Sort headers.
3434 * arch-utils.c: Sort headers.
3435 * arc-tdep.c: Sort headers.
3436 * arc-newlib-tdep.c: Sort headers.
3437 * annotate.h: Sort headers.
3438 * annotate.c: Sort headers.
3439 * amd64-windows-tdep.c: Sort headers.
3440 * amd64-windows-nat.c: Sort headers.
3441 * amd64-tdep.c: Sort headers.
3442 * amd64-sol2-tdep.c: Sort headers.
3443 * amd64-obsd-tdep.c: Sort headers.
3444 * amd64-obsd-nat.c: Sort headers.
3445 * amd64-nbsd-tdep.c: Sort headers.
3446 * amd64-nbsd-nat.c: Sort headers.
3447 * amd64-nat.c: Sort headers.
3448 * amd64-linux-tdep.c: Sort headers.
3449 * amd64-linux-nat.c: Sort headers.
3450 * amd64-fbsd-tdep.c: Sort headers.
3451 * amd64-fbsd-nat.c: Sort headers.
3452 * amd64-dicos-tdep.c: Sort headers.
3453 * amd64-darwin-tdep.c: Sort headers.
3454 * amd64-bsd-nat.c: Sort headers.
3455 * alpha-tdep.c: Sort headers.
3456 * alpha-obsd-tdep.c: Sort headers.
3457 * alpha-nbsd-tdep.c: Sort headers.
3458 * alpha-mdebug-tdep.c: Sort headers.
3459 * alpha-linux-tdep.c: Sort headers.
3460 * alpha-linux-nat.c: Sort headers.
3461 * alpha-bsd-tdep.c: Sort headers.
3462 * alpha-bsd-nat.c: Sort headers.
3463 * aix-thread.c: Sort headers.
3464 * agent.c: Sort headers.
3465 * addrmap.c: Sort headers.
3466 * ada-varobj.c: Sort headers.
3467 * ada-valprint.c: Sort headers.
3468 * ada-typeprint.c: Sort headers.
3469 * ada-tasks.c: Sort headers.
3470 * ada-lang.c: Sort headers.
3471 * aarch64-tdep.c: Sort headers.
3472 * aarch64-ravenscar-thread.c: Sort headers.
3473 * aarch64-newlib-tdep.c: Sort headers.
3474 * aarch64-linux-tdep.c: Sort headers.
3475 * aarch64-linux-nat.c: Sort headers.
3476 * aarch64-fbsd-tdep.c: Sort headers.
3477 * aarch64-fbsd-nat.c: Sort headers.
3478 * aarch32-linux-nat.c: Sort headers.
3479
699bd4cf
TT
34802019-04-04 Tom Tromey <tom@tromey.com>
3481
3482 * varobj.c (varobj_create): Update.
3483 * rust-exp.y (struct rust_parser) <update_innermost_block,
3484 lookup_symbol>: New methods.
3485 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
3486 Rename.
3487 (rust_parser::rust_lookup_type)
3488 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3489 * printcmd.c (display_command, do_one_display): Update.
3490 * parser-defs.h (struct parser_state) <parser_state>: Add
3491 "tracker" parameter.
3492 (block_tracker): New member.
3493 (class innermost_block_tracker) <innermost_block_tracker>: Add
3494 "types" parameter.
3495 <reset>: Remove method.
3496 (innermost_block): Don't declare.
3497 (null_post_parser): Update.
3498 * parse.c (innermost_block): Remove global.
3499 (write_dollar_variable): Update.
3500 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
3501 Remove "tracker_types" parameter.
3502 (parse_expression): Add "tracker" parameter.
3503 (parse_expression_for_completion): Update.
3504 (null_post_parser): Add "tracker" parameter.
3505 * p-exp.y: Update rules.
3506 * m2-exp.y: Update rules.
3507 * language.h (struct language_defn) <la_post_parser>: Add
3508 "tracker" parameter.
3509 * go-exp.y: Update rules.
3510 * f-exp.y: Update rules.
3511 * expression.h (parse_expression, parse_exp_1): Add "tracker"
3512 parameter.
3513 * d-exp.y: Update rules.
3514 * c-exp.y: Update rules.
3515 * breakpoint.c (set_breakpoint_condition): Create an
3516 innermost_block_tracker.
3517 (watch_command_1): Likewise.
3518 * ada-lang.c (resolve): Add "tracker" parameter.
3519 (resolve_subexp): Likewise.
3520 * ada-exp.y (write_var_from_sym): Update.
3521
dac43e32
TT
35222019-04-04 Tom Tromey <tom@tromey.com>
3523
3524 * type-stack.h: New file.
3525 * type-stack.c: New file.
3526 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
3527 type-stack.h.
3528 (insert_into_type_stack, insert_type, push_type, push_type_int)
3529 (insert_type_address_space, pop_type, pop_type_int)
3530 (pop_typelist, pop_type_stack, append_type_stack)
3531 (push_type_stack, get_type_stack, push_typelist)
3532 (follow_type_instance_flags, follow_types): Don't declare.
3533 * parse.c (type_stack): Remove global.
3534 (parse_exp_in_context): Update.
3535 (insert_into_type_stack, insert_type, push_type, push_type_int)
3536 (insert_type_address_space, pop_type, pop_type_int)
3537 (pop_typelist, pop_type_stack, append_type_stack)
3538 (push_type_stack, get_type_stack, push_typelist)
3539 (follow_type_instance_flags, follow_types): Remove (moved to
3540 type-stack.c).
3541 * f-exp.y (type_stack): New global.
3542 Update rules.
3543 (push_kind_type, f_parse): Update.
3544 * d-exp.y (type_stack): New global.
3545 Update rules.
3546 (d_parse): Update.
3547 * c-exp.y (struct c_parse_state) <type_stack>: New member.
3548 Update rules.
3549 * Makefile.in (COMMON_SFILES): Add type-stack.c.
3550 (HFILES_NO_SRCDIR): Add type-stack.h.
3551
2a612529
TT
35522019-04-04 Tom Tromey <tom@tromey.com>
3553
3554 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
3555 (rust_parser::convert_ast_to_expression, rust_parse)
3556 (rust_lex_test_completion, rust_lex_tests): Update.
3557 * parser-defs.h (struct expr_completion_state): New.
3558 (struct parser_state) <parser_state>: Add completion parameter.
3559 <mark_struct_expression, mark_completion_tag>: New methods.
3560 <parse_completion, m_completion_state>: New members.
3561 (prefixify_expression, null_post_parser): Update.
3562 (mark_struct_expression, mark_completion_tag): Don't declare.
3563 * parse.c (parse_completion, expout_last_struct)
3564 (expout_tag_completion_type, expout_completion_name): Remove
3565 globals.
3566 (parser_state::mark_struct_expression)
3567 (parser_state::mark_completion_tag): Now methods.
3568 (prefixify_expression): Add last_struct parameter.
3569 (prefixify_subexp): Likewise.
3570 (parse_exp_1): Update.
3571 (parse_exp_in_context): Add cstate parameter. Update.
3572 (parse_expression_for_completion): Create an
3573 expr_completion_state.
3574 (null_post_parser): Add "completion" parameter.
3575 * p-exp.y: Update rules.
3576 (yylex): Update.
3577 * language.h (struct language_defn) <la_post_parser>: Add
3578 "completing" parameter.
3579 * go-exp.y: Update rules.
3580 (lex_one_token): Update.
3581 * expression.h (parse_completion): Don't declare.
3582 * d-exp.y: Update rules.
3583 (lex_one_token): Update rules.
3584 * c-exp.y: Update rules.
3585 (lex_one_token): Update.
3586 * ada-lang.c (resolve): Add "parse_completion" parameter.
3587 (resolve_subexp): Likewise.
3588 (ada_resolve_function): Likewise.
3589
43476f0b
TT
35902019-04-04 Tom Tromey <tom@tromey.com>
3591
3592 * parser-defs.h (struct parser_state) <start_arglist,
3593 end_arglist>: New methods.
3594 <arglist_len, m_funcall_chain>: New members.
3595 (arglist_len, start_arglist, end_arglist): Don't declare.
3596 * parse.c (arglist_len, funcall_chain): Remove global.
3597 (start_arglist, end_arglist): Remove functions.
3598 (parse_exp_in_context): Update.
3599 * p-exp.y: Update rules.
3600 * m2-exp.y: Update rules.
3601 * go-exp.y: Update rules.
3602 * f-exp.y: Update rules.
3603 * d-exp.y: Update rules.
3604 * c-exp.y: Update rules.
3605
5776fca3
TT
36062019-04-04 Tom Tromey <tom@tromey.com>
3607
3608 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
3609 lex_operator, push_back>: New methods.
3610 Update all rules.
3611 (rust_parser::lex_hex, lex_escape): Rename and update.
3612 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
3613 (rust_parser::lex_operator): Rename and update.
3614 (rust_parser::lex_number, rustyylex, rustyyerror)
3615 (rust_lex_test_init, rust_lex_test_sequence)
3616 (rust_lex_test_push_back, rust_lex_tests): Update.
3617 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
3618 parameter.
3619 <lexptr, prev_lexptr>: New members.
3620 (lexptr, prev_lexptr): Don't declare.
3621 * parse.c (lexptr, prev_lexptr): Remove globals.
3622 (parse_exp_in_context): Update.
3623 * p-exp.y (yylex, yyerror): Update.
3624 * m2-exp.y (parse_number, yylex, yyerror): Update.
3625 * go-exp.y (lex_one_token, yyerror): Update.
3626 * f-exp.y (match_string_literal, yylex, yyerror): Update.
3627 * d-exp.y (lex_one_token, yyerror): Update.
3628 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
3629 (lex_one_token, yyerror): Update.
3630 * ada-lex.l (YY_INPUT): Update.
3631 (rewind_to_char): Update.
3632 * ada-exp.y (yyerror): Update.
3633
8621b685
TT
36342019-04-04 Tom Tromey <tom@tromey.com>
3635
3636 * rust-exp.y (rustyylex, rust_lex_tests): Update.
3637 * parser-defs.h (struct parser_state) <parser_state>: Add new
3638 parameter.
3639 <comma_terminates>: New member.
3640 (comma_terminates): Don't declare global.
3641 * parse.c (comma_terminates): Remove global.
3642 (parse_exp_in_context): Update.
3643 * p-exp.y (yylex): Update.
3644 * m2-exp.y (yylex): Update.
3645 * go-exp.y (lex_one_token): Update.
3646 * f-exp.y (yylex): Update.
3647 * d-exp.y (lex_one_token): Update.
3648 * c-exp.y (lex_one_token): Update.
3649 * ada-lex.l: Update.
3650
28aaf3fd
TT
36512019-04-04 Tom Tromey <tom@tromey.com>
3652
3653 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
3654 (rustyylex, rust_lex_test_init, rust_lex_test_one)
3655 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
3656 * parser-defs.h (paren_depth): Don't declare.
3657 * parse.c (paren_depth): Remove global.
3658 (parse_exp_in_context): Update.
3659 * p-exp.y (paren_depth): New global.
3660 (pascal_parse): Initialize it.
3661 * m2-exp.y (paren_depth): New global.
3662 (m2_parse): Initialize it.
3663 * go-exp.y (paren_depth): New global.
3664 (go_parse): Initialize it.
3665 * f-exp.y (paren_depth): New global.
3666 (f_parse): Initialize it.
3667 * d-exp.y (paren_depth): New global.
3668 (d_parse): Initialize it.
3669 * c-exp.y (paren_depth): New global.
3670 (c_parse): Initialize it.
3671 * ada-lex.l (paren_depth): New global.
3672 (lexer_init): Initialize it.
3673
1e58a4a4
TT
36742019-04-04 Tom Tromey <tom@tromey.com>
3675
3676 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
3677 (rust_parser::convert_ast_to_type)
3678 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
3679 * parser-defs.h (struct parser_state) <parser_state>: Add
3680 parameters. Initialize new members.
3681 <expression_context_block, expression_context_pc>: New members.
3682 * parse.c (expression_context_block, expression_context_pc):
3683 Remove globals.
3684 (parse_exp_in_context): Update.
3685 * p-exp.y: Update all rules.
3686 (yylex): Update.
3687 * m2-exp.y: Update all rules.
3688 (yylex): Update.
3689 * go-exp.y (yylex): Update.
3690 * f-exp.y (yylex): Update.
3691 * d-exp.y: Update all rules.
3692 (yylex): Update.
3693 * c-exp.y: Update all rules.
3694 (lex_one_token, classify_name, yylex, c_parse): Update.
3695 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
3696
37eedb39
TT
36972019-04-04 Tom Tromey <tom@tromey.com>
3698
3699 * gdbarch.h, gdbarch.c: Rebuild.
3700 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
3701 * stap-probe.h:
3702 (struct stap_parse_info): Replace "parser_state" with
3703 "expr_builder".
3704 * parser-defs.h (struct expr_builder): Rename from "parser_state".
3705 (parser_state): New class.
3706 * parse.c (expr_builder): Rename.
3707 (expr_builder::release): Rename.
3708 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3709 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3710 (write_exp_elt_longcst, write_exp_elt_floatcst)
3711 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3712 (write_exp_string_vector, write_exp_bitstring)
3713 (write_exp_msymbol, mark_struct_expression)
3714 (write_dollar_variable)
3715 (insert_type_address_space, increase_expout_size): Replace
3716 "parser_state" with "expr_builder".
3717 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
3718 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
3719 "parser_state" with "expr_builder".
3720
73923d7e
TT
37212019-04-04 Tom Tromey <tom@tromey.com>
3722
3723 * rust-exp.y: Replace "parse_language" with method call.
3724 * p-exp.y:
3725 (yylex): Replace "parse_language" with method call.
3726 * m2-exp.y:
3727 (yylex): Replace "parse_language" with method call.
3728 * go-exp.y (classify_name): Replace "parse_language" with method
3729 call.
3730 * f-exp.y (yylex): Replace "parse_language" with method call.
3731 * d-exp.y (lex_one_token): Replace "parse_language" with method
3732 call.
3733 * c-exp.y:
3734 (lex_one_token, classify_name, yylex): Replace "parse_language"
3735 with method call.
3736 * ada-exp.y (find_primitive_type, type_char)
3737 (type_system_address): Replace "parse_language" with method call.
3738
fa9f5be6
TT
37392019-04-04 Tom Tromey <tom@tromey.com>
3740
3741 * rust-exp.y: Replace "parse_gdbarch" with method call.
3742 * parse.c (write_dollar_variable, insert_type_address_space):
3743 Replace "parse_gdbarch" with method call.
3744 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
3745 call.
3746 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
3747 call.
3748 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
3749 "parse_gdbarch" with method call.
3750 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
3751 with method call.
3752 * f-exp.y (parse_type, parse_f_type, yylex): Replace
3753 "parse_gdbarch" with method call.
3754 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
3755 "parse_gdbarch" with method call.
3756 * c-exp.y (parse_type, parse_number, classify_name): Replace
3757 "parse_gdbarch" with method call.
3758 * ada-lex.l: Replace "parse_gdbarch" with method call.
3759 * ada-exp.y (parse_type, find_primitive_type, type_char)
3760 (type_system_address): Replace "parse_gdbarch" with method call.
3761
1201a264
TT
37622019-04-04 Tom Tromey <tom@tromey.com>
3763
3764 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3765 * stap-probe.c (stap_parse_argument): Update.
3766 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
3767 initial_size parameter.
3768 * rust-exp.y (rust_lex_tests): Update.
3769 * parse.c (parser_state): Update.
3770 (parse_exp_in_context): Update.
3771 * parser-defs.h (struct parser_state) <parser_state>: Remove
3772 "initial_size" parameter.
3773
e3980ce2
TT
37742019-04-04 Tom Tromey <tom@tromey.com>
3775
3776 * parser-defs.h (increase_expout_size): Don't declare.
3777 * parse.c (increase_expout_size): Now static.
3778
e9f8e3f1
TS
37792019-04-04 Thomas Schwinge <thomas@codesourcery.com>
3780
3781 * gnu-nat.c (gnu_nat_target::wait): Fix
3782 target_waitstatus_to_string call.
3783
d7df6549
AB
37842019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3785
3786 * eval.c (evaluate_subexp_standard): Handle internal functions
3787 during Fortran function call handling.
3788
8bdc1658
AB
37892019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
3790
3791 * NEWS: Mention new internal functions.
3792 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
3793 (read_base_type): Use dwarf2_init_complex_target_type.
3794 * value.c (creal_internal_fn): New function.
3795 (cimag_internal_fn): New function.
3796 (_initialize_values): Register new internal functions.
3797
c29705b7
PW
37982019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3799
3800 * infrun.c (stop_all_threads): If debug_infrun, always
3801 trace the wait status after wait_one, using
3802 target_waitstatus_to_string and target_pid_to_str.
3803 (handle_inferior_event): Replace various trace of
3804 wait status kind by a single trace.
3805 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
3806 wait status kind image by target_waitstatus_to_string.
3807 * target/waitstatus.c (target_waitstatus_to_string): Fix
3808 obsolete comment.
3809
05caa1d2
TT
38102019-04-01 Tom Tromey <tromey@adacore.com>
3811
3812 PR symtab/23331:
3813 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
3814
9d1447e0
SDJ
38152019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
3816 Pedro Alves <palves@redhat.com>
3817
3818 * top.c (quit_force): Call 'finalize_values'.
3819 * value.c (finalize_values): New function.
3820 * value.h (finalize_values): Declare.
3821
7734102d
EZ
38222019-03-30 Eli Zaretskii <eliz@gnu.org>
3823
3824 * NEWS: Announce $_gdb_major and $_gdb_minor.
3825
3826 * top.c (init_gdb_version_vars): New function.
3827 (gdb_init): Call init_gdb_version_vars.
3828
188e1fa9
TT
38292019-03-29 Tom Tromey <tromey@adacore.com>
3830
3831 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
3832 help text. Remove dead code.
3833
2880242d
KS
38342019-03-29 Keith Seitz <keiths@redhat.com>
3835
3836 From Siddhesh Poyarekar:
3837 * f-lang.h (f77_get_upperbound): Return LONGEST.
3838 (f77_get_lowerbound): Likewise.
3839 * f-typeprint.c (f_type_print_varspec_suffix): Expand
3840 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
3841 print them.
3842 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
3843 plongest to format print it.
3844 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
3845 (f77_get_upperbound): Likewise.
3846 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
3847 LOWER_BOUND to LONGEST.
3848 (f77_create_arrayprint_offset_tbl): Likewise.
3849
cc1defb1
KS
38502019-03-29 Keith Seitz <keiths@redhat.com>
3851
3852 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3853 %s/pulongest for TYPE_LENGTH instead of %d in format
3854 strings.
3855 * ada-typerint.c (ada_print_type): Likewise.
3856 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
3857 * compile/compile-c-support.c (generate_register_struct): Likewise.
3858 * gdbtypes.c (recursive_dump_type): Likewise.
3859 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
3860 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
3861 instead of %d in format strings.
3862 * riscv-tdep.c (riscv_type_alignment): Cast second argument
3863 to std::min to ULONGEST.
3864 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
3865 instead of %d in format strings.
3866 * tracepoint.c (info_scope_command): Likewise.
3867 * typeprint.c (print_offset_data::update)
3868 (print_offset_data::finish): Likewise.
3869 * xtensa-tdep.c (xtensa_store_return_value)
3870 (xtensa_push_dummy_call): Likewise.
3871
e432ccf1
JT
38722019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
3873
3874 * windows-nat.c (display_selector): Fixed format specifications
3875 for 64-bit Cygwin.
3876
65d2b333
PW
38772019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3878
3879 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
3880
f489207e
SL
38812019-03-28 Sandra Loosemore <sandra@codesourcery.com>
3882
3883 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
3884 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
3885 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
3886 (nios2_linux_init_abi): Install it.
3887
bffa1015
AH
38882019-03-28 Alan Hayward <alan.hayward@arm.com>
3889
3890 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
3891
fc96163a
AH
38922019-03-28 Alan Hayward <alan.hayward@arm.com>
3893
3894 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
3895
20dc7e9b
PW
38962019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3897 Tom Tromey <tromey@adacore.com>
3898
3899 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
3900
7f5331a8
JB
39012019-03-26 Joel Brobecker <brobecker@adacore.com>
3902
3903 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
3904 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
3905 method to compute the bounds of range types. Also print "[evaluated]"
3906 if the bounds' values come from a dynamic evaluation.
3907
18c77628
AB
39082019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
3909
3910 * cp-valprint.c (cp_print_value_fields): Don't print trailing
3911 whitespace when pretty printing is on.
3912
53c973f2
AH
39132019-03-26 Alan Hayward <alan.hayward@arm.com>
3914
e79be6e5 3915 * ppc-linux-nat.c: Add include.
53c973f2 3916
d851aa71
AH
39172019-03-26 Alan Hayward <alan.hayward@arm.com>
3918
e79be6e5 3919 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 3920
2fe7bab7
AH
39212019-03-26 Alan Hayward <alan.hayward@arm.com>
3922
e79be6e5 3923 * arm-linux-nat.c: Add include.
2fe7bab7 3924
068ef30e
SM
39252019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
3926
3927 * source-cache.c (source_cache::get_source_lines): Re-read
3928 fullname after calling open_source_file.
3929
81a24d04
JB
39302019-03-25 John Baldwin <jhb@FreeBSD.org>
3931
3932 * NEWS: Mention TLS support for FreeBSD.
3933
79e7ae11
TT
39342019-03-25 Tom Tromey <tromey@adacore.com>
3935
3936 * minsyms.c (BUNCH_SIZE): Update comment.
3937 (~minimal_symbol_reader): Remove old comment.
3938 (compact_minimal_symbols): Update comment.
3939 (minimal_symbol_reader::install): Remove old comment. Update
3940 other comments.
3941
d45963c2
AH
39422019-03-25 Alan Hayward <alan.hayward@arm.com>
3943
3944 * s390-linux-nat.c: Add include.
3945
0f83012e
AH
39462019-03-25 Alan Hayward <alan.hayward@arm.com>
3947
3948 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3949 Call linux_get_hwcap.
3950 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3951 Likewise.
3952 (aarch64_linux_get_hwcap): Remove function.
3953 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
3954 declaration.
3955 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
3956 linux_get_hwcap.
3957 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3958 * linux-tdep.c (linux_get_hwcap): Add function.
3959 (linux_get_hwcap2): Likewise.
3960 * linux-tdep.h (linux_get_hwcap): Add declaration.
3961 (linux_get_hwcap2): Likewise.
3962 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
3963 (ppc_linux_get_hwcap2): Likewise.
3964 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
3965 linux_get_hwcap.
3966 (ppc_linux_nat_target::insert_watchpoint): Likewise.
3967 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
3968 (ppc_linux_nat_target::read_description): Likewise.
3969 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
3970 * s390-linux-nat.c: Likewise.
3971 * s390-linux-tdep.c (s390_core_read_description): Likewise.
3972
6640a367
TT
39732019-03-24 Tom Tromey <tom@tromey.com>
3974
3975 * ada-lang.c (standard_lookup): Simplify initialization.
3976 (ada_lookup_symbol_nonlocal): Simplify return.
3977 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
3978 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
3979 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
3980 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
3981 initialization.
3982 * solib.c (solib_global_lookup): Simplify.
3983 * symtab.c (null_block_symbol): Remove.
3984 (symbol_cache_lookup): Simplify returns.
3985 (lookup_language_this): Simplify returns.
3986 (lookup_symbol_aux): Simplify return.
3987 (lookup_local_symbol): Simplify returns.
3988 (lookup_global_symbol_from_objfile): Simplify return.
3989 (lookup_symbol_in_objfile_symtabs)
3990 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
3991 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
3992 (lookup_static_symbol, lookup_global_symbol): Simplify return.
3993 * cp-namespace.c (cp_lookup_bare_symbol)
3994 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
3995 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
3996 (cp_lookup_nested_symbol): Don't use null_block_symbol.
3997 (cp_lookup_symbol_via_imports): Simplify initialization.
3998 (find_symbol_in_baseclass): Likewise.
3999 * symtab.h (null_block_symbol): Remove.
4000 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
4001 (d_lookup_nested_symbol, d_lookup_symbol_imports)
4002 (d_lookup_symbol_module): Likewise.
4003 (find_symbol_in_baseclass): Simplify initialization.
4004
a930ebcd
TT
40052019-03-24 Tom Tromey <tom@tromey.com>
4006
4007 * expression.h: Don't include symtab.h.
4008 (struct block): Forward declare.
4009
582942f4
TT
40102019-03-24 Tom Tromey <tom@tromey.com>
4011
4012 * c-exp.y (typebase): Remove casts.
4013 * gdbtypes.c (lookup_unsigned_typename, )
4014 (lookup_signed_typename): Remove cast.
4015 * eval.c (parse_to_comma_and_eval): Remove cast.
4016 * parse.c (write_dollar_variable): Remove cast.
4017 * block.h (struct block) <superblock>: Now const.
4018 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
4019 * psymtab.c (psym_map_matching_symbols): Make "block" const.
4020 (map_block): Make "block" const.
4021 * symfile.h (struct quick_symbol_functions)
4022 <map_matching_symbols>: Constify block argument to "callback".
4023 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
4024 const.
4025 (find_pc_sect_compunit_symtab): Make "b" const.
4026 (find_symbol_at_address): Likewise.
4027 (search_symbols): Likewise.
4028 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
4029 (dw2_debug_names_lookup_symbol): Likewise.
4030 (dw2_map_matching_symbols): Update.
4031 * p-valprint.c (pascal_val_print): Remove "block".
4032 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
4033 (aux_add_nonlocal_symbols): Make "block" const.
4034 (resolve_subexp): Remove cast.
4035 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
4036 const.
4037 (iterate_over_file_blocks): Likewise.
4038 * f-exp.y (%union) <bval>: Remove.
4039 * coffread.c (patch_opaque_types): Make "b" const.
4040 * spu-tdep.c (spu_catch_start): Make "block" const.
4041 * c-valprint.c (print_unpacked_pointer): Remove "block".
4042 * symmisc.c (dump_symtab_1): Make "b" const.
4043 (block_depth): Make "block" const.
4044 * d-exp.y (%union) <bval>: Remove.
4045 * cp-support.h (cp_lookup_rtti_type): Update.
4046 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
4047 * psymtab.c (psym_lookup_symbol): Make "block" const.
4048 (maintenance_check_psymtabs): Make "b" const.
4049 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
4050 (enumerate_locals, enumerate_args): Update.
4051 * python/py-symtab.c (stpy_global_block): Make "block" const.
4052 (stpy_static_block): Likewise.
4053 * inline-frame.c (block_starting_point_at): Make "new_block"
4054 const.
4055 * block.c (find_block_in_blockvector): Make return type const.
4056 (blockvector_for_pc_sect): Make "b" const.
4057 (find_block_in_blockvector): Make "b" const.
4058
7ad417dd
TT
40592019-03-23 Tom Tromey <tom@tromey.com>
4060
4061 * varobj.c (varobj_create): Update.
4062 * symfile.c (clear_symtab_users): Don't reset innermost_block.
4063 * printcmd.c (display_command, do_one_display): Don't reset
4064 innermost_block.
4065 * parser-defs.h (enum innermost_block_tracker_type): Move to
4066 expression.h.
4067 (innermost_block): Update comment.
4068 * parse.c (parse_exp_1): Add tracker_types parameter.
4069 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
4070 tracker_types parameter. Reset innermost_block.
4071 (parse_exp_in_context): Remove.
4072 (parse_expression_for_completion): Update.
4073 * objfiles.c (~objfile): Don't reset expression_context_block or
4074 innermost_block.
4075 * expression.h (enum innermost_block_tracker_type): Move from
4076 parser-defs.h.
4077 (parse_exp_1): Add tracker_types parameter.
4078 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
4079 reset innermost_block.
4080
b366c208
TT
40812019-03-23 Tom Tromey <tom@tromey.com>
4082
4083 * objfiles.h: Include bcache.h.
4084
9bb9b2f9
TT
40852019-03-23 Tom Tromey <tom@tromey.com>
4086
4087 * linespec.c (get_current_search_block): Use
4088 scoped_restore_current_language.
4089 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
4090
59c28372
AH
40912019-03-22 Alan Hayward <alan.hayward@arm.com>
4092 Jiong Wang <jiong.wang@arm.com>
4093
4094 * aarch64-linux-tdep.c
4095 (aarch64_linux_iterate_over_regset_sections): Check for pauth
4096 section.
4097 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
4098
17e116a7
AH
40992019-03-22 Alan Hayward <alan.hayward@arm.com>
4100 Jiong Wang <jiong.wang@arm.com>
4101
4102 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
4103 instructions.
4104 (aarch64_analyze_prologue_test): Add PACIASP test.
4105 (aarch64_prologue_prev_register): Unmask PC value.
4106
11e1b75f
AH
41072019-03-22 Alan Hayward <alan.hayward@arm.com>
4108 Jiong Wang <jiong.wang@arm.com>
4109
4110 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
4111 (aarch64_dwarf2_prev_register): Unmask PC value.
4112 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
4113 (aarch64_execute_dwarf_cfa_vendor_op): Check for
4114 DW_CFA_AARCH64_negate_ra_state.
4115 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
4116
34dcc7cf
AH
41172019-03-22 Alan Hayward <alan.hayward@arm.com>
4118 Jiong Wang <jiong.wang@arm.com>
4119
4120 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
4121 registers.
4122 (aarch64_pseudo_register_name): Likewise.
4123 (aarch64_pseudo_register_type): Likewise.
4124 (aarch64_pseudo_register_reggroup_p): Likewise.
4125 (aarch64_gdbarch_init): Add pauth registers.
4126 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
4127 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
4128 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
4129 (struct gdbarch_tdep): Add regnum for ra_state.
4130
1ef53e6b
AH
41312019-03-22 Alan Hayward <alan.hayward@arm.com>
4132 Jiong Wang <jiong.wang@arm.com>
4133
4134 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
4135
76bed0fd
AH
41362019-03-22 Alan Hayward <alan.hayward@arm.com>
4137 Jiong Wang <jiong.wang@arm.com>
4138
4139 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
4140 function.
4141 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
4142 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
4143 (aarch64_gdbarch_init): Add puth registers.
4144 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
4145 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
4146 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
4147
ee4fbcfa
AH
41482019-03-22 Alan Hayward <alan.hayward@arm.com>
4149 Jiong Wang <jiong.wang@arm.com>
4150
4151 * aarch64-linux-nat.c
4152 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
4153 * aarch64-linux-tdep.c
4154 (aarch64_linux_core_read_description): Likewise.
4155 (aarch64_linux_get_hwcap): New function.
4156 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
4157 (aarch64_linux_get_hwcap): New declaration.
4158
6dc0ebde
AH
41592019-03-22 Alan Hayward <alan.hayward@arm.com>
4160 Jiong Wang <jiong.wang@arm.com>
4161
4162 * aarch64-linux-nat.c
4163 (aarch64_linux_nat_target::read_description): Add pauth param.
4164 * aarch64-linux-tdep.c
4165 (aarch64_linux_core_read_description): Likewise.
4166 * aarch64-tdep.c (struct target_desc): Add in pauth.
4167 (aarch64_read_description): Add pauth param.
4168 (aarch64_gdbarch_init): Likewise.
4169 * aarch64-tdep.h (aarch64_read_description): Likewise.
4170 * arch/aarch64.c (aarch64_create_target_description): Likewise.
4171 * arch/aarch64.h (aarch64_create_target_description): Likewise.
4172 * features/Makefile: Add new files.
4173 * features/aarch64-pauth.c: New file.
4174 * features/aarch64-pauth.xml: New file.
4175
595915c1
TT
41762019-03-20 Tom Tromey <tromey@adacore.com>
4177
4178 * infrun.c (handle_inferior_event): Rename from
4179 handle_inferior_event_1. Create a scoped_value_mark.
4180 (handle_inferior_event): Remove.
4181
4c7d57e7
TT
41822019-03-19 Tom Tromey <tromey@adacore.com>
4183
4184 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
4185 * infrun.h (print_stop_event): Add "displays" parameter.
4186 * infrun.c (print_stop_event): Add "displays" parameter.
4187
cb246234
PA
41882019-03-19 Pedro Alves <palves@redhat.com>
4189
4190 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
4191 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
4192 to -1. Fix TABs vs spaces.
4193 (tui_ui_out::tui_ui_out): Don't initialize fields here.
4194 * tui/tui-out.h (tui_ui_out) Add intro comments.
4195 <m_line, m_start_of_line>: In-class initialize, and add describing
4196 comment.
4197
3a0e45b2
AH
41982019-03-18 Alan Hayward <alan.hayward@arm.com>
4199
4200 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
4201 variable names.
4202 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
4203
5371b850
PA
42042019-03-18 Pedro Alves <palves@redhat.com>
4205 Eli Zaretskii <eliz@gnu.org>
4206
4207 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
4208 m_line and m_start_of_line.
4209
b17c4cd0
EZ
42102019-03-18 Eli Zaretskii <eliz@gnu.org>
4211
4212 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
4213 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
4214 it returns a newline. This fixes a regression in TU mode, whereby
4215 the next line is output on the same screen line as the user input.
4216
4bd56d18
TT
42172019-03-18 Tom Tromey <tromey@adacore.com>
4218
4219 * minsyms.c (minimal_symbol_reader::install): Remove call to
4220 obstack_blank.
4221
55c10aca
PA
42222019-03-18 Pedro Alves <palves@redhat.com>
4223
4224 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
4225 New globals.
4226 (apply_style): New, factored out from ...
4227 (apply_ansi_escape): ... this. Handle reverse video mode.
4228 (tui_set_reverse_mode): New function.
4229 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
4230 * tui/tui-winsource.c (tui_show_source_line): Use
4231 tui_set_reverse_mode instead of setting A_STANDOUT.
4232 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
4233 New setter methods.
4234
647bb750
HD
42352019-03-18 Hannes Domani <ssbssa@yahoo.de>
4236
4237 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
4238 Handle tabs.
4239
bff8c71f
TT
42402019-03-18 Tom Tromey <tromey@adacore.com>
4241
4242 * ada-lang.c (empty_array): Add "high" parameter.
4243 (ada_evaluate_subexp): Update.
4244
58785d98
ST
42452019-03-17 Sergei Trofimovich <siarheit@google.com>
4246
4247 * unittests/string_view-selftests.c: Define
4248 _initialize_string_view_selftests unconditionally.
4249
d4cbef22
ВМ
42502019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4251
4252 PR gdb/24350
4253 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
4254
fce4c071
ВМ
42552019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
4256
4257 PR gdb/24351
4258 * windows-nat.c (display_selector): Fix format specifiers.
4259
f7f0a123
EZ
42602019-03-17 Eli Zaretskii <eliz@gnu.org>
4261
4262 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
4263 tui_refill_source_window instead of tui_refresh_win, to update the
4264 current execution line. This fixes redisplay of the current line
4265 when stepping through the code with "next" or "step".
4266
ab42892f
EZ
42672019-03-16 Eli Zaretskii <eliz@gnu.org>
4268
4269 * source-cache.c (source_cache::get_source_lines): Call
4270 find_source_lines to initialize s->nlines. This fixes vertical
4271 scrolling of TUI source window when the DOWN arrow is pressed.
4272
8d8c087f
PW
42732019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4274
4275 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
4276 linux-thread-db.c (_initialize_thread_db): Likewise.
4277
798e1c30
EZ
42782019-03-16 Eli Zaretskii <eliz@gnu.org>
4279
4280 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
4281 wclrtoeol in tui_show_source_line". This reverts changes made in
4282 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
4283
eefba3da
TT
42842019-03-15 Tom Tromey <tom@tromey.com>
4285
4286 * symtab.h (struct minimal_symbol): Derive from
4287 general_symbol_info.
4288 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
4289 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4290 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4291 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4292 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
4293 (MSYMBOL_SEARCH_NAME): Update.
4294 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
4295 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
4296 * minsyms.c (minimal_symbol_reader::record_full): Update.
4297
0de2420c
TT
42982019-03-15 Tom Tromey <tom@tromey.com>
4299
4300 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
4301
042d75e4
TT
43022019-03-15 Tom Tromey <tom@tromey.com>
4303
4304 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
4305 unique_xmalloc_ptr.
4306 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
4307 Update.
4308 * minsyms.c (lookup_minimal_symbol_by_pc_section)
4309 (build_minimal_symbol_hash_tables)
4310 (minimal_symbol_reader::install): Update.
4311
db92718b
TT
43122019-03-15 Tom Tromey <tom@tromey.com>
4313
4314 * symtab.c (create_demangled_names_hash): Update.
4315 (symbol_set_names): Update.
4316 * objfiles.h (struct objfile_per_bfd_storage)
4317 <demangled_names_hash>: Now an htab_up.
4318 * objfiles.c (objfile_per_bfd_storage): Simplify.
4319
d6797f46
TT
43202019-03-15 Tom Tromey <tom@tromey.com>
4321
4322 * objfiles.h (struct objfile_per_bfd_storage): Declare
4323 destructor.
4324 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
4325 New.
4326 (get_objfile_bfd_data): Use new. Don't initialize
4327 language_of_main.
4328 (free_objfile_per_bfd_storage): Remove.
4329 (objfile_bfd_data_free, objfile::~objfile): Use delete.
4330
741d7538
TT
43312019-03-15 Tom Tromey <tom@tromey.com>
4332
4333 * symfile.c (reread_symbols): Update.
4334 * objfiles.c (objfile::objfile): Update.
4335 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
4336 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
4337 comment.
4338 (minimal_symbol_reader::install): Update.
4339 (terminate_minimal_symbol_table): Remove.
4340 * jit.c (jit_object_close_impl): Update.
4341
788c80d1
TT
43422019-03-15 Tom Tromey <tom@tromey.com>
4343
4344 * minsyms.c (minimal_symbol_reader::record_full): Remove some
4345 initializations.
4346
1b7a07cb
TT
43472019-03-15 Tom Tromey <tom@tromey.com>
4348
4349 * objfiles.h (struct objfile_per_bfd_storage)
4350 <demangled_hash_languages>: Now a bitset.
4351 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
4352 (lookup_minimal_symbol): Update.
4353
3db066bc
TT
43542019-03-15 Tom Tromey <tom@tromey.com>
4355
4356 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
4357 Don't return the symbol.
4358 * coffread.c (record_minimal_symbol): Use record_full.
4359
3fff2c37
EZ
43602019-03-14 Eli Zaretskii <eliz@gnu.org>
4361
4362 The MS-Windows port of ncurses fails to switch to a color pair if
4363 one or both of the colors are the implicit default colors. This
4364 change records the default colors when TUI is initialized, and
4365 then specifies them explicitly when a color pair uses the default
4366 colors. This allows color styling in TUI mode on MS-Windows.
4367
4368 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
4369 ncurses_norm_attr.
4370 (tui_initialize_io) [__MINGW32__]: Record the default terminal
4371 colors in ncurses_norm_attr.
4372 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
4373 "none", replace it with the default color recorded in
4374 ncurses_norm_attr.
4375
3b336828
TT
43762019-03-14 Tom Tromey <tromey@adacore.com>
4377
4378 * source-cache.h (class source_cache) <get_source_lines>: Return
4379 std::string.
4380 * source-cache.c (source_cache::extract_lines): Handle case where
4381 first_pos==npos. Return std::string.
4382 (source_cache::get_source_lines): Update.
4383
d085f989
TT
43842019-03-14 Tom Tromey <tromey@adacore.com>
4385
4386 * NEWS: Add item for "style sources" commands.
4387 * source-cache.c (source_cache::get_source_lines): Check
4388 source_styling.
4389 * cli/cli-style.c (source_styling): New global.
4390 (_initialize_cli_style): Add "style sources" commands.
4391 (show_style_sources): New function.
4392 * cli/cli-style.h (source_styling): Declare.
4393
6f11e682
TT
43942019-03-14 Pedro Alves <palves@redhat.com>
4395 Tom Tromey <tromey@adacore.com>
4396
4397 * tui/tui-winsource.h (tui_refill_source_window): Declare.
4398 * tui/tui-winsource.c (tui_refill_source_window): New function,
4399 from...
4400 (tui_horizontal_source_scroll): ... here. Move some logic.
4401 * cli/cli-style.c (set_style_enabled): Notify new observable.
4402 * tui/tui-hooks.c (tui_redisplay_source): New function.
4403 (tui_attach_detach_observers): Attach or detach
4404 tui_redisplay_source.
4405 * observable.h (source_styling_changed): New observable.
4406 * observable.c: Define source_styling_changed observable.
4407
a068643d
TT
44082019-03-13 Tom Tromey <tromey@adacore.com>
4409
4410 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
4411 (i386_gnu_nat_target::store_registers): Update.
4412 * target-debug.h (target_debug_print_std_string): New macro.
4413 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
4414 * windows-tdep.c (display_one_tib): Update.
4415 * tui/tui-stack.c (tui_make_status_line): Update.
4416 * top.c (print_inferior_quit_action): Update.
4417 * thread.c (thr_try_catch_cmd): Update.
4418 (add_thread_with_info): Update.
4419 (thread_target_id_str): Update.
4420 (thr_try_catch_cmd): Update.
4421 (thread_command): Update.
4422 (thread_find_command): Update.
4423 * record-btrace.c (record_btrace_target::info_record)
4424 (record_btrace_resume_thread, record_btrace_target::resume)
4425 (record_btrace_cancel_resume, record_btrace_step_thread)
4426 (record_btrace_target::wait, record_btrace_target::wait)
4427 (record_btrace_target::wait, record_btrace_target::stop): Update.
4428 * progspace.c (print_program_space): Update.
4429 * process-stratum-target.c
4430 (process_stratum_target::thread_address_space): Update.
4431 * linux-fork.c (linux_fork_mourn_inferior)
4432 (detach_checkpoint_command, info_checkpoints_command)
4433 (linux_fork_context): Update.
4434 (linux_fork_detach): Update.
4435 (class scoped_switch_fork_info): Update.
4436 (delete_checkpoint_command): Update.
4437 * infrun.c (follow_fork_inferior): Update.
4438 (follow_fork_inferior): Update.
4439 (proceed_after_vfork_done): Update.
4440 (handle_vfork_child_exec_or_exit): Update.
4441 (follow_exec): Update.
4442 (displaced_step_prepare_throw): Update.
4443 (displaced_step_restore): Update.
4444 (start_step_over): Update.
4445 (resume_1): Update.
4446 (clear_proceed_status_thread): Update.
4447 (proceed): Update.
4448 (print_target_wait_results): Update.
4449 (do_target_wait): Update.
4450 (context_switch): Update.
4451 (stop_all_threads): Update.
4452 (restart_threads): Update.
4453 (finish_step_over): Update.
4454 (handle_signal_stop): Update.
4455 (switch_back_to_stepped_thread): Update.
4456 (keep_going_pass_signal): Update.
4457 (print_exited_reason): Update.
4458 (normal_stop): Update.
4459 * inferior.c (inferior_pid_to_str): Change return type.
4460 (print_selected_inferior): Update.
4461 (add_inferior): Update.
4462 (detach_inferior): Update.
4463 * dummy-frame.c (fprint_dummy_frames): Update.
4464 * dcache.c (dcache_info_1): Update.
4465 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
4466 (btrace_fetch, btrace_clear): Update.
4467 * linux-tdep.c (linux_core_pid_to_str): Change return type.
4468 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
4469 type.
4470 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
4471 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
4472 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
4473 * gdbarch.c, gdbarch.h: Rebuild.
4474 * gdbarch.sh (core_pid_to_str): Change return type.
4475 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
4476 return type.
4477 (windows_nat_target::pid_to_str): Change return type.
4478 (windows_delete_thread): Update.
4479 (windows_nat_target::attach): Update.
4480 (windows_nat_target::files_info): Update.
4481 * target-delegates.c: Rebuild.
4482 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
4483 return type.
4484 (sol_thread_target::pid_to_str): Change return type.
4485 * remote.c (class remote_target) <pid_to_str>: Change return
4486 type.
4487 (remote_target::pid_to_str): Change return type.
4488 (extended_remote_target::attach, remote_target::remote_stop_ns)
4489 (remote_target::remote_notif_remove_queued_reply)
4490 (remote_target::push_stop_reply, remote_target::disable_btrace):
4491 Update.
4492 (extended_remote_target::attach): Update.
4493 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
4494 type.
4495 (gdbsim_target::pid_to_str): Change return type.
4496 * ravenscar-thread.c (struct ravenscar_thread_target)
4497 <pid_to_str>: Change return type.
4498 (ravenscar_thread_target::pid_to_str): Change return type.
4499 * procfs.c (class procfs_target) <pid_to_str>: Change return
4500 type.
4501 (procfs_target::pid_to_str): Change return type.
4502 (procfs_target::attach): Update.
4503 (procfs_target::detach): Update.
4504 (procfs_target::fetch_registers): Update.
4505 (procfs_target::store_registers): Update.
4506 (procfs_target::wait): Update.
4507 (procfs_target::files_info): Update.
4508 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
4509 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
4510 return type.
4511 (nto_procfs_target::pid_to_str): Change return type.
4512 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
4513 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
4514 return type.
4515 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
4516 (exit_lwp): Update.
4517 (attach_proc_task_lwp_callback, get_detach_signal)
4518 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
4519 (linux_nat_target::resume, wait_lwp, stop_callback)
4520 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
4521 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
4522 (linux_nat_wait_1, resume_stopped_resumed_lwps)
4523 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
4524 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
4525 type.
4526 (inf_ptrace_target::attach): Update.
4527 (inf_ptrace_target::files_info): Update.
4528 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
4529 type.
4530 (go32_nat_target::pid_to_str): Change return type.
4531 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
4532 (gnu_nat_target::wait): Update.
4533 (gnu_nat_target::wait): Update.
4534 (gnu_nat_target::resume): Update.
4535 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
4536 (fbsd_nat_target::wait): Update.
4537 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
4538 type.
4539 (darwin_nat_target::attach): Update.
4540 * corelow.c (class core_target) <pid_to_str>: Change return type.
4541 (core_target::pid_to_str): Change return type.
4542 * target.c (normal_pid_to_str): Change return type.
4543 (default_pid_to_str): Likewise.
4544 (target_pid_to_str): Change return type.
4545 (target_translate_tls_address): Update.
4546 (target_announce_detach): Update.
4547 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
4548 return type.
4549 (bsd_uthread_target::pid_to_str): Change return type.
4550 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
4551 type.
4552 (bsd_kvm_target::pid_to_str): Change return type.
4553 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
4554 return type.
4555 (aix_thread_target::pid_to_str): Change return type.
4556 * target.h (struct target_ops) <pid_to_str>: Change return type.
4557 (target_pid_to_str, normal_pid_to_str): Likewise.
4558 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
4559 type.
4560 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
4561 type.
4562 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
4563 return type.
4564 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
4565 type.
4566 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
4567 type.
4568 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
4569 return type.
4570
b4be1b06
SM
45712019-03-13 Simon Marchi <simon.marchi@ericsson.com>
4572
4573 * NEWS: Mention that the new default MI version is 3. Mention
4574 changes to the output of commands and events that deal with
4575 multi-location breakpoints.
4576 * breakpoint.c: Include "mi/mi-out.h".
4577 (print_one_breakpoint): Change output syntax if using MI version
4578 >= 3.
4579 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
4580 New.
4581 (mi_multi_location_breakpoint_output_fixed): New.
4582 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
4583 (mi_cmd_fix_multi_location_breakpoint_output): New.
4584 (mi_multi_location_breakpoint_output_fixed): New.
4585 * mi/mi-cmds.c (mi_cmds): Register command
4586 -fix-multi-location-breakpoint-output.
4587 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
4588 interpreter "mi".
4589
8e5e5494
SM
45902019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4591
4592 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
4593 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
4594 instantiate mi_ui_out based on interpreter name.
4595 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
4596 * mi/mi-main.c (mi_load_progress): Likewise.
4597
197df35e
JB
45982019-03-12 John Baldwin <jhb@FreeBSD.org>
4599
4600 * NEWS: Combine separate "New targets" sections for 8.3.
4601
8399425f
JB
46022019-03-12 John Baldwin <jhb@FreeBSD.org>
4603
4604 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
4605 (ppcfbsd_init_abi): Install gdbarch
4606 "fetch_tls_load_module_address" and "get_thread_local_address"
4607 methods.
4608
b0f87ed0
JB
46092019-03-12 John Baldwin <jhb@FreeBSD.org>
4610
4611 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
4612 (riscv_fbsd_init_abi): Install gdbarch
4613 "fetch_tls_load_module_address" and "get_thread_local_address"
4614 methods.
4615
ce25aa57
JB
46162019-03-12 John Baldwin <jhb@FreeBSD.org>
4617
4618 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
4619 (i386fbsd_init_abi): Install gdbarch
4620 "fetch_tls_load_module_address" and "get_thread_local_address"
4621 methods.
4622
f5424cfa
JB
46232019-03-12 John Baldwin <jhb@FreeBSD.org>
4624
4625 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
4626 (amd64fbsd_init_abi): Install gdbarch
4627 "fetch_tls_load_module_address" and "get_thread_local_address"
4628 methods.
4629
945f3901
JB
46302019-03-12 John Baldwin <jhb@FreeBSD.org>
4631
4632 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
4633 (struct fbsd_pspace_data): New type.
4634 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
4635 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
4636 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
4637 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
4638 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
4639
ef0bd204
JB
46402019-03-12 John Baldwin <jhb@FreeBSD.org>
4641
4642 * gdbtypes.c (lookup_struct_elt): New function.
4643 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
4644 * gdbtypes.h (struct struct_elt): New type.
4645 (lookup_struct_elt): New prototype.
4646
36c53a02
JB
46472019-03-12 John Baldwin <jhb@FreeBSD.org>
4648
4649 * gdbtypes.c (lookup_struct_elt_type): Update comment and
4650 remove disabled code block.
4651
6e056c81
JB
46522019-03-12 John Baldwin <jhb@FreeBSD.org>
4653
4654 * gdbarch.sh (get_thread_local_address): New method.
4655 * gdbarch.h, gdbarch.c: Regenerate.
4656 * target.c (target_translate_tls_address): Use
4657 gdbarch_get_thread_local_address if present instead of
4658 target::get_thread_local_address.
4659
cd250a18
JB
46602019-03-12 John Baldwin <jhb@FreeBSD.org>
4661
4662 * target.h (target::get_thread_local_address): Update comment.
4663
df22c1e5
JB
46642019-03-12 John Baldwin <jhb@FreeBSD.org>
4665
4666 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
4667 objfile->separate_debug_objfile_backlink if not NULL.
4668
dd6876c9
JB
46692019-03-12 John Baldwin <jhb@FreeBSD.org>
4670
4671 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4672 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
4673 (amd64bsd_store_inferior_registers): Likewise.
4674 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4675 Enable segment base registers.
4676 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
4677 PT_GETFSBASE and PT_GETGSBASE.
4678 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
4679 PT_SETGSBASE.
4680 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
4681 segment base registers.
4682 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4683
1163a4b7
JB
46842019-03-12 John Baldwin <jhb@FreeBSD.org>
4685
4686 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
4687 Update calls to i386_target_description to add 'segments'
4688 parameter.
4689 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
4690 add segment base registers.
4691 * arch/i386.c (i386_create_target_description): Add 'segments'
4692 parameter to enable segment base registers.
4693 * arch/i386.h (i386_create_target_description): Likewise.
4694 * features/i386/32bit-segments.xml: New file.
4695 * features/i386/32bit-segments.c: Generate.
4696 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
4697 call to i386_target_description to add 'segments' parameter.
4698 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
4699 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
4700 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
4701 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
4702 if feature is present.
4703 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
4704 Add 'segments' parameter to call to i386_target_description.
4705 (i386_target_description): Add 'segments' parameter to enable
4706 segment base registers.
4707 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
4708 to call to i386_target_description.
4709 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
4710 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
4711 Define I386_NUM_REGS.
4712 (i386_target_description): Add 'segments' parameter to enable
4713 segment base registers.
4714
3a350822
EZ
47152019-03-12 Eli Zaretskii <eliz@gnu.org>
4716
4717 PR/24325
4718 * source-cache.c: #undef open and close, to avoid unresolved
4719 externals during linking.
4720
ffdd69cf
TT
47212019-03-12 Tom Tromey <tromey@adacore.com>
4722
4723 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
4724 const. Add initializers.
4725 (_initialize_remote): Don't initialize ptid globals.
4726
ec148c57
PA
47272019-03-12 Pedro Alves <palves@redhat.com>
4728
4729 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
4730
32764270
PA
47312019-03-12 Pedro Alves <palves@redhat.com>
4732
4733 * cp-name-parser.y (main): Remove unused 'len' variable.
4734
17547186
TT
47352019-03-12 Tom Tromey <tromey@adacore.com>
4736
4737 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
4738 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
4739
d3a70e03
TT
47402019-03-12 Tom Tromey <tromey@adacore.com>
4741
4742 * linux-nat.c (iterate_over_lwps): Update.
4743 (stop_callback): Remove parameter.
4744 (stop_wait_callback, detach_callback, resume_set_callback)
4745 (select_singlestep_lwp_callback, set_ignore_sigint)
4746 (status_callback, resumed_callback, resume_clear_callback)
4747 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
4748 data parameter.
4749 (linux_nat_target::detach, linux_nat_target::resume)
4750 (linux_stop_and_wait_all_lwps, select_event_lwp)
4751 (linux_nat_filter_event, linux_nat_wait_1)
4752 (linux_nat_target::kill, linux_nat_target::stop)
4753 (linux_nat_target::stop): Update.
4754 (linux_nat_resume_callback): Change type.
4755 (resume_stopped_resumed_lwps, count_events_callback)
4756 (select_event_lwp_callback): Likewise.
4757 (linux_stop_lwp, linux_nat_stop_lwp): Update.
4758 * arm-linux-nat.c (struct update_registers_data): Remove.
4759 (update_registers_callback): Change type.
4760 (arm_linux_insert_hw_breakpoint1): Update.
4761 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
4762 parameter.
4763 (x86_linux_dr_set_addr): Update.
4764 (x86_linux_dr_set_control): Update.
4765 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
4766 (iterate_over_lwps): Use gdb::function_view.
4767 * nat/aarch64-linux-hw-point.c (struct
4768 aarch64_dr_update_callback_param): Remove.
4769 (debug_reg_change_callback): Change type.
4770 (aarch64_notify_debug_reg_change): Update.
4771 * s390-linux-nat.c (s390_refresh_per_info): Update.
4772
82cb27ff
TT
47732019-03-11 Tom Tromey <tromey@adacore.com>
4774
4775 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
4776 redundant assignment to "this_cu".
4777
568c0683
SM
47782019-03-08 Simon Marchi <simon.marchi@efficios.com>
4779
4780 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
4781
f09ce22d
SM
47822019-03-08 Simon Marchi <simon.marchi@efficios.com>
4783
4784 * gdbtypes.c (rank_one_type_parm_set): New function extracted
4785 from...
4786 (rank_one_type): ... this.
4787
595f96a9
SM
47882019-03-08 Simon Marchi <simon.marchi@efficios.com>
4789
4790 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
4791 from...
4792 (rank_one_type): ... this.
4793
2598a94b
SM
47942019-03-08 Simon Marchi <simon.marchi@efficios.com>
4795
4796 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
4797 from...
4798 (rank_one_type): ... this.
4799
7f17b20d
SM
48002019-03-08 Simon Marchi <simon.marchi@efficios.com>
4801
4802 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4803 from...
4804 (rank_one_type): ... this.
4805
2c509035
SM
48062019-03-08 Simon Marchi <simon.marchi@efficios.com>
4807
4808 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
4809 from...
4810 (rank_one_type): ... this.
4811
0dd322dc
SM
48122019-03-08 Simon Marchi <simon.marchi@efficios.com>
4813
4814 * gdbtypes.c (rank_one_type_parm_range): New function extracted
4815 from...
4816 (rank_one_type): ... this.
4817
41ea4728
SM
48182019-03-08 Simon Marchi <simon.marchi@efficios.com>
4819
4820 * gdbtypes.c (rank_one_type_parm_char): New function extracted
4821 from...
4822 (rank_one_type): ... this.
4823
793cd1d2
SM
48242019-03-08 Simon Marchi <simon.marchi@efficios.com>
4825
4826 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
4827 from...
4828 (rank_one_type): ... this.
4829
34910087
SM
48302019-03-08 Simon Marchi <simon.marchi@efficios.com>
4831
4832 * gdbtypes.c (rank_one_type_parm_int): New function extracted
4833 from...
4834 (rank_one_type): ... this.
4835
f1f832d6
SM
48362019-03-08 Simon Marchi <simon.marchi@efficios.com>
4837
4838 * gdbtypes.c (rank_one_type_parm_func): New function extracted
4839 from...
4840 (rank_one_type): ... this.
4841
b9f4512f
SM
48422019-03-08 Simon Marchi <simon.marchi@efficios.com>
4843
4844 * gdbtypes.c (rank_one_type_parm_array): New function extracted
4845 from...
4846 (rank_one_type): ... this.
4847
9293fc63
SM
48482019-03-08 Simon Marchi <simon.marchi@efficios.com>
4849
4850 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
4851 from...
4852 (rank_one_type): ... this.
4853
e3abbe7e
PW
48542019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4855
4856 * inferior.c (initialize_inferiors): Ensure 'help set/show print
4857 inferior-events' shows the example events.
4858
e4adb939
EZ
48592019-03-08 Eli Zaretskii <eliz@gnu.org>
4860
4861 Support styling on native MS-Windows console
4862
4863 PR/24315
4864 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
4865 on MS-Windows if $TERM is not defined.
4866
4867 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
4868
4869 * posix-hdep.c (gdb_console_fputs):
4870 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
4871 functions.
4872 * ui-file.h (gdb_console_fputs): Add prototype.
4873
4874 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
4875 back to fputs only if the former returns zero.
4876
25629dfd
TT
48772019-03-07 Tom Tromey <tom@tromey.com>
4878
4879 * symmisc.c (print_symbol_bcache_statistics): Update.
4880 (print_objfile_statistics): Update.
4881 * symfile.c (allocate_symtab): Update.
4882 * stabsread.c: Don't include bcache.h.
4883 * psymtab.h (struct psymbol_bcache): Don't declare.
4884 (class psymtab_storage) <psymbol_cache>: Now a bcache.
4885 (psymbol_bcache_init, psymbol_bcache_free)
4886 (psymbol_bcache_get_bcache): Don't declare.
4887 * psymtab.c (struct psymbol_bcache): Remove.
4888 (psymtab_storage::psymtab_storage): Update.
4889 (psymtab_storage::~psymtab_storage): Update.
4890 (psymbol_bcache_init, psymbol_bcache_free)
4891 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
4892 (add_psymbol_to_bcache): Update.
4893 (allocate_psymtab): Update.
4894 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
4895 macro_cache>: No longer pointers.
4896 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
4897 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
4898 * macrotab.c (macro_bcache): Update.
4899 * macroexp.c: Don't include bcache.h.
4900 * gdbtypes.c (check_types_worklist): Update.
4901 (types_deeply_equal): Remove TRY/CATCH. Update.
4902 * elfread.c (elf_symtab_read): Update.
4903 * dwarf2read.c: Don't include bcache.h.
4904 * buildsym.c (buildsym_compunit::get_macro_table): Update.
4905 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
4906 (print_bcache_statistics, bcache_memory_used): Don't declare.
4907 (struct bcache): Move from bcache.c. Add constructor, destructor,
4908 methods. Rename all data members.
4909 * bcache.c (struct bcache): Move to bcache.h.
4910 (bcache::expand_hash_table): Rename from expand_hash_table.
4911 (bcache): Remove.
4912 (bcache::insert): Rename from bcache_full.
4913 (bcache::compare): Rename from bcache_compare.
4914 (bcache_xmalloc): Remove.
4915 (bcache::~bcache): Rename from bcache_xfree.
4916 (bcache::print_statistics): Rename from print_bcache_statistics.
4917 (bcache::memory_used): Rename from bcache_memory_used.
4918
fe726667
PA
49192019-03-07 Pedro Alves <palves@redhat.com>
4920
4921 * infrun.c (normal_stop): Also check for
4922 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
4923
7584bb30
AB
49242019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
4925
4926 * f-lang.c (value_from_host_double): Moved to...
4927 * value.c (value_from_host_double): ...here.
4928 * value.h (value_from_host_double): Declare.
4929 * guile/scm-math.c (vlscm_convert_typed_number): Use
4930 value_from_host_double.
4931 (vlscm_convert_number): Likewise.
4932 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
4933 * python/py-value.c (convert_value_from_python): Likewise.
4934
a7b1986e
TT
49352019-03-06 Tom Tromey <tom@tromey.com>
4936
4937 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
4938
0ccf4211
TT
49392019-03-06 Tom Tromey <tom@tromey.com>
4940
4941 * utils.h (free_current_contents): Don't declare.
4942 * utils.c (free_current_contents): Remove.
4943
fe7b42e5
TT
49442019-03-06 Tom Tromey <tom@tromey.com>
4945
4946 * top.c (quit_force): Update.
4947 * main.c (captured_command_loop): Update.
4948 * common/new-op.c (operator new): Update.
4949 * common/common-exceptions.c (struct catcher)
4950 <save_cleanup_chain>: Remove member.
4951 (exceptions_state_mc_init): Update.
4952 (exception_try_scope_entry): Return nullptr.
4953 (exception_try_scope_exit, exception_rethrow)
4954 (throw_exception_sjlj, throw_exception_cxx): Update.
4955 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
4956 (all_cleanups, do_cleanups, discard_cleanups)
4957 (discard_final_cleanups, save_cleanups, save_final_cleanups)
4958 (restore_cleanups, restore_final_cleanups): Don't declare.
4959 (do_final_cleanups): Remove parameter.
4960 * common/cleanups.c (cleanup_chain, make_cleanup)
4961 (make_cleanup_dtor, all_cleanups, do_cleanups)
4962 (discard_my_cleanups, discard_cleanups)
4963 (discard_final_cleanups, save_my_cleanups, save_cleanups)
4964 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
4965 (null_cleanup): Remove.
4966 (do_final_cleanups): Remove parameter.
4967
c6321f19
TT
49682019-03-06 Tom Tromey <tom@tromey.com>
4969
4970 * remote.c (remote_target::remote_parse_stop_reply): Use
4971 unique_xmalloc_ptr.
4972
61b30099
TT
49732019-03-06 Tom Tromey <tom@tromey.com>
4974
4975 * stabsread.c (struct stabs_field_info): Rename from field_info.
4976 <list, fnlist>: Add initializers.
4977 <obstack>: New member.
4978 (read_member_functions, read_struct_fields, read_baseclasses):
4979 Allocate on obstack. Don't use cleanups.
4980 (read_one_struct_field, read_member_functions, read_struct_fields)
4981 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
4982 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
4983 (read_struct_type): Update.
4984
6cceac94
TT
49852019-03-06 Tom Tromey <tom@tromey.com>
4986
4987 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
4988 * common/filestuff.h (make_cleanup_close): Don't declare.
4989 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
4990 Remove.
4991
72412762
TT
49922019-03-06 Tom Tromey <tom@tromey.com>
4993
4994 * solib-aix.c: Use make_scope_exit.
4995
2b6ff1c0
TT
49962019-03-06 Tom Tromey <tom@tromey.com>
4997
4998 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
4999 Use make_scope_exit.
5000
d01c5877
TT
50012019-03-06 Tom Tromey <tom@tromey.com>
5002
5003 * solib-svr4.c (disable_probes_interface): Remove parameter.
5004 (svr4_handle_solib_event): Use make_scope_exit.
5005
32603266
TT
50062019-03-06 Tom Tromey <tom@tromey.com>
5007
5008 * remote.c (struct stop_reply_deleter): Remove.
5009 (stop_reply_up): Update.
5010 (struct stop_reply): Derive from notif_event. Don't typedef.
5011 <regcache>: Now a std::vector.
5012 (stop_reply_xfree): Remove.
5013 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
5014 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
5015 (remote_target::discard_pending_stop_replies): Use delete.
5016 (remote_target::remote_parse_stop_reply): Update.
5017 (remote_target::process_stop_reply): Update.
5018 * remote-notif.h (struct notif_event): Add virtual destructor.
5019 Remove "dtr" member.
5020 (struct notif_client) <alloc_event>: Return a unique_ptr.
5021 (notif_event_xfree): Don't declare.
5022 (notif_event_up): New typedef.
5023 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
5024 (notif_event_xfree, do_notif_event_xfree): Remove.
5025 (remote_notif_state_xfree): Update.
5026
9799571e
TT
50272019-03-06 Tom Tromey <tom@tromey.com>
5028
5029 * infrun.c (displaced_step_clear_cleanup): Now a
5030 forward_scope_exit type.
5031 (displaced_step_prepare_throw): Update.
5032 (displaced_step_fixup): Update.
5033
09e3c4ca
TT
50342019-03-06 Tom Tromey <tom@tromey.com>
5035
5036 * inferior.h (class inferior): Update comment.
5037 * gdbthread.h (class thread_info): Update comment.
5038
e2a03548
TT
50392019-03-06 Joel Brobecker <brobecker@adacore.com>
5040 Tom Tromey <tom@tromey.com>
5041
5042 * stabsread.h (struct stab_section_list): Remove.
5043 (coffstab_build_psymtabs): Update.
5044 * dbxread.c (symbuf_sections): Now a std::vector.
5045 (sect_idx): New global.
5046 (fill_symbuf): Update.
5047 (coffstab_build_psymtabs): Change type of stabsects parameter.
5048 Update.
5049 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
5050 std::vector.
5051 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
5052 (coff_locate_sections): Update.
5053 (coff_symfile_read): Remove cleanups. Update.
5054 (init_stringtab): Add storage parameter.
5055 (free_stringtab, free_stringtab_cleanup): Remove.
5056 (init_lineno): Add storage parameter.
5057 (free_linetab, free_linetab_cleanup): Remove.
5058
b7e60d85
PA
50592019-03-06 Pedro Alves <palves@redhat.com>
5060
5061 * linux-fork.c (fork_info::clobber_regs): Delete.
5062 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
5063 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
5064 comment. Adjust.
5065 (scoped_switch_fork_info::scoped_switch_fork_info)
5066 (checkpoint_command, linux_fork_context): Adjust
5067 fork_save_infrun_state calls.
5068
e52c971f
PA
50692019-03-06 Pedro Alves <palves@redhat.com>
5070
5071 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
5072 (inf_has_multiple_threads): Return 'bool' and rewrite using
5073 inferior_info::threads().
5074
06974e6c
PA
50752019-03-06 Pedro Alves <palves@redhat.com>
5076
5077 * linux-fork.c: Include <list>.
5078 (fork_list): Now a std::list instance.
5079 (fork_info): Add ctor, dtor, and in-class initialize all fields.
5080 (forks_exist_p, find_last_fork): Adjust.
5081 (new_fork): Delete.
5082 (one_fork_p): New.
5083 (add_fork): Adjust.
5084 (free_fork): Delete, folded into fork_info::~fork_info().
5085 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
5086 Adjust.
5087 (init_fork_list): Delete.
5088 (linux_fork_killall, linux_fork_mourn_inferior)
5089 (linux_fork_detach, info_checkpoints_command): Adjust.
5090 (_initialize_linux_fork): No longer call init_fork_list.
5091
72f31aea
PA
50922019-03-06 Pedro Alves <palves@redhat.com>
5093
5094 * linux-fork.c (new_fork): New, split out of ...
5095 (add_fork): ... this. Return void. Move "first fork" special
5096 case from here, to ...
5097 (checkpoint_command): ... here.
5098 * linux-linux.h (add_fork): Return void.
5099
efbecbc1
AB
51002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5101
5102 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
5103
0841c79a
AB
51042019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5105 Chris January <chris.january@arm.com>
5106 David Lecomber <david.lecomber@arm.com>
5107
5108 * f-exp.y: New token, UNOP_INTRINSIC.
5109 (exp): New pattern using UNOP_INTRINSIC token.
5110 (f77_keywords): Add 'abs' keyword.
5111 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
5112 (value_from_host_double): New function.
5113 (evaluate_subexp_f): Support UNOP_ABS.
5114
4a270568
AB
51152019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5116
5117 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
5118 types.
5119
067630bd
AB
51202019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5121
5122 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
5123 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
5124 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
5125
3be47f7a
AB
51262019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5127
5128 * f-exp.y (convert_to_kind_type): Handle more type kinds.
5129
4d00f5d8
AB
51302019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5131 Chris January <chris.january@arm.com>
5132
5133 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
5134 * f-exp.y: Define 'KIND' token.
5135 (exp): New pattern for KIND expressions.
5136 (ptype): Handle types with a kind extension.
5137 (direct_abs_decl): Extend to spot kind extensions.
5138 (f77_keywords): Add 'kind' to the list.
5139 (push_kind_type): New function.
5140 (convert_to_kind_type): New function.
5141 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
5142 * parse.c (operator_length_standard): Likewise.
5143 * parser-defs.h (enum type_pieces): Add tp_kind.
5144 * std-operator.def: Add UNOP_KIND.
5145
e454224f
AB
51462019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5147
5148 * f-exp.y (f_parse): Set yydebug.
5149
9dad4a58
AB
51502019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5151
5152 * f-lang.c (evaluate_subexp_f): New function.
5153 (exp_descriptor_f): New global.
5154 (f_language_defn): Use exp_descriptor_f instead of
5155 exp_descriptor_standard.
5156
c8f91604
AB
51572019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5158
5159 * f-exp.y (struct token): Add comments.
5160 (dot_ops): Remove uppercase versions and the end marker.
5161 (f77_keywords): Likewise.
5162 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
5163 entries in the dot_ops array are case insensitive, and use
5164 strncasecmp to compare strings. Also some whitespace cleanup in
5165 this area. Similar for the f77_keywords array, except entries in
5166 this list might be case sensitive.
5167
dd9f2c76
AB
51682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5169
5170 * f-exp.y (struct f77_boolean_val): Add comments.
5171 (boolean_values): Remove uppercase versions, and end marker.
5172 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
5173 and use strncasecmp to achieve case insensitivity. Additionally,
5174 perform whitespace cleanup around this code.
5175
67a3048c
TT
51762019-03-06 Tom Tromey <tromey@adacore.com>
5177
5178 * remote-sim.c (gdbsim_target_open): Use result of
5179 gdb_argv::release.
5180
aa3cfbda
RB
51812019-03-06 Richard Bunt <richard.bunt@arm.com>
5182 Dirk Schubert <dirk.schubert@arm.com>
5183 Chris January <chris.january@arm.com>
5184
5185 * eval.c (evaluate_subexp_standard): Call Fortran argument
5186 wrapping logic.
5187 * f-lang.c (struct value): A value which can be passed into a
5188 Fortran function call.
5189 (fortran_argument_convert): Wrap Fortran arguments in a pointer
5190 where appropriate.
5191 (struct type): Value ready for a Fortran function call.
5192 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
5193 is needed.
5194 * f-lang.h (fortran_argument_convert): Declaration.
5195 (fortran_preserve_arg_pointer): Declaration.
5196 * infcall.c (value_arg_coerce): Call Fortran argument logic.
5197
ea38e5df
TT
51982019-03-05 Tom Tromey <tromey@adacore.com>
5199
5200 * python/py-prettyprint.c (print_string_repr): Remove #if.
5201 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
5202
06b5b831
TT
52032019-03-05 Tom Tromey <tromey@adacore.com>
5204
5205 * target.c (the_dummy_target): Move later. Change type to
5206 "dummy_target".
5207 (initialize_targets): Don't initialize the_dummy_target.
5208
edbd9e45
TT
52092019-03-05 Tom Tromey <tromey@adacore.com>
5210
5211 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
5212 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
5213
c119e040
TT
52142019-03-05 Tom Tromey <tromey@adacore.com>
5215
5216 * windows-nat.c (windows_nat_target::attach)
5217 (windows_nat_target::detach): Don't call gdb_flush.
5218 * valprint.c (generic_val_print, val_print, val_print_string):
5219 Don't call gdb_flush.
5220 * utils.c (defaulted_query): Don't call gdb_flush.
5221 * typeprint.c (print_type_scalar): Don't call gdb_flush.
5222 * target.c (target_announce_detach): Don't call gdb_flush.
5223 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
5224 * remote.c (extended_remote_target::attach): Don't call
5225 gdb_flush.
5226 * procfs.c (procfs_target::detach): Don't call gdb_flush.
5227 * printcmd.c (do_examine): Don't call gdb_flush.
5228 (info_display_command): Don't call gdb_flush.
5229 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
5230 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
5231 * memattr.c (info_mem_command): Don't call gdb_flush.
5232 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
5233 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
5234 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
5235 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
5236 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
5237 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
5238 (gnu_nat_target::detach): Don't call gdb_flush.
5239 * f-valprint.c (f_val_print): Don't call gdb_flush.
5240 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
5241 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
5242 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
5243 gdb_flush.
5244 * c-valprint.c (c_val_print): Don't call gdb_flush.
5245 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
5246
895dafa6
TT
52472019-03-05 Tom Tromey <tromey@adacore.com>
5248
5249 * varobj.c (update_dynamic_varobj_children): Update.
5250 (install_default_visualizer): Use reset, not release.
5251 * value.c (set_internalvar): Update.
5252 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
5253 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
5254 ATTRIBUTE_UNUSED_RESULT.
5255
88a774b9
TT
52562019-03-05 Tom Tromey <tromey@adacore.com>
5257
5258 * remote.c (class scoped_remote_fd) <release>: Add
5259 ATTRIBUTE_UNUSED_RESULT.
5260
4e4a8b93
TT
52612019-03-05 Tom Tromey <tromey@adacore.com>
5262
5263 * macroexp.c (struct macro_buffer) <release>: Add
5264 ATTRIBUTE_UNUSED_RESULT.
5265
083eef1f
TT
52662019-03-05 Tom Tromey <tromey@adacore.com>
5267
5268 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
5269 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
5270 ATTRIBUTE_UNUSED_RESULT.
5271
3cabd438
TT
52722019-03-05 Tom Tromey <tromey@adacore.com>
5273
5274 * common/scoped_fd.h (class scoped_fd) <release>: Add
5275 ATTRIBUTE_UNUSED_RESULT.
5276
41e3300a
TT
52772019-03-05 Tom Tromey <tromey@adacore.com>
5278
5279 * parser-defs.h (struct parser_state) <release>: Add
5280 ATTRIBUTE_UNUSED_RESULT.
5281
18cb7c9f
TT
52822019-03-05 Tom Tromey <tromey@adacore.com>
5283
5284 * utils.h (class gdb_argv) <release>: Add
5285 ATTRIBUTE_UNUSED_RESULT.
5286 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
5287
41fa577f
EZ
52882019-03-02 Eli Zaretskii <eliz@gnu.org>
5289
a6a4b2c6
EZ
5290 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
5291 for-loop range, to avoid compiler warnings.
5292
5293 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
5294 avoid compiler warnings about unused variables.
5295
742a7df5
EZ
5296 * NEWS: Mention end of support for native debugging on MS-Windows
5297 before XP.
5298
41fa577f
EZ
5299 PR gdb/24292
5300 * common/netstuff.c:
5301 * gdbserver/gdbreplay.c
5302 * gdbserver/remote-utils.c:
5303 * ser-tcp.c:
5304 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
5305 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
5306 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
5307 'getaddrinfo' and 'freeaddrinfo' were not available before
5308 Windows XP, and mingw.org's MinGW headers by default define
5309 _WIN32_WINNT to 0x500.
5310
827f438f
GB
53112019-03-01 Gary Benson <gbenson@redhat.com>
5312
5313 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
5314
92137da0
RO
53152019-02-28 Brian Vandenberg <phantall@gmail.com>
5316 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5317
5318 PR gdb/8527
5319 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
5320 set_sigint_trap, clear_sigint_trap.
5321
799efbe8
PW
53222019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5323
5324 * target.c (target_detach): Clear the regcache and the
5325 frame cache.
5326
8ed25214
PA
53272019-02-27 Pedro Alves <palves@redhat.com>
5328
5329 * utils.c (set_screen_size): When we cap the height/width sizes,
5330 tweak the corresponding command variable to show "unlimited":
5331
23031e31
SJ
53322019-02-27 Saagar Jha <saagar@saagarjha.com>
5333 Pedro Alves <palves@redhat.com>
5334
5335 * utils.c (set_screen_size): Reduce "infinite" rows and columns
5336 before calling rl_set_screen_size.
5337
6c28e44a
TT
53382019-02-27 Tom Tromey <tromey@adacore.com>
5339
5340 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
5341 define.
5342 * python/py-value.c: Remove Python 2.4 workaround.
5343 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
5344 workaround.
5345 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
5346 Python 2.4 workaround.
5347 * python/python-internal.h: Remove Python 2.4 comment.
5348 (Py_ssize_t): Don't define.
5349 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
5350 (gdb_Py_DECREF): Remove Python 2.4 workaround.
5351 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
5352 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
5353 * python/python.c (do_start_initialization): Remove Python 2.4
5354 workaround.
5355 * python/py-prettyprint.c (class dummy_python_frame): Remove.
5356 (print_children): Remove Python 2.4 workaround.
5357 * python/py-inferior.c (buffer_procs): Remove Python 2.4
5358 workaround.
5359 (CHARBUFFERPROC_NAME): Remove.
5360 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
5361 Python 2.4 workaround.
5362
2c3fc25d 53632019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 5364
2c3fc25d
KB
5365 * NEWS: Note minimum Python version.
5366
6ca62222
KB
53672019-02-27 Kevin Buettner <kevinb@redhat.com>
5368
5369 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
5370 code from these functions. Remove corresponding ifdefs. Use
5371 Py_buffer_up instead of explicit calls to PyBuffer_Release.
5372 Remove gotos and target of gotos.
5373 (infpy_search_memory): Likewise.
5374
f4bc7d2c
AB
53752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
5378 (hppa_gdbarch_init): Don't register deleted functions with
5379 gdbarch.
5380
9734a586
AB
53812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5382
5383 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
5384 (h8300_unwind_sp): Delete.
5385 (h8300_dummy_id): Delete.
5386 (h8300_gdbarch_init): Don't register deleted functions with
5387 gdbarch.
5388
68b867f3
AB
53892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5390
5391 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
5392 (ft32_unwind_pc): Delete.
5393 (ft32_unwind_sp): Delete.
5394 (ft32_gdbarch_init): Don't register deleted functions with
5395 gdbarch.
5396
2fbe7ad0
AB
53972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5398
5399 * gdb/frv-tdep.c (frv_dummy_id): Delete.
5400 (frv_unwind_pc): Delete.
5401 (frv_unwind_sp): Delete.
5402 (frv_gdbarch_init): Don't register deleted functions with
5403 gdbarch.
5404
76055cbe
AB
54052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5406
5407 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
5408 (riscv_unwind_pc): Delete.
5409 (riscv_unwind_sp): Delete.
5410 (riscv_gdbarch_init): Don't register deleted functions with
5411 gdbarch.
5412
4133e5a1
AB
54132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5414
5415 * gdb/csky-tdep.c (csky_dummy_id): Delete.
5416 (csky_unwind_pc): Delete.
5417 (csky_unwind_sp): Delete.
5418 (csky_gdbarch_init): Don't register deleted functions with
5419 gdbarch.
5420
8010f576
AB
54212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5422
5423 * gdb/cris-tdep.c (cris_dummy_id): Delete.
5424 (cris_unwind_pc): Delete.
5425 (cris_unwind_sp): Delete.
5426 (cris_gdbarch_init): Don't register deleted functions with
5427 gdbarch.
5428
b56bf084
AB
54292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5430
5431 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
5432 (bfin_unwind_pc): Delete.
5433 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
5434
a19a650f
AB
54352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5436
5437 * gdb/arm-tdep.c (arm_dummy_id): Delete.
5438 (arm_unwind_pc): Delete.
5439 (arm_unwind_sp): Delete.
5440 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
5441
f8278c3c
AB
54422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5443
5444 * gdb/arc-tdep.c (arc_dummy_id): Delete.
5445 (arc_unwind_pc): Delete.
5446 (arc_unwind_sp): Delete.
5447 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
5448
480e46cf
AB
54492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5450
5451 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
5452 (alpha_unwind_pc): Delete.
5453 (alpha_gdbarch_init): Don't register deleted functions with
5454 gdbarch.
5455
7a995095
AB
54562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5457
5458 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
5459 (aarch64_unwind_pc): Delete.
5460 (aarch64_unwind_sp): Delete.
5461 (aarch64_gdbarch_init): Don't register deleted functions with
5462 gdbarch.
5463
bf9a735e
AB
54642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5465
5466 * gdbtypes.c (type_align): Don't consider static members when
5467 computing structure alignment.
5468
5561fc30
AB
54692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5470
5471 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
5472 return 0 for other types.
5473 * arch-utils.c (default_type_align): Always return 0.
5474 * gdbarch.h: Regenerate.
5475 * gdbarch.sh (type_align): Extend comment.
5476 * gdbtypes.c (type_align): Add additional comments, always call
5477 gdbarch_type_align before applying the default rules.
5478 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
5479 generic code will then apply a suitable default.
5480 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
5481 types, return 0 for other types.
5482
9335e75a
JB
54832019-02-27 Joel Brobecker <brobecker@adacore.com>
5484
5485 * NEWS: Create a new section for the next release branch.
5486 Rename the section of the current branch, now that it has
5487 been cut.
5488
3d34d8de
JB
54892019-02-27 Joel Brobecker <brobecker@adacore.com>
5490
5491 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
5492 * version.in: Bump version to 8.3.50.DATE-git.
5493
143420fb
SM
54942019-02-26 Simon Marchi <simon.marchi@efficios.com>
5495
5496 * aix-thread.c (ptid_cmp): Remove unused variable.
5497 (get_signaled_thread): Likewise.
5498 (store_regs_user_thread): Likewise.
5499 (store_regs_kernel_thread): Likewise.
5500 (fetch_regs_kernel_thread): Remove shadowed variable.
5501
172fb711
AB
55022019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
5503
5504 * features/riscv/32bit-cpu.xml: Add register numbers.
5505 * features/riscv/32bit-fpu.c: Regenerate.
5506 * features/riscv/32bit-fpu.xml: Add register numbers.
5507 * features/riscv/64bit-cpu.xml: Add register numbers.
5508 * features/riscv/64bit-fpu.c: Regenerate.
5509 * features/riscv/64bit-fpu.xml: Add register numbers.
5510
26c89782
KB
55112019-02-26 Kevin Buettner <kevinb@redhat.com>
5512
af54ade9 5513 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
5514 * python/py-value.c (convert_buffer_and_type_to_value): New
5515 function.
5516 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
5517 Add support for handling an optional second argument. Call
5518 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
5519 * python/python-internal.h (Py_buffer_deleter): New struct.
5520 (Py_buffer_up): New typedef.
5521
0f58c9e8
JB
55222019-02-25 John Baldwin <jhb@FreeBSD.org>
5523
5524 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
5525 instead of releasing ownership.
5526
0a0f4c01
JR
55272019-02-25 Jordan Rupprecht <rupprecht@google.com>
5528
5529 * dwarf2read.c (open_and_init_dwp_file): Call
5530 elf_numsections instead of bfd_count_sections to initialize
5531 dwp_file->num_sections.
5532
cd5a152c
TT
55332019-02-25 Tom Tromey <tromey@adacore.com>
5534
5535 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
5536
8a6a8513
SDJ
55372019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
5538
5539 * gcore.in: Add '--readnever' option when invoking GDB.
5540
04dcda9c
SM
55412019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5542
5543 * MAINTAINERS: Update my email address.
5544
07bc701d
SM
55452019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5546
5547 * build-id.c (build_id_to_debug_bfd_1): New function.
5548 (build_id_to_debug_bfd): Look for separate debug file in
5549 sysroot.
5550
c6f4a5d0
AB
55512019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
5552
5553 * gdbarch.sh: Update the copyright year range that is placed into
5554 generated files.
5555
9600246d
KS
55562019-02-22 Keith Seitz <keiths@redhat.com>
5557
5558 PR symtab/23853
5559 * linespec.c (create_sals_line_offset): Search for the default
5560 symtab's filename instead of its fullname.
5561
7557a514
AH
55622019-02-21 Alan Hayward <alan.hayward@arm.com>
5563
5564 * NEWS: Update style defaults.
5565
ee2bcb0c
AH
55662019-02-21 Alan Hayward <alan.hayward@arm.com>
5567
5568 * main.c (captured_main_1): Disable styling in batch mode.
5569
0c95f9ed
TT
55702019-02-20 Tom Tromey <tom@tromey.com>
5571
5572 * symtab.c (symtab_symbol_info): Fix typos.
5573
c763b894
TT
55742019-02-20 Tom Tromey <tromey@adacore.com>
5575
5576 * findcmd.c (_initialize_mem_search): Use upper case for
5577 metasyntactic variables.
5578
0ef8a082
AH
55792019-02-20 Alan Hayward <alan.hayward@arm.com>
5580
5581 * aarch64-tdep.c (aarch64_add_reggroups): New function.
5582 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
5583
6caa91b6
SM
55842019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
5585
5586 * top.h (source_file_name): Change to std::string.
5587 * top.c (source_file_name): Likewise.
5588 (command_line_input): Adjust.
5589 * cli/cli-script.c (script_from_file): Adjust.
5590
98814c6c
TT
55912019-02-19 Tom Tromey <tromey@adacore.com>
5592
5593 * ravenscar-thread.c
5594 (ravenscar_thread_target::update_thread_list): Don't call
5595 ada_build_task_list.
5596 * ada-lang.h (ada_build_task_list): Don't declare.
5597 * ada-tasks.c (struct ada_tasks_inferior_data)
5598 <task_list_valid_p>: Now bool.
5599 (read_known_tasks, ada_task_list_changed)
5600 (ada_tasks_invalidate_inferior_data): Update.
5601 (read_known_tasks_array): Return bool.
5602 (read_known_tasks_list): Likewise.
5603 (read_known_tasks): Return void.
5604 (ada_build_task_list): Now static.
5605
70cd633e
AB
56062019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
5607
5608 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
5609 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
5610
040b3e95
PW
56112019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5612
5613 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
5614 variant for ada_tasks_pspace_data_handle and
5615 ada_tasks_inferior_data_handle.
5616 (ada_tasks_pspace_data_cleanup): New function.
5617 (ada_tasks_inferior_data_cleanup): New function.
5618
9409233b
TT
56192019-02-17 Tom Tromey <tom@tromey.com>
5620
5621 * macrotab.h (macro_source_fullname): Return a std::string.
5622 * macrotab.c (macro_include, check_for_redefinition)
5623 (macro_undef, macro_lookup_definition, foreach_macro)
5624 (foreach_macro_in_scope): Update.
5625 (macro_source_fullname): Return a std::string.
5626 * macrocmd.c (show_pp_source_pos): Update.
5627
6506371f
TT
56282019-02-17 Tom Tromey <tom@tromey.com>
5629
5630 * macrocmd.c (show_pp_source_pos): Style the file names.
5631
0c820d67
TT
56322019-02-17 Tom Tromey <tom@tromey.com>
5633
5634 PR tui/24197:
5635 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
5636
a0087920
TT
56372019-02-17 Tom Tromey <tom@tromey.com>
5638
5639 * ada-lang.c (user_select_syms): Use filtered printing.
5640 * utils.c (wrap_style): New global.
5641 (desired_style): Remove.
5642 (emit_style_escape): Add stream parameter.
5643 (set_output_style, reset_terminal_style, prompt_for_continue):
5644 Update.
5645 (flush_wrap_buffer): Only flush gdb_stdout.
5646 (wrap_here): Set wrap_style.
5647 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
5648 treat escape sequences as a character. Change when wrap buffer is
5649 flushed.
5650 (fputs_styled): Do not set the output style when the default is
5651 requested.
5652 * ui-style.h (struct ui_file_style) <is_default>: New method.
5653 * source.c (print_source_lines_base): Emit escape sequences in one
5654 piece.
5655
75ba10dc
JB
56562019-02-17 Joel Brobecker <brobecker@adacore.com>
5657
5658 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
5659 integers and enumeration types.
5660
a2cd4f14
JB
56612019-02-17 Joel Brobecker <brobecker@adacore.com>
5662
5663 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
5664 instead of lookup_symbol_in_language
5665 (do_exact_match): New function.
5666 (ada_get_symbol_name_matcher): Return do_exact_match when
5667 doing a verbatim match.
5668
485b851b
TT
56692019-02-15 Tom Tromey <tromey@adacore.com>
5670
5671 * ravenscar-thread.c (ravenscar_thread_target::resume)
5672 (ravenscar_thread_target::wait): Special case wildcard requests.
5673
0b790b1e
TT
56742019-02-15 Tom Tromey <tromey@adacore.com>
5675
5676 * ravenscar-thread.c (base_ptid): Remove.
5677 (struct ravenscar_thread_target) <close>: New method.
5678 <m_base_ptid>: New member.
5679 <update_inferior_ptid, active_task, task_is_currently_active,
5680 runtime_initialized>: Declare methods.
5681 <ravenscar_thread_target>: Add constructor.
5682 (ravenscar_thread_target::task_is_currently_active)
5683 (ravenscar_thread_target::update_inferior_ptid)
5684 (ravenscar_runtime_initialized): Rename. Now methods.
5685 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
5686 (ravenscar_thread_target::update_thread_list): Update.
5687 (ravenscar_thread_target::active_task): Now method.
5688 (ravenscar_thread_target::store_registers)
5689 (ravenscar_thread_target::prepare_to_store)
5690 (ravenscar_thread_target::prepare_to_store)
5691 (ravenscar_thread_target::mourn_inferior): Update.
5692 (ravenscar_inferior_created): Use "new" to create target.
5693 (ravenscar_thread_target::get_ada_task_ptid): Update.
5694 (_initialize_ravenscar): Don't initialize base_ptid.
5695 (ravenscar_ops): Remove global.
5696
dea57a62
TT
56972019-02-15 Tom Tromey <tromey@adacore.com>
5698
5699 * target.h (push_target): Declare new overload.
5700 * target.c (push_target): New overload, taking an rvalue reference.
5701 * remote.c (remote_target::open_1): Use push_target overload.
5702 * corelow.c (core_target_open): Use push_target overload.
5703
989f3c58
TT
57042019-02-15 Tom Tromey <tromey@adacore.com>
5705
5706 * ravenscar-thread.c (is_ravenscar_task)
5707 (ravenscar_task_is_currently_active): Return bool.
5708 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
5709 (_initialize_ravenscar): Remove "(void)".
5710 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
5711 Return bool.
5712
6cbcc006
TT
57132019-02-15 Tom Tromey <tromey@adacore.com>
5714
5715 * ravenscar-thread.c (ravenscar_runtime_initializer)
5716 (has_ravenscar_runtime, get_running_thread_id)
5717 (ravenscar_thread_target::resume): Fix indentation.
5718
7657f14d
TT
57192019-02-15 Tom Tromey <tromey@adacore.com>
5720
5721 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
5722 from ravenscar_arch_ops.
5723 (sparc_ravenscar_ops::fetch_registers)
5724 (sparc_ravenscar_ops::store_registers): Now methods.
5725 (sparc_ravenscar_prepare_to_store): Remove.
5726 (sparc_ravenscar_ops): Redefine.
5727 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
5728 methods and destructor. Remove members.
5729 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
5730 (ravenscar_thread_target::store_registers)
5731 (ravenscar_thread_target::prepare_to_store): Update.
5732 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
5733 Remove.
5734 (struct ppc_ravenscar_powerpc_ops): Derive from
5735 ravenscar_arch_ops.
5736 (ppc_ravenscar_powerpc_ops::fetch_registers)
5737 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
5738 (ppc_ravenscar_powerpc_ops): Redefine.
5739 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
5740 (ppc_ravenscar_e500_ops::fetch_registers)
5741 (ppc_ravenscar_e500_ops::store_registers): Now methods.
5742 (ppc_ravenscar_e500_ops): Redefine.
5743 * aarch64-ravenscar-thread.c
5744 (aarch64_ravenscar_generic_prepare_to_store): Remove.
5745 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
5746 (aarch64_ravenscar_fetch_registers)
5747 (aarch64_ravenscar_store_registers): Now methods.
5748 (aarch64_ravenscar_ops): Redefine.
5749
5b6ea500
TT
57502019-02-15 Tom Tromey <tromey@adacore.com>
5751
5752 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
5753 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5754 (ravenscar_thread_target::stopped_by_watchpoint)
5755 (ravenscar_thread_target::stopped_data_address)
5756 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
5757
e397fd39
TT
57582019-02-15 Tom Tromey <tromey@adacore.com>
5759
5760 * ravenscar-thread.c: Fix some typos.
5761
cc12f4a8
TT
57622019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5763 Tom Tromey <tromey@adacore.com>
5764
5765 * ada-lang.c (ada_exception_sal): Change addr_string to a
5766 std::string.
5767 (create_ada_exception_catchpoint): Update.
5768
5f486660
TT
57692019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5770 Tom Tromey <tromey@adacore.com>
5771
5772 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
5773 (bp_location_ops): Remove.
5774 (base_breakpoint_allocate_location): Update.
5775 (free_bp_location): Update.
5776 * ada-lang.c (class ada_catchpoint_location)
5777 <ada_catchpoint_location>: Remove ops parameter.
5778 (ada_catchpoint_location_dtor): Remove.
5779 (ada_catchpoint_location_ops): Remove.
5780 (allocate_location_exception): Update.
5781 * breakpoint.h (struct bp_location_ops): Remove.
5782 (class bp_location) <bp_location>: Remove bp_location_ops
5783 parameter.
5784 <~bp_location>: Add destructor.
5785 <ops>: Remove.
5786
b671c7fb
TS
57872019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5788 Pedro Alves <palves@redhat.com>
5789
5790 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
5791 'PATH_MAX'.
5792
8071c5ce
DM
57932019-02-14 David Michael <fedora.dm0@gmail.com>
5794 Samuel Thibault <samuel.thibault@gnu.org>
5795 Thomas Schwinge <thomas@codesourcery.com>
5796
5797 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
5798 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
5799
b1041ae0
TS
58002019-02-14 Thomas Schwinge <thomas@codesourcery.com>
5801
924514e1
TS
5802 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
5803 (check_empty): Use "const char *".
5804
c29ee8d4
TS
5805 * gnu-nat.c (gnu_nat_target::detach): Instead of
5806 'detach_inferior (pid)' call
5807 'detach_inferior (find_inferior_pid (pid))'.
5808
6c6ef69f
TS
5809 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
5810 'nat/fork-inferior.o'.
5811 * gnu-nat.c: #include "nat/fork-inferior.h".
5812
2d0a338c
TS
5813 * gnu-nat.c (gnu_nat_target::detach): Instead of
5814 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
5815 * gnu-nat.h: #include "inf-child.h".
5816 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
5817 'i386_gnu_nat_target::fetch_registers'.
5818 (gnu_store_registers): Rename/move to
5819 'i386_gnu_nat_target::store_registers'.
5820
cabb5f06
TS
5821 * config/i386/nm-i386gnu.h: Don't "#include" any files.
5822 * gnu-nat.h (mach_thread_info): New function.
5823 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
5824
b1041ae0
TS
5825 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
5826
2988d01e
KF
58272019-02-14 Frederic Konrad <konrad@adacore.com>
5828
5829 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
5830
c559d709
JB
58312019-02-14 Joel Brobecker <brobecker@adacore.com>
5832
5833 * windows-nat.c (windows_add_thread): Add new parameter
5834 "main_thread_p" with default value set to false. Update
5835 function documentation as well as all callers.
5836 (windows_delete_thread): Likewise.
5837 (fake_create_process): Update call to windows_add_thread.
5838 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
5839 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
5840 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
5841 call to windows_delete_thread.
5842
007024cc
SM
58432019-02-13 Simon Marchi <simon.marchi@ericsson.com>
5844
5845 * MAINTAINERS: Add Andrew Burgess as global maintainer.
5846
f62318e9
JB
58472019-02-12 John Baldwin <jhb@FreeBSD.org>
5848
5849 * symfile.c (find_separate_debug_file): Use canonical path of
5850 sysroot with child_path instead of gdb_sysroot if it is valid.
5851
cd4b7848
JB
58522019-02-12 John Baldwin <jhb@FreeBSD.org>
5853
5854 * symfile.c (find_separate_debug_file): Use child_path to
5855 determine if an object file is under a sysroot.
5856
efac4bfe
JB
58572019-02-12 John Baldwin <jhb@FreeBSD.org>
5858
5859 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5860 unittests/child-path-selftests.c.
5861 * common/pathstuff.c (child_path): New function.
5862 * common/pathstuff.h (child_path): New prototype.
5863 * unittests/child-path-selftests.c: New file.
5864
402d2bfe
JB
58652019-02-12 John Baldwin <jhb@FreeBSD.org>
5866
5867 * symfile.c (find_separate_debug_file): Look for separate debug
5868 files in debug directories under the sysroot.
5869
1ed9f74e
PW
58702019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5871
5872 * symtab.h (struct minimal_symbol data_p): New const method.
5873 (struct minimal_symbol text_p): Likewise.
5874 * symtab.c (output_source_filename): Use file name style
5875 to print file name.
5876 (print_symbol_info): Likewise.
5877 (print_msymbol_info): Use address style to print addresses.
5878 Use function name style to print executable text symbols.
5879 (expand_symtab_containing_pc): Use data_p.
5880 (find_pc_sect_compunit_symtab): Likewise.
5881
2636d81d
PW
58822019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5883
5884 * breakpoint.c (describe_other_breakpoints): Use address style
5885 to print addresses.
5886 (say_where): Likewise.
5887
ac8c53cc
PW
58882019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5889
5890 * ada-typeprint.c (print_func_type): Print function name
5891 style to print function name.
5892 * c-typeprint.c (c_print_type_1): Likewise.
5893
ea638c43
AH
58942019-02-11 Alan Hayward <alan.hayward@arm.com>
5895
5896 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
5897 for execve.
5898
ab759ca8
PW
58992019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5900
5901 * c-exp.y (direct_abs_decl): Use emplace_back to record the
5902 type_stack.
5903
aff29d1c
JB
59042019-02-10 Joel Brobecker <brobecker@adacore.com>
5905
5906 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
5907 TYPE_CODE_REF types.
5908
617126bc
JW
59092019-02-08 Jim Wilson <jimw@sifive.com>
5910
5911 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
5912 (riscv_linux_fregset): New.
5913 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
5914
46e3ed7f
TT
59152019-02-07 Tom Tromey <tom@tromey.com>
5916
5917 * thread.c (thread_cancel_execution_command): Update.
5918 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
5919 methods.
5920 (struct thread_fsm_ops): Remove.
5921 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
5922 (thread_fsm_should_stop, thread_fsm_return_value)
5923 (thread_fsm_set_finished, thread_fsm_finished_p)
5924 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
5925 Don't declare.
5926 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
5927 * infrun.c (clear_proceed_status_thread)
5928 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
5929 (print_stop_event): Update.
5930 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
5931 Add constructor.
5932 (step_command_fsm_ops): Remove.
5933 (new_step_command_fsm): Remove.
5934 (step_1): Update.
5935 (step_command_fsm::should_stop): Rename from
5936 step_command_fsm_should_stop.
5937 (step_command_fsm::clean_up): Rename from
5938 step_command_fsm_clean_up.
5939 (step_command_fsm::do_async_reply_reason): Rename from
5940 step_command_fsm_async_reply_reason.
5941 (struct until_next_fsm): Inherit from thread_fsm. Add
5942 constructor.
5943 (until_next_fsm_ops): Remove.
5944 (new_until_next_fsm): Remove.
5945 (until_next_fsm::should_stop): Rename from
5946 until_next_fsm_should_stop.
5947 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
5948 (until_next_fsm::do_async_reply_reason): Rename from
5949 until_next_fsm_async_reply_reason.
5950 (struct finish_command_fsm): Inherit from thread_fsm. Add
5951 constructor. Change type of breakpoint.
5952 (finish_command_fsm_ops): Remove.
5953 (new_finish_command_fsm): Remove.
5954 (finish_command_fsm::should_stop): Rename from
5955 finish_command_fsm_should_stop.
5956 (finish_command_fsm::clean_up): Rename from
5957 finish_command_fsm_clean_up.
5958 (finish_command_fsm::return_value): Rename from
5959 finish_command_fsm_return_value.
5960 (finish_command_fsm::do_async_reply_reason): Rename from
5961 finish_command_fsm_async_reply_reason.
5962 (finish_command): Update.
5963 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
5964 Add constructor.
5965 (call_thread_fsm_ops): Remove.
5966 (call_thread_fsm::call_thread_fsm): Rename from
5967 new_call_thread_fsm.
5968 (call_thread_fsm::should_stop): Rename from
5969 call_thread_fsm_should_stop.
5970 (call_thread_fsm::should_notify_stop): Rename from
5971 call_thread_fsm_should_notify_stop.
5972 (run_inferior_call, call_function_by_hand_dummy): Update.
5973 * cli/cli-interp.c (should_print_stop_to_console): Update.
5974 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
5975 Add constructor. Change type of location_breakpoint,
5976 caller_breakpoint.
5977 (until_break_fsm_ops): Remove.
5978 (new_until_break_fsm): Remove.
5979 (until_break_fsm::should_stop): Rename from
5980 until_break_fsm_should_stop.
5981 (until_break_fsm::clean_up): Rename from
5982 until_break_fsm_clean_up.
5983 (until_break_fsm::do_async_reply_reason): Rename from
5984 until_break_fsm_async_reply_reason.
5985 (until_break_command): Update.
5986 * thread-fsm.c: Remove.
5987 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
5988
1a5c2598
TT
59892019-02-07 Tom Tromey <tom@tromey.com>
5990
5991 * yy-remap.h: Add include guard.
5992 * xtensa-tdep.h: Add include guard.
5993 * xcoffread.h: Rename include guard.
5994 * varobj-iter.h: Add include guard.
5995 * tui/tui.h: Rename include guard.
5996 * tui/tui-winsource.h: Rename include guard.
5997 * tui/tui-wingeneral.h: Rename include guard.
5998 * tui/tui-windata.h: Rename include guard.
5999 * tui/tui-win.h: Rename include guard.
6000 * tui/tui-stack.h: Rename include guard.
6001 * tui/tui-source.h: Rename include guard.
6002 * tui/tui-regs.h: Rename include guard.
6003 * tui/tui-out.h: Rename include guard.
6004 * tui/tui-layout.h: Rename include guard.
6005 * tui/tui-io.h: Rename include guard.
6006 * tui/tui-hooks.h: Rename include guard.
6007 * tui/tui-file.h: Rename include guard.
6008 * tui/tui-disasm.h: Rename include guard.
6009 * tui/tui-data.h: Rename include guard.
6010 * tui/tui-command.h: Rename include guard.
6011 * tic6x-tdep.h: Add include guard.
6012 * target/waitstatus.h: Rename include guard.
6013 * target/wait.h: Rename include guard.
6014 * target/target.h: Rename include guard.
6015 * target/resume.h: Rename include guard.
6016 * target-float.h: Rename include guard.
6017 * stabsread.h: Add include guard.
6018 * rs6000-tdep.h: Add include guard.
6019 * riscv-fbsd-tdep.h: Add include guard.
6020 * regformats/regdef.h: Rename include guard.
6021 * record.h: Rename include guard.
6022 * python/python.h: Rename include guard.
6023 * python/python-internal.h: Rename include guard.
6024 * python/py-stopevent.h: Rename include guard.
6025 * python/py-ref.h: Rename include guard.
6026 * python/py-record.h: Rename include guard.
6027 * python/py-record-full.h: Rename include guard.
6028 * python/py-record-btrace.h: Rename include guard.
6029 * python/py-instruction.h: Rename include guard.
6030 * python/py-events.h: Rename include guard.
6031 * python/py-event.h: Rename include guard.
6032 * procfs.h: Add include guard.
6033 * proc-utils.h: Add include guard.
6034 * p-lang.h: Add include guard.
6035 * or1k-tdep.h: Rename include guard.
6036 * observable.h: Rename include guard.
6037 * nto-tdep.h: Rename include guard.
6038 * nat/x86-linux.h: Rename include guard.
6039 * nat/x86-linux-dregs.h: Rename include guard.
6040 * nat/x86-gcc-cpuid.h: Add include guard.
6041 * nat/x86-dregs.h: Rename include guard.
6042 * nat/x86-cpuid.h: Rename include guard.
6043 * nat/ppc-linux.h: Rename include guard.
6044 * nat/mips-linux-watch.h: Rename include guard.
6045 * nat/linux-waitpid.h: Rename include guard.
6046 * nat/linux-ptrace.h: Rename include guard.
6047 * nat/linux-procfs.h: Rename include guard.
6048 * nat/linux-osdata.h: Rename include guard.
6049 * nat/linux-nat.h: Rename include guard.
6050 * nat/linux-namespaces.h: Rename include guard.
6051 * nat/linux-btrace.h: Rename include guard.
6052 * nat/glibc_thread_db.h: Rename include guard.
6053 * nat/gdb_thread_db.h: Rename include guard.
6054 * nat/gdb_ptrace.h: Rename include guard.
6055 * nat/fork-inferior.h: Rename include guard.
6056 * nat/amd64-linux-siginfo.h: Rename include guard.
6057 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
6058 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
6059 * nat/aarch64-linux.h: Rename include guard.
6060 * nat/aarch64-linux-hw-point.h: Rename include guard.
6061 * mn10300-tdep.h: Add include guard.
6062 * mips-linux-tdep.h: Add include guard.
6063 * mi/mi-parse.h: Rename include guard.
6064 * mi/mi-out.h: Rename include guard.
6065 * mi/mi-main.h: Rename include guard.
6066 * mi/mi-interp.h: Rename include guard.
6067 * mi/mi-getopt.h: Rename include guard.
6068 * mi/mi-console.h: Rename include guard.
6069 * mi/mi-common.h: Rename include guard.
6070 * mi/mi-cmds.h: Rename include guard.
6071 * mi/mi-cmd-break.h: Rename include guard.
6072 * m2-lang.h: Add include guard.
6073 * location.h: Rename include guard.
6074 * linux-record.h: Rename include guard.
6075 * linux-nat.h: Add include guard.
6076 * linux-fork.h: Add include guard.
6077 * i386-darwin-tdep.h: Rename include guard.
6078 * hppa-linux-offsets.h: Add include guard.
6079 * guile/guile.h: Rename include guard.
6080 * guile/guile-internal.h: Rename include guard.
6081 * gnu-nat.h: Rename include guard.
6082 * gdb-stabs.h: Rename include guard.
6083 * frv-tdep.h: Add include guard.
6084 * f-lang.h: Add include guard.
6085 * event-loop.h: Add include guard.
6086 * darwin-nat.h: Rename include guard.
6087 * cp-abi.h: Rename include guard.
6088 * config/sparc/nm-sol2.h: Rename include guard.
6089 * config/nm-nto.h: Rename include guard.
6090 * config/nm-linux.h: Add include guard.
6091 * config/i386/nm-i386gnu.h: Rename include guard.
6092 * config/djgpp/nl_types.h: Rename include guard.
6093 * config/djgpp/langinfo.h: Rename include guard.
6094 * compile/gcc-cp-plugin.h: Add include guard.
6095 * compile/gcc-c-plugin.h: Add include guard.
6096 * compile/compile.h: Rename include guard.
6097 * compile/compile-object-run.h: Rename include guard.
6098 * compile/compile-object-load.h: Rename include guard.
6099 * compile/compile-internal.h: Rename include guard.
6100 * compile/compile-cplus.h: Rename include guard.
6101 * compile/compile-c.h: Rename include guard.
6102 * common/xml-utils.h: Rename include guard.
6103 * common/x86-xstate.h: Rename include guard.
6104 * common/version.h: Rename include guard.
6105 * common/vec.h: Rename include guard.
6106 * common/tdesc.h: Rename include guard.
6107 * common/selftest.h: Rename include guard.
6108 * common/scoped_restore.h: Rename include guard.
6109 * common/scoped_mmap.h: Rename include guard.
6110 * common/scoped_fd.h: Rename include guard.
6111 * common/safe-iterator.h: Rename include guard.
6112 * common/run-time-clock.h: Rename include guard.
6113 * common/refcounted-object.h: Rename include guard.
6114 * common/queue.h: Rename include guard.
6115 * common/ptid.h: Rename include guard.
6116 * common/print-utils.h: Rename include guard.
6117 * common/preprocessor.h: Rename include guard.
6118 * common/pathstuff.h: Rename include guard.
6119 * common/observable.h: Rename include guard.
6120 * common/netstuff.h: Rename include guard.
6121 * common/job-control.h: Rename include guard.
6122 * common/host-defs.h: Rename include guard.
6123 * common/gdb_wait.h: Rename include guard.
6124 * common/gdb_vecs.h: Rename include guard.
6125 * common/gdb_unlinker.h: Rename include guard.
6126 * common/gdb_unique_ptr.h: Rename include guard.
6127 * common/gdb_tilde_expand.h: Rename include guard.
6128 * common/gdb_sys_time.h: Rename include guard.
6129 * common/gdb_string_view.h: Rename include guard.
6130 * common/gdb_splay_tree.h: Rename include guard.
6131 * common/gdb_setjmp.h: Rename include guard.
6132 * common/gdb_ref_ptr.h: Rename include guard.
6133 * common/gdb_optional.h: Rename include guard.
6134 * common/gdb_locale.h: Rename include guard.
6135 * common/gdb_assert.h: Rename include guard.
6136 * common/filtered-iterator.h: Rename include guard.
6137 * common/filestuff.h: Rename include guard.
6138 * common/fileio.h: Rename include guard.
6139 * common/environ.h: Rename include guard.
6140 * common/common-utils.h: Rename include guard.
6141 * common/common-types.h: Rename include guard.
6142 * common/common-regcache.h: Rename include guard.
6143 * common/common-inferior.h: Rename include guard.
6144 * common/common-gdbthread.h: Rename include guard.
6145 * common/common-exceptions.h: Rename include guard.
6146 * common/common-defs.h: Rename include guard.
6147 * common/common-debug.h: Rename include guard.
6148 * common/cleanups.h: Rename include guard.
6149 * common/buffer.h: Rename include guard.
6150 * common/btrace-common.h: Rename include guard.
6151 * common/break-common.h: Rename include guard.
6152 * cli/cli-utils.h: Rename include guard.
6153 * cli/cli-style.h: Rename include guard.
6154 * cli/cli-setshow.h: Rename include guard.
6155 * cli/cli-script.h: Rename include guard.
6156 * cli/cli-interp.h: Rename include guard.
6157 * cli/cli-decode.h: Rename include guard.
6158 * cli/cli-cmds.h: Rename include guard.
6159 * charset-list.h: Add include guard.
6160 * buildsym-legacy.h: Rename include guard.
6161 * bfin-tdep.h: Add include guard.
6162 * ax.h: Rename include guard.
6163 * arm-linux-tdep.h: Add include guard.
6164 * arm-fbsd-tdep.h: Add include guard.
6165 * arch/xtensa.h: Rename include guard.
6166 * arch/tic6x.h: Add include guard.
6167 * arch/i386.h: Add include guard.
6168 * arch/arm.h: Rename include guard.
6169 * arch/arm-linux.h: Rename include guard.
6170 * arch/arm-get-next-pcs.h: Rename include guard.
6171 * arch/amd64.h: Add include guard.
6172 * arch/aarch64-insn.h: Rename include guard.
6173 * arch-utils.h: Rename include guard.
6174 * annotate.h: Add include guard.
6175 * amd64-darwin-tdep.h: Rename include guard.
6176 * aarch64-linux-tdep.h: Add include guard.
6177 * aarch64-fbsd-tdep.h: Add include guard.
6178 * aarch32-linux-nat.h: Add include guard.
6179
ab9268d2
PW
61802019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6181
6182 * macrotab.c (macro_define_internal): New function that
6183 factorizes macro_define_object_internal and macro_define_function
6184 code.
6185 (macro_define_object_internal): Use macro_define_internal.
6186 (macro_define_function): Likewise.
6187
bb0da2b4
PW
61882019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6189
6190 * macrocmd.c (extract_identifier): Return
6191 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
6192 callers.
6193
424eb552
JB
61942019-02-06 John Baldwin <jhb@FreeBSD.org>
6195
6196 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
6197
1688cb29
TT
61982019-02-05 Tom Tromey <tom@tromey.com>
6199
6200 * target.c (target_stack::unpush): Move assertion earlier.
6201
b5eba2d8
TT
62022019-01-30 Tom Tromey <tom@tromey.com>
6203
6204 PR python/23615:
6205 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
6206 (gdbpy_parse_and_eval): Likewise.
6207 * python/python-internal.h (gdbpy_allow_threads): New class.
6208
7054e2ff
JB
62092019-01-28 John Baldwin <jhb@FreeBSD.org>
6210
6211 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
6212 (aarch64_fbsd_fpregmap): Move earlier.
6213 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
6214 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6215 instead of individual calls to trad_frame_set_reg_addr.
6216 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
6217 earlier.
6218 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
6219 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
6220 instead of individual calls to trad_frame_set_reg_addr.
6221
36c25ffa
AH
62222019-01-28 Alan Hayward <alan.hayward@arm.com>
6223
6224 * CONTRIBUTE: Replace contribution list with wiki link.
6225
a0707f3c
TT
62262019-01-25 Tom Tromey <tom@tromey.com>
6227
6228 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
6229
0747795c
TT
62302019-01-25 Tom Tromey <tom@tromey.com>
6231
6232 * xtensa-linux-nat.c: Fix common/ includes.
6233 * xml-support.h: Fix common/ includes.
6234 * xml-support.c: Fix common/ includes.
6235 * x86-linux-nat.c: Fix common/ includes.
6236 * windows-nat.c: Fix common/ includes.
6237 * varobj.h: Fix common/ includes.
6238 * varobj.c: Fix common/ includes.
6239 * value.c: Fix common/ includes.
6240 * valops.c: Fix common/ includes.
6241 * utils.c: Fix common/ includes.
6242 * unittests/xml-utils-selftests.c: Fix common/ includes.
6243 * unittests/utils-selftests.c: Fix common/ includes.
6244 * unittests/unpack-selftests.c: Fix common/ includes.
6245 * unittests/tracepoint-selftests.c: Fix common/ includes.
6246 * unittests/style-selftests.c: Fix common/ includes.
6247 * unittests/string_view-selftests.c: Fix common/ includes.
6248 * unittests/scoped_restore-selftests.c: Fix common/ includes.
6249 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
6250 * unittests/scoped_fd-selftests.c: Fix common/ includes.
6251 * unittests/rsp-low-selftests.c: Fix common/ includes.
6252 * unittests/parse-connection-spec-selftests.c: Fix common/
6253 includes.
6254 * unittests/optional-selftests.c: Fix common/ includes.
6255 * unittests/offset-type-selftests.c: Fix common/ includes.
6256 * unittests/observable-selftests.c: Fix common/ includes.
6257 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
6258 * unittests/memrange-selftests.c: Fix common/ includes.
6259 * unittests/memory-map-selftests.c: Fix common/ includes.
6260 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
6261 * unittests/function-view-selftests.c: Fix common/ includes.
6262 * unittests/environ-selftests.c: Fix common/ includes.
6263 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
6264 * unittests/common-utils-selftests.c: Fix common/ includes.
6265 * unittests/cli-utils-selftests.c: Fix common/ includes.
6266 * unittests/array-view-selftests.c: Fix common/ includes.
6267 * ui-file.c: Fix common/ includes.
6268 * tui/tui-io.c: Fix common/ includes.
6269 * tracepoint.h: Fix common/ includes.
6270 * tracepoint.c: Fix common/ includes.
6271 * tracefile-tfile.c: Fix common/ includes.
6272 * top.h: Fix common/ includes.
6273 * top.c: Fix common/ includes.
6274 * thread.c: Fix common/ includes.
6275 * target/waitstatus.h: Fix common/ includes.
6276 * target/waitstatus.c: Fix common/ includes.
6277 * target.h: Fix common/ includes.
6278 * target.c: Fix common/ includes.
6279 * target-memory.c: Fix common/ includes.
6280 * target-descriptions.c: Fix common/ includes.
6281 * symtab.h: Fix common/ includes.
6282 * symfile.c: Fix common/ includes.
6283 * stap-probe.c: Fix common/ includes.
6284 * spu-linux-nat.c: Fix common/ includes.
6285 * sparc-nat.c: Fix common/ includes.
6286 * source.c: Fix common/ includes.
6287 * solib.c: Fix common/ includes.
6288 * solib-target.c: Fix common/ includes.
6289 * ser-unix.c: Fix common/ includes.
6290 * ser-tcp.c: Fix common/ includes.
6291 * ser-pipe.c: Fix common/ includes.
6292 * ser-base.c: Fix common/ includes.
6293 * selftest-arch.c: Fix common/ includes.
6294 * s12z-tdep.c: Fix common/ includes.
6295 * rust-exp.y: Fix common/ includes.
6296 * rs6000-aix-tdep.c: Fix common/ includes.
6297 * riscv-tdep.c: Fix common/ includes.
6298 * remote.c: Fix common/ includes.
6299 * remote-notif.h: Fix common/ includes.
6300 * remote-fileio.h: Fix common/ includes.
6301 * remote-fileio.c: Fix common/ includes.
6302 * regcache.h: Fix common/ includes.
6303 * regcache.c: Fix common/ includes.
6304 * record-btrace.c: Fix common/ includes.
6305 * python/python.c: Fix common/ includes.
6306 * python/py-type.c: Fix common/ includes.
6307 * python/py-inferior.c: Fix common/ includes.
6308 * progspace.h: Fix common/ includes.
6309 * producer.c: Fix common/ includes.
6310 * procfs.c: Fix common/ includes.
6311 * proc-api.c: Fix common/ includes.
6312 * printcmd.c: Fix common/ includes.
6313 * ppc-linux-nat.c: Fix common/ includes.
6314 * parser-defs.h: Fix common/ includes.
6315 * osdata.c: Fix common/ includes.
6316 * obsd-nat.c: Fix common/ includes.
6317 * nat/x86-linux.c: Fix common/ includes.
6318 * nat/x86-linux-dregs.c: Fix common/ includes.
6319 * nat/x86-dregs.h: Fix common/ includes.
6320 * nat/x86-dregs.c: Fix common/ includes.
6321 * nat/ppc-linux.c: Fix common/ includes.
6322 * nat/mips-linux-watch.h: Fix common/ includes.
6323 * nat/mips-linux-watch.c: Fix common/ includes.
6324 * nat/linux-waitpid.c: Fix common/ includes.
6325 * nat/linux-ptrace.h: Fix common/ includes.
6326 * nat/linux-ptrace.c: Fix common/ includes.
6327 * nat/linux-procfs.c: Fix common/ includes.
6328 * nat/linux-personality.c: Fix common/ includes.
6329 * nat/linux-osdata.c: Fix common/ includes.
6330 * nat/linux-namespaces.c: Fix common/ includes.
6331 * nat/linux-btrace.h: Fix common/ includes.
6332 * nat/linux-btrace.c: Fix common/ includes.
6333 * nat/fork-inferior.c: Fix common/ includes.
6334 * nat/amd64-linux-siginfo.c: Fix common/ includes.
6335 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
6336 * nat/aarch64-linux.c: Fix common/ includes.
6337 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
6338 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
6339 * namespace.h: Fix common/ includes.
6340 * mips-linux-tdep.c: Fix common/ includes.
6341 * minsyms.c: Fix common/ includes.
6342 * mi/mi-parse.h: Fix common/ includes.
6343 * mi/mi-main.c: Fix common/ includes.
6344 * mi/mi-cmd-env.c: Fix common/ includes.
6345 * memrange.h: Fix common/ includes.
6346 * memattr.c: Fix common/ includes.
6347 * maint.h: Fix common/ includes.
6348 * maint.c: Fix common/ includes.
6349 * main.c: Fix common/ includes.
6350 * machoread.c: Fix common/ includes.
6351 * location.c: Fix common/ includes.
6352 * linux-thread-db.c: Fix common/ includes.
6353 * linux-nat.c: Fix common/ includes.
6354 * linux-fork.c: Fix common/ includes.
6355 * inline-frame.c: Fix common/ includes.
6356 * infrun.c: Fix common/ includes.
6357 * inflow.c: Fix common/ includes.
6358 * inferior.h: Fix common/ includes.
6359 * inferior.c: Fix common/ includes.
6360 * infcmd.c: Fix common/ includes.
6361 * inf-ptrace.c: Fix common/ includes.
6362 * inf-child.c: Fix common/ includes.
6363 * ia64-linux-nat.c: Fix common/ includes.
6364 * i387-tdep.c: Fix common/ includes.
6365 * i386-tdep.c: Fix common/ includes.
6366 * i386-linux-tdep.c: Fix common/ includes.
6367 * i386-linux-nat.c: Fix common/ includes.
6368 * i386-go32-tdep.c: Fix common/ includes.
6369 * i386-fbsd-tdep.c: Fix common/ includes.
6370 * i386-fbsd-nat.c: Fix common/ includes.
6371 * guile/scm-type.c: Fix common/ includes.
6372 * guile/guile.c: Fix common/ includes.
6373 * go32-nat.c: Fix common/ includes.
6374 * gnu-nat.c: Fix common/ includes.
6375 * gdbthread.h: Fix common/ includes.
6376 * gdbarch-selftests.c: Fix common/ includes.
6377 * gdb_usleep.c: Fix common/ includes.
6378 * gdb_select.h: Fix common/ includes.
6379 * gdb_bfd.c: Fix common/ includes.
6380 * gcore.c: Fix common/ includes.
6381 * fork-child.c: Fix common/ includes.
6382 * findvar.c: Fix common/ includes.
6383 * fbsd-nat.c: Fix common/ includes.
6384 * event-top.c: Fix common/ includes.
6385 * event-loop.c: Fix common/ includes.
6386 * dwarf2read.c: Fix common/ includes.
6387 * dwarf2loc.c: Fix common/ includes.
6388 * dwarf2-frame.c: Fix common/ includes.
6389 * dwarf-index-cache.c: Fix common/ includes.
6390 * dtrace-probe.c: Fix common/ includes.
6391 * disasm-selftests.c: Fix common/ includes.
6392 * defs.h: Fix common/ includes.
6393 * csky-tdep.c: Fix common/ includes.
6394 * cp-valprint.c: Fix common/ includes.
6395 * cp-support.h: Fix common/ includes.
6396 * cp-support.c: Fix common/ includes.
6397 * corelow.c: Fix common/ includes.
6398 * completer.h: Fix common/ includes.
6399 * completer.c: Fix common/ includes.
6400 * compile/compile.c: Fix common/ includes.
6401 * compile/compile-loc2c.c: Fix common/ includes.
6402 * compile/compile-cplus-types.c: Fix common/ includes.
6403 * compile/compile-cplus-symbols.c: Fix common/ includes.
6404 * command.h: Fix common/ includes.
6405 * cli/cli-dump.c: Fix common/ includes.
6406 * cli/cli-cmds.c: Fix common/ includes.
6407 * charset.c: Fix common/ includes.
6408 * build-id.c: Fix common/ includes.
6409 * btrace.h: Fix common/ includes.
6410 * btrace.c: Fix common/ includes.
6411 * breakpoint.h: Fix common/ includes.
6412 * breakpoint.c: Fix common/ includes.
6413 * ax.h:
6414 (enum agent_op): Fix common/ includes.
6415 * ax-general.c (struct aop_map): Fix common/ includes.
6416 * ax-gdb.c: Fix common/ includes.
6417 * auxv.c: Fix common/ includes.
6418 * auto-load.c: Fix common/ includes.
6419 * arm-tdep.c: Fix common/ includes.
6420 * arch/riscv.c: Fix common/ includes.
6421 * arch/ppc-linux-common.c: Fix common/ includes.
6422 * arch/i386.c: Fix common/ includes.
6423 * arch/arm.c: Fix common/ includes.
6424 * arch/arm-linux.c: Fix common/ includes.
6425 * arch/arm-get-next-pcs.c: Fix common/ includes.
6426 * arch/amd64.c: Fix common/ includes.
6427 * arch/aarch64.c: Fix common/ includes.
6428 * arch/aarch64-insn.c: Fix common/ includes.
6429 * arch-utils.c: Fix common/ includes.
6430 * amd64-windows-tdep.c: Fix common/ includes.
6431 * amd64-tdep.c: Fix common/ includes.
6432 * amd64-sol2-tdep.c: Fix common/ includes.
6433 * amd64-obsd-tdep.c: Fix common/ includes.
6434 * amd64-nbsd-tdep.c: Fix common/ includes.
6435 * amd64-linux-tdep.c: Fix common/ includes.
6436 * amd64-linux-nat.c: Fix common/ includes.
6437 * amd64-fbsd-tdep.c: Fix common/ includes.
6438 * amd64-fbsd-nat.c: Fix common/ includes.
6439 * amd64-dicos-tdep.c: Fix common/ includes.
6440 * amd64-darwin-tdep.c: Fix common/ includes.
6441 * agent.c: Fix common/ includes.
6442 * ada-lang.h: Fix common/ includes.
6443 * ada-lang.c: Fix common/ includes.
6444 * aarch64-tdep.c: Fix common/ includes.
6445
2f5c153e
TT
64462019-01-25 Tom Tromey <tom@tromey.com>
6447
6448 * common/create-version.sh: Use common/version.h.
6449
adc6a863
PA
64502019-01-24 Pedro Alves <palves@redhat.com>
6451
6452 * infrun.c (signal_stop, signal_print, signal_program)
6453 (signal_catch, signal_pass): Now arrays instead of pointers.
6454 (update_signals_program_target, do_target_resume)
6455 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
6456 * linux-nat.c (linux_nat_target::pass_signals)
6457 (linux_nat_target::create_inferior, linux_nat_target::attach):
6458 Adjust.
6459 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
6460 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
6461 * procfs.c (procfs_target::pass_signals): Adjust.
6462 * record-full.c (record_full_target::resume): Adjust.
6463 * remote.c (remote_target::pass_signals)
6464 (remote_target::program_signals): Adjust.
6465 * target-debug.h (target_debug_print_signals): Now takes a
6466 gdb::array_view as parameter. Adjust.
6467 * target.h (target_ops) <pass_signals, program_signals>: Replace
6468 pointer and length parameters with gdb::array_view.
6469 (target_pass_signals, target_program_signals): Likewise.
6470 * target-delegates.c: Regenerate.
6471
3046d67a
PA
64722019-01-24 Pedro Alves <palves@redhat.com>
6473
6474 * common/forward-scope-exit.h
6475 (forward_scope_exit::forward_scope_exit): Pass arguments to
6476 m_bind_function directly, instead of creating a std::bind and
6477 copying that.
6478
353229bf
AH
64792019-01-24 Alan Hayward <alan.hayward@arm.com>
6480
6481 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6482 for static members.
6483 (pass_in_v_vfp_candidate): Likewise.
6484
311dc83a
TT
64852019-01-23 Tom Tromey <tom@tromey.com>
6486 Pedro Alves <palves@redhat.com>
6487
6488 * regcache.c (class regcache_invalidator): Remove.
6489 (regcache::raw_write): Use make_scope_exit.
6490
296bd123
TT
64912019-01-23 Tom Tromey <tom@tromey.com>
6492
6493 * ui-out.h (class ui_out_emit_type): Update comment.
6494
979a0d13
TT
64952019-01-23 Tom Tromey <tom@tromey.com>
6496
6497 * infrun.c (fetch_inferior_event): Update comment.
6498
d238133d
TT
64992019-01-23 Tom Tromey <tom@tromey.com>
6500 Pedro Alves <palves@redhat.com>
6501
6502 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
6503 parameter.
6504 (fetch_inferior_event): Use SCOPE_EXIT.
6505
6506
9885e6bb
TT
65072019-01-23 Tom Tromey <tom@tromey.com>
6508 Pedro Alves <palves@redhat.com>
6509
6510 * infrun.c (disable_thread_events): Delete.
6511 (stop_all_threads): Use SCOPE_EXIT.
6512
286526c1
TT
65132019-01-23 Tom Tromey <tom@tromey.com>
6514 Pedro Alves <palves@redhat.com>
6515
6516 * symfile.c: Include forward-scope-exit.h.
6517 (clear_symtab_users_cleanup): Replace forward declaration with
6518 a FORWARD_SCOPE_EXIT.
6519 (syms_from_objfile_1): Use the forward_scope_exit and
6520 gdb::optional instead of cleanup_function.
6521 (reread_symbols): Use the forward_scope_exit instead of
6522 cleanup_function.
6523 (clear_symtab_users_cleanup): Remove function.
6524
1db93f14
TT
65252019-01-23 Tom Tromey <tom@tromey.com>
6526 Pedro Alves <palves@redhat.com>
6527
6528 * linux-nat.c: Include scope-exit.h.
6529 (cleanup_target_stop): Remove.
6530 (linux_nat_target::static_tracepoint_markers_by_strid): Use
6531 SCOPE_EXIT.
6532
2cc83d1e
TT
65332019-01-23 Tom Tromey <tom@tromey.com>
6534 Pedro Alves <palves@redhat.com>
6535
6536 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
6537 (call_function_by_hand_dummy): Use SCOPE_EXIT.
6538
694c6bf5
TT
65392019-01-23 Tom Tromey <tom@tromey.com>
6540 Andrew Burgess <andrew.burgess@embecosm.com>
6541 Pedro Alves <palves@redhat.com>
6542
6543 * infrun.c (fetch_inferior_event): Use scope_exit.
6544 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
6545 * top.c (execute_command): Use scope_exit.
6546 * breakpoint.c (bpstat_do_actions): Use scope_exit.
6547 * utils.c (do_bpstat_clear_actions_cleanup)
6548 (make_bpstat_clear_actions_cleanup): Remove.
6549
4c41382a
TT
65502019-01-23 Tom Tromey <tom@tromey.com>
6551 Pedro Alves <palves@redhat.com>
6552
6553 * infrun.c: Include "common/scope-exit.h"
6554 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
6555 (wait_for_inferior): Use SCOPE_EXIT.
6556 (fetch_inferior_event): Use scope_exit.
6557
89f8fb50
TT
65582019-01-23 Tom Tromey <tom@tromey.com>
6559 Pedro Alves <palves@redhat.com>
6560
6561 * breakpoint.c (create_breakpoint): Remove cleanup.
6562
5419bdae
TT
65632019-01-23 Tom Tromey <tom@tromey.com>
6564 Andrew Burgess <andrew.burgess@embecosm.com>
6565 Pedro Alves <palves@redhat.com>
6566
e587ef42
PA
65672019-01-23 Pedro Alves <palves@redhat.com>
6568
6569 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
6570
77f0e74c
PA
65712019-01-23 Pedro Alves <palves@redhat.com>
6572 Andrew Burgess <andrew.burgess@embecosm.com>
6573
6574 * gdbthread.h: Include "common/forward-scope-exit.h".
6575 (scoped_finish_thread_state): Redefine custom class in terms of
6576 forward_scope_exit.
6577
5b9b3e53
PA
65782019-01-23 Pedro Alves <palves@redhat.com>
6579 Andrew Burgess <andrew.burgess@embecosm.com>
6580
6581 * common/forward-scope-exit.h: New file.
6582
54b65c9b
PA
65832019-01-23 Pedro Alves <palves@redhat.com>
6584 Andrew Burgess <andrew.burgess@embecosm.com>
6585 Tom Tromey <tom@tromey.com>
6586
6587 * common/scope-exit.h: New file.
6588
cf08fb29
PA
65892019-01-23 Pedro Alves <palves@redhat.com>
6590
6591 * common/preprocessor.h (ESC): Rename to ...
6592 (ESC_PARENS): ... this.
6593 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
6594 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
6595
ae73e2e2
TT
65962019-01-23 Tom Tromey <tom@tromey.com>
6597
6598 * language.h (class scoped_switch_to_sym_language_if_auto):
6599 Initialize m_lang in both cases.
6600
6594e122
AH
66012019-01-23 Alan Hayward <alan.hayward@arm.com>
6602
6603 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
6604 with XCNEW.
6605
a7c9855d
TT
66062019-01-22 Tom Tromey <tom@tromey.com>
6607
6608 * corelow.c: Do not include sys/file.h.
6609
93cc1d53
TT
66102019-01-22 Tom Tromey <tom@tromey.com>
6611
6612 * tui/tui-wingeneral.h: Include gdb_curses.h.
6613
38561778
TT
66142019-01-22 Tom Tromey <tom@tromey.com>
6615
6616 * source-cache.h (class source_cache) <get_source_lines,
6617 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
6618
37b3ab5b
TT
66192019-01-22 Tom Tromey <tom@tromey.com>
6620
6621 * remote-fileio.h (struct remote_target): Declare.
6622
3fabc016
TT
66232019-01-22 Tom Tromey <tom@tromey.com>
6624
6625 * python/py-arch.c: Do not include py-ref.h.
6626 * python/py-bpevent.c: Do not include py-ref.h.
6627 * python/py-cmd.c: Do not include py-ref.h.
6628 * python/py-continueevent.c: Do not include py-ref.h.
6629 * python/py-event.h: Do not include py-ref.h.
6630 * python/py-evtregistry.c: Do not include py-ref.h.
6631 * python/py-finishbreakpoint.c: Do not include py-ref.h.
6632 * python/py-frame.c: Do not include py-ref.h.
6633 * python/py-framefilter.c: Do not include py-ref.h.
6634 * python/py-function.c: Do not include py-ref.h.
6635 * python/py-infevents.c: Do not include py-ref.h.
6636 * python/py-linetable.c: Do not include py-ref.h.
6637 * python/py-objfile.c: Do not include py-ref.h.
6638 * python/py-param.c: Do not include py-ref.h.
6639 * python/py-prettyprint.c: Do not include py-ref.h.
6640 * python/py-progspace.c: Do not include py-ref.h.
6641 * python/py-symbol.c: Do not include py-ref.h.
6642 * python/py-symtab.c: Do not include py-ref.h.
6643 * python/py-type.c: Do not include py-ref.h.
6644 * python/py-unwind.c: Do not include py-ref.h.
6645 * python/py-utils.c: Do not include py-ref.h.
6646 * python/py-value.c: Do not include py-ref.h.
6647 * python/py-varobj.c: Do not include py-ref.h.
6648 * python/py-xmethods.c: Do not include py-ref.h.
6649 * python/python.c: Do not include py-ref.h.
6650 * varobj.c: Do not include py-ref.h.
6651
6b4d7774
TT
66522019-01-22 Tom Tromey <tom@tromey.com>
6653
6654 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
6655 keyword for bcache.
6656
7af7e9b5
TT
66572019-01-22 Tom Tromey <tom@tromey.com>
6658
6659 * compile/compile-cplus-types.c: Remove a comment by #include.
6660
951d1049
TT
66612019-01-22 Tom Tromey <tom@tromey.com>
6662
6663 * compile/gcc-c-plugin.h: Include compile-internal.h.
6664
d65d5705
TT
66652019-01-22 Tom Tromey <tom@tromey.com>
6666
6667 * stabsread.c (EXTERN): Do not define.
6668 (symnum, next_symbol_text_func, processing_gcc_compilation)
6669 (within_function, global_sym_chain, global_stabs)
6670 (previous_stab_code, this_object_header_files)
6671 (n_this_object_header_files)
6672 (n_allocated_this_object_header_files): Define.
6673 * stabsread.h (EXTERN): Never define. Use "extern".
6674
b6fb1ee5
PW
66752019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6676
6677 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
6678 history_value.
6679
be6d4f74
TT
66802019-01-21 Tom Tromey <tom@tromey.com>
6681
6682 * ui-out.c: Fix includes.
6683 * tui/tui-source.c: Fix includes.
6684 * target.c: Fix includes.
6685 * remote.c: Fix includes.
6686 * regcache.c: Fix includes.
6687 * python/py-block.c: Fix includes.
6688 * printcmd.c: Fix includes.
6689 * or1k-tdep.c: Fix includes.
6690 * mi/mi-main.c: Fix includes.
6691 * m32r-tdep.c: Fix includes.
6692 * csky-tdep.c: Fix includes.
6693 * compile/compile-cplus-types.c: Fix includes.
6694 * cli/cli-interp.c: Fix includes.
6695
73021deb
AH
66962019-01-21 Alan Hayward <alan.hayward@arm.com>
6697
6698 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
6699 for padding.
6700
7932255d
TT
67012019-01-16 Tom Tromey <tom@tromey.com>
6702
6703 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
6704 earlier.
6705 (struct objfile) <msymbols_range>: Move from top level.
6706 <msymbols>: New method.
6707 (class objfile_msymbols): Remove.
6708 * symtab.c (default_collect_symbol_completion_matches_break_on):
6709 Update.
6710 * symmisc.c (dump_msymbols): Update.
6711 * stabsread.c (scan_file_globals): Update.
6712 * objc-lang.c (info_selectors_command, info_classes_command)
6713 (find_methods): Update.
6714 * minsyms.c (find_solib_trampoline_target): Update.
6715 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
6716 * coffread.c (coff_symfile_read): Update.
6717 * ada-lang.c (ada_lookup_simple_minsym)
6718 (ada_collect_symbol_completion_matches): Update.
6719
604b1bfb
TT
67202019-01-16 Tom Tromey <tom@tromey.com>
6721
6722 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
6723 type. Remove no-argument constructor.
6724 <iterator::operator++>: Simplify.
6725 <begin>: Update.
6726 <end>: Use minimal_symbol_count.
6727
f252c6d5
TT
67282019-01-16 Tom Tromey <tom@tromey.com>
6729
6730 * objfiles.h (struct objfile) <psymtabs>: New method.
6731 (class objfile_psymtabs): Remove.
6732 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
6733 typedef.
6734 <range>: New method.
6735 (require_partial_symbols): Change return type.
6736 * psymtab.c (require_partial_symbols)
6737 (psym_expand_symtabs_matching): Update.
6738 * mdebugread.c (parse_partial_symbols): Update.
6739 * dbxread.c (dbx_end_psymtab): Update.
6740
b669c953
TT
67412019-01-15 Tom Tromey <tom@tromey.com>
6742
6743 * symtab.c (lookup_objfile_from_block)
6744 (lookup_symbol_in_objfile_symtabs)
6745 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
6746 (find_line_symtab, info_sources_command)
6747 (default_collect_symbol_completion_matches_break_on)
6748 (make_source_files_completion_list): Update.
6749 * symmisc.c (print_objfile_statistics, dump_objfile)
6750 (maintenance_print_symbols, maintenance_info_symtabs)
6751 (maintenance_check_symtabs, maintenance_info_line_tables):
6752 Update.
6753 * source.c (select_source_symtab)
6754 (forget_cached_source_info_for_objfile): Update.
6755 * objfiles.h (class objfile_compunits): Remove.
6756 (struct objfile) <compunits_range>: New typedef.
6757 (compunits): New method.
6758 * objfiles.c (objfile_relocate1): Update.
6759 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6760 * maint.c (count_symtabs_and_blocks): Update.
6761 * linespec.c (iterate_over_all_matching_symtabs): Update.
6762 * cp-support.c (add_symbol_overload_list_qualified): Update.
6763 * coffread.c (coff_symtab_read): Update.
6764 * ada-lang.c (add_nonlocal_symbols)
6765 (ada_collect_symbol_completion_matches)
6766 (ada_add_global_exceptions): Update.
6767
7e955d83
TT
67682019-01-15 Tom Tromey <tom@tromey.com>
6769
6770 * progspace.h (program_space) <objfiles_safe_range>: New
6771 typedef.
6772 <objfiles_safe>: New method.
6773 * objfiles.h (class all_objfiles_safe): Remove.
6774 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
6775 * jit.c (jit_inferior_exit_hook): Update.
6776
2030c079
TT
67772019-01-17 Tom Tromey <tom@tromey.com>
6778
6779 * progspace.h (program_space) <objfiles_range>: New typedef.
6780 <objfiles>: New method.
6781 <objfiles_head>: Rename from objfiles.
6782 (object_files): Update.
6783 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
6784 * guile/scm-pretty-print.c
6785 (ppscm_find_pretty_printer_from_objfiles): Update.
6786 * guile/scm-objfile.c (gdbscm_objfiles): Update.
6787 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
6788 Update.
6789 * python/py-progspace.c (pspy_get_objfiles): Update.
6790 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6791 Update.
6792 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6793 (objfpy_lookup_objfile_by_build_id): Update.
6794 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
6795 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6796 Update.
6797 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6798 (expand_symtab_containing_pc, lookup_objfile_from_block)
6799 (lookup_static_symbol, basic_lookup_transparent_type)
6800 (find_pc_sect_compunit_symtab, find_symbol_at_address)
6801 (find_line_symtab, info_sources_command)
6802 (default_collect_symbol_completion_matches_break_on)
6803 (make_source_files_completion_list, find_main_name): Update.
6804 * symmisc.c (print_symbol_bcache_statistics)
6805 (print_objfile_statistics, maintenance_print_symbols)
6806 (maintenance_print_msymbols, maintenance_print_objfiles)
6807 (maintenance_info_symtabs, maintenance_check_symtabs)
6808 (maintenance_expand_symtabs, maintenance_info_line_tables):
6809 Update.
6810 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
6811 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
6812 (map_overlay_command, unmap_overlay_command)
6813 (simple_overlay_update, expand_symtabs_matching)
6814 (map_symbol_filenames): Update.
6815 * symfile-debug.c (set_debug_symfile): Update.
6816 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
6817 Update.
6818 * source.c (select_source_symtab, forget_cached_source_info):
6819 Update.
6820 * solib.c (solib_read_symbols): Update.
6821 * solib-spu.c (append_ocl_sos): Update.
6822 * psymtab.c (maintenance_print_psymbols)
6823 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
6824 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
6825 * printcmd.c (info_symbol_command): Update.
6826 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
6827 Update.
6828 * objfiles.h (class all_objfiles): Remove.
6829 * objfiles.c (have_partial_symbols, have_full_symbols)
6830 (have_minimal_symbols, qsort_cmp, update_section_map)
6831 (shared_objfile_contains_address_p)
6832 (default_iterate_over_objfiles_in_search_order): Update.
6833 * objc-lang.c (info_selectors_command, info_classes_command)
6834 (find_methods): Update.
6835 * minsyms.c (find_solib_trampoline_target): Update.
6836 * maint.c (maintenance_info_sections)
6837 (maintenance_translate_address, count_symtabs_and_blocks):
6838 Update.
6839 * main.c (captured_main_1): Update.
6840 * linux-thread-db.c (try_thread_db_load_from_pdir)
6841 (has_libpthread): Update.
6842 * linespec.c (iterate_over_all_matching_symtabs)
6843 (search_minsyms_for_name): Update.
6844 * jit.c (jit_find_objf_with_entry_addr): Update.
6845 * hppa-tdep.c (find_unwind_entry)
6846 (hppa_lookup_stub_minimal_symbol): Update.
6847 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
6848 Update.
6849 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6850 (elf_gnu_ifunc_resolve_by_got): Update.
6851 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
6852 * dwarf-index-write.c (save_gdb_index_command): Update.
6853 * cp-support.c (add_symbol_overload_list_qualified): Update.
6854 * breakpoint.c (create_overlay_event_breakpoint)
6855 (create_longjmp_master_breakpoint)
6856 (create_std_terminate_master_breakpoint)
6857 (create_exception_master_breakpoint): Update.
6858 * blockframe.c (find_pc_partial_function): Update.
6859 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
6860 (ada_collect_symbol_completion_matches)
6861 (ada_add_global_exceptions): Update.
6862
776489e0
TT
68632019-01-17 Tom Tromey <tom@tromey.com>
6864
6865 * solib-target.c (lm_info_target_p): Remove typedef. Don't
6866 declare VEC.
6867 (solib_target_parse_libraries): Change return type.
6868 (library_list_start_segment, library_list_start_section)
6869 (library_list_end_library, library_list_start_library); Update.
6870 (solib_target_free_library_list): Remove.
6871 (solib_target_parse_libraries): Remove cleanup. Change return
6872 type.
6873 (solib_target_current_sos): Update.
6874
6471e7d2
TT
68752019-01-17 Tom Tromey <tromey@bapiya>
6876
6877 * valprint.c: Replace "the the" with "the".
6878 * symtab.c: Replace "the the" with "the".
6879 * solib.c: Replace "the the" with "the".
6880 * solib-dsbt.c: Replace "the the" with "the".
6881 * linespec.c: Replace "the the" with "the".
6882 * dwarf2loc.h: Replace "the the" with "the".
6883 * amd64-windows-tdep.c: Replace "the the" with "the".
6884 * aarch64-tdep.c: Replace "the the" with "the".
6885
c24bdb02
KS
68862019-01-16 Keith Seitz <keiths@redhat.com>
6887
6888 PR gdb/23773
6889 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
6890 <builder>: Rename to ..
6891 <m_builder>: ... this and make private.
6892 (dwarf2_cu::get_builder): New method. Change all users of
6893 `builder' to use this method.
6894 (dwarf2_start_symtab): Move to ...
6895 (dwarf2_cu::start_symtab): ... here. Update all callers
6896 (setup_type_unit_groups): Move to ...
6897 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
6898 callers.
6899 (dwarf2_cu::reset_builder): New method.
6900 (process_full_compunit, process_full_type_unit): Use
6901 dwarf2_cu::reset_builder.
6902 (follow_die_offset): Record the ancestor CU if it is different
6903 from the followed DIE's CU.
6904 (follow_die_sig_1): Likewise.
6905
8d64371b
TT
69062019-01-15 Tom Tromey <tom@tromey.com>
6907
6908 * remote.c (class remote_state) <buf>: Now a char_vector.
6909 <buf_size>: Remove.
6910 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
6911 parameter.
6912 (remote_target::getpkt_or_notif_sane_1)
6913 (remote_target::getpkt_sane)
6914 (remote_target::getpkt_or_notif_sane): Likewise.
6915 (class remote_target) <putpkt>: New overload.
6916 (remote_target::read_frame): Change type of "buf_p". Remove
6917 sizeof_p parameter.
6918 (packet_ok): New overload.
6919 (packet_check_result): New overload.
6920 Update all uses.
6921
bb277751
TT
69222019-01-14 Tom Tromey <tom@tromey.com>
6923
6924 * remote-notif.c (handle_notification, remote_notif_ack)
6925 (remote_notif_parse): Make "buf" const.
6926 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
6927 const.
6928 (remote_notif_parse, remote_notif_ack, handle_notification):
6929 Likewise.
6930 * remote.c (remote_notif_stop_parse): Make "buf" const.
6931 (remote_target::remote_parse_stop_reply): Make "buf" const.
6932 (remote_notif_stop_ack): Make "buf" const.
6933
05be00a8
TT
69342019-01-14 Tom Tromey <tom@tromey.com>
6935
6936 * remote.c (remote_console_output): Make parameter const.
6937
491adeca
TT
69382019-01-14 Tom Tromey <tom@tromey.com>
6939
6940 * target-debug.h (target_debug_print_signals): Constify.
6941 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
6942 * procfs.c (procfs_target::pass_signals): Update.
6943 * linux-nat.c (linux_nat_target::pass_signals): Update.
6944 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
6945 * target-delegates.c: Rebuild.
6946 * remote.c (remote_target::program_signals): Update.
6947 (remote_target::pass_signals): Update.
6948 * target.c (target_pass_signals): Constify argument.
6949 (target_program_signals): Likewise.
6950 * target.h (struct target_ops) <pass_signals, program_signals>:
6951 Constify argument.
6952 (target_pass_signals, target_program_signals): Constify argument.
6953
bbd94648
TT
69542019-01-14 Tom Tromey <tom@tromey.com>
6955
6956 PR tui/28819:
6957 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
6958
6f072a10
PFC
69592019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6960
6961 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
6962 field.
6963 * rs6000-tdep.c: Include reggroups.h.
6964 (IS_V_ALIAS_PSEUDOREG): Define.
6965 (rs6000_register_name): Return names for the "vX" aliases.
6966 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
6967 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
6968 aliases. Call default_register_reggroup_p for all other
6969 pseudo-registers.
6970 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
6971 New functions.
6972 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
6973 Handle "vX" aliases.
6974 (v_alias_pseudo_register_collect): New function.
6975 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
6976 (rs6000_gdbarch_init): Initialize "vX" aliases as
6977 pseudo-registers. Restore registration of
6978 rs6000_pseudo_register_reggroup_p with
6979 set_tdesc_pseudo_register_reggroup_p.
6980
1a782351
MF
69812019-01-13 Max Filippov <jcmvbkbc@gmail.com>
6982
6983 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
6984 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
6985 set_gdbarch_num_pseudo_regs.
6986
d73cff18
PW
69872019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6988
6989 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
6990 Remove arg prefixname, add do_set and do_show.
6991 Add member functions set_list and show_list.
6992 * cli/cli-style.c (class cli_style_option): Update accordingly.
6993 (style_set_list): Move to file scope.
6994 (style_show_list): Likewise.
6995 (set_style): Call help_list.
6996 (show_style): Call cmd_show_list.
6997 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
6998 Update to use the new macro.
6999
60a90376
JB
70002019-10-12 Joel Brobecker <brobecker@adacore.com>
7001
7002 * ada-lang.c (_initialize_ada_language): Expand the help text
7003 for the "catch exception" command.
7004
9d7c67bf
PW
70052019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7006
7007 * symtab.c (matching_obj_sections): Initialize obj,
7008 declare it closer to its usage.
7009
7cf47dc4
TT
70102019-01-10 Tom Tromey <tom@tromey.com>
7011
7012 * thread-iter.h (inf_threads_iterator): Use next_iterator.
7013 (basic_inf_threads_range): Remove.
7014 (inf_threads_range, inf_non_exited_threads_range)
7015 (safe_inf_threads_range): Use next_adapter.
7016
d3cb6808
KS
70172019-01-10 Keith Seitz <keiths@redhat.com>
7018
7019 PR gdb/23712
7020 PR symtab/23010
7021 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
7022 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
7023
63a20375
KS
70242019-01-10 Keith Seitz <keiths@redhat.com>
7025
7026 PR gdb/23712
7027 PR symtab/23010
7028 * dictionary.c (pending_to_vector): Remove.
7029 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
7030 Remove _1 suffix, replacing functions of the same name. Update
7031 all callers.
7032 (dict_create_hashed, dict_create_hashed_expandable)
7033 (dict_create_linear, dict_create_linear_expandable, dict_free)
7034 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
7035 Make functions static.
7036
b026f593
KS
70372019-01-10 Keith Seitz <keiths@redhat.com>
7038
7039 PR gdb/23712
7040 PR symtab/23010
7041 * dictionary.h (struct dictionary): Replace declaration with
7042 multidictionary.
7043 (dict_create_hashed, dict_create_hashed_expandable)
7044 (dict_create_linear, dict_create_linear_expandable)
7045 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
7046 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
7047 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
7048 taking multidictionary argument.
7049 [ALL_DICT_SYMBOLS]: Update for multidictionary.
7050 * block.h (struct block) <dict>: Change to multidictionary
7051 and rename `multidict'.
7052 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
7053 symmisc.c: Update all dictionary references to multidictionary.
7054
c7748ee9
KS
70552019-01-10 Keith Seitz <keiths@redhat.com>
7056
7057 PR gdb/23712
7058 PR symtab/23010
7059 * dictionary.c: Include unordered_map.
7060 (pending_to_vector): New function.
7061 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
7062 Rewrite the non-"_1" functions to take vector instead
7063 of linked list.
7064 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
7065 "new" _1 versions of the same name.
7066 (multidictionary): Define.
7067 (std::hash<enum language): New definition.
7068 (collate_pending_symbols_by_language, mdict_create_hashed)
7069 (mdict_create_hashed_expandable, mdict_create_linear)
7070 (mdict_create_linear_expandable, mdict_free)
7071 (find_language_dictionary, create_new_language_dictionary)
7072 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
7073 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
7074 (mdict_size, mdict_empty): New functions.
7075 * dictionary.h (mdict_iterator): Define.
7076
67aa1f3c
PA
70772019-01-10 Pedro Alves <palves@redhat.com>
7078
7079 * breakpoint.c (read_uploaded_action)
7080 (create_tracepoint_from_upload): Adjust to use
7081 gdb::unique_xmalloc_ptr.
7082 * ctf.c (ctf_write_uploaded_tp):
7083 (SET_ARRAY_FIELD): Use emplace_back.
7084 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
7085 * tracefile-tfile.c (tfile_write_uploaded_tp):
7086 * tracepoint.c (parse_tracepoint_definition): Adjust to use
7087 gdb::unique_xmalloc_ptr.
7088 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
7089 at_string, cond_string, cmd_strings>: Replace char pointers
7090 with gdb::unique_xmalloc_ptr.
7091
2f667667
PA
70922019-01-10 Pedro Alves <palves@redhat.com>
7093
7094 * solib-target.c (library_list_start_library): Don't xstrdup name.
7095
36cb7237
PA
70962019-01-10 Pedro Alves <palves@redhat.com>
7097
7098 * mdebugread.c (parse_partial_symbols): Use
7099 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
7100
da584958
AB
71012019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7102
7103 * linux-fork.c (scoped_switch_fork_info)
7104 <~scoped_switch_fork_info>: Fix incorrect variable name.
7105
1ef8573c
AB
71062019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
7107
7108 * linux-fork.c (scoped_switch_fork_info)
7109 <scoped_switch_fork_info>: Make explicit.
7110 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
7111
8d7bcccb
TT
71122019-01-10 Tom Tromey <tom@tromey.com>
7113
7114 * objfiles.h (objfile::reset_psymtabs): Update.
7115 * objfiles.c (objfile::objfile): Update.
7116 * psymtab.h (psymtab_storage::obstack): Update.
7117 (psymtab_storage::m_obstack): Use gdb::optional.
7118 (class psymtab_storage): Update comment. Remove objfile
7119 parameter.
7120 * psymtab.c (psymtab_storage::psymtab_storage): Update.
7121
b596a3c7
TT
71222019-01-10 Tom Tromey <tom@tromey.com>
7123
7124 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
7125 <free_psymtabs>: Now private.
7126 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
7127 (allocate_psymtab): Use new method.
7128
a9342b62
TT
71292019-01-10 Tom Tromey <tom@tromey.com>
7130
7131 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
7132 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
7133 * mdebugread.c (parse_partial_symbols): Use
7134 allocate_dependencies.
7135 * dwarf2read.c (dwarf2_create_include_psymtab): Use
7136 allocate_dependencies.
7137 (process_psymtab_comp_unit_reader)
7138 (build_type_psymtab_dependencies): Likewise.
7139 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
7140
5af70966
TT
71412019-01-10 Tom Tromey <tom@tromey.com>
7142
7143 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
7144 PSYMBOL_SET_LANGUAGE.
7145 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
7146
5923a04c
TT
71472019-01-10 Tom Tromey <tom@tromey.com>
7148
7149 * psymtab.h (psymtab_storage::obstack): New method.
7150 <m_obstack>: Rename from obstack; now private.
7151 * psymtab.c (psymtab_storage): Update.
7152 * dwarf2read.c (create_addrmap_from_index)
7153 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
7154 Update.
7155
6d6a12bf
TT
71562019-01-10 Tom Tromey <tom@tromey.com>
7157
7158 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
7159 * objfiles.h (objfile::reset_psymtabs): New method.
7160
d320c2b5
TT
71612019-01-10 Tom Tromey <tom@tromey.com>
7162
7163 * symmisc.c (print_symbol_bcache_statistics): Update.
7164 (print_objfile_statistics): Update.
7165 * symfile.c (reread_symbols): Update.
7166 * psymtab.h (class psymtab_storage): New.
7167 * psymtab.c (psymtab_storage): New constructor.
7168 (~psymtab_storage): New destructor.
7169 (require_partial_symbols): Update.
7170 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
7171 (find_pc_sect_psymtab, find_pc_sect_psymbol)
7172 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
7173 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
7174 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
7175 (start_psymtab_common, end_psymtab_common)
7176 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
7177 (allocate_psymtab): Update.
7178 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
7179 Update.
7180 (dump_psymtab_addrmap, maintenance_print_psymbols)
7181 (maintenance_check_psymtabs): Update.
7182 (class objfile_psymtabs): Move to objfiles.h.
7183 * psympriv.h (discard_psymtab): Now inline.
7184 (psymtab_discarder::psymtab_discarder): Update.
7185 (psymtab_discarder::~psymtab_discarder): Update.
7186 (ALL_OBJFILE_PSYMTABS): Rewrite.
7187 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
7188 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
7189 Remove fields.
7190 <partial_symtabs>: New field.
7191 (class objfile_psymtabs): Move from psymtab.h. Update.
7192 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
7193 psymbol_cache.
7194 (objfile::~objfile): Don't destroy psymbol_cache.
7195 * mdebugread.c (parse_partial_symbols): Update.
7196 * dwarf2read.c (create_addrmap_from_index)
7197 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7198 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
7199 (add_partial_subprogram, dwarf2_ranges_read): Update.
7200 * dwarf-index-write.c (write_address_map)
7201 (write_one_signatured_type, recursively_write_psymbols)
7202 (class debug_names, class debug_names, write_psymtabs_to_index):
7203 Update.
7204
1d94a5a3
TT
72052019-01-10 Tom Tromey <tom@tromey.com>
7206
7207 * symtab.h (SYMBOL_SET_NAMES): Update.
7208 (symbol_set_names): Update.
7209 (MSYMBOL_SET_NAMES): Update.
7210 * symtab.c (symbol_set_names): Change argument to be an
7211 objfile_per_bfd_storage.
7212 * psymtab.c (add_psymbol_to_bcache): Update.
7213 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
7214
0f14768a
TT
72152019-01-10 Tom Tromey <tom@tromey.com>
7216
7217 * symtab.c (create_demangled_names_hash): Change argument to be an
7218 objfile_per_bfd_storage.
7219 (symbol_set_names): Update.
7220
6eee24ce
TT
72212019-01-10 Tom Tromey <tom@tromey.com>
7222
7223 * xcoffread.c (xcoff_initial_scan): Unconditionally call
7224 init_psymbol_list.
7225 * psymtab.c (init_psymbol_list): Do nothing if already called.
7226 * psympriv.h (init_psymbol_list): Add comment.
7227 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
7228 init_psymbol_list.
7229 * dbxread.c (dbx_symfile_read): Unconditionally call
7230 init_psymbol_list.
7231
75aedd27
TT
72322019-01-10 Tom Tromey <tom@tromey.com>
7233
7234 * xcoffread.c (scan_xcoff_symtab): Update.
7235 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
7236 "where".
7237 * mdebugread.c (parse_partial_symbols)
7238 (handle_psymbol_enumerators): Update.
7239 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
7240 * dbxread.c (read_dbx_symtab): Update.
7241 * psympriv.h (psymbol_placement): New enum.
7242 (add_psymbol_to_list): Update.
7243
939652a5
TT
72442019-01-10 Tom Tromey <tom@tromey.com>
7245
7246 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
7247 static_psymbols parameters.
7248 (scan_xcoff_symtab): Update.
7249 * psymtab.c (start_psymtab_common): Remove global_psymbols and
7250 static_psymbols parameters.
7251 * psympriv.h (start_psymtab_common): Update.
7252 * mdebugread.c (parse_partial_symbols): Update.
7253 * dwarf2read.c (create_partial_symtab): Update.
7254 * dbxread.c (read_dbx_symtab): Update.
7255 (start_psymtab): Remove global_psymbols and static_psymbols
7256 parameters.
7257
baa62830
TT
72582019-01-10 Tom Tromey <tom@tromey.com>
7259
7260 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
7261 * psymtab.c (allocate_psymtab): Add comment.
7262 * psympriv.h (allocate_psymtab): Add comment.
7263 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
7264 initializations.
7265 * dbxread.c (dbx_end_psymtab): Remove some initializations.
7266
0e8f53ba
TT
72672019-01-10 Tom Tromey <tom@tromey.com>
7268
7269 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7270 Don't declare.
7271 * mipsread.c: Include mdebugread.h.
7272 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
7273 Declare.
7274 * elfread.c: Include mdebugread.h.
7275
b22a7c6a
TT
72762019-01-09 Tom Tromey <tom@tromey.com>
7277
7278 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
7279 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
7280 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
7281 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
7282 (psym_lookup_symbol, psym_find_last_source_symtab)
7283 (psym_forget_cached_source_info, psym_print_stats)
7284 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
7285 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
7286 (psym_map_matching_symbols, psym_expand_symtabs_matching)
7287 (psym_find_compunit_symtab_by_address)
7288 (maintenance_print_psymbols, maintenance_info_psymtabs)
7289 (maintenance_check_psymtabs): Use ranged for.
7290 * psymtab.h (class objfile_psymtabs): New.
7291 (require_partial_symbols): Return objfile_psymtabs.
7292 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
7293
3b9d3ac2
TT
72942019-01-09 Tom Tromey <tom@tromey.com>
7295
7296 * symfile.c (overlay_invalidate_all, find_pc_overlay)
7297 (find_pc_mapped_section, list_overlays_command)
7298 (map_overlay_command, unmap_overlay_command)
7299 (simple_overlay_update): Use all_objfiles.
7300 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
7301 * printcmd.c (info_symbol_command): Use all_objfiles.
7302 * objfiles.h (ALL_OBJSECTIONS): Remove.
7303 * maint.c (maintenance_translate_address): Use all_objfiles.
7304 * gcore.c (gcore_create_callback): Use all_objfiles.
7305 (objfile_find_memory_regions): Likewise.
7306
8b31193a
TT
73072019-01-09 Tom Tromey <tom@tromey.com>
7308
7309 * symtab.c (find_line_symtab, info_sources_command)
7310 (make_source_files_completion_list): Use objfile_compunits.
7311 * source.c (select_source_symtab): Use objfile_compunits.
7312 * objfiles.h (struct objfile): Update comment.
7313 (ALL_OBJFILES): Remove.
7314 (ALL_FILETABS): Remove.
7315 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
7316 objfile_compunits.
7317
d5da8b3c
TT
73182019-01-09 Tom Tromey <tom@tromey.com>
7319
7320 * symmisc.c (print_objfile_statistics, dump_objfile)
7321 (maintenance_print_symbols): Use compunit_filetabs.
7322 * source.c (forget_cached_source_info_for_objfile): Use
7323 compunit_filetabs.
7324 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
7325 (ALL_FILETABS): Use compunit_filetabs.
7326 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
7327 * coffread.c (coff_symtab_read): Use compunit_filetabs.
7328
5accd1a0
TT
73292019-01-09 Tom Tromey <tom@tromey.com>
7330
7331 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
7332 (compunit_filetabs): New.
7333 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
7334 compunit_filetabs.
7335 (info_sources_command, make_source_files_completion_list): Remove
7336 declaration.
7337 * symmisc.c (print_objfile_statistics, dump_objfile)
7338 (maintenance_print_symbols): Remove declaration.
7339 (maintenance_info_symtabs): Use compunit_filetabs.
7340 (maintenance_info_line_tables): Likewise.
7341 * source.c (select_source_symtab): Change local variable name.
7342 (forget_cached_source_info_for_objfile): Remove declaration.
7343 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
7344 * objfiles.c (objfile_relocate1): Remove declaration.
7345 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7346 declaration.
7347 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
7348 * coffread.c (coff_symtab_read): Remove declaration.
7349 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
7350 compunit_filetabs.
7351
d8aeb77f
TT
73522019-01-09 Tom Tromey <tom@tromey.com>
7353
7354 * symtab.c (lookup_objfile_from_block)
7355 (find_pc_sect_compunit_symtab, search_symbols)
7356 (default_collect_symbol_completion_matches_break_on): Use
7357 objfile_compunits.
7358 * objfiles.h (ALL_COMPUNITS): Remove.
7359 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
7360 * cp-support.c (add_symbol_overload_list_qualified): Use
7361 objfile_compunits.
7362 * ada-lang.c (ada_collect_symbol_completion_matches)
7363 (ada_add_global_exceptions): Use objfile_compunits.
7364
592553c4
TT
73652019-01-09 Tom Tromey <tom@tromey.com>
7366
7367 * source.c (select_source_symtab)
7368 (forget_cached_source_info_for_objfile): Remove declaration.
7369 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
7370 declaration.
7371 * maint.c (count_symtabs_and_blocks): Remove declaration.
7372 * cp-support.c (add_symbol_overload_list_qualified): Remove
7373 declaration.
7374 * coffread.c (coff_symtab_read): Remove declaration.
7375 * symtab.c (lookup_symbol_in_objfile_symtabs)
7376 (basic_lookup_transparent_type_1): Use objfile_compunits.
7377 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
7378 (info_sources_command, search_symbols)
7379 (default_collect_symbol_completion_matches_break_on)
7380 (make_source_files_completion_list): Remove declaration.
7381 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
7382 (ada_collect_symbol_completion_matches)
7383 (ada_add_global_exceptions): Remove declaration.
7384 * linespec.c (iterate_over_all_matching_symtabs): Use
7385 objfile_compunits.
7386 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
7387 (class objfile_compunits): New.
7388 (ALL_COMPUNITS): Use objfile_compunits.
7389 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
7390 (maintenance_check_symtabs, maintenance_info_line_tables): Use
7391 objfile_compunits.
7392 * objfiles.c (objfile_relocate1): Use objfile_compunits.
7393
5325b9bf
TT
73942019-01-09 Tom Tromey <tom@tromey.com>
7395
7396 * symtab.c (search_symbols)
7397 (default_collect_symbol_completion_matches_break_on): Use
7398 objfile_msymbols.
7399 * ada-lang.c (ada_lookup_simple_minsym)
7400 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
7401 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
7402 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
7403 objfile_msymbols.
7404 * coffread.c (coff_symfile_read): Use objfile_msymbols.
7405 * symmisc.c (dump_msymbols): Use objfile_msymbols.
7406 * objc-lang.c (find_methods): Use objfile_msymbols.
7407 (info_selectors_command, info_classes_command): Likewise.
7408 * stabsread.c (scan_file_globals): Use objfile_msymbols.
7409 * objfiles.h (class objfile_msymbols): New.
7410 (ALL_OBJFILE_MSYMBOLS): Remove.
7411 (ALL_MSYMBOLS): Remove.
7412
cac85af2
TT
74132019-01-09 Tom Tromey <tom@tromey.com>
7414
7415 * common/next-iterator.h (next_adapter): Add Iterator template
7416 parameter.
7417 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
7418 (class all_objfiles_safe): New.
7419 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
7420 * objfiles.c (put_objfile_before): Update comment.
7421 (add_separate_debug_objfile): Likewise.
7422 (free_all_objfiles): Use all_objfiles_safe.
7423 (objfile_purge_solibs): Likewise.
7424
aed57c53
TT
74252019-01-09 Tom Tromey <tom@tromey.com>
7426
7427 * symtab.c (iterate_over_symtabs, matching_obj_sections)
7428 (expand_symtab_containing_pc, lookup_static_symbol)
7429 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
7430 (find_symbol_at_address, find_line_symtab, find_main_name): Use
7431 all_objfiles.
7432 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
7433 * breakpoint.c (create_overlay_event_breakpoint)
7434 (create_longjmp_master_breakpoint)
7435 (create_std_terminate_master_breakpoint)
7436 (create_exception_master_breakpoint): Use all_objfiles.
7437 * linux-thread-db.c (try_thread_db_load_from_pdir)
7438 (has_libpthread): Use all_objfiles.
7439 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
7440 * linespec.c (iterate_over_all_matching_symtabs)
7441 (search_minsyms_for_name): Use all_objfiles.
7442 * maint.c (maintenance_info_sections): Use all_objfiles.
7443 * main.c (captured_main_1): Use all_objfiles.
7444 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
7445 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
7446 * guile/scm-pretty-print.c
7447 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
7448 * solib-spu.c (append_ocl_sos): Use all_objfiles.
7449 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
7450 (maintenance_print_msymbols): Use all_objfiles.
7451 * source.c (select_source_symtab): Use all_objfiles.
7452 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
7453 * symfile.c (remove_symbol_file_command)
7454 (expand_symtabs_matching, map_symbol_filenames): Use
7455 all_objfiles.
7456 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
7457 all_objfiles.
7458 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
7459 * objc-lang.c (find_methods): Use all_objfiles.
7460 * objfiles.c (have_partial_symbols, have_full_symbols)
7461 (have_minimal_symbols, qsort_cmp)
7462 (default_iterate_over_objfiles_in_search_order): Use
7463 all_objfiles.
7464 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
7465 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
7466 (maintenance_check_psymtabs): Use all_objfiles.
7467 (ALL_PSYMTABS): Remove.
7468 * compile/compile-object-run.c (do_module_cleanup): Use
7469 all_objfiles.
7470 * blockframe.c (find_pc_partial_function): Use all_objfiles.
7471 * cp-support.c (add_symbol_overload_list_qualified): Use
7472 all_objfiles.
7473 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
7474 Use all_objfiles.
7475 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
7476 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
7477 all_objfiles.
7478 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
7479 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
7480 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
7481 Uses all_objfiles.
7482 * solib.c (solib_read_symbols): Use all_objfiles
7483
99d89cde
TT
74842019-01-09 Tom Tromey <tom@tromey.com>
7485
7486 * probe.c (parse_probes_in_pspace): Use all_objfiles.
7487 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
7488 all_objfiles.
7489 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
7490 * symmisc.c (print_symbol_bcache_statistics)
7491 (print_objfile_statistics, maintenance_print_objfiles)
7492 (maintenance_info_symtabs, maintenance_check_symtabs)
7493 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
7494 all_objfiles.
7495 * source.c (forget_cached_source_info): Use all_objfiles.
7496 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
7497 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
7498 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
7499 * objfiles.c (update_section_map): Use all_objfiles.
7500 (shared_objfile_contains_address_p): Likewise.
7501 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
7502 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
7503
21708325
TT
75042019-01-09 Tom Tromey <tom@tromey.com>
7505
7506 * common/next-iterator.h: New file.
7507 * objfiles.h (class all_objfiles): New.
7508 (struct objfile_iterator): New.
7509
669e09f6
PW
75102019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7511
7512 * NEWS: Move the description of the changed "frame", "select-frame",
7513 and "info frame" commands to the Changed commands section.
7514
041be526
SM
75152019-01-09 Simon Marchi <simon.marchi@ericsson.com>
7516
7517 * gdbtypes.c (check_stub_method_group): Remove handling of old
7518 mangling schemes.
7519 * linespec.c (find_methods): Likewise.
7520 * stabsread.c (read_member_functions): Likewise.
7521 * valops.c (search_struct_method): Likewise.
7522 (value_struct_elt_for_reference): Likewise.
7523 * NEWS: Mention this change.
7524
0e2a2133
AB
75252019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7526
7527 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
7528 print_source_lines.
7529 * source.c (print_source_lines_base): Update line number check.
7530 (print_source_lines): New function.
7531 (source_lines_range::source_lines_range): New function.
7532 * source.h (class source_lines_range): New class.
7533 (print_source_lines): New declaration.
7534
1055a3b4
PW
75352019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7536
7537 * linespec.c (linespec_state_destructor): Free self->canonical_names.
7538
cfeadda5
TT
75392019-01-08 Tom Tromey <tom@tromey.com>
7540 Simon Marchi <simon.marchi@ericsson.com>
7541
7542 PR gdb/24060
7543 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
7544 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
7545 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7546 * f-exp.y (DOLLAR_VARIABLE): Likewise.
7547 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
7548 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
7549
583068ca
AB
75502019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7551
7552 * source.c (select_source_symtab): Move header comment to
7553 declaration in source.h.
7554 (forget_cached_source_info_for_objfile): Likewise.
7555 (forget_cached_source_info): Likewise.
7556 (identify_source_line): Likewise.
7557 * source.h (identify_source_line): Move declaration from symtab.h
7558 and add comment from source.c
7559 (print_source_lines): Likewise.
7560 (forget_cached_source_info_for_objfile): Likewise.
7561 (forget_cached_source_info): Likewise.
7562 (select_source_symtab): Likewise.
7563 (enum print_source_lines_flag): Move definition from symtab.h.
7564 * symtab.h (identify_source_line): Move declaration to source.h.
7565 (print_source_lines): Likewise.
7566 (forget_cached_source_info_for_objfile): Likewise.
7567 (forget_cached_source_info): Likewise.
7568 (select_source_symtab): Likewise.
7569 (enum print_source_lines_flag): Move definition to source.h.
7570 * tui/tui-hooks.c: Add 'source.h' include.
7571
ec98a4ad
AB
75722019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7573
7574 * source.c (print_source_lines_base): Handle requests to print
7575 reverse line number sequences, and guard against empty lines
7576 string.
7577
62ea19c1
AB
75782019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7579
7580 * source.c (print_source_lines_base): Fix skip of '\r' if next
7581 character is '\n'.
7582
9d30e1fd
TT
75832019-01-06 Tom Tromey <tom@tromey.com>
7584
7585 * c-exp.y (struct c_parse_state) <macro_original_text,
7586 expansion_obstack>: New member.
7587 (macro_original_text, expansion_obstack): Remove globals.
7588 (scan_macro_expansion, scanning_macro_expansion)
7589 (finished_macro_expansion): Update.
7590 (scan_macro_cleanup): Remove.
7591 (yylex, c_parse): Update.
7592
c65bac38
TT
75932019-01-06 Tom Tromey <tom@tromey.com>
7594
7595 * c-exp.y (struct c_parse_state) <strings>: New member.
7596 (operator_stoken): Update.
7597
02e12e38
TT
75982019-01-06 Tom Tromey <tom@tromey.com>
7599
7600 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
7601 (union type_stack_elt) <typelist_val>: Now a pointer to
7602 std::vector.
7603 (type_stack_cleanup): Don't declare.
7604 (push_typelist): Update.
7605 * parse.c (pop_typelist): Return a std::vector.
7606 (push_typelist): Take a std::vector.
7607 (follow_types): Update. Do not free args.
7608 (type_stack_cleanup): Remove.
7609 * c-exp.y (struct c_parse_state): New.
7610 (cpstate): New global.
7611 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
7612 (nonempty_typelist): Update.
7613 (func_mod): Create a new vector.
7614 (c_parse): Create a c_parse_state.
7615 (check_parameter_typelist): Do not delete params.
7616 (function_method): Update. Do not delete type_list.
7617
f097f5ad
TT
76182019-01-06 Tom Tromey <tom@tromey.com>
7619
7620 PR gdb/28155:
7621 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
7622 check_typedef.
7623 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
7624 (print_return_value): Likewise.
7625
d2adf9f1
TT
76262019-01-05 Tom Tromey <tom@tromey.com>
7627
7628 * contrib/cleanup_check.py: Remove.
7629 * contrib/gcc-with-excheck: Remove.
7630 * contrib/exsummary.py: Remove.
7631 * contrib/excheck.py: Remove.
7632
2eab46b1
JB
76332019-01-05 Joel Brobecker <brobecker@adacore.com>
7634
7635 * thread.c (delete_thread_1): Add gdb_assert that THR is not
7636 NULL. Initialize tpprev to NULL instead of assigning it
7637 to NULL on the next statement.
7638 * windows-nat.c (windows_delete_thread): Remove check for
7639 main_thread_id before printing thread exit notifications.
7640 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
7641 Remove thread ID check against main_thread_id.
7642 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
7643 windows_delete_thread.
7644 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
7645
48c5e7e2
TT
76462019-01-04 Tom Tromey <tom@tromey.com>
7647
7648 * compile/compile.c (_initialize_compile): Use upper case for
7649 metasyntactic variables.
7650 * symmisc.c (_initialize_symmisc): Use upper case for
7651 metasyntactic variables.
7652 * psymtab.c (_initialize_psymtab): Use upper case for
7653 metasyntactic variables.
7654 * demangle.c (demangle_command): Use upper case for metasyntactic
7655 variables.
7656 (_initialize_demangler): Likewise.
7657 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
7658 variables.
7659
986041cd
TT
76602019-01-03 Tom Tromey <tom@tromey.com>
7661
7662 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
7663
7c711119
TT
76642019-01-03 Tom Tromey <tom@tromey.com>
7665
7666 * python/py-symtab.c (salpy_str): Update.
7667 (struct salpy_sal_object) <symtab>: Now a PyObject.
7668 (salpy_dealloc): Update.
7669 (del_objfile_sal): Use gdbpy_ref.
7670
1b20edf0
TT
76712019-01-03 Tom Tromey <tom@tromey.com>
7672
7673 * python/py-type.c (convert_field): Use new_reference. Return
7674 gdbpy_ref.
7675 (make_fielditem): Return gdbpy_ref.
7676 (typy_fields): Update.
7677 (typy_getitem): Update.
7678 (field_name): Return gdbpy_ref. Use new_reference.
7679 (typy_iterator_iternext): Update.
7680
ea41325b
TT
76812019-01-03 Tom Tromey <tom@tromey.com>
7682
7683 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
7684
2a3c71d6
TT
76852019-01-03 Tom Tromey <tom@tromey.com>
7686
7687 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
7688 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
7689 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
7690 (pspy_set_frame_filters, pspy_set_frame_unwinders)
7691 (pspy_set_type_printers): Likewise.
7692 * python/py-function.c (fnpy_init): Use gdbpy_ref.
7693 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
7694 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
7695 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
7696 (objfpy_set_type_printers): Likewise.
7697
5c329e6a
TT
76982019-01-03 Tom Tromey <tom@tromey.com>
7699
7700 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
7701 (gdbpy_print_stack): Use gdbpy_err_fetch.
7702 * python/python-internal.h (class gdbpy_err_fetch): New class.
7703 (class gdbpy_enter) <m_error_type, m_error_value,
7704 m_error_traceback>: Remove.
7705 <m_error>: New member.
7706 (gdbpy_exception_to_string): Don't declare.
7707 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
7708 * python/py-value.c (convert_value_from_python): Use
7709 gdbpy_err_fetch.
7710 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
7711 gdbpy_exception_to_string.
7712 (gdbpy_handle_exception): Use gdbpy_err_fetch.
7713 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
7714 gdbpy_err_fetch.
7715
169bb27b
AB
77162019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7717
7718 * linux-nat.c (delete_lwp_cleanup): Delete.
7719 (struct lwp_deleter): New struct.
7720 (lwp_info_up): New typedef.
7721 (linux_nat_target::follow_fork): Delete cleanup, and make use of
7722 lwp_info_up.
7723
a07c8880
AB
77242019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7725
7726 * linux-fork.c (class scoped_switch_fork_info): New class.
7727 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
7728
26089c49
AB
77292019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7730
7731 * valops.c (find_overload_match): Remove use of null_cleanup, and
7732 calls to do_cleanups.
7733
06d3e5b0
AB
77342019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7735
7736 * compile/compile-cplus-types.c
7737 (compile_cplus_instance::decl_name): Handle changes to
7738 cp_func_name.
7739 * cp-support.c (cp_func_name): Update header comment, update
7740 return type.
7741 * cp-support.h (cp_func_name): Update return type in declaration.
7742 * valops.c (find_overload_match): Move temp_func local to top
7743 level of function and change its type. Use temp_func to hold and
7744 delete temporary string obtained from cp_func_name.
7745
66644cd3
AB
77462019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
7747
7748 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
7749 gdb::char_vector, remove cleanup, and update uses of `msg`.
7750
592d8c0a
JW
77512019-01-03 Jim Wilson <jimw@sifive.com>
7752
7753 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
7754
c55d06ec
TT
77552019-01-02 Tom Tromey <tom@tromey.com>
7756
7757 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
7758 (tdesc_parse_xml): Remove cleanups.
7759 * target-descriptions.h (make_cleanup_free_target_description):
7760 Don't declare.
7761 (target_desc_deleter): New struct.
7762 (target_desc_up): New typedef.
7763 * target-descriptions.c (target_desc_deleter::operator()): Rename
7764 from free_target_description.
7765 (make_cleanup_free_target_description): Remove.
7766
3a6ae42d
TT
77672019-01-02 Tom Tromey <tom@tromey.com>
7768
7769 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
7770 constructor, destructor.
7771 (linespec_parser): Remove typedef.
7772 (~linespec_parser): Rename from linespec_parser_delete.
7773 (linespec_lex_to_end, linespec_complete_label)
7774 (linespec_complete): Update.
7775 (decode_line_full): Remove cleanups.
7776 (decode_line_1): Update.
7777
61fd3e73
TT
77782019-01-02 Tom Tromey <tom@tromey.com>
7779
7780 * python/python-internal.h (inferior_to_inferior_object): Change
7781 return type.
7782 * python/py-exitedevent.c (create_exited_event_object): Update.
7783 * python/py-inferior.c (inferior_to_inferior_object): Return
7784 gdbpy_ref.
7785 (python_new_inferior, python_inferior_deleted)
7786 (thread_to_thread_object, delete_thread_object)
7787 (build_inferior_list, gdbpy_selected_inferior): Update.
7788 * python/py-infthread.c (create_thread_object): Update. Also fail
7789 if inferior_to_inferior_object fails.
7790
d20172fc
SM
77912019-01-02 Simon Marchi <simon.marchi@ericsson.com>
7792
7793 * inferior.h (class inferior) <displaced_step_state>: New field.
7794 * infrun.h (struct displaced_step_state): Move here from
7795 infrun.c. Initialize fields, add constructor.
7796 <inf>: Remove field.
7797 <reset>: New method.
7798 * infrun.c (struct displaced_step_inferior_state): Move to
7799 infrun.h.
7800 (displaced_step_inferior_states): Remove.
7801 (get_displaced_stepping_state): Adust.
7802 (displaced_step_in_progress_any_inferior): Adjust.
7803 (displaced_step_in_progress_thread): Adjust.
7804 (displaced_step_in_progress): Adjust.
7805 (add_displaced_stepping_state): Remove.
7806 (get_displaced_step_closure_by_addr): Adjust.
7807 (remove_displaced_stepping_state): Remove.
7808 (infrun_inferior_exit): Call displaced_step_state.reset.
7809 (use_displaced_stepping): Don't check for NULL.
7810 (displaced_step_prepare_throw): Call
7811 get_displaced_stepping_state.
7812 (displaced_step_fixup): Don't check for NULL.
7813 (prepare_for_detach): Don't check for NULL.
7814
e3319240
PW
78152019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7816
7817 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
7818 in case of call that did not complete.
7819
5d36dfb9
AU
78202019-01-02 Andrey Utkin <autkin@undo.io>
7821
7822 * symfile.c (find_separate_debug_file): Fix search of debug files for
7823 remote debuggee.
7824
8833fbf0
TT
78252019-01-02 Tom Tromey <tom@tromey.com>
7826
7827 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
7828 indentation.
7829 * python/py-frame.c (frapy_older): Remove cast.
7830 (frapy_newer): Likewise.
7831 * python/py-breakpoint.c (local_setattro): Remove cast.
7832 * python/py-arch.c (archpy_name): Remove local variable.
7833 * python/py-type.c (gdbpy_lookup_type): Remove cast.
7834
4ada3dfd
JB
78352019-01-02 Joel Brobecker <brobecker@adacore.com>
7836
7837 * unittests/basic_string_view/element_access/char/empty.cc:
7838 Fix year range in copyright header.
7839
113b7b81
AB
78402019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
7841
7842 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
7843 Delete.
7844 <operator==>: Update with for removed field.
7845 <hash>: Likewise.
7846 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
7847 <isa_features>: ...this.
7848 <abi_features>: New field.
7849 (riscv_isa_flen): Update comment.
7850 (riscv_abi_xlen): New declaration.
7851 (riscv_abi_flen): New declaration.
7852 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
7853 isa_features.
7854 (riscv_abi_xlen): New function.
7855 (riscv_isa_flen): Update to get answer from isa_features.
7856 (riscv_abi_flen): New function.
7857 (riscv_has_fp_abi): Update to get answer from abi_features.
7858 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
7859 xlen and flen.
7860 (riscv_call_info) <xlen, flen>: Update comment.
7861 (riscv_call_arg_struct): Remove invalid assertions
7862 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
7863 is removed.
7864 (riscv_gdbarch_init): Gather isa features and abi features
7865 separately, ensure both match on the gdbarch when reusing an old
7866 gdbarch. Relax an error check to allow 32-bit abi float to run on
7867 a target with 64-bit float hardware.
7868
b18ca514
PW
78692019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7870
7871 * source.c (search_command_helper): Stop reverse search
7872 when line 1 has been searched.
7873
ec70d8db
PW
78742019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7875
7876 * record-full.c (record_full_base_target::close): Rewrite
7877 record_full_core_buf_list free logic.
7878
5b38f9c1
PW
78792019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7880
7881 * break-catch-syscall.c (print_one_catch_syscall): xfree
7882 the last text.
7883
66d91b39
JB
78842019-01-01 Joel Brobecker <brobecker@adacore.com>
7885
7886 * top.c (print_gdb_version): Update Copyright year in version
7887 message.
7888
42a4f53d
JB
78892019-01-01 Joel Brobecker <brobecker@adacore.com>
7890
7891 Update copyright year range in all GDB files.
7892
7e955d83 78932019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 7894
5bbd631d 7895 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 7896
5bbd631d 7897For older changes see ChangeLog-2018.
c906108c
SS
7898\f
7899Local Variables:
7900mode: change-log
7901left-margin: 8
7902fill-column: 74
7903version-control: never
57da7796 7904coding: utf-8
c906108c 7905End:
5bbd631d 7906