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