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