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