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