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