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