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