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