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