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