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