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