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