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