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