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