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