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