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