1 2018-12-18 Tom Tromey <tom@tromey.com>
3 * dwarf2read.c (dwarf2_find_containing_comp_unit): Don't take
6 2018-12-23 Joel Brobecker <brobecker@adacore.com>
10 2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com>
12 * riscv-tdep.c (riscv_call_arg_struct): Don't adjust size before
14 (riscv_return_value): Take more care not to read/write outside of
15 argument buffer. Cast return value between the declared type and
18 2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com>
20 * riscv-tdep.c (riscv_register_reggroup_p): Save and restore fcsr,
21 fflags, and frm registers.
23 2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com>
25 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): New function.
26 (riscv_gdbarch_init): Register new function with gdbarch.
27 * riscv-tdep.h: New enum to define RISC-V DWARF register numbers.
29 2018-12-21 Simon Marchi <simon.marchi@ericsson.com>
31 * minsyms.c (mst_str): New.
32 (minimal_symbol_reader::record_full): Add debug output.
34 2018-12-21 John Baldwin <jhb@FreeBSD.org>
36 * fbsd-nat.c (fbsd_handle_debug_trap): Require pl.pl_flags to
38 (fbsd_nat_target::stopped_by_sw_breakpoint): Likewise.
40 2018-12-21 Paul Marechal <paul.marechal@ericsson.com>
43 * target.c (target_read_stralloc): Check for empty vector.
45 2018-12-21 Дилян Палаузов <dilyan.palauzov@aegee.org>
47 * top.c (print_gdb_configuration): Print "--without-python"
48 if GDB was configured without Python.
50 2018-12-21 Andrew Burgess <andrew.burgess@embecosm.com>
52 * riscv-tdep.c (riscv_scan_prologue): Use plongest to format
53 a signed offset as a string.
55 2018-12-21 Dave Murphy <davem@devkitpro.org>
57 * dtrace-probe.c (dtrace_static_probe_ops): Explicit zero
59 * probe.c (any_static_probe_ops): Ditto.
60 * record-btrace.c (record_btrace_thread_observer_token): Ditto.
61 * stap-probe.c (stap_static_probe_ops): Ditto.
62 * tui/tui-hooks.c (tui_observers_token): Ditto.
63 * unittests/observable-selftests.c (token1, token2, token3): Ditto.
65 2018-12-19 Andrew Burgess <andrew.burgess@embecosm.com>
67 * gdb/dummy-frame.c (default_dummy_id): Defined new function.
68 * gdb/dummy-frame.h (default_dummy_id): Declare new function.
69 * gdb/frame-unwind.c (default_unwind_pc): Define new function.
70 (default_unwind_sp): Define new function.
71 * gdb/frame-unwind.h (default_unwind_pc): Declare new function.
72 (default_unwind_sp): Declare new function.
73 * gdb/frame.c (frame_unwind_pc): Assume gdbarch_unwind_pc is
75 (get_frame_sp): Assume that gdbarch_unwind_sp is available.
76 * gdb/gdbarch.c: Regenerate.
77 * gdb/gdbarch.h: Regenerate.
78 * gdb/gdbarch.sh: Update definition of dummy_id, unwind_pc, and
79 unwind_sp. Add additional header files to be included in
82 2018-12-19 Dimitar Dimitrov <dimitar@dinux.eu>
84 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Remove
87 2018-12-17 Andrew Burgess <andrew.burgess@embecosm.com>
89 * dwarf2read.c (struct dwarf2_cu): Convert the fields 'mark',
90 'has_loclist', 'checked_producer', 'producer_is_gxx_lt_4_6',
91 'producer_is_gcc_lt_4_3', 'producer_is_icc_lt_14',
92 'processing_has_namespace_info' from unsigned int to bool. Update
94 (producer_is_icc_lt_14): Update return type.
95 (producer_is_gcc_lt_4_3): Likewise.
96 (producer_is_gxx_lt_4_6): Likewise.
97 (process_die): Write true instead of 1 into predicate fields.
98 (dwarf2_start_symtab): Likewise.
99 (var_decode_location): Likewise.
100 (dwarf2_mark_helper): Likewise.
101 (dwarf2_mark): Likewise.
102 (dwarf2_clear_marks): Write false instead of 0 into predicate
104 (dwarf2_cu::dwarf2_cu): Initialise predicate fields to false, not
107 2018-12-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
109 * nat/aarch64-sve-linux-ptrace.h: Include signal.h instead of
112 2018-12-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
114 * nat/linux-ptrace.c (kill_child): Fix ARI warning by removing
115 warning trailing new line.
117 2018-12-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
119 * nat/linux-ptrace.c (kill_child): New function.
120 (linux_ptrace_test_ret_to_nx): Use kill_child instead of local code.
121 Add a call to kill_child in case of early return after fork.
122 (linux_check_ptrace_features): Use kill_child instead of local code.
123 (linux_test_for_tracefork): Likewise.
125 2018-12-14 Tom Tromey <tom@tromey.com>
127 * Makefile.in: Remove "alloca" comment.
129 (local-maintainer-clean): Don't use INFOFILES.
131 2018-12-13 John Baldwin <jhb@FreeBSD.org>
133 * syscalls/update-freebsd.sh: New file.
134 * syscalls/freebsd.xml: Regenerate.
136 2018-12-13 John Baldwin <jhb@FreeBSD.org>
138 * NEWS: Add entry documenting system call aliases.
139 * break-catch-syscall.c (catch_syscall_split_args): Pass 'result'
140 to get_syscalls_by_name.
141 * gdbarch.sh (UNKNOWN_SYSCALL): Remove.
142 * gdbarch.h: Regenerate.
143 * syscalls/gdb-syscalls.dtd (syscall): Add alias attribute.
144 * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_name): Rename
145 from get_syscall_by_name. Now accepts a pointer to a vector of
146 integers and returns a bool.
147 [HAVE_LIBEXPAT] (struct syscall_desc): Add alias member.
148 (syscall_create_syscall_desc): Add alias parameter and pass it to
149 syscall_desc constructor.
150 (syscall_start_syscall): Handle alias attribute.
151 (syscall_attr): Add alias attribute.
152 (xml_get_syscalls_by_name): Rename from xml_get_syscall_number.
153 Now accepts a pointer to a vector of integers and returns a
154 bool. Add syscalls whose alias or name matches the requested
156 (get_syscalls_by_name): Rename from get_syscall_by_name. Now
157 accepts a pointer to a vector of integers and returns a bool.
158 * xml-syscall.h (get_syscalls_by_name): Likewise.
160 2018-12-13 John Baldwin <jhb@FreeBSD.org>
162 * break-catch-syscall.c (catch_syscall_split_args): Pass 'result'
163 to get_syscalls_by_group.
164 * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_group): Return
166 [HAVE_LIBEXPAT] (xml_list_syscalls_by_group): Append syscall
167 numbers to an existing vector of integers and return a bool.
168 (get_syscalls_by_group): Accept pointer to vector of integers
169 and change return type to bool.
170 * xml-syscall.h (get_syscalls_by_group): Likewise.
172 2018-12-13 Jim Wilson <jimw@sifive.com>
174 * riscv-tdep.c (riscv_print_one_register_info): For MSTATUS, add
175 comment for SD field, and correct xlen calculation. For MISA, add
176 comment for MXL field, add call to register_size, and correct base
179 2018-12-13 Stafford Horne <shorne@gmail.com>
181 * NEWS(New targets): Add or1k*-*-linux*.
183 2018-12-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
185 * nat/linux-osdata.c (linux_xfer_osdata_info_os_types): Forward
186 declare on one line to fix ARI warning.
188 2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
190 * infrun.c (infcall_suspend_state::infcall_suspend_state): New.
191 (infcall_suspend_state::registers): New.
192 (infcall_suspend_state::restore): New.
193 (infcall_suspend_state::thread_suspend): Rename to...
194 (infcall_suspend_state::m_thread_suspend): ...this.
195 (infcall_suspend_state::registers): Rename to...
196 (infcall_suspend_state::m_registers): ...this.
197 (infcall_suspend_state::siginfo_gdbarch): Rename to...
198 (infcall_suspend_state::m_siginfo_gdbarch): ...this.
199 (infcall_suspend_state::siginfo_data): Rename to...
200 (infcall_suspend_state::m_siginfo_data): ...this.
201 (save_infcall_suspend_state): Rewrite to use infcall_suspend_state
203 (restore_infcall_suspend_state): Rewrite to use
204 infcall_suspend_state::restore method.
205 (get_infcall_suspend_state_regcache): Use
206 infcall_suspend_state::registers method.
208 2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com>
210 * riscv-tdep.c (riscv_call_arg_scalar_float): Unnamed (variadic)
211 arguments are passed in integer registers.
212 (riscv_call_arg_complex_float): Likewise.
214 2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
216 * nat/linux-osdata.c (common_getter): New function.
217 (struct osdata_type): Change getter to take_snapshot.
218 Add LONGEST len_avail and struct buffer buffer.
219 Change all elements in the initializer.
220 Add an element for the list of types.
221 (linux_xfer_osdata_info_os_types): New function.
222 (linux_common_xfer_osdata): Use common_getter for the list of types.
223 Replace getter call by common_getter.
224 (linux_xfer_osdata_cpus): Remove args READBUF, OFFSET, LEN.
225 Add arg BUFFER. Only keep the code that adds data in BUFFER.
226 (linux_xfer_osdata_fds): Likewise.
227 (linux_xfer_osdata_modules): Likewise.
228 (linux_xfer_osdata_msg): Likewise.
229 (linux_xfer_osdata_processes): Likewise.
230 (linux_xfer_osdata_processgroups): Likewise.
231 (linux_xfer_osdata_sem): Likewise.
232 (linux_xfer_osdata_shm): Likewise.
233 (linux_xfer_osdata_isockets): Likewise.
234 (linux_xfer_osdata_threads): Likewise.
236 2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
238 * nat/linux-osdata.c: Removed various trailing spaces.
240 2018-12-10 Andrew Burgess <andrew.burgess@embecosm.com>
242 * riscv-tdep.c (riscv_register_name): Fix ARI warning by removing
243 leading whitespace before #include line.
245 2018-12-08 Simon Marchi <simon.marchi@ericsson.com>
246 Дилян Палаузов <dilyan.palauzov@aegee.org>
249 * configure.ac: Search for tgetent in libtinfow.
250 * configure: Re-generate.
252 2018-12-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
254 * linux-thread-db.c (struct thread_db_info): Add td_ta_delete_p.
255 (thread_db_err_str): Forward declare.
256 (delete_thread_db_info): Call td_ta_delete_p if available.
257 (try_thread_db_load_1): Acquire td_ta_delete address.
258 * nat/gdb_thread_db.h (td_ta_delete_ftype): Declare.
260 2018-12-08 Pedro Alves <palves@redhat.com>
262 * source.c (forward_search_command): Rename to ...
263 (search_command_helper): ... this. Add 'forward' parameter.
264 Tweak to use a gdb::def_vector<char> instead of a xrealloc'ed
265 buffer. Handle backward searches too.
266 (forward_search_command, reverse_search_command): Reimplement by
267 calling search_command_helper.
269 2018-12-07 Andrew Burgess <andrew.burgess@embecosm.com>
271 * .dir-locals.el: Copy most of the settings from c-mode over to
274 2018-12-08 Stafford Horne <shorne@gmail.com>
276 * Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o.
277 * configure.tgt: Add or1k*-*-linux*.
278 * or1k-linux-tdep.c: New file.
279 * or1k-tdep.c (or1k_gdbarch_init): Call gdbarch_init_osabi.
281 2018-12-07 Pedro Alves <palves@redhat.com>
283 * dwarf2read.c (get_gdb_index_contents_from_section): Use
284 gdb::make_array_view.
286 2018-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
288 * language.c (_initialize_language): Fix leak by assigning
289 a static string to language. Same for range and case_sensitive,
290 even if no leak is detected for these variables.
292 2018-12-05 John Baldwin <jhb@FreeBSD.org>
294 * configure: Re-generate.
295 * configure.ac: Use separate sed expressions to escape variables
296 in auto-load directories.
298 2018-12-05 Andrew Burgess <andrew.burgess@embecosm.com>
300 * riscv-tdep.c (riscv_features_from_gdbarch_info): New function.
301 (riscv_find_default_target_description): Use new function to
302 extract feature from gdbarch_info.
303 (riscv_gdbarch_init): Add error checks for xlen and flen between
304 target description and bfd headers. Be smarter about when we
305 think the hardware floating point abi should be used.
307 2018-12-05 Alan Hayward <alan.hayward@arm.com>
309 * nat/aarch64-linux-hw-point.c
310 (aarch64_linux_any_set_debug_regs_state): New function.
311 * nat/aarch64-linux-hw-point.h
312 (aarch64_linux_any_set_debug_regs_state): New declaration.
313 * nat/aarch64-linux.c (aarch64_linux_new_thread): Check if any
316 2018-11-30 John Baldwin <jhb@FreeBSD.org>
318 * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers.
319 (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile.
321 2018-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
322 Simon Marchi <simon.marchi@ericsson.com>
324 * linespec.c (symtab_vector_up): Remove.
325 (symtabs_from_filename): Change return type to std::vector.
326 (collect_symtabs_from_filename): Likewise.
327 (create_sals_line_offset): Assign return value of
328 collect_symtabs_from_filename to *ls->file_symtabs.
329 (convert_explicit_location_to_linespec): Remove call to release.
330 (parse_linespec): Likewise.
331 (symtab_collector) <symtab_collector>: Remove initialization of
333 <release_symtabs>: Change return type to std::vector<symtab *>.
334 <operator ()>: Adjust.
336 2018-11-30 John Baldwin <jhb@FreeBSD.org>
338 * fbsd-nat.c [__FreeBSD_version >= 700009] (USE_SIGINFO): Macro
340 (union sigval32, struct siginfo32, fbsd_siginfo_size)
341 (fbsd_convert_siginfo): Make conditional on USE_SIGINFO instead
342 of KERN_PROC_AUXV and PT_LWPINFO.
343 (fbsd_nat_target::xfer_partial): Define method unconditionally.
344 Make TARGET_OBJECT_SIGNAL_INFO conditional on USE_SIGINFO.
345 Make TARGET_OBJECT_AUXV conditional on KERN_PROC_AUXV.
346 Make TARGET_OBJECT_FREEBSD_VMMAP and
347 TARGET_OBJECT_FREEBSD_PS_STRINGS conditional on KERN_PROC_VMMAP
348 and KERN_PROC_PS_STRINGS.
349 * fbsd-nat.h: Include <sys/proc.h>.
350 (fbsd_nat_target::xfer_partial): Declare method unconditionally.
352 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
354 * riscv-linux-nat.c: Add 'inferior.h' and 'target-descriptions.h'
356 (riscv_linux_nat_target::read_description): New method.
358 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
360 * arch/riscv.h (riscv_gdbarch_features::hash): New method.
361 * arch/riscv.c (struct riscv_gdbarch_features_hasher): New.
362 (riscv_tdesc_cache): New global.
363 (riscv_create_target_description): Look in the cache before
364 creating a new target description.
366 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
368 * arch/riscv.h (riscv_gdb_features::operator==): New.
369 (riscv_gdb_features::operator!=): New.
370 * riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality
373 2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com>
375 * arch/riscv.h (riscv_create_target_description): Make return type
377 * arch/riscv.c (riscv_create_target_description): Likewise.
378 * riscv-tdep.c (riscv_find_default_target_description): Likewise.
380 2018-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
381 Keith Seitz <keiths@redhat.com>
382 Tom Tromey <tom@tromey.com>
383 Sergio Durigan Junior <sergiodj@redhat.com>
385 https://bugzilla.redhat.com/show_bug.cgi?id=1613614
386 * dwarf2read.c (dwarf2_find_containing_comp_unit): Add
387 'mid_cu->length' to '*cu_off' when checking if 'sect_off' is
390 2018-11-30 Pedro Alves <palves@redhat.com>
392 * aix-thread.c (aix_thread_target) <aix_thread_target>: Delete.
393 <stratum>: New override.
394 * bfd-target.c (aix_thread_target) <aix_thread_target>: Delete.
395 <stratum>: New override.
396 * bsd-uthread.c (bsd_uthread_target) <bsd_uthread_target>: Delete.
397 <stratum>: New override.
398 * exec.c (exec_target) <exec_target>: Delete.
399 <stratum>: New override.
400 * gdbarch-selftests.c (register_to_value_test): Adjust to use the
401 stratum method instead of the to_stratum field.
402 * linux-thread-db.c (thread_db_target) <thread_db_target>: Delete.
403 <stratum>: New override.
404 (thread_db_target::thread_db_target): Delete.
405 * make-target-delegates (print_class): Don't print a ctor
406 declaration. Print a stratum method override declaration.
407 * process-stratum-target.h (process_stratum_target)
408 <process_stratum_target>: Delete.
409 <stratum>: New override.
410 * ravenscar-thread.c (ravenscar_thread_target)
411 <ravenscar_thread_target>: Delete.
412 <stratum>: New override.
413 * record-btrace.c (record_btrace_target)
414 <record_btrace_target>: Delete.
415 <stratum>: New override.
416 * record-full.c (record_full_base_target)
417 <record_full_base_target>: Delete.
418 <stratum>: New override.
419 * record.c (record_disconnect, record_detach)
420 (record_mourn_inferior, record_kill): Adjust to use the stratum
421 method instead of the to_stratum field.
422 * regcache.c (cooked_read_test, cooked_write_test): Likewise.
423 * sol-thread.c (sol_thread_target)
424 <sol_thread_target>: Delete.
425 <stratum>: New override.
426 * spu-multiarch.c (spu_multiarch_target)
427 <spu_multiarch_target>: Delete.
428 <stratum>: New override.
429 * target-delegates.c: Regenerate.
430 * target.c (target_stack::push, target_stack::unpush)
431 (pop_all_targets_above, pop_all_targets_at_and_above)
432 (info_target_command, target_require_runnable)
433 (target_stack::find_beneath): Adjust to use the stratum method
434 instead of the to_stratum field.
435 (dummy_target::dummy_target): Delete.
436 (dummy_target::stratum): New.
437 (debug_target::debug_target): Delete.
438 (debug_target::stratum): New.
439 (maintenance_print_target_stack): Adjust to use the stratum method
440 instead of the to_stratum field.
441 * target.h (struct target_ops) <stratum>: New method.
442 <to_stratum>: Delete.
443 <is_pushed>: Adjust to use the stratum method
444 instead of the to_stratum field.
446 2018-11-30 Pedro Alves <palves@redhat.com>
448 * corelow.c (core_target) <has_all_memory, has_execution>: New
450 * inf-child.c (inf_child_target::has_all_memory)
451 (inf_child_target::has_memory, inf_child_target::has_stack)
452 (inf_child_target::has_registers)
453 (inf_child_target::has_execution): Delete.
454 * inf-child.h (inf_child_target) <has_all_memory, has_memory,
455 has_stack, has_registers, has_execution>: Delete.
456 * process-stratum-target.c
457 (process_stratum_target::has_all_memory)
458 (process_stratum_target::has_memory)
459 (process_stratum_target::has_stack)
460 (process_stratum_target::has_registers)
461 (process_stratum_target::has_execution): New.
462 * process-stratum-target.h (process_stratum_target)
463 <has_all_memory, has_memory, has_stack, has_registers,
464 has_execution>: New method overrides.
465 * ravenscar-thread.c (ravenscar_thread_target) <has_all_memory,
466 has_memory, has_stack, has_registers, has_execution>: Delete.
467 * remote-sim.c (gdbsim_target) <has_stack, has_registers,
468 has_execution>: Delete.
469 * remote.c (remote_target) <has_all_memory, has_memory, has_stack,
470 has_registers, has_execution>: Delete.
471 * target.c (default_child_has_all_memory)
472 (default_child_has_memory, default_child_has_stack)
473 (default_child_has_registers, default_child_has_execution):
475 * target.h (default_child_has_all_memory)
476 (default_child_has_memory, default_child_has_stack)
477 (default_child_has_registers, default_child_has_execution):
479 * tracefile.h (tracefile_target) <has_execution>: New override.
481 2018-11-30 Pedro Alves <palves@redhat.com>
483 * Makefile.in (COMMON_SFILES): Add process-stratum-target.c.
484 * bsd-kvm.c: Include "process-stratum-target.h".
485 (bsd_kvm_target): Now inherits from process_stratum_target.
486 (bsd_kvm_target::bsd_kvm_target): Default it.
487 * corelow.c: Include "process-stratum-target.h".
488 (core_target): Now inherits from process_stratum_target.
489 (core_target::core_target): Don't set to_stratum here.
490 * inf-child.c (inf_child_target::inf_child_target): Delete.
491 * inf-child.h: Include "process-stratum-target.h".
492 (inf_child_target): Inherit from process_stratum_target.
493 (inf_child_target) <inf_child_target>: Default it.
494 <can_async_p, supports_non_stop, supports_disable_randomization>:
496 * process-stratum-target.c: New file.
497 * process-stratum-target.h: New file.
498 * remote-sim.c: Include "process-stratum-target.h".
499 (gdbsim_target): Inherit from process_stratum_target.
500 <gdbsim_target>: Default it.
501 * remote.c: Include "process-stratum-target.h".
502 (remote_target): Inherit from process_stratum_target.
503 <remote_target>: Default it.
504 * target.c (default_thread_address_space)
505 (default_thread_architecture): Delete.
506 * target.h (target_ops) <thread_architecture>: Now returns NULL by
508 <thread_address_space>: Ditto.
509 * test-target.h: Include "process-stratum-target.h" instead of
511 (test_target_ops): Inherit from process_stratum_target.
512 <test_target_ops>: Default it.
513 * tracefile.c (tracefile_target::tracefile_target): Delete.
514 * tracefile.h: Include "process-stratum-target.h".
515 (tracefile_target): Inherit from process_stratum_target.
516 <tracefile_target>: Default it.
517 * target-delegates.c: Regenerate.
519 2018-11-30 Pedro Alves <palves@redhat.com>
521 * Makefile.in (COMMON_SFILES): Add test-target.c.
522 * gdbarch-selftests.c: Include "test-target.h".
523 * regcache.c: Include "test-target.h".
524 * target.c (test_target_info, test_target_ops::info): Move to ...
525 * test-target.c: ... this new file.
526 * target.h (test_target_ops): Move to ...
527 * test-target.h: ... this new file.
529 2018-11-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
531 * source.c (forward_search_command): Fix leak by using
532 xrealloc even for the first allocation in the loop, as buf
535 2018-11-29 Rajendra SY <rajendra.sy@gmail.com>
538 * gdb/fbsd-tdep.c (fbsd_gdb_signal_from_target)
539 (fbsd_gdb_signal_to_target): New.
540 (fbsd_init_abi): Install gdbarch "signal_from_target" and
541 "signal_to_target" methods.
543 2018-11-29 Tom Tromey <tom@tromey.com>
545 * valarith.c (value_x_unop): Don't set argvec[3].
547 2018-11-26 Simon Marchi <simon.marchi@ericsson.com>
550 * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous
553 2018-11-26 Pedro Alves <palves@redhat.com>
555 * procfs.c (procfs_notice_thread): Replace uses of
556 in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED.
557 * sol-thread.c (sol_thread_target::wait)
558 (sol_update_thread_list_callback): Likewise.
560 2018-11-25 Tom Tromey <tom@tromey.com>
562 * ui-out.c (ui_out::field_fmt): Remove comment.
563 * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment.
564 * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment.
566 2018-11-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
568 * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K
569 leak in open_source_file' has been partially undone by '2179fbc36d23
570 Return scoped_fd from open_source_file'. Re-add the transfer of
571 current s->fullname to the unique_xmalloc_ptr fullname given
572 to find_and_open_source.
574 2018-11-23 Pedro Alves <palves@redhat.com>
576 * gdbthread.h (enum thread_state): Move comments here.
577 (is_running, is_stopped, is_exited): Remove declarations.
579 2018-11-22 Pedro Alves <palves@redhat.com>
581 * Makefile.in (COMMON_SFILES): Add thread-iter.c.
582 * breakpoint.c (breakpoints_should_be_inserted_now): Replace
583 ALL_NON_EXITED_THREADS with all_non_exited_threads.
584 (print_one_breakpoint_location): Replace ALL_INFERIORS with
586 * bsd-kvm.c: Include inferior.h.
587 * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS
588 with all_non_exited_threads.
589 * common/filtered-iterator.h: New.
590 * common/safe-iterator.h: New.
591 * corelow.c (core_target_open): Don't call init_thread_list here.
592 * darwin-nat.c (thread_info_from_private_thread_info): Replace
593 ALL_THREADS with all_threads.
594 * fbsd-nat.c (fbsd_nat_target::resume): Replace
595 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
596 * fbsd-tdep.c (fbsd_make_corefile_notes): Replace
597 ALL_NON_EXITED_THREADS with inf->non_exited_threads.
598 * fork-child.c (postfork_hook): Don't call init_thread_list here.
599 * gdbarch-selftests.c (register_to_value_test): Adjust.
600 * gdbthread.h: Don't include "inferior.h" here.
601 (struct inferior): Forward declare.
602 (enum step_over_calls_kind): Moved here from inferior.h.
603 (thread_info::deletable): Definition moved to thread.c.
604 (find_thread_ptid (inferior *, ptid_t)): Declare.
605 (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete.
606 Include "thread-iter.h".
607 (all_threads, all_non_exited_threads, all_threads_safe): New.
608 (any_thread_p): Declare.
609 (thread_list): Delete.
610 * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with
611 all_non_exited_threads.
612 (proceed_after_attach_callback): Delete.
613 (proceed_after_attach): Take an inferior pointer instead of an
614 integer PID. Adjust to use range-for.
615 (attach_post_wait): Pass down inferior pointer instead of pid.
616 Use range-for instead of ALL_NON_EXITED_THREADS.
617 (detach_command): Remove init_thread_list call.
618 * inferior-iter.h: New.
619 * inferior.c (struct delete_thread_of_inferior_arg): Delete.
620 (delete_thread_of_inferior): Delete.
621 (delete_inferior, exit_inferior_1): Use range-for with
622 inf->threads_safe() instead of iterate_over_threads.
623 (inferior_appeared): Call init_thread_list here.
624 (discard_all_inferiors): Use all_non_exited_inferiors.
625 (find_inferior_id, find_inferior_pid): Use all_inferiors.
626 (iterate_over_inferiors): Use all_inferiors_safe.
627 (have_inferiors, number_of_live_inferiors): Use
628 all_non_exited_inferiors.
629 (number_of_inferiors): Use all_inferiors and std::distance.
630 (print_inferior): Use all_inferiors.
631 * inferior.h: Include gdbthread.h.
632 (enum step_over_calls_kind): Moved to gdbthread.h.
633 (struct inferior) <thread_list>: New field.
634 <threads, non_exited_threads, threads_safe>: New methods.
635 (ALL_INFERIORS): Delete.
636 Include "inferior-iter.h".
637 (ALL_NON_EXITED_INFERIORS): Delete.
638 (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New
640 * inflow.c (child_interrupt, child_pass_ctrlc): Replace
641 ALL_NON_EXITED_THREADS with all_non_exited_threads.
642 * infrun.c (follow_exec): Use all_threads_safe.
643 (clear_proceed_status, proceed): Use all_non_exited_threads.
644 (init_wait_for_inferior): Don't clear inline frame state here.
645 (infrun_thread_stop_requested, for_each_just_stopped_thread): Use
646 all_threads instead of ALL_NON_EXITED_THREADS.
647 (random_pending_event_thread): Use all_non_exited_threads instead
648 of ALL_NON_EXITED_THREADS. Use a lambda for repeated code.
649 (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads
650 instead of ALL_NON_EXITED_THREADS.
651 (handle_no_resumed): Use all_non_exited_threads instead of
652 ALL_NON_EXITED_THREADS. Use all_inferiors instead of
654 (restart_threads, switch_back_to_stepped_thread): Use
655 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
656 * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with
658 (kill_unfollowed_fork_children): Use inf->non_exited_threads
659 instead of ALL_NON_EXITED_THREADS.
660 * linux-tdep.c (linux_make_corefile_notes): Use
661 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
662 * linux-thread-db.c (thread_db_target::update_thread_list):
663 Replace ALL_INFERIORS with all_inferiors.
664 (thread_db_target::thread_handle_to_thread_info): Use
665 inf->non_exited_threads instead of ALL_NON_EXITED_THREADS.
666 * mi/mi-interp.c (multiple_inferiors_p): New.
667 (mi_on_resume_1): Simplify using all_non_exited_threads and
668 multiple_inferiors_p.
669 * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads
670 instead of ALL_NON_EXITED_THREADS.
671 * nto-procfs.c (nto_procfs_target::open): Don't call
672 init_thread_list here.
673 * record-btrace.c (record_btrace_target_open)
674 (record_btrace_target::stop_recording)
675 (record_btrace_target::close)
676 (record_btrace_target::record_is_replaying)
677 (record_btrace_target::resume, record_btrace_target::wait)
678 (record_btrace_target::record_stop_replaying): Use
679 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
680 * record-full.c (record_full_wait_1): Use all_non_exited_threads
681 instead of ALL_NON_EXITED_THREADS.
682 * regcache.c (cooked_read_test): Remove reference to global
684 * remote-sim.c (gdbsim_target::create_inferior): Don't call
685 init_thread_list here.
686 * remote.c (remote_target::update_thread_list): Use
687 all_threads_safe instead of ALL_NON_EXITED_THREADS.
688 (remote_target::process_initial_stop_replies): Replace
689 ALL_INFERIORS with all_non_exited_inferiors and use
690 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
691 (remote_target::open_1): Don't call init_thread_list here.
692 (remote_target::append_pending_thread_resumptions)
693 (remote_target::remote_resume_with_hc): Use all_non_exited_threads
694 instead of ALL_NON_EXITED_THREADS.
695 (remote_target::commit_resume)
696 (remote_target::remove_new_fork_children): Replace ALL_INFERIORS
697 with all_non_exited_inferiors and use all_non_exited_threads
698 instead of ALL_NON_EXITED_THREADS.
699 (remote_target::kill_new_fork_children): Use
700 all_non_exited_threads instead of ALL_NON_EXITED_THREADS. Remove
701 init_thread_list and init_wait_for_inferior calls.
702 (remote_target::remote_btrace_maybe_reopen)
703 (remote_target::thread_handle_to_thread_info): Use
704 all_non_exited_threads instead of ALL_NON_EXITED_THREADS.
705 * target.c (target_terminal::restore_inferior)
706 (target_terminal_is_ours_kind): Replace ALL_INFERIORS with
707 all_non_exited_inferiors.
708 * thread-iter.c: New file.
709 * thread-iter.h: New file.
710 * thread.c: Include "inline-frame.h".
711 (thread_list): Delete.
712 (clear_thread_inferior_resources): Call clear_inline_frame_state.
713 (init_thread_list): Use all_threads_safe instead of
714 ALL_THREADS_SAFE. Adjust to per-inferior thread lists.
715 (new_thread): Adjust to per-inferior thread lists.
716 (add_thread_silent): Pass inferior to find_thread_ptid.
717 (thread_info::deletable): New, moved from the header.
718 (delete_thread_1): Adjust to per-inferior thread lists.
719 (find_thread_global_id): Use inf->threads().
720 (find_thread_ptid): Use find_inferior_ptid and pass inferior to
722 (find_thread_ptid(inferior*, ptid_t)): New overload.
723 (iterate_over_threads): Use all_threads_safe.
725 (thread_count): Use all_threads and std::distance.
726 (live_threads_count): Use all_non_exited_threads and
728 (valid_global_thread_id): Use all_threads.
729 (in_thread_list): Use find_thread_ptid.
730 (first_thread_of_inferior): Adjust to per-inferior thread lists.
731 (any_thread_of_inferior, any_live_thread_of_inferior): Use
732 inf->non_exited_threads().
733 (prune_threads, delete_exited_threads): Use all_threads_safe.
734 (thread_change_ptid): Pass inferior pointer to find_thread_ptid.
735 (set_resumed, set_running): Use all_non_exited_threads.
736 (is_thread_state, is_stopped, is_exited, is_running)
737 (is_executing): Delete.
738 (set_executing, set_stop_requested, finish_thread_state): Use
739 all_non_exited_threads.
740 (print_thread_info_1): Use all_inferiors and all_threads.
741 (thread_apply_all_command): Use all_non_exited_threads.
742 (thread_find_command): Use all_threads.
743 (update_threads_executing): Use all_non_exited_threads.
744 * tid-parse.c (parse_thread_id): Use inf->threads.
745 * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads ().
747 2018-11-22 Pedro Alves <palves@redhat.com>
749 * infrun.c (follow_exec) <set follow-exec new>: Add thread and
750 switch to it before calling into try_open_exec_file.
752 2018-11-22 Pedro Alves <palves@redhat.com>
754 * cli/cli-interp.c (cli_on_user_selected_context_changed): Use
755 inferior_thread instead of find_thread_ptid, and only when
756 inferior_ptid is not null_ptid.
757 * inferior.c (add_inferior): Don't include target_pid_to_str
758 output when the inferior is not started.
759 * python/py-inferior.c (python_on_normal_stop): Don't use
761 (tui_on_user_selected_context_changed): Use inferior_thread
762 instead of find_thread_ptid, and only when inferior_ptid is not
765 2018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com>
768 * gdb/python/python.c (execute_gdb_command): Call
769 prevent_dont_repeat earlier to avoid affecting dont_repeat.
771 2018-11-21 Andrew Burgess <andrew.burgess@embecosm.com>
773 * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
774 (HFILES_NO_SRCDIR): Add arch/riscv.h.
775 * arch/riscv.c: New file.
776 * arch/riscv.h: New file.
777 * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
778 this list, and add arch/riscv.o.
779 * features/Makefile: Add riscv features.
780 * features/riscv/32bit-cpu.c: New file.
781 * features/riscv/32bit-cpu.xml: New file.
782 * features/riscv/32bit-csr.c: New file.
783 * features/riscv/32bit-csr.xml: New file.
784 * features/riscv/32bit-fpu.c: New file.
785 * features/riscv/32bit-fpu.xml: New file.
786 * features/riscv/64bit-cpu.c: New file.
787 * features/riscv/64bit-cpu.xml: New file.
788 * features/riscv/64bit-csr.c: New file.
789 * features/riscv/64bit-csr.xml: New file.
790 * features/riscv/64bit-fpu.c: New file.
791 * features/riscv/64bit-fpu.xml: New file.
792 * features/riscv/rebuild-csr-xml.sh: New file.
793 * riscv-tdep.c: Add 'arch/riscv.h' include.
794 (riscv_gdb_reg_names): Delete.
795 (csr_reggroup): New global.
796 (struct riscv_register_alias): Delete.
797 (struct riscv_register_feature): New structure.
798 (riscv_register_aliases): Delete.
799 (riscv_xreg_feature): New global.
800 (riscv_freg_feature): New global.
801 (riscv_virtual_feature): New global.
802 (riscv_csr_feature): New global.
803 (riscv_create_csr_aliases): New function.
804 (riscv_read_misa_reg): Delete.
805 (riscv_has_feature): Delete.
806 (riscv_isa_xlen): Simplify, just return cached xlen.
807 (riscv_isa_flen): Simplify, just return cached flen.
808 (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
809 (riscv_register_name): Update to make use of tdesc_register_name.
810 Look up xreg and freg names in the new globals riscv_xreg_feature
811 and riscv_freg_feature. Don't supply csr aliases here.
812 (riscv_fpreg_q_type): Delete.
813 (riscv_register_type): Use tdesc_register_type in almost all
814 cases, override the returned type in a few specific cases only.
815 (riscv_print_one_register_info): Handle errors reading registers.
816 (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
817 registers that are otherwise unknown to GDB. Also check the
819 (riscv_print_registers_info): Remove assert about upper register
820 number, and use gdbarch_register_reggroup_p instead of
822 (riscv_find_default_target_description): New function.
823 (riscv_check_tdesc_feature): New function.
824 (riscv_add_reggroups): New function.
825 (riscv_setup_register_aliases): New function.
826 (riscv_init_reggroups): New function.
827 (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
828 setup register groups. Register new riscv debug variable.
829 * riscv-tdep.h: Add 'arch/riscv.h' include.
830 (struct gdbarch_tdep): Remove abi union, and add
831 riscv_gdbarch_features field. Remove cached quad floating point
832 type, and provide initialisation for double type field.
833 * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
834 the list of targets using the feature based target descriptions.
835 * NEWS: Mention target description support.
837 2018-11-21 Pedro Alves <palves@redhat.com>
839 * valops.c (find_method_list, value_find_oload_method_list)
840 (find_overload_match, find_oload_champ): Rename parameters and
843 2018-11-21 Pedro Alves <palves@redhat.com>
845 * valops.c (find_method_list): Replace pointer and length
846 parameters with an gdb::array_view. Adjust.
847 (value_find_oload_method_list): Likewise.
848 (find_overload_match): Use gdb::array_view for methods list.
849 Adjust to find_oload_champ interface change.
850 (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
851 'num_fns' parameter now a size_t. Eliminate 'fn_count' local.
853 2018-11-21 Pedro Alves <palves@redhat.com>
855 * gdbtypes.c (compare_badness): Change type of parameters to const
856 reference. Adjust to badness_vector being a std::vector now.
857 (rank_function): Adjust to badness_vector being a std::vector now.
858 * gdbtypes.h (badness_vector): Now a typedef to std::vector.
859 (LENGTH_MATCH): Delete.
860 (compare_badness): Change type of parameters to const reference.
861 (rank_function): Return a badness_vector by value now.
862 (find_overload_match): Adjust to badness_vector being a
863 std::vector now. Remove cleanups.
864 (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
865 badness_vector pointer.
866 (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
867 a badness_vector pointer. Adjust to badness_vector being a
868 std::vector now. Remove cleanups.
869 (find_oload_champ): 'oload_champ_bv' parameter now
870 a badness_vector pointer. Adjust to badness_vector being a
871 std::vector now. Remove cleanups.
873 2018-11-21 Pedro Alves <palves@redhat.com>
875 * cp-support.c (sym_return_val_size, sym_return_val_index)
876 (sym_return_val): Delete.
877 (overload_list_add_symbol): Add std::vector parameter. Adjust to
879 (make_symbol_overload_list): Adjust to return a std::vector
880 instead of maintaining a global open coded vector.
881 (make_symbol_overload_list_block): Add std::vector parameter.
882 (make_symbol_overload_list_block): Rename to ...
883 (add_symbol_overload_list_block): ... this and add std::vector
885 (make_symbol_overload_list_namespace): Rename to ...
886 (add_symbol_overload_list_namespace): ... this and add std::vector
888 (make_symbol_overload_list_adl_namespace): Rename to ...
889 (add_symbol_overload_list_adl_namespace): ... this and add
890 std::vector parameter.
891 (make_symbol_overload_list_adl): Delete.
892 (add_symbol_overload_list_adl): New.
893 (make_symbol_overload_list_using): Rename to ...
894 (add_symbol_overload_list_using): ... this and add std::vector
896 (make_symbol_overload_list_qualified): Rename to ...
897 (add_symbol_overload_list_qualified): ... this and add std::vector
899 * cp-support.h: Include "common/array-view.h" and <vector>.
900 (make_symbol_overload_list): Change return type to std::vector.
901 (make_symbol_overload_list_adl): Delete declaration.
902 (add_symbol_overload_list_adl): New declaration.
903 * valops.c (find_overload_match): Local 'oload_syms' now a
905 (find_oload_champ_namespace): 'oload_syms' parameter now a
907 (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
908 std::vector pointer. Adjust to new make_symbol_overload_list
911 2018-11-21 Pedro Alves <palves@redhat.com>
913 * common/array-view.h (array_view::splice(size_type, size_t)): New.
914 (array_view::splice(size_type)): New.
915 * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
916 * extension.c (xmethod_worker::get_arg_types): Adjust to return an
918 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
919 * extension.h: Include "common/array-view.h".
920 (xmethod_worker::invoke): Adjust to use gdb::array_view.
921 (xmethod_worker::get_arg_types): Adjust to return an std::vector.
922 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
923 (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
924 (xmethod_worker::do_get_result_type): Adjust to use
926 * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
927 * gdbtypes.h: Include "common/array-view.h".
928 (rank_function): Adjust to use gdb::array_view.
929 * python/py-xmethods.c (python_xmethod_worker::invoke)
930 (python_xmethod_worker::do_get_arg_types)
931 (python_xmethod_worker::do_get_result_type)
932 (python_xmethod_worker::invoke): Adjust to new interfaces.
933 * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
934 (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
935 * valops.c (find_overload_match, find_oload_champ_namespace)
936 (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
937 gdb:array_view and the new xmethod_worker interfaces.
938 * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
940 * value.h (find_overload_match, result_type_of_xmethod)
941 (call_xmethod): Adjust to use gdb::array_view.
942 * unittests/array-view-selftests.c: Add slicing tests.
944 2018-11-21 Pedro Alves <palves@redhat.com>
946 * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
947 * common/array-view.h (make_array_view): New.
948 * compile/compile-object-run.c (compile_object_run): Adjust to
950 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
951 * eval.c (eval_call): Adjust to pass an array_view.
952 (evaluate_subexp_standard): Adjust to pass an array_view.
953 * gcore.c (call_target_sbrk): Adjust to pass an array_view.
954 * guile/scm-value.c (gdbscm_value_call): Likewise.
955 * infcall.c (push_dummy_code): Replace pointer + size parameters
956 with an array_view parameter.
957 (call_function_by_hand, call_function_by_hand_dummy): Likewise and
959 * infcall.h: Include "common/array-view.h".
960 (call_function_by_hand, call_function_by_hand_dummy): Replace
961 pointer + size parameters with an array_view parameter.
962 * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
963 * linux-tdep.c (linux_infcall_mmap): Likewise.
964 * objc-lang.c (lookup_objc_class, lookup_child_selector)
965 (value_nsstring, print_object_command): Likewise.
966 * python/py-value.c (valpy_call): Likewise.
967 * rust-lang.c (rust_evaluate_funcall): Likewise.
968 * spu-tdep.c (flush_ea_cache): Likewise.
969 * valarith.c (value_x_binop, value_x_unop): Likewise.
970 * valops.c (value_allocate_space_in_inferior): Likewise.
971 * unittests/array-view-selftests.c (run_tests): Add
972 gdb::make_array_view test.
974 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
976 * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
977 than a fixed size buffer.
979 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
981 * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
982 and remove insertion of extra spaces in GDB's output.
983 * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
984 Layout field into a temporary buffer, and then output it as a
987 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
989 * NEWS: Document the language choice done by
990 'info [types|functions|variables]|rbreak'.
992 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
994 * symtab.c (treg_matches_sym_type_name): Use
995 scoped_switch_to_sym_language_if_auto instead of local logic.
996 (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
997 to switch to SYM language when language mode is auto.
999 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1001 * language.h (scoped_switch_to_sym_language_if_auto): New class.
1003 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1005 * symtab.c (search_symbols): Properly check absence of type regexp
1006 before entering the loop scanning the minimal symbols.
1008 2018-11-20 John Darrington <john@darrington.wattle.id.au>
1010 * s12z-tdep.c (s12z_extract_return_value): New function.
1011 (inv_reg_perm) New array.
1012 (s12z_return_value): Populate readbuf if non-null.
1014 2018-11-20 Eli Zaretskii <eliz@gnu.org>
1016 * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
1017 with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
1018 to MinGW fixed by Gnulib.
1019 (O_NOINHERIT): Define if not defined.
1021 2018-11-19 John Darrington <john@darrington.wattle.id.au>
1023 * s12z-tdep.c (s12z_frame_cache): Add an assertion.
1025 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1027 * infrun.c (displaced_step_inferior_state) <next>: Remove.
1029 2018-11-19 Tom Tromey <tom@tromey.com>
1031 * source.c (get_filename_and_charpos): Return void.
1033 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1035 * skip.c (_initialize_step_skip): Fix "info skip" help.
1037 2018-11-16 Tom Tromey <tom@tromey.com>
1040 * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
1042 2018-11-19 Simon Marchi <simon.marchi@ericsson.com>
1044 * infrun.c (displaced_step_inferior_states): Change type to
1046 (get_displaced_stepping_state): Adjust.
1047 (displaced_step_in_progress_any_inferior): Adjust.
1048 (add_displaced_stepping_state): Adjust.
1049 (remove_displaced_stepping_state): Adjust.
1051 2018-11-18 Tom Tromey <tom@tromey.com>
1054 * target-delegates.c: Rebuild.
1055 * ia64-linux-nat.c (class ia64_linux_nat_target)
1056 <have_steppable_watchpoint>: Use override. Return true, not 1.
1057 (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
1059 (ia64_linux_nat_target::low_new_thread): Rename.
1060 (class ia64_linux_nat_target) <read_description>: Don't declare.
1061 * target.h (struct target_ops) <have_steppable_watchpoint>: Return
1064 2018-11-16 Alan Hayward <alan.hayward@arm.com>
1067 * aarch64-tdep.c (aarch64_push_dummy_call): Remove
1068 lang_struct_return code.
1070 2018-11-16 Alan Hayward <alan.hayward@arm.com>
1072 * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
1074 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
1075 * amd64-tdep.c (amd64_push_arguments): Likewise.
1076 (amd64_push_dummy_call): Likewise.
1077 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
1078 * arc-tdep.c (arc_push_dummy_call): Likewise.
1079 * arm-tdep.c (arm_push_dummy_call): Likewise.
1080 * avr-tdep.c (avr_push_dummy_call): Likewise.
1081 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1082 * cris-tdep.c (cris_push_dummy_call): Likewise.
1083 * csky-tdep.c (csky_push_dummy_call): Likewise.
1084 * frv-tdep.c (frv_push_dummy_call): Likewise.
1085 * gdbarch.c: Regenerate.
1086 * gdbarch.h: Regenerate.
1087 * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
1089 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1090 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
1091 (hppa64_push_dummy_call): Likewise.
1092 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1093 * i386-tdep.c (i386_push_dummy_call): Likewise.
1094 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
1095 * infcall.c (call_function_by_hand_dummy): Likewise.
1096 * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
1097 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1098 * m32c-tdep.c (m32c_push_dummy_call): Likewise.
1099 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
1100 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1101 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
1102 * mep-tdep.c (mep_push_dummy_call): Likewise.
1103 * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
1104 (mips_n32n64_push_dummy_call): Likewise.
1105 (mips_o32_push_dummy_call): Likewise.
1106 (mips_o64_push_dummy_call): Likewise.
1107 * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
1108 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
1109 * nds32-tdep.c (nds32_push_dummy_call): Likewise.
1110 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
1111 * or1k-tdep.c (or1k_push_dummy_call): Likewise.
1112 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
1113 (ppc64_sysv_abi_push_dummy_call): Likewise.
1114 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
1115 (ppc64_sysv_abi_push_dummy_call): Likewise.
1116 * riscv-tdep.c (riscv_push_dummy_call): Likewise.
1117 * rl78-tdep.c (rl78_push_dummy_call): Likewise.
1118 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
1119 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
1120 * rx-tdep.c (rx_push_dummy_call): Likewise.
1121 * s390-tdep.c (s390_push_dummy_call): Likewise.
1122 * score-tdep.c (score_push_dummy_call): Likewise.
1123 * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
1124 (sh_push_dummy_call_nofpu): Likewise.
1125 * sparc-tdep.c (sparc32_store_arguments): Likewise.
1126 (sparc32_push_dummy_call): Likewise.
1127 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
1128 (sparc64_push_dummy_call): Likewise.
1129 * spu-tdep.c (spu_push_dummy_call): Likewise.
1130 * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
1131 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1132 * v850-tdep.c (v850_push_dummy_call): Likewise.
1133 * vax-tdep.c (vax_push_dummy_call): Likewise.
1134 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1135 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1137 2018-11-16 Alan Hayward <alan.hayward@arm.com>
1139 * gdbarch.sh (enum function_call_return_method): Add enum.
1140 * gdbarch.h: Regenerate.
1141 * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
1143 2018-11-15 Joel Brobecker <brobecker@adacore.com>
1145 * unittests/copy_bitwise-selftests.c: New file.
1146 * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
1147 (selftests::copy_bitwise_tests): Delete, moving this code to
1148 unittests/copy_bitwise-selftests.c instead.
1149 (_initialize_utils): Do not register copy_bitwise tests.
1150 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1151 unittests/copy_bitwise-selftests.c.
1153 2018-11-14 Joel Brobecker <brobecker@adacore.com>
1155 * ada-lang.c (move_bits): Delete. Update all callers to use
1156 copy_bitwise instead.
1157 * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
1158 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
1159 Move from here to utils.c.
1160 (_initialize_dwarf2loc): Remove call to register copy_bitwise
1162 * utils.h (copy_bitwise): Add declaration.
1163 * utils.c (copy_bitwise, bits_to_str::bits_to_str)
1164 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
1165 Moved here from dwarf2loc.c.
1166 (_initialize_utils): Register copy_bitwise selftests.
1168 2018-11-14 Jim Wilson <jimw@sifive.com>
1170 * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
1171 (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
1172 then increment next_regnum if odd.
1173 (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
1174 (riscv_push_dummy_call): New local ftype. Call check_typedef to set
1175 function type. Pass new arg to riscv_arg_location based on function
1177 (riscv_return_value): Pass new arg to riscv_arg_location.
1179 * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
1180 (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
1181 of TYPE_LENGTH and BIGGEST_ALIGNMENT.
1183 * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
1184 setting len. New local align, set to max of arg align and xlen,
1185 and pass to first riscv_assign_stack_location call.
1187 2018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1189 * skip.c (complete_skip_number): New function.
1190 (_initialize_step_skip): Add completers to some skip commands.
1192 2018-11-09 Tom Tromey <tom@tromey.com>
1194 * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
1195 (struct remote_g_packet_data): Derive from allocate_on_obstack.
1196 <guesses>: Now a std::vector.
1197 (remote_g_packet_data_init, register_remote_g_packet_guess):
1199 (remote_read_description_p): Update. Return bool.
1200 (remote_target::read_description): Update.
1201 (struct remote_g_packet_guess): Add constructor.
1203 2018-11-09 Tom Tromey <tom@tromey.com>
1205 * common/scoped_fd.h (class scoped_fd): Add move constructor and
1206 move assignment operator.
1207 * psymtab.c (psymtab_to_fullname): Update.
1208 * source.h (open_source_file): Return scoped_fd.
1209 (find_and_open_source): Likewise.
1210 * source.c (open_source_file): Return scoped_fd.
1211 (get_filename_and_charpos): Update.
1212 (print_source_lines_base): Update. Use scoped_fd::to_file.
1213 (forward_search_command): Likewise.
1214 (reverse_search_command): Likewise.
1215 (find_and_open_source): Return scoped_fd.
1216 * tui/tui-source.c (tui_set_source_content): Update. Use
1219 2018-11-09 John Baldwin <jhb@FreeBSD.org>
1221 * minsyms.c (minimal_symbol_reader::install): Fix unsigned
1224 2018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
1226 * configure: Regenerate.
1228 2018-11-09 Tom de Vries <tdevries@suse.de>
1230 * symtab.c (symbol_set_names): Call symbol_find_demangled_name
1231 unconditionally, to set the language of the symbol. Manage freeing
1232 returned pointer using gdb::unique_xmalloc_ptr.
1234 2018-11-08 Tom Tromey <tom@tromey.com>
1236 * record.c (require_record_target): Upper-case "<TAB>".
1238 2018-11-08 Tom Tromey <tom@tromey.com>
1240 * python/lib/gdb/command/pretty_printers.py
1241 (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
1243 2018-11-08 Tom Tromey <tom@tromey.com>
1247 * target.h (target_supports_terminal_ours): Return bool.
1248 * target.c (target_supports_terminal_ours): Handle case where
1249 current_top_target returns nullptr. Return bool.
1251 2018-11-08 Joel Brobecker <brobecker@adacore.com>
1253 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
1254 return the correct count for potential HFAs.
1256 2018-11-08 Jan Beulich <jbeulich@suse.com>
1258 * i387-tdep.c (i387_supply_xsave): Split handling of
1259 X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
1260 (i387_collect_xsave): Likewise.
1262 2018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
1264 * riscv-tdep.c (riscv_insn::decode): Update header comment.
1265 (riscv_frame_this_id): Catch errors thrown while building the
1266 frame cache, leave the frame id as the default, which is the outer
1269 2018-11-07 Joel Brobecker <brobecker@adacore.com>
1271 * ada-lang.c (read_atcb): Only set task_info->called_task if
1272 task_info->state == Entry_Caller_Sleep.
1273 (print_ada_task_info): Do not check task_info->state before
1274 checking task_info->called_task.
1275 (info_task): Likewise.
1277 2018-11-07 Joel Brobecker <brobecker@adacore.com>
1279 * ada-tasks.c (read_atcb): Clear task_info before computing
1280 the value of each of its fields.
1282 2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
1284 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
1285 NULL before dereferencing it.
1287 2018-11-06 Tom de Vries <tdevries@suse.de>
1289 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
1292 2018-11-06 Max Filippov <jcmvbkbc@gmail.com>
1294 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
1295 so that it applies to uclinux as well.
1297 2018-11-06 Marius Muench <marius.muench@eurecom.fr>
1299 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
1302 2018-11-06 John Baldwin <jhb@FreeBSD.org>
1304 * riscv-fbsd-nat.c (getregs_supplies): Return true for
1305 RISCV_CSR_SSTATUS_REGNUM.
1307 2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1309 * source.c (open_source_file): Fix leak by transferring the
1310 current s->fullname to the unique_xmalloc_ptr fullname given
1311 to find_and_open_source.
1313 2018-11-04 Tom Tromey <tom@tromey.com>
1315 * varobj.c (install_default_visualizer): Update.
1316 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
1318 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
1319 (find_pretty_printer_from_progspace)
1320 (find_pretty_printer_from_gdb, find_pretty_printer)
1321 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
1322 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
1325 2018-11-04 Tom Tromey <tom@tromey.com>
1327 * python/python.c (gdbpy_parameter_value): Update.
1328 * python/python-internal.h (python_string_to_unicode)
1329 (python_string_to_target_python_string)
1330 (host_string_to_python_string): Return gdbpy_ref.
1331 * python/py-utils.c (python_string_to_unicode)
1332 (unicode_to_encoded_python_string)
1333 (unicode_to_target_python_string)
1334 (python_string_to_target_string)
1335 (python_string_to_target_python_string): Return gdbpy_ref.
1336 (python_string_to_host_string): Update.
1337 (host_string_to_python_string): Return gdbpy_ref.
1338 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
1339 (stpy_fullname): Update.
1340 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
1342 * python/py-prettyprint.c (print_string_repr): Update.
1343 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
1344 (objfpy_get_build_id): Update.
1345 * python/py-breakpoint.c (bppy_get_location)
1346 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
1349 2018-11-04 Tom Tromey <tom@tromey.com>
1351 * python/python-internal.h (gdb_py_object_from_longest)
1352 (gdb_py_object_from_ulongest): Return gdbpy_ref.
1353 * python/py-value.c (valpy_int): Update.
1354 * python/py-utils.c (gdb_py_object_from_longest): Return
1356 (gdb_py_object_from_ulongest): Likewise.
1357 * python/py-type.c (typy_get_alignof): Update.
1358 * python/py-linetable.c (ltpy_get_all_source_lines)
1359 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
1360 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
1362 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1364 * ada-lang.c (_initialize_ada_language): Fix typo.
1366 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1368 * language.c (type): Remove.
1369 (_initialize_language): Remove assignment to type.
1371 2018-11-02 Joel Brobecker <brobecker@adacore.com>
1373 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
1374 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
1375 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
1376 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
1377 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
1378 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
1379 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
1380 and aarch64-ravenscar-thread.o.
1381 * NEWS: Add entry documenting Ravenscar tasking support
1384 2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
1386 * symtab.c (info_functions_command): Initialize quiet flag.
1387 * stack.c (info_args_command): Likewise.
1389 2018-11-01 Jim Wilson <jimw@sifive.com>
1391 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
1392 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
1395 2018-11-01 Joel Brobecker <brobecker@adacore.com>
1397 * ada-lang.c (ada_watch_location_expression): New function.
1398 (ada_language_defn): Set la_watch_location_expression to
1399 ada_watch_location_expression.
1401 2018-11-01 Joel Brobecker <brobecker@adacore.com>
1403 * print-utils.c (int_string): Remove unnecessary trailing spaces.
1405 2018-11-01 Joel Brobecker <brobecker@adacore.com>
1407 * rs6000-tdep.c (skip_prologue): Fix potential negative left
1410 2018-11-01 Jerome Guitton <guitton@adacore.com>
1411 Joel Brobecker <brobecker@adacore.com>
1413 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
1414 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
1415 * arm-pikeos-tdep.c: New file.
1416 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
1418 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
1420 2018-11-01 Simon Marchi <simon.marchi@ericsson.com>
1422 * common/pathstuff.c (get_standard_temp_dir): New.
1423 * common/pathstuff.h (get_standard_temp_dir): New.
1424 * config.in: Re-generate.
1425 * configure: Re-generate.
1426 * configure.ac: Don't check for mkdtemp.
1427 * gnulib/aclocal-m4-deps.mk: Re-generate.
1428 * gnulib/aclocal.m4: Re-generate.
1429 * gnulib/config.in: Re-generate.
1430 * gnulib/configure: Re-generate.
1431 * gnulib/import/Makefile.am: Re-generate.
1432 * gnulib/import/Makefile.in: Re-generate.
1433 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1434 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1435 * gnulib/import/m4/mkdtemp.m4: New file.
1436 * gnulib/import/mkdtemp.c: New file.
1437 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
1439 * unittests/mkdir-recursive-selftests.c (test): Use
1440 get_standard_temp_dir.
1441 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
1443 * compile/compile.c (get_compile_file_tempdir): Likewise.
1445 2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1447 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1448 (SIG_FRAME_LR_OFFSET64): New define.
1449 (SIG_FRAME_FP_OFFSET64): New define.
1450 (aix_sighandle_frame_cache): New Function.
1451 (aix_sighandle_frame_this_id): New Function.
1452 (aix_sighandle_frame_prev_register): New Function.
1453 (aix_sighandle_frame_sniffer): New Function.
1454 (aix_sighandle_frame_unwind): New global variable.
1455 (rs6000_aix_init_osabi): Install new frame unwinder.
1457 2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
1460 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
1463 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1465 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
1467 2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1469 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
1470 (producer_is_icc): New function.
1471 (check_producer): Set producer_is_icc field on dwarf2_cu.
1472 (dwarf2_init_integer_type): New function.
1473 (read_base_type): Call dwarf2_init_integer_type instead of
1474 init_integer_type in all cases.
1475 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
1476 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
1477 LEN is greater than 0.
1479 2018-10-30 Tom Tromey <tom@tromey.com>
1481 * main.c (captured_main_1): Check return value of bfd_init.
1483 2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
1485 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
1488 2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1490 * procfs.c: Include common/pathstuff.h.
1492 2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
1494 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1495 Add missing braces. No functional change.
1497 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1499 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
1500 to report a bad option and fix indentation.
1501 * demangle.c (demangle_command): Use report_unrecognized_option_error
1502 to report a bad option and correctly report the bad option.
1504 2018-10-27 Tom Tromey <tom@tromey.com>
1507 * darwin-nat.c (copied_shell): New global.
1508 (may_have_sip): Rename from should_disable_startup_with_shell.
1509 (copy_shell_to_cache, maybe_cache_shell): New functions.
1510 (darwin_nat_target::create_inferior): Update. Use
1513 2018-10-27 Tom Tromey <tom@tromey.com>
1515 * unittests/scoped_fd-selftests.c (test_to_file): New function.
1516 (run_tests): Call test_to_file.
1517 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
1519 * common/scoped_fd.h (scoped_fd::to_file): New method.
1521 2018-10-27 Tom Tromey <tom@tromey.com>
1523 * unittests/scoped_mmap-selftests.c (test_normal): Use
1524 gdb_mkostemp_cloexec.
1525 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
1526 Use gdb_mkostemp_cloexec.
1527 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
1528 gnulib/config.in, gnulib/configure,
1529 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
1530 gnulib/import/m4/gnulib-cache.m4,
1531 gnulib/import/m4/gnulib-comp.m4: Update.
1532 * gnulib/import/m4/mkostemp.m4: New file.
1533 * gnulib/import/m4/mkstemp.m4: Remove.
1534 * gnulib/import/mkostemp.c: New file.
1535 * gnulib/import/mkstemp.m4: Remove.
1536 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
1537 mkstemp, add mkostemp. Apply new patch.
1538 * gnulib/import/stdlib.in.h: Apply patch.
1539 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
1541 * dwarf-index-write.c (write_psymtabs_to_index): Use
1542 gdb_mkostemp_cloexec.
1543 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
1545 2018-10-27 Tom Tromey <tom@tromey.com>
1547 * unittests/mkdir-recursive-selftests.c: New file.
1548 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1549 unittests/mkdir-recursive-selftests.c.
1550 * dwarf-index-cache.c (mkdir_recursive): Move to
1552 (index_cache::store): Check return value of mkdir_recursive.
1553 (create_dir_and_check, test_mkdir_recursive): Move to new file.
1554 (_initialize_index_cache): Don't register test.
1555 * common/filestuff.h (mkdir_recursive): Declare.
1556 * common/filestuff.c (mkdir_recursive): Move from
1557 dwarf-index-cache.c. Return bool.
1559 2018-10-27 Tom Tromey <tom@tromey.com>
1561 * dwarf-index-write.c (write_psymtabs_to_index): Move
1562 make_temp_filename to common/pathstuff.c.
1563 * common/pathstuff.h (make_temp_filename): Declare.
1564 * common/pathstuff.c (make_temp_filename): New function, moved
1565 from dwarf-index-write.c.
1567 2018-10-27 Tom Tromey <tom@tromey.com>
1569 * procfs.c (procfs_target::create_inferior): Use get_shell.
1570 * cli/cli-cmds.c (shell_escape): Use get_shell.
1571 * windows-nat.c (windows_nat_target::create_inferior): Use
1573 * common/pathstuff.c (get_shell): New function.
1574 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
1575 (fork_inferior): Use get_shell.
1576 * common/pathstuff.h (get_shell): Declare.
1578 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1580 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
1582 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1584 * stack.c (print_variable_and_value_data): Add preg and treg.
1585 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
1587 (print_frame_arg_vars): Likewise.
1588 (prepare_reg): New function.
1589 (info_locals_command): Extract info print args and use them.
1590 (info_args_command): Likewise.
1591 (_initialize_stack): Modify on-line help.
1592 * symtab.c (treg_matches_sym_type_name): New function.
1593 (search_symbols): New arg t_regexp.
1594 (symtab_symbol_info): New args quiet, regexp, t_regexp.
1595 (info_variables_command): Extract info print args and use them.
1596 (info_functions_command): Likewise.
1597 (info_types_command): Update call to symtab_symbol_info.
1598 (_initialize_symtab): Modify on-line help.
1599 * symtab.h (treg_matches_sym_type_name): New function.
1600 (search_symbols): New t_regexp arg.
1602 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1604 * cli-utils.c (extract_arg_maybe_quoted): New function.
1605 (extract_info_print_args): New function.
1606 (info_print_args_help): New function.
1607 (report_unrecognized_option_error): New function.
1608 * cli-utils.h (extract_arg_maybe_quoted): New function.
1609 (extract_info_print_args): New function.
1610 (info_print_args_help): New function.
1611 (report_unrecognized_option_error): New function.
1613 2018-10-26 Tom Tromey <tom@tromey.com>
1615 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
1616 (compute_compunit_symtab_includes): Update.
1617 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
1618 (compunit_symtab_ptr): Likewise.
1620 2018-10-26 John Baldwin <jhb@FreeBSD.org>
1622 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
1623 default_print_auxv_entry for specific tag values.
1625 2018-10-26 John Baldwin <jhb@FreeBSD.org>
1627 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
1629 2018-10-26 Jim Wilson <jimw@sifive.com>
1631 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
1632 (riscv_linux_sigframe_init): Declare.
1633 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
1634 (riscv_linux_sigframe): New.
1635 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
1636 (riscv_linux_sigframe_init): Define.
1637 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
1639 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
1640 (riscv_isa_flen): Likewise. Drop static.
1641 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
1642 (riscv_isa_flen): Likewise. Declare.
1644 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1645 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1647 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
1648 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
1649 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
1650 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
1651 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
1652 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
1653 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
1655 (struct ppc_linux_features) <htm>: New field.
1656 (ppc_linux_no_features): Add initializer for htm field.
1657 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1659 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
1660 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
1661 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
1662 Define if not already defined.
1663 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
1664 and rs6000/powerpc-isa207-htm-vsx64l.
1665 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
1666 rs6000/powerpc-isa207-htm-vsx64l.xml.
1667 * features/rs6000/power-htm-spr.xml: New file.
1668 * features/rs6000/power-htm-core.xml: New file.
1669 * features/rs6000/power64-htm-core.xml: New file.
1670 * features/rs6000/power-htm-fpu.xml: New file.
1671 * features/rs6000/power-htm-altivec.xml: New file.
1672 * features/rs6000/power-htm-vsx.xml: New file.
1673 * features/rs6000/power-htm-ppr.xml: New file.
1674 * features/rs6000/power-htm-dscr.xml: New file.
1675 * features/rs6000/power-htm-tar.xml: New file.
1676 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
1677 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
1678 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
1679 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
1680 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
1681 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
1682 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1683 fetch_regset with HTM regsets.
1684 (store_register, store_ppc_registers): Call store_regset with HTM
1686 (ppc_linux_nat_target::read_description): Set htm field in the
1687 features struct if needed.
1688 * ppc-linux-tdep.c: Include
1689 features/rs6000/powerpc-isa207-htm-vsx32l.c and
1690 features/rs6000/powerpc-isa207-htm-vsx64l.c.
1691 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
1692 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
1693 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
1694 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
1695 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
1696 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
1697 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
1698 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
1699 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
1700 (ppc32_linux_ctarregset): New globals.
1701 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
1702 (ppc_linux_collect_core_cpgrregset): New function.
1703 (ppc_linux_iterate_over_regset_sections): Call back with the htm
1705 (ppc_linux_core_read_description): Check if the tm spr section is
1706 present and set htm in the features struct.
1707 (_initialize_ppc_linux_tdep): Call
1708 initialize_tdesc_powerpc_isa207_htm_vsx32l and
1709 initialize_tdesc_powerpc_isa207_htm_vsx64l.
1710 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
1712 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
1713 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
1714 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
1715 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
1717 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
1719 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
1720 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
1721 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
1723 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
1724 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
1725 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
1726 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
1727 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
1728 <PPC_CTAR_REGNUM>: Likewise.
1729 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
1730 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
1731 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
1732 (IS_CEFP_PSEUDOREG): Define.
1733 (rs6000_register_name): Hide the upper halves of checkpointed VSX
1734 registers. Return names for the checkpointed DFP, VSX, and EFP
1736 (rs6000_pseudo_register_type): Remove initial assert and raise an
1737 internal error in the else clause instead. Return types for the
1738 checkpointed DFP, VSX, and EFP pseudo registers.
1739 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
1740 checkpointed DFP pseudo registers.
1741 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
1742 checkpointed VSX pseudo registers.
1743 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
1744 from efpr_pseudo_register_read and
1745 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
1747 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1748 Handle checkpointed DFP, VSX, and EFP registers.
1749 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
1750 (efp_ax_pseudo_register_collect): New functions.
1751 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
1752 register logic to new functions. Handle checkpointed DFP, VSX,
1753 and EFP pseudo registers.
1754 (rs6000_gdbarch_init): Look for and validate the htm features.
1755 Include checkpointed DFP, VSX and EFP pseudo-registers.
1756 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
1759 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1761 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
1762 without altivec or fpu.
1764 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1765 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1767 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
1768 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
1769 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1770 Define if not already defined.
1771 * features/rs6000/power-ebb.xml: New file.
1772 * features/rs6000/power-linux-pmu.xml: New file.
1773 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1775 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1776 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1777 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1778 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1779 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1780 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1781 fetch_regset with ebb and pmu regsets.
1782 (store_register, store_ppc_registers): Call store_regset with ebb
1784 (ppc_linux_nat_target::read_description): Set isa207 field in the
1785 features struct if ebb and pmu are avaiable.
1786 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1787 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1788 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1790 (ppc_linux_core_read_description): Check if the pmu section is
1791 present and set isa207 in the features struct.
1792 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1793 (ppc32_linux_pmuregset): Declare.
1794 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
1795 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
1796 <ppc_sier_regnum>: New field.
1797 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
1799 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
1801 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
1802 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
1803 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
1804 ebb and pmu features.
1806 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1807 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1809 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
1810 (tdesc_powerpc_isa207_vsx64l): Declare.
1811 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
1812 (struct ppc_linux_features) <isa207>: New field.
1813 (ppc_linux_no_features): Add initializer for isa207 field.
1814 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1816 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
1817 (NT_PPC_TAR): Define if not already defined.
1818 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
1819 rs6000/powerpc-isa207-vsx64l.
1820 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
1821 rs6000/powerpc-isa207-vsx64l.xml.
1822 * features/rs6000/power-tar.xml: New file.
1823 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
1824 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
1825 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
1826 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
1827 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
1828 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
1829 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1830 fetch_regset with the TAR regset.
1831 (store_register, store_ppc_registers): Call store_regset with the
1833 (ppc_linux_nat_target::read_description): Set isa207 field in the
1834 features struct if needed.
1835 * ppc-linux-tdep.c: Include
1836 features/rs6000/powerpc-isa207-vsx32l.c and
1837 features/rs6000/powerpc-isa207-vsx64l.c.
1838 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
1839 (ppc_linux_iterate_over_regset_sections): Call back with the tar
1841 (ppc_linux_core_read_description): Check if the tar section is
1842 present and set isa207 in the features struct.
1843 (_initialize_ppc_linux_tdep): Call
1844 initialize_tdesc_powerpc_isa207_vsx32l and
1845 initialize_tdesc_powerpc_isa207_vsx64l.
1846 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
1847 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
1848 (enum) <PPC_TAR_REGNUM>: New enum value.
1849 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
1851 (ppc_process_record_op31): Record changes to TAR.
1853 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1854 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1856 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
1857 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1858 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
1859 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
1860 (struct ppc_linux_features) <ppr_dscr>: New field.
1861 (ppc_linux_no_features): Add initializer for ppr_dscr field.
1862 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1864 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
1865 Define if not already defined.
1866 * features/Makefile (WHICH): Add
1867 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
1868 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
1869 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1870 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
1871 * features/rs6000/power-dscr.xml: New file.
1872 * features/rs6000/power-ppr.xml: New file.
1873 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
1874 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
1875 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
1876 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
1877 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
1878 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
1879 * ppc-linux-nat.c: Include <sys/uio.h>.
1880 (fetch_regset, store_regset, check_regset): New functions.
1881 (fetch_register, fetch_ppc_registers): Call fetch_regset with
1882 DSCR and PPR regsets.
1883 (store_register, store_ppc_registers): Call store_regset with
1884 DSCR and PPR regsets.
1885 (ppc_linux_get_hwcap2): New function.
1886 (ppc_linux_nat_target::read_description): Call
1887 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
1888 features struct if needed.
1889 * ppc-linux-tdep.c: Include
1890 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
1891 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
1892 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
1893 (ppc32_linux_dscrregset): New globals.
1894 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
1896 (ppc_linux_core_read_description): Check if the ppr and dscr
1897 sections are present and set ppr_dscr in the features struct.
1898 (_initialize_ppc_linux_tdep): Call
1899 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
1900 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
1901 * ppc-linux-tdep.h (ppc32_linux_pprregset)
1902 (ppc32_linux_dscrregset): Declare.
1903 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
1904 <ppc_dscr_regnum>: New field.
1905 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
1906 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
1908 (ppc_process_record_op31): Record changes to PPR and DSCR.
1910 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1912 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
1913 second initializer line for the have_* variables. Initialize
1914 have_fpu to 0 instead of 1.
1916 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1918 * arch/ppc-linux-common.c (ppc_linux_match_description):
1919 Parenthesize tdesc assignements and indent them properly.
1921 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1923 * ppc-linux-nat.c (fetch_register): Change if statement to else
1925 (store_register): Likewise.
1927 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1929 * rs6000-tdep.c: Remove reggroups.h include.
1930 (rs6000_pseudo_register_reggroup_p): Remove.
1931 (rs6000_gdbarch_init): Remove call to
1932 set_tdesc_pseudo_register_reggroup_p.
1934 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1936 * reggroups.c (default_register_reggroup_p): Return true for
1937 decfloat registers and float_reggroup.
1939 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1941 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
1942 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
1943 ppc_linux_collect_vrregset by regcache_collect_regset.
1945 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1947 * linux-tdep.c (linux_collect_regset_section_cb): Use
1948 std::vector<gdb_byte> instead of char * and malloc for buf.
1951 2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1953 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
1954 symtab_start instead of always using language_unknown.
1956 2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
1958 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
1959 READ_P parameter, catch and ignore register access errors from
1960 either the old or new MISA location.
1961 (riscv_has_feature): Update call to riscv_read_misa_reg.
1963 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1965 * python/py-function.c (convert_values_to_python): Return
1966 gdbpy_ref<>. Add header comment.
1967 (fnpy_call): Adjust.
1969 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1971 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
1972 (cmdpy_completer_handle_brkchars): Adjust.
1973 (cmdpy_completer): Adjust.
1975 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1977 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1978 Pass correct regnum to raw_supply_zeroed.
1980 2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
1982 * regcache.c (cooked_read_test): Add CSKY to the list of
1983 architectures with a save_reggroup
1985 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1988 * infrun.c (follow_exec): In the follow_exec_mode_new case,
1989 transfer terminal state from old new new inferior.
1990 * terminal.h (swap_terminal_info): New function.
1991 * inflow.c (swap_terminal_info): New function.
1993 2018-10-23 Tom Tromey <tom@tromey.com>
1995 * record-btrace.c (get_thread_current_frame_id): Rename from
1996 get_thread_current_frame. Return a frame_id.
1997 (record_btrace_start_replaying): Update.
1999 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2001 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
2004 2018-10-23 Joel Brobecker <brobecker@adacore.com>
2006 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
2007 have_nonsteppable_watchpoint attribute to 1.
2009 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2011 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
2013 (struct register_alias): Rename to...
2014 (struct riscv_register_alias): ...this, and update comment.
2015 (riscv_register_aliases): Update type, and alias names. Remove
2016 CSR names from this list.
2017 (riscv_register_name): Use riscv_gdb_reg_names for int and float
2018 register names. Add an extra assertion.
2019 (riscv_is_regnum_a_named_csr): New function.
2020 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
2022 2018-10-23 John Darrington <john@darrington.wattle.id.au>
2024 * configure.tgt: Add configuration for s12z.
2025 * s12z-tdep.c: New file.
2026 * NEWS: Mention new target.
2028 2018-10-22 Jim Wilson <jimw@sifive.com>
2030 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
2031 FP reg smaller than FP reg size, and fill with -1 instead of 0.
2033 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
2034 (riscv_register_type): Use them.
2035 (riscv_print_one_register_info): Handle union of floats same as float.
2036 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
2037 riscv_fpreg_q_type fields.
2039 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
2041 * gdbarch.sh (gdbarch_num_cooked_regs): New.
2042 * gdbarch.h: Re-generate.
2043 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
2044 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2045 * eval.c (evaluate_subexp_standard): Likewise.
2046 * findvar.c (value_of_register): Likewise.
2047 (value_of_register_lazy): Likewise.
2048 (address_from_register): Likewise.
2049 * frame.c (get_frame_register_bytes): Likewise.
2050 * gdbarch-selftests.c (register_to_value_test): Likewise.
2051 * h8300-tdep.c (h8300_register_type): Likewise.
2052 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
2053 (i386_svr4_reg_to_regnum): Likewise.
2054 * infcmd.c (default_print_registers_info): Likewise.
2055 (registers_info): Likewise.
2056 (print_vector_info): Likewise.
2057 (default_print_float_info): Likewise.
2058 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2059 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
2060 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
2061 (mi_cmd_data_list_changed_registers): Likewise.
2062 (mi_cmd_data_list_register_values): Likewise.
2063 (mi_cmd_data_write_register_values): Likewise.
2064 (mi_cmd_trace_frame_collected): Likewise.
2065 * mips-tdep.c (print_gp_register_row): Likewise.
2066 (mips_print_registers_info): Likewise.
2067 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
2068 * regcache.c (init_regcache_descr): Likewise.
2069 (register_size): Likewise.
2070 (register_dump::dump): Likewise.
2071 (cooked_read_test): Likewise.
2072 (cooked_write_test): Likewise.
2073 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2074 (rs6000_gdbarch_init): Likewise.
2075 * stabsread.c (stab_reg_to_regnum): Likewise.
2076 * stack.c (info_frame_command): Likewise.
2077 * target-descriptions.c (tdesc_register_name): Likewise.
2078 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2079 * tui/tui-regs.c (tui_show_register_group): Likewise.
2080 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
2081 (user_reg_map_regnum_to_name): Likewise.
2082 (value_of_user_reg): Likewise.
2083 (maintenance_print_user_registers): Likewise.
2084 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
2085 (xtensa_register_name): Likewise.
2086 (xtensa_register_type): Likewise.
2087 (xtensa_reg_to_regnum): Likewise.
2088 (xtensa_pseudo_register_read): Likewise.
2089 (xtensa_pseudo_register_write): Likewise.
2091 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2093 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
2094 correctly-sized buffer with raw_read.
2095 (amd64_pseudo_register_write): Use correctly-sized buffer for
2098 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2100 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
2101 in add_prefix_cmd of set print type.
2103 2018-10-19 Tom Tromey <tom@tromey.com>
2106 * NEWS: Mention tabset deprecation.
2107 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
2108 (update_tab_width): New function.
2109 (tui_set_tab_width, tui_show_tab_width): New functions.
2110 (tui_set_tab_width_command): Use update_tab_width.
2111 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
2112 Add new "set tui tab-width" command.
2113 * tui/tui-source.c (tui_set_source_content): Update.
2114 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2115 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
2117 (tui_tab_width): Declare.
2118 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
2119 (tui_set_default_tab_len): Remove.
2121 2018-10-19 Tom Tromey <tom@tromey.com>
2123 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
2124 (key_is_backspace, tui_getc): Don't declare.
2125 * tui/tui-io.c (key_is_start_sequence): Now static.
2126 (key_is_end_sequence, key_is_backspace): Remove.
2127 (tui_getc): Now static.
2129 2018-10-19 Tom Tromey <tom@tromey.com>
2131 * symfile.c (reread_symbols): Clear "static_links".
2133 2018-10-19 Alan Hayward <alan.hayward@arm.com>
2135 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
2137 (aarch64_linux_sigframe_init): Extra boundary checks.
2139 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
2141 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
2142 the possibly non-existent tdesc type 'vec128', but the type of raw
2143 register v16 instead.
2145 2018-10-19 Gary Benson <gbenson@redhat.com>
2147 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
2149 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
2152 * cli/cli-dump.c (restore_binary_file): Check if "file" is
2155 2018-10-17 Paul Koning <paul_koning@dell.com>
2157 * charset.c (convert_between_encodings): Fix unsigned overflow.
2159 2018-10-17 John Baldwin <jhb@FreeBSD.org>
2161 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
2162 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
2163 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
2164 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
2166 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
2167 and fbsd_info_proc_mappings_header.
2168 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
2169 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
2172 2018-10-17 Joel Brobecker <brobecker@adacore.com>
2174 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
2177 2018-10-15 Tom Tromey <tom@tromey.com>
2179 * tui/tui.c (strcat_to_buf): Remove casts.
2180 * tui/tui-winsource.c (tui_show_source_line)
2181 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
2182 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
2183 * tui/tui-windata.c (tui_first_data_item_displayed)
2184 (tui_delete_data_content_windows, tui_erase_data_content)
2185 (tui_display_all_data, tui_display_data_from)
2186 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
2187 * tui/tui-win.c (tui_set_win_height)
2188 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
2190 * tui/tui-win.c (tui_resize_all): Remove casts.
2191 (tui_scroll_backward_command, tui_set_focus)
2192 (tui_set_tab_width_command): Likewise.
2193 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
2194 * tui/tui-regs.c (tui_show_register_group): Remove cast.
2195 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
2196 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
2197 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
2200 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
2202 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
2203 AArch64/ARM maintainer.
2205 2018-10-11 Gary Benson <gbenson@redhat.com>
2207 * interps.h (interp::m_name): Make private and mutable.
2208 * interps.c (interp::~interp): Free m_name.
2210 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2211 Simon Marchi <simark@simark.ca>
2213 * README (`configure' options): Add documentation for new
2214 "--enable-unit-tests" option.
2215 * acinclude.m4: Include "selftest.m4".
2216 * configure: Regenerate.
2217 * configure.ac: Use "GDB_AC_SELFTEST".
2218 * maint.c (maintenance_selftest): Update message informing
2219 that selftests have been disabled.
2220 (maintenance_info_selftests): Likewise.
2221 * selftest.m4: New file.
2223 2018-10-10 Gary Benson <gbenson@redhat.com>
2225 * remote.c (remote_target::remote_send_printf): Add
2226 missing va_end found by Coverity.
2228 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
2230 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
2232 2018-10-09 Tom Tromey <tom@tromey.com>
2234 * configure: Rebuild.
2235 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
2236 * NEWS: Update --enable-ubsan documentation.
2238 2018-10-09 Gary Benson <gbenson@redhat.com>
2240 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
2243 2018-10-08 Tom Tromey <tom@tromey.com>
2245 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
2247 (riscv_fbsd_init_abi): Likewise.
2249 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
2250 * valops.c (value_struct_elt_for_reference): Rename local variable
2251 to work around the shadowing a previous local warning.
2253 2018-10-08 John Baldwin <jhb@FreeBSD.org>
2255 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
2256 * NEWS: Mention new FreeBSD/riscv native configuration.
2257 * configure.host: Add riscv*-*-freebsd*.
2258 * configure.nat: Likewise.
2259 * riscv-fbsd-nat.c: New file.
2261 2018-10-08 John Baldwin <jhb@FreeBSD.org>
2263 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
2264 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
2265 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
2266 * NEWS: Mention new FreeBSD/riscv target.
2267 * configure.tgt: Add riscv*-*-freebsd*.
2268 * riscv-fbsd-tdep.c: New file.
2269 * riscv-fbsd-tdep.h: New file.
2271 2018-10-08 John Baldwin <jhb@FreeBSD.org>
2273 * regcache.h (struct regcache_map_entry): Note that this type can
2274 be used with traditional frame caches.
2275 * trad-frame.c (trad_frame_set_reg_regmap): New.
2276 * trad-frame.h (trad_frame_set_reg_regmap): New.
2278 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
2281 * valops.c (get_virtual_base_offset): New function.
2282 (value_struct_elt_for_reference): Use it to get virtual base offset
2283 and add it in calculating class member address.
2285 2018-10-08 John Darrington <john@darrington.wattle.id.au>
2287 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
2288 (check_producer): Check if the producer is codewarrior.
2289 (producer_is_codewarrior): New function.
2290 (lnp_state_machine::record_line): Ignore is_stmt flag for records
2291 produced by codewarrior.
2292 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
2294 2018-10-06 Tom Tromey <tom@tromey.com>
2297 * python/py-inferior.c: Add "architecture" entry.
2298 (infpy_architecture): New function.
2300 2018-10-06 Tom Tromey <tom@tromey.com>
2303 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
2304 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
2305 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
2306 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
2308 2018-10-06 Tom Tromey <tom@tromey.com>
2311 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
2312 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
2313 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
2316 2018-10-06 Tom Tromey <tom@tromey.com>
2318 * python/py-breakpoint.c (bppy_get_location): Handle a
2319 bp_breakpoint without a location.
2321 2018-10-06 Tom Tromey <tom@tromey.com>
2323 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
2324 (_RegEx): Reformat help text.
2325 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
2326 (AnyCallerIs, AnyCallerMatches): Reformat help text.
2327 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
2329 * python/lib/gdb/command/xmethods.py (InfoXMethod)
2330 (EnableXMethod, DisableXMethod): Remove help indentation.
2331 Capitalize meta-syntactic variables.
2332 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
2333 (EnableUnwinder, DisableUnwinder): Remove help indentation.
2334 Capitalize meta-syntactic variables.
2335 * python/lib/gdb/command/explore.py (ExploreCommand)
2336 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
2337 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
2338 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
2339 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
2340 Remove help indentation.
2341 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
2342 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
2343 (DisableFrameFilter, SetFrameFilterPriority)
2344 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
2346 2018-10-06 Tom Tromey <tom@tromey.com>
2349 * tui/tui-io.c (gdb_wgetch): New function.
2350 (tui_mld_getc, tui_getc): Use it.
2352 2018-10-05 Tom Tromey <tom@tromey.com>
2354 * sol-thread.c (sol_thread_target::wait): Rename inner
2357 2018-10-04 Tom Tromey <tom@tromey.com>
2359 * configure: Rebuild.
2360 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
2362 2018-10-04 Tom Tromey <tom@tromey.com>
2364 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
2365 declaration of "block".
2367 2018-10-04 Tom Tromey <tom@tromey.com>
2369 * common/filestuff.c (fdwalk): Remove inner declaration of
2372 2018-10-04 Tom Tromey <tom@tromey.com>
2374 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
2375 "structs_addr" and hoist declaration.
2377 2018-10-04 Tom Tromey <tom@tromey.com>
2379 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
2382 2018-10-04 Tom Tromey <tom@tromey.com>
2384 * mdebugread.c (parse_partial_symbols): Use std::string.
2386 2018-10-04 Tom Tromey <tom@tromey.com>
2388 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
2389 * p-valprint.c (pascal_val_print): Split inner "i" variable.
2390 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
2392 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
2394 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
2395 * varobj.c (varobj_update): Rename inner "newobj",
2397 * valprint.c (generic_emit_char): Rename inner "buf".
2398 * valops.c (find_overload_match): Rename inner "temp".
2399 (value_struct_elt_for_reference): Declare "v" in more inner
2401 * v850-tdep.c (v850_push_dummy_call): Rename "len".
2402 * unittests/array-view-selftests.c (run_tests): Rename inner
2404 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
2406 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
2407 "tsv" in more inner scope.
2408 (print_one_static_tracepoint_marker): Rename inner
2410 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
2411 (tic6x_push_dummy_call): Don't redeclare "addr".
2412 * target-float.c: Declare "dto" lower.
2413 * symtab.c (lookup_local_symbol): Rename inner "sym".
2414 (find_pc_sect_line): Rename inner "pc".
2415 * stack.c (print_frame): Don't redeclare "gdbarch".
2416 (return_command): Rename inner "gdbarch".
2417 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
2419 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
2421 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
2422 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
2424 * remote.c (remote_target::update_thread_list): Don't redeclare
2426 (remote_target::process_initial_stop_replies): Rename inner
2428 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
2429 (remote_target::wait_as): Don't redeclare "stop_reply".
2430 (remote_target::get_thread_local_address): Rename inner
2432 (remote_target::get_tib_address): Likewise.
2434 * regcache.c (cooked_read_test): Rename "regnum".
2435 * record-btrace.c (cmd_record_btrace_start): Rename inner
2437 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
2439 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
2441 (ppu2spu_sniffer): Rename inner "buf".
2442 * parse.c (operator_check_standard): Rename inner "type",
2444 * p-valprint.c (pascal_val_print): Introduce new scope for
2445 "low_bound", "high_bound".
2446 * p-exp.y (yylex): Declare "i" in loop header.
2447 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
2448 Lower declaration of "s".
2449 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
2451 (nios2_push_dummy_call): Rename "len".
2452 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
2454 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
2455 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
2456 (linux_xfer_osdata_modules): Likewise.
2457 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
2458 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2459 (mips_o64_push_dummy_call): Likewise.
2460 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
2462 * mi/mi-main.c (list_available_thread_groups): Rename inner
2464 (mi_cmd_data_read_memory): Rename inner "opts".
2465 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
2467 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
2468 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
2470 (parse_partial_symbols): Rename inner "pst", "p", "name"
2471 * main.c (captured_main_1): Rename inner "i"s.
2472 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
2474 * linux-tdep.c (linux_info_proc): Rename inner "filename".
2475 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
2476 * infrun.c (handle_no_resumed): Don't redeclare "thread".
2477 (handle_signal_stop): Rename inner "gdbarch".
2478 (handle_command): Declare "signum" in loop header.
2479 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
2481 (examine_prologue): Rename inner "sol" and "sof".
2482 (ia64_extract_return_value): Rename inner "val". Declare another
2483 "val" in a more inner scope.
2484 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
2486 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
2488 * findvar.c (default_read_var_value): Don't redeclare "addr".
2489 * f-exp.y (yylex): Declare "i" in loop header.
2490 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
2491 Rename inner "type", "expect_type".
2492 (evaluate_subexp_for_sizeof): Rename inner "pc".
2493 * elfread.c (elf_symfile_read): Rename inner "abfd".
2494 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
2496 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
2497 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
2498 (dwarf_decode_line_header): Rename inner "lh".
2499 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
2500 "offset". Declare "i" in loop header.
2501 (disassemble_dwarf_expression): Rename inner "addr_size".
2502 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
2504 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
2505 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
2506 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
2507 "inner_list_emitter".
2508 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
2509 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
2510 declaration in a block.
2511 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
2512 * cp-valprint.c (cp_print_value_fields): Don't redeclare
2513 "obstack_final_size".
2514 * cp-support.c (inspect_type): Declare "i" in loop header.
2515 * compile/compile.c (compile_instance::insert_symbol_error):
2517 * common/agent.c (agent_run_command): Remove inner "ret"
2519 * coffread.c (coff_symfile_read): Rename inner "name".
2520 (coff_symfile_read): Rename inner "abfd".
2521 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
2522 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
2524 * c-exp.y (lex_one_token): Move "len" declaration lower.
2525 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
2527 (create_exception_master_breakpoint): Likewise. Don't redeclare
2529 (watch_command_1): Declare "mark" later.
2530 (clear_command): Don't shadow "a" or "b".
2531 (delete_command): Rename inner "b".
2532 (delete_trace_command): Likewise.
2533 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
2535 (arm_gdbarch_init): Remove inner "e_flags".
2536 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
2537 "offset" in inner blocks.
2539 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
2541 * dwarf-index-write.c (file_write): Don't write if the vector is
2544 2018-10-05 Tom de Vries <tdevries@suse.de>
2546 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
2547 PyArg_ParseTuple call.
2549 2018-10-05 Tom de Vries <tdevries@suse.de>
2551 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
2552 PyArg_ParseTuple call.
2554 2018-10-04 Joel Brobecker <brobecker@adacore.com>
2556 * psymtab.c (recursively_search_psymtabs): Reformat parameters
2557 to avoid exceeding 80 characters per line limit.
2559 2018-10-04 Tom Tromey <tom@tromey.com>
2561 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2562 (reread_symbols): Update.
2563 * complaints.h (clear_complaints): Remove argument.
2564 * complaints.c (enum complaint_series): Remove.
2565 (series): Remove global.
2566 (complaint_internal): Update.
2567 (clear_complaints): Remove argument.
2569 2018-10-04 Tom Tromey <tom@tromey.com>
2571 * symfile.c (symbol_file_add_with_addrs): Do not print "no
2572 debugging symbols" message if there is a separate debug objfile.
2574 2018-10-04 Tom Tromey <tom@tromey.com>
2577 * symfile.c (symbol_file_add_with_addrs): Update output.
2578 * psymtab.c (require_partial_symbols): Update output.
2580 2018-10-04 Tom Tromey <tom@tromey.com>
2583 * complaints.c: Emit \n.
2585 2018-10-04 Tom Tromey <tom@tromey.com>
2587 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
2588 (separate_debug_file_exists, find_separate_debug_file)
2589 (add_symbol_file_command, reread_symbols, allocate_symtab)
2590 (allocate_compunit_symtab): Use filtered printing, not
2592 * psymtab.c (require_partial_symbols, dump_psymtab)
2593 (allocate_psymtab): Use filtered printing, not unfiltered.
2595 2018-10-04 Tom Tromey <tom@tromey.com>
2597 * complaints.c (complaint_internal): Correctly check complaint
2600 2018-10-04 Tom Tromey <tom@tromey.com>
2602 * complaints.h (struct complaints): Remove declaration.
2603 * complaints.c (clear_complaints): Remove an unused variable.
2605 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2607 * MAINTAINERS (Write After Approval): Add self.
2609 2018-10-03 Tom Tromey <tom@tromey.com>
2611 * guile/scm-value.c (gdbscm_value_to_string): Initialize
2613 * coffread.c (coff_symtab_read): Initialize "newobj".
2615 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
2617 * dwarf2read.c (read_func_scope): Remove struct keyword in
2620 2018-10-03 Tom Tromey <tom@tromey.com>
2622 * README: Mention --enable-ubsan.
2623 * NEWS: Mention --enable-ubsan.
2624 * acinclude.m4: Include sanitize.m4.
2625 * configure: Rebuild.
2626 * configure.ac: Call AM_GDB_UBSAN.
2627 * sanitize.m4: New file.
2629 2018-10-03 Tom Tromey <tom@tromey.com>
2631 * expression.h (enum exp_opcode): Use uint8_t as base type.
2632 * expprint.c (op_name): Handle invalid opcodes.
2634 2018-10-03 Tom Tromey <tom@tromey.com>
2636 * parse.c (prefixify_expression): Add assert.
2637 (parse_exp_in_context_1): Throw exception if the expression is
2640 2018-10-03 Tom Tromey <tom@tromey.com>
2642 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
2644 2018-10-03 Tom Tromey <tom@tromey.com>
2646 * c-exp.y (parse_number): Work in unsigned. Remove casts.
2648 2018-10-03 Tom Tromey <tom@tromey.com>
2650 * dwarf2read.c (read_subrange_type): Make "negative_mask"
2653 2018-10-03 Tom Tromey <tom@tromey.com>
2655 * findvar.c (extract_integer): Do work in an unsigned type.
2657 2018-10-03 Tom Tromey <tom@tromey.com>
2659 * common/enum-flags.h (enum_flags::operator~): Add static assert.
2660 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
2662 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
2663 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
2665 * c-lang.h (enum c_string_type_values): Use unsigned as base
2667 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
2669 2018-10-03 Tom Tromey <tom@tromey.com>
2671 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
2672 <~dwarf2_frame_state_reg_info>: Update.
2673 <dwarf2_frame_state_reg_info>: Update.
2674 <alloc_regs>: Add assertion. Update.
2675 <reg>: Now a std::vector.
2678 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2679 (execute_cfa_program_test, dwarf2_frame_cache): Update.
2681 2018-10-03 Tom Tromey <tom@tromey.com>
2683 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
2685 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2687 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
2689 2018-10-02 Tom Tromey <tom@tromey.com>
2691 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
2693 2018-10-02 John Darrington <john@darrington.wattle.id.au>
2695 * NEWS: Mention changed commands.
2696 * ser-uds.c: New file.
2697 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
2698 * configure: Regenerate.
2699 * Makefile.in: Add new file.
2700 * serial.c (serial_open): Check if filename is a socket
2701 and lookup the appropriate interface accordingly.
2703 2018-10-01 Alan Hayward <alan.hayward@arm.com>
2705 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
2707 (AARCH64_EXTRA_MAGIC): Likewise.
2708 (AARCH64_FPSIMD_MAGIC): Likewise.
2709 (AARCH64_SVE_MAGIC): Likewise.
2710 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
2711 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
2712 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
2713 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
2714 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
2715 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
2716 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
2717 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
2718 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
2719 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
2720 (read_aarch64_ctx): Add function.
2721 (aarch64_linux_sigframe_init): Detect FP registers.
2723 2018-10-01 Alan Hayward <alan.hayward@arm.com>
2725 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
2726 (AARCH64_D0_REGNUM): Likewise.
2727 (AARCH64_S0_REGNUM): Likewise.
2728 (AARCH64_H0_REGNUM): Likewise.
2729 (AARCH64_B0_REGNUM): Likewise.
2730 (AARCH64_SVE_V0_REGNUM): Likewise.
2731 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
2732 (AARCH64_D0_REGNUM): Likewise.
2733 (AARCH64_S0_REGNUM): Likewise.
2734 (AARCH64_H0_REGNUM): Likewise.
2735 (AARCH64_B0_REGNUM): Likewise.
2736 (AARCH64_SVE_V0_REGNUM): Likewise.
2738 2018-10-01 Gary Benson <gbenson@redhat.com>
2740 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
2741 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
2742 prfpregset_t instead of gdb_prfpregset_t.
2743 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
2744 * configure, config.in: Rebuild.
2746 2018-10-01 Gary Benson <gbenson@redhat.com>
2748 * common/gdb_proc_service.h: New file, factored out from...
2749 * gdb_proc_service.h: Moved common code to the above file.
2750 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
2752 2018-10-01 Gary Benson <gbenson@redhat.com>
2754 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
2755 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
2757 2018-10-01 Gary Benson <gbenson@redhat.com>
2759 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
2760 (AC_CHECK_HEADERS): Check for linux/elf.h.
2761 * configure, config.in: Rebuild.
2762 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
2763 doesn't define elf_fpregset_t.
2765 2018-10-01 Gary Benson <gbenson@redhat.com>
2767 * gdb_proc_service.h: Whitespace change.
2769 2018-10-01 Tom Tromey <tom@tromey.com>
2771 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2772 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2773 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2775 2018-10-01 Tom Tromey <tom@tromey.com>
2777 * README: Minor change.
2779 2018-09-30 Pedro Alves <palves@redhat.com>
2781 * darwin-nat-info.c (darwin_debug_regions_recurse)
2782 (info_mach_exceptions_command): Remove unused local variables.
2783 * darwin-nat.c (darwin_decode_notify_message)
2784 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2785 (darwin_stop_inferior, darwin_setup_exceptions)
2786 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2787 (darwin_nat_target::attach, darwin_nat_target::detach)
2788 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2790 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2793 2018-09-29 Tom Tromey <tom@tromey.com>
2795 * README: Remove some leftover text.
2797 2018-09-29 Tom Tromey <tom@tromey.com>
2799 * PROBLEMS: Rewrite.
2802 2018-09-28 John Baldwin <jhb@FreeBSD.org>
2804 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
2805 case with explicit breakpoint kind.
2806 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
2807 'additional_info' and related logic.
2808 (riscv_debug_breakpoints): New variable.
2809 (riscv_breakpoint_kind_from_pc): Use the length of the existing
2810 instruction to determine the breakpoint kind.
2811 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
2812 flag. Update description of 'set/show riscv
2813 use-compressed-breakpoints' flag.
2815 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
2817 (NEWS): Mention changes to frame related commands.
2818 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
2819 (add_prefix_cmd_suppress_notification): New function.
2820 (add_com_suppress_notification): Call
2821 add_cmd_suppress_notification.
2822 * command.h (add_cmd_suppress_notification): Declare.
2823 (add_prefix_cmd_suppress_notification): Declare.
2824 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
2825 (parse_frame_specification): Moved from stack.c, with
2826 simplification to handle a single argument.
2827 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
2828 switch to the selected frame. Add a header comment.
2829 * stack.c: Remove 'safe-ctype.h' include.
2830 (find_frame_for_function): Add declaration.
2831 (find_frame_for_address): New function.
2832 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
2833 (frame_selection_by_function_completer): New function.
2834 (info_frame_command): Rename to...
2835 (info_frame_command_core): ...this, and update parameter types.
2836 (select_frame_command): Rename to...
2837 (select_frame_command_core): ...this, and update parameter types.
2838 (frame_command): Rename to...
2839 (frame_command_core): ...this, and update parameter types.
2840 (class frame_command_helper): New class to wrap implementations of
2841 frame related sub-commands.
2842 (frame_apply_cmd_list): New static global.
2843 (frame_cmd_list): Make static.
2844 (select_frame_cmd_list): New global for sub-commands.
2845 (info_frame_cmd_list): New global for sub-commands.
2846 (_initialize_stack): Register sub-commands for 'frame',
2847 'select-frame', and 'info frame'. Update 'frame apply' commands
2848 to use frame_apply_cmd_list. Move function local static
2849 frame_apply_list to file static frame_apply_cmd_list for
2851 * stack.h (select_frame_command): Delete declarationn.
2852 (select_frame_for_mi): Declare new function.
2854 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
2856 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
2857 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
2860 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
2862 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
2864 2018-09-26 Tom Tromey <tom@tromey.com>
2866 * valops.c (auto_abandon): Remove dead code.
2868 2018-09-26 Tom Tromey <tom@tromey.com>
2870 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
2872 2018-09-24 Tom Tromey <tom@tromey.com>
2874 * common/pathstuff.c (get_standard_cache_dir): Make
2875 "xdg_cache_home" and "home" const.
2876 * top.c (init_history): Make "tmpenv" const.
2877 * main.c (get_init_files): Make "homedir" const.
2879 2018-09-23 Tom Tromey <tom@tromey.com>
2882 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
2884 2018-09-23 Tom Tromey <tom@tromey.com>
2886 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
2887 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
2888 * python/python-internal.h (gdbpy_handle_exception): Declare.
2889 * python/py-utils.c (gdbpy_handle_exception): New function.
2891 2018-09-23 Tom Tromey <tom@tromey.com>
2894 * python/py-type.c (typy_template_argument): Check for negative
2897 2018-09-23 Tom Tromey <tom@tromey.com>
2900 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
2902 2018-09-23 Tom Tromey <tom@tromey.com>
2905 * python/py-value.c (valpy_int): Allow conversion from pointer
2908 2018-09-23 Tom Tromey <tom@tromey.com>
2911 * python/py-value.c (valpy_int): Respect type sign.
2913 2018-09-23 Tom Tromey <tom@tromey.com>
2916 * python/py-value.c (valpy_float): Allow conversions from int or
2918 (valpy_int, valpy_long): Allow conversions from float.
2920 2018-09-23 Tom Tromey <tom@tromey.com>
2922 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
2923 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
2925 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2927 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
2929 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
2931 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
2933 * windows-nat.c (windows_nat_target::wait): Remove a spurious
2934 target_terminal::ours().
2936 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
2938 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
2941 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
2943 * breakpoint.c (update_inserted_breakpoint_locations): Remove
2944 redundant condition.
2946 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2948 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
2950 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
2951 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
2952 * sol-thread.c (ps_pdmodel): Don't guard definition.
2954 * procfs.c: Fix formatting.
2956 * procfs.c (sysset_t_alloc): Remove.
2957 (create_procinfo): Use XNEW instead of sysset_t_alloc.
2958 (procfs_debug_inferior): Likewise.
2959 (procfs_set_exec_trap): Likewise.
2960 (proc_set_traced_sysentry): Don't allocate argp dynamically.
2961 (proc_set_traced_sysexit): Likewise.
2963 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
2964 (dead_procinfo): Likewise.
2965 (proc_warn): Likewise.
2966 (proc_error): Likewise.
2967 (proc_get_LDT_entry): Likewise.
2968 (do_attach): Likewise.
2969 (procfs_target::pid_to_str): Likewise.
2970 (iterate_over_mappings): Likewise.
2972 * procfs.c (create_procinfo): Fix ARI warning.
2973 (proc_get_status): Likewise.
2974 (proc_stop_process): Likewise.
2975 (proc_run_process): Likewise.
2976 (proc_kill): Likewise.
2977 (proc_get_LDT_entry): Likewise.
2978 (procfs_find_LDT_entry): Likewise.
2979 (proc_update_threads): Likewise.
2980 (proc_iterate_over_threads): Likewise.
2981 (do_attach): Likewise.
2982 (procfs_xfer_memory): Likewise.
2983 (invalidate_cache): Likewise.
2984 (procfs_target::resume): Likewise.
2985 (procfs_init_inferior): Likewise.
2986 (procfs_set_exec_trap): Likewise.
2987 (procfs_target::thread_alive): Likewise.
2988 (procfs_target::pid_to_exec_file): Likewise.
2989 (iterate_over_mappings): Likewise.
2990 (procfs_target::make_corefile_notes): Likewise.
2991 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
2993 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
2994 (procfs_find_LDT_entry): Likewise.
2995 * sol-thread.c (ps_lgetLDT): Likewise.
2997 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3000 * procfs.c (procfs_target): Declare pid_to_exec_file.
3001 (procfs_target::pid_to_exec_file): New.
3003 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3005 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
3007 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
3008 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
3010 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3012 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
3013 (supply_fpregset, fill_fpregset): Move ...
3014 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
3015 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
3016 Remove references to ioctl-based procfs.
3017 Include <sys/reg.h>.
3018 Remove PR_MODEL_NATIVE guards.
3019 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
3020 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
3022 2018-09-19 Xavier Roirand <roirand@adacore.com>
3025 * solib-darwin.c (darwin_get_dyld_bfd): New function.
3026 (darwin_solib_get_all_image_info_addr_at_init): Update call.
3027 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
3029 2018-09-19 John Baldwin <jhb@FreeBSD.org>
3031 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
3032 (fbsd_print_sockaddr_in6): Likewise.
3034 2018-09-19 Richard Bunt <richard.bunt@arm.com>
3035 Chris January <chris.january@arm.com>
3037 * eval.c (skip_undetermined_arglist): Skip argument list helper.
3038 (evaluate_subexp_standard): Return a dummy type when
3039 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
3040 OP_F77_UNDETERMINED_ARGLIST case.
3041 * expression.h (enum noside): Update comment.
3043 2018-09-19 George Vasick <george.vasick@oracle.com>
3045 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
3047 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
3048 April Chin <april.chin@oracle.com>
3049 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3051 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
3053 (create_procinfo): Print pids in /proc without leading zeros.
3055 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
3057 * nios2-tdep.c (nios2_gcc_target_options): New.
3058 (nios2_gdb_arch_init): Install new hook.
3060 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
3062 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
3064 * update-gnulib.sh: Apply patch.
3065 * configure: Re-generate.
3067 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3069 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
3070 description. Make "info proc" command descriptions more
3073 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3075 * NEWS: Mention 'info proc files' command.
3077 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3079 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
3080 descriptors for IP_FILES and IP_ALL.
3082 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3084 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
3085 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
3086 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
3087 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
3088 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
3089 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
3090 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
3091 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
3092 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
3093 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
3094 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
3095 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
3096 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
3097 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
3098 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
3099 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
3100 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
3101 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
3102 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
3103 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
3104 (struct fbsd_sockaddr_un): New types.
3105 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
3106 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
3107 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
3108 (fbsd_core_info_proc_files): New functions.
3109 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
3111 * fbsd-tdep.h (fbsd_info_proc_files_header)
3112 (fbsd_info_proc_files_entry): New.
3114 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3116 * defs.h (enum info_proc_what) [IP_FILES]: New value.
3117 * infcmd.c (info_proc_cmd_files): New function.
3118 (_initialize_infcmd): Register 'info proc files' command.
3120 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3122 * gnulib/aclocal-m4-deps.mk: Re-generate.
3123 * gnulib/aclocal.m4: Re-generate.
3124 * gnulib/config.in: Re-generate.
3125 * gnulib/configure: Re-generate.
3126 * gnulib/import/Makefile.am: Re-generate.
3127 * gnulib/import/Makefile.in: Re-generate.
3128 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3129 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3130 * gnulib/import/arpa_inet.in.h: New file.
3131 * gnulib/import/inet_ntop.c: New file.
3132 * gnulib/import/m4/arpa_inet_h.m4: New file.
3133 * gnulib/import/m4/inet_ntop.m4: New file.
3134 * gnulib/import/m4/netinet_in_h.m4: New file.
3135 * gnulib/import/m4/socklen.m4: New file.
3136 * gnulib/import/m4/sockpfaf.m4: New file.
3137 * gnulib/import/m4/stdalign.m4: New file.
3138 * gnulib/import/m4/sys_uio_h.m4: New file.
3139 * gnulib/import/netinet_in.in.h: New file.
3140 * gnulib/import/stdalign.in.h: New file.
3141 * gnulib/import/sys_socket.c: New file.
3142 * gnulib/import/sys_socket.in.h: New file.
3143 * gnulib/import/sys_uio.in.h: New file.
3144 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
3147 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3149 * gnulib/aclocal-m4-deps.mk: New file.
3150 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
3153 2018-09-18 John Baldwin <jhb@FreeBSD.org>
3155 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
3158 2018-09-18 Tom Tromey <tom@tromey.com>
3160 * compile/compile-object-load.c (struct
3161 link_hash_table_cleanup_data): Add constructor and destructor.
3162 Use DISABLE_COPY_AND_ASSIGN.
3163 (~link_hash_table_cleanup_data): Rename from
3164 link_hash_table_free. Now a destructor.
3165 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
3167 2018-09-18 Tom Tromey <tom@tromey.com>
3169 * compile/compile-object-run.c (do_module_cleanup): Use delete.
3170 * compile/compile-object-load.c (struct munmap_list): Move to
3172 (munmap_list::add): Rename from munmap_list_add; rewrite.
3173 (munmap_list::~munmap_list): Rename from munmap_list_free.
3174 (munmap_listp_free_cleanup): Remove.
3175 (compile_object_load): Update.
3176 * compile/compile-object-load.h (struct munmap_list): Move from
3177 compile-object-load.c. Rewrite.
3179 2018-09-18 Alan Hayward <alan.hayward@arm.com>
3181 * aarch64-tdep.c (pass_in_v): Use register size.
3182 (aarch64_extract_return_value): Likewise.
3183 (aarch64_store_return_value): Likewise.
3185 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3187 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
3190 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3192 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
3193 Fix short help line.
3195 2018-09-17 Tom Tromey <tom@tromey.com>
3198 * configure: Rebuild.
3199 * configure.ac: Conditionally use -DNDEBUG for Python.
3201 2018-09-17 Tom Tromey <tom@tromey.com>
3203 * configure: Rebuild.
3204 * configure.ac: Use gmp as a library dependency when checking for
3207 2018-09-17 Pedro Alves <palves@redhat.com>
3209 * python/py-inferior.c (find_inferior_object): Delete.
3211 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
3213 * compile/compile-cplus-types.c
3214 (compile_cplus_instance::enter_scope): Don't use new_scope after
3217 2018-09-17 Tom Tromey <tom@tromey.com>
3219 * common/pathstuff.c (get_standard_cache_dir): Use
3220 ~/Library/Caches on macOS.
3221 * common/pathstuff.h (get_standard_cache_dir): Update comment.
3223 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
3226 * breakpoint.c (commands_cmd_element): New.
3227 (_initialize_breakpoint): Assign commands_cmd_element.
3228 * breakpoint.h (commands_cmd_element): New.
3229 * cli/cli-script.c (while_cmd_element, if_command,
3230 define_cmd_element): New.
3231 (command_name_equals): Remove.
3232 (process_next_line): Compare commands by pointer, not by name.
3233 (_initialize_cli_script): Assign the various cmd_list_element
3235 * compile/compile.c (compile_cmd_element): New.
3236 (_initialize_compile): Assign compile_cmd_element.
3237 * compile/compile.h (compile_cmd_element): New.
3238 * guile/guile.c (guile_cmd_element): New.
3239 (install_gdb_commands): Assign guile_cmd_element.
3240 * guile/guile.h (guile_cmd_element): New.
3241 * python/python.c (python_cmd_element): New.
3242 (_initialize_python): Assign python_cmd_element.
3243 * python/python.h (python_cmd_element): New.
3244 * tracepoint.c (while_stepping_cmd_element): New.
3245 (_initialize_tracepoint): Assign while_stepping_cmd_element.
3246 * tracepoint.h (while_stepping_cmd_element): New.
3248 2018-09-17 Tom Tromey <tom@tromey.com>
3250 * infrun.c (save_infcall_suspend_state): Return
3251 infcall_suspend_state_up.
3252 (save_infcall_control_state): Return infcall_control_state_up.
3253 * inferior.h (save_infcall_suspend_state)
3254 (save_infcall_control_state): Declare later. Return unique
3257 2018-09-17 Tom Tromey <tom@tromey.com>
3259 * infrun.c (struct stop_context): Declare constructor,
3260 destructor, "changed" method.
3261 (stop_context::stop_context): Rename from save_stop_context.
3262 (stop_context::~stop_context): Rename from
3263 release_stop_context_cleanup.
3264 (normal_stop): Update.
3265 (stop_context::changed): Rename from stop_context_changed. Return
3268 2018-09-17 Tom Tromey <tom@tromey.com>
3270 * inferior.h (struct infcall_suspend_state_deleter): New.
3271 (infcall_suspend_state_up): New typedef.
3272 (struct infcall_control_state_deleter): New.
3273 (infcall_control_state_up): New typedef.
3274 (make_cleanup_restore_infcall_suspend_state)
3275 (make_cleanup_restore_infcall_control_state): Don't declare.
3276 * infcall.c (call_function_by_hand_dummy): Update.
3277 * infrun.c (do_restore_infcall_suspend_state_cleanup)
3278 (make_cleanup_restore_infcall_suspend_state): Remove.
3279 (do_restore_infcall_control_state_cleanup)
3280 (make_cleanup_restore_infcall_control_state): Remove.
3282 2018-09-17 Tom Tromey <tom@tromey.com>
3284 * gdbthread.h (struct thread_control_state): Add initializer.
3285 (class thread_info) <control>: Remove initializer.
3286 * inferior.h (struct inferior_control_state): Add initializer.
3287 (class inferior) <control>: Remove initializer.
3288 (exit_inferior_1): Update.
3289 * infrun.c (struct infcall_control_state): Add constructors.
3290 (save_infcall_control_state): Use new.
3291 (restore_infcall_control_state, discard_infcall_control_state):
3294 2018-09-17 Tom Tromey <tom@tromey.com>
3296 * infrun.c (struct infcall_suspend_state) <registers>: Now a
3298 <siginfo_data>: Now a unique_xmalloc_ptr.
3299 (save_infcall_suspend_state, restore_infcall_suspend_state)
3300 (discard_infcall_suspend_state)
3301 (get_infcall_suspend_state_regcache): Update.
3303 2018-09-17 Tom Tromey <tom@tromey.com>
3305 * gdbthread.h (struct thread_suspend_state): Add initializers.
3306 (class thread_info) <suspend>: Remove initializer.
3307 * infrun.c (struct infcall_suspend_state): Add initializers.
3308 (save_infcall_suspend_state): Use new.
3309 (discard_infcall_suspend_state): Use delete.
3311 2018-09-16 Tom Tromey <tom@tromey.com>
3313 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3315 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
3316 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3317 (py_varobj_iter_new): Likewise.
3318 (py_varobj_get_iterator): Use gdbpy_ref.
3320 2018-09-16 Tom Tromey <tom@tromey.com>
3322 * python/py-threadevent.c (py_get_event_thread): Simplify.
3323 * python/py-inferior.c (infpy_thread_from_thread_handle):
3324 Return immediately after calling thread_to_thread_object. Use
3326 (thread_to_thread_object): Set the exception on a NULL return.
3328 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3330 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
3332 2018-09-16 Tom Tromey <tom@tromey.com>
3334 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3337 2018-09-16 Tom Tromey <tom@tromey.com>
3339 * python/python-internal.h (thread_to_thread_object): Change
3341 * python/py-inferior.c (thread_to_thread_object): Return a new
3343 (infpy_thread_from_thread_handle): Update.
3344 * python/py-infthread.c (gdbpy_selected_thread): Update.
3345 * python/py-stopevent.c (create_stop_event_object): Update.
3346 * python/py-threadevent.c (py_get_event_thread): Return a new
3348 (py_get_event_thread): Update.
3349 * python/py-event.h (py_get_event_thread): Change return type.
3350 * python/py-continueevent.c (create_continue_event_object):
3353 2018-09-16 Tom Tromey <tom@tromey.com>
3355 * python/py-progspace.c (pspy_get_objfiles): Update.
3356 * python/python-internal.h (objfile_to_objfile_object): Change
3358 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3360 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3362 * python/python.c (gdbpy_get_current_objfile): Update.
3363 (gdbpy_objfiles): Update.
3364 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
3366 (objfile_to_objfile_object): Return a new reference.
3367 * python/py-symtab.c (stpy_get_objfile): Update.
3368 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
3371 2018-09-16 Tom Tromey <tom@tromey.com>
3373 * python/py-inferior.c (infpy_get_progspace): Update.
3374 * python/python-internal.h (pspace_to_pspace_object): Change
3376 * python/py-newobjfileevent.c
3377 (create_clear_objfiles_event_object): Update.
3378 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
3380 * python/python.c (gdbpy_get_current_progspace): Update.
3381 (gdbpy_progspaces): Update.
3382 * python/py-progspace.c (pspace_to_pspace_object): Return a new
3384 * python/py-objfile.c (objfpy_get_progspace): Update.
3385 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
3388 2018-09-16 Tom Tromey <tom@tromey.com>
3390 * python/lib/gdb/__init__.py (current_progspace, objfiles)
3391 (solib_name, block_for_pc, find_pc_line): New functions.
3392 (execute_unwinders): Update.
3393 * python/py-block.c (gdbpy_block_for_pc): Remove.
3394 * python/py-inferior.c (infpy_get_progspace): New function.
3395 (inferior_object_getset) <progspace>: Add.
3396 * python/py-progspace.c (pspy_objfiles): Rewrite.
3397 (pspy_solib_name, pspy_block_for_pc)
3398 (pspy_find_pc_line, pspy_is_valid): New functions.
3399 (progspace_object_methods): Add entries for solib_name,
3400 block_for_pc, find_pc_line, is_valid.
3401 * python/python-internal.h (gdbpy_block_for_pc)
3402 (build_objfiles_list): Don't declare.
3403 * python/python.c: Don't include solib.h.
3404 (gdbpy_solib_name, gdbpy_find_pc_line)
3405 (gdbpy_get_current_progspace, build_objfiles_list)
3406 (gdbpy_objfiles): Remove.
3407 (GdbMethods) <current_progspace, objfiles, block_for_pc,
3408 solib_name, find_pc_line>: Remove entries.
3410 2018-09-16 Tom Tromey <tom@tromey.com>
3412 * top.c (new_ui_command): Use GNU style for metasyntactic
3414 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
3416 * maint.c (maintenance_translate_address): Remove "<>" around
3418 * interps.c (interpreter_exec_cmd): Use GNU style for
3419 metasyntactic variables.
3420 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
3421 metasyntactic variables.
3422 * tracepoint.c (tfind_range_command): Use GNU style for
3423 metasyntactic variables.
3424 (tfind_outside_command): Likewise.
3425 (_initialize_tracepoint): Likewise.
3426 * remote.c (extended_remote_target::create_inferior): Use GNU
3427 style for metasyntactic variables.
3428 * sparc64-tdep.c (adi_examine_command): Use GNU style for
3429 metasyntactic variables.
3430 (adi_assign_command): Likewise.
3432 2018-09-16 Tom Tromey <tom@tromey.com>
3434 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
3435 metasyntactic variables. Print message if no disassembler options
3438 2018-09-15 Tom Tromey <tom@tromey.com>
3440 * infcmd.c (get_inferior_args): Return const char *.
3441 * inferior.h (get_inferior_args): Return type now const.
3442 * linux-tdep.c (linux_fill_prpsinfo): Update.
3443 * procfs.c (procfs_target::make_corefile_notes): Update.
3445 2018-09-07 Tom Tromey <tom@tromey.com>
3447 * python/python.c (execute_gdb_command): Call bpstat_do_actions
3450 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
3452 * nios2-tdep.c (nios2_type_align): New.
3453 (nios2_gdb_arch_init): Install type_align hook.
3455 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3457 * eval.c (fake_method::fake_method): Call xzalloc directly for a
3458 type that is neither object file owned, nor gdbarch owned.
3459 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
3460 gdbarch is non-NULL.
3461 (alloc_type_instance): Allocate non-objfile owned types on the
3463 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
3464 using TYPE_ALLOC to ensure memory is allocated on the correct
3466 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
3467 obstack, or the gdbarch obstack.
3468 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
3470 2018-09-14 Tom Tromey <tom@tromey.com>
3472 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
3475 2018-09-14 Tom Tromey <tom@tromey.com>
3477 * nat/fork-inferior.c (get_startup_shell): Remove "static".
3479 2018-09-13 Tom Tromey <tom@tromey.com>
3481 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
3484 2018-09-13 Tom Tromey <tom@tromey.com>
3486 * exec.c (try_open_exec_file): Use std::string.
3488 2018-09-13 Tom Tromey <tom@tromey.com>
3490 * utils.h (gdb_bfd_errmsg): Return std::string.
3491 * exec.c (exec_file_attach): Update.
3492 * compile/compile-object-load.c (compile_object_load): Update.
3493 * utils.c (gdb_bfd_errmsg): Return std::string.
3495 2018-09-13 Tom Tromey <tom@tromey.com>
3497 * procfs.c (struct procinfo_deleter): New.
3498 (procinfo_up): New typedef.
3499 (do_destroy_procinfo_cleanup): Remove.
3500 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
3502 2018-09-13 Tom Tromey <tom@tromey.com>
3504 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
3506 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3507 2018-09-13 Tom Tromey <tom@tromey.com>
3509 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
3510 (pspy_get_objfiles): New function.
3511 (progspace_object_methods): New.
3512 (pspace_object_type): Add tp_methods callback.
3513 * python/python-internal.h (build_objfiles_list): New
3515 * python/python.c (build_objfiles_list): New function.
3516 (gdbpy_objfiles): Implement using build_objfiles_list.
3517 * NEWS: Mention the Progspace.objfiles method.
3519 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3521 * python/py-inferior.c (infpy_get_progspace): New function.
3522 (inferior_object_getset): Add progspace property.
3523 * NEWS: Mention the new property.
3525 2018-09-13 Tom Tromey <tom@tromey.com>
3528 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
3530 2018-09-13 Tom Tromey <tom@tromey.com>
3533 * rust-lang.c (rust_enum_variant): Now static.
3534 (rust_empty_enum_p): New function.
3535 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
3538 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3540 * python/py-inferior.c (infpy_repr): New.
3541 (inferior_object_type): Register infpy_repr.
3542 * python/py-objfile.c (objfpy_repr): New.
3543 (objfile_object_type): Register objfpy_repr.
3545 2018-09-12 John Baldwin <jhb@FreeBSD.org>
3547 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
3549 2018-09-12 John Baldwin <jhb@FreeBSD.org>
3551 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
3554 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
3556 * common/common-utils.c: Don't include '<sys/stat.h>'.
3557 (is_regular_file): Move to...
3558 * common/filestuff.c (is_regular_file): ... here.
3559 * common/common-utils.h (is_regular_file): Move to...
3560 * common/filestuff.h (is_regular_file): ... here.
3562 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
3564 * skip.c (debug_skip): New variable.
3565 (skiplist_entry::do_skip_file_p): Add debug output.
3566 (skiplist_entry::do_skip_gfile_p): Likewise.
3567 (skiplist_entry::skip_function_p): Likewise.
3568 (_initialize_step_skip): Create debug command.
3569 * NEWS: Mention set/show debug skip.
3571 2018-09-11 Xavier Roirand <roirand@adacore.com>
3573 * darwin-nat.c (should_disable_startup_with_shell):
3575 (darwin_nat_target::create_inferior): Add call.
3577 2018-09-11 Xavier Roirand <roirand@adacore.com>
3579 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
3580 inf_port, msg_state>: Initialize.
3581 (struct darwin_thread_info) <signaled, single_step>: Change
3582 type and initialize.
3583 (struct darwin_thread_info) <event>: Initialize.
3585 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3589 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
3592 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3595 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3599 * gnulib/aclocal.m4: Regenerate.
3600 * gnulib/config.in: Regenerate.
3601 * gnulib/configure: Regenerate.
3602 * gnulib/import/Makefile.am: Update.
3603 * gnulib/import/Makefile.in: Update.
3604 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3605 * gnulib/import/_Noreturn.h: ... this.
3606 * gnulib/import/alloca.in.h: Update.
3607 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3608 * gnulib/import/arg-nonnull.h: ... this.
3609 * gnulib/import/assure.h: Update.
3610 * gnulib/import/at-func.c: Update.
3611 * gnulib/import/basename-lgpl.c: Update.
3612 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3613 * gnulib/import/c++defs.h: ... this.
3614 * gnulib/import/canonicalize-lgpl.c: Update.
3615 * gnulib/import/cdefs.h: Update.
3616 * gnulib/import/chdir-long.c: Update.
3617 * gnulib/import/chdir-long.h: Update.
3618 * gnulib/import/cloexec.c: Update.
3619 * gnulib/import/cloexec.h: Update.
3620 * gnulib/import/close.c: Update.
3621 * gnulib/import/closedir.c: Update.
3622 * gnulib/import/config.charset: Update.
3623 * gnulib/import/dirent-private.h: Update.
3624 * gnulib/import/dirent.in.h: Update.
3625 * gnulib/import/dirfd.c: Update.
3626 * gnulib/import/dirname-lgpl.c: Update.
3627 * gnulib/import/dirname.h: Update.
3628 * gnulib/import/dosname.h: Update.
3629 * gnulib/import/dup-safer-flag.c: Update.
3630 * gnulib/import/dup-safer.c: Update.
3631 * gnulib/import/dup.c: Update.
3632 * gnulib/import/dup2.c: Update.
3633 * gnulib/import/errno.in.h: Update.
3634 * gnulib/import/error.c: Update.
3635 * gnulib/import/error.h: Update.
3636 * gnulib/import/exitfail.c: Update.
3637 * gnulib/import/exitfail.h: Update.
3638 * gnulib/import/extra/update-copyright: Update.
3639 * gnulib/import/fchdir.c: Update.
3640 * gnulib/import/fcntl.c: Update.
3641 * gnulib/import/fcntl.in.h: Update.
3642 * gnulib/import/fd-hook.c: Update.
3643 * gnulib/import/fd-hook.h: Update.
3644 * gnulib/import/fd-safer-flag.c: Update.
3645 * gnulib/import/fd-safer.c: Update.
3646 * gnulib/import/fdopendir.c: Update.
3647 * gnulib/import/filename.h: Update.
3648 * gnulib/import/filenamecat-lgpl.c: Update.
3649 * gnulib/import/filenamecat.h: Update.
3650 * gnulib/import/flexmember.h: Update.
3651 * gnulib/import/float+.h: Update.
3652 * gnulib/import/float.c: Update.
3653 * gnulib/import/float.in.h: Update.
3654 * gnulib/import/fnmatch.c: Update.
3655 * gnulib/import/fnmatch.in.h: Update.
3656 * gnulib/import/fnmatch_loop.c: Update.
3657 * gnulib/import/fpucw.h: Update.
3658 * gnulib/import/frexp.c: Update.
3659 * gnulib/import/frexpl.c: Update.
3660 * gnulib/import/fstat.c: Update.
3661 * gnulib/import/fstatat.c: Update.
3662 * gnulib/import/getcwd-lgpl.c: Update.
3663 * gnulib/import/getcwd.c: Update.
3664 * gnulib/import/getdtablesize.c: Update.
3665 * gnulib/import/getlogin_r.c: Update.
3666 * gnulib/import/getprogname.c: Update.
3667 * gnulib/import/getprogname.h: Update.
3668 * gnulib/import/gettext.h: Update.
3669 * gnulib/import/gettimeofday.c: Update.
3670 * gnulib/import/glob-libc.h: Update.
3671 * gnulib/import/glob.c: Update.
3672 * gnulib/import/glob.in.h: Update.
3673 * gnulib/import/glob_internal.h: Update.
3674 * gnulib/import/glob_pattern_p.c: Update.
3675 * gnulib/import/globfree.c: Update.
3676 * gnulib/import/hard-locale.c: Update.
3677 * gnulib/import/hard-locale.h: Update.
3678 * gnulib/import/intprops.h: Update.
3679 * gnulib/import/inttypes.in.h: Update.
3680 * gnulib/import/isnan.c: Update.
3681 * gnulib/import/isnand-nolibm.h: Update.
3682 * gnulib/import/isnand.c: Update.
3683 * gnulib/import/isnanl-nolibm.h: Update.
3684 * gnulib/import/isnanl.c: Update.
3685 * gnulib/import/itold.c: Update.
3686 * gnulib/import/libc-config.h: Update.
3687 * gnulib/import/limits.in.h: Update.
3688 * gnulib/import/localcharset.c: Update.
3689 * gnulib/import/localcharset.h: Update.
3690 * gnulib/import/localtime-buffer.c: Update.
3691 * gnulib/import/localtime-buffer.h: Update.
3692 * gnulib/import/lstat.c: Update.
3693 * gnulib/import/m4/00gnulib.m4: Update.
3694 * gnulib/import/m4/__inline.m4: Update.
3695 * gnulib/import/m4/absolute-header.m4: Update.
3696 * gnulib/import/m4/alloca.m4: Update.
3697 * gnulib/import/m4/builtin-expect.m4: Update.
3698 * gnulib/import/m4/canonicalize.m4: Update.
3699 * gnulib/import/m4/chdir-long.m4: Update.
3700 * gnulib/import/m4/close.m4: Update.
3701 * gnulib/import/m4/closedir.m4: Update.
3702 * gnulib/import/m4/configmake.m4: Update.
3703 * gnulib/import/m4/d-ino.m4: Update.
3704 * gnulib/import/m4/d-type.m4: Update.
3705 * gnulib/import/m4/dirent_h.m4: Update.
3706 * gnulib/import/m4/dirfd.m4: Update.
3707 * gnulib/import/m4/dirname.m4: Update.
3708 * gnulib/import/m4/double-slash-root.m4: Update.
3709 * gnulib/import/m4/dup.m4: Update.
3710 * gnulib/import/m4/dup2.m4: Update.
3711 * gnulib/import/m4/eealloc.m4: Update.
3712 * gnulib/import/m4/environ.m4: Update.
3713 * gnulib/import/m4/errno_h.m4: Update.
3714 * gnulib/import/m4/error.m4: Update.
3715 * gnulib/import/m4/exponentd.m4: Update.
3716 * gnulib/import/m4/exponentl.m4: Update.
3717 * gnulib/import/m4/extensions.m4: Update.
3718 * gnulib/import/m4/extern-inline.m4: Update.
3719 * gnulib/import/m4/fchdir.m4: Update.
3720 * gnulib/import/m4/fcntl-o.m4: Update.
3721 * gnulib/import/m4/fcntl.m4: Update.
3722 * gnulib/import/m4/fcntl_h.m4: Update.
3723 * gnulib/import/m4/fdopendir.m4: Update.
3724 * gnulib/import/m4/filenamecat.m4: Update.
3725 * gnulib/import/m4/flexmember.m4: Update.
3726 * gnulib/import/m4/float_h.m4: Update.
3727 * gnulib/import/m4/fnmatch.m4: Update.
3728 * gnulib/import/m4/fnmatch_h.m4: Update.
3729 * gnulib/import/m4/fpieee.m4: Update.
3730 * gnulib/import/m4/frexp.m4: Update.
3731 * gnulib/import/m4/frexpl.m4: Update.
3732 * gnulib/import/m4/fstat.m4: Update.
3733 * gnulib/import/m4/fstatat.m4: Update.
3734 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3735 * gnulib/import/m4/getcwd-path-max.m4: Update.
3736 * gnulib/import/m4/getcwd.m4: Update.
3737 * gnulib/import/m4/getdtablesize.m4: Update.
3738 * gnulib/import/m4/getlogin.m4: Update.
3739 * gnulib/import/m4/getlogin_r.m4: Update.
3740 * gnulib/import/m4/getpagesize.m4: Update.
3741 * gnulib/import/m4/getprogname.m4: Update.
3742 * gnulib/import/m4/gettimeofday.m4: Update.
3743 * gnulib/import/m4/glibc21.m4: Update.
3744 * gnulib/import/m4/glob.m4: Update.
3745 * gnulib/import/m4/glob_h.m4: Update.
3746 * gnulib/import/m4/gnulib-cache.m4: Update.
3747 * gnulib/import/m4/gnulib-common.m4: Update.
3748 * gnulib/import/m4/gnulib-comp.m4: Update.
3749 * gnulib/import/m4/gnulib-tool.m4: Update.
3750 * gnulib/import/m4/hard-locale.m4: Update.
3751 * gnulib/import/m4/include_next.m4: Update.
3752 * gnulib/import/m4/inttypes-pri.m4: Update.
3753 * gnulib/import/m4/inttypes.m4: Update.
3754 * gnulib/import/m4/isnand.m4: Update.
3755 * gnulib/import/m4/isnanl.m4: Update.
3756 * gnulib/import/m4/largefile.m4: Update.
3757 * gnulib/import/m4/limits-h.m4: Update.
3758 * gnulib/import/m4/localcharset.m4: Update.
3759 * gnulib/import/m4/locale-fr.m4: Update.
3760 * gnulib/import/m4/locale-ja.m4: Update.
3761 * gnulib/import/m4/locale-zh.m4: Update.
3762 * gnulib/import/m4/localtime-buffer.m4: Update.
3763 * gnulib/import/m4/longlong.m4: Update.
3764 * gnulib/import/m4/lstat.m4: Update.
3765 * gnulib/import/m4/malloc.m4: Update.
3766 * gnulib/import/m4/malloca.m4: Update.
3767 * gnulib/import/m4/math_h.m4: Update.
3768 * gnulib/import/m4/mbrtowc.m4: Update.
3769 * gnulib/import/m4/mbsinit.m4: Update.
3770 * gnulib/import/m4/mbsrtowcs.m4: Update.
3771 * gnulib/import/m4/mbstate_t.m4: Update.
3772 * gnulib/import/m4/memchr.m4: Update.
3773 * gnulib/import/m4/memmem.m4: Update.
3774 * gnulib/import/m4/mempcpy.m4: Update.
3775 * gnulib/import/m4/memrchr.m4: Update.
3776 * gnulib/import/m4/mkdir.m4: Update.
3777 * gnulib/import/m4/mkstemp.m4: Update.
3778 * gnulib/import/m4/mmap-anon.m4: Update.
3779 * gnulib/import/m4/mode_t.m4: Update.
3780 * gnulib/import/m4/msvc-inval.m4: Update.
3781 * gnulib/import/m4/msvc-nothrow.m4: Update.
3782 * gnulib/import/m4/multiarch.m4: Update.
3783 * gnulib/import/m4/nocrash.m4: Update.
3784 * gnulib/import/m4/off_t.m4: Update.
3785 * gnulib/import/m4/onceonly.m4: Update.
3786 * gnulib/import/m4/open-cloexec.m4: Update.
3787 * gnulib/import/m4/open.m4: Update.
3788 * gnulib/import/m4/openat.m4: Update.
3789 * gnulib/import/m4/opendir.m4: Update.
3790 * gnulib/import/m4/pathmax.m4: Update.
3791 * gnulib/import/m4/rawmemchr.m4: Update.
3792 * gnulib/import/m4/readdir.m4: Update.
3793 * gnulib/import/m4/readlink.m4: Update.
3794 * gnulib/import/m4/realloc.m4: Update.
3795 * gnulib/import/m4/rename.m4: Update.
3796 * gnulib/import/m4/rewinddir.m4: Update.
3797 * gnulib/import/m4/rmdir.m4: Update.
3798 * gnulib/import/m4/save-cwd.m4: Update.
3799 * gnulib/import/m4/secure_getenv.m4: Update.
3800 * gnulib/import/m4/setenv.m4: Update.
3801 * gnulib/import/m4/signal_h.m4: Update.
3802 * gnulib/import/m4/ssize_t.m4: Update.
3803 * gnulib/import/m4/stat-time.m4: Update.
3804 * gnulib/import/m4/stat.m4: Update.
3805 * gnulib/import/m4/std-gnu11.m4: Update.
3806 * gnulib/import/m4/stdbool.m4: Update.
3807 * gnulib/import/m4/stddef_h.m4: Update.
3808 * gnulib/import/m4/stdint.m4: Update.
3809 * gnulib/import/m4/stdio_h.m4: Update.
3810 * gnulib/import/m4/stdlib_h.m4: Update.
3811 * gnulib/import/m4/strchrnul.m4: Update.
3812 * gnulib/import/m4/strdup.m4: Update.
3813 * gnulib/import/m4/strerror.m4: Update.
3814 * gnulib/import/m4/string_h.m4: Update.
3815 * gnulib/import/m4/strstr.m4: Update.
3816 * gnulib/import/m4/strtok_r.m4: Update.
3817 * gnulib/import/m4/sys_socket_h.m4: Update.
3818 * gnulib/import/m4/sys_stat_h.m4: Update.
3819 * gnulib/import/m4/sys_time_h.m4: Update.
3820 * gnulib/import/m4/sys_types_h.m4: Update.
3821 * gnulib/import/m4/tempname.m4: Update.
3822 * gnulib/import/m4/time_h.m4: Update.
3823 * gnulib/import/m4/unistd-safer.m4: Update.
3824 * gnulib/import/m4/unistd_h.m4: Update.
3825 * gnulib/import/m4/warn-on-use.m4: Update.
3826 * gnulib/import/m4/wchar_h.m4: Update.
3827 * gnulib/import/m4/wchar_t.m4: Update.
3828 * gnulib/import/m4/wctype_h.m4: Update.
3829 * gnulib/import/m4/wint_t.m4: Update.
3830 * gnulib/import/malloc.c: Update.
3831 * gnulib/import/malloc/scratch_buffer.h: Update.
3832 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3833 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3834 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3835 * gnulib/import/malloca.c: Update.
3836 * gnulib/import/malloca.h: Update.
3837 * gnulib/import/malloca.valgrind: Update.
3838 * gnulib/import/math.in.h: Update.
3839 * gnulib/import/mbrtowc.c: Update.
3840 * gnulib/import/mbsinit.c: Update.
3841 * gnulib/import/mbsrtowcs-impl.h: Update.
3842 * gnulib/import/mbsrtowcs-state.c: Update.
3843 * gnulib/import/mbsrtowcs.c: Update.
3844 * gnulib/import/memchr.c: Update.
3845 * gnulib/import/memmem.c: Update.
3846 * gnulib/import/mempcpy.c: Update.
3847 * gnulib/import/memrchr.c: Update.
3848 * gnulib/import/mkdir.c: Update.
3849 * gnulib/import/mkstemp.c: Update.
3850 * gnulib/import/msvc-inval.c: Update.
3851 * gnulib/import/msvc-inval.h: Update.
3852 * gnulib/import/msvc-nothrow.c: Update.
3853 * gnulib/import/msvc-nothrow.h: Update.
3854 * gnulib/import/open.c: Update.
3855 * gnulib/import/openat-die.c: Update.
3856 * gnulib/import/openat-priv.h: Update.
3857 * gnulib/import/openat-proc.c: Update.
3858 * gnulib/import/openat.c: Update.
3859 * gnulib/import/openat.h: Update.
3860 * gnulib/import/opendir.c: Update.
3861 * gnulib/import/pathmax.h: Update.
3862 * gnulib/import/pipe-safer.c: Update.
3863 * gnulib/import/rawmemchr.c: Update.
3864 * gnulib/import/readdir.c: Update.
3865 * gnulib/import/readlink.c: Update.
3866 * gnulib/import/realloc.c: Update.
3867 * gnulib/import/ref-add.sin: Update.
3868 * gnulib/import/ref-del.sin: Update.
3869 * gnulib/import/rename.c: Update.
3870 * gnulib/import/rewinddir.c: Update.
3871 * gnulib/import/rmdir.c: Update.
3872 * gnulib/import/same-inode.h: Update.
3873 * gnulib/import/save-cwd.c: Update.
3874 * gnulib/import/save-cwd.h: Update.
3875 * gnulib/import/scratch_buffer.h: Update.
3876 * gnulib/import/secure_getenv.c: Update.
3877 * gnulib/import/setenv.c: Update.
3878 * gnulib/import/signal.in.h: Update.
3879 * gnulib/import/stat-time.c: Update.
3880 * gnulib/import/stat-time.h: Update.
3881 * gnulib/import/stat-w32.c: Update.
3882 * gnulib/import/stat-w32.h: Update.
3883 * gnulib/import/stat.c: Update.
3884 * gnulib/import/stdbool.in.h: Update.
3885 * gnulib/import/stddef.in.h: Update.
3886 * gnulib/import/stdint.in.h: Update.
3887 * gnulib/import/stdio.in.h: Update.
3888 * gnulib/import/stdlib.in.h: Update.
3889 * gnulib/import/str-two-way.h: Update.
3890 * gnulib/import/strchrnul.c: Update.
3891 * gnulib/import/strdup.c: Update.
3892 * gnulib/import/streq.h: Update.
3893 * gnulib/import/strerror-override.c: Update.
3894 * gnulib/import/strerror-override.h: Update.
3895 * gnulib/import/strerror.c: Update.
3896 * gnulib/import/string.in.h: Update.
3897 * gnulib/import/stripslash.c: Update.
3898 * gnulib/import/strnlen1.c: Update.
3899 * gnulib/import/strnlen1.h: Update.
3900 * gnulib/import/strstr.c: Update.
3901 * gnulib/import/strtok_r.c: Update.
3902 * gnulib/import/sys_stat.in.h: Update.
3903 * gnulib/import/sys_time.in.h: Update.
3904 * gnulib/import/sys_types.in.h: Update.
3905 * gnulib/import/tempname.c: Update.
3906 * gnulib/import/tempname.h: Update.
3907 * gnulib/import/time.in.h: Update.
3908 * gnulib/import/unistd--.h: Update.
3909 * gnulib/import/unistd-safer.h: Update.
3910 * gnulib/import/unistd.in.h: Update.
3911 * gnulib/import/unsetenv.c: Update.
3912 * gnulib/import/verify.h: Update.
3913 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3914 * gnulib/import/wchar.in.h: Update.
3915 * gnulib/import/wctype.in.h: Update.
3916 * gnulib/import/xalloc-oversized.h: Update.
3917 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3918 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3920 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
3922 * record-btrace.c (get_thread_current_frame): Remove
3925 2018-09-10 Jerome Guitton <guitton@adacore.com>
3927 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
3928 with check_tag to 1 if and only if the type is tagged and the
3929 component being searched cannot been found in the current
3930 view. Otherwise, always call ada_to_fixed_type with
3933 2018-09-10 Xavier Roirand <roirand@adacore.com>
3935 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
3937 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
3938 * ada-varobj.c (ada_varobj_get_number_of_children,
3939 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
3941 2018-09-10 Xavier Roirand <roirand@adacore.com>
3943 * ada-valprint.c (ada_value_print): Use type instead of
3946 2018-09-10 Xavier Roirand <roirand@adacore.com>
3948 * ada-lang.c (ada_value_subscript): Handle case when parameter is
3949 an array of access to unconstrained array.
3951 2018-09-10 Xavier Roirand <roirand@adacore.com>
3953 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
3954 (ada_check_typedef): Use it.
3956 2018-09-10 Xavier Roirand <roirand@adacore.com>
3958 * ada-varobj.c (ada_varobj_describe_struct_child)
3959 (ada_varobj_describe_child): Handle union case like struct one.
3961 2018-09-10 Tom Tromey <tom@tromey.com>
3964 * python/python.c (_initialize_python): Make example in "python"
3965 help work in Python 3.
3967 2018-09-10 Eli Zaretskii <eliz@gnu.org>
3969 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
3970 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
3971 $(EXEEXT) to the script, as it is not a program.
3973 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
3975 * python/py-prettyprint.c (pretty_print_one_value): Return
3977 (print_string_repr): Adjust.
3978 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
3979 * python/python-internal.h (apply_varobj_pretty_printer): Return
3981 * varobj.c (varobj_value_get_print_value): Adjust.
3983 2018-09-08 Tom Tromey <tom@tromey.com>
3986 * python/py-prettyprint.c (pretty_print_one_value): Check for
3989 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3991 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
3992 replace_operator_with_call.
3994 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3996 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
3998 2018-09-08 Joel Brobecker <brobecker@adacore.com>
4000 * ada-typeprint.c (print_range): Print the bounds using TYPE
4001 rather than its TYPE_TARGET_TYPE.
4003 2018-09-08 Joel Brobecker <brobecker@adacore.com>
4005 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
4006 call to ada_to_fixed_value_create.
4008 2018-09-08 Jerome Guitton <guitton@adacore.com>
4010 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
4012 2018-09-08 Joel Brobecker <brobecker@adacore.com>
4014 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
4017 2018-09-08 Joel Brobecker <brobecker@adacore.com>
4019 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
4020 Move update of loop variable "fi".
4022 2018-09-08 Joel Brobecker <brobecker@adacore.com>
4024 * ada-lang.c (value_assign_to_component): In the case of
4025 big-endian targets, extract the bits of the given VAL
4026 using an src_offset of zero if container is not a scalar.
4028 2018-09-06 Simon Ser <contact@emersion.fr>
4031 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
4032 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
4033 * fbsd-tdep.c (fbsd_make_note_desc): New.
4034 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
4035 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
4036 * target.h (enum target_object) Add FreeBSD-specific
4037 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
4039 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
4041 * compile/compile-c.h (generate_c_for_variable_locations):
4042 Change reference to pointer.
4043 * compile/compile-c-support.c (compile_program) <compute>:
4045 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
4046 (generate_c_for_for_one_variable): Likewise
4047 (generate_c_for_variable_locations): Likewise
4048 * compile/compile-c-types.c (compile_c_instance::convert_type):
4050 * compile/compile-cplus-symbols.c (convert_one_symbol):
4051 std::move the scope passed to enter_scope.
4052 * compile/compile-cplus-types.c
4053 (compile_cplus_instance::enter_scope): Make parameter
4055 (compile_cplus_instance::new_scope): Change reference to
4057 (compile_cplus_instance::convert_type): Likewise
4058 (compile_cplus_convert_typedef): std::move the scope passed to
4060 (compile_cplus_convert_struct_or_union): Likewise.
4061 (compile_cplus_convert_enum): Likewise.
4062 (compile_cplus_convert_namespace): Likewise.
4063 * compile/compile-cplus.h (compile_cplus_instance)
4064 <enter_scope>: Make parameter rvalue-reference.
4065 * compile/compile-internal.h (compile_instance)
4066 <get_cached_type>: Likewise
4067 * compile/compile-loc2c.c (push): Likewise
4071 (print_label): Likewise
4072 (pushf_register_address): Likewise
4073 (pushf_register): Likewise
4074 (do_compile_dwarf_expr_to_c): Likewise
4075 (compile_dwarf_expr_to_c): Likewise
4076 (compile_dwarf_bounds_to_c): Likewise
4077 * compile/compile.c (compile_instance::get_cached_type):
4079 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
4080 (compile_dwarf_bounds_to_c): Likewise
4081 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
4082 (dwarf2_compile_property_to_c): Likewise
4083 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
4084 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4087 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
4089 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
4090 * tui/tui-data.c (init_content_element): Don't initialize it.
4092 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
4094 * tui/tui-data.h (struct tui_win_info)
4095 <detail::opaque>: Remove.
4096 * tui/tui-data.c (init_win_info): Remove assignment.
4098 2018-09-05 Tom Tromey <tom@tromey.com>
4100 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
4101 -Wformat-nonliteral.
4102 * target-float.c (host_float_ops<T>::to_string)
4103 (host_float_ops<T>::from_string): Use
4104 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
4105 * configure: Rebuild.
4107 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
4109 * printcmd.c (printf_c_string): Use
4110 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
4111 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
4113 2018-09-05 Tom Tromey <tom@tromey.com>
4115 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
4117 2018-09-05 Tom de Vries <tdevries@suse.de>
4119 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
4120 with resolve_abstract_p == true.
4121 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
4122 defaulting to false. Propagate resolve_abstract_p to
4123 dwarf2_fetch_die_loc_sect_off.
4124 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
4125 parameter, defaulting to false.
4126 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
4127 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
4129 * dwarf2read.h (struct die_info): Forward-declare.
4130 (die_info_ptr): New typedef.
4131 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
4133 2018-09-05 Joel Brobecker <brobecker@adacore.com>
4137 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
4138 Pedro Alves <palves@redhat.com>
4140 * gnulib/Makefile.in (aclocal_m4_deps): Move to
4141 "aclocal-m4-deps.mk". Include file here.
4142 $(srcdir)/aclocal.m4: Add "configure.ac".
4143 * gnulib/aclocal-m4-deps.mk: New file.
4144 * gnulib/update-gnulib.sh: Automatically update
4145 "aclocal-m4-deps.mk".
4147 2018-09-04 Tom Tromey <tom@tromey.com>
4149 * configure: Rebuild.
4150 * configure.ac: Remove multi-ice code.
4152 2018-09-04 Tom Tromey <tom@tromey.com>
4154 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
4155 (ada-exp.o): Update.
4157 2018-09-04 Tom Tromey <tom@tromey.com>
4159 * Makefile.in (printcmd.o, target-float.o): Remove.
4160 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
4162 2018-09-04 Tom Tromey <tom@tromey.com>
4164 * gnulib/Makefile.in: Remove obsolete comment.
4165 * Makefile.in: Remove obsolete comment.
4167 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4169 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
4172 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4174 * riscv-tdep.c: Add 'prologue-value.h' include.
4175 (struct riscv_unwind_cache): New struct.
4176 (riscv_debug_unwinder): New global.
4177 (riscv_scan_prologue): Update arguments, capture register details
4179 (riscv_skip_prologue): Reformat arguments line, move end of
4180 prologue calculation into riscv_scan_prologue.
4181 (riscv_frame_cache): Update return type, create
4182 riscv_unwind_cache, scan the prologue, and fill in remaining cache
4184 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
4185 (riscv_frame_prev_register): Use the trad_frame within the
4187 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
4190 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4192 * trad-frame.h (trad_frame_set_realreg): Declare.
4193 (trad_frame_set_addr): Declare.
4194 * trad-frame.c (trad_frame_set_realreg): Define new function.
4195 (trad_frame_set_addr): Define new function.
4196 (trad_frame_set_reg_realreg): Use new function.
4197 (trad_frame_set_reg_addr): Use new function.
4199 2018-09-01 Keith Seitz <keiths@redhat.com>
4201 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
4202 pulongest instead of "%lld".
4203 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
4206 2018-08-31 Tom Tromey <tom@tromey.com>
4208 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
4211 2018-08-31 Pedro Alves <palves@redhat.com>
4213 * gdbarch.h: Regenerate.
4215 2018-08-31 Pedro Alves <palves@redhat.com>
4217 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
4218 * target.h (Hardware watchpoint interfaces): Describe
4219 continuable/steppable/non-steppable watchpoints.
4220 * gdbarch.h, gdbarch.c: Regenerate.
4222 2018-08-31 Pedro Alves <palves@redhat.com>
4224 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
4227 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
4228 * target.h (target_ops::have_continuable_watchpoint): Delete.
4229 (target_have_continuable_watchpoint): Delete.
4230 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
4231 * target-delegates.c: Regenerate.
4233 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4235 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
4236 the files present in "gnulib/import/m4/".
4238 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
4240 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
4241 c.sw, c.swsp, and c.sdsp.
4243 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
4245 * riscv-tdep.c (struct riscv_inferior_data): Delete.
4246 (riscv_read_misa_reg): Don't cache value read into inferior data.
4247 (riscv_new_inferior_data): Delete.
4248 (riscv_inferior_data_cleanup): Delete.
4249 (riscv_inferior_data): Delete.
4250 (riscv_invalidate_inferior_data): Delete.
4251 (_initialize_riscv_tdep): Remove initialisation of inferior data.
4253 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
4255 * compile/compile-cplus-types.c
4256 (compile_cplus_instance::leave_scope): Take the address of scope
4258 (compile_cplus_instance::convert_qualified_base): Compare quals
4261 2018-08-30 Keith Seitz <keiths@redhat.com>
4263 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
4264 Use "%s" and host_address_to_string instead of "%p" in printf.
4266 2018-08-29 Keith Seitz <keiths@redhat.com>
4268 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
4269 and compile-cplus-types.c.
4270 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
4271 * c-lang.c (cplus_language_defn): Set C++ compile functions.
4272 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
4274 * compile/compile-c-support.c: Include compile-cplus.h.
4275 (load_libcompile): Templatize.
4276 (get_compile_context): "New" function.
4277 (c_get_compile_context): Use get_compile_context.
4278 (cplus_get_compile_context): New function.
4279 (cplus_push_user_expression, cplus_pop_user_expression)
4280 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
4281 (cplus_compute_program): Define new structs/functions.
4282 * compile/compile-cplus-symmbols.c: New file.
4283 * compile/compile-cplus-types.c: New file.
4284 * compile/compile-cplus.h: New file.
4285 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
4287 * compile/compile-object-load.c (get_out_value_type): Use
4288 strncmp_iw when comparing symbol names.
4289 (compile_object_load): Add mst_bss and mst_data.
4290 * compile/compile.c (_initialize_compile): Remove
4291 -Wno-implicit-function-declaration from `compile_args'.
4292 * compile/gcc-cp-plugin.h: New file.
4293 * NEWS: Mention C++ compile support and new debug options.
4295 2018-08-29 Keith Seitz <keiths@redhat.com>
4297 * linespec.c (collect_info::add_symbol): Make virtual.
4298 (struct symbol_searcher_collect_info): New struct.
4299 (symbol_searcher::find_all_symbols): New method.
4300 * symtab.h (class symbol_searcher): New class.
4302 2018-08-29 Keith Seitz <keiths@redhat.com>
4304 * linespec.c (struct linespec) <function_symbols, label_symbols>:
4305 Change to vector of block_symbol. Update all users.
4306 (struct collect_info) <symbols>: Likewise.
4307 (collect_info::add_symbol): Take block_symbol as argument.
4309 (decode_compound_collector) <m_symbols>: Change type to vector
4310 of block_symbol. Update all users.
4311 (decode_compound_collector::operator ()): Change parameter type
4313 (find_method, find_function_symbols, find_linespec_symbols)
4314 (find_label_symbols_in_block, find_label_symbols): Change symbol
4315 vectors to block_symbol vectors.
4316 * symtab.h (symbol_found_callback_ftype): Change parameter type to
4319 2018-08-29 Keith Seitz <keiths@redhat.com>
4321 * linespec.c (symbolp): Remove typedef and VEC definitions.
4322 (bound_minimal_symbol_d): Likewise.
4324 2018-08-29 Keith Seitz <keiths@redhat.com>
4326 * linespec.c (decode_compound_collector::decode_compound_collector):
4327 Remove initialization for `m_symtabs'.
4328 (decode_compound_collector::release_symbols): Change return type
4329 to std::vector. Update all callers.
4330 (class decode_compound_collector) <m_symbols>: Change type to
4332 (lookup_prefix_sym): Change return type to std::vector. Update all
4334 (compare_symbols): Remove.
4335 (std_compare_symbols): Rename to `compare_symbols'.
4336 (find_method): Change `sym_classes' parameter to std::vector.
4337 Update all callers. Use std::sort to sort sym_classes.
4338 (find_linespec_symbols): Remove cleanup.
4340 2018-08-29 Keith Seitz <keiths@redhat.com>
4342 * linespec.c (struct linespec) <minimal_symbols>: Change type to
4343 std::vector. Update all users.
4344 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
4345 (struct collect_info) <minimal_symbols>: Likewise.
4346 (compare_msymbols): Return bool. Change parameters to const
4347 bound_minimal_symbol references.
4348 (find_method, find_function_symbols, find_linespec_symbols): Change
4349 `minsyms' parameter to std::vector. Update all callers.
4351 2018-08-29 Keith Seitz <keiths@redhat.com>
4353 * linespec.c (struct linespec) <label_symbols>: Change type to
4354 std::vector. Update all users.
4355 (find_label_symbols_in_block): Change `result' parameter to
4356 std::vector. Update all callers.
4357 (find_label_symbols): Return std::vector. Update all callers.
4359 2018-08-29 Keith Seitz <keiths@redhat.com>
4361 * linespec.c (struct linespec) <function_symbols>: Change type to
4362 std::vector. Update all users.
4363 (struct collect_info) <function_symbols>: Likewise.
4364 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
4365 (std_compare_symbols): New function.
4366 (find_method, find_function_symbols, find_linespec_symbols)
4367 (find_label_symbols_in_block): Change `symbols' parameter to
4368 std::vector. Update all callers.
4369 (find_label_symbols): Likewise for `function_symbols' and
4372 2018-08-29 Keith Seitz <keiths@redhat.com>
4374 * linespec.c (symtab_vector_up): Define.
4375 (struct linespec) <file_symtabs>: Change type to std::vector *.
4377 (struct collect_info) <file_symtabs>: Likewise.
4378 (collect_symtabs_from_filename): Return symtab_vector_up.
4380 (decode_objc): Remove cleanup.
4381 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
4382 (symtab_collector::release_symtabs): Return symtab_vector_up.
4384 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
4386 (collect_symtabs_from_filename, symtabs_from_filename): Return
4387 symtab_vector_up. Update all callers.
4389 2018-08-29 Tom Tromey <tom@tromey.com>
4391 * csky-tdep.c (csky_analyze_prologue): Use
4392 core_addr_to_string_nz.
4394 2018-08-29 Tom Tromey <tom@tromey.com>
4396 * windows-nat.c (struct xlate_exception) <them>: Change type to
4398 (xlate): Fix formatting. Remove last entry.
4399 (struct xlate_exception, xlate): Comment out.
4400 (windows_nat_target::resume): Use ranged for.
4402 2018-08-29 Jim Wilson <jimw@sifive.com>
4404 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
4405 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
4407 (riscv_linux_nat_target::store_registers): Likewise.
4409 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
4413 * gnulib/aclocal.m4: Regenerate.
4414 * gnulib/config.in: Regenerate.
4415 * gnulib/configure: Regenerate.
4416 * gnulib/import/Makefile.am: Update.
4417 * gnulib/import/Makefile.in: Update.
4418 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
4419 * gnulib/import/_Noreturn.h: ... this.
4420 * gnulib/import/alloca.in.h: Update.
4421 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
4422 * gnulib/import/arg-nonnull.h: ... this.
4423 * gnulib/import/assure.h: Update.
4424 * gnulib/import/at-func.c: Update.
4425 * gnulib/import/basename-lgpl.c: Update.
4426 * gnulib/import/extra/snippet/c++defs.h: Rename to...
4427 * gnulib/import/c++defs.h: ... this.
4428 * gnulib/import/canonicalize-lgpl.c: Update.
4429 * gnulib/import/cdefs.h: Update.
4430 * gnulib/import/chdir-long.c: Update.
4431 * gnulib/import/chdir-long.h: Update.
4432 * gnulib/import/cloexec.c: Update.
4433 * gnulib/import/cloexec.h: Update.
4434 * gnulib/import/close.c: Update.
4435 * gnulib/import/closedir.c: Update.
4436 * gnulib/import/config.charset: Update.
4437 * gnulib/import/dirent-private.h: Update.
4438 * gnulib/import/dirent.in.h: Update.
4439 * gnulib/import/dirfd.c: Update.
4440 * gnulib/import/dirname-lgpl.c: Update.
4441 * gnulib/import/dirname.h: Update.
4442 * gnulib/import/dosname.h: Update.
4443 * gnulib/import/dup-safer-flag.c: Update.
4444 * gnulib/import/dup-safer.c: Update.
4445 * gnulib/import/dup.c: Update.
4446 * gnulib/import/dup2.c: Update.
4447 * gnulib/import/errno.in.h: Update.
4448 * gnulib/import/error.c: Update.
4449 * gnulib/import/error.h: Update.
4450 * gnulib/import/exitfail.c: Update.
4451 * gnulib/import/exitfail.h: Update.
4452 * gnulib/import/extra/update-copyright: Update.
4453 * gnulib/import/fchdir.c: Update.
4454 * gnulib/import/fcntl.c: Update.
4455 * gnulib/import/fcntl.in.h: Update.
4456 * gnulib/import/fd-hook.c: Update.
4457 * gnulib/import/fd-hook.h: Update.
4458 * gnulib/import/fd-safer-flag.c: Update.
4459 * gnulib/import/fd-safer.c: Update.
4460 * gnulib/import/fdopendir.c: Update.
4461 * gnulib/import/filename.h: Update.
4462 * gnulib/import/filenamecat-lgpl.c: Update.
4463 * gnulib/import/filenamecat.h: Update.
4464 * gnulib/import/flexmember.h: Update.
4465 * gnulib/import/float+.h: Update.
4466 * gnulib/import/float.c: Update.
4467 * gnulib/import/float.in.h: Update.
4468 * gnulib/import/fnmatch.c: Update.
4469 * gnulib/import/fnmatch.in.h: Update.
4470 * gnulib/import/fnmatch_loop.c: Update.
4471 * gnulib/import/fpucw.h: Update.
4472 * gnulib/import/frexp.c: Update.
4473 * gnulib/import/frexpl.c: Update.
4474 * gnulib/import/fstat.c: Update.
4475 * gnulib/import/fstatat.c: Update.
4476 * gnulib/import/getcwd-lgpl.c: Update.
4477 * gnulib/import/getcwd.c: Update.
4478 * gnulib/import/getdtablesize.c: Update.
4479 * gnulib/import/getlogin_r.c: Update.
4480 * gnulib/import/getprogname.c: Update.
4481 * gnulib/import/getprogname.h: Update.
4482 * gnulib/import/gettext.h: Update.
4483 * gnulib/import/gettimeofday.c: Update.
4484 * gnulib/import/glob-libc.h: Update.
4485 * gnulib/import/glob.c: Update.
4486 * gnulib/import/glob.in.h: Update.
4487 * gnulib/import/glob_internal.h: Update.
4488 * gnulib/import/glob_pattern_p.c: Update.
4489 * gnulib/import/globfree.c: Update.
4490 * gnulib/import/hard-locale.c: Update.
4491 * gnulib/import/hard-locale.h: Update.
4492 * gnulib/import/intprops.h: Update.
4493 * gnulib/import/inttypes.in.h: Update.
4494 * gnulib/import/isnan.c: Update.
4495 * gnulib/import/isnand-nolibm.h: Update.
4496 * gnulib/import/isnand.c: Update.
4497 * gnulib/import/isnanl-nolibm.h: Update.
4498 * gnulib/import/isnanl.c: Update.
4499 * gnulib/import/itold.c: Update.
4500 * gnulib/import/libc-config.h: Update.
4501 * gnulib/import/limits.in.h: Update.
4502 * gnulib/import/localcharset.c: Update.
4503 * gnulib/import/localcharset.h: Update.
4504 * gnulib/import/localtime-buffer.c: Update.
4505 * gnulib/import/localtime-buffer.h: Update.
4506 * gnulib/import/lstat.c: Update.
4507 * gnulib/import/m4/00gnulib.m4: Update.
4508 * gnulib/import/m4/__inline.m4: Update.
4509 * gnulib/import/m4/absolute-header.m4: Update.
4510 * gnulib/import/m4/alloca.m4: Update.
4511 * gnulib/import/m4/builtin-expect.m4: Update.
4512 * gnulib/import/m4/canonicalize.m4: Update.
4513 * gnulib/import/m4/chdir-long.m4: Update.
4514 * gnulib/import/m4/close.m4: Update.
4515 * gnulib/import/m4/closedir.m4: Update.
4516 * gnulib/import/m4/configmake.m4: Update.
4517 * gnulib/import/m4/d-ino.m4: Update.
4518 * gnulib/import/m4/d-type.m4: Update.
4519 * gnulib/import/m4/dirent_h.m4: Update.
4520 * gnulib/import/m4/dirfd.m4: Update.
4521 * gnulib/import/m4/dirname.m4: Update.
4522 * gnulib/import/m4/double-slash-root.m4: Update.
4523 * gnulib/import/m4/dup.m4: Update.
4524 * gnulib/import/m4/dup2.m4: Update.
4525 * gnulib/import/m4/eealloc.m4: Update.
4526 * gnulib/import/m4/environ.m4: Update.
4527 * gnulib/import/m4/errno_h.m4: Update.
4528 * gnulib/import/m4/error.m4: Update.
4529 * gnulib/import/m4/exponentd.m4: Update.
4530 * gnulib/import/m4/exponentl.m4: Update.
4531 * gnulib/import/m4/extensions.m4: Update.
4532 * gnulib/import/m4/extern-inline.m4: Update.
4533 * gnulib/import/m4/fchdir.m4: Update.
4534 * gnulib/import/m4/fcntl-o.m4: Update.
4535 * gnulib/import/m4/fcntl.m4: Update.
4536 * gnulib/import/m4/fcntl_h.m4: Update.
4537 * gnulib/import/m4/fdopendir.m4: Update.
4538 * gnulib/import/m4/filenamecat.m4: Update.
4539 * gnulib/import/m4/flexmember.m4: Update.
4540 * gnulib/import/m4/float_h.m4: Update.
4541 * gnulib/import/m4/fnmatch.m4: Update.
4542 * gnulib/import/m4/fnmatch_h.m4: Update.
4543 * gnulib/import/m4/fpieee.m4: Update.
4544 * gnulib/import/m4/frexp.m4: Update.
4545 * gnulib/import/m4/frexpl.m4: Update.
4546 * gnulib/import/m4/fstat.m4: Update.
4547 * gnulib/import/m4/fstatat.m4: Update.
4548 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
4549 * gnulib/import/m4/getcwd-path-max.m4: Update.
4550 * gnulib/import/m4/getcwd.m4: Update.
4551 * gnulib/import/m4/getdtablesize.m4: Update.
4552 * gnulib/import/m4/getlogin.m4: Update.
4553 * gnulib/import/m4/getlogin_r.m4: Update.
4554 * gnulib/import/m4/getpagesize.m4: Update.
4555 * gnulib/import/m4/getprogname.m4: Update.
4556 * gnulib/import/m4/gettimeofday.m4: Update.
4557 * gnulib/import/m4/glibc21.m4: Update.
4558 * gnulib/import/m4/glob.m4: Update.
4559 * gnulib/import/m4/glob_h.m4: Update.
4560 * gnulib/import/m4/gnulib-cache.m4: Update.
4561 * gnulib/import/m4/gnulib-common.m4: Update.
4562 * gnulib/import/m4/gnulib-comp.m4: Update.
4563 * gnulib/import/m4/gnulib-tool.m4: Update.
4564 * gnulib/import/m4/hard-locale.m4: Update.
4565 * gnulib/import/m4/include_next.m4: Update.
4566 * gnulib/import/m4/inttypes-pri.m4: Update.
4567 * gnulib/import/m4/inttypes.m4: Update.
4568 * gnulib/import/m4/isnand.m4: Update.
4569 * gnulib/import/m4/isnanl.m4: Update.
4570 * gnulib/import/m4/largefile.m4: Update.
4571 * gnulib/import/m4/limits-h.m4: Update.
4572 * gnulib/import/m4/localcharset.m4: Update.
4573 * gnulib/import/m4/locale-fr.m4: Update.
4574 * gnulib/import/m4/locale-ja.m4: Update.
4575 * gnulib/import/m4/locale-zh.m4: Update.
4576 * gnulib/import/m4/localtime-buffer.m4: Update.
4577 * gnulib/import/m4/longlong.m4: Update.
4578 * gnulib/import/m4/lstat.m4: Update.
4579 * gnulib/import/m4/malloc.m4: Update.
4580 * gnulib/import/m4/malloca.m4: Update.
4581 * gnulib/import/m4/math_h.m4: Update.
4582 * gnulib/import/m4/mbrtowc.m4: Update.
4583 * gnulib/import/m4/mbsinit.m4: Update.
4584 * gnulib/import/m4/mbsrtowcs.m4: Update.
4585 * gnulib/import/m4/mbstate_t.m4: Update.
4586 * gnulib/import/m4/memchr.m4: Update.
4587 * gnulib/import/m4/memmem.m4: Update.
4588 * gnulib/import/m4/mempcpy.m4: Update.
4589 * gnulib/import/m4/memrchr.m4: Update.
4590 * gnulib/import/m4/mkdir.m4: Update.
4591 * gnulib/import/m4/mkstemp.m4: Update.
4592 * gnulib/import/m4/mmap-anon.m4: Update.
4593 * gnulib/import/m4/mode_t.m4: Update.
4594 * gnulib/import/m4/msvc-inval.m4: Update.
4595 * gnulib/import/m4/msvc-nothrow.m4: Update.
4596 * gnulib/import/m4/multiarch.m4: Update.
4597 * gnulib/import/m4/nocrash.m4: Update.
4598 * gnulib/import/m4/off_t.m4: Update.
4599 * gnulib/import/m4/onceonly.m4: Update.
4600 * gnulib/import/m4/open-cloexec.m4: Update.
4601 * gnulib/import/m4/open.m4: Update.
4602 * gnulib/import/m4/openat.m4: Update.
4603 * gnulib/import/m4/opendir.m4: Update.
4604 * gnulib/import/m4/pathmax.m4: Update.
4605 * gnulib/import/m4/rawmemchr.m4: Update.
4606 * gnulib/import/m4/readdir.m4: Update.
4607 * gnulib/import/m4/readlink.m4: Update.
4608 * gnulib/import/m4/realloc.m4: Update.
4609 * gnulib/import/m4/rename.m4: Update.
4610 * gnulib/import/m4/rewinddir.m4: Update.
4611 * gnulib/import/m4/rmdir.m4: Update.
4612 * gnulib/import/m4/save-cwd.m4: Update.
4613 * gnulib/import/m4/secure_getenv.m4: Update.
4614 * gnulib/import/m4/setenv.m4: Update.
4615 * gnulib/import/m4/signal_h.m4: Update.
4616 * gnulib/import/m4/ssize_t.m4: Update.
4617 * gnulib/import/m4/stat-time.m4: Update.
4618 * gnulib/import/m4/stat.m4: Update.
4619 * gnulib/import/m4/std-gnu11.m4: Update.
4620 * gnulib/import/m4/stdbool.m4: Update.
4621 * gnulib/import/m4/stddef_h.m4: Update.
4622 * gnulib/import/m4/stdint.m4: Update.
4623 * gnulib/import/m4/stdio_h.m4: Update.
4624 * gnulib/import/m4/stdlib_h.m4: Update.
4625 * gnulib/import/m4/strchrnul.m4: Update.
4626 * gnulib/import/m4/strdup.m4: Update.
4627 * gnulib/import/m4/strerror.m4: Update.
4628 * gnulib/import/m4/string_h.m4: Update.
4629 * gnulib/import/m4/strstr.m4: Update.
4630 * gnulib/import/m4/strtok_r.m4: Update.
4631 * gnulib/import/m4/sys_socket_h.m4: Update.
4632 * gnulib/import/m4/sys_stat_h.m4: Update.
4633 * gnulib/import/m4/sys_time_h.m4: Update.
4634 * gnulib/import/m4/sys_types_h.m4: Update.
4635 * gnulib/import/m4/tempname.m4: Update.
4636 * gnulib/import/m4/time_h.m4: Update.
4637 * gnulib/import/m4/unistd-safer.m4: Update.
4638 * gnulib/import/m4/unistd_h.m4: Update.
4639 * gnulib/import/m4/warn-on-use.m4: Update.
4640 * gnulib/import/m4/wchar_h.m4: Update.
4641 * gnulib/import/m4/wchar_t.m4: Update.
4642 * gnulib/import/m4/wctype_h.m4: Update.
4643 * gnulib/import/m4/wint_t.m4: Update.
4644 * gnulib/import/malloc.c: Update.
4645 * gnulib/import/malloc/scratch_buffer.h: Update.
4646 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
4647 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
4648 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
4649 * gnulib/import/malloca.c: Update.
4650 * gnulib/import/malloca.h: Update.
4651 * gnulib/import/malloca.valgrind: Update.
4652 * gnulib/import/math.in.h: Update.
4653 * gnulib/import/mbrtowc.c: Update.
4654 * gnulib/import/mbsinit.c: Update.
4655 * gnulib/import/mbsrtowcs-impl.h: Update.
4656 * gnulib/import/mbsrtowcs-state.c: Update.
4657 * gnulib/import/mbsrtowcs.c: Update.
4658 * gnulib/import/memchr.c: Update.
4659 * gnulib/import/memmem.c: Update.
4660 * gnulib/import/mempcpy.c: Update.
4661 * gnulib/import/memrchr.c: Update.
4662 * gnulib/import/mkdir.c: Update.
4663 * gnulib/import/mkstemp.c: Update.
4664 * gnulib/import/msvc-inval.c: Update.
4665 * gnulib/import/msvc-inval.h: Update.
4666 * gnulib/import/msvc-nothrow.c: Update.
4667 * gnulib/import/msvc-nothrow.h: Update.
4668 * gnulib/import/open.c: Update.
4669 * gnulib/import/openat-die.c: Update.
4670 * gnulib/import/openat-priv.h: Update.
4671 * gnulib/import/openat-proc.c: Update.
4672 * gnulib/import/openat.c: Update.
4673 * gnulib/import/openat.h: Update.
4674 * gnulib/import/opendir.c: Update.
4675 * gnulib/import/pathmax.h: Update.
4676 * gnulib/import/pipe-safer.c: Update.
4677 * gnulib/import/rawmemchr.c: Update.
4678 * gnulib/import/readdir.c: Update.
4679 * gnulib/import/readlink.c: Update.
4680 * gnulib/import/realloc.c: Update.
4681 * gnulib/import/ref-add.sin: Update.
4682 * gnulib/import/ref-del.sin: Update.
4683 * gnulib/import/rename.c: Update.
4684 * gnulib/import/rewinddir.c: Update.
4685 * gnulib/import/rmdir.c: Update.
4686 * gnulib/import/same-inode.h: Update.
4687 * gnulib/import/save-cwd.c: Update.
4688 * gnulib/import/save-cwd.h: Update.
4689 * gnulib/import/scratch_buffer.h: Update.
4690 * gnulib/import/secure_getenv.c: Update.
4691 * gnulib/import/setenv.c: Update.
4692 * gnulib/import/signal.in.h: Update.
4693 * gnulib/import/stat-time.c: Update.
4694 * gnulib/import/stat-time.h: Update.
4695 * gnulib/import/stat-w32.c: Update.
4696 * gnulib/import/stat-w32.h: Update.
4697 * gnulib/import/stat.c: Update.
4698 * gnulib/import/stdbool.in.h: Update.
4699 * gnulib/import/stddef.in.h: Update.
4700 * gnulib/import/stdint.in.h: Update.
4701 * gnulib/import/stdio.in.h: Update.
4702 * gnulib/import/stdlib.in.h: Update.
4703 * gnulib/import/str-two-way.h: Update.
4704 * gnulib/import/strchrnul.c: Update.
4705 * gnulib/import/strdup.c: Update.
4706 * gnulib/import/streq.h: Update.
4707 * gnulib/import/strerror-override.c: Update.
4708 * gnulib/import/strerror-override.h: Update.
4709 * gnulib/import/strerror.c: Update.
4710 * gnulib/import/string.in.h: Update.
4711 * gnulib/import/stripslash.c: Update.
4712 * gnulib/import/strnlen1.c: Update.
4713 * gnulib/import/strnlen1.h: Update.
4714 * gnulib/import/strstr.c: Update.
4715 * gnulib/import/strtok_r.c: Update.
4716 * gnulib/import/sys_stat.in.h: Update.
4717 * gnulib/import/sys_time.in.h: Update.
4718 * gnulib/import/sys_types.in.h: Update.
4719 * gnulib/import/tempname.c: Update.
4720 * gnulib/import/tempname.h: Update.
4721 * gnulib/import/time.in.h: Update.
4722 * gnulib/import/unistd--.h: Update.
4723 * gnulib/import/unistd-safer.h: Update.
4724 * gnulib/import/unistd.in.h: Update.
4725 * gnulib/import/unsetenv.c: Update.
4726 * gnulib/import/verify.h: Update.
4727 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4728 * gnulib/import/wchar.in.h: Update.
4729 * gnulib/import/wctype.in.h: Update.
4730 * gnulib/import/xalloc-oversized.h: Update.
4731 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4732 "53e2c179f26a890fa6685af4b6c1397ee370433b".
4734 2018-08-16 Gary Benson <gbenson@redhat.com>
4737 * gdb/main.c (captured_main_1): Exit with nonzero status
4738 in batch mode if the last command to be executed failed.
4739 * NEWS: Mention the above.
4741 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
4743 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
4744 end of warning message.
4746 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4749 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
4750 (aarch64_extract_return_value): Use
4751 aapcs_is_vfp_call_or_return_candidate.
4752 (aarch64_return_in_memory): Likewise.
4753 (aarch64_store_return_value): Likewise.
4755 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4758 (aapcs_is_vfp_call_or_return_candidate): Make static
4759 (pass_in_v_or_stack): Remove function.
4760 (pass_in_v_vfp_candidate): New function.
4761 (aarch64_push_dummy_call): Check for float register candidates.
4763 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4765 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
4766 (aapcs_is_vfp_call_or_return_candidate_1): New function.
4767 (aapcs_is_vfp_call_or_return_candidate): Likewise.
4769 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4772 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4773 (struct ipa_sym_addresses): Rename to...
4774 (struct ipa_sym_addresses_common): ... this.
4775 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4777 2018-08-28 Tom Tromey <tom@tromey.com>
4779 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4780 (token_fifo): Now a std::vector.
4781 (yylex, c_parse): Update.
4782 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4783 (token_fifo): Now a std::vector.
4784 (yylex, d_parse): Update.
4785 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4786 (token_fifo): Now a std::vector.
4787 (yylex, go_parse): Update.
4789 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
4791 * parser-defs.h (struct type_stack) <elements>: Change type to
4792 std::vector<union type_stack_elt>.
4793 <depth, size>: Remove.
4794 * parse.c (parse_exp_in_context_1): Adjust.
4795 (type_stack_reserve): Remove.
4796 (check_type_stack_depth): Remove.
4797 (insert_into_type_stack): Adjust to std::vector.
4798 (insert_type): Likewise.
4799 (push_type): Likewise.
4800 (push_type_int): Likewise.
4801 (insert_type_address_space): Likewise.
4802 (pop_type): Likewise.
4803 (pop_type_int): Likewise.
4804 (pop_typelist): Likewise.
4805 (pop_type_stack): Likewise.
4806 (append_type_stack): Likewise.
4807 (push_type_stack): Likewise.
4808 (get_type_stack): Likewise.
4809 (type_stack_cleanup): Likewise.
4810 (push_typelist): Likewise.
4811 (follow_types): Likewise.
4812 (_initialize_parse): Likewise.
4814 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
4816 * NEWS: Mention csky target.
4818 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
4819 Hafiz Abid Qadeer <abidh@codesourcery.com>
4820 Don Breazeal <donb@codesourcery.com>
4822 * csky-linux-tdep.c: New file.
4823 * csky-tdep.c: Likewise.
4824 * csky-tdep.h: Likewise.
4825 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
4827 (HFILES_NO_SRCDIR): Add csky-tdep.h.
4828 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
4829 * configure.tgt: Add csky support.
4831 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
4833 * python/py-framefilter.c (py_print_frame): Print frame architecture
4834 when printing on an MI output.
4836 2018-08-27 Tom Tromey <tom@tromey.com>
4839 * configure: Rebuild.
4840 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
4842 2018-08-27 Tom Tromey <tom@tromey.com>
4844 * aarch64-linux-tdep.c
4845 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
4848 2018-08-27 Tom Tromey <tom@tromey.com>
4850 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
4852 (ppc64_standard_linkage1, ppc64_standard_linkage2)
4853 (ppc64_standard_linkage3, ppc64_standard_linkage4)
4854 (ppc64_standard_linkage5, ppc64_standard_linkage6)
4855 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
4858 2018-08-27 Tom Tromey <tom@tromey.com>
4860 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
4861 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
4863 2018-08-27 Tom Tromey <tom@tromey.com>
4865 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
4866 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
4868 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
4870 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
4872 * sparc-linux-tdep.c (sparc32_linux_sigframe)
4873 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
4874 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
4876 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
4877 (ppc64_linux_sigaction_tramp_frame)
4878 (ppc32_linux_sighandler_tramp_frame)
4879 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4880 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
4881 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
4882 * mn10300-linux-tdep.c (am33_linux_sigframe)
4883 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
4884 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
4885 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4886 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4887 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
4888 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
4889 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
4890 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
4891 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
4892 * microblaze-linux-tdep.c
4893 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4894 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
4895 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
4896 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
4897 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
4898 * common/common-types.h (ULONGEST_MAX): New define.
4899 (CORE_ADDR_MAX): Fix formatting.
4900 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
4901 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
4902 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
4903 (arm_linux_rt_sigreturn_tramp_frame)
4904 (arm_eabi_linux_sigreturn_tramp_frame)
4905 (arm_eabi_linux_rt_sigreturn_tramp_frame)
4906 (thumb2_eabi_linux_sigreturn_tramp_frame)
4907 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
4908 (arm_linux_restart_syscall_tramp_frame)
4909 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
4910 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
4911 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
4913 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
4915 2018-08-27 Tom Tromey <tom@tromey.com>
4917 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
4919 * mips-tdep.c (mips_deal_with_atomic_sequence)
4920 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
4921 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
4922 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
4923 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
4925 * aarch64-tdep.c (aarch64_software_single_step): Use
4928 2018-08-27 Tom Tromey <tom@tromey.com>
4930 * linespec.c (complete_linespec_component): Add cast to "char".
4931 * completer.c (completion_tracker::build_completion_result): Add
4934 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4936 * solist.h (struct solist, struct target_so_ops): Fix
4939 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4941 * ada-tasks.c (ada_task_info_s): Remove typedef.
4942 (DEF_VEC_O(ada_task_info_s)): Remove.
4943 (struct ada_tasks_inferior_data): Initialize fields.
4944 <task_list>: Make an std::vector.
4945 (get_ada_tasks_inferior_data): Allocate with new.
4946 (ada_get_task_number): Adjust.
4947 (get_task_number_from_id): Likewise.
4948 (valid_task_id): Likewise.
4949 (ada_get_task_info_from_ptid): Likewise.
4950 (iterate_over_live_ada_tasks): Likewise.
4951 (add_ada_task): Likewise.
4952 (read_known_tasks): Likewise.
4953 (ada_build_task_list): Likewise.
4954 (print_ada_task_info): Likewise.
4955 (info_task): Likewise.
4956 (task_command_1): Likewise.
4958 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4960 * ada-lang.c (add_angle_brackets): Return std::string.
4962 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
4964 * python/py-threadevent.c (py_get_event_thread): Initialize
4967 2018-08-24 Pedro Alves <palves@redhat.com>
4969 * python/py-bpevent.c (create_breakpoint_event_object): Use
4970 copy-initialization.
4971 * python/py-continueevent.c (emit_continue_event): Use
4972 copy-initialization.
4973 * python/py-exitedevent.c (create_exited_event_object): Return a
4975 (emit_exited_event): Use copy-initialization.
4976 * python/py-inferior.c (python_new_inferior)
4977 (python_inferior_deleted, add_thread_object): Use
4978 copy-initialization.
4979 * python/py-infevents.c (create_inferior_call_event_object)
4980 (create_register_changed_event_object)
4981 (create_memory_changed_event_object): Return a gdbpy_ref<>.
4982 (emit_inferior_call_event, emit_memory_changed_event)
4983 (emit_register_changed_event): Use copy-initialization.
4984 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4985 Return a gdbpy_ref<>.
4986 (emit_new_objfile_event): Use copy-initialization.
4987 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
4988 (emit_clear_objfiles_event): Use copy-initialization.
4989 * python/py-signalevent.c (create_signal_event_object): Use
4990 copy-initialization.
4991 * python/py-threadevent.c (create_thread_event_object): Use
4992 copy-initialization.
4994 2018-08-24 Pedro Alves <palves@redhat.com>
4995 Simon Marchi <simon.marchi@ericsson.com>
4998 * python/py-continueevent.c: Include "gdbthread.h".
4999 (create_continue_event_object): Add intro comment. Add 'ptid'
5000 parameter. Use it to find thread to pass to
5001 create_thread_event_object.
5002 (emit_continue_event): Pass PTID down to
5003 create_continue_event_object.
5004 * python/py-event.h (py_get_event_thread): Declare.
5005 (create_thread_event_object): Remove default from 'thread'
5007 * python/py-stopevent.c (create_stop_event_object): Use
5008 py_get_event_thread.
5009 * python/py-threadevent.c (get_event_thread): Rename to ...
5010 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
5011 and use it to find the thread.
5012 (create_thread_event_object): Assert that THREAD isn't null.
5013 Don't find the event thread here.
5015 2018-08-23 Kevin Buettner <kevinb@redhat.com>
5017 * block.h (blockrange, blockranges): New struct declarations.
5018 (struct block): Add new field named `ranges'.
5019 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
5020 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
5021 macros for accessing ranges in struct block.
5022 (make_blockranges): New declaration.
5023 block.c (make_blockranges): New function.
5024 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
5026 * symtab.h (find_pc_partial_function): Add new parameter `block'.
5027 * blockframe.c (cache_pc_function_block): New static global.
5028 (clear_pc_function_cache): Clear cache_pc_function_block.
5029 (find_pc_partial_function): Move comment to symtab.h. Add
5030 support for non-contiguous blocks.
5031 * cli/cli-cmds.c (block.h): Include.
5032 (print_disassembly): Handle printing of non-contiguous blocks.
5033 (disassemble_current_function): Likewise.
5034 (disassemble_command): Likewise.
5036 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
5038 * blockframe.c (get_pc_function_start): Likewise.
5039 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
5040 (gcc_symbol_address): Likewise.
5041 * compile/compile-object-run.c (compile_object_run): Likewise.
5042 * compile/compile.c (get_expr_block_and_pc): Likewise.
5043 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
5044 (func_addr_to_tail_call_list): Likewise.
5045 * findvar.c (default_read_var_value): Likewise.
5046 * inline-frame.c (inline_frame_this_id): Likewise.
5047 (skip-inline_frames): Likewise.
5048 * infcmd.c (until_next_command): Likewise.
5049 * linespec.c (convert_linespec_to_sals): Likewise.
5050 * parse.c (parse_exp_in_context_1): Likewise.
5051 * printcmd.c (build_address_symbolic): likewise.
5052 (info_address_command): Likewise.
5053 symtab.c (find_function_start_sal): Likewise.
5054 (skip_prologue_sal): Likewise.
5055 (find_function_alias_target): Likewise.
5056 (find_gnu_ifunc): Likewise.
5057 * stack.c (find_frame_funname): Likewise.
5058 * symtab.c (fixup_symbol_section): Likewise.
5059 (find_function_start_sal): Likewise.
5060 (skip_prologue_sal): Likewsie.
5061 (find_function_alias_target): Likewise.
5062 (find_gnu_ifunc): Likewise.
5063 * tracepoint.c (info_scope_command): Likewise.
5064 * value.c (value_fn_field): Likewise.
5066 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
5067 in place of find_pc_partial_function.
5068 * blockframe.c (find_function_entry_range_from_pc): New function.
5069 * symtab.h (find_function_entry_range_from_pc): Declare and document.
5070 * objfiles.c (objfile_relocate1): Relocate start and end addresses
5071 for each range in a block.
5074 2018-08-23 Xavier Roirand <roirand@adacore.com>
5076 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
5079 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
5081 * solib-svr4.c (read_program_headers_from_bfd): Return
5082 gdb::optional<gdb::byte_vector>.
5083 (svr4_exec_displacement): Adjust.
5085 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
5087 * solib-svr4.c (read_program_header): Return
5088 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
5089 (find_program_interpreter): Return
5090 gdb::optional<gdb::byte_vector>.
5091 (scan_dyntag_auxv): Adjust.
5092 (enable_break): Adjust.
5093 (svr4_exec_displacement): Adjust.
5095 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
5097 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
5098 * inf-child.c (inf_child_target::terminal_save_inferior): New.
5100 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
5102 * guile/scm-string.c (gdbscm_scm_from_printf): Use
5104 * guile/scm-utils.c (gdbscm_printf): Likewise.
5105 * serial.c (serial_printf): Likewise.
5106 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
5108 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
5110 * stack.c (print_frame): Print frame architecture when printing on
5112 * NEWS: Mention new "arch" attribute in frame output.
5114 2018-08-21 Alan Hayward <alan.hayward@arm.com>
5116 * arch/aarch64.h (aarch64_regnum): Update comment.
5118 2018-08-21 Alan Hayward <alan.hayward@arm.com>
5120 * NEWS: Add SVE to 8.2 section.
5122 2018-08-21 Pedro Alves <palves@redhat.com>
5124 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
5125 out from gdbscm_parse_function_args.
5126 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
5127 gdbscm_parse_function_args_1.
5129 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
5132 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
5135 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
5137 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
5139 2018-08-19 Michael Spang <spang@google.com>
5142 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
5143 for PT_TLS segments.
5145 2018-08-18 Kevin Buettner <kevinb@redhat.com>
5147 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
5148 dwarf_variable_value.
5149 * dwarf2-frame.c (class dwarf_expr_executor):
5150 Add override for dwarf_variable_value.
5151 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
5152 (class symbol_needs_eval_context): Likewise.
5153 (indirect_synthetic_pointer): Add forward declaration.
5154 (sect_variable_value): New function.
5155 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
5156 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
5157 for DW_OP_GNU_variable_value.
5159 2018-08-16 Tom Tromey <tom@tromey.com>
5161 * top.c (read_command_file): Update.
5162 (command_line_input): Remove "repeat" argument.
5163 * ada-lang.c (get_selections): Update.
5164 * linespec.c (decode_line_2): Update.
5165 * defs.h (command_line_input): Remove argument.
5166 * cli/cli-script.c (read_next_line): Update.
5167 * python/py-gdb-readline.c: Update.
5169 2018-08-17 Tom Tromey <tom@tromey.com>
5171 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
5174 2018-08-15 Tom Tromey <tom@tromey.com>
5176 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
5178 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
5180 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
5181 If used, use find_pc_partial_function to find address range
5183 * mi/mi-main.c (mi_cmd_list_features): Report
5184 "data-disassemble-a-option" feature.
5185 * NEWS: Mention new -data-disassemble option -a.
5187 2018-08-13 Tom Tromey <tom@tromey.com>
5189 * common/common-defs.h (_FORTIFY_SOURCE): Define.
5191 2018-08-13 Alan Hayward <alan.hayward@arm.com>
5193 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
5194 (aarch64_linux_collect_sve_regset): Likewise.
5195 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
5196 * regcache.h (regcache_map_entry_size): New function.
5198 2018-08-13 Alan Hayward <alan.hayward@arm.com>
5200 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
5201 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
5202 (SVE_HEADER_VL_LENGTH): Likewise.
5203 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
5204 (SVE_HEADER_FLAGS_LENGTH): Likewise.
5205 (SVE_HEADER_RESERVED_LENGTH): Likewise.
5206 (SVE_HEADER_SIZE_OFFSET): Likewise.
5207 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
5208 (SVE_HEADER_VL_OFFSET): Likewise.
5209 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
5210 (SVE_HEADER_FLAGS_OFFSET): Likewise.
5211 (SVE_HEADER_RESERVED_OFFSET): Likewise.
5212 (SVE_HEADER_SIZE): Likewise.
5213 (aarch64_linux_core_read_vq): Add function.
5214 (aarch64_linux_core_read_description): Check for SVE section.
5216 2018-08-13 Alan Hayward <alan.hayward@arm.com>
5218 * aarch64-fbsd-tdep.c
5219 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
5221 * aarch64-linux-tdep.c
5222 (aarch64_linux_iterate_over_regset_sections): Likewise.
5223 * alpha-linux-tdep.c
5224 (alpha_linux_iterate_over_regset_sections):
5226 (alphanbsd_iterate_over_regset_sections): Likewise.
5228 (amd64fbsd_iterate_over_regset_sections): Likewise.
5229 * amd64-linux-tdep.c
5230 (amd64_linux_iterate_over_regset_sections): Likewise.
5232 (armbsd_iterate_over_regset_sections): Likewise.
5234 (arm_fbsd_iterate_over_regset_sections): Likewise.
5236 (arm_linux_iterate_over_regset_sections): Likewise.
5237 * corelow.c (get_core_registers_cb): Likewise.
5238 (core_target::fetch_registers): Likewise.
5239 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
5240 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
5241 * gdbarch.h (void): Regenerate.
5242 * gdbarch.sh: Add supply_size and collect_size.
5243 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
5244 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
5245 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
5246 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
5247 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
5248 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
5249 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
5250 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
5251 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
5252 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
5253 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
5254 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
5255 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
5256 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
5257 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
5259 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
5260 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
5261 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
5262 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
5263 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
5264 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
5265 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
5267 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
5268 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
5269 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
5270 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
5271 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
5272 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
5273 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
5274 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
5276 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
5278 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
5281 2018-08-10 Keith Seitz <keiths@redhat.com>
5283 * compile/compile-c-support.c (add_code_header, add_code_footer):
5284 Move into policy class.
5285 (c_push_user_expression, pop_user_expression_nop)
5286 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
5287 (compile_program): New host class.
5288 (c_compile_program): New typedef.
5289 (c_compute_porgram): Use c_compile_program.
5291 2018-08-10 Keith Seitz <keiths@redhat.com>
5293 * compile/compile-internal.h (compile_instance::~compile_instance):
5294 Remove calls to htab_delete.
5295 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
5296 * compile.c (compile_instance::compile_instance): Initialize
5297 htab unique pointers.
5298 (compile_instance::get_cached_type, compile_instance::insert_type)
5299 (compile_instance::error_symbol_once): Update for unique_ptr.
5301 2018-08-10 Keith Seitz <keiths@redhat.com>
5303 * compile/compile-c-symbols.c (struct symbol_error)
5304 (hash_symbol_error, eq_symbol_error, del_symbol_error)
5305 (compile_instance::insert_symbol_error)
5306 (compile_instance::error_symbol_once): Move to ...
5307 * compile/compile.c: ... here.
5309 2018-08-10 Keith Seitz <keiths@redhat.com>
5311 * compile/compile-c-support.c (c_get_compile_context): Use `new'
5312 instead of `new_compile_instance'.
5313 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
5315 If the symbol error map is not initialized, create it.
5316 (generate_c_for_for_one_symbol): Do not check/initialize
5317 the symbol error map.
5318 * compile/compile-c-types.c (compile_c_instance): Make a class.
5320 (compile_instance::compile_instance): Initialize the type cache.
5321 (get_cached_type): New function.
5322 (insert_type): Update description.
5323 (compile_c_instance::m_default_cflags): Define.
5324 (convert_type): Update description. Use get_cached_type.
5325 (delete_instance): Moved to destructor.
5326 (new_compile_instance): Moved to constructor.
5327 * compile/compile-c.h (compile_c_instance): Make class inheriting
5328 from compile_instance.
5329 <base>: Remove field.
5330 <type_map, symbol_err_map>: Move to base class.
5331 <c_plugin>: Rename to `m_plugin' and remove pointer type.
5332 * compile/compile-internal.h (compile_instance): Make class.
5333 <type_map_t, symbol_err_map_t>: Define.
5334 <fe>: Rename to `m_gcc_fe'.
5335 <scope, block, gcc_target_options>: Add `m_' prefix.
5336 <m_type_map, m_symbol_err_map>: New fields, moved from
5339 (convert_type, new_compile_instance): Remove.
5340 * compile/compile.c (cleanup_compile_instance): Remove.
5341 (compile_to_object): Use unique_ptr to eliminate cleanups.
5342 (compile_instance::set_print_callback, compile_instance::version)
5343 (compile_instance::set_verbose)
5344 (compile_instance::set_driver_filename)
5345 (compile_instance::set_triplet_regexp)
5346 (compile_instance::set_arguments)
5347 (compile_instance::set_source_file)
5348 (compile_instance::compile): Define.
5350 2018-08-10 Keith Seitz <keiths@redhat.com>
5352 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
5353 * compile/compile-c-types.c: Define GCC_METHODN macros and include
5354 gcc-c-fe.def to define C plugin.
5355 (delete_instance): Delete `c_plugin'.
5356 (new_compile_instance): Initialize `c_plugin'.
5357 * compile/compile-c.h: Include gcc_c_plugin.h.
5358 (struct compile_c_instance) <c_plugin>: New member.
5359 * gcc-c-plugin.h: New file.
5360 Update all callers with API change.
5362 2018-08-10 Keith Seitz <keiths@redhat.com>
5364 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
5365 (HFILES_NO_SRCDIR): ... to here.
5366 Add compile-internal.h and compile-c.h.
5367 * compile/compile-c-support.c: Include compile-c.h.
5368 * compile/compile-c-symbols.c: Include compile-c.h.
5369 (generate_c_for_variable_locations): Update comment.
5370 * compile/compile-c-types.c: Include compile-c.h.
5371 * compile/compile-c.h: New file -- moved C language declarations
5372 from other files here.
5373 * compile/compile-internal.h: Do not include hashtab.h or
5374 common/enum-flags.h.
5375 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
5376 (gcc_convert_symbol, gcc_symbol_address)
5377 (generate_c_for_variable_locations, c_get_mode_for_size)
5378 (c_get_range_decl_name): Definitions moved to compile-c.h.
5379 * compile/compile-loc2c.c: Include compile-c.h.
5381 2018-08-10 Keith Seitz <keiths@redhat.com>
5383 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
5384 (c_symbol_substitution_name): ... this.
5387 2018-08-10 Keith Seitz <keiths@redhat.com>
5389 * compile/compile-c-support.c (c_compute_program): Use
5390 unique_xmalloc_ptr to eliminate cleanup.
5391 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
5392 Return a unique_xmalloc_ptr and eliminate cleanup.
5393 * compile/compile-internal.h (generate_c_for_variable_locations):
5394 Return unique_xmalloc_ptr and update description.
5396 2018-08-10 Alan Hayward <alan.hayward@arm.com>
5398 * corelow.c (core_target::get_core_register_section): Rename
5399 min_size to section_min_size.
5401 2018-08-09 Jim Wilson <jimw@sifive.com>
5403 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
5404 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
5405 * NEWS: Mention new GNU/Linux RISC-V target.
5406 * configure.host: Add riscv*-*-linux*.
5407 * configure.nat: Add riscv*.
5408 * configure.tgt: Add riscv*-*-linux*.
5409 * riscv-linux-nat.c: New file.
5410 * riscv-linux-tdep.c: New file.
5412 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5414 * infrun.c (resume): Make static, add forward declaration.
5415 (proceed): Update header comment.
5416 * infrun.h (resume): Delete declaration.
5418 2018-08-09 Tom Tromey <tom@tromey.com>
5420 * riscv-tdep.h: Minor formatting fixes.
5422 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
5424 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
5425 * dwarf-index-cache.c (create_dir_and_check): Likewise.
5426 (test_mkdir_recursive): Likewise.
5427 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
5429 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
5431 * valarith.c (value_subscripted_rvalue): If an array is not in
5432 memory, and we don't know the upper bound, then we can't know that
5433 the requested element exists or not.
5435 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
5437 * target.c (str_comma_list_concat_elem): Fix typo in comment.
5438 (target_options_to_string): Add comment.
5440 2018-08-08 Tom Tromey <tom@tromey.com>
5442 * unittests/scoped_mmap-selftests.c: Check result of "write".
5444 2018-08-08 Jim Wilson <jimw@sifive.com>
5446 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
5447 (decode_register_index_short): New.
5448 (decode_j_type_insn, decode_cj_type_insn): New.
5449 (decode_b_type_insn, decode_cb_type_insn): New.
5450 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
5451 local xlen. Check xlen when decoding ambiguous compressed insns. In
5452 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
5453 is_c_sw_insn instead of is_sw_insn.
5454 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
5455 (riscv_software_single_step): New.
5456 * riscv-tdep.h (riscv_software_single_step): Declare.
5458 * riscv-tdep.c (riscv_isa_xlen): Drop static.
5459 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
5461 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
5464 * target.c (dispose_inferior): Don't dispose of inferiors that are
5467 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
5469 * remote.c (remote_target::download_tracepoint): Change char* to
5472 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5474 * target.h (target_options_to_string): Return an std::string.
5475 * target.c (str_comma_list_concat_elem): Return void, use
5477 (do_option): Likewise.
5478 (target_options_to_string): Return an std::string.
5479 * linux-nat.c (linux_nat_target::wait): Adjust.
5480 * target-debug.h (target_debug_print_options): Adjust.
5482 2018-08-07 Tom Tromey <tom@tromey.com>
5484 * Makefile.in (CPPFLAGS): New variable.
5485 (INTERNAL_CPPFLAGS): Use it.
5487 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5489 * NEWS: Mention the index cache.
5491 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5493 * common/pathstuff.h (get_standard_cache_dir): New.
5494 * common/pathstuff.c (get_standard_cache_dir): New.
5495 * build-id.h (build_id_to_string): New.
5496 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
5497 DEBUG_STR_SUFFIX): Move to here.
5498 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
5499 DEBUG_STR_SUFFIX): Move from there.
5500 (write_psymtabs_to_index): Make non-static, add basename
5501 parameter. Write to temporary files, rename when done.
5502 (save_gdb_index_command): Adjust call to
5503 write_psymtabs_to_index.
5504 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
5506 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
5507 (get_gdb_index_contents_from_cache): New.
5508 (get_gdb_index_contents_from_cache_dwz): New.
5509 (dwarf2_initialize_objfile): Read index from cache.
5510 (dwarf2_build_psymtabs): Save to index.
5511 * dwarf-index-cache.h: New file.
5512 * dwarf-index-cache.c: New file.
5513 * dwarf-index-write.h: New file.
5515 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5517 * gnulib/aclocal.m4: Re-generate.
5518 * gnulib/config.in: Re-generate.
5519 * gnulib/configure: Re-generate.
5520 * gnulib/import/Makefile.am: Re-generate.
5521 * gnulib/import/Makefile.in: Re-generate.
5522 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
5523 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5524 * gnulib/import/m4/mkdir.m4: New file.
5525 * gnulib/import/mkdir.c: New file.
5526 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
5529 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5531 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
5532 * common/scoped_mmap.c: New file.
5533 * common/scoped_mmap.h (destroy): New method.
5534 (~scoped_mmap, reset): Use destroy.
5535 (scoped_mmap): New move constructor.
5536 (mmap_file): New declaration.
5537 * unittests/scoped_mmap-selftests.c (test_normal,
5538 test_invalid_filename, run_tests): New functions.
5539 (_initialize_scoped_mmap_selftests): Register selftest.
5541 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5543 * dwarf2read.c (read_gdb_index_from_section): Rename to...
5544 (read_gdb_index_from_buffer): ... this. Remove section
5545 parameter, add buffer parameter.
5546 (get_gdb_index_contents_ftype,
5547 get_gdb_index_contents_dwz_ftype): New typedefs.
5548 (dwarf2_read_gdb_index): Add callback parameters to get the
5550 (get_gdb_index_contents_from_section): New.
5551 (dwarf2_initialize_objfile): Update call to
5552 dwarf2_read_gdb_index.
5554 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
5556 * common/filestuff.h (gdb_fopen_cloexec): New overload.
5557 (gdb_open_cloexec): Likewise.
5558 * nat/linux-osdata.c (command_from_pid): Use string_printf.
5559 (commandline_from_pid): Likewise.
5560 (linux_xfer_osdata_threads): Likewise.
5561 (linux_xfer_osdata_fds): Likewise.
5562 * ada-lang.c (is_package_name): Likewise.
5563 * auxv.c (procfs_xfer_auxv): Likewise.
5564 * breakpoint.c (print_one_breakpoint_location): Use
5566 (print_one_catch_solib): Use string_printf.
5567 * coff-pe-read.c (add_pe_exported_sym): Likewise.
5568 (add_pe_forwarded_sym): Likewise.
5569 * dwarf2read.c (create_type_unit_group): Likewise.
5570 (build_error_marker_type): Likewise.
5571 * infcall.c (get_function_name): Likewise.
5572 * valprint.c (print_converted_chars_to_obstack): Likewise.
5573 * xtensa-tdep.c (xtensa_register_type): Likewise.
5575 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
5577 * remote.c (remote_target::download_tracepoint): Fix format
5580 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5582 * tracefile.c: Include common/byte-vector.h.
5583 (trace_save): Change type of buf to gdb::byte_vector. Initialize
5584 with trace_regblock_size if needed. Update uses of buf.
5586 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5588 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
5589 std::vector<unsigned char>.
5590 * tracepoint.c (collection_list::collection_list): Remove
5591 m_regs_mask initializer from initializer list. Resize
5592 m_regs_mask using the largest remote register number.
5593 (collection_list::add_remote_register): Remove size check on
5594 m_regs_mask. Use at to access element.
5595 (collection_list::stringify): Change type of temp_buf to
5596 gdb::char_vector. Update uses of temp_buf. Resize if needed to
5597 stringify the register mask. Use pack_hex_byte for the register
5600 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5602 * tracepoint.h (class collection_list) <add_register>: Remove.
5603 <add_remote_register, add_ax_registers, add_local_register>:
5605 <add_memrange>: Add scope parameter.
5606 * tracepoint.c (encode_actions_1): Likewise.
5607 (collection_list::add_register): Rename to ...
5608 (collection_list::add_remote_register): ... this. Update
5610 (collection_list::add_ax_registers, add_local_register): New
5612 (collection_list::add_memrange): Add scope parameter. Call
5613 add_local_register instead of add_register.
5614 (finalize_tracepoint_aexpr): New function.
5615 (collection_list::collect_symbol): Update calls to add_memrange.
5616 Call add_local_register instead of add_register. Call
5617 add_ax_registers. Call finalize_tracepoint_aexpr.
5618 (encode_actions_1): Get remote regnos for $reg action. Call
5619 add_remote_register, add_ax_registers, and add_local_register.
5620 Update call to add_memrange. Call finalize_tracepoint_aexpr.
5621 (validate_actionline): Call finalize_tracepoint_aexpr.
5623 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5625 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
5626 Replace array buf with gdb::char_vector buf, of size
5627 get_remote_packet_size (). Replace references to buf and
5628 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
5629 and xsnprintf with snprintf. Raise errors if the buffer is too
5632 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5634 * remote.c (remote_target::download_tracepoint): Fix the has_more
5635 predicate in the QTDP action list iteration.
5637 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5639 * remote.c (remote_target::download_tracepoint): Fix indentation
5642 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5644 * proc-api.c (_initialize_proc_api): Remove c, unused.
5645 * procfs.c (procfs_init_inferior): Remove signals, unused.
5646 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
5649 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
5650 Andrew Burgess <andrew.burgess@embecosm.com>
5652 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
5653 'W_STOPCODE (0)' as this could be ambiguous.
5655 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
5657 * ser-tcp.c (net_open): Fix thinko when deciding whether to
5658 disable TCP's Nagle algorithm (use "ai_protocol" instead of
5661 2018-08-02 Tom Tromey <tom@tromey.com>
5664 * dwarf2read.c (read_func_scope): Set symtab on template parameter
5666 (process_structure_scope): Likewise.
5668 2018-08-02 Xavier Roirand <roirand@adacore.com>
5671 * darwin-nat.c (darwin_kill_inferior): Fix handling of
5674 2018-08-02 Tom Tromey <tom@tromey.com>
5676 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
5677 (darwin_suspend_inferior, darwin_resume_inferior)
5678 (darwin_decode_notify_message, darwin_resume_inferior_threads)
5679 (darwin_check_new_threads): Check result of get_darwin_inferior.
5681 2018-07-31 Joel Brobecker <brobecker@adacore.com>
5685 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
5687 * varobj.c (varobj_get_path_expr_parent): Report an error if
5688 parent is a dynamic varobj.
5690 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5692 * gnulib/aclocal.m4: Re-generate.
5693 * gnulib/config.in: Re-generate.
5694 * gnulib/configure: Re-generate.
5695 * gnulib/import/Makefile.in: Re-generate.
5696 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
5697 * gnulib/import/m4/onceonly.m4: Re-generate.
5699 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
5701 * target-descriptions.c (struct xml_test_tdesc): New.
5702 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
5703 (record_xml_tdesc): Update.
5704 (maintenance_check_xml_descriptions): Update.
5705 * target-descriptions.h (record_xml_tdesc): Update comment.
5707 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
5709 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
5710 checking array bounds are defined.
5712 2018-07-30 Tom Tromey <tom@tromey.com>
5714 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
5715 irreflexivity violation.
5717 2018-07-30 Tom Tromey <tom@tromey.com>
5719 * cli/cli-decode.c (lookup_cmd): Remove lint code.
5720 * value.c (unpack_long): Remove lint code.
5721 * valops.c (value_ind): Remove lint code.
5722 * valarith.c (value_x_binop, value_x_unop, value_equal)
5723 (value_pos): Remove lint code.
5725 2018-07-28 Tom de Vries <tdevries@suse.de>
5727 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
5728 with undefined upper bound as <optimized out>.
5730 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
5732 * gcore.in: Rename variable "name" to "prefix". Expand
5735 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
5737 * windows-nat.c (windows_nat_target::create_inferior): Update to
5738 call close() in global namespace.
5740 2018-07-26 Tom Tromey <tom@tromey.com>
5742 * dwarf-index-write.c (add_address_entry): Don't add objfile
5744 * dbxread.c (find_stab_function): Rename from
5745 find_stab_function_addr. Return a bound_minimal_symbol.
5746 (read_dbx_symtab): Use raw_text_low, raw_text_high.
5747 Don't add objfile offsets.
5748 (end_psymtab): Use raw_text_low, raw_text_high,
5749 MSYMBOL_VALUE_RAW_ADDRESS.
5750 (read_ofile_symtab): Update.
5751 (process_one_symbol): Update.
5752 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
5754 (dw2_relocate): Remove.
5755 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
5757 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
5759 (process_psymtab_comp_unit_reader, add_partial_symbol)
5760 (add_partial_subprogram, dwarf2_ranges_read): Update.
5761 (load_partial_dies): Update.
5762 (add_address_entry): Don't add objfile offsets.
5763 (dwarf2_build_include_psymtabs): Update.
5764 (create_addrmap_from_aranges): Don't add objfile offsets.
5765 (dw2_find_pc_sect_compunit_symtab): Update.
5766 * mdebugread.c (parse_symbol): Don't add objfile offsets.
5767 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
5769 (parse_partial_symbols): Don't add objfile offsets. Use
5770 raw_text_low, raw_text_high. Update.
5771 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5772 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5773 or call 'relocate' quick function. Clear psymbol_map.
5774 * psympriv.h (struct partial_symbol) <address>: Add section
5776 <set_unrelocated_address>: Rename from set_address.
5777 <raw_text_low, raw_text_high>: New methods.
5778 <text_low, text_high>: Add objfile parameter.
5779 (add_psymbol_to_bcache): Add 'section' parameter. Call
5780 set_unrelocated_address.
5781 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5782 (find_pc_psymbol): Update.
5783 (fixup_psymbol_section, relocate_psymtabs): Remove.
5784 (dump_psymtab, psym_functions): Update.
5785 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5787 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5788 (start_psymtab_common): Update.
5789 * symfile-debug.c (debug_qf_relocate): Remove.
5790 (debug_sym_quick_functions): Update.
5791 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5792 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5795 2018-07-26 Tom Tromey <tromey@redhat.com>
5797 * dbxread.c (end_psymtab): Use text_high_valid and
5799 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
5800 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
5801 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5803 <text_low_valid, text_high_valid>: New fields.
5804 <set_text_low, set_text_high>: Update.
5805 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
5807 2018-07-26 Tom Tromey <tom@tromey.com>
5809 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
5811 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
5812 textlow and texthigh fields.
5813 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
5815 * mdebugread.c (parse_lines, parse_partial_symbols)
5816 (psymtab_to_symtab_1): Update.
5817 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5818 Rename fields. Update comment. Now private.
5819 <text_low, text_high, set_text_low, set_text_high>: New methods.
5820 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5821 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
5822 (start_psymtab_common, maintenance_info_psymtabs)
5823 (maintenance_check_psymtabs): Update.
5824 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
5826 (scan_xcoff_symtab): Update.
5828 2018-07-26 Tom Tromey <tromey@redhat.com>
5830 * psympriv.h (struct partial_symbol) <unrelocated_address,
5831 address, set_address>: New methods.
5832 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
5833 (fixup_psymbol_section, relocate_psymtabs): Update.
5834 (print_partial_symbols): Add 'objfile' parameter. Update.
5835 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
5838 2018-07-26 Tom Tromey <tom@tromey.com>
5840 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5841 (debug_names::write_psymbols): Update.
5842 * psympriv.h (struct partial_symbol): Derive from
5843 general_symbol_info.
5844 <obj_section>: New method.
5845 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
5846 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5847 (find_pc_sect_psymbol, fixup_psymbol_section)
5848 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
5849 (print_partial_symbols, recursively_search_psymtabs)
5850 (compare_psymbols, psymbol_hash, psymbol_compare)
5851 (add_psymbol_to_bcache, maintenance_check_psymtabs)
5852 (psymbol_name_matches, psym_fill_psymbol_map): Update.
5854 2018-07-26 Tom Tromey <tromey@redhat.com>
5856 * dbxread.c (end_psymtab): Remove dead code.
5858 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
5860 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
5861 DWARF unwinders are disabled.
5862 * dwarf2-frame.c: Add dwarf2read.h include.
5863 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
5865 (dwarf2_frame_unwinders_enabled_p): Define.
5866 (show_dwarf_unwinders_enabled_p): New function.
5867 (_initialize_dwarf2_frame): Register switch to control DWARF
5869 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
5870 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
5871 (show_dwarf_cmdlist): Remove static keyword.
5872 * dwarf2read.h (set_dwarf_cmdlist): Declare.
5873 (show_dwarf_cmdlist): Declare.
5874 * NEWS: Document new feature.
5876 2018-07-26 Tom de Vries <tdevries@suse.de>
5878 PR breakpoints/23366
5879 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
5881 2018-07-26 Tom de Vries <tdevries@suse.de>
5883 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
5884 DW_AT_count can't be translated to a dynamic prop.
5886 2018-07-25 Tom de Vries <tdevries@suse.de>
5888 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
5891 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
5893 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
5895 2018-07-25 Joel Brobecker <brobecker@adacore.com>
5897 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
5899 2018-07-24 Keith Seitz <keiths@redhat.comt
5902 * dwarf2read.c (dw2_add_symbol_to_list): New function.
5903 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
5904 instead of add_symbol_to_list.
5905 (read_file_scope): Call prepare_one_comp_unit before reading
5908 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
5910 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
5912 2018-07-24 Tom Tromey <tom@tromey.com>
5914 * utils.c (malloc, realloc, free): Don't declare.
5915 * configure, config.in: Rebuild.
5916 * configure.ac: Don't check for declarations of free, malloc, or
5919 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5921 * aarch64-linux-nat.c
5922 (aarch64_linux_nat_target::stopped_data_address): Remove unused
5924 * arm-linux-nat.c (fetch_regs): Likewise.
5925 (store_regs): Likewise.
5926 (fetch_vfp_regs): Likewise.
5927 (store_vfp_regs): Likewise.
5928 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
5929 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
5930 (arm_linux_nat_target::insert_watchpoint): Likewise.
5931 (arm_linux_nat_target::remove_watchpoint): Likewise.
5932 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
5934 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
5936 * ppc-linux-nat.c (fetch_register): Likewise.
5937 (fetch_all_gp_regs): Likewise.
5938 (fetch_ppc_registers): Likewise.
5939 (store_all_gp_regs): Likewise.
5940 (store_ppc_registers): Likewise.
5941 (hwdebug_insert_point): Likewise.
5942 (can_use_watchpoint_cond_accel): Likewise.
5943 * remote-sim.c (gdb_os_write_stdout): Likewise.
5945 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5946 Tom Tromey <tom@tromey.com>
5948 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
5950 * configure: Rebuild.
5952 2018-07-22 Tom Tromey <tom@tromey.com>
5954 * regformats/regdat.sh: Define xmltarget_${name} inside
5955 #ifndef IN_PROCESS_AGENT.
5957 2018-07-22 Tom Tromey <tom@tromey.com>
5959 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
5961 2018-07-22 Tom Tromey <tom@tromey.com>
5963 * symfile.c (reread_symbols): Notify iter, not objfile.
5965 2018-07-22 Tom Tromey <tom@tromey.com>
5967 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
5969 (ravenscar_thread_target::prepare_to_store): Likewise.
5971 2018-07-22 Tom Tromey <tom@tromey.com>
5973 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
5974 unused variable. Call value_fetch_lazy when needed.
5975 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5976 Remove unused variable. Call value_fetch_lazy when needed.
5978 2018-07-22 Tom Tromey <tom@tromey.com>
5980 * m32c-tdep.c (mark_dma): Return void.
5981 (make_regs): Remove unused declarations.
5983 2018-07-22 Tom Tromey <tom@tromey.com>
5985 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
5986 cmdscm_get_valid_command_smob_arg_unsafe for effect.
5987 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
5988 bkscm_get_valid_block_smob_arg_unsafe for effect.
5990 2018-07-22 Tom Tromey <tom@tromey.com>
5992 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
5995 2018-07-22 Tom Tromey <tom@tromey.com>
5997 * windows-nat.c (saved_context): Conditionally define.
5998 * remote.c (remote_target::remote_btrace_maybe_reopen):
5999 Conditionally declare "warned".
6000 * inflow.c (sigquit_ours): Conditionally define.
6001 (new_tty): Move "tty" declaration inside #if.
6002 * guile/guile.c (guile_datadir): Conditionally define.
6003 * charset.c (set_be_le_names): Move some declarations inside #if.
6004 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
6006 (parse_xml_btrace_conf): Likewise.
6008 2018-07-22 Tom Tromey <tom@tromey.com>
6010 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
6012 2018-07-22 Tom Tromey <tom@tromey.com>
6014 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
6015 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
6016 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
6017 * buildsym-legacy.c (get_macro_table): Remove unused variable.
6018 * stack.c (frame_apply_level_command): Remove unused variable.
6019 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
6020 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
6021 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
6023 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
6024 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
6025 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
6027 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
6028 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
6030 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
6031 Remove unused variable.
6032 * cli/cli-script.c (recurse_read_control_structure): Remove unused
6034 * common/tdesc.c (print_xml_feature::visit): Remove unused
6036 * compile/compile-object-load.c (store_regs): Remove unused
6038 * complaints.c (clear_complaints): Remove unused variable.
6039 * corelow.c (core_target_open): Remove unused variable.
6040 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
6042 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
6044 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
6046 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
6048 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
6050 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
6052 * ia64-tdep.c (examine_prologue): Remove unused variable.
6053 * infcall.c (run_inferior_call): Remove unused variable.
6054 * inferior.c (exit_inferior): Remove unused variable.
6055 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
6056 * linespec.c (decode_line_2): Remove unused variable.
6057 * linux-nat.c (super_close): Remove.
6058 * linux-tdep.c (linux_info_proc): Remove unused variable.
6059 * mi/mi-main.c (mi_execute_command): Remove unused variable.
6060 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
6061 Remove unused variable.
6062 * parse.c (find_minsym_type_and_address): Remove unused variable.
6063 * printcmd.c (info_symbol_command, printf_floating): Remove unused
6065 * python/py-breakpoint.c (bppy_set_commands): Remove unused
6067 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
6069 * record-btrace.c (record_btrace_target::store_registers): Remove
6071 (cmd_show_record_btrace_cpu): Remove unused variable.
6072 * riscv-tdep.c (riscv_register_reggroup_p)
6073 (riscv_push_dummy_call, riscv_return_value): Remove unused
6075 * rust-exp.y (literal): Remove unused variable.
6076 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
6078 <STRUCTOP_ANONYMOUS>: Likewise.
6079 * s390-linux-tdep.c (s390_linux_init_abi_31)
6080 (s390_linux_init_abi_64): Remove unused variable.
6081 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
6082 (file_select_thread, net_windows_open, _initialize_ser_windows):
6083 Remove unused variables.
6084 * symtab.c (find_pc_sect_line): Remove unused variable.
6085 * target-memory.c (compute_garbled_blocks): Remove unused
6087 (target_write_memory_blocks): Remove unused variable.
6088 * target.c (target_stack::unpush): Remove unused variables.
6089 * tracepoint.c (start_tracing, all_tracepoint_actions)
6090 (merge_uploaded_trace_state_variables)
6091 (print_one_static_tracepoint_marker): Remove unused variable.
6092 * unittests/basic_string_view/element_access/char/1.cc (test01):
6093 Remove unused variable.
6094 * windows-nat.c (windows_continue, windows_add_all_dlls)
6095 (do_initial_windows_stuff, windows_nat_target::create_inferior):
6096 Remove unused variables.
6098 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6100 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
6101 attr_profile in HAVE_ELF.
6102 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
6105 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
6107 * frame.c (frame_register_unwind): Change parameter name.
6108 (frame_unwind_register): Likewise.
6109 (frame_unwind_register_value): Likewise.
6110 (frame_unwind_register_signed): Likewise.
6111 (frame_unwind_register_unsigned): Likewise.
6112 * frame.h (frame_register_unwind): Likewise.
6113 (frame_unwind_register): Likewise.
6114 (frame_unwind_register_value): Likewise.
6115 (frame_unwind_register_signed): Likewise.
6116 (frame_unwind_register_unsigned): Likewise.
6117 (frame_unwind_arch): Likewise.
6119 2018-07-20 Maciej W. Rozycki <macro@mips.com>
6121 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
6124 2018-07-20 Maciej W. Rozycki <macro@mips.com>
6126 * mips-linux-nat.c (mips_linux_nat_target::read_description):
6127 Call `get_ptrace_pid' rather than extracting the ptrace PID by
6130 2018-07-20 Keith Seitz <keiths@redhat.com>
6132 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
6133 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
6134 m_compunit_symtab, m_language>: Add "m_" prefix.
6136 * buildsym.c: Update all uses.
6138 2018-07-20 Tom Tromey <tom@tromey.com>
6140 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
6141 * buildsym.h (record_line_ftype): Remove typedef.
6143 2018-07-20 Tom Tromey <tom@tromey.com>
6145 * buildsym-legacy.h (augment_type_symtab): Don't declare.
6146 (end_expandable_symtab): Likewise.
6147 (end_symtab_get_static_block): Likewise.
6148 (end_symtab_from_static_block): Likewise.
6149 * buildsym-legacy.c (augment_type_symtab): Remove.
6150 (end_expandable_symtab): Remove.
6151 (end_symtab_get_static_block): Remove.
6152 (end_symtab_from_static_block): Remove.
6154 2018-07-20 Tom Tromey <tom@tromey.com>
6156 * dwarf2read.c: Include buildsym.h.
6157 (struct dwarf2_cu) <builder>: New method.
6158 (fixup_go_packaging): Update.
6159 (process_full_comp_unit, process_full_type_unit): Update. Don't
6160 use scoped_free_pendings.
6161 (using_directives): Add "cu" parameter, remove "language".
6162 (read_import_statement, setup_type_unit_groups, )
6163 (read_func_scope, read_lexical_block_scope)
6164 (dwarf2_record_block_ranges, read_namespace): Update.
6165 (lnp_state_machine::lnp_state_machine): Add cu parameter.
6166 (lnp_state_machine::handle_end_sequence): Update.
6167 (class lnp_state_machine) <m_cu>: New member.
6168 <m_record_line_callback>: Remove.
6169 <m_currently_recording_lines>: New member.
6170 (lnp_state_machine::handle_set_file): Update.
6171 (noop_record_line): Remove.
6172 (dwarf_record_line_p): Add cu parameter.
6173 (dwarf_record_line_1, dwarf_finish_line): Likewise.
6174 (lnp_state_machine::record_line)
6175 (lnp_state_machine::lnp_state_machine)
6176 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6177 (dwarf_decode_lines): Update.
6178 (dwarf2_start_subfile): Add cu parameter.
6179 (dwarf2_start_symtab, new_symbol): Update.
6180 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
6181 Remove dwarf2_per_objfile parameter.
6182 (dwarf_decode_macros): Update.
6184 2018-07-20 Tom Tromey <tom@tromey.com>
6186 * stabsread.c (define_symbol): Update.
6187 * buildsym-legacy.h (get_buildsym_compunit): Declare.
6188 * dwarf2read.c (new_symbol): Update.
6189 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
6190 * cp-namespace.c: Include buildsym.h.
6191 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
6192 * buildsym-legacy.c (get_buildsym_compunit): New function.
6194 2018-07-20 Tom Tromey <tom@tromey.com>
6196 * xcoffread.c: Include buildsym-legacy.h.
6197 * windows-nat.c: Include buildsym-legacy.h.
6198 * stabsread.c: Include buildsym-legacy.h.
6199 * mdebugread.c: Include buildsym-legacy.h.
6200 * buildsym-legacy.h: New file.
6201 * buildsym-legacy.c: New file, from buildsym.c.
6202 * go32-nat.c: Include buildsym-legacy.h.
6203 * dwarf2read.c: Include buildsym-legacy.h.
6204 * dbxread.c: Include buildsym-legacy.h.
6205 * cp-namespace.c: Include buildsym-legacy.h.
6206 * coffread.c: Include buildsym-legacy.h.
6207 * buildsym.h: Move some contents to buildsym-legacy.h.
6208 * buildsym.c: Include buildsym-legacy.h. Move many functions to
6210 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
6212 2018-07-20 Tom Tromey <tom@tromey.com>
6214 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
6215 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
6216 (buildsym_compunit::buildsym_compunit)
6217 (buildsym_compunit::~buildsym_compunit)
6218 (buildsym_compunit::get_macro_table): Define.
6220 2018-07-20 Tom Tromey <tom@tromey.com>
6222 * buildsym.c (reset_symtab_globals): Remove.
6223 (buildsym_compunit::end_symtab_from_static_block): Update.
6224 (buildsym_compunit::augment_type_symtab): Update.
6225 (end_symtab_from_static_block): Call free_buildsym_compunit.
6226 (augment_type_symtab, end_symtab, end_expandable_symtab):
6229 2018-07-20 Tom Tromey <tom@tromey.com>
6231 * arch-utils.c: Do not include buildsym.h.
6232 * mipsread.c: Do not include buildsym.h.
6233 * machoread.c: Do not include buildsym.h.
6234 * elfread.c: Do not include buildsym.h.
6236 2018-07-20 Tom Tromey <tom@tromey.com>
6238 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
6240 (buildsym_compunit): Add new constructor.
6241 (struct buildsym_compunit) <get_last_source_file, finish_block,
6242 record_block_range, start_subfile, patch_subfile_names,
6243 push_subfile, pop_subfile, record_line, get_compunit_symtab,
6244 set_last_source_start_addr, get_last_source_start_addr,
6245 get_local_using_directives, set_local_using_directives,
6246 get_global_using_directives, outermost_context_p,
6247 get_current_context_stack, get_context_stack_depth,
6248 get_current_subfile, get_local_symbols, get_file_symbols,
6249 get_global_symbols, record_debugformat, record_producer,
6250 push_context, pop_context, end_symtab_get_static_block,
6251 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
6253 <record_pending_block, finish_block_internal, make_blockvector,
6254 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
6258 2018-05-22 Tom Tromey <tom@tromey.com>
6260 * buildsym.c (record_pending_block): Move earlier. Remove objfile
6262 (finish_block_internal): Update.
6264 2018-07-20 Tom Tromey <tom@tromey.com>
6266 * buildsym.c (record_pending_block): Move earlier. Remove objfile
6268 (finish_block_internal): Update.
6270 2018-07-20 Tom Tromey <tom@tromey.com>
6272 * buildsym.h (EXTERN): Don't define or undef.
6273 * buildsym.c (EXTERN): Don't define.
6275 2018-07-20 Tom Tromey <tom@tromey.com>
6277 * buildsym.c: Remove TODO comment.
6279 2018-07-20 Tom Tromey <tom@tromey.com>
6281 * coffread.c (coff_symtab_read): Update.
6282 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6283 (xcoff_new_init): Update.
6284 * mipsread.c (mipscoff_new_init): Update.
6285 * mdebugread.c (mdebug_build_psymtabs): Update.
6286 * elfread.c (elf_new_init): Update.
6287 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
6289 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
6290 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6291 (stabsect_build_psymtabs): Update.
6292 * buildsym.h (buildsym_init): Don't declare.
6293 * buildsym.c: Update comment.
6294 (prepare_for_building): Remove.
6295 (start_symtab, restart_symtab): Update.
6296 (reset_symtab_globals): Update comment.
6297 (buildsym_init): Remove.
6299 2018-07-20 Tom Tromey <tom@tromey.com>
6301 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
6302 * stabsread.c (patch_block_stabs, define_symbol, read_type)
6303 (read_enum_type, common_block_start, common_block_end)
6304 (cleanup_undefined_types_1, finish_global_stabs): Update.
6305 * mdebugread.c (psymtab_to_symtab_1): Update.
6306 * dwarf2read.c (fixup_go_packaging, read_func_scope)
6307 (read_lexical_block_scope, new_symbol): Update.
6308 * dbxread.c (process_one_symbol): Update.
6309 * coffread.c (coff_symtab_read, process_coff_symbol)
6310 (coff_read_enum_type): Update.
6311 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
6313 (get_local_symbols, get_file_symbols, get_global_symbols): New
6315 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
6317 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
6318 (~scoped_free_pendings): Update.
6319 (finish_block, prepare_for_building, reset_symtab_globals)
6320 (end_symtab_get_static_block, end_symtab_with_blockvector)
6321 (augment_type_symtab, push_context): Update.
6322 (get_local_symbols, get_file_symbols, get_global_symbols): New
6324 (buildsym_init): Update.
6326 2018-07-20 Tom Tromey <tom@tromey.com>
6328 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
6329 (process_full_type_unit): Likewise.
6330 (dwarf2_start_symtab): Set list_in_scope.
6332 2018-07-20 Tom Tromey <tom@tromey.com>
6334 * dwarf2read.c (process_psymtab_comp_unit_reader)
6335 (build_type_psymtabs_reader): Do not set list_in_scope.
6337 2018-07-20 Tom Tromey <tom@tromey.com>
6339 * buildsym.c (free_pendings): Remove.
6340 (add_symbol_to_list, scoped_free_pendings)
6341 (finish_block_internal, buildsym_init): Update.
6343 2018-07-20 Tom Tromey <tom@tromey.com>
6345 * xcoffread.c (read_xcoff_symtab): Update.
6346 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
6348 * dbxread.c (process_one_symbol): Update.
6349 * coffread.c (coff_symtab_read): Update.
6350 * buildsym.h (finish_block): Update.
6351 * buildsym.c (finish_block): Remove "listhead" argument.
6352 (end_symtab_get_static_block): Update.
6354 2018-07-20 Tom Tromey <tom@tromey.com>
6356 * buildsym.h (class scoped_free_pendings): Remove constructor.
6357 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
6359 <m_pending_block_obstack, m_pending_blocks>: New members.
6360 (pending_block_obstack, pending_blocks): Remove.
6361 (scoped_free_pendings::scoped_free_pendings): Default.
6362 (~scoped_free_pendings): Update.
6363 (free_pending_blocks): Remove.
6364 (finish_block_internal, record_pending_block, make_blockvector)
6365 (end_symtab_get_static_block, augment_type_symtab, push_context)
6366 (buildsym_init): Update.
6368 2018-07-20 Tom Tromey <tom@tromey.com>
6370 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
6371 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
6373 (pending_addrmap, pending_addrmap_obstack)
6374 (pending_addrmap_interesting): Remove.
6375 (scoped_free_pendings, record_block_range, make_blockvector)
6376 (prepare_for_building, reset_symtab_globals, buildsym_init):
6379 2018-07-20 Tom Tromey <tom@tromey.com>
6381 * xcoffread.c (process_linenos): Update.
6382 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
6383 * mdebugread.c (psymtab_to_symtab_1): Update.
6384 * dwarf2read.c (setup_type_unit_groups)
6385 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
6386 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
6387 * dbxread.c (process_one_symbol): Update.
6388 * coffread.c (coff_symtab_read, enter_linenos)
6389 (process_coff_symbol): Update.
6390 * buildsym.h (current_subfile): Don't declare.
6391 (get_current_subfile): Declare.
6392 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
6394 (start_subfile, free_buildsym_compunit, push_subfile)
6395 (prepare_for_building, start_symtab): Update.
6396 (get_current_subfile): New function.
6398 2018-07-20 Tom Tromey <tom@tromey.com>
6400 * coffread.c (coff_symtab_read): Update.
6401 * xcoffread.c (read_xcoff_symtab): Update.
6402 * dwarf2read.c (new_symbol): Update.
6403 (read_func_scope, read_lexical_block_scope): Update.
6404 * dbxread.c (process_one_symbol): Update.
6405 * buildsym.h (context_stack, context_stack_depth): Don't declare.
6406 (outermost_context_p): Remove macro.
6407 (outermost_context_p, get_current_context_stack)
6408 (get_context_stack_depth): Declare.
6409 (pop_context): Return struct context_stack.
6410 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
6412 (context_stack_size): Remove.
6413 (INITIAL_CONTEXT_STACK_SIZE): Remove.
6414 (prepare_for_building, end_symtab_get_static_block)
6415 (augment_type_symtab, push_context): Update.
6416 (pop_context): Return struct context_stack.
6417 (outermost_context_p, get_current_context_stack)
6418 (get_context_stack_depth): New functions.
6419 (buildsym_init): Update.
6421 2018-07-20 Tom Tromey <tom@tromey.com>
6423 * rust-exp.y: Now a pure parser. Update all rules.
6424 (%union): Move earlier.
6425 (current_parser, work_obstack): Remove globals.
6426 (rust_parser, ~rust_parser): Update.
6427 (class rust_parser) <copy_name, concat3, crate_name, super_name,
6428 lex_character, lex_number, lex_string, lex_identifier,
6429 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
6430 convert_name, convert_params_to_expression,
6431 convert_ast_to_expression, ast_basic_type, ast_operation,
6432 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
6433 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
6434 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
6435 ast_array_type, ast_slice_type, ast_reference_type,
6436 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
6437 (rust_parse): Update.
6438 (rustyyerror, rustyylex): Add parser parameter.
6439 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
6440 (rust_lex_stringish_test, rust_lex_test_sequence)
6441 (rust_lex_test_trailing_dot, rust_lex_test_completion)
6442 (rust_lex_test_push_back, rust_lex_tests): Update.
6444 2018-07-19 Pedro Alves <palves@redhat.com>
6446 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
6447 gdb::unique_xmalloc_ptr.
6448 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
6449 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
6450 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
6451 copy-initialization.
6452 * guile/scm-pretty-print.c (ppscm_print_children): Use
6453 gdb::unique_xmalloc_ptr instead of cleanups.
6454 (gdbscm_apply_val_pretty_printer): Remove cleanups.
6455 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
6456 gdb::unique_xmalloc_ptr.
6457 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6458 Adjust to use gdb::unique_xmalloc_ptr.
6459 * guile/scm-utils.c (extract_arg): Adjust.
6460 * guile/scm-value.c (gdbscm_value_field): Adjust to use
6461 gdb::unique_xmalloc_ptr instead of a cleanup.
6463 2018-07-19 Tom Tromey <tom@tromey.com>
6465 * utils.c (do_value_free_to_mark)
6466 (make_cleanup_value_free_to_mark): Remove.
6467 * utils.h (make_cleanup_value_free_to_mark): Remove.
6469 2018-07-19 Pedro Alves <palves@redhat.com>
6471 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
6472 forwarding reference.
6474 2018-07-18 Pedro Alves <palves@redhat.com>
6476 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
6477 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
6480 2018-07-18 Pedro Alves <palves@redhat.com>
6482 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
6484 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
6486 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
6487 directly instead of a cleanup.
6488 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
6489 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
6490 (vlscm_binop_gdbthrow): New, factored out from ...
6491 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
6492 (vlscm_rich_compare): Use gdbscm_wrap.
6493 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
6494 instead of a cleanup.
6495 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
6497 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
6498 Use xfree directly instead of a cleanup.
6499 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
6500 Adjust to use gdbscm_wrap and scoped_value_mark.
6501 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
6502 (gdbscm_value_address, gdbscm_value_dereference)
6503 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
6505 (gdbscm_value_dynamic_type): Use scoped_value_mark.
6506 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
6508 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
6509 gdbscm_wrap and scoped_value_mark.
6510 (gdbscm_value_to_string): Use xfree directly instead of a
6511 cleanup. Move 'buffer' unique_ptr to TRY scope.
6512 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
6513 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
6515 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
6516 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
6518 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
6521 2018-07-18 Tom de Vries <tdevries@suse.de>
6523 * findvar.c (default_read_var_value): Also resolve dynamic type for
6524 LOC_OPTIMIZED_OUT vars.
6526 2018-07-18 Maciej W. Rozycki <macro@mips.com>
6528 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
6531 2018-07-17 Tom Tromey <tom@tromey.com>
6533 * guile/scm-param.c (pascm_set_func, pascm_show_func)
6534 (compute_enum_list, pascm_set_param_value_x)
6535 (gdbscm_parameter_value): Update.
6536 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
6537 (gdbscm_scm_to_host_string): Update.
6538 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
6540 * guile/scm-cmd.c (cmdscm_add_completion): Update.
6541 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
6542 * guile/scm-string.c (gdbscm_scm_to_string): Return
6544 (gdbscm_scm_to_host_string): Likewise.
6546 2018-07-17 Tom Tromey <tom@tromey.com>
6548 * guile/guile.c (gdbscm_eval_from_control_command): Update.
6549 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
6550 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
6551 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
6554 2018-07-17 Tom Tromey <tom@tromey.com>
6556 * guile/scm-param.c (pascm_signal_setshow_error): Update.
6557 * guile/guile-internal.h (gdbscm_exception_message_to_string):
6559 * guile/scm-cmd.c (cmdscm_function): Update.
6560 * guile/scm-pretty-print.c
6561 (ppscm_print_exception_unless_memory_error): Update.
6562 * guile/scm-exception.c (gdbscm_exception_message_to_string):
6563 Return unique_xmalloc_ptr.
6565 2018-07-17 Tom Tromey <tom@tromey.com>
6567 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
6570 2018-07-17 Jim Wilson <jimw@sifive.com>
6572 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
6573 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
6574 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
6575 unecessary braces after EF_RISCV_RVC test. Delete call to
6576 set_gdbarch_decr_pc_after_break.
6578 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
6579 RISCV_LAST_FP_REGNUM + 1.
6580 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
6582 2018-07-17 Tom Tromey <tom@tromey.com>
6584 * configure.ac: Remove --disable-gdbcli.
6585 * configure: Rebuild.
6586 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
6587 (SUBDIR_CLI_CFLAGS): Remove.
6588 (SFILES): Use SUBDIR_CLI_SRCS.
6589 (COMMON_OBS): Use SUBDIR_CLI_OBS.
6591 2018-07-17 Tom Tromey <tom@tromey.com>
6594 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
6596 2018-07-16 Jim Wilson <jimw@sifive.com>
6598 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
6600 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6602 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
6604 (libunwind_frame_sniffer): Likewise.
6605 (libunwind_frame_prev_register): Likewise.
6606 (libunwind_sigtramp_frame_sniffer): Likewise.
6607 * ia64-tdep.c (ia64_access_reg): Likewise.
6608 (ia64_access_rse_reg): Likewise.
6609 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
6610 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
6612 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6614 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
6616 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
6618 * remote-sim.c (gdbsim_target::close,
6619 gdbsim_target::mourn_inferior): Remove unused variables.
6621 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
6623 * ia64-tdep.c (ktab_buf): New global.
6624 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
6625 (get_kernel_table): Adjust.
6627 2018-07-16 Tom Tromey <tom@tromey.com>
6629 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
6630 * dwarf2read.c (using_directives, new_symbol): Use
6631 outermost_context_p.
6632 * dbxread.c (process_one_symbol): Use outermost_context_p.
6633 * coffread.c (coff_symtab_read): Use outermost_context_p.
6635 2018-07-16 Tom Tromey <tom@tromey.com>
6637 * dwarf2read.c (using_directives, read_func_scope)
6638 (read_lexical_block_scope): Update.
6639 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6640 * buildsym.h (local_using_directives, global_using_directives):
6642 (get_local_using_directives, set_local_using_directives)
6643 (get_global_using_directives): Declare.
6644 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
6645 m_global_using_directives>: New members.
6646 (finish_block_internal, prepare_for_building)
6647 (reset_symtab_globals, end_symtab_get_static_block)
6648 (push_context): Update.
6649 (get_local_using_directives, set_local_using_directives)
6650 (get_global_using_directives): New functions.
6651 (buildsym_init): Update.
6653 2018-07-16 Tom Tromey <tom@tromey.com>
6655 * xcoffread.c (xcoff_initial_scan): Don't call
6656 free_pending_blocks.
6657 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
6658 * buildsym.h (class scoped_free_pendings): Add constructor.
6659 (free_pending_blocks): Don't declare.
6660 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
6661 (free_pending_blocks): Now static.
6663 2018-07-16 Tom Tromey <tom@tromey.com>
6665 * buildsym.h (push_subfile, pop_subfile): Update declarations.
6666 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
6668 (struct subfile_stack): Remove.
6669 (subfile_stack): Remove.
6670 (push_subfile, pop_subfile, buildsym_init): Update.
6672 2018-07-16 Tom Tromey <tom@tromey.com>
6674 * buildsym.c (push_subfile): Use gdb_assert.
6675 (pop_subfile): Use gdb_assert.
6677 2018-07-16 Tom Tromey <tom@tromey.com>
6679 * buildsym.h (merge_symbol_lists): Remove.
6680 * buildsym.c (merge_symbol_lists): Remove.
6682 2018-07-16 Tom Tromey <tom@tromey.com>
6684 * stabsread.c (scan_file_globals): Update comment.
6685 * stabsread.h (scan_file_globals): Move from buildsym.h.
6686 * buildsym.h (scan_file_globals): Move to stabsread.h.
6688 2018-07-16 Tom Tromey <tom@tromey.com>
6690 * xcoffread.c (xcoff_new_init): Update.
6691 * mipsread.c (mipscoff_new_init): Update.
6692 * mdebugread.c (mdebug_build_psymtabs): Update.
6693 * elfread.c (elf_new_init): Update.
6694 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
6695 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
6696 * buildsym.h (buildsym_new_init): Don't declare.
6697 * buildsym.c (buildsym_new_init): Remove.
6699 2018-07-16 Tom Tromey <tom@tromey.com>
6701 * stabsread.h (within_function): Move from buildsym.h.
6702 * stabsread.c (start_stabs): Clear within_function.
6703 * coffread.c (coff_start_symtab): Clear within_function.
6704 * buildsym.h (within_function): Move to stabsread.h.
6705 * buildsym.c (prepare_for_building): Update.
6707 2018-07-16 Tom Tromey <tom@tromey.com>
6709 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
6710 * dwarf2read.c (dwarf2_start_symtab): Don't set
6711 processing_gcc_compilation.
6712 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
6714 2018-07-16 Tom Tromey <tom@tromey.com>
6716 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
6717 (next_symbol_text_func): Move from buildsym.h.
6718 * stabsread.c (hashname): Move from buildsym.c.
6719 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
6720 (next_symbol_text_func, hashname): Move to stabsread.h.
6721 * buildsym.c: Don't include bcache.h
6722 (hashname): Move to stasbread.c.
6724 2018-07-16 Tom Tromey <tom@tromey.com>
6726 * buildsym.h (context_stack_size): Don't declare.
6727 * buildsym.c (context_stack_size): New global.
6729 2018-07-16 Tom Tromey <tom@tromey.com>
6731 * dbxread.c (processing_acc_compilation): New global.
6732 * buildsym.h (processing_acc_compilation): Don't declare.
6734 2018-07-16 Tom Tromey <tom@tromey.com>
6736 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
6737 * dbxread.c (read_ofile_symtab): Update.
6738 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
6739 * buildsym.h (last_source_start_addr): Remove.
6740 (set_last_source_start_addr, get_last_source_start_addr):
6742 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
6744 (struct buildsym_compunit) <m_last_source_start_addr>: New
6746 (prepare_for_building): Remove start_addr parameter.
6747 (start_symtab, restart_symtab, end_symtab_get_static_block)
6748 (end_symtab_with_blockvector): Update.
6749 (set_last_source_start_addr, get_last_source_start_addr): New
6752 2018-07-16 Tom Tromey <tom@tromey.com>
6754 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
6756 (have_line_numbers): Remove.
6757 (record_line, prepare_for_building, end_symtab_get_static_block)
6758 (augment_type_symtab): Update.
6760 2018-07-16 Tom Tromey <tom@tromey.com>
6762 * buildsym.c (~buildsym_compunit): Free the macro table.
6763 (struct buildsym_compunit) <get_macro_table, release_macros>: New
6765 <m_pending_macros>: New member.
6766 (pending_macros): Remove.
6767 (~scoped_free_pendings, get_macro_table, prepare_for_building)
6768 (reset_symtab_globals, end_symtab_get_static_block)
6769 (end_symtab_with_blockvector, augment_type_symtab)
6770 (buildsym_init): Update.
6772 2018-07-16 Tom Tromey <tom@tromey.com>
6774 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6776 (buildsym_compunit::set_last_source_file): New method.
6777 <m_last_source_file>: New member.
6778 (prepare_for_building): Remove "name" parameter.
6779 (start_symtab, restart_symtab, reset_symtab_globals): Update.
6780 (last_source_file): Remove.
6781 (set_last_source_file, get_last_source_file): Update.
6783 2018-07-16 Tom Tromey <tom@tromey.com>
6785 * buildsym.c (prepare_for_building): Add assert.
6787 2018-07-16 Tom Tromey <tom@tromey.com>
6789 * buildsym.c (~buildsym_compunit): Update.
6790 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6791 (start_subfile, patch_subfile_names)
6792 (end_symtab_with_blockvector): Update.
6794 2018-07-16 Tom Tromey <tom@tromey.com>
6796 * buildsym.c (struct buildsym_compunit): Add constructor,
6797 destructor, initializers.
6798 (start_buildsym_compunit): Remove.
6799 (free_buildsym_compunit): Use "delete".
6800 (start_symtab, restart_symtab): Use "new".
6802 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
6804 * symfile.c (set_objfile_default_section_offset): Remove struct
6807 2018-07-14 Stafford Horne <shorne@gmail.com>
6809 * (Responsible Maintainers): Add myself as or1k maintainer.
6811 2018-07-13 Tom Tromey <tom@tromey.com>
6813 * symfile.c (set_objfile_default_section_offset): Use extra braces
6816 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6818 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
6821 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6823 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6824 unittests/cli-utils-selftests.c
6825 * unittests/cli-utils-selftests.c: New file.
6827 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6829 * NEWS: Mention new commands. Mention change to 'thread apply'.
6831 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6833 * thread.c (thr_try_catch_cmd): New function.
6834 (thread_apply_all_command): Handle qcs flags.
6835 (thread_apply_command): Handle qcs flags.
6836 (taas_command): New function.
6837 (tfaas_command): New function.
6838 (_initialize_thread): Update to setup the new commands 'taas
6839 and 'tfaas'. Change doc string for 'thread apply'.
6841 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6843 * stack.c: (trailing_outermost_frame): New function, mostly
6844 extracted from backtrace_command_1.
6845 (leading_innermost_frame): New function.
6846 (backtrace_command_1): Update to call trailing_outermost_frame.
6847 (frame_apply_command_count): New function.
6848 (frame_apply_level_command): New function.
6849 (frame_apply_all_command): New function.
6850 (frame_apply_command): New function.
6851 (faas_command): New function.
6852 (frame_cmd_list): New variable.
6853 (_initialize_stack): Update to setup the new commands 'frame apply'
6856 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6858 * cli-utils.c (number_or_range_parser::get_number): Only handle
6859 numbers or convenience var as numbers.
6860 (parse_flags): New function.
6861 (parse_flags_qcs): New function.
6862 (number_or_range_parser::finished): Ensure parsing end is detected
6863 before end of string.
6864 * cli-utils.h (parse_flags): New function.
6865 (parse_flags_qcs): New function.
6866 (number_or_range_parser): Remove m_finished bool.
6867 (number_or_range_parser::skip_range): Set m_in_range to false.
6869 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
6871 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
6874 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6875 Jan Kratochvil <jan.kratochvil@redhat.com>
6876 Paul Fertser <fercerpav@gmail.com>
6877 Tsutomu Seki <sekiriki@gmail.com>
6878 Pedro Alves <palves@redhat.com>
6880 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6881 'unittests/parse-connection-spec-selftests.c'.
6882 (COMMON_SFILES): Add 'common/netstuff.c'.
6883 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
6884 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
6885 * common/netstuff.c: New file.
6886 * common/netstuff.h: New file.
6887 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
6888 (wait_for_connect): Update comment. New parameter
6889 'gdb::optional<int> sock' instead of 'struct serial *scb'.
6890 Use 'sock' directly instead of 'scb->fd'.
6891 (try_connect): New function, with code from 'net_open'.
6892 (net_open): Rewrite main loop to deal with multiple
6893 sockets/addresses. Handle IPv6-style hostnames; implement
6894 support for IPv6 connections.
6895 * unittests/parse-connection-spec-selftests.c: New file.
6897 2018-07-11 Pedro Alves <palves@redhat.com>
6900 * remote.c (remote_target::remote_detach_pid): Call
6901 set_current_process.
6903 2018-07-11 Pedro Alves <palves@redhat.com>
6905 * h8300-tdep.c (h8300_gdbarch_init): Remove
6906 set_gdbarch_ecoff_reg_to_regnum calls.
6908 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6911 * c-typeprint.c (c_type_print_base_struct_union): Don't print
6912 offsets/sizes for static members of a class/struct.
6914 2018-07-11 Alan Hayward <alan.hayward@arm.com>
6916 * target-descriptions.c (tdesc_register_bitsize): Rename.
6917 * target-descriptions.h (tdesc_register_bitsize): Likewise.
6918 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
6919 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
6921 2018-07-10 Tom Tromey <tom@tromey.com>
6923 * breakpoint.c (moribund_locations): Now static and a
6925 (breakpoint_init_inferior, moribund_breakpoint_here_p)
6926 (build_bpstat_chain, update_global_location_list)
6927 (breakpoint_retire_moribund): Update.
6928 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
6931 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6933 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
6934 (riscv_register_reggroup_p): Use new function, remove unneeded
6936 (riscv_push_dummy_call): Extend assert to compare against xlen or
6937 flen based on register type.
6939 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6941 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
6943 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6945 * remote.c (show_hardware_watchpoint_limit): New function.
6946 (show_hardware_watchpoint_length_limit): New function.
6947 (show_hardware_breakpoint_limit): New function.
6948 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
6949 where appropriate, update help text.
6951 2018-07-09 Tom Tromey <tom@tromey.com>
6953 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
6954 (CLIBS): Don't mention NAT_CLIBS.
6956 2018-07-09 Tom Tromey <tom@tromey.com>
6958 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
6959 (LIBGDB_OBS, clean mostlyclean): Update.
6960 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6962 2018-07-09 Tom Tromey <tom@tromey.com>
6964 * Makefile.in (%.c: %.y): Use ECHO_YACC.
6965 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
6966 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
6968 2018-07-09 Tom Tromey <tom@tromey.com>
6970 * Makefile.in (ALLDEPFILES): Remove exec.c.
6971 (COMMON_OBS): Remove exec.o.
6972 (COMMON_SFILES): Add exec.c.
6974 2018-07-09 Tom Tromey <tom@tromey.com>
6976 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
6978 2018-07-09 Tom Tromey <tom@tromey.com>
6980 * Makefile.in (clean mostlyclean): Remove stamp-version.
6981 (version.c): Depend on stamp-version.
6982 (stamp-version): New rule, from version.c rule.
6984 2018-07-09 Tom Tromey <tom@tromey.com>
6986 * Makefile.in (init.c): Depend on stamp-init.
6987 (stamp-init): New rule, from init.c rule.
6988 (clean mostlyclean): Remove stamp-init.
6990 2018-07-09 Tom Tromey <tom@tromey.com>
6992 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
6993 SUBDIR_GCC_COMPILE_SRCS.
6995 2018-07-09 Tom Tromey <tom@tromey.com>
6997 * Makefile.in (init.c): Remove some unused sed rules.
6999 2018-07-09 Tom Tromey <tom@tromey.com>
7001 * Makefile.in (TSOBS): Remove.
7002 (INIT_FILES): Update.
7003 (LIBGDB_OBS): Update.
7004 (COMMON_SFILES): Add inflow.c.
7005 (SFILES): Remove inflow.c.
7007 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7009 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
7011 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
7013 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
7014 get_saveloc_name, is_signal_frame_name, step_name,
7015 init_remote_name, create_addr_space_name,
7016 destroy_addr_space_name, search_unwind_table_name,
7017 find_dyn_list_name): Constify.
7019 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
7021 * darwin-nat.c (darwin_pthread_kill): New function.
7022 (darwin_resume_thread): Use darwin_pthread_kill.
7024 2018-07-05 Tom de Vries <tdevries@suse.de>
7026 * macroexp.c (macro_buffer) <operator=>: New member function.
7028 2018-07-04 Tom Tromey <tom@tromey.com>
7030 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
7032 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
7034 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
7035 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
7036 * maint.c: Likewise.
7039 2018-07-04 Joel Brobecker <brobecker@adacore.com>
7041 * NEWS: Create a new section for the next release branch.
7042 Rename the section of the current branch, now that it has
7045 2018-07-04 Joel Brobecker <brobecker@adacore.com>
7047 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
7048 * version.in: Bump version to 8.2.50.DATE-git.
7050 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
7051 Pedro Alves <palves@redhat.com>
7053 * linux-nat.c (linux_init_ptrace): Rename to ...
7054 (linux_init_ptrace_procfs): ... this. Call
7055 linux_proc_init_warnings.
7056 (linux_nat_target::post_attach)
7057 (linux_nat_target::post_startup_inferior): Adjust.
7058 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
7059 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
7061 2018-07-04 Tom de Vries <tdevries@suse.de>
7063 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
7065 (read_comp_unit_head): ... here.
7067 2018-07-03 Tom Tromey <tom@tromey.com>
7069 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
7070 (stop_tracing, tstatus_command)
7071 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
7072 (print_one_static_tracepoint_marker): Update.
7073 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
7075 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
7077 (all_tracepoints, static_tracepoints_here): Return std::vector.
7079 2018-07-03 Tom Tromey <tom@tromey.com>
7081 * common/ptid.c (ptid_equal): Remove.
7082 * common/ptid.h (ptid_equal): Don't declare.
7083 * ada-tasks.c: Update.
7084 * breakpoint.c: Update.
7085 * common/agent.c: Update.
7086 * corelow.c: Update.
7087 * darwin-nat-info.c: Update.
7088 * darwin-nat.c: Update.
7090 * dtrace-probe.c: Update.
7091 * dummy-frame.c: Update.
7092 * fbsd-nat.c: Update.
7094 * gdbthread.h: Update.
7095 * gnu-nat.c: Update.
7096 * go32-nat.c: Update.
7097 * inf-loop.c: Update.
7098 * inf-ptrace.c: Update.
7099 * infcall.c: Update.
7103 * linux-fork.c: Update.
7104 * linux-nat.c: Update.
7105 * linux-thread-db.c: Update.
7106 * mi/mi-cmd-var.c: Update.
7107 * mi/mi-interp.c: Update.
7108 * mi/mi-main.c: Update.
7109 * nto-procfs.c: Update.
7110 * ppc-linux-tdep.c: Update.
7112 * python/py-inferior.c: Update.
7113 * python/py-record-btrace.c: Update.
7114 * python/py-record.c: Update.
7115 * ravenscar-thread.c: Update.
7116 * regcache.c: Update.
7117 * remote-sim.c: Update.
7119 * sol-thread.c: Update.
7122 * tui/tui-stack.c: Update.
7124 * windows-nat.c: Update.
7125 * windows-tdep.c: Update.
7127 2018-07-03 Tom Tromey <tom@tromey.com>
7129 * common/ptid.c (ptid_match): Remove.
7130 * common/ptid.h (ptid_match): Don't declare.
7131 * fbsd-nat.c: Update.
7134 * linux-nat.c: Update.
7135 * record-btrace.c: Update.
7136 * regcache.c: Update.
7139 2018-07-03 Tom Tromey <tom@tromey.com>
7141 * common/ptid.c (ptid_tid_p): Remove.
7142 * common/ptid.h (ptid_tid_p): Don't declare.
7143 * sol-thread.c: Update.
7145 2018-07-03 Tom Tromey <tom@tromey.com>
7147 * common/ptid.c (ptid_lwp_p): Remove.
7148 * common/ptid.h (ptid_lwp_p): Don't declare.
7149 * fbsd-nat.c: Update.
7150 * linux-nat.c: Update.
7151 * nat/linux-procfs.c: Update.
7152 * nat/x86-linux-dregs.c: Update.
7153 * sol-thread.c: Update.
7155 2018-07-03 Tom Tromey <tom@tromey.com>
7157 * common/ptid.c (ptid_is_pid): Remove.
7158 * common/ptid.h (ptid_is_pid): Don't declare.
7160 * linux-nat.c: Update.
7161 * mi/mi-interp.c: Update.
7165 2018-07-03 Tom Tromey <tom@tromey.com>
7167 * common/ptid.c (ptid_get_tid): Remove.
7168 * common/ptid.h (ptid_get_tid): Don't declare.
7169 * ada-tasks.c: Update.
7170 * aix-thread.c: Update.
7171 * bsd-uthread.c: Update.
7172 * darwin-nat.c: Update.
7173 * fbsd-nat.c: Update.
7174 * i386-darwin-nat.c: Update.
7176 * linux-tdep.c: Update.
7177 * nto-procfs.c: Update.
7178 * ppc-ravenscar-thread.c: Update.
7179 * python/py-infthread.c: Update.
7180 * ravenscar-thread.c: Update.
7181 * sol-thread.c: Update.
7182 * sparc-ravenscar-thread.c: Update.
7183 * windows-nat.c: Update.
7185 2018-07-03 Tom Tromey <tom@tromey.com>
7187 * common/ptid.c (ptid_get_lwp): Remove.
7188 * common/ptid.h (ptid_get_lwp): Don't declare.
7189 * aarch64-linux-nat.c: Update.
7190 * ada-tasks.c: Update.
7191 * aix-thread.c: Update.
7192 * amd64-linux-nat.c: Update.
7193 * arm-linux-nat.c: Update.
7194 * corelow.c: Update.
7195 * fbsd-nat.c: Update.
7196 * fbsd-tdep.c: Update.
7197 * gnu-nat.c: Update.
7198 * i386-cygwin-tdep.c: Update.
7199 * i386-gnu-nat.c: Update.
7200 * i386-linux-nat.c: Update.
7201 * ia64-linux-nat.c: Update.
7202 * inf-ptrace.c: Update.
7204 * linux-fork.c: Update.
7205 * linux-nat.c: Update.
7206 * linux-tdep.c: Update.
7207 * linux-thread-db.c: Update.
7208 * mips-linux-nat.c: Update.
7209 * nat/aarch64-linux-hw-point.c: Update.
7210 * nat/aarch64-linux.c: Update.
7211 * nat/linux-btrace.c: Update.
7212 * nat/linux-osdata.c: Update.
7213 * nat/linux-procfs.c: Update.
7214 * nat/x86-linux-dregs.c: Update.
7215 * obsd-nat.c: Update.
7216 * ppc-fbsd-nat.c: Update.
7217 * ppc-linux-nat.c: Update.
7219 * python/py-infthread.c: Update.
7220 * ravenscar-thread.c: Update.
7222 * s390-linux-nat.c: Update.
7223 * sol-thread.c: Update.
7224 * sol2-tdep.c: Update.
7225 * spu-linux-nat.c: Update.
7226 * x86-linux-nat.c: Update.
7227 * xtensa-linux-nat.c: Update.
7229 2018-07-03 Tom Tromey <tom@tromey.com>
7231 * common/ptid.c (ptid_get_pid): Remove.
7232 * common/ptid.h (ptid_get_pid): Don't declare.
7233 * aarch64-linux-nat.c: Update.
7234 * ada-lang.c: Update.
7235 * aix-thread.c: Update.
7236 * alpha-bsd-nat.c: Update.
7237 * amd64-fbsd-nat.c: Update.
7238 * amd64-linux-nat.c: Update.
7239 * arm-linux-nat.c: Update.
7240 * arm-nbsd-nat.c: Update.
7242 * break-catch-syscall.c: Update.
7243 * breakpoint.c: Update.
7244 * bsd-uthread.c: Update.
7245 * corelow.c: Update.
7247 * darwin-nat.c: Update.
7248 * fbsd-nat.c: Update.
7249 * fbsd-tdep.c: Update.
7251 * gnu-nat.c: Update.
7252 * hppa-nbsd-nat.c: Update.
7253 * hppa-obsd-nat.c: Update.
7254 * i386-fbsd-nat.c: Update.
7255 * ia64-linux-nat.c: Update.
7256 * inf-ptrace.c: Update.
7258 * inferior.c: Update.
7259 * inferior.h: Update.
7262 * linux-fork.c: Update.
7263 * linux-nat.c: Update.
7264 * linux-tdep.c: Update.
7265 * linux-thread-db.c: Update.
7266 * m68k-bsd-nat.c: Update.
7267 * mi/mi-interp.c: Update.
7268 * mi/mi-main.c: Update.
7269 * mips-linux-nat.c: Update.
7270 * mips-nbsd-nat.c: Update.
7271 * mips64-obsd-nat.c: Update.
7272 * nat/aarch64-linux-hw-point.c: Update.
7273 * nat/aarch64-linux.c: Update.
7274 * nat/linux-btrace.c: Update.
7275 * nat/linux-osdata.c: Update.
7276 * nat/linux-procfs.c: Update.
7277 * nat/x86-linux-dregs.c: Update.
7278 * nto-procfs.c: Update.
7279 * obsd-nat.c: Update.
7280 * ppc-linux-nat.c: Update.
7281 * ppc-nbsd-nat.c: Update.
7282 * ppc-obsd-nat.c: Update.
7283 * proc-service.c: Update.
7285 * python/py-inferior.c: Update.
7286 * python/py-infthread.c: Update.
7287 * ravenscar-thread.c: Update.
7289 * remote-sim.c: Update.
7291 * rs6000-nat.c: Update.
7292 * s390-linux-nat.c: Update.
7293 * sh-nbsd-nat.c: Update.
7294 * sol-thread.c: Update.
7295 * sparc-nat.c: Update.
7296 * sparc64-tdep.c: Update.
7297 * spu-linux-nat.c: Update.
7298 * spu-tdep.c: Update.
7299 * target-debug.h: Update.
7302 * tid-parse.c: Update.
7303 * tracefile-tfile.c: Update.
7304 * vax-bsd-nat.c: Update.
7305 * windows-nat.c: Update.
7306 * x86-linux-nat.c: Update.
7307 * x86-nat.c: Update.
7309 2018-07-03 Tom Tromey <tom@tromey.com>
7311 * common/ptid.c (pid_to_ptid): Remove.
7312 * common/ptid.h (pid_to_ptid): Don't declare.
7313 * aix-thread.c: Update.
7314 * arm-linux-nat.c: Update.
7315 * common/ptid.c: Update.
7316 * common/ptid.h: Update.
7317 * corelow.c: Update.
7319 * darwin-nat.c: Update.
7320 * fbsd-nat.c: Update.
7321 * fork-child.c: Update.
7322 * gnu-nat.c: Update.
7323 * go32-nat.c: Update.
7324 * inf-ptrace.c: Update.
7326 * inferior.c: Update.
7328 * linux-fork.c: Update.
7329 * linux-nat.c: Update.
7330 * nat/aarch64-linux-hw-point.c: Update.
7331 * nat/fork-inferior.c: Update.
7332 * nat/x86-linux-dregs.c: Update.
7333 * nto-procfs.c: Update.
7334 * obsd-nat.c: Update.
7336 * progspace.c: Update.
7338 * rs6000-nat.c: Update.
7339 * s390-linux-nat.c: Update.
7340 * sol-thread.c: Update.
7341 * spu-linux-nat.c: Update.
7344 * tracefile-tfile.c: Update.
7345 * windows-nat.c: Update.
7347 2018-07-03 Tom Tromey <tom@tromey.com>
7349 * common/ptid.h (ptid_build): Don't declare.
7350 * common/ptid.c (ptid_build): Remove.
7351 * aix-thread.c: Update.
7352 * bsd-kvm.c: Update.
7353 * bsd-uthread.c: Update.
7354 * common/agent.c: Update.
7355 * common/ptid.c: Update.
7356 * common/ptid.h: Update.
7357 * corelow.c: Update.
7358 * darwin-nat.c: Update.
7359 * fbsd-nat.c: Update.
7360 * gnu-nat.c: Update.
7361 * linux-fork.c: Update.
7362 * linux-nat.c: Update.
7363 * linux-thread-db.c: Update.
7364 * nat/linux-osdata.c: Update.
7365 * nat/linux-procfs.c: Update.
7366 * nto-procfs.c: Update.
7367 * obsd-nat.c: Update.
7368 * proc-service.c: Update.
7370 * ravenscar-thread.c: Update.
7371 * remote-sim.c: Update.
7373 * sol-thread.c: Update.
7375 * windows-nat.c: Update.
7377 2018-07-03 Tom Tromey <tom@tromey.com>
7379 * infrun.c (follow_exec): Use exit_inferior_silent.
7380 * inferior.c (exit_inferior_num_silent): Remove.
7381 * inferior.h (exit_inferior_num_silent): Don't declare.
7383 2018-07-03 Tom Tromey <tom@tromey.com>
7386 * darwin-nat.c (darwin_attach_pid): Reset inferior and
7387 inferior_ptid on error.
7389 2018-07-02 Maciej W. Rozycki <macro@mips.com>
7390 Simon Marchi <simon.marchi@polymtl.ca>
7393 * disasm.h (gdb_disassembler): Add
7394 `m_disassembler_options_holder'. member
7395 * disasm.c (get_all_disassembler_options): New function.
7396 (gdb_disassembler::gdb_disassembler): Use it.
7397 (gdb_buffered_insn_length_init_dis): Likewise.
7398 (gdb_buffered_insn_length): Adjust accordingly.
7399 (set_disassembler_options): Handle options with arguments.
7400 (show_disassembler_options_sfunc): Likewise. Add a leading new
7401 line if showing options with descriptions.
7402 (disassembler_options_completer): Adapt to using the
7403 `disasm_options_and_args_t' structure.
7404 * mips-tdep.c (mips_disassembler_options): New variable.
7405 (mips_disassembler_options_o32): Likewise.
7406 (mips_disassembler_options_n32): Likewise.
7407 (mips_disassembler_options_n64): Likewise.
7408 (gdb_print_insn_mips): Don't set `disassembler_options'.
7409 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
7411 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
7412 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
7413 `gdbarch_disassembler_options_implicit' and
7414 `gdbarch_valid_disassembler_options'.
7415 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
7416 `disasm_options_and_args_t' structure.
7417 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
7419 (valid_disassembler_options): Switch from `disasm_options_t' to
7420 the `disasm_options_and_args_t' structure.
7421 * NEWS: Document `set disassembler-options' support for the MIPS
7423 * gdbarch.h: Regenerate.
7424 * gdbarch.c: Regenerate.
7426 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
7428 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
7430 2018-06-29 Joel Brobecker <brobecker@adacore.com>
7432 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
7433 parameter in call to amd64_target_description.
7434 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
7435 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
7436 (amd64fbsd_init_abi): Likewise.
7437 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7438 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7439 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7440 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
7442 2018-06-29 Pedro Alves <palves@redhat.com>
7444 * gdb/amd64-tdep.h (amd64_create_target_description): Add
7445 "segments" parameter.
7446 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
7447 (_initialize_amd64_tdep): Update call to
7448 amd64_create_target_description.
7449 (amd64_target_description): Add "segments" parameter. Adjust
7450 the implementation to use it.
7451 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
7452 call to amd64_create_target_description.
7453 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
7454 * gdb/arch/amd64.h (amd64_create_target_description): Add
7455 "segments" register.
7456 * gdb/arch/amd64.c (amd64_create_target_description): Add
7457 "segments" parameter. Call create_feature_i386_64bit_segments
7458 only if SEGMENTS is true.
7459 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
7460 call to amd64_create_target_description.
7462 2018-06-29 Pedro Alves <palves@redhat.com>
7464 * thread.c (thread_target_id_str): New, factored out from ...
7465 (print_thread_info_1): ... here. Use it to compute the max
7466 "Target Id" column width.
7468 2018-06-29 Pedro Alves <palves@redhat.com>
7470 * remote.c (remote_target::extra_thread_info): Delete
7471 'display_buf' and 'n' locals. from the cache, regardless of
7472 packet mechanims is in use. Use cache for qThreadExtra and qP
7475 2018-06-29 Pedro Alves <palves@redhat.com>
7477 * blockframe.c (find_pc_sect_containing_function): New function.
7478 * breakpoint.c (print_breakpoint_location): Don't call
7479 find_pc_sect_function.
7480 * linespec.c (create_sals_line_offset): Record the location's
7482 * linespec.c (convert_address_location_to_sals): Fill in sal's
7483 symbol with find_pc_sect_containing_function.
7484 * symtab.c (find_function_start_sal): Rename to ...
7485 (find_function_start_sal_1): ... this.
7486 (find_function_start_sal): Reimplement as wrapper around
7487 find_function_start_sal_1, and use
7488 find_pc_sect_containing_function to fill in the sal's symbol.
7489 (find_function_start_sal(symbol*, bool)): Adjust.
7490 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
7492 (find_pc_sect_containing_function): Declare.
7494 2018-06-29 Pedro Alves <palves@redhat.com>
7496 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
7497 true if the the location has no symbol.
7499 2018-06-28 Tom Tromey <tom@tromey.com>
7501 * NEWS: Mention --enable-codesign.
7502 * silent-rules.mk (ECHO_SIGN): New variable.
7503 * configure.ac: Add --enable-codesign.
7504 * configure: Rebuild.
7505 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
7506 (gdb$(EXEEXT)): Optionally invoke codesign.
7508 2018-06-28 Pedro Alves <palves@redhat.com>
7510 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
7512 (switch_to_thread_no_regs): Adjust comment.
7513 * infcmd.c (stop_pc): Delete.
7514 (post_create_inferior, info_program_command): Replace references
7515 to stop_pc with references to thread_info->suspend.stop_pc.
7516 * inferior.h (stop_pc): Delete declaration.
7517 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
7518 (handle_inferior_event_1, handle_signal_stop)
7519 (process_event_stop_test, keep_going_stepped_thread)
7520 (handle_step_into_function, handle_step_into_function_backward)
7521 (print_stop_location): Replace references to stop_pc with
7522 references to thread_info->suspend.stop_pc.
7523 (struct infcall_suspend_state) <stop_pc>: Delete field.
7524 (save_infcall_suspend_state, restore_infcall_suspend_state):
7525 Remove references to inf_stat->stop_pc.
7526 * linux-fork.c (fork_load_infrun_state): Likewise.
7527 * record-btrace.c (record_btrace_set_replay): Likewise.
7528 * record-full.c (record_full_goto_entry): Likewise.
7529 * remote.c (print_one_stopped_thread): Likewise.
7530 * target.c (target_resume): Extend comment.
7531 * thread.c (set_executing_thread): New.
7532 (set_executing): Use it.
7533 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
7534 Remove references to stop_pc.
7536 2018-06-28 Pedro Alves <palves@redhat.com>
7538 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
7539 Moving fetching stop_pc until after ecs->event_thread is refreshed.
7541 2018-06-28 Tom Tromey <tom@tromey.com>
7543 * coffread.c (coff_symfile_finish): Update.
7544 * xcoffread.c (xcoff_symfile_finish): Update.
7545 * elfread.c (elf_symfile_finish): Update.
7546 * symfile.h (dwarf2_free_objfile): Don't declare.
7547 * dwarf2read.c (_initialize_dwarf2_read): Use
7548 register_objfile_data_with_cleanup.
7549 (dwarf2_free_objfile): Now static. Change signature.
7551 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7553 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
7554 option "-o" to add-symbol-file-load to add an offset to each
7555 section's load address.
7556 * symfile.c (set_objfile_default_section_offset): New function.
7558 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7560 * symfile.c (add_symbol_file_command): Make sure that sections
7561 with the same name are sorted in the same order.
7563 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7565 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
7566 require the second argument. If omitted, load sections at the
7567 addresses specified in the file.
7569 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7571 * symfile.c (symbol_file_command, symbol_file_add_main_1)
7572 (_initialize_symfile): Add option "-o" to symbol-file to add an
7573 offset to each section of the symbol file.
7575 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
7577 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
7579 2018-06-27 Tom Tromey <tom@tromey.com>
7581 * stack.c (_initialize_stack): Update "func" help text.
7583 2018-06-27 Tom Tromey <tom@tromey.com>
7585 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
7587 (unwind_infopy_str, pyuw_create_unwind_info)
7588 (unwind_infopy_add_saved_register, pyuw_sniffer)
7589 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
7591 (struct saved_reg): Add constructor.
7592 <value>: Now a gdbpy_ref<>.
7594 2018-06-27 Tom Tromey <tom@tromey.com>
7596 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
7598 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7600 * gdb-gdb.py.in: Format using autopep8.
7602 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7604 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
7605 (type_lookup_function): Recognize CORE_ADDR values.
7607 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7609 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
7612 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7614 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
7617 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7619 * gdb-gdb.py: Move to...
7620 * gdb-gdb.py.in: ... here.
7621 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
7622 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
7624 (distclean): Remove gdb-gdb.py when cleaning.
7625 (gdb-gdb.py, gdb-gdb.gdb): New rules.
7626 * configure: Re-generate.
7628 2018-06-27 Pedro Alves <palves@redhat.com>
7630 * proc-service.c (get_ps_regcache): New.
7631 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7632 (ps_lsetfpregs): Use it.
7634 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
7637 * dwarf2read.c (lnp_state_machine::check_line_address): Update
7639 (dwarf_decode_lines_1): Adjust.
7641 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7643 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
7645 <info_proc>: Likewise.
7647 2018-06-26 Joel Brobecker <brobecker@adacore.com>
7649 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
7650 to windows_fetch_one_register, and only handle the case of
7651 fetching one register. Move the code that reloads the context
7652 and iterates over all registers if R is negative to...
7653 (windows_nat_target::fetch_registers): ... here.
7654 (do_windows_store_inferior_registers): Rename to
7655 windows_store_one_register, and only handle the case of storing
7656 one register. Move the code that handles the case where r is
7658 (windows_nat_target::store_registers) ... here.
7660 2018-06-26 Tom Tromey <tom@tromey.com>
7663 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
7664 * rust-lang.c (rust_print_struct_def): Add podata parameter.
7666 (rust_internal_print_type): Add podata parameter.
7667 (rust_print_type): Update.
7669 2018-06-26 Tom Tromey <tom@tromey.com>
7671 * typeprint.h (struct print_offset_data) <update, finish,
7672 maybe_print_hole>: New methods.
7673 <indentation>: New constant.
7674 * typeprint.c (print_offset_data::indentation): Define.
7675 (print_offset_data::maybe_print_hole, print_offset_data::update)
7676 (print_offset_data::finish): Move from c-typeprint.c and rename.
7677 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
7678 (print_spaces_filtered_with_print_options): Update.
7679 (c_print_type_union_field_offset, maybe_print_hole)
7680 (c_print_type_struct_field_offset): Move to typeprint.c and
7682 (c_type_print_base_struct_union): Update.
7684 2018-06-25 Pedro Alves <palves@redhat.com>
7686 * gdbthread.h (thread_info_ref, delete_thread)
7687 (delete_thread_silent, first_thread_of_inferior)
7688 (any_thread_of_inferior, switch_to_thread)
7689 (enable_thread_stack_temporaries)
7690 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7691 (get_last_thread_stack_temporary)
7692 (value_in_thread_stack_temporaries, can_access_registers_thread):
7693 Spell out "struct thread_info" instead of just "thread_info".
7694 * inferior.h (notice_new_inferior): Likewise.
7696 2018-06-25 Pedro Alves <palves@redhat.com>
7698 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7699 pass thread_info pointer to delete_thread.
7700 (windows_nat_target::detach): Pass inferior pointer to
7702 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
7704 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
7705 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
7706 and pass a thread_info pointer to delete_thread.
7707 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
7708 pass thread_info pointer to delete_thread.
7709 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
7710 delete_thread_silent call.
7711 * procfs.c (procfs_target::detach): Pass inferior pointer to
7713 (procfs_target::wait): Pass thread_info pointer to delete_thread.
7714 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
7715 delete_thread_silent call.
7716 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
7717 pass thread_info pointer to delete_thread.
7718 (windows_nat_target::detach): Pass inferior pointer to
7721 2018-06-22 Alan Hayward <alan.hayward@arm.com>
7723 * regcache.c (readable_regcache::read_part): Fix asserts.
7724 (reg_buffer::raw_collect_part): New function.
7725 (regcache::write_part): Fix asserts.
7726 (reg_buffer::raw_supply_part): New function.
7727 (regcache::transfer_regset_register): New helper function.
7728 (regcache::transfer_regset): Call new functions.
7729 (regcache_supply_regset): Use gdb_byte*.
7730 (regcache::supply_regset): Likewise.
7731 (regcache_collect_regset): Likewise.
7732 (regcache::collect_regset): Likewise.
7733 * regcache.h (reg_buffer::raw_collect_part): New declaration.
7734 (reg_buffer::raw_supply_part): Likewise.
7735 (regcache::transfer_regset_register): Likewise.
7736 (regcache::transfer_regset): Use gdb_byte*.
7738 2018-06-22 Alan Hayward <alan.hayward@arm.com>
7740 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
7742 2018-06-21 Pedro Alves <palves@redhat.com>
7744 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
7745 instead of a ptid_t. All callers adjusted.
7746 * ada-tasks.c (ada_get_task_number): Likewise. All callers
7748 (print_ada_task_info, display_current_task_id, task_command_1):
7750 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
7752 (breakpoint_kind): Adjust.
7753 (remove_breakpoints_pid): Rename to ...
7754 (remove_breakpoints_inf): ... this. Adjust to take an inferior
7755 pointer. All callers adjusted.
7756 (bpstat_clear_actions): Use inferior_thread.
7757 (get_bpstat_thread): New.
7758 (bpstat_do_actions): Use it.
7759 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
7760 to take a thread_info pointer. All callers adjusted.
7761 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
7762 (breakpoint_re_set_thread): Use inferior_thread.
7763 * breakpoint.h (struct inferior): Forward declare.
7764 (bpstat_stop_status): Update.
7765 (remove_breakpoints_pid): Delete.
7766 (remove_breakpoints_inf): New.
7767 * bsd-uthread.c (bsd_uthread_target::wait)
7768 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
7769 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7770 (maint_btrace_packet_history_cmd)
7771 (maint_btrace_clear_packet_history_cmd): Adjust.
7772 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7774 * cli/cli-interp.c: Include "inferior.h".
7775 * common/refcounted-object.h (struct
7776 refcounted_object_ref_policy): New.
7777 * compile/compile-object-load.c: Include gdbthread.h.
7778 (store_regs): Use inferior_thread.
7779 * corelow.c (core_target::close): Use current_inferior.
7780 (core_target_open): Adjust to use first_thread_of_inferior and use
7781 the current inferior.
7782 * ctf.c (ctf_target::close): Adjust to use current_inferior.
7783 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7784 <thread>: ... this new field. All references adjusted.
7785 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7786 Take a thread_info pointer instead of a ptid_t.
7787 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7788 (dummy_frame_discard, register_dummy_frame_dtor): Take a
7789 thread_info pointer instead of a ptid_t.
7790 * elfread.c: Include "inferior.h".
7791 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7792 Use inferior_thread.
7793 * eval.c (evaluate_subexp): Likewise.
7794 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
7796 * gdb_proc_service.h (struct thread_info): Forward declare.
7797 (struct ps_prochandle) <ptid>: Delete, replaced by ...
7798 <thread>: ... this new field. All references adjusted.
7799 * gdbarch.h, gdbarch.c: Regenerate.
7800 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
7801 'thread' parameter. All implementations and callers adjusted.
7802 * gdbthread.h (thread_info) <set_running>: New method.
7803 (delete_thread, delete_thread_silent): Take a thread_info pointer
7805 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
7806 (first_thread_of_process): Delete, replaced by ...
7807 (first_thread_of_inferior): ... this new function. All callers
7809 (any_live_thread_of_process): Delete, replaced by ...
7810 (any_live_thread_of_inferior): ... this new function. All callers
7812 (switch_to_thread, switch_to_no_thread): Declare.
7813 (is_executing): Delete.
7814 (enable_thread_stack_temporaries): Update comment.
7815 <enable_thread_stack_temporaries>: Take a thread_info pointer
7816 instead of a ptid_t. Incref the thread.
7817 <~enable_thread_stack_temporaries>: Decref the thread.
7820 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7821 (get_last_thread_stack_temporary)
7822 (value_in_thread_stack_temporaries, can_access_registers_thread):
7823 Take a thread_info pointer instead of a ptid_t. All callers
7825 * infcall.c (get_call_return_value): Use inferior_thread.
7826 (run_inferior_call): Work with thread pointers instead of ptid_t.
7827 (call_function_by_hand_dummy): Work with thread pointers instead
7828 of ptid_t. Use thread_info_ref.
7829 * infcmd.c (proceed_thread_callback): Access thread's state
7831 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
7832 access thread's state directly.
7833 (continue_command): Use inferior_thread.
7834 (info_program_command): Use find_thread_ptid and access thread
7836 (proceed_after_attach_callback): Use thread state directly.
7837 (notice_new_inferior): Take a thread_info pointer instead of a
7838 ptid_t. All callers adjusted.
7839 (exit_inferior): Take an inferior pointer instead of a pid. All
7841 (exit_inferior_silent): New.
7842 (detach_inferior): Delete.
7843 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
7844 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
7845 (detach_inferior_command, kill_inferior_command): Use
7846 find_inferior_id instead of valid_gdb_inferior_id and
7847 gdb_inferior_id_to_pid.
7848 (inferior_command): Use inferior and thread pointers.
7849 * inferior.h (struct thread_info): Forward declare.
7850 (notice_new_inferior): Take a thread_info pointer instead of a
7851 ptid_t. All callers adjusted.
7852 (detach_inferior): Delete declaration.
7853 (exit_inferior, exit_inferior_silent): Take an inferior pointer
7854 instead of a pid. All callers adjusted.
7855 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
7856 (valid_gdb_inferior_id): Delete.
7857 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
7858 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
7859 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
7861 <inf>: ... this new field.
7862 <step_ptid>: Delete, replaced by ...
7863 <step_thread>: ... this new field.
7864 (get_displaced_stepping_state): Take an inferior pointer instead
7865 of a pid. All callers adjusted.
7866 (displaced_step_in_progress_any_inferior): Adjust.
7867 (displaced_step_in_progress_thread): Take a thread pointer instead
7868 of a ptid_t. All callers adjusted.
7869 (displaced_step_in_progress, add_displaced_stepping_state): Take
7870 an inferior pointer instead of a pid. All callers adjusted.
7871 (get_displaced_step_closure_by_addr): Adjust.
7872 (remove_displaced_stepping_state): Take an inferior pointer
7873 instead of a pid. All callers adjusted.
7874 (displaced_step_prepare_throw, displaced_step_prepare)
7875 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
7876 All callers adjusted.
7877 (start_step_over): Adjust.
7878 (infrun_thread_ptid_changed): Remove bit updating ptids in the
7879 displaced step queue.
7880 (do_target_resume): Adjust.
7881 (fetch_inferior_event): Use inferior_thread.
7882 (context_switch, get_inferior_stop_soon): Take an
7883 execution_control_state pointer instead of a ptid_t. All callers
7885 (switch_to_thread_cleanup): Delete.
7886 (stop_all_threads): Use scoped_restore_current_thread.
7887 * inline-frame.c: Include "gdbthread.h".
7888 (inline_state) <inline_state>: Take a thread pointer instead of a
7889 ptid_t. All callers adjusted.
7890 <ptid>: Delete, replaced by ...
7891 <thread>: ... this new field.
7892 (find_inline_frame_state): Take a thread pointer instead of a
7893 ptid_t. All callers adjusted.
7894 (skip_inline_frames, step_into_inline_frame)
7895 (inline_skipped_frames, inline_skipped_symbol): Take a thread
7896 pointer instead of a ptid_t. All callers adjusted.
7897 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
7898 (inline_skipped_frames, inline_skipped_symbol): Likewise.
7899 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
7901 * linux-nat.c (get_detach_signal): Likewise.
7902 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
7903 (thread_db_notice_clone): Adjust.
7904 (thread_db_find_new_threads_silently)
7905 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
7906 a thread pointer instead of a ptid_t. All callers adjusted.
7907 * mi/mi-cmd-var.c: Include "inferior.h".
7908 (mi_cmd_var_update_iter): Update to use thread pointers.
7909 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
7911 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
7913 (mi_output_running): ... this new function.
7914 (mi_on_resume_1): Adjust to use it.
7915 (mi_user_selected_context_changed): Adjust to use inferior_thread.
7916 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
7918 (interrupt_thread_callback): : Adjust to use thread and inferior
7920 * proc-service.c: Include "gdbthread.h".
7921 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
7922 * progspace-and-thread.c: Include "inferior.h".
7923 * progspace.c: Include "inferior.h".
7924 * python/py-exitedevent.c (create_exited_event_object): Adjust to
7925 hold a reference to an inferior_object.
7926 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
7928 * python/py-inferior.c (struct inferior_object): Give the type a
7929 tag name instead of a typedef.
7930 (python_on_normal_stop): No need to check if the current thread is
7932 (inferior_to_inferior_object): Change return type to
7933 inferior_object. All callers adjusted.
7934 (find_thread_object): Delete, bits factored out to ...
7935 (thread_to_thread_object): ... this new function.
7936 * python/py-infthread.c (create_thread_object): Use
7937 inferior_to_inferior_object.
7938 (thpy_is_stopped): Use thread pointer directly.
7939 (gdbpy_selected_thread): Use inferior_thread.
7940 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
7941 field, replaced with ...
7942 <thread>: ... this new field. All users adjusted.
7943 (btpy_insn_or_gap_new): Drop const.
7944 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
7946 * python/py-record.c: Include "gdbthread.h".
7947 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7948 a ptid_t. All callers adjusted.
7949 (gdbpy_current_recording): Use inferior_thread.
7950 * python/py-record.h (recpy_record_object) <ptid>: Delete
7951 field, replaced with ...
7952 <thread>: ... this new field. All users adjusted.
7953 (recpy_element_object) <ptid>: Delete
7954 field, replaced with ...
7955 <thread>: ... this new field. All users adjusted.
7956 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7957 a ptid_t. All callers adjusted.
7958 * python/py-threadevent.c: Include "gdbthread.h".
7959 (get_event_thread): Use thread_to_thread_object.
7960 * python/python-internal.h (struct inferior_object): Forward
7962 (find_thread_object, find_inferior_object): Delete declarations.
7963 (thread_to_thread_object, inferior_to_inferior_object): New
7965 * record-btrace.c: Include "inferior.h".
7966 (require_btrace_thread): Use inferior_thread.
7967 (record_btrace_frame_sniffer)
7968 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
7969 (get_thread_current_frame): Use scoped_restore_current_thread and
7971 (get_thread_current_frame): Use thread pointer directly.
7972 (record_btrace_replay_at_breakpoint): Use thread's inferior
7974 * record-full.c: Include "inferior.h".
7975 * regcache.c: Include "gdbthread.h".
7976 (get_thread_arch_regcache): Use the inferior's address space
7978 (get_thread_regcache, registers_changed_thread): New.
7979 * regcache.h (get_thread_regcache(thread_info *thread)): New
7981 (registers_changed_thread): New.
7982 (remote_target) <remote_detach_1>: Swap order of parameters.
7983 (remote_add_thread): <remote_add_thread>: Return the new thread.
7984 (get_remote_thread_info(ptid_t)): New overload.
7985 (remote_target::remote_notice_new_inferior): Use thread pointers
7987 (remote_target::process_initial_stop_replies): Use
7988 thread_info::set_running.
7989 (remote_target::remote_detach_1, remote_target::detach)
7990 (extended_remote_target::detach): Adjust.
7991 * stack.c (frame_show_address): Use inferior_thread.
7992 * target-debug.h (target_debug_print_thread_info_pp): New.
7993 * target-delegates.c: Regenerate.
7994 * target.c (default_thread_address_space): Delete.
7995 (memory_xfer_partial_1): Use current_inferior.
7996 (target_detach): Use current_inferior.
7997 (target_thread_address_space): Delete.
7998 (generic_mourn_inferior): Use current_inferior.
7999 * target.h (struct target_ops) <thread_address_space>: Delete.
8000 (target_thread_address_space): Delete.
8001 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
8003 (delete_thread_1, delete_thread, delete_thread_silent): Take a
8004 thread pointer instead of a ptid_t. Adjust all callers.
8005 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
8006 (first_thread_of_process): Delete, replaced by ...
8007 (first_thread_of_inferior): ... this new function. All callers
8009 (any_thread_of_process): Rename to ...
8010 (any_thread_of_inferior): ... this, and take an inferior pointer.
8011 (any_live_thread_of_process): Rename to ...
8012 (any_live_thread_of_inferior): ... this, and take an inferior
8014 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
8015 (value_in_thread_stack_temporaries)
8016 (get_last_thread_stack_temporary): Take a thread pointer instead
8017 of a ptid_t. Adjust all callers.
8018 (thread_info::set_running): New.
8019 (validate_registers_access): Use inferior_thread.
8020 (can_access_registers_ptid): Rename to ...
8021 (can_access_registers_thread): ... this, and take a thread
8023 (print_thread_info_1): Adjust to compare thread pointers instead
8025 (switch_to_no_thread, switch_to_thread): Make extern.
8026 (scoped_restore_current_thread::~scoped_restore_current_thread):
8027 Use m_thread pointer directly.
8028 (scoped_restore_current_thread::scoped_restore_current_thread):
8029 Use inferior_thread.
8030 (thread_command): Use thread pointer directly.
8031 (thread_num_make_value_helper): Use inferior_thread.
8032 * top.c (execute_command): Use inferior_thread.
8033 * tui/tui-interp.c: Include "inferior.h".
8034 * varobj.c (varobj_create): Use inferior_thread.
8035 (value_of_root_1): Use find_thread_global_id instead of
8036 global_thread_id_to_ptid.
8038 2018-06-21 Alan Hayward <alan.hayward@arm.com>
8040 * regcache.c (readable_regcache::read_part): Avoid memcpy when
8042 (regcache::write_part): Likewise.
8043 (readable_regcache::cooked_read_part): Update comment.
8044 (readable_regcache::cooked_write_part): Likewise.
8045 * regcache.h: (readable_regcache::read_part): Likewise.
8046 (regcache::write_part): Likewise.
8048 2018-06-21 Richard Bunt <richard.bunt@arm.com>
8049 Dirk Schubert <dirk.schubert@arm.com>
8051 * aarch64-linux-nat.c (post_attach): New.
8052 (aarch64_linux_nat_target::post_attach): Override post_attach to
8053 record the number of hardware debug registers.
8055 2018-06-20 Tom Tromey <tom@tromey.com>
8057 * python/py-param.c (add_setshow_generic): Make parameters const.
8058 (parmpy_init): Update.
8060 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
8062 * regcache.h (regcache_cooked_read_ftype): Rename to...
8063 (register_read_ftype): ...this, change type to function_view.
8064 (class reg_buffer) <save>: Remove src parameter.
8065 (readonly_detached_regcache) <readonly_detached_regcache>: Make
8066 parameter non-const in first overload. Remove src parameter in
8068 * regcache.c (do_cooked_read): Remove.
8069 (readonly_detached_regcache::readonly_detached_regcache): Make
8070 parameter non-const, adjust call to other constructor.
8071 (reg_buffer::save): Remove src parameter.
8072 * frame.c (do_frame_register_read): Remove.
8073 (frame_save_as_regcache): Use lambda function.
8074 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
8075 parameter to ppu2spu_data *.
8076 (ppu2spu_sniffer): Use lambda function.
8078 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
8080 * record-full.c (record_full_target::insert_breakpoint): Remove
8081 "struct" keyword, add const.
8083 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
8085 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
8086 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
8087 * configure.ac: Remove AC_PREREQ, add missing quoting.
8088 * gnulib/configure.ac: Modernize usage of
8089 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
8090 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
8091 (AUTOMAKE_VERSION): Bump to 1.15.1.
8092 * configure: Re-generate.
8093 * config.in: Re-generate.
8094 * aclocal.m4: Re-generate.
8095 * gnulib/aclocal.m4: Re-generate.
8096 * gnulib/config.in: Re-generate.
8097 * gnulib/configure: Re-generate.
8098 * gnulib/import/Makefile.in: Re-generate.
8100 2018-06-19 Pedro Alves <palves@redhat.com>
8102 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
8103 (lookup_minimal_symbol_by_pc_section): ... here with
8104 gdb_assert_not_reached added.
8106 2018-06-19 Pedro Alves <palves@redhat.com>
8108 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
8109 parameter with a block parameter. Compare location's block symbol
8110 with the frame's block instead of addresses.
8111 (skip_inline_frames): Pass the current block instead of the
8112 frame's address. Break out as soon as we determine the frame
8113 should not be skipped.
8115 2018-06-18 Tom Tromey <tom@tromey.com>
8117 * solib-aix.c (solib_aix_get_section_offsets): Return
8119 (solib_aix_solib_create_inferior_hook): Update.
8121 2018-06-18 Tom Tromey <tom@tromey.com>
8123 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
8125 2018-06-18 Tom Tromey <tom@tromey.com>
8127 * solib-frv.c (frv_relocate_main_executable): Use
8129 * solib-dsbt.c (dsbt_relocate_main_executable): Use
8132 2018-06-18 Tom Tromey <tom@tromey.com>
8134 * objfiles.h (inhibit_section_map_updates): Update.
8135 (resume_section_map_updates, resume_section_map_updates_cleanup):
8137 * solib-svr4.c (svr4_handle_solib_event): Update.
8138 * objfiles.c (inhibit_section_map_updates): Return
8139 scoped_restore_tmpl<int>.
8140 (resume_section_map_updates, resume_section_map_updates_cleanup):
8143 2018-06-18 Tom Tromey <tom@tromey.com>
8145 * valprint.h (read_string): Update.
8146 * valprint.c (read_string): Change type of "buffer".
8147 (val_print_string): Update.
8148 * python/py-value.c (valpy_string): Update.
8149 * language.h (struct language_defn) <la_get_string>: Change
8151 (default_get_string, c_get_string): Update.
8152 * language.c (default_get_string): Change type of "buffer".
8153 * guile/scm-value.c (gdbscm_value_to_string): Update.
8154 * c-lang.c (c_get_string): Change type of "buffer".
8156 2018-06-18 Tom Tromey <tom@tromey.com>
8158 * ser-mingw.c (struct pipe_state_destroyer): New.
8159 (pipe_state_up): New typedef.
8160 (cleanup_pipe_state): Remove.
8161 (pipe_windows_open): Use pipe_state_up. Don't release argv.
8163 2018-06-18 Tom Tromey <tom@tromey.com>
8165 * rust-lang.h (rust_yyerror): Don't declare.
8166 * rust-lang.c (rust_language_defn): Update.
8167 * rust-exp.y (yyerror): Now static.
8168 * parse.c (parse_exp_in_context_1): Update.
8169 * p-lang.h (p_yyerror): Don't declare.
8170 * p-lang.c (p_language_defn): Update.
8171 * p-exp.y (yyerror): Now static.
8172 * opencl-lang.c (opencl_language_defn): Update.
8173 * objc-lang.c (objc_language_defn): Update.
8174 * m2-lang.h (m2_yyerror): Don't declare.
8175 * m2-lang.c (m2_language_defn): Update.
8176 * m2-exp.y (yyerror): Now static.
8177 * language.h (struct language_defn) <la_error>: Remove.
8178 * language.c (unk_lang_error): Remove.
8179 (unknown_language_defn, auto_language_defn): Remove.
8180 * go-lang.h (go_yyerror): Don't declare.
8181 * go-lang.c (go_language_defn): Update.
8182 * go-exp.y (yyerror): Now static.
8183 * f-lang.h (f_yyerror): Don't declare.
8184 * f-lang.c (f_language_defn): Update.
8185 * f-exp.y (yyerror): Now static.
8186 * d-lang.h (d_yyerror): Don't declare.
8187 * d-lang.c (d_language_defn): Update.
8188 * d-exp.y (yyerror): Now static.
8189 * c-lang.h (c_yyerror): Don't declare.
8190 * c-lang.c (c_language_defn, cplus_language_defn)
8191 (asm_language_defn, minimal_language_defn): Update.
8192 * c-exp.y (yyerror): Now static.
8193 * ada-lang.h (ada_yyerror): Don't declare.
8194 * ada-lang.c (ada_language_defn): Update.
8195 * ada-exp.y (yyerror): Now static.
8197 2018-06-18 Alan Hayward <alan.hayward@arm.com>
8199 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
8200 (store_sveregs_to_thread): Likewise.
8201 (aarch64_linux_fetch_inferior_registers): Check for SVE.
8202 (aarch64_linux_store_inferior_registers): Likewise.
8203 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
8205 (aarch64_sve_regs_copy_to_regcache): Likewise.
8206 (aarch64_sve_regs_copy_from_regcache): Likewise.
8207 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
8209 (aarch64_sve_regs_copy_to_regcache): Likewise.
8210 (aarch64_sve_regs_copy_from_regcache): Likewise.
8211 (sve_context): Structure from Linux headers.
8212 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
8213 (SVE_SIG_ZREG_SIZE): Likewise.
8214 (SVE_SIG_PREG_SIZE): Likewise.
8215 (SVE_SIG_FFR_SIZE): Likewise.
8216 (SVE_SIG_REGS_OFFSET): Likewise.
8217 (SVE_SIG_ZREGS_OFFSET): Likewise.
8218 (SVE_SIG_ZREG_OFFSET): Likewise.
8219 (SVE_SIG_ZREGS_SIZE): Likewise.
8220 (SVE_SIG_PREGS_OFFSET): Likewise.
8221 (SVE_SIG_PREG_OFFSET): Likewise.
8222 (SVE_SIG_PREGS_SIZE): Likewise.
8223 (SVE_SIG_FFR_OFFSET): Likewise.
8224 (SVE_SIG_REGS_SIZE): Likewise.
8225 (SVE_SIG_CONTEXT_SIZE): Likewise.
8226 (SVE_PT_REGS_MASK): Likewise.
8227 (SVE_PT_REGS_FPSIMD): Likewise.
8228 (SVE_PT_REGS_SVE): Likewise.
8229 (SVE_PT_VL_INHERIT): Likewise.
8230 (SVE_PT_VL_ONEXEC): Likewise.
8231 (SVE_PT_REGS_OFFSET): Likewise.
8232 (SVE_PT_FPSIMD_OFFSET): Likewise.
8233 (SVE_PT_FPSIMD_SIZE): Likewise.
8234 (SVE_PT_SVE_ZREG_SIZE): Likewise.
8235 (SVE_PT_SVE_PREG_SIZE): Likewise.
8236 (SVE_PT_SVE_FFR_SIZE): Likewise.
8237 (SVE_PT_SVE_FPSR_SIZE): Likewise.
8238 (SVE_PT_SVE_FPCR_SIZE): Likewise.
8239 (__SVE_SIG_TO_PT): Likewise.
8240 (SVE_PT_SVE_OFFSET): Likewise.
8241 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
8242 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
8243 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
8244 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
8245 (SVE_PT_SVE_PREG_OFFSET): Likewise.
8246 (SVE_PT_SVE_PREGS_SIZE): Likewise.
8247 (SVE_PT_SVE_FFR_OFFSET): Likewise.
8248 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
8249 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
8250 (SVE_PT_SVE_SIZE): Likewise.
8251 (SVE_PT_SIZE): Likewise.
8252 (HAS_SVE_STATE): New define.
8254 2018-06-18 Alan Hayward <alan.hayward@arm.com>
8256 * nat/aarch64-sve-linux-sigcontext.h: New file.
8257 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
8259 (SVE_VQ_MIN): Likewise.
8260 (SVE_VQ_MAX): Likewise.
8261 (SVE_VL_MIN): Likewise.
8262 (SVE_VL_MAX): Likewise.
8263 (SVE_NUM_ZREGS): Likewise.
8264 (SVE_NUM_PREGS): Likewise.
8265 (sve_vl_valid): Likewise.
8266 (struct user_sve_header): Likewise.
8268 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8269 Richard Bunt <Richard.Bunt@arm.com>
8271 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
8272 was requested by GDB.
8274 2018-06-15 Tom de Vries <tdevries@suse.de>
8276 * MAINTAINERS (Write After Approval): Add Tom de Vries.
8278 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
8280 * gnulib/update-gnulib.sh: Print expected versions of
8283 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
8285 * arch-utils.c (default_type_align): Use type_length_units.
8286 * gdbtypes.c (type_align): Use type_length_units.
8288 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8290 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
8291 of 'define' command.
8293 2018-06-14 Tom de Vries <tdevries@suse.de>
8296 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
8297 get_no_prettyformat_print_options.
8299 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
8301 * sparc-nat.h: Include target.h.
8302 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
8303 <fetch_registers>: Remove this argument in function call.
8304 <store_registers>: Remove this argument in function call, remove
8306 <low_forget_process>: Call sparc64_forget_process instead of
8307 sparc_forget_process.
8309 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8311 * procfs.c (_initialize_procfs): Use add_inf_child_target.
8312 (procfs_target::make_corefile_notes): Adjust to new
8313 target_read_alloc return type.
8315 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8316 Stephen Roberts <stephen.roberts@arm.com>
8319 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
8320 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
8321 Move should_notify_stop local into more inner scope.
8323 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8324 Stephen Roberts <stephen.roberts@arm.com>
8327 * infrun.c (resume_1): Add call to mark_async_event_handler.
8329 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
8331 * infrun.c (do_target_wait): Change old version of $pc printed.
8333 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
8335 * dwarf2read.c (read_index_from_section): Rename to...
8336 (read_gdb_index_from_section): ... this, update all callers.
8337 (dwarf2_read_index): Rename to...
8338 (dwarf2_read_gdb_index): ... this, update all callers.
8340 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
8343 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
8344 hppa_linux_nat_target::fetch_registers.
8346 2018-06-11 Alan Hayward <alan.hayward@arm.com>
8348 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
8349 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
8350 (AARCH64_DWARF_SVE_FFR): Likewise.
8351 (AARCH64_DWARF_SVE_P0): Likewise.
8352 (AARCH64_DWARF_SVE_Z0): Likewise.
8354 2018-06-11 Alan Hayward <alan.hayward@arm.com>
8356 * common/common-regcache.h (raw_compare): New function.
8357 * regcache.c (regcache::raw_compare): Likewise.
8358 * regcache.h (regcache::raw_compare): New declaration.
8360 2018-06-11 Alan Hayward <alan.hayward@arm.com>
8362 * common/common-regcache.h (reg_buffer_common): New structure.
8363 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
8364 (reg_buffer::raw_supply): Likewise.
8365 (reg_buffer::raw_supply_integer): Likewise.
8366 (reg_buffer::raw_supply_zeroed): Likewise.
8367 (reg_buffer::raw_collect): Likewise.
8368 (reg_buffer::raw_collect_integer): Likewise.
8369 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
8370 (reg_buffer::raw_supply): Likewise.
8371 (reg_buffer::raw_supply_integer): Likewise.
8372 (reg_buffer::raw_supply_zeroed): Likewise.
8373 (reg_buffer::raw_collect): Likewise.
8374 (reg_buffer::raw_collect_integer): Likewise.
8376 2018-06-10 Tom Tromey <tom@tromey.com>
8378 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
8379 (class remote_state) <stop_reply_queue>: Now std::vector.
8380 (remote_state::~remote_state)
8381 (remote_target::stop_reply_queue_length): Update.
8382 (struct queue_iter_param, remove_child_of_pending_fork)
8383 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
8384 (check_pending_event_prevents_wildcard_vcont_callback)
8385 (remove_stop_reply_for_inferior)
8386 (remove_stop_reply_of_remote_state)
8387 (remote_notif_remove_once_on_match)
8388 (stop_reply_match_ptid_and_ws)
8389 (remote_kill_child_of_pending_fork): Remove.
8390 (remote_target::remove_new_fork_children)
8391 (remote_target::check_pending_events_prevent_wildcard_vcont)
8392 (remote_target::discard_pending_stop_replies)
8393 (remote_target::discard_pending_stop_replies_in_queue)
8394 (remote_target::remote_notif_remove_queued_reply)
8395 (remote_target::queued_stop_reply)
8396 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
8397 (remote_target::wait, remote_target::kill_new_fork_children)
8398 (remote_target::async): Update.
8400 2018-06-10 Tom Tromey <tom@tromey.com>
8402 * record-full.c (record_full_arch_list_cleanups): Remove.
8403 (record_full_message): Use try/catch.
8404 (record_full_wait_cleanups): Remove.
8405 (record_full_wait_1): Use try/catch.
8406 (record_full_restore): Likewise.
8408 2018-06-10 Tom Tromey <tom@tromey.com>
8410 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
8411 declare VEC. Add constructor.
8412 <in_target_beneath>: Now bool.
8413 (record_full_breakpoints): Now a std::vector, static.
8414 (record_full_sync_record_breakpoints)
8415 (record_full_init_record_breakpoints)
8416 (record_full_target::insert_breakpoint)
8417 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
8419 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8421 * dwarf2read.c (process_cu_includes): Remove struct keyword.
8422 * serial.c (serial_interface_lookup): Remove struct keyword.
8424 2018-06-10 Tom Tromey <tom@tromey.com>
8426 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
8428 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
8430 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
8432 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
8433 "beneath" as a method.
8434 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
8435 Use "beneath" as a method.
8437 2018-06-10 Tom Tromey <tom@tromey.com>
8439 * tracefile.c (struct trace_file_writer_deleter): New.
8440 <operator()>: Rename from trace_file_writer_xfree.
8441 (trace_file_writer_up): New typedef.
8442 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
8444 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8446 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
8447 <m_registers, m_register_status>: Change type to
8449 * regcache.c (reg_buffer::reg_buffer): Use new instead of
8452 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
8454 * common/common-regcache.h (enum register_status): Add
8455 underlying type "signed char".
8456 * regcache.h (reg_buffer) <m_register_status>: Change type to
8458 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
8459 register_status instead of signed char.
8460 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
8461 (reg_buffer::get_register_status): Remove cast.
8462 (readable_regcache::raw_read): Remove cast.
8463 (readable_regcache::cooked_read): Remove cast.
8465 2018-06-09 Tom Tromey <tom@tromey.com>
8467 * source.c (reverse_search_command, forward_search_command): Use
8470 2018-06-09 Tom Tromey <tom@tromey.com>
8472 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
8473 (serial_ops_list): Now static, std::vector.
8474 (serial_interface_lookup, serial_add_interface): Update.
8476 2018-06-09 Tom Tromey <tom@tromey.com>
8478 * dwarf2read.c (process_cu_includes): Update.
8479 (process_full_comp_unit): Update.
8480 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
8483 2018-06-08 Paul Koning <paul_koning@dell.com>
8487 * python/python.c (do_start_initialization):
8488 Avoid call to internal Python API.
8489 (init__gdb_module): New function.
8491 2018-06-08 Gary Benson <gbenson@redhat.com>
8493 * linux-thread-db.c (valprint.h): New include.
8494 (struct check_thread_db_info): New structure.
8495 (check_thread_db_on_load, tdb_testinfo): New static globals.
8496 (check_thread_db, check_thread_db_callback): New functions.
8497 (try_thread_db_load_1): Run integrity checks if requested.
8498 (maintenance_check_libthread_db): New function.
8499 (_initialize_thread_db): Register "maint check libthread-db"
8500 and "maint set/show check-libthread-db".
8501 * NEWS: Mention the above new commands.
8503 2018-06-08 Tom Tromey <tom@tromey.com>
8505 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
8508 2018-06-08 Tom Tromey <tom@tromey.com>
8510 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
8512 2018-06-08 Tom Tromey <tom@tromey.com>
8514 * common/btrace-common.h (struct btrace_data): Add constructor,
8515 destructor, move assignment operator.
8516 <empty, clear, fini>: New methods.
8517 <format>: Initialize.
8518 (btrace_data_init, btrace_data_fini, btrace_data_clear)
8519 (btrace_data_empty): Don't declare.
8520 * common/btrace-common.c (btrace_data_init): Remove.
8521 (btrace_data::fini): Rename from btrace_data_fini.
8522 (btrace_data::empty): Rename from btrace_data_empty.
8523 (btrace_data::clear): Rename from btrace_data_clear. Return
8525 * btrace.h (make_cleanup_btrace_data): Don't declare.
8526 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
8527 (parse_xml_btrace): Update.
8528 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
8529 (maint_btrace_clear_packet_history_cmd): Update.
8531 2018-06-07 Pedro Alves <palves@redhat.com>
8533 * target.h (target_ops) <beneath>: Now a method. All references
8535 (class target_stack): New.
8536 * target.c (g_target_stack): New.
8537 (g_current_top_target): Delete.
8538 (current_top_target): Get the top target out of g_target_stack.
8539 (target_stack::push, target_stack::unpush): New.
8540 (push_target, unpush_target): Reimplement.
8541 (target_is_pushed): Reimplement in terms of g_target_stack.
8542 (target_ops::beneath, target_stack::find_beneath): New.
8544 2018-06-07 Pedro Alves <palves@redhat.com>
8546 * target.h (find_target_beneath): Delete declaration.
8547 * target.c (find_target_beneath): Delete definition.
8548 * aix-thread.c: All callers of find_target_beneath adjusted to
8549 call target_ops::beneath instead.
8550 * bsd-uthread.c: Likewise.
8551 * linux-thread-db.c: Likewise.
8552 * ravenscar-thread.c: Likewise.
8553 * sol-thread.c: Likewise.
8554 * spu-multiarch.c: Likewise.
8556 2018-06-07 Pedro Alves <palves@redhat.com>
8558 * target.h (target_ops) <beneath>: Now a method. All references
8560 (target_ops) <m_beneath>: New.
8561 * target.c (target_ops::beneath): New.
8562 * corelow.c: Adjust all references to target_ops::beneath.
8563 * linux-thread-db.c: Likewise.
8564 * make-target-delegates: Likewise.
8565 * record-btrace.c: Likewise.
8566 * record-full.c: Likewise.
8567 * remote.c: Likewise.
8568 * target.c: Likewise.
8569 * target-delegates.c: Regenerate.
8571 2018-06-07 Pedro Alves <palves@redhat.com>
8573 * target.h (target_stack): Delete.
8574 (current_top_target): Declare function.
8575 * target.c (target_stack): Delete.
8576 (g_current_top_target): New.
8577 (current_top_target): New function.
8578 * auxv.c: Use current_top_target instead of target_stack
8580 * avr-tdep.c: Likewise.
8581 * breakpoint.c: Likewise.
8582 * corefile.c: Likewise.
8583 * elfread.c: Likewise.
8585 * exceptions.c: Likewise.
8586 * frame.c: Likewise.
8587 * gdbarch-selftests.c: Likewise.
8588 * gnu-v3-abi.c: Likewise.
8589 * ia64-tdep.c: Likewise.
8590 * ia64-vms-tdep.c: Likewise.
8591 * infcall.c: Likewise.
8592 * infcmd.c: Likewise.
8593 * infrun.c: Likewise.
8594 * linespec.c: Likewise.
8595 * linux-tdep.c: Likewise.
8596 * minsyms.c: Likewise.
8597 * ppc-linux-nat.c: Likewise.
8598 * ppc-linux-tdep.c: Likewise.
8599 * procfs.c: Likewise.
8600 * regcache.c: Likewise.
8601 * remote.c: Likewise.
8602 * rs6000-tdep.c: Likewise.
8603 * s390-linux-nat.c: Likewise.
8604 * s390-tdep.c: Likewise.
8605 * solib-aix.c: Likewise.
8606 * solib-darwin.c: Likewise.
8607 * solib-dsbt.c: Likewise.
8608 * solib-spu.c: Likewise.
8609 * solib-svr4.c: Likewise.
8610 * solib-target.c: Likewise.
8611 * sparc-tdep.c: Likewise.
8612 * sparc64-tdep.c: Likewise.
8613 * spu-tdep.c: Likewise.
8614 * symfile.c: Likewise.
8615 * symtab.c: Likewise.
8616 * target-descriptions.c: Likewise.
8617 * target-memory.c: Likewise.
8618 * target.c: Likewise.
8619 * target.h: Likewise.
8620 * tracefile-tfile.c: Likewise.
8621 * tracepoint.c: Likewise.
8622 * valops.c: Likewise.
8623 * valprint.c: Likewise.
8624 * value.c: Likewise.
8625 * windows-tdep.c: Likewise.
8626 * mi/mi-main.c: Likewise.
8628 2018-06-07 Tom Tromey <tom@tromey.com>
8630 * valprint.h (build_address_symbolic): Declare.
8631 * printcmd.c (print_address_symbolic): Update.
8632 (build_address_symbolic): Change "name" and "filename" to
8634 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
8636 * defs.h (build_address_symbolic): Remove declaration.
8638 2018-06-07 Alan Hayward <alan.hayward@arm.com>
8640 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
8641 (aarch64_vnv_type): Add function.
8642 (aarch64_pseudo_register_name): Add V regs for SVE.
8643 (aarch64_pseudo_register_type): Likewise.
8644 (aarch64_pseudo_register_reggroup_p): Likewise.
8645 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
8646 (aarch64_pseudo_read_value): Add V regs for SVE.
8647 (aarch64_pseudo_write_2): Use V0 offset for SVE
8648 (aarch64_pseudo_write): Add V regs for SVE.
8649 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
8651 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
8653 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
8654 (sve_vl_from_vq): Likewise.
8656 2018-06-05 Tom Tromey <tom@tromey.com>
8658 * cli/cli-cmds.c (show_version): Update.
8659 * top.c (print_gdb_version): Add "interactive" parameter.
8661 * main.c (captured_main_1): Update.
8662 * top.h (print_gdb_version): Add "interactive" parameter and a
8665 2018-06-05 David Malcolm <dmalcolm@redhat.com>
8667 * common/enum-flags.h: Add trailing semicolon to example in
8670 2018-06-05 Tom Tromey <tom@tromey.com>
8673 * NEWS: Add entry about pager.
8674 * utils.c (pagination_disabled_for_command): New global.
8675 (prompt_for_continue): Allow "c" response to prompt.
8676 (reinitialize_more_filter): Clear
8677 pagination_disabled_for_command.
8678 (fputs_maybe_filtered): Check pagination_disabled_for_command.
8680 2018-06-04 Tom Tromey <tom@tromey.com>
8682 * ada-lang.h (ada_lookup_symbol_list): Update.
8683 * ada-lang.c (resolve_subexp): Update.
8684 (symbols_are_identical_enums): Change type of syms. Remove nsyms
8686 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
8687 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
8688 results parameter to std::vector.
8689 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
8691 * ada-exp.y (block_lookup): Update.
8692 (select_possible_type_sym): Change type of syms. Remove nsyms
8694 (write_var_or_type, write_name_assoc): Update.
8696 2018-06-04 Joel Brobecker <brobecker@adacore.com>
8698 * windows-nat.c (windows_nat_target::xfer_partial): Return
8699 TARGET_XFER_E_IO if we need to delegate to the target beneath
8700 but BENEATH is NULL.
8702 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
8704 * Makefile.in (config.status): Add configure.nat as a
8707 2018-06-04 Tom Tromey <tom@tromey.com>
8709 * cp-name-parser.y (cpname_state): Add method declarations.
8710 (HANDLE_QUAL): Update.
8711 (cpname_state::d_grab, cpname_state::fill_comp)
8712 (cpname_state::make_operator, cpname_state::make_dtor)
8713 (cpname_state::make_builtin_type, cpname_state::make_name)
8714 (cpname_state::d_qualify, cpname_state::d_int_type)
8715 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
8716 (%union): Move earlier.
8718 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8720 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
8722 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8724 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
8725 (aarch64_pseudo_write_1): Likewise.
8726 (aarch64_pseudo_read_value): Use helper.
8727 (aarch64_pseudo_write): Likewise.
8729 2018-06-04 Pedro Alves <palves@redhat.com>
8731 * darwin-nat.c (darwin_ops): Delete.
8732 (darwin_attach_pid): Use get_native_target.
8734 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8736 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
8737 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
8739 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8741 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
8742 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
8743 (aarch64_gdbarch_init): Check for SVE.
8744 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
8746 2018-06-04 Alan Hayward <alan.hayward@arm.com>
8748 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
8749 * aarch64-tdep.h (aarch64_read_description): Likewise.
8750 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8751 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8752 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
8753 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
8754 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
8756 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
8758 * value.c (value_fetch_lazy_bitfield): New.
8759 (value_fetch_lazy_memory): New.
8760 (value_fetch_lazy_register): New.
8761 (value_fetch_lazy): Factor out to smaller functions.
8763 2018-06-01 Tom Tromey <tom@tromey.com>
8765 * cp-name-parser.y (backslashable, represented): Now const.
8767 2018-06-01 Tom Tromey <tom@tromey.com>
8769 * cp-name-parser.y: Include parser-defs.h.
8770 (parser_fprintf): Remove declaration.
8772 2018-06-01 Tom Tromey <tom@tromey.com>
8774 * cp-name-parser.y: Use %pure-parser, %lex-param, and
8776 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8777 (global_result): Remove globals.
8778 (struct cpname_state): New.
8779 (yyparse): Don't declare.
8780 (yylex, yyerror): Move declarations after %union.
8781 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8782 (make_name): Add state parameter.
8784 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8786 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8788 (yylex): Add lvalp, state parameters.
8789 (yyerror): Add state parameter.
8790 (cp_demangled_name_to_comp): Update.
8792 2018-06-01 Tom Tromey <tom@tromey.com>
8794 * cp-name-parser.y (parser_fprintf): Declare.
8795 (GDB_YY_REMAP_PREFIX): Define.
8796 Include yy-remap.h. Don't redefine yy* identifiers.
8798 2018-06-01 Tom Tromey <tom@tromey.com>
8800 * python/py-type.c (typy_legacy_template_argument): Update.
8801 * cp-support.h (cp_demangled_name_to_comp): Update.
8802 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
8803 parameter to be a "std::string *".
8806 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
8808 * ada-lex.l: Include "diagnostics.h" instead of
8809 "common/diagnostics.h".
8810 * unittests/environ-selftests.c: Likewise.
8811 * common/diagnostics.h: Moved to ../include.
8813 2018-06-01 Joel Brobecker <brobecker@adacore.com>
8815 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
8816 to language_mode_manual while calling breakpoint_re_set_one.
8818 2018-06-01 Tom Tromey <tom@tromey.com>
8820 * valops.c (value_cast_structs, destructor_name_p): Update.
8821 * symtab.c (gdb_mangle_name): Update.
8822 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
8824 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
8825 (pascal_object_print_value_fields, pascal_object_print_value):
8827 * p-typeprint.c (pascal_type_print_derivation_info): Update.
8828 * linespec.c (find_methods): Update.
8829 * gdbtypes.h (type_name_no_tag): Remove.
8830 (type_name_or_error): Rename from type_name_no_tag_or_error.
8831 * gdbtypes.c (type_name_no_tag): Remove.
8832 (type_name_or_error): Rename from type_name_no_tag_or_error.
8833 (lookup_struct_elt_type, check_typedef): Update.
8834 * expprint.c (print_subexp_standard): Update.
8835 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
8836 * d-namespace.c (d_lookup_nested_symbol): Update.
8837 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
8838 (cp_print_class_member): Update.
8839 * cp-namespace.c (cp_lookup_nested_symbol): Update.
8840 * completer.c (add_struct_fields): Update.
8841 * c-typeprint.c (cp_type_print_derivation_info)
8842 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
8844 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
8845 (ada_prefer_type, ada_is_exception_sym): Update.
8847 2018-06-01 Tom Tromey <tom@tromey.com>
8849 * valops.c (enum_constant_from_type, value_namespace_elt)
8850 (value_maybe_namespace_elt): Update.
8851 * valarith.c (find_size_for_pointer_math): Update.
8852 * target-descriptions.c (make_gdb_type): Update.
8853 * symmisc.c (print_symbol): Update.
8854 * stabsread.c (define_symbol, read_type)
8855 (complain_about_struct_wipeout, add_undefined_type)
8856 (cleanup_undefined_types_1): Update.
8857 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
8858 (rust_range_type_p, val_print_struct, rust_print_struct_def)
8859 (rust_internal_print_type, rust_composite_type)
8860 (rust_evaluate_funcall, rust_evaluate_subexp)
8861 (rust_inclusive_range_type_p): Update.
8862 * python/py-type.c (typy_get_tag): Update.
8863 * p-typeprint.c (pascal_type_print_base): Update.
8864 * mdebugread.c (parse_symbol, parse_type): Update.
8865 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
8867 * guile/scm-type.c (gdbscm_type_tag): Update.
8868 * go-lang.c (sixg_string_p): Update.
8869 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
8871 * gdbtypes.h (struct main_type) <tag_name>: Remove.
8872 (TYPE_TAG_NAME): Remove.
8873 * gdbtypes.c (type_name_no_tag): Simplify.
8874 (check_typedef, check_types_equal, recursive_dump_type)
8875 (copy_type_recursive, arch_composite_type): Update.
8876 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
8877 in summary mode when needed.
8878 * eval.c (evaluate_funcall): Update.
8879 * dwarf2read.c (fixup_go_packaging, read_structure_type)
8880 (process_structure_scope, read_enumeration_type)
8881 (read_namespace_type, read_module_type, determine_prefix): Update.
8882 * cp-support.c (inspect_type): Update.
8883 * coffread.c (process_coff_symbol, decode_base_type): Update.
8884 * c-varobj.c (c_is_path_expr_parent): Update.
8885 * c-typeprint.c (c_type_print_base_struct_union): Update.
8886 (c_type_print_base_1): Update. Print struct/class/union/enum in
8887 summary when using C language.
8888 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
8889 (gen_maybe_namespace_elt): Update.
8890 * ada-lang.c (ada_type_name): Simplify.
8891 (empty_record, ada_template_to_fixed_record_type_1)
8892 (template_to_static_fixed_type)
8893 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
8895 2018-06-01 Tom Tromey <tom@tromey.com>
8897 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
8899 * c-typeprint.c (c_print_type_1): Add "language" parameter.
8900 (c_print_type): Update.
8901 (c_print_type): New overload.
8902 (c_type_print_varspec_prefix, c_type_print_args)
8903 (c_type_print_varspec_suffix, c_print_type_no_offsets)
8904 (c_type_print_base_struct_union, c_type_print_base_1)
8905 (cp_type_print_method_args): Add "language" parameter.
8906 (c_type_print_base): Update.
8907 * c-lang.h (c_print_type): Add new overload.
8909 2018-06-01 Tom Tromey <tom@tromey.com>
8911 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
8912 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
8914 2018-06-01 Alan Hayward <alan.hayward@arm.com>
8916 * aarch64-tdep.c (aarch64_sve_register_names): New const
8918 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
8919 (AARCH64_SVE_Z_REGS_NUM): New define.
8920 (AARCH64_SVE_P_REGS_NUM): Likewise.
8921 (AARCH64_SVE_NUM_REGS): Likewise.
8923 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
8925 * nat/linux-ptrace.h [__alpha__]
8926 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
8929 2018-05-31 Maciej W. Rozycki <macro@mips.com>
8931 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
8932 the endianness selected.
8933 * NEWS: Document `set endian auto' mode operation update.
8935 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8937 * Makefile.in: Add new header.
8938 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
8939 (sve_vl_from_vg): Likewise.
8940 (sve_vq_from_vl): Likewise.
8941 (sve_vl_from_vq): Likewise.
8942 (sve_vq_from_vg): Likewise.
8943 (sve_vg_from_vq): Likewise.
8944 * configure.nat: Add new c file.
8945 * nat/aarch64-sve-linux-ptrace.c: New file.
8946 * nat/aarch64-sve-linux-ptrace.h: New file.
8948 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8950 * aarch64-linux-nat.c (aarch64_linux_read_description):
8952 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8954 * aarch64-tdep.c (tdesc_aarch64_list): Add.
8955 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
8956 (aarch64_gdbarch_init): Add parmeter zero.
8957 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
8958 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
8959 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
8961 * doc/gdb.texinfo: Describe SVE feature
8962 * features/aarch64-sve.c: New file.
8964 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
8967 * gdbarch.sh (significant_addr_bit): Default to zero when
8968 not set by target architecture.
8969 * gdbarch.c: Re-generated.
8970 * utils.c (address_significant): Update.
8972 2018-05-30 Joel Brobecker <brobecker@adacore.com>
8974 * stack.c (func_command): Remove trailing newline in call to error.
8976 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8978 * regcache.h (regcache_raw_collect): Remove, update callers to
8979 use regcache::raw_collect.
8980 * regcache.c (regcache_raw_collect): Remove.
8982 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8984 * regcache.h (regcache_raw_supply): Remove, update callers to
8985 use detached_regcache::raw_supply.
8986 * regcache.c (regcache_raw_supply): Remove.
8988 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8990 * regcache.h (regcache_cooked_write_part): Remove, update
8991 callers to use regcache::cooked_write_part.
8992 * regcache.c (regcache_cooked_write_part): Remove.
8994 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8996 * regcache.h (regcache_cooked_read_part): Remove, update callers
8997 to use readable_regcache::cooked_read_part.
8998 * regcache.c (regcache_cooked_read_part): Remove.
9000 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9002 * regcache.h (regcache_cooked_read_value): Remove, update
9003 callers to use readable_regcache::cooked_read_value.
9004 * regcache.c (regcache_cooked_read_value): Remove.
9006 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9008 * regcache.h (regcache_cooked_write): Remove, update callers to
9009 use regcache::cooked_write.
9010 * regcache.c (regcache_cooked_write): Remove.
9012 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9014 * regcache.h (regcache_invalidate): Remove, update callers to
9015 use detached_regcache::invalidate instead.
9016 * regcache.c (regcache_invalidate): Remove.
9018 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9020 * regcache.h (regcache_raw_write_part): Remove, update callers
9021 to use regcache::raw_write_part instead.
9022 * regcache.c (regcache_raw_write_part): Remove.
9024 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9026 * regcache.h (regcache_raw_read_part): Remove, update callers to
9027 use readable_regcache::raw_read_part instead.
9028 * regcache.c (regcache_raw_read_part): Remove.
9030 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9032 * regcache.h (regcache_cooked_read): Remove, update callers to
9033 use readable_regcache::cooked_read instead.
9034 * regcache.c (regcache_cooked_read): Remove.
9036 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9038 * regcache.h (regcache_raw_write): Remove, update callers to use
9039 regcache::raw_write instead.
9040 * regcache.c (regcache_raw_write): Remove.
9042 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9044 * regcache.h (regcache_raw_read): Remove, update callers to use
9045 readable_regcache::raw_read instead.
9046 * regcache.c (regcache_raw_read): Remove.
9048 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9050 * regcache.h (regcache_raw_update): Remove, update callers to
9051 use readable_regcache::raw_update instead.
9052 * regcache.c (regcache_raw_update): Remove.
9054 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9056 * regcache.h (regcache_register_status): Remove, update callers
9057 to use reg_buffer::get_register_status directly instead.
9058 * regcache.c (regcache_register_status): Remove.
9060 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9062 * regcache.h (regcache_get_ptid): Remove, update all callers to
9063 call regcache::ptid instead.
9064 * regcache.c (regcache_get_ptid): Remove.
9066 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
9068 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
9070 2018-05-30 Pedro Alves <palves@redhat.com>
9072 * common/common-exceptions.h (exception_rethrow): Use
9075 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
9077 * breakpoint.c (print_solib_event, check_status_catch_solib):
9078 Remove struct keyword in range-based for loops.
9079 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
9080 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
9082 * linespec.c (find_superclass_methods, search_minsyms_for_name):
9084 * symfile.c (addr_info_make_relative): Likewise.
9085 * thread.c (value_in_thread_stack_temporaries): Likewise.
9087 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
9090 * valops.c (value_struct_elt_for_reference): Call check_typedef on
9091 aggregate type to get its real type before accessing it.
9093 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
9095 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
9096 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
9097 * coff-pe-read.c (add_pe_forwarded_sym): Replace
9098 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
9099 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
9100 * jit.c (jit_breakpoint_re_set_internal): Likewise.
9101 * printcmd.c (info_address_command): Likewise.
9103 2018-05-29 Tom Tromey <tom@tromey.com>
9105 * windows-nat.c (handle_exception): Update fall-through comment.
9107 2018-05-29 Tom Tromey <tom@tromey.com>
9109 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
9110 (struct program_space) <added_solibs>: Now a std::vector.
9111 * breakpoint.c (print_solib_event): Update.
9112 (check_status_catch_solib): Update.
9113 * progspace.c (clear_program_space_solib_cache): Update.
9114 * solib.c (update_solib_list): Update.
9116 2018-05-29 Tom Tromey <tom@tromey.com>
9118 * python/py-type.c (typy_richcompare): Update.
9119 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
9120 * gdbtypes.h (types_deeply_equal): Return bool.
9121 (types_equal): Likewise.
9122 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
9124 (check_types_equal): Change worklist to std::vector. Return
9126 (struct type_equality_entry): Add constructor.
9127 (compare_maybe_null_strings): Return bool.
9128 (check_types_worklist): Return bool. Change worklist to
9130 (types_deeply_equal): Use std::vector.
9131 (types_equal): Return bool.
9132 (compare_maybe_null_strings): Simplify.
9134 2018-05-29 Tom Tromey <tom@tromey.com>
9136 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
9138 2018-05-29 Tom Tromey <tom@tromey.com>
9140 * objc-lang.h: Don't include cp-support.h.
9141 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
9144 2018-05-27 Tom Tromey <tom@tromey.com>
9146 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
9148 2018-05-25 Tom Tromey <tom@tromey.com>
9150 * value.c (value::location): Initialize.
9152 2018-05-25 Tom Tromey <tom@tromey.com>
9154 * dbxread.c (init_bincl_list): Remove.
9155 (bincl_list): Now a std::vector.
9156 (bincls_allocated, next_bincl): Remove.
9157 (free_bincl_list, do_free_bincl_list_cleanup)
9158 (make_cleanup_free_bincl_list): Remove.
9159 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
9161 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
9162 (struct header_file_location): Add constructor.
9163 (add_bincl_to_list): Remove.
9165 2018-05-25 Tom Tromey <tom@tromey.com>
9167 * tui/tui.c (tui_enable): Update.
9168 * mi/mi-interp.c (mi_interp::init): Update.
9169 * interps.h (class interp) <name>: New method.
9170 <m_name>: Rename from name.
9171 (~scoped_restore_interp): Update.
9172 * interps.c (interp::interp): Update.
9173 (interp_add, interp_set, interp_lookup_existing)
9174 (current_interp_named_p): Update.
9176 2018-05-25 Tom Tromey <tom@tromey.com>
9178 * interps.c (interp_name): Remove.
9179 * mi/mi-interp.c (mi_interp::init): Update.
9180 * interps.h (interp_name): Remove.
9181 (~scoped_restore_interp): Update.
9182 * tui/tui.c (tui_enable): Update.
9184 2018-05-25 Tom Tromey <tom@tromey.com>
9186 * utils.c (fputs_maybe_filtered): Update.
9187 * linespec.c (decode_line_full): Update.
9188 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
9189 (mi_print_breakpoint_for_event, mi_solib_loaded)
9190 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
9191 (mi_user_selected_context_changed): Update.
9192 * mi/mi-main.c (mi_execute_command): Update.
9193 * cli/cli-script.c (execute_control_command): Update.
9194 * python/python.c (execute_gdb_command): Update.
9195 * solib.c (info_sharedlibrary_command): Update.
9196 * interps.c (interp_ui_out): Remove.
9197 * interps.h (interp_ui_out): Remove.
9199 2018-05-25 Tom Tromey <tom@tromey.com>
9201 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
9202 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
9203 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
9205 2018-05-25 Tom Tromey <tom@tromey.com>
9207 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
9208 * interps.c (interp_exec): Use scoped_restore.
9210 2018-05-25 Tom Tromey <tom@tromey.com>
9212 * remote.c (remote_target::remote_file_get): Use
9214 (remote_target::remote_file_put): Likewise.
9216 2018-05-25 Tom Tromey <tom@tromey.com>
9218 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
9220 (get_pe_section_index, add_pe_exported_sym): Update.
9221 (read_pe_exported_syms): Use gdb::def_vector.
9223 2018-05-25 Tom Tromey <tom@tromey.com>
9225 * frame.c (remove_prev_frame): Remove.
9226 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
9228 2018-05-25 Maciej W. Rozycki <macro@mips.com>
9230 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
9232 * mips-linux-nat.c (supply_fpregset): Always call
9233 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
9234 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
9235 `mips_fill_fpregset'.
9236 * mips-linux-tdep.c (mips_supply_fpregset)
9237 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
9238 (mips_fill_fpregset_wrapper): Remove functions.
9239 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
9240 (mips_linux_fpregset): Remove variable.
9241 (mips_linux_iterate_over_regset_sections): Use
9242 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
9243 (mips_linux_o32_sigframe_init): Remove comment.
9245 2018-05-25 Pedro Alves <palves@redhat.com>
9247 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
9248 (struct readahead_cache, struct packet_reg, struct
9249 remote_arch_state, class remote_state): Move higher up in the
9251 (remote_target::m_remote_state): Now an object instead of a pointer.
9252 (remote_target::get_remote_state): Adjust.
9254 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
9256 * stack.c (select_and_print_frame): Delete.
9257 (struct function_bounds): Move struct within function.
9258 (func_command): Most content moved into new function
9259 find_frame_for_function, use new function, print result, add
9261 (find_frame_for_function): New function, now returns a result.
9263 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9265 * stack.c (iterate_over_block_arg_vars): Fix comment.
9266 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
9268 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
9272 (scoped_restore_selected_frame::scoped_restore_selected_frame):
9274 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
9276 * frame.h (class scoped_restore_selected_frame): New class.
9277 * stack.c (print_frame_local_vars): Remove catching and rethrowing
9278 of any exception, use scoped_restore_selected_frame to restore the
9281 2018-05-24 Pedro Alves <palves@redhat.com>
9283 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
9286 2018-05-23 Tom Tromey <tom@tromey.com>
9288 * complaints.c (struct complaints): Remove.
9289 (symfile_complaint_book): Remove.
9290 (series): New global.
9291 (complaint_internal): Update.
9292 (clear_complaints): Update.
9294 2018-05-23 Tom Tromey <tom@tromey.com>
9296 * complaints.c (counters): New global.
9297 (struct complain): Remove.
9298 (struct complaints) <root>: Remove.
9299 (complaint_sentinel): Remove.
9300 (symfile_complaint_book): Update.
9301 (find_complaint) Remove.
9302 (complaint_internal, clear_complaints): Update.
9304 2018-05-23 Tom Tromey <tom@tromey.com>
9306 * complaints.c (struct complain) <file, line>: Remove.
9307 (find_complaint): Remove file, line parameters.
9308 (complaint_internal): Update.
9310 2018-05-23 Tom Tromey <tom@tromey.com>
9312 * complaints.c (vcomplaint): Remove.
9313 (complaint_internal) Merge in contents of vcomplaint.
9315 2018-05-23 Tom Tromey <tom@tromey.com>
9317 * complaints.c (struct complaints) <explanation>: Remove.
9318 (symfile_explanations): Remove.
9319 (symfile_complaint_book): Update.
9320 (vcomplaint): Update.
9321 (struct explanation): Remove.
9323 2018-05-23 Tom Tromey <tom@tromey.com>
9325 * complaints.c (symfile_complaints): Remove.
9326 (complaint_internal): Remove "complaints" parameter.
9327 (clear_complaints, vcomplaint): Remove "c" parameter.
9328 (get_complaints): Remove.
9329 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
9330 (dwarf2_debug_line_missing_file_complaint)
9331 (dwarf2_debug_line_missing_end_sequence_complaint)
9332 (dwarf2_complex_location_expr_complaint)
9333 (dwarf2_const_value_length_mismatch_complaint)
9334 (dwarf2_section_buffer_overflow_complaint)
9335 (dwarf2_macro_malformed_definition_complaint)
9336 (dwarf2_invalid_attrib_class_complaint)
9337 (create_addrmap_from_index, dw2_symtab_iter_next)
9338 (dw2_expand_marked_cus)
9339 (dw2_debug_names_iterator::find_vec_in_debug_names)
9340 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
9341 (create_debug_type_hash_table, init_cutu_and_read_dies)
9342 (partial_die_parent_scope, add_partial_enumeration)
9343 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
9344 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
9345 (read_import_statement, read_file_scope, create_dwo_cu_reader)
9346 (create_cus_hash_table, create_dwp_hash_table)
9347 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9348 (dwarf2_rnglists_process, dwarf2_ranges_process)
9349 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
9350 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
9351 (handle_struct_member_die, process_structure_scope)
9352 (read_array_type, read_common_block, read_module_type)
9353 (read_tag_pointer_type, read_typedef, read_base_type)
9354 (read_subrange_type, load_partial_dies, partial_die_info::read)
9355 (partial_die_info::read, partial_die_info::read)
9356 (partial_die_info::read, read_checked_initial_length_and_offset)
9357 (dwarf2_string_attr, read_formatted_entries)
9358 (dwarf_decode_line_header)
9359 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
9360 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
9361 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
9362 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9363 (get_signatured_type, get_DW_AT_signature_type)
9364 (decode_locdesc, file_file_name, consume_improper_spaces)
9365 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
9366 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9367 (dwarf2_symbol_mark_computed, set_die_type)
9368 (read_attribute_value): Update.
9369 * stap-probe.c (handle_stap_probe, get_stap_base_address):
9371 * dbxread.c (unknown_symtype_complaint)
9372 (lbrac_mismatch_complaint, repeated_header_complaint)
9373 (set_namestring, function_outside_compilation_unit_complaint)
9374 (read_dbx_symtab, process_one_symbol): Update.
9375 * gdbtypes.c (stub_noname_complaint): Update.
9376 * windows-nat.c (handle_unload_dll): Update.
9377 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
9378 (decode_base_type): Update.
9379 * xcoffread.c (bf_notfound_complaint, ef_complaint)
9380 (eb_complaint, record_include_begin, record_include_end)
9381 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
9382 (process_xcoff_symbol, read_symbol)
9383 (function_outside_compilation_unit_complaint)
9384 (scan_xcoff_symtab): Update.
9385 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
9386 * buildsym.c (finish_block_internal, make_blockvector)
9387 (end_symtab_get_static_block, augment_type_symtab): Update.
9388 * dtrace-probe.c (dtrace_process_dof)
9389 (dtrace_static_probe_ops::get_probes): Update.
9390 * complaints.h (struct complaint): Don't declare.
9391 (symfile_complaints): Remove.
9392 (complaint_internal): Remove "complaints" parameter.
9393 (complaint): Likewise.
9394 (clear_complaints): Likewise.
9395 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9396 (reread_symbols): Update.
9397 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
9398 (dwarf2_frame_cache, decode_frame_entry): Update.
9399 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
9400 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9401 (info_selectors_command): Update.
9402 * macrotab.c (macro_include, check_for_redefinition)
9403 (macro_undef): Update.
9404 * objfiles.c (filter_overlapping_sections): Update.
9405 * stabsread.c (invalid_cpp_abbrev_complaint)
9406 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
9407 (define_symbol, error_type, read_type, rs6000_builtin_type)
9408 (stabs_method_name_from_physname, read_member_functions)
9409 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
9410 (attach_fields_to_type, complain_about_struct_wipeout)
9411 (read_range_type, read_args, common_block_start)
9412 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
9414 * mdebugread.c (index_complaint, unknown_ext_complaint)
9415 (basic_type_complaint, bad_tag_guess_complaint)
9416 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
9417 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
9418 (parse_procedure, parse_lines)
9419 (function_outside_compilation_unit_complaint)
9420 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
9421 (bad_tag_guess_complaint, reg_value_complaint): Update.
9422 * cp-support.c (demangled_name_complaint): Update.
9423 * macroscope.c (sal_macro_scope): Update.
9424 * dwarf-index-write.c (class debug_names): Update.
9426 2018-05-23 Tom Tromey <tom@tromey.com>
9428 * complaints.c (clear_complaints): Remove "noisy" parameter.
9429 * complaints.h (clear_complaints): Update.
9430 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9431 (reread_symbols): Update.
9433 2018-05-23 Tom Tromey <tom@tromey.com>
9435 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
9437 (vcomplaint, clear_complaints): Update.
9438 (symfile_explanations): Remove some messages.
9440 2018-05-23 Tom Tromey <tom@tromey.com>
9442 * complaints.c (internal_complaint): Remove.
9443 * complaints.h (internal_complaint): Remove.
9445 2018-05-22 Maciej W. Rozycki <macro@mips.com>
9447 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
9449 2018-05-22 Pedro Alves <palves@redhat.com>
9451 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
9452 (remote_fileio_badfd, remote_fileio_return_errno)
9453 (remote_fileio_return_success, remote_fileio_func_open)
9454 (remote_fileio_func_open, remote_fileio_func_close)
9455 (remote_fileio_func_read, remote_fileio_func_write)
9456 (remote_fileio_func_lseek, remote_fileio_func_rename)
9457 (remote_fileio_func_unlink, remote_fileio_func_stat)
9458 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
9459 (remote_fileio_func_isatty, remote_fileio_func_system): Add
9460 remote_target parameter.
9461 (remote_fio_func_map) <func>: Add remote_target parameter.
9462 (do_remote_fileio_request, remote_fileio_request):
9463 * remote-fileio.h (remote_fileio_request):
9464 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
9465 remote_target parameter.
9466 (remote_notif_process, handle_notification): Adjust to pass down
9468 (remote_notif_state_allocate): Add remote_target parameter. Save
9470 * remote-notif.h (struct remote_target): Forward declare.
9471 (struct notif_client) <parse, ack, can_get_pending_events>: Add
9472 remote_target parameter.
9473 (struct remote_notif_state) <remote>: New field.
9474 (remote_notif_ack, remote_notif_parse): Add remote_target
9476 (remote_notif_state_allocate, remote_notif_state_allocate): Add
9477 remote_target parameter.
9478 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
9479 (threads_listing_context, rmt_thread_action, protocol_feature)
9480 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
9481 (packet_result, struct threads_listing_context, remote_state):
9482 Move definitions and declarations higher up.
9483 (remote_target) <~remote_target>: Declare.
9484 (remote_download_command_source, remote_file_put, remote_file_get)
9485 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
9486 (remote_hostio_pread_vFile, remote_hostio_send_command)
9487 (remote_hostio_set_filesystem, remote_hostio_open)
9488 (remote_hostio_close, remote_hostio_unlink, remote_state)
9489 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
9490 (get_memory_write_packet_size, get_memory_read_packet_size)
9491 (append_pending_thread_resumptions, remote_detach_1)
9492 (append_resumption, remote_resume_with_vcont)
9493 (add_current_inferior_and_thread, wait_ns, wait_as)
9494 (process_stop_reply, remote_notice_new_inferior)
9495 (process_initial_stop_replies, remote_add_thread)
9496 (btrace_sync_conf, remote_btrace_maybe_reopen)
9497 (remove_new_fork_children, kill_new_fork_children)
9498 (discard_pending_stop_replies, stop_reply_queue_length)
9499 (check_pending_events_prevent_wildcard_vcont)
9500 (discard_pending_stop_replies_in_queue, stop_reply)
9501 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
9502 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
9503 (remote_interrupt_as, remote_interrupt_ns)
9504 (remote_get_noisy_reply, remote_query_attached)
9505 (remote_add_inferior, remote_current_thread, get_current_thread)
9506 (set_thread, set_general_thread, set_continue_thread)
9507 (set_general_process, write_ptid)
9508 (remote_unpack_thread_info_response, remote_get_threadinfo)
9509 (parse_threadlist_response, remote_get_threadlist)
9510 (remote_threadlist_iterator, remote_get_threads_with_ql)
9511 (remote_get_threads_with_qxfer)
9512 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
9513 (get_offsets, remote_check_symbols, remote_supported_packet)
9514 (remote_query_supported, remote_packet_size)
9515 (remote_serial_quit_handler, remote_detach_pid)
9516 (remote_vcont_probe, remote_resume_with_hc)
9517 (send_interrupt_sequence, interrupt_query)
9518 (remote_notif_get_pending_events, fetch_register_using_p)
9519 (send_g_packet, process_g_packet, fetch_registers_using_g)
9520 (store_register_using_P, store_registers_using_G)
9521 (set_remote_traceframe, check_binary_download)
9522 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
9523 (remote_xfer_live_readonly_partial, remote_read_bytes)
9524 (remote_send_printf, remote_flash_write, readchar)
9525 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
9526 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
9527 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
9528 (extended_remote_disable_randomization, extended_remote_run)
9529 (send_environment_packet, extended_remote_environment_support)
9530 (extended_remote_set_inferior_cwd, remote_write_qxfer)
9531 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
9532 (packet_command): Now methods of ...
9533 (remote_target): ... this class.
9534 (m_remote_state) <remote_target>: New field.
9535 (struct remote_state) <stop_reply_queue,
9536 remote_async_inferior_event_token, wait_forever_enabled_p>: New
9538 (remote_state::remote_state): Allocate stop_reply_queue.
9539 (remote_state): Delete global.
9540 (get_remote_state_raw): Delete.
9541 (remote_target::get_remote_state): Allocate m_remote_state on
9543 (get_current_remote_target): New.
9544 (remote_ops, extended_remote_ops): Delete.
9545 (wait_forever_enabled_p, remote_async_inferior_event_token):
9546 Delete, moved to struct remote_state.
9547 (remote_target::close): Delete self. Destruction bits split to
9549 (remote_target::~remote_target): ... this.
9550 (show_memory_packet_size): Adjust to use
9551 get_current_remote_target.
9552 (struct protocol_feature) <func>: Add remote_target parameter.
9553 All callers adjusted.
9554 (curr_quit_handler_target): New.
9555 (remote_serial_quit_handler): Reimplement.
9556 (remote_target::open_1): Adjust to use get_current_remote_target.
9557 Heap-allocate remote_target/extended_remote_target instances.
9558 (vcont_builder::vcont_builder): Add remote_target parameter, and
9559 save it in m_remote. All callers adjusted.
9560 (vcont_builder::m_remote): New field.
9561 (vcont_builder::restart, vcont_builder::flush)
9562 (vcont_builder::push_action): Use it.
9563 (remote_target::commit_resume): Use it.
9564 (struct queue_iter_param) <remote>: New field.
9565 (remote_target::remove_new_fork_children): Fill in 'remote' field.
9566 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
9567 (check_pending_event_prevents_wildcard_vcont_callback)
9568 (remote_target::check_pending_events_prevent_wildcard_vcont)
9569 (remote_target::discard_pending_stop_replies)
9570 (remote_target::discard_pending_stop_replies_in_queue)
9571 (remote_target::remote_notif_remove_queued_reply): Fill in
9573 (remote_notif_get_pending_events): New.
9574 (remote_target::readchar, remote_target::remote_serial_write):
9575 Save/restore curr_quit_handler_target.
9577 (kill_new_fork_children): Fill in 'remote' field.
9578 (packet_command): Use get_current_remote_target, defer to
9579 remote_target method of same name.
9580 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
9581 parameter, and save it in m_remote. All callers adjusted.
9582 (scoped_remote_fd::release): Use m_remote.
9583 (scoped_remote_fd::m_remote): New field.
9584 (remote_file_put, remote_file_get, remote_file_delete): Use
9585 get_current_remote_target, defer to remote_target method of same
9587 (remote_btrace_reset): Add remote_state paremeter. Update all
9589 (remote_async_inferior_event_handler). Pass down 'data'.
9590 (remote_new_objfile): Use get_current_remote_target.
9591 (remote_target::vcont_r_supported): New.
9592 (set_range_stepping): Use get_current_remote_target and
9593 remote_target::vcont_r_supported.
9594 (_initialize_remote): Don't allocate 'remote_state' and
9595 'stop_reply_queue' globals.
9596 * remote.h (struct remote_target): Forward declare.
9597 (getpkt, putpkt, remote_notif_get_pending_events): Add
9598 'remote_target' parameter.
9600 2018-05-22 Pedro Alves <palves@redhat.com>
9602 * remote.c (vcont_builder): Now a class. Make all data members
9604 (vcont_builder) <vcont_builder, restart, flush, push_action>:
9606 (vcont_builder_restart): Rename to ...
9607 (vcont_builder::restart): ... this.
9608 (vcont_builder_flush): Rename to ...
9609 (vcont_builder::flush): ... this.
9610 (vcont_builder_push_action): Rename to ...
9611 (vcont_builder::push_action): ... this.
9612 (remote_target::commit_resume): Adjust.
9614 2018-05-22 Pedro Alves <palves@redhat.com>
9616 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
9617 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
9618 (get_fixed_memory_packet_size): New.
9619 (get_memory_packet_size): Use it.
9620 (set_memory_packet_size): Don't override the config size with
9621 DEFAULT_MAX_MEMORY_PACKET_SIZE.
9622 (show_memory_packet_size): Use get_fixed_memory_packet_size.
9623 Don't refer to get_memory_packet_size if not connected to a remote
9624 target. Show "(default)" if configured size is 0.
9626 2018-05-22 Pedro Alves <palves@redhat.com>
9628 * remote.c (remote_target::mourn_inferior): Move
9629 discard_pending_stop_replies call here from ...
9630 (_initialize_remote): ... here.
9632 2018-05-22 Pedro Alves <palves@redhat.com>
9634 * remote.c (compare_section_command): Remove set_general_process
9637 2018-05-22 Pedro Alves <palves@redhat.com>
9639 * remote.c (struct packet_reg, struct remote_arch_state):
9640 Move higher up in the file.
9641 (remote_state) <m_arch_states>: Store remote_arch_state values
9642 instead of remote_arch_state pointers.
9643 (remote_state::get_remote_arch_state): Adjust.
9645 2018-05-22 Pedro Alves <palves@redhat.com>
9647 * remote.c: Include <unordered_map>.
9648 (remote_state): Now a class.
9649 (remote_state) <get_remote_arch_state>: Declare method.
9650 <get_remote_arch_state>: New field.
9651 (remote_arch_state) <remote_arch_state>: Declare ctor.
9652 <regs>: Now a unique_ptr.
9653 (remote_gdbarch_data_handle): Delete.
9654 (get_remote_arch_state): Delete.
9655 (remote_state::get_remote_arch_state): New.
9656 (get_remote_state): Adjust to call remote_state's
9657 get_remote_arch_state method.
9658 (init_remote_state): Delete, bits factored out to ...
9659 (remote_arch_state::remote_arch_state): ... this new method.
9660 (get_remote_packet_size, get_memory_packet_size)
9661 (process_g_packet, remote_target::fetch_registers)
9662 (remote_target::prepare_to_store, store_registers_using_G)
9663 (remote_target::store_registers, remote_target::get_trace_status):
9664 Adjust to call remote_state's method.
9665 (_initialize_remote): Remove reference to
9666 remote_gdbarch_data_handle.
9668 2018-05-22 Pedro Alves <palves@redhat.com>
9670 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
9671 pread>: New method declarations.
9672 (remote_target::open_1): Adjust.
9673 (readahead_cache_invalidate): Rename to ...
9674 (readahead_cache::invalidate): ... this, and adjust to be a class
9676 (readahead_cache_invalidate_fd): Rename to ...
9677 (readahead_cache::invalidate_fd): ... this, and adjust to be a
9679 (remote_hostio_pwrite): Adjust.
9680 (remote_hostio_pread_from_cache): Rename to ...
9681 (readahead_cache::pread): ... this, and adjust to be a class
9683 (remote_hostio_close): Adjust.
9685 2018-05-22 Pedro Alves <palves@redhat.com>
9687 * remote.c (remote_hostio_close_cleanup): Delete.
9688 (class scoped_remote_fd): New.
9689 (remote_file_put, remote_file_get): Use it.
9691 2018-05-22 Pedro Alves <palves@redhat.com>
9693 (struct vCont_action_support): Use bool and initialize all fields.
9694 (struct readahead_cache): Initialize all fields.
9695 (remote_state): Use bool and initialize all fields.
9696 (remote_state::remote_state, remote_state::~remote_state): New.
9697 (new_remote_state): Delete.
9698 (_initialize_remote): Use new to allocate remote_state.
9700 2018-05-22 Pedro Alves <palves@redhat.com>
9704 * c-exp.y: Include "c-support.h".
9705 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
9706 of tolower. Use c_ident_is_alpha to scan names.
9707 * c-lang.c: Include "c-support.h".
9708 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
9709 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
9710 * c-support.h: New file, with bits factored out from ...
9711 * cp-name-parser.y: ... this file.
9712 Include "c-support.h".
9713 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
9714 c-support.h and renamed.
9715 (symbol_end, yylex): Adjust.
9717 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9719 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
9720 parameter type to CORE_ADDR.
9721 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
9722 parameter type in declaration to CORE_ADDR.
9723 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
9724 target_auxv_search to get AT_HWCAP and use the result to get the
9726 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
9727 to CORE_ADDR. Remove the cast of the return value to unsigned
9728 long. Fix error predicate of target_auxv_search.
9729 (ppc_linux_nat_target::read_description): Change the type of the
9730 hwcap variable to CORE_ADDR.
9732 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9734 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
9735 if the size of fpscr is larger than 32 bits.
9737 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9739 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
9740 (ppc32_linux_vsxregmap): New global.
9741 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
9742 regcache_supply_regset, and regcache_collect_regset.
9743 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
9744 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
9745 (fetch_vsx_register, store_vsx_register): Remove.
9746 (fetch_vsx_registers): Add regno parameter. Get regset using
9747 ppc_linux_vsxregset. Use regset to supply registers.
9748 (store_vsx_registers): Add regno parameter. Get regset using
9749 ppc_linux_vsxregset. Use regset to collect registers.
9750 (fetch_register): Call fetch_vsx_registers instead of
9752 (store_register): Call store_vsx_registers instead of
9754 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
9755 new regno parameter.
9756 (store_ppc_registers): Call store_vsx_registers with -1 for the
9757 new regno parameter.
9758 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
9759 (ppc_collect_vsxregset): Remove.
9761 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9763 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
9765 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
9766 for vector register offset fields.
9767 (ppc64_fbsd_reg_offsets): Likewise.
9768 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9769 to vector register offset fields.
9770 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9771 to vector register offset fields.
9772 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9773 vector register offset fields.
9774 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9775 initializers for vector register offset fields.
9776 (rs6000_aix64_reg_offsets): Likewise.
9777 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9778 (ppc_supply_vrregset): Remove.
9779 (ppc_collect_vrregset): Remove.
9780 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9781 (ppc_linux_vrregset) : New function.
9782 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9783 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9784 (ppc32_linux_vrregset): Remove.
9785 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9786 and use result instead of ppc32_linux_vrregset.
9787 (ppc32_linux_reg_offsets): Remove initializers for vector register
9789 (ppc64_linux_reg_offsets): Likewise.
9790 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9791 * ppc-linux-nat.c: Include regset.h.
9792 (gdb_vrregset_t): Adjust comment to account for little-endian
9794 (supply_vrregset, fill_vrregset): Remove.
9795 (fetch_altivec_register, store_altivec_register): Remove.
9796 (fetch_altivec_registers): Add regno parameter. Get regset using
9797 ppc_linux_vrregset. Use regset to supply registers.
9798 (store_altivec_registers): Add regno parameter. Get regset using
9799 ppc_linux_vrregset. Use regset to collect registers.
9800 (fetch_register): Call fetch_altivec_registers instead of
9801 fetch_altivec_register.
9802 (store_register): Call store_altivec_registers instead of
9803 store_altivec_register.
9804 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
9805 the new regno parameter.
9806 (store_ppc_registers): Call store_altivec_registers with -1 for
9807 the new regno parameter.
9809 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9811 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
9812 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
9813 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
9814 (gdb_vrregset_t): Change array type size to
9815 PPC_LINUX_SIZEOF_VRREGSET.
9816 (gdb_vsxregset_t): Change array type size to
9817 PPC_LINUX_SIZEOF_VSXREGSET.
9818 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
9819 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
9820 PPC_LINUX_SIZEOF_VSXREGSET.
9822 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9824 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
9825 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
9827 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
9828 ppc_linux_target_wordsize with tid.
9829 (ppc_linux_nat_target::read_description): Call ppc_linux_target
9831 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
9832 (ppc64_64bit_inferior_p): Add static and inline specifiers.
9833 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
9834 tid parameter. Remove static specifier.
9835 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
9836 (ppc_linux_target_wordsize): New declaration.
9838 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9840 * arch/ppc-linux-common.c: New file.
9841 * arch/ppc-linux-common.h: New file.
9842 * arch/ppc-linux-tdesc.h: New file.
9843 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
9844 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
9845 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
9846 arch/ppc-linux-tdesc.h.
9847 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
9848 arch/ppc-linux-tdesc.h.
9849 (ppc_linux_nat_target::read_description): Remove target
9850 description matching code. Fill a ppc_linux_features struct and
9851 call ppc_linux_match_description with it. Move comment about ISA
9852 2.05 to ppc-linux-common.c.
9853 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
9854 arch/ppc-linux-tdesc.h.
9855 (ppc_linux_core_read_description): Remove target description
9856 matching code. Fill a ppc_linux_features struct and call
9857 ppc_linux_match_description with it.
9858 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
9859 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
9860 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
9861 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
9862 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
9863 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
9864 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
9865 (tdesc_powerpc_e500l): Remove.
9867 2018-05-22 Joel Brobecker <brobecker@adacore.com>
9869 * ada-lang.c (catch_assert_command): Pass empty string instead
9870 of NULL for excep_string argument.
9872 2018-05-22 Maciej W. Rozycki <macro@mips.com>
9874 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
9875 the width of the requested register exceeds the width of the
9878 2018-05-21 Tom Tromey <tom@tromey.com>
9880 * printcmd.c (output_command): Remove.
9881 (output_command_const): Rename to output_command.
9882 * valprint.h (output_command): Rename from output_command_const.
9883 * tracepoint.c (trace_dump_actions): Call output_command.
9885 2018-05-21 Tom Tromey <tom@tromey.com>
9887 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
9888 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
9889 * ada-lang.h (create_ada_exception_catchpoint): Update.
9890 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
9892 (create_excep_cond_exprs, ~ada_catchpoint)
9893 (should_stop_exception, print_one_exception)
9894 (print_mention_exception, print_recreate_exception): Update.
9895 (ada_get_next_arg): Remove.
9896 (catch_ada_exception_command_split): Use std::string. Change type
9897 of "excep_string", "cond_string".
9898 (catch_ada_exception_command): Update.
9899 (create_ada_exception_catchpoint): Change type of excep_string.
9900 (ada_exception_sal): Remove excep_string parameter.
9901 (~ada_catchpoint): Remove.
9903 2018-05-21 Tom Tromey <tom@tromey.com>
9905 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
9908 2018-05-21 Tom Tromey <tom@tromey.com>
9910 * ada-lang.c (ada_exception_message_1, ada_exception_message):
9911 Return unique_xmalloc_ptr.
9912 (print_it_exception): Update.
9914 2018-05-21 Tom Tromey <tom@tromey.com>
9916 * tracepoint.c (trace_dump_actions): Use std::string.
9918 2018-05-21 Tom Tromey <tom@tromey.com>
9920 * symfile.c (reread_symbols): Use std::string for original_name.
9922 2018-05-21 Tom Tromey <tom@tromey.com>
9924 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
9925 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
9928 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
9930 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
9932 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
9933 * objfiles.c (get_objfile_bfd_data): Allocate
9934 objfile_per_bfd_storage with obstack_new when allocating on
9937 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9939 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
9941 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
9942 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
9943 * mdebugread.c (mdebug_build_psymtabs): Likewise.
9944 (add_pending): Likewise.
9945 (parse_symbol): Likewise.
9946 (parse_partial_symbols): Likewise.
9947 (psymtab_to_symtab_1): Likewise.
9948 (new_psymtab): Likewise.
9949 (elfmdebug_build_psymtabs): Likewise.
9950 * minsyms.c (terminate_minimal_symbol_table): Likewise.
9951 * objfiles.c (get_objfile_bfd_data): Likewise.
9952 (objfile_register_static_link): Likewise.
9953 * psymtab.c (allocate_psymtab): Likewise.
9954 * stabsread.c (read_member_functions): Likewise.
9955 * xcoffread.c (xcoff_end_psymtab): Likewise.
9957 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9959 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
9960 compiler supports std::is_trivially_constructible.
9961 * common/poison.h: Include obstack.h.
9962 (IsMallocable): Define to is_trivially_constructible if the
9963 compiler supports it, define to true_type otherwise.
9967 (XOBNEWVEC): Redefine.
9968 * gdb_obstack.h (obstack_zalloc): New.
9969 (OBSTACK_ZALLOC): Redefine.
9970 (obstack_calloc): New.
9971 (OBSTACK_CALLOC): Redefine.
9973 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
9974 (gdbarch_obstack): New declaration in gdbarch.h, definition in
9976 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
9977 obstack_calloc/obstack_zalloc.
9978 (gdbarch_obstack_zalloc): Remove.
9979 * target-descriptions.c (tdesc_data_init): Use obstack_new.
9981 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9983 * stack.c (backtrace_command_1): Remove useless variable int i.
9985 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9987 * stack.c (print_frame_info): Fix comment.
9989 2018-05-18 Tom Tromey <tom@tromey.com>
9991 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
9992 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
9993 (~dwarf2_per_objfile): Update
9994 (dwarf2_get_dwz_file): Use new.
9995 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
9998 2018-05-18 Tom Tromey <tom@tromey.com>
10000 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
10002 * dwarf2read.c (struct dwp_file): Add constructor and
10004 (open_and_init_dwp_file): Return a unique_ptr.
10005 (dwarf2_per_objfile, create_dwp_hash_table)
10006 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
10007 (lookup_dwo_unit_in_dwp): Update.
10008 (open_and_init_dwp_file, get_dwp_file): Update.
10010 2018-05-18 Tom Tromey <tom@tromey.com>
10012 * dwarf2read.c (dwarf2_per_objfile): Update.
10013 (struct mapped_index): Add initializers.
10014 (dwarf2_read_index): Use new.
10015 (dw2_symtab_iter_init): Update.
10016 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
10019 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
10021 * dwarf2read.c (mapped_index) <total_size>: Remove.
10023 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
10025 * unittests/format_pieces-selftests.c (test_format_specifier):
10028 2018-05-18 Tom Tromey <tom@tromey.com>
10030 * c-typeprint.c (maybe_print_hole): New function.
10031 (c_print_type_struct_field_offset): Update.
10032 (c_type_print_base_struct_union): Call maybe_print_hole.
10034 2018-05-17 Keith Seitz <keiths@redhat.com>
10036 * breakpoint.c (build_bpstat_chain): New function, moved from
10037 bpstat_stop_status.
10038 (bpstat_stop_status): Add optional parameter, `stop_chain'.
10039 If no stop chain is passed, call build_bpstat_chain to build it.
10040 * breakpoint.h (build_bpstat_chain): Declare.
10041 (bpstat_stop_status): Move documentation here from breakpoint.c.
10042 * infrun.c (handle_signal_stop): Before eliding inlined frames,
10043 build the stop chain and pass it to skip_inline_frames.
10044 Pass this stop chain to bpstat_stop_status.
10045 * inline-frame.c: Include breakpoint.h.
10046 (stopped_by_user_bp_inline_frame): New function.
10047 (skip_inline_frames): Add parameter `stop_chain'.
10048 Move documention to inline-frame.h.
10049 If non-NULL, use stopped_by_user_bp_inline_frame to determine
10050 whether the frame should be elided.
10051 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
10052 Add moved documentation and update for new parameter.
10054 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
10057 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10058 unittests/format_pieces-selftests.c.
10059 * common/format.h (format_piece) <operator==>: New.
10060 (format_pieces) <operator[]>: Remove.
10061 * common/format.c (format_pieces::format_pieces): Handle \e.
10062 * unittests/format_pieces-selftests.c: New.
10064 2018-05-17 Tom Tromey <tom@tromey.com>
10067 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
10068 (dw2_instantiate_symtab): Add skip_partial parameter.
10069 (dw2_find_last_source_symtab, dw2_map_expand_apply)
10070 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
10071 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
10072 (dw2_expand_symtabs_matching_one)
10073 (dw2_find_pc_sect_compunit_symtab)
10074 (dw2_debug_names_lookup_symbol)
10075 (dw2_debug_names_expand_symtabs_for_function): Update.
10076 (init_cutu_and_read_dies): Add skip_partial parameter.
10077 (process_psymtab_comp_unit, build_type_psymtabs_1)
10078 (process_skeletonless_type_unit, load_partial_comp_unit)
10079 (psymtab_to_symtab_1): Update.
10080 (load_full_comp_unit): Add skip_partial parameter.
10081 (process_imported_unit_die, dwarf2_read_addr_index)
10082 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
10083 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
10084 (read_signatured_type): Update.
10086 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
10088 * value.c (release_value): Remove unused variable.
10089 (record_latest_value): Likewise.
10090 (access_value_history): Likewise.
10091 (preserve_values): Likewise.
10093 2018-05-17 Tom Tromey <tom@tromey.com>
10095 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
10098 2018-05-16 Maciej W. Rozycki <macro@mips.com>
10101 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
10102 Also handle registers whose width is not a multiple of
10104 (linux_nat_trad_target::store_register): Likewise.
10106 2018-05-16 Tom Tromey <tom@tromey.com>
10108 * gdbcore.h (core_bfd): Redefine.
10109 * corelow.c (core_target::close): Update.
10110 (core_target_open): Update.
10111 * progspace.h (struct program_space) <cbfd>: Now a
10114 2018-05-16 Tom Tromey <tom@tromey.com>
10117 * symfile-add-flags.h (enum symfile_add_flags)
10118 <SYMFILE_NOT_FILENAME>: New constant.
10119 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
10120 objfile name from BFD.
10121 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
10122 * minidebug.c (find_separate_debug_file_in_section): Put
10123 ".gnu_debugdata" into BFD's file name.
10125 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
10127 * regcache.c (regcache_read_ftype, regcache_write_ftype):
10130 2018-05-15 Tamar Christina <tamar.christina@arm.com>
10133 * aarch64-tdep.c (aarch64_analyze_prologue,
10134 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
10135 Indicate not interested in errors.
10137 2018-05-15 Maciej W. Rozycki <macro@mips.com>
10139 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
10140 Supply the MIPS_ZERO_REGNUM register.
10142 2018-05-15 Maciej W. Rozycki <macro@mips.com>
10144 * mips-tdep.c (mask_address_var): Make variable static.
10146 2018-05-14 Tom Tromey <tom@tromey.com>
10148 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
10150 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
10152 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
10153 FXSAVE_ADDR for the mxcsr register.
10155 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
10157 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
10159 2018-05-11 Pedro Alves <palves@redhat.com>
10161 * corelow.c (core_target) <core_target>: No longer inline.
10162 Initialize m_core_gdbarch, m_core_vec and build the section table
10164 <~core_target>: New.
10165 <core_gdbarch, get_core_register_section>: New methods.
10166 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
10167 factored out from ...
10168 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
10169 (core_ops): Delete.
10170 (sniff_core_bfd): Add gdbarch parameter.
10171 (core_close): Delete, merged into ...
10172 (core_target::close): ... here. Delete self.
10173 (core_close_cleanup): Delete.
10174 (core_target_open): Allocate a core_target on the heap. Use a
10175 unique_ptr instead of a cleanup. Bits moved into the core_target
10176 ctor. Adjust to use core_target methods instead of globals.
10177 (get_core_register_section): Rename to ...
10178 (core_target::get_core_register_section): ... this and adjust.
10179 (struct get_core_registers_cb_data): New.
10180 (get_core_registers_cb): Use it. Use bool.
10181 (core_target::fetch_registers, core_target::files_info)
10182 (core_target::xfer_partial, core_target::read_description)
10183 (core_target::pid_to, core_target::thread_name): Adjust to
10184 reference class fields instead of globals.
10185 * target.h (struct target_ops_deleter, target_ops_up): New.
10187 2018-05-11 Pedro Alves <palves@redhat.com>
10189 * corefile.c (core_file_command): Move to corelow.c.
10190 * corelow.c (the_core_target): Delete.
10191 (core_file_command): Moved from corefile.c. Check exec_bfd
10192 instead of the_core_target. Use target_detach instead of calling
10193 into the_core_target directly.
10194 (maybe_say_no_core_file_now): New.
10195 (core_target::detach): Use it.
10196 (_initialize_corelow): Remove references to the_core_target.
10197 * gdbcore.h (the_core_target): Delete.
10199 2018-05-11 Tom Tromey <tromey@redhat.com>
10200 Pedro Alves <palves@redhat.com>
10202 * corefile.c (core_bfd): Remove.
10203 * gdbcore.h (core_bfd): Now a macro.
10204 * progspace.h (struct program_space) <cbfd>: New field.
10206 2018-05-11 Tom Tromey <tom@tromey.com>
10208 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
10211 2018-05-10 Tom Tromey <tom@tromey.com>
10213 * configure: Rebuild.
10214 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
10216 2018-05-10 Joel Brobecker <brobecker@adacore.com>
10219 * regformats/regdat.sh: Adjust script, following the addition
10220 of the new expedite_regs parameter to init_target_desc.
10222 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
10225 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
10226 set_gdbarch_significant_addr_bit.
10227 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
10228 set_gdbarch_significant_addr_bit.
10229 * utils.c (address_significant): Update to sign extend addr.
10231 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
10233 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
10234 (xtensa_linux_init_abi): Limit tdep->num_regs by
10235 tdep->num_nopriv_regs.
10236 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
10237 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
10240 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
10242 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
10244 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10246 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
10247 (I387_MXCSR_INIT_VAL): New constant.
10248 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
10249 buffer if it was supplied by the inferior.
10250 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
10251 (i387_xsave_get_clear_bv): New function.
10252 (i387_supply_xsave): Only read x87 control registers from the
10253 xsave buffer if the feature is enabled, and the state will have
10254 been written, otherwise, provide a suitable default.
10255 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
10256 including x87 control registers. Update control registers if they
10257 have changed from the default value, and mark features as enabled
10259 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
10261 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
10263 * spu-tdep.c (info_spu_event_command): Fix output formatting.
10265 2018-05-07 Tom Tromey <tom@tromey.com>
10267 * configure: Rebuild.
10268 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
10270 2018-05-07 Tom Tromey <tom@tromey.com>
10273 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
10274 bit. Use correct value for VDIV.
10276 2018-05-04 Tom Tromey <tom@tromey.com>
10278 * configure: Rebuild.
10279 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
10281 2018-05-04 Tom Tromey <tom@tromey.com>
10283 * linux-record.c (record_linux_system_call) <case
10284 RECORD_SYS_RECVFROM>: Add "break".
10286 2018-05-04 Tom Tromey <tom@tromey.com>
10288 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
10289 Add missing "break".
10290 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
10291 Add missing "break".
10293 2018-05-04 Tom Tromey <tom@tromey.com>
10295 * rs6000-tdep.c (ppc_process_record_op4)
10296 (ppc_process_record_op63): Add fall-through comment.
10298 2018-05-04 Tom Tromey <tom@tromey.com>
10300 * i386-tdep.c (i386_process_record): Add fall-through comment.
10302 2018-05-04 Tom Tromey <tom@tromey.com>
10304 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
10307 2018-05-04 Tom Tromey <tom@tromey.com>
10309 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
10310 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
10311 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
10313 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
10315 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
10318 2018-05-04 Tom Tromey <tom@tromey.com>
10320 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
10322 2018-05-04 Tom Tromey <tom@tromey.com>
10324 * s390-tdep.c (s390_process_record): Fix fall-through comments.
10325 * xcoffread.c (scan_xcoff_symtab): Move comment later.
10326 * symfile.c (section_is_mapped): Fix fall-through comment.
10327 * stabsread.c (define_symbol, read_member_functions): Fix
10328 fall-through comment.
10329 * s390-linux-tdep.c (s390_process_record): Fix fall-through
10331 * remote.c (remote_wait_as): Fix fall-through comment.
10332 * p-exp.y (yylex): Fix fall-through comment.
10333 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
10335 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
10336 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
10337 * jv-exp.y (yylex): Fix fall-through comment.
10338 * go-exp.y (lex_one_token): Fix fall-through comment.
10339 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
10340 fall-through comment.
10341 * f-exp.y (yylex): Fix fall-through comment.
10342 * dwarf2read.c (process_die): Fix fall-through comments.
10343 * dbxread.c (process_one_symbol): Fix fall-through comment.
10344 * d-exp.y (lex_one_token): Fix fall-through comment.
10345 * cp-name-parser.y (yylex): Fix fall-through comment.
10346 * coffread.c (coff_symtab_read): Fix fall-through comment.
10347 * c-exp.y (lex_one_token): Fix fall-through comment.
10348 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
10350 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
10353 2018-05-04 Tom Tromey <tom@tromey.com>
10356 * NEWS: Mention gdb.execute change.
10357 * gdbcmd.h (execute_control_command): Don't declare.
10358 * python/python.c (execute_gdb_command): Use read_command_lines_1,
10359 execute_control_commands, execute_control_commands_to_string.
10360 * cli/cli-script.h (execute_control_commands)
10361 (execute_control_commands_to_string): Declare.
10362 (execute_control_command): Add from_tty parameter.
10363 * cli/cli-script.c (execute_control_commands)
10364 (execute_control_commands_to_string): New functions.
10365 (execute_user_command): Use execute_control_commands.
10366 (execute_control_command_1): Add "from_tty" parameter. Update.
10367 (execute_control_command): Likewise.
10369 2018-05-04 Tom Tromey <tom@tromey.com>
10372 * NEWS: Mention that breakpoint commands are writable.
10373 * python/py-breakpoint.c (bppy_set_commands): New function.
10374 (breakpoint_object_getset) <"commands">: Use it.
10376 2018-05-04 Tom Tromey <tom@tromey.com>
10378 * tracepoint.c (actions_command): Update.
10379 * mi/mi-cmd-break.c (mi_command_line_array)
10380 (mi_command_line_array_cnt, mi_command_line_array_ptr)
10381 (mi_read_next_line): Remove.
10382 (mi_cmd_break_commands): Update.
10383 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
10385 * cli/cli-script.c (get_command_line): Update.
10386 (process_next_line): Use function_view. Constify.
10387 (recurse_read_control_structure, read_command_lines)
10388 (read_command_lines_1): Change argument types to function_view.
10389 (do_define_command, document_command): Update.
10390 * breakpoint.h (check_tracepoint_command): Don't declare.
10391 * breakpoint.c (check_tracepoint_command): Remove.
10392 (commands_command_1, create_tracepoint_from_upload): Update.
10394 2018-05-04 Tom Tromey <tom@tromey.com>
10397 * cli/cli-script.h (enum command_control_type) <define_control>:
10399 * cli/cli-script.c (multi_line_command_p): Handle define_control.
10400 (build_command_line, execute_control_command_1)
10401 (process_next_line): Likewise.
10402 (do_define_command): New function, extracted from define_command.
10403 (define_command): Use it.
10405 2018-05-04 Tom Tromey <tom@tromey.com>
10407 * tracepoint.c (actions_command): Update.
10408 * cli/cli-script.h (read_command_lines): Update.
10409 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
10410 (MAX_TMPBUF): Remove define.
10411 (define_command): Use string_printf.
10412 (document_command): Likewise.
10413 * breakpoint.c (commands_command_1): Update.
10415 2018-05-04 Tom Tromey <tom@tromey.com>
10417 * top.c (execute_command): Update.
10418 * cli/cli-script.h (print_command_lines): Now varargs.
10419 * cli/cli-script.c (print_command_lines): Now varargs.
10420 (execute_control_command_1) <case while_control, case if_control>:
10423 2018-05-04 Tom Tromey <tom@tromey.com>
10425 * tracepoint.c (all_tracepoint_actions): Rename from
10426 all_tracepoint_actions_and_cleanup. Change return type.
10427 (actions_command, encode_actions_1, encode_actions)
10428 (trace_dump_actions, tdump_command): Update.
10429 * remote.c (remote_download_command_source): Update.
10430 * python/python.c (gdbpy_eval_from_control_command)
10431 (python_command, python_interactive_command): Update.
10432 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10433 * guile/guile.c (guile_command)
10434 (gdbscm_eval_from_control_command, guile_command): Update.
10435 * compile/compile.c (compile_code_command)
10436 (compile_print_command, compile_to_object): Update.
10437 * cli/cli-script.h (struct command_lines_deleter): New.
10438 (counted_command_line): New typedef.
10439 (struct command_line): Add constructor, destructor.
10440 <body_list>: Remove.
10441 <body_list_0, body_list_1>: New members.
10442 (command_line_up): Remove typedef.
10443 (read_command_lines, read_command_lines_1, get_command_line):
10445 (copy_command_lines): Don't declare.
10446 * cli/cli-script.c (build_command_line): Use "new".
10447 (get_command_line): Return counted_command_line.
10448 (print_command_lines, execute_user_command)
10449 (execute_control_command_1, while_command, if_command): Update.
10450 (realloc_body_list): Remove.
10451 (process_next_line, recurse_read_control_structure): Update.
10452 (read_command_lines, read_command_lines_1): Return counted_command_line.
10453 (free_command_lines): Use "delete".
10454 (copy_command_lines): Remove.
10455 (define_command, document_command, show_user_1): Update.
10456 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
10457 a counted_command_line.
10458 * breakpoint.h (counted_command_line): Remove typedef.
10459 (breakpoint_set_commands): Update.
10460 * breakpoint.c (check_no_tracepoint_commands)
10461 (validate_commands_for_breakpoint): Update.
10462 (breakpoint_set_commands): Change commands to be a
10463 counted_command_line.
10464 (commands_command_1, update_dprintf_command_list)
10465 (create_tracepoint_from_upload): Update.
10467 2018-05-04 Tom Tromey <tom@tromey.com>
10469 * cli/cli-decode.h (cmd_list_element): New constructor.
10470 (~cmd_list_element): New destructor.
10471 (struct cmd_list_element): Add initializers.
10472 * cli/cli-decode.c (do_add_cmd): Use "new".
10473 (delete_cmd): Use "delete".
10475 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10476 Pedro Alves <palves@redhat.com>
10478 PR breakpoints/19806 and support for PR external/20207.
10479 * NEWS: Mention Aarch64 watchpoint improvements.
10480 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
10481 watchpoints and PR external/20207 watchpoints.
10482 * nat/aarch64-linux-hw-point.c
10483 (kernel_supports_any_contiguous_range): New.
10484 (aarch64_watchpoint_offset): New.
10485 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
10486 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
10487 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
10488 (aarch64_align_watchpoint): New parameters aligned_offset_p and
10489 next_addr_orig_p. Support PR external/20207 watchpoints.
10490 (aarch64_downgrade_regs): New.
10491 (aarch64_dr_state_insert_one_point): New parameters offset and
10493 (aarch64_dr_state_remove_one_point): Likewise.
10494 (aarch64_handle_breakpoint): Update caller.
10495 (aarch64_handle_aligned_watchpoint): Likewise.
10496 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
10498 (aarch64_linux_set_debug_regs): Remove const from state. Call
10499 aarch64_downgrade_regs.
10500 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
10501 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
10502 (DR_CONTROL_MASK): ... this.
10503 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
10504 (unsigned int aarch64_watchpoint_offset): New prototype.
10505 (aarch64_linux_set_debug_regs): Remove const from state.
10506 * utils.c (align_up, align_down): Move to ...
10507 * common/common-utils.c (align_up, align_down): ... here.
10508 * utils.h (align_up, align_down): Move to ...
10509 * common/common-utils.h (align_up, align_down): ... here.
10511 2018-05-04 Joel Brobecker <brobecker@adacore.com>
10513 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
10514 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
10515 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
10516 Re-implement to match the ABI as summarized in GCC's
10517 gcc/config/sparc/sparc.c. All callers updated.
10518 (sparc32_store_arguments): Remove assertion.
10520 2018-05-04 Tom Tromey <tom@tromey.com>
10522 * printcmd.c: Don't include tui.h.
10523 (decode_format): Use skip_spaces.
10525 2018-05-04 Tom Tromey <tom@tromey.com>
10528 * printcmd.c (last_count): New global.
10529 (x_command): Use saved count when repeating.
10531 2018-05-04 Tom Tromey <tom@tromey.com>
10533 * nto-procfs.c (do_closedir_cleanup): Remove.
10534 (procfs_pidlist): Use gdb_dir_up.
10535 * procfs.c (do_closedir_cleanup): Remove.
10536 (proc_update_threads): Use gdb_dir_up.
10537 * common/filestuff.h (struct gdb_dir_deleter): New.
10538 (gdb_dir_up): New typedef.
10540 2018-05-04 Tom Tromey <tom@tromey.com>
10542 * ada-lang.c (print_mention_exception): Use std::string.
10544 2018-05-04 Tom Tromey <tom@tromey.com>
10546 * ada-lang.c (create_excep_cond_exprs): Update.
10547 (ada_exception_catchpoint_cond_string): Use std::string.
10549 2018-05-04 Tom Tromey <tom@tromey.com>
10551 * ada-lang.c (xget_renaming_scope): Return std::string.
10552 (old_renaming_is_invisible): Update.
10554 2018-05-04 Tom Tromey <tom@tromey.com>
10556 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
10557 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
10559 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
10561 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
10563 2018-05-04 Tom Tromey <tom@tromey.com>
10565 * remote.c (remote_query_supported_append): Change type.
10566 (remote_check_symbols): Update.
10568 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
10571 * configure.ac: Prepend libpython.
10572 * python/python-config.py: Likewise.
10573 * configure: Regenerate.
10575 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
10577 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
10579 2018-05-03 Pedro Alves <palves@redhat.com>
10582 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
10583 override. Write 'true' instead of '1'.
10584 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
10587 2018-05-02 Pedro Alves <palves@redhat.com>
10589 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
10590 add_inf_child_target.
10591 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
10592 add_inf_child_target.
10593 * aix-thread.c (aix_thread_target_info): New.
10594 (aix_thread_target) <shortname, longname, doc>: Delete.
10596 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
10597 add_inf_child_target.
10598 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
10599 add_inf_child_target.
10600 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
10601 add_inf_child_target.
10602 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
10603 add_inf_child_target.
10604 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
10605 add_inf_child_target.
10606 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
10607 add_inf_child_target.
10608 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
10609 add_inf_child_target.
10610 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
10611 add_inf_child_target.
10612 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
10613 add_inf_child_target.
10614 * bfd-target.c (target_bfd_target_info): New.
10615 (target_bfd) <shortname, longname, doc>: Delete.
10617 * bsd-kvm.c (bsd_kvm_target_info): New.
10618 (bsd_kvm_target) <shortname, longname, doc>: Delete.
10620 (bsd_kvm_target::open): Rename to ...
10621 (bsd_kvm_target_open): ... this. Adjust.
10622 * bsd-uthread.c (bsd_uthread_target_info): New.
10623 (bsd_uthread_target) <shortname, longname, doc>: Delete.
10625 * corefile.c (core_file_command): Adjust.
10626 * corelow.c (core_target_info): New.
10627 (core_target) <shortname, longname, doc>: Delete.
10629 (core_target::open): Rename to ...
10630 (core_target_open): ... this. Adjust.
10631 * ctf.c (ctf_target_info): New.
10632 (ctf_target) <shortname, longname, doc>: Delete.
10634 (ctf_target::open): Rename to ...
10635 (ctf_target_open): ... this.
10636 (_initialize_ctf): Adjust.
10637 * exec.c (exec_target_info): New.
10638 (exec_target) <shortname, longname, doc>: Delete.
10640 (exec_target::open): Rename to ...
10641 (exec_target_open): ... this.
10642 * gdbcore.h (core_target_open): Declare.
10643 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
10644 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
10645 add_inf_child_target.
10646 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
10647 add_inf_child_target.
10648 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
10649 add_inf_child_target.
10650 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
10651 add_inf_child_target.
10652 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
10653 add_inf_child_target.
10654 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
10655 add_inf_child_target.
10656 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
10657 add_inf_child_target.
10658 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
10659 add_inf_child_target.
10660 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
10661 add_inf_child_target.
10662 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
10663 add_inf_child_target.
10664 * inf-child.c (inf_child_target_info): New.
10665 (inf_child_target::info): New.
10666 (inf_child_open_target): Remove 'target' parameter. Use
10667 get_native_target instead.
10668 (inf_child_target::open): Delete.
10669 (add_inf_child_target): New.
10670 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
10673 (add_inf_child_target): Declare.
10674 (inf_child_open_target): Declare.
10675 * linux-thread-db.c (thread_db_target_info): New.
10676 (thread_db_target) <shortname, longname, doc>: Delete.
10678 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
10679 add_inf_child_target.
10680 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
10681 add_inf_child_target.
10682 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
10683 add_inf_child_target.
10684 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
10685 add_inf_child_target.
10686 * make-target-delegates (print_class): Adjust.
10687 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
10688 add_inf_child_target.
10689 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
10690 add_inf_child_target.
10691 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
10692 add_inf_child_target.
10693 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
10694 add_inf_child_target.
10695 * nto-procfs.c (nto_native_target_info): New.
10696 (nto_procfs_target_native) <shortname, longname, doc>:
10699 (nto_procfs_target_info): New.
10700 (nto_procfs_target_procfs) <shortname, longname, doc>:
10703 (init_procfs_targets): Adjust.
10704 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
10705 add_inf_child_target.
10706 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
10707 add_inf_child_target.
10708 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
10709 add_inf_child_target.
10710 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
10711 add_inf_child_target.
10712 * ravenscar-thread.c (ravenscar_target_info): New.
10713 (ravenscar_thread_target) <shortname, longname, doc>:
10716 * record-btrace.c (record_btrace_target_info):
10717 (record_btrace_target) <shortname, longname, doc>: Delete.
10719 (record_btrace_target::open): Rename to ...
10720 (record_btrace_target_open): ... this. Adjust.
10721 * record-full.c (record_longname, record_doc): New.
10722 (record_full_base_target) <shortname, longname, doc>: Delete.
10724 (record_full_target_info): New.
10725 (record_full_target): <shortname>: Delete.
10727 (record_full_core_open_1, record_full_open_1): Update comments.
10728 (record_full_base_target::open): Rename to ...
10729 (record_full_open): ... this.
10730 (cmd_record_full_restore): Update.
10731 (_initialize_record_full): Update.
10732 * remote-sim.c (remote_sim_target_info): New.
10733 (gdbsim_target) <shortname, longname, doc>: Delete.
10735 (gdbsim_target::open): Rename to ...
10736 (gdbsim_target_open): ... this.
10737 (_initialize_remote_sim): Adjust.
10738 * remote.c (remote_doc): New.
10739 (remote_target_info): New.
10740 (remote_target) <shortname, longname, doc>: Delete.
10742 (extended_remote_target_info): New.
10743 (extended_remote_target) <shortname, longname, doc>: Delete.
10745 (remote_target::open_1): Make static. Adjust.
10746 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
10747 * s390-linux-nat.c (_initialize_s390_nat): Use
10748 add_inf_child_target.
10749 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
10750 add_inf_child_target.
10751 * sol-thread.c (thread_db_target_info): New.
10752 (sol_thread_target) <shortname, longname, doc>: Delete.
10754 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
10755 add_inf_child_target.
10756 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
10757 add_inf_child_target.
10758 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
10759 add_inf_child_target.
10760 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
10761 add_inf_child_target.
10762 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
10763 add_inf_child_target.
10764 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
10765 add_inf_child_target.
10766 * spu-linux-nat.c (_initialize_spu_nat): Use
10767 add_inf_child_target.
10768 * spu-multiarch.c (spu_multiarch_target_info): New.
10769 (spu_multiarch_target) <shortname, longname, doc>: Delete.
10771 * target-delegates.c: Regenerate.
10772 * target.c: Include <unordered_map>.
10773 (target_ops_p): Delete.
10774 (DEF_VEC_P(target_ops_p)): Delete.
10775 (target_factories): New.
10776 (test_target_info): New.
10777 (test_target_ops::info): New.
10778 (open_target): Adjust to use target_factories.
10779 (add_target_with_completer): Rename to ...
10780 (add_target): ... this. Change prototype. Register target_info
10781 and open callback in target_factories. Register target_info in
10782 command context instead of target_ops.
10783 (add_target): Delete old implementation.
10784 (add_deprecated_target_alias): Change prototype. Adjust.
10785 (the_native_target): New.
10786 (set_native_target, get_native_target): New.
10787 (find_default_run_target): Use the_native_target.
10788 (find_attach_target, find_run_target): Simplify.
10789 (target_ops::open): Delete.
10790 (dummy_target_info): New.
10791 (dummy_target::shortname, dummy_target::longname)
10792 (dummy_target::doc): Delete.
10793 (dummy_target::info): New.
10794 (debug_target::shortname, debug_target::longname)
10795 (debug_target::doc): Delete.
10796 (debug_target::info): New.
10797 * target.h (struct target_info): New.
10798 (target_ops::~target_ops): Add comment.
10799 (target_ops::info): New.
10800 (target_ops::shortname, target_ops::longname, target_ops::doc): No
10801 longer virtual. Implement in terms of target_info.
10802 (set_native_target, get_native_target): Declare.
10803 (target_open_ftype): New.
10804 (add_target, add_target_with_completer)
10805 (add_deprecated_target_alias): Change prototype.
10806 (test_target) <shortname, longname, doc>: Delete.
10808 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
10809 add_inf_child_target.
10810 * tracefile-tfile.c (tfile_target_info): New.
10811 (tfile_target) <shortname, longname, doc>: Delete.
10813 (tfile_target::open): Rename to ...
10814 (tfile_target_open): ... this.
10815 (_initialize_tracefile_tfile): Adjust.
10816 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
10817 add_inf_child_target.
10818 * windows-nat.c (_initialize_windows_nat): Use
10819 add_inf_child_target.
10820 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
10821 add_inf_child_target.
10823 2018-05-02 Pedro Alves <palves@redhat.com>
10825 * linux-nat.h (linux_nat_target) <low_new_thread,
10826 low_delete_thread, low_new_fork, low_forget_process,
10827 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
10828 New virtual methods.
10829 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10830 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
10831 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
10832 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10833 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
10835 * linux-fork.c (delete_fork): Adjust to call low method.
10836 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
10837 (linux_nat_new_fork, linux_nat_forget_process_hook)
10838 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
10839 (linux_nat_status_is_event):
10840 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
10841 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
10842 to call low method.
10843 (sigtrap_is_event): Rename to ...
10844 (linux_nat_target::low_status_is_event): ... this.
10845 (linux_nat_set_status_is_event): Delete.
10846 (save_stop_reason, linux_nat_wait_1)
10847 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
10849 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10850 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10851 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10852 (linux_nat_set_prepare_to_resume): Delete.
10853 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
10854 low virtual methods.
10855 * amd64-linux-nat.c: Likewise.
10856 * arm-linux-nat.c: Likewise.
10857 * i386-linux-nat.c: Likewise.
10858 * ia64-linux-nat.c: Likewise.
10859 * mips-linux-nat.c: Likewise.
10860 * ppc-linux-nat.c: Likewise.
10861 * s390-linux-nat.c: Likewise.
10862 * sparc64-linux-nat.c: Likewise.
10863 * x86-linux-nat.c: Likewise.
10864 * x86-linux-nat.h: Include "nat/x86-linux.h".
10865 (x86_linux_nat_target) <low_new_fork, low_forget_process,
10866 low_prepare_to_resume, low_new_thread, low_delete_thread>:
10869 2018-05-02 Pedro Alves <palves@redhat.com>
10871 * target.h (target_ops)
10872 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10873 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
10874 stopped_by_watchpoint, have_continuable_watchpoint,
10875 stopped_data_address, watchpoint_addr_within_range,
10876 can_accel_watchpoint_condition, can_run, thread_alive,
10877 has_all_memory, has_memory, has_stack, has_registers,
10878 has_execution, can_async_p, is_async_p, supports_non_stop,
10879 always_non_stop_p, can_execute_reverse, supports_multi_process,
10880 supports_enable_disable_tracepoint,
10881 supports_disable_randomization, supports_string_tracing,
10882 supports_evaluation_of_breakpoint_conditions,
10883 can_run_breakpoint_commands, filesystem_is_local,
10884 can_download_tracepoint, get_trace_state_variable_value,
10885 set_trace_notes, get_tib_address, use_agent, can_use_agent,
10886 record_is_replaying, record_will_replay,
10887 augmented_libraries_svr4_read>: Adjust to return bool.
10888 * aarch64-linux-nat.c: All implementations adjusted.
10889 * aix-thread.c: All implementations adjusted.
10890 * arm-linux-nat.c: All implementations adjusted.
10891 * breakpoint.c: All implementations adjusted.
10892 * bsd-kvm.c: All implementations adjusted.
10893 * bsd-uthread.c: All implementations adjusted.
10894 * corelow.c: All implementations adjusted.
10895 * ctf.c: All implementations adjusted.
10896 * darwin-nat.c: All implementations adjusted.
10897 * darwin-nat.h: All implementations adjusted.
10898 * exec.c: All implementations adjusted.
10899 * fbsd-nat.c: All implementations adjusted.
10900 * fbsd-nat.h: All implementations adjusted.
10901 * gnu-nat.c: All implementations adjusted.
10902 * gnu-nat.h: All implementations adjusted.
10903 * go32-nat.c: All implementations adjusted.
10904 * ia64-linux-nat.c: All implementations adjusted.
10905 * inf-child.c: All implementations adjusted.
10906 * inf-child.h: All implementations adjusted.
10907 * inf-ptrace.c: All implementations adjusted.
10908 * inf-ptrace.h: All implementations adjusted.
10909 * linux-nat.c: All implementations adjusted.
10910 * linux-nat.h: All implementations adjusted.
10911 * mips-linux-nat.c: All implementations adjusted.
10912 * nto-procfs.c: All implementations adjusted.
10913 * ppc-linux-nat.c: All implementations adjusted.
10914 * procfs.c: All implementations adjusted.
10915 * ravenscar-thread.c: All implementations adjusted.
10916 * record-btrace.c: All implementations adjusted.
10917 * record-full.c: All implementations adjusted.
10918 * remote-sim.c: All implementations adjusted.
10919 * remote.c: All implementations adjusted.
10920 * s390-linux-nat.c: All implementations adjusted.
10921 * sol-thread.c: All implementations adjusted.
10922 * spu-multiarch.c: All implementations adjusted.
10923 * target-delegates.c: All implementations adjusted.
10924 * target.c: All implementations adjusted.
10925 * target.h: All implementations adjusted.
10926 * tracefile-tfile.c: All implementations adjusted.
10927 * tracefile.c: All implementations adjusted.
10928 * tracefile.h: All implementations adjusted.
10929 * windows-nat.c: All implementations adjusted.
10930 * x86-linux-nat.h: All implementations adjusted.
10931 * x86-nat.h: All implementations adjusted.
10933 2018-05-02 Pedro Alves <palves@redhat.com>
10935 * make-target-delegates (scan_target_h): Don't trim lines here.
10936 Replace sequences of tabs and/or whitespace with a single
10938 (top level, parsing methods): Trim each line before processing it
10941 2018-05-02 Pedro Alves <palves@redhat.com>
10942 John Baldwin <jhb@freebsd.org>
10944 * target.h (enum strata) <debug_stratum>: New.
10945 (struct target_ops) <all delegation methods>: Replace by C++
10946 virtual methods, and drop "to_" prefix. All references updated
10948 <to_shortname, to_longname, to_doc, to_data,
10949 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
10950 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
10951 virtual methods. All references updated throughout.
10952 <can_attach, supports_terminal_ours, can_create_inferior,
10953 get_thread_control_capabilities, attach_no_wait>: New
10955 <insert_breakpoint, remove_breakpoint>: Now
10956 TARGET_DEFAULT_NORETURN methods.
10957 <info_proc>: Now returns bool.
10958 <to_magic>: Delete.
10959 (OPS_MAGIC): Delete.
10960 (current_target): Delete. All references replaced by references
10962 (target_stack): ... this. New.
10963 (target_shortname, target_longname): Adjust.
10964 (target_can_run): Now a function declaration.
10965 (default_child_has_all_memory, default_child_has_memory)
10966 (default_child_has_stack, default_child_has_registers)
10967 (default_child_has_execution): Remove target_ops parameter.
10968 (complete_target_initialization): Delete.
10969 (memory_breakpoint_target): New template class.
10970 (test_target_ops): Refactor as a C++ class with virtual methods.
10971 * make-target-delegates (NAME_PART): Tighten.
10972 (POINTER_PART, CP_SYMBOL): New.
10973 (SIMPLE_RETURN_PART): Reimplement.
10974 (VEC_RETURN_PART): Expect less.
10975 (RETURN_PART, VIRTUAL_PART): New.
10976 (METHOD): Adjust to C++ virtual methods.
10977 (scan_target_h): Remove reference to C99.
10978 (dname): Output "target_ops::" prefix.
10979 (write_function_header): Adjust to output a C++ class method.
10980 (write_declaration): New.
10981 (write_delegator): Adjust to output a C++ class method.
10982 (tdname): Output "dummy_target::" prefix.
10983 (write_tdefault, write_debugmethod): Adjust to output a C++ class
10985 (tdefault_names, debug_names): Delete.
10986 (return_types, tdefaults, styles, argtypes_array): New.
10987 (top level): All methods are delegators.
10988 (print_class): New.
10989 (top level): Print dummy_target and debug_target classes.
10990 * target-delegates.c: Regenerate.
10991 * target-debug.h (target_debug_print_enum_info_proc_what)
10992 (target_debug_print_thread_control_capabilities)
10993 (target_debug_print_thread_info_p): New.
10994 * target.c (dummy_target): Delete.
10995 (the_dummy_target, the_debug_target): New.
10996 (target_stack): Now extern.
10997 (set_targetdebug): Push/unpush debug target.
10998 (default_child_has_all_memory, default_child_has_memory)
10999 (default_child_has_stack, default_child_has_registers)
11000 (default_child_has_execution): Remove target_ops parameter.
11001 (complete_target_initialization): Delete.
11002 (add_target_with_completer): No longer call
11003 complete_target_initialization.
11004 (target_supports_terminal_ours): Use regular delegation.
11005 (update_current_target): Delete.
11006 (push_target): No longer check magic number. Don't call
11007 update_current_target.
11008 (unpush_target): Don't call update_current_target.
11009 (target_is_pushed): No longer check magic number.
11010 (target_require_runnable): Skip for all stratums over
11012 (target_ops::info_proc): New.
11013 (target_info_proc): Use find_target_at and
11014 find_default_run_target.
11015 (target_supports_disable_randomization): Use regular delegation.
11016 (target_get_osdata): Use find_target_at.
11017 (target_ops::open, target_ops::close, target_ops::can_attach)
11018 (target_ops::attach, target_ops::can_create_inferior)
11019 (target_ops::create_inferior, target_ops::can_run)
11020 (target_can_run): New.
11021 (default_fileio_target): Use regular delegation.
11022 (target_ops::fileio_open, target_ops::fileio_pwrite)
11023 (target_ops::fileio_pread, target_ops::fileio_fstat)
11024 (target_ops::fileio_close, target_ops::fileio_unlink)
11025 (target_ops::fileio_readlink): New.
11026 (target_fileio_open_1, target_fileio_unlink)
11027 (target_fileio_readlink): Always call the target method. Handle
11029 (return_zero, return_zero_has_execution): Delete.
11030 (init_dummy_target): Delete.
11031 (dummy_target::dummy_target, dummy_target::shortname)
11032 (dummy_target::longname, dummy_target::doc)
11033 (debug_target::debug_target, debug_target::shortname)
11034 (debug_target::longname, debug_target::doc): New.
11035 (target_supports_delete_record): Use regular delegation.
11036 (setup_target_debug): Delete.
11037 (maintenance_print_target_stack): Skip debug_stratum.
11038 (initialize_targets): Instantiate the_dummy_target and
11040 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
11042 (target_auxv_search, fprint_target_auxv): Adjust.
11043 (info_auxv_command): Adjust to use target_stack.
11044 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
11045 * exceptions.c (print_flush): Handle a NULL target_stack.
11046 * regcache.c (target_ops_no_register): Refactor as class with
11049 * exec.c (exec_target): New class.
11050 (exec_ops): Now an exec_target.
11051 (exec_open, exec_close_1, exec_get_section_table)
11052 (exec_xfer_partial, exec_files_info, exec_has_memory)
11053 (exec_make_note_section): Refactor as exec_target methods.
11054 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
11056 (exec_target::find_memory_regions): New.
11057 (_initialize_exec): Don't call init_exec_ops.
11058 * gdbcore.h (exec_file_clear): Delete.
11060 * corefile.c (core_target): Delete.
11061 (core_file_command): Adjust.
11062 * corelow.c (core_target): New class.
11063 (the_core_target): New.
11064 (core_close): Remove target_ops parameter.
11065 (core_close_cleanup): Adjust.
11066 (core_target::close): New.
11067 (core_open, core_detach, get_core_registers, core_files_info)
11068 (core_xfer_partial, core_thread_alive, core_read_description)
11069 (core_pid_to_str, core_thread_name, core_has_memory)
11070 (core_has_stack, core_has_registers, core_info_proc): Rework as
11071 core_target methods.
11072 (ignore, core_remove_breakpoint, init_core_ops): Delete.
11073 (_initialize_corelow): Initialize the_core_target.
11074 * gdbcore.h (core_target): Delete.
11075 (the_core_target): New.
11077 * ctf.c: (ctf_target): New class.
11078 (ctf_ops): Now a ctf_target.
11079 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
11080 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
11081 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
11083 (init_ctf_ops): Delete.
11084 (_initialize_ctf): Don't call it.
11085 * tracefile-tfile.c (tfile_target): New class.
11086 (tfile_ops): Now a tfile_target.
11087 (tfile_open, tfile_close, tfile_files_info)
11088 (tfile_get_tracepoint_status, tfile_trace_find)
11089 (tfile_fetch_registers, tfile_xfer_partial)
11090 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
11091 Refactor as tfile_target methods.
11092 (tfile_xfer_partial_features): Remove target_ops parameter.
11093 (init_tfile_ops): Delete.
11094 (_initialize_tracefile_tfile): Don't call it.
11095 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
11096 (tracefile_has_stack, tracefile_has_registers)
11097 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
11098 tracefile_target methods.
11099 (init_tracefile_ops): Delete.
11100 (tracefile_target::tracefile_target): New.
11101 * tracefile.h: Include "target.h".
11102 (tracefile_target): New class.
11103 (init_tracefile_ops): Delete.
11105 * spu-multiarch.c (spu_multiarch_target): New class.
11106 (spu_ops): Now a spu_multiarch_target.
11107 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
11108 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
11109 (spu_search_memory, spu_mourn_inferior): Refactor as
11110 spu_multiarch_target methods.
11111 (init_spu_ops): Delete.
11112 (_initialize_spu_multiarch): Remove references to init_spu_ops,
11113 complete_target_initialization.
11115 * ravenscar-thread.c (ravenscar_thread_target): New class.
11116 (ravenscar_ops): Now a ravenscar_thread_target.
11117 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
11118 (ravenscar_thread_alive, ravenscar_pid_to_str)
11119 (ravenscar_fetch_registers, ravenscar_store_registers)
11120 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
11121 (ravenscar_stopped_by_hw_breakpoint)
11122 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
11123 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
11124 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
11126 (init_ravenscar_thread_ops): Delete.
11127 (_initialize_ravenscar): Remove references to
11128 init_ravenscar_thread_ops and complete_target_initialization.
11130 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
11131 (bsd_uthread_target): New class.
11132 (bsd_uthread_ops): Now a bsd_uthread_target.
11133 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
11134 (bsd_uthread_close, bsd_uthread_mourn_inferior)
11135 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
11136 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
11137 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
11138 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
11139 (bsd_uthread_target): Delete function.
11140 (_initialize_bsd_uthread): Remove reference to
11141 complete_target_initialization.
11143 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
11144 (target_bfd): ... this new class.
11145 (target_bfd_xfer_partial, target_bfd_get_section_table)
11146 (target_bfd_close): Refactor as target_bfd methods.
11147 (target_bfd::~target_bfd): New.
11148 (target_bfd_reopen): Adjust.
11149 (target_bfd::close): New.
11151 * record-btrace.c (record_btrace_target): New class.
11152 (record_btrace_ops): Now a record_btrace_target.
11153 (record_btrace_open, record_btrace_stop_recording)
11154 (record_btrace_disconnect, record_btrace_close)
11155 (record_btrace_async, record_btrace_info)
11156 (record_btrace_insn_history, record_btrace_insn_history_range)
11157 (record_btrace_insn_history_from, record_btrace_call_history)
11158 (record_btrace_call_history_range)
11159 (record_btrace_call_history_from, record_btrace_record_method)
11160 (record_btrace_is_replaying, record_btrace_will_replay)
11161 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
11162 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
11163 (record_btrace_store_registers, record_btrace_prepare_to_store)
11164 (record_btrace_to_get_unwinder)
11165 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
11166 (record_btrace_commit_resume, record_btrace_wait)
11167 (record_btrace_stop, record_btrace_can_execute_reverse)
11168 (record_btrace_stopped_by_sw_breakpoint)
11169 (record_btrace_supports_stopped_by_sw_breakpoint)
11170 (record_btrace_stopped_by_hw_breakpoint)
11171 (record_btrace_supports_stopped_by_hw_breakpoint)
11172 (record_btrace_update_thread_list, record_btrace_thread_alive)
11173 (record_btrace_goto_begin, record_btrace_goto_end)
11174 (record_btrace_goto, record_btrace_stop_replaying_all)
11175 (record_btrace_execution_direction)
11176 (record_btrace_prepare_to_generate_core)
11177 (record_btrace_done_generating_core): Refactor as
11178 record_btrace_target methods.
11179 (init_record_btrace_ops): Delete.
11180 (_initialize_record_btrace): Remove reference to
11181 init_record_btrace_ops.
11182 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
11183 the execution_direction global.
11184 (record_full_base_target, record_full_target)
11185 (record_full_core_target): New classes.
11186 (record_full_ops): Now a record_full_target.
11187 (record_full_core_ops): Now a record_full_core_target.
11188 (record_full_target::detach, record_full_target::disconnect)
11189 (record_full_core_target::disconnect)
11190 (record_full_target::mourn_inferior, record_full_target::kill):
11192 (record_full_open, record_full_close, record_full_async): Refactor
11193 as methods of the record_full_base_target class.
11194 (record_full_resume, record_full_commit_resume): Refactor
11195 as methods of the record_full_target class.
11196 (record_full_wait, record_full_stopped_by_watchpoint)
11197 (record_full_stopped_data_address)
11198 (record_full_stopped_by_sw_breakpoint)
11199 (record_full_supports_stopped_by_sw_breakpoint)
11200 (record_full_stopped_by_hw_breakpoint)
11201 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
11202 methods of the record_full_base_target class.
11203 (record_full_store_registers, record_full_xfer_partial)
11204 (record_full_insert_breakpoint, record_full_remove_breakpoint):
11205 Refactor as methods of the record_full_target class.
11206 (record_full_can_execute_reverse, record_full_get_bookmark)
11207 (record_full_goto_bookmark, record_full_execution_direction)
11208 (record_full_record_method, record_full_info, record_full_delete)
11209 (record_full_is_replaying, record_full_will_replay)
11210 (record_full_goto_begin, record_full_goto_end, record_full_goto)
11211 (record_full_stop_replaying): Refactor as methods of the
11212 record_full_base_target class.
11213 (record_full_core_resume, record_full_core_kill)
11214 (record_full_core_fetch_registers)
11215 (record_full_core_prepare_to_store)
11216 (record_full_core_store_registers, record_full_core_xfer_partial)
11217 (record_full_core_insert_breakpoint)
11218 (record_full_core_remove_breakpoint)
11219 (record_full_core_has_execution): Refactor
11220 as methods of the record_full_core_target class.
11221 (record_full_base_target::supports_delete_record): New.
11222 (init_record_full_ops): Delete.
11223 (init_record_full_core_ops): Delete.
11224 (record_full_save): Refactor as method of the
11225 record_full_base_target class.
11226 (_initialize_record_full): Remove references to
11227 init_record_full_ops and init_record_full_core_ops.
11229 * remote.c (remote_target, extended_remote_target): New classes.
11230 (remote_ops): Now a remote_target.
11231 (extended_remote_ops): Now an extended_remote_target.
11232 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
11233 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
11234 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
11235 (remote_pass_signals, remote_set_syscall_catchpoint)
11236 (remote_program_signals, )
11237 (remote_thread_always_alive): Remove target_ops parameter.
11238 (remote_thread_alive, remote_thread_name)
11239 (remote_update_thread_list, remote_threads_extra_info)
11240 (remote_static_tracepoint_marker_at)
11241 (remote_static_tracepoint_markers_by_strid)
11242 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
11243 (remote_open): Refactor as methods of remote_target.
11244 (extended_remote_open, extended_remote_detach)
11245 (extended_remote_attach, extended_remote_post_attach):
11246 (extended_remote_supports_disable_randomization)
11247 (extended_remote_create_inferior): : Refactor as method of
11248 extended_remote_target.
11249 (remote_set_permissions, remote_open_1, remote_detach)
11250 (remote_follow_fork, remote_follow_exec, remote_disconnect)
11251 (remote_resume, remote_commit_resume, remote_stop)
11252 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
11253 (remote_terminal_ours, remote_wait, remote_fetch_registers)
11254 (remote_prepare_to_store, remote_store_registers)
11255 (remote_flash_erase, remote_flash_done, remote_files_info)
11256 (remote_kill, remote_mourn, remote_insert_breakpoint)
11257 (remote_remove_breakpoint, remote_insert_watchpoint)
11258 (remote_watchpoint_addr_within_range)
11259 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
11260 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
11261 (remote_supports_stopped_by_sw_breakpoint)
11262 (remote_stopped_by_hw_breakpoint)
11263 (remote_supports_stopped_by_hw_breakpoint)
11264 (remote_stopped_by_watchpoint, remote_stopped_data_address)
11265 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
11266 (remote_verify_memory): Refactor as methods of remote_target.
11267 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
11269 (remote_xfer_partial, remote_get_memory_xfer_limit)
11270 (remote_search_memory, remote_rcmd, remote_memory_map)
11271 (remote_pid_to_str, remote_get_thread_local_address)
11272 (remote_get_tib_address, remote_read_description): Refactor as
11273 methods of remote_target.
11274 (remote_target::fileio_open, remote_target::fileio_pwrite)
11275 (remote_target::fileio_pread, remote_target::fileio_close): New.
11276 (remote_hostio_readlink, remote_hostio_fstat)
11277 (remote_filesystem_is_local, remote_can_execute_reverse)
11278 (remote_supports_non_stop, remote_supports_disable_randomization)
11279 (remote_supports_multi_process, remote_supports_cond_breakpoints)
11280 (remote_supports_enable_disable_tracepoint)
11281 (remote_supports_string_tracing)
11282 (remote_can_run_breakpoint_commands, remote_trace_init)
11283 (remote_download_tracepoint, remote_can_download_tracepoint)
11284 (remote_download_trace_state_variable, remote_enable_tracepoint)
11285 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
11286 (remote_trace_start, remote_get_trace_status)
11287 (remote_get_tracepoint_status, remote_trace_stop)
11288 (remote_trace_find, remote_get_trace_state_variable_value)
11289 (remote_save_trace_data, remote_get_raw_trace_data)
11290 (remote_set_disconnected_tracing, remote_core_of_thread)
11291 (remote_set_circular_trace_buffer, remote_traceframe_info)
11292 (remote_get_min_fast_tracepoint_insn_len)
11293 (remote_set_trace_buffer_size, remote_set_trace_notes)
11294 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
11295 (remote_disable_btrace, remote_teardown_btrace)
11296 (remote_read_btrace, remote_btrace_conf)
11297 (remote_augmented_libraries_svr4_read, remote_load)
11298 (remote_pid_to_exec_file, remote_can_do_single_step)
11299 (remote_execution_direction, remote_thread_handle_to_thread_info):
11300 Refactor as methods of remote_target.
11301 (init_remote_ops, init_extended_remote_ops): Delete.
11302 (remote_can_async_p, remote_is_async_p, remote_async)
11303 (remote_thread_events, remote_upload_tracepoints)
11304 (remote_upload_trace_state_variables): Refactor as methods of
11306 (_initialize_remote): Remove references to init_remote_ops and
11307 init_extended_remote_ops.
11309 * remote-sim.c (gdbsim_target): New class.
11310 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
11311 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
11312 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
11313 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
11314 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
11315 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
11316 Refactor as methods of gdbsim_target.
11317 (gdbsim_ops): Now a gdbsim_target.
11318 (init_gdbsim_ops): Delete.
11319 (gdbsim_cntrl_c): Adjust.
11320 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
11322 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
11323 (the_amd64_linux_nat_target): New.
11324 (amd64_linux_fetch_inferior_registers)
11325 (amd64_linux_store_inferior_registers): Refactor as methods of
11326 amd64_linux_nat_target.
11327 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
11328 * i386-linux-nat.c: Don't include "linux-nat.h".
11329 (i386_linux_nat_target): New class.
11330 (the_i386_linux_nat_target): New.
11331 (i386_linux_fetch_inferior_registers)
11332 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
11333 as methods of i386_linux_nat_target.
11334 (_initialize_i386_linux_nat): Adjust. Set linux_target.
11335 * inf-child.c (inf_child_ops): Delete.
11336 (inf_child_fetch_inferior_registers)
11337 (inf_child_store_inferior_registers): Delete.
11338 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
11339 methods of inf_child_target.
11340 (inf_child_target::supports_terminal_ours)
11341 (inf_child_target::terminal_init)
11342 (inf_child_target::terminal_inferior)
11343 (inf_child_target::terminal_ours_for_output)
11344 (inf_child_target::terminal_ours, inf_child_target::interrupt)
11345 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
11347 (inf_child_open, inf_child_disconnect, inf_child_close)
11348 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
11349 (inf_child_post_startup_inferior, inf_child_can_run)
11350 (inf_child_pid_to_exec_file): Refactor as methods of
11352 (inf_child_follow_fork): Delete.
11353 (inf_child_target::can_create_inferior)
11354 (inf_child_target::can_attach): New.
11355 (inf_child_target::has_all_memory, inf_child_target::has_memory)
11356 (inf_child_target::has_stack, inf_child_target::has_registers)
11357 (inf_child_target::has_execution): New.
11358 (inf_child_fileio_open, inf_child_fileio_pwrite)
11359 (inf_child_fileio_pread, inf_child_fileio_fstat)
11360 (inf_child_fileio_close, inf_child_fileio_unlink)
11361 (inf_child_fileio_readlink, inf_child_use_agent)
11362 (inf_child_can_use_agent): Refactor as methods of
11364 (return_zero, inf_child_target): Delete.
11365 (inf_child_target::inf_child_target): New.
11366 * inf-child.h: Include "target.h".
11367 (inf_child_target): Delete function prototype.
11368 (inf_child_target): New class.
11369 (inf_child_open_target, inf_child_mourn_inferior)
11370 (inf_child_maybe_unpush_target): Delete.
11371 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
11372 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
11373 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
11374 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
11375 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
11376 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
11377 (inf_ptrace_wait, inf_ptrace_xfer_partial)
11378 (inf_ptrace_thread_alive, inf_ptrace_files_info)
11379 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
11380 methods of inf_ptrace_target.
11381 (inf_ptrace_target): Delete function.
11382 * inf-ptrace.h: Include "inf-child.h".
11383 (inf_ptrace_target): Delete function declaration.
11384 (inf_ptrace_target): New class.
11385 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
11386 * linux-nat.c (linux_target): New.
11387 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
11388 (linux_nat_target::~linux_nat_target): New.
11389 (linux_child_post_attach, linux_child_post_startup_inferior)
11390 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
11391 (linux_child_remove_fork_catchpoint)
11392 (linux_child_insert_vfork_catchpoint)
11393 (linux_child_remove_vfork_catchpoint)
11394 (linux_child_insert_exec_catchpoint)
11395 (linux_child_remove_exec_catchpoint)
11396 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
11397 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
11398 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
11399 (linux_nat_stopped_data_address)
11400 (linux_nat_stopped_by_sw_breakpoint)
11401 (linux_nat_supports_stopped_by_sw_breakpoint)
11402 (linux_nat_stopped_by_hw_breakpoint)
11403 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
11404 (linux_nat_kill, linux_nat_mourn_inferior)
11405 (linux_nat_xfer_partial, linux_nat_thread_alive)
11406 (linux_nat_update_thread_list, linux_nat_pid_to_str)
11407 (linux_nat_thread_name, linux_child_pid_to_exec_file)
11408 (linux_child_static_tracepoint_markers_by_strid)
11409 (linux_nat_is_async_p, linux_nat_can_async_p)
11410 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
11411 (linux_nat_supports_multi_process)
11412 (linux_nat_supports_disable_randomization, linux_nat_async)
11413 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
11414 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
11415 (linux_nat_fileio_open, linux_nat_fileio_readlink)
11416 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
11417 methods of linux_nat_target.
11418 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
11419 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
11421 (check_stopped_by_watchpoint): Adjust.
11422 (linux_xfer_partial): Delete.
11423 (linux_target_install_ops, linux_target, linux_nat_add_target):
11425 (linux_nat_target::linux_nat_target): New.
11426 * linux-nat.h: Include "inf-ptrace.h".
11427 (linux_nat_target): New.
11428 (linux_target, linux_target_install_ops, linux_nat_add_target):
11429 Delete function declarations.
11430 (linux_target): Declare global.
11431 * linux-thread-db.c (thread_db_target): New.
11432 (thread_db_target::thread_db_target): New.
11433 (thread_db_ops): Delete.
11434 (the_thread_db_target): New.
11435 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
11436 (thread_db_update_thread_list, thread_db_pid_to_str)
11437 (thread_db_extra_thread_info)
11438 (thread_db_thread_handle_to_thread_info)
11439 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
11440 (thread_db_resume): Refactor as methods of thread_db_target.
11441 (init_thread_db_ops): Delete.
11442 (_initialize_thread_db): Remove reference to init_thread_db_ops.
11443 * x86-linux-nat.c: Don't include "linux-nat.h".
11444 (super_post_startup_inferior): Delete.
11445 (x86_linux_nat_target::~x86_linux_nat_target): New.
11446 (x86_linux_child_post_startup_inferior)
11447 (x86_linux_read_description, x86_linux_enable_btrace)
11448 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
11449 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
11450 methods of x86_linux_nat_target.
11451 (x86_linux_create_target): Delete. Bits folded ...
11452 (x86_linux_add_target): ... here. Now takes a linux_nat_target
11454 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
11455 (x86_linux_nat_target): New class.
11456 (x86_linux_create_target): Delete.
11457 (x86_linux_add_target): Now takes a linux_nat_target pointer.
11458 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
11459 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
11460 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
11461 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
11462 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
11464 (x86_use_watchpoints): Delete.
11465 * x86-nat.h: Include "breakpoint.h" and "target.h".
11466 (x86_use_watchpoints): Delete.
11467 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
11468 (x86_stopped_by_watchpoint, x86_stopped_data_address)
11469 (x86_insert_watchpoint, x86_remove_watchpoint)
11470 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
11471 (x86_stopped_by_hw_breakpoint): New declarations.
11472 (x86_nat_target): New template class.
11474 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
11475 (the_ppc_linux_nat_target): New.
11476 (ppc_linux_fetch_inferior_registers)
11477 (ppc_linux_can_use_hw_breakpoint)
11478 (ppc_linux_region_ok_for_hw_watchpoint)
11479 (ppc_linux_ranged_break_num_registers)
11480 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
11481 (ppc_linux_insert_mask_watchpoint)
11482 (ppc_linux_remove_mask_watchpoint)
11483 (ppc_linux_can_accel_watchpoint_condition)
11484 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
11485 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
11486 (ppc_linux_watchpoint_addr_within_range)
11487 (ppc_linux_masked_watch_num_registers)
11488 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
11489 (ppc_linux_read_description): Refactor as methods of
11490 ppc_linux_nat_target.
11491 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
11493 * procfs.c (procfs_xfer_partial): Delete forward declaration.
11494 (procfs_target): New class.
11495 (the_procfs_target): New.
11496 (procfs_target): Delete function.
11497 (procfs_auxv_parse, procfs_attach, procfs_detach)
11498 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
11499 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
11500 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
11501 (procfs_create_inferior, procfs_update_thread_list)
11502 (procfs_thread_alive, procfs_pid_to_str)
11503 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
11504 (procfs_stopped_data_address, procfs_insert_watchpoint)
11505 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
11506 (proc_find_memory_regions, procfs_info_proc)
11507 (procfs_make_note_section): Refactor as methods of procfs_target.
11508 (_initialize_procfs): Adjust.
11509 * sol-thread.c (sol_thread_target): New class.
11510 (sol_thread_ops): Now a sol_thread_target.
11511 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
11512 (sol_thread_fetch_registers, sol_thread_store_registers)
11513 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
11514 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
11515 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
11516 (init_sol_thread_ops): Delete.
11517 (_initialize_sol_thread): Adjust. Remove references to
11518 init_sol_thread_ops and complete_target_initialization.
11520 * windows-nat.c (windows_nat_target): New class.
11521 (windows_fetch_inferior_registers)
11522 (windows_store_inferior_registers, windows_resume, windows_wait)
11523 (windows_attach, windows_detach, windows_pid_to_exec_file)
11524 (windows_files_info, windows_create_inferior)
11525 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
11526 (windows_close, windows_pid_to_str, windows_xfer_partial)
11527 (windows_get_tib_address, windows_get_ada_task_ptid)
11528 (windows_thread_name, windows_thread_alive): Refactor as
11529 windows_nat_target methods.
11530 (do_initial_windows_stuff): Adjust.
11531 (windows_target): Delete function.
11532 (_initialize_windows_nat): Adjust.
11534 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
11535 (darwin_mourn_inferior, darwin_kill_inferior)
11536 (darwin_create_inferior, darwin_attach, darwin_detach)
11537 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
11538 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
11539 (darwin_supports_multi_process): Refactor as darwin_nat_target
11541 (darwin_resume_to, darwin_files_info): Delete.
11542 (_initialize_darwin_inferior): Rename to ...
11543 (_initialize_darwin_nat): ... this. Adjust to C++ification.
11544 * darwin-nat.h: Include "inf-child.h".
11545 (darwin_nat_target): New class.
11546 (darwin_complete_target): Delete.
11547 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
11548 (darwin_target): New.
11549 (i386_darwin_fetch_inferior_registers)
11550 (i386_darwin_store_inferior_registers): Refactor as methods of
11552 (darwin_complete_target): Delete, with ...
11553 (_initialize_i386_darwin_nat): ... bits factored out here.
11555 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
11556 (the_alpha_linux_nat_target): New.
11557 (alpha_linux_register_u_offset): Refactor as
11558 alpha_linux_nat_target method.
11559 (_initialize_alpha_linux_nat): Adjust.
11560 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
11561 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11562 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
11563 methods of linux_nat_trad_target.
11564 (linux_trad_target): Delete.
11565 * linux-nat-trad.h (linux_trad_target): Delete function.
11566 (linux_nat_trad_target): New class.
11567 * mips-linux-nat.c (mips_linux_nat_target): New class.
11568 (super_fetch_registers, super_store_registers, super_close):
11570 (the_mips_linux_nat_target): New.
11571 (mips64_linux_regsets_fetch_registers)
11572 (mips64_linux_regsets_store_registers)
11573 (mips64_linux_fetch_registers, mips64_linux_store_registers)
11574 (mips_linux_register_u_offset, mips_linux_read_description)
11575 (mips_linux_can_use_hw_breakpoint)
11576 (mips_linux_stopped_by_watchpoint)
11577 (mips_linux_stopped_data_address)
11578 (mips_linux_region_ok_for_hw_watchpoint)
11579 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
11580 (mips_linux_close): Refactor as methods of mips_linux_nat.
11581 (_initialize_mips_linux_nat): Adjust to C++ification.
11583 * aix-thread.c (aix_thread_target): New class.
11584 (aix_thread_ops): Now an aix_thread_target.
11585 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
11586 (aix_thread_fetch_registers, aix_thread_store_registers)
11587 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
11588 (aix_thread_thread_alive, aix_thread_pid_to_str)
11589 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
11590 Refactor as methods of aix_thread_target.
11591 (init_aix_thread_ops): Delete.
11592 (_initialize_aix_thread): Remove references to init_aix_thread_ops
11593 and complete_target_initialization.
11594 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
11595 (rs6000_nat_target): New class.
11596 (the_rs6000_nat_target): New.
11597 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
11598 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
11599 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
11600 (super_create_inferior): Delete.
11601 (_initialize_rs6000_nat): Adjust to C++ification.
11603 * arm-linux-nat.c (arm_linux_nat_target): New class.
11604 (the_arm_linux_nat_target): New.
11605 (arm_linux_fetch_inferior_registers)
11606 (arm_linux_store_inferior_registers, arm_linux_read_description)
11607 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
11608 (arm_linux_remove_hw_breakpoint)
11609 (arm_linux_region_ok_for_hw_watchpoint)
11610 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
11611 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
11612 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
11613 arm_linux_nat_target.
11614 (_initialize_arm_linux_nat): Adjust to C++ification.
11616 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
11617 (the_aarch64_linux_nat_target): New.
11618 (aarch64_linux_fetch_inferior_registers)
11619 (aarch64_linux_store_inferior_registers)
11620 (aarch64_linux_child_post_startup_inferior)
11621 (aarch64_linux_read_description)
11622 (aarch64_linux_can_use_hw_breakpoint)
11623 (aarch64_linux_insert_hw_breakpoint)
11624 (aarch64_linux_remove_hw_breakpoint)
11625 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
11626 (aarch64_linux_region_ok_for_hw_watchpoint)
11627 (aarch64_linux_stopped_data_address)
11628 (aarch64_linux_stopped_by_watchpoint)
11629 (aarch64_linux_watchpoint_addr_within_range)
11630 (aarch64_linux_can_do_single_step): Refactor as methods of
11631 aarch64_linux_nat_target.
11632 (super_post_startup_inferior): Delete.
11633 (_initialize_aarch64_linux_nat): Adjust to C++ification.
11635 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
11636 (the_hppa_linux_nat_target): New.
11637 (hppa_linux_fetch_inferior_registers)
11638 (hppa_linux_store_inferior_registers): Refactor as methods of
11639 hppa_linux_nat_target.
11640 (_initialize_hppa_linux_nat): Adjust to C++ification.
11642 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
11643 (the_ia64_linux_nat_target): New.
11644 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
11645 (ia64_linux_stopped_data_address)
11646 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
11647 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
11648 ia64_linux_nat_target methods.
11649 (super_xfer_partial): Delete.
11650 (_initialize_ia64_linux_nat): Adjust to C++ification.
11652 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
11653 (the_m32r_linux_nat_target): New.
11654 (m32r_linux_fetch_inferior_registers)
11655 (m32r_linux_store_inferior_registers): Refactor as
11656 m32r_linux_nat_target methods.
11657 (_initialize_m32r_linux_nat): Adjust to C++ification.
11659 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
11660 (the_m68k_linux_nat_target): New.
11661 (m68k_linux_fetch_inferior_registers)
11662 (m68k_linux_store_inferior_registers): Refactor as
11663 m68k_linux_nat_target methods.
11664 (_initialize_m68k_linux_nat): Adjust to C++ification.
11666 * s390-linux-nat.c (s390_linux_nat_target): New class.
11667 (the_s390_linux_nat_target): New.
11668 (s390_linux_fetch_inferior_registers)
11669 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
11670 (s390_insert_watchpoint, s390_remove_watchpoint)
11671 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
11672 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
11673 (s390_auxv_parse, s390_read_description): Refactor as methods of
11674 s390_linux_nat_target.
11675 (_initialize_s390_nat): Adjust to C++ification.
11677 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
11678 (the_sparc_linux_nat_target): New.
11679 (_initialize_sparc_linux_nat): Adjust to C++ification.
11680 * sparc-nat.c (sparc_fetch_inferior_registers)
11681 (sparc_store_inferior_registers): Remove target_ops parameter.
11682 * sparc-nat.h (sparc_fetch_inferior_registers)
11683 (sparc_store_inferior_registers): Remove target_ops parameter.
11684 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
11685 (the_sparc64_linux_nat_target): New.
11686 (_initialize_sparc64_linux_nat): Adjust to C++ification.
11688 * spu-linux-nat.c (spu_linux_nat_target): New class.
11689 (the_spu_linux_nat_target): New.
11690 (spu_child_post_startup_inferior, spu_child_post_attach)
11691 (spu_child_wait, spu_fetch_inferior_registers)
11692 (spu_store_inferior_registers, spu_xfer_partial)
11693 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
11695 (_initialize_spu_nat): Adjust to C++ification.
11697 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
11698 (the_tilegx_linux_nat_target): New.
11699 (fetch_inferior_registers, store_inferior_registers):
11700 Refactor as methods.
11701 (_initialize_tile_linux_nat): Adjust to C++ification.
11703 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
11704 (the_xtensa_linux_nat_target): New.
11705 (xtensa_linux_fetch_inferior_registers)
11706 (xtensa_linux_store_inferior_registers): Refactor as
11707 xtensa_linux_nat_target methods.
11708 (_initialize_xtensa_linux_nat): Adjust to C++ification.
11710 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
11711 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
11712 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
11713 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
11714 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
11715 (fbsd_stopped_by_sw_breakpoint)
11716 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
11717 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
11718 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
11719 (fbsd_post_startup_inferior, fbsd_post_attach)
11720 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
11721 (fbsd_set_syscall_catchpoint)
11722 (super_xfer_partial, super_resume, super_wait)
11723 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
11724 (fbsd_handle_debug_trap): Remove target_ops parameter.
11725 (fbsd_nat_add_target): Delete.
11726 * fbsd-nat.h: Include "inf-ptrace.h".
11727 (fbsd_nat_add_target): Delete.
11728 (USE_SIGTRAP_SIGINFO): Define.
11729 (fbsd_nat_target): New class.
11731 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
11732 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
11733 (amd64bsd_target): Delete.
11734 * amd64-bsd-nat.h: New file.
11735 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
11737 (amd64_fbsd_nat_target): New class.
11738 (the_amd64_fbsd_nat_target): New.
11739 (amd64fbsd_read_description): Refactor as method of
11740 amd64_fbsd_nat_target.
11741 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11742 (_initialize_amd64fbsd_nat): Adjust to C++ification.
11743 * amd64-nat.h (amd64bsd_target): Delete function declaration.
11744 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
11745 (i386bsd_store_inferior_registers): Remove target_ops parameter.
11746 (i386bsd_target): Delete.
11747 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
11748 (i386bsd_fetch_inferior_registers)
11749 (i386bsd_store_inferior_registers): Declare.
11750 (i386_bsd_nat_target): New class.
11751 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
11752 (the_i386_fbsd_nat_target): New.
11753 (i386fbsd_resume, i386fbsd_read_description): Refactor as
11754 i386_fbsd_nat_target methods.
11755 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11756 (_initialize_i386fbsd_nat): Adjust to C++ification.
11757 * x86-bsd-nat.c (super_mourn_inferior): Delete.
11758 (x86bsd_mourn_inferior, x86bsd_target): Delete.
11759 (_initialize_x86_bsd_nat): Adjust to C++ification.
11760 * x86-bsd-nat.h: Include "x86-nat.h".
11761 (x86bsd_target): Delete declaration.
11762 (x86bsd_nat_target): New class.
11764 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
11765 (the_aarch64_fbsd_nat_target): New.
11766 (aarch64_fbsd_fetch_inferior_registers)
11767 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
11768 aarch64_fbsd_nat_target.
11769 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11770 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11771 (the_alpha_bsd_nat_target): New.
11772 (alphabsd_fetch_inferior_registers)
11773 (alphabsd_store_inferior_registers): Refactor as
11774 alpha_bsd_nat_target methods.
11775 (_initialize_alphabsd_nat): Refactor as methods of
11776 alpha_bsd_nat_target.
11777 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11778 (the_amd64_nbsd_nat_target): New.
11779 (_initialize_amd64nbsd_nat): Adjust to C++ification.
11780 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11781 (the_amd64_obsd_nat_target): New.
11782 (_initialize_amd64obsd_nat): Adjust to C++ification.
11783 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11784 (the_arm_fbsd_nat_target): New.
11785 (arm_fbsd_fetch_inferior_registers)
11786 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11787 (_initialize_arm_fbsd_nat): Refactor as methods of
11788 arm_fbsd_nat_target.
11789 (_initialize_arm_fbsd_nat): Adjust to C++ification.
11790 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11791 (the_arm_netbsd_nat_target): New.
11792 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11793 arm_netbsd_nat_target.
11794 (_initialize_arm_netbsd_nat): Adjust to C++ification.
11795 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
11796 (the_hppa_nbsd_nat_target): New.
11797 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
11798 hppa_nbsd_nat_target methods.
11799 (_initialize_hppanbsd_nat): Adjust to C++ification.
11800 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
11801 (the_hppa_obsd_nat_target): New.
11802 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
11803 methods of hppa_obsd_nat_target.
11804 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
11806 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
11807 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
11809 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
11810 (_initialize_i386obsd_nat): Use add_target.
11811 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
11812 (the_m68k_bsd_nat_target): New.
11813 (m68kbsd_fetch_inferior_registers)
11814 (m68kbsd_store_inferior_registers): Refactor as methods of
11815 m68k_bsd_nat_target.
11816 (_initialize_m68kbsd_nat): Adjust to C++ification.
11817 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
11818 (the_mips_fbsd_nat_target): New.
11819 (mips_fbsd_fetch_inferior_registers)
11820 (mips_fbsd_store_inferior_registers): Refactor as methods of
11821 mips_fbsd_nat_target.
11822 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
11824 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
11825 (the_mips_nbsd_nat_target): New.
11826 (mipsnbsd_fetch_inferior_registers)
11827 (mipsnbsd_store_inferior_registers): Refactor as methods of
11828 mips_nbsd_nat_target.
11829 (_initialize_mipsnbsd_nat): Adjust to C++ification.
11830 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
11831 (the_mips64_obsd_nat_target): New.
11832 (mips64obsd_fetch_inferior_registers)
11833 (mips64obsd_store_inferior_registers): Refactor as methods of
11834 mips64_obsd_nat_target.
11835 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
11837 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
11839 * nbsd-nat.h: Include "inf-ptrace.h".
11840 (nbsd_nat_target): New class.
11841 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
11842 (obsd_wait): Refactor as methods of obsd_nat_target.
11843 (obsd_add_target): Delete.
11844 * obsd-nat.h: Include "inf-ptrace.h".
11845 (obsd_nat_target): New class.
11846 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
11847 (the_ppc_fbsd_nat_target): New.
11848 (ppcfbsd_fetch_inferior_registers)
11849 (ppcfbsd_store_inferior_registers): Refactor as methods of
11850 ppc_fbsd_nat_target.
11851 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
11853 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
11854 (the_ppc_nbsd_nat_target): New.
11855 (ppcnbsd_fetch_inferior_registers)
11856 (ppcnbsd_store_inferior_registers): Refactor as methods of
11857 ppc_nbsd_nat_target.
11858 (_initialize_ppcnbsd_nat): Adjust to C++ification.
11859 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
11860 (the_ppc_obsd_nat_target): New.
11861 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
11862 methods of ppc_obsd_nat_target.
11863 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
11865 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
11866 (the_sh_nbsd_nat_target): New.
11867 (shnbsd_fetch_inferior_registers)
11868 (shnbsd_store_inferior_registers): Refactor as methods of
11869 sh_nbsd_nat_target.
11870 (_initialize_shnbsd_nat): Adjust to C++ification.
11871 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
11872 (inf_ptrace_xfer_partial): Delete.
11873 (sparc_xfer_partial, sparc_target): Delete.
11874 * sparc-nat.h (sparc_fetch_inferior_registers)
11875 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
11876 (sparc_target): Delete function declaration.
11877 (sparc_target): New template class.
11878 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
11879 (_initialize_sparcnbsd_nat): Adjust to C++ification.
11880 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
11881 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
11883 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
11884 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
11885 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
11886 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
11888 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
11889 (the_vax_bsd_nat_target): New.
11890 (vaxbsd_fetch_inferior_registers)
11891 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
11893 (_initialize_vaxbsd_nat): Adjust to C++ification.
11895 * bsd-kvm.c (bsd_kvm_target): New class.
11896 (bsd_kvm_ops): Now a bsd_kvm_target.
11897 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
11898 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
11899 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
11901 (bsd_kvm_return_one): Delete.
11902 (bsd_kvm_add_target): Adjust to C++ification.
11904 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
11905 (nto_procfs_target_procfs): New classes.
11906 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
11907 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
11908 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
11909 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
11910 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
11911 (procfs_remove_hw_breakpoint, procfs_resume)
11912 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
11913 (procfs_kill_inferior, procfs_store_registers)
11914 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
11915 as methods of nto_procfs_target.
11916 (nto_procfs_ops): Now an nto_procfs_target_procfs.
11917 (nto_native_ops): Delete.
11918 (procfs_open, procfs_native_open): Delete.
11919 (nto_native_ops): Now an nto_procfs_target_native.
11920 (init_procfs_targets): Adjust to C++ification.
11921 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
11922 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
11923 Refactor as methods of nto_procfs_target.
11925 * go32-nat.c (go32_nat_target): New class.
11926 (the_go32_nat_target): New.
11927 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
11928 (go32_store_registers, go32_xfer_partial, go32_files_info)
11929 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
11930 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
11931 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
11932 (go32_pid_to_str): Refactor as methods of go32_nat_target.
11933 (go32_target): Delete.
11934 (_initialize_go32_nat): Adjust to C++ification.
11936 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
11937 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
11938 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
11939 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
11941 (gnu_target): Delete.
11942 * gnu-nat.h (gnu_target): Delete.
11943 (gnu_nat_target): New class.
11944 * i386-gnu-nat.c (gnu_base_target): New.
11945 (i386_gnu_nat_target): New class.
11946 (the_i386_gnu_nat_target): New.
11947 (_initialize_i386gnu_nat): Adjust to C++ification.
11949 2018-05-02 Pedro Alves <palves@redhat.com>
11951 * bfd-target.c (target_bfd_xclose): Rename to ...
11952 (target_bfd_close): ... this.
11953 (target_bfd_reopen): Adjust.
11954 * target.c (target_close): Remove references to to_xclose.
11955 * target.h (target_ops::to_xclose): Delete.
11956 (target_ops::to_close): Update comments.
11958 2018-05-02 Pedro Alves <palves@redhat.com>
11960 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
11962 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
11963 * inf-ptrace.c (inf_ptrace_register_u_offset)
11964 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11965 (inf_ptrace_store_register, inf_ptrace_store_registers)
11966 (inf_ptrace_trad_target): Move to ...
11967 * linux-nat-trad.c: ... this new file.
11968 * linux-nat-trad.h: New file.
11969 * linux-nat.c (linux_target_install_ops): Make extern.
11970 (linux_trad_target): Delete.
11971 * linux-nat.h (linux_trad_target): Delete declaration.
11972 (linux_target_install_ops): Declare.
11973 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
11976 2018-05-02 Pedro Alves <palves@redhat.com>
11978 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11979 procfs_target/add_target here.
11980 * procfs.c (procfs_target): Make static.
11981 (_initialize_procfs): Call add_target here.
11982 * procfs.h (struct target_ops): Remove forward declaration.
11983 (procfs_target): Remove declaration.
11984 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
11986 2018-05-02 Pedro Alves <palves@redhat.com>
11988 * procfs.c (procfs_stopped_by_watchpoint)
11989 (procfs_insert_watchpoint, procfs_remove_watchpoint)
11990 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
11992 (procfs_use_watchpoints): Delete, move contents...
11993 (procfs_target): ... here.
11994 * procfs.h (procfs_use_watchpoints): Delete declaration.
11995 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11996 procfs_use_watchpoints.
11997 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
11998 procfs_use_watchpoints.
12000 2018-05-02 Tom Tromey <tom@tromey.com>
12003 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
12004 and var_zuinteger_unlimited.
12005 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
12006 and PARAM_ZUINTEGER_UNLIMITED.
12007 (set_parameter_value): Handle var_zuinteger and
12008 var_zuinteger_unlimited.
12009 (add_setshow_generic): Likewise.
12010 (parmpy_init): Likewise.
12012 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
12015 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
12016 pointer is not null before dereferencing it.
12018 2018-04-30 Tom Tromey <tom@tromey.com>
12020 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
12023 2018-04-30 Tom Tromey <tom@tromey.com>
12025 * breakpoint.c (mention): Remove use of is_mi_like_p.
12026 (print_mention_ranged_breakpoint): Likewise.
12027 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
12030 2018-04-30 Tom Tromey <tom@tromey.com>
12032 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
12034 2018-04-30 Tom Tromey <tom@tromey.com>
12036 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
12037 (info_spu_event_command): Remove some uses of is_mi_like_p.
12039 2018-04-30 Tom Tromey <tom@tromey.com>
12041 * python/py-framefilter.c (py_print_single_arg)
12042 (enumerate_locals, py_print_args, py_print_frame): Remove some
12043 uses of is_mi_like_p.
12045 2018-04-30 Tom Tromey <tom@tromey.com>
12047 * ui-out.c: Update.
12048 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
12049 * ui-out.h (ui_out::is_mi_like_p): Now const.
12050 (ui_out::do_is_mi_like_p): Now const.
12051 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
12053 2018-04-30 Tom Tromey <tom@tromey.com>
12055 * varobj.c (varobj_set_visualizer): Use new_reference.
12056 * python/python.c (gdbpy_decode_line): Use new_reference.
12057 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
12060 2018-04-30 Tom Tromey <tom@tromey.com>
12062 * varobj.c (install_new_value): Use new_reference.
12063 * value.h (value_incref): Return void. Swap intro comment with
12065 * value.c (set_value_parent): Use new_reference.
12066 (value_incref): Return void. Update intro comment.
12067 (release_value): Use new_reference.
12068 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
12070 2018-04-30 Tom Tromey <tom@tromey.com>
12072 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
12073 * gdb_bfd.h (new_bfd_ref): Remove.
12074 (gdb_bfd_open): Update comment.
12075 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12076 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
12077 (gdb_bfd_fdopenr): Use new_reference.
12078 * exec.c (exec_file_attach): Use new_reference.
12080 2018-04-30 Tom Tromey <tom@tromey.com>
12082 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
12085 2018-04-30 Tom Tromey <tom@tromey.com>
12087 * jit.c (jit_read_code_entry): Use type_align.
12088 * i386-tdep.c (i386_gdbarch_init): Don't call
12089 set_gdbarch_long_long_align_bit.
12090 * gdbarch.sh: Remove long_long_align_bit.
12091 * gdbarch.c, gdbarch.h: Rebuild.
12092 * arc-tdep.c (arc_type_align): New function.
12093 (arc_gdbarch_init): Use arc_type_align. Don't call
12094 set_gdbarch_long_long_align_bit.
12096 2018-04-30 Tom Tromey <tom@tromey.com>
12098 * rust-lang.c (rust_type_alignment): Remove.
12099 (rust_composite_type): Use type_align.
12101 2018-04-30 Tom Tromey <tom@tromey.com>
12103 * NEWS: Mention Type.align.
12104 * python/py-type.c (typy_get_alignof): New function.
12105 (type_object_getset): Add "alignof".
12107 2018-04-30 Tom Tromey <tom@tromey.com>
12111 * std-operator.def (UNOP_ALIGNOF): New operator.
12112 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
12114 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
12115 * c-lang.c (c_op_print_tab): Add alignof.
12116 * c-exp.y (ALIGNOF): New token.
12117 (exp): Add "ALIGNOF" production.
12118 (ident_tokens): Add _Alignof and alignof.
12120 2018-04-30 Tom Tromey <tom@tromey.com>
12122 * i386-tdep.c (i386_type_align): New function.
12123 (i386_gdbarch_init): Update.
12124 * gdbarch.sh (type_align): New method.
12125 * gdbarch.c, gdbarch.h: Rebuild.
12126 * arch-utils.h (default_type_align): Declare.
12127 * arch-utils.c (default_type_align): New function.
12128 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
12129 (struct type) <align_log2>: New field.
12130 <instance_flags>: Now a bitfield.
12131 (TYPE_RAW_ALIGN): New macro.
12132 (type_align, type_raw_align, set_type_align): Declare.
12133 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
12135 * dwarf2read.c (quirk_rust_enum): Set type alignment.
12136 (get_alignment, maybe_set_alignment): New functions.
12137 (read_structure_type, read_enumeration_type, read_array_type)
12138 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
12139 (read_subrange_type, read_base_type): Set type alignment.
12141 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
12143 * dwarf2read.c (read_index_from_section): Use bool.
12145 2018-04-29 Fabian Groffen <grobian@gentoo.org>
12148 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
12151 2018-04-29 John Reiser <jreiser@BitWagon.com>
12154 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
12155 last step, and do it atomically.
12157 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
12159 * compile/compile-c-types.c (convert_int, convert_float):
12160 Update for C FE v1.
12162 2018-04-27 Tom Tromey <tom@tromey.com>
12165 * rust-lang.c (rust_inclusive_range_type_p): New function.
12166 (rust_range): Handle inclusive ranges.
12167 (rust_compute_range): Likewise.
12168 * rust-exp.y (struct rust_op) <inclusive>: New field.
12169 (DOTDOTEQ): New constant.
12170 (range_expr): Add "..=" productions.
12171 (operator_tokens): Add "..=" token.
12172 (ast_range): Add "inclusive" parameter.
12173 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
12175 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
12177 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
12178 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
12180 * expprint.c (print_subexp_standard): Handle new bounds values.
12181 (dump_subexp_body_standard): Likewise.
12183 2018-04-27 Tom Tromey <tom@tromey.com>
12185 * configure: Rebuild.
12186 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
12187 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
12189 (class symbol_needs_eval_context): Likewise.
12190 * dwarf2read.c (mock_mapped_index::symbol_name_count)
12191 (mock_mapped_index::symbol_name_at): Use "override". Remove
12193 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
12195 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
12196 * aarch64-tdep.c (instruction_reader::read): Use "override".
12197 (instruction_reader_test::read): Likewise.
12198 * arm-tdep.c (instruction_reader::read): Use "override".
12199 (instruction_reader_thumb::read): Likewise.
12201 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
12204 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
12205 instead of remote_send.
12206 (remote_send): Remove.
12208 2018-04-26 Pedro Alves <palves@redhat.com>
12210 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
12211 find_function_start_sal instead of find_pc_line.
12213 2018-04-26 Pedro Alves <palves@redhat.com>
12215 * breakpoint.c (set_breakpoint_location_function): Handle
12216 mst_data_gnu_ifunc.
12217 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
12218 * elfread.c (elf_symtab_read): Give data symbols with
12219 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
12220 (elf_rel_plt_read): Update comment.
12221 * linespec.c (convert_linespec_to_sals): Handle
12222 mst_data_gnu_ifunc.
12223 (minsym_found): Handle mst_data_gnu_ifunc.
12224 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
12225 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
12226 * parse.c (find_minsym_type_and_address): Handle
12227 mst_data_gnu_ifunc.
12228 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
12229 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
12230 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
12232 <mst_data_gnu_ifunc>: New enumerator.
12234 2018-04-26 Pedro Alves <palves@redhat.com>
12236 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
12237 (lookup_minimal_symbol_by_pc_section): ... this. Replace
12238 'want_trampoline' parameter by a lookup_msym_prefer parameter.
12240 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
12241 (lookup_minimal_symbol_by_pc): Adjust.
12242 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
12243 (lookup_solib_trampoline_symbol_by_pc): Adjust.
12244 * minsyms.h (lookup_msym_prefer): New enum.
12245 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12246 parameter by a lookup_msym_prefer parameter.
12248 2018-04-26 Pedro Alves <palves@redhat.com>
12250 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
12251 ends in "@plt" instead of looking at the symbol's section.
12253 2018-04-26 Pedro Alves <palves@redhat.com>
12255 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
12257 (find_pc_partial_function_gnu_ifunc): Rename to ...
12258 (find_pc_partial_function): ... this, and remove references to
12260 (find_pc_partial_function): Delete old implementation.
12261 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
12263 2018-04-26 Pedro Alves <palves@redhat.com>
12265 * linespec.c (struct bound_minimal_symbol_search_key): New.
12266 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
12267 skip first line if we found a GNU ifunc minimal symbol by name.
12268 (compare_msymbols): Change parameters to work with a destructured
12270 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
12273 2018-04-26 Pedro Alves <palves@redhat.com>
12275 * breakpoint.c (set_breakpoint_location_function): Don't resolve
12276 ifunc targets here. Instead, if we have an ifunc minsym, use its
12278 (add_location_to_breakpoint): Store the minsym and the objfile in
12279 the breakpoint location.
12280 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
12281 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
12282 Record the minsym in the sal.
12283 * symtab.h (symtab_and_line) <msymbol>: New field.
12285 2018-04-26 Pedro Alves <palves@redhat.com>
12287 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
12288 unless we actually resolved the ifunc.
12290 2018-04-26 Pedro Alves <palves@redhat.com>
12292 * c-exp.y (variable production): Prefer ifunc minsyms over
12293 regular function symbols.
12294 * symtab.c (find_gnu_ifunc): New function.
12295 * minsyms.h (lookup_msym_prefer): New enum.
12296 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
12297 parameter by a lookup_msym_prefer parameter.
12298 * symtab.h (find_gnu_ifunc): New declaration.
12300 2018-04-26 Pedro Alves <palves@redhat.com>
12302 * blockframe.c (find_gnu_ifunc_target_type): New function.
12303 (find_function_type): New.
12304 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
12305 return a value with a memory address.
12306 (eval_call): For calls to GNU ifunc functions, try to find the
12307 type of the target function from the type that the resolver
12309 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
12311 * infcall.c (find_function_return_type): Delete.
12312 (find_function_addr): Add 'function_type' parameter. For calls to
12313 GNU ifunc functions, try to find the type of the target function
12314 from the type that the resolver returns, and return it via
12316 (call_function_by_hand_dummy): Adjust to use the function type
12317 returned by find_function_addr.
12318 (find_function_addr): Add 'function_type' parameter and move
12320 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
12323 2018-04-26 Pedro Alves <palves@redhat.com>
12325 * c-exp.y (variable production): Skip finding an alias for ifunc
12328 2018-04-26 Pedro Alves <palves@redhat.com>
12330 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
12332 2018-04-25 Pedro Alves <palves@redhat.com>
12334 * infcmd.c (kill_command): Print the pid as string, not the whole
12335 thread's ptid. Add comment. s/has been killed/killed/ in output
12337 * remote.c (remote_detach_1): Print the pid as string, not the
12338 whole thread's ptid.
12340 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12341 Sergio Durigan Junior <sergiodj@redhat.com>
12342 Pedro Alves <palves@redhat.com>
12344 * infcmd.c (kill_command): Print message when inferior has
12346 * inferior.c (print_inferior_events): Remove 'static'. Set as
12348 (add_inferior): Improve message printed when
12349 'print_inferior_events' is on.
12350 (exit_inferior): Remove message printed when
12351 'print_inferior_events' is on.
12352 (detach_inferior): Improve message printed when
12353 'print_inferior_events' is on.
12354 (initialize_inferiors): Use 'add_inferior_silent' to set
12355 'current_inferior_'.
12356 * inferior.h (print_inferior_events): Declare here as
12358 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
12359 '[Detaching...]' messages when 'print_inferior_events' is on.
12360 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
12361 as prefix/suffix for messages. Remove periods. Fix erroneous
12362 'Detaching after fork from child...', replace it by '... from
12364 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
12365 prefix/suffix when printing 'Detaching...' messages. Print
12366 them when 'print_inferior_events' is on.
12367 * remote.c (remote_detach_1): Print message when detaching
12368 from inferior and '!is_fork_parent'.
12370 2018-04-24 Tom Tromey <tom@tromey.com>
12372 * cli-out.h: Reindent.
12374 2018-04-24 Tom Tromey <tom@tromey.com>
12376 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
12377 (cli_ui_out::do_field_string): Use fputs_filtered.
12378 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
12380 2018-04-23 Tom Tromey <tom@tromey.com>
12382 * guile/scm-frame.c (gdbscm_frame_read_var): Use
12383 gdb::unique_xmalloc_ptr.
12385 2018-04-23 Tom Tromey <tom@tromey.com>
12387 * configure: Rebuild.
12389 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
12392 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
12393 prepare_for_testing. Set normal_bp to r_debug_state if target
12396 2018-04-21 Pedro Alves <palves@redhat.com>
12397 Rajendra SY <rajendra.sy@gmail.com>
12399 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
12400 * remote.c (extended_remote_attach): In all-stop mode, mark the
12401 thread as executing.
12403 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12405 * thread.c (thread_apply_all_command): Fix comment.
12406 (thread_command): Fix comment.
12408 2018-04-10 Alan Hayward <alan.hayward@arm.com>
12410 * common/tdesc.h (tdesc_create_feature): Remove xml filename
12412 * features/aarch64-core.c (create_feature_aarch64_core):
12414 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
12416 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
12418 * features/i386/32bit-avx512.c
12419 (create_feature_i386_32bit_avx512): Likewise.
12420 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
12422 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
12424 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
12426 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
12428 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
12430 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
12432 * features/i386/64bit-avx512.c
12433 (create_feature_i386_64bit_avx512): Likewise.
12434 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
12436 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
12438 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
12440 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
12442 * features/i386/64bit-segments.c
12443 (create_feature_i386_64bit_segments): Likewise.
12444 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
12446 * features/i386/x32-core.c
12447 (create_feature_i386_x32_core): Likewise.
12448 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
12449 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
12450 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
12451 * target-descriptions.c: In generated code, don't pass xml
12454 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12456 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
12457 (print_xml_feature::visit_post): Likewise.
12458 (print_xml_feature::visit): Likewise.
12459 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
12460 (print_xml_feature): Add new class.
12461 * regformats/regdat.sh: Null xmltarget on feature targets.
12462 * target-descriptions.c (struct target_desc): Add xmltarget.
12463 (maintenance_check_tdesc_xml_convert): Add unittest function.
12464 (tdesc_get_features_xml): Add function to get xml.
12465 (maintenance_check_xml_descriptions): Test xml generation.
12466 * xml-tdesc.c (string_read_description_xml): Add function.
12467 * xml-tdesc.h (string_read_description_xml): Add declaration.
12469 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12471 * features/Makefile: Add feature marker to targets with new style
12472 target descriptions.
12473 * regformats/aarch64.dat: Regenerate.
12474 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
12475 * regformats/i386/amd64-avx-linux.dat: Likewise.
12476 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
12477 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
12478 * regformats/i386/amd64-linux.dat: Likewise.
12479 * regformats/i386/amd64-mpx-linux.dat: Likewise.
12480 * regformats/i386/amd64.dat: Likewise.
12481 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
12482 * regformats/i386/i386-avx-linux.dat: Likewise.
12483 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
12484 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
12485 * regformats/i386/i386-linux.dat: Likewise.
12486 * regformats/i386/i386-mmx-linux.dat: Likewise.
12487 * regformats/i386/i386-mpx-linux.dat: Likewise.
12488 * regformats/i386/i386.dat: Likewise.
12489 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
12490 * regformats/i386/x32-avx-linux.dat: Likewise.
12491 * regformats/i386/x32-linux.dat: Likewise.
12492 * regformats/tic6x-c62x-linux.dat: Likewise.
12493 * regformats/tic6x-c64x-linux.dat: Likewise.
12494 * regformats/tic6x-c64xp-linux.dat: Likewise.
12495 * regformats/regdat.sh: Parse feature marker.
12497 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12499 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
12500 (tdesc_osabi_name): Likewise.
12501 * target-descriptions.c (tdesc_architecture_name): Add new
12503 (tdesc_osabi_name): Likewise.
12505 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12507 * common/tdesc.c (tdesc_predefined_type): Move to here.
12508 (tdesc_named_type): Likewise.
12509 (tdesc_create_vector): Likewise.
12510 (tdesc_create_struct): Likewise.
12511 (tdesc_set_struct_size): Likewise.
12512 (tdesc_create_union): Likewise.
12513 (tdesc_create_flags): Likewise.
12514 (tdesc_create_enum): Likewise.
12515 (tdesc_add_field): Likewise.
12516 (tdesc_add_typed_bitfield): Likewise.
12517 (tdesc_add_bitfield): Likewise.
12518 (tdesc_add_flag): Likewise.
12519 (tdesc_add_enum_value): Likewise.
12520 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
12521 (struct tdesc_type_vector): Likewise.
12522 (struct tdesc_type_field): Likewise.
12523 (struct tdesc_type_with_fields): Likewise.
12524 (tdesc_create_enum): Add declaration.
12525 (tdesc_add_typed_bitfield): Likewise.
12526 (tdesc_add_enum_value): Likewise.
12527 * target-descriptions.c (tdesc_type_field): Move from here.
12528 (tdesc_type_builtin): Likewise.
12529 (tdesc_type_vector): Likewise.
12530 (tdesc_type_with_fields): Likewise.
12531 (tdesc_predefined_types): Likewise.
12532 (tdesc_named_type): Likewise.
12533 (tdesc_create_vector): Likewise.
12534 (tdesc_create_struct): Likewise.
12535 (tdesc_set_struct_size): Likewise.
12536 (tdesc_create_union): Likewise.
12537 (tdesc_create_flags): Likewise.
12538 (tdesc_create_enum): Likewise.
12539 (tdesc_add_field): Likewise.
12540 (tdesc_add_typed_bitfield): Likewise.
12541 (tdesc_add_bitfield): Likewise.
12542 (tdesc_add_flag): Likewise.
12543 (tdesc_add_enum_value): Likewise.
12544 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
12545 (tdesc_add_typed_bitfield): Likewise.
12546 (tdesc_add_enum_value): Likewise.
12548 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12550 * common/tdesc.c (tdesc_feature::accept): Move to here.
12551 (tdesc_feature::operator==): Likewise.
12552 (tdesc_create_reg): Likewise.
12553 * common/tdesc.h (tdesc_type_kind): Likewise.
12554 (struct tdesc_type): Likewise.
12555 (struct tdesc_feature): Likewise.
12556 * regformats/regdat.sh: Create a feature.
12557 * target-descriptions.c (tdesc_type_kind): Move from here.
12558 (tdesc_type): Likewise.
12559 (tdesc_type_up): Likewise.
12560 (tdesc_feature): Likewise.
12561 (tdesc_create_reg): Likewise.
12563 2018-04-18 Alan Hayward <alan.hayward@arm.com>
12565 * Makefile.in: Add arch/tdesc.c
12566 * common/tdesc.c: New file.
12567 * common/tdesc.h (tdesc_element_visitor): Move to here.
12568 (tdesc_element): Likewise.
12569 (tdesc_reg): Likewise.
12570 (tdesc_reg_up): Likewise.
12571 * regformats/regdef.h (reg): Add offset to constructors.
12572 * target-descriptions.c (tdesc_element_visitor): Move from here.
12573 (tdesc_element): Likewise.
12574 (tdesc_reg): Likewise.
12575 (tdesc_reg_up): Likewise.
12577 2018-04-17 Tom Tromey <tom@tromey.com>
12579 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
12580 discriminant field.
12582 2018-04-17 Tom Tromey <tom@tromey.com>
12584 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
12586 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
12588 * symtab.c (print_symbol_info): Skip printing filename and line
12589 number when `last' is NULL.
12590 (symtab_symbol_info): Use empty string instead of NULL for first
12591 invocation of print_symbol_info.
12592 (rbreak_command): Pass NULL to `last' parameter of
12595 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
12597 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
12598 instead of nullptr.
12600 2018-04-16 Pedro Alves <palves@redhat.com>
12602 * MAINTAINERS (sh): Remove.
12603 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
12604 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
12605 (ALLDEPFILES): Remove sh64-tdep.c.
12606 * NEWS: Mentions that support for SH-5/SH64 is removed.
12607 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
12608 (sh*-*-openbsd*): Ditto.
12609 (sh64-*-elf*): Remove.
12611 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
12612 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
12613 * sh-tdep.c: No longer include "sh64-tdep.h".
12614 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
12615 * sh64-tdep.c, sh64-tdep.h: Remove files.
12617 2018-04-16 Pedro Alves <palves@redhat.com>
12619 * MAINTAINERS: Remove m88k.
12620 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
12621 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
12622 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
12623 * NEWS: Mention that support for m88k was removed.
12624 * configure.host (m88*-*-*): Remove support.
12625 * configure.nat (m88k-*-*): Remove support.
12626 * configure.tgt (m88*-*-openbsd*): Remove.
12627 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
12629 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
12631 * configure.tgt (x86_tobjs): New variable.
12632 (amd64_tobjs, i386_tobjs): Use it.
12634 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12636 * symtab.c (print_symbol_info): Precede the symbol definition by
12637 the line number when available.
12638 * NEWS: Advertise this enhancement.
12640 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12642 * NEWS (New options): announce set/show record btrace cpu.
12643 * btrace.c: Include record-btrace.h.
12644 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
12645 the vendor is unknown.
12646 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
12647 Maybe overwrite the btrace configuration's cpu.
12648 (btrace_compute_ftrace): Add cpu parameter. Update callers.
12649 (btrace_fetch): Add cpu parameter. Update callers.
12650 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
12651 Maybe overwrite the btrace configuration's cpu. Skip enabling
12652 errata workarounds if the vendor is unknown.
12653 * python/py-record-btrace.c: Include record-btrace.h.
12654 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
12655 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
12656 * record-btrace.c (record_btrace_cpu_state_kind): New.
12657 (record_btrace_cpu): New.
12658 (set_record_btrace_cpu_cmdlist): New.
12659 (record_btrace_get_cpu): New.
12660 (require_btrace_thread, record_btrace_info)
12661 (record_btrace_resume_thread): Call record_btrace_get_cpu.
12662 (cmd_set_record_btrace_cpu_none): New.
12663 (cmd_set_record_btrace_cpu_auto): New.
12664 (cmd_set_record_btrace_cpu): New.
12665 (cmd_show_record_btrace_cpu): New.
12666 (_initialize_record_btrace): Initialize set/show record btrace cpu
12668 * record-btrace.h (record_btrace_get_cpu): New.
12670 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12672 * record.c (set_record_command): Fix typo in message.
12674 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12676 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
12678 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
12680 * infrun.c (process_event_stop_test): Call
12681 gdbarch_in_indirect_branch_thunk.
12682 * gdbarch.sh (in_indirect_branch_thunk): New.
12683 * gdbarch.c: Regenerated.
12684 * gdbarch.h: Regenerated.
12687 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
12688 (HFILES_NO_SRCDIR): Add x86-tdep.h.
12689 (ALLDEPFILES): Add x86-tdep.c.
12690 * arch-utils.h (default_in_indirect_branch_thunk): New.
12691 * arch-utils.c (default_in_indirect_branch_thunk): New.
12692 * i386-tdep: Include x86-tdep.h.
12693 (i386_in_indirect_branch_thunk): New.
12694 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
12696 * amd64-tdep: Include x86-tdep.h.
12697 (amd64_in_indirect_branch_thunk): New.
12698 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
12700 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12703 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
12704 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
12705 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
12708 2018-04-12 Tom Tromey <tom@tromey.com>
12710 * rust-lang.c (rust_print_struct_def): Remove univariant code.
12711 (rust_evaluate_subexp): Likewise.
12713 2018-04-12 Pedro Alves <palves@redhat.com>
12715 * procfs.c (procfs_detach): Make forward declaration's prototype
12716 match definition's protototype.
12717 (proc_get_LDT_entry): Remove stale do_cleanups call.
12719 2018-04-12 Pedro Alves <palves@redhat.com>
12721 * target.h (target_ops::to_has_exited): Delete.
12722 (target_has_exited): Delete.
12723 * target-delegates.c: Regenerate.
12725 2018-04-11 Pedro Alves <palves@redhat.com>
12727 * target.c (fileio_fh_t::t): Add comment.
12728 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12729 (target_fileio_close): Handle a NULL target.
12730 (invalidate_fileio_fh): New.
12731 (target_close): Call it.
12732 * remote.c (remote_hostio_send_command): No longer check whether
12733 remote_desc is open.
12735 2018-04-11 Pedro Alves <palves@redhat.com>
12737 * target.c (fileio_fh_t): Make it a named struct instead of a
12739 (fileio_fh_t::is_closed): New method.
12740 (DEF_VEC_O (fileio_fh_t)): Remove.
12741 (fileio_fhandles): Now a std::vector.
12742 (is_closed_fileio_fh): Delete.
12743 (acquire_fileio_fd): Adjust. Rename parameters.
12744 (release_fileio_fd): Adjust.
12745 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
12746 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12747 (target_fileio_close): Adjust.
12749 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
12751 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
12754 2018-04-10 Pedro Alves <palves@redhat.com>
12756 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
12757 (scoped_finish_thread_state): New class.
12758 * infcmd.c (run_command_1): Use it instead of finish_thread_state
12760 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
12761 (fetch_inferior_event, normal_stop): Likewise.
12762 * thread.c (finish_thread_state_cleanup): Delete.
12764 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12765 Pedro Alves <palves@redhat.com>
12767 * value.c: Include "selftest.h" and "common/array-view.h".
12768 (struct range) <operator ==>: New.
12769 (test_ranges_contain): New.
12770 (check_ranges_vector): New.
12771 (test_insert_into_bit_range_vector): New.
12772 (_initialize_values): Register selftests.
12773 * common/array-view.h (operator==, operator!=): New.
12775 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12777 * common/gdb_vecs.h (unordered_remove): Add overload that takes
12779 * inline-frame.c: Include <algorithm>.
12780 (struct inline_state): Add constructor.
12781 (inline_state_s): Remove.
12782 (DEF_VEC_O(inline_state_s)): Remove.
12783 (inline_states): Change type to std::vector.
12784 (find_inline_frame_state): Adjust to std::vector.
12785 (allocate_inline_frame_state): Remove.
12786 (clear_inline_frame_state): Adjust to std::vector.
12787 (skip_inline_frames): Adjust to std::vector.
12789 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12791 * tracepoint.h (struct trace_state_variable): Add constructor.
12792 <name>: Change type to std::string.
12793 * tracepoint.c (tsv_s): Remove.
12794 (DEF_VEC_O(tsv_s)): Remove.
12795 (tvariables): Change to std::vector.
12796 (create_trace_state_variable): Adjust to std::vector.
12797 (find_trace_state_variable): Likewise.
12798 (find_trace_state_variable_by_number): Likewise.
12799 (delete_trace_state_variable): Likewise.
12800 (trace_variable_command): Adjust to std::string.
12801 (delete_trace_variable_command): Likewise.
12802 (tvariables_info_1): Adjust to std::vector.
12803 (save_trace_state_variables): Likewise.
12804 (start_tracing): Likewise.
12805 (merge_uploaded_trace_state_variables): Adjust to std::vector
12807 * target.h (struct target_ops)
12808 <to_download_trace_state_variable>: Pass reference to
12809 trace_state_variable.
12810 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
12811 * target-delegates.c: Re-generate.
12812 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
12813 (mi_tsv_deleted): Likewise.
12814 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
12815 * remote.c (remote_download_trace_state_variable): Change
12816 pointer to reference and adjust.
12817 * make-target-delegates (parse_argtypes): Handle references.
12818 (write_function_header): Likewise.
12819 (munge_type): Likewise.
12821 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12823 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12824 string_view-selftests.c.
12825 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
12827 * unittests/basic_string_view/cons/char/1.cc: Likewise.
12828 * unittests/basic_string_view/cons/char/2.cc: Likewise.
12829 * unittests/basic_string_view/cons/char/3.cc: Likewise.
12830 * unittests/basic_string_view/element_access/char/1.cc:
12832 * unittests/basic_string_view/element_access/char/empty.cc:
12834 * unittests/basic_string_view/element_access/char/front_back.cc:
12836 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
12837 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
12839 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
12841 * unittests/basic_string_view/modifiers/swap/char/1.cc:
12843 * unittests/basic_string_view/operations/compare/char/1.cc:
12845 * unittests/basic_string_view/operations/compare/char/13650.cc:
12847 * unittests/basic_string_view/operations/copy/char/1.cc:
12849 * unittests/basic_string_view/operations/data/char/1.cc:
12851 * unittests/basic_string_view/operations/find/char/1.cc:
12853 * unittests/basic_string_view/operations/find/char/2.cc:
12855 * unittests/basic_string_view/operations/find/char/3.cc:
12857 * unittests/basic_string_view/operations/find/char/4.cc:
12859 * unittests/basic_string_view/operations/rfind/char/1.cc:
12861 * unittests/basic_string_view/operations/rfind/char/2.cc:
12863 * unittests/basic_string_view/operations/rfind/char/3.cc:
12865 * unittests/basic_string_view/operations/substr/char/1.cc:
12867 * unittests/basic_string_view/operators/char/2.cc: Likewise.
12868 * unittests/string_view-selftests.c: New file.
12870 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12872 * unittests/basic_string_view/capacity/1.cc: New file.
12873 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
12874 * unittests/basic_string_view/cons/char/1.cc: New file.
12875 * unittests/basic_string_view/cons/char/2.cc: New file.
12876 * unittests/basic_string_view/cons/char/3.cc: New file.
12877 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
12878 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
12879 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
12880 * unittests/basic_string_view/element_access/char/1.cc: New file.
12881 * unittests/basic_string_view/element_access/char/2.cc: New file.
12882 * unittests/basic_string_view/element_access/char/empty.cc: New file.
12883 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
12884 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
12885 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
12886 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
12887 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
12888 * unittests/basic_string_view/include.cc: New file.
12889 * unittests/basic_string_view/inserters/char/1.cc: New file.
12890 * unittests/basic_string_view/inserters/char/2.cc: New file.
12891 * unittests/basic_string_view/inserters/char/3.cc: New file.
12892 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
12893 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
12894 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
12895 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
12896 * unittests/basic_string_view/literals/types.cc: New file.
12897 * unittests/basic_string_view/literals/values.cc: New file.
12898 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
12899 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
12900 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
12901 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
12902 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
12903 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
12904 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
12905 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
12906 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
12907 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
12908 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
12909 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
12910 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
12911 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
12912 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
12913 * unittests/basic_string_view/operations/data/char/1.cc: New file.
12914 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
12915 * unittests/basic_string_view/operations/find/char/1.cc: New file.
12916 * unittests/basic_string_view/operations/find/char/2.cc: New file.
12917 * unittests/basic_string_view/operations/find/char/3.cc: New file.
12918 * unittests/basic_string_view/operations/find/char/4.cc: New file.
12919 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
12920 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
12921 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
12922 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
12923 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
12924 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
12925 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
12926 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
12927 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
12928 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
12929 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
12930 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
12931 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
12932 * unittests/basic_string_view/operators/char/2.cc: New file.
12933 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
12934 * unittests/basic_string_view/range_access/char/1.cc: New file.
12935 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
12936 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
12937 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
12938 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
12939 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
12940 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
12941 * unittests/basic_string_view/requirements/typedefs.cc: New file.
12942 * unittests/basic_string_view/typedefs.cc: New file.
12943 * unittests/basic_string_view/types/1.cc: New file.
12945 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12947 * common/gdb_string_view.h: Remove libstdc++ implementation
12948 details, adjust to gdb reality.
12949 * common/gdb_string_view.tcc: Likewise.
12950 * cli/cli-script.c (struct string_view): Remove.
12951 (user_args) <m_args>: Change element type to gdb::string_view.
12952 (user_args::insert_args): Adjust.
12954 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12956 * common/gdb_string_view.h: New file.
12957 * common/gdb_string_view.tcc: New file.
12959 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12961 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
12962 * configure: Re-generate.
12964 2018-04-09 Pedro Alves <palves@redhat.com>
12966 * gdbarch.sh: Include "observable.h" instead of "observer.h".
12967 (set_target_gdbarch): Call
12968 gdb::observers::architecture_changed.notify instead of
12969 observer_notify_architecture_changed.
12971 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12973 * tracepoint.c (struct current_traceframe_cleanup): Remove.
12974 (do_restore_current_traceframe_cleanup): Remove.
12975 (restore_current_traceframe_cleanup_dtor): Remove.
12976 (make_cleanup_restore_current_traceframe): Remove.
12977 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
12979 * tracepoint.h (struct scoped_restore_current_traceframe): New.
12980 * infrun.c (fetch_inferior_event): Use
12981 scoped_restore_current_traceframe.
12983 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12985 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
12987 <n_allocated_type_units>: Remove.
12988 <all_type_units>: Change to std::vector.
12989 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12990 to std::vector change.
12991 (dwarf2_per_objfile::get_cutu): Likewise.
12992 (dwarf2_per_objfile::get_tu): Likewise.
12993 (create_signatured_type_table_from_index): Likewise.
12994 (create_signatured_type_table_from_debug_names): Likewise.
12995 (dw2_symtab_iter_next): Likewise.
12996 (dw2_print_stats): Likewise.
12997 (dw2_expand_all_symtabs): Likewise.
12998 (dw2_expand_marked_cus): Likewise.
12999 (dw2_debug_names_iterator::next): Likewise.
13000 (dwarf2_initialize_objfile): Likewise.
13001 (add_signatured_type_cu_to_table): Likewise.
13002 (create_all_type_units): Likewise.
13003 (add_type_unit): Likewise.
13004 (struct tu_abbrev_offset): Add constructor.
13005 (build_type_psymtabs_1): Adjust to std::vector change.
13006 (print_tu_stats): Likewise.
13007 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
13008 (write_debug_names): Likewise.
13010 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13012 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
13013 Make an std::vector.
13014 <n_comp_units>: Remove.
13015 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
13016 to std::vector change.
13017 (dwarf2_per_objfile::get_cutu): Likewise.
13018 (dwarf2_per_objfile::get_cu): Likewise.
13019 (create_cus_from_index): Likewise.
13020 (create_addrmap_from_index): Likewise.
13021 (create_addrmap_from_aranges): Likewise.
13022 (dwarf2_read_index): Likewise.
13023 (dw2_find_last_source_symtab): Likewise.
13024 (dw2_map_symtabs_matching_filename): Likewise.
13025 (dw2_symtab_iter_next): Likewise.
13026 (dw2_print_stats): Likewise.
13027 (dw2_expand_all_symtabs): Likewise.
13028 (dw2_expand_symtabs_with_fullname): Likewise.
13029 (dw2_expand_marked_cus): Likewise.
13030 (dw2_map_symbol_filenames): Likewise.
13031 (create_cus_from_debug_names): Likewise.
13032 (dwarf2_read_debug_names): Likewise.
13033 (dw2_debug_names_iterator::next): Likewise.
13034 (dwarf2_initialize_objfile): Likewise.
13035 (set_partial_user): Likewise.
13036 (dwarf2_build_psymtabs_hard): Likewise.
13037 (read_comp_units_from_section): Remove arguments, adjust to
13038 std::vector change.
13039 (create_all_comp_units): Adjust to std::vector and
13040 read_comp_units_from_section changes.
13041 (dwarf2_find_containing_comp_unit): Adjust to std::vector
13043 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
13044 (psyms_seen_size): Likewise.
13045 (write_gdbindex): Likewise.
13046 (write_debug_names): Likewise.
13048 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13050 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
13051 with dwarf2_per_objfile.
13052 (create_cus_from_index): Likewise.
13053 (create_signatured_type_table_from_index): Likewise.
13054 (dwarf2_read_index): Likewise.
13055 (dwarf2_initialize_objfile): Likewise.
13056 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
13057 per_cu rather than get_dwarf2_per_objfile.
13059 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13061 * dwarf2read.h (struct signatured_type): Forward declare.
13062 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
13064 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
13065 (dw2_get_cutu): ...this.
13066 (dwarf2_per_objfile::get_cu): Rename from...
13067 (dw2_get_cu): ...this.
13068 (dwarf2_per_objfile::get_tu): New.
13069 (create_addrmap_from_index): Adjust.
13070 (create_addrmap_from_aranges): Adjust.
13071 (dw2_find_last_source_symtab): Adjust.
13072 (dw2_map_symtabs_matching_filename): Adjust.
13073 (dw2_symtab_iter_next): Adjust.
13074 (dw2_print_stats): Adjust.
13075 (dw2_expand_all_symtabs): Adjust.
13076 (dw2_expand_symtabs_with_fullname): Adjust.
13077 (dw2_expand_marked_cus): Adjust.
13078 (dw_expand_symtabs_matching_file_matcher): Adjust.
13079 (dw2_map_symbol_filenames): Adjust.
13080 (dw2_debug_names_iterator::next): Adjust.
13081 (dwarf2_initialize_objfile): Adjust.
13082 (set_partial_user): Adjust.
13083 (dwarf2_build_psymtabs_hard): Adjust.
13085 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13087 * dwarf2read.c (create_signatured_type_table_from_debug_names):
13088 Remove unused variables.
13089 (dw2_map_symtabs_matching_filename): Likewise.
13090 (dwarf2_record_block_ranges): Likewise.
13091 (dwarf2_read_addr_index): Likewise.
13092 (follow_die_offset): Likewise.
13094 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13096 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
13097 to symbol_file_add_main.
13099 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13102 * mi/mi-console.c (do_fputc_async_safe): New.
13103 (mi_console_file::write_async_safe): New.
13104 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
13105 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
13107 * ui-file.c (ui_file::putstrn): Adjust call to
13108 fputstrn_unfiltered.
13109 * utils.c (printchar): Replace do_fputs and do_fprintf
13110 parameters by do_fputc.
13111 (fputstr_filtered): Adjust call to printchar.
13112 (fputstr_unfiltered): Likewise.
13113 (fputstrn_filtered): Likewise.
13114 (fputstrn_unfiltered): Add do_fputc parameter, pass to
13116 * utils.h (do_fputc_ftype): New typedef.
13117 (fputstrn_unfiltered): Add do_fputc parameter.
13119 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13121 * regformats/i386/i386-avx.dat: Remove.
13123 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
13126 * amd64-tdep.c (amd64_none_init_abi): New function.
13127 (amd64_x32_none_init_abi): New function.
13128 (_initialize_amd64_tdep): Register handlers for x86-64 and
13129 x64_32 with GDB_OSABI_NONE.
13130 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
13131 GDB_OSABI_NONE osabi.
13133 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
13136 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
13138 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
13139 * osabi.c (gdb_osabi_names): Add "unknown" entry.
13141 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
13143 * common/byte-vector.h (char_vector): New type.
13144 * target.h (target_read_alloc): Return
13145 gdb::optional<byte_vector>.
13146 (target_read_stralloc): Return gdb::optional<char_vector>.
13147 (target_get_osdata): Return gdb::optional<char_vector>.
13148 * target.c (target_read_alloc_1): Templatize. Replacement
13149 manual memory management with vector.
13150 (target_read_alloc): Change return type, adjust.
13151 (target_read_stralloc): Change return type, adjust.
13152 (target_get_osdata): Change return type, adjust.
13153 * auxv.c (struct auxv_info) <length>: Remove.
13154 <data>: Change type to gdb::optional<byte_vector>.
13155 (auxv_inferior_data_cleanup): Free auxv_info with delete.
13156 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
13157 (target_auxv_search): Adjust.
13158 (fprint_target_auxv): Adjust.
13159 * avr-tdep.c (avr_io_reg_read_command): Adjust.
13160 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
13161 (linux_make_corefile_notes): Adjust.
13162 * osdata.c (get_osdata): Adjust.
13163 * remote.c (remote_get_threads_with_qxfer): Adjust.
13164 (remote_memory_map): Adjust.
13165 (remote_traceframe_info): Adjust.
13166 (btrace_read_config): Adjust.
13167 (remote_read_btrace): Adjust.
13168 (remote_pid_to_exec_file): Adjust.
13169 * solib-aix.c (solib_aix_get_library_list): Adjust.
13170 * solib-dsbt.c (decode_loadmap): Don't free buf.
13171 (dsbt_get_initial_loadmaps): Adjust.
13172 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
13173 * solib-target.c (solib_target_current_sos): Adjust.
13174 * tracepoint.c (sdata_make_value): Adjust.
13175 * xml-support.c (xinclude_start_include): Adjust.
13176 (xml_fetch_content_from_file): Adjust.
13177 * xml-support.h (xml_fetch_another): Change return type.
13178 (xml_fetch_content_from_file): Change return type.
13179 * xml-syscall.c (xml_init_syscalls_info): Adjust.
13180 * xml-tdesc.c (file_read_description_xml): Adjust.
13181 (fetch_available_features_from_target): Change return type.
13182 (target_fetch_description_xml): Adjust.
13183 (target_read_description_xml): Adjust.
13185 2018-04-06 Tom Tromey <tom@tromey.com>
13187 * value.c (~value): Update.
13188 (struct value) <contents>: Now unique_xmalloc_ptr.
13189 (value_contents_bits_eq, allocate_value_contents)
13190 (value_contents_raw, value_contents_all_raw)
13191 (value_contents_for_printing, value_contents_for_printing_const)
13192 (set_value_enclosing_type): Update.
13194 2018-04-06 Tom Tromey <tom@tromey.com>
13196 * value.c (range_s): Remove typedef, VEC.
13197 (struct range): Add operator<.
13198 (range_lessthan): Remove.
13199 (ranges_contain): Change type.
13201 (struct value) <unavailable, optimized_out>: Now std::vector.
13202 (value_entirely_available)
13203 (value_entirely_covered_by_range_vector)
13204 (value_entirely_unavailable, value_entirely_optimized_out):
13206 (insert_into_bit_range_vector): Change argument type.
13207 (find_first_range_overlap): Likewise.
13208 (struct ranges_and_idx, value_contents_bits_eq)
13209 (require_not_optimized_out, require_available): Update.
13210 (ranges_copy_adjusted): Change argument types.
13211 (value_optimized_out, value_copy, value_fetch_lazy): Update.
13213 2018-04-06 Tom Tromey <tom@tromey.com>
13215 * value.c (~value): Update.
13216 (struct value) <parent>: Now a value_ref_ptr.
13217 (value_parent, set_value_parent, value_address, value_copy):
13220 2018-04-06 Tom Tromey <tom@tromey.com>
13222 * value.c (struct value): Add constructor, destructor, and member
13224 (allocate_value_lazy, value_decref): Update.
13226 2018-04-06 Tom Tromey <tom@tromey.com>
13228 * value.c (struct value) <released, next>: Remove.
13229 (all_values): Now a std::vector.
13230 (allocate_value_lazy): Update.
13231 (value_next): Remove.
13232 (value_mark, value_free_to_mark, release_value)
13233 (value_release_to_mark): Update.
13235 2018-04-06 Tom Tromey <tom@tromey.com>
13237 * value.h (fetch_subexp_value, value_release_to_mark): Update.
13238 (free_value_chain): Remove.
13239 * value.c (free_value_chain): Remove.
13240 (value_release_to_mark): Return a std::vector.
13241 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
13243 (check_condition): Update.
13244 * eval.c (fetch_subexp_value): Change "val_chain" to a
13246 * breakpoint.c (update_watchpoint): Update.
13247 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
13249 2018-04-06 Tom Tromey <tom@tromey.com>
13251 * value.h (free_all_values): Remove.
13252 * value.c (free_all_values): Remove.
13254 2018-04-06 Tom Tromey <tom@tromey.com>
13256 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
13257 (value_history_chain, value_history_count): Remove.
13258 (value_history): New global.
13259 (record_latest_value, access_value_history, show_values)
13260 (preserve_values): Update.
13262 2018-04-06 Tom Tromey <tom@tromey.com>
13264 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
13265 * varobj.c (varobj_set_display_format, varobj_set_value)
13266 (install_default_visualizer, construct_visualizer)
13267 (install_new_value, ~varobj, varobj_get_value_type)
13268 (my_value_of_variable, varobj_editable_p): Update.
13269 * c-varobj.c (c_describe_child, c_value_of_variable)
13270 (cplus_number_of_children, cplus_describe_child): Update.
13271 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
13272 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
13273 (ada_value_of_variable, ada_value_is_changeable_p): Update.
13275 2018-04-06 Tom Tromey <tom@tromey.com>
13277 * printcmd.c (last_examine_address): Change type to
13279 (do_examine, x_command): Update.
13281 2018-04-06 Tom Tromey <tom@tromey.com>
13283 * value.c (release_value): Update.
13284 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
13285 (struct bpstats) <val>: Now a value_ref_ptr.
13286 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13287 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13288 (~watchpoint, print_it_watchpoint, watch_command_1)
13289 (invalidate_bp_value_on_memory_change): Update.
13291 2018-04-06 Tom Tromey <tom@tromey.com>
13293 * varobj.c (varobj_clear_saved_item)
13294 (update_dynamic_varobj_children, install_new_value, ~varobj):
13296 * value.h (value_incref): Move declaration earlier.
13297 (value_decref): Rename from value_free.
13298 (struct value_ref_policy): New.
13299 (value_ref_ptr): New typedef.
13300 (struct value_deleter): Remove.
13301 (gdb_value_up): Remove typedef.
13302 (release_value): Change return type.
13303 (release_value_or_incref): Remove.
13304 * value.c (set_value_parent): Update.
13305 (value_incref): Change return type.
13306 (value_decref): Rename from value_free.
13307 (value_free_to_mark, free_all_values, free_value_chain): Update.
13308 (release_value): Return value_ref_ptr.
13309 (release_value_or_incref): Remove.
13310 (record_latest_value, set_internalvar, clear_internalvar):
13312 * stack.c (info_frame_command): Don't call value_free.
13313 * python/py-value.c (valpy_dealloc, valpy_new)
13314 (value_to_value_object): Update.
13315 * printcmd.c (do_examine): Update.
13316 * opencl-lang.c (lval_func_free_closure): Update.
13317 * mi/mi-main.c (register_changed_p): Don't call value_free.
13318 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
13319 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
13320 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
13322 * guile/scm-value.c (vlscm_free_value_smob)
13323 (vlscm_scm_from_value): Update.
13324 * frame.c (frame_register_unwind, frame_unwind_register_signed)
13325 (frame_unwind_register_unsigned, get_frame_register_bytes)
13326 (put_frame_register_bytes): Don't call value_free.
13327 * findvar.c (address_from_register): Don't call value_free.
13328 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
13329 * dwarf2loc.c (entry_data_value_free_closure)
13330 (value_of_dwarf_reg_entry, free_pieced_value_closure)
13331 (dwarf2_evaluate_loc_desc_full): Update.
13332 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
13333 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
13334 (~watchpoint, watch_command_1)
13335 (invalidate_bp_value_on_memory_change): Update.
13336 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
13338 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
13341 * warning.m4: Add -Wno-error=deprecated-register.
13342 * configure: Re-generate.
13344 2018-04-05 Tom Tromey <tom@tromey.com>
13346 * linespec.h: Remove include of "vec.h".
13348 2018-04-05 Tom Tromey <tom@tromey.com>
13350 * linespec.c (typep): Remove typedef.
13351 (find_methods, find_superclass_methods): Take a std::vector.
13352 (find_method): Use std::vector.
13354 2018-04-05 Tom Tromey <tom@tromey.com>
13356 * utils.c (compare_strings): Remove.
13357 * utils.h (compare_strings): Remove.
13358 * objc-lang.h (find_imps): Update.
13359 * objc-lang.c (find_methods): Take a std::vector.
13360 (uniquify_strings, find_imps): Likewise.
13361 * linespec.c (find_methods): Take a std::vector.
13362 (decode_objc): Use std::vector.
13363 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
13365 (find_method, find_function_symbols): Use std::vector.
13367 2018-04-05 Tom Tromey <tom@tromey.com>
13369 * completer.c (completion_tracker::completion_tracker): Remove
13371 (completion_tracker::discard_completions): Likewise.
13372 * breakpoint.c (ambiguous_names_p): Remove cast.
13373 * ada-lang.c (_initialize_ada_language): Remove cast.
13374 * utils.h (streq): Update.
13375 (streq_hash): Add new declaration.
13376 * utils.c (streq): Return bool.
13377 (streq_hash): New function.
13379 2018-04-05 Tom Tromey <tom@tromey.com>
13381 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
13382 Remove a string copy.
13384 2018-04-05 Tom Tromey <tom@tromey.com>
13386 * linespec.c (filter_results): Use std::vector.
13387 (decode_line_2, decode_line_full): Update.
13389 2018-04-05 Tom Tromey <tom@tromey.com>
13391 * linespec.c (canonical_to_fullform): Return std::string.
13392 (filter_results): Update.
13393 (struct decode_line_2_item): Add constructor.
13394 <fullform, displayform>: Now std::string.
13395 (decode_line_2_compare_items): Now a std::sort comparator.
13396 (decode_line_2): Update.
13398 2018-04-05 Tom Tromey <tom@tromey.com>
13400 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
13401 (unexpected_linespec_error): Update.
13402 (linespec_parse_basic, parse_linespec): Update.
13404 2018-04-05 Tom Tromey <tom@tromey.com>
13406 * linespec.c (linespec_parse_basic): Reindent.
13408 2018-04-05 Tom Tromey <tom@tromey.com>
13410 * minsyms.h (iterate_over_minimal_symbols): Update.
13411 * minsyms.c (iterate_over_minimal_symbols): Take a
13412 gdb::function_view.
13413 * linespec.c (struct collect_minsyms): Remove.
13414 (compare_msyms): Now a std::sort comparator.
13415 (add_minsym): Add parameters.
13416 (search_minsyms_for_name): Update. Use std::vector.
13418 2018-04-03 Tom Tromey <tom@tromey.com>
13420 * mipsread.c (read_alphacoff_dynamic_symtab): Use
13423 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
13425 * MAINTAINERS (Write After Approval): Add Weimin Pan.
13427 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
13430 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
13431 printing static type.
13433 2018-04-01 Tom Tromey <tom@tromey.com>
13435 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
13436 (rs6000_xfer_shared_libraries): Update.
13438 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13440 * common/gdb_vecs.h (char_ptr): Remove.
13441 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
13443 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13445 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
13447 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
13449 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
13451 * tracepoint.h (struct uploaded_tp): Initialize fields.
13452 <actions, step_actions, cmd_strings>: Change type to
13453 std::vector<char *>.
13454 * tracepoint.c (get_uploaded_tp): Allocate with new.
13455 (free_uploaded_tps): Free with delete.
13456 (parse_tracepoint_definition): Adjust to std::vector change.
13457 * breakpoint.c (read_uploaded_action): Likewise.
13458 (create_tracepoint_from_upload): Likewise.
13459 * ctf.c (ctf_write_uploaded_tp): Likewise.
13460 (SET_ARRAY_FIELD): Likewise.
13461 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
13463 2018-03-30 Tom Tromey <tom@tromey.com>
13465 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
13467 (svr4_keep_data_in_core): Update.
13468 (svr4_read_so_list): Update.
13470 2018-03-30 Tom Tromey <tom@tromey.com>
13472 * windows-nat.c (handle_output_debug_string, handle_exception):
13474 * target.h (target_read_string): Update.
13475 * target.c (target_read_string): Change "string" to
13476 unique_xmalloc_ptr.
13477 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
13479 * solib-frv.c (frv_current_sos): Update.
13480 * solib-dsbt.c (dsbt_current_sos): Update.
13481 * solib-darwin.c (darwin_current_sos): Update.
13482 * linux-thread-db.c (inferior_has_bug): Update.
13483 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
13484 Update. Remove alloca.
13485 * ada-lang.c (ada_main_name): Update.
13487 2018-03-30 Tom Tromey <tom@tromey.com>
13489 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
13490 (struct dwo_file_deleter): New.
13491 (dwo_file_up): New typedef.
13492 (open_and_init_dwo_file): Use dwo_file_up.
13493 (free_dwo_file_cleanup): Remove.
13495 2018-03-30 Tom Tromey <tom@tromey.com>
13497 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
13498 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
13500 2018-03-30 Tom Tromey <tom@tromey.com>
13502 * dwarf2read.c (class free_cached_comp_units): New class.
13503 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
13504 (free_cached_comp_units): Remove function.
13506 2018-03-30 Tom Tromey <tom@tromey.com>
13508 * utils.h (make_cleanup_unpush_target): Remove.
13509 * inf-ptrace.c (struct target_unpusher): New.
13510 (target_unpush_up) New typedef.
13511 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
13513 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
13515 2018-03-27 Tom Tromey <tom@tromey.com>
13517 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
13519 2018-03-27 Pedro Alves <palves@redhat.com>
13520 Tom Tromey <tom@tromey.com>
13522 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
13523 destructor. Now a class.
13524 (gdb_readline_wrapper_cleanup): Remove function.
13525 (gdb_readline_wrapper): Remove cleanups.
13527 2018-03-27 Tom Tromey <tom@tromey.com>
13529 * typeprint.h (struct type_print_options) <local_typedefs,
13530 global_typedefs>: Remove "struct" keyword.
13531 (class typedef_hash_table): New class.
13532 (recursively_update_typedef_hash, add_template_parameters)
13533 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
13534 (find_typedef_in_hash): Don't declare.
13535 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
13536 (typedef_hash_table::recursively_update): Rename from
13537 recursively_update_typedef_hash. Now a member.
13538 (typedef_hash_table::add_template_parameters): Rename from
13539 add_template_parameters. Now a member.
13540 (typedef_hash_table::typedef_hash_table): Now a constructor;
13541 rename from create_typedef_hash.
13542 (typedef_hash_table::~typedef_hash_table): Now a destructor;
13543 rename from free_typedef_hash.
13544 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
13545 (do_free_global_table): Remove.
13546 (typedef_hash_table::typedef_hash_table): New constructor; renamed
13547 from copy_type_recursive.
13548 (create_global_typedef_table): Remove.
13549 (typedef_hash_table::find_global_typedef): Now a member of
13550 typedef_hash_table.
13551 (typedef_hash_table::find_typedef): Rename from
13552 find_typedef_in_hash; now a member.
13553 (whatis_exp): Update.
13554 * extension.h (struct ext_lang_type_printers): Add constructor and
13556 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
13558 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
13559 Now a constructor; rename from start_ext_lang_type_printers.
13560 (ext_lang_type_printers): Now a destructor; rename from
13561 free_ext_lang_type_printers.
13562 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
13564 (c_type_print_base_struct_union): Update. Remove cleanups.
13566 2018-03-27 Tom Tromey <tom@tromey.com>
13568 * dwarf-index-write.c: Include <cmath>.
13570 2018-03-27 Joel Brobecker <brobecker@adacore.com>
13572 * NEWS: Add entry describing new "set|show varsize-limit" command.
13573 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
13575 * printcmd.c (_initialize_printcmd): Add "set var" alias of
13578 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
13580 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
13581 dwarf-index-write.c
13582 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
13583 * dwarf-index-common.c: New file.
13584 * dwarf-index-common.h: New file.
13585 * dwarf-index-write.c: New file.
13586 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
13587 (struct dwarf2_section_info): Move from here.
13588 (dwarf2_section_info_def): Likewise.
13589 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
13590 (offset_type): Likewise.
13591 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
13592 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
13593 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
13594 (byte_swap): Likewise.
13595 (MAYBE_SWAP): Likewise.
13596 (dwarf2_per_cu_ptr): Likewise.
13597 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
13598 (struct tu_stats): Likewise.
13599 (struct dwarf2_per_objfile): Likewise.
13600 (struct dwarf2_per_cu_data): Likewise.
13601 (struct signatured_type): Likewise.
13602 (sig_type_ptr): Likewise.
13603 (DEF_VEC_P (sig_type_ptr)): Likewise.
13604 (INDEX4_SUFFIX): Likewise.
13605 (INDEX5_SUFFIX): Likewise.
13606 (DEBUG_STR_SUFFIX): Likewise.
13607 (dwarf2_read_section): Make non-static.
13608 (mapped_index_string_hash): Move from here.
13609 (dwarf5_djb_hash): Likewise.
13610 (file_write): Likewise.
13611 (class data_buf): Likewise.
13612 (struct symtab_index_entry): Likewise.
13613 (struct mapped_symtab): Likewise.
13614 (find_slot): Likewise.
13615 (hash_expand): Likewise.
13616 (add_index_entry): Likewise.
13617 (uniquify_cu_indices): Likewise.
13618 (class c_str_view): Likewise.
13619 (class c_str_view_hasher): Likewise.
13620 (class vector_hasher): Likewise.
13621 (write_hash_table): Likewise.
13622 (psym_index_map): Likewise.
13623 (struct addrmap_index_data): Likewise.
13624 (add_address_entry): Likewise.
13625 (add_address_entry_worker): Likewise.
13626 (write_address_map): Likewise.
13627 (symbol_kind): Likewise.
13628 (write_psymbols): Likewise.
13629 (struct signatured_type_index_data): Likewise.
13630 (write_one_signatured_type): Likewise.
13631 (recursively_count_psymbols): Likewise.
13632 (recursively_write_psymbols): Likewise.
13633 (class debug_names): Likewise.
13634 (check_dwarf64_offsets): Likewise.
13635 (psyms_seen_size): Likewise.
13636 (write_gdbindex): Likewise.
13637 (write_debug_names): Likewise.
13638 (assert_file_size): Likewise.
13639 (write_psymtabs_to_index): Likewise.
13640 (save_gdb_index_command): Likewise.
13641 (_initialize_dwarf2_read): Don't register the "save gdb-index"
13643 * dwarf2read.h: New file.
13645 2018-03-27 Joel Brobecker <brobecker@adacore.com>
13648 * dwarf2read.c (dwarf2_physname): Do not return the demangled
13649 symbol name if the CU's language stores symbol names in linkage
13651 * language.h (struct language_defn)
13652 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
13653 all instances of this struct.
13655 2018-03-26 Tom Tromey <tom@tromey.com>
13657 * stack.c (backtrace_command_1): Remove verbose code.
13659 2018-03-26 Tom Tromey <tom@tromey.com>
13661 * python/py-framefilter.c (py_print_type): Don't catch
13662 exceptions. Return void.
13663 (py_print_value): Likewise.
13664 (py_print_single_arg): Likewise.
13665 (enumerate_args): Don't catch exceptions.
13666 (py_print_args): Likewise.
13667 (py_print_frame): Likewise.
13668 (gdbpy_apply_frame_filter): Catch exceptions here.
13670 2018-03-26 Tom Tromey <tom@tromey.com>
13672 * stack.c (_initialize_stack): Remove trailing newlines from help
13673 text. Add "Usage" line to "backtrace" help.
13675 2018-03-26 Tom Tromey <tom@tromey.com>
13678 * python/py-framefilter.c (py_print_args): Call wrap_hint.
13680 2018-03-26 Tom Tromey <tom@tromey.com>
13682 * python/py-framefilter.c (py_print_single_arg): Return
13683 EXT_LANG_BT_ERROR from catch.
13685 2018-03-26 Tom Tromey <tom@tromey.com>
13687 PR backtrace/15584:
13688 * stack.c (backtrace_command_1): Move some code into no-filters
13691 2018-03-26 Tom Tromey <tom@tromey.com>
13693 * python/py-framefilter.c (throw_quit_or_print_exception): New
13695 (gdbpy_apply_frame_filter): Use it.
13697 2018-03-26 Tom Tromey <tom@tromey.com>
13700 * python/py-framefilter.c (py_print_type, py_print_value)
13701 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
13704 2018-03-26 Tom Tromey <tom@tromey.com>
13706 * python/py-framefilter.c (enumerate_args): Use
13707 gdb::unique_xmalloc_ptr.
13709 2018-03-26 Tom Tromey <tom@tromey.com>
13711 * python/py-framefilter.c (py_print_frame): Return
13713 (gdbpy_apply_frame_filter): Update comment.
13714 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
13716 <EXT_LANG_BT_NO_FILTERS>: Change value.
13718 2018-03-26 Tom Tromey <tom@tromey.com>
13720 PR backtrace/15582:
13721 * stack.c (backtrace_command): Parse "hide" argument.
13722 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
13723 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
13726 2018-03-26 Tom Tromey <tom@tromey.com>
13728 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
13730 (backtrace_command): Remove "fulltrace", add "flags".
13732 2018-03-26 Tom Tromey <tom@tromey.com>
13734 * stack.c (backtrace_command): Rewrite command line parsing.
13736 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13738 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
13740 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
13742 * filename-seen-cache.h: Add include guard.
13744 2018-03-26 Keith Seitz <keiths@redhat.com>
13746 * symfile.c (place_section): Remove "struct" from section_addr_info
13748 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
13749 "struct" keyword from section_addr_info.
13751 2018-03-26 Alan Hayward <alan.hayward@arm.com>
13753 * regformats/regdef.h (reg): Add constructors.
13755 2018-03-25 Pedro Alves <palves@redhat.com>
13757 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
13758 if then/else bodies in var_func_name extraction.
13760 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
13762 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
13763 lookup_minimal_symbol() to find symbol entry.
13764 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
13766 2018-03-23 Keith Seitz <keiths@redhat.com>
13769 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13770 nested type definitions for C++, too.
13772 2018-03-23 Tom Tromey <tom@tromey.com>
13774 * machoread.c (struct oso_el): Add a constructor. Don't define as
13776 (macho_register_oso): Remove.
13777 (macho_symtab_read): Take a std::vector.
13778 (oso_el_compare_name): Now a std::sort comparator.
13779 (macho_symfile_read_all_oso): Take a std::vector.
13780 (macho_symfile_read): Use std::vector. Remove cleanups.
13782 2018-03-22 Tom Tromey <tom@tromey.com>
13784 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13785 (record_full_goto_bookmark): Use std::string.
13787 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13790 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13793 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13795 * rs6000-tdep.c (store_insn_p): New function.
13796 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
13797 and cr_reg to their unshifted values. Use store_insn_p to
13798 match LR saves using either R1 or fdata->alloca_reg. Use
13799 store_insn_p to match CR saves. Set alloca_reg_offset
13800 when alloca_reg and framep are set. Remove lr_reg shift
13801 when assigning to fdata->lr_register.
13803 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
13805 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
13806 command line args instead of emitting a warning.
13808 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13810 * tracepoint.h (struct static_tracepoint_marker): Initialize
13811 fields, define default constructor, move constructor and move
13812 assignment, disable the rest.
13813 <str_id, extra>: Make std::string.
13814 (release_static_tracepoint_marker): Remove.
13815 (free_current_marker): Remove.
13816 * tracepoint.c (free_current_marker): Remove.
13817 (parse_static_tracepoint_marker_definition): Adjust to
13818 std::string, use new hex2str overload.
13819 (release_static_tracepoint_marker): Remove.
13820 (print_one_static_tracepoint_marker): Get marker by reference
13821 and adjust to std::string.
13822 (info_static_tracepoint_markers_command): Adjust to std::vector
13824 * target.h (static_tracepoint_marker_p): Remove typedef.
13825 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
13826 (struct target_ops) <to_static_tracepoint_marker_at>: Return
13828 <to_static_tracepoint_markers_by_strid>: Return std::vector.
13830 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
13831 (target_debug_print_std_vector_static_tracepoint_marker): New.
13832 (target_debug_print_struct_static_tracepoint_marker_p): Rename
13834 (target_debug_print_static_tracepoint_marker_p): ... this.
13835 * target-delegates.c: Re-generate.
13836 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
13838 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
13839 (decode_static_tracepoint_spec): Adjust to std::vector.
13840 (tracepoint_print_one_detail): Adjust to std::string.
13841 (strace_marker_decode_location): Adjust to std::string.
13842 (update_static_tracepoint): Adjust to std::string, remove call
13843 to release_static_tracepoint_marker.
13844 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
13845 Adjust to std::vector.
13846 * remote.c (remote_static_tracepoint_marker_at): Return bool.
13847 (remote_static_tracepoint_markers_by_strid): Adjust to
13849 * common/rsp-low.h (hex2str): New overload with explicit count
13851 * common/rsp-low.c (hex2str): New overload with explicit count
13853 * unittests/rsp-low-selftests.c (test_hex2str): New function.
13854 (_initialize_rsp_low_selftests): Add test_hex2str test.
13855 * unittests/tracepoint-selftests.c
13856 (test_parse_static_tracepoint_marker_definition): Adjust to
13859 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13861 * tracepoint.c (parse_static_tracepoint_marker_definition):
13862 Consider case where the definition is followed by more
13864 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13865 tracepoint-selftests.c.
13866 * unittests/tracepoint-selftests.c: New.
13868 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13870 * MAINTAINERS (Write After Approval): Add Pedro Franco de
13873 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13875 * symtab.c (find_pc_sect_line): fixed indentation.
13877 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13879 * symtab.c (find_pc_sect_line): now uses binary search.
13881 2018-03-19 Tom Tromey <tom@tromey.com>
13883 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
13884 "IDENT" production.
13886 2018-03-19 Pedro Alves <palves@redhat.com>
13887 Tom Tromey <tom@tromey.com>
13889 * unittests/observable-selftests.c: New file.
13890 * common/observable.h: New file.
13891 * observable.h: New file.
13892 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
13893 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
13894 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
13895 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
13896 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
13897 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
13898 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
13899 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
13900 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
13901 python/py-breakpoint.c, python/py-finishbreakpoint.c,
13902 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
13903 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
13904 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
13905 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
13906 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
13907 tui/tui-interp.c, valops.c: Update all users.
13908 * tui/tui-hooks.c (tui_bp_created_observer)
13909 (tui_bp_deleted_observer, tui_bp_modified_observer)
13910 (tui_inferior_exit_observer, tui_before_prompt_observer)
13911 (tui_normal_stop_observer, tui_register_changed_observer):
13913 (tui_observers_token): New global.
13914 (attach_or_detach, tui_attach_detach_observers): New functions.
13915 (tui_install_hooks, tui_remove_hooks): Use
13916 tui_attach_detach_observers.
13917 * record-btrace.c (record_btrace_thread_observer): Remove.
13918 (record_btrace_thread_observer_token): New global.
13919 * observer.sh: Remove.
13920 * observer.c: Rename to observable.c.
13921 * observable.c (namespace gdb_observers): Define new objects.
13922 (observer_debug): Move into gdb_observers namespace.
13923 (struct observer, struct observer_list, xalloc_observer_list_node)
13924 (xfree_observer_list_node, generic_observer_attach)
13925 (generic_observer_detach, generic_observer_notify): Remove.
13926 (_initialize_observer): Update.
13927 Don't include observer.inc.
13928 * Makefile.in (generated_files): Remove observer.h, observer.inc.
13929 (clean mostlyclean): Likewise.
13930 (observer.h, observer.inc): Remove targets.
13931 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
13932 (COMMON_SFILES): Use observable.c, not observer.c.
13933 * .gitignore: Remove observer.h.
13935 2018-03-18 Tom Tromey <tom@tromey.com>
13937 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
13939 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13941 2018-03-17 Tom Tromey <tom@tromey.com>
13943 * auto-load.c (auto_load_objfile_script_1): Use std::string.
13945 2018-03-17 Tom Tromey <tom@tromey.com>
13947 * target.c (class scoped_target_fd): New.
13948 (target_fileio_close_cleanup): Remove.
13949 (target_fileio_read_alloc_1): Use scoped_target_fd.
13951 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
13953 * silent-rules.mk: New.
13954 * Makefile.in: Include silent-rules.mk
13955 (srcdir, VPATH, top_srcdir): Move up.
13956 (COMPILE): Add ECHO_CXX.
13957 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
13958 (init.c): Add ECHO_INIT_C.
13959 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
13960 (version.c): Add ECHO_GEN.
13961 (printcmd.o): Add ECHO_CXX.
13962 (target-float.o): Add ECHO_CXX.
13963 (ada-exp.o): Add ECHO_CXX.
13964 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
13965 (insight$(EXEEXT)): Add ECHO_CXXLD.
13966 * gnulib/configure.ac: Add AM_SILENT_RULES.
13967 * gnulib/aclocal.m4: Re-generate.
13968 * gnulib/configure: Re-generate.
13969 * gnulib/import/Makefile.in: Re-generate.
13971 2018-03-16 Tom Tromey <tom@tromey.com>
13973 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
13974 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
13975 * utils.c (do_free_section_addr_info)
13976 (make_cleanup_free_section_addr_info): Remove.
13977 * symfile.h (struct other_sections): Add constructor.
13978 (struct section_addr_info): Remove.
13979 (section_addr_info): New typedef.
13980 (struct sym_fns) <sym_offsets>: Change type of parameter.
13981 (build_section_addr_info_from_objfile)
13982 (relative_addr_info_to_section_offsets, addr_info_make_relative)
13983 (default_symfile_offsets, symbol_file_add)
13984 (symbol_file_add_from_bfd)
13985 (build_section_addr_info_from_section_table): Update.
13986 (alloc_section_addr_info, free_section_addr_info): Don't declare.
13987 * symfile.c (alloc_section_addr_info): Remove.
13988 (build_section_addr_info_from_section_table): Change return type.
13990 (build_section_addr_info_from_bfd)
13991 (build_section_addr_info_from_objfile): Likewise.
13992 (free_section_addr_info): Remove.
13993 (relative_addr_info_to_section_offsets): Change type of "addrs".
13994 (addrs_section_compar): Now a std::sort comparator.
13995 (addrs_section_sort): Change return type.
13996 (addr_info_make_relative): Change type of "addrs". Update.
13997 (default_symfile_offsets, syms_from_objfile_1)
13998 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
13999 (symbol_file_add_separate): Update.
14000 (symbol_file_add): Change type of "addrs". Update.
14001 (add_symbol_file_command): Update. Remove cleanups.
14002 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
14004 * symfile-debug.c (debug_sym_offsets): Change type of "info".
14005 * solib.c (solib_read_symbols): Update.
14006 * objfiles.c (objfile_relocate): Update. Remove cleanups.
14007 * machoread.c (macho_symfile_offsets): Update.
14008 * jit.c (jit_bfd_try_read_symtab): Update.
14010 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
14012 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14013 unittests/utils-selftests.c.
14014 * unittests/utils-selftests.c: New file.
14016 2018-03-14 Tom Tromey <tom@tromey.com>
14019 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
14022 2018-03-14 Tom Tromey <tom@tromey.com>
14025 * printcmd.c (printf_pointer): Allow "-" in format.
14027 2018-03-14 Tom Tromey <tom@tromey.com>
14029 * printcmd.c (_initialize_printcmd): Add usage to printf.
14031 2018-03-14 Yao Qi <qiyao@sourceware.org>
14033 * MAINTAINERS: Update my email address.
14035 2018-03-13 Tom Tromey <tom@tromey.com>
14037 * machoread.c (macho_check_dsym): Change filenamep to a
14039 (macho_symfile_read): Update.
14040 * symfile.c (load_command): Use std::string.
14042 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
14044 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
14045 to error message string.
14046 (riscv_register_name): Use xsnprintf instead of sprintf.
14047 (riscv_insn::fetch_instruction): Use gdb_assert instead of
14049 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
14051 (riscv_push_dummy_call): Likewise.
14053 2018-03-12 Tom Tromey <tom@tromey.com>
14055 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
14056 Use gdb::byte_vector.
14057 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
14059 2018-03-12 Yao Qi <yao.qi@linaro.org>
14061 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
14062 parameter type to readable_regcache.
14063 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
14066 2018-03-11 Tom Tromey <tom@tromey.com>
14068 * dwarf2read.c (struct nextfield): Add initializers.
14069 (struct nextfnfield): Remove.
14070 (struct fnfieldlist): Add initializers. Remove "length" and
14071 "head", use std::vector.
14072 (struct decl_field_list): Remove.
14073 (struct field_info): Add initializers.
14074 <fields, baseclasses>: Now std::vector.
14075 <nbaseclasses, nfnfields, typedef_field_list_count,
14076 nested_types_list_count>: Remove.
14077 (dwarf2_add_field, dwarf2_add_type_defn)
14078 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
14079 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
14080 (process_structure_scope): Update.
14082 2018-03-11 Tom Tromey <tom@tromey.com>
14084 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
14085 for use by std::sort.
14086 (build_type_psymtabs_1): Use std::vector.
14088 2018-03-09 Eli Zaretskii <eliz@gnu.org>
14090 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
14091 and LIBMPFR in the printed configuration.
14093 2018-03-08 Tom Tromey <tom@tromey.com>
14095 * source.c (get_filename_and_charpos): Use scoped_fd.
14096 * nto-procfs.c (procfs_open_1): Use scoped_fd.
14097 (procfs_pidlist): Likewise.
14098 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
14099 (iterate_over_mappings): Likewise.
14101 2018-03-08 Tom Tromey <tom@tromey.com>
14103 * infcall.c (struct call_return_meta_info)
14104 <stack_temporaries_enabled>: Remove.
14105 (get_call_return_value, call_function_by_hand_dummy): Update.
14106 * thread.c (disable_thread_stack_temporaries): Remove.
14107 (enable_thread_stack_temporaries): Remove.
14108 (thread_stack_temporaries_enabled_p): Return bool.
14109 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
14110 (get_last_thread_stack_temporary): Update.
14111 * eval.c (evaluate_subexp): Update.
14112 * gdbthread.h (class enable_thread_stack_temporaries): Now a
14113 class, not a function.
14114 (value_ptr, value_vec): Remove typedefs.
14115 (class thread_info) <stack_temporaries_enabled>: Now bool.
14116 <stack_temporaries>: Now a std::vector.
14117 (thread_stack_temporaries_enabled_p)
14118 (value_in_thread_stack_temporaries): Return bool.
14120 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
14122 * remote.c (putpkt_binary): Fix omitted bytes reporting.
14123 (getpkt_or_notif_sane_1): Likewise.
14125 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
14127 * build-id.c (build_id_to_debug_bfd): Use std::string.
14129 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
14131 * build-id.c (find_separate_debug_file_by_buildid): Return
14133 * build-id.h (find_separate_debug_file_by_buildid): Return
14135 * coffread.c (coff_symfile_read): Adjust to std::string.
14136 * elfread.c (elf_symfile_read): Adjust to std::string.
14137 * symfile.c (separate_debug_file_exists): Change parameter to
14139 (find_separate_debug_file): Return std::string.
14140 (find_separate_debug_file_by_debuglink): Return std::string.
14141 * symfile.h (find_separate_debug_file_by_debuglink): Return
14144 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
14146 * common/xml-utils.c (xml_escape_text): Move code to...
14147 (xml_escape_text_append): ... this new function.
14148 * common/xml-utils.h (xml_escape_text_append): New declaration.
14149 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
14151 (_initialize_xml_utils): register test_xml_escape_text_append as
14154 2018-03-07 Alan Hayward <alan.hayward@arm.com>
14156 * defs.h: Remove MAX_REGISTER_SIZE.
14157 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
14159 * python/py-unwind.c (pyuw_sniffer): Likewise.
14161 2018-03-07 Tom Tromey <tom@tromey.com>
14163 * linux-tdep.c (linux_info_proc): Update.
14164 * target.h (struct target_ops) <to_fileio_readlink>: Return
14166 (target_fileio_readlink): Return optional<string>.
14167 * remote.c (remote_hostio_readlink): Return optional<string>.
14168 * inf-child.c (inf_child_fileio_readlink): Return
14170 * target.c (target_fileio_readlink): Return optional<string>.
14172 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14174 * regcache.c (cooked_read_test): Add riscv to the list of
14175 architectures that have a save_reggroup.
14177 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
14179 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
14180 value is not a dynamic class object.
14182 2018-03-06 Tom Tromey <tom@tromey.com>
14184 * rust-exp.y: Formatting fixes.
14186 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14188 * riscv-tdep.c (riscv_register_name): Remove target description
14190 (riscv_gdbarch_init): Remove target description check.
14192 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14194 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
14196 * riscv-tdep.h: Likewise.
14198 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14200 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
14201 (riscv_pseudo_register_write): Delete.
14202 (riscv_gdbarch_init): Remove all use of pseudo registers.
14204 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14206 * record-btrace.c (btrace_print_lines): Replace cleanup
14207 parameter with RAII equivalents.
14208 (btrace_insn_history): Replace cleanup with RAII equivalents.
14209 * ui-out.h (make_cleanup_ui_out_list_begin_end,
14210 make_cleanup_ui_out_tuple_begin_end): Remove.
14211 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
14212 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
14213 make_cleanup_ui_out_list_begin_end): Remove.
14215 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14217 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
14218 parameter types to std::vector. Use bool.
14219 (record_btrace_wait): Replace VEC(tp_t) with
14220 std::vector<thread_info *>.
14221 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
14223 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14225 * record-btrace.c (record_btrace_disable_callback): Remove.
14226 (struct scoped_btrace_disable): New.
14227 (record_btrace_open): Use scoped_btrace_disable.
14229 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14231 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
14232 reading values from registers.
14234 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14236 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
14239 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14241 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
14242 change parameter type. Use GDB's print functions, and use
14243 core_addr_to_string where appropriate.
14244 (riscv_push_dummy_call): Use core_addr_to_string where
14245 appropriate, update call to riscv_print_arg_location, and reindent
14247 (riscv_return_value): Update call to riscv_print_arg_location.
14249 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14250 Tim Newsome <tim@sifive.com>
14251 Albert Ou <a0u@eecs.berkeley.edu>
14252 Darius Rad <darius@bluespec.com>
14254 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
14255 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
14256 (ALLDEPFILES): Add riscv-tdep.c
14257 * configure.tgt: Add riscv support.
14258 * riscv-tdep.c: New file.
14259 * riscv-tdep.h: New file.
14260 * NEWS: Mention new target.
14261 * MAINTAINERS: Add entry for riscv.
14263 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14265 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
14266 fields within aggregates.
14268 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
14270 * record-btrace.c (btrace_print_lines): Change type of flags to
14271 gdb_disassembly_flags.
14273 2018-03-04 John Baldwin <jhb@FreeBSD.org>
14275 * fbsd-nat.c: Include "inf-ptrace.h".
14276 (USE_SIGTRAP_SIGINFO): Conditionally define.
14277 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
14278 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
14279 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
14281 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
14283 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
14285 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
14286 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
14287 "supports_stopped_by_hw_breakpoint" target methods.
14289 2018-03-04 John Baldwin <jhb@FreeBSD.org>
14291 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
14292 * fbsd-nat.c (debug_fbsd_nat): New variable.
14293 (show_fbsd_nat_debug): New function.
14294 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
14295 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
14297 2018-03-04 John Baldwin <jhb@FreeBSD.org>
14299 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
14300 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
14302 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
14303 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
14306 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14308 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
14309 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
14311 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14313 * charset.c (struct charset_vector): New.
14314 (charsets): Change type to charset_vector.
14315 (find_charset_names): Adjust.
14317 (_initialize_charset): Adjust.
14319 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14321 * progspace.h (struct program_space) <deleted_solibs>: Change
14322 type to std::vector<std::string>.
14323 * progspace.c (clear_program_space_solib_cache): Adjust.
14324 * breakpoint.c (print_solib_event): Adjust.
14325 (check_status_catch_solib): Adjust.
14326 * solib.c (update_solib_list): Adjust.
14327 * ui-out.h (class ui_out) <field_string>: New overload.
14328 * ui-out.c (ui_out::field_string): New overload.
14330 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14332 * progspace.h (struct program_space): Add constructor and
14333 destructor, initialize fields.
14334 (add_program_space): Remove.
14335 * progspace.c (add_program_space): Rename to...
14336 (program_space::program_space): ... this.
14337 (release_program_space): Rename to...
14338 (program_space::~program_space): ... this.
14339 (delete_program_space): Use delete to delete program_space.
14340 (initialize_progspace): Use new to allocate program_space.
14341 * inferior.c (add_inferior_with_spaces): Likewise.
14342 (clone_inferior_command): Likewise.
14343 * infrun.c (follow_fork_inferior): Likewise.
14344 (handle_vfork_child_exec_or_exit): Likewise.
14346 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14348 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
14349 (delim_string_to_char_ptr_vec): Return std::vector of
14350 gdb::unique_xmalloc_ptr.
14351 (dirnames_to_char_ptr_vec_append): Take std::vector of
14352 gdb::unique_xmalloc_ptr.
14353 (dirnames_to_char_ptr_vec): Return std::vector of
14354 gdb::unique_xmalloc_ptr.
14355 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
14356 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
14357 (delim_string_to_char_ptr_vec): Return an std::vector of
14358 gdb::unique_xmalloc_ptr, adjust the code.
14359 (dirnames_to_char_ptr_vec_append): Take an std::vector of
14360 gdb::unique_xmalloc_ptr, adjust the code.
14361 (dirnames_to_char_ptr_vec): Return an std::vector of
14362 gdb::unique_xmalloc_ptr, adjust the code.
14363 * auto-load.c (auto_load_safe_path_vec): Change type to
14364 std::vector of gdb::unique_xmalloc_ptr.
14365 (auto_load_expand_dir_vars): Return an std::vector of
14366 gdb::unique_xmalloc_ptr, adjust the code.
14367 (auto_load_safe_path_vec_update): Adjust.
14368 (filename_is_in_auto_load_safe_path_vec): Adjust.
14369 (auto_load_objfile_script_1): Adjust.
14370 * build-id.c (build_id_to_debug_bfd): Adjust.
14371 * linux-thread-db.c (thread_db_load_search): Adjust.
14372 * source.c (add_path): Adjust.
14374 * symfile.c (find_separate_debug_file): Adjust.
14375 * utils.c (do_free_char_ptr_vec): Remove.
14376 (make_cleanup_free_char_ptr_vec): Remove.
14378 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
14381 * common/pathstuff.c: Conditionally include "<windows.h>".
14383 2018-03-01 Georg Sauthoff <mail@georg.so>
14386 * gcore.in: Quote variables and switch interpreter to bash.
14388 2018-03-01 Tom Tromey <tom@tromey.com>
14390 * dwarf2read.c (alloc_discriminant_info): Fix default_index
14391 assertion. Add assertion for discriminant_index.
14392 (quirk_rust_enum): Use correct base type name in univariant case.
14394 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
14396 * record.c (get_call_history_modifiers): Return a
14397 record_print_flags.
14398 (cmd_record_call_history): Adjust.
14399 * record-btrace.c (record_btrace_call_history): Adjust.
14400 (record_btrace_call_history_range): Adjust.
14401 (record_btrace_call_history_from): Adjust.
14402 * target-debug.h (target_debug_print_record_print_flags): New.
14403 * target-delegates.c: Re-generate.
14404 * target.c (target_call_history): Change flags type.
14405 (target_call_history_from): Likewise.
14406 (target_call_history_range): Likewise.
14407 * target.h (struct target_ops) <target_call_history>: Likewise.
14408 (target_call_history_from): Likewise.
14409 (target_call_history_range): Likewise.
14411 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14412 Simon Marchi <simon.marchi@polymtl.ca>
14414 * common/common-utils.c: Include "sys/stat.h".
14415 (is_regular_file): Move here from "source.c"; change return
14417 * common/common-utils.h (is_regular_file): New prototype.
14418 * common/pathstuff.c (contains_dir_separator): New function.
14419 * common/pathstuff.h (contains_dir_separator): New prototype.
14420 * source.c: Don't include "sys/stat.h".
14421 (is_regular_file): Move to "common/common-utils.c".
14423 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
14425 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
14426 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
14427 * auto-load.c: Include "common/pathstuff.h".
14428 * common/common-def.h (current_directory): Move here.
14429 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
14431 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
14433 * common/pathstuff.c: New file.
14434 * common/pathstuff.h: New file.
14435 * compile/compile.c: Include "common/pathstuff.h".
14436 * defs.h (current_directory): Move to "common/common-defs.h".
14437 * dwarf2read.c: Include "common/pathstuff.h".
14438 * exec.c: Likewise.
14439 * guile/scm-safe-call.c: Likewise.
14440 * linux-thread-db.c: Likewise.
14441 * main.c: Likewise.
14442 * nto-tdep.c: Likewise.
14443 * objfiles.c: Likewise.
14444 * source.c: Likewise.
14445 * symtab.c: Likewise.
14446 * utils.c: Include "common/pathstuff.h".
14447 (gdb_realpath): Move to "common/pathstuff.c".
14448 (gdb_realpath_keepfile): Likewise.
14449 (gdb_abspath): Likewise.
14450 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
14451 (gdb_realpath_keepfile): Likewise.
14452 (gdb_abspath): Likewise.
14454 2018-02-28 John Baldwin <jhb@FreeBSD.org>
14456 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
14457 wildcard process pid for super_resume for kernels with a
14460 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
14462 * compile/compile.c (get_args): Add additional comments
14463 explaining function.
14465 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
14466 Tom Tromey <tom@tromey.com>
14468 * target.h (memory_write_request_s): Remove typedef. Don't define
14470 (target_write_memory_blocks): Change argument to std::vector.
14471 (struct memory_write_request): Add constructor.
14472 * target-memory.c (compare_block_starting_address): Return bool.
14473 Change argument types.
14474 (claim_memory): Change arguments to use std::vector.
14475 (split_regular_and_flash_blocks, blocks_to_erase)
14476 (compute_garbled_blocks): Likewise.
14477 (cleanup_request_data, cleanup_write_requests_vector): Remove.
14478 (target_write_memory_blocks): Change argument to std::vector.
14479 * symfile.c (struct load_section_data): Add constructor and
14480 destructor. Use std::vector for "requests".
14481 (struct load_progress_data): Add initializers.
14482 (load_section_callback): Update. Use "new".
14483 (clear_memory_write_data): Remove.
14484 (generic_load): Update.
14486 2018-02-27 Alan Hayward <alan.hayward@arm.com>
14488 * arch/aarch64.h: Use common/tdesc.h.
14490 2018-02-26 Maciej W. Rozycki <macro@mips.com>
14492 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
14493 architecture with a 64-bit ABI.
14495 2018-02-26 Maciej W. Rozycki <macro@mips.com>
14497 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
14498 ahead of target description loading.
14500 2018-02-26 Tom Tromey <tom@tromey.com>
14502 * stack.c (backtrace_command_1): Update.
14503 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
14505 * python/py-framefilter.c (py_print_frame)
14506 (gdbpy_apply_frame_filter): Change type of "flags".
14507 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
14509 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
14510 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
14511 * extension.h (enum frame_filter_flag): Rename from
14512 frame_filter_flags.
14513 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
14514 (apply_ext_lang_frame_filter): Change type of "flags".
14515 * extension.c (apply_ext_lang_frame_filter): Change type of
14517 * extension-priv.h (struct extension_language_ops)
14518 <apply_frame_filter>: Change type of "flags".
14520 2018-02-26 Tom Tromey <tom@tromey.com>
14523 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
14524 off-by-one in py_end computation.
14525 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
14527 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
14530 2018-02-26 Tom Tromey <tom@tromey.com>
14532 * dwarf2read.c (struct variant_field): New.
14533 (struct nextfield) <variant>: New field.
14534 (dwarf2_add_field): Handle DW_TAG_variant_part.
14535 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
14536 discriminated union.
14537 (read_structure_type): Handle DW_TAG_variant_part.
14538 (handle_struct_member_die): New function, extracted from
14539 process_structure_scope. Handle DW_TAG_variant.
14540 (process_structure_scope): Handle discriminated unions. Call
14541 handle_struct_member_die.
14543 2018-02-26 Tom Tromey <tom@tromey.com>
14545 * rust-lang.h (rust_last_path_segment): Declare.
14546 * rust-lang.c (rust_last_path_segment): Now public. Change
14548 (struct disr_info): Remove.
14549 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
14550 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
14551 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
14552 (rust_enum_p, rust_enum_variant): New function.
14553 (rust_underscore_fields): Remove "offset" parameter.
14554 (rust_print_enum): New function.
14555 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
14556 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
14557 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
14559 (rust_internal_print_type): New function, from rust_print_type.
14561 (rust_print_type): Call rust_internal_print_type.
14562 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
14563 Update enum handling.
14564 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
14565 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
14566 (rust_union_quirks): New functions.
14567 (process_full_comp_unit, process_full_type_unit): Call
14569 (process_structure_scope): Update rust_unions if necessary.
14571 2018-02-26 Tom Tromey <tom@tromey.com>
14573 * value.h (value_union_variant): Declare.
14574 * valops.c (value_union_variant): New function.
14575 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
14576 (struct discriminant_info): New.
14577 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
14579 (struct main_type) <flag_discriminated_union>: New field.
14581 2018-02-26 Tom Tromey <tom@tromey.com>
14583 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14584 unittests/unpack-selftests.c.
14585 * unittests/unpack-selftests.c: New file.
14586 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
14588 2018-02-26 Yao Qi <yao.qi@linaro.org>
14590 * dwarf2read.c (struct partial_die_info) <read>: New method.
14591 (read_partial_die): Remove the declaration.
14592 (load_partial_dies): Update.
14593 (partial_die_info::partial_die_info):
14594 (read_partial_die): Change it to partial_die_info::read.
14596 2018-02-26 Yao Qi <yao.qi@linaro.org>
14598 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
14599 (fixup_partial_die): Remove declaration.
14600 (scan_partial_symbols): Update.
14601 (partial_die_parent_scope): Likewise.
14602 (partial_die_full_name): Likewise.
14603 (fixup_partial_die): Change it to partial_die_info::fixup.
14605 2018-02-26 Yao Qi <yao.qi@linaro.org>
14607 * dwarf2read.c (read_partial_die): Update the declaration.
14608 (load_partial_dies): Caller update.
14609 (read_partial_die): Remove one argument abbrev_len.
14611 2018-02-26 Yao Qi <yao.qi@linaro.org>
14613 * dwarf2read.c (struct partial_die_info): Add ctor, delete
14614 assignment operator.
14615 (load_partial_dies): Use ctor and copy ctor.
14616 (read_partial_die): Update.
14617 (dwarf2_cu::find_partial_die): Use ctor.
14619 2018-02-26 Yao Qi <yao.qi@linaro.org>
14621 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
14622 (find_partial_die_in_comp_unit): Change it to
14623 dwarf2_cu::find_partial_die.
14624 (find_partial_die): Update.
14626 2018-02-26 Yao Qi <yao.qi@linaro.org>
14628 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
14631 2018-02-26 Yao Qi <yao.qi@linaro.org>
14633 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
14635 2018-02-26 Alan Hayward <alan.hayward@arm.com>
14637 * arch/amd64.h: Use common/tdesc.h.
14638 * arch/i386.c: Likewise.
14639 * arch/i386.h: Likewise.
14640 * arch/tic6x.c: Likewise.
14641 * arch/tdesc.h: Move file from here...
14642 * common/tdesc.h: ...to here.
14643 * features/aarch64-core.c: Regenerate.
14644 * features/aarch64-fpu.c: Regenerate.
14645 * features/i386/32bit-avx.c: Regenerate.
14646 * features/i386/32bit-avx512.c: Regenerate.
14647 * features/i386/32bit-core.c: Regenerate.
14648 * features/i386/32bit-linux.c: Regenerate.
14649 * features/i386/32bit-mpx.c: Regenerate.
14650 * features/i386/32bit-pkeys.c: Regenerate.
14651 * features/i386/32bit-sse.c: Regenerate.
14652 * features/i386/64bit-avx.c: Regenerate.
14653 * features/i386/64bit-avx512.c: Regenerate.
14654 * features/i386/64bit-core.c: Regenerate.
14655 * features/i386/64bit-linux.c: Regenerate.
14656 * features/i386/64bit-mpx.c: Regenerate.
14657 * features/i386/64bit-pkeys.c: Regenerate.
14658 * features/i386/64bit-segments.c: Regenerate.
14659 * features/i386/64bit-sse.c: Regenerate.
14660 * features/i386/x32-core.c: Regenerate.
14661 * features/tic6x-c6xp.c: Regenerate.
14662 * features/tic6x-core.c: Regenerate.
14663 * features/tic6x-gp.c: Regenerate.
14664 * target-descriptions.c: Use common/tdesc.h.
14665 * target-descriptions.h: Likewise.
14667 2018-02-24 Tom Tromey <tom@tromey.com>
14669 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
14670 (try_thread_db_load_from_dir, thread_db_load_search): Use
14672 (info_auto_load_libthread_db_compare): Return bool. Change
14674 (info_auto_load_libthread_db): Use std::vector, std::string.
14677 2018-02-24 Tom Tromey <tom@tromey.com>
14679 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
14681 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
14683 * gdbarch.c: Rebuild.
14684 * gdbarch.h: Rebuild.
14685 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
14686 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
14687 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
14690 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
14692 * gdbtypes.h (sect_offset): Change type to uint64_t.
14693 (sect_offset_str): New function.
14694 * dwarf2read.c (create_addrmap_from_aranges): Use
14696 (error_check_comp_unit_head): Likewise.
14697 (create_debug_type_hash_table): Likewise.
14698 (read_cutu_die_from_dwo): Likewise.
14699 (init_cutu_and_read_dies): Likewise.
14700 (init_cutu_and_read_dies_no_follow): Likewise.
14701 (process_psymtab_comp_unit_reader): Likewise.
14702 (partial_die_parent_scope): Likewise.
14703 (peek_die_abbrev): Likewise.
14704 (process_queue): Likewise.
14705 (dwarf2_physname): Likewise.
14706 (read_namespace_alias): Likewise.
14707 (read_import_statement): Likewise.
14708 (create_dwo_cu_reader): Likewise.
14709 (create_cus_hash_table): Likewise.
14710 (lookup_dwo_cutu): Likewise.
14711 (inherit_abstract_dies): Likewise.
14712 (read_func_scope): Likewise.
14713 (read_call_site_scope): Likewise.
14714 (dwarf2_add_member_fn): Likewise.
14715 (read_common_block): Likewise.
14716 (read_module_type): Likewise.
14717 (read_typedef): Likewise.
14718 (read_subrange_type): Likewise.
14719 (load_partial_dies): Likewise.
14720 (read_partial_die): Likewise.
14721 (find_partial_die): Likewise.
14722 (read_str_index): Likewise.
14723 (dwarf2_string_attr): Likewise.
14724 (build_error_marker_type): Likewise.
14725 (lookup_die_type): Likewise.
14726 (dump_die_shallow): Likewise.
14727 (follow_die_ref): Likewise.
14728 (dwarf2_fetch_die_loc_sect_off): Likewise.
14729 (dwarf2_fetch_constant_bytes): Likewise.
14730 (follow_die_sig): Likewise.
14731 (get_signatured_type): Likewise.
14732 (get_DW_AT_signature_type): Likewise.
14733 (dwarf2_find_containing_comp_unit): Likewise.
14734 (set_die_type): Likewise.
14736 2018-02-21 John Baldwin <jhb@FreeBSD.org>
14738 * arch/aarch64.c: Include "common-defs.h".
14739 * arch/amd64.c: Likewise.
14740 * arch/i386.c: Likewise.
14742 2018-02-21 Tom Tromey <tom@tromey.com>
14744 * value.h: (extract_field_op): Update.
14745 * eval.c (extract_field_op): Return a const char *.
14746 * expression.h (parse_expression_for_completion): Update.
14747 * completer.c (complete_expression): Update.
14748 (add_struct_fields): Make fieldname const.
14749 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
14750 (mark_completion_tag, parse_exp_in_context_1): Update.
14751 (parse_expression_for_completion): Change "name" to
14752 unique_xmalloc_ptr*.
14754 2018-02-21 Tom Tromey <tom@tromey.com>
14756 * infcall.c (call_function_by_hand_dummy): Use std::vector.
14758 2018-02-21 Yao Qi <yao.qi@linaro.org>
14760 * avr-tdep.c (avr_read_pc): Change parameter type to
14762 * gdbarch.sh (read_pc): Likewise.
14763 * gdbarch.c: Re-generated.
14764 * gdbarch.h: Re-generated.
14765 * hppa-tdep.c (hppa_read_pc): Change parameter type to
14767 * ia64-tdep.c (ia64_read_pc): Likewise.
14768 * mips-tdep.c (mips_read_pc): Likewise.
14769 * spu-tdep.c (spu_read_pc): Likewise.
14771 2018-02-21 Yao Qi <yao.qi@linaro.org>
14773 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14774 * regcache-dump.c: New file.
14775 * regcache.c: Move register_dump to regcache-dump.c.
14776 (maintenance_print_registers): Likewise.
14777 (maintenance_print_raw_registers): Likewise.
14778 (maintenance_print_cooked_registers): Likewise.
14779 (maintenance_print_register_groups): Likewise.
14780 (maintenance_print_remote_registers): Likewise.
14781 (_initialize_regcache): Likewise.
14782 * regcache.h (register_dump): Moved from regcache.c.
14784 2018-02-21 Yao Qi <yao.qi@linaro.org>
14786 * regcache.c (regcache::regcache): Update.
14787 (regcache::invalidate): Move it to detached_regcache::invalidate.
14788 (get_thread_arch_aspace_regcache): Update.
14789 (regcache::raw_update): Update.
14790 (regcache::cooked_read): Remove some code.
14791 (regcache::cooked_read_value): Likewise.
14792 (regcache::raw_write): Remove assert on m_readonly_p.
14793 (regcache::raw_supply_integer): Move it to
14794 detached_regcache::raw_supply_integer.
14795 (regcache::raw_supply_zeroed): Likewise.
14796 * regcache.h (detached_regcache) <raw_supply_integer>: New
14798 <raw_supply_zeroed, invalidate>: Likewise.
14799 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
14800 <invalidate>: Likewise.
14801 <m_readonly_p>: Removed.
14803 2018-02-21 Yao Qi <yao.qi@linaro.org>
14805 * infcmd.c (get_return_value): Let stop_regs point to
14806 get_current_regcache.
14807 * regcache.c (regcache::regcache): Remove.
14808 (register_dump_reg_buffer): New class.
14809 (regcache_print): Adjust.
14810 * regcache.h (regcache): Remove constructors.
14812 2018-02-21 Yao Qi <yao.qi@linaro.org>
14814 * regcache.c (class register_dump): New class.
14815 (register_dump_regcache, register_dump_none): New class.
14816 (register_dump_remote, register_dump_groups): New class.
14817 (regcache_print): Update.
14818 * regcache.h (regcache_dump_what): Move it to regcache.c.
14819 (regcache) <dump>: Remove.
14821 2018-02-21 Yao Qi <yao.qi@linaro.org>
14823 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
14825 (jit_unwind_reg_set_impl): Call raw_supply.
14826 (jit_frame_sniffer): Use reg_buffer_rw.
14827 * record-full.c (record_full_core_regbuf): Change its type.
14828 (record_full_core_open_1): Use reg_buffer_rw.
14829 (record_full_close): Likewise.
14830 (record_full_core_fetch_registers): Use regcache->raw_supply.
14831 (record_full_core_store_registers): Likewise.
14832 * regcache.c (regcache::get_register_status): Move it to
14834 (regcache_raw_set_cached_value): Remove.
14835 (regcache::raw_set_cached_value): Remove.
14836 (regcache::raw_write): Call raw_supply.
14837 (regcache::raw_supply): Move it to reg_buffer_rw.
14838 * regcache.h (regcache_raw_set_cached_value): Remove.
14839 (reg_buffer_rw): New class.
14841 2018-02-21 Yao Qi <yao.qi@linaro.org>
14843 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
14844 readonly_detached_regcache.
14845 (dummy_frame_prev_register): Use regcache->cooked_read.
14846 * frame.c (frame_save_as_regcache): Change return type.
14847 (frame_pop): Update.
14848 * frame.h (frame_save_as_regcache): Update declaration.
14849 * inferior.h (get_infcall_suspend_state_regcache): Update
14851 * infrun.c (infcall_suspend_state) <registers>: use
14852 readonly_detached_regcache.
14853 (save_infcall_suspend_state): Don't use regcache_dup.
14854 (get_infcall_suspend_state_regcache): Change return type.
14855 * linux-fork.c (struct fork_info) <savedregs>: Change to
14856 readonly_detached_regcache.
14858 (fork_save_infrun_state): Don't use regcache_dup.
14859 (info_checkpoints_command): Adjust.
14860 * mi/mi-main.c (register_changed_p): Update declaration.
14861 (mi_cmd_data_list_changed_registers): Use
14862 readonly_detached_regcache.
14863 (register_changed_p): Change parameter type to
14864 readonly_detached_regcache.
14865 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
14866 readonly_detached_regcache.
14867 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
14868 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
14870 (regcache::save): Move it to reg_buffer.
14871 (regcache::restore): Change parameter type.
14872 (regcache_dup): Remove.
14873 * regcache.h (reg_buffer) <save>: New method.
14874 (readonly_detached_regcache): New class.
14875 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
14876 readonly_detached_regcache.
14877 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
14879 2018-02-21 Yao Qi <yao.qi@linaro.org>
14881 * frame.c (frame_save_as_regcache): Use regcache method save.
14882 (frame_pop): Use regcache method restore.
14883 * infrun.c (restore_infcall_suspend_state): Likewise.
14884 * linux-fork.c (fork_load_infrun_state): Likewise.
14885 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
14887 * regcache.c (regcache_save): Remove.
14888 (regcache::restore): More asserts.
14889 (regcache_cpy): Remove.
14890 * regcache.h (regcache_save): Remove the declaration.
14891 (regcache::restore): Move from private to public.
14892 Remove the friend declaration of regcache_cpy.
14893 (regcache_cpy): Remove declaration.
14895 2018-02-21 Yao Qi <yao.qi@linaro.org>
14897 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
14898 parameter type to 'readable_regcache *'.
14899 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14900 * arm-tdep.c (arm_neon_quad_read): Likewise.
14901 (arm_pseudo_read): Likewise.
14902 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14903 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14904 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14905 * gdbarch.c: Re-generated.
14906 * gdbarch.h: Re-generated.
14907 * gdbarch.sh (pseudo_register_read): Change parameter type to
14908 'readable_regcache *'.
14909 (pseudo_register_read_value): Likewise.
14910 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
14911 (h8300_pseudo_register_read): Likewise.
14912 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
14913 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14914 (i386_pseudo_register_read_into_value): Likewise.
14915 (i386_pseudo_register_read_value): Likewise.
14916 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
14918 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
14919 * m32c-tdep.c (m32c_raw_read): Likewise.
14920 (m32c_read_flg): Likewise.
14921 (m32c_banked_register): Likewise.
14922 (m32c_banked_read): Likewise.
14923 (m32c_sb_read): Likewise.
14924 (m32c_part_read): Likewise.
14925 (m32c_cat_read): Likewise.
14926 (m32c_r3r2r1r0_read): Likewise.
14927 (m32c_pseudo_register_read): Likewise.
14928 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14929 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14930 (mep_pseudo_cr64_read): Likewise.
14931 (mep_pseudo_register_read): Likewise.
14932 * mips-tdep.c (mips_pseudo_register_read): Likewise.
14933 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14934 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14935 * regcache.c (regcache::raw_read): Move it to readable_regcache.
14936 (regcache::cooked_read): Likewise.
14937 (regcache::cooked_read_value): Likewise.
14938 (regcache_cooked_read_signed):
14939 (regcache::cooked_read): Likewise.
14940 * regcache.h (readable_regcache): New class.
14941 (regcache): Inherit readable_regcache. Move some methods to
14943 * rl78-tdep.c (rl78_pseudo_register_read): Change
14944 parameter type to 'readable_regcache *'.
14945 * rs6000-tdep.c (do_regcache_raw_read): Remove.
14946 (e500_pseudo_register_read): Change parameter type to
14947 'readable_regcache *'.
14948 (dfp_pseudo_register_read): Likewise.
14949 (vsx_pseudo_register_read): Likewise.
14950 (efpr_pseudo_register_read): Likewise.
14951 * s390-tdep.c (s390_pseudo_register_read): Likewise.
14952 * sh-tdep.c (sh_pseudo_register_read): Likewise.
14953 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
14954 (sh64_pseudo_register_read): Likewise.
14955 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14956 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14957 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14958 (spu_pseudo_register_read): Likewise.
14959 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14960 (xtensa_pseudo_register_read): Likewise.
14962 2018-02-21 Yao Qi <yao.qi@linaro.org>
14964 * regcache.c (regcache::regcache): Call reg_buffer ctor.
14965 (regcache::arch): Move it to reg_buffer::arch.
14966 (regcache::register_buffer): Likewise.
14967 (regcache::assert_regnum): Likewise.
14968 (regcache::num_raw_registers): Likewise.
14969 * regcache.h (reg_buffer): New class.
14970 (regcache): Inherit reg_buffer.
14972 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
14974 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
14975 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
14977 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
14979 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
14981 2018-02-19 Alan Hayward <alan.hayward@arm.com>
14983 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
14984 (SFILES): Remove common/*.c files.
14985 (COMMON_OBS): Remove some *.o files built from common/*.c files.
14986 * common/common.host: Add common reference.
14987 * configure.ac: Likewise.
14988 * configure: Regenerate.
14990 2018-02-16 Yao Qi <yao.qi@linaro.org>
14992 * block.c (block_namespace_info): Inherit allocate_on_obstack.
14993 (block_initialize_namespace): Use new.
14994 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
14995 (dwarf2_free_objfile): Use delete.
14996 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
14997 (copy_type_recursive): Use new.
14998 * gdb_obstack.h (allocate_on_obstack): New.
15000 2018-02-15 Yao Qi <yao.qi@linaro.org>
15003 * inferior.c (exit_inferior_1): Reset inf->control.
15005 2018-02-15 Joel Brobecker <brobecker@adacore.com>
15007 * ada-lang.c (ada_to_fixed_value_create): Delete advance
15010 2018-02-14 Pedro Alves <palves@redhat.com>
15012 * frame-unwind.c (frame_unwind_try_unwinder): Always call
15013 frame_cleanup_after_sniffer on exception.
15015 2018-02-14 Tom Tromey <tom@tromey.com>
15017 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
15019 (solib_bfd_open): Make pathname const.
15020 * solib.c (solib_bfd_open): Make pathname const.
15021 * solib-spu.c (spu_bfd_fopen): Make name const.
15022 (spu_bfd_open): Make pathname const.
15023 * solib-darwin.c (darwin_bfd_open): Make pathname const.
15024 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
15026 2018-02-14 Tom Tromey <tom@tromey.com>
15028 * symfile.c (symfile_bfd_open): Update.
15029 * source.h (openp, source_full_path_of, find_and_open_source):
15030 Change argument type to unique_xmalloc_ptr.
15031 * source.c (openp): Take a unique_xmalloc_ptr.
15032 (source_full_path_of, find_and_open_source): Likewise.
15033 (open_source_file, symtab_to_fullname): Update.
15034 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
15035 unique_xmalloc_ptr.
15036 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
15037 (exec_file_find): Update.
15038 * psymtab.c (psymtab_to_fullname): Update.
15039 * nto-tdep.h (nto_find_and_open_solib): Update.
15040 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
15041 unique_xmalloc_ptr.
15042 * exec.c (exec_file_attach): Update.
15043 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
15044 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
15046 2018-02-14 Tom Tromey <tom@tromey.com>
15048 * solib.c: Include source.h.
15049 * nto-tdep.c: Include source.h.
15050 * mi/mi-cmd-env.c: Include source.h.
15051 * infcmd.c: Include source.h.
15052 * exec.c: Include source.h.
15053 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
15054 (add_path, directory_switch, source_path, init_source_path): Move
15056 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
15057 (add_path, directory_switch, source_path, init_source_path):
15060 2018-02-14 Tom Tromey <tom@tromey.com>
15062 * solist.h (exec_file_find, solib_find): Return
15063 unique_xmalloc_ptr.
15064 (solib_bfd_fopen): Take a const char *.
15065 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
15066 (exec_file_find, solib_find): Likewise.
15067 (solib_bfd_fopen): Do not take ownership of "pathname".
15068 (solib_bfd_open): Use unique_xmalloc_ptr.
15069 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
15070 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
15071 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
15072 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
15074 2018-02-14 Joel Brobecker <brobecker@adacore.com>
15076 * ada-lang.c (name_match_type_from_name): Remove reference to
15077 ada_name_for_lookup in function's documentation.
15078 * ada-lang.h (ada_name_for_lookup): Delete declaration.
15080 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
15082 * defs.h (enum openp_flags): New enum.
15083 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
15084 Move to enum openp_flags.
15085 (openp_flags): New enum flags.
15086 (openp): Change parameter type to openp_flags.
15087 * source.c (openp): Change parameter type to openp_flags.
15088 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
15089 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
15091 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
15093 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
15096 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
15098 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
15100 (class dwarf2_queue_guard): ...the destructor of this new class.
15101 (dw2_do_instantiate_symtab): Create instance of the new class
15102 dwarf2_queue_guard, remove cleanup.
15104 2018-02-09 Tom Tromey <tom@tromey.com>
15106 * source.c (find_source_lines): Don't reference past the end of
15109 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15111 * remote.c (remote_btrace_maybe_reopen): Change error message.
15112 * btrace.c (btrace_enable): Likewise.
15113 (parse_xml_btrace): Likewise.
15114 (parse_xml_btrace_conf): Likewise.
15116 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15118 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
15119 (linux_enable_pt, linux_enable_bts): Call
15120 diagnose_perf_event_open_fail.
15122 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15124 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
15125 Remove parameter and change return type. Update callers. Move it.
15126 (linux_enable_bts, linux_enable_pt): Improve error message.
15127 (linux_enable_pt): Remove zero buffer size check.
15128 (linux_enable_btrace): Improve error messages. Remove NULL return
15131 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15133 * btrace.c (btrace_enable): Remove target_supports_btrace call.
15134 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
15135 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
15136 (linux_supports_pt, linux_supports_btrace): Remove.
15137 (linux_enable_bts): Call cpu_supports_bts.
15138 * nat/linux-btrace.h (linux_supports_btrace): Remove.
15139 * remote.c (remote_supports_btrace): Remove.
15140 (init_remote_ops): Remove remote_supports_btrace.
15141 * target-delegates.c: Regenerated.
15142 * target.c (target_supports_btrace): Remove.
15143 * target.h (target_ops) <to_supports_btrace>: Remove
15144 (target_supports_btrace): Remove.
15145 * x86-linux-nat.c (x86_linux_create_target): Remove
15146 linux_supports_btrace.
15148 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15150 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
15152 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
15153 exception and use message in own exception.
15155 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15157 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
15158 (perf_event_pt_event_type): Use gdb_file_up.
15159 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
15160 scoped_fd, and scoped_mmap.
15162 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15164 * common/scoped_mmap.h: New.
15165 * unittests/scoped_mmap-selftest.c: New.
15166 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15167 unittests/scoped_mmap-selftest.c.
15169 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
15171 * common/scoped_fd.h: New.
15172 * unittests/scoped_fd-selftest.c: New.
15173 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15174 unittests/scoped_fd-selftest.c.
15176 2018-02-09 Tom Tromey <tom@tromey.com>
15178 * auto-load.c (auto_load_section_scripts): Use
15179 gdb::unique_xmalloc_ptr.
15181 2018-02-09 Tom Tromey <tom@tromey.com>
15183 * auto-load.c (execute_script_contents): Use std::string.
15185 2018-02-09 Joel Brobecker <brobecker@adacore.com>
15187 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
15188 Python function, rather than a new command.
15190 2018-02-08 Tom Tromey <tom@tromey.com>
15192 * solib.c (solib_find_1): Use std::string.
15193 (solib_bfd_fopen): Use unique_xmalloc_ptr.
15195 2018-02-08 Tom Tromey <tom@tromey.com>
15197 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
15199 2018-02-08 Tom Tromey <tom@tromey.com>
15201 * source.c (find_source_lines): Use gdb::def_vector.
15203 2018-02-08 Tom Tromey <tom@tromey.com>
15205 * macrocmd.c (struct temporary_macro_definition): New.
15206 (macro_define_command): Use temporary_macro_definition. Remove
15208 (free_macro_definition_ptr): Remove.
15210 2018-02-08 Tom Tromey <tom@tromey.com>
15212 * macroexp.c (maybe_expand): Use std::string.
15214 2018-02-08 Tom Tromey <tom@tromey.com>
15216 * macroexp.c (struct macro_buffer): Add initializers for some
15218 (init_buffer, init_shared_buffer, free_buffer)
15219 (free_buffer_return_text): Remove.
15220 (macro_buffer): New constructors.
15221 (~macro_buffer): New destructor.
15222 (macro_buffer::set_shared): New method.
15223 (macro_buffer::resize_buffer, macro_buffer::appendc)
15224 (macro_buffer::appendmem): Now methods, not free functions.
15225 (set_token, append_tokens_without_splicing, stringify)
15226 (macro_stringify): Update.
15227 (gather_arguments): Change return type. Remove argc_p argument,
15228 add args_ptr argument. Use std::vector.
15229 (substitute_args): Remove argc argument. Accept std::vector.
15230 (expand): Update. Use std::vector.
15231 (scan, macro_expand, macro_expand_next): Update.
15233 2018-02-08 Tom Tromey <tom@tromey.com>
15235 * symtab.c (default_collect_symbol_completion_matches_break_on):
15236 Use unique_xmalloc_ptr.
15237 * macroscope.h: (sal_macro_scope, user_macro_scope)
15238 (default_macro_scope): Return unique_xmalloc_ptr.
15239 * macroscope.c (sal_macro_scope, user_macro_scope)
15240 (default_macro_scope): Return unique_xmalloc_ptr.
15241 * macroexp.h (macro_expand, macro_expand_once): Return
15242 unique_xmalloc_ptr.
15243 * macroexp.c (macro_expand, macro_expand_once): Return
15244 unique_xmalloc_ptr.
15245 * macrocmd.c (macro_expand_command, macro_expand_once_command)
15246 (info_macro_command, info_macros_command): Use
15247 unique_xmalloc_ptr.
15248 * compile/compile-c-support.c (write_macro_definitions): Use
15249 unique_xmalloc_ptr.
15250 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
15252 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
15254 * value.c (value_static_field): Assign field type instead of
15255 containing type when returning an optimized out value.
15257 2018-02-06 Yao Qi <yao.qi@linaro.org>
15259 * ft32-tdep.c (ft32_read_pc): Remove.
15260 (ft32_write_pc): Remove.
15261 (ft32_gdbarch_init): Update.
15262 * m32r-tdep.c (m32r_read_pc): Remove.
15263 (m32r_gdbarch_init): Update.
15264 * mep-tdep.c (mep_read_pc): Remove.
15265 (mep_gdbarch_init): Update.
15266 * microblaze-tdep.c (microblaze_write_pc): Remove.
15267 (microblaze_gdbarch_init): Update.
15268 * mn10300-tdep.c (mn10300_read_pc): Remove.
15269 (mn10300_write_pc): Remove.
15270 (mn10300_gdbarch_init): Update.
15271 * moxie-tdep.c (moxie_read_pc): Remove.
15272 (moxie_write_pc): Remove.
15273 (moxie_gdbarch_init): Update.
15275 2018-02-06 Yao Qi <yao.qi@linaro.org>
15277 * expprint.c (print_subexp_standard): Handle
15278 OP_F77_UNDETERMINED_ARGLIST.
15279 (dump_subexp_body_standard): Likewise.
15281 2018-02-05 Alan Hayward <alan.hayward@arm.com>
15283 * target-descriptions.c (tdesc_element_visitor) Add empty
15285 (tdesc_type): Move make_gdb_type from here.
15286 (tdesc_type_builtin): Likewise.
15287 (tdesc_type_vector): Likewise.
15288 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
15289 (make_gdb_type_struct): Move from tdesc_type_with_fields.
15290 (make_gdb_type_union): Likewise.
15291 (make_gdb_type_flags): Likewise.
15292 (make_gdb_type_enum): Likewise.
15293 (make_gdb_type): New function.
15294 (tdesc_register_type): Use static make_gdb_type.
15296 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
15298 * infcmd.c (default_print_one_register_info): Align natural-format
15299 column values consistently one under another.
15300 (pad_to_column): New function.
15302 2018-02-05 Joel Brobecker <brobecker@adacore.com>
15304 * dwarf2read.c (dwarf2_physname): Move commment.
15306 2018-02-01 Leszek Swirski <leszeks@google.com>
15308 * varobj.c (varobj_formatted_print_options): Allow recursive
15309 pretty printing if pretty printing is enabled.
15311 2018-02-01 Leszek Swirski <leszeks@google.com>
15313 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
15314 names after a structop as a filename.
15316 2018-02-01 Yao Qi <yao.qi@linaro.org>
15318 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
15319 (arm_record_coproc_data_proc): Likewise.
15321 2018-02-01 Yao Qi <yao.qi@linaro.org>
15323 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
15325 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
15327 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
15328 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
15330 2018-01-31 Pedro Alves <palves@redhat.com>
15332 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
15333 * inflow.c (child_terminal_save_inferior): Wrap reference to
15334 tcgetpgrp in HAVE_TERMIOS_H.
15335 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
15337 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
15338 always iterate over all inferiors.
15339 (gdbsim_cntrl_c): Adjust.
15340 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
15342 2018-01-31 Joel Brobecker <brobecker@adacore.com>
15344 * gdbtypes.c (lookup_array_range_type): Make sure the array's
15345 index type is objfile-owned if the element type is as well.
15347 2018-01-31 Joel Brobecker <brobecker@adacore.com>
15351 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
15353 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
15354 "features/s390x-linux64.c".
15355 (_initialize_s390_linux_tdep): Remove initialization of tdescs
15356 s390_linux32 and s390x_linux64.
15357 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
15359 * s390-tdep.c: Include "features/s390-linux32.c" and
15360 "features/s390x-linux64.c".
15361 (s390_tdesc_valid): Add check for tdesc_has_registers.
15362 (s390_gdbarch_init): Make sure there is always a valid tdesc.
15363 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
15364 tdesc_s390x_linux64.
15365 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
15366 tdesc_s390x_linux64 to...
15367 * s390-tdep.h: ...here.
15369 2018-01-30 Pedro Alves <palves@redhat.com>
15372 * config.in, configure: Regenerate.
15373 * configure.ac: Check for getpgid.
15374 * go32-nat.c (go32_pass_ctrlc): New.
15375 (go32_target): Install it.
15376 * inf-child.c (inf_child_target): Install
15377 child_terminal_save_inferior, child_pass_ctrlc and
15379 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
15380 (inf_ptrace_target): No longer install it.
15381 * infcmd.c (interrupt_target_1): Adjust.
15382 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
15383 (child_interrupt): Declare.
15384 (inferior::terminal_state): New.
15385 * inflow.c (struct terminal_info): Update comments.
15386 (inferior_process_group): Delete.
15387 (terminal_is_ours): Delete.
15388 (gdb_tty_state): New.
15389 (child_terminal_init): Adjust.
15390 (is_gdb_terminal, sharing_input_terminal_1)
15391 (sharing_input_terminal): New functions.
15392 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
15393 Set the process's actual process group in the foreground if
15394 possible. Handle is_ours_for_output/is_ours distinction. Don't
15395 mark terminal as the inferior's if not sharing GDB's terminal.
15396 Don't check attach_flag.
15397 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
15398 pass down a target_terminal_state.
15399 (child_terminal_save_inferior): New, factored out from ...
15400 (child_terminal_ours_1): ... this. Handle
15401 target_terminal_state::is_ours_for_output.
15402 (child_interrupt, child_pass_ctrlc): New.
15403 (inflow_inferior_exit): Clear the inferior's terminal_state.
15404 (copy_terminal_info): Copy the inferior's terminal state.
15405 (_initialize_inflow): Remove reference to terminal_is_ours.
15406 * inflow.h (inferior_process_group): Delete.
15407 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
15408 * procfs.c (procfs_target): Don't install procfs_interrupt.
15409 (procfs_interrupt): Delete.
15410 * remote.c (remote_serial_quit_handler): Adjust.
15411 (remote_interrupt): Remove ptid parameter. Adjust.
15412 * target-delegates.c: Regenerate.
15413 * target.c: Include "terminal.h".
15414 (target_terminal::terminal_state): Rename to ...
15415 (target_terminal::m_terminal_state): ... this.
15416 (target_terminal::init): Adjust.
15417 (target_terminal::inferior): Adjust to per-inferior
15419 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
15420 (target_terminal::ours, target_terminal::ours_for_output): Use
15421 target_terminal_is_ours_kind.
15422 (target_interrupt): Remove ptid parameter. Adjust.
15423 (default_target_pass_ctrlc): Adjust.
15424 * target.h (target_ops::to_terminal_save_inferior): New field.
15425 (target_ops::to_interrupt): Remove ptid_t parameter.
15426 (target_interrupt): Remove ptid_t parameter. Update comment.
15427 (target_pass_ctrlc): Update comment.
15428 * target/target.h (target_terminal_state): New scoped enum,
15429 factored out of ...
15430 (target_terminal::terminal_state): ... here.
15431 (target_terminal::inferior): Update comments.
15432 (target_terminal::restore_inferior): New.
15433 (target_terminal::is_inferior, target_terminal::is_ours)
15434 (target_terminal::is_ours_for_output): Adjust.
15435 (target_terminal::scoped_restore_terminal_state): Adjust to
15436 rename, and call restore_inferior() instead of inferior().
15437 (target_terminal::scoped_restore_terminal_state::m_state): Change
15439 (target_terminal::terminal_state): Rename to ...
15440 (target_terminal::m_terminal_state): ... this and change type.
15442 2018-01-30 Pedro Alves <palves@redhat.com>
15444 * linux-nat.c (wait_for_signal): New function.
15445 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
15447 (async_terminal_is_ours)
15448 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
15449 (linux_nat_add_target): Don't override
15450 to_terminal_inferior/to_terminal_ours.
15452 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
15454 * remote.c (remote_follow_fork): Don't call "detach_inferior".
15456 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
15458 * dwarf2read.c (free_dwo_files): Add forward-declaration.
15459 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
15460 dwarf2_per_objfile_free here.
15461 (dwarf2_per_objfile_free): Remove.
15462 (_initialize_dwarf2_read): Don't register
15463 dwarf2_per_objfile_free as a registry cleanup.
15465 2018-01-27 Eli Zaretskii <eliz@gnu.org>
15467 Avoid compilation errors in MinGW native builds
15469 The error is triggered by including python-internal.h, and the
15472 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
15473 from build-gnulib/import/math.h:27,
15474 from d:/usr/Python26/include/pyport.h:235,
15475 from d:/usr/Python26/include/Python.h:58,
15476 from python/python-internal.h:94,
15477 from python/py-arch.c:24:
15478 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
15482 This happens because Python headers define 'hypot' to expand t
15483 '_hypot' in the Windows builds.
15484 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
15485 'hypoth'. This avoids a compilation error.
15487 2018-01-26 Alan Hayward <alan.hayward@arm.com>
15489 * MAINTAINERS (Write After Approval): Fix ordering.
15491 2018-01-26 Alan Hayward <alan.hayward@arm.com>
15493 * MAINTAINERS (Write After Approval): Add Alan Hayward.
15495 2018-01-26 Alan Modra <amodra@gmail.com>
15497 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
15498 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
15499 Remove nop. Make const. Comment.
15500 (powerpc32_plt_stub_so_2): New.
15501 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
15502 Correct count. Update uses.
15503 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
15504 Move common code reading PLT entry word. Correct
15505 powerpc32_plt_stub PLT address calculation.
15506 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
15507 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
15508 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
15509 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
15510 (ppc64_standard_linkage8): Likewise.
15511 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
15512 Correct insns description.
15513 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
15515 2018-01-24 Pedro Alves <palves@redhat.com>
15517 GCC PR libstdc++/83906
15518 * gdbtypes.c (operator==(const dynamic_prop &,
15519 const dynamic_prop &)): New.
15520 (operator==(const range_bounds &, const range_bounds &)): New.
15521 (check_types_equal): Use them instead of memcmp.
15522 * gdbtypes.h (operator==(const dynamic_prop &,
15523 const dynamic_prop &)): Declare.
15524 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
15525 (operator==(const range_bounds &, const range_bounds &)): Declare.
15526 (operator!=(const range_bounds &, const range_bounds &)): Declare.
15528 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15530 * s390-linux-tdep.c (s390_record_address_mask)
15531 (s390_record_calc_disp_common, s390_record_calc_disp)
15532 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15533 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15534 (s390_process_record): Move to s390-tdep.c.
15535 (s390_linux_init_abi_any): Adjust.
15536 * s390-tdep.c (s390_record_address_mask)
15537 (s390_record_calc_disp_common, s390_record_calc_disp)
15538 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
15539 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
15540 (s390_process_record): Moved from s390-linux-tdep.c
15541 (s390_gdbarch_init): Adjust.
15543 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15545 * s390-linux-nat.c (s390-tdep.h): New include.
15546 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
15547 (HFILES_NO_SRCDIR): Add s390-tdep.h.
15548 (ALLDEPFILES): Add s390-tdep.c.
15549 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
15550 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
15551 * s390-tdep.h: ...this. New file.
15552 * s390-linux-tdep.c (s390-tdep.h): New include.
15553 (_initialize_s390_tdep): Rename to...
15554 (_initialize_s390_linux_tdep): ...this and adjust.
15555 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
15556 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
15558 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
15559 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
15560 (s390_is_partial_instruction, s390_software_single_step)
15561 (is_non_branch_ril, s390_displaced_step_copy_insn)
15562 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
15563 (s390_prologue_data, s390_addr, s390_store, s390_load)
15564 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
15565 (s390_register_call_saved, s390_guess_tracepoint_registers)
15566 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
15567 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
15568 (s390_pseudo_register_name, s390_pseudo_register_type)
15569 (s390_pseudo_register_read, s390_pseudo_register_write)
15570 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
15571 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
15572 (s390_addr_bits_remove, s390_address_class_type_flags)
15573 (s390_address_class_type_flags_to_name)
15574 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
15575 (s390_function_arg_float, s390_function_arg_vector)
15576 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
15577 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
15578 (s390_frame_align, s390_register_return_value, s390_return_value)
15579 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
15580 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
15581 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
15582 (s390_trad_frame_prev_register, s390_unwind_cache)
15583 (s390_prologue_frame_unwind_cache)
15584 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
15585 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
15586 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
15587 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
15588 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
15589 (s390_frame_base_address, s390_local_base_address)
15590 (s390_frame_base, s390_gcc_target_options)
15591 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
15592 (s390_validate_reg_range, s390_tdesc_valid)
15593 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
15594 * s390-tdep.c: ...this. New file.
15596 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15598 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
15599 (s390_process_record, s390_gdbarch_tdep_alloc)
15600 (s390_linux_init_abi_any): Use/set new hook.
15602 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15604 * s390-linux-tdep.c (osabi.h): New include.
15605 (s390_linux_init_abi_31, s390_linux_init_abi_64)
15606 (s390_linux_init_abi_any): New functions.
15607 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
15609 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15611 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
15612 tdesc_has_registers check
15614 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15616 * s390-linux-tdep.c (s390_tdesc_valid): New function.
15617 (s390_validate_reg_range): New macro.
15618 (s390_gdbarch_init): Adjust.
15620 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15622 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
15623 (s390_gdbarch_tdep_alloc): Adjust.
15624 (s390_gdbarch_init): Adjust.
15626 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15628 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
15629 <have_tdb>: Change type to bool.
15630 (s390_gdbarch_tdep_alloc): Adjust.
15631 (s390_gdbarch_init): Adjust.
15633 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15635 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
15636 (gdbarch_tdep) <have_upper, have_vx>: New fields.
15637 (s390_gdbarch_tdep_alloc): New function.
15638 (s390_gdbarch_init): Allocate tdep at start and use its fields
15639 instead of separate variables.
15641 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15643 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
15644 when looking for cached gdbarch and add comment for remaining.
15646 2018-01-22 Pedro Alves <palves@redhat.com>
15647 Sergio Durigan Junior <sergiodj@redhat.com>
15649 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
15652 2018-01-22 Maciej W. Rozycki <macro@mips.com>
15654 * MAINTAINERS: Update my company e-mail address.
15656 2018-01-22 Yao Qi <yao.qi@linaro.org>
15658 * regcache.c (cooked_write_test): New function.
15659 (_initialize_regcache): Register the test.
15661 2018-01-22 Yao Qi <yao.qi@linaro.org>
15663 * ia64-tdep.c (ia64_pseudo_register_read): Call
15664 regcache->cooked_read instead of regcache_cooked_read_unsigned.
15665 * m32c-tdep.c (m32c_cat_read): Likewise.
15666 (m32c_r3r2r1r0_read): Likewise.
15667 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
15668 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
15670 2018-01-22 Yao Qi <yao.qi@linaro.org>
15672 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
15673 method raw_read instead of regcache_raw_read.
15674 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
15675 * arm-tdep.c (arm_neon_quad_read): Likewise.
15676 * avr-tdep.c (avr_pseudo_register_read): Likewise.
15677 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
15678 * frv-tdep.c (frv_pseudo_register_read): Likewise.
15679 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
15680 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
15681 (i386_pseudo_register_read_into_value): Likewise.
15682 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
15683 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
15684 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
15685 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
15686 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
15687 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
15688 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
15689 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
15690 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
15692 2018-01-22 Yao Qi <yao.qi@linaro.org>
15694 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
15695 * configure.tgt: Remove target mt.
15696 * mt-tdep.c: Remove.
15697 * regcache.c (cooked_read_test): Remove the check for mt.
15699 2018-01-22 Yao Qi <yao.qi@linaro.org>
15701 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
15702 instead of gdbarch_pseudo_register_read_value.
15704 2018-01-22 Joel Brobecker <brobecker@adacore.com>
15706 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
15709 2018-01-22 Joel Brobecker <brobecker@adacore.com>
15711 * linespec.c (create_sals_line_offset): Remove code that preserved
15712 the symtab_and_line's line number.
15714 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15716 * varobj.c (varobj_create): Don't set valid_block when creating a
15719 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15721 * varobj.c (varobj_create): Remove out of date comment.
15723 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15726 * ada-exp.y (write_var_from_sym): Pass extra parameter when
15727 updating innermost block.
15728 * parse.c (innermost_block_tracker::update): Take extra type
15729 parameter, and check types match before updating innermost block.
15730 (write_dollar_variable): Update innermost block for registers.
15731 * parser-defs.h (enum innermost_block_tracker_type): New enum.
15732 (innermost_block_tracker::innermost_block_tracker): Initialise
15734 (innermost_block_tracker::reset): Take type parameter.
15735 (innermost_block_tracker::update): Take type parameter, and pass
15736 type through as needed.
15737 (innermost_block_tracker::m_types): New member.
15738 * varobj.c (varobj_create): Pass type when reseting innermost
15741 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15743 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
15744 * ada-lang.c (resolve_subexp): Likewise.
15745 * breakpoint.c (set_breakpoint_condition) Likewise.
15746 (watch_command_1) Likewise.
15747 * c-exp.y (variable): Likewise.
15748 * d-exp.y (PrimaryExpression): Likewise.
15749 * f-exp.y (variable): Likewise.
15750 * go-exp.y (variable): Likewise.
15751 * m2-exp.y (variable): Likewise.
15752 * objfiles.c (objfile::~objfile): Likewise.
15753 * p-exp.y (variable): Likewise.
15754 * parse.c (innermost_block): Change type.
15755 * parser-defs.h (class innermost_block_tracker): New.
15756 (innermost_block): Change to innermost_block_tracker.
15757 * printcmd.c (display_command): Switch to innermost_block API.
15758 (do_one_display): Likewise.
15759 * rust-exp.y (do_one_display): Likewise.
15760 * symfile.c (clear_symtab_users): Likewise.
15761 * varobj.c (varobj_create): Switch to innermost_block API, replace
15762 use of innermost_block with block stored on varobj object.
15764 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15766 * expression.h (innermost_block): Remove declaration.
15767 * varobj.c: Add 'parser-defs.h' include.
15769 2018-01-19 Tom Tromey <tom@tromey.com>
15771 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15772 symbols in the static and global blocks.
15774 2018-01-19 James Clarke <jrtc27@jrtc27.com>
15776 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15777 gdb_ptrace.h, and move including gdb_wait.h ...
15778 * nat/linux-ptrace.h: ... to here.
15780 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15782 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15783 inf_ptrace_detach_success.
15784 (inf_ptrace_detach_success): Add inferior parameter, use it
15785 instead of inferior_ptid, pass it to detach_inferior.
15786 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15788 * inferior.c (detach_inferior): Add overload that takes an
15790 * inferior.h (detach_inferior): Likewise.
15791 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15792 use inferior_ptid, adjust call to inf_ptrace_detach_success.
15793 * linux-thread-db.c (thread_db_detach): Use inf parameter.
15795 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15797 * target.h (struct target_ops) <to_detach>: Add inferior
15799 (target_detach): Likewise.
15800 * target.c (dispose_inferior): Pass inferior down.
15801 (target_detach): Pass inferior down. Assert that it is equal to
15802 the current inferior.
15803 * aix-thread.c (aix_thread_detach): Pass inferior down.
15804 * corefile.c (core_file_command): Pass current_inferior() down.
15805 * corelow.c (core_detach): Add inferior parameter.
15806 * darwin-nat.c (darwin_detach): Likewise.
15807 * gnu-nat.c (gnu_detach): Likewise.
15808 * inf-ptrace.c (inf_ptrace_detach): Likewise.
15809 * infcmd.c (detach_command): Pass current_inferior() down to
15811 * infrun.c (follow_fork_inferior): Pass parent_inf to
15813 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
15815 * linux-nat.c (linux_nat_detach): Add inferior parameter.
15816 * linux-thread-db.c (thread_db_detach): Likewise.
15817 * nto-procfs.c (procfs_detach): Likewise.
15818 * procfs.c (procfs_detach): Likewise.
15819 * record.c (record_detach): Likewise.
15820 * record.h (struct inferior): Forward-declare.
15821 (record_detach): Add inferior parameter.
15822 * remote-sim.c (gdbsim_detach): Likewise.
15823 * remote.c (remote_detach_1): Likewise.
15824 (remote_detach): Likewise.
15825 (extended_remote_detach): Likewise.
15826 * sol-thread.c (sol_thread_detach): Likewise.
15827 * target-debug.h (target_debug_print_inferior_p): New macro.
15828 * target-delegates.c: Re-generate.
15829 * top.c (kill_or_detach): Pass inferior down to target_detach.
15830 * windows-nat.c (windows_detach): Add inferior parameter.
15832 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15834 * target.h (struct target_ops) <to_detach>: Remove args
15836 (target_detach): Likewise.
15837 * target.c (dispose_inferior): Adjust.
15838 (target_detach): Remove args parameter, adjust.
15839 * aix-thread.c (aix_thread_detach): Adjust.
15840 * corefile.c (core_file_command): Adjust.
15841 * corelow.c (core_detach): Adjust.
15842 * darwin-nat.c (darwin_detach): Adjust.
15843 * gnu-nat.c (gnu_detach): Adjust.
15844 * inf-ptrace.c (inf_ptrace_detach): Adjust.
15845 * infcmd.c (detach_command): Adjust
15846 * infrun.c (follow_fork_inferior): Adjust.
15847 (handle_vfork_child_exec_or_exit): Adjust.
15848 * linux-fork.c (linux_fork_detach): Remove args parameter.
15849 * linux-fork.h (linux_fork_detach): Likewise.
15850 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
15851 * linux-thread-db.c (thread_db_detach): Likewise.
15852 * nto-procfs.c (procfs_detach): Likewise.
15853 * procfs.c (procfs_detach): Likewise.
15854 (do_detach): Remove signo parameter.
15855 * record.c (record_detach): Remove args parameter.
15856 * record.h (record_detach): Likewise.
15857 * remote-sim.c (gdbsim_detach): Likewise.
15858 * remote.c (remote_detach_1): Likewise.
15859 (remote_detach): Likewise.
15860 (extended_remote_detach): Likewise.
15861 * sol-thread.c (sol_thread_detach): Likewise.
15862 * target-delegates.c: Re-generate.
15863 * top.c (struct qt_args) <args>: Remove field.
15864 (kill_or_detach): Don't pass args.
15865 (quit_force): Don't set args.
15866 * windows-nat.c (windows_detach): Remove args parameter.
15868 2018-01-19 Yao Qi <yao.qi@linaro.org>
15870 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
15871 (arm_linux_init_abi): Install it.
15873 2018-01-19 Yao Qi <yao.qi@linaro.org>
15875 * osabi.c (gdb_osabi_names): Extend the regexp for
15876 arm-linux-gnueabihf.
15878 2018-01-18 Yao Qi <yao.qi@linaro.org>
15880 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
15882 (abbrev_table::add_abbrev): Update.
15883 (abbrev_table::lookup_abbrev): Update.
15885 2018-01-18 Yao Qi <yao.qi@linaro.org>
15887 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
15889 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15891 * compile/compile.c (compile_to_object): Convert "triplet_rx"
15894 2018-01-17 Tom Tromey <tom@tromey.com>
15896 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
15898 2018-01-17 Tom Tromey <tom@tromey.com>
15900 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
15901 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
15902 (create_array_type_with_stride): Update.
15903 * dwarf2read.c (set_die_type): Update.
15905 2018-01-17 Tom Tromey <tom@tromey.com>
15907 * dwarf2read.c (delayed_method_info): Remove typedef.
15908 (dwarf2_cu::method_info): Now a std::vector.
15909 (add_to_method_list): Update.
15910 (free_delayed_list): Remove.
15911 (compute_delayed_physnames): Update.
15912 (process_full_comp_unit, process_full_type_unit): Clear the method
15913 list. Remove cleanups.
15914 (psymtab_include_file_name): Add name_holder parameter. Use
15915 unique_xmalloc_ptr.
15916 (dwarf_decode_lines): Update.
15918 2018-01-17 Tom Tromey <tom@tromey.com>
15919 Simon Marchi <simon.marchi@ericsson.com>
15921 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
15922 (dwarf2_per_objfile::free_cached_comp_units)
15923 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15924 (init_cutu_and_read_dies_no_follow): Update.
15925 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
15926 (dwarf2_cu::~dwarf2_cu): New.
15927 (free_heap_comp_unit, free_stack_comp_unit): Remove.
15928 (age_cached_comp_units, free_one_cached_comp_unit): Update.
15930 2018-01-17 Tom Tromey <tom@tromey.com>
15931 Simon Marchi <simon.marchi@ericsson.com>
15933 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
15934 (struct die_reader_specs) <abbrev_table>: New member.
15935 (struct abbrev_table): Add constructor.
15936 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
15937 <abbrev_obstack>: Now an auto_obstack.
15938 (abbrev_table_up): New typedef.
15939 (init_cu_die_reader): Add abbrev_table parameter.
15940 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
15941 Add result_dwo_abbrev_table.
15942 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15943 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
15945 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
15947 (skip_children): Update.
15948 (abbrev_table::alloc_abbrev): Rename from
15949 abbrev_table_alloc_abbrev.
15950 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
15951 (abbrev_table::lookup_abbrev): Rename from
15952 abbrev_table_lookup_abbrev.
15953 (abbrev_table_read_table): Return abbrev_table_up.
15954 (abbrev_table_free, abbrev_table_free_cleanup)
15955 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
15956 (load_partial_dies): Update.
15958 2018-01-17 Tom Tromey <tom@tromey.com>
15960 * dwarf2read.c (dwarf2_compute_name): Update comment.
15961 (read_func_scope, read_variable): Update.
15962 (new_symbol): Remove.
15963 (new_symbol_full): Rename to new_symbol.
15965 2018-01-17 Mike Gulick <mgulick@mathworks.com>
15968 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
15969 a warning instead of throwing an error, set section size to 0 and return
15971 * gdb_bfd.h (gdb_bfd_map_section): Update description.
15973 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15975 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
15977 (linux_ptrace_attach_fail_reason_string): Likewise.
15978 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
15980 (linux_ptrace_attach_fail_reason_string): Likewise.
15981 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
15983 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15985 * linux-nat.c (linux_nat_attach): Remove xstrdup.
15987 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
15990 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
15991 checking for fs_base/gs_base fields in struct user_regs_struct.
15992 * configure: Regenerate.
15994 2018-01-17 Yao Qi <yao.qi@linaro.org>
15996 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
15998 (aarch64_linux_init_abi): Install it to gdbarch hook
15999 gcc_target_options.
16001 2018-01-15 Pedro Alves <palves@redhat.com>
16003 * common/signals-state-save-restore.c
16004 (save_original_signals_state): Fix typos.
16006 2017-01-12 Tom Tromey <tom@tromey.com>
16007 Sergio Durigan Junior <sergiodj@redhat.com>
16009 * Makefile.in (install-only): Install gdb-add-index.
16011 2018-01-12 John Baldwin <jhb@FreeBSD.org>
16013 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
16015 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
16017 * infrun.c (keep_going_pass_signal): Clear step-over info when
16018 insert_breakpoints fails.
16020 2018-01-11 Pedro Alves <palves@redhat.com>
16023 * infrun.c (resume): Rename to ...
16024 (resume_1): ... this.
16025 (resume): Reimplement as wrapper around resume_1.
16027 2018-01-11 Pedro Alves <palves@redhat.com>
16030 * remote.c (remote_parse_stop_reply): Default to the last-set
16031 general thread instead of to 'magic_null_ptid'.
16033 2018-01-10 Pedro Alves <palves@redhat.com>
16035 * language.h (language_get_symbol_name_matcher): Rename ...
16036 (get_symbol_name_matcher): ... this.
16037 * language.c (language_get_symbol_name_matcher): Ditto.
16038 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
16041 2018-01-10 Pedro Alves <palves@redhat.com>
16045 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
16046 Adjust to use language_get_symbol_name_matcher instead of
16047 language_defn::la_get_symbol_name_matcher.
16048 * language.c (language_get_symbol_name_matcher): If in Ada mode
16049 and the lookup name is a verbatim match, return Ada's matcher.
16050 * language.h (language_get_symbol_name_matcher): Adjust comment.
16051 (ada_lookup_name_info::verbatim_p):: New method.
16053 2018-01-10 Pedro Alves <palves@redhat.com>
16056 * ada-lang.c (ada_collect_symbol_completion_matches): If the
16057 minsym's language is language_auto or language_cplus, pass down
16058 language_ada instead.
16059 * symtab.c (compare_symbol_name): Don't frob symbol language here.
16061 2018-01-10 Pedro Alves <palves@redhat.com>
16064 * minsyms.c (linkage_name_str): New function.
16065 (iterate_over_minimal_symbols): Use it.
16067 2018-01-09 John Baldwin <jhb@FreeBSD.org>
16069 * NEWS: Document that 'info proc' now works on FreeBSD.
16071 2018-01-09 John Baldwin <jhb@FreeBSD.org>
16073 * configure.ac: Check for kinfo_getfile in libutil.
16074 * configure: Regenerate.
16075 * config.in: Regenerate.
16076 * fbsd-nat.c: Include "fbsd-tdep.h".
16077 (fbsd_fetch_cmdline): New.
16078 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
16079 rather than calling error.
16080 (fbsd_info_proc): New.
16081 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
16082 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
16083 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
16085 2018-01-09 John Baldwin <jhb@FreeBSD.org>
16087 * fbsd-nat.c (struct free_deleter): Remove.
16088 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
16090 2018-01-09 John Baldwin <jhb@FreeBSD.org>
16092 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
16093 NULL for an empty pathname.
16095 2018-01-09 John Baldwin <jhb@FreeBSD.org>
16097 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
16098 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
16099 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
16100 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
16101 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
16102 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
16103 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
16104 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
16105 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
16106 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
16107 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
16108 (fbsd_core_fetch_timeval, fbsd_print_sigset)
16109 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
16110 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
16111 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
16113 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
16115 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
16116 (gnu_xfer_auxv): New function.
16117 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
16118 TARGET_OBJECT_AUXV.
16120 2018-01-08 Yao Qi <yao.qi@linaro.org>
16121 Simon Marchi <simon.marchi@ericsson.com>
16123 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
16125 (COMMON_OBS): Remove selftest.o.
16126 * configure.ac: Append selftest-arch.c and common/selftest.c to
16127 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
16128 * configure: Re-generated.
16129 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
16131 (maintenance_info_selftests): Likewise.
16133 2018-01-08 Xavier Roirand <roirand@adacore.com>
16135 * ada-valprint.c (val_print_packed_array_elements): Use
16136 proper number of elements when printing an array indexed
16137 by an enumeration type.
16139 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16141 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
16142 (dw2_get_file_names_reader): Adjust.
16143 (lookup_dwo_signatured_type): Adjust.
16144 (lookup_dwp_signatured_type): Adjust.
16145 (lookup_signatured_type): Adjust.
16146 (create_type_unit_group): Adjust.
16147 (get_type_unit_group): Adjust.
16148 (process_psymtab_comp_unit_reader): Adjust.
16149 (build_type_psymtabs_reader): Adjust.
16150 (scan_partial_symbols): Adjust.
16151 (add_partial_symbol): Adjust.
16152 (add_partial_subprogram): Adjust.
16153 (peek_die_abbrev): Adjust.
16154 (fixup_go_packaging): Adjust.
16155 (process_imported_unit_die): Adjust.
16156 (dwarf2_compute_name): Adjust.
16157 (dwarf2_physname): Adjust.
16158 (read_import_statement): Adjust.
16159 (handle_DW_AT_stmt_list): Adjust.
16160 (read_file_scope): Adjust.
16161 (read_func_scope): Adjust.
16162 (read_lexical_block_scope): Adjust.
16163 (read_call_site_scope): Adjust.
16164 (read_variable): Adjust.
16165 (dwarf2_rnglists_process): Adjust.
16166 (dwarf2_ranges_process): Adjust.
16167 (dwarf2_ranges_read): Adjust.
16168 (dwarf2_get_pc_bounds): Adjust.
16169 (dwarf2_record_block_ranges): Adjust.
16170 (dwarf2_add_field): Adjust.
16171 (dwarf2_add_member_fn): Adjust.
16172 (read_structure_type): Adjust.
16173 (process_structure_scope): Adjust.
16174 (read_enumeration_type): Adjust.
16175 (read_array_type): Adjust.
16176 (mark_common_block_symbol_computed): Adjust.
16177 (read_common_block): Adjust.
16178 (read_namespace_type): Adjust.
16179 (read_namespace): Adjust.
16180 (read_module_type): Adjust.
16181 (read_tag_pointer_type): Adjust.
16182 (read_tag_ptr_to_member_type): Adjust.
16183 (read_tag_string_type): Adjust.
16184 (read_subroutine_type): Adjust.
16185 (read_typedef): Adjust.
16186 (read_base_type): Adjust.
16187 (attr_to_dynamic_prop): Adjust.
16188 (read_subrange_type): Adjust.
16189 (read_unspecified_type): Adjust.
16190 (dwarf2_read_abbrevs): Adjust.
16191 (load_partial_dies): Adjust.
16192 (read_partial_die): Adjust.
16193 (find_partial_die): Adjust.
16194 (guess_partial_die_structure_name): Adjust.
16195 (fixup_partial_die): Adjust.
16196 (read_attribute_value): Adjust.
16197 (read_addr_index): Adjust.
16198 (read_addr_index_from_leb128): Adjust.
16199 (read_str_index): Adjust.
16200 (dwarf2_string_attr): Adjust.
16201 (get_debug_line_section): Adjust.
16202 (dwarf_decode_line_header): Adjust.
16203 (lnp_state_machine::check_line_address): Adjust.
16204 (dwarf_decode_lines_1): Adjust.
16205 (dwarf_decode_lines): Adjust.
16206 (dwarf2_start_symtab): Adjust.
16207 (var_decode_location): Adjust.
16208 (new_symbol_full): Adjust.
16209 (dwarf2_const_value_data): Adjust.
16210 (dwarf2_const_value_attr): Adjust.
16211 (dwarf2_const_value): Adjust.
16212 (die_type): Adjust.
16213 (die_containing_type): Adjust.
16214 (build_error_marker_type): Adjust.
16215 (lookup_die_type): Adjust.
16216 (guess_full_die_structure_name): Adjust.
16217 (anonymous_struct_prefix): Adjust.
16218 (determine_prefix): Adjust.
16219 (dwarf2_name): Adjust.
16220 (follow_die_ref_or_sig): Adjust.
16221 (follow_die_offset): Adjust.
16222 (follow_die_ref): Adjust.
16223 (follow_die_sig_1): Adjust.
16224 (follow_die_sig): Adjust.
16225 (get_signatured_type): Adjust.
16226 (get_DW_AT_signature_type): Adjust.
16227 (decode_locdesc): Adjust.
16228 (dwarf_decode_macros): Adjust.
16229 (cu_debug_loc_section): Adjust.
16230 (fill_in_loclist_baton): Adjust.
16231 (dwarf2_symbol_mark_computed): Adjust.
16232 (init_one_comp_unit): Don't assign
16233 dwarf2_cu::dwarf2_per_objfile.
16234 (set_die_type): Adjust.
16236 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16238 * dwarf2read.c (struct mapped_debug_names): Add constructor.
16239 <dwarf2_per_objfile>: New field.
16240 (dwarf2_per_objfile): Remove global.
16241 (get_dwarf2_per_objfile): New function.
16242 (set_dwarf2_per_objfile): New function.
16243 (dwarf2_build_psymtabs_hard): Change objfile parameter to
16244 dwarf2_per_objfile.
16245 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16246 (read_abbrev_offset): Likewise.
16247 (read_indirect_string): Likewise.
16248 (read_indirect_line_string): Likewise.
16249 (read_indirect_string_at_offset): Likewise.
16250 (read_indirect_string_from_dwz): Likewise.
16251 (dwarf2_find_containing_comp_unit): Change objfile parameter to
16252 dwarf2_per_objfile.
16253 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16254 (create_all_comp_units): Change objfile parameter to
16255 dwarf2_per_objfile.
16256 (create_all_type_units): Likewise.
16257 (process_queue): Add dwarf2_per_objfile parameter.
16258 (read_and_check_comp_unit_head): Likewise.
16259 (lookup_dwo_unit_in_dwp): Likewise.
16260 (get_dwp_file): Likewise.
16261 (process_cu_includes): Likewise.
16262 (struct free_dwo_file_cleanup_data): New struct.
16263 (dwarf2_has_info): Use get_dwarf2_per_objfile and
16264 set_dwarf2_per_objfile.
16265 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
16266 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
16267 context, adjust calls.
16268 (dw2_instantiate_symtab): Likewise.
16269 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
16270 (dw2_get_cu): Likewise.
16271 (create_cu_from_index_list): Change objfile parameter to
16272 dwarf2_per_objfile.
16273 (create_cus_from_index_list): Get dwarf2_per_objfile from
16274 context, adjust calls.
16275 (create_cus_from_index): Likewise.
16276 (create_signatured_type_table_from_index): Change objfile
16277 parameter to dwarf2_per_objfile.
16278 (create_signatured_type_table_from_debug_names): Change objfile
16279 parameter to dwarf2_per_objfile.
16280 (create_addrmap_from_index): Likewise.
16281 (create_addrmap_from_aranges): Likewise.
16282 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
16283 (dw2_setup): Remove.
16284 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
16286 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
16287 get_dwarf2_per_objfile.
16288 (dw2_forget_cached_source_info): Likewise.
16289 (dw2_map_symtabs_matching_filename): Likewise.
16290 (struct dw2_symtab_iterator) <index>: Remove.
16291 <dwarf2_per_objfile>: New field.
16292 (dw2_symtab_iter_init): Replace index parameter with
16293 dwarf2_per_objfile.
16294 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
16295 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
16296 (dw2_print_stats): Likewise.
16297 (dw2_dump): Likewise.
16298 (dw2_expand_symtabs_for_function): Likewise.
16299 (dw2_expand_all_symtabs): Likewise.
16300 (dw2_expand_symtabs_with_fullname): Likewise.
16301 (dw2_expand_marked_cus): Replace index and objfile parameters
16302 with dwarf2_per_objfile.
16303 (dw_expand_symtabs_matching_file_matcher): Add
16304 dwarf2_per_objfile parameter and adjust calls.
16305 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
16307 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
16308 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
16310 (create_cus_from_debug_names_list): Replace objfile parameter
16311 with dwarf2_per_objfile and adjust calls.
16312 (create_cus_from_debug_names): Likewise.
16313 (dwarf2_read_debug_names): Likewise.
16314 (mapped_debug_names::namei_to_name): Adjust call.
16315 (dw2_debug_names_iterator::next): Likewise.
16316 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
16317 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
16318 (dw2_debug_names_dump): Likewise.
16319 (dw2_debug_names_expand_symtabs_for_function): Likewise.
16320 (dw2_debug_names_expand_symtabs_matching): Likewise.
16321 (dwarf2_initialize_objfile): Likewise.
16322 (dwarf2_build_psymtabs): Likewise.
16323 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
16325 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
16326 (read_and_check_comp_unit_head): Likewise.
16327 (read_abbrev_offset): Likewise.
16328 (create_debug_type_hash_table): Likewise.
16329 (create_debug_types_hash_table): Likewise.
16330 (create_all_type_units): Replace objfile parameter with
16331 dwarf2_per_objfile.
16332 (add_type_unit): Add dwarf2_per_objfile parameter.
16333 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
16334 with dwarf2_per_objfile.
16335 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
16336 (lookup_dwp_signatured_type): Likewise.
16337 (lookup_signatured_type): Likewise.
16338 (read_cutu_die_from_dwo): Likewise.
16339 (init_tu_and_read_dwo_dies): Likewise.
16340 (init_cutu_and_read_dies): Likewise.
16341 (init_cutu_and_read_dies_no_follow): Likewise.
16342 (allocate_type_unit_groups_table): Add objfile parameter.
16343 (create_type_unit_group): Use dwarf2_per_objfile from cu.
16344 (get_type_unit_group): Likewise.
16345 (process_psymtab_comp_unit): Update call.
16346 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
16347 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
16348 (print_tu_stats): Likewise.
16349 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
16350 in void* parameter.
16351 (build_type_psymtabs): Change objfile parameter to
16352 dwarf2_per_objfile.
16353 (process_skeletonless_type_unit): Use dwarf2_per_objfile
16354 passed in void* parameter.
16355 (process_skeletonless_type_units): Change objfile parameter to
16356 dwarf2_per_objfile.
16357 (set_partial_user): Likewise.
16358 (dwarf2_build_psymtabs_hard): Likewise.
16359 (read_comp_units_from_section): Likewise.
16360 (create_all_comp_units): Likewise.
16361 (scan_partial_symbols): Update calls.
16362 (add_partial_symbol): Likewise.
16363 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
16364 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
16365 (process_queue): Add dwarf2_per_objfile parameter.
16366 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
16367 (compute_compunit_symtab_includes): Likewise.
16368 (process_cu_includes): Add dwarf2_per_objfile parameter.
16369 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
16370 (process_full_type_unit): Likewise.
16371 (process_imported_unit_die): Update call.
16372 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
16373 (read_file_scope): Likewise.
16374 (allocate_dwo_file_hash_table): Add objfile parameter.
16375 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
16376 (create_cus_hash_table): Likewise.
16377 (create_dwp_hash_table): Likewise.
16378 (create_dwo_unit_in_dwp_v1): Likewise.
16379 (create_dwp_v2_section): Likewise.
16380 (create_dwo_unit_in_dwp_v2): Likewise.
16381 (lookup_dwo_unit_in_dwp): Likewise.
16382 (try_open_dwop_file): Likewise.
16383 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
16384 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
16385 cleanup to include a reference to dwarf2_per_objfile.
16386 (open_dwp_file): Add dwarf2_per_objfile parameter.
16387 (open_and_init_dwp_file): Likewise.
16388 (get_dwp_file): Likewise.
16389 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
16390 (queue_and_load_all_dwo_tus): Update call.
16391 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
16393 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
16394 (dwarf2_ranges_process): Likewise.
16395 (dwarf2_get_pc_bounds): Likewise.
16396 (mark_common_block_symbol_computed): Likewise.
16397 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
16398 (dwarf2_read_abbrevs): Update call.
16399 (read_partial_die): Use dwarf2_per_objfile from cu.
16400 (find_partial_die): Likewise.
16401 (fixup_partial_die): Likewise.
16402 (read_attribute_value): Likewise.
16403 (read_indirect_string_at_offset_from): Add objfile parameter.
16404 (read_indirect_string_at_offset): Add dwarf2_per_objfile
16406 (read_indirect_string_from_dwz): Add objfile parameter.
16407 (read_indirect_string): Add objfile parameter.
16408 (read_addr_index_1): Add dwarf2_per_objfile parameter.
16409 (read_addr_index): Use dwarf2_per_objfile from cu.
16410 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
16412 (read_str_index): Use dwarf2_per_objfile from cu.
16413 (get_debug_line_section): Likewise.
16414 (read_formatted_entries): Add dwarf2_per_objfile parameter.
16415 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
16416 (new_symbol_full): Use dwarf2_per_objfile from cu.
16417 (build_error_marker_type): Likewise.
16418 (lookup_die_type): Likewise.
16419 (determine_prefix): Likewise.
16420 (follow_die_offset): Likewise.
16421 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
16422 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
16423 (dwarf2_fetch_die_type_sect_off): Likewise.
16424 (dwarf2_get_die_type): Likewise.
16425 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
16426 (get_signatured_type): Likewise.
16427 (get_DW_AT_signature_type): Likewise.
16428 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
16429 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
16430 (cu_debug_loc_section): Likewise.
16431 (fill_in_loclist_baton): Likewise.
16432 (dwarf2_symbol_mark_computed): Likewise.
16433 (dwarf2_find_containing_comp_unit): Change objfile parameter to
16434 dwarf2_per_objfile.
16435 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
16437 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
16438 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
16439 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
16440 (set_die_type): Use dwarf2_free_objfile from cu.
16441 (get_die_type_at_offset): Likewise.
16442 (dwarf2_per_objfile_free): Don't assign global variable.
16443 (debug_names) <constructor>: Add dwarf2_per_objfile
16444 parameter, update m_debugstrlookup construction.
16445 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
16447 <m_dwarf2_per_objfile>: New field.
16448 <lookup>: Use m_dwarf2_per_objfile.
16449 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
16450 (psyms_seen_size): Likewise.
16451 (write_gdbindex): Replace objfile parameter with
16452 dwarf2_per_objfile.
16453 (write_debug_names): Likewise.
16454 (write_psymtabs_to_index): Likewise.
16455 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
16458 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16460 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
16461 <dwarf2_per_objfile>: New field.
16462 (struct dwarf2_per_cu_data) <objfile>: Remove.
16463 <dwarf2_per_objfile>: New field.
16464 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
16466 (create_signatured_type_table_from_index): Likewise.
16467 (create_debug_type_hash_table): Likewise.
16468 (fill_in_sig_entry_from_dwo_entry): Likewise.
16469 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
16470 (create_type_unit_group): Assign dwarf2_per_objfile instead of
16472 (create_partial_symtab): Access objfile through
16473 dwarf2_per_objfile.
16474 (process_psymtab_comp_unit_reader): Likewise.
16475 (read_comp_units_from_section): Likewise.
16476 (scan_partial_symbols): Likewise.
16477 (add_partial_symbol): Likewise.
16478 (add_partial_subprogram): Likewise.
16479 (peek_die_abbrev): Likewise.
16480 (fixup_go_packaging): Likewise.
16481 (process_full_comp_unit): Likewise.
16482 (process_full_type_unit): Likewise.
16483 (process_imported_unit_die): Likewise.
16484 (dwarf2_compute_name): Likewise.
16485 (dwarf2_physname): Likewise.
16486 (read_import_statement): Likewise.
16487 (create_cus_hash_table): Assign dwarf2_physname instead of
16489 (read_func_scope): Access objfile through dwarf2_per_objfile.
16490 (read_lexical_block_scope): Likewise.
16491 (read_call_site_scope): Likewise.
16492 (read_variable): Likewise.
16493 (dwarf2_rnglists_process): Likewise.
16494 (dwarf2_ranges_process): Likewise.
16495 (dwarf2_ranges_read): Likewise.
16496 (dwarf2_record_block_ranges): Likewise.
16497 (dwarf2_add_field): Likewise.
16498 (dwarf2_add_member_fn): Likewise.
16499 (read_structure_type): Likewise.
16500 (process_structure_scope): Likewise.
16501 (read_enumeration_type): Likewise.
16502 (read_array_type): Likewise.
16503 (read_common_block): Likewise.
16504 (read_namespace_type): Likewise.
16505 (read_namespace): Likewise.
16506 (read_module_type): Likewise.
16507 (read_tag_pointer_type): Likewise.
16508 (read_tag_ptr_to_member_type): Likewise.
16509 (read_tag_string_type): Likewise.
16510 (read_subroutine_type): Likewise.
16511 (read_typedef): Likewise.
16512 (read_base_type): Likewise.
16513 (attr_to_dynamic_prop): Likewise.
16514 (read_subrange_type): Likewise.
16515 (read_unspecified_type): Likewise.
16516 (load_partial_dies): Likewise.
16517 (read_partial_die): Likewise.
16518 (find_partial_die): Likewise.
16519 (guess_partial_die_structure_name): Likewise.
16520 (fixup_partial_die): Likewise.
16521 (read_attribute_value): Likewise.
16522 (read_addr_index_from_leb128): Likewise.
16523 (dwarf2_read_addr_index): Likewise.
16524 (dwarf2_string_attr): Likewise.
16525 (lnp_state_machine::check_line_address): Likewise.
16526 (dwarf_decode_lines_1): Likewise.
16527 (dwarf_decode_lines): Likewise.
16528 (dwarf2_start_symtab): Likewise.
16529 (var_decode_location): Likewise.
16530 (new_symbol_full): Likewise.
16531 (dwarf2_const_value_data): Likewise.
16532 (dwarf2_const_value_attr): Likewise.
16533 (dwarf2_const_value): Likewise.
16534 (die_type): Likewise.
16535 (die_containing_type): Likewise.
16536 (lookup_die_type): Likewise.
16537 (guess_full_die_structure_name): Likewise.
16538 (anonymous_struct_prefix): Likewise.
16539 (dwarf2_name): Likewise.
16540 (follow_die_ref_or_sig): Likewise.
16541 (follow_die_offset): Likewise.
16542 (follow_die_ref): Likewise.
16543 (dwarf2_fetch_die_loc_sect_off): Likewise.
16544 (dwarf2_fetch_constant_bytes): Likewise.
16545 (dwarf2_fetch_die_type_sect_off): Likewise.
16546 (dwarf2_get_die_type): Likewise.
16547 (follow_die_sig): Likewise.
16548 (decode_locdesc): Likewise.
16549 (dwarf2_per_cu_objfile): Likewise.
16550 (dwarf2_per_cu_text_offset): Likewise.
16551 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
16553 (set_die_type): Access objfile through
16554 dwarf2_per_objfile.
16556 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
16558 * valprint.c (converted_character_d): Remove typedef.
16559 (DEF_VEC_O (converted_character_d)): Remove.
16560 (count_next_character): Use std::vector.
16561 (print_converted_chars_to_obstack): Likewise.
16562 (generic_printstr): Likewise.
16564 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16566 * xml-support.h (struct gdb_xml_value): Add constructor.
16567 <value>: Change type to unique_xmalloc_ptr.
16568 (gdb_xml_value_s): Remove typedef.
16569 (DEF_VEC_O (gdb_xml_value_s)): Remove.
16570 (gdb_xml_element_start_handler): Change parameter type to
16572 (xml_find_attribute): Likewise.
16573 * xml-support.c (xml_find_attribute): Change parameter type to
16574 std::vector and adjust.
16575 (gdb_xml_values_cleanup): Remove.
16576 (gdb_xml_parser::start_element): Adjust to std::vector.
16577 (xinclude_start_include): Change paraeter type to std::vector
16579 * btrace.c (check_xml_btrace_version): Likewise.
16580 (parse_xml_btrace_block): Likewise.
16581 (parse_xml_btrace_pt_config_cpu): Likewise.
16582 (parse_xml_btrace_pt): Likewise.
16583 (parse_xml_btrace_conf_bts): Likewise.
16584 (parse_xml_btrace_conf_pt): Likewise.
16585 * memory-map.c (memory_map_start_memory): Likewise.
16586 (memory_map_start_property): Likewise.
16587 * osdata.c (osdata_start_osdata): Likewise.
16588 (osdata_start_item): Likewise.
16589 (osdata_start_column): Likewise.
16590 * remote.c (start_thread): Likewise.
16591 * solib-aix.c (library_list_start_library): Likewise.
16592 (library_list_start_list): Likewise.
16593 * solib-svr4.c (library_list_start_library): Likewise.
16594 (svr4_library_list_start_list): Likewise.
16595 * solib-target.c (library_list_start_segment): Likewise.
16596 (library_list_start_section): Likewise.
16597 (library_list_start_library): Likewise.
16598 (library_list_start_list): Likewise.
16599 * tracepoint.c (traceframe_info_start_memory): Likewise.
16600 (traceframe_info_start_tvar): Likewise.
16601 * xml-syscall.c (syscall_start_syscall): Likewise.
16602 * xml-tdesc.c (tdesc_start_target): Likewise.
16603 (tdesc_start_feature): Likewise.
16604 (tdesc_start_reg): Likewise.
16605 (tdesc_start_union): Likewise.
16606 (tdesc_start_struct): Likewise.
16607 (tdesc_start_flags): Likewise.
16608 (tdesc_start_enum): Likewise.
16609 (tdesc_start_field): Likewise.
16610 (tdesc_start_enum_value): Likewise.
16611 (tdesc_start_vector): Likewise.
16613 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16615 * extension.h (struct xmethod_worker) <clone>: Remove.
16616 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
16618 (python_xmethod_worker::clone): Remove.
16619 * valops.c (find_overload_match): Use std::move instead of
16622 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
16624 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
16625 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
16626 <free_xmethod_worker_data>: Remove.
16627 <get_matching_xmethod_workers>: Chance VEC to std::vector.
16628 <get_xmethod_arg_types>: Remove.
16629 <get_xmethod_result_type>: Remove.
16630 <invoke_xmethod>: Remove.
16631 * extension.c (new_xmethod_worker): Remove.
16632 (clone_xmethod_worker): Remove.
16633 (get_matching_xmethod_workers): Return void, pass std::vector by
16635 (get_xmethod_arg_types): Rename to...
16636 (xmethod_worker::get_arg_types): ... this, and adjust.
16637 (get_xmethod_result_type): Rename to...
16638 (xmethod_worker::get_result_type): ... this, and adjust.
16639 (invoke_xmethod): Remove.
16640 (free_xmethod_worker): Remove.
16641 (free_xmethod_worker_vec): Remove.
16642 * extension.h (enum ext_lang_rc): Move here from
16644 (struct xmethod_worker): Add constructor and destructor.
16647 <invoke, clone, do_get_result_type, do_get_arg_types>: New
16648 virtual pure methods.
16649 <get_arg_types, get_result_type>: New methods.
16650 (xmethod_worker_ptr): Remove typedef.
16651 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
16652 (xmethod_worker_vec): Remove typedef.
16653 (xmethod_worker_up): New typedef.
16654 (invoke_xmethod): Remove.
16655 (clone_xmethod_worker): Remove.
16656 (free_xmethod_worker): Remove.
16657 (free_xmethod_worker_vec): Remove.
16658 (get_xmethod_arg_types): Remove.
16659 (get_xmethod_result_type): Remove.
16660 * valops.c (find_method_list): Use std::vector, don't use
16661 intermediate vector.
16662 (value_find_oload_method_list): Use std::vector.
16663 (find_overload_match): Use std::vector.
16664 (find_oload_champ): Use std::vector.
16665 * value.c (value_free): Use operator delete.
16666 (value_of_xmethod): Rename to...
16667 (value_from_xmethod): ... this. Don't assign
16668 xmethod_worker::value, take rvalue-reference.
16669 (result_type_of_xmethod): Adjust.
16670 (call_xmethod): Adjust.
16671 * value.h: Include extension.h.
16672 (struct xmethod_worker): Don't forward-declare.
16673 (value_of_xmethod): Rename to...
16674 (value_from_xmethod): ... this, take rvalue-reference.
16675 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
16676 (struct python_xmethod_worker): ... this, add constructor and
16678 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
16679 (gdbpy_free_xmethod_worker_data): Rename to...
16680 (python_xmethod_worker::~python_xmethod_worker): ... this and
16682 (gdbpy_clone_xmethod_worker_data): Rename to...
16683 (python_xmethod_worker::clone): ... this and adjust.
16684 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
16686 (gdbpy_get_xmethod_arg_types): Rename to...
16687 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
16688 (gdbpy_get_xmethod_result_type): Rename to...
16689 (python_xmethod_worker::do_get_result_type): ... this and
16691 (gdbpy_invoke_xmethod): Rename to...
16692 (python_xmethod_worker::invoke): ... this and adjust.
16693 (new_python_xmethod_worker): Rename to...
16694 (python_xmethod_worker::python_xmethod_worker): ... this and
16696 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
16698 (gdbpy_free_xmethod_worker_data): Remove.
16699 (gdbpy_get_matching_xmethod_workers): Use std::vector.
16700 (gdbpy_get_xmethod_arg_types): Remove.
16701 (gdbpy_get_xmethod_result_type): Remove.
16702 (gdbpy_invoke_xmethod): Remove.
16703 * python/python.c (python_extension_ops): Remove obsolete
16706 2018-01-05 Pedro Alves <palves@redhat.com>
16709 * common/signals-state-save-restore.c
16710 (save_original_signals_state): New parameter 'quiet'. Warn if we
16711 find a custom handler preinstalled, instead of internal erroring.
16712 But only warn if !quiet.
16713 * common/signals-state-save-restore.h
16714 (save_original_signals_state): New parameter 'quiet'.
16715 * main.c (captured_main_1): Move save_original_signals_state call
16716 after option handling, and pass QUIET.
16718 2018-01-05 Pedro Alves <palves@redhat.com>
16720 * spu-tdep.c (spu_catch_start): Pass
16721 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
16723 2018-01-05 Pedro Alves <palves@redhat.com>
16726 * ada-lang.c (literal_symbol_name_matcher): New function.
16727 (ada_get_symbol_name_matcher): Use it for
16728 symbol_name_match_type::SEARCH_NAME.
16729 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
16730 it down instead of assuming symbol_name_match_type::FULL.
16731 * block.h (block_lookup_symbol): New parameter 'match_type'.
16732 * c-valprint.c (print_unpacked_pointer): Use
16733 lookup_symbol_search_name instead of lookup_symbol.
16734 * compile/compile-object-load.c (get_out_value_type): Pass down
16735 symbol_name_match_type::SEARCH_NAME.
16736 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
16737 symbol_name_match_type::FULL.
16738 * cp-support.c (cp_get_symbol_name_matcher): Handle
16739 symbol_name_match_type::SEARCH_NAME.
16740 * infrun.c (insert_exception_resume_breakpoint): Use
16741 lookup_symbol_search_name.
16742 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
16743 * psymtab.c (maintenance_check_psymtabs): Use
16744 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
16745 * stack.c (print_frame_args): Use lookup_symbol_search_name and
16746 SYMBOL_SEARCH_NAME.
16747 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
16748 if symbol_name_match_type::SEARCH_NAME.
16749 (lookup_symbol_in_language): Pass down
16750 symbol_name_match_type::FULL.
16751 (lookup_symbol_search_name): New.
16752 (lookup_language_this): Pass down
16753 symbol_name_match_type::SEARCH_NAME.
16754 (lookup_symbol_aux, lookup_local_symbol): New parameter
16755 'match_type'. Pass it down.
16756 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
16757 (lookup_symbol_search_name): New declaration.
16758 (lookup_symbol_in_block): New 'match_type' parameter.
16760 2018-01-05 Pedro Alves <palves@redhat.com>
16763 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
16765 (ada_lookup_symbol): Reimplement in terms of
16766 ada_lookup_symbol_list, bits factored out from
16767 ada_lookup_encoded_symbol.
16769 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16771 * ada-exp.y (write_object_renaming): When subscripting an array
16772 using a symbol as the index, pass the block in call to
16773 ada_lookup_encoded_symbol when looking that symbol up.
16775 2018-01-05 Jerome Guitton <guitton@adacore.com>
16777 * ada-lang.c (ada_array_length): Use ada_index_type instead of
16780 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16782 * ada-lang.c (ada_to_fixed_value_create): Add handling of
16783 the case where VALUE_LVAL (val0) is not lval_memory.
16785 2018-01-05 Xavier Roirand <roirand@adacore.com>
16787 * ada-valprint.c (print_optional_low_bound): Handle
16788 character-indexed array printing like boolean-indexed array
16791 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16793 * NEWS: Create a new section for the next release branch.
16794 Rename the section of the current branch, now that it has
16797 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16799 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
16800 * version.in: Bump version to 8.1.50.DATE-git.
16802 2018-01-03 Xavier Roirand <roirand@adacore.com>
16804 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
16806 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
16808 (default_exception_support_info) <catch_handlers_sym>: Add field.
16809 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
16810 (ada_exception_name_addr_1): Add "catch handlers" handling.
16811 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
16812 Update all callers.
16813 (create_excep_cond_exprs) <ex>: Add parameter.
16814 (re_set_exception): Update create_excep_cond_exprs call.
16815 (print_it_exception, print_one_exception, print_mention_exception)
16816 (print_recreate_exception): Add "catch handler" handling.
16817 (allocate_location_catch_handlers, re_set_catch_handlers)
16818 (check_status_catch_handlers, print_it_catch_handlers)
16819 (print_one_catch_handlers, print_mention_catch_handlers)
16820 (print_recreate_catch_handlers): New function.
16821 (catch_handlers_breakpoint_ops): New variable.
16822 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
16823 Add parameter. Add "catch handler" handling.
16824 (ada_exception_sym_name, ada_exception_breakpoint_ops):
16825 Add "catch handler" handling.
16826 (ada_exception_catchpoint_cond_string): Add "catch handler"
16828 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
16830 (catch_ada_handlers_command): New function.
16831 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
16832 operations structure.
16833 (_initialize_ada_language): Add "catch handlers" command entry.
16834 * NEWS: Document "catch handlers" feature.
16836 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16838 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
16839 account when creating the array type of the slice.
16840 (ada_value_slice): Likewise.
16842 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16844 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
16846 (create_array_type_with_stride): Add byte_stride_prop parameter.
16847 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
16848 New parameter. Update all callers in this file.
16849 (array_type_has_dynamic_stride): New function.
16850 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
16851 of arrays with dynamic byte strides.
16852 * dwarf2read.c (read_array_type): Add support for dynamic
16853 DW_AT_byte_stride attributes.
16855 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16857 * dwarf2read.c (read_unspecified_type): Treat
16858 DW_TAG_enumeration_type DIEs from Ada units as stubs.
16860 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16862 Update copyright year range in all GDB files.
16864 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
16866 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
16867 and gdb/testsuite/gdb.base/step-line.c.
16869 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16871 * copyright.py (main): Dump the contents of
16872 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
16873 even if BY_HAND is empty.
16875 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16877 * top.c (print_gdb_version): Update Copyright year in version
16880 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16882 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
16884 For older changes see ChangeLog-2017.
16890 version-control: never