btrace: improve stepping debugging
[external/binutils.git] / gdb / ChangeLog
1 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2
3         * record-btrace.c (btrace_thread_flag_to_str)
4         (record_btrace_cancel_resume): New.
5         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
6         (record_btrace_resume): Print execution direction.
7         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
8         (record_btrace_wait): Call record_btrace_cancel_resume.
9
10 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
11
12         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
13         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
14         (record_btrace_find_thread_to_move): Also accept threads that have
15         BTHR_STOP set.
16         (btrace_step_stopped_on_request, record_btrace_stop): New.
17         (record_btrace_step_thread): Support BTHR_STOP.
18         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
19         (init_record_btrace_ops): Initialize to_stop.
20
21 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
22
23         * record-btrace.c (record_btrace_wait): Replace non_stop check with
24         target_is_non_stop_p ().
25
26 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
27
28         * ada-typeprint.c (print_array_type): Do not describe arrays as
29         packed when they embed dynamic elements.
30
31 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
32
33         * symtab.h (address_class): Document that TLS variables
34         are handled by LOC_UNRESOLVED.
35         * findvar.c (default_read_var_value): Don't relocate TLS variables.
36         * printcmd.c (address_info): Don't relocate TLS variables.
37
38 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
39
40         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
41         (decode_adrp): Likewise.
42         (decode_b): Likewise.
43         (decode_bcond): Likewise.
44         (decode_br): Likewise.
45         (decode_cb): Likewise.
46         (decode_eret): Likewise.
47         (decode_movz): Likewise.
48         (decode_orr_shifted_register_x): Likewise.
49         (decode_ret): Likewise.
50         (decode_stp_offset): Likewise.
51         (decode_stp_offset_wb): Likewise.
52         (decode_stur): Likewise.
53         (decode_tb): Likewise.
54         (aarch64_analyze_prologue): Likewise.
55         (pass_in_x): Likewise.
56         (pass_in_v): Likewise.
57         (pass_on_stack): Likewise.
58         (aarch64_push_dummy_call): Likewise.
59         (aarch64_extract_return_value): Likewise.
60         (aarch64_store_return_value): Likewise.
61         (aarch64_return_value): Likewise.
62         (aarch64_record_asimd_load_store): Likewise.
63         (aarch64_record_load_store): Likewise.
64         (aarch64_record_data_proc_simd_fp): Likewise.
65
66 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
67
68         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
69         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
70         (ppc64_skip_trampoline_code_1): ... here.
71         (ppc64_skip_trampoline_code): New wrapper function.
72         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
73
74 2015-09-15  Yao Qi  <yao.qi@linaro.org>
75
76         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
77         function.
78         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
79         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
80         if target_can_do_single_step returns 1.
81         * remote.c (struct vCont_action_support) <s, S>: New fields.
82         (PACKET_vContSupported): New enum.
83         (remote_protocol_features): New element for vContSupported.
84         (remote_query_supported): Append "vContSupported+".
85         (remote_vcont_probe): Remove support_s and support_S, use
86         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
87         vCont packet if c and C actions are not supported.
88         (remote_can_do_single_step): New function.
89         (init_remote_ops): Install it to to_can_do_single_step.
90         (_initialize_remote): Call add_packet_config_cmd.
91         * target.h (struct target_ops) <to_can_do_single_step>: New field.
92         (target_can_do_single_step): New macro.
93         * target-delegates.c: Re-generated.
94
95 2015-09-15  Yao Qi  <yao.qi@linaro.org>
96
97         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
98         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
99         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
100         New function.
101         (aarch64_siginfo_from_compat_siginfo): New function.
102         * nat/aarch64-linux.h: Include signal.h.
103         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
104         (compat_timer_t, compat_clock_t): Likewise.
105         (struct compat_timeval): New.
106         (union compat_sigval): New.
107         (struct compat_siginfo): New.
108         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
109         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
110         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
111         (cpt_si_band, cpt_si_fd): Likewise.
112
113 2015-09-14  Pedro Alves  <palves@redhat.com>
114
115         * infrun.c (current_stop_id): New global.
116         (get_stop_id, new_stop_id): New functions.
117         (fetch_inferior_event): Handle normal_stop proceeding the target.
118         (struct stop_context): New.
119         (save_stop_context, release_stop_context_cleanup)
120         (stop_context_changed): New functions.
121         (normal_stop): Return true if the hook-stop changes the stop
122         context.
123         * infrun.h (get_stop_id): Declare.
124         (normal_stop): Now returns int.  Add documentation.
125
126 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
127
128         * ada-lang.c (ada_value_ptr_subscript): Update the heading
129         comment.  Handle packed arrays.
130
131 2015-09-14  Pedro Alves  <palves@redhat.com>
132
133         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
134         mention of maint set/show target-non-stop.
135
136 2015-09-11  Don Breazeal  <donb@codesourcery.com>
137
138         * NEWS: Announce new remote packets for the exec-events
139         feature and the exec-events feature and associated commands.
140
141 2015-09-11  Don Breazeal  <donb@codesourcery.com>
142
143         * remote.c (remote_exec_event_p): New function.
144         (remote_insert_exec_catchpoint): New function.
145         (remote_remove_exec_catchpoint): New function.
146         (init_extended_remote_ops): Initialize extended_remote_ops
147         members to_insert_exec_catchpoint and
148         to_remove_exec_catchpoint.
149
150 2015-09-11  Don Breazeal  <donb@codesourcery.com>
151             Luis Machado  <lgustavo@codesourcery.com>
152
153         * infrun.c (follow_exec): Use process-style ptid for
154         exec message.  Call add_inferior_with_spaces and
155         target_follow_exec.
156         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
157         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
158         * remote.c (remote_pspace_data): New static variable.
159         (remote_pspace_data_cleanup): New function.
160         (get_remote_exec_file): New function.
161         (set_remote_exec_file_1): New function.
162         (set_remote_exec_file): New function.
163         (show_remote_exec_file): New function.
164         (remote_exec_file): Delete static variable.
165         (anonymous enum) <PACKET_exec_event_feature>: New
166         enumeration constant.
167         (remote_protocol_features): Add entry for exec-events feature.
168         (remote_query_supported): Add client side of qSupported query
169         for exec-events feature.
170         (remote_follow_exec): New function.
171         (remote_parse_stop_reply): Handle 'exec' stop reason.
172         (extended_remote_run, extended_remote_create_inferior): Call
173         get_remote_exec_file and set_remote_exec_file_1.
174         (init_extended_remote_ops) <to_follow_exec>: Initialize new
175         member.
176         (_initialize_remote): Call
177         register_program_space_data_with_cleanup.  Call
178         add_packet_config_cmd for remote exec-events feature.
179         Modify call to add_setshow_string_noescape_cmd for exec-file
180         to use new functions set_remote_exec_file and
181         show_remote_exec_file.
182         * target-debug.h, target-delegates.c: Regenerated.
183         * target.c (target_follow_exec): New function.
184         * target.h (struct target_ops) <to_follow_exec>: New member.
185         (target_follow_exec): Declare new function.
186
187 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
188
189         * aarch64-tdep.c (decode_cb): Move up comment describing the
190         encoding.
191         (decode_tb): Fix a typo in comment above the function.  Move up
192         comment describing the encoding.
193
194 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
195
196         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
197
198 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
199
200         PR gdb/18947
201         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
202         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
203
204 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
205
206         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
207         operations.
208
209 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
210
211         * ada-lang.c (ada_search_struct_field): Constify parameters
212         and/or variables..
213         (xget_renaming_scope): Likewise.
214         (ada_is_redundant_range_encoding): Likewise.
215         (scan_discrim_bound): Likewise.
216         (to_fixed_range_type): Likewise.
217
218 2015-09-10  Yao Qi  <yao.qi@linaro.org>
219
220         * breakpoint.c (download_tracepoint_locations): New local
221         can_download_tracepoint.  Check the result of
222         target_can_download_tracepoint and save it in
223         can_download_tracepoint if there are tracepoints to download.
224         * linux-nat.h (enum tribool): Move it to ...
225         * common/common-types.h: ... here.
226
227 2015-09-09  Pedro Alves  <palves@redhat.com>
228
229         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
230         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
231
232 2015-09-09  Pedro Alves  <palves@redhat.com>
233
234         * continuations.c (add_continuation, restore_thread_cleanup)
235         (do_all_continuations_ptid, do_all_continuations_thread_callback)
236         (do_all_continuations_thread, do_all_continuations)
237         (discard_all_continuations_thread_callback)
238         (discard_all_continuations_thread, discard_all_continuations)
239         (add_intermediate_continuation)
240         (do_all_intermediate_continuations_thread_callback)
241         (do_all_intermediate_continuations_thread)
242         (do_all_intermediate_continuations)
243         (discard_all_intermediate_continuations_thread_callback)
244         (discard_all_intermediate_continuations_thread)
245         (discard_all_intermediate_continuations): Delete.
246         * continuations.h (add_continuation, do_all_continuations)
247         (do_all_continuations_thread, discard_all_continuations)
248         (discard_all_continuations_thread, add_intermediate_continuation)
249         (do_all_intermediate_continuations)
250         (do_all_intermediate_continuations_thread)
251         (discard_all_intermediate_continuations)
252         (discard_all_intermediate_continuations_thread): Delete
253         declarations.
254         * event-top.c (stdin_event_handler): Delete references to
255         continuations.
256         * gdbthread.h (struct thread_info): Delete continuations and
257         intermediate_continuations fields.
258         * inf-loop.c (inferior_event_handler): Remove references to
259         continuations.
260         * infrun.c (infrun_thread_stop_requested_callback): Remove
261         references to continuations.
262         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
263         * thread.c: Don't include "continuations.h".
264         (clear_thread_inferior_resources): Remove references to
265         continuations.
266
267 2015-09-09  Pedro Alves  <palves@redhat.com>
268
269         * infcall.c (struct dummy_frame_context_saver): Delete.
270         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
271         (dummy_frame_context_saver_drop)
272         (dummy_frame_context_saver_cleanup)
273         (dummy_frame_context_saver_get_regs)
274         (dummy_frame_context_saver_setup): Delete.
275         * infcall.h (dummy_frame_context_saver_drop)
276         (dummy_frame_context_saver_cleanup)
277         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
278         Delete.
279         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
280         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
281         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
282
283 2015-09-09  Pedro Alves  <palves@redhat.com>
284
285         * breakpoint.c: Include "thread-fsm.h".
286         (struct until_break_command_continuation_args): Delete.
287         (struct until_break_fsm): New.
288         (until_break_fsm_ops): New global.
289         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
290         (until_break_command_continuation): Delete.
291         (until_break_fsm_clean_up): New function.
292         (until_break_fsm_async_reply_reason): New function.
293         (until_break_command): Adjust to create an until_break_fsm instead
294         of a continuation.
295         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
296         here.
297         * infcmd.c (struct until_next_fsm): New.
298         (until_next_fsm_ops): New global.
299         (new_until_next_fsm, until_next_fsm_should_stop): New function.
300         (until_next_continuation): Delete.
301         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
302         functions.
303         (until_next_command): Adjust to create a new until_next_fsm
304         instead of a continuation.
305
306 2015-09-09  Pedro Alves  <palves@redhat.com>
307
308         * infcall.c: Include thread_fsm.h.
309         (struct call_return_meta_info): New.
310         (get_call_return_value): New function, factored out from
311         call_function_by_hand_dummy.
312         (struct call_thread_fsm): New.
313         (call_thread_fsm_ops): New global.
314         (new_call_thread_fsm, call_thread_fsm_should_stop)
315         (call_thread_fsm_should_notify_stop): New functions.
316         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
317         the thread.
318         (call_function_by_hand_dummy): Create a new call_thread_fsm
319         instance, associate it with the thread, and wait for the FSM to
320         finish.  If finished successfully, fetch the function's result
321         value out of the FSM.
322         * infrun.c (fetch_inferior_event): If the FSM says the stop
323         shouldn't be notified, don't call normal_stop.
324         (maybe_remove_breakpoints): New function, factored out from ...
325         (normal_stop): ... here.  Simplify.
326         * infrun.h (maybe_remove_breakpoints): Declare.
327         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
328         (thread-fsm.h) <struct thread_fsm_ops>: New field.
329         (thread_fsm_should_notify_stop): Declare.
330
331 2015-09-09  Pedro Alves  <palves@redhat.com>
332
333         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
334         * breakpoint.c (handle_jit_event): Print debug output.
335         (bpstat_what): Split event callback handling to ...
336         (bpstat_run_callbacks): ... this new function.
337         (momentary_bkpt_print_it): No longer handle bp_finish here.
338         * breakpoint.h (bpstat_run_callbacks): Declare.
339         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
340         <thread_fsm>: New field.
341         (thread_cancel_execution_command): Declare.
342         * infcmd.c: Include thread-fsm.h.
343         (struct step_command_fsm): New.
344         (step_command_fsm_ops): New global.
345         (new_step_command_fsm, step_command_fsm_prepare): New functions.
346         (step_1): Adjust to use step_command_fsm_prepare and
347         prepare_one_step.
348         (struct step_1_continuation_args): Delete.
349         (step_1_continuation): Delete.
350         (step_command_fsm_should_stop): New function.
351         (step_once): Delete.
352         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
353         (prepare_one_step): New function, based on step_once.
354         (until_next_command): Remove step_multi reference.
355         (struct return_value_info): New.
356         (print_return_value): Rename to ...
357         (print_return_value_1): ... this.  New struct return_value_info
358         parameter.  Adjust.
359         (print_return_value): Reimplement as wrapper around
360         print_return_value_1.
361         (struct finish_command_fsm): New.
362         (finish_command_continuation): Delete.
363         (finish_command_fsm_ops): New global.
364         (new_finish_command_fsm, finish_command_fsm_should_stop): New
365         functions.
366         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
367         New.
368         (finish_command_continuation_free_arg): Delete.
369         (finish_command_fsm_async_reply_reason): New.
370         (finish_backward, finish_forward): Change symbol parameter to a
371         finish_command_fsm.  Adjust.
372         (finish_command): Create a finish_command_fsm.  Adjust.
373         * infrun.c: Include "thread-fsm.h".
374         (clear_proceed_status_thread): Delete the thread's FSM.
375         (infrun_thread_stop_requested_callback): Cancel the thread's
376         execution command.
377         (clean_up_just_stopped_threads_fsms): New function.
378         (fetch_inferior_event): Handle the event_thread's should_stop
379         method saying the command isn't done yet.
380         (process_event_stop_test): Run breakpoint callbacks here.
381         (print_stop_event): Rename to ...
382         (print_stop_location): ... this.
383         (restore_current_uiout_cleanup): New function.
384         (print_stop_event): Reimplement.
385         (normal_stop): No longer notify the end_stepping_range observers
386         here handle "step N" nor "finish" here.  No longer call
387         print_stop_event here.
388         * infrun.h (struct return_value_info): Forward declare.
389         (print_return_value): Declare.
390         (print_stop_event): Change prototype.
391         * thread-fsm.c: New file.
392         * thread-fsm.h: New file.
393         * thread.c: Include "thread-fsm.h".
394         (thread_cancel_execution_command): New function.
395         (clear_thread_inferior_resources): Call it.
396         * cli/cli-interp.c (cli_on_normal_stop): New function.
397         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
398         observer.
399         * mi/mi-interp.c: Include "thread-fsm.h".
400         (restore_current_uiout_cleanup): Delete.
401         (mi_on_normal_stop): If the thread has an FSM associated, and it
402         finished, ask it for the async-reply-reason to print.  Always call
403         print_stop_event here, regardless of the top-level interpreter.
404         Check bpstat_what to tell whether an asynchronous breakpoint hit
405         triggered.
406         * tui/tui-interp.c (tui_on_normal_stop): New function.
407         (tui_init): Install tui_on_normal_stop as normal_stop observer.
408
409 2015-09-09  Pedro Alves  <palves@redhat.com>
410
411         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
412         check whether the target can async.
413         * inf-loop.c (inferior_event_handler): Only call target_async if
414         the target can async.
415         * infcall.c: Include top.h and interps.h.
416         (run_inferior_call): For the interpreter to sync mode while
417         running the infcall.  Call wait_sync_command_done instead of
418         wait_for_inferior plus normal_stop.
419         * infcmd.c (prepare_execution_command): Don't check whether the
420         target can async when running in the foreground.
421         (step_1): Delete synchronous case handling.
422         (step_once): Always install a continuation, even in sync mode.
423         (until_next_command, finish_forward): Don't check whether the
424         target can async.
425         (attach_command_post_wait, notice_new_inferior): Always install a
426         continuation, even in sync mode.
427         * infrun.c (mark_infrun_async_event_handler): New function.
428         (proceed): In sync mode, mark infrun's event source instead of
429         waiting for events here.
430         (fetch_inferior_event): If the target can't async, do a blocking
431         wait.
432         (prepare_to_wait): In sync mode, mark infrun's event source.
433         (infrun_async_inferior_event_handler): No longer bail out if the
434         target can't async.
435         * infrun.h (mark_infrun_async_event_handler): New declaration.
436         * linux-nat.c (linux_nat_wait_1): Remove calls to
437         set_sigint_trap/clear_sigint_trap.
438         (linux_nat_terminal_inferior): No longer check whether the target
439         can async.
440         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
441         comment.
442         (mi_execute_command_input_handler): No longer check whether the
443         target is async.  Update and simplify comment.
444         * target.c (default_target_wait): New function.
445         * target.h (struct target_ops) <to_wait>: Now defaults to
446         default_target_wait.
447         (default_target_wait): Declare.
448         * top.c (wait_sync_command_done): New function, factored out from
449         ...
450         (maybe_wait_sync_command_done): ... this.
451         * top.h (wait_sync_command_done): Declare.
452         * target-delegates.c: Regenerate.
453
454 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
455
456         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
457         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
458         Remove include of sys/utsname.h.
459         (linux_determine_kernel_ptr_bits): Remove.
460         (linux_determine_kernel_start): New.
461         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
462         Update check.
463         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
464         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
465         initialization.
466         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
467         assignment.
468
469 2015-09-07  Pedro Alves  <palves@redhat.com>
470
471         * guile/guile-internal.h (as_a_scm_t_subr): New.
472         * guile/guile.c (misc_guile_functions): Use it.
473         * guile/scm-arch.c (arch_functions): Use it.
474         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
475         Use it.
476         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
477         * guile/scm-cmd.c (command_functions): Use it.
478         * guile/scm-disasm.c (disasm_functions): Use it.
479         * guile/scm-exception.c (exception_functions)
480         (private_exception_functions): Use it.
481         * guile/scm-frame.c (frame_functions)
482         * guile/scm-gsmob.c (gsmob_functions): Use it.
483         * guile/scm-iterator.c (iterator_functions): Use it.
484         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
485         * guile/scm-math.c (math_functions): Use it.
486         * guile/scm-objfile.c (objfile_functions): Use it.
487         * guile/scm-param.c (parameter_functions): Use it.
488         * guile/scm-ports.c (port_functions, private_port_functions): Use
489         it.
490         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
491         * guile/scm-progspace.c (pspace_functions): Use it.
492         * guile/scm-string.c (string_functions): Use it.
493         * guile/scm-symbol.c (symbol_functions): Use it.
494         * guile/scm-symtab.c (symtab_functions): Use it.
495         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
496         it.
497         * guile/scm-value.c (value_functions): Use it.
498
499 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
500
501         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
502         (tui_next_win): Likewise.
503         (tui_prev_win): Likewise.
504         (tui_partial_win_by_name): Likewise.
505         (tui_init_generic_part): Likewise.
506         (init_content_element): Likewise.
507         (tui_del_window): Likewise.
508         (tui_free_window): Likewise.
509         (tui_del_data_windows): Likewise.
510         (tui_free_data_content): Likewise.
511         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
512         * tui/tui-regs.c (tui_show_register_group): Likewise.
513         * tui/tui-win.c (tui_resize_all): Likewise.
514         (tui_set_focus): Likewise.
515         (tui_set_win_height): Likewise.
516         (make_invisible_and_set_new_height): Likewise.
517         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
518         * tui/tui-wingeneral.c (make_visible): Likewise.
519
520 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
521
522         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
523
524 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
525
526         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
527         pointer.
528         * dbxread.c (dbx_end_psymtab): Likewise.
529         * gnu-nat.c (gnu_write_inferior): Likewise.
530         * mdebugread.c (cross_ref): Likewise.
531         * p-valprint.c (pascal_val_print): Likewise.
532         * xcoffread.c (xcoff_end_psymtab): Likewise.
533
534 2015-09-04  Yao Qi  <yao.qi@linaro.org>
535
536         * NEWS: Mention the aarch64 multi-arch debugging support.
537
538 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
539
540         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
541         type instead of a TYPE_CODE_INT one for the string_char_type
542         and the ada_primitive_type_char types.
543
544 2015-09-03  Yao Qi  <yao.qi@linaro.org>
545
546         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
547         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
548         aarch64_linux_region_ok_for_watchpoint.
549         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
550         New function.
551         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
552         Declare it.
553
554 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
555
556         * gdb_obstack.h (obstack_strdup): Declare.
557         * gdb_obstack.c (obstack_strdup): Define.
558         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
559         * gdbarch.c: Regenerate.
560         * gdbarch.h: Regenerate.
561         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
562
563 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
564
565         * gdbtypes.c (copy_type_recursive): Update documentation.
566
567 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
568
569         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
570         as zero.
571
572 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
573
574         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
575
576 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
577
578         * solib-svr4.c (solib_event_probe_action): Call
579         get_probe_argument_count using TRY...CATCH.
580         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
581
582 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
583
584         * probe.h (struct probe_ops) <get_probe_argument_count,
585         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
586         the comment that the function can throw an exception.
587         (get_probe_argument_count): Likewise.
588         (evaluate_probe_argument): Likewise.
589         * stap-probe.c (stap_get_opcode): Call error instead of
590         internal_error.
591         (stap_get_expected_argument_type): Likewise.  Add argument
592         'probe'.  Improve error message by mentioning the probe's name.
593         (stap_parse_probe_arguments): Adjust call to
594         stap_get_expected_argument_type.
595         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
596         not zero.  Call internal_error if GDB requests an argument but the
597         probe has no arguments.
598
599 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
600
601         * ada-lang.c (ada_resolve_function): Do not ask the user what
602         match to use when in completion mode.
603
604 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
605
606         * tui/tui-data.c (tui_win_name): Make local variable const, remove
607         cast of NULL.
608
609 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
610
611         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
612         call_abi using XSHAL_ABI macro.
613
614 2015-08-29  Doug Evans  <xdje42@gmail.com>
615
616         * symtab.h (struct symbol): Tweak comment.
617
618 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
619
620         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
621         gdbarch obstack instead of on the heap.  Update commentary
622         accordingly.
623
624 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
625
626         GDB 7.10 released.
627
628 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
629
630         * NEWS: Update entry about non-8-bits addressable memory.
631
632 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
633
634         Revert:
635         2014-11-06  Doug Evans  <xdje42@gmail.com>
636         * solib.c (solib_global_lookup): Fetch arch from objfile,
637         not target_gdbarch.
638
639 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
640
641         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
642         attempt to relocate a TLS variable offset.
643
644 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
645
646         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
647         registered yet.  Set inferior_ptid while calling target_read_memory.
648
649 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
650
651         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
652         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
653         * linux-nat.c (check_stopped_by_breakpoint): Use
654         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
655
656 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
657
658         * linux-thread-db.c (thread_db_get_thread_local_address): If the
659         thread was not yet discovered, use thread_from_lwp instead of
660         calling thread_db_find_new_threads_1.
661
662 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
663
664         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
665         statements.
666
667 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
668
669         * NEWS: Document support for non-8-bits addressable memory.
670
671 2015-08-27  Pedro Alves  <palves@redhat.com>
672
673         * configure.ac: Remove AC_TYPE_SIGNAL call.
674         * configure, config.in: Regenerate.
675
676 2015-08-27  Pedro Alves  <palves@redhat.com>
677
678         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
679         * extension-priv.h: Include signal.h.
680         (struct signal_handler) <handler>: Change type to sighandler_t.
681         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
682         * inflow.c (sigint_ours, sigquit_ours): Change type to
683         sighandler_t.
684         (child_terminal_inferior): Remove casts.
685         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
686         (osig): Change type to sighandler_t.
687         * nto-procfs.c (ofunc): Change type to sighandler_t.
688         (procfs_wait): Remove casts.
689         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
690         * remote-sim.c (gdbsim_wait): Use sighandler_t.
691         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
692
693 2015-08-27  Pedro Alves  <palves@redhat.com>
694
695         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
696         * gnulib/aclocal.m4: Renegerate.
697         * gnulib/config.in: Renegerate.
698         * gnulib/configure: Renegerate.
699         * gnulib/import/Makefile.am: Update.
700         * gnulib/import/Makefile.in: Regenerate.
701         * gnulib/import/m4/gnulib-cache.m4: Update.
702         * gnulib/import/m4/gnulib-comp.m4: Update.
703         * gnulib/import/m4/signal_h.m4: New file.
704         * gnulib/import/signal.in.h: New file.
705
706 2015-08-27  Pedro Alves  <palves@redhat.com>
707
708         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
709         (MIN_MEMORY_PACKET_SIZE): New.
710         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
711         (get_memory_packet_size): Adjust.  No longer limit the max packet
712         size.
713         (set_memory_packet_size): Adjust, and remove dead code.
714         (remote_check_symbols): Use xmalloc and a cleanup instead of
715         alloca.
716         (remote_packet_size): No longer cap the packet size.
717         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
718
719 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
720
721         * compile/compile.c (compile_to_object): Mention language in
722         error message.
723
724 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
725
726         * target.c (target_pre_inferior): Unset attach_flag.
727
728 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
729
730         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
731         * gdbarch.c: Re-generate.
732
733 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
734
735         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
736         function with the XNEW-family equivalent.
737         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
738         * ada-exp.y (write_ambiguous_var): Likewise.
739         * ada-lang.c (resolve_subexp): Likewise.
740         (user_select_syms): Likewise.
741         (assign_aggregate): Likewise.
742         (ada_evaluate_subexp): Likewise.
743         (cache_symbol): Likewise.
744         * addrmap.c (allocate_key): Likewise.
745         (addrmap_create_mutable): Likewise.
746         * aix-thread.c (sync_threadlists): Likewise.
747         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
748         (alpha_gdbarch_init): Likewise.
749         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
750         * arm-linux-nat.c (arm_linux_add_process): Likewise.
751         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
752         * arm-tdep.c (push_stack_item): Likewise.
753         (arm_displaced_step_copy_insn): Likewise.
754         (arm_gdbarch_init): Likewise.
755         (_initialize_arm_tdep): Likewise.
756         * avr-tdep.c (push_stack_item): Likewise.
757         * ax-general.c (new_agent_expr): Likewise.
758         * block.c (block_initialize_namespace): Likewise.
759         * breakpoint.c (alloc_counted_command_line): Likewise.
760         (update_dprintf_command_list): Likewise.
761         (parse_breakpoint_sals): Likewise.
762         (decode_static_tracepoint_spec): Likewise.
763         (until_break_command): Likewise.
764         (clear_command): Likewise.
765         (update_global_location_list): Likewise.
766         (get_breakpoint_objfile_data) Likewise.
767         * btrace.c (ftrace_new_function): Likewise.
768         (btrace_set_insn_history): Likewise.
769         (btrace_set_call_history): Likewise.
770         * buildsym.c (add_symbol_to_list): Likewise.
771         (record_pending_block): Likewise.
772         (start_subfile): Likewise.
773         (start_buildsym_compunit): Likewise.
774         (push_subfile): Likewise.
775         (end_symtab_get_static_block): Likewise.
776         (buildsym_init): Likewise.
777         * cli/cli-cmds.c (source_command): Likewise.
778         * cli/cli-decode.c (add_cmd): Likewise.
779         * cli/cli-script.c (build_command_line): Likewise.
780         (setup_user_args): Likewise.
781         (realloc_body_list): Likewise.
782         (process_next_line): Likewise.
783         (copy_command_lines): Likewise.
784         * cli/cli-setshow.c (do_set_command): Likewise.
785         * coff-pe-read.c (read_pe_exported_syms): Likewise.
786         * coffread.c (coff_locate_sections): Likewise.
787         (coff_symtab_read): Likewise.
788         (coff_read_struct_type): Likewise.
789         * common/cleanups.c (make_my_cleanup2): Likewise.
790         * common/common-exceptions.c (throw_it): Likewise.
791         * common/filestuff.c (make_cleanup_close): Likewise.
792         * common/format.c (parse_format_string): Likewise.
793         * common/queue.h (DEFINE_QUEUE_P): Likewise.
794         * compile/compile-object-load.c (munmap_list_add): Likewise.
795         (compile_object_load): Likewise.
796         * compile/compile-object-run.c (compile_object_run): Likewise.
797         * compile/compile.c (append_args): Likewise.
798         * corefile.c (specify_exec_file_hook): Likewise.
799         * cp-support.c (make_symbol_overload_list): Likewise.
800         * cris-tdep.c (push_stack_item): Likewise.
801         (cris_gdbarch_init): Likewise.
802         * ctf.c (ctf_trace_file_writer_new): Likewise.
803         * dbxread.c (init_header_files): Likewise.
804         (add_new_header_file): Likewise.
805         (init_bincl_list): Likewise.
806         (dbx_end_psymtab): Likewise.
807         (start_psymtab): Likewise.
808         (dbx_end_psymtab): Likewise.
809         * dcache.c (dcache_init): Likewise.
810         * dictionary.c (dict_create_hashed): Likewise.
811         (dict_create_hashed_expandable): Likewise.
812         (dict_create_linear): Likewise.
813         (dict_create_linear_expandable): Likewise.
814         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
815         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
816         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
817         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
818         (decode_frame_entry_1): Likewise.
819         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
820         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
821         * dwarf2read.c (dwarf2_has_info): Likewise.
822         (create_signatured_type_table_from_index): Likewise.
823         (dwarf2_read_index): Likewise.
824         (dw2_get_file_names_reader): Likewise.
825         (create_all_type_units): Likewise.
826         (read_cutu_die_from_dwo): Likewise.
827         (init_tu_and_read_dwo_dies): Likewise.
828         (init_cutu_and_read_dies): Likewise.
829         (create_all_comp_units): Likewise.
830         (queue_comp_unit): Likewise.
831         (inherit_abstract_dies): Likewise.
832         (read_call_site_scope): Likewise.
833         (dwarf2_add_field): Likewise.
834         (dwarf2_add_typedef): Likewise.
835         (dwarf2_add_member_fn): Likewise.
836         (attr_to_dynamic_prop): Likewise.
837         (abbrev_table_alloc_abbrev): Likewise.
838         (abbrev_table_read_table): Likewise.
839         (add_include_dir): Likewise.
840         (add_file_name): Likewise.
841         (dwarf_decode_line_header): Likewise.
842         (dwarf2_const_value_attr): Likewise.
843         (dwarf_alloc_block): Likewise.
844         (parse_macro_definition): Likewise.
845         (set_die_type): Likewise.
846         (write_psymtabs_to_index): Likewise.
847         (create_cus_from_index): Likewise.
848         (dwarf2_create_include_psymtab): Likewise.
849         (process_psymtab_comp_unit_reader): Likewise.
850         (build_type_psymtab_dependencies): Likewise.
851         (read_comp_units_from_section): Likewise.
852         (compute_compunit_symtab_includes): Likewise.
853         (create_dwo_unit_in_dwp_v1): Likewise.
854         (create_dwo_unit_in_dwp_v2): Likewise.
855         (read_func_scope): Likewise.
856         (process_structure_scope): Likewise.
857         (mark_common_block_symbol_computed): Likewise.
858         (load_partial_dies): Likewise.
859         (dwarf2_symbol_mark_computed): Likewise.
860         * elfread.c (elf_symfile_segments): Likewise.
861         (elf_read_minimal_symbols): Likewise.
862         * environ.c (make_environ): Likewise.
863         * eval.c (evaluate_subexp_standard): Likewise.
864         * event-loop.c (create_file_handler): Likewise.
865         (create_async_signal_handler): Likewise.
866         (create_async_event_handler): Likewise.
867         (create_timer): Likewise.
868         * exec.c (build_section_table): Likewise.
869         * fbsd-nat.c (fbsd_remember_child): Likewise.
870         * fork-child.c (fork_inferior): Likewise.
871         * frv-tdep.c (new_variant): Likewise.
872         * gdbarch.sh (gdbarch_alloc): Likewise.
873         (append_name): Likewise.
874         * gdbtypes.c (rank_function): Likewise.
875         (copy_type_recursive): Likewise.
876         (add_dyn_prop): Likewise.
877         * gnu-nat.c (make_proc): Likewise.
878         (make_inf): Likewise.
879         (gnu_write_inferior): Likewise.
880         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
881         (build_std_type_info_type): Likewise.
882         * guile/scm-param.c (compute_enum_list): Likewise.
883         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
884         * guile/scm-value.c (gdbscm_value_call): Likewise.
885         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
886         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
887         (read_unwind_info): Likewise.
888         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
889         * infcall.c (dummy_frame_context_saver_setup): Likewise.
890         (call_function_by_hand_dummy): Likewise.
891         * infcmd.c (step_once): Likewise.
892         (finish_forward): Likewise.
893         (attach_command): Likewise.
894         (notice_new_inferior): Likewise.
895         * inferior.c (add_inferior_silent): Likewise.
896         * infrun.c (add_displaced_stepping_state): Likewise.
897         (save_infcall_control_state): Likewise.
898         (save_inferior_ptid): Likewise.
899         (_initialize_infrun): Likewise.
900         * jit.c (bfd_open_from_target_memory): Likewise.
901         (jit_gdbarch_data_init): Likewise.
902         * language.c (add_language): Likewise.
903         * linespec.c (decode_line_2): Likewise.
904         * linux-nat.c (add_to_pid_list): Likewise.
905         (add_initial_lwp): Likewise.
906         * linux-thread-db.c (add_thread_db_info): Likewise.
907         (record_thread): Likewise.
908         (info_auto_load_libthread_db): Likewise.
909         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
910         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
911         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
912         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
913         * macrocmd.c (macro_define_command): Likewise.
914         * macroexp.c (gather_arguments): Likewise.
915         * macroscope.c (sal_macro_scope): Likewise.
916         * macrotab.c (new_macro_table): Likewise.
917         * mdebugread.c (push_parse_stack): Likewise.
918         (parse_partial_symbols): Likewise.
919         (parse_symbol): Likewise.
920         (psymtab_to_symtab_1): Likewise.
921         (new_block): Likewise.
922         (new_psymtab): Likewise.
923         (mdebug_build_psymtabs): Likewise.
924         (add_pending): Likewise.
925         (elfmdebug_build_psymtabs): Likewise.
926         * mep-tdep.c (mep_gdbarch_init): Likewise.
927         * mi/mi-main.c (mi_execute_command): Likewise.
928         * mi/mi-parse.c (mi_parse_argv): Likewise.
929         * minidebug.c (lzma_open): Likewise.
930         * minsyms.c (terminate_minimal_symbol_table): Likewise.
931         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
932         * mips-tdep.c (mips_gdbarch_init): Likewise.
933         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
934         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
935         * mt-tdep.c (mt_registers_info): Likewise.
936         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
937         * nat/linux-btrace.c (linux_enable_bts): Likewise.
938         (linux_enable_pt): Likewise.
939         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
940         (linux_xfer_osdata_processgroups): Likewise.
941         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
942         * nto-procfs.c (procfs_meminfo): Likewise.
943         * objc-lang.c (start_msglist): Likewise.
944         (selectors_info): Likewise.
945         (classes_info): Likewise.
946         (find_methods): Likewise.
947         * objfiles.c (allocate_objfile): Likewise.
948         (update_section_map): Likewise.
949         * osabi.c (gdbarch_register_osabi): Likewise.
950         (gdbarch_register_osabi_sniffer): Likewise.
951         * parse.c (start_arglist): Likewise.
952         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
953         (hwdebug_insert_point): Likewise.
954         * printcmd.c (display_command): Likewise.
955         (ui_printf): Likewise.
956         * procfs.c (create_procinfo): Likewise.
957         (load_syscalls): Likewise.
958         (proc_get_LDT_entry): Likewise.
959         (proc_update_threads): Likewise.
960         * prologue-value.c (make_pv_area): Likewise.
961         (pv_area_store): Likewise.
962         * psymtab.c (extend_psymbol_list): Likewise.
963         (init_psymbol_list): Likewise.
964         (allocate_psymtab): Likewise.
965         * python/py-inferior.c (add_thread_object): Likewise.
966         * python/py-param.c (compute_enum_values): Likewise.
967         * python/py-value.c (valpy_call): Likewise.
968         * python/py-varobj.c (py_varobj_iter_next): Likewise.
969         * python/python.c (ensure_python_env): Likewise.
970         * record-btrace.c (record_btrace_start_replaying): Likewise.
971         * record-full.c (record_full_reg_alloc): Likewise.
972         (record_full_mem_alloc): Likewise.
973         (record_full_end_alloc): Likewise.
974         (record_full_core_xfer_partial): Likewise.
975         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
976         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
977         * remote-notif.c (remote_notif_state_allocate): Likewise.
978         * remote.c (demand_private_info): Likewise.
979         (remote_notif_stop_alloc_reply): Likewise.
980         (remote_enable_btrace): Likewise.
981         * reverse.c (save_bookmark_command): Likewise.
982         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
983         * rx-tdep.c (rx_gdbarch_init): Likewise.
984         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
985         * ser-go32.c (dos_get_tty_state): Likewise.
986         (dos_copy_tty_state): Likewise.
987         * ser-mingw.c (ser_windows_open): Likewise.
988         (ser_console_wait_handle): Likewise.
989         (ser_console_get_tty_state): Likewise.
990         (make_pipe_state): Likewise.
991         (net_windows_open): Likewise.
992         * ser-unix.c (hardwire_get_tty_state): Likewise.
993         (hardwire_copy_tty_state): Likewise.
994         * solib-aix.c (solib_aix_new_lm_info): Likewise.
995         * solib-dsbt.c (dsbt_current_sos): Likewise.
996         (dsbt_relocate_main_executable): Likewise.
997         * solib-frv.c (frv_current_sos): Likewise.
998         (frv_relocate_main_executable): Likewise.
999         * solib-spu.c (spu_bfd_fopen): Likewise.
1000         * solib-svr4.c (lm_info_read): Likewise.
1001         (svr4_copy_library_list): Likewise.
1002         (svr4_default_sos): Likewise.
1003         * source.c (find_source_lines): Likewise.
1004         (line_info): Likewise.
1005         (add_substitute_path_rule): Likewise.
1006         * spu-linux-nat.c (spu_bfd_open): Likewise.
1007         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
1008         * stabsread.c (dbx_lookup_type): Likewise.
1009         (read_type): Likewise.
1010         (read_member_functions): Likewise.
1011         (read_struct_fields): Likewise.
1012         (read_baseclasses): Likewise.
1013         (read_args): Likewise.
1014         (_initialize_stabsread): Likewise.
1015         * stack.c (func_command): Likewise.
1016         * stap-probe.c (handle_stap_probe): Likewise.
1017         * symfile.c (addrs_section_sort): Likewise.
1018         (addr_info_make_relative): Likewise.
1019         (load_section_callback): Likewise.
1020         (add_symbol_file_command): Likewise.
1021         (init_filename_language_table): Likewise.
1022         * symtab.c (create_filename_seen_cache): Likewise.
1023         (sort_search_symbols_remove_dups): Likewise.
1024         (search_symbols): Likewise.
1025         * target.c (make_cleanup_restore_target_terminal): Likewise.
1026         * thread.c (new_thread): Likewise.
1027         (enable_thread_stack_temporaries): Likewise.
1028         (make_cleanup_restore_current_thread): Likewise.
1029         (thread_apply_all_command): Likewise.
1030         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
1031         * top.c (gdb_readline_wrapper): Likewise.
1032         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
1033         * tracepoint.c (trace_find_line_command): Likewise.
1034         (all_tracepoint_actions_and_cleanup): Likewise.
1035         (make_cleanup_restore_current_traceframe): Likewise.
1036         (get_uploaded_tp): Likewise.
1037         (get_uploaded_tsv): Likewise.
1038         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
1039         (tui_alloc_win_info): Likewise.
1040         (tui_alloc_content): Likewise.
1041         (tui_add_content_elements): Likewise.
1042         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
1043         (tui_set_disassem_content): Likewise.
1044         * ui-file.c (ui_file_new): Likewise.
1045         (stdio_file_new): Likewise.
1046         (tee_file_new): Likewise.
1047         * utils.c (make_cleanup_restore_integer): Likewise.
1048         (add_internal_problem_command): Likewise.
1049         * v850-tdep.c (v850_gdbarch_init): Likewise.
1050         * valops.c (find_oload_champ): Likewise.
1051         * value.c (allocate_value_lazy): Likewise.
1052         (record_latest_value): Likewise.
1053         (create_internalvar): Likewise.
1054         * varobj.c (install_variable): Likewise.
1055         (new_variable): Likewise.
1056         (new_root_variable): Likewise.
1057         (cppush): Likewise.
1058         (_initialize_varobj): Likewise.
1059         * windows-nat.c (windows_make_so): Likewise.
1060         * x86-nat.c (x86_add_process): Likewise.
1061         * xcoffread.c (arrange_linetable): Likewise.
1062         (allocate_include_entry): Likewise.
1063         (process_linenos): Likewise.
1064         (SYMBOL_DUP): Likewise.
1065         (xcoff_start_psymtab): Likewise.
1066         (xcoff_end_psymtab): Likewise.
1067         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
1068         * xtensa-tdep.c (xtensa_register_type): Likewise.
1069         * gdbarch.c: Regenerate.
1070         * gdbarch.h: Regenerate.
1071
1072 2015-08-25  Don Breazeal  <donb@codesourcery.com>
1073
1074         * infrun.c (follow_exec): Re-order operations for
1075         handling follow-exec-mode "new".
1076         (handle_inferior_event_1): Assign ecs->event_thread
1077         to the current thread.
1078         * remote.c (get_remote_arch_state): Add an assertion.
1079
1080 2015-08-26  Pedro Alves  <palves@redhat.com>
1081
1082         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
1083
1084 2015-08-25  Pedro Alves  <palves@redhat.com>
1085
1086         PR gdb/18804
1087         * defs.h (maybe_quit): Declare.
1088         (QUIT): Now calls maybe_quit.
1089         * event-loop.c (clear_async_signal_handler)
1090         (async_signal_handler_is_marked): New functions.
1091         * event-loop.h (async_signal_handler_is_marked)
1092         (clear_async_signal_handler): New declarations.
1093         * remote.c (remote_check_pending_interrupt): New function.
1094         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
1095         longer check whether the target is async.  If waiting for a stop
1096         reply, and a Ctrl-C as been sent to the target, offer to
1097         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
1098         Otherwise do not disconnect and throw a quit.
1099         (_initialize_remote): Install remote_check_pending_interrupt as
1100         to_check_pending_interrupt.
1101         * target.c (target_check_pending_interrupt): New function.
1102         * target.h (struct target_ops) <to_check_pending_interrupt>: New
1103         field.
1104         (target_check_pending_interrupt): New declaration.
1105         * utils.c (maybe_quit): New function.
1106         * target-delegates.c: Regenerate.
1107
1108 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1109
1110         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
1111         Rename local variable pid to tid, and get lwpid of lwp.  Update
1112         debug output.
1113
1114 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
1115
1116         * ada-lang.c (ada_read_var_value): Add a var_block argument
1117         and pass it to default_read_var_value.
1118         * block.c (block_static_link): New accessor.
1119         * block.h (block_static_link): Declare it.
1120         * buildsym.c (finish_block_internal): Add a static_link
1121         argument.  If there is a static link, associate it to the new
1122         block.
1123         (finish_block): Add a static link argument and pass it to
1124         finish_block_internal.
1125         (end_symtab_get_static_block): Update calls to finish_block and
1126         to finish_block_internal.
1127         (end_symtab_with_blockvector): Update call to
1128         finish_block_internal.
1129         * buildsym.h: Forward-declare struct dynamic_prop.
1130         (struct context_stack): Add a static_link field.
1131         (finish_block): Add a static link argument.
1132         * c-exp.y: Remove an obsolete comment (evaluation of variables
1133         already start from the selected frame, and now they climb *up*
1134         the call stack) and propagate the block information to the
1135         produced expression.
1136         * d-exp.y: Likewise.
1137         * f-exp.y: Likewise.
1138         * go-exp.y: Likewise.
1139         * jv-exp.y: Likewise.
1140         * m2-exp.y: Likewise.
1141         * p-exp.y: Likewise.
1142         * coffread.c (coff_symtab_read): Update calls to finish_block.
1143         * dbxread.c (process_one_symbol): Likewise.
1144         * xcoffread.c (read_xcoff_symtab): Likewise.
1145         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
1146         "sym" parameter to struct block_symbol, update its uses and pass
1147         its block to calls to read_var_value.
1148         (convert_symbol_sym): Update the calls to convert_one_symbol.
1149         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
1150         call to read_var_value.
1151         * dwarf2loc.c (block_op_get_frame_base): New.
1152         (dwarf2_block_frame_base_locexpr_funcs): Implement the
1153         get_frame_base method.
1154         (dwarf2_block_frame_base_loclist_funcs): Likewise.
1155         (dwarf2locexpr_baton_eval): Add a frame argument and use it
1156         instead of the selected frame in order to evaluate the
1157         expression.
1158         (dwarf2_evaluate_property): Add a frame argument.  Update call
1159         to dwarf2_locexpr_baton_eval to provide a frame in available and
1160         to handle the absence of address stack.
1161         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
1162         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
1163         declaration.
1164         (read_func_scope): Record any available static link description.
1165         Update call to finish_block.
1166         (read_lexical_block_scope): Update call to finish_block.
1167         * findvar.c (follow_static_link): New.
1168         (get_hosting_frame): New.
1169         (default_read_var_value): Add a var_block argument.  Use
1170         get_hosting_frame to handle non-local references.
1171         (read_var_value): Add a var_block argument and pass it to the
1172         LA_READ_VAR_VALUE method.
1173         * gdbtypes.c (resolve_dynamic_range): Update calls to
1174         dwarf2_evaluate_property.
1175         (resolve_dynamic_type_internal): Likewise.
1176         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
1177         read_var_value, passing it the block coming from symbol lookup.
1178         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
1179         read_var_value (TODO).
1180         * infcmd.c (finish_command_continuation): Update call to
1181         read_var_value, passing it the block coming from symbol lookup.
1182         * infrun.c (insert_exception_resume_breakpoint): Likewise.
1183         * language.h (struct language_defn): Add a var_block argument to
1184         the LA_READ_VAR_VALUE method.
1185         * objfiles.c (struct static_link_htab_entry): New.
1186         (static_link_htab_entry_hash): New.
1187         (static_link_htab_entry_eq): New.
1188         (objfile_register_static_link): New.
1189         (objfile_lookup_static_link): New.
1190         (free_objfile): Free the STATIC_LINKS hashed map if needed.
1191         * objfiles.h: Include hashtab.h.
1192         (struct objfile): Add a static_links field.
1193         (objfile_register_static_link): New.
1194         (objfile_lookup_static_link): New.
1195         * printcmd.c (print_variable_and_value): Update call to
1196         read_var_value.
1197         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
1198         * python/py-frame.c (frapy_read_var): Update call to
1199         read_var_value, passing it the block coming from symbol lookup.
1200         * python/py-framefilter.c (extract_sym): Add a sym_block
1201         parameter and set the pointed value to NULL (TODO).
1202         (enumerate_args): Update call to extract_sym.
1203         (enumerate_locals): Update calls to extract_sym and to
1204         read_var_value.
1205         * python/py-symbol.c (sympy_value): Update call to
1206         read_var_value (TODO).
1207         * stack.c (read_frame_local): Update call to read_var_value.
1208         (read_frame_arg): Likewise.
1209         (return_command): Likewise.
1210         * symtab.h (struct symbol_block_ops): Add a get_frame_base
1211         method.
1212         (struct symbol): Add a block field.
1213         (SYMBOL_BLOCK): New accessor.
1214         * valops.c (value_of_variable): Remove frame/block handling and
1215         pass the block argument to read_var_value, which does this job
1216         now.
1217         (value_struct_elt_for_reference): Update calls to
1218         read_var_value.
1219         (value_of_this): Pass the block found to read_var_value.
1220         * value.h (read_var_value): Add a var_block argument.
1221         (default_read_var_value): Likewise.
1222
1223 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1224
1225         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
1226         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
1227         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
1228
1229 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1230
1231         * Makefile.in (aarch64-liunx.o): New rule.
1232         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
1233         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
1234         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
1235         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
1236         extern.
1237         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
1238         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
1239         * nat/aarch64-linux.c: New file.
1240         * nat/aarch64-linux.h: New file.
1241
1242 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1243
1244         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
1245         lwp_arch_private_info and ptid_of_lwp.
1246
1247 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1248
1249         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
1250         Move it to nat/aarch64-linux-hw-point.c.
1251         (debug_reg_change_callback): Likewise.
1252         (aarch64_notify_debug_reg_change): :Likewise.
1253         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
1254         (aarch64_dr_update_callback_param): New.
1255         (debug_reg_change_callback): New function.
1256         (aarch64_notify_debug_reg_change): Likewise.
1257         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
1258         Remove the declaration.
1259
1260 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1261
1262         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
1263         Call current_lwp_ptid.
1264
1265 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1266
1267         * aarch64-linux-nat.c (debug_reg_change_callback): Use
1268         debug_printf.
1269
1270 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1271
1272         * aarch64-linux-nat.c (debug_reg_change_callback): Call
1273         ptid_get_pid rather than ptid_get_lwp.
1274
1275 2015-08-24  Pedro Alves  <palves@redhat.com>
1276
1277         * NEWS (New commands): Mention set/show remote
1278         multiprocess-extensions-packet.
1279         * remote.c (remote_query_supported): Only tell the server to use
1280         the multiprocess extensions if the user hasn't force-disabled them
1281         with "set remote multiprocess-extensions-packet off".
1282
1283 2015-08-24  Pedro Alves  <palves@redhat.com>
1284
1285         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1286         1029a8112290f6eee9d7878a391c49db42c999bd.
1287         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
1288         Regenerate.
1289         * gnulib/import/Makefile.am: Update.
1290         * gnulib/import/Makefile.in: Update.
1291         * gnulib/import/alloca.in.h: Update.
1292         * gnulib/import/basename-lgpl.c: Update.
1293         * gnulib/import/canonicalize-lgpl.c: Update.
1294         * gnulib/import/config.charset: Update.
1295         * gnulib/import/dirent.in.h: Update.
1296         * gnulib/import/dirfd.c: Update.
1297         * gnulib/import/dirname-lgpl.c: Update.
1298         * gnulib/import/dirname.h: Update.
1299         * gnulib/import/dosname.h: Update.
1300         * gnulib/import/errno.in.h: Update.
1301         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
1302         * gnulib/import/extra/snippet/c++defs.h: Update.
1303         * gnulib/import/extra/snippet/warn-on-use.h: Update.
1304         * gnulib/import/extra/update-copyright: Update.
1305         * gnulib/import/float+.h: Update.
1306         * gnulib/import/float.c: Update.
1307         * gnulib/import/float.in.h: Update.
1308         * gnulib/import/fnmatch.c: Update.
1309         * gnulib/import/fnmatch.in.h: Update.
1310         * gnulib/import/fnmatch_loop.c: Update.
1311         * gnulib/import/fpucw.h: Update.
1312         * gnulib/import/frexp.c: Update.
1313         * gnulib/import/frexpl.c: Update.
1314         * gnulib/import/gettimeofday.c: Update.
1315         * gnulib/import/inttypes.in.h: Update.
1316         * gnulib/import/isnan.c: Update.
1317         * gnulib/import/isnand-nolibm.h: Update.
1318         * gnulib/import/isnand.c: Update.
1319         * gnulib/import/isnanl-nolibm.h: Update.
1320         * gnulib/import/isnanl.c: Update.
1321         * gnulib/import/itold.c: Update.
1322         * gnulib/import/localcharset.c: Update.
1323         * gnulib/import/localcharset.h: Update.
1324         * gnulib/import/lstat.c: Update.
1325         * gnulib/import/m4/00gnulib.m4: Update.
1326         * gnulib/import/m4/absolute-header.m4: Update.
1327         * gnulib/import/m4/alloca.m4: Update.
1328         * gnulib/import/m4/canonicalize.m4: Update.
1329         * gnulib/import/m4/codeset.m4: Update.
1330         * gnulib/import/m4/configmake.m4: Update.
1331         * gnulib/import/m4/dirent_h.m4: Update.
1332         * gnulib/import/m4/dirfd.m4: Update.
1333         * gnulib/import/m4/dirname.m4: Update.
1334         * gnulib/import/m4/double-slash-root.m4: Update.
1335         * gnulib/import/m4/eealloc.m4: Update.
1336         * gnulib/import/m4/errno_h.m4: Update.
1337         * gnulib/import/m4/exponentd.m4: Update.
1338         * gnulib/import/m4/exponentl.m4: Update.
1339         * gnulib/import/m4/extensions.m4: Update.
1340         * gnulib/import/m4/extern-inline.m4: Update.
1341         * gnulib/import/m4/fcntl-o.m4: Update.
1342         * gnulib/import/m4/float_h.m4: Update.
1343         * gnulib/import/m4/fnmatch.m4: Update.
1344         * gnulib/import/m4/fpieee.m4: Update.
1345         * gnulib/import/m4/frexp.m4: Update.
1346         * gnulib/import/m4/frexpl.m4: Update.
1347         * gnulib/import/m4/gettimeofday.m4: Update.
1348         * gnulib/import/m4/glibc21.m4: Update.
1349         * gnulib/import/m4/gnulib-cache.m4: Update.
1350         * gnulib/import/m4/gnulib-common.m4: Update.
1351         * gnulib/import/m4/gnulib-comp.m4: Update.
1352         * gnulib/import/m4/gnulib-tool.m4: Update.
1353         * gnulib/import/m4/include_next.m4: Update.
1354         * gnulib/import/m4/inttypes-pri.m4: Update.
1355         * gnulib/import/m4/inttypes.m4: Update.
1356         * gnulib/import/m4/isnand.m4: Update.
1357         * gnulib/import/m4/isnanl.m4: Update.
1358         * gnulib/import/m4/largefile.m4: Update.
1359         * gnulib/import/m4/localcharset.m4: Update.
1360         * gnulib/import/m4/locale-fr.m4: Update.
1361         * gnulib/import/m4/locale-ja.m4: Update.
1362         * gnulib/import/m4/locale-zh.m4: Update.
1363         * gnulib/import/m4/longlong.m4: Update.
1364         * gnulib/import/m4/lstat.m4: Update.
1365         * gnulib/import/m4/malloc.m4: Update.
1366         * gnulib/import/m4/malloca.m4: Update.
1367         * gnulib/import/m4/math_h.m4: Update.
1368         * gnulib/import/m4/mbrtowc.m4: Update.
1369         * gnulib/import/m4/mbsinit.m4: Update.
1370         * gnulib/import/m4/mbsrtowcs.m4: Update.
1371         * gnulib/import/m4/mbstate_t.m4: Update.
1372         * gnulib/import/m4/memchr.m4: Update.
1373         * gnulib/import/m4/memmem.m4: Update.
1374         * gnulib/import/m4/mmap-anon.m4: Update.
1375         * gnulib/import/m4/multiarch.m4: Update.
1376         * gnulib/import/m4/nocrash.m4: Update.
1377         * gnulib/import/m4/off_t.m4: Update.
1378         * gnulib/import/m4/pathmax.m4: Update.
1379         * gnulib/import/m4/readlink.m4: Update.
1380         * gnulib/import/m4/rename.m4: Update.
1381         * gnulib/import/m4/rmdir.m4: Update.
1382         * gnulib/import/m4/ssize_t.m4: Update.
1383         * gnulib/import/m4/stat.m4: Update.
1384         * gnulib/import/m4/stdbool.m4: Update.
1385         * gnulib/import/m4/stddef_h.m4: Update.
1386         * gnulib/import/m4/stdint.m4: Update.
1387         * gnulib/import/m4/stdio_h.m4: Update.
1388         * gnulib/import/m4/stdlib_h.m4: Update.
1389         * gnulib/import/m4/string_h.m4: Update.
1390         * gnulib/import/m4/strstr.m4: Update.
1391         * gnulib/import/m4/strtok_r.m4: Update.
1392         * gnulib/import/m4/sys_socket_h.m4: Update.
1393         * gnulib/import/m4/sys_stat_h.m4: Update.
1394         * gnulib/import/m4/sys_time_h.m4: Update.
1395         * gnulib/import/m4/sys_types_h.m4: Update.
1396         * gnulib/import/m4/time_h.m4: Update.
1397         * gnulib/import/m4/unistd_h.m4: Update.
1398         * gnulib/import/m4/warn-on-use.m4: Update.
1399         * gnulib/import/m4/wchar_h.m4: Update.
1400         * gnulib/import/m4/wchar_t.m4: Update.
1401         * gnulib/import/m4/wctype_h.m4: Update.
1402         * gnulib/import/m4/wint_t.m4: Update.
1403         * gnulib/import/malloc.c: Update.
1404         * gnulib/import/malloca.c: Update.
1405         * gnulib/import/malloca.h: Update.
1406         * gnulib/import/math.in.h: Update.
1407         * gnulib/import/mbrtowc.c: Update.
1408         * gnulib/import/mbsinit.c: Update.
1409         * gnulib/import/mbsrtowcs-impl.h: Update.
1410         * gnulib/import/mbsrtowcs-state.c: Update.
1411         * gnulib/import/mbsrtowcs.c: Update.
1412         * gnulib/import/memchr.c: Update.
1413         * gnulib/import/memmem.c: Update.
1414         * gnulib/import/pathmax.h: Update.
1415         * gnulib/import/readlink.c: Update.
1416         * gnulib/import/ref-add.sin: Update.
1417         * gnulib/import/ref-del.sin: Update.
1418         * gnulib/import/rename.c: Update.
1419         * gnulib/import/rmdir.c: Update.
1420         * gnulib/import/same-inode.h: Update.
1421         * gnulib/import/stat.c: Update.
1422         * gnulib/import/stdbool.in.h: Update.
1423         * gnulib/import/stddef.in.h: Update.
1424         * gnulib/import/stdint.in.h: Update.
1425         * gnulib/import/stdio.c: Update.
1426         * gnulib/import/stdio.in.h: Update.
1427         * gnulib/import/stdlib.in.h: Update.
1428         * gnulib/import/str-two-way.h: Update.
1429         * gnulib/import/streq.h: Update.
1430         * gnulib/import/string.in.h: Update.
1431         * gnulib/import/stripslash.c: Update.
1432         * gnulib/import/strnlen1.c: Update.
1433         * gnulib/import/strnlen1.h: Update.
1434         * gnulib/import/strstr.c: Update.
1435         * gnulib/import/strtok_r.c: Update.
1436         * gnulib/import/sys_stat.in.h: Update.
1437         * gnulib/import/sys_time.in.h: Update.
1438         * gnulib/import/sys_types.in.h: Update.
1439         * gnulib/import/time.in.h: Update.
1440         * gnulib/import/unistd.in.h: Update.
1441         * gnulib/import/verify.h: Update.
1442         * gnulib/import/wchar.in.h: Update.
1443         * gnulib/import/wctype.in.h: Update.
1444         * gnulib/import/gettimeofday.c: New file.
1445         * gnulib/import/m4/absolute-header.m4: New file.
1446         * gnulib/import/m4/gettimeofday.m4: New file.
1447         * gnulib/import/m4/sys_socket_h.m4: New file.
1448         * gnulib/import/m4/sys_time_h.m4: New file.
1449         * gnulib/import/stdio.c: Delete file.
1450         * gnulib/import/sys_time.in.h: New file.
1451
1452 2015-08-24  Pedro Alves  <palves@redhat.com>
1453
1454         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
1455         * common/gdb_sys_time.h: New file.
1456         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
1457         * gdb_select.h: Likewise.
1458         * gdb_usleep.c: Likewise.
1459         * maint.c: Likewise.
1460         * mi/mi-main.c: Likewise.
1461         * mi/mi-parse.h: Likewise.
1462         * remote-fileio.c: Likewise.
1463         * remote-m32r-sdi.c: Likewise.
1464         * remote.c: Likewise.
1465         * ser-base.c: Likewise.
1466         * ser-pipe.c: Likewise.
1467         * ser-tcp.c: Likewise.
1468         * ser-unix.c: Likewise.
1469         * symfile.c: Likewise.
1470         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
1471         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
1472         * utils.c: Likewise.
1473
1474 2015-08-24  Pedro Alves  <palves@redhat.com>
1475
1476         * NEWS: Mention removed support for the various ROM monitors.
1477         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
1478         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
1479         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
1480         gdb_target_obs.
1481         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
1482         gdb_target_obs.
1483         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
1484         dsrec.o from gdb_target_obs.
1485         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
1486         from gdb_target_obs.
1487         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
1488         gdb_target_obs.
1489         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
1490         dink32-rom.o from gdb_target_obs.
1491         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
1492         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
1493         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
1494         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
1495
1496 2015-08-21  Pedro Alves  <palves@redhat.com>
1497
1498         * frame.c (null_frame_id): Explicitly zero-initialize.
1499
1500 2015-08-21  Tom Tromey  <tromey@redhat.com>
1501
1502         * dwarf2read.c (struct dwarf2_section_info): Rename field
1503         'asection' to 'section'.
1504         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
1505         (dwarf2_locate_sections, dwarf2_locate_sections)
1506         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
1507         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
1508         (dwarf2_locate_v2_dwp_sections): Adjust.
1509
1510 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
1511
1512         * top.h (gdb_in_secondary_prompt_p): Declare.
1513         * top.c (gdb_secondary_prompt_depth): Define.
1514         (gdb_in_secondary_prompt_p): Define.
1515         (gdb_readline_wrapper_cleanup): Decrement
1516         gdb_secondary_prompt_depth.
1517         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
1518         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
1519         are in a secondary prompt.
1520
1521 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
1522
1523         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
1524         emit the newline.
1525
1526 2015-08-21  Gary Benson  <gbenson@redhat.com>
1527
1528         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
1529
1530 2015-08-21  Gary Benson  <gbenson@redhat.com>
1531
1532         * target.h (struct target_ops) <to_fileio_open>: New argument
1533         warn_if_slow.  Update comment.  All implementations updated.
1534         (target_fileio_open_warn_if_slow): New declaration.
1535         * target.c (target_fileio_open): Renamed as...
1536         (target_fileio_open_1): ...this.  New argument warn_if_slow.
1537         Pass warn_if_slow to implementation.  Update debug printing.
1538         (target_fileio_open): New function.
1539         (target_fileio_open_warn_if_slow): Likewise.
1540         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
1541         target_fileio_open_warn_if_slow.
1542
1543 2015-08-21  Gary Benson  <gbenson@redhat.com>
1544
1545         * nat/linux-namespaces.c (linux_mntns_access_fs):
1546         Do not overwrite old_chain.
1547
1548 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
1549
1550         * arch/xtensa.h: New file.
1551         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
1552         (ps_get_thread_area): New function.
1553         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
1554         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
1555         * xtensa-tdep.c (osabi.h): New #include.
1556         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
1557         xtensa-specific hooks.
1558         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
1559         member and move the structure to arch/xtensa.h.
1560
1561 2015-08-21  Pedro Alves  <palves@redhat.com>
1562
1563         * remote.c (struct readahead_cache): New.
1564         (struct remote_state) <readahead_cache>: New field.
1565         (remote_open_1): Invalidate the cache.
1566         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
1567         functions.
1568         (remote_hostio_pwrite): Invalidate the readahead cache.
1569         (remote_hostio_pread): Rename to ...
1570         (remote_hostio_pread_vFile): ... this.
1571         (remote_hostio_pread_from_cache): New function.
1572         (remote_hostio_pread): Reimplement.
1573         (remote_hostio_close): Invalidate the readahead cache.
1574
1575 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
1576
1577         PR build/18843
1578         * procfs.c: Include "filestuff.h".
1579
1580 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
1581
1582         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
1583         curch.
1584         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
1585         cur_line or curch, instead call wmove().
1586         (init_win_info) [CMD_WIN]: Likewise.
1587         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
1588         instead call getcury().
1589         (tui_redisplay_readline): Don't set cur_line or curch.
1590         (tui_mld_erase_entire_line): Don't read cur_line, instead call
1591         getcury().
1592         (tui_cont_sig): Remove call to wmove.
1593         (tui_getc): Don't read cur_line or curch, instead call getcury()
1594         or getyx().  Don't set curch.
1595         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
1596         set cur_line or curch.  Always move cursor to (0,0).
1597
1598 2015-08-20  Pedro Alves  <palves@redhat.com>
1599
1600         * infrun.c (print_target_wait_results): Make extern.
1601         * infrun.h (print_target_wait_results): Declare.
1602         * remote.c (set_stop_requested_callback): Delete.
1603         (process_initial_stop_replies): New function.
1604         (remote_start_remote): Use it.
1605         (stop_reply_queue_length): New function.
1606
1607 2015-08-20  Pedro Alves  <palves@redhat.com>
1608
1609         * dwarf2read.c (process_full_comp_unit): To tell whether
1610         start_subfile managed to deduce a language, test for
1611         language_unknown instead of language_c.
1612
1613 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
1614
1615         * ada-lex.l: Reset the start condition to INITIAL in the rule that
1616         matches attributes.
1617
1618 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
1619
1620         * dwarf2read.c (dwarf2_string_attr): New function.
1621         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
1622         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
1623         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
1624         (anonymous_struct_prefix, prepare_one_comp_unit): Use
1625         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
1626
1627 2015-08-18  Doug Evans  <dje@google.com>
1628             Adrian Sendroiu <adrian.sendroiu@freescale.com>
1629
1630         PR mi/18833
1631         * cli/cli-logging.c (pop_output_files): Don't restore redirection
1632         if MI-like.
1633         * mi/mi-out.c: #include "vec.h".
1634         (ui_filep): New type.
1635         (DEV_VEC_P (ui_filep)): New type.
1636         (struct ui_out_data) <buffer, original_buffer>: Delete.
1637         (struct ui_out_data) <streams>: New member.
1638         (mi_ui_out_impl): Add data_destroy field.
1639         (mi_field_string, mi_field_fmt): Update.
1640         (mi_flush, mi_redirect, field_separator): Update.
1641         (mi_open, mi_close): Update.
1642         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
1643         (mi_out_data_ctor, mi_out_data_dtor): New functions.
1644         (mi_out_new): Call mi_out_data_ctor.
1645
1646 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
1647
1648         * remote.c (strprefix): New.
1649         (remote_parse_stop_reply): Use strprefix instead of strncmp
1650         to ensure exact match of keyword.
1651
1652 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
1653
1654         * gdb_bfd.c (debug_bfd_cache): New variable.
1655         (show_bfd_cache_debug): New function.
1656         (gdb_bfd_open): Add debug logging.
1657         (gdb_bfd_ref): Likewise.
1658         (gdb_bfd_unref): Likewise.
1659         (_initialize_gdb_bfd): Add new set/show command.
1660         * NEWS: Mention new command.
1661
1662 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
1663
1664         * gdb_bfd.c (bfd_sharing): New variable.
1665         (show_bfd_sharing): New function.
1666         (gdb_bfd_open): Check bfd_sharing variable.
1667         (_initialize_gdb_bfd): Add new set/show command.
1668         * NEWS: Mention new command.
1669
1670 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
1671
1672         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
1673         field.
1674         (struct gdb_bfd_cache_search): Likewise.
1675         (eq_bfd): Compare the size, inode, and device id fields.
1676         (gdb_bfd_open): Initialise the size, inode, and device id fields.
1677         (gdb_bfd_ref): Likewise.
1678         (gdb_bfd_unref): Likewise.
1679
1680 2015-08-18  Pedro Alves  <palves@redhat.com>
1681
1682         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
1683         target implements to_always_non_stop_p, call it.
1684         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
1685         (x86_linux_create_target): Install it as to_always_non_stop_p
1686         method.
1687
1688 2015-08-17  Doug Evans  <dje@google.com>
1689
1690         * ui-out.c (default_ui_out_impl): Add comment.
1691
1692 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
1693
1694         * d-exp.y (type_aggregate_p): New function.
1695         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
1696         (classify_inner_name): Likewise.
1697         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
1698
1699 2015-08-15  Doug Evans  <xdje42@gmail.com>
1700
1701         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
1702         updated.
1703         (add_psymbol_to_list): Ditto.
1704
1705 2015-08-15  Doug Evans  <xdje42@gmail.com>
1706
1707         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
1708         updated.  Call end_psymtab_common.
1709         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
1710         end_psymtab_common.
1711         (build_type_psymtabs_reader): Ditto.
1712         * psympriv.h (sort_pst_symbols): Delete.
1713         (end_psymtab_common): Declare.
1714         * psymtab.c (sort_pst_symbols): Make static.
1715         (end_psymtab_common): New function.
1716         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
1717
1718 2015-08-15  Doug Evans  <xdje42@gmail.com>
1719
1720         * defs.h (LANGUAGE_BITS): Define.
1721         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
1722         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
1723         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
1724         (minimal_symbol_type): Add nr_minsym_types.
1725         (MINSYM_TYPE_BITS): Define.
1726         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
1727         (domain_enum_tag): Add NR_DOMAINS.
1728         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
1729         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
1730
1731 2015-08-15  Doug Evans  <xdje42@gmail.com>
1732
1733         * objfiles.h: Whitespace cleanup.
1734         * psympriv.h: Whitespace cleanup.
1735         * psymtab.c: Whitespace/coding convention cleanup.
1736
1737 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
1738
1739         * inferior.c (detach_inferior_command): Don't call
1740         any_thread_of_process when pid is 0.
1741         (kill_inferior_command): Likewise.
1742
1743 2015-08-14  Doug Evans  <xdje42@gmail.com>
1744
1745         PR gdb/11833
1746         * NEWS: Document new /s modifier for the disassemble command.
1747         * cli/cli-cmds.c (disassemble_command): Add support for /s.
1748         (_initialize_cli_cmds): Update online docs of disassemble command.
1749         * disasm.c: #include "source.h".
1750         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
1751         All uses updated.
1752         (dis_line_entry): New struct.
1753         (hash_dis_line_entry, eq_dis_line_entry): New functions.
1754         (allocate_dis_line_table): New functions.
1755         (maybe_add_dis_line_entry, line_has_code_p): New functions.
1756         (dump_insns): New arg end_pc.  All callers updated.
1757         (do_mixed_source_and_assembly_deprecated): Renamed from
1758         do_mixed_source_and_assembly.  All callers updated.
1759         (do_mixed_source_and_assembly): New function.
1760         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
1761         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
1762         DISASSEMBLY_SOURCE.  All uses updated.
1763         (DISASSEMBLY_SOURCE): New macro.
1764         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
1765
1766 2015-08-14  Keith Seitz  <keiths@redhat.com>
1767
1768         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
1769         `typename' to `type_name' to avoid C++ reserved word.
1770
1771 2015-08-14  Keith Seitz  <keiths@redhat.com>
1772
1773         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
1774         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
1775         silence ARI errors.
1776
1777 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
1778
1779         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
1780         xstrprintf instead of malloc and sprintf.
1781         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
1782         (lex_one_token): Likewise.
1783
1784 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
1785
1786         * solib-svr4.c (read_program_header): Add base_addr argument to
1787         report the runtime address of the segment.
1788         (find_program_interpreter): Update read_program_header call to pass
1789         a NULL pointer for the new argument.
1790         (scan_dyntag): Add ptr_addr argument to report the runtime address
1791         of the tag payload.
1792         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
1793         read_program_header to get the base address of the dynamic segment.
1794         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
1795         read_program_header.
1796         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
1797
1798 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
1799
1800         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
1801
1802 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
1803
1804         * d-exp.y (%union): Add voidval.
1805         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
1806         name in the lexing stage.
1807         (PostfixExpression): Move symbol completion handling in grammar here
1808         from PrimaryExpression.
1809         (PrimaryExpression): Move routines to handle resolving identifier
1810         tokens in the grammar here from push_expression_name.
1811         (IdentifierExp): Remove the handling of alternating '.' and identifier
1812         tokens.
1813         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
1814         (BasicType): Remove C-style typename rules.
1815         (d_type_from_name, d_module_from_name, push_variable)
1816         (push_fieldnames, push_type_name, push_module_name)
1817         (push_expression_name): Remove.
1818         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
1819         (token_and_value): New type.
1820         (token_fifo, popping, name_obstack): New globals.
1821         (classify_name): New function.
1822         (classify_inner_name): Likewise.
1823         (yylex): Likewise.
1824         (d_parse): Initialize token_fifo, popping and name_obstack.
1825
1826 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
1827
1828         * Makefile.in (SFILES): Add d-namespace.c.
1829         (COMMON_OBS): Add d-namespace.o.
1830         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
1831         la_lookup_symbol_nonlocal callback function pointer.
1832         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
1833         (d_lookup_nested_symbol): New declaration.
1834         * d-namespace.c: New file.
1835
1836 2015-08-13  Pedro Alves  <palves@redhat.com>
1837
1838         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
1839         cleanup after the decref cleanup, not before.
1840
1841 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
1842
1843         * ada-lang.c: Include namespace.h
1844         (aux_add_nonlocal_symbols): Fix a function name in comment.
1845         (ada_add_block_renamings): New.
1846         (add_nonlocal_symbols): Add global renamings handling.
1847         (ada_lookup_symbol_list_worker): Move the symbol lookup part
1848         to...
1849         (ada_add_all_symbols): ... this new function.
1850         (ada_add_block_symbols): Try to match the input name against the
1851         "using directives list", perform a recursive symbol lookup on
1852         the matched declarations.
1853         * block.h (struct block): Move the_namespace to top-level as
1854         namespace_info. Remove the language_specific field.
1855         (BLOCK_NAMESPACE): Update access to the namespace_info field.
1856         * buildsym.h (using_directives): Rename into...
1857         (local_using_directives): ... this.
1858         (global_using_directives): New.
1859         (struct context_stack): Rename the using_directives field into
1860         local_using_directives.
1861         * buildsym.c (finish_block_internal): Deal with the proper
1862         using directives repository (local or global).
1863         (prepare_for_building): Reset local_using_directives. Assert
1864         that there is no pending global using directive.
1865         (reset_symtab_globals): Reset global_using_directives and
1866         local_using_directives.
1867         (end_symtab_get_static_block): Don't ignore symtabs that have
1868         only using directives.
1869         (push_context): Update references to local_using_directives.
1870         (buildsym_init): Do not reset using_directives.
1871         * cp-support.c: Include namespace.h.
1872         * cp-support.h (struct using_direct): Move to namespace.h.
1873         (cp_add_using_directives): Move to namespace.h.
1874         * cp-namespace.c: Include namespace.h
1875         (cp_add_using_directive): Move to namespace.c, rename it to
1876         add_using_directive, add a "using_directives" argument and use
1877         it as the pending using directives repository.  All callers
1878         updated.
1879         * dwarf2read.c (using_directives): New.
1880         (read_import_statement): Call using_directives.
1881         (read_func_scope): Update references to local_using_directives.
1882         (read_lexical_block_scope): Likewise.
1883         (read_namespace): Update the heading comment, call
1884         using_directives.
1885         * namespace.h: New file.
1886         * namespace.c: New file.
1887         * Makefile.in (SFILES): Add namespace.c.
1888         (COMMON_OBS): Add namespace.o
1889
1890 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
1891
1892         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
1893         compute RETADDR.
1894
1895 2015-08-12  Keith Seitz  <keiths@redhat.com>
1896
1897         * break-catch-throw.c (re_set_exception_catchpoint) Rename
1898         reserved C++ keyword "explicit" to "explicit_loc".
1899         * breakpoint.c (create_overlay_event_breakpoint)
1900         (create_longjmp_master_breakpoint)
1901         (create_std_terminate_master_breakpoint)
1902         (create_exception_master_breakpoint, update_static_tracepoint):
1903         Rename reserved C++ keyword "explicit" to "explicit_loc".
1904         * completer.c (collect_explicit_location_matches)
1905         (explicit_location_completer): Rename reserved C++ keyword
1906         "explicit" to "explicit_loc".
1907         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
1908         (canonicalize_linespec, create_sals_line_offset)
1909         (convert_linespec_to_sals, convert_explicit_location_to_sals)
1910         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
1911         "explicit" to "explicit_loc".
1912         * location.c (struct event_location) <explicit>: Rename to
1913         "explicit_loc".
1914         (initialize_explicit_location, new_explicit_location)
1915         (explicit_location_to_string_internal, explicit_location_to_linespec):
1916         Rename reserved C++ keyword "explicit" to "explicit_loc".
1917         * location.h (explicit_location_to_string)
1918         (explicit_location_to_linespec, initialize_explicit_location)
1919         (new_explicit_location): Rename reserved C++ keyword "explicit"
1920         to "explicit_loc".
1921         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
1922         keyword "explicit" to "explicit_loc".
1923
1924 2015-08-12  Keith Seitz  <keiths@redhat.com>
1925
1926         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
1927         and only call decode_line_1 when it is non-NULL.
1928
1929 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
1930
1931         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
1932         location address is not meaningful.
1933         (breakpoint_address_is_meaningful): Update comment.
1934
1935 2015-08-11  Keith Seitz  <keiths@redhat.com>
1936
1937         * NEWS: Mention explicit locations.
1938         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
1939         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
1940         (_initialize_breakpoint): Update documentation for
1941         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
1942
1943 2015-08-11  Keith Seitz  <keiths@redhat.com>
1944
1945         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
1946         explicit locations, options "--source", "--function",
1947         "--label", and "--line".
1948
1949 2015-08-11  Keith Seitz  <keiths@redhat.com>
1950
1951         * completer.c: Include location.h.
1952         (enum match_type): New enum.
1953         (location_completer): Rename to ...
1954         (linespec_completer): ... this.
1955         (collect_explicit_location_matches, backup_text_ptr)
1956         (explicit_location_completer): New functions.
1957         (location_completer): "New" function; handle linespec
1958         and explicit location completions.
1959         (complete_line_internal): Remove all location completer-specific
1960         handling.
1961         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
1962         (find_toplevel_char): Export.
1963         (linespec_parse_line_offset): Export.
1964         Issue error if STRING is not numerical.
1965         (gdb_get_linespec_parser_quote_characters): New function.
1966         * linespec.h (linespec_parse_line_offset): Declare.
1967         (get_gdb_linespec_parser_quote_characters): Declare.
1968         (is_ada_operator): Declare.
1969         (find_toplevel_char): Declare.
1970         (linespec_lexer_lex_keyword): Declare.
1971         * location.c (explicit_to_event_location): New function.
1972         (explicit_location_lex_one): New function.
1973         (string_to_explicit_location): New function.
1974         (string_to_event_location): Handle explicit locations.
1975         * location.h (explicit_to_event_location): Declare.
1976         (string_to_explicit_location): Declare.
1977
1978 2015-08-11  Keith Seitz  <keiths@redhat.com>
1979
1980         * break-catch-throw.c (re_set_exception_catchpoint): Convert
1981         linespec into explicit location.
1982         * breakpoint.c (create_overlay_breakpoint)
1983         (create_longjmp_master_breakpoint)
1984         (create_std_terminate_master_breakpoint)
1985         (create_exception_master_breakpoint): Convert linespec into explicit
1986         location.
1987         (update_static_tracepoint): Convert linespec into explicit location.
1988         * linespec.c (enum offset_relative_sign, struct line_offset): Move
1989         location.h.
1990         (struct linespec) <expression, expr_pc, source_filename>
1991         <function_name, label_name, line_offset>: Replace with ...
1992         <explicit>: ... this.
1993         <is_linespec>: New member.
1994         (PARSER_EXPLICIT): New accessor macro.
1995         (undefined_label_error): New function.
1996         (source_file_not_found_error): New function.
1997         (linespec_parse_basic): The parser result is now an explicit location.
1998         Use PARSER_EXPLICIT to access it.
1999         Use undefined_label_error.
2000         (canonicalize_linespec): Convert canonical linespec into explicit
2001         location.
2002         Move string representation of location to explicit_location_to_linespec
2003         and use it and explicit_location_to_string to save string
2004         representations of the canonical location.
2005         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
2006         explicit location.  Update all references.
2007         (convert_explicit_location_to_sals): New function.
2008         (parse_linespec): Use PARSER_EXPLICIT to access the parser
2009         result's explicit location.
2010         (linespec_state_constructor): Initialize is_linespec.
2011         Use PARSER_EXPLICIT.
2012         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
2013         result.
2014         (event_location_to_sals): For linespec locations, set is_linespec.
2015         Handle explicit locations.
2016         (decode_objc): 'ls' contains an explicit location now. Update all
2017         references.
2018         (symtabs_from_filename): Use source_file_not_found_error.
2019         * location.c (struct event_location.u) <explicit>: New member.
2020         (initialize_explicit_location): New function.
2021         (initialize_event_location): Initialize explicit locations.
2022         (new_explicit_location, get_explicit_location)
2023         (get_explicit_location_const): New functions.
2024         (explicit_to_string_internal): New function; most of contents moved
2025         from canonicalize_linespec.
2026         (explicit_location_to_string): New function.
2027         (explicit_location_to_linespec): New function.
2028         (copy_event_location, delete_event_location)
2029         (event_location_to_string_const, event_location_empty_p): Handle
2030         explicit locations.
2031         * location.h (enum offset_relative_sign, struct line_offset): Move
2032         here from linespec.h.
2033         (enum event_location_type): Add EXPLICIT_LOCATION.
2034         (struct explicit_location): New structure.
2035         (explicit_location_to_string): Declare.
2036         (explicit_location_to_linespec): Declare.
2037         (new_explicit_location, get_explicit_locationp
2038         (get_explicit_location_const, initialize_explicit_location): Declare.
2039
2040 2015-08-11  Keith Seitz  <keiths@redhat.com>
2041
2042         * break-catch-throw.c (re_set_exception_catchpoint): Convert
2043         linespec for stap probe to probe location.
2044         * breakpoint.c (create_longjmp_master_breakpoint)
2045         (create_exception_master_breakpoint): Likewise.
2046         (break_command_1): Remove local variable `arg_cp'.
2047         Check location type to set appropriate breakpoint ops methods.
2048         (trace_command): Likewise.
2049         * linespec.c (event_location_to_sals): Assert on probe locations.
2050         * location.c (EL_PROBE): Add macro definition.
2051         (new_probe_location, get_probe_location): New functions.
2052         (copy_event_location, delete_event_location, event_location_to_string)
2053         (string_to_event_location, event_location_empty_p): Handle probe
2054         locations.
2055         * location.h (enum event_location_type): Add PROBE_LOCATION.
2056         (new_probe_location, get_probe_location): Declare.
2057         * probe.c (parse_probes): Assert that LOCATION is a probe location.
2058         Convert linespec into probe location.
2059
2060 2015-08-11  Keith Seitz  <keiths@redhat.com>
2061
2062         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
2063         Convert linespec to address location.
2064         * linespec.c (canonicalize_linespec): Do not handle address
2065         locations here.
2066         (convert_address_location_to_sals): New function; contents moved
2067         from ...
2068         (convert_linespc_to_sals): ... here.
2069         (parse_linespec): Remove address locations from linespec grammar.
2070         Remove handling of address locations.
2071         (linespec_lex_to_end): Remove handling of address linespecs.
2072         (event_location_to_sals): Handle ADDRESS_LOCATION.
2073         (linespec_expression_to_pc): Export.
2074         * linespec.h (linespec_expression_to_pc): Add declaration.
2075         * location.c (struct event_location.u) <address>: New member.
2076         (new_address_location, get_address_location): New functions.
2077         (copy_event_location, delete_event_location, event_location_to_string)
2078         (string_to_event_location, event_location_empty_p): Handle address
2079         locations.
2080         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
2081         (new_address_location, get_address_location): Declare.
2082         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
2083         to address location.
2084         * spu-tdep.c (spu_catch_start): Likewise.
2085
2086 2015-08-11  Keith Seitz  <keiths@redhat.com>
2087
2088         * ax-gdb.c: Include location.h.
2089         (agent_command_1) Use linespec location instead of address
2090         string.
2091         * break-catch-throw.c: Include location.h.
2092         (re_set_exception_catchpoint): Use linespec locations instead
2093         of address strings.
2094         * breakpoint.c: Include location.h.
2095         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
2096         (create_std_terminate_master_breakpoint)
2097         (create_exception_master_breakpoint, update_breakpoints_after_exec):
2098         Use linespec location instead of address string.
2099         (print_breakpoint_location):  Use locations and
2100         event_location_to_string.
2101         Print extra_string for pending locations for non-MI streams.
2102         (print_one_breakpoint_location): Use locations and
2103         event_location_to_string.
2104         (init_raw_breakpoint_without_location): Initialize b->location.
2105         (create_thread_event_breakpoint): Use linespec location instead of
2106         address string.
2107         (init_breakpoint_sal): Likewise.
2108         Only save extra_string if it is non-NULL and not the empty string.
2109         Use event_location_to_string instead of `addr_string'.
2110         Constify `p' and `endp'.
2111         Use skip_spaces_const/skip_space_const instead of non-const versions.
2112         Copy the location into the breakpoint.
2113         If LOCATION is NULL, save the breakpoint address as a linespec location
2114         instead of an address string.
2115         (create_breakpoint_sal): Change `addr_string' parameter to a struct
2116         event_location. All uses updated.
2117         (create_breakpoints_sal): Likewise for local variable `addr_string'.
2118         (parse_breakpoint_sals): Use locations instead of address strings.
2119         Remove check for empty linespec with conditional.
2120         Refactor.
2121         (decode_static_tracepoint_spec): Make argument const and update
2122         function.
2123         (create_breakpoint): Change `arg' to a struct event_location and
2124         rename.
2125         Remove `copy_arg' and `addr_start'.
2126         If EXTRA_STRING is empty, set it to NULL.
2127         Don't populate `canonical' for pending breakpoints.
2128         Pass `extra_string' to find_condition_and_thread.
2129         Clear `extra_string' if `rest' was NULL.
2130         Do not error with "garbage after location" if setting a dprintf
2131         breakpoint.
2132         Copy the location into the breakpoint instead of an address string.
2133         (break_command_1): Use string_to_event_location and pass this to
2134         create_breakpoint instead of an address string.
2135         Check against `arg_cp' for a probe linespec.
2136         (dprintf_command): Use string_to_event_location and pass this to
2137         create_breakpoint instead of an address string.
2138         Throw an exception if no format string was specified.
2139         (print_recreate_ranged_breakpoint): Use event_location_to_string
2140         instead of address strings.
2141         (break_range_command, until_break_command)
2142         (init_ada_exception_breakpoint): Use locations instead
2143         of address strings.
2144         (say_where): Print out extra_string for pending locations.
2145         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
2146         the breakpoint.
2147         (base_breakpoint_create_sals_from_location): Use struct event_location
2148         instead of address string.
2149         Remove `addr_start' and `copy_arg' parameters.
2150         (base_breakpoint_decode_location): Use struct event_location instead of
2151         address string.
2152         (bkpt_re_set): Use locations instead of address strings.
2153         Use event_location_empty_p to check for unset location.
2154         (bkpt_print_recreate): Use event_location_to_string instead of
2155         an address string.
2156         Print out extra_string for pending locations.
2157         (bkpt_create_sals_from_location, bkpt_decode_location)
2158         (bkpt_probe_create_sals_from_location): Use struct event_location
2159         instead of address string.
2160         (bkpt_probe_decode_location): Use struct event_location instead of
2161         address string.
2162         (tracepoint_print_recreate): Use event_location_to_string to
2163         recreate the tracepoint.
2164         (tracepoint_create_sals_from_location, tracepoint_decode_location)
2165         (tracepoint_probe_create_sals_from_location)
2166         (tracepoint_probe_decode_location): Use struct event_location
2167         instead of address string.
2168         (dprintf_print_recreate): Use event_location_to_string to recreate
2169         the dprintf.
2170         (dprintf_re_set): Remove check for valid/missing format string.
2171         (strace_marker_create_sals_from_location)
2172         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
2173         (update_static_tracepoint): Use struct event_location instead of
2174         address string.
2175         (location_to_sals): Likewise.
2176         Pass `extra_string' to find_condition_and_thread.
2177         For newly resolved pending breakpoint locations, clear the location's
2178         string representation.
2179         Assert that the breakpoint's condition string is NULL when
2180         condition_not_parsed.
2181         (breakpoint_re_set_default, create_sals_from_location_default)
2182         (decode_location_default, trace_command, ftrace_command)
2183         (strace_command, create_tracepoint_from_upload): Use locations
2184         instead of address strings.
2185         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
2186         Use struct event_location instead of address string.
2187         Update all uses.
2188         <decode_location>: Likewise.
2189         (struct breakpoint) <addr_string>: Change to struct event_location
2190         and rename `location'.
2191         <addr_string_range_end>: Change to struct event_location and rename
2192         `location_range_end'.
2193         (create_breakpoint): Use struct event_location instead of address
2194         string.
2195         * cli/cli-cmds.c: Include location.h.
2196         (edit_command, list_command): Use locations instead of address strings.
2197         * elfread.c: Include location.h.
2198         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
2199         * guile/scm-breakpoint.c: Include location.h.
2200         (bpscm_print_breakpoint_smob): Use event_location_to_string.
2201         (gdbscm_register_breakpoint): Use locations instead of address
2202         strings.
2203         * linespec.c: Include location.h.
2204         (struct ls_parser) <stream>: Change to const char *.
2205         (PARSER_STREAM): Update.
2206         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
2207         keywords must be followed by whitespace.
2208         (canonicalize_linespec): Save a linespec location into `canonical'.
2209         Save a canonical linespec into `canonical'.
2210         (parse_linespec): Change `argptr' to const char * and rename `arg'.
2211         All uses updated.
2212         Update function description.
2213         (linespec_parser_new): Initialize `parser'.
2214         Update initialization of  parsing stream.
2215         (event_location_to_sals): New function.
2216         (decode_line_full): Change `argptr' to a struct event_location and
2217         rename it `location'.
2218         Use locations instead of address strings.
2219         Call event_location_to_sals instead of parse_linespec.
2220         (decode_line_1): Likewise.
2221         (decode_line_with_current_source, decode_line_with_last_displayed)
2222         Use locations instead of address strings.
2223         (decode_objc): Likewise.
2224         Change `argptr' to const char * and rename `arg'.
2225         (destroy_linespec_result): Delete the linespec result's location
2226         instead of freeing the address string.
2227         * linespec.h (struct linespec_result) <addr_string>: Change to
2228         struct event_location and rename to ...
2229         <location>: ... this.
2230         (decode_line_1, decode_line_full): Change `argptr' to struct
2231         event_location.  All callers updated.
2232         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
2233         (mi_cmd_break_insert_1): Use locations instead of address strings.
2234         Throw an error if there was "garbage" at the end of the specified
2235         linespec.
2236         * probe.c: Include location.h.
2237         (parse_probes): Change `argptr' to struct event_location.
2238         Use event locations instead of address strings.
2239         * probe.h (parse_probes): Change `argptr' to struct event_location.
2240         * python/py-breakpoint.c: Include location.h.
2241         (bppy_get_location): Constify local variable `str'.
2242         Use event_location_to_string.
2243         (bppy_init): Use locations instead of address strings.
2244         * python/py-finishbreakpoint.c: Include location.h.
2245         (bpfinishpy_init): Remove local variable `addr_str'.
2246         Use locations instead of address strings.
2247         * python/python.c: Include location.h.
2248         (gdbpy_decode_line): Use locations instead of address strings.
2249         * remote.c: Include location.h.
2250         (remote_download_tracepoint): Use locations instead of address
2251         strings.
2252         * spu-tdep.c: Include location.h.
2253         (spu_catch_start): Remove local variable `buf'.
2254         Use locations instead of address strings.
2255         * tracepoint.c: Include location.h.
2256         (scope_info): Use locations instead of address strings.
2257         (encode_source_string): Constify parameter `src'.
2258         * tracepoint.h (encode_source_string): Likewise.
2259
2260 2015-08-11  Keith Seitz  <keiths@redhat.com>
2261
2262         * Makefile.in (SFILES): Add location.c.
2263         (HFILES_NO_SRCDIR): Add location.h.
2264         (COMMON_OBS): Add location.o.
2265         * linespec.c (linespec_lex_to_end): New function.
2266         * linespec.h (linespec_lex_to_end): Declare.
2267         * location.c: New file.
2268         * location.h: New file.
2269
2270 2015-08-11  Keith Seitz  <keiths@redhat.com>
2271
2272         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
2273         Renamed to create_sals_from_location.
2274         <decode_linespec>: Renamed to decode_location.
2275         Update all callers.
2276         * breakpoint.c (create_sals_from_address_default): Renamed to ...
2277         (create_sals_from_location_default): ... this.
2278         (addr_string_to_sals): Renamed to ...
2279         (location_to_sals): ... this.
2280         (decode_linespec_default): Renamed to ...
2281         (decode_location_default): ... this.
2282         (base_breakpoint_create_sals_from_address): Renamed to ...
2283         (base_breakpoint_create_sals_from_location): ... this.
2284         (bkpt_create_sals_from_address): Renamed to ...
2285         (bkpt_create_sals_from_location): ... this.
2286         (bkpt_decode_linespec): Renamed to ...
2287         (bkpt_decode_location): ... this.
2288         (bkpt_probe_create_sals_from_address): Renamed to ...
2289         (bkpt_probe_create_sals_from_location): ... this.
2290         (tracepoint_create_sals_from_address): Renamed to ...
2291         (tracepoint_create_sals_from_location): ... this.
2292         (tracepoint_decode_linespec): Renamed to ...
2293         (tracepoint_decode_location): ... this.
2294         (tracepoint_probe_create_sals_from_address): Renamed to ...
2295         (tracepoint_probe_create_sals_from_location): ... this.
2296         (tracepoint_probe_decode_linespec): Renamed to ...
2297         (tracepoint_probe_decode_location): ... this.
2298         (strace_marker_create_sals_from_address): Renamed to ...
2299         (strace_marker_create_sals_from_location): ... this.
2300         (decode_linespec_default): Renamed to ...
2301         (decode_location_default): ... this.
2302
2303 2015-08-10  Doug Evans  <dje@google.com>
2304             Keith Seitz  <keiths@redhat.com>
2305
2306         PR gdb/17960
2307         * symtab.c (make_file_symbol_completion_list_1): Renamed from
2308         make_file_symbol_completion_list and made static.
2309         (make_file_symbol_completion_list): New function.
2310
2311 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
2312
2313         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
2314         trailing new-line at end of warning message.
2315         (proceed): Add i18n marker to error messages.
2316
2317 2015-08-07  Pedro Alves  <palves@redhat.com>
2318
2319         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
2320
2321 2015-08-07  Pedro Alves  <palves@redhat.com>
2322
2323         * s390-linux-tdep.c (is_non_branch_ril)
2324         (s390_displaced_step_copy_insn): New functions.
2325         (s390_displaced_step_fixup): Update comment.
2326         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
2327         gdbarch_displaced_step_copy_insn hook.
2328
2329 2015-08-07  Pedro Alves  <palves@redhat.com>
2330
2331         * infrun.c (displaced_step_prepare_throw): Return -1 if
2332         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
2333         comment.
2334         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
2335         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
2336         in file.
2337         (ppc_displaced_step_copy_insn): New function.
2338         (ppc_displaced_step_fixup): Update comment.
2339         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
2340         gdbarch_displaced_step_copy_insn hook.
2341         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
2342         NULL return.
2343         * gdbarch.h: Regenerate.
2344
2345 2015-08-07  Pedro Alves  <palves@redhat.com>
2346
2347         * inferior.h (struct inferior) <displaced_stepping_failed>: New
2348         field.
2349         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
2350         Return false if dispaced stepping failed before.
2351         (resume): Pass the current inferior to
2352         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
2353         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
2354         displaced_stepping_failed flag, and fall back to an in-line
2355         step-over.
2356
2357 2015-08-07  Pedro Alves  <palves@redhat.com>
2358
2359         * darwin-nat.c (darwin_stop): Rename to ...
2360         (darwin_interrupt): ... this.
2361         (_initialize_darwin_inferior): Adjust.
2362         * gnu-nat.c (gnu_stop): Delete.
2363         (gnu_target): Don't install gnu_stop.
2364         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
2365         (inf_ptrace_interrupt): ... this.
2366         (inf_ptrace_target): Adjust.
2367         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
2368         target_stop.
2369         * linux-nat (linux_nat_stop): Rename to ...
2370         (linux_nat_interrupt): ... this.
2371         (linux_nat_stop): Reimplement.
2372         (linux_nat_add_target): Install linux_nat_interrupt.
2373         * nto-procfs.c (nto_interrupt_twice): Rename to ...
2374         (nto_handle_sigint_twice): ... this.
2375         (nto_interrupt): Rename to ...
2376         (nto_handle_sigint): ... this.  Call target_interrupt instead of
2377         target_stop.
2378         (procfs_wait): Adjust.
2379         (procfs_stop): Rename to ...
2380         (procfs_interrupt): ... this.
2381         (init_procfs_targets): Adjust.
2382         * procfs.c (procfs_stop): Rename to ...
2383         (procfs_interrupt): ... this.
2384         (procfs_target): Adjust.
2385         * remote-m32r-sdi.c (m32r_stop): Rename to ...
2386         (m32r_interrupt): ... this.
2387         (init_m32r_ops): Adjust.
2388         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
2389         (gdbsim_interrupt_inferior): ... this.
2390         (gdbsim_stop): Rename to ...
2391         (gdbsim_interrupt): ... this.
2392         (gdbsim_cntrl_c): Adjust.
2393         (init_gdbsim_ops): Adjust.
2394         * remote.c (sync_remote_interrupt): Adjust comments.
2395         (remote_stop_as): Rename to ...
2396         (remote_interrupt_as): ... this.
2397         (remote_stop): Adjust comment.
2398         (remote_interrupt): New function.
2399         (init_remote_ops): Install remote_interrupt.
2400         * target.c (target_interrupt): New function.
2401         * target.h (struct target_ops) <to_interrupt>: New field.
2402         (target_interrupt): New declaration.
2403         * windows-nat.c (windows_stop): Rename to ...
2404         (windows_interrupt): ... this.
2405         * target-delegates.c: Regenerate.
2406
2407 2015-08-07  Pedro Alves  <palves@redhat.com>
2408
2409         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
2410         threads" as alternative to "switching back to stepped thread".
2411
2412 2015-08-07  Pedro Alves  <palves@redhat.com>
2413
2414         * NEWS: Mention "maint set/show target-non-stop".
2415         * breakpoint.c (update_global_location_list): Check
2416         target_is_non_stop_p instead of non_stop.
2417         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
2418         * infrun.c (show_can_use_displaced_stepping)
2419         (can_use_displaced_stepping_p, start_step_over_inferior):
2420         Likewise.
2421         (internal_resume_ptid): New function.
2422         (resume): Use it.
2423         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
2424         all-stop mode but the target is always in non-stop mode, start all
2425         the other threads that are implicitly resumed too.
2426         (for_each_just_stopped_thread, fetch_inferior_event)
2427         (adjust_pc_after_break, stop_all_threads): Check
2428         target_is_non_stop_p instead of non_stop.
2429         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
2430         with the target always in non-stop mode.
2431         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
2432         instead of non_stop.
2433         (switch_back_to_stepped_thread): Check target_is_non_stop_p
2434         instead of non_stop.
2435         (keep_going_stepped_thread): Use internal_resume_ptid.
2436         (stop_waiting): If in all-stop mode, and the target is in non-stop
2437         mode, stop all threads.
2438         (keep_going_pass): Likewise, when starting a new in-line step-over
2439         sequence.
2440         * linux-nat.c (get_pending_status, select_event_lwp)
2441         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
2442         target_is_non_stop_p instead of non_stop.
2443         (linux_nat_always_non_stop_p): New function.
2444         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
2445         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
2446         * target-delegates.c: Regenerate.
2447         * target.c (target_is_non_stop_p): New function.
2448         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
2449         (maint_set_target_non_stop_command)
2450         (maint_show_target_non_stop_command): New functions.
2451         (_initilize_target): Install "maint set/show target-non-stop"
2452         commands.
2453         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
2454         (target_non_stop_enabled): New declaration.
2455         (target_is_non_stop_p): New declaration.
2456
2457 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
2458
2459         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
2460         has a pending status, return true.
2461         * gdbthread.h: Include target/waitstatus.h.
2462         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
2463         stop_pc>: New fields.
2464         (struct thread_info) <resumed>: New field.
2465         (set_resumed): Declare.
2466         * infrun.c: Include "event-loop.h".
2467         (infrun_async_inferior_event_token, infrun_is_async): New globals.
2468         (infrun_async): New function.
2469         (clear_step_over_info): Add debug output.
2470         (displaced_step_in_progress_any_inferior): New function.
2471         (displaced_step_fixup): New returns int.
2472         (start_step_over): Handle in-line step-overs too.  Assert the
2473         thread is marked resumed.
2474         (resume_cleanups): Clear the thread's resumed flag.
2475         (resume): Set the thread's resumed flag.  Return early if the
2476         thread has a pending status.  Allow stepping a breakpoint with no
2477         signal.
2478         (proceed): Adjust to check 'resumed' instead of 'executing'.
2479         (clear_proceed_status_thread): If the thread has a pending status,
2480         and that status is a finished step, discard the pending status.
2481         (clear_proceed_status): Don't clear step_over_info here.
2482         (random_pending_event_thread, do_target_wait): New functions.
2483         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
2484         do_target_wait.
2485         (wait_one): New function.
2486         (THREAD_STOPPED_BY): New macro.
2487         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2488         (thread_stopped_by_hw_breakpoint): New functions.
2489         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
2490         functions.
2491         (handle_inferior_event): Also call set_resumed(false) on all
2492         threads implicitly stopped by the event.
2493         (restart_threads, resumed_thread_with_pending_status): New
2494         functions.
2495         (finish_step_over): If we were doing an in-line step-over before,
2496         and no longer are after trying to start a new step-over, restart
2497         all threads.  If we have multiple threads with pending events,
2498         save the current event and go through the event loop again.
2499         (handle_signal_stop): Return early if finish_step_over returns
2500         false.
2501         <random signal>: If we get a signal while stepping over a
2502         breakpoint in-line in non-stop mode, restart all threads.  Clear
2503         step_over_info before delivering the signal.
2504         (keep_going_stepped_thread): Use internal_error instead of
2505         gdb_assert.  Mark the thread as resumed.
2506         (keep_going_pass_signal): Assert the thread isn't already resumed.
2507         If some other thread is doing an in-line step-over, defer the
2508         resume.  If we just started a new in-line step-over, stop all
2509         threads.  Don't clear step_over_info.
2510         (infrun_async_inferior_event_handler): New function.
2511         (_initialize_infrun): Create async event handler with
2512         infrun_async_inferior_event_handler as callback.
2513         (infrun_async): New declaration.
2514         * target.c (target_async): New function.
2515         * target.h (target_async): Declare macro and readd as function
2516         declaration.
2517         * target/waitstatus.h (enum target_stop_reason)
2518         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2519         * thread.c (new_thread): Clear the new waitstatus field.
2520         (set_resumed): New function.
2521
2522 2015-08-07  Pedro Alves  <palves@redhat.com>
2523
2524         * infrun.c (keep_going_stepped_thread): New function, factored out
2525         from ...
2526         (switch_back_to_stepped_thread): ... here.
2527
2528 2015-08-07  Pedro Alves  <palves@redhat.com>
2529
2530         * infrun.c (currently_stepping): Extend intro comment.
2531         * target.h (target_resume): Extend intro comment.
2532
2533 2015-08-07  Pedro Alves  <palves@redhat.com>
2534
2535         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
2536         of inferior_ptid.  If the stepped thread vanished, return 0
2537         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
2538         the current stop_pc in log message.  Clear trap_expected if the
2539         thread advanced.  Don't pass currently_stepping to
2540         do_target_resume.
2541
2542 2015-08-07  Pedro Alves  <palves@redhat.com>
2543
2544         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
2545         * infrun.c (struct execution_control_state): Move higher up in the
2546         file.
2547         (reset_ecs): New function.
2548         (start_step_over): Now returns int.  Rewrite to use
2549         keep_going_pass_signal instead of manually starting a displaced step.
2550         (resume): Don't call set_running here.  If displaced stepping
2551         can't start now, clear trap_expected.
2552         (find_thread_needs_step_over): Delete function.
2553         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
2554         If the current thread needs a step over, push it in the step-over
2555         chain.  Don't set insert breakpoints nor call resume directly
2556         here.  Instead rewrite to use start_step_over and
2557         keep_going_pass_signal.
2558         (finish_step_over): New function.
2559         (handle_signal_stop): Call finish_step_over instead of
2560         start_step_over.
2561         (switch_back_to_stepped_thread): If the event thread needs another
2562         step-over do that first.  Use start_step_over.
2563         (keep_going_pass_signal): New function, factored out from ...
2564         (keep_going): ... here.
2565         (_initialize_infrun): Comment moved here.
2566         * thread.c (set_running_thread): New function.
2567         (set_running, finish_thread_state): Use set_running_thread.
2568
2569 2015-08-07  Pedro Alves  <palves@redhat.com>
2570
2571         * gdbthread.h (struct thread_info) <step_over_prev,
2572         step_over_next>: New fields.
2573         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
2574         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
2575         declarations.
2576         * infrun.c (struct displaced_step_request): Delete.
2577         (struct displaced_step_inferior_state) <step_request_queue>:
2578         Delete field.
2579         (displaced_step_prepare): Assert that trap_expected is set.  Use
2580         thread_step_over_chain_enqueue.  Split starting a new displaced
2581         step to ...
2582         (start_step_over): ... this new function.
2583         (resume): Assert the thread isn't waiting for a step over already.
2584         (proceed): Assert the thread isn't waiting for a step over
2585         already.
2586         (infrun_thread_stop_requested): Adjust to remove threads from the
2587         embedded step-over chain.
2588         (handle_inferior_event) <fork/vfork>: Call start_step_over after
2589         displaced_step_fixup.
2590         (handle_signal_stop): Call start_step_over after
2591         displaced_step_fixup.
2592         * infrun.h (step_over_queue_head): New declaration.
2593         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
2594         (thread_step_over_chain_next, thread_is_in_step_over_chain)
2595         (thread_step_over_chain_enqueue)
2596         (thread_step_over_chain_remove): New functions.
2597         (delete_thread_1): Remove thread from the step-over chain.
2598
2599 2015-08-07  Pedro Alves  <palves@redhat.com>
2600
2601         * infrun.c (thread_still_needs_step_over): Rename to ...
2602         (thread_still_needs_step_over_bp): ... this.
2603         (enum step_over_what): New.
2604         (thread_still_needs_step_over): Reimplement.
2605
2606 2015-08-07  Pedro Alves  <palves@redhat.com>
2607
2608         * remote.c (remote_wait_as): If not waiting for a stop reply,
2609         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
2610         requested, don't block waiting forever.
2611
2612 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
2613
2614         * infrun.c (adjust_pc_after_break): Now takes thread_info and
2615         waitstatus pointers instead of an ecs.  Adjust.
2616         (handle_inferior_event): Adjust caller.
2617
2618 2015-08-07  Pedro Alves  <palves@redhat.com>
2619
2620         * infrun.c (handle_inferior_event): If we get
2621         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
2622         mode, mark all threads of the exiting process as not-executing.
2623         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
2624         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
2625         exiting process, if inferior_ptid still points at a process.
2626         * thread.c (struct current_thread_cleanup) <next>: New field.
2627         (current_thread_cleanup_chain): New global.
2628         (restore_current_thread_ptid_changed): New function.
2629         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
2630         current_thread_cleanup_chain list.
2631         (make_cleanup_restore_current_thread): Add the cleanup data to the
2632         current_thread_cleanup_chain list.
2633         (_initialize_thread): Install restore_current_thread_ptid_changed
2634         as thread_ptid_changed observer.
2635
2636 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
2637
2638         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
2639         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
2640         smaller than expected.
2641
2642 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
2643
2644         * stack.c (get_frame_language): Moved ...
2645         * frame.c (get_frame_language): ... to here.
2646         * language.h (get_frame_language): Declaration moved to frame.h.
2647         * frame.h: Add language.h include, for language enum.
2648         (get_frame_language): Declaration moved from language.h.
2649         * language.c: Add frame.h include.
2650         * top.c: Add frame.h include.
2651         * symtab.h (struct obj_section): Declare.
2652         (struct cmd_list_element): Declare.
2653
2654 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
2655
2656         * language.c (show_language_command): Find selected frame before
2657         asking for the language of that frame.
2658         (set_language_command): Likewise.
2659         * language.h (get_frame_language): Add frame parameter.
2660         * stack.c (get_frame_language): Add frame parameter, assert
2661         parameter is not NULL, update comment and reindent.
2662         * top.c (check_frame_language_change): Pass the selected frame
2663         into get_frame_language.
2664
2665 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
2666
2667         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
2668         (pt_btrace_insn_flags): New.
2669         (ftrace_add_pt): Call pt_btrace_insn_flags.
2670         * btrace.h (btrace_insn_flag): New.
2671         (btrace_insn) <flags>: New.
2672         * record-btrace.c (btrace_insn_history): Print insn prefix.
2673         * NEWS: Announce it.
2674
2675 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
2676
2677         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
2678         * configure: Regenerate.
2679
2680 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
2681
2682         * Makefile.in (LIBICONV): Define.
2683         (CLIBS): Add LIBICONV.
2684         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
2685         * configure: Regenerate.
2686
2687 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2688             Pedro Alves  <palves@redhat.com>
2689
2690         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
2691         (arm_set_abi): Likewise.
2692         * ax-general.c (ax_print): Likewise.
2693         * c-exp.y (exp : string_exp): Likewise.
2694         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
2695         (do_compile_dwarf_expr_to_c): Likewise.
2696         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
2697         Likewise.
2698         * dwarf2expr.c (execute_stack_op): Likewise.
2699         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2700         (disassemble_dwarf_expression): Likewise.
2701         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
2702         (read_array_order): Likewise.
2703         (abbrev_table_read_table): Likewise.
2704         (read_attribute_value): Likewise.
2705         (skip_unknown_opcode): Likewise.
2706         (dwarf_decode_macro_bytes): Likewise.
2707         (dwarf_decode_macros): Likewise.
2708         * eval.c (value_f90_subarray): Likewise.
2709         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2710         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2711         * infrun.c (handle_command): Likewise.
2712         * memory-map.c (memory_map_start_memory): Likewise.
2713         * osabi.c (set_osabi): Likewise.
2714         * parse.c (operator_length_standard): Likewise.
2715         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
2716         single return point.
2717         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2718         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2719         (gdbpy_lookup_global_symbol): Likewise.
2720         * record-full.c (record_full_restore): Likewise.
2721         * regcache.c (regcache_register_status): Likewise.
2722         (regcache_raw_read): Likewise.
2723         (regcache_cooked_read): Likewise.
2724         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2725         * symtab.c (initialize_ordinary_address_classes): Likewise.
2726         * target-debug.h (target_debug_print_signals): Likewise.
2727         * utils.c (do_restore_current_language): Likewise.
2728
2729 2015-08-06  Clem Dickey  <clemd@acm.org>
2730
2731         PR python/17136
2732         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
2733
2734 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2735
2736         * complaints.c (enum complaint_series): Add newlines and remove
2737         out of date comment.
2738         (struct complaints) <series>: Change type to enum
2739         complaint_series and remove out of date comment.
2740         (symfile_complaint_hook): Use equivalent enum value
2741         ISOLATED_MESSAGE instead of 0.
2742
2743 2015-08-06  Pedro Alves  <palves@redhat.com>
2744
2745         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
2746         returned > 0.
2747
2748 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
2749
2750         * common/agent.c (symbol_list) <required>: Remove.
2751
2752 2015-08-06  Pedro Alves  <palves@redhat.com>
2753
2754         * target/waitstatus.h (enum target_stop_reason)
2755         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2756
2757 2015-08-05  Pedro Alves  <palves@redhat.com>
2758             Joel Brobecker  <brobecker@adacore.com>
2759
2760         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
2761         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
2762         case where BS->STOP is not set.
2763
2764 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
2765
2766         * nat/gdb_thread_db.h: Add copyright header.
2767         Protect against multiple inclusion.
2768
2769 2015-08-05  Yao Qi  <yao.qi@linaro.org>
2770
2771         * aarch64-linux-nat.c (get_thread_id): Remove.
2772         (debug_reg_change_callback): Call ptid_get_lwp instead of
2773         get_thread_id.
2774         (fetch_gregs_from_thread): Likewise.
2775         (store_gregs_to_thread): Likewise.
2776         (fetch_fpregs_from_thread): Likewise.
2777         (store_fpregs_to_thread): Likewise.
2778         (aarch64_linux_get_debug_reg_capacity): Likewise.
2779         * arm-linux-nat.c (get_thread_id): Remove.
2780         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2781         * xtensa-linux-nat.c (get_thread_id): Remove.
2782         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2783         * arm-linux-nat.c (get_thread_id): Remove.
2784         (GET_THREAD_ID): Remove.
2785         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
2786         (store_fpregs, fetch_regs, store_regs): Likewise.
2787         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
2788         (fetch_vfp_regs, store_vfp_regs): Likewise.
2789         (arm_linux_read_description): Likewise.
2790         (arm_linux_get_hwbp_cap): Likewise.
2791         * xtensa-linux-nat.c (get_thread_id): Remove.
2792         (GET_THREAD_ID): Remove.
2793         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
2794         GET_THREAD_ID.
2795
2796 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
2797
2798         * python/py-linetable.c: Fix case of Linetable to LineTable
2799         in docstrings and code comments.
2800         * python/py-symtab.c: Same.
2801
2802 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2803
2804         * infcmd.c (signal_command): Call do_cleanups for args_chain.
2805
2806 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2807
2808         PR gdb/18767
2809         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
2810         use.
2811
2812 2015-08-04  Pedro Alves  <palves@redhat.com>
2813
2814         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
2815         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
2816         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
2817         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
2818         (td_thr_validate_ftype, td_thr_get_info_ftype)
2819         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
2820         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
2821         New typedefs.
2822         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
2823         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
2824         local macros and use them instead of verbose_dlsym and dlsym
2825         calls.
2826
2827 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
2828
2829         * nios2-tdep.h: Include opcode/nios2.h here.
2830         (NIOS2_CDX_OPCODE_SIZE): New.
2831         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
2832         * nios2-tdep.c: Don't include opcode/nios2.h here.
2833         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
2834         4-byte read fails.
2835         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
2836         (nios2_match_addi, nios2_match_orhi): Likewise.
2837         (nios2_match_stw, nios2_match_ldw): Likewise.
2838         (nios2_match_rdctl): Likewise.
2839         (nios2_match_stwm, nios2_match_ldwm): New.
2840         (nios2_match_branch): Add cases for R2 encodings.
2841         (nios2_match_jmpi, nios2_match_calli): Likewise.
2842         (nios2_match_jmpr, nios2_match_callr): Likewise.
2843         (nios2_match_break, nios2_match_trap): Likewise.
2844         (nios2_in_epilogue_p): Add R2 support.
2845         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
2846         prologues.
2847         (nios2_breakpoint_from_pc): Handle R2 instructions.
2848         (nios2_get_next_pc): Likewise.  Adjust call to
2849         tdep->syscall_next_pc.
2850         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
2851         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
2852         instruction field macros instead of literal hex values.
2853         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
2854         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
2855         Use size field from OP instead of assuming all instructions
2856         are the same size.
2857         (nios2_linux_init_abi): Register appropriate unwinder for mach.
2858
2859 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
2860
2861         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
2862         variable warning with some compilers.
2863
2864 2015-08-03  Yao Qi  <yao.qi@linaro.org>
2865
2866         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
2867         in comment.  Replace "rw" with "type".
2868         (arm_linux_remove_watchpoint): Change type of "rw" to
2869         "enum target_hw_bp_type".
2870
2871 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
2872
2873         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
2874         lookup_symbol.
2875         * ft32-tdep.c (ft32_skip_prologue): Likewise.
2876         * moxie-tdep.c (moxie_skip_prologue): Likewise.
2877         * mt-tdep.c (mt_skip_prologue): Likewise.
2878         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
2879
2880 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2881
2882         * ada-exp.y (write_object_renaming): Replace struct
2883         ada_symbol_info with struct block_symbol.  Update field
2884         references accordingly.
2885         (block_lookup, select_possible_type_sym): Likewise.
2886         (find_primitive_type): Likewise.  Also update call to
2887         ada_lookup_symbol to extract the symbol itself.
2888         (write_var_or_type, write_name_assoc): Likewise.
2889         * ada-lang.h (struct ada_symbol_info): Remove.
2890         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
2891         struct block_symbol.
2892         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
2893         (ada_lookup_symbol): Return struct block_symbol instead of a
2894         mere symbol.
2895         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
2896         with struct block_symbol.
2897         (resolve_subexp, ada_resolve_function, sort_choices,
2898         user_select_syms, is_nonfunction, add_defn_to_vec,
2899         num_defns_collected, defns_collected,
2900         symbols_are_identical_enums, remove_extra_symbols,
2901         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
2902         ada_lookup_symbol_list, ada_iterate_over_symbols,
2903         ada_lookup_encoded_symbol, get_var_value): Likewise.
2904         (ada_lookup_symbol): Return a block_symbol instead of a mere
2905         symbol.  Replace struct ada_symbol_info with struct
2906         block_symbol.
2907         (ada_lookup_symbol_nonlocal): Likewise.
2908         (standard_lookup): Make block passing explicit through
2909         lookup_symbol_in_language.
2910         * ada-tasks.c (get_tcb_types_info): Update the calls to
2911         lookup_symbol_in_language to extract the mere symbol out of the
2912         returned value.
2913         (ada_tasks_inferior_data_sniffer): Likewise.
2914         * ax-gdb.c (gen_static_field): Likewise for the call to
2915         lookup_symbol.
2916         (gen_maybe_namespace_elt): Deal with struct block_symbol from
2917         lookup functions.
2918         (gen_expr): Likewise.
2919         * c-exp.y: Likewise.  Remove uses of block_found.
2920         (lex_one_token, classify_inner_name, c_print_token): Likewise.
2921         (classify_name): Likewise.  Rename the "sym" local variable to
2922         "bsym".
2923         * c-valprint.c (print_unpacked_pointer): Likewise.
2924         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
2925         "sym" parameter from struct symbol * to struct block_symbol.
2926         Use it to remove uses of block_found.  Deal with struct
2927         block_symbol from lookup functions.
2928         (gcc_convert_symbol): Likewise.  Update the call to
2929         convert_symbol_sym.
2930         * compile/compile-object-load.c (compile_object_load): Deal with
2931         struct block_symbol from lookup functions.
2932         * cp-namespace.c (cp_lookup_nested_symbol_1,
2933         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
2934         cp_search_static_and_baseclasses,
2935         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
2936         cp_lookup_symbol_imports_or_template,
2937         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
2938         lookup_namespace_scope, cp_lookup_nonlocal,
2939         find_symbol_in_baseclass): Return struct block_symbol instead of
2940         mere symbols and deal with struct block_symbol from lookup
2941         functions.
2942         * cp-support.c (inspect_type, replace_typedefs,
2943         cp_lookup_rtti_type): Deal with struct block_symbol from
2944         lookup functions.
2945         * cp-support.h (cp_lookup_symbol_nonlocal,
2946         cp_lookup_symbol_from_namespace,
2947         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
2948         Return struct block_symbol instead of mere symbols.
2949         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
2950         push_module_name):
2951         Deal with struct block_symbol from lookup functions.  Remove
2952         uses of block_found.
2953         * eval.c (evaluate_subexp_standard): Update call to
2954         cp_lookup_symbol_namespace.
2955         * f-exp.y: Deal with struct block_symbol from lookup functions.
2956         Remove uses of block_found.
2957         (yylex): Likewise.
2958         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
2959         lookup_enum, lookup_template_type, check_typedef): Deal with
2960         struct block_symbol from lookup functions.
2961         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
2962         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
2963         (gdbscm_lookup_global_symbol): Likewise.
2964         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
2965         * go-exp.y: Likewise.  Remove uses of block_found.
2966         (package_name_p, classify_packaged_name, classify_name):
2967         Likewise.
2968         * infrun.c (insert_exception_resume_breakpoint): Likewise.
2969         * jv-exp.y (push_variable): Likewise.
2970         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
2971         * language.c (language_bool_type): Likewise.
2972         * language.h (struct language_defn): Update
2973         la_lookup_symbol_nonlocal to return a struct block_symbol rather
2974         than a mere symbol.
2975         * linespec.c (find_label_symbols): Deal with struct block_symbol
2976         from lookup functions.
2977         * m2-exp.y: Likewise.  Remove uses of block_found.
2978         (yylex): Likewise.
2979         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2980         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
2981         * p-exp.y: Likewise.  Remove uses of block_found.
2982         (yylex): Likewise.
2983         * p-valprint.c (pascal_val_print): Likewise.
2984         * parse.c (write_dollar_variable): Likewise.  Remove uses of
2985         block_found.
2986         * parser-defs.h (struct symtoken): Turn the SYM field into a
2987         struct block_symbol.
2988         * printcmd.c (address_info): Deal with struct block_symbol from
2989         lookup functions.
2990         * python/py-frame.c (frapy_read_var): Likewise.
2991         * python/py-symbol.c (gdbpy_lookup_symbol,
2992         gdbpy_lookup_global_symbol): Likewise.
2993         * skip.c (skip_function_command): Likewise.
2994         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
2995         block_symbol instead of a mere symbol.
2996         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
2997         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
2998         * solib.c (solib_global_lookup): Likewise.
2999         * solist.h (solib_global_lookup): Likewise.
3000         (struct target_so_ops): Update lookup_lib_global_symbol to
3001         return a struct block_symbol rather than a mere symbol.
3002         * source.c (select_source_symtab): Deal with struct block_symbol
3003         from lookup functions.
3004         * stack.c (print_frame_args, iterate_over_block_arg_vars):
3005         Likewise.
3006         * symfile.c (set_initial_language): Likewise.
3007         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
3008         block_symbol.
3009         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
3010         (struct symbol_cache_slot): Turn the FOUND field into a struct
3011         block_symbol.
3012         (block_found): Remove.
3013         (eq_symbol_entry): Update to deal with struct block_symbol in
3014         cache slots.
3015         (symbol_cache_lookup): Return a struct block_symbol rather than
3016         a mere symbol.
3017         (symbol_cache_mark_found): Add a BLOCK parameter to fill
3018         appropriately the cache slots.  Update callers.
3019         (symbol_cache_dump): Update cache slots handling to the type
3020         change.
3021         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
3022         lookup_symbol_aux, lookup_local_symbol,
3023         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
3024         lookup_symbol_in_objfile_symtabs,
3025         lookup_symbol_in_objfile_from_linkage_name,
3026         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
3027         lookup_symbol_in_static_block, lookup_static_symbol,
3028         lookup_global_symbol):
3029         Return a struct block_symbol rather than a mere symbol.  Deal
3030         with struct block_symbol from other lookup functions.  Remove
3031         uses of block_found.
3032         (lookup_symbol_in_block): Remove uses of block_found.
3033         (struct global_sym_lookup_data): Turn the RESULT field into a
3034         struct block_symbol.
3035         (lookup_symbol_global_iterator_cb): Update references to the
3036         RESULT field.
3037         (search_symbols): Deal with struct block_symbol from lookup
3038         functions.
3039         * symtab.h (struct block_symbol): New structure.
3040         (block_found): Remove.
3041         (lookup_symbol_in_language, lookup_symbol,
3042         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
3043         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
3044         lookup_global_symbol_from_objfile): Return a struct block_symbol
3045         rather than just a mere symbol.  Update comments to remove
3046         mentions of block_found.
3047         * valops.c (find_function_in_inferior,
3048         value_struct_elt_for_reference, value_maybe_namespace_elt,
3049         value_of_this):  Deal with struct block_symbol from lookup
3050         functions.
3051         * value.c (value_static_field, value_fn_field): Likewise.
3052
3053 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
3054
3055         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
3056         instead of integer.
3057
3058 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
3059             Pedro Alves  <palves@redhat.com>
3060
3061         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
3062         type or value instead of integer.
3063         (aarch64_linux_insert_watchpoint): Likewise.
3064         (aarch64_linux_remove_watchpoint): Likewise.
3065         * ada-lang.c (ada_op_print_tab): Likewise.
3066         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
3067         (amd64_linux_syscall_record_common): Likewise.
3068         * arch-utils.c (target_byte_order_user): Likewise.
3069         (default_byte_order): Likewise.
3070         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
3071         (arm_linux_get_hwbp_type): Likewise.
3072         (arm_linux_hw_watchpoint_initialize): Likewise.
3073         (arm_linux_insert_watchpoint): Likewise.
3074         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
3075         (arm_linux_syscall_record): Likewise.
3076         * breakpoint.c (update_watchpoint): Likewise.
3077         (breakpoint_here_p): Likewise.
3078         (bpstat_print): Likewise.
3079         (enable_breakpoint_disp): Likewise.
3080         * c-lang.c (c_op_print_tab): Likewise.
3081         * cli/cli-decode.c (add_info_alias): Likewise.
3082         * d-lang.c (d_op_print_tab): Likewise.
3083         * eval.c (evaluate_subexp_standard): Likewise.
3084         * f-exp.y (dot_ops): Likewise.
3085         (f77_keywords): Likewise.
3086         * f-lang.c (f_op_print_tab): Likewise.
3087         * go-lang.c (go_op_print_tab): Likewise.
3088         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
3089         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
3090         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
3091         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
3092         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
3093         (struct scm_from_stringn_data): Likewise.
3094         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
3095         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3096         (ia64_linux_remove_watchpoint): Likewise.
3097         (ia64_linux_can_use_hw_breakpoint): Likewise.
3098         * infrun.c (print_stop_event): Likewise.
3099         * jv-lang.c (java_op_print_tab): Likewise.
3100         * linux-nat.c (linux_proc_xfer_partial): Likewise.
3101         * linux-nat.h (struct lwp_info): Likewise.
3102         * linux-thread-db.c (enable_thread_event): Likewise.
3103         * m2-lang.c (m2_op_print_tab): Likewise.
3104         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
3105         (mi_cmd_stack_list_variables): Likewise.
3106         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
3107         * mi/mi-out.c (mi_table_begin): Likewise.
3108         (mi_table_header): Likewise.
3109         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
3110         (mips_linux_insert_watchpoint): Likewise.
3111         (mips_linux_remove_watchpoint): Likewise.
3112         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
3113         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
3114         (mips_linux_watch_type_to_irw): Likewise.
3115         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
3116         (procfs_insert_hw_watchpoint): Likewise.
3117         (procfs_remove_hw_watchpoint): Likewise.
3118         (procfs_hw_watchpoint): Likewise.
3119         (procfs_can_use_hw_breakpoint): Likewise.
3120         (procfs_remove_hw_watchpoint): Likewise.
3121         (procfs_insert_hw_watchpoint): Likewise.
3122         * p-lang.c (pascal_op_print_tab): Likewise.
3123         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
3124         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
3125         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
3126         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
3127         (procfs_insert_watchpoint): Likewise.
3128         (procfs_remove_watchpoint): Likewise.
3129         * psymtab.c (recursively_search_psymtabs): Likewise.
3130         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
3131         (m32r_insert_watchpoint): Likewise.
3132         * remote-mips.c (mips_can_use_watchpoint): Likewise.
3133         (mips_insert_watchpoint): Likewise.
3134         (mips_remove_watchpoint): Likewise.
3135         * remote.c (watchpoint_to_Z_packet): Likewise.
3136         (remote_insert_watchpoint): Likewise.
3137         (remote_remove_watchpoint): Likewise.
3138         (remote_check_watch_resources): Likewise.
3139         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3140         (s390_remove_watchpoint): Likewise.
3141         (s390_can_use_hw_breakpoint): Likewise.
3142         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3143         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
3144         * target.h (struct target_ops): Likewise.
3145         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3146         * ui-out.c (struct ui_out_hdr): Likewise.
3147         (append_header_to_list): Likewise.
3148         (get_next_header): Likewise.
3149         (verify_field): Likewise.
3150         (ui_out_begin): Likewise.
3151         (ui_out_field_int): Likewise.
3152         (ui_out_field_fmt_int): Likewise.
3153         (ui_out_field_skip): Likewise.
3154         (ui_out_field_string): Likewise.
3155         (ui_out_field_fmt): Likewise.
3156         * varobj.c (new_variable): Likewise.
3157         * x86-nat.c (x86_insert_watchpoint): Likewise.
3158         (x86_remove_watchpoint): Likewise.
3159         (x86_can_use_hw_breakpoint): Likewise.
3160         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
3161         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
3162         previously anonymous enumeration type..
3163         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
3164         value.
3165         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
3166         (target_debug_print_enum_bptype): New.
3167         * target-delegates.c: Regenerate.
3168
3169 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
3170
3171         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
3172         already says and disallow non-stack memory writes in the prologue.
3173
3174 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
3175
3176         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
3177         reflect how current GCC emits stack overflow checks.  Match
3178         both trap and break instructions for backward compatbility.
3179         Disallow other trap and break instructions in the prologue.
3180
3181 2015-07-30  Pedro Alves  <palves@redhat.com>
3182
3183         PR threads/18600
3184         * linux-nat.c (wait_lwp): Report to the core when thread group
3185         leader exits.
3186
3187 2015-07-30  Pedro Alves  <palves@redhat.com>
3188             Simon Marchi  <simon.marchi@ericsson.com>
3189
3190         PR threads/18600
3191         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
3192         mark the new thread as resumed.  Remove STOPPING parameter.
3193         (wait_lwp): Adjust call to linux_handle_extended_wait.
3194         (linux_nat_filter_event): Adjust call to
3195         linux_handle_extended_wait.
3196         (resume_stopped_resumed_lwps): Add debug output.
3197
3198 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
3199
3200         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
3201         isize argument.
3202         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
3203         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
3204         gdbarch_fast_tracepoint_valid_at.
3205         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
3206         * gdbarch.h: Regenerate.
3207         * gdbarch.c: Regenerate.
3208         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
3209         argument.  Do not set it.
3210         * remote.c (remote_download_tracepoint): Adjust call to
3211         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
3212         the instruction length.
3213
3214 2015-07-30  Yao Qi  <yao.qi@linaro.org>
3215
3216         * arm-tdep.h (enum gdb_regnum): Move it to ...
3217         * arch/arm.h: ... here.  New file.
3218         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
3219
3220 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
3221
3222         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
3223         Change its type to int *.
3224         (decode_br): Rename link argument to is_blr.  Change its type to
3225         int *.
3226         (decode_cb): Rename op argument to is_cbnz.  Change its type to
3227         int *.
3228         (decode_tb): Rename op argument to is_tbnz.  Change its type to
3229         int *.  Set is_tbnz to either 1 or 0.
3230         (aarch64_analyze_prologue): Change type of is_link to int.  Add
3231         new variables is_cbnz and is_tbnz.  Adjust call to
3232         aarch64_decode_cb and aarch64_decode_tb.
3233
3234 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
3235
3236         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
3237         parameter.
3238         (mips_linux_new_thread): Likewise.
3239         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
3240
3241 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
3242
3243         * top.c: Include "tui/tui.h".
3244         (undo_terminal_modifications_before_exit): New static function.
3245         (quit_force): Use it.
3246
3247 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
3248
3249         * target.c (terminal_state): Initialize to terminal_is_ours.
3250
3251 2015-07-29  Yao Qi  <yao.qi@linaro.org>
3252
3253         PR record/18691
3254         * dcache.c (dcache_read_memory_partial): Call
3255         raw_memory_xfer_partial.
3256         * target.c (raw_memory_xfer_partial): Make it non-static.
3257         * target.h (raw_memory_xfer_partial): Declare.
3258
3259 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
3260
3261         * c-valprint.c (c_val_print_array): Consider addressable memory
3262         unit size.
3263         (c_val_print_ptr): Likewise.
3264         (c_val_print_int): Likewise.
3265         * findvar.c (read_frame_register_value): Likewise.
3266         * valarith.c (find_size_for_pointer_math): Likewise.
3267         (value_ptrdiff): Likewise.
3268         (value_subscripted_rvalue): Likewise.
3269         * valops.c (read_value_memory): Likewise (and rename variables).
3270         (value_assign): Likewise.
3271         (value_repeat): Likewise.
3272         (value_array): Likewise.
3273         (value_slice): Likewise.
3274         * valprint.c (generic_val_print_ptr): Likewise.
3275         (generic_val_print_enum): Likewise.
3276         (generic_val_print_bool): Likewise.
3277         (generic_val_print_int): Likewise.
3278         (generic_val_print_char): Likewise.
3279         (generic_val_print_float): Likewise.
3280         (generic_val_print_decfloat): Likewise.
3281         (generic_val_print_complex): Likewise.
3282         (val_print_scalar_formatted): Likewise.
3283         (val_print_array_elements): Likewise.
3284         * value.c (set_value_parent): Likewise.
3285         (value_contents_copy_raw): Likewise.
3286         (set_internalvar_component): Likewise.
3287         (value_primitive_field): Likewise.
3288         (value_fetch_lazy): Likewise.
3289         * value.h (read_value_memory): Update comment.
3290
3291 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
3292
3293         * value.c (get_value_arch): New function.
3294         * value.h (get_value_arch): New declaration.
3295
3296 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
3297
3298         * value.c (struct value): Update comments.
3299
3300 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
3301
3302         * gdbtypes.c (type_length_units): New function.
3303         * gdbtypes.h (type_length_units): New declaration.
3304         (struct type) <length>: Update comment.
3305
3306 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3307
3308         * valprint.c (generic_val_print): Factor out complex
3309         printing code to ...
3310         (generic_val_print_complex): ... this new function.
3311
3312 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3313
3314         * valprint.c (generic_val_print): Factor out decfloat
3315         printing code to ...
3316         (generic_val_print_decfloat): ... this new function.
3317
3318 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3319
3320         * valprint.c (generic_val_print): Factor out float
3321         printing code to ...
3322         (generic_val_print_float): ... this new function.
3323
3324 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3325
3326         * valprint.c (generic_val_print): Factor out char
3327         printing code to ...
3328         (generic_val_print_char): ... this new function.
3329
3330 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3331
3332         * valprint.c (generic_val_print): Factor out integer
3333         printing code to ...
3334         (generic_val_print_int): ... this new function.
3335
3336 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3337
3338         * valprint.c (generic_val_print): Factor out bool
3339         printing code to ...
3340         (generic_val_print_bool): ... this new function.
3341
3342 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3343
3344         * valprint.c (generic_val_print): Factor out function/method
3345         printing code to ...
3346         (generic_val_print_func): ... this new function.
3347
3348 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3349
3350         * valprint.c (generic_val_print): Factor out flags
3351         printing code to ...
3352         (generic_val_print_flags): ... this new function.
3353
3354 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3355
3356         * valprint.c (generic_val_print): Factor out enum
3357         printing code to ...
3358         (generic_val_print_enum): ... this new function.
3359
3360 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3361
3362         * valprint.c (generic_val_print): Factor out reference
3363         printing code to ...
3364         (generic_val_print_ref): ... this new function.
3365
3366 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3367
3368         * valprint.c (generic_val_print): Factor out memberptr
3369         printing code to ...
3370         (generic_val_print_memberptr): ... this new function.
3371
3372 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3373
3374         * valprint.c (generic_val_print): Factor out pointer
3375         printing code to ...
3376         (generic_val_print_ptr): ... this new function.
3377
3378 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3379
3380         * valprint.c (generic_val_print): Factor out array
3381         printing code to ...
3382         (generic_val_print_array): ... this new function.
3383
3384 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3385
3386         * valprint.c (generic_val_print): Factor out
3387         print_unpacked_pointer code to ...
3388         (print_unpacked_pointer): ... this new function.
3389
3390 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
3391
3392         * event-top.c (handle_sigterm): Don't inspect
3393         target_can_async_p.  Always set the quit flag and always mark
3394         the async signal handler.
3395
3396 2015-07-27  Yao Qi  <yao.qi@linaro.org>
3397
3398         * Makefile.in (REMOTE_EXAMPLES): Remove it.
3399
3400 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
3401
3402         * remote.c (read_ptid): Return null_ptid when no thread id
3403         is found.
3404         (remote_current_thread): Add log warning for malformed
3405         qC reply.
3406         (remote_start_remote): Add log warning when current thread
3407         not found.
3408
3409 2015-07-24  Pedro Alves  <palves@redhat.com>
3410
3411         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
3412         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
3413         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
3414
3415 2015-07-24  Pedro Alves  <palves@redhat.com>
3416
3417         PR gdb/18717
3418         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
3419         is resumed, and extend the debug log.
3420
3421 2015-07-24  Pedro Alves  <palves@redhat.com>
3422
3423         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
3424
3425 2015-07-24  Pedro Alves  <palves@redhat.com>
3426
3427         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
3428         sys/ptrace.h.
3429         * alpha-linux-nat.c: Likewise.
3430         * amd64-linux-nat.c: Likewise.
3431         * arm-linux-nat.c: Likewise.
3432         * hppa-linux-nat.c: Likewise.
3433         * i386-linux-nat.c: Likewise.
3434         * ia64-linux-nat.c: Likewise.
3435         * linux-fork.c: Likewise.
3436         * linux-nat.c: Likewise.
3437         * m32r-linux-nat.c: Likewise.
3438         * m68klinux-nat.c: Likewise.
3439         * mips-linux-nat.c: Likewise.
3440         * nat/linux-btrace.c: Likewise.
3441         * nat/linux-ptrace.c: Likewise.
3442         * nat/linux-ptrace.h
3443         * nat/mips-linux-watch.c: Likewise.
3444         * nat/x86-linux-dregs.c: Likewise.
3445         * ppc-linux-nat.c: Likewise.
3446         * s390-linux-nat.c: Likewise.
3447         * spu-linux-nat.c: Likewise.
3448         * tilegx-linux-nat.c: Likewise.
3449         * x86-linux-nat.c: Likewise.
3450         * xtensa-linux-nat.c: Likewise.
3451
3452 2015-07-24  Pedro Alves  <palves@redhat.com>
3453
3454         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
3455         __ptrace_request as first parameter type instead of int.
3456         (PTRACE_TYPE_ARG1): Define.
3457         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
3458         that casts first argument to PTRACE_TYPE_ARG1.
3459         * config.in: Regenerate.
3460         * configure: Regenerate.
3461
3462 2015-07-24  Pedro Alves  <palves@redhat.com>
3463
3464         * gdb_ptrace.h: Move ...
3465         * nat/gdb_ptrace.h: ... here.
3466         * inf-ptrace.c: Adjust.
3467
3468 2015-07-24  Pedro Alves  <palves@redhat.com>
3469
3470         * acinclude.m4: Include ptrace.m4.
3471         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
3472         * ptrace.m4: ... to this new file.
3473
3474 2015-07-23  Doug Evans  <dje@google.com>
3475
3476         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
3477         (load_cu): Handle dummy CUs.
3478         (dw2_do_instantiate_symtab, process_queuef): Ditto.
3479         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
3480
3481 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
3482
3483         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
3484         documentation to say that it returns a list rather than
3485         a FrozenSet.
3486         (linetable_object_methods): Update the docstring of the
3487         "source_line" entry.
3488
3489 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
3490
3491         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
3492         type to the recursive call instead of the original (maybe
3493         TYPE_CODE_TYPEDEF) type.
3494
3495 2015-07-23  Yao Qi  <yao.qi@linaro.org>
3496
3497         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
3498         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
3499         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
3500
3501 2015-07-21  Yao Qi  <yao.qi@linaro.org>
3502
3503         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
3504         Move it to nat/aarch64-linux-hw-point.c.
3505         (aarch64_linux_child_post_startup_inferior): Update.
3506         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
3507         New function.
3508         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
3509         Declare it.
3510
3511 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
3512
3513         * common/btrace-common.c (btrace_data_append): Change case label.
3514
3515 2015-07-20  Yao Qi  <yao.qi@linaro.org>
3516
3517         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
3518         Re-indent the code.
3519         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
3520         "unsigned long long".
3521
3522 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
3523
3524         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
3525         to be set for SEC_ALLOC sections too.
3526
3527 2015-07-17  Yao Qi  <yao.qi@linaro.org>
3528
3529         * Makefile.in (HFILES_NO_SRCDIR): Add
3530         nat/aarch64-linux-hw-point.h.
3531         (aarch64-linux-hw-point.o): New rule.
3532         * nat/aarch64-linux-hw-point.h: New file.
3533         * nat/aarch64-linux-hw-point.c: New file.
3534         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
3535         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
3536         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
3537         (AARCH64_HWP_ALIGNMENT): Likewise.
3538         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
3539         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
3540         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
3541         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
3542         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
3543         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
3544         (struct aarch64_debug_reg_state): Likewise.
3545         (struct arch_lwp_info): Likewise.
3546         (aarch64_linux_set_debug_regs): Likewise.
3547         (aarch64_notify_debug_reg_change): Remove static.
3548         (aarch64_align_watchpoint): Likewise.
3549         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
3550         (aarch64_watchpoint_length): Likewise.
3551         (aarch64_point_encode_ctrl_reg): Likewise
3552         (aarch64_point_is_aligned): Likewise.
3553         (aarch64_dr_state_insert_one_point): Likewise.
3554         (aarch64_dr_state_remove_one_point): Likewise.
3555         (aarch64_handle_breakpoint): Likewise.
3556         (aarch64_handle_aligned_watchpoint): Likewise.
3557         (aarch64_handle_unaligned_watchpoint): Likewise.
3558         (aarch64_handle_watchpoint): Likewise.
3559         * config/aarch64/linux.mh (NAT_FILE): Add
3560         aarch64-linux-hw-point.o.
3561
3562 2015-07-17  Yao Qi  <yao.qi@linaro.org>
3563
3564         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
3565         state and don't call aarch64_get_debug_reg_state.  All callers
3566         update.
3567         (aarch64_linux_insert_hw_breakpoint): Call
3568         aarch64_get_debug_reg_state earlier.
3569         (aarch64_linux_remove_hw_breakpoint): Likewise.
3570         (aarch64_handle_aligned_watchpoint): Add argument state and
3571         don't call aarch64_get_debug_reg_state.  All callers update.
3572         (aarch64_handle_unaligned_watchpoint): Likewise.
3573         (aarch64_handle_watchpoint): Add argument state.
3574         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
3575         earlier.
3576         (aarch64_linux_remove_watchpoint): Likewise.
3577
3578 2015-07-17  Yao Qi  <yao.qi@linaro.org>
3579
3580         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
3581         debug_printf.
3582         (aarch64_handle_unaligned_watchpoint): Likewise.
3583
3584 2015-07-17  Yao Qi  <yao.qi@linaro.org>
3585
3586         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
3587         argument type's type to 'enum target_hw_bp_type'.
3588         (aarch64_dr_state_remove_one_point): Likewise.
3589         (aarch64_handle_breakpoint): Likewise.
3590         (aarch64_linux_insert_hw_breakpoint): Likewise.
3591         (aarch64_linux_remove_hw_breakpoint): Likewise.
3592         (aarch64_handle_aligned_watchpoint): Likewise.
3593
3594 2015-07-17  Yao Qi  <yao.qi@linaro.org>
3595
3596         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
3597         ptid_get_pid instead of get_thread_id.
3598
3599 2015-07-17  Yao Qi  <yao.qi@linaro.org>
3600
3601         * remote.c (get_current_thread): Initialise ptid to null_ptid.
3602         (add_current_inferior_and_thread): Don't initialise ptid.
3603
3604 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
3605
3606         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
3607         unavailable if invalid.
3608
3609 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3610
3611         Revert the previous 6 commits:
3612         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3613         Move gdb_regex* to common/
3614         Prepare linux_find_memory_regions_full & co. for move
3615         Move linux_find_memory_regions_full & co.
3616         gdbserver build-id attribute generator
3617         Validate symbol file using build-id
3618
3619 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
3620             Jan Kratochvil  <jan.kratochvil@redhat.com>
3621
3622         Validate symbol file using build-id.
3623         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
3624         and 'show validate-build-id'.  Add build-id attribute.
3625         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
3626         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
3627         * solib-frv.c (_initialize_frv_solib): Ditto.
3628         * solib-spu.c (set_spu_solib_ops): Ditto.
3629         * solib-svr4.c: Include rsp-low.h.
3630         (NOTE_GNU_BUILD_ID_NAME): New define.
3631         (svr4_validate): New function.
3632         (svr4_copy_library_list): Duplicate field build_id.
3633         (library_list_start_library): Parse 'build-id' attribute.
3634         (svr4_library_attributes): Add 'build-id' attribute.
3635         (_initialize_svr4_solib): Assign validate value.
3636         * solib-target.c (solib.h): Include.
3637         (_initialize_solib_target): Assign validate value.
3638         * solib.c (validate_build_id, show_validate_build_id): New.
3639         (solib_map_sections): Use ops->validate.
3640         (clear_so): Free build_id.
3641         (default_solib_validate): New function.
3642         (_initialize_solib): Add "validate-build-id".
3643         * solib.h (default_solib_validate): New declaration.
3644         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
3645         (target_so_ops): New field 'validate'.
3646
3647 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
3648             Jan Kratochvil  <jan.kratochvil@redhat.com>
3649
3650         gdbserver build-id attribute generator.
3651         * features/library-list-svr4.dtd (library-list-svr4): New
3652         'build-id' attribute.
3653
3654 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
3655             Jan Kratochvil  <jan.kratochvil@redhat.com>
3656
3657         Move linux_find_memory_regions_full & co.
3658         * linux-tdep.c (nat/linux-maps.h): Include.
3659         (gdb_regex.h): Remove the include.
3660         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
3661         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
3662         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
3663         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
3664         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
3665         and target/target.h.
3666         (struct smaps_vmflags, read_mapping, decode_vmflags)
3667         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
3668         (linux_find_memory_regions_full): Move from linux-tdep.c.
3669         * nat/linux-maps.h (read_mapping): New declaration.
3670         (linux_find_memory_region_ftype, enum filterflags): Moved from
3671         linux-tdep.c.
3672         (linux_find_memory_regions_full): New declaration.
3673         * target.c (target/target-utils.h): Include.
3674         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
3675         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
3676         definitions to target/target-utils.c.
3677         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
3678         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
3679         from target.c.
3680         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
3681         (read_alloc): New declaration.
3682         (read_stralloc_func_ftype): New typedef.
3683         (read_stralloc): New declaration.
3684         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
3685
3686 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
3687             Jan Kratochvil  <jan.kratochvil@redhat.com>
3688
3689         Prepare linux_find_memory_regions_full & co. for move.
3690         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
3691         (linux_find_memory_regions_full): Change signature and prepare
3692         for moving to linux-maps.
3693         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
3694         (linux_find_memory_regions_thunk): New.
3695         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
3696         (linux_find_memory_regions_gdb): New.
3697         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
3698         (linux_make_mappings_corefile_notes): Use
3699         linux_find_memory_regions_gdb.
3700         * target.c (read_alloc_pread_ftype): New typedef.
3701         (target_fileio_read_alloc_1_pread): New function.
3702         (read_alloc): Refactor from target_fileio_read_alloc_1.
3703         (read_stralloc_func_ftype): New typedef.
3704         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
3705         (read_stralloc): Refactored from target_fileio_read_stralloc.
3706         (target_fileio_read_stralloc): New implementation, use read_stralloc.
3707
3708 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3709
3710         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
3711         common/gdb_regex.h.
3712         (COMMON_OBS): Add gdb_regex.o.
3713         (gdb_regex.o): New.
3714         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
3715         --without-included-regex and USE_INCLUDED_REGEX.
3716         * common/gdb_regex.c: New file from utils.c functions.
3717         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
3718         file wrapping define name.
3719         * configure: Rebuilt.
3720         * configure.ac (gdb_use_included_regex, --without-included-regex)
3721         (USE_INCLUDED_REGEX): Move them to common/common.m4.
3722         * gdb_regex.h: Move it to common/gdb_regex.h.
3723         * utils.c: Remove include gdb_regex.h.
3724         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
3725         (compile_rx_or_error): Move them to common/gdb_regex.c.
3726
3727 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
3728             Jan Kratochvil  <jan.kratochvil@redhat.com>
3729
3730         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3731         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
3732         common/target-utils.h.
3733         (COMMON_OBS): Add target-utils.o.
3734         (linux-maps.o, target-utils.o): New.
3735         * target/target-utils.c: New file.
3736         * target/target-utils.h: New file.
3737         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
3738         * config/i386/linux64.mh (NATDEPFILES): Ditto.
3739         * nat/linux-maps.c: New file.
3740         * nat/linux-maps.h: New file.
3741
3742 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
3743             Pedro Alves <palves@redhat.com>
3744
3745         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
3746         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
3747         (perf_event_read_bts): Change the type of SIZE and READ.
3748         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
3749         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
3750         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
3751         mmap page.
3752         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
3753         buffer size to UINT_MAX.
3754         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
3755         DATA_TAIL.
3756         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
3757         <last_head>: Change type.
3758         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
3759         * common/btrace-common.c (btrace_data_append): Change the type of
3760         SIZE.
3761         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
3762         check.
3763
3764 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
3765
3766         * gdbtypes.h (CHECK_TYPEDEF): Remove.
3767         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
3768         with check_typedef.
3769         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
3770         (ada_array_length): Likewise.
3771         (find_parallel_type_by_descriptive_type): Likewise.
3772         (ada_check_typedef): Likewise.
3773         * arm-tdep.c (arm_return_in_memory): Likewise.
3774         * ax-gdb.c (gen_trace_static_fields): Likewise.
3775         (gen_struct_ref_recursive): Likewise.
3776         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3777         (variable: block COLONCOLON name): Likewise.
3778         (qualified_name: TYPENAME COLONCOLON name): Likewise.
3779         * c-lang.c (classify_type): Likewise.
3780         * c-typeprint.c (c_print_type): Likewise.
3781         (c_print_typedef): Likewise.
3782         (c_type_print_base): Likewise.
3783         * c-valprint.c (c_val_print): Likewise.
3784         * compile/compile-c-types.c (convert_type): Likewise.
3785         * compile/compile-object-load.c (get_out_value_type): Likewise.
3786         * completer.c (add_struct_fields): Likewise.
3787         (expression_completer): Likewise.
3788         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
3789         (cp_lookup_nested_symbol_1): Likewise.
3790         (cp_lookup_nested_symbol): Likewise.
3791         * cp-valprint.c (cp_print_value_fields): Likewise.
3792         (cp_print_static_field): Likewise.
3793         * d-valprint.c (d_val_print): Likewise.
3794         * eval.c (evaluate_subexp_standard): Likewise.
3795         (evaluate_subexp_for_sizeof): Likewise.
3796         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3797         * f-typeprint.c (f_type_print_base): Likewise.
3798         * f-valprint.c (f_val_print): Likewise.
3799         * gdbtypes.c (get_discrete_bounds): Likewise.
3800         (create_array_type_with_stride): Likewise.
3801         (type_name_no_tag_or_error): Likewise.
3802         (lookup_struct_elt_type): Likewise.
3803         (get_unsigned_type_max): Likewise.
3804         (internal_type_vptr_fieldno): Likewise.
3805         (set_type_vptr_fieldno): Likewise.
3806         (internal_type_vptr_basetype): Likewise.
3807         (set_type_vptr_basetype): Likewise.
3808         (get_vptr_fieldno): Likewise.
3809         (is_integral_type): Likewise.
3810         (is_scalar_type): Likewise.
3811         (is_scalar_type_recursive): Likewise.
3812         (distance_to_ancestor): Likewise.
3813         (is_unique_ancestor_worker): Likewise.
3814         (check_types_equal): Likewise.
3815         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3816
3817 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
3818
3819         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
3820         also test for language_d.
3821         (dwarf2_compute_name): Likewise.
3822         (read_func_scope): Likewise.
3823         (read_structure_type): Likewise.
3824         (new_symbol_full): Likewise.
3825         (determine_prefix): Likewise.
3826         (read_import_statement): Use dot as the separator for language_d.
3827         (typename_concat): Likewise, but don't prefix the D main function.
3828
3829 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
3830
3831         * nat/linux-namespaces.c (setns): Rename from this ...
3832         (do_setns): ... to this.  Support calling setns if it exists.
3833         (mnsh_handle_setns): Call do_setns.
3834
3835 2015-07-13  Yao Qi  <yao.qi@linaro.org>
3836
3837         * exec.c (exec_file_attach): Add period at the end of error
3838         message.
3839
3840 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
3841
3842         * tui/tui-win.c (window_name_completer): New function.
3843         (focus_completer): Call window_name_completer.  All old content
3844         moved into window_name_completer.
3845         (winheight_completer): New function.
3846         (_initialize_tui_win): Rename variable.  Add completer to
3847         winheight command.  Update doc string on winheight.
3848
3849 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
3850
3851         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
3852         all nios2 mach variants.
3853
3854 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
3855
3856         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
3857         of target_read_memory.
3858
3859 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
3860
3861         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
3862         string copy.
3863         (parse_scrolling_args): Likewise.
3864
3865 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
3866
3867         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
3868         names in this function.
3869
3870 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
3871
3872         * tui/tui-data.h (SRC_NAME): Convert to lower case.
3873         (CMD_NAME): Likewise.
3874         (DATA_NAME): Likewise.
3875         (DISASSEM_NAME): Likewise.
3876         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
3877         (tui_set_win_height): Likewise.
3878         (parse_scrolling_args): Likewise.
3879
3880 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
3881
3882         * record-btrace.c (record_btrace_goto_begin)
3883         (record_btrace_goto_end, record_btrace_goto): Move call to
3884         print_stack_frame ...
3885         (record_btrace_set_replay): ... here.  Set stop_pc.
3886         * record-full.c (record_full_goto_entry): Set stop_pc.
3887
3888 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3889
3890         * NEWS: Mention support for tracepoints on aarch64-linux.
3891
3892 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3893
3894         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
3895         function.  Return 1.
3896         (the_low_target): Install it.
3897
3898 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3899
3900         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
3901         * gdb.trace/collection.exp: Likewise.
3902         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
3903         * gdb.trace/mi-trace-unavailable.exp: Likewise.
3904         * gdb.trace/report.exp: Likewise.
3905         * gdb.trace/trace-break.exp: Likewise.
3906         * gdb.trace/unavailable.exp: Likewise.
3907         * gdb.trace/while-dyn.exp: Likewise.
3908
3909 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3910
3911         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
3912         (aarch64_gen_return_address): New function.
3913         (aarch64_gdbarch_init): Hook it.
3914
3915 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3916
3917         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
3918         swallow NOT_AVAILABLE_ERROR.
3919         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
3920         available_p is not set.
3921         (aarch64_stub_frame_unwind_stop_reason): New function.
3922         (aarch64_stub_unwind): Install it.
3923
3924 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3925
3926         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
3927         field.
3928         (aarch64_make_prologue_cache_1): New function, factored out from
3929         aarch64_make_prologue_cache.  Do not allocate cache.  Set
3930         available_p.
3931         (aarch64_make_prologue_cache): Reimplement wrapping
3932         aarch64_make_prologue_cache_1, and swallowing
3933         NOT_AVAILABLE_ERROR.
3934         (aarch64_prologue_frame_unwind_stop_reason): New function.
3935         Return UNWIND_UNAVAILABLE if available_p is not set.
3936         (aarch64_prologue_unwind): Install it.
3937         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
3938         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
3939         frame_id_build_unavailable_stack if available_p is not set.
3940
3941 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3942
3943         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
3944         fields.
3945         (aarch64_scan_prologue): Set prev_pc.
3946         (aarch64_make_prologue_cache): Set func.
3947         (aarch64_make_stub_cache): Set prev_pc.
3948         (aarch64_prologue_this_id): Remove local variables id, pc and
3949         func.  Read prev_pc and func from cache.
3950         (aarch64_stub_this_id): Read prev_pc from cache.
3951
3952 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3953
3954         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
3955         argument this_cache.  Remove unused local variables reg and
3956         unwound_fp.  Return early if this_cache is already set.  Set
3957         this_cache.
3958         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
3959
3960 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3961
3962         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
3963         New argument this_cache.  Return early if this_cache is already
3964         set.  Set this_cache.
3965         (aarch64_prologue_this_id): Update call to
3966         aarch64_make_prologue_cache.
3967         (aarch64_prologue_prev_register): Likewise.
3968         (aarch64_normal_frame_base): Likewise.
3969
3970 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
3971
3972         * c-valprint.c (c_val_print): Factor out memberptr printing code
3973         from c_val_print to ...
3974         (c_val_print_memberptr): ... this new function.
3975
3976 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
3977
3978         * c-valprint.c (c_val_print): Factor out int printing code to ...
3979         (c_val_print_int): ... this new function.
3980
3981 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
3982
3983         * c-valprint.c (c_val_print): Factor out struct and union
3984         printing code to ...
3985         (c_val_print_struct): ... this new function ...
3986         (c_val_print_union): ... and this new function.
3987
3988 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
3989
3990         * c-valprint.c (c_val_print): Factor out pointer printing code
3991         to ...
3992         (c_val_print_ptr): ... this new function.
3993
3994 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
3995
3996         * c-valprint.c (c_valprint): Factor our array printing code from
3997         c_val_print to ...
3998         (c_val_print_array): ... this new function.
3999
4000 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
4001
4002         * c-valprint.c (c_val_print): Factor out pointer printing code
4003         to ...
4004         (print_unpacked_pointer): ... this new function.
4005
4006 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
4007
4008         * c-valprint.c (c_val_print): Remove an assignment to i and move
4009         its declaration.
4010
4011 2015-07-09  Yao Qi  <yao.qi@linaro.org>
4012
4013         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
4014         argument ptid.  Update comments.  Caller update.
4015
4016 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
4017
4018         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
4019         mnt packets.
4020
4021 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
4022
4023         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
4024
4025 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
4026
4027         * progspace.c (delete_program_space): Add missing spaces.
4028
4029 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
4030
4031         * inferior.c (delete_inferior_1): Rename to ...
4032         (delete_inferior): ..., remove 'silent' parameter, delete
4033         program space when unused and remove call to prune_program_spaces.
4034         Remove the old, unused, delete_inferior.
4035         (delete_inferior_silent): Remove.
4036         (prune_inferiors): Change call from delete_inferior_1 to
4037         delete_inferior and remove 'silent' parameter. Remove call to
4038         prune_program_spaces.
4039         (remove_inferior_command): Idem.
4040         * inferior.h (delete_inferior_1): Rename to...
4041         (delete_inferior): ..., remove 'silent' parameter and remove the
4042         original delete_inferior.
4043         (delete_inferior_silent): Remove.
4044         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
4045         delete_inferior_1 to delete_inferior and remove 'silent'
4046         parameter.
4047         * progspace.c (prune_program_spaces): Remove.
4048         (pspace_empty_p): Rename to...
4049         (program_space_empty_p): ... and make non-static.
4050         (delete_program_space): New.
4051         * progspace.h (prune_program_spaces): Remove declaration.
4052         (program_space_empty_p): New declaration.
4053         (delete_program_space): New declaration.
4054         * monitor.c (monitor_close): Replace call to
4055         delete_thread_silent and delete_inferior_silent with
4056         discard_all_inferiors.
4057
4058 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
4059
4060         * defs.h (deprecated_register_changed_hook): Remove prototype.
4061         * interps.c (clear_iterpreter_hooks): Remove reference to
4062         deprecated_register_changed_hook.
4063         * top.c (deprecated_register_changed_hook): Remove prototype.
4064         * valops.c (value_assign): Remove reference to
4065         deprecated_register_changed_hook.
4066         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
4067         Add comment documenting the function.
4068         (tui_register_changed_observer): Define.
4069         (tui_install_hooks): Remove reference to
4070         deprecated_register_changed_hook.  Set
4071         tui_register_changed_observer.
4072         (tui_remove_hooks): Remove reference to
4073         deprecated_register_changed_hook.  Unset
4074         tui_register_changed_observer.
4075
4076 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4077
4078         PR compile/18484
4079         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
4080
4081 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
4082
4083         PR exp/18617
4084         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
4085
4086 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
4087
4088         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
4089
4090 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
4091
4092         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
4093         Use safe_strerror() instead of strerror().
4094
4095 2015-07-07  Yao Qi  <yao.qi@linaro.org>
4096
4097         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
4098         * features/arm-with-m-fpa-layout.c: Regenerated.
4099         * features/arm-with-m-vfp-d16.xml: Likewise.
4100         * features/arm-with-m-vfp-d16.c: Regenerated.
4101         * features/arm-with-m.xml: Likewise.
4102         * features/arm-with-m.c: Regenerated.
4103         * features/arm-with-neon.xml: Likewise.
4104         * features/arm-with-neon.c: Regenerated.
4105         * features/arm-with-vfpv2.xml: Likewise.
4106         * features/arm-with-vfpv2.c: Regenerated.
4107         * features/arm-with-vfpv3.xml: Likewise.
4108         * features/arm-with-vfpv3.c: Regenerated.
4109
4110 2015-07-07  Yao Qi  <yao.qi@linaro.org>
4111
4112         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
4113         arm-linux-nat.c.
4114         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
4115         elf/external.h.
4116         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
4117         if target is 32-bit.
4118         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
4119         if target is 32-bit.
4120         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
4121         if target is 32-bit.
4122         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
4123         if target is 32-bit.
4124         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
4125         (aarch64_linux_read_description): Return the right target
4126         description.
4127         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
4128         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
4129         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
4130         arm-linux-tdep.o.
4131
4132 2015-07-07  Yao Qi  <yao.qi@linaro.org>
4133
4134         * aarch32-linux-nat.c: New file.
4135         * aarch32-linux-nat.h: New file.
4136         * arm-linux-nat.c: Include aarch32-linux-nat.h.
4137         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
4138         aarch32_gp_regcache_supply.
4139         (store_regs): Move code to aarch32-linux-nat.c.  Call
4140         aarch32_gp_regcache_collect.
4141         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
4142         aarch32_vfp_regcache_supply.
4143         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
4144         aarch32_vfp_regcache_collect.
4145         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
4146
4147 2015-07-07  Yao Qi  <yao.qi@linaro.org>
4148
4149         * arm-linux-nat.c (store_fpregister): Remove.
4150         (store_register): Likewise.
4151         (fetch_fpregister): Likewise.
4152         (fetch_register): Likewise.
4153         (arm_linux_store_inferior_registers): Call store_regs and
4154         store_fpregs instead.
4155         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
4156         fetch_regs instead.
4157
4158 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
4159
4160         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
4161         and focus commands.
4162
4163 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
4164
4165         * NEWS: Create a new section for the next release branch.
4166         Rename the section of the current branch, now that it has
4167         been cut.
4168
4169 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
4170
4171         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
4172         * version.in: Bump version to 7.10.50.DATE-cvs.
4173
4174 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
4175
4176         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
4177         breakpoints in a special way.
4178         (remove_breakpoint): Likewise.
4179         (mark_breakpoints_out): Likewise.
4180
4181 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
4182
4183         * doc/gdb.texinfo (TUI): Add comma after @xref.
4184
4185 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
4186
4187         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
4188         instead of casting the structure type.
4189
4190 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
4191
4192         * valops.c (search_struct_field): Remove OFFSET parameter.
4193         (value_cast_structs): Adjust calls to search_struct_field.
4194         (value_struct_elt): Same.
4195         (find_overload_match): Same.
4196
4197 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
4198
4199         * value.c (value_fetch_lazy): Update comment, change return
4200         value to void.
4201         * value.h (value_fetch_lazy): Change return value to void.
4202
4203 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
4204
4205         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
4206         (tui_win_name): Make parameter and result const.
4207         * tui/tui-data.h (tui_win_name): Make parameter and result const.
4208
4209 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
4210
4211         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
4212         use printf_unfiltered.
4213         (set_mpx_cmd): Add missing trailing space to command string
4214         literal.
4215         (_initialize_i386_tdep): Give the "mpx" prefix command its
4216         correct name.
4217
4218 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
4219
4220         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
4221         (enum rx_frame_type): New.
4222         (struct rx_prologue): Add new field `frame_type'.
4223         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
4224         parameter in the prologue struct.  Add code for recording
4225         locations of PC and PSW for fast interrupt and exception frames.
4226         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
4227         (rx_analyze_frame_prologue): Add `frame_type' parameter.
4228         (rx_frame_type): New function.
4229         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
4230         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
4231         `this_cache'.
4232         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
4233         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
4234         RX_FRAME_TYPE_FAST_INTERRUPT.
4235         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
4236         (rx_frame_sniffer, rx_exception_sniffer): New functions.
4237         (rx_frame_unwind): Use rx_frame_sniffer instead of
4238         default_frame_sniffer.
4239         (rx_frame_unwind): New unwinder.
4240         (rx_gdbarch_init): Register new unwinder.
4241
4242 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
4243
4244         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
4245         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
4246         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
4247         and RX_FPSW_REGNUM.
4248         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
4249
4250 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4251
4252         Fix GCC false warning.
4253         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
4254
4255 2015-07-02  Yao Qi  <yao.qi@linaro.org>
4256
4257         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
4258         typo in the debugging message.
4259
4260 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
4261
4262         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
4263         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
4264         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
4265         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
4266         (btrace_maint_clear): New.
4267         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
4268         (pt_print_packet, btrace_maint_decode_pt)
4269         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
4270         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
4271         (maint_btrace_packet_history_cmd)
4272         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
4273         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
4274         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
4275         (maint_info_btrace_cmd, _initialize_btrace): New.
4276         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
4277         (btrace_maint_packet_history, btrace_maint_info): New.
4278         (btrace_thread_info) <maint>: New.
4279         * NEWS: Announce it.
4280
4281 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
4282
4283         * btrace.c (btrace_fetch): Append the new trace data.
4284         (btrace_clear): Clear the stored trace data.
4285         * btrace.h (btrace_thread_info) <data>: New.
4286         * common/btrace-common.h (btrace_data_clear)
4287         (btrace_data_append): New.
4288         * common/btrace-common.c (btrace_data_clear)
4289         (btrace_data_append): New.
4290
4291 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
4292
4293         * nat/linux-btrace.c (linux_enable_bts): Check for
4294         PERF_ATTR_SIZE_VER5.
4295         Check for data_offset and data_size fields.  Use them.
4296
4297 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
4298
4299         * NEWS: Announce new commands "record btrace pt" and "record pt".
4300         Announce new options "set|show record btrace pt buffer-size".
4301         * btrace.c: Include "rsp-low.h".
4302         Include "inttypes.h".
4303         (btrace_add_pc): Add forward declaration.
4304         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
4305         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
4306         (btrace_compute_ftrace_pt): New.
4307         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
4308         (check_xml_btrace_version): Update version check.
4309         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
4310         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
4311         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
4312         (btrace_pt_children): New.
4313         (btrace_children): Add support for "pt".
4314         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
4315         (btrace_conf_children): Add support for "pt".
4316         * btrace.h: Include "intel-pt.h".
4317         (btrace_pt_error): New.
4318         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
4319         (btrace_data_empty): Support BTRACE_FORMAT_PT.
4320         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
4321         (struct btrace_config_pt): New.
4322         (struct btrace_config)<pt>: New.
4323         (struct btrace_data_pt_config, struct btrace_data_pt): New.
4324         (struct btrace_data)<pt>: New.
4325         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
4326         (pt): New.
4327         * features/btrace.dtd (btrace)<pt>: New.
4328         (pt, pt-config, cpu): New.
4329         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
4330         (perf_event_pt_event_type, kernel_supports_pt)
4331         (linux_supports_pt): New.
4332         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
4333         (linux_enable_bts): Free tinfo on error.
4334         (linux_enable_pt): New.
4335         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
4336         (linux_disable_pt): New.
4337         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
4338         (linux_fill_btrace_pt_config, linux_read_pt): New.
4339         (linux_read_btrace): Support BTRACE_FORMAT_PT.
4340         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
4341         (struct btrace_target_info)<pt>: New.
4342         * record-btrace.c (set_record_btrace_pt_cmdlist)
4343         (show_record_btrace_pt_cmdlist): New.
4344         (record_btrace_print_pt_conf): New.
4345         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
4346         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
4347         (cmd_record_btrace_pt_start): New.
4348         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
4349         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
4350         (_initialize_record_btrace): Add new commands.
4351         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
4352         (remote_protocol_features): Add "Qbtrace:pt".
4353         Add "Qbtrace-conf:pt:size".
4354         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
4355         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
4356         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
4357         (_initialize_remote): Add new commands.
4358
4359 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
4360
4361         * configure.ac: check for libipt
4362         * configure: Regenerate.
4363         * config.in: Regenerate.
4364         * Makefile.in (LIBIPT): New.
4365         (CLIBS): Add $LIBIPT.
4366         * NEWS: document new configure options
4367
4368 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4369
4370         * compile/compile-object-load.c (compile_object_load): Replace debug
4371         message "lookup undefined ELF symbol" by 3 more specific messages.
4372
4373 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
4374
4375         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
4376         (rl78_register_type): Add case for RL78_PSW_REGNUM.
4377         (rl78_gdbarch_init): Initialize rl78_psw_type.
4378
4379 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
4380
4381         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4382         Update commentary.  Always refresh the registers when frame
4383         information has changed.
4384         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
4385         Change return type to int.  Return 1 if frame information has
4386         changed, 0 otherwise.
4387         (tui_before_prompt): Update commentary.
4388         * tui/tui-stack.h (tui_show_frame_info): Change return type to
4389         int.
4390
4391 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
4392
4393         PR tui/13378
4394         * frame.c (select_frame): Remove reference to
4395         deprecated_selected_frame_level_changed_hook.
4396         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
4397         declaration.
4398         * stack.c (deprecated_selected_frame_level_changed_hook):
4399         Likewise.
4400         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
4401         Rename to ...
4402         (tui_refresh_frame_and_register_information): ... this.  Bail
4403         out if there is no stack.  Don't update register information
4404         unless registers_too_p is true.
4405         (tui_print_frame_info_listing_hook): Rename to ...
4406         (tui_dummy_print_frame_info_listing_hook): ... this.
4407         (tui_before_prompt): New function.
4408         (tui_normal_stop): New function.
4409         (tui_before_prompt_observer): New observer.
4410         (tui_normal_stop_observer): New observer.
4411         (tui_install_hooks): Set
4412         deprecated_print_frame_info_listing_hook to
4413         tui_dummy_print_frame_info_listing_hook.  Register
4414         tui_before_prompt_observer to call tui_before_prompt and
4415         tui_normal_stop_observer to call tui_normal_stop.  Remove
4416         reference to deprecated_selected_frame_level_changed_hook.
4417         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
4418         and tui_normal_stop_observer.  Remove reference to
4419         deprecated_selected_frame_level_changed_hook.
4420
4421 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
4422
4423         PR tui/13378
4424         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
4425         return an int instead of void.  Return whether the locator
4426         window has changed.
4427         (tui_show_frame_info): If the locator info has not changed, then
4428         bail out early to avoid refreshing the windows.
4429
4430 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
4431
4432         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
4433         LOCATOR_WIN to tui_alloc_content.
4434
4435 2015-06-30  Yao Qi  <yao.qi@linaro.org>
4436
4437         PR tdep/18605
4438         * arm-tdep.c (arm_get_next_pc_raw): Break for media
4439         instructions.
4440
4441 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
4442
4443         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
4444         (rx_dwarf_reg_to_regnum): New function.
4445         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
4446         unwinding.
4447
4448 2015-06-29  Pedro Alves  <palves@redhat.com>
4449
4450         PR threads/18127
4451         * infcall.c (run_inferior_call): On infcall success, if the thread
4452         was marked stopped before, reset it back to stopped.
4453         * infrun.c (resume): Don't suppress the set_running calls when
4454         doing an infcall.
4455         (normal_stop): Only discard the finish_thread_state cleanup if the
4456         infcall succeeded.
4457
4458 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
4459
4460         * MAINTAINERS (Write After Approval): Update my email address.
4461
4462 2015-06-26  Keith Seitz  <keiths@redhat.com>
4463             Doug Evans  <dje@google.com>
4464
4465         PR 16253
4466         * block.c (block_lookup_symbol): For non-function blocks,
4467         continue to search for a symbol with an exact domain match
4468         Otherwise, return any previously found "best domain" symbol.
4469         (block_lookup_symbol_primary): Likewise.
4470
4471 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
4472
4473         * NEWS: Mention the new option "history remove-duplicates".
4474         * top.c (history_remove_duplicates): New static variable.
4475         (show_history_remove_duplicates): New static function.
4476         (gdb_add_history): Conditionally remove duplicate history
4477         entries.
4478         (init_main): Add "history remove-duplicates" option.
4479
4480 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
4481
4482         * tui/tui-win.c (focus_completer): New static function.
4483         (_initialize_tui_win): Set the completion function of the
4484         "focus" command to focus_completer.
4485
4486 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
4487
4488         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
4489         and language_asm..
4490         * symtab.c (find_function_start_sal): Likewise.
4491
4492 2015-06-25  Gary Benson  <gbenson@redhat.com>
4493
4494         * solib.c (solib_find_1): Set local variable sysroot to NULL if
4495         it is the empty string after trailing slashes have been stripped.
4496
4497 2015-06-25  Gary Benson  <gbenson@redhat.com>
4498
4499         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
4500         * infrun.c (follow_exec): Likewise.
4501         * remote.c (remote_filesystem_is_local): Likewise.
4502         * solib.c (solib_find_1): Likewise.
4503
4504 2015-06-24  Keith Seitz  <keiths@redhat.com>
4505
4506         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
4507         return value from lrealpath.
4508
4509 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
4510
4511         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
4512
4513 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
4514
4515         * remote-sim.c: Include gdb_bfd.h.
4516         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
4517         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
4518
4519 2015-06-24  Yao Qi  <yao.qi@linaro.org>
4520
4521         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
4522         set_gdbarch_get_siginfo_type.
4523         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
4524         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4525         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4526         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
4527         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
4528         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4529         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
4530         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
4531         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
4532         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
4533
4534 2015-06-24  Gary Benson  <gbenson@redhat.com>
4535
4536         * common/buffer.c (stdint.h): Do not include.
4537         * common/print-utils.c (stdint.h): Likewise.
4538         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
4539         * compile/compile-c-types.c (gdb_assert.h): Likewise.
4540         * ft32-tdep.c (gdb_assert.h): Likewise.
4541         * guile/scm-utils.c (stdint.h): Likewise.
4542         * i386-linux-tdep.c (stdint.h): Likewise.
4543         * i386-tdep.c (stdint.h): Likewise.
4544         * nat/linux-btrace.c (stdint.h): Likewise.
4545         * nat/linux-btrace.h (stdint.h): Likewise.
4546         * nat/linux-ptrace.c (stdint.h): Likewise.
4547         * nat/mips-linux-watch.h (stdint.h): Likewise.
4548         * ppc-linux-nat.c (stdint.h): Likewise.
4549         * python/python-internal.h (stdint.h): Likewise.
4550         * stub-termcap.c (stdlib.h): Likewise.
4551         * target/target.h (stdint.h): Likewise.
4552         * xtensa-linux-nat.c (stdint.h): Likewise.
4553
4554 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
4555
4556         * top.c (init_history): Look at errno after calling strtol to
4557         properly map large GDBHISTSIZE values to infinity.
4558
4559 2015-06-23  Doug Evans  <dje@google.com>
4560
4561         * inferior.h (struct inferior_suspend_state): Delete, unused.
4562         All references deleted.
4563
4564 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
4565
4566         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
4567         (microblaze_push_dummy_call): Likewise.
4568         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
4569         and set_gdbarch_push_dummy_call.
4570
4571 2015-06-23  Yao Qi  <yao.qi@linaro.org>
4572
4573         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4574         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
4575         (amd64_linux_store_inferior_registers): Likewise.
4576         * arm-linux-nat.c (fetch_fpregister): Likewise.
4577         (fetch_fpregs, store_fpregister): Likewise.
4578         (store_fpregister, store_fpregs): Likewise.
4579         (fetch_register, fetch_regs): Likewise.
4580         (store_register, store_regs): Likewise.
4581         (fetch_vfp_regs, store_vfp_regs): Likewise.
4582         (arm_linux_read_description): Check have_ptrace_getregset is
4583         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
4584         or TRIBOOL_FALSE.
4585         * i386-linux-nat.c (fetch_xstateregs): Check
4586         have_ptrace_getregset is not TRIBOOL_TRUE.
4587         (store_xstateregs): Likewise.
4588         * linux-nat.c (have_ptrace_getregset): Change its type to
4589         enum tribool.
4590         * linux-nat.h (tribool): New enum.
4591         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
4592         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
4593
4594 2015-06-19  Doug Evans  <dje@google.com>
4595
4596         * NEWS: Mention Sun's version of stabs is no longer supported.
4597         * elfread.c (free_elfinfo): Delete.  All uses updated.
4598         (elfstab_offset_sections): Delete.  All uses updated.
4599         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
4600         * psympriv.h (partial_symtab) <section_offsets>: Delete.
4601         All uses updated.
4602         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
4603         All callers updated.
4604
4605 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
4606
4607         * common/rsp-low.c (needs_escaping): New.
4608         (remote_escape_output): Add unit_size parameter. Refactor to
4609         support multi-byte addressable units.  Rename parameters.
4610         * common/rsp-low.h (remote_escape_output): Add unit_size
4611         parameter and rename others. Update doc.
4612         * remote.c (align_for_efficient_write): New.
4613         (remote_write_bytes_aux): Add unit_size parameter and use it.
4614         Rename some variables.  Update doc.
4615         (remote_xfer_partial): Get unit size and use it.
4616         (remote_read_bytes_1): Add unit_size parameter and use it.
4617         Rename some variables. Update doc.
4618         (remote_write_bytes): Same.
4619         (remote_xfer_live_readonly_partial): Same.
4620         (remote_read_bytes): Same.
4621         (remote_flash_write): Update call to remote_write_bytes_aux.
4622         (remote_write_qxfer): Update call to remote_escape_output.
4623         (remote_search_memory): Same.
4624         (remote_hostio_pwrite): Same.
4625
4626 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
4627
4628         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
4629         locations as inserted.
4630         Update and expand comment about permanent locations.
4631         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
4632         Move comment to add_location_to_breakpoint.
4633         (update_global_location_list): Don't error out if a permanent
4634         breakpoint is not marked inserted.
4635         Don't error out if a non-permanent breakpoint location is inserted on
4636         top of a permanent breakpoint.
4637
4638 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
4639
4640         * breakpoint.c (make_breakpoint_permanent): Remove unused
4641         function.
4642         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
4643
4644 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
4645
4646         PR gdb/16999
4647         * NEWS: Mention new GDBHISTSIZE behavior.
4648         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
4649         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
4650
4651 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
4652
4653         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
4654         * top.c (init_history): Read from GDBHISTSIZE instead of
4655         HISTSIZE.
4656         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
4657
4658 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
4659
4660         * top.c (gdb_safe_append_history): Do not call
4661         history_truncate_file if the history is not stifled.
4662
4663 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4664
4665         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
4666         * syscalls/s390x-linux.xml: Likewise.
4667
4668 2015-06-16  Michael Eager  <eager@eagercon.com>
4669
4670         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
4671
4672 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
4673
4674         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
4675         target_terminal_ours_for_output() before calling
4676         tui_show_frame_info(), and restore the original terminal
4677         settings afterwards.
4678
4679 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
4680
4681         * arm-linux-nat.c: Include nat/linux-ptrace.h.
4682
4683 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
4684
4685         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
4686         memory unit size.
4687         (mi_cmd_data_write_memory_bytes): Same.
4688
4689 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
4690
4691         * corefile.c (write_memory): Update doc.
4692         * gdbcore.h (write_memory): Same.
4693
4694 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4695
4696         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
4697         (dump_mapping_p): Use it for parameter filterflags.
4698         (linux_find_memory_regions_full): Use it for variable filterflags.
4699
4700 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
4701             Jan Kratochvil  <jan.kratochvil@redhat.com>
4702
4703         Merge multiple hex conversions.
4704         * monitor.c: Include rsp-low.h.
4705         (fromhex): Remove definition.
4706
4707 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
4708             Jan Kratochvil  <jan.kratochvil@redhat.com>
4709
4710         Move utility functions to common/.
4711         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
4712         Move defs to common/common-utils.c.
4713         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
4714         (skip_to_space_const): Move decls to common/common-utils.h.
4715         * common/common-defs.h: Move include of common-types.h before
4716         common-utils.h.
4717         * common/common-utils.c: Include host-defs.h and ctype.h.
4718         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
4719         from utils.c.
4720         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
4721         cli/cli-utils.c.
4722         * common/common-utils.h (strtoulst): Move decl from utils.h.
4723         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
4724         Move from cli/cli-utils.h.
4725         * common/host-defs.h: Include limits.h.
4726         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
4727         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
4728         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
4729         common/common-utils.h.
4730         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
4731         (strtoulst): Move to common/common-utils.c.
4732         * utils.h (strtoulst): Moved decl to common/common-utils.h.
4733
4734 2015-06-15  Yao Qi  <yao.qi@linaro.org>
4735
4736         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
4737
4738 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
4739
4740         * build-id.c: Don't include elf-bfd.h.
4741         (build_id_bfd_get): Use bfd_build_id.
4742         (build_id_verify): Ditto.
4743         * build-id.h: Ditto.
4744         (find_separate_debug_file_by_buildid): Ditto.
4745         * python/py-objfile.c: Don't include elf-bfd.h.
4746         (objfpy_get_build_id) Use bfd_build_id.
4747         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
4748         * coffread.c: Include build-id.h.
4749         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
4750
4751 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
4752
4753         * windows-nat.c (do_windows_fetch_inferior_registers)
4754         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
4755         conditional with __CYGWIN__.
4756
4757 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
4758
4759         * completer.c: Add arch-utils.h include.
4760         (enum reg_completer_targets): New enum.
4761         (reg_or_group_completer_1): New function containing old
4762         reg_or_group_completer, add and use new parameter to control what
4763         is completed on.  Use get_current_arch rather than architecture of
4764         currently selected frame.
4765         (reg_or_group_completer): Call new reg_or_group_completer_1.
4766         (reggroup_completer): Call new reg_or_group_completer_1.
4767         * completer.h (reggroup_completer): Add declaration.
4768         * tui/tui-regs.c: Add 'completer.h' include.
4769         (tui_reg_next_command): Renamed to...
4770         (tui_reg_next): ...this.  Adjust parameters and return rather than
4771         display new group.
4772         (tui_reg_prev_command): Renamed to...
4773         (tui_reg_prev): ...this.  Adjust parameters and return rather than
4774         display new group.
4775         (tui_reg_float_command): Delete.
4776         (tui_reg_general_command): Delete.
4777         (tui_reg_system_command): Delete.
4778         (tui_reg_command): Rewrite to perform switching of register group.
4779         Add header comment.
4780         (tuireglist): Remove.
4781         (tui_reggroup_completer): New function.
4782         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
4783         creation of 'tui reg' command.
4784         * NEWS: Add comment about 'tui reg' changes.
4785
4786 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
4787
4788         * target.c (target_read): Consider addressable unit size when
4789         reading from a memory object.
4790         (read_memory_robust): Same.
4791         (read_whatever_is_readable): Same.
4792         (target_write_with_progress): Consider addressable unit size
4793         when writing to a memory object.
4794         * target.h (target_read): Update documentation.
4795         (target_write): Add documentation.
4796
4797 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
4798
4799         * arch-utils.h (default_addressable_memory_unit_size): New.
4800         * arch-utils.c (default_addressable_memory_unit_size): New.
4801         * gdbarch.sh (addressable_memory_unit_size): New.
4802         * gdbarch.h: Re-generate.
4803         * gdbarch.c: Re-generate.
4804
4805 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
4806
4807         * target.c (target_read): Rename variables and use
4808         TARGET_XFER_E_IO.
4809         (target_read_with_progress): Same.
4810         (read_memory_robust): Constify parameters and rename
4811         variables.
4812         (read_whatever_is_readable): Constify parameters,
4813         rename variables, adjust formatting.
4814         * target.h (read_memory_robust): Constify parameters.
4815
4816 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
4817
4818         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
4819         synthetic (non-AltiVec) vector types.
4820         (ppc64_sysv_abi_return_value): Likewise.
4821
4822 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
4823
4824         PR breakpoints/16465
4825         * breakpoint.c (create_breakpoint): Save extra_string for
4826         pending breakpoints.
4827
4828 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4829
4830         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
4831         and bt_mask to CORE_ADDR.
4832
4833 2015-06-11  Gary Benson <gbenson@redhat.com>
4834
4835         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
4836         (mnsh_recv_message): Likewise.
4837
4838 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4839
4840         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
4841         long long int and plongest instead of %ll.
4842
4843 2015-06-11  Gary Benson <gbenson@redhat.com>
4844
4845         * nat/linux-namespaces.c (gdb_wait.h): New include.
4846         (sys/wait.h): Do not include.
4847
4848 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
4849
4850         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
4851         end_sequence is true.
4852
4853 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4854
4855         Code cleanup.
4856         * solib-target.c (library_list_start_list): Use explicit NULL
4857         comparison.
4858
4859 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4860
4861         * solib-target.c (library_list_start_list): Do not dereference
4862         variable version in its initialization.  Make the VERSION check handle
4863         NULL.
4864         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
4865
4866 2015-06-10  Gary Benson <gbenson@redhat.com>
4867
4868         * NEWS: Announce support for direct access of executable and
4869         shared library files when attaching to inferiors in containers
4870         on GNU/Linux systems.
4871
4872 2015-06-10  Gary Benson <gbenson@redhat.com>
4873
4874         * remote.c (struct remote_state) <fs_pid>: New field.
4875         (new_remote_state): Initialize the above.
4876         (PACKET_vFile_setfs): New enum value.
4877         (remote_hostio_set_filesystem): New function.
4878         (remote_hostio_open): Call the above.
4879         (remote_hostio_unlink): Likewise.
4880         (remote_hostio_readlink): Likewise.
4881         (_initialize_remote): Register new "set/show remote
4882         hostio-setfs-packet" command.
4883         * NEWS: Announce new vFile:setfs packet.
4884
4885 2015-06-10  Gary Benson <gbenson@redhat.com>
4886
4887         * linux-nat.c (nat/linux-namespaces.h): New include.
4888         (fileio.h): Likewise.
4889         (linux_nat_filesystem_is_local): New function.
4890         (linux_nat_fileio_pid_of): Likewise.
4891         (linux_nat_fileio_open): Likewise.
4892         (linux_nat_fileio_readlink): Likewise.
4893         (linux_nat_fileio_unlink): Likewise.
4894         (linux_nat_add_target): Initialize to_filesystem_is_local,
4895         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
4896         (_initialize_linux_nat): New "set/show debug linux-namespaces"
4897         commands.
4898         * NEWS: Mention new "set/show debug linux-namespaces" commands.
4899
4900 2015-06-10  Gary Benson <gbenson@redhat.com>
4901
4902         * target.h (struct inferior): New forward declaration.
4903         (struct target_ops) <to_filesystem_is_local>: Update comment.
4904         (struct target_ops) <to_fileio_open>: New argument inf.
4905         Update comment.  All implementations updated.
4906         (struct target_ops) <to_fileio_unlink>: Likewise.
4907         (struct target_ops) <to_fileio_readlink>: Likewise.
4908         (target_filesystem_is_local): Update comment.
4909         (target_fileio_open): New argument inf.  Update comment.
4910         (target_fileio_unlink): Likewise.
4911         (target_fileio_readlink): Likewise.
4912         (target_fileio_read_alloc): Likewise.
4913         (target_fileio_read_stralloc): Likewise.
4914         * target.c (target_fileio_open): New argument inf.
4915         Pass inf to implementation.  Update debug printing.
4916         (target_fileio_unlink): Likewise.
4917         (target_fileio_readlink): Likewise.
4918         (target_fileio_read_alloc_1): New argument inf. Pass inf
4919         to target_fileio_open.
4920         (target_fileio_read_alloc): New argument inf. Pass inf to
4921         target_fileio_read_alloc_1.
4922         (target_fileio_read_stralloc): Likewise.
4923         * gdb_bfd.c (inferior.h): New include.
4924         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
4925         argument with new argument "inferior".  Pass inferior to
4926         target_fileio_open.
4927         (gdb_bfd_open): Supply inferior argument to
4928         gdb_bfd_iovec_fileio_open.
4929         * linux-tdep.c (linux_info_proc): Supply inf argument to
4930         relevant target_fileio calls.
4931         (linux_find_memory_regions_full): Likewise.
4932         (linux_fill_prpsinfo): Likewise.
4933         * remote.c (remote_filesystem_is_local): Supply inf
4934         argument to remote_hostio_open.
4935         (remote_file_put): Likewise.
4936         (remote_file_get): Likewise.
4937         (remote_file_delete): Supply inf argument to
4938         remote_hostio_unlink.
4939
4940 2015-06-10  Gary Benson <gbenson@redhat.com>
4941
4942         * inf-child.c (inf_child_fileio_open): Replace comment.
4943         (inf_child_fileio_pwrite): Likewise.
4944         (inf_child_fileio_pread): Likewise.
4945         (inf_child_fileio_fstat): Insert blank line before comment.
4946         (inf_child_fileio_close): Replace comment.
4947         (inf_child_fileio_unlink): Likewise.
4948         (inf_child_fileio_readlink): Likewise.
4949         * remote.c (remote_hostio_open): Likewise.
4950         (remote_hostio_pread): Likewise.
4951         (remote_hostio_pwrite): Likewise.
4952         (remote_hostio_close): Likewise.
4953         (remote_hostio_unlink): Likewise.
4954         (remote_hostio_readlink): Likewise.
4955         (remote_hostio_fstat): Likewise.
4956         (remote_filesystem_is_local): Likewise.
4957         * target.c (target_fileio_open): Likewise.
4958         (target_fileio_pwrite): Likewise.
4959         (target_fileio_pread): Likewise.
4960         (target_fileio_fstat): Insert blank line before comment.
4961         (target_fileio_close): Replace comment.
4962         (target_fileio_unlink): Likewise.
4963         (target_fileio_readlink): Likewise.
4964         (target_fileio_read_alloc): Likewise.
4965         (target_fileio_read_stralloc): Likewise.
4966
4967 2015-06-10  Gary Benson <gbenson@redhat.com>
4968
4969         * linux-thread-db.c (nat/linux-namespaces.h): New include.
4970         (check_pid_namespace_match): Use linux_ns_same rather than
4971         linux_proc_pid_get_ns to spot PID namespace mismatches.
4972         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
4973         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
4974
4975 2015-06-10  Gary Benson <gbenson@redhat.com>
4976
4977         * configure.ac (AC_CHECK_FUNCS): Add setns.
4978         * config.in: Regenerate.
4979         * configure: Likewise.
4980         * nat/linux-namespaces.h: New file.
4981         * nat/linux-namespaces.c: Likewise.
4982         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
4983         (linux-namespaces.o): New rule.
4984         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
4985         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4986         * config/arm/linux.mh (NATDEPFILES): Likewise.
4987         * config/i386/linux.mh (NATDEPFILES): Likewise.
4988         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4989         * config/ia64/linux.mh (NATDEPFILES): Likewise.
4990         * config/m32r/linux.mh (NATDEPFILES): Likewise.
4991         * config/m68k/linux.mh (NATDEPFILES): Likewise.
4992         * config/mips/linux.mh (NATDEPFILES): Likewise.
4993         * config/pa/linux.mh (NATDEPFILES): Likewise.
4994         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4995         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4996         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4997         * config/s390/linux.mh (NATDEPFILES): Likewise.
4998         * config/sparc/linux.mh (NATDEPFILES): Likewise.
4999         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
5000         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
5001         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
5002
5003 2015-06-10  Gary Benson <gbenson@redhat.com>
5004
5005         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
5006         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
5007         (make_cleanup_close): Likewise.
5008         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
5009         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
5010         (make_cleanup_close): Likewise.
5011
5012 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
5013
5014         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
5015         from SuspendThread().
5016
5017 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
5018
5019         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
5020         from OutputDebugString.
5021
5022 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
5023                         Mircea Gherzan  <mircea.gherzan@intel.com>
5024
5025         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
5026         MPX_BT_MASK_32): New macros.
5027         (i386_mpx_set_bounds): New function that implements
5028         the command "set-mpx-bound".
5029         (i386_mpx_enabled): Helper function to test MPX availability.
5030         (i386_mpx_bd_base): Helper function to calculate the base directory
5031         address.
5032         (i386_mpx_get_bt_entry): Helper function to access a bound
5033         table entry.
5034         (i386_mpx_print_bounds): Effectively display bound information.
5035         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
5036         "show mpx".
5037         (_initialize_i386_tdep):
5038         Add "bound" to the commands "show mpx" and "set mpx" commands.
5039         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
5040         and "show mpx" commands.
5041         * NEWS: List new commands for MPX support.
5042
5043 2015-06-09  Gary Benson <gbenson@redhat.com>
5044
5045         * common/fileio.h (fileio_to_host_mode): New declaration.
5046         * common/fileio.c (fileio_to_host_mode): New Function.
5047         * inf-child.c (inf_child_fileio_open): Process mode argument
5048         with fileio_to_host_mode.
5049
5050 2015-06-09  Gary Benson <gbenson@redhat.com>
5051
5052         * common/fileio.c (fileio_mode_pack): Fix preprocessor
5053         conditional.
5054
5055 2015-06-05  Gary Benson <gbenson@redhat.com>
5056
5057         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
5058         * remote.c (remote_filesystem_is_local): ...here.
5059
5060 2015-06-04  Yao Qi  <yao.qi@linaro.org>
5061
5062         * gdbarch.c: Regenerate it.
5063
5064 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5065
5066         * arch-utils.c (default_infcall_munmap): New.
5067         * arch-utils.h (default_infcall_munmap): New declaration.
5068         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
5069         (munmap_list_free, munmap_listp_free_cleanup): New.
5070         (struct setup_sections_data): Add field munmap_list_headp.
5071         (setup_sections): Call munmap_list_add.
5072         (compile_object_load): New variable munmap_list_head, initialize
5073         setup_sections_data.munmap_list_headp, return munmap_list_head.
5074         * compile/compile-object-load.h (struct munmap_list): New declaration.
5075         (struct compile_module): Add field munmap_list_head.
5076         (munmap_list_free): New declaration.
5077         * compile/compile-object-run.c (struct do_module_cleanup): Add field
5078         munmap_list_head.
5079         (do_module_cleanup): Call munmap_list_free.
5080         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
5081         * gdbarch.c: Regenerate.
5082         * gdbarch.h: Regenerate.
5083         * gdbarch.sh (infcall_munmap): New.
5084         * linux-tdep.c (linux_infcall_munmap): New.
5085         (linux_init_abi): Install it.
5086
5087 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
5088
5089         PR gdb/15564
5090         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
5091
5092 2015-06-02  Yao Qi  <yao.qi@linaro.org>
5093
5094         * i386-linux-nat.c: Include linux-nat.h.
5095
5096 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5097             Jan Kratochvil  <jan.kratochvil@redhat.com>
5098
5099         PR symtab/18392
5100         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
5101         assertion.
5102         * dwarf2loc.c (chain_candidate): Likewise.
5103
5104 2015-06-01  Yao Qi  <yao.qi@linaro.org>
5105
5106         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
5107         (store_vfp_regs): Use PTRACE_SETREGSET.
5108
5109 2015-06-01  Yao Qi  <yao.qi@linaro.org>
5110
5111         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
5112         (fetch_fpregs): Likewise.
5113         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
5114         (store_fpregs): Likewise.
5115
5116 2015-06-01  Yao Qi  <yao.qi@linaro.org>
5117
5118         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
5119         (fetch_regs): Likewise.
5120         (store_regs): Use PTRACE_SETREGSET.
5121         (store_register): Likewise.
5122
5123 2015-06-01  Yao Qi  <yao.qi@linaro.org>
5124
5125         * arm-linux-nat.c (arm_linux_read_description): Check whether
5126         kernel supports PTRACE_GETREGSET.
5127
5128 2015-06-01  Yao Qi  <yao.qi@linaro.org>
5129
5130         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
5131         * linux-nat.c: ... here.
5132         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
5133         to ...
5134         * linux-nat.h: ... here.
5135
5136 2015-06-01  Yao Qi  <yao.qi@linaro.org>
5137
5138         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
5139         * i386-linux-nat.c: Likewise.
5140         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
5141         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
5142         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5143         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
5144         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5145
5146 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
5147
5148         * go32-nat.c (go32_xfer_memory): Fix the return value to be
5149         compatible to what read_child and write_child return.  This
5150         unbreaks that DJGPP build of GDB which was broken since v7.7.
5151
5152 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
5153
5154         * MAINTAINERS (Write After Approval): Add Martin Galvan.
5155
5156 2015-05-29  Roland McGrath  <mcgrathr@google.com>
5157
5158         PR gdb/18464
5159         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
5160         rather than internal_error for an unrecognized value.
5161
5162 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
5163
5164         * xtensa-tdep.c (xtensa_pseudo_register_read)
5165         (xtensa_pseudo_register_write): Don't alias last pseudo register
5166         to a1.
5167
5168 2015-05-28  Don Breazeal  <donb@codesourcery.com>
5169
5170         * infrun.c (follow_fork_inferior): Ensure the use of
5171         process-style ptids (pid,0,0) in verbose/debug "Detaching"
5172         messages.
5173
5174 2015-05-28  Doug Evans  <dje@google.com>
5175
5176         * dwarf2read.c (record_line_ftype): Remove, duplicate.
5177
5178 2015-05-28  Yao Qi  <yao.qi@linaro.org>
5179
5180         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
5181         (arm_linux_fetch_inferior_registers): Use
5182         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
5183         (arm_linux_store_inferior_registers): Likewise.
5184         (arm_linux_read_description): Don't set
5185         arm_linux_has_wmmx_registers.
5186         * arm-tdep.c (arm_gdbarch_init): Set
5187         tdep->have_wmmx_registers according target descriptions.
5188         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
5189         field.
5190
5191 2015-05-28  Yao Qi  <yao.qi@linaro.org>
5192
5193         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
5194         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
5195         instead of arm_linux_vfp_register_count.
5196         (store_vfp_regs): Likewise.
5197         (arm_linux_fetch_inferior_registers): Likewise.
5198         (arm_linux_store_inferior_registers): Likewise.
5199         (arm_linux_read_description): Don't set
5200         arm_linux_vfp_register_count.
5201         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
5202         Adjust.
5203         * arm-tdep.c (arm_gdbarch_init): Add assert on
5204         vfp_register_count.
5205         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
5206         field to vfp_register_count.  All users updated.
5207
5208 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
5209
5210         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
5211         ELFOSABI_GNU binaries.
5212
5213 2015-05-27  Doug Evans  <dje@google.com>
5214
5215         * dwarf2read.c (lnp_state_machine): New typedef.
5216         (lnp_reader_state): New typedef.
5217         (dwarf_record_line_1): Renamed from dwarf_record_line.
5218         All callers updated.
5219         (dwarf_record_line): New function.
5220         (init_lnp_state_machine): New function.
5221         (check_line_address): Replace p_record_line parameter with state.
5222         All callers updated.
5223         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
5224         Update to record state in lnp_state_machine.
5225
5226 2015-05-27  Doug Evans  <dje@google.com>
5227
5228         * dwarf2read.c (record_line_ftype): New typedef.
5229         (check_line_address): New function.
5230         (dwarf_decode_lines_1): Call it.
5231
5232 2015-05-27  Doug Evans  <dje@google.com>
5233
5234         * NEWS: Mention "set debug dwarf-line".
5235         * dwarf2read.c (dwarf_line_debug): New static global.
5236         (add_include_dir): Add debug dwarf-line support.
5237         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
5238         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
5239
5240 2015-05-27  Doug Evans  <dje@google.com>
5241
5242         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
5243         All callers updated.
5244         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
5245         * cp-support.h (cp_lookup_nested_symbol): Update.
5246
5247 2015-05-27  Doug Evans  <dje@google.com>
5248
5249         PR symtab/18258
5250         * block.c (block_find_symbol): New function.
5251         (block_find_non_opaque_type): Ditto.
5252         (block_find_non_opaque_type_preferred): Ditto.
5253         * block.h (block_symbol_matcher_ftype): New typedef.
5254         (block_find_symbol): Declare.
5255         (block_find_non_opaque_type): Ditto.
5256         (block_find_non_opaque_type_preferred): Ditto.
5257         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
5258         * psymtab.c (psym_lookup_symbol): Ditto.
5259         * symtab.c (basic_lookup_transparent_type_1): New function.
5260         (basic_lookup_transparent_type): Call it.
5261
5262 2015-05-27  Yao Qi  <yao.qi@linaro.org>
5263
5264         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
5265         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
5266
5267 2015-05-27  Yao Qi  <yao.qi@linaro.org>
5268
5269         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
5270         before operator &&.
5271         (aarch64_record_load_store): Likewise.
5272
5273 2015-05-26  Doug Evans  <dje@google.com>
5274
5275         PR c++/18141, c++/18417.
5276         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
5277         a typedef.
5278
5279 2015-05-26  Doug Evans  <dje@google.com>
5280
5281         * NEWS: Add entries for command renamings.
5282         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
5283         All uses updated.
5284         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
5285         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
5286         All uses updated.
5287         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
5288         All callers updated.  Fix spelling of DWARF in help text.
5289         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
5290         All uses updated.
5291         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
5292         All uses updated.
5293         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
5294         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
5295         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
5296         All uses updated.
5297         (show_dwarf_always_disassemble): Renamed from
5298         show_dwarf2_always_disassemble.  All callers updated.
5299         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
5300         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
5301         "set/show dwarf max-cache-age".  Rename
5302         "set/show dwarf2 always-disassemble" to
5303         "set/show dwarf always-disassemble".  Rename
5304         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
5305         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
5306
5307 2015-05-26  Doug Evans  <dje@google.com>
5308
5309         PR python/18438
5310         * python/py-lazy-string.c (stpy_convert_to_value): Use
5311         gdbpy_gdb_memory_error not PyExc_MemoryError.
5312         (gdbpy_create_lazy_string_object): Ditto.
5313
5314 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
5315
5316         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
5317
5318 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
5319
5320         * tui/tui-regs.c (tui_reg_prev_command): New function.
5321         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
5322         * reggroups.c (reggroup_prev): New function.
5323         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
5324
5325 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
5326             Yao Qi  <yao.qi@linaro.org>
5327
5328         * aarch64-linux-tdep.c: Include linux-record.h and
5329         record-full.h.
5330         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
5331         (aarch64_syscall): New enum.
5332         (aarch64_canonicalize_syscall): New function.
5333         (aarch64_all_but_pc_registers_record): New function.
5334         (aarch64_linux_syscall_record): New function.
5335         (aarch64_linux_init_abi): Install AArch64 process record
5336         handler.  Update to handle syscall recording.
5337         * aarch64-tdep.c: Include record.h and record-full.h.
5338         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
5339         (struct aarch64_mem_r): Define.
5340         (aarch64_record_result): New enum.
5341         (struct insn_decode_record): Define.
5342         (insn_decode_record): New typedef.
5343         (aarch64_record_data_proc_reg): New function.
5344         (aarch64_record_data_proc_imm): New function.
5345         (aarch64_record_branch_except_sys): New function.
5346         (aarch64_record_load_store): New function.
5347         (aarch64_record_data_proc_simd_fp): New function.
5348         (aarch64_record_asimd_load_store): New function.
5349         (aarch64_record_decode_insn_handler): New function.
5350         (deallocate_reg_mem): New function.
5351         (aarch64_process_record): New function.
5352         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
5353         New field.
5354         (aarch64_process_record): New extern declaration.
5355         * configure.tgt: Add linux-record.o to gdb_target_obs.
5356         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
5357
5358 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
5359
5360         * NEWS: Add a note on process record-replay support on aarch64*-linux*
5361         targets.
5362
5363 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
5364
5365         * amd64-tdep.c: Replace in_function_epilogue_p with
5366         stack_frame_destroyed_p throughout.
5367         * arch-utils.c: Ditto.
5368         * arch-utils.h: Ditto.
5369         * arm-tdep.c: Ditto.
5370         * breakpoint.c: Ditto.
5371         * gdbarch.sh: Ditto.
5372         * hppa-tdep.c: Ditto.
5373         * i386-tdep.c: Ditto.
5374         * mips-tdep.c: Ditto.
5375         * nios2-tdep.c: Ditto.
5376         * rs6000-tdep.c: Ditto.
5377         * s390-linux-tdep.c: Ditto.
5378         * score-tdep.c: Ditto.
5379         * sh-tdep.c: Ditto.
5380         * sparc-tdep.c: Ditto.
5381         * sparc-tdep.h: Ditto.
5382         * sparc64-tdep.c: Ditto.
5383         * spu-tdep.c: Ditto.
5384         * tic6x-tdep.c: Ditto.
5385         * tilegx-tdep.c: Ditto.
5386         * xstormy16-tdep.c: Ditto.
5387         * gdbarch.c, gdbarch.h: Re-generated.
5388
5389 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
5390
5391         * NEWS: Mention 'tui enable' and 'tui disable'.
5392         * tui/tui.c (tui_enable_command): New function.
5393         (tui_disable_command): New function.
5394         (_initialize_tui): New function.
5395
5396 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5397
5398         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
5399
5400 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5401
5402         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
5403         buf_ptr is freed.
5404
5405 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5406
5407         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
5408         into ...
5409         (tui_set_layout_for_display_command): ...here, before calling
5410         tui_set_layout.  Only set the layout if gdb has not already
5411         entered the TUI_FAILURE state.
5412
5413 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5414
5415         * tui/tui-layout.c (layout_completer): New function.
5416         (_initialize_tui_layout): Set completer on layout command.
5417
5418 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5419
5420         * tui/tui-layout.c (tui_set_layout): Remove
5421         tui_register_display_type parameter.  Remove all checking of this
5422         parameter, and reindent function.  Update header comment.
5423         (tui_set_layout_for_display_command): Rename to...
5424         (tui_set_layout_by_name): ...this, and don't check for different
5425         register class types, don't pass a tui_register_display_type to
5426         tui_set_layout.  Update header comment.
5427         (layout_names): Remove register set specific names.
5428         * tui/tui-layout.h (tui_set_layout): Remove
5429         tui_register_display_type parameter.
5430         * tui/tui.c (tui_rl_change_windows): Don't pass a
5431         tui_register_display_type to tui_set_layout.
5432         (tui_rl_delete_other_windows): Likewise.
5433         (tui_enable): Likewise.
5434         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
5435         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
5436         (TUI_GENERAL_REGS_NAME): Remove.
5437         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
5438         (TUI_SPECIAL_REGS_NAME): Remove.
5439         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
5440         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
5441         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
5442         (enum tui_register_display_type): Remove.
5443         (struct tui_layout_def): Remove regs_display_type and
5444         float_regs_display_type fields.
5445         (struct tui_data_info): Remove regs_display_type field.
5446         (tui_layout_command): Use new name for
5447         tui_set_layout_for_display_command.
5448         * tui/tui-data.c (layout_def): Don't initialise removed fields.
5449         (tui_clear_win_detail): Don't initialise removed fields of
5450         win_info.
5451         * tui/tui-regs.c (tui_show_registers): Use new name for
5452         tui_set_layout_for_display_command.
5453         * tui/tui.h (tui_set_layout_for_display_command): Rename
5454         declaration to...
5455         (tui_set_layout_by_name): ...this.
5456         * printcmd.c (display_command): Remove tui related layout call,
5457         and reindent.
5458
5459 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
5460
5461         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
5462         (handle_inferior_event): New function.
5463
5464 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
5465
5466         * ada-lang.c (to_fixed_array_type): Rename local variable
5467         typename into type_name.
5468
5469 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5470
5471         Fix ASAN crash for gdb.compile/compile.exp.
5472         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
5473
5474 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5475
5476         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
5477         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
5478         * compile/compile-object-load.c (setup_sections, compile_object_load):
5479         Likewise.
5480         * compile/compile.c (compile_to_object): Likewise.
5481
5482 2015-05-16  Doug Evans  <xdje42@gmail.com>
5483
5484         * NEWS: Mention support for unbuffered Guile memory ports.
5485         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
5486         (ioscm_lseek_address): Improve overflow calculation.
5487         (gdbscm_memory_port_fill_input): Add assert.
5488         (gdbscm_memory_port_write): Handle unbuffered ports.
5489         Handle large writes identical to Guile's fport_write.
5490         (gdbscm_memory_port_seek): Fix seeking past end check.
5491         (gdbscm_memory_port_close): Handle closing unbuffered port.
5492         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
5493         (ioscm_init_memory_port): Handle unbuffered ports.
5494         (ioscm_reinit_memory_port): Ditto.
5495         (ioscm_init_memory_port): Update size calculation.
5496         (gdbscm_open_memory): Support zero sized ports.
5497
5498 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5499
5500         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
5501         variable compiler warnings.
5502
5503 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5504
5505         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
5506
5507 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5508             Phil Muldoon  <pmuldoon@redhat.com>
5509
5510         * NEWS (Changes since GDB 7.9): Add compile print.
5511         * compile/compile-c-support.c (add_code_header, add_code_footer)
5512         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
5513         COMPILE_I_PRINT_VALUE_SCOPE.
5514         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
5515         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
5516         New.
5517         * compile/compile-object-load.c: Include block.h.
5518         (get_out_value_type): New function.
5519         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5520         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
5521         OUT_VALUE_TYPE.
5522         * compile/compile-object-load.h (struct compile_module): Add fields
5523         out_value_addr and out_value_type.
5524         * compile/compile-object-run.c: Include valprint.h and compile.h.
5525         (struct do_module_cleanup): Add fields out_value_addr and
5526         out_value_type.
5527         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5528         COMPILE_I_PRINT_VALUE_SCOPE.
5529         (compile_object_run): Propagate out_value_addr and out_value_type.
5530         Pass OUT_VALUE_ADDR.
5531         * compile/compile.c: Include valprint.h.
5532         (compile_print_value, compile_print_command): New functions.
5533         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
5534         (_initialize_compile): Update compile code help text.  Install
5535         compile_print_command.
5536         * compile/compile.h (compile_print_value): New prototype.
5537         * defs.h (enum compile_i_scope_types): Add
5538         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
5539
5540 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5541
5542         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
5543         Rely on its parameter count.
5544         (compile_object_load): Replace lookup_minimal_symbol_text by
5545         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
5546         return value.
5547         * compile/compile-object-load.h (struct compile_module): Replace
5548         func_addr by func_sym.
5549         * compile/compile-object-run.c: Include block.h.
5550         (compile_object_run): Reset module variable after it is freed.  Use
5551         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
5552
5553 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5554
5555         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
5556         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
5557         (c_compute_program): Call generate_register_struct after typedefs.
5558         * compile/compile-loc2c.c (push, pushf_register_address)
5559         (pushf_register): Cast to GCC_UINTPTR.
5560         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
5561         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
5562         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
5563         * compile/compile.c (_initialize_compile): Enable warnings for
5564         COMPILE_ARGS.
5565
5566 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5567
5568         * cli/cli-script.c (execute_control_command): Update
5569         eval_compile_command caller.
5570         * compile/compile-object-load.c (compile_object_load): Add parameters
5571         scope and scope_data.  Set them.
5572         * compile/compile-object-load.h (struct compile_module): Add fields
5573         scope and scope_data.
5574         (compile_object_load): Add parameters scope and scope_data.
5575         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
5576         scope and scope_data.
5577         (compile_object_run): Propagate the fields scope and scope_data.
5578         * compile/compile.c (compile_file_command, compile_code_command):
5579         Update eval_compile_command callers.
5580         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
5581         * compile/compile.h (eval_compile_command): Add parameter scope_data.
5582         * defs.h (struct command_line): Add field scope_data.
5583
5584 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5585
5586         * printcmd.c (struct format_data): Move it to valprint.h.
5587         (print_command_parse_format, print_value): New functions from ...
5588         (print_command_1): ... here.  Call them.
5589         * valprint.h (struct format_data): Move it here from printcmd.c.
5590         (print_command_parse_format, print_value): New declarations.
5591
5592 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5593
5594         * compile/compile-object-load.c (compile_object_load): Add
5595         COMPILE_DEBUG message.
5596
5597 2015-05-15  Jerome Guitton  <guitton@adacore.com>
5598
5599         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
5600         index to get element instead of enum value.
5601         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
5602         of index to compute length, but enum values to compute bounds.
5603         (ada_array_length): Use enum position of index instead of enum value.
5604         (pos_atr): Move position computation to...
5605         (ada_evaluate_subexp): Use enum values to compute bounds.
5606         * gdbtypes.c (discrete_position): ...this new function.
5607         * gdbtypes.h (discrete_position): New function declaration.
5608         * valprint.c (val_print_array_elements): Call discrete_position
5609         to handle array indexed by non-contiguous enumeration types.
5610
5611 2015-05-15  Jerome Guitton  <guitton@adacore.com>
5612
5613         * ada-lang.c (find_parallel_type_by_descriptive_type):
5614         Go through typedefs during lookup.
5615         (to_fixed_array_type): Add support for non-bit packed arrays
5616         as variable-length fields.
5617
5618 2015-05-15  Pedro Alves  <palves@redhat.com>
5619             Simon Marchi  <simon.marchi@ericsson.com>
5620
5621         * event-loop.c (gdb_notifier) <next_file_handler,
5622         next_poll_fds_index>: New fields.
5623         (get_next_file_handler_to_handle_and_advance): New function.
5624         (delete_file_handler): If deleting the next file handler to
5625         handle, advance to the next file handler.
5626         (gdb_wait_for_event): Bail early if no event fired.  Poll file
5627         handlers in round-robin fashion.
5628
5629 2015-05-15  Pedro Alves  <palves@redhat.com>
5630
5631         * linux-tdep.c (linux_find_memory_regions_full): Rename local
5632         'private' to 'priv'.
5633
5634 2015-05-15  Pedro Alves  <palves@redhat.com>
5635
5636         * nat/linux-nat.h: Include "target/waitstatus.h".
5637
5638 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
5639
5640         * python/py-unwind.c (struct reg_info): Move out of ...
5641         (struct cached_frame_info): ... this scope.
5642         (pending_frame_object_type, unwind_info_object_type): Make extern.
5643
5644 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
5645
5646         * ada-lang.c (ada_value_primitive_packed_val): Make sure
5647         accumSize is never negative.
5648
5649 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
5650
5651         * tui/tui-command.c: Remove include of <ctype.h>.
5652         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
5653
5654 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
5655
5656         * dwarf2read.c (die_needs_namespace): Return 1 for
5657         DW_TAG_inlined_subroutine.
5658
5659 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5660
5661         * regcache.c (regcache_cpy_no_passthrough): New declaration.
5662         (regcache_cpy_no_passthrough): Make it static, add function comment.
5663         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
5664         (regcache_cpy_no_passthrough): Remove declaration.
5665
5666 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5667
5668         * gdbthread.h (struct thread_control_state): Update comment for
5669         proceed_to_finish.
5670         * infcall.c (run_inferior_call): Update comment about
5671         proceed_to_finish.
5672         * infcmd.c (get_return_value): Update comment about stop_registers.
5673         (finish_forward): Update comment about proceed_to_finish.
5674         * infrun.c (stop_registers): Remove.
5675         (clear_proceed_status, normal_stop): Remove stop_registers handling.
5676         * infrun.h (stop_registers): Remove.
5677
5678 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5679
5680         * infcall.c (struct dummy_frame_context_saver)
5681         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
5682         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5683         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5684         New.
5685         (call_function_by_hand_dummy): Move discard_cleanups of
5686         inf_status_cleanup before dummy_frame_push.  Call
5687         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
5688         Use dummy_frame_context_saver_get_regs instead of stop_registers.
5689         * infcall.h (struct dummy_frame_context_saver)
5690         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5691         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5692         New declarations.
5693         * infcmd.c: Include infcall.h.
5694         (get_return_value): Add parameter ctx_saver, use it instead of
5695         stop_registers.
5696         (print_return_value): Add parameter ctx_saver, pass it.
5697         (struct finish_command_continuation_args): Add field ctx_saver.
5698         (finish_command_continuation): Update print_return_value caller.
5699         (finish_command_continuation_free_arg): Free also ctx_saver.
5700         (finish_forward): Call dummy_frame_context_saver_setup.
5701         * inferior.h (struct dummy_frame_context_saver): New declaration.
5702         (get_return_value): Add parameter ctx_saver.
5703         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
5704         get_return_value caller.
5705
5706 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5707
5708         * dummy-frame.c (struct dummy_frame_dtor_list): New.
5709         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
5710         (remove_dummy_frame): Process dtor_list.
5711         (pop_dummy_frame): Process dtor_list.
5712         (register_dummy_frame_dtor): Maintain dtor_list.
5713         (find_dummy_frame_dtor): Handle dtor_list.
5714         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
5715         Update comments.
5716
5717 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5718
5719         * compile/compile-object-run.c (do_module_cleanup): Add parameter
5720         registers_valid.
5721         (compile_object_run): Update do_module_cleanup caller.
5722         * dummy-frame.c: Include infcall.h.
5723         (struct dummy_frame): Update dtor comment.
5724         (remove_dummy_frame): Call dtor.
5725         (pop_dummy_frame): Update dtor caller.
5726         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
5727         registers_valid.
5728
5729 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
5730
5731         GDB 7.9.1 released.
5732
5733 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
5734
5735         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
5736         Xmethods now being able to specify a result type to that new
5737         sectioin.
5738
5739 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
5740
5741         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
5742         first before resizing the window.
5743         * tui/tui.c (tui_enable): Likewise.
5744
5745 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5746
5747         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
5748         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
5749         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
5750         dummy_dtor parameter.
5751         * infcall.h: Include dummy-frame.h.
5752         (call_function_by_hand_dummy_dtor_ftype): Remove.
5753         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
5754         parameter.
5755
5756 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
5757
5758         PR gdb/17820
5759         * top.c (history_size_setshow_var): Change type to signed.
5760         Initialize to -2.  Update documentation.
5761         (set_readline_history_size): Define.
5762         (set_history_size_command): Use it.  Remove logic for handling
5763         out-of-range sizes.
5764         (init_history): Use set_readline_history_size().  Test for a
5765         value of -2 instead of 0 when determining whether to set a
5766         default history size.
5767         (init_main): Decode the argument of the "size" command as a
5768         zuinteger_unlimited.
5769
5770 2015-05-12  Doug Evans  <dje@google.com>
5771
5772         * dwarf2read.c (struct file_entry): Tweak comments.
5773         (get_debug_line_section): Tweak comments.
5774
5775 2015-05-12  Don Breazeal  <donb@codesourcery.com>
5776
5777         * NEWS: Announce fork support in the RSP and support
5778         for fork debugging in extended mode.
5779
5780 2015-05-12  Don Breazeal  <donb@codesourcery.com>
5781
5782         * remote.c (remote_insert_fork_catchpoint): New function.
5783         (remote_remove_fork_catchpoint): New function.
5784         (remote_insert_vfork_catchpoint): New function.
5785         (remote_remove_vfork_catchpoint): New function.
5786         (pending_fork_parent_callback): New function.
5787         (remove_new_fork_child): New function.
5788         (remote_update_thread_list): Call remote_notif_get_pending_events
5789         and remove_new_fork_child.
5790         (extended_remote_kill): Kill fork child when killing the
5791         parent before follow_fork completes.
5792         (init_extended_remote_ops): Initialize target vector with
5793         new fork catchpoint functions.
5794
5795 2015-05-12  Don Breazeal  <donb@codesourcery.com>
5796
5797         * remote.c (remove_vfork_event_p): New function.
5798         (remote_follow_fork): Add vfork event type to event checking.
5799         (remote_parse_stop_reply): New stop reasons "vfork" and
5800         "vforkdone" for RSP 'T' Stop Reply Packet.
5801
5802 2015-05-12  Don Breazeal  <donb@codesourcery.com>
5803
5804         * linux-nat.c (linux_nat_ptrace_options): New function.
5805         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
5806         Call linux_nat_ptrace_options and use different argument to
5807         linux_enable_event_reporting.
5808         (_initialize_linux_nat): Delete call to
5809         linux_ptrace_set_additional_flags.
5810         * nat/linux-ptrace.c (current_ptrace_options): Rename to
5811         supported_ptrace_options.
5812         (additional_flags): Delete variable.
5813         (linux_check_ptrace_features): Use supported_ptrace_options.
5814         (linux_test_for_tracesysgood, linux_test_for_tracefork):
5815         Likewise, and remove additional_flags check.
5816         (linux_enable_event_reporting): Change 'attached' argument to
5817         'options'.  Use supported_ptrace_options.
5818         (ptrace_supports_feature): Change comment.  Use
5819         supported_ptrace_options.
5820         (linux_ptrace_set_additional_flags): Delete function.
5821         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5822         Delete function prototype.
5823         * remote.c (remote_fork_event_p): New function.
5824         (remote_detach_pid): New function.
5825         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
5826         if doing detach-on-fork.
5827         (remote_follow_fork): New function.
5828         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
5829         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
5830         (init_extended_remote_ops): Initialize to_follow_fork.
5831
5832 2015-05-12  Don Breazeal  <donb@codesourcery.com>
5833
5834         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
5835         from static to extern.
5836         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
5837         * remote.c (anonymous enum): <PACKET_fork_event_feature,
5838         * PACKET_vfork_event_feature>: New enumeration constants.
5839         (remote_protocol_features): Add table entries for new packets.
5840         (remote_query_supported): Add new feature queries to qSupported
5841         packet.
5842
5843 2015-05-12  Gary Benson <gbenson@redhat.com>
5844
5845         * remote.c (remote_add_inferior): Call exec_file_locate_attach
5846         for fake PIDs as well as real ones.
5847         (remote_pid_to_exec_file): Send empty annex if PID is fake.
5848
5849 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
5850
5851         * NEWS (Python Scripting): Mention the new gdb.Value methods.
5852         * python/py-value.c (valpy_reference_value): New function.
5853         (valpy_const_value): Likewise.
5854         (value_object_methods): Add new methods.
5855         * value.c (make_cv_value): New function.
5856         * value.h (make_cv_value): Declare.
5857
5858 2015-05-08  Yao Qi  <yao@codesourcery.com>
5859             Sandra Loosemore  <sandra@codesourcery.com>
5860
5861         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
5862         to 'lh->include_dirs' before accessing to it.
5863         (psymtab_include_file_name): Likewise.
5864         (dwarf_decode_lines_1): Likewise.
5865         (dwarf_decode_lines): Likewise.
5866         (file_file_name): Likewise.
5867
5868 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
5869
5870         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
5871         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
5872         (nios2_linux_rt_sigreturn_init): Adjust base address of
5873         register save area.
5874
5875 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
5876
5877         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
5878         "trap 31" as the breakpoint instruction on all targets.
5879
5880 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5881
5882         * infcmd.c (print_return_value): Remove unused declaration.
5883
5884 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
5885
5886         * dwarf2read.c (attr_to_dynamic_prop)
5887         <DW_AT_data_member_location>: Use read_type_die isntead of
5888         get_die_type.
5889
5890 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
5891
5892         * ada-lang.c (ada_convert_actual): Add handling of formals
5893         passed inside an aligner type.
5894
5895 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
5896
5897         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
5898
5899 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
5900
5901         PR python/18291
5902         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
5903         Print xmethod matcher status.
5904
5905 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5906
5907         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
5908         register in the regcache when treating the PSWM register, and vice
5909         versa.
5910
5911 2015-05-07  Gary Benson <gbenson@redhat.com>
5912
5913         * linux-thread-db.c (struct thread_db_info)
5914         <td_ta_map_id2thr_p>: Remove field.
5915         (try_thread_db_load_1): Remove initialization for the above.
5916
5917 2015-05-07  Gary Benson <gbenson@redhat.com>
5918
5919         * linux-thread-db.c (struct thread_db_info)
5920         <td_thr_validate_p>: Remove field.
5921         (try_thread_db_load_1): Remove initialization for the above.
5922
5923 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5924
5925         * compile/compile-object-load.c (compile_object_load): Support
5926         mst_text_gnu_ifunc.
5927
5928 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5929
5930         * compile/compile.c (compile_to_object): Make the cmd_string parameter
5931         const.  Use new variables for the const compatibility.
5932         (eval_compile_command): Make the cmd_string parameter const.
5933         * compile/compile.h (eval_compile_command): Make the cmd_string
5934         parameter const.
5935
5936 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
5937
5938         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
5939         comment.
5940         * top.c (deprecated_init_ui_hook): Delete.
5941         (gdb_init): Remove handling of deprecated_init_ui_hook.
5942         * interps.c (clear_interpreter_hooks): Remove handling of
5943         deprecated_init_ui_hook.
5944         * main.c (captured_main): Update comment.
5945
5946 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
5947
5948         * solib.c (_initialize_solib): Add "info dll" alias creation.
5949         * windows-nat.c (set_windows_aliases): Delete.
5950         (_initialize_windows_nat): Remove deprecated_init_ui_hook
5951         assignment.
5952         * NEWS: Add news entry about "info dll" now being available
5953         on all platforms.
5954
5955 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5956
5957         * ada-lang.c (value_assign_to_component): Reformat and improve
5958         documentation. Remove all trailing spaces.
5959
5960 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5961
5962         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5963         Stop counting inlined frames as soon as an out-of-line function
5964         is found.
5965
5966 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
5967
5968         * dwarf2read.c (inherit_abstract_dies): Skip
5969         DW_TAG_GNU_call_site dies while inheriting children of an
5970         abstract DIE into a scope.
5971         (read_lexical_block_scope): Inherit abstract DIE's for
5972         lexical scopes.
5973
5974 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5975
5976         * ada-valprint.c (val_print_packed_array_elements): Delete
5977         variable "len".  Add a type-length check when comparing two
5978         consecutive elements of the array.  Use the element's actual
5979         length in call to value_contents_eq.
5980         * ada-lang.c (ada_value_primitive_packed_val): Always return
5981         a value whose type has been resolved.
5982
5983 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5984
5985         * ada-lang.c (ada_value_primitive_packed_val): Recompute
5986         BIT_SIZE and LEN if the size of the resolved type is smaller
5987         than BIT_SIZE * HOST_CHAR_BIT.
5988
5989 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5990
5991         * ada-lang.c (ada_value_primitive_packed_val): Use a more
5992         correct address in call to value_at.  Adjust call to
5993         value_address accordingly.
5994
5995 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5996
5997         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
5998         to print it.
5999
6000 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
6001
6002         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
6003         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
6004         pinfo->valaddr.
6005         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
6006         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
6007         (resolve_dynamic_type_internal): Set pinfo.valaddr.
6008         Add handling of addr_stack->valaddr.
6009         (resolve_dynamic_type): Add "valaddr" parameter.
6010         Set pinfo.valaddr field.
6011         * ada-lang.c (ada_discrete_type_high_bound): Update call to
6012         resolve_dynamic_type.
6013         (ada_discrete_type_low_bound): Likewise.
6014         * findvar.c (default_read_var_value): Likewise.
6015         * value.c (value_from_contents_and_address): Likewise.
6016
6017 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
6018
6019         * gdbtypes.c (resolve_dynamic_array): Use
6020         create_array_type_with_stride instead of create_array_type.
6021
6022 2015-04-30  DJ Delorie  <dj@redhat.com>
6023
6024         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
6025         rl78_decode_opcode
6026
6027 2015-04-29  Doug Evans  <dje@google.com>
6028
6029         PR python/18285
6030         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
6031         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
6032         EVAL_AVOID_SIDE_EFFECTS for xmethods.
6033         * extension-priv.h (struct extension_language_ops)
6034         <get_xmethod_result_type>: New member.
6035         * extension.c (get_xmethod_result_type): New function.
6036         * extension.h (get_xmethod_result_type): Declare.
6037         * python/py-xmethods.c (get_result_type_method_name): New static
6038         global.
6039         (py_get_result_type_method_name): Ditto.
6040         (gdbpy_get_xmethod_result_type): New function.
6041         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
6042         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
6043         * python/python.c (python_extension_ops): Add
6044         gdbpy_get_xmethod_result_type.
6045         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
6046         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
6047         xmethods.
6048         (value_x_unop): Ditto.
6049         * value.c (result_type_of_xmethod): New function.
6050         * value.h (result_type_of_xmethod): Declare.
6051
6052 2015-04-29  Gary Benson <gbenson@redhat.com>
6053
6054         * solib.c (solib_find_1): Allow fd argument to be NULL.
6055         (exec_file_find): Update comment.
6056         (solib_find): Likewise.
6057         * exec.c (exec_file_locate_attach): Use NULL as fd
6058         argument to exec_file_find to avoid having to close
6059         the opened file.
6060         * infrun.c (follow_exec): Likewise.
6061
6062 2015-04-28  Doug Evans  <dje@google.com>
6063
6064         PR python/18299
6065         * python/lib/gdb/printing.py (register_pretty_printer): Handle
6066         name or __name__ attributes.  Handle gdb module as first argument.
6067
6068 2015-04-28  Doug Evans  <dje@google.com>
6069
6070         PR python/18089
6071         * python/py-prettyprint.c (print_children): Verify result of children
6072         iterator.  Provide better error message.
6073         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
6074         * python/python.c (gdbpy_print_python_errors_p): New function.
6075
6076 2015-04-28  Doug Evans  <dje@google.com>
6077
6078         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
6079
6080 2015-04-28  Sasha Smundak  <asmundak@google.com>
6081
6082         * NEWS: Mention gdb.Type.optimized_out method.
6083         * python/py-type.c (typy_optimized_out):  New function.
6084
6085 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
6086
6087         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6088
6089 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
6090
6091         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
6092         (initialize_utils): Move call of init_page_info() to ...
6093         * top.c (gdb_init): ... here.
6094
6095 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
6096
6097         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
6098         (tui_sigwinch_handler): Still update our idea of
6099         the terminal's width and height even when TUI is not active.
6100
6101 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
6102
6103         * utils.h (set_screen_width_and_height): Declare.
6104         * utils.c (set_screen_width_and_height): Define.
6105         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
6106
6107 2015-04-28  Gary Benson <gbenson@redhat.com>
6108
6109         * infrun.c (solist.h): New include.
6110         (follow_exec): Use exec_file_find to prefix execd_pathname
6111         with gdb_sysroot.
6112
6113 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
6114
6115         * tui/tui-source.c (tui_set_source_content): Avoid calling
6116         strcpy() when offset is 0.
6117
6118 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
6119
6120         PR gdb/18155
6121         * tui/tui-data.c (tui_free_window): Don't free the locator
6122         window when passed an SRC_WIN or a DISASSEM_WIN.
6123
6124 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
6125
6126         * tui/tui-data.h (struct tui_win_element): Forward-declare.
6127         (tui_win_content): Move declaration.
6128         (struct tui_gen_win_info): Give 'content' field the
6129         type tui_win_content.
6130         * tui/tui-data.c (init_content_element): Remove redundant and
6131         erroneous casts.
6132         (tui_add_content_elements): Remove erroneous cast.
6133         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
6134         casts.
6135         (tui_get_begin_asm_address): Likewise.
6136         * tui/tui-regs.c (tui_show_registers): Likewise.
6137         (tui_show_register_group): Likewise.
6138         (tui_display_registers_from): Likewise.
6139         (tui_check_register_values): Likewise.
6140         * tui/tui-source.c (tui_set_source_content): Likewise.
6141         (tui_set_source_content_nil): Likewise.
6142         (tui_source_is_displayed): Likewise.
6143         * tui/tui-stack.c (tui_show_locator_content): Likewise.
6144         (tui_set_locator_fullname): Likewise.
6145         (tui_set_locator_info): Likewise.
6146         (tui_show_frame_info): Likewise.
6147         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
6148         (tui_show_source_line): Likewise.
6149         (tui_horizontal_source_scroll): Likewise.
6150         (tui_update_breakpoint_info): Likewise.
6151         (tui_set_exec_info_content): Likewise.
6152         (tui_show_exec_info_content): Likewise.
6153         (tui_alloc_source_buffer): Likewise.
6154         (tui_line_is_displayed): Likewise.
6155         (tui_addr_is_displayed): Likewise.
6156
6157 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
6158
6159         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
6160         event if PL_FLAG_EXEC is set.
6161         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
6162         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
6163         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
6164         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
6165         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
6166
6167 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
6168
6169         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
6170         [TDP_RFPPWAIT] New variable fbsd_pending_children.
6171         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
6172         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
6173         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
6174         [PT_LWPINFO] (fbsd_wait): New function.
6175         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
6176         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
6177         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
6178         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
6179         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
6180         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
6181         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
6182         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
6183         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
6184         "fbsd_wait".
6185         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
6186         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
6187         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
6188         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
6189         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
6190         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
6191         Set "to_post_attach" to "fbsd_post_attach".
6192
6193 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
6194
6195         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
6196         (fbsd_find_memory_regions): Mark static.
6197         (fbsd_nat_add_target): New function.
6198         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
6199         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
6200         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
6201         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
6202         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
6203         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
6204
6205 2015-04-27  Gary Benson <gbenson@redhat.com>
6206
6207         * objfiles.c (allocate_objfile): Do not attempt to expand name
6208         if name is a "target:" filename.
6209         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
6210         to load auto-load scripts for objfiles with "target:" filenames.
6211
6212 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6213
6214         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
6215         (enum s390_vector_abi_kind): New enum.
6216         (struct gdbarch_tdep)<vector_abi>: New field.
6217         (s390_effective_inner_type): Add parameter min_size.  Stop
6218         unwrapping if the inner type is smaller than min_size.
6219         (s390_function_arg_float): Adjust call to
6220         s390_effective_inner_type.
6221         (s390_function_arg_vector): New function.
6222         (s390_function_arg_integer): Adjust comment.
6223         (struct s390_arg_state)<vr>: New field.
6224         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
6225         arguments according to vector ABI when appropriate.
6226         (s390_push_dummy_call): Initialize the argument state's field
6227         'vr'.  Adjust calls to s390_handle_arg.
6228         (s390_register_return_value): Handle vector return values.
6229         (s390_return_value): Apply the "register" return value convention
6230         to a vector when appropriate.
6231         (s390_gdbarch_init): Initialize tdep->vector_abi.
6232         * NEWS: Announce S390 vector ABI support.
6233
6234 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6235
6236         * s390-linux-tdep.c (s390_return_value_convention): Remove
6237         function.  Inline its logic...
6238         (s390_return_value): ...here.  Instead, move the handling of the
6239         "register" return value convention...
6240         (s390_register_return_value): ...here.  New function.
6241
6242 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6243
6244         * s390-linux-tdep.c
6245         (is_float_singleton): Remove function.  Move the "singleton" part
6246         of the logic...
6247         (s390_effective_inner_type): ...here.  New function.
6248         (is_float_like): Remove function.  Inline its logic...
6249         (s390_function_arg_float): ...here.
6250         (is_pointer_like, is_integer_like, is_struct_like): Remove
6251         functions.  Inline their logic...
6252         (s390_function_arg_integer): ...here.
6253         (s390_function_arg_pass_by_reference): Remove function.
6254         (extend_simple_arg): Remove function.
6255         (alignment_of): Remove function.
6256         (struct s390_arg_state): New structure.
6257         (s390_handle_arg): New function.
6258         (s390_push_dummy_call): Move parameter placement logic to the new
6259         function s390_handle_arg.  Call it for calculating the stack area
6260         sizes first, and again for actually writing the parameters.
6261
6262 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6263
6264         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
6265           false if the argument is zero.
6266
6267 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
6268
6269         * ada-lang.c (template_to_static_fixed_type): Return input type
6270         when it is already fixed.  Cache the input type itself when not
6271         creating a static fixed copy.  Make it explicit that we never
6272         molestate the input type.
6273         * gdbtypes.c (resolve_dynamic_struct): Reset the
6274         TYPE_TARGET_TYPE field for resolved copies.
6275
6276 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
6277
6278         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
6279         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
6280         (template_to_static_fixed_type): Call ada_check_typedef only
6281         when necessary.
6282
6283 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
6284
6285         * cli/cli-dump.c (srec_dump_command): Add internationalization
6286         mark ups.
6287         (ihex_dump_command): Likewise.
6288         (tekhex_dump_command): Likewise.
6289         (binary_dump_command): Likewise.
6290         (binary_append_command): Likewise.
6291
6292 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
6293
6294         * cli/cli-dump.c (verilog_cmdlist): New variable.
6295         (dump_verilog_memory): New function.
6296         (dump_verilog_value): New function.
6297         (verilog_dump_command): New function.
6298         (_initialize_cli_dump): Add new commands to support verilog dump
6299         format.
6300         * NEWS: Add entry for "dump verilog".
6301
6302 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
6303
6304         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
6305         descriptive type when there is none.
6306
6307 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
6308
6309         * tui/tui-win.c (tui_async_resize_screen): Call
6310         rl_resize_terminal().
6311
6312 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
6313
6314         * windows-nat.c (handle_output_debug_string): Don't change
6315         current_event.dwThreadId.
6316         (get_windows_debug_event): Use thread_id, rather than relying on
6317         current_event.dwThreadId being changed.
6318
6319 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
6320
6321         * windows-nat.c (windows_continue): Report an error if
6322         ContinueDebugEvent() fails.
6323
6324 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
6325
6326         * windows-nat.c (windows_resume): Fix misspelling in debug output.
6327
6328 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
6329
6330         * windows-nat.c (get_windows_debug_event): Replace retval with
6331         thread_id throughout.  Update stale comment.
6332
6333 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
6334
6335         * windows-nat.c (get_windows_debug_event): Don't use ternary
6336         conditional operator.
6337
6338 2015-04-21  Pierre Muller  <muller@sourceware.org>
6339
6340         PR pascal/17815
6341         p-exp.y (yylex): Reorganize code to return the matched pattern
6342         for a field of this.
6343
6344 2015-04-21  Gary Benson <gbenson@redhat.com>
6345
6346         * common/fileio.h (fileio_to_host_openflags): New declaration.
6347         * common/fileio.c (fcntl.h): New include.
6348         (fileio_to_host_openflags): New function, factored out from...
6349         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
6350         Single use updated.
6351
6352 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
6353
6354         * rl78-tdep.c (RL78_SP_ADDR): Define.
6355         (opc_reg_to_gdb_regnum): New static function.
6356         (rl78_analyze_prologue): Recognize instructions forming slightly
6357         more interesting prologues.
6358
6359 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
6360
6361         Revert:
6362         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6363         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6364         TYPE_CODE_REF types so that they are not considered as dynamic
6365         depending on the referenced type.
6366         (resolve_dynamic_type_internal): Likewise.
6367
6368 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
6369
6370         Revert:
6371         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6372         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6373         "top_level" parameter.
6374         (resolve_dynamic_type_internal): Remove the unused "top_level"
6375         parameter.  Update call to is_dynamic_type_internal.
6376         (is_dynamic_type): Update call to is_dynamic_type_internal.
6377         (resolve_dynamic_range): Update call to
6378         resolve_dynamic_type_internal.
6379         (resolve_dynamic_union): Likewise.
6380         (resolve_dynamic_struct): Likewise.
6381         (resolve_dynamic_type): Likewise.
6382
6383 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
6384
6385         * breakpoint.c (update_dprintf_command_list): Remove duplicated
6386         xmalloc.
6387
6388 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
6389
6390         * reply_mig_hack.awk: Robustify parsing.
6391
6392         * reply_mig_hack.awk: Don't bother to declare an intermediate
6393         function pointer variable.
6394
6395 2015-04-17  Doug Evans  <dje@google.com>
6396
6397         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
6398         to "exec_displacement" to avoid confusion with inner use of the name.
6399
6400 2015-04-17  Pedro Alves  <palves@redhat.com>
6401
6402         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
6403         if HW point of TYPE isn't supported.
6404
6405 2015-04-17  Yao Qi  <yao.qi@linaro.org>
6406             Pedro Alves  <palves@redhat.com>
6407
6408         * target.h (target_can_use_hardware_watchpoint): Update comments.
6409         Remove trailing ";".
6410
6411 2015-04-17  Gary Benson <gbenson@redhat.com>
6412
6413         * remote.c (remote_add_inferior): New argument try_open_exec.
6414         If nonzero, attempt to open the inferior's executable file as
6415         the main executable if no main executable is open already.
6416         All callers updated.
6417         * NEWS: Mention that GDB now supports automatic location and
6418         retrieval of executable + files from remote targets.
6419
6420 2015-04-17  Gary Benson <gbenson@redhat.com>
6421
6422         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
6423         * remote.c (PACKET_qXfer_exec_file): Likewise.
6424         (remote_protocol_features): Register the
6425         "qXfer:exec-file:read" feature.
6426         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
6427         (remote_pid_to_exec_file): New function.
6428         (init_remote_ops): Initialize to_pid_to_exec_file.
6429         (_initialize_remote): Register new "set/show remote
6430         pid-to-exec-file-packet" command.
6431         * NEWS: Announce new qXfer:exec-file:read packet.
6432
6433 2015-04-17  Gary Benson <gbenson@redhat.com>
6434
6435         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
6436         New declaration.
6437         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
6438         New function, factored out from...
6439         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
6440
6441 2015-04-17  Gary Benson <gbenson@redhat.com>
6442
6443         * exec.c (solist.h): New include.
6444         (exec_file_locate_attach): Prefix absolute executable
6445         paths with gdb_sysroot if set.
6446         * NEWS: Mention that executable paths may be prepended
6447         with sysroot.
6448
6449 2015-04-17  Gary Benson <gbenson@redhat.com>
6450
6451         * solist.h (exec_file_find): New declaration.
6452         * solib.c (solib_find_1): New function, factored out from...
6453         (solib_find): ...here.
6454         (exec_file_find): New function.
6455
6456 2015-04-17  Gary Benson <gbenson@redhat.com>
6457
6458         * gdbcore.h (exec_file_locate_attach): New declaration.
6459         * exec.c (exec_file_locate_attach): New function, factored
6460         out from...
6461         * infcmd.c (attach_command_post_wait): ...here.
6462
6463 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
6464
6465         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
6466
6467 2015-04-16  Yao Qi  <yao.qi@linaro.org>
6468
6469         * infrun.c (maybe_software_singlestep): Declare.
6470         (displaced_step_fixup): Call maybe_software_singlestep.
6471
6472 2015-04-15  Doug Evans  <dje@google.com>
6473
6474         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
6475
6476 2015-04-15  Doug Evans  <dje@google.com>
6477
6478         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
6479
6480 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
6481
6482         * python/lib/gdb/command/unwinders.py: Add parentheses.
6483
6484 2015-04-15  Yao Qi  <yao.qi@linaro.org>
6485
6486         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
6487
6488 2015-04-15  Yao Qi  <yao.qi@linaro.org>
6489
6490         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
6491
6492 2015-04-15  Yao Qi  <yao.qi@linaro.org>
6493
6494         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6495         dsc->insn_size instead of 4.
6496
6497 2015-04-14  Gary Benson <gbenson@redhat.com>
6498
6499         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
6500         * minidebug.c (lzma_stat): Likewise.
6501         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
6502         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
6503
6504 2015-04-13  Stan Shebs  <stanshebs@google.com>
6505
6506         * MAINTAINERS: Update my email address.
6507
6508 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
6509
6510         * amd64-tdep.c (amd64_target_description): New function.
6511         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
6512         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
6513         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6514         x86 extended save area.
6515         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6516         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
6517         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
6518         (_initialize_amd64fbsd_nat): Set "to_read_description" to
6519         "amd64fbsd_read_description".
6520         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
6521         (amd64fbsd_supply_xstateregset): New function.
6522         (amd64fbsd_collect_xstateregset): New function.
6523         Add "amd64fbsd_xstateregset".
6524         (amd64fbsd_iterate_over_regset_sections): New function.
6525         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
6526         "I386_FBSD_XSAVE_XCR0_OFFSET".
6527         Add "iterate_over_regset_sections" gdbarch method.
6528         Add "core_read_description" gdbarch method.
6529         * i386-tdep.c (i386_target_description): New function.
6530         * i386-tdep.h: Export i386_target_description and tdesc_i386.
6531         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
6532         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6533         x86 extended save area.
6534         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6535         * i386bsd-nat.h: Export i386bsd_xsave_len.
6536         * i386fbsd-nat.c (i386fbsd_read_description): New function.
6537         (_initialize_i386fbsd_nat): Set "to_read_description" to
6538         "i386fbsd_read_description".
6539         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
6540         (i386fbsd_core_read_description): New function.
6541         (i386fbsd_supply_xstateregset): New function.
6542         (i386fbsd_collect_xstateregset): New function.
6543         Add "i386fbsd_xstateregset".
6544         (i386fbsd_iterate_over_regset_sections): New function.
6545         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
6546         "I386_FBSD_XSAVE_XCR0_OFFSET".
6547         Add "iterate_over_regset_sections" gdbarch method.
6548         Add "core_read_description" gdbarch method.
6549         * i386fbsd-tdep.h: New file.
6550
6551 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6552
6553         * NEWS (Changes since GDB 7.9): Add removed -xdb.
6554         * breakpoint.c (command_line_is_silent): Remove xdb_commands
6555         conditional.
6556         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
6557         and lb.
6558         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
6559         va.
6560         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
6561         conditional.
6562         * defs.h (xdb_commands): Remove declaration.
6563         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
6564         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
6565         * infcmd.c (run_no_args_command, go_command): Remove.
6566         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
6567         * infrun.c (xdb_handle_command): Remove.
6568         (_initialize_infrun): Remove xdb_commands for lz and z.
6569         * main.c (xdb_commands): Remove variable.
6570         (captured_main): Remove "xdb" from long_options.
6571         (print_gdb_help): Remove --xdb from help.
6572         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
6573         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
6574         * stack.c (backtrace_full_command, args_plus_locals_info)
6575         (current_frame_command): Remove.
6576         (_initialize_stack): Remove xdb_commands for t, T and l.
6577         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
6578         * thread.c (_initialize_thread): Remove xdb_commands condition.
6579         * tui/tui-layout.c (tui_toggle_layout_command)
6580         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
6581         (_initialize_tui_layout): Remove xdb_commands for td and ts.
6582         * tui/tui-regs.c (tui_scroll_regs_forward_command)
6583         (tui_scroll_regs_backward_command): Remove.
6584         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
6585         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
6586         (_initialize_tui_win): Remove xdb_commands for U and w.
6587         * utils.c (pagination_on_command, pagination_off_command): Remove.
6588         (initialize_utils): Remove xdb_commands for am and sm.
6589
6590 2015-04-10  Pedro Alves  <palves@redhat.com>
6591
6592         * infrun.c (displaced_step_fixup): Switch to the event ptid
6593         earlier.  If the thread stopped for a watchpoint and the
6594         target/arch has non-continuable watchpoints, cancel the displaced
6595         step.
6596         (resume): Don't start a displaced step if in-line step-over info
6597         is valid.
6598
6599 2015-04-10  Pedro Alves  <palves@redhat.com>
6600
6601         * infrun.c (displaced_step_in_progress): New function.
6602         (do_target_resume): Advise target to report all signals if
6603         displaced stepping.
6604
6605 2015-04-10  Pedro Alves  <palves@redhat.com>
6606
6607         PR gdb/18216
6608         * infrun.c (process_event_stop_test): Don't assume a step-resume
6609         is set if tp->stepped_breakpoint is true.
6610
6611 2015-04-10  Yao Qi  <yao.qi@linaro.org>
6612
6613         * arm-tdep.c (install_alu_reg): Update comment.
6614         (thumb_copy_alu_reg): Remove local variable rn.  Update
6615         debugging message.  Use r2 instead of r1 in the modified
6616         instruction.
6617
6618 2015-04-10  Pedro Alves  <palves@redhat.com>
6619
6620         PR gdb/13858
6621         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
6622         linux_displaced_step_location as gdbarch_displaced_step_location
6623         hook.
6624         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6625         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6626         * linux-tdep.c (linux_displaced_step_location): New function,
6627         based on ppc_linux_displaced_step_location.
6628         * linux-tdep.h (linux_displaced_step_location): New declaration.
6629         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
6630         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
6631         Delete.
6632         (ppc_linux_init_abi): Install linux_displaced_step_location as
6633         gdbarch_displaced_step_location hook, even without Cell/B.E..
6634         (_initialize_ppc_linux_tdep): Don't install
6635         ppc_linux_inferior_created as inferior_created observer.
6636         * s390-linux-tdep.c (s390_gdbarch_init): Install
6637         linux_displaced_step_location as gdbarch_displaced_step_location
6638         hook.
6639
6640 2015-04-09  Gary Benson <gbenson@redhat.com>
6641
6642         * common/common-remote-fileio.h: Rename to...
6643         * common/fileio.h: ...this.  Update all references.
6644         (remote_fileio_to_fio_error): Rename to...
6645         (host_to_fileio_error): ...this.
6646         (remote_fileio_to_be): Rename to...
6647         (host_to_bigendian): ...this.  Update all callers.
6648         (remote_fileio_to_fio_uint): Rename to...
6649         (host_to_fileio_uint): ...this.  Update all callers.
6650         (remote_fileio_to_fio_time): Rename to...
6651         (host_to_fileio_time): ...this.  Update all callers.
6652         (remote_fileio_to_fio_stat): Rename to...
6653         (host_to_fileio_stat): ...this.
6654         Update all references.
6655         * common/common-remote-fileio.c: Rename to...
6656         * common/fileio.c: ...this.  Update all references.
6657         (remote_fileio_to_fio_error): Rename to...
6658         (host_to_fileio_error): ...this.  Update all callers.
6659         (remote_fileio_mode_to_target): Rename to...
6660         (fileio_mode_pack): ...this.  Update all callers.
6661         (remote_fileio_to_fio_mode): Rename to...
6662         (host_to_fileio_mode): ...this.  Update all callers.
6663         (remote_fileio_to_fio_ulong): Rename to...
6664         (host_to_fileio_ulong): ...this.  Update all callers.
6665         (remote_fileio_to_fio_stat): Rename to...
6666         (host_to_fileio_stat): ...this.  Update all callers.
6667
6668 2015-04-09  Andy Wingo  <wingo@igalia.com>
6669
6670         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
6671         (frame_functions): Bind gdbscm_frame_read_register to
6672         frame-read-register.
6673         * guile/lib/gdb.scm (frame-read-register): Export.
6674
6675 2015-04-09  Gary Benson <gbenson@redhat.com>
6676
6677         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
6678         New declaration.
6679         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
6680         New function, factored out the named functions below.
6681         * inf-child.c (gdb/fileio.h): Remove include.
6682         (common-remote-fileio.h): New include.
6683         (inf_child_errno_to_fileio_error): Remove function.  Update
6684         all callers to use remote_fileio_to_fio_error.
6685         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
6686
6687 2015-04-09  Andy Wingo  <wingo@igalia.com>
6688
6689         * MAINTAINERS (Write After Approval): Add Andy Wingo.
6690
6691 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
6692
6693         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
6694         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
6695         * configure: Regenerated.
6696
6697 2015-04-09  Pedro Alves  <palves@redhat.com>
6698
6699         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
6700         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
6701         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
6702         * gnulib/import/Makefile.am: Update.
6703         * gnulib/import/Makefile.in: Update.
6704         * gnulib/import/m4/gnulib-cache.m4: Update.
6705         * gnulib/import/m4/gnulib-comp.m4: Update.
6706         * gnulib/import/m4/strtok_r.m4: New file.
6707         * gnulib/import/strtok_r.c: New file.
6708
6709 2015-04-09  Pedro Alves  <palves@redhat.com>
6710
6711         * gnulib/update-gnulib.sh (aclocal version check): Filter out
6712         "called too early to check prototype".
6713
6714 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
6715
6716         PR python/16699
6717         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
6718         use a caching mechanism.  Adjust comments and code to reflect
6719         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
6720         (cmdpy_completer_handle_brkchars): Adjust call to
6721         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
6722         (cmdpy_completer): Likewise.
6723
6724 2015-04-08  Yao Qi  <yao.qi@linaro.org>
6725
6726         * spu-tdep.c (spu_gdbarch_init): Don't call
6727         set_gdbarch_cannot_step_breakpoint.
6728
6729 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
6730
6731         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
6732
6733 2015-04-07  Pedro Alves  <palves@redhat.com>
6734
6735         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
6736         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
6737         (delete_exited_threads): New declaration.
6738         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
6739         * linux-nat.c (linux_nat_update_thread_list): New function.
6740         (linux_nat_add_target): Install it.
6741         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
6742         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
6743         (delete_exited_threads): New function.
6744
6745 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
6746
6747         * infrun.c (resume) <displaced stepping debug output>: Get the
6748         leader thread's regcache, not resume_ptid's.
6749
6750 2015-04-06  Doug Evans  <xdje42@gmail.com>
6751
6752         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
6753         VAR_DOMAIN.
6754         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
6755         Include symbol domain in debugging output.
6756
6757 2015-04-06  Pedro Alves  <palves@redhat.com>
6758             Bernd Edlinger  <bernd.edlinger@hotmail.de>
6759
6760         * configure.ac: Remove the mingw32-specific stub-termcap.o
6761         fallback, and instead fallback to the stub termcap on all hosts.
6762         * configure: Regenerate.
6763         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
6764         symbols.
6765
6766 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6767
6768         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6769         "top_level" parameter.
6770         (resolve_dynamic_type_internal): Remove the unused "top_level"
6771         parameter.  Update call to is_dynamic_type_internal.
6772         (is_dynamic_type): Update call to is_dynamic_type_internal.
6773         (resolve_dynamic_range): Update call to
6774         resolve_dynamic_type_internal.
6775         (resolve_dynamic_union): Likewise.
6776         (resolve_dynamic_struct): Likewise.
6777         (resolve_dynamic_type): Likewise.
6778
6779 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6780
6781         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6782         TYPE_CODE_REF types so that they are not considered as dynamic
6783         depending on the referenced type.
6784         (resolve_dynamic_type_internal): Likewise.
6785
6786 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
6787
6788         * Makefile.in (top_srcdir): New.
6789         * configure: Regenerated.
6790
6791 2015-04-02  Gary Benson <gbenson@redhat.com>
6792
6793         * NEWS: Announce the new default sysroot of "target:".
6794
6795 2015-04-02  Gary Benson <gbenson@redhat.com>
6796
6797         * main.c (captured_main): Set gdb_sysroot to "target:"
6798         if not otherwise set.
6799
6800 2015-04-02  Gary Benson <gbenson@redhat.com>
6801
6802         * exec.c (exec_file_attach): Support "target:" filenames.
6803
6804 2015-04-02  Gary Benson <gbenson@redhat.com>
6805
6806         * solib.c (solib_find): Strip "target:" prefix from sysroot
6807         if accessing local files.
6808
6809 2015-04-02  Gary Benson <gbenson@redhat.com>
6810
6811         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
6812         checks and error messages.
6813
6814 2015-04-02  Gary Benson <gbenson@redhat.com>
6815
6816         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
6817         (remote_filename_p): Remove declaration.
6818         (remote_bfd_open): Likewise.
6819         * remote.c (remote_bfd_iovec_open): Remove function.
6820         (remote_bfd_iovec_close): Likewise.
6821         (remote_bfd_iovec_pread): Likewise.
6822         (remote_bfd_iovec_stat): Likewise.
6823         (remote_filename_p): Likewise.
6824         (remote_bfd_open): Likewise.
6825         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
6826         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
6827         (gdb_bfd_open_maybe_remote): Remove function.
6828         (symfile_bfd_open):  Replace remote filename check with
6829         target filename check.
6830         (reread_symbols): Use gdb_bfd_open.
6831         * build-id.c (gdbcore.h): New include.
6832         (build_id_to_debug_bfd): Use gdb_bfd_open.
6833         * infcmd.c (attach_command_post_wait): Remove remote filename
6834         check.
6835         * solib.c (solib_find): Replace remote-specific handling with
6836         target-specific handling.  Update comments where necessary.
6837         (solib_bfd_open): Replace remote-specific handling with
6838         target-specific handling.
6839         (gdb_sysroot_changed): New function.
6840         (_initialize_solib): Call the above when gdb_sysroot changes.
6841         * windows-tdep.c (gdbcore.h): New include.
6842         (windows_xfer_shared_library): Use gdb_bfd_open.
6843
6844 2015-04-02  Gary Benson <gbenson@redhat.com>
6845
6846         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
6847         (is_target_filename): New declaration.
6848         (gdb_bfd_has_target_filename): Likewise.
6849         (gdb_bfd_open): Update documentation comment.
6850         * gdb_bfd.c (target.h): New include.
6851         (gdb/fileio.h): Likewise.
6852         (is_target_filename): New function.
6853         (gdb_bfd_has_target_filename): Likewise.
6854         (fileio_errno_to_host): Likewise.
6855         (gdb_bfd_iovec_fileio_open): Likewise.
6856         (gdb_bfd_iovec_fileio_pread): Likewise.
6857         (gdb_bfd_iovec_fileio_close): Likewise.
6858         (gdb_bfd_iovec_fileio_fstat): Likewise.
6859         (gdb_bfd_open): Use target fileio to access paths prefixed
6860         with "target:" where necessary.
6861
6862 2015-04-02  Gary Benson <gbenson@redhat.com>
6863
6864         * target.h (struct target_ops) <to_filesystem_is_local>:
6865         New field.
6866         (target_filesystem_is_local): New macro.
6867         * target-delegates.c: Regenerate.
6868         * remote.c (remote_filesystem_is_local): New function.
6869         (init_remote_ops): Initialize to_filesystem_is_local.
6870
6871 2015-04-02  Gary Benson <gbenson@redhat.com>
6872
6873         * target.h (struct target_ops) <to_fileio_fstat>: New field.
6874         (target_fileio_fstat): New declaration.
6875         * target.c (target_fileio_fstat): New function.
6876         * inf-child.c (inf_child_fileio_fstat): Likewise.
6877         (inf_child_target): Initialize to_fileio_fstat.
6878         * remote.c (init_remote_ops): Likewise.
6879
6880 2015-04-01  Sasha Smundak  <asmundak@google.com>
6881
6882         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
6883         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
6884         (py-unwind.o): New recipe.
6885         * NEWS: mention Python frame unwinding.
6886         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
6887         gdb/unwinder.py and gdb/command/unwinder.py
6888         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
6889         list.
6890         (execute_unwinders): New function.
6891         * python/lib/gdb/command/unwinders.py: New file.
6892         * python/lib/gdb/unwinder.py: New file.
6893         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
6894         (objfpy_dealloc): Decrement frame_unwinders reference count.
6895         (objfpy_initialize): Create frame_unwinders list.
6896         (objfpy_get_frame_unwinders): New function.
6897         (objfpy_set_frame_unwinders): Ditto.
6898         (objfile_getset): Add frame_unwinders attribute to Objfile.
6899         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
6900         (pspy_dealloc): Decrement frame_unwinders reference count.
6901         (pspy_initialize): Create frame_unwinders list.
6902         (pspy_get_frame_unwinders): New function.
6903         (pspy_set_frame_unwinders): Ditto.
6904         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
6905         * python/py-unwind.c: New file.
6906         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
6907         (objpy_get_frame_unwinders): New prototype.
6908         (gdbpy_initialize_unwind): New prototype.
6909         * python/python.c (gdbpy_apply_type_printers): Call
6910         gdbpy_initialize_unwind.
6911
6912 2015-04-01  Pedro Alves  <palves@redhat.com>
6913
6914         * infrun.c (resume): Check currently_stepping after clearing
6915         stepped_breakpoint, not before.
6916
6917 2015-04-01  Pedro Alves  <palves@redhat.com>
6918
6919         * infrun.c (print_target_wait_results): Print all the ptid
6920         elements.
6921
6922 2015-04-01  Pedro Alves  <palves@redhat.com>
6923
6924         * infrun.c (keep_going): Also discard cleanups if inserting
6925         breakpoints fails.
6926
6927 2015-04-01  Pedro Alves  <palves@redhat.com>
6928
6929         * infrun.c (wait_for_inferior): Install the
6930         finish_thread_state_cleanup cleanup across the whole function, not
6931         just around handle_inferior_event.
6932
6933 2015-04-01  Pedro Alves  <palves@redhat.com>
6934
6935         * infrun.c (resume) <step past permanent breakpoint>: Use
6936         do_target_resume.
6937
6938 2015-04-01  Pedro Alves  <palves@redhat.com>
6939
6940         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
6941
6942 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
6943
6944         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
6945
6946 2015-04-01  Pedro Alves  <palves@redhat.com>
6947
6948         * linux-thread-db.c (record_thread): Readd the thread to gdb's
6949         list if it was marked exited.
6950
6951 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
6952
6953         * configure: Regenerated.
6954
6955 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
6956             Jan Kratochvil  <jan.kratochvil@redhat.com>
6957             Oleg Nesterov  <oleg@redhat.com>
6958
6959         PR corefiles/16092
6960         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
6961         New enum identifying the various options of the coredump_filter
6962         file.
6963         (struct smaps_vmflags): New struct.
6964         (use_coredump_filter): New variable.
6965         (decode_vmflags): New function.
6966         (mapping_is_anonymous_p): Likewise.
6967         (dump_mapping_p): Likewise.
6968         (linux_find_memory_regions_full): New variables
6969         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
6970         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
6971         parsing of its information.  Implement memory mapping filtering
6972         based on its contents.
6973         (show_use_coredump_filter): New function.
6974         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
6975         * NEWS: Mention the possibility of using the
6976         '/proc/PID/coredump_filter' file when generating a corefile.
6977         Mention new command 'set use-coredump-filter'.
6978
6979 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
6980
6981         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
6982         read_memory_unsigned_integer.
6983
6984 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
6985
6986         * Makefile.in (ZLIB): New.
6987         (ZLIBINC): Likewise.
6988         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
6989         (CLIBS): Add $(ZLIB).
6990         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
6991         Add -lz to LIBS.
6992         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
6993         * top.c (print_gdb_configuration): Remove --with-zlib and
6994         --without-zlib.
6995         * config.in: Regenerated.
6996         * configure: Likewise.
6997
6998 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
6999
7000         * NEWS: Mention info os cpus support.
7001         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
7002         (struct osdata_type): Add cpus entry, reorder the entries in
7003         alphabetical order.
7004
7005 2015-03-31  Matthias Klose  <doko@ubuntu.com>
7006
7007         * compile/compile.c (compile_to_object): Allow triplets with or
7008         without vendor set.
7009
7010 2015-03-30  Doug Evans  <dje@google.com>
7011
7012         PR c++/18141
7013         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
7014         klass in VAR_DOMAIN.
7015
7016 2015-03-30  Gary Benson <gbenson@redhat.com>
7017
7018         * remote.c (remote_mourn_1): Remove function.  Update all callers
7019         to use remote_mourn.
7020         (extended_remote_mourn_1): Remove function.  Update all callers
7021         to use extended_remote_mourn.
7022         (extended_remote_attach_1): Remove function.  Update all callers
7023         to use extended_remote_attach.
7024
7025 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
7026
7027         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
7028         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
7029         (ALLDEPFILES): Add ft32-tdep.c.
7030         * configure.tgt: Add FT32 entry.
7031         * ft32-tdep.c: New file, FT32 target-dependent code.
7032         * ft32-tdep.h: New file, FT32 target-dependent code.
7033
7034 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7035
7036         Revert:
7037         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7038         Code cleanup.
7039         * printcmd.c (print_command_1): Move expr variable scope.
7040
7041 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
7042
7043         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
7044
7045 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
7046
7047         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
7048         sections.
7049
7050 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
7051
7052         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
7053         exception raised while parsing the probe arguments.
7054         Force parsing to be done using the C language parser.
7055         * expression.h (parse_expression_with_language): Declare.
7056         * parse.c (parse_expression_with_language): New function.
7057
7058 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
7059
7060         * MAINTAINERS (Write After Approval): Add "Jon Turney".
7061
7062 2015-03-26  Andy Wingo  <wingo@igalia.com>
7063
7064         PR symtab/18148
7065         * dwarf2read.c (struct partial_die_info): Add has_const_value
7066         member.
7067         (add_partial_symbol): Don't punt on symbols that have const_value
7068         attributes.
7069         (read_partial_die): Detect DW_AT_const_value.
7070
7071 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7072
7073         Code cleanup.
7074         * printcmd.c (print_command_1): Move expr variable scope.
7075
7076 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7077
7078         Code cleanup.
7079         * printcmd.c (validate_format): Make the parameter cmdname const.
7080
7081 2015-03-26  Don Breazeal  <donb@codesourcery.com>
7082
7083         * remote.c (_initialize_remote): Update comment.
7084
7085 2015-03-26  Pedro Alves  <palves@redhat.com>
7086             Jon TURNEY  <jon.turney@dronecode.org.uk>
7087
7088         * coffread.c (coff_symfile_read): When constructing the name of an
7089         import stub symbol from import symbol for amd64, only skip the
7090         char after _imp_ if the target is underscored (like i386) and the
7091         char is indeed the target's leading char.
7092
7093 2015-03-25  Pedro Alves  <palves@redhat.com>
7094
7095         * target.h <to_async>: Replace 'callback' and 'context' parameters
7096         with boolean 'enable' parameter.
7097         (target_async): Replace CALLBACK and CONTEXT parameters with
7098         boolean ENABLE parameter.
7099         * inf-loop.c (inferior_event_handler): Adjust.
7100         * linux-nat.c (linux_nat_attach, linux_nat_resume)
7101         (linux_nat_resume): Adjust.
7102         (async_client_callback, async_client_context): Delete.
7103         (handle_target_event): Call inferior_event_handler directly.
7104         (linux_nat_async): Replace 'callback' and 'context' parameters
7105         with boolean 'enable' parameter.  Adjust.  Remove references to
7106         async_client_callback and async_client_context.
7107         (linux_nat_close): Adjust.
7108         * record-btrace.c (record_btrace_async): Replace 'callback' and
7109         'context' parameters with boolean 'enable' parameter.  Adjust.
7110         (record_btrace_resume): Adjust.
7111         * record-full.c (record_full_async): Replace 'callback' and
7112         'context' parameters with boolean 'enable' parameter.  Adjust.
7113         (record_full_resume, record_full_core_resume): Adjust.
7114         * remote.c (struct remote_state) <async_client_callback,
7115         async_client_context>: Delete fields.
7116         (remote_start_remote, extended_remote_attach_1, remote_resume)
7117         (extended_remote_create_inferior): Adjust.
7118         (remote_async_serial_handler): Call inferior_event_handler
7119         directly.
7120         (remote_async): Replace 'callback' and 'context' parameters with
7121         boolean 'enable' parameter.  Adjust.
7122         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
7123         Adjust.
7124         * target-delegates.c: Regenerate.
7125
7126 2015-03-25  Gary Benson <gbenson@redhat.com>
7127             Pedro Alves  <palves@redhat.com>
7128
7129         * target.c (fileio_ft_t): New typedef, define object vector.
7130         (fileio_fhandles): New static variable.
7131         (is_closed_fileio_fh): New macro.
7132         (lowest_closed_fd): New static variable.
7133         (acquire_fileio_fd): New function.
7134         (release_fileio_fd): Likewise.
7135         (fileio_fd_to_fh): New macro.
7136         (target_fileio_open): Wrap the file descriptor on success.
7137         (target_fileio_pwrite): Updated to use wrapped file descriptor.
7138         (target_fileio_pread): Likewise.
7139         (target_fileio_close): Likewise.
7140
7141 2015-03-24  Pedro Alves  <palves@redhat.com>
7142
7143         * thread.c (thread_apply_all_command): Take exited threads into
7144         account.
7145
7146 2015-03-24  Pedro Alves  <palves@redhat.com>
7147
7148         * infrun.c (resume, proceed): Mention
7149         switch_back_to_stepped_thread, not switch_back_to_stepping.
7150
7151 2015-03-24  Pedro Alves  <palves@redhat.com>
7152
7153         * infrun.c (user_visible_resume_ptid): Rewrite going from
7154         most-locked to unlocked instead of the opposite.  Move comment ...
7155         * infrun.h (user_visible_resume_ptid): ... here.
7156
7157 2015-03-24  Pedro Alves  <palves@redhat.com>
7158
7159         * linux-nat.c (linux_nat_resume): Output debug logs before trying
7160         to resume the event lwp.  Use the lwp's ptid instead of the passed
7161         in (maybe wildcard) ptid.
7162         (stop_wait_callback): Tweak debug log output.
7163         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
7164         TRAP_TRACE.
7165         (linux_nat_filter_event): In debug output, distinguish a
7166         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
7167         before trying to resume the lwp.
7168
7169 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
7170
7171         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
7172         pointer indirection.
7173         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
7174         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
7175
7176 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
7177
7178         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
7179         Renames DYN_ATTR_DATA_LOCATION.
7180         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
7181         DYN_ATTR_DATA_LOCATION.
7182         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
7183         instead of DYN_ATTR_DATA_LOCATION.
7184
7185 2015-03-24  Pedro Alves  <palves@redhat.com>
7186
7187         * breakpoint.c (until_break_command): Adjust call to proceed.
7188         * gdbthread.h (struct thread_control_state) <stepping_command>:
7189         New field.
7190         * infcall.c (run_inferior_call): Adjust call to proceed.
7191         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
7192         Adjust calls to proceed.
7193         (set_step_frame): Set the current thread's step_start_function
7194         here.
7195         (step_once): Adjust calls to proceed.
7196         (jump_command, signal_command, until_next_command)
7197         (finish_backward, finish_forward, proceed_after_attach_callback)
7198         (attach_command_post_wait): Adjust calls to proceed.
7199         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
7200         (do_target_resume): New function, factored out from ...
7201         (resume): ... here.  Remove 'step' parameter.  Instead, check
7202         currently_stepping to determine whether the thread should be
7203         single-stepped.
7204         (proceed): Remove 'step' parameter and don't set the thread's
7205         step_start_function here.  Adjust call to 'resume'.
7206         (handle_inferior_event): Adjust calls to 'resume'.
7207         (switch_back_to_stepped_thread): Use do_target_resume instead of
7208         'resume'.
7209         (keep_going): Adjust calls to 'resume'.
7210         * infrun.h (proceed): Remove 'step' parameter.
7211         (resume): Likewise.
7212         * windows-nat.c (do_initial_windows_stuff): Adjust call to
7213         'resume'.
7214         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
7215
7216 2015-03-24  Pedro Alves  <palves@redhat.com>
7217
7218         * gdbthread.h (struct thread_control_state) <stepping_command>:
7219         New field.
7220         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
7221         the thread's stepping_command field.
7222         * infrun.c (resume): Check the thread's stepping_command flag to
7223         determine which threads should be resumed.  Rename 'entry_step'
7224         local to user_step.
7225         (clear_proceed_status_thread): Clear 'stepping_command'.
7226         (schedlock_applies): Change parameter type to struct thread_info
7227         pointer.  Adjust.
7228         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
7229         (switch_back_to_stepped_thread): Adjust calls to
7230         'schedlock_applies'.
7231         (_initialize_infrun): Adjust "set scheduler-locking step" help.
7232
7233 2015-03-24  Pedro Alves  <palves@redhat.com>
7234
7235         * infrun.c (step_start_function): Delete and ...
7236         * gdbthread.h (struct thread_control_state) <step_start_function>:
7237         ... now a field here.
7238         * infrun.c (clear_proceed_status_thread): Clear the thread's
7239         step_start_function.
7240         (proceed, process_event_stop_test, print_stop_event): Adjust.
7241
7242 2015-03-24  Pedro Alves  <palves@redhat.com>
7243
7244         * infrun.c (proceed): No longer handle negative step.
7245
7246 2015-03-24  Gary Benson  <gbenson@redhat.com>
7247
7248         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
7249         (x86_linux_prepare_to_resume): Likewise.
7250         * x86-linux-nat.c (x86_linux_new_thread):
7251         Moved to nat/x86-linux.c.
7252         (x86_linux_prepare_to_resume): Likewise.
7253         * nat/x86-linux.c (x86_linux_new_thread): New function.
7254         (x86_linux_prepare_to_resume): Likewise.
7255
7256 2015-03-24  Gary Benson  <gbenson@redhat.com>
7257
7258         * nat/x86-linux-dregs.h: New file.
7259         * nat/x86-linux-dregs.c: Likewise.
7260         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
7261         (x86-linux-dregs.o): New rule.
7262         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
7263         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7264         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
7265         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7266         (x86_linux_dr_get): Likewise.
7267         (x86_linux_dr_set): Likewise.
7268         (x86_linux_dr_get_addr): Likewise.
7269         (x86_linux_dr_get_control): Likewise.
7270         (x86_linux_dr_get_status): Likewise.
7271         (update_debug_registers_callback): Likewise.
7272         (x86_linux_dr_set_control): Likewise.
7273         (x86_linux_dr_set_addr): Likewise.
7274         (x86_linux_update_debug_registers): Likewise.
7275
7276 2015-03-24  Gary Benson  <gbenson@redhat.com>
7277
7278         * x86-linux-nat.c (x86_linux_update_debug_registers):
7279         New function, factored out from...
7280         (x86_linux_prepare_to_resume): ...this.
7281
7282 2015-03-24  Gary Benson  <gbenson@redhat.com>
7283
7284         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
7285         (x86_linux_dr_set): Likewise.
7286         (x86_linux_dr_get_addr): Likewise.
7287         (x86_linux_dr_get_control): Likewise.
7288         (x86_linux_dr_get_status): Likewise.
7289         (update_debug_registers_callback): Likewise.
7290         (x86_linux_dr_set_control): Likewise.
7291         (x86_linux_dr_set_addr): Likewise.
7292         (x86_linux_prepare_to_resume): Likewise.
7293         (x86_linux_new_thread): Likewise.
7294
7295 2015-03-24  Gary Benson  <gbenson@redhat.com>
7296
7297         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
7298         (x86_linux_new_thread): Rename argument.
7299
7300 2015-03-24  Gary Benson  <gbenson@redhat.com>
7301
7302         * nat/x86-linux.h: New file.
7303         * nat/x86-linux.c: Likewise.
7304         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
7305         (x86-linux.o): New rule.
7306         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
7307         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7308         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
7309         (lwp_set_arch_private_info): New declaration.
7310         (lwp_arch_private_info): Likewise.
7311         * linux-nat.c (lwp_set_arch_private_info): New function.
7312         (lwp_arch_private_info): Likewise.
7313         * x86-linux-nat.c: Include nat/x86-linux.h.
7314         (arch_lwp_info): Removed structure.
7315         (update_debug_registers_callback):
7316         Use lwp_set_debug_registers_changed.
7317         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7318         and lwp_set_debug_registers_changed.
7319         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7320
7321 2015-03-24  Gary Benson  <gbenson@redhat.com>
7322
7323         * nat/linux-nat.h (ptid_of_lwp): New declaration.
7324         (lwp_is_stopped): Likewise.
7325         (lwp_stop_reason): Likewise.
7326         * linux-nat.c (ptid_of_lwp): New function.
7327         (lwp_is_stopped): Likewise.
7328         (lwp_is_stopped_by_watchpoint): Likewise.
7329         * x86-linux-nat.c (update_debug_registers_callback):
7330         Use lwp_is_stopped.
7331         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7332         lwp_stop_reason.
7333
7334 2015-03-24  Gary Benson  <gbenson@redhat.com>
7335
7336         * linux-nat.h (linux_stop_lwp): Move declaration to...
7337         * nat/linux-nat.h (linux_stop_lwp): New declaration.
7338
7339 2015-03-24  Gary Benson  <gbenson@redhat.com>
7340
7341         * linux-nat.h: Include nat/linux-nat.h.
7342         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
7343         * nat/linux-nat.h (struct lwp_info): New forward declaration.
7344         (iterate_over_lwps_ftype): New typedef.
7345         (iterate_over_lwps): New declaration.
7346         * linux-nat.h (iterate_over_lwps): Update comment.  Use
7347         iterate_over_lwps_ftype.  Update callback return value check.
7348
7349 2015-03-24  Gary Benson  <gbenson@redhat.com>
7350
7351         * x86-nat.h (x86_debug_reg_state): Move declaration to...
7352         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
7353
7354 2015-03-24  Gary Benson  <gbenson@redhat.com>
7355
7356         * nat/linux-nat.h (current_lwp_ptid): New declaration.
7357         * linux-nat.c (current_lwp_ptid): New function.
7358         * x86-linux-nat.c: Include nat/linux-nat.h.
7359         (x86_linux_dr_get_addr): Use current_lwp_ptid.
7360         (x86_linux_dr_get_control): Likewise.
7361         (x86_linux_dr_get_status): Likewise.
7362         (x86_linux_dr_set_control): Likewise.
7363         (x86_linux_dr_set_addr): Likewise.
7364
7365 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7366
7367         PR breakpoints/16466
7368         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
7369
7370 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
7371
7372         * ser-mingw.c (ser_windows_setparity): Fix indentation.
7373         * ser-unix.c (hardwire_setparity): Likewise.
7374
7375 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
7376
7377         * NEWS: Mention set/show serial parity command.
7378         * monitor.c (monitor_open): Call serial_setparity.
7379         * remote.c (remote_open_1): Likewise.
7380         * ser-base.c (ser_base_serparity): New function.
7381         * ser-base.h (ser_base_setparity): Add  declaration.
7382         * ser-go32.c (dos_ops): Set "setparity" field.
7383         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
7384         state.Parity.
7385         (ser_windows_setparity): New function.
7386         (hardwire_ops): Add ser_windows_setparity.
7387         (tty_ops): Add NULL for setparity field.
7388         (pipe_ops): Add ser_base_setparity.
7389         (tcp_ops): Likewise.
7390         * ser-pipe.c (pipe_ops): Likewise.
7391         * ser-tcp.c (tcp_ops): Likewise.
7392         * ser-unix.c (hardwire_setparity): Add declaration.
7393         (hardwire_raw): Don't reset PARENB flag.
7394         (hardwire_setparity): New function.
7395         (hardwire_ops): Add hardwire_setparity.
7396         * serial.c (serial_setparity): New function.
7397         (serial_parity): New global.
7398         (parity_none, parity_odd, parity_even, parity_enums, parity):
7399         New static globals.
7400         (set_parity): New function.
7401         (_initialize_serial): Add set/show serial parity commands.
7402         * serial.h (GDBPARITY_NONE): Define.
7403         (GDBPARITY_ODD): Define.
7404         (GDBPARITY_EVEN): Define.
7405         (serial_setparity) Add declaration.
7406         (struct serial_ops): Add setparity field.
7407         * target.h (serial_parity): Add declaration.
7408
7409 2015-03-23  Keith Seitz  <keiths@redhat.com>
7410
7411         * linespec.c (linespec_lexer_lex_keyword): Update comment.
7412
7413 2015-03-23  Keith Seitz  <keiths@redhat.com>
7414
7415         * breakpoint.c (parse_breakpoint_sals): Use
7416         linespec_lexer_lex_keyword to ascertain if the user specified
7417         a NULL location.
7418         * linespec.c [IF_KEYWORD_INDEX]: Define.
7419         (linespec_lexer_lex_keyword): Export.
7420         (struct ls_parser) <keyword_ok>: Remove.
7421         A keyword is only a keyword if not followed by another keyword.
7422         (linespec_lexer_lex_one): Remove keyword_ok handling.
7423         Add comment explaining why the parsing stream is not advanced
7424         when a keyword is seen.
7425         (parse_linespec): Remove parser->keyword_ok.
7426         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
7427
7428 2015-03-23  Keith Seitz  <keiths@redhat.com>
7429
7430         PR gdb/18021
7431         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
7432         if we find a static method with DW_AT_vtable_elem_location.
7433
7434 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
7435
7436         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
7437         before the second loop, to avoid undefined behavior.  Reported by
7438         Anton Blanchard <anton@samba.org>.
7439
7440 2015-03-20  Keven Boell  <keven.boell@intel.com>
7441
7442         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
7443         data_location usage to linked list.
7444         (resolve_dynamic_type_internal): Adapt data_location to
7445         linked list.
7446         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
7447         (copy_type_recursive, copy_type): Add copy of linked list.
7448         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
7449         (struct dynamic_prop_list): New struct.
7450         * dwarf2read.c (set_die_type): Set data_location data.
7451
7452 2015-03-20  Pedro Alves  <palves@redhat.com>
7453
7454         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
7455         inner block and make it const.
7456         * machoread.c (get_archive_prefix_len): Make "lparen" const.
7457
7458 2015-03-20  Pedro Alves  <palves@redhat.com>
7459
7460         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
7461         * breakpoint.h (set_breakpoint_condition): Update declaration.
7462
7463 2015-03-20  Pedro Alves  <palves@redhat.com>
7464
7465         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
7466
7467 2015-03-20  Pedro Alves  <palves@redhat.com>
7468
7469         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
7470
7471 2015-03-20  Pedro Alves  <palves@redhat.com>
7472
7473         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
7474
7475 2015-03-20  Pedro Alves  <palves@redhat.com>
7476
7477         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
7478         (nto_init_solib_absolute_prefix): Likewise.
7479
7480 2015-03-20  Pedro Alves  <palves@redhat.com>
7481
7482         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
7483         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
7484
7485 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7486
7487         * config/djgpp/README: Remove gdb.hp.
7488
7489 2015-03-20  Yao Qi  <yao.qi@linaro.org>
7490
7491         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7492         set_gdbarch_cannot_step_breakpoint.
7493
7494 2015-03-19  Pedro Alves  <palves@redhat.com>
7495
7496         * linux-nat.c (linux_resume_one_lwp): Rename to ...
7497         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
7498         instead call perror_with_name.
7499         (check_ptrace_stopped_lwp_gone): New function.
7500         (linux_resume_one_lwp): Reimplement as wrapper around
7501         linux_resume_one_lwp_throw that swallows errors if the LWP is
7502         gone.
7503         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
7504         swallows errors if the LWP is gone.  Use
7505         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
7506
7507 2015-03-19  Pedro Alves  <palves@redhat.com>
7508
7509         * linux-nat.c (status_callback): Return early if the LWP has no
7510         status pending.
7511
7512 2015-03-19  Pedro Alves  <palves@redhat.com>
7513
7514         * linux-nat.c (select_event_lwp_callback): Update comment to no
7515         longer mention SIGTRAP.
7516
7517 2015-03-18  Tristan Gingold  <gingold@adacore.com>
7518
7519         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
7520         redirection code to ...
7521         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
7522         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
7523
7524 2015-03-18  Gary Benson <gbenson@redhat.com>
7525
7526         (remote_protocol_features): Remove the "vFile:fstat" feature.
7527         (remote_hostio_fstat): Probe for "vFile:fstat" support.
7528
7529 2015-03-11  Yao Qi  <yao.qi@linaro.org>
7530
7531         PR tdep/18107
7532         * aarch64-linux-tdep.c: Include xml-syscall.h
7533         (aarch64_linux_get_syscall_number): New function.
7534         (aarch64_linux_init_abi): Call
7535         set_gdbarch_get_syscall_number.
7536         * syscalls/aarch64-linux.xml: New file.
7537
7538 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
7539
7540         * ser-base.h (ser_base_setstopbits): Change second argument name
7541         from "rate" to "num".
7542
7543 2015-03-17  Gary Benson <gbenson@redhat.com>
7544             Luke Allardyce <lukeallardyce@gmail.com>
7545
7546         PR gdb/18131
7547         * common/common-remote-fileio.h (sys/stat.h): New include.
7548         (stuct stat): Remove forward declaration.
7549
7550 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
7551
7552         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
7553         before writing core register notes.
7554
7555 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
7556             Pedro Alves  <palves@redhat.com>
7557
7558         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
7559         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
7560         (tgoto): Wrap with extern "C".
7561
7562 2015-03-16  Pedro Alves  <palves@redhat.com>
7563             Yuanhui Zhang  <asmwarrior@gmail.com>
7564
7565         * stub-termcap.c (tputs): Change prototype.
7566
7567 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
7568             Pedro Alves  <palves@redhat.com>
7569
7570         * windows-nat.c (struct thread_info_struct): Rename to ...
7571         (struct windows_thread_info_struct): ... this.
7572         (thread_info): Rename to ...
7573         (windows_thread_info): ... this.
7574         All users updated.
7575
7576 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7577             Pedro Alves  <palves@redhat.com>
7578
7579         * NEWS: New Removed targets and native configurations.
7580
7581 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7582
7583         Remove HPUX.
7584         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
7585         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
7586         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
7587         ia64-hpux-tdep.h, solib-ia64-hpux.h.
7588         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
7589         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
7590         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
7591         hppa-hpux-tdep.c.
7592         * config/ia64/hpux.mh: Remove file.
7593         * config/pa/hpux.mh: Remove file.
7594         * configure: Rebuilt.
7595         * configure.ac (dlgetmodinfo, somread.o): Remove.
7596         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7597         (ia64-*-hpux*): Remove its float format exception.
7598         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7599         * hppa-hpux-nat.c: Remove file.
7600         * hppa-hpux-tdep.c: Remove file.
7601         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
7602         Move them here from hppa-tdep.h
7603         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
7604         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
7605         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
7606         Move them to hppa-tdep.c.
7607         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
7608         declarations.
7609         * ia64-hpux-nat.c: Remove file.
7610         * ia64-hpux-tdep.c: Remove file.
7611         * ia64-hpux-tdep.h: Remove file.
7612         * inf-ttrace.c: Remove file.
7613         * inf-ttrace.h: Remove file.
7614         * solib-ia64-hpux.c: Remove file.
7615         * solib-ia64-hpux.h: Remove file.
7616         * solib-pa64.c: Remove file.
7617         * solib-pa64.h: Remove file.
7618         * solib-som.c: Remove file.
7619         * solib-som.h: Remove file.
7620         * somread.c: Remove file.
7621
7622 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
7623
7624         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
7625         * config.in: Regenerate.
7626         * configure: Regenerate.
7627         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
7628         define.
7629         (fbsd_find_memory_regions): Use kinfo_getvmmap to
7630         enumerate memory regions if present.
7631
7632 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
7633
7634         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
7635         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
7636         expressions.
7637         (i386fbsd_sigtramp_p): Likewise.
7638
7639 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
7640
7641         * MAINTAINERS (Write After Approval): Add John Baldwin.
7642
7643 2015-03-12  Gary Benson <gbenson@redhat.com>
7644
7645         * solib.c (_initialize_solib): Make "set/show sysroot" use
7646         add_setshow_optional_filename_cmd so it can be restored to
7647         empty after being set.
7648
7649 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
7650
7651         * Makefile.in (SFILES): New source break-catch-syscall.c.
7652         (COMMON_OBS): New object break-catch-syscall.o.
7653         * break-catch-syscall.c: New file.
7654         * breakpoint.c: Remove inclusion of "xml-syscall.h".
7655         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
7656         (struct syscall_catchpoint): Likewise.
7657         (dtor_catch_syscall): Likewise.
7658         (catch_syscall_inferior_data): Likewise.
7659         (struct catch_syscall_inferior_data): Likewise.
7660         (get_catch_syscall_inferior_data): Likewise.
7661         (catch_syscall_inferior_data_cleanup): Likewise.
7662         (insert_catch_syscall): Likewise.
7663         (remove_catch_syscall): Likewise.
7664         (breakpoint_hit_catch_syscall): Likewise.
7665         (print_it_catch_syscall): Likewise.
7666         (print_one_catch_syscall): Likewise.
7667         (print_mention_catch_syscall): Likewise.
7668         (print_recreate_catch_syscall): Likewise.
7669         (catch_syscall_breakpoint_ops): Likewise.
7670         (syscall_catchpoint_p): Likewise.
7671         (create_syscall_event_catchpoint): Likewise.
7672         (catch_syscall_split_args): Likewise.
7673         (catch_syscall_command_1): Likewise.
7674         (is_syscall_catchpoint_enabled): Likewise.
7675         (catch_syscall_enabled): Likewise.
7676         (catching_syscall_number): Likewise.
7677         (catch_syscall_completer): Likewise.
7678         (clear_syscall_counts): Likewise.
7679         (initialize_breakpoint_ops): Move initialization of syscall
7680         catchpoints to break-catch-syscall.c.
7681         (_initialize_breakpoint): Move code related to syscall catchpoints
7682         to break-catch-syscall.c.
7683
7684 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
7685
7686         * breakpoint.c (breakpoint_find_if): New function.
7687         * breakpoint.h (breakpoint_find_if): New prototype.
7688
7689 2015-03-11  Gary Benson <gbenson@redhat.com>
7690
7691         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
7692         * remote-fileio.c (remote_fileio_to_host_uint): New function.
7693         (remote_fileio_to_host_ulong): Likewise.
7694         (remote_fileio_to_host_mode): Likewise.
7695         (remote_fileio_to_host_time): Likewise.
7696         (remote_fileio_to_host_stat): Likewise.
7697         * remote.c (PACKET_vFile_fstat): New enum value.
7698         (remote_protocol_features): Register the "vFile:fstat" feature.
7699         (remote_hostio_fstat): New function.
7700         (remote_bfd_iovec_stat): Use the above.
7701         (_initialize_remote): Register new "set/show remote
7702         hostio-fstat-packet" command.
7703         * symfile.c (separate_debug_file_exists): Update comment.
7704         * NEWS: Announce new vFile:fstat packet.
7705
7706 2015-03-11  Gary Benson <gbenson@redhat.com>
7707
7708         * common/common-remote-fileio.h: New file.
7709         * common/common-remote-fileio.c: Likewise.
7710         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7711         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
7712         (COMMON_OBS): Add common-remote-fileio.o.
7713         (common-remote-fileio.o): New rule.
7714         * remote-fileio.h (common-remote-fileio.h): New include.
7715         * remote-fileio.c (gdb/fileio.h): Do not include.
7716         (remote_fileio_to_be): Moved to common-remote-fileio.h.
7717         (remote_fileio_to_fio_uint): Likewise.
7718         (remote_fileio_to_fio_time): Likewise.
7719         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
7720         (remote_fileio_to_fio_mode): Likewise.
7721         (remote_fileio_to_fio_ulong): Likewise.
7722         (remote_fileio_to_fio_stat): Likewise.
7723
7724 2015-03-11  Andy Wingo  <wingo@igalia.com>
7725
7726         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
7727         we were checking the cached type, not the cached dynamic type.
7728
7729 2015-03-11  Andy Wingo  <wingo@igalia.com>
7730
7731         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
7732         other strings, as these are on the GC'd heap, and will be
7733         collected along with the smob.
7734
7735 2015-03-11  Andy Wingo  <wingo@igalia.com>
7736
7737         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
7738         (objfile_functions): Bind gdbscm_objfile_progspace to
7739         objfile-progspace.
7740         * guile/lib/gdb.scm: Add objfile-progspace to exports.
7741
7742 2015-03-11  Andy Wingo  <wingo@igalia.com>
7743
7744         * guile/guile.c (_initialize_guile): Disable automatic
7745         finalization, if Guile offers us that possibility.
7746         * guile/guile.c (call_initialize_gdb_module):
7747         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
7748         finalizers in appropriate places.
7749         * configure.ac (AC_TRY_LIBGUILE): Add a check for
7750         scm_set_automatic_finalization_enabled.
7751         * configure: Regenerated.
7752
7753 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7754
7755         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
7756         SAL, if possible.
7757
7758 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7759
7760         * s390-linux-nat.c (struct arch_lwp_info): New.
7761         (s390_fix_watch_points): Rename to...
7762         (s390_prepare_to_resume): ...this.  Skip the PER info update
7763         unless the watch points have changed.
7764         (s390_refresh_per_info, s390_new_thread): New functions.
7765         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
7766         s390_fix_watch_points.
7767         (s390_remove_watchpoint): Likewise.
7768         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
7769         Register s390_prepare_to_resume.
7770
7771 2015-03-09  Pedro Alves  <palves@redhat.com>
7772
7773         Revert:
7774         2015-03-07  Pedro Alves  <palves@redhat.com>
7775         * common/gdb_socket.h: New file.
7776         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
7777         sys/socket.h.
7778         (net_open): Use union gdb_sockaddr_u.
7779
7780 2015-03-07  Pedro Alves  <palves@redhat.com>
7781
7782         * configure.ac (build_warnings): Move -Wmissing-prototypes
7783         -Wdeclaration-after-statement -Wmissing-parameter-type
7784         -Wold-style-declaration -Wold-style-definition to the C-specific
7785         set.
7786         * configure: Regenerate.
7787
7788 2015-03-07  Pedro Alves  <palves@redhat.com>
7789
7790         * common/gdb_socket.h: New file.
7791         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
7792         sys/socket.h.
7793         (net_open): Use union gdb_sockaddr_u.
7794
7795 2015-03-07  Pedro Alves  <palves@redhat.com>
7796
7797         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
7798         (exceptions_state_mc_action_iter)
7799         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7800         Don't define.
7801         [__cplusplus] (try_scope_depth): New global.
7802         [__cplusplus] (exception_try_scope_entry)
7803         (exception_try_scope_exit, gdb_exception_sliced_copy)
7804         (exception_rethrow): New functions.
7805         (throw_exception): In C++ mode, throw
7806         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
7807         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
7808         (throw_it): In C++ mode, use try_scope_depth.
7809         * common/common-exceptions.h [!__cplusplus]
7810         (exceptions_state_mc_action_iter)
7811         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7812         Don't declare.
7813         [__cplusplus] (exception_try_scope_entry)
7814         (exception_try_scope_exit, exception_rethrow): Declare.
7815         [__cplusplus] (struct exception_try_scope): New struct.
7816         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
7817         C++ exceptions.
7818         (struct gdb_exception_RETURN_MASK_ALL)
7819         (struct gdb_exception_RETURN_MASK_ERROR)
7820         (struct gdb_exception_RETURN_MASK_QUIT): New types.
7821
7822 2015-03-07  Pedro Alves  <palves@redhat.com>
7823
7824         * main.c (handle_command_errors): Remove volatile qualifier from
7825         parameter.
7826
7827 2015-03-07  Pedro Alves  <palves@redhat.com>
7828
7829         * breakpoint.c (save_breakpoints): Adjust to avoid code between
7830         TRY and CATCH.
7831         * gdbtypes.c (safe_parse_type): Remove empty line.
7832         (types_deeply_equal):
7833         * guile/scm-frame.c (gdbscm_frame_name):
7834         * linux-thread-db.c (find_new_threads_once):
7835         * python/py-breakpoint.c (bppy_get_commands):
7836         * record-btrace.c (record_btrace_insert_breakpoint)
7837         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
7838         (record_btrace_start_replaying): Adjust to avoid code between TRY
7839         and CATCH.
7840
7841 2015-03-07  Pedro Alves  <palves@redhat.com>
7842
7843         * common/common-exceptions.c (struct catcher) <exception>: No
7844         longer a pointer to volatile exception.  Now an exception value.
7845         <mask>: Delete field.
7846         (exceptions_state_mc_init): Remove all parameters.  Adjust.
7847         (exceptions_state_mc): No longer pop the catcher here.
7848         (exceptions_state_mc_catch): New function.
7849         (throw_exception): Adjust.
7850         * common/common-exceptions.h (exceptions_state_mc_init): Remove
7851         all parameters.
7852         (exceptions_state_mc_catch): Declare.
7853         (TRY_CATCH): Rename to ...
7854         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
7855         (CATCH, END_CATCH): New.
7856         All callers adjusted.
7857
7858 2015-03-07  Tom Tromey  <tromey@redhat.com>
7859
7860         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
7861
7862 2015-03-07  Pedro Alves  <palves@redhat.com>
7863
7864         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7865         (amd64_epilogue_frame_cache): Normal exception handling code.
7866         * break-catch-throw.c (check_status_exception_catchpoint)
7867         (re_set_exception_catchpoint): Ditto.
7868         * cli/cli-interp.c (safe_execute_command):
7869         * cli/cli-script.c (script_from_file): Ditto.
7870         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
7871         Ditto.
7872         * compile/compile-object-run.c (compile_object_run): Ditto.
7873         * cp-abi.c (baseclass_offset): Ditto.
7874         * cp-valprint.c (cp_print_value): Ditto.
7875         * exceptions.c (catch_exceptions_with_msg):
7876         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
7877         * frame.c (get_frame_address_in_block_if_available): Ditto.
7878         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7879         (i386_sigtramp_frame_cache): Ditto.
7880         * infcmd.c (post_create_inferior): Ditto.
7881         * linespec.c (parse_linespec, find_linespec_symbols):
7882         * p-valprint.c (pascal_object_print_value): Ditto.
7883         * parse.c (parse_expression_for_completion): Ditto.
7884         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7885         * remote.c (remote_get_noisy_reply): Ditto.
7886         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
7887         * solib-svr4.c (solib_svr4_r_map): Ditto.
7888
7889 2015-03-06  Gary Benson  <gbenson@redhat.com>
7890
7891         * common/common-utils.h (startswith): New inline function.
7892         All places where this logic was used updated to use the above.
7893
7894 2015-03-05  Pedro Alves  <palves@redhat.com>
7895
7896         PR gdb/18002
7897         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
7898         after reading the breakpoint's shadow memory.
7899
7900 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
7901
7902         * hppabsd-nat.c: Remove file.
7903         * hppaobsd-nat.c: New file.
7904         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
7905         hppaobsd-nat.c.
7906         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
7907         hppaobsd-nat.o.
7908
7909 2015-03-04  Pedro Alves  <palves@redhat.com>
7910
7911         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
7912         (target_decr_pc_after_break): Delete declaration.
7913         * target.c (default_target_decr_pc_after_break)
7914         (target_decr_pc_after_break): Delete.
7915         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
7916         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
7917         * linux-thread-db.c (check_event): Likewise.
7918         * infrun.c (adjust_pc_after_break): Likewise.
7919         * darwin-nat.c (cancel_breakpoint): Likewise.
7920         * aix-thread.c (aix_thread_wait): Likewise.
7921         * target-delegates.c: Regenerate.
7922
7923 2015-03-04  Pedro Alves  <palves@redhat.com>
7924
7925         * linux-nat.c (save_sigtrap): Check for breakpoints before
7926         checking watchpoints.
7927         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
7928         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
7929         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
7930         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
7931         (linux_nat_stopped_by_sw_breakpoint)
7932         (linux_nat_supports_stopped_by_sw_breakpoint)
7933         (linux_nat_stopped_by_hw_breakpoint)
7934         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
7935         (linux_nat_wait_1): Don't re-increment the PC if relying on
7936         SIGTRAP's siginfo->si_code.
7937         (linux_nat_add_target): Install new target methods.
7938         * linux-thread-db.c (check_event): Don't account for breakpoint PC
7939         offset if the target already adjusted the PC.
7940         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
7941         (GDB_ARCH_TRAP_BRKPT): New.
7942         (TRAP_HWBKPT): Define if not already defined.
7943
7944 2015-03-04  Pedro Alves  <palves@redhat.com>
7945
7946         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
7947         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
7948         Delete field.
7949         <stop_reason>: New field.
7950         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
7951         (packet_set_cmd_state): New function.
7952         (remote_protocol_features): Register the "swbreak" and "hwbreak"
7953         features.
7954         (remote_query_supported): If not disabled with the corresponding
7955         "set remote foo-packet" command, report support for the swbreak
7956         and hwbreak features.
7957         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
7958         field.
7959         <stop_reason>: New field.
7960         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
7961         (remote_wait_as): Adjust.
7962         (remote_stopped_by_sw_breakpoint)
7963         (remote_supports_stopped_by_sw_breakpoint)
7964         (remote_stopped_by_hw_breakpoint)
7965         (remote_supports_stopped_by_hw_breakpoint): New functions.
7966         (remote_stopped_by_watchpoint): New function.
7967         (init_remote_ops): Install them.
7968         (_initialize_remote): Register new "set/show remote
7969         swbreak-feature-packet" and "set/show remote
7970         swbreak-feature-packet" commands.
7971
7972 2015-03-04  Pedro Alves  <palves@redhat.com>
7973
7974         * btrace.h: Include target/waitstatus.h.
7975         (struct btrace_thread_info) <stop_reason>: New field.
7976         * record-btrace.c (record_btrace_step_thread): Use
7977         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7978         (record_btrace_decr_pc_after_break): Delete.
7979         (record_btrace_stopped_by_sw_breakpoint)
7980         (record_btrace_supports_stopped_by_sw_breakpoint)
7981         (record_btrace_stopped_by_hw_breakpoint)
7982         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
7983         (init_record_btrace_ops): Install them.
7984         * record-full.c (record_full_hw_watchpoint): Delete and replace
7985         with ...
7986         (record_full_stop_reason): ... this throughout.
7987         (record_full_exec_insn): Adjust.
7988         (record_full_wait_1): Adjust.  No longer re-increment the PC.
7989         (record_full_wait_1): Adjust.  Use
7990         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7991         (record_full_stopped_by_watchpoint): Adjust.
7992         (record_full_stopped_by_sw_breakpoint)
7993         (record_full_supports_stopped_by_sw_breakpoint)
7994         (record_full_supports_stopped_by_sw_breakpoint)
7995         (record_full_stopped_by_hw_breakpoint)
7996         (record_full_supports_stopped_by_hw_breakpoint): New functions.
7997         (init_record_full_ops, init_record_full_core_ops): Install them.
7998         * record.c (record_check_stopped_by_breakpoint): New function.
7999         * record.h: Include target/waitstatus.h.
8000         (record_check_stopped_by_breakpoint): New declaration.
8001
8002 2015-03-04  Pedro Alves  <palves@redhat.com>
8003
8004         enum lwp_stop_reason -> enum target_stop_reason
8005         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
8006         (linux_nat_stopped_by_watchpoint, status_callback)
8007         (linux_nat_wait_1): Adjust.
8008         * linux-nat.h (enum lwp_stop_reason): Delete.
8009         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8010         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
8011         * target/waitstatus.h (enum target_stop_reason): New.
8012
8013 2015-03-04  Pedro Alves  <palves@redhat.com>
8014
8015         * breakpoint.c (need_moribund_for_location_type): New function.
8016         (bpstat_stop_status): Don't skipping checking moribund locations
8017         of breakpoint types which the target tell caused a stop.
8018         (program_breakpoint_here_p): New function, factored out from ...
8019         (bp_loc_is_permanent): ... this.
8020         (update_global_location_list): Don't create a moribund location if
8021         the target supports reporting stops of the type of the removed
8022         breakpoint.
8023         * breakpoint.h (program_breakpoint_here_p): New declaration.
8024         * infrun.c (adjust_pc_after_break): Return early if the target has
8025         already adjusted the PC.  Add comments.
8026         (handle_signal_stop): If nothing explains a signal, and the target
8027         tells us the stop was caused by a software breakpoint, check if
8028         there's a breakpoint instruction in the memory.  If so, adjust the
8029         PC before presenting the stop to the user.  Otherwise, ignore the
8030         trap.  If nothing explains a signal, and the target tells us the
8031         stop was caused by a hardware breakpoint, ignore the trap.
8032         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
8033         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
8034         to_supports_stopped_by_hw_breakpoint>: New fields.
8035         (target_stopped_by_sw_breakpoint)
8036         (target_supports_stopped_by_sw_breakpoint)
8037         (target_stopped_by_hw_breakpoint)
8038         (target_supports_stopped_by_hw_breakpoint): Define.
8039         * target-delegates.c: Regenerate.
8040
8041 2015-03-04  Pedro Alves  <palves@redhat.com>
8042
8043         * infrun.c (follow_fork_inferior): Use the whole of the
8044         inferior_ptid and pending_follow.related_pid ptids instead of
8045         building ptids from the process components.  Adjust verbose output
8046         to use target_pid_to_str.
8047         * linux-nat.c (linux_child_follow_fork): Use the whole of the
8048         inferior_ptid and pending_follow.related_pid ptids instead of
8049         building ptids from the process components.
8050
8051 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
8052
8053         * inf-ptrace.c [PT_GET_PROCESS_STATE]
8054         (inf_ptrace_insert_fork_catchpoint): New function.
8055         (inf_ptrace_remove_fork_catchpoint): New function.
8056         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
8057
8058 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8059
8060         * s390-linux-tdep.c (s390_register_name): Return empty string
8061         instead of NULL for registers that shouldn't be visible.
8062
8063 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8064
8065         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
8066         XML file for 64-bit targets.
8067
8068 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
8069
8070         * target.h (find_default_create_inferior): Remove declaration.
8071         (find_default_attach): Likewise.
8072
8073 2015-03-03  Pedro Alves  <palves@redhat.com>
8074
8075         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
8076         Use ptid_get_pid to get the overall process id when resuming all
8077         threads.
8078
8079 2015-03-03  Pedro Alves  <palves@redhat.com>
8080
8081         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
8082         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
8083         * inf-ptrace.c (get_ptrace_pid): New function.
8084         (inf_ptrace_resume): Use it.
8085         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
8086         to the lower layer.
8087
8088 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
8089
8090         * nat/linux-btrace.c: Include sys/utsname.h.
8091         (linux_determine_kernel_ptr_bits): New.
8092         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
8093         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
8094         ptr_bits.
8095
8096 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
8097
8098         * btrace.c (ftrace_update_function): Treat return as tailcall for
8099         "_dl_runtime_resolve".
8100
8101 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
8102
8103         * btrace.h (btrace_function) <lbegin, lend>: Remove.
8104         * btrace.c (ftrace_debug): Do not print the line range.
8105         (ftrace_skip_file, ftrace_update_lines): Remove.
8106         (ftrace_new_function): Remove lbegin and lend initialization.
8107         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
8108         * record-btrace.c (btrace_compute_src_line_range): New.
8109         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
8110
8111 2015-03-02  Pedro Alves  <palves@redhat.com>
8112
8113         * infrun.c (follow_exec): Delete all threads of the process except
8114         the event thread.  Extended comments.
8115
8116 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
8117
8118         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
8119
8120 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
8121
8122         * utils.h: Remove <stdbool.h> #include.
8123         (producer_is_gcc): Change return type to "int".
8124         * utils.c (producer_is_gcc): Change return type to int.
8125         Return 1 instead of true, and 0 instead of false.
8126         Adjust function documentation accordingly.
8127
8128 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8129
8130         * s390-linux-nat.c (have_regset_vxrs): New static variable.
8131         (s390_linux_fetch_inferior_registers): Handle vector registers, if
8132         present.
8133         (s390_linux_store_inferior_registers): Likewise.
8134         (s390_get_hwcap): Remove function.  Embed its logic...
8135         (s390_read_description): ...here.  Yield a target description with
8136         vector registers if applicable.
8137         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
8138         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
8139         "features/s390x-tevx-linux64.c".
8140         (struct gdbarch_tdep) <v0_full_regnum>: New field.
8141         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
8142         for "GNU/Linux-specific registers".
8143         (s390_dwarf_reg_r0l): New enum value.
8144         (s390_dwarf_reg_to_regnum): Support vector registers.
8145         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
8146         of GPR lower halves.
8147         (regnum_is_vxr_full): New function.
8148         (s390_register_name): New function.
8149         (s390_pseudo_register_name): Handle v0-v15, which are composed of
8150         f0-f15 and v0l-v15l.
8151         (s390_pseudo_register_type): Likewise.
8152         (s390_pseudo_register_read): Likewise.
8153         (s390_pseudo_register_write): Likewise.
8154         (s390_value_from_register): Account for the fact that values are
8155         placed left-justified in vector registers.
8156         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
8157         the vector reggroup and omit them from the general reggroup.
8158         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
8159         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
8160         (s390_iterate_over_regset_sections): Add iterations for the two
8161         new vector regsets.
8162         (s390_core_read_description): Yield a target description with
8163         vector registers if applicable.
8164         (s390_gdbarch_init): Handle target descriptions with vector
8165         registers.  Add "register_name" gdbarch method.
8166         (_initialize_s390_tdep): Call new tdesc initialization functions.
8167         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
8168         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
8169         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
8170         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
8171         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
8172         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
8173         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
8174         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
8175         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
8176         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
8177         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
8178         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
8179         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
8180         (S390_NUM_REGS): Adjust value.
8181         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
8182         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8183         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
8184         * NEWS: Announce S/390 vector register support.
8185
8186 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8187
8188         * features/s390-tevx-linux64.xml: New file.
8189         * features/s390-vx-linux64.xml: New file.
8190         * features/s390-vx.xml: New file.
8191         * features/s390x-tevx-linux64.xml: New file.
8192         * features/s390x-vx-linux64.xml: New file.
8193         * features/Makefile (WHICH): Add s390-vx-linux64,
8194         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
8195         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
8196         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
8197         macros.
8198         * features/s390-tevx-linux64.c: New generated file.
8199         * features/s390-vx-linux64.c: Likewise.
8200         * features/s390x-tevx-linux64.c: Likewise.
8201         * features/s390x-vx-linux64.c: Likewise.
8202         * regformats/s390-tevx-linux64.dat: Likewise.
8203         * regformats/s390-vx-linux64.dat: Likewise.
8204         * regformats/s390x-tevx-linux64.dat: Likewise.
8205         * regformats/s390x-vx-linux64.dat: Likewise.
8206
8207 2015-02-28  Doug Evans  <xdje42@gmail.com>
8208
8209         * symtab.h (struct symtab) <next>: Fix comment.
8210
8211 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
8212
8213         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
8214         python_GdbMethods.
8215
8216 2015-02-27  Pedro Alves  <palves@redhat.com>
8217
8218         * dtrace-probe.c (dtrace_probe_ops): Make extern.
8219
8220 2015-02-27  Pedro Alves  <palves@redhat.com>
8221
8222         * common/common-exceptions.h (exception_none): Declare.
8223         * common/common-exceptions.c (exception_none): Moved from
8224         exceptions.c.
8225         (exceptions_state_mc_init): Use exception_none.
8226         * exceptions.c (exception_none): Move to
8227         common/common-exceptions.c.
8228         * exceptions.h (exception_none): Move to
8229         common/common-exceptions.h.
8230
8231 2015-02-27  Pedro Alves  <palves@redhat.com>
8232
8233         * main.c (catch_command_errors, catch_command_errors_const):
8234         Remove 'mask' argument.  Adjust.
8235         (captured_main): Adjust callers.
8236
8237 2015-02-27  Pedro Alves  <palves@redhat.com>
8238
8239         * python/python-internal.h: Include "extension-priv.h".
8240
8241 2015-02-27  Pedro Alves  <palves@redhat.com>
8242
8243         * breakpoint.h (enum print_stop_action): Move further up in the
8244         file.
8245
8246 2015-02-27  Pedro Alves  <palves@redhat.com>
8247
8248         * gdbarch.sh: Include regcache.h.
8249         * gdbarch.h: Regenerate.
8250
8251 2015-02-27  Pedro Alves  <palves@redhat.com>
8252
8253         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
8254         Remove duplicate const.
8255         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
8256         duplicate const.
8257
8258 2015-02-27  Pedro Alves  <palves@redhat.com>
8259
8260         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
8261         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
8262         * features/feature_to_c.sh: Tag the generated xml_builtin array
8263         with extern const in C++ mode.
8264
8265 2015-02-27  Tom Tromey  <tromey@redhat.com>
8266
8267         * minidebug.c (struct lzma_stream): Rename to ...
8268         (struct gdb_lzma_stream): ... this.
8269         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
8270
8271 2015-02-27  Pedro Alves  <palves@redhat.com>
8272
8273         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
8274         function.
8275         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8276         (mi_cmd_stack_list_variables): Use it.
8277
8278 2015-02-27  Pedro Alves  <palves@redhat.com>
8279
8280         * x86-linux-nat.c (u_debugreg_offset): New function.
8281         (x86_linux_dr_get, x86_linux_dr_set): Use it.
8282
8283 2015-02-27  Pedro Alves  <palves@redhat.com>
8284
8285         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
8286         declaration.
8287         Include break-common.h.
8288
8289 2015-02-27  Tom Tromey  <tromey@redhat.com>
8290             Pedro Alves <palves@redhat.com>
8291
8292         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
8293         local used to iterate over enums.
8294         * completer.c (signal_completer): Likewise.
8295         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
8296         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
8297         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
8298         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
8299         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
8300         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
8301         * tui-wingeneral.c (tui_refresh_all):  Likewise.
8302
8303 2015-02-27  Pedro Alves  <palves@redhat.com>
8304
8305         * target.h: Include "infrun.h".
8306
8307 2015-02-27  Pedro Alves  <palves@redhat.com>
8308
8309         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8310
8311 2015-02-27  Pedro Alves  <palves@redhat.com>
8312
8313         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
8314         (IPA_SYM): Use it.
8315         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
8316
8317 2015-02-27  Pedro Alves  <palves@redhat.com>
8318
8319         * cli-out.c (_rl_erase_entire_line): Move declaration out of
8320         cli_mld_erase_entire_line, and make it extern "C".
8321         * common/common-defs.h (EXTERN_C): New.
8322         * completer.c (_rl_completion_prefix_display_length)
8323         (_rl_print_completions_horizontally, QSFUNC): Move declarations
8324         out of gdb_display_match_list_1.
8325         (_rl_qsort_string_compare): Move declaration out of
8326         gdb_display_match_list_1, and make it extern "C".
8327         * defs.h (re_comp): Use EXTERN_C.
8328         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
8329         and make it extern "C".
8330         (monstartup): Move declaration out of maintenance_set_profile_cmd,
8331         and make it extern "C".
8332         (main): Move declaration out of maintenance_set_profile_cmd.
8333         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
8334         EXTERN_C.
8335
8336 2015-02-27  Pedro Alves  <palves@redhat.com>
8337
8338         * python/python.c (GdbMethods): Rename to ...
8339         (python_GdbMethods): ... this and make extern.
8340         (GdbModuleDef): Rename to ...
8341         (python_GdbModuleDef): ... this and make extern.
8342
8343 2015-02-27  Pedro Alves  <palves@redhat.com>
8344
8345         * record-btrace.c (set_record_btrace_cmdlist)
8346         (show_record_btrace_cmdlist): Remove redefinitions.
8347
8348 2015-02-27  Tom Tromey  <tromey@redhat.com>
8349             Pedro Alves  <palves@redhat.com>
8350
8351         * dwarf2-frame.c (enum cfa_how_kind, struct
8352         dwarf2_frame_state_reg_info): Move out of struct
8353         dwarf2_frame_state.
8354         * dwarf2read.c (struct tu_stats): Move out of struct
8355         dwarf2_per_objfile.
8356         (struct file_entry): Move out of struct line_header.
8357         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
8358         typedef_field_list): Move out of struct field_info.
8359         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
8360         Move out of struct dynamic_prop.
8361         (union type_owner, union field_location, struct field, struct
8362         range_bounds, union type_specific): Move out of struct main_type.
8363         (struct fn_fieldlist, struct fn_field, struct typedef_field)
8364         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
8365         (struct call_site_target, union call_site_parameter_u, struct
8366         call_site_parameter): Move out of struct call_site.
8367         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
8368         m32c_prologue.
8369         (enum srcdest_kind): Move out of struct srcdest.
8370         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
8371         * prologue-value.h (enum prologue_value_kind): Move out of struct
8372         prologue_value.
8373         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
8374         gdbarch_tdep.
8375         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
8376         out of struct field_info.
8377         * symfile.h (struct other_sections): Move out of struct
8378         section_addr_info.
8379         * symtab.c (struct symbol_cache_slot): Move out struct
8380         block_symbol_cache.
8381         * target-descriptions.c (enum tdesc_type_kind): Move out of
8382         typedef struct tdesc_type.
8383         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
8384         struct tui_line_or_address.
8385         * value.c (enum internalvar_kind, union internalvar_data): Move
8386         out of struct internalvar.
8387         * xtensa-tdep.h (struct ctype_cache): Move out of struct
8388         gdbarch_tdep.
8389
8390 2015-02-27  Tom Tromey  <tromey@redhat.com>
8391             Pedro Alves  <palves@redhat.com>
8392
8393         Rename symbols whose names are reserved C++ keywords throughout.
8394
8395 2015-02-27  Pedro Alves  <palves@redhat.com>
8396
8397         * Makefile.in (COMPILER): New, get it from autoconf.
8398         (COMPILE.pre, CC_LD): Use COMPILER.
8399         (CXX): Get from autoconf instead.
8400         (CXX_FOR_TARGET): Default to g++ instead of gcc.
8401         * acinclude.m4: Include build-with-cxx.m4.
8402         * build-with-cxx.m4: New file.
8403         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8404         Disable -Werror by default if building in C++ mode.
8405         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8406         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
8407         Run supported-warning-flags tests with the C++ compiler.
8408         Save/restore CXXFLAGS too.
8409         * configure: Regenerate.
8410
8411 2015-02-27  Pedro Alves  <palves@redhat.com>
8412
8413         * libiberty.m4: New file.
8414         * acinclude.m4: Include libiberty.m4.
8415         * configure.ac: Call libiberty_INIT.
8416         * config.in, configure: Regenerate.
8417
8418 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8419
8420         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
8421         31-bit targets, but 64-bit targets as well.
8422         (s390_gnu_triplet_regexp): New function.
8423         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
8424         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
8425         method.
8426
8427 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
8428
8429         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
8430         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
8431         from CONTEXT_DEBUGGER.
8432
8433 2015-02-26  Doug Evans  <dje@google.com>
8434
8435         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
8436         CHECK_TYPEDEF.
8437         (set_type_vptr_fieldno): Ditto.
8438         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
8439         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
8440
8441 2015-02-26  Pedro Alves  <palves@redhat.com>
8442
8443         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
8444         * complaints.c (vcomplaint): Pass argument FMT directly to
8445         printf-like functions instead of complaint->fmt.
8446         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
8447         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
8448         * compile/compile-loc2c.c (pushf, unary, binary): Add
8449         ATTRIBUTE_PRINTF.
8450         (do_compile_dwarf_expr_to_c): Pass string literal as format string
8451         to pushf.
8452         (BINARY): Pass string literal as format string to 'binary'.
8453         * compile/compile-object-load.c (link_callbacks_einfo): Add
8454         ATTRIBUTE_PRINTF.
8455         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
8456
8457 2015-02-26  Pedro Alves  <palves@redhat.com>
8458
8459         * windows-termcap.c: Rename to ...
8460         * stub-termcap.c: ... this.  Adjust header line.
8461         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
8462         windows-termcap.c.
8463         * configure: Regenerate.
8464         * configure.ac: Refer to stub-termcap.o instead of
8465         windows-termcap.o.
8466         * gdb_curses.h: Mention stub-termcap.c instead of
8467         windows-termcap.c.
8468
8469 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8470
8471         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
8472         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
8473
8474 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
8475
8476         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
8477
8478 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8479
8480         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
8481         bfd_canonicalize_symtab.
8482
8483 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
8484
8485         * amd64fbsd-nat.c: Include sys/user.h.
8486         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8487         instead of KERN_PS_STRINGS to locate the signal trampoline.
8488         * i386fbsd-nat.c: Include sys/user.h.
8489         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8490         instead of KERN_PS_STRINGS to locate the signal trampoline.
8491         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
8492         (amd64fbsd_sigtramp_p): New.
8493         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
8494         longer set default values.
8495         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
8496         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
8497         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
8498         (i386fbsd_freebsd4_sigtramp_start)
8499         (i386fbsd_freebsd4_sigtramp_middle)
8500         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
8501         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
8502         (i386fbsd_sigtramp_p): New.
8503         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
8504         longer set default values.
8505         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
8506
8507 2015-02-25  John Baldwin  <jhb@freebsd.org>
8508
8509         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
8510         get_frame_register instead of frame_unwind_register_unsigned.
8511
8512 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8513
8514         PR build/18033
8515         * compile/compile-c-support.c (c_compute_program): Change // comment.
8516         * compile/compile-object-load.c (setup_sections): Change // comment.
8517
8518 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
8519
8520         PR build/18033:
8521         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
8522
8523 2015-02-23  Pedro Alves  <palves@redhat.com>
8524
8525         * remote.c (skip_to_semicolon): New function.
8526         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
8527         special case the stop reasons that look like hex numbers
8528         upfront.  Instead handle real register numbers after matching
8529         all the known stop reasons.
8530
8531 2015-02-21  Doug Evans  <dje@google.com>
8532
8533         PR c++/17976, symtab/17821
8534         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
8535         is_in_anonymous.  All callers updated.
8536         (find_symbol_in_baseclass): Ditto.
8537         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
8538         for symbols in an anonymous namespace.
8539         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
8540         DW_AT_name directly.
8541         (dwarf2_name): Convert missing namespace name to
8542         CP_ANONYMOUS_NAMESPACE_STR.
8543
8544 2015-02-20  Pedro Alves  <palves@redhat.com>
8545
8546         * linux-nat.c (linux_handle_extended_wait): Call
8547         thread_db_notice_clone whenever a new clone LWP is detected.
8548         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
8549         functions.
8550         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
8551         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
8552         (linux_unstop_all_lwps): Declare.
8553         * linux-thread-db.c (struct thread_get_info_inout): Delete.
8554         (thread_get_info_callback): Delete.
8555         (thread_from_lwp): Use td_thr_get_info and record_thread.
8556         (thread_db_attach_lwp): Delete.
8557         (thread_db_notice_clone): New function.
8558         (try_thread_db_load_1): If /proc is mounted and shows the
8559         process'es task list, walk over all LWPs and call thread_from_lwp
8560         instead of relying on td_ta_thr_iter.
8561         (attach_thread): Don't call check_thread_signals here.  Split the
8562         tail part of the function (which adds the thread to the core GDB
8563         thread list) to ...
8564         (record_thread): ... this function.  Call check_thread_signals
8565         here.
8566         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
8567         call thread_from_lwp.
8568         (thread_db_update_thread_list): Rename to ...
8569         (thread_db_update_thread_list_org): ... this.
8570         (thread_db_update_thread_list): New function.
8571         (thread_db_find_thread_from_tid): Delete.
8572         (thread_db_get_ada_task_ptid): Simplify.
8573         * nat/linux-procfs.c: Include <sys/stat.h>.
8574         (linux_proc_task_list_dir_exists): New function.
8575         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
8576
8577 2015-02-20  Pedro Alves  <palves@redhat.com>
8578
8579         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
8580         main LWP.  Handle the case of waitpid returning 0 if we're already
8581         attached to the LWP.  Don't set the LWP's last_resume_kind to
8582         resume_stop if we already knew about the LWP.
8583         (linux_nat_filter_event): Add debug logs.
8584
8585 2015-02-20  Pedro Alves  <palves@redhat.com>
8586
8587         * target.h (forward_target_decr_pc_after_break): Delete
8588         declaration.
8589
8590 2015-02-20  Pedro Alves  <palves@redhat.com>
8591
8592         PR threads/18006
8593         * linux-thread-db.c (thread_get_info_callback): Return early if
8594         the thread's lwp id is -1.
8595
8596 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
8597
8598         GDB 7.9 released.
8599
8600 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
8601
8602         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
8603         (dtrace_get_probes) Change type of variable 'dof'.
8604
8605 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
8606
8607         PR breakpoints/16812
8608         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
8609         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
8610         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
8611
8612 2015-02-19  David Taylor  <dtaylor@emc.com>
8613
8614         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
8615
8616 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
8617
8618         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
8619         function.
8620         (tui_putc): Don't call tui_handle_resize_during_io.
8621         (tui_getc): Likewise.
8622         (tui_mld_getc): Likewise.
8623         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
8624         (tui_sigwinch_token): New static variable.
8625         (tui_initialize_win): Adjust documentation.  Set
8626         tui_sigwinch_token.
8627         (tui_async_resize_screen): New asynchronous callback.
8628         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
8629         invoke tui_async_resize_screen.
8630
8631 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
8632
8633         * configure: Regenerated.
8634         * configure.ac: Use GDB_AC_TRANSFORM.
8635         * Makefile.in (aclocal_m4_deps): Added transform.m4.
8636         * acinclude.m4: sinclude transform.m4.
8637         * transform.m4: New file.
8638         (GDB_AC_TRANSFORM): New macro.
8639
8640 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8641
8642         * NEWS: Announce the support for DTrace SDT probes.
8643
8644 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8645
8646         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
8647         (amd64_dtrace_parse_probe_argument): New function.
8648         (amd64_dtrace_probe_is_enabled): Likewise.
8649         (amd64_dtrace_enable_probe): Likewise.
8650         (amd64_dtrace_disable_probe): Likewise.
8651         (amd64_linux_init_abi): Register the
8652         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
8653         `gdbarch_dtrace_disable_probe' and
8654         `gdbarch_dtrace_probe_is_enabled' hooks.
8655         (amd64_dtrace_disabled_probe_sequence_1): New constant.
8656         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
8657         (amd64_dtrace_enable_probe_sequence): Likewise.
8658         (amd64_dtrace_disable_probe_sequence): Likewise.
8659
8660 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8661
8662         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
8663         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
8664         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
8665         handle ELF files.
8666         * Makefile.in (SFILES): dtrace-probe.c added.
8667         * configure: Regenerate.
8668         * dtrace-probe.c: New file.
8669         (SHT_SUNW_dof): New constant.
8670         (dtrace_probe_type): New enum.
8671         (dtrace_probe_arg): New struct.
8672         (dtrace_probe_arg_s): New typedef.
8673         (struct dtrace_probe_enabler): New struct.
8674         (dtrace_probe_enabler_s): New typedef.
8675         (dtrace_probe): New struct.
8676         (dtrace_probe_is_linespec): New function.
8677         (dtrace_dof_sect_type): New enum.
8678         (dtrace_dof_dofh_ident): Likewise.
8679         (dtrace_dof_encoding): Likewise.
8680         (DTRACE_DOF_ENCODE_LSB): Likewise.
8681         (DTRACE_DOF_ENCODE_MSB): Likewise.
8682         (dtrace_dof_hdr): New struct.
8683         (dtrace_dof_sect): Likewise.
8684         (dtrace_dof_provider): Likewise.
8685         (dtrace_dof_probe): Likewise.
8686         (DOF_UINT): New macro.
8687         (DTRACE_DOF_PTR): Likewise.
8688         (DTRACE_DOF_SECT): Likewise.
8689         (dtrace_process_dof_probe): New function.
8690         (dtrace_process_dof): Likewise.
8691         (dtrace_build_arg_exprs): Likewise.
8692         (dtrace_get_arg): Likewise.
8693         (dtrace_get_probes): Likewise.
8694         (dtrace_get_probe_argument_count): Likewise.
8695         (dtrace_can_evaluate_probe_arguments): Likewise.
8696         (dtrace_evaluate_probe_argument): Likewise.
8697         (dtrace_compile_to_ax): Likewise.
8698         (dtrace_probe_destroy): Likewise.
8699         (dtrace_gen_info_probes_table_header): Likewise.
8700         (dtrace_gen_info_probes_table_values): Likewise.
8701         (dtrace_probe_is_enabled): Likewise.
8702         (dtrace_probe_ops): New variable.
8703         (info_probes_dtrace_command): New function.
8704         (_initialize_dtrace_probe): Likewise.
8705         (dtrace_type_name): Likewise.
8706
8707 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8708
8709         * gdbarch.sh (dtrace_parse_probe_argument): New.
8710         (dtrace_probe_is_enabled): Likewise.
8711         (dtrace_enable_probe): Likewise.
8712         (dtrace_disable_probe): Likewise.
8713         * gdbarch.c: Regenerate.
8714         * gdbarch.h: Regenerate.
8715
8716 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8717
8718         * stap-probe.c (stap_probe_ops): Add NULLs in the static
8719         stap_probe_ops for `enable_probe' and `disable_probe'.
8720         * probe.c (enable_probes_command): New function.
8721         (disable_probes_command): Likewise.
8722         (_initialize_probe): Define the cli commands `enable probe' and
8723         `disable probe'.
8724         (parse_probe_linespec): New function.
8725         (info_probes_for_ops): Use parse_probe_linespec.
8726         * probe.h (probe_ops): New hooks `enable_probe' and
8727         `disable_probe'.
8728
8729 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8730
8731         * probe.c (compute_probe_arg): Moved from stap-probe.c
8732         (compile_probe_arg): Likewise.
8733         (probe_funcs): Likewise.
8734         * stap-probe.c (compute_probe_arg): Moved to probe.c.
8735         (compile_probe_arg): Likewise.
8736         (probe_funcs): Likewise.
8737
8738 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8739
8740         * probe.c (print_ui_out_not_applicables): New function.
8741         (exists_probe_with_pops): Likewise.
8742         (info_probes_for_ops): Do not include column headers for probe
8743         types for which no probe has been actually found on any object.
8744         Also invoke `print_ui_out_not_applicables' in order to match the
8745         column rows with the header when probes of several types are
8746         listed.
8747         Print the "Type" column.
8748         * probe.h (probe_ops): Added a new probe operation `type_name'.
8749         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
8750         (stap_type_name): New function.
8751
8752 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
8753
8754         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
8755         (key_is_command_char): Delete.
8756
8757 2015-02-17  Pedro Alves  <palves@redhat.com>
8758
8759         * tui/tui.c (tui_enable): Resize windows before anything
8760         might show a window.
8761
8762 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
8763
8764         PR gdb/17984
8765         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
8766         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
8767         call.
8768         * aarch64-tdep.h (tdesc_aarch64): Declare.
8769
8770 2015-02-12  Mark Wielaard  <mjw@redhat.com>
8771
8772         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
8773
8774 2015-02-13  Doug Evans  <dje@google.com>
8775
8776         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
8777         anonymous_namespace to is_in_anonymous for consistency with the rest
8778         of the file.
8779         (cp_lookup_bare_symbol): Fix typo in comment.
8780         (cp_search_static_and_baseclasses): Ditto.
8781         (search_symbol_list): Use vertical space in comment better.
8782         (reset_directive_searched): Ditto. Fix typo.
8783         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
8784
8785 2015-02-13  Yao Qi  <yao.qi@arm.com>
8786
8787         * MAINTAINERS: Update my email address.
8788
8789 2015-02-12  Doug Evans  <dje@google.com>
8790
8791         * symtab.c (completion_list_add_name): Fix memory leak.
8792
8793 2015-02-12  Doug Evans  <dje@google.com>
8794
8795         * completer.c (complete_line): Remove incorrect comment.
8796
8797 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8798
8799         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
8800         (py_print_frame): Use RETURN_MASK_ERROR.
8801
8802 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8803
8804         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
8805         function comment.  Wrap all function that can throw in cleanups.
8806         (gdbpy_apply_frame_filter): Wrap all function that can throw in
8807         cleanups.
8808
8809 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8810
8811         * python/py-framefilter.c (py_print_frame): Substitute goto error.
8812         Remove the error label.
8813
8814 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8815
8816         * python/py-framefilter.c (py_print_frame): Put conditional code paths
8817         with goto first, indent the former else codepath left.  Put variable
8818         'elided' to a new inner block.
8819
8820 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8821
8822         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
8823
8824 2015-02-11  Pedro Alves  <palves@redhat.com>
8825
8826         * xcoffread.c (within_function): Delete.
8827
8828 2015-02-11  Tom Tromey  <tromey@redhat.com>
8829             Pedro Alves <palves@redhat.com>
8830
8831         * breakpoint.c (base_breakpoint_ops): Delete.
8832         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
8833         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
8834         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
8835         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
8836         * python/py-arch.c (arch_object_type): Make extern.
8837         * python/py-block.c (block_syms_iterator_object_type): Make extern.
8838         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
8839         * python/py-cmd.c (cmdpy_object_type): Make extern.
8840         * python/py-continueevent.c (continue_event_object_type)
8841         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
8842         parameter.  Update all callers.
8843         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
8844         * python/py-exitedevent.c (exited_event_object_type): Make extern.
8845         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
8846         * python/py-function.c (fnpy_object_type): Make extern.
8847         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
8848         * python/py-infevents.c (call_pre_event_object_type)
8849         (inferior_call_post_event_object_type).
8850         (memory_changed_event_object_type): Make extern.
8851         * python/py-infthread.c (thread_object_type): Make extern.
8852         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
8853         * python/py-linetable.c (linetable_entry_object_type)
8854         (linetable_object_type, ltpy_iterator_object_type): Make extern.
8855         * python/py-newobjfileevent.c (new_objfile_event_object_type)
8856         (clear_objfiles_event_object_type): Make extern.
8857         * python/py-objfile.c (objfile_object_type): Make extern.
8858         * python/py-param.c (parmpy_object_type): Make extern.
8859         * python/py-progspace.c (pspace_object_type): Make extern.
8860         * python/py-signalevent.c (signal_event_object_type): Make extern.
8861         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
8862         * python/py-type.c (type_object_type, field_object_type)
8863         (type_iterator_object_type): Make extern.
8864         * python/python.c (python_extension_script_ops)
8865         (python_extension_ops): Make extern.
8866         * stap-probe.c (stap_probe_ops): Make extern.
8867
8868 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
8869
8870         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
8871         because the event thread is not the current thread.
8872
8873 2015-02-11  Doug Evans  <xdje42@gmail.com>
8874
8875         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
8876         been initialized yet, return NULL.
8877
8878 2015-02-11  Doug Evans  <dje@google.com>
8879
8880         * symfile.h (new_symfile_objfile): Delete.
8881         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
8882         All callers updated.
8883
8884 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
8885
8886         * tui/tui-io.c (tui_handle_resize_during_io): Call
8887         tui_update_gdb_sizes() after resizing the screen.
8888         * tui/tui.c (tui_enable): Resize the terminal before
8889         calling tui_update_gdb_sizes().
8890
8891 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
8892
8893         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
8894         line before printing a newline.
8895
8896 2015-02-11  Mark Wielaard  <mjw@redhat.com>
8897
8898         * utils.c (producer_is_gcc): Return true or false.
8899
8900 2015-02-10  Mark Wielaard  <mjw@redhat.com>
8901
8902         * utils.h (producer_is_gcc): Change return type to bool. Add major
8903         argument.
8904         * utils.c (producer_is_gcc): Likewise.
8905         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
8906         * dwarf2read.c (check_producer): Likewise.
8907
8908 2015-02-10  Pedro Alves  <palves@redhat.com>
8909
8910         * infrun.c (displaced_step_fixup): Switch to the event thread
8911         before calling gdbarch_displaced_step_fixup.
8912
8913 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
8914
8915         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
8916
8917 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
8918
8919         * ada-varobj.c (ada_name_of_child): Constify parent.
8920         (ada_path_expr_of_child): Same.
8921         (ada_value_of_child): Same.
8922         (ada_type_of_child): Same.
8923         * c-varobj.c (c_is_path_expr_parent): Same.
8924         (c_describe_child): Same.
8925         (c_name_of_child): Same.
8926         (c_value_of_child): Same.
8927         (c_type_of_child): Same.
8928         (cplus_number_of_children): Same.
8929         (cplus_describe_child): Constify var.
8930         (cplus_name_of_child): Constify parent.
8931         (cplus_value_of_child): Same.
8932         (cplus_type_of_child): Same.
8933         * jv-varobj.c (java_name_of_child): Same.
8934         (java_value_of_child): Same.
8935         (java_type_of_child): Same.
8936         * varobj.c (value_of_child): Same.
8937         (varobj_default_is_path_expr_parent): Constify var, parent and return
8938         value.
8939         (varobj_get_path_expr): Constify var, modify path_expr through
8940         mutable_var.
8941         (install_new_value): Constify parent.
8942         (value_of_child): Constify parent.
8943         * varobj.h (struct varobj): Constify parent.
8944         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
8945         type_of_child.
8946         (varobj_get_path_expr): Constify var.
8947         (varobj_get_path_expr_parent): Constify var and return value.
8948
8949 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
8950
8951         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
8952         (arm_prologue_this_id): Move PC and SP limit checks to
8953         arm_prologue_unwind_stop_reason.
8954         (arm_prologue_unwind) <stop_reason> : Set to
8955         arm_prologue_unwind_stop_reason.
8956
8957 2015-02-09  Mark Wielaard  <mjw@redhat.com>
8958
8959         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
8960         DW_LANG_Fortran08 as language_fortran.
8961
8962 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
8963
8964         PR remote/17946
8965         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
8966         of pointer against char.
8967
8968 2015-02-09  Mark Wielaard  <mjw@redhat.com>
8969
8970         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
8971         (c_type_print_modifier): Likewise.
8972         * dwarf2read.c (read_tag_atomic_type): New function.
8973         (read_type_die_1): Handle DW_TAG_atomic_type.
8974         * gdbtypes.c (make_atomic_type): New function.
8975         (recursive_dump_type): Handle TYPE_ATOMIC.
8976         * gdbtypes.h (enum type_flag_values): Renumber.
8977         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
8978         (TYPE_ATOMIC): New macro.
8979         (make_atomic_type): Declare.
8980
8981 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
8982
8983         * btrace.c (ftrace_find_call): Skip gaps.
8984         (ftrace_new_function): Initialize level.
8985         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
8986         (ftrace_new_switch): Update
8987         level computation.
8988         (ftrace_new_gap): New.
8989         (ftrace_update_function): Create new function after gap.
8990         (btrace_compute_ftrace_bts): Create gap on error.
8991         (btrace_stitch_bts): Update parameters.  Clear trace if it
8992         becomes empty.
8993         (btrace_stitch_trace): Update parameters.  Update callers.
8994         (btrace_clear): Reset the number of gaps.
8995         (btrace_insn_get): Return NULL if the iterator points to a gap.
8996         (btrace_insn_number): Return zero if the iterator points to a gap.
8997         (btrace_insn_end): Allow gaps at the end.
8998         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
8999         (btrace_find_insn_by_number): Assert that the found iterator does
9000         not point to a gap.
9001         (btrace_call_next, btrace_call_prev): Assert that the last function
9002         is not a gap.
9003         * btrace.h (btrace_bts_error): New.
9004         (btrace_function): Update comment.
9005         (btrace_function) <insn, insn_offset, number>: Update comment.
9006         (btrace_function) <errcode>: New.
9007         (btrace_thread_info) <ngaps>: New.
9008         (btrace_thread_info) <replay>: Update comment.
9009         (btrace_insn_get): Update comment.
9010         * record-btrace.c (btrace_ui_out_decode_error): New.
9011         (record_btrace_info): Print number of gaps.
9012         (btrace_insn_history, btrace_call_history): Call
9013         btrace_ui_out_decode_error for gaps.
9014         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
9015
9016 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
9017
9018         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
9019         * nat/linux-btrace.c: (btrace_this_cpu): New.
9020         (cpu_supports_bts): Call btrace_this_cpu.
9021         (intel_supports_bts): Add cpu parameter.
9022
9023 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
9024
9025         * btrace.h (btrace_insn_class): New.
9026         (btrace_insn) <size, iclass>: New.
9027         * btrace.c (ftrace_find_call): Update parameters.  Update users.
9028         Use instruction classification.
9029         (ftrace_new_return): Update parameters.  Update users.
9030         (ftrace_update_function): Update parameters.  Update users.  Use
9031         instruction classification.
9032         (ftrace_update_insns): Update parameters.  Update users.
9033         (ftrace_classify_insn): New.
9034         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
9035         TRY_CATCH around call to gdb_insn_length.
9036
9037 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
9038
9039         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
9040         Update parameters.  Update users.
9041
9042 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
9043
9044         * btrace.c (parse_xml_btrace_conf_bts): Add size.
9045         (btrace_conf_bts_attributes): New.
9046         (btrace_conf_children): Add attributes.
9047         * common/btrace-common.h (btrace_config_bts): New.
9048         (btrace_config)<bts>: New.
9049         (btrace_config): Update comment.
9050         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
9051         Use config.
9052         * features/btrace-conf.dtd: Increment version.  Add size
9053         attribute to bts element.
9054         * record-btrace.c (set_record_btrace_bts_cmdlist,
9055         show_record_btrace_bts_cmdlist): New.
9056         (record_btrace_adjust_size, record_btrace_print_bts_conf,
9057         record_btrace_print_conf, cmd_set_record_btrace_bts,
9058         cmd_show_record_btrace_bts): New.
9059         (record_btrace_info): Call record_btrace_print_conf.
9060         (_initialize_record_btrace): Add commands.
9061         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
9062         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
9063         (btrace_sync_conf): Synchronize bts size.
9064         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
9065         * NEWS: Announce new commands and new packets.
9066
9067 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
9068
9069         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
9070         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
9071         (x86_linux_btrace_conf): New.
9072         (x86_linux_create_target): Initialize to_btrace_conf.
9073         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
9074         Check format.  Split into this and ...
9075         (linux_enable_bts): ... this.
9076         (linux_btrace_conf): New.
9077         (perf_event_skip_record): Renamed into ...
9078         (perf_event_skip_bts_record): ... this.  Updated users.
9079         (linux_disable_btrace): Split into this and ...
9080         (linux_disable_bts): ... this.
9081         (linux_read_btrace): Check format.
9082         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
9083         (linux_btrace_conf): New.
9084         (btrace_target_info)<ptid>: Moved.
9085         (btrace_target_info)<conf>: New.
9086         (btrace_target_info): Split into this and ...
9087         (btrace_tinfo_bts): ... this.  Updated users.
9088         * btrace.c (btrace_enable): Update parameters.
9089         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
9090         (btrace_conf_children, btrace_conf_attributes)
9091         (btrace_conf_elements): New.
9092         * btrace.h (btrace_enable): Update parameters.
9093         (btrace_conf, parse_xml_btrace_conf): New.
9094         * common/btrace-common.h (btrace_config): New.
9095         * feature/btrace-conf.dtd: New.
9096         * record-btrace.c (record_btrace_conf): New.
9097         (record_btrace_cmdlist): New.
9098         (record_btrace_enable_warn, record_btrace_open): Pass
9099         &record_btrace_conf.
9100         (record_btrace_info): Print recording format.
9101         (cmd_record_btrace_bts_start): New.
9102         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
9103         (_initialize_record_btrace): Add "record btrace bts" subcommand.
9104         Add "record bts" alias command.
9105         * remote.c (remote_state)<btrace_config>: New.
9106         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
9107         (remote_protocol_features): Add qXfer:btrace-conf:read.
9108         (remote_open_1): Call remote_btrace_reset.
9109         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
9110         (btrace_target_info)<conf>: New.
9111         (btrace_sync_conf, btrace_read_config): New.
9112         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
9113         btrace_read_conf.
9114         (remote_btrace_conf): New.
9115         (init_remote_ops): Initialize to_btrace_conf.
9116         (_initialize_remote): Add qXfer:btrace-conf packet.
9117         * target.c (target_enable_btrace): Update parameters.
9118         (target_btrace_conf): New.
9119         * target.h (target_enable_btrace): Update parameters.
9120         (target_btrace_conf): New.
9121         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
9122         (target_ops)<to_enable_btrace>: Update parameters and comment.
9123         (target_ops)<to_btrace_conf>: New.
9124         * target-delegates: Regenerate.
9125         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
9126         (target_debug_print_const_struct_btrace_target_info_p): New.
9127         * NEWS: Announce new command and new packet.
9128
9129 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
9130
9131         * nat/linux-btrace.h (perf_event_buffer): New.
9132         (btrace_target_info) <buffer, size, data_head>: Replace with ...
9133         <bts>: ... this.
9134         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
9135         (perf_event_buffer_size, perf_event_buffer_begin)
9136         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
9137         Updated users.
9138         (perf_event_new_data): New.
9139
9140 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
9141
9142         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
9143         * record-btrace.c (record_btrace_open): Remove call to
9144         target_supports_btrace.
9145         * remote.c (remote_supports_btrace): Update parameters.
9146         * target.c (target_supports_btrace): Update parameters.
9147         * target.h (to_supports_btrace, target_supports_btrace): Update
9148         parameters.
9149         * target-delegates.c: Regenerate.
9150         * target-debug.h (target_debug_print_enum_btrace_format): New.
9151         * nat/linux-btrace.c
9152         (kernel_supports_btrace): Rename into ...
9153         (kernel_supports_bts): ... this.  Update users.  Update warning text.
9154         (intel_supports_btrace): Rename into ...
9155         (intel_supports_bts): ... this.  Update users.
9156         (cpu_supports_btrace): Rename into ...
9157         (cpu_supports_bts): ... this.  Update users.
9158         (linux_supports_btrace): Update parameters.  Split into this and ...
9159         (linux_supports_bts): ... this.
9160         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
9161
9162 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
9163
9164         * Makefile.in (SFILES): Add common/btrace-common.c.
9165         (COMMON_OBS): Add common/btrace-common.o.
9166         (btrace-common.o): Add build rules.
9167         * btrace.c (parse_xml_btrace): Update parameters.
9168         (parse_xml_btrace_block): Set format field.
9169         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
9170         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
9171         (btrace_compute_ftrace): Split into this and...
9172         (btrace_compute_ftrace_bts): ...this.
9173         (btrace_stitch_trace): Split into this and...
9174         (btrace_stitch_bts): ...this.
9175         * btrace.h (parse_xml_btrace): Update parameters.
9176         (make_cleanup_btrace_data): New.
9177         * common/btrace-common.c: New.
9178         * common/btrace-common.h: Include common-defs.h.
9179         (btrace_block_s): Update comment.
9180         (btrace_format): New.
9181         (btrace_format_string): New.
9182         (btrace_data_bts): New.
9183         (btrace_data): New.
9184         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
9185         * remote.c (remote_read_btrace): Update parameters.
9186         * target.c (target_read_btrace): Update parameters.
9187         * target.h (target_read_btrace): Update parameters.
9188         (target_ops)<to_read_btrace>: Update parameters.
9189         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
9190         * target-delegates.c: Regenerate.
9191         * target-debug (target_debug_print_struct_btrace_data_p): New.
9192         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
9193         (linux_read_bts): ...this.
9194         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
9195
9196 2015-02-06  Doug Evans  <dje@google.com>
9197
9198         * remote-m32r-sdi.c: Include symfile.h.
9199
9200 2015-02-06  Doug Evans  <dje@google.com>
9201
9202         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
9203         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
9204         to here.
9205
9206 2015-02-06  Pedro Alves  <palves@redhat.com>
9207
9208         * linux-thread-db.c (find_new_threads_callback): Add debug output.
9209
9210 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
9211
9212         PR gdb/15678
9213         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
9214         (enable_count_command): Check args for NULL value.
9215
9216 2015-02-05  Doug Evans  <xdje42@gmail.com>
9217
9218         * guile/scm-frame.c: Fix spelling errors in a comment.
9219
9220 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9221
9222         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
9223         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
9224         return type.
9225
9226 2015-02-04  Pedro Alves  <palves@redhat.com>
9227
9228         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
9229         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
9230         returns true.
9231         (resume_stopped_resumed_lwps): Don't check whether the thread is
9232         marked as executing.
9233         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
9234
9235 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9236
9237         * regset.h (struct regset): Add flags field.
9238         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
9239         * corelow.c (get_core_register_section): Add warning if the size
9240         exceeds the requested size and the regset does not have the
9241         REGSET_VARIABLE_SIZE flag set.
9242         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
9243         flag.
9244         * armbsd-tdep.c (armbsd_gregset): Likewise.
9245         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
9246         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
9247         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
9248         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
9249
9250 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9251
9252         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
9253         For ".reg-xstate", explicitly specify the requested section size
9254         via X86_XSTATE_SIZE instead of just 0 on input and
9255         X86_XSTATE_MAX_SIZE on output.
9256         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
9257         Likewise.
9258
9259 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9260
9261         PR corefiles/17808:
9262         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
9263         function type, particularly its SIZE parameter.
9264         * gdbarch.h: Regenerate.
9265         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
9266         actual against required size using ">=" instead of "==".
9267         (amd64_collect_fpregset): Likewise.
9268         * i386-tdep.c (i386_supply_gregset): Likewise.
9269         (i386_collect_gregset): Likewise.
9270         (i386_supply_fpregset): Likewise.
9271         (i386_collect_fpregset): Likewise.
9272         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
9273         (mips_fill_gregset_wrapper): Likewise.
9274         (mips_supply_fpregset_wrapper): Likewise.
9275         (mips_fill_fpregset_wrapper): Likewise.
9276         (mips64_supply_gregset_wrapper): Likewise.
9277         (mips64_fill_gregset_wrapper): Likewise.
9278         (mips64_supply_fpregset_wrapper): Likewise.
9279         (mips64_fill_fpregset_wrapper): Likewise.
9280         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
9281         (am33_supply_fpregset_method): Likewise.
9282         (am33_collect_gregset_method): Likewise.
9283         (am33_collect_fpregset_method): Likewise.
9284
9285 2015-02-04  Doug Evans  <dje@google.com>
9286             Pedro Alves  <palves@redhat.com>
9287             Eli Zaretskii  <eliz@gnu.org>
9288
9289         PR tui/17810
9290         * tui/tui-command.c (tui_refresh_cmd_win): New function.
9291         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
9292         * tui/tui-file.c: #include tui/tui-command.h.
9293         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
9294         (tui_file_flush): Refresh command window if stream is gdb_stdout.
9295         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
9296
9297 2015-02-04  Pedro Alves  <palves@redhat.com>
9298
9299         Fix build breakage.
9300         * event-loop.c (gdb_do_one_event): Add default switch case.
9301
9302 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9303
9304         Filter out inferior gcc option -fpreprocessed.
9305         * compile/compile.c (filter_args): New function.
9306         (get_args): Use it.
9307
9308 2015-02-03  Pedro Alves  <palves@redhat.com>
9309
9310         * event-loop.c: Don't declare nor define a queue type for
9311         gdb_event_p.
9312         (event_queue): Delete.
9313         (create_event, create_file_event, gdb_event_xfree)
9314         (initialize_event_loop, process_event): Delete.
9315         (gdb_do_one_event): Return as soon as one event is handled.
9316         (handle_file_event): Change prototype.  Used the passed in
9317         file_handler pointer and ready_mask instead of looping over all
9318         file handlers.
9319         (gdb_wait_for_event): Update the poll/select timeouts before
9320         blocking.  Run event handlers directly instead of queueing events.
9321         Return as soon as one event is handled.
9322         (struct async_event_handler_data): Delete.
9323         (invoke_async_event_handler): Delete.
9324         (check_async_event_handlers): Change return type to int.  Run
9325         event handlers directly instead of queueing events.  Return as
9326         soon as one event is handled.
9327         (handle_timer_event): Delete.
9328         (update_wait_timeout): New function, factored out from
9329         poll_timers.
9330         (poll_timers): Reimplement.
9331         * event-loop.h (initialize_event_loop): Delete declaration.
9332         * top.c (gdb_init): Don't call initialize_event_loop.
9333
9334 2015-02-03  Pedro Alves  <palves@redhat.com>
9335
9336         * event-loop.c (clear_async_event_handler): New function.
9337         * event-loop.h (clear_async_event_handler): New declaration.
9338         * record-btrace.c (record_btrace_async): New function.
9339         (init_record_btrace_ops): Install record_btrace_async.
9340         * record-full.c (record_full_async): New function.
9341         (record_full_resume): Don't mark the async event source here.
9342         (init_record_full_ops): Install record_full_async.
9343         (record_full_core_resume): Don't mark the async event source here.
9344         (init_record_full_core_ops): Install record_full_async.
9345         * remote.c (remote_async): Mark and clear the async stop reply
9346         queue event-loop token as appropriate.
9347
9348 2015-02-03  Pedro Alves  <palves@redhat.com>
9349
9350         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
9351         target_is_async_p instead of target_can_async.
9352         (linux_nat_wait): Use target_is_async_p instead of
9353         target_can_async.  Don't enable async here.
9354         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
9355         target_is_async_p instead of target_can_async.
9356
9357 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
9358
9359         * varobj.h (lang_varobj_ops): Mention which return values need
9360         to be freed.
9361
9362 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
9363
9364         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
9365
9366 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
9367
9368         PR gdb/17856:
9369         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
9370         results found in the cache.
9371
9372 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
9373
9374         PR gdb/17854:
9375         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
9376         when allocating a new one.
9377
9378 2015-02-01  Tom Tromey  <tom@tromey.com>
9379
9380         * MAINTAINERS: Remove myself.
9381
9382 2015-01-31  Doug Evans  <xdje42@gmail.com>
9383
9384         * dwarf2read.c (process_structure_scope): Update setting of
9385         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
9386         * gdbtypes.c (internal_type_vptr_fieldno): New function.
9387         (set_type_vptr_fieldno): New function.
9388         (internal_type_vptr_basetype): New function.
9389         (set_type_vptr_basetype): New function.
9390         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
9391         TYPE_VPTR_BASETYPE.
9392         (allocate_cplus_struct_type): Initialize vptr_fieldno.
9393         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
9394         (print_cplus_stuff): ... moved here.
9395         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
9396         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
9397         moved to ...
9398         (struct cplus_struct_type): ... here.  All uses updated.
9399         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
9400         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
9401         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
9402         * stabsread.c (read_tilde_fields): Update setting of
9403         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
9404
9405 2015-01-31  Doug Evans  <xdje42@gmail.com>
9406
9407         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
9408         to self_p.
9409         (cp_print_class_member): Rename local domain to self_type.
9410         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
9411         domain_type to self_type.
9412         (set_die_type) <need_gnat_info>: Handle
9413         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
9414         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
9415         TYPE_SPECIFIC_SELF_TYPE.
9416         * gdbtypes.c (internal_type_self_type): New function.
9417         (set_type_self_type): New function.
9418         (smash_to_memberptr_type): Rename parameter domain to self_type.
9419         Update setting of TYPE_SELF_TYPE.
9420         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
9421         (smash_to_method_type): Rename parameter domain to self_type.
9422         Update setting of TYPE_SELF_TYPE.
9423         (check_stub_method): Call smash_to_method_type.
9424         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
9425         (copy_type_recursive): Ditto.
9426         * gdbtypes.h (enum type_specific_kind): New value
9427         TYPE_SPECIFIC_SELF_TYPE.
9428         (struct main_type) <type_specific>: New member self_type.
9429         (struct cplus_struct_type) <fn_field.type>: Update comment.
9430         (TYPE_SELF_TYPE): Rewrite.
9431         (internal_type_self_type, set_type_self_type): Declare.
9432         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
9433         self_type.
9434         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
9435         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
9436         TYPE_TARGET_TYPE.
9437         * stabsread.c (read_member_functions): Mark methods with
9438         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
9439         TYPE_SELF_TYPE.
9440
9441 2015-01-31  Doug Evans  <xdje42@gmail.com>
9442
9443         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
9444         All uses updated.
9445
9446 2015-01-31  Doug Evans  <xdje42@gmail.com>
9447
9448         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
9449         or unions.  Return zero if union.
9450         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
9451         (gnuv3_rtti_type): Pass already-check_typedef'd value to
9452         gnuv3_get_vtable.
9453         (compute_vtable_size): Assert only passed structs.
9454         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
9455
9456 2015-01-31  Doug Evans  <xdje42@gmail.com>
9457
9458         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
9459         kinds.
9460
9461 2015-01-31  Gary Benson <gbenson@redhat.com>
9462             Doug Evans  <dje@google.com>
9463
9464         PR cli/9007
9465         PR cli/11920
9466         PR cli/15548
9467         * cli/cli-cmds.c (complete_command): Notify user if max-completions
9468         reached.
9469         * common/common-exceptions.h (enum errors)
9470         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
9471         * completer.h (get_max_completions_reached_message): New declaration.
9472         (max_completions): Likewise.
9473         (completion_tracker_t): New typedef.
9474         (new_completion_tracker): New declaration.
9475         (make_cleanup_free_completion_tracker): Likewise.
9476         (maybe_add_completion_enum): New enum.
9477         (maybe_add_completion): New declaration.
9478         (throw_max_completions_reached_error): Likewise.
9479         * completer.c (max_completions): New global variable.
9480         (new_completion_tracker): New function.
9481         (free_completion_tracker): Likewise.
9482         (make_cleanup_free_completion_tracker): Likewise.
9483         (maybe_add_completions): Likewise.
9484         (throw_max_completions_reached_error): Likewise.
9485         (complete_line): Remove duplicates and limit result to max_completions
9486         entries.
9487         (get_max_completions_reached_message): New function.
9488         (gdb_display_match_list): Handle max_completions.
9489         (_initialize_completer): New declaration and function.
9490         * symtab.c: Include completer.h.
9491         (completion_tracker): New static variable.
9492         (completion_list_add_name): Call maybe_add_completion.
9493         (default_make_symbol_completion_list_break_on_1): Renamed from
9494         default_make_symbol_completion_list_break_on.  Maintain
9495         completion_tracker across calls to completion_list_add_name.
9496         (default_make_symbol_completion_list_break_on): New function.
9497         * top.c (init_main): Set rl_completion_display_matches_hook.
9498         * tui/tui-io.c: Include completer.h.
9499         (tui_old_rl_display_matches_hook): New static global.
9500         (tui_rl_display_match_list): Notify user if max-completions reached.
9501         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
9502         * NEWS (New Options): Mention set/show max-completions.
9503
9504 2015-01-31  Gary Benson  <gbenson@redhat.com>
9505
9506         * symtab.c (struct add_name_data) <code>: New field.
9507         Updated comments.
9508         (add_symtab_completions): New function.
9509         (symtab_expansion_callback): Likewise.
9510         (default_make_symbol_completion_list_break_on): Set datum.code.
9511         Move minimal symbol scan before calling expand_symtabs_matching.
9512         Scan known primary symtabs for externs and statics before calling
9513         expand_symtabs_matching.  Pass symtab_expansion_callback as
9514         expansion_notify argument to expand_symtabs_matching.  Do not scan
9515         primary symtabs for externs and statics after calling
9516         expand_symtabs_matching.
9517
9518 2015-01-31  Gary Benson  <gbenson@redhat.com>
9519
9520         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
9521         (struct quick_symbol_functions) <expand_symtabs_matching>:
9522         New argument expansion_notify.  All uses updated.
9523         (expand_symtabs_matching): New argument expansion_notify.
9524         All uses updated.
9525         * symfile-debug.c (debug_qf_expand_symtabs_matching):
9526         Also print expansion notify.
9527         * symtab.c (expand_symtabs_matching_via_partial): Call
9528         expansion_notify whenever a partial symbol table is expanded.
9529         * dwarf2read.c (dw2_expand_symtabs_matching): Call
9530         expansion_notify whenever a symbol table is instantiated.
9531
9532 2015-01-31  Doug Evans  <xdje42@gmail.com>
9533
9534         * cli-out.c: #include completer.h, readline/readline.h.
9535         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
9536         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
9537         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
9538         * cli-out.h (cli_display_match_list): Declare.
9539         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
9540         (ELLIPSIS_LEN): Ditto.
9541         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
9542         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
9543         (gdb_fnprint, gdb_print_filename): Ditto.
9544         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
9545         (gdb_display_match_list): Ditto.
9546         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
9547         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
9548         (mld_beep_ftype, mld_read_key_ftype): Ditto.
9549         (match_list_displayer): New struct.
9550         (gdb_display_match_list): Declare.
9551         * top.c (init_main): Set rl_completion_display_matches_hook.
9552         * tui/tui-io.c: #include completer.h.
9553         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
9554         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
9555         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
9556         (tui_mld_getc, tui_mld_read_key): Ditto.
9557         (tui_rl_display_match_list): Rewrite.
9558         (tui_handle_resize_during_io): New arg for_completion.  All callers
9559         updated.
9560
9561 2015-01-31  Doug Evans  <xdje42@gmail.com>
9562
9563         Add symbol lookup cache.
9564         * NEWS: Document new options and commands.
9565         * symtab.c (symbol_cache_key): New static global.
9566         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
9567         (SYMBOL_LOOKUP_FAILED): New macro.
9568         (symbol_cache_slot_state): New enum.
9569         (block_symbol_cache): New struct.
9570         (symbol_cache): New struct.
9571         (new_symbol_cache_size, symbol_cache_size): New static globals.
9572         (hash_symbol_entry, eq_symbol_entry): New functions.
9573         (symbol_cache_byte_size, resize_symbol_cache): New functions.
9574         (make_symbol_cache, free_symbol_cache): New functions.
9575         (get_symbol_cache, symbol_cache_cleanup): New function.
9576         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
9577         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
9578         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
9579         (symbol_cache_flush, symbol_cache_dump): New functions.
9580         (maintenance_print_symbol_cache): New function.
9581         (maintenance_flush_symbol_cache): New function.
9582         (symbol_cache_stats): New function.
9583         (maintenance_print_symbol_cache_statistics): New function.
9584         (symtab_new_objfile_observer): New function.
9585         (symtab_free_objfile_observer): New function.
9586         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
9587         (_initialize_symtab): Init symbol_cache_key.  New parameter
9588         maint symbol-cache-size.  New maint commands print symbol-cache,
9589         print symbol-cache-statistics, flush-symbol-cache.
9590         Install new_objfile, free_objfile observers.
9591
9592 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
9593
9594         PR symtab/17855
9595         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
9596         to end.
9597
9598 2015-01-31  Doug Evans  <xdje42@gmail.com>
9599
9600         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
9601         * auto-load.c: #include ctype.h.
9602         (struct auto_load_pspace_info): Replace member loaded_scripts with
9603         new members loaded_script_files, loaded_script_texts.
9604         (auto_load_pspace_data_cleanup): Update.
9605         (init_loaded_scripts_info): Update.
9606         (get_auto_load_pspace_data_for_loading): Update.
9607         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
9608         updated.
9609         (maybe_add_script_text): New function.
9610         (clear_section_scripts): Update.
9611         (source_script_file, execute_script_contents): New functions.
9612         (source_section_scripts): Add support for
9613         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
9614         (print_scripts): New function.
9615         (auto_load_info_scripts): Also print inlined scripts.
9616         (maybe_print_unsupported_script_warning): Renamed from
9617         unsupported_script_warning_print.  All callers updated.
9618         (maybe_print_script_not_found_warning): Renamed from
9619         script_not_found_warning_print.  All callers updated.
9620         * extension-priv.h (struct extension_language_script_ops): New member
9621         objfile_script_executor.
9622         * extension.c (ext_lang_objfile_script_executor): New function.
9623         * extension.h (objfile_script_executor_func): New typedef.
9624         (ext_lang_objfile_script_executor): Declare.
9625         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
9626         * guile/guile.c (guile_extension_script_ops): Update.
9627         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
9628         * python/python.c (python_extension_script_ops): Update.
9629         (gdbpy_execute_objfile_script): New function.
9630
9631 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
9632
9633         * tui/tui-io.c (tui_expand_tabs): New function.
9634         (tui_puts, tui_redisplay_readline): Expand TABs into the
9635         appropriate number of spaces.
9636         * tui/tui-regs.c: Include tui-io.h.
9637         (tui_register_format): Call tui_expand_tabs to expand TABs into
9638         the appropriate number of spaces.
9639         * tui/tui-io.h: Add prototype for tui_expand_tabs.
9640
9641 2015-01-30  Doug Evans  <dje@google.com>
9642
9643         * NEWS: "info source" command now display producer string if present.
9644         * source.c (source_info): Print producer string if present.
9645
9646 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
9647
9648         * varobj.c (varobj_delete): Fix comment.
9649
9650 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
9651
9652         * varobj.c (create_child): Modify comment.
9653
9654 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
9655
9656         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
9657         parameter.
9658         (ada_name_of_variable): Same.
9659         (ada_path_expr_of_child): Same.
9660         (ada_value_of_variable): Same.
9661         (ada_value_is_changeable_p): Same.
9662         (ada_value_has_mutated): Same.
9663         * c-varobj.c (varobj_is_anonymous_child): Same.
9664         (c_is_path_expr_parent): Same.
9665         (c_number_of_children): Same.
9666         (c_name_of_variable): Same.
9667         (c_path_expr_of_child): Same.
9668         (get_type): Same.
9669         (c_value_of_variable): Same.
9670         (cplus_number_of_children): Same.
9671         (cplus_name_of_variable): Same.
9672         (cplus_path_expr_of_child): Same.
9673         (cplus_value_of_variable): Same.
9674         * jv-varobj.c (java_number_of_children): Same.
9675         (java_name_of_variable): Same.
9676         (java_path_expr_of_child): Same.
9677         (java_value_of_variable): Same.
9678         * varobj.c (number_of_children): Same.
9679         (name_of_variable): Same.
9680         (is_root_p): Same.
9681         (varobj_ensure_python_env): Same.
9682         (varobj_get_objname): Same.
9683         (varobj_get_expression): Same.
9684         (varobj_get_display_format): Same.
9685         (varobj_get_display_hint): Same.
9686         (varobj_has_more): Same.
9687         (varobj_get_thread_id): Same.
9688         (varobj_get_frozen): Same.
9689         (dynamic_varobj_has_child_method): Same.
9690         (varobj_get_gdb_type): Same.
9691         (is_path_expr_parent): Same.
9692         (varobj_default_is_path_expr_parent): Same.
9693         (varobj_get_language): Same.
9694         (varobj_get_attributes): Same.
9695         (varobj_is_dynamic_p): Same.
9696         (varobj_get_child_range): Same.
9697         (varobj_value_has_mutated): Same.
9698         (varobj_get_value_type): Same.
9699         (number_of_children): Same.
9700         (name_of_variable): Same.
9701         (check_scope): Same.
9702         (varobj_editable_p): Same.
9703         (varobj_value_is_changeable_p): Same.
9704         (varobj_floating_p): Same.
9705         (varobj_default_value_is_changeable_p): Same.
9706
9707 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
9708
9709         * varobj.c (varobj_get_path_expr): Set var->path_expr.
9710         * c-varobj.c (c_path_expr_of_child): Set local var instead of
9711         child->path_expr.
9712         (cplus_path_expr_of_child): Same.
9713
9714 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
9715
9716         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
9717         result.
9718         (mi_cmd_var_info_expression): Same.
9719         * varobj.c (varobj_get_expression): Mention in the comment that
9720         the result must by freed by the caller.
9721
9722 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
9723
9724         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
9725         varobj_get_type.
9726         (varobj_update_one): Same.
9727         * varobj.c (update_type_if_necessary): Free curr_type_str and
9728         new_type_str.
9729         (varobj_get_type): Specify in comment that the result needs to be
9730         freed by the caller.
9731
9732 2015-01-29  Doug Evans  <dje@google.com>
9733
9734         PR symtab/17890
9735         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
9736
9737 2015-01-25  Mark Wielaard  <mjw@redhat.com>
9738
9739         * dwarf2read.c (checkproducer): Call producer_is_gcc.
9740         * utils.c (producer_is_gcc_ge_4): Likewise.
9741         (producer_is_gcc): New function.
9742         * utils.h (producer_is_gcc): New declaration.
9743
9744 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
9745
9746         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
9747         kind.
9748         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
9749         parameter by "addr_stack" parameter.
9750         (resolve_dynamic_range): Replace "addr" parameter by
9751         "stack_addr" parameter.  Update function documentation.
9752         Update code accordingly.
9753         (resolve_dynamic_array, resolve_dynamic_union)
9754         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
9755         (resolve_dynamic_type): Update code, following the changes made
9756         to resolve_dynamic_type_internal's interface.
9757         * dwarf2loc.h (struct property_addr_info): New.
9758         (dwarf2_evaluate_property): Replace "address" parameter
9759         by "addr_stack" parameter.  Adjust function documentation.
9760         (struct dwarf2_offset_baton): New.
9761         (struct dwarf2_property_baton): Update documentation of
9762         field "referenced_type" to be more general. New field
9763         "offset_info" in union data field.
9764         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
9765         parameter by "addr_stack" parameter.  Adjust code accordingly.
9766         Add support for PROP_ADDR_OFFSET properties.
9767         * dwarf2read.c (attr_to_dynamic_prop): Add support for
9768         DW_AT_data_member_location attributes as well.  Use case
9769         statements instead of if/else condition.
9770
9771 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
9772
9773         * ada-varobj.c (ada_varobj_get_array_number_of_children):
9774         Return zero if PARENT_VALUE is NULL and parent_type's
9775         range type is dynamic.
9776
9777 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
9778
9779         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
9780         nonzero if the type's subtype is dynamic.
9781         (resolve_dynamic_range): Also resolve the range's subtype.
9782
9783 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
9784
9785         Pushed by Joel Brobecker  <brobecker@adacore.com>.
9786         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
9787
9788 2015-01-27  Doug Evans  <dje@google.com>
9789
9790         * NEWS: Mention gdb.Objfile.username.
9791         * python/py-objfile.c (objfpy_get_username): New function.
9792         (objfile_getset): Add "username".
9793
9794 2015-01-24  Mark Wielaard  <mjw@redhat.com>
9795
9796         * stack.c (return_command): Markup warning message with _.
9797
9798 2015-01-24  Doug Evans  <xdje42@gmail.com>
9799
9800         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
9801
9802 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9803
9804         Fix 100x slowdown regression on DWZ files.
9805         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
9806         (struct line_header): Add offset and offset_in_dwz.
9807         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
9808         (free_line_header_voidp): New declaration.
9809         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
9810         functions.
9811         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
9812         (handle_DW_AT_stmt_list): Use line_header_hash.
9813         (free_line_header_voidp): New function.
9814         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
9815         (dwarf_decode_lines): New parameter decode_mapping, use it.
9816         (dwarf2_free_objfile): Free line_header_hash.
9817
9818 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
9819
9820         PR gdb/17416
9821         * valops.c (value_rtti_indirect_type): Catch exception thrown by
9822         value_ind.
9823
9824 2015-01-15  Mark Wielaard  <mjw@redhat.com>
9825
9826         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
9827         DW_AT_noreturn.
9828         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
9829         calling_convention an 8 bit bit field.
9830         (TYPE_NO_RETURN): New macro.
9831         * infcmd.c (finish_command): Query if function does not return
9832         normally.
9833         * stack.c (return_command): Likewise.
9834
9835 2015-01-23  Pedro Alves  <palves@redhat.com>
9836
9837         * linux-nat.c (linux_is_async_p): New macro.
9838         (linux_nat_is_async_p):
9839         (linux_nat_terminal_inferior): Check whether the target can async
9840         instead of whether it is already async.
9841         (linux_nat_terminal_ours): Don't check whether the target is
9842         async.
9843         (linux_async_pipe): Use linux_is_async_p.
9844
9845 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9846
9847         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
9848         '-ascending'.
9849         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
9850         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
9851         Sort tp_array using tp_array_compar.
9852         (_initialize_thread): Extend thread_apply_all_command help.
9853
9854 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9855
9856         * corelow.c (core_open): Call also thread_command.
9857         * gdbthread.h (thread_command): New prototype moved from ...
9858         * thread.c (thread_command): ... here.
9859         (thread_command): Make it global.
9860
9861 2015-01-22  Pedro Alves  <palves@redhat.com>
9862
9863         * configure.ac [*mingw32*]: Check $curses_found instead of
9864         $prefer_curses.
9865         * configure: Regenerate.
9866         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
9867         HAVE_NCURSES_NCURSES_H checks.
9868
9869 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
9870
9871         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
9872         fails with the 1st arg NULL, try again with "unknown".  Don't test
9873         the "cup" capability: it isn't supported by the Windows port of
9874         ncurses, but the Windows console driver is still capable of
9875         supporting TUI.
9876
9877 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9878
9879         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
9880
9881 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
9882
9883         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
9884         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
9885         reason that "make TAGS" is broken.
9886
9887 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
9888
9889         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
9890         and check additional store instructions.
9891
9892 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
9893
9894         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
9895
9896 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
9897
9898         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
9899         ppc_canonicalize_syscall, ppc_linux_syscall_record,
9900         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
9901         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9902         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
9903         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
9904         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
9905         ppc_process_record_op19, ppc_process_record_op31,
9906         ppc_process_record_op59, ppc_process_record_op60,
9907         ppc_process_record_op63): Likewise.
9908
9909 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
9910
9911         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
9912         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
9913         strerror.
9914
9915 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
9916
9917         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
9918         ppc_process_record_op31, ppc_process_record_op59,
9919         ppc_process_record_op60, ppc_process_record_op63,
9920         ppc_process_record): Fix -Wformat warning.
9921         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
9922         Remove unused variables.
9923
9924 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
9925
9926         * MAINTAINERS (Write After Approval): Add "Chen Gang".
9927
9928 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
9929
9930         * configure.ac [*mingw32*]: Only add windows-termcap.o to
9931         CONFIG_OBS if not building with a curses library.
9932         * configure: Regenerate.
9933
9934         * windows-termcap.c: Include defs.h.  Make the whole body empty if
9935         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
9936         HAVE_NCURSES_NCURSES_H is defined.
9937
9938 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
9939
9940         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
9941         from end of line to start of next line.
9942
9943 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
9944
9945         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
9946         Scan PLT stub backward for reverse debugging.
9947         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9948
9949 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
9950             Ulrich Weigand  <uweigand@de.ibm.com>
9951
9952         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
9953         gdb_target_obs.
9954         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
9955         record.
9956         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
9957         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
9958         (ppc_linux_init_abi): Set process_record, process_record_signal.
9959         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
9960         ppc_linux_record_tdep to gdbarch_tdep.
9961         (ppc_process_record): New declaration.
9962         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
9963         ppc_process_record_op19, ppc_process_record_op31,
9964         ppc_process_record_op59, ppc_process_record_op60,
9965         ppc_process_record_op63, ppc_process_record): New functions.
9966
9967 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
9968
9969         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
9970         rs6000_in_function_epilogue_frame_p and add an argument
9971         for frame_info.
9972         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
9973         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
9974         New functions.
9975         (rs6000_epilogue_frame_unwind): New.
9976         (rs6000_gdbarch_init): Append epilogue unwinder.
9977
9978 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
9979
9980         * nat/linux-personality.c: Replace "#ifndef
9981         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
9982         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
9983         systems.
9984
9985 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
9986
9987         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
9988         functions.
9989         (_initialize_tui_win) <border-kind, border-mode>:
9990         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
9991         (tui_set_tab_width_command): Fix the commentary.
9992
9993         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
9994
9995         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
9996         Doc fix.
9997         (tui_set_tab_width_command): Delete and recreate the source and
9998         the disassembly windows, to show the effect of the changed tab
9999         size immediately.
10000
10001         * tui/tui-data.h (LINE_PREFIX): Make shorter
10002         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
10003         "Thread NNNNN.XXXX" thread ID notation on Windows.
10004
10005 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10006
10007         Fix gcc-5 compilation.
10008         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
10009
10010 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
10011
10012         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
10013         (linux-personality.o): New rule.
10014         * common/common-defs.h: Include <stdint.h>.
10015         * config/aarch64/linux.mh (NATDEPFILES): Include
10016         linux-personality.o.
10017         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
10018         * config/arm/linux.mh (NATDEPFILES): Likewise.
10019         * config/i386/linux64.mh (NATDEPFILES): Likewise.
10020         * config/i386/linux.mh (NATDEPFILES): Likewise.
10021         * config/ia64/linux.mh (NATDEPFILES): Likewise.
10022         * config/m32r/linux.mh (NATDEPFILES): Likewise.
10023         * config/m68k/linux.mh (NATDEPFILES): Likewise.
10024         * config/mips/linux.mh (NATDEPFILES): Likewise.
10025         * config/pa/linux.mh (NATDEPFILES): Likewise.
10026         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
10027         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
10028         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
10029         * config/s390/linux.mh (NATDEPFILES): Likewise.
10030         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
10031         * config/sparc/linux.mh (NATDEPFILES): Likewise.
10032         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
10033         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
10034         * defs.h: Remove #include <stdint.h> (moved to
10035         common/common-defs.h).
10036         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
10037         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
10038         nat/linux-personality.c).
10039         (linux_nat_create_inferior): Remove code to disable address space
10040         randomization (moved to nat/linux-personality.c).  Create cleanup
10041         to disable address space randomization.
10042         * nat/linux-personality.c: New file.
10043         * nat/linux-personality.h: Likewise.
10044
10045 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
10046
10047         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
10048         common/posix-strerror.c.
10049         (posix-strerror.o): New rule.
10050         (mingw-strerror.o): Likewise.
10051         * common/common-utils.h (safe_strerror): Move prototype to here,
10052         from utils.h.
10053         * common/common.host: New file.
10054         * common/mingw-strerror.c: Likewise.
10055         * common/posix-strerror.c: Likewise.
10056         * configure: Regenerated.
10057         * configure.ac: Source common/common.host.  Add variable
10058         common_host_obs to gdb_host_obs.
10059         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
10060         gdb/common/posix-strerror.c when warning about the use of
10061         strerror.
10062         * mingw-hdep.c (safe_strerror): Remove definition; move it to
10063         common/mingw-strerror.c.
10064         * posix-hdep.c (safe_strerror): Remove definition; move it to
10065         common/posix-hdep.c.
10066         * utils.h (safe_strerror): Remove prototype; move to
10067         common/common-utils.h.
10068
10069 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
10070
10071         GDB 7.8.2 released.
10072
10073 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
10074
10075         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
10076         ___XA type if the array has already been fixed.
10077
10078 2015-01-14  Yao Qi  <yao@codesourcery.com>
10079
10080         * Makefile.in (ppc-linux.o): New rule.
10081         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
10082         * configure.ac: AC_CHECK_FUNCS(getauxval).
10083         * config.in: Re-generated.
10084         * configure: Re-generated.
10085         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
10086         Declare.
10087         * nat/ppc-linux.c: New file.
10088         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
10089         Call ppc64_64bit_inferior_p.
10090
10091 2015-01-14  Yao Qi  <yao@codesourcery.com>
10092
10093         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
10094         nat/ppc-linux.h.
10095         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
10096         (PPC_FEATURE_HAS_DFP): Likewise.
10097         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10098         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10099         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10100         Include "nat/ppc-linux.h".
10101         * nat/ppc-linux.h: New file.
10102         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
10103
10104 2015-01-14  Pedro Alves  <palves@redhat.com>
10105
10106         PR gdb/17525
10107         * breakpoint.c: Include "interps.h".
10108         (bpstat_do_actions_1): Also check whether the interpreter is
10109         async.
10110
10111 2015-01-14  Pedro Alves  <palves@redhat.com>
10112
10113         PR cli/17828
10114         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
10115         reinstall if the interpreter is sync.
10116
10117 2015-01-13  Doug Evans  <dje@google.com>
10118
10119         * objfiles.c (objfile_filename): New function.
10120         * objfiles.h (objfile_filename): Declare it.
10121         (objfile_name): Add function comment.
10122         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
10123         bfd file name (which may be realpath'd), and the original name.
10124
10125 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
10126
10127         * NEWS: Create a new section for the next release branch.
10128         Rename the section of the current branch, now that it has
10129         been cut.
10130
10131 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
10132
10133         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
10134         * version.in: Bump version to 7.9.50.DATE-cvs.
10135
10136 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
10137
10138         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
10139         Remove trailing new-line in argument of call to warning.
10140
10141 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
10142
10143         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
10144         new-line in argument of call to "warning".
10145
10146 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
10147
10148         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
10149         in static block, then try searching for primitive types.
10150
10151 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
10152
10153         * top.h (gdb_add_history): Declare.
10154         * top.c (command_count): New variable.
10155         (gdb_add_history): New function.
10156         (gdb_safe_append_history): New static function.
10157         (quit_force): Call it.
10158         (command_line_input): Use gdb_add_history instead of
10159         add_history.
10160         * event-top.c (command_line_handler): Likewise.
10161
10162 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
10163
10164         PR gdb/17046
10165         * darwin-nat.c: Replace <machine/setjmp.h> #include by
10166         <setjmp.h> #include.
10167
10168 2015-01-11  Doug Evans  <xdje42@gmail.com>
10169
10170         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
10171
10172 2015-01-11  Doug Evans  <xdje42@gmail.com>
10173
10174         PR gdb/15830
10175         * NEWS: The "maint demangle" command is renamed as "demangle".
10176         * demangle.c: #include cli/cli-utils.h, language.h.
10177         (demangle_command): New function.
10178         (_initialize_demangle): Add new command "demangle".
10179         * maint.c (maintenance_demangle): Stub out.
10180         (_initialize_maint_cmds): Update help text for "maint demangle",
10181         and mark as deprecated.
10182
10183 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
10184
10185         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
10186         inferior_thread is a function.
10187
10188 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
10189
10190         * Makefile.in (.y.c): Don't munge yacc's #line
10191         directives.
10192
10193 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
10194
10195         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
10196         to prompt for input.
10197         * tui/tui-hooks.c (tui_query_hook): Remove.
10198         (tui_install_hooks): Don't set deprecated_query_hook.
10199         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
10200         height calculation.  Always update the command window's cur_line.
10201
10202 2015-01-09  Pedro Alves  <palves@redhat.com>
10203
10204         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
10205         function.
10206         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
10207         declaration.
10208         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
10209         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
10210         stop_reason.
10211         (check_stopped_by_watchpoint): New function.
10212         (save_sigtrap): Reimplement.
10213         (linux_nat_stopped_by_watchpoint): Adjust.
10214         (linux_nat_lp_status_is_event): Delete.
10215         (stop_wait_callback): Only call save_sigtrap after storing the
10216         pending status.
10217         (status_callback): If the thread had been stopped for a breakpoint
10218         that has since been removed, discard the event and resume the LWP.
10219         (count_events_callback, select_event_lwp_callback): Use
10220         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
10221         (cancel_breakpoint): Rename to ...
10222         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
10223         stopped for a software breakpoint or hardware breakpoint.
10224         (select_event_lwp): Only give preference to the stepping LWP in
10225         all-stop mode.  Adjust comments.
10226         (stop_and_resume_callback): Remove references to new_pending_p.
10227         (linux_nat_filter_event): Likewise.  Leave exit events of the
10228         leader thread pending here.  Handle signal short circuiting here.
10229         Only call save_sigtrap after storing the pending waitstatus.
10230         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
10231         new_pending.  Don't handle leaving events the caller is not
10232         interested in pending here, nor handle signal short-circuiting
10233         here.  Also give equal priority to all LWPs that have had events
10234         in non-stop mode.  If reporting a software breakpoint event,
10235         unadjust the LWP's PC.
10236         * linux-nat.h (enum lwp_stop_reason): New.
10237         (struct lwp_info) <stop_pc>: New field.
10238         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
10239         (struct lwp_info) <stop_reason>: New field.
10240         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10241
10242 2015-01-09  Pedro Alves  <palves@redhat.com>
10243
10244         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
10245         Set the LWP's 'resumed' flag.
10246
10247 2015-01-09  Pedro Alves  <palves@redhat.com>
10248
10249         * linux-nat.c (linux_resume_one_lwp): New function.
10250         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
10251         (linux_nat_resume): Use lwp_status_pending_p and
10252         linux_resume_one_lwp.
10253         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
10254         (linux_handle_extended_wait): Use linux_resume_one_lwp.
10255         (status_callback, running_callback): Use lwp_status_pending_p.
10256         (lwp_status_pending_p): New function.
10257         (stop_and_resume_callback): Use lwp_status_pending_p.
10258         (linux_nat_filter_event): Use linux_resume_one_lwp.
10259         (linux_nat_wait_1): Always use status_callback to look for an LWP
10260         with a pending status.  Use linux_resume_one_lwp.
10261         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
10262         linux_resume_one_lwp.
10263
10264 2015-01-09  Pedro Alves  <palves@redhat.com>
10265
10266         * breakpoint.c (bp_location_inserted_here_p): New function,
10267         factored out from ...
10268         (breakpoint_inserted_here_p): ... here.  Use
10269         ALL_BP_LOCATIONS_AT_ADDR.
10270         (software_breakpoint_inserted_here_p): Use
10271         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
10272
10273 2014-01-09  Pedro Alves  <palves@redhat.com>
10274
10275         Skip enabling event reporting if the kernel supports
10276         PTRACE_EVENT_CLONE.
10277         * linux-thread-db.c: Include "nat/linux-ptrace.h".
10278         (thread_db_use_events): New function.
10279         (try_thread_db_load_1): Check thread_db_use_events before enabling
10280         event reporting.
10281         (update_thread_state): New function.
10282         (attach_thread): Use it.  Check thread_db_use_events before
10283         enabling event reporting.
10284         (thread_db_detach): Check thread_db_use_events before disabling
10285         event reporting.
10286         (find_new_threads_callback): Check thread_db_use_events before
10287         enabling event reporting.  Update the thread's state if not using
10288         libthread_db events.
10289
10290 2015-01-09  Pedro Alves  <palves@redhat.com>
10291
10292         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
10293         about to wait for is > 0.
10294         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
10295         the kernel thread ID is -1.
10296
10297 2015-01-09  Pedro Alves  <palves@redhat.com>
10298
10299         * linux-nat.c (attach_proc_task_lwp_callback): New function.
10300         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
10301         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
10302         ptrace option flags.
10303         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
10304         field.
10305         * nat/linux-procfs.c: Include <dirent.h>.
10306         (linux_proc_get_int): New parameter "warn".  Handle it.
10307         (linux_proc_get_tgid): Adjust.
10308         (linux_proc_get_tracerpid): Rename to ...
10309         (linux_proc_get_tracerpid_nowarn): ... this.
10310         (linux_proc_pid_get_state): New function, factored out from
10311         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
10312         and handle it.
10313         (linux_proc_pid_is_gone): New function.
10314         (linux_proc_pid_is_stopped): Adjust.
10315         (linux_proc_pid_is_zombie_maybe_warn)
10316         (linux_proc_pid_is_zombie_nowarn): New functions.
10317         (linux_proc_pid_is_zombie): Use
10318         linux_proc_pid_is_zombie_maybe_warn.
10319         (linux_proc_attach_tgid_threads): New function.
10320         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
10321         (linux_proc_get_tracerpid): Rename to ...
10322         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
10323         (linux_proc_pid_is_gone): New declaration.
10324         (linux_proc_pid_is_zombie): Update comment.
10325         (linux_proc_pid_is_zombie_nowarn): New declaration.
10326         (linux_proc_attach_lwp_func): New typedef.
10327         (linux_proc_attach_tgid_threads): New declaration.
10328         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
10329         use nowarn functions.
10330         (linux_ptrace_attach_fail_reason_string): Move here from
10331         gdbserver/linux-low.c and rename.
10332         (ptrace_supports_feature): If the current ptrace options are not
10333         known yet, check them now, instead of asserting.
10334         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
10335         Declare.
10336
10337 2015-01-09  Pedro Alves  <palves@redhat.com>
10338
10339         * linux-thread-db.c (thread_db_find_new_threads_silently)
10340         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
10341         (find_new_threads_once): Print debug output on gdb_stdlog.
10342
10343 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
10344             Pedro Alves  <palves@redhat.com>
10345
10346         * compile/compile.c: Include "gdb_wait.h".
10347         (do_rmdir): Check return value, and free 'zap'.
10348
10349 2015-01-08  Pedro Alves  <palves@redhat.com>
10350             Yao Qi  <yao@codesourcery.com>
10351
10352         * dwarf2loc.c (indirect_pieced_value): Don't call
10353         gdb_sign_extend.  Call extract_signed_integer instead.
10354         * utils.c (gdb_sign_extend): Remove.
10355         * utils.h (gdb_sign_extend): Remove declaration.
10356
10357 2015-01-07  Pierre Muller  <muller@sourceware.org>
10358
10359         PR symtab/17811
10360         * stabsread.c (define_symbol): Set language for C++ special symbols.
10361
10362 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
10363
10364         * inflow.c (initial_gdb_ttystate): Tweak comment.
10365
10366 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
10367
10368         * inflow.c (set_initial_gdb_ttystate): Add empty line after
10369         comment documenting function.
10370
10371 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
10372
10373         * terminal.h (set_initial_gdb_ttystate): Declare.
10374         * inflow.c (initial_gdb_ttystate): New static variable.
10375         (set_initial_gdb_ttystate): New setter.
10376         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
10377         instead of our current terminal state.
10378         * top.c (gdb_init): Call set_initial_gdb_ttystate.
10379
10380 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
10381
10382         * guile/scm-type.c (tyscm_array_1): Add comment.
10383         * python/py-type.c (typy_array_1): Add comment.
10384
10385 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
10386
10387         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
10388         error if N2 is equal to N1 - 1.
10389
10390 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
10391
10392         * python/py-type.c (typy_array_1): Do not raise negative-length
10393         exception if N2 is equal to N1 - 1.
10394
10395 2015-01-03  Doug Evans  <xdje42@gmail.com>
10396
10397         * c-exp.y: Whitespace cleanup.
10398         (classify_inner_name): Remove extra ;.
10399
10400 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
10401
10402         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
10403         offset signed.
10404
10405 2015-01-02  Doug Evans  <dje@google.com>
10406
10407         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
10408
10409 2015-01-02  Doug Evans  <dje@google.com>
10410
10411         * symtab.h (struct symbol): Fix typo in comment.
10412
10413 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
10414
10415         Update year range in copyright notice of all files.
10416
10417 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
10418
10419         * top.c (print_gdb_version): Update copyright year to 2015.
10420
10421 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
10422
10423         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
10424
10425 For older changes see ChangeLog-2014.
10426 \f
10427 Local Variables:
10428 mode: change-log
10429 left-margin: 8
10430 fill-column: 74
10431 version-control: never
10432 coding: utf-8
10433 End: