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