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