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