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