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