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