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