]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Add myself as Rust maintainer
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2016-08-02 Tom Tromey <tom@tromey.com>
2
3 * MAINTAINERS (Core): Add self as Rust maintainer.
4
5 2016-08-01 Joel Brobecker <brobecker@adacore.com>
6
7 * NEWS: Create a new section for the next release branch.
8 Rename the section of the current branch, now that it has
9 been cut.
10
11 2016-08-01 Joel Brobecker <brobecker@adacore.com>
12
13 GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
14 * version.in: Bump version to 7.12.50.DATE-git.
15
16 2016-07-27 Alan Modra <amodra@gmail.com>
17
18 * amd64-darwin-tdep.c: Don't include libbfd.h.
19 * i386-darwin-tdep.c: Likewise.
20 * rs6000-nat.c: Likewise.
21 * rs6000-tdep.c: Likewise.
22
23 2016-07-26 Tom Tromey <tom@tromey.com>
24
25 * symtab.c (register_symbol_computed_impl): Update.
26 PR python/20190:
27 * value.h (symbol_read_needs): Declare.
28 (symbol_read_needs_frame): Add comment.
29 * symtab.h (struct symbol_computed_ops) <read_variable>: Update
30 comment.
31 <get_symbol_read_needs>: Rename. Change return type.
32 * findvar.c (symbol_read_needs): New function.
33 (symbol_read_needs_frame): Rewrite.
34 (default_read_var_value): Use symbol_read_needs.
35 * dwarf2loc.c (struct symbol_needs_baton): Rename.
36 <needs>: Renamed from needs_frame. Changed type.
37 (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
38 (symbol_needs_read_mem, symbol_needs_frame_base)
39 (symbol_needs_frame_cfa, symbol_needs_tls_address)
40 (symbol_needs_dwarf_call): Rename.
41 (needs_dwarf_reg_entry_value): Update.
42 (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
43 Rename and update.
44 (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
45 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
46 * defs.h (enum symbol_needs_kind): New.
47
48 2016-07-26 Pedro Alves <palves@redhat.com>
49
50 * nat/linux-ptrace.c: Include "gregset.h".
51 (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
52 PTRACE_PEEKUSER.
53
54 2016-07-26 Pedro Alves <palves@redhat.com>
55
56 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
57 parameter to 'ptrace'.
58 * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
59 (nat_uptr_t): New an unsigned long.
60 (nat_clock_t): Remove attribute __aligned__.
61 (struct nat_timeval): Delete.
62 (nat_siginfo_t): Remove attribute __aligned__.
63 (ptrace_siginfo_t): Define.
64 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
65 (compat_x32_siginfo_from_siginfo)
66 (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
67 Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
68 Remove casts.
69 (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
70 'ptrace'. Remove static assertions.
71 (top level): New static assertions.
72
73 2016-07-25 Simon Marchi <simon.marchi@ericsson.com>
74
75 * top.h (make_delete_ui_cleanup): New declaration.
76 * top.c (delete_ui_cleanup): New function.
77 (make_delete_ui_cleanup): New function.
78 (new_ui_command): Create restore_ui cleanup earlier, create a
79 delete_ui cleanup and discard it on success.
80
81 2016-07-25 Pedro Alves <palves@redhat.com>
82 Jan Kratochvil <jan.kratochvil@redhat.com>
83
84 * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
85 't'.
86
87 2016-07-25 Pedro Alves <palves@redhat.com>
88
89 * nat/linux-procfs.c (enum proc_state): New enum.
90 (parse_proc_status_state): New function.
91 (linux_proc_pid_get_state): Replace output string buffer parameter
92 with an output proc_state parameter. Use parse_proc_status_state.
93 (linux_proc_pid_is_gone): Adjust to use proc_state values.
94 (linux_proc_pid_has_state): Change type of 'state' parameter; now
95 an enum proc_state. Adjust to linux_proc_pid_get_state interface
96 change.
97 (linux_proc_pid_is_stopped)
98 (linux_proc_pid_is_trace_stopped_nowarn)
99 (linux_proc_pid_is_zombie_maybe_warn): Adjust to
100 linux_proc_pid_get_state interface change.
101
102 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
103
104 * MAINTAINERS (Write After Approval): Add Tim Wiederhake
105
106 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
107
108 * NEWS: Resume btrace on reconnect.
109 * record-btrace.c: Added record-btrace.h include.
110 (record_btrace_open): Split into this and ...
111 (record_btrace_push_target): ... this.
112 (record_btrace_disconnect): New function.
113 (init_record_btrace_ops): Use record_btrace_disconnect.
114 * record-btrace.h: New file.
115 * remote.c: Added record-btrace.h include.
116 (remote_start_remote): Check recording status.
117 (remote_btrace_maybe_reopen): New function.
118
119 2016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
120
121 * xml-syscall.c (get_syscalls_by_group): New.
122 (get_syscall_group_names): New.
123 (struct syscall_group_desc): New structure to store group data.
124 (struct syscalls_info): Include field to store the group list.
125 (sysinfo_free_syscall_group_desc): New.
126 (free_syscalls_info): Free group list.
127 (syscall_group_create_syscall_group_desc): New.
128 (syscall_group_add_syscall): New.
129 (syscall_create_syscall_desc): Add syscall to its groups.
130 (syscall_start_syscall): Load group attribute.
131 (syscall_group_get_group_by_name): New.
132 (xml_list_syscalls_by_group): New.
133 (xml_list_of_groups): New.
134 * xml-syscall.h (get_syscalls_by_group): Export function
135 to retrieve a list of syscalls filtered by the group name.
136 (get_syscall_group_names): Export function to retrieve the list
137 of syscall groups.
138 * break-catch-syscall.c (catch_syscall_split_args): Verify if
139 argument is a syscall group and expand it to a list of syscalls
140 when creating catchpoints.
141 (catch_syscall_completer): Add word completion for system call
142 groups.
143 * configure.ac: Include dependency for xsltproc when building
144 in maintainer-mode.
145 * break-catch-syscall.c (_initialize_breakpoint): Update catch
146 syscall command documentation.
147 * NEWS: Include section about catching groups of syscalls.
148 * configure: Regenerate.
149 * data-directory/Makefile.in: Generate syscall xml when building
150 in maintainer mode.
151 * syscalls/gdb-syscalls.dtd: Include group attribute to the
152 syscall element.
153 * syscalls/apply-defaults.xsl: New.
154 * syscalls/linux-defaults.xml.in: New.
155 * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
156 * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
157 * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
158 * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
159 * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
160 * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
161 * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
162 * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
163 * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
164 * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
165 * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
166 * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
167 * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
168 * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
169 * syscalls/aarch64-linux.xml: Regenerate.
170 * syscalls/amd64-linux.xml: Regenerate.
171 * syscalls/arm-linux.xml: Regenerate.
172 * syscalls/i386-linux.xml: Regenerate.
173 * syscalls/mips-n32-linux.xml: Regenerate.
174 * syscalls/mips-n64-linux.xml: Regenerate.
175 * syscalls/mips-o32-linux.xml: Regenerate.
176 * syscalls/ppc-linux.xml: Regenerate.
177 * syscalls/ppc64-linux.xml: Regenerate.
178 * syscalls/s390-linux.xml: Regenerate.
179 * syscalls/s390x-linux.xml: Regenerate.
180 * syscalls/sparc-linux.xml: Regenerate.
181 * syscalls/sparc64-linux.xml: Regenerate.
182
183 2016-07-23 Andrew Pinski <apinski@cavium.com>
184
185 * nat/aarch64-linux-hw-point.c
186 (aarch64_linux_get_debug_reg_capacity): Handle
187 ARMv8.1 and ARMv8.2 debug versions.
188 * nat/aarch64-linux-hw-point.h
189 (AARCH64_DEBUG_ARCH_V8_1): New define.
190 (AARCH64_DEBUG_ARCH_V8_2): New define.
191
192 2016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
193
194 PR gdb/14529
195 * windows-nat.c (signal_event_command): New command 'signal-event'
196 for W32 JIT debug support.
197 * NEWS: Add an entry about the new 'signal-event' command.
198
199 2016-07-22 Tom Tromey <tom@tromey.com>
200
201 PR rust/20162:
202 * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
203 Call scan_partial_symbols for children when reading a Rust CU.
204 (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
205 rustc.
206 (process_structure_scope) <DW_TAG_subprogram>: Call
207 read_func_scope for Rust.
208
209 2016-07-22 Yao Qi <yao.qi@linaro.org>
210
211 * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
212 bt_ctf_get_int64.
213
214 2016-07-21 Tom Tromey <tom@tromey.com>
215
216 * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
217 structs.
218 * rust-exp.y (struct_expr_list): Allow empty elements.
219
220 2016-07-21 Tom Tromey <tom@tromey.com>
221
222 * configure: Rebuild.
223 * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
224 -Wunused-but-set-parameter, -Wunused-but-set-variable.
225
226 2016-07-21 Pedro Alves <palves@redhat.com>
227
228 * go32-nat.c (go32_create_inferior): Add cast.
229 * ser-go32.c (dos_noop): Delete.
230 (dos_flush_output, dos_setparity, dos_drain_output): New
231 functions.
232 (dos_write): Add cast.
233 (dos_ops): Use dos_flush_output, dos_setparity and
234 dos_drain_output.
235 * top.c (do_chdir_cleanup): Add cast.
236
237 2016-07-21 Pedro Alves <palves@redhat.com>
238
239 * windows-nat.c (handle_exception): Remove "th".
240
241 2016-07-21 Pedro Alves <palves@redhat.com>
242
243 * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
244 scope that uses it.
245
246 2016-07-20 John Baldwin <jhb@FreeBSD.org>
247
248 * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
249 events.
250 (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
251 defined.
252 (fbsd_add_vfork_done): Likewise.
253 (fbsd_is_vfork_done_pending): Likewise.
254 (fbsd_next_vfork_done): Likewise.
255 (fbsd_resume): Only ignore pending vfork done events if
256 "PTRACE_VFORK" is not defined.
257 (fbsd_wait): Only look for pending vfork done events if
258 "PTRACE_VFORK" is not defined.
259 [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
260 events.
261 (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
262 is not defined.
263
264 2016-07-20 John Baldwin <jhb@FreeBSD.org>
265
266 * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
267 new child processes.
268
269 2016-07-20 John Baldwin <jhb@FreeBSD.org>
270
271 * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
272 (fbsd_enable_proc_events): New function.
273 (fbsd_enable_follow_fork): Remove function.
274 (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
275 (fbsd_post_attach): Likewise.
276
277 2016-07-15 John Baldwin <jhb@FreeBSD.org>
278
279 * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
280 (do_gdb_signal_to_host): Likewise.
281 * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
282 programs.
283 * proc-events.c (signal_table): Add entry for SIGLIBRT.
284
285 2016-07-14 Tom Tromey <tom@tromey.com>
286
287 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
288 newline.
289
290 2016-07-14 Tom Tromey <tom@tromey.com>
291
292 * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
293 (mips_o32_push_dummy_call): Remove "stack_used_p".
294 * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
295 "insn_bit28".
296 * rust-lang.c (rust_print_type): Remove "len".
297 * rust-exp.y (super_name): Remove "current_len".
298 * python/py-framefilter.c (py_print_type): Remove "type".
299 * mdebugread.c (parse_partial_symbols): Remove
300 "past_first_source_file".
301 <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
302 * m2-valprint.c (m2_print_unbounded_array): Remove
303 "content_type".
304 (m2_val_print): Remove "i".
305 * linespec.c (unexpected_linespec_error): Remove "cleanup".
306 * f-valprint.c (f_val_print): Remove "i".
307 * elfread.c (elf_symtab_read): Remove "offset".
308 * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
309 * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
310
311 2016-07-14 Tom Tromey <tom@tromey.com>
312
313 * arch-utils.c (default_skip_permanent_breakpoint): Remove
314 "bp_insn".
315 * disasm.c (do_assembly_only): Remove "num_displayed".
316 * dwarf2read.c (read_abbrev_offset): Remove "length".
317 (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
318 "constant".
319 * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
320 * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
321 * tracefile.c (trace_save): Remove "status".
322
323 2016-07-14 Tom Tromey <tom@tromey.com>
324
325 * symfile.c (simple_overlay_update_1): Remove initialization
326 of "size", and commented-out code.
327 (simple_overlay_update): Likewise.
328
329 2016-07-14 Tom Tromey <tom@tromey.com>
330
331 * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
332 * tui/tui-io.c (tui_puts): Use getcurx.
333 (tui_redisplay_readline): Likewise.
334
335 2016-07-14 Tom Tromey <tom@tromey.com>
336
337 * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
338
339 2016-07-14 Tom Tromey <tom@tromey.com>
340
341 * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
342 succeeded.
343
344 2016-07-13 Tom Tromey <tom@tromey.com>
345
346 PR python/15620, PR python/18620:
347 * python/py-evts.c (gdbpy_initialize_py_events): Call
348 add_new_registry for new events.
349 * python/py-events.h (events_object) <breakpoint_created,
350 breakpoint_deleted, breakpoint_modified>: New fields.
351 * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
352 breakpoint changed event.
353 (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
354 (gdbpy_breakpoint_modified): New function.
355 (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
356 observer.
357
358 2016-07-13 Tom Tromey <tom@tromey.com>
359
360 PR python/17698:
361 * NEWS: Update.
362 * python/py-breakpoint.c (bppy_get_pending): New function.
363 (breakpoint_object_getset): Add entry for "pending".
364 * breakpoint.h (pending_breakpoint_p): Declare.
365 * breakpoint.c (pending_breakpoint_p): New function.
366
367 2016-07-13 Tom Tromey <tom@tromey.com>
368
369 * python/py-breakpoint.c (bppy_get_visibility)
370 (gdbpy_breakpoint_created): Use user_breakpoint_p.
371
372 2016-07-13 Tom Tromey <tom@tromey.com>
373
374 PR cli/18053:
375 * jit.c (jit_reader_load_command): Use tilde_expand.
376 (_initialize_jit): Fix help for jit-reader-unload. Set completer
377 for new commands.
378
379 2016-07-12 Tom Tromey <tom@tromey.com>
380
381 PR python/19293:
382 * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
383 gdb.invalidate_cached_frames.
384 * python/lib/gdb/unwinder.py (register_unwinder): Call
385 gdb.invalidate_cached_frames.
386 * python/python.c (gdbpy_invalidate_cached_frames): New function.
387 (python_GdbMethods): Add entry for invalidate_cached_frames.
388
389 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
390
391 * cp-namespace.c (cp_lookup_bare_symbol): Initialize
392 lang_this.symbol.
393
394 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
395
396 * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
397 parameter to look for the symbol "this".
398
399
400 2016-07-06 John Baldwin <jhb@FreeBSD.org>
401
402 * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
403
404 2016-07-06 John Baldwin <jhb@FreeBSD.org>
405
406 * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
407 left shifts.
408
409 2016-07-06 John Baldwin <jhb@FreeBSD.org>
410
411 * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
412 the MEDIA_FP_REGNUM register.
413
414 2016-07-06 John Baldwin <jhb@FreeBSD.org>
415
416 * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
417 negative size.
418
419 2016-07-06 John Baldwin <jhb@FreeBSD.org>
420
421 * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
422
423 2016-07-06 Yao Qi <yao.qi@linaro.org>
424
425 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
426 arm_vfp_cprc_sub_candidate for static field.
427
428 2016-07-06 Manish Goregaokar <manish@mozilla.com>
429
430 * rust-lang.c (rust_subscript): Allow subscripting pointers
431
432 2016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
433
434 * configure: Regenerate.
435 * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
436
437 2016-07-01 Don Breazeal <donb@codesourcery.com>
438
439 * remote.c (remote_get_memory_xfer_limit): New function.
440 * target-delegates.c: Regenerate.
441 * target.c (memory_xfer_partial): Call
442 target_ops.to_get_memory_xfer_limit.
443 * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
444 member.
445
446 2016-07-01 John Baldwin <jhb@FreeBSD.org>
447
448 * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
449 (struct fbsd_fork_info): ... this.
450 (struct fbsd_fork_info) <child>: Rename to ...
451 (struct fbsd_fork_info) <ptid>: ... this.
452 (fbsd_pending_children): Update type.
453 (fbsd_remember_child): Update type and field name.
454 (fbsd_is_child_pending): Likewise.
455 (fbsd_pending_vfork_done): New variable.
456 (fbsd_is_vfork_done_pending): New function.
457 (fbsd_next_vfork_done): New function.
458 (fbsd_resume): Don't resume processes with a pending vfork done
459 event.
460 (fbsd_wait): Report pending vfork done events.
461 (fbsd_follow_fork): Delay and record a pending vfork done event
462 for a vfork parent when detaching the child.
463
464 2016-07-01 John Baldwin <jhb@FreeBSD.org>
465
466 * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
467 (resume_one_thread_cb): Move below fork following helper code.
468 (resume_all_threads_cb): Likewise.
469 (fbsd_resume): Likewise.
470
471 2016-07-01 John Baldwin <jhb@FreeBSD.org>
472
473 * fbsd-nat.c (fbsd_follow_fork): Only detach child if
474 "detach_fork" is true.
475
476 2016-07-01 John Baldwin <jhb@FreeBSD.org>
477
478 * x86bsd-nat.c: Include 'gdbthread.h'.
479 (x86bsd_dr_set): Set debug registers on all threads belonging to
480 the current inferior.
481
482 2016-07-01 John Baldwin <jhb@FreeBSD.org>
483
484 * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
485 'x86bsd-nat.h'.
486 * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
487 'amd64bsd-nat.h'.
488 (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
489 (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
490 with 'x86bsd_xsave_len'.
491 (amd64bsd_store_inferior_registers): Likewise.
492 (amd64bsd_target): Inherit from x86bsd_target.
493 (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
494 (amd64bsd_dr_set): Likewise.
495 (amd64bsd_dr_set_control): Likewise.
496 (amd64bsd_dr_set_addr): Likewise.
497 (amd64bsd_dr_get_addr): Likewise.
498 (amd64bsd_dr_get_status): Likewise.
499 (amd64bsd_dr_get_control): Likewise.
500 * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
501 'amd64bsd-nat.h'.
502 (super_mourn_inferior): Move to x86bsd-nat.c.
503 (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
504 (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
505 'x86bsd_xsave_len'.
506 (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
507 mourn_inferior' target op.
508 * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
509 * config/i386/fbsd64.mh: Likewise.
510 * config/i386/nbsd64.mh: Likewise.
511 * config/i386/nbsdelf.mh: Likewise.
512 * config/i386/obsd.mh: Likewise.
513 * config/i386/obsd64.mh: Likewise.
514 * i386bsd-nat.c: Include 'x86bsd-nat.h'.
515 (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
516 (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
517 with 'x86bsd_xsave_len'.
518 (i386bsd_store_inferior_registers): Likewise.
519 (i386bsd_target): Inherit from x86bsd_target.
520 (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
521 (i386bsd_dr_set): Likewise.
522 (i386bsd_dr_set_control): Likewise.
523 (i386bsd_dr_set_addr): Likewise.
524 (i386bsd_dr_get_addr): Likewise.
525 (i386bsd_dr_get_status): Likewise.
526 (i386bsd_dr_get_control): Likewise.
527 * i386bsd-nat.h (i386bsd_xsave_len): Remove.
528 (i386bsd_dr_set_control): Remove.
529 (i386bsd_dr_set_addr): Remove.
530 (i386bsd_dr_get_addr): Remove.
531 (i386bsd_dr_get_status): Remove.
532 (i386bsd_dr_get_control): Remove.
533 * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
534 (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
535 'x86bsd_xsave_len'.
536 (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
537 mourn_inferior' target op.
538 * x86bsd-nat.c: New file.
539 * x86bsd-nat.h: New file.
540
541 2016-07-01 Pedro Alves <palves@redhat.com>
542 Tom Tromey <tom@tromey.com>
543
544 * jit.c (jit_reader_load_command): Call reinit_frame_cache and
545 jit_inferior_created_hook.
546 (jit_reader_unload_command): Call reinit_frame_cache and
547 jit_inferior_exit_hook.
548 * jit.c (struct jit_unwind_private) <registers>: Delete field.
549 <regcache>: New field.
550 (jit_unwind_reg_set_impl): Set the register's value in the
551 regcache. Free the passed-in gdb_reg_value.
552 (jit_dealloc_cache): Adjust to free the regcache.
553 (jit_frame_sniffer): Allocate a regcache instead of an array of
554 gdb_reg_value pointers.
555 (jit_frame_this_id): Adjust.
556 (jit_frame_prev_register): Read raw registers off of the regcache
557 instead of from the gdb_reg_value pointer array. Use
558 gdbarch_pseudo_register_read_value to read pseudo registers.
559 * regcache.c (regcache_raw_set_cached_value): New function,
560 factored out from ...
561 (regcache_raw_write): ... here.
562 * regcache.h (regcache_raw_set_cached_value): Declare.
563
564 2016-07-01 Pedro Alves <palves@redhat.com>
565 Antoine Tremblay <antoine.tremblay@ericsson.com>
566
567 * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
568 out from ...
569 (inf_ptrace_detach): ... here.
570 * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
571 * linux-nat.c (get_pending_status): Rename to ...
572 (get_detach_signal): ... this, and return a host signal instead of
573 filling in a wait status.
574 (detach_one_lwp): New function, factored out from detach_callback
575 and adjusted to handle detaching from a zombie thread.
576 (detach_callback): Skip the leader thread.
577 (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
578 the leader thread, nor build a signal string to pass down.
579 Instead, use target_announce_detach, detach_one_lwp and
580 inf_ptrace_detach_success.
581
582 2016-07-01 Pedro Alves <palves@redhat.com>
583
584 * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
585 locations.
586 * infcmd.c (detach_command): Call breakpoint_init_inferior.
587
588 2016-07-01 Pedro Alves <palves@redhat.com>
589
590 * darwin-nat.c (darwin_detach): Use target_announce_detach.
591 * inf-ptrace.c (inf_ptrace_detach): Likewise.
592 * nto-procfs.c (procfs_detach): Likewise.
593 * remote.c (remote_detach_1): Likewise.
594 * target.c (target_announce_detach): New function.
595 * target.h (target_announce_detach): New declaration.
596
597 2016-06-29 Tom Tromey <tom@tromey.com>
598
599 PR python/20129:
600 * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
601 (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
602 not "name".
603
604 2016-06-29 Tom Tromey <tom@tromey.com>
605
606 PR gdb/17210:
607 * target.c (free_memory_read_result_vector): Take a pointer to the
608 VEC as an argument.
609 (read_memory_robust): Install a cleanup for "result".
610 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
611
612 2016-06-29 Manish Goregaokar <manish@mozilla.com>
613
614 * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
615
616 2016-06-29 Manish Goregaokar <manish@mozilla.com>
617
618 * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
619
620 2016-06-28 Yao Qi <yao.qi@linaro.org>
621
622 * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
623 variable new_offset.
624
625 2016-06-27 Manish Goregaokar <manish@mozilla.com>
626
627 * rust-lang.c (rust_print_type, rust_decorations): Print unit
628 types as "()".
629 (rust_print_type): Omit return type for functions returning unit.
630
631 2016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
632
633 * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
634 when there is an error during the breakpoint creation.
635
636 2016-06-25 Tom Tromey <tom@tromey.com>
637
638 * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
639 formatting.
640
641 2016-06-25 Manish Goregaokar <manish@mozilla.com>
642
643 PR gdb/20239
644 * rust-lang.c (rust_get_disr_info): Correctly interpret
645 NonZero-optimized enums of arbitrary depth.
646 (rust_print_type): Correctly print NonZero-optimized
647 enums.
648
649 2016-06-24 David Taylor <dtaylor@emc.com>
650
651 PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
652 * c-lang.h: Change all parameters, variables, and struct or union
653 members used as struct or union fie3ld offsets from int to
654 LONGEST.
655 * c-valprint.c: Likewise.
656 * cp-abi.c: Likewise.
657 * cp-abi.h: Likewise.
658 * cp-valprint.c: Likewise.
659 * d-valprint.c: Likewise.
660 * dwarf2loc.c: Likewise.
661 * eval.c: Likewise.
662 * extension-priv.h: Likewise.
663 * extension.c: Likewise.
664 * extension.h: Likewise.
665 * findvar.c: Likewise.
666 * gdbtypes.h: Likewise.
667 * gnu-v2-abi.c: Likewise.
668 * gnu-v3-abi.c: Likewise.
669 * go-valprint.c: Likewise.
670 * guile/guile-internal.h: Likewise.
671 * guile/scm-pretty-print.c: Likewise.
672 * jv-valprint.c Likewise.
673 * opencl-lang.c: Likewise.
674 * p-lang.h: Likewise.
675 * python/py-prettyprint.c: Likewise.
676 * python/python-internal.h: Likewise.
677 * spu-tdep.c: Likewise.
678 * typeprint.c: Likewise.
679 * valarith.c: Likewise.
680 * valops.c: Likewise.
681 * valprint.c: Likewise.
682 * valprint.h: Likewise.
683 * value.c: Likewise.
684 * value.h: Likewise.
685 * p-valprint.c: Likewise.
686 * c-typeprint.c (c_type_print_base): When printing offset, use
687 plongest, not %d.
688 * gdbtypes.c (recursive_dump_type): Ditto.
689
690 2016-06-24 David Taylor <david.taylor@emc.com>
691
692 * MAINTAINERS (Write After Approval): Add David Taylor.
693
694 2016-06-24 John Baldwin <jhb@FreeBSD.org>
695
696 * configure.ac: Check for support for system call LWP fields on
697 FreeBSD.
698 * config.in, configure: Rebuild.
699 * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
700 * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
701 Report system call events.
702 [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
703 (fbsd_set_syscall_catchpoint): New function.
704 (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
705 Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
706 * fbsd-tdep.c: Include xml-syscall.h
707 (fbsd_get_syscall_number): New function.
708 (fbsd_init_abi): Set XML system call file name.
709 Add "get_syscall_number" gdbarch method.
710 * syscalls/freebsd.xml: New file.
711
712 2016-06-24 John Baldwin <jhb@FreeBSD.org>
713
714 * fbsd-tdep.c: Include "auxv.h".
715 (fbsd_print_auxv_entry): New function.
716 (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
717
718 2016-06-24 John Baldwin <jhb@FreeBSD.org>
719
720 * auxv.c (fprint_auxv_entry): New function.
721 (default_print_auxv_entry): New function.
722 (fprint_target_auxv): Use gdbarch_print_auxv_entry.
723 * auxv.h (enum auxv_format): New enum.
724 (fprint_auxv_entry): Declare.
725 (default_print_auxv_entry): Declare.
726 * gdbarch.sh (print_auxv_entry): New.
727 * gdbarch.c, gdbarch.h: Re-generated.
728
729 2016-06-24 John Baldwin <jhb@FreeBSD.org>
730
731 * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
732 (fbsd_xfer_partial): New function.
733 (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
734 "fbsd_xfer_partial".
735
736 2016-06-23 Tom Tromey <tom@tromey.com>
737
738 * symtab.c (symbol_find_demangled_name): Loop over languages and
739 use language_sniff_from_mangled_name.
740 * rust-lang.c (rust_sniff_from_mangled_name): New function.
741 (rust_language_defn): Update.
742 * p-lang.c (pascal_language_defn): Update.
743 * opencl-lang.c (opencl_language_defn): Update.
744 * objc-lang.c (objc_sniff_from_mangled_name): New function.
745 (objc_language_defn): Update.
746 * m2-lang.c (m2_language_defn): Update.
747 * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
748 field.
749 (language_sniff_from_mangled_name): Declare.
750 * language.c (language_sniff_from_mangled_name): New function.
751 (unknown_language_defn, auto_language_defn, local_language_defn):
752 Update.
753 * jv-lang.c (java_sniff_from_mangled_name): New function.
754 (java_language_defn): Use it.
755 * go-lang.c (go_sniff_from_mangled_name): New function.
756 (go_language_defn): Use it.
757 * f-lang.c (f_language_defn): Update.
758 * defs.h (enum language): Reorder.
759 * d-lang.c (d_sniff_from_mangled_name): New function.
760 (d_language_defn): Use it.
761 * cp-support.h (gdb_sniff_from_mangled_name): Declare.
762 * cp-support.c (gdb_sniff_from_mangled_name): New function.
763 * c-lang.c (c_language_defn, cplus_language_defn)
764 (asm_language_defn, minimal_language_defn): Update.
765 * ada-lang.c (ada_sniff_from_mangled_name): New function.
766 (ada_language_defn): Use it.
767
768 2016-06-23 Tom Tromey <tom@tromey.com>
769
770 * ada-lang.c (ada_extensions): New array.
771 (ada_language_defn): Use it.
772 * c-lang.c (c_extensions): New array.
773 (c_language_defn): Use it.
774 (cplus_extensions): New array.
775 (cplus_language_defn): Use it.
776 (asm_extensions): New array.
777 (asm_language_defn): Use it.
778 (minimal_language_defn): Update.
779 * d-lang.c (d_extensions): New array.
780 (d_language_defn): Use it.
781 * f-lang.c (f_extensions): New array.
782 (f_language_defn): Use it.
783 * go-lang.c (go_language_defn): Update.
784 * jv-lang.c (java_extensions): New array.
785 (java_language_defn): Use it.
786 * language.c (add_language): Call add_filename_language.
787 (unknown_language_defn, auto_language_defn, local_language_defn):
788 Update.
789 * language.h (struct language_defn) <la_filename_extensions>: New
790 field.
791 * m2-lang.c (m2_language_defn): Update.
792 * objc-lang.c (objc_extensions): New array.
793 (objc_language_defn): Use it.
794 * opencl-lang.c (opencl_language_defn): Update.
795 * p-lang.c (p_extensions): New array.
796 (pascal_language_defn): Use it.
797 * rust-lang.c (rust_extensions): New array.
798 (rust_language_defn): Use it.
799 * symfile.c (add_filename_language): No longer static. Make "ext"
800 const.
801 (init_filename_language_table): Remove.
802 (_initialize_symfile): Update.
803 * symfile.h (add_filename_language): Declare.
804
805 2016-06-23 Tom Tromey <tom@tromey.com>
806
807 * symfile.c (filename_language_table): Now a VEC.
808 (fl_table_size, fl_table_next): Remove.
809 (add_filename_language): Use VEC_safe_push.
810 (set_ext_lang_command, info_ext_lang_command)
811 (deduce_language_from_filename): Use VEC_iterate.
812 (init_filename_language_table): Use VEC_empty.
813
814 2016-06-23 Tom Tromey <tom@tromey.com>
815
816 * python/python.c (gdbpy_parameter): Now static.
817 * python/python-internal.h (gdbpy_parameter): Don't declare.
818
819 2016-06-23 Tom Tromey <tom@tromey.com>
820
821 PR gdb/16483:
822 * python/lib/gdb/command/frame_filters.py
823 (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
824 nothing if no filters found. Return value indicating whether
825 filters were printed.
826 (InfoFrameFilter.print_list): Remove.
827 (InfoFrameFilter.invoke): Print message if no frame filters
828 found.
829
830 2016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
831
832 * f-valprint.c (f_val_print): Add field names for printing
833 derived types fields.
834
835 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
836
837 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
838 in name of last-break regset.
839
840 2016-06-21 Pedro Alves <palves@redhat.com>
841
842 * fork-child.c (fork_inferior): Switch the child to the main UI
843 right after vfork. Save/restore the current UI in the parent.
844 Flush outputs of the main UI instead of the current UI.
845
846 2016-06-21 Pedro Alves <palves@redhat.com>
847
848 * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
849 to all UIs.
850
851 2016-06-21 Pedro Alves <palves@redhat.com>
852
853 * NEWS: Mention support for running interpreters on separate
854 UIs and the new new-ui command.
855
856 2016-06-21 Pedro Alves <palves@redhat.com>
857
858 * interps.c (set_top_level_interpreter): New function, factored
859 out from captured_main.
860 (interpreter_completer): Make extern.
861 * interps.h (set_top_level_interpreter, interpreter_completer):
862 New declarations.
863 (captured_main): Use set_top_level_interpreter.
864 * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
865 (open_terminal_stream, new_ui_command): New functions.
866 (init_main): Install the "new-ui" command.
867
868 2016-06-21 Pedro Alves <palves@redhat.com>
869
870 * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
871 (read_command_lines): Use input_interactive_p instead of
872 input_from_terminal_p.
873 * defs.h (struct ui): Forward declare.
874 (input_from_terminal_p): Rename to ...
875 (input_interactive_p): ... this.
876 * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
877 to quit_command.
878 (command_handler): Adjust to per-UI stdin.
879 (handle_line_of_input): Adjust to per-UI stdin and use
880 input_interactive_p instead of ISATTY and input_from_terminal_p.
881 (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
882 (command_line_handler): Always pass true as "from_tty" parameter
883 of handle_line_of_input and execute_command.
884 (async_sigterm_handler): Pass 0 as from_tty argument to
885 quit_command.
886 * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
887 (gdb_has_a_terminal): Don't check interactive_mode here.
888 (_initialize_inflow): Don't install "set interactive-mode" here.
889 * main.c (captured_command_loop): Adjust to per-UI stdin.
890 * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
891 stdin.
892 * top.c (new_ui): Save the stdin stream and whether it's a tty.
893 (dont_repeat): Adjust to per-UI stdin.
894 (command_line_input): Adjust to per-UI stdin and to use
895 input_interactive_p.
896 (quit_force): Write history if any UI supports interactive input.
897 (interactive_mode, show_interactive_mode): Move here, from
898 inflow.c.
899 (input_from_terminal_p): Rename to ...
900 (input_interactive_p): ... this, and check the "interactive_mode"
901 global instead of calling gdb_has_a_terminal.
902 (_initialize_top): Install "set interactive-mode" here.
903 * top.h (struct ui) <stdin_stream, input_interactive_p>: New
904 fields.
905 * utils.c (quit): Pass 0 as from_tty argument to quit_force.
906 (defaulted_query): Adjust to per-UI stdin and to use
907 input_interactive_p.
908
909 2016-06-21 Pedro Alves <palves@redhat.com>
910
911 * event-top.c (stdin_event_handler): Don't quit gdb if it was a
912 secondary UI's input stream that closed. Instead, just delete the
913 UI.
914
915 2016-06-21 Pedro Alves <palves@redhat.com>
916
917 * event-top.c (main_ui_): Delete.
918 (main_ui, current_ui, ui_list): No longer initialize here.
919 * main.c (captured_main): UI initialization code factored out to
920 new new_ui function.
921 (gdb_main): Wrap captured_main with TRY/CATCH instead of
922 catch_errors.
923 * top.c (highest_ui_num): New global.
924 (new_ui): New function.
925 * top.h (struct ui) <num>: New field.
926 (new_ui): New declaration.
927
928 2016-06-21 Pedro Alves <palves@redhat.com>
929
930 * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
931 nothing to print. Use should_print_stop_to_console.
932 * tui/tui-interp.c (tui_on_normal_stop): Likewise.
933
934 2016-06-21 Pedro Alves <palves@redhat.com>
935
936 * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
937 (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
938 thread parameter.
939 (until_break_command): Pass command interpreter to thread fsm
940 ctor.
941 * cli/cli-interp.c (should_print_stop_to_console): Adjust.
942 * gdbthread.h (struct thread_control_state) <command_interp>:
943 Delete field.
944 * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
945 Pass it down.
946 (call_thread_fsm_should_stop): Add thread parameter.
947 (call_function_by_hand_dummy): Pass command interpreter to thread
948 fsm ctor. Pass thread pointer to fsm clean up method.
949 * infcmd.c: Include interps.h.
950 (struct step_command_fsm) <thread>: Delete field.
951 (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
952 (step_command_fsm_prepare): Remove references to fsm's thread
953 field.
954 (step_1): Pass command interpreter to thread
955 fsm ctor. Pass thread pointer to fsm clean up method.
956 (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
957 thread parameter and use it.
958 (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
959 (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
960 parameter and use it.
961 (until_next_command): Pass command interpreter to thread fsm ctor.
962 (struct finish_command_fsm) <thread>: Delete field.
963 (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
964 (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
965 down. Remove thread parameter and adjust.
966 (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
967 thread parameter and use it.
968 (finish_command): Pass command interpreter to thread fsm ctor.
969 Don't pass thread.
970 * infrun.c (follow_fork): Move thread fsm to child fork instead of
971 command interpreter, only.
972 (clear_proceed_status_thread): Remove reference to command_interp.
973 (proceed): Don't record the thread's command interpreter.
974 (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
975 method.
976 (fetch_inferior_event): Pass thread to fsm should_stop method.
977 * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
978 Store it.
979 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
980 parameter and pass it down.
981 * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
982 (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
983 parameter.
984 (thread_fsm_ctor): Add 'cmd_interp' parameter.
985 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
986 parameter.
987 * thread.c (thread_cancel_execution_command): Pass thread to
988 thread fsm clean_up method.
989
990 2016-06-21 Pedro Alves <palves@redhat.com>
991
992 * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
993 (should_print_stop_to_console): New function, factored out from
994 mi_on_normal_stop_1.
995 * cli/cli-interp.h (should_print_stop_to_console): Declare.
996 * mi/mi-interp.c (mi_on_normal_stop_1): Use
997 should_print_stop_to_console. Pass it the current UI's console
998 interpreter.
999 * mi/mi-main.c (captured_mi_execute_command): Use the
1000 INTERP_CONSOLE symbol rather than explicit "console".
1001
1002 2016-06-21 Pedro Alves <palves@redhat.com>
1003
1004 * infcmd.c (prepare_execution_command): Use
1005 all_uis_on_sync_execution_starting.
1006 * infrun.c (all_uis_on_sync_execution_starting): New function.
1007 * infrun.h (all_uis_on_sync_execution_starting): Declare.
1008
1009 2016-06-21 Pedro Alves <palves@redhat.com>
1010
1011 * annotate.c: Include top.h.
1012 (async_background_execution_p): Delete.
1013 (print_value_flags): Check the UI's prompt state rather then
1014 async_background_execution_p.
1015 * event-loop.c (start_event_loop): Set the prompt state to
1016 PROMPT_NEEDED.
1017 * event-top.c (display_gdb_prompt, async_enable_stdin)
1018 (async_disable_stdin): Check the current UI's prompt state instead
1019 of the sync_execution global.
1020 (command_line_handler): Set the prompt state to PROMPT_NEEDED
1021 before running a command, and display the prompt if still needed
1022 afterwards.
1023 * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
1024 (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
1025 (call_thread_fsm_should_stop): Set the prompt state to
1026 PROMPT_NEEDED.
1027 (run_inferior_call): Adjust to temporarily set the prompt state to
1028 PROMPT_BLOCKED instead of using the sync_execution global.
1029 (call_function_by_hand_dummy): Pass the current UI to
1030 new_call_thread_fsm.
1031 * infcmd.c: Include top.h.
1032 (continue_1): Check the current UI's prompt state instead of the
1033 sync_execution global.
1034 (continue_command): Validate global execution state before calling
1035 prepare_execution_command.
1036 (step_1): Call all_uis_check_sync_execution_done.
1037 (attach_post_wait): Don't call async_enable_stdin here. Remove
1038 reference to sync_execution.
1039 * infrun.c (sync_execution): Delete global.
1040 (follow_fork_inferior)
1041 (reinstall_readline_callback_handler_cleanup): Check the current
1042 UI's prompt state instead of the sync_execution global.
1043 (check_curr_ui_sync_execution_done)
1044 (all_uis_check_sync_execution_done): New functions.
1045 (fetch_inferior_event): Call all_uis_check_sync_execution_done
1046 instead of trying to determine whether the global sync execution
1047 changed.
1048 (handle_no_resumed): Check the prompt state of all UIs.
1049 (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
1050 UIs. Emit the "Switching to" notification to all UIs. Enable
1051 stdin in all UIs.
1052 * infrun.h (sync_execution): Delete.
1053 (all_uis_check_sync_execution_done): Declare.
1054 * main.c (captured_command_loop): Don't call
1055 interp_pre_command_loop if the prompt is blocked.
1056 (catch_command_errors, catch_command_errors_const): Adjust.
1057 (captured_main): Set the initial prompt state to PROMPT_NEEDED.
1058 * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
1059 PROMPTED.
1060 (mi_interpreter_resume): Don't clear sync_execution. Remove hack
1061 comment.
1062 (mi_execute_command_input_handler): Set the prompt state to
1063 PROMPT_NEEDED before executing the command, and only display the
1064 prompt if the prompt state is PROMPT_NEEDED afterwards.
1065 (mi_on_resume_1): Adjust to check the prompt state.
1066 * target.c (target_terminal_inferior): Adjust to check the prompt
1067 state.
1068 * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
1069 (execute_command): Check the current UI's prompt state instead of
1070 sync_execution.
1071 * top.h (enum prompt_state): New.
1072 (struct ui) <prompt_state>: New field.
1073 (ALL_UIS): New macro.
1074
1075 2016-06-21 Pedro Alves <palves@redhat.com>
1076
1077 * top.c (gdb_secondary_prompt_depth): Delete.
1078 (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
1079 (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
1080 per-UI gdb_secondary_prompt_depth.
1081 * top.h (struct ui) <secondary_prompt_depth>: New field.
1082
1083 2016-06-21 Pedro Alves <palves@redhat.com>
1084
1085 * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
1086 function.
1087 (cli_interp_procs): Install it instead of cli_command_loop.
1088 * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
1089 * event-top.c (cli_command_loop): Delete.
1090 * interps.c (interp_new): Remove reference to command_loop_proc.
1091 (current_interp_command_loop): Delete.
1092 (interp_pre_command_loop): New function.
1093 (interp_command_loop_ftype): Delete.
1094 * interps.h (interp_pre_command_loop_ftype): New typedef.
1095 (struct interp_procs) <command_loop_proc>: Delele field.
1096 <pre_command_loop_proc>: New field.
1097 (current_interp_command_loop): Delete declaration.
1098 (interp_pre_command_loop): New declaration.
1099 * main.c (captured_command_loop): Call interp_pre_command_loop
1100 instead of current_interp_command_loop and start an event loop.
1101 * mi/mi-interp.c (mi_command_loop): Delete.
1102 (mi_interpreter_pre_command_loop): New.
1103 (mi_interp_procs): Update.
1104 * tui/tui-interp.c (tui_interp_procs): Install
1105 cli_interpreter_pre_command_loop instead of cli_command_loop.
1106
1107 2016-06-21 Pedro Alves <palves@redhat.com>
1108
1109 * interps.c (current_interpreter): New function.
1110 * interps.h (current_interpreter): New declaration.
1111 * mi/mi-cmds.h (raw_stdout): Delete declaration.
1112 * mi/mi-common.h (struct mi_interp) <raw_stdout,
1113 saved_raw_stdout>: New field.
1114 * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
1115 to per-UI raw_stdout.
1116 (mi_interpreter_init): Adjust to per-UI raw_stdout.
1117 (mi_on_sync_execution_done, mi_execute_command_input_handler)
1118 (mi_command_loop): Pass MI instance to display_mi_prompt.
1119 (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
1120 (mi_on_resume): Adjust to per-UI raw_stdout.
1121 (saved_raw_stdout): Delete.
1122 (mi_set_logging): Adjust to per-UI raw_stdout and
1123 saved_raw_stdout.
1124 * mi/mi-main.c (raw_stdout): Delete.
1125 (mi_cmd_gdb_exit, captured_mi_execute_command)
1126 (mi_print_exception, mi_load_progress): Adjust to per-UI
1127 raw_stdout.
1128 (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
1129 Pass it along.
1130 (print_diff): New ui_file parameter. Send output there instead of
1131 raw_stdout.
1132 * mi/mi-main.h (struct ui_file): Forward declare.
1133 (mi_print_timing_maybe): Add ui_file parameter.
1134
1135 2016-06-21 Pedro Alves <palves@redhat.com>
1136
1137 * mi/mi-interp.c (display_mi_prompt): New function.
1138
1139 2016-06-21 Pedro Alves <palves@redhat.com>
1140
1141 * target.c (target_terminal_inferior): Bail out after
1142 unregistering input_fd if not on the main UI.
1143 (target_terminal_ours): Bail out after registering input_fd if not
1144 on the main UI.
1145 (target_terminal_ours_for_output): Bail out if not on the main UI.
1146
1147 2016-06-21 Pedro Alves <palves@redhat.com>
1148
1149 * event-top.c (restore_ui_cleanup): Make extern.
1150 * infrun.c (fetch_inferior_event): Always switch to the main UI.
1151 * top.h (restore_ui_cleanup): Declare.
1152
1153 2016-06-21 Pedro Alves <palves@redhat.com>
1154
1155 PR mi/20034
1156 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
1157 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
1158 UI's input_handler here.
1159 (cli_interpreter_supports_command_editing): New function.
1160 (cli_interp_procs): Install it.
1161 * cli/cli-interp.h: New file.
1162 * event-top.c (async_command_editing_p): Rename to ...
1163 (set_editing_cmd_var): ... this.
1164 (change_line_handler): Add parameter 'editing', and use it. Bail
1165 early if the interpreter doesn't support editing. Don't touch
1166 readline state if editing is off.
1167 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1168 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
1169 main UI.
1170 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
1171 not using readline. Check whether the current UI is using command
1172 editing instead of checking the async_command_editing_p global.
1173 (set_async_editing_command): Delete.
1174 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
1175 on the main UI. Don't touch readline state if editing is off.
1176 (gdb_disable_readline): Don't touch readline state if editing is
1177 off.
1178 * event-top.h (gdb_setup_readline): Add 'int' parameter.
1179 (set_async_editing_command): Delete declaration.
1180 (change_line_handler, command_line_handler): Declare.
1181 (async_command_editing_p): Rename to ...
1182 (set_editing_cmd_var): ... this.
1183 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
1184 whether the current UI has editing enabled rather than checking
1185 the async_command_editing_p global.
1186 * interps.c (interp_supports_command_editing): New function.
1187 * interps.h (interp_supports_command_editing_ftype): New typedef.
1188 (struct interp_procs) <supports_command_editing_proc>: New field.
1189 (interp_supports_command_editing): Declare.
1190 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
1191 gdb_setup_readline. Don't clear the async_command_editing_p
1192 global. Update comments.
1193 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
1194 whether the current UI has editing enabled rather than checking
1195 the async_command_editing_p global. Don't touch readline state if
1196 editing is off.
1197 (undo_terminal_modifications_before_exit): Switch to the main UI.
1198 Unconditionally call gdb_disable_readline.
1199 (set_editing): New function.
1200 (show_async_command_editing_p): Rename to ...
1201 (show_editing): ... this. Show the state of the current UI.
1202 (_initialize_top): Adjust.
1203 * top.h (struct ui) <command_editing>: New field.
1204 * tui/tui-interp.c: Include cli/cli-interp.h.
1205 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
1206 input_handler.
1207 (tui_interp_procs): Install
1208 cli_interpreter_supports_command_editing.
1209 * tui/tui-io.c (tui_getc): Check whether the current UI has
1210 editing enabled rather than checking the async_command_editing_p
1211 global.
1212
1213 2016-06-21 Pedro Alves <palves@redhat.com>
1214
1215 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
1216 * top.h (struct ui) <m_current_uiout>: New field.
1217 * ui-out.c (current_uiout): Delete.
1218 * ui-out.h (current_uiout): Delete.
1219 (current_ui_current_uiout_ptr): New declaration.
1220 (current_uiout): Reimplement as wrapper around
1221 current_ui_current_uiout_ptr.
1222
1223 2016-06-21 Pedro Alves <palves@redhat.com>
1224
1225 * ui-out.c (default_ui_out_impl): Delete.
1226 (def_uiout): Delete.
1227 (current_uiout): Set to NULL.
1228 (default_table_begin, default_table_body, default_table_end)
1229 (default_table_header, default_begin, default_end)
1230 (default_field_int, default_field_skip, default_field_string)
1231 (default_field_fmt, default_spaces, default_text, default_message)
1232 (default_wrap_hint, default_flush, default_data_destroy): Delete.
1233
1234 2016-06-21 Pedro Alves <palves@redhat.com>
1235
1236 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
1237 errstream to stdout_fileopen and stderr_fileopen.
1238 * exceptions.c: Include top.h.
1239 (print_flush): Open the current UI's outstream file descriptor,
1240 instead of hardcoding file descriptor 1.
1241 * main.c (captured_main): Save the main UI's out and error
1242 streams. Adjust stderr_fileopen call.
1243 * top.h (struct ui) <outstream, errstream>: New fields.
1244 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
1245 instead of stderr.
1246 * ui-file.h (stderr_fileopen): Add stream parameter and update
1247 comment.
1248
1249 2016-06-21 Pedro Alves <palves@redhat.com>
1250
1251 * event-top.c (input_fd): Delete.
1252 (stdin_event_handler): Switch to the UI whose input descriptor got
1253 the event. Adjust to per-UI input_fd.
1254 (gdb_setup_readline): Don't set the input_fd global. Adjust to
1255 per-UI input_fd.
1256 (gdb_disable_readline): Adjust to per-UI input_fd.
1257 * event-top.h (input_fd): Delete declaration.
1258 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
1259 from the event-loop here.
1260 (linux_nat_terminal_ours): Don't register input_fd in the
1261 event-loop here.
1262 * main.c (captured_main): Adjust to per-UI input_fd.
1263 * remote.c (remote_terminal_inferior): Don't remove input_fd from
1264 the event-loop here.
1265 (remote_terminal_ours): Don't register input_fd in the event-loop
1266 here.
1267 * target.c: Include top.h and event-top.h.
1268 (target_terminal_inferior): Remove input_fd from the event-loop
1269 here.
1270 (target_terminal_ours): Register input_fd in the event-loop.
1271 * top.h (struct ui) <input_fd>: New field.
1272
1273 2016-06-21 Pedro Alves <palves@redhat.com>
1274
1275 * cli/cli-script.c (execute_user_command, read_next_line)
1276 (read_next_line): Adjust to per-UI instream.
1277 * event-top.c (stdin_event_handler, command_handler)
1278 (handle_line_of_input, command_line_handler)
1279 (gdb_readline_no_editing_callback, async_sigterm_handler)
1280 (gdb_setup_readline): Likewise.
1281 * inflow.c: Include top.h.
1282 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
1283 (gdb_save_tty_state, child_terminal_inferior)
1284 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
1285 (initialize_stdin_serial): Adjust to per-UI instream.
1286 * main.c (captured_command_loop, captured_main): Adjust to per-UI
1287 instream.
1288 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
1289 * python/python.c (python_interactive_command): Likewise.
1290 * terminal.h (struct ui): Forward declare.
1291 (initialize_stdin_serial): Add struct ui parameter.
1292 * top.c (instream): Delete.
1293 (do_restore_instream_cleanup, read_command_file, dont_repeat)
1294 (gdb_readline_no_editing, command_line_input)
1295 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
1296 * top.h (struct ui) <instream>: New field.
1297 (instream): Delete declaration.
1298 (quit): Adjust to per-UI instream.
1299
1300 2016-06-21 Pedro Alves <palves@redhat.com>
1301
1302 * event-loop.c: Include top.h.
1303 (invoke_async_signal_handlers): Switch to the main UI.
1304 * event-top.c (main_ui_): Update comment.
1305 (main_ui): New global.
1306 * top.h (main_ui): Declare.
1307
1308 2016-06-21 Pedro Alves <palves@redhat.com>
1309
1310 * cli/cli-interp.c (cli_interp): Delete.
1311 (as_cli_interp): New function.
1312 (cli_on_normal_stop, cli_on_signal_received)
1313 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
1314 (cli_on_no_history): Send output to all CLI UIs.
1315 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
1316 the top level interpreter is not a CLI.
1317 (cli_interpreter_init): Don't set cli_interp or install observers
1318 here.
1319 (_initialize_cli_interp): Install observers here.
1320 * event-top.c (main_ui_, ui_list): New globals.
1321 (current_ui): Point to main_ui_.
1322 (restore_ui_cleanup, switch_thru_all_uis_init)
1323 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
1324 functions.
1325 * mi/mi-interp.c (as_mi_interp): New function.
1326 (mi_interpreter_init): Don't install observers here.
1327 (mi_on_sync_execution_done): Skip output if the top level
1328 interpreter is not a MI.
1329 (mi_new_thread, mi_thread_exit, mi_record_changed)
1330 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
1331 (mi_inferior_removed): Send output to all MI UIs.
1332 (find_mi_interpreter, mi_interp_data): Delete.
1333 (find_mi_interp): New function.
1334 (mi_on_signal_received, mi_on_end_stepping_range)
1335 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
1336 to all MI UIs.
1337 (mi_on_normal_stop): Rename to ...
1338 (mi_on_normal_stop_1): ... this.
1339 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
1340 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
1341 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
1342 (mi_breakpoint_modified, mi_output_running_pid): Send output to
1343 all MI UIs.
1344 (mi_on_resume): Rename to ...
1345 (mi_on_resume_1): ... this. Don't handle infcalls here.
1346 (mi_on_resume): Reimplement, sending output to all MI UIs.
1347 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
1348 (mi_memory_changed): Send output to all MI UIs.
1349 (report_initial_inferior): Install observers here.
1350 * top.h (struct ui) <next>: New field.
1351 (ui_list): Declare.
1352 (struct switch_thru_all_uis): New.
1353 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
1354 (switch_thru_all_uis_next): Declare.
1355 (SWITCH_THRU_ALL_UIS): New macro.
1356 * tui/tui-interp.c (tui_interp): Delete global.
1357 (as_tui_interp): New function.
1358 (tui_on_normal_stop, tui_on_signal_received)
1359 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
1360 (tui_on_no_history): Send output to all TUI UIs.
1361 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
1362 the top level interpreter is not a TUI.
1363 (tui_init): Don't set tui_interp or install observers here.
1364 (_initialize_tui_interp): Install observers here.
1365
1366 2016-06-21 Pedro Alves <palves@redhat.com>
1367
1368 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
1369 (struct cli_interp): ... this new structure.
1370 (cli_on_normal_stop, cli_on_signal_received)
1371 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
1372 (cli_on_no_history): Use interp_ui_out.
1373 (cli_interpreter_init): If top level, set the cli_interp global.
1374 (cli_interpreter_init): Return the interp's data instead of NULL.
1375 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
1376 to cli_uiout being in the interpreter's data.
1377 (cli_interp_procs): New, factored out from _initialize_cli_interp.
1378 (cli_interp_factory): New function.
1379 (_initialize_cli_interp): Call interp_factory_register.
1380 * interps.c (get_interp_info): New, factored out from ...
1381 (get_current_interp_info): ... this.
1382 (interp_new): Add parameter 'data'. Store it.
1383 (struct interp_factory): New function.
1384 (interp_factory_p): New typedef. Define a VEC_P.
1385 (interpreter_factories): New global.
1386 (interp_factory_register): New function.
1387 (interp_add): Add 'ui' parameter. Use get_interp_info and
1388 interp_lookup_existing.
1389 (interp_lookup): Rename to ...
1390 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
1391 check for NULL or empty name here.
1392 (interp_lookup): Add 'ui' parameter and reimplement.
1393 (interp_set_temp, interpreter_exec_cmd): Adjust.
1394 (interpreter_completer): Complete on registered interpreter
1395 factories instead of interpreters.
1396 * interps.h (interp_factory_func): New typedef.
1397 (interp_factory_register): Declare.
1398 (interp_new, interp_add): Adjust.
1399 (interp_lookup): Declare.
1400 * main.c (captured_main): Adjust.
1401 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
1402 (mi_interp_procs): New, factored out from
1403 _initialize_mi_interp.
1404 (mi_interp_factory): New function.
1405 * python/python.c (execute_gdb_command): Adjust.
1406 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
1407 global.
1408 (tui_interp_procs): New.
1409 (tui_interp_factory): New function.
1410 (_initialize_tui_interp): Call interp_factory_register.
1411
1412 2016-06-21 Pedro Alves <palves@redhat.com>
1413
1414 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
1415 async field instead of the interpreter_async global.
1416 * cli/cli-script.c (execute_user_command, while_command)
1417 (if_command, script_from_file): Likewise.
1418 * compile/compile.c: Include top.h instead of interps.h.
1419 (compile_file_command, compile_code_command)
1420 (compile_print_command): Access the current UI's async field
1421 instead of the interpreter_async global.
1422 * guile/guile.c: Include top.h instead of interps.h.
1423 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
1424 Access the current UI's async field instead of the
1425 interpreter_async global.
1426 * guile/scm-ports.c: Include top.h instead of interps.h.
1427 (ioscm_with_output_to_port_worker): Access the current UI's async
1428 field instead of the interpreter_async global.
1429 * inf-loop.c (inferior_event_handler): Likewise.
1430 * infcall.c (run_inferior_call): Likewise.
1431 * infrun.c (reinstall_readline_callback_handler_cleanup)
1432 (fetch_inferior_event): Likewise.
1433 * interps.c (interpreter_async): Delete.
1434 (struct ui_interp_info): New.
1435 (get_current_interp_info): New function.
1436 (interp_list, current_interpreter, top_level_interpreter_ptr):
1437 Delete.
1438 (interp_add, interp_set, interp_lookup, interp_ui_out)
1439 (current_interp_set_logging, interp_set_temp)
1440 (current_interp_named_p): Adjust to per-UI interpreters.
1441 (command_interpreter): Delete.
1442 (command_interp, current_interp_command_loop, interp_quiet_p)
1443 (interp_exec, interpreter_exec_cmd, interpreter_completer)
1444 (top_level_interpreter, top_level_interpreter_data): Adjust to
1445 per-UI interpreters.
1446 * interps.h (interpreter_async): Delete.
1447 * main.c (captured_command_loop): Access the current UI's async
1448 field instead of the interpreter_async global.
1449 * python/python.c (python_interactive_command, python_command)
1450 (execute_gdb_command): Likewise.
1451 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
1452 Access the current UI's async field instead of the
1453 interpreter_async global.
1454 * top.h (struct tl_interp_info): Forward declare.
1455 (struct ui) <interp_info, async>: New fields.
1456
1457 2016-06-21 Pedro Alves <palves@redhat.com>
1458
1459 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
1460 globals.
1461 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
1462 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
1463 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
1464 m_gdb_stdlog>: New fields.
1465 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
1466 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
1467 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
1468 macros.
1469
1470 2016-06-21 Pedro Alves <palves@redhat.com>
1471
1472 * event-top.c: Update readline-related comments.
1473 (input_handler, call_readline): Delete globals.
1474 (gdb_rl_callback_handler): Call the current UI's input_handler
1475 method.
1476 (change_line_handler): Adjust to set current UI's properties
1477 instead of globals.
1478 (current_ui_, current_ui): New globals.
1479 (get_command_line_buffer): Rewrite to refer to the current UI.
1480 (stdin_event_handler): Adjust to call the call_readline method of
1481 the current UI.
1482 (gdb_readline_no_editing_callback): Adjust to call the current UI's
1483 input_handler method.
1484 (gdb_setup_readline): Adjust to set current UI's properties
1485 instead of globals.
1486 * event-top.h (call_readline, input_handler): Delete declarations.
1487 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
1488 UI's properties instead of globals.
1489 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
1490 properties instead of globals.
1491 (gdb_readline_wrapper): Adjust to call and set current UI's
1492 methods instead of globals.
1493 * top.h: Include buffer.h and event-loop.h.
1494 (struct ui): New struct.
1495 (current_ui): New declaration.
1496
1497 2016-06-21 Pedro Alves <palves@redhat.com>
1498
1499 * ada-lang.c (ada_exception_name_addr_1): Add comment.
1500 (print_it_exception): Select the current frame.
1501
1502 2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
1503
1504 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
1505 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
1506 (ALLDEPFILES): Add nds32-tdep.c.
1507 * NEWS: Mention new NDS32 port.
1508 * configure.tgt: Add NDS32.
1509 * nds32-tdep.c: New file.
1510 * nds32-tdep.h: New file.
1511 * features/Makefile (XMLTOC): Add nds32.xml.
1512 * features/nds32-core.xml: New file.
1513 * features/nds32-fpu.xml: New file.
1514 * features/nds32-system.xml: New file.
1515 * features/nds32.c: New file (generated).
1516 * features/nds32.xml: New file.
1517
1518 2016-06-14 John Baldwin <jhb@FreeBSD.org>
1519
1520 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
1521
1522 2016-06-14 John Baldwin <jhb@FreeBSD.org>
1523
1524 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
1525
1526 2016-06-14 John Baldwin <jhb@FreeBSD.org>
1527
1528 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
1529
1530 2016-06-13 Nick Clifton <nickc@redhat.com>
1531
1532 * gdbtypes.c (replace_type): Fix assertion.
1533
1534 2016-06-10 Tom Tromey <tom@tromey.com>
1535
1536 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
1537 (arch_boolean_type, arch_float_type, arch_complex_type)
1538 (arch_flags_type, append_flags_type_field)
1539 (append_flags_type_flag, arch_composite_type)
1540 (append_composite_type_field_raw)
1541 (append_composite_type_field_aligned)
1542 (append_composite_type_field): Make "name" parameter const.
1543 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
1544 (arch_boolean_type, arch_float_type, arch_complex_type)
1545 (append_composite_type_field, append_composite_type_field_aligned)
1546 (append_composite_type_field_raw, arch_flags_type)
1547 (append_flags_type_field, append_flags_type_flag): Constify.
1548
1549 2016-06-10 Tom Tromey <tom@tromey.com>
1550
1551 PR rust/20110:
1552 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
1553
1554 2016-06-10 Tom Tromey <tom@tromey.com>
1555
1556 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
1557 (YYFILES): Add rust-exp.c.
1558 (YYOBJ): Add rust-exp.o.
1559 (local-maintainer-clean): Remove rust-exp.c.
1560
1561 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
1562
1563 * NEWS: Mention that GDB now supports a negative repeat count in
1564 the 'x' command.
1565 * printcmd.c (decode_format): Allow '-' in the parameter
1566 "string_ptr" to accept a negative repeat count.
1567 (find_instruction_backward): New function.
1568 (read_memory_backward): New function.
1569 (integer_is_zero): New function.
1570 (find_string_backward): New function.
1571 (do_examine): Use new functions to examine memory backward.
1572 (_initialize_printcmd): Mention that 'x' command supports a negative
1573 repeat count.
1574
1575 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
1576
1577 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
1578
1579 2016-06-09 Tom Tromey <tom@tromey.com>
1580
1581 PR python/19819:
1582 * python/py-xmethods.c (invoke_method_name)
1583 (py_get_result_type_method_name, py_invoke_method_name): Remove.
1584 (gdbpy_initialize_xmethods): Don't initialize
1585 py_invoke_method_name, py_get_result_type_method_name.
1586
1587 2016-06-07 Simon Marchi <simon.marchi@ericsson.com>
1588
1589 * mi/mi-interp.c (mi_record_changed): Add missing braces.
1590
1591 2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
1592
1593 * findvar.c (follow_static_link): Check for valid pointer.
1594
1595 2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
1596
1597 * NEWS: Mention the new fields in =record-started.
1598 * common/btrace-common.h (btrace_format_short_string): New function
1599 declaration.
1600 * common/btrace-common.c (btrace_format_short_string): New
1601 function.
1602 * mi/mi-interp.c (mi_record_changed): Output method and format
1603 fields in the =record-started record.
1604 * record-btrace.c (record_btrace_open): Adapt record_changed
1605 notification.
1606 * record-full.c (record_full_open): Likewise.
1607 * record.c (cmd_record_stop): Likewise.
1608
1609 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
1610
1611 * windows-nat.c (handle_output_debug_string): Return type of
1612 gdb_signal_from_host() is gdb_signal, not an int.
1613 (windows_get_exec_module_filename): Add pointer casts for C++.
1614
1615 2016-06-02 Tom Tromey <tom@tromey.com>
1616
1617 PR python/18984:
1618 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
1619
1620 2016-06-01 Pedro Alves <palves@redhat.com>
1621
1622 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
1623 (remote_fio_osa)
1624 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
1625 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
1626 Delete.
1627 (remote_fileio_o_quit_handler): New global.
1628 (remote_fileio_quit_handler): New function.
1629 (remote_fileio_reply): Check the quit flag instead of the custom
1630 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
1631 of changing the SIGINT handler.
1632 (do_remote_fileio_request): Override the quit handler instead of
1633 changing the SIGINT handler.
1634
1635 2016-06-01 Nick Clifton <nickc@redhat.com>
1636
1637 * common/common-utils.c (xmalloc_failed): New function. Provided
1638 so that the version in libiberty is not linked in.
1639
1640 2016-06-01 Markus Metzger <markus.t.metzger@intel.com>
1641
1642 * infcmd.c (skip_finish_frames): New.
1643 (finish_command): Call skip_finish_frames.
1644
1645 2016-06-01 Yao Qi <yao.qi@linaro.org>
1646
1647 PR remote/19998
1648 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
1649 quit_serial_event_set.
1650
1651 2016-06-01 Joel Brobecker <brobecker@adacore.com>
1652
1653 GDB 7.11.1 released.
1654
1655 2016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
1656
1657 PR c++/19893
1658 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
1659 fetch_const_value_from_synthetic_pointer): New functions.
1660 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
1661 (pieced_value_funcs): Implement coerce_ref.
1662 * valops.c (value_addr): Call coerce_ref for synthetic references.
1663 * valprint.c (valprint_check_validity): Return true for synthetic
1664 references. Also, don't show "<synthetic pointer>" if they reference
1665 addressable values.
1666 (generic_val_print_ref): Handle synthetic references. Also move some
1667 code to print_ref_address.
1668 (print_ref_address, get_value_addr_contents): New functions.
1669
1670 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1671
1672 PR c++/15231
1673 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
1674 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
1675 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
1676 (read_call_site_scope): Adjust callers.
1677 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
1678 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
1679
1680 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1681
1682 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
1683 * dwarf2read.c (enum pc_bounds_kind) New.
1684 (dwarf2_get_pc_bounds): Use it in the declaration.
1685 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
1686 to cu_bounds_kind.
1687 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
1688 Adjust callers.
1689 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
1690 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
1691
1692 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1693
1694 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
1695 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
1696 deleted.
1697
1698 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1699
1700 * NEWS (N stop reply): Remove empty line.
1701
1702 2016-05-28 Alan Modra <amodra@gmail.com>
1703
1704 * compile/compile-object-load.c (link_callbacks_multiple_definition,
1705 link_callbacks_warning, link_callbacks_undefined_symbol,
1706 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
1707 link_callbacks_reloc_dangerous,
1708 link_callbacks_unattached_reloc): Return void.
1709
1710 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
1711
1712 * opencl-lang.c (evaluate_subexp_opencl): If
1713 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
1714 the returned value in the STRUCTOP_STRUCT case.
1715
1716 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
1717
1718 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
1719 mode, forward the VALUE_LVAL attribute to the returned value in
1720 the STRUCTOP_PTR case.
1721
1722 2016-05-25 Tom Tromey <tom@tromey.com>
1723
1724 * python/py-value.c (value_object_as_number): Use correct spelling
1725 of HAVE_LIBPYTHON2_4.
1726
1727 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
1728
1729 * f-typeprint.c (f_type_print_base): Replace 0 by show.
1730
1731 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
1732
1733 * f-typeprint.c (f_type_print_base): Decrease show by one.
1734
1735 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
1736
1737 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
1738
1739 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
1740
1741 * f-typeprint.c (f_type_print_base): Take print level into account.
1742
1743 2016-05-24 Tom Tromey <tom@tromey.com>
1744
1745 PR python/17386:
1746 * python/py-value.c (value_object_as_number): Add
1747 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
1748
1749 2016-05-24 Tom Tromey <tom@tromey.com>
1750
1751 * python/py-value.c (value_object_as_number): Add
1752 nb_inplace_divide for Python 2.
1753
1754 2016-05-23 Tom Tromey <tom@tromey.com>
1755
1756 PR python/17981:
1757 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
1758 when there are no breakpoints.
1759
1760 2016-05-24 Pedro Alves <palves@redhat.com>
1761
1762 PR gdb/19828
1763 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
1764 resumed, and add the thread to GDB's thread list.
1765
1766 2016-05-24 Pedro Alves <palves@redhat.com>
1767
1768 PR gdb/19828
1769 * linux-nat.c (get_pending_status): If the thread reported the
1770 event to the core and it's pending, use the pending status signal
1771 number.
1772
1773 2016-05-24 Pedro Alves <palves@redhat.com>
1774
1775 PR gdb/19828
1776 * linux-nat.c (lwp_lwpid_htab): New htab.
1777 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
1778 (lwp_lwpid_htab_add_lwp): New functions.
1779 (lwp_list): Tweak comment.
1780 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
1781 functions.
1782 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
1783 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
1784 (delete_lwp): Use lwp_list_remove. Remove htab too.
1785 (find_lwp_pid): Search in htab.
1786 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
1787 * linux-nat.h (struct lwp_info) <prev>: New field.
1788
1789 2016-05-24 Pedro Alves <palves@redhat.com>
1790
1791 PR gdb/19828
1792 * linux-nat.c (lwp_lwpid_htab): New htab.
1793 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
1794 (lwp_lwpid_htab_add_lwp): New functions.
1795 (lwp_list): Tweak comment.
1796 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
1797 functions.
1798 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
1799 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
1800 (delete_lwp): Use lwp_list_remove. Remove htab too.
1801 (find_lwp_pid): Search in htab.
1802 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
1803 * linux-nat.h (struct lwp_info) <prev>: New field.
1804
1805 2016-05-24 Pedro Alves <palves@redhat.com>
1806
1807 PR gdb/19828
1808 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
1809 field.
1810 (linux_nat_update_thread_list): Don't fetch the core if already
1811 known.
1812
1813 2016-05-24 Pedro Alves <palves@redhat.com>
1814
1815 PR gdb/19828
1816 * linux-tdep.c (find_mapping_size): Delete.
1817 (linux_vsyscall_range_raw): Rewrite reading from
1818 /proc/PID/task/PID/maps directly instead of using
1819 gdbarch_find_memory_regions.
1820
1821 2016-05-24 Pedro Alves <palves@redhat.com>
1822
1823 PR gdb/19828
1824 * linux-nat.c (report_thread_events): New global.
1825 (linux_handle_extended_wait): Report
1826 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
1827 enabled.
1828 (wait_lwp, linux_nat_filter_event): Report all thread exits if
1829 thread event reporting is enabled. Remove comment.
1830 (filter_exit_event): New function.
1831 (linux_nat_wait_1): Use it.
1832 (linux_nat_thread_events): New function.
1833 (linux_nat_add_target): Install it as target_thread_events method.
1834
1835 2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
1836
1837 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
1838
1839 2016-05-23 Yao Qi <yao.qi@arm.com>
1840
1841 * arch-utils.c (default_code_of_frame_writable): New function.
1842 * arch-utils.h (default_code_of_frame_writable): Declare.
1843 * arm-tdep.c (arm_code_of_frame_writable): New function.
1844 (arm_gdbarch_init): Install gdbarch method
1845 code_of_frame_writable if the target is M-profile.
1846 * frame.c (skip_unwritable_frames): New function.
1847 * frame.h (skip_unwritable_frames): Declare.
1848 * gdbarch.sh (code_of_frame_writable): New.
1849 * gdbarch.c, gdbarch.h: Re-generated.
1850 * infcmd.c (finish_command): Call skip_unwritable_frames.
1851
1852 2016-05-23 Tom Tromey <tom@tromey.com>
1853
1854 PR python/19438, PR python/18393:
1855 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
1856 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
1857
1858 2016-05-23 Gary Benson <gbenson@redhat.com>
1859
1860 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
1861 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
1862 Remove field.
1863 (try_thread_db_load_1): Remove td_thr_validate initialization.
1864
1865 2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
1866
1867 * configure.ac: Search for libutil-freebsd as alternative to libutil.
1868 * configure: Re-generated.
1869
1870 2016-05-19 Andreas Schwab <schwab@suse.de>
1871
1872 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
1873 (libunwind_frame_set_descr): Likewise.
1874 (libunwind_frame_cache): Likewise.
1875 (libunwind_frame_dealloc_cache): Likewise.
1876 (libunwind_frame_sniffer): Likewise.
1877 (libunwind_search_unwind_table): Likewise.
1878 (libunwind_sigtramp_frame_sniffer): Likewise.
1879 (libunwind_get_reg_special): Likewise.
1880 (libunwind_load): Likewise.
1881 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
1882 (ia64_linux_store_register): Likewise.
1883 (ia64_linux_xfer_partial): Likewise.
1884 * ia64-tdep.c (ia64_access_reg): Likewise.
1885 (ia64_access_fpreg): Likewise.
1886 (ia64_access_rse_reg): Likewise.
1887 (ia64_access_rse_fpreg): Likewise.
1888
1889 2016-05-18 Tom Tromey <tom@tromey.com>
1890
1891 * rust-lang.c (rust_subscript): Initialize "high".
1892
1893 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
1894
1895 PR gdb/20045
1896 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
1897 of target_is_async_p.
1898
1899 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
1900
1901 PR gdb/18077
1902 * mi/mi-main.c (run_one_inferior): Use run target to determine
1903 whether to run async or not.
1904 (mi_cmd_exec_run): Likewise.
1905
1906 2016-05-17 Tom Tromey <tom@tromey.com>
1907
1908 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
1909 * rust-lang.c: Don't include f-lang.h.
1910 (rust_range, rust_compute_range, rust_subscript)
1911 (rust_evaluate_subexp): Update.
1912 * rust-exp.y: Don't include f-lang.h.
1913 (ast_range, convert_ast_to_expression): Update.
1914 * parse.c (operator_length_standard): Update.
1915 * f-lang.h (enum f90_range_type): Move to expression.h.
1916 * f-exp.y: Use OP_RANGE.
1917 * expression.h (enum range_type): New enum; renamed from
1918 f90_range_type.
1919 * expprint.c: Don't include f-lang.h.
1920 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
1921 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
1922
1923 2016-05-17 Tom Tromey <tom@tromey.com>
1924
1925 * NEWS: Add Rust item.
1926
1927 2016-05-17 Tom Tromey <tom@tromey.com>
1928 Manish Goregaokar <manishsmail@gmail.com>
1929
1930 * symtab.c (symbol_find_demangled_name): Handle Rust.
1931 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
1932 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
1933 constants.
1934 * rust-lang.h: New file.
1935 * rust-lang.c: New file.
1936 * rust-exp.y: New file.
1937 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
1938 (dwarf2_compute_name, read_func_scope, read_structure_type)
1939 (read_base_type, read_subrange_type, set_cu_language)
1940 (new_symbol_full, determine_prefix): Handle Rust.
1941 * defs.h (enum language) <language_rust>: New constant.
1942 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
1943 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
1944
1945 2016-05-17 Tom Tromey <tom@tromey.com>
1946
1947 * valprint.h (struct generic_val_print_array) <array_start,
1948 array_end>: New fields.
1949 * valprint.c (generic_val_print_array): Add "decorations"
1950 parameter. Use "array_start", "array_end".
1951 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
1952 * p-valprint.c (p_decorations): Update.
1953 * m2-valprint.c (m2_decorations): Update.
1954 * f-valprint.c (f_decorations): Update.
1955 * c-valprint.c (c_decorations): Update.
1956
1957 2016-05-17 Tom Tromey <tom@tromey.com>
1958
1959 * NEWS: Add "maint selftest" entry.
1960 * selftest.h: New file.
1961 * selftest.c: New file.
1962 * maint.c: Include selftest.h.
1963 (maintenance_selftest): New function.
1964 (_initialize_maint_cmds): Add "maint selftest" command.
1965 * configure.ac (GDB_SELF_TEST): Maybe define.
1966 * config.in, configure: Rebuild.
1967 * Makefile.in (SFILES): Add selftest.c.
1968 (COMMON_OBS): Add selftest.o.
1969
1970 2016-05-17 Tom Tromey <tom@tromey.com>
1971
1972 * expprint.c: Include f-lang.h.
1973 (print_subexp_standard, dump_subexp_body_standard): Handle
1974 OP_F90_RANGE.
1975
1976 2016-05-17 Tom Tromey <tom@tromey.com>
1977
1978 * Makefile.in (init.c): Search .y files for initialization
1979 functions.
1980
1981 2016-05-12 Doug Evans <dje@google.com>
1982
1983 PR symtab/19999
1984 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
1985 add base_offset.
1986
1987 2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1988
1989 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
1990 anything.
1991 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
1992
1993 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1994
1995 * arm-tdep.c (arm_elf_make_msymbol_special): Use
1996 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
1997
1998 2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
1999
2000 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
2001 variables.
2002 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
2003 (aarch64_scan_prologue): Likewise.
2004 (aarch64_prologue_prev_register): Likewise.
2005 (aarch64_dwarf2_prev_register): Likewise.
2006 (pass_in_v): Likewise.
2007 (aarch64_push_dummy_call): Likewise.
2008 (aarch64_breakpoint_from_pc): Likewise.
2009 (aarch64_return_in_memory): Likewise.
2010 (aarch64_return_value): Likewise.
2011 (aarch64_displaced_step_b_cond): Likewise.
2012 (aarch64_displaced_step_cb): Likewise.
2013 (aarch64_displaced_step_tb): Likewise.
2014 (aarch64_gdbarch_init): Likewise.
2015 (aarch64_process_record): Likewise.
2016 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
2017 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
2018 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
2019 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
2020 * amd64-tdep.c (fixup_riprel): Likewise.
2021 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
2022 (amd64_windows_frame_decode_insns): Likewise.
2023 (amd64_windows_frame_cache): Likewise.
2024 (amd64_windows_frame_prev_register): Likewise.
2025 (amd64_windows_frame_this_id): Likewise.
2026 (amd64_windows_init_abi): Likewise.
2027 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
2028 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
2029 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
2030 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
2031 (arm_epilogue_frame_prev_register): Likewise.
2032 (arm_record_vdata_transfer_insn): Likewise.
2033 (arm_record_exreg_ld_st_insn): Likewise.
2034 * auto-load.c (execute_script_contents): Likewise.
2035 (print_scripts): Likewise.
2036 * avr-tdep.c (avr_frame_prev_register): Likewise.
2037 (avr_push_dummy_call): Likewise.
2038 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
2039 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2040 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
2041 * break-catch-throw.c (fetch_probe_arguments): Likewise.
2042 * breakpoint.c (breakpoint_xfer_memory): Likewise.
2043 (breakpoint_init_inferior): Likewise.
2044 (breakpoint_inserted_here_p): Likewise.
2045 (software_breakpoint_inserted_here_p): Likewise.
2046 (hardware_breakpoint_inserted_here_p): Likewise.
2047 (bpstat_what): Likewise.
2048 (break_range_command): Likewise.
2049 (save_breakpoints): Likewise.
2050 * coffread.c (coff_symfile_read): Likewise.
2051 * cris-tdep.c (cris_push_dummy_call): Likewise.
2052 (cris_scan_prologue): Likewise.
2053 (cris_register_size): Likewise.
2054 (_initialize_cris_tdep): Likewise.
2055 * d-exp.y: Likewise.
2056 * dbxread.c (dbx_read_symtab): Likewise.
2057 (process_one_symbol): Likewise.
2058 (coffstab_build_psymtabs): Likewise.
2059 (elfstab_build_psymtabs): Likewise.
2060 * dicos-tdep.c (dicos_init_abi): Likewise.
2061 * disasm.c (do_mixed_source_and_assembly): Likewise.
2062 (gdb_disassembly): Likewise.
2063 * dtrace-probe.c (dtrace_process_dof): Likewise.
2064 * dwarf2read.c (error_check_comp_unit_head): Likewise.
2065 (build_type_psymtabs_1): Likewise.
2066 (skip_one_die): Likewise.
2067 (process_imported_unit_die): Likewise.
2068 (dwarf2_physname): Likewise.
2069 (read_file_scope): Likewise.
2070 (setup_type_unit_groups): Likewise.
2071 (create_dwo_cu_reader): Likewise.
2072 (create_dwo_cu): Likewise.
2073 (create_dwo_unit_in_dwp_v1): Likewise.
2074 (create_dwo_unit_in_dwp_v2): Likewise.
2075 (lookup_dwo_unit_in_dwp): Likewise.
2076 (free_dwo_file): Likewise.
2077 (check_producer): Likewise.
2078 (dwarf2_add_typedef): Likewise.
2079 (dwarf2_add_member_fn): Likewise.
2080 (read_unsigned_leb128): Likewise.
2081 (read_signed_leb128): Likewise.
2082 (dwarf2_const_value): Likewise.
2083 (follow_die_sig_1): Likewise.
2084 (dwarf_decode_macro_bytes): Likewise.
2085 * extension.c (restore_active_ext_lang): Likewise.
2086 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
2087 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
2088 * gdbtypes.c (lookup_typename): Likewise.
2089 (resolve_dynamic_range): Likewise.
2090 (check_typedef): Likewise.
2091 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
2092 (h8300_gdbarch_init): Likewise.
2093 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
2094 (hppa_frame_this_id): Likewise.
2095 (_initialize_hppa_tdep): Likewise.
2096 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
2097 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
2098 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
2099 * i386-tdep.c (i386_bnd_type): Likewise.
2100 (i386_gdbarch_init): Likewise.
2101 (i386_mpx_bd_base): Likewise.
2102 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
2103 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
2104 * ia64-tdep.c (examine_prologue): Likewise.
2105 (ia64_frame_cache): Likewise.
2106 (ia64_push_dummy_call): Likewise.
2107 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
2108 (default_print_one_register_info): Likewise.
2109 * infrun.c (infrun_thread_ptid_changed): Likewise.
2110 (thread_still_needs_step_over): Likewise.
2111 (stop_all_threads): Likewise.
2112 (restart_threads): Likewise.
2113 (keep_going_stepped_thread): Likewise.
2114 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
2115 * language.c (language_init_primitive_type_symbols): Likewise.
2116 * linespec.c (add_sal_to_sals): Likewise.
2117 * linux-nat.c (status_callback): Likewise.
2118 (kill_unfollowed_fork_children): Likewise.
2119 (linux_nat_kill): Likewise.
2120 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
2121 * linux-thread-db.c (thread_db_notice_clone): Likewise.
2122 (record_thread): Likewise.
2123 * location.c (string_to_event_location_basic): Likewise.
2124 * m32c-tdep.c (m32c_prev_register): Likewise.
2125 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
2126 * m32r-tdep.c (decode_prologue): Likewise.
2127 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2128 * machoread.c (macho_symtab_read): Likewise.
2129 (macho_symfile_read): Likewise.
2130 (macho_symfile_offsets): Likewise.
2131 * maint.c (set_per_command_cmd): Likewise.
2132 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
2133 (mi_cmd_stack_list_variables): Likewise.
2134 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
2135 (output_register): Likewise.
2136 (mi_cmd_execute): Likewise.
2137 (mi_cmd_trace_define_variable): Likewise.
2138 (print_variable_or_computed): Likewise.
2139 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
2140 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
2141 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
2142 * mt-tdep.c (mt_registers_info): Likewise.
2143 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
2144 (nios2_push_dummy_call): Likewise.
2145 (nios2_frame_unwind_cache): Likewise.
2146 (nios2_stub_frame_cache): Likewise.
2147 (nios2_stub_frame_sniffer): Likewise.
2148 (nios2_gdbarch_init): Likewise.
2149 * ppc-ravenscar-thread.c: Likewise.
2150 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
2151 * python/py-evts.c (add_new_registry): Likewise.
2152 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
2153 (bpfinishpy_detect_out_scope_cb): Likewise.
2154 * python/py-framefilter.c (py_print_value): Likewise.
2155 * python/py-inferior.c (infpy_write_memory): Likewise.
2156 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
2157 * python/py-infthread.c (thpy_get_ptid): Likewise.
2158 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
2159 (ltpy_get_all_source_lines): Likewise.
2160 (ltpy_is_valid): Likewise.
2161 (ltpy_iternext): Likewise.
2162 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
2163 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
2164 (unwind_infopy_str): Likewise.
2165 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
2166 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2167 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
2168 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
2169 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
2170 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
2171 (s390_frame_prev_register): Likewise.
2172 (s390_dwarf2_frame_init_reg): Likewise.
2173 (s390_record_vr): Likewise.
2174 (s390_process_record): Likewise.
2175 * score-tdep.c (score_push_dummy_call): Likewise.
2176 (score3_analyze_prologue): Likewise.
2177 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
2178 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
2179 (sh64_push_dummy_call): Likewise.
2180 (sh64_extract_return_value): Likewise.
2181 (sh64_do_fp_register): Likewise.
2182 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
2183 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
2184 (darwin_solib_read_all_image_info_addr): Likewise.
2185 * solib-dsbt.c (enable_break): Likewise.
2186 * solib-frv.c (enable_break2): Likewise.
2187 (frv_fdpic_find_canonical_descriptor): Likewise.
2188 * solib-svr4.c (svr4_handle_solib_event): Likewise.
2189 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
2190 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
2191 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
2192 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2193 * stack.c (read_frame_local): Likewise.
2194 * symfile.c (symbol_file_add_separate): Likewise.
2195 (remove_symbol_file_command): Likewise.
2196 * symmisc.c (maintenance_print_one_line_table): Likewise.
2197 * symtab.c (symbol_cache_flush): Likewise.
2198 (basic_lookup_transparent_type): Likewise.
2199 (sort_search_symbols_remove_dups): Likewise.
2200 * target.c (target_memory_map): Likewise.
2201 (target_detach): Likewise.
2202 (target_resume): Likewise.
2203 (acquire_fileio_fd): Likewise.
2204 (target_store_registers): Likewise.
2205 * thread.c (print_thread_info_1): Likewise.
2206 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
2207 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
2208 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2209 (tilegx_analyze_prologue): Likewise.
2210 (tilegx_stack_frame_destroyed_p): Likewise.
2211 (tilegx_frame_cache): Likewise.
2212 * tracefile.c (trace_save): Likewise.
2213 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
2214 (start_tracing): Likewise.
2215 (print_one_static_tracepoint_marker): Likewise.
2216 * tui/tui.c (tui_enable): Likewise.
2217 * valops.c (value_struct_elt_bitpos): Likewise.
2218 (find_overload_match): Likewise.
2219 (find_oload_champ): Likewise.
2220 * value.c (value_contents_copy_raw): Likewise.
2221 * windows-tdep.c (windows_get_tlb_type): Likewise.
2222 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
2223 * xcoffread.c (record_minimal_symbol): Likewise.
2224 (scan_xcoff_symtab): Likewise.
2225 * xtensa-tdep.c (execute_code): Likewise.
2226 (xtensa_gdbarch_init): Likewise.
2227 (_initialize_xtensa_tdep): Likewise.
2228
2229 2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
2230
2231 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
2232 (spu_bfd_open): Likewise.
2233
2234 2016-05-04 Yao Qi <yao.qi@linaro.org>
2235
2236 PR gdb/19947
2237 * corefile.c (read_memory): Rename it to ...
2238 (read_memory_object): ... it. Add parameter object.
2239 (read_memory): Call read_memory_object.
2240 (read_stack): Likewise.
2241 (read_code): Likewise.
2242
2243 2016-05-03 Yunlian Jiang <yunlian@google.com>
2244 Doug Evans <dje@google.com>
2245
2246 PR symtab/19914
2247 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
2248 is separate debug file.
2249
2250 2016-05-03 Don Breazeal <donb@codesourcery.com>
2251
2252 * serial.h (gdb_pipe): Fix argument names in comment.
2253
2254 2016-05-03 Pedro Alves <palves@redhat.com>
2255
2256 PR python/20037
2257 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
2258 oldloc.
2259
2260 2016-05-03 Pedro Alves <palves@redhat.com>
2261
2262 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
2263 code.
2264
2265 2016-05-03 Pedro Alves <palves@redhat.com>
2266
2267 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
2268 * configure: Regenerate.
2269
2270 2016-05-03 Pedro Alves <palves@redhat.com>
2271
2272 * configure.ac (checking for the dynamic export flag): Add
2273 $PYTHON_CPPFLAGS to CPPFLAGS.
2274 * configure: Regenerate.
2275
2276 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2277
2278 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
2279 warning.
2280 (find_pc_mapped_section): Likewise.
2281 (list_overlays_command): Likewise.
2282
2283 2016-05-02 Eli Zaretskii <eliz@gnu.org>
2284
2285 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
2286 error in allocation of space for "$HOME/.gdbinit" string. This
2287 caused GDB to abort on startup whenever a '~/gdb.ini' file was
2288 actually found, because xsnprintf would hit an assertion
2289 violation.
2290
2291 2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
2292
2293 * cli/cli-decode.c (help_cmd_list): Do not list commands that
2294 are deprecated.
2295
2296 2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2297
2298 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
2299
2300 2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
2301
2302 * c-valprint.c (c_value_print): Always convert val back to reference
2303 type if we converted it to a pointer type.
2304
2305 2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2306
2307 * configure.ac: Enhance configure check for babeltrace to reject
2308 non-C++-enabled versions.
2309 * configure: Regenerate.
2310
2311 2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
2312 Keven Boell <keven.boell@intel.com>
2313 Bernhard Heckel <bernhard.heckel@intel.com>
2314
2315 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
2316 function.
2317 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
2318 (f77_print_array_1): Use value_subscript to subscript a
2319 value array.
2320 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
2321 (f_val_print): Use value_field to construct a field value.
2322
2323 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
2324
2325 * valarith.c (value_address): Resolve dynamic types.
2326
2327 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
2328 Keven Boell <kevel.boell@intel.com>
2329
2330 * NEWS: Add new supported features for fortran.
2331 * gdbtypes.c (remove_dyn_prop): New.
2332 (resolve_dynamic_struct): Keep type length for fortran structs.
2333 * gdbtypes.h: Forward declaration of new function.
2334 * value.c (value_address): Return dynamic resolved location of a value.
2335 (set_value_component_location): Adjust the value address
2336 for single value prints.
2337 (value_primitive_field): Support value types with a dynamic location.
2338 (set_internalvar): Remove dynamic location property of
2339 internal variables.
2340
2341 2016-04-25 Pedro Alves <palves@redhat.com>
2342 Yao Qi <yao.qi@linaro.org>
2343
2344 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
2345 object. Insert it if it is not inserted yet. Increase the
2346 refcount and link it into the proc's raw breakpoint list.
2347
2348 2016-04-25 Yao Qi <yao.qi@linaro.org>
2349
2350 * breakpoint.c (should_be_inserted): Return 0 if the location's
2351 owner is not single step breakpoint or single step breakpoint's
2352 thread isn't the thread which is stepping past a breakpoint.
2353 * gdbarch.sh (software_single_step): Update comments.
2354 * gdbarch.h: Regenerated.
2355 * infrun.c (struct step_over_info) <thread>: New field.
2356 (set_step_over_info): New argument 'thread'. Callers updated.
2357 (clear_step_over_info): Set field thread to -1.
2358 (thread_is_stepping_over_breakpoint): New function.
2359 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
2360
2361 2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2362
2363 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
2364 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
2365
2366 2016-04-22 Yao Qi <yao.qi@linaro.org>
2367
2368 * valops.c (read_value_memory): New local variable 'stack'.
2369 Set it to either TARGET_OBJECT_STACK_MEMORY or
2370 TARGET_OBJECT_MEMORY.
2371
2372 2016-04-22 Pedro Alves <palves@redhat.com>
2373
2374 * ada-exp.y: Remove all yy symbol remappings.
2375 (GDB_YY_REMAP_PREFIX): Define.
2376 Include "yy-remap.h".
2377 * ada-lang.c (ada_language_defn): Adjust.
2378 * ada-lang.h (ada_error): Rename to ...
2379 (ada_yyerror): ... this.
2380 * c-exp.y: Remove all yy symbol remappings.
2381 (GDB_YY_REMAP_PREFIX): Define.
2382 Include "yy-remap.h".
2383 * c-lang.c (c_language_defn, cplus_language_defn)
2384 (asm_language_defn, minimal_language_defn): Adjust.
2385 * c-lang.h (c_error): Rename to ...
2386 (c_yyerror): ... this.
2387 * d-exp.y: Remove all yy symbol remappings.
2388 (GDB_YY_REMAP_PREFIX): Define.
2389 Include "yy-remap.h".
2390 * d-lang.c (d_language_defn): Adjust.
2391 * d-lang.h (d_error): Rename to ...
2392 (d_yyerror): ... this.
2393 * f-exp.y: Remove all yy symbol remappings.
2394 (GDB_YY_REMAP_PREFIX): Define.
2395 Include "yy-remap.h".
2396 * f-lang.c (f_language_defn): Adjust.
2397 * f-lang.h (f_error): Rename to ...
2398 (f_yyerror): ... this.
2399 * go-exp.y: Remove all yy symbol remappings.
2400 (GDB_YY_REMAP_PREFIX): Define.
2401 Include "yy-remap.h".
2402 * go-lang.c (go_language_defn): Adjust.
2403 * go-lang.h (go_error): Rename to ...
2404 (go_yyerror): ... this.
2405 * jv-exp.y: Remove all yy symbol remappings.
2406 (GDB_YY_REMAP_PREFIX): Define.
2407 Include "yy-remap.h".
2408 * jv-lang.c (java_language_defn): Adjust.
2409 * jv-lang.h (java_error): Rename to ...
2410 (java_yyerror): ... this.
2411 * m2-exp.y: Remove all yy symbol remappings.
2412 (GDB_YY_REMAP_PREFIX): Define.
2413 Include "yy-remap.h".
2414 * m2-lang.c (m2_language_defn): Adjust.
2415 * m2-lang.h (m2_error): Rename to ...
2416 (m2_yyerror): ... this.
2417 * objc-exp.y: Remove all yy symbol remappings.
2418 (GDB_YY_REMAP_PREFIX): Define.
2419 Include "yy-remap.h".
2420 * objc-lang.c (objc_language_defn): Adjust.
2421 * opencl-lang.c (opencl_language_defn): Adjust.
2422 * p-exp.y: Remove all yy symbol remappings.
2423 (GDB_YY_REMAP_PREFIX): Define.
2424 Include "yy-remap.h".
2425 * p-lang.c (pascal_language_defn): Adjust.
2426 * p-lang.h (pascal_error): Rename to ...
2427 (pascal_yyerror): ... this.
2428 * yy-remap.h: New file.
2429
2430 2016-04-22 Pedro Alves <palves@redhat.com>
2431
2432 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
2433 the foreign frames issue.
2434 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
2435
2436 2016-04-22 Pedro Alves <palves@redhat.com>
2437
2438 * common/common-exceptions.c (enum catcher_state, struct catcher)
2439 (current_catcher): Define in C++ mode too.
2440 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
2441 throw_exception.
2442 (throw_exception_sjlj, throw_exception_cxx): New functions,
2443 factored out from throw_exception.
2444 (throw_exception): Reimplement.
2445 * common/common-exceptions.h (exceptions_state_mc_init)
2446 (exceptions_state_mc_action_iter)
2447 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
2448 Declare in C++ mode too.
2449 (TRY): Rename to ...
2450 (TRY_SJLJ): ... this.
2451 (CATCH): Rename to ...
2452 (CATCH_SJLJ): ... this.
2453 (END_CATCH): Rename to ...
2454 (END_CATCH_SJLJ): ... this.
2455 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
2456 equivalents.
2457 (throw_exception): Update comments.
2458 (throw_exception_sjlj): Declare.
2459 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
2460 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
2461 intercepted exception.
2462 (gdb_rl_callback_handler): New function.
2463 (gdb_rl_callback_handler_install): Always install
2464 gdb_rl_callback_handler as readline callback.
2465
2466 2016-04-22 Pedro Alves <palves@redhat.com>
2467
2468 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
2469 (gdb_rl_callback_read_char_wrapper): ... this.
2470 (change_line_handler, gdb_setup_readline): Adjust.
2471
2472 2016-04-22 Yao Qi <yao.qi@linaro.org>
2473
2474 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
2475 bits 20 to 23.
2476
2477 2016-04-22 Joel Brobecker <brobecker@adacore.com>
2478
2479 * MAINTAINER: Remove myself as AIX Maintainer.
2480
2481 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
2482
2483 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
2484 `num_regs' to 90 rather than 79. Where a target description is
2485 present adjust the setting appropriately.
2486
2487 2016-04-21 Pedro Alves <palves@redhat.com>
2488
2489 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
2490 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
2491
2492 2016-04-21 Pedro Alves <palves@redhat.com>
2493
2494 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
2495 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
2496 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
2497 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
2498 pointer, and cast return to gdb_byte pointer.
2499
2500 2016-04-21 Pedro Alves <palves@redhat.com>
2501
2502 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
2503 void * instead of gdb_byte *.
2504
2505 2016-04-21 Pedro Alves <palves@redhat.com>
2506
2507 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
2508 (file_file_name, file_full_name): Add char * cast to sentinel in
2509 concat/reconcat calls.
2510 * event-top.c (top_level_prompt): Likewise.
2511 * guile/guile.c (initialize_scheme_side): Likewise.
2512 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
2513 * macrotab.c (macro_source_fullname): Likewise.
2514 * main.c (get_init_files, captured_main): Likewise.
2515 * psymtab.c (psymtab_to_fullname): Likewise.
2516 * python/python.c (_initialize_python)
2517 (gdbpy_finish_initialization): Likewise.
2518 * source.c (symtab_to_fullname): Likewise.
2519
2520 2016-04-20 Pedro Alves <palves@redhat.com>
2521
2522 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
2523 * configure: Renegerate.
2524
2525 2016-04-20 Pedro Alves <palves@redhat.com>
2526
2527 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
2528
2529 2016-04-20 Pedro Alves <palves@redhat.com>
2530
2531 * aarch64-tdep.c (aarch64_record_load_store): Change type of
2532 'reg_rm_val' local to ULONGEST.
2533
2534 2016-04-20 Pedro Alves <palves@redhat.com>
2535
2536 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
2537
2538 2016-04-20 Doug Evans <xdje42@gmail.com>
2539
2540 * symmisc.c (dump_symtab_1): Print owning compunit for identical
2541 blockvectors.
2542
2543 2016-04-20 Yao Qi <yao.qi@linaro.org>
2544
2545 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
2546
2547 2016-04-20 Yao Qi <yao.qi@linaro.org>
2548
2549 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
2550 * arch/arm-linux.h: ... here.
2551
2552 2016-04-19 John Baldwin <jhb@FreeBSD.org>
2553
2554 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
2555 to void *.
2556 (amd64bsd_store_inferior_registers): Likewise.
2557 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
2558 (resume_all_threads_cb): Likewise.
2559 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
2560 (i386bsd_collect_gregset): Likewise.
2561 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
2562 (i386bsd_store_inferior_registers): Likewise.
2563
2564 2016-04-19 John Baldwin <jhb@FreeBSD.org>
2565
2566 * main.c (setup_alternate_signal_stack): Cast to char *.
2567
2568 2016-04-19 Doug Evans <xdje42@gmail.com>
2569
2570 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
2571 All callers updated.
2572
2573 2016-04-19 Doug Evans <xdje42@gmail.com>
2574
2575 PR gdb/17911
2576 * source.c (is_regular_file): New arg errno_ptr.
2577 All callers updated.
2578
2579 2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
2580
2581 * linux-record.c (record_linux_system_call): Merge handling for
2582 readlink/recv/read and pipe/pipe2.
2583
2584 2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
2585
2586 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
2587 * features/i386/amd64-mpx.xml: Remove AVX feature.
2588 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
2589 * features/i386/i386-mpx.xml: Remove AVX feature.
2590 * features/i386/amd64-mpx-linux.c: Regenerate.
2591 * features/i386/amd64-mpx.c: Regenerate.
2592 * features/i386/i386-mpx-linux.c: Regenerate.
2593 * features/i386/i386-mpx.c: Regenerate.
2594 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2595 * regformats/i386/amd64-mpx.dat: Regenerate.
2596 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2597 * regformats/i386/i386-mpx.dat: Regenerate.
2598
2599 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
2600
2601 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
2602 New include.
2603 (amd64_linux_core_read_description): Add case for
2604 X86_XSTATE_AVX_MPX_MASK.
2605 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
2606 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
2607 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
2608 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
2609 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
2610 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
2611 (X86_XSTATE_AVX_MPX_MASK): New case.
2612 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
2613 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
2614 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
2615 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
2616 New expedites.
2617 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
2618 include.
2619 (i386_linux_core_read_description): Add case
2620 X86_XSTATE_AVX_MPX_MASK.
2621 (_initialize_i386_linux_tdep): Call
2622 initialize_tdesc_i386_avx_mpx_linux.
2623 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
2624 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
2625 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
2626 * x86-linux-nat.c (x86_linux_read_description): Add case for
2627 X86_XSTATE_AVX_MPX_MASK.
2628 * features/i386/amd64-avx-mpx-linux.xml: New file.
2629 * features/i386/i386-avx-mpx-linux.xml: New file.
2630 * features/i386/i386-avx-mpx.xml: New file.
2631 * features/i386/amd64-avx-mpx.xml: New file.
2632 * features/i386/amd64-avx-mpx-linux.c: Generated.
2633 * features/i386/amd64-avx-mpx.c: Generated.
2634 * features/i386/i386-avx-mpx-linux.c: Generated.
2635 * features/i386/i386-avx-mpx.c: Generated.
2636 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
2637 * regformats/i386/amd64-avx-mpx.dat: Generated.
2638 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
2639 * regformats/i386/i386-avx-mpx.dat: Generated.
2640
2641 2016-04-18 Pedro Alves <palves@redhat.com>
2642
2643 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
2644 * configure: Regenerate.
2645
2646 2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
2647
2648 * valops.c (value_addr): For C++ references, set the copied value's
2649 enclosing_type as well.
2650
2651 2016-04-18 Yao Qi <yao.qi@linaro.org>
2652
2653 Revert:
2654 2016-04-15 Yao Qi <yao.qi@linaro.org>
2655
2656 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
2657 PC is far from the end of function.
2658
2659 2016-04-16 Pedro Alves <palves@redhat.com>
2660
2661 * ada-exp.y (yydefred): Define as ada_yydefred.
2662
2663 2016-04-15 Pedro Alves <palves@redhat.com>
2664
2665 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
2666 'name_str' locals.
2667
2668 2016-04-15 Pedro Alves <palves@redhat.com>
2669
2670 * btrace.c (pt_btrace_insn_flags): Change return type to
2671 btrace_insn_flags. Use btrace_insn_flags for local.
2672
2673 2016-04-15 Pedro Alves <palves@redhat.com>
2674
2675 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
2676 accept TRAP_BRKPT.
2677 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
2678
2679 2016-04-15 Yao Qi <yao.qi@linaro.org>
2680
2681 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
2682 PC is far from the end of function.
2683
2684 2016-04-14 Pedro Alves <palves@redhat.com>
2685
2686 * cli/cli-cmds.c (alias_usage_error): New function.
2687 (alias_command): Use it.
2688 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
2689 ctf_save_write_metadata call.
2690
2691 2016-04-14 Pedro Alves <palves@redhat.com>
2692
2693 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
2694 argument to function expecting LONGEST.
2695 * value.c (unpack_long): Add casts to LONGEST.
2696
2697 2016-04-13 Luis Machado <lgustavo@codesourcery.com>
2698
2699 * exec.c (exec_file_locate_attach): Guard a couple functions
2700 that can throw errors.
2701 (exception_print_same): New helper function.
2702
2703 2016-04-13 Pedro Alves <palves@redhat.com>
2704
2705 PR remote/19840
2706 * remote.c (struct remote_state) <last_resume_exec_dir>: New
2707 field.
2708 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
2709 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
2710 (remote_resume): Store the last execution direction.
2711 (remote_execution_direction): New function.
2712 (init_remote_ops): Install it as to_execution_direction target_ops
2713 method.
2714
2715 2016-04-12 Pedro Alves <palves@redhat.com>
2716
2717 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
2718 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
2719
2720 2016-04-12 Pedro Alves <palves@redhat.com>
2721
2722 * common/common-exceptions.c (struct catcher) <buf>: Now a
2723 'jmp_buf' instead of SIGJMP_BUF.
2724 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
2725 (throw_exception): Use longjmp instead of SIGLONGJMP.
2726 * common/common-exceptions.h: Include <setjmp.h> instead of
2727 "gdb_setjmp.h".
2728 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
2729 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
2730 SIGSETJMP.
2731 * cp-support.c: Include "gdb_setjmp.h".
2732
2733 2016-04-12 Pedro Alves <palves@redhat.com>
2734
2735 * common/common-exceptions.c (exception_rethrow): Remove
2736 prepare_to_throw_exception call.
2737 * common/common-exceptions.h (prepare_to_throw_exception): Delete
2738 declaration.
2739 * exceptions.c (prepare_to_throw_exception): Delete.
2740
2741 2016-04-12 Pedro Alves <palves@redhat.com>
2742
2743 * target.c (target_check_pending_interrupt): Delete.
2744 * target.h (struct target_ops) <to_check_pending_interrupt>:
2745 Remove method.
2746 (target_check_pending_interrupt): Remove declaration.
2747 * target-delegates.c: Regenerate.
2748
2749 2016-04-12 Pedro Alves <palves@redhat.com>
2750
2751 * defs.h: Update comments on SIGINT handling.
2752 (immediate_quit): Delete declaration.
2753 * event-loop.c (call_async_signal_handler): Delete.
2754 * event-loop.h (call_async_signal_handler): Delete declaration.
2755 (mark_async_signal_handler): Update comments.
2756 (gdb_call_async_signal_handler): Delete declaration.
2757 * event-top.c (handle_sigint): Call mark_async_signal_handler
2758 instead of gdb_call_async_signal_handler.
2759 * exceptions.c (prepare_to_throw_exception): Remove reference to
2760 immediate_quit.
2761 (exception_fprintf): Remove comments about immediate_quit.
2762 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
2763 (gdb_select): Don't wait on sigint_event.
2764 (gdb_call_async_signal_handler): Delete.
2765 (_initialize_mingw_hdep): Delete.
2766 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
2767 * utils.c (immediate_quit): Delete.
2768
2769 2016-04-12 Pedro Alves <palves@redhat.com>
2770
2771 * defs.h (quit_handler_ftype, quit_handler)
2772 (make_cleanup_override_quit_handler, default_quit_handler): New.
2773 (QUIT): Adjust comments.
2774 * event-top.c (default_quit_handler): New function.
2775 (quit_handler): New global.
2776 (struct quit_handler_cleanup_data): New.
2777 (restore_quit_handler, restore_quit_handler_dtor)
2778 (make_cleanup_override_quit_handler): New.
2779 (async_request_quit): Call QUIT.
2780 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
2781 (async_sigint_remote_twice_token, async_sigint_remote_token):
2782 Delete.
2783 (remote_close): Update comments.
2784 (remote_start_remote): Don't set immediate_quit. Set starting_up
2785 earlier.
2786 (remote_serial_quit_handler, remote_unpush_and_throw): New
2787 functions.
2788 (remote_open_1): Clear got_ctrlc_during_io. Set
2789 remote_async_terminal_ours_p unconditionally.
2790 (async_initialize_sigint_signal_handler)
2791 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
2792 (remote_check_pending_interrupt, async_remote_interrupt)
2793 (async_remote_interrupt_twice)
2794 (async_cleanup_sigint_signal_handler, ofunc)
2795 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
2796 (remote_terminal_inferior, remote_terminal_ours): Remove async
2797 checks.
2798 (remote_wait_as): Don't install a SIGINT handler in sync mode.
2799 (readchar, remote_serial_write): Override the quit handler with
2800 remote_serial_quit_handler.
2801 (getpkt_or_notif_sane_1): Don't call QUIT.
2802 (initialize_remote_ops): Don't install
2803 remote_check_pending_interrupt.
2804 (_initialize_remote): Don't create async_sigint_remote_token and
2805 async_sigint_remote_twice_token.
2806 * ser-base.c (ser_base_wait_for): Call QUIT and use
2807 interruptible_select.
2808 (ser_base_write): Call QUIT.
2809 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
2810 * ser-unix.c (wait_for): Don't use VTIME. Always take the
2811 gdb_select path, but call QUIT and interruptible_select.
2812 * utils.c (maybe_quit): Call the current quit handler. Don't call
2813 target_check_pending_interrupt.
2814 (defaulted_query, prompt_for_continue): Override the quit handler
2815 with the default quit handler.
2816
2817 2016-04-12 Pedro Alves <palves@redhat.com>
2818
2819 * tui/tui-hooks.c (tui_target_has_run): Delete.
2820 (tui_about_to_proceed): Delete.
2821 (tui_about_to_proceed_observer): Delete.
2822 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
2823 about_to_proceed observer.
2824
2825 2016-04-12 Pedro Alves <palves@redhat.com>
2826
2827 * mi/mi-interp.c (mi_new_thread): Put
2828 target_terminal_ours_for_output in effect while outputting.
2829 (mi_thread_exit): Use target_terminal_ours_for_output instead of
2830 target_terminal_ours.
2831 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
2832 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
2833 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
2834 (mi_breakpoint_created, mi_breakpoint_deleted)
2835 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
2836 (mi_command_param_changed, mi_memory_changed)
2837 (report_initial_inferior): Use target_terminal_ours_for_output
2838 instead of target_terminal_ours. Restore terminal settings.
2839 * mi/mi-main.c (mi_execute_command): Use
2840 target_terminal_ours_for_output instead of target_terminal_ours.
2841 Restore terminal settings.
2842
2843 2016-04-12 Pedro Alves <palves@redhat.com>
2844
2845 PR gdb/19828
2846 * gnu-nat.c (inf_validate_task_sc): Don't call
2847 target_terminal_ours / target_terminal_inferior around query.
2848 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
2849 call target_terminal_ours / target_terminal_inferior around
2850 yquery.
2851 * linux-record.c (record_linux_system_call): Don't call
2852 target_terminal_ours / target_terminal_inferior around yquery.
2853 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
2854 / target_terminal_inferior around query.
2855 * record-full.c (record_full_check_insn_num): Remove
2856 'set_terminal' parameter. Don't call target_terminal_ours /
2857 target_terminal_inferior around query.
2858 (record_full_message, record_full_registers_change)
2859 (record_full_xfer_partial): Adjust.
2860 * remote.c (interrupt_query): Don't call target_terminal_ours /
2861 target_terminal_inferior around query.
2862 * utils.c (defaulted_query): Install cleanup to restore target
2863 terminal. Put target_terminal_ours_for_output in effect while
2864 defaulted producing, and target_terminal_ours in in effect while
2865 handling input.
2866 (prompt_for_continue): Install cleanup to restore target terminal.
2867 Put target_terminal_ours in in effect while handling input.
2868
2869 2016-04-12 Pedro Alves <palves@redhat.com>
2870
2871 * utils.c (defaulted_query, prompt_for_continue): Free temporary
2872 strings with cleanups, instead of xfree.
2873
2874 2016-04-12 Pedro Alves <palves@redhat.com>
2875
2876 * utils.c (vwarning, internal_vproblem): Use
2877 make_cleanup_restore_target_terminal and
2878 target_terminal_ours_for_output.
2879
2880 2016-04-12 Pedro Alves <palves@redhat.com>
2881
2882 * infcmd.c (post_create_inferior, prepare_one_step): Use
2883 target_terminal_ours_for_output instead of target_terminal_ours.
2884
2885 2016-04-12 Pedro Alves <palves@redhat.com>
2886
2887 * exceptions.c (print_flush): Use target_terminal_ours_for_output
2888 instead of target_terminal_ours, and restore target terminal with
2889 a cleanup.
2890
2891 2016-04-12 Pedro Alves <palves@redhat.com>
2892
2893 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
2894 instead of target_terminal_ours, and restore target terminal with
2895 a cleanup.
2896
2897 2016-04-12 Pedro Alves <palves@redhat.com>
2898
2899 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
2900 functions.
2901 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
2902
2903 2016-04-12 Pedro Alves <palves@redhat.com>
2904
2905 * ser-base.c (fd_event): Retry read_prim on EINTR.
2906 (do_ser_base_readchar): Retry read_prim on EINTR.
2907 (ser_base_write): Retry write_prim on EINTR.
2908 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
2909 (ser_unix_write_prim): Remove comment.
2910
2911 2016-04-12 Pedro Alves <palves@redhat.com>
2912
2913 * remote.c (remote_pass_ctrlc): New function.
2914 (init_remote_ops): Install it.
2915 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
2916 target.
2917 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
2918 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
2919 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
2920 * target-delegates.c: Regenerate.
2921
2922 2016-04-12 Pedro Alves <palves@redhat.com>
2923
2924 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
2925 mode.
2926 * linux-nat.c (linux_nat_interrupt): Delete.
2927 (linux_nat_add_target): Don't install linux_nat_interrupt.
2928 * remote.c (remote_interrupt_ns): Change return type to void.
2929 Throw error if interrupting the target is not supported.
2930 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
2931
2932 2016-04-12 Pedro Alves <palves@redhat.com>
2933
2934 * defs.h (clear_quit_flag): Remove declaration.
2935 * extension-priv.h (struct extension_language_ops)
2936 <clear_quit_flag>: Remove field and update comments.
2937 * extension.c (clear_quit_flag): Delete.
2938 * guile/guile.c (guile_extension_ops): Adjust.
2939 * python/python.c (python_extension_ops): Adjust.
2940 (gdbpy_clear_quit_flag): Delete.
2941
2942 2016-04-12 Pedro Alves <palves@redhat.com>
2943
2944 * main.c (captured_main): Don't clear the quit flag.
2945
2946 2016-04-12 Pedro Alves <palves@redhat.com>
2947
2948 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
2949 flag.
2950
2951 2016-04-12 Pedro Alves <palves@redhat.com>
2952
2953 * event-top.c (command_handler): Don't call clear_quit_flag.
2954
2955 2016-04-12 Pedro Alves <palves@redhat.com>
2956
2957 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
2958 * remote.c (remote_wait_as): Don't call clear_quit_flag.
2959
2960 2016-04-12 Pedro Alves <palves@redhat.com>
2961
2962 * python/python.c: Include "ser-event.h".
2963 (gdbpy_event_fds): Delete.
2964 (gdbpy_serial_event): New.
2965 (gdbpy_run_events): Change prototype. Use serial_event_clear
2966 instead of serial_readchar.
2967 (gdbpy_post_event): Use serial_event_set instead of serial_write.
2968 (gdbpy_initialize_events): Use make_serial_event instead of
2969 serial_pipe.
2970
2971 2016-04-12 Pedro Alves <palves@redhat.com>
2972
2973 * defs.h: Extend QUIT-related comments to mention
2974 interruptible_select.
2975 (quit_serial_event_set, quit_serial_event_clear): Declare.
2976 * event-top.c: Include "ser-event.h" and "gdb_select.h".
2977 (quit_serial_event): New global.
2978 (async_init_signals): Make quit_serial_event.
2979 (quit_serial_event_set, quit_serial_event_clear)
2980 (quit_serial_event_fd, interruptible_select): New functions.
2981 * extension.c (set_quit_flag): Set the quit serial event.
2982 (check_quit_flag): Clear the quit serial event.
2983 * gdb_select.h (interruptible_select): New declaration.
2984 * guile/scm-ports.c (ioscm_input_waiting): Use
2985 interruptible_select instead of gdb_select.
2986 * top.c (gdb_readline_no_editing): Likewise.
2987 * ui-file.c (stdio_file_read): Likewise.
2988
2989 2016-04-12 Pedro Alves <palves@redhat.com>
2990
2991 * event-loop.c: Include "ser-event.h".
2992 (async_signal_handlers_serial_event): New global.
2993 (async_signals_handler, initialize_async_signal_handlers): New
2994 functions.
2995 (mark_async_signal_handler): Set
2996 async_signal_handlers_serial_event.
2997 (invoke_async_signal_handlers): Clear
2998 async_signal_handlers_serial_event.
2999 * event-top.c (async_init_signals): Call
3000 initialize_async_signal_handlers.
3001
3002 2016-04-12 Pedro Alves <palves@redhat.com>
3003
3004 * Makefile.in (SFILES): Add ser-event.c.
3005 (HFILES_NO_SRCDIR): Add ser-event.h.
3006 (COMMON_OBS): Add ser-event.o.
3007 * ser-event.c, ser-event.h: New files.
3008 * serial.c (new_serial): New function, factored out from
3009 (serial_fdopen_ops): ... this.
3010 (serial_open_ops_1): New function, factored out from
3011 (serial_open): ... this.
3012 (serial_open_ops): New function.
3013 * serial.h (struct serial): Forware declare.
3014 (serial_open_ops): New declaration.
3015
3016 2016-04-12 Pedro Alves <palves@redhat.com>
3017
3018 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
3019 Remove references to name.
3020 * serial.h (struct serial) <name>: Delete.
3021
3022 2016-04-12 Pedro Alves <palves@redhat.com>
3023
3024 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
3025 Delete.
3026 (async_remote_fileio_interrupt): Delete.
3027 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
3028 handler. Instead just always set the ctrl_c flag.
3029 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
3030 re-enabling the SIGINT handler.
3031 (remote_fileio_func_open, remote_fileio_func_close)
3032 (remote_fileio_func_read, remote_fileio_func_write)
3033 (remote_fileio_func_lseek, remote_fileio_func_rename)
3034 (remote_fileio_func_unlink, remote_fileio_func_stat)
3035 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
3036 (remote_fileio_func_isatty, remote_fileio_func_system)
3037 (remote_fileio_request): Remove references to
3038 remote_fio_no_longjmp.
3039 (initialize_remote_fileio): Don't create an async signal handler.
3040
3041 2016-04-12 Pedro Alves <palves@redhat.com>
3042
3043 * event-top.c (stdin_event_handler): Call QUIT;
3044 (prompt_for_continue): Don't run with immediate_quit set.
3045
3046 2016-04-12 Pedro Alves <palves@redhat.com>
3047
3048 * tui/tui-io.c (tui_redisplay_readline): Check
3049 gdb_in_secondary_prompt_p instead of immediate_quit.
3050 * tui/tui.c: Include top.h.
3051 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
3052 immediate_quit.
3053
3054 2016-04-12 Pedro Alves <palves@redhat.com>
3055
3056 * top.c (read_command_file): Inline command_loop here.
3057 (command_loop): Delete.
3058
3059 2016-04-12 Pedro Alves <palves@redhat.com>
3060
3061 * top.c: Include "gdb_select.h".
3062 (gdb_readline_no_editing): Wait for input with gdb_select instead
3063 of blocking in fgetc.
3064 (command_line_input): Don't set immediate_quit.
3065
3066 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
3067
3068 * value.c (value_next): Make pass-by-reference parameters const-correct.
3069 (value_parent): Likewise.
3070 (value_enclosing_type): Likewise.
3071 (value_lazy): Likewise.
3072 (value_stack): Likewise.
3073 (value_embedded_offset): Likewise.
3074 (value_pointed_to_offset): Likewise.
3075 (value_raw_address): Likewise.
3076 (deprecated_value_modifiable): Likewise.
3077 (value_free_to_mark): Likewise.
3078 (value_release_to_mark): Likewise.
3079 (internalvar_name): Likewise.
3080 (readjust_indirect_value_type): Likewise.
3081 (value_initialized): Likewise.
3082 * value.h (value_next): Likewise.
3083 (value_parent): Likewise.
3084 (value_enclosing_type): Likewise.
3085 (value_lazy): Likewise.
3086 (value_stack): Likewise.
3087 (value_embedded_offset): Likewise.
3088 (value_pointed_to_offset): Likewise.
3089 (value_raw_address): Likewise.
3090 (deprecated_value_modifiable): Likewise.
3091 (value_free_to_mark): Likewise.
3092 (value_release_to_mark): Likewise.
3093 (internalvar_name): Likewise.
3094 (readjust_indirect_value_type): Likewise.
3095 (value_initialized): Likewise.
3096
3097 2016-04-07 Yao Qi <yao.qi@linaro.org>
3098
3099 * record-full.c (record_full_insert_breakpoint): Return
3100 early if entry on the address is found in
3101 record_full_breakpoints.
3102
3103 2016-04-07 Yao Qi <yao.qi@linaro.org>
3104
3105 * record-full.c (record_full_insert_breakpoint): Set
3106 bp_tgt->reqstd_address and bp_tgt->placed_size.
3107
3108 2016-04-06 Don Breazeal <donb@codesourcery.com>
3109
3110 * value.c (value_actual_type): Don't try to get rtti type
3111 of the value if it has been optimized out.
3112 (value_optimized_out): If a memory access error occurs,
3113 just check vaue->optimized_out.
3114
3115 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3116
3117 Revert the previous commit adding unknown_v_replies_ok.
3118
3119 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3120
3121 * remote.c (struct remote_state): New field unknown_v_replies_ok.
3122 (packet_config_support): Read it.
3123 (remote_start_remote): Set it.
3124
3125 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3126
3127 * remote.c: Revert check-in by a mistake in the previous commit.
3128
3129 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3130 Pedro Alves <palves@redhat.com>
3131
3132 * exec.c (exec_file_locate_attach): Print warning for unsupported
3133 target_pid_to_exec_file.
3134 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
3135 message part.
3136
3137 2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
3138
3139 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
3140 trailing spaces.
3141
3142 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
3143
3144 PR gdb/19820
3145 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
3146 the type of BINOP_REPEAT's second operand.
3147
3148 2016-03-31 Yichao Yu <yyc1992@gmail.com>
3149
3150 PR gdb/19858
3151 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
3152 got the breakpoint at the right address.
3153 (jit_inferior_created): New function.
3154 (_initialize_jit): Install jit_inferior_created as
3155 inferior_created observer.
3156
3157 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
3158
3159 * NEWS: Mention support for tracepoints on powerpc*-linux.
3160
3161 2016-03-31 Catalin Udma <catalin.udma@freescale.com>
3162
3163 PR python/19743
3164 * python/python.c (execute_gdb_command): Use console uiout
3165 when executing gdb command.
3166 * utils.c (restore_ui_out_closure): New structure.
3167 (do_restore_ui_out): New function.
3168 (make_cleanup_restore_ui_out): Likewise.
3169 * utils.h (make_cleanup_restore_ui_out): Declare.
3170
3171 2016-03-31 Pedro Alves <palves@redhat.com>
3172
3173 * NEWS: Mention that support for "target m32rsdi", "target mips",
3174 "target pmon", "target ddb", "target rockhopper", and "target lsi"
3175 was removed.
3176 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
3177 remote-mips.o.
3178 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
3179 * configure.tgt: Remove all references to remote-m32r-sdi.o and
3180 remote-mips.o.
3181 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
3182 function.
3183 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
3184 declaration.
3185 * remote-m32r-sdi.c, remote-mips.c: Delete files.
3186 * symfile.c (generic_load, generic_load): Remove comments.
3187
3188 2016-03-30 Yao Qi <yao.qi@linaro.org>
3189
3190 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
3191 0 rather than NULL.
3192
3193 2016-03-30 Yao Qi <yao.qi@linaro.org>
3194
3195 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
3196 (arm_epilogue_frame_this_id): New function.
3197 (arm_epilogue_frame_prev_register): New function.
3198 (arm_epilogue_frame_sniffer): New function.
3199 (arm_epilogue_frame_unwind): New.
3200 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
3201
3202 2016-03-30 Yao Qi <yao.qi@linaro.org>
3203
3204 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
3205 (arm_stack_frame_destroyed_p_1): ... here. Don't call
3206 arm_pc_is_thumb.
3207 (arm_stack_frame_destroyed_p): Call
3208 thumb_stack_frame_destroyed_p and
3209 arm_stack_frame_destroyed_p_1.
3210
3211 2016-03-30 Doug Evans <dje@google.com>
3212
3213 * python/py-utils.c (host_string_to_python_string): New function.
3214 * python/python-internal.h (host_string_to_python_string): Declare it.
3215 * python/py-*.c (*): Update all calls to
3216 PyString_Decode (str, strlen (str), host_charset (), NULL);
3217 to use host_string_to_python_string instead.
3218
3219 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
3220
3221 * remote.c (remote_check_symbols): Allocate own buffer for reply.
3222
3223 2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
3224
3225 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
3226 Use safe_read_memory_integer instead of read_memory_integer.
3227
3228 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
3229
3230 * NEWS: Mention support for tracepoints on s390*-linux.
3231
3232 2016-03-29 Don Breazeal <donb@codesourcery.com>
3233
3234 * gdb/value.c (value_actual_type): Fix formatting issue.
3235
3236 2016-03-23 Yao Qi <yao.qi@linaro.org>
3237
3238 * gdbarch.sh (software_single_step): Remove comments.
3239 * gdbarch.h: Regenerated.
3240
3241 2016-03-21 Yao Qi <yao.qi@linaro.org>
3242
3243 * arm-tdep.c (arm_record_media): New.
3244 (arm_record_ld_st_reg_offset): Call arm_record_media.
3245
3246 2016-03-21 Yao Qi <yao.qi@linaro.org>
3247
3248 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
3249 more syscalls.
3250
3251 2016-03-18 Yao Qi <yao.qi@linaro.org>
3252
3253 * sparc-tdep.c (sparc_software_single_step): Make it static.
3254 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
3255
3256 2016-03-18 Yao Qi <yao.qi@linaro.org>
3257
3258 * spu-tdep.c (spu_software_single_step): Throw error when
3259 target_read_memory fails.
3260
3261 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3262
3263 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
3264
3265 2016-03-17 Pedro Alves <palves@redhat.com>
3266 Don Breazeal <donb@codesourcery.com>
3267
3268 PR remote/19496
3269 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
3270 instead of checking the 'non_stop' global.
3271 * remote.c (remote_add_thread): New parameter 'executing'. Use it
3272 to set the new thread's executing state.
3273 (remote_notice_new_inferior): Rename parameter 'running' to
3274 'executing'. Always set the thread state to THREAD_RUNNING in
3275 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
3276 EXECUTING to remote_add_thread and notice_new_inferior.
3277 (remote_update_thread_list): Update to pass executing state, not
3278 running state.
3279
3280 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
3281
3282 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
3283 to 374.
3284 * syscalls/s390x-linux.xml: Likewise.
3285
3286 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
3287
3288 * linux-record.c (record_mem_at_reg): New helper function.
3289 (record_linux_system_call): Exploit new helper function where
3290 applicable.
3291
3292 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
3293
3294 * linux-record.c: Fix whitespace issues; tabify, remove trailing
3295 spaces.
3296
3297 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
3298
3299 * linux-record.c (record_linux_system_call): Add missing return
3300 statements to handling of pipe and pipe2 syscalls.
3301
3302 2016-03-16 Doug Evans <dje@google.com>
3303
3304 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
3305
3306 2016-03-16 Yao Qi <yao.qi@linaro.org>
3307
3308 * arm-linux-tdep.c (arm_linux_init_abi): Fix
3309 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
3310 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
3311 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
3312 arm_linux_record_tdep.arg7.
3313
3314 2016-03-15 Keith Seitz <keiths@redhat.com>
3315
3316 PR breakpoints/18303
3317 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
3318 look for "::" instead of simply ":".
3319 (cp_search_static_and_baseclasses): Return null_block_symbol for
3320 malformed input.
3321 Remove assertions.
3322 * cp-support.c (cp_find_first_component_aux): Do not return
3323 a prefix length for ':' unless the next character is also ':'.
3324
3325 2016-03-15 Doug Evans <dje@google.com>
3326
3327 * features/aarch64-core.xml (cpsr_flags): New flags type.
3328 (cpsr): Use it.
3329 * features/aarch64.c: Regenerate.
3330
3331 2016-03-15 Doug Evans <dje@google.com>
3332
3333 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
3334 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
3335 * features/i386/64bit-core.xml (i386_eflags): Ditto.
3336 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
3337 * features/i386/x32-core.xml (i386_eflags): Ditto.
3338
3339 2016-03-15 Doug Evans <dje@google.com>
3340 Wei-cheng Wang <cole945@gmail.com>
3341
3342 Extend flags to support multibit and enum bitfields.
3343 * NEWS: Document new features.
3344 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
3345 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3346 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
3347 (append_flags_type_field): New function.
3348 (append_flags_type_flag): Call it.
3349 * gdbtypes.h (append_flags_type_field): Declare.
3350 * target-descriptions.c (struct tdesc_type_flag): Delete.
3351 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
3352 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
3353 (struct tdesc_type) <u.f>: Delete.
3354 (tdesc_predefined_types): Add "bool".
3355 (tdesc_predefined_type): New function.
3356 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
3357 Update TDESC_TYPE_FLAGS support.
3358 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
3359 (tdesc_create_flags): Update.
3360 (tdesc_create_enum): New function.
3361 (tdesc_add_field): Initialize start,end to -1.
3362 (tdesc_add_typed_bitfield): New function.
3363 (tdesc_add_bitfield): Call it.
3364 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
3365 (tdesc_add_enum_value): New function.
3366 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
3367 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
3368 * target-descriptions.h (tdesc_create_enum): Declare.
3369 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
3370 * valprint.c (generic_val_print_enum_1): New function.
3371 (generic_val_print_enum): Call it.
3372 (val_print_type_code_flags): Make static. Handle multibit bitfields
3373 and enum bitfields.
3374 * valprint.h (val_print_type_code_flags): Delete.
3375 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
3376 Delete. All uses removed.
3377 (tdesc_start_enum): New function.
3378 (tdesc_start_field): Handle multibit and enum bitfields.
3379 (tdesc_start_enum_value): New function.
3380 (enum_value_attributes, enum_children, enum_attributes): New static
3381 globals.
3382 (feature_children): Add "enum".
3383 * features/gdb-target.dtd (enum, evalue): New elements.
3384
3385 2016-03-15 Doug Evans <dje@google.com>
3386
3387 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
3388 from LONGEST to int.
3389 (struct tdesc_type) <u.f.size>: Ditto.
3390 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
3391 to int. Add assertion size > 0.
3392 (tdesc_create_flags): Ditto.
3393 * target-descriptions.h (tdesc_set_struct_size): Update.
3394 (tdesc_create_flags): Update.
3395 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
3396 (MAX_VECTOR_SIZE): New macro.
3397 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
3398 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
3399
3400 2016-03-15 Doug Evans <dje@google.com>
3401
3402 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
3403 TYPE_CODE_FLAGS instead of "field_type", for consistency.
3404 * features/i386/amd64-avx-linux.c: Regenerate.
3405 * features/i386/amd64-avx.c: Regenerate.
3406 * features/i386/amd64-avx512-linux.c: Regenerate.
3407 * features/i386/amd64-avx512.c: Regenerate.
3408 * features/i386/amd64-linux.c: Regenerate.
3409 * features/i386/amd64-mpx-linux.c: Regenerate.
3410 * features/i386/amd64-mpx.c: Regenerate.
3411 * features/i386/amd64.c: Regenerate.
3412 * features/i386/i386-avx-linux.c: Regenerate.
3413 * features/i386/i386-avx.c: Regenerate.
3414 * features/i386/i386-avx512-linux.c: Regenerate.
3415 * features/i386/i386-avx512.c: Regenerate.
3416 * features/i386/i386-linux.c: Regenerate.
3417 * features/i386/i386-mmx-linux.c: Regenerate.
3418 * features/i386/i386-mmx.c: Regenerate.
3419 * features/i386/i386-mpx-linux.c: Regenerate.
3420 * features/i386/i386-mpx.c: Regenerate.
3421 * features/i386/i386.c: Regenerate.
3422 * features/i386/x32-avx-linux.c: Regenerate.
3423 * features/i386/x32-avx.c: Regenerate.
3424 * features/i386/x32-avx512-linux.c: Regenerate.
3425 * features/i386/x32-avx512.c: Regenerate.
3426 * features/i386/x32-linux.c: Regenerate.
3427 * features/i386/x32.c: Regenerate.
3428
3429 2016-03-15 Pedro Alves <palves@redhat.com>
3430
3431 PR gdb/19676
3432 * linux-thread-db.c (try_thread_db_load_1): Leave
3433 info->td_ta_thr_iter_p NULL iff debugging a live process and we
3434 have /proc access.
3435 (find_new_threads_once): Assert that we have a non-NULL
3436 info->td_ta_thr_iter_p instead of checking whether the target has
3437 execution.
3438
3439 2016-03-15 Pedro Alves <palves@redhat.com>
3440
3441 PR gdb/19676
3442 * infrun.c (displaced_step_prepare): Also disable displaced
3443 stepping on NOT_SUPPORTED_ERROR.
3444 * linux-tdep.c (linux_displaced_step_location): If reading auxv
3445 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
3446
3447 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
3448
3449 * s390-linux-tdep.c (s390_gen_return_address): New function.
3450 (s390_gdbarch_init): Fill gen_return_address hook.
3451
3452 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
3453
3454 * symmisc.c (maintenance_info_line_tables): New function.
3455 (maintenance_print_one_line_table): New function.
3456 (_initialize_symmisc): Register 'maint info line-table' command.
3457 * NEWS: Mention new command.
3458
3459 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
3460
3461 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
3462 (s390_ax_pseudo_register_push_stack): New function.
3463 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
3464 ax_pseudo_register_push_stack hooks.
3465
3466 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
3467
3468 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
3469 gdb/function/as_string.py.
3470 * python/lib/gdb/function/as_string.py: New file.
3471 * NEWS: Mention the new $_as_string function.
3472
3473 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3474
3475 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
3476
3477 2016-03-09 Pedro Alves <palves@redhat.com>
3478
3479 * event-top.c (more_to_come): Delete.
3480 (struct readline_input_state): Delete.
3481 (readline_input_state): Delete.
3482 (get_command_line_buffer): New function.
3483 (command_handler): Update comments. Don't handle NULL commands
3484 here. Do not execute commented lines.
3485 (command_line_append_input_line): New function.
3486 (handle_line_of_input): New function, partly based on
3487 command_line_handler and command_line_input.
3488 (command_line_handler): Rewrite.
3489 * event-top.h (command_handler): New declaration.
3490 (command_loop): Defer command execution to command_handler.
3491 (command_line_input): Update comments. Simplify, using struct
3492 buffer and handle_line_of_input.
3493 * top.h (struct buffer): New forward declaration.
3494 (handle_line_of_input): New declaration.
3495
3496 2016-03-09 Pedro Alves <palves@redhat.com>
3497
3498 * event-top.c (command_line_handler): Use xfree + xstrdup instead
3499 of xrealloc + strcpy.
3500 * main.c (captured_main): Use xstrdup instead of xmalloc plus
3501 manual clear.
3502 * top.c (saved_command_line): Rewrite comment.
3503 (saved_command_line_size): Delete.
3504 (command_line_input): Use xfree + xstrdup instead of xrealloc +
3505 strcpy.
3506 * top.h (saved_command_line_size): Delete declaration.
3507
3508 2016-03-09 Pedro Alves <palves@redhat.com>
3509
3510 * event-top.c: Include buffer.h.
3511 (gdb_readline_no_editing_callback): Use struct buffer instead
3512 of xrealloc.
3513
3514 2016-03-09 Pedro Alves <palves@redhat.com>
3515
3516 * common/buffer.h (buffer_grow_char): New function.
3517 * top.c: Include buffer.h.
3518 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
3519 'prompt'. Use struct buffer instead of xrealloc.
3520
3521 2016-03-09 Pedro Alves <palves@redhat.com>
3522
3523 * defs.h (gdb_readline): Delete declaration.
3524 * top.c (gdb_readline): Rename to ...
3525 (gdb_readline_no_editing): ... this, and make static.
3526
3527 2016-03-09 Pedro Alves <palves@redhat.com>
3528
3529 * utils.c (prompt_for_continue): Update comments.
3530
3531 2016-03-09 Pedro Alves <palves@redhat.com>
3532
3533 * event-top.c (async_annotation_suffix): Delete.
3534 (top_level_prompt, command_line_handler): Don't use
3535 'async_annotation_suffix' and simplify.
3536 * event-top.h (async_annotation_suffix): Delete declaration.
3537 (init_main): Remove reference to 'async_annotation_suffix'.
3538
3539 2016-03-09 Pedro Alves <palves@redhat.com>
3540
3541 * event-top.c (gdb_readline2): Rename to ...
3542 (gdb_readline_no_editing_callback): ... this.
3543 (change_line_handler, stdin_event_handler)
3544 (gdb_setup_readline): Adjust.
3545 * event-top.h (gdb_readline2): Rename to ...
3546 (gdb_readline_no_editing_callback): ... this, and move closer to
3547 other readline-related declarations.
3548 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
3549
3550 2016-03-09 Pedro Alves <palves@redhat.com>
3551
3552 * top.c (window_hook): Delete.
3553 (command_loop): Remove references to window_hook.
3554
3555 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
3556
3557 * corefile.c (safe_read_memory_unsigned_integer): New function.
3558 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
3559 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
3560
3561 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
3562
3563 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
3564 (rs6000_gen_return_address): New function.
3565 (rs6000_gdbarch_init): Wire in the above.
3566
3567 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
3568
3569 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
3570 (rs6000_gdbarch_init): Wire in the above.
3571
3572 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
3573
3574 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
3575 instructions that do nothing or are conditional traps.
3576
3577 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
3578
3579 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
3580 frame func's PC in info->func before any other failure can occur.
3581 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
3582 info->func has been filled out.
3583
3584 2016-03-09 Pedro Alves <palves@redhat.com>
3585
3586 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
3587
3588 2016-03-09 Pedro Alves <palves@redhat.com>
3589
3590 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
3591
3592 2016-03-09 Pedro Alves <palves@redhat.com>
3593
3594 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
3595 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
3596
3597 2016-03-09 Pedro Alves <palves@redhat.com>
3598
3599 * doublest.c: Extend comments.
3600 (floatformat_to_doublest, floatformat_from_doublest): Copy the
3601 floatformat's total size, not the host type's size.
3602
3603 2016-03-09 Pedro Alves <palves@redhat.com>
3604
3605 * doublest.c (floatformat_totalsize_bytes): New function.
3606 (floatformat_from_type): Assert that the type's length is at least
3607 as long as the floatformat's totalsize.
3608 * doublest.h (floatformat_totalsize_bytes): New declaration.
3609 * gdbtypes.c (arch_float_type): Assert that the type's length is
3610 at least as long as the floatformat's totalsize.
3611
3612 2016-03-09 Pedro Alves <palves@redhat.com>
3613
3614 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
3615 format to floatformats_ieee_double.
3616
3617 2016-03-07 Pedro Alves <palves@redhat.com>
3618
3619 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
3620 before calling bfd_get_flavour.
3621
3622 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3623
3624 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
3625 (avr_push_dummy_call): Correct last needed argument register.
3626 Write MSB of argument into register and subsequent bytes into
3627 other registers in decreasing order.
3628
3629 2016-03-04 Yao Qi <yao.qi@linaro.org>
3630
3631 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
3632 condition check. Record the right D register number.
3633
3634 2016-03-04 Yao Qi <yao.qi@linaro.org>
3635
3636 * arm-tdep.c (arm_record_extension_space): Remove code
3637 printing "Process record does not support".
3638 (arm_record_data_proc_misc_ld_str): Likewise.
3639 (decode_insn): Call arm_record_extension_space if condition
3640 is 0xf. Call arm_record_unsupported_insn if ret isn't
3641 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
3642 the value of thumb2_record_decode_insn_handler.
3643
3644 2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
3645
3646 * features/feature_to_c.sh: Print the help when passing no
3647 argument.
3648
3649 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
3650
3651 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
3652
3653 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
3654
3655 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
3656
3657 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
3658
3659 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
3660 exception when attempting to access the inferior's backchain.
3661
3662 2016-02-29 Yao Qi <yao.qi@linaro.org>
3663
3664 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
3665 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
3666 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
3667 for aarch64_sys_epoll_create1.
3668
3669 2016-02-29 Yao Qi <yao.qi@linaro.org>
3670
3671 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
3672 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
3673 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
3674 * linux-record.c (record_linux_system_call): Handle them.
3675
3676 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
3677
3678 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
3679 cyclic imports.
3680
3681 2016-02-26 Keith Seitz <keiths@redhat.com>
3682
3683 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
3684 to avoid invalid conversion from void *.
3685
3686 2016-02-26 Yao Qi <yao.qi@linaro.org>
3687
3688 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
3689 per bit 8. Check bit 20 instead of bit 4 for VMOV
3690 instruction. Record D registers for instructions changing
3691 S registers. Change of the order of length and address
3692 in record_buf_mem array.
3693
3694 2016-02-26 Yao Qi <yao.qi@linaro.org>
3695
3696 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
3697 number of Rd.
3698
3699 2016-02-25 Doug Evans <dje@google.com>
3700
3701 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
3702 compiler warning.
3703 (recv_long_data): Ditto.
3704
3705 2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
3706
3707 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
3708 Initialize variables.
3709
3710 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
3711
3712 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
3713 (ax_reg_mask): Likewise.
3714
3715 2016-02-24 Pedro Alves <palves@redhat.com>
3716
3717 * linux-nat.c (save_sigtrap) Delete.
3718 (stop_wait_callback): Call save_stop_reason instead of
3719 save_sigtrap.
3720 (check_stopped_by_breakpoint): Rename to ...
3721 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
3722 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
3723 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
3724 common code between the USE_SIGTRAP_SIGINFO and
3725 !USE_SIGTRAP_SIGINFO blocks.
3726 (linux_nat_filter_event): Call save_stop_reason instead of
3727 save_sigtrap.
3728 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
3729 si_code for MIPS.
3730 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
3731 comments on MIPS behavior.
3732 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
3733
3734 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
3735
3736 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
3737 to avoid spurious warnings.
3738
3739 2016-02-24 Gary Benson <gbenson@redhat.com>
3740
3741 * exec.c (exec_file_locate_attach): Do not attempt to
3742 locate main executable locally if not found in sysroot.
3743
3744 2016-02-24 Joel Brobecker <brobecker@adacore.com>
3745
3746 GDB 7.11 released.
3747
3748 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
3749
3750 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
3751 unavailable PC/SP to build unavailable frame.
3752
3753 2016-02-23 Doug Evans <dje@google.com>
3754
3755 Extend "skip" command to support -file, -gfile, -function, -rfunction.
3756 * NEWS: Document new features.
3757 * skip.c: #include "fnmatch.h", "gdb_regex.h".
3758 (skiplist_entry) <file>: Renamed from filename.
3759 <function>: Renamed from function_name.
3760 <file_is_glob, function_is_regexp>: New members.
3761 <compiled_function_regexp, compiled_function_regexp_is_valid>:
3762 New members.
3763 (make_skip_entry): New function.
3764 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
3765 (make_free_skiplist_entry_cleanup): New function.
3766 (skip_file_command): Update.
3767 (skip_function, skip_function_command): Update.
3768 (compile_skip_regexp): New functions.
3769 (skip_command): Add support for new options.
3770 (skip_info): Update.
3771 (skip_file_p, skip_gfile_p): New functions.
3772 (skip_function_p, skip_rfunction_p): New functions.
3773 (function_name_is_marked_for_skip): Update and simplify.
3774 (_initialize_step_skip): Update.
3775 * symtab.c: #include "fnmatch.h".
3776 (compare_glob_filenames_for_search): New function.
3777 * symtab.h (compare_glob_filenames_for_search): Declare.
3778 * utils.c (count_path_elements): New function.
3779 (strip_leading_path_elements): New function.
3780 * utils.h (count_path_elements): Declare.
3781 (strip_leading_path_elements): Declare.
3782
3783 2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
3784
3785 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
3786 (thumb_process_displaced_insn): Likewise.
3787 (arm_process_displaced_insn): Adjust calls.
3788
3789 2016-02-23 Yao Qi <yao.qi@linaro.org>
3790
3791 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
3792 Remove.
3793 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
3794 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
3795 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
3796 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
3797 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
3798 <aarch64_sys_faccessat>: New.
3799 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
3800 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
3801 <aarch64_sys_newfstatat>: New.
3802 (UNSUPPORTED_SYSCALL_MAP): New macro.
3803 (aarch64_canonicalize_syscall): Add missing syscalls.
3804
3805 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3806
3807 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
3808
3809 2016-02-22 Yao Qi <yao.qi@linaro.org>
3810
3811 * arm-tdep.c: Fix code format issues.
3812
3813 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
3814
3815 * d-namespace.c (d_lookup_symbol_imports): Remove argument
3816 'search_parents'. All callers updated.
3817
3818 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
3819
3820 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
3821 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
3822
3823 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
3824
3825 * NEWS: Add entry for bound violation.
3826 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
3827 Add handler for segmentation fault.
3828 * gdbarch.sh (handle_segmentation_fault): New.
3829 * gdbarch.c: Regenerate.
3830 * gdbarch.h: Regenerate.
3831 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
3832 (SIG_CODE_BONDARY_FAULT): New define.
3833 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
3834 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
3835 * i386-tdep.c (i386_mpx_enabled): Add as external.
3836 * i386-tdep.c (i386_mpx_enabled): Add as external.
3837 * infrun.c (handle_segmentation_fault): New function.
3838 (print_signal_received_reason): Use handle_segmentation_fault.
3839
3840 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
3841
3842 * arch-utils.c (default_guess_tracepoint_registers): New function.
3843 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
3844 * gdbarch.c: Regenerate.
3845 * gdbarch.h: Regenerate.
3846 * gdbarch.sh: Add guess_tracepoint_registers hook.
3847 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
3848
3849 2016-02-17 Gary Benson <gbenson@redhat.com>
3850
3851 * exec.c (exec_file_locate_attach): Add missing cleanup.
3852
3853 2016-02-16 Don Breazeal <donb@codesourcery.com>
3854
3855 PR remote/19496
3856 * remote.c (remove_new_fork_children): Check for pending
3857 fork status in thread_info.suspend.
3858
3859 2016-02-16 Yao Qi <yao.qi@linaro.org>
3860
3861 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
3862 'old_chain' later.
3863
3864 2016-02-16 Yao Qi <yao.qi@linaro.org>
3865
3866 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
3867 <syscall_next_pc>: Remove argument PC. Callers updated.
3868 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
3869 Remove argument PC. Get pc from regcache_read_pc.
3870 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
3871 argument PC.
3872
3873 2016-02-15 Yao Qi <yao.qi@linaro.org>
3874
3875 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
3876
3877 2016-02-12 Yao Qi <yao.qi@linaro.org>
3878
3879 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
3880 nextpc according to instruction.
3881
3882 2016-02-12 Yao Qi <yao.qi@linaro.org>
3883
3884 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
3885 self->ops->fixup if it isn't NULL.
3886 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
3887 (struct arm_get_next_pcs_ops) <fixup>: New field.
3888 * arch/arm-linux.c: Include common-regcache.h and
3889 arch/arm-get-next-pcs.h.
3890 (arm_linux_get_next_pcs_fixup): New function.
3891 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
3892 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
3893 it with arm_linux_get_next_pcs_fixup.
3894 (arm_linux_software_single_step): Move code to
3895 arm_linux_get_next_pcs_fixup.
3896 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
3897
3898 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
3899
3900 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
3901 and return NULL.
3902
3903 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
3904
3905 * frame.h (skip_tailcall_frames): Update comment.
3906 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
3907 if only artificial frames are found. Update comment.
3908 (frame_unwind_caller_id): Handle NULL return.
3909 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
3910 skip_artificial_frames does not return NULL.
3911 (frame_pop): Add an error if only tailcall frames are found.
3912 * infcmd.c (finish_command): Move skip_tailcall_frames call into
3913 forward-execution case. Add an error if only tailcall frames are
3914 found.
3915
3916 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
3917
3918 * stack.c (frame_info): Check frame_unwind_caller_id.
3919
3920 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
3921
3922 * frame.h (skip_tailcall_frames): New.
3923 * frame.c (skip_tailcall_frames): New.
3924 (frame_pop): Call skip_tailcall_frames.
3925 * infcmd.c (finish_command): Call skip_tailcall_frames.
3926
3927 2016-02-11 Pedro Alves <palves@redhat.com>
3928
3929 * Makefile.in (check-parallel): New rule.
3930
3931 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
3932
3933 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
3934 (arm_analyze_prologue): Likewise.
3935 (arm_scan_prologue): Likewise.
3936 (arm_m_exception_prev_register): Likewise.
3937 (arm_copy_block_xfer): Likewise.
3938 (thumb2_copy_block_xfer): Likewise.
3939 (arm_decode_miscellaneous): Likewise.
3940 (arm_decode_ld_st_word_ubyte): Likewise.
3941 (arm_decode_svc_copro): Likewise.
3942 (thumb2_decode_svc_copro): Likewise.
3943 (thumb_copy_16bit_ldr_literal): Likewise.
3944 (thumb_copy_pop_pc_16bit): Likewise.
3945 (decode_thumb_32bit_ld_mem_hints): Likewise.
3946 (arm_show_force_mode): Likewise.
3947 (_initialize_arm_tdep): Likewise.
3948 (arm_record_strx): Likewise.
3949 (arm_record_extension_space): Likewise.
3950 (arm_record_data_proc_misc_ld_str): Likewise.
3951 (arm_record_exreg_ld_st_insn): Likewise.
3952 (arm_record_vfp_data_proc_insn): Likewise.
3953 (arm_record_coproc_data_proc): Likewise.
3954 (thumb_record_misc): Likewise.
3955 (thumb_record_ldm_stm_swi): Likewise.
3956 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
3957 (thumb2_record_ld_mem_hints): Likewise.
3958 (thumb2_record_lmul_lmla_div): Likewise.
3959 (thumb2_record_asimd_struct_ld_st): Likewise.
3960 (arm_process_record): Likewise.
3961
3962 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
3963
3964 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
3965 (ARM displaced stepping support): Remove reference to
3966 arm_displaced_step_copy_insn in comment.
3967 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
3968 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
3969 reference to arm_displaced_step_copy_insn in comment.
3970
3971 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
3972
3973 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
3974 (thumb_copy_b): Likewise.
3975 (arm_decode_b_bl_ldmstm): Likewise.
3976 (thumb_copy_16bit_ldr_literal): Likewise.
3977 (thumb_copy_pop_pc_16bit): Likewise.
3978
3979 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
3980
3981 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
3982 than loc->gdbarch.
3983
3984 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
3985
3986 * tracefile-tfile.c (trace_tdesc): New static variable.
3987 (tfile_open): Clear trace_tdesc, call target_find_description.
3988 (tfile_interp_line): Recognize tdesc lines.
3989 (tfile_close): Clear trace_tdesc.
3990 (tfile_xfer_partial_features): New function.
3991 (tfile_xfer_partial): Call tfile_xfer_partial_features.
3992 (tfile_append_tdesc_line): New function.
3993
3994 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
3995
3996 * ctf.c (ctf_write_tdesc): New function.
3997 (ctf_write_ops): Wire in ctf_write_tdesc.
3998 * tracefile-tfile.c (tfile_write_tdesc): New function.
3999 (tfile_write_ops): Wire in tfile_write_tdesc.
4000 * tracefile.c (trace_save): Call write_tdesc method.
4001 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
4002 * xml-tdesc.c (target_fetch_description_xml): New function.
4003 * xml-tdesc.h: Add target_fetch_description_xml prototype.
4004
4005 2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
4006
4007 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
4008 (arm_decode_dp_misc): Likewise.
4009
4010 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
4011
4012 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
4013 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
4014 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
4015 misleading comment.
4016 (i386_pseudo_register_write): Ditto.
4017 (i386_ax_pseudo_register_collect): New function.
4018 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
4019 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
4020
4021 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
4022
4023 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
4024 instead of gdb order.
4025
4026 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
4027
4028 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
4029 check.
4030
4031 2016-02-10 Joel Brobecker <brobecker@adacore.com>
4032
4033 * NEWS: Create a new section for the next release branch.
4034 Rename the section of the current branch, now that it has
4035 been cut.
4036
4037 2016-02-10 Joel Brobecker <brobecker@adacore.com>
4038
4039 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
4040 * version.in: Bump version to 7.11.50.DATE-git.
4041
4042 2016-02-09 Keith Seitz <keiths@redhat.com>
4043
4044 PR breakpoints/19546
4045 * breakpoint.c (breakpoint_event_location_empty_p): New function.
4046 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
4047 instead of event_location_empty_p.
4048
4049 2016-02-09 Keith Seitz <keiths@redhat.com>
4050
4051 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
4052 string_to_event_location_basic instead of string_to_event_location.
4053
4054 2016-02-09 Keith Seitz <keiths@redhat.com>
4055
4056 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
4057 leading whitespace and use string_to_event_location_basic instead
4058 of new_linespec_location.
4059
4060 2016-02-09 Keith Seitz <keiths@redhat.com>
4061
4062 PR python/19506
4063 * python/py-breakpoint.c (bppy_init): Use
4064 string_to_event_location_basic instead of new_linespec_location.
4065
4066 2016-02-09 Keith Seitz <keiths@redhat.com>
4067
4068 * location.c (string_to_explicit_location): Note that "-p" is
4069 reserved for probe locations and return NULL for any input
4070 that starts with that.
4071 (string_to_event_location): Move "legacy" linespec code to ...
4072 (string_to_event_location_basic): ... here.
4073 * location.h (string_to_event_location): Update comment.
4074 (string_to_event_location_basic): New function.
4075
4076 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
4077
4078 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
4079 to AC_OUTPUT. Remove "exit 0" at the end.
4080 * configure: Regenerate.
4081
4082 2016-02-09 Pedro Alves <palves@redhat.com>
4083
4084 PR breakpoints/19548
4085 * breakpoint.c (create_overlay_event_breakpoint): Don't update
4086 global location list here.
4087 (create_longjmp_master_breakpoint)
4088 (create_std_terminate_master_breakpoint)
4089 (create_exception_master_breakpoint, create_jit_event_breakpoint)
4090 (update_breakpoint_locations):
4091 (breakpoint_re_set): Update global location list after all
4092 breakpoints are re-set.
4093
4094 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
4095
4096 * remote.c (remote_register_number_and_offset): Remove unused
4097 variable(s).
4098 (remote_thread_always_alive): Likewise.
4099 (remote_update_thread_list): Likewise.
4100 (process_initial_stop_replies): Likewise.
4101 (remote_start_remote): Likewise.
4102 (remote_check_symbols): Likewise.
4103 (discard_pending_stop_replies): Likewise.
4104 (process_stop_reply): Likewise.
4105 (putpkt_binary): Likewise.
4106 (getpkt): Likewise.
4107 (remote_add_target_side_condition): Likewise.
4108 (remote_insert_breakpoint): Likewise.
4109 (remote_supports_stopped_by_sw_breakpoint): Likewise.
4110 (remote_supports_stopped_by_hw_breakpoint): Likewise.
4111 (remote_xfer_partial): Likewise.
4112 (remote_read_btrace): Likewise.
4113 (remote_async_serial_handler): Likewise.
4114 (remote_thread_events): Likewise.
4115 (_initialize_remote): Likewise.
4116
4117 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
4118
4119 * varobj.h (varobj_delete): Remove dellist parameter, update and
4120 move documentation here.
4121 * varobj.c (struct cpstack, cppush, cppop): Remove.
4122 (delete_variable): Remove resultp (first) parameter.
4123 (delete_variable_1): Likewise.
4124 (varobj_delete): Remove dellist parameter and unused code.
4125 (update_dynamic_varobj_children): Adjust varobj_delete call.
4126 (update_type_if_necessary): Likewise.
4127 (varobj_set_visualizer): Likewise.
4128 (varobj_update): Likewise.
4129 (value_of_root): Likewise.
4130 (varobj_invalidate_iter): Likewise.
4131 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
4132
4133 2016-02-04 Yao Qi <yao.qi@linaro.org>
4134
4135 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
4136 0 before handling 'F' and set it back afterwards.
4137
4138 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
4139
4140 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
4141
4142 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
4143
4144 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
4145 New types.
4146 (compat_siginfo): New bound fields added.
4147 (compat_x32_siginfo): New field added.
4148 (cpt_si_addr_lsb): New define.
4149 (compat_siginfo_from_siginfo): Use nat_siginfo.
4150 (siginfo_from_compat_siginfo): Use nat_siginfo.
4151 (compat_x32_siginfo_from_siginfo): Likewise.
4152 (siginfo_from_compat_x32_siginfo): Likewise.
4153
4154 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
4155
4156 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
4157 structure to the siginfo if extra_fields contains
4158 LINUX_SIGINFO_FIELD_ADDR_BND.
4159
4160 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
4161
4162 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
4163 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
4164 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
4165 function.
4166 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
4167 x86_linux_get_siginfo_type for the amd64 abi.
4168 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
4169 function.
4170 (i386_linux_init_abi): Add new function at the i386 ABI
4171 initialization.
4172
4173 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
4174
4175 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
4176 (linux_siginfo_extra_fields): New enum type.
4177 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
4178 (linux_get_siginfo_type): Use new function.
4179
4180 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
4181
4182 * nat/amd64-linux-siginfo.c: New file.
4183 * nat/amd64-linux-siginfo.h: New file.
4184 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
4185 (amd64-linux-siginfo.o): New rule.
4186 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
4187 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
4188 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
4189 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
4190 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
4191 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
4192 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
4193 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
4194
4195 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
4196
4197 * value.c (max_value_size): New variable.
4198 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
4199 (set_max_value_size): New function.
4200 (show_max_value_size): New function.
4201 (check_type_length_before_alloc): New function.
4202 (allocate_value_contents): Call check_type_length_before_alloc.
4203 (set_value_enclosing_type): Likewise.
4204 (_initialize_values): Add set/show handler for max-value-size.
4205 * NEWS: Mention new set/show command.
4206
4207 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
4208
4209 * varobj.h (struct varobj): Fix typos in comments.
4210 (struct lang_varobj_ops): Likewise.
4211 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
4212 (varobj_create): Move misplaced comment.
4213
4214 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
4215
4216 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
4217 to for include additional lines.
4218 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
4219
4220 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
4221
4222 * gnulib/import/Makefile.am: Regenerate.
4223 * gnulib/import/Makefile.in: Regenerate.
4224 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4225 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
4226
4227 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
4228
4229 * remote.c (skip_to_semicolon): Remove.
4230 (remote_parse_stop_reply): Use strchrnul instead of
4231 skip_to_semicolon.
4232 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
4233 strchrnul.
4234 * gnulib/aclocal.m4: Regenerate.
4235 * gnulib/config.in: Regenerate.
4236 * gnulib/configure: Regenerate.
4237 * gnulib/import/Makefile.am: Regenerate.
4238 * gnulib/import/Makefile.in: Regenerate.
4239 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4240 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4241 * gnulib/import/m4/rawmemchr.m4: New file.
4242 * gnulib/import/m4/strchrnul.m4: New file.
4243 * gnulib/import/rawmemchr.c: New file.
4244 * gnulib/import/rawmemchr.valgrind: New file.
4245 * gnulib/import/strchrnul.c: New file.
4246 * gnulib/import/strchrnul.valgrind: New file.
4247
4248 2016-01-28 Yao Qi <yao.qi@linaro.org>
4249
4250 * breakpoint.c (build_target_command_list): Don't call continue
4251 if aexpr is NULL.
4252 (build_target_condition_list): Likewise.
4253
4254 2016-01-27 Kevin Buettner <kevinb@redhat.com>
4255
4256 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
4257 bytes as aggregates.
4258
4259 2016-01-27 Joel Brobecker <brobecker@adacore.com>
4260
4261 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
4262 Linespec Maintainers.
4263
4264 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
4265
4266 * common/common-utils.c (skip_spaces): Fix comment.
4267 (skip_to_space_const): Likewise.
4268
4269 2016-01-25 Yao Qi <yao.qi@linaro.org>
4270
4271 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
4272 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
4273 (arm_deal_with_atomic_sequence_raw): Likewise.
4274 (thumb_get_next_pcs_raw): Likewise.
4275 (arm_get_next_pcs_raw): Likewise.
4276 (arm_get_next_pcs): Remove argument pc. Callers updated.
4277 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
4278
4279 2016-01-25 Mark Wielaard <mjw@redhat.com>
4280
4281 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
4282 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
4283 if statement.
4284 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
4285 statement block by introducing an else.
4286 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
4287 of return statements.
4288 (record_linux_msghdr): Likewise.
4289
4290 2016-01-25 Pedro Alves <palves@redhat.com>
4291
4292 PR threads/19461
4293 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
4294 parent/child running states.
4295
4296 2016-01-25 Pedro Alves <palves@redhat.com>
4297
4298 PR gdb/19494
4299 * linux-nat.c (kill_one_lwp): New, factored out from ...
4300 (kill_callback): ... this.
4301 (kill_wait_callback): New, factored out from ...
4302 (kill_wait_one_lwp): ... this.
4303 (kill_unfollowed_fork_children): New function.
4304 (linux_nat_kill): Use it.
4305
4306 2016-01-22 John Baldwin <jhb@FreeBSD.org>
4307
4308 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
4309
4310 2016-01-22 Yao Qi <yao.qi@linaro.org>
4311
4312 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
4313 instead of warning.
4314 (store_fpregs, fetch_regs, store_regs): Likewise.
4315 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4316 (fetch_vfp_regs, store_vfp_regs): Likewise.
4317
4318 2016-01-21 Doug Evans <dje@google.com>
4319
4320 * breakpoint.c (init_breakpoint_sal): Add comment.
4321
4322 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
4323
4324 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
4325
4326 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
4327
4328 * disasm.c (maybe_add_dis_line_entry): Rename to...
4329 (add_dis_line_entry): ...this, and update header comment.
4330 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
4331
4332 2016-01-21 Pedro Alves <palves@redhat.com>
4333
4334 * Makefile.in (COMPILER_CFLAGS): New.
4335 (CXXFLAGS): Get it from configure.
4336 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
4337 instead of CFLAGS.
4338 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
4339 COMPILER_CFLAGS.
4340 * configure: Regenerate.
4341
4342 2016-01-21 Joel Brobecker <brobecker@adacore.com>
4343
4344 * location.h (new_address_location): Add new parameters
4345 "addr_string" and "addr_string_len".
4346 (get_address_string_location): Add declaration.
4347 * location.c (new_address_location): Add new parameters
4348 "addr_string" and "addr_string_len". If not NULL, store
4349 a copy of the addr_string in the new location as well.
4350 (get_address_string_location): New function.
4351 (string_to_event_location): Update call to new_address_location.
4352 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
4353 Save the event location in the parser's state before
4354 passing it to convert_address_location_to_sals.
4355 * breakpoint.c (create_thread_event_breakpoint): Update call
4356 to new_address_location.
4357 (init_breakpoint_sal): Get the event location's string, if any,
4358 and use it to update call to new_address_location.
4359 * python/py-finishbreakpoint.c (bpfinishpy_init):
4360 Update call to new_address_location.
4361 * spu-tdep.c (spu_catch_start): Likewise.
4362
4363 * config/djgpp/fnchange.lst: Add entries for
4364 gdb/testsuite/gdb.base/break-fun-addr1.c and
4365 gdb/testsuite/gdb.base/break-fun-addr2.c.
4366
4367 2016-01-21 Yao Qi <yao.qi@linaro.org>
4368
4369 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
4370 is_thumb and set it according to CPSR saved on the stack.
4371 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
4372 arm_linux_sigreturn_next_pc.
4373
4374 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4375
4376 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
4377 Fix enumerators sort key function.
4378
4379 2016-01-20 Joel Brobecker <brobecker@adacore.com>
4380
4381 * printcmd.c (print_scalar_formatted): Move binary operator from
4382 end of line to beginning of next line. Adjust formatting
4383 accordingly.
4384
4385 2016-01-19 John Baldwin <jhb@FreeBSD.org>
4386
4387 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
4388 "len" with sysctl.
4389
4390 2016-01-19 John Baldwin <jhb@FreeBSD.org>
4391
4392 * fbsd-tdep.c (find_stop_signal): Remove.
4393 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
4394 <stop_signal>: New field.
4395 <abort_iteration>: New field.
4396 (fbsd_collect_regset_section_cb): Use new fields.
4397 (fbsd_collect_thread_registers): New function.
4398 (struct fbsd_corefile_thread_data): New structure.
4399 (fbsd_corefile_thread): New function.
4400 (fbsd_make_corefile_notes): Use new function to dump notes for each
4401 non-exited thread in a process.
4402
4403 2016-01-19 John Baldwin <jhb@FreeBSD.org>
4404
4405 * configure.ac: Check for support for LWP names on FreeBSD.
4406 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
4407 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
4408 (fbsd_fetch_kinfo_proc): Move function earlier.
4409 [PT_LWPINFO] (fbsd_thread_alive): New function.
4410 [PT_LWPINFO] (fbsd_pid_to_str): New function.
4411 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
4412 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
4413 [PT_LWPINFO] (fbsd_add_threads): New function.
4414 [PT_LWPINFO] (fbsd_update_thread_list): New function.
4415 [PT_LWPINFO] New variable super_resume.
4416 [PT_LWPINFO] (resume_one_thread_cb): New function.
4417 [PT_LWPINFO] (resume_all_threads_cb): New function.
4418 [PT_LWPINFO] (fbsd_resume): New function.
4419 (fbsd_remember_child): Save full ptid instead of plain pid.
4420 (fbsd_is_child_pending): Return ptid of saved child process.
4421 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
4422 first stop.
4423 [PT_LWP_EVENTS] Handle LWP events.
4424 [TDP_RFPPWAIT] Include LWP in child ptid.
4425 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
4426 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
4427 Add threads for existing processes.
4428 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
4429 "fbsd_thread_alive".
4430 Set "to_pid_to_str" to "fbsd_pid_to_str".
4431 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
4432 "fbsd_thread_name".
4433 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
4434 Set "to_has_thread_control" to "tc_schedlock".
4435 Set "to_resume" to "fbsd_resume".
4436 (_initialize_fbsd_nat): New function.
4437 * configure: Regenerate.
4438 * config.in: Regenerate.
4439
4440 2016-01-19 John Baldwin <jhb@FreeBSD.org>
4441
4442 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4443 get_ptrace_pid.
4444 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
4445 (amd64bsd_dr_get): Use get_ptrace_pid.
4446 (amd64bsd_dr_set): Use get_ptrace_pid.
4447 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
4448 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
4449 (i386bsd_dr_get): Use get_ptrace_pid.
4450 (i386bsd_dr_set): Use get_ptrace_pid.
4451 * inf-ptrace.c (get_ptrace_pid): Export.
4452 * inf-ptrace.h (get_ptrace_pid): Declare.
4453 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
4454 (ppcfbsd_store_inferior_registers): Use lwp id.
4455
4456 2016-01-19 John Baldwin <jhb@FreeBSD.org>
4457
4458 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
4459 (fbsd_core_thread_name): New function.
4460 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
4461 Add "core_thread_name" gdbarch method.
4462
4463 2016-01-19 John Baldwin <jhb@FreeBSD.org>
4464
4465 * corelow.c (core_thread_name): New function.
4466 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
4467 target op.
4468 * gdbarch.sh (core_thread_name): New gdbarch callback.
4469 * gdbarch.h: Re-generate.
4470 * gdbarch.c: Re-generate.
4471
4472 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
4473
4474 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
4475 convert gdb.Value to integer type using int().
4476
4477 2016-01-19 John Baldwin <jhb@FreeBSD.org>
4478
4479 * configure.ac: Include <sys/types.h when checking for "r_fs" in
4480 "struct reg".
4481 * configure: Regenerate.
4482
4483 2016-01-19 Pedro Alves <palves@redhat.com>
4484
4485 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
4486 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
4487 current program space down to linespec decoding and breakpoint
4488 location updating.
4489 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
4490 decode_line_full.
4491 (until_break_command): Adjust calls to decode_line_1.
4492 (base_breakpoint_decode_location, bkpt_decode_location): Add
4493 'search_pspace' parameter. Pass it along.
4494 (bkpt_probe_create_sals_from_location): Adjust calls to
4495 parse_probes.
4496 (tracepoint_decode_location, tracepoint_probe_decode_location)
4497 (strace_marker_decode_location): Add 'search_pspace' parameter.
4498 Pass it along.
4499 (all_locations_are_pending): Rewrite to take a breakpoint and
4500 program space as arguments instead.
4501 (hoist_existing_locations): New function.
4502 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
4503 hoist_existing_locations instead of always removing all locations,
4504 and adjust to all_locations_are_pending change.
4505 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
4506 Don't disable the breakpoint if there are other locations in
4507 another program space.
4508 (breakpoint_re_set_default): Adjust to pass down the current
4509 program space as filter program space.
4510 (decode_location_default): Add 'search_pspace' parameter and pass
4511 it along.
4512 (prepare_re_set_context): Don't switch program space here.
4513 (breakpoint_re_set): Use save_current_space_and_thread instead of
4514 save_current_program_space.
4515 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
4516 'search_pspace' parameter.
4517 (update_breakpoint_locations): Add 'filter_pspace' parameter.
4518 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
4519 decode_line_1.
4520 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
4521 program space as filter program space.
4522 * linespec.c (struct linespec_state) <search_pspace>: New field.
4523 (create_sals_line_offset, convert_explicit_location_to_sals)
4524 (parse_linespec): Pass the search program space down.
4525 (linespec_state_constructor): Add 'search_pspace' parameter.
4526 Store it.
4527 (linespec_parser_new): Add 'search_pspace' parameter and pass it
4528 along.
4529 (linespec_lex_to_end): Adjust.
4530 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
4531 and pass it along.
4532 (decode_line_with_last_displayed): Adjust.
4533 (collect_symtabs_from_filename, symtabs_from_filename): New
4534 'search_pspace' parameter. Use it.
4535 (find_function_symbols): Pass the search program space down.
4536 * linespec.h (decode_line_1, decode_line_full): Add
4537 'search_pspace' parameter.
4538 * probe.c (parse_probes_in_pspace): New function, factored out
4539 from ...
4540 (parse_probes): ... this. Add 'search_pspace' parameter and use
4541 it.
4542 * probe.h (parse_probes): Add pspace' parameter.
4543 * python/python.c (gdbpy_decode_line): Adjust.
4544 * tracepoint.c (scope_info): Adjust.
4545
4546 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
4547
4548 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
4549 instruction support.
4550 (micromips_next_pc): Likewise.
4551 (micromips_scan_prologue): Likewise.
4552 (micromips_deal_with_atomic_sequence): Likewise.
4553 (micromips_stack_frame_destroyed_p): Likewise.
4554 (mips_breakpoint_from_pc): Likewise.
4555
4556 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
4557
4558 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
4559 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
4560
4561 2016-01-18 Pedro Alves <palves@redhat.com>
4562
4563 * NEWS: Mention that GDB now displays the ID and name of the
4564 thread that hit a breakpoint or received a signal.
4565 * break-catch-sig.c (signal_catchpoint_print_it): Use
4566 maybe_print_thread_hit_breakpoint.
4567 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
4568 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
4569 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
4570 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
4571 (print_it_catch_exec, print_it_ranged_breakpoint)
4572 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
4573 Use maybe_print_thread_hit_breakpoint.
4574 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
4575 * gdbthread.h (show_thread_that_caused_stop): Declare.
4576 * infrun.c (print_signal_received_reason): Print which thread
4577 received signal.
4578 * thread.c (show_thread_that_caused_stop): New function.
4579
4580 2016-01-18 Gary Benson <gbenson@redhat.com>
4581
4582 * nat/linux-namespaces.c (do_fork): New function.
4583 (linux_mntns_get_helper): Use the above.
4584
4585 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
4586
4587 Pushed by Joel Brobecker <brobecker@adacore.com>.
4588 PR gdb/19208
4589 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
4590 if the function has no name.
4591
4592 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
4593
4594 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
4595 Conditionalize for Windows host.
4596 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
4597 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
4598 (phony_iconv_open): Handle both UTF-32 endiannesses.
4599 (phony_iconv): Likewise. Check for output overflow and clean up
4600 out-of-input cases. Correct adjustment to input buffer pointer.
4601 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
4602 phony_iconv_open.
4603
4604 2016-01-15 Pedro Alves <palves@redhat.com>
4605
4606 * NEWS: Mention star wildcard ranges.
4607 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
4608 (number_range_setup_range): New function.
4609 * cli/cli-utils.h (number_range_setup_range): New declaration.
4610 * thread.c (thread_apply_command): Support star TID ranges.
4611 * tid-parse.c (tid_range_parser_finished)
4612 (tid_range_parser_string, tid_range_parser_skip)
4613 (get_tid_or_range, get_tid_or_range): Handle
4614 TID_RANGE_STATE_STAR_RANGE.
4615 (tid_range_parser_star_range): New function.
4616 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
4617 New value.
4618 (tid_range_parser_star_range): New declaration.
4619
4620 2016-01-15 Pedro Alves <palves@redhat.com>
4621
4622 * thread.c (thread_apply_command): Use the tid range parser to
4623 advance past the thread ID list.
4624 * tid-parse.c (get_positive_number_trailer): New function.
4625 (parse_thread_id): Use it.
4626 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
4627 thread ID error.
4628 (get_tid_or_range): Detect negative values. Return 0 instead of
4629 throwing invalid thread ID error.
4630
4631 2016-01-14 Yao Qi <yao.qi@linaro.org>
4632
4633 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
4634 Declare.
4635 (arm_linux_get_next_pcs_ops): Install
4636 arm_linux_get_next_pcs_syscall_next_pc.
4637 (arm_linux_syscall_next_pc): Change to ...
4638 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
4639 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
4640 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
4641 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
4642 call tdep->syscall_next_pc.
4643 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
4644 (arm_get_next_pcs_syscall_next_pc): Remove.
4645
4646 2016-01-14 Yao Qi <yao.qi@linaro.org>
4647
4648 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
4649 * thread.c (do_captured_thread_select): Cast to const char *.
4650
4651 2016-01-14 Yao Qi <yao.qi@linaro.org>
4652
4653 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
4654 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
4655 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
4656 instead.
4657 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
4658 <arm_thumb2_breakpoint>: Remove.
4659 <has_thumb2_breakpoint>: New field.
4660 (arm_get_next_pcs_ctor): Update declaration.
4661 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
4662 1 to arm_get_next_pcs_ctor.
4663 * arm-tdep.c (arm_software_single_step): Pass 0 to
4664 arm_get_next_pcs_ctor.
4665
4666 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
4667
4668 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
4669
4670 2016-01-13 Yao Qi <yao.qi@linaro.org>
4671
4672 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
4673 byte_order_for_code to read instruction.
4674
4675 2016-01-13 Pedro Alves <palves@redhat.com>
4676
4677 * NEWS: Mention $_gthread.
4678 * gdbthread.h (struct thread_info) <global_num>: Mention
4679 $_gthread.
4680 * thread.c (thread_num_make_value_helper): New function.
4681 (thread_id_make_value): Delete.
4682 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
4683 New.
4684 (thread_funcs): Adjust.
4685 (gthread_funcs): New.
4686 (_initialize_thread): Register $_gthread variable.
4687
4688 2016-01-13 Pedro Alves <palves@redhat.com>
4689
4690 * NEWS: Mention "info threads -gid".
4691 * gdbthread.h (struct thread_info) <global_num>: Mention "info
4692 threads -gid".
4693 * thread.c (info_threads_command): Handle "-gid".
4694 (_initialize_thread): Adjust "info threads" help string to mention
4695 -gid.
4696
4697 2016-01-13 Pedro Alves <palves@redhat.com>
4698
4699 * NEWS: Mention InferiorThread.global_num.
4700 * python/py-infthread.c (thpy_get_global_num): New function.
4701 (thread_object_getset): Register "global_num".
4702
4703 2016-01-13 Pedro Alves <palves@redhat.com>
4704
4705 * NEWS: Mention that thread IDs are now per inferior and global
4706 thread IDs.
4707 * Makefile.in (SFILES): Add tid-parse.c.
4708 (COMMON_OBS): Add tid-parse.o.
4709 (HFILES_NO_SRCDIR): Add tid-parse.h.
4710 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
4711 * breakpoint.c (insert_breakpoint_locations)
4712 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
4713 (print_one_breakpoint_location, set_longjmp_breakpoint)
4714 (check_longjmp_breakpoint_for_call_dummy)
4715 (set_momentary_breakpoint): Adjust to use global IDs.
4716 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
4717 (until_break_command, longjmp_bkpt_dtor)
4718 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
4719 to use global IDs.
4720 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
4721 ptid_to_global_thread_id.
4722 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
4723 * gdbthread.h (struct thread_info): Rename field 'num' to
4724 'global_num. Add new fields 'per_inf_num' and 'inf'.
4725 (thread_id_to_pid): Rename thread_id_to_pid to
4726 global_thread_id_to_ptid.
4727 (pid_to_thread_id): Rename to ...
4728 (ptid_to_global_thread_id): ... this.
4729 (valid_thread_id): Rename to ...
4730 (valid_global_thread_id): ... this.
4731 (find_thread_id): Rename to ...
4732 (find_thread_global_id): ... this.
4733 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
4734 (print_thread_info): Add comment.
4735 * tid-parse.h: New file.
4736 * tid-parse.c: New file.
4737 * infcmd.c (step_command_fsm_prepare)
4738 (step_command_fsm_should_stop): Adjust to use the global thread
4739 ID.
4740 (until_next_command, until_next_command)
4741 (finish_command_fsm_should_stop): Adjust to use the global thread
4742 ID.
4743 (attach_post_wait): Adjust to check the inferior number too.
4744 * inferior.h (struct inferior) <highest_thread_num>: New field.
4745 * infrun.c (handle_signal_stop)
4746 (insert_exception_resume_breakpoint)
4747 (insert_exception_resume_from_probe): Adjust to use the global
4748 thread ID.
4749 * record-btrace.c (record_btrace_open): Use global thread IDs.
4750 * remote.c (process_initial_stop_replies): Also consider the
4751 inferior number.
4752 * target.c (target_pre_inferior): Clear the inferior's highest
4753 thread num.
4754 * thread.c (clear_thread_inferior_resources): Adjust to use the
4755 global thread ID.
4756 (new_thread): New inferior parameter. Adjust to use it. Set both
4757 the thread's global ID and the thread's per-inferior ID.
4758 (add_thread_silent): Adjust.
4759 (find_thread_global_id): New.
4760 (find_thread_id): Make static. Adjust to rename.
4761 (valid_thread_id): Rename to ...
4762 (valid_global_thread_id): ... this.
4763 (pid_to_thread_id): Rename to ...
4764 (ptid_to_global_thread_id): ... this.
4765 (thread_id_to_pid): Rename to ...
4766 (global_thread_id_to_ptid): ... this. Adjust.
4767 (first_thread_of_process): Adjust.
4768 (do_captured_list_thread_ids): Adjust to use global thread IDs.
4769 (should_print_thread): New function.
4770 (print_thread_info): Rename to ...
4771 (print_thread_info_1): ... this, and add new show_global_ids
4772 parameter. Handle it. Iterate over inferiors.
4773 (print_thread_info): Reimplement as wrapper around
4774 print_thread_info_1.
4775 (show_inferior_qualified_tids): New function.
4776 (print_thread_id): Use it.
4777 (tp_array_compar): Compare inferior numbers too.
4778 (thread_apply_command): Use tid_range_parser.
4779 (do_captured_thread_select): Use parse_thread_id.
4780 (thread_id_make_value): Adjust.
4781 (_initialize_thread): Adjust "info threads" help string.
4782 * varobj.c (struct varobj_root): Update comment.
4783 (varobj_create): Adjust to use global thread IDs.
4784 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
4785 * windows-tdep.c (display_tib): No longer accept an argument.
4786 * cli/cli-utils.c (get_number_trailer): Make extern.
4787 * cli/cli-utils.h (get_number_trailer): Declare.
4788 (get_number_const): Adjust documentation.
4789 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
4790 thread IDs.
4791 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
4792 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
4793 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
4794 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
4795 Likewise.
4796 * python/py-breakpoint.c (bppy_set_thread): Likewise.
4797 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4798 * python/py-infthread.c (thpy_get_num): Add comment and return the
4799 per-inferior thread ID.
4800 (thread_object_getset): Update comment of "num".
4801
4802 2016-01-13 Pedro Alves <palves@redhat.com>
4803
4804 * breakpoint.c (remove_threaded_breakpoints)
4805 (print_one_breakpoint_location): Use print_thread_id.
4806 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
4807 (btrace_fetch, btrace_clear): Use print_thread_id.
4808 * common/print-utils.c (CELLSIZE): Delete.
4809 (get_cell): Rename to ...
4810 (get_print_cell): ... this and made extern. Adjust call callers.
4811 Adjust to use PRINT_CELL_SIZE.
4812 * common/print-utils.h (get_print_cell): Declare.
4813 (PRINT_CELL_SIZE): New.
4814 * gdbthread.h (print_thread_id): Declare.
4815 * infcmd.c (signal_command): Use print_thread_id.
4816 * inferior.c (print_inferior): Use print_thread_id.
4817 * infrun.c (handle_signal_stop)
4818 (insert_exception_resume_breakpoint)
4819 (insert_exception_resume_from_probe)
4820 (print_signal_received_reason): Use print_thread_id.
4821 * record-btrace.c (record_btrace_info)
4822 (record_btrace_resume_thread, record_btrace_cancel_resume)
4823 (record_btrace_step_thread, record_btrace_wait): Use
4824 print_thread_id.
4825 * thread.c (thread_apply_all_command): Use print_thread_id.
4826 (print_thread_id): New function.
4827 (thread_apply_command): Use print_thread_id.
4828 (thread_command, thread_find_command, do_captured_thread_select):
4829 Use print_thread_id.
4830
4831 2016-01-13 Pedro Alves <palves@redhat.com>
4832
4833 * NEWS: Mention InferiorThread.inferior.
4834 * python/py-infthread.c (thpy_get_inferior): New.
4835 (thread_object_getset): Register "inferior".
4836
4837 2016-01-13 Pedro Alves <palves@redhat.com>
4838
4839 * NEWS: Mention $_inferior.
4840 * inferior.c (inferior_id_make_value): New.
4841 (inferior_funcs): New.
4842 (_initialize_inferior): Create $_inferior variable.
4843
4844 2016-01-13 Pedro Alves <palves@redhat.com>
4845
4846 PR breakpoints/19388
4847 * frame.c (get_current_frame): Use validate_registers_access.
4848 * gdbthread.h (validate_registers_access): Declare.
4849 * infrun.c (validate_siginfo_access): Delete.
4850 (siginfo_value_read, siginfo_value_write): Use
4851 validate_registers_access.
4852 * thread.c (validate_registers_access): New function.
4853
4854 2016-01-12 Josh Stone <jistone@redhat.com>
4855 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4856
4857 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
4858 syscall_entry and syscall_return stop reasons. Mention GDB
4859 support for remote catch syscall.
4860 * remote.c (PACKET_QCatchSyscalls): New enum.
4861 (remote_set_syscall_catchpoint): New function.
4862 (remote_protocol_features): New element for QCatchSyscalls.
4863 (remote_parse_stop_reply): Parse syscall_entry/return stops.
4864 (init_remote_ops): Install remote_set_syscall_catchpoint.
4865 (_initialize_remote): Config QCatchSyscalls.
4866 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
4867
4868 2016-01-12 Yao Qi <yao.qi@linaro.org>
4869
4870 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
4871 to gdb_byte * and pass to linux_fork_to_function.
4872
4873 2016-01-12 Yao Qi <yao.qi@linaro.org>
4874
4875 * nat/linux-ptrace.c (linux_fork_to_function): Change type
4876 of argument 'function'.
4877 (linux_grandchild_function): Change return type to 'int'.
4878 Change child_stack's type to 'void *'.
4879 (linux_child_function): Likewise.
4880
4881 2016-01-12 Pedro Alves <palves@redhat.com>
4882
4883 Remove use of the registered trademark symbol throughout.
4884
4885 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
4886
4887 * reply_mig_hack.awk: Rewrite one regular expression.
4888
4889 2016-01-11 Mike Frysinger <vapier@gentoo.org>
4890
4891 * acinclude.m4: Include new warning.m4 file.
4892 * configure: Regenerated.
4893 * configure.ac: Move all warning logic ...
4894 * warning.m4: ... here.
4895
4896 2016-01-08 Yao Qi <yao.qi@linaro.org>
4897
4898 * extension.c: Include target.h.
4899 (set_active_ext_lang): Only call install_gdb_sigint_handler,
4900 check_quit_flag, and set_quit_flag if target_terminal_is_ours
4901 returns false.
4902 (restore_active_ext_lang): Likewise.
4903 * target.c (target_terminal_is_ours): New function.
4904 * target.h (target_terminal_is_ours): Declare.
4905
4906 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
4907
4908 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
4909 to `err' in the little-endian leg.
4910
4911 2016-01-06 Yao Qi <yao.qi@linaro.org>
4912
4913 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
4914 lines below.
4915 (thumb_get_next_pcs_raw): Make it static.
4916 (arm_get_next_pcs_raw): Likewise.
4917 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
4918 declaration.
4919 (arm_get_next_pcs_raw): Likewise.
4920
4921 2016-01-05 Mike Frysinger <vapier@gentoo.org>
4922
4923 * version.in: Change cvs to git.
4924
4925 2016-01-05 Mike Frysinger <vapier@gentoo.org>
4926
4927 * configure.tgt (score-*-*): Delete gdb_sim assignment.
4928
4929 2016-01-05 Pedro Alves <palves@redhat.com>
4930
4931 PR sim/13418
4932 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
4933 the target is powerpc*.
4934 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
4935 of WITH_SIM.
4936 * configure: Regenerate.
4937 * config.in: Regenerate.
4938
4939 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
4940
4941 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
4942
4943 2016-01-02 Mike Frysinger <vapier@gentoo.org>
4944
4945 * configure.tgt (powerpc*-*-*): Delete test call and
4946 always assign gdb_sim.
4947
4948 2016-01-01 Joel Brobecker <brobecker@adacore.com>
4949
4950 Update year range in copyright notice of all files.
4951
4952 2016-01-01 Joel Brobecker <brobecker@adacore.com>
4953
4954 * top.c (print_gdb_version): Change copyright year in version
4955 message.
4956
4957 2016-01-01 Joel Brobecker <brobecker@adacore.com>
4958
4959 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
4960
4961 For older changes see ChangeLog-2015.
4962 \f
4963 Local Variables:
4964 mode: change-log
4965 left-margin: 8
4966 fill-column: 74
4967 version-control: never
4968 coding: utf-8
4969 End: