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