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