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