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