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