Cast to enum bfd_endian in arm_get_next_pcs_read_memory_unsigned_integer
[external/binutils.git] / gdb / ChangeLog
1 2015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
2
3         * arm-tdep.c (arm_get_next_pcs_read_memory_unsigned_integer): Cast
4         to enum bfd_endian)
5
6 2015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7
8         * Makefile.in (ALL_TARGET_OBS): Append arm-get-next-pcs.o,
9         arm-linux.o.
10         (ALLDEPFILES): Append arm-get-next-pcs.c, arm-linux.c
11         (arm-linux.o): New rule.
12         (arm-get-next-pcs.o): New rule.
13         * arch/arm-get-next-pcs.c: New file.
14         * arch/arm-get-next-pcs.h: New file.
15         * arch/arm-linux.h: New file.
16         * arch/arm-linux.c: New file.
17         * arm.c: Include common-regcache.c.
18         (thumb_advance_itstate): Moved from arm-tdep.c.
19         (arm_instruction_changes_pc): Likewise.
20         (thumb_instruction_changes_pc): Likewise.
21         (thumb2_instruction_changes_pc): Likewise.
22         (shifted_reg_val): Likewise.
23         * arm.h (submask): Move macro from arm-tdep.h
24         (bit): Likewise.
25         (bits): Likewise.
26         (sbits): Likewise.
27         (BranchDest): Likewise.
28         (thumb_advance_itstate): Moved declaration from arm-tdep.h
29         (arm_instruction_changes_pc): Likewise.
30         (thumb_instruction_changes_pc): Likewise.
31         (thumb2_instruction_changes_pc): Likewise.
32         (shifted_reg_val): Likewise.
33         * arm-linux-tdep.c: Include arch/arm.h, arch/arm-get-next-pcs.h
34         arch/arm-linux.h.
35         (arm_linux_get_next_pcs_ops): New struct.
36         (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT,
37         ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT,
38         ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): Move stack
39         layout defines to arch/arm-linux.h.
40         (arm_linux_sigreturn_next_pc_offset): Move to arch/arm-linux.c.
41         (arm_linux_software_single_step): Adjust for arm_get_next_pcs
42         implementation.
43         * arm-tdep.c: Include arch/arm-get-next-pcs.h.
44         (arm_get_next_pcs_ops): New struct.
45         (submask): Move macro to arm.h.
46         (bit): Likewise.
47         (bits): Likewise.
48         (sbits): Likewise.
49         (BranchDest): Likewise.
50         (thumb_instruction_changes_pc): Move to arm.c
51         (thumb2_instruction_changes_pc): Likewise.
52         (arm_instruction_changes_pc): Likewise.
53         (shifted_reg_val): Likewise.
54         (thumb_advance_itstate): Likewise.
55         (thumb_get_next_pc_raw): Move to arm-get-next-pcs.c.
56         (arm_get_next_pc_raw): Likewise.
57         (arm_get_next_pc): Likewise.
58         (thumb_deal_with_atomic_sequence_raw): Likewise.
59         (arm_deal_with_atomic_sequence_raw): Likewise.
60         (arm_deal_with_atomic_sequence): Likewise.
61         (arm_get_next_pcs_read_memory_unsigned_integer): New function.
62         (arm_get_next_pcs_addr_bits_remove): Likewise.
63         (arm_get_next_pcs_syscall_next_pc): Likewise.
64         (arm_get_next_pcs_is_thumb): Likewise.
65         (arm_software_single_step): Adjust for arm_get_next_pcs
66         implementation.
67         * arm-tdep.h: (arm_get_next_pc): Remove declaration.
68         (arm_get_next_pcs_read_memory_unsigned_integer):
69         New declaration.
70         (arm_get_next_pcs_addr_bits_remove): Likewise.
71         (arm_get_next_pcs_syscall_next_pc): Likewise.
72         (arm_get_next_pcs_is_thumb): Likewise.
73         (arm_deal_with_atomic_sequence: Remove declaration.
74         * common/gdb_vecs.h: Add CORE_ADDR vector definition.
75         * configure.tgt (aarch64*-*-linux): Add arm-get-next-pcs.o,
76         arm-linux.o.
77         (arm*-wince-pe): Add arm-get-next-pcs.o.
78         (arm*-*-linux*): Add arm-get-next-pcs.o, arm-linux.o,
79         arm-get-next-pcs.o
80         (arm*-*-netbsd*,arm*-*-knetbsd*-gnu): Add arm-get-next-pcs.o.
81         (arm*-*-openbsd*): Likewise.
82         (arm*-*-symbianelf*): Likewise.
83         (arm*-*-*): Likewise.
84         * symtab.h: Move CORE_ADDR vector definition to gdb_vecs.h.
85
86 2015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
87
88         * Makefile.in (SFILES): Append common/common-regcache.c.
89         (COMMON_OBS): Append common/common-regcache.o.
90         (common-regcache.o): New rule.
91         * common/common-regcache.h (register_status) New enum.
92         (regcache_raw_read_unsigned): New declaration.
93         * common/common-regcache.c: New file.
94         * regcache.h (enum register_status): Move to common-regcache.h.
95         (regcache_raw_read_unsigned): Likewise.
96         (regcache_raw_get_unsigned): Likewise.
97
98 2015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
99
100         * arm-linux-tdep.c (arm_linux_sigreturn_next_pc_offset): New function.
101         (arm_linux_sigreturn_next_pc): Likewise.
102         (arm_linux_syscall_next_pc): Use regcache instead of frame.
103         (arm_linux_software_single_step): Likewise.
104         * arm-tdep.c (arm_is_thumb): New function.
105         (shifted_reg_va): Use regcache instead of frame.
106         (thumb_get_next_pc_raw): Likewise.
107         (arm_get_next_pc_raw): Likewise.
108         (arm_get_next_pc): Likewise.
109         (thumb_deal_with_atomic_sequence_raw): Likewise.
110         (arm_deal_with_atomic_sequence_raw): Likewise.
111         (arm_deal_with_atomic_sequence): Likewise.
112         (arm_software_single_step): Likewise.
113         * arm-tdep.h (struct gdbarch_tdep): Use regcache for syscall_next_pc.
114         (arm_get_next_pc): Use regcache.
115         (arm_deal_with_atomic_sequence): Likewise.
116         (arm_is_thumb): New declaration.
117         * regcache.c (regcache_raw_get_unsigned): New function.
118         * regcache.h (regcache_raw_get_unsigned): New function declaration.
119
120 2015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
121
122         * arch/arm.c (bitcount): Move from arm-tdep.c.
123         (condition_true): Likewise.
124         * arch/arm.h (Instruction Definitions): Move form arm-tdep.h.
125         (condition_true): Move defenition from arm-tdep.h.
126         (bitcount): Likewise.
127         * arm-tdep.c (condition_true): Move to arch/arm.c.
128         (bitcount): Likewise.
129         * arm-tdep.h (Instruction Definitions): Move to arch/arm.h.
130         * arm-wince-tdep.c: Include arch/arm.h.
131         * armnbsd-tdep.c: Likewise.
132
133 2015-12-17  Pedro Alves  <palves@redhat.com>
134
135         PR threads/19354
136         * linux-nat.c (linux_nat_update_thread_list): Update process cores
137         each lwp was last seen running on here.
138         * linux-thread-db.c (update_thread_core): Delete.
139         (thread_db_update_thread_list_td_ta_thr_iter): Rename to ...
140         (thread_db_update_thread_list): ... this.  Skip inferiors with
141         execution.  Also call the target beneath.
142         (thread_db_update_thread_list): Delete.
143
144 2015-12-17  Pedro Alves  <palves@redhat.com>
145
146         * configure.ac: Remove tkill checks.
147         * configure, config.in: Regenerate.
148         * linux-nat.c: Remove HAVE_TKILL_SYSCALL check.  Update top level
149         comments.
150         (linux_nat_post_attach_wait): Remove 'cloned' parameter.  Use
151         __WALL.
152         (attach_proc_task_lwp_callback): Don't set the cloned flag.
153         (linux_nat_attach): Adjust.
154         (kill_lwp): Remove HAVE_TKILL_SYSCALL check.  No longer fall back
155         to 'kill'.
156         (linux_handle_extended_wait): Use __WALL.  Don't set the cloned
157         flag.
158         (wait_lwp): Use __WALL.  Update comments.
159         (running_callback, stop_and_resume_callback): Delete.
160         (linux_nat_filter_event): Don't stop and resume all lwps. Don't
161         check if the event LWP has previously exited.
162         (check_zombie_leaders): Update comments.
163         (linux_nat_wait_1): Use __WALL.
164         (kill_wait_callback): Don't handle clone processes separately.
165         Use __WALL instead.
166         (linux_thread_alive): Delete.
167         (linux_nat_thread_alive): Return true as long as the LWP is in the
168         LWP list.
169         (linux_nat_update_thread_list): Assume the kernel supports
170         PTRACE_EVENT_CLONE.
171         (get_signo): Delete.
172         (lin_thread_get_thread_signals): Remove LinuxThreads references.
173         No longer check __pthread_sig_restart / __pthread_sig_cancel in
174         the inferior.
175         * linux-nat.h (struct lwp_info) <cloned>: Delete field.
176         * linux-thread-db.c: Update comments.
177         (_initialize_thread_db): Remove LinuxThreads references.
178         * nat/linux-waitpid.c (my_waitpid): No longer emulate __WALL.
179         Pass down flags unmodified.
180         * linux-waitpid.h (my_waitpid): Update documentation.
181
182 2015-12-17  Yao Qi  <yao.qi@linaro.org>
183
184         * aarch64-tdep.c (struct stack_item_t): Update comments.
185         (pass_on_stack): Set item.data to NULL.
186         (aarch64_push_dummy_call): Call write_memory if si->data
187         isn't NULL.
188
189 2015-12-16  Pedro Alves  <palves@redhat.com>
190
191         * configure.ac (compiler warning flags): When testing a
192         -Wno-foo option, check whether -Wfoo works instead.
193         * configure: Regenerate.
194
195 2015-12-16  Pedro Alves  <palves@redhat.com>
196
197         * common/vec.h (vec_offset): New macro.
198         (DEF_VEC_ALLOC_FUNC_I, DEF_VEC_ALLOC_FUNC_O): Use it instead of
199         offsetof.
200
201 2015-12-11  Don Breazeal  <donb@codesourcery.com>
202
203         * NEWS: Announce fork and exec event support for target remote.
204
205 2015-12-11  Don Breazeal  <donb@codesourcery.com>
206
207         * inferior.c (number_of_live_inferiors): New function.
208         (have_live_inferiors): Use number_of_live_inferiors in place
209         of duplicate code.
210         * inferior.h (number_of_live_inferiors): Declare new function.
211         * remote.c (set_general_process): Remove restriction on target
212         remote mode.
213         (remote_query_supported): Likewise.
214         (remote_detach_1): Exit in target remote mode only when there
215         is just one live inferior left.
216         (remote_disconnect): Unpush the target directly instead of 
217         calling remote_mourn.
218         (remote_kill): Rewrite function to handle both target remote
219         and extended-remote.  Call remote_kill_k.
220         (remote_kill_k): New function.
221         (extended_remote_kill): Delete function.
222         (remote_mourn, extended_remote_mourn): Combine functions into
223         one, remote_mourn, and enable extended functionality for target
224         remote.
225         (remote_pid_to_str): Enable "process" style ptid string for
226         target remote.
227         (remote_supports_multi_process): Remove restriction on target
228         remote mode.
229
230 2015-12-14  Andrew Burgess  <andrew.burgess@embecosm.com>
231
232         * i386-tdep.c (i386_mpx_info_bounds): Use TYPE_LENGTH.
233         (i386_mpx_set_bounds): Likewise.
234         * solib-darwin.c (darwin_load_image_infos): Likewise.
235         (darwin_solib_read_all_image_info_addr): Likewise.
236
237 2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
238
239         * cli/cli-cmds.c (_initialize_cli_cmds): Extend help text for
240         'list' command.
241
242 2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
243
244         * cli/cli-cmds.c (list_command): Add an error when trying to use
245         '-' to scan read off the start of the source file.
246
247 2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
248
249         * cli/cli-cmds.c (list_command): Check that the argument string is
250         a single character, either '+' or '-'.
251
252 2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
253
254         * cli/cli-cmds.c (list_command): Move all handling of +/-
255         arguments into a single if block.
256
257 2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
258
259         * cli/cli-cmds.c (list_command): Use NULL instead of 0 when
260         checking pointers.
261
262 2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
263
264         * source.c (lines_to_list): Make static.
265
266 2015-12-10  Antoine Tremblay  <antoine.tremblay@ericsson.com>
267
268         * linux-thread-db.c (find_new_threads_callback): Use record_thread.
269
270 2015-12-10  Antoine Tremblay  <antoine.tremblay@ericsson.com>
271
272         * breakpoint.c (remove_thread_event_breakpoints): Remove.
273         * breakpoint.h (remove_thread_event_breakpoints): Remove
274         declaration.
275         * linux-nat.c (in_pid_list_p): Remove.
276         (lin_lwp_attach_lwp): Remove.
277         * linux-nat.h (lin_lwp_attach_lwp): Remove declaration.
278         * linux-thread-db.c (thread_db_use_events): Remove.
279         (struct thread_db_info) <td_create_bp_addr>: Remove.
280         <td_death_bp_addr>: Likewise.
281         <td_ta_event_addr_p>: Likewise.
282         <td_ta_set_event_p>: Likewise.
283         <td_ta_clear_event_p>: Likewise.
284         <td_ta_event_getmsg_p>: Likewise.
285         <td_thr_event_enable_p>: Likewise.
286         (attach_thread): Likewise.
287         (detach_thread): Likewise.
288         (have_threads_callback): Likewise.
289         (have_threads): Likewise.
290         (enable_thread_event): Likewise.
291         (enable_thread_event_reporting): Likewise.
292         (try_thread_db_load_1): Remove td_ta_event_addr, td_ta_set_event,
293         td_ta_clear_event, td_ta_event_getmsg, td_thr_event_enable
294         initializations.
295         (try_thread_db_load_1): Remove enable_thread_event_reporting call.
296         (disable_thread_event_reporting): Remove.
297         (record_thread): Adapt to thread_db_use_event removal.
298         (detach_thread): Remove.
299         (thread_db_detach): Adapt to thread_db_use_event removal.
300         (check_event): Remove.
301         (thread_db_wait): Adapt to thread events support removal.
302         (thread_db_mourn_inferior): Likewise.
303         (find_new_threads_callback): Likewise.
304         (find_new_threads_once): Likewise.
305         (thread_db_update_thread_list): Likewise.
306
307 2015-12-10  Andrew Burgess  <andrew.burgess@embecosm.com>
308
309         * dwarf2read.c (dwarf2_ranges_read): Unify and fix base address
310         reading code.
311
312 2015-12-09  Kevin Buettner  <kevinb@redhat.com>
313
314         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Perform a pointer
315         to address conversion for DWARF_VALUE_MEMORY.
316
317 2015-12-09  Luis Machado  <lgustavo@codesourcery.com>
318
319         * gdb/mi/mi-cmd-var.c (mi_parse_format): Handle new "zero-hexadecimal"
320         format.
321         * gdb/varobj.c (varobj_format_string): Add "zero-hexadecimal" entry.
322         (format_code): Add 'z' entry.
323         (varobj_set_display_format): Handle FORMAT_ZHEXADECIMAL.
324         * gdb/varobj.h (varobj_display_formats) <FORMAT_ZHEXADECIMAL>: New enum
325         field.
326         * NEWS: Add new note to MI changes citing the new zero-hexadecimal
327         format for -var-set-format.
328
329 2015-12-09  Ruslan Kabatsayev  <b7.10110111@gmail.com>  (tiny patch)
330
331         PR gdb/18702
332         * configure.host: Fix detection of x86_64 host when setting
333         floatformats.
334
335 2015-12-08  Pierre-Marie de Rodat  <derodat@adacore.com>
336
337         * NEWS: Announce this enhancement and the corresponding new
338         option.
339
340 2015-12-07  Pierre-Marie de Rodat  <derodat@adacore.com>
341
342         * ada-lang.c (print_signatures): New.
343         (ada_print_symbol_signature): New.
344         (user_select_syms): Add signatures to the output of candidate
345         symbols using ada_print_symbol_signature.
346         (_initialize_ada_language): Add a "set/show ada
347         print-signatures" boolean option.
348
349 2015-12-07  Andreas Arnez <arnez@linux.vnet.ibm.com>
350
351         * MAINTAINERS (Write After Approval): Add Andreas Arnez.
352
353 2015-12-06  Mike Stump <mikestump@comcast.net>
354             Joel Brobecker  <brobecker@adacore.com>
355
356         * Makefile.in (TAGS): Replace i386-nat.h by x86-nat.h.
357         * x86-nat.c: Replace remaining references to i386-nat
358         by reference to x86-nat instead.
359
360 2015-12-05  Joel Brobecker  <brobecker@adacore.com>
361
362         GDB 7.10.1 released.
363
364 2015-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
365
366         * remote.c (remote_parse_stop_reply): Avoid GCC 4.1 "operation
367         may be undefined" warning.
368
369 2015-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
370
371         * remote.c (remote_newthread_step): Initialize item.name.
372         (remote_get_threads_with_qthreadinfo): Likewise.
373
374 2015-11-30  Pedro Alves  <palves@redhat.com>
375
376         PR 14618
377         * NEWS (New remote packets): Mention the N stop reply.
378         * remote.c (remote_protocol_features): Add "no-resumed" entry.
379         (remote_query_supported): Report no-resumed+ support.
380         (remote_parse_stop_reply): Handle 'N'.
381         (process_stop_reply): Handle TARGET_WAITKIND_NO_RESUMED.
382         (remote_wait_as): Handle 'N' / TARGET_WAITKIND_NO_RESUMED.
383         (_initialize_remote): Register "set/show remote
384         no-resumed-stop-reply" commands.
385
386 2015-11-30  Pedro Alves  <palves@redhat.com>
387
388         PR 14618
389         * infrun.c (handle_no_resumed): New function.
390         (handle_inferior_event_1) <TARGET_WAITKIND_NO_RESUMED>: Defer to
391         handle_no_resumed.
392
393 2015-11-30  Pedro Alves  <palves@redhat.com>
394
395         * NEWS (New commands): Mention "set/show remote thread-events"
396         commands.
397         (New remote packets): Mention thread created/exited stop reasons
398         and QThreadEvents packet.
399         * infrun.c (disable_thread_events): New function.
400         (stop_all_threads): Disable/enable thread create/exit events.
401         Handle TARGET_WAITKIND_THREAD_EXITED.
402         (handle_inferior_event_1): Handle TARGET_WAITKIND_THREAD_CREATED
403         and TARGET_WAITKIND_THREAD_EXITED.
404         * remote.c (remove_child_of_pending_fork): Also remove threads of
405         threads that have TARGET_WAITKIND_THREAD_EXITED events.
406         (remote_parse_stop_reply): Handle "create" magic register.  Handle
407         'w' stop reply.
408         (initialize_remote): Install remote_thread_events as
409         to_thread_events target hook.
410         (remote_thread_events): New function.
411         * target-delegates.c: Regenerate.
412         * target.c (target_thread_events): New function.
413         * target.h (struct target_ops) <to_thread_events>: New field.
414         (target_thread_events): Declare.
415         * target/waitstatus.c (target_waitstatus_to_string): Handle
416         TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
417         * target/waitstatus.h (enum target_waitkind)
418         <TARGET_WAITKIND_THREAD_CREATED, TARGET_WAITKIND_THREAD_EXITED):
419         New values.
420
421 2015-11-30  Pedro Alves  <palves@redhat.com>
422
423         * NEWS (New remote packets): Mention vCtrlC.
424         * remote.c (PACKET_vCtrlC): New enum value.
425         (async_remote_interrupt): Call target_interrupt instead of
426         target_stop.
427         (remote_interrupt_as): Remove 'ptid' parameter.
428         (remote_interrupt_ns): New function.
429         (remote_stop): Adjust.
430         (remote_interrupt): If the target is in non-stop mode, try
431         interrupting with vCtrlC.
432         (initialize_remote): Install set remote ctrl-c packet.
433
434 2015-11-30  Pedro Alves  <palves@redhat.com>
435
436         * remote.c (struct remote_state) <remote_watch_data_address,
437         stop_reason>: Delete fields.
438         (struct private_thread_info) <stop_reason, watch_data_address>:
439         New fields.
440         (resume_clear_thread_private_info): New function.
441         (append_pending_thread_resumptions): Call it.
442         (remote_resume): Clear all threads' private info.
443         (process_stop_reply): Adjust.
444         (remote_wait_as): Don't reference remote_state's stop_reason
445         field.
446         (remote_stopped_by_sw_breakpoint)
447         (remote_stopped_by_hw_breakpoint, remote_stopped_by_watchpoint)
448         (remote_stopped_data_address): Adjust to refer get data from the
449         current thread.
450
451 2015-11-30  Pedro Alves  <palves@redhat.com>
452
453         * infcmd.c (attach_post_wait): If the target is always in non-stop
454         mode, and the UI is in all-stop mode, stop all threads and pick
455         the one with lowest number as current.
456
457 2015-11-30  Pedro Alves  <palves@redhat.com>
458
459         * gdbthread.h (switch_to_thread_no_regs): Declare.
460         * infcmd.c (setup_inferior): New function, factored out from ...
461         (attach_command_post_wait): ... this.  Rename to ...
462         (attach_post_wait): ... this.  Replace parameter async_exec with
463         attach_post_wait_mode parameter.  Adjust.
464         (enum attach_post_wait_mode): New enum.
465         (struct attach_command_continuation_args): Replace 'async_exec'
466         field with 'mode' field.
467         (attach_command_continuation): Adjust.
468         (attach_command): Add comment.  Mark the inferior as needing
469         setup.  Adjust to use enum attach_post_wait_mode.
470         (notice_new_inferior): Use switch_to_thread_no_regs.  Adjust to
471         use enum attach_post_wait_mode.
472         * inferior.h (setup_inferior): Declare.
473         (struct inferior) <needs_setup>: New field.
474         * infrun.c (set_last_target_status): Make extern.
475         (stop_all_threads): Make extern.  Setup inferior, if necessary.
476         * infrun.h (set_last_target_status, stop_all_threads): Declare.
477         * remote-notif.c (remote_async_get_pending_events_handler)
478         (handle_notification): Replace non_stop checks with
479         target_is_non_stop_p() checks.
480         * remote.c (remote_notice_new_inferior): Remove non_stop check.
481         (remote_update_thread_list): Replace non_stop check with
482         target_is_non_stop_p() check.
483         (print_one_stopped_thread): New function.
484         (process_initial_stop_replies): New 'from_tty' parameter.
485         "Notice" all new live inferiors after storing initial stops as
486         pending status in each corresponding thread.  If all-stop, stop
487         all threads, try picking a signalled thread as current, and print
488         the status of that one thread.  Record the last target status.
489         (remote_start_remote): Replace non_stop checks with
490         target_is_non_stop_p() checks.  Don't query for the remote current
491         thread of use qOffsets here.  Pass from_tty to
492         process_initial_stop_replies.
493         (extended_remote_attach): Replace non_stop checks with
494         target_is_non_stop_p() checks.
495         (extended_remote_post_attach): Send qOffsets here.
496         (remote_vcont_resume, remote_resume, remote_stop)
497         (remote_interrupt, remote_parse_stop_reply, remote_wait): Replace
498         non_stop checks with target_is_non_stop_p() checks.
499         (remote_async): If target is non-stop, mark/clear the pending
500         events token.
501         * thread.c (switch_to_thread_no_regs): New function.
502
503 2015-11-30  Pedro Alves  <palves@redhat.com>
504
505         * gdb.mi/mi-nonstop.exp: Append "set non-stop on" to GDBFLAGS
506         instead of issuing "-gdb-set non-stop 1" after starting gdb.
507         Use mi_is_target_remote instead of checking "is_remote target".
508         * lib/gdb.exp (gdb_is_target_remote): Rename to ...
509         (gdb_is_target_remote_prompt): ... this, and add 'prompt_regexp'
510         parameter.
511         (gdb_is_target_remote): Reimplement.
512         * lib/mi-support.exp (mi_is_target_remote): New procedure.
513
514 2014-11-28  Pedro Alves  <palves@redhat.com>
515
516         * cp-name-parser.y (conversion_op): Use
517         DEMANGLE_COMPONENT_CONVERSION instead of DEMANGLE_COMPONENT_CAST.
518
519 2015-11-27  Simon Marchi  <simon.marchi@ericsson.com>
520
521         * remote.c (start_thread): Add cast.
522
523 2015-11-27  Yao Qi  <yao.qi@linaro.org>
524
525         * nat/aarch64-linux-hw-point.c (aarch64_dr_state_remove_one_point):
526         Don't assert on alignment.
527         (aarch64_handle_breakpoint): Only check alignment when IS_INSERT
528         is true.
529
530 2015-11-27  Yao Qi  <yao.qi@linaro.org>
531
532         * aarch64-tdep.c (is_hfa): Rename to ...
533         (is_hfa_or_hva): ... this.  Handle vector type.  All callers
534         updated.
535         (aarch64_extract_return_value): Update debugging message.
536         (aarch64_store_return_value): Likewise.
537         (aarch64_return_in_memory): Update comments.
538
539 2015-11-27  Yao Qi  <yao.qi@linaro.org>
540
541         * aarch64-tdep.c (aarch64_type_align): For vector type, return
542         its length, but with the maximum of 16 bytes.
543         (is_hfa): Return zero for vector type.
544         (aarch64_push_dummy_call): Handle short vectors.
545         (aarch64_extract_return_value): Likewise.
546         (aarch64_store_return_value): Likewise.
547
548 2015-11-26  Daniel Colascione  <dancol@dancol.org>
549 2015-11-26  Simon Marchi  <simon.marchi@ericsson.com>
550
551         * linux-nat.c (linux_nat_thread_name): Replace implementation by call
552         to linux_proc_tid_get_name.
553         * nat/linux-procfs.c (linux_proc_tid_get_name): New function,
554         implementation inspired by linux_nat_thread_name.
555         * nat/linux-procfs.h (linux_proc_tid_get_name): New declaration.
556         * remote.c (struct private_thread_info) <name>: New field.
557         (free_private_thread_info): Free name field.
558         (remote_thread_name): New function.
559         (thread_item_t) <name>: New field.
560         (clear_threads_listing_context): Free name field.
561         (start_thread): Get name xml attribute.
562         (thread_attributes): Add "name" attribute.
563         (remote_update_thread_list): Copy name field.
564         (init_remote_ops): Assign remote_thread_name callback.
565         * target.h (target_thread_name): Update comment.
566         * NEWS: Mention remote thread name support.
567
568 2015-11-26  Simon Marchi  <simon.marchi@ericsson.com>
569
570         * linux-nat.c (linux_nat_thread_name): Constify return value.
571         * target.h (struct target_ops) <to_thread_name>: Likewise.
572         (target_thread_name): Likewise.
573         * target.c (target_thread_name): Likewise.
574         * target-delegates.c (debug_thread_name): Regenerate.
575         * python/py-infthread.c (thpy_get_name): Constify local variables.
576         * thread.c (print_thread_info): Likewise.
577         (thread_find_command): Likewise.
578
579 2015-11-26  Markus Metzger  <markus.t.metzger@intel.com>
580
581         PR 19297
582         * btrace.c (btrace_enable): Check whether HAVE_LIBIPT is defined.
583
584 2015-11-24  Pedro Alves  <palves@redhat.com>
585
586         * NEWS: Mention that a few "info" commands now list the
587         corresponding items in ascending ID order.
588
589 2015-11-24  Pedro Alves  <palves@redhat.com>
590
591         PR 17539
592         * printcmd.c (display_command): Append new display at the end of
593         the list.
594
595 2015-11-24  Pedro Alves  <palves@redhat.com>
596
597         PR 17539
598         * printcmd.c (display_command): Append new display at the end of
599         the list.
600
601 2015-11-24  Pedro Alves  <palves@redhat.com>
602
603         PR 17539
604         * inferior.c (add_inferior_silent): Append the new inferior to the
605         end of the list.
606         * progspace.c (add_program_space): Append the new pspace to the
607         end of the list.
608         * thread.c (new_thread): Append the new thread to the end of the
609         list.
610
611 2015-11-24  Pedro Alves  <palves@redhat.com>
612
613         * linux-tdep.c (find_stop_signal): Delete.
614         (struct linux_corefile_thread_data) <pid>: Remove field.
615         (linux_corefile_thread_callback): Rename to ...
616         (linux_corefile_thread): ... this.  Now takes a struct
617         linux_corefile_thread_data pointer rather than a void pointer.
618         Remove thread state and thread pid checks.
619         (linux_make_corefile_notes): Prefer dumping the signalled thread
620         first.  Use ALL_NON_EXITED_THREADS instead of
621         iterate_over_threads.
622
623 2015-11-23  Par Olsson  <par.olsson@windriver.com>
624
625         * breakpoint.c (tracepoint_print_recreate): Fix logic error
626         if -> else if.
627
628 2015-11-23  Kevin Buettner  <kevinb@redhat.com>
629
630         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Scan backwards
631         over all zero-sized symbols.
632
633 2015-11-23  Joel Brobecker  <brobecker@adacore.com>
634
635         * stack.c (print_frame_local_vars): Temporarily set the selected
636         frame to FRAME while printing the frame's local variables.
637
638 2015-11-23  Joel Brobecker  <brobecker@adacore.com>
639
640         * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue):
641         Increment PC in while loop skipping "pop reg" instructions.
642
643 2015-11-23  Joel Brobecker  <brobecker@adacore.com>
644
645         * arm-tdep.c (arm_exidx_unwind_sniffer): Do not check for a frame
646         stuck on a system call if the given frame is the innermost frame.
647
648 2015-11-23  Joel Brobecker  <brobecker@adacore.com>
649
650         * dwarf2read.c (read_structure_type): Set the type's length
651         to zero if it has a DW_AT_byte_size attribute which is not
652         a constant.
653
654 2015-11-23  Tristan Gingold  <gingold@adacore.com>
655
656         * darwin-nat.c (darwin_ptrace): Avoid a cast.
657         (darwin_resume_thread): Ditto.  And always set or reset
658         single step.
659
660 2015-11-23  Tristan Gingold  <gingold@adacore.com>
661
662         * darwin-nat.c (darwin_read_dyld_info): Write address in
663         big-endian order.
664         * solib-darwin.c (darwin_validate_exec_header): New function,
665         extracted from...
666         (darwin_read_exec_load_addr_from_dyld): ...here.
667         (darwin_read_exec_load_addr_at_init): New function.
668         (darwin_solib_read_all_image_info_addr): Adjust after
669         darwin_read_dyld_info change.
670         (darwin_solib_create_inferior_hook): Support PIE.
671
672 2015-11-23  Tristan Gingold  <gingold@adacore.com>
673
674         * darwin-nat.c (darwin_ptrace): Add a cast to fix warning.
675         (darwin_resume, cancel_breakpoint, _initialize_darwin_inferior):
676         Likewise.
677         (darwin_read_write_inferior): Rewrite using mach_vm_read_overwrite.
678
679 2015-11-19  Don Breazeal  <donb@codesourcery.com>
680
681         * target.c (read_memory_robust): Call read_whatever_is_readable
682         with arguments in the correct order.
683
684 2015-11-19  Pedro Alves  <palves@redhat.com>
685
686         * remote.c (remote_query_supported): Send the "xmlRegisters="
687         feature last.
688
689 2015-11-19  Simon Marchi  <simon.marchi@ericsson.com>
690
691         * nat/aarch64-linux-hw-point.c (aarch64_linux_set_debug_regs): Change
692         form of iov_len computation.
693
694 2015-11-19  Pedro Alves  <palves@redhat.com>
695
696         * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
697         mode.
698         * configure: Regenerate.
699
700 2015-11-19  Pedro Alves  <palves@redhat.com>
701
702         * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Remove -fpermissive.
703         * configure: Regenerate.
704
705 2015-11-19  Pedro Alves  <palves@redhat.com>
706
707         * breakpoint.c (software_watchpoint_add_no_memory_location)
708         (is_no_memory_software_watchpoint): New functions.
709         (update_watchpoint): Use
710         software_watchpoint_add_memoryless_location.
711         (breakpoint_address_bits): Use is_no_memory_software_watchpoint.
712
713 2015-11-19  Simon Marchi  <simon.marchi@ericsson.com>
714             Pedro Alves  <palves@redhat.com>
715
716         * s390-linux-tdep.c (s390_canonicalize_syscall): Add casts and
717         intermediate 'int' variable.
718
719 2015-11-19  Pedro Alves  <palves@redhat.com>
720
721         * linux-thread-db.c (try_thread_db_load_1): Add cast.
722
723 2015-11-19  Pedro Alves  <palves@redhat.com>
724
725         * remote.c (remote_unpush_target): Use
726         pop_all_targets_at_and_above instead of pop_all_targets_above.
727         * target.c (unpush_target_and_assert): New function, factored out
728         from ...
729         (pop_all_targets_above): ... here.
730         (pop_all_targets_at_and_above): New function.
731         * target.h (pop_all_targets_at_and_above): Declare.
732
733 2015-11-18  Simon Marchi  <simon.marchi@ericsson.com>
734
735         * valops.c (value_string): Constify 'ptr' parameter.
736         * value.h (value_string): Constify 'ptr' parameter.
737
738 2015-11-18  Simon Marchi  <simon.marchi@ericsson.com>
739             Pedro Alves  <palves@redhat.com>
740
741         * break-catch-sig.c (signal_catchpoint_print_one): Add cast.
742         * c-exp.y (parse_string_or_char, yylex): Add casts.
743         * c-lang.c (evaluate_subexp_c): Add casts.
744         * d-exp.y (parse_string_or_char, yylex): Add casts.
745         * go-exp.y (parse_string_or_char, build_packaged_name): Add casts.
746         * p-valprint.c (pascal_object_print_value_fields): Add casts.
747         * valprint.c (generic_emit_char, generic_printstr): Add casts.
748
749 2015-11-18  Simon Marchi  <simon.marchi@ericsson.com>
750
751         * valops.c (value_cstring): Constify 'ptr' parameter.
752         * value.h (value_cstring): Constify 'ptr' parameter.
753
754 2015-11-18  Yao Qi  <yao.qi@linaro.org>
755
756         * aarch64-tdep.c (pass_in_v): Add argument len.  Add local array
757         reg.  Callers updated.
758
759 2015-11-17  Yao Qi  <yao.qi@linaro.org>
760
761         * infrun.c (resume): Check control.trap_expected only
762         when deciding the set of threads to resume.
763
764 2015-11-17  Pedro Alves  <palves@redhat.com>
765
766         * cp-namespace.c (cp_lookup_bare_symbol)
767         (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
768         (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
769         (cp_lookup_nested_symbol): Use null_block_symbol.
770         * d-namespace.c (d_lookup_symbol, d_lookup_nested_symbol)
771         (d_lookup_symbol_imports, d_lookup_symbol_module): Use
772         null_block_symbol.
773         * symtab.c (null_block_symbol): New global.
774         * symtab.h (null_block_symbol): Declare.
775
776 2015-11-17  Pedro Alves  <palves@redhat.com>
777
778         * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
779         (GDB_XCPT_RAW_TRY, GDB_XCPT): Define.
780         Replace __cplusplus checks with GDB_XCPT checks throughout.
781         * common/common-exceptions.c: Replace __cplusplus checks with
782         GDB_XCPT checks throughout.
783
784 2015-11-17  Pedro Alves  <palves@redhat.com>
785
786         * common/common-defs.h (ATTRIBUTE_PRINTF): Redefine in terms of
787         _GL_ATTRIBUTE_FORMAT_PRINTF after including ansidecl.h.
788
789 2015-11-17  Pedro Alves  <palves@redhat.com>
790
791         * common/common-defs.h (__STDC_CONSTANT_MACROS)
792         (__STDC_LIMIT_MACROS): Define before including stdint.h.
793
794 2015-11-17  Pedro Alves  <palves@redhat.com>
795
796         * windows-nat.c (handle_exception): Return 0 for first chance
797         exceptions.
798         (get_windows_debug_event): Adjust.
799
800 2015-11-17  Pedro Alves  <palves@redhat.com>
801
802         * windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as
803         signal number for terminator.
804
805 2015-11-17  Pedro Alves  <palves@redhat.com>
806
807         * ser-tcp.c (net_open) : Cast getsockopt argument to char *
808         instead of void *.  Update comment.
809         (net_read_prim): Cast recv argument to char * instead of void *.
810         (net_write_prim): Cast send argument to char *.  Add comment.
811
812 2015-11-17  Pedro Alves  <palves@redhat.com>
813
814         * win32-i386-low.c (update_debug_registers_callback)
815         (win32_get_current_dr): Add cast.
816         * win32-low.c (thread_rec, delete_thread_info)
817         (continue_one_thread): Add casts.
818         (strwinerror): Cast FormatMessage argument to LPTSTR instead of
819         LPVOID.
820         (win32_create_inferior, suspend_one_thread): Add casts.
821
822 2015-11-17  Pedro Alves  <palves@redhat.com>
823
824         * windows-nat.c (AdjustTokenPrivileges_ftype)
825         (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
826         (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
827         (GetCurrentConsoleFont_ftype, GetModuleInformation_ftype)
828         (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
829         (GetConsoleFontSize_ftype): New typedefs.
830         (AdjustTokenPrivileges, DebugActiveProcessStop)
831         (DebugBreakProcess, DebugSetProcessKillOnExit, EnumProcessModules)
832         (GetConsoleFontSize, GetCurrentConsoleFont, GetModuleInformation)
833         (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize):
834         Adjust.
835         (GetModuleFileNameEx_ftype): New typedef.
836         (GetModuleFileNameEx): Use it.
837         (_initialize_loadable): Define GPA macro and use it.
838
839 2015-11-17  Pedro Alves  <palves@redhat.com>
840
841         * gdb-dlfcn.c (gdb_dlsym, gdb_dlclose) [__MINGW32__]: Add casts to
842         HMODULE.
843
844 2015-11-17  Pedro Alves  <palves@redhat.com>
845
846         * exec.c (exec_file_attach, symfile_bfd_open) [__GO32__ || _WIN32
847         || __CYGWIN__]: Add casts.
848         * utils.c (gdb_filename_fnmatch): Add cast.
849         * windows-nat.c (windows_create_inferior): Add cast.
850
851 2015-11-17  Pedro Alves  <palves@redhat.com>
852
853         * ser-mingw.c (CancelIo_ftype): New typedef.
854         (CancelIo): Use CancelIo_ftype.
855         (ser_windows_close, ser_windows_wait_handle)
856         (ser_windows_read_prim, stop_select_thread)
857         (console_select_thread, pipe_select_thread, file_select_thread)
858         (ser_console_wait_handle, ser_console_done_wait_handle)
859         (ser_console_close, cleanup_pipe_state, pipe_windows_close)
860         (pipe_windows_write, pipe_wait_handle, pipe_done_wait_handle)
861         (net_windows_socket_check_pending, net_windows_select_thread)
862         (net_windows_wait_handle, net_windows_done_wait_handle)
863         (net_windows_close): Add casts.
864         (_initialize_ser_windows): Cast to CancelIo_ftype* instead of
865         void*.
866
867 2015-11-17  Simon Marchi  <simon.marchi@ericsson.com>
868
869         * c-exp.y (exp): Adjust, change enum c_string_type to
870         c_string_type.
871         (parse_string_or_char): Likewise.
872         * c-lang.c (charset_for_string_type): Likewise.
873         (classify_type): Likewise.
874         (c_printchar): Likewise.
875         (c_printstr): Likewise.
876         (evaluate_subexp_c): Likewise.  And change cast to enum
877         c_string_type_values.
878         * c-lang.h: Include "common/enum_flags.h".
879         (enum c_string_type): Rename to...
880         (enum c_string_type_values): ...this.
881         (c_string_type): Define new enum flags type.
882
883 2015-11-17  Pedro Alves  <palves@redhat.com>
884
885         * btrace.h: Include common/enum-flags.h.
886         (btrace_insn_flags): Define.
887         (struct btrace_insn) <flags>: Change type.
888         (btrace_function_flags): Define.
889         (struct btrace_function) <flags>: Change type.
890         (btrace_thread_flags): Define.
891         (struct btrace_thread_info) <flags>: Change type.
892         * c-exp.y (token_flags): Rename to ...
893         (token_flag): ... this.
894         (token_flags): Define.
895         (struct token) <flags>: Change type.
896         * common/enum-flags.h: New file.
897         * compile/compile-c-types.c (convert_qualified): Change type of
898         'quals' local.
899         * compile/compile-internal.h: Include "common/enum-flags.h".
900         (gcc_qualifiers_flags): Define.
901         * completer.c (enum reg_completer_targets): Rename to ...
902         (enum reg_completer_target): ... this.
903         (reg_completer_targets): Define.
904         (reg_or_group_completer_1): Change type of 'targets' parameter.
905         * disasm.c (do_mixed_source_and_assembly_deprecated): Change type
906         of 'psl_flags' local.
907         (do_mixed_source_and_assembly): Change type of 'psl_flags' local.
908         * infrun.c: Include "common/enum-flags.h".
909         (enum step_over_what): Rename to ...
910         (enum step_over_what_flag): ... this.
911         (step_over_what): Change type.
912         (start_step_over): Change type of 'step_what' local.
913         (thread_still_needs_step_over): Now returns a step_over_what.
914         Adjust.
915         (keep_going_pass_signal): Change type of 'step_what' local.
916         * linux-tdep.c: Include "common/enum-flags.h".
917         (enum filterflags): Rename to ...
918         (enum filter_flag): ... this.
919         (filter_flags): Define.
920         (dump_mapping_p): Change type of 'filterflags' parameter.
921         (linux_find_memory_regions_full): Change type of 'filterflags'
922         local.
923         (linux_find_memory_regions_full): Pass the address of an unsigned
924         int to sscanf instead of the address of an enum.
925         * record-btrace.c (btrace_print_lines): Change type of local
926         'psl_flags'.
927         (btrace_call_history): Replace 'flags' parameter
928         with 'int_flags' parameter.  Adjust.
929         (record_btrace_call_history, record_btrace_call_history_range)
930         (record_btrace_call_history_from): Rename 'flags' parameter to
931         'int_flags'.  Use record_print_flags.
932         * record.h: Include "common/enum-flags.h".
933         (record_print_flags): Define.
934         * source.c: Include "common/enum-flags.h".
935         (print_source_lines_base, print_source_lines): Change type of
936         flags parameter.
937         * symtab.h: Include "common/enum-flags.h".
938         (enum print_source_lines_flags): Rename to ...
939         (enum print_source_lines_flag): ... this.
940         (print_source_lines_flags): Define.
941         (print_source_lines): Change prototype.
942
943 2015-11-17  Pedro Alves  <palves@redhat.com>
944
945         * guile/scm-disasm.c (gdbscm_disasm_read_memory): Return -1 on
946         error instead of TARGET_XFER_E_IO.
947         (gdbscm_disasm_memory_error): Always pass TARGET_XFER_E_IO to
948         memory_error.
949
950 2015-11-17  Dominik Vogt  <vogt@linux.vnet.ibm.com>
951
952         * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
953         (prologue_inst_adjust_sp, hppa_frame_cache): Fix left shift of negative
954         value.
955         * dwarf2read.c (read_subrange_type): Likewise.
956
957 2015-11-16  Yao Qi  <yao.qi@linaro.org>
958
959         * aarch64-tdep.c (aarch64_extract_return_value):  Change array
960         buf's length to V_REGISTER_SIZE.
961
962 2015-11-16  Yao Qi  <yao.qi@linaro.org>
963
964         * aarch64-tdep.c (pass_in_x_or_stack): Change argument type
965         from bfd_byte * to value *.  Caller updated.
966         (pass_in_x): Likewise.
967         (pass_in_v_or_stack): Likewise.
968         (pass_on_stack): Likewise.
969
970 2015-11-16  Yao Qi  <yao.qi@linaro.org>
971
972         * aarch64-tdep.c (aarch64_push_dummy_call): Call value_contents
973         instead of value_contents_writeable.
974         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
975
976 2015-11-16  Yao Qi  <yao.qi@linaro.org>
977
978         * arm-tdep.c (arm_push_dummy_call): New array buf.  Store regval
979         to buf.  Pass buf instead of val to push_stack_item.
980
981 2015-11-13  Yao Qi  <yao.qi@linaro.org>
982
983         PR tdep/19051
984         * arm-tdep.c (arm_type_align): Return the right alignment
985         value for vector.
986         (arm_vfp_cprc_sub_candidate): Return true for 64-bit and
987         128-bit vector types.
988         (arm_return_in_memory): Handel vector type.
989
990 2015-11-13  Yao Qi  <yao.qi@linaro.org>
991
992         * arm-tdep.c (arm_return_in_memory): Rewrite it.
993         (arm_return_value): Call arm_return_in_memory for
994         TYPE_CODE_COMPLEX.
995
996 2015-11-12  Yao Qi  <yao.qi@linaro.org>
997
998         * arm-tdep.c (push_stack_item): Change contents type to
999         const gdb_byte *.
1000
1001 2015-11-11  Simon Marchi  <simon.marchi@ericsson.com>
1002
1003         * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
1004         cast to PTRACE_TYPE_RET *.
1005         (inf_ptrace_store_register): Likewise.
1006
1007 2015-11-11  Andrew Burgess  <andrew.burgess@embecosm.com>
1008
1009         * avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating
1010         info sub-commands.
1011         * gnu-nat.c (add_task_commands): Likewise.
1012         * macrocmd.c (_initialize_macrocmd): Likewise.
1013
1014 2015-11-11  Andrew Burgess  <andrew.burgess@embecosm.com>
1015
1016         * cli/cli-decode.c (add_info): Switch to class_info.
1017
1018 2015-11-09  Joel Brobecker  <brobecker@adacore.com>
1019
1020         * ada-lang.c (ada_is_wrapper_field): Add special handling
1021         for fields called "RETVAL".
1022
1023 2015-11-09  Yao Qi  <yao.qi@linaro.org>
1024
1025         * arm-tdep.c (arm_exidx_new_objfile): Use
1026         ELF_STRING_ARM_unwind.
1027
1028 2015-11-09  Yao Qi  <yao.qi@linaro.org>
1029
1030         * infrun.c (displaced_step_in_progress_thread): New function.
1031         (handle_inferior_event_1): Call it.
1032
1033 2015-11-05  Yao Qi  <yao.qi@linaro.org>
1034
1035         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
1036         aarch64_decode_insn and decode instruction by aarch64_inst.
1037
1038 2015-11-05  Yao Qi  <yao.qi@linaro.org>
1039
1040         * aarch64-tdep.c (extract_signed_bitfield): Remove.
1041         (decode_masked_match): Remove.
1042         (aarch64_decode_add_sub_imm): Remove.
1043         (aarch64_decode_br): Remove.
1044         (aarch64_decode_eret): Remove.
1045         (aarch64_decode_movz): Remove.
1046         (aarch64_decode_orr_shifted_register_x): Remove.
1047         (aarch64_decode_ret): Remove.
1048         (aarch64_decode_stp_offset): Remove.
1049         (aarch64_decode_stur): Remove.
1050         (aarch64_analyze_prologue): Call aarch64_decode_insn
1051         and use aarch64_inst to decode instructions.
1052
1053 2015-11-05  Yao Qi  <yao.qi@linaro.org>
1054
1055         * aarch64-tdep.c (aarch64_decode_stp_offset): New argument
1056         wback.
1057         (aarch64_decode_stp_offset_wb): Removed.
1058         (aarch64_analyze_prologue): Don't use
1059         aarch64_decode_stp_offset_wb.
1060
1061 2015-11-04  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1062
1063         PR/18376
1064         * gdb/s390-linux-tdep.c (s390_is_partial_instruction): New function.
1065         (s390_software_single_step): New function.
1066         (s390_displaced_step_hw_singlestep): New function.
1067         (s390_gdbarch_init): Fill gdbarch slots with the above.
1068
1069 2015-11-04  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1070
1071         PR/18376
1072         * gdb/configure.tgt: Add linux-record.o to s390*-linux.
1073         * gdb/s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
1074         (s390_linux_record_tdep): New static global variable.
1075         (s390x_linux_record_tdep): New static global variable.
1076         (s390_all_but_pc_registers_record): New function.
1077         (s390_canonicalize_syscall): New function.
1078         (s390_linux_syscall_record): New function.
1079         (s390_linux_record_signal): New function.
1080         (s390_record_calc_disp_common): New function.
1081         (s390_record_calc_disp): New function.
1082         (s390_record_calc_disp_vsce): New function.
1083         (s390_record_calc_rl): New function.
1084         (s390_record_gpr_g): New function.
1085         (s390_record_gpr_h): New function.
1086         (s390_record_vr): New function.
1087         (s390_process_record): New function.
1088         (s390_init_linux_record_tdep): New function.
1089         (s390_gdbarch_init): Fill record function slots.
1090
1091 2015-11-04  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1092
1093         * record-full.c (record_full_exec_insn): Use xmalloc for temporary
1094         memory storage.
1095
1096 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
1097
1098         * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
1099         instead of DISASSEMBLY_SOURCE_DEPRECATED.  Also accept /s.
1100         (_initialize_record): Document the /s modifier.
1101         * NEWS: Announce record instruction-history's new /s modifier.
1102
1103 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
1104
1105         * record-btrace.c (struct btrace_line_range): New.
1106         (btrace_mk_line_range, btrace_line_range_add)
1107         (btrace_line_range_is_empty, btrace_line_range_contains_range)
1108         (btrace_find_line_range, btrace_print_lines): New.
1109         (btrace_insn_history): Add source interleaving algorithm.
1110
1111 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
1112
1113         * disasm.h (DISASSEMBLY_SPECULATION): New.
1114         (struct disasm_insn): New.
1115         (gdb_pretty_print_insn): New.
1116         * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
1117         Update users.  Print instruction number and indicate speculative
1118         execution, if requested.
1119
1120 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
1121
1122         * disasm.c (dump_insns): Split into this and ...
1123         (gdb_pretty_print_insn): ... this.
1124
1125 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
1126
1127         * xtensa-linux-nat.c (supply_gregset_reg): Make static.
1128         (xtensa_linux_fetch_inferior_registers): Likewise.
1129         (xtensa_linux_store_inferior_registers): Likewise.
1130
1131 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
1132
1133         * arm-linux-nat.c (arm_linux_read_description): Add cast.
1134
1135 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
1136
1137         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
1138         type of rw to enum target_hw_bp_type.
1139         (ppc_linux_remove_mask_watchpoint): Likewise.
1140         * target.c (target_insert_mask_watchpoint): Likewise.
1141         (target_remove_mask_watchpoint): Likewise.
1142         * target.h (target_insert_mask_watchpoint): Likewise.
1143         (target_remove_mask_watchpoint): Likewise.
1144         (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
1145         (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
1146         * target-delegates.c: Regenerate.
1147
1148 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
1149
1150         * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
1151         (get_sim_inferior_data): Likewise.
1152         (sim_inferior_data_cleanup): Likewise.
1153         (gdbsim_close_inferior): Likewise.
1154         (gdbsim_resume_inferior): Likewise.
1155         (gdbsim_wait): Likewise.
1156         (simulator_command): Likewise.
1157         (sim_command_completer): Likewise.
1158
1159 2015-11-03  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1160
1161         * MAINTAINERS (Write After Approval): Add Marcin KoÅ›cielnicki.
1162
1163 2015-10-30  Pedro Alves  <palves@redhat.com>
1164
1165         * breakpoint.c (breakpoint_in_range_p)
1166         (breakpoint_location_address_range_overlap): New functions.
1167         * breakpoint.h (breakpoint_in_range_p): New declaration.
1168         * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
1169         in the scratch pad range, don't displaced step.
1170
1171 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1172
1173         * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
1174         size_stack_t, size_size_t, size_iovec.
1175
1176 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1177
1178         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
1179         * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
1180         (amd64_x32_linux_init_abi): Fix size_termios.
1181
1182 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1183
1184         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
1185
1186 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1187
1188         * linux-record.c (record_linux_system_call): Fix old_select.
1189
1190 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1191
1192         * linux-record.c (record_linux_system_call): Fix newstatat.
1193
1194 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1195
1196         * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
1197
1198 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1199
1200         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
1201         * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
1202         (amd64_x32_linux_init_abi): Add size_time_t.
1203         * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
1204         * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
1205         * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
1206         handling.
1207         * linux-record.h (struct linux_record_tdep): Add size_time_t.
1208         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
1209
1210 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1211
1212         * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
1213
1214 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1215
1216         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
1217         size_dirent{,64}, add size_old_dirent.
1218         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
1219         add size_old_dirent.
1220         (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
1221         size_old_dirent.
1222         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
1223         add size_old_dirent.
1224         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
1225         add size_old_dirent.
1226         * linux-record.c (record_linux_system_call): Fix handling of readdir
1227         and getdents{,64}.
1228         * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
1229         add size_old_dirent.
1230         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
1231         size_dirent{,64}, add size_old_dirent.
1232
1233 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1234
1235         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
1236         size_sigset_t, size_old_sigaction, size_old_sigset_t.
1237         * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
1238         size_sigset_t, size_old_sigaction, size_old_sigset_t.
1239         (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
1240         size_old_sigaction, size_old_sigset_t.
1241         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
1242         size_old_sigaction, size_old_sigset_t.
1243         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
1244         size_old_sigaction, size_old_sigset_t.
1245         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
1246         size_sigset_t, size_old_sigaction, size_old_sigset_t.
1247
1248 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1249
1250         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
1251         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
1252
1253 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1254
1255         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
1256         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
1257         (amd64_x32_linux_init_abi): Remove size_siginfo.
1258         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
1259         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
1260         * linux-record.c (record_linux_system_call): Change size_siginfo
1261         to size_siginfo_t.
1262         * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
1263         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
1264
1265 2015-10-29  Pedro Alves  <palves@redhat.com>
1266
1267         * mdebugread.c (add_data_symbol): New function, factored out from
1268         ...
1269         (parse_symbol): ... here.  Delete 'theclass' local.
1270
1271 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
1272
1273         * jit.c (jit_target_read_impl): Add cast.
1274
1275 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
1276
1277         * jit.c (jit_reader_load): Add cast.
1278
1279 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
1280
1281         * dwarf2read.c (partial_die_full_name): Add cast.
1282
1283 2015-10-29  Pedro Alves  <palves@redhat.com>
1284
1285         * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
1286
1287 2015-10-29  Pedro Alves  <palves@redhat.com>
1288
1289         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
1290
1291 2015-10-29  Eli Zaretskii  <eliz@gnu.org>
1292
1293         * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
1294         in the environment.
1295
1296 2015-10-29  Pedro Alves  <palves@redhat.com>
1297
1298         * gnu-v2-abi.c (gnuv2_is_destructor_name)
1299         (gnuv2_is_constructor_name): Add casts.
1300
1301 2015-10-29  Pedro Alves  <palves@redhat.com>
1302
1303         * common/common-exceptions.c (exception_none): Add cast.
1304
1305 2015-10-29  Pedro Alves  <palves@redhat.com>
1306
1307         * compile/compile-c-types.c (struct type_map_instance)
1308         <gcc_type>: Rename to gcc_type_handle.
1309         (insert_type, convert_type): Adjust.
1310
1311 2015-10-29  Pedro Alves  <palves@redhat.com>
1312
1313         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
1314         assume that "break" breaks out of a TRY/CATCH.
1315         * python/py-framefilter.c (py_print_single_arg): Don't assume
1316         "continue" breaks out of a TRY/CATCH.
1317         * python/py-value.c (valpy_binop_throw): New function, factored
1318         out from ...
1319         (valpy_binop): ... this.
1320         (valpy_richcompare_throw): New function, factored
1321         out from ...
1322         (valpy_richcompare): ... this.
1323         * solib.c (solib_read_symbols): Don't assume "break" breaks out
1324         of a TRY/CATCH.
1325         * common/common-exceptions.h [USE_RAW_CXX_TRY]
1326         <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
1327
1328 2015-10-28  Simon Dardis  <Simon.Dardis@imgtec.com>
1329
1330         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
1331         as move along with [d]addu.
1332
1333 2015-10-28  Yao Qi  <yao.qi@linaro.org>
1334
1335         * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
1336         aarch64_decode_insn.
1337
1338 2015-10-27  Pedro Alves  <palves@redhat.com>
1339
1340         * common/print-utils.c (host_address_to_string): Rename to ...
1341         (host_address_to_string_1): ... this.
1342         * common/print-utils.h (host_address_to_string): Reimplement as
1343         wrapper around host_address_to_string_1.
1344         * utils.c (gdb_print_host_address): Rename to ...
1345         (gdb_print_host_address_1): ... this.
1346         * utils.h (gdb_print_host_address): Reimplement as wrapper macro
1347         around  host_address_to_string_1.
1348
1349 2015-10-27  Pedro Alves  <palves@redhat.com>
1350
1351         * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
1352         memory_error.  Rename local 'status' to 'res'.
1353         * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
1354         memory_error.
1355         * corefile.c (read_stack, read_code, write_memory): Always pass
1356         TARGET_XFER_E_IO to memory_error.
1357         * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
1358         memory_error.  Rename parameter 'status' to 'err'.
1359         (dump_insns): Rename local 'status' to 'err'.
1360         * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
1361         to 'errp'.  Rename local 'status' to 'err'.  Always pass
1362         TARGET_XFER_E_IO to memory_error.
1363         (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
1364         * target.c (target_read_memory, target_read_raw_memory)
1365         (target_read_stack, target_read_code, target_write_memory)
1366         (target_write_raw_memory): Return -1 on error instead of
1367         TARGET_XFER_E_IO.
1368         * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
1369         Always pass TARGET_XFER_E_IO to memory_error.  Update comment.
1370
1371 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1372
1373         * guile/guile-internal.h (gdbscm_with_guile): Change return
1374         types to const char *.
1375         * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
1376         (struct c_data) <func>: Likewise.
1377         (struct c_data) <result>: Change type to const char *.
1378         (scscm_eval_scheme_string): Change return type to
1379         const char *.
1380         (scscm_source_scheme_script): Likewise.
1381         (gdbscm_safe_eval_string): Change type of result variable to
1382         const char * and remove cast.
1383         (gdbscm_safe_source_script): Likewise.
1384         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
1385         Change return type to const char *.
1386         (gdbscm_disasm_read_memory): Change type of status to
1387         const char *.
1388
1389 2015-10-27  Pedro Alves  <palves@redhat.com>
1390
1391         * source.c (openp): New local 'last_errno'.  Use it to
1392         save/restore errno.
1393
1394 2015-10-27  Pedro Alves  <palves@redhat.com>
1395
1396         * psymtab.c (dump_psymtab_addrmap_1): Add casts.
1397
1398 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1399
1400         * ctf.c (SET_ENUM_FIELD): New macro.
1401         (ctf_read_status): Use it.
1402         (ctf_read_tp): Use it.
1403
1404 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1405
1406         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
1407         scm_t_dynwind_flags casts.
1408         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1409         * guile/scm-ports.c (gdbscm_open_memory): Likewise.
1410         * guile/scm-value.c (gdbscm_value_to_string): Likewise.
1411
1412 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1413
1414         * ax.h (ax_raw_byte): New declaration.
1415         * ax-general.c (ax_raw_byte): New function.
1416         (ax_simple): Use ax_raw_byte.
1417         * ax-gdb.c (gen_printf): Likewise.
1418
1419 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1420
1421         * ada-lang.h (GROW_VECT): Add cast.
1422
1423 2015-10-26  Doug Evans  <xdje42@gmail.com>
1424
1425         * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
1426
1427 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1428
1429         * target.c (memory_xfer_partial): Change type of buf to gdb_byte
1430         pointer.
1431         (simple_search_memory): Cast return of memmem.
1432
1433 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1434
1435         * stap-probe.c (handle_stap_probe): Add (const char *) casts.
1436
1437 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1438
1439         * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
1440         -1 on error.
1441
1442 2015-10-26  Doug Evans  <dje@google.com>
1443
1444         PR symtab/17391
1445         * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
1446         instead of gdbarch_dwarf2_reg_to_regnum.
1447         (dwarf2_frame_cache): Ditto.
1448         (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
1449         gdbarch_dwarf2_reg_to_regnum.
1450         (get_reg_value): Ditto.
1451         (dwarf2_fetch_cfa_info): Ditto.
1452         (dwarf2_frame_prev_register): Ditto.
1453         * dwarf2loc.c: #include "complaints.h".
1454         (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
1455         instead of gdbarch_dwarf2_reg_to_regnum.
1456         (dwarf_expr_get_reg_value): Ditto.
1457         (read_pieced_value): Ditto.
1458         (write_pieced_value): Ditto.
1459         (dwarf2_evaluate_loc_desc_full): Ditto.
1460         (dwarf_reg_to_regnum): New function.
1461         (throw_bad_regnum_error): New function.
1462         (dwarf_reg_to_regnum_or_error): Renamed from
1463         dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
1464         All callers updated.  Call throw_bad_regnum_error.
1465         (locexpr_regname): Improve text of bad register number.
1466         * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
1467         (dwarf_reg_to_regnum_or_error): Update prototype.
1468         * dwarf2expr.c: #include "dwarf2loc.h".
1469         (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
1470         gdbarch_dwarf2_reg_to_regnum.
1471         * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
1472         * gdbarch.h: Regenerate.
1473         * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
1474         register.
1475         * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
1476         * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
1477         * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
1478         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
1479         Remove warning for bad register.
1480         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
1481         * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
1482         i386_svr4_reg_to_regnum.  Return -1 for bad registers.
1483         (i386_svr4_reg_to_regnum): New function.
1484         (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
1485         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
1486         on bad registers, return -1.
1487         * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
1488         Remove warning for bad register.
1489         * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
1490         (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
1491         Remove warning for bad register.  Return -1 for bad register.
1492         * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
1493         for bad register, return -1.
1494         * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
1495         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
1496         * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
1497         * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
1498         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1499         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
1500         for bad regs.
1501         * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
1502         bad regs.  Fix error result.
1503         * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
1504         (reg_value_complaint): Update complaint text.
1505         * mdebugread.c (reg_value_complaint): New function.
1506         (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
1507
1508 2015-10-26  Doug Evans  <dje@google.com>
1509
1510         PR python/18938
1511         * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
1512         All callers updated.
1513
1514 2015-10-26  Doug Evans  <dje@google.com>
1515
1516         * psymtab.c (struct dump_psymtab_addrmap_data): Define.
1517         (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
1518         (maintenance_print_psymbols): Print address map.
1519
1520 2015-10-26  Doug Evans  <dje@google.com>
1521
1522         * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
1523
1524 2015-10-26  Doug Evans  <dje@google.com>
1525
1526         * common/gdb_wait.h (W_STOPCODE): Define, moved here from
1527         gdbserver/linux-low.c.
1528         (WSETSTOP): Simplify.
1529
1530 2015-10-26  Doug Evans  <dje@google.com>
1531
1532         * linux-thread-db.c (find_new_threads_callback): Ditto.
1533         (thread_db_pid_to_str): Ditto.
1534
1535 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1536
1537         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
1538         local char array to scm_mode_bits, use a cast instead.
1539
1540 2015-10-26  Simon Marchi  <simon.marchi@ericsson.com>
1541
1542         * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
1543         result.  Change type of element_block_ptr.  Change allocation to
1544         use XNEWVEC.
1545
1546 2015-10-26  Luis Machado  <lgustavo@codesourcery.com>
1547
1548         * record-full.c (record_full_message_wrapper_safe): Pass empty string to
1549         catch_errors call instead of NULL.
1550
1551 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1552
1553         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
1554         char pointer to scm_mode_bits.
1555
1556 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1557
1558         * symtab.c (default_make_symbol_completion_list_break_on_1): Add
1559         cast.
1560
1561 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1562
1563         * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
1564         "data" local variable and use it.
1565
1566 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1567
1568         * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
1569         domain_enum cast.
1570         (gdbscm_lookup_symbol): Likewise.
1571
1572 2015-10-25  Iain Buclaw  <ibuclaw@gdcproject.org>
1573
1574         * d-exp.y: Remove an obsolete comment and propagate the block
1575         information to the produced expression.
1576
1577 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1578
1579         * tui/tui-data.c (tui_add_to_source_windows): Remove void *
1580         cast.
1581         (tui_add_content_elements): Likewise.
1582
1583 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1584
1585         * cli/cli-setshow.c (do_set_command): Constify p.
1586
1587 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1588
1589         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
1590         (void *) cast with (gdb_byte *).
1591
1592 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1593
1594         * proc-service.c (ps_pdread): Add cast.
1595
1596 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1597
1598         * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
1599         valbuf.
1600
1601 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1602
1603         * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
1604         (ia64_push_dummy_call): Remove cast and change type of "to" to
1605         array of gdb_byte.
1606
1607 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
1608
1609         * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
1610
1611 2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
1612
1613         * observer.h (observer_${event}_notification_stub): Add cast.
1614
1615 2015-10-23  Yao Qi  <yao.qi@linaro.org>
1616
1617         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
1618         dsd.insn_count to zero.
1619
1620 2015-10-22  Pedro Alves  <palves@redhat.com>
1621
1622         * infrun.c (stop_after_trap): Delete.
1623         (clear_proceed_status, handle_signal_stop, struct
1624         infcall_control_state, save_infcall_control_state)
1625         (restore_infcall_control_state): Remove references to
1626         stop_after_trap.
1627
1628 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
1629
1630         * python/python.c (_initialize_python): Add cast.
1631
1632 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
1633
1634         * nto-tdep.c (nto_inferior_data): Add cast.
1635
1636 2015-10-22  Pedro Alves  <palves@redhat.com>
1637
1638         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
1639         windows_wait and windows_resume directly instead of
1640         wait_for_inferior and resume.
1641
1642 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
1643
1644         * xtensa-tdep.h (XTREG): Add casts.
1645         (XTREG_END): Likewise.
1646
1647 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
1648
1649         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
1650
1651 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
1652
1653         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
1654
1655 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
1656
1657         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
1658         buf to gdb_byte*.
1659         (supply_32bit_reg): Add cast.
1660         (mips64_fill_gregset): Likewise.
1661
1662 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
1663
1664         PR python/18073
1665         * python/py-type.c (typy_get_composite): Allow returning a
1666         function type.
1667
1668 2015-10-21  Keven Boell  <keven.boell@intel.com>
1669
1670         * dwarf2read.c (set_die_type): Add read of
1671         DW_AT_allocated and DW_AT_associated.
1672         * f-typeprint.c: New include of typeprint.h
1673         (f_print_type): Add check for allocated/associated
1674         status of type.
1675         (f_type_print_varspec_suffix): Add check for
1676         * gdbtypes.c (create_array_type_with_stride):
1677         Add check for valid data location of type in
1678         case allocated or associated attributes are set.
1679         Length of an array should be only calculated if
1680         allocated or associated is resolved as true.
1681         (is_dynamic_type_internal): Add check for allocated/
1682         associated.
1683         (resolve_dynamic_array): Evaluate allocated/associated
1684         properties.
1685         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
1686         <DYN_PROP_ASSOCIATED>: New enums.
1687         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
1688         (type_not_allocated): New function.
1689         (type_not_associated): New function.
1690         * valarith.c (value_subscripted_rvalue): Add check for
1691         allocated/associated.
1692         * valprint.c: New include of typeprint.h.
1693         (valprint_check_validity): Add check for allocated/associated.
1694         (value_check_printable): Add check for allocated/
1695         associated.
1696         * typeprint.h (val_print_not_allocated): New function.
1697         (val_print_not_associated): New function.
1698         * typeprint.c (val_print_not_allocated): New function.
1699         (val_print_not_associated): New function.
1700
1701 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
1702
1703         * Makefile.in: Add arm.c/o.
1704         * arch/arm.c: New file.
1705         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
1706         (MAKE_THUMB_ADDR): Likewise.
1707         (UNMAKE_THUMB_ADDR): Likewise.
1708         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
1709         (IS_THUMB_ADDR): Move to arm.h.
1710         (MAKE_THUMB_ADDR): Likewise.
1711         (UNMAKE_THUMB_ADDR): Likewise.
1712         * configure.tgt: Add arm.o to all ARM configs.
1713
1714 2015-10-21  Yao Qi  <yao.qi@linaro.org>
1715
1716         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
1717         Remove argument exp_vCont_s.
1718         * gdb.base/range-stepping.exp: Callers updated.
1719         * gdb.trace/range-stepping.exp: Likewise.
1720
1721 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
1722
1723         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
1724         (nto_sniff_abi_note_section): New function.
1725         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
1726         binary.
1727
1728 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
1729
1730         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
1731         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
1732         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
1733         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
1734         New functions.
1735         (_initialize_nto_tdep): New forward declaration, new function.
1736         * nto-tdep.h (struct nto_inferior_data): New struct.
1737         (nto_inferior_data): New function declaration.
1738
1739 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1740
1741         * findvar.c (address_from_register): Check REGNUM validity.
1742
1743 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
1744
1745         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
1746         (init_procfs_targets): Wire new function.
1747
1748 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
1749
1750         * nto-procfs.c (sys/auxv.h): Include.
1751         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
1752         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
1753         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
1754
1755 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
1756
1757         * nto-procfs.c (nto_procfs_path): Rename to...
1758         (nodestr): ... this, and change type.
1759         (nto_node): Use new variable and logic accordingly.
1760         (procfs_open_1): Use new variable name. Use local buffer to construct
1761         procfrs path.
1762         (procfs_pidlist): Use NODESTR to construct procfs path.
1763         (procfs_files_info): Use NODESTR to output meaningful text.
1764         (do_attach): Construct procfs using NODESTR.
1765         (procfs_create_inferior): Compare pointer to NULL.
1766
1767 2015-10-19  Josh Stone  <jistone@redhat.com>
1768
1769         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
1770         return state, even when not actively catching syscalls at all.
1771         (linux_handle_extended_wait): Mark syscall_state like an entry.
1772         (wait_lwp): Set syscall_state ignored for other traps.
1773         (linux_nat_filter_event): Likewise.
1774
1775 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
1776
1777         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
1778         when handling 'E', 'T', 'S', 'X' and 'W' packets.
1779         Do not set rs->waiting_for_stop_reply back to 1.
1780
1781 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
1782
1783         * nto-procfs.c (common/filestuff.h): Include.
1784         (procfs_can_use_hw_breakpoint): Fix enum name.
1785         (procfs_open_1): Fix compiler warning.
1786         (procfs_pidlist): Make static.
1787         (procfs_meminfo): Make static, fix type name, add missing argument.
1788         (procfs_store_registers): Make static.
1789         (procfs_thread_info): Remove unused function.
1790         (_initialize_procfs): Forward declare.
1791
1792 2015-10-16  Yao Qi  <yao.qi@arm.com>
1793
1794         * MAINTAINERS: Update my email address.
1795
1796 2015-10-15  Yao Qi  <yao.qi@linaro.org>
1797
1798         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
1799         Call gdbarch_breakpoint_from_pc to instruction length.
1800         (aarch64_linux_remove_hw_breakpoint): Likewise.
1801         * common/common-regcache.h (regcache_register_size): Declare.
1802         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
1803         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
1804         the process is 32bit, otherwise set alignment to 4.
1805         (aarch64_handle_breakpoint): Update comments.
1806         * regcache.c (regcache_register_size): New function.
1807
1808 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
1809
1810         * gdbarch.sh (core_regset_section): Remove.
1811         * gdbarch.h: Regenerate.
1812
1813 2015-10-14  Yao Qi  <yao.qi@linaro.org>
1814
1815         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
1816         out of it.
1817         (enum aarch64_memory_operand_type): New.
1818
1819 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
1820
1821         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
1822
1823 2015-10-13  Pedro Alves  <palves@redhat.com>
1824
1825         * ada-lang.c (ada_enum_name): Constify local.
1826         * ada-typeprint.c (print_range_bound): Constify locals.
1827         * c-varobj.c (c_describe_child): Likewise.
1828         * cli/cli-setshow.c (do_set_command): Likewise.
1829         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1830         * dwarf2read.c (find_file_and_directory): Likewise.
1831         (anonymous_struct_prefix, dwarf2_name): Likewise.
1832         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1833         * go-lang.c (unpack_mangled_go_symbol): Likewise.
1834         * jv-typeprint.c (java_type_print_base): Likewise.
1835         * ser-tcp.c (net_open): Likewise.
1836         * symfile.c (deduce_language_from_filename): Likewise.
1837         * symtab.c (gdb_mangle_name): Likewise.
1838         * tui/tui-io.c (tui_redisplay_readline): Likewise.
1839
1840 2015-10-13  Pedro Alves  <palves@redhat.com>
1841
1842         * infrun.c (restore_execution_direction): New function.
1843         (fetch_inferior_event): Use it instead of
1844         make_cleanup_restore_integer.
1845         (execution_direction): Change type to enum
1846         exec_direction_kind.
1847         * infrun.h (execution_direction): Likewise.
1848
1849 2015-10-13  Pedro Alves  <palves@redhat.com>
1850
1851         * ada-lang.c (ada_value_primitive_packed_val): Constify
1852         locals.  Use value_contents_writeable.  Remove casts.
1853
1854 2015-10-13  Pedro Alves  <palves@redhat.com>
1855
1856         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
1857         and alloca calls.
1858
1859 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
1860
1861         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
1862         write_memory with write_memory_unsigned_integer.
1863
1864 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
1865
1866         * solib-dsbt.c (cmp_name): Constify arguments.
1867         * solib-frv.c (cmp_name): Likewise.
1868         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
1869         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1870         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1871         (gdb_bfd_lookup_symbol): Likewise.
1872         * solib.h (gdb_bfd_lookup_symbol): Likewise.
1873         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1874
1875 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
1876
1877         * stack.c (parse_frame_specification): Remove message parameter,
1878         replace with fixed string in function body, update function
1879         comment.
1880         (frame_info): Remove message to parse_frame_specification.
1881         (select_frame_command): Likewise.
1882
1883 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
1884
1885         * stack.c (parse_frame_specification): Delete.
1886         (parse_frame_specification_1): Rename to
1887         parse_frame_specification.
1888         (frame_info): Use parse_frame_specification.
1889         (select_frame_command): Likewise.
1890         (return_command): Use select_frame and print_stack_frame rather
1891         than frame_command and select_frame_command.
1892         (func_command): Use get_current_frame rather than
1893         parse_frame_specification.
1894
1895 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
1896
1897         * stack.c (func_command): Return early when there is no ARG
1898         string.
1899
1900 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
1901
1902         * stack.c: Include safe-ctype.h not ctype.h.
1903         (parse_frame_specification): Use ISSPACE not isspace.
1904         (backtrace_command): Use TOLOWER not tolower.
1905
1906 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
1907
1908         * mep-tdep.c (current_me_module): Add cast.
1909         (mep_gdbarch_init): Likewise.
1910
1911 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
1912
1913         * m32c-tdep.c (m32c_move_reg_t): Replace with...
1914         (m32c_write_reg_t): ...this and...
1915         (m32c_read_reg_t): ...this.
1916         (struct m32c_reg): Update types of read and write.
1917         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
1918         adjust definition.
1919         (m32c_banked_read): Likewise.
1920         (m32c_sb_read): Likewise.
1921         (m32c_part_read): Likewise.
1922         (m32c_cat_read): Likewise.
1923         (m32c_r3r2r1r0_read): Likewise.
1924         (m32c_raw_write): Change declaration type to m32c_write_reg_t
1925         and adjust definition.
1926         (m32c_banked_write): Likewise.
1927         (m32c_sb_write): Likewise.
1928         (m32c_part_write): Likewise.
1929         (m32c_cat_write): Likewise.
1930         (m32c_r3r2r1r0_write): Likewise.
1931
1932 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
1933
1934         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
1935
1936 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
1937
1938         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
1939         gdb_sys_no_syscall instead of -1.
1940
1941 2015-10-12  Yao Qi  <yao.qi@linaro.org>
1942
1943         * NEWS: Mention the change.
1944
1945 2015-10-12  Yao Qi  <yao.qi@linaro.org>
1946
1947         * arch/aarch64-insn.c (emit_load_store): Rename to ...
1948         (aarch64_emit_load_store): ... it.  All callers updated.
1949
1950 2015-10-12  Yao Qi  <yao.qi@linaro.org>
1951
1952         * arch/aarch64-insn.c (emit_insn): Rename to ...
1953         (aarch64_emit_insn): ... it.  All callers updated.
1954
1955 2015-10-12  Yao Qi  <yao.qi@linaro.org>
1956
1957         * aarch64-linux-tdep.c: Include arch-utils.h.
1958         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
1959         set_gdbarch_displaced_step_copy_insn,
1960         set_gdbarch_displaced_step_fixup,
1961         set_gdbarch_displaced_step_free_closure,
1962         set_gdbarch_displaced_step_location,
1963         and set_gdbarch_displaced_step_hw_singlestep.
1964         * aarch64-tdep.c (struct displaced_step_closure): New.
1965         (struct aarch64_displaced_step_data): New.
1966         (aarch64_displaced_step_b): New function.
1967         (aarch64_displaced_step_b_cond): Likewise.
1968         (aarch64_register): Likewise.
1969         (aarch64_displaced_step_cb): Likewise.
1970         (aarch64_displaced_step_tb): Likewise.
1971         (aarch64_displaced_step_adr): Likewise.
1972         (aarch64_displaced_step_ldr_literal): Likewise.
1973         (aarch64_displaced_step_others): Likewise.
1974         (aarch64_displaced_step_copy_insn): Likewise.
1975         (aarch64_displaced_step_fixup): Likewise.
1976         (aarch64_displaced_step_hw_singlestep): Likewise.
1977         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
1978         (aarch64_displaced_step_copy_insn): Declare.
1979         (aarch64_displaced_step_fixup): Declare.
1980         (aarch64_displaced_step_hw_singlestep): Declare.
1981         * arch/aarch64-insn.c (emit_insn): Moved from
1982         gdbserver/linux-aarch64-low.c.
1983         (emit_load_store): Likewise.
1984         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
1985         gdbserver/linux-aarch64-low.c.
1986         (struct aarch64_register): Likewise.
1987         (struct aarch64_memory_operand): Likewise.
1988         (ENCODE): Likewise.
1989         (can_encode_int32): New macro.
1990         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
1991         (emit_tb, emit_nop): Likewise.
1992         (emit_insn): Declare.
1993         (emit_load_store): Declare.
1994
1995 2015-10-12  Yao Qi  <yao.qi@linaro.org>
1996
1997         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
1998         gdbserver/linux-aarch64-low.c.
1999         (aarch64_relocate_instruction): Likewise.
2000         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
2001         (struct aarch64_insn_data): Moved from
2002         gdbserver/linux-aarch64-low.c.
2003         (struct aarch64_insn_visitor): Likewise.
2004         (aarch64_relocate_instruction): Declare.
2005
2006 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
2007
2008         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
2009         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
2010         to the returned value.
2011
2012 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2013
2014         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
2015         is large enough for BIT_SIZE.  Update function comment.
2016
2017 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2018
2019         * ada-lang.c (ada_value_primitive_packed_val): Move
2020         src_len variable to local block where used.  Override
2021         BIT_SIZE if bigger than size of resolved type.
2022
2023 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2024
2025         * gdbtypes.h (is_scalar_type): Add extern declaration.
2026         * gdbtypes.c (is_scalar_type): Make non-static.
2027         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
2028         to compute IS_SCALAR instead of doing it ourselves.
2029
2030 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2031
2032         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
2033         of case where TYPE is dynamic.
2034
2035 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2036
2037         * ada-lang.c (ada_unpack_from_contents): New function,
2038         extracted from ada_value_primitive_packed_val.
2039         (ada_value_primitive_packed_val): Replace extracted out code
2040         by call to ada_unpack_from_contents.
2041
2042 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2043
2044         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
2045         variable declarations.
2046
2047 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2048
2049         * ada-lang.c (ada_value_primitive_packed_val): Change the type
2050         of local variables src and unpacked to "gdb_type *" instead of
2051         "unsigned char *".
2052
2053 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2054
2055         * ada-lang.c (ada_value_primitive_packed_val): Make the name
2056         of various local variables more explicit and consistent.
2057         No real code change otherwise.
2058
2059 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
2060
2061         * i386-tdep.h (struct gdbarch_tdep): Change type of
2062         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
2063
2064 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
2065
2066         * cris-tdep.c (struct instruction_environment): Change type of
2067         byte_order to enum bfd_endian.
2068
2069 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
2070
2071         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
2072         enum gdb_syscall casts.
2073
2074 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
2075
2076         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
2077         * arm-tdep.c (struct stack_item): Likewise.
2078         (push_stack_item): Add gdb_byte* cast.
2079         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
2080         (push_stack_item): Add gdb_byte* cast.
2081         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
2082         and add cast.
2083         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
2084         (push_stack_item): Add gdb_byte* cast.
2085         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
2086         add cast.
2087         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
2088         gdb_byte*.
2089         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
2090         gdb_byte* and remove unnecessary cast.
2091         (h8300h_extract_return_value): Likewise.
2092         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
2093         (h8300h_store_return_value): Likewise.
2094         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
2095         gdb_byte* and remove unnecessary cast.
2096         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
2097         and add cast.
2098         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
2099         gdb_byte* and remove unnecessary cast.
2100         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
2101         valbuf.
2102         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
2103         (mep_pseudo_cr64_read): Likewise.
2104         (mep_pseudo_csr_write): Likewise.
2105         (mep_pseudo_cr32_write): Likewise.
2106         (mep_pseudo_cr64_write): Likewise.
2107         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
2108         gdb_byte* and add cast.
2109         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
2110         gdb_byte* and remove unnecessary cast.
2111         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
2112         valbuf.
2113         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
2114         gdb_byte*.
2115         * printcmd.c (void): Likewise.
2116         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
2117         gdb_byte* and add cast.
2118         (infpy_write_memory): Likewise.
2119         (infpy_search_memory): Likewise.
2120         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
2121         and add cast.
2122         (regcache_raw_write_unsigned): Likewise.
2123         (regcache_cooked_write_signed): Likewise.
2124         (regcache_cooked_write_unsigned): Likewise.
2125         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
2126         gdb_byte*.
2127
2128 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
2129
2130         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
2131         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
2132
2133 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
2134
2135         * stack.c (print_stack_frame):
2136         * utils.c (printchar): Fix typos in commentary.
2137
2138 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
2139
2140         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
2141         (PostfixExpression): Support `expr.sizeof' expressions.
2142         (PrimaryExpression): Support `typeof(expr)' expressions.
2143
2144 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
2145
2146         * MAINTAINERS: Update my email address.
2147
2148 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
2149
2150         * record-btrace.c (record_btrace_resume): Fix void return.
2151
2152 2015-10-07  Yao Qi  <yao.qi@linaro.org>
2153
2154         * aarch64-tdep.c: Include opcode/aarch64.h.
2155         (submask): Move it above.
2156         (bit): Likewise.
2157         (bits): Likewise.
2158         (aarch64_software_single_step): Call aarch64_decode_insn.
2159         Decode instruction by aarch64_inst instead of using
2160         aarch64_decode_bcond and decode_masked_match.
2161
2162 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2163
2164         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
2165         only when the file is binary.
2166
2167 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
2168
2169         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
2170         subroutine handling.
2171
2172 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
2173
2174         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
2175
2176 2015-09-30  Doug Evans  <dje@google.com>
2177
2178         * dwarf2read.c (setup_type_unit_groups): Add comment.
2179
2180 2015-09-30  Pedro Alves  <palves@redhat.com>
2181
2182         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
2183         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
2184         (x86_linux_create_target): Don't install
2185         x86_linux_always_non_stop_p.
2186
2187 2015-09-30  Don Breazeal  <donb@codesourcery.com>
2188
2189         * remote.c (remote_parse_stop_reply): Call strprefix instead
2190         of strncmp.
2191
2192 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
2193
2194         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
2195         * gdbarch.h: Regenerate.
2196         * i386-tdep.c (i386_gdbarch_init): Remove cast to
2197         struct gdbarch_tdep_info *.
2198         * mips-tdep.c (mips_gdbarch_init): Likewise.
2199         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
2200         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2201         * spu-multiarch.c (spu_gdbarch): Likewise.
2202
2203 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
2204
2205         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
2206         record a NULL value.
2207
2208 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
2209
2210         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
2211         and union arguments the same as pointer arguments when determining
2212         size of argument.
2213
2214 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
2215
2216         * ft32-tdep.c: #include "opcode/ft32.h".
2217         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
2218         (ft32_analyze_prologue): Use FT32_* macros.
2219
2220 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
2221
2222         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2223         comment.
2224
2225 2015-09-28  Doug Evans  <dje@google.com>
2226
2227         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
2228
2229 2015-09-28  Doug Evans  <dje@google.com>
2230
2231         * common/filestuff.c (make_cleanup_close): Update comment.
2232
2233 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
2234
2235         * btrace.c (parse_xml_btrace_block): Fix cast of
2236         xml_find_attribute's return value.
2237         * memory-map.c (memory_map_start_memory): Likewise.
2238         * solib-svr4.c (library_list_start_library): Likewise.
2239         * solib-target.c (library_list_start_segment): Likewise.
2240         (library_list_start_section): Likewise.
2241         * tracepoint.c (traceframe_info_start_memory): Likewise.
2242
2243 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
2244
2245         * d-namespace.c (d_lookup_symbol): New arg langdef.
2246         All callers updated.  Support looking up symbol as a primitive type.
2247         (lookup_module_scope): New arg langdef.  All callers updated.
2248         Call d_lookup_symbol directly for simple bare symbols.
2249
2250 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
2251
2252         * macrocmd.c (print_macro_callback): Add cast(s).
2253         * macrotab.c (macro_bcache_str): Likewise.
2254         (new_macro_definition): Likewise.
2255         * main.c (captured_main): Likewise.
2256         * maint.c (print_bfd_section_info): Likewise.
2257         * mdebugread.c (mdebug_build_psymtabs): Likewise.
2258         (basic_type): Likewise.
2259         * memattr.c (mem_region_cmp): Likewise.
2260         * memory-map.c (memory_map_start_memory): Likewise.
2261         (memory_map_end_memory): Likewise.
2262         (memory_map_start_property): Likewise.
2263         (memory_map_end_property): Likewise.
2264         (clear_result): Likewise.
2265         * memrange.c (compare_mem_ranges): Likewise.
2266         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
2267         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
2268         * mi/mi-console.c (mi_console_file_delete): Likewise.
2269         (mi_console_file_fputs): Likewise.
2270         (mi_console_raw_packet): Likewise.
2271         (mi_console_file_flush): Likewise.
2272         (mi_console_set_raw): Likewise.
2273         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
2274         (mi_new_thread): Likewise.
2275         (mi_thread_exit): Likewise.
2276         (mi_record_changed): Likewise.
2277         (mi_inferior_added): Likewise.
2278         (mi_inferior_appeared): Likewise.
2279         (mi_inferior_exit): Likewise.
2280         (mi_inferior_removed): Likewise.
2281         (mi_interp_data): Likewise.
2282         (mi_on_normal_stop): Likewise.
2283         (mi_traceframe_changed): Likewise.
2284         (mi_tsv_created): Likewise.
2285         (mi_tsv_deleted): Likewise.
2286         (mi_tsv_modified): Likewise.
2287         (mi_breakpoint_created): Likewise.
2288         (mi_breakpoint_deleted): Likewise.
2289         (mi_breakpoint_modified): Likewise.
2290         (mi_output_running_pid): Likewise.
2291         (mi_inferior_count): Likewise.
2292         (mi_solib_loaded): Likewise.
2293         (mi_solib_unloaded): Likewise.
2294         (mi_command_param_changed): Likewise.
2295         (mi_memory_changed): Likewise.
2296         (report_initial_inferior): Likewise.
2297         (mi_ui_out): Likewise.
2298         (mi_set_logging): Likewise.
2299         * mi/mi-main.c (collect_cores): Likewise.
2300         (print_one_inferior): Likewise.
2301         (free_vector_of_ints): Likewise.
2302         (free_splay_tree): Likewise.
2303         (mi_execute_command): Likewise.
2304         * mi/mi-out.c (mi_table_body): Likewise.
2305         (mi_table_end): Likewise.
2306         (mi_table_header): Likewise.
2307         (mi_begin): Likewise.
2308         (mi_end): Likewise.
2309         (mi_field_int): Likewise.
2310         (mi_field_string): Likewise.
2311         (mi_field_fmt): Likewise.
2312         (mi_flush): Likewise.
2313         (mi_redirect): Likewise.
2314         (field_separator): Likewise.
2315         (mi_open): Likewise.
2316         (mi_close): Likewise.
2317         (mi_out_buffered): Likewise.
2318         (mi_out_rewind): Likewise.
2319         (mi_out_put): Likewise.
2320         (mi_version): Likewise.
2321         (mi_out_data_dtor): Likewise.
2322         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
2323         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
2324         * minidebug.c (lzma_open): Likewise.
2325         (lzma_pread): Likewise.
2326         (lzma_close): Likewise.
2327         (lzma_stat): Likewise.
2328         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
2329         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
2330         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
2331         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
2332         (mips_micro_frame_cache): Likewise.
2333         (mips_insn32_frame_cache): Likewise.
2334         (mips_stub_frame_cache): Likewise.
2335         (gdb_print_insn_mips): Likewise.
2336         (value_of_mips_user_reg): Likewise.
2337         (mips_gdbarch_init): Likewise.
2338         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
2339         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
2340         (mipsnbsd_supply_gregset): Likewise.
2341         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
2342         (am33_collect_gregset_method): Likewise.
2343         (am33_collect_fpregset_method): Likewise.
2344         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
2345         * moxie-tdep.c (moxie_frame_cache): Likewise.
2346         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
2347         (msp430_analyze_frame_prologue): Likewise.
2348         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
2349         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
2350         (nios2_collect_gregset): Likewise.
2351         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
2352         (nios2_stub_frame_cache): Likewise.
2353         * objc-lang.c (find_methods): Likewise.
2354         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2355         (get_objfile_pspace_data): Likewise.
2356         (get_objfile_bfd_data): Likewise.
2357         (objfile_bfd_data_free): Likewise.
2358         (add_to_objfile_sections): Likewise.
2359         (do_free_objfile_cleanup): Likewise.
2360         (resume_section_map_updates_cleanup): Likewise.
2361         * opencl-lang.c (builtin_opencl_type): Likewise.
2362         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2363         * osdata.c (osdata_start_osdata): Likewise.
2364         (osdata_start_item): Likewise.
2365         (osdata_start_column): Likewise.
2366         (osdata_end_column): Likewise.
2367         (clear_parsing_data): Likewise.
2368         (osdata_free_cleanup): Likewise.
2369         * parse.c (type_stack_cleanup): Likewise.
2370         (exp_uses_objfile_iter): Likewise.
2371         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
2372         (ppc_linux_collect_gregset): Likewise.
2373         (ppu2spu_prev_arch): Likewise.
2374         (ppu2spu_this_id): Likewise.
2375         (ppu2spu_prev_register): Likewise.
2376         (ppu2spu_unwind_register): Likewise.
2377         (ppu2spu_sniffer): Likewise.
2378         (ppu2spu_dealloc_cache): Likewise.
2379         (ppc_linux_init_abi): Likewise.
2380         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
2381         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2382         * progspace.c (restore_program_space): Likewise.
2383         * psymtab.c (find_pc_sect_psymtab): Likewise.
2384         (compare_psymbols): Likewise.
2385         (psymbol_bcache_full): Likewise.
2386         (allocate_psymtab): Likewise.
2387         (discard_psymtabs_upto): Likewise.
2388         * python/py-block.c (set_block): Likewise.
2389         (del_objfile_blocks): Likewise.
2390         * python/py-breakpoint.c (build_bp_list): Likewise.
2391         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
2392         (build_inferior_list): Likewise.
2393         (py_free_inferior): Likewise.
2394         * python/py-objfile.c (py_free_objfile): Likewise.
2395         (objfile_to_objfile_object): Likewise.
2396         * python/py-prettyprint.c (py_restore_tstate): Likewise.
2397         * python/py-progspace.c (py_free_pspace): Likewise.
2398         (pspace_to_pspace_object): Likewise.
2399         * python/py-symbol.c (set_symbol): Likewise.
2400         (del_objfile_symbols): Likewise.
2401         * python/py-symtab.c (set_sal): Likewise.
2402         (set_symtab): Likewise.
2403         (del_objfile_symtab): Likewise.
2404         (del_objfile_sal): Likewise.
2405         * python/py-type.c (save_objfile_types): Likewise.
2406         (set_type): Likewise.
2407         * python/py-unwind.c (pyuw_prev_register): Likewise.
2408         (pyuw_on_new_gdbarch): Likewise.
2409         * python/py-utils.c (py_decref): Likewise.
2410         (py_xdecref): Likewise.
2411         (gdb_py_generic_dict): Likewise.
2412         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
2413         (gdbpy_clone_xmethod_worker_data): Likewise.
2414         (gdbpy_get_xmethod_arg_types): Likewise.
2415         (gdbpy_get_xmethod_result_type): Likewise.
2416         (gdbpy_invoke_xmethod): Likewise.
2417         * python/python.c (gdbpy_apply_type_printers): Likewise.
2418         (gdbpy_free_type_printers): Likewise.
2419         * record-btrace.c (record_btrace_disable_callback): Likewise.
2420         (bfcache_hash): Likewise.
2421         (bfcache_eq): Likewise.
2422         (btrace_get_frame_function): Likewise.
2423         (record_btrace_frame_unwind_stop_reason): Likewise.
2424         (record_btrace_frame_this_id): Likewise.
2425         (record_btrace_frame_prev_register): Likewise.
2426         (record_btrace_frame_dealloc_cache): Likewise.
2427         * record-full.c (record_full_message_wrapper): Likewise.
2428         (record_full_save_cleanups): Likewise.
2429         * regcache.c (regcache_descr): Likewise.
2430         (do_regcache_xfree): Likewise.
2431         (do_regcache_invalidate): Likewise.
2432         (do_cooked_read): Likewise.
2433         (regcache_transfer_regset): Likewise.
2434         * reggroups.c (reggroup_add): Likewise.
2435         (reggroup_next): Likewise.
2436         (reggroup_prev): Likewise.
2437         * remote-fileio.c (do_remote_fileio_request): Likewise.
2438         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
2439         (do_notif_event_xfree): Likewise.
2440         * remote.c (get_remote_arch_state): Likewise.
2441         (remote_pspace_data_cleanup): Likewise.
2442         (get_remote_exec_file): Likewise.
2443         (set_pspace_remote_exec_file): Likewise.
2444         (compare_pnums): Likewise.
2445         (clear_threads_listing_context): Likewise.
2446         (remote_newthread_step): Likewise.
2447         (start_thread): Likewise.
2448         (end_thread): Likewise.
2449         (remove_child_of_pending_fork): Likewise.
2450         (remove_stop_reply_for_inferior): Likewise.
2451         (remove_stop_reply_of_remote_state): Likewise.
2452         (remote_notif_remove_once_on_match): Likewise.
2453         (stop_reply_match_ptid_and_ws): Likewise.
2454         (kill_child_of_pending_fork): Likewise.
2455         (register_remote_g_packet_guess): Likewise.
2456         (remote_read_description_p): Likewise.
2457         (remote_read_description): Likewise.
2458         (free_actions_list_cleanup_wrapper): Likewise.
2459         (remote_async_serial_handler): Likewise.
2460         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
2461         (rl78_analyze_frame_prologue): Likewise.
2462         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
2463         (ppc_supply_fpregset): Likewise.
2464         (ppc_supply_vsxregset): Likewise.
2465         (ppc_supply_vrregset): Likewise.
2466         (ppc_collect_gregset): Likewise.
2467         (ppc_collect_fpregset): Likewise.
2468         (ppc_collect_vsxregset): Likewise.
2469         (ppc_collect_vrregset): Likewise.
2470         (e500_move_ev_register): Likewise.
2471         (do_regcache_raw_write): Likewise.
2472         (rs6000_frame_cache): Likewise.
2473         (rs6000_epilogue_frame_cache): Likewise.
2474         (rs6000_gdbarch_init): Likewise.
2475         * rx-tdep.c (rx_get_opcode_byte): Likewise.
2476         (rx_analyze_frame_prologue): Likewise.
2477         (rx_frame_type): Likewise.
2478         (rx_frame_sniffer_common): Likewise.
2479         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
2480         (s390_frame_unwind_cache): Likewise.
2481         (s390_stub_frame_unwind_cache): Likewise.
2482         (s390_sigtramp_frame_unwind_cache): Likewise.
2483         * score-tdep.c (score_make_prologue_cache): Likewise.
2484         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
2485         (sentinel_frame_prev_arch): Likewise.
2486         * ser-base.c (fd_event): Likewise.
2487         (push_event): Likewise.
2488         (ser_base_write): Likewise.
2489         * ser-pipe.c (pipe_close): Likewise.
2490         * serial.c (serial_write): Likewise.
2491         * sh-tdep.c (sh_frame_cache): Likewise.
2492         (sh_stub_this_id): Likewise.
2493         * sh64-tdep.c (sh64_frame_cache): Likewise.
2494         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2495         (library_list_start_library): Likewise.
2496         (library_list_start_list): Likewise.
2497         (solib_aix_free_library_list): Likewise.
2498         * solib-darwin.c (get_darwin_info): Likewise.
2499         * solib-dsbt.c (get_dsbt_info): Likewise.
2500         * solib-spu.c (append_ocl_sos): Likewise.
2501         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2502         (get_svr4_info): Likewise.
2503         (library_list_start_library): Likewise.
2504         (svr4_library_list_start_list): Likewise.
2505         (hash_probe_and_action): Likewise.
2506         (equal_probe_and_action): Likewise.
2507         (svr4_update_solib_event_breakpoint): Likewise.
2508         (set_solib_svr4_fetch_link_map_offsets): Likewise.
2509         (svr4_fetch_link_map_offsets): Likewise.
2510         (svr4_have_link_map_offsets): Likewise.
2511         * solib-target.c (library_list_start_segment): Likewise.
2512         (library_list_start_section): Likewise.
2513         (library_list_start_library): Likewise.
2514         (library_list_end_library): Likewise.
2515         (library_list_start_list): Likewise.
2516         (solib_target_free_library_list): Likewise.
2517         * solib.c (solib_ops): Likewise.
2518         (set_solib_ops): Likewise.
2519         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2520         * sparc-tdep.c (sparc_frame_cache): Likewise.
2521         (sparc32_frame_cache): Likewise.
2522         (sparc32_supply_gregset): Likewise.
2523         (sparc32_collect_gregset): Likewise.
2524         (sparc32_supply_fpregset): Likewise.
2525         (sparc32_collect_fpregset): Likewise.
2526         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2527         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2528         (sparc64_collect_gregset): Likewise.
2529         (sparc64_supply_fpregset): Likewise.
2530         (sparc64_collect_fpregset): Likewise.
2531         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
2532         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2533         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2534         (sparc64obsd_trapframe_cache): Likewise.
2535         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
2536         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2537         * spu-multiarch.c (spu_gdbarch): Likewise.
2538         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
2539         (spu2ppu_prev_arch): Likewise.
2540         (spu2ppu_this_id): Likewise.
2541         (spu2ppu_prev_register): Likewise.
2542         (spu2ppu_dealloc_cache): Likewise.
2543         (spu_dis_asm_print_address): Likewise.
2544         (gdb_print_insn_spu): Likewise.
2545         (spu_get_overlay_table): Likewise.
2546         * stabsread.c (rs6000_builtin_type): Likewise.
2547         * stack.c (do_print_variable_and_value): Likewise.
2548         * stap-probe.c (get_stap_base_address_1): Likewise.
2549         * symfile-debug.c (debug_qf_has_symbols): Likewise.
2550         (debug_qf_find_last_source_symtab): Likewise.
2551         (debug_qf_forget_cached_source_info): Likewise.
2552         (debug_qf_map_symtabs_matching_filename): Likewise.
2553         (debug_qf_lookup_symbol): Likewise.
2554         (debug_qf_print_stats): Likewise.
2555         (debug_qf_dump): Likewise.
2556         (debug_qf_relocate): Likewise.
2557         (debug_qf_expand_symtabs_for_function): Likewise.
2558         (debug_qf_expand_all_symtabs): Likewise.
2559         (debug_qf_expand_symtabs_with_fullname): Likewise.
2560         (debug_qf_map_matching_symbols): Likewise.
2561         (debug_qf_expand_symtabs_matching): Likewise.
2562         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
2563         (debug_qf_map_symbol_filenames): Likewise.
2564         (debug_sym_get_probes): Likewise.
2565         (debug_sym_new_init): Likewise.
2566         (debug_sym_init): Likewise.
2567         (debug_sym_read): Likewise.
2568         (debug_sym_read_psymbols): Likewise.
2569         (debug_sym_finish): Likewise.
2570         (debug_sym_offsets): Likewise.
2571         (debug_sym_read_linetable): Likewise.
2572         (debug_sym_relocate): Likewise.
2573         (uninstall_symfile_debug_logging): Likewise.
2574         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
2575         * symfile.c (place_section): Likewise.
2576         (add_section_size_callback): Likewise.
2577         (load_progress): Likewise.
2578         (load_section_callback): Likewise.
2579         (clear_memory_write_data): Likewise.
2580         (allocate_symtab): Likewise.
2581         * symmisc.c (maintenance_expand_file_matcher): Likewise.
2582         * symtab.c (lookup_symtab_callback): Likewise.
2583         (hash_demangled_name_entry): Likewise.
2584         (eq_demangled_name_entry): Likewise.
2585         (get_symbol_cache): Likewise.
2586         (symbol_cache_cleanup): Likewise.
2587         (set_symbol_cache_size): Likewise.
2588         (symbol_cache_flush): Likewise.
2589         (maintenance_print_symbol_cache): Likewise.
2590         (maintenance_print_symbol_cache_statistics): Likewise.
2591         (delete_filename_seen_cache): Likewise.
2592         (output_partial_symbol_filename): Likewise.
2593         (search_symbols_file_matches): Likewise.
2594         (search_symbols_name_matches): Likewise.
2595         (do_free_completion_list): Likewise.
2596         (maybe_add_partial_symtab_filename): Likewise.
2597         (get_main_info): Likewise.
2598         (main_info_cleanup): Likewise.
2599         * target-dcache.c (target_dcache_cleanup): Likewise.
2600         (target_dcache_init_p): Likewise.
2601         (target_dcache_invalidate): Likewise.
2602         (target_dcache_get): Likewise.
2603         (target_dcache_get_or_init): Likewise.
2604         * target-descriptions.c (target_find_description): Likewise.
2605         (tdesc_find_type): Likewise.
2606         (tdesc_data_cleanup): Likewise.
2607         (tdesc_find_arch_register): Likewise.
2608         (tdesc_register_name): Likewise.
2609         (tdesc_register_type): Likewise.
2610         (tdesc_register_reggroup_p): Likewise.
2611         (set_tdesc_pseudo_register_name): Likewise.
2612         (set_tdesc_pseudo_register_type): Likewise.
2613         (set_tdesc_pseudo_register_reggroup_p): Likewise.
2614         (tdesc_use_registers): Likewise.
2615         (free_target_description): Likewise.
2616         * target-memory.c (compare_block_starting_address): Likewise.
2617         (cleanup_request_data): Likewise.
2618         (cleanup_write_requests_vector): Likewise.
2619         * target.c (open_target): Likewise.
2620         (cleanup_restore_target_terminal): Likewise.
2621         (free_memory_read_result_vector): Likewise.
2622         * thread.c (disable_thread_stack_temporaries): Likewise.
2623         (finish_thread_state_cleanup): Likewise.
2624         (do_restore_current_thread_cleanup): Likewise.
2625         (restore_current_thread_cleanup_dtor): Likewise.
2626         (set_thread_refcount): Likewise.
2627         (tp_array_compar): Likewise.
2628         (do_captured_thread_select): Likewise.
2629         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
2630         (tic6x_stub_this_id): Likewise.
2631         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
2632         * top.c (do_restore_instream_cleanup): Likewise.
2633         (gdb_readline_wrapper_cleanup): Likewise.
2634         (kill_or_detach): Likewise.
2635         (print_inferior_quit_action): Likewise.
2636         * tracefile-tfile.c (match_blocktype): Likewise.
2637         (build_traceframe_info): Likewise.
2638         * tracefile.c (trace_file_writer_xfree): Likewise.
2639         * tracepoint.c (memrange_cmp): Likewise.
2640         (do_collect_symbol): Likewise.
2641         (do_clear_collection_list): Likewise.
2642         (do_restore_current_traceframe_cleanup): Likewise.
2643         (restore_current_traceframe_cleanup_dtor): Likewise.
2644         (free_current_marker): Likewise.
2645         (traceframe_info_start_memory): Likewise.
2646         (traceframe_info_start_tvar): Likewise.
2647         (free_result): Likewise.
2648         * tramp-frame.c (tramp_frame_cache): Likewise.
2649         * tui/tui-file.c (tui_file_delete): Likewise.
2650         (tui_fileopen): Likewise.
2651         (tui_sfileopen): Likewise.
2652         (tui_file_isatty): Likewise.
2653         (tui_file_rewind): Likewise.
2654         (tui_file_put): Likewise.
2655         (tui_file_fputs): Likewise.
2656         (tui_file_get_strbuf): Likewise.
2657         (tui_file_adjust_strbuf): Likewise.
2658         (tui_file_flush): Likewise.
2659         * tui/tui-layout.c (make_command_window): Likewise.
2660         (make_data_window): Likewise.
2661         (show_source_disasm_command): Likewise.
2662         (show_data): Likewise.
2663         (make_source_or_disasm_window): Likewise.
2664         (show_source_or_disasm_and_command): Likewise.
2665         * tui/tui-out.c (tui_field_int): Likewise.
2666         (tui_field_string): Likewise.
2667         (tui_field_fmt): Likewise.
2668         (tui_text): Likewise.
2669         * typeprint.c (hash_typedef_field): Likewise.
2670         (eq_typedef_field): Likewise.
2671         (do_free_typedef_hash): Likewise.
2672         (copy_typedef_hash_element): Likewise.
2673         (do_free_global_table): Likewise.
2674         (find_global_typedef): Likewise.
2675         (find_typedef_in_hash): Likewise.
2676         * ui-file.c (ui_file_write_for_put): Likewise.
2677         (do_ui_file_xstrdup): Likewise.
2678         (mem_file_delete): Likewise.
2679         (mem_file_rewind): Likewise.
2680         (mem_file_put): Likewise.
2681         (mem_file_write): Likewise.
2682         (stdio_file_delete): Likewise.
2683         (stdio_file_flush): Likewise.
2684         (stdio_file_read): Likewise.
2685         (stdio_file_write): Likewise.
2686         (stdio_file_write_async_safe): Likewise.
2687         (stdio_file_fputs): Likewise.
2688         (stdio_file_isatty): Likewise.
2689         (stdio_file_fseek): Likewise.
2690         (tee_file_delete): Likewise.
2691         (tee_file_flush): Likewise.
2692         (tee_file_write): Likewise.
2693         (tee_file_fputs): Likewise.
2694         (tee_file_isatty): Likewise.
2695         * ui-out.c (do_cleanup_table_end): Likewise.
2696         (do_cleanup_end): Likewise.
2697         * user-regs.c (user_reg_add): Likewise.
2698         (user_reg_map_name_to_regnum): Likewise.
2699         (usernum_to_user_reg): Likewise.
2700         (maintenance_print_user_registers): Likewise.
2701         * utils.c (do_bfd_close_cleanup): Likewise.
2702         (do_fclose_cleanup): Likewise.
2703         (do_obstack_free): Likewise.
2704         (do_ui_file_delete): Likewise.
2705         (do_ui_out_redirect_pop): Likewise.
2706         (do_free_section_addr_info): Likewise.
2707         (restore_integer): Likewise.
2708         (do_unpush_target): Likewise.
2709         (do_htab_delete_cleanup): Likewise.
2710         (do_restore_ui_file): Likewise.
2711         (do_value_free): Likewise.
2712         (do_free_so): Likewise.
2713         (free_current_contents): Likewise.
2714         (do_regfree_cleanup): Likewise.
2715         (core_addr_hash): Likewise.
2716         (core_addr_eq): Likewise.
2717         (do_free_char_ptr_vec): Likewise.
2718         * v850-tdep.c (v850_frame_cache): Likewise.
2719         * varobj.c (do_free_variable_cleanup): Likewise.
2720         * vax-tdep.c (vax_supply_gregset): Likewise.
2721         (vax_frame_cache): Likewise.
2722         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
2723         * xml-support.c (gdb_xml_body_text): Likewise.
2724         (gdb_xml_values_cleanup): Likewise.
2725         (gdb_xml_start_element): Likewise.
2726         (gdb_xml_start_element_wrapper): Likewise.
2727         (gdb_xml_end_element): Likewise.
2728         (gdb_xml_end_element_wrapper): Likewise.
2729         (gdb_xml_cleanup): Likewise.
2730         (gdb_xml_fetch_external_entity): Likewise.
2731         (gdb_xml_parse_attr_enum): Likewise.
2732         (xinclude_start_include): Likewise.
2733         (xinclude_end_include): Likewise.
2734         (xml_xinclude_default): Likewise.
2735         (xml_xinclude_start_doctype): Likewise.
2736         (xml_xinclude_end_doctype): Likewise.
2737         (xml_xinclude_cleanup): Likewise.
2738         (xml_fetch_content_from_file): Likewise.
2739         * xml-syscall.c (free_syscalls_info): Likewise.
2740         (syscall_start_syscall): Likewise.
2741         * xml-tdesc.c (tdesc_end_arch): Likewise.
2742         (tdesc_end_osabi): Likewise.
2743         (tdesc_end_compatible): Likewise.
2744         (tdesc_start_target): Likewise.
2745         (tdesc_start_feature): Likewise.
2746         (tdesc_start_reg): Likewise.
2747         (tdesc_start_union): Likewise.
2748         (tdesc_start_struct): Likewise.
2749         (tdesc_start_flags): Likewise.
2750         (tdesc_start_field): Likewise.
2751         (tdesc_start_vector): Likewise.
2752         (fetch_available_features_from_target): Likewise.
2753         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
2754         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
2755         (xtensa_frame_cache): Likewise.
2756         (xtensa_frame_prev_register): Likewise.
2757         (xtensa_extract_return_value): Likewise.
2758
2759 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
2760
2761         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
2762         (aarch64_make_stub_cache): Likewise.
2763         (value_of_aarch64_user_reg): Likewise.
2764         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
2765         (get_ada_inferior_data): Likewise.
2766         (get_ada_pspace_data): Likewise.
2767         (ada_pspace_data_cleanup): Likewise.
2768         (ada_complete_symbol_matcher): Likewise.
2769         (ada_exc_search_name_matches): Likewise.
2770         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2771         (get_ada_tasks_inferior_data): Likewise.
2772         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
2773         (splay_obstack_alloc): Likewise.
2774         (splay_obstack_free): Likewise.
2775         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
2776         (alpha_linux_collect_gregset): Likewise.
2777         (alpha_linux_supply_fpregset): Likewise.
2778         (alpha_linux_collect_fpregset): Likewise.
2779         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2780         * alpha-tdep.c (alpha_lds): Likewise.
2781         (alpha_sts): Likewise.
2782         (alpha_sigtramp_frame_unwind_cache): Likewise.
2783         (alpha_heuristic_frame_unwind_cache): Likewise.
2784         (alpha_supply_int_regs): Likewise.
2785         (alpha_fill_int_regs): Likewise.
2786         (alpha_supply_fp_regs): Likewise.
2787         (alpha_fill_fp_regs): Likewise.
2788         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
2789         (alphanbsd_aout_supply_gregset): Likewise.
2790         (alphanbsd_supply_gregset): Likewise.
2791         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
2792         (amd64_x32_linux_init_abi): Likewise.
2793         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2794         (amd64_collect_native_gregset): Likewise.
2795         * amd64-tdep.c (amd64_frame_cache): Likewise.
2796         (amd64_sigtramp_frame_cache): Likewise.
2797         (amd64_epilogue_frame_cache): Likewise.
2798         (amd64_supply_fxsave): Likewise.
2799         (amd64_supply_xsave): Likewise.
2800         (amd64_collect_fxsave): Likewise.
2801         (amd64_collect_xsave): Likewise.
2802         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
2803         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
2804         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2805         (arm_linux_collect_gregset): Likewise.
2806         (arm_linux_supply_nwfpe): Likewise.
2807         (arm_linux_collect_nwfpe): Likewise.
2808         (arm_linux_supply_vfp): Likewise.
2809         (arm_linux_collect_vfp): Likewise.
2810         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
2811         (arm_prologue_unwind_stop_reason): Likewise.
2812         (arm_prologue_this_id): Likewise.
2813         (arm_prologue_prev_register): Likewise.
2814         (arm_exidx_data_free): Likewise.
2815         (arm_find_exidx_entry): Likewise.
2816         (arm_stub_this_id): Likewise.
2817         (arm_m_exception_this_id): Likewise.
2818         (arm_m_exception_prev_register): Likewise.
2819         (arm_normal_frame_base): Likewise.
2820         (gdb_print_insn_arm): Likewise.
2821         (arm_objfile_data_free): Likewise.
2822         (arm_record_special_symbol): Likewise.
2823         (value_of_arm_user_reg): Likewise.
2824         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
2825         (armbsd_supply_gregset): Likewise.
2826         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
2827         (get_auto_load_pspace_data): Likewise.
2828         (hash_loaded_script_entry): Likewise.
2829         (eq_loaded_script_entry): Likewise.
2830         (clear_section_scripts): Likewise.
2831         (collect_matching_scripts): Likewise.
2832         * auxv.c (auxv_inferior_data_cleanup): Likewise.
2833         (get_auxv_inferior_data): Likewise.
2834         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2835         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
2836         * bfd-target.c (target_bfd_xfer_partial): Likewise.
2837         (target_bfd_xclose): Likewise.
2838         (target_bfd_get_section_table): Likewise.
2839         * bfin-tdep.c (bfin_frame_cache): Likewise.
2840         * block.c (find_block_in_blockvector): Likewise.
2841         (call_site_for_pc): Likewise.
2842         (block_find_non_opaque_type_preferred): Likewise.
2843         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
2844         (signal_catchpoint_remove_location): Likewise.
2845         (signal_catchpoint_breakpoint_hit): Likewise.
2846         (signal_catchpoint_print_one): Likewise.
2847         (signal_catchpoint_print_mention): Likewise.
2848         (signal_catchpoint_print_recreate): Likewise.
2849         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
2850         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
2851         (bp_location_compare_addrs): Likewise.
2852         (get_first_locp_gte_addr): Likewise.
2853         (check_tracepoint_command): Likewise.
2854         (do_map_commands_command): Likewise.
2855         (get_breakpoint_objfile_data): Likewise.
2856         (free_breakpoint_probes): Likewise.
2857         (do_captured_breakpoint_query): Likewise.
2858         (compare_breakpoints): Likewise.
2859         (bp_location_compare): Likewise.
2860         (bpstat_remove_breakpoint_callback): Likewise.
2861         (do_delete_breakpoint_cleanup): Likewise.
2862         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
2863         (bsd_uthread_set_collect_uthread): Likewise.
2864         (bsd_uthread_activate): Likewise.
2865         (bsd_uthread_fetch_registers): Likewise.
2866         (bsd_uthread_store_registers): Likewise.
2867         * btrace.c (check_xml_btrace_version): Likewise.
2868         (parse_xml_btrace_block): Likewise.
2869         (parse_xml_btrace_pt_config_cpu): Likewise.
2870         (parse_xml_btrace_pt_raw): Likewise.
2871         (parse_xml_btrace_pt): Likewise.
2872         (parse_xml_btrace_conf_bts): Likewise.
2873         (parse_xml_btrace_conf_pt): Likewise.
2874         (do_btrace_data_cleanup): Likewise.
2875         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
2876         * charset.c (cleanup_iconv): Likewise.
2877         (do_cleanup_iterator): Likewise.
2878         * cli-out.c (cli_uiout_dtor): Likewise.
2879         (cli_table_begin): Likewise.
2880         (cli_table_body): Likewise.
2881         (cli_table_end): Likewise.
2882         (cli_table_header): Likewise.
2883         (cli_begin): Likewise.
2884         (cli_end): Likewise.
2885         (cli_field_int): Likewise.
2886         (cli_field_skip): Likewise.
2887         (cli_field_string): Likewise.
2888         (cli_field_fmt): Likewise.
2889         (cli_spaces): Likewise.
2890         (cli_text): Likewise.
2891         (cli_message): Likewise.
2892         (cli_wrap_hint): Likewise.
2893         (cli_flush): Likewise.
2894         (cli_redirect): Likewise.
2895         (out_field_fmt): Likewise.
2896         (field_separator): Likewise.
2897         (cli_out_set_stream): Likewise.
2898         * cli/cli-cmds.c (compare_symtabs): Likewise.
2899         * cli/cli-dump.c (call_dump_func): Likewise.
2900         (restore_section_callback): Likewise.
2901         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
2902         (do_restore_user_call_depth): Likewise.
2903         (do_free_command_lines_cleanup): Likewise.
2904         * coff-pe-read.c (get_section_vmas): Likewise.
2905         (pe_as16): Likewise.
2906         (pe_as32): Likewise.
2907         * coffread.c (coff_symfile_read): Likewise.
2908         * common/agent.c (agent_look_up_symbols): Likewise.
2909         * common/filestuff.c (do_close_cleanup): Likewise.
2910         * common/format.c (free_format_pieces_cleanup): Likewise.
2911         * common/vec.c (vec_o_reserve): Likewise.
2912         * compile/compile-c-support.c (print_one_macro): Likewise.
2913         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
2914         (eq_symbol_error): Likewise.
2915         (del_symbol_error): Likewise.
2916         (error_symbol_once): Likewise.
2917         (gcc_convert_symbol): Likewise.
2918         (gcc_symbol_address): Likewise.
2919         (hash_symname): Likewise.
2920         (eq_symname): Likewise.
2921         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
2922         (eq_type_map_instance): Likewise.
2923         (insert_type): Likewise.
2924         (convert_type): Likewise.
2925         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
2926         (setup_sections): Likewise.
2927         (link_hash_table_free): Likewise.
2928         (copy_sections): Likewise.
2929         * compile/compile-object-run.c (do_module_cleanup): Likewise.
2930         * compile/compile.c (compile_print_value): Likewise.
2931         (do_rmdir): Likewise.
2932         (cleanup_compile_instance): Likewise.
2933         (cleanup_unlink_file): Likewise.
2934         * completer.c (free_completion_tracker): Likewise.
2935         * corelow.c (add_to_spuid_list): Likewise.
2936         * cp-namespace.c (reset_directive_searched): Likewise.
2937         * cp-support.c (reset_directive_searched): Likewise.
2938         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
2939         (cris_frame_unwind_cache): Likewise.
2940         * d-lang.c (builtin_d_type): Likewise.
2941         * d-namespace.c (reset_directive_searched): Likewise.
2942         * dbxread.c (dbx_free_symfile_info): Likewise.
2943         (do_free_bincl_list_cleanup): Likewise.
2944         * disasm.c (hash_dis_line_entry): Likewise.
2945         (eq_dis_line_entry): Likewise.
2946         (dis_asm_print_address): Likewise.
2947         (fprintf_disasm): Likewise.
2948         (do_ui_file_delete): Likewise.
2949         * doublest.c (convert_floatformat_to_doublest): Likewise.
2950         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
2951         (dummy_frame_prev_register): Likewise.
2952         (dummy_frame_this_id): Likewise.
2953         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
2954         (cache_eq): Likewise.
2955         (cache_find): Likewise.
2956         (tailcall_frame_this_id): Likewise.
2957         (dwarf2_tailcall_prev_register_first): Likewise.
2958         (tailcall_frame_prev_register): Likewise.
2959         (tailcall_frame_dealloc_cache): Likewise.
2960         (tailcall_frame_prev_arch): Likewise.
2961         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
2962         (dwarf2_frame_set_init_reg): Likewise.
2963         (dwarf2_frame_init_reg): Likewise.
2964         (dwarf2_frame_set_signal_frame_p): Likewise.
2965         (dwarf2_frame_signal_frame_p): Likewise.
2966         (dwarf2_frame_set_adjust_regnum): Likewise.
2967         (dwarf2_frame_adjust_regnum): Likewise.
2968         (clear_pointer_cleanup): Likewise.
2969         (dwarf2_frame_cache): Likewise.
2970         (find_cie): Likewise.
2971         (dwarf2_frame_find_fde): Likewise.
2972         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
2973         (free_dwarf_expr_context_cleanup): Likewise.
2974         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
2975         (locexpr_get_frame_base): Likewise.
2976         (loclist_find_frame_base_location): Likewise.
2977         (loclist_get_frame_base): Likewise.
2978         (dwarf_expr_dwarf_call): Likewise.
2979         (dwarf_expr_get_base_type): Likewise.
2980         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
2981         (dwarf_expr_get_obj_addr): Likewise.
2982         (entry_data_value_coerce_ref): Likewise.
2983         (entry_data_value_copy_closure): Likewise.
2984         (entry_data_value_free_closure): Likewise.
2985         (get_frame_address_in_block_wrapper): Likewise.
2986         (dwarf2_evaluate_property): Likewise.
2987         (dwarf2_compile_property_to_c): Likewise.
2988         (needs_frame_read_addr_from_reg): Likewise.
2989         (needs_frame_get_reg_value): Likewise.
2990         (needs_frame_frame_base): Likewise.
2991         (needs_frame_frame_cfa): Likewise.
2992         (needs_frame_tls_address): Likewise.
2993         (needs_frame_dwarf_call): Likewise.
2994         (needs_dwarf_reg_entry_value): Likewise.
2995         (get_ax_pc): Likewise.
2996         (locexpr_read_variable): Likewise.
2997         (locexpr_read_variable_at_entry): Likewise.
2998         (locexpr_read_needs_frame): Likewise.
2999         (locexpr_describe_location): Likewise.
3000         (locexpr_tracepoint_var_ref): Likewise.
3001         (locexpr_generate_c_location): Likewise.
3002         (loclist_read_variable): Likewise.
3003         (loclist_read_variable_at_entry): Likewise.
3004         (loclist_describe_location): Likewise.
3005         (loclist_tracepoint_var_ref): Likewise.
3006         (loclist_generate_c_location): Likewise.
3007         * dwarf2read.c (line_header_hash_voidp): Likewise.
3008         (line_header_eq_voidp): Likewise.
3009         (dwarf2_has_info): Likewise.
3010         (dwarf2_get_section_info): Likewise.
3011         (locate_dwz_sections): Likewise.
3012         (hash_file_name_entry): Likewise.
3013         (eq_file_name_entry): Likewise.
3014         (delete_file_name_entry): Likewise.
3015         (dw2_setup): Likewise.
3016         (dw2_get_file_names_reader): Likewise.
3017         (dw2_find_pc_sect_compunit_symtab): Likewise.
3018         (hash_signatured_type): Likewise.
3019         (eq_signatured_type): Likewise.
3020         (add_signatured_type_cu_to_table): Likewise.
3021         (create_debug_types_hash_table): Likewise.
3022         (lookup_dwo_signatured_type): Likewise.
3023         (lookup_dwp_signatured_type): Likewise.
3024         (lookup_signatured_type): Likewise.
3025         (hash_type_unit_group): Likewise.
3026         (eq_type_unit_group): Likewise.
3027         (get_type_unit_group): Likewise.
3028         (process_psymtab_comp_unit_reader): Likewise.
3029         (sort_tu_by_abbrev_offset): Likewise.
3030         (process_skeletonless_type_unit): Likewise.
3031         (psymtabs_addrmap_cleanup): Likewise.
3032         (dwarf2_read_symtab): Likewise.
3033         (psymtab_to_symtab_1): Likewise.
3034         (die_hash): Likewise.
3035         (die_eq): Likewise.
3036         (load_full_comp_unit_reader): Likewise.
3037         (reset_die_in_process): Likewise.
3038         (free_cu_line_header): Likewise.
3039         (handle_DW_AT_stmt_list): Likewise.
3040         (hash_dwo_file): Likewise.
3041         (eq_dwo_file): Likewise.
3042         (hash_dwo_unit): Likewise.
3043         (eq_dwo_unit): Likewise.
3044         (create_dwo_cu_reader): Likewise.
3045         (create_dwo_unit_in_dwp_v1): Likewise.
3046         (create_dwo_unit_in_dwp_v2): Likewise.
3047         (lookup_dwo_unit_in_dwp): Likewise.
3048         (dwarf2_locate_dwo_sections): Likewise.
3049         (dwarf2_locate_common_dwp_sections): Likewise.
3050         (dwarf2_locate_v2_dwp_sections): Likewise.
3051         (hash_dwp_loaded_cutus): Likewise.
3052         (eq_dwp_loaded_cutus): Likewise.
3053         (lookup_dwo_cutu): Likewise.
3054         (abbrev_table_free_cleanup): Likewise.
3055         (dwarf2_free_abbrev_table): Likewise.
3056         (find_partial_die_in_comp_unit): Likewise.
3057         (free_line_header_voidp): Likewise.
3058         (follow_die_offset): Likewise.
3059         (follow_die_sig_1): Likewise.
3060         (free_heap_comp_unit): Likewise.
3061         (free_stack_comp_unit): Likewise.
3062         (dwarf2_free_objfile): Likewise.
3063         (per_cu_offset_and_type_hash): Likewise.
3064         (per_cu_offset_and_type_eq): Likewise.
3065         (get_die_type_at_offset): Likewise.
3066         (partial_die_hash): Likewise.
3067         (partial_die_eq): Likewise.
3068         (dwarf2_per_objfile_free): Likewise.
3069         (hash_strtab_entry): Likewise.
3070         (eq_strtab_entry): Likewise.
3071         (add_string): Likewise.
3072         (hash_symtab_entry): Likewise.
3073         (eq_symtab_entry): Likewise.
3074         (delete_symtab_entry): Likewise.
3075         (cleanup_mapped_symtab): Likewise.
3076         (add_indices_to_cpool): Likewise.
3077         (hash_psymtab_cu_index): Likewise.
3078         (eq_psymtab_cu_index): Likewise.
3079         (add_address_entry_worker): Likewise.
3080         (unlink_if_set): Likewise.
3081         (write_one_signatured_type): Likewise.
3082         (save_gdb_index_command): Likewise.
3083         * elfread.c (elf_symtab_read): Likewise.
3084         (elf_gnu_ifunc_cache_hash): Likewise.
3085         (elf_gnu_ifunc_cache_eq): Likewise.
3086         (elf_gnu_ifunc_record_cache): Likewise.
3087         (elf_gnu_ifunc_resolve_by_cache): Likewise.
3088         (elf_get_probes): Likewise.
3089         (probe_key_free): Likewise.
3090         * f-lang.c (builtin_f_type): Likewise.
3091         * frame-base.c (frame_base_append_sniffer): Likewise.
3092         (frame_base_set_default): Likewise.
3093         (frame_base_find_by_frame): Likewise.
3094         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
3095         (frame_unwind_append_unwinder): Likewise.
3096         (frame_unwind_find_by_frame): Likewise.
3097         * frame.c (frame_addr_hash): Likewise.
3098         (frame_addr_hash_eq): Likewise.
3099         (frame_stash_find): Likewise.
3100         (do_frame_register_read): Likewise.
3101         (unwind_to_current_frame): Likewise.
3102         (frame_cleanup_after_sniffer): Likewise.
3103         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
3104         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
3105         * ft32-tdep.c (ft32_frame_cache): Likewise.
3106         * gcore.c (do_bfd_delete_cleanup): Likewise.
3107         (gcore_create_callback): Likewise.
3108         * gdb_bfd.c (hash_bfd): Likewise.
3109         (eq_bfd): Likewise.
3110         (gdb_bfd_open): Likewise.
3111         (free_one_bfd_section): Likewise.
3112         (gdb_bfd_ref): Likewise.
3113         (gdb_bfd_unref): Likewise.
3114         (get_section_descriptor): Likewise.
3115         (gdb_bfd_map_section): Likewise.
3116         (gdb_bfd_crc): Likewise.
3117         (gdb_bfd_mark_parent): Likewise.
3118         (gdb_bfd_record_inclusion): Likewise.
3119         (gdb_bfd_requires_relocations): Likewise.
3120         (print_one_bfd): Likewise.
3121         * gdbtypes.c (type_pair_hash): Likewise.
3122         (type_pair_eq): Likewise.
3123         (builtin_type): Likewise.
3124         (objfile_type): Likewise.
3125         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
3126         (vtable_address_point_offset): Likewise.
3127         (gnuv3_get_vtable): Likewise.
3128         (hash_value_and_voffset): Likewise.
3129         (eq_value_and_voffset): Likewise.
3130         (compare_value_and_voffset): Likewise.
3131         (compute_vtable_size): Likewise.
3132         (gnuv3_get_typeid_type): Likewise.
3133         * go-lang.c (builtin_go_type): Likewise.
3134         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
3135         (bkscm_eq_block_smob): Likewise.
3136         (bkscm_objfile_block_map): Likewise.
3137         (bkscm_del_objfile_blocks): Likewise.
3138         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
3139         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
3140         (gdbscm_disasm_print_address): Likewise.
3141         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
3142         (frscm_eq_frame_smob): Likewise.
3143         (frscm_inferior_frame_map): Likewise.
3144         (frscm_del_inferior_frames): Likewise.
3145         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
3146         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
3147         (ofscm_objfile_smob_from_objfile): Likewise.
3148         * guile/scm-ports.c (ioscm_write): Likewise.
3149         (ioscm_file_port_delete): Likewise.
3150         (ioscm_file_port_rewind): Likewise.
3151         (ioscm_file_port_put): Likewise.
3152         (ioscm_file_port_write): Likewise.
3153         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
3154         (psscm_pspace_smob_from_pspace): Likewise.
3155         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
3156         (scscm_recording_unwind_handler): Likewise.
3157         (gdbscm_with_catch): Likewise.
3158         (scscm_call_0_body): Likewise.
3159         (scscm_call_1_body): Likewise.
3160         (scscm_call_2_body): Likewise.
3161         (scscm_call_3_body): Likewise.
3162         (scscm_call_4_body): Likewise.
3163         (scscm_apply_1_body): Likewise.
3164         (scscm_eval_scheme_string): Likewise.
3165         (gdbscm_safe_eval_string): Likewise.
3166         (scscm_source_scheme_script): Likewise.
3167         (gdbscm_safe_source_script): Likewise.
3168         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
3169         (gdbscm_call_scm_from_stringn): Likewise.
3170         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
3171         (syscm_eq_symbol_smob): Likewise.
3172         (syscm_get_symbol_map): Likewise.
3173         (syscm_del_objfile_symbols): Likewise.
3174         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
3175         (stscm_eq_symtab_smob): Likewise.
3176         (stscm_objfile_symtab_map): Likewise.
3177         (stscm_del_objfile_symtabs): Likewise.
3178         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
3179         (tyscm_eq_type_smob): Likewise.
3180         (tyscm_type_map): Likewise.
3181         (tyscm_copy_type_recursive): Likewise.
3182         (save_objfile_types): Likewise.
3183         * guile/scm-utils.c (extract_arg): Likewise.
3184         * h8300-tdep.c (h8300_frame_cache): Likewise.
3185         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
3186         * hppa-tdep.c (compare_unwind_entries): Likewise.
3187         (find_unwind_entry): Likewise.
3188         (hppa_frame_cache): Likewise.
3189         (hppa_stub_frame_unwind_cache): Likewise.
3190         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
3191         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
3192         (hppaobsd_supply_fpregset): Likewise.
3193         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
3194         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3195         * i386-tdep.c (i386_frame_cache): Likewise.
3196         (i386_epilogue_frame_cache): Likewise.
3197         (i386_sigtramp_frame_cache): Likewise.
3198         (i386_supply_gregset): Likewise.
3199         (i386_collect_gregset): Likewise.
3200         (i386_gdbarch_init): Likewise.
3201         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
3202         (i386obsd_trapframe_cache): Likewise.
3203         * i387-tdep.c (i387_supply_fsave): Likewise.
3204         (i387_collect_fsave): Likewise.
3205         (i387_supply_fxsave): Likewise.
3206         (i387_collect_fxsave): Likewise.
3207         (i387_supply_xsave): Likewise.
3208         (i387_collect_xsave): Likewise.
3209         * ia64-tdep.c (ia64_frame_cache): Likewise.
3210         (ia64_sigtramp_frame_cache): Likewise.
3211         * infcmd.c (attach_command_continuation): Likewise.
3212         (attach_command_continuation_free_args): Likewise.
3213         * inferior.c (restore_inferior): Likewise.
3214         (delete_thread_of_inferior): Likewise.
3215         * inflow.c (inflow_inferior_data_cleanup): Likewise.
3216         (get_inflow_inferior_data): Likewise.
3217         (inflow_inferior_exit): Likewise.
3218         * infrun.c (displaced_step_clear_cleanup): Likewise.
3219         (restore_current_uiout_cleanup): Likewise.
3220         (release_stop_context_cleanup): Likewise.
3221         (do_restore_infcall_suspend_state_cleanup): Likewise.
3222         (do_restore_infcall_control_state_cleanup): Likewise.
3223         (restore_inferior_ptid): Likewise.
3224         * inline-frame.c (block_starting_point_at): Likewise.
3225         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
3226         * jit.c (get_jit_objfile_data): Likewise.
3227         (get_jit_program_space_data): Likewise.
3228         (jit_object_close_impl): Likewise.
3229         (jit_find_objf_with_entry_addr): Likewise.
3230         (jit_breakpoint_deleted): Likewise.
3231         (jit_unwind_reg_set_impl): Likewise.
3232         (jit_unwind_reg_get_impl): Likewise.
3233         (jit_dealloc_cache): Likewise.
3234         (jit_frame_sniffer): Likewise.
3235         (jit_frame_prev_register): Likewise.
3236         (jit_prepend_unwinder): Likewise.
3237         (jit_inferior_exit_hook): Likewise.
3238         (free_objfile_data): Likewise.
3239         * jv-lang.c (jv_per_objfile_free): Likewise.
3240         (get_dynamics_objfile): Likewise.
3241         (get_java_class_symtab): Likewise.
3242         (builtin_java_type): Likewise.
3243         * language.c (language_string_char_type): Likewise.
3244         (language_bool_type): Likewise.
3245         (language_lookup_primitive_type): Likewise.
3246         (language_lookup_primitive_type_as_symbol): Likewise.
3247         * linespec.c (hash_address_entry): Likewise.
3248         (eq_address_entry): Likewise.
3249         (iterate_inline_only): Likewise.
3250         (iterate_name_matcher): Likewise.
3251         (decode_line_2_compare_items): Likewise.
3252         (collect_one_symbol): Likewise.
3253         (compare_symbols): Likewise.
3254         (compare_msymbols): Likewise.
3255         (add_symtabs_to_list): Likewise.
3256         (collect_symbols): Likewise.
3257         (compare_msyms): Likewise.
3258         (add_minsym): Likewise.
3259         (cleanup_linespec_result): Likewise.
3260         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
3261         * linux-nat.c (delete_lwp_cleanup): Likewise.
3262         (count_events_callback): Likewise.
3263         (select_event_lwp_callback): Likewise.
3264         (resume_stopped_resumed_lwps): Likewise.
3265         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
3266         (invalidate_linux_cache_inf): Likewise.
3267         (get_linux_inferior_data): Likewise.
3268         (linux_find_memory_regions_thunk): Likewise.
3269         (linux_make_mappings_callback): Likewise.
3270         (linux_corefile_thread_callback): Likewise.
3271         (find_mapping_size): Likewise.
3272         * linux-thread-db.c (find_new_threads_callback): Likewise.
3273         * lm32-tdep.c (lm32_frame_cache): Likewise.
3274         * m2-lang.c (builtin_m2_type): Likewise.
3275         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
3276         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
3277         (m32r_linux_supply_gregset): Likewise.
3278         (m32r_linux_collect_gregset): Likewise.
3279         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3280         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3281         * m68k-tdep.c (m68k_frame_cache): Likewise.
3282         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3283         (m68kbsd_supply_gregset): Likewise.
3284         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3285         * m88k-tdep.c (m88k_frame_cache): Likewise.
3286         (m88k_supply_gregset): Likewise.
3287
3288 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
3289
3290         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
3291         to allocation result assignment.
3292         * ada-exp.y (write_object_renaming): Likewise.
3293         (write_ambiguous_var): Likewise.
3294         (ada_nget_field_index): Likewise.
3295         (write_var_or_type): Likewise.
3296         * ada-lang.c (ada_decode_symbol): Likewise.
3297         (ada_value_assign): Likewise.
3298         (value_pointer): Likewise.
3299         (cache_symbol): Likewise.
3300         (add_nonlocal_symbols): Likewise.
3301         (ada_name_for_lookup): Likewise.
3302         (symbol_completion_add): Likewise.
3303         (ada_to_fixed_type_1): Likewise.
3304         (ada_get_next_arg): Likewise.
3305         (defns_collected): Likewise.
3306         * ada-lex.l (processId): Likewise.
3307         (processString): Likewise.
3308         * ada-tasks.c (read_known_tasks_array): Likewise.
3309         (read_known_tasks_list): Likewise.
3310         * ada-typeprint.c (decoded_type_name): Likewise.
3311         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
3312         * amd64-tdep.c (amd64_push_arguments): Likewise.
3313         (amd64_displaced_step_copy_insn): Likewise.
3314         (amd64_classify_insn_at): Likewise.
3315         (amd64_relocate_instruction): Likewise.
3316         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3317         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
3318         (initialize_current_architecture): Likewise.
3319         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3320         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
3321         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
3322         (arm_push_dummy_call): Likewise.
3323         (extend_buffer_earlier): Likewise.
3324         (arm_adjust_breakpoint_address): Likewise.
3325         (arm_skip_stub): Likewise.
3326         * auto-load.c (filename_is_in_pattern): Likewise.
3327         (maybe_add_script_file): Likewise.
3328         (maybe_add_script_text): Likewise.
3329         (auto_load_objfile_script_1): Likewise.
3330         * auxv.c (ld_so_xfer_auxv): Likewise.
3331         * ax-general.c (new_agent_expr): Likewise.
3332         (grow_expr): Likewise.
3333         (ax_reg_mask): Likewise.
3334         * bcache.c (bcache_full): Likewise.
3335         * breakpoint.c (program_breakpoint_here_p): Likewise.
3336         * btrace.c (parse_xml_raw): Likewise.
3337         * build-id.c (build_id_to_debug_bfd): Likewise.
3338         * buildsym.c (end_symtab_with_blockvector): Likewise.
3339         * c-exp.y (string_exp): Likewise.
3340         (qualified_name): Likewise.
3341         (write_destructor_name): Likewise.
3342         (operator_stoken): Likewise.
3343         (parse_number): Likewise.
3344         (scan_macro_expansion): Likewise.
3345         (yylex): Likewise.
3346         (c_print_token): Likewise.
3347         * c-lang.c (c_get_string): Likewise.
3348         (emit_numeric_character): Likewise.
3349         * charset.c (wchar_iterate): Likewise.
3350         * cli/cli-cmds.c (complete_command): Likewise.
3351         (make_command): Likewise.
3352         * cli/cli-dump.c (restore_section_callback): Likewise.
3353         (restore_binary_file): Likewise.
3354         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
3355         * cli/cli-script.c (execute_control_command): Likewise.
3356         * cli/cli-setshow.c (do_set_command): Likewise.
3357         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
3358         (read_pe_exported_syms): Likewise.
3359         * coffread.c (coff_read_struct_type): Likewise.
3360         (coff_read_enum_type): Likewise.
3361         * common/btrace-common.c (btrace_data_append): Likewise.
3362         * common/buffer.c (buffer_grow): Likewise.
3363         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
3364         * common/format.c (parse_format_string): Likewise.
3365         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
3366         * common/xml-utils.c (xml_escape_text): Likewise.
3367         * compile/compile-object-load.c (copy_sections): Likewise.
3368         (compile_object_load): Likewise.
3369         * compile/compile-object-run.c (compile_object_run): Likewise.
3370         * completer.c (filename_completer): Likewise.
3371         * corefile.c (read_memory_typed_address): Likewise.
3372         (write_memory_unsigned_integer): Likewise.
3373         (write_memory_signed_integer): Likewise.
3374         (complete_set_gnutarget): Likewise.
3375         * corelow.c (get_core_register_section): Likewise.
3376         * cp-name-parser.y (d_grab): Likewise.
3377         (allocate_info): Likewise.
3378         (cp_new_demangle_parse_info): Likewise.
3379         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
3380         (cp_lookup_symbol_in_namespace): Likewise.
3381         (lookup_namespace_scope): Likewise.
3382         (find_symbol_in_baseclass): Likewise.
3383         (cp_lookup_nested_symbol): Likewise.
3384         (cp_lookup_transparent_type_loop): Likewise.
3385         * cp-support.c (copy_string_to_obstack): Likewise.
3386         (make_symbol_overload_list): Likewise.
3387         (make_symbol_overload_list_namespace): Likewise.
3388         (make_symbol_overload_list_adl_namespace): Likewise.
3389         (first_component_command): Likewise.
3390         * cp-valprint.c (cp_print_value): Likewise.
3391         * ctf.c (ctf_xfer_partial): Likewise.
3392         * d-exp.y (StringExp): Likewise.
3393         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
3394         (lookup_module_scope): Likewise.
3395         (find_symbol_in_baseclass): Likewise.
3396         (d_lookup_nested_symbol): Likewise.
3397         * dbxread.c (find_stab_function_addr): Likewise.
3398         (read_dbx_symtab): Likewise.
3399         (dbx_end_psymtab): Likewise.
3400         (cp_set_block_scope): Likewise.
3401         * dcache.c (dcache_alloc): Likewise.
3402         * demangle.c (_initialize_demangler): Likewise.
3403         * dicos-tdep.c (dicos_load_module_p): Likewise.
3404         * dictionary.c (dict_create_hashed_expandable): Likewise.
3405         (dict_create_linear_expandable): Likewise.
3406         (expand_hashtable): Likewise.
3407         (add_symbol_linear_expandable): Likewise.
3408         * dwarf2-frame.c (add_cie): Likewise.
3409         (add_fde): Likewise.
3410         (dwarf2_build_frame_info): Likewise.
3411         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
3412         (dwarf_expr_fetch_address): Likewise.
3413         (add_piece): Likewise.
3414         (execute_stack_op): Likewise.
3415         * dwarf2loc.c (chain_candidate): Likewise.
3416         (dwarf_entry_parameter_to_value): Likewise.
3417         (read_pieced_value): Likewise.
3418         (write_pieced_value): Likewise.
3419         * dwarf2read.c (dwarf2_read_section): Likewise.
3420         (add_type_unit): Likewise.
3421         (read_comp_units_from_section): Likewise.
3422         (fixup_go_packaging): Likewise.
3423         (dwarf2_compute_name): Likewise.
3424         (dwarf2_physname): Likewise.
3425         (create_dwo_unit_in_dwp_v1): Likewise.
3426         (create_dwo_unit_in_dwp_v2): Likewise.
3427         (read_func_scope): Likewise.
3428         (read_call_site_scope): Likewise.
3429         (dwarf2_attach_fields_to_type): Likewise.
3430         (process_structure_scope): Likewise.
3431         (mark_common_block_symbol_computed): Likewise.
3432         (read_common_block): Likewise.
3433         (abbrev_table_read_table): Likewise.
3434         (guess_partial_die_structure_name): Likewise.
3435         (fixup_partial_die): Likewise.
3436         (add_file_name): Likewise.
3437         (dwarf2_const_value_data): Likewise.
3438         (dwarf2_const_value_attr): Likewise.
3439         (build_error_marker_type): Likewise.
3440         (guess_full_die_structure_name): Likewise.
3441         (anonymous_struct_prefix): Likewise.
3442         (typename_concat): Likewise.
3443         (dwarf2_canonicalize_name): Likewise.
3444         (dwarf2_name): Likewise.
3445         (write_constant_as_bytes): Likewise.
3446         (dwarf2_fetch_constant_bytes): Likewise.
3447         (copy_string): Likewise.
3448         (parse_macro_definition): Likewise.
3449         * elfread.c (elf_symfile_segments): Likewise.
3450         (elf_rel_plt_read): Likewise.
3451         (elf_gnu_ifunc_resolve_by_cache): Likewise.
3452         (elf_gnu_ifunc_resolve_by_got): Likewise.
3453         (elf_read_minimal_symbols): Likewise.
3454         (elf_gnu_ifunc_record_cache): Likewise.
3455         * event-top.c (top_level_prompt): Likewise.
3456         (command_line_handler): Likewise.
3457         * exec.c (resize_section_table): Likewise.
3458         * expprint.c (print_subexp_standard): Likewise.
3459         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3460         * findcmd.c (parse_find_args): Likewise.
3461         * findvar.c (address_from_register): Likewise.
3462         * frame.c (get_prev_frame_always): Likewise.
3463         * gdb_bfd.c (gdb_bfd_ref): Likewise.
3464         (get_section_descriptor): Likewise.
3465         * gdb_obstack.c (obconcat): Likewise.
3466         (obstack_strdup): Likewise.
3467         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
3468         (create_set_type): Likewise.
3469         (lookup_unsigned_typename): Likewise.
3470         (lookup_signed_typename): Likewise.
3471         (resolve_dynamic_union): Likewise.
3472         (resolve_dynamic_struct): Likewise.
3473         (add_dyn_prop): Likewise.
3474         (copy_dynamic_prop_list): Likewise.
3475         (arch_flags_type): Likewise.
3476         (append_composite_type_field_raw): Likewise.
3477         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
3478         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
3479         * go-exp.y (string_exp): Likewise.
3480         * go-lang.c (go_demangle): Likewise.
3481         * guile/guile.c (compute_scheme_string): Likewise.
3482         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3483         (gdbscm_canonicalize_command_name): Likewise.
3484         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
3485         (ioscm_init_memory_port): Likewise.
3486         (ioscm_reinit_memory_port): Likewise.
3487         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
3488         (gdbscm_gc_dup_argv): Likewise.
3489         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3490         * hppa-tdep.c (internalize_unwinds): Likewise.
3491         (read_unwind_info): Likewise.
3492         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
3493         (windows_core_xfer_shared_libraries): Likewise.
3494         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3495         (i386_stap_parse_special_token_triplet): Likewise.
3496         (i386_stap_parse_special_token_three_arg_disp): Likewise.
3497         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3498         * inf-child.c (inf_child_fileio_readlink): Likewise.
3499         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3500         (inf_ptrace_store_register): Likewise.
3501         * infrun.c (follow_exec): Likewise.
3502         (displaced_step_prepare_throw): Likewise.
3503         (save_stop_context): Likewise.
3504         (save_infcall_suspend_state): Likewise.
3505         * jit.c (jit_read_descriptor): Likewise.
3506         (jit_read_code_entry): Likewise.
3507         (jit_symtab_line_mapping_add_impl): Likewise.
3508         (finalize_symtab): Likewise.
3509         (jit_unwind_reg_get_impl): Likewise.
3510         * jv-exp.y (QualifiedName): Likewise.
3511         * jv-lang.c (get_java_utf8_name): Likewise.
3512         (type_from_class): Likewise.
3513         (java_demangle_type_signature): Likewise.
3514         (java_class_name_from_physname): Likewise.
3515         * jv-typeprint.c (java_type_print_base): Likewise.
3516         * jv-valprint.c (java_value_print): Likewise.
3517         * language.c (add_language): Likewise.
3518         * linespec.c (add_sal_to_sals_basic): Likewise.
3519         (add_sal_to_sals): Likewise.
3520         (decode_objc): Likewise.
3521         (find_linespec_symbols): Likewise.
3522         * linux-fork.c (fork_save_infrun_state): Likewise.
3523         * linux-nat.c (linux_nat_detach): Likewise.
3524         (linux_nat_fileio_readlink): Likewise.
3525         * linux-record.c (record_linux_sockaddr): Likewise.
3526         (record_linux_msghdr): Likewise.
3527         (Do): Likewise.
3528         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
3529         (linux_collect_regset_section_cb): Likewise.
3530         (linux_get_siginfo_data): Likewise.
3531         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
3532         (try_thread_db_load_from_dir): Likewise.
3533         (thread_db_load_search): Likewise.
3534         (info_auto_load_libthread_db): Likewise.
3535         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
3536         (m32c_m16c_pointer_to_address): Likewise.
3537         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
3538         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3539         * machoread.c (macho_check_dsym): Likewise.
3540         * macroexp.c (resize_buffer): Likewise.
3541         (gather_arguments): Likewise.
3542         (maybe_expand): Likewise.
3543         * macrotab.c (new_macro_key): Likewise.
3544         (new_source_file): Likewise.
3545         (new_macro_definition): Likewise.
3546         * mdebugread.c (parse_symbol): Likewise.
3547         (parse_type): Likewise.
3548         (parse_partial_symbols): Likewise.
3549         (psymtab_to_symtab_1): Likewise.
3550         * mem-break.c (default_memory_insert_breakpoint): Likewise.
3551         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
3552         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
3553         (mi_cmd_data_read_memory_bytes): Likewise.
3554         (mi_cmd_data_write_memory_bytes): Likewise.
3555         (mi_cmd_trace_frame_collected): Likewise.
3556         * mi/mi-parse.c (mi_parse_argv): Likewise.
3557         (mi_parse): Likewise.
3558         * minidebug.c (lzma_open): Likewise.
3559         (lzma_pread): Likewise.
3560         * mips-tdep.c (mips_read_fp_register_single): Likewise.
3561         (mips_print_fp_register): Likewise.
3562         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3563         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3564         * mt-tdep.c (mt_register_name): Likewise.
3565         (mt_registers_info): Likewise.
3566         (mt_push_dummy_call): Likewise.
3567         * namespace.c (add_using_directive): Likewise.
3568         * nat/linux-btrace.c (perf_event_read): Likewise.
3569         (linux_enable_bts): Likewise.
3570         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
3571         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
3572         * nto-tdep.c (nto_find_and_open_solib): Likewise.
3573         (nto_parse_redirection): Likewise.
3574         * objc-lang.c (objc_demangle): Likewise.
3575         (find_methods): Likewise.
3576         * objfiles.c (get_objfile_bfd_data): Likewise.
3577         (set_objfile_main_name): Likewise.
3578         (allocate_objfile): Likewise.
3579         (objfile_relocate): Likewise.
3580         (update_section_map): Likewise.
3581         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
3582         * p-exp.y (exp): Likewise.
3583         (yylex): Likewise.
3584         * p-valprint.c (pascal_object_print_value): Likewise.
3585         * parse.c (initialize_expout): Likewise.
3586         (mark_completion_tag): Likewise.
3587         (copy_name): Likewise.
3588         (parse_float): Likewise.
3589         (type_stack_reserve): Likewise.
3590         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3591         (ppu2spu_prev_register): Likewise.
3592         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
3593         * printcmd.c (printf_wide_c_string): Likewise.
3594         (printf_pointer): Likewise.
3595         * probe.c (parse_probes): Likewise.
3596         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3597         (cmdpy_init): Likewise.
3598         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
3599         * python/py-symtab.c (set_sal): Likewise.
3600         * python/py-unwind.c (pyuw_sniffer): Likewise.
3601         * python/python.c (python_interactive_command): Likewise.
3602         (compute_python_string): Likewise.
3603         * ravenscar-thread.c (get_running_thread_id): Likewise.
3604         * record-full.c (record_full_exec_insn): Likewise.
3605         (record_full_core_open_1): Likewise.
3606         * regcache.c (regcache_raw_read_signed): Likewise.
3607         (regcache_raw_read_unsigned): Likewise.
3608         (regcache_cooked_read_signed): Likewise.
3609         (regcache_cooked_read_unsigned): Likewise.
3610         * remote-fileio.c (remote_fileio_func_open): Likewise.
3611         (remote_fileio_func_rename): Likewise.
3612         (remote_fileio_func_unlink): Likewise.
3613         (remote_fileio_func_stat): Likewise.
3614         (remote_fileio_func_system): Likewise.
3615         * remote-mips.c (mips_xfer_memory): Likewise.
3616         (mips_load_srec): Likewise.
3617         (pmon_end_download): Likewise.
3618         * remote.c (new_remote_state): Likewise.
3619         (map_regcache_remote_table): Likewise.
3620         (remote_register_number_and_offset): Likewise.
3621         (init_remote_state): Likewise.
3622         (get_memory_packet_size): Likewise.
3623         (remote_pass_signals): Likewise.
3624         (remote_program_signals): Likewise.
3625         (remote_start_remote): Likewise.
3626         (remote_check_symbols): Likewise.
3627         (remote_query_supported): Likewise.
3628         (extended_remote_attach): Likewise.
3629         (process_g_packet): Likewise.
3630         (store_registers_using_G): Likewise.
3631         (putpkt_binary): Likewise.
3632         (read_frame): Likewise.
3633         (compare_sections_command): Likewise.
3634         (remote_hostio_pread): Likewise.
3635         (remote_hostio_readlink): Likewise.
3636         (remote_file_put): Likewise.
3637         (remote_file_get): Likewise.
3638         (remote_pid_to_exec_file): Likewise.
3639         (_initialize_remote): Likewise.
3640         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3641         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3642         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3643         (bfd_uses_spe_extensions): Likewise.
3644         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
3645         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
3646         * solib-dsbt.c (decode_loadmap): Likewise.
3647         (fetch_loadmap): Likewise.
3648         (scan_dyntag): Likewise.
3649         (enable_break): Likewise.
3650         (dsbt_relocate_main_executable): Likewise.
3651         * solib-frv.c (fetch_loadmap): Likewise.
3652         (enable_break2): Likewise.
3653         (frv_relocate_main_executable): Likewise.
3654         * solib-spu.c (spu_relocate_main_executable): Likewise.
3655         (spu_bfd_open): Likewise.
3656         * solib-svr4.c (lm_info_read): Likewise.
3657         (read_program_header): Likewise.
3658         (find_program_interpreter): Likewise.
3659         (scan_dyntag): Likewise.
3660         (elf_locate_base): Likewise.
3661         (open_symbol_file_object): Likewise.
3662         (read_program_headers_from_bfd): Likewise.
3663         (svr4_relocate_main_executable): Likewise.
3664         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
3665         * solib.c (solib_find_1): Likewise.
3666         (exec_file_find): Likewise.
3667         (solib_find): Likewise.
3668         * source.c (openp): Likewise.
3669         (print_source_lines_base): Likewise.
3670         (forward_search_command): Likewise.
3671         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
3672         * spu-tdep.c (spu2ppu_prev_register): Likewise.
3673         (spu_get_overlay_table): Likewise.
3674         * stabsread.c (patch_block_stabs): Likewise.
3675         (define_symbol): Likewise.
3676         (again:): Likewise.
3677         (read_member_functions): Likewise.
3678         (read_one_struct_field): Likewise.
3679         (read_enum_type): Likewise.
3680         (common_block_start): Likewise.
3681         * stack.c (read_frame_arg): Likewise.
3682         (backtrace_command): Likewise.
3683         * stap-probe.c (stap_parse_register_operand): Likewise.
3684         * symfile.c (syms_from_objfile_1): Likewise.
3685         (find_separate_debug_file): Likewise.
3686         (load_command): Likewise.
3687         (load_progress): Likewise.
3688         (load_section_callback): Likewise.
3689         (reread_symbols): Likewise.
3690         (add_filename_language): Likewise.
3691         (allocate_compunit_symtab): Likewise.
3692         (read_target_long_array): Likewise.
3693         (simple_read_overlay_table): Likewise.
3694         * symtab.c (symbol_set_names): Likewise.
3695         (resize_symbol_cache): Likewise.
3696         (rbreak_command): Likewise.
3697         (completion_list_add_name): Likewise.
3698         (completion_list_objc_symbol): Likewise.
3699         (add_filename_to_list): Likewise.
3700         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
3701         * target-memory.c (target_write_memory_blocks): Likewise.
3702         * target.c (target_read_string): Likewise.
3703         (read_whatever_is_readable): Likewise.
3704         (target_read_alloc_1): Likewise.
3705         (simple_search_memory): Likewise.
3706         (target_fileio_read_alloc_1): Likewise.
3707         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3708         * top.c (command_line_input): Likewise.
3709         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3710         * tracefile.c (tracefile_fetch_registers): Likewise.
3711         * tracepoint.c (add_memrange): Likewise.
3712         (init_collection_list): Likewise.
3713         (add_aexpr): Likewise.
3714         (trace_dump_actions): Likewise.
3715         (parse_trace_status): Likewise.
3716         (parse_tracepoint_definition): Likewise.
3717         (parse_tsv_definition): Likewise.
3718         (parse_static_tracepoint_marker_definition): Likewise.
3719         * tui/tui-file.c (tui_sfileopen): Likewise.
3720         (tui_file_adjust_strbuf): Likewise.
3721         * tui/tui-io.c (tui_expand_tabs): Likewise.
3722         * tui/tui-source.c (tui_set_source_content): Likewise.
3723         * typeprint.c (find_global_typedef): Likewise.
3724         * ui-file.c (do_ui_file_xstrdup): Likewise.
3725         (ui_file_obsavestring): Likewise.
3726         (mem_file_write): Likewise.
3727         * utils.c (make_hex_string): Likewise.
3728         (get_regcomp_error): Likewise.
3729         (puts_filtered_tabular): Likewise.
3730         (gdb_realpath_keepfile): Likewise.
3731         (ldirname): Likewise.
3732         (gdb_bfd_errmsg): Likewise.
3733         (substitute_path_component): Likewise.
3734         * valops.c (search_struct_method): Likewise.
3735         (find_oload_champ_namespace_loop): Likewise.
3736         * valprint.c (print_decimal_chars): Likewise.
3737         (read_string): Likewise.
3738         (generic_emit_char): Likewise.
3739         * varobj.c (varobj_delete): Likewise.
3740         (varobj_value_get_print_value): Likewise.
3741         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
3742         * windows-tdep.c (display_one_tib): Likewise.
3743         * xcoffread.c (read_xcoff_symtab): Likewise.
3744         (process_xcoff_symbol): Likewise.
3745         (swap_sym): Likewise.
3746         (scan_xcoff_symtab): Likewise.
3747         (xcoff_initial_scan): Likewise.
3748         * xml-support.c (gdb_xml_end_element): Likewise.
3749         (xml_process_xincludes): Likewise.
3750         (xml_fetch_content_from_file): Likewise.
3751         * xml-syscall.c (xml_list_of_syscalls): Likewise.
3752         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3753
3754 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
3755
3756         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
3757         instead of builtin_func_ptr.
3758         (ft32_pointer_to_address): New function.
3759         (ft32_address_class_type_flags): New function.
3760         (ft32_address_class_type_flags_to_name): New function.
3761         (ft32_address_class_name_to_type_flags): New function.
3762         (ft32_gdbarch_init): Set tdep->pc_type.  Call
3763         set_gdbarch_pointer_to_address,
3764         set_gdbarch_address_class_type_flags
3765         set_gdbarch_address_class_name_to_type_flags,
3766         and set_gdbarch_address_class_type_flags_to_name.
3767         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
3768
3769 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
3770
3771         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
3772         value is a reference, actually dereference it in order to get
3773         the underlying value.
3774
3775 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
3776
3777         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
3778
3779 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
3780
3781         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
3782         * linespec.c (linespec_lexer_lex_string): Same.
3783
3784 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
3785
3786         * NEWS: Mention support for fast tracepoints on aarch64-linux.
3787
3788 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
3789
3790         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
3791         variable.  Call aarch64_decode_adr instead of
3792         aarch64_decode_adrp.
3793         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
3794         (aarch64_decode_adr): New function declaration.
3795         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
3796         (aarch64_decode_adr): New function, factored out from
3797         aarch64_decode_adrp to decode both adr and adrp instructions.
3798
3799 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
3800
3801         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
3802         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
3803         (aarch64-insn.o): New rule.
3804         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
3805         (aarch64*-*-linux*): Likewise.
3806         * arch/aarch64-insn.c: New file.
3807         * arch/aarch64-insn.h: New file.
3808         * aarch64-tdep.c: Include arch/aarch64-insn.h.
3809         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
3810         arch/aarch64-insn.h.
3811         (decode_add_sub_imm): Rename to ...
3812         (aarch64_decode_add_sub_imm): ... this.
3813         (decode_adrp): Rename to ...
3814         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
3815         Declare in arch/aarch64-insn.h.
3816         (decode_b): Rename to ...
3817         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
3818         Declare in arch/aarch64-insn.h.
3819         (decode_bcond): Rename to ...
3820         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
3821         Declare in arch/aarch64-insn.h.
3822         (decode_br): Rename to ...
3823         (aarch64_decode_br): ... this.
3824         (decode_cb): Rename to ...
3825         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
3826         Declare in arch/aarch64-insn.h.
3827         (decode_eret): Rename to ...
3828         (aarch64_decode_eret): ... this.
3829         (decode_movz): Rename to ...
3830         (aarch64_decode_movz): ... this.
3831         (decode_orr_shifted_register_x): Rename to ...
3832         (aarch64_decode_orr_shifted_register_x): ... this.
3833         (decode_ret): Rename to ...
3834         (aarch64_decode_ret): ... this.
3835         (decode_stp_offset): Rename to ...
3836         (aarch64_decode_stp_offset): ... this.
3837         (decode_stp_offset_wb): Rename to ...
3838         (aarch64_decode_stp_offset_wb): ... this.
3839         (decode_stur): Rename to ...
3840         (aarch64_decode_stur): ... this.
3841         (decode_tb): Rename to ...
3842         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
3843         Declare in arch/aarch64-insn.h.
3844         (aarch64_analyze_prologue): Adjust calls to renamed functions.
3845
3846 2015-09-20  Doug Evans  <xdje42@gmail.com>
3847
3848         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
3849
3850 2015-09-20  Doug Evans  <xdje42@gmail.com>
3851
3852         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
3853         variable name that collides with a parameter.
3854
3855 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
3856
3857         * dwarf2loc.c (locexpr_get_frame_base): Renames
3858         block_op_get_frame_base.
3859         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
3860         block_op_get_frame_base by reference to locexpr_get_frame_base.
3861         (loclist_get_frame_base): New function, near identical copy of
3862         locexpr_get_frame_base.
3863         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
3864         block_op_get_frame_base by reference to loclist_get_frame_base.
3865
3866 2015-09-19  Doug Evans  <xdje42@gmail.com>
3867
3868         * ravenscar-thread.c (ravenscar_inferior_created): Replace
3869         current_inferior ()->gdbarch with its wrapper target_gdbarch.
3870
3871 2015-09-18  Doug Evans  <xdje42@gmail.com>
3872
3873         * linux-thread-db.c (record_thread): Return the created thread.
3874         (thread_from_lwp): Likewise.
3875         (thread_db_get_thread_local_address): Update.
3876
3877 2015-09-18  Doug Evans  <xdje42@gmail.com>
3878
3879         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
3880         move only member demangled_name up.  All uses updated.
3881
3882 2015-09-18  Doug Evans  <xdje42@gmail.com>
3883
3884         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
3885         kind of minimal symbol in the error message.
3886         * objfiles.c (objfile_flavour_name): New function.
3887         * objfiles.h (objfile_flavour_name): Declare.
3888
3889 2015-09-18  Yao Qi  <yao.qi@linaro.org>
3890
3891         * nat/aarch64-linux.c: Include elf/common.h,
3892         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
3893         (aarch64_ps_get_thread_area): New function.
3894         * nat/aarch64-linux.h: Include gdb_proc_service.h.
3895         (aarch64_ps_get_thread_area): Declare.
3896         * aarch64-linux-nat.c (ps_get_thread_area): Call
3897         aarch64_ps_get_thread_area.
3898
3899 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3900
3901         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
3902
3903 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3904
3905         * NEWS: Announce new scheduler-locking mode.
3906         * infrun.c (schedlock_replay): New.
3907         (scheduler_enums): Add schedlock_replay.
3908         (scheduler_mode): Change default to schedlock_replay.
3909         (user_visible_resume_ptid): Handle schedlock_replay.
3910         (clear_proceed_status_thread): Stop replaying if resumed thread is
3911         not replaying.
3912         (schedlock_applies): Handle schedlock_replay.
3913         (_initialize_infrun): Document new scheduler-locking mode.
3914         * record-btrace.c (record_btrace_resume): Remove code to stop other
3915         threads when not replaying the resumed thread.
3916
3917 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3918
3919         * record-btrace.c ((record_btrace_will_replay): New.
3920         (init_record_btrace_ops): Initialize to_record_will_replay.
3921         * record-full.c ((record_full_will_replay): New.
3922         (init_record_full_ops): Initialize to_record_will_replay.
3923         * target-delegates.c: Regenerated.
3924         * target.c (target_record_will_replay): New.
3925         * target.h (struct target_ops) <to_record_will_replay>: New.
3926         (target_record_will_replay): New.
3927
3928 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3929
3930         * record-btrace.c (record_btrace_resume): Call
3931         target_record_stop_replaying.
3932         (record_btrace_stop_replaying_all): New.
3933         (init_record_btrace_ops): Initialize to_record_stop_replaying.
3934         * record-full.c (record_full_stop_replaying): New.
3935         (init_record_full_ops ): Initialize to_record_stop_replaying.
3936         * target-delegates.c: Regenerated.
3937         * target.c (target_record_stop_replaying): New.
3938         * target.h (struct target_ops) <to_record_stop_replaying>: New.
3939         (target_record_stop_replaying): New.
3940
3941 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3942
3943         * record-btrace.c (record_btrace_xfer_partial)
3944         (record_btrace_store_registers, record_btrace_prepare_to_store):
3945         Call record_btrace_is_replaying with inferior_ptid instead of
3946         minus_one_ptid.
3947         (record_btrace_store_registers): Change error message.
3948
3949 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3950
3951         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
3952         Update users to pass minus_one_ptid.
3953         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
3954         * record.c (cmd_record_delete): Pass inferior_ptid to
3955         target_record_is_replaying.
3956         * target-delegates.c: Regenerated.
3957         * target.c (target_record_is_replaying): Add ptid argument.
3958         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
3959         argument.
3960         (target_record_is_replaying): Add ptid argument.
3961
3962 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3963
3964         * record-btrace.c (record_btrace_open): Remove non_stop check.
3965         * NEWS: Announce that record btrace supports non-stop mode.
3966
3967 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3968
3969         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
3970         in the TARKET_WAITKIND_NO_HISTORY case.
3971
3972 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3973
3974         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
3975         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
3976
3977 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3978
3979         * record-btrace.c (get_thread_current_frame): New.
3980         (record_btrace_start_replaying): Call get_thread_current_frame.
3981
3982 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3983
3984         * record-btrace.c (record_btrace_resume_thread): A move request
3985         overwrites a previous move request.
3986         (record_btrace_find_resume_thread): Removed.
3987         (record_btrace_resume): Resume all requested threads.
3988
3989 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3990
3991         * record-btrace.c: Include vec.h.
3992         (record_btrace_find_thread_to_move): Removed.
3993         (btrace_step_no_resumed, btrace_step_again)
3994         (record_btrace_stop_replaying_at_end): New.
3995         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
3996         (record_btrace_single_step_forward): Remove calls to
3997         record_btrace_stop_replaying.
3998         (record_btrace_step_thread): Do only one step for BTHR_CONT and
3999         BTHR_RCONT.  Keep threads at the end of their history moving.
4000         (record_btrace_wait): Call record_btrace_step_thread for all threads
4001         until one reports an event.  Call record_btrace_stop_replaying_at_end
4002         for the eventing thread.
4003
4004 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4005
4006         * record-btrace.c (record_btrace_single_step_forward): Return
4007         NO_HISTORY if a step brings us to the end of the execution history.
4008
4009 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4010
4011         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
4012         to ...
4013         (record_btrace_single_step_forward): ... here and
4014         (record_btrace_single_step_backward): ... here.
4015
4016 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4017
4018         * record-btrace.c (btrace_step_spurious)
4019         (record_btrace_single_step_forward)
4020         (record_btrace_single_step_backward): New.
4021         (record_btrace_step_thread): Call record_btrace_single_step_forward
4022         and record_btrace_single_step_backward.
4023
4024 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4025
4026         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
4027         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
4028
4029 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4030
4031         * record-btrace.c (btrace_thread_flag_to_str)
4032         (record_btrace_cancel_resume): New.
4033         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
4034         (record_btrace_resume): Print execution direction.
4035         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
4036         (record_btrace_wait): Call record_btrace_cancel_resume.
4037
4038 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4039
4040         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
4041         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
4042         (record_btrace_find_thread_to_move): Also accept threads that have
4043         BTHR_STOP set.
4044         (btrace_step_stopped_on_request, record_btrace_stop): New.
4045         (record_btrace_step_thread): Support BTHR_STOP.
4046         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
4047         (init_record_btrace_ops): Initialize to_stop.
4048
4049 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4050
4051         * record-btrace.c (record_btrace_wait): Replace non_stop check with
4052         target_is_non_stop_p ().
4053
4054 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
4055
4056         * ada-typeprint.c (print_array_type): Do not describe arrays as
4057         packed when they embed dynamic elements.
4058
4059 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4060
4061         * symtab.h (address_class): Document that TLS variables
4062         are handled by LOC_UNRESOLVED.
4063         * findvar.c (default_read_var_value): Don't relocate TLS variables.
4064         * printcmd.c (address_info): Don't relocate TLS variables.
4065
4066 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
4067
4068         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
4069         (decode_adrp): Likewise.
4070         (decode_b): Likewise.
4071         (decode_bcond): Likewise.
4072         (decode_br): Likewise.
4073         (decode_cb): Likewise.
4074         (decode_eret): Likewise.
4075         (decode_movz): Likewise.
4076         (decode_orr_shifted_register_x): Likewise.
4077         (decode_ret): Likewise.
4078         (decode_stp_offset): Likewise.
4079         (decode_stp_offset_wb): Likewise.
4080         (decode_stur): Likewise.
4081         (decode_tb): Likewise.
4082         (aarch64_analyze_prologue): Likewise.
4083         (pass_in_x): Likewise.
4084         (pass_in_v): Likewise.
4085         (pass_on_stack): Likewise.
4086         (aarch64_push_dummy_call): Likewise.
4087         (aarch64_extract_return_value): Likewise.
4088         (aarch64_store_return_value): Likewise.
4089         (aarch64_return_value): Likewise.
4090         (aarch64_record_asimd_load_store): Likewise.
4091         (aarch64_record_load_store): Likewise.
4092         (aarch64_record_data_proc_simd_fp): Likewise.
4093
4094 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4095
4096         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
4097         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
4098         (ppc64_skip_trampoline_code_1): ... here.
4099         (ppc64_skip_trampoline_code): New wrapper function.
4100         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
4101
4102 2015-09-15  Yao Qi  <yao.qi@linaro.org>
4103
4104         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
4105         function.
4106         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
4107         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
4108         if target_can_do_single_step returns 1.
4109         * remote.c (struct vCont_action_support) <s, S>: New fields.
4110         (PACKET_vContSupported): New enum.
4111         (remote_protocol_features): New element for vContSupported.
4112         (remote_query_supported): Append "vContSupported+".
4113         (remote_vcont_probe): Remove support_s and support_S, use
4114         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
4115         vCont packet if c and C actions are not supported.
4116         (remote_can_do_single_step): New function.
4117         (init_remote_ops): Install it to to_can_do_single_step.
4118         (_initialize_remote): Call add_packet_config_cmd.
4119         * target.h (struct target_ops) <to_can_do_single_step>: New field.
4120         (target_can_do_single_step): New macro.
4121         * target-delegates.c: Re-generated.
4122
4123 2015-09-15  Yao Qi  <yao.qi@linaro.org>
4124
4125         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
4126         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
4127         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
4128         New function.
4129         (aarch64_siginfo_from_compat_siginfo): New function.
4130         * nat/aarch64-linux.h: Include signal.h.
4131         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
4132         (compat_timer_t, compat_clock_t): Likewise.
4133         (struct compat_timeval): New.
4134         (union compat_sigval): New.
4135         (struct compat_siginfo): New.
4136         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
4137         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
4138         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
4139         (cpt_si_band, cpt_si_fd): Likewise.
4140
4141 2015-09-14  Pedro Alves  <palves@redhat.com>
4142
4143         * infrun.c (current_stop_id): New global.
4144         (get_stop_id, new_stop_id): New functions.
4145         (fetch_inferior_event): Handle normal_stop proceeding the target.
4146         (struct stop_context): New.
4147         (save_stop_context, release_stop_context_cleanup)
4148         (stop_context_changed): New functions.
4149         (normal_stop): Return true if the hook-stop changes the stop
4150         context.
4151         * infrun.h (get_stop_id): Declare.
4152         (normal_stop): Now returns int.  Add documentation.
4153
4154 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
4155
4156         * ada-lang.c (ada_value_ptr_subscript): Update the heading
4157         comment.  Handle packed arrays.
4158
4159 2015-09-14  Pedro Alves  <palves@redhat.com>
4160
4161         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
4162         mention of maint set/show target-non-stop.
4163
4164 2015-09-11  Don Breazeal  <donb@codesourcery.com>
4165
4166         * NEWS: Announce new remote packets for the exec-events
4167         feature and the exec-events feature and associated commands.
4168
4169 2015-09-11  Don Breazeal  <donb@codesourcery.com>
4170
4171         * remote.c (remote_exec_event_p): New function.
4172         (remote_insert_exec_catchpoint): New function.
4173         (remote_remove_exec_catchpoint): New function.
4174         (init_extended_remote_ops): Initialize extended_remote_ops
4175         members to_insert_exec_catchpoint and
4176         to_remove_exec_catchpoint.
4177
4178 2015-09-11  Don Breazeal  <donb@codesourcery.com>
4179             Luis Machado  <lgustavo@codesourcery.com>
4180
4181         * infrun.c (follow_exec): Use process-style ptid for
4182         exec message.  Call add_inferior_with_spaces and
4183         target_follow_exec.
4184         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
4185         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
4186         * remote.c (remote_pspace_data): New static variable.
4187         (remote_pspace_data_cleanup): New function.
4188         (get_remote_exec_file): New function.
4189         (set_remote_exec_file_1): New function.
4190         (set_remote_exec_file): New function.
4191         (show_remote_exec_file): New function.
4192         (remote_exec_file): Delete static variable.
4193         (anonymous enum) <PACKET_exec_event_feature>: New
4194         enumeration constant.
4195         (remote_protocol_features): Add entry for exec-events feature.
4196         (remote_query_supported): Add client side of qSupported query
4197         for exec-events feature.
4198         (remote_follow_exec): New function.
4199         (remote_parse_stop_reply): Handle 'exec' stop reason.
4200         (extended_remote_run, extended_remote_create_inferior): Call
4201         get_remote_exec_file and set_remote_exec_file_1.
4202         (init_extended_remote_ops) <to_follow_exec>: Initialize new
4203         member.
4204         (_initialize_remote): Call
4205         register_program_space_data_with_cleanup.  Call
4206         add_packet_config_cmd for remote exec-events feature.
4207         Modify call to add_setshow_string_noescape_cmd for exec-file
4208         to use new functions set_remote_exec_file and
4209         show_remote_exec_file.
4210         * target-debug.h, target-delegates.c: Regenerated.
4211         * target.c (target_follow_exec): New function.
4212         * target.h (struct target_ops) <to_follow_exec>: New member.
4213         (target_follow_exec): Declare new function.
4214
4215 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
4216
4217         * aarch64-tdep.c (decode_cb): Move up comment describing the
4218         encoding.
4219         (decode_tb): Fix a typo in comment above the function.  Move up
4220         comment describing the encoding.
4221
4222 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
4223
4224         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
4225
4226 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
4227
4228         PR gdb/18947
4229         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
4230         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
4231
4232 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
4233
4234         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
4235         operations.
4236
4237 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
4238
4239         * ada-lang.c (ada_search_struct_field): Constify parameters
4240         and/or variables..
4241         (xget_renaming_scope): Likewise.
4242         (ada_is_redundant_range_encoding): Likewise.
4243         (scan_discrim_bound): Likewise.
4244         (to_fixed_range_type): Likewise.
4245
4246 2015-09-10  Yao Qi  <yao.qi@linaro.org>
4247
4248         * breakpoint.c (download_tracepoint_locations): New local
4249         can_download_tracepoint.  Check the result of
4250         target_can_download_tracepoint and save it in
4251         can_download_tracepoint if there are tracepoints to download.
4252         * linux-nat.h (enum tribool): Move it to ...
4253         * common/common-types.h: ... here.
4254
4255 2015-09-09  Pedro Alves  <palves@redhat.com>
4256
4257         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
4258         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
4259
4260 2015-09-09  Pedro Alves  <palves@redhat.com>
4261
4262         * continuations.c (add_continuation, restore_thread_cleanup)
4263         (do_all_continuations_ptid, do_all_continuations_thread_callback)
4264         (do_all_continuations_thread, do_all_continuations)
4265         (discard_all_continuations_thread_callback)
4266         (discard_all_continuations_thread, discard_all_continuations)
4267         (add_intermediate_continuation)
4268         (do_all_intermediate_continuations_thread_callback)
4269         (do_all_intermediate_continuations_thread)
4270         (do_all_intermediate_continuations)
4271         (discard_all_intermediate_continuations_thread_callback)
4272         (discard_all_intermediate_continuations_thread)
4273         (discard_all_intermediate_continuations): Delete.
4274         * continuations.h (add_continuation, do_all_continuations)
4275         (do_all_continuations_thread, discard_all_continuations)
4276         (discard_all_continuations_thread, add_intermediate_continuation)
4277         (do_all_intermediate_continuations)
4278         (do_all_intermediate_continuations_thread)
4279         (discard_all_intermediate_continuations)
4280         (discard_all_intermediate_continuations_thread): Delete
4281         declarations.
4282         * event-top.c (stdin_event_handler): Delete references to
4283         continuations.
4284         * gdbthread.h (struct thread_info): Delete continuations and
4285         intermediate_continuations fields.
4286         * inf-loop.c (inferior_event_handler): Remove references to
4287         continuations.
4288         * infrun.c (infrun_thread_stop_requested_callback): Remove
4289         references to continuations.
4290         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
4291         * thread.c: Don't include "continuations.h".
4292         (clear_thread_inferior_resources): Remove references to
4293         continuations.
4294
4295 2015-09-09  Pedro Alves  <palves@redhat.com>
4296
4297         * infcall.c (struct dummy_frame_context_saver): Delete.
4298         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
4299         (dummy_frame_context_saver_drop)
4300         (dummy_frame_context_saver_cleanup)
4301         (dummy_frame_context_saver_get_regs)
4302         (dummy_frame_context_saver_setup): Delete.
4303         * infcall.h (dummy_frame_context_saver_drop)
4304         (dummy_frame_context_saver_cleanup)
4305         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
4306         Delete.
4307         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
4308         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
4309         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
4310
4311 2015-09-09  Pedro Alves  <palves@redhat.com>
4312
4313         * breakpoint.c: Include "thread-fsm.h".
4314         (struct until_break_command_continuation_args): Delete.
4315         (struct until_break_fsm): New.
4316         (until_break_fsm_ops): New global.
4317         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
4318         (until_break_command_continuation): Delete.
4319         (until_break_fsm_clean_up): New function.
4320         (until_break_fsm_async_reply_reason): New function.
4321         (until_break_command): Adjust to create an until_break_fsm instead
4322         of a continuation.
4323         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
4324         here.
4325         * infcmd.c (struct until_next_fsm): New.
4326         (until_next_fsm_ops): New global.
4327         (new_until_next_fsm, until_next_fsm_should_stop): New function.
4328         (until_next_continuation): Delete.
4329         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
4330         functions.
4331         (until_next_command): Adjust to create a new until_next_fsm
4332         instead of a continuation.
4333
4334 2015-09-09  Pedro Alves  <palves@redhat.com>
4335
4336         * infcall.c: Include thread_fsm.h.
4337         (struct call_return_meta_info): New.
4338         (get_call_return_value): New function, factored out from
4339         call_function_by_hand_dummy.
4340         (struct call_thread_fsm): New.
4341         (call_thread_fsm_ops): New global.
4342         (new_call_thread_fsm, call_thread_fsm_should_stop)
4343         (call_thread_fsm_should_notify_stop): New functions.
4344         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
4345         the thread.
4346         (call_function_by_hand_dummy): Create a new call_thread_fsm
4347         instance, associate it with the thread, and wait for the FSM to
4348         finish.  If finished successfully, fetch the function's result
4349         value out of the FSM.
4350         * infrun.c (fetch_inferior_event): If the FSM says the stop
4351         shouldn't be notified, don't call normal_stop.
4352         (maybe_remove_breakpoints): New function, factored out from ...
4353         (normal_stop): ... here.  Simplify.
4354         * infrun.h (maybe_remove_breakpoints): Declare.
4355         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
4356         (thread-fsm.h) <struct thread_fsm_ops>: New field.
4357         (thread_fsm_should_notify_stop): Declare.
4358
4359 2015-09-09  Pedro Alves  <palves@redhat.com>
4360
4361         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
4362         * breakpoint.c (handle_jit_event): Print debug output.
4363         (bpstat_what): Split event callback handling to ...
4364         (bpstat_run_callbacks): ... this new function.
4365         (momentary_bkpt_print_it): No longer handle bp_finish here.
4366         * breakpoint.h (bpstat_run_callbacks): Declare.
4367         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
4368         <thread_fsm>: New field.
4369         (thread_cancel_execution_command): Declare.
4370         * infcmd.c: Include thread-fsm.h.
4371         (struct step_command_fsm): New.
4372         (step_command_fsm_ops): New global.
4373         (new_step_command_fsm, step_command_fsm_prepare): New functions.
4374         (step_1): Adjust to use step_command_fsm_prepare and
4375         prepare_one_step.
4376         (struct step_1_continuation_args): Delete.
4377         (step_1_continuation): Delete.
4378         (step_command_fsm_should_stop): New function.
4379         (step_once): Delete.
4380         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
4381         (prepare_one_step): New function, based on step_once.
4382         (until_next_command): Remove step_multi reference.
4383         (struct return_value_info): New.
4384         (print_return_value): Rename to ...
4385         (print_return_value_1): ... this.  New struct return_value_info
4386         parameter.  Adjust.
4387         (print_return_value): Reimplement as wrapper around
4388         print_return_value_1.
4389         (struct finish_command_fsm): New.
4390         (finish_command_continuation): Delete.
4391         (finish_command_fsm_ops): New global.
4392         (new_finish_command_fsm, finish_command_fsm_should_stop): New
4393         functions.
4394         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
4395         New.
4396         (finish_command_continuation_free_arg): Delete.
4397         (finish_command_fsm_async_reply_reason): New.
4398         (finish_backward, finish_forward): Change symbol parameter to a
4399         finish_command_fsm.  Adjust.
4400         (finish_command): Create a finish_command_fsm.  Adjust.
4401         * infrun.c: Include "thread-fsm.h".
4402         (clear_proceed_status_thread): Delete the thread's FSM.
4403         (infrun_thread_stop_requested_callback): Cancel the thread's
4404         execution command.
4405         (clean_up_just_stopped_threads_fsms): New function.
4406         (fetch_inferior_event): Handle the event_thread's should_stop
4407         method saying the command isn't done yet.
4408         (process_event_stop_test): Run breakpoint callbacks here.
4409         (print_stop_event): Rename to ...
4410         (print_stop_location): ... this.
4411         (restore_current_uiout_cleanup): New function.
4412         (print_stop_event): Reimplement.
4413         (normal_stop): No longer notify the end_stepping_range observers
4414         here handle "step N" nor "finish" here.  No longer call
4415         print_stop_event here.
4416         * infrun.h (struct return_value_info): Forward declare.
4417         (print_return_value): Declare.
4418         (print_stop_event): Change prototype.
4419         * thread-fsm.c: New file.
4420         * thread-fsm.h: New file.
4421         * thread.c: Include "thread-fsm.h".
4422         (thread_cancel_execution_command): New function.
4423         (clear_thread_inferior_resources): Call it.
4424         * cli/cli-interp.c (cli_on_normal_stop): New function.
4425         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
4426         observer.
4427         * mi/mi-interp.c: Include "thread-fsm.h".
4428         (restore_current_uiout_cleanup): Delete.
4429         (mi_on_normal_stop): If the thread has an FSM associated, and it
4430         finished, ask it for the async-reply-reason to print.  Always call
4431         print_stop_event here, regardless of the top-level interpreter.
4432         Check bpstat_what to tell whether an asynchronous breakpoint hit
4433         triggered.
4434         * tui/tui-interp.c (tui_on_normal_stop): New function.
4435         (tui_init): Install tui_on_normal_stop as normal_stop observer.
4436
4437 2015-09-09  Pedro Alves  <palves@redhat.com>
4438
4439         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
4440         check whether the target can async.
4441         * inf-loop.c (inferior_event_handler): Only call target_async if
4442         the target can async.
4443         * infcall.c: Include top.h and interps.h.
4444         (run_inferior_call): For the interpreter to sync mode while
4445         running the infcall.  Call wait_sync_command_done instead of
4446         wait_for_inferior plus normal_stop.
4447         * infcmd.c (prepare_execution_command): Don't check whether the
4448         target can async when running in the foreground.
4449         (step_1): Delete synchronous case handling.
4450         (step_once): Always install a continuation, even in sync mode.
4451         (until_next_command, finish_forward): Don't check whether the
4452         target can async.
4453         (attach_command_post_wait, notice_new_inferior): Always install a
4454         continuation, even in sync mode.
4455         * infrun.c (mark_infrun_async_event_handler): New function.
4456         (proceed): In sync mode, mark infrun's event source instead of
4457         waiting for events here.
4458         (fetch_inferior_event): If the target can't async, do a blocking
4459         wait.
4460         (prepare_to_wait): In sync mode, mark infrun's event source.
4461         (infrun_async_inferior_event_handler): No longer bail out if the
4462         target can't async.
4463         * infrun.h (mark_infrun_async_event_handler): New declaration.
4464         * linux-nat.c (linux_nat_wait_1): Remove calls to
4465         set_sigint_trap/clear_sigint_trap.
4466         (linux_nat_terminal_inferior): No longer check whether the target
4467         can async.
4468         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
4469         comment.
4470         (mi_execute_command_input_handler): No longer check whether the
4471         target is async.  Update and simplify comment.
4472         * target.c (default_target_wait): New function.
4473         * target.h (struct target_ops) <to_wait>: Now defaults to
4474         default_target_wait.
4475         (default_target_wait): Declare.
4476         * top.c (wait_sync_command_done): New function, factored out from
4477         ...
4478         (maybe_wait_sync_command_done): ... this.
4479         * top.h (wait_sync_command_done): Declare.
4480         * target-delegates.c: Regenerate.
4481
4482 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
4483
4484         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
4485         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
4486         Remove include of sys/utsname.h.
4487         (linux_determine_kernel_ptr_bits): Remove.
4488         (linux_determine_kernel_start): New.
4489         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
4490         Update check.
4491         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
4492         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
4493         initialization.
4494         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
4495         assignment.
4496
4497 2015-09-07  Pedro Alves  <palves@redhat.com>
4498
4499         * guile/guile-internal.h (as_a_scm_t_subr): New.
4500         * guile/guile.c (misc_guile_functions): Use it.
4501         * guile/scm-arch.c (arch_functions): Use it.
4502         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
4503         Use it.
4504         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
4505         * guile/scm-cmd.c (command_functions): Use it.
4506         * guile/scm-disasm.c (disasm_functions): Use it.
4507         * guile/scm-exception.c (exception_functions)
4508         (private_exception_functions): Use it.
4509         * guile/scm-frame.c (frame_functions)
4510         * guile/scm-gsmob.c (gsmob_functions): Use it.
4511         * guile/scm-iterator.c (iterator_functions): Use it.
4512         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
4513         * guile/scm-math.c (math_functions): Use it.
4514         * guile/scm-objfile.c (objfile_functions): Use it.
4515         * guile/scm-param.c (parameter_functions): Use it.
4516         * guile/scm-ports.c (port_functions, private_port_functions): Use
4517         it.
4518         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
4519         * guile/scm-progspace.c (pspace_functions): Use it.
4520         * guile/scm-string.c (string_functions): Use it.
4521         * guile/scm-symbol.c (symbol_functions): Use it.
4522         * guile/scm-symtab.c (symtab_functions): Use it.
4523         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
4524         it.
4525         * guile/scm-value.c (value_functions): Use it.
4526
4527 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
4528
4529         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
4530         (tui_next_win): Likewise.
4531         (tui_prev_win): Likewise.
4532         (tui_partial_win_by_name): Likewise.
4533         (tui_init_generic_part): Likewise.
4534         (init_content_element): Likewise.
4535         (tui_del_window): Likewise.
4536         (tui_free_window): Likewise.
4537         (tui_del_data_windows): Likewise.
4538         (tui_free_data_content): Likewise.
4539         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
4540         * tui/tui-regs.c (tui_show_register_group): Likewise.
4541         * tui/tui-win.c (tui_resize_all): Likewise.
4542         (tui_set_focus): Likewise.
4543         (tui_set_win_height): Likewise.
4544         (make_invisible_and_set_new_height): Likewise.
4545         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
4546         * tui/tui-wingeneral.c (make_visible): Likewise.
4547
4548 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
4549
4550         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
4551
4552 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
4553
4554         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
4555         pointer.
4556         * dbxread.c (dbx_end_psymtab): Likewise.
4557         * gnu-nat.c (gnu_write_inferior): Likewise.
4558         * mdebugread.c (cross_ref): Likewise.
4559         * p-valprint.c (pascal_val_print): Likewise.
4560         * xcoffread.c (xcoff_end_psymtab): Likewise.
4561
4562 2015-09-04  Yao Qi  <yao.qi@linaro.org>
4563
4564         * NEWS: Mention the aarch64 multi-arch debugging support.
4565
4566 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
4567
4568         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
4569         type instead of a TYPE_CODE_INT one for the string_char_type
4570         and the ada_primitive_type_char types.
4571
4572 2015-09-03  Yao Qi  <yao.qi@linaro.org>
4573
4574         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4575         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
4576         aarch64_linux_region_ok_for_watchpoint.
4577         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
4578         New function.
4579         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
4580         Declare it.
4581
4582 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
4583
4584         * gdb_obstack.h (obstack_strdup): Declare.
4585         * gdb_obstack.c (obstack_strdup): Define.
4586         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
4587         * gdbarch.c: Regenerate.
4588         * gdbarch.h: Regenerate.
4589         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
4590
4591 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
4592
4593         * gdbtypes.c (copy_type_recursive): Update documentation.
4594
4595 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
4596
4597         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
4598         as zero.
4599
4600 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
4601
4602         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
4603
4604 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
4605
4606         * solib-svr4.c (solib_event_probe_action): Call
4607         get_probe_argument_count using TRY...CATCH.
4608         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
4609
4610 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
4611
4612         * probe.h (struct probe_ops) <get_probe_argument_count,
4613         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
4614         the comment that the function can throw an exception.
4615         (get_probe_argument_count): Likewise.
4616         (evaluate_probe_argument): Likewise.
4617         * stap-probe.c (stap_get_opcode): Call error instead of
4618         internal_error.
4619         (stap_get_expected_argument_type): Likewise.  Add argument
4620         'probe'.  Improve error message by mentioning the probe's name.
4621         (stap_parse_probe_arguments): Adjust call to
4622         stap_get_expected_argument_type.
4623         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
4624         not zero.  Call internal_error if GDB requests an argument but the
4625         probe has no arguments.
4626
4627 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
4628
4629         * ada-lang.c (ada_resolve_function): Do not ask the user what
4630         match to use when in completion mode.
4631
4632 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
4633
4634         * tui/tui-data.c (tui_win_name): Make local variable const, remove
4635         cast of NULL.
4636
4637 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
4638
4639         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
4640         call_abi using XSHAL_ABI macro.
4641
4642 2015-08-29  Doug Evans  <xdje42@gmail.com>
4643
4644         * symtab.h (struct symbol): Tweak comment.
4645
4646 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
4647
4648         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
4649         gdbarch obstack instead of on the heap.  Update commentary
4650         accordingly.
4651
4652 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
4653
4654         GDB 7.10 released.
4655
4656 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
4657
4658         * NEWS: Update entry about non-8-bits addressable memory.
4659
4660 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
4661
4662         Revert:
4663         2014-11-06  Doug Evans  <xdje42@gmail.com>
4664         * solib.c (solib_global_lookup): Fetch arch from objfile,
4665         not target_gdbarch.
4666
4667 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
4668
4669         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
4670         attempt to relocate a TLS variable offset.
4671
4672 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
4673
4674         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
4675         registered yet.  Set inferior_ptid while calling target_read_memory.
4676
4677 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
4678
4679         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
4680         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
4681         * linux-nat.c (check_stopped_by_breakpoint): Use
4682         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
4683
4684 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
4685
4686         * linux-thread-db.c (thread_db_get_thread_local_address): If the
4687         thread was not yet discovered, use thread_from_lwp instead of
4688         calling thread_db_find_new_threads_1.
4689
4690 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
4691
4692         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
4693         statements.
4694
4695 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
4696
4697         * NEWS: Document support for non-8-bits addressable memory.
4698
4699 2015-08-27  Pedro Alves  <palves@redhat.com>
4700
4701         * configure.ac: Remove AC_TYPE_SIGNAL call.
4702         * configure, config.in: Regenerate.
4703
4704 2015-08-27  Pedro Alves  <palves@redhat.com>
4705
4706         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
4707         * extension-priv.h: Include signal.h.
4708         (struct signal_handler) <handler>: Change type to sighandler_t.
4709         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
4710         * inflow.c (sigint_ours, sigquit_ours): Change type to
4711         sighandler_t.
4712         (child_terminal_inferior): Remove casts.
4713         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
4714         (osig): Change type to sighandler_t.
4715         * nto-procfs.c (ofunc): Change type to sighandler_t.
4716         (procfs_wait): Remove casts.
4717         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
4718         * remote-sim.c (gdbsim_wait): Use sighandler_t.
4719         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
4720
4721 2015-08-27  Pedro Alves  <palves@redhat.com>
4722
4723         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
4724         * gnulib/aclocal.m4: Renegerate.
4725         * gnulib/config.in: Renegerate.
4726         * gnulib/configure: Renegerate.
4727         * gnulib/import/Makefile.am: Update.
4728         * gnulib/import/Makefile.in: Regenerate.
4729         * gnulib/import/m4/gnulib-cache.m4: Update.
4730         * gnulib/import/m4/gnulib-comp.m4: Update.
4731         * gnulib/import/m4/signal_h.m4: New file.
4732         * gnulib/import/signal.in.h: New file.
4733
4734 2015-08-27  Pedro Alves  <palves@redhat.com>
4735
4736         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
4737         (MIN_MEMORY_PACKET_SIZE): New.
4738         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
4739         (get_memory_packet_size): Adjust.  No longer limit the max packet
4740         size.
4741         (set_memory_packet_size): Adjust, and remove dead code.
4742         (remote_check_symbols): Use xmalloc and a cleanup instead of
4743         alloca.
4744         (remote_packet_size): No longer cap the packet size.
4745         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
4746
4747 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
4748
4749         * compile/compile.c (compile_to_object): Mention language in
4750         error message.
4751
4752 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
4753
4754         * target.c (target_pre_inferior): Unset attach_flag.
4755
4756 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
4757
4758         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
4759         * gdbarch.c: Re-generate.
4760
4761 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
4762
4763         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
4764         function with the XNEW-family equivalent.
4765         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
4766         * ada-exp.y (write_ambiguous_var): Likewise.
4767         * ada-lang.c (resolve_subexp): Likewise.
4768         (user_select_syms): Likewise.
4769         (assign_aggregate): Likewise.
4770         (ada_evaluate_subexp): Likewise.
4771         (cache_symbol): Likewise.
4772         * addrmap.c (allocate_key): Likewise.
4773         (addrmap_create_mutable): Likewise.
4774         * aix-thread.c (sync_threadlists): Likewise.
4775         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
4776         (alpha_gdbarch_init): Likewise.
4777         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
4778         * arm-linux-nat.c (arm_linux_add_process): Likewise.
4779         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4780         * arm-tdep.c (push_stack_item): Likewise.
4781         (arm_displaced_step_copy_insn): Likewise.
4782         (arm_gdbarch_init): Likewise.
4783         (_initialize_arm_tdep): Likewise.
4784         * avr-tdep.c (push_stack_item): Likewise.
4785         * ax-general.c (new_agent_expr): Likewise.
4786         * block.c (block_initialize_namespace): Likewise.
4787         * breakpoint.c (alloc_counted_command_line): Likewise.
4788         (update_dprintf_command_list): Likewise.
4789         (parse_breakpoint_sals): Likewise.
4790         (decode_static_tracepoint_spec): Likewise.
4791         (until_break_command): Likewise.
4792         (clear_command): Likewise.
4793         (update_global_location_list): Likewise.
4794         (get_breakpoint_objfile_data) Likewise.
4795         * btrace.c (ftrace_new_function): Likewise.
4796         (btrace_set_insn_history): Likewise.
4797         (btrace_set_call_history): Likewise.
4798         * buildsym.c (add_symbol_to_list): Likewise.
4799         (record_pending_block): Likewise.
4800         (start_subfile): Likewise.
4801         (start_buildsym_compunit): Likewise.
4802         (push_subfile): Likewise.
4803         (end_symtab_get_static_block): Likewise.
4804         (buildsym_init): Likewise.
4805         * cli/cli-cmds.c (source_command): Likewise.
4806         * cli/cli-decode.c (add_cmd): Likewise.
4807         * cli/cli-script.c (build_command_line): Likewise.
4808         (setup_user_args): Likewise.
4809         (realloc_body_list): Likewise.
4810         (process_next_line): Likewise.
4811         (copy_command_lines): Likewise.
4812         * cli/cli-setshow.c (do_set_command): Likewise.
4813         * coff-pe-read.c (read_pe_exported_syms): Likewise.
4814         * coffread.c (coff_locate_sections): Likewise.
4815         (coff_symtab_read): Likewise.
4816         (coff_read_struct_type): Likewise.
4817         * common/cleanups.c (make_my_cleanup2): Likewise.
4818         * common/common-exceptions.c (throw_it): Likewise.
4819         * common/filestuff.c (make_cleanup_close): Likewise.
4820         * common/format.c (parse_format_string): Likewise.
4821         * common/queue.h (DEFINE_QUEUE_P): Likewise.
4822         * compile/compile-object-load.c (munmap_list_add): Likewise.
4823         (compile_object_load): Likewise.
4824         * compile/compile-object-run.c (compile_object_run): Likewise.
4825         * compile/compile.c (append_args): Likewise.
4826         * corefile.c (specify_exec_file_hook): Likewise.
4827         * cp-support.c (make_symbol_overload_list): Likewise.
4828         * cris-tdep.c (push_stack_item): Likewise.
4829         (cris_gdbarch_init): Likewise.
4830         * ctf.c (ctf_trace_file_writer_new): Likewise.
4831         * dbxread.c (init_header_files): Likewise.
4832         (add_new_header_file): Likewise.
4833         (init_bincl_list): Likewise.
4834         (dbx_end_psymtab): Likewise.
4835         (start_psymtab): Likewise.
4836         (dbx_end_psymtab): Likewise.
4837         * dcache.c (dcache_init): Likewise.
4838         * dictionary.c (dict_create_hashed): Likewise.
4839         (dict_create_hashed_expandable): Likewise.
4840         (dict_create_linear): Likewise.
4841         (dict_create_linear_expandable): Likewise.
4842         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
4843         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
4844         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
4845         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4846         (decode_frame_entry_1): Likewise.
4847         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
4848         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4849         * dwarf2read.c (dwarf2_has_info): Likewise.
4850         (create_signatured_type_table_from_index): Likewise.
4851         (dwarf2_read_index): Likewise.
4852         (dw2_get_file_names_reader): Likewise.
4853         (create_all_type_units): Likewise.
4854         (read_cutu_die_from_dwo): Likewise.
4855         (init_tu_and_read_dwo_dies): Likewise.
4856         (init_cutu_and_read_dies): Likewise.
4857         (create_all_comp_units): Likewise.
4858         (queue_comp_unit): Likewise.
4859         (inherit_abstract_dies): Likewise.
4860         (read_call_site_scope): Likewise.
4861         (dwarf2_add_field): Likewise.
4862         (dwarf2_add_typedef): Likewise.
4863         (dwarf2_add_member_fn): Likewise.
4864         (attr_to_dynamic_prop): Likewise.
4865         (abbrev_table_alloc_abbrev): Likewise.
4866         (abbrev_table_read_table): Likewise.
4867         (add_include_dir): Likewise.
4868         (add_file_name): Likewise.
4869         (dwarf_decode_line_header): Likewise.
4870         (dwarf2_const_value_attr): Likewise.
4871         (dwarf_alloc_block): Likewise.
4872         (parse_macro_definition): Likewise.
4873         (set_die_type): Likewise.
4874         (write_psymtabs_to_index): Likewise.
4875         (create_cus_from_index): Likewise.
4876         (dwarf2_create_include_psymtab): Likewise.
4877         (process_psymtab_comp_unit_reader): Likewise.
4878         (build_type_psymtab_dependencies): Likewise.
4879         (read_comp_units_from_section): Likewise.
4880         (compute_compunit_symtab_includes): Likewise.
4881         (create_dwo_unit_in_dwp_v1): Likewise.
4882         (create_dwo_unit_in_dwp_v2): Likewise.
4883         (read_func_scope): Likewise.
4884         (process_structure_scope): Likewise.
4885         (mark_common_block_symbol_computed): Likewise.
4886         (load_partial_dies): Likewise.
4887         (dwarf2_symbol_mark_computed): Likewise.
4888         * elfread.c (elf_symfile_segments): Likewise.
4889         (elf_read_minimal_symbols): Likewise.
4890         * environ.c (make_environ): Likewise.
4891         * eval.c (evaluate_subexp_standard): Likewise.
4892         * event-loop.c (create_file_handler): Likewise.
4893         (create_async_signal_handler): Likewise.
4894         (create_async_event_handler): Likewise.
4895         (create_timer): Likewise.
4896         * exec.c (build_section_table): Likewise.
4897         * fbsd-nat.c (fbsd_remember_child): Likewise.
4898         * fork-child.c (fork_inferior): Likewise.
4899         * frv-tdep.c (new_variant): Likewise.
4900         * gdbarch.sh (gdbarch_alloc): Likewise.
4901         (append_name): Likewise.
4902         * gdbtypes.c (rank_function): Likewise.
4903         (copy_type_recursive): Likewise.
4904         (add_dyn_prop): Likewise.
4905         * gnu-nat.c (make_proc): Likewise.
4906         (make_inf): Likewise.
4907         (gnu_write_inferior): Likewise.
4908         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4909         (build_std_type_info_type): Likewise.
4910         * guile/scm-param.c (compute_enum_list): Likewise.
4911         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
4912         * guile/scm-value.c (gdbscm_value_call): Likewise.
4913         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4914         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4915         (read_unwind_info): Likewise.
4916         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4917         * infcall.c (dummy_frame_context_saver_setup): Likewise.
4918         (call_function_by_hand_dummy): Likewise.
4919         * infcmd.c (step_once): Likewise.
4920         (finish_forward): Likewise.
4921         (attach_command): Likewise.
4922         (notice_new_inferior): Likewise.
4923         * inferior.c (add_inferior_silent): Likewise.
4924         * infrun.c (add_displaced_stepping_state): Likewise.
4925         (save_infcall_control_state): Likewise.
4926         (save_inferior_ptid): Likewise.
4927         (_initialize_infrun): Likewise.
4928         * jit.c (bfd_open_from_target_memory): Likewise.
4929         (jit_gdbarch_data_init): Likewise.
4930         * language.c (add_language): Likewise.
4931         * linespec.c (decode_line_2): Likewise.
4932         * linux-nat.c (add_to_pid_list): Likewise.
4933         (add_initial_lwp): Likewise.
4934         * linux-thread-db.c (add_thread_db_info): Likewise.
4935         (record_thread): Likewise.
4936         (info_auto_load_libthread_db): Likewise.
4937         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
4938         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4939         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4940         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
4941         * macrocmd.c (macro_define_command): Likewise.
4942         * macroexp.c (gather_arguments): Likewise.
4943         * macroscope.c (sal_macro_scope): Likewise.
4944         * macrotab.c (new_macro_table): Likewise.
4945         * mdebugread.c (push_parse_stack): Likewise.
4946         (parse_partial_symbols): Likewise.
4947         (parse_symbol): Likewise.
4948         (psymtab_to_symtab_1): Likewise.
4949         (new_block): Likewise.
4950         (new_psymtab): Likewise.
4951         (mdebug_build_psymtabs): Likewise.
4952         (add_pending): Likewise.
4953         (elfmdebug_build_psymtabs): Likewise.
4954         * mep-tdep.c (mep_gdbarch_init): Likewise.
4955         * mi/mi-main.c (mi_execute_command): Likewise.
4956         * mi/mi-parse.c (mi_parse_argv): Likewise.
4957         * minidebug.c (lzma_open): Likewise.
4958         * minsyms.c (terminate_minimal_symbol_table): Likewise.
4959         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
4960         * mips-tdep.c (mips_gdbarch_init): Likewise.
4961         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4962         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
4963         * mt-tdep.c (mt_registers_info): Likewise.
4964         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
4965         * nat/linux-btrace.c (linux_enable_bts): Likewise.
4966         (linux_enable_pt): Likewise.
4967         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
4968         (linux_xfer_osdata_processgroups): Likewise.
4969         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
4970         * nto-procfs.c (procfs_meminfo): Likewise.
4971         * objc-lang.c (start_msglist): Likewise.
4972         (selectors_info): Likewise.
4973         (classes_info): Likewise.
4974         (find_methods): Likewise.
4975         * objfiles.c (allocate_objfile): Likewise.
4976         (update_section_map): Likewise.
4977         * osabi.c (gdbarch_register_osabi): Likewise.
4978         (gdbarch_register_osabi_sniffer): Likewise.
4979         * parse.c (start_arglist): Likewise.
4980         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
4981         (hwdebug_insert_point): Likewise.
4982         * printcmd.c (display_command): Likewise.
4983         (ui_printf): Likewise.
4984         * procfs.c (create_procinfo): Likewise.
4985         (load_syscalls): Likewise.
4986         (proc_get_LDT_entry): Likewise.
4987         (proc_update_threads): Likewise.
4988         * prologue-value.c (make_pv_area): Likewise.
4989         (pv_area_store): Likewise.
4990         * psymtab.c (extend_psymbol_list): Likewise.
4991         (init_psymbol_list): Likewise.
4992         (allocate_psymtab): Likewise.
4993         * python/py-inferior.c (add_thread_object): Likewise.
4994         * python/py-param.c (compute_enum_values): Likewise.
4995         * python/py-value.c (valpy_call): Likewise.
4996         * python/py-varobj.c (py_varobj_iter_next): Likewise.
4997         * python/python.c (ensure_python_env): Likewise.
4998         * record-btrace.c (record_btrace_start_replaying): Likewise.
4999         * record-full.c (record_full_reg_alloc): Likewise.
5000         (record_full_mem_alloc): Likewise.
5001         (record_full_end_alloc): Likewise.
5002         (record_full_core_xfer_partial): Likewise.
5003         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
5004         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
5005         * remote-notif.c (remote_notif_state_allocate): Likewise.
5006         * remote.c (demand_private_info): Likewise.
5007         (remote_notif_stop_alloc_reply): Likewise.
5008         (remote_enable_btrace): Likewise.
5009         * reverse.c (save_bookmark_command): Likewise.
5010         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5011         * rx-tdep.c (rx_gdbarch_init): Likewise.
5012         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5013         * ser-go32.c (dos_get_tty_state): Likewise.
5014         (dos_copy_tty_state): Likewise.
5015         * ser-mingw.c (ser_windows_open): Likewise.
5016         (ser_console_wait_handle): Likewise.
5017         (ser_console_get_tty_state): Likewise.
5018         (make_pipe_state): Likewise.
5019         (net_windows_open): Likewise.
5020         * ser-unix.c (hardwire_get_tty_state): Likewise.
5021         (hardwire_copy_tty_state): Likewise.
5022         * solib-aix.c (solib_aix_new_lm_info): Likewise.
5023         * solib-dsbt.c (dsbt_current_sos): Likewise.
5024         (dsbt_relocate_main_executable): Likewise.
5025         * solib-frv.c (frv_current_sos): Likewise.
5026         (frv_relocate_main_executable): Likewise.
5027         * solib-spu.c (spu_bfd_fopen): Likewise.
5028         * solib-svr4.c (lm_info_read): Likewise.
5029         (svr4_copy_library_list): Likewise.
5030         (svr4_default_sos): Likewise.
5031         * source.c (find_source_lines): Likewise.
5032         (line_info): Likewise.
5033         (add_substitute_path_rule): Likewise.
5034         * spu-linux-nat.c (spu_bfd_open): Likewise.
5035         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
5036         * stabsread.c (dbx_lookup_type): Likewise.
5037         (read_type): Likewise.
5038         (read_member_functions): Likewise.
5039         (read_struct_fields): Likewise.
5040         (read_baseclasses): Likewise.
5041         (read_args): Likewise.
5042         (_initialize_stabsread): Likewise.
5043         * stack.c (func_command): Likewise.
5044         * stap-probe.c (handle_stap_probe): Likewise.
5045         * symfile.c (addrs_section_sort): Likewise.
5046         (addr_info_make_relative): Likewise.
5047         (load_section_callback): Likewise.
5048         (add_symbol_file_command): Likewise.
5049         (init_filename_language_table): Likewise.
5050         * symtab.c (create_filename_seen_cache): Likewise.
5051         (sort_search_symbols_remove_dups): Likewise.
5052         (search_symbols): Likewise.
5053         * target.c (make_cleanup_restore_target_terminal): Likewise.
5054         * thread.c (new_thread): Likewise.
5055         (enable_thread_stack_temporaries): Likewise.
5056         (make_cleanup_restore_current_thread): Likewise.
5057         (thread_apply_all_command): Likewise.
5058         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
5059         * top.c (gdb_readline_wrapper): Likewise.
5060         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
5061         * tracepoint.c (trace_find_line_command): Likewise.
5062         (all_tracepoint_actions_and_cleanup): Likewise.
5063         (make_cleanup_restore_current_traceframe): Likewise.
5064         (get_uploaded_tp): Likewise.
5065         (get_uploaded_tsv): Likewise.
5066         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
5067         (tui_alloc_win_info): Likewise.
5068         (tui_alloc_content): Likewise.
5069         (tui_add_content_elements): Likewise.
5070         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
5071         (tui_set_disassem_content): Likewise.
5072         * ui-file.c (ui_file_new): Likewise.
5073         (stdio_file_new): Likewise.
5074         (tee_file_new): Likewise.
5075         * utils.c (make_cleanup_restore_integer): Likewise.
5076         (add_internal_problem_command): Likewise.
5077         * v850-tdep.c (v850_gdbarch_init): Likewise.
5078         * valops.c (find_oload_champ): Likewise.
5079         * value.c (allocate_value_lazy): Likewise.
5080         (record_latest_value): Likewise.
5081         (create_internalvar): Likewise.
5082         * varobj.c (install_variable): Likewise.
5083         (new_variable): Likewise.
5084         (new_root_variable): Likewise.
5085         (cppush): Likewise.
5086         (_initialize_varobj): Likewise.
5087         * windows-nat.c (windows_make_so): Likewise.
5088         * x86-nat.c (x86_add_process): Likewise.
5089         * xcoffread.c (arrange_linetable): Likewise.
5090         (allocate_include_entry): Likewise.
5091         (process_linenos): Likewise.
5092         (SYMBOL_DUP): Likewise.
5093         (xcoff_start_psymtab): Likewise.
5094         (xcoff_end_psymtab): Likewise.
5095         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
5096         * xtensa-tdep.c (xtensa_register_type): Likewise.
5097         * gdbarch.c: Regenerate.
5098         * gdbarch.h: Regenerate.
5099
5100 2015-08-25  Don Breazeal  <donb@codesourcery.com>
5101
5102         * infrun.c (follow_exec): Re-order operations for
5103         handling follow-exec-mode "new".
5104         (handle_inferior_event_1): Assign ecs->event_thread
5105         to the current thread.
5106         * remote.c (get_remote_arch_state): Add an assertion.
5107
5108 2015-08-26  Pedro Alves  <palves@redhat.com>
5109
5110         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
5111
5112 2015-08-25  Pedro Alves  <palves@redhat.com>
5113
5114         PR gdb/18804
5115         * defs.h (maybe_quit): Declare.
5116         (QUIT): Now calls maybe_quit.
5117         * event-loop.c (clear_async_signal_handler)
5118         (async_signal_handler_is_marked): New functions.
5119         * event-loop.h (async_signal_handler_is_marked)
5120         (clear_async_signal_handler): New declarations.
5121         * remote.c (remote_check_pending_interrupt): New function.
5122         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
5123         longer check whether the target is async.  If waiting for a stop
5124         reply, and a Ctrl-C as been sent to the target, offer to
5125         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
5126         Otherwise do not disconnect and throw a quit.
5127         (_initialize_remote): Install remote_check_pending_interrupt as
5128         to_check_pending_interrupt.
5129         * target.c (target_check_pending_interrupt): New function.
5130         * target.h (struct target_ops) <to_check_pending_interrupt>: New
5131         field.
5132         (target_check_pending_interrupt): New declaration.
5133         * utils.c (maybe_quit): New function.
5134         * target-delegates.c: Regenerate.
5135
5136 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5137
5138         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
5139         Rename local variable pid to tid, and get lwpid of lwp.  Update
5140         debug output.
5141
5142 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
5143
5144         * ada-lang.c (ada_read_var_value): Add a var_block argument
5145         and pass it to default_read_var_value.
5146         * block.c (block_static_link): New accessor.
5147         * block.h (block_static_link): Declare it.
5148         * buildsym.c (finish_block_internal): Add a static_link
5149         argument.  If there is a static link, associate it to the new
5150         block.
5151         (finish_block): Add a static link argument and pass it to
5152         finish_block_internal.
5153         (end_symtab_get_static_block): Update calls to finish_block and
5154         to finish_block_internal.
5155         (end_symtab_with_blockvector): Update call to
5156         finish_block_internal.
5157         * buildsym.h: Forward-declare struct dynamic_prop.
5158         (struct context_stack): Add a static_link field.
5159         (finish_block): Add a static link argument.
5160         * c-exp.y: Remove an obsolete comment (evaluation of variables
5161         already start from the selected frame, and now they climb *up*
5162         the call stack) and propagate the block information to the
5163         produced expression.
5164         * d-exp.y: Likewise.
5165         * f-exp.y: Likewise.
5166         * go-exp.y: Likewise.
5167         * jv-exp.y: Likewise.
5168         * m2-exp.y: Likewise.
5169         * p-exp.y: Likewise.
5170         * coffread.c (coff_symtab_read): Update calls to finish_block.
5171         * dbxread.c (process_one_symbol): Likewise.
5172         * xcoffread.c (read_xcoff_symtab): Likewise.
5173         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
5174         "sym" parameter to struct block_symbol, update its uses and pass
5175         its block to calls to read_var_value.
5176         (convert_symbol_sym): Update the calls to convert_one_symbol.
5177         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
5178         call to read_var_value.
5179         * dwarf2loc.c (block_op_get_frame_base): New.
5180         (dwarf2_block_frame_base_locexpr_funcs): Implement the
5181         get_frame_base method.
5182         (dwarf2_block_frame_base_loclist_funcs): Likewise.
5183         (dwarf2locexpr_baton_eval): Add a frame argument and use it
5184         instead of the selected frame in order to evaluate the
5185         expression.
5186         (dwarf2_evaluate_property): Add a frame argument.  Update call
5187         to dwarf2_locexpr_baton_eval to provide a frame in available and
5188         to handle the absence of address stack.
5189         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
5190         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
5191         declaration.
5192         (read_func_scope): Record any available static link description.
5193         Update call to finish_block.
5194         (read_lexical_block_scope): Update call to finish_block.
5195         * findvar.c (follow_static_link): New.
5196         (get_hosting_frame): New.
5197         (default_read_var_value): Add a var_block argument.  Use
5198         get_hosting_frame to handle non-local references.
5199         (read_var_value): Add a var_block argument and pass it to the
5200         LA_READ_VAR_VALUE method.
5201         * gdbtypes.c (resolve_dynamic_range): Update calls to
5202         dwarf2_evaluate_property.
5203         (resolve_dynamic_type_internal): Likewise.
5204         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
5205         read_var_value, passing it the block coming from symbol lookup.
5206         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
5207         read_var_value (TODO).
5208         * infcmd.c (finish_command_continuation): Update call to
5209         read_var_value, passing it the block coming from symbol lookup.
5210         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5211         * language.h (struct language_defn): Add a var_block argument to
5212         the LA_READ_VAR_VALUE method.
5213         * objfiles.c (struct static_link_htab_entry): New.
5214         (static_link_htab_entry_hash): New.
5215         (static_link_htab_entry_eq): New.
5216         (objfile_register_static_link): New.
5217         (objfile_lookup_static_link): New.
5218         (free_objfile): Free the STATIC_LINKS hashed map if needed.
5219         * objfiles.h: Include hashtab.h.
5220         (struct objfile): Add a static_links field.
5221         (objfile_register_static_link): New.
5222         (objfile_lookup_static_link): New.
5223         * printcmd.c (print_variable_and_value): Update call to
5224         read_var_value.
5225         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
5226         * python/py-frame.c (frapy_read_var): Update call to
5227         read_var_value, passing it the block coming from symbol lookup.
5228         * python/py-framefilter.c (extract_sym): Add a sym_block
5229         parameter and set the pointed value to NULL (TODO).
5230         (enumerate_args): Update call to extract_sym.
5231         (enumerate_locals): Update calls to extract_sym and to
5232         read_var_value.
5233         * python/py-symbol.c (sympy_value): Update call to
5234         read_var_value (TODO).
5235         * stack.c (read_frame_local): Update call to read_var_value.
5236         (read_frame_arg): Likewise.
5237         (return_command): Likewise.
5238         * symtab.h (struct symbol_block_ops): Add a get_frame_base
5239         method.
5240         (struct symbol): Add a block field.
5241         (SYMBOL_BLOCK): New accessor.
5242         * valops.c (value_of_variable): Remove frame/block handling and
5243         pass the block argument to read_var_value, which does this job
5244         now.
5245         (value_struct_elt_for_reference): Update calls to
5246         read_var_value.
5247         (value_of_this): Pass the block found to read_var_value.
5248         * value.h (read_var_value): Add a var_block argument.
5249         (default_read_var_value): Likewise.
5250
5251 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5252
5253         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
5254         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
5255         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
5256
5257 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5258
5259         * Makefile.in (aarch64-liunx.o): New rule.
5260         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
5261         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
5262         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
5263         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
5264         extern.
5265         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
5266         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
5267         * nat/aarch64-linux.c: New file.
5268         * nat/aarch64-linux.h: New file.
5269
5270 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5271
5272         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
5273         lwp_arch_private_info and ptid_of_lwp.
5274
5275 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5276
5277         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
5278         Move it to nat/aarch64-linux-hw-point.c.
5279         (debug_reg_change_callback): Likewise.
5280         (aarch64_notify_debug_reg_change): :Likewise.
5281         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
5282         (aarch64_dr_update_callback_param): New.
5283         (debug_reg_change_callback): New function.
5284         (aarch64_notify_debug_reg_change): Likewise.
5285         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
5286         Remove the declaration.
5287
5288 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5289
5290         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
5291         Call current_lwp_ptid.
5292
5293 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5294
5295         * aarch64-linux-nat.c (debug_reg_change_callback): Use
5296         debug_printf.
5297
5298 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5299
5300         * aarch64-linux-nat.c (debug_reg_change_callback): Call
5301         ptid_get_pid rather than ptid_get_lwp.
5302
5303 2015-08-24  Pedro Alves  <palves@redhat.com>
5304
5305         * NEWS (New commands): Mention set/show remote
5306         multiprocess-extensions-packet.
5307         * remote.c (remote_query_supported): Only tell the server to use
5308         the multiprocess extensions if the user hasn't force-disabled them
5309         with "set remote multiprocess-extensions-packet off".
5310
5311 2015-08-24  Pedro Alves  <palves@redhat.com>
5312
5313         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
5314         1029a8112290f6eee9d7878a391c49db42c999bd.
5315         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
5316         Regenerate.
5317         * gnulib/import/Makefile.am: Update.
5318         * gnulib/import/Makefile.in: Update.
5319         * gnulib/import/alloca.in.h: Update.
5320         * gnulib/import/basename-lgpl.c: Update.
5321         * gnulib/import/canonicalize-lgpl.c: Update.
5322         * gnulib/import/config.charset: Update.
5323         * gnulib/import/dirent.in.h: Update.
5324         * gnulib/import/dirfd.c: Update.
5325         * gnulib/import/dirname-lgpl.c: Update.
5326         * gnulib/import/dirname.h: Update.
5327         * gnulib/import/dosname.h: Update.
5328         * gnulib/import/errno.in.h: Update.
5329         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
5330         * gnulib/import/extra/snippet/c++defs.h: Update.
5331         * gnulib/import/extra/snippet/warn-on-use.h: Update.
5332         * gnulib/import/extra/update-copyright: Update.
5333         * gnulib/import/float+.h: Update.
5334         * gnulib/import/float.c: Update.
5335         * gnulib/import/float.in.h: Update.
5336         * gnulib/import/fnmatch.c: Update.
5337         * gnulib/import/fnmatch.in.h: Update.
5338         * gnulib/import/fnmatch_loop.c: Update.
5339         * gnulib/import/fpucw.h: Update.
5340         * gnulib/import/frexp.c: Update.
5341         * gnulib/import/frexpl.c: Update.
5342         * gnulib/import/gettimeofday.c: Update.
5343         * gnulib/import/inttypes.in.h: Update.
5344         * gnulib/import/isnan.c: Update.
5345         * gnulib/import/isnand-nolibm.h: Update.
5346         * gnulib/import/isnand.c: Update.
5347         * gnulib/import/isnanl-nolibm.h: Update.
5348         * gnulib/import/isnanl.c: Update.
5349         * gnulib/import/itold.c: Update.
5350         * gnulib/import/localcharset.c: Update.
5351         * gnulib/import/localcharset.h: Update.
5352         * gnulib/import/lstat.c: Update.
5353         * gnulib/import/m4/00gnulib.m4: Update.
5354         * gnulib/import/m4/absolute-header.m4: Update.
5355         * gnulib/import/m4/alloca.m4: Update.
5356         * gnulib/import/m4/canonicalize.m4: Update.
5357         * gnulib/import/m4/codeset.m4: Update.
5358         * gnulib/import/m4/configmake.m4: Update.
5359         * gnulib/import/m4/dirent_h.m4: Update.
5360         * gnulib/import/m4/dirfd.m4: Update.
5361         * gnulib/import/m4/dirname.m4: Update.
5362         * gnulib/import/m4/double-slash-root.m4: Update.
5363         * gnulib/import/m4/eealloc.m4: Update.
5364         * gnulib/import/m4/errno_h.m4: Update.
5365         * gnulib/import/m4/exponentd.m4: Update.
5366         * gnulib/import/m4/exponentl.m4: Update.
5367         * gnulib/import/m4/extensions.m4: Update.
5368         * gnulib/import/m4/extern-inline.m4: Update.
5369         * gnulib/import/m4/fcntl-o.m4: Update.
5370         * gnulib/import/m4/float_h.m4: Update.
5371         * gnulib/import/m4/fnmatch.m4: Update.
5372         * gnulib/import/m4/fpieee.m4: Update.
5373         * gnulib/import/m4/frexp.m4: Update.
5374         * gnulib/import/m4/frexpl.m4: Update.
5375         * gnulib/import/m4/gettimeofday.m4: Update.
5376         * gnulib/import/m4/glibc21.m4: Update.
5377         * gnulib/import/m4/gnulib-cache.m4: Update.
5378         * gnulib/import/m4/gnulib-common.m4: Update.
5379         * gnulib/import/m4/gnulib-comp.m4: Update.
5380         * gnulib/import/m4/gnulib-tool.m4: Update.
5381         * gnulib/import/m4/include_next.m4: Update.
5382         * gnulib/import/m4/inttypes-pri.m4: Update.
5383         * gnulib/import/m4/inttypes.m4: Update.
5384         * gnulib/import/m4/isnand.m4: Update.
5385         * gnulib/import/m4/isnanl.m4: Update.
5386         * gnulib/import/m4/largefile.m4: Update.
5387         * gnulib/import/m4/localcharset.m4: Update.
5388         * gnulib/import/m4/locale-fr.m4: Update.
5389         * gnulib/import/m4/locale-ja.m4: Update.
5390         * gnulib/import/m4/locale-zh.m4: Update.
5391         * gnulib/import/m4/longlong.m4: Update.
5392         * gnulib/import/m4/lstat.m4: Update.
5393         * gnulib/import/m4/malloc.m4: Update.
5394         * gnulib/import/m4/malloca.m4: Update.
5395         * gnulib/import/m4/math_h.m4: Update.
5396         * gnulib/import/m4/mbrtowc.m4: Update.
5397         * gnulib/import/m4/mbsinit.m4: Update.
5398         * gnulib/import/m4/mbsrtowcs.m4: Update.
5399         * gnulib/import/m4/mbstate_t.m4: Update.
5400         * gnulib/import/m4/memchr.m4: Update.
5401         * gnulib/import/m4/memmem.m4: Update.
5402         * gnulib/import/m4/mmap-anon.m4: Update.
5403         * gnulib/import/m4/multiarch.m4: Update.
5404         * gnulib/import/m4/nocrash.m4: Update.
5405         * gnulib/import/m4/off_t.m4: Update.
5406         * gnulib/import/m4/pathmax.m4: Update.
5407         * gnulib/import/m4/readlink.m4: Update.
5408         * gnulib/import/m4/rename.m4: Update.
5409         * gnulib/import/m4/rmdir.m4: Update.
5410         * gnulib/import/m4/ssize_t.m4: Update.
5411         * gnulib/import/m4/stat.m4: Update.
5412         * gnulib/import/m4/stdbool.m4: Update.
5413         * gnulib/import/m4/stddef_h.m4: Update.
5414         * gnulib/import/m4/stdint.m4: Update.
5415         * gnulib/import/m4/stdio_h.m4: Update.
5416         * gnulib/import/m4/stdlib_h.m4: Update.
5417         * gnulib/import/m4/string_h.m4: Update.
5418         * gnulib/import/m4/strstr.m4: Update.
5419         * gnulib/import/m4/strtok_r.m4: Update.
5420         * gnulib/import/m4/sys_socket_h.m4: Update.
5421         * gnulib/import/m4/sys_stat_h.m4: Update.
5422         * gnulib/import/m4/sys_time_h.m4: Update.
5423         * gnulib/import/m4/sys_types_h.m4: Update.
5424         * gnulib/import/m4/time_h.m4: Update.
5425         * gnulib/import/m4/unistd_h.m4: Update.
5426         * gnulib/import/m4/warn-on-use.m4: Update.
5427         * gnulib/import/m4/wchar_h.m4: Update.
5428         * gnulib/import/m4/wchar_t.m4: Update.
5429         * gnulib/import/m4/wctype_h.m4: Update.
5430         * gnulib/import/m4/wint_t.m4: Update.
5431         * gnulib/import/malloc.c: Update.
5432         * gnulib/import/malloca.c: Update.
5433         * gnulib/import/malloca.h: Update.
5434         * gnulib/import/math.in.h: Update.
5435         * gnulib/import/mbrtowc.c: Update.
5436         * gnulib/import/mbsinit.c: Update.
5437         * gnulib/import/mbsrtowcs-impl.h: Update.
5438         * gnulib/import/mbsrtowcs-state.c: Update.
5439         * gnulib/import/mbsrtowcs.c: Update.
5440         * gnulib/import/memchr.c: Update.
5441         * gnulib/import/memmem.c: Update.
5442         * gnulib/import/pathmax.h: Update.
5443         * gnulib/import/readlink.c: Update.
5444         * gnulib/import/ref-add.sin: Update.
5445         * gnulib/import/ref-del.sin: Update.
5446         * gnulib/import/rename.c: Update.
5447         * gnulib/import/rmdir.c: Update.
5448         * gnulib/import/same-inode.h: Update.
5449         * gnulib/import/stat.c: Update.
5450         * gnulib/import/stdbool.in.h: Update.
5451         * gnulib/import/stddef.in.h: Update.
5452         * gnulib/import/stdint.in.h: Update.
5453         * gnulib/import/stdio.c: Update.
5454         * gnulib/import/stdio.in.h: Update.
5455         * gnulib/import/stdlib.in.h: Update.
5456         * gnulib/import/str-two-way.h: Update.
5457         * gnulib/import/streq.h: Update.
5458         * gnulib/import/string.in.h: Update.
5459         * gnulib/import/stripslash.c: Update.
5460         * gnulib/import/strnlen1.c: Update.
5461         * gnulib/import/strnlen1.h: Update.
5462         * gnulib/import/strstr.c: Update.
5463         * gnulib/import/strtok_r.c: Update.
5464         * gnulib/import/sys_stat.in.h: Update.
5465         * gnulib/import/sys_time.in.h: Update.
5466         * gnulib/import/sys_types.in.h: Update.
5467         * gnulib/import/time.in.h: Update.
5468         * gnulib/import/unistd.in.h: Update.
5469         * gnulib/import/verify.h: Update.
5470         * gnulib/import/wchar.in.h: Update.
5471         * gnulib/import/wctype.in.h: Update.
5472         * gnulib/import/gettimeofday.c: New file.
5473         * gnulib/import/m4/absolute-header.m4: New file.
5474         * gnulib/import/m4/gettimeofday.m4: New file.
5475         * gnulib/import/m4/sys_socket_h.m4: New file.
5476         * gnulib/import/m4/sys_time_h.m4: New file.
5477         * gnulib/import/stdio.c: Delete file.
5478         * gnulib/import/sys_time.in.h: New file.
5479
5480 2015-08-24  Pedro Alves  <palves@redhat.com>
5481
5482         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
5483         * common/gdb_sys_time.h: New file.
5484         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
5485         * gdb_select.h: Likewise.
5486         * gdb_usleep.c: Likewise.
5487         * maint.c: Likewise.
5488         * mi/mi-main.c: Likewise.
5489         * mi/mi-parse.h: Likewise.
5490         * remote-fileio.c: Likewise.
5491         * remote-m32r-sdi.c: Likewise.
5492         * remote.c: Likewise.
5493         * ser-base.c: Likewise.
5494         * ser-pipe.c: Likewise.
5495         * ser-tcp.c: Likewise.
5496         * ser-unix.c: Likewise.
5497         * symfile.c: Likewise.
5498         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
5499         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
5500         * utils.c: Likewise.
5501
5502 2015-08-24  Pedro Alves  <palves@redhat.com>
5503
5504         * NEWS: Mention removed support for the various ROM monitors.
5505         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
5506         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
5507         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
5508         gdb_target_obs.
5509         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
5510         gdb_target_obs.
5511         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
5512         dsrec.o from gdb_target_obs.
5513         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
5514         from gdb_target_obs.
5515         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
5516         gdb_target_obs.
5517         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
5518         dink32-rom.o from gdb_target_obs.
5519         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
5520         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
5521         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
5522         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
5523
5524 2015-08-21  Pedro Alves  <palves@redhat.com>
5525
5526         * frame.c (null_frame_id): Explicitly zero-initialize.
5527
5528 2015-08-21  Tom Tromey  <tromey@redhat.com>
5529
5530         * dwarf2read.c (struct dwarf2_section_info): Rename field
5531         'asection' to 'section'.
5532         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
5533         (dwarf2_locate_sections, dwarf2_locate_sections)
5534         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
5535         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
5536         (dwarf2_locate_v2_dwp_sections): Adjust.
5537
5538 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
5539
5540         * top.h (gdb_in_secondary_prompt_p): Declare.
5541         * top.c (gdb_secondary_prompt_depth): Define.
5542         (gdb_in_secondary_prompt_p): Define.
5543         (gdb_readline_wrapper_cleanup): Decrement
5544         gdb_secondary_prompt_depth.
5545         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
5546         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
5547         are in a secondary prompt.
5548
5549 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
5550
5551         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
5552         emit the newline.
5553
5554 2015-08-21  Gary Benson  <gbenson@redhat.com>
5555
5556         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
5557
5558 2015-08-21  Gary Benson  <gbenson@redhat.com>
5559
5560         * target.h (struct target_ops) <to_fileio_open>: New argument
5561         warn_if_slow.  Update comment.  All implementations updated.
5562         (target_fileio_open_warn_if_slow): New declaration.
5563         * target.c (target_fileio_open): Renamed as...
5564         (target_fileio_open_1): ...this.  New argument warn_if_slow.
5565         Pass warn_if_slow to implementation.  Update debug printing.
5566         (target_fileio_open): New function.
5567         (target_fileio_open_warn_if_slow): Likewise.
5568         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
5569         target_fileio_open_warn_if_slow.
5570
5571 2015-08-21  Gary Benson  <gbenson@redhat.com>
5572
5573         * nat/linux-namespaces.c (linux_mntns_access_fs):
5574         Do not overwrite old_chain.
5575
5576 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
5577
5578         * arch/xtensa.h: New file.
5579         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
5580         (ps_get_thread_area): New function.
5581         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
5582         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
5583         * xtensa-tdep.c (osabi.h): New #include.
5584         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
5585         xtensa-specific hooks.
5586         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
5587         member and move the structure to arch/xtensa.h.
5588
5589 2015-08-21  Pedro Alves  <palves@redhat.com>
5590
5591         * remote.c (struct readahead_cache): New.
5592         (struct remote_state) <readahead_cache>: New field.
5593         (remote_open_1): Invalidate the cache.
5594         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
5595         functions.
5596         (remote_hostio_pwrite): Invalidate the readahead cache.
5597         (remote_hostio_pread): Rename to ...
5598         (remote_hostio_pread_vFile): ... this.
5599         (remote_hostio_pread_from_cache): New function.
5600         (remote_hostio_pread): Reimplement.
5601         (remote_hostio_close): Invalidate the readahead cache.
5602
5603 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
5604
5605         PR build/18843
5606         * procfs.c: Include "filestuff.h".
5607
5608 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
5609
5610         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
5611         curch.
5612         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
5613         cur_line or curch, instead call wmove().
5614         (init_win_info) [CMD_WIN]: Likewise.
5615         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
5616         instead call getcury().
5617         (tui_redisplay_readline): Don't set cur_line or curch.
5618         (tui_mld_erase_entire_line): Don't read cur_line, instead call
5619         getcury().
5620         (tui_cont_sig): Remove call to wmove.
5621         (tui_getc): Don't read cur_line or curch, instead call getcury()
5622         or getyx().  Don't set curch.
5623         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
5624         set cur_line or curch.  Always move cursor to (0,0).
5625
5626 2015-08-20  Pedro Alves  <palves@redhat.com>
5627
5628         * infrun.c (print_target_wait_results): Make extern.
5629         * infrun.h (print_target_wait_results): Declare.
5630         * remote.c (set_stop_requested_callback): Delete.
5631         (process_initial_stop_replies): New function.
5632         (remote_start_remote): Use it.
5633         (stop_reply_queue_length): New function.
5634
5635 2015-08-20  Pedro Alves  <palves@redhat.com>
5636
5637         * dwarf2read.c (process_full_comp_unit): To tell whether
5638         start_subfile managed to deduce a language, test for
5639         language_unknown instead of language_c.
5640
5641 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
5642
5643         * ada-lex.l: Reset the start condition to INITIAL in the rule that
5644         matches attributes.
5645
5646 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
5647
5648         * dwarf2read.c (dwarf2_string_attr): New function.
5649         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
5650         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
5651         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
5652         (anonymous_struct_prefix, prepare_one_comp_unit): Use
5653         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
5654
5655 2015-08-18  Doug Evans  <dje@google.com>
5656             Adrian Sendroiu <adrian.sendroiu@freescale.com>
5657
5658         PR mi/18833
5659         * cli/cli-logging.c (pop_output_files): Don't restore redirection
5660         if MI-like.
5661         * mi/mi-out.c: #include "vec.h".
5662         (ui_filep): New type.
5663         (DEV_VEC_P (ui_filep)): New type.
5664         (struct ui_out_data) <buffer, original_buffer>: Delete.
5665         (struct ui_out_data) <streams>: New member.
5666         (mi_ui_out_impl): Add data_destroy field.
5667         (mi_field_string, mi_field_fmt): Update.
5668         (mi_flush, mi_redirect, field_separator): Update.
5669         (mi_open, mi_close): Update.
5670         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
5671         (mi_out_data_ctor, mi_out_data_dtor): New functions.
5672         (mi_out_new): Call mi_out_data_ctor.
5673
5674 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
5675
5676         * remote.c (strprefix): New.
5677         (remote_parse_stop_reply): Use strprefix instead of strncmp
5678         to ensure exact match of keyword.
5679
5680 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
5681
5682         * gdb_bfd.c (debug_bfd_cache): New variable.
5683         (show_bfd_cache_debug): New function.
5684         (gdb_bfd_open): Add debug logging.
5685         (gdb_bfd_ref): Likewise.
5686         (gdb_bfd_unref): Likewise.
5687         (_initialize_gdb_bfd): Add new set/show command.
5688         * NEWS: Mention new command.
5689
5690 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
5691
5692         * gdb_bfd.c (bfd_sharing): New variable.
5693         (show_bfd_sharing): New function.
5694         (gdb_bfd_open): Check bfd_sharing variable.
5695         (_initialize_gdb_bfd): Add new set/show command.
5696         * NEWS: Mention new command.
5697
5698 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
5699
5700         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
5701         field.
5702         (struct gdb_bfd_cache_search): Likewise.
5703         (eq_bfd): Compare the size, inode, and device id fields.
5704         (gdb_bfd_open): Initialise the size, inode, and device id fields.
5705         (gdb_bfd_ref): Likewise.
5706         (gdb_bfd_unref): Likewise.
5707
5708 2015-08-18  Pedro Alves  <palves@redhat.com>
5709
5710         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
5711         target implements to_always_non_stop_p, call it.
5712         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
5713         (x86_linux_create_target): Install it as to_always_non_stop_p
5714         method.
5715
5716 2015-08-17  Doug Evans  <dje@google.com>
5717
5718         * ui-out.c (default_ui_out_impl): Add comment.
5719
5720 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
5721
5722         * d-exp.y (type_aggregate_p): New function.
5723         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
5724         (classify_inner_name): Likewise.
5725         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
5726
5727 2015-08-15  Doug Evans  <xdje42@gmail.com>
5728
5729         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
5730         updated.
5731         (add_psymbol_to_list): Ditto.
5732
5733 2015-08-15  Doug Evans  <xdje42@gmail.com>
5734
5735         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
5736         updated.  Call end_psymtab_common.
5737         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
5738         end_psymtab_common.
5739         (build_type_psymtabs_reader): Ditto.
5740         * psympriv.h (sort_pst_symbols): Delete.
5741         (end_psymtab_common): Declare.
5742         * psymtab.c (sort_pst_symbols): Make static.
5743         (end_psymtab_common): New function.
5744         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
5745
5746 2015-08-15  Doug Evans  <xdje42@gmail.com>
5747
5748         * defs.h (LANGUAGE_BITS): Define.
5749         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
5750         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
5751         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
5752         (minimal_symbol_type): Add nr_minsym_types.
5753         (MINSYM_TYPE_BITS): Define.
5754         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
5755         (domain_enum_tag): Add NR_DOMAINS.
5756         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
5757         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
5758
5759 2015-08-15  Doug Evans  <xdje42@gmail.com>
5760
5761         * objfiles.h: Whitespace cleanup.
5762         * psympriv.h: Whitespace cleanup.
5763         * psymtab.c: Whitespace/coding convention cleanup.
5764
5765 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
5766
5767         * inferior.c (detach_inferior_command): Don't call
5768         any_thread_of_process when pid is 0.
5769         (kill_inferior_command): Likewise.
5770
5771 2015-08-14  Doug Evans  <xdje42@gmail.com>
5772
5773         PR gdb/11833
5774         * NEWS: Document new /s modifier for the disassemble command.
5775         * cli/cli-cmds.c (disassemble_command): Add support for /s.
5776         (_initialize_cli_cmds): Update online docs of disassemble command.
5777         * disasm.c: #include "source.h".
5778         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
5779         All uses updated.
5780         (dis_line_entry): New struct.
5781         (hash_dis_line_entry, eq_dis_line_entry): New functions.
5782         (allocate_dis_line_table): New functions.
5783         (maybe_add_dis_line_entry, line_has_code_p): New functions.
5784         (dump_insns): New arg end_pc.  All callers updated.
5785         (do_mixed_source_and_assembly_deprecated): Renamed from
5786         do_mixed_source_and_assembly.  All callers updated.
5787         (do_mixed_source_and_assembly): New function.
5788         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
5789         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
5790         DISASSEMBLY_SOURCE.  All uses updated.
5791         (DISASSEMBLY_SOURCE): New macro.
5792         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
5793
5794 2015-08-14  Keith Seitz  <keiths@redhat.com>
5795
5796         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
5797         `typename' to `type_name' to avoid C++ reserved word.
5798
5799 2015-08-14  Keith Seitz  <keiths@redhat.com>
5800
5801         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
5802         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
5803         silence ARI errors.
5804
5805 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
5806
5807         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
5808         xstrprintf instead of malloc and sprintf.
5809         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
5810         (lex_one_token): Likewise.
5811
5812 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
5813
5814         * solib-svr4.c (read_program_header): Add base_addr argument to
5815         report the runtime address of the segment.
5816         (find_program_interpreter): Update read_program_header call to pass
5817         a NULL pointer for the new argument.
5818         (scan_dyntag): Add ptr_addr argument to report the runtime address
5819         of the tag payload.
5820         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
5821         read_program_header to get the base address of the dynamic segment.
5822         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
5823         read_program_header.
5824         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
5825
5826 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
5827
5828         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
5829
5830 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
5831
5832         * d-exp.y (%union): Add voidval.
5833         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
5834         name in the lexing stage.
5835         (PostfixExpression): Move symbol completion handling in grammar here
5836         from PrimaryExpression.
5837         (PrimaryExpression): Move routines to handle resolving identifier
5838         tokens in the grammar here from push_expression_name.
5839         (IdentifierExp): Remove the handling of alternating '.' and identifier
5840         tokens.
5841         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
5842         (BasicType): Remove C-style typename rules.
5843         (d_type_from_name, d_module_from_name, push_variable)
5844         (push_fieldnames, push_type_name, push_module_name)
5845         (push_expression_name): Remove.
5846         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
5847         (token_and_value): New type.
5848         (token_fifo, popping, name_obstack): New globals.
5849         (classify_name): New function.
5850         (classify_inner_name): Likewise.
5851         (yylex): Likewise.
5852         (d_parse): Initialize token_fifo, popping and name_obstack.
5853
5854 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
5855
5856         * Makefile.in (SFILES): Add d-namespace.c.
5857         (COMMON_OBS): Add d-namespace.o.
5858         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
5859         la_lookup_symbol_nonlocal callback function pointer.
5860         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
5861         (d_lookup_nested_symbol): New declaration.
5862         * d-namespace.c: New file.
5863
5864 2015-08-13  Pedro Alves  <palves@redhat.com>
5865
5866         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
5867         cleanup after the decref cleanup, not before.
5868
5869 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
5870
5871         * ada-lang.c: Include namespace.h
5872         (aux_add_nonlocal_symbols): Fix a function name in comment.
5873         (ada_add_block_renamings): New.
5874         (add_nonlocal_symbols): Add global renamings handling.
5875         (ada_lookup_symbol_list_worker): Move the symbol lookup part
5876         to...
5877         (ada_add_all_symbols): ... this new function.
5878         (ada_add_block_symbols): Try to match the input name against the
5879         "using directives list", perform a recursive symbol lookup on
5880         the matched declarations.
5881         * block.h (struct block): Move the_namespace to top-level as
5882         namespace_info. Remove the language_specific field.
5883         (BLOCK_NAMESPACE): Update access to the namespace_info field.
5884         * buildsym.h (using_directives): Rename into...
5885         (local_using_directives): ... this.
5886         (global_using_directives): New.
5887         (struct context_stack): Rename the using_directives field into
5888         local_using_directives.
5889         * buildsym.c (finish_block_internal): Deal with the proper
5890         using directives repository (local or global).
5891         (prepare_for_building): Reset local_using_directives. Assert
5892         that there is no pending global using directive.
5893         (reset_symtab_globals): Reset global_using_directives and
5894         local_using_directives.
5895         (end_symtab_get_static_block): Don't ignore symtabs that have
5896         only using directives.
5897         (push_context): Update references to local_using_directives.
5898         (buildsym_init): Do not reset using_directives.
5899         * cp-support.c: Include namespace.h.
5900         * cp-support.h (struct using_direct): Move to namespace.h.
5901         (cp_add_using_directives): Move to namespace.h.
5902         * cp-namespace.c: Include namespace.h
5903         (cp_add_using_directive): Move to namespace.c, rename it to
5904         add_using_directive, add a "using_directives" argument and use
5905         it as the pending using directives repository.  All callers
5906         updated.
5907         * dwarf2read.c (using_directives): New.
5908         (read_import_statement): Call using_directives.
5909         (read_func_scope): Update references to local_using_directives.
5910         (read_lexical_block_scope): Likewise.
5911         (read_namespace): Update the heading comment, call
5912         using_directives.
5913         * namespace.h: New file.
5914         * namespace.c: New file.
5915         * Makefile.in (SFILES): Add namespace.c.
5916         (COMMON_OBS): Add namespace.o
5917
5918 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
5919
5920         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
5921         compute RETADDR.
5922
5923 2015-08-12  Keith Seitz  <keiths@redhat.com>
5924
5925         * break-catch-throw.c (re_set_exception_catchpoint) Rename
5926         reserved C++ keyword "explicit" to "explicit_loc".
5927         * breakpoint.c (create_overlay_event_breakpoint)
5928         (create_longjmp_master_breakpoint)
5929         (create_std_terminate_master_breakpoint)
5930         (create_exception_master_breakpoint, update_static_tracepoint):
5931         Rename reserved C++ keyword "explicit" to "explicit_loc".
5932         * completer.c (collect_explicit_location_matches)
5933         (explicit_location_completer): Rename reserved C++ keyword
5934         "explicit" to "explicit_loc".
5935         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
5936         (canonicalize_linespec, create_sals_line_offset)
5937         (convert_linespec_to_sals, convert_explicit_location_to_sals)
5938         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
5939         "explicit" to "explicit_loc".
5940         * location.c (struct event_location) <explicit>: Rename to
5941         "explicit_loc".
5942         (initialize_explicit_location, new_explicit_location)
5943         (explicit_location_to_string_internal, explicit_location_to_linespec):
5944         Rename reserved C++ keyword "explicit" to "explicit_loc".
5945         * location.h (explicit_location_to_string)
5946         (explicit_location_to_linespec, initialize_explicit_location)
5947         (new_explicit_location): Rename reserved C++ keyword "explicit"
5948         to "explicit_loc".
5949         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
5950         keyword "explicit" to "explicit_loc".
5951
5952 2015-08-12  Keith Seitz  <keiths@redhat.com>
5953
5954         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
5955         and only call decode_line_1 when it is non-NULL.
5956
5957 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
5958
5959         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
5960         location address is not meaningful.
5961         (breakpoint_address_is_meaningful): Update comment.
5962
5963 2015-08-11  Keith Seitz  <keiths@redhat.com>
5964
5965         * NEWS: Mention explicit locations.
5966         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
5967         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
5968         (_initialize_breakpoint): Update documentation for
5969         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
5970
5971 2015-08-11  Keith Seitz  <keiths@redhat.com>
5972
5973         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
5974         explicit locations, options "--source", "--function",
5975         "--label", and "--line".
5976
5977 2015-08-11  Keith Seitz  <keiths@redhat.com>
5978
5979         * completer.c: Include location.h.
5980         (enum match_type): New enum.
5981         (location_completer): Rename to ...
5982         (linespec_completer): ... this.
5983         (collect_explicit_location_matches, backup_text_ptr)
5984         (explicit_location_completer): New functions.
5985         (location_completer): "New" function; handle linespec
5986         and explicit location completions.
5987         (complete_line_internal): Remove all location completer-specific
5988         handling.
5989         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
5990         (find_toplevel_char): Export.
5991         (linespec_parse_line_offset): Export.
5992         Issue error if STRING is not numerical.
5993         (gdb_get_linespec_parser_quote_characters): New function.
5994         * linespec.h (linespec_parse_line_offset): Declare.
5995         (get_gdb_linespec_parser_quote_characters): Declare.
5996         (is_ada_operator): Declare.
5997         (find_toplevel_char): Declare.
5998         (linespec_lexer_lex_keyword): Declare.
5999         * location.c (explicit_to_event_location): New function.
6000         (explicit_location_lex_one): New function.
6001         (string_to_explicit_location): New function.
6002         (string_to_event_location): Handle explicit locations.
6003         * location.h (explicit_to_event_location): Declare.
6004         (string_to_explicit_location): Declare.
6005
6006 2015-08-11  Keith Seitz  <keiths@redhat.com>
6007
6008         * break-catch-throw.c (re_set_exception_catchpoint): Convert
6009         linespec into explicit location.
6010         * breakpoint.c (create_overlay_breakpoint)
6011         (create_longjmp_master_breakpoint)
6012         (create_std_terminate_master_breakpoint)
6013         (create_exception_master_breakpoint): Convert linespec into explicit
6014         location.
6015         (update_static_tracepoint): Convert linespec into explicit location.
6016         * linespec.c (enum offset_relative_sign, struct line_offset): Move
6017         location.h.
6018         (struct linespec) <expression, expr_pc, source_filename>
6019         <function_name, label_name, line_offset>: Replace with ...
6020         <explicit>: ... this.
6021         <is_linespec>: New member.
6022         (PARSER_EXPLICIT): New accessor macro.
6023         (undefined_label_error): New function.
6024         (source_file_not_found_error): New function.
6025         (linespec_parse_basic): The parser result is now an explicit location.
6026         Use PARSER_EXPLICIT to access it.
6027         Use undefined_label_error.
6028         (canonicalize_linespec): Convert canonical linespec into explicit
6029         location.
6030         Move string representation of location to explicit_location_to_linespec
6031         and use it and explicit_location_to_string to save string
6032         representations of the canonical location.
6033         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
6034         explicit location.  Update all references.
6035         (convert_explicit_location_to_sals): New function.
6036         (parse_linespec): Use PARSER_EXPLICIT to access the parser
6037         result's explicit location.
6038         (linespec_state_constructor): Initialize is_linespec.
6039         Use PARSER_EXPLICIT.
6040         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
6041         result.
6042         (event_location_to_sals): For linespec locations, set is_linespec.
6043         Handle explicit locations.
6044         (decode_objc): 'ls' contains an explicit location now. Update all
6045         references.
6046         (symtabs_from_filename): Use source_file_not_found_error.
6047         * location.c (struct event_location.u) <explicit>: New member.
6048         (initialize_explicit_location): New function.
6049         (initialize_event_location): Initialize explicit locations.
6050         (new_explicit_location, get_explicit_location)
6051         (get_explicit_location_const): New functions.
6052         (explicit_to_string_internal): New function; most of contents moved
6053         from canonicalize_linespec.
6054         (explicit_location_to_string): New function.
6055         (explicit_location_to_linespec): New function.
6056         (copy_event_location, delete_event_location)
6057         (event_location_to_string_const, event_location_empty_p): Handle
6058         explicit locations.
6059         * location.h (enum offset_relative_sign, struct line_offset): Move
6060         here from linespec.h.
6061         (enum event_location_type): Add EXPLICIT_LOCATION.
6062         (struct explicit_location): New structure.
6063         (explicit_location_to_string): Declare.
6064         (explicit_location_to_linespec): Declare.
6065         (new_explicit_location, get_explicit_locationp
6066         (get_explicit_location_const, initialize_explicit_location): Declare.
6067
6068 2015-08-11  Keith Seitz  <keiths@redhat.com>
6069
6070         * break-catch-throw.c (re_set_exception_catchpoint): Convert
6071         linespec for stap probe to probe location.
6072         * breakpoint.c (create_longjmp_master_breakpoint)
6073         (create_exception_master_breakpoint): Likewise.
6074         (break_command_1): Remove local variable `arg_cp'.
6075         Check location type to set appropriate breakpoint ops methods.
6076         (trace_command): Likewise.
6077         * linespec.c (event_location_to_sals): Assert on probe locations.
6078         * location.c (EL_PROBE): Add macro definition.
6079         (new_probe_location, get_probe_location): New functions.
6080         (copy_event_location, delete_event_location, event_location_to_string)
6081         (string_to_event_location, event_location_empty_p): Handle probe
6082         locations.
6083         * location.h (enum event_location_type): Add PROBE_LOCATION.
6084         (new_probe_location, get_probe_location): Declare.
6085         * probe.c (parse_probes): Assert that LOCATION is a probe location.
6086         Convert linespec into probe location.
6087
6088 2015-08-11  Keith Seitz  <keiths@redhat.com>
6089
6090         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
6091         Convert linespec to address location.
6092         * linespec.c (canonicalize_linespec): Do not handle address
6093         locations here.
6094         (convert_address_location_to_sals): New function; contents moved
6095         from ...
6096         (convert_linespc_to_sals): ... here.
6097         (parse_linespec): Remove address locations from linespec grammar.
6098         Remove handling of address locations.
6099         (linespec_lex_to_end): Remove handling of address linespecs.
6100         (event_location_to_sals): Handle ADDRESS_LOCATION.
6101         (linespec_expression_to_pc): Export.
6102         * linespec.h (linespec_expression_to_pc): Add declaration.
6103         * location.c (struct event_location.u) <address>: New member.
6104         (new_address_location, get_address_location): New functions.
6105         (copy_event_location, delete_event_location, event_location_to_string)
6106         (string_to_event_location, event_location_empty_p): Handle address
6107         locations.
6108         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
6109         (new_address_location, get_address_location): Declare.
6110         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
6111         to address location.
6112         * spu-tdep.c (spu_catch_start): Likewise.
6113
6114 2015-08-11  Keith Seitz  <keiths@redhat.com>
6115
6116         * ax-gdb.c: Include location.h.
6117         (agent_command_1) Use linespec location instead of address
6118         string.
6119         * break-catch-throw.c: Include location.h.
6120         (re_set_exception_catchpoint): Use linespec locations instead
6121         of address strings.
6122         * breakpoint.c: Include location.h.
6123         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
6124         (create_std_terminate_master_breakpoint)
6125         (create_exception_master_breakpoint, update_breakpoints_after_exec):
6126         Use linespec location instead of address string.
6127         (print_breakpoint_location):  Use locations and
6128         event_location_to_string.
6129         Print extra_string for pending locations for non-MI streams.
6130         (print_one_breakpoint_location): Use locations and
6131         event_location_to_string.
6132         (init_raw_breakpoint_without_location): Initialize b->location.
6133         (create_thread_event_breakpoint): Use linespec location instead of
6134         address string.
6135         (init_breakpoint_sal): Likewise.
6136         Only save extra_string if it is non-NULL and not the empty string.
6137         Use event_location_to_string instead of `addr_string'.
6138         Constify `p' and `endp'.
6139         Use skip_spaces_const/skip_space_const instead of non-const versions.
6140         Copy the location into the breakpoint.
6141         If LOCATION is NULL, save the breakpoint address as a linespec location
6142         instead of an address string.
6143         (create_breakpoint_sal): Change `addr_string' parameter to a struct
6144         event_location. All uses updated.
6145         (create_breakpoints_sal): Likewise for local variable `addr_string'.
6146         (parse_breakpoint_sals): Use locations instead of address strings.
6147         Remove check for empty linespec with conditional.
6148         Refactor.
6149         (decode_static_tracepoint_spec): Make argument const and update
6150         function.
6151         (create_breakpoint): Change `arg' to a struct event_location and
6152         rename.
6153         Remove `copy_arg' and `addr_start'.
6154         If EXTRA_STRING is empty, set it to NULL.
6155         Don't populate `canonical' for pending breakpoints.
6156         Pass `extra_string' to find_condition_and_thread.
6157         Clear `extra_string' if `rest' was NULL.
6158         Do not error with "garbage after location" if setting a dprintf
6159         breakpoint.
6160         Copy the location into the breakpoint instead of an address string.
6161         (break_command_1): Use string_to_event_location and pass this to
6162         create_breakpoint instead of an address string.
6163         Check against `arg_cp' for a probe linespec.
6164         (dprintf_command): Use string_to_event_location and pass this to
6165         create_breakpoint instead of an address string.
6166         Throw an exception if no format string was specified.
6167         (print_recreate_ranged_breakpoint): Use event_location_to_string
6168         instead of address strings.
6169         (break_range_command, until_break_command)
6170         (init_ada_exception_breakpoint): Use locations instead
6171         of address strings.
6172         (say_where): Print out extra_string for pending locations.
6173         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
6174         the breakpoint.
6175         (base_breakpoint_create_sals_from_location): Use struct event_location
6176         instead of address string.
6177         Remove `addr_start' and `copy_arg' parameters.
6178         (base_breakpoint_decode_location): Use struct event_location instead of
6179         address string.
6180         (bkpt_re_set): Use locations instead of address strings.
6181         Use event_location_empty_p to check for unset location.
6182         (bkpt_print_recreate): Use event_location_to_string instead of
6183         an address string.
6184         Print out extra_string for pending locations.
6185         (bkpt_create_sals_from_location, bkpt_decode_location)
6186         (bkpt_probe_create_sals_from_location): Use struct event_location
6187         instead of address string.
6188         (bkpt_probe_decode_location): Use struct event_location instead of
6189         address string.
6190         (tracepoint_print_recreate): Use event_location_to_string to
6191         recreate the tracepoint.
6192         (tracepoint_create_sals_from_location, tracepoint_decode_location)
6193         (tracepoint_probe_create_sals_from_location)
6194         (tracepoint_probe_decode_location): Use struct event_location
6195         instead of address string.
6196         (dprintf_print_recreate): Use event_location_to_string to recreate
6197         the dprintf.
6198         (dprintf_re_set): Remove check for valid/missing format string.
6199         (strace_marker_create_sals_from_location)
6200         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
6201         (update_static_tracepoint): Use struct event_location instead of
6202         address string.
6203         (location_to_sals): Likewise.
6204         Pass `extra_string' to find_condition_and_thread.
6205         For newly resolved pending breakpoint locations, clear the location's
6206         string representation.
6207         Assert that the breakpoint's condition string is NULL when
6208         condition_not_parsed.
6209         (breakpoint_re_set_default, create_sals_from_location_default)
6210         (decode_location_default, trace_command, ftrace_command)
6211         (strace_command, create_tracepoint_from_upload): Use locations
6212         instead of address strings.
6213         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
6214         Use struct event_location instead of address string.
6215         Update all uses.
6216         <decode_location>: Likewise.
6217         (struct breakpoint) <addr_string>: Change to struct event_location
6218         and rename `location'.
6219         <addr_string_range_end>: Change to struct event_location and rename
6220         `location_range_end'.
6221         (create_breakpoint): Use struct event_location instead of address
6222         string.
6223         * cli/cli-cmds.c: Include location.h.
6224         (edit_command, list_command): Use locations instead of address strings.
6225         * elfread.c: Include location.h.
6226         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
6227         * guile/scm-breakpoint.c: Include location.h.
6228         (bpscm_print_breakpoint_smob): Use event_location_to_string.
6229         (gdbscm_register_breakpoint): Use locations instead of address
6230         strings.
6231         * linespec.c: Include location.h.
6232         (struct ls_parser) <stream>: Change to const char *.
6233         (PARSER_STREAM): Update.
6234         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
6235         keywords must be followed by whitespace.
6236         (canonicalize_linespec): Save a linespec location into `canonical'.
6237         Save a canonical linespec into `canonical'.
6238         (parse_linespec): Change `argptr' to const char * and rename `arg'.
6239         All uses updated.
6240         Update function description.
6241         (linespec_parser_new): Initialize `parser'.
6242         Update initialization of  parsing stream.
6243         (event_location_to_sals): New function.
6244         (decode_line_full): Change `argptr' to a struct event_location and
6245         rename it `location'.
6246         Use locations instead of address strings.
6247         Call event_location_to_sals instead of parse_linespec.
6248         (decode_line_1): Likewise.
6249         (decode_line_with_current_source, decode_line_with_last_displayed)
6250         Use locations instead of address strings.
6251         (decode_objc): Likewise.
6252         Change `argptr' to const char * and rename `arg'.
6253         (destroy_linespec_result): Delete the linespec result's location
6254         instead of freeing the address string.
6255         * linespec.h (struct linespec_result) <addr_string>: Change to
6256         struct event_location and rename to ...
6257         <location>: ... this.
6258         (decode_line_1, decode_line_full): Change `argptr' to struct
6259         event_location.  All callers updated.
6260         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
6261         (mi_cmd_break_insert_1): Use locations instead of address strings.
6262         Throw an error if there was "garbage" at the end of the specified
6263         linespec.
6264         * probe.c: Include location.h.
6265         (parse_probes): Change `argptr' to struct event_location.
6266         Use event locations instead of address strings.
6267         * probe.h (parse_probes): Change `argptr' to struct event_location.
6268         * python/py-breakpoint.c: Include location.h.
6269         (bppy_get_location): Constify local variable `str'.
6270         Use event_location_to_string.
6271         (bppy_init): Use locations instead of address strings.
6272         * python/py-finishbreakpoint.c: Include location.h.
6273         (bpfinishpy_init): Remove local variable `addr_str'.
6274         Use locations instead of address strings.
6275         * python/python.c: Include location.h.
6276         (gdbpy_decode_line): Use locations instead of address strings.
6277         * remote.c: Include location.h.
6278         (remote_download_tracepoint): Use locations instead of address
6279         strings.
6280         * spu-tdep.c: Include location.h.
6281         (spu_catch_start): Remove local variable `buf'.
6282         Use locations instead of address strings.
6283         * tracepoint.c: Include location.h.
6284         (scope_info): Use locations instead of address strings.
6285         (encode_source_string): Constify parameter `src'.
6286         * tracepoint.h (encode_source_string): Likewise.
6287
6288 2015-08-11  Keith Seitz  <keiths@redhat.com>
6289
6290         * Makefile.in (SFILES): Add location.c.
6291         (HFILES_NO_SRCDIR): Add location.h.
6292         (COMMON_OBS): Add location.o.
6293         * linespec.c (linespec_lex_to_end): New function.
6294         * linespec.h (linespec_lex_to_end): Declare.
6295         * location.c: New file.
6296         * location.h: New file.
6297
6298 2015-08-11  Keith Seitz  <keiths@redhat.com>
6299
6300         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
6301         Renamed to create_sals_from_location.
6302         <decode_linespec>: Renamed to decode_location.
6303         Update all callers.
6304         * breakpoint.c (create_sals_from_address_default): Renamed to ...
6305         (create_sals_from_location_default): ... this.
6306         (addr_string_to_sals): Renamed to ...
6307         (location_to_sals): ... this.
6308         (decode_linespec_default): Renamed to ...
6309         (decode_location_default): ... this.
6310         (base_breakpoint_create_sals_from_address): Renamed to ...
6311         (base_breakpoint_create_sals_from_location): ... this.
6312         (bkpt_create_sals_from_address): Renamed to ...
6313         (bkpt_create_sals_from_location): ... this.
6314         (bkpt_decode_linespec): Renamed to ...
6315         (bkpt_decode_location): ... this.
6316         (bkpt_probe_create_sals_from_address): Renamed to ...
6317         (bkpt_probe_create_sals_from_location): ... this.
6318         (tracepoint_create_sals_from_address): Renamed to ...
6319         (tracepoint_create_sals_from_location): ... this.
6320         (tracepoint_decode_linespec): Renamed to ...
6321         (tracepoint_decode_location): ... this.
6322         (tracepoint_probe_create_sals_from_address): Renamed to ...
6323         (tracepoint_probe_create_sals_from_location): ... this.
6324         (tracepoint_probe_decode_linespec): Renamed to ...
6325         (tracepoint_probe_decode_location): ... this.
6326         (strace_marker_create_sals_from_address): Renamed to ...
6327         (strace_marker_create_sals_from_location): ... this.
6328         (decode_linespec_default): Renamed to ...
6329         (decode_location_default): ... this.
6330
6331 2015-08-10  Doug Evans  <dje@google.com>
6332             Keith Seitz  <keiths@redhat.com>
6333
6334         PR gdb/17960
6335         * symtab.c (make_file_symbol_completion_list_1): Renamed from
6336         make_file_symbol_completion_list and made static.
6337         (make_file_symbol_completion_list): New function.
6338
6339 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
6340
6341         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
6342         trailing new-line at end of warning message.
6343         (proceed): Add i18n marker to error messages.
6344
6345 2015-08-07  Pedro Alves  <palves@redhat.com>
6346
6347         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
6348
6349 2015-08-07  Pedro Alves  <palves@redhat.com>
6350
6351         * s390-linux-tdep.c (is_non_branch_ril)
6352         (s390_displaced_step_copy_insn): New functions.
6353         (s390_displaced_step_fixup): Update comment.
6354         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
6355         gdbarch_displaced_step_copy_insn hook.
6356
6357 2015-08-07  Pedro Alves  <palves@redhat.com>
6358
6359         * infrun.c (displaced_step_prepare_throw): Return -1 if
6360         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
6361         comment.
6362         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
6363         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
6364         in file.
6365         (ppc_displaced_step_copy_insn): New function.
6366         (ppc_displaced_step_fixup): Update comment.
6367         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
6368         gdbarch_displaced_step_copy_insn hook.
6369         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
6370         NULL return.
6371         * gdbarch.h: Regenerate.
6372
6373 2015-08-07  Pedro Alves  <palves@redhat.com>
6374
6375         * inferior.h (struct inferior) <displaced_stepping_failed>: New
6376         field.
6377         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
6378         Return false if dispaced stepping failed before.
6379         (resume): Pass the current inferior to
6380         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
6381         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
6382         displaced_stepping_failed flag, and fall back to an in-line
6383         step-over.
6384
6385 2015-08-07  Pedro Alves  <palves@redhat.com>
6386
6387         * darwin-nat.c (darwin_stop): Rename to ...
6388         (darwin_interrupt): ... this.
6389         (_initialize_darwin_inferior): Adjust.
6390         * gnu-nat.c (gnu_stop): Delete.
6391         (gnu_target): Don't install gnu_stop.
6392         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
6393         (inf_ptrace_interrupt): ... this.
6394         (inf_ptrace_target): Adjust.
6395         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
6396         target_stop.
6397         * linux-nat (linux_nat_stop): Rename to ...
6398         (linux_nat_interrupt): ... this.
6399         (linux_nat_stop): Reimplement.
6400         (linux_nat_add_target): Install linux_nat_interrupt.
6401         * nto-procfs.c (nto_interrupt_twice): Rename to ...
6402         (nto_handle_sigint_twice): ... this.
6403         (nto_interrupt): Rename to ...
6404         (nto_handle_sigint): ... this.  Call target_interrupt instead of
6405         target_stop.
6406         (procfs_wait): Adjust.
6407         (procfs_stop): Rename to ...
6408         (procfs_interrupt): ... this.
6409         (init_procfs_targets): Adjust.
6410         * procfs.c (procfs_stop): Rename to ...
6411         (procfs_interrupt): ... this.
6412         (procfs_target): Adjust.
6413         * remote-m32r-sdi.c (m32r_stop): Rename to ...
6414         (m32r_interrupt): ... this.
6415         (init_m32r_ops): Adjust.
6416         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
6417         (gdbsim_interrupt_inferior): ... this.
6418         (gdbsim_stop): Rename to ...
6419         (gdbsim_interrupt): ... this.
6420         (gdbsim_cntrl_c): Adjust.
6421         (init_gdbsim_ops): Adjust.
6422         * remote.c (sync_remote_interrupt): Adjust comments.
6423         (remote_stop_as): Rename to ...
6424         (remote_interrupt_as): ... this.
6425         (remote_stop): Adjust comment.
6426         (remote_interrupt): New function.
6427         (init_remote_ops): Install remote_interrupt.
6428         * target.c (target_interrupt): New function.
6429         * target.h (struct target_ops) <to_interrupt>: New field.
6430         (target_interrupt): New declaration.
6431         * windows-nat.c (windows_stop): Rename to ...
6432         (windows_interrupt): ... this.
6433         * target-delegates.c: Regenerate.
6434
6435 2015-08-07  Pedro Alves  <palves@redhat.com>
6436
6437         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
6438         threads" as alternative to "switching back to stepped thread".
6439
6440 2015-08-07  Pedro Alves  <palves@redhat.com>
6441
6442         * NEWS: Mention "maint set/show target-non-stop".
6443         * breakpoint.c (update_global_location_list): Check
6444         target_is_non_stop_p instead of non_stop.
6445         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
6446         * infrun.c (show_can_use_displaced_stepping)
6447         (can_use_displaced_stepping_p, start_step_over_inferior):
6448         Likewise.
6449         (internal_resume_ptid): New function.
6450         (resume): Use it.
6451         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
6452         all-stop mode but the target is always in non-stop mode, start all
6453         the other threads that are implicitly resumed too.
6454         (for_each_just_stopped_thread, fetch_inferior_event)
6455         (adjust_pc_after_break, stop_all_threads): Check
6456         target_is_non_stop_p instead of non_stop.
6457         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
6458         with the target always in non-stop mode.
6459         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
6460         instead of non_stop.
6461         (switch_back_to_stepped_thread): Check target_is_non_stop_p
6462         instead of non_stop.
6463         (keep_going_stepped_thread): Use internal_resume_ptid.
6464         (stop_waiting): If in all-stop mode, and the target is in non-stop
6465         mode, stop all threads.
6466         (keep_going_pass): Likewise, when starting a new in-line step-over
6467         sequence.
6468         * linux-nat.c (get_pending_status, select_event_lwp)
6469         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
6470         target_is_non_stop_p instead of non_stop.
6471         (linux_nat_always_non_stop_p): New function.
6472         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
6473         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
6474         * target-delegates.c: Regenerate.
6475         * target.c (target_is_non_stop_p): New function.
6476         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
6477         (maint_set_target_non_stop_command)
6478         (maint_show_target_non_stop_command): New functions.
6479         (_initilize_target): Install "maint set/show target-non-stop"
6480         commands.
6481         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
6482         (target_non_stop_enabled): New declaration.
6483         (target_is_non_stop_p): New declaration.
6484
6485 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
6486
6487         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
6488         has a pending status, return true.
6489         * gdbthread.h: Include target/waitstatus.h.
6490         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
6491         stop_pc>: New fields.
6492         (struct thread_info) <resumed>: New field.
6493         (set_resumed): Declare.
6494         * infrun.c: Include "event-loop.h".
6495         (infrun_async_inferior_event_token, infrun_is_async): New globals.
6496         (infrun_async): New function.
6497         (clear_step_over_info): Add debug output.
6498         (displaced_step_in_progress_any_inferior): New function.
6499         (displaced_step_fixup): New returns int.
6500         (start_step_over): Handle in-line step-overs too.  Assert the
6501         thread is marked resumed.
6502         (resume_cleanups): Clear the thread's resumed flag.
6503         (resume): Set the thread's resumed flag.  Return early if the
6504         thread has a pending status.  Allow stepping a breakpoint with no
6505         signal.
6506         (proceed): Adjust to check 'resumed' instead of 'executing'.
6507         (clear_proceed_status_thread): If the thread has a pending status,
6508         and that status is a finished step, discard the pending status.
6509         (clear_proceed_status): Don't clear step_over_info here.
6510         (random_pending_event_thread, do_target_wait): New functions.
6511         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
6512         do_target_wait.
6513         (wait_one): New function.
6514         (THREAD_STOPPED_BY): New macro.
6515         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6516         (thread_stopped_by_hw_breakpoint): New functions.
6517         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
6518         functions.
6519         (handle_inferior_event): Also call set_resumed(false) on all
6520         threads implicitly stopped by the event.
6521         (restart_threads, resumed_thread_with_pending_status): New
6522         functions.
6523         (finish_step_over): If we were doing an in-line step-over before,
6524         and no longer are after trying to start a new step-over, restart
6525         all threads.  If we have multiple threads with pending events,
6526         save the current event and go through the event loop again.
6527         (handle_signal_stop): Return early if finish_step_over returns
6528         false.
6529         <random signal>: If we get a signal while stepping over a
6530         breakpoint in-line in non-stop mode, restart all threads.  Clear
6531         step_over_info before delivering the signal.
6532         (keep_going_stepped_thread): Use internal_error instead of
6533         gdb_assert.  Mark the thread as resumed.
6534         (keep_going_pass_signal): Assert the thread isn't already resumed.
6535         If some other thread is doing an in-line step-over, defer the
6536         resume.  If we just started a new in-line step-over, stop all
6537         threads.  Don't clear step_over_info.
6538         (infrun_async_inferior_event_handler): New function.
6539         (_initialize_infrun): Create async event handler with
6540         infrun_async_inferior_event_handler as callback.
6541         (infrun_async): New declaration.
6542         * target.c (target_async): New function.
6543         * target.h (target_async): Declare macro and readd as function
6544         declaration.
6545         * target/waitstatus.h (enum target_stop_reason)
6546         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6547         * thread.c (new_thread): Clear the new waitstatus field.
6548         (set_resumed): New function.
6549
6550 2015-08-07  Pedro Alves  <palves@redhat.com>
6551
6552         * infrun.c (keep_going_stepped_thread): New function, factored out
6553         from ...
6554         (switch_back_to_stepped_thread): ... here.
6555
6556 2015-08-07  Pedro Alves  <palves@redhat.com>
6557
6558         * infrun.c (currently_stepping): Extend intro comment.
6559         * target.h (target_resume): Extend intro comment.
6560
6561 2015-08-07  Pedro Alves  <palves@redhat.com>
6562
6563         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
6564         of inferior_ptid.  If the stepped thread vanished, return 0
6565         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
6566         the current stop_pc in log message.  Clear trap_expected if the
6567         thread advanced.  Don't pass currently_stepping to
6568         do_target_resume.
6569
6570 2015-08-07  Pedro Alves  <palves@redhat.com>
6571
6572         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
6573         * infrun.c (struct execution_control_state): Move higher up in the
6574         file.
6575         (reset_ecs): New function.
6576         (start_step_over): Now returns int.  Rewrite to use
6577         keep_going_pass_signal instead of manually starting a displaced step.
6578         (resume): Don't call set_running here.  If displaced stepping
6579         can't start now, clear trap_expected.
6580         (find_thread_needs_step_over): Delete function.
6581         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
6582         If the current thread needs a step over, push it in the step-over
6583         chain.  Don't set insert breakpoints nor call resume directly
6584         here.  Instead rewrite to use start_step_over and
6585         keep_going_pass_signal.
6586         (finish_step_over): New function.
6587         (handle_signal_stop): Call finish_step_over instead of
6588         start_step_over.
6589         (switch_back_to_stepped_thread): If the event thread needs another
6590         step-over do that first.  Use start_step_over.
6591         (keep_going_pass_signal): New function, factored out from ...
6592         (keep_going): ... here.
6593         (_initialize_infrun): Comment moved here.
6594         * thread.c (set_running_thread): New function.
6595         (set_running, finish_thread_state): Use set_running_thread.
6596
6597 2015-08-07  Pedro Alves  <palves@redhat.com>
6598
6599         * gdbthread.h (struct thread_info) <step_over_prev,
6600         step_over_next>: New fields.
6601         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
6602         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
6603         declarations.
6604         * infrun.c (struct displaced_step_request): Delete.
6605         (struct displaced_step_inferior_state) <step_request_queue>:
6606         Delete field.
6607         (displaced_step_prepare): Assert that trap_expected is set.  Use
6608         thread_step_over_chain_enqueue.  Split starting a new displaced
6609         step to ...
6610         (start_step_over): ... this new function.
6611         (resume): Assert the thread isn't waiting for a step over already.
6612         (proceed): Assert the thread isn't waiting for a step over
6613         already.
6614         (infrun_thread_stop_requested): Adjust to remove threads from the
6615         embedded step-over chain.
6616         (handle_inferior_event) <fork/vfork>: Call start_step_over after
6617         displaced_step_fixup.
6618         (handle_signal_stop): Call start_step_over after
6619         displaced_step_fixup.
6620         * infrun.h (step_over_queue_head): New declaration.
6621         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
6622         (thread_step_over_chain_next, thread_is_in_step_over_chain)
6623         (thread_step_over_chain_enqueue)
6624         (thread_step_over_chain_remove): New functions.
6625         (delete_thread_1): Remove thread from the step-over chain.
6626
6627 2015-08-07  Pedro Alves  <palves@redhat.com>
6628
6629         * infrun.c (thread_still_needs_step_over): Rename to ...
6630         (thread_still_needs_step_over_bp): ... this.
6631         (enum step_over_what): New.
6632         (thread_still_needs_step_over): Reimplement.
6633
6634 2015-08-07  Pedro Alves  <palves@redhat.com>
6635
6636         * remote.c (remote_wait_as): If not waiting for a stop reply,
6637         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
6638         requested, don't block waiting forever.
6639
6640 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
6641
6642         * infrun.c (adjust_pc_after_break): Now takes thread_info and
6643         waitstatus pointers instead of an ecs.  Adjust.
6644         (handle_inferior_event): Adjust caller.
6645
6646 2015-08-07  Pedro Alves  <palves@redhat.com>
6647
6648         * infrun.c (handle_inferior_event): If we get
6649         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
6650         mode, mark all threads of the exiting process as not-executing.
6651         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
6652         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
6653         exiting process, if inferior_ptid still points at a process.
6654         * thread.c (struct current_thread_cleanup) <next>: New field.
6655         (current_thread_cleanup_chain): New global.
6656         (restore_current_thread_ptid_changed): New function.
6657         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
6658         current_thread_cleanup_chain list.
6659         (make_cleanup_restore_current_thread): Add the cleanup data to the
6660         current_thread_cleanup_chain list.
6661         (_initialize_thread): Install restore_current_thread_ptid_changed
6662         as thread_ptid_changed observer.
6663
6664 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
6665
6666         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
6667         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
6668         smaller than expected.
6669
6670 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
6671
6672         * stack.c (get_frame_language): Moved ...
6673         * frame.c (get_frame_language): ... to here.
6674         * language.h (get_frame_language): Declaration moved to frame.h.
6675         * frame.h: Add language.h include, for language enum.
6676         (get_frame_language): Declaration moved from language.h.
6677         * language.c: Add frame.h include.
6678         * top.c: Add frame.h include.
6679         * symtab.h (struct obj_section): Declare.
6680         (struct cmd_list_element): Declare.
6681
6682 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
6683
6684         * language.c (show_language_command): Find selected frame before
6685         asking for the language of that frame.
6686         (set_language_command): Likewise.
6687         * language.h (get_frame_language): Add frame parameter.
6688         * stack.c (get_frame_language): Add frame parameter, assert
6689         parameter is not NULL, update comment and reindent.
6690         * top.c (check_frame_language_change): Pass the selected frame
6691         into get_frame_language.
6692
6693 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
6694
6695         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
6696         (pt_btrace_insn_flags): New.
6697         (ftrace_add_pt): Call pt_btrace_insn_flags.
6698         * btrace.h (btrace_insn_flag): New.
6699         (btrace_insn) <flags>: New.
6700         * record-btrace.c (btrace_insn_history): Print insn prefix.
6701         * NEWS: Announce it.
6702
6703 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
6704
6705         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
6706         * configure: Regenerate.
6707
6708 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
6709
6710         * Makefile.in (LIBICONV): Define.
6711         (CLIBS): Add LIBICONV.
6712         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
6713         * configure: Regenerate.
6714
6715 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
6716             Pedro Alves  <palves@redhat.com>
6717
6718         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
6719         (arm_set_abi): Likewise.
6720         * ax-general.c (ax_print): Likewise.
6721         * c-exp.y (exp : string_exp): Likewise.
6722         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
6723         (do_compile_dwarf_expr_to_c): Likewise.
6724         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
6725         Likewise.
6726         * dwarf2expr.c (execute_stack_op): Likewise.
6727         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
6728         (disassemble_dwarf_expression): Likewise.
6729         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
6730         (read_array_order): Likewise.
6731         (abbrev_table_read_table): Likewise.
6732         (read_attribute_value): Likewise.
6733         (skip_unknown_opcode): Likewise.
6734         (dwarf_decode_macro_bytes): Likewise.
6735         (dwarf_decode_macros): Likewise.
6736         * eval.c (value_f90_subarray): Likewise.
6737         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6738         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6739         * infrun.c (handle_command): Likewise.
6740         * memory-map.c (memory_map_start_memory): Likewise.
6741         * osabi.c (set_osabi): Likewise.
6742         * parse.c (operator_length_standard): Likewise.
6743         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
6744         single return point.
6745         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6746         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6747         (gdbpy_lookup_global_symbol): Likewise.
6748         * record-full.c (record_full_restore): Likewise.
6749         * regcache.c (regcache_register_status): Likewise.
6750         (regcache_raw_read): Likewise.
6751         (regcache_cooked_read): Likewise.
6752         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
6753         * symtab.c (initialize_ordinary_address_classes): Likewise.
6754         * target-debug.h (target_debug_print_signals): Likewise.
6755         * utils.c (do_restore_current_language): Likewise.
6756
6757 2015-08-06  Clem Dickey  <clemd@acm.org>
6758
6759         PR python/17136
6760         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
6761
6762 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
6763
6764         * complaints.c (enum complaint_series): Add newlines and remove
6765         out of date comment.
6766         (struct complaints) <series>: Change type to enum
6767         complaint_series and remove out of date comment.
6768         (symfile_complaint_hook): Use equivalent enum value
6769         ISOLATED_MESSAGE instead of 0.
6770
6771 2015-08-06  Pedro Alves  <palves@redhat.com>
6772
6773         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
6774         returned > 0.
6775
6776 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
6777
6778         * common/agent.c (symbol_list) <required>: Remove.
6779
6780 2015-08-06  Pedro Alves  <palves@redhat.com>
6781
6782         * target/waitstatus.h (enum target_stop_reason)
6783         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6784
6785 2015-08-05  Pedro Alves  <palves@redhat.com>
6786             Joel Brobecker  <brobecker@adacore.com>
6787
6788         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
6789         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
6790         case where BS->STOP is not set.
6791
6792 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
6793
6794         * nat/gdb_thread_db.h: Add copyright header.
6795         Protect against multiple inclusion.
6796
6797 2015-08-05  Yao Qi  <yao.qi@linaro.org>
6798
6799         * aarch64-linux-nat.c (get_thread_id): Remove.
6800         (debug_reg_change_callback): Call ptid_get_lwp instead of
6801         get_thread_id.
6802         (fetch_gregs_from_thread): Likewise.
6803         (store_gregs_to_thread): Likewise.
6804         (fetch_fpregs_from_thread): Likewise.
6805         (store_fpregs_to_thread): Likewise.
6806         (aarch64_linux_get_debug_reg_capacity): Likewise.
6807         * arm-linux-nat.c (get_thread_id): Remove.
6808         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6809         * xtensa-linux-nat.c (get_thread_id): Remove.
6810         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6811         * arm-linux-nat.c (get_thread_id): Remove.
6812         (GET_THREAD_ID): Remove.
6813         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
6814         (store_fpregs, fetch_regs, store_regs): Likewise.
6815         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
6816         (fetch_vfp_regs, store_vfp_regs): Likewise.
6817         (arm_linux_read_description): Likewise.
6818         (arm_linux_get_hwbp_cap): Likewise.
6819         * xtensa-linux-nat.c (get_thread_id): Remove.
6820         (GET_THREAD_ID): Remove.
6821         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
6822         GET_THREAD_ID.
6823
6824 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
6825
6826         * python/py-linetable.c: Fix case of Linetable to LineTable
6827         in docstrings and code comments.
6828         * python/py-symtab.c: Same.
6829
6830 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
6831
6832         * infcmd.c (signal_command): Call do_cleanups for args_chain.
6833
6834 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
6835
6836         PR gdb/18767
6837         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
6838         use.
6839
6840 2015-08-04  Pedro Alves  <palves@redhat.com>
6841
6842         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
6843         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
6844         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
6845         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
6846         (td_thr_validate_ftype, td_thr_get_info_ftype)
6847         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
6848         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
6849         New typedefs.
6850         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
6851         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
6852         local macros and use them instead of verbose_dlsym and dlsym
6853         calls.
6854
6855 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
6856
6857         * nios2-tdep.h: Include opcode/nios2.h here.
6858         (NIOS2_CDX_OPCODE_SIZE): New.
6859         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
6860         * nios2-tdep.c: Don't include opcode/nios2.h here.
6861         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
6862         4-byte read fails.
6863         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
6864         (nios2_match_addi, nios2_match_orhi): Likewise.
6865         (nios2_match_stw, nios2_match_ldw): Likewise.
6866         (nios2_match_rdctl): Likewise.
6867         (nios2_match_stwm, nios2_match_ldwm): New.
6868         (nios2_match_branch): Add cases for R2 encodings.
6869         (nios2_match_jmpi, nios2_match_calli): Likewise.
6870         (nios2_match_jmpr, nios2_match_callr): Likewise.
6871         (nios2_match_break, nios2_match_trap): Likewise.
6872         (nios2_in_epilogue_p): Add R2 support.
6873         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
6874         prologues.
6875         (nios2_breakpoint_from_pc): Handle R2 instructions.
6876         (nios2_get_next_pc): Likewise.  Adjust call to
6877         tdep->syscall_next_pc.
6878         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
6879         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
6880         instruction field macros instead of literal hex values.
6881         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
6882         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
6883         Use size field from OP instead of assuming all instructions
6884         are the same size.
6885         (nios2_linux_init_abi): Register appropriate unwinder for mach.
6886
6887 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
6888
6889         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
6890         variable warning with some compilers.
6891
6892 2015-08-03  Yao Qi  <yao.qi@linaro.org>
6893
6894         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
6895         in comment.  Replace "rw" with "type".
6896         (arm_linux_remove_watchpoint): Change type of "rw" to
6897         "enum target_hw_bp_type".
6898
6899 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
6900
6901         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
6902         lookup_symbol.
6903         * ft32-tdep.c (ft32_skip_prologue): Likewise.
6904         * moxie-tdep.c (moxie_skip_prologue): Likewise.
6905         * mt-tdep.c (mt_skip_prologue): Likewise.
6906         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6907
6908 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
6909
6910         * ada-exp.y (write_object_renaming): Replace struct
6911         ada_symbol_info with struct block_symbol.  Update field
6912         references accordingly.
6913         (block_lookup, select_possible_type_sym): Likewise.
6914         (find_primitive_type): Likewise.  Also update call to
6915         ada_lookup_symbol to extract the symbol itself.
6916         (write_var_or_type, write_name_assoc): Likewise.
6917         * ada-lang.h (struct ada_symbol_info): Remove.
6918         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
6919         struct block_symbol.
6920         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
6921         (ada_lookup_symbol): Return struct block_symbol instead of a
6922         mere symbol.
6923         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
6924         with struct block_symbol.
6925         (resolve_subexp, ada_resolve_function, sort_choices,
6926         user_select_syms, is_nonfunction, add_defn_to_vec,
6927         num_defns_collected, defns_collected,
6928         symbols_are_identical_enums, remove_extra_symbols,
6929         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
6930         ada_lookup_symbol_list, ada_iterate_over_symbols,
6931         ada_lookup_encoded_symbol, get_var_value): Likewise.
6932         (ada_lookup_symbol): Return a block_symbol instead of a mere
6933         symbol.  Replace struct ada_symbol_info with struct
6934         block_symbol.
6935         (ada_lookup_symbol_nonlocal): Likewise.
6936         (standard_lookup): Make block passing explicit through
6937         lookup_symbol_in_language.
6938         * ada-tasks.c (get_tcb_types_info): Update the calls to
6939         lookup_symbol_in_language to extract the mere symbol out of the
6940         returned value.
6941         (ada_tasks_inferior_data_sniffer): Likewise.
6942         * ax-gdb.c (gen_static_field): Likewise for the call to
6943         lookup_symbol.
6944         (gen_maybe_namespace_elt): Deal with struct block_symbol from
6945         lookup functions.
6946         (gen_expr): Likewise.
6947         * c-exp.y: Likewise.  Remove uses of block_found.
6948         (lex_one_token, classify_inner_name, c_print_token): Likewise.
6949         (classify_name): Likewise.  Rename the "sym" local variable to
6950         "bsym".
6951         * c-valprint.c (print_unpacked_pointer): Likewise.
6952         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
6953         "sym" parameter from struct symbol * to struct block_symbol.
6954         Use it to remove uses of block_found.  Deal with struct
6955         block_symbol from lookup functions.
6956         (gcc_convert_symbol): Likewise.  Update the call to
6957         convert_symbol_sym.
6958         * compile/compile-object-load.c (compile_object_load): Deal with
6959         struct block_symbol from lookup functions.
6960         * cp-namespace.c (cp_lookup_nested_symbol_1,
6961         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
6962         cp_search_static_and_baseclasses,
6963         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
6964         cp_lookup_symbol_imports_or_template,
6965         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
6966         lookup_namespace_scope, cp_lookup_nonlocal,
6967         find_symbol_in_baseclass): Return struct block_symbol instead of
6968         mere symbols and deal with struct block_symbol from lookup
6969         functions.
6970         * cp-support.c (inspect_type, replace_typedefs,
6971         cp_lookup_rtti_type): Deal with struct block_symbol from
6972         lookup functions.
6973         * cp-support.h (cp_lookup_symbol_nonlocal,
6974         cp_lookup_symbol_from_namespace,
6975         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
6976         Return struct block_symbol instead of mere symbols.
6977         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
6978         push_module_name):
6979         Deal with struct block_symbol from lookup functions.  Remove
6980         uses of block_found.
6981         * eval.c (evaluate_subexp_standard): Update call to
6982         cp_lookup_symbol_namespace.
6983         * f-exp.y: Deal with struct block_symbol from lookup functions.
6984         Remove uses of block_found.
6985         (yylex): Likewise.
6986         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
6987         lookup_enum, lookup_template_type, check_typedef): Deal with
6988         struct block_symbol from lookup functions.
6989         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
6990         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
6991         (gdbscm_lookup_global_symbol): Likewise.
6992         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
6993         * go-exp.y: Likewise.  Remove uses of block_found.
6994         (package_name_p, classify_packaged_name, classify_name):
6995         Likewise.
6996         * infrun.c (insert_exception_resume_breakpoint): Likewise.
6997         * jv-exp.y (push_variable): Likewise.
6998         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
6999         * language.c (language_bool_type): Likewise.
7000         * language.h (struct language_defn): Update
7001         la_lookup_symbol_nonlocal to return a struct block_symbol rather
7002         than a mere symbol.
7003         * linespec.c (find_label_symbols): Deal with struct block_symbol
7004         from lookup functions.
7005         * m2-exp.y: Likewise.  Remove uses of block_found.
7006         (yylex): Likewise.
7007         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7008         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
7009         * p-exp.y: Likewise.  Remove uses of block_found.
7010         (yylex): Likewise.
7011         * p-valprint.c (pascal_val_print): Likewise.
7012         * parse.c (write_dollar_variable): Likewise.  Remove uses of
7013         block_found.
7014         * parser-defs.h (struct symtoken): Turn the SYM field into a
7015         struct block_symbol.
7016         * printcmd.c (address_info): Deal with struct block_symbol from
7017         lookup functions.
7018         * python/py-frame.c (frapy_read_var): Likewise.
7019         * python/py-symbol.c (gdbpy_lookup_symbol,
7020         gdbpy_lookup_global_symbol): Likewise.
7021         * skip.c (skip_function_command): Likewise.
7022         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
7023         block_symbol instead of a mere symbol.
7024         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
7025         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
7026         * solib.c (solib_global_lookup): Likewise.
7027         * solist.h (solib_global_lookup): Likewise.
7028         (struct target_so_ops): Update lookup_lib_global_symbol to
7029         return a struct block_symbol rather than a mere symbol.
7030         * source.c (select_source_symtab): Deal with struct block_symbol
7031         from lookup functions.
7032         * stack.c (print_frame_args, iterate_over_block_arg_vars):
7033         Likewise.
7034         * symfile.c (set_initial_language): Likewise.
7035         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
7036         block_symbol.
7037         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
7038         (struct symbol_cache_slot): Turn the FOUND field into a struct
7039         block_symbol.
7040         (block_found): Remove.
7041         (eq_symbol_entry): Update to deal with struct block_symbol in
7042         cache slots.
7043         (symbol_cache_lookup): Return a struct block_symbol rather than
7044         a mere symbol.
7045         (symbol_cache_mark_found): Add a BLOCK parameter to fill
7046         appropriately the cache slots.  Update callers.
7047         (symbol_cache_dump): Update cache slots handling to the type
7048         change.
7049         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
7050         lookup_symbol_aux, lookup_local_symbol,
7051         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
7052         lookup_symbol_in_objfile_symtabs,
7053         lookup_symbol_in_objfile_from_linkage_name,
7054         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
7055         lookup_symbol_in_static_block, lookup_static_symbol,
7056         lookup_global_symbol):
7057         Return a struct block_symbol rather than a mere symbol.  Deal
7058         with struct block_symbol from other lookup functions.  Remove
7059         uses of block_found.
7060         (lookup_symbol_in_block): Remove uses of block_found.
7061         (struct global_sym_lookup_data): Turn the RESULT field into a
7062         struct block_symbol.
7063         (lookup_symbol_global_iterator_cb): Update references to the
7064         RESULT field.
7065         (search_symbols): Deal with struct block_symbol from lookup
7066         functions.
7067         * symtab.h (struct block_symbol): New structure.
7068         (block_found): Remove.
7069         (lookup_symbol_in_language, lookup_symbol,
7070         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
7071         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
7072         lookup_global_symbol_from_objfile): Return a struct block_symbol
7073         rather than just a mere symbol.  Update comments to remove
7074         mentions of block_found.
7075         * valops.c (find_function_in_inferior,
7076         value_struct_elt_for_reference, value_maybe_namespace_elt,
7077         value_of_this):  Deal with struct block_symbol from lookup
7078         functions.
7079         * value.c (value_static_field, value_fn_field): Likewise.
7080
7081 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
7082
7083         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
7084         instead of integer.
7085
7086 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
7087             Pedro Alves  <palves@redhat.com>
7088
7089         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
7090         type or value instead of integer.
7091         (aarch64_linux_insert_watchpoint): Likewise.
7092         (aarch64_linux_remove_watchpoint): Likewise.
7093         * ada-lang.c (ada_op_print_tab): Likewise.
7094         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
7095         (amd64_linux_syscall_record_common): Likewise.
7096         * arch-utils.c (target_byte_order_user): Likewise.
7097         (default_byte_order): Likewise.
7098         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
7099         (arm_linux_get_hwbp_type): Likewise.
7100         (arm_linux_hw_watchpoint_initialize): Likewise.
7101         (arm_linux_insert_watchpoint): Likewise.
7102         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
7103         (arm_linux_syscall_record): Likewise.
7104         * breakpoint.c (update_watchpoint): Likewise.
7105         (breakpoint_here_p): Likewise.
7106         (bpstat_print): Likewise.
7107         (enable_breakpoint_disp): Likewise.
7108         * c-lang.c (c_op_print_tab): Likewise.
7109         * cli/cli-decode.c (add_info_alias): Likewise.
7110         * d-lang.c (d_op_print_tab): Likewise.
7111         * eval.c (evaluate_subexp_standard): Likewise.
7112         * f-exp.y (dot_ops): Likewise.
7113         (f77_keywords): Likewise.
7114         * f-lang.c (f_op_print_tab): Likewise.
7115         * go-lang.c (go_op_print_tab): Likewise.
7116         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
7117         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
7118         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
7119         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
7120         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
7121         (struct scm_from_stringn_data): Likewise.
7122         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
7123         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
7124         (ia64_linux_remove_watchpoint): Likewise.
7125         (ia64_linux_can_use_hw_breakpoint): Likewise.
7126         * infrun.c (print_stop_event): Likewise.
7127         * jv-lang.c (java_op_print_tab): Likewise.
7128         * linux-nat.c (linux_proc_xfer_partial): Likewise.
7129         * linux-nat.h (struct lwp_info): Likewise.
7130         * linux-thread-db.c (enable_thread_event): Likewise.
7131         * m2-lang.c (m2_op_print_tab): Likewise.
7132         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
7133         (mi_cmd_stack_list_variables): Likewise.
7134         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
7135         * mi/mi-out.c (mi_table_begin): Likewise.
7136         (mi_table_header): Likewise.
7137         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
7138         (mips_linux_insert_watchpoint): Likewise.
7139         (mips_linux_remove_watchpoint): Likewise.
7140         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
7141         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
7142         (mips_linux_watch_type_to_irw): Likewise.
7143         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
7144         (procfs_insert_hw_watchpoint): Likewise.
7145         (procfs_remove_hw_watchpoint): Likewise.
7146         (procfs_hw_watchpoint): Likewise.
7147         (procfs_can_use_hw_breakpoint): Likewise.
7148         (procfs_remove_hw_watchpoint): Likewise.
7149         (procfs_insert_hw_watchpoint): Likewise.
7150         * p-lang.c (pascal_op_print_tab): Likewise.
7151         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
7152         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
7153         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
7154         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
7155         (procfs_insert_watchpoint): Likewise.
7156         (procfs_remove_watchpoint): Likewise.
7157         * psymtab.c (recursively_search_psymtabs): Likewise.
7158         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
7159         (m32r_insert_watchpoint): Likewise.
7160         * remote-mips.c (mips_can_use_watchpoint): Likewise.
7161         (mips_insert_watchpoint): Likewise.
7162         (mips_remove_watchpoint): Likewise.
7163         * remote.c (watchpoint_to_Z_packet): Likewise.
7164         (remote_insert_watchpoint): Likewise.
7165         (remote_remove_watchpoint): Likewise.
7166         (remote_check_watch_resources): Likewise.
7167         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
7168         (s390_remove_watchpoint): Likewise.
7169         (s390_can_use_hw_breakpoint): Likewise.
7170         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7171         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
7172         * target.h (struct target_ops): Likewise.
7173         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7174         * ui-out.c (struct ui_out_hdr): Likewise.
7175         (append_header_to_list): Likewise.
7176         (get_next_header): Likewise.
7177         (verify_field): Likewise.
7178         (ui_out_begin): Likewise.
7179         (ui_out_field_int): Likewise.
7180         (ui_out_field_fmt_int): Likewise.
7181         (ui_out_field_skip): Likewise.
7182         (ui_out_field_string): Likewise.
7183         (ui_out_field_fmt): Likewise.
7184         * varobj.c (new_variable): Likewise.
7185         * x86-nat.c (x86_insert_watchpoint): Likewise.
7186         (x86_remove_watchpoint): Likewise.
7187         (x86_can_use_hw_breakpoint): Likewise.
7188         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
7189         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
7190         previously anonymous enumeration type..
7191         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
7192         value.
7193         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
7194         (target_debug_print_enum_bptype): New.
7195         * target-delegates.c: Regenerate.
7196
7197 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
7198
7199         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
7200         already says and disallow non-stack memory writes in the prologue.
7201
7202 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
7203
7204         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
7205         reflect how current GCC emits stack overflow checks.  Match
7206         both trap and break instructions for backward compatbility.
7207         Disallow other trap and break instructions in the prologue.
7208
7209 2015-07-30  Pedro Alves  <palves@redhat.com>
7210
7211         PR threads/18600
7212         * linux-nat.c (wait_lwp): Report to the core when thread group
7213         leader exits.
7214
7215 2015-07-30  Pedro Alves  <palves@redhat.com>
7216             Simon Marchi  <simon.marchi@ericsson.com>
7217
7218         PR threads/18600
7219         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
7220         mark the new thread as resumed.  Remove STOPPING parameter.
7221         (wait_lwp): Adjust call to linux_handle_extended_wait.
7222         (linux_nat_filter_event): Adjust call to
7223         linux_handle_extended_wait.
7224         (resume_stopped_resumed_lwps): Add debug output.
7225
7226 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
7227
7228         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
7229         isize argument.
7230         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
7231         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
7232         gdbarch_fast_tracepoint_valid_at.
7233         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
7234         * gdbarch.h: Regenerate.
7235         * gdbarch.c: Regenerate.
7236         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
7237         argument.  Do not set it.
7238         * remote.c (remote_download_tracepoint): Adjust call to
7239         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
7240         the instruction length.
7241
7242 2015-07-30  Yao Qi  <yao.qi@linaro.org>
7243
7244         * arm-tdep.h (enum gdb_regnum): Move it to ...
7245         * arch/arm.h: ... here.  New file.
7246         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
7247
7248 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
7249
7250         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
7251         Change its type to int *.
7252         (decode_br): Rename link argument to is_blr.  Change its type to
7253         int *.
7254         (decode_cb): Rename op argument to is_cbnz.  Change its type to
7255         int *.
7256         (decode_tb): Rename op argument to is_tbnz.  Change its type to
7257         int *.  Set is_tbnz to either 1 or 0.
7258         (aarch64_analyze_prologue): Change type of is_link to int.  Add
7259         new variables is_cbnz and is_tbnz.  Adjust call to
7260         aarch64_decode_cb and aarch64_decode_tb.
7261
7262 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
7263
7264         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
7265         parameter.
7266         (mips_linux_new_thread): Likewise.
7267         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
7268
7269 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
7270
7271         * top.c: Include "tui/tui.h".
7272         (undo_terminal_modifications_before_exit): New static function.
7273         (quit_force): Use it.
7274
7275 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
7276
7277         * target.c (terminal_state): Initialize to terminal_is_ours.
7278
7279 2015-07-29  Yao Qi  <yao.qi@linaro.org>
7280
7281         PR record/18691
7282         * dcache.c (dcache_read_memory_partial): Call
7283         raw_memory_xfer_partial.
7284         * target.c (raw_memory_xfer_partial): Make it non-static.
7285         * target.h (raw_memory_xfer_partial): Declare.
7286
7287 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
7288
7289         * c-valprint.c (c_val_print_array): Consider addressable memory
7290         unit size.
7291         (c_val_print_ptr): Likewise.
7292         (c_val_print_int): Likewise.
7293         * findvar.c (read_frame_register_value): Likewise.
7294         * valarith.c (find_size_for_pointer_math): Likewise.
7295         (value_ptrdiff): Likewise.
7296         (value_subscripted_rvalue): Likewise.
7297         * valops.c (read_value_memory): Likewise (and rename variables).
7298         (value_assign): Likewise.
7299         (value_repeat): Likewise.
7300         (value_array): Likewise.
7301         (value_slice): Likewise.
7302         * valprint.c (generic_val_print_ptr): Likewise.
7303         (generic_val_print_enum): Likewise.
7304         (generic_val_print_bool): Likewise.
7305         (generic_val_print_int): Likewise.
7306         (generic_val_print_char): Likewise.
7307         (generic_val_print_float): Likewise.
7308         (generic_val_print_decfloat): Likewise.
7309         (generic_val_print_complex): Likewise.
7310         (val_print_scalar_formatted): Likewise.
7311         (val_print_array_elements): Likewise.
7312         * value.c (set_value_parent): Likewise.
7313         (value_contents_copy_raw): Likewise.
7314         (set_internalvar_component): Likewise.
7315         (value_primitive_field): Likewise.
7316         (value_fetch_lazy): Likewise.
7317         * value.h (read_value_memory): Update comment.
7318
7319 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
7320
7321         * value.c (get_value_arch): New function.
7322         * value.h (get_value_arch): New declaration.
7323
7324 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
7325
7326         * value.c (struct value): Update comments.
7327
7328 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
7329
7330         * gdbtypes.c (type_length_units): New function.
7331         * gdbtypes.h (type_length_units): New declaration.
7332         (struct type) <length>: Update comment.
7333
7334 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7335
7336         * valprint.c (generic_val_print): Factor out complex
7337         printing code to ...
7338         (generic_val_print_complex): ... this new function.
7339
7340 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7341
7342         * valprint.c (generic_val_print): Factor out decfloat
7343         printing code to ...
7344         (generic_val_print_decfloat): ... this new function.
7345
7346 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7347
7348         * valprint.c (generic_val_print): Factor out float
7349         printing code to ...
7350         (generic_val_print_float): ... this new function.
7351
7352 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7353
7354         * valprint.c (generic_val_print): Factor out char
7355         printing code to ...
7356         (generic_val_print_char): ... this new function.
7357
7358 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7359
7360         * valprint.c (generic_val_print): Factor out integer
7361         printing code to ...
7362         (generic_val_print_int): ... this new function.
7363
7364 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7365
7366         * valprint.c (generic_val_print): Factor out bool
7367         printing code to ...
7368         (generic_val_print_bool): ... this new function.
7369
7370 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7371
7372         * valprint.c (generic_val_print): Factor out function/method
7373         printing code to ...
7374         (generic_val_print_func): ... this new function.
7375
7376 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7377
7378         * valprint.c (generic_val_print): Factor out flags
7379         printing code to ...
7380         (generic_val_print_flags): ... this new function.
7381
7382 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7383
7384         * valprint.c (generic_val_print): Factor out enum
7385         printing code to ...
7386         (generic_val_print_enum): ... this new function.
7387
7388 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7389
7390         * valprint.c (generic_val_print): Factor out reference
7391         printing code to ...
7392         (generic_val_print_ref): ... this new function.
7393
7394 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7395
7396         * valprint.c (generic_val_print): Factor out memberptr
7397         printing code to ...
7398         (generic_val_print_memberptr): ... this new function.
7399
7400 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7401
7402         * valprint.c (generic_val_print): Factor out pointer
7403         printing code to ...
7404         (generic_val_print_ptr): ... this new function.
7405
7406 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7407
7408         * valprint.c (generic_val_print): Factor out array
7409         printing code to ...
7410         (generic_val_print_array): ... this new function.
7411
7412 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7413
7414         * valprint.c (generic_val_print): Factor out
7415         print_unpacked_pointer code to ...
7416         (print_unpacked_pointer): ... this new function.
7417
7418 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
7419
7420         * event-top.c (handle_sigterm): Don't inspect
7421         target_can_async_p.  Always set the quit flag and always mark
7422         the async signal handler.
7423
7424 2015-07-27  Yao Qi  <yao.qi@linaro.org>
7425
7426         * Makefile.in (REMOTE_EXAMPLES): Remove it.
7427
7428 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
7429
7430         * remote.c (read_ptid): Return null_ptid when no thread id
7431         is found.
7432         (remote_current_thread): Add log warning for malformed
7433         qC reply.
7434         (remote_start_remote): Add log warning when current thread
7435         not found.
7436
7437 2015-07-24  Pedro Alves  <palves@redhat.com>
7438
7439         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
7440         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
7441         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
7442
7443 2015-07-24  Pedro Alves  <palves@redhat.com>
7444
7445         PR gdb/18717
7446         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
7447         is resumed, and extend the debug log.
7448
7449 2015-07-24  Pedro Alves  <palves@redhat.com>
7450
7451         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
7452
7453 2015-07-24  Pedro Alves  <palves@redhat.com>
7454
7455         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
7456         sys/ptrace.h.
7457         * alpha-linux-nat.c: Likewise.
7458         * amd64-linux-nat.c: Likewise.
7459         * arm-linux-nat.c: Likewise.
7460         * hppa-linux-nat.c: Likewise.
7461         * i386-linux-nat.c: Likewise.
7462         * ia64-linux-nat.c: Likewise.
7463         * linux-fork.c: Likewise.
7464         * linux-nat.c: Likewise.
7465         * m32r-linux-nat.c: Likewise.
7466         * m68klinux-nat.c: Likewise.
7467         * mips-linux-nat.c: Likewise.
7468         * nat/linux-btrace.c: Likewise.
7469         * nat/linux-ptrace.c: Likewise.
7470         * nat/linux-ptrace.h
7471         * nat/mips-linux-watch.c: Likewise.
7472         * nat/x86-linux-dregs.c: Likewise.
7473         * ppc-linux-nat.c: Likewise.
7474         * s390-linux-nat.c: Likewise.
7475         * spu-linux-nat.c: Likewise.
7476         * tilegx-linux-nat.c: Likewise.
7477         * x86-linux-nat.c: Likewise.
7478         * xtensa-linux-nat.c: Likewise.
7479
7480 2015-07-24  Pedro Alves  <palves@redhat.com>
7481
7482         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
7483         __ptrace_request as first parameter type instead of int.
7484         (PTRACE_TYPE_ARG1): Define.
7485         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
7486         that casts first argument to PTRACE_TYPE_ARG1.
7487         * config.in: Regenerate.
7488         * configure: Regenerate.
7489
7490 2015-07-24  Pedro Alves  <palves@redhat.com>
7491
7492         * gdb_ptrace.h: Move ...
7493         * nat/gdb_ptrace.h: ... here.
7494         * inf-ptrace.c: Adjust.
7495
7496 2015-07-24  Pedro Alves  <palves@redhat.com>
7497
7498         * acinclude.m4: Include ptrace.m4.
7499         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
7500         * ptrace.m4: ... to this new file.
7501
7502 2015-07-23  Doug Evans  <dje@google.com>
7503
7504         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
7505         (load_cu): Handle dummy CUs.
7506         (dw2_do_instantiate_symtab, process_queuef): Ditto.
7507         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
7508
7509 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
7510
7511         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
7512         documentation to say that it returns a list rather than
7513         a FrozenSet.
7514         (linetable_object_methods): Update the docstring of the
7515         "source_line" entry.
7516
7517 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
7518
7519         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
7520         type to the recursive call instead of the original (maybe
7521         TYPE_CODE_TYPEDEF) type.
7522
7523 2015-07-23  Yao Qi  <yao.qi@linaro.org>
7524
7525         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
7526         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
7527         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
7528
7529 2015-07-21  Yao Qi  <yao.qi@linaro.org>
7530
7531         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
7532         Move it to nat/aarch64-linux-hw-point.c.
7533         (aarch64_linux_child_post_startup_inferior): Update.
7534         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
7535         New function.
7536         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
7537         Declare it.
7538
7539 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
7540
7541         * common/btrace-common.c (btrace_data_append): Change case label.
7542
7543 2015-07-20  Yao Qi  <yao.qi@linaro.org>
7544
7545         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
7546         Re-indent the code.
7547         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
7548         "unsigned long long".
7549
7550 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
7551
7552         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
7553         to be set for SEC_ALLOC sections too.
7554
7555 2015-07-17  Yao Qi  <yao.qi@linaro.org>
7556
7557         * Makefile.in (HFILES_NO_SRCDIR): Add
7558         nat/aarch64-linux-hw-point.h.
7559         (aarch64-linux-hw-point.o): New rule.
7560         * nat/aarch64-linux-hw-point.h: New file.
7561         * nat/aarch64-linux-hw-point.c: New file.
7562         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
7563         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7564         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7565         (AARCH64_HWP_ALIGNMENT): Likewise.
7566         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
7567         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
7568         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
7569         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
7570         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
7571         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
7572         (struct aarch64_debug_reg_state): Likewise.
7573         (struct arch_lwp_info): Likewise.
7574         (aarch64_linux_set_debug_regs): Likewise.
7575         (aarch64_notify_debug_reg_change): Remove static.
7576         (aarch64_align_watchpoint): Likewise.
7577         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
7578         (aarch64_watchpoint_length): Likewise.
7579         (aarch64_point_encode_ctrl_reg): Likewise
7580         (aarch64_point_is_aligned): Likewise.
7581         (aarch64_dr_state_insert_one_point): Likewise.
7582         (aarch64_dr_state_remove_one_point): Likewise.
7583         (aarch64_handle_breakpoint): Likewise.
7584         (aarch64_handle_aligned_watchpoint): Likewise.
7585         (aarch64_handle_unaligned_watchpoint): Likewise.
7586         (aarch64_handle_watchpoint): Likewise.
7587         * config/aarch64/linux.mh (NAT_FILE): Add
7588         aarch64-linux-hw-point.o.
7589
7590 2015-07-17  Yao Qi  <yao.qi@linaro.org>
7591
7592         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
7593         state and don't call aarch64_get_debug_reg_state.  All callers
7594         update.
7595         (aarch64_linux_insert_hw_breakpoint): Call
7596         aarch64_get_debug_reg_state earlier.
7597         (aarch64_linux_remove_hw_breakpoint): Likewise.
7598         (aarch64_handle_aligned_watchpoint): Add argument state and
7599         don't call aarch64_get_debug_reg_state.  All callers update.
7600         (aarch64_handle_unaligned_watchpoint): Likewise.
7601         (aarch64_handle_watchpoint): Add argument state.
7602         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
7603         earlier.
7604         (aarch64_linux_remove_watchpoint): Likewise.
7605
7606 2015-07-17  Yao Qi  <yao.qi@linaro.org>
7607
7608         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
7609         debug_printf.
7610         (aarch64_handle_unaligned_watchpoint): Likewise.
7611
7612 2015-07-17  Yao Qi  <yao.qi@linaro.org>
7613
7614         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
7615         argument type's type to 'enum target_hw_bp_type'.
7616         (aarch64_dr_state_remove_one_point): Likewise.
7617         (aarch64_handle_breakpoint): Likewise.
7618         (aarch64_linux_insert_hw_breakpoint): Likewise.
7619         (aarch64_linux_remove_hw_breakpoint): Likewise.
7620         (aarch64_handle_aligned_watchpoint): Likewise.
7621
7622 2015-07-17  Yao Qi  <yao.qi@linaro.org>
7623
7624         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
7625         ptid_get_pid instead of get_thread_id.
7626
7627 2015-07-17  Yao Qi  <yao.qi@linaro.org>
7628
7629         * remote.c (get_current_thread): Initialise ptid to null_ptid.
7630         (add_current_inferior_and_thread): Don't initialise ptid.
7631
7632 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
7633
7634         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
7635         unavailable if invalid.
7636
7637 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7638
7639         Revert the previous 6 commits:
7640         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7641         Move gdb_regex* to common/
7642         Prepare linux_find_memory_regions_full & co. for move
7643         Move linux_find_memory_regions_full & co.
7644         gdbserver build-id attribute generator
7645         Validate symbol file using build-id
7646
7647 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
7648             Jan Kratochvil  <jan.kratochvil@redhat.com>
7649
7650         Validate symbol file using build-id.
7651         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
7652         and 'show validate-build-id'.  Add build-id attribute.
7653         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
7654         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
7655         * solib-frv.c (_initialize_frv_solib): Ditto.
7656         * solib-spu.c (set_spu_solib_ops): Ditto.
7657         * solib-svr4.c: Include rsp-low.h.
7658         (NOTE_GNU_BUILD_ID_NAME): New define.
7659         (svr4_validate): New function.
7660         (svr4_copy_library_list): Duplicate field build_id.
7661         (library_list_start_library): Parse 'build-id' attribute.
7662         (svr4_library_attributes): Add 'build-id' attribute.
7663         (_initialize_svr4_solib): Assign validate value.
7664         * solib-target.c (solib.h): Include.
7665         (_initialize_solib_target): Assign validate value.
7666         * solib.c (validate_build_id, show_validate_build_id): New.
7667         (solib_map_sections): Use ops->validate.
7668         (clear_so): Free build_id.
7669         (default_solib_validate): New function.
7670         (_initialize_solib): Add "validate-build-id".
7671         * solib.h (default_solib_validate): New declaration.
7672         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
7673         (target_so_ops): New field 'validate'.
7674
7675 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
7676             Jan Kratochvil  <jan.kratochvil@redhat.com>
7677
7678         gdbserver build-id attribute generator.
7679         * features/library-list-svr4.dtd (library-list-svr4): New
7680         'build-id' attribute.
7681
7682 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
7683             Jan Kratochvil  <jan.kratochvil@redhat.com>
7684
7685         Move linux_find_memory_regions_full & co.
7686         * linux-tdep.c (nat/linux-maps.h): Include.
7687         (gdb_regex.h): Remove the include.
7688         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
7689         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
7690         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
7691         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
7692         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
7693         and target/target.h.
7694         (struct smaps_vmflags, read_mapping, decode_vmflags)
7695         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
7696         (linux_find_memory_regions_full): Move from linux-tdep.c.
7697         * nat/linux-maps.h (read_mapping): New declaration.
7698         (linux_find_memory_region_ftype, enum filterflags): Moved from
7699         linux-tdep.c.
7700         (linux_find_memory_regions_full): New declaration.
7701         * target.c (target/target-utils.h): Include.
7702         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
7703         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
7704         definitions to target/target-utils.c.
7705         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
7706         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
7707         from target.c.
7708         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
7709         (read_alloc): New declaration.
7710         (read_stralloc_func_ftype): New typedef.
7711         (read_stralloc): New declaration.
7712         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
7713
7714 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
7715             Jan Kratochvil  <jan.kratochvil@redhat.com>
7716
7717         Prepare linux_find_memory_regions_full & co. for move.
7718         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
7719         (linux_find_memory_regions_full): Change signature and prepare
7720         for moving to linux-maps.
7721         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
7722         (linux_find_memory_regions_thunk): New.
7723         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
7724         (linux_find_memory_regions_gdb): New.
7725         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
7726         (linux_make_mappings_corefile_notes): Use
7727         linux_find_memory_regions_gdb.
7728         * target.c (read_alloc_pread_ftype): New typedef.
7729         (target_fileio_read_alloc_1_pread): New function.
7730         (read_alloc): Refactor from target_fileio_read_alloc_1.
7731         (read_stralloc_func_ftype): New typedef.
7732         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
7733         (read_stralloc): Refactored from target_fileio_read_stralloc.
7734         (target_fileio_read_stralloc): New implementation, use read_stralloc.
7735
7736 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7737
7738         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
7739         common/gdb_regex.h.
7740         (COMMON_OBS): Add gdb_regex.o.
7741         (gdb_regex.o): New.
7742         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
7743         --without-included-regex and USE_INCLUDED_REGEX.
7744         * common/gdb_regex.c: New file from utils.c functions.
7745         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
7746         file wrapping define name.
7747         * configure: Rebuilt.
7748         * configure.ac (gdb_use_included_regex, --without-included-regex)
7749         (USE_INCLUDED_REGEX): Move them to common/common.m4.
7750         * gdb_regex.h: Move it to common/gdb_regex.h.
7751         * utils.c: Remove include gdb_regex.h.
7752         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
7753         (compile_rx_or_error): Move them to common/gdb_regex.c.
7754
7755 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
7756             Jan Kratochvil  <jan.kratochvil@redhat.com>
7757
7758         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7759         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
7760         common/target-utils.h.
7761         (COMMON_OBS): Add target-utils.o.
7762         (linux-maps.o, target-utils.o): New.
7763         * target/target-utils.c: New file.
7764         * target/target-utils.h: New file.
7765         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
7766         * config/i386/linux64.mh (NATDEPFILES): Ditto.
7767         * nat/linux-maps.c: New file.
7768         * nat/linux-maps.h: New file.
7769
7770 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
7771             Pedro Alves <palves@redhat.com>
7772
7773         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
7774         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
7775         (perf_event_read_bts): Change the type of SIZE and READ.
7776         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
7777         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
7778         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
7779         mmap page.
7780         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
7781         buffer size to UINT_MAX.
7782         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
7783         DATA_TAIL.
7784         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
7785         <last_head>: Change type.
7786         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
7787         * common/btrace-common.c (btrace_data_append): Change the type of
7788         SIZE.
7789         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
7790         check.
7791
7792 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
7793
7794         * gdbtypes.h (CHECK_TYPEDEF): Remove.
7795         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
7796         with check_typedef.
7797         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
7798         (ada_array_length): Likewise.
7799         (find_parallel_type_by_descriptive_type): Likewise.
7800         (ada_check_typedef): Likewise.
7801         * arm-tdep.c (arm_return_in_memory): Likewise.
7802         * ax-gdb.c (gen_trace_static_fields): Likewise.
7803         (gen_struct_ref_recursive): Likewise.
7804         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7805         (variable: block COLONCOLON name): Likewise.
7806         (qualified_name: TYPENAME COLONCOLON name): Likewise.
7807         * c-lang.c (classify_type): Likewise.
7808         * c-typeprint.c (c_print_type): Likewise.
7809         (c_print_typedef): Likewise.
7810         (c_type_print_base): Likewise.
7811         * c-valprint.c (c_val_print): Likewise.
7812         * compile/compile-c-types.c (convert_type): Likewise.
7813         * compile/compile-object-load.c (get_out_value_type): Likewise.
7814         * completer.c (add_struct_fields): Likewise.
7815         (expression_completer): Likewise.
7816         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
7817         (cp_lookup_nested_symbol_1): Likewise.
7818         (cp_lookup_nested_symbol): Likewise.
7819         * cp-valprint.c (cp_print_value_fields): Likewise.
7820         (cp_print_static_field): Likewise.
7821         * d-valprint.c (d_val_print): Likewise.
7822         * eval.c (evaluate_subexp_standard): Likewise.
7823         (evaluate_subexp_for_sizeof): Likewise.
7824         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7825         * f-typeprint.c (f_type_print_base): Likewise.
7826         * f-valprint.c (f_val_print): Likewise.
7827         * gdbtypes.c (get_discrete_bounds): Likewise.
7828         (create_array_type_with_stride): Likewise.
7829         (type_name_no_tag_or_error): Likewise.
7830         (lookup_struct_elt_type): Likewise.
7831         (get_unsigned_type_max): Likewise.
7832         (internal_type_vptr_fieldno): Likewise.
7833         (set_type_vptr_fieldno): Likewise.
7834         (internal_type_vptr_basetype): Likewise.
7835         (set_type_vptr_basetype): Likewise.
7836         (get_vptr_fieldno): Likewise.
7837         (is_integral_type): Likewise.
7838         (is_scalar_type): Likewise.
7839         (is_scalar_type_recursive): Likewise.
7840         (distance_to_ancestor): Likewise.
7841         (is_unique_ancestor_worker): Likewise.
7842         (check_types_equal): Likewise.
7843         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
7844
7845 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
7846
7847         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
7848         also test for language_d.
7849         (dwarf2_compute_name): Likewise.
7850         (read_func_scope): Likewise.
7851         (read_structure_type): Likewise.
7852         (new_symbol_full): Likewise.
7853         (determine_prefix): Likewise.
7854         (read_import_statement): Use dot as the separator for language_d.
7855         (typename_concat): Likewise, but don't prefix the D main function.
7856
7857 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
7858
7859         * nat/linux-namespaces.c (setns): Rename from this ...
7860         (do_setns): ... to this.  Support calling setns if it exists.
7861         (mnsh_handle_setns): Call do_setns.
7862
7863 2015-07-13  Yao Qi  <yao.qi@linaro.org>
7864
7865         * exec.c (exec_file_attach): Add period at the end of error
7866         message.
7867
7868 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7869
7870         * tui/tui-win.c (window_name_completer): New function.
7871         (focus_completer): Call window_name_completer.  All old content
7872         moved into window_name_completer.
7873         (winheight_completer): New function.
7874         (_initialize_tui_win): Rename variable.  Add completer to
7875         winheight command.  Update doc string on winheight.
7876
7877 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
7878
7879         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
7880         all nios2 mach variants.
7881
7882 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
7883
7884         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
7885         of target_read_memory.
7886
7887 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
7888
7889         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
7890         string copy.
7891         (parse_scrolling_args): Likewise.
7892
7893 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
7894
7895         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
7896         names in this function.
7897
7898 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
7899
7900         * tui/tui-data.h (SRC_NAME): Convert to lower case.
7901         (CMD_NAME): Likewise.
7902         (DATA_NAME): Likewise.
7903         (DISASSEM_NAME): Likewise.
7904         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
7905         (tui_set_win_height): Likewise.
7906         (parse_scrolling_args): Likewise.
7907
7908 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
7909
7910         * record-btrace.c (record_btrace_goto_begin)
7911         (record_btrace_goto_end, record_btrace_goto): Move call to
7912         print_stack_frame ...
7913         (record_btrace_set_replay): ... here.  Set stop_pc.
7914         * record-full.c (record_full_goto_entry): Set stop_pc.
7915
7916 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7917
7918         * NEWS: Mention support for tracepoints on aarch64-linux.
7919
7920 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7921
7922         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
7923         function.  Return 1.
7924         (the_low_target): Install it.
7925
7926 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7927
7928         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
7929         * gdb.trace/collection.exp: Likewise.
7930         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
7931         * gdb.trace/mi-trace-unavailable.exp: Likewise.
7932         * gdb.trace/report.exp: Likewise.
7933         * gdb.trace/trace-break.exp: Likewise.
7934         * gdb.trace/unavailable.exp: Likewise.
7935         * gdb.trace/while-dyn.exp: Likewise.
7936
7937 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7938
7939         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
7940         (aarch64_gen_return_address): New function.
7941         (aarch64_gdbarch_init): Hook it.
7942
7943 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7944
7945         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
7946         swallow NOT_AVAILABLE_ERROR.
7947         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
7948         available_p is not set.
7949         (aarch64_stub_frame_unwind_stop_reason): New function.
7950         (aarch64_stub_unwind): Install it.
7951
7952 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7953
7954         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
7955         field.
7956         (aarch64_make_prologue_cache_1): New function, factored out from
7957         aarch64_make_prologue_cache.  Do not allocate cache.  Set
7958         available_p.
7959         (aarch64_make_prologue_cache): Reimplement wrapping
7960         aarch64_make_prologue_cache_1, and swallowing
7961         NOT_AVAILABLE_ERROR.
7962         (aarch64_prologue_frame_unwind_stop_reason): New function.
7963         Return UNWIND_UNAVAILABLE if available_p is not set.
7964         (aarch64_prologue_unwind): Install it.
7965         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
7966         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
7967         frame_id_build_unavailable_stack if available_p is not set.
7968
7969 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7970
7971         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
7972         fields.
7973         (aarch64_scan_prologue): Set prev_pc.
7974         (aarch64_make_prologue_cache): Set func.
7975         (aarch64_make_stub_cache): Set prev_pc.
7976         (aarch64_prologue_this_id): Remove local variables id, pc and
7977         func.  Read prev_pc and func from cache.
7978         (aarch64_stub_this_id): Read prev_pc from cache.
7979
7980 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7981
7982         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
7983         argument this_cache.  Remove unused local variables reg and
7984         unwound_fp.  Return early if this_cache is already set.  Set
7985         this_cache.
7986         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
7987
7988 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7989
7990         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
7991         New argument this_cache.  Return early if this_cache is already
7992         set.  Set this_cache.
7993         (aarch64_prologue_this_id): Update call to
7994         aarch64_make_prologue_cache.
7995         (aarch64_prologue_prev_register): Likewise.
7996         (aarch64_normal_frame_base): Likewise.
7997
7998 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
7999
8000         * c-valprint.c (c_val_print): Factor out memberptr printing code
8001         from c_val_print to ...
8002         (c_val_print_memberptr): ... this new function.
8003
8004 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
8005
8006         * c-valprint.c (c_val_print): Factor out int printing code to ...
8007         (c_val_print_int): ... this new function.
8008
8009 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
8010
8011         * c-valprint.c (c_val_print): Factor out struct and union
8012         printing code to ...
8013         (c_val_print_struct): ... this new function ...
8014         (c_val_print_union): ... and this new function.
8015
8016 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
8017
8018         * c-valprint.c (c_val_print): Factor out pointer printing code
8019         to ...
8020         (c_val_print_ptr): ... this new function.
8021
8022 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
8023
8024         * c-valprint.c (c_valprint): Factor our array printing code from
8025         c_val_print to ...
8026         (c_val_print_array): ... this new function.
8027
8028 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
8029
8030         * c-valprint.c (c_val_print): Factor out pointer printing code
8031         to ...
8032         (print_unpacked_pointer): ... this new function.
8033
8034 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
8035
8036         * c-valprint.c (c_val_print): Remove an assignment to i and move
8037         its declaration.
8038
8039 2015-07-09  Yao Qi  <yao.qi@linaro.org>
8040
8041         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
8042         argument ptid.  Update comments.  Caller update.
8043
8044 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
8045
8046         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
8047         mnt packets.
8048
8049 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
8050
8051         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
8052
8053 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
8054
8055         * progspace.c (delete_program_space): Add missing spaces.
8056
8057 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
8058
8059         * inferior.c (delete_inferior_1): Rename to ...
8060         (delete_inferior): ..., remove 'silent' parameter, delete
8061         program space when unused and remove call to prune_program_spaces.
8062         Remove the old, unused, delete_inferior.
8063         (delete_inferior_silent): Remove.
8064         (prune_inferiors): Change call from delete_inferior_1 to
8065         delete_inferior and remove 'silent' parameter. Remove call to
8066         prune_program_spaces.
8067         (remove_inferior_command): Idem.
8068         * inferior.h (delete_inferior_1): Rename to...
8069         (delete_inferior): ..., remove 'silent' parameter and remove the
8070         original delete_inferior.
8071         (delete_inferior_silent): Remove.
8072         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
8073         delete_inferior_1 to delete_inferior and remove 'silent'
8074         parameter.
8075         * progspace.c (prune_program_spaces): Remove.
8076         (pspace_empty_p): Rename to...
8077         (program_space_empty_p): ... and make non-static.
8078         (delete_program_space): New.
8079         * progspace.h (prune_program_spaces): Remove declaration.
8080         (program_space_empty_p): New declaration.
8081         (delete_program_space): New declaration.
8082         * monitor.c (monitor_close): Replace call to
8083         delete_thread_silent and delete_inferior_silent with
8084         discard_all_inferiors.
8085
8086 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
8087
8088         * defs.h (deprecated_register_changed_hook): Remove prototype.
8089         * interps.c (clear_iterpreter_hooks): Remove reference to
8090         deprecated_register_changed_hook.
8091         * top.c (deprecated_register_changed_hook): Remove prototype.
8092         * valops.c (value_assign): Remove reference to
8093         deprecated_register_changed_hook.
8094         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
8095         Add comment documenting the function.
8096         (tui_register_changed_observer): Define.
8097         (tui_install_hooks): Remove reference to
8098         deprecated_register_changed_hook.  Set
8099         tui_register_changed_observer.
8100         (tui_remove_hooks): Remove reference to
8101         deprecated_register_changed_hook.  Unset
8102         tui_register_changed_observer.
8103
8104 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8105
8106         PR compile/18484
8107         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
8108
8109 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
8110
8111         PR exp/18617
8112         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
8113
8114 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
8115
8116         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
8117
8118 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
8119
8120         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
8121         Use safe_strerror() instead of strerror().
8122
8123 2015-07-07  Yao Qi  <yao.qi@linaro.org>
8124
8125         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
8126         * features/arm-with-m-fpa-layout.c: Regenerated.
8127         * features/arm-with-m-vfp-d16.xml: Likewise.
8128         * features/arm-with-m-vfp-d16.c: Regenerated.
8129         * features/arm-with-m.xml: Likewise.
8130         * features/arm-with-m.c: Regenerated.
8131         * features/arm-with-neon.xml: Likewise.
8132         * features/arm-with-neon.c: Regenerated.
8133         * features/arm-with-vfpv2.xml: Likewise.
8134         * features/arm-with-vfpv2.c: Regenerated.
8135         * features/arm-with-vfpv3.xml: Likewise.
8136         * features/arm-with-vfpv3.c: Regenerated.
8137
8138 2015-07-07  Yao Qi  <yao.qi@linaro.org>
8139
8140         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
8141         arm-linux-nat.c.
8142         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
8143         elf/external.h.
8144         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
8145         if target is 32-bit.
8146         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
8147         if target is 32-bit.
8148         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
8149         if target is 32-bit.
8150         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
8151         if target is 32-bit.
8152         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
8153         (aarch64_linux_read_description): Return the right target
8154         description.
8155         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
8156         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
8157         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
8158         arm-linux-tdep.o.
8159
8160 2015-07-07  Yao Qi  <yao.qi@linaro.org>
8161
8162         * aarch32-linux-nat.c: New file.
8163         * aarch32-linux-nat.h: New file.
8164         * arm-linux-nat.c: Include aarch32-linux-nat.h.
8165         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
8166         aarch32_gp_regcache_supply.
8167         (store_regs): Move code to aarch32-linux-nat.c.  Call
8168         aarch32_gp_regcache_collect.
8169         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
8170         aarch32_vfp_regcache_supply.
8171         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
8172         aarch32_vfp_regcache_collect.
8173         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
8174
8175 2015-07-07  Yao Qi  <yao.qi@linaro.org>
8176
8177         * arm-linux-nat.c (store_fpregister): Remove.
8178         (store_register): Likewise.
8179         (fetch_fpregister): Likewise.
8180         (fetch_register): Likewise.
8181         (arm_linux_store_inferior_registers): Call store_regs and
8182         store_fpregs instead.
8183         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
8184         fetch_regs instead.
8185
8186 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
8187
8188         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
8189         and focus commands.
8190
8191 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
8192
8193         * NEWS: Create a new section for the next release branch.
8194         Rename the section of the current branch, now that it has
8195         been cut.
8196
8197 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
8198
8199         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
8200         * version.in: Bump version to 7.10.50.DATE-cvs.
8201
8202 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
8203
8204         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
8205         breakpoints in a special way.
8206         (remove_breakpoint): Likewise.
8207         (mark_breakpoints_out): Likewise.
8208
8209 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
8210
8211         * doc/gdb.texinfo (TUI): Add comma after @xref.
8212
8213 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
8214
8215         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
8216         instead of casting the structure type.
8217
8218 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
8219
8220         * valops.c (search_struct_field): Remove OFFSET parameter.
8221         (value_cast_structs): Adjust calls to search_struct_field.
8222         (value_struct_elt): Same.
8223         (find_overload_match): Same.
8224
8225 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
8226
8227         * value.c (value_fetch_lazy): Update comment, change return
8228         value to void.
8229         * value.h (value_fetch_lazy): Change return value to void.
8230
8231 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
8232
8233         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
8234         (tui_win_name): Make parameter and result const.
8235         * tui/tui-data.h (tui_win_name): Make parameter and result const.
8236
8237 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
8238
8239         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
8240         use printf_unfiltered.
8241         (set_mpx_cmd): Add missing trailing space to command string
8242         literal.
8243         (_initialize_i386_tdep): Give the "mpx" prefix command its
8244         correct name.
8245
8246 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
8247
8248         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
8249         (enum rx_frame_type): New.
8250         (struct rx_prologue): Add new field `frame_type'.
8251         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
8252         parameter in the prologue struct.  Add code for recording
8253         locations of PC and PSW for fast interrupt and exception frames.
8254         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
8255         (rx_analyze_frame_prologue): Add `frame_type' parameter.
8256         (rx_frame_type): New function.
8257         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
8258         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
8259         `this_cache'.
8260         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
8261         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
8262         RX_FRAME_TYPE_FAST_INTERRUPT.
8263         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
8264         (rx_frame_sniffer, rx_exception_sniffer): New functions.
8265         (rx_frame_unwind): Use rx_frame_sniffer instead of
8266         default_frame_sniffer.
8267         (rx_frame_unwind): New unwinder.
8268         (rx_gdbarch_init): Register new unwinder.
8269
8270 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
8271
8272         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
8273         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
8274         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
8275         and RX_FPSW_REGNUM.
8276         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
8277
8278 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8279
8280         Fix GCC false warning.
8281         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
8282
8283 2015-07-02  Yao Qi  <yao.qi@linaro.org>
8284
8285         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
8286         typo in the debugging message.
8287
8288 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
8289
8290         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
8291         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
8292         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
8293         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
8294         (btrace_maint_clear): New.
8295         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
8296         (pt_print_packet, btrace_maint_decode_pt)
8297         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
8298         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
8299         (maint_btrace_packet_history_cmd)
8300         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
8301         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
8302         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
8303         (maint_info_btrace_cmd, _initialize_btrace): New.
8304         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
8305         (btrace_maint_packet_history, btrace_maint_info): New.
8306         (btrace_thread_info) <maint>: New.
8307         * NEWS: Announce it.
8308
8309 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
8310
8311         * btrace.c (btrace_fetch): Append the new trace data.
8312         (btrace_clear): Clear the stored trace data.
8313         * btrace.h (btrace_thread_info) <data>: New.
8314         * common/btrace-common.h (btrace_data_clear)
8315         (btrace_data_append): New.
8316         * common/btrace-common.c (btrace_data_clear)
8317         (btrace_data_append): New.
8318
8319 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
8320
8321         * nat/linux-btrace.c (linux_enable_bts): Check for
8322         PERF_ATTR_SIZE_VER5.
8323         Check for data_offset and data_size fields.  Use them.
8324
8325 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
8326
8327         * NEWS: Announce new commands "record btrace pt" and "record pt".
8328         Announce new options "set|show record btrace pt buffer-size".
8329         * btrace.c: Include "rsp-low.h".
8330         Include "inttypes.h".
8331         (btrace_add_pc): Add forward declaration.
8332         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
8333         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
8334         (btrace_compute_ftrace_pt): New.
8335         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
8336         (check_xml_btrace_version): Update version check.
8337         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
8338         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
8339         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
8340         (btrace_pt_children): New.
8341         (btrace_children): Add support for "pt".
8342         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
8343         (btrace_conf_children): Add support for "pt".
8344         * btrace.h: Include "intel-pt.h".
8345         (btrace_pt_error): New.
8346         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
8347         (btrace_data_empty): Support BTRACE_FORMAT_PT.
8348         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
8349         (struct btrace_config_pt): New.
8350         (struct btrace_config)<pt>: New.
8351         (struct btrace_data_pt_config, struct btrace_data_pt): New.
8352         (struct btrace_data)<pt>: New.
8353         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
8354         (pt): New.
8355         * features/btrace.dtd (btrace)<pt>: New.
8356         (pt, pt-config, cpu): New.
8357         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
8358         (perf_event_pt_event_type, kernel_supports_pt)
8359         (linux_supports_pt): New.
8360         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
8361         (linux_enable_bts): Free tinfo on error.
8362         (linux_enable_pt): New.
8363         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
8364         (linux_disable_pt): New.
8365         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
8366         (linux_fill_btrace_pt_config, linux_read_pt): New.
8367         (linux_read_btrace): Support BTRACE_FORMAT_PT.
8368         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
8369         (struct btrace_target_info)<pt>: New.
8370         * record-btrace.c (set_record_btrace_pt_cmdlist)
8371         (show_record_btrace_pt_cmdlist): New.
8372         (record_btrace_print_pt_conf): New.
8373         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
8374         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
8375         (cmd_record_btrace_pt_start): New.
8376         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
8377         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
8378         (_initialize_record_btrace): Add new commands.
8379         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
8380         (remote_protocol_features): Add "Qbtrace:pt".
8381         Add "Qbtrace-conf:pt:size".
8382         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
8383         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
8384         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
8385         (_initialize_remote): Add new commands.
8386
8387 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
8388
8389         * configure.ac: check for libipt
8390         * configure: Regenerate.
8391         * config.in: Regenerate.
8392         * Makefile.in (LIBIPT): New.
8393         (CLIBS): Add $LIBIPT.
8394         * NEWS: document new configure options
8395
8396 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8397
8398         * compile/compile-object-load.c (compile_object_load): Replace debug
8399         message "lookup undefined ELF symbol" by 3 more specific messages.
8400
8401 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
8402
8403         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
8404         (rl78_register_type): Add case for RL78_PSW_REGNUM.
8405         (rl78_gdbarch_init): Initialize rl78_psw_type.
8406
8407 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
8408
8409         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
8410         Update commentary.  Always refresh the registers when frame
8411         information has changed.
8412         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
8413         Change return type to int.  Return 1 if frame information has
8414         changed, 0 otherwise.
8415         (tui_before_prompt): Update commentary.
8416         * tui/tui-stack.h (tui_show_frame_info): Change return type to
8417         int.
8418
8419 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
8420
8421         PR tui/13378
8422         * frame.c (select_frame): Remove reference to
8423         deprecated_selected_frame_level_changed_hook.
8424         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
8425         declaration.
8426         * stack.c (deprecated_selected_frame_level_changed_hook):
8427         Likewise.
8428         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
8429         Rename to ...
8430         (tui_refresh_frame_and_register_information): ... this.  Bail
8431         out if there is no stack.  Don't update register information
8432         unless registers_too_p is true.
8433         (tui_print_frame_info_listing_hook): Rename to ...
8434         (tui_dummy_print_frame_info_listing_hook): ... this.
8435         (tui_before_prompt): New function.
8436         (tui_normal_stop): New function.
8437         (tui_before_prompt_observer): New observer.
8438         (tui_normal_stop_observer): New observer.
8439         (tui_install_hooks): Set
8440         deprecated_print_frame_info_listing_hook to
8441         tui_dummy_print_frame_info_listing_hook.  Register
8442         tui_before_prompt_observer to call tui_before_prompt and
8443         tui_normal_stop_observer to call tui_normal_stop.  Remove
8444         reference to deprecated_selected_frame_level_changed_hook.
8445         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
8446         and tui_normal_stop_observer.  Remove reference to
8447         deprecated_selected_frame_level_changed_hook.
8448
8449 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
8450
8451         PR tui/13378
8452         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
8453         return an int instead of void.  Return whether the locator
8454         window has changed.
8455         (tui_show_frame_info): If the locator info has not changed, then
8456         bail out early to avoid refreshing the windows.
8457
8458 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
8459
8460         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
8461         LOCATOR_WIN to tui_alloc_content.
8462
8463 2015-06-30  Yao Qi  <yao.qi@linaro.org>
8464
8465         PR tdep/18605
8466         * arm-tdep.c (arm_get_next_pc_raw): Break for media
8467         instructions.
8468
8469 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
8470
8471         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
8472         (rx_dwarf_reg_to_regnum): New function.
8473         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
8474         unwinding.
8475
8476 2015-06-29  Pedro Alves  <palves@redhat.com>
8477
8478         PR threads/18127
8479         * infcall.c (run_inferior_call): On infcall success, if the thread
8480         was marked stopped before, reset it back to stopped.
8481         * infrun.c (resume): Don't suppress the set_running calls when
8482         doing an infcall.
8483         (normal_stop): Only discard the finish_thread_state cleanup if the
8484         infcall succeeded.
8485
8486 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
8487
8488         * MAINTAINERS (Write After Approval): Update my email address.
8489
8490 2015-06-26  Keith Seitz  <keiths@redhat.com>
8491             Doug Evans  <dje@google.com>
8492
8493         PR 16253
8494         * block.c (block_lookup_symbol): For non-function blocks,
8495         continue to search for a symbol with an exact domain match
8496         Otherwise, return any previously found "best domain" symbol.
8497         (block_lookup_symbol_primary): Likewise.
8498
8499 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
8500
8501         * NEWS: Mention the new option "history remove-duplicates".
8502         * top.c (history_remove_duplicates): New static variable.
8503         (show_history_remove_duplicates): New static function.
8504         (gdb_add_history): Conditionally remove duplicate history
8505         entries.
8506         (init_main): Add "history remove-duplicates" option.
8507
8508 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
8509
8510         * tui/tui-win.c (focus_completer): New static function.
8511         (_initialize_tui_win): Set the completion function of the
8512         "focus" command to focus_completer.
8513
8514 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8515
8516         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
8517         and language_asm..
8518         * symtab.c (find_function_start_sal): Likewise.
8519
8520 2015-06-25  Gary Benson  <gbenson@redhat.com>
8521
8522         * solib.c (solib_find_1): Set local variable sysroot to NULL if
8523         it is the empty string after trailing slashes have been stripped.
8524
8525 2015-06-25  Gary Benson  <gbenson@redhat.com>
8526
8527         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
8528         * infrun.c (follow_exec): Likewise.
8529         * remote.c (remote_filesystem_is_local): Likewise.
8530         * solib.c (solib_find_1): Likewise.
8531
8532 2015-06-24  Keith Seitz  <keiths@redhat.com>
8533
8534         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
8535         return value from lrealpath.
8536
8537 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
8538
8539         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
8540
8541 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
8542
8543         * remote-sim.c: Include gdb_bfd.h.
8544         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
8545         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
8546
8547 2015-06-24  Yao Qi  <yao.qi@linaro.org>
8548
8549         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
8550         set_gdbarch_get_siginfo_type.
8551         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8552         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8553         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8554         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
8555         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
8556         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8557         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
8558         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
8559         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
8560         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
8561
8562 2015-06-24  Gary Benson  <gbenson@redhat.com>
8563
8564         * common/buffer.c (stdint.h): Do not include.
8565         * common/print-utils.c (stdint.h): Likewise.
8566         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
8567         * compile/compile-c-types.c (gdb_assert.h): Likewise.
8568         * ft32-tdep.c (gdb_assert.h): Likewise.
8569         * guile/scm-utils.c (stdint.h): Likewise.
8570         * i386-linux-tdep.c (stdint.h): Likewise.
8571         * i386-tdep.c (stdint.h): Likewise.
8572         * nat/linux-btrace.c (stdint.h): Likewise.
8573         * nat/linux-btrace.h (stdint.h): Likewise.
8574         * nat/linux-ptrace.c (stdint.h): Likewise.
8575         * nat/mips-linux-watch.h (stdint.h): Likewise.
8576         * ppc-linux-nat.c (stdint.h): Likewise.
8577         * python/python-internal.h (stdint.h): Likewise.
8578         * stub-termcap.c (stdlib.h): Likewise.
8579         * target/target.h (stdint.h): Likewise.
8580         * xtensa-linux-nat.c (stdint.h): Likewise.
8581
8582 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
8583
8584         * top.c (init_history): Look at errno after calling strtol to
8585         properly map large GDBHISTSIZE values to infinity.
8586
8587 2015-06-23  Doug Evans  <dje@google.com>
8588
8589         * inferior.h (struct inferior_suspend_state): Delete, unused.
8590         All references deleted.
8591
8592 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
8593
8594         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
8595         (microblaze_push_dummy_call): Likewise.
8596         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
8597         and set_gdbarch_push_dummy_call.
8598
8599 2015-06-23  Yao Qi  <yao.qi@linaro.org>
8600
8601         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
8602         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
8603         (amd64_linux_store_inferior_registers): Likewise.
8604         * arm-linux-nat.c (fetch_fpregister): Likewise.
8605         (fetch_fpregs, store_fpregister): Likewise.
8606         (store_fpregister, store_fpregs): Likewise.
8607         (fetch_register, fetch_regs): Likewise.
8608         (store_register, store_regs): Likewise.
8609         (fetch_vfp_regs, store_vfp_regs): Likewise.
8610         (arm_linux_read_description): Check have_ptrace_getregset is
8611         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
8612         or TRIBOOL_FALSE.
8613         * i386-linux-nat.c (fetch_xstateregs): Check
8614         have_ptrace_getregset is not TRIBOOL_TRUE.
8615         (store_xstateregs): Likewise.
8616         * linux-nat.c (have_ptrace_getregset): Change its type to
8617         enum tribool.
8618         * linux-nat.h (tribool): New enum.
8619         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
8620         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
8621
8622 2015-06-19  Doug Evans  <dje@google.com>
8623
8624         * NEWS: Mention Sun's version of stabs is no longer supported.
8625         * elfread.c (free_elfinfo): Delete.  All uses updated.
8626         (elfstab_offset_sections): Delete.  All uses updated.
8627         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
8628         * psympriv.h (partial_symtab) <section_offsets>: Delete.
8629         All uses updated.
8630         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
8631         All callers updated.
8632
8633 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
8634
8635         * common/rsp-low.c (needs_escaping): New.
8636         (remote_escape_output): Add unit_size parameter. Refactor to
8637         support multi-byte addressable units.  Rename parameters.
8638         * common/rsp-low.h (remote_escape_output): Add unit_size
8639         parameter and rename others. Update doc.
8640         * remote.c (align_for_efficient_write): New.
8641         (remote_write_bytes_aux): Add unit_size parameter and use it.
8642         Rename some variables.  Update doc.
8643         (remote_xfer_partial): Get unit size and use it.
8644         (remote_read_bytes_1): Add unit_size parameter and use it.
8645         Rename some variables. Update doc.
8646         (remote_write_bytes): Same.
8647         (remote_xfer_live_readonly_partial): Same.
8648         (remote_read_bytes): Same.
8649         (remote_flash_write): Update call to remote_write_bytes_aux.
8650         (remote_write_qxfer): Update call to remote_escape_output.
8651         (remote_search_memory): Same.
8652         (remote_hostio_pwrite): Same.
8653
8654 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
8655
8656         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
8657         locations as inserted.
8658         Update and expand comment about permanent locations.
8659         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
8660         Move comment to add_location_to_breakpoint.
8661         (update_global_location_list): Don't error out if a permanent
8662         breakpoint is not marked inserted.
8663         Don't error out if a non-permanent breakpoint location is inserted on
8664         top of a permanent breakpoint.
8665
8666 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
8667
8668         * breakpoint.c (make_breakpoint_permanent): Remove unused
8669         function.
8670         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
8671
8672 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
8673
8674         PR gdb/16999
8675         * NEWS: Mention new GDBHISTSIZE behavior.
8676         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
8677         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
8678
8679 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
8680
8681         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
8682         * top.c (init_history): Read from GDBHISTSIZE instead of
8683         HISTSIZE.
8684         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
8685
8686 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
8687
8688         * top.c (gdb_safe_append_history): Do not call
8689         history_truncate_file if the history is not stifled.
8690
8691 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8692
8693         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
8694         * syscalls/s390x-linux.xml: Likewise.
8695
8696 2015-06-16  Michael Eager  <eager@eagercon.com>
8697
8698         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
8699
8700 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
8701
8702         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
8703         target_terminal_ours_for_output() before calling
8704         tui_show_frame_info(), and restore the original terminal
8705         settings afterwards.
8706
8707 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
8708
8709         * arm-linux-nat.c: Include nat/linux-ptrace.h.
8710
8711 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
8712
8713         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
8714         memory unit size.
8715         (mi_cmd_data_write_memory_bytes): Same.
8716
8717 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
8718
8719         * corefile.c (write_memory): Update doc.
8720         * gdbcore.h (write_memory): Same.
8721
8722 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
8723
8724         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
8725         (dump_mapping_p): Use it for parameter filterflags.
8726         (linux_find_memory_regions_full): Use it for variable filterflags.
8727
8728 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
8729             Jan Kratochvil  <jan.kratochvil@redhat.com>
8730
8731         Merge multiple hex conversions.
8732         * monitor.c: Include rsp-low.h.
8733         (fromhex): Remove definition.
8734
8735 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
8736             Jan Kratochvil  <jan.kratochvil@redhat.com>
8737
8738         Move utility functions to common/.
8739         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
8740         Move defs to common/common-utils.c.
8741         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
8742         (skip_to_space_const): Move decls to common/common-utils.h.
8743         * common/common-defs.h: Move include of common-types.h before
8744         common-utils.h.
8745         * common/common-utils.c: Include host-defs.h and ctype.h.
8746         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
8747         from utils.c.
8748         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
8749         cli/cli-utils.c.
8750         * common/common-utils.h (strtoulst): Move decl from utils.h.
8751         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
8752         Move from cli/cli-utils.h.
8753         * common/host-defs.h: Include limits.h.
8754         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
8755         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
8756         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
8757         common/common-utils.h.
8758         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
8759         (strtoulst): Move to common/common-utils.c.
8760         * utils.h (strtoulst): Moved decl to common/common-utils.h.
8761
8762 2015-06-15  Yao Qi  <yao.qi@linaro.org>
8763
8764         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
8765
8766 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
8767
8768         * build-id.c: Don't include elf-bfd.h.
8769         (build_id_bfd_get): Use bfd_build_id.
8770         (build_id_verify): Ditto.
8771         * build-id.h: Ditto.
8772         (find_separate_debug_file_by_buildid): Ditto.
8773         * python/py-objfile.c: Don't include elf-bfd.h.
8774         (objfpy_get_build_id) Use bfd_build_id.
8775         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
8776         * coffread.c: Include build-id.h.
8777         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
8778
8779 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
8780
8781         * windows-nat.c (do_windows_fetch_inferior_registers)
8782         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
8783         conditional with __CYGWIN__.
8784
8785 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
8786
8787         * completer.c: Add arch-utils.h include.
8788         (enum reg_completer_targets): New enum.
8789         (reg_or_group_completer_1): New function containing old
8790         reg_or_group_completer, add and use new parameter to control what
8791         is completed on.  Use get_current_arch rather than architecture of
8792         currently selected frame.
8793         (reg_or_group_completer): Call new reg_or_group_completer_1.
8794         (reggroup_completer): Call new reg_or_group_completer_1.
8795         * completer.h (reggroup_completer): Add declaration.
8796         * tui/tui-regs.c: Add 'completer.h' include.
8797         (tui_reg_next_command): Renamed to...
8798         (tui_reg_next): ...this.  Adjust parameters and return rather than
8799         display new group.
8800         (tui_reg_prev_command): Renamed to...
8801         (tui_reg_prev): ...this.  Adjust parameters and return rather than
8802         display new group.
8803         (tui_reg_float_command): Delete.
8804         (tui_reg_general_command): Delete.
8805         (tui_reg_system_command): Delete.
8806         (tui_reg_command): Rewrite to perform switching of register group.
8807         Add header comment.
8808         (tuireglist): Remove.
8809         (tui_reggroup_completer): New function.
8810         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
8811         creation of 'tui reg' command.
8812         * NEWS: Add comment about 'tui reg' changes.
8813
8814 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
8815
8816         * target.c (target_read): Consider addressable unit size when
8817         reading from a memory object.
8818         (read_memory_robust): Same.
8819         (read_whatever_is_readable): Same.
8820         (target_write_with_progress): Consider addressable unit size
8821         when writing to a memory object.
8822         * target.h (target_read): Update documentation.
8823         (target_write): Add documentation.
8824
8825 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
8826
8827         * arch-utils.h (default_addressable_memory_unit_size): New.
8828         * arch-utils.c (default_addressable_memory_unit_size): New.
8829         * gdbarch.sh (addressable_memory_unit_size): New.
8830         * gdbarch.h: Re-generate.
8831         * gdbarch.c: Re-generate.
8832
8833 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
8834
8835         * target.c (target_read): Rename variables and use
8836         TARGET_XFER_E_IO.
8837         (target_read_with_progress): Same.
8838         (read_memory_robust): Constify parameters and rename
8839         variables.
8840         (read_whatever_is_readable): Constify parameters,
8841         rename variables, adjust formatting.
8842         * target.h (read_memory_robust): Constify parameters.
8843
8844 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
8845
8846         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
8847         synthetic (non-AltiVec) vector types.
8848         (ppc64_sysv_abi_return_value): Likewise.
8849
8850 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
8851
8852         PR breakpoints/16465
8853         * breakpoint.c (create_breakpoint): Save extra_string for
8854         pending breakpoints.
8855
8856 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
8857
8858         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
8859         and bt_mask to CORE_ADDR.
8860
8861 2015-06-11  Gary Benson <gbenson@redhat.com>
8862
8863         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
8864         (mnsh_recv_message): Likewise.
8865
8866 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
8867
8868         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
8869         long long int and plongest instead of %ll.
8870
8871 2015-06-11  Gary Benson <gbenson@redhat.com>
8872
8873         * nat/linux-namespaces.c (gdb_wait.h): New include.
8874         (sys/wait.h): Do not include.
8875
8876 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
8877
8878         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
8879         end_sequence is true.
8880
8881 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8882
8883         Code cleanup.
8884         * solib-target.c (library_list_start_list): Use explicit NULL
8885         comparison.
8886
8887 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8888
8889         * solib-target.c (library_list_start_list): Do not dereference
8890         variable version in its initialization.  Make the VERSION check handle
8891         NULL.
8892         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
8893
8894 2015-06-10  Gary Benson <gbenson@redhat.com>
8895
8896         * NEWS: Announce support for direct access of executable and
8897         shared library files when attaching to inferiors in containers
8898         on GNU/Linux systems.
8899
8900 2015-06-10  Gary Benson <gbenson@redhat.com>
8901
8902         * remote.c (struct remote_state) <fs_pid>: New field.
8903         (new_remote_state): Initialize the above.
8904         (PACKET_vFile_setfs): New enum value.
8905         (remote_hostio_set_filesystem): New function.
8906         (remote_hostio_open): Call the above.
8907         (remote_hostio_unlink): Likewise.
8908         (remote_hostio_readlink): Likewise.
8909         (_initialize_remote): Register new "set/show remote
8910         hostio-setfs-packet" command.
8911         * NEWS: Announce new vFile:setfs packet.
8912
8913 2015-06-10  Gary Benson <gbenson@redhat.com>
8914
8915         * linux-nat.c (nat/linux-namespaces.h): New include.
8916         (fileio.h): Likewise.
8917         (linux_nat_filesystem_is_local): New function.
8918         (linux_nat_fileio_pid_of): Likewise.
8919         (linux_nat_fileio_open): Likewise.
8920         (linux_nat_fileio_readlink): Likewise.
8921         (linux_nat_fileio_unlink): Likewise.
8922         (linux_nat_add_target): Initialize to_filesystem_is_local,
8923         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
8924         (_initialize_linux_nat): New "set/show debug linux-namespaces"
8925         commands.
8926         * NEWS: Mention new "set/show debug linux-namespaces" commands.
8927
8928 2015-06-10  Gary Benson <gbenson@redhat.com>
8929
8930         * target.h (struct inferior): New forward declaration.
8931         (struct target_ops) <to_filesystem_is_local>: Update comment.
8932         (struct target_ops) <to_fileio_open>: New argument inf.
8933         Update comment.  All implementations updated.
8934         (struct target_ops) <to_fileio_unlink>: Likewise.
8935         (struct target_ops) <to_fileio_readlink>: Likewise.
8936         (target_filesystem_is_local): Update comment.
8937         (target_fileio_open): New argument inf.  Update comment.
8938         (target_fileio_unlink): Likewise.
8939         (target_fileio_readlink): Likewise.
8940         (target_fileio_read_alloc): Likewise.
8941         (target_fileio_read_stralloc): Likewise.
8942         * target.c (target_fileio_open): New argument inf.
8943         Pass inf to implementation.  Update debug printing.
8944         (target_fileio_unlink): Likewise.
8945         (target_fileio_readlink): Likewise.
8946         (target_fileio_read_alloc_1): New argument inf. Pass inf
8947         to target_fileio_open.
8948         (target_fileio_read_alloc): New argument inf. Pass inf to
8949         target_fileio_read_alloc_1.
8950         (target_fileio_read_stralloc): Likewise.
8951         * gdb_bfd.c (inferior.h): New include.
8952         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
8953         argument with new argument "inferior".  Pass inferior to
8954         target_fileio_open.
8955         (gdb_bfd_open): Supply inferior argument to
8956         gdb_bfd_iovec_fileio_open.
8957         * linux-tdep.c (linux_info_proc): Supply inf argument to
8958         relevant target_fileio calls.
8959         (linux_find_memory_regions_full): Likewise.
8960         (linux_fill_prpsinfo): Likewise.
8961         * remote.c (remote_filesystem_is_local): Supply inf
8962         argument to remote_hostio_open.
8963         (remote_file_put): Likewise.
8964         (remote_file_get): Likewise.
8965         (remote_file_delete): Supply inf argument to
8966         remote_hostio_unlink.
8967
8968 2015-06-10  Gary Benson <gbenson@redhat.com>
8969
8970         * inf-child.c (inf_child_fileio_open): Replace comment.
8971         (inf_child_fileio_pwrite): Likewise.
8972         (inf_child_fileio_pread): Likewise.
8973         (inf_child_fileio_fstat): Insert blank line before comment.
8974         (inf_child_fileio_close): Replace comment.
8975         (inf_child_fileio_unlink): Likewise.
8976         (inf_child_fileio_readlink): Likewise.
8977         * remote.c (remote_hostio_open): Likewise.
8978         (remote_hostio_pread): Likewise.
8979         (remote_hostio_pwrite): Likewise.
8980         (remote_hostio_close): Likewise.
8981         (remote_hostio_unlink): Likewise.
8982         (remote_hostio_readlink): Likewise.
8983         (remote_hostio_fstat): Likewise.
8984         (remote_filesystem_is_local): Likewise.
8985         * target.c (target_fileio_open): Likewise.
8986         (target_fileio_pwrite): Likewise.
8987         (target_fileio_pread): Likewise.
8988         (target_fileio_fstat): Insert blank line before comment.
8989         (target_fileio_close): Replace comment.
8990         (target_fileio_unlink): Likewise.
8991         (target_fileio_readlink): Likewise.
8992         (target_fileio_read_alloc): Likewise.
8993         (target_fileio_read_stralloc): Likewise.
8994
8995 2015-06-10  Gary Benson <gbenson@redhat.com>
8996
8997         * linux-thread-db.c (nat/linux-namespaces.h): New include.
8998         (check_pid_namespace_match): Use linux_ns_same rather than
8999         linux_proc_pid_get_ns to spot PID namespace mismatches.
9000         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
9001         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
9002
9003 2015-06-10  Gary Benson <gbenson@redhat.com>
9004
9005         * configure.ac (AC_CHECK_FUNCS): Add setns.
9006         * config.in: Regenerate.
9007         * configure: Likewise.
9008         * nat/linux-namespaces.h: New file.
9009         * nat/linux-namespaces.c: Likewise.
9010         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
9011         (linux-namespaces.o): New rule.
9012         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
9013         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
9014         * config/arm/linux.mh (NATDEPFILES): Likewise.
9015         * config/i386/linux.mh (NATDEPFILES): Likewise.
9016         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9017         * config/ia64/linux.mh (NATDEPFILES): Likewise.
9018         * config/m32r/linux.mh (NATDEPFILES): Likewise.
9019         * config/m68k/linux.mh (NATDEPFILES): Likewise.
9020         * config/mips/linux.mh (NATDEPFILES): Likewise.
9021         * config/pa/linux.mh (NATDEPFILES): Likewise.
9022         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
9023         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
9024         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
9025         * config/s390/linux.mh (NATDEPFILES): Likewise.
9026         * config/sparc/linux.mh (NATDEPFILES): Likewise.
9027         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
9028         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
9029         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
9030
9031 2015-06-10  Gary Benson <gbenson@redhat.com>
9032
9033         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
9034         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
9035         (make_cleanup_close): Likewise.
9036         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
9037         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
9038         (make_cleanup_close): Likewise.
9039
9040 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
9041
9042         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
9043         from SuspendThread().
9044
9045 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
9046
9047         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
9048         from OutputDebugString.
9049
9050 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
9051                         Mircea Gherzan  <mircea.gherzan@intel.com>
9052
9053         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
9054         MPX_BT_MASK_32): New macros.
9055         (i386_mpx_set_bounds): New function that implements
9056         the command "set-mpx-bound".
9057         (i386_mpx_enabled): Helper function to test MPX availability.
9058         (i386_mpx_bd_base): Helper function to calculate the base directory
9059         address.
9060         (i386_mpx_get_bt_entry): Helper function to access a bound
9061         table entry.
9062         (i386_mpx_print_bounds): Effectively display bound information.
9063         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
9064         "show mpx".
9065         (_initialize_i386_tdep):
9066         Add "bound" to the commands "show mpx" and "set mpx" commands.
9067         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
9068         and "show mpx" commands.
9069         * NEWS: List new commands for MPX support.
9070
9071 2015-06-09  Gary Benson <gbenson@redhat.com>
9072
9073         * common/fileio.h (fileio_to_host_mode): New declaration.
9074         * common/fileio.c (fileio_to_host_mode): New Function.
9075         * inf-child.c (inf_child_fileio_open): Process mode argument
9076         with fileio_to_host_mode.
9077
9078 2015-06-09  Gary Benson <gbenson@redhat.com>
9079
9080         * common/fileio.c (fileio_mode_pack): Fix preprocessor
9081         conditional.
9082
9083 2015-06-05  Gary Benson <gbenson@redhat.com>
9084
9085         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
9086         * remote.c (remote_filesystem_is_local): ...here.
9087
9088 2015-06-04  Yao Qi  <yao.qi@linaro.org>
9089
9090         * gdbarch.c: Regenerate it.
9091
9092 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9093
9094         * arch-utils.c (default_infcall_munmap): New.
9095         * arch-utils.h (default_infcall_munmap): New declaration.
9096         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
9097         (munmap_list_free, munmap_listp_free_cleanup): New.
9098         (struct setup_sections_data): Add field munmap_list_headp.
9099         (setup_sections): Call munmap_list_add.
9100         (compile_object_load): New variable munmap_list_head, initialize
9101         setup_sections_data.munmap_list_headp, return munmap_list_head.
9102         * compile/compile-object-load.h (struct munmap_list): New declaration.
9103         (struct compile_module): Add field munmap_list_head.
9104         (munmap_list_free): New declaration.
9105         * compile/compile-object-run.c (struct do_module_cleanup): Add field
9106         munmap_list_head.
9107         (do_module_cleanup): Call munmap_list_free.
9108         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
9109         * gdbarch.c: Regenerate.
9110         * gdbarch.h: Regenerate.
9111         * gdbarch.sh (infcall_munmap): New.
9112         * linux-tdep.c (linux_infcall_munmap): New.
9113         (linux_init_abi): Install it.
9114
9115 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
9116
9117         PR gdb/15564
9118         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
9119
9120 2015-06-02  Yao Qi  <yao.qi@linaro.org>
9121
9122         * i386-linux-nat.c: Include linux-nat.h.
9123
9124 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
9125             Jan Kratochvil  <jan.kratochvil@redhat.com>
9126
9127         PR symtab/18392
9128         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
9129         assertion.
9130         * dwarf2loc.c (chain_candidate): Likewise.
9131
9132 2015-06-01  Yao Qi  <yao.qi@linaro.org>
9133
9134         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
9135         (store_vfp_regs): Use PTRACE_SETREGSET.
9136
9137 2015-06-01  Yao Qi  <yao.qi@linaro.org>
9138
9139         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
9140         (fetch_fpregs): Likewise.
9141         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
9142         (store_fpregs): Likewise.
9143
9144 2015-06-01  Yao Qi  <yao.qi@linaro.org>
9145
9146         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
9147         (fetch_regs): Likewise.
9148         (store_regs): Use PTRACE_SETREGSET.
9149         (store_register): Likewise.
9150
9151 2015-06-01  Yao Qi  <yao.qi@linaro.org>
9152
9153         * arm-linux-nat.c (arm_linux_read_description): Check whether
9154         kernel supports PTRACE_GETREGSET.
9155
9156 2015-06-01  Yao Qi  <yao.qi@linaro.org>
9157
9158         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
9159         * linux-nat.c: ... here.
9160         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
9161         to ...
9162         * linux-nat.h: ... here.
9163
9164 2015-06-01  Yao Qi  <yao.qi@linaro.org>
9165
9166         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
9167         * i386-linux-nat.c: Likewise.
9168         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
9169         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
9170         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9171         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
9172         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9173
9174 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
9175
9176         * go32-nat.c (go32_xfer_memory): Fix the return value to be
9177         compatible to what read_child and write_child return.  This
9178         unbreaks that DJGPP build of GDB which was broken since v7.7.
9179
9180 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
9181
9182         * MAINTAINERS (Write After Approval): Add Martin Galvan.
9183
9184 2015-05-29  Roland McGrath  <mcgrathr@google.com>
9185
9186         PR gdb/18464
9187         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
9188         rather than internal_error for an unrecognized value.
9189
9190 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
9191
9192         * xtensa-tdep.c (xtensa_pseudo_register_read)
9193         (xtensa_pseudo_register_write): Don't alias last pseudo register
9194         to a1.
9195
9196 2015-05-28  Don Breazeal  <donb@codesourcery.com>
9197
9198         * infrun.c (follow_fork_inferior): Ensure the use of
9199         process-style ptids (pid,0,0) in verbose/debug "Detaching"
9200         messages.
9201
9202 2015-05-28  Doug Evans  <dje@google.com>
9203
9204         * dwarf2read.c (record_line_ftype): Remove, duplicate.
9205
9206 2015-05-28  Yao Qi  <yao.qi@linaro.org>
9207
9208         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
9209         (arm_linux_fetch_inferior_registers): Use
9210         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
9211         (arm_linux_store_inferior_registers): Likewise.
9212         (arm_linux_read_description): Don't set
9213         arm_linux_has_wmmx_registers.
9214         * arm-tdep.c (arm_gdbarch_init): Set
9215         tdep->have_wmmx_registers according target descriptions.
9216         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
9217         field.
9218
9219 2015-05-28  Yao Qi  <yao.qi@linaro.org>
9220
9221         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
9222         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
9223         instead of arm_linux_vfp_register_count.
9224         (store_vfp_regs): Likewise.
9225         (arm_linux_fetch_inferior_registers): Likewise.
9226         (arm_linux_store_inferior_registers): Likewise.
9227         (arm_linux_read_description): Don't set
9228         arm_linux_vfp_register_count.
9229         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
9230         Adjust.
9231         * arm-tdep.c (arm_gdbarch_init): Add assert on
9232         vfp_register_count.
9233         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
9234         field to vfp_register_count.  All users updated.
9235
9236 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
9237
9238         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
9239         ELFOSABI_GNU binaries.
9240
9241 2015-05-27  Doug Evans  <dje@google.com>
9242
9243         * dwarf2read.c (lnp_state_machine): New typedef.
9244         (lnp_reader_state): New typedef.
9245         (dwarf_record_line_1): Renamed from dwarf_record_line.
9246         All callers updated.
9247         (dwarf_record_line): New function.
9248         (init_lnp_state_machine): New function.
9249         (check_line_address): Replace p_record_line parameter with state.
9250         All callers updated.
9251         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
9252         Update to record state in lnp_state_machine.
9253
9254 2015-05-27  Doug Evans  <dje@google.com>
9255
9256         * dwarf2read.c (record_line_ftype): New typedef.
9257         (check_line_address): New function.
9258         (dwarf_decode_lines_1): Call it.
9259
9260 2015-05-27  Doug Evans  <dje@google.com>
9261
9262         * NEWS: Mention "set debug dwarf-line".
9263         * dwarf2read.c (dwarf_line_debug): New static global.
9264         (add_include_dir): Add debug dwarf-line support.
9265         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
9266         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
9267
9268 2015-05-27  Doug Evans  <dje@google.com>
9269
9270         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
9271         All callers updated.
9272         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
9273         * cp-support.h (cp_lookup_nested_symbol): Update.
9274
9275 2015-05-27  Doug Evans  <dje@google.com>
9276
9277         PR symtab/18258
9278         * block.c (block_find_symbol): New function.
9279         (block_find_non_opaque_type): Ditto.
9280         (block_find_non_opaque_type_preferred): Ditto.
9281         * block.h (block_symbol_matcher_ftype): New typedef.
9282         (block_find_symbol): Declare.
9283         (block_find_non_opaque_type): Ditto.
9284         (block_find_non_opaque_type_preferred): Ditto.
9285         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
9286         * psymtab.c (psym_lookup_symbol): Ditto.
9287         * symtab.c (basic_lookup_transparent_type_1): New function.
9288         (basic_lookup_transparent_type): Call it.
9289
9290 2015-05-27  Yao Qi  <yao.qi@linaro.org>
9291
9292         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
9293         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
9294
9295 2015-05-27  Yao Qi  <yao.qi@linaro.org>
9296
9297         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
9298         before operator &&.
9299         (aarch64_record_load_store): Likewise.
9300
9301 2015-05-26  Doug Evans  <dje@google.com>
9302
9303         PR c++/18141, c++/18417.
9304         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
9305         a typedef.
9306
9307 2015-05-26  Doug Evans  <dje@google.com>
9308
9309         * NEWS: Add entries for command renamings.
9310         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
9311         All uses updated.
9312         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
9313         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
9314         All uses updated.
9315         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
9316         All callers updated.  Fix spelling of DWARF in help text.
9317         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
9318         All uses updated.
9319         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
9320         All uses updated.
9321         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
9322         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
9323         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
9324         All uses updated.
9325         (show_dwarf_always_disassemble): Renamed from
9326         show_dwarf2_always_disassemble.  All callers updated.
9327         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
9328         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
9329         "set/show dwarf max-cache-age".  Rename
9330         "set/show dwarf2 always-disassemble" to
9331         "set/show dwarf always-disassemble".  Rename
9332         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
9333         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
9334
9335 2015-05-26  Doug Evans  <dje@google.com>
9336
9337         PR python/18438
9338         * python/py-lazy-string.c (stpy_convert_to_value): Use
9339         gdbpy_gdb_memory_error not PyExc_MemoryError.
9340         (gdbpy_create_lazy_string_object): Ditto.
9341
9342 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
9343
9344         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
9345
9346 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
9347
9348         * tui/tui-regs.c (tui_reg_prev_command): New function.
9349         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
9350         * reggroups.c (reggroup_prev): New function.
9351         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
9352
9353 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
9354             Yao Qi  <yao.qi@linaro.org>
9355
9356         * aarch64-linux-tdep.c: Include linux-record.h and
9357         record-full.h.
9358         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
9359         (aarch64_syscall): New enum.
9360         (aarch64_canonicalize_syscall): New function.
9361         (aarch64_all_but_pc_registers_record): New function.
9362         (aarch64_linux_syscall_record): New function.
9363         (aarch64_linux_init_abi): Install AArch64 process record
9364         handler.  Update to handle syscall recording.
9365         * aarch64-tdep.c: Include record.h and record-full.h.
9366         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
9367         (struct aarch64_mem_r): Define.
9368         (aarch64_record_result): New enum.
9369         (struct insn_decode_record): Define.
9370         (insn_decode_record): New typedef.
9371         (aarch64_record_data_proc_reg): New function.
9372         (aarch64_record_data_proc_imm): New function.
9373         (aarch64_record_branch_except_sys): New function.
9374         (aarch64_record_load_store): New function.
9375         (aarch64_record_data_proc_simd_fp): New function.
9376         (aarch64_record_asimd_load_store): New function.
9377         (aarch64_record_decode_insn_handler): New function.
9378         (deallocate_reg_mem): New function.
9379         (aarch64_process_record): New function.
9380         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
9381         New field.
9382         (aarch64_process_record): New extern declaration.
9383         * configure.tgt: Add linux-record.o to gdb_target_obs.
9384         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
9385
9386 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
9387
9388         * NEWS: Add a note on process record-replay support on aarch64*-linux*
9389         targets.
9390
9391 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
9392
9393         * amd64-tdep.c: Replace in_function_epilogue_p with
9394         stack_frame_destroyed_p throughout.
9395         * arch-utils.c: Ditto.
9396         * arch-utils.h: Ditto.
9397         * arm-tdep.c: Ditto.
9398         * breakpoint.c: Ditto.
9399         * gdbarch.sh: Ditto.
9400         * hppa-tdep.c: Ditto.
9401         * i386-tdep.c: Ditto.
9402         * mips-tdep.c: Ditto.
9403         * nios2-tdep.c: Ditto.
9404         * rs6000-tdep.c: Ditto.
9405         * s390-linux-tdep.c: Ditto.
9406         * score-tdep.c: Ditto.
9407         * sh-tdep.c: Ditto.
9408         * sparc-tdep.c: Ditto.
9409         * sparc-tdep.h: Ditto.
9410         * sparc64-tdep.c: Ditto.
9411         * spu-tdep.c: Ditto.
9412         * tic6x-tdep.c: Ditto.
9413         * tilegx-tdep.c: Ditto.
9414         * xstormy16-tdep.c: Ditto.
9415         * gdbarch.c, gdbarch.h: Re-generated.
9416
9417 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
9418
9419         * NEWS: Mention 'tui enable' and 'tui disable'.
9420         * tui/tui.c (tui_enable_command): New function.
9421         (tui_disable_command): New function.
9422         (_initialize_tui): New function.
9423
9424 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
9425
9426         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
9427
9428 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
9429
9430         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
9431         buf_ptr is freed.
9432
9433 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
9434
9435         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
9436         into ...
9437         (tui_set_layout_for_display_command): ...here, before calling
9438         tui_set_layout.  Only set the layout if gdb has not already
9439         entered the TUI_FAILURE state.
9440
9441 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
9442
9443         * tui/tui-layout.c (layout_completer): New function.
9444         (_initialize_tui_layout): Set completer on layout command.
9445
9446 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
9447
9448         * tui/tui-layout.c (tui_set_layout): Remove
9449         tui_register_display_type parameter.  Remove all checking of this
9450         parameter, and reindent function.  Update header comment.
9451         (tui_set_layout_for_display_command): Rename to...
9452         (tui_set_layout_by_name): ...this, and don't check for different
9453         register class types, don't pass a tui_register_display_type to
9454         tui_set_layout.  Update header comment.
9455         (layout_names): Remove register set specific names.
9456         * tui/tui-layout.h (tui_set_layout): Remove
9457         tui_register_display_type parameter.
9458         * tui/tui.c (tui_rl_change_windows): Don't pass a
9459         tui_register_display_type to tui_set_layout.
9460         (tui_rl_delete_other_windows): Likewise.
9461         (tui_enable): Likewise.
9462         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
9463         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
9464         (TUI_GENERAL_REGS_NAME): Remove.
9465         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
9466         (TUI_SPECIAL_REGS_NAME): Remove.
9467         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
9468         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
9469         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
9470         (enum tui_register_display_type): Remove.
9471         (struct tui_layout_def): Remove regs_display_type and
9472         float_regs_display_type fields.
9473         (struct tui_data_info): Remove regs_display_type field.
9474         (tui_layout_command): Use new name for
9475         tui_set_layout_for_display_command.
9476         * tui/tui-data.c (layout_def): Don't initialise removed fields.
9477         (tui_clear_win_detail): Don't initialise removed fields of
9478         win_info.
9479         * tui/tui-regs.c (tui_show_registers): Use new name for
9480         tui_set_layout_for_display_command.
9481         * tui/tui.h (tui_set_layout_for_display_command): Rename
9482         declaration to...
9483         (tui_set_layout_by_name): ...this.
9484         * printcmd.c (display_command): Remove tui related layout call,
9485         and reindent.
9486
9487 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
9488
9489         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
9490         (handle_inferior_event): New function.
9491
9492 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
9493
9494         * ada-lang.c (to_fixed_array_type): Rename local variable
9495         typename into type_name.
9496
9497 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9498
9499         Fix ASAN crash for gdb.compile/compile.exp.
9500         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
9501
9502 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9503
9504         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
9505         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
9506         * compile/compile-object-load.c (setup_sections, compile_object_load):
9507         Likewise.
9508         * compile/compile.c (compile_to_object): Likewise.
9509
9510 2015-05-16  Doug Evans  <xdje42@gmail.com>
9511
9512         * NEWS: Mention support for unbuffered Guile memory ports.
9513         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
9514         (ioscm_lseek_address): Improve overflow calculation.
9515         (gdbscm_memory_port_fill_input): Add assert.
9516         (gdbscm_memory_port_write): Handle unbuffered ports.
9517         Handle large writes identical to Guile's fport_write.
9518         (gdbscm_memory_port_seek): Fix seeking past end check.
9519         (gdbscm_memory_port_close): Handle closing unbuffered port.
9520         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
9521         (ioscm_init_memory_port): Handle unbuffered ports.
9522         (ioscm_reinit_memory_port): Ditto.
9523         (ioscm_init_memory_port): Update size calculation.
9524         (gdbscm_open_memory): Support zero sized ports.
9525
9526 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9527
9528         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
9529         variable compiler warnings.
9530
9531 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9532
9533         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
9534
9535 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9536             Phil Muldoon  <pmuldoon@redhat.com>
9537
9538         * NEWS (Changes since GDB 7.9): Add compile print.
9539         * compile/compile-c-support.c (add_code_header, add_code_footer)
9540         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
9541         COMPILE_I_PRINT_VALUE_SCOPE.
9542         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
9543         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
9544         New.
9545         * compile/compile-object-load.c: Include block.h.
9546         (get_out_value_type): New function.
9547         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9548         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
9549         OUT_VALUE_TYPE.
9550         * compile/compile-object-load.h (struct compile_module): Add fields
9551         out_value_addr and out_value_type.
9552         * compile/compile-object-run.c: Include valprint.h and compile.h.
9553         (struct do_module_cleanup): Add fields out_value_addr and
9554         out_value_type.
9555         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9556         COMPILE_I_PRINT_VALUE_SCOPE.
9557         (compile_object_run): Propagate out_value_addr and out_value_type.
9558         Pass OUT_VALUE_ADDR.
9559         * compile/compile.c: Include valprint.h.
9560         (compile_print_value, compile_print_command): New functions.
9561         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
9562         (_initialize_compile): Update compile code help text.  Install
9563         compile_print_command.
9564         * compile/compile.h (compile_print_value): New prototype.
9565         * defs.h (enum compile_i_scope_types): Add
9566         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
9567
9568 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9569
9570         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
9571         Rely on its parameter count.
9572         (compile_object_load): Replace lookup_minimal_symbol_text by
9573         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
9574         return value.
9575         * compile/compile-object-load.h (struct compile_module): Replace
9576         func_addr by func_sym.
9577         * compile/compile-object-run.c: Include block.h.
9578         (compile_object_run): Reset module variable after it is freed.  Use
9579         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
9580
9581 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9582
9583         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
9584         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
9585         (c_compute_program): Call generate_register_struct after typedefs.
9586         * compile/compile-loc2c.c (push, pushf_register_address)
9587         (pushf_register): Cast to GCC_UINTPTR.
9588         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
9589         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
9590         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
9591         * compile/compile.c (_initialize_compile): Enable warnings for
9592         COMPILE_ARGS.
9593
9594 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9595
9596         * cli/cli-script.c (execute_control_command): Update
9597         eval_compile_command caller.
9598         * compile/compile-object-load.c (compile_object_load): Add parameters
9599         scope and scope_data.  Set them.
9600         * compile/compile-object-load.h (struct compile_module): Add fields
9601         scope and scope_data.
9602         (compile_object_load): Add parameters scope and scope_data.
9603         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
9604         scope and scope_data.
9605         (compile_object_run): Propagate the fields scope and scope_data.
9606         * compile/compile.c (compile_file_command, compile_code_command):
9607         Update eval_compile_command callers.
9608         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
9609         * compile/compile.h (eval_compile_command): Add parameter scope_data.
9610         * defs.h (struct command_line): Add field scope_data.
9611
9612 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9613
9614         * printcmd.c (struct format_data): Move it to valprint.h.
9615         (print_command_parse_format, print_value): New functions from ...
9616         (print_command_1): ... here.  Call them.
9617         * valprint.h (struct format_data): Move it here from printcmd.c.
9618         (print_command_parse_format, print_value): New declarations.
9619
9620 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9621
9622         * compile/compile-object-load.c (compile_object_load): Add
9623         COMPILE_DEBUG message.
9624
9625 2015-05-15  Jerome Guitton  <guitton@adacore.com>
9626
9627         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
9628         index to get element instead of enum value.
9629         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
9630         of index to compute length, but enum values to compute bounds.
9631         (ada_array_length): Use enum position of index instead of enum value.
9632         (pos_atr): Move position computation to...
9633         (ada_evaluate_subexp): Use enum values to compute bounds.
9634         * gdbtypes.c (discrete_position): ...this new function.
9635         * gdbtypes.h (discrete_position): New function declaration.
9636         * valprint.c (val_print_array_elements): Call discrete_position
9637         to handle array indexed by non-contiguous enumeration types.
9638
9639 2015-05-15  Jerome Guitton  <guitton@adacore.com>
9640
9641         * ada-lang.c (find_parallel_type_by_descriptive_type):
9642         Go through typedefs during lookup.
9643         (to_fixed_array_type): Add support for non-bit packed arrays
9644         as variable-length fields.
9645
9646 2015-05-15  Pedro Alves  <palves@redhat.com>
9647             Simon Marchi  <simon.marchi@ericsson.com>
9648
9649         * event-loop.c (gdb_notifier) <next_file_handler,
9650         next_poll_fds_index>: New fields.
9651         (get_next_file_handler_to_handle_and_advance): New function.
9652         (delete_file_handler): If deleting the next file handler to
9653         handle, advance to the next file handler.
9654         (gdb_wait_for_event): Bail early if no event fired.  Poll file
9655         handlers in round-robin fashion.
9656
9657 2015-05-15  Pedro Alves  <palves@redhat.com>
9658
9659         * linux-tdep.c (linux_find_memory_regions_full): Rename local
9660         'private' to 'priv'.
9661
9662 2015-05-15  Pedro Alves  <palves@redhat.com>
9663
9664         * nat/linux-nat.h: Include "target/waitstatus.h".
9665
9666 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
9667
9668         * python/py-unwind.c (struct reg_info): Move out of ...
9669         (struct cached_frame_info): ... this scope.
9670         (pending_frame_object_type, unwind_info_object_type): Make extern.
9671
9672 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
9673
9674         * ada-lang.c (ada_value_primitive_packed_val): Make sure
9675         accumSize is never negative.
9676
9677 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
9678
9679         * tui/tui-command.c: Remove include of <ctype.h>.
9680         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
9681
9682 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
9683
9684         * dwarf2read.c (die_needs_namespace): Return 1 for
9685         DW_TAG_inlined_subroutine.
9686
9687 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9688
9689         * regcache.c (regcache_cpy_no_passthrough): New declaration.
9690         (regcache_cpy_no_passthrough): Make it static, add function comment.
9691         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
9692         (regcache_cpy_no_passthrough): Remove declaration.
9693
9694 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9695
9696         * gdbthread.h (struct thread_control_state): Update comment for
9697         proceed_to_finish.
9698         * infcall.c (run_inferior_call): Update comment about
9699         proceed_to_finish.
9700         * infcmd.c (get_return_value): Update comment about stop_registers.
9701         (finish_forward): Update comment about proceed_to_finish.
9702         * infrun.c (stop_registers): Remove.
9703         (clear_proceed_status, normal_stop): Remove stop_registers handling.
9704         * infrun.h (stop_registers): Remove.
9705
9706 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9707
9708         * infcall.c (struct dummy_frame_context_saver)
9709         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
9710         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9711         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9712         New.
9713         (call_function_by_hand_dummy): Move discard_cleanups of
9714         inf_status_cleanup before dummy_frame_push.  Call
9715         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
9716         Use dummy_frame_context_saver_get_regs instead of stop_registers.
9717         * infcall.h (struct dummy_frame_context_saver)
9718         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9719         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9720         New declarations.
9721         * infcmd.c: Include infcall.h.
9722         (get_return_value): Add parameter ctx_saver, use it instead of
9723         stop_registers.
9724         (print_return_value): Add parameter ctx_saver, pass it.
9725         (struct finish_command_continuation_args): Add field ctx_saver.
9726         (finish_command_continuation): Update print_return_value caller.
9727         (finish_command_continuation_free_arg): Free also ctx_saver.
9728         (finish_forward): Call dummy_frame_context_saver_setup.
9729         * inferior.h (struct dummy_frame_context_saver): New declaration.
9730         (get_return_value): Add parameter ctx_saver.
9731         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
9732         get_return_value caller.
9733
9734 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9735
9736         * dummy-frame.c (struct dummy_frame_dtor_list): New.
9737         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
9738         (remove_dummy_frame): Process dtor_list.
9739         (pop_dummy_frame): Process dtor_list.
9740         (register_dummy_frame_dtor): Maintain dtor_list.
9741         (find_dummy_frame_dtor): Handle dtor_list.
9742         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
9743         Update comments.
9744
9745 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9746
9747         * compile/compile-object-run.c (do_module_cleanup): Add parameter
9748         registers_valid.
9749         (compile_object_run): Update do_module_cleanup caller.
9750         * dummy-frame.c: Include infcall.h.
9751         (struct dummy_frame): Update dtor comment.
9752         (remove_dummy_frame): Call dtor.
9753         (pop_dummy_frame): Update dtor caller.
9754         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
9755         registers_valid.
9756
9757 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
9758
9759         GDB 7.9.1 released.
9760
9761 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
9762
9763         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
9764         Xmethods now being able to specify a result type to that new
9765         sectioin.
9766
9767 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
9768
9769         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
9770         first before resizing the window.
9771         * tui/tui.c (tui_enable): Likewise.
9772
9773 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9774
9775         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
9776         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
9777         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
9778         dummy_dtor parameter.
9779         * infcall.h: Include dummy-frame.h.
9780         (call_function_by_hand_dummy_dtor_ftype): Remove.
9781         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
9782         parameter.
9783
9784 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
9785
9786         PR gdb/17820
9787         * top.c (history_size_setshow_var): Change type to signed.
9788         Initialize to -2.  Update documentation.
9789         (set_readline_history_size): Define.
9790         (set_history_size_command): Use it.  Remove logic for handling
9791         out-of-range sizes.
9792         (init_history): Use set_readline_history_size().  Test for a
9793         value of -2 instead of 0 when determining whether to set a
9794         default history size.
9795         (init_main): Decode the argument of the "size" command as a
9796         zuinteger_unlimited.
9797
9798 2015-05-12  Doug Evans  <dje@google.com>
9799
9800         * dwarf2read.c (struct file_entry): Tweak comments.
9801         (get_debug_line_section): Tweak comments.
9802
9803 2015-05-12  Don Breazeal  <donb@codesourcery.com>
9804
9805         * NEWS: Announce fork support in the RSP and support
9806         for fork debugging in extended mode.
9807
9808 2015-05-12  Don Breazeal  <donb@codesourcery.com>
9809
9810         * remote.c (remote_insert_fork_catchpoint): New function.
9811         (remote_remove_fork_catchpoint): New function.
9812         (remote_insert_vfork_catchpoint): New function.
9813         (remote_remove_vfork_catchpoint): New function.
9814         (pending_fork_parent_callback): New function.
9815         (remove_new_fork_child): New function.
9816         (remote_update_thread_list): Call remote_notif_get_pending_events
9817         and remove_new_fork_child.
9818         (extended_remote_kill): Kill fork child when killing the
9819         parent before follow_fork completes.
9820         (init_extended_remote_ops): Initialize target vector with
9821         new fork catchpoint functions.
9822
9823 2015-05-12  Don Breazeal  <donb@codesourcery.com>
9824
9825         * remote.c (remove_vfork_event_p): New function.
9826         (remote_follow_fork): Add vfork event type to event checking.
9827         (remote_parse_stop_reply): New stop reasons "vfork" and
9828         "vforkdone" for RSP 'T' Stop Reply Packet.
9829
9830 2015-05-12  Don Breazeal  <donb@codesourcery.com>
9831
9832         * linux-nat.c (linux_nat_ptrace_options): New function.
9833         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
9834         Call linux_nat_ptrace_options and use different argument to
9835         linux_enable_event_reporting.
9836         (_initialize_linux_nat): Delete call to
9837         linux_ptrace_set_additional_flags.
9838         * nat/linux-ptrace.c (current_ptrace_options): Rename to
9839         supported_ptrace_options.
9840         (additional_flags): Delete variable.
9841         (linux_check_ptrace_features): Use supported_ptrace_options.
9842         (linux_test_for_tracesysgood, linux_test_for_tracefork):
9843         Likewise, and remove additional_flags check.
9844         (linux_enable_event_reporting): Change 'attached' argument to
9845         'options'.  Use supported_ptrace_options.
9846         (ptrace_supports_feature): Change comment.  Use
9847         supported_ptrace_options.
9848         (linux_ptrace_set_additional_flags): Delete function.
9849         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
9850         Delete function prototype.
9851         * remote.c (remote_fork_event_p): New function.
9852         (remote_detach_pid): New function.
9853         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
9854         if doing detach-on-fork.
9855         (remote_follow_fork): New function.
9856         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
9857         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
9858         (init_extended_remote_ops): Initialize to_follow_fork.
9859
9860 2015-05-12  Don Breazeal  <donb@codesourcery.com>
9861
9862         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
9863         from static to extern.
9864         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
9865         * remote.c (anonymous enum): <PACKET_fork_event_feature,
9866         * PACKET_vfork_event_feature>: New enumeration constants.
9867         (remote_protocol_features): Add table entries for new packets.
9868         (remote_query_supported): Add new feature queries to qSupported
9869         packet.
9870
9871 2015-05-12  Gary Benson <gbenson@redhat.com>
9872
9873         * remote.c (remote_add_inferior): Call exec_file_locate_attach
9874         for fake PIDs as well as real ones.
9875         (remote_pid_to_exec_file): Send empty annex if PID is fake.
9876
9877 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
9878
9879         * NEWS (Python Scripting): Mention the new gdb.Value methods.
9880         * python/py-value.c (valpy_reference_value): New function.
9881         (valpy_const_value): Likewise.
9882         (value_object_methods): Add new methods.
9883         * value.c (make_cv_value): New function.
9884         * value.h (make_cv_value): Declare.
9885
9886 2015-05-08  Yao Qi  <yao@codesourcery.com>
9887             Sandra Loosemore  <sandra@codesourcery.com>
9888
9889         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
9890         to 'lh->include_dirs' before accessing to it.
9891         (psymtab_include_file_name): Likewise.
9892         (dwarf_decode_lines_1): Likewise.
9893         (dwarf_decode_lines): Likewise.
9894         (file_file_name): Likewise.
9895
9896 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
9897
9898         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
9899         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
9900         (nios2_linux_rt_sigreturn_init): Adjust base address of
9901         register save area.
9902
9903 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
9904
9905         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
9906         "trap 31" as the breakpoint instruction on all targets.
9907
9908 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9909
9910         * infcmd.c (print_return_value): Remove unused declaration.
9911
9912 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
9913
9914         * dwarf2read.c (attr_to_dynamic_prop)
9915         <DW_AT_data_member_location>: Use read_type_die isntead of
9916         get_die_type.
9917
9918 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
9919
9920         * ada-lang.c (ada_convert_actual): Add handling of formals
9921         passed inside an aligner type.
9922
9923 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
9924
9925         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
9926
9927 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
9928
9929         PR python/18291
9930         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
9931         Print xmethod matcher status.
9932
9933 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9934
9935         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
9936         register in the regcache when treating the PSWM register, and vice
9937         versa.
9938
9939 2015-05-07  Gary Benson <gbenson@redhat.com>
9940
9941         * linux-thread-db.c (struct thread_db_info)
9942         <td_ta_map_id2thr_p>: Remove field.
9943         (try_thread_db_load_1): Remove initialization for the above.
9944
9945 2015-05-07  Gary Benson <gbenson@redhat.com>
9946
9947         * linux-thread-db.c (struct thread_db_info)
9948         <td_thr_validate_p>: Remove field.
9949         (try_thread_db_load_1): Remove initialization for the above.
9950
9951 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
9952
9953         * compile/compile-object-load.c (compile_object_load): Support
9954         mst_text_gnu_ifunc.
9955
9956 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
9957
9958         * compile/compile.c (compile_to_object): Make the cmd_string parameter
9959         const.  Use new variables for the const compatibility.
9960         (eval_compile_command): Make the cmd_string parameter const.
9961         * compile/compile.h (eval_compile_command): Make the cmd_string
9962         parameter const.
9963
9964 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
9965
9966         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
9967         comment.
9968         * top.c (deprecated_init_ui_hook): Delete.
9969         (gdb_init): Remove handling of deprecated_init_ui_hook.
9970         * interps.c (clear_interpreter_hooks): Remove handling of
9971         deprecated_init_ui_hook.
9972         * main.c (captured_main): Update comment.
9973
9974 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
9975
9976         * solib.c (_initialize_solib): Add "info dll" alias creation.
9977         * windows-nat.c (set_windows_aliases): Delete.
9978         (_initialize_windows_nat): Remove deprecated_init_ui_hook
9979         assignment.
9980         * NEWS: Add news entry about "info dll" now being available
9981         on all platforms.
9982
9983 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
9984
9985         * ada-lang.c (value_assign_to_component): Reformat and improve
9986         documentation. Remove all trailing spaces.
9987
9988 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
9989
9990         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
9991         Stop counting inlined frames as soon as an out-of-line function
9992         is found.
9993
9994 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
9995
9996         * dwarf2read.c (inherit_abstract_dies): Skip
9997         DW_TAG_GNU_call_site dies while inheriting children of an
9998         abstract DIE into a scope.
9999         (read_lexical_block_scope): Inherit abstract DIE's for
10000         lexical scopes.
10001
10002 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10003
10004         * ada-valprint.c (val_print_packed_array_elements): Delete
10005         variable "len".  Add a type-length check when comparing two
10006         consecutive elements of the array.  Use the element's actual
10007         length in call to value_contents_eq.
10008         * ada-lang.c (ada_value_primitive_packed_val): Always return
10009         a value whose type has been resolved.
10010
10011 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10012
10013         * ada-lang.c (ada_value_primitive_packed_val): Recompute
10014         BIT_SIZE and LEN if the size of the resolved type is smaller
10015         than BIT_SIZE * HOST_CHAR_BIT.
10016
10017 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10018
10019         * ada-lang.c (ada_value_primitive_packed_val): Use a more
10020         correct address in call to value_at.  Adjust call to
10021         value_address accordingly.
10022
10023 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10024
10025         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
10026         to print it.
10027
10028 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10029
10030         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
10031         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
10032         pinfo->valaddr.
10033         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
10034         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
10035         (resolve_dynamic_type_internal): Set pinfo.valaddr.
10036         Add handling of addr_stack->valaddr.
10037         (resolve_dynamic_type): Add "valaddr" parameter.
10038         Set pinfo.valaddr field.
10039         * ada-lang.c (ada_discrete_type_high_bound): Update call to
10040         resolve_dynamic_type.
10041         (ada_discrete_type_low_bound): Likewise.
10042         * findvar.c (default_read_var_value): Likewise.
10043         * value.c (value_from_contents_and_address): Likewise.
10044
10045 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10046
10047         * gdbtypes.c (resolve_dynamic_array): Use
10048         create_array_type_with_stride instead of create_array_type.
10049
10050 2015-04-30  DJ Delorie  <dj@redhat.com>
10051
10052         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
10053         rl78_decode_opcode
10054
10055 2015-04-29  Doug Evans  <dje@google.com>
10056
10057         PR python/18285
10058         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
10059         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
10060         EVAL_AVOID_SIDE_EFFECTS for xmethods.
10061         * extension-priv.h (struct extension_language_ops)
10062         <get_xmethod_result_type>: New member.
10063         * extension.c (get_xmethod_result_type): New function.
10064         * extension.h (get_xmethod_result_type): Declare.
10065         * python/py-xmethods.c (get_result_type_method_name): New static
10066         global.
10067         (py_get_result_type_method_name): Ditto.
10068         (gdbpy_get_xmethod_result_type): New function.
10069         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
10070         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
10071         * python/python.c (python_extension_ops): Add
10072         gdbpy_get_xmethod_result_type.
10073         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
10074         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
10075         xmethods.
10076         (value_x_unop): Ditto.
10077         * value.c (result_type_of_xmethod): New function.
10078         * value.h (result_type_of_xmethod): Declare.
10079
10080 2015-04-29  Gary Benson <gbenson@redhat.com>
10081
10082         * solib.c (solib_find_1): Allow fd argument to be NULL.
10083         (exec_file_find): Update comment.
10084         (solib_find): Likewise.
10085         * exec.c (exec_file_locate_attach): Use NULL as fd
10086         argument to exec_file_find to avoid having to close
10087         the opened file.
10088         * infrun.c (follow_exec): Likewise.
10089
10090 2015-04-28  Doug Evans  <dje@google.com>
10091
10092         PR python/18299
10093         * python/lib/gdb/printing.py (register_pretty_printer): Handle
10094         name or __name__ attributes.  Handle gdb module as first argument.
10095
10096 2015-04-28  Doug Evans  <dje@google.com>
10097
10098         PR python/18089
10099         * python/py-prettyprint.c (print_children): Verify result of children
10100         iterator.  Provide better error message.
10101         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
10102         * python/python.c (gdbpy_print_python_errors_p): New function.
10103
10104 2015-04-28  Doug Evans  <dje@google.com>
10105
10106         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
10107
10108 2015-04-28  Sasha Smundak  <asmundak@google.com>
10109
10110         * NEWS: Mention gdb.Type.optimized_out method.
10111         * python/py-type.c (typy_optimized_out):  New function.
10112
10113 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
10114
10115         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10116
10117 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
10118
10119         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
10120         (initialize_utils): Move call of init_page_info() to ...
10121         * top.c (gdb_init): ... here.
10122
10123 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
10124
10125         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
10126         (tui_sigwinch_handler): Still update our idea of
10127         the terminal's width and height even when TUI is not active.
10128
10129 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
10130
10131         * utils.h (set_screen_width_and_height): Declare.
10132         * utils.c (set_screen_width_and_height): Define.
10133         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
10134
10135 2015-04-28  Gary Benson <gbenson@redhat.com>
10136
10137         * infrun.c (solist.h): New include.
10138         (follow_exec): Use exec_file_find to prefix execd_pathname
10139         with gdb_sysroot.
10140
10141 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
10142
10143         * tui/tui-source.c (tui_set_source_content): Avoid calling
10144         strcpy() when offset is 0.
10145
10146 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
10147
10148         PR gdb/18155
10149         * tui/tui-data.c (tui_free_window): Don't free the locator
10150         window when passed an SRC_WIN or a DISASSEM_WIN.
10151
10152 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
10153
10154         * tui/tui-data.h (struct tui_win_element): Forward-declare.
10155         (tui_win_content): Move declaration.
10156         (struct tui_gen_win_info): Give 'content' field the
10157         type tui_win_content.
10158         * tui/tui-data.c (init_content_element): Remove redundant and
10159         erroneous casts.
10160         (tui_add_content_elements): Remove erroneous cast.
10161         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
10162         casts.
10163         (tui_get_begin_asm_address): Likewise.
10164         * tui/tui-regs.c (tui_show_registers): Likewise.
10165         (tui_show_register_group): Likewise.
10166         (tui_display_registers_from): Likewise.
10167         (tui_check_register_values): Likewise.
10168         * tui/tui-source.c (tui_set_source_content): Likewise.
10169         (tui_set_source_content_nil): Likewise.
10170         (tui_source_is_displayed): Likewise.
10171         * tui/tui-stack.c (tui_show_locator_content): Likewise.
10172         (tui_set_locator_fullname): Likewise.
10173         (tui_set_locator_info): Likewise.
10174         (tui_show_frame_info): Likewise.
10175         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
10176         (tui_show_source_line): Likewise.
10177         (tui_horizontal_source_scroll): Likewise.
10178         (tui_update_breakpoint_info): Likewise.
10179         (tui_set_exec_info_content): Likewise.
10180         (tui_show_exec_info_content): Likewise.
10181         (tui_alloc_source_buffer): Likewise.
10182         (tui_line_is_displayed): Likewise.
10183         (tui_addr_is_displayed): Likewise.
10184
10185 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
10186
10187         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
10188         event if PL_FLAG_EXEC is set.
10189         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
10190         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
10191         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
10192         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
10193         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
10194
10195 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
10196
10197         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
10198         [TDP_RFPPWAIT] New variable fbsd_pending_children.
10199         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
10200         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
10201         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
10202         [PT_LWPINFO] (fbsd_wait): New function.
10203         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
10204         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
10205         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
10206         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
10207         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
10208         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
10209         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
10210         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
10211         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
10212         "fbsd_wait".
10213         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
10214         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
10215         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
10216         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
10217         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
10218         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
10219         Set "to_post_attach" to "fbsd_post_attach".
10220
10221 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
10222
10223         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
10224         (fbsd_find_memory_regions): Mark static.
10225         (fbsd_nat_add_target): New function.
10226         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
10227         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
10228         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
10229         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
10230         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
10231         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
10232
10233 2015-04-27  Gary Benson <gbenson@redhat.com>
10234
10235         * objfiles.c (allocate_objfile): Do not attempt to expand name
10236         if name is a "target:" filename.
10237         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
10238         to load auto-load scripts for objfiles with "target:" filenames.
10239
10240 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10241
10242         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
10243         (enum s390_vector_abi_kind): New enum.
10244         (struct gdbarch_tdep)<vector_abi>: New field.
10245         (s390_effective_inner_type): Add parameter min_size.  Stop
10246         unwrapping if the inner type is smaller than min_size.
10247         (s390_function_arg_float): Adjust call to
10248         s390_effective_inner_type.
10249         (s390_function_arg_vector): New function.
10250         (s390_function_arg_integer): Adjust comment.
10251         (struct s390_arg_state)<vr>: New field.
10252         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
10253         arguments according to vector ABI when appropriate.
10254         (s390_push_dummy_call): Initialize the argument state's field
10255         'vr'.  Adjust calls to s390_handle_arg.
10256         (s390_register_return_value): Handle vector return values.
10257         (s390_return_value): Apply the "register" return value convention
10258         to a vector when appropriate.
10259         (s390_gdbarch_init): Initialize tdep->vector_abi.
10260         * NEWS: Announce S390 vector ABI support.
10261
10262 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10263
10264         * s390-linux-tdep.c (s390_return_value_convention): Remove
10265         function.  Inline its logic...
10266         (s390_return_value): ...here.  Instead, move the handling of the
10267         "register" return value convention...
10268         (s390_register_return_value): ...here.  New function.
10269
10270 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10271
10272         * s390-linux-tdep.c
10273         (is_float_singleton): Remove function.  Move the "singleton" part
10274         of the logic...
10275         (s390_effective_inner_type): ...here.  New function.
10276         (is_float_like): Remove function.  Inline its logic...
10277         (s390_function_arg_float): ...here.
10278         (is_pointer_like, is_integer_like, is_struct_like): Remove
10279         functions.  Inline their logic...
10280         (s390_function_arg_integer): ...here.
10281         (s390_function_arg_pass_by_reference): Remove function.
10282         (extend_simple_arg): Remove function.
10283         (alignment_of): Remove function.
10284         (struct s390_arg_state): New structure.
10285         (s390_handle_arg): New function.
10286         (s390_push_dummy_call): Move parameter placement logic to the new
10287         function s390_handle_arg.  Call it for calculating the stack area
10288         sizes first, and again for actually writing the parameters.
10289
10290 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10291
10292         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
10293           false if the argument is zero.
10294
10295 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
10296
10297         * ada-lang.c (template_to_static_fixed_type): Return input type
10298         when it is already fixed.  Cache the input type itself when not
10299         creating a static fixed copy.  Make it explicit that we never
10300         molestate the input type.
10301         * gdbtypes.c (resolve_dynamic_struct): Reset the
10302         TYPE_TARGET_TYPE field for resolved copies.
10303
10304 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
10305
10306         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
10307         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
10308         (template_to_static_fixed_type): Call ada_check_typedef only
10309         when necessary.
10310
10311 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
10312
10313         * cli/cli-dump.c (srec_dump_command): Add internationalization
10314         mark ups.
10315         (ihex_dump_command): Likewise.
10316         (tekhex_dump_command): Likewise.
10317         (binary_dump_command): Likewise.
10318         (binary_append_command): Likewise.
10319
10320 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
10321
10322         * cli/cli-dump.c (verilog_cmdlist): New variable.
10323         (dump_verilog_memory): New function.
10324         (dump_verilog_value): New function.
10325         (verilog_dump_command): New function.
10326         (_initialize_cli_dump): Add new commands to support verilog dump
10327         format.
10328         * NEWS: Add entry for "dump verilog".
10329
10330 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
10331
10332         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
10333         descriptive type when there is none.
10334
10335 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
10336
10337         * tui/tui-win.c (tui_async_resize_screen): Call
10338         rl_resize_terminal().
10339
10340 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
10341
10342         * windows-nat.c (handle_output_debug_string): Don't change
10343         current_event.dwThreadId.
10344         (get_windows_debug_event): Use thread_id, rather than relying on
10345         current_event.dwThreadId being changed.
10346
10347 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
10348
10349         * windows-nat.c (windows_continue): Report an error if
10350         ContinueDebugEvent() fails.
10351
10352 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
10353
10354         * windows-nat.c (windows_resume): Fix misspelling in debug output.
10355
10356 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
10357
10358         * windows-nat.c (get_windows_debug_event): Replace retval with
10359         thread_id throughout.  Update stale comment.
10360
10361 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
10362
10363         * windows-nat.c (get_windows_debug_event): Don't use ternary
10364         conditional operator.
10365
10366 2015-04-21  Pierre Muller  <muller@sourceware.org>
10367
10368         PR pascal/17815
10369         p-exp.y (yylex): Reorganize code to return the matched pattern
10370         for a field of this.
10371
10372 2015-04-21  Gary Benson <gbenson@redhat.com>
10373
10374         * common/fileio.h (fileio_to_host_openflags): New declaration.
10375         * common/fileio.c (fcntl.h): New include.
10376         (fileio_to_host_openflags): New function, factored out from...
10377         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
10378         Single use updated.
10379
10380 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
10381
10382         * rl78-tdep.c (RL78_SP_ADDR): Define.
10383         (opc_reg_to_gdb_regnum): New static function.
10384         (rl78_analyze_prologue): Recognize instructions forming slightly
10385         more interesting prologues.
10386
10387 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
10388
10389         Revert:
10390         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
10391         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10392         TYPE_CODE_REF types so that they are not considered as dynamic
10393         depending on the referenced type.
10394         (resolve_dynamic_type_internal): Likewise.
10395
10396 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
10397
10398         Revert:
10399         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
10400         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10401         "top_level" parameter.
10402         (resolve_dynamic_type_internal): Remove the unused "top_level"
10403         parameter.  Update call to is_dynamic_type_internal.
10404         (is_dynamic_type): Update call to is_dynamic_type_internal.
10405         (resolve_dynamic_range): Update call to
10406         resolve_dynamic_type_internal.
10407         (resolve_dynamic_union): Likewise.
10408         (resolve_dynamic_struct): Likewise.
10409         (resolve_dynamic_type): Likewise.
10410
10411 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
10412
10413         * breakpoint.c (update_dprintf_command_list): Remove duplicated
10414         xmalloc.
10415
10416 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
10417
10418         * reply_mig_hack.awk: Robustify parsing.
10419
10420         * reply_mig_hack.awk: Don't bother to declare an intermediate
10421         function pointer variable.
10422
10423 2015-04-17  Doug Evans  <dje@google.com>
10424
10425         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
10426         to "exec_displacement" to avoid confusion with inner use of the name.
10427
10428 2015-04-17  Pedro Alves  <palves@redhat.com>
10429
10430         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
10431         if HW point of TYPE isn't supported.
10432
10433 2015-04-17  Yao Qi  <yao.qi@linaro.org>
10434             Pedro Alves  <palves@redhat.com>
10435
10436         * target.h (target_can_use_hardware_watchpoint): Update comments.
10437         Remove trailing ";".
10438
10439 2015-04-17  Gary Benson <gbenson@redhat.com>
10440
10441         * remote.c (remote_add_inferior): New argument try_open_exec.
10442         If nonzero, attempt to open the inferior's executable file as
10443         the main executable if no main executable is open already.
10444         All callers updated.
10445         * NEWS: Mention that GDB now supports automatic location and
10446         retrieval of executable + files from remote targets.
10447
10448 2015-04-17  Gary Benson <gbenson@redhat.com>
10449
10450         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
10451         * remote.c (PACKET_qXfer_exec_file): Likewise.
10452         (remote_protocol_features): Register the
10453         "qXfer:exec-file:read" feature.
10454         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
10455         (remote_pid_to_exec_file): New function.
10456         (init_remote_ops): Initialize to_pid_to_exec_file.
10457         (_initialize_remote): Register new "set/show remote
10458         pid-to-exec-file-packet" command.
10459         * NEWS: Announce new qXfer:exec-file:read packet.
10460
10461 2015-04-17  Gary Benson <gbenson@redhat.com>
10462
10463         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
10464         New declaration.
10465         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
10466         New function, factored out from...
10467         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
10468
10469 2015-04-17  Gary Benson <gbenson@redhat.com>
10470
10471         * exec.c (solist.h): New include.
10472         (exec_file_locate_attach): Prefix absolute executable
10473         paths with gdb_sysroot if set.
10474         * NEWS: Mention that executable paths may be prepended
10475         with sysroot.
10476
10477 2015-04-17  Gary Benson <gbenson@redhat.com>
10478
10479         * solist.h (exec_file_find): New declaration.
10480         * solib.c (solib_find_1): New function, factored out from...
10481         (solib_find): ...here.
10482         (exec_file_find): New function.
10483
10484 2015-04-17  Gary Benson <gbenson@redhat.com>
10485
10486         * gdbcore.h (exec_file_locate_attach): New declaration.
10487         * exec.c (exec_file_locate_attach): New function, factored
10488         out from...
10489         * infcmd.c (attach_command_post_wait): ...here.
10490
10491 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
10492
10493         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
10494
10495 2015-04-16  Yao Qi  <yao.qi@linaro.org>
10496
10497         * infrun.c (maybe_software_singlestep): Declare.
10498         (displaced_step_fixup): Call maybe_software_singlestep.
10499
10500 2015-04-15  Doug Evans  <dje@google.com>
10501
10502         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
10503
10504 2015-04-15  Doug Evans  <dje@google.com>
10505
10506         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
10507
10508 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
10509
10510         * python/lib/gdb/command/unwinders.py: Add parentheses.
10511
10512 2015-04-15  Yao Qi  <yao.qi@linaro.org>
10513
10514         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
10515
10516 2015-04-15  Yao Qi  <yao.qi@linaro.org>
10517
10518         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
10519
10520 2015-04-15  Yao Qi  <yao.qi@linaro.org>
10521
10522         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
10523         dsc->insn_size instead of 4.
10524
10525 2015-04-14  Gary Benson <gbenson@redhat.com>
10526
10527         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
10528         * minidebug.c (lzma_stat): Likewise.
10529         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
10530         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
10531
10532 2015-04-13  Stan Shebs  <stanshebs@google.com>
10533
10534         * MAINTAINERS: Update my email address.
10535
10536 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
10537
10538         * amd64-tdep.c (amd64_target_description): New function.
10539         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
10540         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
10541         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10542         x86 extended save area.
10543         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10544         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
10545         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
10546         (_initialize_amd64fbsd_nat): Set "to_read_description" to
10547         "amd64fbsd_read_description".
10548         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
10549         (amd64fbsd_supply_xstateregset): New function.
10550         (amd64fbsd_collect_xstateregset): New function.
10551         Add "amd64fbsd_xstateregset".
10552         (amd64fbsd_iterate_over_regset_sections): New function.
10553         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
10554         "I386_FBSD_XSAVE_XCR0_OFFSET".
10555         Add "iterate_over_regset_sections" gdbarch method.
10556         Add "core_read_description" gdbarch method.
10557         * i386-tdep.c (i386_target_description): New function.
10558         * i386-tdep.h: Export i386_target_description and tdesc_i386.
10559         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
10560         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10561         x86 extended save area.
10562         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10563         * i386bsd-nat.h: Export i386bsd_xsave_len.
10564         * i386fbsd-nat.c (i386fbsd_read_description): New function.
10565         (_initialize_i386fbsd_nat): Set "to_read_description" to
10566         "i386fbsd_read_description".
10567         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
10568         (i386fbsd_core_read_description): New function.
10569         (i386fbsd_supply_xstateregset): New function.
10570         (i386fbsd_collect_xstateregset): New function.
10571         Add "i386fbsd_xstateregset".
10572         (i386fbsd_iterate_over_regset_sections): New function.
10573         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
10574         "I386_FBSD_XSAVE_XCR0_OFFSET".
10575         Add "iterate_over_regset_sections" gdbarch method.
10576         Add "core_read_description" gdbarch method.
10577         * i386fbsd-tdep.h: New file.
10578
10579 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10580
10581         * NEWS (Changes since GDB 7.9): Add removed -xdb.
10582         * breakpoint.c (command_line_is_silent): Remove xdb_commands
10583         conditional.
10584         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
10585         and lb.
10586         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
10587         va.
10588         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
10589         conditional.
10590         * defs.h (xdb_commands): Remove declaration.
10591         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
10592         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
10593         * infcmd.c (run_no_args_command, go_command): Remove.
10594         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
10595         * infrun.c (xdb_handle_command): Remove.
10596         (_initialize_infrun): Remove xdb_commands for lz and z.
10597         * main.c (xdb_commands): Remove variable.
10598         (captured_main): Remove "xdb" from long_options.
10599         (print_gdb_help): Remove --xdb from help.
10600         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
10601         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
10602         * stack.c (backtrace_full_command, args_plus_locals_info)
10603         (current_frame_command): Remove.
10604         (_initialize_stack): Remove xdb_commands for t, T and l.
10605         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
10606         * thread.c (_initialize_thread): Remove xdb_commands condition.
10607         * tui/tui-layout.c (tui_toggle_layout_command)
10608         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
10609         (_initialize_tui_layout): Remove xdb_commands for td and ts.
10610         * tui/tui-regs.c (tui_scroll_regs_forward_command)
10611         (tui_scroll_regs_backward_command): Remove.
10612         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
10613         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
10614         (_initialize_tui_win): Remove xdb_commands for U and w.
10615         * utils.c (pagination_on_command, pagination_off_command): Remove.
10616         (initialize_utils): Remove xdb_commands for am and sm.
10617
10618 2015-04-10  Pedro Alves  <palves@redhat.com>
10619
10620         * infrun.c (displaced_step_fixup): Switch to the event ptid
10621         earlier.  If the thread stopped for a watchpoint and the
10622         target/arch has non-continuable watchpoints, cancel the displaced
10623         step.
10624         (resume): Don't start a displaced step if in-line step-over info
10625         is valid.
10626
10627 2015-04-10  Pedro Alves  <palves@redhat.com>
10628
10629         * infrun.c (displaced_step_in_progress): New function.
10630         (do_target_resume): Advise target to report all signals if
10631         displaced stepping.
10632
10633 2015-04-10  Pedro Alves  <palves@redhat.com>
10634
10635         PR gdb/18216
10636         * infrun.c (process_event_stop_test): Don't assume a step-resume
10637         is set if tp->stepped_breakpoint is true.
10638
10639 2015-04-10  Yao Qi  <yao.qi@linaro.org>
10640
10641         * arm-tdep.c (install_alu_reg): Update comment.
10642         (thumb_copy_alu_reg): Remove local variable rn.  Update
10643         debugging message.  Use r2 instead of r1 in the modified
10644         instruction.
10645
10646 2015-04-10  Pedro Alves  <palves@redhat.com>
10647
10648         PR gdb/13858
10649         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
10650         linux_displaced_step_location as gdbarch_displaced_step_location
10651         hook.
10652         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10653         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10654         * linux-tdep.c (linux_displaced_step_location): New function,
10655         based on ppc_linux_displaced_step_location.
10656         * linux-tdep.h (linux_displaced_step_location): New declaration.
10657         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
10658         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
10659         Delete.
10660         (ppc_linux_init_abi): Install linux_displaced_step_location as
10661         gdbarch_displaced_step_location hook, even without Cell/B.E..
10662         (_initialize_ppc_linux_tdep): Don't install
10663         ppc_linux_inferior_created as inferior_created observer.
10664         * s390-linux-tdep.c (s390_gdbarch_init): Install
10665         linux_displaced_step_location as gdbarch_displaced_step_location
10666         hook.
10667
10668 2015-04-09  Gary Benson <gbenson@redhat.com>
10669
10670         * common/common-remote-fileio.h: Rename to...
10671         * common/fileio.h: ...this.  Update all references.
10672         (remote_fileio_to_fio_error): Rename to...
10673         (host_to_fileio_error): ...this.
10674         (remote_fileio_to_be): Rename to...
10675         (host_to_bigendian): ...this.  Update all callers.
10676         (remote_fileio_to_fio_uint): Rename to...
10677         (host_to_fileio_uint): ...this.  Update all callers.
10678         (remote_fileio_to_fio_time): Rename to...
10679         (host_to_fileio_time): ...this.  Update all callers.
10680         (remote_fileio_to_fio_stat): Rename to...
10681         (host_to_fileio_stat): ...this.
10682         Update all references.
10683         * common/common-remote-fileio.c: Rename to...
10684         * common/fileio.c: ...this.  Update all references.
10685         (remote_fileio_to_fio_error): Rename to...
10686         (host_to_fileio_error): ...this.  Update all callers.
10687         (remote_fileio_mode_to_target): Rename to...
10688         (fileio_mode_pack): ...this.  Update all callers.
10689         (remote_fileio_to_fio_mode): Rename to...
10690         (host_to_fileio_mode): ...this.  Update all callers.
10691         (remote_fileio_to_fio_ulong): Rename to...
10692         (host_to_fileio_ulong): ...this.  Update all callers.
10693         (remote_fileio_to_fio_stat): Rename to...
10694         (host_to_fileio_stat): ...this.  Update all callers.
10695
10696 2015-04-09  Andy Wingo  <wingo@igalia.com>
10697
10698         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
10699         (frame_functions): Bind gdbscm_frame_read_register to
10700         frame-read-register.
10701         * guile/lib/gdb.scm (frame-read-register): Export.
10702
10703 2015-04-09  Gary Benson <gbenson@redhat.com>
10704
10705         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
10706         New declaration.
10707         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
10708         New function, factored out the named functions below.
10709         * inf-child.c (gdb/fileio.h): Remove include.
10710         (common-remote-fileio.h): New include.
10711         (inf_child_errno_to_fileio_error): Remove function.  Update
10712         all callers to use remote_fileio_to_fio_error.
10713         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
10714
10715 2015-04-09  Andy Wingo  <wingo@igalia.com>
10716
10717         * MAINTAINERS (Write After Approval): Add Andy Wingo.
10718
10719 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
10720
10721         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
10722         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
10723         * configure: Regenerated.
10724
10725 2015-04-09  Pedro Alves  <palves@redhat.com>
10726
10727         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
10728         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
10729         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
10730         * gnulib/import/Makefile.am: Update.
10731         * gnulib/import/Makefile.in: Update.
10732         * gnulib/import/m4/gnulib-cache.m4: Update.
10733         * gnulib/import/m4/gnulib-comp.m4: Update.
10734         * gnulib/import/m4/strtok_r.m4: New file.
10735         * gnulib/import/strtok_r.c: New file.
10736
10737 2015-04-09  Pedro Alves  <palves@redhat.com>
10738
10739         * gnulib/update-gnulib.sh (aclocal version check): Filter out
10740         "called too early to check prototype".
10741
10742 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
10743
10744         PR python/16699
10745         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
10746         use a caching mechanism.  Adjust comments and code to reflect
10747         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
10748         (cmdpy_completer_handle_brkchars): Adjust call to
10749         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
10750         (cmdpy_completer): Likewise.
10751
10752 2015-04-08  Yao Qi  <yao.qi@linaro.org>
10753
10754         * spu-tdep.c (spu_gdbarch_init): Don't call
10755         set_gdbarch_cannot_step_breakpoint.
10756
10757 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
10758
10759         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
10760
10761 2015-04-07  Pedro Alves  <palves@redhat.com>
10762
10763         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
10764         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
10765         (delete_exited_threads): New declaration.
10766         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
10767         * linux-nat.c (linux_nat_update_thread_list): New function.
10768         (linux_nat_add_target): Install it.
10769         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
10770         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
10771         (delete_exited_threads): New function.
10772
10773 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
10774
10775         * infrun.c (resume) <displaced stepping debug output>: Get the
10776         leader thread's regcache, not resume_ptid's.
10777
10778 2015-04-06  Doug Evans  <xdje42@gmail.com>
10779
10780         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
10781         VAR_DOMAIN.
10782         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
10783         Include symbol domain in debugging output.
10784
10785 2015-04-06  Pedro Alves  <palves@redhat.com>
10786             Bernd Edlinger  <bernd.edlinger@hotmail.de>
10787
10788         * configure.ac: Remove the mingw32-specific stub-termcap.o
10789         fallback, and instead fallback to the stub termcap on all hosts.
10790         * configure: Regenerate.
10791         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
10792         symbols.
10793
10794 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
10795
10796         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10797         "top_level" parameter.
10798         (resolve_dynamic_type_internal): Remove the unused "top_level"
10799         parameter.  Update call to is_dynamic_type_internal.
10800         (is_dynamic_type): Update call to is_dynamic_type_internal.
10801         (resolve_dynamic_range): Update call to
10802         resolve_dynamic_type_internal.
10803         (resolve_dynamic_union): Likewise.
10804         (resolve_dynamic_struct): Likewise.
10805         (resolve_dynamic_type): Likewise.
10806
10807 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
10808
10809         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10810         TYPE_CODE_REF types so that they are not considered as dynamic
10811         depending on the referenced type.
10812         (resolve_dynamic_type_internal): Likewise.
10813
10814 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10815
10816         * Makefile.in (top_srcdir): New.
10817         * configure: Regenerated.
10818
10819 2015-04-02  Gary Benson <gbenson@redhat.com>
10820
10821         * NEWS: Announce the new default sysroot of "target:".
10822
10823 2015-04-02  Gary Benson <gbenson@redhat.com>
10824
10825         * main.c (captured_main): Set gdb_sysroot to "target:"
10826         if not otherwise set.
10827
10828 2015-04-02  Gary Benson <gbenson@redhat.com>
10829
10830         * exec.c (exec_file_attach): Support "target:" filenames.
10831
10832 2015-04-02  Gary Benson <gbenson@redhat.com>
10833
10834         * solib.c (solib_find): Strip "target:" prefix from sysroot
10835         if accessing local files.
10836
10837 2015-04-02  Gary Benson <gbenson@redhat.com>
10838
10839         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
10840         checks and error messages.
10841
10842 2015-04-02  Gary Benson <gbenson@redhat.com>
10843
10844         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
10845         (remote_filename_p): Remove declaration.
10846         (remote_bfd_open): Likewise.
10847         * remote.c (remote_bfd_iovec_open): Remove function.
10848         (remote_bfd_iovec_close): Likewise.
10849         (remote_bfd_iovec_pread): Likewise.
10850         (remote_bfd_iovec_stat): Likewise.
10851         (remote_filename_p): Likewise.
10852         (remote_bfd_open): Likewise.
10853         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
10854         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
10855         (gdb_bfd_open_maybe_remote): Remove function.
10856         (symfile_bfd_open):  Replace remote filename check with
10857         target filename check.
10858         (reread_symbols): Use gdb_bfd_open.
10859         * build-id.c (gdbcore.h): New include.
10860         (build_id_to_debug_bfd): Use gdb_bfd_open.
10861         * infcmd.c (attach_command_post_wait): Remove remote filename
10862         check.
10863         * solib.c (solib_find): Replace remote-specific handling with
10864         target-specific handling.  Update comments where necessary.
10865         (solib_bfd_open): Replace remote-specific handling with
10866         target-specific handling.
10867         (gdb_sysroot_changed): New function.
10868         (_initialize_solib): Call the above when gdb_sysroot changes.
10869         * windows-tdep.c (gdbcore.h): New include.
10870         (windows_xfer_shared_library): Use gdb_bfd_open.
10871
10872 2015-04-02  Gary Benson <gbenson@redhat.com>
10873
10874         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
10875         (is_target_filename): New declaration.
10876         (gdb_bfd_has_target_filename): Likewise.
10877         (gdb_bfd_open): Update documentation comment.
10878         * gdb_bfd.c (target.h): New include.
10879         (gdb/fileio.h): Likewise.
10880         (is_target_filename): New function.
10881         (gdb_bfd_has_target_filename): Likewise.
10882         (fileio_errno_to_host): Likewise.
10883         (gdb_bfd_iovec_fileio_open): Likewise.
10884         (gdb_bfd_iovec_fileio_pread): Likewise.
10885         (gdb_bfd_iovec_fileio_close): Likewise.
10886         (gdb_bfd_iovec_fileio_fstat): Likewise.
10887         (gdb_bfd_open): Use target fileio to access paths prefixed
10888         with "target:" where necessary.
10889
10890 2015-04-02  Gary Benson <gbenson@redhat.com>
10891
10892         * target.h (struct target_ops) <to_filesystem_is_local>:
10893         New field.
10894         (target_filesystem_is_local): New macro.
10895         * target-delegates.c: Regenerate.
10896         * remote.c (remote_filesystem_is_local): New function.
10897         (init_remote_ops): Initialize to_filesystem_is_local.
10898
10899 2015-04-02  Gary Benson <gbenson@redhat.com>
10900
10901         * target.h (struct target_ops) <to_fileio_fstat>: New field.
10902         (target_fileio_fstat): New declaration.
10903         * target.c (target_fileio_fstat): New function.
10904         * inf-child.c (inf_child_fileio_fstat): Likewise.
10905         (inf_child_target): Initialize to_fileio_fstat.
10906         * remote.c (init_remote_ops): Likewise.
10907
10908 2015-04-01  Sasha Smundak  <asmundak@google.com>
10909
10910         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
10911         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
10912         (py-unwind.o): New recipe.
10913         * NEWS: mention Python frame unwinding.
10914         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
10915         gdb/unwinder.py and gdb/command/unwinder.py
10916         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
10917         list.
10918         (execute_unwinders): New function.
10919         * python/lib/gdb/command/unwinders.py: New file.
10920         * python/lib/gdb/unwinder.py: New file.
10921         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
10922         (objfpy_dealloc): Decrement frame_unwinders reference count.
10923         (objfpy_initialize): Create frame_unwinders list.
10924         (objfpy_get_frame_unwinders): New function.
10925         (objfpy_set_frame_unwinders): Ditto.
10926         (objfile_getset): Add frame_unwinders attribute to Objfile.
10927         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
10928         (pspy_dealloc): Decrement frame_unwinders reference count.
10929         (pspy_initialize): Create frame_unwinders list.
10930         (pspy_get_frame_unwinders): New function.
10931         (pspy_set_frame_unwinders): Ditto.
10932         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
10933         * python/py-unwind.c: New file.
10934         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
10935         (objpy_get_frame_unwinders): New prototype.
10936         (gdbpy_initialize_unwind): New prototype.
10937         * python/python.c (gdbpy_apply_type_printers): Call
10938         gdbpy_initialize_unwind.
10939
10940 2015-04-01  Pedro Alves  <palves@redhat.com>
10941
10942         * infrun.c (resume): Check currently_stepping after clearing
10943         stepped_breakpoint, not before.
10944
10945 2015-04-01  Pedro Alves  <palves@redhat.com>
10946
10947         * infrun.c (print_target_wait_results): Print all the ptid
10948         elements.
10949
10950 2015-04-01  Pedro Alves  <palves@redhat.com>
10951
10952         * infrun.c (keep_going): Also discard cleanups if inserting
10953         breakpoints fails.
10954
10955 2015-04-01  Pedro Alves  <palves@redhat.com>
10956
10957         * infrun.c (wait_for_inferior): Install the
10958         finish_thread_state_cleanup cleanup across the whole function, not
10959         just around handle_inferior_event.
10960
10961 2015-04-01  Pedro Alves  <palves@redhat.com>
10962
10963         * infrun.c (resume) <step past permanent breakpoint>: Use
10964         do_target_resume.
10965
10966 2015-04-01  Pedro Alves  <palves@redhat.com>
10967
10968         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
10969
10970 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
10971
10972         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
10973
10974 2015-04-01  Pedro Alves  <palves@redhat.com>
10975
10976         * linux-thread-db.c (record_thread): Readd the thread to gdb's
10977         list if it was marked exited.
10978
10979 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
10980
10981         * configure: Regenerated.
10982
10983 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
10984             Jan Kratochvil  <jan.kratochvil@redhat.com>
10985             Oleg Nesterov  <oleg@redhat.com>
10986
10987         PR corefiles/16092
10988         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
10989         New enum identifying the various options of the coredump_filter
10990         file.
10991         (struct smaps_vmflags): New struct.
10992         (use_coredump_filter): New variable.
10993         (decode_vmflags): New function.
10994         (mapping_is_anonymous_p): Likewise.
10995         (dump_mapping_p): Likewise.
10996         (linux_find_memory_regions_full): New variables
10997         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
10998         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
10999         parsing of its information.  Implement memory mapping filtering
11000         based on its contents.
11001         (show_use_coredump_filter): New function.
11002         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
11003         * NEWS: Mention the possibility of using the
11004         '/proc/PID/coredump_filter' file when generating a corefile.
11005         Mention new command 'set use-coredump-filter'.
11006
11007 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
11008
11009         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
11010         read_memory_unsigned_integer.
11011
11012 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
11013
11014         * Makefile.in (ZLIB): New.
11015         (ZLIBINC): Likewise.
11016         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
11017         (CLIBS): Add $(ZLIB).
11018         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
11019         Add -lz to LIBS.
11020         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
11021         * top.c (print_gdb_configuration): Remove --with-zlib and
11022         --without-zlib.
11023         * config.in: Regenerated.
11024         * configure: Likewise.
11025
11026 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11027
11028         * NEWS: Mention info os cpus support.
11029         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
11030         (struct osdata_type): Add cpus entry, reorder the entries in
11031         alphabetical order.
11032
11033 2015-03-31  Matthias Klose  <doko@ubuntu.com>
11034
11035         * compile/compile.c (compile_to_object): Allow triplets with or
11036         without vendor set.
11037
11038 2015-03-30  Doug Evans  <dje@google.com>
11039
11040         PR c++/18141
11041         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
11042         klass in VAR_DOMAIN.
11043
11044 2015-03-30  Gary Benson <gbenson@redhat.com>
11045
11046         * remote.c (remote_mourn_1): Remove function.  Update all callers
11047         to use remote_mourn.
11048         (extended_remote_mourn_1): Remove function.  Update all callers
11049         to use extended_remote_mourn.
11050         (extended_remote_attach_1): Remove function.  Update all callers
11051         to use extended_remote_attach.
11052
11053 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
11054
11055         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
11056         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
11057         (ALLDEPFILES): Add ft32-tdep.c.
11058         * configure.tgt: Add FT32 entry.
11059         * ft32-tdep.c: New file, FT32 target-dependent code.
11060         * ft32-tdep.h: New file, FT32 target-dependent code.
11061
11062 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
11063
11064         Revert:
11065         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11066         Code cleanup.
11067         * printcmd.c (print_command_1): Move expr variable scope.
11068
11069 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
11070
11071         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
11072
11073 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
11074
11075         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
11076         sections.
11077
11078 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
11079
11080         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
11081         exception raised while parsing the probe arguments.
11082         Force parsing to be done using the C language parser.
11083         * expression.h (parse_expression_with_language): Declare.
11084         * parse.c (parse_expression_with_language): New function.
11085
11086 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
11087
11088         * MAINTAINERS (Write After Approval): Add "Jon Turney".
11089
11090 2015-03-26  Andy Wingo  <wingo@igalia.com>
11091
11092         PR symtab/18148
11093         * dwarf2read.c (struct partial_die_info): Add has_const_value
11094         member.
11095         (add_partial_symbol): Don't punt on symbols that have const_value
11096         attributes.
11097         (read_partial_die): Detect DW_AT_const_value.
11098
11099 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11100
11101         Code cleanup.
11102         * printcmd.c (print_command_1): Move expr variable scope.
11103
11104 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11105
11106         Code cleanup.
11107         * printcmd.c (validate_format): Make the parameter cmdname const.
11108
11109 2015-03-26  Don Breazeal  <donb@codesourcery.com>
11110
11111         * remote.c (_initialize_remote): Update comment.
11112
11113 2015-03-26  Pedro Alves  <palves@redhat.com>
11114             Jon TURNEY  <jon.turney@dronecode.org.uk>
11115
11116         * coffread.c (coff_symfile_read): When constructing the name of an
11117         import stub symbol from import symbol for amd64, only skip the
11118         char after _imp_ if the target is underscored (like i386) and the
11119         char is indeed the target's leading char.
11120
11121 2015-03-25  Pedro Alves  <palves@redhat.com>
11122
11123         * target.h <to_async>: Replace 'callback' and 'context' parameters
11124         with boolean 'enable' parameter.
11125         (target_async): Replace CALLBACK and CONTEXT parameters with
11126         boolean ENABLE parameter.
11127         * inf-loop.c (inferior_event_handler): Adjust.
11128         * linux-nat.c (linux_nat_attach, linux_nat_resume)
11129         (linux_nat_resume): Adjust.
11130         (async_client_callback, async_client_context): Delete.
11131         (handle_target_event): Call inferior_event_handler directly.
11132         (linux_nat_async): Replace 'callback' and 'context' parameters
11133         with boolean 'enable' parameter.  Adjust.  Remove references to
11134         async_client_callback and async_client_context.
11135         (linux_nat_close): Adjust.
11136         * record-btrace.c (record_btrace_async): Replace 'callback' and
11137         'context' parameters with boolean 'enable' parameter.  Adjust.
11138         (record_btrace_resume): Adjust.
11139         * record-full.c (record_full_async): Replace 'callback' and
11140         'context' parameters with boolean 'enable' parameter.  Adjust.
11141         (record_full_resume, record_full_core_resume): Adjust.
11142         * remote.c (struct remote_state) <async_client_callback,
11143         async_client_context>: Delete fields.
11144         (remote_start_remote, extended_remote_attach_1, remote_resume)
11145         (extended_remote_create_inferior): Adjust.
11146         (remote_async_serial_handler): Call inferior_event_handler
11147         directly.
11148         (remote_async): Replace 'callback' and 'context' parameters with
11149         boolean 'enable' parameter.  Adjust.
11150         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
11151         Adjust.
11152         * target-delegates.c: Regenerate.
11153
11154 2015-03-25  Gary Benson <gbenson@redhat.com>
11155             Pedro Alves  <palves@redhat.com>
11156
11157         * target.c (fileio_ft_t): New typedef, define object vector.
11158         (fileio_fhandles): New static variable.
11159         (is_closed_fileio_fh): New macro.
11160         (lowest_closed_fd): New static variable.
11161         (acquire_fileio_fd): New function.
11162         (release_fileio_fd): Likewise.
11163         (fileio_fd_to_fh): New macro.
11164         (target_fileio_open): Wrap the file descriptor on success.
11165         (target_fileio_pwrite): Updated to use wrapped file descriptor.
11166         (target_fileio_pread): Likewise.
11167         (target_fileio_close): Likewise.
11168
11169 2015-03-24  Pedro Alves  <palves@redhat.com>
11170
11171         * thread.c (thread_apply_all_command): Take exited threads into
11172         account.
11173
11174 2015-03-24  Pedro Alves  <palves@redhat.com>
11175
11176         * infrun.c (resume, proceed): Mention
11177         switch_back_to_stepped_thread, not switch_back_to_stepping.
11178
11179 2015-03-24  Pedro Alves  <palves@redhat.com>
11180
11181         * infrun.c (user_visible_resume_ptid): Rewrite going from
11182         most-locked to unlocked instead of the opposite.  Move comment ...
11183         * infrun.h (user_visible_resume_ptid): ... here.
11184
11185 2015-03-24  Pedro Alves  <palves@redhat.com>
11186
11187         * linux-nat.c (linux_nat_resume): Output debug logs before trying
11188         to resume the event lwp.  Use the lwp's ptid instead of the passed
11189         in (maybe wildcard) ptid.
11190         (stop_wait_callback): Tweak debug log output.
11191         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
11192         TRAP_TRACE.
11193         (linux_nat_filter_event): In debug output, distinguish a
11194         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
11195         before trying to resume the lwp.
11196
11197 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
11198
11199         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
11200         pointer indirection.
11201         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
11202         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
11203
11204 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
11205
11206         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
11207         Renames DYN_ATTR_DATA_LOCATION.
11208         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
11209         DYN_ATTR_DATA_LOCATION.
11210         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
11211         instead of DYN_ATTR_DATA_LOCATION.
11212
11213 2015-03-24  Pedro Alves  <palves@redhat.com>
11214
11215         * breakpoint.c (until_break_command): Adjust call to proceed.
11216         * gdbthread.h (struct thread_control_state) <stepping_command>:
11217         New field.
11218         * infcall.c (run_inferior_call): Adjust call to proceed.
11219         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
11220         Adjust calls to proceed.
11221         (set_step_frame): Set the current thread's step_start_function
11222         here.
11223         (step_once): Adjust calls to proceed.
11224         (jump_command, signal_command, until_next_command)
11225         (finish_backward, finish_forward, proceed_after_attach_callback)
11226         (attach_command_post_wait): Adjust calls to proceed.
11227         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
11228         (do_target_resume): New function, factored out from ...
11229         (resume): ... here.  Remove 'step' parameter.  Instead, check
11230         currently_stepping to determine whether the thread should be
11231         single-stepped.
11232         (proceed): Remove 'step' parameter and don't set the thread's
11233         step_start_function here.  Adjust call to 'resume'.
11234         (handle_inferior_event): Adjust calls to 'resume'.
11235         (switch_back_to_stepped_thread): Use do_target_resume instead of
11236         'resume'.
11237         (keep_going): Adjust calls to 'resume'.
11238         * infrun.h (proceed): Remove 'step' parameter.
11239         (resume): Likewise.
11240         * windows-nat.c (do_initial_windows_stuff): Adjust call to
11241         'resume'.
11242         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
11243
11244 2015-03-24  Pedro Alves  <palves@redhat.com>
11245
11246         * gdbthread.h (struct thread_control_state) <stepping_command>:
11247         New field.
11248         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
11249         the thread's stepping_command field.
11250         * infrun.c (resume): Check the thread's stepping_command flag to
11251         determine which threads should be resumed.  Rename 'entry_step'
11252         local to user_step.
11253         (clear_proceed_status_thread): Clear 'stepping_command'.
11254         (schedlock_applies): Change parameter type to struct thread_info
11255         pointer.  Adjust.
11256         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
11257         (switch_back_to_stepped_thread): Adjust calls to
11258         'schedlock_applies'.
11259         (_initialize_infrun): Adjust "set scheduler-locking step" help.
11260
11261 2015-03-24  Pedro Alves  <palves@redhat.com>
11262
11263         * infrun.c (step_start_function): Delete and ...
11264         * gdbthread.h (struct thread_control_state) <step_start_function>:
11265         ... now a field here.
11266         * infrun.c (clear_proceed_status_thread): Clear the thread's
11267         step_start_function.
11268         (proceed, process_event_stop_test, print_stop_event): Adjust.
11269
11270 2015-03-24  Pedro Alves  <palves@redhat.com>
11271
11272         * infrun.c (proceed): No longer handle negative step.
11273
11274 2015-03-24  Gary Benson  <gbenson@redhat.com>
11275
11276         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
11277         (x86_linux_prepare_to_resume): Likewise.
11278         * x86-linux-nat.c (x86_linux_new_thread):
11279         Moved to nat/x86-linux.c.
11280         (x86_linux_prepare_to_resume): Likewise.
11281         * nat/x86-linux.c (x86_linux_new_thread): New function.
11282         (x86_linux_prepare_to_resume): Likewise.
11283
11284 2015-03-24  Gary Benson  <gbenson@redhat.com>
11285
11286         * nat/x86-linux-dregs.h: New file.
11287         * nat/x86-linux-dregs.c: Likewise.
11288         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
11289         (x86-linux-dregs.o): New rule.
11290         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
11291         * config/i386/linux64.mh (NATDEPFILES): Likewise.
11292         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
11293         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11294         (x86_linux_dr_get): Likewise.
11295         (x86_linux_dr_set): Likewise.
11296         (x86_linux_dr_get_addr): Likewise.
11297         (x86_linux_dr_get_control): Likewise.
11298         (x86_linux_dr_get_status): Likewise.
11299         (update_debug_registers_callback): Likewise.
11300         (x86_linux_dr_set_control): Likewise.
11301         (x86_linux_dr_set_addr): Likewise.
11302         (x86_linux_update_debug_registers): Likewise.
11303
11304 2015-03-24  Gary Benson  <gbenson@redhat.com>
11305
11306         * x86-linux-nat.c (x86_linux_update_debug_registers):
11307         New function, factored out from...
11308         (x86_linux_prepare_to_resume): ...this.
11309
11310 2015-03-24  Gary Benson  <gbenson@redhat.com>
11311
11312         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
11313         (x86_linux_dr_set): Likewise.
11314         (x86_linux_dr_get_addr): Likewise.
11315         (x86_linux_dr_get_control): Likewise.
11316         (x86_linux_dr_get_status): Likewise.
11317         (update_debug_registers_callback): Likewise.
11318         (x86_linux_dr_set_control): Likewise.
11319         (x86_linux_dr_set_addr): Likewise.
11320         (x86_linux_prepare_to_resume): Likewise.
11321         (x86_linux_new_thread): Likewise.
11322
11323 2015-03-24  Gary Benson  <gbenson@redhat.com>
11324
11325         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
11326         (x86_linux_new_thread): Rename argument.
11327
11328 2015-03-24  Gary Benson  <gbenson@redhat.com>
11329
11330         * nat/x86-linux.h: New file.
11331         * nat/x86-linux.c: Likewise.
11332         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
11333         (x86-linux.o): New rule.
11334         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
11335         * config/i386/linux64.mh (NATDEPFILES): Likewise.
11336         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
11337         (lwp_set_arch_private_info): New declaration.
11338         (lwp_arch_private_info): Likewise.
11339         * linux-nat.c (lwp_set_arch_private_info): New function.
11340         (lwp_arch_private_info): Likewise.
11341         * x86-linux-nat.c: Include nat/x86-linux.h.
11342         (arch_lwp_info): Removed structure.
11343         (update_debug_registers_callback):
11344         Use lwp_set_debug_registers_changed.
11345         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11346         and lwp_set_debug_registers_changed.
11347         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11348
11349 2015-03-24  Gary Benson  <gbenson@redhat.com>
11350
11351         * nat/linux-nat.h (ptid_of_lwp): New declaration.
11352         (lwp_is_stopped): Likewise.
11353         (lwp_stop_reason): Likewise.
11354         * linux-nat.c (ptid_of_lwp): New function.
11355         (lwp_is_stopped): Likewise.
11356         (lwp_is_stopped_by_watchpoint): Likewise.
11357         * x86-linux-nat.c (update_debug_registers_callback):
11358         Use lwp_is_stopped.
11359         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11360         lwp_stop_reason.
11361
11362 2015-03-24  Gary Benson  <gbenson@redhat.com>
11363
11364         * linux-nat.h (linux_stop_lwp): Move declaration to...
11365         * nat/linux-nat.h (linux_stop_lwp): New declaration.
11366
11367 2015-03-24  Gary Benson  <gbenson@redhat.com>
11368
11369         * linux-nat.h: Include nat/linux-nat.h.
11370         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
11371         * nat/linux-nat.h (struct lwp_info): New forward declaration.
11372         (iterate_over_lwps_ftype): New typedef.
11373         (iterate_over_lwps): New declaration.
11374         * linux-nat.h (iterate_over_lwps): Update comment.  Use
11375         iterate_over_lwps_ftype.  Update callback return value check.
11376
11377 2015-03-24  Gary Benson  <gbenson@redhat.com>
11378
11379         * x86-nat.h (x86_debug_reg_state): Move declaration to...
11380         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
11381
11382 2015-03-24  Gary Benson  <gbenson@redhat.com>
11383
11384         * nat/linux-nat.h (current_lwp_ptid): New declaration.
11385         * linux-nat.c (current_lwp_ptid): New function.
11386         * x86-linux-nat.c: Include nat/linux-nat.h.
11387         (x86_linux_dr_get_addr): Use current_lwp_ptid.
11388         (x86_linux_dr_get_control): Likewise.
11389         (x86_linux_dr_get_status): Likewise.
11390         (x86_linux_dr_set_control): Likewise.
11391         (x86_linux_dr_set_addr): Likewise.
11392
11393 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11394
11395         PR breakpoints/16466
11396         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
11397
11398 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
11399
11400         * ser-mingw.c (ser_windows_setparity): Fix indentation.
11401         * ser-unix.c (hardwire_setparity): Likewise.
11402
11403 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
11404
11405         * NEWS: Mention set/show serial parity command.
11406         * monitor.c (monitor_open): Call serial_setparity.
11407         * remote.c (remote_open_1): Likewise.
11408         * ser-base.c (ser_base_serparity): New function.
11409         * ser-base.h (ser_base_setparity): Add  declaration.
11410         * ser-go32.c (dos_ops): Set "setparity" field.
11411         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
11412         state.Parity.
11413         (ser_windows_setparity): New function.
11414         (hardwire_ops): Add ser_windows_setparity.
11415         (tty_ops): Add NULL for setparity field.
11416         (pipe_ops): Add ser_base_setparity.
11417         (tcp_ops): Likewise.
11418         * ser-pipe.c (pipe_ops): Likewise.
11419         * ser-tcp.c (tcp_ops): Likewise.
11420         * ser-unix.c (hardwire_setparity): Add declaration.
11421         (hardwire_raw): Don't reset PARENB flag.
11422         (hardwire_setparity): New function.
11423         (hardwire_ops): Add hardwire_setparity.
11424         * serial.c (serial_setparity): New function.
11425         (serial_parity): New global.
11426         (parity_none, parity_odd, parity_even, parity_enums, parity):
11427         New static globals.
11428         (set_parity): New function.
11429         (_initialize_serial): Add set/show serial parity commands.
11430         * serial.h (GDBPARITY_NONE): Define.
11431         (GDBPARITY_ODD): Define.
11432         (GDBPARITY_EVEN): Define.
11433         (serial_setparity) Add declaration.
11434         (struct serial_ops): Add setparity field.
11435         * target.h (serial_parity): Add declaration.
11436
11437 2015-03-23  Keith Seitz  <keiths@redhat.com>
11438
11439         * linespec.c (linespec_lexer_lex_keyword): Update comment.
11440
11441 2015-03-23  Keith Seitz  <keiths@redhat.com>
11442
11443         * breakpoint.c (parse_breakpoint_sals): Use
11444         linespec_lexer_lex_keyword to ascertain if the user specified
11445         a NULL location.
11446         * linespec.c [IF_KEYWORD_INDEX]: Define.
11447         (linespec_lexer_lex_keyword): Export.
11448         (struct ls_parser) <keyword_ok>: Remove.
11449         A keyword is only a keyword if not followed by another keyword.
11450         (linespec_lexer_lex_one): Remove keyword_ok handling.
11451         Add comment explaining why the parsing stream is not advanced
11452         when a keyword is seen.
11453         (parse_linespec): Remove parser->keyword_ok.
11454         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
11455
11456 2015-03-23  Keith Seitz  <keiths@redhat.com>
11457
11458         PR gdb/18021
11459         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
11460         if we find a static method with DW_AT_vtable_elem_location.
11461
11462 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
11463
11464         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
11465         before the second loop, to avoid undefined behavior.  Reported by
11466         Anton Blanchard <anton@samba.org>.
11467
11468 2015-03-20  Keven Boell  <keven.boell@intel.com>
11469
11470         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
11471         data_location usage to linked list.
11472         (resolve_dynamic_type_internal): Adapt data_location to
11473         linked list.
11474         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
11475         (copy_type_recursive, copy_type): Add copy of linked list.
11476         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
11477         (struct dynamic_prop_list): New struct.
11478         * dwarf2read.c (set_die_type): Set data_location data.
11479
11480 2015-03-20  Pedro Alves  <palves@redhat.com>
11481
11482         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
11483         inner block and make it const.
11484         * machoread.c (get_archive_prefix_len): Make "lparen" const.
11485
11486 2015-03-20  Pedro Alves  <palves@redhat.com>
11487
11488         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
11489         * breakpoint.h (set_breakpoint_condition): Update declaration.
11490
11491 2015-03-20  Pedro Alves  <palves@redhat.com>
11492
11493         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
11494
11495 2015-03-20  Pedro Alves  <palves@redhat.com>
11496
11497         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
11498
11499 2015-03-20  Pedro Alves  <palves@redhat.com>
11500
11501         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
11502
11503 2015-03-20  Pedro Alves  <palves@redhat.com>
11504
11505         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
11506         (nto_init_solib_absolute_prefix): Likewise.
11507
11508 2015-03-20  Pedro Alves  <palves@redhat.com>
11509
11510         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
11511         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
11512
11513 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
11514
11515         * config/djgpp/README: Remove gdb.hp.
11516
11517 2015-03-20  Yao Qi  <yao.qi@linaro.org>
11518
11519         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
11520         set_gdbarch_cannot_step_breakpoint.
11521
11522 2015-03-19  Pedro Alves  <palves@redhat.com>
11523
11524         * linux-nat.c (linux_resume_one_lwp): Rename to ...
11525         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
11526         instead call perror_with_name.
11527         (check_ptrace_stopped_lwp_gone): New function.
11528         (linux_resume_one_lwp): Reimplement as wrapper around
11529         linux_resume_one_lwp_throw that swallows errors if the LWP is
11530         gone.
11531         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
11532         swallows errors if the LWP is gone.  Use
11533         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
11534
11535 2015-03-19  Pedro Alves  <palves@redhat.com>
11536
11537         * linux-nat.c (status_callback): Return early if the LWP has no
11538         status pending.
11539
11540 2015-03-19  Pedro Alves  <palves@redhat.com>
11541
11542         * linux-nat.c (select_event_lwp_callback): Update comment to no
11543         longer mention SIGTRAP.
11544
11545 2015-03-18  Tristan Gingold  <gingold@adacore.com>
11546
11547         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
11548         redirection code to ...
11549         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
11550         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
11551
11552 2015-03-18  Gary Benson <gbenson@redhat.com>
11553
11554         (remote_protocol_features): Remove the "vFile:fstat" feature.
11555         (remote_hostio_fstat): Probe for "vFile:fstat" support.
11556
11557 2015-03-11  Yao Qi  <yao.qi@linaro.org>
11558
11559         PR tdep/18107
11560         * aarch64-linux-tdep.c: Include xml-syscall.h
11561         (aarch64_linux_get_syscall_number): New function.
11562         (aarch64_linux_init_abi): Call
11563         set_gdbarch_get_syscall_number.
11564         * syscalls/aarch64-linux.xml: New file.
11565
11566 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
11567
11568         * ser-base.h (ser_base_setstopbits): Change second argument name
11569         from "rate" to "num".
11570
11571 2015-03-17  Gary Benson <gbenson@redhat.com>
11572             Luke Allardyce <lukeallardyce@gmail.com>
11573
11574         PR gdb/18131
11575         * common/common-remote-fileio.h (sys/stat.h): New include.
11576         (stuct stat): Remove forward declaration.
11577
11578 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
11579
11580         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
11581         before writing core register notes.
11582
11583 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
11584             Pedro Alves  <palves@redhat.com>
11585
11586         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
11587         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
11588         (tgoto): Wrap with extern "C".
11589
11590 2015-03-16  Pedro Alves  <palves@redhat.com>
11591             Yuanhui Zhang  <asmwarrior@gmail.com>
11592
11593         * stub-termcap.c (tputs): Change prototype.
11594
11595 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
11596             Pedro Alves  <palves@redhat.com>
11597
11598         * windows-nat.c (struct thread_info_struct): Rename to ...
11599         (struct windows_thread_info_struct): ... this.
11600         (thread_info): Rename to ...
11601         (windows_thread_info): ... this.
11602         All users updated.
11603
11604 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
11605             Pedro Alves  <palves@redhat.com>
11606
11607         * NEWS: New Removed targets and native configurations.
11608
11609 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11610
11611         Remove HPUX.
11612         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
11613         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
11614         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
11615         ia64-hpux-tdep.h, solib-ia64-hpux.h.
11616         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
11617         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
11618         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
11619         hppa-hpux-tdep.c.
11620         * config/ia64/hpux.mh: Remove file.
11621         * config/pa/hpux.mh: Remove file.
11622         * configure: Rebuilt.
11623         * configure.ac (dlgetmodinfo, somread.o): Remove.
11624         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11625         (ia64-*-hpux*): Remove its float format exception.
11626         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11627         * hppa-hpux-nat.c: Remove file.
11628         * hppa-hpux-tdep.c: Remove file.
11629         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
11630         Move them here from hppa-tdep.h
11631         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
11632         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
11633         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
11634         Move them to hppa-tdep.c.
11635         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
11636         declarations.
11637         * ia64-hpux-nat.c: Remove file.
11638         * ia64-hpux-tdep.c: Remove file.
11639         * ia64-hpux-tdep.h: Remove file.
11640         * inf-ttrace.c: Remove file.
11641         * inf-ttrace.h: Remove file.
11642         * solib-ia64-hpux.c: Remove file.
11643         * solib-ia64-hpux.h: Remove file.
11644         * solib-pa64.c: Remove file.
11645         * solib-pa64.h: Remove file.
11646         * solib-som.c: Remove file.
11647         * solib-som.h: Remove file.
11648         * somread.c: Remove file.
11649
11650 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
11651
11652         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
11653         * config.in: Regenerate.
11654         * configure: Regenerate.
11655         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
11656         define.
11657         (fbsd_find_memory_regions): Use kinfo_getvmmap to
11658         enumerate memory regions if present.
11659
11660 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
11661
11662         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
11663         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
11664         expressions.
11665         (i386fbsd_sigtramp_p): Likewise.
11666
11667 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
11668
11669         * MAINTAINERS (Write After Approval): Add John Baldwin.
11670
11671 2015-03-12  Gary Benson <gbenson@redhat.com>
11672
11673         * solib.c (_initialize_solib): Make "set/show sysroot" use
11674         add_setshow_optional_filename_cmd so it can be restored to
11675         empty after being set.
11676
11677 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
11678
11679         * Makefile.in (SFILES): New source break-catch-syscall.c.
11680         (COMMON_OBS): New object break-catch-syscall.o.
11681         * break-catch-syscall.c: New file.
11682         * breakpoint.c: Remove inclusion of "xml-syscall.h".
11683         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
11684         (struct syscall_catchpoint): Likewise.
11685         (dtor_catch_syscall): Likewise.
11686         (catch_syscall_inferior_data): Likewise.
11687         (struct catch_syscall_inferior_data): Likewise.
11688         (get_catch_syscall_inferior_data): Likewise.
11689         (catch_syscall_inferior_data_cleanup): Likewise.
11690         (insert_catch_syscall): Likewise.
11691         (remove_catch_syscall): Likewise.
11692         (breakpoint_hit_catch_syscall): Likewise.
11693         (print_it_catch_syscall): Likewise.
11694         (print_one_catch_syscall): Likewise.
11695         (print_mention_catch_syscall): Likewise.
11696         (print_recreate_catch_syscall): Likewise.
11697         (catch_syscall_breakpoint_ops): Likewise.
11698         (syscall_catchpoint_p): Likewise.
11699         (create_syscall_event_catchpoint): Likewise.
11700         (catch_syscall_split_args): Likewise.
11701         (catch_syscall_command_1): Likewise.
11702         (is_syscall_catchpoint_enabled): Likewise.
11703         (catch_syscall_enabled): Likewise.
11704         (catching_syscall_number): Likewise.
11705         (catch_syscall_completer): Likewise.
11706         (clear_syscall_counts): Likewise.
11707         (initialize_breakpoint_ops): Move initialization of syscall
11708         catchpoints to break-catch-syscall.c.
11709         (_initialize_breakpoint): Move code related to syscall catchpoints
11710         to break-catch-syscall.c.
11711
11712 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
11713
11714         * breakpoint.c (breakpoint_find_if): New function.
11715         * breakpoint.h (breakpoint_find_if): New prototype.
11716
11717 2015-03-11  Gary Benson <gbenson@redhat.com>
11718
11719         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
11720         * remote-fileio.c (remote_fileio_to_host_uint): New function.
11721         (remote_fileio_to_host_ulong): Likewise.
11722         (remote_fileio_to_host_mode): Likewise.
11723         (remote_fileio_to_host_time): Likewise.
11724         (remote_fileio_to_host_stat): Likewise.
11725         * remote.c (PACKET_vFile_fstat): New enum value.
11726         (remote_protocol_features): Register the "vFile:fstat" feature.
11727         (remote_hostio_fstat): New function.
11728         (remote_bfd_iovec_stat): Use the above.
11729         (_initialize_remote): Register new "set/show remote
11730         hostio-fstat-packet" command.
11731         * symfile.c (separate_debug_file_exists): Update comment.
11732         * NEWS: Announce new vFile:fstat packet.
11733
11734 2015-03-11  Gary Benson <gbenson@redhat.com>
11735
11736         * common/common-remote-fileio.h: New file.
11737         * common/common-remote-fileio.c: Likewise.
11738         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11739         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
11740         (COMMON_OBS): Add common-remote-fileio.o.
11741         (common-remote-fileio.o): New rule.
11742         * remote-fileio.h (common-remote-fileio.h): New include.
11743         * remote-fileio.c (gdb/fileio.h): Do not include.
11744         (remote_fileio_to_be): Moved to common-remote-fileio.h.
11745         (remote_fileio_to_fio_uint): Likewise.
11746         (remote_fileio_to_fio_time): Likewise.
11747         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
11748         (remote_fileio_to_fio_mode): Likewise.
11749         (remote_fileio_to_fio_ulong): Likewise.
11750         (remote_fileio_to_fio_stat): Likewise.
11751
11752 2015-03-11  Andy Wingo  <wingo@igalia.com>
11753
11754         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
11755         we were checking the cached type, not the cached dynamic type.
11756
11757 2015-03-11  Andy Wingo  <wingo@igalia.com>
11758
11759         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
11760         other strings, as these are on the GC'd heap, and will be
11761         collected along with the smob.
11762
11763 2015-03-11  Andy Wingo  <wingo@igalia.com>
11764
11765         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
11766         (objfile_functions): Bind gdbscm_objfile_progspace to
11767         objfile-progspace.
11768         * guile/lib/gdb.scm: Add objfile-progspace to exports.
11769
11770 2015-03-11  Andy Wingo  <wingo@igalia.com>
11771
11772         * guile/guile.c (_initialize_guile): Disable automatic
11773         finalization, if Guile offers us that possibility.
11774         * guile/guile.c (call_initialize_gdb_module):
11775         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
11776         finalizers in appropriate places.
11777         * configure.ac (AC_TRY_LIBGUILE): Add a check for
11778         scm_set_automatic_finalization_enabled.
11779         * configure: Regenerated.
11780
11781 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11782
11783         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
11784         SAL, if possible.
11785
11786 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11787
11788         * s390-linux-nat.c (struct arch_lwp_info): New.
11789         (s390_fix_watch_points): Rename to...
11790         (s390_prepare_to_resume): ...this.  Skip the PER info update
11791         unless the watch points have changed.
11792         (s390_refresh_per_info, s390_new_thread): New functions.
11793         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
11794         s390_fix_watch_points.
11795         (s390_remove_watchpoint): Likewise.
11796         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
11797         Register s390_prepare_to_resume.
11798
11799 2015-03-09  Pedro Alves  <palves@redhat.com>
11800
11801         Revert:
11802         2015-03-07  Pedro Alves  <palves@redhat.com>
11803         * common/gdb_socket.h: New file.
11804         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
11805         sys/socket.h.
11806         (net_open): Use union gdb_sockaddr_u.
11807
11808 2015-03-07  Pedro Alves  <palves@redhat.com>
11809
11810         * configure.ac (build_warnings): Move -Wmissing-prototypes
11811         -Wdeclaration-after-statement -Wmissing-parameter-type
11812         -Wold-style-declaration -Wold-style-definition to the C-specific
11813         set.
11814         * configure: Regenerate.
11815
11816 2015-03-07  Pedro Alves  <palves@redhat.com>
11817
11818         * common/gdb_socket.h: New file.
11819         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
11820         sys/socket.h.
11821         (net_open): Use union gdb_sockaddr_u.
11822
11823 2015-03-07  Pedro Alves  <palves@redhat.com>
11824
11825         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
11826         (exceptions_state_mc_action_iter)
11827         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11828         Don't define.
11829         [__cplusplus] (try_scope_depth): New global.
11830         [__cplusplus] (exception_try_scope_entry)
11831         (exception_try_scope_exit, gdb_exception_sliced_copy)
11832         (exception_rethrow): New functions.
11833         (throw_exception): In C++ mode, throw
11834         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
11835         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
11836         (throw_it): In C++ mode, use try_scope_depth.
11837         * common/common-exceptions.h [!__cplusplus]
11838         (exceptions_state_mc_action_iter)
11839         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11840         Don't declare.
11841         [__cplusplus] (exception_try_scope_entry)
11842         (exception_try_scope_exit, exception_rethrow): Declare.
11843         [__cplusplus] (struct exception_try_scope): New struct.
11844         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
11845         C++ exceptions.
11846         (struct gdb_exception_RETURN_MASK_ALL)
11847         (struct gdb_exception_RETURN_MASK_ERROR)
11848         (struct gdb_exception_RETURN_MASK_QUIT): New types.
11849
11850 2015-03-07  Pedro Alves  <palves@redhat.com>
11851
11852         * main.c (handle_command_errors): Remove volatile qualifier from
11853         parameter.
11854
11855 2015-03-07  Pedro Alves  <palves@redhat.com>
11856
11857         * breakpoint.c (save_breakpoints): Adjust to avoid code between
11858         TRY and CATCH.
11859         * gdbtypes.c (safe_parse_type): Remove empty line.
11860         (types_deeply_equal):
11861         * guile/scm-frame.c (gdbscm_frame_name):
11862         * linux-thread-db.c (find_new_threads_once):
11863         * python/py-breakpoint.c (bppy_get_commands):
11864         * record-btrace.c (record_btrace_insert_breakpoint)
11865         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
11866         (record_btrace_start_replaying): Adjust to avoid code between TRY
11867         and CATCH.
11868
11869 2015-03-07  Pedro Alves  <palves@redhat.com>
11870
11871         * common/common-exceptions.c (struct catcher) <exception>: No
11872         longer a pointer to volatile exception.  Now an exception value.
11873         <mask>: Delete field.
11874         (exceptions_state_mc_init): Remove all parameters.  Adjust.
11875         (exceptions_state_mc): No longer pop the catcher here.
11876         (exceptions_state_mc_catch): New function.
11877         (throw_exception): Adjust.
11878         * common/common-exceptions.h (exceptions_state_mc_init): Remove
11879         all parameters.
11880         (exceptions_state_mc_catch): Declare.
11881         (TRY_CATCH): Rename to ...
11882         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
11883         (CATCH, END_CATCH): New.
11884         All callers adjusted.
11885
11886 2015-03-07  Tom Tromey  <tromey@redhat.com>
11887
11888         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
11889
11890 2015-03-07  Pedro Alves  <palves@redhat.com>
11891
11892         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11893         (amd64_epilogue_frame_cache): Normal exception handling code.
11894         * break-catch-throw.c (check_status_exception_catchpoint)
11895         (re_set_exception_catchpoint): Ditto.
11896         * cli/cli-interp.c (safe_execute_command):
11897         * cli/cli-script.c (script_from_file): Ditto.
11898         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
11899         Ditto.
11900         * compile/compile-object-run.c (compile_object_run): Ditto.
11901         * cp-abi.c (baseclass_offset): Ditto.
11902         * cp-valprint.c (cp_print_value): Ditto.
11903         * exceptions.c (catch_exceptions_with_msg):
11904         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
11905         * frame.c (get_frame_address_in_block_if_available): Ditto.
11906         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11907         (i386_sigtramp_frame_cache): Ditto.
11908         * infcmd.c (post_create_inferior): Ditto.
11909         * linespec.c (parse_linespec, find_linespec_symbols):
11910         * p-valprint.c (pascal_object_print_value): Ditto.
11911         * parse.c (parse_expression_for_completion): Ditto.
11912         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
11913         * remote.c (remote_get_noisy_reply): Ditto.
11914         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
11915         * solib-svr4.c (solib_svr4_r_map): Ditto.
11916
11917 2015-03-06  Gary Benson  <gbenson@redhat.com>
11918
11919         * common/common-utils.h (startswith): New inline function.
11920         All places where this logic was used updated to use the above.
11921
11922 2015-03-05  Pedro Alves  <palves@redhat.com>
11923
11924         PR gdb/18002
11925         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
11926         after reading the breakpoint's shadow memory.
11927
11928 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
11929
11930         * hppabsd-nat.c: Remove file.
11931         * hppaobsd-nat.c: New file.
11932         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
11933         hppaobsd-nat.c.
11934         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
11935         hppaobsd-nat.o.
11936
11937 2015-03-04  Pedro Alves  <palves@redhat.com>
11938
11939         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
11940         (target_decr_pc_after_break): Delete declaration.
11941         * target.c (default_target_decr_pc_after_break)
11942         (target_decr_pc_after_break): Delete.
11943         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
11944         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
11945         * linux-thread-db.c (check_event): Likewise.
11946         * infrun.c (adjust_pc_after_break): Likewise.
11947         * darwin-nat.c (cancel_breakpoint): Likewise.
11948         * aix-thread.c (aix_thread_wait): Likewise.
11949         * target-delegates.c: Regenerate.
11950
11951 2015-03-04  Pedro Alves  <palves@redhat.com>
11952
11953         * linux-nat.c (save_sigtrap): Check for breakpoints before
11954         checking watchpoints.
11955         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11956         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11957         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
11958         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
11959         (linux_nat_stopped_by_sw_breakpoint)
11960         (linux_nat_supports_stopped_by_sw_breakpoint)
11961         (linux_nat_stopped_by_hw_breakpoint)
11962         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
11963         (linux_nat_wait_1): Don't re-increment the PC if relying on
11964         SIGTRAP's siginfo->si_code.
11965         (linux_nat_add_target): Install new target methods.
11966         * linux-thread-db.c (check_event): Don't account for breakpoint PC
11967         offset if the target already adjusted the PC.
11968         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
11969         (GDB_ARCH_TRAP_BRKPT): New.
11970         (TRAP_HWBKPT): Define if not already defined.
11971
11972 2015-03-04  Pedro Alves  <palves@redhat.com>
11973
11974         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
11975         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
11976         Delete field.
11977         <stop_reason>: New field.
11978         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
11979         (packet_set_cmd_state): New function.
11980         (remote_protocol_features): Register the "swbreak" and "hwbreak"
11981         features.
11982         (remote_query_supported): If not disabled with the corresponding
11983         "set remote foo-packet" command, report support for the swbreak
11984         and hwbreak features.
11985         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
11986         field.
11987         <stop_reason>: New field.
11988         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
11989         (remote_wait_as): Adjust.
11990         (remote_stopped_by_sw_breakpoint)
11991         (remote_supports_stopped_by_sw_breakpoint)
11992         (remote_stopped_by_hw_breakpoint)
11993         (remote_supports_stopped_by_hw_breakpoint): New functions.
11994         (remote_stopped_by_watchpoint): New function.
11995         (init_remote_ops): Install them.
11996         (_initialize_remote): Register new "set/show remote
11997         swbreak-feature-packet" and "set/show remote
11998         swbreak-feature-packet" commands.
11999
12000 2015-03-04  Pedro Alves  <palves@redhat.com>
12001
12002         * btrace.h: Include target/waitstatus.h.
12003         (struct btrace_thread_info) <stop_reason>: New field.
12004         * record-btrace.c (record_btrace_step_thread): Use
12005         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
12006         (record_btrace_decr_pc_after_break): Delete.
12007         (record_btrace_stopped_by_sw_breakpoint)
12008         (record_btrace_supports_stopped_by_sw_breakpoint)
12009         (record_btrace_stopped_by_hw_breakpoint)
12010         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
12011         (init_record_btrace_ops): Install them.
12012         * record-full.c (record_full_hw_watchpoint): Delete and replace
12013         with ...
12014         (record_full_stop_reason): ... this throughout.
12015         (record_full_exec_insn): Adjust.
12016         (record_full_wait_1): Adjust.  No longer re-increment the PC.
12017         (record_full_wait_1): Adjust.  Use
12018         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
12019         (record_full_stopped_by_watchpoint): Adjust.
12020         (record_full_stopped_by_sw_breakpoint)
12021         (record_full_supports_stopped_by_sw_breakpoint)
12022         (record_full_supports_stopped_by_sw_breakpoint)
12023         (record_full_stopped_by_hw_breakpoint)
12024         (record_full_supports_stopped_by_hw_breakpoint): New functions.
12025         (init_record_full_ops, init_record_full_core_ops): Install them.
12026         * record.c (record_check_stopped_by_breakpoint): New function.
12027         * record.h: Include target/waitstatus.h.
12028         (record_check_stopped_by_breakpoint): New declaration.
12029
12030 2015-03-04  Pedro Alves  <palves@redhat.com>
12031
12032         enum lwp_stop_reason -> enum target_stop_reason
12033         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
12034         (linux_nat_stopped_by_watchpoint, status_callback)
12035         (linux_nat_wait_1): Adjust.
12036         * linux-nat.h (enum lwp_stop_reason): Delete.
12037         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12038         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12039         * target/waitstatus.h (enum target_stop_reason): New.
12040
12041 2015-03-04  Pedro Alves  <palves@redhat.com>
12042
12043         * breakpoint.c (need_moribund_for_location_type): New function.
12044         (bpstat_stop_status): Don't skipping checking moribund locations
12045         of breakpoint types which the target tell caused a stop.
12046         (program_breakpoint_here_p): New function, factored out from ...
12047         (bp_loc_is_permanent): ... this.
12048         (update_global_location_list): Don't create a moribund location if
12049         the target supports reporting stops of the type of the removed
12050         breakpoint.
12051         * breakpoint.h (program_breakpoint_here_p): New declaration.
12052         * infrun.c (adjust_pc_after_break): Return early if the target has
12053         already adjusted the PC.  Add comments.
12054         (handle_signal_stop): If nothing explains a signal, and the target
12055         tells us the stop was caused by a software breakpoint, check if
12056         there's a breakpoint instruction in the memory.  If so, adjust the
12057         PC before presenting the stop to the user.  Otherwise, ignore the
12058         trap.  If nothing explains a signal, and the target tells us the
12059         stop was caused by a hardware breakpoint, ignore the trap.
12060         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
12061         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
12062         to_supports_stopped_by_hw_breakpoint>: New fields.
12063         (target_stopped_by_sw_breakpoint)
12064         (target_supports_stopped_by_sw_breakpoint)
12065         (target_stopped_by_hw_breakpoint)
12066         (target_supports_stopped_by_hw_breakpoint): Define.
12067         * target-delegates.c: Regenerate.
12068
12069 2015-03-04  Pedro Alves  <palves@redhat.com>
12070
12071         * infrun.c (follow_fork_inferior): Use the whole of the
12072         inferior_ptid and pending_follow.related_pid ptids instead of
12073         building ptids from the process components.  Adjust verbose output
12074         to use target_pid_to_str.
12075         * linux-nat.c (linux_child_follow_fork): Use the whole of the
12076         inferior_ptid and pending_follow.related_pid ptids instead of
12077         building ptids from the process components.
12078
12079 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
12080
12081         * inf-ptrace.c [PT_GET_PROCESS_STATE]
12082         (inf_ptrace_insert_fork_catchpoint): New function.
12083         (inf_ptrace_remove_fork_catchpoint): New function.
12084         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
12085
12086 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12087
12088         * s390-linux-tdep.c (s390_register_name): Return empty string
12089         instead of NULL for registers that shouldn't be visible.
12090
12091 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12092
12093         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
12094         XML file for 64-bit targets.
12095
12096 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
12097
12098         * target.h (find_default_create_inferior): Remove declaration.
12099         (find_default_attach): Likewise.
12100
12101 2015-03-03  Pedro Alves  <palves@redhat.com>
12102
12103         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
12104         Use ptid_get_pid to get the overall process id when resuming all
12105         threads.
12106
12107 2015-03-03  Pedro Alves  <palves@redhat.com>
12108
12109         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
12110         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
12111         * inf-ptrace.c (get_ptrace_pid): New function.
12112         (inf_ptrace_resume): Use it.
12113         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
12114         to the lower layer.
12115
12116 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
12117
12118         * nat/linux-btrace.c: Include sys/utsname.h.
12119         (linux_determine_kernel_ptr_bits): New.
12120         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
12121         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
12122         ptr_bits.
12123
12124 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
12125
12126         * btrace.c (ftrace_update_function): Treat return as tailcall for
12127         "_dl_runtime_resolve".
12128
12129 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
12130
12131         * btrace.h (btrace_function) <lbegin, lend>: Remove.
12132         * btrace.c (ftrace_debug): Do not print the line range.
12133         (ftrace_skip_file, ftrace_update_lines): Remove.
12134         (ftrace_new_function): Remove lbegin and lend initialization.
12135         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
12136         * record-btrace.c (btrace_compute_src_line_range): New.
12137         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
12138
12139 2015-03-02  Pedro Alves  <palves@redhat.com>
12140
12141         * infrun.c (follow_exec): Delete all threads of the process except
12142         the event thread.  Extended comments.
12143
12144 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
12145
12146         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
12147
12148 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
12149
12150         * utils.h: Remove <stdbool.h> #include.
12151         (producer_is_gcc): Change return type to "int".
12152         * utils.c (producer_is_gcc): Change return type to int.
12153         Return 1 instead of true, and 0 instead of false.
12154         Adjust function documentation accordingly.
12155
12156 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12157
12158         * s390-linux-nat.c (have_regset_vxrs): New static variable.
12159         (s390_linux_fetch_inferior_registers): Handle vector registers, if
12160         present.
12161         (s390_linux_store_inferior_registers): Likewise.
12162         (s390_get_hwcap): Remove function.  Embed its logic...
12163         (s390_read_description): ...here.  Yield a target description with
12164         vector registers if applicable.
12165         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
12166         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
12167         "features/s390x-tevx-linux64.c".
12168         (struct gdbarch_tdep) <v0_full_regnum>: New field.
12169         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
12170         for "GNU/Linux-specific registers".
12171         (s390_dwarf_reg_r0l): New enum value.
12172         (s390_dwarf_reg_to_regnum): Support vector registers.
12173         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
12174         of GPR lower halves.
12175         (regnum_is_vxr_full): New function.
12176         (s390_register_name): New function.
12177         (s390_pseudo_register_name): Handle v0-v15, which are composed of
12178         f0-f15 and v0l-v15l.
12179         (s390_pseudo_register_type): Likewise.
12180         (s390_pseudo_register_read): Likewise.
12181         (s390_pseudo_register_write): Likewise.
12182         (s390_value_from_register): Account for the fact that values are
12183         placed left-justified in vector registers.
12184         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
12185         the vector reggroup and omit them from the general reggroup.
12186         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
12187         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
12188         (s390_iterate_over_regset_sections): Add iterations for the two
12189         new vector regsets.
12190         (s390_core_read_description): Yield a target description with
12191         vector registers if applicable.
12192         (s390_gdbarch_init): Handle target descriptions with vector
12193         registers.  Add "register_name" gdbarch method.
12194         (_initialize_s390_tdep): Call new tdesc initialization functions.
12195         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
12196         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
12197         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
12198         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
12199         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
12200         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
12201         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
12202         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
12203         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
12204         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
12205         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
12206         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
12207         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
12208         (S390_NUM_REGS): Adjust value.
12209         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
12210         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12211         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
12212         * NEWS: Announce S/390 vector register support.
12213
12214 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12215
12216         * features/s390-tevx-linux64.xml: New file.
12217         * features/s390-vx-linux64.xml: New file.
12218         * features/s390-vx.xml: New file.
12219         * features/s390x-tevx-linux64.xml: New file.
12220         * features/s390x-vx-linux64.xml: New file.
12221         * features/Makefile (WHICH): Add s390-vx-linux64,
12222         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
12223         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
12224         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
12225         macros.
12226         * features/s390-tevx-linux64.c: New generated file.
12227         * features/s390-vx-linux64.c: Likewise.
12228         * features/s390x-tevx-linux64.c: Likewise.
12229         * features/s390x-vx-linux64.c: Likewise.
12230         * regformats/s390-tevx-linux64.dat: Likewise.
12231         * regformats/s390-vx-linux64.dat: Likewise.
12232         * regformats/s390x-tevx-linux64.dat: Likewise.
12233         * regformats/s390x-vx-linux64.dat: Likewise.
12234
12235 2015-02-28  Doug Evans  <xdje42@gmail.com>
12236
12237         * symtab.h (struct symtab) <next>: Fix comment.
12238
12239 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
12240
12241         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
12242         python_GdbMethods.
12243
12244 2015-02-27  Pedro Alves  <palves@redhat.com>
12245
12246         * dtrace-probe.c (dtrace_probe_ops): Make extern.
12247
12248 2015-02-27  Pedro Alves  <palves@redhat.com>
12249
12250         * common/common-exceptions.h (exception_none): Declare.
12251         * common/common-exceptions.c (exception_none): Moved from
12252         exceptions.c.
12253         (exceptions_state_mc_init): Use exception_none.
12254         * exceptions.c (exception_none): Move to
12255         common/common-exceptions.c.
12256         * exceptions.h (exception_none): Move to
12257         common/common-exceptions.h.
12258
12259 2015-02-27  Pedro Alves  <palves@redhat.com>
12260
12261         * main.c (catch_command_errors, catch_command_errors_const):
12262         Remove 'mask' argument.  Adjust.
12263         (captured_main): Adjust callers.
12264
12265 2015-02-27  Pedro Alves  <palves@redhat.com>
12266
12267         * python/python-internal.h: Include "extension-priv.h".
12268
12269 2015-02-27  Pedro Alves  <palves@redhat.com>
12270
12271         * breakpoint.h (enum print_stop_action): Move further up in the
12272         file.
12273
12274 2015-02-27  Pedro Alves  <palves@redhat.com>
12275
12276         * gdbarch.sh: Include regcache.h.
12277         * gdbarch.h: Regenerate.
12278
12279 2015-02-27  Pedro Alves  <palves@redhat.com>
12280
12281         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
12282         Remove duplicate const.
12283         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
12284         duplicate const.
12285
12286 2015-02-27  Pedro Alves  <palves@redhat.com>
12287
12288         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
12289         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
12290         * features/feature_to_c.sh: Tag the generated xml_builtin array
12291         with extern const in C++ mode.
12292
12293 2015-02-27  Tom Tromey  <tromey@redhat.com>
12294
12295         * minidebug.c (struct lzma_stream): Rename to ...
12296         (struct gdb_lzma_stream): ... this.
12297         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
12298
12299 2015-02-27  Pedro Alves  <palves@redhat.com>
12300
12301         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
12302         function.
12303         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
12304         (mi_cmd_stack_list_variables): Use it.
12305
12306 2015-02-27  Pedro Alves  <palves@redhat.com>
12307
12308         * x86-linux-nat.c (u_debugreg_offset): New function.
12309         (x86_linux_dr_get, x86_linux_dr_set): Use it.
12310
12311 2015-02-27  Pedro Alves  <palves@redhat.com>
12312
12313         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
12314         declaration.
12315         Include break-common.h.
12316
12317 2015-02-27  Tom Tromey  <tromey@redhat.com>
12318             Pedro Alves <palves@redhat.com>
12319
12320         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
12321         local used to iterate over enums.
12322         * completer.c (signal_completer): Likewise.
12323         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
12324         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
12325         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
12326         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
12327         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
12328         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
12329         * tui-wingeneral.c (tui_refresh_all):  Likewise.
12330
12331 2015-02-27  Pedro Alves  <palves@redhat.com>
12332
12333         * target.h: Include "infrun.h".
12334
12335 2015-02-27  Pedro Alves  <palves@redhat.com>
12336
12337         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12338
12339 2015-02-27  Pedro Alves  <palves@redhat.com>
12340
12341         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
12342         (IPA_SYM): Use it.
12343         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
12344
12345 2015-02-27  Pedro Alves  <palves@redhat.com>
12346
12347         * cli-out.c (_rl_erase_entire_line): Move declaration out of
12348         cli_mld_erase_entire_line, and make it extern "C".
12349         * common/common-defs.h (EXTERN_C): New.
12350         * completer.c (_rl_completion_prefix_display_length)
12351         (_rl_print_completions_horizontally, QSFUNC): Move declarations
12352         out of gdb_display_match_list_1.
12353         (_rl_qsort_string_compare): Move declaration out of
12354         gdb_display_match_list_1, and make it extern "C".
12355         * defs.h (re_comp): Use EXTERN_C.
12356         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
12357         and make it extern "C".
12358         (monstartup): Move declaration out of maintenance_set_profile_cmd,
12359         and make it extern "C".
12360         (main): Move declaration out of maintenance_set_profile_cmd.
12361         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
12362         EXTERN_C.
12363
12364 2015-02-27  Pedro Alves  <palves@redhat.com>
12365
12366         * python/python.c (GdbMethods): Rename to ...
12367         (python_GdbMethods): ... this and make extern.
12368         (GdbModuleDef): Rename to ...
12369         (python_GdbModuleDef): ... this and make extern.
12370
12371 2015-02-27  Pedro Alves  <palves@redhat.com>
12372
12373         * record-btrace.c (set_record_btrace_cmdlist)
12374         (show_record_btrace_cmdlist): Remove redefinitions.
12375
12376 2015-02-27  Tom Tromey  <tromey@redhat.com>
12377             Pedro Alves  <palves@redhat.com>
12378
12379         * dwarf2-frame.c (enum cfa_how_kind, struct
12380         dwarf2_frame_state_reg_info): Move out of struct
12381         dwarf2_frame_state.
12382         * dwarf2read.c (struct tu_stats): Move out of struct
12383         dwarf2_per_objfile.
12384         (struct file_entry): Move out of struct line_header.
12385         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
12386         typedef_field_list): Move out of struct field_info.
12387         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
12388         Move out of struct dynamic_prop.
12389         (union type_owner, union field_location, struct field, struct
12390         range_bounds, union type_specific): Move out of struct main_type.
12391         (struct fn_fieldlist, struct fn_field, struct typedef_field)
12392         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
12393         (struct call_site_target, union call_site_parameter_u, struct
12394         call_site_parameter): Move out of struct call_site.
12395         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
12396         m32c_prologue.
12397         (enum srcdest_kind): Move out of struct srcdest.
12398         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
12399         * prologue-value.h (enum prologue_value_kind): Move out of struct
12400         prologue_value.
12401         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
12402         gdbarch_tdep.
12403         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
12404         out of struct field_info.
12405         * symfile.h (struct other_sections): Move out of struct
12406         section_addr_info.
12407         * symtab.c (struct symbol_cache_slot): Move out struct
12408         block_symbol_cache.
12409         * target-descriptions.c (enum tdesc_type_kind): Move out of
12410         typedef struct tdesc_type.
12411         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
12412         struct tui_line_or_address.
12413         * value.c (enum internalvar_kind, union internalvar_data): Move
12414         out of struct internalvar.
12415         * xtensa-tdep.h (struct ctype_cache): Move out of struct
12416         gdbarch_tdep.
12417
12418 2015-02-27  Tom Tromey  <tromey@redhat.com>
12419             Pedro Alves  <palves@redhat.com>
12420
12421         Rename symbols whose names are reserved C++ keywords throughout.
12422
12423 2015-02-27  Pedro Alves  <palves@redhat.com>
12424
12425         * Makefile.in (COMPILER): New, get it from autoconf.
12426         (COMPILE.pre, CC_LD): Use COMPILER.
12427         (CXX): Get from autoconf instead.
12428         (CXX_FOR_TARGET): Default to g++ instead of gcc.
12429         * acinclude.m4: Include build-with-cxx.m4.
12430         * build-with-cxx.m4: New file.
12431         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12432         Disable -Werror by default if building in C++ mode.
12433         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12434         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
12435         Run supported-warning-flags tests with the C++ compiler.
12436         Save/restore CXXFLAGS too.
12437         * configure: Regenerate.
12438
12439 2015-02-27  Pedro Alves  <palves@redhat.com>
12440
12441         * libiberty.m4: New file.
12442         * acinclude.m4: Include libiberty.m4.
12443         * configure.ac: Call libiberty_INIT.
12444         * config.in, configure: Regenerate.
12445
12446 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12447
12448         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
12449         31-bit targets, but 64-bit targets as well.
12450         (s390_gnu_triplet_regexp): New function.
12451         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
12452         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
12453         method.
12454
12455 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
12456
12457         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
12458         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
12459         from CONTEXT_DEBUGGER.
12460
12461 2015-02-26  Doug Evans  <dje@google.com>
12462
12463         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
12464         CHECK_TYPEDEF.
12465         (set_type_vptr_fieldno): Ditto.
12466         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
12467         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
12468
12469 2015-02-26  Pedro Alves  <palves@redhat.com>
12470
12471         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
12472         * complaints.c (vcomplaint): Pass argument FMT directly to
12473         printf-like functions instead of complaint->fmt.
12474         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
12475         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
12476         * compile/compile-loc2c.c (pushf, unary, binary): Add
12477         ATTRIBUTE_PRINTF.
12478         (do_compile_dwarf_expr_to_c): Pass string literal as format string
12479         to pushf.
12480         (BINARY): Pass string literal as format string to 'binary'.
12481         * compile/compile-object-load.c (link_callbacks_einfo): Add
12482         ATTRIBUTE_PRINTF.
12483         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
12484
12485 2015-02-26  Pedro Alves  <palves@redhat.com>
12486
12487         * windows-termcap.c: Rename to ...
12488         * stub-termcap.c: ... this.  Adjust header line.
12489         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
12490         windows-termcap.c.
12491         * configure: Regenerate.
12492         * configure.ac: Refer to stub-termcap.o instead of
12493         windows-termcap.o.
12494         * gdb_curses.h: Mention stub-termcap.c instead of
12495         windows-termcap.c.
12496
12497 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
12498
12499         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
12500         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
12501
12502 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
12503
12504         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
12505
12506 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
12507
12508         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
12509         bfd_canonicalize_symtab.
12510
12511 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
12512
12513         * amd64fbsd-nat.c: Include sys/user.h.
12514         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12515         instead of KERN_PS_STRINGS to locate the signal trampoline.
12516         * i386fbsd-nat.c: Include sys/user.h.
12517         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12518         instead of KERN_PS_STRINGS to locate the signal trampoline.
12519         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
12520         (amd64fbsd_sigtramp_p): New.
12521         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
12522         longer set default values.
12523         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
12524         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
12525         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
12526         (i386fbsd_freebsd4_sigtramp_start)
12527         (i386fbsd_freebsd4_sigtramp_middle)
12528         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
12529         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
12530         (i386fbsd_sigtramp_p): New.
12531         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
12532         longer set default values.
12533         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
12534
12535 2015-02-25  John Baldwin  <jhb@freebsd.org>
12536
12537         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
12538         get_frame_register instead of frame_unwind_register_unsigned.
12539
12540 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
12541
12542         PR build/18033
12543         * compile/compile-c-support.c (c_compute_program): Change // comment.
12544         * compile/compile-object-load.c (setup_sections): Change // comment.
12545
12546 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
12547
12548         PR build/18033:
12549         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
12550
12551 2015-02-23  Pedro Alves  <palves@redhat.com>
12552
12553         * remote.c (skip_to_semicolon): New function.
12554         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
12555         special case the stop reasons that look like hex numbers
12556         upfront.  Instead handle real register numbers after matching
12557         all the known stop reasons.
12558
12559 2015-02-21  Doug Evans  <dje@google.com>
12560
12561         PR c++/17976, symtab/17821
12562         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
12563         is_in_anonymous.  All callers updated.
12564         (find_symbol_in_baseclass): Ditto.
12565         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
12566         for symbols in an anonymous namespace.
12567         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
12568         DW_AT_name directly.
12569         (dwarf2_name): Convert missing namespace name to
12570         CP_ANONYMOUS_NAMESPACE_STR.
12571
12572 2015-02-20  Pedro Alves  <palves@redhat.com>
12573
12574         * linux-nat.c (linux_handle_extended_wait): Call
12575         thread_db_notice_clone whenever a new clone LWP is detected.
12576         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
12577         functions.
12578         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
12579         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
12580         (linux_unstop_all_lwps): Declare.
12581         * linux-thread-db.c (struct thread_get_info_inout): Delete.
12582         (thread_get_info_callback): Delete.
12583         (thread_from_lwp): Use td_thr_get_info and record_thread.
12584         (thread_db_attach_lwp): Delete.
12585         (thread_db_notice_clone): New function.
12586         (try_thread_db_load_1): If /proc is mounted and shows the
12587         process'es task list, walk over all LWPs and call thread_from_lwp
12588         instead of relying on td_ta_thr_iter.
12589         (attach_thread): Don't call check_thread_signals here.  Split the
12590         tail part of the function (which adds the thread to the core GDB
12591         thread list) to ...
12592         (record_thread): ... this function.  Call check_thread_signals
12593         here.
12594         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
12595         call thread_from_lwp.
12596         (thread_db_update_thread_list): Rename to ...
12597         (thread_db_update_thread_list_org): ... this.
12598         (thread_db_update_thread_list): New function.
12599         (thread_db_find_thread_from_tid): Delete.
12600         (thread_db_get_ada_task_ptid): Simplify.
12601         * nat/linux-procfs.c: Include <sys/stat.h>.
12602         (linux_proc_task_list_dir_exists): New function.
12603         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
12604
12605 2015-02-20  Pedro Alves  <palves@redhat.com>
12606
12607         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
12608         main LWP.  Handle the case of waitpid returning 0 if we're already
12609         attached to the LWP.  Don't set the LWP's last_resume_kind to
12610         resume_stop if we already knew about the LWP.
12611         (linux_nat_filter_event): Add debug logs.
12612
12613 2015-02-20  Pedro Alves  <palves@redhat.com>
12614
12615         * target.h (forward_target_decr_pc_after_break): Delete
12616         declaration.
12617
12618 2015-02-20  Pedro Alves  <palves@redhat.com>
12619
12620         PR threads/18006
12621         * linux-thread-db.c (thread_get_info_callback): Return early if
12622         the thread's lwp id is -1.
12623
12624 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
12625
12626         GDB 7.9 released.
12627
12628 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
12629
12630         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
12631         (dtrace_get_probes) Change type of variable 'dof'.
12632
12633 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
12634
12635         PR breakpoints/16812
12636         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
12637         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
12638         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
12639
12640 2015-02-19  David Taylor  <dtaylor@emc.com>
12641
12642         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
12643
12644 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
12645
12646         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
12647         function.
12648         (tui_putc): Don't call tui_handle_resize_during_io.
12649         (tui_getc): Likewise.
12650         (tui_mld_getc): Likewise.
12651         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
12652         (tui_sigwinch_token): New static variable.
12653         (tui_initialize_win): Adjust documentation.  Set
12654         tui_sigwinch_token.
12655         (tui_async_resize_screen): New asynchronous callback.
12656         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
12657         invoke tui_async_resize_screen.
12658
12659 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
12660
12661         * configure: Regenerated.
12662         * configure.ac: Use GDB_AC_TRANSFORM.
12663         * Makefile.in (aclocal_m4_deps): Added transform.m4.
12664         * acinclude.m4: sinclude transform.m4.
12665         * transform.m4: New file.
12666         (GDB_AC_TRANSFORM): New macro.
12667
12668 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12669
12670         * NEWS: Announce the support for DTrace SDT probes.
12671
12672 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12673
12674         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
12675         (amd64_dtrace_parse_probe_argument): New function.
12676         (amd64_dtrace_probe_is_enabled): Likewise.
12677         (amd64_dtrace_enable_probe): Likewise.
12678         (amd64_dtrace_disable_probe): Likewise.
12679         (amd64_linux_init_abi): Register the
12680         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
12681         `gdbarch_dtrace_disable_probe' and
12682         `gdbarch_dtrace_probe_is_enabled' hooks.
12683         (amd64_dtrace_disabled_probe_sequence_1): New constant.
12684         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
12685         (amd64_dtrace_enable_probe_sequence): Likewise.
12686         (amd64_dtrace_disable_probe_sequence): Likewise.
12687
12688 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12689
12690         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
12691         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
12692         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
12693         handle ELF files.
12694         * Makefile.in (SFILES): dtrace-probe.c added.
12695         * configure: Regenerate.
12696         * dtrace-probe.c: New file.
12697         (SHT_SUNW_dof): New constant.
12698         (dtrace_probe_type): New enum.
12699         (dtrace_probe_arg): New struct.
12700         (dtrace_probe_arg_s): New typedef.
12701         (struct dtrace_probe_enabler): New struct.
12702         (dtrace_probe_enabler_s): New typedef.
12703         (dtrace_probe): New struct.
12704         (dtrace_probe_is_linespec): New function.
12705         (dtrace_dof_sect_type): New enum.
12706         (dtrace_dof_dofh_ident): Likewise.
12707         (dtrace_dof_encoding): Likewise.
12708         (DTRACE_DOF_ENCODE_LSB): Likewise.
12709         (DTRACE_DOF_ENCODE_MSB): Likewise.
12710         (dtrace_dof_hdr): New struct.
12711         (dtrace_dof_sect): Likewise.
12712         (dtrace_dof_provider): Likewise.
12713         (dtrace_dof_probe): Likewise.
12714         (DOF_UINT): New macro.
12715         (DTRACE_DOF_PTR): Likewise.
12716         (DTRACE_DOF_SECT): Likewise.
12717         (dtrace_process_dof_probe): New function.
12718         (dtrace_process_dof): Likewise.
12719         (dtrace_build_arg_exprs): Likewise.
12720         (dtrace_get_arg): Likewise.
12721         (dtrace_get_probes): Likewise.
12722         (dtrace_get_probe_argument_count): Likewise.
12723         (dtrace_can_evaluate_probe_arguments): Likewise.
12724         (dtrace_evaluate_probe_argument): Likewise.
12725         (dtrace_compile_to_ax): Likewise.
12726         (dtrace_probe_destroy): Likewise.
12727         (dtrace_gen_info_probes_table_header): Likewise.
12728         (dtrace_gen_info_probes_table_values): Likewise.
12729         (dtrace_probe_is_enabled): Likewise.
12730         (dtrace_probe_ops): New variable.
12731         (info_probes_dtrace_command): New function.
12732         (_initialize_dtrace_probe): Likewise.
12733         (dtrace_type_name): Likewise.
12734
12735 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12736
12737         * gdbarch.sh (dtrace_parse_probe_argument): New.
12738         (dtrace_probe_is_enabled): Likewise.
12739         (dtrace_enable_probe): Likewise.
12740         (dtrace_disable_probe): Likewise.
12741         * gdbarch.c: Regenerate.
12742         * gdbarch.h: Regenerate.
12743
12744 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12745
12746         * stap-probe.c (stap_probe_ops): Add NULLs in the static
12747         stap_probe_ops for `enable_probe' and `disable_probe'.
12748         * probe.c (enable_probes_command): New function.
12749         (disable_probes_command): Likewise.
12750         (_initialize_probe): Define the cli commands `enable probe' and
12751         `disable probe'.
12752         (parse_probe_linespec): New function.
12753         (info_probes_for_ops): Use parse_probe_linespec.
12754         * probe.h (probe_ops): New hooks `enable_probe' and
12755         `disable_probe'.
12756
12757 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12758
12759         * probe.c (compute_probe_arg): Moved from stap-probe.c
12760         (compile_probe_arg): Likewise.
12761         (probe_funcs): Likewise.
12762         * stap-probe.c (compute_probe_arg): Moved to probe.c.
12763         (compile_probe_arg): Likewise.
12764         (probe_funcs): Likewise.
12765
12766 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12767
12768         * probe.c (print_ui_out_not_applicables): New function.
12769         (exists_probe_with_pops): Likewise.
12770         (info_probes_for_ops): Do not include column headers for probe
12771         types for which no probe has been actually found on any object.
12772         Also invoke `print_ui_out_not_applicables' in order to match the
12773         column rows with the header when probes of several types are
12774         listed.
12775         Print the "Type" column.
12776         * probe.h (probe_ops): Added a new probe operation `type_name'.
12777         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
12778         (stap_type_name): New function.
12779
12780 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
12781
12782         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
12783         (key_is_command_char): Delete.
12784
12785 2015-02-17  Pedro Alves  <palves@redhat.com>
12786
12787         * tui/tui.c (tui_enable): Resize windows before anything
12788         might show a window.
12789
12790 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
12791
12792         PR gdb/17984
12793         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
12794         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
12795         call.
12796         * aarch64-tdep.h (tdesc_aarch64): Declare.
12797
12798 2015-02-12  Mark Wielaard  <mjw@redhat.com>
12799
12800         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
12801
12802 2015-02-13  Doug Evans  <dje@google.com>
12803
12804         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
12805         anonymous_namespace to is_in_anonymous for consistency with the rest
12806         of the file.
12807         (cp_lookup_bare_symbol): Fix typo in comment.
12808         (cp_search_static_and_baseclasses): Ditto.
12809         (search_symbol_list): Use vertical space in comment better.
12810         (reset_directive_searched): Ditto. Fix typo.
12811         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
12812
12813 2015-02-13  Yao Qi  <yao.qi@arm.com>
12814
12815         * MAINTAINERS: Update my email address.
12816
12817 2015-02-12  Doug Evans  <dje@google.com>
12818
12819         * symtab.c (completion_list_add_name): Fix memory leak.
12820
12821 2015-02-12  Doug Evans  <dje@google.com>
12822
12823         * completer.c (complete_line): Remove incorrect comment.
12824
12825 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12826
12827         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
12828         (py_print_frame): Use RETURN_MASK_ERROR.
12829
12830 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12831
12832         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
12833         function comment.  Wrap all function that can throw in cleanups.
12834         (gdbpy_apply_frame_filter): Wrap all function that can throw in
12835         cleanups.
12836
12837 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12838
12839         * python/py-framefilter.c (py_print_frame): Substitute goto error.
12840         Remove the error label.
12841
12842 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12843
12844         * python/py-framefilter.c (py_print_frame): Put conditional code paths
12845         with goto first, indent the former else codepath left.  Put variable
12846         'elided' to a new inner block.
12847
12848 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12849
12850         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
12851
12852 2015-02-11  Pedro Alves  <palves@redhat.com>
12853
12854         * xcoffread.c (within_function): Delete.
12855
12856 2015-02-11  Tom Tromey  <tromey@redhat.com>
12857             Pedro Alves <palves@redhat.com>
12858
12859         * breakpoint.c (base_breakpoint_ops): Delete.
12860         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
12861         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
12862         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
12863         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
12864         * python/py-arch.c (arch_object_type): Make extern.
12865         * python/py-block.c (block_syms_iterator_object_type): Make extern.
12866         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
12867         * python/py-cmd.c (cmdpy_object_type): Make extern.
12868         * python/py-continueevent.c (continue_event_object_type)
12869         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
12870         parameter.  Update all callers.
12871         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
12872         * python/py-exitedevent.c (exited_event_object_type): Make extern.
12873         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
12874         * python/py-function.c (fnpy_object_type): Make extern.
12875         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
12876         * python/py-infevents.c (call_pre_event_object_type)
12877         (inferior_call_post_event_object_type).
12878         (memory_changed_event_object_type): Make extern.
12879         * python/py-infthread.c (thread_object_type): Make extern.
12880         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
12881         * python/py-linetable.c (linetable_entry_object_type)
12882         (linetable_object_type, ltpy_iterator_object_type): Make extern.
12883         * python/py-newobjfileevent.c (new_objfile_event_object_type)
12884         (clear_objfiles_event_object_type): Make extern.
12885         * python/py-objfile.c (objfile_object_type): Make extern.
12886         * python/py-param.c (parmpy_object_type): Make extern.
12887         * python/py-progspace.c (pspace_object_type): Make extern.
12888         * python/py-signalevent.c (signal_event_object_type): Make extern.
12889         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
12890         * python/py-type.c (type_object_type, field_object_type)
12891         (type_iterator_object_type): Make extern.
12892         * python/python.c (python_extension_script_ops)
12893         (python_extension_ops): Make extern.
12894         * stap-probe.c (stap_probe_ops): Make extern.
12895
12896 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
12897
12898         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
12899         because the event thread is not the current thread.
12900
12901 2015-02-11  Doug Evans  <xdje42@gmail.com>
12902
12903         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
12904         been initialized yet, return NULL.
12905
12906 2015-02-11  Doug Evans  <dje@google.com>
12907
12908         * symfile.h (new_symfile_objfile): Delete.
12909         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
12910         All callers updated.
12911
12912 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
12913
12914         * tui/tui-io.c (tui_handle_resize_during_io): Call
12915         tui_update_gdb_sizes() after resizing the screen.
12916         * tui/tui.c (tui_enable): Resize the terminal before
12917         calling tui_update_gdb_sizes().
12918
12919 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
12920
12921         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
12922         line before printing a newline.
12923
12924 2015-02-11  Mark Wielaard  <mjw@redhat.com>
12925
12926         * utils.c (producer_is_gcc): Return true or false.
12927
12928 2015-02-10  Mark Wielaard  <mjw@redhat.com>
12929
12930         * utils.h (producer_is_gcc): Change return type to bool. Add major
12931         argument.
12932         * utils.c (producer_is_gcc): Likewise.
12933         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
12934         * dwarf2read.c (check_producer): Likewise.
12935
12936 2015-02-10  Pedro Alves  <palves@redhat.com>
12937
12938         * infrun.c (displaced_step_fixup): Switch to the event thread
12939         before calling gdbarch_displaced_step_fixup.
12940
12941 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
12942
12943         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
12944
12945 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
12946
12947         * ada-varobj.c (ada_name_of_child): Constify parent.
12948         (ada_path_expr_of_child): Same.
12949         (ada_value_of_child): Same.
12950         (ada_type_of_child): Same.
12951         * c-varobj.c (c_is_path_expr_parent): Same.
12952         (c_describe_child): Same.
12953         (c_name_of_child): Same.
12954         (c_value_of_child): Same.
12955         (c_type_of_child): Same.
12956         (cplus_number_of_children): Same.
12957         (cplus_describe_child): Constify var.
12958         (cplus_name_of_child): Constify parent.
12959         (cplus_value_of_child): Same.
12960         (cplus_type_of_child): Same.
12961         * jv-varobj.c (java_name_of_child): Same.
12962         (java_value_of_child): Same.
12963         (java_type_of_child): Same.
12964         * varobj.c (value_of_child): Same.
12965         (varobj_default_is_path_expr_parent): Constify var, parent and return
12966         value.
12967         (varobj_get_path_expr): Constify var, modify path_expr through
12968         mutable_var.
12969         (install_new_value): Constify parent.
12970         (value_of_child): Constify parent.
12971         * varobj.h (struct varobj): Constify parent.
12972         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
12973         type_of_child.
12974         (varobj_get_path_expr): Constify var.
12975         (varobj_get_path_expr_parent): Constify var and return value.
12976
12977 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
12978
12979         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
12980         (arm_prologue_this_id): Move PC and SP limit checks to
12981         arm_prologue_unwind_stop_reason.
12982         (arm_prologue_unwind) <stop_reason> : Set to
12983         arm_prologue_unwind_stop_reason.
12984
12985 2015-02-09  Mark Wielaard  <mjw@redhat.com>
12986
12987         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
12988         DW_LANG_Fortran08 as language_fortran.
12989
12990 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
12991
12992         PR remote/17946
12993         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
12994         of pointer against char.
12995
12996 2015-02-09  Mark Wielaard  <mjw@redhat.com>
12997
12998         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
12999         (c_type_print_modifier): Likewise.
13000         * dwarf2read.c (read_tag_atomic_type): New function.
13001         (read_type_die_1): Handle DW_TAG_atomic_type.
13002         * gdbtypes.c (make_atomic_type): New function.
13003         (recursive_dump_type): Handle TYPE_ATOMIC.
13004         * gdbtypes.h (enum type_flag_values): Renumber.
13005         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
13006         (TYPE_ATOMIC): New macro.
13007         (make_atomic_type): Declare.
13008
13009 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13010
13011         * btrace.c (ftrace_find_call): Skip gaps.
13012         (ftrace_new_function): Initialize level.
13013         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
13014         (ftrace_new_switch): Update
13015         level computation.
13016         (ftrace_new_gap): New.
13017         (ftrace_update_function): Create new function after gap.
13018         (btrace_compute_ftrace_bts): Create gap on error.
13019         (btrace_stitch_bts): Update parameters.  Clear trace if it
13020         becomes empty.
13021         (btrace_stitch_trace): Update parameters.  Update callers.
13022         (btrace_clear): Reset the number of gaps.
13023         (btrace_insn_get): Return NULL if the iterator points to a gap.
13024         (btrace_insn_number): Return zero if the iterator points to a gap.
13025         (btrace_insn_end): Allow gaps at the end.
13026         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
13027         (btrace_find_insn_by_number): Assert that the found iterator does
13028         not point to a gap.
13029         (btrace_call_next, btrace_call_prev): Assert that the last function
13030         is not a gap.
13031         * btrace.h (btrace_bts_error): New.
13032         (btrace_function): Update comment.
13033         (btrace_function) <insn, insn_offset, number>: Update comment.
13034         (btrace_function) <errcode>: New.
13035         (btrace_thread_info) <ngaps>: New.
13036         (btrace_thread_info) <replay>: Update comment.
13037         (btrace_insn_get): Update comment.
13038         * record-btrace.c (btrace_ui_out_decode_error): New.
13039         (record_btrace_info): Print number of gaps.
13040         (btrace_insn_history, btrace_call_history): Call
13041         btrace_ui_out_decode_error for gaps.
13042         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
13043
13044 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13045
13046         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
13047         * nat/linux-btrace.c: (btrace_this_cpu): New.
13048         (cpu_supports_bts): Call btrace_this_cpu.
13049         (intel_supports_bts): Add cpu parameter.
13050
13051 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13052
13053         * btrace.h (btrace_insn_class): New.
13054         (btrace_insn) <size, iclass>: New.
13055         * btrace.c (ftrace_find_call): Update parameters.  Update users.
13056         Use instruction classification.
13057         (ftrace_new_return): Update parameters.  Update users.
13058         (ftrace_update_function): Update parameters.  Update users.  Use
13059         instruction classification.
13060         (ftrace_update_insns): Update parameters.  Update users.
13061         (ftrace_classify_insn): New.
13062         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
13063         TRY_CATCH around call to gdb_insn_length.
13064
13065 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13066
13067         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
13068         Update parameters.  Update users.
13069
13070 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13071
13072         * btrace.c (parse_xml_btrace_conf_bts): Add size.
13073         (btrace_conf_bts_attributes): New.
13074         (btrace_conf_children): Add attributes.
13075         * common/btrace-common.h (btrace_config_bts): New.
13076         (btrace_config)<bts>: New.
13077         (btrace_config): Update comment.
13078         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
13079         Use config.
13080         * features/btrace-conf.dtd: Increment version.  Add size
13081         attribute to bts element.
13082         * record-btrace.c (set_record_btrace_bts_cmdlist,
13083         show_record_btrace_bts_cmdlist): New.
13084         (record_btrace_adjust_size, record_btrace_print_bts_conf,
13085         record_btrace_print_conf, cmd_set_record_btrace_bts,
13086         cmd_show_record_btrace_bts): New.
13087         (record_btrace_info): Call record_btrace_print_conf.
13088         (_initialize_record_btrace): Add commands.
13089         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
13090         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
13091         (btrace_sync_conf): Synchronize bts size.
13092         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
13093         * NEWS: Announce new commands and new packets.
13094
13095 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13096
13097         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
13098         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
13099         (x86_linux_btrace_conf): New.
13100         (x86_linux_create_target): Initialize to_btrace_conf.
13101         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
13102         Check format.  Split into this and ...
13103         (linux_enable_bts): ... this.
13104         (linux_btrace_conf): New.
13105         (perf_event_skip_record): Renamed into ...
13106         (perf_event_skip_bts_record): ... this.  Updated users.
13107         (linux_disable_btrace): Split into this and ...
13108         (linux_disable_bts): ... this.
13109         (linux_read_btrace): Check format.
13110         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
13111         (linux_btrace_conf): New.
13112         (btrace_target_info)<ptid>: Moved.
13113         (btrace_target_info)<conf>: New.
13114         (btrace_target_info): Split into this and ...
13115         (btrace_tinfo_bts): ... this.  Updated users.
13116         * btrace.c (btrace_enable): Update parameters.
13117         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
13118         (btrace_conf_children, btrace_conf_attributes)
13119         (btrace_conf_elements): New.
13120         * btrace.h (btrace_enable): Update parameters.
13121         (btrace_conf, parse_xml_btrace_conf): New.
13122         * common/btrace-common.h (btrace_config): New.
13123         * feature/btrace-conf.dtd: New.
13124         * record-btrace.c (record_btrace_conf): New.
13125         (record_btrace_cmdlist): New.
13126         (record_btrace_enable_warn, record_btrace_open): Pass
13127         &record_btrace_conf.
13128         (record_btrace_info): Print recording format.
13129         (cmd_record_btrace_bts_start): New.
13130         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
13131         (_initialize_record_btrace): Add "record btrace bts" subcommand.
13132         Add "record bts" alias command.
13133         * remote.c (remote_state)<btrace_config>: New.
13134         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
13135         (remote_protocol_features): Add qXfer:btrace-conf:read.
13136         (remote_open_1): Call remote_btrace_reset.
13137         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
13138         (btrace_target_info)<conf>: New.
13139         (btrace_sync_conf, btrace_read_config): New.
13140         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
13141         btrace_read_conf.
13142         (remote_btrace_conf): New.
13143         (init_remote_ops): Initialize to_btrace_conf.
13144         (_initialize_remote): Add qXfer:btrace-conf packet.
13145         * target.c (target_enable_btrace): Update parameters.
13146         (target_btrace_conf): New.
13147         * target.h (target_enable_btrace): Update parameters.
13148         (target_btrace_conf): New.
13149         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
13150         (target_ops)<to_enable_btrace>: Update parameters and comment.
13151         (target_ops)<to_btrace_conf>: New.
13152         * target-delegates: Regenerate.
13153         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
13154         (target_debug_print_const_struct_btrace_target_info_p): New.
13155         * NEWS: Announce new command and new packet.
13156
13157 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13158
13159         * nat/linux-btrace.h (perf_event_buffer): New.
13160         (btrace_target_info) <buffer, size, data_head>: Replace with ...
13161         <bts>: ... this.
13162         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
13163         (perf_event_buffer_size, perf_event_buffer_begin)
13164         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
13165         Updated users.
13166         (perf_event_new_data): New.
13167
13168 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13169
13170         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
13171         * record-btrace.c (record_btrace_open): Remove call to
13172         target_supports_btrace.
13173         * remote.c (remote_supports_btrace): Update parameters.
13174         * target.c (target_supports_btrace): Update parameters.
13175         * target.h (to_supports_btrace, target_supports_btrace): Update
13176         parameters.
13177         * target-delegates.c: Regenerate.
13178         * target-debug.h (target_debug_print_enum_btrace_format): New.
13179         * nat/linux-btrace.c
13180         (kernel_supports_btrace): Rename into ...
13181         (kernel_supports_bts): ... this.  Update users.  Update warning text.
13182         (intel_supports_btrace): Rename into ...
13183         (intel_supports_bts): ... this.  Update users.
13184         (cpu_supports_btrace): Rename into ...
13185         (cpu_supports_bts): ... this.  Update users.
13186         (linux_supports_btrace): Update parameters.  Split into this and ...
13187         (linux_supports_bts): ... this.
13188         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
13189
13190 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13191
13192         * Makefile.in (SFILES): Add common/btrace-common.c.
13193         (COMMON_OBS): Add common/btrace-common.o.
13194         (btrace-common.o): Add build rules.
13195         * btrace.c (parse_xml_btrace): Update parameters.
13196         (parse_xml_btrace_block): Set format field.
13197         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
13198         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
13199         (btrace_compute_ftrace): Split into this and...
13200         (btrace_compute_ftrace_bts): ...this.
13201         (btrace_stitch_trace): Split into this and...
13202         (btrace_stitch_bts): ...this.
13203         * btrace.h (parse_xml_btrace): Update parameters.
13204         (make_cleanup_btrace_data): New.
13205         * common/btrace-common.c: New.
13206         * common/btrace-common.h: Include common-defs.h.
13207         (btrace_block_s): Update comment.
13208         (btrace_format): New.
13209         (btrace_format_string): New.
13210         (btrace_data_bts): New.
13211         (btrace_data): New.
13212         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
13213         * remote.c (remote_read_btrace): Update parameters.
13214         * target.c (target_read_btrace): Update parameters.
13215         * target.h (target_read_btrace): Update parameters.
13216         (target_ops)<to_read_btrace>: Update parameters.
13217         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
13218         * target-delegates.c: Regenerate.
13219         * target-debug (target_debug_print_struct_btrace_data_p): New.
13220         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
13221         (linux_read_bts): ...this.
13222         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
13223
13224 2015-02-06  Doug Evans  <dje@google.com>
13225
13226         * remote-m32r-sdi.c: Include symfile.h.
13227
13228 2015-02-06  Doug Evans  <dje@google.com>
13229
13230         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
13231         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
13232         to here.
13233
13234 2015-02-06  Pedro Alves  <palves@redhat.com>
13235
13236         * linux-thread-db.c (find_new_threads_callback): Add debug output.
13237
13238 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
13239
13240         PR gdb/15678
13241         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
13242         (enable_count_command): Check args for NULL value.
13243
13244 2015-02-05  Doug Evans  <xdje42@gmail.com>
13245
13246         * guile/scm-frame.c: Fix spelling errors in a comment.
13247
13248 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
13249
13250         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
13251         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
13252         return type.
13253
13254 2015-02-04  Pedro Alves  <palves@redhat.com>
13255
13256         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
13257         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
13258         returns true.
13259         (resume_stopped_resumed_lwps): Don't check whether the thread is
13260         marked as executing.
13261         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
13262
13263 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13264
13265         * regset.h (struct regset): Add flags field.
13266         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
13267         * corelow.c (get_core_register_section): Add warning if the size
13268         exceeds the requested size and the regset does not have the
13269         REGSET_VARIABLE_SIZE flag set.
13270         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
13271         flag.
13272         * armbsd-tdep.c (armbsd_gregset): Likewise.
13273         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
13274         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
13275         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
13276         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
13277
13278 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13279
13280         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
13281         For ".reg-xstate", explicitly specify the requested section size
13282         via X86_XSTATE_SIZE instead of just 0 on input and
13283         X86_XSTATE_MAX_SIZE on output.
13284         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
13285         Likewise.
13286
13287 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13288
13289         PR corefiles/17808:
13290         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
13291         function type, particularly its SIZE parameter.
13292         * gdbarch.h: Regenerate.
13293         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
13294         actual against required size using ">=" instead of "==".
13295         (amd64_collect_fpregset): Likewise.
13296         * i386-tdep.c (i386_supply_gregset): Likewise.
13297         (i386_collect_gregset): Likewise.
13298         (i386_supply_fpregset): Likewise.
13299         (i386_collect_fpregset): Likewise.
13300         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
13301         (mips_fill_gregset_wrapper): Likewise.
13302         (mips_supply_fpregset_wrapper): Likewise.
13303         (mips_fill_fpregset_wrapper): Likewise.
13304         (mips64_supply_gregset_wrapper): Likewise.
13305         (mips64_fill_gregset_wrapper): Likewise.
13306         (mips64_supply_fpregset_wrapper): Likewise.
13307         (mips64_fill_fpregset_wrapper): Likewise.
13308         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
13309         (am33_supply_fpregset_method): Likewise.
13310         (am33_collect_gregset_method): Likewise.
13311         (am33_collect_fpregset_method): Likewise.
13312
13313 2015-02-04  Doug Evans  <dje@google.com>
13314             Pedro Alves  <palves@redhat.com>
13315             Eli Zaretskii  <eliz@gnu.org>
13316
13317         PR tui/17810
13318         * tui/tui-command.c (tui_refresh_cmd_win): New function.
13319         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
13320         * tui/tui-file.c: #include tui/tui-command.h.
13321         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
13322         (tui_file_flush): Refresh command window if stream is gdb_stdout.
13323         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
13324
13325 2015-02-04  Pedro Alves  <palves@redhat.com>
13326
13327         Fix build breakage.
13328         * event-loop.c (gdb_do_one_event): Add default switch case.
13329
13330 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
13331
13332         Filter out inferior gcc option -fpreprocessed.
13333         * compile/compile.c (filter_args): New function.
13334         (get_args): Use it.
13335
13336 2015-02-03  Pedro Alves  <palves@redhat.com>
13337
13338         * event-loop.c: Don't declare nor define a queue type for
13339         gdb_event_p.
13340         (event_queue): Delete.
13341         (create_event, create_file_event, gdb_event_xfree)
13342         (initialize_event_loop, process_event): Delete.
13343         (gdb_do_one_event): Return as soon as one event is handled.
13344         (handle_file_event): Change prototype.  Used the passed in
13345         file_handler pointer and ready_mask instead of looping over all
13346         file handlers.
13347         (gdb_wait_for_event): Update the poll/select timeouts before
13348         blocking.  Run event handlers directly instead of queueing events.
13349         Return as soon as one event is handled.
13350         (struct async_event_handler_data): Delete.
13351         (invoke_async_event_handler): Delete.
13352         (check_async_event_handlers): Change return type to int.  Run
13353         event handlers directly instead of queueing events.  Return as
13354         soon as one event is handled.
13355         (handle_timer_event): Delete.
13356         (update_wait_timeout): New function, factored out from
13357         poll_timers.
13358         (poll_timers): Reimplement.
13359         * event-loop.h (initialize_event_loop): Delete declaration.
13360         * top.c (gdb_init): Don't call initialize_event_loop.
13361
13362 2015-02-03  Pedro Alves  <palves@redhat.com>
13363
13364         * event-loop.c (clear_async_event_handler): New function.
13365         * event-loop.h (clear_async_event_handler): New declaration.
13366         * record-btrace.c (record_btrace_async): New function.
13367         (init_record_btrace_ops): Install record_btrace_async.
13368         * record-full.c (record_full_async): New function.
13369         (record_full_resume): Don't mark the async event source here.
13370         (init_record_full_ops): Install record_full_async.
13371         (record_full_core_resume): Don't mark the async event source here.
13372         (init_record_full_core_ops): Install record_full_async.
13373         * remote.c (remote_async): Mark and clear the async stop reply
13374         queue event-loop token as appropriate.
13375
13376 2015-02-03  Pedro Alves  <palves@redhat.com>
13377
13378         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
13379         target_is_async_p instead of target_can_async.
13380         (linux_nat_wait): Use target_is_async_p instead of
13381         target_can_async.  Don't enable async here.
13382         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
13383         target_is_async_p instead of target_can_async.
13384
13385 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
13386
13387         * varobj.h (lang_varobj_ops): Mention which return values need
13388         to be freed.
13389
13390 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
13391
13392         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
13393
13394 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
13395
13396         PR gdb/17856:
13397         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
13398         results found in the cache.
13399
13400 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
13401
13402         PR gdb/17854:
13403         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
13404         when allocating a new one.
13405
13406 2015-02-01  Tom Tromey  <tom@tromey.com>
13407
13408         * MAINTAINERS: Remove myself.
13409
13410 2015-01-31  Doug Evans  <xdje42@gmail.com>
13411
13412         * dwarf2read.c (process_structure_scope): Update setting of
13413         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
13414         * gdbtypes.c (internal_type_vptr_fieldno): New function.
13415         (set_type_vptr_fieldno): New function.
13416         (internal_type_vptr_basetype): New function.
13417         (set_type_vptr_basetype): New function.
13418         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
13419         TYPE_VPTR_BASETYPE.
13420         (allocate_cplus_struct_type): Initialize vptr_fieldno.
13421         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
13422         (print_cplus_stuff): ... moved here.
13423         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
13424         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
13425         moved to ...
13426         (struct cplus_struct_type): ... here.  All uses updated.
13427         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
13428         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
13429         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
13430         * stabsread.c (read_tilde_fields): Update setting of
13431         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
13432
13433 2015-01-31  Doug Evans  <xdje42@gmail.com>
13434
13435         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
13436         to self_p.
13437         (cp_print_class_member): Rename local domain to self_type.
13438         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
13439         domain_type to self_type.
13440         (set_die_type) <need_gnat_info>: Handle
13441         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
13442         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
13443         TYPE_SPECIFIC_SELF_TYPE.
13444         * gdbtypes.c (internal_type_self_type): New function.
13445         (set_type_self_type): New function.
13446         (smash_to_memberptr_type): Rename parameter domain to self_type.
13447         Update setting of TYPE_SELF_TYPE.
13448         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
13449         (smash_to_method_type): Rename parameter domain to self_type.
13450         Update setting of TYPE_SELF_TYPE.
13451         (check_stub_method): Call smash_to_method_type.
13452         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
13453         (copy_type_recursive): Ditto.
13454         * gdbtypes.h (enum type_specific_kind): New value
13455         TYPE_SPECIFIC_SELF_TYPE.
13456         (struct main_type) <type_specific>: New member self_type.
13457         (struct cplus_struct_type) <fn_field.type>: Update comment.
13458         (TYPE_SELF_TYPE): Rewrite.
13459         (internal_type_self_type, set_type_self_type): Declare.
13460         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
13461         self_type.
13462         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
13463         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
13464         TYPE_TARGET_TYPE.
13465         * stabsread.c (read_member_functions): Mark methods with
13466         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
13467         TYPE_SELF_TYPE.
13468
13469 2015-01-31  Doug Evans  <xdje42@gmail.com>
13470
13471         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
13472         All uses updated.
13473
13474 2015-01-31  Doug Evans  <xdje42@gmail.com>
13475
13476         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
13477         or unions.  Return zero if union.
13478         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
13479         (gnuv3_rtti_type): Pass already-check_typedef'd value to
13480         gnuv3_get_vtable.
13481         (compute_vtable_size): Assert only passed structs.
13482         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
13483
13484 2015-01-31  Doug Evans  <xdje42@gmail.com>
13485
13486         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
13487         kinds.
13488
13489 2015-01-31  Gary Benson <gbenson@redhat.com>
13490             Doug Evans  <dje@google.com>
13491
13492         PR cli/9007
13493         PR cli/11920
13494         PR cli/15548
13495         * cli/cli-cmds.c (complete_command): Notify user if max-completions
13496         reached.
13497         * common/common-exceptions.h (enum errors)
13498         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
13499         * completer.h (get_max_completions_reached_message): New declaration.
13500         (max_completions): Likewise.
13501         (completion_tracker_t): New typedef.
13502         (new_completion_tracker): New declaration.
13503         (make_cleanup_free_completion_tracker): Likewise.
13504         (maybe_add_completion_enum): New enum.
13505         (maybe_add_completion): New declaration.
13506         (throw_max_completions_reached_error): Likewise.
13507         * completer.c (max_completions): New global variable.
13508         (new_completion_tracker): New function.
13509         (free_completion_tracker): Likewise.
13510         (make_cleanup_free_completion_tracker): Likewise.
13511         (maybe_add_completions): Likewise.
13512         (throw_max_completions_reached_error): Likewise.
13513         (complete_line): Remove duplicates and limit result to max_completions
13514         entries.
13515         (get_max_completions_reached_message): New function.
13516         (gdb_display_match_list): Handle max_completions.
13517         (_initialize_completer): New declaration and function.
13518         * symtab.c: Include completer.h.
13519         (completion_tracker): New static variable.
13520         (completion_list_add_name): Call maybe_add_completion.
13521         (default_make_symbol_completion_list_break_on_1): Renamed from
13522         default_make_symbol_completion_list_break_on.  Maintain
13523         completion_tracker across calls to completion_list_add_name.
13524         (default_make_symbol_completion_list_break_on): New function.
13525         * top.c (init_main): Set rl_completion_display_matches_hook.
13526         * tui/tui-io.c: Include completer.h.
13527         (tui_old_rl_display_matches_hook): New static global.
13528         (tui_rl_display_match_list): Notify user if max-completions reached.
13529         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
13530         * NEWS (New Options): Mention set/show max-completions.
13531
13532 2015-01-31  Gary Benson  <gbenson@redhat.com>
13533
13534         * symtab.c (struct add_name_data) <code>: New field.
13535         Updated comments.
13536         (add_symtab_completions): New function.
13537         (symtab_expansion_callback): Likewise.
13538         (default_make_symbol_completion_list_break_on): Set datum.code.
13539         Move minimal symbol scan before calling expand_symtabs_matching.
13540         Scan known primary symtabs for externs and statics before calling
13541         expand_symtabs_matching.  Pass symtab_expansion_callback as
13542         expansion_notify argument to expand_symtabs_matching.  Do not scan
13543         primary symtabs for externs and statics after calling
13544         expand_symtabs_matching.
13545
13546 2015-01-31  Gary Benson  <gbenson@redhat.com>
13547
13548         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
13549         (struct quick_symbol_functions) <expand_symtabs_matching>:
13550         New argument expansion_notify.  All uses updated.
13551         (expand_symtabs_matching): New argument expansion_notify.
13552         All uses updated.
13553         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13554         Also print expansion notify.
13555         * symtab.c (expand_symtabs_matching_via_partial): Call
13556         expansion_notify whenever a partial symbol table is expanded.
13557         * dwarf2read.c (dw2_expand_symtabs_matching): Call
13558         expansion_notify whenever a symbol table is instantiated.
13559
13560 2015-01-31  Doug Evans  <xdje42@gmail.com>
13561
13562         * cli-out.c: #include completer.h, readline/readline.h.
13563         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
13564         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
13565         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
13566         * cli-out.h (cli_display_match_list): Declare.
13567         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
13568         (ELLIPSIS_LEN): Ditto.
13569         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
13570         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
13571         (gdb_fnprint, gdb_print_filename): Ditto.
13572         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
13573         (gdb_display_match_list): Ditto.
13574         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
13575         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
13576         (mld_beep_ftype, mld_read_key_ftype): Ditto.
13577         (match_list_displayer): New struct.
13578         (gdb_display_match_list): Declare.
13579         * top.c (init_main): Set rl_completion_display_matches_hook.
13580         * tui/tui-io.c: #include completer.h.
13581         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
13582         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
13583         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
13584         (tui_mld_getc, tui_mld_read_key): Ditto.
13585         (tui_rl_display_match_list): Rewrite.
13586         (tui_handle_resize_during_io): New arg for_completion.  All callers
13587         updated.
13588
13589 2015-01-31  Doug Evans  <xdje42@gmail.com>
13590
13591         Add symbol lookup cache.
13592         * NEWS: Document new options and commands.
13593         * symtab.c (symbol_cache_key): New static global.
13594         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
13595         (SYMBOL_LOOKUP_FAILED): New macro.
13596         (symbol_cache_slot_state): New enum.
13597         (block_symbol_cache): New struct.
13598         (symbol_cache): New struct.
13599         (new_symbol_cache_size, symbol_cache_size): New static globals.
13600         (hash_symbol_entry, eq_symbol_entry): New functions.
13601         (symbol_cache_byte_size, resize_symbol_cache): New functions.
13602         (make_symbol_cache, free_symbol_cache): New functions.
13603         (get_symbol_cache, symbol_cache_cleanup): New function.
13604         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
13605         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
13606         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
13607         (symbol_cache_flush, symbol_cache_dump): New functions.
13608         (maintenance_print_symbol_cache): New function.
13609         (maintenance_flush_symbol_cache): New function.
13610         (symbol_cache_stats): New function.
13611         (maintenance_print_symbol_cache_statistics): New function.
13612         (symtab_new_objfile_observer): New function.
13613         (symtab_free_objfile_observer): New function.
13614         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
13615         (_initialize_symtab): Init symbol_cache_key.  New parameter
13616         maint symbol-cache-size.  New maint commands print symbol-cache,
13617         print symbol-cache-statistics, flush-symbol-cache.
13618         Install new_objfile, free_objfile observers.
13619
13620 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
13621
13622         PR symtab/17855
13623         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
13624         to end.
13625
13626 2015-01-31  Doug Evans  <xdje42@gmail.com>
13627
13628         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
13629         * auto-load.c: #include ctype.h.
13630         (struct auto_load_pspace_info): Replace member loaded_scripts with
13631         new members loaded_script_files, loaded_script_texts.
13632         (auto_load_pspace_data_cleanup): Update.
13633         (init_loaded_scripts_info): Update.
13634         (get_auto_load_pspace_data_for_loading): Update.
13635         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
13636         updated.
13637         (maybe_add_script_text): New function.
13638         (clear_section_scripts): Update.
13639         (source_script_file, execute_script_contents): New functions.
13640         (source_section_scripts): Add support for
13641         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
13642         (print_scripts): New function.
13643         (auto_load_info_scripts): Also print inlined scripts.
13644         (maybe_print_unsupported_script_warning): Renamed from
13645         unsupported_script_warning_print.  All callers updated.
13646         (maybe_print_script_not_found_warning): Renamed from
13647         script_not_found_warning_print.  All callers updated.
13648         * extension-priv.h (struct extension_language_script_ops): New member
13649         objfile_script_executor.
13650         * extension.c (ext_lang_objfile_script_executor): New function.
13651         * extension.h (objfile_script_executor_func): New typedef.
13652         (ext_lang_objfile_script_executor): Declare.
13653         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
13654         * guile/guile.c (guile_extension_script_ops): Update.
13655         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
13656         * python/python.c (python_extension_script_ops): Update.
13657         (gdbpy_execute_objfile_script): New function.
13658
13659 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
13660
13661         * tui/tui-io.c (tui_expand_tabs): New function.
13662         (tui_puts, tui_redisplay_readline): Expand TABs into the
13663         appropriate number of spaces.
13664         * tui/tui-regs.c: Include tui-io.h.
13665         (tui_register_format): Call tui_expand_tabs to expand TABs into
13666         the appropriate number of spaces.
13667         * tui/tui-io.h: Add prototype for tui_expand_tabs.
13668
13669 2015-01-30  Doug Evans  <dje@google.com>
13670
13671         * NEWS: "info source" command now display producer string if present.
13672         * source.c (source_info): Print producer string if present.
13673
13674 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
13675
13676         * varobj.c (varobj_delete): Fix comment.
13677
13678 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
13679
13680         * varobj.c (create_child): Modify comment.
13681
13682 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
13683
13684         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
13685         parameter.
13686         (ada_name_of_variable): Same.
13687         (ada_path_expr_of_child): Same.
13688         (ada_value_of_variable): Same.
13689         (ada_value_is_changeable_p): Same.
13690         (ada_value_has_mutated): Same.
13691         * c-varobj.c (varobj_is_anonymous_child): Same.
13692         (c_is_path_expr_parent): Same.
13693         (c_number_of_children): Same.
13694         (c_name_of_variable): Same.
13695         (c_path_expr_of_child): Same.
13696         (get_type): Same.
13697         (c_value_of_variable): Same.
13698         (cplus_number_of_children): Same.
13699         (cplus_name_of_variable): Same.
13700         (cplus_path_expr_of_child): Same.
13701         (cplus_value_of_variable): Same.
13702         * jv-varobj.c (java_number_of_children): Same.
13703         (java_name_of_variable): Same.
13704         (java_path_expr_of_child): Same.
13705         (java_value_of_variable): Same.
13706         * varobj.c (number_of_children): Same.
13707         (name_of_variable): Same.
13708         (is_root_p): Same.
13709         (varobj_ensure_python_env): Same.
13710         (varobj_get_objname): Same.
13711         (varobj_get_expression): Same.
13712         (varobj_get_display_format): Same.
13713         (varobj_get_display_hint): Same.
13714         (varobj_has_more): Same.
13715         (varobj_get_thread_id): Same.
13716         (varobj_get_frozen): Same.
13717         (dynamic_varobj_has_child_method): Same.
13718         (varobj_get_gdb_type): Same.
13719         (is_path_expr_parent): Same.
13720         (varobj_default_is_path_expr_parent): Same.
13721         (varobj_get_language): Same.
13722         (varobj_get_attributes): Same.
13723         (varobj_is_dynamic_p): Same.
13724         (varobj_get_child_range): Same.
13725         (varobj_value_has_mutated): Same.
13726         (varobj_get_value_type): Same.
13727         (number_of_children): Same.
13728         (name_of_variable): Same.
13729         (check_scope): Same.
13730         (varobj_editable_p): Same.
13731         (varobj_value_is_changeable_p): Same.
13732         (varobj_floating_p): Same.
13733         (varobj_default_value_is_changeable_p): Same.
13734
13735 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
13736
13737         * varobj.c (varobj_get_path_expr): Set var->path_expr.
13738         * c-varobj.c (c_path_expr_of_child): Set local var instead of
13739         child->path_expr.
13740         (cplus_path_expr_of_child): Same.
13741
13742 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
13743
13744         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
13745         result.
13746         (mi_cmd_var_info_expression): Same.
13747         * varobj.c (varobj_get_expression): Mention in the comment that
13748         the result must by freed by the caller.
13749
13750 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
13751
13752         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
13753         varobj_get_type.
13754         (varobj_update_one): Same.
13755         * varobj.c (update_type_if_necessary): Free curr_type_str and
13756         new_type_str.
13757         (varobj_get_type): Specify in comment that the result needs to be
13758         freed by the caller.
13759
13760 2015-01-29  Doug Evans  <dje@google.com>
13761
13762         PR symtab/17890
13763         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
13764
13765 2015-01-25  Mark Wielaard  <mjw@redhat.com>
13766
13767         * dwarf2read.c (checkproducer): Call producer_is_gcc.
13768         * utils.c (producer_is_gcc_ge_4): Likewise.
13769         (producer_is_gcc): New function.
13770         * utils.h (producer_is_gcc): New declaration.
13771
13772 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
13773
13774         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
13775         kind.
13776         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
13777         parameter by "addr_stack" parameter.
13778         (resolve_dynamic_range): Replace "addr" parameter by
13779         "stack_addr" parameter.  Update function documentation.
13780         Update code accordingly.
13781         (resolve_dynamic_array, resolve_dynamic_union)
13782         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
13783         (resolve_dynamic_type): Update code, following the changes made
13784         to resolve_dynamic_type_internal's interface.
13785         * dwarf2loc.h (struct property_addr_info): New.
13786         (dwarf2_evaluate_property): Replace "address" parameter
13787         by "addr_stack" parameter.  Adjust function documentation.
13788         (struct dwarf2_offset_baton): New.
13789         (struct dwarf2_property_baton): Update documentation of
13790         field "referenced_type" to be more general. New field
13791         "offset_info" in union data field.
13792         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
13793         parameter by "addr_stack" parameter.  Adjust code accordingly.
13794         Add support for PROP_ADDR_OFFSET properties.
13795         * dwarf2read.c (attr_to_dynamic_prop): Add support for
13796         DW_AT_data_member_location attributes as well.  Use case
13797         statements instead of if/else condition.
13798
13799 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
13800
13801         * ada-varobj.c (ada_varobj_get_array_number_of_children):
13802         Return zero if PARENT_VALUE is NULL and parent_type's
13803         range type is dynamic.
13804
13805 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
13806
13807         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
13808         nonzero if the type's subtype is dynamic.
13809         (resolve_dynamic_range): Also resolve the range's subtype.
13810
13811 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
13812
13813         Pushed by Joel Brobecker  <brobecker@adacore.com>.
13814         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
13815
13816 2015-01-27  Doug Evans  <dje@google.com>
13817
13818         * NEWS: Mention gdb.Objfile.username.
13819         * python/py-objfile.c (objfpy_get_username): New function.
13820         (objfile_getset): Add "username".
13821
13822 2015-01-24  Mark Wielaard  <mjw@redhat.com>
13823
13824         * stack.c (return_command): Markup warning message with _.
13825
13826 2015-01-24  Doug Evans  <xdje42@gmail.com>
13827
13828         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
13829
13830 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
13831
13832         Fix 100x slowdown regression on DWZ files.
13833         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
13834         (struct line_header): Add offset and offset_in_dwz.
13835         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
13836         (free_line_header_voidp): New declaration.
13837         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
13838         functions.
13839         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
13840         (handle_DW_AT_stmt_list): Use line_header_hash.
13841         (free_line_header_voidp): New function.
13842         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
13843         (dwarf_decode_lines): New parameter decode_mapping, use it.
13844         (dwarf2_free_objfile): Free line_header_hash.
13845
13846 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
13847
13848         PR gdb/17416
13849         * valops.c (value_rtti_indirect_type): Catch exception thrown by
13850         value_ind.
13851
13852 2015-01-15  Mark Wielaard  <mjw@redhat.com>
13853
13854         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
13855         DW_AT_noreturn.
13856         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
13857         calling_convention an 8 bit bit field.
13858         (TYPE_NO_RETURN): New macro.
13859         * infcmd.c (finish_command): Query if function does not return
13860         normally.
13861         * stack.c (return_command): Likewise.
13862
13863 2015-01-23  Pedro Alves  <palves@redhat.com>
13864
13865         * linux-nat.c (linux_is_async_p): New macro.
13866         (linux_nat_is_async_p):
13867         (linux_nat_terminal_inferior): Check whether the target can async
13868         instead of whether it is already async.
13869         (linux_nat_terminal_ours): Don't check whether the target is
13870         async.
13871         (linux_async_pipe): Use linux_is_async_p.
13872
13873 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
13874
13875         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
13876         '-ascending'.
13877         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
13878         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
13879         Sort tp_array using tp_array_compar.
13880         (_initialize_thread): Extend thread_apply_all_command help.
13881
13882 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
13883
13884         * corelow.c (core_open): Call also thread_command.
13885         * gdbthread.h (thread_command): New prototype moved from ...
13886         * thread.c (thread_command): ... here.
13887         (thread_command): Make it global.
13888
13889 2015-01-22  Pedro Alves  <palves@redhat.com>
13890
13891         * configure.ac [*mingw32*]: Check $curses_found instead of
13892         $prefer_curses.
13893         * configure: Regenerate.
13894         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
13895         HAVE_NCURSES_NCURSES_H checks.
13896
13897 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
13898
13899         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
13900         fails with the 1st arg NULL, try again with "unknown".  Don't test
13901         the "cup" capability: it isn't supported by the Windows port of
13902         ncurses, but the Windows console driver is still capable of
13903         supporting TUI.
13904
13905 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
13906
13907         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
13908
13909 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
13910
13911         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
13912         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
13913         reason that "make TAGS" is broken.
13914
13915 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
13916
13917         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
13918         and check additional store instructions.
13919
13920 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
13921
13922         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
13923
13924 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
13925
13926         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13927         ppc_canonicalize_syscall, ppc_linux_syscall_record,
13928         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
13929         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13930         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
13931         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
13932         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
13933         ppc_process_record_op19, ppc_process_record_op31,
13934         ppc_process_record_op59, ppc_process_record_op60,
13935         ppc_process_record_op63): Likewise.
13936
13937 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
13938
13939         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
13940         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
13941         strerror.
13942
13943 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
13944
13945         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
13946         ppc_process_record_op31, ppc_process_record_op59,
13947         ppc_process_record_op60, ppc_process_record_op63,
13948         ppc_process_record): Fix -Wformat warning.
13949         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
13950         Remove unused variables.
13951
13952 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
13953
13954         * MAINTAINERS (Write After Approval): Add "Chen Gang".
13955
13956 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
13957
13958         * configure.ac [*mingw32*]: Only add windows-termcap.o to
13959         CONFIG_OBS if not building with a curses library.
13960         * configure: Regenerate.
13961
13962         * windows-termcap.c: Include defs.h.  Make the whole body empty if
13963         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
13964         HAVE_NCURSES_NCURSES_H is defined.
13965
13966 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
13967
13968         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
13969         from end of line to start of next line.
13970
13971 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
13972
13973         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
13974         Scan PLT stub backward for reverse debugging.
13975         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13976
13977 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
13978             Ulrich Weigand  <uweigand@de.ibm.com>
13979
13980         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
13981         gdb_target_obs.
13982         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
13983         record.
13984         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
13985         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
13986         (ppc_linux_init_abi): Set process_record, process_record_signal.
13987         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
13988         ppc_linux_record_tdep to gdbarch_tdep.
13989         (ppc_process_record): New declaration.
13990         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
13991         ppc_process_record_op19, ppc_process_record_op31,
13992         ppc_process_record_op59, ppc_process_record_op60,
13993         ppc_process_record_op63, ppc_process_record): New functions.
13994
13995 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
13996
13997         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
13998         rs6000_in_function_epilogue_frame_p and add an argument
13999         for frame_info.
14000         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
14001         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
14002         New functions.
14003         (rs6000_epilogue_frame_unwind): New.
14004         (rs6000_gdbarch_init): Append epilogue unwinder.
14005
14006 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
14007
14008         * nat/linux-personality.c: Replace "#ifndef
14009         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
14010         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
14011         systems.
14012
14013 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
14014
14015         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
14016         functions.
14017         (_initialize_tui_win) <border-kind, border-mode>:
14018         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
14019         (tui_set_tab_width_command): Fix the commentary.
14020
14021         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
14022
14023         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
14024         Doc fix.
14025         (tui_set_tab_width_command): Delete and recreate the source and
14026         the disassembly windows, to show the effect of the changed tab
14027         size immediately.
14028
14029         * tui/tui-data.h (LINE_PREFIX): Make shorter
14030         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
14031         "Thread NNNNN.XXXX" thread ID notation on Windows.
14032
14033 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14034
14035         Fix gcc-5 compilation.
14036         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
14037
14038 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
14039
14040         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
14041         (linux-personality.o): New rule.
14042         * common/common-defs.h: Include <stdint.h>.
14043         * config/aarch64/linux.mh (NATDEPFILES): Include
14044         linux-personality.o.
14045         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
14046         * config/arm/linux.mh (NATDEPFILES): Likewise.
14047         * config/i386/linux64.mh (NATDEPFILES): Likewise.
14048         * config/i386/linux.mh (NATDEPFILES): Likewise.
14049         * config/ia64/linux.mh (NATDEPFILES): Likewise.
14050         * config/m32r/linux.mh (NATDEPFILES): Likewise.
14051         * config/m68k/linux.mh (NATDEPFILES): Likewise.
14052         * config/mips/linux.mh (NATDEPFILES): Likewise.
14053         * config/pa/linux.mh (NATDEPFILES): Likewise.
14054         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
14055         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
14056         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
14057         * config/s390/linux.mh (NATDEPFILES): Likewise.
14058         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
14059         * config/sparc/linux.mh (NATDEPFILES): Likewise.
14060         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
14061         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
14062         * defs.h: Remove #include <stdint.h> (moved to
14063         common/common-defs.h).
14064         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
14065         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
14066         nat/linux-personality.c).
14067         (linux_nat_create_inferior): Remove code to disable address space
14068         randomization (moved to nat/linux-personality.c).  Create cleanup
14069         to disable address space randomization.
14070         * nat/linux-personality.c: New file.
14071         * nat/linux-personality.h: Likewise.
14072
14073 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
14074
14075         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
14076         common/posix-strerror.c.
14077         (posix-strerror.o): New rule.
14078         (mingw-strerror.o): Likewise.
14079         * common/common-utils.h (safe_strerror): Move prototype to here,
14080         from utils.h.
14081         * common/common.host: New file.
14082         * common/mingw-strerror.c: Likewise.
14083         * common/posix-strerror.c: Likewise.
14084         * configure: Regenerated.
14085         * configure.ac: Source common/common.host.  Add variable
14086         common_host_obs to gdb_host_obs.
14087         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
14088         gdb/common/posix-strerror.c when warning about the use of
14089         strerror.
14090         * mingw-hdep.c (safe_strerror): Remove definition; move it to
14091         common/mingw-strerror.c.
14092         * posix-hdep.c (safe_strerror): Remove definition; move it to
14093         common/posix-hdep.c.
14094         * utils.h (safe_strerror): Remove prototype; move to
14095         common/common-utils.h.
14096
14097 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
14098
14099         GDB 7.8.2 released.
14100
14101 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
14102
14103         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
14104         ___XA type if the array has already been fixed.
14105
14106 2015-01-14  Yao Qi  <yao@codesourcery.com>
14107
14108         * Makefile.in (ppc-linux.o): New rule.
14109         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
14110         * configure.ac: AC_CHECK_FUNCS(getauxval).
14111         * config.in: Re-generated.
14112         * configure: Re-generated.
14113         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
14114         Declare.
14115         * nat/ppc-linux.c: New file.
14116         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
14117         Call ppc64_64bit_inferior_p.
14118
14119 2015-01-14  Yao Qi  <yao@codesourcery.com>
14120
14121         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
14122         nat/ppc-linux.h.
14123         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
14124         (PPC_FEATURE_HAS_DFP): Likewise.
14125         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
14126         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
14127         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
14128         Include "nat/ppc-linux.h".
14129         * nat/ppc-linux.h: New file.
14130         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
14131
14132 2015-01-14  Pedro Alves  <palves@redhat.com>
14133
14134         PR gdb/17525
14135         * breakpoint.c: Include "interps.h".
14136         (bpstat_do_actions_1): Also check whether the interpreter is
14137         async.
14138
14139 2015-01-14  Pedro Alves  <palves@redhat.com>
14140
14141         PR cli/17828
14142         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
14143         reinstall if the interpreter is sync.
14144
14145 2015-01-13  Doug Evans  <dje@google.com>
14146
14147         * objfiles.c (objfile_filename): New function.
14148         * objfiles.h (objfile_filename): Declare it.
14149         (objfile_name): Add function comment.
14150         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
14151         bfd file name (which may be realpath'd), and the original name.
14152
14153 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
14154
14155         * NEWS: Create a new section for the next release branch.
14156         Rename the section of the current branch, now that it has
14157         been cut.
14158
14159 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
14160
14161         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
14162         * version.in: Bump version to 7.9.50.DATE-cvs.
14163
14164 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
14165
14166         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
14167         Remove trailing new-line in argument of call to warning.
14168
14169 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
14170
14171         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
14172         new-line in argument of call to "warning".
14173
14174 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
14175
14176         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
14177         in static block, then try searching for primitive types.
14178
14179 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
14180
14181         * top.h (gdb_add_history): Declare.
14182         * top.c (command_count): New variable.
14183         (gdb_add_history): New function.
14184         (gdb_safe_append_history): New static function.
14185         (quit_force): Call it.
14186         (command_line_input): Use gdb_add_history instead of
14187         add_history.
14188         * event-top.c (command_line_handler): Likewise.
14189
14190 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
14191
14192         PR gdb/17046
14193         * darwin-nat.c: Replace <machine/setjmp.h> #include by
14194         <setjmp.h> #include.
14195
14196 2015-01-11  Doug Evans  <xdje42@gmail.com>
14197
14198         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
14199
14200 2015-01-11  Doug Evans  <xdje42@gmail.com>
14201
14202         PR gdb/15830
14203         * NEWS: The "maint demangle" command is renamed as "demangle".
14204         * demangle.c: #include cli/cli-utils.h, language.h.
14205         (demangle_command): New function.
14206         (_initialize_demangle): Add new command "demangle".
14207         * maint.c (maintenance_demangle): Stub out.
14208         (_initialize_maint_cmds): Update help text for "maint demangle",
14209         and mark as deprecated.
14210
14211 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
14212
14213         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
14214         inferior_thread is a function.
14215
14216 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
14217
14218         * Makefile.in (.y.c): Don't munge yacc's #line
14219         directives.
14220
14221 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
14222
14223         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
14224         to prompt for input.
14225         * tui/tui-hooks.c (tui_query_hook): Remove.
14226         (tui_install_hooks): Don't set deprecated_query_hook.
14227         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
14228         height calculation.  Always update the command window's cur_line.
14229
14230 2015-01-09  Pedro Alves  <palves@redhat.com>
14231
14232         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
14233         function.
14234         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
14235         declaration.
14236         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
14237         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
14238         stop_reason.
14239         (check_stopped_by_watchpoint): New function.
14240         (save_sigtrap): Reimplement.
14241         (linux_nat_stopped_by_watchpoint): Adjust.
14242         (linux_nat_lp_status_is_event): Delete.
14243         (stop_wait_callback): Only call save_sigtrap after storing the
14244         pending status.
14245         (status_callback): If the thread had been stopped for a breakpoint
14246         that has since been removed, discard the event and resume the LWP.
14247         (count_events_callback, select_event_lwp_callback): Use
14248         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
14249         (cancel_breakpoint): Rename to ...
14250         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
14251         stopped for a software breakpoint or hardware breakpoint.
14252         (select_event_lwp): Only give preference to the stepping LWP in
14253         all-stop mode.  Adjust comments.
14254         (stop_and_resume_callback): Remove references to new_pending_p.
14255         (linux_nat_filter_event): Likewise.  Leave exit events of the
14256         leader thread pending here.  Handle signal short circuiting here.
14257         Only call save_sigtrap after storing the pending waitstatus.
14258         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
14259         new_pending.  Don't handle leaving events the caller is not
14260         interested in pending here, nor handle signal short-circuiting
14261         here.  Also give equal priority to all LWPs that have had events
14262         in non-stop mode.  If reporting a software breakpoint event,
14263         unadjust the LWP's PC.
14264         * linux-nat.h (enum lwp_stop_reason): New.
14265         (struct lwp_info) <stop_pc>: New field.
14266         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
14267         (struct lwp_info) <stop_reason>: New field.
14268         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
14269
14270 2015-01-09  Pedro Alves  <palves@redhat.com>
14271
14272         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
14273         Set the LWP's 'resumed' flag.
14274
14275 2015-01-09  Pedro Alves  <palves@redhat.com>
14276
14277         * linux-nat.c (linux_resume_one_lwp): New function.
14278         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
14279         (linux_nat_resume): Use lwp_status_pending_p and
14280         linux_resume_one_lwp.
14281         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
14282         (linux_handle_extended_wait): Use linux_resume_one_lwp.
14283         (status_callback, running_callback): Use lwp_status_pending_p.
14284         (lwp_status_pending_p): New function.
14285         (stop_and_resume_callback): Use lwp_status_pending_p.
14286         (linux_nat_filter_event): Use linux_resume_one_lwp.
14287         (linux_nat_wait_1): Always use status_callback to look for an LWP
14288         with a pending status.  Use linux_resume_one_lwp.
14289         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
14290         linux_resume_one_lwp.
14291
14292 2015-01-09  Pedro Alves  <palves@redhat.com>
14293
14294         * breakpoint.c (bp_location_inserted_here_p): New function,
14295         factored out from ...
14296         (breakpoint_inserted_here_p): ... here.  Use
14297         ALL_BP_LOCATIONS_AT_ADDR.
14298         (software_breakpoint_inserted_here_p): Use
14299         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
14300
14301 2014-01-09  Pedro Alves  <palves@redhat.com>
14302
14303         Skip enabling event reporting if the kernel supports
14304         PTRACE_EVENT_CLONE.
14305         * linux-thread-db.c: Include "nat/linux-ptrace.h".
14306         (thread_db_use_events): New function.
14307         (try_thread_db_load_1): Check thread_db_use_events before enabling
14308         event reporting.
14309         (update_thread_state): New function.
14310         (attach_thread): Use it.  Check thread_db_use_events before
14311         enabling event reporting.
14312         (thread_db_detach): Check thread_db_use_events before disabling
14313         event reporting.
14314         (find_new_threads_callback): Check thread_db_use_events before
14315         enabling event reporting.  Update the thread's state if not using
14316         libthread_db events.
14317
14318 2015-01-09  Pedro Alves  <palves@redhat.com>
14319
14320         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
14321         about to wait for is > 0.
14322         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
14323         the kernel thread ID is -1.
14324
14325 2015-01-09  Pedro Alves  <palves@redhat.com>
14326
14327         * linux-nat.c (attach_proc_task_lwp_callback): New function.
14328         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
14329         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
14330         ptrace option flags.
14331         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
14332         field.
14333         * nat/linux-procfs.c: Include <dirent.h>.
14334         (linux_proc_get_int): New parameter "warn".  Handle it.
14335         (linux_proc_get_tgid): Adjust.
14336         (linux_proc_get_tracerpid): Rename to ...
14337         (linux_proc_get_tracerpid_nowarn): ... this.
14338         (linux_proc_pid_get_state): New function, factored out from
14339         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
14340         and handle it.
14341         (linux_proc_pid_is_gone): New function.
14342         (linux_proc_pid_is_stopped): Adjust.
14343         (linux_proc_pid_is_zombie_maybe_warn)
14344         (linux_proc_pid_is_zombie_nowarn): New functions.
14345         (linux_proc_pid_is_zombie): Use
14346         linux_proc_pid_is_zombie_maybe_warn.
14347         (linux_proc_attach_tgid_threads): New function.
14348         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
14349         (linux_proc_get_tracerpid): Rename to ...
14350         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
14351         (linux_proc_pid_is_gone): New declaration.
14352         (linux_proc_pid_is_zombie): Update comment.
14353         (linux_proc_pid_is_zombie_nowarn): New declaration.
14354         (linux_proc_attach_lwp_func): New typedef.
14355         (linux_proc_attach_tgid_threads): New declaration.
14356         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
14357         use nowarn functions.
14358         (linux_ptrace_attach_fail_reason_string): Move here from
14359         gdbserver/linux-low.c and rename.
14360         (ptrace_supports_feature): If the current ptrace options are not
14361         known yet, check them now, instead of asserting.
14362         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
14363         Declare.
14364
14365 2015-01-09  Pedro Alves  <palves@redhat.com>
14366
14367         * linux-thread-db.c (thread_db_find_new_threads_silently)
14368         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
14369         (find_new_threads_once): Print debug output on gdb_stdlog.
14370
14371 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
14372             Pedro Alves  <palves@redhat.com>
14373
14374         * compile/compile.c: Include "gdb_wait.h".
14375         (do_rmdir): Check return value, and free 'zap'.
14376
14377 2015-01-08  Pedro Alves  <palves@redhat.com>
14378             Yao Qi  <yao@codesourcery.com>
14379
14380         * dwarf2loc.c (indirect_pieced_value): Don't call
14381         gdb_sign_extend.  Call extract_signed_integer instead.
14382         * utils.c (gdb_sign_extend): Remove.
14383         * utils.h (gdb_sign_extend): Remove declaration.
14384
14385 2015-01-07  Pierre Muller  <muller@sourceware.org>
14386
14387         PR symtab/17811
14388         * stabsread.c (define_symbol): Set language for C++ special symbols.
14389
14390 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
14391
14392         * inflow.c (initial_gdb_ttystate): Tweak comment.
14393
14394 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
14395
14396         * inflow.c (set_initial_gdb_ttystate): Add empty line after
14397         comment documenting function.
14398
14399 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
14400
14401         * terminal.h (set_initial_gdb_ttystate): Declare.
14402         * inflow.c (initial_gdb_ttystate): New static variable.
14403         (set_initial_gdb_ttystate): New setter.
14404         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
14405         instead of our current terminal state.
14406         * top.c (gdb_init): Call set_initial_gdb_ttystate.
14407
14408 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
14409
14410         * guile/scm-type.c (tyscm_array_1): Add comment.
14411         * python/py-type.c (typy_array_1): Add comment.
14412
14413 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
14414
14415         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
14416         error if N2 is equal to N1 - 1.
14417
14418 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
14419
14420         * python/py-type.c (typy_array_1): Do not raise negative-length
14421         exception if N2 is equal to N1 - 1.
14422
14423 2015-01-03  Doug Evans  <xdje42@gmail.com>
14424
14425         * c-exp.y: Whitespace cleanup.
14426         (classify_inner_name): Remove extra ;.
14427
14428 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
14429
14430         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
14431         offset signed.
14432
14433 2015-01-02  Doug Evans  <dje@google.com>
14434
14435         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
14436
14437 2015-01-02  Doug Evans  <dje@google.com>
14438
14439         * symtab.h (struct symbol): Fix typo in comment.
14440
14441 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
14442
14443         Update year range in copyright notice of all files.
14444
14445 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
14446
14447         * top.c (print_gdb_version): Update copyright year to 2015.
14448
14449 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
14450
14451         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
14452
14453 For older changes see ChangeLog-2014.
14454 \f
14455 Local Variables:
14456 mode: change-log
14457 left-margin: 8
14458 fill-column: 74
14459 version-control: never
14460 coding: utf-8
14461 End: