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