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