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