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