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