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