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