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