Remove ADD_FILES and ADD_DEPS from Makefile.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
31278b51
TT
12018-07-09 Tom Tromey <tom@tromey.com>
2
3 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4 (LIBGDB_OBS, clean mostlyclean): Update.
5 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6
e5fd1493
TT
72018-07-09 Tom Tromey <tom@tromey.com>
8
9 * Makefile.in (%.c: %.y): Use ECHO_YACC.
10 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
11 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
12
981e0c0c
TT
132018-07-09 Tom Tromey <tom@tromey.com>
14
15 * Makefile.in (ALLDEPFILES): Remove exec.c.
16 (COMMON_OBS): Remove exec.o.
17 (COMMON_SFILES): Add exec.c.
18
14ccceb2
TT
192018-07-09 Tom Tromey <tom@tromey.com>
20
21 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
22
5d3c3a68
TT
232018-07-09 Tom Tromey <tom@tromey.com>
24
25 * Makefile.in (clean mostlyclean): Remove stamp-version.
26 (version.c): Depend on stamp-version.
27 (stamp-version): New rule, from version.c rule.
28
1998086d
TT
292018-07-09 Tom Tromey <tom@tromey.com>
30
31 * Makefile.in (init.c): Depend on stamp-init.
32 (stamp-init): New rule, from init.c rule.
33 (clean mostlyclean): Remove stamp-init.
34
4c754949
TT
352018-07-09 Tom Tromey <tom@tromey.com>
36
37 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
38 SUBDIR_GCC_COMPILE_SRCS.
39
6497f1dd
TT
402018-07-09 Tom Tromey <tom@tromey.com>
41
42 * Makefile.in (init.c): Remove some unused sed rules.
43
97a34db9
TT
442018-07-09 Tom Tromey <tom@tromey.com>
45
46 * Makefile.in (TSOBS): Remove.
47 (INIT_FILES): Update.
48 (LIBGDB_OBS): Update.
49 (COMMON_SFILES): Add inflow.c.
50 (SFILES): Remove inflow.c.
51
25289ac1
JK
522018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
53
54 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
55
e83f4d97
SM
562018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
57
58 * ia64-tdep.c (get_reg_name, get_fpreg_name, get_saveloc_name,
59 is_signal_frame_name, step_name, init_remote_name,
60 create_addr_space_name, destroy_addr_space_name,
61 search_unwind_table_name, find_dyn_list_name): Constify.
62
6821842f
SM
632018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
64
65 * darwin-nat.c (darwin_pthread_kill): New function.
66 (darwin_resume_thread): Use darwin_pthread_kill.
67
c530603c
TV
682018-07-05 Tom de Vries <tdevries@suse.de>
69
70 * macroexp.c (macro_buffer) <operator=>: New member function.
71
a7d0f0f0
TT
722018-07-04 Tom Tromey <tom@tromey.com>
73
74 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
75
6242c6a6
SM
762018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
77
78 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
79 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
80 * maint.c: Likewise.
81 * top.c: Likewise.
82
4e5b2f89
JB
832018-07-04 Joel Brobecker <brobecker@adacore.com>
84
85 * NEWS: Create a new section for the next release branch.
86 Rename the section of the current branch, now that it has
87 been cut.
88
538ccc4a
JB
892018-07-04 Joel Brobecker <brobecker@adacore.com>
90
91 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
92 * version.in: Bump version to 8.2.50.DATE-git.
93
1b919490
VB
942018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
95 Pedro Alves <palves@redhat.com>
96
97 * linux-nat.c (linux_init_ptrace): Rename to ...
98 (linux_init_ptrace_procfs): ... this. Call
99 linux_proc_init_warnings.
100 (linux_nat_target::post_attach)
101 (linux_nat_target::post_startup_inferior): Adjust.
102 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
103 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
104
1ea5da02
TV
1052018-07-04 Tom de Vries <tdevries@suse.de>
106
107 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
108 check ...
109 (read_comp_unit_head): ... here.
110
f51e0e20
TT
1112018-07-03 Tom Tromey <tom@tromey.com>
112
113 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
114 (stop_tracing, tstatus_command)
115 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
116 (print_one_static_tracepoint_marker): Update.
117 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
118 std::vector.
119 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
120 VEC.
121 (all_tracepoints, static_tracepoints_here): Return std::vector.
122
d7e15655
TT
1232018-07-03 Tom Tromey <tom@tromey.com>
124
125 * common/ptid.c (ptid_equal): Remove.
126 * common/ptid.h (ptid_equal): Don't declare.
127 * ada-tasks.c: Update.
128 * breakpoint.c: Update.
129 * common/agent.c: Update.
130 * corelow.c: Update.
131 * darwin-nat-info.c: Update.
132 * darwin-nat.c: Update.
133 * dcache.c: Update.
134 * dtrace-probe.c: Update.
135 * dummy-frame.c: Update.
136 * fbsd-nat.c: Update.
137 * frame.c: Update.
138 * gdbthread.h: Update.
139 * gnu-nat.c: Update.
140 * go32-nat.c: Update.
141 * inf-loop.c: Update.
142 * inf-ptrace.c: Update.
143 * infcall.c: Update.
144 * infcmd.c: Update.
145 * inflow.c: Update.
146 * infrun.c: Update.
147 * linux-fork.c: Update.
148 * linux-nat.c: Update.
149 * linux-thread-db.c: Update.
150 * mi/mi-cmd-var.c: Update.
151 * mi/mi-interp.c: Update.
152 * mi/mi-main.c: Update.
153 * nto-procfs.c: Update.
154 * ppc-linux-tdep.c: Update.
155 * procfs.c: Update.
156 * python/py-inferior.c: Update.
157 * python/py-record-btrace.c: Update.
158 * python/py-record.c: Update.
159 * ravenscar-thread.c: Update.
160 * regcache.c: Update.
161 * remote-sim.c: Update.
162 * remote.c: Update.
163 * sol-thread.c: Update.
164 * solib.c: Update.
165 * target.c: Update.
166 * tui/tui-stack.c: Update.
167 * varobj.c: Update.
168 * windows-nat.c: Update.
169 * windows-tdep.c: Update.
170
26a57c92
TT
1712018-07-03 Tom Tromey <tom@tromey.com>
172
173 * common/ptid.c (ptid_match): Remove.
174 * common/ptid.h (ptid_match): Don't declare.
175 * fbsd-nat.c: Update.
176 * infcmd.c: Update.
177 * infrun.c: Update.
178 * linux-nat.c: Update.
179 * record-btrace.c: Update.
180 * regcache.c: Update.
181 * remote.c: Update.
182
d2a107e3
TT
1832018-07-03 Tom Tromey <tom@tromey.com>
184
185 * common/ptid.c (ptid_tid_p): Remove.
186 * common/ptid.h (ptid_tid_p): Don't declare.
187 * sol-thread.c: Update.
188
15a9e13e
TT
1892018-07-03 Tom Tromey <tom@tromey.com>
190
191 * common/ptid.c (ptid_lwp_p): Remove.
192 * common/ptid.h (ptid_lwp_p): Don't declare.
193 * fbsd-nat.c: Update.
194 * linux-nat.c: Update.
195 * nat/linux-procfs.c: Update.
196 * nat/x86-linux-dregs.c: Update.
197 * sol-thread.c: Update.
198
0e998d96
TT
1992018-07-03 Tom Tromey <tom@tromey.com>
200
201 * common/ptid.c (ptid_is_pid): Remove.
202 * common/ptid.h (ptid_is_pid): Don't declare.
203 * infrun.c: Update.
204 * linux-nat.c: Update.
205 * mi/mi-interp.c: Update.
206 * remote.c: Update.
207 * thread.c: Update.
208
cc6bcb54
TT
2092018-07-03 Tom Tromey <tom@tromey.com>
210
211 * common/ptid.c (ptid_get_tid): Remove.
212 * common/ptid.h (ptid_get_tid): Don't declare.
213 * ada-tasks.c: Update.
214 * aix-thread.c: Update.
215 * bsd-uthread.c: Update.
216 * darwin-nat.c: Update.
217 * fbsd-nat.c: Update.
218 * i386-darwin-nat.c: Update.
219 * infrun.c: Update.
220 * linux-tdep.c: Update.
221 * nto-procfs.c: Update.
222 * ppc-ravenscar-thread.c: Update.
223 * python/py-infthread.c: Update.
224 * ravenscar-thread.c: Update.
225 * sol-thread.c: Update.
226 * sparc-ravenscar-thread.c: Update.
227 * windows-nat.c: Update.
228
e38504b3
TT
2292018-07-03 Tom Tromey <tom@tromey.com>
230
231 * common/ptid.c (ptid_get_lwp): Remove.
232 * common/ptid.h (ptid_get_lwp): Don't declare.
233 * aarch64-linux-nat.c: Update.
234 * ada-tasks.c: Update.
235 * aix-thread.c: Update.
236 * amd64-linux-nat.c: Update.
237 * arm-linux-nat.c: Update.
238 * corelow.c: Update.
239 * fbsd-nat.c: Update.
240 * fbsd-tdep.c: Update.
241 * gnu-nat.c: Update.
242 * i386-cygwin-tdep.c: Update.
243 * i386-gnu-nat.c: Update.
244 * i386-linux-nat.c: Update.
245 * ia64-linux-nat.c: Update.
246 * inf-ptrace.c: Update.
247 * infrun.c: Update.
248 * linux-fork.c: Update.
249 * linux-nat.c: Update.
250 * linux-tdep.c: Update.
251 * linux-thread-db.c: Update.
252 * mips-linux-nat.c: Update.
253 * nat/aarch64-linux-hw-point.c: Update.
254 * nat/aarch64-linux.c: Update.
255 * nat/linux-btrace.c: Update.
256 * nat/linux-osdata.c: Update.
257 * nat/linux-procfs.c: Update.
258 * nat/x86-linux-dregs.c: Update.
259 * obsd-nat.c: Update.
260 * ppc-fbsd-nat.c: Update.
261 * ppc-linux-nat.c: Update.
262 * procfs.c: Update.
263 * python/py-infthread.c: Update.
264 * ravenscar-thread.c: Update.
265 * remote.c: Update.
266 * s390-linux-nat.c: Update.
267 * sol-thread.c: Update.
268 * sol2-tdep.c: Update.
269 * spu-linux-nat.c: Update.
270 * x86-linux-nat.c: Update.
271 * xtensa-linux-nat.c: Update.
272
e99b03dc
TT
2732018-07-03 Tom Tromey <tom@tromey.com>
274
275 * common/ptid.c (ptid_get_pid): Remove.
276 * common/ptid.h (ptid_get_pid): Don't declare.
277 * aarch64-linux-nat.c: Update.
278 * ada-lang.c: Update.
279 * aix-thread.c: Update.
280 * alpha-bsd-nat.c: Update.
281 * amd64-fbsd-nat.c: Update.
282 * amd64-linux-nat.c: Update.
283 * arm-linux-nat.c: Update.
284 * arm-nbsd-nat.c: Update.
285 * auxv.c: Update.
286 * break-catch-syscall.c: Update.
287 * breakpoint.c: Update.
288 * bsd-uthread.c: Update.
289 * corelow.c: Update.
290 * ctf.c: Update.
291 * darwin-nat.c: Update.
292 * fbsd-nat.c: Update.
293 * fbsd-tdep.c: Update.
294 * gcore.c: Update.
295 * gnu-nat.c: Update.
296 * hppa-nbsd-nat.c: Update.
297 * hppa-obsd-nat.c: Update.
298 * i386-fbsd-nat.c: Update.
299 * ia64-linux-nat.c: Update.
300 * inf-ptrace.c: Update.
301 * infcmd.c: Update.
302 * inferior.c: Update.
303 * inferior.h: Update.
304 * inflow.c: Update.
305 * infrun.c: Update.
306 * linux-fork.c: Update.
307 * linux-nat.c: Update.
308 * linux-tdep.c: Update.
309 * linux-thread-db.c: Update.
310 * m68k-bsd-nat.c: Update.
311 * mi/mi-interp.c: Update.
312 * mi/mi-main.c: Update.
313 * mips-linux-nat.c: Update.
314 * mips-nbsd-nat.c: Update.
315 * mips64-obsd-nat.c: Update.
316 * nat/aarch64-linux-hw-point.c: Update.
317 * nat/aarch64-linux.c: Update.
318 * nat/linux-btrace.c: Update.
319 * nat/linux-osdata.c: Update.
320 * nat/linux-procfs.c: Update.
321 * nat/x86-linux-dregs.c: Update.
322 * nto-procfs.c: Update.
323 * obsd-nat.c: Update.
324 * ppc-linux-nat.c: Update.
325 * ppc-nbsd-nat.c: Update.
326 * ppc-obsd-nat.c: Update.
327 * proc-service.c: Update.
328 * procfs.c: Update.
329 * python/py-inferior.c: Update.
330 * python/py-infthread.c: Update.
331 * ravenscar-thread.c: Update.
332 * record.c: Update.
333 * remote-sim.c: Update.
334 * remote.c: Update.
335 * rs6000-nat.c: Update.
336 * s390-linux-nat.c: Update.
337 * sh-nbsd-nat.c: Update.
338 * sol-thread.c: Update.
339 * sparc-nat.c: Update.
340 * sparc64-tdep.c: Update.
341 * spu-linux-nat.c: Update.
342 * spu-tdep.c: Update.
343 * target-debug.h: Update.
344 * target.c: Update.
345 * thread.c: Update.
346 * tid-parse.c: Update.
347 * tracefile-tfile.c: Update.
348 * vax-bsd-nat.c: Update.
349 * windows-nat.c: Update.
350 * x86-linux-nat.c: Update.
351 * x86-nat.c: Update.
352
f2907e49
TT
3532018-07-03 Tom Tromey <tom@tromey.com>
354
355 * common/ptid.c (pid_to_ptid): Remove.
356 * common/ptid.h (pid_to_ptid): Don't declare.
357 * aix-thread.c: Update.
358 * arm-linux-nat.c: Update.
359 * common/ptid.c: Update.
360 * common/ptid.h: Update.
361 * corelow.c: Update.
362 * ctf.c: Update.
363 * darwin-nat.c: Update.
364 * fbsd-nat.c: Update.
365 * fork-child.c: Update.
366 * gnu-nat.c: Update.
367 * go32-nat.c: Update.
368 * inf-ptrace.c: Update.
369 * infcmd.c: Update.
370 * inferior.c: Update.
371 * infrun.c: Update.
372 * linux-fork.c: Update.
373 * linux-nat.c: Update.
374 * nat/aarch64-linux-hw-point.c: Update.
375 * nat/fork-inferior.c: Update.
376 * nat/x86-linux-dregs.c: Update.
377 * nto-procfs.c: Update.
378 * obsd-nat.c: Update.
379 * procfs.c: Update.
380 * progspace.c: Update.
381 * remote.c: Update.
382 * rs6000-nat.c: Update.
383 * s390-linux-nat.c: Update.
384 * sol-thread.c: Update.
385 * spu-linux-nat.c: Update.
386 * target.c: Update.
387 * top.c: Update.
388 * tracefile-tfile.c: Update.
389 * windows-nat.c: Update.
390
fd79271b
TT
3912018-07-03 Tom Tromey <tom@tromey.com>
392
393 * common/ptid.h (ptid_build): Don't declare.
394 * common/ptid.c (ptid_build): Remove.
395 * aix-thread.c: Update.
396 * bsd-kvm.c: Update.
397 * bsd-uthread.c: Update.
398 * common/agent.c: Update.
399 * common/ptid.c: Update.
400 * common/ptid.h: Update.
401 * corelow.c: Update.
402 * darwin-nat.c: Update.
403 * fbsd-nat.c: Update.
404 * gnu-nat.c: Update.
405 * linux-fork.c: Update.
406 * linux-nat.c: Update.
407 * linux-thread-db.c: Update.
408 * nat/linux-osdata.c: Update.
409 * nat/linux-procfs.c: Update.
410 * nto-procfs.c: Update.
411 * obsd-nat.c: Update.
412 * proc-service.c: Update.
413 * procfs.c: Update.
414 * ravenscar-thread.c: Update.
415 * remote-sim.c: Update.
416 * remote.c: Update.
417 * sol-thread.c: Update.
418 * target.c: Update.
419 * windows-nat.c: Update.
420
057302ce
TT
4212018-07-03 Tom Tromey <tom@tromey.com>
422
423 * infrun.c (follow_exec): Use exit_inferior_silent.
424 * inferior.c (exit_inferior_num_silent): Remove.
425 * inferior.h (exit_inferior_num_silent): Don't declare.
426
a50c11c6
TT
4272018-07-03 Tom Tromey <tom@tromey.com>
428
429 PR cli/23340:
430 * darwin-nat.c (darwin_attach_pid): Reset inferior and
431 inferior_ptid on error.
432
471b9d15
MR
4332018-07-02 Maciej W. Rozycki <macro@mips.com>
434 Simon Marchi <simon.marchi@polymtl.ca>
435
436 PR tdep/8282
437 * disasm.h (gdb_disassembler): Add
438 `m_disassembler_options_holder'. member
439 * disasm.c (get_all_disassembler_options): New function.
440 (gdb_disassembler::gdb_disassembler): Use it.
441 (gdb_buffered_insn_length_init_dis): Likewise.
442 (gdb_buffered_insn_length): Adjust accordingly.
443 (set_disassembler_options): Handle options with arguments.
444 (show_disassembler_options_sfunc): Likewise. Add a leading new
445 line if showing options with descriptions.
446 (disassembler_options_completer): Adapt to using the
447 `disasm_options_and_args_t' structure.
448 * mips-tdep.c (mips_disassembler_options): New variable.
449 (mips_disassembler_options_o32): Likewise.
450 (mips_disassembler_options_n32): Likewise.
451 (mips_disassembler_options_n64): Likewise.
452 (gdb_print_insn_mips): Don't set `disassembler_options'.
453 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
454 functions.
455 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
456 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
457 `gdbarch_disassembler_options_implicit' and
458 `gdbarch_valid_disassembler_options'.
459 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
460 `disasm_options_and_args_t' structure.
461 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
462 method.
463 (valid_disassembler_options): Switch from `disasm_options_t' to
464 the `disasm_options_and_args_t' structure.
465 * NEWS: Document `set disassembler-options' support for the MIPS
466 target.
467 * gdbarch.h: Regenerate.
468 * gdbarch.c: Regenerate.
469
41823f29
SH
4702018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
471
472 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
473
41206e32
JB
4742018-06-29 Joel Brobecker <brobecker@adacore.com>
475
476 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
477 parameter in call to amd64_target_description.
478 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
479 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
480 (amd64fbsd_init_abi): Likewise.
481 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
482 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
483 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
484 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
485
de52b960
PA
4862018-06-29 Pedro Alves <palves@redhat.com>
487
488 * gdb/amd64-tdep.h (amd64_create_target_description): Add
489 "segments" parameter.
490 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
491 (_initialize_amd64_tdep): Update call to
492 amd64_create_target_description.
493 (amd64_target_description): Add "segments" parameter. Adjust
494 the implementation to use it.
495 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
496 call to amd64_create_target_description.
497 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
498 * gdb/arch/amd64.h (amd64_create_target_description): Add
499 "segments" register.
500 * gdb/arch/amd64.c (amd64_create_target_description): Add
501 "segments" parameter. Call create_feature_i386_64bit_segments
502 only if SEGMENTS is true.
503 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
504 call to amd64_create_target_description.
505
75acb486
PA
5062018-06-29 Pedro Alves <palves@redhat.com>
507
508 * thread.c (thread_target_id_str): New, factored out from ...
509 (print_thread_info_1): ... here. Use it to compute the max
510 "Target Id" column width.
511
c76a8ea3
PA
5122018-06-29 Pedro Alves <palves@redhat.com>
513
514 * remote.c (remote_target::extra_thread_info): Delete
515 'display_buf' and 'n' locals. from the cache, regardless of
516 packet mechanims is in use. Use cache for qThreadExtra and qP
517 methods too.
518
cd2bb709
PA
5192018-06-29 Pedro Alves <palves@redhat.com>
520
521 * blockframe.c (find_pc_sect_containing_function): New function.
522 * breakpoint.c (print_breakpoint_location): Don't call
523 find_pc_sect_function.
524 * linespec.c (create_sals_line_offset): Record the location's
525 symbol in the sal.
526 * linespec.c (convert_address_location_to_sals): Fill in sal's
527 symbol with find_pc_sect_containing_function.
528 * symtab.c (find_function_start_sal): Rename to ...
529 (find_function_start_sal_1): ... this.
530 (find_function_start_sal): Reimplement as wrapper around
531 find_function_start_sal_1, and use
532 find_pc_sect_containing_function to fill in the sal's symbol.
533 (find_function_start_sal(symbol*, bool)): Adjust.
534 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
535 comments.
536 (find_pc_sect_containing_function): Declare.
537
991ff292
PA
5382018-06-29 Pedro Alves <palves@redhat.com>
539
540 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
541 true if the the location has no symbol.
542
44cee4fd
TT
5432018-06-28 Tom Tromey <tom@tromey.com>
544
545 * NEWS: Mention --enable-codesign.
546 * silent-rules.mk (ECHO_SIGN): New variable.
547 * configure.ac: Add --enable-codesign.
548 * configure: Rebuild.
549 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
550 (gdb$(EXEEXT)): Optionally invoke codesign.
551
f2ffa92b
PA
5522018-06-28 Pedro Alves <palves@redhat.com>
553
554 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
555 comments.
556 (switch_to_thread_no_regs): Adjust comment.
557 * infcmd.c (stop_pc): Delete.
558 (post_create_inferior, info_program_command): Replace references
559 to stop_pc with references to thread_info->suspend.stop_pc.
560 * inferior.h (stop_pc): Delete declaration.
561 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
562 (handle_inferior_event_1, handle_signal_stop)
563 (process_event_stop_test, keep_going_stepped_thread)
564 (handle_step_into_function, handle_step_into_function_backward)
565 (print_stop_location): Replace references to stop_pc with
566 references to thread_info->suspend.stop_pc.
567 (struct infcall_suspend_state) <stop_pc>: Delete field.
568 (save_infcall_suspend_state, restore_infcall_suspend_state):
569 Remove references to inf_stat->stop_pc.
570 * linux-fork.c (fork_load_infrun_state): Likewise.
571 * record-btrace.c (record_btrace_set_replay): Likewise.
572 * record-full.c (record_full_goto_entry): Likewise.
573 * remote.c (print_one_stopped_thread): Likewise.
574 * target.c (target_resume): Extend comment.
575 * thread.c (set_executing_thread): New.
576 (set_executing): Use it.
577 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
578 Remove references to stop_pc.
579
ecdc3a72
PA
5802018-06-28 Pedro Alves <palves@redhat.com>
581
582 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
583 Moving fetching stop_pc until after ecs->event_thread is refreshed.
584
d95d3aef
TT
5852018-06-28 Tom Tromey <tom@tromey.com>
586
587 * coffread.c (coff_symfile_finish): Update.
588 * xcoffread.c (xcoff_symfile_finish): Update.
589 * elfread.c (elf_symfile_finish): Update.
590 * symfile.h (dwarf2_free_objfile): Don't declare.
591 * dwarf2read.c (_initialize_dwarf2_read): Use
592 register_objfile_data_with_cleanup.
593 (dwarf2_free_objfile): Now static. Change signature.
594
291f9a96
PT
5952018-06-28 Petr Tesarik <ptesarik@suse.cz>
596
597 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
598 option "-o" to add-symbol-file-load to add an offset to each
599 section's load address.
600 * symfile.c (set_objfile_default_section_offset): New function.
601
d81a3eaf
PT
6022018-06-28 Petr Tesarik <ptesarik@suse.cz>
603
604 * symfile.c (add_symbol_file_command): Make sure that sections
605 with the same name are sorted in the same order.
606
ed6dfe51
PT
6072018-06-28 Petr Tesarik <ptesarik@suse.cz>
608
609 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
610 require the second argument. If omitted, load sections at the
611 addresses specified in the file.
612
d4d429d5
PT
6132018-06-28 Petr Tesarik <ptesarik@suse.cz>
614
615 * symfile.c (symbol_file_command, symbol_file_add_main_1)
616 (_initialize_symfile): Add option "-o" to symbol-file to add an
617 offset to each section of the symbol file.
618
39b27ab6
PT
6192018-06-28 Petr Tesarik <ptesarik@suse.cz>
620
621 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
622
41827fc3
TT
6232018-06-27 Tom Tromey <tom@tromey.com>
624
625 * stack.c (_initialize_stack): Update "func" help text.
626
0c6aef22
TT
6272018-06-27 Tom Tromey <tom@tromey.com>
628
629 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
630 std::vector.
631 (unwind_infopy_str, pyuw_create_unwind_info)
632 (unwind_infopy_add_saved_register, pyuw_sniffer)
633 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
634 Update.
635 (struct saved_reg): Add constructor.
636 <value>: Now a gdbpy_ref<>.
637
63177289
TT
6382018-06-27 Tom Tromey <tom@tromey.com>
639
640 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
641
e76f78a0
SM
6422018-06-27 Simon Marchi <simon.marchi@ericsson.com>
643
644 * gdb-gdb.py.in: Format using autopep8.
645
9a14af7b
SM
6462018-06-27 Simon Marchi <simon.marchi@ericsson.com>
647
648 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
649 (type_lookup_function): Recognize CORE_ADDR values.
650
189366cd
SM
6512018-06-27 Simon Marchi <simon.marchi@ericsson.com>
652
653 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
654 print tag_name.
655
68ad5fb9
SM
6562018-06-27 Simon Marchi <simon.marchi@ericsson.com>
657
658 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
659 <__lt__>: Add.
660
141ec9f6
SM
6612018-06-27 Simon Marchi <simon.marchi@ericsson.com>
662
663 * gdb-gdb.py: Move to...
664 * gdb-gdb.py.in: ... here.
665 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
666 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
667 dependencies.
668 (distclean): Remove gdb-gdb.py when cleaning.
669 (gdb-gdb.py, gdb-gdb.gdb): New rules.
670 * configure: Re-generate.
671
4c4e7ad4
PA
6722018-06-27 Pedro Alves <palves@redhat.com>
673
674 * proc-service.c (get_ps_regcache): New.
675 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
676 (ps_lsetfpregs): Use it.
677
7ab6656f
OJ
6782018-06-27 Omair Javaid <omair.javaid@linaro.org>
679
680 PR gdb/21695
681 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
682 (dwarf_decode_lines_1): Adjust.
683
bd583225
SM
6842018-06-27 Simon Marchi <simon.marchi@ericsson.com>
685
686 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
687 override.
688 <info_proc>: Likewise.
689
9a325b7b
JB
6902018-06-26 Joel Brobecker <brobecker@adacore.com>
691
692 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
693 to windows_fetch_one_register, and only handle the case of
694 fetching one register. Move the code that reloads the context
695 and iterates over all registers if R is negative to...
696 (windows_nat_target::fetch_registers): ... here.
697 (do_windows_store_inferior_registers): Rename to
698 windows_store_one_register, and only handle the case of storing
699 one register. Move the code that handles the case where r is
700 negative to...
701 (windows_nat_target::store_registers) ... here.
702
a33ccfc7
TT
7032018-06-26 Tom Tromey <tom@tromey.com>
704
705 PR rust/22574:
706 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
707 * rust-lang.c (rust_print_struct_def): Add podata parameter.
708 Update.
709 (rust_internal_print_type): Add podata parameter.
710 (rust_print_type): Update.
711
e0c547d1
TT
7122018-06-26 Tom Tromey <tom@tromey.com>
713
714 * typeprint.h (struct print_offset_data) <update, finish,
715 maybe_print_hole>: New methods.
716 <indentation>: New constant.
717 * typeprint.c (print_offset_data::indentation): Define.
718 (print_offset_data::maybe_print_hole, print_offset_data::update)
719 (print_offset_data::finish): Move from c-typeprint.c and rename.
720 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
721 (print_spaces_filtered_with_print_options): Update.
722 (c_print_type_union_field_offset, maybe_print_hole)
723 (c_print_type_struct_field_offset): Move to typeprint.c and
724 rename.
725 (c_type_print_base_struct_union): Update.
726
75cbc781
PA
7272018-06-25 Pedro Alves <palves@redhat.com>
728
729 * gdbthread.h (thread_info_ref, delete_thread)
730 (delete_thread_silent, first_thread_of_inferior)
731 (any_thread_of_inferior, switch_to_thread)
732 (enable_thread_stack_temporaries)
733 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
734 (get_last_thread_stack_temporary)
735 (value_in_thread_stack_temporaries, can_access_registers_thread):
736 Spell out "struct thread_info" instead of just "thread_info".
737 * inferior.h (notice_new_inferior): Likewise.
738
b7a08269
PA
7392018-06-25 Pedro Alves <palves@redhat.com>
740
741 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
742 pass thread_info pointer to delete_thread.
743 (windows_nat_target::detach): Pass inferior pointer to
744 detach_inferior.
745 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
746 delete_thread.
747 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
748 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
749 and pass a thread_info pointer to delete_thread.
750 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
751 pass thread_info pointer to delete_thread.
752 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
753 delete_thread_silent call.
754 * procfs.c (procfs_target::detach): Pass inferior pointer to
755 detach_inferior.
756 (procfs_target::wait): Pass thread_info pointer to delete_thread.
757 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
758 delete_thread_silent call.
759 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
760 pass thread_info pointer to delete_thread.
761 (windows_nat_target::detach): Pass inferior pointer to
762 delete_inferior.
763
8e7767e3
AH
7642018-06-22 Alan Hayward <alan.hayward@arm.com>
765
766 * regcache.c (readable_regcache::read_part): Fix asserts.
767 (reg_buffer::raw_collect_part): New function.
768 (regcache::write_part): Fix asserts.
769 (reg_buffer::raw_supply_part): New function.
770 (regcache::transfer_regset_register): New helper function.
771 (regcache::transfer_regset): Call new functions.
772 (regcache_supply_regset): Use gdb_byte*.
773 (regcache::supply_regset): Likewise.
774 (regcache_collect_regset): Likewise.
775 (regcache::collect_regset): Likewise.
776 * regcache.h (reg_buffer::raw_collect_part): New declaration.
777 (reg_buffer::raw_supply_part): Likewise.
778 (regcache::transfer_regset_register): Likewise.
779 (regcache::transfer_regset): Use gdb_byte*.
780
bfd60e34
AH
7812018-06-22 Alan Hayward <alan.hayward@arm.com>
782
783 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
784
00431a78
PA
7852018-06-21 Pedro Alves <palves@redhat.com>
786
787 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
788 instead of a ptid_t. All callers adjusted.
789 * ada-tasks.c (ada_get_task_number): Likewise. All callers
790 adjusted.
791 (print_ada_task_info, display_current_task_id, task_command_1):
792 Adjust.
793 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
794 inferior_thread.
795 (breakpoint_kind): Adjust.
796 (remove_breakpoints_pid): Rename to ...
797 (remove_breakpoints_inf): ... this. Adjust to take an inferior
798 pointer. All callers adjusted.
799 (bpstat_clear_actions): Use inferior_thread.
800 (get_bpstat_thread): New.
801 (bpstat_do_actions): Use it.
802 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
803 to take a thread_info pointer. All callers adjusted.
804 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
805 (breakpoint_re_set_thread): Use inferior_thread.
806 * breakpoint.h (struct inferior): Forward declare.
807 (bpstat_stop_status): Update.
808 (remove_breakpoints_pid): Delete.
809 (remove_breakpoints_inf): New.
810 * bsd-uthread.c (bsd_uthread_target::wait)
811 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
812 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
813 (maint_btrace_packet_history_cmd)
814 (maint_btrace_clear_packet_history_cmd): Adjust.
815 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
816 inferior_thread.
817 * cli/cli-interp.c: Include "inferior.h".
818 * common/refcounted-object.h (struct
819 refcounted_object_ref_policy): New.
820 * compile/compile-object-load.c: Include gdbthread.h.
821 (store_regs): Use inferior_thread.
822 * corelow.c (core_target::close): Use current_inferior.
823 (core_target_open): Adjust to use first_thread_of_inferior and use
824 the current inferior.
825 * ctf.c (ctf_target::close): Adjust to use current_inferior.
826 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
827 <thread>: ... this new field. All references adjusted.
828 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
829 Take a thread_info pointer instead of a ptid_t.
830 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
831 (dummy_frame_discard, register_dummy_frame_dtor): Take a
832 thread_info pointer instead of a ptid_t.
833 * elfread.c: Include "inferior.h".
834 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
835 Use inferior_thread.
836 * eval.c (evaluate_subexp): Likewise.
837 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
838 inferior_thread.
839 * gdb_proc_service.h (struct thread_info): Forward declare.
840 (struct ps_prochandle) <ptid>: Delete, replaced by ...
841 <thread>: ... this new field. All references adjusted.
842 * gdbarch.h, gdbarch.c: Regenerate.
843 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
844 'thread' parameter. All implementations and callers adjusted.
845 * gdbthread.h (thread_info) <set_running>: New method.
846 (delete_thread, delete_thread_silent): Take a thread_info pointer
847 instead of a ptid.
848 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
849 (first_thread_of_process): Delete, replaced by ...
850 (first_thread_of_inferior): ... this new function. All callers
851 adjusted.
852 (any_live_thread_of_process): Delete, replaced by ...
853 (any_live_thread_of_inferior): ... this new function. All callers
854 adjusted.
855 (switch_to_thread, switch_to_no_thread): Declare.
856 (is_executing): Delete.
857 (enable_thread_stack_temporaries): Update comment.
858 <enable_thread_stack_temporaries>: Take a thread_info pointer
859 instead of a ptid_t. Incref the thread.
860 <~enable_thread_stack_temporaries>: Decref the thread.
861 <m_ptid>: Delete
862 <m_thr>: New.
863 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
864 (get_last_thread_stack_temporary)
865 (value_in_thread_stack_temporaries, can_access_registers_thread):
866 Take a thread_info pointer instead of a ptid_t. All callers
867 adjusted.
868 * infcall.c (get_call_return_value): Use inferior_thread.
869 (run_inferior_call): Work with thread pointers instead of ptid_t.
870 (call_function_by_hand_dummy): Work with thread pointers instead
871 of ptid_t. Use thread_info_ref.
872 * infcmd.c (proceed_thread_callback): Access thread's state
873 directly.
874 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
875 access thread's state directly.
876 (continue_command): Use inferior_thread.
877 (info_program_command): Use find_thread_ptid and access thread
878 state directly.
879 (proceed_after_attach_callback): Use thread state directly.
880 (notice_new_inferior): Take a thread_info pointer instead of a
881 ptid_t. All callers adjusted.
882 (exit_inferior): Take an inferior pointer instead of a pid. All
883 callers adjusted.
884 (exit_inferior_silent): New.
885 (detach_inferior): Delete.
886 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
887 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
888 (detach_inferior_command, kill_inferior_command): Use
889 find_inferior_id instead of valid_gdb_inferior_id and
890 gdb_inferior_id_to_pid.
891 (inferior_command): Use inferior and thread pointers.
892 * inferior.h (struct thread_info): Forward declare.
893 (notice_new_inferior): Take a thread_info pointer instead of a
894 ptid_t. All callers adjusted.
895 (detach_inferior): Delete declaration.
896 (exit_inferior, exit_inferior_silent): Take an inferior pointer
897 instead of a pid. All callers adjusted.
898 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
899 (valid_gdb_inferior_id): Delete.
900 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
901 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
902 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
903 ...
904 <inf>: ... this new field.
905 <step_ptid>: Delete, replaced by ...
906 <step_thread>: ... this new field.
907 (get_displaced_stepping_state): Take an inferior pointer instead
908 of a pid. All callers adjusted.
909 (displaced_step_in_progress_any_inferior): Adjust.
910 (displaced_step_in_progress_thread): Take a thread pointer instead
911 of a ptid_t. All callers adjusted.
912 (displaced_step_in_progress, add_displaced_stepping_state): Take
913 an inferior pointer instead of a pid. All callers adjusted.
914 (get_displaced_step_closure_by_addr): Adjust.
915 (remove_displaced_stepping_state): Take an inferior pointer
916 instead of a pid. All callers adjusted.
917 (displaced_step_prepare_throw, displaced_step_prepare)
918 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
919 All callers adjusted.
920 (start_step_over): Adjust.
921 (infrun_thread_ptid_changed): Remove bit updating ptids in the
922 displaced step queue.
923 (do_target_resume): Adjust.
924 (fetch_inferior_event): Use inferior_thread.
925 (context_switch, get_inferior_stop_soon): Take an
926 execution_control_state pointer instead of a ptid_t. All callers
927 adjusted.
928 (switch_to_thread_cleanup): Delete.
929 (stop_all_threads): Use scoped_restore_current_thread.
930 * inline-frame.c: Include "gdbthread.h".
931 (inline_state) <inline_state>: Take a thread pointer instead of a
932 ptid_t. All callers adjusted.
933 <ptid>: Delete, replaced by ...
934 <thread>: ... this new field.
935 (find_inline_frame_state): Take a thread pointer instead of a
936 ptid_t. All callers adjusted.
937 (skip_inline_frames, step_into_inline_frame)
938 (inline_skipped_frames, inline_skipped_symbol): Take a thread
939 pointer instead of a ptid_t. All callers adjusted.
940 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
941 (inline_skipped_frames, inline_skipped_symbol): Likewise.
942 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
943 pointers directly.
944 * linux-nat.c (get_detach_signal): Likewise.
945 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
946 (thread_db_notice_clone): Adjust.
947 (thread_db_find_new_threads_silently)
948 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
949 a thread pointer instead of a ptid_t. All callers adjusted.
950 * mi/mi-cmd-var.c: Include "inferior.h".
951 (mi_cmd_var_update_iter): Update to use thread pointers.
952 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
953 inferior directly.
954 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
955 out to ...
956 (mi_output_running): ... this new function.
957 (mi_on_resume_1): Adjust to use it.
958 (mi_user_selected_context_changed): Adjust to use inferior_thread.
959 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
960 directly.
961 (interrupt_thread_callback): : Adjust to use thread and inferior
962 pointers.
963 * proc-service.c: Include "gdbthread.h".
964 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
965 * progspace-and-thread.c: Include "inferior.h".
966 * progspace.c: Include "inferior.h".
967 * python/py-exitedevent.c (create_exited_event_object): Adjust to
968 hold a reference to an inferior_object.
969 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
970 inferior_thread.
971 * python/py-inferior.c (struct inferior_object): Give the type a
972 tag name instead of a typedef.
973 (python_on_normal_stop): No need to check if the current thread is
974 listed.
975 (inferior_to_inferior_object): Change return type to
976 inferior_object. All callers adjusted.
977 (find_thread_object): Delete, bits factored out to ...
978 (thread_to_thread_object): ... this new function.
979 * python/py-infthread.c (create_thread_object): Use
980 inferior_to_inferior_object.
981 (thpy_is_stopped): Use thread pointer directly.
982 (gdbpy_selected_thread): Use inferior_thread.
983 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
984 field, replaced with ...
985 <thread>: ... this new field. All users adjusted.
986 (btpy_insn_or_gap_new): Drop const.
987 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
988 callers adjusted.
989 * python/py-record.c: Include "gdbthread.h".
990 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
991 a ptid_t. All callers adjusted.
992 (gdbpy_current_recording): Use inferior_thread.
993 * python/py-record.h (recpy_record_object) <ptid>: Delete
994 field, replaced with ...
995 <thread>: ... this new field. All users adjusted.
996 (recpy_element_object) <ptid>: Delete
997 field, replaced with ...
998 <thread>: ... this new field. All users adjusted.
999 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
1000 a ptid_t. All callers adjusted.
1001 * python/py-threadevent.c: Include "gdbthread.h".
1002 (get_event_thread): Use thread_to_thread_object.
1003 * python/python-internal.h (struct inferior_object): Forward
1004 declare.
1005 (find_thread_object, find_inferior_object): Delete declarations.
1006 (thread_to_thread_object, inferior_to_inferior_object): New
1007 declarations.
1008 * record-btrace.c: Include "inferior.h".
1009 (require_btrace_thread): Use inferior_thread.
1010 (record_btrace_frame_sniffer)
1011 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
1012 (get_thread_current_frame): Use scoped_restore_current_thread and
1013 switch_to_thread.
1014 (get_thread_current_frame): Use thread pointer directly.
1015 (record_btrace_replay_at_breakpoint): Use thread's inferior
1016 pointer directly.
1017 * record-full.c: Include "inferior.h".
1018 * regcache.c: Include "gdbthread.h".
1019 (get_thread_arch_regcache): Use the inferior's address space
1020 directly.
1021 (get_thread_regcache, registers_changed_thread): New.
1022 * regcache.h (get_thread_regcache(thread_info *thread)): New
1023 overload.
1024 (registers_changed_thread): New.
1025 (remote_target) <remote_detach_1>: Swap order of parameters.
1026 (remote_add_thread): <remote_add_thread>: Return the new thread.
1027 (get_remote_thread_info(ptid_t)): New overload.
1028 (remote_target::remote_notice_new_inferior): Use thread pointers
1029 directly.
1030 (remote_target::process_initial_stop_replies): Use
1031 thread_info::set_running.
1032 (remote_target::remote_detach_1, remote_target::detach)
1033 (extended_remote_target::detach): Adjust.
1034 * stack.c (frame_show_address): Use inferior_thread.
1035 * target-debug.h (target_debug_print_thread_info_pp): New.
1036 * target-delegates.c: Regenerate.
1037 * target.c (default_thread_address_space): Delete.
1038 (memory_xfer_partial_1): Use current_inferior.
1039 (target_detach): Use current_inferior.
1040 (target_thread_address_space): Delete.
1041 (generic_mourn_inferior): Use current_inferior.
1042 * target.h (struct target_ops) <thread_address_space>: Delete.
1043 (target_thread_address_space): Delete.
1044 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
1045 pointers directly.
1046 (delete_thread_1, delete_thread, delete_thread_silent): Take a
1047 thread pointer instead of a ptid_t. Adjust all callers.
1048 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
1049 (first_thread_of_process): Delete, replaced by ...
1050 (first_thread_of_inferior): ... this new function. All callers
1051 adjusted.
1052 (any_thread_of_process): Rename to ...
1053 (any_thread_of_inferior): ... this, and take an inferior pointer.
1054 (any_live_thread_of_process): Rename to ...
1055 (any_live_thread_of_inferior): ... this, and take an inferior
1056 pointer.
1057 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1058 (value_in_thread_stack_temporaries)
1059 (get_last_thread_stack_temporary): Take a thread pointer instead
1060 of a ptid_t. Adjust all callers.
1061 (thread_info::set_running): New.
1062 (validate_registers_access): Use inferior_thread.
1063 (can_access_registers_ptid): Rename to ...
1064 (can_access_registers_thread): ... this, and take a thread
1065 pointer.
1066 (print_thread_info_1): Adjust to compare thread pointers instead
1067 of ptids.
1068 (switch_to_no_thread, switch_to_thread): Make extern.
1069 (scoped_restore_current_thread::~scoped_restore_current_thread):
1070 Use m_thread pointer directly.
1071 (scoped_restore_current_thread::scoped_restore_current_thread):
1072 Use inferior_thread.
1073 (thread_command): Use thread pointer directly.
1074 (thread_num_make_value_helper): Use inferior_thread.
1075 * top.c (execute_command): Use inferior_thread.
1076 * tui/tui-interp.c: Include "inferior.h".
1077 * varobj.c (varobj_create): Use inferior_thread.
1078 (value_of_root_1): Use find_thread_global_id instead of
1079 global_thread_id_to_ptid.
1080
33bab475
AH
10812018-06-21 Alan Hayward <alan.hayward@arm.com>
1082
1083 * regcache.c (readable_regcache::read_part): Avoid memcpy when
1084 possible.
1085 (regcache::write_part): Likewise.
1086 (readable_regcache::cooked_read_part): Update comment.
1087 (readable_regcache::cooked_write_part): Likewise.
1088 * regcache.h: (readable_regcache::read_part): Likewise.
1089 (regcache::write_part): Likewise.
1090
8363f9d5
RB
10912018-06-21 Richard Bunt <richard.bunt@arm.com>
1092 Dirk Schubert <dirk.schubert@arm.com>
1093
1094 * aarch64-linux-nat.c (post_attach): New.
1095 (aarch64_linux_nat_target::post_attach): Override post_attach to
1096 record the number of hardware debug registers.
1097
0d0b0ea2
TT
10982018-06-20 Tom Tromey <tom@tromey.com>
1099
1100 * python/py-param.c (add_setshow_generic): Make parameters const.
1101 (parmpy_init): Update.
1102
302abd6e
SM
11032018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
1104
1105 * regcache.h (regcache_cooked_read_ftype): Rename to...
1106 (register_read_ftype): ...this, change type to function_view.
1107 (class reg_buffer) <save>: Remove src parameter.
1108 (readonly_detached_regcache) <readonly_detached_regcache>: Make
1109 parameter non-const in first overload. Remove src parameter in
1110 second overload.
1111 * regcache.c (do_cooked_read): Remove.
1112 (readonly_detached_regcache::readonly_detached_regcache): Make
1113 parameter non-const, adjust call to other constructor.
1114 (reg_buffer::save): Remove src parameter.
1115 * frame.c (do_frame_register_read): Remove.
1116 (frame_save_as_regcache): Use lambda function.
1117 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
1118 parameter to ppu2spu_data *.
1119 (ppu2spu_sniffer): Use lambda function.
1120
19f3f25f
SM
11212018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 * record-full.c (record_full_target::insert_breakpoint): Remove
1124 "struct" keyword, add const.
1125
d0ac1c44
SM
11262018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1127
1128 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
1129 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
1130 * configure.ac: Remove AC_PREREQ, add missing quoting.
1131 * gnulib/configure.ac: Modernize usage of
1132 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
1133 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
1134 (AUTOMAKE_VERSION): Bump to 1.15.1.
1135 * configure: Re-generate.
1136 * config.in: Re-generate.
1137 * aclocal.m4: Re-generate.
1138 * gnulib/aclocal.m4: Re-generate.
1139 * gnulib/config.in: Re-generate.
1140 * gnulib/configure: Re-generate.
1141 * gnulib/import/Makefile.in: Re-generate.
1142
6ae50267
PA
11432018-06-19 Pedro Alves <palves@redhat.com>
1144
1145 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
1146 (lookup_minimal_symbol_by_pc_section): ... here with
1147 gdb_assert_not_reached added.
1148
61b04dd0
PA
11492018-06-19 Pedro Alves <palves@redhat.com>
1150
1151 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
1152 parameter with a block parameter. Compare location's block symbol
1153 with the frame's block instead of addresses.
1154 (skip_inline_frames): Pass the current block instead of the
1155 frame's address. Break out as soon as we determine the frame
1156 should not be skipped.
1157
f709fabb
TT
11582018-06-18 Tom Tromey <tom@tromey.com>
1159
1160 * solib-aix.c (solib_aix_get_section_offsets): Return
1161 unique_xmalloc_ptr.
1162 (solib_aix_solib_create_inferior_hook): Update.
1163
668eb2f0
TT
11642018-06-18 Tom Tromey <tom@tromey.com>
1165
1166 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
1167
309822ca
TT
11682018-06-18 Tom Tromey <tom@tromey.com>
1169
1170 * solib-frv.c (frv_relocate_main_executable): Use
1171 unique_xmalloc_ptr.
1172 * solib-dsbt.c (dsbt_relocate_main_executable): Use
1173 unique_xmalloc_ptr.
1174
06424eac
TT
11752018-06-18 Tom Tromey <tom@tromey.com>
1176
1177 * objfiles.h (inhibit_section_map_updates): Update.
1178 (resume_section_map_updates, resume_section_map_updates_cleanup):
1179 Remove.
1180 * solib-svr4.c (svr4_handle_solib_event): Update.
1181 * objfiles.c (inhibit_section_map_updates): Return
1182 scoped_restore_tmpl<int>.
1183 (resume_section_map_updates, resume_section_map_updates_cleanup):
1184 Remove.
1185
b4be9fad
TT
11862018-06-18 Tom Tromey <tom@tromey.com>
1187
1188 * valprint.h (read_string): Update.
1189 * valprint.c (read_string): Change type of "buffer".
1190 (val_print_string): Update.
1191 * python/py-value.c (valpy_string): Update.
1192 * language.h (struct language_defn) <la_get_string>: Change
1193 type of "buffer".
1194 (default_get_string, c_get_string): Update.
1195 * language.c (default_get_string): Change type of "buffer".
1196 * guile/scm-value.c (gdbscm_value_to_string): Update.
1197 * c-lang.c (c_get_string): Change type of "buffer".
1198
3f0dbd67
TT
11992018-06-18 Tom Tromey <tom@tromey.com>
1200
1201 * ser-mingw.c (struct pipe_state_destroyer): New.
1202 (pipe_state_up): New typedef.
1203 (cleanup_pipe_state): Remove.
1204 (pipe_windows_open): Use pipe_state_up. Don't release argv.
1205
69d340c6
TT
12062018-06-18 Tom Tromey <tom@tromey.com>
1207
1208 * rust-lang.h (rust_yyerror): Don't declare.
1209 * rust-lang.c (rust_language_defn): Update.
1210 * rust-exp.y (yyerror): Now static.
1211 * parse.c (parse_exp_in_context_1): Update.
1212 * p-lang.h (p_yyerror): Don't declare.
1213 * p-lang.c (p_language_defn): Update.
1214 * p-exp.y (yyerror): Now static.
1215 * opencl-lang.c (opencl_language_defn): Update.
1216 * objc-lang.c (objc_language_defn): Update.
1217 * m2-lang.h (m2_yyerror): Don't declare.
1218 * m2-lang.c (m2_language_defn): Update.
1219 * m2-exp.y (yyerror): Now static.
1220 * language.h (struct language_defn) <la_error>: Remove.
1221 * language.c (unk_lang_error): Remove.
1222 (unknown_language_defn, auto_language_defn): Remove.
1223 * go-lang.h (go_yyerror): Don't declare.
1224 * go-lang.c (go_language_defn): Update.
1225 * go-exp.y (yyerror): Now static.
1226 * f-lang.h (f_yyerror): Don't declare.
1227 * f-lang.c (f_language_defn): Update.
1228 * f-exp.y (yyerror): Now static.
1229 * d-lang.h (d_yyerror): Don't declare.
1230 * d-lang.c (d_language_defn): Update.
1231 * d-exp.y (yyerror): Now static.
1232 * c-lang.h (c_yyerror): Don't declare.
1233 * c-lang.c (c_language_defn, cplus_language_defn)
1234 (asm_language_defn, minimal_language_defn): Update.
1235 * c-exp.y (yyerror): Now static.
1236 * ada-lang.h (ada_yyerror): Don't declare.
1237 * ada-lang.c (ada_language_defn): Update.
1238 * ada-exp.y (yyerror): Now static.
1239
e9902bfc
AH
12402018-06-18 Alan Hayward <alan.hayward@arm.com>
1241
1242 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
1243 (store_sveregs_to_thread): Likewise.
1244 (aarch64_linux_fetch_inferior_registers): Check for SVE.
1245 (aarch64_linux_store_inferior_registers): Likewise.
1246 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
1247 function.
1248 (aarch64_sve_regs_copy_to_regcache): Likewise.
1249 (aarch64_sve_regs_copy_from_regcache): Likewise.
1250 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
1251 declaration.
1252 (aarch64_sve_regs_copy_to_regcache): Likewise.
1253 (aarch64_sve_regs_copy_from_regcache): Likewise.
1254 (sve_context): Structure from Linux headers.
1255 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
1256 (SVE_SIG_ZREG_SIZE): Likewise.
1257 (SVE_SIG_PREG_SIZE): Likewise.
1258 (SVE_SIG_FFR_SIZE): Likewise.
1259 (SVE_SIG_REGS_OFFSET): Likewise.
1260 (SVE_SIG_ZREGS_OFFSET): Likewise.
1261 (SVE_SIG_ZREG_OFFSET): Likewise.
1262 (SVE_SIG_ZREGS_SIZE): Likewise.
1263 (SVE_SIG_PREGS_OFFSET): Likewise.
1264 (SVE_SIG_PREG_OFFSET): Likewise.
1265 (SVE_SIG_PREGS_SIZE): Likewise.
1266 (SVE_SIG_FFR_OFFSET): Likewise.
1267 (SVE_SIG_REGS_SIZE): Likewise.
1268 (SVE_SIG_CONTEXT_SIZE): Likewise.
1269 (SVE_PT_REGS_MASK): Likewise.
1270 (SVE_PT_REGS_FPSIMD): Likewise.
1271 (SVE_PT_REGS_SVE): Likewise.
1272 (SVE_PT_VL_INHERIT): Likewise.
1273 (SVE_PT_VL_ONEXEC): Likewise.
1274 (SVE_PT_REGS_OFFSET): Likewise.
1275 (SVE_PT_FPSIMD_OFFSET): Likewise.
1276 (SVE_PT_FPSIMD_SIZE): Likewise.
1277 (SVE_PT_SVE_ZREG_SIZE): Likewise.
1278 (SVE_PT_SVE_PREG_SIZE): Likewise.
1279 (SVE_PT_SVE_FFR_SIZE): Likewise.
1280 (SVE_PT_SVE_FPSR_SIZE): Likewise.
1281 (SVE_PT_SVE_FPCR_SIZE): Likewise.
1282 (__SVE_SIG_TO_PT): Likewise.
1283 (SVE_PT_SVE_OFFSET): Likewise.
1284 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
1285 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
1286 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
1287 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
1288 (SVE_PT_SVE_PREG_OFFSET): Likewise.
1289 (SVE_PT_SVE_PREGS_SIZE): Likewise.
1290 (SVE_PT_SVE_FFR_OFFSET): Likewise.
1291 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
1292 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
1293 (SVE_PT_SVE_SIZE): Likewise.
1294 (SVE_PT_SIZE): Likewise.
1295 (HAS_SVE_STATE): New define.
1296
17a1cc89
AH
12972018-06-18 Alan Hayward <alan.hayward@arm.com>
1298
1299 * nat/aarch64-sve-linux-sigcontext.h: New file.
1300 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
1301 new files.
1302 (SVE_VQ_MIN): Likewise.
1303 (SVE_VQ_MAX): Likewise.
1304 (SVE_VL_MIN): Likewise.
1305 (SVE_VL_MAX): Likewise.
1306 (SVE_NUM_ZREGS): Likewise.
1307 (SVE_NUM_PREGS): Likewise.
1308 (sve_vl_valid): Likewise.
1309 (struct user_sve_header): Likewise.
1310
7010835a
AB
13112018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
1312 Richard Bunt <Richard.Bunt@arm.com>
1313
1314 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
1315 was requested by GDB.
1316
479b3ef4
TV
13172018-06-15 Tom de Vries <tdevries@suse.de>
1318
1319 * MAINTAINERS (Write After Approval): Add Tom de Vries.
1320
8199b8f4
SM
13212018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
1322
1323 * gnulib/update-gnulib.sh: Print expected versions of
1324 autoconf/aclocal.
1325
55c748a1
SM
13262018-06-14 Simon Marchi <simon.marchi@ericsson.com>
1327
1328 * arch-utils.c (default_type_align): Use type_length_units.
1329 * gdbtypes.c (type_align): Use type_length_units.
1330
87a8eca7
PW
13312018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1332
1333 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
1334 of 'define' command.
1335
5d9a0608
TV
13362018-06-14 Tom de Vries <tdevries@suse.de>
1337
1338 PR cli/22573
1339 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
1340 get_no_prettyformat_print_options.
1341
ab89b5a5
SM
13422018-06-13 Simon Marchi <simon.marchi@ericsson.com>
1343
1344 * sparc-nat.h: Include target.h.
1345 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
1346 <fetch_registers>: Remove this argument in function call.
1347 <store_registers>: Remove this argument in function call, remove
1348 extra semicolon.
1349 <low_forget_process>: Call sparc64_forget_process instead of
1350 sparc_forget_process.
1351
62c808ae
RO
13522018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1353
1354 * procfs.c (_initialize_procfs): Use add_inf_child_target.
1355 (procfs_target::make_corefile_notes): Adjust to new
1356 target_read_alloc return type.
1357
1840d81a
AB
13582018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1359 Stephen Roberts <stephen.roberts@arm.com>
1360
1361 PR gdb/22882
1362 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
1363 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
1364 Move should_notify_stop local into more inner scope.
1365
9516f85a
AB
13662018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1367 Stephen Roberts <stephen.roberts@arm.com>
1368
1369 PR gdb/22882
1370 * infrun.c (resume_1): Add call to mark_async_event_handler.
1371
defd2172
AB
13722018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1373
1374 * infrun.c (do_target_wait): Change old version of $pc printed.
1375
7b23e087
SM
13762018-06-11 Simon Marchi <simon.marchi@ericsson.com>
1377
1378 * dwarf2read.c (read_index_from_section): Rename to...
1379 (read_gdb_index_from_section): ... this, update all callers.
1380 (dwarf2_read_index): Rename to...
1381 (dwarf2_read_gdb_index): ... this, update all callers.
1382
69c67a0b
JDA
13832018-06-11 John David Anglin <danglin@gcc.gnu.org>
1384
1385 * gdb/hppa-linux-nat.c
1386 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
1387 hppa_linux_nat_target::fetch_registers.
1388
65d4cada
AH
13892018-06-11 Alan Hayward <alan.hayward@arm.com>
1390
1391 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
1392 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
1393 (AARCH64_DWARF_SVE_FFR): Likewise.
1394 (AARCH64_DWARF_SVE_P0): Likewise.
1395 (AARCH64_DWARF_SVE_Z0): Likewise.
1396
f868386e
AH
13972018-06-11 Alan Hayward <alan.hayward@arm.com>
1398
1399 * common/common-regcache.h (raw_compare): New function.
1400 * regcache.c (regcache::raw_compare): Likewise.
1401 * regcache.h (regcache::raw_compare): New declaration.
1402
9c861883
AH
14032018-06-11 Alan Hayward <alan.hayward@arm.com>
1404
1405 * common/common-regcache.h (reg_buffer_common): New structure.
1406 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
1407 (reg_buffer::raw_supply): Likewise.
1408 (reg_buffer::raw_supply_integer): Likewise.
1409 (reg_buffer::raw_supply_zeroed): Likewise.
1410 (reg_buffer::raw_collect): Likewise.
1411 (reg_buffer::raw_collect_integer): Likewise.
1412 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
1413 (reg_buffer::raw_supply): Likewise.
1414 (reg_buffer::raw_supply_integer): Likewise.
1415 (reg_buffer::raw_supply_zeroed): Likewise.
1416 (reg_buffer::raw_collect): Likewise.
1417 (reg_buffer::raw_collect_integer): Likewise.
1418
953edf2b
TT
14192018-06-10 Tom Tromey <tom@tromey.com>
1420
1421 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
1422 (class remote_state) <stop_reply_queue>: Now std::vector.
1423 (remote_state::~remote_state)
1424 (remote_target::stop_reply_queue_length): Update.
1425 (struct queue_iter_param, remove_child_of_pending_fork)
1426 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
1427 (check_pending_event_prevents_wildcard_vcont_callback)
1428 (remove_stop_reply_for_inferior)
1429 (remove_stop_reply_of_remote_state)
1430 (remote_notif_remove_once_on_match)
1431 (stop_reply_match_ptid_and_ws)
1432 (remote_kill_child_of_pending_fork): Remove.
1433 (remote_target::remove_new_fork_children)
1434 (remote_target::check_pending_events_prevent_wildcard_vcont)
1435 (remote_target::discard_pending_stop_replies)
1436 (remote_target::discard_pending_stop_replies_in_queue)
1437 (remote_target::remote_notif_remove_queued_reply)
1438 (remote_target::queued_stop_reply)
1439 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
1440 (remote_target::wait, remote_target::kill_new_fork_children)
1441 (remote_target::async): Update.
1442
1ddbba9d
TT
14432018-06-10 Tom Tromey <tom@tromey.com>
1444
1445 * record-full.c (record_full_arch_list_cleanups): Remove.
1446 (record_full_message): Use try/catch.
1447 (record_full_wait_cleanups): Remove.
1448 (record_full_wait_1): Use try/catch.
1449 (record_full_restore): Likewise.
1450
219605fd
TT
14512018-06-10 Tom Tromey <tom@tromey.com>
1452
1453 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
1454 declare VEC. Add constructor.
1455 <in_target_beneath>: Now bool.
1456 (record_full_breakpoints): Now a std::vector, static.
1457 (record_full_sync_record_breakpoints)
1458 (record_full_init_record_breakpoints)
1459 (record_full_target::insert_breakpoint)
1460 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
1461
71b73764
SM
14622018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
1463
1464 * dwarf2read.c (process_cu_includes): Remove struct keyword.
1465 * serial.c (serial_interface_lookup): Remove struct keyword.
1466
4360561f
TT
14672018-06-10 Tom Tromey <tom@tromey.com>
1468
1469 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
1470 method.
1471 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
1472 a method.
1473 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
1474 method.
1475 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
1476 "beneath" as a method.
1477 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
1478 Use "beneath" as a method.
1479
d14b92bf
TT
14802018-06-10 Tom Tromey <tom@tromey.com>
1481
1482 * tracefile.c (struct trace_file_writer_deleter): New.
1483 <operator()>: Rename from trace_file_writer_xfree.
1484 (trace_file_writer_up): New typedef.
1485 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
1486
835dcf92
SM
14872018-06-09 Simon Marchi <simon.marchi@ericsson.com>
1488
1489 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
1490 <m_registers, m_register_status>: Change type to
1491 std::unique_ptr.
1492 * regcache.c (reg_buffer::reg_buffer): Use new instead of
1493 XCNEWVEC.
1494
aac0d564
SM
14952018-06-09 Simon Marchi <simon.marchi@ericsson.com>
1496
1497 * common/common-regcache.h (enum register_status): Add
1498 underlying type "signed char".
1499 * regcache.h (reg_buffer) <m_register_status>: Change type to
1500 register_status *.
1501 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
1502 register_status instead of signed char.
1503 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
1504 (reg_buffer::get_register_status): Remove cast.
1505 (readable_regcache::raw_read): Remove cast.
1506 (readable_regcache::cooked_read): Remove cast.
1507
77ad7394
TT
15082018-06-09 Tom Tromey <tom@tromey.com>
1509
1510 * source.c (reverse_search_command, forward_search_command): Use
1511 scoped_fd.
1512
191cca63
TT
15132018-06-09 Tom Tromey <tom@tromey.com>
1514
1515 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
1516 (serial_ops_list): Now static, std::vector.
1517 (serial_interface_lookup, serial_add_interface): Update.
1518
c5d0225d
TT
15192018-06-09 Tom Tromey <tom@tromey.com>
1520
1521 * dwarf2read.c (process_cu_includes): Update.
1522 (process_full_comp_unit): Update.
1523 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
1524 std::vector.
1525
aeab5128
PK
15262018-06-08 Paul Koning <paul_koning@dell.com>
1527
1528 PR gdb/23252
1529
1530 * python/python.c (do_start_initialization):
1531 Avoid call to internal Python API.
1532 (init__gdb_module): New function.
1533
5045b3d7
GB
15342018-06-08 Gary Benson <gbenson@redhat.com>
1535
1536 * linux-thread-db.c (valprint.h): New include.
1537 (struct check_thread_db_info): New structure.
1538 (check_thread_db_on_load, tdb_testinfo): New static globals.
1539 (check_thread_db, check_thread_db_callback): New functions.
1540 (try_thread_db_load_1): Run integrity checks if requested.
1541 (maintenance_check_libthread_db): New function.
1542 (_initialize_thread_db): Register "maint check libthread-db"
1543 and "maint set/show check-libthread-db".
1544 * NEWS: Mention the above new commands.
1545
2f4f025f
TT
15462018-06-08 Tom Tromey <tom@tromey.com>
1547
1548 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
1549 now a method.
1550
343b0027
TT
15512018-06-08 Tom Tromey <tom@tromey.com>
1552
1553 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
1554
8dcc53b3
TT
15552018-06-08 Tom Tromey <tom@tromey.com>
1556
1557 * common/btrace-common.h (struct btrace_data): Add constructor,
1558 destructor, move assignment operator.
1559 <empty, clear, fini>: New methods.
1560 <format>: Initialize.
1561 (btrace_data_init, btrace_data_fini, btrace_data_clear)
1562 (btrace_data_empty): Don't declare.
1563 * common/btrace-common.c (btrace_data_init): Remove.
1564 (btrace_data::fini): Rename from btrace_data_fini.
1565 (btrace_data::empty): Rename from btrace_data_empty.
1566 (btrace_data::clear): Rename from btrace_data_clear. Return
1567 bool.
1568 * btrace.h (make_cleanup_btrace_data): Don't declare.
1569 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
1570 (parse_xml_btrace): Update.
1571 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
1572 (maint_btrace_clear_packet_history_cmd): Update.
1573
a1740ee1
PA
15742018-06-07 Pedro Alves <palves@redhat.com>
1575
1576 * target.h (target_ops) <beneath>: Now a method. All references
1577 updated.
1578 (class target_stack): New.
1579 * target.c (g_target_stack): New.
1580 (g_current_top_target): Delete.
1581 (current_top_target): Get the top target out of g_target_stack.
1582 (target_stack::push, target_stack::unpush): New.
1583 (push_target, unpush_target): Reimplement.
1584 (target_is_pushed): Reimplement in terms of g_target_stack.
1585 (target_ops::beneath, target_stack::find_beneath): New.
1586
d6ca69cd
PA
15872018-06-07 Pedro Alves <palves@redhat.com>
1588
1589 * target.h (find_target_beneath): Delete declaration.
1590 * target.c (find_target_beneath): Delete definition.
1591 * aix-thread.c: All callers of find_target_beneath adjusted to
1592 call target_ops::beneath instead.
1593 * bsd-uthread.c: Likewise.
1594 * linux-thread-db.c: Likewise.
1595 * ravenscar-thread.c: Likewise.
1596 * sol-thread.c: Likewise.
1597 * spu-multiarch.c: Likewise.
1598
b6a8c27b
PA
15992018-06-07 Pedro Alves <palves@redhat.com>
1600
1601 * target.h (target_ops) <beneath>: Now a method. All references
1602 updated.
1603 (target_ops) <m_beneath>: New.
1604 * target.c (target_ops::beneath): New.
1605 * corelow.c: Adjust all references to target_ops::beneath.
1606 * linux-thread-db.c: Likewise.
1607 * make-target-delegates: Likewise.
1608 * record-btrace.c: Likewise.
1609 * record-full.c: Likewise.
1610 * remote.c: Likewise.
1611 * target.c: Likewise.
1612 * target-delegates.c: Regenerate.
1613
8b88a78e
PA
16142018-06-07 Pedro Alves <palves@redhat.com>
1615
1616 * target.h (target_stack): Delete.
1617 (current_top_target): Declare function.
1618 * target.c (target_stack): Delete.
1619 (g_current_top_target): New.
1620 (current_top_target): New function.
1621 * auxv.c: Use current_top_target instead of target_stack
1622 throughout.
1623 * avr-tdep.c: Likewise.
1624 * breakpoint.c: Likewise.
1625 * corefile.c: Likewise.
1626 * elfread.c: Likewise.
1627 * eval.c: Likewise.
1628 * exceptions.c: Likewise.
1629 * frame.c: Likewise.
1630 * gdbarch-selftests.c: Likewise.
1631 * gnu-v3-abi.c: Likewise.
1632 * ia64-tdep.c: Likewise.
1633 * ia64-vms-tdep.c: Likewise.
1634 * infcall.c: Likewise.
1635 * infcmd.c: Likewise.
1636 * infrun.c: Likewise.
1637 * linespec.c: Likewise.
1638 * linux-tdep.c: Likewise.
1639 * minsyms.c: Likewise.
1640 * ppc-linux-nat.c: Likewise.
1641 * ppc-linux-tdep.c: Likewise.
1642 * procfs.c: Likewise.
1643 * regcache.c: Likewise.
1644 * remote.c: Likewise.
1645 * rs6000-tdep.c: Likewise.
1646 * s390-linux-nat.c: Likewise.
1647 * s390-tdep.c: Likewise.
1648 * solib-aix.c: Likewise.
1649 * solib-darwin.c: Likewise.
1650 * solib-dsbt.c: Likewise.
1651 * solib-spu.c: Likewise.
1652 * solib-svr4.c: Likewise.
1653 * solib-target.c: Likewise.
1654 * sparc-tdep.c: Likewise.
1655 * sparc64-tdep.c: Likewise.
1656 * spu-tdep.c: Likewise.
1657 * symfile.c: Likewise.
1658 * symtab.c: Likewise.
1659 * target-descriptions.c: Likewise.
1660 * target-memory.c: Likewise.
1661 * target.c: Likewise.
1662 * target.h: Likewise.
1663 * tracefile-tfile.c: Likewise.
1664 * tracepoint.c: Likewise.
1665 * valops.c: Likewise.
1666 * valprint.c: Likewise.
1667 * value.c: Likewise.
1668 * windows-tdep.c: Likewise.
1669 * mi/mi-main.c: Likewise.
1670
c7110220
TT
16712018-06-07 Tom Tromey <tom@tromey.com>
1672
1673 * valprint.h (build_address_symbolic): Declare.
1674 * printcmd.c (print_address_symbolic): Update.
1675 (build_address_symbolic): Change "name" and "filename" to
1676 std::string.
1677 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1678 Update.
1679 * defs.h (build_address_symbolic): Remove declaration.
1680
63bad7b6
AH
16812018-06-07 Alan Hayward <alan.hayward@arm.com>
1682
1683 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
1684 (aarch64_vnv_type): Add function.
1685 (aarch64_pseudo_register_name): Add V regs for SVE.
1686 (aarch64_pseudo_register_type): Likewise.
1687 (aarch64_pseudo_register_reggroup_p): Likewise.
1688 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
1689 (aarch64_pseudo_read_value): Add V regs for SVE.
1690 (aarch64_pseudo_write_2): Use V0 offset for SVE
1691 (aarch64_pseudo_write): Add V regs for SVE.
1692 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
1693
13e3c608
SDJ
16942018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
1695
1696 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
1697 (sve_vl_from_vq): Likewise.
1698
c61b06a1
TT
16992018-06-05 Tom Tromey <tom@tromey.com>
1700
1701 * cli/cli-cmds.c (show_version): Update.
1702 * top.c (print_gdb_version): Add "interactive" parameter.
1703 Update.
1704 * main.c (captured_main_1): Update.
1705 * top.h (print_gdb_version): Add "interactive" parameter and a
1706 comment.
1707
115f7325
DM
17082018-06-05 David Malcolm <dmalcolm@redhat.com>
1709
1710 * common/enum-flags.h: Add trailing semicolon to example in
1711 comment.
1712
eb6af809
TT
17132018-06-05 Tom Tromey <tom@tromey.com>
1714
1715 PR cli/12326:
1716 * NEWS: Add entry about pager.
1717 * utils.c (pagination_disabled_for_command): New global.
1718 (prompt_for_continue): Allow "c" response to prompt.
1719 (reinitialize_more_filter): Clear
1720 pagination_disabled_for_command.
1721 (fputs_maybe_filtered): Check pagination_disabled_for_command.
1722
54d343a2
TT
17232018-06-04 Tom Tromey <tom@tromey.com>
1724
1725 * ada-lang.h (ada_lookup_symbol_list): Update.
1726 * ada-lang.c (resolve_subexp): Update.
1727 (symbols_are_identical_enums): Change type of syms. Remove nsyms
1728 parameter.
1729 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
1730 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
1731 results parameter to std::vector.
1732 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
1733 Update.
1734 * ada-exp.y (block_lookup): Update.
1735 (select_possible_type_sym): Change type of syms. Remove nsyms
1736 parameter.
1737 (write_var_or_type, write_name_assoc): Update.
1738
178d6a63
JB
17392018-06-04 Joel Brobecker <brobecker@adacore.com>
1740
1741 * windows-nat.c (windows_nat_target::xfer_partial): Return
1742 TARGET_XFER_E_IO if we need to delegate to the target beneath
1743 but BENEATH is NULL.
1744
baf00c2d
SM
17452018-06-04 Simon Marchi <simon.marchi@ericsson.com>
1746
1747 * Makefile.in (config.status): Add configure.nat as a
1748 dependency.
1749
214b073c
TT
17502018-06-04 Tom Tromey <tom@tromey.com>
1751
1752 * cp-name-parser.y (cpname_state): Add method declarations.
1753 (HANDLE_QUAL): Update.
1754 (cpname_state::d_grab, cpname_state::fill_comp)
1755 (cpname_state::make_operator, cpname_state::make_dtor)
1756 (cpname_state::make_builtin_type, cpname_state::make_name)
1757 (cpname_state::d_qualify, cpname_state::d_int_type)
1758 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
1759 (%union): Move earlier.
1760
62b74cb8
AH
17612018-06-04 Alan Hayward <alan.hayward@arm.com>
1762
1763 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
1764
3c5cd5c3
AH
17652018-06-04 Alan Hayward <alan.hayward@arm.com>
1766
1767 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
1768 (aarch64_pseudo_write_1): Likewise.
1769 (aarch64_pseudo_read_value): Use helper.
1770 (aarch64_pseudo_write): Likewise.
1771
59f413d5
PA
17722018-06-04 Pedro Alves <palves@redhat.com>
1773
1774 * darwin-nat.c (darwin_ops): Delete.
1775 (darwin_attach_pid): Use get_native_target.
1776
1332a140
AH
17772018-06-04 Alan Hayward <alan.hayward@arm.com>
1778
1779 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
1780 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
1781
ba2d2bb2
AH
17822018-06-04 Alan Hayward <alan.hayward@arm.com>
1783
1784 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
1785 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
1786 (aarch64_gdbarch_init): Check for SVE.
1787 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
1788
17892018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
1790
1791 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
1792 * aarch64-tdep.h (aarch64_read_description): Likewise.
1793 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1794 * arch/aarch64.h (aarch64_create_target_description): Likewise.
1795 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
1796 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
1797 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
1798
41c60b4b
SM
17992018-06-02 Simon Marchi <simon.marchi@ericsson.com>
1800
1801 * value.c (value_fetch_lazy_bitfield): New.
1802 (value_fetch_lazy_memory): New.
1803 (value_fetch_lazy_register): New.
1804 (value_fetch_lazy): Factor out to smaller functions.
1805
7b640f72
TT
18062018-06-01 Tom Tromey <tom@tromey.com>
1807
1808 * cp-name-parser.y (backslashable, represented): Now const.
1809
98e69eb3
TT
18102018-06-01 Tom Tromey <tom@tromey.com>
1811
1812 * cp-name-parser.y: Include parser-defs.h.
1813 (parser_fprintf): Remove declaration.
1814
49265499
TT
18152018-06-01 Tom Tromey <tom@tromey.com>
1816
1817 * cp-name-parser.y: Use %pure-parser, %lex-param, and
1818 %parse-param.
1819 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
1820 (global_result): Remove globals.
1821 (struct cpname_state): New.
1822 (yyparse): Don't declare.
1823 (yylex, yyerror): Move declarations after %union.
1824 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
1825 (make_name): Add state parameter.
1826 Update all callers.
1827 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
1828 parameter.
1829 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
1830 Update.
1831 (yylex): Add lvalp, state parameters.
1832 (yyerror): Add state parameter.
1833 (cp_demangled_name_to_comp): Update.
1834
55b6c984
TT
18352018-06-01 Tom Tromey <tom@tromey.com>
1836
1837 * cp-name-parser.y (parser_fprintf): Declare.
1838 (GDB_YY_REMAP_PREFIX): Define.
1839 Include yy-remap.h. Don't redefine yy* identifiers.
1840
3513a6bb
TT
18412018-06-01 Tom Tromey <tom@tromey.com>
1842
1843 * python/py-type.c (typy_legacy_template_argument): Update.
1844 * cp-support.h (cp_demangled_name_to_comp): Update.
1845 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
1846 parameter to be a "std::string *".
1847 (main): Update.
1848
e9cb46ab
L
18492018-06-01 H.J. Lu <hongjiu.lu@intel.com>
1850
1851 * ada-lex.l: Include "diagnostics.h" instead of
1852 "common/diagnostics.h".
1853 * unittests/environ-selftests.c: Likewise.
1854 * common/diagnostics.h: Moved to ../include.
1855
8e817061
JB
18562018-06-01 Joel Brobecker <brobecker@adacore.com>
1857
1858 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
1859 to language_mode_manual while calling breakpoint_re_set_one.
1860
a737d952
TT
18612018-06-01 Tom Tromey <tom@tromey.com>
1862
1863 * valops.c (value_cast_structs, destructor_name_p): Update.
1864 * symtab.c (gdb_mangle_name): Update.
1865 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
1866 Update.
1867 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
1868 (pascal_object_print_value_fields, pascal_object_print_value):
1869 Update.
1870 * p-typeprint.c (pascal_type_print_derivation_info): Update.
1871 * linespec.c (find_methods): Update.
1872 * gdbtypes.h (type_name_no_tag): Remove.
1873 (type_name_or_error): Rename from type_name_no_tag_or_error.
1874 * gdbtypes.c (type_name_no_tag): Remove.
1875 (type_name_or_error): Rename from type_name_no_tag_or_error.
1876 (lookup_struct_elt_type, check_typedef): Update.
1877 * expprint.c (print_subexp_standard): Update.
1878 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
1879 * d-namespace.c (d_lookup_nested_symbol): Update.
1880 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
1881 (cp_print_class_member): Update.
1882 * cp-namespace.c (cp_lookup_nested_symbol): Update.
1883 * completer.c (add_struct_fields): Update.
1884 * c-typeprint.c (cp_type_print_derivation_info)
1885 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
1886 Update.
1887 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
1888 (ada_prefer_type, ada_is_exception_sym): Update.
1889
e86ca25f
TT
18902018-06-01 Tom Tromey <tom@tromey.com>
1891
1892 * valops.c (enum_constant_from_type, value_namespace_elt)
1893 (value_maybe_namespace_elt): Update.
1894 * valarith.c (find_size_for_pointer_math): Update.
1895 * target-descriptions.c (make_gdb_type): Update.
1896 * symmisc.c (print_symbol): Update.
1897 * stabsread.c (define_symbol, read_type)
1898 (complain_about_struct_wipeout, add_undefined_type)
1899 (cleanup_undefined_types_1): Update.
1900 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
1901 (rust_range_type_p, val_print_struct, rust_print_struct_def)
1902 (rust_internal_print_type, rust_composite_type)
1903 (rust_evaluate_funcall, rust_evaluate_subexp)
1904 (rust_inclusive_range_type_p): Update.
1905 * python/py-type.c (typy_get_tag): Update.
1906 * p-typeprint.c (pascal_type_print_base): Update.
1907 * mdebugread.c (parse_symbol, parse_type): Update.
1908 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
1909 Update.
1910 * guile/scm-type.c (gdbscm_type_tag): Update.
1911 * go-lang.c (sixg_string_p): Update.
1912 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
1913 Update.
1914 * gdbtypes.h (struct main_type) <tag_name>: Remove.
1915 (TYPE_TAG_NAME): Remove.
1916 * gdbtypes.c (type_name_no_tag): Simplify.
1917 (check_typedef, check_types_equal, recursive_dump_type)
1918 (copy_type_recursive, arch_composite_type): Update.
1919 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
1920 in summary mode when needed.
1921 * eval.c (evaluate_funcall): Update.
1922 * dwarf2read.c (fixup_go_packaging, read_structure_type)
1923 (process_structure_scope, read_enumeration_type)
1924 (read_namespace_type, read_module_type, determine_prefix): Update.
1925 * cp-support.c (inspect_type): Update.
1926 * coffread.c (process_coff_symbol, decode_base_type): Update.
1927 * c-varobj.c (c_is_path_expr_parent): Update.
1928 * c-typeprint.c (c_type_print_base_struct_union): Update.
1929 (c_type_print_base_1): Update. Print struct/class/union/enum in
1930 summary when using C language.
1931 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
1932 (gen_maybe_namespace_elt): Update.
1933 * ada-lang.c (ada_type_name): Simplify.
1934 (empty_record, ada_template_to_fixed_record_type_1)
1935 (template_to_static_fixed_type)
1936 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
1937
c1ec8cea
TT
19382018-06-01 Tom Tromey <tom@tromey.com>
1939
1940 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
1941 c_print_type.
1942 * c-typeprint.c (c_print_type_1): Add "language" parameter.
1943 (c_print_type): Update.
1944 (c_print_type): New overload.
1945 (c_type_print_varspec_prefix, c_type_print_args)
1946 (c_type_print_varspec_suffix, c_print_type_no_offsets)
1947 (c_type_print_base_struct_union, c_type_print_base_1)
1948 (cp_type_print_method_args): Add "language" parameter.
1949 (c_type_print_base): Update.
1950 * c-lang.h (c_print_type): Add new overload.
1951
bc8453a7
TT
19522018-06-01 Tom Tromey <tom@tromey.com>
1953
1954 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
1955 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
1956
739e8682
AH
19572018-06-01 Alan Hayward <alan.hayward@arm.com>
1958
1959 * aarch64-tdep.c (aarch64_sve_register_names): New const
1960 var.
1961 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
1962 (AARCH64_SVE_Z_REGS_NUM): New define.
1963 (AARCH64_SVE_P_REGS_NUM): Likewise.
1964 (AARCH64_SVE_NUM_REGS): Likewise.
1965
8a60efe7
UB
19662018-05-31 Uros Bizjak <ubizjak@gmail.com>
1967
1968 * nat/linux-ptrace.h [__alpha__]
1969 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
1970 definitions.
1971
4b2dfa9d
MR
19722018-05-31 Maciej W. Rozycki <macro@mips.com>
1973
1974 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
1975 the endianness selected.
1976 * NEWS: Document `set endian auto' mode operation update.
1977
122394f1
AH
19782018-05-31 Alan Hayward <alan.hayward@arm.com>
1979
1980 * Makefile.in: Add new header.
1981 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
1982 (sve_vl_from_vg): Likewise.
1983 (sve_vq_from_vl): Likewise.
1984 (sve_vl_from_vq): Likewise.
1985 (sve_vq_from_vg): Likewise.
1986 (sve_vg_from_vq): Likewise.
1987 * configure.nat: Add new c file.
1988 * nat/aarch64-sve-linux-ptrace.c: New file.
1989 * nat/aarch64-sve-linux-ptrace.h: New file.
1990
95228a0d
AH
19912018-05-31 Alan Hayward <alan.hayward@arm.com>
1992
1993 * aarch64-linux-nat.c (aarch64_linux_read_description):
1994 Add parmeter zero.
1995 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1996 Likewise.
1997 * aarch64-tdep.c (tdesc_aarch64_list): Add.
1998 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
1999 (aarch64_gdbarch_init): Add parmeter zero.
2000 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
2001 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
2002 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
2003 parmeter.
2004 * doc/gdb.texinfo: Describe SVE feature
2005 * features/aarch64-sve.c: New file.
2006
5969f0db
OJ
20072018-05-31 Omair Javaid <omair.javaid@linaro.org>
2008
2009 PR gdb/23210
2010 * gdbarch.sh (significant_addr_bit): Default to zero when
2011 not set by target architecture.
2012 * gdbarch.c: Re-generated.
2013 * utils.c (address_significant): Update.
2014
61367c61
JB
20152018-05-30 Joel Brobecker <brobecker@adacore.com>
2016
2017 * stack.c (func_command): Remove trailing newline in call to error.
2018
34a79281
SM
20192018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2020
2021 * regcache.h (regcache_raw_collect): Remove, update callers to
2022 use regcache::raw_collect.
2023 * regcache.c (regcache_raw_collect): Remove.
2024
73e1c03f
SM
20252018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2026
2027 * regcache.h (regcache_raw_supply): Remove, update callers to
2028 use detached_regcache::raw_supply.
2029 * regcache.c (regcache_raw_supply): Remove.
2030
e4c4a59b
SM
20312018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2032
2033 * regcache.h (regcache_cooked_write_part): Remove, update
2034 callers to use regcache::cooked_write_part.
2035 * regcache.c (regcache_cooked_write_part): Remove.
2036
73bb0000
SM
20372018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2038
2039 * regcache.h (regcache_cooked_read_part): Remove, update callers
2040 to use readable_regcache::cooked_read_part.
2041 * regcache.c (regcache_cooked_read_part): Remove.
2042
46a45e9d
SM
20432018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2044
2045 * regcache.h (regcache_cooked_read_value): Remove, update
2046 callers to use readable_regcache::cooked_read_value.
2047 * regcache.c (regcache_cooked_read_value): Remove.
2048
b66f5587
SM
20492018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2050
2051 * regcache.h (regcache_cooked_write): Remove, update callers to
2052 use regcache::cooked_write.
2053 * regcache.c (regcache_cooked_write): Remove.
2054
6aa7d724
SM
20552018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2056
2057 * regcache.h (regcache_invalidate): Remove, update callers to
2058 use detached_regcache::invalidate instead.
2059 * regcache.c (regcache_invalidate): Remove.
2060
4f0420fd
SM
20612018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2062
2063 * regcache.h (regcache_raw_write_part): Remove, update callers
2064 to use regcache::raw_write_part instead.
2065 * regcache.c (regcache_raw_write_part): Remove.
2066
502fe83e
SM
20672018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2068
2069 * regcache.h (regcache_raw_read_part): Remove, update callers to
2070 use readable_regcache::raw_read_part instead.
2071 * regcache.c (regcache_raw_read_part): Remove.
2072
dca08e1f
SM
20732018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2074
2075 * regcache.h (regcache_cooked_read): Remove, update callers to
2076 use readable_regcache::cooked_read instead.
2077 * regcache.c (regcache_cooked_read): Remove.
2078
10eaee5f
SM
20792018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2080
2081 * regcache.h (regcache_raw_write): Remove, update callers to use
2082 regcache::raw_write instead.
2083 * regcache.c (regcache_raw_write): Remove.
2084
0b883586
SM
20852018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2086
2087 * regcache.h (regcache_raw_read): Remove, update callers to use
2088 readable_regcache::raw_read instead.
2089 * regcache.c (regcache_raw_read): Remove.
2090
0b47d985
SM
20912018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2092
2093 * regcache.h (regcache_raw_update): Remove, update callers to
2094 use readable_regcache::raw_update instead.
2095 * regcache.c (regcache_raw_update): Remove.
2096
0ec9f114
SM
20972018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2098
2099 * regcache.h (regcache_register_status): Remove, update callers
2100 to use reg_buffer::get_register_status directly instead.
2101 * regcache.c (regcache_register_status): Remove.
2102
222312d3
SM
21032018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2104
2105 * regcache.h (regcache_get_ptid): Remove, update all callers to
2106 call regcache::ptid instead.
2107 * regcache.c (regcache_get_ptid): Remove.
2108
fdbe37e3
SM
21092018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2110
2111 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
2112
f7c6f423
PA
21132018-05-30 Pedro Alves <palves@redhat.com>
2114
2115 * common/common-exceptions.h (exception_rethrow): Use
2116 ATTRIBUTE_NORETURN.
2117
52941706
SM
21182018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
2119
2120 * breakpoint.c (print_solib_event, check_status_catch_solib):
2121 Remove struct keyword in range-based for loops.
2122 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
2123 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
2124 Likewise.
2125 * linespec.c (find_superclass_methods, search_minsyms_for_name):
2126 Likewise.
2127 * symfile.c (addr_info_make_relative): Likewise.
2128 * thread.c (value_in_thread_stack_temporaries): Likewise.
2129
bf2977b5
WP
21302018-06-12 Weimin Pan <weimin.pan@oracle.com>
2131
2132 PR gdb/16841
2133 * valops.c (value_struct_elt_for_reference): Call check_typedef on
2134 aggregate type to get its real type before accessing it.
2135
64cc34d8
WP
21362018-05-29 Weimin Pan <weimin.pan@oracle.com>
2137
2138 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
2139 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
2140 * coff-pe-read.c (add_pe_forwarded_sym): Replace
2141 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
2142 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
2143 * jit.c (jit_breakpoint_re_set_internal): Likewise.
2144 * printcmd.c (info_address_command): Likewise.
2145
e7ec8713
TT
21462018-05-29 Tom Tromey <tom@tromey.com>
2147
2148 * windows-nat.c (handle_exception): Update fall-through comment.
2149
bcb430e4
TT
21502018-05-29 Tom Tromey <tom@tromey.com>
2151
2152 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
2153 (struct program_space) <added_solibs>: Now a std::vector.
2154 * breakpoint.c (print_solib_event): Update.
2155 (check_status_catch_solib): Update.
2156 * progspace.c (clear_program_space_solib_cache): Update.
2157 * solib.c (update_solib_list): Update.
2158
894882e3
TT
21592018-05-29 Tom Tromey <tom@tromey.com>
2160
2161 * python/py-type.c (typy_richcompare): Update.
2162 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
2163 * gdbtypes.h (types_deeply_equal): Return bool.
2164 (types_equal): Likewise.
2165 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
2166 declare VEC.
2167 (check_types_equal): Change worklist to std::vector. Return
2168 bool.
2169 (struct type_equality_entry): Add constructor.
2170 (compare_maybe_null_strings): Return bool.
2171 (check_types_worklist): Return bool. Change worklist to
2172 std::vector.
2173 (types_deeply_equal): Use std::vector.
2174 (types_equal): Return bool.
2175 (compare_maybe_null_strings): Simplify.
2176
10b2ded4
TT
21772018-05-29 Tom Tromey <tom@tromey.com>
2178
2179 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
2180
4f7deebe
TT
21812018-05-29 Tom Tromey <tom@tromey.com>
2182
2183 * objc-lang.h: Don't include cp-support.h.
2184 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
2185 declare VEC.
2186
b8283aea
TT
21872018-05-27 Tom Tromey <tom@tromey.com>
2188
2189 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
2190
41a883c8
TT
21912018-05-25 Tom Tromey <tom@tromey.com>
2192
2193 * value.c (value::location): Initialize.
2194
bf259e25
TT
21952018-05-25 Tom Tromey <tom@tromey.com>
2196
2197 * dbxread.c (init_bincl_list): Remove.
2198 (bincl_list): Now a std::vector.
2199 (bincls_allocated, next_bincl): Remove.
2200 (free_bincl_list, do_free_bincl_list_cleanup)
2201 (make_cleanup_free_bincl_list): Remove.
2202 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
2203 unique_xmalloc_ptr.
2204 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
2205 (struct header_file_location): Add constructor.
2206 (add_bincl_to_list): Remove.
2207
d525a99b
TT
22082018-05-25 Tom Tromey <tom@tromey.com>
2209
2210 * tui/tui.c (tui_enable): Update.
2211 * mi/mi-interp.c (mi_interp::init): Update.
2212 * interps.h (class interp) <name>: New method.
2213 <m_name>: Rename from name.
2214 (~scoped_restore_interp): Update.
2215 * interps.c (interp::interp): Update.
2216 (interp_add, interp_set, interp_lookup_existing)
2217 (current_interp_named_p): Update.
2218
da505cff
TT
22192018-05-25 Tom Tromey <tom@tromey.com>
2220
2221 * interps.c (interp_name): Remove.
2222 * mi/mi-interp.c (mi_interp::init): Update.
2223 * interps.h (interp_name): Remove.
2224 (~scoped_restore_interp): Update.
2225 * tui/tui.c (tui_enable): Update.
2226
29f94340
TT
22272018-05-25 Tom Tromey <tom@tromey.com>
2228
2229 * utils.c (fputs_maybe_filtered): Update.
2230 * linespec.c (decode_line_full): Update.
2231 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
2232 (mi_print_breakpoint_for_event, mi_solib_loaded)
2233 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
2234 (mi_user_selected_context_changed): Update.
2235 * mi/mi-main.c (mi_execute_command): Update.
2236 * cli/cli-script.c (execute_control_command): Update.
2237 * python/python.c (execute_gdb_command): Update.
2238 * solib.c (info_sharedlibrary_command): Update.
2239 * interps.c (interp_ui_out): Remove.
2240 * interps.h (interp_ui_out): Remove.
2241
716b8bc5
TT
22422018-05-25 Tom Tromey <tom@tromey.com>
2243
2244 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
2245 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
2246 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
2247
753ff9bd
TT
22482018-05-25 Tom Tromey <tom@tromey.com>
2249
2250 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
2251 * interps.c (interp_exec): Use scoped_restore.
2252
5ca3b260
TT
22532018-05-25 Tom Tromey <tom@tromey.com>
2254
2255 * remote.c (remote_target::remote_file_get): Use
2256 gdb::byte_vector.
2257 (remote_target::remote_file_put): Likewise.
2258
3173aa2f
TT
22592018-05-25 Tom Tromey <tom@tromey.com>
2260
2261 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
2262 a std::string.
2263 (get_pe_section_index, add_pe_exported_sym): Update.
2264 (read_pe_exported_syms): Use gdb::def_vector.
2265
09a5e1b5
TT
22662018-05-25 Tom Tromey <tom@tromey.com>
2267
2268 * frame.c (remove_prev_frame): Remove.
2269 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
2270
d8dab6c3
MR
22712018-05-25 Maciej W. Rozycki <macro@mips.com>
2272
2273 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
2274 Remove prototypes.
2275 * mips-linux-nat.c (supply_fpregset): Always call
2276 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
2277 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
2278 `mips_fill_fpregset'.
2279 * mips-linux-tdep.c (mips_supply_fpregset)
2280 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
2281 (mips_fill_fpregset_wrapper): Remove functions.
2282 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
2283 (mips_linux_fpregset): Remove variable.
2284 (mips_linux_iterate_over_regset_sections): Use
2285 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
2286 (mips_linux_o32_sigframe_init): Remove comment.
2287
3c69da40
PA
22882018-05-25 Pedro Alves <palves@redhat.com>
2289
2290 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
2291 (struct readahead_cache, struct packet_reg, struct
2292 remote_arch_state, class remote_state): Move higher up in the
2293 file.
2294 (remote_target::m_remote_state): Now an object instead of a pointer.
2295 (remote_target::get_remote_state): Adjust.
2296
39f0c204
AB
22972018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
2298
2299 * stack.c (select_and_print_frame): Delete.
2300 (struct function_bounds): Move struct within function.
2301 (func_command): Most content moved into new function
2302 find_frame_for_function, use new function, print result, add
2303 function comment.
2304 (find_frame_for_function): New function, now returns a result.
2305
d392224a
PW
23062018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2307
2308 * stack.c (iterate_over_block_arg_vars): Fix comment.
2309 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
2310
45f25d6c
AB
23112018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
2312
2313 PR gdb/23203
2314 * frame.c
2315 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2316 Define.
2317 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2318 Define.
2319 * frame.h (class scoped_restore_selected_frame): New class.
2320 * stack.c (print_frame_local_vars): Remove catching and rethrowing
2321 of any exception, use scoped_restore_selected_frame to restore the
2322 frame instead.
2323
da05d921
PA
23242018-05-24 Pedro Alves <palves@redhat.com>
2325
2326 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
2327 override.
2328
a8be540e
TT
23292018-05-23 Tom Tromey <tom@tromey.com>
2330
2331 * complaints.c (struct complaints): Remove.
2332 (symfile_complaint_book): Remove.
2333 (series): New global.
2334 (complaint_internal): Update.
2335 (clear_complaints): Update.
2336
ff1cf532
TT
23372018-05-23 Tom Tromey <tom@tromey.com>
2338
2339 * complaints.c (counters): New global.
2340 (struct complain): Remove.
2341 (struct complaints) <root>: Remove.
2342 (complaint_sentinel): Remove.
2343 (symfile_complaint_book): Update.
2344 (find_complaint) Remove.
2345 (complaint_internal, clear_complaints): Update.
2346
7ff88174
TT
23472018-05-23 Tom Tromey <tom@tromey.com>
2348
2349 * complaints.c (struct complain) <file, line>: Remove.
2350 (find_complaint): Remove file, line parameters.
2351 (complaint_internal): Update.
2352
de54e1a5
TT
23532018-05-23 Tom Tromey <tom@tromey.com>
2354
2355 * complaints.c (vcomplaint): Remove.
2356 (complaint_internal) Merge in contents of vcomplaint.
2357
2ac237e5
TT
23582018-05-23 Tom Tromey <tom@tromey.com>
2359
2360 * complaints.c (struct complaints) <explanation>: Remove.
2361 (symfile_explanations): Remove.
2362 (symfile_complaint_book): Update.
2363 (vcomplaint): Update.
2364 (struct explanation): Remove.
2365
b98664d3
TT
23662018-05-23 Tom Tromey <tom@tromey.com>
2367
2368 * complaints.c (symfile_complaints): Remove.
2369 (complaint_internal): Remove "complaints" parameter.
2370 (clear_complaints, vcomplaint): Remove "c" parameter.
2371 (get_complaints): Remove.
2372 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
2373 (dwarf2_debug_line_missing_file_complaint)
2374 (dwarf2_debug_line_missing_end_sequence_complaint)
2375 (dwarf2_complex_location_expr_complaint)
2376 (dwarf2_const_value_length_mismatch_complaint)
2377 (dwarf2_section_buffer_overflow_complaint)
2378 (dwarf2_macro_malformed_definition_complaint)
2379 (dwarf2_invalid_attrib_class_complaint)
2380 (create_addrmap_from_index, dw2_symtab_iter_next)
2381 (dw2_expand_marked_cus)
2382 (dw2_debug_names_iterator::find_vec_in_debug_names)
2383 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
2384 (create_debug_type_hash_table, init_cutu_and_read_dies)
2385 (partial_die_parent_scope, add_partial_enumeration)
2386 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
2387 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
2388 (read_import_statement, read_file_scope, create_dwo_cu_reader)
2389 (create_cus_hash_table, create_dwp_hash_table)
2390 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
2391 (dwarf2_rnglists_process, dwarf2_ranges_process)
2392 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
2393 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
2394 (handle_struct_member_die, process_structure_scope)
2395 (read_array_type, read_common_block, read_module_type)
2396 (read_tag_pointer_type, read_typedef, read_base_type)
2397 (read_subrange_type, load_partial_dies, partial_die_info::read)
2398 (partial_die_info::read, partial_die_info::read)
2399 (partial_die_info::read, read_checked_initial_length_and_offset)
2400 (dwarf2_string_attr, read_formatted_entries)
2401 (dwarf_decode_line_header)
2402 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2403 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
2404 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
2405 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2406 (get_signatured_type, get_DW_AT_signature_type)
2407 (decode_locdesc, file_file_name, consume_improper_spaces)
2408 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
2409 (dwarf_decode_macro_bytes, dwarf_decode_macros)
2410 (dwarf2_symbol_mark_computed, set_die_type)
2411 (read_attribute_value): Update.
2412 * stap-probe.c (handle_stap_probe, get_stap_base_address):
2413 Update.
2414 * dbxread.c (unknown_symtype_complaint)
2415 (lbrac_mismatch_complaint, repeated_header_complaint)
2416 (set_namestring, function_outside_compilation_unit_complaint)
2417 (read_dbx_symtab, process_one_symbol): Update.
2418 * gdbtypes.c (stub_noname_complaint): Update.
2419 * windows-nat.c (handle_unload_dll): Update.
2420 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
2421 (decode_base_type): Update.
2422 * xcoffread.c (bf_notfound_complaint, ef_complaint)
2423 (eb_complaint, record_include_begin, record_include_end)
2424 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
2425 (process_xcoff_symbol, read_symbol)
2426 (function_outside_compilation_unit_complaint)
2427 (scan_xcoff_symtab): Update.
2428 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
2429 * buildsym.c (finish_block_internal, make_blockvector)
2430 (end_symtab_get_static_block, augment_type_symtab): Update.
2431 * dtrace-probe.c (dtrace_process_dof)
2432 (dtrace_static_probe_ops::get_probes): Update.
2433 * complaints.h (struct complaint): Don't declare.
2434 (symfile_complaints): Remove.
2435 (complaint_internal): Remove "complaints" parameter.
2436 (complaint): Likewise.
2437 (clear_complaints): Likewise.
2438 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2439 (reread_symbols): Update.
2440 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2441 (dwarf2_frame_cache, decode_frame_entry): Update.
2442 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
2443 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2444 (info_selectors_command): Update.
2445 * macrotab.c (macro_include, check_for_redefinition)
2446 (macro_undef): Update.
2447 * objfiles.c (filter_overlapping_sections): Update.
2448 * stabsread.c (invalid_cpp_abbrev_complaint)
2449 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
2450 (define_symbol, error_type, read_type, rs6000_builtin_type)
2451 (stabs_method_name_from_physname, read_member_functions)
2452 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
2453 (attach_fields_to_type, complain_about_struct_wipeout)
2454 (read_range_type, read_args, common_block_start)
2455 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
2456 Update.
2457 * mdebugread.c (index_complaint, unknown_ext_complaint)
2458 (basic_type_complaint, bad_tag_guess_complaint)
2459 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
2460 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
2461 (parse_procedure, parse_lines)
2462 (function_outside_compilation_unit_complaint)
2463 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
2464 (bad_tag_guess_complaint, reg_value_complaint): Update.
2465 * cp-support.c (demangled_name_complaint): Update.
2466 * macroscope.c (sal_macro_scope): Update.
2467 * dwarf-index-write.c (class debug_names): Update.
2468
4e9668d0
TT
24692018-05-23 Tom Tromey <tom@tromey.com>
2470
2471 * complaints.c (clear_complaints): Remove "noisy" parameter.
2472 * complaints.h (clear_complaints): Update.
2473 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2474 (reread_symbols): Update.
2475
43ba33c7
TT
24762018-05-23 Tom Tromey <tom@tromey.com>
2477
2478 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
2479 SUBSEQUENT_MESSAGE.
2480 (vcomplaint, clear_complaints): Update.
2481 (symfile_explanations): Remove some messages.
2482
2b9496b2
TT
24832018-05-23 Tom Tromey <tom@tromey.com>
2484
2485 * complaints.c (internal_complaint): Remove.
2486 * complaints.h (internal_complaint): Remove.
2487
35f1fea3
MR
24882018-05-22 Maciej W. Rozycki <macro@mips.com>
2489
2490 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
2491
6b8edb51
PA
24922018-05-22 Pedro Alves <palves@redhat.com>
2493
2494 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
2495 (remote_fileio_badfd, remote_fileio_return_errno)
2496 (remote_fileio_return_success, remote_fileio_func_open)
2497 (remote_fileio_func_open, remote_fileio_func_close)
2498 (remote_fileio_func_read, remote_fileio_func_write)
2499 (remote_fileio_func_lseek, remote_fileio_func_rename)
2500 (remote_fileio_func_unlink, remote_fileio_func_stat)
2501 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
2502 (remote_fileio_func_isatty, remote_fileio_func_system): Add
2503 remote_target parameter.
2504 (remote_fio_func_map) <func>: Add remote_target parameter.
2505 (do_remote_fileio_request, remote_fileio_request):
2506 * remote-fileio.h (remote_fileio_request):
2507 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
2508 remote_target parameter.
2509 (remote_notif_process, handle_notification): Adjust to pass down
2510 the remote.
2511 (remote_notif_state_allocate): Add remote_target parameter. Save
2512 it.
2513 * remote-notif.h (struct remote_target): Forward declare.
2514 (struct notif_client) <parse, ack, can_get_pending_events>: Add
2515 remote_target parameter.
2516 (struct remote_notif_state) <remote>: New field.
2517 (remote_notif_ack, remote_notif_parse): Add remote_target
2518 parameter.
2519 (remote_notif_state_allocate, remote_notif_state_allocate): Add
2520 remote_target parameter.
2521 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
2522 (threads_listing_context, rmt_thread_action, protocol_feature)
2523 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
2524 (packet_result, struct threads_listing_context, remote_state):
2525 Move definitions and declarations higher up.
2526 (remote_target) <~remote_target>: Declare.
2527 (remote_download_command_source, remote_file_put, remote_file_get)
2528 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
2529 (remote_hostio_pread_vFile, remote_hostio_send_command)
2530 (remote_hostio_set_filesystem, remote_hostio_open)
2531 (remote_hostio_close, remote_hostio_unlink, remote_state)
2532 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
2533 (get_memory_write_packet_size, get_memory_read_packet_size)
2534 (append_pending_thread_resumptions, remote_detach_1)
2535 (append_resumption, remote_resume_with_vcont)
2536 (add_current_inferior_and_thread, wait_ns, wait_as)
2537 (process_stop_reply, remote_notice_new_inferior)
2538 (process_initial_stop_replies, remote_add_thread)
2539 (btrace_sync_conf, remote_btrace_maybe_reopen)
2540 (remove_new_fork_children, kill_new_fork_children)
2541 (discard_pending_stop_replies, stop_reply_queue_length)
2542 (check_pending_events_prevent_wildcard_vcont)
2543 (discard_pending_stop_replies_in_queue, stop_reply)
2544 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
2545 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
2546 (remote_interrupt_as, remote_interrupt_ns)
2547 (remote_get_noisy_reply, remote_query_attached)
2548 (remote_add_inferior, remote_current_thread, get_current_thread)
2549 (set_thread, set_general_thread, set_continue_thread)
2550 (set_general_process, write_ptid)
2551 (remote_unpack_thread_info_response, remote_get_threadinfo)
2552 (parse_threadlist_response, remote_get_threadlist)
2553 (remote_threadlist_iterator, remote_get_threads_with_ql)
2554 (remote_get_threads_with_qxfer)
2555 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
2556 (get_offsets, remote_check_symbols, remote_supported_packet)
2557 (remote_query_supported, remote_packet_size)
2558 (remote_serial_quit_handler, remote_detach_pid)
2559 (remote_vcont_probe, remote_resume_with_hc)
2560 (send_interrupt_sequence, interrupt_query)
2561 (remote_notif_get_pending_events, fetch_register_using_p)
2562 (send_g_packet, process_g_packet, fetch_registers_using_g)
2563 (store_register_using_P, store_registers_using_G)
2564 (set_remote_traceframe, check_binary_download)
2565 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
2566 (remote_xfer_live_readonly_partial, remote_read_bytes)
2567 (remote_send_printf, remote_flash_write, readchar)
2568 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
2569 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
2570 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
2571 (extended_remote_disable_randomization, extended_remote_run)
2572 (send_environment_packet, extended_remote_environment_support)
2573 (extended_remote_set_inferior_cwd, remote_write_qxfer)
2574 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
2575 (packet_command): Now methods of ...
2576 (remote_target): ... this class.
2577 (m_remote_state) <remote_target>: New field.
2578 (struct remote_state) <stop_reply_queue,
2579 remote_async_inferior_event_token, wait_forever_enabled_p>: New
2580 fields.
2581 (remote_state::remote_state): Allocate stop_reply_queue.
2582 (remote_state): Delete global.
2583 (get_remote_state_raw): Delete.
2584 (remote_target::get_remote_state): Allocate m_remote_state on
2585 demand.
2586 (get_current_remote_target): New.
2587 (remote_ops, extended_remote_ops): Delete.
2588 (wait_forever_enabled_p, remote_async_inferior_event_token):
2589 Delete, moved to struct remote_state.
2590 (remote_target::close): Delete self. Destruction bits split to
2591 ...
2592 (remote_target::~remote_target): ... this.
2593 (show_memory_packet_size): Adjust to use
2594 get_current_remote_target.
2595 (struct protocol_feature) <func>: Add remote_target parameter.
2596 All callers adjusted.
2597 (curr_quit_handler_target): New.
2598 (remote_serial_quit_handler): Reimplement.
2599 (remote_target::open_1): Adjust to use get_current_remote_target.
2600 Heap-allocate remote_target/extended_remote_target instances.
2601 (vcont_builder::vcont_builder): Add remote_target parameter, and
2602 save it in m_remote. All callers adjusted.
2603 (vcont_builder::m_remote): New field.
2604 (vcont_builder::restart, vcont_builder::flush)
2605 (vcont_builder::push_action): Use it.
2606 (remote_target::commit_resume): Use it.
2607 (struct queue_iter_param) <remote>: New field.
2608 (remote_target::remove_new_fork_children): Fill in 'remote' field.
2609 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
2610 (check_pending_event_prevents_wildcard_vcont_callback)
2611 (remote_target::check_pending_events_prevent_wildcard_vcont)
2612 (remote_target::discard_pending_stop_replies)
2613 (remote_target::discard_pending_stop_replies_in_queue)
2614 (remote_target::remote_notif_remove_queued_reply): Fill in
2615 'remote' field.
2616 (remote_notif_get_pending_events): New.
2617 (remote_target::readchar, remote_target::remote_serial_write):
2618 Save/restore curr_quit_handler_target.
2619 (putpkt): New.
2620 (kill_new_fork_children): Fill in 'remote' field.
2621 (packet_command): Use get_current_remote_target, defer to
2622 remote_target method of same name.
2623 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
2624 parameter, and save it in m_remote. All callers adjusted.
2625 (scoped_remote_fd::release): Use m_remote.
2626 (scoped_remote_fd::m_remote): New field.
2627 (remote_file_put, remote_file_get, remote_file_delete): Use
2628 get_current_remote_target, defer to remote_target method of same
2629 name.
2630 (remote_btrace_reset): Add remote_state paremeter. Update all
2631 callers.
2632 (remote_async_inferior_event_handler). Pass down 'data'.
2633 (remote_new_objfile): Use get_current_remote_target.
2634 (remote_target::vcont_r_supported): New.
2635 (set_range_stepping): Use get_current_remote_target and
2636 remote_target::vcont_r_supported.
2637 (_initialize_remote): Don't allocate 'remote_state' and
2638 'stop_reply_queue' globals.
2639 * remote.h (struct remote_target): Forward declare.
2640 (getpkt, putpkt, remote_notif_get_pending_events): Add
2641 'remote_target' parameter.
2642
f5db4863
PA
26432018-05-22 Pedro Alves <palves@redhat.com>
2644
2645 * remote.c (vcont_builder): Now a class. Make all data members
2646 private.
2647 (vcont_builder) <vcont_builder, restart, flush, push_action>:
2648 Declare methods.
2649 (vcont_builder_restart): Rename to ...
2650 (vcont_builder::restart): ... this.
2651 (vcont_builder_flush): Rename to ...
2652 (vcont_builder::flush): ... this.
2653 (vcont_builder_push_action): Rename to ...
2654 (vcont_builder::push_action): ... this.
2655 (remote_target::commit_resume): Adjust.
2656
cc0be08f
PA
26572018-05-22 Pedro Alves <palves@redhat.com>
2658
2659 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
2660 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
2661 (get_fixed_memory_packet_size): New.
2662 (get_memory_packet_size): Use it.
2663 (set_memory_packet_size): Don't override the config size with
2664 DEFAULT_MAX_MEMORY_PACKET_SIZE.
2665 (show_memory_packet_size): Use get_fixed_memory_packet_size.
2666 Don't refer to get_memory_packet_size if not connected to a remote
2667 target. Show "(default)" if configured size is 0.
2668
9607784a
PA
26692018-05-22 Pedro Alves <palves@redhat.com>
2670
2671 * remote.c (remote_target::mourn_inferior): Move
2672 discard_pending_stop_replies call here from ...
2673 (_initialize_remote): ... here.
2674
0e9a6b2f
PA
26752018-05-22 Pedro Alves <palves@redhat.com>
2676
2677 * remote.c (compare_section_command): Remove set_general_process
2678 call.
2679
43c3a0e4
PA
26802018-05-22 Pedro Alves <palves@redhat.com>
2681
2682 * remote.c (struct packet_reg, struct remote_arch_state):
2683 Move higher up in the file.
2684 (remote_state) <m_arch_states>: Store remote_arch_state values
2685 instead of remote_arch_state pointers.
2686 (remote_state::get_remote_arch_state): Adjust.
2687
9d6eea31
PA
26882018-05-22 Pedro Alves <palves@redhat.com>
2689
2690 * remote.c: Include <unordered_map>.
2691 (remote_state): Now a class.
2692 (remote_state) <get_remote_arch_state>: Declare method.
2693 <get_remote_arch_state>: New field.
2694 (remote_arch_state) <remote_arch_state>: Declare ctor.
2695 <regs>: Now a unique_ptr.
2696 (remote_gdbarch_data_handle): Delete.
2697 (get_remote_arch_state): Delete.
2698 (remote_state::get_remote_arch_state): New.
2699 (get_remote_state): Adjust to call remote_state's
2700 get_remote_arch_state method.
2701 (init_remote_state): Delete, bits factored out to ...
2702 (remote_arch_state::remote_arch_state): ... this new method.
2703 (get_remote_packet_size, get_memory_packet_size)
2704 (process_g_packet, remote_target::fetch_registers)
2705 (remote_target::prepare_to_store, store_registers_using_G)
2706 (remote_target::store_registers, remote_target::get_trace_status):
2707 Adjust to call remote_state's method.
2708 (_initialize_remote): Remove reference to
2709 remote_gdbarch_data_handle.
2710
dd194f6b
PA
27112018-05-22 Pedro Alves <palves@redhat.com>
2712
2713 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
2714 pread>: New method declarations.
2715 (remote_target::open_1): Adjust.
2716 (readahead_cache_invalidate): Rename to ...
2717 (readahead_cache::invalidate): ... this, and adjust to be a class
2718 method.
2719 (readahead_cache_invalidate_fd): Rename to ...
2720 (readahead_cache::invalidate_fd): ... this, and adjust to be a
2721 class method.
2722 (remote_hostio_pwrite): Adjust.
2723 (remote_hostio_pread_from_cache): Rename to ...
2724 (readahead_cache::pread): ... this, and adjust to be a class
2725 method.
2726 (remote_hostio_close): Adjust.
2727
440b7aec
PA
27282018-05-22 Pedro Alves <palves@redhat.com>
2729
2730 * remote.c (remote_hostio_close_cleanup): Delete.
2731 (class scoped_remote_fd): New.
2732 (remote_file_put, remote_file_get): Use it.
2733
de44f5a7
PA
27342018-05-22 Pedro Alves <palves@redhat.com>
2735
2736 (struct vCont_action_support): Use bool and initialize all fields.
2737 (struct readahead_cache): Initialize all fields.
2738 (remote_state): Use bool and initialize all fields.
2739 (remote_state::remote_state, remote_state::~remote_state): New.
2740 (new_remote_state): Delete.
2741 (_initialize_remote): Use new to allocate remote_state.
2742
b1b60145
PA
27432018-05-22 Pedro Alves <palves@redhat.com>
2744 張俊芝 <zjz@zjz.name>
2745
2746 PR gdb/22973
2747 * c-exp.y: Include "c-support.h".
2748 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
2749 of tolower. Use c_ident_is_alpha to scan names.
2750 * c-lang.c: Include "c-support.h".
2751 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
2752 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
2753 * c-support.h: New file, with bits factored out from ...
2754 * cp-name-parser.y: ... this file.
2755 Include "c-support.h".
2756 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
2757 c-support.h and renamed.
2758 (symbol_end, yylex): Adjust.
2759
0ec848ad
PFC
27602018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2761
2762 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
2763 parameter type to CORE_ADDR.
2764 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
2765 parameter type in declaration to CORE_ADDR.
2766 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
2767 target_auxv_search to get AT_HWCAP and use the result to get the
2768 target description.
2769 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
2770 to CORE_ADDR. Remove the cast of the return value to unsigned
2771 long. Fix error predicate of target_auxv_search.
2772 (ppc_linux_nat_target::read_description): Change the type of the
2773 hwcap variable to CORE_ADDR.
2774
0fb2aaa1
PFC
27752018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2776
2777 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
2778 if the size of fpscr is larger than 32 bits.
2779
2c3305f6
PFC
27802018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2781
2782 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
2783 (ppc32_linux_vsxregmap): New global.
2784 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
2785 regcache_supply_regset, and regcache_collect_regset.
2786 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
2787 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
2788 (fetch_vsx_register, store_vsx_register): Remove.
2789 (fetch_vsx_registers): Add regno parameter. Get regset using
2790 ppc_linux_vsxregset. Use regset to supply registers.
2791 (store_vsx_registers): Add regno parameter. Get regset using
2792 ppc_linux_vsxregset. Use regset to collect registers.
2793 (fetch_register): Call fetch_vsx_registers instead of
2794 fetch_vsx_register.
2795 (store_register): Call store_vsx_registers instead of
2796 store_vsx_register.
2797 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
2798 new regno parameter.
2799 (store_ppc_registers): Call store_vsx_registers with -1 for the
2800 new regno parameter.
2801 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
2802 (ppc_collect_vsxregset): Remove.
2803
1d75a658
PFC
28042018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2805
2806 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
2807 offset fields.
2808 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
2809 for vector register offset fields.
2810 (ppc64_fbsd_reg_offsets): Likewise.
2811 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
2812 to vector register offset fields.
2813 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
2814 to vector register offset fields.
2815 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
2816 vector register offset fields.
2817 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
2818 initializers for vector register offset fields.
2819 (rs6000_aix64_reg_offsets): Likewise.
2820 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
2821 (ppc_supply_vrregset): Remove.
2822 (ppc_collect_vrregset): Remove.
2823 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
2824 (ppc_linux_vrregset) : New function.
2825 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
2826 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
2827 (ppc32_linux_vrregset): Remove.
2828 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
2829 and use result instead of ppc32_linux_vrregset.
2830 (ppc32_linux_reg_offsets): Remove initializers for vector register
2831 offset fields.
2832 (ppc64_linux_reg_offsets): Likewise.
2833 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
2834 * ppc-linux-nat.c: Include regset.h.
2835 (gdb_vrregset_t): Adjust comment to account for little-endian
2836 mode.
2837 (supply_vrregset, fill_vrregset): Remove.
2838 (fetch_altivec_register, store_altivec_register): Remove.
2839 (fetch_altivec_registers): Add regno parameter. Get regset using
2840 ppc_linux_vrregset. Use regset to supply registers.
2841 (store_altivec_registers): Add regno parameter. Get regset using
2842 ppc_linux_vrregset. Use regset to collect registers.
2843 (fetch_register): Call fetch_altivec_registers instead of
2844 fetch_altivec_register.
2845 (store_register): Call store_altivec_registers instead of
2846 store_altivec_register.
2847 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
2848 the new regno parameter.
2849 (store_ppc_registers): Call store_altivec_registers with -1 for
2850 the new regno parameter.
2851
d078308a
PFC
28522018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2853
2854 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
2855 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
2856 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
2857 (gdb_vrregset_t): Change array type size to
2858 PPC_LINUX_SIZEOF_VRREGSET.
2859 (gdb_vsxregset_t): Change array type size to
2860 PPC_LINUX_SIZEOF_VSXREGSET.
2861 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
2862 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
2863 PPC_LINUX_SIZEOF_VSXREGSET.
2864
2e077f5e
PFC
28652018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2866
2867 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
2868 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
2869 nat/ppc-linux.c.
2870 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
2871 ppc_linux_target_wordsize with tid.
2872 (ppc_linux_nat_target::read_description): Call ppc_linux_target
2873 wordsize with tid.
2874 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
2875 (ppc64_64bit_inferior_p): Add static and inline specifiers.
2876 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
2877 tid parameter. Remove static specifier.
2878 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
2879 (ppc_linux_target_wordsize): New declaration.
2880
bd64614e
PFC
28812018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2882
2883 * arch/ppc-linux-common.c: New file.
2884 * arch/ppc-linux-common.h: New file.
2885 * arch/ppc-linux-tdesc.h: New file.
2886 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
2887 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
2888 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
2889 arch/ppc-linux-tdesc.h.
2890 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
2891 arch/ppc-linux-tdesc.h.
2892 (ppc_linux_nat_target::read_description): Remove target
2893 description matching code. Fill a ppc_linux_features struct and
2894 call ppc_linux_match_description with it. Move comment about ISA
2895 2.05 to ppc-linux-common.c.
2896 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
2897 arch/ppc-linux-tdesc.h.
2898 (ppc_linux_core_read_description): Remove target description
2899 matching code. Fill a ppc_linux_features struct and call
2900 ppc_linux_match_description with it.
2901 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
2902 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
2903 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
2904 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
2905 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
2906 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
2907 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
2908 (tdesc_powerpc_e500l): Remove.
2909
241db429
JB
29102018-05-22 Joel Brobecker <brobecker@adacore.com>
2911
2912 * ada-lang.c (catch_assert_command): Pass empty string instead
2913 of NULL for excep_string argument.
2914
75d74cca
MR
29152018-05-22 Maciej W. Rozycki <macro@mips.com>
2916
2917 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
2918 the width of the requested register exceeds the width of the
2919 `ptrace' data type.
2920
122b53ea
TT
29212018-05-21 Tom Tromey <tom@tromey.com>
2922
2923 * printcmd.c (output_command): Remove.
2924 (output_command_const): Rename to output_command.
2925 * valprint.h (output_command): Rename from output_command_const.
2926 * tracepoint.c (trace_dump_actions): Call output_command.
2927
bc18fbb5
TT
29282018-05-21 Tom Tromey <tom@tromey.com>
2929
2930 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
2931 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
2932 * ada-lang.h (create_ada_exception_catchpoint): Update.
2933 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
2934 std::string.
2935 (create_excep_cond_exprs, ~ada_catchpoint)
2936 (should_stop_exception, print_one_exception)
2937 (print_mention_exception, print_recreate_exception): Update.
2938 (ada_get_next_arg): Remove.
2939 (catch_ada_exception_command_split): Use std::string. Change type
2940 of "excep_string", "cond_string".
2941 (catch_ada_exception_command): Update.
2942 (create_ada_exception_catchpoint): Change type of excep_string.
2943 (ada_exception_sal): Remove excep_string parameter.
2944 (~ada_catchpoint): Remove.
2945
790217f6
TT
29462018-05-21 Tom Tromey <tom@tromey.com>
2947
2948 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
2949 cleanup.
2950
6f46ac85
TT
29512018-05-21 Tom Tromey <tom@tromey.com>
2952
2953 * ada-lang.c (ada_exception_message_1, ada_exception_message):
2954 Return unique_xmalloc_ptr.
2955 (print_it_exception): Update.
2956
15b6611c
TT
29572018-05-21 Tom Tromey <tom@tromey.com>
2958
2959 * tracepoint.c (trace_dump_actions): Use std::string.
2960
c0c9f665
TT
29612018-05-21 Tom Tromey <tom@tromey.com>
2962
2963 * symfile.c (reread_symbols): Use std::string for original_name.
2964
22ca247e
TT
29652018-05-21 Tom Tromey <tom@tromey.com>
2966
2967 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
2968 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
2969 constructor.
2970
184cde75
SM
29712018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
2972
2973 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
2974 instance to...
2975 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
2976 * objfiles.c (get_objfile_bfd_data): Allocate
2977 objfile_per_bfd_storage with obstack_new when allocating on
2978 obstack.
2979
e39db4db
SM
29802018-05-20 Simon Marchi <simon.marchi@ericsson.com>
2981
2982 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
2983 OBSTACK_ZALLOC.
2984 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2985 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2986 * mdebugread.c (mdebug_build_psymtabs): Likewise.
2987 (add_pending): Likewise.
2988 (parse_symbol): Likewise.
2989 (parse_partial_symbols): Likewise.
2990 (psymtab_to_symtab_1): Likewise.
2991 (new_psymtab): Likewise.
2992 (elfmdebug_build_psymtabs): Likewise.
2993 * minsyms.c (terminate_minimal_symbol_table): Likewise.
2994 * objfiles.c (get_objfile_bfd_data): Likewise.
2995 (objfile_register_static_link): Likewise.
2996 * psymtab.c (allocate_psymtab): Likewise.
2997 * stabsread.c (read_member_functions): Likewise.
2998 * xcoffread.c (xcoff_end_psymtab): Likewise.
2999
284a0e3c
SM
30002018-05-20 Simon Marchi <simon.marchi@ericsson.com>
3001
3002 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
3003 compiler supports std::is_trivially_constructible.
3004 * common/poison.h: Include obstack.h.
3005 (IsMallocable): Define to is_trivially_constructible if the
3006 compiler supports it, define to true_type otherwise.
3007 (xobnew): New.
3008 (XOBNEW): Redefine.
3009 (xobnewvec): New.
3010 (XOBNEWVEC): Redefine.
3011 * gdb_obstack.h (obstack_zalloc): New.
3012 (OBSTACK_ZALLOC): Redefine.
3013 (obstack_calloc): New.
3014 (OBSTACK_CALLOC): Redefine.
3015 (obstack_new): New.
3016 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
3017 (gdbarch_obstack): New declaration in gdbarch.h, definition in
3018 gdbarch.c.
3019 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
3020 obstack_calloc/obstack_zalloc.
3021 (gdbarch_obstack_zalloc): Remove.
3022 * target-descriptions.c (tdesc_data_init): Use obstack_new.
3023
59f66be3
PW
30242018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3025
3026 * stack.c (backtrace_command_1): Remove useless variable int i.
3027
50c65c2d
PW
30282018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3029
3030 * stack.c (print_frame_info): Fix comment.
3031
7ff8cb8c
TT
30322018-05-18 Tom Tromey <tom@tromey.com>
3033
3034 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
3035 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
3036 (~dwarf2_per_objfile): Update
3037 (dwarf2_get_dwz_file): Use new.
3038 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
3039 unique_ptr.
3040
400174b1
TT
30412018-05-18 Tom Tromey <tom@tromey.com>
3042
3043 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
3044 unique_ptr.
3045 * dwarf2read.c (struct dwp_file): Add constructor and
3046 initializers.
3047 (open_and_init_dwp_file): Return a unique_ptr.
3048 (dwarf2_per_objfile, create_dwp_hash_table)
3049 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
3050 (lookup_dwo_unit_in_dwp): Update.
3051 (open_and_init_dwp_file, get_dwp_file): Update.
3052
3063847f
TT
30532018-05-18 Tom Tromey <tom@tromey.com>
3054
3055 * dwarf2read.c (dwarf2_per_objfile): Update.
3056 (struct mapped_index): Add initializers.
3057 (dwarf2_read_index): Use new.
3058 (dw2_symtab_iter_init): Update.
3059 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
3060 unique_ptr.
3061
d3d02dee
SM
30622018-05-18 Simon Marchi <simon.marchi@ericsson.com>
3063
3064 * dwarf2read.c (mapped_index) <total_size>: Remove.
3065
1d143c36
SM
30662018-05-18 Simon Marchi <simon.marchi@ericsson.com>
3067
3068 * unittests/format_pieces-selftests.c (test_format_specifier):
3069 Add ARI comments.
3070
ce1e8424
TT
30712018-05-18 Tom Tromey <tom@tromey.com>
3072
3073 * c-typeprint.c (maybe_print_hole): New function.
3074 (c_print_type_struct_field_offset): Update.
3075 (c_type_print_base_struct_union): Call maybe_print_hole.
3076
ddfe970e
KS
30772018-05-17 Keith Seitz <keiths@redhat.com>
3078
3079 * breakpoint.c (build_bpstat_chain): New function, moved from
3080 bpstat_stop_status.
3081 (bpstat_stop_status): Add optional parameter, `stop_chain'.
3082 If no stop chain is passed, call build_bpstat_chain to build it.
3083 * breakpoint.h (build_bpstat_chain): Declare.
3084 (bpstat_stop_status): Move documentation here from breakpoint.c.
3085 * infrun.c (handle_signal_stop): Before eliding inlined frames,
3086 build the stop chain and pass it to skip_inline_frames.
3087 Pass this stop chain to bpstat_stop_status.
3088 * inline-frame.c: Include breakpoint.h.
3089 (stopped_by_user_bp_inline_frame): New function.
3090 (skip_inline_frames): Add parameter `stop_chain'.
3091 Move documention to inline-frame.h.
3092 If non-NULL, use stopped_by_user_bp_inline_frame to determine
3093 whether the frame should be elided.
3094 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
3095 Add moved documentation and update for new parameter.
3096
b17992c1
SM
30972018-05-17 Simon Marchi <simon.marchi@ericsson.com>
3098
3099 PR cli/14975
3100 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3101 unittests/format_pieces-selftests.c.
3102 * common/format.h (format_piece) <operator==>: New.
3103 (format_pieces) <operator[]>: Remove.
3104 * common/format.c (format_pieces::format_pieces): Handle \e.
3105 * unittests/format_pieces-selftests.c: New.
3106
58f0c718
TT
31072018-05-17 Tom Tromey <tom@tromey.com>
3108
3109 PR symtab/23010:
3110 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
3111 (dw2_instantiate_symtab): Add skip_partial parameter.
3112 (dw2_find_last_source_symtab, dw2_map_expand_apply)
3113 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
3114 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
3115 (dw2_expand_symtabs_matching_one)
3116 (dw2_find_pc_sect_compunit_symtab)
3117 (dw2_debug_names_lookup_symbol)
3118 (dw2_debug_names_expand_symtabs_for_function): Update.
3119 (init_cutu_and_read_dies): Add skip_partial parameter.
3120 (process_psymtab_comp_unit, build_type_psymtabs_1)
3121 (process_skeletonless_type_unit, load_partial_comp_unit)
3122 (psymtab_to_symtab_1): Update.
3123 (load_full_comp_unit): Add skip_partial parameter.
3124 (process_imported_unit_die, dwarf2_read_addr_index)
3125 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
3126 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
3127 (read_signatured_type): Update.
3128
3e618834
SM
31292018-05-17 Simon Marchi <simon.marchi@ericsson.com>
3130
3131 * value.c (release_value): Remove unused variable.
3132 (record_latest_value): Likewise.
3133 (access_value_history): Likewise.
3134 (preserve_values): Likewise.
3135
fe10fe31
TT
31362018-05-17 Tom Tromey <tom@tromey.com>
3137
3138 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
3139 Initialize.
3140
1d761124
MR
31412018-05-16 Maciej W. Rozycki <macro@mips.com>
3142
3143 PR gdb/22286
3144 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
3145 Also handle registers whose width is not a multiple of
3146 PTRACE_TYPE_RET.
3147 (linux_nat_trad_target::store_register): Likewise.
3148
06333fea
TT
31492018-05-16 Tom Tromey <tom@tromey.com>
3150
3151 * gdbcore.h (core_bfd): Redefine.
3152 * corelow.c (core_target::close): Update.
3153 (core_target_open): Update.
3154 * progspace.h (struct program_space) <cbfd>: Now a
3155 gdb_bfd_ref_ptr.
3156
921222e2
TT
31572018-05-16 Tom Tromey <tom@tromey.com>
3158
3159 PR cli/19551:
3160 * symfile-add-flags.h (enum symfile_add_flags)
3161 <SYMFILE_NOT_FILENAME>: New constant.
3162 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
3163 objfile name from BFD.
3164 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
3165 * minidebug.c (find_separate_debug_file_in_section): Put
3166 ".gnu_debugdata" into BFD's file name.
3167
3acb7083
SM
31682018-05-16 Simon Marchi <simon.marchi@ericsson.com>
3169
3170 * regcache.c (regcache_read_ftype, regcache_write_ftype):
3171 Remove.
3172
561a72d4
TC
31732018-05-15 Tamar Christina <tamar.christina@arm.com>
3174
3175 PR binutils/21446
3176 * aarch64-tdep.c (aarch64_analyze_prologue,
3177 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
3178 Indicate not interested in errors.
3179
4e6ff0e1
MR
31802018-05-15 Maciej W. Rozycki <macro@mips.com>
3181
3182 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
3183 Supply the MIPS_ZERO_REGNUM register.
3184
ea33cd92
MR
31852018-05-15 Maciej W. Rozycki <macro@mips.com>
3186
3187 * mips-tdep.c (mask_address_var): Make variable static.
3188
2d79090e
TT
31892018-05-14 Tom Tromey <tom@tromey.com>
3190
3191 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
3192
cf4912ae
AB
31932018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
3194
3195 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
3196 FXSAVE_ADDR for the mxcsr register.
3197
67e6f569
MF
31982018-05-11 Max Filippov <jcmvbkbc@gmail.com>
3199
3200 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
3201
15244507
PA
32022018-05-11 Pedro Alves <palves@redhat.com>
3203
3204 * corelow.c (core_target) <core_target>: No longer inline.
3205 Initialize m_core_gdbarch, m_core_vec and build the section table
3206 here.
3207 <~core_target>: New.
3208 <core_gdbarch, get_core_register_section>: New methods.
3209 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
3210 factored out from ...
3211 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
3212 (core_ops): Delete.
3213 (sniff_core_bfd): Add gdbarch parameter.
3214 (core_close): Delete, merged into ...
3215 (core_target::close): ... here. Delete self.
3216 (core_close_cleanup): Delete.
3217 (core_target_open): Allocate a core_target on the heap. Use a
3218 unique_ptr instead of a cleanup. Bits moved into the core_target
3219 ctor. Adjust to use core_target methods instead of globals.
3220 (get_core_register_section): Rename to ...
3221 (core_target::get_core_register_section): ... this and adjust.
3222 (struct get_core_registers_cb_data): New.
3223 (get_core_registers_cb): Use it. Use bool.
3224 (core_target::fetch_registers, core_target::files_info)
3225 (core_target::xfer_partial, core_target::read_description)
3226 (core_target::pid_to, core_target::thread_name): Adjust to
3227 reference class fields instead of globals.
3228 * target.h (struct target_ops_deleter, target_ops_up): New.
3229
451953fa
PA
32302018-05-11 Pedro Alves <palves@redhat.com>
3231
3232 * corefile.c (core_file_command): Move to corelow.c.
3233 * corelow.c (the_core_target): Delete.
3234 (core_file_command): Moved from corefile.c. Check exec_bfd
3235 instead of the_core_target. Use target_detach instead of calling
3236 into the_core_target directly.
3237 (maybe_say_no_core_file_now): New.
3238 (core_target::detach): Use it.
3239 (_initialize_corelow): Remove references to the_core_target.
3240 * gdbcore.h (the_core_target): Delete.
3241
e540a5a2 32422018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 3243 Pedro Alves <palves@redhat.com>
e540a5a2
TT
3244
3245 * corefile.c (core_bfd): Remove.
3246 * gdbcore.h (core_bfd): Now a macro.
3247 * progspace.h (struct program_space) <cbfd>: New field.
3248
633cf254
TT
32492018-05-11 Tom Tromey <tom@tromey.com>
3250
3251 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
3252 gdb::def_vector.
3253
1a34f210
TT
32542018-05-10 Tom Tromey <tom@tromey.com>
3255
3256 * configure: Rebuild.
3257 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
3258
190852c8
JB
32592018-05-10 Joel Brobecker <brobecker@adacore.com>
3260
3261 PR server/23158:
3262 * regformats/regdat.sh: Adjust script, following the addition
3263 of the new expedite_regs parameter to init_target_desc.
3264
8727de56
OJ
32652018-05-10 Omair Javaid <omair.javaid@linaro.org>
3266
3267 PR gdb/23127
3268 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
3269 set_gdbarch_significant_addr_bit.
3270 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
3271 set_gdbarch_significant_addr_bit.
3272 * utils.c (address_significant): Update to sign extend addr.
3273
37d9e062
MF
32742018-05-09 Max Filippov <jcmvbkbc@gmail.com>
3275
3276 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
3277 (xtensa_linux_init_abi): Limit tdep->num_regs by
3278 tdep->num_nopriv_regs.
3279 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
3280 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
3281 not initialized.
3282
7402fbca
SM
32832018-05-08 Simon Marchi <simon.marchi@ericsson.com>
3284
3285 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
3286
8ee22052
AB
32872018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3288
3289 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
3290 (I387_MXCSR_INIT_VAL): New constant.
3291 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
3292 buffer if it was supplied by the inferior.
3293 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
3294 (i387_xsave_get_clear_bv): New function.
3295 (i387_supply_xsave): Only read x87 control registers from the
3296 xsave buffer if the feature is enabled, and the state will have
3297 been written, otherwise, provide a suitable default.
3298 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
3299 including x87 control registers. Update control registers if they
3300 have changed from the default value, and mark features as enabled
3301 as required.
3302 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
3303
968ae51b
UW
33042018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3305
3306 * spu-tdep.c (info_spu_event_command): Fix output formatting.
3307
aff689d3
TT
33082018-05-07 Tom Tromey <tom@tromey.com>
3309
3310 * configure: Rebuild.
3311 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
3312
ce887586
TT
33132018-05-07 Tom Tromey <tom@tromey.com>
3314
3315 PR tdep/20362:
3316 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
3317 bit. Use correct value for VDIV.
3318
85e26832
TT
33192018-05-04 Tom Tromey <tom@tromey.com>
3320
3321 * configure: Rebuild.
3322 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
3323
449b1ac7
TT
33242018-05-04 Tom Tromey <tom@tromey.com>
3325
3326 * linux-record.c (record_linux_system_call) <case
3327 RECORD_SYS_RECVFROM>: Add "break".
3328
15c9ffd6
TT
33292018-05-04 Tom Tromey <tom@tromey.com>
3330
3331 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
3332 Add missing "break".
3333 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
3334 Add missing "break".
3335
e3829d13
TT
33362018-05-04 Tom Tromey <tom@tromey.com>
3337
3338 * rs6000-tdep.c (ppc_process_record_op4)
3339 (ppc_process_record_op63): Add fall-through comment.
3340
da0e1563
TT
33412018-05-04 Tom Tromey <tom@tromey.com>
3342
3343 * i386-tdep.c (i386_process_record): Add fall-through comment.
3344
0019cd49
TT
33452018-05-04 Tom Tromey <tom@tromey.com>
3346
3347 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
3348 comment.
3349
565e0eda
TT
33502018-05-04 Tom Tromey <tom@tromey.com>
3351
3352 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
3353 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
3354 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
3355 comment.
3356 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
3357 comment.
3358 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
3359 comment.
3360
621846f4
TT
33612018-05-04 Tom Tromey <tom@tromey.com>
3362
3363 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
3364
86a73007
TT
33652018-05-04 Tom Tromey <tom@tromey.com>
3366
3367 * s390-tdep.c (s390_process_record): Fix fall-through comments.
3368 * xcoffread.c (scan_xcoff_symtab): Move comment later.
3369 * symfile.c (section_is_mapped): Fix fall-through comment.
3370 * stabsread.c (define_symbol, read_member_functions): Fix
3371 fall-through comment.
3372 * s390-linux-tdep.c (s390_process_record): Fix fall-through
3373 comment.
3374 * remote.c (remote_wait_as): Fix fall-through comment.
3375 * p-exp.y (yylex): Fix fall-through comment.
3376 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
3377 comment.
3378 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
3379 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
3380 * jv-exp.y (yylex): Fix fall-through comment.
3381 * go-exp.y (lex_one_token): Fix fall-through comment.
3382 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
3383 fall-through comment.
3384 * f-exp.y (yylex): Fix fall-through comment.
3385 * dwarf2read.c (process_die): Fix fall-through comments.
3386 * dbxread.c (process_one_symbol): Fix fall-through comment.
3387 * d-exp.y (lex_one_token): Fix fall-through comment.
3388 * cp-name-parser.y (yylex): Fix fall-through comment.
3389 * coffread.c (coff_symtab_read): Fix fall-through comment.
3390 * c-exp.y (lex_one_token): Fix fall-through comment.
3391 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
3392 comment.
3393 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
3394 comment.
3395
56bcdbea
TT
33962018-05-04 Tom Tromey <tom@tromey.com>
3397
3398 PR python/22730:
3399 * NEWS: Mention gdb.execute change.
3400 * gdbcmd.h (execute_control_command): Don't declare.
3401 * python/python.c (execute_gdb_command): Use read_command_lines_1,
3402 execute_control_commands, execute_control_commands_to_string.
3403 * cli/cli-script.h (execute_control_commands)
3404 (execute_control_commands_to_string): Declare.
3405 (execute_control_command): Add from_tty parameter.
3406 * cli/cli-script.c (execute_control_commands)
3407 (execute_control_commands_to_string): New functions.
3408 (execute_user_command): Use execute_control_commands.
3409 (execute_control_command_1): Add "from_tty" parameter. Update.
3410 (execute_control_command): Likewise.
3411
a913fffb
TT
34122018-05-04 Tom Tromey <tom@tromey.com>
3413
3414 PR python/22731:
3415 * NEWS: Mention that breakpoint commands are writable.
3416 * python/py-breakpoint.c (bppy_set_commands): New function.
3417 (breakpoint_object_getset) <"commands">: Use it.
3418
60b3cef2
TT
34192018-05-04 Tom Tromey <tom@tromey.com>
3420
3421 * tracepoint.c (actions_command): Update.
3422 * mi/mi-cmd-break.c (mi_command_line_array)
3423 (mi_command_line_array_cnt, mi_command_line_array_ptr)
3424 (mi_read_next_line): Remove.
3425 (mi_cmd_break_commands): Update.
3426 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
3427 function_view.
3428 * cli/cli-script.c (get_command_line): Update.
3429 (process_next_line): Use function_view. Constify.
3430 (recurse_read_control_structure, read_command_lines)
3431 (read_command_lines_1): Change argument types to function_view.
3432 (do_define_command, document_command): Update.
3433 * breakpoint.h (check_tracepoint_command): Don't declare.
3434 * breakpoint.c (check_tracepoint_command): Remove.
3435 (commands_command_1, create_tracepoint_from_upload): Update.
3436
7a2c85f2
TT
34372018-05-04 Tom Tromey <tom@tromey.com>
3438
3439 PR gdb/11750:
3440 * cli/cli-script.h (enum command_control_type) <define_control>:
3441 New constant.
3442 * cli/cli-script.c (multi_line_command_p): Handle define_control.
3443 (build_command_line, execute_control_command_1)
3444 (process_next_line): Likewise.
3445 (do_define_command): New function, extracted from define_command.
3446 (define_command): Use it.
3447
295dc222
TT
34482018-05-04 Tom Tromey <tom@tromey.com>
3449
3450 * tracepoint.c (actions_command): Update.
3451 * cli/cli-script.h (read_command_lines): Update.
3452 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
3453 (MAX_TMPBUF): Remove define.
3454 (define_command): Use string_printf.
3455 (document_command): Likewise.
3456 * breakpoint.c (commands_command_1): Update.
3457
1263a9d5
TT
34582018-05-04 Tom Tromey <tom@tromey.com>
3459
3460 * top.c (execute_command): Update.
3461 * cli/cli-script.h (print_command_lines): Now varargs.
3462 * cli/cli-script.c (print_command_lines): Now varargs.
3463 (execute_control_command_1) <case while_control, case if_control>:
3464 Update.
3465
12973681
TT
34662018-05-04 Tom Tromey <tom@tromey.com>
3467
3468 * tracepoint.c (all_tracepoint_actions): Rename from
3469 all_tracepoint_actions_and_cleanup. Change return type.
3470 (actions_command, encode_actions_1, encode_actions)
3471 (trace_dump_actions, tdump_command): Update.
3472 * remote.c (remote_download_command_source): Update.
3473 * python/python.c (gdbpy_eval_from_control_command)
3474 (python_command, python_interactive_command): Update.
3475 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
3476 * guile/guile.c (guile_command)
3477 (gdbscm_eval_from_control_command, guile_command): Update.
3478 * compile/compile.c (compile_code_command)
3479 (compile_print_command, compile_to_object): Update.
3480 * cli/cli-script.h (struct command_lines_deleter): New.
3481 (counted_command_line): New typedef.
3482 (struct command_line): Add constructor, destructor.
3483 <body_list>: Remove.
3484 <body_list_0, body_list_1>: New members.
3485 (command_line_up): Remove typedef.
3486 (read_command_lines, read_command_lines_1, get_command_line):
3487 Update.
3488 (copy_command_lines): Don't declare.
3489 * cli/cli-script.c (build_command_line): Use "new".
3490 (get_command_line): Return counted_command_line.
3491 (print_command_lines, execute_user_command)
3492 (execute_control_command_1, while_command, if_command): Update.
3493 (realloc_body_list): Remove.
3494 (process_next_line, recurse_read_control_structure): Update.
3495 (read_command_lines, read_command_lines_1): Return counted_command_line.
3496 (free_command_lines): Use "delete".
3497 (copy_command_lines): Remove.
3498 (define_command, document_command, show_user_1): Update.
3499 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
3500 a counted_command_line.
3501 * breakpoint.h (counted_command_line): Remove typedef.
3502 (breakpoint_set_commands): Update.
3503 * breakpoint.c (check_no_tracepoint_commands)
3504 (validate_commands_for_breakpoint): Update.
3505 (breakpoint_set_commands): Change commands to be a
3506 counted_command_line.
3507 (commands_command_1, update_dprintf_command_list)
3508 (create_tracepoint_from_upload): Update.
3509
e2fc72e2
TT
35102018-05-04 Tom Tromey <tom@tromey.com>
3511
3512 * cli/cli-decode.h (cmd_list_element): New constructor.
3513 (~cmd_list_element): New destructor.
3514 (struct cmd_list_element): Add initializers.
3515 * cli/cli-decode.c (do_add_cmd): Use "new".
3516 (delete_cmd): Use "delete".
3517
a3b60e45
JK
35182018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3519 Pedro Alves <palves@redhat.com>
3520
3521 PR breakpoints/19806 and support for PR external/20207.
3522 * NEWS: Mention Aarch64 watchpoint improvements.
3523 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
3524 watchpoints and PR external/20207 watchpoints.
3525 * nat/aarch64-linux-hw-point.c
3526 (kernel_supports_any_contiguous_range): New.
3527 (aarch64_watchpoint_offset): New.
3528 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
3529 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
3530 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
3531 (aarch64_align_watchpoint): New parameters aligned_offset_p and
3532 next_addr_orig_p. Support PR external/20207 watchpoints.
3533 (aarch64_downgrade_regs): New.
3534 (aarch64_dr_state_insert_one_point): New parameters offset and
3535 addr_orig.
3536 (aarch64_dr_state_remove_one_point): Likewise.
3537 (aarch64_handle_breakpoint): Update caller.
3538 (aarch64_handle_aligned_watchpoint): Likewise.
3539 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
3540 aligned_offset.
3541 (aarch64_linux_set_debug_regs): Remove const from state. Call
3542 aarch64_downgrade_regs.
3543 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
3544 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
3545 (DR_CONTROL_MASK): ... this.
3546 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
3547 (unsigned int aarch64_watchpoint_offset): New prototype.
3548 (aarch64_linux_set_debug_regs): Remove const from state.
3549 * utils.c (align_up, align_down): Move to ...
3550 * common/common-utils.c (align_up, align_down): ... here.
3551 * utils.h (align_up, align_down): Move to ...
3552 * common/common-utils.h (align_up, align_down): ... here.
3553
05bc7456
JB
35542018-05-04 Joel Brobecker <brobecker@adacore.com>
3555
3556 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
3557 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
3558 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
3559 Re-implement to match the ABI as summarized in GCC's
3560 gcc/config/sparc/sparc.c. All callers updated.
3561 (sparc32_store_arguments): Remove assertion.
3562
2f433492
TT
35632018-05-04 Tom Tromey <tom@tromey.com>
3564
3565 * printcmd.c: Don't include tui.h.
3566 (decode_format): Use skip_spaces.
3567
9be2ae8f
TT
35682018-05-04 Tom Tromey <tom@tromey.com>
3569
3570 PR gdb/22619:
3571 * printcmd.c (last_count): New global.
3572 (x_command): Use saved count when repeating.
3573
f0b3976b
TT
35742018-05-04 Tom Tromey <tom@tromey.com>
3575
3576 * nto-procfs.c (do_closedir_cleanup): Remove.
3577 (procfs_pidlist): Use gdb_dir_up.
3578 * procfs.c (do_closedir_cleanup): Remove.
3579 (proc_update_threads): Use gdb_dir_up.
3580 * common/filestuff.h (struct gdb_dir_deleter): New.
3581 (gdb_dir_up): New typedef.
3582
862d101a
TT
35832018-05-04 Tom Tromey <tom@tromey.com>
3584
3585 * ada-lang.c (print_mention_exception): Use std::string.
3586
cb7de75e
TT
35872018-05-04 Tom Tromey <tom@tromey.com>
3588
3589 * ada-lang.c (create_excep_cond_exprs): Update.
3590 (ada_exception_catchpoint_cond_string): Use std::string.
3591
49d83361
TT
35922018-05-04 Tom Tromey <tom@tromey.com>
3593
3594 * ada-lang.c (xget_renaming_scope): Return std::string.
3595 (old_renaming_is_invisible): Update.
3596
ade72a34
TT
35972018-05-04 Tom Tromey <tom@tromey.com>
3598
3599 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
3600 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
3601
2be4d7f0
UW
36022018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3603
3604 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
3605
69b6ecb0
TT
36062018-05-04 Tom Tromey <tom@tromey.com>
3607
3608 * remote.c (remote_query_supported_append): Change type.
3609 (remote_check_symbols): Update.
3610
bf27f0e2
PP
36112018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
3612
3613 PR gdb/11420
3614 * configure.ac: Prepend libpython.
3615 * python/python-config.py: Likewise.
3616 * configure: Regenerate.
3617
4ea17de8
SM
36182018-05-03 Simon Marchi <simon.marchi@ericsson.com>
3619
3620 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
3621
bd732259
PA
36222018-05-03 Pedro Alves <palves@redhat.com>
3623
3624 * s390-linux-nat.c
3625 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
3626 override. Write 'true' instead of '1'.
3627 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
3628 declaration.
3629
d9f719f1
PA
36302018-05-02 Pedro Alves <palves@redhat.com>
3631
3632 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
3633 add_inf_child_target.
3634 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
3635 add_inf_child_target.
3636 * aix-thread.c (aix_thread_target_info): New.
3637 (aix_thread_target) <shortname, longname, doc>: Delete.
3638 <info>: New.
3639 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
3640 add_inf_child_target.
3641 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
3642 add_inf_child_target.
3643 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
3644 add_inf_child_target.
3645 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
3646 add_inf_child_target.
3647 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
3648 add_inf_child_target.
3649 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
3650 add_inf_child_target.
3651 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
3652 add_inf_child_target.
3653 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
3654 add_inf_child_target.
3655 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
3656 add_inf_child_target.
3657 * bfd-target.c (target_bfd_target_info): New.
3658 (target_bfd) <shortname, longname, doc>: Delete.
3659 <info>: New.
3660 * bsd-kvm.c (bsd_kvm_target_info): New.
3661 (bsd_kvm_target) <shortname, longname, doc>: Delete.
3662 <info>: New.
3663 (bsd_kvm_target::open): Rename to ...
3664 (bsd_kvm_target_open): ... this. Adjust.
3665 * bsd-uthread.c (bsd_uthread_target_info): New.
3666 (bsd_uthread_target) <shortname, longname, doc>: Delete.
3667 <info>: New.
3668 * corefile.c (core_file_command): Adjust.
3669 * corelow.c (core_target_info): New.
3670 (core_target) <shortname, longname, doc>: Delete.
3671 <info>: New.
3672 (core_target::open): Rename to ...
3673 (core_target_open): ... this. Adjust.
3674 * ctf.c (ctf_target_info): New.
3675 (ctf_target) <shortname, longname, doc>: Delete.
3676 <info>: New.
3677 (ctf_target::open): Rename to ...
3678 (ctf_target_open): ... this.
3679 (_initialize_ctf): Adjust.
3680 * exec.c (exec_target_info): New.
3681 (exec_target) <shortname, longname, doc>: Delete.
3682 <info>: New.
3683 (exec_target::open): Rename to ...
3684 (exec_target_open): ... this.
3685 * gdbcore.h (core_target_open): Declare.
3686 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
3687 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
3688 add_inf_child_target.
3689 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
3690 add_inf_child_target.
3691 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
3692 add_inf_child_target.
3693 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
3694 add_inf_child_target.
3695 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
3696 add_inf_child_target.
3697 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
3698 add_inf_child_target.
3699 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
3700 add_inf_child_target.
3701 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
3702 add_inf_child_target.
3703 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
3704 add_inf_child_target.
3705 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
3706 add_inf_child_target.
3707 * inf-child.c (inf_child_target_info): New.
3708 (inf_child_target::info): New.
3709 (inf_child_open_target): Remove 'target' parameter. Use
3710 get_native_target instead.
3711 (inf_child_target::open): Delete.
3712 (add_inf_child_target): New.
3713 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
3714 Delete.
3715 <info>: New.
3716 (add_inf_child_target): Declare.
3717 (inf_child_open_target): Declare.
3718 * linux-thread-db.c (thread_db_target_info): New.
3719 (thread_db_target) <shortname, longname, doc>: Delete.
3720 <info>: New.
3721 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
3722 add_inf_child_target.
3723 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
3724 add_inf_child_target.
3725 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
3726 add_inf_child_target.
3727 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
3728 add_inf_child_target.
3729 * make-target-delegates (print_class): Adjust.
3730 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
3731 add_inf_child_target.
3732 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
3733 add_inf_child_target.
3734 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
3735 add_inf_child_target.
3736 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
3737 add_inf_child_target.
3738 * nto-procfs.c (nto_native_target_info): New.
3739 (nto_procfs_target_native) <shortname, longname, doc>:
3740 Delete.
3741 <info>: New.
3742 (nto_procfs_target_info): New.
3743 (nto_procfs_target_procfs) <shortname, longname, doc>:
3744 Delete.
3745 <info>: New.
3746 (init_procfs_targets): Adjust.
3747 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
3748 add_inf_child_target.
3749 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
3750 add_inf_child_target.
3751 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
3752 add_inf_child_target.
3753 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
3754 add_inf_child_target.
3755 * ravenscar-thread.c (ravenscar_target_info): New.
3756 (ravenscar_thread_target) <shortname, longname, doc>:
3757 Delete.
3758 <info>: New.
3759 * record-btrace.c (record_btrace_target_info):
3760 (record_btrace_target) <shortname, longname, doc>: Delete.
3761 <info>: New.
3762 (record_btrace_target::open): Rename to ...
3763 (record_btrace_target_open): ... this. Adjust.
3764 * record-full.c (record_longname, record_doc): New.
3765 (record_full_base_target) <shortname, longname, doc>: Delete.
3766 <info>: New.
3767 (record_full_target_info): New.
3768 (record_full_target): <shortname>: Delete.
3769 <info>: New.
3770 (record_full_core_open_1, record_full_open_1): Update comments.
3771 (record_full_base_target::open): Rename to ...
3772 (record_full_open): ... this.
3773 (cmd_record_full_restore): Update.
3774 (_initialize_record_full): Update.
3775 * remote-sim.c (remote_sim_target_info): New.
3776 (gdbsim_target) <shortname, longname, doc>: Delete.
3777 <info>: New.
3778 (gdbsim_target::open): Rename to ...
3779 (gdbsim_target_open): ... this.
3780 (_initialize_remote_sim): Adjust.
3781 * remote.c (remote_doc): New.
3782 (remote_target_info): New.
3783 (remote_target) <shortname, longname, doc>: Delete.
3784 <info>: New.
3785 (extended_remote_target_info): New.
3786 (extended_remote_target) <shortname, longname, doc>: Delete.
3787 <info>: New.
3788 (remote_target::open_1): Make static. Adjust.
3789 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
3790 * s390-linux-nat.c (_initialize_s390_nat): Use
3791 add_inf_child_target.
3792 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
3793 add_inf_child_target.
3794 * sol-thread.c (thread_db_target_info): New.
3795 (sol_thread_target) <shortname, longname, doc>: Delete.
3796 <info>: New.
3797 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
3798 add_inf_child_target.
3799 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
3800 add_inf_child_target.
3801 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
3802 add_inf_child_target.
3803 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
3804 add_inf_child_target.
3805 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
3806 add_inf_child_target.
3807 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
3808 add_inf_child_target.
3809 * spu-linux-nat.c (_initialize_spu_nat): Use
3810 add_inf_child_target.
3811 * spu-multiarch.c (spu_multiarch_target_info): New.
3812 (spu_multiarch_target) <shortname, longname, doc>: Delete.
3813 <info>: New.
3814 * target-delegates.c: Regenerate.
3815 * target.c: Include <unordered_map>.
3816 (target_ops_p): Delete.
3817 (DEF_VEC_P(target_ops_p)): Delete.
3818 (target_factories): New.
3819 (test_target_info): New.
3820 (test_target_ops::info): New.
3821 (open_target): Adjust to use target_factories.
3822 (add_target_with_completer): Rename to ...
3823 (add_target): ... this. Change prototype. Register target_info
3824 and open callback in target_factories. Register target_info in
3825 command context instead of target_ops.
3826 (add_target): Delete old implementation.
3827 (add_deprecated_target_alias): Change prototype. Adjust.
3828 (the_native_target): New.
3829 (set_native_target, get_native_target): New.
3830 (find_default_run_target): Use the_native_target.
3831 (find_attach_target, find_run_target): Simplify.
3832 (target_ops::open): Delete.
3833 (dummy_target_info): New.
3834 (dummy_target::shortname, dummy_target::longname)
3835 (dummy_target::doc): Delete.
3836 (dummy_target::info): New.
3837 (debug_target::shortname, debug_target::longname)
3838 (debug_target::doc): Delete.
3839 (debug_target::info): New.
3840 * target.h (struct target_info): New.
3841 (target_ops::~target_ops): Add comment.
3842 (target_ops::info): New.
3843 (target_ops::shortname, target_ops::longname, target_ops::doc): No
3844 longer virtual. Implement in terms of target_info.
3845 (set_native_target, get_native_target): Declare.
3846 (target_open_ftype): New.
3847 (add_target, add_target_with_completer)
3848 (add_deprecated_target_alias): Change prototype.
3849 (test_target) <shortname, longname, doc>: Delete.
3850 <info>: New.
3851 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
3852 add_inf_child_target.
3853 * tracefile-tfile.c (tfile_target_info): New.
3854 (tfile_target) <shortname, longname, doc>: Delete.
3855 <info>: New.
3856 (tfile_target::open): Rename to ...
3857 (tfile_target_open): ... this.
3858 (_initialize_tracefile_tfile): Adjust.
3859 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
3860 add_inf_child_target.
3861 * windows-nat.c (_initialize_windows_nat): Use
3862 add_inf_child_target.
3863 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
3864 add_inf_child_target.
3865
135340af
PA
38662018-05-02 Pedro Alves <palves@redhat.com>
3867
3868 * linux-nat.h (linux_nat_target) <low_new_thread,
3869 low_delete_thread, low_new_fork, low_forget_process,
3870 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
3871 New virtual methods.
3872 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
3873 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
3874 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
3875 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
3876 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
3877 Delete.
3878 * linux-fork.c (delete_fork): Adjust to call low method.
3879 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
3880 (linux_nat_new_fork, linux_nat_forget_process_hook)
3881 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
3882 (linux_nat_status_is_event):
3883 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
3884 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
3885 to call low method.
3886 (sigtrap_is_event): Rename to ...
3887 (linux_nat_target::low_status_is_event): ... this.
3888 (linux_nat_set_status_is_event): Delete.
3889 (save_stop_reason, linux_nat_wait_1)
3890 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
3891 low methods.
3892 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
3893 (linux_nat_set_new_fork, linux_nat_set_forget_process)
3894 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
3895 (linux_nat_set_prepare_to_resume): Delete.
3896 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
3897 low virtual methods.
3898 * amd64-linux-nat.c: Likewise.
3899 * arm-linux-nat.c: Likewise.
3900 * i386-linux-nat.c: Likewise.
3901 * ia64-linux-nat.c: Likewise.
3902 * mips-linux-nat.c: Likewise.
3903 * ppc-linux-nat.c: Likewise.
3904 * s390-linux-nat.c: Likewise.
3905 * sparc64-linux-nat.c: Likewise.
3906 * x86-linux-nat.c: Likewise.
3907 * x86-linux-nat.h: Include "nat/x86-linux.h".
3908 (x86_linux_nat_target) <low_new_fork, low_forget_process,
3909 low_prepare_to_resume, low_new_thread, low_delete_thread>:
3910 Override methods.
3911
57810aa7
PA
39122018-05-02 Pedro Alves <palves@redhat.com>
3913
3914 * target.h (target_ops)
3915 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
3916 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
3917 stopped_by_watchpoint, have_continuable_watchpoint,
3918 stopped_data_address, watchpoint_addr_within_range,
3919 can_accel_watchpoint_condition, can_run, thread_alive,
3920 has_all_memory, has_memory, has_stack, has_registers,
3921 has_execution, can_async_p, is_async_p, supports_non_stop,
3922 always_non_stop_p, can_execute_reverse, supports_multi_process,
3923 supports_enable_disable_tracepoint,
3924 supports_disable_randomization, supports_string_tracing,
3925 supports_evaluation_of_breakpoint_conditions,
3926 can_run_breakpoint_commands, filesystem_is_local,
3927 can_download_tracepoint, get_trace_state_variable_value,
3928 set_trace_notes, get_tib_address, use_agent, can_use_agent,
3929 record_is_replaying, record_will_replay,
3930 augmented_libraries_svr4_read>: Adjust to return bool.
3931 * aarch64-linux-nat.c: All implementations adjusted.
3932 * aix-thread.c: All implementations adjusted.
3933 * arm-linux-nat.c: All implementations adjusted.
3934 * breakpoint.c: All implementations adjusted.
3935 * bsd-kvm.c: All implementations adjusted.
3936 * bsd-uthread.c: All implementations adjusted.
3937 * corelow.c: All implementations adjusted.
3938 * ctf.c: All implementations adjusted.
3939 * darwin-nat.c: All implementations adjusted.
3940 * darwin-nat.h: All implementations adjusted.
3941 * exec.c: All implementations adjusted.
3942 * fbsd-nat.c: All implementations adjusted.
3943 * fbsd-nat.h: All implementations adjusted.
3944 * gnu-nat.c: All implementations adjusted.
3945 * gnu-nat.h: All implementations adjusted.
3946 * go32-nat.c: All implementations adjusted.
3947 * ia64-linux-nat.c: All implementations adjusted.
3948 * inf-child.c: All implementations adjusted.
3949 * inf-child.h: All implementations adjusted.
3950 * inf-ptrace.c: All implementations adjusted.
3951 * inf-ptrace.h: All implementations adjusted.
3952 * linux-nat.c: All implementations adjusted.
3953 * linux-nat.h: All implementations adjusted.
3954 * mips-linux-nat.c: All implementations adjusted.
3955 * nto-procfs.c: All implementations adjusted.
3956 * ppc-linux-nat.c: All implementations adjusted.
3957 * procfs.c: All implementations adjusted.
3958 * ravenscar-thread.c: All implementations adjusted.
3959 * record-btrace.c: All implementations adjusted.
3960 * record-full.c: All implementations adjusted.
3961 * remote-sim.c: All implementations adjusted.
3962 * remote.c: All implementations adjusted.
3963 * s390-linux-nat.c: All implementations adjusted.
3964 * sol-thread.c: All implementations adjusted.
3965 * spu-multiarch.c: All implementations adjusted.
3966 * target-delegates.c: All implementations adjusted.
3967 * target.c: All implementations adjusted.
3968 * target.h: All implementations adjusted.
3969 * tracefile-tfile.c: All implementations adjusted.
3970 * tracefile.c: All implementations adjusted.
3971 * tracefile.h: All implementations adjusted.
3972 * windows-nat.c: All implementations adjusted.
3973 * x86-linux-nat.h: All implementations adjusted.
3974 * x86-nat.h: All implementations adjusted.
3975
ad6a4e2d
PA
39762018-05-02 Pedro Alves <palves@redhat.com>
3977
3978 * make-target-delegates (scan_target_h): Don't trim lines here.
3979 Replace sequences of tabs and/or whitespace with a single
3980 whitespace.
3981 (top level, parsing methods): Trim each line before processing it
3982 here.
3983
f6ac5f3d
PA
39842018-05-02 Pedro Alves <palves@redhat.com>
3985 John Baldwin <jhb@freebsd.org>
3986
3987 * target.h (enum strata) <debug_stratum>: New.
3988 (struct target_ops) <all delegation methods>: Replace by C++
3989 virtual methods, and drop "to_" prefix. All references updated
3990 throughout.
3991 <to_shortname, to_longname, to_doc, to_data,
3992 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
3993 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
3994 virtual methods. All references updated throughout.
3995 <can_attach, supports_terminal_ours, can_create_inferior,
3996 get_thread_control_capabilities, attach_no_wait>: New
3997 virtual methods.
3998 <insert_breakpoint, remove_breakpoint>: Now
3999 TARGET_DEFAULT_NORETURN methods.
4000 <info_proc>: Now returns bool.
4001 <to_magic>: Delete.
4002 (OPS_MAGIC): Delete.
4003 (current_target): Delete. All references replaced by references
4004 to ...
4005 (target_stack): ... this. New.
4006 (target_shortname, target_longname): Adjust.
4007 (target_can_run): Now a function declaration.
4008 (default_child_has_all_memory, default_child_has_memory)
4009 (default_child_has_stack, default_child_has_registers)
4010 (default_child_has_execution): Remove target_ops parameter.
4011 (complete_target_initialization): Delete.
4012 (memory_breakpoint_target): New template class.
4013 (test_target_ops): Refactor as a C++ class with virtual methods.
4014 * make-target-delegates (NAME_PART): Tighten.
4015 (POINTER_PART, CP_SYMBOL): New.
4016 (SIMPLE_RETURN_PART): Reimplement.
4017 (VEC_RETURN_PART): Expect less.
4018 (RETURN_PART, VIRTUAL_PART): New.
4019 (METHOD): Adjust to C++ virtual methods.
4020 (scan_target_h): Remove reference to C99.
4021 (dname): Output "target_ops::" prefix.
4022 (write_function_header): Adjust to output a C++ class method.
4023 (write_declaration): New.
4024 (write_delegator): Adjust to output a C++ class method.
4025 (tdname): Output "dummy_target::" prefix.
4026 (write_tdefault, write_debugmethod): Adjust to output a C++ class
4027 method.
4028 (tdefault_names, debug_names): Delete.
4029 (return_types, tdefaults, styles, argtypes_array): New.
4030 (top level): All methods are delegators.
4031 (print_class): New.
4032 (top level): Print dummy_target and debug_target classes.
4033 * target-delegates.c: Regenerate.
4034 * target-debug.h (target_debug_print_enum_info_proc_what)
4035 (target_debug_print_thread_control_capabilities)
4036 (target_debug_print_thread_info_p): New.
4037 * target.c (dummy_target): Delete.
4038 (the_dummy_target, the_debug_target): New.
4039 (target_stack): Now extern.
4040 (set_targetdebug): Push/unpush debug target.
4041 (default_child_has_all_memory, default_child_has_memory)
4042 (default_child_has_stack, default_child_has_registers)
4043 (default_child_has_execution): Remove target_ops parameter.
4044 (complete_target_initialization): Delete.
4045 (add_target_with_completer): No longer call
4046 complete_target_initialization.
4047 (target_supports_terminal_ours): Use regular delegation.
4048 (update_current_target): Delete.
4049 (push_target): No longer check magic number. Don't call
4050 update_current_target.
4051 (unpush_target): Don't call update_current_target.
4052 (target_is_pushed): No longer check magic number.
4053 (target_require_runnable): Skip for all stratums over
4054 process_stratum.
4055 (target_ops::info_proc): New.
4056 (target_info_proc): Use find_target_at and
4057 find_default_run_target.
4058 (target_supports_disable_randomization): Use regular delegation.
4059 (target_get_osdata): Use find_target_at.
4060 (target_ops::open, target_ops::close, target_ops::can_attach)
4061 (target_ops::attach, target_ops::can_create_inferior)
4062 (target_ops::create_inferior, target_ops::can_run)
4063 (target_can_run): New.
4064 (default_fileio_target): Use regular delegation.
4065 (target_ops::fileio_open, target_ops::fileio_pwrite)
4066 (target_ops::fileio_pread, target_ops::fileio_fstat)
4067 (target_ops::fileio_close, target_ops::fileio_unlink)
4068 (target_ops::fileio_readlink): New.
4069 (target_fileio_open_1, target_fileio_unlink)
4070 (target_fileio_readlink): Always call the target method. Handle
4071 FILEIO_ENOSYS.
4072 (return_zero, return_zero_has_execution): Delete.
4073 (init_dummy_target): Delete.
4074 (dummy_target::dummy_target, dummy_target::shortname)
4075 (dummy_target::longname, dummy_target::doc)
4076 (debug_target::debug_target, debug_target::shortname)
4077 (debug_target::longname, debug_target::doc): New.
4078 (target_supports_delete_record): Use regular delegation.
4079 (setup_target_debug): Delete.
4080 (maintenance_print_target_stack): Skip debug_stratum.
4081 (initialize_targets): Instantiate the_dummy_target and
4082 the_debug_target.
4083 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
4084 use target_stack.
4085 (target_auxv_search, fprint_target_auxv): Adjust.
4086 (info_auxv_command): Adjust to use target_stack.
4087 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
4088 * exceptions.c (print_flush): Handle a NULL target_stack.
4089 * regcache.c (target_ops_no_register): Refactor as class with
4090 virtual methods.
4091
4092 * exec.c (exec_target): New class.
4093 (exec_ops): Now an exec_target.
4094 (exec_open, exec_close_1, exec_get_section_table)
4095 (exec_xfer_partial, exec_files_info, exec_has_memory)
4096 (exec_make_note_section): Refactor as exec_target methods.
4097 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
4098 Delete.
4099 (exec_target::find_memory_regions): New.
4100 (_initialize_exec): Don't call init_exec_ops.
4101 * gdbcore.h (exec_file_clear): Delete.
4102
4103 * corefile.c (core_target): Delete.
4104 (core_file_command): Adjust.
4105 * corelow.c (core_target): New class.
4106 (the_core_target): New.
4107 (core_close): Remove target_ops parameter.
4108 (core_close_cleanup): Adjust.
4109 (core_target::close): New.
4110 (core_open, core_detach, get_core_registers, core_files_info)
4111 (core_xfer_partial, core_thread_alive, core_read_description)
4112 (core_pid_to_str, core_thread_name, core_has_memory)
4113 (core_has_stack, core_has_registers, core_info_proc): Rework as
4114 core_target methods.
4115 (ignore, core_remove_breakpoint, init_core_ops): Delete.
4116 (_initialize_corelow): Initialize the_core_target.
4117 * gdbcore.h (core_target): Delete.
4118 (the_core_target): New.
4119
4120 * ctf.c: (ctf_target): New class.
4121 (ctf_ops): Now a ctf_target.
4122 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
4123 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
4124 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
4125 methods.
4126 (init_ctf_ops): Delete.
4127 (_initialize_ctf): Don't call it.
4128 * tracefile-tfile.c (tfile_target): New class.
4129 (tfile_ops): Now a tfile_target.
4130 (tfile_open, tfile_close, tfile_files_info)
4131 (tfile_get_tracepoint_status, tfile_trace_find)
4132 (tfile_fetch_registers, tfile_xfer_partial)
4133 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
4134 Refactor as tfile_target methods.
4135 (tfile_xfer_partial_features): Remove target_ops parameter.
4136 (init_tfile_ops): Delete.
4137 (_initialize_tracefile_tfile): Don't call it.
4138 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
4139 (tracefile_has_stack, tracefile_has_registers)
4140 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
4141 tracefile_target methods.
4142 (init_tracefile_ops): Delete.
4143 (tracefile_target::tracefile_target): New.
4144 * tracefile.h: Include "target.h".
4145 (tracefile_target): New class.
4146 (init_tracefile_ops): Delete.
4147
4148 * spu-multiarch.c (spu_multiarch_target): New class.
4149 (spu_ops): Now a spu_multiarch_target.
4150 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
4151 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4152 (spu_search_memory, spu_mourn_inferior): Refactor as
4153 spu_multiarch_target methods.
4154 (init_spu_ops): Delete.
4155 (_initialize_spu_multiarch): Remove references to init_spu_ops,
4156 complete_target_initialization.
4157
4158 * ravenscar-thread.c (ravenscar_thread_target): New class.
4159 (ravenscar_ops): Now a ravenscar_thread_target.
4160 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
4161 (ravenscar_thread_alive, ravenscar_pid_to_str)
4162 (ravenscar_fetch_registers, ravenscar_store_registers)
4163 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
4164 (ravenscar_stopped_by_hw_breakpoint)
4165 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
4166 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
4167 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
4168 methods.
4169 (init_ravenscar_thread_ops): Delete.
4170 (_initialize_ravenscar): Remove references to
4171 init_ravenscar_thread_ops and complete_target_initialization.
4172
4173 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
4174 (bsd_uthread_target): New class.
4175 (bsd_uthread_ops): Now a bsd_uthread_target.
4176 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
4177 (bsd_uthread_close, bsd_uthread_mourn_inferior)
4178 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
4179 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
4180 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
4181 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
4182 (bsd_uthread_target): Delete function.
4183 (_initialize_bsd_uthread): Remove reference to
4184 complete_target_initialization.
4185
4186 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
4187 (target_bfd): ... this new class.
4188 (target_bfd_xfer_partial, target_bfd_get_section_table)
4189 (target_bfd_close): Refactor as target_bfd methods.
4190 (target_bfd::~target_bfd): New.
4191 (target_bfd_reopen): Adjust.
4192 (target_bfd::close): New.
4193
4194 * record-btrace.c (record_btrace_target): New class.
4195 (record_btrace_ops): Now a record_btrace_target.
4196 (record_btrace_open, record_btrace_stop_recording)
4197 (record_btrace_disconnect, record_btrace_close)
4198 (record_btrace_async, record_btrace_info)
4199 (record_btrace_insn_history, record_btrace_insn_history_range)
4200 (record_btrace_insn_history_from, record_btrace_call_history)
4201 (record_btrace_call_history_range)
4202 (record_btrace_call_history_from, record_btrace_record_method)
4203 (record_btrace_is_replaying, record_btrace_will_replay)
4204 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4205 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
4206 (record_btrace_store_registers, record_btrace_prepare_to_store)
4207 (record_btrace_to_get_unwinder)
4208 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
4209 (record_btrace_commit_resume, record_btrace_wait)
4210 (record_btrace_stop, record_btrace_can_execute_reverse)
4211 (record_btrace_stopped_by_sw_breakpoint)
4212 (record_btrace_supports_stopped_by_sw_breakpoint)
4213 (record_btrace_stopped_by_hw_breakpoint)
4214 (record_btrace_supports_stopped_by_hw_breakpoint)
4215 (record_btrace_update_thread_list, record_btrace_thread_alive)
4216 (record_btrace_goto_begin, record_btrace_goto_end)
4217 (record_btrace_goto, record_btrace_stop_replaying_all)
4218 (record_btrace_execution_direction)
4219 (record_btrace_prepare_to_generate_core)
4220 (record_btrace_done_generating_core): Refactor as
4221 record_btrace_target methods.
4222 (init_record_btrace_ops): Delete.
4223 (_initialize_record_btrace): Remove reference to
4224 init_record_btrace_ops.
4225 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
4226 the execution_direction global.
4227 (record_full_base_target, record_full_target)
4228 (record_full_core_target): New classes.
4229 (record_full_ops): Now a record_full_target.
4230 (record_full_core_ops): Now a record_full_core_target.
4231 (record_full_target::detach, record_full_target::disconnect)
4232 (record_full_core_target::disconnect)
4233 (record_full_target::mourn_inferior, record_full_target::kill):
4234 New.
4235 (record_full_open, record_full_close, record_full_async): Refactor
4236 as methods of the record_full_base_target class.
4237 (record_full_resume, record_full_commit_resume): Refactor
4238 as methods of the record_full_target class.
4239 (record_full_wait, record_full_stopped_by_watchpoint)
4240 (record_full_stopped_data_address)
4241 (record_full_stopped_by_sw_breakpoint)
4242 (record_full_supports_stopped_by_sw_breakpoint)
4243 (record_full_stopped_by_hw_breakpoint)
4244 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
4245 methods of the record_full_base_target class.
4246 (record_full_store_registers, record_full_xfer_partial)
4247 (record_full_insert_breakpoint, record_full_remove_breakpoint):
4248 Refactor as methods of the record_full_target class.
4249 (record_full_can_execute_reverse, record_full_get_bookmark)
4250 (record_full_goto_bookmark, record_full_execution_direction)
4251 (record_full_record_method, record_full_info, record_full_delete)
4252 (record_full_is_replaying, record_full_will_replay)
4253 (record_full_goto_begin, record_full_goto_end, record_full_goto)
4254 (record_full_stop_replaying): Refactor as methods of the
4255 record_full_base_target class.
4256 (record_full_core_resume, record_full_core_kill)
4257 (record_full_core_fetch_registers)
4258 (record_full_core_prepare_to_store)
4259 (record_full_core_store_registers, record_full_core_xfer_partial)
4260 (record_full_core_insert_breakpoint)
4261 (record_full_core_remove_breakpoint)
4262 (record_full_core_has_execution): Refactor
4263 as methods of the record_full_core_target class.
4264 (record_full_base_target::supports_delete_record): New.
4265 (init_record_full_ops): Delete.
4266 (init_record_full_core_ops): Delete.
4267 (record_full_save): Refactor as method of the
4268 record_full_base_target class.
4269 (_initialize_record_full): Remove references to
4270 init_record_full_ops and init_record_full_core_ops.
4271
4272 * remote.c (remote_target, extended_remote_target): New classes.
4273 (remote_ops): Now a remote_target.
4274 (extended_remote_ops): Now an extended_remote_target.
4275 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
4276 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
4277 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
4278 (remote_pass_signals, remote_set_syscall_catchpoint)
4279 (remote_program_signals, )
4280 (remote_thread_always_alive): Remove target_ops parameter.
4281 (remote_thread_alive, remote_thread_name)
4282 (remote_update_thread_list, remote_threads_extra_info)
4283 (remote_static_tracepoint_marker_at)
4284 (remote_static_tracepoint_markers_by_strid)
4285 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
4286 (remote_open): Refactor as methods of remote_target.
4287 (extended_remote_open, extended_remote_detach)
4288 (extended_remote_attach, extended_remote_post_attach):
4289 (extended_remote_supports_disable_randomization)
4290 (extended_remote_create_inferior): : Refactor as method of
4291 extended_remote_target.
4292 (remote_set_permissions, remote_open_1, remote_detach)
4293 (remote_follow_fork, remote_follow_exec, remote_disconnect)
4294 (remote_resume, remote_commit_resume, remote_stop)
4295 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
4296 (remote_terminal_ours, remote_wait, remote_fetch_registers)
4297 (remote_prepare_to_store, remote_store_registers)
4298 (remote_flash_erase, remote_flash_done, remote_files_info)
4299 (remote_kill, remote_mourn, remote_insert_breakpoint)
4300 (remote_remove_breakpoint, remote_insert_watchpoint)
4301 (remote_watchpoint_addr_within_range)
4302 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
4303 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
4304 (remote_supports_stopped_by_sw_breakpoint)
4305 (remote_stopped_by_hw_breakpoint)
4306 (remote_supports_stopped_by_hw_breakpoint)
4307 (remote_stopped_by_watchpoint, remote_stopped_data_address)
4308 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4309 (remote_verify_memory): Refactor as methods of remote_target.
4310 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
4311 parameter.
4312 (remote_xfer_partial, remote_get_memory_xfer_limit)
4313 (remote_search_memory, remote_rcmd, remote_memory_map)
4314 (remote_pid_to_str, remote_get_thread_local_address)
4315 (remote_get_tib_address, remote_read_description): Refactor as
4316 methods of remote_target.
4317 (remote_target::fileio_open, remote_target::fileio_pwrite)
4318 (remote_target::fileio_pread, remote_target::fileio_close): New.
4319 (remote_hostio_readlink, remote_hostio_fstat)
4320 (remote_filesystem_is_local, remote_can_execute_reverse)
4321 (remote_supports_non_stop, remote_supports_disable_randomization)
4322 (remote_supports_multi_process, remote_supports_cond_breakpoints)
4323 (remote_supports_enable_disable_tracepoint)
4324 (remote_supports_string_tracing)
4325 (remote_can_run_breakpoint_commands, remote_trace_init)
4326 (remote_download_tracepoint, remote_can_download_tracepoint)
4327 (remote_download_trace_state_variable, remote_enable_tracepoint)
4328 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
4329 (remote_trace_start, remote_get_trace_status)
4330 (remote_get_tracepoint_status, remote_trace_stop)
4331 (remote_trace_find, remote_get_trace_state_variable_value)
4332 (remote_save_trace_data, remote_get_raw_trace_data)
4333 (remote_set_disconnected_tracing, remote_core_of_thread)
4334 (remote_set_circular_trace_buffer, remote_traceframe_info)
4335 (remote_get_min_fast_tracepoint_insn_len)
4336 (remote_set_trace_buffer_size, remote_set_trace_notes)
4337 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
4338 (remote_disable_btrace, remote_teardown_btrace)
4339 (remote_read_btrace, remote_btrace_conf)
4340 (remote_augmented_libraries_svr4_read, remote_load)
4341 (remote_pid_to_exec_file, remote_can_do_single_step)
4342 (remote_execution_direction, remote_thread_handle_to_thread_info):
4343 Refactor as methods of remote_target.
4344 (init_remote_ops, init_extended_remote_ops): Delete.
4345 (remote_can_async_p, remote_is_async_p, remote_async)
4346 (remote_thread_events, remote_upload_tracepoints)
4347 (remote_upload_trace_state_variables): Refactor as methods of
4348 remote_target.
4349 (_initialize_remote): Remove references to init_remote_ops and
4350 init_extended_remote_ops.
4351
4352 * remote-sim.c (gdbsim_target): New class.
4353 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
4354 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
4355 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
4356 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
4357 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
4358 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
4359 Refactor as methods of gdbsim_target.
4360 (gdbsim_ops): Now a gdbsim_target.
4361 (init_gdbsim_ops): Delete.
4362 (gdbsim_cntrl_c): Adjust.
4363 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
4364
4365 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
4366 (the_amd64_linux_nat_target): New.
4367 (amd64_linux_fetch_inferior_registers)
4368 (amd64_linux_store_inferior_registers): Refactor as methods of
4369 amd64_linux_nat_target.
4370 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
4371 * i386-linux-nat.c: Don't include "linux-nat.h".
4372 (i386_linux_nat_target): New class.
4373 (the_i386_linux_nat_target): New.
4374 (i386_linux_fetch_inferior_registers)
4375 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
4376 as methods of i386_linux_nat_target.
4377 (_initialize_i386_linux_nat): Adjust. Set linux_target.
4378 * inf-child.c (inf_child_ops): Delete.
4379 (inf_child_fetch_inferior_registers)
4380 (inf_child_store_inferior_registers): Delete.
4381 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
4382 methods of inf_child_target.
4383 (inf_child_target::supports_terminal_ours)
4384 (inf_child_target::terminal_init)
4385 (inf_child_target::terminal_inferior)
4386 (inf_child_target::terminal_ours_for_output)
4387 (inf_child_target::terminal_ours, inf_child_target::interrupt)
4388 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
4389 New.
4390 (inf_child_open, inf_child_disconnect, inf_child_close)
4391 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
4392 (inf_child_post_startup_inferior, inf_child_can_run)
4393 (inf_child_pid_to_exec_file): Refactor as methods of
4394 inf_child_target.
4395 (inf_child_follow_fork): Delete.
4396 (inf_child_target::can_create_inferior)
4397 (inf_child_target::can_attach): New.
4398 (inf_child_target::has_all_memory, inf_child_target::has_memory)
4399 (inf_child_target::has_stack, inf_child_target::has_registers)
4400 (inf_child_target::has_execution): New.
4401 (inf_child_fileio_open, inf_child_fileio_pwrite)
4402 (inf_child_fileio_pread, inf_child_fileio_fstat)
4403 (inf_child_fileio_close, inf_child_fileio_unlink)
4404 (inf_child_fileio_readlink, inf_child_use_agent)
4405 (inf_child_can_use_agent): Refactor as methods of
4406 inf_child_target.
4407 (return_zero, inf_child_target): Delete.
4408 (inf_child_target::inf_child_target): New.
4409 * inf-child.h: Include "target.h".
4410 (inf_child_target): Delete function prototype.
4411 (inf_child_target): New class.
4412 (inf_child_open_target, inf_child_mourn_inferior)
4413 (inf_child_maybe_unpush_target): Delete.
4414 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
4415 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
4416 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
4417 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
4418 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
4419 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
4420 (inf_ptrace_wait, inf_ptrace_xfer_partial)
4421 (inf_ptrace_thread_alive, inf_ptrace_files_info)
4422 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
4423 methods of inf_ptrace_target.
4424 (inf_ptrace_target): Delete function.
4425 * inf-ptrace.h: Include "inf-child.h".
4426 (inf_ptrace_target): Delete function declaration.
4427 (inf_ptrace_target): New class.
4428 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
4429 * linux-nat.c (linux_target): New.
4430 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
4431 (linux_nat_target::~linux_nat_target): New.
4432 (linux_child_post_attach, linux_child_post_startup_inferior)
4433 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
4434 (linux_child_remove_fork_catchpoint)
4435 (linux_child_insert_vfork_catchpoint)
4436 (linux_child_remove_vfork_catchpoint)
4437 (linux_child_insert_exec_catchpoint)
4438 (linux_child_remove_exec_catchpoint)
4439 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
4440 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
4441 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
4442 (linux_nat_stopped_data_address)
4443 (linux_nat_stopped_by_sw_breakpoint)
4444 (linux_nat_supports_stopped_by_sw_breakpoint)
4445 (linux_nat_stopped_by_hw_breakpoint)
4446 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
4447 (linux_nat_kill, linux_nat_mourn_inferior)
4448 (linux_nat_xfer_partial, linux_nat_thread_alive)
4449 (linux_nat_update_thread_list, linux_nat_pid_to_str)
4450 (linux_nat_thread_name, linux_child_pid_to_exec_file)
4451 (linux_child_static_tracepoint_markers_by_strid)
4452 (linux_nat_is_async_p, linux_nat_can_async_p)
4453 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
4454 (linux_nat_supports_multi_process)
4455 (linux_nat_supports_disable_randomization, linux_nat_async)
4456 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
4457 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
4458 (linux_nat_fileio_open, linux_nat_fileio_readlink)
4459 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
4460 methods of linux_nat_target.
4461 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
4462 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
4463 parameter.
4464 (check_stopped_by_watchpoint): Adjust.
4465 (linux_xfer_partial): Delete.
4466 (linux_target_install_ops, linux_target, linux_nat_add_target):
4467 Delete.
4468 (linux_nat_target::linux_nat_target): New.
4469 * linux-nat.h: Include "inf-ptrace.h".
4470 (linux_nat_target): New.
4471 (linux_target, linux_target_install_ops, linux_nat_add_target):
4472 Delete function declarations.
4473 (linux_target): Declare global.
4474 * linux-thread-db.c (thread_db_target): New.
4475 (thread_db_target::thread_db_target): New.
4476 (thread_db_ops): Delete.
4477 (the_thread_db_target): New.
4478 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
4479 (thread_db_update_thread_list, thread_db_pid_to_str)
4480 (thread_db_extra_thread_info)
4481 (thread_db_thread_handle_to_thread_info)
4482 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
4483 (thread_db_resume): Refactor as methods of thread_db_target.
4484 (init_thread_db_ops): Delete.
4485 (_initialize_thread_db): Remove reference to init_thread_db_ops.
4486 * x86-linux-nat.c: Don't include "linux-nat.h".
4487 (super_post_startup_inferior): Delete.
4488 (x86_linux_nat_target::~x86_linux_nat_target): New.
4489 (x86_linux_child_post_startup_inferior)
4490 (x86_linux_read_description, x86_linux_enable_btrace)
4491 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
4492 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
4493 methods of x86_linux_nat_target.
4494 (x86_linux_create_target): Delete. Bits folded ...
4495 (x86_linux_add_target): ... here. Now takes a linux_nat_target
4496 pointer.
4497 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
4498 (x86_linux_nat_target): New class.
4499 (x86_linux_create_target): Delete.
4500 (x86_linux_add_target): Now takes a linux_nat_target pointer.
4501 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
4502 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
4503 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
4504 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
4505 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
4506 make extern.
4507 (x86_use_watchpoints): Delete.
4508 * x86-nat.h: Include "breakpoint.h" and "target.h".
4509 (x86_use_watchpoints): Delete.
4510 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
4511 (x86_stopped_by_watchpoint, x86_stopped_data_address)
4512 (x86_insert_watchpoint, x86_remove_watchpoint)
4513 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
4514 (x86_stopped_by_hw_breakpoint): New declarations.
4515 (x86_nat_target): New template class.
4516
4517 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
4518 (the_ppc_linux_nat_target): New.
4519 (ppc_linux_fetch_inferior_registers)
4520 (ppc_linux_can_use_hw_breakpoint)
4521 (ppc_linux_region_ok_for_hw_watchpoint)
4522 (ppc_linux_ranged_break_num_registers)
4523 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
4524 (ppc_linux_insert_mask_watchpoint)
4525 (ppc_linux_remove_mask_watchpoint)
4526 (ppc_linux_can_accel_watchpoint_condition)
4527 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
4528 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
4529 (ppc_linux_watchpoint_addr_within_range)
4530 (ppc_linux_masked_watch_num_registers)
4531 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
4532 (ppc_linux_read_description): Refactor as methods of
4533 ppc_linux_nat_target.
4534 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
4535
4536 * procfs.c (procfs_xfer_partial): Delete forward declaration.
4537 (procfs_target): New class.
4538 (the_procfs_target): New.
4539 (procfs_target): Delete function.
4540 (procfs_auxv_parse, procfs_attach, procfs_detach)
4541 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
4542 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
4543 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
4544 (procfs_create_inferior, procfs_update_thread_list)
4545 (procfs_thread_alive, procfs_pid_to_str)
4546 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
4547 (procfs_stopped_data_address, procfs_insert_watchpoint)
4548 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
4549 (proc_find_memory_regions, procfs_info_proc)
4550 (procfs_make_note_section): Refactor as methods of procfs_target.
4551 (_initialize_procfs): Adjust.
4552 * sol-thread.c (sol_thread_target): New class.
4553 (sol_thread_ops): Now a sol_thread_target.
4554 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
4555 (sol_thread_fetch_registers, sol_thread_store_registers)
4556 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
4557 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
4558 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
4559 (init_sol_thread_ops): Delete.
4560 (_initialize_sol_thread): Adjust. Remove references to
4561 init_sol_thread_ops and complete_target_initialization.
4562
4563 * windows-nat.c (windows_nat_target): New class.
4564 (windows_fetch_inferior_registers)
4565 (windows_store_inferior_registers, windows_resume, windows_wait)
4566 (windows_attach, windows_detach, windows_pid_to_exec_file)
4567 (windows_files_info, windows_create_inferior)
4568 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
4569 (windows_close, windows_pid_to_str, windows_xfer_partial)
4570 (windows_get_tib_address, windows_get_ada_task_ptid)
4571 (windows_thread_name, windows_thread_alive): Refactor as
4572 windows_nat_target methods.
4573 (do_initial_windows_stuff): Adjust.
4574 (windows_target): Delete function.
4575 (_initialize_windows_nat): Adjust.
4576
4577 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
4578 (darwin_mourn_inferior, darwin_kill_inferior)
4579 (darwin_create_inferior, darwin_attach, darwin_detach)
4580 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
4581 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
4582 (darwin_supports_multi_process): Refactor as darwin_nat_target
4583 methods.
4584 (darwin_resume_to, darwin_files_info): Delete.
4585 (_initialize_darwin_inferior): Rename to ...
4586 (_initialize_darwin_nat): ... this. Adjust to C++ification.
4587 * darwin-nat.h: Include "inf-child.h".
4588 (darwin_nat_target): New class.
4589 (darwin_complete_target): Delete.
4590 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
4591 (darwin_target): New.
4592 (i386_darwin_fetch_inferior_registers)
4593 (i386_darwin_store_inferior_registers): Refactor as methods of
4594 darwin_nat_target.
4595 (darwin_complete_target): Delete, with ...
4596 (_initialize_i386_darwin_nat): ... bits factored out here.
4597
4598 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
4599 (the_alpha_linux_nat_target): New.
4600 (alpha_linux_register_u_offset): Refactor as
4601 alpha_linux_nat_target method.
4602 (_initialize_alpha_linux_nat): Adjust.
4603 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
4604 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
4605 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
4606 methods of linux_nat_trad_target.
4607 (linux_trad_target): Delete.
4608 * linux-nat-trad.h (linux_trad_target): Delete function.
4609 (linux_nat_trad_target): New class.
4610 * mips-linux-nat.c (mips_linux_nat_target): New class.
4611 (super_fetch_registers, super_store_registers, super_close):
4612 Delete.
4613 (the_mips_linux_nat_target): New.
4614 (mips64_linux_regsets_fetch_registers)
4615 (mips64_linux_regsets_store_registers)
4616 (mips64_linux_fetch_registers, mips64_linux_store_registers)
4617 (mips_linux_register_u_offset, mips_linux_read_description)
4618 (mips_linux_can_use_hw_breakpoint)
4619 (mips_linux_stopped_by_watchpoint)
4620 (mips_linux_stopped_data_address)
4621 (mips_linux_region_ok_for_hw_watchpoint)
4622 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
4623 (mips_linux_close): Refactor as methods of mips_linux_nat.
4624 (_initialize_mips_linux_nat): Adjust to C++ification.
4625
4626 * aix-thread.c (aix_thread_target): New class.
4627 (aix_thread_ops): Now an aix_thread_target.
4628 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
4629 (aix_thread_fetch_registers, aix_thread_store_registers)
4630 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
4631 (aix_thread_thread_alive, aix_thread_pid_to_str)
4632 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
4633 Refactor as methods of aix_thread_target.
4634 (init_aix_thread_ops): Delete.
4635 (_initialize_aix_thread): Remove references to init_aix_thread_ops
4636 and complete_target_initialization.
4637 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
4638 (rs6000_nat_target): New class.
4639 (the_rs6000_nat_target): New.
4640 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
4641 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
4642 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
4643 (super_create_inferior): Delete.
4644 (_initialize_rs6000_nat): Adjust to C++ification.
4645
4646 * arm-linux-nat.c (arm_linux_nat_target): New class.
4647 (the_arm_linux_nat_target): New.
4648 (arm_linux_fetch_inferior_registers)
4649 (arm_linux_store_inferior_registers, arm_linux_read_description)
4650 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
4651 (arm_linux_remove_hw_breakpoint)
4652 (arm_linux_region_ok_for_hw_watchpoint)
4653 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
4654 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
4655 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
4656 arm_linux_nat_target.
4657 (_initialize_arm_linux_nat): Adjust to C++ification.
4658
4659 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
4660 (the_aarch64_linux_nat_target): New.
4661 (aarch64_linux_fetch_inferior_registers)
4662 (aarch64_linux_store_inferior_registers)
4663 (aarch64_linux_child_post_startup_inferior)
4664 (aarch64_linux_read_description)
4665 (aarch64_linux_can_use_hw_breakpoint)
4666 (aarch64_linux_insert_hw_breakpoint)
4667 (aarch64_linux_remove_hw_breakpoint)
4668 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
4669 (aarch64_linux_region_ok_for_hw_watchpoint)
4670 (aarch64_linux_stopped_data_address)
4671 (aarch64_linux_stopped_by_watchpoint)
4672 (aarch64_linux_watchpoint_addr_within_range)
4673 (aarch64_linux_can_do_single_step): Refactor as methods of
4674 aarch64_linux_nat_target.
4675 (super_post_startup_inferior): Delete.
4676 (_initialize_aarch64_linux_nat): Adjust to C++ification.
4677
4678 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
4679 (the_hppa_linux_nat_target): New.
4680 (hppa_linux_fetch_inferior_registers)
4681 (hppa_linux_store_inferior_registers): Refactor as methods of
4682 hppa_linux_nat_target.
4683 (_initialize_hppa_linux_nat): Adjust to C++ification.
4684
4685 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
4686 (the_ia64_linux_nat_target): New.
4687 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
4688 (ia64_linux_stopped_data_address)
4689 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
4690 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
4691 ia64_linux_nat_target methods.
4692 (super_xfer_partial): Delete.
4693 (_initialize_ia64_linux_nat): Adjust to C++ification.
4694
4695 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
4696 (the_m32r_linux_nat_target): New.
4697 (m32r_linux_fetch_inferior_registers)
4698 (m32r_linux_store_inferior_registers): Refactor as
4699 m32r_linux_nat_target methods.
4700 (_initialize_m32r_linux_nat): Adjust to C++ification.
4701
4702 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
4703 (the_m68k_linux_nat_target): New.
4704 (m68k_linux_fetch_inferior_registers)
4705 (m68k_linux_store_inferior_registers): Refactor as
4706 m68k_linux_nat_target methods.
4707 (_initialize_m68k_linux_nat): Adjust to C++ification.
4708
4709 * s390-linux-nat.c (s390_linux_nat_target): New class.
4710 (the_s390_linux_nat_target): New.
4711 (s390_linux_fetch_inferior_registers)
4712 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
4713 (s390_insert_watchpoint, s390_remove_watchpoint)
4714 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
4715 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
4716 (s390_auxv_parse, s390_read_description): Refactor as methods of
4717 s390_linux_nat_target.
4718 (_initialize_s390_nat): Adjust to C++ification.
4719
4720 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
4721 (the_sparc_linux_nat_target): New.
4722 (_initialize_sparc_linux_nat): Adjust to C++ification.
4723 * sparc-nat.c (sparc_fetch_inferior_registers)
4724 (sparc_store_inferior_registers): Remove target_ops parameter.
4725 * sparc-nat.h (sparc_fetch_inferior_registers)
4726 (sparc_store_inferior_registers): Remove target_ops parameter.
4727 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
4728 (the_sparc64_linux_nat_target): New.
4729 (_initialize_sparc64_linux_nat): Adjust to C++ification.
4730
4731 * spu-linux-nat.c (spu_linux_nat_target): New class.
4732 (the_spu_linux_nat_target): New.
4733 (spu_child_post_startup_inferior, spu_child_post_attach)
4734 (spu_child_wait, spu_fetch_inferior_registers)
4735 (spu_store_inferior_registers, spu_xfer_partial)
4736 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
4737 methods.
4738 (_initialize_spu_nat): Adjust to C++ification.
4739
4740 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
4741 (the_tilegx_linux_nat_target): New.
4742 (fetch_inferior_registers, store_inferior_registers):
4743 Refactor as methods.
4744 (_initialize_tile_linux_nat): Adjust to C++ification.
4745
4746 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
4747 (the_xtensa_linux_nat_target): New.
4748 (xtensa_linux_fetch_inferior_registers)
4749 (xtensa_linux_store_inferior_registers): Refactor as
4750 xtensa_linux_nat_target methods.
4751 (_initialize_xtensa_linux_nat): Adjust to C++ification.
4752
4753 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
4754 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
4755 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
4756 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
4757 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
4758 (fbsd_stopped_by_sw_breakpoint)
4759 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
4760 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
4761 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
4762 (fbsd_post_startup_inferior, fbsd_post_attach)
4763 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
4764 (fbsd_set_syscall_catchpoint)
4765 (super_xfer_partial, super_resume, super_wait)
4766 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
4767 (fbsd_handle_debug_trap): Remove target_ops parameter.
4768 (fbsd_nat_add_target): Delete.
4769 * fbsd-nat.h: Include "inf-ptrace.h".
4770 (fbsd_nat_add_target): Delete.
4771 (USE_SIGTRAP_SIGINFO): Define.
4772 (fbsd_nat_target): New class.
4773
4774 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
4775 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
4776 (amd64bsd_target): Delete.
4777 * amd64-bsd-nat.h: New file.
4778 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
4779 "x86-bsd-nat.h".
4780 (amd64_fbsd_nat_target): New class.
4781 (the_amd64_fbsd_nat_target): New.
4782 (amd64fbsd_read_description): Refactor as method of
4783 amd64_fbsd_nat_target.
4784 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
4785 (_initialize_amd64fbsd_nat): Adjust to C++ification.
4786 * amd64-nat.h (amd64bsd_target): Delete function declaration.
4787 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
4788 (i386bsd_store_inferior_registers): Remove target_ops parameter.
4789 (i386bsd_target): Delete.
4790 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
4791 (i386bsd_fetch_inferior_registers)
4792 (i386bsd_store_inferior_registers): Declare.
4793 (i386_bsd_nat_target): New class.
4794 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
4795 (the_i386_fbsd_nat_target): New.
4796 (i386fbsd_resume, i386fbsd_read_description): Refactor as
4797 i386_fbsd_nat_target methods.
4798 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
4799 (_initialize_i386fbsd_nat): Adjust to C++ification.
4800 * x86-bsd-nat.c (super_mourn_inferior): Delete.
4801 (x86bsd_mourn_inferior, x86bsd_target): Delete.
4802 (_initialize_x86_bsd_nat): Adjust to C++ification.
4803 * x86-bsd-nat.h: Include "x86-nat.h".
4804 (x86bsd_target): Delete declaration.
4805 (x86bsd_nat_target): New class.
4806
4807 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
4808 (the_aarch64_fbsd_nat_target): New.
4809 (aarch64_fbsd_fetch_inferior_registers)
4810 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
4811 aarch64_fbsd_nat_target.
4812 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
4813 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
4814 (the_alpha_bsd_nat_target): New.
4815 (alphabsd_fetch_inferior_registers)
4816 (alphabsd_store_inferior_registers): Refactor as
4817 alpha_bsd_nat_target methods.
4818 (_initialize_alphabsd_nat): Refactor as methods of
4819 alpha_bsd_nat_target.
4820 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
4821 (the_amd64_nbsd_nat_target): New.
4822 (_initialize_amd64nbsd_nat): Adjust to C++ification.
4823 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
4824 (the_amd64_obsd_nat_target): New.
4825 (_initialize_amd64obsd_nat): Adjust to C++ification.
4826 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
4827 (the_arm_fbsd_nat_target): New.
4828 (arm_fbsd_fetch_inferior_registers)
4829 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
4830 (_initialize_arm_fbsd_nat): Refactor as methods of
4831 arm_fbsd_nat_target.
4832 (_initialize_arm_fbsd_nat): Adjust to C++ification.
4833 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
4834 (the_arm_netbsd_nat_target): New.
4835 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
4836 arm_netbsd_nat_target.
4837 (_initialize_arm_netbsd_nat): Adjust to C++ification.
4838 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
4839 (the_hppa_nbsd_nat_target): New.
4840 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
4841 hppa_nbsd_nat_target methods.
4842 (_initialize_hppanbsd_nat): Adjust to C++ification.
4843 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
4844 (the_hppa_obsd_nat_target): New.
4845 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
4846 methods of hppa_obsd_nat_target.
4847 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
4848 add_target.
4849 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
4850 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
4851 add_target.
4852 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
4853 (_initialize_i386obsd_nat): Use add_target.
4854 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
4855 (the_m68k_bsd_nat_target): New.
4856 (m68kbsd_fetch_inferior_registers)
4857 (m68kbsd_store_inferior_registers): Refactor as methods of
4858 m68k_bsd_nat_target.
4859 (_initialize_m68kbsd_nat): Adjust to C++ification.
4860 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
4861 (the_mips_fbsd_nat_target): New.
4862 (mips_fbsd_fetch_inferior_registers)
4863 (mips_fbsd_store_inferior_registers): Refactor as methods of
4864 mips_fbsd_nat_target.
4865 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
4866 add_target.
4867 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
4868 (the_mips_nbsd_nat_target): New.
4869 (mipsnbsd_fetch_inferior_registers)
4870 (mipsnbsd_store_inferior_registers): Refactor as methods of
4871 mips_nbsd_nat_target.
4872 (_initialize_mipsnbsd_nat): Adjust to C++ification.
4873 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
4874 (the_mips64_obsd_nat_target): New.
4875 (mips64obsd_fetch_inferior_registers)
4876 (mips64obsd_store_inferior_registers): Refactor as methods of
4877 mips64_obsd_nat_target.
4878 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
4879 add_target.
4880 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
4881 nbsd_nat_target.
4882 * nbsd-nat.h: Include "inf-ptrace.h".
4883 (nbsd_nat_target): New class.
4884 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
4885 (obsd_wait): Refactor as methods of obsd_nat_target.
4886 (obsd_add_target): Delete.
4887 * obsd-nat.h: Include "inf-ptrace.h".
4888 (obsd_nat_target): New class.
4889 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
4890 (the_ppc_fbsd_nat_target): New.
4891 (ppcfbsd_fetch_inferior_registers)
4892 (ppcfbsd_store_inferior_registers): Refactor as methods of
4893 ppc_fbsd_nat_target.
4894 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
4895 add_target.
4896 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
4897 (the_ppc_nbsd_nat_target): New.
4898 (ppcnbsd_fetch_inferior_registers)
4899 (ppcnbsd_store_inferior_registers): Refactor as methods of
4900 ppc_nbsd_nat_target.
4901 (_initialize_ppcnbsd_nat): Adjust to C++ification.
4902 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
4903 (the_ppc_obsd_nat_target): New.
4904 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
4905 methods of ppc_obsd_nat_target.
4906 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
4907 add_target.
4908 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
4909 (the_sh_nbsd_nat_target): New.
4910 (shnbsd_fetch_inferior_registers)
4911 (shnbsd_store_inferior_registers): Refactor as methods of
4912 sh_nbsd_nat_target.
4913 (_initialize_shnbsd_nat): Adjust to C++ification.
4914 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
4915 (inf_ptrace_xfer_partial): Delete.
4916 (sparc_xfer_partial, sparc_target): Delete.
4917 * sparc-nat.h (sparc_fetch_inferior_registers)
4918 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
4919 (sparc_target): Delete function declaration.
4920 (sparc_target): New template class.
4921 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
4922 (_initialize_sparcnbsd_nat): Adjust to C++ification.
4923 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
4924 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
4925 add_target.
4926 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
4927 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
4928 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
4929 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
4930 add_target.
4931 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
4932 (the_vax_bsd_nat_target): New.
4933 (vaxbsd_fetch_inferior_registers)
4934 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
4935 methods.
4936 (_initialize_vaxbsd_nat): Adjust to C++ification.
4937
4938 * bsd-kvm.c (bsd_kvm_target): New class.
4939 (bsd_kvm_ops): Now a bsd_kvm_target.
4940 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
4941 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
4942 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
4943 bsd_kvm_target.
4944 (bsd_kvm_return_one): Delete.
4945 (bsd_kvm_add_target): Adjust to C++ification.
4946
4947 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
4948 (nto_procfs_target_procfs): New classes.
4949 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
4950 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
4951 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
4952 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
4953 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
4954 (procfs_remove_hw_breakpoint, procfs_resume)
4955 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
4956 (procfs_kill_inferior, procfs_store_registers)
4957 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
4958 as methods of nto_procfs_target.
4959 (nto_procfs_ops): Now an nto_procfs_target_procfs.
4960 (nto_native_ops): Delete.
4961 (procfs_open, procfs_native_open): Delete.
4962 (nto_native_ops): Now an nto_procfs_target_native.
4963 (init_procfs_targets): Adjust to C++ification.
4964 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
4965 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
4966 Refactor as methods of nto_procfs_target.
4967
4968 * go32-nat.c (go32_nat_target): New class.
4969 (the_go32_nat_target): New.
4970 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
4971 (go32_store_registers, go32_xfer_partial, go32_files_info)
4972 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
4973 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
4974 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
4975 (go32_pid_to_str): Refactor as methods of go32_nat_target.
4976 (go32_target): Delete.
4977 (_initialize_go32_nat): Adjust to C++ification.
4978
4979 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
4980 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
4981 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
4982 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
4983 gnu_nat_target.
4984 (gnu_target): Delete.
4985 * gnu-nat.h (gnu_target): Delete.
4986 (gnu_nat_target): New class.
4987 * i386-gnu-nat.c (gnu_base_target): New.
4988 (i386_gnu_nat_target): New class.
4989 (the_i386_gnu_nat_target): New.
4990 (_initialize_i386gnu_nat): Adjust to C++ification.
4991
3fffc070
PA
49922018-05-02 Pedro Alves <palves@redhat.com>
4993
4994 * bfd-target.c (target_bfd_xclose): Rename to ...
4995 (target_bfd_close): ... this.
4996 (target_bfd_reopen): Adjust.
4997 * target.c (target_close): Remove references to to_xclose.
4998 * target.h (target_ops::to_xclose): Delete.
4999 (target_ops::to_close): Update comments.
5000
6798487f
PA
50012018-05-02 Pedro Alves <palves@redhat.com>
5002
5003 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
5004 "linux-nat.h".
5005 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
5006 * inf-ptrace.c (inf_ptrace_register_u_offset)
5007 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
5008 (inf_ptrace_store_register, inf_ptrace_store_registers)
5009 (inf_ptrace_trad_target): Move to ...
5010 * linux-nat-trad.c: ... this new file.
5011 * linux-nat-trad.h: New file.
5012 * linux-nat.c (linux_target_install_ops): Make extern.
5013 (linux_trad_target): Delete.
5014 * linux-nat.h (linux_trad_target): Delete declaration.
5015 (linux_target_install_ops): Declare.
5016 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
5017 "linux-nat.h".
5018
c1955e17
PA
50192018-05-02 Pedro Alves <palves@redhat.com>
5020
5021 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
5022 procfs_target/add_target here.
5023 * procfs.c (procfs_target): Make static.
5024 (_initialize_procfs): Call add_target here.
5025 * procfs.h (struct target_ops): Remove forward declaration.
5026 (procfs_target): Remove declaration.
5027 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
5028
b5c8fcb1
PA
50292018-05-02 Pedro Alves <palves@redhat.com>
5030
5031 * procfs.c (procfs_stopped_by_watchpoint)
5032 (procfs_insert_watchpoint, procfs_remove_watchpoint)
5033 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
5034 Forward declare.
5035 (procfs_use_watchpoints): Delete, move contents...
5036 (procfs_target): ... here.
5037 * procfs.h (procfs_use_watchpoints): Delete declaration.
5038 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
5039 procfs_use_watchpoints.
5040 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
5041 procfs_use_watchpoints.
5042
0489430a
TT
50432018-05-02 Tom Tromey <tom@tromey.com>
5044
5045 PR python/20084:
5046 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
5047 and var_zuinteger_unlimited.
5048 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
5049 and PARAM_ZUINTEGER_UNLIMITED.
5050 (set_parameter_value): Handle var_zuinteger and
5051 var_zuinteger_unlimited.
5052 (add_setshow_generic): Likewise.
5053 (parmpy_init): Likewise.
5054
1632f8ba
DR
50552018-04-28 Dan Robertson <danlrobertson89@gmail.com>
5056
5057 PR rust/23124
5058 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
5059 pointer is not null before dereferencing it.
5060
76761936
TT
50612018-04-30 Tom Tromey <tom@tromey.com>
5062
5063 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
5064 is_mi_like_p.
5065
2d33446d
TT
50662018-04-30 Tom Tromey <tom@tromey.com>
5067
5068 * breakpoint.c (mention): Remove use of is_mi_like_p.
5069 (print_mention_ranged_breakpoint): Likewise.
5070 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
5071 of is_mi_like_p.
5072
f3c6abab
TT
50732018-04-30 Tom Tromey <tom@tromey.com>
5074
5075 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
5076
40c03530
TT
50772018-04-30 Tom Tromey <tom@tromey.com>
5078
5079 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
5080 (info_spu_event_command): Remove some uses of is_mi_like_p.
5081
2038b7fd
TT
50822018-04-30 Tom Tromey <tom@tromey.com>
5083
5084 * python/py-framefilter.c (py_print_single_arg)
5085 (enumerate_locals, py_print_args, py_print_frame): Remove some
5086 uses of is_mi_like_p.
5087
4904c3c6
TT
50882018-04-30 Tom Tromey <tom@tromey.com>
5089
5090 * ui-out.c: Update.
5091 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
5092 * ui-out.h (ui_out::is_mi_like_p): Now const.
5093 (ui_out::do_is_mi_like_p): Now const.
5094 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
5095
7c66fffc
TT
50962018-04-30 Tom Tromey <tom@tromey.com>
5097
5098 * varobj.c (varobj_set_visualizer): Use new_reference.
5099 * python/python.c (gdbpy_decode_line): Use new_reference.
5100 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
5101 new_reference.
5102
bbfa6f00
TT
51032018-04-30 Tom Tromey <tom@tromey.com>
5104
5105 * varobj.c (install_new_value): Use new_reference.
5106 * value.h (value_incref): Return void. Swap intro comment with
5107 value_decref.
5108 * value.c (set_value_parent): Use new_reference.
5109 (value_incref): Return void. Update intro comment.
5110 (release_value): Use new_reference.
5111 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
5112
1831a9f9
TT
51132018-04-30 Tom Tromey <tom@tromey.com>
5114
5115 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
5116 * gdb_bfd.h (new_bfd_ref): Remove.
5117 (gdb_bfd_open): Update comment.
5118 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5119 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
5120 (gdb_bfd_fdopenr): Use new_reference.
5121 * exec.c (exec_file_attach): Use new_reference.
5122
7c1b5f3d
TT
51232018-04-30 Tom Tromey <tom@tromey.com>
5124
5125 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
5126 method.
5127
e11fb955
TT
51282018-04-30 Tom Tromey <tom@tromey.com>
5129
5130 * jit.c (jit_read_code_entry): Use type_align.
5131 * i386-tdep.c (i386_gdbarch_init): Don't call
5132 set_gdbarch_long_long_align_bit.
5133 * gdbarch.sh: Remove long_long_align_bit.
5134 * gdbarch.c, gdbarch.h: Rebuild.
5135 * arc-tdep.c (arc_type_align): New function.
5136 (arc_gdbarch_init): Use arc_type_align. Don't call
5137 set_gdbarch_long_long_align_bit.
5138
2fff16dd
TT
51392018-04-30 Tom Tromey <tom@tromey.com>
5140
5141 * rust-lang.c (rust_type_alignment): Remove.
5142 (rust_composite_type): Use type_align.
5143
6d7bb824
TT
51442018-04-30 Tom Tromey <tom@tromey.com>
5145
5146 * NEWS: Mention Type.align.
5147 * python/py-type.c (typy_get_alignof): New function.
5148 (type_object_getset): Add "alignof".
5149
007e1530
TT
51502018-04-30 Tom Tromey <tom@tromey.com>
5151
5152 PR exp/17095:
5153 * NEWS: Update.
5154 * std-operator.def (UNOP_ALIGNOF): New operator.
5155 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
5156 New.
5157 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
5158 * c-lang.c (c_op_print_tab): Add alignof.
5159 * c-exp.y (ALIGNOF): New token.
5160 (exp): Add "ALIGNOF" production.
5161 (ident_tokens): Add _Alignof and alignof.
5162
2b4424c3
TT
51632018-04-30 Tom Tromey <tom@tromey.com>
5164
5165 * i386-tdep.c (i386_type_align): New function.
5166 (i386_gdbarch_init): Update.
5167 * gdbarch.sh (type_align): New method.
5168 * gdbarch.c, gdbarch.h: Rebuild.
5169 * arch-utils.h (default_type_align): Declare.
5170 * arch-utils.c (default_type_align): New function.
5171 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
5172 (struct type) <align_log2>: New field.
5173 <instance_flags>: Now a bitfield.
5174 (TYPE_RAW_ALIGN): New macro.
5175 (type_align, type_raw_align, set_type_align): Declare.
5176 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
5177 functions.
5178 * dwarf2read.c (quirk_rust_enum): Set type alignment.
5179 (get_alignment, maybe_set_alignment): New functions.
5180 (read_structure_type, read_enumeration_type, read_array_type)
5181 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
5182 (read_subrange_type, read_base_type): Set type alignment.
5183
d33bc52e
SM
51842018-04-30 Simon Marchi <simon.marchi@ericsson.com>
5185
5186 * dwarf2read.c (read_index_from_section): Use bool.
5187
e28b63a9
FG
51882018-04-29 Fabian Groffen <grobian@gentoo.org>
5189
5190 PR gdb/22950
5191 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
5192 with #ifdef.
5193
cd8c76e4
JR
51942018-04-29 John Reiser <jreiser@BitWagon.com>
5195
5196 PR build/22873
5197 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
5198 last step, and do it atomically.
5199
476d250e
AO
52002018-04-27 Alexandre Oliva <aoliva@redhat.com>
5201
5202 * compile/compile-c-types.c (convert_int, convert_float):
5203 Update for C FE v1.
5204
6873858b
TT
52052018-04-27 Tom Tromey <tom@tromey.com>
5206
5207 PR rust/22545:
5208 * rust-lang.c (rust_inclusive_range_type_p): New function.
5209 (rust_range): Handle inclusive ranges.
5210 (rust_compute_range): Likewise.
5211 * rust-exp.y (struct rust_op) <inclusive>: New field.
5212 (DOTDOTEQ): New constant.
5213 (range_expr): Add "..=" productions.
5214 (operator_tokens): Add "..=" token.
5215 (ast_range): Add "inclusive" parameter.
5216 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
5217 ranges.
5218 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
5219 bounds values.
5220 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
5221 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
5222 Update comments.
5223 * expprint.c (print_subexp_standard): Handle new bounds values.
5224 (dump_subexp_body_standard): Likewise.
5225
632e107b
TT
52262018-04-27 Tom Tromey <tom@tromey.com>
5227
5228 * configure: Rebuild.
5229 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
5230 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
5231 "OVERRIDE".
5232 (class symbol_needs_eval_context): Likewise.
5233 * dwarf2read.c (mock_mapped_index::symbol_name_count)
5234 (mock_mapped_index::symbol_name_at): Use "override". Remove
5235 "virtual".
5236 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
5237 "override".
5238 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
5239 * aarch64-tdep.c (instruction_reader::read): Use "override".
5240 (instruction_reader_test::read): Likewise.
5241 * arm-tdep.c (instruction_reader::read): Use "override".
5242 (instruction_reader_thumb::read): Likewise.
5243
b75abf5b
AK
52442018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
5245
5246 PR remote/9665
5247 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
5248 instead of remote_send.
5249 (remote_send): Remove.
5250
79188d8d
PA
52512018-04-26 Pedro Alves <palves@redhat.com>
5252
5253 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
5254 find_function_start_sal instead of find_pc_line.
5255
f50776aa
PA
52562018-04-26 Pedro Alves <palves@redhat.com>
5257
5258 * breakpoint.c (set_breakpoint_location_function): Handle
5259 mst_data_gnu_ifunc.
5260 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
5261 * elfread.c (elf_symtab_read): Give data symbols with
5262 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
5263 (elf_rel_plt_read): Update comment.
5264 * linespec.c (convert_linespec_to_sals): Handle
5265 mst_data_gnu_ifunc.
5266 (minsym_found): Handle mst_data_gnu_ifunc.
5267 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
5268 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
5269 * parse.c (find_minsym_type_and_address): Handle
5270 mst_data_gnu_ifunc.
5271 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
5272 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
5273 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
5274 comment.
5275 <mst_data_gnu_ifunc>: New enumerator.
5276
20944a6e
PA
52772018-04-26 Pedro Alves <palves@redhat.com>
5278
5279 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
5280 (lookup_minimal_symbol_by_pc_section): ... this. Replace
5281 'want_trampoline' parameter by a lookup_msym_prefer parameter.
5282 Handle it.
5283 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
5284 (lookup_minimal_symbol_by_pc): Adjust.
5285 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
5286 (lookup_solib_trampoline_symbol_by_pc): Adjust.
5287 * minsyms.h (lookup_msym_prefer): New enum.
5288 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
5289 parameter by a lookup_msym_prefer parameter.
5290
1adeb822
PA
52912018-04-26 Pedro Alves <palves@redhat.com>
5292
5293 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
5294 ends in "@plt" instead of looking at the symbol's section.
5295
a0aca7b0
PA
52962018-04-26 Pedro Alves <palves@redhat.com>
5297
5298 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
5299 all references.
5300 (find_pc_partial_function_gnu_ifunc): Rename to ...
5301 (find_pc_partial_function): ... this, and remove references to
5302 'is_gnu_ifunc_p'.
5303 (find_pc_partial_function): Delete old implementation.
5304 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
5305
76af0f26
PA
53062018-04-26 Pedro Alves <palves@redhat.com>
5307
5308 * linespec.c (struct bound_minimal_symbol_search_key): New.
5309 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
5310 skip first line if we found a GNU ifunc minimal symbol by name.
5311 (compare_msymbols): Change parameters to work with a destructured
5312 lhs minsym.
5313 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
5314 functions.
5315
3467ec66
PA
53162018-04-26 Pedro Alves <palves@redhat.com>
5317
5318 * breakpoint.c (set_breakpoint_location_function): Don't resolve
5319 ifunc targets here. Instead, if we have an ifunc minsym, use its
5320 address/name.
5321 (add_location_to_breakpoint): Store the minsym and the objfile in
5322 the breakpoint location.
5323 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
5324 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
5325 Record the minsym in the sal.
5326 * symtab.h (symtab_and_line) <msymbol>: New field.
5327
28f4fa4d
PA
53282018-04-26 Pedro Alves <palves@redhat.com>
5329
5330 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
5331 unless we actually resolved the ifunc.
5332
ca31ab1d
PA
53332018-04-26 Pedro Alves <palves@redhat.com>
5334
5335 * c-exp.y (variable production): Prefer ifunc minsyms over
5336 regular function symbols.
5337 * symtab.c (find_gnu_ifunc): New function.
5338 * minsyms.h (lookup_msym_prefer): New enum.
5339 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
5340 parameter by a lookup_msym_prefer parameter.
5341 * symtab.h (find_gnu_ifunc): New declaration.
5342
8388016d
PA
53432018-04-26 Pedro Alves <palves@redhat.com>
5344
5345 * blockframe.c (find_gnu_ifunc_target_type): New function.
5346 (find_function_type): New.
5347 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
5348 return a value with a memory address.
5349 (eval_call): For calls to GNU ifunc functions, try to find the
5350 type of the target function from the type that the resolver
5351 returns.
5352 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
5353 symbols.
5354 * infcall.c (find_function_return_type): Delete.
5355 (find_function_addr): Add 'function_type' parameter. For calls to
5356 GNU ifunc functions, try to find the type of the target function
5357 from the type that the resolver returns, and return it via
5358 FUNCTION_TYPE.
5359 (call_function_by_hand_dummy): Adjust to use the function type
5360 returned by find_function_addr.
5361 (find_function_addr): Add 'function_type' parameter and move
5362 description here.
5363 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
5364 declarations.
5365
a376e11d
PA
53662018-04-26 Pedro Alves <palves@redhat.com>
5367
5368 * c-exp.y (variable production): Skip finding an alias for ifunc
5369 symbols.
5370
02e169e2
PA
53712018-04-26 Pedro Alves <palves@redhat.com>
5372
5373 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
5374
249b5733
PA
53752018-04-25 Pedro Alves <palves@redhat.com>
5376
5377 * infcmd.c (kill_command): Print the pid as string, not the whole
5378 thread's ptid. Add comment. s/has been killed/killed/ in output
5379 message.
5380 * remote.c (remote_detach_1): Print the pid as string, not the
5381 whole thread's ptid.
5382
f67c0c91
SDJ
53832018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5384 Sergio Durigan Junior <sergiodj@redhat.com>
5385 Pedro Alves <palves@redhat.com>
5386
5387 * infcmd.c (kill_command): Print message when inferior has
5388 been killed.
5389 * inferior.c (print_inferior_events): Remove 'static'. Set as
5390 '1'.
5391 (add_inferior): Improve message printed when
5392 'print_inferior_events' is on.
5393 (exit_inferior): Remove message printed when
5394 'print_inferior_events' is on.
5395 (detach_inferior): Improve message printed when
5396 'print_inferior_events' is on.
5397 (initialize_inferiors): Use 'add_inferior_silent' to set
5398 'current_inferior_'.
5399 * inferior.h (print_inferior_events): Declare here as
5400 'extern'.
5401 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
5402 '[Detaching...]' messages when 'print_inferior_events' is on.
5403 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
5404 as prefix/suffix for messages. Remove periods. Fix erroneous
5405 'Detaching after fork from child...', replace it by '... from
5406 parent...'.
5407 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
5408 prefix/suffix when printing 'Detaching...' messages. Print
5409 them when 'print_inferior_events' is on.
5410 * remote.c (remote_detach_1): Print message when detaching
5411 from inferior and '!is_fork_parent'.
5412
e427af18
TT
54132018-04-24 Tom Tromey <tom@tromey.com>
5414
5415 * cli-out.h: Reindent.
5416
05b1d8d6
TT
54172018-04-24 Tom Tromey <tom@tromey.com>
5418
5419 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
5420 (cli_ui_out::do_field_string): Use fputs_filtered.
5421 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
5422
a95c7dab
TT
54232018-04-23 Tom Tromey <tom@tromey.com>
5424
5425 * guile/scm-frame.c (gdbscm_frame_read_var): Use
5426 gdb::unique_xmalloc_ptr.
5427
458412c3
TT
54282018-04-23 Tom Tromey <tom@tromey.com>
5429
5430 * configure: Rebuild.
5431
db86b02b
RS
54322018-04-22 Rajendra SY <rajendra.sy@gmail.com>
5433
5434 PR gdb/23095
5435 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
5436 prepare_for_testing. Set normal_bp to r_debug_state if target
5437 is bsd.
5438
00aecdcf
PA
54392018-04-21 Pedro Alves <palves@redhat.com>
5440 Rajendra SY <rajendra.sy@gmail.com>
5441
5442 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
5443 * remote.c (extended_remote_attach): In all-stop mode, mark the
5444 thread as executing.
5445
224608c3
PW
54462018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5447
5448 * thread.c (thread_apply_all_command): Fix comment.
5449 (thread_command): Fix comment.
5450
3b74854b
AH
54512018-04-10 Alan Hayward <alan.hayward@arm.com>
5452
5453 * common/tdesc.h (tdesc_create_feature): Remove xml filename
5454 parameter.
5455 * features/aarch64-core.c (create_feature_aarch64_core):
5456 Regenerate.
5457 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
5458 Likewise.
5459 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
5460 Likewise.
5461 * features/i386/32bit-avx512.c
5462 (create_feature_i386_32bit_avx512): Likewise.
5463 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
5464 Likewise.
5465 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
5466 Likewise.
5467 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
5468 Likewise.
5469 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
5470 Likewise.
5471 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
5472 Likewise.
5473 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
5474 Likewise.
5475 * features/i386/64bit-avx512.c
5476 (create_feature_i386_64bit_avx512): Likewise.
5477 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
5478 Likewise.
5479 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
5480 Likewise.
5481 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
5482 Likewise.
5483 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
5484 Likewise.
5485 * features/i386/64bit-segments.c
5486 (create_feature_i386_64bit_segments): Likewise.
5487 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
5488 Likewise.
5489 * features/i386/x32-core.c
5490 (create_feature_i386_x32_core): Likewise.
5491 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
5492 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
5493 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
5494 * target-descriptions.c: In generated code, don't pass xml
5495 filename.
5496
e98577a9
AH
54972018-04-18 Alan Hayward <alan.hayward@arm.com>
5498
5499 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
5500 (print_xml_feature::visit_post): Likewise.
5501 (print_xml_feature::visit): Likewise.
5502 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
5503 (print_xml_feature): Add new class.
5504 * regformats/regdat.sh: Null xmltarget on feature targets.
5505 * target-descriptions.c (struct target_desc): Add xmltarget.
5506 (maintenance_check_tdesc_xml_convert): Add unittest function.
5507 (tdesc_get_features_xml): Add function to get xml.
5508 (maintenance_check_xml_descriptions): Test xml generation.
5509 * xml-tdesc.c (string_read_description_xml): Add function.
5510 * xml-tdesc.h (string_read_description_xml): Add declaration.
5511
ad7fc756
AH
55122018-04-18 Alan Hayward <alan.hayward@arm.com>
5513
5514 * features/Makefile: Add feature marker to targets with new style
5515 target descriptions.
5516 * regformats/aarch64.dat: Regenerate.
5517 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
5518 * regformats/i386/amd64-avx-linux.dat: Likewise.
5519 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
5520 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
5521 * regformats/i386/amd64-linux.dat: Likewise.
5522 * regformats/i386/amd64-mpx-linux.dat: Likewise.
5523 * regformats/i386/amd64.dat: Likewise.
5524 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
5525 * regformats/i386/i386-avx-linux.dat: Likewise.
5526 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
5527 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
5528 * regformats/i386/i386-linux.dat: Likewise.
5529 * regformats/i386/i386-mmx-linux.dat: Likewise.
5530 * regformats/i386/i386-mpx-linux.dat: Likewise.
5531 * regformats/i386/i386.dat: Likewise.
5532 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
5533 * regformats/i386/x32-avx-linux.dat: Likewise.
5534 * regformats/i386/x32-linux.dat: Likewise.
5535 * regformats/tic6x-c62x-linux.dat: Likewise.
5536 * regformats/tic6x-c64x-linux.dat: Likewise.
5537 * regformats/tic6x-c64xp-linux.dat: Likewise.
5538 * regformats/regdat.sh: Parse feature marker.
5539
d278f585
AH
55402018-04-18 Alan Hayward <alan.hayward@arm.com>
5541
5542 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
5543 (tdesc_osabi_name): Likewise.
5544 * target-descriptions.c (tdesc_architecture_name): Add new
5545 function.
5546 (tdesc_osabi_name): Likewise.
5547
eee8a18d
AH
55482018-04-18 Alan Hayward <alan.hayward@arm.com>
5549
5550 * common/tdesc.c (tdesc_predefined_type): Move to here.
5551 (tdesc_named_type): Likewise.
5552 (tdesc_create_vector): Likewise.
5553 (tdesc_create_struct): Likewise.
5554 (tdesc_set_struct_size): Likewise.
5555 (tdesc_create_union): Likewise.
5556 (tdesc_create_flags): Likewise.
5557 (tdesc_create_enum): Likewise.
5558 (tdesc_add_field): Likewise.
5559 (tdesc_add_typed_bitfield): Likewise.
5560 (tdesc_add_bitfield): Likewise.
5561 (tdesc_add_flag): Likewise.
5562 (tdesc_add_enum_value): Likewise.
5563 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
5564 (struct tdesc_type_vector): Likewise.
5565 (struct tdesc_type_field): Likewise.
5566 (struct tdesc_type_with_fields): Likewise.
5567 (tdesc_create_enum): Add declaration.
5568 (tdesc_add_typed_bitfield): Likewise.
5569 (tdesc_add_enum_value): Likewise.
5570 * target-descriptions.c (tdesc_type_field): Move from here.
5571 (tdesc_type_builtin): Likewise.
5572 (tdesc_type_vector): Likewise.
5573 (tdesc_type_with_fields): Likewise.
5574 (tdesc_predefined_types): Likewise.
5575 (tdesc_named_type): Likewise.
5576 (tdesc_create_vector): Likewise.
5577 (tdesc_create_struct): Likewise.
5578 (tdesc_set_struct_size): Likewise.
5579 (tdesc_create_union): Likewise.
5580 (tdesc_create_flags): Likewise.
5581 (tdesc_create_enum): Likewise.
5582 (tdesc_add_field): Likewise.
5583 (tdesc_add_typed_bitfield): Likewise.
5584 (tdesc_add_bitfield): Likewise.
5585 (tdesc_add_flag): Likewise.
5586 (tdesc_add_enum_value): Likewise.
5587 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
5588 (tdesc_add_typed_bitfield): Likewise.
5589 (tdesc_add_enum_value): Likewise.
5590
82ec9bc7
AH
55912018-04-18 Alan Hayward <alan.hayward@arm.com>
5592
5593 * common/tdesc.c (tdesc_feature::accept): Move to here.
5594 (tdesc_feature::operator==): Likewise.
5595 (tdesc_create_reg): Likewise.
5596 * common/tdesc.h (tdesc_type_kind): Likewise.
5597 (struct tdesc_type): Likewise.
5598 (struct tdesc_feature): Likewise.
5599 * regformats/regdat.sh: Create a feature.
5600 * target-descriptions.c (tdesc_type_kind): Move from here.
5601 (tdesc_type): Likewise.
5602 (tdesc_type_up): Likewise.
5603 (tdesc_feature): Likewise.
5604 (tdesc_create_reg): Likewise.
5605
ea3e7d71
AH
56062018-04-18 Alan Hayward <alan.hayward@arm.com>
5607
5608 * Makefile.in: Add arch/tdesc.c
5609 * common/tdesc.c: New file.
5610 * common/tdesc.h (tdesc_element_visitor): Move to here.
5611 (tdesc_element): Likewise.
5612 (tdesc_reg): Likewise.
5613 (tdesc_reg_up): Likewise.
5614 * regformats/regdef.h (reg): Add offset to constructors.
5615 * target-descriptions.c (tdesc_element_visitor): Move from here.
5616 (tdesc_element): Likewise.
5617 (tdesc_reg): Likewise.
5618 (tdesc_reg_up): Likewise.
5619
bedda9ac
TT
56202018-04-17 Tom Tromey <tom@tromey.com>
5621
5622 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
5623 discriminant field.
5624
a037790e
TT
56252018-04-17 Tom Tromey <tom@tromey.com>
5626
5627 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
5628
c7dcbf88
AA
56292018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
5630
5631 * symtab.c (print_symbol_info): Skip printing filename and line
5632 number when `last' is NULL.
5633 (symtab_symbol_info): Use empty string instead of NULL for first
5634 invocation of print_symbol_info.
5635 (rbreak_command): Pass NULL to `last' parameter of
5636 print_symbol_info.
5637
07d28c77
SM
56382018-04-16 Simon Marchi <simon.marchi@ericsson.com>
5639
5640 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
5641 instead of nullptr.
5642
8a3de5e1
PA
56432018-04-16 Pedro Alves <palves@redhat.com>
5644
5645 * MAINTAINERS (sh): Remove.
5646 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
5647 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
5648 (ALLDEPFILES): Remove sh64-tdep.c.
5649 * NEWS: Mentions that support for SH-5/SH64 is removed.
5650 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
5651 (sh*-*-openbsd*): Ditto.
5652 (sh64-*-elf*): Remove.
5653 (sh*): Remove.
5654 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
5655 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
5656 * sh-tdep.c: No longer include "sh64-tdep.h".
5657 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
5658 * sh64-tdep.c, sh64-tdep.h: Remove files.
5659
a2a79012
PA
56602018-04-16 Pedro Alves <palves@redhat.com>
5661
5662 * MAINTAINERS: Remove m88k.
5663 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
5664 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
5665 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
5666 * NEWS: Mention that support for m88k was removed.
5667 * configure.host (m88*-*-*): Remove support.
5668 * configure.nat (m88k-*-*): Remove support.
5669 * configure.tgt (m88*-*-openbsd*): Remove.
5670 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
5671
eda4efb1
SM
56722018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
5673
5674 * configure.tgt (x86_tobjs): New variable.
5675 (amd64_tobjs, i386_tobjs): Use it.
5676
b744723f
AA
56772018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5678
5679 * symtab.c (print_symbol_info): Precede the symbol definition by
5680 the line number when available.
5681 * NEWS: Advertise this enhancement.
5682
4a4495d6
MM
56832018-04-13 Markus Metzger <markus.t.metzger@intel.com>
5684
5685 * NEWS (New options): announce set/show record btrace cpu.
5686 * btrace.c: Include record-btrace.h.
5687 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
5688 the vendor is unknown.
5689 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
5690 Maybe overwrite the btrace configuration's cpu.
5691 (btrace_compute_ftrace): Add cpu parameter. Update callers.
5692 (btrace_fetch): Add cpu parameter. Update callers.
5693 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
5694 Maybe overwrite the btrace configuration's cpu. Skip enabling
5695 errata workarounds if the vendor is unknown.
5696 * python/py-record-btrace.c: Include record-btrace.h.
5697 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
5698 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
5699 * record-btrace.c (record_btrace_cpu_state_kind): New.
5700 (record_btrace_cpu): New.
5701 (set_record_btrace_cpu_cmdlist): New.
5702 (record_btrace_get_cpu): New.
5703 (require_btrace_thread, record_btrace_info)
5704 (record_btrace_resume_thread): Call record_btrace_get_cpu.
5705 (cmd_set_record_btrace_cpu_none): New.
5706 (cmd_set_record_btrace_cpu_auto): New.
5707 (cmd_set_record_btrace_cpu): New.
5708 (cmd_show_record_btrace_cpu): New.
5709 (_initialize_record_btrace): Initialize set/show record btrace cpu
5710 commands.
5711 * record-btrace.h (record_btrace_get_cpu): New.
5712
69f90c75
MM
57132018-04-13 Markus Metzger <markus.t.metzger@intel.com>
5714
5715 * record.c (set_record_command): Fix typo in message.
5716
b85310e1
MM
57172018-04-13 Markus Metzger <markus.t.metzger@intel.com>
5718
5719 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
5720
1d509aa6
MM
57212018-04-13 Markus Metzger <markus.t.metzger@intel.com>
5722
5723 * infrun.c (process_event_stop_test): Call
5724 gdbarch_in_indirect_branch_thunk.
5725 * gdbarch.sh (in_indirect_branch_thunk): New.
5726 * gdbarch.c: Regenerated.
5727 * gdbarch.h: Regenerated.
5728 * x86-tdep.h: New.
5729 * x86-tdep.c: New.
5730 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
5731 (HFILES_NO_SRCDIR): Add x86-tdep.h.
5732 (ALLDEPFILES): Add x86-tdep.c.
5733 * arch-utils.h (default_in_indirect_branch_thunk): New.
5734 * arch-utils.c (default_in_indirect_branch_thunk): New.
5735 * i386-tdep: Include x86-tdep.h.
5736 (i386_in_indirect_branch_thunk): New.
5737 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
5738 function.
5739 * amd64-tdep: Include x86-tdep.h.
5740 (amd64_in_indirect_branch_thunk): New.
5741 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
5742
b4be9bfd
JK
57432018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5744
5745 PR gdb/23053
5746 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
5747 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
5748 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
5749 regression.
5750
53d7df28
TT
57512018-04-12 Tom Tromey <tom@tromey.com>
5752
5753 * rust-lang.c (rust_print_struct_def): Remove univariant code.
5754 (rust_evaluate_subexp): Likewise.
5755
70b33f19
PA
57562018-04-12 Pedro Alves <palves@redhat.com>
5757
5758 * procfs.c (procfs_detach): Make forward declaration's prototype
5759 match definition's protototype.
5760 (proc_get_LDT_entry): Remove stale do_cleanups call.
5761
436411b1
PA
57622018-04-12 Pedro Alves <palves@redhat.com>
5763
5764 * target.h (target_ops::to_has_exited): Delete.
5765 (target_has_exited): Delete.
5766 * target-delegates.c: Regenerate.
5767
20db9c52
PA
57682018-04-11 Pedro Alves <palves@redhat.com>
5769
5770 * target.c (fileio_fh_t::t): Add comment.
5771 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
5772 (target_fileio_close): Handle a NULL target.
5773 (invalidate_fileio_fh): New.
5774 (target_close): Call it.
5775 * remote.c (remote_hostio_send_command): No longer check whether
5776 remote_desc is open.
5777
5ff79300
PA
57782018-04-11 Pedro Alves <palves@redhat.com>
5779
5780 * target.c (fileio_fh_t): Make it a named struct instead of a
5781 typedef.
5782 (fileio_fh_t::is_closed): New method.
5783 (DEF_VEC_O (fileio_fh_t)): Remove.
5784 (fileio_fhandles): Now a std::vector.
5785 (is_closed_fileio_fh): Delete.
5786 (acquire_fileio_fd): Adjust. Rename parameters.
5787 (release_fileio_fd): Adjust.
5788 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
5789 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
5790 (target_fileio_close): Adjust.
5791
6e22e10d
SM
57922018-04-10 Simon Marchi <simon.marchi@ericsson.com>
5793
5794 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
5795 index.
5796
731f534f
PA
57972018-04-10 Pedro Alves <palves@redhat.com>
5798
5799 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
5800 (scoped_finish_thread_state): New class.
5801 * infcmd.c (run_command_1): Use it instead of finish_thread_state
5802 cleanup.
5803 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
5804 (fetch_inferior_event, normal_stop): Likewise.
5805 * thread.c (finish_thread_state_cleanup): Delete.
5806
d5f4488f
SM
58072018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5808 Pedro Alves <palves@redhat.com>
5809
5810 * value.c: Include "selftest.h" and "common/array-view.h".
5811 (struct range) <operator ==>: New.
5812 (test_ranges_contain): New.
5813 (check_ranges_vector): New.
5814 (test_insert_into_bit_range_vector): New.
5815 (_initialize_values): Register selftests.
5816 * common/array-view.h (operator==, operator!=): New.
5817
b24531ed
SM
58182018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5819
5820 * common/gdb_vecs.h (unordered_remove): Add overload that takes
5821 an iterator.
5822 * inline-frame.c: Include <algorithm>.
5823 (struct inline_state): Add constructor.
5824 (inline_state_s): Remove.
5825 (DEF_VEC_O(inline_state_s)): Remove.
5826 (inline_states): Change type to std::vector.
5827 (find_inline_frame_state): Adjust to std::vector.
5828 (allocate_inline_frame_state): Remove.
5829 (clear_inline_frame_state): Adjust to std::vector.
5830 (skip_inline_frames): Adjust to std::vector.
5831
c252925c
SM
58322018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5833
5834 * tracepoint.h (struct trace_state_variable): Add constructor.
5835 <name>: Change type to std::string.
5836 * tracepoint.c (tsv_s): Remove.
5837 (DEF_VEC_O(tsv_s)): Remove.
5838 (tvariables): Change to std::vector.
5839 (create_trace_state_variable): Adjust to std::vector.
5840 (find_trace_state_variable): Likewise.
5841 (find_trace_state_variable_by_number): Likewise.
5842 (delete_trace_state_variable): Likewise.
5843 (trace_variable_command): Adjust to std::string.
5844 (delete_trace_variable_command): Likewise.
5845 (tvariables_info_1): Adjust to std::vector.
5846 (save_trace_state_variables): Likewise.
5847 (start_tracing): Likewise.
5848 (merge_uploaded_trace_state_variables): Adjust to std::vector
5849 and std::string.
5850 * target.h (struct target_ops)
5851 <to_download_trace_state_variable>: Pass reference to
5852 trace_state_variable.
5853 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
5854 * target-delegates.c: Re-generate.
5855 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
5856 (mi_tsv_deleted): Likewise.
5857 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5858 * remote.c (remote_download_trace_state_variable): Change
5859 pointer to reference and adjust.
5860 * make-target-delegates (parse_argtypes): Handle references.
5861 (write_function_header): Likewise.
5862 (munge_type): Likewise.
5863
c9638d26
SM
58642018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5865
5866 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5867 string_view-selftests.c.
5868 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
5869 testsuite.
5870 * unittests/basic_string_view/cons/char/1.cc: Likewise.
5871 * unittests/basic_string_view/cons/char/2.cc: Likewise.
5872 * unittests/basic_string_view/cons/char/3.cc: Likewise.
5873 * unittests/basic_string_view/element_access/char/1.cc:
5874 Likewise.
5875 * unittests/basic_string_view/element_access/char/empty.cc:
5876 Likewise.
5877 * unittests/basic_string_view/element_access/char/front_back.cc:
5878 Likewise.
5879 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
5880 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
5881 Likewise.
5882 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
5883 Likewise.
5884 * unittests/basic_string_view/modifiers/swap/char/1.cc:
5885 Likewise.
5886 * unittests/basic_string_view/operations/compare/char/1.cc:
5887 Likewise.
5888 * unittests/basic_string_view/operations/compare/char/13650.cc:
5889 Likewise.
5890 * unittests/basic_string_view/operations/copy/char/1.cc:
5891 Likewise.
5892 * unittests/basic_string_view/operations/data/char/1.cc:
5893 Likewise.
5894 * unittests/basic_string_view/operations/find/char/1.cc:
5895 Likewise.
5896 * unittests/basic_string_view/operations/find/char/2.cc:
5897 Likewise.
5898 * unittests/basic_string_view/operations/find/char/3.cc:
5899 Likewise.
5900 * unittests/basic_string_view/operations/find/char/4.cc:
5901 Likewise.
5902 * unittests/basic_string_view/operations/rfind/char/1.cc:
5903 Likewise.
5904 * unittests/basic_string_view/operations/rfind/char/2.cc:
5905 Likewise.
5906 * unittests/basic_string_view/operations/rfind/char/3.cc:
5907 Likewise.
5908 * unittests/basic_string_view/operations/substr/char/1.cc:
5909 Likewise.
5910 * unittests/basic_string_view/operators/char/2.cc: Likewise.
5911 * unittests/string_view-selftests.c: New file.
5912
fdc11678
SM
59132018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5914
5915 * unittests/basic_string_view/capacity/1.cc: New file.
5916 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
5917 * unittests/basic_string_view/cons/char/1.cc: New file.
5918 * unittests/basic_string_view/cons/char/2.cc: New file.
5919 * unittests/basic_string_view/cons/char/3.cc: New file.
5920 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
5921 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
5922 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
5923 * unittests/basic_string_view/element_access/char/1.cc: New file.
5924 * unittests/basic_string_view/element_access/char/2.cc: New file.
5925 * unittests/basic_string_view/element_access/char/empty.cc: New file.
5926 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
5927 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
5928 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
5929 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
5930 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
5931 * unittests/basic_string_view/include.cc: New file.
5932 * unittests/basic_string_view/inserters/char/1.cc: New file.
5933 * unittests/basic_string_view/inserters/char/2.cc: New file.
5934 * unittests/basic_string_view/inserters/char/3.cc: New file.
5935 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
5936 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
5937 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
5938 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
5939 * unittests/basic_string_view/literals/types.cc: New file.
5940 * unittests/basic_string_view/literals/values.cc: New file.
5941 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
5942 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
5943 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
5944 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
5945 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
5946 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
5947 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
5948 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
5949 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
5950 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
5951 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
5952 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
5953 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
5954 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
5955 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
5956 * unittests/basic_string_view/operations/data/char/1.cc: New file.
5957 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
5958 * unittests/basic_string_view/operations/find/char/1.cc: New file.
5959 * unittests/basic_string_view/operations/find/char/2.cc: New file.
5960 * unittests/basic_string_view/operations/find/char/3.cc: New file.
5961 * unittests/basic_string_view/operations/find/char/4.cc: New file.
5962 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
5963 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
5964 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
5965 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
5966 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
5967 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
5968 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
5969 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
5970 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
5971 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
5972 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
5973 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
5974 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
5975 * unittests/basic_string_view/operators/char/2.cc: New file.
5976 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
5977 * unittests/basic_string_view/range_access/char/1.cc: New file.
5978 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
5979 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
5980 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
5981 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
5982 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
5983 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
5984 * unittests/basic_string_view/requirements/typedefs.cc: New file.
5985 * unittests/basic_string_view/typedefs.cc: New file.
5986 * unittests/basic_string_view/types/1.cc: New file.
5987
8345c4a2
SM
59882018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5989
5990 * common/gdb_string_view.h: Remove libstdc++ implementation
5991 details, adjust to gdb reality.
5992 * common/gdb_string_view.tcc: Likewise.
5993 * cli/cli-script.c (struct string_view): Remove.
5994 (user_args) <m_args>: Change element type to gdb::string_view.
5995 (user_args::insert_args): Adjust.
5996
7adcdf08
SM
59972018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5998
5999 * common/gdb_string_view.h: New file.
6000 * common/gdb_string_view.tcc: New file.
6001
41260ac2
SM
60022018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6003
6004 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
6005 * configure: Re-generate.
6006
0bee6dd4
PA
60072018-04-09 Pedro Alves <palves@redhat.com>
6008
6009 * gdbarch.sh: Include "observable.h" instead of "observer.h".
6010 (set_target_gdbarch): Call
6011 gdb::observers::architecture_changed.notify instead of
6012 observer_notify_architecture_changed.
6013
6f14adc5
SM
60142018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6015
6016 * tracepoint.c (struct current_traceframe_cleanup): Remove.
6017 (do_restore_current_traceframe_cleanup): Remove.
6018 (restore_current_traceframe_cleanup_dtor): Remove.
6019 (make_cleanup_restore_current_traceframe): Remove.
6020 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
6021 New.
6022 * tracepoint.h (struct scoped_restore_current_traceframe): New.
6023 * infrun.c (fetch_inferior_event): Use
6024 scoped_restore_current_traceframe.
6025
b2bdb8cf
SM
60262018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
6029 Remove.
6030 <n_allocated_type_units>: Remove.
6031 <all_type_units>: Change to std::vector.
6032 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
6033 to std::vector change.
6034 (dwarf2_per_objfile::get_cutu): Likewise.
6035 (dwarf2_per_objfile::get_tu): Likewise.
6036 (create_signatured_type_table_from_index): Likewise.
6037 (create_signatured_type_table_from_debug_names): Likewise.
6038 (dw2_symtab_iter_next): Likewise.
6039 (dw2_print_stats): Likewise.
6040 (dw2_expand_all_symtabs): Likewise.
6041 (dw2_expand_marked_cus): Likewise.
6042 (dw2_debug_names_iterator::next): Likewise.
6043 (dwarf2_initialize_objfile): Likewise.
6044 (add_signatured_type_cu_to_table): Likewise.
6045 (create_all_type_units): Likewise.
6046 (add_type_unit): Likewise.
6047 (struct tu_abbrev_offset): Add constructor.
6048 (build_type_psymtabs_1): Adjust to std::vector change.
6049 (print_tu_stats): Likewise.
6050 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
6051 (write_debug_names): Likewise.
6052
b76e467d
SM
60532018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6054
6055 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
6056 Make an std::vector.
6057 <n_comp_units>: Remove.
6058 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
6059 to std::vector change.
6060 (dwarf2_per_objfile::get_cutu): Likewise.
6061 (dwarf2_per_objfile::get_cu): Likewise.
6062 (create_cus_from_index): Likewise.
6063 (create_addrmap_from_index): Likewise.
6064 (create_addrmap_from_aranges): Likewise.
6065 (dwarf2_read_index): Likewise.
6066 (dw2_find_last_source_symtab): Likewise.
6067 (dw2_map_symtabs_matching_filename): Likewise.
6068 (dw2_symtab_iter_next): Likewise.
6069 (dw2_print_stats): Likewise.
6070 (dw2_expand_all_symtabs): Likewise.
6071 (dw2_expand_symtabs_with_fullname): Likewise.
6072 (dw2_expand_marked_cus): Likewise.
6073 (dw2_map_symbol_filenames): Likewise.
6074 (create_cus_from_debug_names): Likewise.
6075 (dwarf2_read_debug_names): Likewise.
6076 (dw2_debug_names_iterator::next): Likewise.
6077 (dwarf2_initialize_objfile): Likewise.
6078 (set_partial_user): Likewise.
6079 (dwarf2_build_psymtabs_hard): Likewise.
6080 (read_comp_units_from_section): Remove arguments, adjust to
6081 std::vector change.
6082 (create_all_comp_units): Adjust to std::vector and
6083 read_comp_units_from_section changes.
6084 (dwarf2_find_containing_comp_unit): Adjust to std::vector
6085 change.
6086 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
6087 (psyms_seen_size): Likewise.
6088 (write_gdbindex): Likewise.
6089 (write_debug_names): Likewise.
6090
12359b5e
SM
60912018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6092
6093 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
6094 with dwarf2_per_objfile.
6095 (create_cus_from_index): Likewise.
6096 (create_signatured_type_table_from_index): Likewise.
6097 (dwarf2_read_index): Likewise.
6098 (dwarf2_initialize_objfile): Likewise.
6099 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
6100 per_cu rather than get_dwarf2_per_objfile.
6101
ff4c9fec
SM
61022018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6103
6104 * dwarf2read.h (struct signatured_type): Forward declare.
6105 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
6106 New methods.
6107 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
6108 (dw2_get_cutu): ...this.
6109 (dwarf2_per_objfile::get_cu): Rename from...
6110 (dw2_get_cu): ...this.
6111 (dwarf2_per_objfile::get_tu): New.
6112 (create_addrmap_from_index): Adjust.
6113 (create_addrmap_from_aranges): Adjust.
6114 (dw2_find_last_source_symtab): Adjust.
6115 (dw2_map_symtabs_matching_filename): Adjust.
6116 (dw2_symtab_iter_next): Adjust.
6117 (dw2_print_stats): Adjust.
6118 (dw2_expand_all_symtabs): Adjust.
6119 (dw2_expand_symtabs_with_fullname): Adjust.
6120 (dw2_expand_marked_cus): Adjust.
6121 (dw_expand_symtabs_matching_file_matcher): Adjust.
6122 (dw2_map_symbol_filenames): Adjust.
6123 (dw2_debug_names_iterator::next): Adjust.
6124 (dwarf2_initialize_objfile): Adjust.
6125 (set_partial_user): Adjust.
6126 (dwarf2_build_psymtabs_hard): Adjust.
6127
5ca3fcb6
SM
61282018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6129
6130 * dwarf2read.c (create_signatured_type_table_from_debug_names):
6131 Remove unused variables.
6132 (dw2_map_symtabs_matching_filename): Likewise.
6133 (dwarf2_record_block_ranges): Likewise.
6134 (dwarf2_read_addr_index): Likewise.
6135 (follow_die_offset): Likewise.
6136
b2e586e8
SM
61372018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6138
6139 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
6140 to symbol_file_add_main.
6141
7c4e78cf
SM
61422018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6143
6144 PR mi/22299
6145 * mi/mi-console.c (do_fputc_async_safe): New.
6146 (mi_console_file::write_async_safe): New.
6147 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
6148 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
6149 New.
6150 * ui-file.c (ui_file::putstrn): Adjust call to
6151 fputstrn_unfiltered.
6152 * utils.c (printchar): Replace do_fputs and do_fprintf
6153 parameters by do_fputc.
6154 (fputstr_filtered): Adjust call to printchar.
6155 (fputstr_unfiltered): Likewise.
6156 (fputstrn_filtered): Likewise.
6157 (fputstrn_unfiltered): Add do_fputc parameter, pass to
6158 printchar.
6159 * utils.h (do_fputc_ftype): New typedef.
6160 (fputstrn_unfiltered): Add do_fputc parameter.
6161
5dc026d3
SM
61622018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6163
6164 * regformats/i386/i386-avx.dat: Remove.
6165
c912f608
SM
61662018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6167
6168 PR gdb/22979
6169 * amd64-tdep.c (amd64_none_init_abi): New function.
6170 (amd64_x32_none_init_abi): New function.
6171 (_initialize_amd64_tdep): Register handlers for x86-64 and
6172 x64_32 with GDB_OSABI_NONE.
6173 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
6174 GDB_OSABI_NONE osabi.
6175
26540402
SM
61762018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6177
6178 PR gdb/22980
6179 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
6180 GDB_OSABI_NONE.
6181 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
6182 * osabi.c (gdb_osabi_names): Add "unknown" entry.
6183
9018be22
SM
61842018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6185
6186 * common/byte-vector.h (char_vector): New type.
6187 * target.h (target_read_alloc): Return
6188 gdb::optional<byte_vector>.
6189 (target_read_stralloc): Return gdb::optional<char_vector>.
6190 (target_get_osdata): Return gdb::optional<char_vector>.
6191 * target.c (target_read_alloc_1): Templatize. Replacement
6192 manual memory management with vector.
6193 (target_read_alloc): Change return type, adjust.
6194 (target_read_stralloc): Change return type, adjust.
6195 (target_get_osdata): Change return type, adjust.
6196 * auxv.c (struct auxv_info) <length>: Remove.
6197 <data>: Change type to gdb::optional<byte_vector>.
6198 (auxv_inferior_data_cleanup): Free auxv_info with delete.
6199 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
6200 (target_auxv_search): Adjust.
6201 (fprint_target_auxv): Adjust.
6202 * avr-tdep.c (avr_io_reg_read_command): Adjust.
6203 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
6204 (linux_make_corefile_notes): Adjust.
6205 * osdata.c (get_osdata): Adjust.
6206 * remote.c (remote_get_threads_with_qxfer): Adjust.
6207 (remote_memory_map): Adjust.
6208 (remote_traceframe_info): Adjust.
6209 (btrace_read_config): Adjust.
6210 (remote_read_btrace): Adjust.
6211 (remote_pid_to_exec_file): Adjust.
6212 * solib-aix.c (solib_aix_get_library_list): Adjust.
6213 * solib-dsbt.c (decode_loadmap): Don't free buf.
6214 (dsbt_get_initial_loadmaps): Adjust.
6215 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
6216 * solib-target.c (solib_target_current_sos): Adjust.
6217 * tracepoint.c (sdata_make_value): Adjust.
6218 * xml-support.c (xinclude_start_include): Adjust.
6219 (xml_fetch_content_from_file): Adjust.
6220 * xml-support.h (xml_fetch_another): Change return type.
6221 (xml_fetch_content_from_file): Change return type.
6222 * xml-syscall.c (xml_init_syscalls_info): Adjust.
6223 * xml-tdesc.c (file_read_description_xml): Adjust.
6224 (fetch_available_features_from_target): Change return type.
6225 (target_fetch_description_xml): Adjust.
6226 (target_read_description_xml): Adjust.
6227
14c88955
TT
62282018-04-06 Tom Tromey <tom@tromey.com>
6229
6230 * value.c (~value): Update.
6231 (struct value) <contents>: Now unique_xmalloc_ptr.
6232 (value_contents_bits_eq, allocate_value_contents)
6233 (value_contents_raw, value_contents_all_raw)
6234 (value_contents_for_printing, value_contents_for_printing_const)
6235 (set_value_enclosing_type): Update.
6236
0c7e6dd8
TT
62372018-04-06 Tom Tromey <tom@tromey.com>
6238
6239 * value.c (range_s): Remove typedef, VEC.
6240 (struct range): Add operator<.
6241 (range_lessthan): Remove.
6242 (ranges_contain): Change type.
6243 (~value): Update.
6244 (struct value) <unavailable, optimized_out>: Now std::vector.
6245 (value_entirely_available)
6246 (value_entirely_covered_by_range_vector)
6247 (value_entirely_unavailable, value_entirely_optimized_out):
6248 Update.
6249 (insert_into_bit_range_vector): Change argument type.
6250 (find_first_range_overlap): Likewise.
6251 (struct ranges_and_idx, value_contents_bits_eq)
6252 (require_not_optimized_out, require_available): Update.
6253 (ranges_copy_adjusted): Change argument types.
6254 (value_optimized_out, value_copy, value_fetch_lazy): Update.
6255
2c8331b9
TT
62562018-04-06 Tom Tromey <tom@tromey.com>
6257
6258 * value.c (~value): Update.
6259 (struct value) <parent>: Now a value_ref_ptr.
6260 (value_parent, set_value_parent, value_address, value_copy):
6261 Update.
6262
466ce3ae
TT
62632018-04-06 Tom Tromey <tom@tromey.com>
6264
6265 * value.c (struct value): Add constructor, destructor, and member
6266 initializers.
6267 (allocate_value_lazy, value_decref): Update.
6268
062d818d
TT
62692018-04-06 Tom Tromey <tom@tromey.com>
6270
6271 * value.c (struct value) <released, next>: Remove.
6272 (all_values): Now a std::vector.
6273 (allocate_value_lazy): Update.
6274 (value_next): Remove.
6275 (value_mark, value_free_to_mark, release_value)
6276 (value_release_to_mark): Update.
6277
a6535de1
TT
62782018-04-06 Tom Tromey <tom@tromey.com>
6279
6280 * value.h (fetch_subexp_value, value_release_to_mark): Update.
6281 (free_value_chain): Remove.
6282 * value.c (free_value_chain): Remove.
6283 (value_release_to_mark): Return a std::vector.
6284 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
6285 std::vector.
6286 (check_condition): Update.
6287 * eval.c (fetch_subexp_value): Change "val_chain" to a
6288 std::vector.
6289 * breakpoint.c (update_watchpoint): Update.
6290 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
6291
b5621201
TT
62922018-04-06 Tom Tromey <tom@tromey.com>
6293
6294 * value.h (free_all_values): Remove.
6295 * value.c (free_all_values): Remove.
6296
4d0266a0
TT
62972018-04-06 Tom Tromey <tom@tromey.com>
6298
6299 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
6300 (value_history_chain, value_history_count): Remove.
6301 (value_history): New global.
6302 (record_latest_value, access_value_history, show_values)
6303 (preserve_values): Update.
6304
b4d61099
TT
63052018-04-06 Tom Tromey <tom@tromey.com>
6306
6307 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
6308 * varobj.c (varobj_set_display_format, varobj_set_value)
6309 (install_default_visualizer, construct_visualizer)
6310 (install_new_value, ~varobj, varobj_get_value_type)
6311 (my_value_of_variable, varobj_editable_p): Update.
6312 * c-varobj.c (c_describe_child, c_value_of_variable)
6313 (cplus_number_of_children, cplus_describe_child): Update.
6314 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
6315 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
6316 (ada_value_of_variable, ada_value_is_changeable_p): Update.
6317
9b558729
TT
63182018-04-06 Tom Tromey <tom@tromey.com>
6319
6320 * printcmd.c (last_examine_address): Change type to
6321 value_ref_ptr.
6322 (do_examine, x_command): Update.
6323
850645cf
TT
63242018-04-06 Tom Tromey <tom@tromey.com>
6325
6326 * value.c (release_value): Update.
6327 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
6328 (struct bpstats) <val>: Now a value_ref_ptr.
6329 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
6330 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
6331 (~watchpoint, print_it_watchpoint, watch_command_1)
6332 (invalidate_bp_value_on_memory_change): Update.
6333
22bc8444
TT
63342018-04-06 Tom Tromey <tom@tromey.com>
6335
6336 * varobj.c (varobj_clear_saved_item)
6337 (update_dynamic_varobj_children, install_new_value, ~varobj):
6338 Update.
6339 * value.h (value_incref): Move declaration earlier.
6340 (value_decref): Rename from value_free.
6341 (struct value_ref_policy): New.
6342 (value_ref_ptr): New typedef.
6343 (struct value_deleter): Remove.
6344 (gdb_value_up): Remove typedef.
6345 (release_value): Change return type.
6346 (release_value_or_incref): Remove.
6347 * value.c (set_value_parent): Update.
6348 (value_incref): Change return type.
6349 (value_decref): Rename from value_free.
6350 (value_free_to_mark, free_all_values, free_value_chain): Update.
6351 (release_value): Return value_ref_ptr.
6352 (release_value_or_incref): Remove.
6353 (record_latest_value, set_internalvar, clear_internalvar):
6354 Update.
6355 * stack.c (info_frame_command): Don't call value_free.
6356 * python/py-value.c (valpy_dealloc, valpy_new)
6357 (value_to_value_object): Update.
6358 * printcmd.c (do_examine): Update.
6359 * opencl-lang.c (lval_func_free_closure): Update.
6360 * mi/mi-main.c (register_changed_p): Don't call value_free.
6361 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
6362 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
6363 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
6364 value_free.
6365 * guile/scm-value.c (vlscm_free_value_smob)
6366 (vlscm_scm_from_value): Update.
6367 * frame.c (frame_register_unwind, frame_unwind_register_signed)
6368 (frame_unwind_register_unsigned, get_frame_register_bytes)
6369 (put_frame_register_bytes): Don't call value_free.
6370 * findvar.c (address_from_register): Don't call value_free.
6371 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
6372 * dwarf2loc.c (entry_data_value_free_closure)
6373 (value_of_dwarf_reg_entry, free_pieced_value_closure)
6374 (dwarf2_evaluate_loc_desc_full): Update.
6375 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
6376 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
6377 (~watchpoint, watch_command_1)
6378 (invalidate_bp_value_on_memory_change): Update.
6379 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
6380
7f8a5d38
SM
63812018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
6382
6383 PR gdb/23022
6384 * warning.m4: Add -Wno-error=deprecated-register.
6385 * configure: Re-generate.
6386
8a76bd3b
TT
63872018-04-05 Tom Tromey <tom@tromey.com>
6388
6389 * linespec.h: Remove include of "vec.h".
6390
8e8d776e
TT
63912018-04-05 Tom Tromey <tom@tromey.com>
6392
6393 * linespec.c (typep): Remove typedef.
6394 (find_methods, find_superclass_methods): Take a std::vector.
6395 (find_method): Use std::vector.
6396
9b2f8581
TT
63972018-04-05 Tom Tromey <tom@tromey.com>
6398
6399 * utils.c (compare_strings): Remove.
6400 * utils.h (compare_strings): Remove.
6401 * objc-lang.h (find_imps): Update.
6402 * objc-lang.c (find_methods): Take a std::vector.
6403 (uniquify_strings, find_imps): Likewise.
6404 * linespec.c (find_methods): Take a std::vector.
6405 (decode_objc): Use std::vector.
6406 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
6407 a std::vector.
6408 (find_method, find_function_symbols): Use std::vector.
6409
459a2e4c
TT
64102018-04-05 Tom Tromey <tom@tromey.com>
6411
6412 * completer.c (completion_tracker::completion_tracker): Remove
6413 cast.
6414 (completion_tracker::discard_completions): Likewise.
6415 * breakpoint.c (ambiguous_names_p): Remove cast.
6416 * ada-lang.c (_initialize_ada_language): Remove cast.
6417 * utils.h (streq): Update.
6418 (streq_hash): Add new declaration.
6419 * utils.c (streq): Return bool.
6420 (streq_hash): New function.
6421
9be2c17a
TT
64222018-04-05 Tom Tromey <tom@tromey.com>
6423
6424 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
6425 Remove a string copy.
6426
f73c6ece
TT
64272018-04-05 Tom Tromey <tom@tromey.com>
6428
6429 * linespec.c (filter_results): Use std::vector.
6430 (decode_line_2, decode_line_full): Update.
6431
53a0f8a2
TT
64322018-04-05 Tom Tromey <tom@tromey.com>
6433
6434 * linespec.c (canonical_to_fullform): Return std::string.
6435 (filter_results): Update.
6436 (struct decode_line_2_item): Add constructor.
6437 <fullform, displayform>: Now std::string.
6438 (decode_line_2_compare_items): Now a std::sort comparator.
6439 (decode_line_2): Update.
6440
a5b5adf5
TT
64412018-04-05 Tom Tromey <tom@tromey.com>
6442
6443 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
6444 (unexpected_linespec_error): Update.
6445 (linespec_parse_basic, parse_linespec): Update.
6446
6a307fc5
TT
64472018-04-05 Tom Tromey <tom@tromey.com>
6448
6449 * linespec.c (linespec_parse_basic): Reindent.
6450
41c1efc6
TT
64512018-04-05 Tom Tromey <tom@tromey.com>
6452
6453 * minsyms.h (iterate_over_minimal_symbols): Update.
6454 * minsyms.c (iterate_over_minimal_symbols): Take a
6455 gdb::function_view.
6456 * linespec.c (struct collect_minsyms): Remove.
6457 (compare_msyms): Now a std::sort comparator.
6458 (add_minsym): Add parameters.
6459 (search_minsyms_for_name): Update. Use std::vector.
6460
c5edbf3d
TT
64612018-04-03 Tom Tromey <tom@tromey.com>
6462
6463 * mipsread.c (read_alphacoff_dynamic_symtab): Use
6464 gdb::byte_vector.
6465
b39efc48
WP
64662018-04-02 Weimin Pan <weimin.pan@oracle.com>
6467
6468 * MAINTAINERS (Write After Approval): Add Weimin Pan.
6469
121ad66c 64702018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
6471
6472 PR gdb/16959
6473 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
6474 printing static type.
6475
09473be8
TT
64762018-04-01 Tom Tromey <tom@tromey.com>
6477
6478 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
6479 (rs6000_xfer_shared_libraries): Update.
6480
ec1f2d91
SM
64812018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6482
6483 * common/gdb_vecs.h (char_ptr): Remove.
6484 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
6485
d8611974
SM
64862018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6487
6488 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
6489 with std::vector.
6490 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
6491
a18ba4e4
SM
64922018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6493
6494 * tracepoint.h (struct uploaded_tp): Initialize fields.
6495 <actions, step_actions, cmd_strings>: Change type to
6496 std::vector<char *>.
6497 * tracepoint.c (get_uploaded_tp): Allocate with new.
6498 (free_uploaded_tps): Free with delete.
6499 (parse_tracepoint_definition): Adjust to std::vector change.
6500 * breakpoint.c (read_uploaded_action): Likewise.
6501 (create_tracepoint_from_upload): Likewise.
6502 * ctf.c (ctf_write_uploaded_tp): Likewise.
6503 (SET_ARRAY_FIELD): Likewise.
6504 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
6505
a7961323
TT
65062018-03-30 Tom Tromey <tom@tromey.com>
6507
6508 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
6509 std::unique_ptr.
6510 (svr4_keep_data_in_core): Update.
6511 (svr4_read_so_list): Update.
6512
e83e4e24
TT
65132018-03-30 Tom Tromey <tom@tromey.com>
6514
6515 * windows-nat.c (handle_output_debug_string, handle_exception):
6516 Update.
6517 * target.h (target_read_string): Update.
6518 * target.c (target_read_string): Change "string" to
6519 unique_xmalloc_ptr.
6520 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6521 Update.
6522 * solib-frv.c (frv_current_sos): Update.
6523 * solib-dsbt.c (dsbt_current_sos): Update.
6524 * solib-darwin.c (darwin_current_sos): Update.
6525 * linux-thread-db.c (inferior_has_bug): Update.
6526 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
6527 Update. Remove alloca.
6528 * ada-lang.c (ada_main_name): Update.
6529
263db9a1
TT
65302018-03-30 Tom Tromey <tom@tromey.com>
6531
6532 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
6533 (struct dwo_file_deleter): New.
6534 (dwo_file_up): New typedef.
6535 (open_and_init_dwo_file): Use dwo_file_up.
6536 (free_dwo_file_cleanup): Remove.
6537
5dafb3d1
TT
65382018-03-30 Tom Tromey <tom@tromey.com>
6539
6540 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
6541 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
6542
11ed8cad
TT
65432018-03-30 Tom Tromey <tom@tromey.com>
6544
6545 * dwarf2read.c (class free_cached_comp_units): New class.
6546 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
6547 (free_cached_comp_units): Remove function.
6548
9ae79dac
TT
65492018-03-30 Tom Tromey <tom@tromey.com>
6550
6551 * utils.h (make_cleanup_unpush_target): Remove.
6552 * inf-ptrace.c (struct target_unpusher): New.
6553 (target_unpush_up) New typedef.
6554 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
6555 target_unpush_up.
6556 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
6557
5aa89276
TT
65582018-03-27 Tom Tromey <tom@tromey.com>
6559
6560 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
6561
1dbeed45
TT
65622018-03-27 Pedro Alves <palves@redhat.com>
6563 Tom Tromey <tom@tromey.com>
6564
6565 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
6566 destructor. Now a class.
6567 (gdb_readline_wrapper_cleanup): Remove function.
6568 (gdb_readline_wrapper): Remove cleanups.
6569
c819b2c0
TT
65702018-03-27 Tom Tromey <tom@tromey.com>
6571
6572 * typeprint.h (struct type_print_options) <local_typedefs,
6573 global_typedefs>: Remove "struct" keyword.
6574 (class typedef_hash_table): New class.
6575 (recursively_update_typedef_hash, add_template_parameters)
6576 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
6577 (find_typedef_in_hash): Don't declare.
6578 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
6579 (typedef_hash_table::recursively_update): Rename from
6580 recursively_update_typedef_hash. Now a member.
6581 (typedef_hash_table::add_template_parameters): Rename from
6582 add_template_parameters. Now a member.
6583 (typedef_hash_table::typedef_hash_table): Now a constructor;
6584 rename from create_typedef_hash.
6585 (typedef_hash_table::~typedef_hash_table): Now a destructor;
6586 rename from free_typedef_hash.
6587 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
6588 (do_free_global_table): Remove.
6589 (typedef_hash_table::typedef_hash_table): New constructor; renamed
6590 from copy_type_recursive.
6591 (create_global_typedef_table): Remove.
6592 (typedef_hash_table::find_global_typedef): Now a member of
6593 typedef_hash_table.
6594 (typedef_hash_table::find_typedef): Rename from
6595 find_typedef_in_hash; now a member.
6596 (whatis_exp): Update.
6597 * extension.h (struct ext_lang_type_printers): Add constructor and
6598 destructor.
6599 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
6600 declare.
6601 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
6602 Now a constructor; rename from start_ext_lang_type_printers.
6603 (ext_lang_type_printers): Now a destructor; rename from
6604 free_ext_lang_type_printers.
6605 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
6606 Update.
6607 (c_type_print_base_struct_union): Update. Remove cleanups.
6608
608219fb
TT
66092018-03-27 Tom Tromey <tom@tromey.com>
6610
6611 * dwarf-index-write.c: Include <cmath>.
6612
3fcded8f
JB
66132018-03-27 Joel Brobecker <brobecker@adacore.com>
6614
6615 * NEWS: Add entry describing new "set|show varsize-limit" command.
6616 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
6617 command.
6618 * printcmd.c (_initialize_printcmd): Add "set var" alias of
6619 "set variable".
6620
cd4fb1b2
SM
66212018-03-27 Simon Marchi <simon.marchi@ericsson.com>
6622
6623 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
6624 dwarf-index-write.c
6625 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
6626 * dwarf-index-common.c: New file.
6627 * dwarf-index-common.h: New file.
6628 * dwarf-index-write.c: New file.
6629 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
6630 (struct dwarf2_section_info): Move from here.
6631 (dwarf2_section_info_def): Likewise.
6632 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
6633 (offset_type): Likewise.
6634 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
6635 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
6636 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
6637 (byte_swap): Likewise.
6638 (MAYBE_SWAP): Likewise.
6639 (dwarf2_per_cu_ptr): Likewise.
6640 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
6641 (struct tu_stats): Likewise.
6642 (struct dwarf2_per_objfile): Likewise.
6643 (struct dwarf2_per_cu_data): Likewise.
6644 (struct signatured_type): Likewise.
6645 (sig_type_ptr): Likewise.
6646 (DEF_VEC_P (sig_type_ptr)): Likewise.
6647 (INDEX4_SUFFIX): Likewise.
6648 (INDEX5_SUFFIX): Likewise.
6649 (DEBUG_STR_SUFFIX): Likewise.
6650 (dwarf2_read_section): Make non-static.
6651 (mapped_index_string_hash): Move from here.
6652 (dwarf5_djb_hash): Likewise.
6653 (file_write): Likewise.
6654 (class data_buf): Likewise.
6655 (struct symtab_index_entry): Likewise.
6656 (struct mapped_symtab): Likewise.
6657 (find_slot): Likewise.
6658 (hash_expand): Likewise.
6659 (add_index_entry): Likewise.
6660 (uniquify_cu_indices): Likewise.
6661 (class c_str_view): Likewise.
6662 (class c_str_view_hasher): Likewise.
6663 (class vector_hasher): Likewise.
6664 (write_hash_table): Likewise.
6665 (psym_index_map): Likewise.
6666 (struct addrmap_index_data): Likewise.
6667 (add_address_entry): Likewise.
6668 (add_address_entry_worker): Likewise.
6669 (write_address_map): Likewise.
6670 (symbol_kind): Likewise.
6671 (write_psymbols): Likewise.
6672 (struct signatured_type_index_data): Likewise.
6673 (write_one_signatured_type): Likewise.
6674 (recursively_count_psymbols): Likewise.
6675 (recursively_write_psymbols): Likewise.
6676 (class debug_names): Likewise.
6677 (check_dwarf64_offsets): Likewise.
6678 (psyms_seen_size): Likewise.
6679 (write_gdbindex): Likewise.
6680 (write_debug_names): Likewise.
6681 (assert_file_size): Likewise.
6682 (write_psymtabs_to_index): Likewise.
6683 (save_gdb_index_command): Likewise.
6684 (_initialize_dwarf2_read): Don't register the "save gdb-index"
6685 command.
6686 * dwarf2read.h: New file.
6687
59cc4834
JB
66882018-03-27 Joel Brobecker <brobecker@adacore.com>
6689
6690 PR gdb/22670
6691 * dwarf2read.c (dwarf2_physname): Do not return the demangled
6692 symbol name if the CU's language stores symbol names in linkage
6693 format.
6694 * language.h (struct language_defn)
6695 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
6696 all instances of this struct.
6697
67501539
TT
66982018-03-26 Tom Tromey <tom@tromey.com>
6699
6700 * stack.c (backtrace_command_1): Remove verbose code.
6701
76c939ac
TT
67022018-03-26 Tom Tromey <tom@tromey.com>
6703
6704 * python/py-framefilter.c (py_print_type): Don't catch
6705 exceptions. Return void.
6706 (py_print_value): Likewise.
6707 (py_print_single_arg): Likewise.
6708 (enumerate_args): Don't catch exceptions.
6709 (py_print_args): Likewise.
6710 (py_print_frame): Likewise.
6711 (gdbpy_apply_frame_filter): Catch exceptions here.
6712
9507b29c
TT
67132018-03-26 Tom Tromey <tom@tromey.com>
6714
6715 * stack.c (_initialize_stack): Remove trailing newlines from help
6716 text. Add "Usage" line to "backtrace" help.
6717
eb68e487
TT
67182018-03-26 Tom Tromey <tom@tromey.com>
6719
6720 PR python/16486:
6721 * python/py-framefilter.c (py_print_args): Call wrap_hint.
6722
1f111921
TT
67232018-03-26 Tom Tromey <tom@tromey.com>
6724
6725 * python/py-framefilter.c (py_print_single_arg): Return
6726 EXT_LANG_BT_ERROR from catch.
6727
fb7eb8b5
TT
67282018-03-26 Tom Tromey <tom@tromey.com>
6729
6730 PR backtrace/15584:
6731 * stack.c (backtrace_command_1): Move some code into no-filters
6732 "if".
6733
4ca59a9f
TT
67342018-03-26 Tom Tromey <tom@tromey.com>
6735
6736 * python/py-framefilter.c (throw_quit_or_print_exception): New
6737 function.
6738 (gdbpy_apply_frame_filter): Use it.
6739
92256134
TT
67402018-03-26 Tom Tromey <tom@tromey.com>
6741
6742 PR cli/17716:
6743 * python/py-framefilter.c (py_print_type, py_print_value)
6744 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
6745 RETURN_MASK_ERROR.
6746
7a630bc2
TT
67472018-03-26 Tom Tromey <tom@tromey.com>
6748
6749 * python/py-framefilter.c (enumerate_args): Use
6750 gdb::unique_xmalloc_ptr.
6751
63283d4a
TT
67522018-03-26 Tom Tromey <tom@tromey.com>
6753
6754 * python/py-framefilter.c (py_print_frame): Return
6755 EXT_LANG_BT_OK.
6756 (gdbpy_apply_frame_filter): Update comment.
6757 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
6758 Remove.
6759 <EXT_LANG_BT_NO_FILTERS>: Change value.
6760
978d6c75
TT
67612018-03-26 Tom Tromey <tom@tromey.com>
6762
6763 PR backtrace/15582:
6764 * stack.c (backtrace_command): Parse "hide" argument.
6765 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
6766 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
6767 constant.
6768
1cf7e640
TT
67692018-03-26 Tom Tromey <tom@tromey.com>
6770
6771 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
6772 add "flags".
6773 (backtrace_command): Remove "fulltrace", add "flags".
6774
ea3b0687
TT
67752018-03-26 Tom Tromey <tom@tromey.com>
6776
6777 * stack.c (backtrace_command): Rewrite command line parsing.
6778
9f034d75
SM
67792018-03-26 Simon Marchi <simon.marchi@ericsson.com>
6780
6781 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
6782
ce1459e5
SM
67832018-03-26 Simon Marchi <simon.marchi@ericsson.com>
6784
6785 * filename-seen-cache.h: Add include guard.
6786
4f7ae6f5
KS
67872018-03-26 Keith Seitz <keiths@redhat.com>
6788
6789 * symfile.c (place_section): Remove "struct" from section_addr_info
6790 in comment.
6791 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
6792 "struct" keyword from section_addr_info.
6793
5cd3e386
AH
67942018-03-26 Alan Hayward <alan.hayward@arm.com>
6795
6796 * regformats/regdef.h (reg): Add constructors.
6797
3e5ef9a4
PA
67982018-03-25 Pedro Alves <palves@redhat.com>
6799
6800 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
6801 if then/else bodies in var_func_name extraction.
6802
c88d2fcc 68032018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
6804
6805 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
6806 lookup_minimal_symbol() to find symbol entry.
6807 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
6808
b7fee5a3
KS
68092018-03-23 Keith Seitz <keiths@redhat.com>
6810
6811 PR c++/22968
6812 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
6813 nested type definitions for C++, too.
6814
2cc9b304
TT
68152018-03-23 Tom Tromey <tom@tromey.com>
6816
6817 * machoread.c (struct oso_el): Add a constructor. Don't define as
6818 a typedef.
6819 (macho_register_oso): Remove.
6820 (macho_symtab_read): Take a std::vector.
6821 (oso_el_compare_name): Now a std::sort comparator.
6822 (macho_symfile_read_all_oso): Take a std::vector.
6823 (macho_symfile_read): Use std::vector. Remove cleanups.
6824
a2b2bc12
TT
68252018-03-22 Tom Tromey <tom@tromey.com>
6826
6827 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
6828 (record_full_goto_bookmark): Use std::string.
6829
7a8f494c
PFC
68302018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6831
6832 PR tdep/18295
6833 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
6834 a single mask.
6835
dd6d677f
PFC
68362018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6837
6838 * rs6000-tdep.c (store_insn_p): New function.
6839 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
6840 and cr_reg to their unshifted values. Use store_insn_p to
6841 match LR saves using either R1 or fdata->alloca_reg. Use
6842 store_insn_p to match CR saves. Set alloca_reg_offset
6843 when alloca_reg and framep are set. Remove lr_reg shift
6844 when assigning to fdata->lr_register.
6845
26d6cec4
AA
68462018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6847
6848 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
6849 command line args instead of emitting a warning.
6850
5d9310c4
SM
68512018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
6852
6853 * tracepoint.h (struct static_tracepoint_marker): Initialize
6854 fields, define default constructor, move constructor and move
6855 assignment, disable the rest.
6856 <str_id, extra>: Make std::string.
6857 (release_static_tracepoint_marker): Remove.
6858 (free_current_marker): Remove.
6859 * tracepoint.c (free_current_marker): Remove.
6860 (parse_static_tracepoint_marker_definition): Adjust to
6861 std::string, use new hex2str overload.
6862 (release_static_tracepoint_marker): Remove.
6863 (print_one_static_tracepoint_marker): Get marker by reference
6864 and adjust to std::string.
6865 (info_static_tracepoint_markers_command): Adjust to std::vector
6866 changes
6867 * target.h (static_tracepoint_marker_p): Remove typedef.
6868 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
6869 (struct target_ops) <to_static_tracepoint_marker_at>: Return
6870 bool.
6871 <to_static_tracepoint_markers_by_strid>: Return std::vector.
6872 * target-debug.h
6873 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
6874 (target_debug_print_std_vector_static_tracepoint_marker): New.
6875 (target_debug_print_struct_static_tracepoint_marker_p): Rename
6876 to...
6877 (target_debug_print_static_tracepoint_marker_p): ... this.
6878 * target-delegates.c: Re-generate.
6879 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
6880 Make std::string.
6881 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
6882 (decode_static_tracepoint_spec): Adjust to std::vector.
6883 (tracepoint_print_one_detail): Adjust to std::string.
6884 (strace_marker_decode_location): Adjust to std::string.
6885 (update_static_tracepoint): Adjust to std::string, remove call
6886 to release_static_tracepoint_marker.
6887 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6888 Adjust to std::vector.
6889 * remote.c (remote_static_tracepoint_marker_at): Return bool.
6890 (remote_static_tracepoint_markers_by_strid): Adjust to
6891 std::vector.
6892 * common/rsp-low.h (hex2str): New overload with explicit count
6893 of bytes.
6894 * common/rsp-low.c (hex2str): New overload with explicit count
6895 of bytes.
6896 * unittests/rsp-low-selftests.c (test_hex2str): New function.
6897 (_initialize_rsp_low_selftests): Add test_hex2str test.
6898 * unittests/tracepoint-selftests.c
6899 (test_parse_static_tracepoint_marker_definition): Adjust to
6900 std::string.
6901
62c222b6
SM
69022018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
6903
6904 * tracepoint.c (parse_static_tracepoint_marker_definition):
6905 Consider case where the definition is followed by more
6906 definitions.
6907 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6908 tracepoint-selftests.c.
6909 * unittests/tracepoint-selftests.c: New.
6910
7eb2418f
PFC
69112018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6912
6913 * MAINTAINERS (Write After Approval): Add Pedro Franco de
6914 Carvalho.
6915
7cbe16e9
SR
69162018-03-20 Stephen Roberts <stephen.roberts@arm.com>
6917
3d6b3b82 6918 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 6919
4ee89e90
SR
69202018-03-20 Stephen Roberts <stephen.roberts@arm.com>
6921
3d6b3b82 6922 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 6923
92630041
TT
69242018-03-19 Tom Tromey <tom@tromey.com>
6925
6926 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
6927 "IDENT" production.
6928
76727919
TT
69292018-03-19 Pedro Alves <palves@redhat.com>
6930 Tom Tromey <tom@tromey.com>
6931
6932 * unittests/observable-selftests.c: New file.
6933 * common/observable.h: New file.
6934 * observable.h: New file.
6935 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
6936 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
6937 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
6938 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
6939 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
6940 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
6941 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
6942 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
6943 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
6944 python/py-breakpoint.c, python/py-finishbreakpoint.c,
6945 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
6946 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
6947 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
6948 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
6949 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
6950 tui/tui-interp.c, valops.c: Update all users.
6951 * tui/tui-hooks.c (tui_bp_created_observer)
6952 (tui_bp_deleted_observer, tui_bp_modified_observer)
6953 (tui_inferior_exit_observer, tui_before_prompt_observer)
6954 (tui_normal_stop_observer, tui_register_changed_observer):
6955 Remove.
6956 (tui_observers_token): New global.
6957 (attach_or_detach, tui_attach_detach_observers): New functions.
6958 (tui_install_hooks, tui_remove_hooks): Use
6959 tui_attach_detach_observers.
6960 * record-btrace.c (record_btrace_thread_observer): Remove.
6961 (record_btrace_thread_observer_token): New global.
6962 * observer.sh: Remove.
6963 * observer.c: Rename to observable.c.
6964 * observable.c (namespace gdb_observers): Define new objects.
6965 (observer_debug): Move into gdb_observers namespace.
6966 (struct observer, struct observer_list, xalloc_observer_list_node)
6967 (xfree_observer_list_node, generic_observer_attach)
6968 (generic_observer_detach, generic_observer_notify): Remove.
6969 (_initialize_observer): Update.
6970 Don't include observer.inc.
6971 * Makefile.in (generated_files): Remove observer.h, observer.inc.
6972 (clean mostlyclean): Likewise.
6973 (observer.h, observer.inc): Remove targets.
6974 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
6975 (COMMON_SFILES): Use observable.c, not observer.c.
6976 * .gitignore: Remove observer.h.
6977
1cb1f3da
TT
69782018-03-18 Tom Tromey <tom@tromey.com>
6979
6980 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
6981 gdb::def_vector.
6982 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
6983
a06ab151
TT
69842018-03-17 Tom Tromey <tom@tromey.com>
6985
6986 * auto-load.c (auto_load_objfile_script_1): Use std::string.
6987
770623f7
TT
69882018-03-17 Tom Tromey <tom@tromey.com>
6989
6990 * target.c (class scoped_target_fd): New.
6991 (target_fileio_close_cleanup): Remove.
6992 (target_fileio_read_alloc_1): Use scoped_target_fd.
6993
39be3c7e
SM
69942018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6995
6996 * silent-rules.mk: New.
6997 * Makefile.in: Include silent-rules.mk
6998 (srcdir, VPATH, top_srcdir): Move up.
6999 (COMPILE): Add ECHO_CXX.
7000 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
7001 (init.c): Add ECHO_INIT_C.
7002 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
7003 (version.c): Add ECHO_GEN.
7004 (printcmd.o): Add ECHO_CXX.
7005 (target-float.o): Add ECHO_CXX.
7006 (ada-exp.o): Add ECHO_CXX.
7007 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
7008 (insight$(EXEEXT)): Add ECHO_CXXLD.
7009 * gnulib/configure.ac: Add AM_SILENT_RULES.
7010 * gnulib/aclocal.m4: Re-generate.
7011 * gnulib/configure: Re-generate.
7012 * gnulib/import/Makefile.in: Re-generate.
7013
37e136b1
TT
70142018-03-16 Tom Tromey <tom@tromey.com>
7015
7016 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
7017 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
7018 * utils.c (do_free_section_addr_info)
7019 (make_cleanup_free_section_addr_info): Remove.
7020 * symfile.h (struct other_sections): Add constructor.
7021 (struct section_addr_info): Remove.
7022 (section_addr_info): New typedef.
7023 (struct sym_fns) <sym_offsets>: Change type of parameter.
7024 (build_section_addr_info_from_objfile)
7025 (relative_addr_info_to_section_offsets, addr_info_make_relative)
7026 (default_symfile_offsets, symbol_file_add)
7027 (symbol_file_add_from_bfd)
7028 (build_section_addr_info_from_section_table): Update.
7029 (alloc_section_addr_info, free_section_addr_info): Don't declare.
7030 * symfile.c (alloc_section_addr_info): Remove.
7031 (build_section_addr_info_from_section_table): Change return type.
7032 Update.
7033 (build_section_addr_info_from_bfd)
7034 (build_section_addr_info_from_objfile): Likewise.
7035 (free_section_addr_info): Remove.
7036 (relative_addr_info_to_section_offsets): Change type of "addrs".
7037 (addrs_section_compar): Now a std::sort comparator.
7038 (addrs_section_sort): Change return type.
7039 (addr_info_make_relative): Change type of "addrs". Update.
7040 (default_symfile_offsets, syms_from_objfile_1)
7041 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
7042 (symbol_file_add_separate): Update.
7043 (symbol_file_add): Change type of "addrs". Update.
7044 (add_symbol_file_command): Update. Remove cleanups.
7045 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
7046 cleanups.
7047 * symfile-debug.c (debug_sym_offsets): Change type of "info".
7048 * solib.c (solib_read_symbols): Update.
7049 * objfiles.c (objfile_relocate): Update. Remove cleanups.
7050 * machoread.c (macho_symfile_offsets): Update.
7051 * jit.c (jit_bfd_try_read_symtab): Update.
7052
03afa6ef
SM
70532018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
7054
7055 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7056 unittests/utils-selftests.c.
7057 * unittests/utils-selftests.c: New file.
7058
3ae9ce5d
TT
70592018-03-14 Tom Tromey <tom@tromey.com>
7060
7061 PR cli/14977:
7062 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
7063 for NULL.
7064
b8c2339b
TT
70652018-03-14 Tom Tromey <tom@tromey.com>
7066
7067 PR cli/19918:
7068 * printcmd.c (printf_pointer): Allow "-" in format.
7069
80ae639d
TT
70702018-03-14 Tom Tromey <tom@tromey.com>
7071
7072 * printcmd.c (_initialize_printcmd): Add usage to printf.
7073
0d671d99
YQ
70742018-03-14 Yao Qi <qiyao@sourceware.org>
7075
7076 * MAINTAINERS: Update my email address.
7077
b577b6af
TT
70782018-03-13 Tom Tromey <tom@tromey.com>
7079
7080 * machoread.c (macho_check_dsym): Change filenamep to a
7081 std::string*.
7082 (macho_symfile_read): Update.
7083 * symfile.c (load_command): Use std::string.
7084
89a3b63e
AB
70852018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
7086
7087 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
7088 to error message string.
7089 (riscv_register_name): Use xsnprintf instead of sprintf.
7090 (riscv_insn::fetch_instruction): Use gdb_assert instead of
7091 internal_error.
7092 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
7093 error.
7094 (riscv_push_dummy_call): Likewise.
7095
984c7238
TT
70962018-03-12 Tom Tromey <tom@tromey.com>
7097
7098 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
7099 Use gdb::byte_vector.
7100 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
7101
933522d1
YQ
71022018-03-12 Yao Qi <yao.qi@linaro.org>
7103
7104 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
7105 parameter type to readable_regcache.
7106 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
7107 the declaration.
7108
be2daae6
TT
71092018-03-11 Tom Tromey <tom@tromey.com>
7110
7111 * dwarf2read.c (struct nextfield): Add initializers.
7112 (struct nextfnfield): Remove.
7113 (struct fnfieldlist): Add initializers. Remove "length" and
7114 "head", use std::vector.
7115 (struct decl_field_list): Remove.
7116 (struct field_info): Add initializers.
7117 <fields, baseclasses>: Now std::vector.
7118 <nbaseclasses, nfnfields, typedef_field_list_count,
7119 nested_types_list_count>: Remove.
7120 (dwarf2_add_field, dwarf2_add_type_defn)
7121 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
7122 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
7123 (process_structure_scope): Update.
7124
484cf504
TT
71252018-03-11 Tom Tromey <tom@tromey.com>
7126
7127 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
7128 for use by std::sort.
7129 (build_type_psymtabs_1): Use std::vector.
7130
9bd8e0b0
EZ
71312018-03-09 Eli Zaretskii <eliz@gnu.org>
7132
7133 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
7134 and LIBMPFR in the printed configuration.
7135
5dc1a704
TT
71362018-03-08 Tom Tromey <tom@tromey.com>
7137
7138 * source.c (get_filename_and_charpos): Use scoped_fd.
7139 * nto-procfs.c (procfs_open_1): Use scoped_fd.
7140 (procfs_pidlist): Likewise.
7141 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
7142 (iterate_over_mappings): Likewise.
7143
fdf07f3a
TT
71442018-03-08 Tom Tromey <tom@tromey.com>
7145
7146 * infcall.c (struct call_return_meta_info)
7147 <stack_temporaries_enabled>: Remove.
7148 (get_call_return_value, call_function_by_hand_dummy): Update.
7149 * thread.c (disable_thread_stack_temporaries): Remove.
7150 (enable_thread_stack_temporaries): Remove.
7151 (thread_stack_temporaries_enabled_p): Return bool.
7152 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
7153 (get_last_thread_stack_temporary): Update.
7154 * eval.c (evaluate_subexp): Update.
7155 * gdbthread.h (class enable_thread_stack_temporaries): Now a
7156 class, not a function.
7157 (value_ptr, value_vec): Remove typedefs.
7158 (class thread_info) <stack_temporaries_enabled>: Now bool.
7159 <stack_temporaries>: Now a std::vector.
7160 (thread_stack_temporaries_enabled_p)
7161 (value_in_thread_stack_temporaries): Return bool.
7162
567a3e54
SM
71632018-03-08 Simon Marchi <simon.marchi@ericsson.com>
7164
7165 * remote.c (putpkt_binary): Fix omitted bytes reporting.
7166 (getpkt_or_notif_sane_1): Likewise.
7167
00b40057
SM
71682018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7169
7170 * build-id.c (build_id_to_debug_bfd): Use std::string.
7171
a8dbfd58
SM
71722018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7173
7174 * build-id.c (find_separate_debug_file_by_buildid): Return
7175 std::string.
7176 * build-id.h (find_separate_debug_file_by_buildid): Return
7177 std::string.
7178 * coffread.c (coff_symfile_read): Adjust to std::string.
7179 * elfread.c (elf_symfile_read): Adjust to std::string.
7180 * symfile.c (separate_debug_file_exists): Change parameter to
7181 std::string.
7182 (find_separate_debug_file): Return std::string.
7183 (find_separate_debug_file_by_debuglink): Return std::string.
7184 * symfile.h (find_separate_debug_file_by_debuglink): Return
7185 std::string.
7186
e6a58aa8
SM
71872018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7188
7189 * common/xml-utils.c (xml_escape_text): Move code to...
7190 (xml_escape_text_append): ... this new function.
7191 * common/xml-utils.h (xml_escape_text_append): New declaration.
7192 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
7193 New function.
7194 (_initialize_xml_utils): register test_xml_escape_text_append as
7195 a selftest.
7196
4ef0bef6
AH
71972018-03-07 Alan Hayward <alan.hayward@arm.com>
7198
7199 * defs.h: Remove MAX_REGISTER_SIZE.
7200 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
7201 asserts.
7202 * python/py-unwind.c (pyuw_sniffer): Likewise.
7203
e0d3522b
TT
72042018-03-07 Tom Tromey <tom@tromey.com>
7205
7206 * linux-tdep.c (linux_info_proc): Update.
7207 * target.h (struct target_ops) <to_fileio_readlink>: Return
7208 optional<string>.
7209 (target_fileio_readlink): Return optional<string>.
7210 * remote.c (remote_hostio_readlink): Return optional<string>.
7211 * inf-child.c (inf_child_fileio_readlink): Return
7212 optional<string>.
7213 * target.c (target_fileio_readlink): Return optional<string>.
7214
ea005f31
AB
72152018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
7216
7217 * regcache.c (cooked_read_test): Add riscv to the list of
7218 architectures that have a save_reggroup.
7219
e95a97d4
AA
72202018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
7221
7222 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
7223 value is not a dynamic class object.
7224
d8344f3d
TT
72252018-03-06 Tom Tromey <tom@tromey.com>
7226
7227 * rust-exp.y: Formatting fixes.
7228
9add17f2
AB
72292018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7230
7231 * riscv-tdep.c (riscv_register_name): Remove target description
7232 support.
7233 (riscv_gdbarch_init): Remove target description check.
7234
c9486dfe
AB
72352018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7236
7237 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
7238 comment.
7239 * riscv-tdep.h: Likewise.
7240
d74aff3d
AB
72412018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7242
7243 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
7244 (riscv_pseudo_register_write): Delete.
7245 (riscv_gdbarch_init): Remove all use of pseudo registers.
7246
7ea78b59
SM
72472018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7248
7249 * record-btrace.c (btrace_print_lines): Replace cleanup
7250 parameter with RAII equivalents.
7251 (btrace_insn_history): Replace cleanup with RAII equivalents.
7252 * ui-out.h (make_cleanup_ui_out_list_begin_end,
7253 make_cleanup_ui_out_tuple_begin_end): Remove.
7254 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
7255 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
7256 make_cleanup_ui_out_list_begin_end): Remove.
7257
53127008
SM
72582018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7259
7260 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
7261 parameter types to std::vector. Use bool.
7262 (record_btrace_wait): Replace VEC(tp_t) with
7263 std::vector<thread_info *>.
7264 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
7265
228f1508
SM
72662018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7267
7268 * record-btrace.c (record_btrace_disable_callback): Remove.
7269 (struct scoped_btrace_disable): New.
7270 (record_btrace_open): Use scoped_btrace_disable.
7271
b2970c23
AB
72722018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7273
7274 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
7275 reading values from registers.
7276
fb294655
AB
72772018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7278
7279 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
7280 where appropriate.
7281
cab5bb9d
AB
72822018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7283
7284 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
7285 change parameter type. Use GDB's print functions, and use
7286 core_addr_to_string where appropriate.
7287 (riscv_push_dummy_call): Use core_addr_to_string where
7288 appropriate, update call to riscv_print_arg_location, and reindent
7289 a few lines.
7290 (riscv_return_value): Update call to riscv_print_arg_location.
7291
dbbb1059
AB
72922018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7293 Tim Newsome <tim@sifive.com>
7294 Albert Ou <a0u@eecs.berkeley.edu>
7295 Darius Rad <darius@bluespec.com>
7296
7297 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
7298 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
7299 (ALLDEPFILES): Add riscv-tdep.c
7300 * configure.tgt: Add riscv support.
7301 * riscv-tdep.c: New file.
7302 * riscv-tdep.h: New file.
7303 * NEWS: Mention new target.
7304 * MAINTAINERS: Add entry for riscv.
7305
5dc43913
AB
73062018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7307
7308 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
7309 fields within aggregates.
7310
3dea1ef7
SM
73112018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
7312
7313 * record-btrace.c (btrace_print_lines): Change type of flags to
7314 gdb_disassembly_flags.
7315
7efba073
JB
73162018-03-04 John Baldwin <jhb@FreeBSD.org>
7317
7318 * fbsd-nat.c: Include "inf-ptrace.h".
7319 (USE_SIGTRAP_SIGINFO): Conditionally define.
7320 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
7321 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
7322 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
7323 function.
7324 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
7325 Likewise.
7326 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
7327 Likewise.
7328 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
7329 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
7330 "supports_stopped_by_hw_breakpoint" target methods.
7331
386a8676
JB
73322018-03-04 John Baldwin <jhb@FreeBSD.org>
7333
7334 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
7335 * fbsd-nat.c (debug_fbsd_nat): New variable.
7336 (show_fbsd_nat_debug): New function.
7337 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
7338 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
7339
12279366
JB
73402018-03-04 John Baldwin <jhb@FreeBSD.org>
7341
7342 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
7343 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
7344 prototype.
7345 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
7346 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
7347 method.
7348
54693cf5
SM
73492018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7350
7351 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
7352 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
7353
ccb2231c
SM
73542018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7355
7356 * charset.c (struct charset_vector): New.
7357 (charsets): Change type to charset_vector.
7358 (find_charset_names): Adjust.
7359 (add_one): Adjust.
7360 (_initialize_charset): Adjust.
7361
6fb16ce6
SM
73622018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7363
7364 * progspace.h (struct program_space) <deleted_solibs>: Change
7365 type to std::vector<std::string>.
7366 * progspace.c (clear_program_space_solib_cache): Adjust.
7367 * breakpoint.c (print_solib_event): Adjust.
7368 (check_status_catch_solib): Adjust.
7369 * solib.c (update_solib_list): Adjust.
7370 * ui-out.h (class ui_out) <field_string>: New overload.
7371 * ui-out.c (ui_out::field_string): New overload.
7372
564b1e3f
SM
73732018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7374
7375 * progspace.h (struct program_space): Add constructor and
7376 destructor, initialize fields.
7377 (add_program_space): Remove.
7378 * progspace.c (add_program_space): Rename to...
7379 (program_space::program_space): ... this.
7380 (release_program_space): Rename to...
7381 (program_space::~program_space): ... this.
7382 (delete_program_space): Use delete to delete program_space.
7383 (initialize_progspace): Use new to allocate program_space.
7384 * inferior.c (add_inferior_with_spaces): Likewise.
7385 (clone_inferior_command): Likewise.
7386 * infrun.c (follow_fork_inferior): Likewise.
7387 (handle_vfork_child_exec_or_exit): Likewise.
7388
e80aaf61
SM
73892018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7390
7391 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
7392 (delim_string_to_char_ptr_vec): Return std::vector of
7393 gdb::unique_xmalloc_ptr.
7394 (dirnames_to_char_ptr_vec_append): Take std::vector of
7395 gdb::unique_xmalloc_ptr.
7396 (dirnames_to_char_ptr_vec): Return std::vector of
7397 gdb::unique_xmalloc_ptr.
7398 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
7399 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
7400 (delim_string_to_char_ptr_vec): Return an std::vector of
7401 gdb::unique_xmalloc_ptr, adjust the code.
7402 (dirnames_to_char_ptr_vec_append): Take an std::vector of
7403 gdb::unique_xmalloc_ptr, adjust the code.
7404 (dirnames_to_char_ptr_vec): Return an std::vector of
7405 gdb::unique_xmalloc_ptr, adjust the code.
7406 * auto-load.c (auto_load_safe_path_vec): Change type to
7407 std::vector of gdb::unique_xmalloc_ptr.
7408 (auto_load_expand_dir_vars): Return an std::vector of
7409 gdb::unique_xmalloc_ptr, adjust the code.
7410 (auto_load_safe_path_vec_update): Adjust.
7411 (filename_is_in_auto_load_safe_path_vec): Adjust.
7412 (auto_load_objfile_script_1): Adjust.
7413 * build-id.c (build_id_to_debug_bfd): Adjust.
7414 * linux-thread-db.c (thread_db_load_search): Adjust.
7415 * source.c (add_path): Adjust.
7416 (openp): Adjust.
7417 * symfile.c (find_separate_debug_file): Adjust.
7418 * utils.c (do_free_char_ptr_vec): Remove.
7419 (make_cleanup_free_char_ptr_vec): Remove.
7420
ab818ade
SDJ
74212018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
7422
7423 PR gdb/22907
7424 * common/pathstuff.c: Conditionally include "<windows.h>".
7425
e1e6f073
GS
74262018-03-01 Georg Sauthoff <mail@georg.so>
7427
7428 PR gdb/22888
7429 * gcore.in: Quote variables and switch interpreter to bash.
7430
c7b15a66
TT
74312018-03-01 Tom Tromey <tom@tromey.com>
7432
7433 * dwarf2read.c (alloc_discriminant_info): Fix default_index
7434 assertion. Add assertion for discriminant_index.
7435 (quirk_rust_enum): Use correct base type name in univariant case.
7436
0cb7c7b0
SM
74372018-03-01 Simon Marchi <simon.marchi@ericsson.com>
7438
7439 * record.c (get_call_history_modifiers): Return a
7440 record_print_flags.
7441 (cmd_record_call_history): Adjust.
7442 * record-btrace.c (record_btrace_call_history): Adjust.
7443 (record_btrace_call_history_range): Adjust.
7444 (record_btrace_call_history_from): Adjust.
7445 * target-debug.h (target_debug_print_record_print_flags): New.
7446 * target-delegates.c: Re-generate.
7447 * target.c (target_call_history): Change flags type.
7448 (target_call_history_from): Likewise.
7449 (target_call_history_range): Likewise.
7450 * target.h (struct target_ops) <target_call_history>: Likewise.
7451 (target_call_history_from): Likewise.
7452 (target_call_history_range): Likewise.
7453
25e3c82c
SDJ
74542018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
7455 Simon Marchi <simon.marchi@polymtl.ca>
7456
7457 * common/common-utils.c: Include "sys/stat.h".
7458 (is_regular_file): Move here from "source.c"; change return
7459 type to "bool".
7460 * common/common-utils.h (is_regular_file): New prototype.
7461 * common/pathstuff.c (contains_dir_separator): New function.
7462 * common/pathstuff.h (contains_dir_separator): New prototype.
7463 * source.c: Don't include "sys/stat.h".
7464 (is_regular_file): Move to "common/common-utils.c".
7465
b4987c95
SDJ
74662018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
7467
7468 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
7469 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
7470 * auto-load.c: Include "common/pathstuff.h".
7471 * common/common-def.h (current_directory): Move here.
7472 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
7473 function.
7474 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
7475 prototype.
7476 * common/pathstuff.c: New file.
7477 * common/pathstuff.h: New file.
7478 * compile/compile.c: Include "common/pathstuff.h".
7479 * defs.h (current_directory): Move to "common/common-defs.h".
7480 * dwarf2read.c: Include "common/pathstuff.h".
7481 * exec.c: Likewise.
7482 * guile/scm-safe-call.c: Likewise.
7483 * linux-thread-db.c: Likewise.
7484 * main.c: Likewise.
7485 * nto-tdep.c: Likewise.
7486 * objfiles.c: Likewise.
7487 * source.c: Likewise.
7488 * symtab.c: Likewise.
7489 * utils.c: Include "common/pathstuff.h".
7490 (gdb_realpath): Move to "common/pathstuff.c".
7491 (gdb_realpath_keepfile): Likewise.
7492 (gdb_abspath): Likewise.
7493 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
7494 (gdb_realpath_keepfile): Likewise.
7495 (gdb_abspath): Likewise.
7496
f169cfdc
JB
74972018-02-28 John Baldwin <jhb@FreeBSD.org>
7498
7499 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
7500 wildcard process pid for super_resume for kernels with a
7501 specific bug.
7502
e05cac70
PM
75032018-02-27 Phil Muldoon <pmuldoon@redhat.com>
7504
7505 * compile/compile.c (get_args): Add additional comments
7506 explaining function.
7507
55089490
TT
75082018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
7509 Tom Tromey <tom@tromey.com>
7510
7511 * target.h (memory_write_request_s): Remove typedef. Don't define
7512 VEC.
7513 (target_write_memory_blocks): Change argument to std::vector.
7514 (struct memory_write_request): Add constructor.
7515 * target-memory.c (compare_block_starting_address): Return bool.
7516 Change argument types.
7517 (claim_memory): Change arguments to use std::vector.
7518 (split_regular_and_flash_blocks, blocks_to_erase)
7519 (compute_garbled_blocks): Likewise.
7520 (cleanup_request_data, cleanup_write_requests_vector): Remove.
7521 (target_write_memory_blocks): Change argument to std::vector.
7522 * symfile.c (struct load_section_data): Add constructor and
7523 destructor. Use std::vector for "requests".
7524 (struct load_progress_data): Add initializers.
7525 (load_section_callback): Update. Use "new".
7526 (clear_memory_write_data): Remove.
7527 (generic_load): Update.
7528
0c305b61
AH
75292018-02-27 Alan Hayward <alan.hayward@arm.com>
7530
7531 * arch/aarch64.h: Use common/tdesc.h.
7532
c5196c92
MR
75332018-02-26 Maciej W. Rozycki <macro@mips.com>
7534
7535 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
7536 architecture with a 64-bit ABI.
7537
37c33887
MR
75382018-02-26 Maciej W. Rozycki <macro@mips.com>
7539
7540 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
7541 ahead of target description loading.
7542
d4dd3282
TT
75432018-02-26 Tom Tromey <tom@tromey.com>
7544
7545 * stack.c (backtrace_command_1): Update.
7546 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
7547 of "flags".
7548 * python/py-framefilter.c (py_print_frame)
7549 (gdbpy_apply_frame_filter): Change type of "flags".
7550 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
7551 of "flags".
7552 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
7553 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
7554 * extension.h (enum frame_filter_flag): Rename from
7555 frame_filter_flags.
7556 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
7557 (apply_ext_lang_frame_filter): Change type of "flags".
7558 * extension.c (apply_ext_lang_frame_filter): Change type of
7559 "flags".
7560 * extension-priv.h (struct extension_language_ops)
7561 <apply_frame_filter>: Change type of "flags".
7562
6893c19a
TT
75632018-02-26 Tom Tromey <tom@tromey.com>
7564
7565 PR python/16497:
7566 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
7567 off-by-one in py_end computation.
7568 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
7569 PRINT_MORE_FRAMES.
7570 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
7571 constant.
7572
2ddeaf8a
TT
75732018-02-26 Tom Tromey <tom@tromey.com>
7574
7575 * dwarf2read.c (struct variant_field): New.
7576 (struct nextfield) <variant>: New field.
7577 (dwarf2_add_field): Handle DW_TAG_variant_part.
7578 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
7579 discriminated union.
7580 (read_structure_type): Handle DW_TAG_variant_part.
7581 (handle_struct_member_die): New function, extracted from
7582 process_structure_scope. Handle DW_TAG_variant.
7583 (process_structure_scope): Handle discriminated unions. Call
7584 handle_struct_member_die.
7585
c9317f21
TT
75862018-02-26 Tom Tromey <tom@tromey.com>
7587
7588 * rust-lang.h (rust_last_path_segment): Declare.
7589 * rust-lang.c (rust_last_path_segment): Now public. Change
7590 contract.
7591 (struct disr_info): Remove.
7592 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
7593 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
7594 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
7595 (rust_enum_p, rust_enum_variant): New function.
7596 (rust_underscore_fields): Remove "offset" parameter.
7597 (rust_print_enum): New function.
7598 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
7599 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
7600 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
7601 enums.
7602 (rust_internal_print_type): New function, from rust_print_type.
7603 Remove enum code.
7604 (rust_print_type): Call rust_internal_print_type.
7605 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
7606 Update enum handling.
7607 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
7608 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
7609 (rust_union_quirks): New functions.
7610 (process_full_comp_unit, process_full_type_unit): Call
7611 rust_union_quirks.
7612 (process_structure_scope): Update rust_unions if necessary.
7613
7c22600a
TT
76142018-02-26 Tom Tromey <tom@tromey.com>
7615
7616 * value.h (value_union_variant): Declare.
7617 * valops.c (value_union_variant): New function.
7618 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
7619 (struct discriminant_info): New.
7620 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
7621 enumerator.
7622 (struct main_type) <flag_discriminated_union>: New field.
7623
15ce8941
TT
76242018-02-26 Tom Tromey <tom@tromey.com>
7625
7626 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7627 unittests/unpack-selftests.c.
7628 * unittests/unpack-selftests.c: New file.
7629 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
7630
48fbe735
YQ
76312018-02-26 Yao Qi <yao.qi@linaro.org>
7632
7633 * dwarf2read.c (struct partial_die_info) <read>: New method.
7634 (read_partial_die): Remove the declaration.
7635 (load_partial_dies): Update.
7636 (partial_die_info::partial_die_info):
7637 (read_partial_die): Change it to partial_die_info::read.
7638
52356b79
YQ
76392018-02-26 Yao Qi <yao.qi@linaro.org>
7640
7641 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
7642 (fixup_partial_die): Remove declaration.
7643 (scan_partial_symbols): Update.
7644 (partial_die_parent_scope): Likewise.
7645 (partial_die_full_name): Likewise.
7646 (fixup_partial_die): Change it to partial_die_info::fixup.
7647
35cc7ed7
YQ
76482018-02-26 Yao Qi <yao.qi@linaro.org>
7649
7650 * dwarf2read.c (read_partial_die): Update the declaration.
7651 (load_partial_dies): Caller update.
7652 (read_partial_die): Remove one argument abbrev_len.
7653
6f06d47b
YQ
76542018-02-26 Yao Qi <yao.qi@linaro.org>
7655
7656 * dwarf2read.c (struct partial_die_info): Add ctor, delete
7657 assignment operator.
7658 (load_partial_dies): Use ctor and copy ctor.
7659 (read_partial_die): Update.
7660 (dwarf2_cu::find_partial_die): Use ctor.
7661
d590ff25
YQ
76622018-02-26 Yao Qi <yao.qi@linaro.org>
7663
7664 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
7665 (find_partial_die_in_comp_unit): Change it to
7666 dwarf2_cu::find_partial_die.
7667 (find_partial_die): Update.
7668
fd0a254f
YQ
76692018-02-26 Yao Qi <yao.qi@linaro.org>
7670
7671 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
7672 is NULL.
7673
cd9983dd
YQ
76742018-02-26 Yao Qi <yao.qi@linaro.org>
7675
7676 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
7677
f46cd62a
AH
76782018-02-26 Alan Hayward <alan.hayward@arm.com>
7679
7680 * arch/amd64.h: Use common/tdesc.h.
7681 * arch/i386.c: Likewise.
7682 * arch/i386.h: Likewise.
7683 * arch/tic6x.c: Likewise.
7684 * arch/tdesc.h: Move file from here...
7685 * common/tdesc.h: ...to here.
7686 * features/aarch64-core.c: Regenerate.
7687 * features/aarch64-fpu.c: Regenerate.
7688 * features/i386/32bit-avx.c: Regenerate.
7689 * features/i386/32bit-avx512.c: Regenerate.
7690 * features/i386/32bit-core.c: Regenerate.
7691 * features/i386/32bit-linux.c: Regenerate.
7692 * features/i386/32bit-mpx.c: Regenerate.
7693 * features/i386/32bit-pkeys.c: Regenerate.
7694 * features/i386/32bit-sse.c: Regenerate.
7695 * features/i386/64bit-avx.c: Regenerate.
7696 * features/i386/64bit-avx512.c: Regenerate.
7697 * features/i386/64bit-core.c: Regenerate.
7698 * features/i386/64bit-linux.c: Regenerate.
7699 * features/i386/64bit-mpx.c: Regenerate.
7700 * features/i386/64bit-pkeys.c: Regenerate.
7701 * features/i386/64bit-segments.c: Regenerate.
7702 * features/i386/64bit-sse.c: Regenerate.
7703 * features/i386/x32-core.c: Regenerate.
7704 * features/tic6x-c6xp.c: Regenerate.
7705 * features/tic6x-core.c: Regenerate.
7706 * features/tic6x-gp.c: Regenerate.
7707 * target-descriptions.c: Use common/tdesc.h.
7708 * target-descriptions.h: Likewise.
7709
9b292f68
TT
77102018-02-24 Tom Tromey <tom@tromey.com>
7711
7712 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7713 (try_thread_db_load_from_dir, thread_db_load_search): Use
7714 std::string.
7715 (info_auto_load_libthread_db_compare): Return bool. Change
7716 argument types.
7717 (info_auto_load_libthread_db): Use std::vector, std::string.
7718 Remove cleanups.
7719
281d762b
TT
77202018-02-24 Tom Tromey <tom@tromey.com>
7721
7722 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
7723 std::string.
7724 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
7725 std::string*.
7726 * gdbarch.c: Rebuild.
7727 * gdbarch.h: Rebuild.
7728 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
7729 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
7730 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
7731 std::string*.
7732
9d8780f0
SM
77332018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
7734
7735 * gdbtypes.h (sect_offset): Change type to uint64_t.
7736 (sect_offset_str): New function.
7737 * dwarf2read.c (create_addrmap_from_aranges): Use
7738 sect_offset_str.
7739 (error_check_comp_unit_head): Likewise.
7740 (create_debug_type_hash_table): Likewise.
7741 (read_cutu_die_from_dwo): Likewise.
7742 (init_cutu_and_read_dies): Likewise.
7743 (init_cutu_and_read_dies_no_follow): Likewise.
7744 (process_psymtab_comp_unit_reader): Likewise.
7745 (partial_die_parent_scope): Likewise.
7746 (peek_die_abbrev): Likewise.
7747 (process_queue): Likewise.
7748 (dwarf2_physname): Likewise.
7749 (read_namespace_alias): Likewise.
7750 (read_import_statement): Likewise.
7751 (create_dwo_cu_reader): Likewise.
7752 (create_cus_hash_table): Likewise.
7753 (lookup_dwo_cutu): Likewise.
7754 (inherit_abstract_dies): Likewise.
7755 (read_func_scope): Likewise.
7756 (read_call_site_scope): Likewise.
7757 (dwarf2_add_member_fn): Likewise.
7758 (read_common_block): Likewise.
7759 (read_module_type): Likewise.
7760 (read_typedef): Likewise.
7761 (read_subrange_type): Likewise.
7762 (load_partial_dies): Likewise.
7763 (read_partial_die): Likewise.
7764 (find_partial_die): Likewise.
7765 (read_str_index): Likewise.
7766 (dwarf2_string_attr): Likewise.
7767 (build_error_marker_type): Likewise.
7768 (lookup_die_type): Likewise.
7769 (dump_die_shallow): Likewise.
7770 (follow_die_ref): Likewise.
7771 (dwarf2_fetch_die_loc_sect_off): Likewise.
7772 (dwarf2_fetch_constant_bytes): Likewise.
7773 (follow_die_sig): Likewise.
7774 (get_signatured_type): Likewise.
7775 (get_DW_AT_signature_type): Likewise.
7776 (dwarf2_find_containing_comp_unit): Likewise.
7777 (set_die_type): Likewise.
7778
8ec57239
JB
77792018-02-21 John Baldwin <jhb@FreeBSD.org>
7780
7781 * arch/aarch64.c: Include "common-defs.h".
7782 * arch/amd64.c: Likewise.
7783 * arch/i386.c: Likewise.
7784
3eac2b65
TT
77852018-02-21 Tom Tromey <tom@tromey.com>
7786
7787 * value.h: (extract_field_op): Update.
7788 * eval.c (extract_field_op): Return a const char *.
7789 * expression.h (parse_expression_for_completion): Update.
7790 * completer.c (complete_expression): Update.
7791 (add_struct_fields): Make fieldname const.
7792 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
7793 (mark_completion_tag, parse_exp_in_context_1): Update.
7794 (parse_expression_for_completion): Change "name" to
7795 unique_xmalloc_ptr*.
7796
6ccb583f
TT
77972018-02-21 Tom Tromey <tom@tromey.com>
7798
7799 * infcall.c (call_function_by_hand_dummy): Use std::vector.
7800
c113ed0c
YQ
78012018-02-21 Yao Qi <yao.qi@linaro.org>
7802
7803 * avr-tdep.c (avr_read_pc): Change parameter type to
7804 readable_regcache.
7805 * gdbarch.sh (read_pc): Likewise.
7806 * gdbarch.c: Re-generated.
7807 * gdbarch.h: Re-generated.
7808 * hppa-tdep.c (hppa_read_pc): Change parameter type to
7809 readable_regcache.
7810 * ia64-tdep.c (ia64_read_pc): Likewise.
7811 * mips-tdep.c (mips_read_pc): Likewise.
7812 * spu-tdep.c (spu_read_pc): Likewise.
7813
4c74fe6b
YQ
78142018-02-21 Yao Qi <yao.qi@linaro.org>
7815
7816 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
7817 * regcache-dump.c: New file.
7818 * regcache.c: Move register_dump to regcache-dump.c.
7819 (maintenance_print_registers): Likewise.
7820 (maintenance_print_raw_registers): Likewise.
7821 (maintenance_print_cooked_registers): Likewise.
7822 (maintenance_print_register_groups): Likewise.
7823 (maintenance_print_remote_registers): Likewise.
7824 (_initialize_regcache): Likewise.
7825 * regcache.h (register_dump): Moved from regcache.c.
7826
796bb026
YQ
78272018-02-21 Yao Qi <yao.qi@linaro.org>
7828
7829 * regcache.c (regcache::regcache): Update.
7830 (regcache::invalidate): Move it to detached_regcache::invalidate.
7831 (get_thread_arch_aspace_regcache): Update.
7832 (regcache::raw_update): Update.
7833 (regcache::cooked_read): Remove some code.
7834 (regcache::cooked_read_value): Likewise.
7835 (regcache::raw_write): Remove assert on m_readonly_p.
7836 (regcache::raw_supply_integer): Move it to
7837 detached_regcache::raw_supply_integer.
7838 (regcache::raw_supply_zeroed): Likewise.
7839 * regcache.h (detached_regcache) <raw_supply_integer>: New
7840 declaration.
7841 <raw_supply_zeroed, invalidate>: Likewise.
7842 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
7843 <invalidate>: Likewise.
7844 <m_readonly_p>: Removed.
7845
215c69dc
YQ
78462018-02-21 Yao Qi <yao.qi@linaro.org>
7847
7848 * infcmd.c (get_return_value): Let stop_regs point to
7849 get_current_regcache.
7850 * regcache.c (regcache::regcache): Remove.
7851 (register_dump_reg_buffer): New class.
7852 (regcache_print): Adjust.
7853 * regcache.h (regcache): Remove constructors.
7854
f3384e66
YQ
78552018-02-21 Yao Qi <yao.qi@linaro.org>
7856
7857 * regcache.c (class register_dump): New class.
7858 (register_dump_regcache, register_dump_none): New class.
7859 (register_dump_remote, register_dump_groups): New class.
7860 (regcache_print): Update.
7861 * regcache.h (regcache_dump_what): Move it to regcache.c.
7862 (regcache) <dump>: Remove.
7863
c8ec2f33
YQ
78642018-02-21 Yao Qi <yao.qi@linaro.org>
7865
7866 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
7867 reg_buffer_rw *.
7868 (jit_unwind_reg_set_impl): Call raw_supply.
7869 (jit_frame_sniffer): Use reg_buffer_rw.
7870 * record-full.c (record_full_core_regbuf): Change its type.
7871 (record_full_core_open_1): Use reg_buffer_rw.
7872 (record_full_close): Likewise.
7873 (record_full_core_fetch_registers): Use regcache->raw_supply.
7874 (record_full_core_store_registers): Likewise.
7875 * regcache.c (regcache::get_register_status): Move it to
7876 reg_buffer.
7877 (regcache_raw_set_cached_value): Remove.
7878 (regcache::raw_set_cached_value): Remove.
7879 (regcache::raw_write): Call raw_supply.
7880 (regcache::raw_supply): Move it to reg_buffer_rw.
7881 * regcache.h (regcache_raw_set_cached_value): Remove.
7882 (reg_buffer_rw): New class.
7883
daf6667d
YQ
78842018-02-21 Yao Qi <yao.qi@linaro.org>
7885
7886 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
7887 readonly_detached_regcache.
7888 (dummy_frame_prev_register): Use regcache->cooked_read.
7889 * frame.c (frame_save_as_regcache): Change return type.
7890 (frame_pop): Update.
7891 * frame.h (frame_save_as_regcache): Update declaration.
7892 * inferior.h (get_infcall_suspend_state_regcache): Update
7893 declaration.
7894 * infrun.c (infcall_suspend_state) <registers>: use
7895 readonly_detached_regcache.
7896 (save_infcall_suspend_state): Don't use regcache_dup.
7897 (get_infcall_suspend_state_regcache): Change return type.
7898 * linux-fork.c (struct fork_info) <savedregs>: Change to
7899 readonly_detached_regcache.
7900 <pc>: New field.
7901 (fork_save_infrun_state): Don't use regcache_dup.
7902 (info_checkpoints_command): Adjust.
7903 * mi/mi-main.c (register_changed_p): Update declaration.
7904 (mi_cmd_data_list_changed_registers): Use
7905 readonly_detached_regcache.
7906 (register_changed_p): Change parameter type to
7907 readonly_detached_regcache.
7908 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
7909 readonly_detached_regcache.
7910 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
7911 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
7912 New.
7913 (regcache::save): Move it to reg_buffer.
7914 (regcache::restore): Change parameter type.
7915 (regcache_dup): Remove.
7916 * regcache.h (reg_buffer) <save>: New method.
7917 (readonly_detached_regcache): New class.
7918 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
7919 readonly_detached_regcache.
7920 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
7921
fc5b8736
YQ
79222018-02-21 Yao Qi <yao.qi@linaro.org>
7923
7924 * frame.c (frame_save_as_regcache): Use regcache method save.
7925 (frame_pop): Use regcache method restore.
7926 * infrun.c (restore_infcall_suspend_state): Likewise.
7927 * linux-fork.c (fork_load_infrun_state): Likewise.
7928 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
7929 save.
7930 * regcache.c (regcache_save): Remove.
7931 (regcache::restore): More asserts.
7932 (regcache_cpy): Remove.
7933 * regcache.h (regcache_save): Remove the declaration.
7934 (regcache::restore): Move from private to public.
7935 Remove the friend declaration of regcache_cpy.
7936 (regcache_cpy): Remove declaration.
7937
849d0ba8
YQ
79382018-02-21 Yao Qi <yao.qi@linaro.org>
7939
7940 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
7941 parameter type to 'readable_regcache *'.
7942 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
7943 * arm-tdep.c (arm_neon_quad_read): Likewise.
7944 (arm_pseudo_read): Likewise.
7945 * avr-tdep.c (avr_pseudo_register_read): Likewise.
7946 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
7947 * frv-tdep.c (frv_pseudo_register_read): Likewise.
7948 * gdbarch.c: Re-generated.
7949 * gdbarch.h: Re-generated.
7950 * gdbarch.sh (pseudo_register_read): Change parameter type to
7951 'readable_regcache *'.
7952 (pseudo_register_read_value): Likewise.
7953 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
7954 (h8300_pseudo_register_read): Likewise.
7955 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
7956 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
7957 (i386_pseudo_register_read_into_value): Likewise.
7958 (i386_pseudo_register_read_value): Likewise.
7959 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
7960 declaration.
7961 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
7962 * m32c-tdep.c (m32c_raw_read): Likewise.
7963 (m32c_read_flg): Likewise.
7964 (m32c_banked_register): Likewise.
7965 (m32c_banked_read): Likewise.
7966 (m32c_sb_read): Likewise.
7967 (m32c_part_read): Likewise.
7968 (m32c_cat_read): Likewise.
7969 (m32c_r3r2r1r0_read): Likewise.
7970 (m32c_pseudo_register_read): Likewise.
7971 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
7972 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
7973 (mep_pseudo_cr64_read): Likewise.
7974 (mep_pseudo_register_read): Likewise.
7975 * mips-tdep.c (mips_pseudo_register_read): Likewise.
7976 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
7977 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
7978 * regcache.c (regcache::raw_read): Move it to readable_regcache.
7979 (regcache::cooked_read): Likewise.
7980 (regcache::cooked_read_value): Likewise.
7981 (regcache_cooked_read_signed):
7982 (regcache::cooked_read): Likewise.
7983 * regcache.h (readable_regcache): New class.
7984 (regcache): Inherit readable_regcache. Move some methods to
7985 readable_regcache.
7986 * rl78-tdep.c (rl78_pseudo_register_read): Change
7987 parameter type to 'readable_regcache *'.
7988 * rs6000-tdep.c (do_regcache_raw_read): Remove.
7989 (e500_pseudo_register_read): Change parameter type to
7990 'readable_regcache *'.
7991 (dfp_pseudo_register_read): Likewise.
7992 (vsx_pseudo_register_read): Likewise.
7993 (efpr_pseudo_register_read): Likewise.
7994 * s390-tdep.c (s390_pseudo_register_read): Likewise.
7995 * sh-tdep.c (sh_pseudo_register_read): Likewise.
7996 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
7997 (sh64_pseudo_register_read): Likewise.
7998 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
7999 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
8000 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
8001 (spu_pseudo_register_read): Likewise.
8002 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
8003 (xtensa_pseudo_register_read): Likewise.
8004
31716595
YQ
80052018-02-21 Yao Qi <yao.qi@linaro.org>
8006
8007 * regcache.c (regcache::regcache): Call reg_buffer ctor.
8008 (regcache::arch): Move it to reg_buffer::arch.
8009 (regcache::register_buffer): Likewise.
8010 (regcache::assert_regnum): Likewise.
8011 (regcache::num_raw_registers): Likewise.
8012 * regcache.h (reg_buffer): New class.
8013 (regcache): Inherit reg_buffer.
8014
7104e59b
SM
80152018-02-20 Simon Marchi <simon.marchi@ericsson.com>
8016
8017 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
8018 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
8019
2d8adcbd
MM
80202018-02-20 Markus Metzger <markus.t.metzger@intel.com>
8021
8022 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
8023
b5884fa7
AH
80242018-02-19 Alan Hayward <alan.hayward@arm.com>
8025
8026 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
8027 (SFILES): Remove common/*.c files.
8028 (COMMON_OBS): Remove some *.o files built from common/*.c files.
8029 * common/common.host: Add common reference.
8030 * configure.ac: Likewise.
8031 * configure: Regenerate.
8032
fd90ace4
YQ
80332018-02-16 Yao Qi <yao.qi@linaro.org>
8034
8035 * block.c (block_namespace_info): Inherit allocate_on_obstack.
8036 (block_initialize_namespace): Use new.
8037 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
8038 (dwarf2_free_objfile): Use delete.
8039 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
8040 (copy_type_recursive): Use new.
8041 * gdb_obstack.h (allocate_on_obstack): New.
8042
85046ae2
YQ
80432018-02-15 Yao Qi <yao.qi@linaro.org>
8044
8045 PR gdb/22849
8046 * inferior.c (exit_inferior_1): Reset inf->control.
8047
355c559b
JB
80482018-02-15 Joel Brobecker <brobecker@adacore.com>
8049
8050 * ada-lang.c (ada_to_fixed_value_create): Delete advance
8051 declaration.
8052
980548fd
PA
80532018-02-14 Pedro Alves <palves@redhat.com>
8054
8055 * frame-unwind.c (frame_unwind_try_unwinder): Always call
8056 frame_cleanup_after_sniffer on exception.
8057
692d6f97
TT
80582018-02-14 Tom Tromey <tom@tromey.com>
8059
8060 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
8061 const.
8062 (solib_bfd_open): Make pathname const.
8063 * solib.c (solib_bfd_open): Make pathname const.
8064 * solib-spu.c (spu_bfd_fopen): Make name const.
8065 (spu_bfd_open): Make pathname const.
8066 * solib-darwin.c (darwin_bfd_open): Make pathname const.
8067 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
8068
e0cc99a6
TT
80692018-02-14 Tom Tromey <tom@tromey.com>
8070
8071 * symfile.c (symfile_bfd_open): Update.
8072 * source.h (openp, source_full_path_of, find_and_open_source):
8073 Change argument type to unique_xmalloc_ptr.
8074 * source.c (openp): Take a unique_xmalloc_ptr.
8075 (source_full_path_of, find_and_open_source): Likewise.
8076 (open_source_file, symtab_to_fullname): Update.
8077 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
8078 unique_xmalloc_ptr.
8079 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
8080 (exec_file_find): Update.
8081 * psymtab.c (psymtab_to_fullname): Update.
8082 * nto-tdep.h (nto_find_and_open_solib): Update.
8083 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
8084 unique_xmalloc_ptr.
8085 * exec.c (exec_file_attach): Update.
8086 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
8087 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
8088
b46a8d7c
TT
80892018-02-14 Tom Tromey <tom@tromey.com>
8090
8091 * solib.c: Include source.h.
8092 * nto-tdep.c: Include source.h.
8093 * mi/mi-cmd-env.c: Include source.h.
8094 * infcmd.c: Include source.h.
8095 * exec.c: Include source.h.
8096 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
8097 (add_path, directory_switch, source_path, init_source_path): Move
8098 declarations...
8099 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
8100 (add_path, directory_switch, source_path, init_source_path):
8101 ...here.
8102
797bc1cb
TT
81032018-02-14 Tom Tromey <tom@tromey.com>
8104
8105 * solist.h (exec_file_find, solib_find): Return
8106 unique_xmalloc_ptr.
8107 (solib_bfd_fopen): Take a const char *.
8108 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
8109 (exec_file_find, solib_find): Likewise.
8110 (solib_bfd_fopen): Do not take ownership of "pathname".
8111 (solib_bfd_open): Use unique_xmalloc_ptr.
8112 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
8113 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
8114 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
8115 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
8116
f98b2e33
JB
81172018-02-14 Joel Brobecker <brobecker@adacore.com>
8118
8119 * ada-lang.c (name_match_type_from_name): Remove reference to
8120 ada_name_for_lookup in function's documentation.
8121 * ada-lang.h (ada_name_for_lookup): Delete declaration.
8122
24b9144d
SM
81232018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
8124
8125 * defs.h (enum openp_flags): New enum.
8126 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
8127 Move to enum openp_flags.
8128 (openp_flags): New enum flags.
8129 (openp): Change parameter type to openp_flags.
8130 * source.c (openp): Change parameter type to openp_flags.
8131 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
8132 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
8133
387cd15b
SM
81342018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
8135
8136 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
8137 per-command.
8138
b303c6f6
AB
81392018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
8140
8141 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
8142 into...
8143 (class dwarf2_queue_guard): ...the destructor of this new class.
8144 (dw2_do_instantiate_symtab): Create instance of the new class
8145 dwarf2_queue_guard, remove cleanup.
8146
9c3630e9
TT
81472018-02-09 Tom Tromey <tom@tromey.com>
8148
8149 * source.c (find_source_lines): Don't reference past the end of
8150 the vector.
8151
c4e12631
MM
81522018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8153
8154 * remote.c (remote_btrace_maybe_reopen): Change error message.
8155 * btrace.c (btrace_enable): Likewise.
8156 (parse_xml_btrace): Likewise.
8157 (parse_xml_btrace_conf): Likewise.
8158
88711fbf
MM
81592018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8160
8161 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
8162 (linux_enable_pt, linux_enable_bts): Call
8163 diagnose_perf_event_open_fail.
8164
17ad2a4f
MM
81652018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8166
8167 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
8168 Remove parameter and change return type. Update callers. Move it.
8169 (linux_enable_bts, linux_enable_pt): Improve error message.
8170 (linux_enable_pt): Remove zero buffer size check.
8171 (linux_enable_btrace): Improve error messages. Remove NULL return
8172 check.
8173
de6242d3
MM
81742018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8175
8176 * btrace.c (btrace_enable): Remove target_supports_btrace call.
8177 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
8178 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
8179 (linux_supports_pt, linux_supports_btrace): Remove.
8180 (linux_enable_bts): Call cpu_supports_bts.
8181 * nat/linux-btrace.h (linux_supports_btrace): Remove.
8182 * remote.c (remote_supports_btrace): Remove.
8183 (init_remote_ops): Remove remote_supports_btrace.
8184 * target-delegates.c: Regenerated.
8185 * target.c (target_supports_btrace): Remove.
8186 * target.h (target_ops) <to_supports_btrace>: Remove
8187 (target_supports_btrace): Remove.
8188 * x86-linux-nat.c (x86_linux_create_target): Remove
8189 linux_supports_btrace.
8190
9ee23a85
MM
81912018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8192
8193 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
8194 btrace failed.
8195 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
8196 exception and use message in own exception.
8197
5c3284c1
MM
81982018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8199
8200 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
8201 (perf_event_pt_event_type): Use gdb_file_up.
8202 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
8203 scoped_fd, and scoped_mmap.
8204
84696f37
MM
82052018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8206
8207 * common/scoped_mmap.h: New.
8208 * unittests/scoped_mmap-selftest.c: New.
8209 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8210 unittests/scoped_mmap-selftest.c.
8211
ea4a0888
MM
82122018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8213
8214 * common/scoped_fd.h: New.
8215 * unittests/scoped_fd-selftest.c: New.
8216 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8217 unittests/scoped_fd-selftest.c.
8218
869e8290
TT
82192018-02-09 Tom Tromey <tom@tromey.com>
8220
8221 * auto-load.c (auto_load_section_scripts): Use
8222 gdb::unique_xmalloc_ptr.
8223
a37a2ae7
TT
82242018-02-09 Tom Tromey <tom@tromey.com>
8225
8226 * auto-load.c (execute_script_contents): Use std::string.
8227
4e725347
JB
82282018-02-09 Joel Brobecker <brobecker@adacore.com>
8229
8230 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
8231 Python function, rather than a new command.
8232
9a897d43
TT
82332018-02-08 Tom Tromey <tom@tromey.com>
8234
8235 * solib.c (solib_find_1): Use std::string.
8236 (solib_bfd_fopen): Use unique_xmalloc_ptr.
8237
58ef3771
TT
82382018-02-08 Tom Tromey <tom@tromey.com>
8239
8240 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
8241
a9abc434
TT
82422018-02-08 Tom Tromey <tom@tromey.com>
8243
8244 * source.c (find_source_lines): Use gdb::def_vector.
8245
84f27c6f
TT
82462018-02-08 Tom Tromey <tom@tromey.com>
8247
8248 * macrocmd.c (struct temporary_macro_definition): New.
8249 (macro_define_command): Use temporary_macro_definition. Remove
8250 cleanups.
8251 (free_macro_definition_ptr): Remove.
8252
0354904b
TT
82532018-02-08 Tom Tromey <tom@tromey.com>
8254
8255 * macroexp.c (maybe_expand): Use std::string.
8256
1739cf24
TT
82572018-02-08 Tom Tromey <tom@tromey.com>
8258
8259 * macroexp.c (struct macro_buffer): Add initializers for some
8260 members.
8261 (init_buffer, init_shared_buffer, free_buffer)
8262 (free_buffer_return_text): Remove.
8263 (macro_buffer): New constructors.
8264 (~macro_buffer): New destructor.
8265 (macro_buffer::set_shared): New method.
8266 (macro_buffer::resize_buffer, macro_buffer::appendc)
8267 (macro_buffer::appendmem): Now methods, not free functions.
8268 (set_token, append_tokens_without_splicing, stringify)
8269 (macro_stringify): Update.
8270 (gather_arguments): Change return type. Remove argc_p argument,
8271 add args_ptr argument. Use std::vector.
8272 (substitute_args): Remove argc argument. Accept std::vector.
8273 (expand): Update. Use std::vector.
8274 (scan, macro_expand, macro_expand_next): Update.
8275
f6c2623e
TT
82762018-02-08 Tom Tromey <tom@tromey.com>
8277
8278 * symtab.c (default_collect_symbol_completion_matches_break_on):
8279 Use unique_xmalloc_ptr.
8280 * macroscope.h: (sal_macro_scope, user_macro_scope)
8281 (default_macro_scope): Return unique_xmalloc_ptr.
8282 * macroscope.c (sal_macro_scope, user_macro_scope)
8283 (default_macro_scope): Return unique_xmalloc_ptr.
8284 * macroexp.h (macro_expand, macro_expand_once): Return
8285 unique_xmalloc_ptr.
8286 * macroexp.c (macro_expand, macro_expand_once): Return
8287 unique_xmalloc_ptr.
8288 * macrocmd.c (macro_expand_command, macro_expand_once_command)
8289 (info_macro_command, info_macros_command): Use
8290 unique_xmalloc_ptr.
8291 * compile/compile-c-support.c (write_macro_definitions): Use
8292 unique_xmalloc_ptr.
8293 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
8294
c2e0e465
SM
82952018-02-07 Simon Marchi <simon.marchi@ericsson.com>
8296
8297 * value.c (value_static_field): Assign field type instead of
8298 containing type when returning an optimized out value.
8299
3f8c94b4
YQ
83002018-02-06 Yao Qi <yao.qi@linaro.org>
8301
8302 * ft32-tdep.c (ft32_read_pc): Remove.
8303 (ft32_write_pc): Remove.
8304 (ft32_gdbarch_init): Update.
8305 * m32r-tdep.c (m32r_read_pc): Remove.
8306 (m32r_gdbarch_init): Update.
8307 * mep-tdep.c (mep_read_pc): Remove.
8308 (mep_gdbarch_init): Update.
8309 * microblaze-tdep.c (microblaze_write_pc): Remove.
8310 (microblaze_gdbarch_init): Update.
8311 * mn10300-tdep.c (mn10300_read_pc): Remove.
8312 (mn10300_write_pc): Remove.
8313 (mn10300_gdbarch_init): Update.
8314 * moxie-tdep.c (moxie_read_pc): Remove.
8315 (moxie_write_pc): Remove.
8316 (moxie_gdbarch_init): Update.
8317
bca65a23
YQ
83182018-02-06 Yao Qi <yao.qi@linaro.org>
8319
8320 * expprint.c (print_subexp_standard): Handle
8321 OP_F77_UNDETERMINED_ARGLIST.
8322 (dump_subexp_body_standard): Likewise.
8323
583e3f90 83242018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 8325
583e3f90
YQ
8326 * target-descriptions.c (tdesc_element_visitor) Add empty
8327 implementations.
b8df6ca7
AH
8328 (tdesc_type): Move make_gdb_type from here.
8329 (tdesc_type_builtin): Likewise.
8330 (tdesc_type_vector): Likewise.
8331 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
8332 (make_gdb_type_struct): Move from tdesc_type_with_fields.
8333 (make_gdb_type_union): Likewise.
8334 (make_gdb_type_flags): Likewise.
8335 (make_gdb_type_enum): Likewise.
8336 (make_gdb_type): New function.
8337 (tdesc_register_type): Use static make_gdb_type.
8338
e813d34a
RK
83392018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
8340
8341 * infcmd.c (default_print_one_register_info): Align natural-format
8342 column values consistently one under another.
8343 (pad_to_column): New function.
8344
0eb876f5
JB
83452018-02-05 Joel Brobecker <brobecker@adacore.com>
8346
8347 * dwarf2read.c (dwarf2_physname): Move commment.
8348
0625771b
LS
83492018-02-01 Leszek Swirski <leszeks@google.com>
8350
8351 * varobj.c (varobj_formatted_print_options): Allow recursive
8352 pretty printing if pretty printing is enabled.
8353
59498c30
LS
83542018-02-01 Leszek Swirski <leszeks@google.com>
8355
8356 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
8357 names after a structop as a filename.
8358
2d9e6acb
YQ
83592018-02-01 Yao Qi <yao.qi@linaro.org>
8360
8361 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
8362 (arm_record_coproc_data_proc): Likewise.
8363
df95a9cf
YQ
83642018-02-01 Yao Qi <yao.qi@linaro.org>
8365
8366 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
8367
07e5f5cf
NP
83682018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
8369
8370 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
8371 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
8372
3045b475
PA
83732018-01-31 Pedro Alves <palves@redhat.com>
8374
8375 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
8376 * inflow.c (child_terminal_save_inferior): Wrap reference to
8377 tcgetpgrp in HAVE_TERMIOS_H.
8378 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
8379 _WIN32.
8380 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
8381 always iterate over all inferiors.
8382 (gdbsim_cntrl_c): Adjust.
8383 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
8384
929b5ad4
JB
83852018-01-31 Joel Brobecker <brobecker@adacore.com>
8386
8387 * gdbtypes.c (lookup_array_range_type): Make sure the array's
8388 index type is objfile-owned if the element type is as well.
8389
29236ca2
JB
83902018-01-31 Joel Brobecker <brobecker@adacore.com>
8391
8392 GDB 8.1 released.
8393
c81e8879
PR
83942018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
8395
8396 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
8397 "features/s390x-linux64.c".
8398 (_initialize_s390_linux_tdep): Remove initialization of tdescs
8399 s390_linux32 and s390x_linux64.
8400 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
8401 default tdesc.
8402 * s390-tdep.c: Include "features/s390-linux32.c" and
8403 "features/s390x-linux64.c".
8404 (s390_tdesc_valid): Add check for tdesc_has_registers.
8405 (s390_gdbarch_init): Make sure there is always a valid tdesc.
8406 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
8407 tdesc_s390x_linux64.
8408 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
8409 tdesc_s390x_linux64 to...
8410 * s390-tdep.h: ...here.
8411
e671cd59
PA
84122018-01-30 Pedro Alves <palves@redhat.com>
8413
8414 PR gdb/13211
8415 * config.in, configure: Regenerate.
8416 * configure.ac: Check for getpgid.
8417 * go32-nat.c (go32_pass_ctrlc): New.
8418 (go32_target): Install it.
8419 * inf-child.c (inf_child_target): Install
8420 child_terminal_save_inferior, child_pass_ctrlc and
8421 child_interrupt.
8422 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
8423 (inf_ptrace_target): No longer install it.
8424 * infcmd.c (interrupt_target_1): Adjust.
8425 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
8426 (child_interrupt): Declare.
8427 (inferior::terminal_state): New.
8428 * inflow.c (struct terminal_info): Update comments.
8429 (inferior_process_group): Delete.
8430 (terminal_is_ours): Delete.
8431 (gdb_tty_state): New.
8432 (child_terminal_init): Adjust.
8433 (is_gdb_terminal, sharing_input_terminal_1)
8434 (sharing_input_terminal): New functions.
8435 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
8436 Set the process's actual process group in the foreground if
8437 possible. Handle is_ours_for_output/is_ours distinction. Don't
8438 mark terminal as the inferior's if not sharing GDB's terminal.
8439 Don't check attach_flag.
8440 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
8441 pass down a target_terminal_state.
8442 (child_terminal_save_inferior): New, factored out from ...
8443 (child_terminal_ours_1): ... this. Handle
8444 target_terminal_state::is_ours_for_output.
8445 (child_interrupt, child_pass_ctrlc): New.
8446 (inflow_inferior_exit): Clear the inferior's terminal_state.
8447 (copy_terminal_info): Copy the inferior's terminal state.
8448 (_initialize_inflow): Remove reference to terminal_is_ours.
8449 * inflow.h (inferior_process_group): Delete.
8450 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
8451 * procfs.c (procfs_target): Don't install procfs_interrupt.
8452 (procfs_interrupt): Delete.
8453 * remote.c (remote_serial_quit_handler): Adjust.
8454 (remote_interrupt): Remove ptid parameter. Adjust.
8455 * target-delegates.c: Regenerate.
8456 * target.c: Include "terminal.h".
8457 (target_terminal::terminal_state): Rename to ...
8458 (target_terminal::m_terminal_state): ... this.
8459 (target_terminal::init): Adjust.
8460 (target_terminal::inferior): Adjust to per-inferior
8461 terminal_state.
8462 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
8463 (target_terminal::ours, target_terminal::ours_for_output): Use
8464 target_terminal_is_ours_kind.
8465 (target_interrupt): Remove ptid parameter. Adjust.
8466 (default_target_pass_ctrlc): Adjust.
8467 * target.h (target_ops::to_terminal_save_inferior): New field.
8468 (target_ops::to_interrupt): Remove ptid_t parameter.
8469 (target_interrupt): Remove ptid_t parameter. Update comment.
8470 (target_pass_ctrlc): Update comment.
8471 * target/target.h (target_terminal_state): New scoped enum,
8472 factored out of ...
8473 (target_terminal::terminal_state): ... here.
8474 (target_terminal::inferior): Update comments.
8475 (target_terminal::restore_inferior): New.
8476 (target_terminal::is_inferior, target_terminal::is_ours)
8477 (target_terminal::is_ours_for_output): Adjust.
8478 (target_terminal::scoped_restore_terminal_state): Adjust to
8479 rename, and call restore_inferior() instead of inferior().
8480 (target_terminal::scoped_restore_terminal_state::m_state): Change
8481 type.
8482 (target_terminal::terminal_state): Rename to ...
8483 (target_terminal::m_terminal_state): ... this and change type.
8484
9c3a5d93
PA
84852018-01-30 Pedro Alves <palves@redhat.com>
8486
8487 * linux-nat.c (wait_for_signal): New function.
8488 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
8489 directly.
8490 (async_terminal_is_ours)
8491 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
8492 (linux_nat_add_target): Don't override
8493 to_terminal_inferior/to_terminal_ours.
8494
69ab5edb
SDJ
84952018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
8496
8497 * remote.c (remote_follow_fork): Don't call "detach_inferior".
8498
fc8e7e75
SM
84992018-01-28 Simon Marchi <simon.marchi@ericsson.com>
8500
8501 * dwarf2read.c (free_dwo_files): Add forward-declaration.
8502 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
8503 dwarf2_per_objfile_free here.
8504 (dwarf2_per_objfile_free): Remove.
8505 (_initialize_dwarf2_read): Don't register
8506 dwarf2_per_objfile_free as a registry cleanup.
8507
b2a426e2
EZ
85082018-01-27 Eli Zaretskii <eliz@gnu.org>
8509
8510 Avoid compilation errors in MinGW native builds
8511
8512 The error is triggered by including python-internal.h, and the
8513 error message is:
8514
8515 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
8516 from build-gnulib/import/math.h:27,
8517 from d:/usr/Python26/include/pyport.h:235,
8518 from d:/usr/Python26/include/Python.h:58,
8519 from python/python-internal.h:94,
8520 from python/py-arch.c:24:
8521 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
8522 using ::hypot;
8523 ^~~~~
8524
8525 This happens because Python headers define 'hypot' to expand t
8526 '_hypot' in the Windows builds.
8527 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
8528 'hypoth'. This avoids a compilation error.
8529
0bdd8eac
AH
85302018-01-26 Alan Hayward <alan.hayward@arm.com>
8531
8532 * MAINTAINERS (Write After Approval): Fix ordering.
8533
56ae9dc3
AH
85342018-01-26 Alan Hayward <alan.hayward@arm.com>
8535
8536 * MAINTAINERS (Write After Approval): Add Alan Hayward.
8537
7433498b
AM
85382018-01-26 Alan Modra <amodra@gmail.com>
8539
8540 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
8541 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
8542 Remove nop. Make const. Comment.
8543 (powerpc32_plt_stub_so_2): New.
8544 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
8545 Correct count. Update uses.
8546 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
8547 Move common code reading PLT entry word. Correct
8548 powerpc32_plt_stub PLT address calculation.
8549 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
8550 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
8551 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
8552 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
8553 (ppc64_standard_linkage8): Likewise.
8554 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
8555 Correct insns description.
8556 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
8557
0f59d5fc
PA
85582018-01-24 Pedro Alves <palves@redhat.com>
8559
8560 GCC PR libstdc++/83906
8561 * gdbtypes.c (operator==(const dynamic_prop &,
8562 const dynamic_prop &)): New.
8563 (operator==(const range_bounds &, const range_bounds &)): New.
8564 (check_types_equal): Use them instead of memcmp.
8565 * gdbtypes.h (operator==(const dynamic_prop &,
8566 const dynamic_prop &)): Declare.
8567 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
8568 (operator==(const range_bounds &, const range_bounds &)): Declare.
8569 (operator!=(const range_bounds &, const range_bounds &)): Declare.
8570
ef8914a4
PR
85712018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8572
8573 * s390-linux-tdep.c (s390_record_address_mask)
8574 (s390_record_calc_disp_common, s390_record_calc_disp)
8575 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
8576 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
8577 (s390_process_record): Move to s390-tdep.c.
8578 (s390_linux_init_abi_any): Adjust.
8579 * s390-tdep.c (s390_record_address_mask)
8580 (s390_record_calc_disp_common, s390_record_calc_disp)
8581 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
8582 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
8583 (s390_process_record): Moved from s390-linux-tdep.c
8584 (s390_gdbarch_init): Adjust.
8585
d6e58945
PR
85862018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8587
8588 * s390-linux-nat.c (s390-tdep.h): New include.
8589 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
8590 (HFILES_NO_SRCDIR): Add s390-tdep.h.
8591 (ALLDEPFILES): Add s390-tdep.c.
8592 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
8593 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
8594 * s390-tdep.h: ...this. New file.
8595 * s390-linux-tdep.c (s390-tdep.h): New include.
8596 (_initialize_s390_tdep): Rename to...
8597 (_initialize_s390_linux_tdep): ...this and adjust.
8598 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
8599 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
8600 s390-tdep.h.
8601 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
8602 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
8603 (s390_is_partial_instruction, s390_software_single_step)
8604 (is_non_branch_ril, s390_displaced_step_copy_insn)
8605 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
8606 (s390_prologue_data, s390_addr, s390_store, s390_load)
8607 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
8608 (s390_register_call_saved, s390_guess_tracepoint_registers)
8609 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
8610 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
8611 (s390_pseudo_register_name, s390_pseudo_register_type)
8612 (s390_pseudo_register_read, s390_pseudo_register_write)
8613 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
8614 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
8615 (s390_addr_bits_remove, s390_address_class_type_flags)
8616 (s390_address_class_type_flags_to_name)
8617 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
8618 (s390_function_arg_float, s390_function_arg_vector)
8619 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
8620 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
8621 (s390_frame_align, s390_register_return_value, s390_return_value)
8622 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
8623 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
8624 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
8625 (s390_trad_frame_prev_register, s390_unwind_cache)
8626 (s390_prologue_frame_unwind_cache)
8627 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
8628 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
8629 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
8630 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
8631 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
8632 (s390_frame_base_address, s390_local_base_address)
8633 (s390_frame_base, s390_gcc_target_options)
8634 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
8635 (s390_validate_reg_range, s390_tdesc_valid)
8636 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
8637 * s390-tdep.c: ...this. New file.
8638
9c0b896e
PR
86392018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8640
8641 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
8642 (s390_process_record, s390_gdbarch_tdep_alloc)
8643 (s390_linux_init_abi_any): Use/set new hook.
8644
7042632b
PR
86452018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8646
8647 * s390-linux-tdep.c (osabi.h): New include.
8648 (s390_linux_init_abi_31, s390_linux_init_abi_64)
8649 (s390_linux_init_abi_any): New functions.
8650 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
8651
650f5e13
PR
86522018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8653
8654 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
8655 tdesc_has_registers check
8656
47c9317e
PR
86572018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8658
8659 * s390-linux-tdep.c (s390_tdesc_valid): New function.
8660 (s390_validate_reg_range): New macro.
8661 (s390_gdbarch_init): Adjust.
8662
095085d8
PR
86632018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8664
8665 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
8666 (s390_gdbarch_tdep_alloc): Adjust.
8667 (s390_gdbarch_init): Adjust.
8668
ab9bcc67
PR
86692018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8670
8671 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
8672 <have_tdb>: Change type to bool.
8673 (s390_gdbarch_tdep_alloc): Adjust.
8674 (s390_gdbarch_init): Adjust.
8675
21f6f5ff
PR
86762018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8677
8678 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
8679 (gdbarch_tdep) <have_upper, have_vx>: New fields.
8680 (s390_gdbarch_tdep_alloc): New function.
8681 (s390_gdbarch_init): Allocate tdep at start and use its fields
8682 instead of separate variables.
8683
0eb97953
PR
86842018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8685
8686 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
8687 when looking for cached gdbarch and add comment for remaining.
8688
5c319bb2
PA
86892018-01-22 Pedro Alves <palves@redhat.com>
8690 Sergio Durigan Junior <sergiodj@redhat.com>
8691
8692 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
8693 case.
8694
d65ce302
MR
86952018-01-22 Maciej W. Rozycki <macro@mips.com>
8696
8697 * MAINTAINERS: Update my company e-mail address.
8698
ec7a5fcb
YQ
86992018-01-22 Yao Qi <yao.qi@linaro.org>
8700
8701 * regcache.c (cooked_write_test): New function.
8702 (_initialize_regcache): Register the test.
8703
11f57cb6
YQ
87042018-01-22 Yao Qi <yao.qi@linaro.org>
8705
8706 * ia64-tdep.c (ia64_pseudo_register_read): Call
8707 regcache->cooked_read instead of regcache_cooked_read_unsigned.
8708 * m32c-tdep.c (m32c_cat_read): Likewise.
8709 (m32c_r3r2r1r0_read): Likewise.
8710 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
8711 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
8712
03f50fc8
YQ
87132018-01-22 Yao Qi <yao.qi@linaro.org>
8714
8715 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
8716 method raw_read instead of regcache_raw_read.
8717 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
8718 * arm-tdep.c (arm_neon_quad_read): Likewise.
8719 * avr-tdep.c (avr_pseudo_register_read): Likewise.
8720 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
8721 * frv-tdep.c (frv_pseudo_register_read): Likewise.
8722 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
8723 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
8724 (i386_pseudo_register_read_into_value): Likewise.
8725 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
8726 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
8727 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
8728 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
8729 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
8730 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
8731 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
8732 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
8733 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
8734
dc711524
YQ
87352018-01-22 Yao Qi <yao.qi@linaro.org>
8736
8737 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
8738 * configure.tgt: Remove target mt.
8739 * mt-tdep.c: Remove.
8740 * regcache.c (cooked_read_test): Remove the check for mt.
8741
3f5a868b
YQ
87422018-01-22 Yao Qi <yao.qi@linaro.org>
8743
8744 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
8745 instead of gdbarch_pseudo_register_read_value.
8746
de4cb04a
JB
87472018-01-22 Joel Brobecker <brobecker@adacore.com>
8748
8749 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
8750 language is Ada.
8751
a9e40818
JB
87522018-01-22 Joel Brobecker <brobecker@adacore.com>
8753
8754 * linespec.c (create_sals_line_offset): Remove code that preserved
8755 the symtab_and_line's line number.
8756
e707fc44
AB
87572018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
8758
8759 * varobj.c (varobj_create): Don't set valid_block when creating a
8760 floating varobj.
8761
03d0bf7b
AB
87622018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
8763
8764 * varobj.c (varobj_create): Remove out of date comment.
8765
ae451627
AB
87662018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
8767
8768 PR mi/20395
8769 * ada-exp.y (write_var_from_sym): Pass extra parameter when
8770 updating innermost block.
8771 * parse.c (innermost_block_tracker::update): Take extra type
8772 parameter, and check types match before updating innermost block.
8773 (write_dollar_variable): Update innermost block for registers.
8774 * parser-defs.h (enum innermost_block_tracker_type): New enum.
8775 (innermost_block_tracker::innermost_block_tracker): Initialise
8776 m_types member.
8777 (innermost_block_tracker::reset): Take type parameter.
8778 (innermost_block_tracker::update): Take type parameter, and pass
8779 type through as needed.
8780 (innermost_block_tracker::m_types): New member.
8781 * varobj.c (varobj_create): Pass type when reseting innermost
8782 block.
8783
aee1fcdf
AB
87842018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
8785
8786 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
8787 * ada-lang.c (resolve_subexp): Likewise.
8788 * breakpoint.c (set_breakpoint_condition) Likewise.
8789 (watch_command_1) Likewise.
8790 * c-exp.y (variable): Likewise.
8791 * d-exp.y (PrimaryExpression): Likewise.
8792 * f-exp.y (variable): Likewise.
8793 * go-exp.y (variable): Likewise.
8794 * m2-exp.y (variable): Likewise.
8795 * objfiles.c (objfile::~objfile): Likewise.
8796 * p-exp.y (variable): Likewise.
8797 * parse.c (innermost_block): Change type.
8798 * parser-defs.h (class innermost_block_tracker): New.
8799 (innermost_block): Change to innermost_block_tracker.
8800 * printcmd.c (display_command): Switch to innermost_block API.
8801 (do_one_display): Likewise.
8802 * rust-exp.y (do_one_display): Likewise.
8803 * symfile.c (clear_symtab_users): Likewise.
8804 * varobj.c (varobj_create): Switch to innermost_block API, replace
8805 use of innermost_block with block stored on varobj object.
8806
396af9a1
AB
88072018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
8808
8809 * expression.h (innermost_block): Remove declaration.
8810 * varobj.c: Add 'parser-defs.h' include.
8811
fcfcc376
TT
88122018-01-19 Tom Tromey <tom@tromey.com>
8813
8814 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
8815 symbols in the static and global blocks.
8816
5a6c3296
JC
88172018-01-19 James Clarke <jrtc27@jrtc27.com>
8818
8819 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
8820 gdb_ptrace.h, and move including gdb_wait.h ...
8821 * nat/linux-ptrace.h: ... to here.
8822
bc09b0c1
SM
88232018-01-19 Simon Marchi <simon.marchi@ericsson.com>
8824
8825 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
8826 inf_ptrace_detach_success.
8827 (inf_ptrace_detach_success): Add inferior parameter, use it
8828 instead of inferior_ptid, pass it to detach_inferior.
8829 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
8830 parameter.
8831 * inferior.c (detach_inferior): Add overload that takes an
8832 inferior object.
8833 * inferior.h (detach_inferior): Likewise.
8834 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
8835 use inferior_ptid, adjust call to inf_ptrace_detach_success.
8836 * linux-thread-db.c (thread_db_detach): Use inf parameter.
8837
6e1e1966
SM
88382018-01-19 Simon Marchi <simon.marchi@ericsson.com>
8839
8840 * target.h (struct target_ops) <to_detach>: Add inferior
8841 parameter.
8842 (target_detach): Likewise.
8843 * target.c (dispose_inferior): Pass inferior down.
8844 (target_detach): Pass inferior down. Assert that it is equal to
8845 the current inferior.
8846 * aix-thread.c (aix_thread_detach): Pass inferior down.
8847 * corefile.c (core_file_command): Pass current_inferior() down.
8848 * corelow.c (core_detach): Add inferior parameter.
8849 * darwin-nat.c (darwin_detach): Likewise.
8850 * gnu-nat.c (gnu_detach): Likewise.
8851 * inf-ptrace.c (inf_ptrace_detach): Likewise.
8852 * infcmd.c (detach_command): Pass current_inferior() down to
8853 target_detach.
8854 * infrun.c (follow_fork_inferior): Pass parent_inf to
8855 target_detach.
8856 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
8857 target_detach.
8858 * linux-nat.c (linux_nat_detach): Add inferior parameter.
8859 * linux-thread-db.c (thread_db_detach): Likewise.
8860 * nto-procfs.c (procfs_detach): Likewise.
8861 * procfs.c (procfs_detach): Likewise.
8862 * record.c (record_detach): Likewise.
8863 * record.h (struct inferior): Forward-declare.
8864 (record_detach): Add inferior parameter.
8865 * remote-sim.c (gdbsim_detach): Likewise.
8866 * remote.c (remote_detach_1): Likewise.
8867 (remote_detach): Likewise.
8868 (extended_remote_detach): Likewise.
8869 * sol-thread.c (sol_thread_detach): Likewise.
8870 * target-debug.h (target_debug_print_inferior_p): New macro.
8871 * target-delegates.c: Re-generate.
8872 * top.c (kill_or_detach): Pass inferior down to target_detach.
8873 * windows-nat.c (windows_detach): Add inferior parameter.
8874
6bd6f3b6
SM
88752018-01-19 Simon Marchi <simon.marchi@ericsson.com>
8876
8877 * target.h (struct target_ops) <to_detach>: Remove args
8878 parameter.
8879 (target_detach): Likewise.
8880 * target.c (dispose_inferior): Adjust.
8881 (target_detach): Remove args parameter, adjust.
8882 * aix-thread.c (aix_thread_detach): Adjust.
8883 * corefile.c (core_file_command): Adjust.
8884 * corelow.c (core_detach): Adjust.
8885 * darwin-nat.c (darwin_detach): Adjust.
8886 * gnu-nat.c (gnu_detach): Adjust.
8887 * inf-ptrace.c (inf_ptrace_detach): Adjust.
8888 * infcmd.c (detach_command): Adjust
8889 * infrun.c (follow_fork_inferior): Adjust.
8890 (handle_vfork_child_exec_or_exit): Adjust.
8891 * linux-fork.c (linux_fork_detach): Remove args parameter.
8892 * linux-fork.h (linux_fork_detach): Likewise.
8893 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
8894 * linux-thread-db.c (thread_db_detach): Likewise.
8895 * nto-procfs.c (procfs_detach): Likewise.
8896 * procfs.c (procfs_detach): Likewise.
8897 (do_detach): Remove signo parameter.
8898 * record.c (record_detach): Remove args parameter.
8899 * record.h (record_detach): Likewise.
8900 * remote-sim.c (gdbsim_detach): Likewise.
8901 * remote.c (remote_detach_1): Likewise.
8902 (remote_detach): Likewise.
8903 (extended_remote_detach): Likewise.
8904 * sol-thread.c (sol_thread_detach): Likewise.
8905 * target-delegates.c: Re-generate.
8906 * top.c (struct qt_args) <args>: Remove field.
8907 (kill_or_detach): Don't pass args.
8908 (quit_force): Don't set args.
8909 * windows-nat.c (windows_detach): Remove args parameter.
8910
88af8ea8
YQ
89112018-01-19 Yao Qi <yao.qi@linaro.org>
8912
8913 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
8914 (arm_linux_init_abi): Install it.
8915
dea445b9
YQ
89162018-01-19 Yao Qi <yao.qi@linaro.org>
8917
8918 * osabi.c (gdb_osabi_names): Extend the regexp for
8919 arm-linux-gnueabihf.
8920
4a17f768
YQ
89212018-01-18 Yao Qi <yao.qi@linaro.org>
8922
8923 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
8924 m_abbrevs.
8925 (abbrev_table::add_abbrev): Update.
8926 (abbrev_table::lookup_abbrev): Update.
8927
d679c21a
YQ
89282018-01-18 Yao Qi <yao.qi@linaro.org>
8929
8930 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
8931
7d937cad
SDJ
89322018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8933
8934 * compile/compile.c (compile_to_object): Convert "triplet_rx"
8935 to "std::string".
8936
9e14690d
TT
89372018-01-17 Tom Tromey <tom@tromey.com>
8938
8939 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
8940
50a82047
TT
89412018-01-17 Tom Tromey <tom@tromey.com>
8942
8943 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
8944 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
8945 (create_array_type_with_stride): Update.
8946 * dwarf2read.c (set_die_type): Update.
8947
c89b44cd
TT
89482018-01-17 Tom Tromey <tom@tromey.com>
8949
8950 * dwarf2read.c (delayed_method_info): Remove typedef.
8951 (dwarf2_cu::method_info): Now a std::vector.
8952 (add_to_method_list): Update.
8953 (free_delayed_list): Remove.
8954 (compute_delayed_physnames): Update.
8955 (process_full_comp_unit, process_full_type_unit): Clear the method
8956 list. Remove cleanups.
8957 (psymtab_include_file_name): Add name_holder parameter. Use
8958 unique_xmalloc_ptr.
8959 (dwarf_decode_lines): Update.
8960
fcd3b13d
SM
89612018-01-17 Tom Tromey <tom@tromey.com>
8962 Simon Marchi <simon.marchi@ericsson.com>
8963
8964 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
8965 (dwarf2_per_objfile::free_cached_comp_units)
8966 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
8967 (init_cutu_and_read_dies_no_follow): Update.
8968 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
8969 (dwarf2_cu::~dwarf2_cu): New.
8970 (free_heap_comp_unit, free_stack_comp_unit): Remove.
8971 (age_cached_comp_units, free_one_cached_comp_unit): Update.
8972
685af9cd
TT
89732018-01-17 Tom Tromey <tom@tromey.com>
8974 Simon Marchi <simon.marchi@ericsson.com>
8975
8976 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
8977 (struct die_reader_specs) <abbrev_table>: New member.
8978 (struct abbrev_table): Add constructor.
8979 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
8980 <abbrev_obstack>: Now an auto_obstack.
8981 (abbrev_table_up): New typedef.
8982 (init_cu_die_reader): Add abbrev_table parameter.
8983 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
8984 Add result_dwo_abbrev_table.
8985 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
8986 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
8987 Update.
8988 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
8989 parameter.
8990 (skip_children): Update.
8991 (abbrev_table::alloc_abbrev): Rename from
8992 abbrev_table_alloc_abbrev.
8993 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
8994 (abbrev_table::lookup_abbrev): Rename from
8995 abbrev_table_lookup_abbrev.
8996 (abbrev_table_read_table): Return abbrev_table_up.
8997 (abbrev_table_free, abbrev_table_free_cleanup)
8998 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
8999 (load_partial_dies): Update.
9000
5e2db402
TT
90012018-01-17 Tom Tromey <tom@tromey.com>
9002
9003 * dwarf2read.c (dwarf2_compute_name): Update comment.
9004 (read_func_scope, read_variable): Update.
9005 (new_symbol): Remove.
9006 (new_symbol_full): Rename to new_symbol.
9007
ee7f689e 90082018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
9009
9010 PR gdb/16577
9011 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
9012 a warning instead of throwing an error, set section size to 0 and return
9013 NULL.
9014 * gdb_bfd.h (gdb_bfd_map_section): Update description.
9015
4d9b86e1
SM
90162018-01-17 Simon Marchi <simon.marchi@ericsson.com>
9017
9018 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
9019 std::string.
9020 (linux_ptrace_attach_fail_reason_string): Likewise.
9021 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
9022 Likewise.
9023 (linux_ptrace_attach_fail_reason_string): Likewise.
9024 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
9025
a7b2d0fb
SM
90262018-01-17 Simon Marchi <simon.marchi@ericsson.com>
9027
9028 * linux-nat.c (linux_nat_attach): Remove xstrdup.
9029
f517c180
EA
90302018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
9031
9032 PR gdb/21559
9033 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
9034 checking for fs_base/gs_base fields in struct user_regs_struct.
9035 * configure: Regenerate.
9036
7045b1ca
YQ
90372018-01-17 Yao Qi <yao.qi@linaro.org>
9038
9039 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
9040 function.
9041 (aarch64_linux_init_abi): Install it to gdbarch hook
9042 gcc_target_options.
9043
db422fb2
PA
90442018-01-15 Pedro Alves <palves@redhat.com>
9045
9046 * common/signals-state-save-restore.c
9047 (save_original_signals_state): Fix typos.
9048
ba643918
SDJ
90492017-01-12 Tom Tromey <tom@tromey.com>
9050 Sergio Durigan Junior <sergiodj@redhat.com>
9051
9052 * Makefile.in (install-only): Install gdb-add-index.
9053
906b4aac
JB
90542018-01-12 John Baldwin <jhb@FreeBSD.org>
9055
9056 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
9057
bdf2a94a
AA
90582018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9059
9060 * infrun.c (keep_going_pass_signal): Clear step-over info when
9061 insert_breakpoints fails.
9062
71d378ae
PA
90632018-01-11 Pedro Alves <palves@redhat.com>
9064
9065 PR gdb/22583
9066 * infrun.c (resume): Rename to ...
9067 (resume_1): ... this.
9068 (resume): Reimplement as wrapper around resume_1.
9069
3cada740
PA
90702018-01-11 Pedro Alves <palves@redhat.com>
9071
9072 PR remote/22597
9073 * remote.c (remote_parse_stop_reply): Default to the last-set
9074 general thread instead of to 'magic_null_ptid'.
9075
618daa93
PA
90762018-01-10 Pedro Alves <palves@redhat.com>
9077
9078 * language.h (language_get_symbol_name_matcher): Rename ...
9079 (get_symbol_name_matcher): ... this.
9080 * language.c (language_get_symbol_name_matcher): Ditto.
9081 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
9082 callers adjusted.
9083
c63d3e8d
PA
90842018-01-10 Pedro Alves <palves@redhat.com>
9085
9086 PR gdb/22670
9087 * dwarf2read.c
9088 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
9089 Adjust to use language_get_symbol_name_matcher instead of
9090 language_defn::la_get_symbol_name_matcher.
9091 * language.c (language_get_symbol_name_matcher): If in Ada mode
9092 and the lookup name is a verbatim match, return Ada's matcher.
9093 * language.h (language_get_symbol_name_matcher): Adjust comment.
9094 (ada_lookup_name_info::verbatim_p):: New method.
9095
d4c2a405
PA
90962018-01-10 Pedro Alves <palves@redhat.com>
9097
9098 PR gdb/22670
9099 * ada-lang.c (ada_collect_symbol_completion_matches): If the
9100 minsym's language is language_auto or language_cplus, pass down
9101 language_ada instead.
9102 * symtab.c (compare_symbol_name): Don't frob symbol language here.
9103
8825213e
PA
91042018-01-10 Pedro Alves <palves@redhat.com>
9105
9106 PR gdb/22670
9107 * minsyms.c (linkage_name_str): New function.
9108 (iterate_over_minimal_symbols): Use it.
9109
2d97a5d9
JB
91102018-01-09 John Baldwin <jhb@FreeBSD.org>
9111
9112 * NEWS: Document that 'info proc' now works on FreeBSD.
9113
92fce24d
JB
91142018-01-09 John Baldwin <jhb@FreeBSD.org>
9115
9116 * configure.ac: Check for kinfo_getfile in libutil.
9117 * configure: Regenerate.
9118 * config.in: Regenerate.
9119 * fbsd-nat.c: Include "fbsd-tdep.h".
9120 (fbsd_fetch_cmdline): New.
9121 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
9122 rather than calling error.
9123 (fbsd_info_proc): New.
9124 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
9125 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
9126 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
9127
262f62f5
JB
91282018-01-09 John Baldwin <jhb@FreeBSD.org>
9129
9130 * fbsd-nat.c (struct free_deleter): Remove.
9131 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
9132
b999e203
JB
91332018-01-09 John Baldwin <jhb@FreeBSD.org>
9134
9135 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
9136 NULL for an empty pathname.
9137
d2176225
JB
91382018-01-09 John Baldwin <jhb@FreeBSD.org>
9139
9140 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
9141 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
9142 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9143 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9144 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
9145 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
9146 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
9147 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
9148 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
9149 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
9150 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
9151 (fbsd_core_fetch_timeval, fbsd_print_sigset)
9152 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
9153 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
9154 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
9155
9c4ac400
ST
91562018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9157
9158 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
9159 (gnu_xfer_auxv): New function.
9160 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
9161 TARGET_OBJECT_AUXV.
9162
1e5ded6c
YQ
91632018-01-08 Yao Qi <yao.qi@linaro.org>
9164 Simon Marchi <simon.marchi@ericsson.com>
9165
9166 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
9167 common/selftest.c.
9168 (COMMON_OBS): Remove selftest.o.
9169 * configure.ac: Append selftest-arch.c and common/selftest.c to
9170 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
9171 * configure: Re-generated.
9172 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
9173 GDB_SELF_TEST.
9174 (maintenance_info_selftests): Likewise.
9175
04bafb1e
XR
91762018-01-08 Xavier Roirand <roirand@adacore.com>
9177
9178 * ada-valprint.c (val_print_packed_array_elements): Use
9179 proper number of elements when printing an array indexed
9180 by an enumeration type.
9181
518817b3
SM
91822018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9183
9184 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
9185 (dw2_get_file_names_reader): Adjust.
9186 (lookup_dwo_signatured_type): Adjust.
9187 (lookup_dwp_signatured_type): Adjust.
9188 (lookup_signatured_type): Adjust.
9189 (create_type_unit_group): Adjust.
9190 (get_type_unit_group): Adjust.
9191 (process_psymtab_comp_unit_reader): Adjust.
9192 (build_type_psymtabs_reader): Adjust.
9193 (scan_partial_symbols): Adjust.
9194 (add_partial_symbol): Adjust.
9195 (add_partial_subprogram): Adjust.
9196 (peek_die_abbrev): Adjust.
9197 (fixup_go_packaging): Adjust.
9198 (process_imported_unit_die): Adjust.
9199 (dwarf2_compute_name): Adjust.
9200 (dwarf2_physname): Adjust.
9201 (read_import_statement): Adjust.
9202 (handle_DW_AT_stmt_list): Adjust.
9203 (read_file_scope): Adjust.
9204 (read_func_scope): Adjust.
9205 (read_lexical_block_scope): Adjust.
9206 (read_call_site_scope): Adjust.
9207 (read_variable): Adjust.
9208 (dwarf2_rnglists_process): Adjust.
9209 (dwarf2_ranges_process): Adjust.
9210 (dwarf2_ranges_read): Adjust.
9211 (dwarf2_get_pc_bounds): Adjust.
9212 (dwarf2_record_block_ranges): Adjust.
9213 (dwarf2_add_field): Adjust.
9214 (dwarf2_add_member_fn): Adjust.
9215 (read_structure_type): Adjust.
9216 (process_structure_scope): Adjust.
9217 (read_enumeration_type): Adjust.
9218 (read_array_type): Adjust.
9219 (mark_common_block_symbol_computed): Adjust.
9220 (read_common_block): Adjust.
9221 (read_namespace_type): Adjust.
9222 (read_namespace): Adjust.
9223 (read_module_type): Adjust.
9224 (read_tag_pointer_type): Adjust.
9225 (read_tag_ptr_to_member_type): Adjust.
9226 (read_tag_string_type): Adjust.
9227 (read_subroutine_type): Adjust.
9228 (read_typedef): Adjust.
9229 (read_base_type): Adjust.
9230 (attr_to_dynamic_prop): Adjust.
9231 (read_subrange_type): Adjust.
9232 (read_unspecified_type): Adjust.
9233 (dwarf2_read_abbrevs): Adjust.
9234 (load_partial_dies): Adjust.
9235 (read_partial_die): Adjust.
9236 (find_partial_die): Adjust.
9237 (guess_partial_die_structure_name): Adjust.
9238 (fixup_partial_die): Adjust.
9239 (read_attribute_value): Adjust.
9240 (read_addr_index): Adjust.
9241 (read_addr_index_from_leb128): Adjust.
9242 (read_str_index): Adjust.
9243 (dwarf2_string_attr): Adjust.
9244 (get_debug_line_section): Adjust.
9245 (dwarf_decode_line_header): Adjust.
9246 (lnp_state_machine::check_line_address): Adjust.
9247 (dwarf_decode_lines_1): Adjust.
9248 (dwarf_decode_lines): Adjust.
9249 (dwarf2_start_symtab): Adjust.
9250 (var_decode_location): Adjust.
9251 (new_symbol_full): Adjust.
9252 (dwarf2_const_value_data): Adjust.
9253 (dwarf2_const_value_attr): Adjust.
9254 (dwarf2_const_value): Adjust.
9255 (die_type): Adjust.
9256 (die_containing_type): Adjust.
9257 (build_error_marker_type): Adjust.
9258 (lookup_die_type): Adjust.
9259 (guess_full_die_structure_name): Adjust.
9260 (anonymous_struct_prefix): Adjust.
9261 (determine_prefix): Adjust.
9262 (dwarf2_name): Adjust.
9263 (follow_die_ref_or_sig): Adjust.
9264 (follow_die_offset): Adjust.
9265 (follow_die_ref): Adjust.
9266 (follow_die_sig_1): Adjust.
9267 (follow_die_sig): Adjust.
9268 (get_signatured_type): Adjust.
9269 (get_DW_AT_signature_type): Adjust.
9270 (decode_locdesc): Adjust.
9271 (dwarf_decode_macros): Adjust.
9272 (cu_debug_loc_section): Adjust.
9273 (fill_in_loclist_baton): Adjust.
9274 (dwarf2_symbol_mark_computed): Adjust.
9275 (init_one_comp_unit): Don't assign
9276 dwarf2_cu::dwarf2_per_objfile.
9277 (set_die_type): Adjust.
9278
ed2dc618
SM
92792018-01-07 Simon Marchi <simon.marchi@ericsson.com>
9280
9281 * dwarf2read.c (struct mapped_debug_names): Add constructor.
9282 <dwarf2_per_objfile>: New field.
9283 (dwarf2_per_objfile): Remove global.
9284 (get_dwarf2_per_objfile): New function.
9285 (set_dwarf2_per_objfile): New function.
9286 (dwarf2_build_psymtabs_hard): Change objfile parameter to
9287 dwarf2_per_objfile.
9288 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
9289 (read_abbrev_offset): Likewise.
9290 (read_indirect_string): Likewise.
9291 (read_indirect_line_string): Likewise.
9292 (read_indirect_string_at_offset): Likewise.
9293 (read_indirect_string_from_dwz): Likewise.
9294 (dwarf2_find_containing_comp_unit): Change objfile parameter to
9295 dwarf2_per_objfile.
9296 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
9297 (create_all_comp_units): Change objfile parameter to
9298 dwarf2_per_objfile.
9299 (create_all_type_units): Likewise.
9300 (process_queue): Add dwarf2_per_objfile parameter.
9301 (read_and_check_comp_unit_head): Likewise.
9302 (lookup_dwo_unit_in_dwp): Likewise.
9303 (get_dwp_file): Likewise.
9304 (process_cu_includes): Likewise.
9305 (struct free_dwo_file_cleanup_data): New struct.
9306 (dwarf2_has_info): Use get_dwarf2_per_objfile and
9307 set_dwarf2_per_objfile.
9308 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
9309 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
9310 context, adjust calls.
9311 (dw2_instantiate_symtab): Likewise.
9312 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
9313 (dw2_get_cu): Likewise.
9314 (create_cu_from_index_list): Change objfile parameter to
9315 dwarf2_per_objfile.
9316 (create_cus_from_index_list): Get dwarf2_per_objfile from
9317 context, adjust calls.
9318 (create_cus_from_index): Likewise.
9319 (create_signatured_type_table_from_index): Change objfile
9320 parameter to dwarf2_per_objfile.
9321 (create_signatured_type_table_from_debug_names): Change objfile
9322 parameter to dwarf2_per_objfile.
9323 (create_addrmap_from_index): Likewise.
9324 (create_addrmap_from_aranges): Likewise.
9325 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
9326 (dw2_setup): Remove.
9327 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
9328 context.
9329 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
9330 get_dwarf2_per_objfile.
9331 (dw2_forget_cached_source_info): Likewise.
9332 (dw2_map_symtabs_matching_filename): Likewise.
9333 (struct dw2_symtab_iterator) <index>: Remove.
9334 <dwarf2_per_objfile>: New field.
9335 (dw2_symtab_iter_init): Replace index parameter with
9336 dwarf2_per_objfile.
9337 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
9338 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
9339 (dw2_print_stats): Likewise.
9340 (dw2_dump): Likewise.
9341 (dw2_expand_symtabs_for_function): Likewise.
9342 (dw2_expand_all_symtabs): Likewise.
9343 (dw2_expand_symtabs_with_fullname): Likewise.
9344 (dw2_expand_marked_cus): Replace index and objfile parameters
9345 with dwarf2_per_objfile.
9346 (dw_expand_symtabs_matching_file_matcher): Add
9347 dwarf2_per_objfile parameter and adjust calls.
9348 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
9349 adjust calls.
9350 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
9351 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
9352 adjust calls.
9353 (create_cus_from_debug_names_list): Replace objfile parameter
9354 with dwarf2_per_objfile and adjust calls.
9355 (create_cus_from_debug_names): Likewise.
9356 (dwarf2_read_debug_names): Likewise.
9357 (mapped_debug_names::namei_to_name): Adjust call.
9358 (dw2_debug_names_iterator::next): Likewise.
9359 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9360 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
9361 (dw2_debug_names_dump): Likewise.
9362 (dw2_debug_names_expand_symtabs_for_function): Likewise.
9363 (dw2_debug_names_expand_symtabs_matching): Likewise.
9364 (dwarf2_initialize_objfile): Likewise.
9365 (dwarf2_build_psymtabs): Likewise.
9366 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
9367 this_cu.
9368 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
9369 (read_and_check_comp_unit_head): Likewise.
9370 (read_abbrev_offset): Likewise.
9371 (create_debug_type_hash_table): Likewise.
9372 (create_debug_types_hash_table): Likewise.
9373 (create_all_type_units): Replace objfile parameter with
9374 dwarf2_per_objfile.
9375 (add_type_unit): Add dwarf2_per_objfile parameter.
9376 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
9377 with dwarf2_per_objfile.
9378 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
9379 (lookup_dwp_signatured_type): Likewise.
9380 (lookup_signatured_type): Likewise.
9381 (read_cutu_die_from_dwo): Likewise.
9382 (init_tu_and_read_dwo_dies): Likewise.
9383 (init_cutu_and_read_dies): Likewise.
9384 (init_cutu_and_read_dies_no_follow): Likewise.
9385 (allocate_type_unit_groups_table): Add objfile parameter.
9386 (create_type_unit_group): Use dwarf2_per_objfile from cu.
9387 (get_type_unit_group): Likewise.
9388 (process_psymtab_comp_unit): Update call.
9389 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
9390 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
9391 (print_tu_stats): Likewise.
9392 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
9393 in void* parameter.
9394 (build_type_psymtabs): Change objfile parameter to
9395 dwarf2_per_objfile.
9396 (process_skeletonless_type_unit): Use dwarf2_per_objfile
9397 passed in void* parameter.
9398 (process_skeletonless_type_units): Change objfile parameter to
9399 dwarf2_per_objfile.
9400 (set_partial_user): Likewise.
9401 (dwarf2_build_psymtabs_hard): Likewise.
9402 (read_comp_units_from_section): Likewise.
9403 (create_all_comp_units): Likewise.
9404 (scan_partial_symbols): Update calls.
9405 (add_partial_symbol): Likewise.
9406 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
9407 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
9408 (process_queue): Add dwarf2_per_objfile parameter.
9409 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
9410 (compute_compunit_symtab_includes): Likewise.
9411 (process_cu_includes): Add dwarf2_per_objfile parameter.
9412 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
9413 (process_full_type_unit): Likewise.
9414 (process_imported_unit_die): Update call.
9415 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
9416 (read_file_scope): Likewise.
9417 (allocate_dwo_file_hash_table): Add objfile parameter.
9418 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
9419 (create_cus_hash_table): Likewise.
9420 (create_dwp_hash_table): Likewise.
9421 (create_dwo_unit_in_dwp_v1): Likewise.
9422 (create_dwp_v2_section): Likewise.
9423 (create_dwo_unit_in_dwp_v2): Likewise.
9424 (lookup_dwo_unit_in_dwp): Likewise.
9425 (try_open_dwop_file): Likewise.
9426 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
9427 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
9428 cleanup to include a reference to dwarf2_per_objfile.
9429 (open_dwp_file): Add dwarf2_per_objfile parameter.
9430 (open_and_init_dwp_file): Likewise.
9431 (get_dwp_file): Likewise.
9432 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
9433 (queue_and_load_all_dwo_tus): Update call.
9434 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
9435 data.
9436 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
9437 (dwarf2_ranges_process): Likewise.
9438 (dwarf2_get_pc_bounds): Likewise.
9439 (mark_common_block_symbol_computed): Likewise.
9440 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
9441 (dwarf2_read_abbrevs): Update call.
9442 (read_partial_die): Use dwarf2_per_objfile from cu.
9443 (find_partial_die): Likewise.
9444 (fixup_partial_die): Likewise.
9445 (read_attribute_value): Likewise.
9446 (read_indirect_string_at_offset_from): Add objfile parameter.
9447 (read_indirect_string_at_offset): Add dwarf2_per_objfile
9448 parameter.
9449 (read_indirect_string_from_dwz): Add objfile parameter.
9450 (read_indirect_string): Add objfile parameter.
9451 (read_addr_index_1): Add dwarf2_per_objfile parameter.
9452 (read_addr_index): Use dwarf2_per_objfile from cu.
9453 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
9454 call dw2_setup.
9455 (read_str_index): Use dwarf2_per_objfile from cu.
9456 (get_debug_line_section): Likewise.
9457 (read_formatted_entries): Add dwarf2_per_objfile parameter.
9458 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
9459 (new_symbol_full): Use dwarf2_per_objfile from cu.
9460 (build_error_marker_type): Likewise.
9461 (lookup_die_type): Likewise.
9462 (determine_prefix): Likewise.
9463 (follow_die_offset): Likewise.
9464 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
9465 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
9466 (dwarf2_fetch_die_type_sect_off): Likewise.
9467 (dwarf2_get_die_type): Likewise.
9468 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
9469 (get_signatured_type): Likewise.
9470 (get_DW_AT_signature_type): Likewise.
9471 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
9472 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
9473 (cu_debug_loc_section): Likewise.
9474 (fill_in_loclist_baton): Likewise.
9475 (dwarf2_symbol_mark_computed): Likewise.
9476 (dwarf2_find_containing_comp_unit): Change objfile parameter to
9477 dwarf2_per_objfile.
9478 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
9479 parameter.
9480 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
9481 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
9482 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
9483 (set_die_type): Use dwarf2_free_objfile from cu.
9484 (get_die_type_at_offset): Likewise.
9485 (dwarf2_per_objfile_free): Don't assign global variable.
9486 (debug_names) <constructor>: Add dwarf2_per_objfile
9487 parameter, update m_debugstrlookup construction.
9488 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
9489 parameter.
9490 <m_dwarf2_per_objfile>: New field.
9491 <lookup>: Use m_dwarf2_per_objfile.
9492 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
9493 (psyms_seen_size): Likewise.
9494 (write_gdbindex): Replace objfile parameter with
9495 dwarf2_per_objfile.
9496 (write_debug_names): Likewise.
9497 (write_psymtabs_to_index): Likewise.
9498 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
9499 calls.
9500
e3b94546
SM
95012018-01-07 Simon Marchi <simon.marchi@ericsson.com>
9502
9503 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
9504 <dwarf2_per_objfile>: New field.
9505 (struct dwarf2_per_cu_data) <objfile>: Remove.
9506 <dwarf2_per_objfile>: New field.
9507 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
9508 of objfile.
9509 (create_signatured_type_table_from_index): Likewise.
9510 (create_debug_type_hash_table): Likewise.
9511 (fill_in_sig_entry_from_dwo_entry): Likewise.
9512 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
9513 (create_type_unit_group): Assign dwarf2_per_objfile instead of
9514 objfile.
9515 (create_partial_symtab): Access objfile through
9516 dwarf2_per_objfile.
9517 (process_psymtab_comp_unit_reader): Likewise.
9518 (read_comp_units_from_section): Likewise.
9519 (scan_partial_symbols): Likewise.
9520 (add_partial_symbol): Likewise.
9521 (add_partial_subprogram): Likewise.
9522 (peek_die_abbrev): Likewise.
9523 (fixup_go_packaging): Likewise.
9524 (process_full_comp_unit): Likewise.
9525 (process_full_type_unit): Likewise.
9526 (process_imported_unit_die): Likewise.
9527 (dwarf2_compute_name): Likewise.
9528 (dwarf2_physname): Likewise.
9529 (read_import_statement): Likewise.
9530 (create_cus_hash_table): Assign dwarf2_physname instead of
9531 objfile.
9532 (read_func_scope): Access objfile through dwarf2_per_objfile.
9533 (read_lexical_block_scope): Likewise.
9534 (read_call_site_scope): Likewise.
9535 (read_variable): Likewise.
9536 (dwarf2_rnglists_process): Likewise.
9537 (dwarf2_ranges_process): Likewise.
9538 (dwarf2_ranges_read): Likewise.
9539 (dwarf2_record_block_ranges): Likewise.
9540 (dwarf2_add_field): Likewise.
9541 (dwarf2_add_member_fn): Likewise.
9542 (read_structure_type): Likewise.
9543 (process_structure_scope): Likewise.
9544 (read_enumeration_type): Likewise.
9545 (read_array_type): Likewise.
9546 (read_common_block): Likewise.
9547 (read_namespace_type): Likewise.
9548 (read_namespace): Likewise.
9549 (read_module_type): Likewise.
9550 (read_tag_pointer_type): Likewise.
9551 (read_tag_ptr_to_member_type): Likewise.
9552 (read_tag_string_type): Likewise.
9553 (read_subroutine_type): Likewise.
9554 (read_typedef): Likewise.
9555 (read_base_type): Likewise.
9556 (attr_to_dynamic_prop): Likewise.
9557 (read_subrange_type): Likewise.
9558 (read_unspecified_type): Likewise.
9559 (load_partial_dies): Likewise.
9560 (read_partial_die): Likewise.
9561 (find_partial_die): Likewise.
9562 (guess_partial_die_structure_name): Likewise.
9563 (fixup_partial_die): Likewise.
9564 (read_attribute_value): Likewise.
9565 (read_addr_index_from_leb128): Likewise.
9566 (dwarf2_read_addr_index): Likewise.
9567 (dwarf2_string_attr): Likewise.
9568 (lnp_state_machine::check_line_address): Likewise.
9569 (dwarf_decode_lines_1): Likewise.
9570 (dwarf_decode_lines): Likewise.
9571 (dwarf2_start_symtab): Likewise.
9572 (var_decode_location): Likewise.
9573 (new_symbol_full): Likewise.
9574 (dwarf2_const_value_data): Likewise.
9575 (dwarf2_const_value_attr): Likewise.
9576 (dwarf2_const_value): Likewise.
9577 (die_type): Likewise.
9578 (die_containing_type): Likewise.
9579 (lookup_die_type): Likewise.
9580 (guess_full_die_structure_name): Likewise.
9581 (anonymous_struct_prefix): Likewise.
9582 (dwarf2_name): Likewise.
9583 (follow_die_ref_or_sig): Likewise.
9584 (follow_die_offset): Likewise.
9585 (follow_die_ref): Likewise.
9586 (dwarf2_fetch_die_loc_sect_off): Likewise.
9587 (dwarf2_fetch_constant_bytes): Likewise.
9588 (dwarf2_fetch_die_type_sect_off): Likewise.
9589 (dwarf2_get_die_type): Likewise.
9590 (follow_die_sig): Likewise.
9591 (decode_locdesc): Likewise.
9592 (dwarf2_per_cu_objfile): Likewise.
9593 (dwarf2_per_cu_text_offset): Likewise.
9594 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
9595 objfile.
9596 (set_die_type): Access objfile through
9597 dwarf2_per_objfile.
9598
b01ba14d
SM
95992018-01-07 Simon Marchi <simon.marchi@ericsson.com>
9600
9601 * valprint.c (converted_character_d): Remove typedef.
9602 (DEF_VEC_O (converted_character_d)): Remove.
9603 (count_next_character): Use std::vector.
9604 (print_converted_chars_to_obstack): Likewise.
9605 (generic_printstr): Likewise.
9606
4d0fdd9b
SM
96072018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9608
9609 * xml-support.h (struct gdb_xml_value): Add constructor.
9610 <value>: Change type to unique_xmalloc_ptr.
9611 (gdb_xml_value_s): Remove typedef.
9612 (DEF_VEC_O (gdb_xml_value_s)): Remove.
9613 (gdb_xml_element_start_handler): Change parameter type to
9614 std::vector.
9615 (xml_find_attribute): Likewise.
9616 * xml-support.c (xml_find_attribute): Change parameter type to
9617 std::vector and adjust.
9618 (gdb_xml_values_cleanup): Remove.
9619 (gdb_xml_parser::start_element): Adjust to std::vector.
9620 (xinclude_start_include): Change paraeter type to std::vector
9621 and adjust.
9622 * btrace.c (check_xml_btrace_version): Likewise.
9623 (parse_xml_btrace_block): Likewise.
9624 (parse_xml_btrace_pt_config_cpu): Likewise.
9625 (parse_xml_btrace_pt): Likewise.
9626 (parse_xml_btrace_conf_bts): Likewise.
9627 (parse_xml_btrace_conf_pt): Likewise.
9628 * memory-map.c (memory_map_start_memory): Likewise.
9629 (memory_map_start_property): Likewise.
9630 * osdata.c (osdata_start_osdata): Likewise.
9631 (osdata_start_item): Likewise.
9632 (osdata_start_column): Likewise.
9633 * remote.c (start_thread): Likewise.
9634 * solib-aix.c (library_list_start_library): Likewise.
9635 (library_list_start_list): Likewise.
9636 * solib-svr4.c (library_list_start_library): Likewise.
9637 (svr4_library_list_start_list): Likewise.
9638 * solib-target.c (library_list_start_segment): Likewise.
9639 (library_list_start_section): Likewise.
9640 (library_list_start_library): Likewise.
9641 (library_list_start_list): Likewise.
9642 * tracepoint.c (traceframe_info_start_memory): Likewise.
9643 (traceframe_info_start_tvar): Likewise.
9644 * xml-syscall.c (syscall_start_syscall): Likewise.
9645 * xml-tdesc.c (tdesc_start_target): Likewise.
9646 (tdesc_start_feature): Likewise.
9647 (tdesc_start_reg): Likewise.
9648 (tdesc_start_union): Likewise.
9649 (tdesc_start_struct): Likewise.
9650 (tdesc_start_flags): Likewise.
9651 (tdesc_start_enum): Likewise.
9652 (tdesc_start_field): Likewise.
9653 (tdesc_start_enum_value): Likewise.
9654 (tdesc_start_vector): Likewise.
9655
f979c73f
SM
96562018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9657
9658 * extension.h (struct xmethod_worker) <clone>: Remove.
9659 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
9660 Remove.
9661 (python_xmethod_worker::clone): Remove.
9662 * valops.c (find_overload_match): Use std::move instead of
9663 clone.
9664
ba18742c
SM
96652018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9666
9667 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
9668 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
9669 <free_xmethod_worker_data>: Remove.
9670 <get_matching_xmethod_workers>: Chance VEC to std::vector.
9671 <get_xmethod_arg_types>: Remove.
9672 <get_xmethod_result_type>: Remove.
9673 <invoke_xmethod>: Remove.
9674 * extension.c (new_xmethod_worker): Remove.
9675 (clone_xmethod_worker): Remove.
9676 (get_matching_xmethod_workers): Return void, pass std::vector by
9677 pointer.
9678 (get_xmethod_arg_types): Rename to...
9679 (xmethod_worker::get_arg_types): ... this, and adjust.
9680 (get_xmethod_result_type): Rename to...
9681 (xmethod_worker::get_result_type): ... this, and adjust.
9682 (invoke_xmethod): Remove.
9683 (free_xmethod_worker): Remove.
9684 (free_xmethod_worker_vec): Remove.
9685 * extension.h (enum ext_lang_rc): Move here from
9686 extension-priv.h.
9687 (struct xmethod_worker): Add constructor and destructor.
9688 <data>: Remove.
9689 <value>: Remove.
9690 <invoke, clone, do_get_result_type, do_get_arg_types>: New
9691 virtual pure methods.
9692 <get_arg_types, get_result_type>: New methods.
9693 (xmethod_worker_ptr): Remove typedef.
9694 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
9695 (xmethod_worker_vec): Remove typedef.
9696 (xmethod_worker_up): New typedef.
9697 (invoke_xmethod): Remove.
9698 (clone_xmethod_worker): Remove.
9699 (free_xmethod_worker): Remove.
9700 (free_xmethod_worker_vec): Remove.
9701 (get_xmethod_arg_types): Remove.
9702 (get_xmethod_result_type): Remove.
9703 * valops.c (find_method_list): Use std::vector, don't use
9704 intermediate vector.
9705 (value_find_oload_method_list): Use std::vector.
9706 (find_overload_match): Use std::vector.
9707 (find_oload_champ): Use std::vector.
9708 * value.c (value_free): Use operator delete.
9709 (value_of_xmethod): Rename to...
9710 (value_from_xmethod): ... this. Don't assign
9711 xmethod_worker::value, take rvalue-reference.
9712 (result_type_of_xmethod): Adjust.
9713 (call_xmethod): Adjust.
9714 * value.h: Include extension.h.
9715 (struct xmethod_worker): Don't forward-declare.
9716 (value_of_xmethod): Rename to...
9717 (value_from_xmethod): ... this, take rvalue-reference.
9718 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
9719 (struct python_xmethod_worker): ... this, add constructor and
9720 destructor.
9721 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
9722 (gdbpy_free_xmethod_worker_data): Rename to...
9723 (python_xmethod_worker::~python_xmethod_worker): ... this and
9724 adjust.
9725 (gdbpy_clone_xmethod_worker_data): Rename to...
9726 (python_xmethod_worker::clone): ... this and adjust.
9727 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
9728 temporary vector.
9729 (gdbpy_get_xmethod_arg_types): Rename to...
9730 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
9731 (gdbpy_get_xmethod_result_type): Rename to...
9732 (python_xmethod_worker::do_get_result_type): ... this and
9733 adjust.
9734 (gdbpy_invoke_xmethod): Rename to...
9735 (python_xmethod_worker::invoke): ... this and adjust.
9736 (new_python_xmethod_worker): Rename to...
9737 (python_xmethod_worker::python_xmethod_worker): ... this and
9738 adjust.
9739 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
9740 Remove.
9741 (gdbpy_free_xmethod_worker_data): Remove.
9742 (gdbpy_get_matching_xmethod_workers): Use std::vector.
9743 (gdbpy_get_xmethod_arg_types): Remove.
9744 (gdbpy_get_xmethod_result_type): Remove.
9745 (gdbpy_invoke_xmethod): Remove.
9746 * python/python.c (python_extension_ops): Remove obsolete
9747 callbacks.
9748
e379cee6
PA
97492018-01-05 Pedro Alves <palves@redhat.com>
9750
9751 PR gdb/18653
9752 * common/signals-state-save-restore.c
9753 (save_original_signals_state): New parameter 'quiet'. Warn if we
9754 find a custom handler preinstalled, instead of internal erroring.
9755 But only warn if !quiet.
9756 * common/signals-state-save-restore.h
9757 (save_original_signals_state): New parameter 'quiet'.
9758 * main.c (captured_main_1): Move save_original_signals_state call
9759 after option handling, and pass QUIET.
9760
a655456c
PA
97612018-01-05 Pedro Alves <palves@redhat.com>
9762
9763 * spu-tdep.c (spu_catch_start): Pass
9764 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
9765
de63c46b
PA
97662018-01-05 Pedro Alves <palves@redhat.com>
9767
9768 PR gdb/22670
9769 * ada-lang.c (literal_symbol_name_matcher): New function.
9770 (ada_get_symbol_name_matcher): Use it for
9771 symbol_name_match_type::SEARCH_NAME.
9772 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
9773 it down instead of assuming symbol_name_match_type::FULL.
9774 * block.h (block_lookup_symbol): New parameter 'match_type'.
9775 * c-valprint.c (print_unpacked_pointer): Use
9776 lookup_symbol_search_name instead of lookup_symbol.
9777 * compile/compile-object-load.c (get_out_value_type): Pass down
9778 symbol_name_match_type::SEARCH_NAME.
9779 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
9780 symbol_name_match_type::FULL.
9781 * cp-support.c (cp_get_symbol_name_matcher): Handle
9782 symbol_name_match_type::SEARCH_NAME.
9783 * infrun.c (insert_exception_resume_breakpoint): Use
9784 lookup_symbol_search_name.
9785 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
9786 * psymtab.c (maintenance_check_psymtabs): Use
9787 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
9788 * stack.c (print_frame_args): Use lookup_symbol_search_name and
9789 SYMBOL_SEARCH_NAME.
9790 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
9791 if symbol_name_match_type::SEARCH_NAME.
9792 (lookup_symbol_in_language): Pass down
9793 symbol_name_match_type::FULL.
9794 (lookup_symbol_search_name): New.
9795 (lookup_language_this): Pass down
9796 symbol_name_match_type::SEARCH_NAME.
9797 (lookup_symbol_aux, lookup_local_symbol): New parameter
9798 'match_type'. Pass it down.
9799 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
9800 (lookup_symbol_search_name): New declaration.
9801 (lookup_symbol_in_block): New 'match_type' parameter.
9802
f98fc17b
PA
98032018-01-05 Pedro Alves <palves@redhat.com>
9804
9805 PR gdb/22670
9806 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
9807 ada_lookup_symbol.
9808 (ada_lookup_symbol): Reimplement in terms of
9809 ada_lookup_symbol_list, bits factored out from
9810 ada_lookup_encoded_symbol.
9811
342f8240
JB
98122018-01-05 Joel Brobecker <brobecker@adacore.com>
9813
9814 * ada-exp.y (write_object_renaming): When subscripting an array
9815 using a symbol as the index, pass the block in call to
9816 ada_lookup_encoded_symbol when looking that symbol up.
9817
7150d33c
JG
98182018-01-05 Jerome Guitton <guitton@adacore.com>
9819
9820 * ada-lang.c (ada_array_length): Use ada_index_type instead of
9821 TYPE_INDEX_TYPE.
9822
cc0e770c
JB
98232018-01-05 Joel Brobecker <brobecker@adacore.com>
9824
9825 * ada-lang.c (ada_to_fixed_value_create): Add handling of
9826 the case where VALUE_LVAL (val0) is not lval_memory.
9827
f79da888 98282018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
9829
9830 * ada-valprint.c (print_optional_low_bound): Handle
9831 character-indexed array printing like boolean-indexed array
9832 printing.
9833
cd385f94
JB
98342018-01-05 Joel Brobecker <brobecker@adacore.com>
9835
9836 * NEWS: Create a new section for the next release branch.
9837 Rename the section of the current branch, now that it has
9838 been cut.
9839
09aca949
JB
98402018-01-05 Joel Brobecker <brobecker@adacore.com>
9841
9842 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
9843 * version.in: Bump version to 8.1.50.DATE-git.
9844
9f757bf7
XR
98452018-01-03 Xavier Roirand <roirand@adacore.com>
9846
9847 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
9848 Add field.
9849 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
9850 Add field.
9851 (default_exception_support_info) <catch_handlers_sym>: Add field.
9852 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
9853 (ada_exception_name_addr_1): Add "catch handlers" handling.
9854 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
9855 Update all callers.
9856 (create_excep_cond_exprs) <ex>: Add parameter.
9857 (re_set_exception): Update create_excep_cond_exprs call.
9858 (print_it_exception, print_one_exception, print_mention_exception)
9859 (print_recreate_exception): Add "catch handler" handling.
9860 (allocate_location_catch_handlers, re_set_catch_handlers)
9861 (check_status_catch_handlers, print_it_catch_handlers)
9862 (print_one_catch_handlers, print_mention_catch_handlers)
9863 (print_recreate_catch_handlers): New function.
9864 (catch_handlers_breakpoint_ops): New variable.
9865 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
9866 Add parameter. Add "catch handler" handling.
9867 (ada_exception_sym_name, ada_exception_breakpoint_ops):
9868 Add "catch handler" handling.
9869 (ada_exception_catchpoint_cond_string): Add "catch handler"
9870 handling.
9871 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
9872 call.
9873 (catch_ada_handlers_command): New function.
9874 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
9875 operations structure.
9876 (_initialize_ada_language): Add "catch handlers" command entry.
9877 * NEWS: Document "catch handlers" feature.
9878
9fe561ab
JB
98792018-01-02 Joel Brobecker <brobecker@adacore.com>
9880
9881 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
9882 account when creating the array type of the slice.
9883 (ada_value_slice): Likewise.
9884
a405673c
JB
98852018-01-02 Joel Brobecker <brobecker@adacore.com>
9886
9887 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
9888 New enum value.
9889 (create_array_type_with_stride): Add byte_stride_prop parameter.
9890 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
9891 New parameter. Update all callers in this file.
9892 (array_type_has_dynamic_stride): New function.
9893 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
9894 of arrays with dynamic byte strides.
9895 * dwarf2read.c (read_array_type): Add support for dynamic
9896 DW_AT_byte_stride attributes.
9897
74a2f8ff
JB
98982018-01-02 Joel Brobecker <brobecker@adacore.com>
9899
9900 * dwarf2read.c (read_unspecified_type): Treat
9901 DW_TAG_enumeration_type DIEs from Ada units as stubs.
9902
e2882c85
JB
99032018-01-01 Joel Brobecker <brobecker@adacore.com>
9904
9905 Update copyright year range in all GDB files.
9906
1690bb24
JB
99072018-01-01 Joel Brobecker <brobecker@adacore.com>
9908
9909 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
9910 and gdb/testsuite/gdb.base/step-line.c.
9911
0f0c98a8
JB
99122018-01-01 Joel Brobecker <brobecker@adacore.com>
9913
9914 * copyright.py (main): Dump the contents of
9915 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
9916 even if BY_HAND is empty.
9917
82e1e79a
JB
99182018-01-01 Joel Brobecker <brobecker@adacore.com>
9919
9920 * top.c (print_gdb_version): Update Copyright year in version
9921 message.
9922
053f54e5 99232018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 9924
053f54e5 9925 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 9926
053f54e5 9927For older changes see ChangeLog-2017.
c906108c
SS
9928\f
9929Local Variables:
9930mode: change-log
9931left-margin: 8
9932fill-column: 74
9933version-control: never
57da7796 9934coding: utf-8
c906108c 9935End:
This page took 2.585063 seconds and 4 git commands to generate.