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