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