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