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