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