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