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