Use target_terminal_ours_for_output in MI
[external/binutils.git] / gdb / ChangeLog
1 2016-04-12  Pedro Alves  <palves@redhat.com>
2
3         * mi/mi-interp.c (mi_new_thread): Put
4         target_terminal_ours_for_output in effect while outputting.
5         (mi_thread_exit): Use target_terminal_ours_for_output instead of
6         target_terminal_ours.
7         (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
8         (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
9         (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
10         (mi_breakpoint_created, mi_breakpoint_deleted)
11         (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
12         (mi_command_param_changed, mi_memory_changed)
13         (report_initial_inferior): Use target_terminal_ours_for_output
14         instead of target_terminal_ours.  Restore terminal settings.
15         * mi/mi-main.c (mi_execute_command): Use
16         target_terminal_ours_for_output instead of target_terminal_ours.
17         Restore terminal settings.
18
19 2016-04-12  Pedro Alves  <palves@redhat.com>
20
21         PR gdb/19828
22         * gnu-nat.c (inf_validate_task_sc): Don't call
23         target_terminal_ours / target_terminal_inferior around query.
24         * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
25         call target_terminal_ours / target_terminal_inferior around
26         yquery.
27         * linux-record.c (record_linux_system_call): Don't call
28         target_terminal_ours / target_terminal_inferior around yquery.
29         * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
30         / target_terminal_inferior around query.
31         * record-full.c (record_full_check_insn_num): Remove
32         'set_terminal' parameter.  Don't call target_terminal_ours /
33         target_terminal_inferior around query.
34         (record_full_message, record_full_registers_change)
35         (record_full_xfer_partial): Adjust.
36         * remote.c (interrupt_query): Don't call target_terminal_ours /
37         target_terminal_inferior around query.
38         * utils.c (defaulted_query): Install cleanup to restore target
39         terminal.  Put target_terminal_ours_for_output in effect while
40         defaulted producing, and target_terminal_ours in in effect while
41         handling input.
42         (prompt_for_continue): Install cleanup to restore target terminal.
43         Put target_terminal_ours in in effect while handling input.
44
45 2016-04-12  Pedro Alves  <palves@redhat.com>
46
47         * utils.c (defaulted_query, prompt_for_continue): Free temporary
48         strings with cleanups, instead of xfree.
49
50 2016-04-12  Pedro Alves  <palves@redhat.com>
51
52         * utils.c (vwarning, internal_vproblem): Use
53         make_cleanup_restore_target_terminal and
54         target_terminal_ours_for_output.
55
56 2016-04-12  Pedro Alves  <palves@redhat.com>
57
58         * infcmd.c (post_create_inferior, prepare_one_step): Use
59         target_terminal_ours_for_output instead of target_terminal_ours.
60
61 2016-04-12  Pedro Alves  <palves@redhat.com>
62
63         * exceptions.c (print_flush): Use target_terminal_ours_for_output
64         instead of target_terminal_ours, and restore target terminal with
65         a cleanup.
66
67 2016-04-12  Pedro Alves  <palves@redhat.com>
68
69         * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
70         instead of target_terminal_ours, and restore target terminal with
71         a cleanup.
72
73 2016-04-12  Pedro Alves  <palves@redhat.com>
74
75         * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
76         functions.
77         (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
78
79 2016-04-12  Pedro Alves  <palves@redhat.com>
80
81         * ser-base.c (fd_event): Retry read_prim on EINTR.
82         (do_ser_base_readchar): Retry read_prim on EINTR.
83         (ser_base_write): Retry write_prim on EINTR.
84         * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
85         (ser_unix_write_prim): Remove comment.
86
87 2016-04-12  Pedro Alves  <palves@redhat.com>
88
89         * remote.c (remote_pass_ctrlc): New function.
90         (init_remote_ops): Install it.
91         * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
92         target.
93         (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
94         * target.h (struct target_ops) <to_pass_ctrlc>: New method.
95         (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
96         * target-delegates.c: Regenerate.
97
98 2016-04-12  Pedro Alves  <palves@redhat.com>
99
100         * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
101         mode.
102         * linux-nat.c (linux_nat_interrupt): Delete.
103         (linux_nat_add_target): Don't install linux_nat_interrupt.
104         * remote.c (remote_interrupt_ns): Change return type to void.
105         Throw error if interrupting the target is not supported.
106         (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
107
108 2016-04-12  Pedro Alves  <palves@redhat.com>
109
110         * defs.h (clear_quit_flag): Remove declaration.
111         * extension-priv.h (struct extension_language_ops)
112         <clear_quit_flag>: Remove field and update comments.
113         * extension.c (clear_quit_flag): Delete.
114         * guile/guile.c (guile_extension_ops): Adjust.
115         * python/python.c (python_extension_ops): Adjust.
116         (gdbpy_clear_quit_flag): Delete.
117
118 2016-04-12  Pedro Alves  <palves@redhat.com>
119
120         * main.c (captured_main): Don't clear the quit flag.
121
122 2016-04-12  Pedro Alves  <palves@redhat.com>
123
124         * exceptions.c (prepare_to_throw_exception): Don't clear the quit
125         flag.
126
127 2016-04-12  Pedro Alves  <palves@redhat.com>
128
129         * event-top.c (command_handler): Don't call clear_quit_flag.
130
131 2016-04-12  Pedro Alves  <palves@redhat.com>
132
133         * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
134         * remote.c (remote_wait_as): Don't call clear_quit_flag.
135
136 2016-04-12  Pedro Alves  <palves@redhat.com>
137
138         * python/python.c: Include "ser-event.h".
139         (gdbpy_event_fds): Delete.
140         (gdbpy_serial_event): New.
141         (gdbpy_run_events): Change prototype.  Use serial_event_clear
142         instead of serial_readchar.
143         (gdbpy_post_event): Use serial_event_set instead of serial_write.
144         (gdbpy_initialize_events): Use make_serial_event instead of
145         serial_pipe.
146
147 2016-04-12  Pedro Alves  <palves@redhat.com>
148
149         * defs.h: Extend QUIT-related comments to mention
150         interruptible_select.
151         (quit_serial_event_set, quit_serial_event_clear): Declare.
152         * event-top.c: Include "ser-event.h" and "gdb_select.h".
153         (quit_serial_event): New global.
154         (async_init_signals): Make quit_serial_event.
155         (quit_serial_event_set, quit_serial_event_clear)
156         (quit_serial_event_fd, interruptible_select): New functions.
157         * extension.c (set_quit_flag): Set the quit serial event.
158         (check_quit_flag): Clear the quit serial event.
159         * gdb_select.h (interruptible_select): New declaration.
160         * guile/scm-ports.c (ioscm_input_waiting): Use
161         interruptible_select instead of gdb_select.
162         * top.c (gdb_readline_no_editing): Likewise.
163         * ui-file.c (stdio_file_read): Likewise.
164
165 2016-04-12  Pedro Alves  <palves@redhat.com>
166
167         * event-loop.c: Include "ser-event.h".
168         (async_signal_handlers_serial_event): New global.
169         (async_signals_handler, initialize_async_signal_handlers): New
170         functions.
171         (mark_async_signal_handler): Set
172         async_signal_handlers_serial_event.
173         (invoke_async_signal_handlers): Clear
174         async_signal_handlers_serial_event.
175         * event-top.c (async_init_signals): Call
176         initialize_async_signal_handlers.
177
178 2016-04-12  Pedro Alves  <palves@redhat.com>
179
180         * Makefile.in (SFILES): Add ser-event.c.
181         (HFILES_NO_SRCDIR): Add ser-event.h.
182         (COMMON_OBS): Add ser-event.o.
183         * ser-event.c, ser-event.h: New files.
184         * serial.c (new_serial): New function, factored out from
185         (serial_fdopen_ops): ... this.
186         (serial_open_ops_1): New function, factored out from
187         (serial_open): ... this.
188         (serial_open_ops): New function.
189         * serial.h (struct serial): Forware declare.
190         (serial_open_ops): New declaration.
191
192 2016-04-12  Pedro Alves  <palves@redhat.com>
193
194         * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
195         Remove references to name.
196         * serial.h (struct serial) <name>: Delete.
197
198 2016-04-12  Pedro Alves  <palves@redhat.com>
199
200         * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
201         Delete.
202         (async_remote_fileio_interrupt): Delete.
203         (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
204         handler.  Instead just always set the ctrl_c flag.
205         (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
206         re-enabling the SIGINT handler.
207         (remote_fileio_func_open, remote_fileio_func_close)
208         (remote_fileio_func_read, remote_fileio_func_write)
209         (remote_fileio_func_lseek, remote_fileio_func_rename)
210         (remote_fileio_func_unlink, remote_fileio_func_stat)
211         (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
212         (remote_fileio_func_isatty, remote_fileio_func_system)
213         (remote_fileio_request): Remove references to
214         remote_fio_no_longjmp.
215         (initialize_remote_fileio): Don't create an async signal handler.
216
217 2016-04-12  Pedro Alves  <palves@redhat.com>
218
219         * event-top.c (stdin_event_handler): Call QUIT;
220         (prompt_for_continue): Don't run with immediate_quit set.
221
222 2016-04-12  Pedro Alves  <palves@redhat.com>
223
224         * tui/tui-io.c (tui_redisplay_readline): Check
225         gdb_in_secondary_prompt_p instead of immediate_quit.
226         * tui/tui.c: Include top.h.
227         (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
228         immediate_quit.
229
230 2016-04-12  Pedro Alves  <palves@redhat.com>
231
232         * top.c (read_command_file): Inline command_loop here.
233         (command_loop): Delete.
234
235 2016-04-12  Pedro Alves  <palves@redhat.com>
236
237         * top.c: Include "gdb_select.h".
238         (gdb_readline_no_editing): Wait for input with gdb_select instead
239         of blocking in fgetc.
240         (command_line_input): Don't set immediate_quit.
241
242 2016-04-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
243
244         * value.c (value_next): Make pass-by-reference parameters const-correct.
245         (value_parent): Likewise.
246         (value_enclosing_type): Likewise.
247         (value_lazy): Likewise.
248         (value_stack): Likewise.
249         (value_embedded_offset): Likewise.
250         (value_pointed_to_offset): Likewise.
251         (value_raw_address): Likewise.
252         (deprecated_value_modifiable): Likewise.
253         (value_free_to_mark): Likewise.
254         (value_release_to_mark): Likewise.
255         (internalvar_name): Likewise.
256         (readjust_indirect_value_type): Likewise.
257         (value_initialized): Likewise.
258         * value.h (value_next): Likewise.
259         (value_parent): Likewise.
260         (value_enclosing_type): Likewise.
261         (value_lazy): Likewise.
262         (value_stack): Likewise.
263         (value_embedded_offset): Likewise.
264         (value_pointed_to_offset): Likewise.
265         (value_raw_address): Likewise.
266         (deprecated_value_modifiable): Likewise.
267         (value_free_to_mark): Likewise.
268         (value_release_to_mark): Likewise.
269         (internalvar_name): Likewise.
270         (readjust_indirect_value_type): Likewise.
271         (value_initialized): Likewise.
272
273 2016-04-07  Yao Qi  <yao.qi@linaro.org>
274
275         * record-full.c (record_full_insert_breakpoint): Return
276         early if entry on the address is found in
277         record_full_breakpoints.
278
279 2016-04-07  Yao Qi  <yao.qi@linaro.org>
280
281         * record-full.c (record_full_insert_breakpoint): Set
282         bp_tgt->reqstd_address and bp_tgt->placed_size.
283
284 2016-04-06  Don Breazeal  <donb@codesourcery.com>
285
286         * value.c (value_actual_type): Don't try to get rtti type
287         of the value if it has been optimized out.
288         (value_optimized_out): If a memory access error occurs,
289         just check vaue->optimized_out.
290
291 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
292
293         Revert the previous commit adding unknown_v_replies_ok.
294
295 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
296
297         * remote.c (struct remote_state): New field unknown_v_replies_ok.
298         (packet_config_support): Read it.
299         (remote_start_remote): Set it.
300
301 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
302
303         * remote.c: Revert check-in by a mistake in the previous commit.
304
305 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
306             Pedro Alves  <palves@redhat.com>
307
308         * exec.c (exec_file_locate_attach): Print warning for unsupported
309         target_pid_to_exec_file.
310         * symfile-mem.c (add_vsyscall_page): Remove the "file" command
311         message part.
312
313 2016-04-04  Simon Marchi  <simon.marchi@ericsson.com>
314
315         * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
316         trailing spaces.
317
318 2016-04-01  Artemiy Volkov  <artemiyv@acm.org>
319
320         PR gdb/19820
321         * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
322         the type of BINOP_REPEAT's second operand.
323
324 2016-03-31  Yichao Yu  <yyc1992@gmail.com>
325
326         PR gdb/19858
327         * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
328         got the breakpoint at the right address.
329         (jit_inferior_created): New function.
330         (_initialize_jit): Install jit_inferior_created as
331         inferior_created observer.
332
333 2016-03-31  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
334
335         * NEWS: Mention support for tracepoints on powerpc*-linux.
336
337 2016-03-31  Catalin Udma  <catalin.udma@freescale.com>
338
339         PR python/19743
340         * python/python.c (execute_gdb_command): Use console uiout
341         when executing gdb command.
342         * utils.c (restore_ui_out_closure): New structure.
343         (do_restore_ui_out): New function.
344         (make_cleanup_restore_ui_out): Likewise.
345         * utils.h (make_cleanup_restore_ui_out): Declare.
346
347 2016-03-31  Pedro Alves  <palves@redhat.com>
348
349         * NEWS: Mention that support for "target m32rsdi", "target mips",
350         "target pmon", "target ddb", "target rockhopper", and "target lsi"
351         was removed.
352         * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
353         remote-mips.o.
354         (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
355         * configure.tgt: Remove all references to remote-m32r-sdi.o and
356         remote-mips.o.
357         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
358         function.
359         * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
360         declaration.
361         * remote-m32r-sdi.c, remote-mips.c: Delete files.
362         * symfile.c (generic_load, generic_load): Remove comments.
363
364 2016-03-30  Yao Qi  <yao.qi@linaro.org>
365
366         * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
367         0 rather than NULL.
368
369 2016-03-30  Yao Qi  <yao.qi@linaro.org>
370
371         * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
372         (arm_epilogue_frame_this_id): New function.
373         (arm_epilogue_frame_prev_register): New function.
374         (arm_epilogue_frame_sniffer): New function.
375         (arm_epilogue_frame_unwind): New.
376         (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
377
378 2016-03-30  Yao Qi  <yao.qi@linaro.org>
379
380         * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
381         (arm_stack_frame_destroyed_p_1): ... here.  Don't call
382         arm_pc_is_thumb.
383         (arm_stack_frame_destroyed_p): Call
384         thumb_stack_frame_destroyed_p and
385         arm_stack_frame_destroyed_p_1.
386
387 2016-03-30  Doug Evans  <dje@google.com>
388
389         * python/py-utils.c (host_string_to_python_string): New function.
390         * python/python-internal.h (host_string_to_python_string): Declare it.
391         * python/py-*.c (*): Update all calls to
392         PyString_Decode (str, strlen (str), host_charset (), NULL);
393         to use host_string_to_python_string instead.
394
395 2016-03-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
396
397         * remote.c (remote_check_symbols): Allocate own buffer for reply.
398
399 2016-03-29  Max Filippov  <jcmvbkbc@gmail.com>
400
401         * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
402         Use safe_read_memory_integer instead of read_memory_integer.
403
404 2016-03-29  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
405
406         * NEWS: Mention support for tracepoints on s390*-linux.
407
408 2016-03-29  Don Breazeal  <donb@codesourcery.com>
409
410         * gdb/value.c (value_actual_type): Fix formatting issue.
411
412 2016-03-23  Yao Qi  <yao.qi@linaro.org>
413
414         * gdbarch.sh (software_single_step): Remove comments.
415         * gdbarch.h: Regenerated.
416
417 2016-03-21  Yao Qi  <yao.qi@linaro.org>
418
419         * arm-tdep.c (arm_record_media): New.
420         (arm_record_ld_st_reg_offset): Call arm_record_media.
421
422 2016-03-21  Yao Qi  <yao.qi@linaro.org>
423
424         * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
425         more syscalls.
426
427 2016-03-18  Yao Qi  <yao.qi@linaro.org>
428
429         * sparc-tdep.c (sparc_software_single_step): Make it static.
430         * sparc-tdep.h (sparc_software_single_step): Remove declaration.
431
432 2016-03-18  Yao Qi  <yao.qi@linaro.org>
433
434         * spu-tdep.c (spu_software_single_step): Throw error when
435         target_read_memory fails.
436
437 2016-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
438
439         * linux-thread-db.c (check_pid_namespace_match): Extend the message.
440
441 2016-03-17  Pedro Alves  <palves@redhat.com>
442             Don Breazeal  <donb@codesourcery.com>
443
444         PR remote/19496
445         * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
446         instead of checking the 'non_stop' global.
447         * remote.c (remote_add_thread): New parameter 'executing'.  Use it
448         to set the new thread's executing state.
449         (remote_notice_new_inferior): Rename parameter 'running' to
450         'executing'.  Always set the thread state to THREAD_RUNNING in
451         non-stop mode, and to THREAD_STOPPED in all-stop mode.  Pass
452         EXECUTING to remote_add_thread and notice_new_inferior.
453         (remote_update_thread_list): Update to pass executing state, not
454         running state.
455
456 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
457
458         * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
459         to 374.
460         * syscalls/s390x-linux.xml: Likewise.
461
462 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
463
464         * linux-record.c (record_mem_at_reg): New helper function.
465         (record_linux_system_call): Exploit new helper function where
466         applicable.
467
468 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
469
470         * linux-record.c: Fix whitespace issues; tabify, remove trailing
471         spaces.
472
473 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
474
475         * linux-record.c (record_linux_system_call): Add missing return
476         statements to handling of pipe and pipe2 syscalls.
477
478 2016-03-16  Doug Evans  <dje@google.com>
479
480         * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
481
482 2016-03-16  Yao Qi  <yao.qi@linaro.org>
483
484         * arm-linux-tdep.c (arm_linux_init_abi): Fix
485         arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
486         arm_linux_record_tdep.arg3.  Set arm_linux_record_tdep.arg4,
487         arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
488         arm_linux_record_tdep.arg7.
489
490 2016-03-15  Keith Seitz  <keiths@redhat.com>
491
492         PR breakpoints/18303
493         * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
494         look for "::" instead of simply ":".
495         (cp_search_static_and_baseclasses): Return null_block_symbol for
496         malformed input.
497         Remove assertions.
498         * cp-support.c (cp_find_first_component_aux): Do not return
499         a prefix length for ':' unless the next character is also ':'.
500
501 2016-03-15  Doug Evans  <dje@google.com>
502
503         * features/aarch64-core.xml (cpsr_flags): New flags type.
504         (cpsr): Use it.
505         * features/aarch64.c: Regenerate.
506
507 2016-03-15  Doug Evans  <dje@google.com>
508
509         * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
510         * features/i386/32bit-sse.xml (i386_eflags): Ditto.
511         * features/i386/64bit-core.xml (i386_eflags): Ditto.
512         * features/i386/64bit-sse.xml (i386_eflags): Ditto.
513         * features/i386/x32-core.xml (i386_eflags): Ditto.
514
515 2016-03-15  Doug Evans  <dje@google.com>
516             Wei-cheng Wang  <cole945@gmail.com>
517
518         Extend flags to support multibit and enum bitfields.
519         * NEWS: Document new features.
520         * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
521         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
522         * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
523         (append_flags_type_field): New function.
524         (append_flags_type_flag): Call it.
525         * gdbtypes.h (append_flags_type_field): Declare.
526         * target-descriptions.c (struct tdesc_type_flag): Delete.
527         (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
528         (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
529         (struct tdesc_type) <u.f>: Delete.
530         (tdesc_predefined_types): Add "bool".
531         (tdesc_predefined_type): New function.
532         (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
533         Update TDESC_TYPE_FLAGS support.
534         (tdesc_free_type): Handle TDESC_TYPE_ENUM.  Update TDESC_TYPE_FLAGS.
535         (tdesc_create_flags): Update.
536         (tdesc_create_enum): New function.
537         (tdesc_add_field): Initialize start,end to -1.
538         (tdesc_add_typed_bitfield): New function.
539         (tdesc_add_bitfield): Call it.
540         (tdesc_add_flag): Allow TDESC_TYPE_STRUCT.  Update.
541         (tdesc_add_enum_value): New function.
542         (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
543         TDESC_TYPE_STRUCT.  Handle TDESC_TYPE_ENUM.
544         * target-descriptions.h (tdesc_create_enum): Declare.
545         (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
546         * valprint.c (generic_val_print_enum_1): New function.
547         (generic_val_print_enum): Call it.
548         (val_print_type_code_flags): Make static.  Handle multibit bitfields
549         and enum bitfields.
550         * valprint.h (val_print_type_code_flags): Delete.
551         * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
552         Delete.  All uses removed.
553         (tdesc_start_enum): New function.
554         (tdesc_start_field): Handle multibit and enum bitfields.
555         (tdesc_start_enum_value): New function.
556         (enum_value_attributes, enum_children, enum_attributes): New static
557         globals.
558         (feature_children): Add "enum".
559         * features/gdb-target.dtd (enum, evalue): New elements.
560
561 2016-03-15  Doug Evans  <dje@google.com>
562
563         * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
564         from LONGEST to int.
565         (struct tdesc_type) <u.f.size>: Ditto.
566         (tdesc_set_struct_size): Change type of "size" arg from LONGEST
567         to int.  Add assertion size > 0.
568         (tdesc_create_flags): Ditto.
569         * target-descriptions.h (tdesc_set_struct_size): Update.
570         (tdesc_create_flags): Update.
571         * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
572         (MAX_VECTOR_SIZE): New macro.
573         (tdesc_start_struct): Catch conversion errors from LONGEST to int.
574         (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
575
576 2016-03-15  Doug Evans  <dje@google.com>
577
578         * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
579         TYPE_CODE_FLAGS instead of "field_type", for consistency.
580         * features/i386/amd64-avx-linux.c: Regenerate.
581         * features/i386/amd64-avx.c: Regenerate.
582         * features/i386/amd64-avx512-linux.c: Regenerate.
583         * features/i386/amd64-avx512.c: Regenerate.
584         * features/i386/amd64-linux.c: Regenerate.
585         * features/i386/amd64-mpx-linux.c: Regenerate.
586         * features/i386/amd64-mpx.c: Regenerate.
587         * features/i386/amd64.c: Regenerate.
588         * features/i386/i386-avx-linux.c: Regenerate.
589         * features/i386/i386-avx.c: Regenerate.
590         * features/i386/i386-avx512-linux.c: Regenerate.
591         * features/i386/i386-avx512.c: Regenerate.
592         * features/i386/i386-linux.c: Regenerate.
593         * features/i386/i386-mmx-linux.c: Regenerate.
594         * features/i386/i386-mmx.c: Regenerate.
595         * features/i386/i386-mpx-linux.c: Regenerate.
596         * features/i386/i386-mpx.c: Regenerate.
597         * features/i386/i386.c: Regenerate.
598         * features/i386/x32-avx-linux.c: Regenerate.
599         * features/i386/x32-avx.c: Regenerate.
600         * features/i386/x32-avx512-linux.c: Regenerate.
601         * features/i386/x32-avx512.c: Regenerate.
602         * features/i386/x32-linux.c: Regenerate.
603         * features/i386/x32.c: Regenerate.
604
605 2016-03-15  Pedro Alves  <palves@redhat.com>
606
607         PR gdb/19676
608         * linux-thread-db.c (try_thread_db_load_1): Leave
609         info->td_ta_thr_iter_p NULL iff debugging a live process and we
610         have /proc access.
611         (find_new_threads_once): Assert that we have a non-NULL
612         info->td_ta_thr_iter_p instead of checking whether the target has
613         execution.
614
615 2016-03-15  Pedro Alves  <palves@redhat.com>
616
617         PR gdb/19676
618         * infrun.c (displaced_step_prepare): Also disable displaced
619         stepping on NOT_SUPPORTED_ERROR.
620         * linux-tdep.c (linux_displaced_step_location): If reading auxv
621         fails, throw NOT_SUPPORTED_ERROR instead of generic error.
622
623 2016-03-13  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
624
625         * s390-linux-tdep.c (s390_gen_return_address): New function.
626         (s390_gdbarch_init): Fill gen_return_address hook.
627
628 2016-03-11  Andrew Burgess  <andrew.burgess@embecosm.com>
629
630         * symmisc.c (maintenance_info_line_tables): New function.
631         (maintenance_print_one_line_table): New function.
632         (_initialize_symmisc): Register 'maint info line-table' command.
633         * NEWS: Mention new command.
634
635 2016-03-11  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
636
637         * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
638         (s390_ax_pseudo_register_push_stack): New function.
639         (s390_gdbarch_init): Fill ax_pseudo_register_collect and
640         ax_pseudo_register_push_stack hooks.
641
642 2016-03-10  Simon Marchi  <simon.marchi@polymtl.ca>
643
644         * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
645         gdb/function/as_string.py.
646         * python/lib/gdb/function/as_string.py: New file.
647         * NEWS: Mention the new $_as_string function.
648
649 2016-03-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
650
651         * target.h: Fix doc string of target_can_use_hardware_watchpoint.
652
653 2016-03-09  Pedro Alves  <palves@redhat.com>
654
655         * event-top.c (more_to_come): Delete.
656         (struct readline_input_state): Delete.
657         (readline_input_state): Delete.
658         (get_command_line_buffer): New function.
659         (command_handler): Update comments.  Don't handle NULL commands
660         here.  Do not execute commented lines.
661         (command_line_append_input_line): New function.
662         (handle_line_of_input): New function, partly based on
663         command_line_handler and command_line_input.
664         (command_line_handler): Rewrite.
665         * event-top.h (command_handler): New declaration.
666         (command_loop): Defer command execution to command_handler.
667         (command_line_input): Update comments.  Simplify, using struct
668         buffer and handle_line_of_input.
669         * top.h (struct buffer): New forward declaration.
670         (handle_line_of_input): New declaration.
671
672 2016-03-09  Pedro Alves  <palves@redhat.com>
673
674         * event-top.c (command_line_handler): Use xfree + xstrdup instead
675         of xrealloc + strcpy.
676         * main.c (captured_main): Use xstrdup instead of xmalloc plus
677         manual clear.
678         * top.c (saved_command_line): Rewrite comment.
679         (saved_command_line_size): Delete.
680         (command_line_input): Use xfree + xstrdup instead of xrealloc +
681         strcpy.
682         * top.h (saved_command_line_size): Delete declaration.
683
684 2016-03-09  Pedro Alves  <palves@redhat.com>
685
686         * event-top.c: Include buffer.h.
687         (gdb_readline_no_editing_callback): Use struct buffer instead
688         of xrealloc.
689
690 2016-03-09  Pedro Alves  <palves@redhat.com>
691
692         * common/buffer.h (buffer_grow_char): New function.
693         * top.c: Include buffer.h.
694         (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
695         'prompt'.  Use struct buffer instead of xrealloc.
696
697 2016-03-09  Pedro Alves  <palves@redhat.com>
698
699         * defs.h (gdb_readline): Delete declaration.
700         * top.c (gdb_readline): Rename to ...
701         (gdb_readline_no_editing): ... this, and make static.
702
703 2016-03-09  Pedro Alves  <palves@redhat.com>
704
705         * utils.c (prompt_for_continue): Update comments.
706
707 2016-03-09  Pedro Alves  <palves@redhat.com>
708
709         * event-top.c (async_annotation_suffix): Delete.
710         (top_level_prompt, command_line_handler): Don't use
711         'async_annotation_suffix' and simplify.
712         * event-top.h (async_annotation_suffix): Delete declaration.
713         (init_main): Remove reference to 'async_annotation_suffix'.
714
715 2016-03-09  Pedro Alves  <palves@redhat.com>
716
717         * event-top.c (gdb_readline2): Rename to ...
718         (gdb_readline_no_editing_callback): ... this.
719         (change_line_handler, stdin_event_handler)
720         (gdb_setup_readline): Adjust.
721         * event-top.h (gdb_readline2): Rename to ...
722         (gdb_readline_no_editing_callback): ... this, and move closer to
723         other readline-related declarations.
724         * mi/mi-interp.c (mi_interpreter_resume): Adjust.
725
726 2016-03-09  Pedro Alves  <palves@redhat.com>
727
728         * top.c (window_hook): Delete.
729         (command_loop): Remove references to window_hook.
730
731 2016-03-09  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
732
733         * corefile.c (safe_read_memory_unsigned_integer): New function.
734         * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
735         * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
736
737 2016-03-09  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
738
739         * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
740         (rs6000_gen_return_address): New function.
741         (rs6000_gdbarch_init): Wire in the above.
742
743 2016-03-09  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
744
745         * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
746         (rs6000_gdbarch_init): Wire in the above.
747
748 2016-03-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
749
750         * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
751         instructions that do nothing or are conditional traps.
752
753 2016-03-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
754
755         * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
756         frame func's PC in info->func before any other failure can occur.
757         (s390_frame_this_id): Use frame_id_build_unavailable_stack if
758         info->func has been filled out.
759
760 2016-03-09  Pedro Alves  <palves@redhat.com>
761
762         * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
763
764 2016-03-09  Pedro Alves  <palves@redhat.com>
765
766         * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
767
768 2016-03-09  Pedro Alves  <palves@redhat.com>
769
770         * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
771         order is BFD_ENDIAN_BIG or if the cris version is unsupported.
772
773 2016-03-09  Pedro Alves  <palves@redhat.com>
774
775         * doublest.c: Extend comments.
776         (floatformat_to_doublest, floatformat_from_doublest): Copy the
777         floatformat's total size, not the host type's size.
778
779 2016-03-09  Pedro Alves  <palves@redhat.com>
780
781         * doublest.c (floatformat_totalsize_bytes): New function.
782         (floatformat_from_type): Assert that the type's length is at least
783         as long as the floatformat's totalsize.
784         * doublest.h (floatformat_totalsize_bytes): New declaration.
785         * gdbtypes.c (arch_float_type): Assert that the type's length is
786         at least as long as the floatformat's totalsize.
787
788 2016-03-09  Pedro Alves  <palves@redhat.com>
789
790         * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
791         format to floatformats_ieee_double.
792
793 2016-03-07  Pedro Alves  <palves@redhat.com>
794
795         * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
796         before calling bfd_get_flavour.
797
798 2016-03-05  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
799
800         * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
801         (avr_push_dummy_call): Correct last needed argument register.
802         Write MSB of argument into register and subsequent bytes into
803         other registers in decreasing order.
804
805 2016-03-04  Yao Qi  <yao.qi@linaro.org>
806
807         * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
808         condition check.  Record the right D register number.
809
810 2016-03-04  Yao Qi  <yao.qi@linaro.org>
811
812         * arm-tdep.c (arm_record_extension_space): Remove code
813         printing "Process record does not support".
814         (arm_record_data_proc_misc_ld_str): Likewise.
815         (decode_insn): Call arm_record_extension_space if condition
816         is 0xf.  Call arm_record_unsupported_insn if ret isn't
817         ARM_RECORD_SUCCESS.  Use 'ret' instead of 'insn_id' to hold
818         the value of thumb2_record_decode_insn_handler.
819
820 2016-03-04  Simon Marchi  <simon.marchi@ericsson.com>
821
822         * features/feature_to_c.sh: Print the help when passing no
823         argument.
824
825 2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
826
827         * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
828
829 2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
830
831         * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
832
833 2016-03-01  Andreas Arnez  <arnez@linux.vnet.ibm.com>
834
835         * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
836         exception when attempting to access the inferior's backchain.
837
838 2016-02-29  Yao Qi  <yao.qi@linaro.org>
839
840         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
841         eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
842         Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
843         for aarch64_sys_epoll_create1.
844
845 2016-02-29  Yao Qi  <yao.qi@linaro.org>
846
847         * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
848         <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
849         <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
850         * linux-record.c (record_linux_system_call): Handle them.
851
852 2016-02-28  Iain Buclaw  <ibuclaw@gdcproject.org>
853
854         * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
855         cyclic imports.
856
857 2016-02-26  Keith Seitz  <keiths@redhat.com>
858
859         * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
860         to avoid invalid conversion from void *.
861
862 2016-02-26  Yao Qi  <yao.qi@linaro.org>
863
864         * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
865         per bit 8.  Check bit 20 instead of bit 4 for VMOV
866         instruction.  Record D registers for instructions changing
867         S registers.  Change of the order of length and address
868         in record_buf_mem array.
869
870 2016-02-26  Yao Qi  <yao.qi@linaro.org>
871
872         * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
873         number of Rd.
874
875 2016-02-25  Doug Evans  <dje@google.com>
876
877         * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
878         compiler warning.
879         (recv_long_data): Ditto.
880
881 2016-02-25  Simon Marchi  <simon.marchi@ericsson.com>
882
883         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
884         Initialize variables.
885
886 2016-02-25  Antoine Tremblay  <antoine.tremblay@ericsson.com>
887
888         * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
889         (ax_reg_mask): Likewise.
890
891 2016-02-24  Pedro Alves  <palves@redhat.com>
892
893         * linux-nat.c (save_sigtrap) Delete.
894         (stop_wait_callback): Call save_stop_reason instead of
895         save_sigtrap.
896         (check_stopped_by_breakpoint): Rename to ...
897         (save_stop_reason): ... this.  Bits of save_sigtrap folded here.
898         Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
899         GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.  Factor out
900         common code between the USE_SIGTRAP_SIGINFO and
901         !USE_SIGTRAP_SIGINFO blocks.
902         (linux_nat_filter_event): Call save_stop_reason instead of
903         save_sigtrap.
904         * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
905         si_code for MIPS.
906         * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table.  Add
907         comments on MIPS behavior.
908         (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
909
910 2016-02-24  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
911
912         * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
913         to avoid spurious warnings.
914
915 2016-02-24  Gary Benson  <gbenson@redhat.com>
916
917         * exec.c (exec_file_locate_attach): Do not attempt to
918         locate main executable locally if not found in sysroot.
919
920 2016-02-24  Joel Brobecker  <brobecker@adacore.com>
921
922         GDB 7.11 released.
923
924 2016-02-24  Wei-cheng Wang  <cole945@gmail.com>
925
926         * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
927         unavailable PC/SP to build unavailable frame.
928
929 2016-02-23  Doug Evans  <dje@google.com>
930
931         Extend "skip" command to support -file, -gfile, -function, -rfunction.
932         * NEWS: Document new features.
933         * skip.c: #include "fnmatch.h", "gdb_regex.h".
934         (skiplist_entry) <file>: Renamed from filename.
935         <function>: Renamed from function_name.
936         <file_is_glob, function_is_regexp>: New members.
937         <compiled_function_regexp, compiled_function_regexp_is_valid>:
938         New members.
939         (make_skip_entry): New function.
940         (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
941         (make_free_skiplist_entry_cleanup): New function.
942         (skip_file_command): Update.
943         (skip_function, skip_function_command): Update.
944         (compile_skip_regexp): New functions.
945         (skip_command): Add support for new options.
946         (skip_info): Update.
947         (skip_file_p, skip_gfile_p): New functions.
948         (skip_function_p, skip_rfunction_p): New functions.
949         (function_name_is_marked_for_skip): Update and simplify.
950         (_initialize_step_skip): Update.
951         * symtab.c: #include "fnmatch.h".
952         (compare_glob_filenames_for_search): New function.
953         * symtab.h (compare_glob_filenames_for_search): Declare.
954         * utils.c (count_path_elements): New function.
955         (strip_leading_path_elements): New function.
956         * utils.h (count_path_elements): Declare.
957         (strip_leading_path_elements): Declare.
958
959 2016-02-23  Simon Marchi  <simon.marchi@ericsson.com>
960
961         * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
962         (thumb_process_displaced_insn): Likewise.
963         (arm_process_displaced_insn): Adjust calls.
964
965 2016-02-23  Yao Qi  <yao.qi@linaro.org>
966
967         * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
968         Remove.
969         <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
970         <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
971         <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
972         <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
973         <aarch64_sys_linkat, aarch64_sys_renameat>: New.
974         <aarch64_sys_faccessat>: New.
975         <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
976         <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
977         <aarch64_sys_newfstatat>: New.
978         (UNSUPPORTED_SYSCALL_MAP): New macro.
979         (aarch64_canonicalize_syscall): Add missing syscalls.
980
981 2016-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
982
983         * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
984
985 2016-02-22  Yao Qi  <yao.qi@linaro.org>
986
987         * arm-tdep.c: Fix code format issues.
988
989 2016-02-21  Iain Buclaw  <ibuclaw@gdcproject.org>
990
991         * d-namespace.c (d_lookup_symbol_imports): Remove argument
992         'search_parents'.  All callers updated.
993
994 2016-02-18  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
995
996         * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
997         (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
998
999 2016-02-18  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1000
1001         * NEWS: Add entry for bound violation.
1002         * amd64-linux-tdep.c (amd64_linux_init_abi_common):
1003         Add handler for segmentation fault.
1004         * gdbarch.sh (handle_segmentation_fault): New.
1005         * gdbarch.c: Regenerate.
1006         * gdbarch.h: Regenerate.
1007         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
1008         (SIG_CODE_BONDARY_FAULT): New define.
1009         (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
1010         * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
1011         * i386-tdep.c (i386_mpx_enabled): Add as external.
1012         * i386-tdep.c (i386_mpx_enabled): Add as external.
1013         * infrun.c (handle_segmentation_fault): New function.
1014         (print_signal_received_reason): Use handle_segmentation_fault.
1015
1016 2016-02-18  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1017
1018         * arch-utils.c (default_guess_tracepoint_registers): New function.
1019         * arch-utils.h (default_guess_tracepoint_registers): New prototype.
1020         * gdbarch.c: Regenerate.
1021         * gdbarch.h: Regenerate.
1022         * gdbarch.sh: Add guess_tracepoint_registers hook.
1023         * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
1024
1025 2016-02-17  Gary Benson  <gbenson@redhat.com>
1026
1027         * exec.c (exec_file_locate_attach): Add missing cleanup.
1028
1029 2016-02-16  Don Breazeal  <donb@codesourcery.com>
1030
1031         PR remote/19496
1032         * remote.c (remove_new_fork_children): Check for pending
1033         fork status in thread_info.suspend.
1034
1035 2016-02-16  Yao Qi  <yao.qi@linaro.org>
1036
1037         * arm-linux-tdep.c (arm_linux_software_single_step): Assign
1038         'old_chain' later.
1039
1040 2016-02-16  Yao Qi  <yao.qi@linaro.org>
1041
1042         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
1043         <syscall_next_pc>: Remove argument PC.  Callers updated.
1044         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
1045         Remove argument PC.  Get pc from regcache_read_pc.
1046         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
1047         argument PC.
1048
1049 2016-02-15  Yao Qi  <yao.qi@linaro.org>
1050
1051         * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
1052
1053 2016-02-12  Yao Qi  <yao.qi@linaro.org>
1054
1055         * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
1056         nextpc according to instruction.
1057
1058 2016-02-12  Yao Qi  <yao.qi@linaro.org>
1059
1060         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
1061         self->ops->fixup if it isn't NULL.
1062         * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
1063         (struct arm_get_next_pcs_ops) <fixup>: New field.
1064         * arch/arm-linux.c: Include common-regcache.h and
1065         arch/arm-get-next-pcs.h.
1066         (arm_linux_get_next_pcs_fixup): New function.
1067         * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
1068         * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
1069         it with arm_linux_get_next_pcs_fixup.
1070         (arm_linux_software_single_step): Move code to
1071         arm_linux_get_next_pcs_fixup.
1072         * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
1073
1074 2016-02-12  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1075
1076         * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
1077         and return NULL.
1078
1079 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
1080
1081         * frame.h (skip_tailcall_frames): Update comment.
1082         * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
1083         if only artificial frames are found.  Update comment.
1084         (frame_unwind_caller_id): Handle NULL return.
1085         (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
1086         skip_artificial_frames does not return NULL.
1087         (frame_pop): Add an error if only tailcall frames are found.
1088         * infcmd.c (finish_command): Move skip_tailcall_frames call into
1089         forward-execution case.  Add an error if only tailcall frames are
1090         found.
1091
1092 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
1093
1094         * stack.c (frame_info): Check frame_unwind_caller_id.
1095
1096 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
1097
1098         * frame.h (skip_tailcall_frames): New.
1099         * frame.c (skip_tailcall_frames): New.
1100         (frame_pop): Call skip_tailcall_frames.
1101         * infcmd.c (finish_command): Call skip_tailcall_frames.
1102
1103 2016-02-11  Pedro Alves  <palves@redhat.com>
1104
1105         * Makefile.in (check-parallel): New rule.
1106
1107 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
1108
1109         * arm-tdep.c (arm_skip_prologue): Remove unused variables.
1110         (arm_analyze_prologue): Likewise.
1111         (arm_scan_prologue): Likewise.
1112         (arm_m_exception_prev_register): Likewise.
1113         (arm_copy_block_xfer): Likewise.
1114         (thumb2_copy_block_xfer): Likewise.
1115         (arm_decode_miscellaneous): Likewise.
1116         (arm_decode_ld_st_word_ubyte): Likewise.
1117         (arm_decode_svc_copro): Likewise.
1118         (thumb2_decode_svc_copro): Likewise.
1119         (thumb_copy_16bit_ldr_literal): Likewise.
1120         (thumb_copy_pop_pc_16bit): Likewise.
1121         (decode_thumb_32bit_ld_mem_hints): Likewise.
1122         (arm_show_force_mode): Likewise.
1123         (_initialize_arm_tdep): Likewise.
1124         (arm_record_strx): Likewise.
1125         (arm_record_extension_space): Likewise.
1126         (arm_record_data_proc_misc_ld_str): Likewise.
1127         (arm_record_exreg_ld_st_insn): Likewise.
1128         (arm_record_vfp_data_proc_insn): Likewise.
1129         (arm_record_coproc_data_proc): Likewise.
1130         (thumb_record_misc): Likewise.
1131         (thumb_record_ldm_stm_swi): Likewise.
1132         (thumb2_record_ld_st_dual_ex_tbb): Likewise.
1133         (thumb2_record_ld_mem_hints): Likewise.
1134         (thumb2_record_lmul_lmla_div): Likewise.
1135         (thumb2_record_asimd_struct_ld_st): Likewise.
1136         (arm_process_record): Likewise.
1137
1138 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
1139
1140         * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
1141         (ARM displaced stepping support): Remove reference to
1142         arm_displaced_step_copy_insn in comment.
1143         * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
1144         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
1145         reference to arm_displaced_step_copy_insn in comment.
1146
1147 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
1148
1149         * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
1150         (thumb_copy_b): Likewise.
1151         (arm_decode_b_bl_ldmstm): Likewise.
1152         (thumb_copy_16bit_ldr_literal): Likewise.
1153         (thumb_copy_pop_pc_16bit): Likewise.
1154
1155 2016-02-11  Antoine Tremblay  <antoine.tremblay@ericsson.com>
1156
1157         * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
1158         than loc->gdbarch.
1159
1160 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1161
1162         * tracefile-tfile.c (trace_tdesc): New static variable.
1163         (tfile_open): Clear trace_tdesc, call target_find_description.
1164         (tfile_interp_line): Recognize tdesc lines.
1165         (tfile_close): Clear trace_tdesc.
1166         (tfile_xfer_partial_features): New function.
1167         (tfile_xfer_partial): Call tfile_xfer_partial_features.
1168         (tfile_append_tdesc_line): New function.
1169
1170 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1171
1172         * ctf.c (ctf_write_tdesc): New function.
1173         (ctf_write_ops): Wire in ctf_write_tdesc.
1174         * tracefile-tfile.c (tfile_write_tdesc): New function.
1175         (tfile_write_ops): Wire in tfile_write_tdesc.
1176         * tracefile.c (trace_save): Call write_tdesc method.
1177         * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
1178         * xml-tdesc.c (target_fetch_description_xml): New function.
1179         * xml-tdesc.h: Add target_fetch_description_xml prototype.
1180
1181 2016-02-10  Simon Marchi  <simon.marchi@ericsson.com>
1182
1183         * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
1184         (arm_decode_dp_misc): Likewise.
1185
1186 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1187
1188         * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
1189         (amd64_init_abi): Fill ax_pseudo_register_collect hook.
1190         * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
1191         misleading comment.
1192         (i386_pseudo_register_write): Ditto.
1193         (i386_ax_pseudo_register_collect): New function.
1194         (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
1195         * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
1196
1197 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1198
1199         * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
1200         instead of gdb order.
1201
1202 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1203
1204         * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
1205         check.
1206
1207 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
1208
1209         * NEWS: Create a new section for the next release branch.
1210         Rename the section of the current branch, now that it has
1211         been cut.
1212
1213 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
1214
1215         GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
1216         * version.in: Bump version to 7.11.50.DATE-git.
1217
1218 2016-02-09  Keith Seitz  <keiths@redhat.com>
1219
1220         PR breakpoints/19546
1221         * breakpoint.c (breakpoint_event_location_empty_p): New function.
1222         (update_breakpoints_after_exec, bkpt_re_set): Use this new function
1223         instead of event_location_empty_p.
1224
1225 2016-02-09  Keith Seitz  <keiths@redhat.com>
1226
1227         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
1228         string_to_event_location_basic instead of string_to_event_location.
1229
1230 2016-02-09  Keith Seitz  <keiths@redhat.com>
1231
1232         * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
1233         leading whitespace and use string_to_event_location_basic instead
1234         of new_linespec_location.
1235
1236 2016-02-09  Keith Seitz  <keiths@redhat.com>
1237
1238         PR python/19506
1239         * python/py-breakpoint.c (bppy_init): Use
1240         string_to_event_location_basic instead of new_linespec_location.
1241
1242 2016-02-09  Keith Seitz  <keiths@redhat.com>
1243
1244         * location.c (string_to_explicit_location): Note that "-p" is
1245         reserved for probe locations and return NULL for any input
1246         that starts with that.
1247         (string_to_event_location): Move "legacy" linespec code to ...
1248         (string_to_event_location_basic): ... here.
1249         * location.h (string_to_event_location): Update comment.
1250         (string_to_event_location_basic): New function.
1251
1252 2016-02-09  Simon Marchi  <simon.marchi@ericsson.com>
1253
1254         * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
1255         to AC_OUTPUT.  Remove "exit 0" at the end.
1256         * configure: Regenerate.
1257
1258 2016-02-09  Pedro Alves  <palves@redhat.com>
1259
1260         PR breakpoints/19548
1261         * breakpoint.c (create_overlay_event_breakpoint): Don't update
1262         global location list here.
1263         (create_longjmp_master_breakpoint)
1264         (create_std_terminate_master_breakpoint)
1265         (create_exception_master_breakpoint, create_jit_event_breakpoint)
1266         (update_breakpoint_locations):
1267         (breakpoint_re_set): Update global location list after all
1268         breakpoints are re-set.
1269
1270 2016-02-08  Simon Marchi  <simon.marchi@ericsson.com>
1271
1272         * remote.c (remote_register_number_and_offset): Remove unused
1273         variable(s).
1274         (remote_thread_always_alive): Likewise.
1275         (remote_update_thread_list): Likewise.
1276         (process_initial_stop_replies): Likewise.
1277         (remote_start_remote): Likewise.
1278         (remote_check_symbols): Likewise.
1279         (discard_pending_stop_replies): Likewise.
1280         (process_stop_reply): Likewise.
1281         (putpkt_binary): Likewise.
1282         (getpkt): Likewise.
1283         (remote_add_target_side_condition): Likewise.
1284         (remote_insert_breakpoint): Likewise.
1285         (remote_supports_stopped_by_sw_breakpoint): Likewise.
1286         (remote_supports_stopped_by_hw_breakpoint): Likewise.
1287         (remote_xfer_partial): Likewise.
1288         (remote_read_btrace): Likewise.
1289         (remote_async_serial_handler): Likewise.
1290         (remote_thread_events): Likewise.
1291         (_initialize_remote): Likewise.
1292
1293 2016-02-07  Simon Marchi  <simon.marchi@polymtl.ca>
1294
1295         * varobj.h (varobj_delete): Remove dellist parameter, update and
1296         move documentation here.
1297         * varobj.c (struct cpstack, cppush, cppop): Remove.
1298         (delete_variable): Remove resultp (first) parameter.
1299         (delete_variable_1): Likewise.
1300         (varobj_delete): Remove dellist parameter and unused code.
1301         (update_dynamic_varobj_children): Adjust varobj_delete call.
1302         (update_type_if_necessary): Likewise.
1303         (varobj_set_visualizer): Likewise.
1304         (varobj_update): Likewise.
1305         (value_of_root): Likewise.
1306         (varobj_invalidate_iter): Likewise.
1307         * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
1308
1309 2016-02-04  Yao Qi  <yao.qi@linaro.org>
1310
1311         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
1312         0 before handling 'F' and set it back afterwards.
1313
1314 2016-02-02  Simon Marchi  <simon.marchi@ericsson.com>
1315
1316         * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
1317
1318 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1319
1320         * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
1321         New types.
1322         (compat_siginfo): New bound fields added.
1323         (compat_x32_siginfo): New field added.
1324         (cpt_si_addr_lsb): New define.
1325         (compat_siginfo_from_siginfo): Use nat_siginfo.
1326         (siginfo_from_compat_siginfo): Use nat_siginfo.
1327         (compat_x32_siginfo_from_siginfo): Likewise.
1328         (siginfo_from_compat_x32_siginfo): Likewise.
1329
1330 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1331
1332         * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
1333         structure to the siginfo if extra_fields contains
1334         LINUX_SIGINFO_FIELD_ADDR_BND.
1335
1336 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1337
1338         * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
1339         * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
1340         * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
1341         function.
1342         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
1343         x86_linux_get_siginfo_type for the amd64 abi.
1344         * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
1345         function.
1346         (i386_linux_init_abi): Add new function at the i386 ABI
1347         initialization.
1348
1349 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1350
1351         * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
1352         (linux_siginfo_extra_fields): New enum type.
1353         * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
1354         (linux_get_siginfo_type): Use new function.
1355
1356 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1357
1358         * nat/amd64-linux-siginfo.c: New file.
1359         * nat/amd64-linux-siginfo.h: New file.
1360         * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
1361         (amd64-linux-siginfo.o): New rule.
1362         * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
1363         * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
1364         (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
1365         (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
1366         (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
1367         (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
1368         (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
1369         (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
1370
1371 2016-02-01  Andrew Burgess  <andrew.burgess@embecosm.com>
1372
1373         * value.c (max_value_size): New variable.
1374         (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
1375         (set_max_value_size): New function.
1376         (show_max_value_size): New function.
1377         (check_type_length_before_alloc): New function.
1378         (allocate_value_contents): Call check_type_length_before_alloc.
1379         (set_value_enclosing_type): Likewise.
1380         (_initialize_values): Add set/show handler for max-value-size.
1381         * NEWS: Mention new set/show command.
1382
1383 2016-01-31  Simon Marchi  <simon.marchi@polymtl.ca>
1384
1385         * varobj.h (struct varobj): Fix typos in comments.
1386         (struct lang_varobj_ops): Likewise.
1387         * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
1388         (varobj_create): Move misplaced comment.
1389
1390 2016-01-29  Simon Marchi  <simon.marchi@ericsson.com>
1391
1392         * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
1393         to for include additional lines.
1394         * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
1395
1396 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
1397
1398         * gnulib/import/Makefile.am: Regenerate.
1399         * gnulib/import/Makefile.in: Regenerate.
1400         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1401         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
1402
1403 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
1404
1405         * remote.c (skip_to_semicolon): Remove.
1406         (remote_parse_stop_reply): Use strchrnul instead of
1407         skip_to_semicolon.
1408         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1409         strchrnul.
1410         * gnulib/aclocal.m4: Regenerate.
1411         * gnulib/config.in: Regenerate.
1412         * gnulib/configure: Regenerate.
1413         * gnulib/import/Makefile.am: Regenerate.
1414         * gnulib/import/Makefile.in: Regenerate.
1415         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1416         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1417         * gnulib/import/m4/rawmemchr.m4: New file.
1418         * gnulib/import/m4/strchrnul.m4: New file.
1419         * gnulib/import/rawmemchr.c: New file.
1420         * gnulib/import/rawmemchr.valgrind: New file.
1421         * gnulib/import/strchrnul.c: New file.
1422         * gnulib/import/strchrnul.valgrind: New file.
1423
1424 2016-01-28  Yao Qi  <yao.qi@linaro.org>
1425
1426         * breakpoint.c (build_target_command_list): Don't call continue
1427         if aexpr is NULL.
1428         (build_target_condition_list): Likewise.
1429
1430 2016-01-27  Kevin Buettner  <kevinb@redhat.com>
1431
1432         * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
1433         bytes as aggregates.
1434
1435 2016-01-27  Joel Brobecker  <brobecker@adacore.com>
1436
1437         * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
1438         Linespec Maintainers.
1439
1440 2016-01-26  Simon Marchi  <simon.marchi@ericsson.com>
1441
1442         * common/common-utils.c (skip_spaces): Fix comment.
1443         (skip_to_space_const): Likewise.
1444
1445 2016-01-25  Yao Qi  <yao.qi@linaro.org>
1446
1447         * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
1448         Remove argument pc.  Get pc by regcache_read_pc.  Callers updated.
1449         (arm_deal_with_atomic_sequence_raw): Likewise.
1450         (thumb_get_next_pcs_raw): Likewise.
1451         (arm_get_next_pcs_raw): Likewise.
1452         (arm_get_next_pcs): Remove argument pc.  Callers updated.
1453         * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
1454
1455 2016-01-25  Mark Wielaard  <mjw@redhat.com>
1456
1457         * ada-lang.c (ada_evaluate_subexp): Add proper else block.
1458         * c-typeprint.c (c_type_print_base): Fix misleading indentation of
1459         if statement.
1460         * inflow.c (child_terminal_ours_1): Fix misleading indentation of
1461         statement block by introducing an else.
1462         * linux-record.c (record_linux_sockaddr): Fix misleading indentation
1463         of return statements.
1464         (record_linux_msghdr): Likewise.
1465
1466 2016-01-25  Pedro Alves  <palves@redhat.com>
1467
1468         PR threads/19461
1469         * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
1470         parent/child running states.
1471
1472 2016-01-25  Pedro Alves  <palves@redhat.com>
1473
1474         PR gdb/19494
1475         * linux-nat.c (kill_one_lwp): New, factored out from ...
1476         (kill_callback): ... this.
1477         (kill_wait_callback): New, factored out from ...
1478         (kill_wait_one_lwp): ... this.
1479         (kill_unfollowed_fork_children): New function.
1480         (linux_nat_kill): Use it.
1481
1482 2016-01-22  John Baldwin  <jhb@FreeBSD.org>
1483
1484         * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
1485
1486 2016-01-22  Yao Qi  <yao.qi@linaro.org>
1487
1488         * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
1489         instead of warning.
1490         (store_fpregs, fetch_regs, store_regs): Likewise.
1491         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
1492         (fetch_vfp_regs, store_vfp_regs): Likewise.
1493
1494 2016-01-21  Doug Evans  <dje@google.com>
1495
1496         * breakpoint.c (init_breakpoint_sal): Add comment.
1497
1498 2016-01-21  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1499
1500         * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
1501
1502 2016-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1503
1504         * disasm.c (maybe_add_dis_line_entry): Rename to...
1505         (add_dis_line_entry): ...this, and update header comment.
1506         (do_mixed_source_and_assembly): Now use add_dis_line_entry.
1507
1508 2016-01-21  Pedro Alves  <palves@redhat.com>
1509
1510         * Makefile.in (COMPILER_CFLAGS): New.
1511         (CXXFLAGS): Get it from configure.
1512         (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
1513         instead of CFLAGS.
1514         * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
1515         COMPILER_CFLAGS.
1516         * configure: Regenerate.
1517
1518 2016-01-21  Joel Brobecker  <brobecker@adacore.com>
1519
1520         * location.h (new_address_location): Add new parameters
1521         "addr_string" and "addr_string_len".
1522         (get_address_string_location): Add declaration.
1523         * location.c (new_address_location): Add new parameters
1524         "addr_string" and "addr_string_len".  If not NULL, store
1525         a copy of the addr_string in the new location as well.
1526         (get_address_string_location): New function.
1527         (string_to_event_location): Update call to new_address_location.
1528         * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
1529         Save the event location in the parser's state before
1530         passing it to convert_address_location_to_sals.
1531         * breakpoint.c (create_thread_event_breakpoint): Update call
1532         to new_address_location.
1533         (init_breakpoint_sal): Get the event location's string, if any,
1534         and use it to update call to new_address_location.
1535         * python/py-finishbreakpoint.c (bpfinishpy_init):
1536         Update call to new_address_location.
1537         * spu-tdep.c (spu_catch_start): Likewise.
1538
1539         * config/djgpp/fnchange.lst: Add entries for
1540         gdb/testsuite/gdb.base/break-fun-addr1.c and
1541         gdb/testsuite/gdb.base/break-fun-addr2.c.
1542
1543 2016-01-21  Yao Qi  <yao.qi@linaro.org>
1544
1545         * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
1546         is_thumb and set it according to CPSR saved on the stack.
1547         (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
1548         arm_linux_sigreturn_next_pc.
1549
1550 2016-01-20  Simon Marchi  <simon.marchi@polymtl.ca>
1551
1552         * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
1553         Fix enumerators sort key function.
1554
1555 2016-01-20  Joel Brobecker  <brobecker@adacore.com>
1556
1557         * printcmd.c (print_scalar_formatted): Move binary operator from
1558         end of line to beginning of next line.  Adjust formatting
1559         accordingly.
1560
1561 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1562
1563         * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
1564         "len" with sysctl.
1565
1566 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1567
1568         * fbsd-tdep.c (find_stop_signal): Remove.
1569         (struct fbsd_collect_regset_section_cb) <lwp>: New field.
1570         <stop_signal>: New field.
1571         <abort_iteration>: New field.
1572         (fbsd_collect_regset_section_cb): Use new fields.
1573         (fbsd_collect_thread_registers): New function.
1574         (struct fbsd_corefile_thread_data): New structure.
1575         (fbsd_corefile_thread): New function.
1576         (fbsd_make_corefile_notes): Use new function to dump notes for each
1577         non-exited thread in a process.
1578
1579 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1580
1581         * configure.ac: Check for support for LWP names on FreeBSD.
1582         * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
1583         [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
1584         (fbsd_fetch_kinfo_proc): Move function earlier.
1585         [PT_LWPINFO] (fbsd_thread_alive): New function.
1586         [PT_LWPINFO] (fbsd_pid_to_str): New function.
1587         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
1588         [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
1589         [PT_LWPINFO] (fbsd_add_threads): New function.
1590         [PT_LWPINFO] (fbsd_update_thread_list): New function.
1591         [PT_LWPINFO] New variable super_resume.
1592         [PT_LWPINFO] (resume_one_thread_cb): New function.
1593         [PT_LWPINFO] (resume_all_threads_cb): New function.
1594         [PT_LWPINFO] (fbsd_resume): New function.
1595         (fbsd_remember_child): Save full ptid instead of plain pid.
1596         (fbsd_is_child_pending): Return ptid of saved child process.
1597         (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
1598         first stop.
1599         [PT_LWP_EVENTS] Handle LWP events.
1600         [TDP_RFPPWAIT] Include LWP in child ptid.
1601         (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
1602         (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
1603         Add threads for existing processes.
1604         (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
1605         "fbsd_thread_alive".
1606         Set "to_pid_to_str" to "fbsd_pid_to_str".
1607         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
1608         "fbsd_thread_name".
1609         [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
1610         Set "to_has_thread_control" to "tc_schedlock".
1611         Set "to_resume" to "fbsd_resume".
1612         (_initialize_fbsd_nat): New function.
1613         * configure: Regenerate.
1614         * config.in: Regenerate.
1615
1616 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1617
1618         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
1619         get_ptrace_pid.
1620         (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
1621         (amd64bsd_dr_get): Use get_ptrace_pid.
1622         (amd64bsd_dr_set): Use get_ptrace_pid.
1623         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
1624         (i386bsd_store_inferior_registers): Use get_ptrace_pid.
1625         (i386bsd_dr_get): Use get_ptrace_pid.
1626         (i386bsd_dr_set): Use get_ptrace_pid.
1627         * inf-ptrace.c (get_ptrace_pid): Export.
1628         * inf-ptrace.h (get_ptrace_pid): Declare.
1629         * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
1630         (ppcfbsd_store_inferior_registers): Use lwp id.
1631
1632 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1633
1634         * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
1635         (fbsd_core_thread_name): New function.
1636         (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
1637         Add "core_thread_name" gdbarch method.
1638
1639 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1640
1641         * corelow.c (core_thread_name): New function.
1642         (init_core_ops): Use "core_thread_name" for the "to_thread_name"
1643         target op.
1644         * gdbarch.sh (core_thread_name): New gdbarch callback.
1645         * gdbarch.h: Re-generate.
1646         * gdbarch.c: Re-generate.
1647
1648 2016-01-19  Simon Marchi  <simon.marchi@polymtl.ca>
1649
1650         * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
1651         convert gdb.Value to integer type using int().
1652
1653 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
1654
1655         * configure.ac: Include <sys/types.h when checking for "r_fs" in
1656         "struct reg".
1657         * configure: Regenerate.
1658
1659 2016-01-19  Pedro Alves  <palves@redhat.com>
1660
1661         * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
1662         * break-catch-throw.c (re_set_exception_catchpoint): Pass the
1663         current program space down to linespec decoding and breakpoint
1664         location updating.
1665         * breakpoint.c (parse_breakpoint_sals): Adjust calls to
1666         decode_line_full.
1667         (until_break_command): Adjust calls to decode_line_1.
1668         (base_breakpoint_decode_location, bkpt_decode_location): Add
1669         'search_pspace' parameter.  Pass it along.
1670         (bkpt_probe_create_sals_from_location): Adjust calls to
1671         parse_probes.
1672         (tracepoint_decode_location, tracepoint_probe_decode_location)
1673         (strace_marker_decode_location): Add 'search_pspace' parameter.
1674         Pass it along.
1675         (all_locations_are_pending): Rewrite to take a breakpoint and
1676         program space as arguments instead.
1677         (hoist_existing_locations): New function.
1678         (update_breakpoint_locations): Add 'filter_pspace' parameter.  Use
1679         hoist_existing_locations instead of always removing all locations,
1680         and adjust to all_locations_are_pending change.
1681         (location_to_sals): Add 'search_pspace' parameter.  Pass it along.
1682         Don't disable the breakpoint if there are other locations in
1683         another program space.
1684         (breakpoint_re_set_default): Adjust to pass down the current
1685         program space as filter program space.
1686         (decode_location_default): Add 'search_pspace' parameter and pass
1687         it along.
1688         (prepare_re_set_context): Don't switch program space here.
1689         (breakpoint_re_set): Use save_current_space_and_thread instead of
1690         save_current_program_space.
1691         * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
1692         'search_pspace' parameter.
1693         (update_breakpoint_locations): Add 'filter_pspace' parameter.
1694         * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
1695         decode_line_1.
1696         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
1697         program space as filter program space.
1698         * linespec.c (struct linespec_state) <search_pspace>: New field.
1699         (create_sals_line_offset, convert_explicit_location_to_sals)
1700         (parse_linespec): Pass the search program space down.
1701         (linespec_state_constructor): Add 'search_pspace' parameter.
1702         Store it.
1703         (linespec_parser_new): Add 'search_pspace' parameter and pass it
1704         along.
1705         (linespec_lex_to_end): Adjust.
1706         (decode_line_full, decode_line_1): Add 'search_pspace' parameter
1707         and pass it along.
1708         (decode_line_with_last_displayed): Adjust.
1709         (collect_symtabs_from_filename, symtabs_from_filename): New
1710         'search_pspace' parameter.  Use it.
1711         (find_function_symbols): Pass the search program space down.
1712         * linespec.h (decode_line_1, decode_line_full): Add
1713         'search_pspace' parameter.
1714         * probe.c (parse_probes_in_pspace): New function, factored out
1715         from ...
1716         (parse_probes): ... this.  Add 'search_pspace' parameter and use
1717         it.
1718         * probe.h (parse_probes): Add pspace' parameter.
1719         * python/python.c (gdbpy_decode_line): Adjust.
1720         * tracepoint.c (scope_info): Adjust.
1721
1722 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
1723
1724         * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
1725         instruction support.
1726         (micromips_next_pc): Likewise.
1727         (micromips_scan_prologue): Likewise.
1728         (micromips_deal_with_atomic_sequence): Likewise.
1729         (micromips_stack_frame_destroyed_p): Likewise.
1730         (mips_breakpoint_from_pc): Likewise.
1731
1732 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
1733
1734         * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
1735         unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
1736
1737 2016-01-18  Pedro Alves  <palves@redhat.com>
1738
1739         * NEWS: Mention that GDB now displays the ID and name of the
1740         thread that hit a breakpoint or received a signal.
1741         * break-catch-sig.c (signal_catchpoint_print_it): Use
1742         maybe_print_thread_hit_breakpoint.
1743         * break-catch-syscall.c (print_it_catch_syscall): Likewise.
1744         * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
1745         * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
1746         (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
1747         (print_it_catch_exec, print_it_ranged_breakpoint)
1748         (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
1749         Use maybe_print_thread_hit_breakpoint.
1750         * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
1751         * gdbthread.h (show_thread_that_caused_stop): Declare.
1752         * infrun.c (print_signal_received_reason): Print which thread
1753         received signal.
1754         * thread.c (show_thread_that_caused_stop): New function.
1755
1756 2016-01-18  Gary Benson  <gbenson@redhat.com>
1757
1758         * nat/linux-namespaces.c (do_fork): New function.
1759         (linux_mntns_get_helper): Use the above.
1760
1761 2016-01-17  Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>  (tiny change)
1762
1763         Pushed by Joel Brobecker  <brobecker@adacore.com>.
1764         PR gdb/19208
1765         * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
1766         if the function has no name.
1767
1768 2016-01-15  Sandra Loosemore  <sandra@codesourcery.com>
1769
1770         * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
1771         Conditionalize for Windows host.
1772         (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
1773         (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
1774         (phony_iconv_open): Handle both UTF-32 endiannesses.
1775         (phony_iconv): Likewise.  Check for output overflow and clean up
1776         out-of-input cases.  Correct adjustment to input buffer pointer.
1777         (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
1778         phony_iconv_open.
1779
1780 2016-01-15  Pedro Alves  <palves@redhat.com>
1781
1782         * NEWS: Mention star wildcard ranges.
1783         * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
1784         (number_range_setup_range): New function.
1785         * cli/cli-utils.h (number_range_setup_range): New declaration.
1786         * thread.c (thread_apply_command): Support star TID ranges.
1787         * tid-parse.c (tid_range_parser_finished)
1788         (tid_range_parser_string, tid_range_parser_skip)
1789         (get_tid_or_range, get_tid_or_range): Handle
1790         TID_RANGE_STATE_STAR_RANGE.
1791         (tid_range_parser_star_range): New function.
1792         * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
1793         New value.
1794         (tid_range_parser_star_range): New declaration.
1795
1796 2016-01-15  Pedro Alves  <palves@redhat.com>
1797
1798         * thread.c (thread_apply_command): Use the tid range parser to
1799         advance past the thread ID list.
1800         * tid-parse.c (get_positive_number_trailer): New function.
1801         (parse_thread_id): Use it.
1802         (get_tid_or_range): Use it.  Return 0 instead of throwing invalid
1803         thread ID error.
1804         (get_tid_or_range): Detect negative values.  Return 0 instead of
1805         throwing invalid thread ID error.
1806
1807 2016-01-14  Yao Qi  <yao.qi@linaro.org>
1808
1809         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
1810         Declare.
1811         (arm_linux_get_next_pcs_ops): Install
1812         arm_linux_get_next_pcs_syscall_next_pc.
1813         (arm_linux_syscall_next_pc): Change to ...
1814         (arm_linux_get_next_pcs_syscall_next_pc): ... it.
1815         (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
1816         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
1817         (arm_get_next_pcs_syscall_next_pc): Make it static.  Don't
1818         call tdep->syscall_next_pc.
1819         * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
1820         (arm_get_next_pcs_syscall_next_pc): Remove.
1821
1822 2016-01-14  Yao Qi  <yao.qi@linaro.org>
1823
1824         * remote.c (remote_set_syscall_catchpoint): Cast to char *.
1825         * thread.c (do_captured_thread_select): Cast to const char *.
1826
1827 2016-01-14  Yao Qi  <yao.qi@linaro.org>
1828
1829         * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
1830         argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
1831         (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
1832         instead.
1833         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
1834         <arm_thumb2_breakpoint>: Remove.
1835         <has_thumb2_breakpoint>: New field.
1836         (arm_get_next_pcs_ctor): Update declaration.
1837         * arm-linux-tdep.c (arm_linux_software_single_step): Pass
1838         1 to arm_get_next_pcs_ctor.
1839         * arm-tdep.c (arm_software_single_step): Pass 0 to
1840         arm_get_next_pcs_ctor.
1841
1842 2016-01-13  Ulrich Weigand  <uweigand@de.ibm.com>
1843
1844         * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
1845
1846 2016-01-13  Yao Qi  <yao.qi@linaro.org>
1847
1848         * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
1849         byte_order_for_code to read instruction.
1850
1851 2016-01-13  Pedro Alves  <palves@redhat.com>
1852
1853         * NEWS: Mention $_gthread.
1854         * gdbthread.h (struct thread_info) <global_num>: Mention
1855         $_gthread.
1856         * thread.c (thread_num_make_value_helper): New function.
1857         (thread_id_make_value): Delete.
1858         (thread_id_per_inf_num_make_value, global_thread_id_make_value):
1859         New.
1860         (thread_funcs): Adjust.
1861         (gthread_funcs): New.
1862         (_initialize_thread): Register $_gthread variable.
1863
1864 2016-01-13  Pedro Alves  <palves@redhat.com>
1865
1866         * NEWS: Mention "info threads -gid".
1867         * gdbthread.h (struct thread_info) <global_num>: Mention "info
1868         threads -gid".
1869         * thread.c (info_threads_command): Handle "-gid".
1870         (_initialize_thread): Adjust "info threads" help string to mention
1871         -gid.
1872
1873 2016-01-13  Pedro Alves  <palves@redhat.com>
1874
1875         * NEWS: Mention InferiorThread.global_num.
1876         * python/py-infthread.c (thpy_get_global_num): New function.
1877         (thread_object_getset): Register "global_num".
1878
1879 2016-01-13  Pedro Alves  <palves@redhat.com>
1880
1881         * NEWS: Mention that thread IDs are now per inferior and global
1882         thread IDs.
1883         * Makefile.in (SFILES): Add tid-parse.c.
1884         (COMMON_OBS): Add tid-parse.o.
1885         (HFILES_NO_SRCDIR): Add tid-parse.h.
1886         * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
1887         * breakpoint.c (insert_breakpoint_locations)
1888         (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
1889         (print_one_breakpoint_location, set_longjmp_breakpoint)
1890         (check_longjmp_breakpoint_for_call_dummy)
1891         (set_momentary_breakpoint): Adjust to use global IDs.
1892         (find_condition_and_thread, watch_command_1): Use parse_thread_id.
1893         (until_break_command, longjmp_bkpt_dtor)
1894         (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
1895         to use global IDs.
1896         * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
1897         ptid_to_global_thread_id.
1898         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
1899         * gdbthread.h (struct thread_info): Rename field 'num' to
1900         'global_num.  Add new fields 'per_inf_num' and 'inf'.
1901         (thread_id_to_pid): Rename thread_id_to_pid to
1902         global_thread_id_to_ptid.
1903         (pid_to_thread_id): Rename to ...
1904         (ptid_to_global_thread_id): ... this.
1905         (valid_thread_id): Rename to ...
1906         (valid_global_thread_id): ... this.
1907         (find_thread_id): Rename to ...
1908         (find_thread_global_id): ... this.
1909         (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
1910         (print_thread_info): Add comment.
1911         * tid-parse.h: New file.
1912         * tid-parse.c: New file.
1913         * infcmd.c (step_command_fsm_prepare)
1914         (step_command_fsm_should_stop): Adjust to use the global thread
1915         ID.
1916         (until_next_command, until_next_command)
1917         (finish_command_fsm_should_stop): Adjust to use the global thread
1918         ID.
1919         (attach_post_wait): Adjust to check the inferior number too.
1920         * inferior.h (struct inferior) <highest_thread_num>: New field.
1921         * infrun.c (handle_signal_stop)
1922         (insert_exception_resume_breakpoint)
1923         (insert_exception_resume_from_probe): Adjust to use the global
1924         thread ID.
1925         * record-btrace.c (record_btrace_open): Use global thread IDs.
1926         * remote.c (process_initial_stop_replies): Also consider the
1927         inferior number.
1928         * target.c (target_pre_inferior): Clear the inferior's highest
1929         thread num.
1930         * thread.c (clear_thread_inferior_resources): Adjust to use the
1931         global thread ID.
1932         (new_thread): New inferior parameter.  Adjust to use it.  Set both
1933         the thread's global ID and the thread's per-inferior ID.
1934         (add_thread_silent): Adjust.
1935         (find_thread_global_id): New.
1936         (find_thread_id): Make static.  Adjust to rename.
1937         (valid_thread_id): Rename to ...
1938         (valid_global_thread_id): ... this.
1939         (pid_to_thread_id): Rename to ...
1940         (ptid_to_global_thread_id): ... this.
1941         (thread_id_to_pid): Rename to ...
1942         (global_thread_id_to_ptid): ... this.  Adjust.
1943         (first_thread_of_process): Adjust.
1944         (do_captured_list_thread_ids): Adjust to use global thread IDs.
1945         (should_print_thread): New function.
1946         (print_thread_info): Rename to ...
1947         (print_thread_info_1): ... this, and add new show_global_ids
1948         parameter.  Handle it.  Iterate over inferiors.
1949         (print_thread_info): Reimplement as wrapper around
1950         print_thread_info_1.
1951         (show_inferior_qualified_tids): New function.
1952         (print_thread_id): Use it.
1953         (tp_array_compar): Compare inferior numbers too.
1954         (thread_apply_command): Use tid_range_parser.
1955         (do_captured_thread_select): Use parse_thread_id.
1956         (thread_id_make_value): Adjust.
1957         (_initialize_thread): Adjust "info threads" help string.
1958         * varobj.c (struct varobj_root): Update comment.
1959         (varobj_create): Adjust to use global thread IDs.
1960         (value_of_root_1): Adjust to use global_thread_id_to_ptid.
1961         * windows-tdep.c (display_tib): No longer accept an argument.
1962         * cli/cli-utils.c (get_number_trailer): Make extern.
1963         * cli/cli-utils.h (get_number_trailer): Declare.
1964         (get_number_const): Adjust documentation.
1965         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
1966         thread IDs.
1967         * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1968         (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
1969         * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
1970         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
1971         Likewise.
1972         * python/py-breakpoint.c (bppy_set_thread): Likewise.
1973         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
1974         * python/py-infthread.c (thpy_get_num): Add comment and return the
1975         per-inferior thread ID.
1976         (thread_object_getset): Update comment of "num".
1977
1978 2016-01-13  Pedro Alves  <palves@redhat.com>
1979
1980         * breakpoint.c (remove_threaded_breakpoints)
1981         (print_one_breakpoint_location): Use print_thread_id.
1982         * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
1983         (btrace_fetch, btrace_clear): Use print_thread_id.
1984         * common/print-utils.c (CELLSIZE): Delete.
1985         (get_cell): Rename to ...
1986         (get_print_cell): ... this and made extern.  Adjust call callers.
1987         Adjust to use PRINT_CELL_SIZE.
1988         * common/print-utils.h (get_print_cell): Declare.
1989         (PRINT_CELL_SIZE): New.
1990         * gdbthread.h (print_thread_id): Declare.
1991         * infcmd.c (signal_command): Use print_thread_id.
1992         * inferior.c (print_inferior): Use print_thread_id.
1993         * infrun.c (handle_signal_stop)
1994         (insert_exception_resume_breakpoint)
1995         (insert_exception_resume_from_probe)
1996         (print_signal_received_reason): Use print_thread_id.
1997         * record-btrace.c (record_btrace_info)
1998         (record_btrace_resume_thread, record_btrace_cancel_resume)
1999         (record_btrace_step_thread, record_btrace_wait): Use
2000         print_thread_id.
2001         * thread.c (thread_apply_all_command): Use print_thread_id.
2002         (print_thread_id): New function.
2003         (thread_apply_command): Use print_thread_id.
2004         (thread_command, thread_find_command, do_captured_thread_select):
2005         Use print_thread_id.
2006
2007 2016-01-13  Pedro Alves  <palves@redhat.com>
2008
2009         * NEWS: Mention InferiorThread.inferior.
2010         * python/py-infthread.c (thpy_get_inferior): New.
2011         (thread_object_getset): Register "inferior".
2012
2013 2016-01-13  Pedro Alves  <palves@redhat.com>
2014
2015         * NEWS: Mention $_inferior.
2016         * inferior.c (inferior_id_make_value): New.
2017         (inferior_funcs): New.
2018         (_initialize_inferior): Create $_inferior variable.
2019
2020 2016-01-13  Pedro Alves  <palves@redhat.com>
2021
2022         PR breakpoints/19388
2023         * frame.c (get_current_frame): Use validate_registers_access.
2024         * gdbthread.h (validate_registers_access): Declare.
2025         * infrun.c (validate_siginfo_access): Delete.
2026         (siginfo_value_read, siginfo_value_write): Use
2027         validate_registers_access.
2028         * thread.c (validate_registers_access): New function.
2029
2030 2016-01-12  Josh Stone  <jistone@redhat.com>
2031             Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2032
2033         * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
2034         syscall_entry and syscall_return stop reasons.  Mention GDB
2035         support for remote catch syscall.
2036         * remote.c (PACKET_QCatchSyscalls): New enum.
2037         (remote_set_syscall_catchpoint): New function.
2038         (remote_protocol_features): New element for QCatchSyscalls.
2039         (remote_parse_stop_reply): Parse syscall_entry/return stops.
2040         (init_remote_ops): Install remote_set_syscall_catchpoint.
2041         (_initialize_remote): Config QCatchSyscalls.
2042         * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
2043
2044 2016-01-12  Yao Qi  <yao.qi@linaro.org>
2045
2046         * nat/linux-ptrace.c (linux_child_function): Cast child_stack
2047         to gdb_byte * and pass to linux_fork_to_function.
2048
2049 2016-01-12  Yao Qi  <yao.qi@linaro.org>
2050
2051         * nat/linux-ptrace.c (linux_fork_to_function): Change type
2052         of argument 'function'.
2053         (linux_grandchild_function): Change return type to 'int'.
2054         Change child_stack's type to 'void *'.
2055         (linux_child_function): Likewise.
2056
2057 2016-01-12  Pedro Alves  <palves@redhat.com>
2058
2059         Remove use of the registered trademark symbol throughout.
2060
2061 2016-01-12  Thomas Schwinge  <thomas@codesourcery.com>
2062
2063         * reply_mig_hack.awk: Rewrite one regular expression.
2064
2065 2016-01-11  Mike Frysinger  <vapier@gentoo.org>
2066
2067         * acinclude.m4: Include new warning.m4 file.
2068         * configure: Regenerated.
2069         * configure.ac: Move all warning logic ...
2070         * warning.m4: ... here.
2071
2072 2016-01-08  Yao Qi  <yao.qi@linaro.org>
2073
2074         * extension.c: Include target.h.
2075         (set_active_ext_lang): Only call install_gdb_sigint_handler,
2076         check_quit_flag, and set_quit_flag if target_terminal_is_ours
2077         returns false.
2078         (restore_active_ext_lang): Likewise.
2079         * target.c (target_terminal_is_ours): New function.
2080         * target.h (target_terminal_is_ours): Declare.
2081
2082 2016-01-07  Maciej W. Rozycki  <macro@imgtec.com>
2083
2084         * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
2085         to `err' in the little-endian leg.
2086
2087 2016-01-06  Yao Qi  <yao.qi@linaro.org>
2088
2089         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
2090         lines below.
2091         (thumb_get_next_pcs_raw): Make it static.
2092         (arm_get_next_pcs_raw): Likewise.
2093         * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
2094         declaration.
2095         (arm_get_next_pcs_raw): Likewise.
2096
2097 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
2098
2099         * version.in: Change cvs to git.
2100
2101 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
2102
2103         * configure.tgt (score-*-*): Delete gdb_sim assignment.
2104
2105 2016-01-05  Pedro Alves  <palves@redhat.com>
2106
2107         PR sim/13418
2108         * configure.ac: Define WITH_PPC_SIM when linking in the sim and
2109         the target is powerpc*.
2110         * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
2111         of WITH_SIM.
2112         * configure: Regenerate.
2113         * config.in: Regenerate.
2114
2115 2016-01-04  Markus Metzger  <markus.t.metzger@intel.com>
2116
2117         * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
2118
2119 2016-01-02  Mike Frysinger  <vapier@gentoo.org>
2120
2121         * configure.tgt (powerpc*-*-*): Delete test call and
2122         always assign gdb_sim.
2123
2124 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
2125
2126         Update year range in copyright notice of all files.
2127
2128 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
2129
2130         * top.c (print_gdb_version): Change copyright year in version
2131         message.
2132
2133 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
2134
2135         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
2136
2137 For older changes see ChangeLog-2015.
2138 \f
2139 Local Variables:
2140 mode: change-log
2141 left-margin: 8
2142 fill-column: 74
2143 version-control: never
2144 coding: utf-8
2145 End: