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