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