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