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