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