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