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