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