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