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