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