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