1 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
3 * completer.c: Add arch-utils.h include.
4 (enum reg_completer_targets): New enum.
5 (reg_or_group_completer_1): New function containing old
6 reg_or_group_completer, add and use new parameter to control what
7 is completed on. Use get_current_arch rather than architecture of
8 currently selected frame.
9 (reg_or_group_completer): Call new reg_or_group_completer_1.
10 (reggroup_completer): Call new reg_or_group_completer_1.
11 * completer.h (reggroup_completer): Add declaration.
12 * tui/tui-regs.c: Add 'completer.h' include.
13 (tui_reg_next_command): Renamed to...
14 (tui_reg_next): ...this. Adjust parameters and return rather than
16 (tui_reg_prev_command): Renamed to...
17 (tui_reg_prev): ...this. Adjust parameters and return rather than
19 (tui_reg_float_command): Delete.
20 (tui_reg_general_command): Delete.
21 (tui_reg_system_command): Delete.
22 (tui_reg_command): Rewrite to perform switching of register group.
25 (tui_reggroup_completer): New function.
26 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
27 creation of 'tui reg' command.
28 * NEWS: Add comment about 'tui reg' changes.
30 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
32 * target.c (target_read): Consider addressable unit size when
33 reading from a memory object.
34 (read_memory_robust): Same.
35 (read_whatever_is_readable): Same.
36 (target_write_with_progress): Consider addressable unit size
37 when writing to a memory object.
38 * target.h (target_read): Update documentation.
39 (target_write): Add documentation.
41 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
43 * arch-utils.h (default_addressable_memory_unit_size): New.
44 * arch-utils.c (default_addressable_memory_unit_size): New.
45 * gdbarch.sh (addressable_memory_unit_size): New.
46 * gdbarch.h: Re-generate.
47 * gdbarch.c: Re-generate.
49 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
51 * target.c (target_read): Rename variables and use
53 (target_read_with_progress): Same.
54 (read_memory_robust): Constify parameters and rename
56 (read_whatever_is_readable): Constify parameters,
57 rename variables, adjust formatting.
58 * target.h (read_memory_robust): Constify parameters.
60 2015-05-12 Ulrich Weigand <uweigand@de.ibm.com>
62 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
63 synthetic (non-AltiVec) vector types.
64 (ppc64_sysv_abi_return_value): Likewise.
66 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
69 * breakpoint.c (create_breakpoint): Save extra_string for
72 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
74 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
75 and bt_mask to CORE_ADDR.
77 2015-06-11 Gary Benson <gbenson@redhat.com>
79 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
80 (mnsh_recv_message): Likewise.
82 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
84 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
85 long long int and plongest instead of %ll.
87 2015-06-11 Gary Benson <gbenson@redhat.com>
89 * nat/linux-namespaces.c (gdb_wait.h): New include.
90 (sys/wait.h): Do not include.
92 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
94 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
97 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
100 * solib-target.c (library_list_start_list): Use explicit NULL
103 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
105 * solib-target.c (library_list_start_list): Do not dereference
106 variable version in its initialization. Make the VERSION check handle
108 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
110 2015-06-10 Gary Benson <gbenson@redhat.com>
112 * NEWS: Announce support for direct access of executable and
113 shared library files when attaching to inferiors in containers
114 on GNU/Linux systems.
116 2015-06-10 Gary Benson <gbenson@redhat.com>
118 * remote.c (struct remote_state) <fs_pid>: New field.
119 (new_remote_state): Initialize the above.
120 (PACKET_vFile_setfs): New enum value.
121 (remote_hostio_set_filesystem): New function.
122 (remote_hostio_open): Call the above.
123 (remote_hostio_unlink): Likewise.
124 (remote_hostio_readlink): Likewise.
125 (_initialize_remote): Register new "set/show remote
126 hostio-setfs-packet" command.
127 * NEWS: Announce new vFile:setfs packet.
129 2015-06-10 Gary Benson <gbenson@redhat.com>
131 * linux-nat.c (nat/linux-namespaces.h): New include.
132 (fileio.h): Likewise.
133 (linux_nat_filesystem_is_local): New function.
134 (linux_nat_fileio_pid_of): Likewise.
135 (linux_nat_fileio_open): Likewise.
136 (linux_nat_fileio_readlink): Likewise.
137 (linux_nat_fileio_unlink): Likewise.
138 (linux_nat_add_target): Initialize to_filesystem_is_local,
139 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
140 (_initialize_linux_nat): New "set/show debug linux-namespaces"
142 * NEWS: Mention new "set/show debug linux-namespaces" commands.
144 2015-06-10 Gary Benson <gbenson@redhat.com>
146 * target.h (struct inferior): New forward declaration.
147 (struct target_ops) <to_filesystem_is_local>: Update comment.
148 (struct target_ops) <to_fileio_open>: New argument inf.
149 Update comment. All implementations updated.
150 (struct target_ops) <to_fileio_unlink>: Likewise.
151 (struct target_ops) <to_fileio_readlink>: Likewise.
152 (target_filesystem_is_local): Update comment.
153 (target_fileio_open): New argument inf. Update comment.
154 (target_fileio_unlink): Likewise.
155 (target_fileio_readlink): Likewise.
156 (target_fileio_read_alloc): Likewise.
157 (target_fileio_read_stralloc): Likewise.
158 * target.c (target_fileio_open): New argument inf.
159 Pass inf to implementation. Update debug printing.
160 (target_fileio_unlink): Likewise.
161 (target_fileio_readlink): Likewise.
162 (target_fileio_read_alloc_1): New argument inf. Pass inf
163 to target_fileio_open.
164 (target_fileio_read_alloc): New argument inf. Pass inf to
165 target_fileio_read_alloc_1.
166 (target_fileio_read_stralloc): Likewise.
167 * gdb_bfd.c (inferior.h): New include.
168 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
169 argument with new argument "inferior". Pass inferior to
171 (gdb_bfd_open): Supply inferior argument to
172 gdb_bfd_iovec_fileio_open.
173 * linux-tdep.c (linux_info_proc): Supply inf argument to
174 relevant target_fileio calls.
175 (linux_find_memory_regions_full): Likewise.
176 (linux_fill_prpsinfo): Likewise.
177 * remote.c (remote_filesystem_is_local): Supply inf
178 argument to remote_hostio_open.
179 (remote_file_put): Likewise.
180 (remote_file_get): Likewise.
181 (remote_file_delete): Supply inf argument to
182 remote_hostio_unlink.
184 2015-06-10 Gary Benson <gbenson@redhat.com>
186 * inf-child.c (inf_child_fileio_open): Replace comment.
187 (inf_child_fileio_pwrite): Likewise.
188 (inf_child_fileio_pread): Likewise.
189 (inf_child_fileio_fstat): Insert blank line before comment.
190 (inf_child_fileio_close): Replace comment.
191 (inf_child_fileio_unlink): Likewise.
192 (inf_child_fileio_readlink): Likewise.
193 * remote.c (remote_hostio_open): Likewise.
194 (remote_hostio_pread): Likewise.
195 (remote_hostio_pwrite): Likewise.
196 (remote_hostio_close): Likewise.
197 (remote_hostio_unlink): Likewise.
198 (remote_hostio_readlink): Likewise.
199 (remote_hostio_fstat): Likewise.
200 (remote_filesystem_is_local): Likewise.
201 * target.c (target_fileio_open): Likewise.
202 (target_fileio_pwrite): Likewise.
203 (target_fileio_pread): Likewise.
204 (target_fileio_fstat): Insert blank line before comment.
205 (target_fileio_close): Replace comment.
206 (target_fileio_unlink): Likewise.
207 (target_fileio_readlink): Likewise.
208 (target_fileio_read_alloc): Likewise.
209 (target_fileio_read_stralloc): Likewise.
211 2015-06-10 Gary Benson <gbenson@redhat.com>
213 * linux-thread-db.c (nat/linux-namespaces.h): New include.
214 (check_pid_namespace_match): Use linux_ns_same rather than
215 linux_proc_pid_get_ns to spot PID namespace mismatches.
216 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
217 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
219 2015-06-10 Gary Benson <gbenson@redhat.com>
221 * configure.ac (AC_CHECK_FUNCS): Add setns.
222 * config.in: Regenerate.
223 * configure: Likewise.
224 * nat/linux-namespaces.h: New file.
225 * nat/linux-namespaces.c: Likewise.
226 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
227 (linux-namespaces.o): New rule.
228 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
229 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
230 * config/arm/linux.mh (NATDEPFILES): Likewise.
231 * config/i386/linux.mh (NATDEPFILES): Likewise.
232 * config/i386/linux64.mh (NATDEPFILES): Likewise.
233 * config/ia64/linux.mh (NATDEPFILES): Likewise.
234 * config/m32r/linux.mh (NATDEPFILES): Likewise.
235 * config/m68k/linux.mh (NATDEPFILES): Likewise.
236 * config/mips/linux.mh (NATDEPFILES): Likewise.
237 * config/pa/linux.mh (NATDEPFILES): Likewise.
238 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
239 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
240 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
241 * config/s390/linux.mh (NATDEPFILES): Likewise.
242 * config/sparc/linux.mh (NATDEPFILES): Likewise.
243 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
244 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
245 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
247 2015-06-10 Gary Benson <gbenson@redhat.com>
249 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
250 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
251 (make_cleanup_close): Likewise.
252 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
253 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
254 (make_cleanup_close): Likewise.
256 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
258 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
259 from SuspendThread().
261 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
263 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
264 from OutputDebugString.
266 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
267 Mircea Gherzan <mircea.gherzan@intel.com>
269 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
270 MPX_BT_MASK_32): New macros.
271 (i386_mpx_set_bounds): New function that implements
272 the command "set-mpx-bound".
273 (i386_mpx_enabled): Helper function to test MPX availability.
274 (i386_mpx_bd_base): Helper function to calculate the base directory
276 (i386_mpx_get_bt_entry): Helper function to access a bound
278 (i386_mpx_print_bounds): Effectively display bound information.
279 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
281 (_initialize_i386_tdep):
282 Add "bound" to the commands "show mpx" and "set mpx" commands.
283 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
284 and "show mpx" commands.
285 * NEWS: List new commands for MPX support.
287 2015-06-09 Gary Benson <gbenson@redhat.com>
289 * common/fileio.h (fileio_to_host_mode): New declaration.
290 * common/fileio.c (fileio_to_host_mode): New Function.
291 * inf-child.c (inf_child_fileio_open): Process mode argument
292 with fileio_to_host_mode.
294 2015-06-09 Gary Benson <gbenson@redhat.com>
296 * common/fileio.c (fileio_mode_pack): Fix preprocessor
299 2015-06-05 Gary Benson <gbenson@redhat.com>
301 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
302 * remote.c (remote_filesystem_is_local): ...here.
304 2015-06-04 Yao Qi <yao.qi@linaro.org>
306 * gdbarch.c: Regenerate it.
308 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
310 * arch-utils.c (default_infcall_munmap): New.
311 * arch-utils.h (default_infcall_munmap): New declaration.
312 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
313 (munmap_list_free, munmap_listp_free_cleanup): New.
314 (struct setup_sections_data): Add field munmap_list_headp.
315 (setup_sections): Call munmap_list_add.
316 (compile_object_load): New variable munmap_list_head, initialize
317 setup_sections_data.munmap_list_headp, return munmap_list_head.
318 * compile/compile-object-load.h (struct munmap_list): New declaration.
319 (struct compile_module): Add field munmap_list_head.
320 (munmap_list_free): New declaration.
321 * compile/compile-object-run.c (struct do_module_cleanup): Add field
323 (do_module_cleanup): Call munmap_list_free.
324 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
325 * gdbarch.c: Regenerate.
326 * gdbarch.h: Regenerate.
327 * gdbarch.sh (infcall_munmap): New.
328 * linux-tdep.c (linux_infcall_munmap): New.
329 (linux_init_abi): Install it.
331 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
334 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
336 2015-06-02 Yao Qi <yao.qi@linaro.org>
338 * i386-linux-nat.c: Include linux-nat.h.
340 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
341 Jan Kratochvil <jan.kratochvil@redhat.com>
344 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
346 * dwarf2loc.c (chain_candidate): Likewise.
348 2015-06-01 Yao Qi <yao.qi@linaro.org>
350 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
351 (store_vfp_regs): Use PTRACE_SETREGSET.
353 2015-06-01 Yao Qi <yao.qi@linaro.org>
355 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
356 (fetch_fpregs): Likewise.
357 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
358 (store_fpregs): Likewise.
360 2015-06-01 Yao Qi <yao.qi@linaro.org>
362 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
363 (fetch_regs): Likewise.
364 (store_regs): Use PTRACE_SETREGSET.
365 (store_register): Likewise.
367 2015-06-01 Yao Qi <yao.qi@linaro.org>
369 * arm-linux-nat.c (arm_linux_read_description): Check whether
370 kernel supports PTRACE_GETREGSET.
372 2015-06-01 Yao Qi <yao.qi@linaro.org>
374 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
375 * linux-nat.c: ... here.
376 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
378 * linux-nat.h: ... here.
380 2015-06-01 Yao Qi <yao.qi@linaro.org>
382 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
383 * i386-linux-nat.c: Likewise.
384 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
385 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
386 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
387 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
388 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
390 2015-05-30 Eli Zaretskii <eliz@gnu.org>
392 * go32-nat.c (go32_xfer_memory): Fix the return value to be
393 compatible to what read_child and write_child return. This
394 unbreaks that DJGPP build of GDB which was broken since v7.7.
396 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
398 * MAINTAINERS (Write After Approval): Add Martin Galvan.
400 2015-05-29 Roland McGrath <mcgrathr@google.com>
403 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
404 rather than internal_error for an unrecognized value.
406 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
408 * xtensa-tdep.c (xtensa_pseudo_register_read)
409 (xtensa_pseudo_register_write): Don't alias last pseudo register
412 2015-05-28 Don Breazeal <donb@codesourcery.com>
414 * infrun.c (follow_fork_inferior): Ensure the use of
415 process-style ptids (pid,0,0) in verbose/debug "Detaching"
418 2015-05-28 Doug Evans <dje@google.com>
420 * dwarf2read.c (record_line_ftype): Remove, duplicate.
422 2015-05-28 Yao Qi <yao.qi@linaro.org>
424 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
425 (arm_linux_fetch_inferior_registers): Use
426 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
427 (arm_linux_store_inferior_registers): Likewise.
428 (arm_linux_read_description): Don't set
429 arm_linux_has_wmmx_registers.
430 * arm-tdep.c (arm_gdbarch_init): Set
431 tdep->have_wmmx_registers according target descriptions.
432 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
435 2015-05-28 Yao Qi <yao.qi@linaro.org>
437 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
438 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
439 instead of arm_linux_vfp_register_count.
440 (store_vfp_regs): Likewise.
441 (arm_linux_fetch_inferior_registers): Likewise.
442 (arm_linux_store_inferior_registers): Likewise.
443 (arm_linux_read_description): Don't set
444 arm_linux_vfp_register_count.
445 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
447 * arm-tdep.c (arm_gdbarch_init): Add assert on
449 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
450 field to vfp_register_count. All users updated.
452 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
454 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
455 ELFOSABI_GNU binaries.
457 2015-05-27 Doug Evans <dje@google.com>
459 * dwarf2read.c (lnp_state_machine): New typedef.
460 (lnp_reader_state): New typedef.
461 (dwarf_record_line_1): Renamed from dwarf_record_line.
463 (dwarf_record_line): New function.
464 (init_lnp_state_machine): New function.
465 (check_line_address): Replace p_record_line parameter with state.
467 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
468 Update to record state in lnp_state_machine.
470 2015-05-27 Doug Evans <dje@google.com>
472 * dwarf2read.c (record_line_ftype): New typedef.
473 (check_line_address): New function.
474 (dwarf_decode_lines_1): Call it.
476 2015-05-27 Doug Evans <dje@google.com>
478 * NEWS: Mention "set debug dwarf-line".
479 * dwarf2read.c (dwarf_line_debug): New static global.
480 (add_include_dir): Add debug dwarf-line support.
481 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
482 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
484 2015-05-27 Doug Evans <dje@google.com>
486 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
488 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
489 * cp-support.h (cp_lookup_nested_symbol): Update.
491 2015-05-27 Doug Evans <dje@google.com>
494 * block.c (block_find_symbol): New function.
495 (block_find_non_opaque_type): Ditto.
496 (block_find_non_opaque_type_preferred): Ditto.
497 * block.h (block_symbol_matcher_ftype): New typedef.
498 (block_find_symbol): Declare.
499 (block_find_non_opaque_type): Ditto.
500 (block_find_non_opaque_type_preferred): Ditto.
501 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
502 * psymtab.c (psym_lookup_symbol): Ditto.
503 * symtab.c (basic_lookup_transparent_type_1): New function.
504 (basic_lookup_transparent_type): Call it.
506 2015-05-27 Yao Qi <yao.qi@linaro.org>
508 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
509 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
511 2015-05-27 Yao Qi <yao.qi@linaro.org>
513 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
515 (aarch64_record_load_store): Likewise.
517 2015-05-26 Doug Evans <dje@google.com>
519 PR c++/18141, c++/18417.
520 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
523 2015-05-26 Doug Evans <dje@google.com>
525 * NEWS: Add entries for command renamings.
526 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
528 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
529 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
531 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
532 All callers updated. Fix spelling of DWARF in help text.
533 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
535 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
537 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
538 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
539 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
541 (show_dwarf_always_disassemble): Renamed from
542 show_dwarf2_always_disassemble. All callers updated.
543 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
544 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
545 "set/show dwarf max-cache-age". Rename
546 "set/show dwarf2 always-disassemble" to
547 "set/show dwarf always-disassemble". Rename
548 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
549 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
551 2015-05-26 Doug Evans <dje@google.com>
554 * python/py-lazy-string.c (stpy_convert_to_value): Use
555 gdbpy_gdb_memory_error not PyExc_MemoryError.
556 (gdbpy_create_lazy_string_object): Ditto.
558 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
560 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
562 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
564 * tui/tui-regs.c (tui_reg_prev_command): New function.
565 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
566 * reggroups.c (reggroup_prev): New function.
567 * reggroups.h (reggroup_prev): Add declaration. Update comment.
569 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
570 Yao Qi <yao.qi@linaro.org>
572 * aarch64-linux-tdep.c: Include linux-record.h and
574 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
575 (aarch64_syscall): New enum.
576 (aarch64_canonicalize_syscall): New function.
577 (aarch64_all_but_pc_registers_record): New function.
578 (aarch64_linux_syscall_record): New function.
579 (aarch64_linux_init_abi): Install AArch64 process record
580 handler. Update to handle syscall recording.
581 * aarch64-tdep.c: Include record.h and record-full.h.
582 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
583 (struct aarch64_mem_r): Define.
584 (aarch64_record_result): New enum.
585 (struct insn_decode_record): Define.
586 (insn_decode_record): New typedef.
587 (aarch64_record_data_proc_reg): New function.
588 (aarch64_record_data_proc_imm): New function.
589 (aarch64_record_branch_except_sys): New function.
590 (aarch64_record_load_store): New function.
591 (aarch64_record_data_proc_simd_fp): New function.
592 (aarch64_record_asimd_load_store): New function.
593 (aarch64_record_decode_insn_handler): New function.
594 (deallocate_reg_mem): New function.
595 (aarch64_process_record): New function.
596 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
598 (aarch64_process_record): New extern declaration.
599 * configure.tgt: Add linux-record.o to gdb_target_obs.
600 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
602 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
604 * NEWS: Add a note on process record-replay support on aarch64*-linux*
607 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
609 * amd64-tdep.c: Replace in_function_epilogue_p with
610 stack_frame_destroyed_p throughout.
611 * arch-utils.c: Ditto.
612 * arch-utils.h: Ditto.
614 * breakpoint.c: Ditto.
616 * hppa-tdep.c: Ditto.
617 * i386-tdep.c: Ditto.
618 * mips-tdep.c: Ditto.
619 * nios2-tdep.c: Ditto.
620 * rs6000-tdep.c: Ditto.
621 * s390-linux-tdep.c: Ditto.
622 * score-tdep.c: Ditto.
624 * sparc-tdep.c: Ditto.
625 * sparc-tdep.h: Ditto.
626 * sparc64-tdep.c: Ditto.
628 * tic6x-tdep.c: Ditto.
629 * tilegx-tdep.c: Ditto.
630 * xstormy16-tdep.c: Ditto.
631 * gdbarch.c, gdbarch.h: Re-generated.
633 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
635 * NEWS: Mention 'tui enable' and 'tui disable'.
636 * tui/tui.c (tui_enable_command): New function.
637 (tui_disable_command): New function.
638 (_initialize_tui): New function.
640 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
642 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
644 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
646 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
649 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
651 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
653 (tui_set_layout_for_display_command): ...here, before calling
654 tui_set_layout. Only set the layout if gdb has not already
655 entered the TUI_FAILURE state.
657 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
659 * tui/tui-layout.c (layout_completer): New function.
660 (_initialize_tui_layout): Set completer on layout command.
662 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
664 * tui/tui-layout.c (tui_set_layout): Remove
665 tui_register_display_type parameter. Remove all checking of this
666 parameter, and reindent function. Update header comment.
667 (tui_set_layout_for_display_command): Rename to...
668 (tui_set_layout_by_name): ...this, and don't check for different
669 register class types, don't pass a tui_register_display_type to
670 tui_set_layout. Update header comment.
671 (layout_names): Remove register set specific names.
672 * tui/tui-layout.h (tui_set_layout): Remove
673 tui_register_display_type parameter.
674 * tui/tui.c (tui_rl_change_windows): Don't pass a
675 tui_register_display_type to tui_set_layout.
676 (tui_rl_delete_other_windows): Likewise.
677 (tui_enable): Likewise.
678 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
679 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
680 (TUI_GENERAL_REGS_NAME): Remove.
681 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
682 (TUI_SPECIAL_REGS_NAME): Remove.
683 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
684 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
685 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
686 (enum tui_register_display_type): Remove.
687 (struct tui_layout_def): Remove regs_display_type and
688 float_regs_display_type fields.
689 (struct tui_data_info): Remove regs_display_type field.
690 (tui_layout_command): Use new name for
691 tui_set_layout_for_display_command.
692 * tui/tui-data.c (layout_def): Don't initialise removed fields.
693 (tui_clear_win_detail): Don't initialise removed fields of
695 * tui/tui-regs.c (tui_show_registers): Use new name for
696 tui_set_layout_for_display_command.
697 * tui/tui.h (tui_set_layout_for_display_command): Rename
699 (tui_set_layout_by_name): ...this.
700 * printcmd.c (display_command): Remove tui related layout call,
703 2015-05-20 Joel Brobecker <brobecker@adacore.com>
705 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
706 (handle_inferior_event): New function.
708 2015-05-20 Joel Brobecker <brobecker@adacore.com>
710 * ada-lang.c (to_fixed_array_type): Rename local variable
711 typename into type_name.
713 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
715 Fix ASAN crash for gdb.compile/compile.exp.
716 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
718 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
720 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
721 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
722 * compile/compile-object-load.c (setup_sections, compile_object_load):
724 * compile/compile.c (compile_to_object): Likewise.
726 2015-05-16 Doug Evans <xdje42@gmail.com>
728 * NEWS: Mention support for unbuffered Guile memory ports.
729 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
730 (ioscm_lseek_address): Improve overflow calculation.
731 (gdbscm_memory_port_fill_input): Add assert.
732 (gdbscm_memory_port_write): Handle unbuffered ports.
733 Handle large writes identical to Guile's fport_write.
734 (gdbscm_memory_port_seek): Fix seeking past end check.
735 (gdbscm_memory_port_close): Handle closing unbuffered port.
736 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
737 (ioscm_init_memory_port): Handle unbuffered ports.
738 (ioscm_reinit_memory_port): Ditto.
739 (ioscm_init_memory_port): Update size calculation.
740 (gdbscm_open_memory): Support zero sized ports.
742 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
744 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
745 variable compiler warnings.
747 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
749 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
751 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
752 Phil Muldoon <pmuldoon@redhat.com>
754 * NEWS (Changes since GDB 7.9): Add compile print.
755 * compile/compile-c-support.c (add_code_header, add_code_footer)
756 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
757 COMPILE_I_PRINT_VALUE_SCOPE.
758 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
759 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
761 * compile/compile-object-load.c: Include block.h.
762 (get_out_value_type): New function.
763 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
764 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
766 * compile/compile-object-load.h (struct compile_module): Add fields
767 out_value_addr and out_value_type.
768 * compile/compile-object-run.c: Include valprint.h and compile.h.
769 (struct do_module_cleanup): Add fields out_value_addr and
771 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
772 COMPILE_I_PRINT_VALUE_SCOPE.
773 (compile_object_run): Propagate out_value_addr and out_value_type.
775 * compile/compile.c: Include valprint.h.
776 (compile_print_value, compile_print_command): New functions.
777 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
778 (_initialize_compile): Update compile code help text. Install
779 compile_print_command.
780 * compile/compile.h (compile_print_value): New prototype.
781 * defs.h (enum compile_i_scope_types): Add
782 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
784 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
786 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
787 Rely on its parameter count.
788 (compile_object_load): Replace lookup_minimal_symbol_text by
789 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
791 * compile/compile-object-load.h (struct compile_module): Replace
792 func_addr by func_sym.
793 * compile/compile-object-run.c: Include block.h.
794 (compile_object_run): Reset module variable after it is freed. Use
795 FUNC_SYM instead of FUNC_ADDR. Rely on it.
797 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
799 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
800 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
801 (c_compute_program): Call generate_register_struct after typedefs.
802 * compile/compile-loc2c.c (push, pushf_register_address)
803 (pushf_register): Cast to GCC_UINTPTR.
804 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
805 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
806 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
807 * compile/compile.c (_initialize_compile): Enable warnings for
810 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
812 * cli/cli-script.c (execute_control_command): Update
813 eval_compile_command caller.
814 * compile/compile-object-load.c (compile_object_load): Add parameters
815 scope and scope_data. Set them.
816 * compile/compile-object-load.h (struct compile_module): Add fields
817 scope and scope_data.
818 (compile_object_load): Add parameters scope and scope_data.
819 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
820 scope and scope_data.
821 (compile_object_run): Propagate the fields scope and scope_data.
822 * compile/compile.c (compile_file_command, compile_code_command):
823 Update eval_compile_command callers.
824 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
825 * compile/compile.h (eval_compile_command): Add parameter scope_data.
826 * defs.h (struct command_line): Add field scope_data.
828 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
830 * printcmd.c (struct format_data): Move it to valprint.h.
831 (print_command_parse_format, print_value): New functions from ...
832 (print_command_1): ... here. Call them.
833 * valprint.h (struct format_data): Move it here from printcmd.c.
834 (print_command_parse_format, print_value): New declarations.
836 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
838 * compile/compile-object-load.c (compile_object_load): Add
839 COMPILE_DEBUG message.
841 2015-05-15 Jerome Guitton <guitton@adacore.com>
843 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
844 index to get element instead of enum value.
845 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
846 of index to compute length, but enum values to compute bounds.
847 (ada_array_length): Use enum position of index instead of enum value.
848 (pos_atr): Move position computation to...
849 (ada_evaluate_subexp): Use enum values to compute bounds.
850 * gdbtypes.c (discrete_position): ...this new function.
851 * gdbtypes.h (discrete_position): New function declaration.
852 * valprint.c (val_print_array_elements): Call discrete_position
853 to handle array indexed by non-contiguous enumeration types.
855 2015-05-15 Jerome Guitton <guitton@adacore.com>
857 * ada-lang.c (find_parallel_type_by_descriptive_type):
858 Go through typedefs during lookup.
859 (to_fixed_array_type): Add support for non-bit packed arrays
860 as variable-length fields.
862 2015-05-15 Pedro Alves <palves@redhat.com>
863 Simon Marchi <simon.marchi@ericsson.com>
865 * event-loop.c (gdb_notifier) <next_file_handler,
866 next_poll_fds_index>: New fields.
867 (get_next_file_handler_to_handle_and_advance): New function.
868 (delete_file_handler): If deleting the next file handler to
869 handle, advance to the next file handler.
870 (gdb_wait_for_event): Bail early if no event fired. Poll file
871 handlers in round-robin fashion.
873 2015-05-15 Pedro Alves <palves@redhat.com>
875 * linux-tdep.c (linux_find_memory_regions_full): Rename local
878 2015-05-15 Pedro Alves <palves@redhat.com>
880 * nat/linux-nat.h: Include "target/waitstatus.h".
882 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
884 * python/py-unwind.c (struct reg_info): Move out of ...
885 (struct cached_frame_info): ... this scope.
886 (pending_frame_object_type, unwind_info_object_type): Make extern.
888 2015-05-15 Joel Brobecker <brobecker@adacore.com>
890 * ada-lang.c (ada_value_primitive_packed_val): Make sure
891 accumSize is never negative.
893 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
895 * tui/tui-command.c: Remove include of <ctype.h>.
896 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
898 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
900 * dwarf2read.c (die_needs_namespace): Return 1 for
901 DW_TAG_inlined_subroutine.
903 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
905 * regcache.c (regcache_cpy_no_passthrough): New declaration.
906 (regcache_cpy_no_passthrough): Make it static, add function comment.
907 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
908 (regcache_cpy_no_passthrough): Remove declaration.
910 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
912 * gdbthread.h (struct thread_control_state): Update comment for
914 * infcall.c (run_inferior_call): Update comment about
916 * infcmd.c (get_return_value): Update comment about stop_registers.
917 (finish_forward): Update comment about proceed_to_finish.
918 * infrun.c (stop_registers): Remove.
919 (clear_proceed_status, normal_stop): Remove stop_registers handling.
920 * infrun.h (stop_registers): Remove.
922 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
924 * infcall.c (struct dummy_frame_context_saver)
925 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
926 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
927 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
929 (call_function_by_hand_dummy): Move discard_cleanups of
930 inf_status_cleanup before dummy_frame_push. Call
931 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
932 Use dummy_frame_context_saver_get_regs instead of stop_registers.
933 * infcall.h (struct dummy_frame_context_saver)
934 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
935 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
937 * infcmd.c: Include infcall.h.
938 (get_return_value): Add parameter ctx_saver, use it instead of
940 (print_return_value): Add parameter ctx_saver, pass it.
941 (struct finish_command_continuation_args): Add field ctx_saver.
942 (finish_command_continuation): Update print_return_value caller.
943 (finish_command_continuation_free_arg): Free also ctx_saver.
944 (finish_forward): Call dummy_frame_context_saver_setup.
945 * inferior.h (struct dummy_frame_context_saver): New declaration.
946 (get_return_value): Add parameter ctx_saver.
947 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
948 get_return_value caller.
950 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
952 * dummy-frame.c (struct dummy_frame_dtor_list): New.
953 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
954 (remove_dummy_frame): Process dtor_list.
955 (pop_dummy_frame): Process dtor_list.
956 (register_dummy_frame_dtor): Maintain dtor_list.
957 (find_dummy_frame_dtor): Handle dtor_list.
958 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
961 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
963 * compile/compile-object-run.c (do_module_cleanup): Add parameter
965 (compile_object_run): Update do_module_cleanup caller.
966 * dummy-frame.c: Include infcall.h.
967 (struct dummy_frame): Update dtor comment.
968 (remove_dummy_frame): Call dtor.
969 (pop_dummy_frame): Update dtor caller.
970 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
973 2015-05-13 Joel Brobecker <brobecker@adacore.com>
977 2015-05-13 Joel Brobecker <brobecker@adacore.com>
979 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
980 Xmethods now being able to specify a result type to that new
983 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
985 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
986 first before resizing the window.
987 * tui/tui.c (tui_enable): Likewise.
989 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
991 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
992 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
993 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
994 dummy_dtor parameter.
995 * infcall.h: Include dummy-frame.h.
996 (call_function_by_hand_dummy_dtor_ftype): Remove.
997 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
1000 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
1003 * top.c (history_size_setshow_var): Change type to signed.
1004 Initialize to -2. Update documentation.
1005 (set_readline_history_size): Define.
1006 (set_history_size_command): Use it. Remove logic for handling
1008 (init_history): Use set_readline_history_size(). Test for a
1009 value of -2 instead of 0 when determining whether to set a
1010 default history size.
1011 (init_main): Decode the argument of the "size" command as a
1012 zuinteger_unlimited.
1014 2015-05-12 Doug Evans <dje@google.com>
1016 * dwarf2read.c (struct file_entry): Tweak comments.
1017 (get_debug_line_section): Tweak comments.
1019 2015-05-12 Don Breazeal <donb@codesourcery.com>
1021 * NEWS: Announce fork support in the RSP and support
1022 for fork debugging in extended mode.
1024 2015-05-12 Don Breazeal <donb@codesourcery.com>
1026 * remote.c (remote_insert_fork_catchpoint): New function.
1027 (remote_remove_fork_catchpoint): New function.
1028 (remote_insert_vfork_catchpoint): New function.
1029 (remote_remove_vfork_catchpoint): New function.
1030 (pending_fork_parent_callback): New function.
1031 (remove_new_fork_child): New function.
1032 (remote_update_thread_list): Call remote_notif_get_pending_events
1033 and remove_new_fork_child.
1034 (extended_remote_kill): Kill fork child when killing the
1035 parent before follow_fork completes.
1036 (init_extended_remote_ops): Initialize target vector with
1037 new fork catchpoint functions.
1039 2015-05-12 Don Breazeal <donb@codesourcery.com>
1041 * remote.c (remove_vfork_event_p): New function.
1042 (remote_follow_fork): Add vfork event type to event checking.
1043 (remote_parse_stop_reply): New stop reasons "vfork" and
1044 "vforkdone" for RSP 'T' Stop Reply Packet.
1046 2015-05-12 Don Breazeal <donb@codesourcery.com>
1048 * linux-nat.c (linux_nat_ptrace_options): New function.
1049 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
1050 Call linux_nat_ptrace_options and use different argument to
1051 linux_enable_event_reporting.
1052 (_initialize_linux_nat): Delete call to
1053 linux_ptrace_set_additional_flags.
1054 * nat/linux-ptrace.c (current_ptrace_options): Rename to
1055 supported_ptrace_options.
1056 (additional_flags): Delete variable.
1057 (linux_check_ptrace_features): Use supported_ptrace_options.
1058 (linux_test_for_tracesysgood, linux_test_for_tracefork):
1059 Likewise, and remove additional_flags check.
1060 (linux_enable_event_reporting): Change 'attached' argument to
1061 'options'. Use supported_ptrace_options.
1062 (ptrace_supports_feature): Change comment. Use
1063 supported_ptrace_options.
1064 (linux_ptrace_set_additional_flags): Delete function.
1065 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1066 Delete function prototype.
1067 * remote.c (remote_fork_event_p): New function.
1068 (remote_detach_pid): New function.
1069 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
1070 if doing detach-on-fork.
1071 (remote_follow_fork): New function.
1072 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
1073 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
1074 (init_extended_remote_ops): Initialize to_follow_fork.
1076 2015-05-12 Don Breazeal <donb@codesourcery.com>
1078 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
1079 from static to extern.
1080 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
1081 * remote.c (anonymous enum): <PACKET_fork_event_feature,
1082 * PACKET_vfork_event_feature>: New enumeration constants.
1083 (remote_protocol_features): Add table entries for new packets.
1084 (remote_query_supported): Add new feature queries to qSupported
1087 2015-05-12 Gary Benson <gbenson@redhat.com>
1089 * remote.c (remote_add_inferior): Call exec_file_locate_attach
1090 for fake PIDs as well as real ones.
1091 (remote_pid_to_exec_file): Send empty annex if PID is fake.
1093 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
1095 * NEWS (Python Scripting): Mention the new gdb.Value methods.
1096 * python/py-value.c (valpy_reference_value): New function.
1097 (valpy_const_value): Likewise.
1098 (value_object_methods): Add new methods.
1099 * value.c (make_cv_value): New function.
1100 * value.h (make_cv_value): Declare.
1102 2015-05-08 Yao Qi <yao@codesourcery.com>
1103 Sandra Loosemore <sandra@codesourcery.com>
1105 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
1106 to 'lh->include_dirs' before accessing to it.
1107 (psymtab_include_file_name): Likewise.
1108 (dwarf_decode_lines_1): Likewise.
1109 (dwarf_decode_lines): Likewise.
1110 (file_file_name): Likewise.
1112 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
1114 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
1115 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
1116 (nios2_linux_rt_sigreturn_init): Adjust base address of
1119 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
1121 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
1122 "trap 31" as the breakpoint instruction on all targets.
1124 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1126 * infcmd.c (print_return_value): Remove unused declaration.
1128 2015-05-08 Joel Brobecker <brobecker@adacore.com>
1130 * dwarf2read.c (attr_to_dynamic_prop)
1131 <DW_AT_data_member_location>: Use read_type_die isntead of
1134 2015-05-08 Joel Brobecker <brobecker@adacore.com>
1136 * ada-lang.c (ada_convert_actual): Add handling of formals
1137 passed inside an aligner type.
1139 2015-05-08 Joel Brobecker <brobecker@adacore.com>
1141 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
1143 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
1146 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
1147 Print xmethod matcher status.
1149 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
1151 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
1152 register in the regcache when treating the PSWM register, and vice
1155 2015-05-07 Gary Benson <gbenson@redhat.com>
1157 * linux-thread-db.c (struct thread_db_info)
1158 <td_ta_map_id2thr_p>: Remove field.
1159 (try_thread_db_load_1): Remove initialization for the above.
1161 2015-05-07 Gary Benson <gbenson@redhat.com>
1163 * linux-thread-db.c (struct thread_db_info)
1164 <td_thr_validate_p>: Remove field.
1165 (try_thread_db_load_1): Remove initialization for the above.
1167 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1169 * compile/compile-object-load.c (compile_object_load): Support
1172 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1174 * compile/compile.c (compile_to_object): Make the cmd_string parameter
1175 const. Use new variables for the const compatibility.
1176 (eval_compile_command): Make the cmd_string parameter const.
1177 * compile/compile.h (eval_compile_command): Make the cmd_string
1180 2015-05-06 Joel Brobecker <brobecker@adacore.com>
1182 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
1184 * top.c (deprecated_init_ui_hook): Delete.
1185 (gdb_init): Remove handling of deprecated_init_ui_hook.
1186 * interps.c (clear_interpreter_hooks): Remove handling of
1187 deprecated_init_ui_hook.
1188 * main.c (captured_main): Update comment.
1190 2015-05-06 Joel Brobecker <brobecker@adacore.com>
1192 * solib.c (_initialize_solib): Add "info dll" alias creation.
1193 * windows-nat.c (set_windows_aliases): Delete.
1194 (_initialize_windows_nat): Remove deprecated_init_ui_hook
1196 * NEWS: Add news entry about "info dll" now being available
1199 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1201 * ada-lang.c (value_assign_to_component): Reformat and improve
1202 documentation. Remove all trailing spaces.
1204 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1206 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1207 Stop counting inlined frames as soon as an out-of-line function
1210 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
1212 * dwarf2read.c (inherit_abstract_dies): Skip
1213 DW_TAG_GNU_call_site dies while inheriting children of an
1214 abstract DIE into a scope.
1215 (read_lexical_block_scope): Inherit abstract DIE's for
1218 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1220 * ada-valprint.c (val_print_packed_array_elements): Delete
1221 variable "len". Add a type-length check when comparing two
1222 consecutive elements of the array. Use the element's actual
1223 length in call to value_contents_eq.
1224 * ada-lang.c (ada_value_primitive_packed_val): Always return
1225 a value whose type has been resolved.
1227 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1229 * ada-lang.c (ada_value_primitive_packed_val): Recompute
1230 BIT_SIZE and LEN if the size of the resolved type is smaller
1231 than BIT_SIZE * HOST_CHAR_BIT.
1233 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1235 * ada-lang.c (ada_value_primitive_packed_val): Use a more
1236 correct address in call to value_at. Adjust call to
1237 value_address accordingly.
1239 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1241 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
1244 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1246 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
1247 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
1249 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
1250 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
1251 (resolve_dynamic_type_internal): Set pinfo.valaddr.
1252 Add handling of addr_stack->valaddr.
1253 (resolve_dynamic_type): Add "valaddr" parameter.
1254 Set pinfo.valaddr field.
1255 * ada-lang.c (ada_discrete_type_high_bound): Update call to
1256 resolve_dynamic_type.
1257 (ada_discrete_type_low_bound): Likewise.
1258 * findvar.c (default_read_var_value): Likewise.
1259 * value.c (value_from_contents_and_address): Likewise.
1261 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1263 * gdbtypes.c (resolve_dynamic_array): Use
1264 create_array_type_with_stride instead of create_array_type.
1266 2015-04-30 DJ Delorie <dj@redhat.com>
1268 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
1271 2015-04-29 Doug Evans <dje@google.com>
1274 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
1275 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
1276 EVAL_AVOID_SIDE_EFFECTS for xmethods.
1277 * extension-priv.h (struct extension_language_ops)
1278 <get_xmethod_result_type>: New member.
1279 * extension.c (get_xmethod_result_type): New function.
1280 * extension.h (get_xmethod_result_type): Declare.
1281 * python/py-xmethods.c (get_result_type_method_name): New static
1283 (py_get_result_type_method_name): Ditto.
1284 (gdbpy_get_xmethod_result_type): New function.
1285 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
1286 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
1287 * python/python.c (python_extension_ops): Add
1288 gdbpy_get_xmethod_result_type.
1289 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
1290 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
1292 (value_x_unop): Ditto.
1293 * value.c (result_type_of_xmethod): New function.
1294 * value.h (result_type_of_xmethod): Declare.
1296 2015-04-29 Gary Benson <gbenson@redhat.com>
1298 * solib.c (solib_find_1): Allow fd argument to be NULL.
1299 (exec_file_find): Update comment.
1300 (solib_find): Likewise.
1301 * exec.c (exec_file_locate_attach): Use NULL as fd
1302 argument to exec_file_find to avoid having to close
1304 * infrun.c (follow_exec): Likewise.
1306 2015-04-28 Doug Evans <dje@google.com>
1309 * python/lib/gdb/printing.py (register_pretty_printer): Handle
1310 name or __name__ attributes. Handle gdb module as first argument.
1312 2015-04-28 Doug Evans <dje@google.com>
1315 * python/py-prettyprint.c (print_children): Verify result of children
1316 iterator. Provide better error message.
1317 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
1318 * python/python.c (gdbpy_print_python_errors_p): New function.
1320 2015-04-28 Doug Evans <dje@google.com>
1322 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
1324 2015-04-28 Sasha Smundak <asmundak@google.com>
1326 * NEWS: Mention gdb.Type.optimized_out method.
1327 * python/py-type.c (typy_optimized_out): New function.
1329 2015-04-28 John Baldwin <jhb@FreeBSD.org>
1331 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1333 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
1335 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
1336 (initialize_utils): Move call of init_page_info() to ...
1337 * top.c (gdb_init): ... here.
1339 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
1341 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
1342 (tui_sigwinch_handler): Still update our idea of
1343 the terminal's width and height even when TUI is not active.
1345 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
1347 * utils.h (set_screen_width_and_height): Declare.
1348 * utils.c (set_screen_width_and_height): Define.
1349 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
1351 2015-04-28 Gary Benson <gbenson@redhat.com>
1353 * infrun.c (solist.h): New include.
1354 (follow_exec): Use exec_file_find to prefix execd_pathname
1357 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
1359 * tui/tui-source.c (tui_set_source_content): Avoid calling
1360 strcpy() when offset is 0.
1362 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
1365 * tui/tui-data.c (tui_free_window): Don't free the locator
1366 window when passed an SRC_WIN or a DISASSEM_WIN.
1368 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
1370 * tui/tui-data.h (struct tui_win_element): Forward-declare.
1371 (tui_win_content): Move declaration.
1372 (struct tui_gen_win_info): Give 'content' field the
1373 type tui_win_content.
1374 * tui/tui-data.c (init_content_element): Remove redundant and
1376 (tui_add_content_elements): Remove erroneous cast.
1377 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
1379 (tui_get_begin_asm_address): Likewise.
1380 * tui/tui-regs.c (tui_show_registers): Likewise.
1381 (tui_show_register_group): Likewise.
1382 (tui_display_registers_from): Likewise.
1383 (tui_check_register_values): Likewise.
1384 * tui/tui-source.c (tui_set_source_content): Likewise.
1385 (tui_set_source_content_nil): Likewise.
1386 (tui_source_is_displayed): Likewise.
1387 * tui/tui-stack.c (tui_show_locator_content): Likewise.
1388 (tui_set_locator_fullname): Likewise.
1389 (tui_set_locator_info): Likewise.
1390 (tui_show_frame_info): Likewise.
1391 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
1392 (tui_show_source_line): Likewise.
1393 (tui_horizontal_source_scroll): Likewise.
1394 (tui_update_breakpoint_info): Likewise.
1395 (tui_set_exec_info_content): Likewise.
1396 (tui_show_exec_info_content): Likewise.
1397 (tui_alloc_source_buffer): Likewise.
1398 (tui_line_is_displayed): Likewise.
1399 (tui_addr_is_displayed): Likewise.
1401 2015-04-27 John Baldwin <jhb@FreeBSD.org>
1403 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
1404 event if PL_FLAG_EXEC is set.
1405 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
1406 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
1407 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
1408 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
1409 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
1411 2015-04-27 John Baldwin <jhb@FreeBSD.org>
1413 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
1414 [TDP_RFPPWAIT] New variable fbsd_pending_children.
1415 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
1416 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
1417 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
1418 [PT_LWPINFO] (fbsd_wait): New function.
1419 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
1420 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
1421 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
1422 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
1423 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
1424 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
1425 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
1426 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
1427 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
1429 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
1430 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
1431 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
1432 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
1433 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
1434 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
1435 Set "to_post_attach" to "fbsd_post_attach".
1437 2015-04-27 John Baldwin <jhb@FreeBSD.org>
1439 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
1440 (fbsd_find_memory_regions): Mark static.
1441 (fbsd_nat_add_target): New function.
1442 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
1443 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
1444 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
1445 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1446 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
1447 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
1449 2015-04-27 Gary Benson <gbenson@redhat.com>
1451 * objfiles.c (allocate_objfile): Do not attempt to expand name
1452 if name is a "target:" filename.
1453 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
1454 to load auto-load scripts for objfiles with "target:" filenames.
1456 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
1458 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
1459 (enum s390_vector_abi_kind): New enum.
1460 (struct gdbarch_tdep)<vector_abi>: New field.
1461 (s390_effective_inner_type): Add parameter min_size. Stop
1462 unwrapping if the inner type is smaller than min_size.
1463 (s390_function_arg_float): Adjust call to
1464 s390_effective_inner_type.
1465 (s390_function_arg_vector): New function.
1466 (s390_function_arg_integer): Adjust comment.
1467 (struct s390_arg_state)<vr>: New field.
1468 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
1469 arguments according to vector ABI when appropriate.
1470 (s390_push_dummy_call): Initialize the argument state's field
1471 'vr'. Adjust calls to s390_handle_arg.
1472 (s390_register_return_value): Handle vector return values.
1473 (s390_return_value): Apply the "register" return value convention
1474 to a vector when appropriate.
1475 (s390_gdbarch_init): Initialize tdep->vector_abi.
1476 * NEWS: Announce S390 vector ABI support.
1478 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
1480 * s390-linux-tdep.c (s390_return_value_convention): Remove
1481 function. Inline its logic...
1482 (s390_return_value): ...here. Instead, move the handling of the
1483 "register" return value convention...
1484 (s390_register_return_value): ...here. New function.
1486 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
1489 (is_float_singleton): Remove function. Move the "singleton" part
1491 (s390_effective_inner_type): ...here. New function.
1492 (is_float_like): Remove function. Inline its logic...
1493 (s390_function_arg_float): ...here.
1494 (is_pointer_like, is_integer_like, is_struct_like): Remove
1495 functions. Inline their logic...
1496 (s390_function_arg_integer): ...here.
1497 (s390_function_arg_pass_by_reference): Remove function.
1498 (extend_simple_arg): Remove function.
1499 (alignment_of): Remove function.
1500 (struct s390_arg_state): New structure.
1501 (s390_handle_arg): New function.
1502 (s390_push_dummy_call): Move parameter placement logic to the new
1503 function s390_handle_arg. Call it for calculating the stack area
1504 sizes first, and again for actually writing the parameters.
1506 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
1508 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
1509 false if the argument is zero.
1511 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
1513 * ada-lang.c (template_to_static_fixed_type): Return input type
1514 when it is already fixed. Cache the input type itself when not
1515 creating a static fixed copy. Make it explicit that we never
1516 molestate the input type.
1517 * gdbtypes.c (resolve_dynamic_struct): Reset the
1518 TYPE_TARGET_TYPE field for resolved copies.
1520 2015-04-27 Joel Brobecker <brobecker@adacore.com>
1522 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
1523 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
1524 (template_to_static_fixed_type): Call ada_check_typedef only
1527 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
1529 * cli/cli-dump.c (srec_dump_command): Add internationalization
1531 (ihex_dump_command): Likewise.
1532 (tekhex_dump_command): Likewise.
1533 (binary_dump_command): Likewise.
1534 (binary_append_command): Likewise.
1536 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
1538 * cli/cli-dump.c (verilog_cmdlist): New variable.
1539 (dump_verilog_memory): New function.
1540 (dump_verilog_value): New function.
1541 (verilog_dump_command): New function.
1542 (_initialize_cli_dump): Add new commands to support verilog dump
1544 * NEWS: Add entry for "dump verilog".
1546 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
1548 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
1549 descriptive type when there is none.
1551 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
1553 * tui/tui-win.c (tui_async_resize_screen): Call
1554 rl_resize_terminal().
1556 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
1558 * windows-nat.c (handle_output_debug_string): Don't change
1559 current_event.dwThreadId.
1560 (get_windows_debug_event): Use thread_id, rather than relying on
1561 current_event.dwThreadId being changed.
1563 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
1565 * windows-nat.c (windows_continue): Report an error if
1566 ContinueDebugEvent() fails.
1568 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
1570 * windows-nat.c (windows_resume): Fix misspelling in debug output.
1572 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
1574 * windows-nat.c (get_windows_debug_event): Replace retval with
1575 thread_id throughout. Update stale comment.
1577 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
1579 * windows-nat.c (get_windows_debug_event): Don't use ternary
1580 conditional operator.
1582 2015-04-21 Pierre Muller <muller@sourceware.org>
1585 p-exp.y (yylex): Reorganize code to return the matched pattern
1586 for a field of this.
1588 2015-04-21 Gary Benson <gbenson@redhat.com>
1590 * common/fileio.h (fileio_to_host_openflags): New declaration.
1591 * common/fileio.c (fcntl.h): New include.
1592 (fileio_to_host_openflags): New function, factored out from...
1593 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
1596 2015-04-21 Kevin Buettner <kevinb@redhat.com>
1598 * rl78-tdep.c (RL78_SP_ADDR): Define.
1599 (opc_reg_to_gdb_regnum): New static function.
1600 (rl78_analyze_prologue): Recognize instructions forming slightly
1601 more interesting prologues.
1603 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
1606 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1607 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
1608 TYPE_CODE_REF types so that they are not considered as dynamic
1609 depending on the referenced type.
1610 (resolve_dynamic_type_internal): Likewise.
1612 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
1615 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1616 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
1617 "top_level" parameter.
1618 (resolve_dynamic_type_internal): Remove the unused "top_level"
1619 parameter. Update call to is_dynamic_type_internal.
1620 (is_dynamic_type): Update call to is_dynamic_type_internal.
1621 (resolve_dynamic_range): Update call to
1622 resolve_dynamic_type_internal.
1623 (resolve_dynamic_union): Likewise.
1624 (resolve_dynamic_struct): Likewise.
1625 (resolve_dynamic_type): Likewise.
1627 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
1629 * breakpoint.c (update_dprintf_command_list): Remove duplicated
1632 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
1634 * reply_mig_hack.awk: Robustify parsing.
1636 * reply_mig_hack.awk: Don't bother to declare an intermediate
1637 function pointer variable.
1639 2015-04-17 Doug Evans <dje@google.com>
1641 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
1642 to "exec_displacement" to avoid confusion with inner use of the name.
1644 2015-04-17 Pedro Alves <palves@redhat.com>
1646 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
1647 if HW point of TYPE isn't supported.
1649 2015-04-17 Yao Qi <yao.qi@linaro.org>
1650 Pedro Alves <palves@redhat.com>
1652 * target.h (target_can_use_hardware_watchpoint): Update comments.
1653 Remove trailing ";".
1655 2015-04-17 Gary Benson <gbenson@redhat.com>
1657 * remote.c (remote_add_inferior): New argument try_open_exec.
1658 If nonzero, attempt to open the inferior's executable file as
1659 the main executable if no main executable is open already.
1660 All callers updated.
1661 * NEWS: Mention that GDB now supports automatic location and
1662 retrieval of executable + files from remote targets.
1664 2015-04-17 Gary Benson <gbenson@redhat.com>
1666 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
1667 * remote.c (PACKET_qXfer_exec_file): Likewise.
1668 (remote_protocol_features): Register the
1669 "qXfer:exec-file:read" feature.
1670 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
1671 (remote_pid_to_exec_file): New function.
1672 (init_remote_ops): Initialize to_pid_to_exec_file.
1673 (_initialize_remote): Register new "set/show remote
1674 pid-to-exec-file-packet" command.
1675 * NEWS: Announce new qXfer:exec-file:read packet.
1677 2015-04-17 Gary Benson <gbenson@redhat.com>
1679 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
1681 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
1682 New function, factored out from...
1683 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
1685 2015-04-17 Gary Benson <gbenson@redhat.com>
1687 * exec.c (solist.h): New include.
1688 (exec_file_locate_attach): Prefix absolute executable
1689 paths with gdb_sysroot if set.
1690 * NEWS: Mention that executable paths may be prepended
1693 2015-04-17 Gary Benson <gbenson@redhat.com>
1695 * solist.h (exec_file_find): New declaration.
1696 * solib.c (solib_find_1): New function, factored out from...
1697 (solib_find): ...here.
1698 (exec_file_find): New function.
1700 2015-04-17 Gary Benson <gbenson@redhat.com>
1702 * gdbcore.h (exec_file_locate_attach): New declaration.
1703 * exec.c (exec_file_locate_attach): New function, factored
1705 * infcmd.c (attach_command_post_wait): ...here.
1707 2015-04-17 Mike Frysinger <vapier@gentoo.org>
1709 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
1711 2015-04-16 Yao Qi <yao.qi@linaro.org>
1713 * infrun.c (maybe_software_singlestep): Declare.
1714 (displaced_step_fixup): Call maybe_software_singlestep.
1716 2015-04-15 Doug Evans <dje@google.com>
1718 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
1720 2015-04-15 Doug Evans <dje@google.com>
1722 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
1724 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
1726 * python/lib/gdb/command/unwinders.py: Add parentheses.
1728 2015-04-15 Yao Qi <yao.qi@linaro.org>
1730 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
1732 2015-04-15 Yao Qi <yao.qi@linaro.org>
1734 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
1736 2015-04-15 Yao Qi <yao.qi@linaro.org>
1738 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
1739 dsc->insn_size instead of 4.
1741 2015-04-14 Gary Benson <gbenson@redhat.com>
1743 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
1744 * minidebug.c (lzma_stat): Likewise.
1745 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
1746 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
1748 2015-04-13 Stan Shebs <stanshebs@google.com>
1750 * MAINTAINERS: Update my email address.
1752 2015-04-13 John Baldwin <jhb@FreeBSD.org>
1754 * amd64-tdep.c (amd64_target_description): New function.
1755 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
1756 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
1757 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
1758 x86 extended save area.
1759 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
1760 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
1761 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
1762 (_initialize_amd64fbsd_nat): Set "to_read_description" to
1763 "amd64fbsd_read_description".
1764 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
1765 (amd64fbsd_supply_xstateregset): New function.
1766 (amd64fbsd_collect_xstateregset): New function.
1767 Add "amd64fbsd_xstateregset".
1768 (amd64fbsd_iterate_over_regset_sections): New function.
1769 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
1770 "I386_FBSD_XSAVE_XCR0_OFFSET".
1771 Add "iterate_over_regset_sections" gdbarch method.
1772 Add "core_read_description" gdbarch method.
1773 * i386-tdep.c (i386_target_description): New function.
1774 * i386-tdep.h: Export i386_target_description and tdesc_i386.
1775 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
1776 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
1777 x86 extended save area.
1778 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
1779 * i386bsd-nat.h: Export i386bsd_xsave_len.
1780 * i386fbsd-nat.c (i386fbsd_read_description): New function.
1781 (_initialize_i386fbsd_nat): Set "to_read_description" to
1782 "i386fbsd_read_description".
1783 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
1784 (i386fbsd_core_read_description): New function.
1785 (i386fbsd_supply_xstateregset): New function.
1786 (i386fbsd_collect_xstateregset): New function.
1787 Add "i386fbsd_xstateregset".
1788 (i386fbsd_iterate_over_regset_sections): New function.
1789 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
1790 "I386_FBSD_XSAVE_XCR0_OFFSET".
1791 Add "iterate_over_regset_sections" gdbarch method.
1792 Add "core_read_description" gdbarch method.
1793 * i386fbsd-tdep.h: New file.
1795 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1797 * NEWS (Changes since GDB 7.9): Add removed -xdb.
1798 * breakpoint.c (command_line_is_silent): Remove xdb_commands
1800 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
1802 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
1804 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
1806 * defs.h (xdb_commands): Remove declaration.
1807 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
1808 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
1809 * infcmd.c (run_no_args_command, go_command): Remove.
1810 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
1811 * infrun.c (xdb_handle_command): Remove.
1812 (_initialize_infrun): Remove xdb_commands for lz and z.
1813 * main.c (xdb_commands): Remove variable.
1814 (captured_main): Remove "xdb" from long_options.
1815 (print_gdb_help): Remove --xdb from help.
1816 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
1817 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
1818 * stack.c (backtrace_full_command, args_plus_locals_info)
1819 (current_frame_command): Remove.
1820 (_initialize_stack): Remove xdb_commands for t, T and l.
1821 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
1822 * thread.c (_initialize_thread): Remove xdb_commands condition.
1823 * tui/tui-layout.c (tui_toggle_layout_command)
1824 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
1825 (_initialize_tui_layout): Remove xdb_commands for td and ts.
1826 * tui/tui-regs.c (tui_scroll_regs_forward_command)
1827 (tui_scroll_regs_backward_command): Remove.
1828 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
1829 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
1830 (_initialize_tui_win): Remove xdb_commands for U and w.
1831 * utils.c (pagination_on_command, pagination_off_command): Remove.
1832 (initialize_utils): Remove xdb_commands for am and sm.
1834 2015-04-10 Pedro Alves <palves@redhat.com>
1836 * infrun.c (displaced_step_fixup): Switch to the event ptid
1837 earlier. If the thread stopped for a watchpoint and the
1838 target/arch has non-continuable watchpoints, cancel the displaced
1840 (resume): Don't start a displaced step if in-line step-over info
1843 2015-04-10 Pedro Alves <palves@redhat.com>
1845 * infrun.c (displaced_step_in_progress): New function.
1846 (do_target_resume): Advise target to report all signals if
1849 2015-04-10 Pedro Alves <palves@redhat.com>
1852 * infrun.c (process_event_stop_test): Don't assume a step-resume
1853 is set if tp->stepped_breakpoint is true.
1855 2015-04-10 Yao Qi <yao.qi@linaro.org>
1857 * arm-tdep.c (install_alu_reg): Update comment.
1858 (thumb_copy_alu_reg): Remove local variable rn. Update
1859 debugging message. Use r2 instead of r1 in the modified
1862 2015-04-10 Pedro Alves <palves@redhat.com>
1865 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
1866 linux_displaced_step_location as gdbarch_displaced_step_location
1868 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1869 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1870 * linux-tdep.c (linux_displaced_step_location): New function,
1871 based on ppc_linux_displaced_step_location.
1872 * linux-tdep.h (linux_displaced_step_location): New declaration.
1873 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
1874 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
1876 (ppc_linux_init_abi): Install linux_displaced_step_location as
1877 gdbarch_displaced_step_location hook, even without Cell/B.E..
1878 (_initialize_ppc_linux_tdep): Don't install
1879 ppc_linux_inferior_created as inferior_created observer.
1880 * s390-linux-tdep.c (s390_gdbarch_init): Install
1881 linux_displaced_step_location as gdbarch_displaced_step_location
1884 2015-04-09 Gary Benson <gbenson@redhat.com>
1886 * common/common-remote-fileio.h: Rename to...
1887 * common/fileio.h: ...this. Update all references.
1888 (remote_fileio_to_fio_error): Rename to...
1889 (host_to_fileio_error): ...this.
1890 (remote_fileio_to_be): Rename to...
1891 (host_to_bigendian): ...this. Update all callers.
1892 (remote_fileio_to_fio_uint): Rename to...
1893 (host_to_fileio_uint): ...this. Update all callers.
1894 (remote_fileio_to_fio_time): Rename to...
1895 (host_to_fileio_time): ...this. Update all callers.
1896 (remote_fileio_to_fio_stat): Rename to...
1897 (host_to_fileio_stat): ...this.
1898 Update all references.
1899 * common/common-remote-fileio.c: Rename to...
1900 * common/fileio.c: ...this. Update all references.
1901 (remote_fileio_to_fio_error): Rename to...
1902 (host_to_fileio_error): ...this. Update all callers.
1903 (remote_fileio_mode_to_target): Rename to...
1904 (fileio_mode_pack): ...this. Update all callers.
1905 (remote_fileio_to_fio_mode): Rename to...
1906 (host_to_fileio_mode): ...this. Update all callers.
1907 (remote_fileio_to_fio_ulong): Rename to...
1908 (host_to_fileio_ulong): ...this. Update all callers.
1909 (remote_fileio_to_fio_stat): Rename to...
1910 (host_to_fileio_stat): ...this. Update all callers.
1912 2015-04-09 Andy Wingo <wingo@igalia.com>
1914 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
1915 (frame_functions): Bind gdbscm_frame_read_register to
1916 frame-read-register.
1917 * guile/lib/gdb.scm (frame-read-register): Export.
1919 2015-04-09 Gary Benson <gbenson@redhat.com>
1921 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
1923 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
1924 New function, factored out the named functions below.
1925 * inf-child.c (gdb/fileio.h): Remove include.
1926 (common-remote-fileio.h): New include.
1927 (inf_child_errno_to_fileio_error): Remove function. Update
1928 all callers to use remote_fileio_to_fio_error.
1929 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
1931 2015-04-09 Andy Wingo <wingo@igalia.com>
1933 * MAINTAINERS (Write After Approval): Add Andy Wingo.
1935 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
1937 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
1938 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
1939 * configure: Regenerated.
1941 2015-04-09 Pedro Alves <palves@redhat.com>
1943 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
1944 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
1945 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
1946 * gnulib/import/Makefile.am: Update.
1947 * gnulib/import/Makefile.in: Update.
1948 * gnulib/import/m4/gnulib-cache.m4: Update.
1949 * gnulib/import/m4/gnulib-comp.m4: Update.
1950 * gnulib/import/m4/strtok_r.m4: New file.
1951 * gnulib/import/strtok_r.c: New file.
1953 2015-04-09 Pedro Alves <palves@redhat.com>
1955 * gnulib/update-gnulib.sh (aclocal version check): Filter out
1956 "called too early to check prototype".
1958 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
1961 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
1962 use a caching mechanism. Adjust comments and code to reflect
1963 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
1964 (cmdpy_completer_handle_brkchars): Adjust call to
1965 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
1966 (cmdpy_completer): Likewise.
1968 2015-04-08 Yao Qi <yao.qi@linaro.org>
1970 * spu-tdep.c (spu_gdbarch_init): Don't call
1971 set_gdbarch_cannot_step_breakpoint.
1973 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
1975 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
1977 2015-04-07 Pedro Alves <palves@redhat.com>
1979 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
1980 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
1981 (delete_exited_threads): New declaration.
1982 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
1983 * linux-nat.c (linux_nat_update_thread_list): New function.
1984 (linux_nat_add_target): Install it.
1985 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
1986 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
1987 (delete_exited_threads): New function.
1989 2015-04-07 Pedro Alves <pedro@codesourcery.com>
1991 * infrun.c (resume) <displaced stepping debug output>: Get the
1992 leader thread's regcache, not resume_ptid's.
1994 2015-04-06 Doug Evans <xdje42@gmail.com>
1996 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
1998 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
1999 Include symbol domain in debugging output.
2001 2015-04-06 Pedro Alves <palves@redhat.com>
2002 Bernd Edlinger <bernd.edlinger@hotmail.de>
2004 * configure.ac: Remove the mingw32-specific stub-termcap.o
2005 fallback, and instead fallback to the stub termcap on all hosts.
2006 * configure: Regenerate.
2007 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
2010 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
2012 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
2013 "top_level" parameter.
2014 (resolve_dynamic_type_internal): Remove the unused "top_level"
2015 parameter. Update call to is_dynamic_type_internal.
2016 (is_dynamic_type): Update call to is_dynamic_type_internal.
2017 (resolve_dynamic_range): Update call to
2018 resolve_dynamic_type_internal.
2019 (resolve_dynamic_union): Likewise.
2020 (resolve_dynamic_struct): Likewise.
2021 (resolve_dynamic_type): Likewise.
2023 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
2025 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
2026 TYPE_CODE_REF types so that they are not considered as dynamic
2027 depending on the referenced type.
2028 (resolve_dynamic_type_internal): Likewise.
2030 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
2032 * Makefile.in (top_srcdir): New.
2033 * configure: Regenerated.
2035 2015-04-02 Gary Benson <gbenson@redhat.com>
2037 * NEWS: Announce the new default sysroot of "target:".
2039 2015-04-02 Gary Benson <gbenson@redhat.com>
2041 * main.c (captured_main): Set gdb_sysroot to "target:"
2042 if not otherwise set.
2044 2015-04-02 Gary Benson <gbenson@redhat.com>
2046 * exec.c (exec_file_attach): Support "target:" filenames.
2048 2015-04-02 Gary Benson <gbenson@redhat.com>
2050 * solib.c (solib_find): Strip "target:" prefix from sysroot
2051 if accessing local files.
2053 2015-04-02 Gary Benson <gbenson@redhat.com>
2055 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
2056 checks and error messages.
2058 2015-04-02 Gary Benson <gbenson@redhat.com>
2060 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
2061 (remote_filename_p): Remove declaration.
2062 (remote_bfd_open): Likewise.
2063 * remote.c (remote_bfd_iovec_open): Remove function.
2064 (remote_bfd_iovec_close): Likewise.
2065 (remote_bfd_iovec_pread): Likewise.
2066 (remote_bfd_iovec_stat): Likewise.
2067 (remote_filename_p): Likewise.
2068 (remote_bfd_open): Likewise.
2069 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
2070 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
2071 (gdb_bfd_open_maybe_remote): Remove function.
2072 (symfile_bfd_open): Replace remote filename check with
2073 target filename check.
2074 (reread_symbols): Use gdb_bfd_open.
2075 * build-id.c (gdbcore.h): New include.
2076 (build_id_to_debug_bfd): Use gdb_bfd_open.
2077 * infcmd.c (attach_command_post_wait): Remove remote filename
2079 * solib.c (solib_find): Replace remote-specific handling with
2080 target-specific handling. Update comments where necessary.
2081 (solib_bfd_open): Replace remote-specific handling with
2082 target-specific handling.
2083 (gdb_sysroot_changed): New function.
2084 (_initialize_solib): Call the above when gdb_sysroot changes.
2085 * windows-tdep.c (gdbcore.h): New include.
2086 (windows_xfer_shared_library): Use gdb_bfd_open.
2088 2015-04-02 Gary Benson <gbenson@redhat.com>
2090 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
2091 (is_target_filename): New declaration.
2092 (gdb_bfd_has_target_filename): Likewise.
2093 (gdb_bfd_open): Update documentation comment.
2094 * gdb_bfd.c (target.h): New include.
2095 (gdb/fileio.h): Likewise.
2096 (is_target_filename): New function.
2097 (gdb_bfd_has_target_filename): Likewise.
2098 (fileio_errno_to_host): Likewise.
2099 (gdb_bfd_iovec_fileio_open): Likewise.
2100 (gdb_bfd_iovec_fileio_pread): Likewise.
2101 (gdb_bfd_iovec_fileio_close): Likewise.
2102 (gdb_bfd_iovec_fileio_fstat): Likewise.
2103 (gdb_bfd_open): Use target fileio to access paths prefixed
2104 with "target:" where necessary.
2106 2015-04-02 Gary Benson <gbenson@redhat.com>
2108 * target.h (struct target_ops) <to_filesystem_is_local>:
2110 (target_filesystem_is_local): New macro.
2111 * target-delegates.c: Regenerate.
2112 * remote.c (remote_filesystem_is_local): New function.
2113 (init_remote_ops): Initialize to_filesystem_is_local.
2115 2015-04-02 Gary Benson <gbenson@redhat.com>
2117 * target.h (struct target_ops) <to_fileio_fstat>: New field.
2118 (target_fileio_fstat): New declaration.
2119 * target.c (target_fileio_fstat): New function.
2120 * inf-child.c (inf_child_fileio_fstat): Likewise.
2121 (inf_child_target): Initialize to_fileio_fstat.
2122 * remote.c (init_remote_ops): Likewise.
2124 2015-04-01 Sasha Smundak <asmundak@google.com>
2126 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
2127 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
2128 (py-unwind.o): New recipe.
2129 * NEWS: mention Python frame unwinding.
2130 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
2131 gdb/unwinder.py and gdb/command/unwinder.py
2132 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
2134 (execute_unwinders): New function.
2135 * python/lib/gdb/command/unwinders.py: New file.
2136 * python/lib/gdb/unwinder.py: New file.
2137 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
2138 (objfpy_dealloc): Decrement frame_unwinders reference count.
2139 (objfpy_initialize): Create frame_unwinders list.
2140 (objfpy_get_frame_unwinders): New function.
2141 (objfpy_set_frame_unwinders): Ditto.
2142 (objfile_getset): Add frame_unwinders attribute to Objfile.
2143 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
2144 (pspy_dealloc): Decrement frame_unwinders reference count.
2145 (pspy_initialize): Create frame_unwinders list.
2146 (pspy_get_frame_unwinders): New function.
2147 (pspy_set_frame_unwinders): Ditto.
2148 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
2149 * python/py-unwind.c: New file.
2150 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
2151 (objpy_get_frame_unwinders): New prototype.
2152 (gdbpy_initialize_unwind): New prototype.
2153 * python/python.c (gdbpy_apply_type_printers): Call
2154 gdbpy_initialize_unwind.
2156 2015-04-01 Pedro Alves <palves@redhat.com>
2158 * infrun.c (resume): Check currently_stepping after clearing
2159 stepped_breakpoint, not before.
2161 2015-04-01 Pedro Alves <palves@redhat.com>
2163 * infrun.c (print_target_wait_results): Print all the ptid
2166 2015-04-01 Pedro Alves <palves@redhat.com>
2168 * infrun.c (keep_going): Also discard cleanups if inserting
2171 2015-04-01 Pedro Alves <palves@redhat.com>
2173 * infrun.c (wait_for_inferior): Install the
2174 finish_thread_state_cleanup cleanup across the whole function, not
2175 just around handle_inferior_event.
2177 2015-04-01 Pedro Alves <palves@redhat.com>
2179 * infrun.c (resume) <step past permanent breakpoint>: Use
2182 2015-04-01 Pedro Alves <palves@redhat.com>
2184 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
2186 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
2188 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
2190 2015-04-01 Pedro Alves <palves@redhat.com>
2192 * linux-thread-db.c (record_thread): Readd the thread to gdb's
2193 list if it was marked exited.
2195 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
2197 * configure: Regenerated.
2199 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
2200 Jan Kratochvil <jan.kratochvil@redhat.com>
2201 Oleg Nesterov <oleg@redhat.com>
2204 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
2205 New enum identifying the various options of the coredump_filter
2207 (struct smaps_vmflags): New struct.
2208 (use_coredump_filter): New variable.
2209 (decode_vmflags): New function.
2210 (mapping_is_anonymous_p): Likewise.
2211 (dump_mapping_p): Likewise.
2212 (linux_find_memory_regions_full): New variables
2213 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
2214 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
2215 parsing of its information. Implement memory mapping filtering
2216 based on its contents.
2217 (show_use_coredump_filter): New function.
2218 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
2219 * NEWS: Mention the possibility of using the
2220 '/proc/PID/coredump_filter' file when generating a corefile.
2221 Mention new command 'set use-coredump-filter'.
2223 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
2225 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
2226 read_memory_unsigned_integer.
2228 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
2230 * Makefile.in (ZLIB): New.
2231 (ZLIBINC): Likewise.
2232 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
2233 (CLIBS): Add $(ZLIB).
2234 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
2236 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
2237 * top.c (print_gdb_configuration): Remove --with-zlib and
2239 * config.in: Regenerated.
2240 * configure: Likewise.
2242 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
2244 * NEWS: Mention info os cpus support.
2245 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
2246 (struct osdata_type): Add cpus entry, reorder the entries in
2249 2015-03-31 Matthias Klose <doko@ubuntu.com>
2251 * compile/compile.c (compile_to_object): Allow triplets with or
2254 2015-03-30 Doug Evans <dje@google.com>
2257 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
2258 klass in VAR_DOMAIN.
2260 2015-03-30 Gary Benson <gbenson@redhat.com>
2262 * remote.c (remote_mourn_1): Remove function. Update all callers
2263 to use remote_mourn.
2264 (extended_remote_mourn_1): Remove function. Update all callers
2265 to use extended_remote_mourn.
2266 (extended_remote_attach_1): Remove function. Update all callers
2267 to use extended_remote_attach.
2269 2015-03-28 James Bowman <james.bowman@ftdichip.com>
2271 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
2272 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
2273 (ALLDEPFILES): Add ft32-tdep.c.
2274 * configure.tgt: Add FT32 entry.
2275 * ft32-tdep.c: New file, FT32 target-dependent code.
2276 * ft32-tdep.h: New file, FT32 target-dependent code.
2278 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2281 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2283 * printcmd.c (print_command_1): Move expr variable scope.
2285 2015-03-27 Joel Brobecker <brobecker@adacore.com>
2287 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
2289 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
2291 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
2294 2015-03-26 Joel Brobecker <brobecker@adacore.com>
2296 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
2297 exception raised while parsing the probe arguments.
2298 Force parsing to be done using the C language parser.
2299 * expression.h (parse_expression_with_language): Declare.
2300 * parse.c (parse_expression_with_language): New function.
2302 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
2304 * MAINTAINERS (Write After Approval): Add "Jon Turney".
2306 2015-03-26 Andy Wingo <wingo@igalia.com>
2309 * dwarf2read.c (struct partial_die_info): Add has_const_value
2311 (add_partial_symbol): Don't punt on symbols that have const_value
2313 (read_partial_die): Detect DW_AT_const_value.
2315 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2318 * printcmd.c (print_command_1): Move expr variable scope.
2320 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2323 * printcmd.c (validate_format): Make the parameter cmdname const.
2325 2015-03-26 Don Breazeal <donb@codesourcery.com>
2327 * remote.c (_initialize_remote): Update comment.
2329 2015-03-26 Pedro Alves <palves@redhat.com>
2330 Jon TURNEY <jon.turney@dronecode.org.uk>
2332 * coffread.c (coff_symfile_read): When constructing the name of an
2333 import stub symbol from import symbol for amd64, only skip the
2334 char after _imp_ if the target is underscored (like i386) and the
2335 char is indeed the target's leading char.
2337 2015-03-25 Pedro Alves <palves@redhat.com>
2339 * target.h <to_async>: Replace 'callback' and 'context' parameters
2340 with boolean 'enable' parameter.
2341 (target_async): Replace CALLBACK and CONTEXT parameters with
2342 boolean ENABLE parameter.
2343 * inf-loop.c (inferior_event_handler): Adjust.
2344 * linux-nat.c (linux_nat_attach, linux_nat_resume)
2345 (linux_nat_resume): Adjust.
2346 (async_client_callback, async_client_context): Delete.
2347 (handle_target_event): Call inferior_event_handler directly.
2348 (linux_nat_async): Replace 'callback' and 'context' parameters
2349 with boolean 'enable' parameter. Adjust. Remove references to
2350 async_client_callback and async_client_context.
2351 (linux_nat_close): Adjust.
2352 * record-btrace.c (record_btrace_async): Replace 'callback' and
2353 'context' parameters with boolean 'enable' parameter. Adjust.
2354 (record_btrace_resume): Adjust.
2355 * record-full.c (record_full_async): Replace 'callback' and
2356 'context' parameters with boolean 'enable' parameter. Adjust.
2357 (record_full_resume, record_full_core_resume): Adjust.
2358 * remote.c (struct remote_state) <async_client_callback,
2359 async_client_context>: Delete fields.
2360 (remote_start_remote, extended_remote_attach_1, remote_resume)
2361 (extended_remote_create_inferior): Adjust.
2362 (remote_async_serial_handler): Call inferior_event_handler
2364 (remote_async): Replace 'callback' and 'context' parameters with
2365 boolean 'enable' parameter. Adjust.
2366 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
2368 * target-delegates.c: Regenerate.
2370 2015-03-25 Gary Benson <gbenson@redhat.com>
2371 Pedro Alves <palves@redhat.com>
2373 * target.c (fileio_ft_t): New typedef, define object vector.
2374 (fileio_fhandles): New static variable.
2375 (is_closed_fileio_fh): New macro.
2376 (lowest_closed_fd): New static variable.
2377 (acquire_fileio_fd): New function.
2378 (release_fileio_fd): Likewise.
2379 (fileio_fd_to_fh): New macro.
2380 (target_fileio_open): Wrap the file descriptor on success.
2381 (target_fileio_pwrite): Updated to use wrapped file descriptor.
2382 (target_fileio_pread): Likewise.
2383 (target_fileio_close): Likewise.
2385 2015-03-24 Pedro Alves <palves@redhat.com>
2387 * thread.c (thread_apply_all_command): Take exited threads into
2390 2015-03-24 Pedro Alves <palves@redhat.com>
2392 * infrun.c (resume, proceed): Mention
2393 switch_back_to_stepped_thread, not switch_back_to_stepping.
2395 2015-03-24 Pedro Alves <palves@redhat.com>
2397 * infrun.c (user_visible_resume_ptid): Rewrite going from
2398 most-locked to unlocked instead of the opposite. Move comment ...
2399 * infrun.h (user_visible_resume_ptid): ... here.
2401 2015-03-24 Pedro Alves <palves@redhat.com>
2403 * linux-nat.c (linux_nat_resume): Output debug logs before trying
2404 to resume the event lwp. Use the lwp's ptid instead of the passed
2405 in (maybe wildcard) ptid.
2406 (stop_wait_callback): Tweak debug log output.
2407 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
2409 (linux_nat_filter_event): In debug output, distinguish a
2410 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
2411 before trying to resume the lwp.
2413 2015-03-24 Joel Brobecker <brobecker@adacore.com>
2415 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
2416 pointer indirection.
2417 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
2418 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
2420 2015-03-24 Joel Brobecker <brobecker@adacore.com>
2422 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
2423 Renames DYN_ATTR_DATA_LOCATION.
2424 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
2425 DYN_ATTR_DATA_LOCATION.
2426 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
2427 instead of DYN_ATTR_DATA_LOCATION.
2429 2015-03-24 Pedro Alves <palves@redhat.com>
2431 * breakpoint.c (until_break_command): Adjust call to proceed.
2432 * gdbthread.h (struct thread_control_state) <stepping_command>:
2434 * infcall.c (run_inferior_call): Adjust call to proceed.
2435 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
2436 Adjust calls to proceed.
2437 (set_step_frame): Set the current thread's step_start_function
2439 (step_once): Adjust calls to proceed.
2440 (jump_command, signal_command, until_next_command)
2441 (finish_backward, finish_forward, proceed_after_attach_callback)
2442 (attach_command_post_wait): Adjust calls to proceed.
2443 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
2444 (do_target_resume): New function, factored out from ...
2445 (resume): ... here. Remove 'step' parameter. Instead, check
2446 currently_stepping to determine whether the thread should be
2448 (proceed): Remove 'step' parameter and don't set the thread's
2449 step_start_function here. Adjust call to 'resume'.
2450 (handle_inferior_event): Adjust calls to 'resume'.
2451 (switch_back_to_stepped_thread): Use do_target_resume instead of
2453 (keep_going): Adjust calls to 'resume'.
2454 * infrun.h (proceed): Remove 'step' parameter.
2456 * windows-nat.c (do_initial_windows_stuff): Adjust call to
2458 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
2460 2015-03-24 Pedro Alves <palves@redhat.com>
2462 * gdbthread.h (struct thread_control_state) <stepping_command>:
2464 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
2465 the thread's stepping_command field.
2466 * infrun.c (resume): Check the thread's stepping_command flag to
2467 determine which threads should be resumed. Rename 'entry_step'
2469 (clear_proceed_status_thread): Clear 'stepping_command'.
2470 (schedlock_applies): Change parameter type to struct thread_info
2472 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
2473 (switch_back_to_stepped_thread): Adjust calls to
2474 'schedlock_applies'.
2475 (_initialize_infrun): Adjust "set scheduler-locking step" help.
2477 2015-03-24 Pedro Alves <palves@redhat.com>
2479 * infrun.c (step_start_function): Delete and ...
2480 * gdbthread.h (struct thread_control_state) <step_start_function>:
2481 ... now a field here.
2482 * infrun.c (clear_proceed_status_thread): Clear the thread's
2483 step_start_function.
2484 (proceed, process_event_stop_test, print_stop_event): Adjust.
2486 2015-03-24 Pedro Alves <palves@redhat.com>
2488 * infrun.c (proceed): No longer handle negative step.
2490 2015-03-24 Gary Benson <gbenson@redhat.com>
2492 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
2493 (x86_linux_prepare_to_resume): Likewise.
2494 * x86-linux-nat.c (x86_linux_new_thread):
2495 Moved to nat/x86-linux.c.
2496 (x86_linux_prepare_to_resume): Likewise.
2497 * nat/x86-linux.c (x86_linux_new_thread): New function.
2498 (x86_linux_prepare_to_resume): Likewise.
2500 2015-03-24 Gary Benson <gbenson@redhat.com>
2502 * nat/x86-linux-dregs.h: New file.
2503 * nat/x86-linux-dregs.c: Likewise.
2504 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
2505 (x86-linux-dregs.o): New rule.
2506 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
2507 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2508 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
2509 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
2510 (x86_linux_dr_get): Likewise.
2511 (x86_linux_dr_set): Likewise.
2512 (x86_linux_dr_get_addr): Likewise.
2513 (x86_linux_dr_get_control): Likewise.
2514 (x86_linux_dr_get_status): Likewise.
2515 (update_debug_registers_callback): Likewise.
2516 (x86_linux_dr_set_control): Likewise.
2517 (x86_linux_dr_set_addr): Likewise.
2518 (x86_linux_update_debug_registers): Likewise.
2520 2015-03-24 Gary Benson <gbenson@redhat.com>
2522 * x86-linux-nat.c (x86_linux_update_debug_registers):
2523 New function, factored out from...
2524 (x86_linux_prepare_to_resume): ...this.
2526 2015-03-24 Gary Benson <gbenson@redhat.com>
2528 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
2529 (x86_linux_dr_set): Likewise.
2530 (x86_linux_dr_get_addr): Likewise.
2531 (x86_linux_dr_get_control): Likewise.
2532 (x86_linux_dr_get_status): Likewise.
2533 (update_debug_registers_callback): Likewise.
2534 (x86_linux_dr_set_control): Likewise.
2535 (x86_linux_dr_set_addr): Likewise.
2536 (x86_linux_prepare_to_resume): Likewise.
2537 (x86_linux_new_thread): Likewise.
2539 2015-03-24 Gary Benson <gbenson@redhat.com>
2541 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
2542 (x86_linux_new_thread): Rename argument.
2544 2015-03-24 Gary Benson <gbenson@redhat.com>
2546 * nat/x86-linux.h: New file.
2547 * nat/x86-linux.c: Likewise.
2548 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
2549 (x86-linux.o): New rule.
2550 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
2551 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2552 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
2553 (lwp_set_arch_private_info): New declaration.
2554 (lwp_arch_private_info): Likewise.
2555 * linux-nat.c (lwp_set_arch_private_info): New function.
2556 (lwp_arch_private_info): Likewise.
2557 * x86-linux-nat.c: Include nat/x86-linux.h.
2558 (arch_lwp_info): Removed structure.
2559 (update_debug_registers_callback):
2560 Use lwp_set_debug_registers_changed.
2561 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
2562 and lwp_set_debug_registers_changed.
2563 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
2565 2015-03-24 Gary Benson <gbenson@redhat.com>
2567 * nat/linux-nat.h (ptid_of_lwp): New declaration.
2568 (lwp_is_stopped): Likewise.
2569 (lwp_stop_reason): Likewise.
2570 * linux-nat.c (ptid_of_lwp): New function.
2571 (lwp_is_stopped): Likewise.
2572 (lwp_is_stopped_by_watchpoint): Likewise.
2573 * x86-linux-nat.c (update_debug_registers_callback):
2575 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
2578 2015-03-24 Gary Benson <gbenson@redhat.com>
2580 * linux-nat.h (linux_stop_lwp): Move declaration to...
2581 * nat/linux-nat.h (linux_stop_lwp): New declaration.
2583 2015-03-24 Gary Benson <gbenson@redhat.com>
2585 * linux-nat.h: Include nat/linux-nat.h.
2586 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
2587 * nat/linux-nat.h (struct lwp_info): New forward declaration.
2588 (iterate_over_lwps_ftype): New typedef.
2589 (iterate_over_lwps): New declaration.
2590 * linux-nat.h (iterate_over_lwps): Update comment. Use
2591 iterate_over_lwps_ftype. Update callback return value check.
2593 2015-03-24 Gary Benson <gbenson@redhat.com>
2595 * x86-nat.h (x86_debug_reg_state): Move declaration to...
2596 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
2598 2015-03-24 Gary Benson <gbenson@redhat.com>
2600 * nat/linux-nat.h (current_lwp_ptid): New declaration.
2601 * linux-nat.c (current_lwp_ptid): New function.
2602 * x86-linux-nat.c: Include nat/linux-nat.h.
2603 (x86_linux_dr_get_addr): Use current_lwp_ptid.
2604 (x86_linux_dr_get_control): Likewise.
2605 (x86_linux_dr_get_status): Likewise.
2606 (x86_linux_dr_set_control): Likewise.
2607 (x86_linux_dr_set_addr): Likewise.
2609 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
2611 PR breakpoints/16466
2612 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
2614 2015-03-23 Joel Brobecker <brobecker@adacore.com>
2616 * ser-mingw.c (ser_windows_setparity): Fix indentation.
2617 * ser-unix.c (hardwire_setparity): Likewise.
2619 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
2621 * NEWS: Mention set/show serial parity command.
2622 * monitor.c (monitor_open): Call serial_setparity.
2623 * remote.c (remote_open_1): Likewise.
2624 * ser-base.c (ser_base_serparity): New function.
2625 * ser-base.h (ser_base_setparity): Add declaration.
2626 * ser-go32.c (dos_ops): Set "setparity" field.
2627 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
2629 (ser_windows_setparity): New function.
2630 (hardwire_ops): Add ser_windows_setparity.
2631 (tty_ops): Add NULL for setparity field.
2632 (pipe_ops): Add ser_base_setparity.
2633 (tcp_ops): Likewise.
2634 * ser-pipe.c (pipe_ops): Likewise.
2635 * ser-tcp.c (tcp_ops): Likewise.
2636 * ser-unix.c (hardwire_setparity): Add declaration.
2637 (hardwire_raw): Don't reset PARENB flag.
2638 (hardwire_setparity): New function.
2639 (hardwire_ops): Add hardwire_setparity.
2640 * serial.c (serial_setparity): New function.
2641 (serial_parity): New global.
2642 (parity_none, parity_odd, parity_even, parity_enums, parity):
2644 (set_parity): New function.
2645 (_initialize_serial): Add set/show serial parity commands.
2646 * serial.h (GDBPARITY_NONE): Define.
2647 (GDBPARITY_ODD): Define.
2648 (GDBPARITY_EVEN): Define.
2649 (serial_setparity) Add declaration.
2650 (struct serial_ops): Add setparity field.
2651 * target.h (serial_parity): Add declaration.
2653 2015-03-23 Keith Seitz <keiths@redhat.com>
2655 * linespec.c (linespec_lexer_lex_keyword): Update comment.
2657 2015-03-23 Keith Seitz <keiths@redhat.com>
2659 * breakpoint.c (parse_breakpoint_sals): Use
2660 linespec_lexer_lex_keyword to ascertain if the user specified
2662 * linespec.c [IF_KEYWORD_INDEX]: Define.
2663 (linespec_lexer_lex_keyword): Export.
2664 (struct ls_parser) <keyword_ok>: Remove.
2665 A keyword is only a keyword if not followed by another keyword.
2666 (linespec_lexer_lex_one): Remove keyword_ok handling.
2667 Add comment explaining why the parsing stream is not advanced
2668 when a keyword is seen.
2669 (parse_linespec): Remove parser->keyword_ok.
2670 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
2672 2015-03-23 Keith Seitz <keiths@redhat.com>
2675 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
2676 if we find a static method with DW_AT_vtable_elem_location.
2678 2015-03-21 Eli Zaretskii <eliz@gnu.org>
2680 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
2681 before the second loop, to avoid undefined behavior. Reported by
2682 Anton Blanchard <anton@samba.org>.
2684 2015-03-20 Keven Boell <keven.boell@intel.com>
2686 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
2687 data_location usage to linked list.
2688 (resolve_dynamic_type_internal): Adapt data_location to
2690 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
2691 (copy_type_recursive, copy_type): Add copy of linked list.
2692 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
2693 (struct dynamic_prop_list): New struct.
2694 * dwarf2read.c (set_die_type): Set data_location data.
2696 2015-03-20 Pedro Alves <palves@redhat.com>
2698 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
2699 inner block and make it const.
2700 * machoread.c (get_archive_prefix_len): Make "lparen" const.
2702 2015-03-20 Pedro Alves <palves@redhat.com>
2704 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
2705 * breakpoint.h (set_breakpoint_condition): Update declaration.
2707 2015-03-20 Pedro Alves <palves@redhat.com>
2709 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
2711 2015-03-20 Pedro Alves <palves@redhat.com>
2713 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
2715 2015-03-20 Pedro Alves <palves@redhat.com>
2717 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
2719 2015-03-20 Pedro Alves <palves@redhat.com>
2721 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
2722 (nto_init_solib_absolute_prefix): Likewise.
2724 2015-03-20 Pedro Alves <palves@redhat.com>
2726 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
2727 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
2729 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2731 * config/djgpp/README: Remove gdb.hp.
2733 2015-03-20 Yao Qi <yao.qi@linaro.org>
2735 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
2736 set_gdbarch_cannot_step_breakpoint.
2738 2015-03-19 Pedro Alves <palves@redhat.com>
2740 * linux-nat.c (linux_resume_one_lwp): Rename to ...
2741 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
2742 instead call perror_with_name.
2743 (check_ptrace_stopped_lwp_gone): New function.
2744 (linux_resume_one_lwp): Reimplement as wrapper around
2745 linux_resume_one_lwp_throw that swallows errors if the LWP is
2747 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
2748 swallows errors if the LWP is gone. Use
2749 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
2751 2015-03-19 Pedro Alves <palves@redhat.com>
2753 * linux-nat.c (status_callback): Return early if the LWP has no
2756 2015-03-19 Pedro Alves <palves@redhat.com>
2758 * linux-nat.c (select_event_lwp_callback): Update comment to no
2759 longer mention SIGTRAP.
2761 2015-03-18 Tristan Gingold <gingold@adacore.com>
2763 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
2764 redirection code to ...
2765 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
2766 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
2768 2015-03-18 Gary Benson <gbenson@redhat.com>
2770 (remote_protocol_features): Remove the "vFile:fstat" feature.
2771 (remote_hostio_fstat): Probe for "vFile:fstat" support.
2773 2015-03-11 Yao Qi <yao.qi@linaro.org>
2776 * aarch64-linux-tdep.c: Include xml-syscall.h
2777 (aarch64_linux_get_syscall_number): New function.
2778 (aarch64_linux_init_abi): Call
2779 set_gdbarch_get_syscall_number.
2780 * syscalls/aarch64-linux.xml: New file.
2782 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
2784 * ser-base.h (ser_base_setstopbits): Change second argument name
2785 from "rate" to "num".
2787 2015-03-17 Gary Benson <gbenson@redhat.com>
2788 Luke Allardyce <lukeallardyce@gmail.com>
2791 * common/common-remote-fileio.h (sys/stat.h): New include.
2792 (stuct stat): Remove forward declaration.
2794 2015-03-16 John Baldwin <jhb@FreeBSD.org>
2796 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
2797 before writing core register notes.
2799 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
2800 Pedro Alves <palves@redhat.com>
2802 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
2803 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
2804 (tgoto): Wrap with extern "C".
2806 2015-03-16 Pedro Alves <palves@redhat.com>
2807 Yuanhui Zhang <asmwarrior@gmail.com>
2809 * stub-termcap.c (tputs): Change prototype.
2811 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
2812 Pedro Alves <palves@redhat.com>
2814 * windows-nat.c (struct thread_info_struct): Rename to ...
2815 (struct windows_thread_info_struct): ... this.
2816 (thread_info): Rename to ...
2817 (windows_thread_info): ... this.
2820 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2821 Pedro Alves <palves@redhat.com>
2823 * NEWS: New Removed targets and native configurations.
2825 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2828 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
2829 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
2830 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
2831 ia64-hpux-tdep.h, solib-ia64-hpux.h.
2832 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
2833 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
2834 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
2836 * config/ia64/hpux.mh: Remove file.
2837 * config/pa/hpux.mh: Remove file.
2838 * configure: Rebuilt.
2839 * configure.ac (dlgetmodinfo, somread.o): Remove.
2840 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
2841 (ia64-*-hpux*): Remove its float format exception.
2842 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
2843 * hppa-hpux-nat.c: Remove file.
2844 * hppa-hpux-tdep.c: Remove file.
2845 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
2846 Move them here from hppa-tdep.h
2847 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
2848 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
2849 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
2850 Move them to hppa-tdep.c.
2851 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
2853 * ia64-hpux-nat.c: Remove file.
2854 * ia64-hpux-tdep.c: Remove file.
2855 * ia64-hpux-tdep.h: Remove file.
2856 * inf-ttrace.c: Remove file.
2857 * inf-ttrace.h: Remove file.
2858 * solib-ia64-hpux.c: Remove file.
2859 * solib-ia64-hpux.h: Remove file.
2860 * solib-pa64.c: Remove file.
2861 * solib-pa64.h: Remove file.
2862 * solib-som.c: Remove file.
2863 * solib-som.h: Remove file.
2864 * somread.c: Remove file.
2866 2015-03-13 John Baldwin <jhb@FreeBSD.org>
2868 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
2869 * config.in: Regenerate.
2870 * configure: Regenerate.
2871 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
2873 (fbsd_find_memory_regions): Use kinfo_getvmmap to
2874 enumerate memory regions if present.
2876 2015-03-13 John Baldwin <jhb@FreeBSD.org>
2878 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
2879 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
2881 (i386fbsd_sigtramp_p): Likewise.
2883 2015-03-12 John Baldwin <jhb@FreeBSD.org>
2885 * MAINTAINERS (Write After Approval): Add John Baldwin.
2887 2015-03-12 Gary Benson <gbenson@redhat.com>
2889 * solib.c (_initialize_solib): Make "set/show sysroot" use
2890 add_setshow_optional_filename_cmd so it can be restored to
2891 empty after being set.
2893 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
2895 * Makefile.in (SFILES): New source break-catch-syscall.c.
2896 (COMMON_OBS): New object break-catch-syscall.o.
2897 * break-catch-syscall.c: New file.
2898 * breakpoint.c: Remove inclusion of "xml-syscall.h".
2899 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
2900 (struct syscall_catchpoint): Likewise.
2901 (dtor_catch_syscall): Likewise.
2902 (catch_syscall_inferior_data): Likewise.
2903 (struct catch_syscall_inferior_data): Likewise.
2904 (get_catch_syscall_inferior_data): Likewise.
2905 (catch_syscall_inferior_data_cleanup): Likewise.
2906 (insert_catch_syscall): Likewise.
2907 (remove_catch_syscall): Likewise.
2908 (breakpoint_hit_catch_syscall): Likewise.
2909 (print_it_catch_syscall): Likewise.
2910 (print_one_catch_syscall): Likewise.
2911 (print_mention_catch_syscall): Likewise.
2912 (print_recreate_catch_syscall): Likewise.
2913 (catch_syscall_breakpoint_ops): Likewise.
2914 (syscall_catchpoint_p): Likewise.
2915 (create_syscall_event_catchpoint): Likewise.
2916 (catch_syscall_split_args): Likewise.
2917 (catch_syscall_command_1): Likewise.
2918 (is_syscall_catchpoint_enabled): Likewise.
2919 (catch_syscall_enabled): Likewise.
2920 (catching_syscall_number): Likewise.
2921 (catch_syscall_completer): Likewise.
2922 (clear_syscall_counts): Likewise.
2923 (initialize_breakpoint_ops): Move initialization of syscall
2924 catchpoints to break-catch-syscall.c.
2925 (_initialize_breakpoint): Move code related to syscall catchpoints
2926 to break-catch-syscall.c.
2928 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
2930 * breakpoint.c (breakpoint_find_if): New function.
2931 * breakpoint.h (breakpoint_find_if): New prototype.
2933 2015-03-11 Gary Benson <gbenson@redhat.com>
2935 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
2936 * remote-fileio.c (remote_fileio_to_host_uint): New function.
2937 (remote_fileio_to_host_ulong): Likewise.
2938 (remote_fileio_to_host_mode): Likewise.
2939 (remote_fileio_to_host_time): Likewise.
2940 (remote_fileio_to_host_stat): Likewise.
2941 * remote.c (PACKET_vFile_fstat): New enum value.
2942 (remote_protocol_features): Register the "vFile:fstat" feature.
2943 (remote_hostio_fstat): New function.
2944 (remote_bfd_iovec_stat): Use the above.
2945 (_initialize_remote): Register new "set/show remote
2946 hostio-fstat-packet" command.
2947 * symfile.c (separate_debug_file_exists): Update comment.
2948 * NEWS: Announce new vFile:fstat packet.
2950 2015-03-11 Gary Benson <gbenson@redhat.com>
2952 * common/common-remote-fileio.h: New file.
2953 * common/common-remote-fileio.c: Likewise.
2954 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
2955 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
2956 (COMMON_OBS): Add common-remote-fileio.o.
2957 (common-remote-fileio.o): New rule.
2958 * remote-fileio.h (common-remote-fileio.h): New include.
2959 * remote-fileio.c (gdb/fileio.h): Do not include.
2960 (remote_fileio_to_be): Moved to common-remote-fileio.h.
2961 (remote_fileio_to_fio_uint): Likewise.
2962 (remote_fileio_to_fio_time): Likewise.
2963 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
2964 (remote_fileio_to_fio_mode): Likewise.
2965 (remote_fileio_to_fio_ulong): Likewise.
2966 (remote_fileio_to_fio_stat): Likewise.
2968 2015-03-11 Andy Wingo <wingo@igalia.com>
2970 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
2971 we were checking the cached type, not the cached dynamic type.
2973 2015-03-11 Andy Wingo <wingo@igalia.com>
2975 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
2976 other strings, as these are on the GC'd heap, and will be
2977 collected along with the smob.
2979 2015-03-11 Andy Wingo <wingo@igalia.com>
2981 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
2982 (objfile_functions): Bind gdbscm_objfile_progspace to
2984 * guile/lib/gdb.scm: Add objfile-progspace to exports.
2986 2015-03-11 Andy Wingo <wingo@igalia.com>
2988 * guile/guile.c (_initialize_guile): Disable automatic
2989 finalization, if Guile offers us that possibility.
2990 * guile/guile.c (call_initialize_gdb_module):
2991 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
2992 finalizers in appropriate places.
2993 * configure.ac (AC_TRY_LIBGUILE): Add a check for
2994 scm_set_automatic_finalization_enabled.
2995 * configure: Regenerated.
2997 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
2999 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
3002 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
3004 * s390-linux-nat.c (struct arch_lwp_info): New.
3005 (s390_fix_watch_points): Rename to...
3006 (s390_prepare_to_resume): ...this. Skip the PER info update
3007 unless the watch points have changed.
3008 (s390_refresh_per_info, s390_new_thread): New functions.
3009 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
3010 s390_fix_watch_points.
3011 (s390_remove_watchpoint): Likewise.
3012 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
3013 Register s390_prepare_to_resume.
3015 2015-03-09 Pedro Alves <palves@redhat.com>
3018 2015-03-07 Pedro Alves <palves@redhat.com>
3019 * common/gdb_socket.h: New file.
3020 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
3022 (net_open): Use union gdb_sockaddr_u.
3024 2015-03-07 Pedro Alves <palves@redhat.com>
3026 * configure.ac (build_warnings): Move -Wmissing-prototypes
3027 -Wdeclaration-after-statement -Wmissing-parameter-type
3028 -Wold-style-declaration -Wold-style-definition to the C-specific
3030 * configure: Regenerate.
3032 2015-03-07 Pedro Alves <palves@redhat.com>
3034 * common/gdb_socket.h: New file.
3035 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
3037 (net_open): Use union gdb_sockaddr_u.
3039 2015-03-07 Pedro Alves <palves@redhat.com>
3041 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
3042 (exceptions_state_mc_action_iter)
3043 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
3045 [__cplusplus] (try_scope_depth): New global.
3046 [__cplusplus] (exception_try_scope_entry)
3047 (exception_try_scope_exit, gdb_exception_sliced_copy)
3048 (exception_rethrow): New functions.
3049 (throw_exception): In C++ mode, throw
3050 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
3051 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
3052 (throw_it): In C++ mode, use try_scope_depth.
3053 * common/common-exceptions.h [!__cplusplus]
3054 (exceptions_state_mc_action_iter)
3055 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
3057 [__cplusplus] (exception_try_scope_entry)
3058 (exception_try_scope_exit, exception_rethrow): Declare.
3059 [__cplusplus] (struct exception_try_scope): New struct.
3060 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
3062 (struct gdb_exception_RETURN_MASK_ALL)
3063 (struct gdb_exception_RETURN_MASK_ERROR)
3064 (struct gdb_exception_RETURN_MASK_QUIT): New types.
3066 2015-03-07 Pedro Alves <palves@redhat.com>
3068 * main.c (handle_command_errors): Remove volatile qualifier from
3071 2015-03-07 Pedro Alves <palves@redhat.com>
3073 * breakpoint.c (save_breakpoints): Adjust to avoid code between
3075 * gdbtypes.c (safe_parse_type): Remove empty line.
3076 (types_deeply_equal):
3077 * guile/scm-frame.c (gdbscm_frame_name):
3078 * linux-thread-db.c (find_new_threads_once):
3079 * python/py-breakpoint.c (bppy_get_commands):
3080 * record-btrace.c (record_btrace_insert_breakpoint)
3081 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
3082 (record_btrace_start_replaying): Adjust to avoid code between TRY
3085 2015-03-07 Pedro Alves <palves@redhat.com>
3087 * common/common-exceptions.c (struct catcher) <exception>: No
3088 longer a pointer to volatile exception. Now an exception value.
3089 <mask>: Delete field.
3090 (exceptions_state_mc_init): Remove all parameters. Adjust.
3091 (exceptions_state_mc): No longer pop the catcher here.
3092 (exceptions_state_mc_catch): New function.
3093 (throw_exception): Adjust.
3094 * common/common-exceptions.h (exceptions_state_mc_init): Remove
3096 (exceptions_state_mc_catch): Declare.
3097 (TRY_CATCH): Rename to ...
3098 (TRY): ... this. Remove EXCEPTION and MASK parameters.
3099 (CATCH, END_CATCH): New.
3100 All callers adjusted.
3102 2015-03-07 Tom Tromey <tromey@redhat.com>
3104 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
3106 2015-03-07 Pedro Alves <palves@redhat.com>
3108 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
3109 (amd64_epilogue_frame_cache): Normal exception handling code.
3110 * break-catch-throw.c (check_status_exception_catchpoint)
3111 (re_set_exception_catchpoint): Ditto.
3112 * cli/cli-interp.c (safe_execute_command):
3113 * cli/cli-script.c (script_from_file): Ditto.
3114 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
3116 * compile/compile-object-run.c (compile_object_run): Ditto.
3117 * cp-abi.c (baseclass_offset): Ditto.
3118 * cp-valprint.c (cp_print_value): Ditto.
3119 * exceptions.c (catch_exceptions_with_msg):
3120 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
3121 * frame.c (get_frame_address_in_block_if_available): Ditto.
3122 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
3123 (i386_sigtramp_frame_cache): Ditto.
3124 * infcmd.c (post_create_inferior): Ditto.
3125 * linespec.c (parse_linespec, find_linespec_symbols):
3126 * p-valprint.c (pascal_object_print_value): Ditto.
3127 * parse.c (parse_expression_for_completion): Ditto.
3128 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3129 * remote.c (remote_get_noisy_reply): Ditto.
3130 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
3131 * solib-svr4.c (solib_svr4_r_map): Ditto.
3133 2015-03-06 Gary Benson <gbenson@redhat.com>
3135 * common/common-utils.h (startswith): New inline function.
3136 All places where this logic was used updated to use the above.
3138 2015-03-05 Pedro Alves <palves@redhat.com>
3141 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
3142 after reading the breakpoint's shadow memory.
3144 2015-03-05 Mark Kettenis <kettenis@gnu.org>
3146 * hppabsd-nat.c: Remove file.
3147 * hppaobsd-nat.c: New file.
3148 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
3150 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
3153 2015-03-04 Pedro Alves <palves@redhat.com>
3155 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
3156 (target_decr_pc_after_break): Delete declaration.
3157 * target.c (default_target_decr_pc_after_break)
3158 (target_decr_pc_after_break): Delete.
3159 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
3160 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
3161 * linux-thread-db.c (check_event): Likewise.
3162 * infrun.c (adjust_pc_after_break): Likewise.
3163 * darwin-nat.c (cancel_breakpoint): Likewise.
3164 * aix-thread.c (aix_thread_wait): Likewise.
3165 * target-delegates.c: Regenerate.
3167 2015-03-04 Pedro Alves <palves@redhat.com>
3169 * linux-nat.c (save_sigtrap): Check for breakpoints before
3170 checking watchpoints.
3171 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
3172 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3173 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
3174 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
3175 (linux_nat_stopped_by_sw_breakpoint)
3176 (linux_nat_supports_stopped_by_sw_breakpoint)
3177 (linux_nat_stopped_by_hw_breakpoint)
3178 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
3179 (linux_nat_wait_1): Don't re-increment the PC if relying on
3180 SIGTRAP's siginfo->si_code.
3181 (linux_nat_add_target): Install new target methods.
3182 * linux-thread-db.c (check_event): Don't account for breakpoint PC
3183 offset if the target already adjusted the PC.
3184 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
3185 (GDB_ARCH_TRAP_BRKPT): New.
3186 (TRAP_HWBKPT): Define if not already defined.
3188 2015-03-04 Pedro Alves <palves@redhat.com>
3190 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
3191 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
3193 <stop_reason>: New field.
3194 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
3195 (packet_set_cmd_state): New function.
3196 (remote_protocol_features): Register the "swbreak" and "hwbreak"
3198 (remote_query_supported): If not disabled with the corresponding
3199 "set remote foo-packet" command, report support for the swbreak
3200 and hwbreak features.
3201 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
3203 <stop_reason>: New field.
3204 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
3205 (remote_wait_as): Adjust.
3206 (remote_stopped_by_sw_breakpoint)
3207 (remote_supports_stopped_by_sw_breakpoint)
3208 (remote_stopped_by_hw_breakpoint)
3209 (remote_supports_stopped_by_hw_breakpoint): New functions.
3210 (remote_stopped_by_watchpoint): New function.
3211 (init_remote_ops): Install them.
3212 (_initialize_remote): Register new "set/show remote
3213 swbreak-feature-packet" and "set/show remote
3214 swbreak-feature-packet" commands.
3216 2015-03-04 Pedro Alves <palves@redhat.com>
3218 * btrace.h: Include target/waitstatus.h.
3219 (struct btrace_thread_info) <stop_reason>: New field.
3220 * record-btrace.c (record_btrace_step_thread): Use
3221 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
3222 (record_btrace_decr_pc_after_break): Delete.
3223 (record_btrace_stopped_by_sw_breakpoint)
3224 (record_btrace_supports_stopped_by_sw_breakpoint)
3225 (record_btrace_stopped_by_hw_breakpoint)
3226 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
3227 (init_record_btrace_ops): Install them.
3228 * record-full.c (record_full_hw_watchpoint): Delete and replace
3230 (record_full_stop_reason): ... this throughout.
3231 (record_full_exec_insn): Adjust.
3232 (record_full_wait_1): Adjust. No longer re-increment the PC.
3233 (record_full_wait_1): Adjust. Use
3234 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
3235 (record_full_stopped_by_watchpoint): Adjust.
3236 (record_full_stopped_by_sw_breakpoint)
3237 (record_full_supports_stopped_by_sw_breakpoint)
3238 (record_full_supports_stopped_by_sw_breakpoint)
3239 (record_full_stopped_by_hw_breakpoint)
3240 (record_full_supports_stopped_by_hw_breakpoint): New functions.
3241 (init_record_full_ops, init_record_full_core_ops): Install them.
3242 * record.c (record_check_stopped_by_breakpoint): New function.
3243 * record.h: Include target/waitstatus.h.
3244 (record_check_stopped_by_breakpoint): New declaration.
3246 2015-03-04 Pedro Alves <palves@redhat.com>
3248 enum lwp_stop_reason -> enum target_stop_reason
3249 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
3250 (linux_nat_stopped_by_watchpoint, status_callback)
3251 (linux_nat_wait_1): Adjust.
3252 * linux-nat.h (enum lwp_stop_reason): Delete.
3253 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
3254 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
3255 * target/waitstatus.h (enum target_stop_reason): New.
3257 2015-03-04 Pedro Alves <palves@redhat.com>
3259 * breakpoint.c (need_moribund_for_location_type): New function.
3260 (bpstat_stop_status): Don't skipping checking moribund locations
3261 of breakpoint types which the target tell caused a stop.
3262 (program_breakpoint_here_p): New function, factored out from ...
3263 (bp_loc_is_permanent): ... this.
3264 (update_global_location_list): Don't create a moribund location if
3265 the target supports reporting stops of the type of the removed
3267 * breakpoint.h (program_breakpoint_here_p): New declaration.
3268 * infrun.c (adjust_pc_after_break): Return early if the target has
3269 already adjusted the PC. Add comments.
3270 (handle_signal_stop): If nothing explains a signal, and the target
3271 tells us the stop was caused by a software breakpoint, check if
3272 there's a breakpoint instruction in the memory. If so, adjust the
3273 PC before presenting the stop to the user. Otherwise, ignore the
3274 trap. If nothing explains a signal, and the target tells us the
3275 stop was caused by a hardware breakpoint, ignore the trap.
3276 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
3277 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
3278 to_supports_stopped_by_hw_breakpoint>: New fields.
3279 (target_stopped_by_sw_breakpoint)
3280 (target_supports_stopped_by_sw_breakpoint)
3281 (target_stopped_by_hw_breakpoint)
3282 (target_supports_stopped_by_hw_breakpoint): Define.
3283 * target-delegates.c: Regenerate.
3285 2015-03-04 Pedro Alves <palves@redhat.com>
3287 * infrun.c (follow_fork_inferior): Use the whole of the
3288 inferior_ptid and pending_follow.related_pid ptids instead of
3289 building ptids from the process components. Adjust verbose output
3290 to use target_pid_to_str.
3291 * linux-nat.c (linux_child_follow_fork): Use the whole of the
3292 inferior_ptid and pending_follow.related_pid ptids instead of
3293 building ptids from the process components.
3295 2015-03-04 Mark Kettenis <kettenis@gnu.org>
3297 * inf-ptrace.c [PT_GET_PROCESS_STATE]
3298 (inf_ptrace_insert_fork_catchpoint): New function.
3299 (inf_ptrace_remove_fork_catchpoint): New function.
3300 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
3302 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3304 * s390-linux-tdep.c (s390_register_name): Return empty string
3305 instead of NULL for registers that shouldn't be visible.
3307 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3309 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
3310 XML file for 64-bit targets.
3312 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
3314 * target.h (find_default_create_inferior): Remove declaration.
3315 (find_default_attach): Likewise.
3317 2015-03-03 Pedro Alves <palves@redhat.com>
3319 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
3320 Use ptid_get_pid to get the overall process id when resuming all
3323 2015-03-03 Pedro Alves <palves@redhat.com>
3325 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
3326 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
3327 * inf-ptrace.c (get_ptrace_pid): New function.
3328 (inf_ptrace_resume): Use it.
3329 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
3332 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
3334 * nat/linux-btrace.c: Include sys/utsname.h.
3335 (linux_determine_kernel_ptr_bits): New.
3336 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
3337 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
3340 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
3342 * btrace.c (ftrace_update_function): Treat return as tailcall for
3343 "_dl_runtime_resolve".
3345 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
3347 * btrace.h (btrace_function) <lbegin, lend>: Remove.
3348 * btrace.c (ftrace_debug): Do not print the line range.
3349 (ftrace_skip_file, ftrace_update_lines): Remove.
3350 (ftrace_new_function): Remove lbegin and lend initialization.
3351 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
3352 * record-btrace.c (btrace_compute_src_line_range): New.
3353 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
3355 2015-03-02 Pedro Alves <palves@redhat.com>
3357 * infrun.c (follow_exec): Delete all threads of the process except
3358 the event thread. Extended comments.
3360 2015-03-02 Joel Brobecker <brobecker@adacore.com>
3362 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
3364 2015-03-02 Joel Brobecker <brobecker@adacore.com>
3366 * utils.h: Remove <stdbool.h> #include.
3367 (producer_is_gcc): Change return type to "int".
3368 * utils.c (producer_is_gcc): Change return type to int.
3369 Return 1 instead of true, and 0 instead of false.
3370 Adjust function documentation accordingly.
3372 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
3374 * s390-linux-nat.c (have_regset_vxrs): New static variable.
3375 (s390_linux_fetch_inferior_registers): Handle vector registers, if
3377 (s390_linux_store_inferior_registers): Likewise.
3378 (s390_get_hwcap): Remove function. Embed its logic...
3379 (s390_read_description): ...here. Yield a target description with
3380 vector registers if applicable.
3381 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
3382 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
3383 "features/s390x-tevx-linux64.c".
3384 (struct gdbarch_tdep) <v0_full_regnum>: New field.
3385 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
3386 for "GNU/Linux-specific registers".
3387 (s390_dwarf_reg_r0l): New enum value.
3388 (s390_dwarf_reg_to_regnum): Support vector registers.
3389 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
3390 of GPR lower halves.
3391 (regnum_is_vxr_full): New function.
3392 (s390_register_name): New function.
3393 (s390_pseudo_register_name): Handle v0-v15, which are composed of
3394 f0-f15 and v0l-v15l.
3395 (s390_pseudo_register_type): Likewise.
3396 (s390_pseudo_register_read): Likewise.
3397 (s390_pseudo_register_write): Likewise.
3398 (s390_value_from_register): Account for the fact that values are
3399 placed left-justified in vector registers.
3400 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
3401 the vector reggroup and omit them from the general reggroup.
3402 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
3403 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
3404 (s390_iterate_over_regset_sections): Add iterations for the two
3406 (s390_core_read_description): Yield a target description with
3407 vector registers if applicable.
3408 (s390_gdbarch_init): Handle target descriptions with vector
3409 registers. Add "register_name" gdbarch method.
3410 (_initialize_s390_tdep): Call new tdesc initialization functions.
3411 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
3412 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
3413 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
3414 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
3415 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
3416 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
3417 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
3418 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
3419 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
3420 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
3421 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
3422 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
3423 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
3424 (S390_NUM_REGS): Adjust value.
3425 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
3426 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
3427 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
3428 * NEWS: Announce S/390 vector register support.
3430 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
3432 * features/s390-tevx-linux64.xml: New file.
3433 * features/s390-vx-linux64.xml: New file.
3434 * features/s390-vx.xml: New file.
3435 * features/s390x-tevx-linux64.xml: New file.
3436 * features/s390x-vx-linux64.xml: New file.
3437 * features/Makefile (WHICH): Add s390-vx-linux64,
3438 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
3439 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
3440 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
3442 * features/s390-tevx-linux64.c: New generated file.
3443 * features/s390-vx-linux64.c: Likewise.
3444 * features/s390x-tevx-linux64.c: Likewise.
3445 * features/s390x-vx-linux64.c: Likewise.
3446 * regformats/s390-tevx-linux64.dat: Likewise.
3447 * regformats/s390-vx-linux64.dat: Likewise.
3448 * regformats/s390x-tevx-linux64.dat: Likewise.
3449 * regformats/s390x-vx-linux64.dat: Likewise.
3451 2015-02-28 Doug Evans <xdje42@gmail.com>
3453 * symtab.h (struct symtab) <next>: Fix comment.
3455 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
3457 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
3460 2015-02-27 Pedro Alves <palves@redhat.com>
3462 * dtrace-probe.c (dtrace_probe_ops): Make extern.
3464 2015-02-27 Pedro Alves <palves@redhat.com>
3466 * common/common-exceptions.h (exception_none): Declare.
3467 * common/common-exceptions.c (exception_none): Moved from
3469 (exceptions_state_mc_init): Use exception_none.
3470 * exceptions.c (exception_none): Move to
3471 common/common-exceptions.c.
3472 * exceptions.h (exception_none): Move to
3473 common/common-exceptions.h.
3475 2015-02-27 Pedro Alves <palves@redhat.com>
3477 * main.c (catch_command_errors, catch_command_errors_const):
3478 Remove 'mask' argument. Adjust.
3479 (captured_main): Adjust callers.
3481 2015-02-27 Pedro Alves <palves@redhat.com>
3483 * python/python-internal.h: Include "extension-priv.h".
3485 2015-02-27 Pedro Alves <palves@redhat.com>
3487 * breakpoint.h (enum print_stop_action): Move further up in the
3490 2015-02-27 Pedro Alves <palves@redhat.com>
3492 * gdbarch.sh: Include regcache.h.
3493 * gdbarch.h: Regenerate.
3495 2015-02-27 Pedro Alves <palves@redhat.com>
3497 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
3498 Remove duplicate const.
3499 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
3502 2015-02-27 Pedro Alves <palves@redhat.com>
3504 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
3505 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
3506 * features/feature_to_c.sh: Tag the generated xml_builtin array
3507 with extern const in C++ mode.
3509 2015-02-27 Tom Tromey <tromey@redhat.com>
3511 * minidebug.c (struct lzma_stream): Rename to ...
3512 (struct gdb_lzma_stream): ... this.
3513 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
3515 2015-02-27 Pedro Alves <palves@redhat.com>
3517 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
3519 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3520 (mi_cmd_stack_list_variables): Use it.
3522 2015-02-27 Pedro Alves <palves@redhat.com>
3524 * x86-linux-nat.c (u_debugreg_offset): New function.
3525 (x86_linux_dr_get, x86_linux_dr_set): Use it.
3527 2015-02-27 Pedro Alves <palves@redhat.com>
3529 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
3531 Include break-common.h.
3533 2015-02-27 Tom Tromey <tromey@redhat.com>
3534 Pedro Alves <palves@redhat.com>
3536 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
3537 local used to iterate over enums.
3538 * completer.c (signal_completer): Likewise.
3539 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
3540 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
3541 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
3542 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
3543 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
3544 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
3545 * tui-wingeneral.c (tui_refresh_all): Likewise.
3547 2015-02-27 Pedro Alves <palves@redhat.com>
3549 * target.h: Include "infrun.h".
3551 2015-02-27 Pedro Alves <palves@redhat.com>
3553 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
3555 2015-02-27 Pedro Alves <palves@redhat.com>
3557 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
3559 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
3561 2015-02-27 Pedro Alves <palves@redhat.com>
3563 * cli-out.c (_rl_erase_entire_line): Move declaration out of
3564 cli_mld_erase_entire_line, and make it extern "C".
3565 * common/common-defs.h (EXTERN_C): New.
3566 * completer.c (_rl_completion_prefix_display_length)
3567 (_rl_print_completions_horizontally, QSFUNC): Move declarations
3568 out of gdb_display_match_list_1.
3569 (_rl_qsort_string_compare): Move declaration out of
3570 gdb_display_match_list_1, and make it extern "C".
3571 * defs.h (re_comp): Use EXTERN_C.
3572 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
3573 and make it extern "C".
3574 (monstartup): Move declaration out of maintenance_set_profile_cmd,
3575 and make it extern "C".
3576 (main): Move declaration out of maintenance_set_profile_cmd.
3577 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
3580 2015-02-27 Pedro Alves <palves@redhat.com>
3582 * python/python.c (GdbMethods): Rename to ...
3583 (python_GdbMethods): ... this and make extern.
3584 (GdbModuleDef): Rename to ...
3585 (python_GdbModuleDef): ... this and make extern.
3587 2015-02-27 Pedro Alves <palves@redhat.com>
3589 * record-btrace.c (set_record_btrace_cmdlist)
3590 (show_record_btrace_cmdlist): Remove redefinitions.
3592 2015-02-27 Tom Tromey <tromey@redhat.com>
3593 Pedro Alves <palves@redhat.com>
3595 * dwarf2-frame.c (enum cfa_how_kind, struct
3596 dwarf2_frame_state_reg_info): Move out of struct
3598 * dwarf2read.c (struct tu_stats): Move out of struct
3600 (struct file_entry): Move out of struct line_header.
3601 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
3602 typedef_field_list): Move out of struct field_info.
3603 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
3604 Move out of struct dynamic_prop.
3605 (union type_owner, union field_location, struct field, struct
3606 range_bounds, union type_specific): Move out of struct main_type.
3607 (struct fn_fieldlist, struct fn_field, struct typedef_field)
3608 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
3609 (struct call_site_target, union call_site_parameter_u, struct
3610 call_site_parameter): Move out of struct call_site.
3611 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
3613 (enum srcdest_kind): Move out of struct srcdest.
3614 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
3615 * prologue-value.h (enum prologue_value_kind): Move out of struct
3617 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
3619 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
3620 out of struct field_info.
3621 * symfile.h (struct other_sections): Move out of struct
3623 * symtab.c (struct symbol_cache_slot): Move out struct
3625 * target-descriptions.c (enum tdesc_type_kind): Move out of
3626 typedef struct tdesc_type.
3627 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
3628 struct tui_line_or_address.
3629 * value.c (enum internalvar_kind, union internalvar_data): Move
3630 out of struct internalvar.
3631 * xtensa-tdep.h (struct ctype_cache): Move out of struct
3634 2015-02-27 Tom Tromey <tromey@redhat.com>
3635 Pedro Alves <palves@redhat.com>
3637 Rename symbols whose names are reserved C++ keywords throughout.
3639 2015-02-27 Pedro Alves <palves@redhat.com>
3641 * Makefile.in (COMPILER): New, get it from autoconf.
3642 (COMPILE.pre, CC_LD): Use COMPILER.
3643 (CXX): Get from autoconf instead.
3644 (CXX_FOR_TARGET): Default to g++ instead of gcc.
3645 * acinclude.m4: Include build-with-cxx.m4.
3646 * build-with-cxx.m4: New file.
3647 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
3648 Disable -Werror by default if building in C++ mode.
3649 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
3650 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
3651 Run supported-warning-flags tests with the C++ compiler.
3652 Save/restore CXXFLAGS too.
3653 * configure: Regenerate.
3655 2015-02-27 Pedro Alves <palves@redhat.com>
3657 * libiberty.m4: New file.
3658 * acinclude.m4: Include libiberty.m4.
3659 * configure.ac: Call libiberty_INIT.
3660 * config.in, configure: Regenerate.
3662 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3664 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
3665 31-bit targets, but 64-bit targets as well.
3666 (s390_gnu_triplet_regexp): New function.
3667 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
3668 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
3671 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
3673 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
3674 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
3675 from CONTEXT_DEBUGGER.
3677 2015-02-26 Doug Evans <dje@google.com>
3679 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
3681 (set_type_vptr_fieldno): Ditto.
3682 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
3683 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
3685 2015-02-26 Pedro Alves <palves@redhat.com>
3687 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
3688 * complaints.c (vcomplaint): Pass argument FMT directly to
3689 printf-like functions instead of complaint->fmt.
3690 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
3691 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
3692 * compile/compile-loc2c.c (pushf, unary, binary): Add
3694 (do_compile_dwarf_expr_to_c): Pass string literal as format string
3696 (BINARY): Pass string literal as format string to 'binary'.
3697 * compile/compile-object-load.c (link_callbacks_einfo): Add
3699 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
3701 2015-02-26 Pedro Alves <palves@redhat.com>
3703 * windows-termcap.c: Rename to ...
3704 * stub-termcap.c: ... this. Adjust header line.
3705 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
3707 * configure: Regenerate.
3708 * configure.ac: Refer to stub-termcap.o instead of
3710 * gdb_curses.h: Mention stub-termcap.c instead of
3713 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3715 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
3716 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
3718 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
3720 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
3722 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3724 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
3725 bfd_canonicalize_symtab.
3727 2015-02-25 John Baldwin <jhb@FreeBSD.org>
3729 * amd64fbsd-nat.c: Include sys/user.h.
3730 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
3731 instead of KERN_PS_STRINGS to locate the signal trampoline.
3732 * i386fbsd-nat.c: Include sys/user.h.
3733 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
3734 instead of KERN_PS_STRINGS to locate the signal trampoline.
3735 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
3736 (amd64fbsd_sigtramp_p): New.
3737 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
3738 longer set default values.
3739 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
3740 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
3741 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
3742 (i386fbsd_freebsd4_sigtramp_start)
3743 (i386fbsd_freebsd4_sigtramp_middle)
3744 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
3745 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
3746 (i386fbsd_sigtramp_p): New.
3747 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
3748 longer set default values.
3749 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
3751 2015-02-25 John Baldwin <jhb@freebsd.org>
3753 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
3754 get_frame_register instead of frame_unwind_register_unsigned.
3756 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3759 * compile/compile-c-support.c (c_compute_program): Change // comment.
3760 * compile/compile-object-load.c (setup_sections): Change // comment.
3762 2015-02-26 Joel Brobecker <brobecker@adacore.com>
3765 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
3767 2015-02-23 Pedro Alves <palves@redhat.com>
3769 * remote.c (skip_to_semicolon): New function.
3770 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
3771 special case the stop reasons that look like hex numbers
3772 upfront. Instead handle real register numbers after matching
3773 all the known stop reasons.
3775 2015-02-21 Doug Evans <dje@google.com>
3777 PR c++/17976, symtab/17821
3778 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
3779 is_in_anonymous. All callers updated.
3780 (find_symbol_in_baseclass): Ditto.
3781 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
3782 for symbols in an anonymous namespace.
3783 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
3784 DW_AT_name directly.
3785 (dwarf2_name): Convert missing namespace name to
3786 CP_ANONYMOUS_NAMESPACE_STR.
3788 2015-02-20 Pedro Alves <palves@redhat.com>
3790 * linux-nat.c (linux_handle_extended_wait): Call
3791 thread_db_notice_clone whenever a new clone LWP is detected.
3792 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
3794 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
3795 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
3796 (linux_unstop_all_lwps): Declare.
3797 * linux-thread-db.c (struct thread_get_info_inout): Delete.
3798 (thread_get_info_callback): Delete.
3799 (thread_from_lwp): Use td_thr_get_info and record_thread.
3800 (thread_db_attach_lwp): Delete.
3801 (thread_db_notice_clone): New function.
3802 (try_thread_db_load_1): If /proc is mounted and shows the
3803 process'es task list, walk over all LWPs and call thread_from_lwp
3804 instead of relying on td_ta_thr_iter.
3805 (attach_thread): Don't call check_thread_signals here. Split the
3806 tail part of the function (which adds the thread to the core GDB
3808 (record_thread): ... this function. Call check_thread_signals
3810 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
3811 call thread_from_lwp.
3812 (thread_db_update_thread_list): Rename to ...
3813 (thread_db_update_thread_list_org): ... this.
3814 (thread_db_update_thread_list): New function.
3815 (thread_db_find_thread_from_tid): Delete.
3816 (thread_db_get_ada_task_ptid): Simplify.
3817 * nat/linux-procfs.c: Include <sys/stat.h>.
3818 (linux_proc_task_list_dir_exists): New function.
3819 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
3821 2015-02-20 Pedro Alves <palves@redhat.com>
3823 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
3824 main LWP. Handle the case of waitpid returning 0 if we're already
3825 attached to the LWP. Don't set the LWP's last_resume_kind to
3826 resume_stop if we already knew about the LWP.
3827 (linux_nat_filter_event): Add debug logs.
3829 2015-02-20 Pedro Alves <palves@redhat.com>
3831 * target.h (forward_target_decr_pc_after_break): Delete
3834 2015-02-20 Pedro Alves <palves@redhat.com>
3837 * linux-thread-db.c (thread_get_info_callback): Return early if
3838 the thread's lwp id is -1.
3840 2015-02-20 Joel Brobecker <brobecker@adacore.com>
3844 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
3846 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
3847 (dtrace_get_probes) Change type of variable 'dof'.
3849 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
3851 PR breakpoints/16812
3852 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
3853 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
3854 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
3856 2015-02-19 David Taylor <dtaylor@emc.com>
3858 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
3860 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
3862 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
3864 (tui_putc): Don't call tui_handle_resize_during_io.
3865 (tui_getc): Likewise.
3866 (tui_mld_getc): Likewise.
3867 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
3868 (tui_sigwinch_token): New static variable.
3869 (tui_initialize_win): Adjust documentation. Set
3871 (tui_async_resize_screen): New asynchronous callback.
3872 (tui_sigwinch_handler): Adjust documentation. Asynchronously
3873 invoke tui_async_resize_screen.
3875 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
3877 * configure: Regenerated.
3878 * configure.ac: Use GDB_AC_TRANSFORM.
3879 * Makefile.in (aclocal_m4_deps): Added transform.m4.
3880 * acinclude.m4: sinclude transform.m4.
3881 * transform.m4: New file.
3882 (GDB_AC_TRANSFORM): New macro.
3884 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3886 * NEWS: Announce the support for DTrace SDT probes.
3888 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3890 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
3891 (amd64_dtrace_parse_probe_argument): New function.
3892 (amd64_dtrace_probe_is_enabled): Likewise.
3893 (amd64_dtrace_enable_probe): Likewise.
3894 (amd64_dtrace_disable_probe): Likewise.
3895 (amd64_linux_init_abi): Register the
3896 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
3897 `gdbarch_dtrace_disable_probe' and
3898 `gdbarch_dtrace_probe_is_enabled' hooks.
3899 (amd64_dtrace_disabled_probe_sequence_1): New constant.
3900 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
3901 (amd64_dtrace_enable_probe_sequence): Likewise.
3902 (amd64_dtrace_disable_probe_sequence): Likewise.
3904 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3906 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
3907 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
3908 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
3910 * Makefile.in (SFILES): dtrace-probe.c added.
3911 * configure: Regenerate.
3912 * dtrace-probe.c: New file.
3913 (SHT_SUNW_dof): New constant.
3914 (dtrace_probe_type): New enum.
3915 (dtrace_probe_arg): New struct.
3916 (dtrace_probe_arg_s): New typedef.
3917 (struct dtrace_probe_enabler): New struct.
3918 (dtrace_probe_enabler_s): New typedef.
3919 (dtrace_probe): New struct.
3920 (dtrace_probe_is_linespec): New function.
3921 (dtrace_dof_sect_type): New enum.
3922 (dtrace_dof_dofh_ident): Likewise.
3923 (dtrace_dof_encoding): Likewise.
3924 (DTRACE_DOF_ENCODE_LSB): Likewise.
3925 (DTRACE_DOF_ENCODE_MSB): Likewise.
3926 (dtrace_dof_hdr): New struct.
3927 (dtrace_dof_sect): Likewise.
3928 (dtrace_dof_provider): Likewise.
3929 (dtrace_dof_probe): Likewise.
3930 (DOF_UINT): New macro.
3931 (DTRACE_DOF_PTR): Likewise.
3932 (DTRACE_DOF_SECT): Likewise.
3933 (dtrace_process_dof_probe): New function.
3934 (dtrace_process_dof): Likewise.
3935 (dtrace_build_arg_exprs): Likewise.
3936 (dtrace_get_arg): Likewise.
3937 (dtrace_get_probes): Likewise.
3938 (dtrace_get_probe_argument_count): Likewise.
3939 (dtrace_can_evaluate_probe_arguments): Likewise.
3940 (dtrace_evaluate_probe_argument): Likewise.
3941 (dtrace_compile_to_ax): Likewise.
3942 (dtrace_probe_destroy): Likewise.
3943 (dtrace_gen_info_probes_table_header): Likewise.
3944 (dtrace_gen_info_probes_table_values): Likewise.
3945 (dtrace_probe_is_enabled): Likewise.
3946 (dtrace_probe_ops): New variable.
3947 (info_probes_dtrace_command): New function.
3948 (_initialize_dtrace_probe): Likewise.
3949 (dtrace_type_name): Likewise.
3951 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3953 * gdbarch.sh (dtrace_parse_probe_argument): New.
3954 (dtrace_probe_is_enabled): Likewise.
3955 (dtrace_enable_probe): Likewise.
3956 (dtrace_disable_probe): Likewise.
3957 * gdbarch.c: Regenerate.
3958 * gdbarch.h: Regenerate.
3960 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3962 * stap-probe.c (stap_probe_ops): Add NULLs in the static
3963 stap_probe_ops for `enable_probe' and `disable_probe'.
3964 * probe.c (enable_probes_command): New function.
3965 (disable_probes_command): Likewise.
3966 (_initialize_probe): Define the cli commands `enable probe' and
3968 (parse_probe_linespec): New function.
3969 (info_probes_for_ops): Use parse_probe_linespec.
3970 * probe.h (probe_ops): New hooks `enable_probe' and
3973 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3975 * probe.c (compute_probe_arg): Moved from stap-probe.c
3976 (compile_probe_arg): Likewise.
3977 (probe_funcs): Likewise.
3978 * stap-probe.c (compute_probe_arg): Moved to probe.c.
3979 (compile_probe_arg): Likewise.
3980 (probe_funcs): Likewise.
3982 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3984 * probe.c (print_ui_out_not_applicables): New function.
3985 (exists_probe_with_pops): Likewise.
3986 (info_probes_for_ops): Do not include column headers for probe
3987 types for which no probe has been actually found on any object.
3988 Also invoke `print_ui_out_not_applicables' in order to match the
3989 column rows with the header when probes of several types are
3991 Print the "Type" column.
3992 * probe.h (probe_ops): Added a new probe operation `type_name'.
3993 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
3994 (stap_type_name): New function.
3996 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
3998 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
3999 (key_is_command_char): Delete.
4001 2015-02-17 Pedro Alves <palves@redhat.com>
4003 * tui/tui.c (tui_enable): Resize windows before anything
4004 might show a window.
4006 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
4009 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
4010 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
4012 * aarch64-tdep.h (tdesc_aarch64): Declare.
4014 2015-02-12 Mark Wielaard <mjw@redhat.com>
4016 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
4018 2015-02-13 Doug Evans <dje@google.com>
4020 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
4021 anonymous_namespace to is_in_anonymous for consistency with the rest
4023 (cp_lookup_bare_symbol): Fix typo in comment.
4024 (cp_search_static_and_baseclasses): Ditto.
4025 (search_symbol_list): Use vertical space in comment better.
4026 (reset_directive_searched): Ditto. Fix typo.
4027 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
4029 2015-02-13 Yao Qi <yao.qi@arm.com>
4031 * MAINTAINERS: Update my email address.
4033 2015-02-12 Doug Evans <dje@google.com>
4035 * symtab.c (completion_list_add_name): Fix memory leak.
4037 2015-02-12 Doug Evans <dje@google.com>
4039 * completer.c (complete_line): Remove incorrect comment.
4041 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4043 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
4044 (py_print_frame): Use RETURN_MASK_ERROR.
4046 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4048 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
4049 function comment. Wrap all function that can throw in cleanups.
4050 (gdbpy_apply_frame_filter): Wrap all function that can throw in
4053 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4055 * python/py-framefilter.c (py_print_frame): Substitute goto error.
4056 Remove the error label.
4058 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4060 * python/py-framefilter.c (py_print_frame): Put conditional code paths
4061 with goto first, indent the former else codepath left. Put variable
4062 'elided' to a new inner block.
4064 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4066 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
4068 2015-02-11 Pedro Alves <palves@redhat.com>
4070 * xcoffread.c (within_function): Delete.
4072 2015-02-11 Tom Tromey <tromey@redhat.com>
4073 Pedro Alves <palves@redhat.com>
4075 * breakpoint.c (base_breakpoint_ops): Delete.
4076 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
4077 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
4078 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
4079 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
4080 * python/py-arch.c (arch_object_type): Make extern.
4081 * python/py-block.c (block_syms_iterator_object_type): Make extern.
4082 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
4083 * python/py-cmd.c (cmdpy_object_type): Make extern.
4084 * python/py-continueevent.c (continue_event_object_type)
4085 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
4086 parameter. Update all callers.
4087 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
4088 * python/py-exitedevent.c (exited_event_object_type): Make extern.
4089 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
4090 * python/py-function.c (fnpy_object_type): Make extern.
4091 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
4092 * python/py-infevents.c (call_pre_event_object_type)
4093 (inferior_call_post_event_object_type).
4094 (memory_changed_event_object_type): Make extern.
4095 * python/py-infthread.c (thread_object_type): Make extern.
4096 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
4097 * python/py-linetable.c (linetable_entry_object_type)
4098 (linetable_object_type, ltpy_iterator_object_type): Make extern.
4099 * python/py-newobjfileevent.c (new_objfile_event_object_type)
4100 (clear_objfiles_event_object_type): Make extern.
4101 * python/py-objfile.c (objfile_object_type): Make extern.
4102 * python/py-param.c (parmpy_object_type): Make extern.
4103 * python/py-progspace.c (pspace_object_type): Make extern.
4104 * python/py-signalevent.c (signal_event_object_type): Make extern.
4105 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
4106 * python/py-type.c (type_object_type, field_object_type)
4107 (type_iterator_object_type): Make extern.
4108 * python/python.c (python_extension_script_ops)
4109 (python_extension_ops): Make extern.
4110 * stap-probe.c (stap_probe_ops): Make extern.
4112 2015-02-11 Pedro Alves <pedro@codesourcery.com>
4114 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
4115 because the event thread is not the current thread.
4117 2015-02-11 Doug Evans <xdje42@gmail.com>
4119 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
4120 been initialized yet, return NULL.
4122 2015-02-11 Doug Evans <dje@google.com>
4124 * symfile.h (new_symfile_objfile): Delete.
4125 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
4126 All callers updated.
4128 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
4130 * tui/tui-io.c (tui_handle_resize_during_io): Call
4131 tui_update_gdb_sizes() after resizing the screen.
4132 * tui/tui.c (tui_enable): Resize the terminal before
4133 calling tui_update_gdb_sizes().
4135 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
4137 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
4138 line before printing a newline.
4140 2015-02-11 Mark Wielaard <mjw@redhat.com>
4142 * utils.c (producer_is_gcc): Return true or false.
4144 2015-02-10 Mark Wielaard <mjw@redhat.com>
4146 * utils.h (producer_is_gcc): Change return type to bool. Add major
4148 * utils.c (producer_is_gcc): Likewise.
4149 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
4150 * dwarf2read.c (check_producer): Likewise.
4152 2015-02-10 Pedro Alves <palves@redhat.com>
4154 * infrun.c (displaced_step_fixup): Switch to the event thread
4155 before calling gdbarch_displaced_step_fixup.
4157 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
4159 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
4161 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
4163 * ada-varobj.c (ada_name_of_child): Constify parent.
4164 (ada_path_expr_of_child): Same.
4165 (ada_value_of_child): Same.
4166 (ada_type_of_child): Same.
4167 * c-varobj.c (c_is_path_expr_parent): Same.
4168 (c_describe_child): Same.
4169 (c_name_of_child): Same.
4170 (c_value_of_child): Same.
4171 (c_type_of_child): Same.
4172 (cplus_number_of_children): Same.
4173 (cplus_describe_child): Constify var.
4174 (cplus_name_of_child): Constify parent.
4175 (cplus_value_of_child): Same.
4176 (cplus_type_of_child): Same.
4177 * jv-varobj.c (java_name_of_child): Same.
4178 (java_value_of_child): Same.
4179 (java_type_of_child): Same.
4180 * varobj.c (value_of_child): Same.
4181 (varobj_default_is_path_expr_parent): Constify var, parent and return
4183 (varobj_get_path_expr): Constify var, modify path_expr through
4185 (install_new_value): Constify parent.
4186 (value_of_child): Constify parent.
4187 * varobj.h (struct varobj): Constify parent.
4188 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
4190 (varobj_get_path_expr): Constify var.
4191 (varobj_get_path_expr_parent): Constify var and return value.
4193 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
4195 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
4196 (arm_prologue_this_id): Move PC and SP limit checks to
4197 arm_prologue_unwind_stop_reason.
4198 (arm_prologue_unwind) <stop_reason> : Set to
4199 arm_prologue_unwind_stop_reason.
4201 2015-02-09 Mark Wielaard <mjw@redhat.com>
4203 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
4204 DW_LANG_Fortran08 as language_fortran.
4206 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
4209 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
4210 of pointer against char.
4212 2015-02-09 Mark Wielaard <mjw@redhat.com>
4214 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
4215 (c_type_print_modifier): Likewise.
4216 * dwarf2read.c (read_tag_atomic_type): New function.
4217 (read_type_die_1): Handle DW_TAG_atomic_type.
4218 * gdbtypes.c (make_atomic_type): New function.
4219 (recursive_dump_type): Handle TYPE_ATOMIC.
4220 * gdbtypes.h (enum type_flag_values): Renumber.
4221 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
4222 (TYPE_ATOMIC): New macro.
4223 (make_atomic_type): Declare.
4225 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4227 * btrace.c (ftrace_find_call): Skip gaps.
4228 (ftrace_new_function): Initialize level.
4229 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
4230 (ftrace_new_switch): Update
4232 (ftrace_new_gap): New.
4233 (ftrace_update_function): Create new function after gap.
4234 (btrace_compute_ftrace_bts): Create gap on error.
4235 (btrace_stitch_bts): Update parameters. Clear trace if it
4237 (btrace_stitch_trace): Update parameters. Update callers.
4238 (btrace_clear): Reset the number of gaps.
4239 (btrace_insn_get): Return NULL if the iterator points to a gap.
4240 (btrace_insn_number): Return zero if the iterator points to a gap.
4241 (btrace_insn_end): Allow gaps at the end.
4242 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
4243 (btrace_find_insn_by_number): Assert that the found iterator does
4245 (btrace_call_next, btrace_call_prev): Assert that the last function
4247 * btrace.h (btrace_bts_error): New.
4248 (btrace_function): Update comment.
4249 (btrace_function) <insn, insn_offset, number>: Update comment.
4250 (btrace_function) <errcode>: New.
4251 (btrace_thread_info) <ngaps>: New.
4252 (btrace_thread_info) <replay>: Update comment.
4253 (btrace_insn_get): Update comment.
4254 * record-btrace.c (btrace_ui_out_decode_error): New.
4255 (record_btrace_info): Print number of gaps.
4256 (btrace_insn_history, btrace_call_history): Call
4257 btrace_ui_out_decode_error for gaps.
4258 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
4260 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4262 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
4263 * nat/linux-btrace.c: (btrace_this_cpu): New.
4264 (cpu_supports_bts): Call btrace_this_cpu.
4265 (intel_supports_bts): Add cpu parameter.
4267 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4269 * btrace.h (btrace_insn_class): New.
4270 (btrace_insn) <size, iclass>: New.
4271 * btrace.c (ftrace_find_call): Update parameters. Update users.
4272 Use instruction classification.
4273 (ftrace_new_return): Update parameters. Update users.
4274 (ftrace_update_function): Update parameters. Update users. Use
4275 instruction classification.
4276 (ftrace_update_insns): Update parameters. Update users.
4277 (ftrace_classify_insn): New.
4278 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
4279 TRY_CATCH around call to gdb_insn_length.
4281 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4283 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
4284 Update parameters. Update users.
4286 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4288 * btrace.c (parse_xml_btrace_conf_bts): Add size.
4289 (btrace_conf_bts_attributes): New.
4290 (btrace_conf_children): Add attributes.
4291 * common/btrace-common.h (btrace_config_bts): New.
4292 (btrace_config)<bts>: New.
4293 (btrace_config): Update comment.
4294 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
4296 * features/btrace-conf.dtd: Increment version. Add size
4297 attribute to bts element.
4298 * record-btrace.c (set_record_btrace_bts_cmdlist,
4299 show_record_btrace_bts_cmdlist): New.
4300 (record_btrace_adjust_size, record_btrace_print_bts_conf,
4301 record_btrace_print_conf, cmd_set_record_btrace_bts,
4302 cmd_show_record_btrace_bts): New.
4303 (record_btrace_info): Call record_btrace_print_conf.
4304 (_initialize_record_btrace): Add commands.
4305 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
4306 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
4307 (btrace_sync_conf): Synchronize bts size.
4308 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
4309 * NEWS: Announce new commands and new packets.
4311 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4313 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
4314 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
4315 (x86_linux_btrace_conf): New.
4316 (x86_linux_create_target): Initialize to_btrace_conf.
4317 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
4318 Check format. Split into this and ...
4319 (linux_enable_bts): ... this.
4320 (linux_btrace_conf): New.
4321 (perf_event_skip_record): Renamed into ...
4322 (perf_event_skip_bts_record): ... this. Updated users.
4323 (linux_disable_btrace): Split into this and ...
4324 (linux_disable_bts): ... this.
4325 (linux_read_btrace): Check format.
4326 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
4327 (linux_btrace_conf): New.
4328 (btrace_target_info)<ptid>: Moved.
4329 (btrace_target_info)<conf>: New.
4330 (btrace_target_info): Split into this and ...
4331 (btrace_tinfo_bts): ... this. Updated users.
4332 * btrace.c (btrace_enable): Update parameters.
4333 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
4334 (btrace_conf_children, btrace_conf_attributes)
4335 (btrace_conf_elements): New.
4336 * btrace.h (btrace_enable): Update parameters.
4337 (btrace_conf, parse_xml_btrace_conf): New.
4338 * common/btrace-common.h (btrace_config): New.
4339 * feature/btrace-conf.dtd: New.
4340 * record-btrace.c (record_btrace_conf): New.
4341 (record_btrace_cmdlist): New.
4342 (record_btrace_enable_warn, record_btrace_open): Pass
4343 &record_btrace_conf.
4344 (record_btrace_info): Print recording format.
4345 (cmd_record_btrace_bts_start): New.
4346 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
4347 (_initialize_record_btrace): Add "record btrace bts" subcommand.
4348 Add "record bts" alias command.
4349 * remote.c (remote_state)<btrace_config>: New.
4350 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
4351 (remote_protocol_features): Add qXfer:btrace-conf:read.
4352 (remote_open_1): Call remote_btrace_reset.
4353 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
4354 (btrace_target_info)<conf>: New.
4355 (btrace_sync_conf, btrace_read_config): New.
4356 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
4358 (remote_btrace_conf): New.
4359 (init_remote_ops): Initialize to_btrace_conf.
4360 (_initialize_remote): Add qXfer:btrace-conf packet.
4361 * target.c (target_enable_btrace): Update parameters.
4362 (target_btrace_conf): New.
4363 * target.h (target_enable_btrace): Update parameters.
4364 (target_btrace_conf): New.
4365 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
4366 (target_ops)<to_enable_btrace>: Update parameters and comment.
4367 (target_ops)<to_btrace_conf>: New.
4368 * target-delegates: Regenerate.
4369 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
4370 (target_debug_print_const_struct_btrace_target_info_p): New.
4371 * NEWS: Announce new command and new packet.
4373 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4375 * nat/linux-btrace.h (perf_event_buffer): New.
4376 (btrace_target_info) <buffer, size, data_head>: Replace with ...
4378 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
4379 (perf_event_buffer_size, perf_event_buffer_begin)
4380 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
4382 (perf_event_new_data): New.
4384 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4386 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
4387 * record-btrace.c (record_btrace_open): Remove call to
4388 target_supports_btrace.
4389 * remote.c (remote_supports_btrace): Update parameters.
4390 * target.c (target_supports_btrace): Update parameters.
4391 * target.h (to_supports_btrace, target_supports_btrace): Update
4393 * target-delegates.c: Regenerate.
4394 * target-debug.h (target_debug_print_enum_btrace_format): New.
4395 * nat/linux-btrace.c
4396 (kernel_supports_btrace): Rename into ...
4397 (kernel_supports_bts): ... this. Update users. Update warning text.
4398 (intel_supports_btrace): Rename into ...
4399 (intel_supports_bts): ... this. Update users.
4400 (cpu_supports_btrace): Rename into ...
4401 (cpu_supports_bts): ... this. Update users.
4402 (linux_supports_btrace): Update parameters. Split into this and ...
4403 (linux_supports_bts): ... this.
4404 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
4406 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4408 * Makefile.in (SFILES): Add common/btrace-common.c.
4409 (COMMON_OBS): Add common/btrace-common.o.
4410 (btrace-common.o): Add build rules.
4411 * btrace.c (parse_xml_btrace): Update parameters.
4412 (parse_xml_btrace_block): Set format field.
4413 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
4414 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
4415 (btrace_compute_ftrace): Split into this and...
4416 (btrace_compute_ftrace_bts): ...this.
4417 (btrace_stitch_trace): Split into this and...
4418 (btrace_stitch_bts): ...this.
4419 * btrace.h (parse_xml_btrace): Update parameters.
4420 (make_cleanup_btrace_data): New.
4421 * common/btrace-common.c: New.
4422 * common/btrace-common.h: Include common-defs.h.
4423 (btrace_block_s): Update comment.
4424 (btrace_format): New.
4425 (btrace_format_string): New.
4426 (btrace_data_bts): New.
4428 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
4429 * remote.c (remote_read_btrace): Update parameters.
4430 * target.c (target_read_btrace): Update parameters.
4431 * target.h (target_read_btrace): Update parameters.
4432 (target_ops)<to_read_btrace>: Update parameters.
4433 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
4434 * target-delegates.c: Regenerate.
4435 * target-debug (target_debug_print_struct_btrace_data_p): New.
4436 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
4437 (linux_read_bts): ...this.
4438 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
4440 2015-02-06 Doug Evans <dje@google.com>
4442 * remote-m32r-sdi.c: Include symfile.h.
4444 2015-02-06 Doug Evans <dje@google.com>
4446 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
4447 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
4450 2015-02-06 Pedro Alves <palves@redhat.com>
4452 * linux-thread-db.c (find_new_threads_callback): Add debug output.
4454 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
4457 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
4458 (enable_count_command): Check args for NULL value.
4460 2015-02-05 Doug Evans <xdje42@gmail.com>
4462 * guile/scm-frame.c: Fix spelling errors in a comment.
4464 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4466 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
4467 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
4470 2015-02-04 Pedro Alves <palves@redhat.com>
4472 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
4473 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
4475 (resume_stopped_resumed_lwps): Don't check whether the thread is
4476 marked as executing.
4477 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
4479 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
4481 * regset.h (struct regset): Add flags field.
4482 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
4483 * corelow.c (get_core_register_section): Add warning if the size
4484 exceeds the requested size and the regset does not have the
4485 REGSET_VARIABLE_SIZE flag set.
4486 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
4488 * armbsd-tdep.c (armbsd_gregset): Likewise.
4489 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4490 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
4491 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
4492 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
4494 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
4496 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
4497 For ".reg-xstate", explicitly specify the requested section size
4498 via X86_XSTATE_SIZE instead of just 0 on input and
4499 X86_XSTATE_MAX_SIZE on output.
4500 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
4503 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
4506 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
4507 function type, particularly its SIZE parameter.
4508 * gdbarch.h: Regenerate.
4509 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
4510 actual against required size using ">=" instead of "==".
4511 (amd64_collect_fpregset): Likewise.
4512 * i386-tdep.c (i386_supply_gregset): Likewise.
4513 (i386_collect_gregset): Likewise.
4514 (i386_supply_fpregset): Likewise.
4515 (i386_collect_fpregset): Likewise.
4516 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
4517 (mips_fill_gregset_wrapper): Likewise.
4518 (mips_supply_fpregset_wrapper): Likewise.
4519 (mips_fill_fpregset_wrapper): Likewise.
4520 (mips64_supply_gregset_wrapper): Likewise.
4521 (mips64_fill_gregset_wrapper): Likewise.
4522 (mips64_supply_fpregset_wrapper): Likewise.
4523 (mips64_fill_fpregset_wrapper): Likewise.
4524 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
4525 (am33_supply_fpregset_method): Likewise.
4526 (am33_collect_gregset_method): Likewise.
4527 (am33_collect_fpregset_method): Likewise.
4529 2015-02-04 Doug Evans <dje@google.com>
4530 Pedro Alves <palves@redhat.com>
4531 Eli Zaretskii <eliz@gnu.org>
4534 * tui/tui-command.c (tui_refresh_cmd_win): New function.
4535 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
4536 * tui/tui-file.c: #include tui/tui-command.h.
4537 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
4538 (tui_file_flush): Refresh command window if stream is gdb_stdout.
4539 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
4541 2015-02-04 Pedro Alves <palves@redhat.com>
4544 * event-loop.c (gdb_do_one_event): Add default switch case.
4546 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4548 Filter out inferior gcc option -fpreprocessed.
4549 * compile/compile.c (filter_args): New function.
4552 2015-02-03 Pedro Alves <palves@redhat.com>
4554 * event-loop.c: Don't declare nor define a queue type for
4556 (event_queue): Delete.
4557 (create_event, create_file_event, gdb_event_xfree)
4558 (initialize_event_loop, process_event): Delete.
4559 (gdb_do_one_event): Return as soon as one event is handled.
4560 (handle_file_event): Change prototype. Used the passed in
4561 file_handler pointer and ready_mask instead of looping over all
4563 (gdb_wait_for_event): Update the poll/select timeouts before
4564 blocking. Run event handlers directly instead of queueing events.
4565 Return as soon as one event is handled.
4566 (struct async_event_handler_data): Delete.
4567 (invoke_async_event_handler): Delete.
4568 (check_async_event_handlers): Change return type to int. Run
4569 event handlers directly instead of queueing events. Return as
4570 soon as one event is handled.
4571 (handle_timer_event): Delete.
4572 (update_wait_timeout): New function, factored out from
4574 (poll_timers): Reimplement.
4575 * event-loop.h (initialize_event_loop): Delete declaration.
4576 * top.c (gdb_init): Don't call initialize_event_loop.
4578 2015-02-03 Pedro Alves <palves@redhat.com>
4580 * event-loop.c (clear_async_event_handler): New function.
4581 * event-loop.h (clear_async_event_handler): New declaration.
4582 * record-btrace.c (record_btrace_async): New function.
4583 (init_record_btrace_ops): Install record_btrace_async.
4584 * record-full.c (record_full_async): New function.
4585 (record_full_resume): Don't mark the async event source here.
4586 (init_record_full_ops): Install record_full_async.
4587 (record_full_core_resume): Don't mark the async event source here.
4588 (init_record_full_core_ops): Install record_full_async.
4589 * remote.c (remote_async): Mark and clear the async stop reply
4590 queue event-loop token as appropriate.
4592 2015-02-03 Pedro Alves <palves@redhat.com>
4594 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
4595 target_is_async_p instead of target_can_async.
4596 (linux_nat_wait): Use target_is_async_p instead of
4597 target_can_async. Don't enable async here.
4598 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
4599 target_is_async_p instead of target_can_async.
4601 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
4603 * varobj.h (lang_varobj_ops): Mention which return values need
4606 2015-02-02 Joel Brobecker <brobecker@adacore.com>
4608 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
4610 2015-02-02 Joel Brobecker <brobecker@adacore.com>
4613 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
4614 results found in the cache.
4616 2015-02-02 Joel Brobecker <brobecker@adacore.com>
4619 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
4620 when allocating a new one.
4622 2015-02-01 Tom Tromey <tom@tromey.com>
4624 * MAINTAINERS: Remove myself.
4626 2015-01-31 Doug Evans <xdje42@gmail.com>
4628 * dwarf2read.c (process_structure_scope): Update setting of
4629 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
4630 * gdbtypes.c (internal_type_vptr_fieldno): New function.
4631 (set_type_vptr_fieldno): New function.
4632 (internal_type_vptr_basetype): New function.
4633 (set_type_vptr_basetype): New function.
4634 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
4636 (allocate_cplus_struct_type): Initialize vptr_fieldno.
4637 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
4638 (print_cplus_stuff): ... moved here.
4639 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
4640 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
4642 (struct cplus_struct_type): ... here. All uses updated.
4643 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
4644 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
4645 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
4646 * stabsread.c (read_tilde_fields): Update setting of
4647 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
4649 2015-01-31 Doug Evans <xdje42@gmail.com>
4651 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
4653 (cp_print_class_member): Rename local domain to self_type.
4654 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
4655 domain_type to self_type.
4656 (set_die_type) <need_gnat_info>: Handle
4657 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
4658 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
4659 TYPE_SPECIFIC_SELF_TYPE.
4660 * gdbtypes.c (internal_type_self_type): New function.
4661 (set_type_self_type): New function.
4662 (smash_to_memberptr_type): Rename parameter domain to self_type.
4663 Update setting of TYPE_SELF_TYPE.
4664 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
4665 (smash_to_method_type): Rename parameter domain to self_type.
4666 Update setting of TYPE_SELF_TYPE.
4667 (check_stub_method): Call smash_to_method_type.
4668 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
4669 (copy_type_recursive): Ditto.
4670 * gdbtypes.h (enum type_specific_kind): New value
4671 TYPE_SPECIFIC_SELF_TYPE.
4672 (struct main_type) <type_specific>: New member self_type.
4673 (struct cplus_struct_type) <fn_field.type>: Update comment.
4674 (TYPE_SELF_TYPE): Rewrite.
4675 (internal_type_self_type, set_type_self_type): Declare.
4676 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
4678 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
4679 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
4681 * stabsread.c (read_member_functions): Mark methods with
4682 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
4685 2015-01-31 Doug Evans <xdje42@gmail.com>
4687 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
4690 2015-01-31 Doug Evans <xdje42@gmail.com>
4692 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
4693 or unions. Return zero if union.
4694 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
4695 (gnuv3_rtti_type): Pass already-check_typedef'd value to
4697 (compute_vtable_size): Assert only passed structs.
4698 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
4700 2015-01-31 Doug Evans <xdje42@gmail.com>
4702 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
4705 2015-01-31 Gary Benson <gbenson@redhat.com>
4706 Doug Evans <dje@google.com>
4711 * cli/cli-cmds.c (complete_command): Notify user if max-completions
4713 * common/common-exceptions.h (enum errors)
4714 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
4715 * completer.h (get_max_completions_reached_message): New declaration.
4716 (max_completions): Likewise.
4717 (completion_tracker_t): New typedef.
4718 (new_completion_tracker): New declaration.
4719 (make_cleanup_free_completion_tracker): Likewise.
4720 (maybe_add_completion_enum): New enum.
4721 (maybe_add_completion): New declaration.
4722 (throw_max_completions_reached_error): Likewise.
4723 * completer.c (max_completions): New global variable.
4724 (new_completion_tracker): New function.
4725 (free_completion_tracker): Likewise.
4726 (make_cleanup_free_completion_tracker): Likewise.
4727 (maybe_add_completions): Likewise.
4728 (throw_max_completions_reached_error): Likewise.
4729 (complete_line): Remove duplicates and limit result to max_completions
4731 (get_max_completions_reached_message): New function.
4732 (gdb_display_match_list): Handle max_completions.
4733 (_initialize_completer): New declaration and function.
4734 * symtab.c: Include completer.h.
4735 (completion_tracker): New static variable.
4736 (completion_list_add_name): Call maybe_add_completion.
4737 (default_make_symbol_completion_list_break_on_1): Renamed from
4738 default_make_symbol_completion_list_break_on. Maintain
4739 completion_tracker across calls to completion_list_add_name.
4740 (default_make_symbol_completion_list_break_on): New function.
4741 * top.c (init_main): Set rl_completion_display_matches_hook.
4742 * tui/tui-io.c: Include completer.h.
4743 (tui_old_rl_display_matches_hook): New static global.
4744 (tui_rl_display_match_list): Notify user if max-completions reached.
4745 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
4746 * NEWS (New Options): Mention set/show max-completions.
4748 2015-01-31 Gary Benson <gbenson@redhat.com>
4750 * symtab.c (struct add_name_data) <code>: New field.
4752 (add_symtab_completions): New function.
4753 (symtab_expansion_callback): Likewise.
4754 (default_make_symbol_completion_list_break_on): Set datum.code.
4755 Move minimal symbol scan before calling expand_symtabs_matching.
4756 Scan known primary symtabs for externs and statics before calling
4757 expand_symtabs_matching. Pass symtab_expansion_callback as
4758 expansion_notify argument to expand_symtabs_matching. Do not scan
4759 primary symtabs for externs and statics after calling
4760 expand_symtabs_matching.
4762 2015-01-31 Gary Benson <gbenson@redhat.com>
4764 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
4765 (struct quick_symbol_functions) <expand_symtabs_matching>:
4766 New argument expansion_notify. All uses updated.
4767 (expand_symtabs_matching): New argument expansion_notify.
4769 * symfile-debug.c (debug_qf_expand_symtabs_matching):
4770 Also print expansion notify.
4771 * symtab.c (expand_symtabs_matching_via_partial): Call
4772 expansion_notify whenever a partial symbol table is expanded.
4773 * dwarf2read.c (dw2_expand_symtabs_matching): Call
4774 expansion_notify whenever a symbol table is instantiated.
4776 2015-01-31 Doug Evans <xdje42@gmail.com>
4778 * cli-out.c: #include completer.h, readline/readline.h.
4779 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
4780 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
4781 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
4782 * cli-out.h (cli_display_match_list): Declare.
4783 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
4784 (ELLIPSIS_LEN): Ditto.
4785 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
4786 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
4787 (gdb_fnprint, gdb_print_filename): Ditto.
4788 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
4789 (gdb_display_match_list): Ditto.
4790 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
4791 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
4792 (mld_beep_ftype, mld_read_key_ftype): Ditto.
4793 (match_list_displayer): New struct.
4794 (gdb_display_match_list): Declare.
4795 * top.c (init_main): Set rl_completion_display_matches_hook.
4796 * tui/tui-io.c: #include completer.h.
4797 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
4798 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
4799 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
4800 (tui_mld_getc, tui_mld_read_key): Ditto.
4801 (tui_rl_display_match_list): Rewrite.
4802 (tui_handle_resize_during_io): New arg for_completion. All callers
4805 2015-01-31 Doug Evans <xdje42@gmail.com>
4807 Add symbol lookup cache.
4808 * NEWS: Document new options and commands.
4809 * symtab.c (symbol_cache_key): New static global.
4810 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
4811 (SYMBOL_LOOKUP_FAILED): New macro.
4812 (symbol_cache_slot_state): New enum.
4813 (block_symbol_cache): New struct.
4814 (symbol_cache): New struct.
4815 (new_symbol_cache_size, symbol_cache_size): New static globals.
4816 (hash_symbol_entry, eq_symbol_entry): New functions.
4817 (symbol_cache_byte_size, resize_symbol_cache): New functions.
4818 (make_symbol_cache, free_symbol_cache): New functions.
4819 (get_symbol_cache, symbol_cache_cleanup): New function.
4820 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
4821 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
4822 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
4823 (symbol_cache_flush, symbol_cache_dump): New functions.
4824 (maintenance_print_symbol_cache): New function.
4825 (maintenance_flush_symbol_cache): New function.
4826 (symbol_cache_stats): New function.
4827 (maintenance_print_symbol_cache_statistics): New function.
4828 (symtab_new_objfile_observer): New function.
4829 (symtab_free_objfile_observer): New function.
4830 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
4831 (_initialize_symtab): Init symbol_cache_key. New parameter
4832 maint symbol-cache-size. New maint commands print symbol-cache,
4833 print symbol-cache-statistics, flush-symbol-cache.
4834 Install new_objfile, free_objfile observers.
4836 2015-01-31 Joel Brobecker <brobecker@adacore.com>
4839 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
4842 2015-01-31 Doug Evans <xdje42@gmail.com>
4844 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
4845 * auto-load.c: #include ctype.h.
4846 (struct auto_load_pspace_info): Replace member loaded_scripts with
4847 new members loaded_script_files, loaded_script_texts.
4848 (auto_load_pspace_data_cleanup): Update.
4849 (init_loaded_scripts_info): Update.
4850 (get_auto_load_pspace_data_for_loading): Update.
4851 (maybe_add_script_file): Renamed from maybe_add_script. All callers
4853 (maybe_add_script_text): New function.
4854 (clear_section_scripts): Update.
4855 (source_script_file, execute_script_contents): New functions.
4856 (source_section_scripts): Add support for
4857 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
4858 (print_scripts): New function.
4859 (auto_load_info_scripts): Also print inlined scripts.
4860 (maybe_print_unsupported_script_warning): Renamed from
4861 unsupported_script_warning_print. All callers updated.
4862 (maybe_print_script_not_found_warning): Renamed from
4863 script_not_found_warning_print. All callers updated.
4864 * extension-priv.h (struct extension_language_script_ops): New member
4865 objfile_script_executor.
4866 * extension.c (ext_lang_objfile_script_executor): New function.
4867 * extension.h (objfile_script_executor_func): New typedef.
4868 (ext_lang_objfile_script_executor): Declare.
4869 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
4870 * guile/guile.c (guile_extension_script_ops): Update.
4871 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
4872 * python/python.c (python_extension_script_ops): Update.
4873 (gdbpy_execute_objfile_script): New function.
4875 2015-01-31 Eli Zaretskii <eliz@gnu.org>
4877 * tui/tui-io.c (tui_expand_tabs): New function.
4878 (tui_puts, tui_redisplay_readline): Expand TABs into the
4879 appropriate number of spaces.
4880 * tui/tui-regs.c: Include tui-io.h.
4881 (tui_register_format): Call tui_expand_tabs to expand TABs into
4882 the appropriate number of spaces.
4883 * tui/tui-io.h: Add prototype for tui_expand_tabs.
4885 2015-01-30 Doug Evans <dje@google.com>
4887 * NEWS: "info source" command now display producer string if present.
4888 * source.c (source_info): Print producer string if present.
4890 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4892 * varobj.c (varobj_delete): Fix comment.
4894 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4896 * varobj.c (create_child): Modify comment.
4898 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4900 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
4902 (ada_name_of_variable): Same.
4903 (ada_path_expr_of_child): Same.
4904 (ada_value_of_variable): Same.
4905 (ada_value_is_changeable_p): Same.
4906 (ada_value_has_mutated): Same.
4907 * c-varobj.c (varobj_is_anonymous_child): Same.
4908 (c_is_path_expr_parent): Same.
4909 (c_number_of_children): Same.
4910 (c_name_of_variable): Same.
4911 (c_path_expr_of_child): Same.
4913 (c_value_of_variable): Same.
4914 (cplus_number_of_children): Same.
4915 (cplus_name_of_variable): Same.
4916 (cplus_path_expr_of_child): Same.
4917 (cplus_value_of_variable): Same.
4918 * jv-varobj.c (java_number_of_children): Same.
4919 (java_name_of_variable): Same.
4920 (java_path_expr_of_child): Same.
4921 (java_value_of_variable): Same.
4922 * varobj.c (number_of_children): Same.
4923 (name_of_variable): Same.
4925 (varobj_ensure_python_env): Same.
4926 (varobj_get_objname): Same.
4927 (varobj_get_expression): Same.
4928 (varobj_get_display_format): Same.
4929 (varobj_get_display_hint): Same.
4930 (varobj_has_more): Same.
4931 (varobj_get_thread_id): Same.
4932 (varobj_get_frozen): Same.
4933 (dynamic_varobj_has_child_method): Same.
4934 (varobj_get_gdb_type): Same.
4935 (is_path_expr_parent): Same.
4936 (varobj_default_is_path_expr_parent): Same.
4937 (varobj_get_language): Same.
4938 (varobj_get_attributes): Same.
4939 (varobj_is_dynamic_p): Same.
4940 (varobj_get_child_range): Same.
4941 (varobj_value_has_mutated): Same.
4942 (varobj_get_value_type): Same.
4943 (number_of_children): Same.
4944 (name_of_variable): Same.
4945 (check_scope): Same.
4946 (varobj_editable_p): Same.
4947 (varobj_value_is_changeable_p): Same.
4948 (varobj_floating_p): Same.
4949 (varobj_default_value_is_changeable_p): Same.
4951 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4953 * varobj.c (varobj_get_path_expr): Set var->path_expr.
4954 * c-varobj.c (c_path_expr_of_child): Set local var instead of
4956 (cplus_path_expr_of_child): Same.
4958 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4960 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
4962 (mi_cmd_var_info_expression): Same.
4963 * varobj.c (varobj_get_expression): Mention in the comment that
4964 the result must by freed by the caller.
4966 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4968 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
4970 (varobj_update_one): Same.
4971 * varobj.c (update_type_if_necessary): Free curr_type_str and
4973 (varobj_get_type): Specify in comment that the result needs to be
4974 freed by the caller.
4976 2015-01-29 Doug Evans <dje@google.com>
4979 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
4981 2015-01-25 Mark Wielaard <mjw@redhat.com>
4983 * dwarf2read.c (checkproducer): Call producer_is_gcc.
4984 * utils.c (producer_is_gcc_ge_4): Likewise.
4985 (producer_is_gcc): New function.
4986 * utils.h (producer_is_gcc): New declaration.
4988 2015-01-29 Joel Brobecker <brobecker@adacore.com>
4990 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
4992 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
4993 parameter by "addr_stack" parameter.
4994 (resolve_dynamic_range): Replace "addr" parameter by
4995 "stack_addr" parameter. Update function documentation.
4996 Update code accordingly.
4997 (resolve_dynamic_array, resolve_dynamic_union)
4998 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
4999 (resolve_dynamic_type): Update code, following the changes made
5000 to resolve_dynamic_type_internal's interface.
5001 * dwarf2loc.h (struct property_addr_info): New.
5002 (dwarf2_evaluate_property): Replace "address" parameter
5003 by "addr_stack" parameter. Adjust function documentation.
5004 (struct dwarf2_offset_baton): New.
5005 (struct dwarf2_property_baton): Update documentation of
5006 field "referenced_type" to be more general. New field
5007 "offset_info" in union data field.
5008 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
5009 parameter by "addr_stack" parameter. Adjust code accordingly.
5010 Add support for PROP_ADDR_OFFSET properties.
5011 * dwarf2read.c (attr_to_dynamic_prop): Add support for
5012 DW_AT_data_member_location attributes as well. Use case
5013 statements instead of if/else condition.
5015 2015-01-29 Joel Brobecker <brobecker@adacore.com>
5017 * ada-varobj.c (ada_varobj_get_array_number_of_children):
5018 Return zero if PARENT_VALUE is NULL and parent_type's
5019 range type is dynamic.
5021 2015-01-29 Joel Brobecker <brobecker@adacore.com>
5023 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
5024 nonzero if the type's subtype is dynamic.
5025 (resolve_dynamic_range): Also resolve the range's subtype.
5027 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
5029 Pushed by Joel Brobecker <brobecker@adacore.com>.
5030 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
5032 2015-01-27 Doug Evans <dje@google.com>
5034 * NEWS: Mention gdb.Objfile.username.
5035 * python/py-objfile.c (objfpy_get_username): New function.
5036 (objfile_getset): Add "username".
5038 2015-01-24 Mark Wielaard <mjw@redhat.com>
5040 * stack.c (return_command): Markup warning message with _.
5042 2015-01-24 Doug Evans <xdje42@gmail.com>
5044 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
5046 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5048 Fix 100x slowdown regression on DWZ files.
5049 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
5050 (struct line_header): Add offset and offset_in_dwz.
5051 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
5052 (free_line_header_voidp): New declaration.
5053 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
5055 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
5056 (handle_DW_AT_stmt_list): Use line_header_hash.
5057 (free_line_header_voidp): New function.
5058 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
5059 (dwarf_decode_lines): New parameter decode_mapping, use it.
5060 (dwarf2_free_objfile): Free line_header_hash.
5062 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
5065 * valops.c (value_rtti_indirect_type): Catch exception thrown by
5068 2015-01-15 Mark Wielaard <mjw@redhat.com>
5070 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
5072 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
5073 calling_convention an 8 bit bit field.
5074 (TYPE_NO_RETURN): New macro.
5075 * infcmd.c (finish_command): Query if function does not return
5077 * stack.c (return_command): Likewise.
5079 2015-01-23 Pedro Alves <palves@redhat.com>
5081 * linux-nat.c (linux_is_async_p): New macro.
5082 (linux_nat_is_async_p):
5083 (linux_nat_terminal_inferior): Check whether the target can async
5084 instead of whether it is already async.
5085 (linux_nat_terminal_ours): Don't check whether the target is
5087 (linux_async_pipe): Use linux_is_async_p.
5089 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5091 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
5093 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
5094 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
5095 Sort tp_array using tp_array_compar.
5096 (_initialize_thread): Extend thread_apply_all_command help.
5098 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5100 * corelow.c (core_open): Call also thread_command.
5101 * gdbthread.h (thread_command): New prototype moved from ...
5102 * thread.c (thread_command): ... here.
5103 (thread_command): Make it global.
5105 2015-01-22 Pedro Alves <palves@redhat.com>
5107 * configure.ac [*mingw32*]: Check $curses_found instead of
5109 * configure: Regenerate.
5110 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
5111 HAVE_NCURSES_NCURSES_H checks.
5113 2015-01-22 Eli Zaretskii <eliz@gnu.org>
5115 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
5116 fails with the 1st arg NULL, try again with "unknown". Don't test
5117 the "cup" capability: it isn't supported by the Windows port of
5118 ncurses, but the Windows console driver is still capable of
5121 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5123 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
5125 2015-01-22 Eli Zaretskii <eliz@gnu.org>
5127 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
5128 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
5129 reason that "make TAGS" is broken.
5131 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
5133 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
5134 and check additional store instructions.
5136 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
5138 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
5140 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
5142 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
5143 ppc_canonicalize_syscall, ppc_linux_syscall_record,
5144 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
5145 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
5146 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
5147 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
5148 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
5149 ppc_process_record_op19, ppc_process_record_op31,
5150 ppc_process_record_op59, ppc_process_record_op60,
5151 ppc_process_record_op63): Likewise.
5153 2015-01-20 Joel Brobecker <brobecker@adacore.com>
5155 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
5156 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
5159 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
5161 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
5162 ppc_process_record_op31, ppc_process_record_op59,
5163 ppc_process_record_op60, ppc_process_record_op63,
5164 ppc_process_record): Fix -Wformat warning.
5165 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
5166 Remove unused variables.
5168 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
5170 * MAINTAINERS (Write After Approval): Add "Chen Gang".
5172 2015-01-19 Eli Zaretskii <eliz@gnu.org>
5174 * configure.ac [*mingw32*]: Only add windows-termcap.o to
5175 CONFIG_OBS if not building with a curses library.
5176 * configure: Regenerate.
5178 * windows-termcap.c: Include defs.h. Make the whole body empty if
5179 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
5180 HAVE_NCURSES_NCURSES_H is defined.
5182 2015-01-19 Joel Brobecker <brobecker@adacore.com>
5184 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
5185 from end of line to start of next line.
5187 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
5189 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
5190 Scan PLT stub backward for reverse debugging.
5191 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
5193 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
5194 Ulrich Weigand <uweigand@de.ibm.com>
5196 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
5198 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
5200 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
5201 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
5202 (ppc_linux_init_abi): Set process_record, process_record_signal.
5203 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
5204 ppc_linux_record_tdep to gdbarch_tdep.
5205 (ppc_process_record): New declaration.
5206 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
5207 ppc_process_record_op19, ppc_process_record_op31,
5208 ppc_process_record_op59, ppc_process_record_op60,
5209 ppc_process_record_op63, ppc_process_record): New functions.
5211 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
5213 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
5214 rs6000_in_function_epilogue_frame_p and add an argument
5216 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
5217 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
5219 (rs6000_epilogue_frame_unwind): New.
5220 (rs6000_gdbarch_init): Append epilogue unwinder.
5222 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5224 * nat/linux-personality.c: Replace "#ifndef
5225 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
5226 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
5229 2015-01-16 Eli Zaretskii <eliz@gnu.org>
5231 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
5233 (_initialize_tui_win) <border-kind, border-mode>:
5234 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
5235 (tui_set_tab_width_command): Fix the commentary.
5237 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
5239 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
5241 (tui_set_tab_width_command): Delete and recreate the source and
5242 the disassembly windows, to show the effect of the changed tab
5245 * tui/tui-data.h (LINE_PREFIX): Make shorter
5246 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
5247 "Thread NNNNN.XXXX" thread ID notation on Windows.
5249 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5251 Fix gcc-5 compilation.
5252 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
5254 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
5256 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
5257 (linux-personality.o): New rule.
5258 * common/common-defs.h: Include <stdint.h>.
5259 * config/aarch64/linux.mh (NATDEPFILES): Include
5260 linux-personality.o.
5261 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
5262 * config/arm/linux.mh (NATDEPFILES): Likewise.
5263 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5264 * config/i386/linux.mh (NATDEPFILES): Likewise.
5265 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5266 * config/m32r/linux.mh (NATDEPFILES): Likewise.
5267 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5268 * config/mips/linux.mh (NATDEPFILES): Likewise.
5269 * config/pa/linux.mh (NATDEPFILES): Likewise.
5270 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5271 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
5272 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
5273 * config/s390/linux.mh (NATDEPFILES): Likewise.
5274 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
5275 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5276 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
5277 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
5278 * defs.h: Remove #include <stdint.h> (moved to
5279 common/common-defs.h).
5280 * linux-nat.c: Include nat/linux-personality.h. Remove #include
5281 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
5282 nat/linux-personality.c).
5283 (linux_nat_create_inferior): Remove code to disable address space
5284 randomization (moved to nat/linux-personality.c). Create cleanup
5285 to disable address space randomization.
5286 * nat/linux-personality.c: New file.
5287 * nat/linux-personality.h: Likewise.
5289 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
5291 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
5292 common/posix-strerror.c.
5293 (posix-strerror.o): New rule.
5294 (mingw-strerror.o): Likewise.
5295 * common/common-utils.h (safe_strerror): Move prototype to here,
5297 * common/common.host: New file.
5298 * common/mingw-strerror.c: Likewise.
5299 * common/posix-strerror.c: Likewise.
5300 * configure: Regenerated.
5301 * configure.ac: Source common/common.host. Add variable
5302 common_host_obs to gdb_host_obs.
5303 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
5304 gdb/common/posix-strerror.c when warning about the use of
5306 * mingw-hdep.c (safe_strerror): Remove definition; move it to
5307 common/mingw-strerror.c.
5308 * posix-hdep.c (safe_strerror): Remove definition; move it to
5309 common/posix-hdep.c.
5310 * utils.h (safe_strerror): Remove prototype; move to
5311 common/common-utils.h.
5313 2015-01-15 Joel Brobecker <brobecker@adacore.com>
5317 2015-01-15 Joel Brobecker <brobecker@adacore.com>
5319 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
5320 ___XA type if the array has already been fixed.
5322 2015-01-14 Yao Qi <yao@codesourcery.com>
5324 * Makefile.in (ppc-linux.o): New rule.
5325 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
5326 * configure.ac: AC_CHECK_FUNCS(getauxval).
5327 * config.in: Re-generated.
5328 * configure: Re-generated.
5329 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
5331 * nat/ppc-linux.c: New file.
5332 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
5333 Call ppc64_64bit_inferior_p.
5335 2015-01-14 Yao Qi <yao@codesourcery.com>
5337 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
5339 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
5340 (PPC_FEATURE_HAS_DFP): Likewise.
5341 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
5342 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
5343 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
5344 Include "nat/ppc-linux.h".
5345 * nat/ppc-linux.h: New file.
5346 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
5348 2015-01-14 Pedro Alves <palves@redhat.com>
5351 * breakpoint.c: Include "interps.h".
5352 (bpstat_do_actions_1): Also check whether the interpreter is
5355 2015-01-14 Pedro Alves <palves@redhat.com>
5358 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
5359 reinstall if the interpreter is sync.
5361 2015-01-13 Doug Evans <dje@google.com>
5363 * objfiles.c (objfile_filename): New function.
5364 * objfiles.h (objfile_filename): Declare it.
5365 (objfile_name): Add function comment.
5366 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
5367 bfd file name (which may be realpath'd), and the original name.
5369 2015-01-13 Joel Brobecker <brobecker@adacore.com>
5371 * NEWS: Create a new section for the next release branch.
5372 Rename the section of the current branch, now that it has
5375 2015-01-13 Joel Brobecker <brobecker@adacore.com>
5377 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
5378 * version.in: Bump version to 7.9.50.DATE-cvs.
5380 2015-01-13 Joel Brobecker <brobecker@adacore.com>
5382 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
5383 Remove trailing new-line in argument of call to warning.
5385 2015-01-13 Joel Brobecker <brobecker@adacore.com>
5387 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
5388 new-line in argument of call to "warning".
5390 2015-01-13 Joel Brobecker <brobecker@adacore.com>
5392 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
5393 in static block, then try searching for primitive types.
5395 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
5397 * top.h (gdb_add_history): Declare.
5398 * top.c (command_count): New variable.
5399 (gdb_add_history): New function.
5400 (gdb_safe_append_history): New static function.
5401 (quit_force): Call it.
5402 (command_line_input): Use gdb_add_history instead of
5404 * event-top.c (command_line_handler): Likewise.
5406 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
5409 * darwin-nat.c: Replace <machine/setjmp.h> #include by
5410 <setjmp.h> #include.
5412 2015-01-11 Doug Evans <xdje42@gmail.com>
5414 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
5416 2015-01-11 Doug Evans <xdje42@gmail.com>
5419 * NEWS: The "maint demangle" command is renamed as "demangle".
5420 * demangle.c: #include cli/cli-utils.h, language.h.
5421 (demangle_command): New function.
5422 (_initialize_demangle): Add new command "demangle".
5423 * maint.c (maintenance_demangle): Stub out.
5424 (_initialize_maint_cmds): Update help text for "maint demangle",
5425 and mark as deprecated.
5427 2015-01-11 Mark Kettenis <kettenis@gnu.org>
5429 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
5430 inferior_thread is a function.
5432 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
5434 * Makefile.in (.y.c): Don't munge yacc's #line
5437 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
5439 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
5440 to prompt for input.
5441 * tui/tui-hooks.c (tui_query_hook): Remove.
5442 (tui_install_hooks): Don't set deprecated_query_hook.
5443 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
5444 height calculation. Always update the command window's cur_line.
5446 2015-01-09 Pedro Alves <palves@redhat.com>
5448 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
5450 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
5452 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
5453 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
5455 (check_stopped_by_watchpoint): New function.
5456 (save_sigtrap): Reimplement.
5457 (linux_nat_stopped_by_watchpoint): Adjust.
5458 (linux_nat_lp_status_is_event): Delete.
5459 (stop_wait_callback): Only call save_sigtrap after storing the
5461 (status_callback): If the thread had been stopped for a breakpoint
5462 that has since been removed, discard the event and resume the LWP.
5463 (count_events_callback, select_event_lwp_callback): Use
5464 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
5465 (cancel_breakpoint): Rename to ...
5466 (check_stopped_by_breakpoint): ... this. Record whether the LWP
5467 stopped for a software breakpoint or hardware breakpoint.
5468 (select_event_lwp): Only give preference to the stepping LWP in
5469 all-stop mode. Adjust comments.
5470 (stop_and_resume_callback): Remove references to new_pending_p.
5471 (linux_nat_filter_event): Likewise. Leave exit events of the
5472 leader thread pending here. Handle signal short circuiting here.
5473 Only call save_sigtrap after storing the pending waitstatus.
5474 (linux_nat_wait_1): Remove 'retry' label. Remove references to
5475 new_pending. Don't handle leaving events the caller is not
5476 interested in pending here, nor handle signal short-circuiting
5477 here. Also give equal priority to all LWPs that have had events
5478 in non-stop mode. If reporting a software breakpoint event,
5479 unadjust the LWP's PC.
5480 * linux-nat.h (enum lwp_stop_reason): New.
5481 (struct lwp_info) <stop_pc>: New field.
5482 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
5483 (struct lwp_info) <stop_reason>: New field.
5484 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
5486 2015-01-09 Pedro Alves <palves@redhat.com>
5488 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
5489 Set the LWP's 'resumed' flag.
5491 2015-01-09 Pedro Alves <palves@redhat.com>
5493 * linux-nat.c (linux_resume_one_lwp): New function.
5494 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
5495 (linux_nat_resume): Use lwp_status_pending_p and
5496 linux_resume_one_lwp.
5497 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
5498 (linux_handle_extended_wait): Use linux_resume_one_lwp.
5499 (status_callback, running_callback): Use lwp_status_pending_p.
5500 (lwp_status_pending_p): New function.
5501 (stop_and_resume_callback): Use lwp_status_pending_p.
5502 (linux_nat_filter_event): Use linux_resume_one_lwp.
5503 (linux_nat_wait_1): Always use status_callback to look for an LWP
5504 with a pending status. Use linux_resume_one_lwp.
5505 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
5506 linux_resume_one_lwp.
5508 2015-01-09 Pedro Alves <palves@redhat.com>
5510 * breakpoint.c (bp_location_inserted_here_p): New function,
5511 factored out from ...
5512 (breakpoint_inserted_here_p): ... here. Use
5513 ALL_BP_LOCATIONS_AT_ADDR.
5514 (software_breakpoint_inserted_here_p): Use
5515 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
5517 2014-01-09 Pedro Alves <palves@redhat.com>
5519 Skip enabling event reporting if the kernel supports
5521 * linux-thread-db.c: Include "nat/linux-ptrace.h".
5522 (thread_db_use_events): New function.
5523 (try_thread_db_load_1): Check thread_db_use_events before enabling
5525 (update_thread_state): New function.
5526 (attach_thread): Use it. Check thread_db_use_events before
5527 enabling event reporting.
5528 (thread_db_detach): Check thread_db_use_events before disabling
5530 (find_new_threads_callback): Check thread_db_use_events before
5531 enabling event reporting. Update the thread's state if not using
5532 libthread_db events.
5534 2015-01-09 Pedro Alves <palves@redhat.com>
5536 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
5537 about to wait for is > 0.
5538 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
5539 the kernel thread ID is -1.
5541 2015-01-09 Pedro Alves <palves@redhat.com>
5543 * linux-nat.c (attach_proc_task_lwp_callback): New function.
5544 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
5545 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
5546 ptrace option flags.
5547 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
5549 * nat/linux-procfs.c: Include <dirent.h>.
5550 (linux_proc_get_int): New parameter "warn". Handle it.
5551 (linux_proc_get_tgid): Adjust.
5552 (linux_proc_get_tracerpid): Rename to ...
5553 (linux_proc_get_tracerpid_nowarn): ... this.
5554 (linux_proc_pid_get_state): New function, factored out from
5555 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
5557 (linux_proc_pid_is_gone): New function.
5558 (linux_proc_pid_is_stopped): Adjust.
5559 (linux_proc_pid_is_zombie_maybe_warn)
5560 (linux_proc_pid_is_zombie_nowarn): New functions.
5561 (linux_proc_pid_is_zombie): Use
5562 linux_proc_pid_is_zombie_maybe_warn.
5563 (linux_proc_attach_tgid_threads): New function.
5564 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
5565 (linux_proc_get_tracerpid): Rename to ...
5566 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
5567 (linux_proc_pid_is_gone): New declaration.
5568 (linux_proc_pid_is_zombie): Update comment.
5569 (linux_proc_pid_is_zombie_nowarn): New declaration.
5570 (linux_proc_attach_lwp_func): New typedef.
5571 (linux_proc_attach_tgid_threads): New declaration.
5572 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
5573 use nowarn functions.
5574 (linux_ptrace_attach_fail_reason_string): Move here from
5575 gdbserver/linux-low.c and rename.
5576 (ptrace_supports_feature): If the current ptrace options are not
5577 known yet, check them now, instead of asserting.
5578 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
5581 2015-01-09 Pedro Alves <palves@redhat.com>
5583 * linux-thread-db.c (thread_db_find_new_threads_silently)
5584 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
5585 (find_new_threads_once): Print debug output on gdb_stdlog.
5587 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
5588 Pedro Alves <palves@redhat.com>
5590 * compile/compile.c: Include "gdb_wait.h".
5591 (do_rmdir): Check return value, and free 'zap'.
5593 2015-01-08 Pedro Alves <palves@redhat.com>
5594 Yao Qi <yao@codesourcery.com>
5596 * dwarf2loc.c (indirect_pieced_value): Don't call
5597 gdb_sign_extend. Call extract_signed_integer instead.
5598 * utils.c (gdb_sign_extend): Remove.
5599 * utils.h (gdb_sign_extend): Remove declaration.
5601 2015-01-07 Pierre Muller <muller@sourceware.org>
5604 * stabsread.c (define_symbol): Set language for C++ special symbols.
5606 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
5608 * inflow.c (initial_gdb_ttystate): Tweak comment.
5610 2015-01-07 Joel Brobecker <brobecker@adacore.com>
5612 * inflow.c (set_initial_gdb_ttystate): Add empty line after
5613 comment documenting function.
5615 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
5617 * terminal.h (set_initial_gdb_ttystate): Declare.
5618 * inflow.c (initial_gdb_ttystate): New static variable.
5619 (set_initial_gdb_ttystate): New setter.
5620 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
5621 instead of our current terminal state.
5622 * top.c (gdb_init): Call set_initial_gdb_ttystate.
5624 2015-01-07 Joel Brobecker <brobecker@adacore.com>
5626 * guile/scm-type.c (tyscm_array_1): Add comment.
5627 * python/py-type.c (typy_array_1): Add comment.
5629 2015-01-06 Joel Brobecker <brobecker@adacore.com>
5631 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
5632 error if N2 is equal to N1 - 1.
5634 2015-01-06 Joel Brobecker <brobecker@adacore.com>
5636 * python/py-type.c (typy_array_1): Do not raise negative-length
5637 exception if N2 is equal to N1 - 1.
5639 2015-01-03 Doug Evans <xdje42@gmail.com>
5641 * c-exp.y: Whitespace cleanup.
5642 (classify_inner_name): Remove extra ;.
5644 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
5646 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
5649 2015-01-02 Doug Evans <dje@google.com>
5651 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
5653 2015-01-02 Doug Evans <dje@google.com>
5655 * symtab.h (struct symbol): Fix typo in comment.
5657 2015-01-01 Joel Brobecker <brobecker@adacore.com>
5659 Update year range in copyright notice of all files.
5661 2015-01-01 Joel Brobecker <brobecker@adacore.com>
5663 * top.c (print_gdb_version): Update copyright year to 2015.
5665 2015-01-01 Joel Brobecker <brobecker@adacore.com>
5667 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
5669 For older changes see ChangeLog-2014.
5675 version-control: never