Split rank_one_type_parm_float from rank_one_type
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7f17b20d
SM
12019-03-08 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.c (rank_one_type_parm_float): New function extracted
4 from...
5 (rank_one_type): ... this.
6
2c509035
SM
72019-03-08 Simon Marchi <simon.marchi@efficios.com>
8
9 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10 from...
11 (rank_one_type): ... this.
12
0dd322dc
SM
132019-03-08 Simon Marchi <simon.marchi@efficios.com>
14
15 * gdbtypes.c (rank_one_type_parm_range): New function extracted
16 from...
17 (rank_one_type): ... this.
18
41ea4728
SM
192019-03-08 Simon Marchi <simon.marchi@efficios.com>
20
21 * gdbtypes.c (rank_one_type_parm_char): New function extracted
22 from...
23 (rank_one_type): ... this.
24
793cd1d2
SM
252019-03-08 Simon Marchi <simon.marchi@efficios.com>
26
27 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
28 from...
29 (rank_one_type): ... this.
30
34910087
SM
312019-03-08 Simon Marchi <simon.marchi@efficios.com>
32
33 * gdbtypes.c (rank_one_type_parm_int): New function extracted
34 from...
35 (rank_one_type): ... this.
36
f1f832d6
SM
372019-03-08 Simon Marchi <simon.marchi@efficios.com>
38
39 * gdbtypes.c (rank_one_type_parm_func): New function extracted
40 from...
41 (rank_one_type): ... this.
42
b9f4512f
SM
432019-03-08 Simon Marchi <simon.marchi@efficios.com>
44
45 * gdbtypes.c (rank_one_type_parm_array): New function extracted
46 from...
47 (rank_one_type): ... this.
48
9293fc63
SM
492019-03-08 Simon Marchi <simon.marchi@efficios.com>
50
51 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
52 from...
53 (rank_one_type): ... this.
54
e3abbe7e
PW
552019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
56
57 * inferior.c (initialize_inferiors): Ensure 'help set/show print
58 inferior-events' shows the example events.
59
e4adb939
EZ
602019-03-08 Eli Zaretskii <eliz@gnu.org>
61
62 Support styling on native MS-Windows console
63
64 PR/24315
65 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
66 on MS-Windows if $TERM is not defined.
67
68 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
69
70 * posix-hdep.c (gdb_console_fputs):
71 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
72 functions.
73 * ui-file.h (gdb_console_fputs): Add prototype.
74
75 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
76 back to fputs only if the former returns zero.
77
25629dfd
TT
782019-03-07 Tom Tromey <tom@tromey.com>
79
80 * symmisc.c (print_symbol_bcache_statistics): Update.
81 (print_objfile_statistics): Update.
82 * symfile.c (allocate_symtab): Update.
83 * stabsread.c: Don't include bcache.h.
84 * psymtab.h (struct psymbol_bcache): Don't declare.
85 (class psymtab_storage) <psymbol_cache>: Now a bcache.
86 (psymbol_bcache_init, psymbol_bcache_free)
87 (psymbol_bcache_get_bcache): Don't declare.
88 * psymtab.c (struct psymbol_bcache): Remove.
89 (psymtab_storage::psymtab_storage): Update.
90 (psymtab_storage::~psymtab_storage): Update.
91 (psymbol_bcache_init, psymbol_bcache_free)
92 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
93 (add_psymbol_to_bcache): Update.
94 (allocate_psymtab): Update.
95 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
96 macro_cache>: No longer pointers.
97 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
98 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
99 * macrotab.c (macro_bcache): Update.
100 * macroexp.c: Don't include bcache.h.
101 * gdbtypes.c (check_types_worklist): Update.
102 (types_deeply_equal): Remove TRY/CATCH. Update.
103 * elfread.c (elf_symtab_read): Update.
104 * dwarf2read.c: Don't include bcache.h.
105 * buildsym.c (buildsym_compunit::get_macro_table): Update.
106 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
107 (print_bcache_statistics, bcache_memory_used): Don't declare.
108 (struct bcache): Move from bcache.c. Add constructor, destructor,
109 methods. Rename all data members.
110 * bcache.c (struct bcache): Move to bcache.h.
111 (bcache::expand_hash_table): Rename from expand_hash_table.
112 (bcache): Remove.
113 (bcache::insert): Rename from bcache_full.
114 (bcache::compare): Rename from bcache_compare.
115 (bcache_xmalloc): Remove.
116 (bcache::~bcache): Rename from bcache_xfree.
117 (bcache::print_statistics): Rename from print_bcache_statistics.
118 (bcache::memory_used): Rename from bcache_memory_used.
119
fe726667
PA
1202019-03-07 Pedro Alves <palves@redhat.com>
121
122 * infrun.c (normal_stop): Also check for
123 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
124
7584bb30
AB
1252019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
126
127 * f-lang.c (value_from_host_double): Moved to...
128 * value.c (value_from_host_double): ...here.
129 * value.h (value_from_host_double): Declare.
130 * guile/scm-math.c (vlscm_convert_typed_number): Use
131 value_from_host_double.
132 (vlscm_convert_number): Likewise.
133 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
134 * python/py-value.c (convert_value_from_python): Likewise.
135
a7b1986e
TT
1362019-03-06 Tom Tromey <tom@tromey.com>
137
138 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
139
0ccf4211
TT
1402019-03-06 Tom Tromey <tom@tromey.com>
141
142 * utils.h (free_current_contents): Don't declare.
143 * utils.c (free_current_contents): Remove.
144
fe7b42e5
TT
1452019-03-06 Tom Tromey <tom@tromey.com>
146
147 * top.c (quit_force): Update.
148 * main.c (captured_command_loop): Update.
149 * common/new-op.c (operator new): Update.
150 * common/common-exceptions.c (struct catcher)
151 <save_cleanup_chain>: Remove member.
152 (exceptions_state_mc_init): Update.
153 (exception_try_scope_entry): Return nullptr.
154 (exception_try_scope_exit, exception_rethrow)
155 (throw_exception_sjlj, throw_exception_cxx): Update.
156 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
157 (all_cleanups, do_cleanups, discard_cleanups)
158 (discard_final_cleanups, save_cleanups, save_final_cleanups)
159 (restore_cleanups, restore_final_cleanups): Don't declare.
160 (do_final_cleanups): Remove parameter.
161 * common/cleanups.c (cleanup_chain, make_cleanup)
162 (make_cleanup_dtor, all_cleanups, do_cleanups)
163 (discard_my_cleanups, discard_cleanups)
164 (discard_final_cleanups, save_my_cleanups, save_cleanups)
165 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
166 (null_cleanup): Remove.
167 (do_final_cleanups): Remove parameter.
168
c6321f19
TT
1692019-03-06 Tom Tromey <tom@tromey.com>
170
171 * remote.c (remote_target::remote_parse_stop_reply): Use
172 unique_xmalloc_ptr.
173
61b30099
TT
1742019-03-06 Tom Tromey <tom@tromey.com>
175
176 * stabsread.c (struct stabs_field_info): Rename from field_info.
177 <list, fnlist>: Add initializers.
178 <obstack>: New member.
179 (read_member_functions, read_struct_fields, read_baseclasses):
180 Allocate on obstack. Don't use cleanups.
181 (read_one_struct_field, read_member_functions, read_struct_fields)
182 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
183 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
184 (read_struct_type): Update.
185
6cceac94
TT
1862019-03-06 Tom Tromey <tom@tromey.com>
187
188 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
189 * common/filestuff.h (make_cleanup_close): Don't declare.
190 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
191 Remove.
192
72412762
TT
1932019-03-06 Tom Tromey <tom@tromey.com>
194
195 * solib-aix.c: Use make_scope_exit.
196
2b6ff1c0
TT
1972019-03-06 Tom Tromey <tom@tromey.com>
198
199 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
200 Use make_scope_exit.
201
d01c5877
TT
2022019-03-06 Tom Tromey <tom@tromey.com>
203
204 * solib-svr4.c (disable_probes_interface): Remove parameter.
205 (svr4_handle_solib_event): Use make_scope_exit.
206
32603266
TT
2072019-03-06 Tom Tromey <tom@tromey.com>
208
209 * remote.c (struct stop_reply_deleter): Remove.
210 (stop_reply_up): Update.
211 (struct stop_reply): Derive from notif_event. Don't typedef.
212 <regcache>: Now a std::vector.
213 (stop_reply_xfree): Remove.
214 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
215 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
216 (remote_target::discard_pending_stop_replies): Use delete.
217 (remote_target::remote_parse_stop_reply): Update.
218 (remote_target::process_stop_reply): Update.
219 * remote-notif.h (struct notif_event): Add virtual destructor.
220 Remove "dtr" member.
221 (struct notif_client) <alloc_event>: Return a unique_ptr.
222 (notif_event_xfree): Don't declare.
223 (notif_event_up): New typedef.
224 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
225 (notif_event_xfree, do_notif_event_xfree): Remove.
226 (remote_notif_state_xfree): Update.
227
9799571e
TT
2282019-03-06 Tom Tromey <tom@tromey.com>
229
230 * infrun.c (displaced_step_clear_cleanup): Now a
231 forward_scope_exit type.
232 (displaced_step_prepare_throw): Update.
233 (displaced_step_fixup): Update.
234
09e3c4ca
TT
2352019-03-06 Tom Tromey <tom@tromey.com>
236
237 * inferior.h (class inferior): Update comment.
238 * gdbthread.h (class thread_info): Update comment.
239
e2a03548
TT
2402019-03-06 Joel Brobecker <brobecker@adacore.com>
241 Tom Tromey <tom@tromey.com>
242
243 * stabsread.h (struct stab_section_list): Remove.
244 (coffstab_build_psymtabs): Update.
245 * dbxread.c (symbuf_sections): Now a std::vector.
246 (sect_idx): New global.
247 (fill_symbuf): Update.
248 (coffstab_build_psymtabs): Change type of stabsects parameter.
249 Update.
250 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
251 std::vector.
252 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
253 (coff_locate_sections): Update.
254 (coff_symfile_read): Remove cleanups. Update.
255 (init_stringtab): Add storage parameter.
256 (free_stringtab, free_stringtab_cleanup): Remove.
257 (init_lineno): Add storage parameter.
258 (free_linetab, free_linetab_cleanup): Remove.
259
b7e60d85
PA
2602019-03-06 Pedro Alves <palves@redhat.com>
261
262 * linux-fork.c (fork_info::clobber_regs): Delete.
263 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
264 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
265 comment. Adjust.
266 (scoped_switch_fork_info::scoped_switch_fork_info)
267 (checkpoint_command, linux_fork_context): Adjust
268 fork_save_infrun_state calls.
269
e52c971f
PA
2702019-03-06 Pedro Alves <palves@redhat.com>
271
272 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
273 (inf_has_multiple_threads): Return 'bool' and rewrite using
274 inferior_info::threads().
275
06974e6c
PA
2762019-03-06 Pedro Alves <palves@redhat.com>
277
278 * linux-fork.c: Include <list>.
279 (fork_list): Now a std::list instance.
280 (fork_info): Add ctor, dtor, and in-class initialize all fields.
281 (forks_exist_p, find_last_fork): Adjust.
282 (new_fork): Delete.
283 (one_fork_p): New.
284 (add_fork): Adjust.
285 (free_fork): Delete, folded into fork_info::~fork_info().
286 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
287 Adjust.
288 (init_fork_list): Delete.
289 (linux_fork_killall, linux_fork_mourn_inferior)
290 (linux_fork_detach, info_checkpoints_command): Adjust.
291 (_initialize_linux_fork): No longer call init_fork_list.
292
72f31aea
PA
2932019-03-06 Pedro Alves <palves@redhat.com>
294
295 * linux-fork.c (new_fork): New, split out of ...
296 (add_fork): ... this. Return void. Move "first fork" special
297 case from here, to ...
298 (checkpoint_command): ... here.
299 * linux-linux.h (add_fork): Return void.
300
efbecbc1
AB
3012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
302
303 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
304
0841c79a
AB
3052019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
306 Chris January <chris.january@arm.com>
307 David Lecomber <david.lecomber@arm.com>
308
309 * f-exp.y: New token, UNOP_INTRINSIC.
310 (exp): New pattern using UNOP_INTRINSIC token.
311 (f77_keywords): Add 'abs' keyword.
312 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
313 (value_from_host_double): New function.
314 (evaluate_subexp_f): Support UNOP_ABS.
315
4a270568
AB
3162019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
319 types.
320
067630bd
AB
3212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
322
323 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
324 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
325 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
326
3be47f7a
AB
3272019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
328
329 * f-exp.y (convert_to_kind_type): Handle more type kinds.
330
4d00f5d8
AB
3312019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
332 Chris January <chris.january@arm.com>
333
334 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
335 * f-exp.y: Define 'KIND' token.
336 (exp): New pattern for KIND expressions.
337 (ptype): Handle types with a kind extension.
338 (direct_abs_decl): Extend to spot kind extensions.
339 (f77_keywords): Add 'kind' to the list.
340 (push_kind_type): New function.
341 (convert_to_kind_type): New function.
342 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
343 * parse.c (operator_length_standard): Likewise.
344 * parser-defs.h (enum type_pieces): Add tp_kind.
345 * std-operator.def: Add UNOP_KIND.
346
e454224f
AB
3472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
348
349 * f-exp.y (f_parse): Set yydebug.
350
9dad4a58
AB
3512019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * f-lang.c (evaluate_subexp_f): New function.
354 (exp_descriptor_f): New global.
355 (f_language_defn): Use exp_descriptor_f instead of
356 exp_descriptor_standard.
357
c8f91604
AB
3582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
359
360 * f-exp.y (struct token): Add comments.
361 (dot_ops): Remove uppercase versions and the end marker.
362 (f77_keywords): Likewise.
363 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
364 entries in the dot_ops array are case insensitive, and use
365 strncasecmp to compare strings. Also some whitespace cleanup in
366 this area. Similar for the f77_keywords array, except entries in
367 this list might be case sensitive.
368
dd9f2c76
AB
3692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
370
371 * f-exp.y (struct f77_boolean_val): Add comments.
372 (boolean_values): Remove uppercase versions, and end marker.
373 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
374 and use strncasecmp to achieve case insensitivity. Additionally,
375 perform whitespace cleanup around this code.
376
67a3048c
TT
3772019-03-06 Tom Tromey <tromey@adacore.com>
378
379 * remote-sim.c (gdbsim_target_open): Use result of
380 gdb_argv::release.
381
aa3cfbda
RB
3822019-03-06 Richard Bunt <richard.bunt@arm.com>
383 Dirk Schubert <dirk.schubert@arm.com>
384 Chris January <chris.january@arm.com>
385
386 * eval.c (evaluate_subexp_standard): Call Fortran argument
387 wrapping logic.
388 * f-lang.c (struct value): A value which can be passed into a
389 Fortran function call.
390 (fortran_argument_convert): Wrap Fortran arguments in a pointer
391 where appropriate.
392 (struct type): Value ready for a Fortran function call.
393 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
394 is needed.
395 * f-lang.h (fortran_argument_convert): Declaration.
396 (fortran_preserve_arg_pointer): Declaration.
397 * infcall.c (value_arg_coerce): Call Fortran argument logic.
398
ea38e5df
TT
3992019-03-05 Tom Tromey <tromey@adacore.com>
400
401 * python/py-prettyprint.c (print_string_repr): Remove #if.
402 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
403
06b5b831
TT
4042019-03-05 Tom Tromey <tromey@adacore.com>
405
406 * target.c (the_dummy_target): Move later. Change type to
407 "dummy_target".
408 (initialize_targets): Don't initialize the_dummy_target.
409
edbd9e45
TT
4102019-03-05 Tom Tromey <tromey@adacore.com>
411
412 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
413 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
414
c119e040
TT
4152019-03-05 Tom Tromey <tromey@adacore.com>
416
417 * windows-nat.c (windows_nat_target::attach)
418 (windows_nat_target::detach): Don't call gdb_flush.
419 * valprint.c (generic_val_print, val_print, val_print_string):
420 Don't call gdb_flush.
421 * utils.c (defaulted_query): Don't call gdb_flush.
422 * typeprint.c (print_type_scalar): Don't call gdb_flush.
423 * target.c (target_announce_detach): Don't call gdb_flush.
424 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
425 * remote.c (extended_remote_target::attach): Don't call
426 gdb_flush.
427 * procfs.c (procfs_target::detach): Don't call gdb_flush.
428 * printcmd.c (do_examine): Don't call gdb_flush.
429 (info_display_command): Don't call gdb_flush.
430 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
431 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
432 * memattr.c (info_mem_command): Don't call gdb_flush.
433 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
434 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
435 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
436 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
437 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
438 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
439 (gnu_nat_target::detach): Don't call gdb_flush.
440 * f-valprint.c (f_val_print): Don't call gdb_flush.
441 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
442 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
443 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
444 gdb_flush.
445 * c-valprint.c (c_val_print): Don't call gdb_flush.
446 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
447
895dafa6
TT
4482019-03-05 Tom Tromey <tromey@adacore.com>
449
450 * varobj.c (update_dynamic_varobj_children): Update.
451 (install_default_visualizer): Use reset, not release.
452 * value.c (set_internalvar): Update.
453 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
454 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
455 ATTRIBUTE_UNUSED_RESULT.
456
88a774b9
TT
4572019-03-05 Tom Tromey <tromey@adacore.com>
458
459 * remote.c (class scoped_remote_fd) <release>: Add
460 ATTRIBUTE_UNUSED_RESULT.
461
4e4a8b93
TT
4622019-03-05 Tom Tromey <tromey@adacore.com>
463
464 * macroexp.c (struct macro_buffer) <release>: Add
465 ATTRIBUTE_UNUSED_RESULT.
466
083eef1f
TT
4672019-03-05 Tom Tromey <tromey@adacore.com>
468
469 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
470 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
471 ATTRIBUTE_UNUSED_RESULT.
472
3cabd438
TT
4732019-03-05 Tom Tromey <tromey@adacore.com>
474
475 * common/scoped_fd.h (class scoped_fd) <release>: Add
476 ATTRIBUTE_UNUSED_RESULT.
477
41e3300a
TT
4782019-03-05 Tom Tromey <tromey@adacore.com>
479
480 * parser-defs.h (struct parser_state) <release>: Add
481 ATTRIBUTE_UNUSED_RESULT.
482
18cb7c9f
TT
4832019-03-05 Tom Tromey <tromey@adacore.com>
484
485 * utils.h (class gdb_argv) <release>: Add
486 ATTRIBUTE_UNUSED_RESULT.
487 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
488
41fa577f
EZ
4892019-03-02 Eli Zaretskii <eliz@gnu.org>
490
a6a4b2c6
EZ
491 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
492 for-loop range, to avoid compiler warnings.
493
494 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
495 avoid compiler warnings about unused variables.
496
742a7df5
EZ
497 * NEWS: Mention end of support for native debugging on MS-Windows
498 before XP.
499
41fa577f
EZ
500 PR gdb/24292
501 * common/netstuff.c:
502 * gdbserver/gdbreplay.c
503 * gdbserver/remote-utils.c:
504 * ser-tcp.c:
505 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
506 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
507 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
508 'getaddrinfo' and 'freeaddrinfo' were not available before
509 Windows XP, and mingw.org's MinGW headers by default define
510 _WIN32_WINNT to 0x500.
511
827f438f
GB
5122019-03-01 Gary Benson <gbenson@redhat.com>
513
514 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
515
92137da0
RO
5162019-02-28 Brian Vandenberg <phantall@gmail.com>
517 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
518
519 PR gdb/8527
520 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
521 set_sigint_trap, clear_sigint_trap.
522
799efbe8
PW
5232019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
524
525 * target.c (target_detach): Clear the regcache and the
526 frame cache.
527
8ed25214
PA
5282019-02-27 Pedro Alves <palves@redhat.com>
529
530 * utils.c (set_screen_size): When we cap the height/width sizes,
531 tweak the corresponding command variable to show "unlimited":
532
23031e31
SJ
5332019-02-27 Saagar Jha <saagar@saagarjha.com>
534 Pedro Alves <palves@redhat.com>
535
536 * utils.c (set_screen_size): Reduce "infinite" rows and columns
537 before calling rl_set_screen_size.
538
6c28e44a
TT
5392019-02-27 Tom Tromey <tromey@adacore.com>
540
541 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
542 define.
543 * python/py-value.c: Remove Python 2.4 workaround.
544 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
545 workaround.
546 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
547 Python 2.4 workaround.
548 * python/python-internal.h: Remove Python 2.4 comment.
549 (Py_ssize_t): Don't define.
550 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
551 (gdb_Py_DECREF): Remove Python 2.4 workaround.
552 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
553 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
554 * python/python.c (do_start_initialization): Remove Python 2.4
555 workaround.
556 * python/py-prettyprint.c (class dummy_python_frame): Remove.
557 (print_children): Remove Python 2.4 workaround.
558 * python/py-inferior.c (buffer_procs): Remove Python 2.4
559 workaround.
560 (CHARBUFFERPROC_NAME): Remove.
561 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
562 Python 2.4 workaround.
563
2c3fc25d 5642019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 565
2c3fc25d
KB
566 * NEWS: Note minimum Python version.
567
6ca62222
KB
5682019-02-27 Kevin Buettner <kevinb@redhat.com>
569
570 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
571 code from these functions. Remove corresponding ifdefs. Use
572 Py_buffer_up instead of explicit calls to PyBuffer_Release.
573 Remove gotos and target of gotos.
574 (infpy_search_memory): Likewise.
575
f4bc7d2c
AB
5762019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
577
578 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
579 (hppa_gdbarch_init): Don't register deleted functions with
580 gdbarch.
581
9734a586
AB
5822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
583
584 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
585 (h8300_unwind_sp): Delete.
586 (h8300_dummy_id): Delete.
587 (h8300_gdbarch_init): Don't register deleted functions with
588 gdbarch.
589
68b867f3
AB
5902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
591
592 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
593 (ft32_unwind_pc): Delete.
594 (ft32_unwind_sp): Delete.
595 (ft32_gdbarch_init): Don't register deleted functions with
596 gdbarch.
597
2fbe7ad0
AB
5982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
599
600 * gdb/frv-tdep.c (frv_dummy_id): Delete.
601 (frv_unwind_pc): Delete.
602 (frv_unwind_sp): Delete.
603 (frv_gdbarch_init): Don't register deleted functions with
604 gdbarch.
605
76055cbe
AB
6062019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
607
608 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
609 (riscv_unwind_pc): Delete.
610 (riscv_unwind_sp): Delete.
611 (riscv_gdbarch_init): Don't register deleted functions with
612 gdbarch.
613
4133e5a1
AB
6142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
615
616 * gdb/csky-tdep.c (csky_dummy_id): Delete.
617 (csky_unwind_pc): Delete.
618 (csky_unwind_sp): Delete.
619 (csky_gdbarch_init): Don't register deleted functions with
620 gdbarch.
621
8010f576
AB
6222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
623
624 * gdb/cris-tdep.c (cris_dummy_id): Delete.
625 (cris_unwind_pc): Delete.
626 (cris_unwind_sp): Delete.
627 (cris_gdbarch_init): Don't register deleted functions with
628 gdbarch.
629
b56bf084
AB
6302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
631
632 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
633 (bfin_unwind_pc): Delete.
634 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
635
a19a650f
AB
6362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
637
638 * gdb/arm-tdep.c (arm_dummy_id): Delete.
639 (arm_unwind_pc): Delete.
640 (arm_unwind_sp): Delete.
641 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
642
f8278c3c
AB
6432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
644
645 * gdb/arc-tdep.c (arc_dummy_id): Delete.
646 (arc_unwind_pc): Delete.
647 (arc_unwind_sp): Delete.
648 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
649
480e46cf
AB
6502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
651
652 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
653 (alpha_unwind_pc): Delete.
654 (alpha_gdbarch_init): Don't register deleted functions with
655 gdbarch.
656
7a995095
AB
6572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
658
659 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
660 (aarch64_unwind_pc): Delete.
661 (aarch64_unwind_sp): Delete.
662 (aarch64_gdbarch_init): Don't register deleted functions with
663 gdbarch.
664
bf9a735e
AB
6652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
666
667 * gdbtypes.c (type_align): Don't consider static members when
668 computing structure alignment.
669
5561fc30
AB
6702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
671
672 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
673 return 0 for other types.
674 * arch-utils.c (default_type_align): Always return 0.
675 * gdbarch.h: Regenerate.
676 * gdbarch.sh (type_align): Extend comment.
677 * gdbtypes.c (type_align): Add additional comments, always call
678 gdbarch_type_align before applying the default rules.
679 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
680 generic code will then apply a suitable default.
681 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
682 types, return 0 for other types.
683
9335e75a
JB
6842019-02-27 Joel Brobecker <brobecker@adacore.com>
685
686 * NEWS: Create a new section for the next release branch.
687 Rename the section of the current branch, now that it has
688 been cut.
689
3d34d8de
JB
6902019-02-27 Joel Brobecker <brobecker@adacore.com>
691
692 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
693 * version.in: Bump version to 8.3.50.DATE-git.
694
143420fb
SM
6952019-02-26 Simon Marchi <simon.marchi@efficios.com>
696
697 * aix-thread.c (ptid_cmp): Remove unused variable.
698 (get_signaled_thread): Likewise.
699 (store_regs_user_thread): Likewise.
700 (store_regs_kernel_thread): Likewise.
701 (fetch_regs_kernel_thread): Remove shadowed variable.
702
172fb711
AB
7032019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * features/riscv/32bit-cpu.xml: Add register numbers.
706 * features/riscv/32bit-fpu.c: Regenerate.
707 * features/riscv/32bit-fpu.xml: Add register numbers.
708 * features/riscv/64bit-cpu.xml: Add register numbers.
709 * features/riscv/64bit-fpu.c: Regenerate.
710 * features/riscv/64bit-fpu.xml: Add register numbers.
711
26c89782
KB
7122019-02-26 Kevin Buettner <kevinb@redhat.com>
713
af54ade9 714 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
715 * python/py-value.c (convert_buffer_and_type_to_value): New
716 function.
717 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
718 Add support for handling an optional second argument. Call
719 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
720 * python/python-internal.h (Py_buffer_deleter): New struct.
721 (Py_buffer_up): New typedef.
722
0f58c9e8
JB
7232019-02-25 John Baldwin <jhb@FreeBSD.org>
724
725 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
726 instead of releasing ownership.
727
0a0f4c01
JR
7282019-02-25 Jordan Rupprecht <rupprecht@google.com>
729
730 * dwarf2read.c (open_and_init_dwp_file): Call
731 elf_numsections instead of bfd_count_sections to initialize
732 dwp_file->num_sections.
733
cd5a152c
TT
7342019-02-25 Tom Tromey <tromey@adacore.com>
735
736 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
737
8a6a8513
SDJ
7382019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
739
740 * gcore.in: Add '--readnever' option when invoking GDB.
741
04dcda9c
SM
7422019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
743
744 * MAINTAINERS: Update my email address.
745
07bc701d
SM
7462019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
747
748 * build-id.c (build_id_to_debug_bfd_1): New function.
749 (build_id_to_debug_bfd): Look for separate debug file in
750 sysroot.
751
c6f4a5d0
AB
7522019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
753
754 * gdbarch.sh: Update the copyright year range that is placed into
755 generated files.
756
9600246d
KS
7572019-02-22 Keith Seitz <keiths@redhat.com>
758
759 PR symtab/23853
760 * linespec.c (create_sals_line_offset): Search for the default
761 symtab's filename instead of its fullname.
762
7557a514
AH
7632019-02-21 Alan Hayward <alan.hayward@arm.com>
764
765 * NEWS: Update style defaults.
766
ee2bcb0c
AH
7672019-02-21 Alan Hayward <alan.hayward@arm.com>
768
769 * main.c (captured_main_1): Disable styling in batch mode.
770
0c95f9ed
TT
7712019-02-20 Tom Tromey <tom@tromey.com>
772
773 * symtab.c (symtab_symbol_info): Fix typos.
774
c763b894
TT
7752019-02-20 Tom Tromey <tromey@adacore.com>
776
777 * findcmd.c (_initialize_mem_search): Use upper case for
778 metasyntactic variables.
779
0ef8a082
AH
7802019-02-20 Alan Hayward <alan.hayward@arm.com>
781
782 * aarch64-tdep.c (aarch64_add_reggroups): New function.
783 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
784
6caa91b6
SM
7852019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
786
787 * top.h (source_file_name): Change to std::string.
788 * top.c (source_file_name): Likewise.
789 (command_line_input): Adjust.
790 * cli/cli-script.c (script_from_file): Adjust.
791
98814c6c
TT
7922019-02-19 Tom Tromey <tromey@adacore.com>
793
794 * ravenscar-thread.c
795 (ravenscar_thread_target::update_thread_list): Don't call
796 ada_build_task_list.
797 * ada-lang.h (ada_build_task_list): Don't declare.
798 * ada-tasks.c (struct ada_tasks_inferior_data)
799 <task_list_valid_p>: Now bool.
800 (read_known_tasks, ada_task_list_changed)
801 (ada_tasks_invalidate_inferior_data): Update.
802 (read_known_tasks_array): Return bool.
803 (read_known_tasks_list): Likewise.
804 (read_known_tasks): Return void.
805 (ada_build_task_list): Now static.
806
70cd633e
AB
8072019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
808
809 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
810 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
811
040b3e95
PW
8122019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
813
814 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
815 variant for ada_tasks_pspace_data_handle and
816 ada_tasks_inferior_data_handle.
817 (ada_tasks_pspace_data_cleanup): New function.
818 (ada_tasks_inferior_data_cleanup): New function.
819
9409233b
TT
8202019-02-17 Tom Tromey <tom@tromey.com>
821
822 * macrotab.h (macro_source_fullname): Return a std::string.
823 * macrotab.c (macro_include, check_for_redefinition)
824 (macro_undef, macro_lookup_definition, foreach_macro)
825 (foreach_macro_in_scope): Update.
826 (macro_source_fullname): Return a std::string.
827 * macrocmd.c (show_pp_source_pos): Update.
828
6506371f
TT
8292019-02-17 Tom Tromey <tom@tromey.com>
830
831 * macrocmd.c (show_pp_source_pos): Style the file names.
832
0c820d67
TT
8332019-02-17 Tom Tromey <tom@tromey.com>
834
835 PR tui/24197:
836 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
837
a0087920
TT
8382019-02-17 Tom Tromey <tom@tromey.com>
839
840 * ada-lang.c (user_select_syms): Use filtered printing.
841 * utils.c (wrap_style): New global.
842 (desired_style): Remove.
843 (emit_style_escape): Add stream parameter.
844 (set_output_style, reset_terminal_style, prompt_for_continue):
845 Update.
846 (flush_wrap_buffer): Only flush gdb_stdout.
847 (wrap_here): Set wrap_style.
848 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
849 treat escape sequences as a character. Change when wrap buffer is
850 flushed.
851 (fputs_styled): Do not set the output style when the default is
852 requested.
853 * ui-style.h (struct ui_file_style) <is_default>: New method.
854 * source.c (print_source_lines_base): Emit escape sequences in one
855 piece.
856
75ba10dc
JB
8572019-02-17 Joel Brobecker <brobecker@adacore.com>
858
859 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
860 integers and enumeration types.
861
a2cd4f14
JB
8622019-02-17 Joel Brobecker <brobecker@adacore.com>
863
864 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
865 instead of lookup_symbol_in_language
866 (do_exact_match): New function.
867 (ada_get_symbol_name_matcher): Return do_exact_match when
868 doing a verbatim match.
869
485b851b
TT
8702019-02-15 Tom Tromey <tromey@adacore.com>
871
872 * ravenscar-thread.c (ravenscar_thread_target::resume)
873 (ravenscar_thread_target::wait): Special case wildcard requests.
874
0b790b1e
TT
8752019-02-15 Tom Tromey <tromey@adacore.com>
876
877 * ravenscar-thread.c (base_ptid): Remove.
878 (struct ravenscar_thread_target) <close>: New method.
879 <m_base_ptid>: New member.
880 <update_inferior_ptid, active_task, task_is_currently_active,
881 runtime_initialized>: Declare methods.
882 <ravenscar_thread_target>: Add constructor.
883 (ravenscar_thread_target::task_is_currently_active)
884 (ravenscar_thread_target::update_inferior_ptid)
885 (ravenscar_runtime_initialized): Rename. Now methods.
886 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
887 (ravenscar_thread_target::update_thread_list): Update.
888 (ravenscar_thread_target::active_task): Now method.
889 (ravenscar_thread_target::store_registers)
890 (ravenscar_thread_target::prepare_to_store)
891 (ravenscar_thread_target::prepare_to_store)
892 (ravenscar_thread_target::mourn_inferior): Update.
893 (ravenscar_inferior_created): Use "new" to create target.
894 (ravenscar_thread_target::get_ada_task_ptid): Update.
895 (_initialize_ravenscar): Don't initialize base_ptid.
896 (ravenscar_ops): Remove global.
897
dea57a62
TT
8982019-02-15 Tom Tromey <tromey@adacore.com>
899
900 * target.h (push_target): Declare new overload.
901 * target.c (push_target): New overload, taking an rvalue reference.
902 * remote.c (remote_target::open_1): Use push_target overload.
903 * corelow.c (core_target_open): Use push_target overload.
904
989f3c58
TT
9052019-02-15 Tom Tromey <tromey@adacore.com>
906
907 * ravenscar-thread.c (is_ravenscar_task)
908 (ravenscar_task_is_currently_active): Return bool.
909 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
910 (_initialize_ravenscar): Remove "(void)".
911 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
912 Return bool.
913
6cbcc006
TT
9142019-02-15 Tom Tromey <tromey@adacore.com>
915
916 * ravenscar-thread.c (ravenscar_runtime_initializer)
917 (has_ravenscar_runtime, get_running_thread_id)
918 (ravenscar_thread_target::resume): Fix indentation.
919
7657f14d
TT
9202019-02-15 Tom Tromey <tromey@adacore.com>
921
922 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
923 from ravenscar_arch_ops.
924 (sparc_ravenscar_ops::fetch_registers)
925 (sparc_ravenscar_ops::store_registers): Now methods.
926 (sparc_ravenscar_prepare_to_store): Remove.
927 (sparc_ravenscar_ops): Redefine.
928 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
929 methods and destructor. Remove members.
930 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
931 (ravenscar_thread_target::store_registers)
932 (ravenscar_thread_target::prepare_to_store): Update.
933 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
934 Remove.
935 (struct ppc_ravenscar_powerpc_ops): Derive from
936 ravenscar_arch_ops.
937 (ppc_ravenscar_powerpc_ops::fetch_registers)
938 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
939 (ppc_ravenscar_powerpc_ops): Redefine.
940 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
941 (ppc_ravenscar_e500_ops::fetch_registers)
942 (ppc_ravenscar_e500_ops::store_registers): Now methods.
943 (ppc_ravenscar_e500_ops): Redefine.
944 * aarch64-ravenscar-thread.c
945 (aarch64_ravenscar_generic_prepare_to_store): Remove.
946 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
947 (aarch64_ravenscar_fetch_registers)
948 (aarch64_ravenscar_store_registers): Now methods.
949 (aarch64_ravenscar_ops): Redefine.
950
5b6ea500
TT
9512019-02-15 Tom Tromey <tromey@adacore.com>
952
953 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
954 (ravenscar_thread_target::stopped_by_hw_breakpoint)
955 (ravenscar_thread_target::stopped_by_watchpoint)
956 (ravenscar_thread_target::stopped_data_address)
957 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
958
e397fd39
TT
9592019-02-15 Tom Tromey <tromey@adacore.com>
960
961 * ravenscar-thread.c: Fix some typos.
962
cc12f4a8
TT
9632019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
964 Tom Tromey <tromey@adacore.com>
965
966 * ada-lang.c (ada_exception_sal): Change addr_string to a
967 std::string.
968 (create_ada_exception_catchpoint): Update.
969
5f486660
TT
9702019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
971 Tom Tromey <tromey@adacore.com>
972
973 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
974 (bp_location_ops): Remove.
975 (base_breakpoint_allocate_location): Update.
976 (free_bp_location): Update.
977 * ada-lang.c (class ada_catchpoint_location)
978 <ada_catchpoint_location>: Remove ops parameter.
979 (ada_catchpoint_location_dtor): Remove.
980 (ada_catchpoint_location_ops): Remove.
981 (allocate_location_exception): Update.
982 * breakpoint.h (struct bp_location_ops): Remove.
983 (class bp_location) <bp_location>: Remove bp_location_ops
984 parameter.
985 <~bp_location>: Add destructor.
986 <ops>: Remove.
987
b671c7fb
TS
9882019-02-14 Thomas Schwinge <thomas@codesourcery.com>
989 Pedro Alves <palves@redhat.com>
990
991 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
992 'PATH_MAX'.
993
8071c5ce
DM
9942019-02-14 David Michael <fedora.dm0@gmail.com>
995 Samuel Thibault <samuel.thibault@gnu.org>
996 Thomas Schwinge <thomas@codesourcery.com>
997
998 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
999 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
1000
b1041ae0
TS
10012019-02-14 Thomas Schwinge <thomas@codesourcery.com>
1002
924514e1
TS
1003 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
1004 (check_empty): Use "const char *".
1005
c29ee8d4
TS
1006 * gnu-nat.c (gnu_nat_target::detach): Instead of
1007 'detach_inferior (pid)' call
1008 'detach_inferior (find_inferior_pid (pid))'.
1009
6c6ef69f
TS
1010 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
1011 'nat/fork-inferior.o'.
1012 * gnu-nat.c: #include "nat/fork-inferior.h".
1013
2d0a338c
TS
1014 * gnu-nat.c (gnu_nat_target::detach): Instead of
1015 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
1016 * gnu-nat.h: #include "inf-child.h".
1017 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
1018 'i386_gnu_nat_target::fetch_registers'.
1019 (gnu_store_registers): Rename/move to
1020 'i386_gnu_nat_target::store_registers'.
1021
cabb5f06
TS
1022 * config/i386/nm-i386gnu.h: Don't "#include" any files.
1023 * gnu-nat.h (mach_thread_info): New function.
1024 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
1025
b1041ae0
TS
1026 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
1027
2988d01e
KF
10282019-02-14 Frederic Konrad <konrad@adacore.com>
1029
1030 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
1031
c559d709
JB
10322019-02-14 Joel Brobecker <brobecker@adacore.com>
1033
1034 * windows-nat.c (windows_add_thread): Add new parameter
1035 "main_thread_p" with default value set to false. Update
1036 function documentation as well as all callers.
1037 (windows_delete_thread): Likewise.
1038 (fake_create_process): Update call to windows_add_thread.
1039 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
1040 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
1041 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
1042 call to windows_delete_thread.
1043
007024cc
SM
10442019-02-13 Simon Marchi <simon.marchi@ericsson.com>
1045
1046 * MAINTAINERS: Add Andrew Burgess as global maintainer.
1047
f62318e9
JB
10482019-02-12 John Baldwin <jhb@FreeBSD.org>
1049
1050 * symfile.c (find_separate_debug_file): Use canonical path of
1051 sysroot with child_path instead of gdb_sysroot if it is valid.
1052
cd4b7848
JB
10532019-02-12 John Baldwin <jhb@FreeBSD.org>
1054
1055 * symfile.c (find_separate_debug_file): Use child_path to
1056 determine if an object file is under a sysroot.
1057
efac4bfe
JB
10582019-02-12 John Baldwin <jhb@FreeBSD.org>
1059
1060 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1061 unittests/child-path-selftests.c.
1062 * common/pathstuff.c (child_path): New function.
1063 * common/pathstuff.h (child_path): New prototype.
1064 * unittests/child-path-selftests.c: New file.
1065
402d2bfe
JB
10662019-02-12 John Baldwin <jhb@FreeBSD.org>
1067
1068 * symfile.c (find_separate_debug_file): Look for separate debug
1069 files in debug directories under the sysroot.
1070
1ed9f74e
PW
10712019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1072
1073 * symtab.h (struct minimal_symbol data_p): New const method.
1074 (struct minimal_symbol text_p): Likewise.
1075 * symtab.c (output_source_filename): Use file name style
1076 to print file name.
1077 (print_symbol_info): Likewise.
1078 (print_msymbol_info): Use address style to print addresses.
1079 Use function name style to print executable text symbols.
1080 (expand_symtab_containing_pc): Use data_p.
1081 (find_pc_sect_compunit_symtab): Likewise.
1082
2636d81d
PW
10832019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1084
1085 * breakpoint.c (describe_other_breakpoints): Use address style
1086 to print addresses.
1087 (say_where): Likewise.
1088
ac8c53cc
PW
10892019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1090
1091 * ada-typeprint.c (print_func_type): Print function name
1092 style to print function name.
1093 * c-typeprint.c (c_print_type_1): Likewise.
1094
ea638c43
AH
10952019-02-11 Alan Hayward <alan.hayward@arm.com>
1096
1097 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
1098 for execve.
1099
ab759ca8
PW
11002019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1101
1102 * c-exp.y (direct_abs_decl): Use emplace_back to record the
1103 type_stack.
1104
aff29d1c
JB
11052019-02-10 Joel Brobecker <brobecker@adacore.com>
1106
1107 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
1108 TYPE_CODE_REF types.
1109
617126bc
JW
11102019-02-08 Jim Wilson <jimw@sifive.com>
1111
1112 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
1113 (riscv_linux_fregset): New.
1114 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
1115
46e3ed7f
TT
11162019-02-07 Tom Tromey <tom@tromey.com>
1117
1118 * thread.c (thread_cancel_execution_command): Update.
1119 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
1120 methods.
1121 (struct thread_fsm_ops): Remove.
1122 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
1123 (thread_fsm_should_stop, thread_fsm_return_value)
1124 (thread_fsm_set_finished, thread_fsm_finished_p)
1125 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
1126 Don't declare.
1127 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
1128 * infrun.c (clear_proceed_status_thread)
1129 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
1130 (print_stop_event): Update.
1131 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
1132 Add constructor.
1133 (step_command_fsm_ops): Remove.
1134 (new_step_command_fsm): Remove.
1135 (step_1): Update.
1136 (step_command_fsm::should_stop): Rename from
1137 step_command_fsm_should_stop.
1138 (step_command_fsm::clean_up): Rename from
1139 step_command_fsm_clean_up.
1140 (step_command_fsm::do_async_reply_reason): Rename from
1141 step_command_fsm_async_reply_reason.
1142 (struct until_next_fsm): Inherit from thread_fsm. Add
1143 constructor.
1144 (until_next_fsm_ops): Remove.
1145 (new_until_next_fsm): Remove.
1146 (until_next_fsm::should_stop): Rename from
1147 until_next_fsm_should_stop.
1148 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
1149 (until_next_fsm::do_async_reply_reason): Rename from
1150 until_next_fsm_async_reply_reason.
1151 (struct finish_command_fsm): Inherit from thread_fsm. Add
1152 constructor. Change type of breakpoint.
1153 (finish_command_fsm_ops): Remove.
1154 (new_finish_command_fsm): Remove.
1155 (finish_command_fsm::should_stop): Rename from
1156 finish_command_fsm_should_stop.
1157 (finish_command_fsm::clean_up): Rename from
1158 finish_command_fsm_clean_up.
1159 (finish_command_fsm::return_value): Rename from
1160 finish_command_fsm_return_value.
1161 (finish_command_fsm::do_async_reply_reason): Rename from
1162 finish_command_fsm_async_reply_reason.
1163 (finish_command): Update.
1164 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
1165 Add constructor.
1166 (call_thread_fsm_ops): Remove.
1167 (call_thread_fsm::call_thread_fsm): Rename from
1168 new_call_thread_fsm.
1169 (call_thread_fsm::should_stop): Rename from
1170 call_thread_fsm_should_stop.
1171 (call_thread_fsm::should_notify_stop): Rename from
1172 call_thread_fsm_should_notify_stop.
1173 (run_inferior_call, call_function_by_hand_dummy): Update.
1174 * cli/cli-interp.c (should_print_stop_to_console): Update.
1175 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
1176 Add constructor. Change type of location_breakpoint,
1177 caller_breakpoint.
1178 (until_break_fsm_ops): Remove.
1179 (new_until_break_fsm): Remove.
1180 (until_break_fsm::should_stop): Rename from
1181 until_break_fsm_should_stop.
1182 (until_break_fsm::clean_up): Rename from
1183 until_break_fsm_clean_up.
1184 (until_break_fsm::do_async_reply_reason): Rename from
1185 until_break_fsm_async_reply_reason.
1186 (until_break_command): Update.
1187 * thread-fsm.c: Remove.
1188 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
1189
1a5c2598
TT
11902019-02-07 Tom Tromey <tom@tromey.com>
1191
1192 * yy-remap.h: Add include guard.
1193 * xtensa-tdep.h: Add include guard.
1194 * xcoffread.h: Rename include guard.
1195 * varobj-iter.h: Add include guard.
1196 * tui/tui.h: Rename include guard.
1197 * tui/tui-winsource.h: Rename include guard.
1198 * tui/tui-wingeneral.h: Rename include guard.
1199 * tui/tui-windata.h: Rename include guard.
1200 * tui/tui-win.h: Rename include guard.
1201 * tui/tui-stack.h: Rename include guard.
1202 * tui/tui-source.h: Rename include guard.
1203 * tui/tui-regs.h: Rename include guard.
1204 * tui/tui-out.h: Rename include guard.
1205 * tui/tui-layout.h: Rename include guard.
1206 * tui/tui-io.h: Rename include guard.
1207 * tui/tui-hooks.h: Rename include guard.
1208 * tui/tui-file.h: Rename include guard.
1209 * tui/tui-disasm.h: Rename include guard.
1210 * tui/tui-data.h: Rename include guard.
1211 * tui/tui-command.h: Rename include guard.
1212 * tic6x-tdep.h: Add include guard.
1213 * target/waitstatus.h: Rename include guard.
1214 * target/wait.h: Rename include guard.
1215 * target/target.h: Rename include guard.
1216 * target/resume.h: Rename include guard.
1217 * target-float.h: Rename include guard.
1218 * stabsread.h: Add include guard.
1219 * rs6000-tdep.h: Add include guard.
1220 * riscv-fbsd-tdep.h: Add include guard.
1221 * regformats/regdef.h: Rename include guard.
1222 * record.h: Rename include guard.
1223 * python/python.h: Rename include guard.
1224 * python/python-internal.h: Rename include guard.
1225 * python/py-stopevent.h: Rename include guard.
1226 * python/py-ref.h: Rename include guard.
1227 * python/py-record.h: Rename include guard.
1228 * python/py-record-full.h: Rename include guard.
1229 * python/py-record-btrace.h: Rename include guard.
1230 * python/py-instruction.h: Rename include guard.
1231 * python/py-events.h: Rename include guard.
1232 * python/py-event.h: Rename include guard.
1233 * procfs.h: Add include guard.
1234 * proc-utils.h: Add include guard.
1235 * p-lang.h: Add include guard.
1236 * or1k-tdep.h: Rename include guard.
1237 * observable.h: Rename include guard.
1238 * nto-tdep.h: Rename include guard.
1239 * nat/x86-linux.h: Rename include guard.
1240 * nat/x86-linux-dregs.h: Rename include guard.
1241 * nat/x86-gcc-cpuid.h: Add include guard.
1242 * nat/x86-dregs.h: Rename include guard.
1243 * nat/x86-cpuid.h: Rename include guard.
1244 * nat/ppc-linux.h: Rename include guard.
1245 * nat/mips-linux-watch.h: Rename include guard.
1246 * nat/linux-waitpid.h: Rename include guard.
1247 * nat/linux-ptrace.h: Rename include guard.
1248 * nat/linux-procfs.h: Rename include guard.
1249 * nat/linux-osdata.h: Rename include guard.
1250 * nat/linux-nat.h: Rename include guard.
1251 * nat/linux-namespaces.h: Rename include guard.
1252 * nat/linux-btrace.h: Rename include guard.
1253 * nat/glibc_thread_db.h: Rename include guard.
1254 * nat/gdb_thread_db.h: Rename include guard.
1255 * nat/gdb_ptrace.h: Rename include guard.
1256 * nat/fork-inferior.h: Rename include guard.
1257 * nat/amd64-linux-siginfo.h: Rename include guard.
1258 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
1259 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
1260 * nat/aarch64-linux.h: Rename include guard.
1261 * nat/aarch64-linux-hw-point.h: Rename include guard.
1262 * mn10300-tdep.h: Add include guard.
1263 * mips-linux-tdep.h: Add include guard.
1264 * mi/mi-parse.h: Rename include guard.
1265 * mi/mi-out.h: Rename include guard.
1266 * mi/mi-main.h: Rename include guard.
1267 * mi/mi-interp.h: Rename include guard.
1268 * mi/mi-getopt.h: Rename include guard.
1269 * mi/mi-console.h: Rename include guard.
1270 * mi/mi-common.h: Rename include guard.
1271 * mi/mi-cmds.h: Rename include guard.
1272 * mi/mi-cmd-break.h: Rename include guard.
1273 * m2-lang.h: Add include guard.
1274 * location.h: Rename include guard.
1275 * linux-record.h: Rename include guard.
1276 * linux-nat.h: Add include guard.
1277 * linux-fork.h: Add include guard.
1278 * i386-darwin-tdep.h: Rename include guard.
1279 * hppa-linux-offsets.h: Add include guard.
1280 * guile/guile.h: Rename include guard.
1281 * guile/guile-internal.h: Rename include guard.
1282 * gnu-nat.h: Rename include guard.
1283 * gdb-stabs.h: Rename include guard.
1284 * frv-tdep.h: Add include guard.
1285 * f-lang.h: Add include guard.
1286 * event-loop.h: Add include guard.
1287 * darwin-nat.h: Rename include guard.
1288 * cp-abi.h: Rename include guard.
1289 * config/sparc/nm-sol2.h: Rename include guard.
1290 * config/nm-nto.h: Rename include guard.
1291 * config/nm-linux.h: Add include guard.
1292 * config/i386/nm-i386gnu.h: Rename include guard.
1293 * config/djgpp/nl_types.h: Rename include guard.
1294 * config/djgpp/langinfo.h: Rename include guard.
1295 * compile/gcc-cp-plugin.h: Add include guard.
1296 * compile/gcc-c-plugin.h: Add include guard.
1297 * compile/compile.h: Rename include guard.
1298 * compile/compile-object-run.h: Rename include guard.
1299 * compile/compile-object-load.h: Rename include guard.
1300 * compile/compile-internal.h: Rename include guard.
1301 * compile/compile-cplus.h: Rename include guard.
1302 * compile/compile-c.h: Rename include guard.
1303 * common/xml-utils.h: Rename include guard.
1304 * common/x86-xstate.h: Rename include guard.
1305 * common/version.h: Rename include guard.
1306 * common/vec.h: Rename include guard.
1307 * common/tdesc.h: Rename include guard.
1308 * common/selftest.h: Rename include guard.
1309 * common/scoped_restore.h: Rename include guard.
1310 * common/scoped_mmap.h: Rename include guard.
1311 * common/scoped_fd.h: Rename include guard.
1312 * common/safe-iterator.h: Rename include guard.
1313 * common/run-time-clock.h: Rename include guard.
1314 * common/refcounted-object.h: Rename include guard.
1315 * common/queue.h: Rename include guard.
1316 * common/ptid.h: Rename include guard.
1317 * common/print-utils.h: Rename include guard.
1318 * common/preprocessor.h: Rename include guard.
1319 * common/pathstuff.h: Rename include guard.
1320 * common/observable.h: Rename include guard.
1321 * common/netstuff.h: Rename include guard.
1322 * common/job-control.h: Rename include guard.
1323 * common/host-defs.h: Rename include guard.
1324 * common/gdb_wait.h: Rename include guard.
1325 * common/gdb_vecs.h: Rename include guard.
1326 * common/gdb_unlinker.h: Rename include guard.
1327 * common/gdb_unique_ptr.h: Rename include guard.
1328 * common/gdb_tilde_expand.h: Rename include guard.
1329 * common/gdb_sys_time.h: Rename include guard.
1330 * common/gdb_string_view.h: Rename include guard.
1331 * common/gdb_splay_tree.h: Rename include guard.
1332 * common/gdb_setjmp.h: Rename include guard.
1333 * common/gdb_ref_ptr.h: Rename include guard.
1334 * common/gdb_optional.h: Rename include guard.
1335 * common/gdb_locale.h: Rename include guard.
1336 * common/gdb_assert.h: Rename include guard.
1337 * common/filtered-iterator.h: Rename include guard.
1338 * common/filestuff.h: Rename include guard.
1339 * common/fileio.h: Rename include guard.
1340 * common/environ.h: Rename include guard.
1341 * common/common-utils.h: Rename include guard.
1342 * common/common-types.h: Rename include guard.
1343 * common/common-regcache.h: Rename include guard.
1344 * common/common-inferior.h: Rename include guard.
1345 * common/common-gdbthread.h: Rename include guard.
1346 * common/common-exceptions.h: Rename include guard.
1347 * common/common-defs.h: Rename include guard.
1348 * common/common-debug.h: Rename include guard.
1349 * common/cleanups.h: Rename include guard.
1350 * common/buffer.h: Rename include guard.
1351 * common/btrace-common.h: Rename include guard.
1352 * common/break-common.h: Rename include guard.
1353 * cli/cli-utils.h: Rename include guard.
1354 * cli/cli-style.h: Rename include guard.
1355 * cli/cli-setshow.h: Rename include guard.
1356 * cli/cli-script.h: Rename include guard.
1357 * cli/cli-interp.h: Rename include guard.
1358 * cli/cli-decode.h: Rename include guard.
1359 * cli/cli-cmds.h: Rename include guard.
1360 * charset-list.h: Add include guard.
1361 * buildsym-legacy.h: Rename include guard.
1362 * bfin-tdep.h: Add include guard.
1363 * ax.h: Rename include guard.
1364 * arm-linux-tdep.h: Add include guard.
1365 * arm-fbsd-tdep.h: Add include guard.
1366 * arch/xtensa.h: Rename include guard.
1367 * arch/tic6x.h: Add include guard.
1368 * arch/i386.h: Add include guard.
1369 * arch/arm.h: Rename include guard.
1370 * arch/arm-linux.h: Rename include guard.
1371 * arch/arm-get-next-pcs.h: Rename include guard.
1372 * arch/amd64.h: Add include guard.
1373 * arch/aarch64-insn.h: Rename include guard.
1374 * arch-utils.h: Rename include guard.
1375 * annotate.h: Add include guard.
1376 * amd64-darwin-tdep.h: Rename include guard.
1377 * aarch64-linux-tdep.h: Add include guard.
1378 * aarch64-fbsd-tdep.h: Add include guard.
1379 * aarch32-linux-nat.h: Add include guard.
1380
ab9268d2
PW
13812019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1382
1383 * macrotab.c (macro_define_internal): New function that
1384 factorizes macro_define_object_internal and macro_define_function
1385 code.
1386 (macro_define_object_internal): Use macro_define_internal.
1387 (macro_define_function): Likewise.
1388
bb0da2b4
PW
13892019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1390
1391 * macrocmd.c (extract_identifier): Return
1392 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
1393 callers.
1394
424eb552
JB
13952019-02-06 John Baldwin <jhb@FreeBSD.org>
1396
1397 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
1398
1688cb29
TT
13992019-02-05 Tom Tromey <tom@tromey.com>
1400
1401 * target.c (target_stack::unpush): Move assertion earlier.
1402
b5eba2d8
TT
14032019-01-30 Tom Tromey <tom@tromey.com>
1404
1405 PR python/23615:
1406 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
1407 (gdbpy_parse_and_eval): Likewise.
1408 * python/python-internal.h (gdbpy_allow_threads): New class.
1409
7054e2ff
JB
14102019-01-28 John Baldwin <jhb@FreeBSD.org>
1411
1412 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
1413 (aarch64_fbsd_fpregmap): Move earlier.
1414 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
1415 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
1416 instead of individual calls to trad_frame_set_reg_addr.
1417 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
1418 earlier.
1419 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
1420 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
1421 instead of individual calls to trad_frame_set_reg_addr.
1422
36c25ffa
AH
14232019-01-28 Alan Hayward <alan.hayward@arm.com>
1424
1425 * CONTRIBUTE: Replace contribution list with wiki link.
1426
a0707f3c
TT
14272019-01-25 Tom Tromey <tom@tromey.com>
1428
1429 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
1430
0747795c
TT
14312019-01-25 Tom Tromey <tom@tromey.com>
1432
1433 * xtensa-linux-nat.c: Fix common/ includes.
1434 * xml-support.h: Fix common/ includes.
1435 * xml-support.c: Fix common/ includes.
1436 * x86-linux-nat.c: Fix common/ includes.
1437 * windows-nat.c: Fix common/ includes.
1438 * varobj.h: Fix common/ includes.
1439 * varobj.c: Fix common/ includes.
1440 * value.c: Fix common/ includes.
1441 * valops.c: Fix common/ includes.
1442 * utils.c: Fix common/ includes.
1443 * unittests/xml-utils-selftests.c: Fix common/ includes.
1444 * unittests/utils-selftests.c: Fix common/ includes.
1445 * unittests/unpack-selftests.c: Fix common/ includes.
1446 * unittests/tracepoint-selftests.c: Fix common/ includes.
1447 * unittests/style-selftests.c: Fix common/ includes.
1448 * unittests/string_view-selftests.c: Fix common/ includes.
1449 * unittests/scoped_restore-selftests.c: Fix common/ includes.
1450 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
1451 * unittests/scoped_fd-selftests.c: Fix common/ includes.
1452 * unittests/rsp-low-selftests.c: Fix common/ includes.
1453 * unittests/parse-connection-spec-selftests.c: Fix common/
1454 includes.
1455 * unittests/optional-selftests.c: Fix common/ includes.
1456 * unittests/offset-type-selftests.c: Fix common/ includes.
1457 * unittests/observable-selftests.c: Fix common/ includes.
1458 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
1459 * unittests/memrange-selftests.c: Fix common/ includes.
1460 * unittests/memory-map-selftests.c: Fix common/ includes.
1461 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
1462 * unittests/function-view-selftests.c: Fix common/ includes.
1463 * unittests/environ-selftests.c: Fix common/ includes.
1464 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
1465 * unittests/common-utils-selftests.c: Fix common/ includes.
1466 * unittests/cli-utils-selftests.c: Fix common/ includes.
1467 * unittests/array-view-selftests.c: Fix common/ includes.
1468 * ui-file.c: Fix common/ includes.
1469 * tui/tui-io.c: Fix common/ includes.
1470 * tracepoint.h: Fix common/ includes.
1471 * tracepoint.c: Fix common/ includes.
1472 * tracefile-tfile.c: Fix common/ includes.
1473 * top.h: Fix common/ includes.
1474 * top.c: Fix common/ includes.
1475 * thread.c: Fix common/ includes.
1476 * target/waitstatus.h: Fix common/ includes.
1477 * target/waitstatus.c: Fix common/ includes.
1478 * target.h: Fix common/ includes.
1479 * target.c: Fix common/ includes.
1480 * target-memory.c: Fix common/ includes.
1481 * target-descriptions.c: Fix common/ includes.
1482 * symtab.h: Fix common/ includes.
1483 * symfile.c: Fix common/ includes.
1484 * stap-probe.c: Fix common/ includes.
1485 * spu-linux-nat.c: Fix common/ includes.
1486 * sparc-nat.c: Fix common/ includes.
1487 * source.c: Fix common/ includes.
1488 * solib.c: Fix common/ includes.
1489 * solib-target.c: Fix common/ includes.
1490 * ser-unix.c: Fix common/ includes.
1491 * ser-tcp.c: Fix common/ includes.
1492 * ser-pipe.c: Fix common/ includes.
1493 * ser-base.c: Fix common/ includes.
1494 * selftest-arch.c: Fix common/ includes.
1495 * s12z-tdep.c: Fix common/ includes.
1496 * rust-exp.y: Fix common/ includes.
1497 * rs6000-aix-tdep.c: Fix common/ includes.
1498 * riscv-tdep.c: Fix common/ includes.
1499 * remote.c: Fix common/ includes.
1500 * remote-notif.h: Fix common/ includes.
1501 * remote-fileio.h: Fix common/ includes.
1502 * remote-fileio.c: Fix common/ includes.
1503 * regcache.h: Fix common/ includes.
1504 * regcache.c: Fix common/ includes.
1505 * record-btrace.c: Fix common/ includes.
1506 * python/python.c: Fix common/ includes.
1507 * python/py-type.c: Fix common/ includes.
1508 * python/py-inferior.c: Fix common/ includes.
1509 * progspace.h: Fix common/ includes.
1510 * producer.c: Fix common/ includes.
1511 * procfs.c: Fix common/ includes.
1512 * proc-api.c: Fix common/ includes.
1513 * printcmd.c: Fix common/ includes.
1514 * ppc-linux-nat.c: Fix common/ includes.
1515 * parser-defs.h: Fix common/ includes.
1516 * osdata.c: Fix common/ includes.
1517 * obsd-nat.c: Fix common/ includes.
1518 * nat/x86-linux.c: Fix common/ includes.
1519 * nat/x86-linux-dregs.c: Fix common/ includes.
1520 * nat/x86-dregs.h: Fix common/ includes.
1521 * nat/x86-dregs.c: Fix common/ includes.
1522 * nat/ppc-linux.c: Fix common/ includes.
1523 * nat/mips-linux-watch.h: Fix common/ includes.
1524 * nat/mips-linux-watch.c: Fix common/ includes.
1525 * nat/linux-waitpid.c: Fix common/ includes.
1526 * nat/linux-ptrace.h: Fix common/ includes.
1527 * nat/linux-ptrace.c: Fix common/ includes.
1528 * nat/linux-procfs.c: Fix common/ includes.
1529 * nat/linux-personality.c: Fix common/ includes.
1530 * nat/linux-osdata.c: Fix common/ includes.
1531 * nat/linux-namespaces.c: Fix common/ includes.
1532 * nat/linux-btrace.h: Fix common/ includes.
1533 * nat/linux-btrace.c: Fix common/ includes.
1534 * nat/fork-inferior.c: Fix common/ includes.
1535 * nat/amd64-linux-siginfo.c: Fix common/ includes.
1536 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
1537 * nat/aarch64-linux.c: Fix common/ includes.
1538 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
1539 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
1540 * namespace.h: Fix common/ includes.
1541 * mips-linux-tdep.c: Fix common/ includes.
1542 * minsyms.c: Fix common/ includes.
1543 * mi/mi-parse.h: Fix common/ includes.
1544 * mi/mi-main.c: Fix common/ includes.
1545 * mi/mi-cmd-env.c: Fix common/ includes.
1546 * memrange.h: Fix common/ includes.
1547 * memattr.c: Fix common/ includes.
1548 * maint.h: Fix common/ includes.
1549 * maint.c: Fix common/ includes.
1550 * main.c: Fix common/ includes.
1551 * machoread.c: Fix common/ includes.
1552 * location.c: Fix common/ includes.
1553 * linux-thread-db.c: Fix common/ includes.
1554 * linux-nat.c: Fix common/ includes.
1555 * linux-fork.c: Fix common/ includes.
1556 * inline-frame.c: Fix common/ includes.
1557 * infrun.c: Fix common/ includes.
1558 * inflow.c: Fix common/ includes.
1559 * inferior.h: Fix common/ includes.
1560 * inferior.c: Fix common/ includes.
1561 * infcmd.c: Fix common/ includes.
1562 * inf-ptrace.c: Fix common/ includes.
1563 * inf-child.c: Fix common/ includes.
1564 * ia64-linux-nat.c: Fix common/ includes.
1565 * i387-tdep.c: Fix common/ includes.
1566 * i386-tdep.c: Fix common/ includes.
1567 * i386-linux-tdep.c: Fix common/ includes.
1568 * i386-linux-nat.c: Fix common/ includes.
1569 * i386-go32-tdep.c: Fix common/ includes.
1570 * i386-fbsd-tdep.c: Fix common/ includes.
1571 * i386-fbsd-nat.c: Fix common/ includes.
1572 * guile/scm-type.c: Fix common/ includes.
1573 * guile/guile.c: Fix common/ includes.
1574 * go32-nat.c: Fix common/ includes.
1575 * gnu-nat.c: Fix common/ includes.
1576 * gdbthread.h: Fix common/ includes.
1577 * gdbarch-selftests.c: Fix common/ includes.
1578 * gdb_usleep.c: Fix common/ includes.
1579 * gdb_select.h: Fix common/ includes.
1580 * gdb_bfd.c: Fix common/ includes.
1581 * gcore.c: Fix common/ includes.
1582 * fork-child.c: Fix common/ includes.
1583 * findvar.c: Fix common/ includes.
1584 * fbsd-nat.c: Fix common/ includes.
1585 * event-top.c: Fix common/ includes.
1586 * event-loop.c: Fix common/ includes.
1587 * dwarf2read.c: Fix common/ includes.
1588 * dwarf2loc.c: Fix common/ includes.
1589 * dwarf2-frame.c: Fix common/ includes.
1590 * dwarf-index-cache.c: Fix common/ includes.
1591 * dtrace-probe.c: Fix common/ includes.
1592 * disasm-selftests.c: Fix common/ includes.
1593 * defs.h: Fix common/ includes.
1594 * csky-tdep.c: Fix common/ includes.
1595 * cp-valprint.c: Fix common/ includes.
1596 * cp-support.h: Fix common/ includes.
1597 * cp-support.c: Fix common/ includes.
1598 * corelow.c: Fix common/ includes.
1599 * completer.h: Fix common/ includes.
1600 * completer.c: Fix common/ includes.
1601 * compile/compile.c: Fix common/ includes.
1602 * compile/compile-loc2c.c: Fix common/ includes.
1603 * compile/compile-cplus-types.c: Fix common/ includes.
1604 * compile/compile-cplus-symbols.c: Fix common/ includes.
1605 * command.h: Fix common/ includes.
1606 * cli/cli-dump.c: Fix common/ includes.
1607 * cli/cli-cmds.c: Fix common/ includes.
1608 * charset.c: Fix common/ includes.
1609 * build-id.c: Fix common/ includes.
1610 * btrace.h: Fix common/ includes.
1611 * btrace.c: Fix common/ includes.
1612 * breakpoint.h: Fix common/ includes.
1613 * breakpoint.c: Fix common/ includes.
1614 * ax.h:
1615 (enum agent_op): Fix common/ includes.
1616 * ax-general.c (struct aop_map): Fix common/ includes.
1617 * ax-gdb.c: Fix common/ includes.
1618 * auxv.c: Fix common/ includes.
1619 * auto-load.c: Fix common/ includes.
1620 * arm-tdep.c: Fix common/ includes.
1621 * arch/riscv.c: Fix common/ includes.
1622 * arch/ppc-linux-common.c: Fix common/ includes.
1623 * arch/i386.c: Fix common/ includes.
1624 * arch/arm.c: Fix common/ includes.
1625 * arch/arm-linux.c: Fix common/ includes.
1626 * arch/arm-get-next-pcs.c: Fix common/ includes.
1627 * arch/amd64.c: Fix common/ includes.
1628 * arch/aarch64.c: Fix common/ includes.
1629 * arch/aarch64-insn.c: Fix common/ includes.
1630 * arch-utils.c: Fix common/ includes.
1631 * amd64-windows-tdep.c: Fix common/ includes.
1632 * amd64-tdep.c: Fix common/ includes.
1633 * amd64-sol2-tdep.c: Fix common/ includes.
1634 * amd64-obsd-tdep.c: Fix common/ includes.
1635 * amd64-nbsd-tdep.c: Fix common/ includes.
1636 * amd64-linux-tdep.c: Fix common/ includes.
1637 * amd64-linux-nat.c: Fix common/ includes.
1638 * amd64-fbsd-tdep.c: Fix common/ includes.
1639 * amd64-fbsd-nat.c: Fix common/ includes.
1640 * amd64-dicos-tdep.c: Fix common/ includes.
1641 * amd64-darwin-tdep.c: Fix common/ includes.
1642 * agent.c: Fix common/ includes.
1643 * ada-lang.h: Fix common/ includes.
1644 * ada-lang.c: Fix common/ includes.
1645 * aarch64-tdep.c: Fix common/ includes.
1646
2f5c153e
TT
16472019-01-25 Tom Tromey <tom@tromey.com>
1648
1649 * common/create-version.sh: Use common/version.h.
1650
adc6a863
PA
16512019-01-24 Pedro Alves <palves@redhat.com>
1652
1653 * infrun.c (signal_stop, signal_print, signal_program)
1654 (signal_catch, signal_pass): Now arrays instead of pointers.
1655 (update_signals_program_target, do_target_resume)
1656 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
1657 * linux-nat.c (linux_nat_target::pass_signals)
1658 (linux_nat_target::create_inferior, linux_nat_target::attach):
1659 Adjust.
1660 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
1661 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
1662 * procfs.c (procfs_target::pass_signals): Adjust.
1663 * record-full.c (record_full_target::resume): Adjust.
1664 * remote.c (remote_target::pass_signals)
1665 (remote_target::program_signals): Adjust.
1666 * target-debug.h (target_debug_print_signals): Now takes a
1667 gdb::array_view as parameter. Adjust.
1668 * target.h (target_ops) <pass_signals, program_signals>: Replace
1669 pointer and length parameters with gdb::array_view.
1670 (target_pass_signals, target_program_signals): Likewise.
1671 * target-delegates.c: Regenerate.
1672
3046d67a
PA
16732019-01-24 Pedro Alves <palves@redhat.com>
1674
1675 * common/forward-scope-exit.h
1676 (forward_scope_exit::forward_scope_exit): Pass arguments to
1677 m_bind_function directly, instead of creating a std::bind and
1678 copying that.
1679
353229bf
AH
16802019-01-24 Alan Hayward <alan.hayward@arm.com>
1681
1682 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
1683 for static members.
1684 (pass_in_v_vfp_candidate): Likewise.
1685
311dc83a
TT
16862019-01-23 Tom Tromey <tom@tromey.com>
1687 Pedro Alves <palves@redhat.com>
1688
1689 * regcache.c (class regcache_invalidator): Remove.
1690 (regcache::raw_write): Use make_scope_exit.
1691
296bd123
TT
16922019-01-23 Tom Tromey <tom@tromey.com>
1693
1694 * ui-out.h (class ui_out_emit_type): Update comment.
1695
979a0d13
TT
16962019-01-23 Tom Tromey <tom@tromey.com>
1697
1698 * infrun.c (fetch_inferior_event): Update comment.
1699
d238133d
TT
17002019-01-23 Tom Tromey <tom@tromey.com>
1701 Pedro Alves <palves@redhat.com>
1702
1703 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
1704 parameter.
1705 (fetch_inferior_event): Use SCOPE_EXIT.
1706
1707
9885e6bb
TT
17082019-01-23 Tom Tromey <tom@tromey.com>
1709 Pedro Alves <palves@redhat.com>
1710
1711 * infrun.c (disable_thread_events): Delete.
1712 (stop_all_threads): Use SCOPE_EXIT.
1713
286526c1
TT
17142019-01-23 Tom Tromey <tom@tromey.com>
1715 Pedro Alves <palves@redhat.com>
1716
1717 * symfile.c: Include forward-scope-exit.h.
1718 (clear_symtab_users_cleanup): Replace forward declaration with
1719 a FORWARD_SCOPE_EXIT.
1720 (syms_from_objfile_1): Use the forward_scope_exit and
1721 gdb::optional instead of cleanup_function.
1722 (reread_symbols): Use the forward_scope_exit instead of
1723 cleanup_function.
1724 (clear_symtab_users_cleanup): Remove function.
1725
1db93f14
TT
17262019-01-23 Tom Tromey <tom@tromey.com>
1727 Pedro Alves <palves@redhat.com>
1728
1729 * linux-nat.c: Include scope-exit.h.
1730 (cleanup_target_stop): Remove.
1731 (linux_nat_target::static_tracepoint_markers_by_strid): Use
1732 SCOPE_EXIT.
1733
2cc83d1e
TT
17342019-01-23 Tom Tromey <tom@tromey.com>
1735 Pedro Alves <palves@redhat.com>
1736
1737 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
1738 (call_function_by_hand_dummy): Use SCOPE_EXIT.
1739
694c6bf5
TT
17402019-01-23 Tom Tromey <tom@tromey.com>
1741 Andrew Burgess <andrew.burgess@embecosm.com>
1742 Pedro Alves <palves@redhat.com>
1743
1744 * infrun.c (fetch_inferior_event): Use scope_exit.
1745 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
1746 * top.c (execute_command): Use scope_exit.
1747 * breakpoint.c (bpstat_do_actions): Use scope_exit.
1748 * utils.c (do_bpstat_clear_actions_cleanup)
1749 (make_bpstat_clear_actions_cleanup): Remove.
1750
4c41382a
TT
17512019-01-23 Tom Tromey <tom@tromey.com>
1752 Pedro Alves <palves@redhat.com>
1753
1754 * infrun.c: Include "common/scope-exit.h"
1755 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
1756 (wait_for_inferior): Use SCOPE_EXIT.
1757 (fetch_inferior_event): Use scope_exit.
1758
89f8fb50
TT
17592019-01-23 Tom Tromey <tom@tromey.com>
1760 Pedro Alves <palves@redhat.com>
1761
1762 * breakpoint.c (create_breakpoint): Remove cleanup.
1763
5419bdae
TT
17642019-01-23 Tom Tromey <tom@tromey.com>
1765 Andrew Burgess <andrew.burgess@embecosm.com>
1766 Pedro Alves <palves@redhat.com>
1767
e587ef42
PA
17682019-01-23 Pedro Alves <palves@redhat.com>
1769
1770 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
1771
77f0e74c
PA
17722019-01-23 Pedro Alves <palves@redhat.com>
1773 Andrew Burgess <andrew.burgess@embecosm.com>
1774
1775 * gdbthread.h: Include "common/forward-scope-exit.h".
1776 (scoped_finish_thread_state): Redefine custom class in terms of
1777 forward_scope_exit.
1778
5b9b3e53
PA
17792019-01-23 Pedro Alves <palves@redhat.com>
1780 Andrew Burgess <andrew.burgess@embecosm.com>
1781
1782 * common/forward-scope-exit.h: New file.
1783
54b65c9b
PA
17842019-01-23 Pedro Alves <palves@redhat.com>
1785 Andrew Burgess <andrew.burgess@embecosm.com>
1786 Tom Tromey <tom@tromey.com>
1787
1788 * common/scope-exit.h: New file.
1789
cf08fb29
PA
17902019-01-23 Pedro Alves <palves@redhat.com>
1791
1792 * common/preprocessor.h (ESC): Rename to ...
1793 (ESC_PARENS): ... this.
1794 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
1795 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
1796
ae73e2e2
TT
17972019-01-23 Tom Tromey <tom@tromey.com>
1798
1799 * language.h (class scoped_switch_to_sym_language_if_auto):
1800 Initialize m_lang in both cases.
1801
6594e122
AH
18022019-01-23 Alan Hayward <alan.hayward@arm.com>
1803
1804 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
1805 with XCNEW.
1806
a7c9855d
TT
18072019-01-22 Tom Tromey <tom@tromey.com>
1808
1809 * corelow.c: Do not include sys/file.h.
1810
93cc1d53
TT
18112019-01-22 Tom Tromey <tom@tromey.com>
1812
1813 * tui/tui-wingeneral.h: Include gdb_curses.h.
1814
38561778
TT
18152019-01-22 Tom Tromey <tom@tromey.com>
1816
1817 * source-cache.h (class source_cache) <get_source_lines,
1818 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
1819
37b3ab5b
TT
18202019-01-22 Tom Tromey <tom@tromey.com>
1821
1822 * remote-fileio.h (struct remote_target): Declare.
1823
3fabc016
TT
18242019-01-22 Tom Tromey <tom@tromey.com>
1825
1826 * python/py-arch.c: Do not include py-ref.h.
1827 * python/py-bpevent.c: Do not include py-ref.h.
1828 * python/py-cmd.c: Do not include py-ref.h.
1829 * python/py-continueevent.c: Do not include py-ref.h.
1830 * python/py-event.h: Do not include py-ref.h.
1831 * python/py-evtregistry.c: Do not include py-ref.h.
1832 * python/py-finishbreakpoint.c: Do not include py-ref.h.
1833 * python/py-frame.c: Do not include py-ref.h.
1834 * python/py-framefilter.c: Do not include py-ref.h.
1835 * python/py-function.c: Do not include py-ref.h.
1836 * python/py-infevents.c: Do not include py-ref.h.
1837 * python/py-linetable.c: Do not include py-ref.h.
1838 * python/py-objfile.c: Do not include py-ref.h.
1839 * python/py-param.c: Do not include py-ref.h.
1840 * python/py-prettyprint.c: Do not include py-ref.h.
1841 * python/py-progspace.c: Do not include py-ref.h.
1842 * python/py-symbol.c: Do not include py-ref.h.
1843 * python/py-symtab.c: Do not include py-ref.h.
1844 * python/py-type.c: Do not include py-ref.h.
1845 * python/py-unwind.c: Do not include py-ref.h.
1846 * python/py-utils.c: Do not include py-ref.h.
1847 * python/py-value.c: Do not include py-ref.h.
1848 * python/py-varobj.c: Do not include py-ref.h.
1849 * python/py-xmethods.c: Do not include py-ref.h.
1850 * python/python.c: Do not include py-ref.h.
1851 * varobj.c: Do not include py-ref.h.
1852
6b4d7774
TT
18532019-01-22 Tom Tromey <tom@tromey.com>
1854
1855 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
1856 keyword for bcache.
1857
7af7e9b5
TT
18582019-01-22 Tom Tromey <tom@tromey.com>
1859
1860 * compile/compile-cplus-types.c: Remove a comment by #include.
1861
951d1049
TT
18622019-01-22 Tom Tromey <tom@tromey.com>
1863
1864 * compile/gcc-c-plugin.h: Include compile-internal.h.
1865
d65d5705
TT
18662019-01-22 Tom Tromey <tom@tromey.com>
1867
1868 * stabsread.c (EXTERN): Do not define.
1869 (symnum, next_symbol_text_func, processing_gcc_compilation)
1870 (within_function, global_sym_chain, global_stabs)
1871 (previous_stab_code, this_object_header_files)
1872 (n_this_object_header_files)
1873 (n_allocated_this_object_header_files): Define.
1874 * stabsread.h (EXTERN): Never define. Use "extern".
1875
b6fb1ee5
PW
18762019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1877
1878 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
1879 history_value.
1880
be6d4f74
TT
18812019-01-21 Tom Tromey <tom@tromey.com>
1882
1883 * ui-out.c: Fix includes.
1884 * tui/tui-source.c: Fix includes.
1885 * target.c: Fix includes.
1886 * remote.c: Fix includes.
1887 * regcache.c: Fix includes.
1888 * python/py-block.c: Fix includes.
1889 * printcmd.c: Fix includes.
1890 * or1k-tdep.c: Fix includes.
1891 * mi/mi-main.c: Fix includes.
1892 * m32r-tdep.c: Fix includes.
1893 * csky-tdep.c: Fix includes.
1894 * compile/compile-cplus-types.c: Fix includes.
1895 * cli/cli-interp.c: Fix includes.
1896
73021deb
AH
18972019-01-21 Alan Hayward <alan.hayward@arm.com>
1898
1899 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
1900 for padding.
1901
7932255d
TT
19022019-01-16 Tom Tromey <tom@tromey.com>
1903
1904 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
1905 earlier.
1906 (struct objfile) <msymbols_range>: Move from top level.
1907 <msymbols>: New method.
1908 (class objfile_msymbols): Remove.
1909 * symtab.c (default_collect_symbol_completion_matches_break_on):
1910 Update.
1911 * symmisc.c (dump_msymbols): Update.
1912 * stabsread.c (scan_file_globals): Update.
1913 * objc-lang.c (info_selectors_command, info_classes_command)
1914 (find_methods): Update.
1915 * minsyms.c (find_solib_trampoline_target): Update.
1916 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1917 * coffread.c (coff_symfile_read): Update.
1918 * ada-lang.c (ada_lookup_simple_minsym)
1919 (ada_collect_symbol_completion_matches): Update.
1920
604b1bfb
TT
19212019-01-16 Tom Tromey <tom@tromey.com>
1922
1923 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
1924 type. Remove no-argument constructor.
1925 <iterator::operator++>: Simplify.
1926 <begin>: Update.
1927 <end>: Use minimal_symbol_count.
1928
f252c6d5
TT
19292019-01-16 Tom Tromey <tom@tromey.com>
1930
1931 * objfiles.h (struct objfile) <psymtabs>: New method.
1932 (class objfile_psymtabs): Remove.
1933 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
1934 typedef.
1935 <range>: New method.
1936 (require_partial_symbols): Change return type.
1937 * psymtab.c (require_partial_symbols)
1938 (psym_expand_symtabs_matching): Update.
1939 * mdebugread.c (parse_partial_symbols): Update.
1940 * dbxread.c (dbx_end_psymtab): Update.
1941
b669c953
TT
19422019-01-15 Tom Tromey <tom@tromey.com>
1943
1944 * symtab.c (lookup_objfile_from_block)
1945 (lookup_symbol_in_objfile_symtabs)
1946 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
1947 (find_line_symtab, info_sources_command)
1948 (default_collect_symbol_completion_matches_break_on)
1949 (make_source_files_completion_list): Update.
1950 * symmisc.c (print_objfile_statistics, dump_objfile)
1951 (maintenance_print_symbols, maintenance_info_symtabs)
1952 (maintenance_check_symtabs, maintenance_info_line_tables):
1953 Update.
1954 * source.c (select_source_symtab)
1955 (forget_cached_source_info_for_objfile): Update.
1956 * objfiles.h (class objfile_compunits): Remove.
1957 (struct objfile) <compunits_range>: New typedef.
1958 (compunits): New method.
1959 * objfiles.c (objfile_relocate1): Update.
1960 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
1961 * maint.c (count_symtabs_and_blocks): Update.
1962 * linespec.c (iterate_over_all_matching_symtabs): Update.
1963 * cp-support.c (add_symbol_overload_list_qualified): Update.
1964 * coffread.c (coff_symtab_read): Update.
1965 * ada-lang.c (add_nonlocal_symbols)
1966 (ada_collect_symbol_completion_matches)
1967 (ada_add_global_exceptions): Update.
1968
7e955d83
TT
19692019-01-15 Tom Tromey <tom@tromey.com>
1970
1971 * progspace.h (program_space) <objfiles_safe_range>: New
1972 typedef.
1973 <objfiles_safe>: New method.
1974 * objfiles.h (class all_objfiles_safe): Remove.
1975 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
1976 * jit.c (jit_inferior_exit_hook): Update.
1977
2030c079
TT
19782019-01-17 Tom Tromey <tom@tromey.com>
1979
1980 * progspace.h (program_space) <objfiles_range>: New typedef.
1981 <objfiles>: New method.
1982 <objfiles_head>: Rename from objfiles.
1983 (object_files): Update.
1984 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
1985 * guile/scm-pretty-print.c
1986 (ppscm_find_pretty_printer_from_objfiles): Update.
1987 * guile/scm-objfile.c (gdbscm_objfiles): Update.
1988 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1989 Update.
1990 * python/py-progspace.c (pspy_get_objfiles): Update.
1991 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1992 Update.
1993 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
1994 (objfpy_lookup_objfile_by_build_id): Update.
1995 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
1996 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
1997 Update.
1998 * symtab.c (iterate_over_symtabs, matching_obj_sections)
1999 (expand_symtab_containing_pc, lookup_objfile_from_block)
2000 (lookup_static_symbol, basic_lookup_transparent_type)
2001 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2002 (find_line_symtab, info_sources_command)
2003 (default_collect_symbol_completion_matches_break_on)
2004 (make_source_files_completion_list, find_main_name): Update.
2005 * symmisc.c (print_symbol_bcache_statistics)
2006 (print_objfile_statistics, maintenance_print_symbols)
2007 (maintenance_print_msymbols, maintenance_print_objfiles)
2008 (maintenance_info_symtabs, maintenance_check_symtabs)
2009 (maintenance_expand_symtabs, maintenance_info_line_tables):
2010 Update.
2011 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
2012 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
2013 (map_overlay_command, unmap_overlay_command)
2014 (simple_overlay_update, expand_symtabs_matching)
2015 (map_symbol_filenames): Update.
2016 * symfile-debug.c (set_debug_symfile): Update.
2017 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
2018 Update.
2019 * source.c (select_source_symtab, forget_cached_source_info):
2020 Update.
2021 * solib.c (solib_read_symbols): Update.
2022 * solib-spu.c (append_ocl_sos): Update.
2023 * psymtab.c (maintenance_print_psymbols)
2024 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2025 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
2026 * printcmd.c (info_symbol_command): Update.
2027 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
2028 Update.
2029 * objfiles.h (class all_objfiles): Remove.
2030 * objfiles.c (have_partial_symbols, have_full_symbols)
2031 (have_minimal_symbols, qsort_cmp, update_section_map)
2032 (shared_objfile_contains_address_p)
2033 (default_iterate_over_objfiles_in_search_order): Update.
2034 * objc-lang.c (info_selectors_command, info_classes_command)
2035 (find_methods): Update.
2036 * minsyms.c (find_solib_trampoline_target): Update.
2037 * maint.c (maintenance_info_sections)
2038 (maintenance_translate_address, count_symtabs_and_blocks):
2039 Update.
2040 * main.c (captured_main_1): Update.
2041 * linux-thread-db.c (try_thread_db_load_from_pdir)
2042 (has_libpthread): Update.
2043 * linespec.c (iterate_over_all_matching_symtabs)
2044 (search_minsyms_for_name): Update.
2045 * jit.c (jit_find_objf_with_entry_addr): Update.
2046 * hppa-tdep.c (find_unwind_entry)
2047 (hppa_lookup_stub_minimal_symbol): Update.
2048 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
2049 Update.
2050 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
2051 (elf_gnu_ifunc_resolve_by_got): Update.
2052 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
2053 * dwarf-index-write.c (save_gdb_index_command): Update.
2054 * cp-support.c (add_symbol_overload_list_qualified): Update.
2055 * breakpoint.c (create_overlay_event_breakpoint)
2056 (create_longjmp_master_breakpoint)
2057 (create_std_terminate_master_breakpoint)
2058 (create_exception_master_breakpoint): Update.
2059 * blockframe.c (find_pc_partial_function): Update.
2060 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
2061 (ada_collect_symbol_completion_matches)
2062 (ada_add_global_exceptions): Update.
2063
776489e0
TT
20642019-01-17 Tom Tromey <tom@tromey.com>
2065
2066 * solib-target.c (lm_info_target_p): Remove typedef. Don't
2067 declare VEC.
2068 (solib_target_parse_libraries): Change return type.
2069 (library_list_start_segment, library_list_start_section)
2070 (library_list_end_library, library_list_start_library); Update.
2071 (solib_target_free_library_list): Remove.
2072 (solib_target_parse_libraries): Remove cleanup. Change return
2073 type.
2074 (solib_target_current_sos): Update.
2075
6471e7d2
TT
20762019-01-17 Tom Tromey <tromey@bapiya>
2077
2078 * valprint.c: Replace "the the" with "the".
2079 * symtab.c: Replace "the the" with "the".
2080 * solib.c: Replace "the the" with "the".
2081 * solib-dsbt.c: Replace "the the" with "the".
2082 * linespec.c: Replace "the the" with "the".
2083 * dwarf2loc.h: Replace "the the" with "the".
2084 * amd64-windows-tdep.c: Replace "the the" with "the".
2085 * aarch64-tdep.c: Replace "the the" with "the".
2086
c24bdb02
KS
20872019-01-16 Keith Seitz <keiths@redhat.com>
2088
2089 PR gdb/23773
2090 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
2091 <builder>: Rename to ..
2092 <m_builder>: ... this and make private.
2093 (dwarf2_cu::get_builder): New method. Change all users of
2094 `builder' to use this method.
2095 (dwarf2_start_symtab): Move to ...
2096 (dwarf2_cu::start_symtab): ... here. Update all callers
2097 (setup_type_unit_groups): Move to ...
2098 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
2099 callers.
2100 (dwarf2_cu::reset_builder): New method.
2101 (process_full_compunit, process_full_type_unit): Use
2102 dwarf2_cu::reset_builder.
2103 (follow_die_offset): Record the ancestor CU if it is different
2104 from the followed DIE's CU.
2105 (follow_die_sig_1): Likewise.
2106
8d64371b
TT
21072019-01-15 Tom Tromey <tom@tromey.com>
2108
2109 * remote.c (class remote_state) <buf>: Now a char_vector.
2110 <buf_size>: Remove.
2111 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
2112 parameter.
2113 (remote_target::getpkt_or_notif_sane_1)
2114 (remote_target::getpkt_sane)
2115 (remote_target::getpkt_or_notif_sane): Likewise.
2116 (class remote_target) <putpkt>: New overload.
2117 (remote_target::read_frame): Change type of "buf_p". Remove
2118 sizeof_p parameter.
2119 (packet_ok): New overload.
2120 (packet_check_result): New overload.
2121 Update all uses.
2122
bb277751
TT
21232019-01-14 Tom Tromey <tom@tromey.com>
2124
2125 * remote-notif.c (handle_notification, remote_notif_ack)
2126 (remote_notif_parse): Make "buf" const.
2127 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
2128 const.
2129 (remote_notif_parse, remote_notif_ack, handle_notification):
2130 Likewise.
2131 * remote.c (remote_notif_stop_parse): Make "buf" const.
2132 (remote_target::remote_parse_stop_reply): Make "buf" const.
2133 (remote_notif_stop_ack): Make "buf" const.
2134
05be00a8
TT
21352019-01-14 Tom Tromey <tom@tromey.com>
2136
2137 * remote.c (remote_console_output): Make parameter const.
2138
491adeca
TT
21392019-01-14 Tom Tromey <tom@tromey.com>
2140
2141 * target-debug.h (target_debug_print_signals): Constify.
2142 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
2143 * procfs.c (procfs_target::pass_signals): Update.
2144 * linux-nat.c (linux_nat_target::pass_signals): Update.
2145 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
2146 * target-delegates.c: Rebuild.
2147 * remote.c (remote_target::program_signals): Update.
2148 (remote_target::pass_signals): Update.
2149 * target.c (target_pass_signals): Constify argument.
2150 (target_program_signals): Likewise.
2151 * target.h (struct target_ops) <pass_signals, program_signals>:
2152 Constify argument.
2153 (target_pass_signals, target_program_signals): Constify argument.
2154
bbd94648
TT
21552019-01-14 Tom Tromey <tom@tromey.com>
2156
2157 PR tui/28819:
2158 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
2159
6f072a10
PFC
21602019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2161
2162 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
2163 field.
2164 * rs6000-tdep.c: Include reggroups.h.
2165 (IS_V_ALIAS_PSEUDOREG): Define.
2166 (rs6000_register_name): Return names for the "vX" aliases.
2167 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
2168 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
2169 aliases. Call default_register_reggroup_p for all other
2170 pseudo-registers.
2171 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
2172 New functions.
2173 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
2174 Handle "vX" aliases.
2175 (v_alias_pseudo_register_collect): New function.
2176 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
2177 (rs6000_gdbarch_init): Initialize "vX" aliases as
2178 pseudo-registers. Restore registration of
2179 rs6000_pseudo_register_reggroup_p with
2180 set_tdesc_pseudo_register_reggroup_p.
2181
1a782351
MF
21822019-01-13 Max Filippov <jcmvbkbc@gmail.com>
2183
2184 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
2185 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
2186 set_gdbarch_num_pseudo_regs.
2187
d73cff18
PW
21882019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2189
2190 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
2191 Remove arg prefixname, add do_set and do_show.
2192 Add member functions set_list and show_list.
2193 * cli/cli-style.c (class cli_style_option): Update accordingly.
2194 (style_set_list): Move to file scope.
2195 (style_show_list): Likewise.
2196 (set_style): Call help_list.
2197 (show_style): Call cmd_show_list.
2198 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
2199 Update to use the new macro.
2200
60a90376
JB
22012019-10-12 Joel Brobecker <brobecker@adacore.com>
2202
2203 * ada-lang.c (_initialize_ada_language): Expand the help text
2204 for the "catch exception" command.
2205
9d7c67bf
PW
22062019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2207
2208 * symtab.c (matching_obj_sections): Initialize obj,
2209 declare it closer to its usage.
2210
7cf47dc4
TT
22112019-01-10 Tom Tromey <tom@tromey.com>
2212
2213 * thread-iter.h (inf_threads_iterator): Use next_iterator.
2214 (basic_inf_threads_range): Remove.
2215 (inf_threads_range, inf_non_exited_threads_range)
2216 (safe_inf_threads_range): Use next_adapter.
2217
d3cb6808
KS
22182019-01-10 Keith Seitz <keiths@redhat.com>
2219
2220 PR gdb/23712
2221 PR symtab/23010
2222 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
2223 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
2224
63a20375
KS
22252019-01-10 Keith Seitz <keiths@redhat.com>
2226
2227 PR gdb/23712
2228 PR symtab/23010
2229 * dictionary.c (pending_to_vector): Remove.
2230 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
2231 Remove _1 suffix, replacing functions of the same name. Update
2232 all callers.
2233 (dict_create_hashed, dict_create_hashed_expandable)
2234 (dict_create_linear, dict_create_linear_expandable, dict_free)
2235 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
2236 Make functions static.
2237
b026f593
KS
22382019-01-10 Keith Seitz <keiths@redhat.com>
2239
2240 PR gdb/23712
2241 PR symtab/23010
2242 * dictionary.h (struct dictionary): Replace declaration with
2243 multidictionary.
2244 (dict_create_hashed, dict_create_hashed_expandable)
2245 (dict_create_linear, dict_create_linear_expandable)
2246 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
2247 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
2248 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
2249 taking multidictionary argument.
2250 [ALL_DICT_SYMBOLS]: Update for multidictionary.
2251 * block.h (struct block) <dict>: Change to multidictionary
2252 and rename `multidict'.
2253 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
2254 symmisc.c: Update all dictionary references to multidictionary.
2255
c7748ee9
KS
22562019-01-10 Keith Seitz <keiths@redhat.com>
2257
2258 PR gdb/23712
2259 PR symtab/23010
2260 * dictionary.c: Include unordered_map.
2261 (pending_to_vector): New function.
2262 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
2263 Rewrite the non-"_1" functions to take vector instead
2264 of linked list.
2265 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
2266 "new" _1 versions of the same name.
2267 (multidictionary): Define.
2268 (std::hash<enum language): New definition.
2269 (collate_pending_symbols_by_language, mdict_create_hashed)
2270 (mdict_create_hashed_expandable, mdict_create_linear)
2271 (mdict_create_linear_expandable, mdict_free)
2272 (find_language_dictionary, create_new_language_dictionary)
2273 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
2274 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
2275 (mdict_size, mdict_empty): New functions.
2276 * dictionary.h (mdict_iterator): Define.
2277
67aa1f3c
PA
22782019-01-10 Pedro Alves <palves@redhat.com>
2279
2280 * breakpoint.c (read_uploaded_action)
2281 (create_tracepoint_from_upload): Adjust to use
2282 gdb::unique_xmalloc_ptr.
2283 * ctf.c (ctf_write_uploaded_tp):
2284 (SET_ARRAY_FIELD): Use emplace_back.
2285 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
2286 * tracefile-tfile.c (tfile_write_uploaded_tp):
2287 * tracepoint.c (parse_tracepoint_definition): Adjust to use
2288 gdb::unique_xmalloc_ptr.
2289 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
2290 at_string, cond_string, cmd_strings>: Replace char pointers
2291 with gdb::unique_xmalloc_ptr.
2292
2f667667
PA
22932019-01-10 Pedro Alves <palves@redhat.com>
2294
2295 * solib-target.c (library_list_start_library): Don't xstrdup name.
2296
36cb7237
PA
22972019-01-10 Pedro Alves <palves@redhat.com>
2298
2299 * mdebugread.c (parse_partial_symbols): Use
2300 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
2301
da584958
AB
23022019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
2303
2304 * linux-fork.c (scoped_switch_fork_info)
2305 <~scoped_switch_fork_info>: Fix incorrect variable name.
2306
1ef8573c
AB
23072019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
2308
2309 * linux-fork.c (scoped_switch_fork_info)
2310 <scoped_switch_fork_info>: Make explicit.
2311 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
2312
8d7bcccb
TT
23132019-01-10 Tom Tromey <tom@tromey.com>
2314
2315 * objfiles.h (objfile::reset_psymtabs): Update.
2316 * objfiles.c (objfile::objfile): Update.
2317 * psymtab.h (psymtab_storage::obstack): Update.
2318 (psymtab_storage::m_obstack): Use gdb::optional.
2319 (class psymtab_storage): Update comment. Remove objfile
2320 parameter.
2321 * psymtab.c (psymtab_storage::psymtab_storage): Update.
2322
b596a3c7
TT
23232019-01-10 Tom Tromey <tom@tromey.com>
2324
2325 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
2326 <free_psymtabs>: Now private.
2327 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
2328 (allocate_psymtab): Use new method.
2329
a9342b62
TT
23302019-01-10 Tom Tromey <tom@tromey.com>
2331
2332 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
2333 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
2334 * mdebugread.c (parse_partial_symbols): Use
2335 allocate_dependencies.
2336 * dwarf2read.c (dwarf2_create_include_psymtab): Use
2337 allocate_dependencies.
2338 (process_psymtab_comp_unit_reader)
2339 (build_type_psymtab_dependencies): Likewise.
2340 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
2341
5af70966
TT
23422019-01-10 Tom Tromey <tom@tromey.com>
2343
2344 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
2345 PSYMBOL_SET_LANGUAGE.
2346 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
2347
5923a04c
TT
23482019-01-10 Tom Tromey <tom@tromey.com>
2349
2350 * psymtab.h (psymtab_storage::obstack): New method.
2351 <m_obstack>: Rename from obstack; now private.
2352 * psymtab.c (psymtab_storage): Update.
2353 * dwarf2read.c (create_addrmap_from_index)
2354 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
2355 Update.
2356
6d6a12bf
TT
23572019-01-10 Tom Tromey <tom@tromey.com>
2358
2359 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
2360 * objfiles.h (objfile::reset_psymtabs): New method.
2361
d320c2b5
TT
23622019-01-10 Tom Tromey <tom@tromey.com>
2363
2364 * symmisc.c (print_symbol_bcache_statistics): Update.
2365 (print_objfile_statistics): Update.
2366 * symfile.c (reread_symbols): Update.
2367 * psymtab.h (class psymtab_storage): New.
2368 * psymtab.c (psymtab_storage): New constructor.
2369 (~psymtab_storage): New destructor.
2370 (require_partial_symbols): Update.
2371 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
2372 (find_pc_sect_psymtab, find_pc_sect_psymbol)
2373 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
2374 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
2375 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
2376 (start_psymtab_common, end_psymtab_common)
2377 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
2378 (allocate_psymtab): Update.
2379 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
2380 Update.
2381 (dump_psymtab_addrmap, maintenance_print_psymbols)
2382 (maintenance_check_psymtabs): Update.
2383 (class objfile_psymtabs): Move to objfiles.h.
2384 * psympriv.h (discard_psymtab): Now inline.
2385 (psymtab_discarder::psymtab_discarder): Update.
2386 (psymtab_discarder::~psymtab_discarder): Update.
2387 (ALL_OBJFILE_PSYMTABS): Rewrite.
2388 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
2389 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
2390 Remove fields.
2391 <partial_symtabs>: New field.
2392 (class objfile_psymtabs): Move from psymtab.h. Update.
2393 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
2394 psymbol_cache.
2395 (objfile::~objfile): Don't destroy psymbol_cache.
2396 * mdebugread.c (parse_partial_symbols): Update.
2397 * dwarf2read.c (create_addrmap_from_index)
2398 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
2399 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
2400 (add_partial_subprogram, dwarf2_ranges_read): Update.
2401 * dwarf-index-write.c (write_address_map)
2402 (write_one_signatured_type, recursively_write_psymbols)
2403 (class debug_names, class debug_names, write_psymtabs_to_index):
2404 Update.
2405
1d94a5a3
TT
24062019-01-10 Tom Tromey <tom@tromey.com>
2407
2408 * symtab.h (SYMBOL_SET_NAMES): Update.
2409 (symbol_set_names): Update.
2410 (MSYMBOL_SET_NAMES): Update.
2411 * symtab.c (symbol_set_names): Change argument to be an
2412 objfile_per_bfd_storage.
2413 * psymtab.c (add_psymbol_to_bcache): Update.
2414 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
2415
0f14768a
TT
24162019-01-10 Tom Tromey <tom@tromey.com>
2417
2418 * symtab.c (create_demangled_names_hash): Change argument to be an
2419 objfile_per_bfd_storage.
2420 (symbol_set_names): Update.
2421
6eee24ce
TT
24222019-01-10 Tom Tromey <tom@tromey.com>
2423
2424 * xcoffread.c (xcoff_initial_scan): Unconditionally call
2425 init_psymbol_list.
2426 * psymtab.c (init_psymbol_list): Do nothing if already called.
2427 * psympriv.h (init_psymbol_list): Add comment.
2428 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
2429 init_psymbol_list.
2430 * dbxread.c (dbx_symfile_read): Unconditionally call
2431 init_psymbol_list.
2432
75aedd27
TT
24332019-01-10 Tom Tromey <tom@tromey.com>
2434
2435 * xcoffread.c (scan_xcoff_symtab): Update.
2436 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
2437 "where".
2438 * mdebugread.c (parse_partial_symbols)
2439 (handle_psymbol_enumerators): Update.
2440 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
2441 * dbxread.c (read_dbx_symtab): Update.
2442 * psympriv.h (psymbol_placement): New enum.
2443 (add_psymbol_to_list): Update.
2444
939652a5
TT
24452019-01-10 Tom Tromey <tom@tromey.com>
2446
2447 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
2448 static_psymbols parameters.
2449 (scan_xcoff_symtab): Update.
2450 * psymtab.c (start_psymtab_common): Remove global_psymbols and
2451 static_psymbols parameters.
2452 * psympriv.h (start_psymtab_common): Update.
2453 * mdebugread.c (parse_partial_symbols): Update.
2454 * dwarf2read.c (create_partial_symtab): Update.
2455 * dbxread.c (read_dbx_symtab): Update.
2456 (start_psymtab): Remove global_psymbols and static_psymbols
2457 parameters.
2458
baa62830
TT
24592019-01-10 Tom Tromey <tom@tromey.com>
2460
2461 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
2462 * psymtab.c (allocate_psymtab): Add comment.
2463 * psympriv.h (allocate_psymtab): Add comment.
2464 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
2465 initializations.
2466 * dbxread.c (dbx_end_psymtab): Remove some initializations.
2467
0e8f53ba
TT
24682019-01-10 Tom Tromey <tom@tromey.com>
2469
2470 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
2471 Don't declare.
2472 * mipsread.c: Include mdebugread.h.
2473 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
2474 Declare.
2475 * elfread.c: Include mdebugread.h.
2476
b22a7c6a
TT
24772019-01-09 Tom Tromey <tom@tromey.com>
2478
2479 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
2480 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
2481 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
2482 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
2483 (psym_lookup_symbol, psym_find_last_source_symtab)
2484 (psym_forget_cached_source_info, psym_print_stats)
2485 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
2486 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
2487 (psym_map_matching_symbols, psym_expand_symtabs_matching)
2488 (psym_find_compunit_symtab_by_address)
2489 (maintenance_print_psymbols, maintenance_info_psymtabs)
2490 (maintenance_check_psymtabs): Use ranged for.
2491 * psymtab.h (class objfile_psymtabs): New.
2492 (require_partial_symbols): Return objfile_psymtabs.
2493 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
2494
3b9d3ac2
TT
24952019-01-09 Tom Tromey <tom@tromey.com>
2496
2497 * symfile.c (overlay_invalidate_all, find_pc_overlay)
2498 (find_pc_mapped_section, list_overlays_command)
2499 (map_overlay_command, unmap_overlay_command)
2500 (simple_overlay_update): Use all_objfiles.
2501 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
2502 * printcmd.c (info_symbol_command): Use all_objfiles.
2503 * objfiles.h (ALL_OBJSECTIONS): Remove.
2504 * maint.c (maintenance_translate_address): Use all_objfiles.
2505 * gcore.c (gcore_create_callback): Use all_objfiles.
2506 (objfile_find_memory_regions): Likewise.
2507
8b31193a
TT
25082019-01-09 Tom Tromey <tom@tromey.com>
2509
2510 * symtab.c (find_line_symtab, info_sources_command)
2511 (make_source_files_completion_list): Use objfile_compunits.
2512 * source.c (select_source_symtab): Use objfile_compunits.
2513 * objfiles.h (struct objfile): Update comment.
2514 (ALL_OBJFILES): Remove.
2515 (ALL_FILETABS): Remove.
2516 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
2517 objfile_compunits.
2518
d5da8b3c
TT
25192019-01-09 Tom Tromey <tom@tromey.com>
2520
2521 * symmisc.c (print_objfile_statistics, dump_objfile)
2522 (maintenance_print_symbols): Use compunit_filetabs.
2523 * source.c (forget_cached_source_info_for_objfile): Use
2524 compunit_filetabs.
2525 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
2526 (ALL_FILETABS): Use compunit_filetabs.
2527 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
2528 * coffread.c (coff_symtab_read): Use compunit_filetabs.
2529
5accd1a0
TT
25302019-01-09 Tom Tromey <tom@tromey.com>
2531
2532 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
2533 (compunit_filetabs): New.
2534 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
2535 compunit_filetabs.
2536 (info_sources_command, make_source_files_completion_list): Remove
2537 declaration.
2538 * symmisc.c (print_objfile_statistics, dump_objfile)
2539 (maintenance_print_symbols): Remove declaration.
2540 (maintenance_info_symtabs): Use compunit_filetabs.
2541 (maintenance_info_line_tables): Likewise.
2542 * source.c (select_source_symtab): Change local variable name.
2543 (forget_cached_source_info_for_objfile): Remove declaration.
2544 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
2545 * objfiles.c (objfile_relocate1): Remove declaration.
2546 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
2547 declaration.
2548 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
2549 * coffread.c (coff_symtab_read): Remove declaration.
2550 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2551 compunit_filetabs.
2552
d8aeb77f
TT
25532019-01-09 Tom Tromey <tom@tromey.com>
2554
2555 * symtab.c (lookup_objfile_from_block)
2556 (find_pc_sect_compunit_symtab, search_symbols)
2557 (default_collect_symbol_completion_matches_break_on): Use
2558 objfile_compunits.
2559 * objfiles.h (ALL_COMPUNITS): Remove.
2560 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
2561 * cp-support.c (add_symbol_overload_list_qualified): Use
2562 objfile_compunits.
2563 * ada-lang.c (ada_collect_symbol_completion_matches)
2564 (ada_add_global_exceptions): Use objfile_compunits.
2565
592553c4
TT
25662019-01-09 Tom Tromey <tom@tromey.com>
2567
2568 * source.c (select_source_symtab)
2569 (forget_cached_source_info_for_objfile): Remove declaration.
2570 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
2571 declaration.
2572 * maint.c (count_symtabs_and_blocks): Remove declaration.
2573 * cp-support.c (add_symbol_overload_list_qualified): Remove
2574 declaration.
2575 * coffread.c (coff_symtab_read): Remove declaration.
2576 * symtab.c (lookup_symbol_in_objfile_symtabs)
2577 (basic_lookup_transparent_type_1): Use objfile_compunits.
2578 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
2579 (info_sources_command, search_symbols)
2580 (default_collect_symbol_completion_matches_break_on)
2581 (make_source_files_completion_list): Remove declaration.
2582 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
2583 (ada_collect_symbol_completion_matches)
2584 (ada_add_global_exceptions): Remove declaration.
2585 * linespec.c (iterate_over_all_matching_symtabs): Use
2586 objfile_compunits.
2587 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
2588 (class objfile_compunits): New.
2589 (ALL_COMPUNITS): Use objfile_compunits.
2590 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
2591 (maintenance_check_symtabs, maintenance_info_line_tables): Use
2592 objfile_compunits.
2593 * objfiles.c (objfile_relocate1): Use objfile_compunits.
2594
5325b9bf
TT
25952019-01-09 Tom Tromey <tom@tromey.com>
2596
2597 * symtab.c (search_symbols)
2598 (default_collect_symbol_completion_matches_break_on): Use
2599 objfile_msymbols.
2600 * ada-lang.c (ada_lookup_simple_minsym)
2601 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
2602 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
2603 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
2604 objfile_msymbols.
2605 * coffread.c (coff_symfile_read): Use objfile_msymbols.
2606 * symmisc.c (dump_msymbols): Use objfile_msymbols.
2607 * objc-lang.c (find_methods): Use objfile_msymbols.
2608 (info_selectors_command, info_classes_command): Likewise.
2609 * stabsread.c (scan_file_globals): Use objfile_msymbols.
2610 * objfiles.h (class objfile_msymbols): New.
2611 (ALL_OBJFILE_MSYMBOLS): Remove.
2612 (ALL_MSYMBOLS): Remove.
2613
cac85af2
TT
26142019-01-09 Tom Tromey <tom@tromey.com>
2615
2616 * common/next-iterator.h (next_adapter): Add Iterator template
2617 parameter.
2618 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
2619 (class all_objfiles_safe): New.
2620 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
2621 * objfiles.c (put_objfile_before): Update comment.
2622 (add_separate_debug_objfile): Likewise.
2623 (free_all_objfiles): Use all_objfiles_safe.
2624 (objfile_purge_solibs): Likewise.
2625
aed57c53
TT
26262019-01-09 Tom Tromey <tom@tromey.com>
2627
2628 * symtab.c (iterate_over_symtabs, matching_obj_sections)
2629 (expand_symtab_containing_pc, lookup_static_symbol)
2630 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
2631 (find_symbol_at_address, find_line_symtab, find_main_name): Use
2632 all_objfiles.
2633 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
2634 * breakpoint.c (create_overlay_event_breakpoint)
2635 (create_longjmp_master_breakpoint)
2636 (create_std_terminate_master_breakpoint)
2637 (create_exception_master_breakpoint): Use all_objfiles.
2638 * linux-thread-db.c (try_thread_db_load_from_pdir)
2639 (has_libpthread): Use all_objfiles.
2640 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
2641 * linespec.c (iterate_over_all_matching_symtabs)
2642 (search_minsyms_for_name): Use all_objfiles.
2643 * maint.c (maintenance_info_sections): Use all_objfiles.
2644 * main.c (captured_main_1): Use all_objfiles.
2645 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
2646 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
2647 * guile/scm-pretty-print.c
2648 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
2649 * solib-spu.c (append_ocl_sos): Use all_objfiles.
2650 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
2651 (maintenance_print_msymbols): Use all_objfiles.
2652 * source.c (select_source_symtab): Use all_objfiles.
2653 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
2654 * symfile.c (remove_symbol_file_command)
2655 (expand_symtabs_matching, map_symbol_filenames): Use
2656 all_objfiles.
2657 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
2658 all_objfiles.
2659 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
2660 * objc-lang.c (find_methods): Use all_objfiles.
2661 * objfiles.c (have_partial_symbols, have_full_symbols)
2662 (have_minimal_symbols, qsort_cmp)
2663 (default_iterate_over_objfiles_in_search_order): Use
2664 all_objfiles.
2665 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
2666 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
2667 (maintenance_check_psymtabs): Use all_objfiles.
2668 (ALL_PSYMTABS): Remove.
2669 * compile/compile-object-run.c (do_module_cleanup): Use
2670 all_objfiles.
2671 * blockframe.c (find_pc_partial_function): Use all_objfiles.
2672 * cp-support.c (add_symbol_overload_list_qualified): Use
2673 all_objfiles.
2674 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
2675 Use all_objfiles.
2676 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
2677 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
2678 all_objfiles.
2679 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
2680 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
2681 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2682 Uses all_objfiles.
2683 * solib.c (solib_read_symbols): Use all_objfiles
2684
99d89cde
TT
26852019-01-09 Tom Tromey <tom@tromey.com>
2686
2687 * probe.c (parse_probes_in_pspace): Use all_objfiles.
2688 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
2689 all_objfiles.
2690 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
2691 * symmisc.c (print_symbol_bcache_statistics)
2692 (print_objfile_statistics, maintenance_print_objfiles)
2693 (maintenance_info_symtabs, maintenance_check_symtabs)
2694 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
2695 all_objfiles.
2696 * source.c (forget_cached_source_info): Use all_objfiles.
2697 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
2698 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
2699 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
2700 * objfiles.c (update_section_map): Use all_objfiles.
2701 (shared_objfile_contains_address_p): Likewise.
2702 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
2703 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
2704
21708325
TT
27052019-01-09 Tom Tromey <tom@tromey.com>
2706
2707 * common/next-iterator.h: New file.
2708 * objfiles.h (class all_objfiles): New.
2709 (struct objfile_iterator): New.
2710
669e09f6
PW
27112019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2712
2713 * NEWS: Move the description of the changed "frame", "select-frame",
2714 and "info frame" commands to the Changed commands section.
2715
041be526
SM
27162019-01-09 Simon Marchi <simon.marchi@ericsson.com>
2717
2718 * gdbtypes.c (check_stub_method_group): Remove handling of old
2719 mangling schemes.
2720 * linespec.c (find_methods): Likewise.
2721 * stabsread.c (read_member_functions): Likewise.
2722 * valops.c (search_struct_method): Likewise.
2723 (value_struct_elt_for_reference): Likewise.
2724 * NEWS: Mention this change.
2725
0e2a2133
AB
27262019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
2727
2728 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
2729 print_source_lines.
2730 * source.c (print_source_lines_base): Update line number check.
2731 (print_source_lines): New function.
2732 (source_lines_range::source_lines_range): New function.
2733 * source.h (class source_lines_range): New class.
2734 (print_source_lines): New declaration.
2735
1055a3b4
PW
27362019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2737
2738 * linespec.c (linespec_state_destructor): Free self->canonical_names.
2739
cfeadda5
TT
27402019-01-08 Tom Tromey <tom@tromey.com>
2741 Simon Marchi <simon.marchi@ericsson.com>
2742
2743 PR gdb/24060
2744 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
2745 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
2746 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
2747 * f-exp.y (DOLLAR_VARIABLE): Likewise.
2748 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
2749 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
2750
583068ca
AB
27512019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2752
2753 * source.c (select_source_symtab): Move header comment to
2754 declaration in source.h.
2755 (forget_cached_source_info_for_objfile): Likewise.
2756 (forget_cached_source_info): Likewise.
2757 (identify_source_line): Likewise.
2758 * source.h (identify_source_line): Move declaration from symtab.h
2759 and add comment from source.c
2760 (print_source_lines): Likewise.
2761 (forget_cached_source_info_for_objfile): Likewise.
2762 (forget_cached_source_info): Likewise.
2763 (select_source_symtab): Likewise.
2764 (enum print_source_lines_flag): Move definition from symtab.h.
2765 * symtab.h (identify_source_line): Move declaration to source.h.
2766 (print_source_lines): Likewise.
2767 (forget_cached_source_info_for_objfile): Likewise.
2768 (forget_cached_source_info): Likewise.
2769 (select_source_symtab): Likewise.
2770 (enum print_source_lines_flag): Move definition to source.h.
2771 * tui/tui-hooks.c: Add 'source.h' include.
2772
ec98a4ad
AB
27732019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2774
2775 * source.c (print_source_lines_base): Handle requests to print
2776 reverse line number sequences, and guard against empty lines
2777 string.
2778
62ea19c1
AB
27792019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2780
2781 * source.c (print_source_lines_base): Fix skip of '\r' if next
2782 character is '\n'.
2783
9d30e1fd
TT
27842019-01-06 Tom Tromey <tom@tromey.com>
2785
2786 * c-exp.y (struct c_parse_state) <macro_original_text,
2787 expansion_obstack>: New member.
2788 (macro_original_text, expansion_obstack): Remove globals.
2789 (scan_macro_expansion, scanning_macro_expansion)
2790 (finished_macro_expansion): Update.
2791 (scan_macro_cleanup): Remove.
2792 (yylex, c_parse): Update.
2793
c65bac38
TT
27942019-01-06 Tom Tromey <tom@tromey.com>
2795
2796 * c-exp.y (struct c_parse_state) <strings>: New member.
2797 (operator_stoken): Update.
2798
02e12e38
TT
27992019-01-06 Tom Tromey <tom@tromey.com>
2800
2801 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
2802 (union type_stack_elt) <typelist_val>: Now a pointer to
2803 std::vector.
2804 (type_stack_cleanup): Don't declare.
2805 (push_typelist): Update.
2806 * parse.c (pop_typelist): Return a std::vector.
2807 (push_typelist): Take a std::vector.
2808 (follow_types): Update. Do not free args.
2809 (type_stack_cleanup): Remove.
2810 * c-exp.y (struct c_parse_state): New.
2811 (cpstate): New global.
2812 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
2813 (nonempty_typelist): Update.
2814 (func_mod): Create a new vector.
2815 (c_parse): Create a c_parse_state.
2816 (check_parameter_typelist): Do not delete params.
2817 (function_method): Update. Do not delete type_list.
2818
f097f5ad
TT
28192019-01-06 Tom Tromey <tom@tromey.com>
2820
2821 PR gdb/28155:
2822 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
2823 check_typedef.
2824 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
2825 (print_return_value): Likewise.
2826
d2adf9f1
TT
28272019-01-05 Tom Tromey <tom@tromey.com>
2828
2829 * contrib/cleanup_check.py: Remove.
2830 * contrib/gcc-with-excheck: Remove.
2831 * contrib/exsummary.py: Remove.
2832 * contrib/excheck.py: Remove.
2833
2eab46b1
JB
28342019-01-05 Joel Brobecker <brobecker@adacore.com>
2835
2836 * thread.c (delete_thread_1): Add gdb_assert that THR is not
2837 NULL. Initialize tpprev to NULL instead of assigning it
2838 to NULL on the next statement.
2839 * windows-nat.c (windows_delete_thread): Remove check for
2840 main_thread_id before printing thread exit notifications.
2841 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
2842 Remove thread ID check against main_thread_id.
2843 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
2844 windows_delete_thread.
2845 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
2846
48c5e7e2
TT
28472019-01-04 Tom Tromey <tom@tromey.com>
2848
2849 * compile/compile.c (_initialize_compile): Use upper case for
2850 metasyntactic variables.
2851 * symmisc.c (_initialize_symmisc): Use upper case for
2852 metasyntactic variables.
2853 * psymtab.c (_initialize_psymtab): Use upper case for
2854 metasyntactic variables.
2855 * demangle.c (demangle_command): Use upper case for metasyntactic
2856 variables.
2857 (_initialize_demangler): Likewise.
2858 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
2859 variables.
2860
986041cd
TT
28612019-01-03 Tom Tromey <tom@tromey.com>
2862
2863 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
2864
7c711119
TT
28652019-01-03 Tom Tromey <tom@tromey.com>
2866
2867 * python/py-symtab.c (salpy_str): Update.
2868 (struct salpy_sal_object) <symtab>: Now a PyObject.
2869 (salpy_dealloc): Update.
2870 (del_objfile_sal): Use gdbpy_ref.
2871
1b20edf0
TT
28722019-01-03 Tom Tromey <tom@tromey.com>
2873
2874 * python/py-type.c (convert_field): Use new_reference. Return
2875 gdbpy_ref.
2876 (make_fielditem): Return gdbpy_ref.
2877 (typy_fields): Update.
2878 (typy_getitem): Update.
2879 (field_name): Return gdbpy_ref. Use new_reference.
2880 (typy_iterator_iternext): Update.
2881
ea41325b
TT
28822019-01-03 Tom Tromey <tom@tromey.com>
2883
2884 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
2885
2a3c71d6
TT
28862019-01-03 Tom Tromey <tom@tromey.com>
2887
2888 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
2889 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
2890 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
2891 (pspy_set_frame_filters, pspy_set_frame_unwinders)
2892 (pspy_set_type_printers): Likewise.
2893 * python/py-function.c (fnpy_init): Use gdbpy_ref.
2894 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
2895 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
2896 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
2897 (objfpy_set_type_printers): Likewise.
2898
5c329e6a
TT
28992019-01-03 Tom Tromey <tom@tromey.com>
2900
2901 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
2902 (gdbpy_print_stack): Use gdbpy_err_fetch.
2903 * python/python-internal.h (class gdbpy_err_fetch): New class.
2904 (class gdbpy_enter) <m_error_type, m_error_value,
2905 m_error_traceback>: Remove.
2906 <m_error>: New member.
2907 (gdbpy_exception_to_string): Don't declare.
2908 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
2909 * python/py-value.c (convert_value_from_python): Use
2910 gdbpy_err_fetch.
2911 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
2912 gdbpy_exception_to_string.
2913 (gdbpy_handle_exception): Use gdbpy_err_fetch.
2914 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2915 gdbpy_err_fetch.
2916
169bb27b
AB
29172019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 * linux-nat.c (delete_lwp_cleanup): Delete.
2920 (struct lwp_deleter): New struct.
2921 (lwp_info_up): New typedef.
2922 (linux_nat_target::follow_fork): Delete cleanup, and make use of
2923 lwp_info_up.
2924
a07c8880
AB
29252019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
2926
2927 * linux-fork.c (class scoped_switch_fork_info): New class.
2928 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
2929
26089c49
AB
29302019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
2931
2932 * valops.c (find_overload_match): Remove use of null_cleanup, and
2933 calls to do_cleanups.
2934
06d3e5b0
AB
29352019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
2936
2937 * compile/compile-cplus-types.c
2938 (compile_cplus_instance::decl_name): Handle changes to
2939 cp_func_name.
2940 * cp-support.c (cp_func_name): Update header comment, update
2941 return type.
2942 * cp-support.h (cp_func_name): Update return type in declaration.
2943 * valops.c (find_overload_match): Move temp_func local to top
2944 level of function and change its type. Use temp_func to hold and
2945 delete temporary string obtained from cp_func_name.
2946
66644cd3
AB
29472019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
2948
2949 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
2950 gdb::char_vector, remove cleanup, and update uses of `msg`.
2951
592d8c0a
JW
29522019-01-03 Jim Wilson <jimw@sifive.com>
2953
2954 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
2955
c55d06ec
TT
29562019-01-02 Tom Tromey <tom@tromey.com>
2957
2958 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
2959 (tdesc_parse_xml): Remove cleanups.
2960 * target-descriptions.h (make_cleanup_free_target_description):
2961 Don't declare.
2962 (target_desc_deleter): New struct.
2963 (target_desc_up): New typedef.
2964 * target-descriptions.c (target_desc_deleter::operator()): Rename
2965 from free_target_description.
2966 (make_cleanup_free_target_description): Remove.
2967
3a6ae42d
TT
29682019-01-02 Tom Tromey <tom@tromey.com>
2969
2970 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
2971 constructor, destructor.
2972 (linespec_parser): Remove typedef.
2973 (~linespec_parser): Rename from linespec_parser_delete.
2974 (linespec_lex_to_end, linespec_complete_label)
2975 (linespec_complete): Update.
2976 (decode_line_full): Remove cleanups.
2977 (decode_line_1): Update.
2978
61fd3e73
TT
29792019-01-02 Tom Tromey <tom@tromey.com>
2980
2981 * python/python-internal.h (inferior_to_inferior_object): Change
2982 return type.
2983 * python/py-exitedevent.c (create_exited_event_object): Update.
2984 * python/py-inferior.c (inferior_to_inferior_object): Return
2985 gdbpy_ref.
2986 (python_new_inferior, python_inferior_deleted)
2987 (thread_to_thread_object, delete_thread_object)
2988 (build_inferior_list, gdbpy_selected_inferior): Update.
2989 * python/py-infthread.c (create_thread_object): Update. Also fail
2990 if inferior_to_inferior_object fails.
2991
d20172fc
SM
29922019-01-02 Simon Marchi <simon.marchi@ericsson.com>
2993
2994 * inferior.h (class inferior) <displaced_step_state>: New field.
2995 * infrun.h (struct displaced_step_state): Move here from
2996 infrun.c. Initialize fields, add constructor.
2997 <inf>: Remove field.
2998 <reset>: New method.
2999 * infrun.c (struct displaced_step_inferior_state): Move to
3000 infrun.h.
3001 (displaced_step_inferior_states): Remove.
3002 (get_displaced_stepping_state): Adust.
3003 (displaced_step_in_progress_any_inferior): Adjust.
3004 (displaced_step_in_progress_thread): Adjust.
3005 (displaced_step_in_progress): Adjust.
3006 (add_displaced_stepping_state): Remove.
3007 (get_displaced_step_closure_by_addr): Adjust.
3008 (remove_displaced_stepping_state): Remove.
3009 (infrun_inferior_exit): Call displaced_step_state.reset.
3010 (use_displaced_stepping): Don't check for NULL.
3011 (displaced_step_prepare_throw): Call
3012 get_displaced_stepping_state.
3013 (displaced_step_fixup): Don't check for NULL.
3014 (prepare_for_detach): Don't check for NULL.
3015
e3319240
PW
30162019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3017
3018 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
3019 in case of call that did not complete.
3020
5d36dfb9
AU
30212019-01-02 Andrey Utkin <autkin@undo.io>
3022
3023 * symfile.c (find_separate_debug_file): Fix search of debug files for
3024 remote debuggee.
3025
8833fbf0
TT
30262019-01-02 Tom Tromey <tom@tromey.com>
3027
3028 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
3029 indentation.
3030 * python/py-frame.c (frapy_older): Remove cast.
3031 (frapy_newer): Likewise.
3032 * python/py-breakpoint.c (local_setattro): Remove cast.
3033 * python/py-arch.c (archpy_name): Remove local variable.
3034 * python/py-type.c (gdbpy_lookup_type): Remove cast.
3035
4ada3dfd
JB
30362019-01-02 Joel Brobecker <brobecker@adacore.com>
3037
3038 * unittests/basic_string_view/element_access/char/empty.cc:
3039 Fix year range in copyright header.
3040
113b7b81
AB
30412019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
3042
3043 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
3044 Delete.
3045 <operator==>: Update with for removed field.
3046 <hash>: Likewise.
3047 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
3048 <isa_features>: ...this.
3049 <abi_features>: New field.
3050 (riscv_isa_flen): Update comment.
3051 (riscv_abi_xlen): New declaration.
3052 (riscv_abi_flen): New declaration.
3053 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
3054 isa_features.
3055 (riscv_abi_xlen): New function.
3056 (riscv_isa_flen): Update to get answer from isa_features.
3057 (riscv_abi_flen): New function.
3058 (riscv_has_fp_abi): Update to get answer from abi_features.
3059 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
3060 xlen and flen.
3061 (riscv_call_info) <xlen, flen>: Update comment.
3062 (riscv_call_arg_struct): Remove invalid assertions
3063 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
3064 is removed.
3065 (riscv_gdbarch_init): Gather isa features and abi features
3066 separately, ensure both match on the gdbarch when reusing an old
3067 gdbarch. Relax an error check to allow 32-bit abi float to run on
3068 a target with 64-bit float hardware.
3069
b18ca514
PW
30702019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3071
3072 * source.c (search_command_helper): Stop reverse search
3073 when line 1 has been searched.
3074
ec70d8db
PW
30752019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3076
3077 * record-full.c (record_full_base_target::close): Rewrite
3078 record_full_core_buf_list free logic.
3079
5b38f9c1
PW
30802019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3081
3082 * break-catch-syscall.c (print_one_catch_syscall): xfree
3083 the last text.
3084
66d91b39
JB
30852019-01-01 Joel Brobecker <brobecker@adacore.com>
3086
3087 * top.c (print_gdb_version): Update Copyright year in version
3088 message.
3089
42a4f53d
JB
30902019-01-01 Joel Brobecker <brobecker@adacore.com>
3091
3092 Update copyright year range in all GDB files.
3093
7e955d83 30942019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 3095
5bbd631d 3096 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 3097
5bbd631d 3098For older changes see ChangeLog-2018.
c906108c
SS
3099\f
3100Local Variables:
3101mode: change-log
3102left-margin: 8
3103fill-column: 74
3104version-control: never
57da7796 3105coding: utf-8
c906108c 3106End:
5bbd631d 3107
This page took 2.293118 seconds and 4 git commands to generate.