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