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