Automatic date update in version.in
[binutils-gdb/blckswan.git] / gdb / ChangeLog-2015
blob662e9283e2aca468e31ade2344fb1f3f2d50a59c
1 2015-12-22  Joel Brobecker  <brobecker@adacore.com>
3         * windows-nat.c (_initialize_loadable): Fix computing of
4         GetModuleFileNameEx.
6 2015-12-21  Joel Brobecker  <brobecker@adacore.com>
8         * gdbtypes.c (create_array_type_with_stride): Fix indentation.
10 2015-12-19  Joel Brobecker  <brobecker@adacore.com>
12         * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Remove trailing
13         newline at end of error message.
15 2015-12-18  Sandra Loosemore  <sandra@codesourcery.com>
17         * event-top.c (command_handler): Don't require stdin to be a tty
18         for call to reinitialize_more_filter.
19         * top.c (command_loop): Likewise.
21 2015-12-18  Sandra Loosemore  <sandra@codesourcery.com>
23         * utils.c (prompt_for_continue): Call throw_quit directly on 'q'.
25 2015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
27         * arm-tdep.c (arm_get_next_pcs_read_memory_unsigned_integer): Cast
28         to enum bfd_endian)
30 2015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
32         * Makefile.in (ALL_TARGET_OBS): Append arm-get-next-pcs.o,
33         arm-linux.o.
34         (ALLDEPFILES): Append arm-get-next-pcs.c, arm-linux.c
35         (arm-linux.o): New rule.
36         (arm-get-next-pcs.o): New rule.
37         * arch/arm-get-next-pcs.c: New file.
38         * arch/arm-get-next-pcs.h: New file.
39         * arch/arm-linux.h: New file.
40         * arch/arm-linux.c: New file.
41         * arm.c: Include common-regcache.c.
42         (thumb_advance_itstate): Moved from arm-tdep.c.
43         (arm_instruction_changes_pc): Likewise.
44         (thumb_instruction_changes_pc): Likewise.
45         (thumb2_instruction_changes_pc): Likewise.
46         (shifted_reg_val): Likewise.
47         * arm.h (submask): Move macro from arm-tdep.h
48         (bit): Likewise.
49         (bits): Likewise.
50         (sbits): Likewise.
51         (BranchDest): Likewise.
52         (thumb_advance_itstate): Moved declaration from arm-tdep.h
53         (arm_instruction_changes_pc): Likewise.
54         (thumb_instruction_changes_pc): Likewise.
55         (thumb2_instruction_changes_pc): Likewise.
56         (shifted_reg_val): Likewise.
57         * arm-linux-tdep.c: Include arch/arm.h, arch/arm-get-next-pcs.h
58         arch/arm-linux.h.
59         (arm_linux_get_next_pcs_ops): New struct.
60         (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT,
61         ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT,
62         ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): Move stack
63         layout defines to arch/arm-linux.h.
64         (arm_linux_sigreturn_next_pc_offset): Move to arch/arm-linux.c.
65         (arm_linux_software_single_step): Adjust for arm_get_next_pcs
66         implementation.
67         * arm-tdep.c: Include arch/arm-get-next-pcs.h.
68         (arm_get_next_pcs_ops): New struct.
69         (submask): Move macro to arm.h.
70         (bit): Likewise.
71         (bits): Likewise.
72         (sbits): Likewise.
73         (BranchDest): Likewise.
74         (thumb_instruction_changes_pc): Move to arm.c
75         (thumb2_instruction_changes_pc): Likewise.
76         (arm_instruction_changes_pc): Likewise.
77         (shifted_reg_val): Likewise.
78         (thumb_advance_itstate): Likewise.
79         (thumb_get_next_pc_raw): Move to arm-get-next-pcs.c.
80         (arm_get_next_pc_raw): Likewise.
81         (arm_get_next_pc): Likewise.
82         (thumb_deal_with_atomic_sequence_raw): Likewise.
83         (arm_deal_with_atomic_sequence_raw): Likewise.
84         (arm_deal_with_atomic_sequence): Likewise.
85         (arm_get_next_pcs_read_memory_unsigned_integer): New function.
86         (arm_get_next_pcs_addr_bits_remove): Likewise.
87         (arm_get_next_pcs_syscall_next_pc): Likewise.
88         (arm_get_next_pcs_is_thumb): Likewise.
89         (arm_software_single_step): Adjust for arm_get_next_pcs
90         implementation.
91         * arm-tdep.h: (arm_get_next_pc): Remove declaration.
92         (arm_get_next_pcs_read_memory_unsigned_integer):
93         New declaration.
94         (arm_get_next_pcs_addr_bits_remove): Likewise.
95         (arm_get_next_pcs_syscall_next_pc): Likewise.
96         (arm_get_next_pcs_is_thumb): Likewise.
97         (arm_deal_with_atomic_sequence: Remove declaration.
98         * common/gdb_vecs.h: Add CORE_ADDR vector definition.
99         * configure.tgt (aarch64*-*-linux): Add arm-get-next-pcs.o,
100         arm-linux.o.
101         (arm*-wince-pe): Add arm-get-next-pcs.o.
102         (arm*-*-linux*): Add arm-get-next-pcs.o, arm-linux.o,
103         arm-get-next-pcs.o
104         (arm*-*-netbsd*,arm*-*-knetbsd*-gnu): Add arm-get-next-pcs.o.
105         (arm*-*-openbsd*): Likewise.
106         (arm*-*-symbianelf*): Likewise.
107         (arm*-*-*): Likewise.
108         * symtab.h: Move CORE_ADDR vector definition to gdb_vecs.h.
110 2015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
112         * Makefile.in (SFILES): Append common/common-regcache.c.
113         (COMMON_OBS): Append common/common-regcache.o.
114         (common-regcache.o): New rule.
115         * common/common-regcache.h (register_status) New enum.
116         (regcache_raw_read_unsigned): New declaration.
117         * common/common-regcache.c: New file.
118         * regcache.h (enum register_status): Move to common-regcache.h.
119         (regcache_raw_read_unsigned): Likewise.
120         (regcache_raw_get_unsigned): Likewise.
122 2015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
124         * arm-linux-tdep.c (arm_linux_sigreturn_next_pc_offset): New function.
125         (arm_linux_sigreturn_next_pc): Likewise.
126         (arm_linux_syscall_next_pc): Use regcache instead of frame.
127         (arm_linux_software_single_step): Likewise.
128         * arm-tdep.c (arm_is_thumb): New function.
129         (shifted_reg_va): Use regcache instead of frame.
130         (thumb_get_next_pc_raw): Likewise.
131         (arm_get_next_pc_raw): Likewise.
132         (arm_get_next_pc): Likewise.
133         (thumb_deal_with_atomic_sequence_raw): Likewise.
134         (arm_deal_with_atomic_sequence_raw): Likewise.
135         (arm_deal_with_atomic_sequence): Likewise.
136         (arm_software_single_step): Likewise.
137         * arm-tdep.h (struct gdbarch_tdep): Use regcache for syscall_next_pc.
138         (arm_get_next_pc): Use regcache.
139         (arm_deal_with_atomic_sequence): Likewise.
140         (arm_is_thumb): New declaration.
141         * regcache.c (regcache_raw_get_unsigned): New function.
142         * regcache.h (regcache_raw_get_unsigned): New function declaration.
144 2015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
146         * arch/arm.c (bitcount): Move from arm-tdep.c.
147         (condition_true): Likewise.
148         * arch/arm.h (Instruction Definitions): Move form arm-tdep.h.
149         (condition_true): Move defenition from arm-tdep.h.
150         (bitcount): Likewise.
151         * arm-tdep.c (condition_true): Move to arch/arm.c.
152         (bitcount): Likewise.
153         * arm-tdep.h (Instruction Definitions): Move to arch/arm.h.
154         * arm-wince-tdep.c: Include arch/arm.h.
155         * armnbsd-tdep.c: Likewise.
157 2015-12-17  Pedro Alves  <palves@redhat.com>
159         PR threads/19354
160         * linux-nat.c (linux_nat_update_thread_list): Update process cores
161         each lwp was last seen running on here.
162         * linux-thread-db.c (update_thread_core): Delete.
163         (thread_db_update_thread_list_td_ta_thr_iter): Rename to ...
164         (thread_db_update_thread_list): ... this.  Skip inferiors with
165         execution.  Also call the target beneath.
166         (thread_db_update_thread_list): Delete.
168 2015-12-17  Pedro Alves  <palves@redhat.com>
170         * configure.ac: Remove tkill checks.
171         * configure, config.in: Regenerate.
172         * linux-nat.c: Remove HAVE_TKILL_SYSCALL check.  Update top level
173         comments.
174         (linux_nat_post_attach_wait): Remove 'cloned' parameter.  Use
175         __WALL.
176         (attach_proc_task_lwp_callback): Don't set the cloned flag.
177         (linux_nat_attach): Adjust.
178         (kill_lwp): Remove HAVE_TKILL_SYSCALL check.  No longer fall back
179         to 'kill'.
180         (linux_handle_extended_wait): Use __WALL.  Don't set the cloned
181         flag.
182         (wait_lwp): Use __WALL.  Update comments.
183         (running_callback, stop_and_resume_callback): Delete.
184         (linux_nat_filter_event): Don't stop and resume all lwps. Don't
185         check if the event LWP has previously exited.
186         (check_zombie_leaders): Update comments.
187         (linux_nat_wait_1): Use __WALL.
188         (kill_wait_callback): Don't handle clone processes separately.
189         Use __WALL instead.
190         (linux_thread_alive): Delete.
191         (linux_nat_thread_alive): Return true as long as the LWP is in the
192         LWP list.
193         (linux_nat_update_thread_list): Assume the kernel supports
194         PTRACE_EVENT_CLONE.
195         (get_signo): Delete.
196         (lin_thread_get_thread_signals): Remove LinuxThreads references.
197         No longer check __pthread_sig_restart / __pthread_sig_cancel in
198         the inferior.
199         * linux-nat.h (struct lwp_info) <cloned>: Delete field.
200         * linux-thread-db.c: Update comments.
201         (_initialize_thread_db): Remove LinuxThreads references.
202         * nat/linux-waitpid.c (my_waitpid): No longer emulate __WALL.
203         Pass down flags unmodified.
204         * linux-waitpid.h (my_waitpid): Update documentation.
206 2015-12-17  Yao Qi  <yao.qi@linaro.org>
208         * aarch64-tdep.c (struct stack_item_t): Update comments.
209         (pass_on_stack): Set item.data to NULL.
210         (aarch64_push_dummy_call): Call write_memory if si->data
211         isn't NULL.
213 2015-12-16  Pedro Alves  <palves@redhat.com>
215         * configure.ac (compiler warning flags): When testing a
216         -Wno-foo option, check whether -Wfoo works instead.
217         * configure: Regenerate.
219 2015-12-16  Pedro Alves  <palves@redhat.com>
221         * common/vec.h (vec_offset): New macro.
222         (DEF_VEC_ALLOC_FUNC_I, DEF_VEC_ALLOC_FUNC_O): Use it instead of
223         offsetof.
225 2015-12-11  Don Breazeal  <donb@codesourcery.com>
227         * NEWS: Announce fork and exec event support for target remote.
229 2015-12-11  Don Breazeal  <donb@codesourcery.com>
231         * inferior.c (number_of_live_inferiors): New function.
232         (have_live_inferiors): Use number_of_live_inferiors in place
233         of duplicate code.
234         * inferior.h (number_of_live_inferiors): Declare new function.
235         * remote.c (set_general_process): Remove restriction on target
236         remote mode.
237         (remote_query_supported): Likewise.
238         (remote_detach_1): Exit in target remote mode only when there
239         is just one live inferior left.
240         (remote_disconnect): Unpush the target directly instead of 
241         calling remote_mourn.
242         (remote_kill): Rewrite function to handle both target remote
243         and extended-remote.  Call remote_kill_k.
244         (remote_kill_k): New function.
245         (extended_remote_kill): Delete function.
246         (remote_mourn, extended_remote_mourn): Combine functions into
247         one, remote_mourn, and enable extended functionality for target
248         remote.
249         (remote_pid_to_str): Enable "process" style ptid string for
250         target remote.
251         (remote_supports_multi_process): Remove restriction on target
252         remote mode.
254 2015-12-14  Andrew Burgess  <andrew.burgess@embecosm.com>
256         * i386-tdep.c (i386_mpx_info_bounds): Use TYPE_LENGTH.
257         (i386_mpx_set_bounds): Likewise.
258         * solib-darwin.c (darwin_load_image_infos): Likewise.
259         (darwin_solib_read_all_image_info_addr): Likewise.
261 2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
263         * cli/cli-cmds.c (_initialize_cli_cmds): Extend help text for
264         'list' command.
266 2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
268         * cli/cli-cmds.c (list_command): Add an error when trying to use
269         '-' to scan read off the start of the source file.
271 2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
273         * cli/cli-cmds.c (list_command): Check that the argument string is
274         a single character, either '+' or '-'.
276 2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
278         * cli/cli-cmds.c (list_command): Move all handling of +/-
279         arguments into a single if block.
281 2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
283         * cli/cli-cmds.c (list_command): Use NULL instead of 0 when
284         checking pointers.
286 2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
288         * source.c (lines_to_list): Make static.
290 2015-12-10  Antoine Tremblay  <antoine.tremblay@ericsson.com>
292         * linux-thread-db.c (find_new_threads_callback): Use record_thread.
294 2015-12-10  Antoine Tremblay  <antoine.tremblay@ericsson.com>
296         * breakpoint.c (remove_thread_event_breakpoints): Remove.
297         * breakpoint.h (remove_thread_event_breakpoints): Remove
298         declaration.
299         * linux-nat.c (in_pid_list_p): Remove.
300         (lin_lwp_attach_lwp): Remove.
301         * linux-nat.h (lin_lwp_attach_lwp): Remove declaration.
302         * linux-thread-db.c (thread_db_use_events): Remove.
303         (struct thread_db_info) <td_create_bp_addr>: Remove.
304         <td_death_bp_addr>: Likewise.
305         <td_ta_event_addr_p>: Likewise.
306         <td_ta_set_event_p>: Likewise.
307         <td_ta_clear_event_p>: Likewise.
308         <td_ta_event_getmsg_p>: Likewise.
309         <td_thr_event_enable_p>: Likewise.
310         (attach_thread): Likewise.
311         (detach_thread): Likewise.
312         (have_threads_callback): Likewise.
313         (have_threads): Likewise.
314         (enable_thread_event): Likewise.
315         (enable_thread_event_reporting): Likewise.
316         (try_thread_db_load_1): Remove td_ta_event_addr, td_ta_set_event,
317         td_ta_clear_event, td_ta_event_getmsg, td_thr_event_enable
318         initializations.
319         (try_thread_db_load_1): Remove enable_thread_event_reporting call.
320         (disable_thread_event_reporting): Remove.
321         (record_thread): Adapt to thread_db_use_event removal.
322         (detach_thread): Remove.
323         (thread_db_detach): Adapt to thread_db_use_event removal.
324         (check_event): Remove.
325         (thread_db_wait): Adapt to thread events support removal.
326         (thread_db_mourn_inferior): Likewise.
327         (find_new_threads_callback): Likewise.
328         (find_new_threads_once): Likewise.
329         (thread_db_update_thread_list): Likewise.
331 2015-12-10  Andrew Burgess  <andrew.burgess@embecosm.com>
333         * dwarf2read.c (dwarf2_ranges_read): Unify and fix base address
334         reading code.
336 2015-12-09  Kevin Buettner  <kevinb@redhat.com>
338         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Perform a pointer
339         to address conversion for DWARF_VALUE_MEMORY.
341 2015-12-09  Luis Machado  <lgustavo@codesourcery.com>
343         * mi/mi-cmd-var.c (mi_parse_format): Handle new "zero-hexadecimal"
344         format.
345         * varobj.c (varobj_format_string): Add "zero-hexadecimal" entry.
346         (format_code): Add 'z' entry.
347         (varobj_set_display_format): Handle FORMAT_ZHEXADECIMAL.
348         * varobj.h (varobj_display_formats) <FORMAT_ZHEXADECIMAL>: New enum
349         field.
350         * NEWS: Add new note to MI changes citing the new zero-hexadecimal
351         format for -var-set-format.
353 2015-12-09  Ruslan Kabatsayev  <b7.10110111@gmail.com>  (tiny patch)
355         PR gdb/18702
356         * configure.host: Fix detection of x86_64 host when setting
357         floatformats.
359 2015-12-08  Pierre-Marie de Rodat  <derodat@adacore.com>
361         * NEWS: Announce this enhancement and the corresponding new
362         option.
364 2015-12-07  Pierre-Marie de Rodat  <derodat@adacore.com>
366         * ada-lang.c (print_signatures): New.
367         (ada_print_symbol_signature): New.
368         (user_select_syms): Add signatures to the output of candidate
369         symbols using ada_print_symbol_signature.
370         (_initialize_ada_language): Add a "set/show ada
371         print-signatures" boolean option.
373 2015-12-07  Andreas Arnez <arnez@linux.vnet.ibm.com>
375         * MAINTAINERS (Write After Approval): Add Andreas Arnez.
377 2015-12-06  Mike Stump <mikestump@comcast.net>
378             Joel Brobecker  <brobecker@adacore.com>
380         * Makefile.in (TAGS): Replace i386-nat.h by x86-nat.h.
381         * x86-nat.c: Replace remaining references to i386-nat
382         by reference to x86-nat instead.
384 2015-12-05  Joel Brobecker  <brobecker@adacore.com>
386         GDB 7.10.1 released.
388 2015-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
390         * remote.c (remote_parse_stop_reply): Avoid GCC 4.1 "operation
391         may be undefined" warning.
393 2015-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
395         * remote.c (remote_newthread_step): Initialize item.name.
396         (remote_get_threads_with_qthreadinfo): Likewise.
398 2015-11-30  Pedro Alves  <palves@redhat.com>
400         PR 14618
401         * NEWS (New remote packets): Mention the N stop reply.
402         * remote.c (remote_protocol_features): Add "no-resumed" entry.
403         (remote_query_supported): Report no-resumed+ support.
404         (remote_parse_stop_reply): Handle 'N'.
405         (process_stop_reply): Handle TARGET_WAITKIND_NO_RESUMED.
406         (remote_wait_as): Handle 'N' / TARGET_WAITKIND_NO_RESUMED.
407         (_initialize_remote): Register "set/show remote
408         no-resumed-stop-reply" commands.
410 2015-11-30  Pedro Alves  <palves@redhat.com>
412         PR 14618
413         * infrun.c (handle_no_resumed): New function.
414         (handle_inferior_event_1) <TARGET_WAITKIND_NO_RESUMED>: Defer to
415         handle_no_resumed.
417 2015-11-30  Pedro Alves  <palves@redhat.com>
419         * NEWS (New commands): Mention "set/show remote thread-events"
420         commands.
421         (New remote packets): Mention thread created/exited stop reasons
422         and QThreadEvents packet.
423         * infrun.c (disable_thread_events): New function.
424         (stop_all_threads): Disable/enable thread create/exit events.
425         Handle TARGET_WAITKIND_THREAD_EXITED.
426         (handle_inferior_event_1): Handle TARGET_WAITKIND_THREAD_CREATED
427         and TARGET_WAITKIND_THREAD_EXITED.
428         * remote.c (remove_child_of_pending_fork): Also remove threads of
429         threads that have TARGET_WAITKIND_THREAD_EXITED events.
430         (remote_parse_stop_reply): Handle "create" magic register.  Handle
431         'w' stop reply.
432         (initialize_remote): Install remote_thread_events as
433         to_thread_events target hook.
434         (remote_thread_events): New function.
435         * target-delegates.c: Regenerate.
436         * target.c (target_thread_events): New function.
437         * target.h (struct target_ops) <to_thread_events>: New field.
438         (target_thread_events): Declare.
439         * target/waitstatus.c (target_waitstatus_to_string): Handle
440         TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
441         * target/waitstatus.h (enum target_waitkind)
442         <TARGET_WAITKIND_THREAD_CREATED, TARGET_WAITKIND_THREAD_EXITED):
443         New values.
445 2015-11-30  Pedro Alves  <palves@redhat.com>
447         * NEWS (New remote packets): Mention vCtrlC.
448         * remote.c (PACKET_vCtrlC): New enum value.
449         (async_remote_interrupt): Call target_interrupt instead of
450         target_stop.
451         (remote_interrupt_as): Remove 'ptid' parameter.
452         (remote_interrupt_ns): New function.
453         (remote_stop): Adjust.
454         (remote_interrupt): If the target is in non-stop mode, try
455         interrupting with vCtrlC.
456         (initialize_remote): Install set remote ctrl-c packet.
458 2015-11-30  Pedro Alves  <palves@redhat.com>
460         * remote.c (struct remote_state) <remote_watch_data_address,
461         stop_reason>: Delete fields.
462         (struct private_thread_info) <stop_reason, watch_data_address>:
463         New fields.
464         (resume_clear_thread_private_info): New function.
465         (append_pending_thread_resumptions): Call it.
466         (remote_resume): Clear all threads' private info.
467         (process_stop_reply): Adjust.
468         (remote_wait_as): Don't reference remote_state's stop_reason
469         field.
470         (remote_stopped_by_sw_breakpoint)
471         (remote_stopped_by_hw_breakpoint, remote_stopped_by_watchpoint)
472         (remote_stopped_data_address): Adjust to refer get data from the
473         current thread.
475 2015-11-30  Pedro Alves  <palves@redhat.com>
477         * infcmd.c (attach_post_wait): If the target is always in non-stop
478         mode, and the UI is in all-stop mode, stop all threads and pick
479         the one with lowest number as current.
481 2015-11-30  Pedro Alves  <palves@redhat.com>
483         * gdbthread.h (switch_to_thread_no_regs): Declare.
484         * infcmd.c (setup_inferior): New function, factored out from ...
485         (attach_command_post_wait): ... this.  Rename to ...
486         (attach_post_wait): ... this.  Replace parameter async_exec with
487         attach_post_wait_mode parameter.  Adjust.
488         (enum attach_post_wait_mode): New enum.
489         (struct attach_command_continuation_args): Replace 'async_exec'
490         field with 'mode' field.
491         (attach_command_continuation): Adjust.
492         (attach_command): Add comment.  Mark the inferior as needing
493         setup.  Adjust to use enum attach_post_wait_mode.
494         (notice_new_inferior): Use switch_to_thread_no_regs.  Adjust to
495         use enum attach_post_wait_mode.
496         * inferior.h (setup_inferior): Declare.
497         (struct inferior) <needs_setup>: New field.
498         * infrun.c (set_last_target_status): Make extern.
499         (stop_all_threads): Make extern.  Setup inferior, if necessary.
500         * infrun.h (set_last_target_status, stop_all_threads): Declare.
501         * remote-notif.c (remote_async_get_pending_events_handler)
502         (handle_notification): Replace non_stop checks with
503         target_is_non_stop_p() checks.
504         * remote.c (remote_notice_new_inferior): Remove non_stop check.
505         (remote_update_thread_list): Replace non_stop check with
506         target_is_non_stop_p() check.
507         (print_one_stopped_thread): New function.
508         (process_initial_stop_replies): New 'from_tty' parameter.
509         "Notice" all new live inferiors after storing initial stops as
510         pending status in each corresponding thread.  If all-stop, stop
511         all threads, try picking a signalled thread as current, and print
512         the status of that one thread.  Record the last target status.
513         (remote_start_remote): Replace non_stop checks with
514         target_is_non_stop_p() checks.  Don't query for the remote current
515         thread of use qOffsets here.  Pass from_tty to
516         process_initial_stop_replies.
517         (extended_remote_attach): Replace non_stop checks with
518         target_is_non_stop_p() checks.
519         (extended_remote_post_attach): Send qOffsets here.
520         (remote_vcont_resume, remote_resume, remote_stop)
521         (remote_interrupt, remote_parse_stop_reply, remote_wait): Replace
522         non_stop checks with target_is_non_stop_p() checks.
523         (remote_async): If target is non-stop, mark/clear the pending
524         events token.
525         * thread.c (switch_to_thread_no_regs): New function.
527 2015-11-30  Pedro Alves  <palves@redhat.com>
529         * gdb.mi/mi-nonstop.exp: Append "set non-stop on" to GDBFLAGS
530         instead of issuing "-gdb-set non-stop 1" after starting gdb.
531         Use mi_is_target_remote instead of checking "is_remote target".
532         * lib/gdb.exp (gdb_is_target_remote): Rename to ...
533         (gdb_is_target_remote_prompt): ... this, and add 'prompt_regexp'
534         parameter.
535         (gdb_is_target_remote): Reimplement.
536         * lib/mi-support.exp (mi_is_target_remote): New procedure.
538 2014-11-28  Pedro Alves  <palves@redhat.com>
540         * cp-name-parser.y (conversion_op): Use
541         DEMANGLE_COMPONENT_CONVERSION instead of DEMANGLE_COMPONENT_CAST.
543 2015-11-27  Simon Marchi  <simon.marchi@ericsson.com>
545         * remote.c (start_thread): Add cast.
547 2015-11-27  Yao Qi  <yao.qi@linaro.org>
549         * nat/aarch64-linux-hw-point.c (aarch64_dr_state_remove_one_point):
550         Don't assert on alignment.
551         (aarch64_handle_breakpoint): Only check alignment when IS_INSERT
552         is true.
554 2015-11-27  Yao Qi  <yao.qi@linaro.org>
556         * aarch64-tdep.c (is_hfa): Rename to ...
557         (is_hfa_or_hva): ... this.  Handle vector type.  All callers
558         updated.
559         (aarch64_extract_return_value): Update debugging message.
560         (aarch64_store_return_value): Likewise.
561         (aarch64_return_in_memory): Update comments.
563 2015-11-27  Yao Qi  <yao.qi@linaro.org>
565         * aarch64-tdep.c (aarch64_type_align): For vector type, return
566         its length, but with the maximum of 16 bytes.
567         (is_hfa): Return zero for vector type.
568         (aarch64_push_dummy_call): Handle short vectors.
569         (aarch64_extract_return_value): Likewise.
570         (aarch64_store_return_value): Likewise.
572 2015-11-26  Daniel Colascione  <dancol@dancol.org>
573 2015-11-26  Simon Marchi  <simon.marchi@ericsson.com>
575         * linux-nat.c (linux_nat_thread_name): Replace implementation by call
576         to linux_proc_tid_get_name.
577         * nat/linux-procfs.c (linux_proc_tid_get_name): New function,
578         implementation inspired by linux_nat_thread_name.
579         * nat/linux-procfs.h (linux_proc_tid_get_name): New declaration.
580         * remote.c (struct private_thread_info) <name>: New field.
581         (free_private_thread_info): Free name field.
582         (remote_thread_name): New function.
583         (thread_item_t) <name>: New field.
584         (clear_threads_listing_context): Free name field.
585         (start_thread): Get name xml attribute.
586         (thread_attributes): Add "name" attribute.
587         (remote_update_thread_list): Copy name field.
588         (init_remote_ops): Assign remote_thread_name callback.
589         * target.h (target_thread_name): Update comment.
590         * NEWS: Mention remote thread name support.
592 2015-11-26  Simon Marchi  <simon.marchi@ericsson.com>
594         * linux-nat.c (linux_nat_thread_name): Constify return value.
595         * target.h (struct target_ops) <to_thread_name>: Likewise.
596         (target_thread_name): Likewise.
597         * target.c (target_thread_name): Likewise.
598         * target-delegates.c (debug_thread_name): Regenerate.
599         * python/py-infthread.c (thpy_get_name): Constify local variables.
600         * thread.c (print_thread_info): Likewise.
601         (thread_find_command): Likewise.
603 2015-11-26  Markus Metzger  <markus.t.metzger@intel.com>
605         PR 19297
606         * btrace.c (btrace_enable): Check whether HAVE_LIBIPT is defined.
608 2015-11-24  Pedro Alves  <palves@redhat.com>
610         * NEWS: Mention that a few "info" commands now list the
611         corresponding items in ascending ID order.
613 2015-11-24  Pedro Alves  <palves@redhat.com>
615         PR 17539
616         * printcmd.c (display_command): Append new display at the end of
617         the list.
619 2015-11-24  Pedro Alves  <palves@redhat.com>
621         PR 17539
622         * printcmd.c (display_command): Append new display at the end of
623         the list.
625 2015-11-24  Pedro Alves  <palves@redhat.com>
627         PR 17539
628         * inferior.c (add_inferior_silent): Append the new inferior to the
629         end of the list.
630         * progspace.c (add_program_space): Append the new pspace to the
631         end of the list.
632         * thread.c (new_thread): Append the new thread to the end of the
633         list.
635 2015-11-24  Pedro Alves  <palves@redhat.com>
637         * linux-tdep.c (find_stop_signal): Delete.
638         (struct linux_corefile_thread_data) <pid>: Remove field.
639         (linux_corefile_thread_callback): Rename to ...
640         (linux_corefile_thread): ... this.  Now takes a struct
641         linux_corefile_thread_data pointer rather than a void pointer.
642         Remove thread state and thread pid checks.
643         (linux_make_corefile_notes): Prefer dumping the signalled thread
644         first.  Use ALL_NON_EXITED_THREADS instead of
645         iterate_over_threads.
647 2015-11-23  Par Olsson  <par.olsson@windriver.com>
649         * breakpoint.c (tracepoint_print_recreate): Fix logic error
650         if -> else if.
652 2015-11-23  Kevin Buettner  <kevinb@redhat.com>
654         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Scan backwards
655         over all zero-sized symbols.
657 2015-11-23  Joel Brobecker  <brobecker@adacore.com>
659         * stack.c (print_frame_local_vars): Temporarily set the selected
660         frame to FRAME while printing the frame's local variables.
662 2015-11-23  Joel Brobecker  <brobecker@adacore.com>
664         * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue):
665         Increment PC in while loop skipping "pop reg" instructions.
667 2015-11-23  Joel Brobecker  <brobecker@adacore.com>
669         * arm-tdep.c (arm_exidx_unwind_sniffer): Do not check for a frame
670         stuck on a system call if the given frame is the innermost frame.
672 2015-11-23  Joel Brobecker  <brobecker@adacore.com>
674         * dwarf2read.c (read_structure_type): Set the type's length
675         to zero if it has a DW_AT_byte_size attribute which is not
676         a constant.
678 2015-11-23  Tristan Gingold  <gingold@adacore.com>
680         * darwin-nat.c (darwin_ptrace): Avoid a cast.
681         (darwin_resume_thread): Ditto.  And always set or reset
682         single step.
684 2015-11-23  Tristan Gingold  <gingold@adacore.com>
686         * darwin-nat.c (darwin_read_dyld_info): Write address in
687         big-endian order.
688         * solib-darwin.c (darwin_validate_exec_header): New function,
689         extracted from...
690         (darwin_read_exec_load_addr_from_dyld): ...here.
691         (darwin_read_exec_load_addr_at_init): New function.
692         (darwin_solib_read_all_image_info_addr): Adjust after
693         darwin_read_dyld_info change.
694         (darwin_solib_create_inferior_hook): Support PIE.
696 2015-11-23  Tristan Gingold  <gingold@adacore.com>
698         * darwin-nat.c (darwin_ptrace): Add a cast to fix warning.
699         (darwin_resume, cancel_breakpoint, _initialize_darwin_inferior):
700         Likewise.
701         (darwin_read_write_inferior): Rewrite using mach_vm_read_overwrite.
703 2015-11-19  Don Breazeal  <donb@codesourcery.com>
705         * target.c (read_memory_robust): Call read_whatever_is_readable
706         with arguments in the correct order.
708 2015-11-19  Pedro Alves  <palves@redhat.com>
710         * remote.c (remote_query_supported): Send the "xmlRegisters="
711         feature last.
713 2015-11-19  Simon Marchi  <simon.marchi@ericsson.com>
715         * nat/aarch64-linux-hw-point.c (aarch64_linux_set_debug_regs): Change
716         form of iov_len computation.
718 2015-11-19  Pedro Alves  <palves@redhat.com>
720         * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
721         mode.
722         * configure: Regenerate.
724 2015-11-19  Pedro Alves  <palves@redhat.com>
726         * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Remove -fpermissive.
727         * configure: Regenerate.
729 2015-11-19  Pedro Alves  <palves@redhat.com>
731         * breakpoint.c (software_watchpoint_add_no_memory_location)
732         (is_no_memory_software_watchpoint): New functions.
733         (update_watchpoint): Use
734         software_watchpoint_add_memoryless_location.
735         (breakpoint_address_bits): Use is_no_memory_software_watchpoint.
737 2015-11-19  Simon Marchi  <simon.marchi@ericsson.com>
738             Pedro Alves  <palves@redhat.com>
740         * s390-linux-tdep.c (s390_canonicalize_syscall): Add casts and
741         intermediate 'int' variable.
743 2015-11-19  Pedro Alves  <palves@redhat.com>
745         * linux-thread-db.c (try_thread_db_load_1): Add cast.
747 2015-11-19  Pedro Alves  <palves@redhat.com>
749         * remote.c (remote_unpush_target): Use
750         pop_all_targets_at_and_above instead of pop_all_targets_above.
751         * target.c (unpush_target_and_assert): New function, factored out
752         from ...
753         (pop_all_targets_above): ... here.
754         (pop_all_targets_at_and_above): New function.
755         * target.h (pop_all_targets_at_and_above): Declare.
757 2015-11-18  Simon Marchi  <simon.marchi@ericsson.com>
759         * valops.c (value_string): Constify 'ptr' parameter.
760         * value.h (value_string): Constify 'ptr' parameter.
762 2015-11-18  Simon Marchi  <simon.marchi@ericsson.com>
763             Pedro Alves  <palves@redhat.com>
765         * break-catch-sig.c (signal_catchpoint_print_one): Add cast.
766         * c-exp.y (parse_string_or_char, yylex): Add casts.
767         * c-lang.c (evaluate_subexp_c): Add casts.
768         * d-exp.y (parse_string_or_char, yylex): Add casts.
769         * go-exp.y (parse_string_or_char, build_packaged_name): Add casts.
770         * p-valprint.c (pascal_object_print_value_fields): Add casts.
771         * valprint.c (generic_emit_char, generic_printstr): Add casts.
773 2015-11-18  Simon Marchi  <simon.marchi@ericsson.com>
775         * valops.c (value_cstring): Constify 'ptr' parameter.
776         * value.h (value_cstring): Constify 'ptr' parameter.
778 2015-11-18  Yao Qi  <yao.qi@linaro.org>
780         * aarch64-tdep.c (pass_in_v): Add argument len.  Add local array
781         reg.  Callers updated.
783 2015-11-17  Yao Qi  <yao.qi@linaro.org>
785         * infrun.c (resume): Check control.trap_expected only
786         when deciding the set of threads to resume.
788 2015-11-17  Pedro Alves  <palves@redhat.com>
790         * cp-namespace.c (cp_lookup_bare_symbol)
791         (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
792         (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
793         (cp_lookup_nested_symbol): Use null_block_symbol.
794         * d-namespace.c (d_lookup_symbol, d_lookup_nested_symbol)
795         (d_lookup_symbol_imports, d_lookup_symbol_module): Use
796         null_block_symbol.
797         * symtab.c (null_block_symbol): New global.
798         * symtab.h (null_block_symbol): Declare.
800 2015-11-17  Pedro Alves  <palves@redhat.com>
802         * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
803         (GDB_XCPT_RAW_TRY, GDB_XCPT): Define.
804         Replace __cplusplus checks with GDB_XCPT checks throughout.
805         * common/common-exceptions.c: Replace __cplusplus checks with
806         GDB_XCPT checks throughout.
808 2015-11-17  Pedro Alves  <palves@redhat.com>
810         * common/common-defs.h (ATTRIBUTE_PRINTF): Redefine in terms of
811         _GL_ATTRIBUTE_FORMAT_PRINTF after including ansidecl.h.
813 2015-11-17  Pedro Alves  <palves@redhat.com>
815         * common/common-defs.h (__STDC_CONSTANT_MACROS)
816         (__STDC_LIMIT_MACROS): Define before including stdint.h.
818 2015-11-17  Pedro Alves  <palves@redhat.com>
820         * windows-nat.c (handle_exception): Return 0 for first chance
821         exceptions.
822         (get_windows_debug_event): Adjust.
824 2015-11-17  Pedro Alves  <palves@redhat.com>
826         * windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as
827         signal number for terminator.
829 2015-11-17  Pedro Alves  <palves@redhat.com>
831         * ser-tcp.c (net_open) : Cast getsockopt argument to char *
832         instead of void *.  Update comment.
833         (net_read_prim): Cast recv argument to char * instead of void *.
834         (net_write_prim): Cast send argument to char *.  Add comment.
836 2015-11-17  Pedro Alves  <palves@redhat.com>
838         * win32-i386-low.c (update_debug_registers_callback)
839         (win32_get_current_dr): Add cast.
840         * win32-low.c (thread_rec, delete_thread_info)
841         (continue_one_thread): Add casts.
842         (strwinerror): Cast FormatMessage argument to LPTSTR instead of
843         LPVOID.
844         (win32_create_inferior, suspend_one_thread): Add casts.
846 2015-11-17  Pedro Alves  <palves@redhat.com>
848         * windows-nat.c (AdjustTokenPrivileges_ftype)
849         (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
850         (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
851         (GetCurrentConsoleFont_ftype, GetModuleInformation_ftype)
852         (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
853         (GetConsoleFontSize_ftype): New typedefs.
854         (AdjustTokenPrivileges, DebugActiveProcessStop)
855         (DebugBreakProcess, DebugSetProcessKillOnExit, EnumProcessModules)
856         (GetConsoleFontSize, GetCurrentConsoleFont, GetModuleInformation)
857         (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize):
858         Adjust.
859         (GetModuleFileNameEx_ftype): New typedef.
860         (GetModuleFileNameEx): Use it.
861         (_initialize_loadable): Define GPA macro and use it.
863 2015-11-17  Pedro Alves  <palves@redhat.com>
865         * gdb-dlfcn.c (gdb_dlsym, gdb_dlclose) [__MINGW32__]: Add casts to
866         HMODULE.
868 2015-11-17  Pedro Alves  <palves@redhat.com>
870         * exec.c (exec_file_attach, symfile_bfd_open) [__GO32__ || _WIN32
871         || __CYGWIN__]: Add casts.
872         * utils.c (gdb_filename_fnmatch): Add cast.
873         * windows-nat.c (windows_create_inferior): Add cast.
875 2015-11-17  Pedro Alves  <palves@redhat.com>
877         * ser-mingw.c (CancelIo_ftype): New typedef.
878         (CancelIo): Use CancelIo_ftype.
879         (ser_windows_close, ser_windows_wait_handle)
880         (ser_windows_read_prim, stop_select_thread)
881         (console_select_thread, pipe_select_thread, file_select_thread)
882         (ser_console_wait_handle, ser_console_done_wait_handle)
883         (ser_console_close, cleanup_pipe_state, pipe_windows_close)
884         (pipe_windows_write, pipe_wait_handle, pipe_done_wait_handle)
885         (net_windows_socket_check_pending, net_windows_select_thread)
886         (net_windows_wait_handle, net_windows_done_wait_handle)
887         (net_windows_close): Add casts.
888         (_initialize_ser_windows): Cast to CancelIo_ftype* instead of
889         void*.
891 2015-11-17  Simon Marchi  <simon.marchi@ericsson.com>
893         * c-exp.y (exp): Adjust, change enum c_string_type to
894         c_string_type.
895         (parse_string_or_char): Likewise.
896         * c-lang.c (charset_for_string_type): Likewise.
897         (classify_type): Likewise.
898         (c_printchar): Likewise.
899         (c_printstr): Likewise.
900         (evaluate_subexp_c): Likewise.  And change cast to enum
901         c_string_type_values.
902         * c-lang.h: Include "common/enum_flags.h".
903         (enum c_string_type): Rename to...
904         (enum c_string_type_values): ...this.
905         (c_string_type): Define new enum flags type.
907 2015-11-17  Pedro Alves  <palves@redhat.com>
909         * btrace.h: Include common/enum-flags.h.
910         (btrace_insn_flags): Define.
911         (struct btrace_insn) <flags>: Change type.
912         (btrace_function_flags): Define.
913         (struct btrace_function) <flags>: Change type.
914         (btrace_thread_flags): Define.
915         (struct btrace_thread_info) <flags>: Change type.
916         * c-exp.y (token_flags): Rename to ...
917         (token_flag): ... this.
918         (token_flags): Define.
919         (struct token) <flags>: Change type.
920         * common/enum-flags.h: New file.
921         * compile/compile-c-types.c (convert_qualified): Change type of
922         'quals' local.
923         * compile/compile-internal.h: Include "common/enum-flags.h".
924         (gcc_qualifiers_flags): Define.
925         * completer.c (enum reg_completer_targets): Rename to ...
926         (enum reg_completer_target): ... this.
927         (reg_completer_targets): Define.
928         (reg_or_group_completer_1): Change type of 'targets' parameter.
929         * disasm.c (do_mixed_source_and_assembly_deprecated): Change type
930         of 'psl_flags' local.
931         (do_mixed_source_and_assembly): Change type of 'psl_flags' local.
932         * infrun.c: Include "common/enum-flags.h".
933         (enum step_over_what): Rename to ...
934         (enum step_over_what_flag): ... this.
935         (step_over_what): Change type.
936         (start_step_over): Change type of 'step_what' local.
937         (thread_still_needs_step_over): Now returns a step_over_what.
938         Adjust.
939         (keep_going_pass_signal): Change type of 'step_what' local.
940         * linux-tdep.c: Include "common/enum-flags.h".
941         (enum filterflags): Rename to ...
942         (enum filter_flag): ... this.
943         (filter_flags): Define.
944         (dump_mapping_p): Change type of 'filterflags' parameter.
945         (linux_find_memory_regions_full): Change type of 'filterflags'
946         local.
947         (linux_find_memory_regions_full): Pass the address of an unsigned
948         int to sscanf instead of the address of an enum.
949         * record-btrace.c (btrace_print_lines): Change type of local
950         'psl_flags'.
951         (btrace_call_history): Replace 'flags' parameter
952         with 'int_flags' parameter.  Adjust.
953         (record_btrace_call_history, record_btrace_call_history_range)
954         (record_btrace_call_history_from): Rename 'flags' parameter to
955         'int_flags'.  Use record_print_flags.
956         * record.h: Include "common/enum-flags.h".
957         (record_print_flags): Define.
958         * source.c: Include "common/enum-flags.h".
959         (print_source_lines_base, print_source_lines): Change type of
960         flags parameter.
961         * symtab.h: Include "common/enum-flags.h".
962         (enum print_source_lines_flags): Rename to ...
963         (enum print_source_lines_flag): ... this.
964         (print_source_lines_flags): Define.
965         (print_source_lines): Change prototype.
967 2015-11-17  Pedro Alves  <palves@redhat.com>
969         * guile/scm-disasm.c (gdbscm_disasm_read_memory): Return -1 on
970         error instead of TARGET_XFER_E_IO.
971         (gdbscm_disasm_memory_error): Always pass TARGET_XFER_E_IO to
972         memory_error.
974 2015-11-17  Dominik Vogt  <vogt@linux.vnet.ibm.com>
976         * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
977         (prologue_inst_adjust_sp, hppa_frame_cache): Fix left shift of negative
978         value.
979         * dwarf2read.c (read_subrange_type): Likewise.
981 2015-11-16  Yao Qi  <yao.qi@linaro.org>
983         * aarch64-tdep.c (aarch64_extract_return_value):  Change array
984         buf's length to V_REGISTER_SIZE.
986 2015-11-16  Yao Qi  <yao.qi@linaro.org>
988         * aarch64-tdep.c (pass_in_x_or_stack): Change argument type
989         from bfd_byte * to value *.  Caller updated.
990         (pass_in_x): Likewise.
991         (pass_in_v_or_stack): Likewise.
992         (pass_on_stack): Likewise.
994 2015-11-16  Yao Qi  <yao.qi@linaro.org>
996         * aarch64-tdep.c (aarch64_push_dummy_call): Call value_contents
997         instead of value_contents_writeable.
998         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1000 2015-11-16  Yao Qi  <yao.qi@linaro.org>
1002         * arm-tdep.c (arm_push_dummy_call): New array buf.  Store regval
1003         to buf.  Pass buf instead of val to push_stack_item.
1005 2015-11-13  Yao Qi  <yao.qi@linaro.org>
1007         PR tdep/19051
1008         * arm-tdep.c (arm_type_align): Return the right alignment
1009         value for vector.
1010         (arm_vfp_cprc_sub_candidate): Return true for 64-bit and
1011         128-bit vector types.
1012         (arm_return_in_memory): Handel vector type.
1014 2015-11-13  Yao Qi  <yao.qi@linaro.org>
1016         * arm-tdep.c (arm_return_in_memory): Rewrite it.
1017         (arm_return_value): Call arm_return_in_memory for
1018         TYPE_CODE_COMPLEX.
1020 2015-11-12  Yao Qi  <yao.qi@linaro.org>
1022         * arm-tdep.c (push_stack_item): Change contents type to
1023         const gdb_byte *.
1025 2015-11-11  Simon Marchi  <simon.marchi@ericsson.com>
1027         * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
1028         cast to PTRACE_TYPE_RET *.
1029         (inf_ptrace_store_register): Likewise.
1031 2015-11-11  Andrew Burgess  <andrew.burgess@embecosm.com>
1033         * avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating
1034         info sub-commands.
1035         * gnu-nat.c (add_task_commands): Likewise.
1036         * macrocmd.c (_initialize_macrocmd): Likewise.
1038 2015-11-11  Andrew Burgess  <andrew.burgess@embecosm.com>
1040         * cli/cli-decode.c (add_info): Switch to class_info.
1042 2015-11-09  Joel Brobecker  <brobecker@adacore.com>
1044         * ada-lang.c (ada_is_wrapper_field): Add special handling
1045         for fields called "RETVAL".
1047 2015-11-09  Yao Qi  <yao.qi@linaro.org>
1049         * arm-tdep.c (arm_exidx_new_objfile): Use
1050         ELF_STRING_ARM_unwind.
1052 2015-11-09  Yao Qi  <yao.qi@linaro.org>
1054         * infrun.c (displaced_step_in_progress_thread): New function.
1055         (handle_inferior_event_1): Call it.
1057 2015-11-05  Yao Qi  <yao.qi@linaro.org>
1059         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
1060         aarch64_decode_insn and decode instruction by aarch64_inst.
1062 2015-11-05  Yao Qi  <yao.qi@linaro.org>
1064         * aarch64-tdep.c (extract_signed_bitfield): Remove.
1065         (decode_masked_match): Remove.
1066         (aarch64_decode_add_sub_imm): Remove.
1067         (aarch64_decode_br): Remove.
1068         (aarch64_decode_eret): Remove.
1069         (aarch64_decode_movz): Remove.
1070         (aarch64_decode_orr_shifted_register_x): Remove.
1071         (aarch64_decode_ret): Remove.
1072         (aarch64_decode_stp_offset): Remove.
1073         (aarch64_decode_stur): Remove.
1074         (aarch64_analyze_prologue): Call aarch64_decode_insn
1075         and use aarch64_inst to decode instructions.
1077 2015-11-05  Yao Qi  <yao.qi@linaro.org>
1079         * aarch64-tdep.c (aarch64_decode_stp_offset): New argument
1080         wback.
1081         (aarch64_decode_stp_offset_wb): Removed.
1082         (aarch64_analyze_prologue): Don't use
1083         aarch64_decode_stp_offset_wb.
1085 2015-11-04  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1087         PR/18376
1088         * s390-linux-tdep.c (s390_is_partial_instruction): New function.
1089         (s390_software_single_step): New function.
1090         (s390_displaced_step_hw_singlestep): New function.
1091         (s390_gdbarch_init): Fill gdbarch slots with the above.
1093 2015-11-04  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1095         PR/18376
1096         * configure.tgt: Add linux-record.o to s390*-linux.
1097         * s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
1098         (s390_linux_record_tdep): New static global variable.
1099         (s390x_linux_record_tdep): New static global variable.
1100         (s390_all_but_pc_registers_record): New function.
1101         (s390_canonicalize_syscall): New function.
1102         (s390_linux_syscall_record): New function.
1103         (s390_linux_record_signal): New function.
1104         (s390_record_calc_disp_common): New function.
1105         (s390_record_calc_disp): New function.
1106         (s390_record_calc_disp_vsce): New function.
1107         (s390_record_calc_rl): New function.
1108         (s390_record_gpr_g): New function.
1109         (s390_record_gpr_h): New function.
1110         (s390_record_vr): New function.
1111         (s390_process_record): New function.
1112         (s390_init_linux_record_tdep): New function.
1113         (s390_gdbarch_init): Fill record function slots.
1115 2015-11-04  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1117         * record-full.c (record_full_exec_insn): Use xmalloc for temporary
1118         memory storage.
1120 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
1122         * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
1123         instead of DISASSEMBLY_SOURCE_DEPRECATED.  Also accept /s.
1124         (_initialize_record): Document the /s modifier.
1125         * NEWS: Announce record instruction-history's new /s modifier.
1127 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
1129         * record-btrace.c (struct btrace_line_range): New.
1130         (btrace_mk_line_range, btrace_line_range_add)
1131         (btrace_line_range_is_empty, btrace_line_range_contains_range)
1132         (btrace_find_line_range, btrace_print_lines): New.
1133         (btrace_insn_history): Add source interleaving algorithm.
1135 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
1137         * disasm.h (DISASSEMBLY_SPECULATION): New.
1138         (struct disasm_insn): New.
1139         (gdb_pretty_print_insn): New.
1140         * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
1141         Update users.  Print instruction number and indicate speculative
1142         execution, if requested.
1144 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
1146         * disasm.c (dump_insns): Split into this and ...
1147         (gdb_pretty_print_insn): ... this.
1149 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
1151         * xtensa-linux-nat.c (supply_gregset_reg): Make static.
1152         (xtensa_linux_fetch_inferior_registers): Likewise.
1153         (xtensa_linux_store_inferior_registers): Likewise.
1155 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
1157         * arm-linux-nat.c (arm_linux_read_description): Add cast.
1159 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
1161         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
1162         type of rw to enum target_hw_bp_type.
1163         (ppc_linux_remove_mask_watchpoint): Likewise.
1164         * target.c (target_insert_mask_watchpoint): Likewise.
1165         (target_remove_mask_watchpoint): Likewise.
1166         * target.h (target_insert_mask_watchpoint): Likewise.
1167         (target_remove_mask_watchpoint): Likewise.
1168         (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
1169         (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
1170         * target-delegates.c: Regenerate.
1172 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
1174         * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
1175         (get_sim_inferior_data): Likewise.
1176         (sim_inferior_data_cleanup): Likewise.
1177         (gdbsim_close_inferior): Likewise.
1178         (gdbsim_resume_inferior): Likewise.
1179         (gdbsim_wait): Likewise.
1180         (simulator_command): Likewise.
1181         (sim_command_completer): Likewise.
1183 2015-11-03  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1185         * MAINTAINERS (Write After Approval): Add Marcin KoÅ›cielnicki.
1187 2015-10-30  Pedro Alves  <palves@redhat.com>
1189         * breakpoint.c (breakpoint_in_range_p)
1190         (breakpoint_location_address_range_overlap): New functions.
1191         * breakpoint.h (breakpoint_in_range_p): New declaration.
1192         * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
1193         in the scratch pad range, don't displaced step.
1195 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1197         * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
1198         size_stack_t, size_size_t, size_iovec.
1200 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1202         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
1203         * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
1204         (amd64_x32_linux_init_abi): Fix size_termios.
1206 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1208         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
1210 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1212         * linux-record.c (record_linux_system_call): Fix old_select.
1214 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1216         * linux-record.c (record_linux_system_call): Fix newstatat.
1218 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1220         * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
1222 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1224         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
1225         * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
1226         (amd64_x32_linux_init_abi): Add size_time_t.
1227         * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
1228         * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
1229         * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
1230         handling.
1231         * linux-record.h (struct linux_record_tdep): Add size_time_t.
1232         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
1234 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1236         * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
1238 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1240         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
1241         size_dirent{,64}, add size_old_dirent.
1242         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
1243         add size_old_dirent.
1244         (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
1245         size_old_dirent.
1246         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
1247         add size_old_dirent.
1248         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
1249         add size_old_dirent.
1250         * linux-record.c (record_linux_system_call): Fix handling of readdir
1251         and getdents{,64}.
1252         * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
1253         add size_old_dirent.
1254         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
1255         size_dirent{,64}, add size_old_dirent.
1257 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1259         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
1260         size_sigset_t, size_old_sigaction, size_old_sigset_t.
1261         * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
1262         size_sigset_t, size_old_sigaction, size_old_sigset_t.
1263         (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
1264         size_old_sigaction, size_old_sigset_t.
1265         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
1266         size_old_sigaction, size_old_sigset_t.
1267         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
1268         size_old_sigaction, size_old_sigset_t.
1269         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
1270         size_sigset_t, size_old_sigaction, size_old_sigset_t.
1272 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1274         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
1275         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
1277 2015-10-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1279         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
1280         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
1281         (amd64_x32_linux_init_abi): Remove size_siginfo.
1282         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
1283         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
1284         * linux-record.c (record_linux_system_call): Change size_siginfo
1285         to size_siginfo_t.
1286         * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
1287         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
1289 2015-10-29  Pedro Alves  <palves@redhat.com>
1291         * mdebugread.c (add_data_symbol): New function, factored out from
1292         ...
1293         (parse_symbol): ... here.  Delete 'theclass' local.
1295 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
1297         * jit.c (jit_target_read_impl): Add cast.
1299 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
1301         * jit.c (jit_reader_load): Add cast.
1303 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
1305         * dwarf2read.c (partial_die_full_name): Add cast.
1307 2015-10-29  Pedro Alves  <palves@redhat.com>
1309         * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
1311 2015-10-29  Pedro Alves  <palves@redhat.com>
1313         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
1315 2015-10-29  Eli Zaretskii  <eliz@gnu.org>
1317         * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
1318         in the environment.
1320 2015-10-29  Pedro Alves  <palves@redhat.com>
1322         * gnu-v2-abi.c (gnuv2_is_destructor_name)
1323         (gnuv2_is_constructor_name): Add casts.
1325 2015-10-29  Pedro Alves  <palves@redhat.com>
1327         * common/common-exceptions.c (exception_none): Add cast.
1329 2015-10-29  Pedro Alves  <palves@redhat.com>
1331         * compile/compile-c-types.c (struct type_map_instance)
1332         <gcc_type>: Rename to gcc_type_handle.
1333         (insert_type, convert_type): Adjust.
1335 2015-10-29  Pedro Alves  <palves@redhat.com>
1337         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
1338         assume that "break" breaks out of a TRY/CATCH.
1339         * python/py-framefilter.c (py_print_single_arg): Don't assume
1340         "continue" breaks out of a TRY/CATCH.
1341         * python/py-value.c (valpy_binop_throw): New function, factored
1342         out from ...
1343         (valpy_binop): ... this.
1344         (valpy_richcompare_throw): New function, factored
1345         out from ...
1346         (valpy_richcompare): ... this.
1347         * solib.c (solib_read_symbols): Don't assume "break" breaks out
1348         of a TRY/CATCH.
1349         * common/common-exceptions.h [USE_RAW_CXX_TRY]
1350         <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
1352 2015-10-28  Simon Dardis  <Simon.Dardis@imgtec.com>
1354         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
1355         as move along with [d]addu.
1357 2015-10-28  Yao Qi  <yao.qi@linaro.org>
1359         * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
1360         aarch64_decode_insn.
1362 2015-10-27  Pedro Alves  <palves@redhat.com>
1364         * common/print-utils.c (host_address_to_string): Rename to ...
1365         (host_address_to_string_1): ... this.
1366         * common/print-utils.h (host_address_to_string): Reimplement as
1367         wrapper around host_address_to_string_1.
1368         * utils.c (gdb_print_host_address): Rename to ...
1369         (gdb_print_host_address_1): ... this.
1370         * utils.h (gdb_print_host_address): Reimplement as wrapper macro
1371         around  host_address_to_string_1.
1373 2015-10-27  Pedro Alves  <palves@redhat.com>
1375         * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
1376         memory_error.  Rename local 'status' to 'res'.
1377         * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
1378         memory_error.
1379         * corefile.c (read_stack, read_code, write_memory): Always pass
1380         TARGET_XFER_E_IO to memory_error.
1381         * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
1382         memory_error.  Rename parameter 'status' to 'err'.
1383         (dump_insns): Rename local 'status' to 'err'.
1384         * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
1385         to 'errp'.  Rename local 'status' to 'err'.  Always pass
1386         TARGET_XFER_E_IO to memory_error.
1387         (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
1388         * target.c (target_read_memory, target_read_raw_memory)
1389         (target_read_stack, target_read_code, target_write_memory)
1390         (target_write_raw_memory): Return -1 on error instead of
1391         TARGET_XFER_E_IO.
1392         * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
1393         Always pass TARGET_XFER_E_IO to memory_error.  Update comment.
1395 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1397         * guile/guile-internal.h (gdbscm_with_guile): Change return
1398         types to const char *.
1399         * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
1400         (struct c_data) <func>: Likewise.
1401         (struct c_data) <result>: Change type to const char *.
1402         (scscm_eval_scheme_string): Change return type to
1403         const char *.
1404         (scscm_source_scheme_script): Likewise.
1405         (gdbscm_safe_eval_string): Change type of result variable to
1406         const char * and remove cast.
1407         (gdbscm_safe_source_script): Likewise.
1408         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
1409         Change return type to const char *.
1410         (gdbscm_disasm_read_memory): Change type of status to
1411         const char *.
1413 2015-10-27  Pedro Alves  <palves@redhat.com>
1415         * source.c (openp): New local 'last_errno'.  Use it to
1416         save/restore errno.
1418 2015-10-27  Pedro Alves  <palves@redhat.com>
1420         * psymtab.c (dump_psymtab_addrmap_1): Add casts.
1422 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1424         * ctf.c (SET_ENUM_FIELD): New macro.
1425         (ctf_read_status): Use it.
1426         (ctf_read_tp): Use it.
1428 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1430         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
1431         scm_t_dynwind_flags casts.
1432         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1433         * guile/scm-ports.c (gdbscm_open_memory): Likewise.
1434         * guile/scm-value.c (gdbscm_value_to_string): Likewise.
1436 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1438         * ax.h (ax_raw_byte): New declaration.
1439         * ax-general.c (ax_raw_byte): New function.
1440         (ax_simple): Use ax_raw_byte.
1441         * ax-gdb.c (gen_printf): Likewise.
1443 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
1445         * ada-lang.h (GROW_VECT): Add cast.
1447 2015-10-26  Doug Evans  <xdje42@gmail.com>
1449         * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
1451 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1453         * target.c (memory_xfer_partial): Change type of buf to gdb_byte
1454         pointer.
1455         (simple_search_memory): Cast return of memmem.
1457 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1459         * stap-probe.c (handle_stap_probe): Add (const char *) casts.
1461 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1463         * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
1464         -1 on error.
1466 2015-10-26  Doug Evans  <dje@google.com>
1468         PR symtab/17391
1469         * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
1470         instead of gdbarch_dwarf2_reg_to_regnum.
1471         (dwarf2_frame_cache): Ditto.
1472         (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
1473         gdbarch_dwarf2_reg_to_regnum.
1474         (get_reg_value): Ditto.
1475         (dwarf2_fetch_cfa_info): Ditto.
1476         (dwarf2_frame_prev_register): Ditto.
1477         * dwarf2loc.c: #include "complaints.h".
1478         (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
1479         instead of gdbarch_dwarf2_reg_to_regnum.
1480         (dwarf_expr_get_reg_value): Ditto.
1481         (read_pieced_value): Ditto.
1482         (write_pieced_value): Ditto.
1483         (dwarf2_evaluate_loc_desc_full): Ditto.
1484         (dwarf_reg_to_regnum): New function.
1485         (throw_bad_regnum_error): New function.
1486         (dwarf_reg_to_regnum_or_error): Renamed from
1487         dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
1488         All callers updated.  Call throw_bad_regnum_error.
1489         (locexpr_regname): Improve text of bad register number.
1490         * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
1491         (dwarf_reg_to_regnum_or_error): Update prototype.
1492         * dwarf2expr.c: #include "dwarf2loc.h".
1493         (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
1494         gdbarch_dwarf2_reg_to_regnum.
1495         * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
1496         * gdbarch.h: Regenerate.
1497         * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
1498         register.
1499         * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
1500         * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
1501         * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
1502         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
1503         Remove warning for bad register.
1504         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
1505         * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
1506         i386_svr4_reg_to_regnum.  Return -1 for bad registers.
1507         (i386_svr4_reg_to_regnum): New function.
1508         (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
1509         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
1510         on bad registers, return -1.
1511         * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
1512         Remove warning for bad register.
1513         * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
1514         (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
1515         Remove warning for bad register.  Return -1 for bad register.
1516         * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
1517         for bad register, return -1.
1518         * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
1519         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
1520         * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
1521         * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
1522         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1523         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
1524         for bad regs.
1525         * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
1526         bad regs.  Fix error result.
1527         * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
1528         (reg_value_complaint): Update complaint text.
1529         * mdebugread.c (reg_value_complaint): New function.
1530         (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
1532 2015-10-26  Doug Evans  <dje@google.com>
1534         PR python/18938
1535         * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
1536         All callers updated.
1538 2015-10-26  Doug Evans  <dje@google.com>
1540         * psymtab.c (struct dump_psymtab_addrmap_data): Define.
1541         (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
1542         (maintenance_print_psymbols): Print address map.
1544 2015-10-26  Doug Evans  <dje@google.com>
1546         * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
1548 2015-10-26  Doug Evans  <dje@google.com>
1550         * common/gdb_wait.h (W_STOPCODE): Define, moved here from
1551         gdbserver/linux-low.c.
1552         (WSETSTOP): Simplify.
1554 2015-10-26  Doug Evans  <dje@google.com>
1556         * linux-thread-db.c (find_new_threads_callback): Ditto.
1557         (thread_db_pid_to_str): Ditto.
1559 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1561         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
1562         local char array to scm_mode_bits, use a cast instead.
1564 2015-10-26  Simon Marchi  <simon.marchi@ericsson.com>
1566         * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
1567         result.  Change type of element_block_ptr.  Change allocation to
1568         use XNEWVEC.
1570 2015-10-26  Luis Machado  <lgustavo@codesourcery.com>
1572         * record-full.c (record_full_message_wrapper_safe): Pass empty string to
1573         catch_errors call instead of NULL.
1575 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1577         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
1578         char pointer to scm_mode_bits.
1580 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1582         * symtab.c (default_make_symbol_completion_list_break_on_1): Add
1583         cast.
1585 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1587         * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
1588         "data" local variable and use it.
1590 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
1592         * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
1593         domain_enum cast.
1594         (gdbscm_lookup_symbol): Likewise.
1596 2015-10-25  Iain Buclaw  <ibuclaw@gdcproject.org>
1598         * d-exp.y: Remove an obsolete comment and propagate the block
1599         information to the produced expression.
1601 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1603         * tui/tui-data.c (tui_add_to_source_windows): Remove void *
1604         cast.
1605         (tui_add_content_elements): Likewise.
1607 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1609         * cli/cli-setshow.c (do_set_command): Constify p.
1611 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1613         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
1614         (void *) cast with (gdb_byte *).
1616 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1618         * proc-service.c (ps_pdread): Add cast.
1620 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1622         * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
1623         valbuf.
1625 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
1627         * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
1628         (ia64_push_dummy_call): Remove cast and change type of "to" to
1629         array of gdb_byte.
1631 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
1633         * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
1635 2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
1637         * observer.h (observer_${event}_notification_stub): Add cast.
1639 2015-10-23  Yao Qi  <yao.qi@linaro.org>
1641         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
1642         dsd.insn_count to zero.
1644 2015-10-22  Pedro Alves  <palves@redhat.com>
1646         * infrun.c (stop_after_trap): Delete.
1647         (clear_proceed_status, handle_signal_stop, struct
1648         infcall_control_state, save_infcall_control_state)
1649         (restore_infcall_control_state): Remove references to
1650         stop_after_trap.
1652 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
1654         * python/python.c (_initialize_python): Add cast.
1656 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
1658         * nto-tdep.c (nto_inferior_data): Add cast.
1660 2015-10-22  Pedro Alves  <palves@redhat.com>
1662         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
1663         windows_wait and windows_resume directly instead of
1664         wait_for_inferior and resume.
1666 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
1668         * xtensa-tdep.h (XTREG): Add casts.
1669         (XTREG_END): Likewise.
1671 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
1673         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
1675 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
1677         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
1679 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
1681         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
1682         buf to gdb_byte*.
1683         (supply_32bit_reg): Add cast.
1684         (mips64_fill_gregset): Likewise.
1686 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
1688         PR python/18073
1689         * python/py-type.c (typy_get_composite): Allow returning a
1690         function type.
1692 2015-10-21  Keven Boell  <keven.boell@intel.com>
1694         * dwarf2read.c (set_die_type): Add read of
1695         DW_AT_allocated and DW_AT_associated.
1696         * f-typeprint.c: New include of typeprint.h
1697         (f_print_type): Add check for allocated/associated
1698         status of type.
1699         (f_type_print_varspec_suffix): Add check for
1700         * gdbtypes.c (create_array_type_with_stride):
1701         Add check for valid data location of type in
1702         case allocated or associated attributes are set.
1703         Length of an array should be only calculated if
1704         allocated or associated is resolved as true.
1705         (is_dynamic_type_internal): Add check for allocated/
1706         associated.
1707         (resolve_dynamic_array): Evaluate allocated/associated
1708         properties.
1709         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
1710         <DYN_PROP_ASSOCIATED>: New enums.
1711         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
1712         (type_not_allocated): New function.
1713         (type_not_associated): New function.
1714         * valarith.c (value_subscripted_rvalue): Add check for
1715         allocated/associated.
1716         * valprint.c: New include of typeprint.h.
1717         (valprint_check_validity): Add check for allocated/associated.
1718         (value_check_printable): Add check for allocated/
1719         associated.
1720         * typeprint.h (val_print_not_allocated): New function.
1721         (val_print_not_associated): New function.
1722         * typeprint.c (val_print_not_allocated): New function.
1723         (val_print_not_associated): New function.
1725 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
1727         * Makefile.in: Add arm.c/o.
1728         * arch/arm.c: New file.
1729         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
1730         (MAKE_THUMB_ADDR): Likewise.
1731         (UNMAKE_THUMB_ADDR): Likewise.
1732         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
1733         (IS_THUMB_ADDR): Move to arm.h.
1734         (MAKE_THUMB_ADDR): Likewise.
1735         (UNMAKE_THUMB_ADDR): Likewise.
1736         * configure.tgt: Add arm.o to all ARM configs.
1738 2015-10-21  Yao Qi  <yao.qi@linaro.org>
1740         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
1741         Remove argument exp_vCont_s.
1742         * gdb.base/range-stepping.exp: Callers updated.
1743         * gdb.trace/range-stepping.exp: Likewise.
1745 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
1747         * nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
1748         (nto_sniff_abi_note_section): New function.
1749         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
1750         binary.
1752 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
1754         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
1755         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
1756         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
1757         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
1758         New functions.
1759         (_initialize_nto_tdep): New forward declaration, new function.
1760         * nto-tdep.h (struct nto_inferior_data): New struct.
1761         (nto_inferior_data): New function declaration.
1763 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1765         * findvar.c (address_from_register): Check REGNUM validity.
1767 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
1769         * nto-procfs.c (procfs_pid_to_exec_file): New function.
1770         (init_procfs_targets): Wire new function.
1772 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
1774         * nto-procfs.c (sys/auxv.h): Include.
1775         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
1776         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
1777         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
1779 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
1781         * nto-procfs.c (nto_procfs_path): Rename to...
1782         (nodestr): ... this, and change type.
1783         (nto_node): Use new variable and logic accordingly.
1784         (procfs_open_1): Use new variable name. Use local buffer to construct
1785         procfrs path.
1786         (procfs_pidlist): Use NODESTR to construct procfs path.
1787         (procfs_files_info): Use NODESTR to output meaningful text.
1788         (do_attach): Construct procfs using NODESTR.
1789         (procfs_create_inferior): Compare pointer to NULL.
1791 2015-10-19  Josh Stone  <jistone@redhat.com>
1793         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
1794         return state, even when not actively catching syscalls at all.
1795         (linux_handle_extended_wait): Mark syscall_state like an entry.
1796         (wait_lwp): Set syscall_state ignored for other traps.
1797         (linux_nat_filter_event): Likewise.
1799 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
1801         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
1802         when handling 'E', 'T', 'S', 'X' and 'W' packets.
1803         Do not set rs->waiting_for_stop_reply back to 1.
1805 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
1807         * nto-procfs.c (common/filestuff.h): Include.
1808         (procfs_can_use_hw_breakpoint): Fix enum name.
1809         (procfs_open_1): Fix compiler warning.
1810         (procfs_pidlist): Make static.
1811         (procfs_meminfo): Make static, fix type name, add missing argument.
1812         (procfs_store_registers): Make static.
1813         (procfs_thread_info): Remove unused function.
1814         (_initialize_procfs): Forward declare.
1816 2015-10-16  Yao Qi  <yao.qi@arm.com>
1818         * MAINTAINERS: Update my email address.
1820 2015-10-15  Yao Qi  <yao.qi@linaro.org>
1822         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
1823         Call gdbarch_breakpoint_from_pc to instruction length.
1824         (aarch64_linux_remove_hw_breakpoint): Likewise.
1825         * common/common-regcache.h (regcache_register_size): Declare.
1826         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
1827         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
1828         the process is 32bit, otherwise set alignment to 4.
1829         (aarch64_handle_breakpoint): Update comments.
1830         * regcache.c (regcache_register_size): New function.
1832 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
1834         * gdbarch.sh (core_regset_section): Remove.
1835         * gdbarch.h: Regenerate.
1837 2015-10-14  Yao Qi  <yao.qi@linaro.org>
1839         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
1840         out of it.
1841         (enum aarch64_memory_operand_type): New.
1843 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
1845         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
1847 2015-10-13  Pedro Alves  <palves@redhat.com>
1849         * ada-lang.c (ada_enum_name): Constify local.
1850         * ada-typeprint.c (print_range_bound): Constify locals.
1851         * c-varobj.c (c_describe_child): Likewise.
1852         * cli/cli-setshow.c (do_set_command): Likewise.
1853         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1854         * dwarf2read.c (find_file_and_directory): Likewise.
1855         (anonymous_struct_prefix, dwarf2_name): Likewise.
1856         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1857         * go-lang.c (unpack_mangled_go_symbol): Likewise.
1858         * jv-typeprint.c (java_type_print_base): Likewise.
1859         * ser-tcp.c (net_open): Likewise.
1860         * symfile.c (deduce_language_from_filename): Likewise.
1861         * symtab.c (gdb_mangle_name): Likewise.
1862         * tui/tui-io.c (tui_redisplay_readline): Likewise.
1864 2015-10-13  Pedro Alves  <palves@redhat.com>
1866         * infrun.c (restore_execution_direction): New function.
1867         (fetch_inferior_event): Use it instead of
1868         make_cleanup_restore_integer.
1869         (execution_direction): Change type to enum
1870         exec_direction_kind.
1871         * infrun.h (execution_direction): Likewise.
1873 2015-10-13  Pedro Alves  <palves@redhat.com>
1875         * ada-lang.c (ada_value_primitive_packed_val): Constify
1876         locals.  Use value_contents_writeable.  Remove casts.
1878 2015-10-13  Pedro Alves  <palves@redhat.com>
1880         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
1881         and alloca calls.
1883 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
1885         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
1886         write_memory with write_memory_unsigned_integer.
1888 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
1890         * solib-dsbt.c (cmp_name): Constify arguments.
1891         * solib-frv.c (cmp_name): Likewise.
1892         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
1893         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1894         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1895         (gdb_bfd_lookup_symbol): Likewise.
1896         * solib.h (gdb_bfd_lookup_symbol): Likewise.
1897         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1899 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
1901         * stack.c (parse_frame_specification): Remove message parameter,
1902         replace with fixed string in function body, update function
1903         comment.
1904         (frame_info): Remove message to parse_frame_specification.
1905         (select_frame_command): Likewise.
1907 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
1909         * stack.c (parse_frame_specification): Delete.
1910         (parse_frame_specification_1): Rename to
1911         parse_frame_specification.
1912         (frame_info): Use parse_frame_specification.
1913         (select_frame_command): Likewise.
1914         (return_command): Use select_frame and print_stack_frame rather
1915         than frame_command and select_frame_command.
1916         (func_command): Use get_current_frame rather than
1917         parse_frame_specification.
1919 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
1921         * stack.c (func_command): Return early when there is no ARG
1922         string.
1924 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
1926         * stack.c: Include safe-ctype.h not ctype.h.
1927         (parse_frame_specification): Use ISSPACE not isspace.
1928         (backtrace_command): Use TOLOWER not tolower.
1930 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
1932         * mep-tdep.c (current_me_module): Add cast.
1933         (mep_gdbarch_init): Likewise.
1935 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
1937         * m32c-tdep.c (m32c_move_reg_t): Replace with...
1938         (m32c_write_reg_t): ...this and...
1939         (m32c_read_reg_t): ...this.
1940         (struct m32c_reg): Update types of read and write.
1941         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
1942         adjust definition.
1943         (m32c_banked_read): Likewise.
1944         (m32c_sb_read): Likewise.
1945         (m32c_part_read): Likewise.
1946         (m32c_cat_read): Likewise.
1947         (m32c_r3r2r1r0_read): Likewise.
1948         (m32c_raw_write): Change declaration type to m32c_write_reg_t
1949         and adjust definition.
1950         (m32c_banked_write): Likewise.
1951         (m32c_sb_write): Likewise.
1952         (m32c_part_write): Likewise.
1953         (m32c_cat_write): Likewise.
1954         (m32c_r3r2r1r0_write): Likewise.
1956 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
1958         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
1960 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
1962         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
1963         gdb_sys_no_syscall instead of -1.
1965 2015-10-12  Yao Qi  <yao.qi@linaro.org>
1967         * NEWS: Mention the change.
1969 2015-10-12  Yao Qi  <yao.qi@linaro.org>
1971         * arch/aarch64-insn.c (emit_load_store): Rename to ...
1972         (aarch64_emit_load_store): ... it.  All callers updated.
1974 2015-10-12  Yao Qi  <yao.qi@linaro.org>
1976         * arch/aarch64-insn.c (emit_insn): Rename to ...
1977         (aarch64_emit_insn): ... it.  All callers updated.
1979 2015-10-12  Yao Qi  <yao.qi@linaro.org>
1981         * aarch64-linux-tdep.c: Include arch-utils.h.
1982         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
1983         set_gdbarch_displaced_step_copy_insn,
1984         set_gdbarch_displaced_step_fixup,
1985         set_gdbarch_displaced_step_free_closure,
1986         set_gdbarch_displaced_step_location,
1987         and set_gdbarch_displaced_step_hw_singlestep.
1988         * aarch64-tdep.c (struct displaced_step_closure): New.
1989         (struct aarch64_displaced_step_data): New.
1990         (aarch64_displaced_step_b): New function.
1991         (aarch64_displaced_step_b_cond): Likewise.
1992         (aarch64_register): Likewise.
1993         (aarch64_displaced_step_cb): Likewise.
1994         (aarch64_displaced_step_tb): Likewise.
1995         (aarch64_displaced_step_adr): Likewise.
1996         (aarch64_displaced_step_ldr_literal): Likewise.
1997         (aarch64_displaced_step_others): Likewise.
1998         (aarch64_displaced_step_copy_insn): Likewise.
1999         (aarch64_displaced_step_fixup): Likewise.
2000         (aarch64_displaced_step_hw_singlestep): Likewise.
2001         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
2002         (aarch64_displaced_step_copy_insn): Declare.
2003         (aarch64_displaced_step_fixup): Declare.
2004         (aarch64_displaced_step_hw_singlestep): Declare.
2005         * arch/aarch64-insn.c (emit_insn): Moved from
2006         gdbserver/linux-aarch64-low.c.
2007         (emit_load_store): Likewise.
2008         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
2009         gdbserver/linux-aarch64-low.c.
2010         (struct aarch64_register): Likewise.
2011         (struct aarch64_memory_operand): Likewise.
2012         (ENCODE): Likewise.
2013         (can_encode_int32): New macro.
2014         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
2015         (emit_tb, emit_nop): Likewise.
2016         (emit_insn): Declare.
2017         (emit_load_store): Declare.
2019 2015-10-12  Yao Qi  <yao.qi@linaro.org>
2021         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
2022         gdbserver/linux-aarch64-low.c.
2023         (aarch64_relocate_instruction): Likewise.
2024         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
2025         (struct aarch64_insn_data): Moved from
2026         gdbserver/linux-aarch64-low.c.
2027         (struct aarch64_insn_visitor): Likewise.
2028         (aarch64_relocate_instruction): Declare.
2030 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
2032         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
2033         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
2034         to the returned value.
2036 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2038         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
2039         is large enough for BIT_SIZE.  Update function comment.
2041 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2043         * ada-lang.c (ada_value_primitive_packed_val): Move
2044         src_len variable to local block where used.  Override
2045         BIT_SIZE if bigger than size of resolved type.
2047 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2049         * gdbtypes.h (is_scalar_type): Add extern declaration.
2050         * gdbtypes.c (is_scalar_type): Make non-static.
2051         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
2052         to compute IS_SCALAR instead of doing it ourselves.
2054 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2056         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
2057         of case where TYPE is dynamic.
2059 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2061         * ada-lang.c (ada_unpack_from_contents): New function,
2062         extracted from ada_value_primitive_packed_val.
2063         (ada_value_primitive_packed_val): Replace extracted out code
2064         by call to ada_unpack_from_contents.
2066 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2068         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
2069         variable declarations.
2071 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2073         * ada-lang.c (ada_value_primitive_packed_val): Change the type
2074         of local variables src and unpacked to "gdb_type *" instead of
2075         "unsigned char *".
2077 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
2079         * ada-lang.c (ada_value_primitive_packed_val): Make the name
2080         of various local variables more explicit and consistent.
2081         No real code change otherwise.
2083 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
2085         * i386-tdep.h (struct gdbarch_tdep): Change type of
2086         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
2088 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
2090         * cris-tdep.c (struct instruction_environment): Change type of
2091         byte_order to enum bfd_endian.
2093 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
2095         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
2096         enum gdb_syscall casts.
2098 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
2100         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
2101         * arm-tdep.c (struct stack_item): Likewise.
2102         (push_stack_item): Add gdb_byte* cast.
2103         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
2104         (push_stack_item): Add gdb_byte* cast.
2105         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
2106         and add cast.
2107         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
2108         (push_stack_item): Add gdb_byte* cast.
2109         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
2110         add cast.
2111         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
2112         gdb_byte*.
2113         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
2114         gdb_byte* and remove unnecessary cast.
2115         (h8300h_extract_return_value): Likewise.
2116         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
2117         (h8300h_store_return_value): Likewise.
2118         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
2119         gdb_byte* and remove unnecessary cast.
2120         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
2121         and add cast.
2122         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
2123         gdb_byte* and remove unnecessary cast.
2124         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
2125         valbuf.
2126         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
2127         (mep_pseudo_cr64_read): Likewise.
2128         (mep_pseudo_csr_write): Likewise.
2129         (mep_pseudo_cr32_write): Likewise.
2130         (mep_pseudo_cr64_write): Likewise.
2131         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
2132         gdb_byte* and add cast.
2133         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
2134         gdb_byte* and remove unnecessary cast.
2135         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
2136         valbuf.
2137         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
2138         gdb_byte*.
2139         * printcmd.c (void): Likewise.
2140         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
2141         gdb_byte* and add cast.
2142         (infpy_write_memory): Likewise.
2143         (infpy_search_memory): Likewise.
2144         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
2145         and add cast.
2146         (regcache_raw_write_unsigned): Likewise.
2147         (regcache_cooked_write_signed): Likewise.
2148         (regcache_cooked_write_unsigned): Likewise.
2149         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
2150         gdb_byte*.
2152 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
2154         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
2155         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
2157 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
2159         * stack.c (print_stack_frame):
2160         * utils.c (printchar): Fix typos in commentary.
2162 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
2164         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
2165         (PostfixExpression): Support `expr.sizeof' expressions.
2166         (PrimaryExpression): Support `typeof(expr)' expressions.
2168 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
2170         * MAINTAINERS: Update my email address.
2172 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
2174         * record-btrace.c (record_btrace_resume): Fix void return.
2176 2015-10-07  Yao Qi  <yao.qi@linaro.org>
2178         * aarch64-tdep.c: Include opcode/aarch64.h.
2179         (submask): Move it above.
2180         (bit): Likewise.
2181         (bits): Likewise.
2182         (aarch64_software_single_step): Call aarch64_decode_insn.
2183         Decode instruction by aarch64_inst instead of using
2184         aarch64_decode_bcond and decode_masked_match.
2186 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2188         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
2189         only when the file is binary.
2191 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
2193         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
2194         subroutine handling.
2196 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
2198         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
2200 2015-09-30  Doug Evans  <dje@google.com>
2202         * dwarf2read.c (setup_type_unit_groups): Add comment.
2204 2015-09-30  Pedro Alves  <palves@redhat.com>
2206         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
2207         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
2208         (x86_linux_create_target): Don't install
2209         x86_linux_always_non_stop_p.
2211 2015-09-30  Don Breazeal  <donb@codesourcery.com>
2213         * remote.c (remote_parse_stop_reply): Call strprefix instead
2214         of strncmp.
2216 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
2218         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
2219         * gdbarch.h: Regenerate.
2220         * i386-tdep.c (i386_gdbarch_init): Remove cast to
2221         struct gdbarch_tdep_info *.
2222         * mips-tdep.c (mips_gdbarch_init): Likewise.
2223         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
2224         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2225         * spu-multiarch.c (spu_gdbarch): Likewise.
2227 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
2229         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
2230         record a NULL value.
2232 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
2234         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
2235         and union arguments the same as pointer arguments when determining
2236         size of argument.
2238 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
2240         * ft32-tdep.c: #include "opcode/ft32.h".
2241         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
2242         (ft32_analyze_prologue): Use FT32_* macros.
2244 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
2246         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2247         comment.
2249 2015-09-28  Doug Evans  <dje@google.com>
2251         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
2253 2015-09-28  Doug Evans  <dje@google.com>
2255         * common/filestuff.c (make_cleanup_close): Update comment.
2257 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
2259         * btrace.c (parse_xml_btrace_block): Fix cast of
2260         xml_find_attribute's return value.
2261         * memory-map.c (memory_map_start_memory): Likewise.
2262         * solib-svr4.c (library_list_start_library): Likewise.
2263         * solib-target.c (library_list_start_segment): Likewise.
2264         (library_list_start_section): Likewise.
2265         * tracepoint.c (traceframe_info_start_memory): Likewise.
2267 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
2269         * d-namespace.c (d_lookup_symbol): New arg langdef.
2270         All callers updated.  Support looking up symbol as a primitive type.
2271         (lookup_module_scope): New arg langdef.  All callers updated.
2272         Call d_lookup_symbol directly for simple bare symbols.
2274 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
2276         * macrocmd.c (print_macro_callback): Add cast(s).
2277         * macrotab.c (macro_bcache_str): Likewise.
2278         (new_macro_definition): Likewise.
2279         * main.c (captured_main): Likewise.
2280         * maint.c (print_bfd_section_info): Likewise.
2281         * mdebugread.c (mdebug_build_psymtabs): Likewise.
2282         (basic_type): Likewise.
2283         * memattr.c (mem_region_cmp): Likewise.
2284         * memory-map.c (memory_map_start_memory): Likewise.
2285         (memory_map_end_memory): Likewise.
2286         (memory_map_start_property): Likewise.
2287         (memory_map_end_property): Likewise.
2288         (clear_result): Likewise.
2289         * memrange.c (compare_mem_ranges): Likewise.
2290         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
2291         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
2292         * mi/mi-console.c (mi_console_file_delete): Likewise.
2293         (mi_console_file_fputs): Likewise.
2294         (mi_console_raw_packet): Likewise.
2295         (mi_console_file_flush): Likewise.
2296         (mi_console_set_raw): Likewise.
2297         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
2298         (mi_new_thread): Likewise.
2299         (mi_thread_exit): Likewise.
2300         (mi_record_changed): Likewise.
2301         (mi_inferior_added): Likewise.
2302         (mi_inferior_appeared): Likewise.
2303         (mi_inferior_exit): Likewise.
2304         (mi_inferior_removed): Likewise.
2305         (mi_interp_data): Likewise.
2306         (mi_on_normal_stop): Likewise.
2307         (mi_traceframe_changed): Likewise.
2308         (mi_tsv_created): Likewise.
2309         (mi_tsv_deleted): Likewise.
2310         (mi_tsv_modified): Likewise.
2311         (mi_breakpoint_created): Likewise.
2312         (mi_breakpoint_deleted): Likewise.
2313         (mi_breakpoint_modified): Likewise.
2314         (mi_output_running_pid): Likewise.
2315         (mi_inferior_count): Likewise.
2316         (mi_solib_loaded): Likewise.
2317         (mi_solib_unloaded): Likewise.
2318         (mi_command_param_changed): Likewise.
2319         (mi_memory_changed): Likewise.
2320         (report_initial_inferior): Likewise.
2321         (mi_ui_out): Likewise.
2322         (mi_set_logging): Likewise.
2323         * mi/mi-main.c (collect_cores): Likewise.
2324         (print_one_inferior): Likewise.
2325         (free_vector_of_ints): Likewise.
2326         (free_splay_tree): Likewise.
2327         (mi_execute_command): Likewise.
2328         * mi/mi-out.c (mi_table_body): Likewise.
2329         (mi_table_end): Likewise.
2330         (mi_table_header): Likewise.
2331         (mi_begin): Likewise.
2332         (mi_end): Likewise.
2333         (mi_field_int): Likewise.
2334         (mi_field_string): Likewise.
2335         (mi_field_fmt): Likewise.
2336         (mi_flush): Likewise.
2337         (mi_redirect): Likewise.
2338         (field_separator): Likewise.
2339         (mi_open): Likewise.
2340         (mi_close): Likewise.
2341         (mi_out_buffered): Likewise.
2342         (mi_out_rewind): Likewise.
2343         (mi_out_put): Likewise.
2344         (mi_version): Likewise.
2345         (mi_out_data_dtor): Likewise.
2346         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
2347         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
2348         * minidebug.c (lzma_open): Likewise.
2349         (lzma_pread): Likewise.
2350         (lzma_close): Likewise.
2351         (lzma_stat): Likewise.
2352         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
2353         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
2354         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
2355         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
2356         (mips_micro_frame_cache): Likewise.
2357         (mips_insn32_frame_cache): Likewise.
2358         (mips_stub_frame_cache): Likewise.
2359         (gdb_print_insn_mips): Likewise.
2360         (value_of_mips_user_reg): Likewise.
2361         (mips_gdbarch_init): Likewise.
2362         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
2363         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
2364         (mipsnbsd_supply_gregset): Likewise.
2365         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
2366         (am33_collect_gregset_method): Likewise.
2367         (am33_collect_fpregset_method): Likewise.
2368         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
2369         * moxie-tdep.c (moxie_frame_cache): Likewise.
2370         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
2371         (msp430_analyze_frame_prologue): Likewise.
2372         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
2373         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
2374         (nios2_collect_gregset): Likewise.
2375         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
2376         (nios2_stub_frame_cache): Likewise.
2377         * objc-lang.c (find_methods): Likewise.
2378         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2379         (get_objfile_pspace_data): Likewise.
2380         (get_objfile_bfd_data): Likewise.
2381         (objfile_bfd_data_free): Likewise.
2382         (add_to_objfile_sections): Likewise.
2383         (do_free_objfile_cleanup): Likewise.
2384         (resume_section_map_updates_cleanup): Likewise.
2385         * opencl-lang.c (builtin_opencl_type): Likewise.
2386         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2387         * osdata.c (osdata_start_osdata): Likewise.
2388         (osdata_start_item): Likewise.
2389         (osdata_start_column): Likewise.
2390         (osdata_end_column): Likewise.
2391         (clear_parsing_data): Likewise.
2392         (osdata_free_cleanup): Likewise.
2393         * parse.c (type_stack_cleanup): Likewise.
2394         (exp_uses_objfile_iter): Likewise.
2395         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
2396         (ppc_linux_collect_gregset): Likewise.
2397         (ppu2spu_prev_arch): Likewise.
2398         (ppu2spu_this_id): Likewise.
2399         (ppu2spu_prev_register): Likewise.
2400         (ppu2spu_unwind_register): Likewise.
2401         (ppu2spu_sniffer): Likewise.
2402         (ppu2spu_dealloc_cache): Likewise.
2403         (ppc_linux_init_abi): Likewise.
2404         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
2405         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2406         * progspace.c (restore_program_space): Likewise.
2407         * psymtab.c (find_pc_sect_psymtab): Likewise.
2408         (compare_psymbols): Likewise.
2409         (psymbol_bcache_full): Likewise.
2410         (allocate_psymtab): Likewise.
2411         (discard_psymtabs_upto): Likewise.
2412         * python/py-block.c (set_block): Likewise.
2413         (del_objfile_blocks): Likewise.
2414         * python/py-breakpoint.c (build_bp_list): Likewise.
2415         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
2416         (build_inferior_list): Likewise.
2417         (py_free_inferior): Likewise.
2418         * python/py-objfile.c (py_free_objfile): Likewise.
2419         (objfile_to_objfile_object): Likewise.
2420         * python/py-prettyprint.c (py_restore_tstate): Likewise.
2421         * python/py-progspace.c (py_free_pspace): Likewise.
2422         (pspace_to_pspace_object): Likewise.
2423         * python/py-symbol.c (set_symbol): Likewise.
2424         (del_objfile_symbols): Likewise.
2425         * python/py-symtab.c (set_sal): Likewise.
2426         (set_symtab): Likewise.
2427         (del_objfile_symtab): Likewise.
2428         (del_objfile_sal): Likewise.
2429         * python/py-type.c (save_objfile_types): Likewise.
2430         (set_type): Likewise.
2431         * python/py-unwind.c (pyuw_prev_register): Likewise.
2432         (pyuw_on_new_gdbarch): Likewise.
2433         * python/py-utils.c (py_decref): Likewise.
2434         (py_xdecref): Likewise.
2435         (gdb_py_generic_dict): Likewise.
2436         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
2437         (gdbpy_clone_xmethod_worker_data): Likewise.
2438         (gdbpy_get_xmethod_arg_types): Likewise.
2439         (gdbpy_get_xmethod_result_type): Likewise.
2440         (gdbpy_invoke_xmethod): Likewise.
2441         * python/python.c (gdbpy_apply_type_printers): Likewise.
2442         (gdbpy_free_type_printers): Likewise.
2443         * record-btrace.c (record_btrace_disable_callback): Likewise.
2444         (bfcache_hash): Likewise.
2445         (bfcache_eq): Likewise.
2446         (btrace_get_frame_function): Likewise.
2447         (record_btrace_frame_unwind_stop_reason): Likewise.
2448         (record_btrace_frame_this_id): Likewise.
2449         (record_btrace_frame_prev_register): Likewise.
2450         (record_btrace_frame_dealloc_cache): Likewise.
2451         * record-full.c (record_full_message_wrapper): Likewise.
2452         (record_full_save_cleanups): Likewise.
2453         * regcache.c (regcache_descr): Likewise.
2454         (do_regcache_xfree): Likewise.
2455         (do_regcache_invalidate): Likewise.
2456         (do_cooked_read): Likewise.
2457         (regcache_transfer_regset): Likewise.
2458         * reggroups.c (reggroup_add): Likewise.
2459         (reggroup_next): Likewise.
2460         (reggroup_prev): Likewise.
2461         * remote-fileio.c (do_remote_fileio_request): Likewise.
2462         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
2463         (do_notif_event_xfree): Likewise.
2464         * remote.c (get_remote_arch_state): Likewise.
2465         (remote_pspace_data_cleanup): Likewise.
2466         (get_remote_exec_file): Likewise.
2467         (set_pspace_remote_exec_file): Likewise.
2468         (compare_pnums): Likewise.
2469         (clear_threads_listing_context): Likewise.
2470         (remote_newthread_step): Likewise.
2471         (start_thread): Likewise.
2472         (end_thread): Likewise.
2473         (remove_child_of_pending_fork): Likewise.
2474         (remove_stop_reply_for_inferior): Likewise.
2475         (remove_stop_reply_of_remote_state): Likewise.
2476         (remote_notif_remove_once_on_match): Likewise.
2477         (stop_reply_match_ptid_and_ws): Likewise.
2478         (kill_child_of_pending_fork): Likewise.
2479         (register_remote_g_packet_guess): Likewise.
2480         (remote_read_description_p): Likewise.
2481         (remote_read_description): Likewise.
2482         (free_actions_list_cleanup_wrapper): Likewise.
2483         (remote_async_serial_handler): Likewise.
2484         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
2485         (rl78_analyze_frame_prologue): Likewise.
2486         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
2487         (ppc_supply_fpregset): Likewise.
2488         (ppc_supply_vsxregset): Likewise.
2489         (ppc_supply_vrregset): Likewise.
2490         (ppc_collect_gregset): Likewise.
2491         (ppc_collect_fpregset): Likewise.
2492         (ppc_collect_vsxregset): Likewise.
2493         (ppc_collect_vrregset): Likewise.
2494         (e500_move_ev_register): Likewise.
2495         (do_regcache_raw_write): Likewise.
2496         (rs6000_frame_cache): Likewise.
2497         (rs6000_epilogue_frame_cache): Likewise.
2498         (rs6000_gdbarch_init): Likewise.
2499         * rx-tdep.c (rx_get_opcode_byte): Likewise.
2500         (rx_analyze_frame_prologue): Likewise.
2501         (rx_frame_type): Likewise.
2502         (rx_frame_sniffer_common): Likewise.
2503         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
2504         (s390_frame_unwind_cache): Likewise.
2505         (s390_stub_frame_unwind_cache): Likewise.
2506         (s390_sigtramp_frame_unwind_cache): Likewise.
2507         * score-tdep.c (score_make_prologue_cache): Likewise.
2508         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
2509         (sentinel_frame_prev_arch): Likewise.
2510         * ser-base.c (fd_event): Likewise.
2511         (push_event): Likewise.
2512         (ser_base_write): Likewise.
2513         * ser-pipe.c (pipe_close): Likewise.
2514         * serial.c (serial_write): Likewise.
2515         * sh-tdep.c (sh_frame_cache): Likewise.
2516         (sh_stub_this_id): Likewise.
2517         * sh64-tdep.c (sh64_frame_cache): Likewise.
2518         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2519         (library_list_start_library): Likewise.
2520         (library_list_start_list): Likewise.
2521         (solib_aix_free_library_list): Likewise.
2522         * solib-darwin.c (get_darwin_info): Likewise.
2523         * solib-dsbt.c (get_dsbt_info): Likewise.
2524         * solib-spu.c (append_ocl_sos): Likewise.
2525         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2526         (get_svr4_info): Likewise.
2527         (library_list_start_library): Likewise.
2528         (svr4_library_list_start_list): Likewise.
2529         (hash_probe_and_action): Likewise.
2530         (equal_probe_and_action): Likewise.
2531         (svr4_update_solib_event_breakpoint): Likewise.
2532         (set_solib_svr4_fetch_link_map_offsets): Likewise.
2533         (svr4_fetch_link_map_offsets): Likewise.
2534         (svr4_have_link_map_offsets): Likewise.
2535         * solib-target.c (library_list_start_segment): Likewise.
2536         (library_list_start_section): Likewise.
2537         (library_list_start_library): Likewise.
2538         (library_list_end_library): Likewise.
2539         (library_list_start_list): Likewise.
2540         (solib_target_free_library_list): Likewise.
2541         * solib.c (solib_ops): Likewise.
2542         (set_solib_ops): Likewise.
2543         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2544         * sparc-tdep.c (sparc_frame_cache): Likewise.
2545         (sparc32_frame_cache): Likewise.
2546         (sparc32_supply_gregset): Likewise.
2547         (sparc32_collect_gregset): Likewise.
2548         (sparc32_supply_fpregset): Likewise.
2549         (sparc32_collect_fpregset): Likewise.
2550         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2551         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2552         (sparc64_collect_gregset): Likewise.
2553         (sparc64_supply_fpregset): Likewise.
2554         (sparc64_collect_fpregset): Likewise.
2555         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
2556         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2557         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2558         (sparc64obsd_trapframe_cache): Likewise.
2559         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
2560         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2561         * spu-multiarch.c (spu_gdbarch): Likewise.
2562         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
2563         (spu2ppu_prev_arch): Likewise.
2564         (spu2ppu_this_id): Likewise.
2565         (spu2ppu_prev_register): Likewise.
2566         (spu2ppu_dealloc_cache): Likewise.
2567         (spu_dis_asm_print_address): Likewise.
2568         (gdb_print_insn_spu): Likewise.
2569         (spu_get_overlay_table): Likewise.
2570         * stabsread.c (rs6000_builtin_type): Likewise.
2571         * stack.c (do_print_variable_and_value): Likewise.
2572         * stap-probe.c (get_stap_base_address_1): Likewise.
2573         * symfile-debug.c (debug_qf_has_symbols): Likewise.
2574         (debug_qf_find_last_source_symtab): Likewise.
2575         (debug_qf_forget_cached_source_info): Likewise.
2576         (debug_qf_map_symtabs_matching_filename): Likewise.
2577         (debug_qf_lookup_symbol): Likewise.
2578         (debug_qf_print_stats): Likewise.
2579         (debug_qf_dump): Likewise.
2580         (debug_qf_relocate): Likewise.
2581         (debug_qf_expand_symtabs_for_function): Likewise.
2582         (debug_qf_expand_all_symtabs): Likewise.
2583         (debug_qf_expand_symtabs_with_fullname): Likewise.
2584         (debug_qf_map_matching_symbols): Likewise.
2585         (debug_qf_expand_symtabs_matching): Likewise.
2586         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
2587         (debug_qf_map_symbol_filenames): Likewise.
2588         (debug_sym_get_probes): Likewise.
2589         (debug_sym_new_init): Likewise.
2590         (debug_sym_init): Likewise.
2591         (debug_sym_read): Likewise.
2592         (debug_sym_read_psymbols): Likewise.
2593         (debug_sym_finish): Likewise.
2594         (debug_sym_offsets): Likewise.
2595         (debug_sym_read_linetable): Likewise.
2596         (debug_sym_relocate): Likewise.
2597         (uninstall_symfile_debug_logging): Likewise.
2598         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
2599         * symfile.c (place_section): Likewise.
2600         (add_section_size_callback): Likewise.
2601         (load_progress): Likewise.
2602         (load_section_callback): Likewise.
2603         (clear_memory_write_data): Likewise.
2604         (allocate_symtab): Likewise.
2605         * symmisc.c (maintenance_expand_file_matcher): Likewise.
2606         * symtab.c (lookup_symtab_callback): Likewise.
2607         (hash_demangled_name_entry): Likewise.
2608         (eq_demangled_name_entry): Likewise.
2609         (get_symbol_cache): Likewise.
2610         (symbol_cache_cleanup): Likewise.
2611         (set_symbol_cache_size): Likewise.
2612         (symbol_cache_flush): Likewise.
2613         (maintenance_print_symbol_cache): Likewise.
2614         (maintenance_print_symbol_cache_statistics): Likewise.
2615         (delete_filename_seen_cache): Likewise.
2616         (output_partial_symbol_filename): Likewise.
2617         (search_symbols_file_matches): Likewise.
2618         (search_symbols_name_matches): Likewise.
2619         (do_free_completion_list): Likewise.
2620         (maybe_add_partial_symtab_filename): Likewise.
2621         (get_main_info): Likewise.
2622         (main_info_cleanup): Likewise.
2623         * target-dcache.c (target_dcache_cleanup): Likewise.
2624         (target_dcache_init_p): Likewise.
2625         (target_dcache_invalidate): Likewise.
2626         (target_dcache_get): Likewise.
2627         (target_dcache_get_or_init): Likewise.
2628         * target-descriptions.c (target_find_description): Likewise.
2629         (tdesc_find_type): Likewise.
2630         (tdesc_data_cleanup): Likewise.
2631         (tdesc_find_arch_register): Likewise.
2632         (tdesc_register_name): Likewise.
2633         (tdesc_register_type): Likewise.
2634         (tdesc_register_reggroup_p): Likewise.
2635         (set_tdesc_pseudo_register_name): Likewise.
2636         (set_tdesc_pseudo_register_type): Likewise.
2637         (set_tdesc_pseudo_register_reggroup_p): Likewise.
2638         (tdesc_use_registers): Likewise.
2639         (free_target_description): Likewise.
2640         * target-memory.c (compare_block_starting_address): Likewise.
2641         (cleanup_request_data): Likewise.
2642         (cleanup_write_requests_vector): Likewise.
2643         * target.c (open_target): Likewise.
2644         (cleanup_restore_target_terminal): Likewise.
2645         (free_memory_read_result_vector): Likewise.
2646         * thread.c (disable_thread_stack_temporaries): Likewise.
2647         (finish_thread_state_cleanup): Likewise.
2648         (do_restore_current_thread_cleanup): Likewise.
2649         (restore_current_thread_cleanup_dtor): Likewise.
2650         (set_thread_refcount): Likewise.
2651         (tp_array_compar): Likewise.
2652         (do_captured_thread_select): Likewise.
2653         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
2654         (tic6x_stub_this_id): Likewise.
2655         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
2656         * top.c (do_restore_instream_cleanup): Likewise.
2657         (gdb_readline_wrapper_cleanup): Likewise.
2658         (kill_or_detach): Likewise.
2659         (print_inferior_quit_action): Likewise.
2660         * tracefile-tfile.c (match_blocktype): Likewise.
2661         (build_traceframe_info): Likewise.
2662         * tracefile.c (trace_file_writer_xfree): Likewise.
2663         * tracepoint.c (memrange_cmp): Likewise.
2664         (do_collect_symbol): Likewise.
2665         (do_clear_collection_list): Likewise.
2666         (do_restore_current_traceframe_cleanup): Likewise.
2667         (restore_current_traceframe_cleanup_dtor): Likewise.
2668         (free_current_marker): Likewise.
2669         (traceframe_info_start_memory): Likewise.
2670         (traceframe_info_start_tvar): Likewise.
2671         (free_result): Likewise.
2672         * tramp-frame.c (tramp_frame_cache): Likewise.
2673         * tui/tui-file.c (tui_file_delete): Likewise.
2674         (tui_fileopen): Likewise.
2675         (tui_sfileopen): Likewise.
2676         (tui_file_isatty): Likewise.
2677         (tui_file_rewind): Likewise.
2678         (tui_file_put): Likewise.
2679         (tui_file_fputs): Likewise.
2680         (tui_file_get_strbuf): Likewise.
2681         (tui_file_adjust_strbuf): Likewise.
2682         (tui_file_flush): Likewise.
2683         * tui/tui-layout.c (make_command_window): Likewise.
2684         (make_data_window): Likewise.
2685         (show_source_disasm_command): Likewise.
2686         (show_data): Likewise.
2687         (make_source_or_disasm_window): Likewise.
2688         (show_source_or_disasm_and_command): Likewise.
2689         * tui/tui-out.c (tui_field_int): Likewise.
2690         (tui_field_string): Likewise.
2691         (tui_field_fmt): Likewise.
2692         (tui_text): Likewise.
2693         * typeprint.c (hash_typedef_field): Likewise.
2694         (eq_typedef_field): Likewise.
2695         (do_free_typedef_hash): Likewise.
2696         (copy_typedef_hash_element): Likewise.
2697         (do_free_global_table): Likewise.
2698         (find_global_typedef): Likewise.
2699         (find_typedef_in_hash): Likewise.
2700         * ui-file.c (ui_file_write_for_put): Likewise.
2701         (do_ui_file_xstrdup): Likewise.
2702         (mem_file_delete): Likewise.
2703         (mem_file_rewind): Likewise.
2704         (mem_file_put): Likewise.
2705         (mem_file_write): Likewise.
2706         (stdio_file_delete): Likewise.
2707         (stdio_file_flush): Likewise.
2708         (stdio_file_read): Likewise.
2709         (stdio_file_write): Likewise.
2710         (stdio_file_write_async_safe): Likewise.
2711         (stdio_file_fputs): Likewise.
2712         (stdio_file_isatty): Likewise.
2713         (stdio_file_fseek): Likewise.
2714         (tee_file_delete): Likewise.
2715         (tee_file_flush): Likewise.
2716         (tee_file_write): Likewise.
2717         (tee_file_fputs): Likewise.
2718         (tee_file_isatty): Likewise.
2719         * ui-out.c (do_cleanup_table_end): Likewise.
2720         (do_cleanup_end): Likewise.
2721         * user-regs.c (user_reg_add): Likewise.
2722         (user_reg_map_name_to_regnum): Likewise.
2723         (usernum_to_user_reg): Likewise.
2724         (maintenance_print_user_registers): Likewise.
2725         * utils.c (do_bfd_close_cleanup): Likewise.
2726         (do_fclose_cleanup): Likewise.
2727         (do_obstack_free): Likewise.
2728         (do_ui_file_delete): Likewise.
2729         (do_ui_out_redirect_pop): Likewise.
2730         (do_free_section_addr_info): Likewise.
2731         (restore_integer): Likewise.
2732         (do_unpush_target): Likewise.
2733         (do_htab_delete_cleanup): Likewise.
2734         (do_restore_ui_file): Likewise.
2735         (do_value_free): Likewise.
2736         (do_free_so): Likewise.
2737         (free_current_contents): Likewise.
2738         (do_regfree_cleanup): Likewise.
2739         (core_addr_hash): Likewise.
2740         (core_addr_eq): Likewise.
2741         (do_free_char_ptr_vec): Likewise.
2742         * v850-tdep.c (v850_frame_cache): Likewise.
2743         * varobj.c (do_free_variable_cleanup): Likewise.
2744         * vax-tdep.c (vax_supply_gregset): Likewise.
2745         (vax_frame_cache): Likewise.
2746         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
2747         * xml-support.c (gdb_xml_body_text): Likewise.
2748         (gdb_xml_values_cleanup): Likewise.
2749         (gdb_xml_start_element): Likewise.
2750         (gdb_xml_start_element_wrapper): Likewise.
2751         (gdb_xml_end_element): Likewise.
2752         (gdb_xml_end_element_wrapper): Likewise.
2753         (gdb_xml_cleanup): Likewise.
2754         (gdb_xml_fetch_external_entity): Likewise.
2755         (gdb_xml_parse_attr_enum): Likewise.
2756         (xinclude_start_include): Likewise.
2757         (xinclude_end_include): Likewise.
2758         (xml_xinclude_default): Likewise.
2759         (xml_xinclude_start_doctype): Likewise.
2760         (xml_xinclude_end_doctype): Likewise.
2761         (xml_xinclude_cleanup): Likewise.
2762         (xml_fetch_content_from_file): Likewise.
2763         * xml-syscall.c (free_syscalls_info): Likewise.
2764         (syscall_start_syscall): Likewise.
2765         * xml-tdesc.c (tdesc_end_arch): Likewise.
2766         (tdesc_end_osabi): Likewise.
2767         (tdesc_end_compatible): Likewise.
2768         (tdesc_start_target): Likewise.
2769         (tdesc_start_feature): Likewise.
2770         (tdesc_start_reg): Likewise.
2771         (tdesc_start_union): Likewise.
2772         (tdesc_start_struct): Likewise.
2773         (tdesc_start_flags): Likewise.
2774         (tdesc_start_field): Likewise.
2775         (tdesc_start_vector): Likewise.
2776         (fetch_available_features_from_target): Likewise.
2777         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
2778         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
2779         (xtensa_frame_cache): Likewise.
2780         (xtensa_frame_prev_register): Likewise.
2781         (xtensa_extract_return_value): Likewise.
2783 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
2785         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
2786         (aarch64_make_stub_cache): Likewise.
2787         (value_of_aarch64_user_reg): Likewise.
2788         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
2789         (get_ada_inferior_data): Likewise.
2790         (get_ada_pspace_data): Likewise.
2791         (ada_pspace_data_cleanup): Likewise.
2792         (ada_complete_symbol_matcher): Likewise.
2793         (ada_exc_search_name_matches): Likewise.
2794         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2795         (get_ada_tasks_inferior_data): Likewise.
2796         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
2797         (splay_obstack_alloc): Likewise.
2798         (splay_obstack_free): Likewise.
2799         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
2800         (alpha_linux_collect_gregset): Likewise.
2801         (alpha_linux_supply_fpregset): Likewise.
2802         (alpha_linux_collect_fpregset): Likewise.
2803         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2804         * alpha-tdep.c (alpha_lds): Likewise.
2805         (alpha_sts): Likewise.
2806         (alpha_sigtramp_frame_unwind_cache): Likewise.
2807         (alpha_heuristic_frame_unwind_cache): Likewise.
2808         (alpha_supply_int_regs): Likewise.
2809         (alpha_fill_int_regs): Likewise.
2810         (alpha_supply_fp_regs): Likewise.
2811         (alpha_fill_fp_regs): Likewise.
2812         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
2813         (alphanbsd_aout_supply_gregset): Likewise.
2814         (alphanbsd_supply_gregset): Likewise.
2815         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
2816         (amd64_x32_linux_init_abi): Likewise.
2817         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2818         (amd64_collect_native_gregset): Likewise.
2819         * amd64-tdep.c (amd64_frame_cache): Likewise.
2820         (amd64_sigtramp_frame_cache): Likewise.
2821         (amd64_epilogue_frame_cache): Likewise.
2822         (amd64_supply_fxsave): Likewise.
2823         (amd64_supply_xsave): Likewise.
2824         (amd64_collect_fxsave): Likewise.
2825         (amd64_collect_xsave): Likewise.
2826         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
2827         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
2828         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2829         (arm_linux_collect_gregset): Likewise.
2830         (arm_linux_supply_nwfpe): Likewise.
2831         (arm_linux_collect_nwfpe): Likewise.
2832         (arm_linux_supply_vfp): Likewise.
2833         (arm_linux_collect_vfp): Likewise.
2834         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
2835         (arm_prologue_unwind_stop_reason): Likewise.
2836         (arm_prologue_this_id): Likewise.
2837         (arm_prologue_prev_register): Likewise.
2838         (arm_exidx_data_free): Likewise.
2839         (arm_find_exidx_entry): Likewise.
2840         (arm_stub_this_id): Likewise.
2841         (arm_m_exception_this_id): Likewise.
2842         (arm_m_exception_prev_register): Likewise.
2843         (arm_normal_frame_base): Likewise.
2844         (gdb_print_insn_arm): Likewise.
2845         (arm_objfile_data_free): Likewise.
2846         (arm_record_special_symbol): Likewise.
2847         (value_of_arm_user_reg): Likewise.
2848         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
2849         (armbsd_supply_gregset): Likewise.
2850         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
2851         (get_auto_load_pspace_data): Likewise.
2852         (hash_loaded_script_entry): Likewise.
2853         (eq_loaded_script_entry): Likewise.
2854         (clear_section_scripts): Likewise.
2855         (collect_matching_scripts): Likewise.
2856         * auxv.c (auxv_inferior_data_cleanup): Likewise.
2857         (get_auxv_inferior_data): Likewise.
2858         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2859         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
2860         * bfd-target.c (target_bfd_xfer_partial): Likewise.
2861         (target_bfd_xclose): Likewise.
2862         (target_bfd_get_section_table): Likewise.
2863         * bfin-tdep.c (bfin_frame_cache): Likewise.
2864         * block.c (find_block_in_blockvector): Likewise.
2865         (call_site_for_pc): Likewise.
2866         (block_find_non_opaque_type_preferred): Likewise.
2867         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
2868         (signal_catchpoint_remove_location): Likewise.
2869         (signal_catchpoint_breakpoint_hit): Likewise.
2870         (signal_catchpoint_print_one): Likewise.
2871         (signal_catchpoint_print_mention): Likewise.
2872         (signal_catchpoint_print_recreate): Likewise.
2873         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
2874         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
2875         (bp_location_compare_addrs): Likewise.
2876         (get_first_locp_gte_addr): Likewise.
2877         (check_tracepoint_command): Likewise.
2878         (do_map_commands_command): Likewise.
2879         (get_breakpoint_objfile_data): Likewise.
2880         (free_breakpoint_probes): Likewise.
2881         (do_captured_breakpoint_query): Likewise.
2882         (compare_breakpoints): Likewise.
2883         (bp_location_compare): Likewise.
2884         (bpstat_remove_breakpoint_callback): Likewise.
2885         (do_delete_breakpoint_cleanup): Likewise.
2886         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
2887         (bsd_uthread_set_collect_uthread): Likewise.
2888         (bsd_uthread_activate): Likewise.
2889         (bsd_uthread_fetch_registers): Likewise.
2890         (bsd_uthread_store_registers): Likewise.
2891         * btrace.c (check_xml_btrace_version): Likewise.
2892         (parse_xml_btrace_block): Likewise.
2893         (parse_xml_btrace_pt_config_cpu): Likewise.
2894         (parse_xml_btrace_pt_raw): Likewise.
2895         (parse_xml_btrace_pt): Likewise.
2896         (parse_xml_btrace_conf_bts): Likewise.
2897         (parse_xml_btrace_conf_pt): Likewise.
2898         (do_btrace_data_cleanup): Likewise.
2899         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
2900         * charset.c (cleanup_iconv): Likewise.
2901         (do_cleanup_iterator): Likewise.
2902         * cli-out.c (cli_uiout_dtor): Likewise.
2903         (cli_table_begin): Likewise.
2904         (cli_table_body): Likewise.
2905         (cli_table_end): Likewise.
2906         (cli_table_header): Likewise.
2907         (cli_begin): Likewise.
2908         (cli_end): Likewise.
2909         (cli_field_int): Likewise.
2910         (cli_field_skip): Likewise.
2911         (cli_field_string): Likewise.
2912         (cli_field_fmt): Likewise.
2913         (cli_spaces): Likewise.
2914         (cli_text): Likewise.
2915         (cli_message): Likewise.
2916         (cli_wrap_hint): Likewise.
2917         (cli_flush): Likewise.
2918         (cli_redirect): Likewise.
2919         (out_field_fmt): Likewise.
2920         (field_separator): Likewise.
2921         (cli_out_set_stream): Likewise.
2922         * cli/cli-cmds.c (compare_symtabs): Likewise.
2923         * cli/cli-dump.c (call_dump_func): Likewise.
2924         (restore_section_callback): Likewise.
2925         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
2926         (do_restore_user_call_depth): Likewise.
2927         (do_free_command_lines_cleanup): Likewise.
2928         * coff-pe-read.c (get_section_vmas): Likewise.
2929         (pe_as16): Likewise.
2930         (pe_as32): Likewise.
2931         * coffread.c (coff_symfile_read): Likewise.
2932         * common/agent.c (agent_look_up_symbols): Likewise.
2933         * common/filestuff.c (do_close_cleanup): Likewise.
2934         * common/format.c (free_format_pieces_cleanup): Likewise.
2935         * common/vec.c (vec_o_reserve): Likewise.
2936         * compile/compile-c-support.c (print_one_macro): Likewise.
2937         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
2938         (eq_symbol_error): Likewise.
2939         (del_symbol_error): Likewise.
2940         (error_symbol_once): Likewise.
2941         (gcc_convert_symbol): Likewise.
2942         (gcc_symbol_address): Likewise.
2943         (hash_symname): Likewise.
2944         (eq_symname): Likewise.
2945         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
2946         (eq_type_map_instance): Likewise.
2947         (insert_type): Likewise.
2948         (convert_type): Likewise.
2949         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
2950         (setup_sections): Likewise.
2951         (link_hash_table_free): Likewise.
2952         (copy_sections): Likewise.
2953         * compile/compile-object-run.c (do_module_cleanup): Likewise.
2954         * compile/compile.c (compile_print_value): Likewise.
2955         (do_rmdir): Likewise.
2956         (cleanup_compile_instance): Likewise.
2957         (cleanup_unlink_file): Likewise.
2958         * completer.c (free_completion_tracker): Likewise.
2959         * corelow.c (add_to_spuid_list): Likewise.
2960         * cp-namespace.c (reset_directive_searched): Likewise.
2961         * cp-support.c (reset_directive_searched): Likewise.
2962         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
2963         (cris_frame_unwind_cache): Likewise.
2964         * d-lang.c (builtin_d_type): Likewise.
2965         * d-namespace.c (reset_directive_searched): Likewise.
2966         * dbxread.c (dbx_free_symfile_info): Likewise.
2967         (do_free_bincl_list_cleanup): Likewise.
2968         * disasm.c (hash_dis_line_entry): Likewise.
2969         (eq_dis_line_entry): Likewise.
2970         (dis_asm_print_address): Likewise.
2971         (fprintf_disasm): Likewise.
2972         (do_ui_file_delete): Likewise.
2973         * doublest.c (convert_floatformat_to_doublest): Likewise.
2974         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
2975         (dummy_frame_prev_register): Likewise.
2976         (dummy_frame_this_id): Likewise.
2977         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
2978         (cache_eq): Likewise.
2979         (cache_find): Likewise.
2980         (tailcall_frame_this_id): Likewise.
2981         (dwarf2_tailcall_prev_register_first): Likewise.
2982         (tailcall_frame_prev_register): Likewise.
2983         (tailcall_frame_dealloc_cache): Likewise.
2984         (tailcall_frame_prev_arch): Likewise.
2985         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
2986         (dwarf2_frame_set_init_reg): Likewise.
2987         (dwarf2_frame_init_reg): Likewise.
2988         (dwarf2_frame_set_signal_frame_p): Likewise.
2989         (dwarf2_frame_signal_frame_p): Likewise.
2990         (dwarf2_frame_set_adjust_regnum): Likewise.
2991         (dwarf2_frame_adjust_regnum): Likewise.
2992         (clear_pointer_cleanup): Likewise.
2993         (dwarf2_frame_cache): Likewise.
2994         (find_cie): Likewise.
2995         (dwarf2_frame_find_fde): Likewise.
2996         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
2997         (free_dwarf_expr_context_cleanup): Likewise.
2998         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
2999         (locexpr_get_frame_base): Likewise.
3000         (loclist_find_frame_base_location): Likewise.
3001         (loclist_get_frame_base): Likewise.
3002         (dwarf_expr_dwarf_call): Likewise.
3003         (dwarf_expr_get_base_type): Likewise.
3004         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
3005         (dwarf_expr_get_obj_addr): Likewise.
3006         (entry_data_value_coerce_ref): Likewise.
3007         (entry_data_value_copy_closure): Likewise.
3008         (entry_data_value_free_closure): Likewise.
3009         (get_frame_address_in_block_wrapper): Likewise.
3010         (dwarf2_evaluate_property): Likewise.
3011         (dwarf2_compile_property_to_c): Likewise.
3012         (needs_frame_read_addr_from_reg): Likewise.
3013         (needs_frame_get_reg_value): Likewise.
3014         (needs_frame_frame_base): Likewise.
3015         (needs_frame_frame_cfa): Likewise.
3016         (needs_frame_tls_address): Likewise.
3017         (needs_frame_dwarf_call): Likewise.
3018         (needs_dwarf_reg_entry_value): Likewise.
3019         (get_ax_pc): Likewise.
3020         (locexpr_read_variable): Likewise.
3021         (locexpr_read_variable_at_entry): Likewise.
3022         (locexpr_read_needs_frame): Likewise.
3023         (locexpr_describe_location): Likewise.
3024         (locexpr_tracepoint_var_ref): Likewise.
3025         (locexpr_generate_c_location): Likewise.
3026         (loclist_read_variable): Likewise.
3027         (loclist_read_variable_at_entry): Likewise.
3028         (loclist_describe_location): Likewise.
3029         (loclist_tracepoint_var_ref): Likewise.
3030         (loclist_generate_c_location): Likewise.
3031         * dwarf2read.c (line_header_hash_voidp): Likewise.
3032         (line_header_eq_voidp): Likewise.
3033         (dwarf2_has_info): Likewise.
3034         (dwarf2_get_section_info): Likewise.
3035         (locate_dwz_sections): Likewise.
3036         (hash_file_name_entry): Likewise.
3037         (eq_file_name_entry): Likewise.
3038         (delete_file_name_entry): Likewise.
3039         (dw2_setup): Likewise.
3040         (dw2_get_file_names_reader): Likewise.
3041         (dw2_find_pc_sect_compunit_symtab): Likewise.
3042         (hash_signatured_type): Likewise.
3043         (eq_signatured_type): Likewise.
3044         (add_signatured_type_cu_to_table): Likewise.
3045         (create_debug_types_hash_table): Likewise.
3046         (lookup_dwo_signatured_type): Likewise.
3047         (lookup_dwp_signatured_type): Likewise.
3048         (lookup_signatured_type): Likewise.
3049         (hash_type_unit_group): Likewise.
3050         (eq_type_unit_group): Likewise.
3051         (get_type_unit_group): Likewise.
3052         (process_psymtab_comp_unit_reader): Likewise.
3053         (sort_tu_by_abbrev_offset): Likewise.
3054         (process_skeletonless_type_unit): Likewise.
3055         (psymtabs_addrmap_cleanup): Likewise.
3056         (dwarf2_read_symtab): Likewise.
3057         (psymtab_to_symtab_1): Likewise.
3058         (die_hash): Likewise.
3059         (die_eq): Likewise.
3060         (load_full_comp_unit_reader): Likewise.
3061         (reset_die_in_process): Likewise.
3062         (free_cu_line_header): Likewise.
3063         (handle_DW_AT_stmt_list): Likewise.
3064         (hash_dwo_file): Likewise.
3065         (eq_dwo_file): Likewise.
3066         (hash_dwo_unit): Likewise.
3067         (eq_dwo_unit): Likewise.
3068         (create_dwo_cu_reader): Likewise.
3069         (create_dwo_unit_in_dwp_v1): Likewise.
3070         (create_dwo_unit_in_dwp_v2): Likewise.
3071         (lookup_dwo_unit_in_dwp): Likewise.
3072         (dwarf2_locate_dwo_sections): Likewise.
3073         (dwarf2_locate_common_dwp_sections): Likewise.
3074         (dwarf2_locate_v2_dwp_sections): Likewise.
3075         (hash_dwp_loaded_cutus): Likewise.
3076         (eq_dwp_loaded_cutus): Likewise.
3077         (lookup_dwo_cutu): Likewise.
3078         (abbrev_table_free_cleanup): Likewise.
3079         (dwarf2_free_abbrev_table): Likewise.
3080         (find_partial_die_in_comp_unit): Likewise.
3081         (free_line_header_voidp): Likewise.
3082         (follow_die_offset): Likewise.
3083         (follow_die_sig_1): Likewise.
3084         (free_heap_comp_unit): Likewise.
3085         (free_stack_comp_unit): Likewise.
3086         (dwarf2_free_objfile): Likewise.
3087         (per_cu_offset_and_type_hash): Likewise.
3088         (per_cu_offset_and_type_eq): Likewise.
3089         (get_die_type_at_offset): Likewise.
3090         (partial_die_hash): Likewise.
3091         (partial_die_eq): Likewise.
3092         (dwarf2_per_objfile_free): Likewise.
3093         (hash_strtab_entry): Likewise.
3094         (eq_strtab_entry): Likewise.
3095         (add_string): Likewise.
3096         (hash_symtab_entry): Likewise.
3097         (eq_symtab_entry): Likewise.
3098         (delete_symtab_entry): Likewise.
3099         (cleanup_mapped_symtab): Likewise.
3100         (add_indices_to_cpool): Likewise.
3101         (hash_psymtab_cu_index): Likewise.
3102         (eq_psymtab_cu_index): Likewise.
3103         (add_address_entry_worker): Likewise.
3104         (unlink_if_set): Likewise.
3105         (write_one_signatured_type): Likewise.
3106         (save_gdb_index_command): Likewise.
3107         * elfread.c (elf_symtab_read): Likewise.
3108         (elf_gnu_ifunc_cache_hash): Likewise.
3109         (elf_gnu_ifunc_cache_eq): Likewise.
3110         (elf_gnu_ifunc_record_cache): Likewise.
3111         (elf_gnu_ifunc_resolve_by_cache): Likewise.
3112         (elf_get_probes): Likewise.
3113         (probe_key_free): Likewise.
3114         * f-lang.c (builtin_f_type): Likewise.
3115         * frame-base.c (frame_base_append_sniffer): Likewise.
3116         (frame_base_set_default): Likewise.
3117         (frame_base_find_by_frame): Likewise.
3118         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
3119         (frame_unwind_append_unwinder): Likewise.
3120         (frame_unwind_find_by_frame): Likewise.
3121         * frame.c (frame_addr_hash): Likewise.
3122         (frame_addr_hash_eq): Likewise.
3123         (frame_stash_find): Likewise.
3124         (do_frame_register_read): Likewise.
3125         (unwind_to_current_frame): Likewise.
3126         (frame_cleanup_after_sniffer): Likewise.
3127         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
3128         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
3129         * ft32-tdep.c (ft32_frame_cache): Likewise.
3130         * gcore.c (do_bfd_delete_cleanup): Likewise.
3131         (gcore_create_callback): Likewise.
3132         * gdb_bfd.c (hash_bfd): Likewise.
3133         (eq_bfd): Likewise.
3134         (gdb_bfd_open): Likewise.
3135         (free_one_bfd_section): Likewise.
3136         (gdb_bfd_ref): Likewise.
3137         (gdb_bfd_unref): Likewise.
3138         (get_section_descriptor): Likewise.
3139         (gdb_bfd_map_section): Likewise.
3140         (gdb_bfd_crc): Likewise.
3141         (gdb_bfd_mark_parent): Likewise.
3142         (gdb_bfd_record_inclusion): Likewise.
3143         (gdb_bfd_requires_relocations): Likewise.
3144         (print_one_bfd): Likewise.
3145         * gdbtypes.c (type_pair_hash): Likewise.
3146         (type_pair_eq): Likewise.
3147         (builtin_type): Likewise.
3148         (objfile_type): Likewise.
3149         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
3150         (vtable_address_point_offset): Likewise.
3151         (gnuv3_get_vtable): Likewise.
3152         (hash_value_and_voffset): Likewise.
3153         (eq_value_and_voffset): Likewise.
3154         (compare_value_and_voffset): Likewise.
3155         (compute_vtable_size): Likewise.
3156         (gnuv3_get_typeid_type): Likewise.
3157         * go-lang.c (builtin_go_type): Likewise.
3158         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
3159         (bkscm_eq_block_smob): Likewise.
3160         (bkscm_objfile_block_map): Likewise.
3161         (bkscm_del_objfile_blocks): Likewise.
3162         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
3163         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
3164         (gdbscm_disasm_print_address): Likewise.
3165         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
3166         (frscm_eq_frame_smob): Likewise.
3167         (frscm_inferior_frame_map): Likewise.
3168         (frscm_del_inferior_frames): Likewise.
3169         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
3170         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
3171         (ofscm_objfile_smob_from_objfile): Likewise.
3172         * guile/scm-ports.c (ioscm_write): Likewise.
3173         (ioscm_file_port_delete): Likewise.
3174         (ioscm_file_port_rewind): Likewise.
3175         (ioscm_file_port_put): Likewise.
3176         (ioscm_file_port_write): Likewise.
3177         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
3178         (psscm_pspace_smob_from_pspace): Likewise.
3179         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
3180         (scscm_recording_unwind_handler): Likewise.
3181         (gdbscm_with_catch): Likewise.
3182         (scscm_call_0_body): Likewise.
3183         (scscm_call_1_body): Likewise.
3184         (scscm_call_2_body): Likewise.
3185         (scscm_call_3_body): Likewise.
3186         (scscm_call_4_body): Likewise.
3187         (scscm_apply_1_body): Likewise.
3188         (scscm_eval_scheme_string): Likewise.
3189         (gdbscm_safe_eval_string): Likewise.
3190         (scscm_source_scheme_script): Likewise.
3191         (gdbscm_safe_source_script): Likewise.
3192         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
3193         (gdbscm_call_scm_from_stringn): Likewise.
3194         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
3195         (syscm_eq_symbol_smob): Likewise.
3196         (syscm_get_symbol_map): Likewise.
3197         (syscm_del_objfile_symbols): Likewise.
3198         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
3199         (stscm_eq_symtab_smob): Likewise.
3200         (stscm_objfile_symtab_map): Likewise.
3201         (stscm_del_objfile_symtabs): Likewise.
3202         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
3203         (tyscm_eq_type_smob): Likewise.
3204         (tyscm_type_map): Likewise.
3205         (tyscm_copy_type_recursive): Likewise.
3206         (save_objfile_types): Likewise.
3207         * guile/scm-utils.c (extract_arg): Likewise.
3208         * h8300-tdep.c (h8300_frame_cache): Likewise.
3209         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
3210         * hppa-tdep.c (compare_unwind_entries): Likewise.
3211         (find_unwind_entry): Likewise.
3212         (hppa_frame_cache): Likewise.
3213         (hppa_stub_frame_unwind_cache): Likewise.
3214         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
3215         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
3216         (hppaobsd_supply_fpregset): Likewise.
3217         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
3218         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3219         * i386-tdep.c (i386_frame_cache): Likewise.
3220         (i386_epilogue_frame_cache): Likewise.
3221         (i386_sigtramp_frame_cache): Likewise.
3222         (i386_supply_gregset): Likewise.
3223         (i386_collect_gregset): Likewise.
3224         (i386_gdbarch_init): Likewise.
3225         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
3226         (i386obsd_trapframe_cache): Likewise.
3227         * i387-tdep.c (i387_supply_fsave): Likewise.
3228         (i387_collect_fsave): Likewise.
3229         (i387_supply_fxsave): Likewise.
3230         (i387_collect_fxsave): Likewise.
3231         (i387_supply_xsave): Likewise.
3232         (i387_collect_xsave): Likewise.
3233         * ia64-tdep.c (ia64_frame_cache): Likewise.
3234         (ia64_sigtramp_frame_cache): Likewise.
3235         * infcmd.c (attach_command_continuation): Likewise.
3236         (attach_command_continuation_free_args): Likewise.
3237         * inferior.c (restore_inferior): Likewise.
3238         (delete_thread_of_inferior): Likewise.
3239         * inflow.c (inflow_inferior_data_cleanup): Likewise.
3240         (get_inflow_inferior_data): Likewise.
3241         (inflow_inferior_exit): Likewise.
3242         * infrun.c (displaced_step_clear_cleanup): Likewise.
3243         (restore_current_uiout_cleanup): Likewise.
3244         (release_stop_context_cleanup): Likewise.
3245         (do_restore_infcall_suspend_state_cleanup): Likewise.
3246         (do_restore_infcall_control_state_cleanup): Likewise.
3247         (restore_inferior_ptid): Likewise.
3248         * inline-frame.c (block_starting_point_at): Likewise.
3249         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
3250         * jit.c (get_jit_objfile_data): Likewise.
3251         (get_jit_program_space_data): Likewise.
3252         (jit_object_close_impl): Likewise.
3253         (jit_find_objf_with_entry_addr): Likewise.
3254         (jit_breakpoint_deleted): Likewise.
3255         (jit_unwind_reg_set_impl): Likewise.
3256         (jit_unwind_reg_get_impl): Likewise.
3257         (jit_dealloc_cache): Likewise.
3258         (jit_frame_sniffer): Likewise.
3259         (jit_frame_prev_register): Likewise.
3260         (jit_prepend_unwinder): Likewise.
3261         (jit_inferior_exit_hook): Likewise.
3262         (free_objfile_data): Likewise.
3263         * jv-lang.c (jv_per_objfile_free): Likewise.
3264         (get_dynamics_objfile): Likewise.
3265         (get_java_class_symtab): Likewise.
3266         (builtin_java_type): Likewise.
3267         * language.c (language_string_char_type): Likewise.
3268         (language_bool_type): Likewise.
3269         (language_lookup_primitive_type): Likewise.
3270         (language_lookup_primitive_type_as_symbol): Likewise.
3271         * linespec.c (hash_address_entry): Likewise.
3272         (eq_address_entry): Likewise.
3273         (iterate_inline_only): Likewise.
3274         (iterate_name_matcher): Likewise.
3275         (decode_line_2_compare_items): Likewise.
3276         (collect_one_symbol): Likewise.
3277         (compare_symbols): Likewise.
3278         (compare_msymbols): Likewise.
3279         (add_symtabs_to_list): Likewise.
3280         (collect_symbols): Likewise.
3281         (compare_msyms): Likewise.
3282         (add_minsym): Likewise.
3283         (cleanup_linespec_result): Likewise.
3284         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
3285         * linux-nat.c (delete_lwp_cleanup): Likewise.
3286         (count_events_callback): Likewise.
3287         (select_event_lwp_callback): Likewise.
3288         (resume_stopped_resumed_lwps): Likewise.
3289         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
3290         (invalidate_linux_cache_inf): Likewise.
3291         (get_linux_inferior_data): Likewise.
3292         (linux_find_memory_regions_thunk): Likewise.
3293         (linux_make_mappings_callback): Likewise.
3294         (linux_corefile_thread_callback): Likewise.
3295         (find_mapping_size): Likewise.
3296         * linux-thread-db.c (find_new_threads_callback): Likewise.
3297         * lm32-tdep.c (lm32_frame_cache): Likewise.
3298         * m2-lang.c (builtin_m2_type): Likewise.
3299         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
3300         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
3301         (m32r_linux_supply_gregset): Likewise.
3302         (m32r_linux_collect_gregset): Likewise.
3303         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3304         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3305         * m68k-tdep.c (m68k_frame_cache): Likewise.
3306         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3307         (m68kbsd_supply_gregset): Likewise.
3308         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3309         * m88k-tdep.c (m88k_frame_cache): Likewise.
3310         (m88k_supply_gregset): Likewise.
3312 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
3314         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
3315         to allocation result assignment.
3316         * ada-exp.y (write_object_renaming): Likewise.
3317         (write_ambiguous_var): Likewise.
3318         (ada_nget_field_index): Likewise.
3319         (write_var_or_type): Likewise.
3320         * ada-lang.c (ada_decode_symbol): Likewise.
3321         (ada_value_assign): Likewise.
3322         (value_pointer): Likewise.
3323         (cache_symbol): Likewise.
3324         (add_nonlocal_symbols): Likewise.
3325         (ada_name_for_lookup): Likewise.
3326         (symbol_completion_add): Likewise.
3327         (ada_to_fixed_type_1): Likewise.
3328         (ada_get_next_arg): Likewise.
3329         (defns_collected): Likewise.
3330         * ada-lex.l (processId): Likewise.
3331         (processString): Likewise.
3332         * ada-tasks.c (read_known_tasks_array): Likewise.
3333         (read_known_tasks_list): Likewise.
3334         * ada-typeprint.c (decoded_type_name): Likewise.
3335         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
3336         * amd64-tdep.c (amd64_push_arguments): Likewise.
3337         (amd64_displaced_step_copy_insn): Likewise.
3338         (amd64_classify_insn_at): Likewise.
3339         (amd64_relocate_instruction): Likewise.
3340         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3341         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
3342         (initialize_current_architecture): Likewise.
3343         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3344         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
3345         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
3346         (arm_push_dummy_call): Likewise.
3347         (extend_buffer_earlier): Likewise.
3348         (arm_adjust_breakpoint_address): Likewise.
3349         (arm_skip_stub): Likewise.
3350         * auto-load.c (filename_is_in_pattern): Likewise.
3351         (maybe_add_script_file): Likewise.
3352         (maybe_add_script_text): Likewise.
3353         (auto_load_objfile_script_1): Likewise.
3354         * auxv.c (ld_so_xfer_auxv): Likewise.
3355         * ax-general.c (new_agent_expr): Likewise.
3356         (grow_expr): Likewise.
3357         (ax_reg_mask): Likewise.
3358         * bcache.c (bcache_full): Likewise.
3359         * breakpoint.c (program_breakpoint_here_p): Likewise.
3360         * btrace.c (parse_xml_raw): Likewise.
3361         * build-id.c (build_id_to_debug_bfd): Likewise.
3362         * buildsym.c (end_symtab_with_blockvector): Likewise.
3363         * c-exp.y (string_exp): Likewise.
3364         (qualified_name): Likewise.
3365         (write_destructor_name): Likewise.
3366         (operator_stoken): Likewise.
3367         (parse_number): Likewise.
3368         (scan_macro_expansion): Likewise.
3369         (yylex): Likewise.
3370         (c_print_token): Likewise.
3371         * c-lang.c (c_get_string): Likewise.
3372         (emit_numeric_character): Likewise.
3373         * charset.c (wchar_iterate): Likewise.
3374         * cli/cli-cmds.c (complete_command): Likewise.
3375         (make_command): Likewise.
3376         * cli/cli-dump.c (restore_section_callback): Likewise.
3377         (restore_binary_file): Likewise.
3378         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
3379         * cli/cli-script.c (execute_control_command): Likewise.
3380         * cli/cli-setshow.c (do_set_command): Likewise.
3381         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
3382         (read_pe_exported_syms): Likewise.
3383         * coffread.c (coff_read_struct_type): Likewise.
3384         (coff_read_enum_type): Likewise.
3385         * common/btrace-common.c (btrace_data_append): Likewise.
3386         * common/buffer.c (buffer_grow): Likewise.
3387         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
3388         * common/format.c (parse_format_string): Likewise.
3389         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
3390         * common/xml-utils.c (xml_escape_text): Likewise.
3391         * compile/compile-object-load.c (copy_sections): Likewise.
3392         (compile_object_load): Likewise.
3393         * compile/compile-object-run.c (compile_object_run): Likewise.
3394         * completer.c (filename_completer): Likewise.
3395         * corefile.c (read_memory_typed_address): Likewise.
3396         (write_memory_unsigned_integer): Likewise.
3397         (write_memory_signed_integer): Likewise.
3398         (complete_set_gnutarget): Likewise.
3399         * corelow.c (get_core_register_section): Likewise.
3400         * cp-name-parser.y (d_grab): Likewise.
3401         (allocate_info): Likewise.
3402         (cp_new_demangle_parse_info): Likewise.
3403         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
3404         (cp_lookup_symbol_in_namespace): Likewise.
3405         (lookup_namespace_scope): Likewise.
3406         (find_symbol_in_baseclass): Likewise.
3407         (cp_lookup_nested_symbol): Likewise.
3408         (cp_lookup_transparent_type_loop): Likewise.
3409         * cp-support.c (copy_string_to_obstack): Likewise.
3410         (make_symbol_overload_list): Likewise.
3411         (make_symbol_overload_list_namespace): Likewise.
3412         (make_symbol_overload_list_adl_namespace): Likewise.
3413         (first_component_command): Likewise.
3414         * cp-valprint.c (cp_print_value): Likewise.
3415         * ctf.c (ctf_xfer_partial): Likewise.
3416         * d-exp.y (StringExp): Likewise.
3417         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
3418         (lookup_module_scope): Likewise.
3419         (find_symbol_in_baseclass): Likewise.
3420         (d_lookup_nested_symbol): Likewise.
3421         * dbxread.c (find_stab_function_addr): Likewise.
3422         (read_dbx_symtab): Likewise.
3423         (dbx_end_psymtab): Likewise.
3424         (cp_set_block_scope): Likewise.
3425         * dcache.c (dcache_alloc): Likewise.
3426         * demangle.c (_initialize_demangler): Likewise.
3427         * dicos-tdep.c (dicos_load_module_p): Likewise.
3428         * dictionary.c (dict_create_hashed_expandable): Likewise.
3429         (dict_create_linear_expandable): Likewise.
3430         (expand_hashtable): Likewise.
3431         (add_symbol_linear_expandable): Likewise.
3432         * dwarf2-frame.c (add_cie): Likewise.
3433         (add_fde): Likewise.
3434         (dwarf2_build_frame_info): Likewise.
3435         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
3436         (dwarf_expr_fetch_address): Likewise.
3437         (add_piece): Likewise.
3438         (execute_stack_op): Likewise.
3439         * dwarf2loc.c (chain_candidate): Likewise.
3440         (dwarf_entry_parameter_to_value): Likewise.
3441         (read_pieced_value): Likewise.
3442         (write_pieced_value): Likewise.
3443         * dwarf2read.c (dwarf2_read_section): Likewise.
3444         (add_type_unit): Likewise.
3445         (read_comp_units_from_section): Likewise.
3446         (fixup_go_packaging): Likewise.
3447         (dwarf2_compute_name): Likewise.
3448         (dwarf2_physname): Likewise.
3449         (create_dwo_unit_in_dwp_v1): Likewise.
3450         (create_dwo_unit_in_dwp_v2): Likewise.
3451         (read_func_scope): Likewise.
3452         (read_call_site_scope): Likewise.
3453         (dwarf2_attach_fields_to_type): Likewise.
3454         (process_structure_scope): Likewise.
3455         (mark_common_block_symbol_computed): Likewise.
3456         (read_common_block): Likewise.
3457         (abbrev_table_read_table): Likewise.
3458         (guess_partial_die_structure_name): Likewise.
3459         (fixup_partial_die): Likewise.
3460         (add_file_name): Likewise.
3461         (dwarf2_const_value_data): Likewise.
3462         (dwarf2_const_value_attr): Likewise.
3463         (build_error_marker_type): Likewise.
3464         (guess_full_die_structure_name): Likewise.
3465         (anonymous_struct_prefix): Likewise.
3466         (typename_concat): Likewise.
3467         (dwarf2_canonicalize_name): Likewise.
3468         (dwarf2_name): Likewise.
3469         (write_constant_as_bytes): Likewise.
3470         (dwarf2_fetch_constant_bytes): Likewise.
3471         (copy_string): Likewise.
3472         (parse_macro_definition): Likewise.
3473         * elfread.c (elf_symfile_segments): Likewise.
3474         (elf_rel_plt_read): Likewise.
3475         (elf_gnu_ifunc_resolve_by_cache): Likewise.
3476         (elf_gnu_ifunc_resolve_by_got): Likewise.
3477         (elf_read_minimal_symbols): Likewise.
3478         (elf_gnu_ifunc_record_cache): Likewise.
3479         * event-top.c (top_level_prompt): Likewise.
3480         (command_line_handler): Likewise.
3481         * exec.c (resize_section_table): Likewise.
3482         * expprint.c (print_subexp_standard): Likewise.
3483         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3484         * findcmd.c (parse_find_args): Likewise.
3485         * findvar.c (address_from_register): Likewise.
3486         * frame.c (get_prev_frame_always): Likewise.
3487         * gdb_bfd.c (gdb_bfd_ref): Likewise.
3488         (get_section_descriptor): Likewise.
3489         * gdb_obstack.c (obconcat): Likewise.
3490         (obstack_strdup): Likewise.
3491         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
3492         (create_set_type): Likewise.
3493         (lookup_unsigned_typename): Likewise.
3494         (lookup_signed_typename): Likewise.
3495         (resolve_dynamic_union): Likewise.
3496         (resolve_dynamic_struct): Likewise.
3497         (add_dyn_prop): Likewise.
3498         (copy_dynamic_prop_list): Likewise.
3499         (arch_flags_type): Likewise.
3500         (append_composite_type_field_raw): Likewise.
3501         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
3502         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
3503         * go-exp.y (string_exp): Likewise.
3504         * go-lang.c (go_demangle): Likewise.
3505         * guile/guile.c (compute_scheme_string): Likewise.
3506         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3507         (gdbscm_canonicalize_command_name): Likewise.
3508         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
3509         (ioscm_init_memory_port): Likewise.
3510         (ioscm_reinit_memory_port): Likewise.
3511         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
3512         (gdbscm_gc_dup_argv): Likewise.
3513         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3514         * hppa-tdep.c (internalize_unwinds): Likewise.
3515         (read_unwind_info): Likewise.
3516         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
3517         (windows_core_xfer_shared_libraries): Likewise.
3518         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3519         (i386_stap_parse_special_token_triplet): Likewise.
3520         (i386_stap_parse_special_token_three_arg_disp): Likewise.
3521         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3522         * inf-child.c (inf_child_fileio_readlink): Likewise.
3523         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3524         (inf_ptrace_store_register): Likewise.
3525         * infrun.c (follow_exec): Likewise.
3526         (displaced_step_prepare_throw): Likewise.
3527         (save_stop_context): Likewise.
3528         (save_infcall_suspend_state): Likewise.
3529         * jit.c (jit_read_descriptor): Likewise.
3530         (jit_read_code_entry): Likewise.
3531         (jit_symtab_line_mapping_add_impl): Likewise.
3532         (finalize_symtab): Likewise.
3533         (jit_unwind_reg_get_impl): Likewise.
3534         * jv-exp.y (QualifiedName): Likewise.
3535         * jv-lang.c (get_java_utf8_name): Likewise.
3536         (type_from_class): Likewise.
3537         (java_demangle_type_signature): Likewise.
3538         (java_class_name_from_physname): Likewise.
3539         * jv-typeprint.c (java_type_print_base): Likewise.
3540         * jv-valprint.c (java_value_print): Likewise.
3541         * language.c (add_language): Likewise.
3542         * linespec.c (add_sal_to_sals_basic): Likewise.
3543         (add_sal_to_sals): Likewise.
3544         (decode_objc): Likewise.
3545         (find_linespec_symbols): Likewise.
3546         * linux-fork.c (fork_save_infrun_state): Likewise.
3547         * linux-nat.c (linux_nat_detach): Likewise.
3548         (linux_nat_fileio_readlink): Likewise.
3549         * linux-record.c (record_linux_sockaddr): Likewise.
3550         (record_linux_msghdr): Likewise.
3551         (Do): Likewise.
3552         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
3553         (linux_collect_regset_section_cb): Likewise.
3554         (linux_get_siginfo_data): Likewise.
3555         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
3556         (try_thread_db_load_from_dir): Likewise.
3557         (thread_db_load_search): Likewise.
3558         (info_auto_load_libthread_db): Likewise.
3559         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
3560         (m32c_m16c_pointer_to_address): Likewise.
3561         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
3562         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3563         * machoread.c (macho_check_dsym): Likewise.
3564         * macroexp.c (resize_buffer): Likewise.
3565         (gather_arguments): Likewise.
3566         (maybe_expand): Likewise.
3567         * macrotab.c (new_macro_key): Likewise.
3568         (new_source_file): Likewise.
3569         (new_macro_definition): Likewise.
3570         * mdebugread.c (parse_symbol): Likewise.
3571         (parse_type): Likewise.
3572         (parse_partial_symbols): Likewise.
3573         (psymtab_to_symtab_1): Likewise.
3574         * mem-break.c (default_memory_insert_breakpoint): Likewise.
3575         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
3576         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
3577         (mi_cmd_data_read_memory_bytes): Likewise.
3578         (mi_cmd_data_write_memory_bytes): Likewise.
3579         (mi_cmd_trace_frame_collected): Likewise.
3580         * mi/mi-parse.c (mi_parse_argv): Likewise.
3581         (mi_parse): Likewise.
3582         * minidebug.c (lzma_open): Likewise.
3583         (lzma_pread): Likewise.
3584         * mips-tdep.c (mips_read_fp_register_single): Likewise.
3585         (mips_print_fp_register): Likewise.
3586         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3587         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3588         * mt-tdep.c (mt_register_name): Likewise.
3589         (mt_registers_info): Likewise.
3590         (mt_push_dummy_call): Likewise.
3591         * namespace.c (add_using_directive): Likewise.
3592         * nat/linux-btrace.c (perf_event_read): Likewise.
3593         (linux_enable_bts): Likewise.
3594         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
3595         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
3596         * nto-tdep.c (nto_find_and_open_solib): Likewise.
3597         (nto_parse_redirection): Likewise.
3598         * objc-lang.c (objc_demangle): Likewise.
3599         (find_methods): Likewise.
3600         * objfiles.c (get_objfile_bfd_data): Likewise.
3601         (set_objfile_main_name): Likewise.
3602         (allocate_objfile): Likewise.
3603         (objfile_relocate): Likewise.
3604         (update_section_map): Likewise.
3605         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
3606         * p-exp.y (exp): Likewise.
3607         (yylex): Likewise.
3608         * p-valprint.c (pascal_object_print_value): Likewise.
3609         * parse.c (initialize_expout): Likewise.
3610         (mark_completion_tag): Likewise.
3611         (copy_name): Likewise.
3612         (parse_float): Likewise.
3613         (type_stack_reserve): Likewise.
3614         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3615         (ppu2spu_prev_register): Likewise.
3616         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
3617         * printcmd.c (printf_wide_c_string): Likewise.
3618         (printf_pointer): Likewise.
3619         * probe.c (parse_probes): Likewise.
3620         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3621         (cmdpy_init): Likewise.
3622         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
3623         * python/py-symtab.c (set_sal): Likewise.
3624         * python/py-unwind.c (pyuw_sniffer): Likewise.
3625         * python/python.c (python_interactive_command): Likewise.
3626         (compute_python_string): Likewise.
3627         * ravenscar-thread.c (get_running_thread_id): Likewise.
3628         * record-full.c (record_full_exec_insn): Likewise.
3629         (record_full_core_open_1): Likewise.
3630         * regcache.c (regcache_raw_read_signed): Likewise.
3631         (regcache_raw_read_unsigned): Likewise.
3632         (regcache_cooked_read_signed): Likewise.
3633         (regcache_cooked_read_unsigned): Likewise.
3634         * remote-fileio.c (remote_fileio_func_open): Likewise.
3635         (remote_fileio_func_rename): Likewise.
3636         (remote_fileio_func_unlink): Likewise.
3637         (remote_fileio_func_stat): Likewise.
3638         (remote_fileio_func_system): Likewise.
3639         * remote-mips.c (mips_xfer_memory): Likewise.
3640         (mips_load_srec): Likewise.
3641         (pmon_end_download): Likewise.
3642         * remote.c (new_remote_state): Likewise.
3643         (map_regcache_remote_table): Likewise.
3644         (remote_register_number_and_offset): Likewise.
3645         (init_remote_state): Likewise.
3646         (get_memory_packet_size): Likewise.
3647         (remote_pass_signals): Likewise.
3648         (remote_program_signals): Likewise.
3649         (remote_start_remote): Likewise.
3650         (remote_check_symbols): Likewise.
3651         (remote_query_supported): Likewise.
3652         (extended_remote_attach): Likewise.
3653         (process_g_packet): Likewise.
3654         (store_registers_using_G): Likewise.
3655         (putpkt_binary): Likewise.
3656         (read_frame): Likewise.
3657         (compare_sections_command): Likewise.
3658         (remote_hostio_pread): Likewise.
3659         (remote_hostio_readlink): Likewise.
3660         (remote_file_put): Likewise.
3661         (remote_file_get): Likewise.
3662         (remote_pid_to_exec_file): Likewise.
3663         (_initialize_remote): Likewise.
3664         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3665         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3666         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3667         (bfd_uses_spe_extensions): Likewise.
3668         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
3669         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
3670         * solib-dsbt.c (decode_loadmap): Likewise.
3671         (fetch_loadmap): Likewise.
3672         (scan_dyntag): Likewise.
3673         (enable_break): Likewise.
3674         (dsbt_relocate_main_executable): Likewise.
3675         * solib-frv.c (fetch_loadmap): Likewise.
3676         (enable_break2): Likewise.
3677         (frv_relocate_main_executable): Likewise.
3678         * solib-spu.c (spu_relocate_main_executable): Likewise.
3679         (spu_bfd_open): Likewise.
3680         * solib-svr4.c (lm_info_read): Likewise.
3681         (read_program_header): Likewise.
3682         (find_program_interpreter): Likewise.
3683         (scan_dyntag): Likewise.
3684         (elf_locate_base): Likewise.
3685         (open_symbol_file_object): Likewise.
3686         (read_program_headers_from_bfd): Likewise.
3687         (svr4_relocate_main_executable): Likewise.
3688         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
3689         * solib.c (solib_find_1): Likewise.
3690         (exec_file_find): Likewise.
3691         (solib_find): Likewise.
3692         * source.c (openp): Likewise.
3693         (print_source_lines_base): Likewise.
3694         (forward_search_command): Likewise.
3695         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
3696         * spu-tdep.c (spu2ppu_prev_register): Likewise.
3697         (spu_get_overlay_table): Likewise.
3698         * stabsread.c (patch_block_stabs): Likewise.
3699         (define_symbol): Likewise.
3700         (again:): Likewise.
3701         (read_member_functions): Likewise.
3702         (read_one_struct_field): Likewise.
3703         (read_enum_type): Likewise.
3704         (common_block_start): Likewise.
3705         * stack.c (read_frame_arg): Likewise.
3706         (backtrace_command): Likewise.
3707         * stap-probe.c (stap_parse_register_operand): Likewise.
3708         * symfile.c (syms_from_objfile_1): Likewise.
3709         (find_separate_debug_file): Likewise.
3710         (load_command): Likewise.
3711         (load_progress): Likewise.
3712         (load_section_callback): Likewise.
3713         (reread_symbols): Likewise.
3714         (add_filename_language): Likewise.
3715         (allocate_compunit_symtab): Likewise.
3716         (read_target_long_array): Likewise.
3717         (simple_read_overlay_table): Likewise.
3718         * symtab.c (symbol_set_names): Likewise.
3719         (resize_symbol_cache): Likewise.
3720         (rbreak_command): Likewise.
3721         (completion_list_add_name): Likewise.
3722         (completion_list_objc_symbol): Likewise.
3723         (add_filename_to_list): Likewise.
3724         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
3725         * target-memory.c (target_write_memory_blocks): Likewise.
3726         * target.c (target_read_string): Likewise.
3727         (read_whatever_is_readable): Likewise.
3728         (target_read_alloc_1): Likewise.
3729         (simple_search_memory): Likewise.
3730         (target_fileio_read_alloc_1): Likewise.
3731         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3732         * top.c (command_line_input): Likewise.
3733         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3734         * tracefile.c (tracefile_fetch_registers): Likewise.
3735         * tracepoint.c (add_memrange): Likewise.
3736         (init_collection_list): Likewise.
3737         (add_aexpr): Likewise.
3738         (trace_dump_actions): Likewise.
3739         (parse_trace_status): Likewise.
3740         (parse_tracepoint_definition): Likewise.
3741         (parse_tsv_definition): Likewise.
3742         (parse_static_tracepoint_marker_definition): Likewise.
3743         * tui/tui-file.c (tui_sfileopen): Likewise.
3744         (tui_file_adjust_strbuf): Likewise.
3745         * tui/tui-io.c (tui_expand_tabs): Likewise.
3746         * tui/tui-source.c (tui_set_source_content): Likewise.
3747         * typeprint.c (find_global_typedef): Likewise.
3748         * ui-file.c (do_ui_file_xstrdup): Likewise.
3749         (ui_file_obsavestring): Likewise.
3750         (mem_file_write): Likewise.
3751         * utils.c (make_hex_string): Likewise.
3752         (get_regcomp_error): Likewise.
3753         (puts_filtered_tabular): Likewise.
3754         (gdb_realpath_keepfile): Likewise.
3755         (ldirname): Likewise.
3756         (gdb_bfd_errmsg): Likewise.
3757         (substitute_path_component): Likewise.
3758         * valops.c (search_struct_method): Likewise.
3759         (find_oload_champ_namespace_loop): Likewise.
3760         * valprint.c (print_decimal_chars): Likewise.
3761         (read_string): Likewise.
3762         (generic_emit_char): Likewise.
3763         * varobj.c (varobj_delete): Likewise.
3764         (varobj_value_get_print_value): Likewise.
3765         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
3766         * windows-tdep.c (display_one_tib): Likewise.
3767         * xcoffread.c (read_xcoff_symtab): Likewise.
3768         (process_xcoff_symbol): Likewise.
3769         (swap_sym): Likewise.
3770         (scan_xcoff_symtab): Likewise.
3771         (xcoff_initial_scan): Likewise.
3772         * xml-support.c (gdb_xml_end_element): Likewise.
3773         (xml_process_xincludes): Likewise.
3774         (xml_fetch_content_from_file): Likewise.
3775         * xml-syscall.c (xml_list_of_syscalls): Likewise.
3776         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3778 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
3780         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
3781         instead of builtin_func_ptr.
3782         (ft32_pointer_to_address): New function.
3783         (ft32_address_class_type_flags): New function.
3784         (ft32_address_class_type_flags_to_name): New function.
3785         (ft32_address_class_name_to_type_flags): New function.
3786         (ft32_gdbarch_init): Set tdep->pc_type.  Call
3787         set_gdbarch_pointer_to_address,
3788         set_gdbarch_address_class_type_flags
3789         set_gdbarch_address_class_name_to_type_flags,
3790         and set_gdbarch_address_class_type_flags_to_name.
3791         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
3793 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
3795         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
3796         value is a reference, actually dereference it in order to get
3797         the underlying value.
3799 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
3801         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
3803 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
3805         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
3806         * linespec.c (linespec_lexer_lex_string): Same.
3808 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
3810         * NEWS: Mention support for fast tracepoints on aarch64-linux.
3812 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
3814         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
3815         variable.  Call aarch64_decode_adr instead of
3816         aarch64_decode_adrp.
3817         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
3818         (aarch64_decode_adr): New function declaration.
3819         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
3820         (aarch64_decode_adr): New function, factored out from
3821         aarch64_decode_adrp to decode both adr and adrp instructions.
3823 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
3825         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
3826         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
3827         (aarch64-insn.o): New rule.
3828         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
3829         (aarch64*-*-linux*): Likewise.
3830         * arch/aarch64-insn.c: New file.
3831         * arch/aarch64-insn.h: New file.
3832         * aarch64-tdep.c: Include arch/aarch64-insn.h.
3833         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
3834         arch/aarch64-insn.h.
3835         (decode_add_sub_imm): Rename to ...
3836         (aarch64_decode_add_sub_imm): ... this.
3837         (decode_adrp): Rename to ...
3838         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
3839         Declare in arch/aarch64-insn.h.
3840         (decode_b): Rename to ...
3841         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
3842         Declare in arch/aarch64-insn.h.
3843         (decode_bcond): Rename to ...
3844         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
3845         Declare in arch/aarch64-insn.h.
3846         (decode_br): Rename to ...
3847         (aarch64_decode_br): ... this.
3848         (decode_cb): Rename to ...
3849         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
3850         Declare in arch/aarch64-insn.h.
3851         (decode_eret): Rename to ...
3852         (aarch64_decode_eret): ... this.
3853         (decode_movz): Rename to ...
3854         (aarch64_decode_movz): ... this.
3855         (decode_orr_shifted_register_x): Rename to ...
3856         (aarch64_decode_orr_shifted_register_x): ... this.
3857         (decode_ret): Rename to ...
3858         (aarch64_decode_ret): ... this.
3859         (decode_stp_offset): Rename to ...
3860         (aarch64_decode_stp_offset): ... this.
3861         (decode_stp_offset_wb): Rename to ...
3862         (aarch64_decode_stp_offset_wb): ... this.
3863         (decode_stur): Rename to ...
3864         (aarch64_decode_stur): ... this.
3865         (decode_tb): Rename to ...
3866         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
3867         Declare in arch/aarch64-insn.h.
3868         (aarch64_analyze_prologue): Adjust calls to renamed functions.
3870 2015-09-20  Doug Evans  <xdje42@gmail.com>
3872         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
3874 2015-09-20  Doug Evans  <xdje42@gmail.com>
3876         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
3877         variable name that collides with a parameter.
3879 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
3881         * dwarf2loc.c (locexpr_get_frame_base): Renames
3882         block_op_get_frame_base.
3883         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
3884         block_op_get_frame_base by reference to locexpr_get_frame_base.
3885         (loclist_get_frame_base): New function, near identical copy of
3886         locexpr_get_frame_base.
3887         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
3888         block_op_get_frame_base by reference to loclist_get_frame_base.
3890 2015-09-19  Doug Evans  <xdje42@gmail.com>
3892         * ravenscar-thread.c (ravenscar_inferior_created): Replace
3893         current_inferior ()->gdbarch with its wrapper target_gdbarch.
3895 2015-09-18  Doug Evans  <xdje42@gmail.com>
3897         * linux-thread-db.c (record_thread): Return the created thread.
3898         (thread_from_lwp): Likewise.
3899         (thread_db_get_thread_local_address): Update.
3901 2015-09-18  Doug Evans  <xdje42@gmail.com>
3903         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
3904         move only member demangled_name up.  All uses updated.
3906 2015-09-18  Doug Evans  <xdje42@gmail.com>
3908         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
3909         kind of minimal symbol in the error message.
3910         * objfiles.c (objfile_flavour_name): New function.
3911         * objfiles.h (objfile_flavour_name): Declare.
3913 2015-09-18  Yao Qi  <yao.qi@linaro.org>
3915         * nat/aarch64-linux.c: Include elf/common.h,
3916         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
3917         (aarch64_ps_get_thread_area): New function.
3918         * nat/aarch64-linux.h: Include gdb_proc_service.h.
3919         (aarch64_ps_get_thread_area): Declare.
3920         * aarch64-linux-nat.c (ps_get_thread_area): Call
3921         aarch64_ps_get_thread_area.
3923 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3925         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
3927 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3929         * NEWS: Announce new scheduler-locking mode.
3930         * infrun.c (schedlock_replay): New.
3931         (scheduler_enums): Add schedlock_replay.
3932         (scheduler_mode): Change default to schedlock_replay.
3933         (user_visible_resume_ptid): Handle schedlock_replay.
3934         (clear_proceed_status_thread): Stop replaying if resumed thread is
3935         not replaying.
3936         (schedlock_applies): Handle schedlock_replay.
3937         (_initialize_infrun): Document new scheduler-locking mode.
3938         * record-btrace.c (record_btrace_resume): Remove code to stop other
3939         threads when not replaying the resumed thread.
3941 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3943         * record-btrace.c ((record_btrace_will_replay): New.
3944         (init_record_btrace_ops): Initialize to_record_will_replay.
3945         * record-full.c ((record_full_will_replay): New.
3946         (init_record_full_ops): Initialize to_record_will_replay.
3947         * target-delegates.c: Regenerated.
3948         * target.c (target_record_will_replay): New.
3949         * target.h (struct target_ops) <to_record_will_replay>: New.
3950         (target_record_will_replay): New.
3952 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3954         * record-btrace.c (record_btrace_resume): Call
3955         target_record_stop_replaying.
3956         (record_btrace_stop_replaying_all): New.
3957         (init_record_btrace_ops): Initialize to_record_stop_replaying.
3958         * record-full.c (record_full_stop_replaying): New.
3959         (init_record_full_ops ): Initialize to_record_stop_replaying.
3960         * target-delegates.c: Regenerated.
3961         * target.c (target_record_stop_replaying): New.
3962         * target.h (struct target_ops) <to_record_stop_replaying>: New.
3963         (target_record_stop_replaying): New.
3965 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3967         * record-btrace.c (record_btrace_xfer_partial)
3968         (record_btrace_store_registers, record_btrace_prepare_to_store):
3969         Call record_btrace_is_replaying with inferior_ptid instead of
3970         minus_one_ptid.
3971         (record_btrace_store_registers): Change error message.
3973 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3975         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
3976         Update users to pass minus_one_ptid.
3977         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
3978         * record.c (cmd_record_delete): Pass inferior_ptid to
3979         target_record_is_replaying.
3980         * target-delegates.c: Regenerated.
3981         * target.c (target_record_is_replaying): Add ptid argument.
3982         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
3983         argument.
3984         (target_record_is_replaying): Add ptid argument.
3986 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3988         * record-btrace.c (record_btrace_open): Remove non_stop check.
3989         * NEWS: Announce that record btrace supports non-stop mode.
3991 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3993         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
3994         in the TARKET_WAITKIND_NO_HISTORY case.
3996 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3998         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
3999         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
4001 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4003         * record-btrace.c (get_thread_current_frame): New.
4004         (record_btrace_start_replaying): Call get_thread_current_frame.
4006 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4008         * record-btrace.c (record_btrace_resume_thread): A move request
4009         overwrites a previous move request.
4010         (record_btrace_find_resume_thread): Removed.
4011         (record_btrace_resume): Resume all requested threads.
4013 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4015         * record-btrace.c: Include vec.h.
4016         (record_btrace_find_thread_to_move): Removed.
4017         (btrace_step_no_resumed, btrace_step_again)
4018         (record_btrace_stop_replaying_at_end): New.
4019         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
4020         (record_btrace_single_step_forward): Remove calls to
4021         record_btrace_stop_replaying.
4022         (record_btrace_step_thread): Do only one step for BTHR_CONT and
4023         BTHR_RCONT.  Keep threads at the end of their history moving.
4024         (record_btrace_wait): Call record_btrace_step_thread for all threads
4025         until one reports an event.  Call record_btrace_stop_replaying_at_end
4026         for the eventing thread.
4028 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4030         * record-btrace.c (record_btrace_single_step_forward): Return
4031         NO_HISTORY if a step brings us to the end of the execution history.
4033 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4035         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
4036         to ...
4037         (record_btrace_single_step_forward): ... here and
4038         (record_btrace_single_step_backward): ... here.
4040 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4042         * record-btrace.c (btrace_step_spurious)
4043         (record_btrace_single_step_forward)
4044         (record_btrace_single_step_backward): New.
4045         (record_btrace_step_thread): Call record_btrace_single_step_forward
4046         and record_btrace_single_step_backward.
4048 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4050         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
4051         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
4053 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4055         * record-btrace.c (btrace_thread_flag_to_str)
4056         (record_btrace_cancel_resume): New.
4057         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
4058         (record_btrace_resume): Print execution direction.
4059         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
4060         (record_btrace_wait): Call record_btrace_cancel_resume.
4062 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4064         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
4065         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
4066         (record_btrace_find_thread_to_move): Also accept threads that have
4067         BTHR_STOP set.
4068         (btrace_step_stopped_on_request, record_btrace_stop): New.
4069         (record_btrace_step_thread): Support BTHR_STOP.
4070         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
4071         (init_record_btrace_ops): Initialize to_stop.
4073 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
4075         * record-btrace.c (record_btrace_wait): Replace non_stop check with
4076         target_is_non_stop_p ().
4078 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
4080         * ada-typeprint.c (print_array_type): Do not describe arrays as
4081         packed when they embed dynamic elements.
4083 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4085         * symtab.h (address_class): Document that TLS variables
4086         are handled by LOC_UNRESOLVED.
4087         * findvar.c (default_read_var_value): Don't relocate TLS variables.
4088         * printcmd.c (address_info): Don't relocate TLS variables.
4090 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
4092         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
4093         (decode_adrp): Likewise.
4094         (decode_b): Likewise.
4095         (decode_bcond): Likewise.
4096         (decode_br): Likewise.
4097         (decode_cb): Likewise.
4098         (decode_eret): Likewise.
4099         (decode_movz): Likewise.
4100         (decode_orr_shifted_register_x): Likewise.
4101         (decode_ret): Likewise.
4102         (decode_stp_offset): Likewise.
4103         (decode_stp_offset_wb): Likewise.
4104         (decode_stur): Likewise.
4105         (decode_tb): Likewise.
4106         (aarch64_analyze_prologue): Likewise.
4107         (pass_in_x): Likewise.
4108         (pass_in_v): Likewise.
4109         (pass_on_stack): Likewise.
4110         (aarch64_push_dummy_call): Likewise.
4111         (aarch64_extract_return_value): Likewise.
4112         (aarch64_store_return_value): Likewise.
4113         (aarch64_return_value): Likewise.
4114         (aarch64_record_asimd_load_store): Likewise.
4115         (aarch64_record_load_store): Likewise.
4116         (aarch64_record_data_proc_simd_fp): Likewise.
4118 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4120         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
4121         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
4122         (ppc64_skip_trampoline_code_1): ... here.
4123         (ppc64_skip_trampoline_code): New wrapper function.
4124         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
4126 2015-09-15  Yao Qi  <yao.qi@linaro.org>
4128         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
4129         function.
4130         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
4131         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
4132         if target_can_do_single_step returns 1.
4133         * remote.c (struct vCont_action_support) <s, S>: New fields.
4134         (PACKET_vContSupported): New enum.
4135         (remote_protocol_features): New element for vContSupported.
4136         (remote_query_supported): Append "vContSupported+".
4137         (remote_vcont_probe): Remove support_s and support_S, use
4138         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
4139         vCont packet if c and C actions are not supported.
4140         (remote_can_do_single_step): New function.
4141         (init_remote_ops): Install it to to_can_do_single_step.
4142         (_initialize_remote): Call add_packet_config_cmd.
4143         * target.h (struct target_ops) <to_can_do_single_step>: New field.
4144         (target_can_do_single_step): New macro.
4145         * target-delegates.c: Re-generated.
4147 2015-09-15  Yao Qi  <yao.qi@linaro.org>
4149         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
4150         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
4151         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
4152         New function.
4153         (aarch64_siginfo_from_compat_siginfo): New function.
4154         * nat/aarch64-linux.h: Include signal.h.
4155         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
4156         (compat_timer_t, compat_clock_t): Likewise.
4157         (struct compat_timeval): New.
4158         (union compat_sigval): New.
4159         (struct compat_siginfo): New.
4160         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
4161         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
4162         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
4163         (cpt_si_band, cpt_si_fd): Likewise.
4165 2015-09-14  Pedro Alves  <palves@redhat.com>
4167         * infrun.c (current_stop_id): New global.
4168         (get_stop_id, new_stop_id): New functions.
4169         (fetch_inferior_event): Handle normal_stop proceeding the target.
4170         (struct stop_context): New.
4171         (save_stop_context, release_stop_context_cleanup)
4172         (stop_context_changed): New functions.
4173         (normal_stop): Return true if the hook-stop changes the stop
4174         context.
4175         * infrun.h (get_stop_id): Declare.
4176         (normal_stop): Now returns int.  Add documentation.
4178 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
4180         * ada-lang.c (ada_value_ptr_subscript): Update the heading
4181         comment.  Handle packed arrays.
4183 2015-09-14  Pedro Alves  <palves@redhat.com>
4185         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
4186         mention of maint set/show target-non-stop.
4188 2015-09-11  Don Breazeal  <donb@codesourcery.com>
4190         * NEWS: Announce new remote packets for the exec-events
4191         feature and the exec-events feature and associated commands.
4193 2015-09-11  Don Breazeal  <donb@codesourcery.com>
4195         * remote.c (remote_exec_event_p): New function.
4196         (remote_insert_exec_catchpoint): New function.
4197         (remote_remove_exec_catchpoint): New function.
4198         (init_extended_remote_ops): Initialize extended_remote_ops
4199         members to_insert_exec_catchpoint and
4200         to_remove_exec_catchpoint.
4202 2015-09-11  Don Breazeal  <donb@codesourcery.com>
4203             Luis Machado  <lgustavo@codesourcery.com>
4205         * infrun.c (follow_exec): Use process-style ptid for
4206         exec message.  Call add_inferior_with_spaces and
4207         target_follow_exec.
4208         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
4209         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
4210         * remote.c (remote_pspace_data): New static variable.
4211         (remote_pspace_data_cleanup): New function.
4212         (get_remote_exec_file): New function.
4213         (set_remote_exec_file_1): New function.
4214         (set_remote_exec_file): New function.
4215         (show_remote_exec_file): New function.
4216         (remote_exec_file): Delete static variable.
4217         (anonymous enum) <PACKET_exec_event_feature>: New
4218         enumeration constant.
4219         (remote_protocol_features): Add entry for exec-events feature.
4220         (remote_query_supported): Add client side of qSupported query
4221         for exec-events feature.
4222         (remote_follow_exec): New function.
4223         (remote_parse_stop_reply): Handle 'exec' stop reason.
4224         (extended_remote_run, extended_remote_create_inferior): Call
4225         get_remote_exec_file and set_remote_exec_file_1.
4226         (init_extended_remote_ops) <to_follow_exec>: Initialize new
4227         member.
4228         (_initialize_remote): Call
4229         register_program_space_data_with_cleanup.  Call
4230         add_packet_config_cmd for remote exec-events feature.
4231         Modify call to add_setshow_string_noescape_cmd for exec-file
4232         to use new functions set_remote_exec_file and
4233         show_remote_exec_file.
4234         * target-debug.h, target-delegates.c: Regenerated.
4235         * target.c (target_follow_exec): New function.
4236         * target.h (struct target_ops) <to_follow_exec>: New member.
4237         (target_follow_exec): Declare new function.
4239 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
4241         * aarch64-tdep.c (decode_cb): Move up comment describing the
4242         encoding.
4243         (decode_tb): Fix a typo in comment above the function.  Move up
4244         comment describing the encoding.
4246 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
4248         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
4250 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
4252         PR gdb/18947
4253         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
4254         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
4256 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
4258         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
4259         operations.
4261 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
4263         * ada-lang.c (ada_search_struct_field): Constify parameters
4264         and/or variables..
4265         (xget_renaming_scope): Likewise.
4266         (ada_is_redundant_range_encoding): Likewise.
4267         (scan_discrim_bound): Likewise.
4268         (to_fixed_range_type): Likewise.
4270 2015-09-10  Yao Qi  <yao.qi@linaro.org>
4272         * breakpoint.c (download_tracepoint_locations): New local
4273         can_download_tracepoint.  Check the result of
4274         target_can_download_tracepoint and save it in
4275         can_download_tracepoint if there are tracepoints to download.
4276         * linux-nat.h (enum tribool): Move it to ...
4277         * common/common-types.h: ... here.
4279 2015-09-09  Pedro Alves  <palves@redhat.com>
4281         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
4282         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
4284 2015-09-09  Pedro Alves  <palves@redhat.com>
4286         * continuations.c (add_continuation, restore_thread_cleanup)
4287         (do_all_continuations_ptid, do_all_continuations_thread_callback)
4288         (do_all_continuations_thread, do_all_continuations)
4289         (discard_all_continuations_thread_callback)
4290         (discard_all_continuations_thread, discard_all_continuations)
4291         (add_intermediate_continuation)
4292         (do_all_intermediate_continuations_thread_callback)
4293         (do_all_intermediate_continuations_thread)
4294         (do_all_intermediate_continuations)
4295         (discard_all_intermediate_continuations_thread_callback)
4296         (discard_all_intermediate_continuations_thread)
4297         (discard_all_intermediate_continuations): Delete.
4298         * continuations.h (add_continuation, do_all_continuations)
4299         (do_all_continuations_thread, discard_all_continuations)
4300         (discard_all_continuations_thread, add_intermediate_continuation)
4301         (do_all_intermediate_continuations)
4302         (do_all_intermediate_continuations_thread)
4303         (discard_all_intermediate_continuations)
4304         (discard_all_intermediate_continuations_thread): Delete
4305         declarations.
4306         * event-top.c (stdin_event_handler): Delete references to
4307         continuations.
4308         * gdbthread.h (struct thread_info): Delete continuations and
4309         intermediate_continuations fields.
4310         * inf-loop.c (inferior_event_handler): Remove references to
4311         continuations.
4312         * infrun.c (infrun_thread_stop_requested_callback): Remove
4313         references to continuations.
4314         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
4315         * thread.c: Don't include "continuations.h".
4316         (clear_thread_inferior_resources): Remove references to
4317         continuations.
4319 2015-09-09  Pedro Alves  <palves@redhat.com>
4321         * infcall.c (struct dummy_frame_context_saver): Delete.
4322         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
4323         (dummy_frame_context_saver_drop)
4324         (dummy_frame_context_saver_cleanup)
4325         (dummy_frame_context_saver_get_regs)
4326         (dummy_frame_context_saver_setup): Delete.
4327         * infcall.h (dummy_frame_context_saver_drop)
4328         (dummy_frame_context_saver_cleanup)
4329         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
4330         Delete.
4331         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
4332         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
4333         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
4335 2015-09-09  Pedro Alves  <palves@redhat.com>
4337         * breakpoint.c: Include "thread-fsm.h".
4338         (struct until_break_command_continuation_args): Delete.
4339         (struct until_break_fsm): New.
4340         (until_break_fsm_ops): New global.
4341         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
4342         (until_break_command_continuation): Delete.
4343         (until_break_fsm_clean_up): New function.
4344         (until_break_fsm_async_reply_reason): New function.
4345         (until_break_command): Adjust to create an until_break_fsm instead
4346         of a continuation.
4347         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
4348         here.
4349         * infcmd.c (struct until_next_fsm): New.
4350         (until_next_fsm_ops): New global.
4351         (new_until_next_fsm, until_next_fsm_should_stop): New function.
4352         (until_next_continuation): Delete.
4353         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
4354         functions.
4355         (until_next_command): Adjust to create a new until_next_fsm
4356         instead of a continuation.
4358 2015-09-09  Pedro Alves  <palves@redhat.com>
4360         * infcall.c: Include thread_fsm.h.
4361         (struct call_return_meta_info): New.
4362         (get_call_return_value): New function, factored out from
4363         call_function_by_hand_dummy.
4364         (struct call_thread_fsm): New.
4365         (call_thread_fsm_ops): New global.
4366         (new_call_thread_fsm, call_thread_fsm_should_stop)
4367         (call_thread_fsm_should_notify_stop): New functions.
4368         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
4369         the thread.
4370         (call_function_by_hand_dummy): Create a new call_thread_fsm
4371         instance, associate it with the thread, and wait for the FSM to
4372         finish.  If finished successfully, fetch the function's result
4373         value out of the FSM.
4374         * infrun.c (fetch_inferior_event): If the FSM says the stop
4375         shouldn't be notified, don't call normal_stop.
4376         (maybe_remove_breakpoints): New function, factored out from ...
4377         (normal_stop): ... here.  Simplify.
4378         * infrun.h (maybe_remove_breakpoints): Declare.
4379         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
4380         (thread-fsm.h) <struct thread_fsm_ops>: New field.
4381         (thread_fsm_should_notify_stop): Declare.
4383 2015-09-09  Pedro Alves  <palves@redhat.com>
4385         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
4386         * breakpoint.c (handle_jit_event): Print debug output.
4387         (bpstat_what): Split event callback handling to ...
4388         (bpstat_run_callbacks): ... this new function.
4389         (momentary_bkpt_print_it): No longer handle bp_finish here.
4390         * breakpoint.h (bpstat_run_callbacks): Declare.
4391         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
4392         <thread_fsm>: New field.
4393         (thread_cancel_execution_command): Declare.
4394         * infcmd.c: Include thread-fsm.h.
4395         (struct step_command_fsm): New.
4396         (step_command_fsm_ops): New global.
4397         (new_step_command_fsm, step_command_fsm_prepare): New functions.
4398         (step_1): Adjust to use step_command_fsm_prepare and
4399         prepare_one_step.
4400         (struct step_1_continuation_args): Delete.
4401         (step_1_continuation): Delete.
4402         (step_command_fsm_should_stop): New function.
4403         (step_once): Delete.
4404         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
4405         (prepare_one_step): New function, based on step_once.
4406         (until_next_command): Remove step_multi reference.
4407         (struct return_value_info): New.
4408         (print_return_value): Rename to ...
4409         (print_return_value_1): ... this.  New struct return_value_info
4410         parameter.  Adjust.
4411         (print_return_value): Reimplement as wrapper around
4412         print_return_value_1.
4413         (struct finish_command_fsm): New.
4414         (finish_command_continuation): Delete.
4415         (finish_command_fsm_ops): New global.
4416         (new_finish_command_fsm, finish_command_fsm_should_stop): New
4417         functions.
4418         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
4419         New.
4420         (finish_command_continuation_free_arg): Delete.
4421         (finish_command_fsm_async_reply_reason): New.
4422         (finish_backward, finish_forward): Change symbol parameter to a
4423         finish_command_fsm.  Adjust.
4424         (finish_command): Create a finish_command_fsm.  Adjust.
4425         * infrun.c: Include "thread-fsm.h".
4426         (clear_proceed_status_thread): Delete the thread's FSM.
4427         (infrun_thread_stop_requested_callback): Cancel the thread's
4428         execution command.
4429         (clean_up_just_stopped_threads_fsms): New function.
4430         (fetch_inferior_event): Handle the event_thread's should_stop
4431         method saying the command isn't done yet.
4432         (process_event_stop_test): Run breakpoint callbacks here.
4433         (print_stop_event): Rename to ...
4434         (print_stop_location): ... this.
4435         (restore_current_uiout_cleanup): New function.
4436         (print_stop_event): Reimplement.
4437         (normal_stop): No longer notify the end_stepping_range observers
4438         here handle "step N" nor "finish" here.  No longer call
4439         print_stop_event here.
4440         * infrun.h (struct return_value_info): Forward declare.
4441         (print_return_value): Declare.
4442         (print_stop_event): Change prototype.
4443         * thread-fsm.c: New file.
4444         * thread-fsm.h: New file.
4445         * thread.c: Include "thread-fsm.h".
4446         (thread_cancel_execution_command): New function.
4447         (clear_thread_inferior_resources): Call it.
4448         * cli/cli-interp.c (cli_on_normal_stop): New function.
4449         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
4450         observer.
4451         * mi/mi-interp.c: Include "thread-fsm.h".
4452         (restore_current_uiout_cleanup): Delete.
4453         (mi_on_normal_stop): If the thread has an FSM associated, and it
4454         finished, ask it for the async-reply-reason to print.  Always call
4455         print_stop_event here, regardless of the top-level interpreter.
4456         Check bpstat_what to tell whether an asynchronous breakpoint hit
4457         triggered.
4458         * tui/tui-interp.c (tui_on_normal_stop): New function.
4459         (tui_init): Install tui_on_normal_stop as normal_stop observer.
4461 2015-09-09  Pedro Alves  <palves@redhat.com>
4463         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
4464         check whether the target can async.
4465         * inf-loop.c (inferior_event_handler): Only call target_async if
4466         the target can async.
4467         * infcall.c: Include top.h and interps.h.
4468         (run_inferior_call): For the interpreter to sync mode while
4469         running the infcall.  Call wait_sync_command_done instead of
4470         wait_for_inferior plus normal_stop.
4471         * infcmd.c (prepare_execution_command): Don't check whether the
4472         target can async when running in the foreground.
4473         (step_1): Delete synchronous case handling.
4474         (step_once): Always install a continuation, even in sync mode.
4475         (until_next_command, finish_forward): Don't check whether the
4476         target can async.
4477         (attach_command_post_wait, notice_new_inferior): Always install a
4478         continuation, even in sync mode.
4479         * infrun.c (mark_infrun_async_event_handler): New function.
4480         (proceed): In sync mode, mark infrun's event source instead of
4481         waiting for events here.
4482         (fetch_inferior_event): If the target can't async, do a blocking
4483         wait.
4484         (prepare_to_wait): In sync mode, mark infrun's event source.
4485         (infrun_async_inferior_event_handler): No longer bail out if the
4486         target can't async.
4487         * infrun.h (mark_infrun_async_event_handler): New declaration.
4488         * linux-nat.c (linux_nat_wait_1): Remove calls to
4489         set_sigint_trap/clear_sigint_trap.
4490         (linux_nat_terminal_inferior): No longer check whether the target
4491         can async.
4492         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
4493         comment.
4494         (mi_execute_command_input_handler): No longer check whether the
4495         target is async.  Update and simplify comment.
4496         * target.c (default_target_wait): New function.
4497         * target.h (struct target_ops) <to_wait>: Now defaults to
4498         default_target_wait.
4499         (default_target_wait): Declare.
4500         * top.c (wait_sync_command_done): New function, factored out from
4501         ...
4502         (maybe_wait_sync_command_done): ... this.
4503         * top.h (wait_sync_command_done): Declare.
4504         * target-delegates.c: Regenerate.
4506 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
4508         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
4509         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
4510         Remove include of sys/utsname.h.
4511         (linux_determine_kernel_ptr_bits): Remove.
4512         (linux_determine_kernel_start): New.
4513         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
4514         Update check.
4515         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
4516         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
4517         initialization.
4518         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
4519         assignment.
4521 2015-09-07  Pedro Alves  <palves@redhat.com>
4523         * guile/guile-internal.h (as_a_scm_t_subr): New.
4524         * guile/guile.c (misc_guile_functions): Use it.
4525         * guile/scm-arch.c (arch_functions): Use it.
4526         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
4527         Use it.
4528         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
4529         * guile/scm-cmd.c (command_functions): Use it.
4530         * guile/scm-disasm.c (disasm_functions): Use it.
4531         * guile/scm-exception.c (exception_functions)
4532         (private_exception_functions): Use it.
4533         * guile/scm-frame.c (frame_functions)
4534         * guile/scm-gsmob.c (gsmob_functions): Use it.
4535         * guile/scm-iterator.c (iterator_functions): Use it.
4536         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
4537         * guile/scm-math.c (math_functions): Use it.
4538         * guile/scm-objfile.c (objfile_functions): Use it.
4539         * guile/scm-param.c (parameter_functions): Use it.
4540         * guile/scm-ports.c (port_functions, private_port_functions): Use
4541         it.
4542         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
4543         * guile/scm-progspace.c (pspace_functions): Use it.
4544         * guile/scm-string.c (string_functions): Use it.
4545         * guile/scm-symbol.c (symbol_functions): Use it.
4546         * guile/scm-symtab.c (symtab_functions): Use it.
4547         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
4548         it.
4549         * guile/scm-value.c (value_functions): Use it.
4551 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
4553         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
4554         (tui_next_win): Likewise.
4555         (tui_prev_win): Likewise.
4556         (tui_partial_win_by_name): Likewise.
4557         (tui_init_generic_part): Likewise.
4558         (init_content_element): Likewise.
4559         (tui_del_window): Likewise.
4560         (tui_free_window): Likewise.
4561         (tui_del_data_windows): Likewise.
4562         (tui_free_data_content): Likewise.
4563         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
4564         * tui/tui-regs.c (tui_show_register_group): Likewise.
4565         * tui/tui-win.c (tui_resize_all): Likewise.
4566         (tui_set_focus): Likewise.
4567         (tui_set_win_height): Likewise.
4568         (make_invisible_and_set_new_height): Likewise.
4569         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
4570         * tui/tui-wingeneral.c (make_visible): Likewise.
4572 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
4574         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
4576 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
4578         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
4579         pointer.
4580         * dbxread.c (dbx_end_psymtab): Likewise.
4581         * gnu-nat.c (gnu_write_inferior): Likewise.
4582         * mdebugread.c (cross_ref): Likewise.
4583         * p-valprint.c (pascal_val_print): Likewise.
4584         * xcoffread.c (xcoff_end_psymtab): Likewise.
4586 2015-09-04  Yao Qi  <yao.qi@linaro.org>
4588         * NEWS: Mention the aarch64 multi-arch debugging support.
4590 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
4592         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
4593         type instead of a TYPE_CODE_INT one for the string_char_type
4594         and the ada_primitive_type_char types.
4596 2015-09-03  Yao Qi  <yao.qi@linaro.org>
4598         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4599         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
4600         aarch64_linux_region_ok_for_watchpoint.
4601         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
4602         New function.
4603         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
4604         Declare it.
4606 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
4608         * gdb_obstack.h (obstack_strdup): Declare.
4609         * gdb_obstack.c (obstack_strdup): Define.
4610         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
4611         * gdbarch.c: Regenerate.
4612         * gdbarch.h: Regenerate.
4613         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
4615 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
4617         * gdbtypes.c (copy_type_recursive): Update documentation.
4619 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
4621         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
4622         as zero.
4624 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
4626         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
4628 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
4630         * solib-svr4.c (solib_event_probe_action): Call
4631         get_probe_argument_count using TRY...CATCH.
4632         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
4634 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
4636         * probe.h (struct probe_ops) <get_probe_argument_count,
4637         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
4638         the comment that the function can throw an exception.
4639         (get_probe_argument_count): Likewise.
4640         (evaluate_probe_argument): Likewise.
4641         * stap-probe.c (stap_get_opcode): Call error instead of
4642         internal_error.
4643         (stap_get_expected_argument_type): Likewise.  Add argument
4644         'probe'.  Improve error message by mentioning the probe's name.
4645         (stap_parse_probe_arguments): Adjust call to
4646         stap_get_expected_argument_type.
4647         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
4648         not zero.  Call internal_error if GDB requests an argument but the
4649         probe has no arguments.
4651 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
4653         * ada-lang.c (ada_resolve_function): Do not ask the user what
4654         match to use when in completion mode.
4656 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
4658         * tui/tui-data.c (tui_win_name): Make local variable const, remove
4659         cast of NULL.
4661 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
4663         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
4664         call_abi using XSHAL_ABI macro.
4666 2015-08-29  Doug Evans  <xdje42@gmail.com>
4668         * symtab.h (struct symbol): Tweak comment.
4670 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
4672         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
4673         gdbarch obstack instead of on the heap.  Update commentary
4674         accordingly.
4676 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
4678         GDB 7.10 released.
4680 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
4682         * NEWS: Update entry about non-8-bits addressable memory.
4684 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
4686         Revert:
4687         2014-11-06  Doug Evans  <xdje42@gmail.com>
4688         * solib.c (solib_global_lookup): Fetch arch from objfile,
4689         not target_gdbarch.
4691 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
4693         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
4694         attempt to relocate a TLS variable offset.
4696 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
4698         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
4699         registered yet.  Set inferior_ptid while calling target_read_memory.
4701 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
4703         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
4704         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
4705         * linux-nat.c (check_stopped_by_breakpoint): Use
4706         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
4708 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
4710         * linux-thread-db.c (thread_db_get_thread_local_address): If the
4711         thread was not yet discovered, use thread_from_lwp instead of
4712         calling thread_db_find_new_threads_1.
4714 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
4716         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
4717         statements.
4719 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
4721         * NEWS: Document support for non-8-bits addressable memory.
4723 2015-08-27  Pedro Alves  <palves@redhat.com>
4725         * configure.ac: Remove AC_TYPE_SIGNAL call.
4726         * configure, config.in: Regenerate.
4728 2015-08-27  Pedro Alves  <palves@redhat.com>
4730         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
4731         * extension-priv.h: Include signal.h.
4732         (struct signal_handler) <handler>: Change type to sighandler_t.
4733         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
4734         * inflow.c (sigint_ours, sigquit_ours): Change type to
4735         sighandler_t.
4736         (child_terminal_inferior): Remove casts.
4737         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
4738         (osig): Change type to sighandler_t.
4739         * nto-procfs.c (ofunc): Change type to sighandler_t.
4740         (procfs_wait): Remove casts.
4741         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
4742         * remote-sim.c (gdbsim_wait): Use sighandler_t.
4743         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
4745 2015-08-27  Pedro Alves  <palves@redhat.com>
4747         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
4748         * gnulib/aclocal.m4: Renegerate.
4749         * gnulib/config.in: Renegerate.
4750         * gnulib/configure: Renegerate.
4751         * gnulib/import/Makefile.am: Update.
4752         * gnulib/import/Makefile.in: Regenerate.
4753         * gnulib/import/m4/gnulib-cache.m4: Update.
4754         * gnulib/import/m4/gnulib-comp.m4: Update.
4755         * gnulib/import/m4/signal_h.m4: New file.
4756         * gnulib/import/signal.in.h: New file.
4758 2015-08-27  Pedro Alves  <palves@redhat.com>
4760         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
4761         (MIN_MEMORY_PACKET_SIZE): New.
4762         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
4763         (get_memory_packet_size): Adjust.  No longer limit the max packet
4764         size.
4765         (set_memory_packet_size): Adjust, and remove dead code.
4766         (remote_check_symbols): Use xmalloc and a cleanup instead of
4767         alloca.
4768         (remote_packet_size): No longer cap the packet size.
4769         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
4771 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
4773         * compile/compile.c (compile_to_object): Mention language in
4774         error message.
4776 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
4778         * target.c (target_pre_inferior): Unset attach_flag.
4780 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
4782         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
4783         * gdbarch.c: Re-generate.
4785 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
4787         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
4788         function with the XNEW-family equivalent.
4789         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
4790         * ada-exp.y (write_ambiguous_var): Likewise.
4791         * ada-lang.c (resolve_subexp): Likewise.
4792         (user_select_syms): Likewise.
4793         (assign_aggregate): Likewise.
4794         (ada_evaluate_subexp): Likewise.
4795         (cache_symbol): Likewise.
4796         * addrmap.c (allocate_key): Likewise.
4797         (addrmap_create_mutable): Likewise.
4798         * aix-thread.c (sync_threadlists): Likewise.
4799         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
4800         (alpha_gdbarch_init): Likewise.
4801         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
4802         * arm-linux-nat.c (arm_linux_add_process): Likewise.
4803         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4804         * arm-tdep.c (push_stack_item): Likewise.
4805         (arm_displaced_step_copy_insn): Likewise.
4806         (arm_gdbarch_init): Likewise.
4807         (_initialize_arm_tdep): Likewise.
4808         * avr-tdep.c (push_stack_item): Likewise.
4809         * ax-general.c (new_agent_expr): Likewise.
4810         * block.c (block_initialize_namespace): Likewise.
4811         * breakpoint.c (alloc_counted_command_line): Likewise.
4812         (update_dprintf_command_list): Likewise.
4813         (parse_breakpoint_sals): Likewise.
4814         (decode_static_tracepoint_spec): Likewise.
4815         (until_break_command): Likewise.
4816         (clear_command): Likewise.
4817         (update_global_location_list): Likewise.
4818         (get_breakpoint_objfile_data) Likewise.
4819         * btrace.c (ftrace_new_function): Likewise.
4820         (btrace_set_insn_history): Likewise.
4821         (btrace_set_call_history): Likewise.
4822         * buildsym.c (add_symbol_to_list): Likewise.
4823         (record_pending_block): Likewise.
4824         (start_subfile): Likewise.
4825         (start_buildsym_compunit): Likewise.
4826         (push_subfile): Likewise.
4827         (end_symtab_get_static_block): Likewise.
4828         (buildsym_init): Likewise.
4829         * cli/cli-cmds.c (source_command): Likewise.
4830         * cli/cli-decode.c (add_cmd): Likewise.
4831         * cli/cli-script.c (build_command_line): Likewise.
4832         (setup_user_args): Likewise.
4833         (realloc_body_list): Likewise.
4834         (process_next_line): Likewise.
4835         (copy_command_lines): Likewise.
4836         * cli/cli-setshow.c (do_set_command): Likewise.
4837         * coff-pe-read.c (read_pe_exported_syms): Likewise.
4838         * coffread.c (coff_locate_sections): Likewise.
4839         (coff_symtab_read): Likewise.
4840         (coff_read_struct_type): Likewise.
4841         * common/cleanups.c (make_my_cleanup2): Likewise.
4842         * common/common-exceptions.c (throw_it): Likewise.
4843         * common/filestuff.c (make_cleanup_close): Likewise.
4844         * common/format.c (parse_format_string): Likewise.
4845         * common/queue.h (DEFINE_QUEUE_P): Likewise.
4846         * compile/compile-object-load.c (munmap_list_add): Likewise.
4847         (compile_object_load): Likewise.
4848         * compile/compile-object-run.c (compile_object_run): Likewise.
4849         * compile/compile.c (append_args): Likewise.
4850         * corefile.c (specify_exec_file_hook): Likewise.
4851         * cp-support.c (make_symbol_overload_list): Likewise.
4852         * cris-tdep.c (push_stack_item): Likewise.
4853         (cris_gdbarch_init): Likewise.
4854         * ctf.c (ctf_trace_file_writer_new): Likewise.
4855         * dbxread.c (init_header_files): Likewise.
4856         (add_new_header_file): Likewise.
4857         (init_bincl_list): Likewise.
4858         (dbx_end_psymtab): Likewise.
4859         (start_psymtab): Likewise.
4860         (dbx_end_psymtab): Likewise.
4861         * dcache.c (dcache_init): Likewise.
4862         * dictionary.c (dict_create_hashed): Likewise.
4863         (dict_create_hashed_expandable): Likewise.
4864         (dict_create_linear): Likewise.
4865         (dict_create_linear_expandable): Likewise.
4866         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
4867         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
4868         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
4869         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4870         (decode_frame_entry_1): Likewise.
4871         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
4872         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4873         * dwarf2read.c (dwarf2_has_info): Likewise.
4874         (create_signatured_type_table_from_index): Likewise.
4875         (dwarf2_read_index): Likewise.
4876         (dw2_get_file_names_reader): Likewise.
4877         (create_all_type_units): Likewise.
4878         (read_cutu_die_from_dwo): Likewise.
4879         (init_tu_and_read_dwo_dies): Likewise.
4880         (init_cutu_and_read_dies): Likewise.
4881         (create_all_comp_units): Likewise.
4882         (queue_comp_unit): Likewise.
4883         (inherit_abstract_dies): Likewise.
4884         (read_call_site_scope): Likewise.
4885         (dwarf2_add_field): Likewise.
4886         (dwarf2_add_typedef): Likewise.
4887         (dwarf2_add_member_fn): Likewise.
4888         (attr_to_dynamic_prop): Likewise.
4889         (abbrev_table_alloc_abbrev): Likewise.
4890         (abbrev_table_read_table): Likewise.
4891         (add_include_dir): Likewise.
4892         (add_file_name): Likewise.
4893         (dwarf_decode_line_header): Likewise.
4894         (dwarf2_const_value_attr): Likewise.
4895         (dwarf_alloc_block): Likewise.
4896         (parse_macro_definition): Likewise.
4897         (set_die_type): Likewise.
4898         (write_psymtabs_to_index): Likewise.
4899         (create_cus_from_index): Likewise.
4900         (dwarf2_create_include_psymtab): Likewise.
4901         (process_psymtab_comp_unit_reader): Likewise.
4902         (build_type_psymtab_dependencies): Likewise.
4903         (read_comp_units_from_section): Likewise.
4904         (compute_compunit_symtab_includes): Likewise.
4905         (create_dwo_unit_in_dwp_v1): Likewise.
4906         (create_dwo_unit_in_dwp_v2): Likewise.
4907         (read_func_scope): Likewise.
4908         (process_structure_scope): Likewise.
4909         (mark_common_block_symbol_computed): Likewise.
4910         (load_partial_dies): Likewise.
4911         (dwarf2_symbol_mark_computed): Likewise.
4912         * elfread.c (elf_symfile_segments): Likewise.
4913         (elf_read_minimal_symbols): Likewise.
4914         * environ.c (make_environ): Likewise.
4915         * eval.c (evaluate_subexp_standard): Likewise.
4916         * event-loop.c (create_file_handler): Likewise.
4917         (create_async_signal_handler): Likewise.
4918         (create_async_event_handler): Likewise.
4919         (create_timer): Likewise.
4920         * exec.c (build_section_table): Likewise.
4921         * fbsd-nat.c (fbsd_remember_child): Likewise.
4922         * fork-child.c (fork_inferior): Likewise.
4923         * frv-tdep.c (new_variant): Likewise.
4924         * gdbarch.sh (gdbarch_alloc): Likewise.
4925         (append_name): Likewise.
4926         * gdbtypes.c (rank_function): Likewise.
4927         (copy_type_recursive): Likewise.
4928         (add_dyn_prop): Likewise.
4929         * gnu-nat.c (make_proc): Likewise.
4930         (make_inf): Likewise.
4931         (gnu_write_inferior): Likewise.
4932         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4933         (build_std_type_info_type): Likewise.
4934         * guile/scm-param.c (compute_enum_list): Likewise.
4935         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
4936         * guile/scm-value.c (gdbscm_value_call): Likewise.
4937         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4938         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4939         (read_unwind_info): Likewise.
4940         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4941         * infcall.c (dummy_frame_context_saver_setup): Likewise.
4942         (call_function_by_hand_dummy): Likewise.
4943         * infcmd.c (step_once): Likewise.
4944         (finish_forward): Likewise.
4945         (attach_command): Likewise.
4946         (notice_new_inferior): Likewise.
4947         * inferior.c (add_inferior_silent): Likewise.
4948         * infrun.c (add_displaced_stepping_state): Likewise.
4949         (save_infcall_control_state): Likewise.
4950         (save_inferior_ptid): Likewise.
4951         (_initialize_infrun): Likewise.
4952         * jit.c (bfd_open_from_target_memory): Likewise.
4953         (jit_gdbarch_data_init): Likewise.
4954         * language.c (add_language): Likewise.
4955         * linespec.c (decode_line_2): Likewise.
4956         * linux-nat.c (add_to_pid_list): Likewise.
4957         (add_initial_lwp): Likewise.
4958         * linux-thread-db.c (add_thread_db_info): Likewise.
4959         (record_thread): Likewise.
4960         (info_auto_load_libthread_db): Likewise.
4961         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
4962         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4963         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4964         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
4965         * macrocmd.c (macro_define_command): Likewise.
4966         * macroexp.c (gather_arguments): Likewise.
4967         * macroscope.c (sal_macro_scope): Likewise.
4968         * macrotab.c (new_macro_table): Likewise.
4969         * mdebugread.c (push_parse_stack): Likewise.
4970         (parse_partial_symbols): Likewise.
4971         (parse_symbol): Likewise.
4972         (psymtab_to_symtab_1): Likewise.
4973         (new_block): Likewise.
4974         (new_psymtab): Likewise.
4975         (mdebug_build_psymtabs): Likewise.
4976         (add_pending): Likewise.
4977         (elfmdebug_build_psymtabs): Likewise.
4978         * mep-tdep.c (mep_gdbarch_init): Likewise.
4979         * mi/mi-main.c (mi_execute_command): Likewise.
4980         * mi/mi-parse.c (mi_parse_argv): Likewise.
4981         * minidebug.c (lzma_open): Likewise.
4982         * minsyms.c (terminate_minimal_symbol_table): Likewise.
4983         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
4984         * mips-tdep.c (mips_gdbarch_init): Likewise.
4985         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4986         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
4987         * mt-tdep.c (mt_registers_info): Likewise.
4988         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
4989         * nat/linux-btrace.c (linux_enable_bts): Likewise.
4990         (linux_enable_pt): Likewise.
4991         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
4992         (linux_xfer_osdata_processgroups): Likewise.
4993         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
4994         * nto-procfs.c (procfs_meminfo): Likewise.
4995         * objc-lang.c (start_msglist): Likewise.
4996         (selectors_info): Likewise.
4997         (classes_info): Likewise.
4998         (find_methods): Likewise.
4999         * objfiles.c (allocate_objfile): Likewise.
5000         (update_section_map): Likewise.
5001         * osabi.c (gdbarch_register_osabi): Likewise.
5002         (gdbarch_register_osabi_sniffer): Likewise.
5003         * parse.c (start_arglist): Likewise.
5004         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
5005         (hwdebug_insert_point): Likewise.
5006         * printcmd.c (display_command): Likewise.
5007         (ui_printf): Likewise.
5008         * procfs.c (create_procinfo): Likewise.
5009         (load_syscalls): Likewise.
5010         (proc_get_LDT_entry): Likewise.
5011         (proc_update_threads): Likewise.
5012         * prologue-value.c (make_pv_area): Likewise.
5013         (pv_area_store): Likewise.
5014         * psymtab.c (extend_psymbol_list): Likewise.
5015         (init_psymbol_list): Likewise.
5016         (allocate_psymtab): Likewise.
5017         * python/py-inferior.c (add_thread_object): Likewise.
5018         * python/py-param.c (compute_enum_values): Likewise.
5019         * python/py-value.c (valpy_call): Likewise.
5020         * python/py-varobj.c (py_varobj_iter_next): Likewise.
5021         * python/python.c (ensure_python_env): Likewise.
5022         * record-btrace.c (record_btrace_start_replaying): Likewise.
5023         * record-full.c (record_full_reg_alloc): Likewise.
5024         (record_full_mem_alloc): Likewise.
5025         (record_full_end_alloc): Likewise.
5026         (record_full_core_xfer_partial): Likewise.
5027         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
5028         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
5029         * remote-notif.c (remote_notif_state_allocate): Likewise.
5030         * remote.c (demand_private_info): Likewise.
5031         (remote_notif_stop_alloc_reply): Likewise.
5032         (remote_enable_btrace): Likewise.
5033         * reverse.c (save_bookmark_command): Likewise.
5034         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5035         * rx-tdep.c (rx_gdbarch_init): Likewise.
5036         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5037         * ser-go32.c (dos_get_tty_state): Likewise.
5038         (dos_copy_tty_state): Likewise.
5039         * ser-mingw.c (ser_windows_open): Likewise.
5040         (ser_console_wait_handle): Likewise.
5041         (ser_console_get_tty_state): Likewise.
5042         (make_pipe_state): Likewise.
5043         (net_windows_open): Likewise.
5044         * ser-unix.c (hardwire_get_tty_state): Likewise.
5045         (hardwire_copy_tty_state): Likewise.
5046         * solib-aix.c (solib_aix_new_lm_info): Likewise.
5047         * solib-dsbt.c (dsbt_current_sos): Likewise.
5048         (dsbt_relocate_main_executable): Likewise.
5049         * solib-frv.c (frv_current_sos): Likewise.
5050         (frv_relocate_main_executable): Likewise.
5051         * solib-spu.c (spu_bfd_fopen): Likewise.
5052         * solib-svr4.c (lm_info_read): Likewise.
5053         (svr4_copy_library_list): Likewise.
5054         (svr4_default_sos): Likewise.
5055         * source.c (find_source_lines): Likewise.
5056         (line_info): Likewise.
5057         (add_substitute_path_rule): Likewise.
5058         * spu-linux-nat.c (spu_bfd_open): Likewise.
5059         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
5060         * stabsread.c (dbx_lookup_type): Likewise.
5061         (read_type): Likewise.
5062         (read_member_functions): Likewise.
5063         (read_struct_fields): Likewise.
5064         (read_baseclasses): Likewise.
5065         (read_args): Likewise.
5066         (_initialize_stabsread): Likewise.
5067         * stack.c (func_command): Likewise.
5068         * stap-probe.c (handle_stap_probe): Likewise.
5069         * symfile.c (addrs_section_sort): Likewise.
5070         (addr_info_make_relative): Likewise.
5071         (load_section_callback): Likewise.
5072         (add_symbol_file_command): Likewise.
5073         (init_filename_language_table): Likewise.
5074         * symtab.c (create_filename_seen_cache): Likewise.
5075         (sort_search_symbols_remove_dups): Likewise.
5076         (search_symbols): Likewise.
5077         * target.c (make_cleanup_restore_target_terminal): Likewise.
5078         * thread.c (new_thread): Likewise.
5079         (enable_thread_stack_temporaries): Likewise.
5080         (make_cleanup_restore_current_thread): Likewise.
5081         (thread_apply_all_command): Likewise.
5082         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
5083         * top.c (gdb_readline_wrapper): Likewise.
5084         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
5085         * tracepoint.c (trace_find_line_command): Likewise.
5086         (all_tracepoint_actions_and_cleanup): Likewise.
5087         (make_cleanup_restore_current_traceframe): Likewise.
5088         (get_uploaded_tp): Likewise.
5089         (get_uploaded_tsv): Likewise.
5090         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
5091         (tui_alloc_win_info): Likewise.
5092         (tui_alloc_content): Likewise.
5093         (tui_add_content_elements): Likewise.
5094         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
5095         (tui_set_disassem_content): Likewise.
5096         * ui-file.c (ui_file_new): Likewise.
5097         (stdio_file_new): Likewise.
5098         (tee_file_new): Likewise.
5099         * utils.c (make_cleanup_restore_integer): Likewise.
5100         (add_internal_problem_command): Likewise.
5101         * v850-tdep.c (v850_gdbarch_init): Likewise.
5102         * valops.c (find_oload_champ): Likewise.
5103         * value.c (allocate_value_lazy): Likewise.
5104         (record_latest_value): Likewise.
5105         (create_internalvar): Likewise.
5106         * varobj.c (install_variable): Likewise.
5107         (new_variable): Likewise.
5108         (new_root_variable): Likewise.
5109         (cppush): Likewise.
5110         (_initialize_varobj): Likewise.
5111         * windows-nat.c (windows_make_so): Likewise.
5112         * x86-nat.c (x86_add_process): Likewise.
5113         * xcoffread.c (arrange_linetable): Likewise.
5114         (allocate_include_entry): Likewise.
5115         (process_linenos): Likewise.
5116         (SYMBOL_DUP): Likewise.
5117         (xcoff_start_psymtab): Likewise.
5118         (xcoff_end_psymtab): Likewise.
5119         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
5120         * xtensa-tdep.c (xtensa_register_type): Likewise.
5121         * gdbarch.c: Regenerate.
5122         * gdbarch.h: Regenerate.
5124 2015-08-25  Don Breazeal  <donb@codesourcery.com>
5126         * infrun.c (follow_exec): Re-order operations for
5127         handling follow-exec-mode "new".
5128         (handle_inferior_event_1): Assign ecs->event_thread
5129         to the current thread.
5130         * remote.c (get_remote_arch_state): Add an assertion.
5132 2015-08-26  Pedro Alves  <palves@redhat.com>
5134         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
5136 2015-08-25  Pedro Alves  <palves@redhat.com>
5138         PR gdb/18804
5139         * defs.h (maybe_quit): Declare.
5140         (QUIT): Now calls maybe_quit.
5141         * event-loop.c (clear_async_signal_handler)
5142         (async_signal_handler_is_marked): New functions.
5143         * event-loop.h (async_signal_handler_is_marked)
5144         (clear_async_signal_handler): New declarations.
5145         * remote.c (remote_check_pending_interrupt): New function.
5146         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
5147         longer check whether the target is async.  If waiting for a stop
5148         reply, and a Ctrl-C as been sent to the target, offer to
5149         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
5150         Otherwise do not disconnect and throw a quit.
5151         (_initialize_remote): Install remote_check_pending_interrupt as
5152         to_check_pending_interrupt.
5153         * target.c (target_check_pending_interrupt): New function.
5154         * target.h (struct target_ops) <to_check_pending_interrupt>: New
5155         field.
5156         (target_check_pending_interrupt): New declaration.
5157         * utils.c (maybe_quit): New function.
5158         * target-delegates.c: Regenerate.
5160 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5162         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
5163         Rename local variable pid to tid, and get lwpid of lwp.  Update
5164         debug output.
5166 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
5168         * ada-lang.c (ada_read_var_value): Add a var_block argument
5169         and pass it to default_read_var_value.
5170         * block.c (block_static_link): New accessor.
5171         * block.h (block_static_link): Declare it.
5172         * buildsym.c (finish_block_internal): Add a static_link
5173         argument.  If there is a static link, associate it to the new
5174         block.
5175         (finish_block): Add a static link argument and pass it to
5176         finish_block_internal.
5177         (end_symtab_get_static_block): Update calls to finish_block and
5178         to finish_block_internal.
5179         (end_symtab_with_blockvector): Update call to
5180         finish_block_internal.
5181         * buildsym.h: Forward-declare struct dynamic_prop.
5182         (struct context_stack): Add a static_link field.
5183         (finish_block): Add a static link argument.
5184         * c-exp.y: Remove an obsolete comment (evaluation of variables
5185         already start from the selected frame, and now they climb *up*
5186         the call stack) and propagate the block information to the
5187         produced expression.
5188         * d-exp.y: Likewise.
5189         * f-exp.y: Likewise.
5190         * go-exp.y: Likewise.
5191         * jv-exp.y: Likewise.
5192         * m2-exp.y: Likewise.
5193         * p-exp.y: Likewise.
5194         * coffread.c (coff_symtab_read): Update calls to finish_block.
5195         * dbxread.c (process_one_symbol): Likewise.
5196         * xcoffread.c (read_xcoff_symtab): Likewise.
5197         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
5198         "sym" parameter to struct block_symbol, update its uses and pass
5199         its block to calls to read_var_value.
5200         (convert_symbol_sym): Update the calls to convert_one_symbol.
5201         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
5202         call to read_var_value.
5203         * dwarf2loc.c (block_op_get_frame_base): New.
5204         (dwarf2_block_frame_base_locexpr_funcs): Implement the
5205         get_frame_base method.
5206         (dwarf2_block_frame_base_loclist_funcs): Likewise.
5207         (dwarf2locexpr_baton_eval): Add a frame argument and use it
5208         instead of the selected frame in order to evaluate the
5209         expression.
5210         (dwarf2_evaluate_property): Add a frame argument.  Update call
5211         to dwarf2_locexpr_baton_eval to provide a frame in available and
5212         to handle the absence of address stack.
5213         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
5214         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
5215         declaration.
5216         (read_func_scope): Record any available static link description.
5217         Update call to finish_block.
5218         (read_lexical_block_scope): Update call to finish_block.
5219         * findvar.c (follow_static_link): New.
5220         (get_hosting_frame): New.
5221         (default_read_var_value): Add a var_block argument.  Use
5222         get_hosting_frame to handle non-local references.
5223         (read_var_value): Add a var_block argument and pass it to the
5224         LA_READ_VAR_VALUE method.
5225         * gdbtypes.c (resolve_dynamic_range): Update calls to
5226         dwarf2_evaluate_property.
5227         (resolve_dynamic_type_internal): Likewise.
5228         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
5229         read_var_value, passing it the block coming from symbol lookup.
5230         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
5231         read_var_value (TODO).
5232         * infcmd.c (finish_command_continuation): Update call to
5233         read_var_value, passing it the block coming from symbol lookup.
5234         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5235         * language.h (struct language_defn): Add a var_block argument to
5236         the LA_READ_VAR_VALUE method.
5237         * objfiles.c (struct static_link_htab_entry): New.
5238         (static_link_htab_entry_hash): New.
5239         (static_link_htab_entry_eq): New.
5240         (objfile_register_static_link): New.
5241         (objfile_lookup_static_link): New.
5242         (free_objfile): Free the STATIC_LINKS hashed map if needed.
5243         * objfiles.h: Include hashtab.h.
5244         (struct objfile): Add a static_links field.
5245         (objfile_register_static_link): New.
5246         (objfile_lookup_static_link): New.
5247         * printcmd.c (print_variable_and_value): Update call to
5248         read_var_value.
5249         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
5250         * python/py-frame.c (frapy_read_var): Update call to
5251         read_var_value, passing it the block coming from symbol lookup.
5252         * python/py-framefilter.c (extract_sym): Add a sym_block
5253         parameter and set the pointed value to NULL (TODO).
5254         (enumerate_args): Update call to extract_sym.
5255         (enumerate_locals): Update calls to extract_sym and to
5256         read_var_value.
5257         * python/py-symbol.c (sympy_value): Update call to
5258         read_var_value (TODO).
5259         * stack.c (read_frame_local): Update call to read_var_value.
5260         (read_frame_arg): Likewise.
5261         (return_command): Likewise.
5262         * symtab.h (struct symbol_block_ops): Add a get_frame_base
5263         method.
5264         (struct symbol): Add a block field.
5265         (SYMBOL_BLOCK): New accessor.
5266         * valops.c (value_of_variable): Remove frame/block handling and
5267         pass the block argument to read_var_value, which does this job
5268         now.
5269         (value_struct_elt_for_reference): Update calls to
5270         read_var_value.
5271         (value_of_this): Pass the block found to read_var_value.
5272         * value.h (read_var_value): Add a var_block argument.
5273         (default_read_var_value): Likewise.
5275 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5277         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
5278         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
5279         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
5281 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5283         * Makefile.in (aarch64-liunx.o): New rule.
5284         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
5285         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
5286         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
5287         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
5288         extern.
5289         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
5290         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
5291         * nat/aarch64-linux.c: New file.
5292         * nat/aarch64-linux.h: New file.
5294 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5296         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
5297         lwp_arch_private_info and ptid_of_lwp.
5299 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5301         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
5302         Move it to nat/aarch64-linux-hw-point.c.
5303         (debug_reg_change_callback): Likewise.
5304         (aarch64_notify_debug_reg_change): :Likewise.
5305         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
5306         (aarch64_dr_update_callback_param): New.
5307         (debug_reg_change_callback): New function.
5308         (aarch64_notify_debug_reg_change): Likewise.
5309         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
5310         Remove the declaration.
5312 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5314         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
5315         Call current_lwp_ptid.
5317 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5319         * aarch64-linux-nat.c (debug_reg_change_callback): Use
5320         debug_printf.
5322 2015-08-25  Yao Qi  <yao.qi@linaro.org>
5324         * aarch64-linux-nat.c (debug_reg_change_callback): Call
5325         ptid_get_pid rather than ptid_get_lwp.
5327 2015-08-24  Pedro Alves  <palves@redhat.com>
5329         * NEWS (New commands): Mention set/show remote
5330         multiprocess-extensions-packet.
5331         * remote.c (remote_query_supported): Only tell the server to use
5332         the multiprocess extensions if the user hasn't force-disabled them
5333         with "set remote multiprocess-extensions-packet off".
5335 2015-08-24  Pedro Alves  <palves@redhat.com>
5337         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
5338         1029a8112290f6eee9d7878a391c49db42c999bd.
5339         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
5340         Regenerate.
5341         * gnulib/import/Makefile.am: Update.
5342         * gnulib/import/Makefile.in: Update.
5343         * gnulib/import/alloca.in.h: Update.
5344         * gnulib/import/basename-lgpl.c: Update.
5345         * gnulib/import/canonicalize-lgpl.c: Update.
5346         * gnulib/import/config.charset: Update.
5347         * gnulib/import/dirent.in.h: Update.
5348         * gnulib/import/dirfd.c: Update.
5349         * gnulib/import/dirname-lgpl.c: Update.
5350         * gnulib/import/dirname.h: Update.
5351         * gnulib/import/dosname.h: Update.
5352         * gnulib/import/errno.in.h: Update.
5353         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
5354         * gnulib/import/extra/snippet/c++defs.h: Update.
5355         * gnulib/import/extra/snippet/warn-on-use.h: Update.
5356         * gnulib/import/extra/update-copyright: Update.
5357         * gnulib/import/float+.h: Update.
5358         * gnulib/import/float.c: Update.
5359         * gnulib/import/float.in.h: Update.
5360         * gnulib/import/fnmatch.c: Update.
5361         * gnulib/import/fnmatch.in.h: Update.
5362         * gnulib/import/fnmatch_loop.c: Update.
5363         * gnulib/import/fpucw.h: Update.
5364         * gnulib/import/frexp.c: Update.
5365         * gnulib/import/frexpl.c: Update.
5366         * gnulib/import/gettimeofday.c: Update.
5367         * gnulib/import/inttypes.in.h: Update.
5368         * gnulib/import/isnan.c: Update.
5369         * gnulib/import/isnand-nolibm.h: Update.
5370         * gnulib/import/isnand.c: Update.
5371         * gnulib/import/isnanl-nolibm.h: Update.
5372         * gnulib/import/isnanl.c: Update.
5373         * gnulib/import/itold.c: Update.
5374         * gnulib/import/localcharset.c: Update.
5375         * gnulib/import/localcharset.h: Update.
5376         * gnulib/import/lstat.c: Update.
5377         * gnulib/import/m4/00gnulib.m4: Update.
5378         * gnulib/import/m4/absolute-header.m4: Update.
5379         * gnulib/import/m4/alloca.m4: Update.
5380         * gnulib/import/m4/canonicalize.m4: Update.
5381         * gnulib/import/m4/codeset.m4: Update.
5382         * gnulib/import/m4/configmake.m4: Update.
5383         * gnulib/import/m4/dirent_h.m4: Update.
5384         * gnulib/import/m4/dirfd.m4: Update.
5385         * gnulib/import/m4/dirname.m4: Update.
5386         * gnulib/import/m4/double-slash-root.m4: Update.
5387         * gnulib/import/m4/eealloc.m4: Update.
5388         * gnulib/import/m4/errno_h.m4: Update.
5389         * gnulib/import/m4/exponentd.m4: Update.
5390         * gnulib/import/m4/exponentl.m4: Update.
5391         * gnulib/import/m4/extensions.m4: Update.
5392         * gnulib/import/m4/extern-inline.m4: Update.
5393         * gnulib/import/m4/fcntl-o.m4: Update.
5394         * gnulib/import/m4/float_h.m4: Update.
5395         * gnulib/import/m4/fnmatch.m4: Update.
5396         * gnulib/import/m4/fpieee.m4: Update.
5397         * gnulib/import/m4/frexp.m4: Update.
5398         * gnulib/import/m4/frexpl.m4: Update.
5399         * gnulib/import/m4/gettimeofday.m4: Update.
5400         * gnulib/import/m4/glibc21.m4: Update.
5401         * gnulib/import/m4/gnulib-cache.m4: Update.
5402         * gnulib/import/m4/gnulib-common.m4: Update.
5403         * gnulib/import/m4/gnulib-comp.m4: Update.
5404         * gnulib/import/m4/gnulib-tool.m4: Update.
5405         * gnulib/import/m4/include_next.m4: Update.
5406         * gnulib/import/m4/inttypes-pri.m4: Update.
5407         * gnulib/import/m4/inttypes.m4: Update.
5408         * gnulib/import/m4/isnand.m4: Update.
5409         * gnulib/import/m4/isnanl.m4: Update.
5410         * gnulib/import/m4/largefile.m4: Update.
5411         * gnulib/import/m4/localcharset.m4: Update.
5412         * gnulib/import/m4/locale-fr.m4: Update.
5413         * gnulib/import/m4/locale-ja.m4: Update.
5414         * gnulib/import/m4/locale-zh.m4: Update.
5415         * gnulib/import/m4/longlong.m4: Update.
5416         * gnulib/import/m4/lstat.m4: Update.
5417         * gnulib/import/m4/malloc.m4: Update.
5418         * gnulib/import/m4/malloca.m4: Update.
5419         * gnulib/import/m4/math_h.m4: Update.
5420         * gnulib/import/m4/mbrtowc.m4: Update.
5421         * gnulib/import/m4/mbsinit.m4: Update.
5422         * gnulib/import/m4/mbsrtowcs.m4: Update.
5423         * gnulib/import/m4/mbstate_t.m4: Update.
5424         * gnulib/import/m4/memchr.m4: Update.
5425         * gnulib/import/m4/memmem.m4: Update.
5426         * gnulib/import/m4/mmap-anon.m4: Update.
5427         * gnulib/import/m4/multiarch.m4: Update.
5428         * gnulib/import/m4/nocrash.m4: Update.
5429         * gnulib/import/m4/off_t.m4: Update.
5430         * gnulib/import/m4/pathmax.m4: Update.
5431         * gnulib/import/m4/readlink.m4: Update.
5432         * gnulib/import/m4/rename.m4: Update.
5433         * gnulib/import/m4/rmdir.m4: Update.
5434         * gnulib/import/m4/ssize_t.m4: Update.
5435         * gnulib/import/m4/stat.m4: Update.
5436         * gnulib/import/m4/stdbool.m4: Update.
5437         * gnulib/import/m4/stddef_h.m4: Update.
5438         * gnulib/import/m4/stdint.m4: Update.
5439         * gnulib/import/m4/stdio_h.m4: Update.
5440         * gnulib/import/m4/stdlib_h.m4: Update.
5441         * gnulib/import/m4/string_h.m4: Update.
5442         * gnulib/import/m4/strstr.m4: Update.
5443         * gnulib/import/m4/strtok_r.m4: Update.
5444         * gnulib/import/m4/sys_socket_h.m4: Update.
5445         * gnulib/import/m4/sys_stat_h.m4: Update.
5446         * gnulib/import/m4/sys_time_h.m4: Update.
5447         * gnulib/import/m4/sys_types_h.m4: Update.
5448         * gnulib/import/m4/time_h.m4: Update.
5449         * gnulib/import/m4/unistd_h.m4: Update.
5450         * gnulib/import/m4/warn-on-use.m4: Update.
5451         * gnulib/import/m4/wchar_h.m4: Update.
5452         * gnulib/import/m4/wchar_t.m4: Update.
5453         * gnulib/import/m4/wctype_h.m4: Update.
5454         * gnulib/import/m4/wint_t.m4: Update.
5455         * gnulib/import/malloc.c: Update.
5456         * gnulib/import/malloca.c: Update.
5457         * gnulib/import/malloca.h: Update.
5458         * gnulib/import/math.in.h: Update.
5459         * gnulib/import/mbrtowc.c: Update.
5460         * gnulib/import/mbsinit.c: Update.
5461         * gnulib/import/mbsrtowcs-impl.h: Update.
5462         * gnulib/import/mbsrtowcs-state.c: Update.
5463         * gnulib/import/mbsrtowcs.c: Update.
5464         * gnulib/import/memchr.c: Update.
5465         * gnulib/import/memmem.c: Update.
5466         * gnulib/import/pathmax.h: Update.
5467         * gnulib/import/readlink.c: Update.
5468         * gnulib/import/ref-add.sin: Update.
5469         * gnulib/import/ref-del.sin: Update.
5470         * gnulib/import/rename.c: Update.
5471         * gnulib/import/rmdir.c: Update.
5472         * gnulib/import/same-inode.h: Update.
5473         * gnulib/import/stat.c: Update.
5474         * gnulib/import/stdbool.in.h: Update.
5475         * gnulib/import/stddef.in.h: Update.
5476         * gnulib/import/stdint.in.h: Update.
5477         * gnulib/import/stdio.c: Update.
5478         * gnulib/import/stdio.in.h: Update.
5479         * gnulib/import/stdlib.in.h: Update.
5480         * gnulib/import/str-two-way.h: Update.
5481         * gnulib/import/streq.h: Update.
5482         * gnulib/import/string.in.h: Update.
5483         * gnulib/import/stripslash.c: Update.
5484         * gnulib/import/strnlen1.c: Update.
5485         * gnulib/import/strnlen1.h: Update.
5486         * gnulib/import/strstr.c: Update.
5487         * gnulib/import/strtok_r.c: Update.
5488         * gnulib/import/sys_stat.in.h: Update.
5489         * gnulib/import/sys_time.in.h: Update.
5490         * gnulib/import/sys_types.in.h: Update.
5491         * gnulib/import/time.in.h: Update.
5492         * gnulib/import/unistd.in.h: Update.
5493         * gnulib/import/verify.h: Update.
5494         * gnulib/import/wchar.in.h: Update.
5495         * gnulib/import/wctype.in.h: Update.
5496         * gnulib/import/gettimeofday.c: New file.
5497         * gnulib/import/m4/absolute-header.m4: New file.
5498         * gnulib/import/m4/gettimeofday.m4: New file.
5499         * gnulib/import/m4/sys_socket_h.m4: New file.
5500         * gnulib/import/m4/sys_time_h.m4: New file.
5501         * gnulib/import/stdio.c: Delete file.
5502         * gnulib/import/sys_time.in.h: New file.
5504 2015-08-24  Pedro Alves  <palves@redhat.com>
5506         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
5507         * common/gdb_sys_time.h: New file.
5508         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
5509         * gdb_select.h: Likewise.
5510         * gdb_usleep.c: Likewise.
5511         * maint.c: Likewise.
5512         * mi/mi-main.c: Likewise.
5513         * mi/mi-parse.h: Likewise.
5514         * remote-fileio.c: Likewise.
5515         * remote-m32r-sdi.c: Likewise.
5516         * remote.c: Likewise.
5517         * ser-base.c: Likewise.
5518         * ser-pipe.c: Likewise.
5519         * ser-tcp.c: Likewise.
5520         * ser-unix.c: Likewise.
5521         * symfile.c: Likewise.
5522         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
5523         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
5524         * utils.c: Likewise.
5526 2015-08-24  Pedro Alves  <palves@redhat.com>
5528         * NEWS: Mention removed support for the various ROM monitors.
5529         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
5530         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
5531         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
5532         gdb_target_obs.
5533         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
5534         gdb_target_obs.
5535         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
5536         dsrec.o from gdb_target_obs.
5537         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
5538         from gdb_target_obs.
5539         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
5540         gdb_target_obs.
5541         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
5542         dink32-rom.o from gdb_target_obs.
5543         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
5544         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
5545         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
5546         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
5548 2015-08-21  Pedro Alves  <palves@redhat.com>
5550         * frame.c (null_frame_id): Explicitly zero-initialize.
5552 2015-08-21  Tom Tromey  <tromey@redhat.com>
5554         * dwarf2read.c (struct dwarf2_section_info): Rename field
5555         'asection' to 'section'.
5556         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
5557         (dwarf2_locate_sections, dwarf2_locate_sections)
5558         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
5559         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
5560         (dwarf2_locate_v2_dwp_sections): Adjust.
5562 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
5564         * top.h (gdb_in_secondary_prompt_p): Declare.
5565         * top.c (gdb_secondary_prompt_depth): Define.
5566         (gdb_in_secondary_prompt_p): Define.
5567         (gdb_readline_wrapper_cleanup): Decrement
5568         gdb_secondary_prompt_depth.
5569         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
5570         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
5571         are in a secondary prompt.
5573 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
5575         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
5576         emit the newline.
5578 2015-08-21  Gary Benson  <gbenson@redhat.com>
5580         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
5582 2015-08-21  Gary Benson  <gbenson@redhat.com>
5584         * target.h (struct target_ops) <to_fileio_open>: New argument
5585         warn_if_slow.  Update comment.  All implementations updated.
5586         (target_fileio_open_warn_if_slow): New declaration.
5587         * target.c (target_fileio_open): Renamed as...
5588         (target_fileio_open_1): ...this.  New argument warn_if_slow.
5589         Pass warn_if_slow to implementation.  Update debug printing.
5590         (target_fileio_open): New function.
5591         (target_fileio_open_warn_if_slow): Likewise.
5592         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
5593         target_fileio_open_warn_if_slow.
5595 2015-08-21  Gary Benson  <gbenson@redhat.com>
5597         * nat/linux-namespaces.c (linux_mntns_access_fs):
5598         Do not overwrite old_chain.
5600 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
5602         * arch/xtensa.h: New file.
5603         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
5604         (ps_get_thread_area): New function.
5605         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
5606         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
5607         * xtensa-tdep.c (osabi.h): New #include.
5608         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
5609         xtensa-specific hooks.
5610         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
5611         member and move the structure to arch/xtensa.h.
5613 2015-08-21  Pedro Alves  <palves@redhat.com>
5615         * remote.c (struct readahead_cache): New.
5616         (struct remote_state) <readahead_cache>: New field.
5617         (remote_open_1): Invalidate the cache.
5618         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
5619         functions.
5620         (remote_hostio_pwrite): Invalidate the readahead cache.
5621         (remote_hostio_pread): Rename to ...
5622         (remote_hostio_pread_vFile): ... this.
5623         (remote_hostio_pread_from_cache): New function.
5624         (remote_hostio_pread): Reimplement.
5625         (remote_hostio_close): Invalidate the readahead cache.
5627 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
5629         PR build/18843
5630         * procfs.c: Include "filestuff.h".
5632 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
5634         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
5635         curch.
5636         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
5637         cur_line or curch, instead call wmove().
5638         (init_win_info) [CMD_WIN]: Likewise.
5639         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
5640         instead call getcury().
5641         (tui_redisplay_readline): Don't set cur_line or curch.
5642         (tui_mld_erase_entire_line): Don't read cur_line, instead call
5643         getcury().
5644         (tui_cont_sig): Remove call to wmove.
5645         (tui_getc): Don't read cur_line or curch, instead call getcury()
5646         or getyx().  Don't set curch.
5647         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
5648         set cur_line or curch.  Always move cursor to (0,0).
5650 2015-08-20  Pedro Alves  <palves@redhat.com>
5652         * infrun.c (print_target_wait_results): Make extern.
5653         * infrun.h (print_target_wait_results): Declare.
5654         * remote.c (set_stop_requested_callback): Delete.
5655         (process_initial_stop_replies): New function.
5656         (remote_start_remote): Use it.
5657         (stop_reply_queue_length): New function.
5659 2015-08-20  Pedro Alves  <palves@redhat.com>
5661         * dwarf2read.c (process_full_comp_unit): To tell whether
5662         start_subfile managed to deduce a language, test for
5663         language_unknown instead of language_c.
5665 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
5667         * ada-lex.l: Reset the start condition to INITIAL in the rule that
5668         matches attributes.
5670 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
5672         * dwarf2read.c (dwarf2_string_attr): New function.
5673         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
5674         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
5675         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
5676         (anonymous_struct_prefix, prepare_one_comp_unit): Use
5677         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
5679 2015-08-18  Doug Evans  <dje@google.com>
5680             Adrian Sendroiu <adrian.sendroiu@freescale.com>
5682         PR mi/18833
5683         * cli/cli-logging.c (pop_output_files): Don't restore redirection
5684         if MI-like.
5685         * mi/mi-out.c: #include "vec.h".
5686         (ui_filep): New type.
5687         (DEV_VEC_P (ui_filep)): New type.
5688         (struct ui_out_data) <buffer, original_buffer>: Delete.
5689         (struct ui_out_data) <streams>: New member.
5690         (mi_ui_out_impl): Add data_destroy field.
5691         (mi_field_string, mi_field_fmt): Update.
5692         (mi_flush, mi_redirect, field_separator): Update.
5693         (mi_open, mi_close): Update.
5694         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
5695         (mi_out_data_ctor, mi_out_data_dtor): New functions.
5696         (mi_out_new): Call mi_out_data_ctor.
5698 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
5700         * remote.c (strprefix): New.
5701         (remote_parse_stop_reply): Use strprefix instead of strncmp
5702         to ensure exact match of keyword.
5704 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
5706         * gdb_bfd.c (debug_bfd_cache): New variable.
5707         (show_bfd_cache_debug): New function.
5708         (gdb_bfd_open): Add debug logging.
5709         (gdb_bfd_ref): Likewise.
5710         (gdb_bfd_unref): Likewise.
5711         (_initialize_gdb_bfd): Add new set/show command.
5712         * NEWS: Mention new command.
5714 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
5716         * gdb_bfd.c (bfd_sharing): New variable.
5717         (show_bfd_sharing): New function.
5718         (gdb_bfd_open): Check bfd_sharing variable.
5719         (_initialize_gdb_bfd): Add new set/show command.
5720         * NEWS: Mention new command.
5722 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
5724         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
5725         field.
5726         (struct gdb_bfd_cache_search): Likewise.
5727         (eq_bfd): Compare the size, inode, and device id fields.
5728         (gdb_bfd_open): Initialise the size, inode, and device id fields.
5729         (gdb_bfd_ref): Likewise.
5730         (gdb_bfd_unref): Likewise.
5732 2015-08-18  Pedro Alves  <palves@redhat.com>
5734         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
5735         target implements to_always_non_stop_p, call it.
5736         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
5737         (x86_linux_create_target): Install it as to_always_non_stop_p
5738         method.
5740 2015-08-17  Doug Evans  <dje@google.com>
5742         * ui-out.c (default_ui_out_impl): Add comment.
5744 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
5746         * d-exp.y (type_aggregate_p): New function.
5747         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
5748         (classify_inner_name): Likewise.
5749         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
5751 2015-08-15  Doug Evans  <xdje42@gmail.com>
5753         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
5754         updated.
5755         (add_psymbol_to_list): Ditto.
5757 2015-08-15  Doug Evans  <xdje42@gmail.com>
5759         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
5760         updated.  Call end_psymtab_common.
5761         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
5762         end_psymtab_common.
5763         (build_type_psymtabs_reader): Ditto.
5764         * psympriv.h (sort_pst_symbols): Delete.
5765         (end_psymtab_common): Declare.
5766         * psymtab.c (sort_pst_symbols): Make static.
5767         (end_psymtab_common): New function.
5768         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
5770 2015-08-15  Doug Evans  <xdje42@gmail.com>
5772         * defs.h (LANGUAGE_BITS): Define.
5773         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
5774         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
5775         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
5776         (minimal_symbol_type): Add nr_minsym_types.
5777         (MINSYM_TYPE_BITS): Define.
5778         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
5779         (domain_enum_tag): Add NR_DOMAINS.
5780         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
5781         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
5783 2015-08-15  Doug Evans  <xdje42@gmail.com>
5785         * objfiles.h: Whitespace cleanup.
5786         * psympriv.h: Whitespace cleanup.
5787         * psymtab.c: Whitespace/coding convention cleanup.
5789 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
5791         * inferior.c (detach_inferior_command): Don't call
5792         any_thread_of_process when pid is 0.
5793         (kill_inferior_command): Likewise.
5795 2015-08-14  Doug Evans  <xdje42@gmail.com>
5797         PR gdb/11833
5798         * NEWS: Document new /s modifier for the disassemble command.
5799         * cli/cli-cmds.c (disassemble_command): Add support for /s.
5800         (_initialize_cli_cmds): Update online docs of disassemble command.
5801         * disasm.c: #include "source.h".
5802         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
5803         All uses updated.
5804         (dis_line_entry): New struct.
5805         (hash_dis_line_entry, eq_dis_line_entry): New functions.
5806         (allocate_dis_line_table): New functions.
5807         (maybe_add_dis_line_entry, line_has_code_p): New functions.
5808         (dump_insns): New arg end_pc.  All callers updated.
5809         (do_mixed_source_and_assembly_deprecated): Renamed from
5810         do_mixed_source_and_assembly.  All callers updated.
5811         (do_mixed_source_and_assembly): New function.
5812         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
5813         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
5814         DISASSEMBLY_SOURCE.  All uses updated.
5815         (DISASSEMBLY_SOURCE): New macro.
5816         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
5818 2015-08-14  Keith Seitz  <keiths@redhat.com>
5820         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
5821         `typename' to `type_name' to avoid C++ reserved word.
5823 2015-08-14  Keith Seitz  <keiths@redhat.com>
5825         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
5826         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
5827         silence ARI errors.
5829 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
5831         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
5832         xstrprintf instead of malloc and sprintf.
5833         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
5834         (lex_one_token): Likewise.
5836 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
5838         * solib-svr4.c (read_program_header): Add base_addr argument to
5839         report the runtime address of the segment.
5840         (find_program_interpreter): Update read_program_header call to pass
5841         a NULL pointer for the new argument.
5842         (scan_dyntag): Add ptr_addr argument to report the runtime address
5843         of the tag payload.
5844         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
5845         read_program_header to get the base address of the dynamic segment.
5846         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
5847         read_program_header.
5848         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
5850 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
5852         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
5854 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
5856         * d-exp.y (%union): Add voidval.
5857         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
5858         name in the lexing stage.
5859         (PostfixExpression): Move symbol completion handling in grammar here
5860         from PrimaryExpression.
5861         (PrimaryExpression): Move routines to handle resolving identifier
5862         tokens in the grammar here from push_expression_name.
5863         (IdentifierExp): Remove the handling of alternating '.' and identifier
5864         tokens.
5865         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
5866         (BasicType): Remove C-style typename rules.
5867         (d_type_from_name, d_module_from_name, push_variable)
5868         (push_fieldnames, push_type_name, push_module_name)
5869         (push_expression_name): Remove.
5870         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
5871         (token_and_value): New type.
5872         (token_fifo, popping, name_obstack): New globals.
5873         (classify_name): New function.
5874         (classify_inner_name): Likewise.
5875         (yylex): Likewise.
5876         (d_parse): Initialize token_fifo, popping and name_obstack.
5878 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
5880         * Makefile.in (SFILES): Add d-namespace.c.
5881         (COMMON_OBS): Add d-namespace.o.
5882         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
5883         la_lookup_symbol_nonlocal callback function pointer.
5884         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
5885         (d_lookup_nested_symbol): New declaration.
5886         * d-namespace.c: New file.
5888 2015-08-13  Pedro Alves  <palves@redhat.com>
5890         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
5891         cleanup after the decref cleanup, not before.
5893 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
5895         * ada-lang.c: Include namespace.h
5896         (aux_add_nonlocal_symbols): Fix a function name in comment.
5897         (ada_add_block_renamings): New.
5898         (add_nonlocal_symbols): Add global renamings handling.
5899         (ada_lookup_symbol_list_worker): Move the symbol lookup part
5900         to...
5901         (ada_add_all_symbols): ... this new function.
5902         (ada_add_block_symbols): Try to match the input name against the
5903         "using directives list", perform a recursive symbol lookup on
5904         the matched declarations.
5905         * block.h (struct block): Move the_namespace to top-level as
5906         namespace_info. Remove the language_specific field.
5907         (BLOCK_NAMESPACE): Update access to the namespace_info field.
5908         * buildsym.h (using_directives): Rename into...
5909         (local_using_directives): ... this.
5910         (global_using_directives): New.
5911         (struct context_stack): Rename the using_directives field into
5912         local_using_directives.
5913         * buildsym.c (finish_block_internal): Deal with the proper
5914         using directives repository (local or global).
5915         (prepare_for_building): Reset local_using_directives. Assert
5916         that there is no pending global using directive.
5917         (reset_symtab_globals): Reset global_using_directives and
5918         local_using_directives.
5919         (end_symtab_get_static_block): Don't ignore symtabs that have
5920         only using directives.
5921         (push_context): Update references to local_using_directives.
5922         (buildsym_init): Do not reset using_directives.
5923         * cp-support.c: Include namespace.h.
5924         * cp-support.h (struct using_direct): Move to namespace.h.
5925         (cp_add_using_directives): Move to namespace.h.
5926         * cp-namespace.c: Include namespace.h
5927         (cp_add_using_directive): Move to namespace.c, rename it to
5928         add_using_directive, add a "using_directives" argument and use
5929         it as the pending using directives repository.  All callers
5930         updated.
5931         * dwarf2read.c (using_directives): New.
5932         (read_import_statement): Call using_directives.
5933         (read_func_scope): Update references to local_using_directives.
5934         (read_lexical_block_scope): Likewise.
5935         (read_namespace): Update the heading comment, call
5936         using_directives.
5937         * namespace.h: New file.
5938         * namespace.c: New file.
5939         * Makefile.in (SFILES): Add namespace.c.
5940         (COMMON_OBS): Add namespace.o
5942 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
5944         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
5945         compute RETADDR.
5947 2015-08-12  Keith Seitz  <keiths@redhat.com>
5949         * break-catch-throw.c (re_set_exception_catchpoint) Rename
5950         reserved C++ keyword "explicit" to "explicit_loc".
5951         * breakpoint.c (create_overlay_event_breakpoint)
5952         (create_longjmp_master_breakpoint)
5953         (create_std_terminate_master_breakpoint)
5954         (create_exception_master_breakpoint, update_static_tracepoint):
5955         Rename reserved C++ keyword "explicit" to "explicit_loc".
5956         * completer.c (collect_explicit_location_matches)
5957         (explicit_location_completer): Rename reserved C++ keyword
5958         "explicit" to "explicit_loc".
5959         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
5960         (canonicalize_linespec, create_sals_line_offset)
5961         (convert_linespec_to_sals, convert_explicit_location_to_sals)
5962         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
5963         "explicit" to "explicit_loc".
5964         * location.c (struct event_location) <explicit>: Rename to
5965         "explicit_loc".
5966         (initialize_explicit_location, new_explicit_location)
5967         (explicit_location_to_string_internal, explicit_location_to_linespec):
5968         Rename reserved C++ keyword "explicit" to "explicit_loc".
5969         * location.h (explicit_location_to_string)
5970         (explicit_location_to_linespec, initialize_explicit_location)
5971         (new_explicit_location): Rename reserved C++ keyword "explicit"
5972         to "explicit_loc".
5973         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
5974         keyword "explicit" to "explicit_loc".
5976 2015-08-12  Keith Seitz  <keiths@redhat.com>
5978         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
5979         and only call decode_line_1 when it is non-NULL.
5981 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
5983         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
5984         location address is not meaningful.
5985         (breakpoint_address_is_meaningful): Update comment.
5987 2015-08-11  Keith Seitz  <keiths@redhat.com>
5989         * NEWS: Mention explicit locations.
5990         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
5991         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
5992         (_initialize_breakpoint): Update documentation for
5993         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
5995 2015-08-11  Keith Seitz  <keiths@redhat.com>
5997         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
5998         explicit locations, options "--source", "--function",
5999         "--label", and "--line".
6001 2015-08-11  Keith Seitz  <keiths@redhat.com>
6003         * completer.c: Include location.h.
6004         (enum match_type): New enum.
6005         (location_completer): Rename to ...
6006         (linespec_completer): ... this.
6007         (collect_explicit_location_matches, backup_text_ptr)
6008         (explicit_location_completer): New functions.
6009         (location_completer): "New" function; handle linespec
6010         and explicit location completions.
6011         (complete_line_internal): Remove all location completer-specific
6012         handling.
6013         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
6014         (find_toplevel_char): Export.
6015         (linespec_parse_line_offset): Export.
6016         Issue error if STRING is not numerical.
6017         (gdb_get_linespec_parser_quote_characters): New function.
6018         * linespec.h (linespec_parse_line_offset): Declare.
6019         (get_gdb_linespec_parser_quote_characters): Declare.
6020         (is_ada_operator): Declare.
6021         (find_toplevel_char): Declare.
6022         (linespec_lexer_lex_keyword): Declare.
6023         * location.c (explicit_to_event_location): New function.
6024         (explicit_location_lex_one): New function.
6025         (string_to_explicit_location): New function.
6026         (string_to_event_location): Handle explicit locations.
6027         * location.h (explicit_to_event_location): Declare.
6028         (string_to_explicit_location): Declare.
6030 2015-08-11  Keith Seitz  <keiths@redhat.com>
6032         * break-catch-throw.c (re_set_exception_catchpoint): Convert
6033         linespec into explicit location.
6034         * breakpoint.c (create_overlay_breakpoint)
6035         (create_longjmp_master_breakpoint)
6036         (create_std_terminate_master_breakpoint)
6037         (create_exception_master_breakpoint): Convert linespec into explicit
6038         location.
6039         (update_static_tracepoint): Convert linespec into explicit location.
6040         * linespec.c (enum offset_relative_sign, struct line_offset): Move
6041         location.h.
6042         (struct linespec) <expression, expr_pc, source_filename>
6043         <function_name, label_name, line_offset>: Replace with ...
6044         <explicit>: ... this.
6045         <is_linespec>: New member.
6046         (PARSER_EXPLICIT): New accessor macro.
6047         (undefined_label_error): New function.
6048         (source_file_not_found_error): New function.
6049         (linespec_parse_basic): The parser result is now an explicit location.
6050         Use PARSER_EXPLICIT to access it.
6051         Use undefined_label_error.
6052         (canonicalize_linespec): Convert canonical linespec into explicit
6053         location.
6054         Move string representation of location to explicit_location_to_linespec
6055         and use it and explicit_location_to_string to save string
6056         representations of the canonical location.
6057         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
6058         explicit location.  Update all references.
6059         (convert_explicit_location_to_sals): New function.
6060         (parse_linespec): Use PARSER_EXPLICIT to access the parser
6061         result's explicit location.
6062         (linespec_state_constructor): Initialize is_linespec.
6063         Use PARSER_EXPLICIT.
6064         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
6065         result.
6066         (event_location_to_sals): For linespec locations, set is_linespec.
6067         Handle explicit locations.
6068         (decode_objc): 'ls' contains an explicit location now. Update all
6069         references.
6070         (symtabs_from_filename): Use source_file_not_found_error.
6071         * location.c (struct event_location.u) <explicit>: New member.
6072         (initialize_explicit_location): New function.
6073         (initialize_event_location): Initialize explicit locations.
6074         (new_explicit_location, get_explicit_location)
6075         (get_explicit_location_const): New functions.
6076         (explicit_to_string_internal): New function; most of contents moved
6077         from canonicalize_linespec.
6078         (explicit_location_to_string): New function.
6079         (explicit_location_to_linespec): New function.
6080         (copy_event_location, delete_event_location)
6081         (event_location_to_string_const, event_location_empty_p): Handle
6082         explicit locations.
6083         * location.h (enum offset_relative_sign, struct line_offset): Move
6084         here from linespec.h.
6085         (enum event_location_type): Add EXPLICIT_LOCATION.
6086         (struct explicit_location): New structure.
6087         (explicit_location_to_string): Declare.
6088         (explicit_location_to_linespec): Declare.
6089         (new_explicit_location, get_explicit_locationp
6090         (get_explicit_location_const, initialize_explicit_location): Declare.
6092 2015-08-11  Keith Seitz  <keiths@redhat.com>
6094         * break-catch-throw.c (re_set_exception_catchpoint): Convert
6095         linespec for stap probe to probe location.
6096         * breakpoint.c (create_longjmp_master_breakpoint)
6097         (create_exception_master_breakpoint): Likewise.
6098         (break_command_1): Remove local variable `arg_cp'.
6099         Check location type to set appropriate breakpoint ops methods.
6100         (trace_command): Likewise.
6101         * linespec.c (event_location_to_sals): Assert on probe locations.
6102         * location.c (EL_PROBE): Add macro definition.
6103         (new_probe_location, get_probe_location): New functions.
6104         (copy_event_location, delete_event_location, event_location_to_string)
6105         (string_to_event_location, event_location_empty_p): Handle probe
6106         locations.
6107         * location.h (enum event_location_type): Add PROBE_LOCATION.
6108         (new_probe_location, get_probe_location): Declare.
6109         * probe.c (parse_probes): Assert that LOCATION is a probe location.
6110         Convert linespec into probe location.
6112 2015-08-11  Keith Seitz  <keiths@redhat.com>
6114         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
6115         Convert linespec to address location.
6116         * linespec.c (canonicalize_linespec): Do not handle address
6117         locations here.
6118         (convert_address_location_to_sals): New function; contents moved
6119         from ...
6120         (convert_linespc_to_sals): ... here.
6121         (parse_linespec): Remove address locations from linespec grammar.
6122         Remove handling of address locations.
6123         (linespec_lex_to_end): Remove handling of address linespecs.
6124         (event_location_to_sals): Handle ADDRESS_LOCATION.
6125         (linespec_expression_to_pc): Export.
6126         * linespec.h (linespec_expression_to_pc): Add declaration.
6127         * location.c (struct event_location.u) <address>: New member.
6128         (new_address_location, get_address_location): New functions.
6129         (copy_event_location, delete_event_location, event_location_to_string)
6130         (string_to_event_location, event_location_empty_p): Handle address
6131         locations.
6132         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
6133         (new_address_location, get_address_location): Declare.
6134         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
6135         to address location.
6136         * spu-tdep.c (spu_catch_start): Likewise.
6138 2015-08-11  Keith Seitz  <keiths@redhat.com>
6140         * ax-gdb.c: Include location.h.
6141         (agent_command_1) Use linespec location instead of address
6142         string.
6143         * break-catch-throw.c: Include location.h.
6144         (re_set_exception_catchpoint): Use linespec locations instead
6145         of address strings.
6146         * breakpoint.c: Include location.h.
6147         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
6148         (create_std_terminate_master_breakpoint)
6149         (create_exception_master_breakpoint, update_breakpoints_after_exec):
6150         Use linespec location instead of address string.
6151         (print_breakpoint_location):  Use locations and
6152         event_location_to_string.
6153         Print extra_string for pending locations for non-MI streams.
6154         (print_one_breakpoint_location): Use locations and
6155         event_location_to_string.
6156         (init_raw_breakpoint_without_location): Initialize b->location.
6157         (create_thread_event_breakpoint): Use linespec location instead of
6158         address string.
6159         (init_breakpoint_sal): Likewise.
6160         Only save extra_string if it is non-NULL and not the empty string.
6161         Use event_location_to_string instead of `addr_string'.
6162         Constify `p' and `endp'.
6163         Use skip_spaces_const/skip_space_const instead of non-const versions.
6164         Copy the location into the breakpoint.
6165         If LOCATION is NULL, save the breakpoint address as a linespec location
6166         instead of an address string.
6167         (create_breakpoint_sal): Change `addr_string' parameter to a struct
6168         event_location. All uses updated.
6169         (create_breakpoints_sal): Likewise for local variable `addr_string'.
6170         (parse_breakpoint_sals): Use locations instead of address strings.
6171         Remove check for empty linespec with conditional.
6172         Refactor.
6173         (decode_static_tracepoint_spec): Make argument const and update
6174         function.
6175         (create_breakpoint): Change `arg' to a struct event_location and
6176         rename.
6177         Remove `copy_arg' and `addr_start'.
6178         If EXTRA_STRING is empty, set it to NULL.
6179         Don't populate `canonical' for pending breakpoints.
6180         Pass `extra_string' to find_condition_and_thread.
6181         Clear `extra_string' if `rest' was NULL.
6182         Do not error with "garbage after location" if setting a dprintf
6183         breakpoint.
6184         Copy the location into the breakpoint instead of an address string.
6185         (break_command_1): Use string_to_event_location and pass this to
6186         create_breakpoint instead of an address string.
6187         Check against `arg_cp' for a probe linespec.
6188         (dprintf_command): Use string_to_event_location and pass this to
6189         create_breakpoint instead of an address string.
6190         Throw an exception if no format string was specified.
6191         (print_recreate_ranged_breakpoint): Use event_location_to_string
6192         instead of address strings.
6193         (break_range_command, until_break_command)
6194         (init_ada_exception_breakpoint): Use locations instead
6195         of address strings.
6196         (say_where): Print out extra_string for pending locations.
6197         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
6198         the breakpoint.
6199         (base_breakpoint_create_sals_from_location): Use struct event_location
6200         instead of address string.
6201         Remove `addr_start' and `copy_arg' parameters.
6202         (base_breakpoint_decode_location): Use struct event_location instead of
6203         address string.
6204         (bkpt_re_set): Use locations instead of address strings.
6205         Use event_location_empty_p to check for unset location.
6206         (bkpt_print_recreate): Use event_location_to_string instead of
6207         an address string.
6208         Print out extra_string for pending locations.
6209         (bkpt_create_sals_from_location, bkpt_decode_location)
6210         (bkpt_probe_create_sals_from_location): Use struct event_location
6211         instead of address string.
6212         (bkpt_probe_decode_location): Use struct event_location instead of
6213         address string.
6214         (tracepoint_print_recreate): Use event_location_to_string to
6215         recreate the tracepoint.
6216         (tracepoint_create_sals_from_location, tracepoint_decode_location)
6217         (tracepoint_probe_create_sals_from_location)
6218         (tracepoint_probe_decode_location): Use struct event_location
6219         instead of address string.
6220         (dprintf_print_recreate): Use event_location_to_string to recreate
6221         the dprintf.
6222         (dprintf_re_set): Remove check for valid/missing format string.
6223         (strace_marker_create_sals_from_location)
6224         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
6225         (update_static_tracepoint): Use struct event_location instead of
6226         address string.
6227         (location_to_sals): Likewise.
6228         Pass `extra_string' to find_condition_and_thread.
6229         For newly resolved pending breakpoint locations, clear the location's
6230         string representation.
6231         Assert that the breakpoint's condition string is NULL when
6232         condition_not_parsed.
6233         (breakpoint_re_set_default, create_sals_from_location_default)
6234         (decode_location_default, trace_command, ftrace_command)
6235         (strace_command, create_tracepoint_from_upload): Use locations
6236         instead of address strings.
6237         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
6238         Use struct event_location instead of address string.
6239         Update all uses.
6240         <decode_location>: Likewise.
6241         (struct breakpoint) <addr_string>: Change to struct event_location
6242         and rename `location'.
6243         <addr_string_range_end>: Change to struct event_location and rename
6244         `location_range_end'.
6245         (create_breakpoint): Use struct event_location instead of address
6246         string.
6247         * cli/cli-cmds.c: Include location.h.
6248         (edit_command, list_command): Use locations instead of address strings.
6249         * elfread.c: Include location.h.
6250         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
6251         * guile/scm-breakpoint.c: Include location.h.
6252         (bpscm_print_breakpoint_smob): Use event_location_to_string.
6253         (gdbscm_register_breakpoint): Use locations instead of address
6254         strings.
6255         * linespec.c: Include location.h.
6256         (struct ls_parser) <stream>: Change to const char *.
6257         (PARSER_STREAM): Update.
6258         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
6259         keywords must be followed by whitespace.
6260         (canonicalize_linespec): Save a linespec location into `canonical'.
6261         Save a canonical linespec into `canonical'.
6262         (parse_linespec): Change `argptr' to const char * and rename `arg'.
6263         All uses updated.
6264         Update function description.
6265         (linespec_parser_new): Initialize `parser'.
6266         Update initialization of  parsing stream.
6267         (event_location_to_sals): New function.
6268         (decode_line_full): Change `argptr' to a struct event_location and
6269         rename it `location'.
6270         Use locations instead of address strings.
6271         Call event_location_to_sals instead of parse_linespec.
6272         (decode_line_1): Likewise.
6273         (decode_line_with_current_source, decode_line_with_last_displayed)
6274         Use locations instead of address strings.
6275         (decode_objc): Likewise.
6276         Change `argptr' to const char * and rename `arg'.
6277         (destroy_linespec_result): Delete the linespec result's location
6278         instead of freeing the address string.
6279         * linespec.h (struct linespec_result) <addr_string>: Change to
6280         struct event_location and rename to ...
6281         <location>: ... this.
6282         (decode_line_1, decode_line_full): Change `argptr' to struct
6283         event_location.  All callers updated.
6284         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
6285         (mi_cmd_break_insert_1): Use locations instead of address strings.
6286         Throw an error if there was "garbage" at the end of the specified
6287         linespec.
6288         * probe.c: Include location.h.
6289         (parse_probes): Change `argptr' to struct event_location.
6290         Use event locations instead of address strings.
6291         * probe.h (parse_probes): Change `argptr' to struct event_location.
6292         * python/py-breakpoint.c: Include location.h.
6293         (bppy_get_location): Constify local variable `str'.
6294         Use event_location_to_string.
6295         (bppy_init): Use locations instead of address strings.
6296         * python/py-finishbreakpoint.c: Include location.h.
6297         (bpfinishpy_init): Remove local variable `addr_str'.
6298         Use locations instead of address strings.
6299         * python/python.c: Include location.h.
6300         (gdbpy_decode_line): Use locations instead of address strings.
6301         * remote.c: Include location.h.
6302         (remote_download_tracepoint): Use locations instead of address
6303         strings.
6304         * spu-tdep.c: Include location.h.
6305         (spu_catch_start): Remove local variable `buf'.
6306         Use locations instead of address strings.
6307         * tracepoint.c: Include location.h.
6308         (scope_info): Use locations instead of address strings.
6309         (encode_source_string): Constify parameter `src'.
6310         * tracepoint.h (encode_source_string): Likewise.
6312 2015-08-11  Keith Seitz  <keiths@redhat.com>
6314         * Makefile.in (SFILES): Add location.c.
6315         (HFILES_NO_SRCDIR): Add location.h.
6316         (COMMON_OBS): Add location.o.
6317         * linespec.c (linespec_lex_to_end): New function.
6318         * linespec.h (linespec_lex_to_end): Declare.
6319         * location.c: New file.
6320         * location.h: New file.
6322 2015-08-11  Keith Seitz  <keiths@redhat.com>
6324         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
6325         Renamed to create_sals_from_location.
6326         <decode_linespec>: Renamed to decode_location.
6327         Update all callers.
6328         * breakpoint.c (create_sals_from_address_default): Renamed to ...
6329         (create_sals_from_location_default): ... this.
6330         (addr_string_to_sals): Renamed to ...
6331         (location_to_sals): ... this.
6332         (decode_linespec_default): Renamed to ...
6333         (decode_location_default): ... this.
6334         (base_breakpoint_create_sals_from_address): Renamed to ...
6335         (base_breakpoint_create_sals_from_location): ... this.
6336         (bkpt_create_sals_from_address): Renamed to ...
6337         (bkpt_create_sals_from_location): ... this.
6338         (bkpt_decode_linespec): Renamed to ...
6339         (bkpt_decode_location): ... this.
6340         (bkpt_probe_create_sals_from_address): Renamed to ...
6341         (bkpt_probe_create_sals_from_location): ... this.
6342         (tracepoint_create_sals_from_address): Renamed to ...
6343         (tracepoint_create_sals_from_location): ... this.
6344         (tracepoint_decode_linespec): Renamed to ...
6345         (tracepoint_decode_location): ... this.
6346         (tracepoint_probe_create_sals_from_address): Renamed to ...
6347         (tracepoint_probe_create_sals_from_location): ... this.
6348         (tracepoint_probe_decode_linespec): Renamed to ...
6349         (tracepoint_probe_decode_location): ... this.
6350         (strace_marker_create_sals_from_address): Renamed to ...
6351         (strace_marker_create_sals_from_location): ... this.
6352         (decode_linespec_default): Renamed to ...
6353         (decode_location_default): ... this.
6355 2015-08-10  Doug Evans  <dje@google.com>
6356             Keith Seitz  <keiths@redhat.com>
6358         PR gdb/17960
6359         * symtab.c (make_file_symbol_completion_list_1): Renamed from
6360         make_file_symbol_completion_list and made static.
6361         (make_file_symbol_completion_list): New function.
6363 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
6365         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
6366         trailing new-line at end of warning message.
6367         (proceed): Add i18n marker to error messages.
6369 2015-08-07  Pedro Alves  <palves@redhat.com>
6371         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
6373 2015-08-07  Pedro Alves  <palves@redhat.com>
6375         * s390-linux-tdep.c (is_non_branch_ril)
6376         (s390_displaced_step_copy_insn): New functions.
6377         (s390_displaced_step_fixup): Update comment.
6378         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
6379         gdbarch_displaced_step_copy_insn hook.
6381 2015-08-07  Pedro Alves  <palves@redhat.com>
6383         * infrun.c (displaced_step_prepare_throw): Return -1 if
6384         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
6385         comment.
6386         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
6387         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
6388         in file.
6389         (ppc_displaced_step_copy_insn): New function.
6390         (ppc_displaced_step_fixup): Update comment.
6391         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
6392         gdbarch_displaced_step_copy_insn hook.
6393         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
6394         NULL return.
6395         * gdbarch.h: Regenerate.
6397 2015-08-07  Pedro Alves  <palves@redhat.com>
6399         * inferior.h (struct inferior) <displaced_stepping_failed>: New
6400         field.
6401         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
6402         Return false if dispaced stepping failed before.
6403         (resume): Pass the current inferior to
6404         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
6405         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
6406         displaced_stepping_failed flag, and fall back to an in-line
6407         step-over.
6409 2015-08-07  Pedro Alves  <palves@redhat.com>
6411         * darwin-nat.c (darwin_stop): Rename to ...
6412         (darwin_interrupt): ... this.
6413         (_initialize_darwin_inferior): Adjust.
6414         * gnu-nat.c (gnu_stop): Delete.
6415         (gnu_target): Don't install gnu_stop.
6416         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
6417         (inf_ptrace_interrupt): ... this.
6418         (inf_ptrace_target): Adjust.
6419         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
6420         target_stop.
6421         * linux-nat (linux_nat_stop): Rename to ...
6422         (linux_nat_interrupt): ... this.
6423         (linux_nat_stop): Reimplement.
6424         (linux_nat_add_target): Install linux_nat_interrupt.
6425         * nto-procfs.c (nto_interrupt_twice): Rename to ...
6426         (nto_handle_sigint_twice): ... this.
6427         (nto_interrupt): Rename to ...
6428         (nto_handle_sigint): ... this.  Call target_interrupt instead of
6429         target_stop.
6430         (procfs_wait): Adjust.
6431         (procfs_stop): Rename to ...
6432         (procfs_interrupt): ... this.
6433         (init_procfs_targets): Adjust.
6434         * procfs.c (procfs_stop): Rename to ...
6435         (procfs_interrupt): ... this.
6436         (procfs_target): Adjust.
6437         * remote-m32r-sdi.c (m32r_stop): Rename to ...
6438         (m32r_interrupt): ... this.
6439         (init_m32r_ops): Adjust.
6440         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
6441         (gdbsim_interrupt_inferior): ... this.
6442         (gdbsim_stop): Rename to ...
6443         (gdbsim_interrupt): ... this.
6444         (gdbsim_cntrl_c): Adjust.
6445         (init_gdbsim_ops): Adjust.
6446         * remote.c (sync_remote_interrupt): Adjust comments.
6447         (remote_stop_as): Rename to ...
6448         (remote_interrupt_as): ... this.
6449         (remote_stop): Adjust comment.
6450         (remote_interrupt): New function.
6451         (init_remote_ops): Install remote_interrupt.
6452         * target.c (target_interrupt): New function.
6453         * target.h (struct target_ops) <to_interrupt>: New field.
6454         (target_interrupt): New declaration.
6455         * windows-nat.c (windows_stop): Rename to ...
6456         (windows_interrupt): ... this.
6457         * target-delegates.c: Regenerate.
6459 2015-08-07  Pedro Alves  <palves@redhat.com>
6461         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
6462         threads" as alternative to "switching back to stepped thread".
6464 2015-08-07  Pedro Alves  <palves@redhat.com>
6466         * NEWS: Mention "maint set/show target-non-stop".
6467         * breakpoint.c (update_global_location_list): Check
6468         target_is_non_stop_p instead of non_stop.
6469         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
6470         * infrun.c (show_can_use_displaced_stepping)
6471         (can_use_displaced_stepping_p, start_step_over_inferior):
6472         Likewise.
6473         (internal_resume_ptid): New function.
6474         (resume): Use it.
6475         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
6476         all-stop mode but the target is always in non-stop mode, start all
6477         the other threads that are implicitly resumed too.
6478         (for_each_just_stopped_thread, fetch_inferior_event)
6479         (adjust_pc_after_break, stop_all_threads): Check
6480         target_is_non_stop_p instead of non_stop.
6481         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
6482         with the target always in non-stop mode.
6483         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
6484         instead of non_stop.
6485         (switch_back_to_stepped_thread): Check target_is_non_stop_p
6486         instead of non_stop.
6487         (keep_going_stepped_thread): Use internal_resume_ptid.
6488         (stop_waiting): If in all-stop mode, and the target is in non-stop
6489         mode, stop all threads.
6490         (keep_going_pass): Likewise, when starting a new in-line step-over
6491         sequence.
6492         * linux-nat.c (get_pending_status, select_event_lwp)
6493         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
6494         target_is_non_stop_p instead of non_stop.
6495         (linux_nat_always_non_stop_p): New function.
6496         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
6497         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
6498         * target-delegates.c: Regenerate.
6499         * target.c (target_is_non_stop_p): New function.
6500         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
6501         (maint_set_target_non_stop_command)
6502         (maint_show_target_non_stop_command): New functions.
6503         (_initilize_target): Install "maint set/show target-non-stop"
6504         commands.
6505         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
6506         (target_non_stop_enabled): New declaration.
6507         (target_is_non_stop_p): New declaration.
6509 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
6511         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
6512         has a pending status, return true.
6513         * gdbthread.h: Include target/waitstatus.h.
6514         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
6515         stop_pc>: New fields.
6516         (struct thread_info) <resumed>: New field.
6517         (set_resumed): Declare.
6518         * infrun.c: Include "event-loop.h".
6519         (infrun_async_inferior_event_token, infrun_is_async): New globals.
6520         (infrun_async): New function.
6521         (clear_step_over_info): Add debug output.
6522         (displaced_step_in_progress_any_inferior): New function.
6523         (displaced_step_fixup): New returns int.
6524         (start_step_over): Handle in-line step-overs too.  Assert the
6525         thread is marked resumed.
6526         (resume_cleanups): Clear the thread's resumed flag.
6527         (resume): Set the thread's resumed flag.  Return early if the
6528         thread has a pending status.  Allow stepping a breakpoint with no
6529         signal.
6530         (proceed): Adjust to check 'resumed' instead of 'executing'.
6531         (clear_proceed_status_thread): If the thread has a pending status,
6532         and that status is a finished step, discard the pending status.
6533         (clear_proceed_status): Don't clear step_over_info here.
6534         (random_pending_event_thread, do_target_wait): New functions.
6535         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
6536         do_target_wait.
6537         (wait_one): New function.
6538         (THREAD_STOPPED_BY): New macro.
6539         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6540         (thread_stopped_by_hw_breakpoint): New functions.
6541         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
6542         functions.
6543         (handle_inferior_event): Also call set_resumed(false) on all
6544         threads implicitly stopped by the event.
6545         (restart_threads, resumed_thread_with_pending_status): New
6546         functions.
6547         (finish_step_over): If we were doing an in-line step-over before,
6548         and no longer are after trying to start a new step-over, restart
6549         all threads.  If we have multiple threads with pending events,
6550         save the current event and go through the event loop again.
6551         (handle_signal_stop): Return early if finish_step_over returns
6552         false.
6553         <random signal>: If we get a signal while stepping over a
6554         breakpoint in-line in non-stop mode, restart all threads.  Clear
6555         step_over_info before delivering the signal.
6556         (keep_going_stepped_thread): Use internal_error instead of
6557         gdb_assert.  Mark the thread as resumed.
6558         (keep_going_pass_signal): Assert the thread isn't already resumed.
6559         If some other thread is doing an in-line step-over, defer the
6560         resume.  If we just started a new in-line step-over, stop all
6561         threads.  Don't clear step_over_info.
6562         (infrun_async_inferior_event_handler): New function.
6563         (_initialize_infrun): Create async event handler with
6564         infrun_async_inferior_event_handler as callback.
6565         (infrun_async): New declaration.
6566         * target.c (target_async): New function.
6567         * target.h (target_async): Declare macro and readd as function
6568         declaration.
6569         * target/waitstatus.h (enum target_stop_reason)
6570         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6571         * thread.c (new_thread): Clear the new waitstatus field.
6572         (set_resumed): New function.
6574 2015-08-07  Pedro Alves  <palves@redhat.com>
6576         * infrun.c (keep_going_stepped_thread): New function, factored out
6577         from ...
6578         (switch_back_to_stepped_thread): ... here.
6580 2015-08-07  Pedro Alves  <palves@redhat.com>
6582         * infrun.c (currently_stepping): Extend intro comment.
6583         * target.h (target_resume): Extend intro comment.
6585 2015-08-07  Pedro Alves  <palves@redhat.com>
6587         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
6588         of inferior_ptid.  If the stepped thread vanished, return 0
6589         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
6590         the current stop_pc in log message.  Clear trap_expected if the
6591         thread advanced.  Don't pass currently_stepping to
6592         do_target_resume.
6594 2015-08-07  Pedro Alves  <palves@redhat.com>
6596         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
6597         * infrun.c (struct execution_control_state): Move higher up in the
6598         file.
6599         (reset_ecs): New function.
6600         (start_step_over): Now returns int.  Rewrite to use
6601         keep_going_pass_signal instead of manually starting a displaced step.
6602         (resume): Don't call set_running here.  If displaced stepping
6603         can't start now, clear trap_expected.
6604         (find_thread_needs_step_over): Delete function.
6605         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
6606         If the current thread needs a step over, push it in the step-over
6607         chain.  Don't set insert breakpoints nor call resume directly
6608         here.  Instead rewrite to use start_step_over and
6609         keep_going_pass_signal.
6610         (finish_step_over): New function.
6611         (handle_signal_stop): Call finish_step_over instead of
6612         start_step_over.
6613         (switch_back_to_stepped_thread): If the event thread needs another
6614         step-over do that first.  Use start_step_over.
6615         (keep_going_pass_signal): New function, factored out from ...
6616         (keep_going): ... here.
6617         (_initialize_infrun): Comment moved here.
6618         * thread.c (set_running_thread): New function.
6619         (set_running, finish_thread_state): Use set_running_thread.
6621 2015-08-07  Pedro Alves  <palves@redhat.com>
6623         * gdbthread.h (struct thread_info) <step_over_prev,
6624         step_over_next>: New fields.
6625         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
6626         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
6627         declarations.
6628         * infrun.c (struct displaced_step_request): Delete.
6629         (struct displaced_step_inferior_state) <step_request_queue>:
6630         Delete field.
6631         (displaced_step_prepare): Assert that trap_expected is set.  Use
6632         thread_step_over_chain_enqueue.  Split starting a new displaced
6633         step to ...
6634         (start_step_over): ... this new function.
6635         (resume): Assert the thread isn't waiting for a step over already.
6636         (proceed): Assert the thread isn't waiting for a step over
6637         already.
6638         (infrun_thread_stop_requested): Adjust to remove threads from the
6639         embedded step-over chain.
6640         (handle_inferior_event) <fork/vfork>: Call start_step_over after
6641         displaced_step_fixup.
6642         (handle_signal_stop): Call start_step_over after
6643         displaced_step_fixup.
6644         * infrun.h (step_over_queue_head): New declaration.
6645         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
6646         (thread_step_over_chain_next, thread_is_in_step_over_chain)
6647         (thread_step_over_chain_enqueue)
6648         (thread_step_over_chain_remove): New functions.
6649         (delete_thread_1): Remove thread from the step-over chain.
6651 2015-08-07  Pedro Alves  <palves@redhat.com>
6653         * infrun.c (thread_still_needs_step_over): Rename to ...
6654         (thread_still_needs_step_over_bp): ... this.
6655         (enum step_over_what): New.
6656         (thread_still_needs_step_over): Reimplement.
6658 2015-08-07  Pedro Alves  <palves@redhat.com>
6660         * remote.c (remote_wait_as): If not waiting for a stop reply,
6661         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
6662         requested, don't block waiting forever.
6664 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
6666         * infrun.c (adjust_pc_after_break): Now takes thread_info and
6667         waitstatus pointers instead of an ecs.  Adjust.
6668         (handle_inferior_event): Adjust caller.
6670 2015-08-07  Pedro Alves  <palves@redhat.com>
6672         * infrun.c (handle_inferior_event): If we get
6673         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
6674         mode, mark all threads of the exiting process as not-executing.
6675         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
6676         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
6677         exiting process, if inferior_ptid still points at a process.
6678         * thread.c (struct current_thread_cleanup) <next>: New field.
6679         (current_thread_cleanup_chain): New global.
6680         (restore_current_thread_ptid_changed): New function.
6681         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
6682         current_thread_cleanup_chain list.
6683         (make_cleanup_restore_current_thread): Add the cleanup data to the
6684         current_thread_cleanup_chain list.
6685         (_initialize_thread): Install restore_current_thread_ptid_changed
6686         as thread_ptid_changed observer.
6688 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
6690         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
6691         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
6692         smaller than expected.
6694 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
6696         * stack.c (get_frame_language): Moved ...
6697         * frame.c (get_frame_language): ... to here.
6698         * language.h (get_frame_language): Declaration moved to frame.h.
6699         * frame.h: Add language.h include, for language enum.
6700         (get_frame_language): Declaration moved from language.h.
6701         * language.c: Add frame.h include.
6702         * top.c: Add frame.h include.
6703         * symtab.h (struct obj_section): Declare.
6704         (struct cmd_list_element): Declare.
6706 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
6708         * language.c (show_language_command): Find selected frame before
6709         asking for the language of that frame.
6710         (set_language_command): Likewise.
6711         * language.h (get_frame_language): Add frame parameter.
6712         * stack.c (get_frame_language): Add frame parameter, assert
6713         parameter is not NULL, update comment and reindent.
6714         * top.c (check_frame_language_change): Pass the selected frame
6715         into get_frame_language.
6717 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
6719         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
6720         (pt_btrace_insn_flags): New.
6721         (ftrace_add_pt): Call pt_btrace_insn_flags.
6722         * btrace.h (btrace_insn_flag): New.
6723         (btrace_insn) <flags>: New.
6724         * record-btrace.c (btrace_insn_history): Print insn prefix.
6725         * NEWS: Announce it.
6727 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
6729         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
6730         * configure: Regenerate.
6732 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
6734         * Makefile.in (LIBICONV): Define.
6735         (CLIBS): Add LIBICONV.
6736         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
6737         * configure: Regenerate.
6739 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
6740             Pedro Alves  <palves@redhat.com>
6742         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
6743         (arm_set_abi): Likewise.
6744         * ax-general.c (ax_print): Likewise.
6745         * c-exp.y (exp : string_exp): Likewise.
6746         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
6747         (do_compile_dwarf_expr_to_c): Likewise.
6748         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
6749         Likewise.
6750         * dwarf2expr.c (execute_stack_op): Likewise.
6751         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
6752         (disassemble_dwarf_expression): Likewise.
6753         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
6754         (read_array_order): Likewise.
6755         (abbrev_table_read_table): Likewise.
6756         (read_attribute_value): Likewise.
6757         (skip_unknown_opcode): Likewise.
6758         (dwarf_decode_macro_bytes): Likewise.
6759         (dwarf_decode_macros): Likewise.
6760         * eval.c (value_f90_subarray): Likewise.
6761         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6762         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6763         * infrun.c (handle_command): Likewise.
6764         * memory-map.c (memory_map_start_memory): Likewise.
6765         * osabi.c (set_osabi): Likewise.
6766         * parse.c (operator_length_standard): Likewise.
6767         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
6768         single return point.
6769         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6770         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6771         (gdbpy_lookup_global_symbol): Likewise.
6772         * record-full.c (record_full_restore): Likewise.
6773         * regcache.c (regcache_register_status): Likewise.
6774         (regcache_raw_read): Likewise.
6775         (regcache_cooked_read): Likewise.
6776         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
6777         * symtab.c (initialize_ordinary_address_classes): Likewise.
6778         * target-debug.h (target_debug_print_signals): Likewise.
6779         * utils.c (do_restore_current_language): Likewise.
6781 2015-08-06  Clem Dickey  <clemd@acm.org>
6783         PR python/17136
6784         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
6786 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
6788         * complaints.c (enum complaint_series): Add newlines and remove
6789         out of date comment.
6790         (struct complaints) <series>: Change type to enum
6791         complaint_series and remove out of date comment.
6792         (symfile_complaint_hook): Use equivalent enum value
6793         ISOLATED_MESSAGE instead of 0.
6795 2015-08-06  Pedro Alves  <palves@redhat.com>
6797         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
6798         returned > 0.
6800 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
6802         * common/agent.c (symbol_list) <required>: Remove.
6804 2015-08-06  Pedro Alves  <palves@redhat.com>
6806         * target/waitstatus.h (enum target_stop_reason)
6807         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6809 2015-08-05  Pedro Alves  <palves@redhat.com>
6810             Joel Brobecker  <brobecker@adacore.com>
6812         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
6813         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
6814         case where BS->STOP is not set.
6816 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
6818         * nat/gdb_thread_db.h: Add copyright header.
6819         Protect against multiple inclusion.
6821 2015-08-05  Yao Qi  <yao.qi@linaro.org>
6823         * aarch64-linux-nat.c (get_thread_id): Remove.
6824         (debug_reg_change_callback): Call ptid_get_lwp instead of
6825         get_thread_id.
6826         (fetch_gregs_from_thread): Likewise.
6827         (store_gregs_to_thread): Likewise.
6828         (fetch_fpregs_from_thread): Likewise.
6829         (store_fpregs_to_thread): Likewise.
6830         (aarch64_linux_get_debug_reg_capacity): Likewise.
6831         * arm-linux-nat.c (get_thread_id): Remove.
6832         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6833         * xtensa-linux-nat.c (get_thread_id): Remove.
6834         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6835         * arm-linux-nat.c (get_thread_id): Remove.
6836         (GET_THREAD_ID): Remove.
6837         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
6838         (store_fpregs, fetch_regs, store_regs): Likewise.
6839         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
6840         (fetch_vfp_regs, store_vfp_regs): Likewise.
6841         (arm_linux_read_description): Likewise.
6842         (arm_linux_get_hwbp_cap): Likewise.
6843         * xtensa-linux-nat.c (get_thread_id): Remove.
6844         (GET_THREAD_ID): Remove.
6845         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
6846         GET_THREAD_ID.
6848 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
6850         * python/py-linetable.c: Fix case of Linetable to LineTable
6851         in docstrings and code comments.
6852         * python/py-symtab.c: Same.
6854 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
6856         * infcmd.c (signal_command): Call do_cleanups for args_chain.
6858 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
6860         PR gdb/18767
6861         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
6862         use.
6864 2015-08-04  Pedro Alves  <palves@redhat.com>
6866         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
6867         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
6868         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
6869         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
6870         (td_thr_validate_ftype, td_thr_get_info_ftype)
6871         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
6872         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
6873         New typedefs.
6874         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
6875         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
6876         local macros and use them instead of verbose_dlsym and dlsym
6877         calls.
6879 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
6881         * nios2-tdep.h: Include opcode/nios2.h here.
6882         (NIOS2_CDX_OPCODE_SIZE): New.
6883         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
6884         * nios2-tdep.c: Don't include opcode/nios2.h here.
6885         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
6886         4-byte read fails.
6887         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
6888         (nios2_match_addi, nios2_match_orhi): Likewise.
6889         (nios2_match_stw, nios2_match_ldw): Likewise.
6890         (nios2_match_rdctl): Likewise.
6891         (nios2_match_stwm, nios2_match_ldwm): New.
6892         (nios2_match_branch): Add cases for R2 encodings.
6893         (nios2_match_jmpi, nios2_match_calli): Likewise.
6894         (nios2_match_jmpr, nios2_match_callr): Likewise.
6895         (nios2_match_break, nios2_match_trap): Likewise.
6896         (nios2_in_epilogue_p): Add R2 support.
6897         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
6898         prologues.
6899         (nios2_breakpoint_from_pc): Handle R2 instructions.
6900         (nios2_get_next_pc): Likewise.  Adjust call to
6901         tdep->syscall_next_pc.
6902         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
6903         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
6904         instruction field macros instead of literal hex values.
6905         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
6906         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
6907         Use size field from OP instead of assuming all instructions
6908         are the same size.
6909         (nios2_linux_init_abi): Register appropriate unwinder for mach.
6911 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
6913         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
6914         variable warning with some compilers.
6916 2015-08-03  Yao Qi  <yao.qi@linaro.org>
6918         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
6919         in comment.  Replace "rw" with "type".
6920         (arm_linux_remove_watchpoint): Change type of "rw" to
6921         "enum target_hw_bp_type".
6923 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
6925         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
6926         lookup_symbol.
6927         * ft32-tdep.c (ft32_skip_prologue): Likewise.
6928         * moxie-tdep.c (moxie_skip_prologue): Likewise.
6929         * mt-tdep.c (mt_skip_prologue): Likewise.
6930         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6932 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
6934         * ada-exp.y (write_object_renaming): Replace struct
6935         ada_symbol_info with struct block_symbol.  Update field
6936         references accordingly.
6937         (block_lookup, select_possible_type_sym): Likewise.
6938         (find_primitive_type): Likewise.  Also update call to
6939         ada_lookup_symbol to extract the symbol itself.
6940         (write_var_or_type, write_name_assoc): Likewise.
6941         * ada-lang.h (struct ada_symbol_info): Remove.
6942         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
6943         struct block_symbol.
6944         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
6945         (ada_lookup_symbol): Return struct block_symbol instead of a
6946         mere symbol.
6947         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
6948         with struct block_symbol.
6949         (resolve_subexp, ada_resolve_function, sort_choices,
6950         user_select_syms, is_nonfunction, add_defn_to_vec,
6951         num_defns_collected, defns_collected,
6952         symbols_are_identical_enums, remove_extra_symbols,
6953         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
6954         ada_lookup_symbol_list, ada_iterate_over_symbols,
6955         ada_lookup_encoded_symbol, get_var_value): Likewise.
6956         (ada_lookup_symbol): Return a block_symbol instead of a mere
6957         symbol.  Replace struct ada_symbol_info with struct
6958         block_symbol.
6959         (ada_lookup_symbol_nonlocal): Likewise.
6960         (standard_lookup): Make block passing explicit through
6961         lookup_symbol_in_language.
6962         * ada-tasks.c (get_tcb_types_info): Update the calls to
6963         lookup_symbol_in_language to extract the mere symbol out of the
6964         returned value.
6965         (ada_tasks_inferior_data_sniffer): Likewise.
6966         * ax-gdb.c (gen_static_field): Likewise for the call to
6967         lookup_symbol.
6968         (gen_maybe_namespace_elt): Deal with struct block_symbol from
6969         lookup functions.
6970         (gen_expr): Likewise.
6971         * c-exp.y: Likewise.  Remove uses of block_found.
6972         (lex_one_token, classify_inner_name, c_print_token): Likewise.
6973         (classify_name): Likewise.  Rename the "sym" local variable to
6974         "bsym".
6975         * c-valprint.c (print_unpacked_pointer): Likewise.
6976         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
6977         "sym" parameter from struct symbol * to struct block_symbol.
6978         Use it to remove uses of block_found.  Deal with struct
6979         block_symbol from lookup functions.
6980         (gcc_convert_symbol): Likewise.  Update the call to
6981         convert_symbol_sym.
6982         * compile/compile-object-load.c (compile_object_load): Deal with
6983         struct block_symbol from lookup functions.
6984         * cp-namespace.c (cp_lookup_nested_symbol_1,
6985         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
6986         cp_search_static_and_baseclasses,
6987         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
6988         cp_lookup_symbol_imports_or_template,
6989         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
6990         lookup_namespace_scope, cp_lookup_nonlocal,
6991         find_symbol_in_baseclass): Return struct block_symbol instead of
6992         mere symbols and deal with struct block_symbol from lookup
6993         functions.
6994         * cp-support.c (inspect_type, replace_typedefs,
6995         cp_lookup_rtti_type): Deal with struct block_symbol from
6996         lookup functions.
6997         * cp-support.h (cp_lookup_symbol_nonlocal,
6998         cp_lookup_symbol_from_namespace,
6999         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
7000         Return struct block_symbol instead of mere symbols.
7001         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
7002         push_module_name):
7003         Deal with struct block_symbol from lookup functions.  Remove
7004         uses of block_found.
7005         * eval.c (evaluate_subexp_standard): Update call to
7006         cp_lookup_symbol_namespace.
7007         * f-exp.y: Deal with struct block_symbol from lookup functions.
7008         Remove uses of block_found.
7009         (yylex): Likewise.
7010         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
7011         lookup_enum, lookup_template_type, check_typedef): Deal with
7012         struct block_symbol from lookup functions.
7013         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
7014         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
7015         (gdbscm_lookup_global_symbol): Likewise.
7016         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
7017         * go-exp.y: Likewise.  Remove uses of block_found.
7018         (package_name_p, classify_packaged_name, classify_name):
7019         Likewise.
7020         * infrun.c (insert_exception_resume_breakpoint): Likewise.
7021         * jv-exp.y (push_variable): Likewise.
7022         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
7023         * language.c (language_bool_type): Likewise.
7024         * language.h (struct language_defn): Update
7025         la_lookup_symbol_nonlocal to return a struct block_symbol rather
7026         than a mere symbol.
7027         * linespec.c (find_label_symbols): Deal with struct block_symbol
7028         from lookup functions.
7029         * m2-exp.y: Likewise.  Remove uses of block_found.
7030         (yylex): Likewise.
7031         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7032         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
7033         * p-exp.y: Likewise.  Remove uses of block_found.
7034         (yylex): Likewise.
7035         * p-valprint.c (pascal_val_print): Likewise.
7036         * parse.c (write_dollar_variable): Likewise.  Remove uses of
7037         block_found.
7038         * parser-defs.h (struct symtoken): Turn the SYM field into a
7039         struct block_symbol.
7040         * printcmd.c (address_info): Deal with struct block_symbol from
7041         lookup functions.
7042         * python/py-frame.c (frapy_read_var): Likewise.
7043         * python/py-symbol.c (gdbpy_lookup_symbol,
7044         gdbpy_lookup_global_symbol): Likewise.
7045         * skip.c (skip_function_command): Likewise.
7046         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
7047         block_symbol instead of a mere symbol.
7048         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
7049         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
7050         * solib.c (solib_global_lookup): Likewise.
7051         * solist.h (solib_global_lookup): Likewise.
7052         (struct target_so_ops): Update lookup_lib_global_symbol to
7053         return a struct block_symbol rather than a mere symbol.
7054         * source.c (select_source_symtab): Deal with struct block_symbol
7055         from lookup functions.
7056         * stack.c (print_frame_args, iterate_over_block_arg_vars):
7057         Likewise.
7058         * symfile.c (set_initial_language): Likewise.
7059         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
7060         block_symbol.
7061         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
7062         (struct symbol_cache_slot): Turn the FOUND field into a struct
7063         block_symbol.
7064         (block_found): Remove.
7065         (eq_symbol_entry): Update to deal with struct block_symbol in
7066         cache slots.
7067         (symbol_cache_lookup): Return a struct block_symbol rather than
7068         a mere symbol.
7069         (symbol_cache_mark_found): Add a BLOCK parameter to fill
7070         appropriately the cache slots.  Update callers.
7071         (symbol_cache_dump): Update cache slots handling to the type
7072         change.
7073         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
7074         lookup_symbol_aux, lookup_local_symbol,
7075         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
7076         lookup_symbol_in_objfile_symtabs,
7077         lookup_symbol_in_objfile_from_linkage_name,
7078         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
7079         lookup_symbol_in_static_block, lookup_static_symbol,
7080         lookup_global_symbol):
7081         Return a struct block_symbol rather than a mere symbol.  Deal
7082         with struct block_symbol from other lookup functions.  Remove
7083         uses of block_found.
7084         (lookup_symbol_in_block): Remove uses of block_found.
7085         (struct global_sym_lookup_data): Turn the RESULT field into a
7086         struct block_symbol.
7087         (lookup_symbol_global_iterator_cb): Update references to the
7088         RESULT field.
7089         (search_symbols): Deal with struct block_symbol from lookup
7090         functions.
7091         * symtab.h (struct block_symbol): New structure.
7092         (block_found): Remove.
7093         (lookup_symbol_in_language, lookup_symbol,
7094         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
7095         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
7096         lookup_global_symbol_from_objfile): Return a struct block_symbol
7097         rather than just a mere symbol.  Update comments to remove
7098         mentions of block_found.
7099         * valops.c (find_function_in_inferior,
7100         value_struct_elt_for_reference, value_maybe_namespace_elt,
7101         value_of_this):  Deal with struct block_symbol from lookup
7102         functions.
7103         * value.c (value_static_field, value_fn_field): Likewise.
7105 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
7107         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
7108         instead of integer.
7110 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
7111             Pedro Alves  <palves@redhat.com>
7113         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
7114         type or value instead of integer.
7115         (aarch64_linux_insert_watchpoint): Likewise.
7116         (aarch64_linux_remove_watchpoint): Likewise.
7117         * ada-lang.c (ada_op_print_tab): Likewise.
7118         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
7119         (amd64_linux_syscall_record_common): Likewise.
7120         * arch-utils.c (target_byte_order_user): Likewise.
7121         (default_byte_order): Likewise.
7122         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
7123         (arm_linux_get_hwbp_type): Likewise.
7124         (arm_linux_hw_watchpoint_initialize): Likewise.
7125         (arm_linux_insert_watchpoint): Likewise.
7126         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
7127         (arm_linux_syscall_record): Likewise.
7128         * breakpoint.c (update_watchpoint): Likewise.
7129         (breakpoint_here_p): Likewise.
7130         (bpstat_print): Likewise.
7131         (enable_breakpoint_disp): Likewise.
7132         * c-lang.c (c_op_print_tab): Likewise.
7133         * cli/cli-decode.c (add_info_alias): Likewise.
7134         * d-lang.c (d_op_print_tab): Likewise.
7135         * eval.c (evaluate_subexp_standard): Likewise.
7136         * f-exp.y (dot_ops): Likewise.
7137         (f77_keywords): Likewise.
7138         * f-lang.c (f_op_print_tab): Likewise.
7139         * go-lang.c (go_op_print_tab): Likewise.
7140         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
7141         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
7142         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
7143         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
7144         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
7145         (struct scm_from_stringn_data): Likewise.
7146         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
7147         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
7148         (ia64_linux_remove_watchpoint): Likewise.
7149         (ia64_linux_can_use_hw_breakpoint): Likewise.
7150         * infrun.c (print_stop_event): Likewise.
7151         * jv-lang.c (java_op_print_tab): Likewise.
7152         * linux-nat.c (linux_proc_xfer_partial): Likewise.
7153         * linux-nat.h (struct lwp_info): Likewise.
7154         * linux-thread-db.c (enable_thread_event): Likewise.
7155         * m2-lang.c (m2_op_print_tab): Likewise.
7156         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
7157         (mi_cmd_stack_list_variables): Likewise.
7158         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
7159         * mi/mi-out.c (mi_table_begin): Likewise.
7160         (mi_table_header): Likewise.
7161         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
7162         (mips_linux_insert_watchpoint): Likewise.
7163         (mips_linux_remove_watchpoint): Likewise.
7164         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
7165         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
7166         (mips_linux_watch_type_to_irw): Likewise.
7167         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
7168         (procfs_insert_hw_watchpoint): Likewise.
7169         (procfs_remove_hw_watchpoint): Likewise.
7170         (procfs_hw_watchpoint): Likewise.
7171         (procfs_can_use_hw_breakpoint): Likewise.
7172         (procfs_remove_hw_watchpoint): Likewise.
7173         (procfs_insert_hw_watchpoint): Likewise.
7174         * p-lang.c (pascal_op_print_tab): Likewise.
7175         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
7176         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
7177         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
7178         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
7179         (procfs_insert_watchpoint): Likewise.
7180         (procfs_remove_watchpoint): Likewise.
7181         * psymtab.c (recursively_search_psymtabs): Likewise.
7182         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
7183         (m32r_insert_watchpoint): Likewise.
7184         * remote-mips.c (mips_can_use_watchpoint): Likewise.
7185         (mips_insert_watchpoint): Likewise.
7186         (mips_remove_watchpoint): Likewise.
7187         * remote.c (watchpoint_to_Z_packet): Likewise.
7188         (remote_insert_watchpoint): Likewise.
7189         (remote_remove_watchpoint): Likewise.
7190         (remote_check_watch_resources): Likewise.
7191         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
7192         (s390_remove_watchpoint): Likewise.
7193         (s390_can_use_hw_breakpoint): Likewise.
7194         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7195         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
7196         * target.h (struct target_ops): Likewise.
7197         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7198         * ui-out.c (struct ui_out_hdr): Likewise.
7199         (append_header_to_list): Likewise.
7200         (get_next_header): Likewise.
7201         (verify_field): Likewise.
7202         (ui_out_begin): Likewise.
7203         (ui_out_field_int): Likewise.
7204         (ui_out_field_fmt_int): Likewise.
7205         (ui_out_field_skip): Likewise.
7206         (ui_out_field_string): Likewise.
7207         (ui_out_field_fmt): Likewise.
7208         * varobj.c (new_variable): Likewise.
7209         * x86-nat.c (x86_insert_watchpoint): Likewise.
7210         (x86_remove_watchpoint): Likewise.
7211         (x86_can_use_hw_breakpoint): Likewise.
7212         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
7213         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
7214         previously anonymous enumeration type..
7215         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
7216         value.
7217         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
7218         (target_debug_print_enum_bptype): New.
7219         * target-delegates.c: Regenerate.
7221 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
7223         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
7224         already says and disallow non-stack memory writes in the prologue.
7226 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
7228         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
7229         reflect how current GCC emits stack overflow checks.  Match
7230         both trap and break instructions for backward compatbility.
7231         Disallow other trap and break instructions in the prologue.
7233 2015-07-30  Pedro Alves  <palves@redhat.com>
7235         PR threads/18600
7236         * linux-nat.c (wait_lwp): Report to the core when thread group
7237         leader exits.
7239 2015-07-30  Pedro Alves  <palves@redhat.com>
7240             Simon Marchi  <simon.marchi@ericsson.com>
7242         PR threads/18600
7243         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
7244         mark the new thread as resumed.  Remove STOPPING parameter.
7245         (wait_lwp): Adjust call to linux_handle_extended_wait.
7246         (linux_nat_filter_event): Adjust call to
7247         linux_handle_extended_wait.
7248         (resume_stopped_resumed_lwps): Add debug output.
7250 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
7252         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
7253         isize argument.
7254         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
7255         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
7256         gdbarch_fast_tracepoint_valid_at.
7257         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
7258         * gdbarch.h: Regenerate.
7259         * gdbarch.c: Regenerate.
7260         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
7261         argument.  Do not set it.
7262         * remote.c (remote_download_tracepoint): Adjust call to
7263         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
7264         the instruction length.
7266 2015-07-30  Yao Qi  <yao.qi@linaro.org>
7268         * arm-tdep.h (enum gdb_regnum): Move it to ...
7269         * arch/arm.h: ... here.  New file.
7270         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
7272 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
7274         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
7275         Change its type to int *.
7276         (decode_br): Rename link argument to is_blr.  Change its type to
7277         int *.
7278         (decode_cb): Rename op argument to is_cbnz.  Change its type to
7279         int *.
7280         (decode_tb): Rename op argument to is_tbnz.  Change its type to
7281         int *.  Set is_tbnz to either 1 or 0.
7282         (aarch64_analyze_prologue): Change type of is_link to int.  Add
7283         new variables is_cbnz and is_tbnz.  Adjust call to
7284         aarch64_decode_cb and aarch64_decode_tb.
7286 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
7288         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
7289         parameter.
7290         (mips_linux_new_thread): Likewise.
7291         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
7293 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
7295         * top.c: Include "tui/tui.h".
7296         (undo_terminal_modifications_before_exit): New static function.
7297         (quit_force): Use it.
7299 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
7301         * target.c (terminal_state): Initialize to terminal_is_ours.
7303 2015-07-29  Yao Qi  <yao.qi@linaro.org>
7305         PR record/18691
7306         * dcache.c (dcache_read_memory_partial): Call
7307         raw_memory_xfer_partial.
7308         * target.c (raw_memory_xfer_partial): Make it non-static.
7309         * target.h (raw_memory_xfer_partial): Declare.
7311 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
7313         * c-valprint.c (c_val_print_array): Consider addressable memory
7314         unit size.
7315         (c_val_print_ptr): Likewise.
7316         (c_val_print_int): Likewise.
7317         * findvar.c (read_frame_register_value): Likewise.
7318         * valarith.c (find_size_for_pointer_math): Likewise.
7319         (value_ptrdiff): Likewise.
7320         (value_subscripted_rvalue): Likewise.
7321         * valops.c (read_value_memory): Likewise (and rename variables).
7322         (value_assign): Likewise.
7323         (value_repeat): Likewise.
7324         (value_array): Likewise.
7325         (value_slice): Likewise.
7326         * valprint.c (generic_val_print_ptr): Likewise.
7327         (generic_val_print_enum): Likewise.
7328         (generic_val_print_bool): Likewise.
7329         (generic_val_print_int): Likewise.
7330         (generic_val_print_char): Likewise.
7331         (generic_val_print_float): Likewise.
7332         (generic_val_print_decfloat): Likewise.
7333         (generic_val_print_complex): Likewise.
7334         (val_print_scalar_formatted): Likewise.
7335         (val_print_array_elements): Likewise.
7336         * value.c (set_value_parent): Likewise.
7337         (value_contents_copy_raw): Likewise.
7338         (set_internalvar_component): Likewise.
7339         (value_primitive_field): Likewise.
7340         (value_fetch_lazy): Likewise.
7341         * value.h (read_value_memory): Update comment.
7343 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
7345         * value.c (get_value_arch): New function.
7346         * value.h (get_value_arch): New declaration.
7348 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
7350         * value.c (struct value): Update comments.
7352 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
7354         * gdbtypes.c (type_length_units): New function.
7355         * gdbtypes.h (type_length_units): New declaration.
7356         (struct type) <length>: Update comment.
7358 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7360         * valprint.c (generic_val_print): Factor out complex
7361         printing code to ...
7362         (generic_val_print_complex): ... this new function.
7364 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7366         * valprint.c (generic_val_print): Factor out decfloat
7367         printing code to ...
7368         (generic_val_print_decfloat): ... this new function.
7370 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7372         * valprint.c (generic_val_print): Factor out float
7373         printing code to ...
7374         (generic_val_print_float): ... this new function.
7376 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7378         * valprint.c (generic_val_print): Factor out char
7379         printing code to ...
7380         (generic_val_print_char): ... this new function.
7382 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7384         * valprint.c (generic_val_print): Factor out integer
7385         printing code to ...
7386         (generic_val_print_int): ... this new function.
7388 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7390         * valprint.c (generic_val_print): Factor out bool
7391         printing code to ...
7392         (generic_val_print_bool): ... this new function.
7394 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7396         * valprint.c (generic_val_print): Factor out function/method
7397         printing code to ...
7398         (generic_val_print_func): ... this new function.
7400 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7402         * valprint.c (generic_val_print): Factor out flags
7403         printing code to ...
7404         (generic_val_print_flags): ... this new function.
7406 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7408         * valprint.c (generic_val_print): Factor out enum
7409         printing code to ...
7410         (generic_val_print_enum): ... this new function.
7412 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7414         * valprint.c (generic_val_print): Factor out reference
7415         printing code to ...
7416         (generic_val_print_ref): ... this new function.
7418 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7420         * valprint.c (generic_val_print): Factor out memberptr
7421         printing code to ...
7422         (generic_val_print_memberptr): ... this new function.
7424 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7426         * valprint.c (generic_val_print): Factor out pointer
7427         printing code to ...
7428         (generic_val_print_ptr): ... this new function.
7430 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7432         * valprint.c (generic_val_print): Factor out array
7433         printing code to ...
7434         (generic_val_print_array): ... this new function.
7436 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
7438         * valprint.c (generic_val_print): Factor out
7439         print_unpacked_pointer code to ...
7440         (print_unpacked_pointer): ... this new function.
7442 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
7444         * event-top.c (handle_sigterm): Don't inspect
7445         target_can_async_p.  Always set the quit flag and always mark
7446         the async signal handler.
7448 2015-07-27  Yao Qi  <yao.qi@linaro.org>
7450         * Makefile.in (REMOTE_EXAMPLES): Remove it.
7452 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
7454         * remote.c (read_ptid): Return null_ptid when no thread id
7455         is found.
7456         (remote_current_thread): Add log warning for malformed
7457         qC reply.
7458         (remote_start_remote): Add log warning when current thread
7459         not found.
7461 2015-07-24  Pedro Alves  <palves@redhat.com>
7463         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
7464         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
7465         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
7467 2015-07-24  Pedro Alves  <palves@redhat.com>
7469         PR gdb/18717
7470         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
7471         is resumed, and extend the debug log.
7473 2015-07-24  Pedro Alves  <palves@redhat.com>
7475         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
7477 2015-07-24  Pedro Alves  <palves@redhat.com>
7479         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
7480         sys/ptrace.h.
7481         * alpha-linux-nat.c: Likewise.
7482         * amd64-linux-nat.c: Likewise.
7483         * arm-linux-nat.c: Likewise.
7484         * hppa-linux-nat.c: Likewise.
7485         * i386-linux-nat.c: Likewise.
7486         * ia64-linux-nat.c: Likewise.
7487         * linux-fork.c: Likewise.
7488         * linux-nat.c: Likewise.
7489         * m32r-linux-nat.c: Likewise.
7490         * m68klinux-nat.c: Likewise.
7491         * mips-linux-nat.c: Likewise.
7492         * nat/linux-btrace.c: Likewise.
7493         * nat/linux-ptrace.c: Likewise.
7494         * nat/linux-ptrace.h
7495         * nat/mips-linux-watch.c: Likewise.
7496         * nat/x86-linux-dregs.c: Likewise.
7497         * ppc-linux-nat.c: Likewise.
7498         * s390-linux-nat.c: Likewise.
7499         * spu-linux-nat.c: Likewise.
7500         * tilegx-linux-nat.c: Likewise.
7501         * x86-linux-nat.c: Likewise.
7502         * xtensa-linux-nat.c: Likewise.
7504 2015-07-24  Pedro Alves  <palves@redhat.com>
7506         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
7507         __ptrace_request as first parameter type instead of int.
7508         (PTRACE_TYPE_ARG1): Define.
7509         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
7510         that casts first argument to PTRACE_TYPE_ARG1.
7511         * config.in: Regenerate.
7512         * configure: Regenerate.
7514 2015-07-24  Pedro Alves  <palves@redhat.com>
7516         * gdb_ptrace.h: Move ...
7517         * nat/gdb_ptrace.h: ... here.
7518         * inf-ptrace.c: Adjust.
7520 2015-07-24  Pedro Alves  <palves@redhat.com>
7522         * acinclude.m4: Include ptrace.m4.
7523         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
7524         * ptrace.m4: ... to this new file.
7526 2015-07-23  Doug Evans  <dje@google.com>
7528         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
7529         (load_cu): Handle dummy CUs.
7530         (dw2_do_instantiate_symtab, process_queuef): Ditto.
7531         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
7533 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
7535         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
7536         documentation to say that it returns a list rather than
7537         a FrozenSet.
7538         (linetable_object_methods): Update the docstring of the
7539         "source_line" entry.
7541 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
7543         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
7544         type to the recursive call instead of the original (maybe
7545         TYPE_CODE_TYPEDEF) type.
7547 2015-07-23  Yao Qi  <yao.qi@linaro.org>
7549         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
7550         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
7551         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
7553 2015-07-21  Yao Qi  <yao.qi@linaro.org>
7555         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
7556         Move it to nat/aarch64-linux-hw-point.c.
7557         (aarch64_linux_child_post_startup_inferior): Update.
7558         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
7559         New function.
7560         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
7561         Declare it.
7563 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
7565         * common/btrace-common.c (btrace_data_append): Change case label.
7567 2015-07-20  Yao Qi  <yao.qi@linaro.org>
7569         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
7570         Re-indent the code.
7571         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
7572         "unsigned long long".
7574 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
7576         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
7577         to be set for SEC_ALLOC sections too.
7579 2015-07-17  Yao Qi  <yao.qi@linaro.org>
7581         * Makefile.in (HFILES_NO_SRCDIR): Add
7582         nat/aarch64-linux-hw-point.h.
7583         (aarch64-linux-hw-point.o): New rule.
7584         * nat/aarch64-linux-hw-point.h: New file.
7585         * nat/aarch64-linux-hw-point.c: New file.
7586         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
7587         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7588         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7589         (AARCH64_HWP_ALIGNMENT): Likewise.
7590         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
7591         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
7592         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
7593         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
7594         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
7595         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
7596         (struct aarch64_debug_reg_state): Likewise.
7597         (struct arch_lwp_info): Likewise.
7598         (aarch64_linux_set_debug_regs): Likewise.
7599         (aarch64_notify_debug_reg_change): Remove static.
7600         (aarch64_align_watchpoint): Likewise.
7601         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
7602         (aarch64_watchpoint_length): Likewise.
7603         (aarch64_point_encode_ctrl_reg): Likewise
7604         (aarch64_point_is_aligned): Likewise.
7605         (aarch64_dr_state_insert_one_point): Likewise.
7606         (aarch64_dr_state_remove_one_point): Likewise.
7607         (aarch64_handle_breakpoint): Likewise.
7608         (aarch64_handle_aligned_watchpoint): Likewise.
7609         (aarch64_handle_unaligned_watchpoint): Likewise.
7610         (aarch64_handle_watchpoint): Likewise.
7611         * config/aarch64/linux.mh (NAT_FILE): Add
7612         aarch64-linux-hw-point.o.
7614 2015-07-17  Yao Qi  <yao.qi@linaro.org>
7616         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
7617         state and don't call aarch64_get_debug_reg_state.  All callers
7618         update.
7619         (aarch64_linux_insert_hw_breakpoint): Call
7620         aarch64_get_debug_reg_state earlier.
7621         (aarch64_linux_remove_hw_breakpoint): Likewise.
7622         (aarch64_handle_aligned_watchpoint): Add argument state and
7623         don't call aarch64_get_debug_reg_state.  All callers update.
7624         (aarch64_handle_unaligned_watchpoint): Likewise.
7625         (aarch64_handle_watchpoint): Add argument state.
7626         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
7627         earlier.
7628         (aarch64_linux_remove_watchpoint): Likewise.
7630 2015-07-17  Yao Qi  <yao.qi@linaro.org>
7632         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
7633         debug_printf.
7634         (aarch64_handle_unaligned_watchpoint): Likewise.
7636 2015-07-17  Yao Qi  <yao.qi@linaro.org>
7638         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
7639         argument type's type to 'enum target_hw_bp_type'.
7640         (aarch64_dr_state_remove_one_point): Likewise.
7641         (aarch64_handle_breakpoint): Likewise.
7642         (aarch64_linux_insert_hw_breakpoint): Likewise.
7643         (aarch64_linux_remove_hw_breakpoint): Likewise.
7644         (aarch64_handle_aligned_watchpoint): Likewise.
7646 2015-07-17  Yao Qi  <yao.qi@linaro.org>
7648         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
7649         ptid_get_pid instead of get_thread_id.
7651 2015-07-17  Yao Qi  <yao.qi@linaro.org>
7653         * remote.c (get_current_thread): Initialise ptid to null_ptid.
7654         (add_current_inferior_and_thread): Don't initialise ptid.
7656 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
7658         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
7659         unavailable if invalid.
7661 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7663         Revert the previous 6 commits:
7664         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7665         Move gdb_regex* to common/
7666         Prepare linux_find_memory_regions_full & co. for move
7667         Move linux_find_memory_regions_full & co.
7668         gdbserver build-id attribute generator
7669         Validate symbol file using build-id
7671 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
7672             Jan Kratochvil  <jan.kratochvil@redhat.com>
7674         Validate symbol file using build-id.
7675         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
7676         and 'show validate-build-id'.  Add build-id attribute.
7677         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
7678         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
7679         * solib-frv.c (_initialize_frv_solib): Ditto.
7680         * solib-spu.c (set_spu_solib_ops): Ditto.
7681         * solib-svr4.c: Include rsp-low.h.
7682         (NOTE_GNU_BUILD_ID_NAME): New define.
7683         (svr4_validate): New function.
7684         (svr4_copy_library_list): Duplicate field build_id.
7685         (library_list_start_library): Parse 'build-id' attribute.
7686         (svr4_library_attributes): Add 'build-id' attribute.
7687         (_initialize_svr4_solib): Assign validate value.
7688         * solib-target.c (solib.h): Include.
7689         (_initialize_solib_target): Assign validate value.
7690         * solib.c (validate_build_id, show_validate_build_id): New.
7691         (solib_map_sections): Use ops->validate.
7692         (clear_so): Free build_id.
7693         (default_solib_validate): New function.
7694         (_initialize_solib): Add "validate-build-id".
7695         * solib.h (default_solib_validate): New declaration.
7696         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
7697         (target_so_ops): New field 'validate'.
7699 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
7700             Jan Kratochvil  <jan.kratochvil@redhat.com>
7702         gdbserver build-id attribute generator.
7703         * features/library-list-svr4.dtd (library-list-svr4): New
7704         'build-id' attribute.
7706 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
7707             Jan Kratochvil  <jan.kratochvil@redhat.com>
7709         Move linux_find_memory_regions_full & co.
7710         * linux-tdep.c (nat/linux-maps.h): Include.
7711         (gdb_regex.h): Remove the include.
7712         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
7713         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
7714         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
7715         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
7716         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
7717         and target/target.h.
7718         (struct smaps_vmflags, read_mapping, decode_vmflags)
7719         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
7720         (linux_find_memory_regions_full): Move from linux-tdep.c.
7721         * nat/linux-maps.h (read_mapping): New declaration.
7722         (linux_find_memory_region_ftype, enum filterflags): Moved from
7723         linux-tdep.c.
7724         (linux_find_memory_regions_full): New declaration.
7725         * target.c (target/target-utils.h): Include.
7726         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
7727         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
7728         definitions to target/target-utils.c.
7729         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
7730         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
7731         from target.c.
7732         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
7733         (read_alloc): New declaration.
7734         (read_stralloc_func_ftype): New typedef.
7735         (read_stralloc): New declaration.
7736         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
7738 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
7739             Jan Kratochvil  <jan.kratochvil@redhat.com>
7741         Prepare linux_find_memory_regions_full & co. for move.
7742         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
7743         (linux_find_memory_regions_full): Change signature and prepare
7744         for moving to linux-maps.
7745         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
7746         (linux_find_memory_regions_thunk): New.
7747         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
7748         (linux_find_memory_regions_gdb): New.
7749         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
7750         (linux_make_mappings_corefile_notes): Use
7751         linux_find_memory_regions_gdb.
7752         * target.c (read_alloc_pread_ftype): New typedef.
7753         (target_fileio_read_alloc_1_pread): New function.
7754         (read_alloc): Refactor from target_fileio_read_alloc_1.
7755         (read_stralloc_func_ftype): New typedef.
7756         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
7757         (read_stralloc): Refactored from target_fileio_read_stralloc.
7758         (target_fileio_read_stralloc): New implementation, use read_stralloc.
7760 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7762         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
7763         common/gdb_regex.h.
7764         (COMMON_OBS): Add gdb_regex.o.
7765         (gdb_regex.o): New.
7766         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
7767         --without-included-regex and USE_INCLUDED_REGEX.
7768         * common/gdb_regex.c: New file from utils.c functions.
7769         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
7770         file wrapping define name.
7771         * configure: Rebuilt.
7772         * configure.ac (gdb_use_included_regex, --without-included-regex)
7773         (USE_INCLUDED_REGEX): Move them to common/common.m4.
7774         * gdb_regex.h: Move it to common/gdb_regex.h.
7775         * utils.c: Remove include gdb_regex.h.
7776         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
7777         (compile_rx_or_error): Move them to common/gdb_regex.c.
7779 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
7780             Jan Kratochvil  <jan.kratochvil@redhat.com>
7782         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7783         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
7784         common/target-utils.h.
7785         (COMMON_OBS): Add target-utils.o.
7786         (linux-maps.o, target-utils.o): New.
7787         * target/target-utils.c: New file.
7788         * target/target-utils.h: New file.
7789         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
7790         * config/i386/linux64.mh (NATDEPFILES): Ditto.
7791         * nat/linux-maps.c: New file.
7792         * nat/linux-maps.h: New file.
7794 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
7795             Pedro Alves <palves@redhat.com>
7797         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
7798         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
7799         (perf_event_read_bts): Change the type of SIZE and READ.
7800         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
7801         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
7802         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
7803         mmap page.
7804         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
7805         buffer size to UINT_MAX.
7806         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
7807         DATA_TAIL.
7808         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
7809         <last_head>: Change type.
7810         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
7811         * common/btrace-common.c (btrace_data_append): Change the type of
7812         SIZE.
7813         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
7814         check.
7816 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
7818         * gdbtypes.h (CHECK_TYPEDEF): Remove.
7819         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
7820         with check_typedef.
7821         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
7822         (ada_array_length): Likewise.
7823         (find_parallel_type_by_descriptive_type): Likewise.
7824         (ada_check_typedef): Likewise.
7825         * arm-tdep.c (arm_return_in_memory): Likewise.
7826         * ax-gdb.c (gen_trace_static_fields): Likewise.
7827         (gen_struct_ref_recursive): Likewise.
7828         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7829         (variable: block COLONCOLON name): Likewise.
7830         (qualified_name: TYPENAME COLONCOLON name): Likewise.
7831         * c-lang.c (classify_type): Likewise.
7832         * c-typeprint.c (c_print_type): Likewise.
7833         (c_print_typedef): Likewise.
7834         (c_type_print_base): Likewise.
7835         * c-valprint.c (c_val_print): Likewise.
7836         * compile/compile-c-types.c (convert_type): Likewise.
7837         * compile/compile-object-load.c (get_out_value_type): Likewise.
7838         * completer.c (add_struct_fields): Likewise.
7839         (expression_completer): Likewise.
7840         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
7841         (cp_lookup_nested_symbol_1): Likewise.
7842         (cp_lookup_nested_symbol): Likewise.
7843         * cp-valprint.c (cp_print_value_fields): Likewise.
7844         (cp_print_static_field): Likewise.
7845         * d-valprint.c (d_val_print): Likewise.
7846         * eval.c (evaluate_subexp_standard): Likewise.
7847         (evaluate_subexp_for_sizeof): Likewise.
7848         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7849         * f-typeprint.c (f_type_print_base): Likewise.
7850         * f-valprint.c (f_val_print): Likewise.
7851         * gdbtypes.c (get_discrete_bounds): Likewise.
7852         (create_array_type_with_stride): Likewise.
7853         (type_name_no_tag_or_error): Likewise.
7854         (lookup_struct_elt_type): Likewise.
7855         (get_unsigned_type_max): Likewise.
7856         (internal_type_vptr_fieldno): Likewise.
7857         (set_type_vptr_fieldno): Likewise.
7858         (internal_type_vptr_basetype): Likewise.
7859         (set_type_vptr_basetype): Likewise.
7860         (get_vptr_fieldno): Likewise.
7861         (is_integral_type): Likewise.
7862         (is_scalar_type): Likewise.
7863         (is_scalar_type_recursive): Likewise.
7864         (distance_to_ancestor): Likewise.
7865         (is_unique_ancestor_worker): Likewise.
7866         (check_types_equal): Likewise.
7867         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
7869 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
7871         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
7872         also test for language_d.
7873         (dwarf2_compute_name): Likewise.
7874         (read_func_scope): Likewise.
7875         (read_structure_type): Likewise.
7876         (new_symbol_full): Likewise.
7877         (determine_prefix): Likewise.
7878         (read_import_statement): Use dot as the separator for language_d.
7879         (typename_concat): Likewise, but don't prefix the D main function.
7881 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
7883         * nat/linux-namespaces.c (setns): Rename from this ...
7884         (do_setns): ... to this.  Support calling setns if it exists.
7885         (mnsh_handle_setns): Call do_setns.
7887 2015-07-13  Yao Qi  <yao.qi@linaro.org>
7889         * exec.c (exec_file_attach): Add period at the end of error
7890         message.
7892 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7894         * tui/tui-win.c (window_name_completer): New function.
7895         (focus_completer): Call window_name_completer.  All old content
7896         moved into window_name_completer.
7897         (winheight_completer): New function.
7898         (_initialize_tui_win): Rename variable.  Add completer to
7899         winheight command.  Update doc string on winheight.
7901 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
7903         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
7904         all nios2 mach variants.
7906 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
7908         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
7909         of target_read_memory.
7911 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
7913         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
7914         string copy.
7915         (parse_scrolling_args): Likewise.
7917 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
7919         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
7920         names in this function.
7922 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
7924         * tui/tui-data.h (SRC_NAME): Convert to lower case.
7925         (CMD_NAME): Likewise.
7926         (DATA_NAME): Likewise.
7927         (DISASSEM_NAME): Likewise.
7928         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
7929         (tui_set_win_height): Likewise.
7930         (parse_scrolling_args): Likewise.
7932 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
7934         * record-btrace.c (record_btrace_goto_begin)
7935         (record_btrace_goto_end, record_btrace_goto): Move call to
7936         print_stack_frame ...
7937         (record_btrace_set_replay): ... here.  Set stop_pc.
7938         * record-full.c (record_full_goto_entry): Set stop_pc.
7940 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7942         * NEWS: Mention support for tracepoints on aarch64-linux.
7944 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7946         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
7947         function.  Return 1.
7948         (the_low_target): Install it.
7950 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7952         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
7953         * gdb.trace/collection.exp: Likewise.
7954         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
7955         * gdb.trace/mi-trace-unavailable.exp: Likewise.
7956         * gdb.trace/report.exp: Likewise.
7957         * gdb.trace/trace-break.exp: Likewise.
7958         * gdb.trace/unavailable.exp: Likewise.
7959         * gdb.trace/while-dyn.exp: Likewise.
7961 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7963         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
7964         (aarch64_gen_return_address): New function.
7965         (aarch64_gdbarch_init): Hook it.
7967 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7969         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
7970         swallow NOT_AVAILABLE_ERROR.
7971         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
7972         available_p is not set.
7973         (aarch64_stub_frame_unwind_stop_reason): New function.
7974         (aarch64_stub_unwind): Install it.
7976 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7978         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
7979         field.
7980         (aarch64_make_prologue_cache_1): New function, factored out from
7981         aarch64_make_prologue_cache.  Do not allocate cache.  Set
7982         available_p.
7983         (aarch64_make_prologue_cache): Reimplement wrapping
7984         aarch64_make_prologue_cache_1, and swallowing
7985         NOT_AVAILABLE_ERROR.
7986         (aarch64_prologue_frame_unwind_stop_reason): New function.
7987         Return UNWIND_UNAVAILABLE if available_p is not set.
7988         (aarch64_prologue_unwind): Install it.
7989         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
7990         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
7991         frame_id_build_unavailable_stack if available_p is not set.
7993 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
7995         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
7996         fields.
7997         (aarch64_scan_prologue): Set prev_pc.
7998         (aarch64_make_prologue_cache): Set func.
7999         (aarch64_make_stub_cache): Set prev_pc.
8000         (aarch64_prologue_this_id): Remove local variables id, pc and
8001         func.  Read prev_pc and func from cache.
8002         (aarch64_stub_this_id): Read prev_pc from cache.
8004 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
8006         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
8007         argument this_cache.  Remove unused local variables reg and
8008         unwound_fp.  Return early if this_cache is already set.  Set
8009         this_cache.
8010         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
8012 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
8014         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
8015         New argument this_cache.  Return early if this_cache is already
8016         set.  Set this_cache.
8017         (aarch64_prologue_this_id): Update call to
8018         aarch64_make_prologue_cache.
8019         (aarch64_prologue_prev_register): Likewise.
8020         (aarch64_normal_frame_base): Likewise.
8022 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
8024         * c-valprint.c (c_val_print): Factor out memberptr printing code
8025         from c_val_print to ...
8026         (c_val_print_memberptr): ... this new function.
8028 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
8030         * c-valprint.c (c_val_print): Factor out int printing code to ...
8031         (c_val_print_int): ... this new function.
8033 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
8035         * c-valprint.c (c_val_print): Factor out struct and union
8036         printing code to ...
8037         (c_val_print_struct): ... this new function ...
8038         (c_val_print_union): ... and this new function.
8040 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
8042         * c-valprint.c (c_val_print): Factor out pointer printing code
8043         to ...
8044         (c_val_print_ptr): ... this new function.
8046 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
8048         * c-valprint.c (c_valprint): Factor our array printing code from
8049         c_val_print to ...
8050         (c_val_print_array): ... this new function.
8052 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
8054         * c-valprint.c (c_val_print): Factor out pointer printing code
8055         to ...
8056         (print_unpacked_pointer): ... this new function.
8058 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
8060         * c-valprint.c (c_val_print): Remove an assignment to i and move
8061         its declaration.
8063 2015-07-09  Yao Qi  <yao.qi@linaro.org>
8065         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
8066         argument ptid.  Update comments.  Caller update.
8068 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
8070         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
8071         mnt packets.
8073 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
8075         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
8077 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
8079         * progspace.c (delete_program_space): Add missing spaces.
8081 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
8083         * inferior.c (delete_inferior_1): Rename to ...
8084         (delete_inferior): ..., remove 'silent' parameter, delete
8085         program space when unused and remove call to prune_program_spaces.
8086         Remove the old, unused, delete_inferior.
8087         (delete_inferior_silent): Remove.
8088         (prune_inferiors): Change call from delete_inferior_1 to
8089         delete_inferior and remove 'silent' parameter. Remove call to
8090         prune_program_spaces.
8091         (remove_inferior_command): Idem.
8092         * inferior.h (delete_inferior_1): Rename to...
8093         (delete_inferior): ..., remove 'silent' parameter and remove the
8094         original delete_inferior.
8095         (delete_inferior_silent): Remove.
8096         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
8097         delete_inferior_1 to delete_inferior and remove 'silent'
8098         parameter.
8099         * progspace.c (prune_program_spaces): Remove.
8100         (pspace_empty_p): Rename to...
8101         (program_space_empty_p): ... and make non-static.
8102         (delete_program_space): New.
8103         * progspace.h (prune_program_spaces): Remove declaration.
8104         (program_space_empty_p): New declaration.
8105         (delete_program_space): New declaration.
8106         * monitor.c (monitor_close): Replace call to
8107         delete_thread_silent and delete_inferior_silent with
8108         discard_all_inferiors.
8110 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
8112         * defs.h (deprecated_register_changed_hook): Remove prototype.
8113         * interps.c (clear_iterpreter_hooks): Remove reference to
8114         deprecated_register_changed_hook.
8115         * top.c (deprecated_register_changed_hook): Remove prototype.
8116         * valops.c (value_assign): Remove reference to
8117         deprecated_register_changed_hook.
8118         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
8119         Add comment documenting the function.
8120         (tui_register_changed_observer): Define.
8121         (tui_install_hooks): Remove reference to
8122         deprecated_register_changed_hook.  Set
8123         tui_register_changed_observer.
8124         (tui_remove_hooks): Remove reference to
8125         deprecated_register_changed_hook.  Unset
8126         tui_register_changed_observer.
8128 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8130         PR compile/18484
8131         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
8133 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
8135         PR exp/18617
8136         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
8138 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
8140         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
8142 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
8144         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
8145         Use safe_strerror() instead of strerror().
8147 2015-07-07  Yao Qi  <yao.qi@linaro.org>
8149         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
8150         * features/arm-with-m-fpa-layout.c: Regenerated.
8151         * features/arm-with-m-vfp-d16.xml: Likewise.
8152         * features/arm-with-m-vfp-d16.c: Regenerated.
8153         * features/arm-with-m.xml: Likewise.
8154         * features/arm-with-m.c: Regenerated.
8155         * features/arm-with-neon.xml: Likewise.
8156         * features/arm-with-neon.c: Regenerated.
8157         * features/arm-with-vfpv2.xml: Likewise.
8158         * features/arm-with-vfpv2.c: Regenerated.
8159         * features/arm-with-vfpv3.xml: Likewise.
8160         * features/arm-with-vfpv3.c: Regenerated.
8162 2015-07-07  Yao Qi  <yao.qi@linaro.org>
8164         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
8165         arm-linux-nat.c.
8166         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
8167         elf/external.h.
8168         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
8169         if target is 32-bit.
8170         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
8171         if target is 32-bit.
8172         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
8173         if target is 32-bit.
8174         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
8175         if target is 32-bit.
8176         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
8177         (aarch64_linux_read_description): Return the right target
8178         description.
8179         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
8180         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
8181         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
8182         arm-linux-tdep.o.
8184 2015-07-07  Yao Qi  <yao.qi@linaro.org>
8186         * aarch32-linux-nat.c: New file.
8187         * aarch32-linux-nat.h: New file.
8188         * arm-linux-nat.c: Include aarch32-linux-nat.h.
8189         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
8190         aarch32_gp_regcache_supply.
8191         (store_regs): Move code to aarch32-linux-nat.c.  Call
8192         aarch32_gp_regcache_collect.
8193         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
8194         aarch32_vfp_regcache_supply.
8195         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
8196         aarch32_vfp_regcache_collect.
8197         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
8199 2015-07-07  Yao Qi  <yao.qi@linaro.org>
8201         * arm-linux-nat.c (store_fpregister): Remove.
8202         (store_register): Likewise.
8203         (fetch_fpregister): Likewise.
8204         (fetch_register): Likewise.
8205         (arm_linux_store_inferior_registers): Call store_regs and
8206         store_fpregs instead.
8207         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
8208         fetch_regs instead.
8210 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
8212         * NEWS: Create a new section for the next release branch.
8213         Rename the section of the current branch, now that it has
8214         been cut.
8216 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
8218         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
8219         * version.in: Bump version to 7.10.50.DATE-cvs.
8221 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
8223         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
8224         breakpoints in a special way.
8225         (remove_breakpoint): Likewise.
8226         (mark_breakpoints_out): Likewise.
8228 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
8230         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
8231         instead of casting the structure type.
8233 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
8235         * valops.c (search_struct_field): Remove OFFSET parameter.
8236         (value_cast_structs): Adjust calls to search_struct_field.
8237         (value_struct_elt): Same.
8238         (find_overload_match): Same.
8240 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
8242         * value.c (value_fetch_lazy): Update comment, change return
8243         value to void.
8244         * value.h (value_fetch_lazy): Change return value to void.
8246 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
8248         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
8249         (tui_win_name): Make parameter and result const.
8250         * tui/tui-data.h (tui_win_name): Make parameter and result const.
8252 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
8254         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
8255         use printf_unfiltered.
8256         (set_mpx_cmd): Add missing trailing space to command string
8257         literal.
8258         (_initialize_i386_tdep): Give the "mpx" prefix command its
8259         correct name.
8261 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
8263         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
8264         (enum rx_frame_type): New.
8265         (struct rx_prologue): Add new field `frame_type'.
8266         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
8267         parameter in the prologue struct.  Add code for recording
8268         locations of PC and PSW for fast interrupt and exception frames.
8269         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
8270         (rx_analyze_frame_prologue): Add `frame_type' parameter.
8271         (rx_frame_type): New function.
8272         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
8273         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
8274         `this_cache'.
8275         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
8276         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
8277         RX_FRAME_TYPE_FAST_INTERRUPT.
8278         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
8279         (rx_frame_sniffer, rx_exception_sniffer): New functions.
8280         (rx_frame_unwind): Use rx_frame_sniffer instead of
8281         default_frame_sniffer.
8282         (rx_frame_unwind): New unwinder.
8283         (rx_gdbarch_init): Register new unwinder.
8285 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
8287         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
8288         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
8289         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
8290         and RX_FPSW_REGNUM.
8291         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
8293 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8295         Fix GCC false warning.
8296         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
8298 2015-07-02  Yao Qi  <yao.qi@linaro.org>
8300         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
8301         typo in the debugging message.
8303 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
8305         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
8306         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
8307         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
8308         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
8309         (btrace_maint_clear): New.
8310         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
8311         (pt_print_packet, btrace_maint_decode_pt)
8312         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
8313         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
8314         (maint_btrace_packet_history_cmd)
8315         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
8316         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
8317         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
8318         (maint_info_btrace_cmd, _initialize_btrace): New.
8319         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
8320         (btrace_maint_packet_history, btrace_maint_info): New.
8321         (btrace_thread_info) <maint>: New.
8322         * NEWS: Announce it.
8324 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
8326         * btrace.c (btrace_fetch): Append the new trace data.
8327         (btrace_clear): Clear the stored trace data.
8328         * btrace.h (btrace_thread_info) <data>: New.
8329         * common/btrace-common.h (btrace_data_clear)
8330         (btrace_data_append): New.
8331         * common/btrace-common.c (btrace_data_clear)
8332         (btrace_data_append): New.
8334 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
8336         * nat/linux-btrace.c (linux_enable_bts): Check for
8337         PERF_ATTR_SIZE_VER5.
8338         Check for data_offset and data_size fields.  Use them.
8340 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
8342         * NEWS: Announce new commands "record btrace pt" and "record pt".
8343         Announce new options "set|show record btrace pt buffer-size".
8344         * btrace.c: Include "rsp-low.h".
8345         Include "inttypes.h".
8346         (btrace_add_pc): Add forward declaration.
8347         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
8348         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
8349         (btrace_compute_ftrace_pt): New.
8350         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
8351         (check_xml_btrace_version): Update version check.
8352         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
8353         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
8354         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
8355         (btrace_pt_children): New.
8356         (btrace_children): Add support for "pt".
8357         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
8358         (btrace_conf_children): Add support for "pt".
8359         * btrace.h: Include "intel-pt.h".
8360         (btrace_pt_error): New.
8361         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
8362         (btrace_data_empty): Support BTRACE_FORMAT_PT.
8363         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
8364         (struct btrace_config_pt): New.
8365         (struct btrace_config)<pt>: New.
8366         (struct btrace_data_pt_config, struct btrace_data_pt): New.
8367         (struct btrace_data)<pt>: New.
8368         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
8369         (pt): New.
8370         * features/btrace.dtd (btrace)<pt>: New.
8371         (pt, pt-config, cpu): New.
8372         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
8373         (perf_event_pt_event_type, kernel_supports_pt)
8374         (linux_supports_pt): New.
8375         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
8376         (linux_enable_bts): Free tinfo on error.
8377         (linux_enable_pt): New.
8378         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
8379         (linux_disable_pt): New.
8380         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
8381         (linux_fill_btrace_pt_config, linux_read_pt): New.
8382         (linux_read_btrace): Support BTRACE_FORMAT_PT.
8383         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
8384         (struct btrace_target_info)<pt>: New.
8385         * record-btrace.c (set_record_btrace_pt_cmdlist)
8386         (show_record_btrace_pt_cmdlist): New.
8387         (record_btrace_print_pt_conf): New.
8388         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
8389         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
8390         (cmd_record_btrace_pt_start): New.
8391         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
8392         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
8393         (_initialize_record_btrace): Add new commands.
8394         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
8395         (remote_protocol_features): Add "Qbtrace:pt".
8396         Add "Qbtrace-conf:pt:size".
8397         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
8398         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
8399         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
8400         (_initialize_remote): Add new commands.
8402 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
8404         * configure.ac: check for libipt
8405         * configure: Regenerate.
8406         * config.in: Regenerate.
8407         * Makefile.in (LIBIPT): New.
8408         (CLIBS): Add $LIBIPT.
8409         * NEWS: document new configure options
8411 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8413         * compile/compile-object-load.c (compile_object_load): Replace debug
8414         message "lookup undefined ELF symbol" by 3 more specific messages.
8416 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
8418         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
8419         (rl78_register_type): Add case for RL78_PSW_REGNUM.
8420         (rl78_gdbarch_init): Initialize rl78_psw_type.
8422 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
8424         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
8425         Update commentary.  Always refresh the registers when frame
8426         information has changed.
8427         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
8428         Change return type to int.  Return 1 if frame information has
8429         changed, 0 otherwise.
8430         (tui_before_prompt): Update commentary.
8431         * tui/tui-stack.h (tui_show_frame_info): Change return type to
8432         int.
8434 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
8436         PR tui/13378
8437         * frame.c (select_frame): Remove reference to
8438         deprecated_selected_frame_level_changed_hook.
8439         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
8440         declaration.
8441         * stack.c (deprecated_selected_frame_level_changed_hook):
8442         Likewise.
8443         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
8444         Rename to ...
8445         (tui_refresh_frame_and_register_information): ... this.  Bail
8446         out if there is no stack.  Don't update register information
8447         unless registers_too_p is true.
8448         (tui_print_frame_info_listing_hook): Rename to ...
8449         (tui_dummy_print_frame_info_listing_hook): ... this.
8450         (tui_before_prompt): New function.
8451         (tui_normal_stop): New function.
8452         (tui_before_prompt_observer): New observer.
8453         (tui_normal_stop_observer): New observer.
8454         (tui_install_hooks): Set
8455         deprecated_print_frame_info_listing_hook to
8456         tui_dummy_print_frame_info_listing_hook.  Register
8457         tui_before_prompt_observer to call tui_before_prompt and
8458         tui_normal_stop_observer to call tui_normal_stop.  Remove
8459         reference to deprecated_selected_frame_level_changed_hook.
8460         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
8461         and tui_normal_stop_observer.  Remove reference to
8462         deprecated_selected_frame_level_changed_hook.
8464 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
8466         PR tui/13378
8467         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
8468         return an int instead of void.  Return whether the locator
8469         window has changed.
8470         (tui_show_frame_info): If the locator info has not changed, then
8471         bail out early to avoid refreshing the windows.
8473 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
8475         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
8476         LOCATOR_WIN to tui_alloc_content.
8478 2015-06-30  Yao Qi  <yao.qi@linaro.org>
8480         PR tdep/18605
8481         * arm-tdep.c (arm_get_next_pc_raw): Break for media
8482         instructions.
8484 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
8486         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
8487         (rx_dwarf_reg_to_regnum): New function.
8488         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
8489         unwinding.
8491 2015-06-29  Pedro Alves  <palves@redhat.com>
8493         PR threads/18127
8494         * infcall.c (run_inferior_call): On infcall success, if the thread
8495         was marked stopped before, reset it back to stopped.
8496         * infrun.c (resume): Don't suppress the set_running calls when
8497         doing an infcall.
8498         (normal_stop): Only discard the finish_thread_state cleanup if the
8499         infcall succeeded.
8501 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
8503         * MAINTAINERS (Write After Approval): Update my email address.
8505 2015-06-26  Keith Seitz  <keiths@redhat.com>
8506             Doug Evans  <dje@google.com>
8508         PR 16253
8509         * block.c (block_lookup_symbol): For non-function blocks,
8510         continue to search for a symbol with an exact domain match
8511         Otherwise, return any previously found "best domain" symbol.
8512         (block_lookup_symbol_primary): Likewise.
8514 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
8516         * NEWS: Mention the new option "history remove-duplicates".
8517         * top.c (history_remove_duplicates): New static variable.
8518         (show_history_remove_duplicates): New static function.
8519         (gdb_add_history): Conditionally remove duplicate history
8520         entries.
8521         (init_main): Add "history remove-duplicates" option.
8523 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
8525         * tui/tui-win.c (focus_completer): New static function.
8526         (_initialize_tui_win): Set the completion function of the
8527         "focus" command to focus_completer.
8529 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8531         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
8532         and language_asm..
8533         * symtab.c (find_function_start_sal): Likewise.
8535 2015-06-25  Gary Benson  <gbenson@redhat.com>
8537         * solib.c (solib_find_1): Set local variable sysroot to NULL if
8538         it is the empty string after trailing slashes have been stripped.
8540 2015-06-25  Gary Benson  <gbenson@redhat.com>
8542         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
8543         * infrun.c (follow_exec): Likewise.
8544         * remote.c (remote_filesystem_is_local): Likewise.
8545         * solib.c (solib_find_1): Likewise.
8547 2015-06-24  Keith Seitz  <keiths@redhat.com>
8549         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
8550         return value from lrealpath.
8552 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
8554         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
8556 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
8558         * remote-sim.c: Include gdb_bfd.h.
8559         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
8560         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
8562 2015-06-24  Yao Qi  <yao.qi@linaro.org>
8564         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
8565         set_gdbarch_get_siginfo_type.
8566         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8567         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8568         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8569         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
8570         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
8571         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8572         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
8573         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
8574         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
8575         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
8577 2015-06-24  Gary Benson  <gbenson@redhat.com>
8579         * common/buffer.c (stdint.h): Do not include.
8580         * common/print-utils.c (stdint.h): Likewise.
8581         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
8582         * compile/compile-c-types.c (gdb_assert.h): Likewise.
8583         * ft32-tdep.c (gdb_assert.h): Likewise.
8584         * guile/scm-utils.c (stdint.h): Likewise.
8585         * i386-linux-tdep.c (stdint.h): Likewise.
8586         * i386-tdep.c (stdint.h): Likewise.
8587         * nat/linux-btrace.c (stdint.h): Likewise.
8588         * nat/linux-btrace.h (stdint.h): Likewise.
8589         * nat/linux-ptrace.c (stdint.h): Likewise.
8590         * nat/mips-linux-watch.h (stdint.h): Likewise.
8591         * ppc-linux-nat.c (stdint.h): Likewise.
8592         * python/python-internal.h (stdint.h): Likewise.
8593         * stub-termcap.c (stdlib.h): Likewise.
8594         * target/target.h (stdint.h): Likewise.
8595         * xtensa-linux-nat.c (stdint.h): Likewise.
8597 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
8599         * top.c (init_history): Look at errno after calling strtol to
8600         properly map large GDBHISTSIZE values to infinity.
8602 2015-06-23  Doug Evans  <dje@google.com>
8604         * inferior.h (struct inferior_suspend_state): Delete, unused.
8605         All references deleted.
8607 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
8609         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
8610         (microblaze_push_dummy_call): Likewise.
8611         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
8612         and set_gdbarch_push_dummy_call.
8614 2015-06-23  Yao Qi  <yao.qi@linaro.org>
8616         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
8617         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
8618         (amd64_linux_store_inferior_registers): Likewise.
8619         * arm-linux-nat.c (fetch_fpregister): Likewise.
8620         (fetch_fpregs, store_fpregister): Likewise.
8621         (store_fpregister, store_fpregs): Likewise.
8622         (fetch_register, fetch_regs): Likewise.
8623         (store_register, store_regs): Likewise.
8624         (fetch_vfp_regs, store_vfp_regs): Likewise.
8625         (arm_linux_read_description): Check have_ptrace_getregset is
8626         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
8627         or TRIBOOL_FALSE.
8628         * i386-linux-nat.c (fetch_xstateregs): Check
8629         have_ptrace_getregset is not TRIBOOL_TRUE.
8630         (store_xstateregs): Likewise.
8631         * linux-nat.c (have_ptrace_getregset): Change its type to
8632         enum tribool.
8633         * linux-nat.h (tribool): New enum.
8634         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
8635         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
8637 2015-06-19  Doug Evans  <dje@google.com>
8639         * NEWS: Mention Sun's version of stabs is no longer supported.
8640         * elfread.c (free_elfinfo): Delete.  All uses updated.
8641         (elfstab_offset_sections): Delete.  All uses updated.
8642         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
8643         * psympriv.h (partial_symtab) <section_offsets>: Delete.
8644         All uses updated.
8645         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
8646         All callers updated.
8648 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
8650         * common/rsp-low.c (needs_escaping): New.
8651         (remote_escape_output): Add unit_size parameter. Refactor to
8652         support multi-byte addressable units.  Rename parameters.
8653         * common/rsp-low.h (remote_escape_output): Add unit_size
8654         parameter and rename others. Update doc.
8655         * remote.c (align_for_efficient_write): New.
8656         (remote_write_bytes_aux): Add unit_size parameter and use it.
8657         Rename some variables.  Update doc.
8658         (remote_xfer_partial): Get unit size and use it.
8659         (remote_read_bytes_1): Add unit_size parameter and use it.
8660         Rename some variables. Update doc.
8661         (remote_write_bytes): Same.
8662         (remote_xfer_live_readonly_partial): Same.
8663         (remote_read_bytes): Same.
8664         (remote_flash_write): Update call to remote_write_bytes_aux.
8665         (remote_write_qxfer): Update call to remote_escape_output.
8666         (remote_search_memory): Same.
8667         (remote_hostio_pwrite): Same.
8669 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
8671         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
8672         locations as inserted.
8673         Update and expand comment about permanent locations.
8674         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
8675         Move comment to add_location_to_breakpoint.
8676         (update_global_location_list): Don't error out if a permanent
8677         breakpoint is not marked inserted.
8678         Don't error out if a non-permanent breakpoint location is inserted on
8679         top of a permanent breakpoint.
8681 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
8683         * breakpoint.c (make_breakpoint_permanent): Remove unused
8684         function.
8685         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
8687 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
8689         PR gdb/16999
8690         * NEWS: Mention new GDBHISTSIZE behavior.
8691         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
8692         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
8694 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
8696         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
8697         * top.c (init_history): Read from GDBHISTSIZE instead of
8698         HISTSIZE.
8699         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
8701 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
8703         * top.c (gdb_safe_append_history): Do not call
8704         history_truncate_file if the history is not stifled.
8706 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8708         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
8709         * syscalls/s390x-linux.xml: Likewise.
8711 2015-06-16  Michael Eager  <eager@eagercon.com>
8713         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
8715 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
8717         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
8718         target_terminal_ours_for_output() before calling
8719         tui_show_frame_info(), and restore the original terminal
8720         settings afterwards.
8722 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
8724         * arm-linux-nat.c: Include nat/linux-ptrace.h.
8726 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
8728         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
8729         memory unit size.
8730         (mi_cmd_data_write_memory_bytes): Same.
8732 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
8734         * corefile.c (write_memory): Update doc.
8735         * gdbcore.h (write_memory): Same.
8737 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
8739         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
8740         (dump_mapping_p): Use it for parameter filterflags.
8741         (linux_find_memory_regions_full): Use it for variable filterflags.
8743 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
8744             Jan Kratochvil  <jan.kratochvil@redhat.com>
8746         Merge multiple hex conversions.
8747         * monitor.c: Include rsp-low.h.
8748         (fromhex): Remove definition.
8750 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
8751             Jan Kratochvil  <jan.kratochvil@redhat.com>
8753         Move utility functions to common/.
8754         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
8755         Move defs to common/common-utils.c.
8756         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
8757         (skip_to_space_const): Move decls to common/common-utils.h.
8758         * common/common-defs.h: Move include of common-types.h before
8759         common-utils.h.
8760         * common/common-utils.c: Include host-defs.h and ctype.h.
8761         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
8762         from utils.c.
8763         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
8764         cli/cli-utils.c.
8765         * common/common-utils.h (strtoulst): Move decl from utils.h.
8766         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
8767         Move from cli/cli-utils.h.
8768         * common/host-defs.h: Include limits.h.
8769         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
8770         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
8771         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
8772         common/common-utils.h.
8773         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
8774         (strtoulst): Move to common/common-utils.c.
8775         * utils.h (strtoulst): Moved decl to common/common-utils.h.
8777 2015-06-15  Yao Qi  <yao.qi@linaro.org>
8779         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
8781 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
8783         * build-id.c: Don't include elf-bfd.h.
8784         (build_id_bfd_get): Use bfd_build_id.
8785         (build_id_verify): Ditto.
8786         * build-id.h: Ditto.
8787         (find_separate_debug_file_by_buildid): Ditto.
8788         * python/py-objfile.c: Don't include elf-bfd.h.
8789         (objfpy_get_build_id) Use bfd_build_id.
8790         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
8791         * coffread.c: Include build-id.h.
8792         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
8794 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
8796         * windows-nat.c (do_windows_fetch_inferior_registers)
8797         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
8798         conditional with __CYGWIN__.
8800 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
8802         * completer.c: Add arch-utils.h include.
8803         (enum reg_completer_targets): New enum.
8804         (reg_or_group_completer_1): New function containing old
8805         reg_or_group_completer, add and use new parameter to control what
8806         is completed on.  Use get_current_arch rather than architecture of
8807         currently selected frame.
8808         (reg_or_group_completer): Call new reg_or_group_completer_1.
8809         (reggroup_completer): Call new reg_or_group_completer_1.
8810         * completer.h (reggroup_completer): Add declaration.
8811         * tui/tui-regs.c: Add 'completer.h' include.
8812         (tui_reg_next_command): Renamed to...
8813         (tui_reg_next): ...this.  Adjust parameters and return rather than
8814         display new group.
8815         (tui_reg_prev_command): Renamed to...
8816         (tui_reg_prev): ...this.  Adjust parameters and return rather than
8817         display new group.
8818         (tui_reg_float_command): Delete.
8819         (tui_reg_general_command): Delete.
8820         (tui_reg_system_command): Delete.
8821         (tui_reg_command): Rewrite to perform switching of register group.
8822         Add header comment.
8823         (tuireglist): Remove.
8824         (tui_reggroup_completer): New function.
8825         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
8826         creation of 'tui reg' command.
8827         * NEWS: Add comment about 'tui reg' changes.
8829 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
8831         * target.c (target_read): Consider addressable unit size when
8832         reading from a memory object.
8833         (read_memory_robust): Same.
8834         (read_whatever_is_readable): Same.
8835         (target_write_with_progress): Consider addressable unit size
8836         when writing to a memory object.
8837         * target.h (target_read): Update documentation.
8838         (target_write): Add documentation.
8840 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
8842         * arch-utils.h (default_addressable_memory_unit_size): New.
8843         * arch-utils.c (default_addressable_memory_unit_size): New.
8844         * gdbarch.sh (addressable_memory_unit_size): New.
8845         * gdbarch.h: Re-generate.
8846         * gdbarch.c: Re-generate.
8848 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
8850         * target.c (target_read): Rename variables and use
8851         TARGET_XFER_E_IO.
8852         (target_read_with_progress): Same.
8853         (read_memory_robust): Constify parameters and rename
8854         variables.
8855         (read_whatever_is_readable): Constify parameters,
8856         rename variables, adjust formatting.
8857         * target.h (read_memory_robust): Constify parameters.
8859 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
8861         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
8862         synthetic (non-AltiVec) vector types.
8863         (ppc64_sysv_abi_return_value): Likewise.
8865 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
8867         PR breakpoints/16465
8868         * breakpoint.c (create_breakpoint): Save extra_string for
8869         pending breakpoints.
8871 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
8873         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
8874         and bt_mask to CORE_ADDR.
8876 2015-06-11  Gary Benson <gbenson@redhat.com>
8878         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
8879         (mnsh_recv_message): Likewise.
8881 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
8883         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
8884         long long int and plongest instead of %ll.
8886 2015-06-11  Gary Benson <gbenson@redhat.com>
8888         * nat/linux-namespaces.c (gdb_wait.h): New include.
8889         (sys/wait.h): Do not include.
8891 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
8893         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
8894         end_sequence is true.
8896 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8898         Code cleanup.
8899         * solib-target.c (library_list_start_list): Use explicit NULL
8900         comparison.
8902 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
8904         * solib-target.c (library_list_start_list): Do not dereference
8905         variable version in its initialization.  Make the VERSION check handle
8906         NULL.
8907         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
8909 2015-06-10  Gary Benson <gbenson@redhat.com>
8911         * NEWS: Announce support for direct access of executable and
8912         shared library files when attaching to inferiors in containers
8913         on GNU/Linux systems.
8915 2015-06-10  Gary Benson <gbenson@redhat.com>
8917         * remote.c (struct remote_state) <fs_pid>: New field.
8918         (new_remote_state): Initialize the above.
8919         (PACKET_vFile_setfs): New enum value.
8920         (remote_hostio_set_filesystem): New function.
8921         (remote_hostio_open): Call the above.
8922         (remote_hostio_unlink): Likewise.
8923         (remote_hostio_readlink): Likewise.
8924         (_initialize_remote): Register new "set/show remote
8925         hostio-setfs-packet" command.
8926         * NEWS: Announce new vFile:setfs packet.
8928 2015-06-10  Gary Benson <gbenson@redhat.com>
8930         * linux-nat.c (nat/linux-namespaces.h): New include.
8931         (fileio.h): Likewise.
8932         (linux_nat_filesystem_is_local): New function.
8933         (linux_nat_fileio_pid_of): Likewise.
8934         (linux_nat_fileio_open): Likewise.
8935         (linux_nat_fileio_readlink): Likewise.
8936         (linux_nat_fileio_unlink): Likewise.
8937         (linux_nat_add_target): Initialize to_filesystem_is_local,
8938         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
8939         (_initialize_linux_nat): New "set/show debug linux-namespaces"
8940         commands.
8941         * NEWS: Mention new "set/show debug linux-namespaces" commands.
8943 2015-06-10  Gary Benson <gbenson@redhat.com>
8945         * target.h (struct inferior): New forward declaration.
8946         (struct target_ops) <to_filesystem_is_local>: Update comment.
8947         (struct target_ops) <to_fileio_open>: New argument inf.
8948         Update comment.  All implementations updated.
8949         (struct target_ops) <to_fileio_unlink>: Likewise.
8950         (struct target_ops) <to_fileio_readlink>: Likewise.
8951         (target_filesystem_is_local): Update comment.
8952         (target_fileio_open): New argument inf.  Update comment.
8953         (target_fileio_unlink): Likewise.
8954         (target_fileio_readlink): Likewise.
8955         (target_fileio_read_alloc): Likewise.
8956         (target_fileio_read_stralloc): Likewise.
8957         * target.c (target_fileio_open): New argument inf.
8958         Pass inf to implementation.  Update debug printing.
8959         (target_fileio_unlink): Likewise.
8960         (target_fileio_readlink): Likewise.
8961         (target_fileio_read_alloc_1): New argument inf. Pass inf
8962         to target_fileio_open.
8963         (target_fileio_read_alloc): New argument inf. Pass inf to
8964         target_fileio_read_alloc_1.
8965         (target_fileio_read_stralloc): Likewise.
8966         * gdb_bfd.c (inferior.h): New include.
8967         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
8968         argument with new argument "inferior".  Pass inferior to
8969         target_fileio_open.
8970         (gdb_bfd_open): Supply inferior argument to
8971         gdb_bfd_iovec_fileio_open.
8972         * linux-tdep.c (linux_info_proc): Supply inf argument to
8973         relevant target_fileio calls.
8974         (linux_find_memory_regions_full): Likewise.
8975         (linux_fill_prpsinfo): Likewise.
8976         * remote.c (remote_filesystem_is_local): Supply inf
8977         argument to remote_hostio_open.
8978         (remote_file_put): Likewise.
8979         (remote_file_get): Likewise.
8980         (remote_file_delete): Supply inf argument to
8981         remote_hostio_unlink.
8983 2015-06-10  Gary Benson <gbenson@redhat.com>
8985         * inf-child.c (inf_child_fileio_open): Replace comment.
8986         (inf_child_fileio_pwrite): Likewise.
8987         (inf_child_fileio_pread): Likewise.
8988         (inf_child_fileio_fstat): Insert blank line before comment.
8989         (inf_child_fileio_close): Replace comment.
8990         (inf_child_fileio_unlink): Likewise.
8991         (inf_child_fileio_readlink): Likewise.
8992         * remote.c (remote_hostio_open): Likewise.
8993         (remote_hostio_pread): Likewise.
8994         (remote_hostio_pwrite): Likewise.
8995         (remote_hostio_close): Likewise.
8996         (remote_hostio_unlink): Likewise.
8997         (remote_hostio_readlink): Likewise.
8998         (remote_hostio_fstat): Likewise.
8999         (remote_filesystem_is_local): Likewise.
9000         * target.c (target_fileio_open): Likewise.
9001         (target_fileio_pwrite): Likewise.
9002         (target_fileio_pread): Likewise.
9003         (target_fileio_fstat): Insert blank line before comment.
9004         (target_fileio_close): Replace comment.
9005         (target_fileio_unlink): Likewise.
9006         (target_fileio_readlink): Likewise.
9007         (target_fileio_read_alloc): Likewise.
9008         (target_fileio_read_stralloc): Likewise.
9010 2015-06-10  Gary Benson <gbenson@redhat.com>
9012         * linux-thread-db.c (nat/linux-namespaces.h): New include.
9013         (check_pid_namespace_match): Use linux_ns_same rather than
9014         linux_proc_pid_get_ns to spot PID namespace mismatches.
9015         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
9016         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
9018 2015-06-10  Gary Benson <gbenson@redhat.com>
9020         * configure.ac (AC_CHECK_FUNCS): Add setns.
9021         * config.in: Regenerate.
9022         * configure: Likewise.
9023         * nat/linux-namespaces.h: New file.
9024         * nat/linux-namespaces.c: Likewise.
9025         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
9026         (linux-namespaces.o): New rule.
9027         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
9028         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
9029         * config/arm/linux.mh (NATDEPFILES): Likewise.
9030         * config/i386/linux.mh (NATDEPFILES): Likewise.
9031         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9032         * config/ia64/linux.mh (NATDEPFILES): Likewise.
9033         * config/m32r/linux.mh (NATDEPFILES): Likewise.
9034         * config/m68k/linux.mh (NATDEPFILES): Likewise.
9035         * config/mips/linux.mh (NATDEPFILES): Likewise.
9036         * config/pa/linux.mh (NATDEPFILES): Likewise.
9037         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
9038         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
9039         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
9040         * config/s390/linux.mh (NATDEPFILES): Likewise.
9041         * config/sparc/linux.mh (NATDEPFILES): Likewise.
9042         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
9043         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
9044         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
9046 2015-06-10  Gary Benson <gbenson@redhat.com>
9048         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
9049         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
9050         (make_cleanup_close): Likewise.
9051         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
9052         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
9053         (make_cleanup_close): Likewise.
9055 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
9057         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
9058         from SuspendThread().
9060 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
9062         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
9063         from OutputDebugString.
9065 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
9066                         Mircea Gherzan  <mircea.gherzan@intel.com>
9068         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
9069         MPX_BT_MASK_32): New macros.
9070         (i386_mpx_set_bounds): New function that implements
9071         the command "set-mpx-bound".
9072         (i386_mpx_enabled): Helper function to test MPX availability.
9073         (i386_mpx_bd_base): Helper function to calculate the base directory
9074         address.
9075         (i386_mpx_get_bt_entry): Helper function to access a bound
9076         table entry.
9077         (i386_mpx_print_bounds): Effectively display bound information.
9078         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
9079         "show mpx".
9080         (_initialize_i386_tdep):
9081         Add "bound" to the commands "show mpx" and "set mpx" commands.
9082         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
9083         and "show mpx" commands.
9084         * NEWS: List new commands for MPX support.
9086 2015-06-09  Gary Benson <gbenson@redhat.com>
9088         * common/fileio.h (fileio_to_host_mode): New declaration.
9089         * common/fileio.c (fileio_to_host_mode): New Function.
9090         * inf-child.c (inf_child_fileio_open): Process mode argument
9091         with fileio_to_host_mode.
9093 2015-06-09  Gary Benson <gbenson@redhat.com>
9095         * common/fileio.c (fileio_mode_pack): Fix preprocessor
9096         conditional.
9098 2015-06-05  Gary Benson <gbenson@redhat.com>
9100         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
9101         * remote.c (remote_filesystem_is_local): ...here.
9103 2015-06-04  Yao Qi  <yao.qi@linaro.org>
9105         * gdbarch.c: Regenerate it.
9107 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9109         * arch-utils.c (default_infcall_munmap): New.
9110         * arch-utils.h (default_infcall_munmap): New declaration.
9111         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
9112         (munmap_list_free, munmap_listp_free_cleanup): New.
9113         (struct setup_sections_data): Add field munmap_list_headp.
9114         (setup_sections): Call munmap_list_add.
9115         (compile_object_load): New variable munmap_list_head, initialize
9116         setup_sections_data.munmap_list_headp, return munmap_list_head.
9117         * compile/compile-object-load.h (struct munmap_list): New declaration.
9118         (struct compile_module): Add field munmap_list_head.
9119         (munmap_list_free): New declaration.
9120         * compile/compile-object-run.c (struct do_module_cleanup): Add field
9121         munmap_list_head.
9122         (do_module_cleanup): Call munmap_list_free.
9123         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
9124         * gdbarch.c: Regenerate.
9125         * gdbarch.h: Regenerate.
9126         * gdbarch.sh (infcall_munmap): New.
9127         * linux-tdep.c (linux_infcall_munmap): New.
9128         (linux_init_abi): Install it.
9130 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
9132         PR gdb/15564
9133         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
9135 2015-06-02  Yao Qi  <yao.qi@linaro.org>
9137         * i386-linux-nat.c: Include linux-nat.h.
9139 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
9140             Jan Kratochvil  <jan.kratochvil@redhat.com>
9142         PR symtab/18392
9143         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
9144         assertion.
9145         * dwarf2loc.c (chain_candidate): Likewise.
9147 2015-06-01  Yao Qi  <yao.qi@linaro.org>
9149         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
9150         (store_vfp_regs): Use PTRACE_SETREGSET.
9152 2015-06-01  Yao Qi  <yao.qi@linaro.org>
9154         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
9155         (fetch_fpregs): Likewise.
9156         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
9157         (store_fpregs): Likewise.
9159 2015-06-01  Yao Qi  <yao.qi@linaro.org>
9161         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
9162         (fetch_regs): Likewise.
9163         (store_regs): Use PTRACE_SETREGSET.
9164         (store_register): Likewise.
9166 2015-06-01  Yao Qi  <yao.qi@linaro.org>
9168         * arm-linux-nat.c (arm_linux_read_description): Check whether
9169         kernel supports PTRACE_GETREGSET.
9171 2015-06-01  Yao Qi  <yao.qi@linaro.org>
9173         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
9174         * linux-nat.c: ... here.
9175         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
9176         to ...
9177         * linux-nat.h: ... here.
9179 2015-06-01  Yao Qi  <yao.qi@linaro.org>
9181         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
9182         * i386-linux-nat.c: Likewise.
9183         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
9184         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
9185         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9186         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
9187         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9189 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
9191         * go32-nat.c (go32_xfer_memory): Fix the return value to be
9192         compatible to what read_child and write_child return.  This
9193         unbreaks that DJGPP build of GDB which was broken since v7.7.
9195 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
9197         * MAINTAINERS (Write After Approval): Add Martin Galvan.
9199 2015-05-29  Roland McGrath  <mcgrathr@google.com>
9201         PR gdb/18464
9202         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
9203         rather than internal_error for an unrecognized value.
9205 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
9207         * xtensa-tdep.c (xtensa_pseudo_register_read)
9208         (xtensa_pseudo_register_write): Don't alias last pseudo register
9209         to a1.
9211 2015-05-28  Don Breazeal  <donb@codesourcery.com>
9213         * infrun.c (follow_fork_inferior): Ensure the use of
9214         process-style ptids (pid,0,0) in verbose/debug "Detaching"
9215         messages.
9217 2015-05-28  Doug Evans  <dje@google.com>
9219         * dwarf2read.c (record_line_ftype): Remove, duplicate.
9221 2015-05-28  Yao Qi  <yao.qi@linaro.org>
9223         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
9224         (arm_linux_fetch_inferior_registers): Use
9225         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
9226         (arm_linux_store_inferior_registers): Likewise.
9227         (arm_linux_read_description): Don't set
9228         arm_linux_has_wmmx_registers.
9229         * arm-tdep.c (arm_gdbarch_init): Set
9230         tdep->have_wmmx_registers according target descriptions.
9231         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
9232         field.
9234 2015-05-28  Yao Qi  <yao.qi@linaro.org>
9236         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
9237         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
9238         instead of arm_linux_vfp_register_count.
9239         (store_vfp_regs): Likewise.
9240         (arm_linux_fetch_inferior_registers): Likewise.
9241         (arm_linux_store_inferior_registers): Likewise.
9242         (arm_linux_read_description): Don't set
9243         arm_linux_vfp_register_count.
9244         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
9245         Adjust.
9246         * arm-tdep.c (arm_gdbarch_init): Add assert on
9247         vfp_register_count.
9248         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
9249         field to vfp_register_count.  All users updated.
9251 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
9253         * arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
9254         ELFOSABI_GNU binaries.
9256 2015-05-27  Doug Evans  <dje@google.com>
9258         * dwarf2read.c (lnp_state_machine): New typedef.
9259         (lnp_reader_state): New typedef.
9260         (dwarf_record_line_1): Renamed from dwarf_record_line.
9261         All callers updated.
9262         (dwarf_record_line): New function.
9263         (init_lnp_state_machine): New function.
9264         (check_line_address): Replace p_record_line parameter with state.
9265         All callers updated.
9266         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
9267         Update to record state in lnp_state_machine.
9269 2015-05-27  Doug Evans  <dje@google.com>
9271         * dwarf2read.c (record_line_ftype): New typedef.
9272         (check_line_address): New function.
9273         (dwarf_decode_lines_1): Call it.
9275 2015-05-27  Doug Evans  <dje@google.com>
9277         * NEWS: Mention "set debug dwarf-line".
9278         * dwarf2read.c (dwarf_line_debug): New static global.
9279         (add_include_dir): Add debug dwarf-line support.
9280         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
9281         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
9283 2015-05-27  Doug Evans  <dje@google.com>
9285         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
9286         All callers updated.
9287         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
9288         * cp-support.h (cp_lookup_nested_symbol): Update.
9290 2015-05-27  Doug Evans  <dje@google.com>
9292         PR symtab/18258
9293         * block.c (block_find_symbol): New function.
9294         (block_find_non_opaque_type): Ditto.
9295         (block_find_non_opaque_type_preferred): Ditto.
9296         * block.h (block_symbol_matcher_ftype): New typedef.
9297         (block_find_symbol): Declare.
9298         (block_find_non_opaque_type): Ditto.
9299         (block_find_non_opaque_type_preferred): Ditto.
9300         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
9301         * psymtab.c (psym_lookup_symbol): Ditto.
9302         * symtab.c (basic_lookup_transparent_type_1): New function.
9303         (basic_lookup_transparent_type): Call it.
9305 2015-05-27  Yao Qi  <yao.qi@linaro.org>
9307         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
9308         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
9310 2015-05-27  Yao Qi  <yao.qi@linaro.org>
9312         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
9313         before operator &&.
9314         (aarch64_record_load_store): Likewise.
9316 2015-05-26  Doug Evans  <dje@google.com>
9318         PR c++/18141, c++/18417.
9319         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
9320         a typedef.
9322 2015-05-26  Doug Evans  <dje@google.com>
9324         * NEWS: Add entries for command renamings.
9325         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
9326         All uses updated.
9327         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
9328         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
9329         All uses updated.
9330         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
9331         All callers updated.  Fix spelling of DWARF in help text.
9332         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
9333         All uses updated.
9334         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
9335         All uses updated.
9336         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
9337         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
9338         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
9339         All uses updated.
9340         (show_dwarf_always_disassemble): Renamed from
9341         show_dwarf2_always_disassemble.  All callers updated.
9342         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
9343         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
9344         "set/show dwarf max-cache-age".  Rename
9345         "set/show dwarf2 always-disassemble" to
9346         "set/show dwarf always-disassemble".  Rename
9347         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
9348         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
9350 2015-05-26  Doug Evans  <dje@google.com>
9352         PR python/18438
9353         * python/py-lazy-string.c (stpy_convert_to_value): Use
9354         gdbpy_gdb_memory_error not PyExc_MemoryError.
9355         (gdbpy_create_lazy_string_object): Ditto.
9357 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
9359         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
9361 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
9363         * tui/tui-regs.c (tui_reg_prev_command): New function.
9364         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
9365         * reggroups.c (reggroup_prev): New function.
9366         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
9368 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
9369             Yao Qi  <yao.qi@linaro.org>
9371         * aarch64-linux-tdep.c: Include linux-record.h and
9372         record-full.h.
9373         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
9374         (aarch64_syscall): New enum.
9375         (aarch64_canonicalize_syscall): New function.
9376         (aarch64_all_but_pc_registers_record): New function.
9377         (aarch64_linux_syscall_record): New function.
9378         (aarch64_linux_init_abi): Install AArch64 process record
9379         handler.  Update to handle syscall recording.
9380         * aarch64-tdep.c: Include record.h and record-full.h.
9381         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
9382         (struct aarch64_mem_r): Define.
9383         (aarch64_record_result): New enum.
9384         (struct insn_decode_record): Define.
9385         (insn_decode_record): New typedef.
9386         (aarch64_record_data_proc_reg): New function.
9387         (aarch64_record_data_proc_imm): New function.
9388         (aarch64_record_branch_except_sys): New function.
9389         (aarch64_record_load_store): New function.
9390         (aarch64_record_data_proc_simd_fp): New function.
9391         (aarch64_record_asimd_load_store): New function.
9392         (aarch64_record_decode_insn_handler): New function.
9393         (deallocate_reg_mem): New function.
9394         (aarch64_process_record): New function.
9395         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
9396         New field.
9397         (aarch64_process_record): New extern declaration.
9398         * configure.tgt: Add linux-record.o to gdb_target_obs.
9399         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
9401 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
9403         * NEWS: Add a note on process record-replay support on aarch64*-linux*
9404         targets.
9406 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
9408         * amd64-tdep.c: Replace in_function_epilogue_p with
9409         stack_frame_destroyed_p throughout.
9410         * arch-utils.c: Ditto.
9411         * arch-utils.h: Ditto.
9412         * arm-tdep.c: Ditto.
9413         * breakpoint.c: Ditto.
9414         * gdbarch.sh: Ditto.
9415         * hppa-tdep.c: Ditto.
9416         * i386-tdep.c: Ditto.
9417         * mips-tdep.c: Ditto.
9418         * nios2-tdep.c: Ditto.
9419         * rs6000-tdep.c: Ditto.
9420         * s390-linux-tdep.c: Ditto.
9421         * score-tdep.c: Ditto.
9422         * sh-tdep.c: Ditto.
9423         * sparc-tdep.c: Ditto.
9424         * sparc-tdep.h: Ditto.
9425         * sparc64-tdep.c: Ditto.
9426         * spu-tdep.c: Ditto.
9427         * tic6x-tdep.c: Ditto.
9428         * tilegx-tdep.c: Ditto.
9429         * xstormy16-tdep.c: Ditto.
9430         * gdbarch.c, gdbarch.h: Re-generated.
9432 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
9434         * NEWS: Mention 'tui enable' and 'tui disable'.
9435         * tui/tui.c (tui_enable_command): New function.
9436         (tui_disable_command): New function.
9437         (_initialize_tui): New function.
9439 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
9441         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
9443 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
9445         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
9446         buf_ptr is freed.
9448 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
9450         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
9451         into ...
9452         (tui_set_layout_for_display_command): ...here, before calling
9453         tui_set_layout.  Only set the layout if gdb has not already
9454         entered the TUI_FAILURE state.
9456 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
9458         * tui/tui-layout.c (layout_completer): New function.
9459         (_initialize_tui_layout): Set completer on layout command.
9461 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
9463         * tui/tui-layout.c (tui_set_layout): Remove
9464         tui_register_display_type parameter.  Remove all checking of this
9465         parameter, and reindent function.  Update header comment.
9466         (tui_set_layout_for_display_command): Rename to...
9467         (tui_set_layout_by_name): ...this, and don't check for different
9468         register class types, don't pass a tui_register_display_type to
9469         tui_set_layout.  Update header comment.
9470         (layout_names): Remove register set specific names.
9471         * tui/tui-layout.h (tui_set_layout): Remove
9472         tui_register_display_type parameter.
9473         * tui/tui.c (tui_rl_change_windows): Don't pass a
9474         tui_register_display_type to tui_set_layout.
9475         (tui_rl_delete_other_windows): Likewise.
9476         (tui_enable): Likewise.
9477         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
9478         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
9479         (TUI_GENERAL_REGS_NAME): Remove.
9480         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
9481         (TUI_SPECIAL_REGS_NAME): Remove.
9482         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
9483         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
9484         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
9485         (enum tui_register_display_type): Remove.
9486         (struct tui_layout_def): Remove regs_display_type and
9487         float_regs_display_type fields.
9488         (struct tui_data_info): Remove regs_display_type field.
9489         (tui_layout_command): Use new name for
9490         tui_set_layout_for_display_command.
9491         * tui/tui-data.c (layout_def): Don't initialise removed fields.
9492         (tui_clear_win_detail): Don't initialise removed fields of
9493         win_info.
9494         * tui/tui-regs.c (tui_show_registers): Use new name for
9495         tui_set_layout_for_display_command.
9496         * tui/tui.h (tui_set_layout_for_display_command): Rename
9497         declaration to...
9498         (tui_set_layout_by_name): ...this.
9499         * printcmd.c (display_command): Remove tui related layout call,
9500         and reindent.
9502 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
9504         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
9505         (handle_inferior_event): New function.
9507 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
9509         * ada-lang.c (to_fixed_array_type): Rename local variable
9510         typename into type_name.
9512 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9514         Fix ASAN crash for gdb.compile/compile.exp.
9515         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
9517 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9519         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
9520         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
9521         * compile/compile-object-load.c (setup_sections, compile_object_load):
9522         Likewise.
9523         * compile/compile.c (compile_to_object): Likewise.
9525 2015-05-16  Doug Evans  <xdje42@gmail.com>
9527         * NEWS: Mention support for unbuffered Guile memory ports.
9528         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
9529         (ioscm_lseek_address): Improve overflow calculation.
9530         (gdbscm_memory_port_fill_input): Add assert.
9531         (gdbscm_memory_port_write): Handle unbuffered ports.
9532         Handle large writes identical to Guile's fport_write.
9533         (gdbscm_memory_port_seek): Fix seeking past end check.
9534         (gdbscm_memory_port_close): Handle closing unbuffered port.
9535         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
9536         (ioscm_init_memory_port): Handle unbuffered ports.
9537         (ioscm_reinit_memory_port): Ditto.
9538         (ioscm_init_memory_port): Update size calculation.
9539         (gdbscm_open_memory): Support zero sized ports.
9541 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9543         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
9544         variable compiler warnings.
9546 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9548         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
9550 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9551             Phil Muldoon  <pmuldoon@redhat.com>
9553         * NEWS (Changes since GDB 7.9): Add compile print.
9554         * compile/compile-c-support.c (add_code_header, add_code_footer)
9555         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
9556         COMPILE_I_PRINT_VALUE_SCOPE.
9557         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
9558         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
9559         New.
9560         * compile/compile-object-load.c: Include block.h.
9561         (get_out_value_type): New function.
9562         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9563         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
9564         OUT_VALUE_TYPE.
9565         * compile/compile-object-load.h (struct compile_module): Add fields
9566         out_value_addr and out_value_type.
9567         * compile/compile-object-run.c: Include valprint.h and compile.h.
9568         (struct do_module_cleanup): Add fields out_value_addr and
9569         out_value_type.
9570         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9571         COMPILE_I_PRINT_VALUE_SCOPE.
9572         (compile_object_run): Propagate out_value_addr and out_value_type.
9573         Pass OUT_VALUE_ADDR.
9574         * compile/compile.c: Include valprint.h.
9575         (compile_print_value, compile_print_command): New functions.
9576         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
9577         (_initialize_compile): Update compile code help text.  Install
9578         compile_print_command.
9579         * compile/compile.h (compile_print_value): New prototype.
9580         * defs.h (enum compile_i_scope_types): Add
9581         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
9583 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9585         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
9586         Rely on its parameter count.
9587         (compile_object_load): Replace lookup_minimal_symbol_text by
9588         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
9589         return value.
9590         * compile/compile-object-load.h (struct compile_module): Replace
9591         func_addr by func_sym.
9592         * compile/compile-object-run.c: Include block.h.
9593         (compile_object_run): Reset module variable after it is freed.  Use
9594         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
9596 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9598         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
9599         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
9600         (c_compute_program): Call generate_register_struct after typedefs.
9601         * compile/compile-loc2c.c (push, pushf_register_address)
9602         (pushf_register): Cast to GCC_UINTPTR.
9603         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
9604         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
9605         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
9606         * compile/compile.c (_initialize_compile): Enable warnings for
9607         COMPILE_ARGS.
9609 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9611         * cli/cli-script.c (execute_control_command): Update
9612         eval_compile_command caller.
9613         * compile/compile-object-load.c (compile_object_load): Add parameters
9614         scope and scope_data.  Set them.
9615         * compile/compile-object-load.h (struct compile_module): Add fields
9616         scope and scope_data.
9617         (compile_object_load): Add parameters scope and scope_data.
9618         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
9619         scope and scope_data.
9620         (compile_object_run): Propagate the fields scope and scope_data.
9621         * compile/compile.c (compile_file_command, compile_code_command):
9622         Update eval_compile_command callers.
9623         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
9624         * compile/compile.h (eval_compile_command): Add parameter scope_data.
9625         * defs.h (struct command_line): Add field scope_data.
9627 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9629         * printcmd.c (struct format_data): Move it to valprint.h.
9630         (print_command_parse_format, print_value): New functions from ...
9631         (print_command_1): ... here.  Call them.
9632         * valprint.h (struct format_data): Move it here from printcmd.c.
9633         (print_command_parse_format, print_value): New declarations.
9635 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9637         * compile/compile-object-load.c (compile_object_load): Add
9638         COMPILE_DEBUG message.
9640 2015-05-15  Jerome Guitton  <guitton@adacore.com>
9642         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
9643         index to get element instead of enum value.
9644         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
9645         of index to compute length, but enum values to compute bounds.
9646         (ada_array_length): Use enum position of index instead of enum value.
9647         (pos_atr): Move position computation to...
9648         (ada_evaluate_subexp): Use enum values to compute bounds.
9649         * gdbtypes.c (discrete_position): ...this new function.
9650         * gdbtypes.h (discrete_position): New function declaration.
9651         * valprint.c (val_print_array_elements): Call discrete_position
9652         to handle array indexed by non-contiguous enumeration types.
9654 2015-05-15  Jerome Guitton  <guitton@adacore.com>
9656         * ada-lang.c (find_parallel_type_by_descriptive_type):
9657         Go through typedefs during lookup.
9658         (to_fixed_array_type): Add support for non-bit packed arrays
9659         as variable-length fields.
9661 2015-05-15  Pedro Alves  <palves@redhat.com>
9662             Simon Marchi  <simon.marchi@ericsson.com>
9664         * event-loop.c (gdb_notifier) <next_file_handler,
9665         next_poll_fds_index>: New fields.
9666         (get_next_file_handler_to_handle_and_advance): New function.
9667         (delete_file_handler): If deleting the next file handler to
9668         handle, advance to the next file handler.
9669         (gdb_wait_for_event): Bail early if no event fired.  Poll file
9670         handlers in round-robin fashion.
9672 2015-05-15  Pedro Alves  <palves@redhat.com>
9674         * linux-tdep.c (linux_find_memory_regions_full): Rename local
9675         'private' to 'priv'.
9677 2015-05-15  Pedro Alves  <palves@redhat.com>
9679         * nat/linux-nat.h: Include "target/waitstatus.h".
9681 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
9683         * python/py-unwind.c (struct reg_info): Move out of ...
9684         (struct cached_frame_info): ... this scope.
9685         (pending_frame_object_type, unwind_info_object_type): Make extern.
9687 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
9689         * ada-lang.c (ada_value_primitive_packed_val): Make sure
9690         accumSize is never negative.
9692 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
9694         * tui/tui-command.c: Remove include of <ctype.h>.
9695         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
9697 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
9699         * dwarf2read.c (die_needs_namespace): Return 1 for
9700         DW_TAG_inlined_subroutine.
9702 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9704         * regcache.c (regcache_cpy_no_passthrough): New declaration.
9705         (regcache_cpy_no_passthrough): Make it static, add function comment.
9706         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
9707         (regcache_cpy_no_passthrough): Remove declaration.
9709 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9711         * gdbthread.h (struct thread_control_state): Update comment for
9712         proceed_to_finish.
9713         * infcall.c (run_inferior_call): Update comment about
9714         proceed_to_finish.
9715         * infcmd.c (get_return_value): Update comment about stop_registers.
9716         (finish_forward): Update comment about proceed_to_finish.
9717         * infrun.c (stop_registers): Remove.
9718         (clear_proceed_status, normal_stop): Remove stop_registers handling.
9719         * infrun.h (stop_registers): Remove.
9721 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9723         * infcall.c (struct dummy_frame_context_saver)
9724         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
9725         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9726         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9727         New.
9728         (call_function_by_hand_dummy): Move discard_cleanups of
9729         inf_status_cleanup before dummy_frame_push.  Call
9730         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
9731         Use dummy_frame_context_saver_get_regs instead of stop_registers.
9732         * infcall.h (struct dummy_frame_context_saver)
9733         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9734         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9735         New declarations.
9736         * infcmd.c: Include infcall.h.
9737         (get_return_value): Add parameter ctx_saver, use it instead of
9738         stop_registers.
9739         (print_return_value): Add parameter ctx_saver, pass it.
9740         (struct finish_command_continuation_args): Add field ctx_saver.
9741         (finish_command_continuation): Update print_return_value caller.
9742         (finish_command_continuation_free_arg): Free also ctx_saver.
9743         (finish_forward): Call dummy_frame_context_saver_setup.
9744         * inferior.h (struct dummy_frame_context_saver): New declaration.
9745         (get_return_value): Add parameter ctx_saver.
9746         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
9747         get_return_value caller.
9749 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9751         * dummy-frame.c (struct dummy_frame_dtor_list): New.
9752         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
9753         (remove_dummy_frame): Process dtor_list.
9754         (pop_dummy_frame): Process dtor_list.
9755         (register_dummy_frame_dtor): Maintain dtor_list.
9756         (find_dummy_frame_dtor): Handle dtor_list.
9757         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
9758         Update comments.
9760 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9762         * compile/compile-object-run.c (do_module_cleanup): Add parameter
9763         registers_valid.
9764         (compile_object_run): Update do_module_cleanup caller.
9765         * dummy-frame.c: Include infcall.h.
9766         (struct dummy_frame): Update dtor comment.
9767         (remove_dummy_frame): Call dtor.
9768         (pop_dummy_frame): Update dtor caller.
9769         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
9770         registers_valid.
9772 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
9774         GDB 7.9.1 released.
9776 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
9778         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
9779         Xmethods now being able to specify a result type to that new
9780         sectioin.
9782 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
9784         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
9785         first before resizing the window.
9786         * tui/tui.c (tui_enable): Likewise.
9788 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9790         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
9791         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
9792         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
9793         dummy_dtor parameter.
9794         * infcall.h: Include dummy-frame.h.
9795         (call_function_by_hand_dummy_dtor_ftype): Remove.
9796         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
9797         parameter.
9799 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
9801         PR gdb/17820
9802         * top.c (history_size_setshow_var): Change type to signed.
9803         Initialize to -2.  Update documentation.
9804         (set_readline_history_size): Define.
9805         (set_history_size_command): Use it.  Remove logic for handling
9806         out-of-range sizes.
9807         (init_history): Use set_readline_history_size().  Test for a
9808         value of -2 instead of 0 when determining whether to set a
9809         default history size.
9810         (init_main): Decode the argument of the "size" command as a
9811         zuinteger_unlimited.
9813 2015-05-12  Doug Evans  <dje@google.com>
9815         * dwarf2read.c (struct file_entry): Tweak comments.
9816         (get_debug_line_section): Tweak comments.
9818 2015-05-12  Don Breazeal  <donb@codesourcery.com>
9820         * NEWS: Announce fork support in the RSP and support
9821         for fork debugging in extended mode.
9823 2015-05-12  Don Breazeal  <donb@codesourcery.com>
9825         * remote.c (remote_insert_fork_catchpoint): New function.
9826         (remote_remove_fork_catchpoint): New function.
9827         (remote_insert_vfork_catchpoint): New function.
9828         (remote_remove_vfork_catchpoint): New function.
9829         (pending_fork_parent_callback): New function.
9830         (remove_new_fork_child): New function.
9831         (remote_update_thread_list): Call remote_notif_get_pending_events
9832         and remove_new_fork_child.
9833         (extended_remote_kill): Kill fork child when killing the
9834         parent before follow_fork completes.
9835         (init_extended_remote_ops): Initialize target vector with
9836         new fork catchpoint functions.
9838 2015-05-12  Don Breazeal  <donb@codesourcery.com>
9840         * remote.c (remove_vfork_event_p): New function.
9841         (remote_follow_fork): Add vfork event type to event checking.
9842         (remote_parse_stop_reply): New stop reasons "vfork" and
9843         "vforkdone" for RSP 'T' Stop Reply Packet.
9845 2015-05-12  Don Breazeal  <donb@codesourcery.com>
9847         * linux-nat.c (linux_nat_ptrace_options): New function.
9848         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
9849         Call linux_nat_ptrace_options and use different argument to
9850         linux_enable_event_reporting.
9851         (_initialize_linux_nat): Delete call to
9852         linux_ptrace_set_additional_flags.
9853         * nat/linux-ptrace.c (current_ptrace_options): Rename to
9854         supported_ptrace_options.
9855         (additional_flags): Delete variable.
9856         (linux_check_ptrace_features): Use supported_ptrace_options.
9857         (linux_test_for_tracesysgood, linux_test_for_tracefork):
9858         Likewise, and remove additional_flags check.
9859         (linux_enable_event_reporting): Change 'attached' argument to
9860         'options'.  Use supported_ptrace_options.
9861         (ptrace_supports_feature): Change comment.  Use
9862         supported_ptrace_options.
9863         (linux_ptrace_set_additional_flags): Delete function.
9864         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
9865         Delete function prototype.
9866         * remote.c (remote_fork_event_p): New function.
9867         (remote_detach_pid): New function.
9868         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
9869         if doing detach-on-fork.
9870         (remote_follow_fork): New function.
9871         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
9872         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
9873         (init_extended_remote_ops): Initialize to_follow_fork.
9875 2015-05-12  Don Breazeal  <donb@codesourcery.com>
9877         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
9878         from static to extern.
9879         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
9880         * remote.c (anonymous enum): <PACKET_fork_event_feature,
9881         * PACKET_vfork_event_feature>: New enumeration constants.
9882         (remote_protocol_features): Add table entries for new packets.
9883         (remote_query_supported): Add new feature queries to qSupported
9884         packet.
9886 2015-05-12  Gary Benson <gbenson@redhat.com>
9888         * remote.c (remote_add_inferior): Call exec_file_locate_attach
9889         for fake PIDs as well as real ones.
9890         (remote_pid_to_exec_file): Send empty annex if PID is fake.
9892 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
9894         * NEWS (Python Scripting): Mention the new gdb.Value methods.
9895         * python/py-value.c (valpy_reference_value): New function.
9896         (valpy_const_value): Likewise.
9897         (value_object_methods): Add new methods.
9898         * value.c (make_cv_value): New function.
9899         * value.h (make_cv_value): Declare.
9901 2015-05-08  Yao Qi  <yao@codesourcery.com>
9902             Sandra Loosemore  <sandra@codesourcery.com>
9904         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
9905         to 'lh->include_dirs' before accessing to it.
9906         (psymtab_include_file_name): Likewise.
9907         (dwarf_decode_lines_1): Likewise.
9908         (dwarf_decode_lines): Likewise.
9909         (file_file_name): Likewise.
9911 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
9913         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
9914         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
9915         (nios2_linux_rt_sigreturn_init): Adjust base address of
9916         register save area.
9918 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
9920         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
9921         "trap 31" as the breakpoint instruction on all targets.
9923 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9925         * infcmd.c (print_return_value): Remove unused declaration.
9927 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
9929         * dwarf2read.c (attr_to_dynamic_prop)
9930         <DW_AT_data_member_location>: Use read_type_die isntead of
9931         get_die_type.
9933 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
9935         * ada-lang.c (ada_convert_actual): Add handling of formals
9936         passed inside an aligner type.
9938 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
9940         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
9942 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
9944         PR python/18291
9945         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
9946         Print xmethod matcher status.
9948 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9950         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
9951         register in the regcache when treating the PSWM register, and vice
9952         versa.
9954 2015-05-07  Gary Benson <gbenson@redhat.com>
9956         * linux-thread-db.c (struct thread_db_info)
9957         <td_ta_map_id2thr_p>: Remove field.
9958         (try_thread_db_load_1): Remove initialization for the above.
9960 2015-05-07  Gary Benson <gbenson@redhat.com>
9962         * linux-thread-db.c (struct thread_db_info)
9963         <td_thr_validate_p>: Remove field.
9964         (try_thread_db_load_1): Remove initialization for the above.
9966 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
9968         * compile/compile-object-load.c (compile_object_load): Support
9969         mst_text_gnu_ifunc.
9971 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
9973         * compile/compile.c (compile_to_object): Make the cmd_string parameter
9974         const.  Use new variables for the const compatibility.
9975         (eval_compile_command): Make the cmd_string parameter const.
9976         * compile/compile.h (eval_compile_command): Make the cmd_string
9977         parameter const.
9979 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
9981         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
9982         comment.
9983         * top.c (deprecated_init_ui_hook): Delete.
9984         (gdb_init): Remove handling of deprecated_init_ui_hook.
9985         * interps.c (clear_interpreter_hooks): Remove handling of
9986         deprecated_init_ui_hook.
9987         * main.c (captured_main): Update comment.
9989 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
9991         * solib.c (_initialize_solib): Add "info dll" alias creation.
9992         * windows-nat.c (set_windows_aliases): Delete.
9993         (_initialize_windows_nat): Remove deprecated_init_ui_hook
9994         assignment.
9995         * NEWS: Add news entry about "info dll" now being available
9996         on all platforms.
9998 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10000         * ada-lang.c (value_assign_to_component): Reformat and improve
10001         documentation. Remove all trailing spaces.
10003 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10005         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
10006         Stop counting inlined frames as soon as an out-of-line function
10007         is found.
10009 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
10011         * dwarf2read.c (inherit_abstract_dies): Skip
10012         DW_TAG_GNU_call_site dies while inheriting children of an
10013         abstract DIE into a scope.
10014         (read_lexical_block_scope): Inherit abstract DIE's for
10015         lexical scopes.
10017 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10019         * ada-valprint.c (val_print_packed_array_elements): Delete
10020         variable "len".  Add a type-length check when comparing two
10021         consecutive elements of the array.  Use the element's actual
10022         length in call to value_contents_eq.
10023         * ada-lang.c (ada_value_primitive_packed_val): Always return
10024         a value whose type has been resolved.
10026 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10028         * ada-lang.c (ada_value_primitive_packed_val): Recompute
10029         BIT_SIZE and LEN if the size of the resolved type is smaller
10030         than BIT_SIZE * HOST_CHAR_BIT.
10032 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10034         * ada-lang.c (ada_value_primitive_packed_val): Use a more
10035         correct address in call to value_at.  Adjust call to
10036         value_address accordingly.
10038 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10040         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
10041         to print it.
10043 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10045         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
10046         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
10047         pinfo->valaddr.
10048         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
10049         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
10050         (resolve_dynamic_type_internal): Set pinfo.valaddr.
10051         Add handling of addr_stack->valaddr.
10052         (resolve_dynamic_type): Add "valaddr" parameter.
10053         Set pinfo.valaddr field.
10054         * ada-lang.c (ada_discrete_type_high_bound): Update call to
10055         resolve_dynamic_type.
10056         (ada_discrete_type_low_bound): Likewise.
10057         * findvar.c (default_read_var_value): Likewise.
10058         * value.c (value_from_contents_and_address): Likewise.
10060 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
10062         * gdbtypes.c (resolve_dynamic_array): Use
10063         create_array_type_with_stride instead of create_array_type.
10065 2015-04-30  DJ Delorie  <dj@redhat.com>
10067         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
10068         rl78_decode_opcode
10070 2015-04-29  Doug Evans  <dje@google.com>
10072         PR python/18285
10073         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
10074         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
10075         EVAL_AVOID_SIDE_EFFECTS for xmethods.
10076         * extension-priv.h (struct extension_language_ops)
10077         <get_xmethod_result_type>: New member.
10078         * extension.c (get_xmethod_result_type): New function.
10079         * extension.h (get_xmethod_result_type): Declare.
10080         * python/py-xmethods.c (get_result_type_method_name): New static
10081         global.
10082         (py_get_result_type_method_name): Ditto.
10083         (gdbpy_get_xmethod_result_type): New function.
10084         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
10085         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
10086         * python/python.c (python_extension_ops): Add
10087         gdbpy_get_xmethod_result_type.
10088         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
10089         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
10090         xmethods.
10091         (value_x_unop): Ditto.
10092         * value.c (result_type_of_xmethod): New function.
10093         * value.h (result_type_of_xmethod): Declare.
10095 2015-04-29  Gary Benson <gbenson@redhat.com>
10097         * solib.c (solib_find_1): Allow fd argument to be NULL.
10098         (exec_file_find): Update comment.
10099         (solib_find): Likewise.
10100         * exec.c (exec_file_locate_attach): Use NULL as fd
10101         argument to exec_file_find to avoid having to close
10102         the opened file.
10103         * infrun.c (follow_exec): Likewise.
10105 2015-04-28  Doug Evans  <dje@google.com>
10107         PR python/18299
10108         * python/lib/gdb/printing.py (register_pretty_printer): Handle
10109         name or __name__ attributes.  Handle gdb module as first argument.
10111 2015-04-28  Doug Evans  <dje@google.com>
10113         PR python/18089
10114         * python/py-prettyprint.c (print_children): Verify result of children
10115         iterator.  Provide better error message.
10116         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
10117         * python/python.c (gdbpy_print_python_errors_p): New function.
10119 2015-04-28  Doug Evans  <dje@google.com>
10121         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
10123 2015-04-28  Sasha Smundak  <asmundak@google.com>
10125         * NEWS: Mention gdb.Type.optimized_out method.
10126         * python/py-type.c (typy_optimized_out):  New function.
10128 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
10130         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10132 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
10134         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
10135         (initialize_utils): Move call of init_page_info() to ...
10136         * top.c (gdb_init): ... here.
10138 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
10140         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
10141         (tui_sigwinch_handler): Still update our idea of
10142         the terminal's width and height even when TUI is not active.
10144 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
10146         * utils.h (set_screen_width_and_height): Declare.
10147         * utils.c (set_screen_width_and_height): Define.
10148         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
10150 2015-04-28  Gary Benson <gbenson@redhat.com>
10152         * infrun.c (solist.h): New include.
10153         (follow_exec): Use exec_file_find to prefix execd_pathname
10154         with gdb_sysroot.
10156 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
10158         * tui/tui-source.c (tui_set_source_content): Avoid calling
10159         strcpy() when offset is 0.
10161 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
10163         PR gdb/18155
10164         * tui/tui-data.c (tui_free_window): Don't free the locator
10165         window when passed an SRC_WIN or a DISASSEM_WIN.
10167 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
10169         * tui/tui-data.h (struct tui_win_element): Forward-declare.
10170         (tui_win_content): Move declaration.
10171         (struct tui_gen_win_info): Give 'content' field the
10172         type tui_win_content.
10173         * tui/tui-data.c (init_content_element): Remove redundant and
10174         erroneous casts.
10175         (tui_add_content_elements): Remove erroneous cast.
10176         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
10177         casts.
10178         (tui_get_begin_asm_address): Likewise.
10179         * tui/tui-regs.c (tui_show_registers): Likewise.
10180         (tui_show_register_group): Likewise.
10181         (tui_display_registers_from): Likewise.
10182         (tui_check_register_values): Likewise.
10183         * tui/tui-source.c (tui_set_source_content): Likewise.
10184         (tui_set_source_content_nil): Likewise.
10185         (tui_source_is_displayed): Likewise.
10186         * tui/tui-stack.c (tui_show_locator_content): Likewise.
10187         (tui_set_locator_fullname): Likewise.
10188         (tui_set_locator_info): Likewise.
10189         (tui_show_frame_info): Likewise.
10190         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
10191         (tui_show_source_line): Likewise.
10192         (tui_horizontal_source_scroll): Likewise.
10193         (tui_update_breakpoint_info): Likewise.
10194         (tui_set_exec_info_content): Likewise.
10195         (tui_show_exec_info_content): Likewise.
10196         (tui_alloc_source_buffer): Likewise.
10197         (tui_line_is_displayed): Likewise.
10198         (tui_addr_is_displayed): Likewise.
10200 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
10202         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
10203         event if PL_FLAG_EXEC is set.
10204         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
10205         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
10206         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
10207         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
10208         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
10210 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
10212         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
10213         [TDP_RFPPWAIT] New variable fbsd_pending_children.
10214         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
10215         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
10216         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
10217         [PT_LWPINFO] (fbsd_wait): New function.
10218         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
10219         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
10220         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
10221         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
10222         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
10223         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
10224         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
10225         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
10226         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
10227         "fbsd_wait".
10228         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
10229         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
10230         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
10231         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
10232         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
10233         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
10234         Set "to_post_attach" to "fbsd_post_attach".
10236 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
10238         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
10239         (fbsd_find_memory_regions): Mark static.
10240         (fbsd_nat_add_target): New function.
10241         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
10242         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
10243         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
10244         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
10245         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
10246         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
10248 2015-04-27  Gary Benson <gbenson@redhat.com>
10250         * objfiles.c (allocate_objfile): Do not attempt to expand name
10251         if name is a "target:" filename.
10252         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
10253         to load auto-load scripts for objfiles with "target:" filenames.
10255 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10257         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
10258         (enum s390_vector_abi_kind): New enum.
10259         (struct gdbarch_tdep)<vector_abi>: New field.
10260         (s390_effective_inner_type): Add parameter min_size.  Stop
10261         unwrapping if the inner type is smaller than min_size.
10262         (s390_function_arg_float): Adjust call to
10263         s390_effective_inner_type.
10264         (s390_function_arg_vector): New function.
10265         (s390_function_arg_integer): Adjust comment.
10266         (struct s390_arg_state)<vr>: New field.
10267         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
10268         arguments according to vector ABI when appropriate.
10269         (s390_push_dummy_call): Initialize the argument state's field
10270         'vr'.  Adjust calls to s390_handle_arg.
10271         (s390_register_return_value): Handle vector return values.
10272         (s390_return_value): Apply the "register" return value convention
10273         to a vector when appropriate.
10274         (s390_gdbarch_init): Initialize tdep->vector_abi.
10275         * NEWS: Announce S390 vector ABI support.
10277 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10279         * s390-linux-tdep.c (s390_return_value_convention): Remove
10280         function.  Inline its logic...
10281         (s390_return_value): ...here.  Instead, move the handling of the
10282         "register" return value convention...
10283         (s390_register_return_value): ...here.  New function.
10285 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10287         * s390-linux-tdep.c
10288         (is_float_singleton): Remove function.  Move the "singleton" part
10289         of the logic...
10290         (s390_effective_inner_type): ...here.  New function.
10291         (is_float_like): Remove function.  Inline its logic...
10292         (s390_function_arg_float): ...here.
10293         (is_pointer_like, is_integer_like, is_struct_like): Remove
10294         functions.  Inline their logic...
10295         (s390_function_arg_integer): ...here.
10296         (s390_function_arg_pass_by_reference): Remove function.
10297         (extend_simple_arg): Remove function.
10298         (alignment_of): Remove function.
10299         (struct s390_arg_state): New structure.
10300         (s390_handle_arg): New function.
10301         (s390_push_dummy_call): Move parameter placement logic to the new
10302         function s390_handle_arg.  Call it for calculating the stack area
10303         sizes first, and again for actually writing the parameters.
10305 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10307         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
10308           false if the argument is zero.
10310 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
10312         * ada-lang.c (template_to_static_fixed_type): Return input type
10313         when it is already fixed.  Cache the input type itself when not
10314         creating a static fixed copy.  Make it explicit that we never
10315         molestate the input type.
10316         * gdbtypes.c (resolve_dynamic_struct): Reset the
10317         TYPE_TARGET_TYPE field for resolved copies.
10319 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
10321         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
10322         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
10323         (template_to_static_fixed_type): Call ada_check_typedef only
10324         when necessary.
10326 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
10328         * cli/cli-dump.c (srec_dump_command): Add internationalization
10329         mark ups.
10330         (ihex_dump_command): Likewise.
10331         (tekhex_dump_command): Likewise.
10332         (binary_dump_command): Likewise.
10333         (binary_append_command): Likewise.
10335 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
10337         * cli/cli-dump.c (verilog_cmdlist): New variable.
10338         (dump_verilog_memory): New function.
10339         (dump_verilog_value): New function.
10340         (verilog_dump_command): New function.
10341         (_initialize_cli_dump): Add new commands to support verilog dump
10342         format.
10343         * NEWS: Add entry for "dump verilog".
10345 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
10347         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
10348         descriptive type when there is none.
10350 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
10352         * tui/tui-win.c (tui_async_resize_screen): Call
10353         rl_resize_terminal().
10355 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
10357         * windows-nat.c (handle_output_debug_string): Don't change
10358         current_event.dwThreadId.
10359         (get_windows_debug_event): Use thread_id, rather than relying on
10360         current_event.dwThreadId being changed.
10362 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
10364         * windows-nat.c (windows_continue): Report an error if
10365         ContinueDebugEvent() fails.
10367 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
10369         * windows-nat.c (windows_resume): Fix misspelling in debug output.
10371 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
10373         * windows-nat.c (get_windows_debug_event): Replace retval with
10374         thread_id throughout.  Update stale comment.
10376 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
10378         * windows-nat.c (get_windows_debug_event): Don't use ternary
10379         conditional operator.
10381 2015-04-21  Pierre Muller  <muller@sourceware.org>
10383         PR pascal/17815
10384         p-exp.y (yylex): Reorganize code to return the matched pattern
10385         for a field of this.
10387 2015-04-21  Gary Benson <gbenson@redhat.com>
10389         * common/fileio.h (fileio_to_host_openflags): New declaration.
10390         * common/fileio.c (fcntl.h): New include.
10391         (fileio_to_host_openflags): New function, factored out from...
10392         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
10393         Single use updated.
10395 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
10397         * rl78-tdep.c (RL78_SP_ADDR): Define.
10398         (opc_reg_to_gdb_regnum): New static function.
10399         (rl78_analyze_prologue): Recognize instructions forming slightly
10400         more interesting prologues.
10402 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
10404         Revert:
10405         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
10406         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10407         TYPE_CODE_REF types so that they are not considered as dynamic
10408         depending on the referenced type.
10409         (resolve_dynamic_type_internal): Likewise.
10411 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
10413         Revert:
10414         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
10415         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10416         "top_level" parameter.
10417         (resolve_dynamic_type_internal): Remove the unused "top_level"
10418         parameter.  Update call to is_dynamic_type_internal.
10419         (is_dynamic_type): Update call to is_dynamic_type_internal.
10420         (resolve_dynamic_range): Update call to
10421         resolve_dynamic_type_internal.
10422         (resolve_dynamic_union): Likewise.
10423         (resolve_dynamic_struct): Likewise.
10424         (resolve_dynamic_type): Likewise.
10426 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
10428         * breakpoint.c (update_dprintf_command_list): Remove duplicated
10429         xmalloc.
10431 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
10433         * reply_mig_hack.awk: Robustify parsing.
10435         * reply_mig_hack.awk: Don't bother to declare an intermediate
10436         function pointer variable.
10438 2015-04-17  Doug Evans  <dje@google.com>
10440         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
10441         to "exec_displacement" to avoid confusion with inner use of the name.
10443 2015-04-17  Pedro Alves  <palves@redhat.com>
10445         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
10446         if HW point of TYPE isn't supported.
10448 2015-04-17  Yao Qi  <yao.qi@linaro.org>
10449             Pedro Alves  <palves@redhat.com>
10451         * target.h (target_can_use_hardware_watchpoint): Update comments.
10452         Remove trailing ";".
10454 2015-04-17  Gary Benson <gbenson@redhat.com>
10456         * remote.c (remote_add_inferior): New argument try_open_exec.
10457         If nonzero, attempt to open the inferior's executable file as
10458         the main executable if no main executable is open already.
10459         All callers updated.
10460         * NEWS: Mention that GDB now supports automatic location and
10461         retrieval of executable + files from remote targets.
10463 2015-04-17  Gary Benson <gbenson@redhat.com>
10465         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
10466         * remote.c (PACKET_qXfer_exec_file): Likewise.
10467         (remote_protocol_features): Register the
10468         "qXfer:exec-file:read" feature.
10469         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
10470         (remote_pid_to_exec_file): New function.
10471         (init_remote_ops): Initialize to_pid_to_exec_file.
10472         (_initialize_remote): Register new "set/show remote
10473         pid-to-exec-file-packet" command.
10474         * NEWS: Announce new qXfer:exec-file:read packet.
10476 2015-04-17  Gary Benson <gbenson@redhat.com>
10478         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
10479         New declaration.
10480         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
10481         New function, factored out from...
10482         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
10484 2015-04-17  Gary Benson <gbenson@redhat.com>
10486         * exec.c (solist.h): New include.
10487         (exec_file_locate_attach): Prefix absolute executable
10488         paths with gdb_sysroot if set.
10489         * NEWS: Mention that executable paths may be prepended
10490         with sysroot.
10492 2015-04-17  Gary Benson <gbenson@redhat.com>
10494         * solist.h (exec_file_find): New declaration.
10495         * solib.c (solib_find_1): New function, factored out from...
10496         (solib_find): ...here.
10497         (exec_file_find): New function.
10499 2015-04-17  Gary Benson <gbenson@redhat.com>
10501         * gdbcore.h (exec_file_locate_attach): New declaration.
10502         * exec.c (exec_file_locate_attach): New function, factored
10503         out from...
10504         * infcmd.c (attach_command_post_wait): ...here.
10506 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
10508         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
10510 2015-04-16  Yao Qi  <yao.qi@linaro.org>
10512         * infrun.c (maybe_software_singlestep): Declare.
10513         (displaced_step_fixup): Call maybe_software_singlestep.
10515 2015-04-15  Doug Evans  <dje@google.com>
10517         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
10519 2015-04-15  Doug Evans  <dje@google.com>
10521         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
10523 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
10525         * python/lib/gdb/command/unwinders.py: Add parentheses.
10527 2015-04-15  Yao Qi  <yao.qi@linaro.org>
10529         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
10531 2015-04-15  Yao Qi  <yao.qi@linaro.org>
10533         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
10535 2015-04-15  Yao Qi  <yao.qi@linaro.org>
10537         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
10538         dsc->insn_size instead of 4.
10540 2015-04-14  Gary Benson <gbenson@redhat.com>
10542         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
10543         * minidebug.c (lzma_stat): Likewise.
10544         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
10545         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
10547 2015-04-13  Stan Shebs  <stanshebs@google.com>
10549         * MAINTAINERS: Update my email address.
10551 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
10553         * amd64-tdep.c (amd64_target_description): New function.
10554         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
10555         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
10556         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10557         x86 extended save area.
10558         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10559         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
10560         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
10561         (_initialize_amd64fbsd_nat): Set "to_read_description" to
10562         "amd64fbsd_read_description".
10563         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
10564         (amd64fbsd_supply_xstateregset): New function.
10565         (amd64fbsd_collect_xstateregset): New function.
10566         Add "amd64fbsd_xstateregset".
10567         (amd64fbsd_iterate_over_regset_sections): New function.
10568         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
10569         "I386_FBSD_XSAVE_XCR0_OFFSET".
10570         Add "iterate_over_regset_sections" gdbarch method.
10571         Add "core_read_description" gdbarch method.
10572         * i386-tdep.c (i386_target_description): New function.
10573         * i386-tdep.h: Export i386_target_description and tdesc_i386.
10574         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
10575         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10576         x86 extended save area.
10577         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10578         * i386bsd-nat.h: Export i386bsd_xsave_len.
10579         * i386fbsd-nat.c (i386fbsd_read_description): New function.
10580         (_initialize_i386fbsd_nat): Set "to_read_description" to
10581         "i386fbsd_read_description".
10582         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
10583         (i386fbsd_core_read_description): New function.
10584         (i386fbsd_supply_xstateregset): New function.
10585         (i386fbsd_collect_xstateregset): New function.
10586         Add "i386fbsd_xstateregset".
10587         (i386fbsd_iterate_over_regset_sections): New function.
10588         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
10589         "I386_FBSD_XSAVE_XCR0_OFFSET".
10590         Add "iterate_over_regset_sections" gdbarch method.
10591         Add "core_read_description" gdbarch method.
10592         * i386fbsd-tdep.h: New file.
10594 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10596         * NEWS (Changes since GDB 7.9): Add removed -xdb.
10597         * breakpoint.c (command_line_is_silent): Remove xdb_commands
10598         conditional.
10599         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
10600         and lb.
10601         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
10602         va.
10603         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
10604         conditional.
10605         * defs.h (xdb_commands): Remove declaration.
10606         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
10607         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
10608         * infcmd.c (run_no_args_command, go_command): Remove.
10609         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
10610         * infrun.c (xdb_handle_command): Remove.
10611         (_initialize_infrun): Remove xdb_commands for lz and z.
10612         * main.c (xdb_commands): Remove variable.
10613         (captured_main): Remove "xdb" from long_options.
10614         (print_gdb_help): Remove --xdb from help.
10615         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
10616         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
10617         * stack.c (backtrace_full_command, args_plus_locals_info)
10618         (current_frame_command): Remove.
10619         (_initialize_stack): Remove xdb_commands for t, T and l.
10620         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
10621         * thread.c (_initialize_thread): Remove xdb_commands condition.
10622         * tui/tui-layout.c (tui_toggle_layout_command)
10623         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
10624         (_initialize_tui_layout): Remove xdb_commands for td and ts.
10625         * tui/tui-regs.c (tui_scroll_regs_forward_command)
10626         (tui_scroll_regs_backward_command): Remove.
10627         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
10628         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
10629         (_initialize_tui_win): Remove xdb_commands for U and w.
10630         * utils.c (pagination_on_command, pagination_off_command): Remove.
10631         (initialize_utils): Remove xdb_commands for am and sm.
10633 2015-04-10  Pedro Alves  <palves@redhat.com>
10635         * infrun.c (displaced_step_fixup): Switch to the event ptid
10636         earlier.  If the thread stopped for a watchpoint and the
10637         target/arch has non-continuable watchpoints, cancel the displaced
10638         step.
10639         (resume): Don't start a displaced step if in-line step-over info
10640         is valid.
10642 2015-04-10  Pedro Alves  <palves@redhat.com>
10644         * infrun.c (displaced_step_in_progress): New function.
10645         (do_target_resume): Advise target to report all signals if
10646         displaced stepping.
10648 2015-04-10  Pedro Alves  <palves@redhat.com>
10650         PR gdb/18216
10651         * infrun.c (process_event_stop_test): Don't assume a step-resume
10652         is set if tp->stepped_breakpoint is true.
10654 2015-04-10  Yao Qi  <yao.qi@linaro.org>
10656         * arm-tdep.c (install_alu_reg): Update comment.
10657         (thumb_copy_alu_reg): Remove local variable rn.  Update
10658         debugging message.  Use r2 instead of r1 in the modified
10659         instruction.
10661 2015-04-10  Pedro Alves  <palves@redhat.com>
10663         PR gdb/13858
10664         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
10665         linux_displaced_step_location as gdbarch_displaced_step_location
10666         hook.
10667         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10668         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10669         * linux-tdep.c (linux_displaced_step_location): New function,
10670         based on ppc_linux_displaced_step_location.
10671         * linux-tdep.h (linux_displaced_step_location): New declaration.
10672         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
10673         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
10674         Delete.
10675         (ppc_linux_init_abi): Install linux_displaced_step_location as
10676         gdbarch_displaced_step_location hook, even without Cell/B.E..
10677         (_initialize_ppc_linux_tdep): Don't install
10678         ppc_linux_inferior_created as inferior_created observer.
10679         * s390-linux-tdep.c (s390_gdbarch_init): Install
10680         linux_displaced_step_location as gdbarch_displaced_step_location
10681         hook.
10683 2015-04-09  Gary Benson <gbenson@redhat.com>
10685         * common/common-remote-fileio.h: Rename to...
10686         * common/fileio.h: ...this.  Update all references.
10687         (remote_fileio_to_fio_error): Rename to...
10688         (host_to_fileio_error): ...this.
10689         (remote_fileio_to_be): Rename to...
10690         (host_to_bigendian): ...this.  Update all callers.
10691         (remote_fileio_to_fio_uint): Rename to...
10692         (host_to_fileio_uint): ...this.  Update all callers.
10693         (remote_fileio_to_fio_time): Rename to...
10694         (host_to_fileio_time): ...this.  Update all callers.
10695         (remote_fileio_to_fio_stat): Rename to...
10696         (host_to_fileio_stat): ...this.
10697         Update all references.
10698         * common/common-remote-fileio.c: Rename to...
10699         * common/fileio.c: ...this.  Update all references.
10700         (remote_fileio_to_fio_error): Rename to...
10701         (host_to_fileio_error): ...this.  Update all callers.
10702         (remote_fileio_mode_to_target): Rename to...
10703         (fileio_mode_pack): ...this.  Update all callers.
10704         (remote_fileio_to_fio_mode): Rename to...
10705         (host_to_fileio_mode): ...this.  Update all callers.
10706         (remote_fileio_to_fio_ulong): Rename to...
10707         (host_to_fileio_ulong): ...this.  Update all callers.
10708         (remote_fileio_to_fio_stat): Rename to...
10709         (host_to_fileio_stat): ...this.  Update all callers.
10711 2015-04-09  Andy Wingo  <wingo@igalia.com>
10713         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
10714         (frame_functions): Bind gdbscm_frame_read_register to
10715         frame-read-register.
10716         * guile/lib/gdb.scm (frame-read-register): Export.
10718 2015-04-09  Gary Benson <gbenson@redhat.com>
10720         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
10721         New declaration.
10722         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
10723         New function, factored out the named functions below.
10724         * inf-child.c (gdb/fileio.h): Remove include.
10725         (common-remote-fileio.h): New include.
10726         (inf_child_errno_to_fileio_error): Remove function.  Update
10727         all callers to use remote_fileio_to_fio_error.
10728         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
10730 2015-04-09  Andy Wingo  <wingo@igalia.com>
10732         * MAINTAINERS (Write After Approval): Add Andy Wingo.
10734 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
10736         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
10737         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
10738         * configure: Regenerated.
10740 2015-04-09  Pedro Alves  <palves@redhat.com>
10742         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
10743         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
10744         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
10745         * gnulib/import/Makefile.am: Update.
10746         * gnulib/import/Makefile.in: Update.
10747         * gnulib/import/m4/gnulib-cache.m4: Update.
10748         * gnulib/import/m4/gnulib-comp.m4: Update.
10749         * gnulib/import/m4/strtok_r.m4: New file.
10750         * gnulib/import/strtok_r.c: New file.
10752 2015-04-09  Pedro Alves  <palves@redhat.com>
10754         * gnulib/update-gnulib.sh (aclocal version check): Filter out
10755         "called too early to check prototype".
10757 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
10759         PR python/16699
10760         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
10761         use a caching mechanism.  Adjust comments and code to reflect
10762         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
10763         (cmdpy_completer_handle_brkchars): Adjust call to
10764         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
10765         (cmdpy_completer): Likewise.
10767 2015-04-08  Yao Qi  <yao.qi@linaro.org>
10769         * spu-tdep.c (spu_gdbarch_init): Don't call
10770         set_gdbarch_cannot_step_breakpoint.
10772 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
10774         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
10776 2015-04-07  Pedro Alves  <palves@redhat.com>
10778         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
10779         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
10780         (delete_exited_threads): New declaration.
10781         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
10782         * linux-nat.c (linux_nat_update_thread_list): New function.
10783         (linux_nat_add_target): Install it.
10784         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
10785         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
10786         (delete_exited_threads): New function.
10788 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
10790         * infrun.c (resume) <displaced stepping debug output>: Get the
10791         leader thread's regcache, not resume_ptid's.
10793 2015-04-06  Doug Evans  <xdje42@gmail.com>
10795         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
10796         VAR_DOMAIN.
10797         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
10798         Include symbol domain in debugging output.
10800 2015-04-06  Pedro Alves  <palves@redhat.com>
10801             Bernd Edlinger  <bernd.edlinger@hotmail.de>
10803         * configure.ac: Remove the mingw32-specific stub-termcap.o
10804         fallback, and instead fallback to the stub termcap on all hosts.
10805         * configure: Regenerate.
10806         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
10807         symbols.
10809 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
10811         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10812         "top_level" parameter.
10813         (resolve_dynamic_type_internal): Remove the unused "top_level"
10814         parameter.  Update call to is_dynamic_type_internal.
10815         (is_dynamic_type): Update call to is_dynamic_type_internal.
10816         (resolve_dynamic_range): Update call to
10817         resolve_dynamic_type_internal.
10818         (resolve_dynamic_union): Likewise.
10819         (resolve_dynamic_struct): Likewise.
10820         (resolve_dynamic_type): Likewise.
10822 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
10824         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10825         TYPE_CODE_REF types so that they are not considered as dynamic
10826         depending on the referenced type.
10827         (resolve_dynamic_type_internal): Likewise.
10829 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10831         * Makefile.in (top_srcdir): New.
10832         * configure: Regenerated.
10834 2015-04-02  Gary Benson <gbenson@redhat.com>
10836         * NEWS: Announce the new default sysroot of "target:".
10838 2015-04-02  Gary Benson <gbenson@redhat.com>
10840         * main.c (captured_main): Set gdb_sysroot to "target:"
10841         if not otherwise set.
10843 2015-04-02  Gary Benson <gbenson@redhat.com>
10845         * exec.c (exec_file_attach): Support "target:" filenames.
10847 2015-04-02  Gary Benson <gbenson@redhat.com>
10849         * solib.c (solib_find): Strip "target:" prefix from sysroot
10850         if accessing local files.
10852 2015-04-02  Gary Benson <gbenson@redhat.com>
10854         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
10855         checks and error messages.
10857 2015-04-02  Gary Benson <gbenson@redhat.com>
10859         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
10860         (remote_filename_p): Remove declaration.
10861         (remote_bfd_open): Likewise.
10862         * remote.c (remote_bfd_iovec_open): Remove function.
10863         (remote_bfd_iovec_close): Likewise.
10864         (remote_bfd_iovec_pread): Likewise.
10865         (remote_bfd_iovec_stat): Likewise.
10866         (remote_filename_p): Likewise.
10867         (remote_bfd_open): Likewise.
10868         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
10869         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
10870         (gdb_bfd_open_maybe_remote): Remove function.
10871         (symfile_bfd_open):  Replace remote filename check with
10872         target filename check.
10873         (reread_symbols): Use gdb_bfd_open.
10874         * build-id.c (gdbcore.h): New include.
10875         (build_id_to_debug_bfd): Use gdb_bfd_open.
10876         * infcmd.c (attach_command_post_wait): Remove remote filename
10877         check.
10878         * solib.c (solib_find): Replace remote-specific handling with
10879         target-specific handling.  Update comments where necessary.
10880         (solib_bfd_open): Replace remote-specific handling with
10881         target-specific handling.
10882         (gdb_sysroot_changed): New function.
10883         (_initialize_solib): Call the above when gdb_sysroot changes.
10884         * windows-tdep.c (gdbcore.h): New include.
10885         (windows_xfer_shared_library): Use gdb_bfd_open.
10887 2015-04-02  Gary Benson <gbenson@redhat.com>
10889         * gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
10890         (is_target_filename): New declaration.
10891         (gdb_bfd_has_target_filename): Likewise.
10892         (gdb_bfd_open): Update documentation comment.
10893         * gdb_bfd.c (target.h): New include.
10894         (gdb/fileio.h): Likewise.
10895         (is_target_filename): New function.
10896         (gdb_bfd_has_target_filename): Likewise.
10897         (fileio_errno_to_host): Likewise.
10898         (gdb_bfd_iovec_fileio_open): Likewise.
10899         (gdb_bfd_iovec_fileio_pread): Likewise.
10900         (gdb_bfd_iovec_fileio_close): Likewise.
10901         (gdb_bfd_iovec_fileio_fstat): Likewise.
10902         (gdb_bfd_open): Use target fileio to access paths prefixed
10903         with "target:" where necessary.
10905 2015-04-02  Gary Benson <gbenson@redhat.com>
10907         * target.h (struct target_ops) <to_filesystem_is_local>:
10908         New field.
10909         (target_filesystem_is_local): New macro.
10910         * target-delegates.c: Regenerate.
10911         * remote.c (remote_filesystem_is_local): New function.
10912         (init_remote_ops): Initialize to_filesystem_is_local.
10914 2015-04-02  Gary Benson <gbenson@redhat.com>
10916         * target.h (struct target_ops) <to_fileio_fstat>: New field.
10917         (target_fileio_fstat): New declaration.
10918         * target.c (target_fileio_fstat): New function.
10919         * inf-child.c (inf_child_fileio_fstat): Likewise.
10920         (inf_child_target): Initialize to_fileio_fstat.
10921         * remote.c (init_remote_ops): Likewise.
10923 2015-04-01  Sasha Smundak  <asmundak@google.com>
10925         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
10926         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
10927         (py-unwind.o): New recipe.
10928         * NEWS: mention Python frame unwinding.
10929         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
10930         gdb/unwinder.py and gdb/command/unwinder.py
10931         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
10932         list.
10933         (execute_unwinders): New function.
10934         * python/lib/gdb/command/unwinders.py: New file.
10935         * python/lib/gdb/unwinder.py: New file.
10936         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
10937         (objfpy_dealloc): Decrement frame_unwinders reference count.
10938         (objfpy_initialize): Create frame_unwinders list.
10939         (objfpy_get_frame_unwinders): New function.
10940         (objfpy_set_frame_unwinders): Ditto.
10941         (objfile_getset): Add frame_unwinders attribute to Objfile.
10942         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
10943         (pspy_dealloc): Decrement frame_unwinders reference count.
10944         (pspy_initialize): Create frame_unwinders list.
10945         (pspy_get_frame_unwinders): New function.
10946         (pspy_set_frame_unwinders): Ditto.
10947         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
10948         * python/py-unwind.c: New file.
10949         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
10950         (objpy_get_frame_unwinders): New prototype.
10951         (gdbpy_initialize_unwind): New prototype.
10952         * python/python.c (gdbpy_apply_type_printers): Call
10953         gdbpy_initialize_unwind.
10955 2015-04-01  Pedro Alves  <palves@redhat.com>
10957         * infrun.c (resume): Check currently_stepping after clearing
10958         stepped_breakpoint, not before.
10960 2015-04-01  Pedro Alves  <palves@redhat.com>
10962         * infrun.c (print_target_wait_results): Print all the ptid
10963         elements.
10965 2015-04-01  Pedro Alves  <palves@redhat.com>
10967         * infrun.c (keep_going): Also discard cleanups if inserting
10968         breakpoints fails.
10970 2015-04-01  Pedro Alves  <palves@redhat.com>
10972         * infrun.c (wait_for_inferior): Install the
10973         finish_thread_state_cleanup cleanup across the whole function, not
10974         just around handle_inferior_event.
10976 2015-04-01  Pedro Alves  <palves@redhat.com>
10978         * infrun.c (resume) <step past permanent breakpoint>: Use
10979         do_target_resume.
10981 2015-04-01  Pedro Alves  <palves@redhat.com>
10983         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
10985 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
10987         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
10989 2015-04-01  Pedro Alves  <palves@redhat.com>
10991         * linux-thread-db.c (record_thread): Readd the thread to gdb's
10992         list if it was marked exited.
10994 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
10996         * configure: Regenerated.
10998 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
10999             Jan Kratochvil  <jan.kratochvil@redhat.com>
11000             Oleg Nesterov  <oleg@redhat.com>
11002         PR corefiles/16092
11003         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
11004         New enum identifying the various options of the coredump_filter
11005         file.
11006         (struct smaps_vmflags): New struct.
11007         (use_coredump_filter): New variable.
11008         (decode_vmflags): New function.
11009         (mapping_is_anonymous_p): Likewise.
11010         (dump_mapping_p): Likewise.
11011         (linux_find_memory_regions_full): New variables
11012         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
11013         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
11014         parsing of its information.  Implement memory mapping filtering
11015         based on its contents.
11016         (show_use_coredump_filter): New function.
11017         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
11018         * NEWS: Mention the possibility of using the
11019         '/proc/PID/coredump_filter' file when generating a corefile.
11020         Mention new command 'set use-coredump-filter'.
11022 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
11024         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
11025         read_memory_unsigned_integer.
11027 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
11029         * Makefile.in (ZLIB): New.
11030         (ZLIBINC): Likewise.
11031         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
11032         (CLIBS): Add $(ZLIB).
11033         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
11034         Add -lz to LIBS.
11035         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
11036         * top.c (print_gdb_configuration): Remove --with-zlib and
11037         --without-zlib.
11038         * config.in: Regenerated.
11039         * configure: Likewise.
11041 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11043         * NEWS: Mention info os cpus support.
11044         * nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
11045         (struct osdata_type): Add cpus entry, reorder the entries in
11046         alphabetical order.
11048 2015-03-31  Matthias Klose  <doko@ubuntu.com>
11050         * compile/compile.c (compile_to_object): Allow triplets with or
11051         without vendor set.
11053 2015-03-30  Doug Evans  <dje@google.com>
11055         PR c++/18141
11056         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
11057         klass in VAR_DOMAIN.
11059 2015-03-30  Gary Benson <gbenson@redhat.com>
11061         * remote.c (remote_mourn_1): Remove function.  Update all callers
11062         to use remote_mourn.
11063         (extended_remote_mourn_1): Remove function.  Update all callers
11064         to use extended_remote_mourn.
11065         (extended_remote_attach_1): Remove function.  Update all callers
11066         to use extended_remote_attach.
11068 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
11070         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
11071         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
11072         (ALLDEPFILES): Add ft32-tdep.c.
11073         * configure.tgt: Add FT32 entry.
11074         * ft32-tdep.c: New file, FT32 target-dependent code.
11075         * ft32-tdep.h: New file, FT32 target-dependent code.
11077 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
11079         Revert:
11080         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11081         Code cleanup.
11082         * printcmd.c (print_command_1): Move expr variable scope.
11084 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
11086         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
11088 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
11090         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
11091         sections.
11093 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
11095         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
11096         exception raised while parsing the probe arguments.
11097         Force parsing to be done using the C language parser.
11098         * expression.h (parse_expression_with_language): Declare.
11099         * parse.c (parse_expression_with_language): New function.
11101 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
11103         * MAINTAINERS (Write After Approval): Add "Jon Turney".
11105 2015-03-26  Andy Wingo  <wingo@igalia.com>
11107         PR symtab/18148
11108         * dwarf2read.c (struct partial_die_info): Add has_const_value
11109         member.
11110         (add_partial_symbol): Don't punt on symbols that have const_value
11111         attributes.
11112         (read_partial_die): Detect DW_AT_const_value.
11114 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11116         Code cleanup.
11117         * printcmd.c (print_command_1): Move expr variable scope.
11119 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11121         Code cleanup.
11122         * printcmd.c (validate_format): Make the parameter cmdname const.
11124 2015-03-26  Don Breazeal  <donb@codesourcery.com>
11126         * remote.c (_initialize_remote): Update comment.
11128 2015-03-26  Pedro Alves  <palves@redhat.com>
11129             Jon TURNEY  <jon.turney@dronecode.org.uk>
11131         * coffread.c (coff_symfile_read): When constructing the name of an
11132         import stub symbol from import symbol for amd64, only skip the
11133         char after _imp_ if the target is underscored (like i386) and the
11134         char is indeed the target's leading char.
11136 2015-03-25  Pedro Alves  <palves@redhat.com>
11138         * target.h <to_async>: Replace 'callback' and 'context' parameters
11139         with boolean 'enable' parameter.
11140         (target_async): Replace CALLBACK and CONTEXT parameters with
11141         boolean ENABLE parameter.
11142         * inf-loop.c (inferior_event_handler): Adjust.
11143         * linux-nat.c (linux_nat_attach, linux_nat_resume)
11144         (linux_nat_resume): Adjust.
11145         (async_client_callback, async_client_context): Delete.
11146         (handle_target_event): Call inferior_event_handler directly.
11147         (linux_nat_async): Replace 'callback' and 'context' parameters
11148         with boolean 'enable' parameter.  Adjust.  Remove references to
11149         async_client_callback and async_client_context.
11150         (linux_nat_close): Adjust.
11151         * record-btrace.c (record_btrace_async): Replace 'callback' and
11152         'context' parameters with boolean 'enable' parameter.  Adjust.
11153         (record_btrace_resume): Adjust.
11154         * record-full.c (record_full_async): Replace 'callback' and
11155         'context' parameters with boolean 'enable' parameter.  Adjust.
11156         (record_full_resume, record_full_core_resume): Adjust.
11157         * remote.c (struct remote_state) <async_client_callback,
11158         async_client_context>: Delete fields.
11159         (remote_start_remote, extended_remote_attach_1, remote_resume)
11160         (extended_remote_create_inferior): Adjust.
11161         (remote_async_serial_handler): Call inferior_event_handler
11162         directly.
11163         (remote_async): Replace 'callback' and 'context' parameters with
11164         boolean 'enable' parameter.  Adjust.
11165         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
11166         Adjust.
11167         * target-delegates.c: Regenerate.
11169 2015-03-25  Gary Benson <gbenson@redhat.com>
11170             Pedro Alves  <palves@redhat.com>
11172         * target.c (fileio_ft_t): New typedef, define object vector.
11173         (fileio_fhandles): New static variable.
11174         (is_closed_fileio_fh): New macro.
11175         (lowest_closed_fd): New static variable.
11176         (acquire_fileio_fd): New function.
11177         (release_fileio_fd): Likewise.
11178         (fileio_fd_to_fh): New macro.
11179         (target_fileio_open): Wrap the file descriptor on success.
11180         (target_fileio_pwrite): Updated to use wrapped file descriptor.
11181         (target_fileio_pread): Likewise.
11182         (target_fileio_close): Likewise.
11184 2015-03-24  Pedro Alves  <palves@redhat.com>
11186         * thread.c (thread_apply_all_command): Take exited threads into
11187         account.
11189 2015-03-24  Pedro Alves  <palves@redhat.com>
11191         * infrun.c (resume, proceed): Mention
11192         switch_back_to_stepped_thread, not switch_back_to_stepping.
11194 2015-03-24  Pedro Alves  <palves@redhat.com>
11196         * infrun.c (user_visible_resume_ptid): Rewrite going from
11197         most-locked to unlocked instead of the opposite.  Move comment ...
11198         * infrun.h (user_visible_resume_ptid): ... here.
11200 2015-03-24  Pedro Alves  <palves@redhat.com>
11202         * linux-nat.c (linux_nat_resume): Output debug logs before trying
11203         to resume the event lwp.  Use the lwp's ptid instead of the passed
11204         in (maybe wildcard) ptid.
11205         (stop_wait_callback): Tweak debug log output.
11206         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
11207         TRAP_TRACE.
11208         (linux_nat_filter_event): In debug output, distinguish a
11209         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
11210         before trying to resume the lwp.
11212 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
11214         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
11215         pointer indirection.
11216         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
11217         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
11219 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
11221         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
11222         Renames DYN_ATTR_DATA_LOCATION.
11223         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
11224         DYN_ATTR_DATA_LOCATION.
11225         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
11226         instead of DYN_ATTR_DATA_LOCATION.
11228 2015-03-24  Pedro Alves  <palves@redhat.com>
11230         * breakpoint.c (until_break_command): Adjust call to proceed.
11231         * gdbthread.h (struct thread_control_state) <stepping_command>:
11232         New field.
11233         * infcall.c (run_inferior_call): Adjust call to proceed.
11234         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
11235         Adjust calls to proceed.
11236         (set_step_frame): Set the current thread's step_start_function
11237         here.
11238         (step_once): Adjust calls to proceed.
11239         (jump_command, signal_command, until_next_command)
11240         (finish_backward, finish_forward, proceed_after_attach_callback)
11241         (attach_command_post_wait): Adjust calls to proceed.
11242         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
11243         (do_target_resume): New function, factored out from ...
11244         (resume): ... here.  Remove 'step' parameter.  Instead, check
11245         currently_stepping to determine whether the thread should be
11246         single-stepped.
11247         (proceed): Remove 'step' parameter and don't set the thread's
11248         step_start_function here.  Adjust call to 'resume'.
11249         (handle_inferior_event): Adjust calls to 'resume'.
11250         (switch_back_to_stepped_thread): Use do_target_resume instead of
11251         'resume'.
11252         (keep_going): Adjust calls to 'resume'.
11253         * infrun.h (proceed): Remove 'step' parameter.
11254         (resume): Likewise.
11255         * windows-nat.c (do_initial_windows_stuff): Adjust call to
11256         'resume'.
11257         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
11259 2015-03-24  Pedro Alves  <palves@redhat.com>
11261         * gdbthread.h (struct thread_control_state) <stepping_command>:
11262         New field.
11263         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
11264         the thread's stepping_command field.
11265         * infrun.c (resume): Check the thread's stepping_command flag to
11266         determine which threads should be resumed.  Rename 'entry_step'
11267         local to user_step.
11268         (clear_proceed_status_thread): Clear 'stepping_command'.
11269         (schedlock_applies): Change parameter type to struct thread_info
11270         pointer.  Adjust.
11271         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
11272         (switch_back_to_stepped_thread): Adjust calls to
11273         'schedlock_applies'.
11274         (_initialize_infrun): Adjust "set scheduler-locking step" help.
11276 2015-03-24  Pedro Alves  <palves@redhat.com>
11278         * infrun.c (step_start_function): Delete and ...
11279         * gdbthread.h (struct thread_control_state) <step_start_function>:
11280         ... now a field here.
11281         * infrun.c (clear_proceed_status_thread): Clear the thread's
11282         step_start_function.
11283         (proceed, process_event_stop_test, print_stop_event): Adjust.
11285 2015-03-24  Pedro Alves  <palves@redhat.com>
11287         * infrun.c (proceed): No longer handle negative step.
11289 2015-03-24  Gary Benson  <gbenson@redhat.com>
11291         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
11292         (x86_linux_prepare_to_resume): Likewise.
11293         * x86-linux-nat.c (x86_linux_new_thread):
11294         Moved to nat/x86-linux.c.
11295         (x86_linux_prepare_to_resume): Likewise.
11296         * nat/x86-linux.c (x86_linux_new_thread): New function.
11297         (x86_linux_prepare_to_resume): Likewise.
11299 2015-03-24  Gary Benson  <gbenson@redhat.com>
11301         * nat/x86-linux-dregs.h: New file.
11302         * nat/x86-linux-dregs.c: Likewise.
11303         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
11304         (x86-linux-dregs.o): New rule.
11305         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
11306         * config/i386/linux64.mh (NATDEPFILES): Likewise.
11307         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
11308         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11309         (x86_linux_dr_get): Likewise.
11310         (x86_linux_dr_set): Likewise.
11311         (x86_linux_dr_get_addr): Likewise.
11312         (x86_linux_dr_get_control): Likewise.
11313         (x86_linux_dr_get_status): Likewise.
11314         (update_debug_registers_callback): Likewise.
11315         (x86_linux_dr_set_control): Likewise.
11316         (x86_linux_dr_set_addr): Likewise.
11317         (x86_linux_update_debug_registers): Likewise.
11319 2015-03-24  Gary Benson  <gbenson@redhat.com>
11321         * x86-linux-nat.c (x86_linux_update_debug_registers):
11322         New function, factored out from...
11323         (x86_linux_prepare_to_resume): ...this.
11325 2015-03-24  Gary Benson  <gbenson@redhat.com>
11327         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
11328         (x86_linux_dr_set): Likewise.
11329         (x86_linux_dr_get_addr): Likewise.
11330         (x86_linux_dr_get_control): Likewise.
11331         (x86_linux_dr_get_status): Likewise.
11332         (update_debug_registers_callback): Likewise.
11333         (x86_linux_dr_set_control): Likewise.
11334         (x86_linux_dr_set_addr): Likewise.
11335         (x86_linux_prepare_to_resume): Likewise.
11336         (x86_linux_new_thread): Likewise.
11338 2015-03-24  Gary Benson  <gbenson@redhat.com>
11340         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
11341         (x86_linux_new_thread): Rename argument.
11343 2015-03-24  Gary Benson  <gbenson@redhat.com>
11345         * nat/x86-linux.h: New file.
11346         * nat/x86-linux.c: Likewise.
11347         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
11348         (x86-linux.o): New rule.
11349         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
11350         * config/i386/linux64.mh (NATDEPFILES): Likewise.
11351         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
11352         (lwp_set_arch_private_info): New declaration.
11353         (lwp_arch_private_info): Likewise.
11354         * linux-nat.c (lwp_set_arch_private_info): New function.
11355         (lwp_arch_private_info): Likewise.
11356         * x86-linux-nat.c: Include nat/x86-linux.h.
11357         (arch_lwp_info): Removed structure.
11358         (update_debug_registers_callback):
11359         Use lwp_set_debug_registers_changed.
11360         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11361         and lwp_set_debug_registers_changed.
11362         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11364 2015-03-24  Gary Benson  <gbenson@redhat.com>
11366         * nat/linux-nat.h (ptid_of_lwp): New declaration.
11367         (lwp_is_stopped): Likewise.
11368         (lwp_stop_reason): Likewise.
11369         * linux-nat.c (ptid_of_lwp): New function.
11370         (lwp_is_stopped): Likewise.
11371         (lwp_is_stopped_by_watchpoint): Likewise.
11372         * x86-linux-nat.c (update_debug_registers_callback):
11373         Use lwp_is_stopped.
11374         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11375         lwp_stop_reason.
11377 2015-03-24  Gary Benson  <gbenson@redhat.com>
11379         * linux-nat.h (linux_stop_lwp): Move declaration to...
11380         * nat/linux-nat.h (linux_stop_lwp): New declaration.
11382 2015-03-24  Gary Benson  <gbenson@redhat.com>
11384         * linux-nat.h: Include nat/linux-nat.h.
11385         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
11386         * nat/linux-nat.h (struct lwp_info): New forward declaration.
11387         (iterate_over_lwps_ftype): New typedef.
11388         (iterate_over_lwps): New declaration.
11389         * linux-nat.h (iterate_over_lwps): Update comment.  Use
11390         iterate_over_lwps_ftype.  Update callback return value check.
11392 2015-03-24  Gary Benson  <gbenson@redhat.com>
11394         * x86-nat.h (x86_debug_reg_state): Move declaration to...
11395         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
11397 2015-03-24  Gary Benson  <gbenson@redhat.com>
11399         * nat/linux-nat.h (current_lwp_ptid): New declaration.
11400         * linux-nat.c (current_lwp_ptid): New function.
11401         * x86-linux-nat.c: Include nat/linux-nat.h.
11402         (x86_linux_dr_get_addr): Use current_lwp_ptid.
11403         (x86_linux_dr_get_control): Likewise.
11404         (x86_linux_dr_get_status): Likewise.
11405         (x86_linux_dr_set_control): Likewise.
11406         (x86_linux_dr_set_addr): Likewise.
11408 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11410         PR breakpoints/16466
11411         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
11413 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
11415         * ser-mingw.c (ser_windows_setparity): Fix indentation.
11416         * ser-unix.c (hardwire_setparity): Likewise.
11418 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
11420         * NEWS: Mention set/show serial parity command.
11421         * monitor.c (monitor_open): Call serial_setparity.
11422         * remote.c (remote_open_1): Likewise.
11423         * ser-base.c (ser_base_serparity): New function.
11424         * ser-base.h (ser_base_setparity): Add  declaration.
11425         * ser-go32.c (dos_ops): Set "setparity" field.
11426         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
11427         state.Parity.
11428         (ser_windows_setparity): New function.
11429         (hardwire_ops): Add ser_windows_setparity.
11430         (tty_ops): Add NULL for setparity field.
11431         (pipe_ops): Add ser_base_setparity.
11432         (tcp_ops): Likewise.
11433         * ser-pipe.c (pipe_ops): Likewise.
11434         * ser-tcp.c (tcp_ops): Likewise.
11435         * ser-unix.c (hardwire_setparity): Add declaration.
11436         (hardwire_raw): Don't reset PARENB flag.
11437         (hardwire_setparity): New function.
11438         (hardwire_ops): Add hardwire_setparity.
11439         * serial.c (serial_setparity): New function.
11440         (serial_parity): New global.
11441         (parity_none, parity_odd, parity_even, parity_enums, parity):
11442         New static globals.
11443         (set_parity): New function.
11444         (_initialize_serial): Add set/show serial parity commands.
11445         * serial.h (GDBPARITY_NONE): Define.
11446         (GDBPARITY_ODD): Define.
11447         (GDBPARITY_EVEN): Define.
11448         (serial_setparity) Add declaration.
11449         (struct serial_ops): Add setparity field.
11450         * target.h (serial_parity): Add declaration.
11452 2015-03-23  Keith Seitz  <keiths@redhat.com>
11454         * linespec.c (linespec_lexer_lex_keyword): Update comment.
11456 2015-03-23  Keith Seitz  <keiths@redhat.com>
11458         * breakpoint.c (parse_breakpoint_sals): Use
11459         linespec_lexer_lex_keyword to ascertain if the user specified
11460         a NULL location.
11461         * linespec.c [IF_KEYWORD_INDEX]: Define.
11462         (linespec_lexer_lex_keyword): Export.
11463         (struct ls_parser) <keyword_ok>: Remove.
11464         A keyword is only a keyword if not followed by another keyword.
11465         (linespec_lexer_lex_one): Remove keyword_ok handling.
11466         Add comment explaining why the parsing stream is not advanced
11467         when a keyword is seen.
11468         (parse_linespec): Remove parser->keyword_ok.
11469         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
11471 2015-03-23  Keith Seitz  <keiths@redhat.com>
11473         PR gdb/18021
11474         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
11475         if we find a static method with DW_AT_vtable_elem_location.
11477 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
11479         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
11480         before the second loop, to avoid undefined behavior.  Reported by
11481         Anton Blanchard <anton@samba.org>.
11483 2015-03-20  Keven Boell  <keven.boell@intel.com>
11485         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
11486         data_location usage to linked list.
11487         (resolve_dynamic_type_internal): Adapt data_location to
11488         linked list.
11489         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
11490         (copy_type_recursive, copy_type): Add copy of linked list.
11491         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
11492         (struct dynamic_prop_list): New struct.
11493         * dwarf2read.c (set_die_type): Set data_location data.
11495 2015-03-20  Pedro Alves  <palves@redhat.com>
11497         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
11498         inner block and make it const.
11499         * machoread.c (get_archive_prefix_len): Make "lparen" const.
11501 2015-03-20  Pedro Alves  <palves@redhat.com>
11503         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
11504         * breakpoint.h (set_breakpoint_condition): Update declaration.
11506 2015-03-20  Pedro Alves  <palves@redhat.com>
11508         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
11510 2015-03-20  Pedro Alves  <palves@redhat.com>
11512         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
11514 2015-03-20  Pedro Alves  <palves@redhat.com>
11516         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
11518 2015-03-20  Pedro Alves  <palves@redhat.com>
11520         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
11521         (nto_init_solib_absolute_prefix): Likewise.
11523 2015-03-20  Pedro Alves  <palves@redhat.com>
11525         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
11526         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
11528 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
11530         * config/djgpp/README: Remove gdb.hp.
11532 2015-03-20  Yao Qi  <yao.qi@linaro.org>
11534         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
11535         set_gdbarch_cannot_step_breakpoint.
11537 2015-03-19  Pedro Alves  <palves@redhat.com>
11539         * linux-nat.c (linux_resume_one_lwp): Rename to ...
11540         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
11541         instead call perror_with_name.
11542         (check_ptrace_stopped_lwp_gone): New function.
11543         (linux_resume_one_lwp): Reimplement as wrapper around
11544         linux_resume_one_lwp_throw that swallows errors if the LWP is
11545         gone.
11546         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
11547         swallows errors if the LWP is gone.  Use
11548         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
11550 2015-03-19  Pedro Alves  <palves@redhat.com>
11552         * linux-nat.c (status_callback): Return early if the LWP has no
11553         status pending.
11555 2015-03-19  Pedro Alves  <palves@redhat.com>
11557         * linux-nat.c (select_event_lwp_callback): Update comment to no
11558         longer mention SIGTRAP.
11560 2015-03-18  Tristan Gingold  <gingold@adacore.com>
11562         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
11563         redirection code to ...
11564         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
11565         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
11567 2015-03-18  Gary Benson <gbenson@redhat.com>
11569         (remote_protocol_features): Remove the "vFile:fstat" feature.
11570         (remote_hostio_fstat): Probe for "vFile:fstat" support.
11572 2015-03-11  Yao Qi  <yao.qi@linaro.org>
11574         PR tdep/18107
11575         * aarch64-linux-tdep.c: Include xml-syscall.h
11576         (aarch64_linux_get_syscall_number): New function.
11577         (aarch64_linux_init_abi): Call
11578         set_gdbarch_get_syscall_number.
11579         * syscalls/aarch64-linux.xml: New file.
11581 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
11583         * ser-base.h (ser_base_setstopbits): Change second argument name
11584         from "rate" to "num".
11586 2015-03-17  Gary Benson <gbenson@redhat.com>
11587             Luke Allardyce <lukeallardyce@gmail.com>
11589         PR gdb/18131
11590         * common/common-remote-fileio.h (sys/stat.h): New include.
11591         (stuct stat): Remove forward declaration.
11593 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
11595         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
11596         before writing core register notes.
11598 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
11599             Pedro Alves  <palves@redhat.com>
11601         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
11602         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
11603         (tgoto): Wrap with extern "C".
11605 2015-03-16  Pedro Alves  <palves@redhat.com>
11606             Yuanhui Zhang  <asmwarrior@gmail.com>
11608         * stub-termcap.c (tputs): Change prototype.
11610 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
11611             Pedro Alves  <palves@redhat.com>
11613         * windows-nat.c (struct thread_info_struct): Rename to ...
11614         (struct windows_thread_info_struct): ... this.
11615         (thread_info): Rename to ...
11616         (windows_thread_info): ... this.
11617         All users updated.
11619 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
11620             Pedro Alves  <palves@redhat.com>
11622         * NEWS: New Removed targets and native configurations.
11624 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11626         Remove HPUX.
11627         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
11628         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
11629         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
11630         ia64-hpux-tdep.h, solib-ia64-hpux.h.
11631         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
11632         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
11633         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
11634         hppa-hpux-tdep.c.
11635         * config/ia64/hpux.mh: Remove file.
11636         * config/pa/hpux.mh: Remove file.
11637         * configure: Rebuilt.
11638         * configure.ac (dlgetmodinfo, somread.o): Remove.
11639         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11640         (ia64-*-hpux*): Remove its float format exception.
11641         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11642         * hppa-hpux-nat.c: Remove file.
11643         * hppa-hpux-tdep.c: Remove file.
11644         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
11645         Move them here from hppa-tdep.h
11646         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
11647         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
11648         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
11649         Move them to hppa-tdep.c.
11650         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
11651         declarations.
11652         * ia64-hpux-nat.c: Remove file.
11653         * ia64-hpux-tdep.c: Remove file.
11654         * ia64-hpux-tdep.h: Remove file.
11655         * inf-ttrace.c: Remove file.
11656         * inf-ttrace.h: Remove file.
11657         * solib-ia64-hpux.c: Remove file.
11658         * solib-ia64-hpux.h: Remove file.
11659         * solib-pa64.c: Remove file.
11660         * solib-pa64.h: Remove file.
11661         * solib-som.c: Remove file.
11662         * solib-som.h: Remove file.
11663         * somread.c: Remove file.
11665 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
11667         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
11668         * config.in: Regenerate.
11669         * configure: Regenerate.
11670         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
11671         define.
11672         (fbsd_find_memory_regions): Use kinfo_getvmmap to
11673         enumerate memory regions if present.
11675 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
11677         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
11678         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
11679         expressions.
11680         (i386fbsd_sigtramp_p): Likewise.
11682 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
11684         * MAINTAINERS (Write After Approval): Add John Baldwin.
11686 2015-03-12  Gary Benson <gbenson@redhat.com>
11688         * solib.c (_initialize_solib): Make "set/show sysroot" use
11689         add_setshow_optional_filename_cmd so it can be restored to
11690         empty after being set.
11692 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
11694         * Makefile.in (SFILES): New source break-catch-syscall.c.
11695         (COMMON_OBS): New object break-catch-syscall.o.
11696         * break-catch-syscall.c: New file.
11697         * breakpoint.c: Remove inclusion of "xml-syscall.h".
11698         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
11699         (struct syscall_catchpoint): Likewise.
11700         (dtor_catch_syscall): Likewise.
11701         (catch_syscall_inferior_data): Likewise.
11702         (struct catch_syscall_inferior_data): Likewise.
11703         (get_catch_syscall_inferior_data): Likewise.
11704         (catch_syscall_inferior_data_cleanup): Likewise.
11705         (insert_catch_syscall): Likewise.
11706         (remove_catch_syscall): Likewise.
11707         (breakpoint_hit_catch_syscall): Likewise.
11708         (print_it_catch_syscall): Likewise.
11709         (print_one_catch_syscall): Likewise.
11710         (print_mention_catch_syscall): Likewise.
11711         (print_recreate_catch_syscall): Likewise.
11712         (catch_syscall_breakpoint_ops): Likewise.
11713         (syscall_catchpoint_p): Likewise.
11714         (create_syscall_event_catchpoint): Likewise.
11715         (catch_syscall_split_args): Likewise.
11716         (catch_syscall_command_1): Likewise.
11717         (is_syscall_catchpoint_enabled): Likewise.
11718         (catch_syscall_enabled): Likewise.
11719         (catching_syscall_number): Likewise.
11720         (catch_syscall_completer): Likewise.
11721         (clear_syscall_counts): Likewise.
11722         (initialize_breakpoint_ops): Move initialization of syscall
11723         catchpoints to break-catch-syscall.c.
11724         (_initialize_breakpoint): Move code related to syscall catchpoints
11725         to break-catch-syscall.c.
11727 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
11729         * breakpoint.c (breakpoint_find_if): New function.
11730         * breakpoint.h (breakpoint_find_if): New prototype.
11732 2015-03-11  Gary Benson <gbenson@redhat.com>
11734         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
11735         * remote-fileio.c (remote_fileio_to_host_uint): New function.
11736         (remote_fileio_to_host_ulong): Likewise.
11737         (remote_fileio_to_host_mode): Likewise.
11738         (remote_fileio_to_host_time): Likewise.
11739         (remote_fileio_to_host_stat): Likewise.
11740         * remote.c (PACKET_vFile_fstat): New enum value.
11741         (remote_protocol_features): Register the "vFile:fstat" feature.
11742         (remote_hostio_fstat): New function.
11743         (remote_bfd_iovec_stat): Use the above.
11744         (_initialize_remote): Register new "set/show remote
11745         hostio-fstat-packet" command.
11746         * symfile.c (separate_debug_file_exists): Update comment.
11747         * NEWS: Announce new vFile:fstat packet.
11749 2015-03-11  Gary Benson <gbenson@redhat.com>
11751         * common/common-remote-fileio.h: New file.
11752         * common/common-remote-fileio.c: Likewise.
11753         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11754         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
11755         (COMMON_OBS): Add common-remote-fileio.o.
11756         (common-remote-fileio.o): New rule.
11757         * remote-fileio.h (common-remote-fileio.h): New include.
11758         * remote-fileio.c (gdb/fileio.h): Do not include.
11759         (remote_fileio_to_be): Moved to common-remote-fileio.h.
11760         (remote_fileio_to_fio_uint): Likewise.
11761         (remote_fileio_to_fio_time): Likewise.
11762         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
11763         (remote_fileio_to_fio_mode): Likewise.
11764         (remote_fileio_to_fio_ulong): Likewise.
11765         (remote_fileio_to_fio_stat): Likewise.
11767 2015-03-11  Andy Wingo  <wingo@igalia.com>
11769         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
11770         we were checking the cached type, not the cached dynamic type.
11772 2015-03-11  Andy Wingo  <wingo@igalia.com>
11774         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
11775         other strings, as these are on the GC'd heap, and will be
11776         collected along with the smob.
11778 2015-03-11  Andy Wingo  <wingo@igalia.com>
11780         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
11781         (objfile_functions): Bind gdbscm_objfile_progspace to
11782         objfile-progspace.
11783         * guile/lib/gdb.scm: Add objfile-progspace to exports.
11785 2015-03-11  Andy Wingo  <wingo@igalia.com>
11787         * guile/guile.c (_initialize_guile): Disable automatic
11788         finalization, if Guile offers us that possibility.
11789         * guile/guile.c (call_initialize_gdb_module):
11790         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
11791         finalizers in appropriate places.
11792         * configure.ac (AC_TRY_LIBGUILE): Add a check for
11793         scm_set_automatic_finalization_enabled.
11794         * configure: Regenerated.
11796 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11798         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
11799         SAL, if possible.
11801 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11803         * s390-linux-nat.c (struct arch_lwp_info): New.
11804         (s390_fix_watch_points): Rename to...
11805         (s390_prepare_to_resume): ...this.  Skip the PER info update
11806         unless the watch points have changed.
11807         (s390_refresh_per_info, s390_new_thread): New functions.
11808         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
11809         s390_fix_watch_points.
11810         (s390_remove_watchpoint): Likewise.
11811         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
11812         Register s390_prepare_to_resume.
11814 2015-03-09  Pedro Alves  <palves@redhat.com>
11816         Revert:
11817         2015-03-07  Pedro Alves  <palves@redhat.com>
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.
11823 2015-03-07  Pedro Alves  <palves@redhat.com>
11825         * configure.ac (build_warnings): Move -Wmissing-prototypes
11826         -Wdeclaration-after-statement -Wmissing-parameter-type
11827         -Wold-style-declaration -Wold-style-definition to the C-specific
11828         set.
11829         * configure: Regenerate.
11831 2015-03-07  Pedro Alves  <palves@redhat.com>
11833         * common/gdb_socket.h: New file.
11834         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
11835         sys/socket.h.
11836         (net_open): Use union gdb_sockaddr_u.
11838 2015-03-07  Pedro Alves  <palves@redhat.com>
11840         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
11841         (exceptions_state_mc_action_iter)
11842         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11843         Don't define.
11844         [__cplusplus] (try_scope_depth): New global.
11845         [__cplusplus] (exception_try_scope_entry)
11846         (exception_try_scope_exit, gdb_exception_sliced_copy)
11847         (exception_rethrow): New functions.
11848         (throw_exception): In C++ mode, throw
11849         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
11850         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
11851         (throw_it): In C++ mode, use try_scope_depth.
11852         * common/common-exceptions.h [!__cplusplus]
11853         (exceptions_state_mc_action_iter)
11854         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11855         Don't declare.
11856         [__cplusplus] (exception_try_scope_entry)
11857         (exception_try_scope_exit, exception_rethrow): Declare.
11858         [__cplusplus] (struct exception_try_scope): New struct.
11859         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
11860         C++ exceptions.
11861         (struct gdb_exception_RETURN_MASK_ALL)
11862         (struct gdb_exception_RETURN_MASK_ERROR)
11863         (struct gdb_exception_RETURN_MASK_QUIT): New types.
11865 2015-03-07  Pedro Alves  <palves@redhat.com>
11867         * main.c (handle_command_errors): Remove volatile qualifier from
11868         parameter.
11870 2015-03-07  Pedro Alves  <palves@redhat.com>
11872         * breakpoint.c (save_breakpoints): Adjust to avoid code between
11873         TRY and CATCH.
11874         * gdbtypes.c (safe_parse_type): Remove empty line.
11875         (types_deeply_equal):
11876         * guile/scm-frame.c (gdbscm_frame_name):
11877         * linux-thread-db.c (find_new_threads_once):
11878         * python/py-breakpoint.c (bppy_get_commands):
11879         * record-btrace.c (record_btrace_insert_breakpoint)
11880         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
11881         (record_btrace_start_replaying): Adjust to avoid code between TRY
11882         and CATCH.
11884 2015-03-07  Pedro Alves  <palves@redhat.com>
11886         * common/common-exceptions.c (struct catcher) <exception>: No
11887         longer a pointer to volatile exception.  Now an exception value.
11888         <mask>: Delete field.
11889         (exceptions_state_mc_init): Remove all parameters.  Adjust.
11890         (exceptions_state_mc): No longer pop the catcher here.
11891         (exceptions_state_mc_catch): New function.
11892         (throw_exception): Adjust.
11893         * common/common-exceptions.h (exceptions_state_mc_init): Remove
11894         all parameters.
11895         (exceptions_state_mc_catch): Declare.
11896         (TRY_CATCH): Rename to ...
11897         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
11898         (CATCH, END_CATCH): New.
11899         All callers adjusted.
11901 2015-03-07  Tom Tromey  <tromey@redhat.com>
11903         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
11905 2015-03-07  Pedro Alves  <palves@redhat.com>
11907         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11908         (amd64_epilogue_frame_cache): Normal exception handling code.
11909         * break-catch-throw.c (check_status_exception_catchpoint)
11910         (re_set_exception_catchpoint): Ditto.
11911         * cli/cli-interp.c (safe_execute_command):
11912         * cli/cli-script.c (script_from_file): Ditto.
11913         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
11914         Ditto.
11915         * compile/compile-object-run.c (compile_object_run): Ditto.
11916         * cp-abi.c (baseclass_offset): Ditto.
11917         * cp-valprint.c (cp_print_value): Ditto.
11918         * exceptions.c (catch_exceptions_with_msg):
11919         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
11920         * frame.c (get_frame_address_in_block_if_available): Ditto.
11921         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11922         (i386_sigtramp_frame_cache): Ditto.
11923         * infcmd.c (post_create_inferior): Ditto.
11924         * linespec.c (parse_linespec, find_linespec_symbols):
11925         * p-valprint.c (pascal_object_print_value): Ditto.
11926         * parse.c (parse_expression_for_completion): Ditto.
11927         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
11928         * remote.c (remote_get_noisy_reply): Ditto.
11929         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
11930         * solib-svr4.c (solib_svr4_r_map): Ditto.
11932 2015-03-06  Gary Benson  <gbenson@redhat.com>
11934         * common/common-utils.h (startswith): New inline function.
11935         All places where this logic was used updated to use the above.
11937 2015-03-05  Pedro Alves  <palves@redhat.com>
11939         PR gdb/18002
11940         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
11941         after reading the breakpoint's shadow memory.
11943 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
11945         * hppabsd-nat.c: Remove file.
11946         * hppaobsd-nat.c: New file.
11947         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
11948         hppaobsd-nat.c.
11949         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
11950         hppaobsd-nat.o.
11952 2015-03-04  Pedro Alves  <palves@redhat.com>
11954         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
11955         (target_decr_pc_after_break): Delete declaration.
11956         * target.c (default_target_decr_pc_after_break)
11957         (target_decr_pc_after_break): Delete.
11958         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
11959         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
11960         * linux-thread-db.c (check_event): Likewise.
11961         * infrun.c (adjust_pc_after_break): Likewise.
11962         * darwin-nat.c (cancel_breakpoint): Likewise.
11963         * aix-thread.c (aix_thread_wait): Likewise.
11964         * target-delegates.c: Regenerate.
11966 2015-03-04  Pedro Alves  <palves@redhat.com>
11968         * linux-nat.c (save_sigtrap): Check for breakpoints before
11969         checking watchpoints.
11970         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11971         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11972         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
11973         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
11974         (linux_nat_stopped_by_sw_breakpoint)
11975         (linux_nat_supports_stopped_by_sw_breakpoint)
11976         (linux_nat_stopped_by_hw_breakpoint)
11977         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
11978         (linux_nat_wait_1): Don't re-increment the PC if relying on
11979         SIGTRAP's siginfo->si_code.
11980         (linux_nat_add_target): Install new target methods.
11981         * linux-thread-db.c (check_event): Don't account for breakpoint PC
11982         offset if the target already adjusted the PC.
11983         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
11984         (GDB_ARCH_TRAP_BRKPT): New.
11985         (TRAP_HWBKPT): Define if not already defined.
11987 2015-03-04  Pedro Alves  <palves@redhat.com>
11989         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
11990         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
11991         Delete field.
11992         <stop_reason>: New field.
11993         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
11994         (packet_set_cmd_state): New function.
11995         (remote_protocol_features): Register the "swbreak" and "hwbreak"
11996         features.
11997         (remote_query_supported): If not disabled with the corresponding
11998         "set remote foo-packet" command, report support for the swbreak
11999         and hwbreak features.
12000         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
12001         field.
12002         <stop_reason>: New field.
12003         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
12004         (remote_wait_as): Adjust.
12005         (remote_stopped_by_sw_breakpoint)
12006         (remote_supports_stopped_by_sw_breakpoint)
12007         (remote_stopped_by_hw_breakpoint)
12008         (remote_supports_stopped_by_hw_breakpoint): New functions.
12009         (remote_stopped_by_watchpoint): New function.
12010         (init_remote_ops): Install them.
12011         (_initialize_remote): Register new "set/show remote
12012         swbreak-feature-packet" and "set/show remote
12013         swbreak-feature-packet" commands.
12015 2015-03-04  Pedro Alves  <palves@redhat.com>
12017         * btrace.h: Include target/waitstatus.h.
12018         (struct btrace_thread_info) <stop_reason>: New field.
12019         * record-btrace.c (record_btrace_step_thread): Use
12020         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
12021         (record_btrace_decr_pc_after_break): Delete.
12022         (record_btrace_stopped_by_sw_breakpoint)
12023         (record_btrace_supports_stopped_by_sw_breakpoint)
12024         (record_btrace_stopped_by_hw_breakpoint)
12025         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
12026         (init_record_btrace_ops): Install them.
12027         * record-full.c (record_full_hw_watchpoint): Delete and replace
12028         with ...
12029         (record_full_stop_reason): ... this throughout.
12030         (record_full_exec_insn): Adjust.
12031         (record_full_wait_1): Adjust.  No longer re-increment the PC.
12032         (record_full_wait_1): Adjust.  Use
12033         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
12034         (record_full_stopped_by_watchpoint): Adjust.
12035         (record_full_stopped_by_sw_breakpoint)
12036         (record_full_supports_stopped_by_sw_breakpoint)
12037         (record_full_supports_stopped_by_sw_breakpoint)
12038         (record_full_stopped_by_hw_breakpoint)
12039         (record_full_supports_stopped_by_hw_breakpoint): New functions.
12040         (init_record_full_ops, init_record_full_core_ops): Install them.
12041         * record.c (record_check_stopped_by_breakpoint): New function.
12042         * record.h: Include target/waitstatus.h.
12043         (record_check_stopped_by_breakpoint): New declaration.
12045 2015-03-04  Pedro Alves  <palves@redhat.com>
12047         enum lwp_stop_reason -> enum target_stop_reason
12048         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
12049         (linux_nat_stopped_by_watchpoint, status_callback)
12050         (linux_nat_wait_1): Adjust.
12051         * linux-nat.h (enum lwp_stop_reason): Delete.
12052         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12053         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12054         * target/waitstatus.h (enum target_stop_reason): New.
12056 2015-03-04  Pedro Alves  <palves@redhat.com>
12058         * breakpoint.c (need_moribund_for_location_type): New function.
12059         (bpstat_stop_status): Don't skipping checking moribund locations
12060         of breakpoint types which the target tell caused a stop.
12061         (program_breakpoint_here_p): New function, factored out from ...
12062         (bp_loc_is_permanent): ... this.
12063         (update_global_location_list): Don't create a moribund location if
12064         the target supports reporting stops of the type of the removed
12065         breakpoint.
12066         * breakpoint.h (program_breakpoint_here_p): New declaration.
12067         * infrun.c (adjust_pc_after_break): Return early if the target has
12068         already adjusted the PC.  Add comments.
12069         (handle_signal_stop): If nothing explains a signal, and the target
12070         tells us the stop was caused by a software breakpoint, check if
12071         there's a breakpoint instruction in the memory.  If so, adjust the
12072         PC before presenting the stop to the user.  Otherwise, ignore the
12073         trap.  If nothing explains a signal, and the target tells us the
12074         stop was caused by a hardware breakpoint, ignore the trap.
12075         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
12076         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
12077         to_supports_stopped_by_hw_breakpoint>: New fields.
12078         (target_stopped_by_sw_breakpoint)
12079         (target_supports_stopped_by_sw_breakpoint)
12080         (target_stopped_by_hw_breakpoint)
12081         (target_supports_stopped_by_hw_breakpoint): Define.
12082         * target-delegates.c: Regenerate.
12084 2015-03-04  Pedro Alves  <palves@redhat.com>
12086         * infrun.c (follow_fork_inferior): Use the whole of the
12087         inferior_ptid and pending_follow.related_pid ptids instead of
12088         building ptids from the process components.  Adjust verbose output
12089         to use target_pid_to_str.
12090         * linux-nat.c (linux_child_follow_fork): Use the whole of the
12091         inferior_ptid and pending_follow.related_pid ptids instead of
12092         building ptids from the process components.
12094 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
12096         * inf-ptrace.c [PT_GET_PROCESS_STATE]
12097         (inf_ptrace_insert_fork_catchpoint): New function.
12098         (inf_ptrace_remove_fork_catchpoint): New function.
12099         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
12101 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12103         * s390-linux-tdep.c (s390_register_name): Return empty string
12104         instead of NULL for registers that shouldn't be visible.
12106 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12108         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
12109         XML file for 64-bit targets.
12111 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
12113         * target.h (find_default_create_inferior): Remove declaration.
12114         (find_default_attach): Likewise.
12116 2015-03-03  Pedro Alves  <palves@redhat.com>
12118         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
12119         Use ptid_get_pid to get the overall process id when resuming all
12120         threads.
12122 2015-03-03  Pedro Alves  <palves@redhat.com>
12124         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
12125         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
12126         * inf-ptrace.c (get_ptrace_pid): New function.
12127         (inf_ptrace_resume): Use it.
12128         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
12129         to the lower layer.
12131 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
12133         * nat/linux-btrace.c: Include sys/utsname.h.
12134         (linux_determine_kernel_ptr_bits): New.
12135         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
12136         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
12137         ptr_bits.
12139 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
12141         * btrace.c (ftrace_update_function): Treat return as tailcall for
12142         "_dl_runtime_resolve".
12144 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
12146         * btrace.h (btrace_function) <lbegin, lend>: Remove.
12147         * btrace.c (ftrace_debug): Do not print the line range.
12148         (ftrace_skip_file, ftrace_update_lines): Remove.
12149         (ftrace_new_function): Remove lbegin and lend initialization.
12150         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
12151         * record-btrace.c (btrace_compute_src_line_range): New.
12152         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
12154 2015-03-02  Pedro Alves  <palves@redhat.com>
12156         * infrun.c (follow_exec): Delete all threads of the process except
12157         the event thread.  Extended comments.
12159 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
12161         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
12163 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
12165         * utils.h: Remove <stdbool.h> #include.
12166         (producer_is_gcc): Change return type to "int".
12167         * utils.c (producer_is_gcc): Change return type to int.
12168         Return 1 instead of true, and 0 instead of false.
12169         Adjust function documentation accordingly.
12171 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12173         * s390-linux-nat.c (have_regset_vxrs): New static variable.
12174         (s390_linux_fetch_inferior_registers): Handle vector registers, if
12175         present.
12176         (s390_linux_store_inferior_registers): Likewise.
12177         (s390_get_hwcap): Remove function.  Embed its logic...
12178         (s390_read_description): ...here.  Yield a target description with
12179         vector registers if applicable.
12180         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
12181         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
12182         "features/s390x-tevx-linux64.c".
12183         (struct gdbarch_tdep) <v0_full_regnum>: New field.
12184         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
12185         for "GNU/Linux-specific registers".
12186         (s390_dwarf_reg_r0l): New enum value.
12187         (s390_dwarf_reg_to_regnum): Support vector registers.
12188         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
12189         of GPR lower halves.
12190         (regnum_is_vxr_full): New function.
12191         (s390_register_name): New function.
12192         (s390_pseudo_register_name): Handle v0-v15, which are composed of
12193         f0-f15 and v0l-v15l.
12194         (s390_pseudo_register_type): Likewise.
12195         (s390_pseudo_register_read): Likewise.
12196         (s390_pseudo_register_write): Likewise.
12197         (s390_value_from_register): Account for the fact that values are
12198         placed left-justified in vector registers.
12199         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
12200         the vector reggroup and omit them from the general reggroup.
12201         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
12202         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
12203         (s390_iterate_over_regset_sections): Add iterations for the two
12204         new vector regsets.
12205         (s390_core_read_description): Yield a target description with
12206         vector registers if applicable.
12207         (s390_gdbarch_init): Handle target descriptions with vector
12208         registers.  Add "register_name" gdbarch method.
12209         (_initialize_s390_tdep): Call new tdesc initialization functions.
12210         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
12211         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
12212         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
12213         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
12214         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
12215         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
12216         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
12217         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
12218         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
12219         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
12220         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
12221         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
12222         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
12223         (S390_NUM_REGS): Adjust value.
12224         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
12225         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12226         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
12227         * NEWS: Announce S/390 vector register support.
12229 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12231         * features/s390-tevx-linux64.xml: New file.
12232         * features/s390-vx-linux64.xml: New file.
12233         * features/s390-vx.xml: New file.
12234         * features/s390x-tevx-linux64.xml: New file.
12235         * features/s390x-vx-linux64.xml: New file.
12236         * features/Makefile (WHICH): Add s390-vx-linux64,
12237         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
12238         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
12239         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
12240         macros.
12241         * features/s390-tevx-linux64.c: New generated file.
12242         * features/s390-vx-linux64.c: Likewise.
12243         * features/s390x-tevx-linux64.c: Likewise.
12244         * features/s390x-vx-linux64.c: Likewise.
12245         * regformats/s390-tevx-linux64.dat: Likewise.
12246         * regformats/s390-vx-linux64.dat: Likewise.
12247         * regformats/s390x-tevx-linux64.dat: Likewise.
12248         * regformats/s390x-vx-linux64.dat: Likewise.
12250 2015-02-28  Doug Evans  <xdje42@gmail.com>
12252         * symtab.h (struct symtab) <next>: Fix comment.
12254 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
12256         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
12257         python_GdbMethods.
12259 2015-02-27  Pedro Alves  <palves@redhat.com>
12261         * dtrace-probe.c (dtrace_probe_ops): Make extern.
12263 2015-02-27  Pedro Alves  <palves@redhat.com>
12265         * common/common-exceptions.h (exception_none): Declare.
12266         * common/common-exceptions.c (exception_none): Moved from
12267         exceptions.c.
12268         (exceptions_state_mc_init): Use exception_none.
12269         * exceptions.c (exception_none): Move to
12270         common/common-exceptions.c.
12271         * exceptions.h (exception_none): Move to
12272         common/common-exceptions.h.
12274 2015-02-27  Pedro Alves  <palves@redhat.com>
12276         * main.c (catch_command_errors, catch_command_errors_const):
12277         Remove 'mask' argument.  Adjust.
12278         (captured_main): Adjust callers.
12280 2015-02-27  Pedro Alves  <palves@redhat.com>
12282         * python/python-internal.h: Include "extension-priv.h".
12284 2015-02-27  Pedro Alves  <palves@redhat.com>
12286         * breakpoint.h (enum print_stop_action): Move further up in the
12287         file.
12289 2015-02-27  Pedro Alves  <palves@redhat.com>
12291         * gdbarch.sh: Include regcache.h.
12292         * gdbarch.h: Regenerate.
12294 2015-02-27  Pedro Alves  <palves@redhat.com>
12296         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
12297         Remove duplicate const.
12298         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
12299         duplicate const.
12301 2015-02-27  Pedro Alves  <palves@redhat.com>
12303         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
12304         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
12305         * features/feature_to_c.sh: Tag the generated xml_builtin array
12306         with extern const in C++ mode.
12308 2015-02-27  Tom Tromey  <tromey@redhat.com>
12310         * minidebug.c (struct lzma_stream): Rename to ...
12311         (struct gdb_lzma_stream): ... this.
12312         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
12314 2015-02-27  Pedro Alves  <palves@redhat.com>
12316         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
12317         function.
12318         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
12319         (mi_cmd_stack_list_variables): Use it.
12321 2015-02-27  Pedro Alves  <palves@redhat.com>
12323         * x86-linux-nat.c (u_debugreg_offset): New function.
12324         (x86_linux_dr_get, x86_linux_dr_set): Use it.
12326 2015-02-27  Pedro Alves  <palves@redhat.com>
12328         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
12329         declaration.
12330         Include break-common.h.
12332 2015-02-27  Tom Tromey  <tromey@redhat.com>
12333             Pedro Alves <palves@redhat.com>
12335         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
12336         local used to iterate over enums.
12337         * completer.c (signal_completer): Likewise.
12338         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
12339         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
12340         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
12341         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
12342         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
12343         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
12344         * tui-wingeneral.c (tui_refresh_all):  Likewise.
12346 2015-02-27  Pedro Alves  <palves@redhat.com>
12348         * target.h: Include "infrun.h".
12350 2015-02-27  Pedro Alves  <palves@redhat.com>
12352         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12354 2015-02-27  Pedro Alves  <palves@redhat.com>
12356         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
12357         (IPA_SYM): Use it.
12358         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
12360 2015-02-27  Pedro Alves  <palves@redhat.com>
12362         * cli-out.c (_rl_erase_entire_line): Move declaration out of
12363         cli_mld_erase_entire_line, and make it extern "C".
12364         * common/common-defs.h (EXTERN_C): New.
12365         * completer.c (_rl_completion_prefix_display_length)
12366         (_rl_print_completions_horizontally, QSFUNC): Move declarations
12367         out of gdb_display_match_list_1.
12368         (_rl_qsort_string_compare): Move declaration out of
12369         gdb_display_match_list_1, and make it extern "C".
12370         * defs.h (re_comp): Use EXTERN_C.
12371         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
12372         and make it extern "C".
12373         (monstartup): Move declaration out of maintenance_set_profile_cmd,
12374         and make it extern "C".
12375         (main): Move declaration out of maintenance_set_profile_cmd.
12376         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
12377         EXTERN_C.
12379 2015-02-27  Pedro Alves  <palves@redhat.com>
12381         * python/python.c (GdbMethods): Rename to ...
12382         (python_GdbMethods): ... this and make extern.
12383         (GdbModuleDef): Rename to ...
12384         (python_GdbModuleDef): ... this and make extern.
12386 2015-02-27  Pedro Alves  <palves@redhat.com>
12388         * record-btrace.c (set_record_btrace_cmdlist)
12389         (show_record_btrace_cmdlist): Remove redefinitions.
12391 2015-02-27  Tom Tromey  <tromey@redhat.com>
12392             Pedro Alves  <palves@redhat.com>
12394         * dwarf2-frame.c (enum cfa_how_kind, struct
12395         dwarf2_frame_state_reg_info): Move out of struct
12396         dwarf2_frame_state.
12397         * dwarf2read.c (struct tu_stats): Move out of struct
12398         dwarf2_per_objfile.
12399         (struct file_entry): Move out of struct line_header.
12400         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
12401         typedef_field_list): Move out of struct field_info.
12402         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
12403         Move out of struct dynamic_prop.
12404         (union type_owner, union field_location, struct field, struct
12405         range_bounds, union type_specific): Move out of struct main_type.
12406         (struct fn_fieldlist, struct fn_field, struct typedef_field)
12407         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
12408         (struct call_site_target, union call_site_parameter_u, struct
12409         call_site_parameter): Move out of struct call_site.
12410         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
12411         m32c_prologue.
12412         (enum srcdest_kind): Move out of struct srcdest.
12413         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
12414         * prologue-value.h (enum prologue_value_kind): Move out of struct
12415         prologue_value.
12416         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
12417         gdbarch_tdep.
12418         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
12419         out of struct field_info.
12420         * symfile.h (struct other_sections): Move out of struct
12421         section_addr_info.
12422         * symtab.c (struct symbol_cache_slot): Move out struct
12423         block_symbol_cache.
12424         * target-descriptions.c (enum tdesc_type_kind): Move out of
12425         typedef struct tdesc_type.
12426         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
12427         struct tui_line_or_address.
12428         * value.c (enum internalvar_kind, union internalvar_data): Move
12429         out of struct internalvar.
12430         * xtensa-tdep.h (struct ctype_cache): Move out of struct
12431         gdbarch_tdep.
12433 2015-02-27  Tom Tromey  <tromey@redhat.com>
12434             Pedro Alves  <palves@redhat.com>
12436         Rename symbols whose names are reserved C++ keywords throughout.
12438 2015-02-27  Pedro Alves  <palves@redhat.com>
12440         * Makefile.in (COMPILER): New, get it from autoconf.
12441         (COMPILE.pre, CC_LD): Use COMPILER.
12442         (CXX): Get from autoconf instead.
12443         (CXX_FOR_TARGET): Default to g++ instead of gcc.
12444         * acinclude.m4: Include build-with-cxx.m4.
12445         * build-with-cxx.m4: New file.
12446         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12447         Disable -Werror by default if building in C++ mode.
12448         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12449         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
12450         Run supported-warning-flags tests with the C++ compiler.
12451         Save/restore CXXFLAGS too.
12452         * configure: Regenerate.
12454 2015-02-27  Pedro Alves  <palves@redhat.com>
12456         * libiberty.m4: New file.
12457         * acinclude.m4: Include libiberty.m4.
12458         * configure.ac: Call libiberty_INIT.
12459         * config.in, configure: Regenerate.
12461 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12463         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
12464         31-bit targets, but 64-bit targets as well.
12465         (s390_gnu_triplet_regexp): New function.
12466         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
12467         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
12468         method.
12470 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
12472         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
12473         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
12474         from CONTEXT_DEBUGGER.
12476 2015-02-26  Doug Evans  <dje@google.com>
12478         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
12479         CHECK_TYPEDEF.
12480         (set_type_vptr_fieldno): Ditto.
12481         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
12482         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
12484 2015-02-26  Pedro Alves  <palves@redhat.com>
12486         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
12487         * complaints.c (vcomplaint): Pass argument FMT directly to
12488         printf-like functions instead of complaint->fmt.
12489         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
12490         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
12491         * compile/compile-loc2c.c (pushf, unary, binary): Add
12492         ATTRIBUTE_PRINTF.
12493         (do_compile_dwarf_expr_to_c): Pass string literal as format string
12494         to pushf.
12495         (BINARY): Pass string literal as format string to 'binary'.
12496         * compile/compile-object-load.c (link_callbacks_einfo): Add
12497         ATTRIBUTE_PRINTF.
12498         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
12500 2015-02-26  Pedro Alves  <palves@redhat.com>
12502         * windows-termcap.c: Rename to ...
12503         * stub-termcap.c: ... this.  Adjust header line.
12504         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
12505         windows-termcap.c.
12506         * configure: Regenerate.
12507         * configure.ac: Refer to stub-termcap.o instead of
12508         windows-termcap.o.
12509         * gdb_curses.h: Mention stub-termcap.c instead of
12510         windows-termcap.c.
12512 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
12514         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
12515         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
12517 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
12519         * infcmd.c (print_return_value): use type_to_string to print type.
12521 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
12523         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
12524         bfd_canonicalize_symtab.
12526 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
12528         * amd64fbsd-nat.c: Include sys/user.h.
12529         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12530         instead of KERN_PS_STRINGS to locate the signal trampoline.
12531         * i386fbsd-nat.c: Include sys/user.h.
12532         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12533         instead of KERN_PS_STRINGS to locate the signal trampoline.
12534         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
12535         (amd64fbsd_sigtramp_p): New.
12536         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
12537         longer set default values.
12538         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
12539         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
12540         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
12541         (i386fbsd_freebsd4_sigtramp_start)
12542         (i386fbsd_freebsd4_sigtramp_middle)
12543         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
12544         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
12545         (i386fbsd_sigtramp_p): New.
12546         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
12547         longer set default values.
12548         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
12550 2015-02-25  John Baldwin  <jhb@freebsd.org>
12552         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
12553         get_frame_register instead of frame_unwind_register_unsigned.
12555 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
12557         PR build/18033
12558         * compile/compile-c-support.c (c_compute_program): Change // comment.
12559         * compile/compile-object-load.c (setup_sections): Change // comment.
12561 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
12563         PR build/18033:
12564         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
12566 2015-02-23  Pedro Alves  <palves@redhat.com>
12568         * remote.c (skip_to_semicolon): New function.
12569         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
12570         special case the stop reasons that look like hex numbers
12571         upfront.  Instead handle real register numbers after matching
12572         all the known stop reasons.
12574 2015-02-21  Doug Evans  <dje@google.com>
12576         PR c++/17976, symtab/17821
12577         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
12578         is_in_anonymous.  All callers updated.
12579         (find_symbol_in_baseclass): Ditto.
12580         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
12581         for symbols in an anonymous namespace.
12582         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
12583         DW_AT_name directly.
12584         (dwarf2_name): Convert missing namespace name to
12585         CP_ANONYMOUS_NAMESPACE_STR.
12587 2015-02-20  Pedro Alves  <palves@redhat.com>
12589         * linux-nat.c (linux_handle_extended_wait): Call
12590         thread_db_notice_clone whenever a new clone LWP is detected.
12591         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
12592         functions.
12593         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
12594         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
12595         (linux_unstop_all_lwps): Declare.
12596         * linux-thread-db.c (struct thread_get_info_inout): Delete.
12597         (thread_get_info_callback): Delete.
12598         (thread_from_lwp): Use td_thr_get_info and record_thread.
12599         (thread_db_attach_lwp): Delete.
12600         (thread_db_notice_clone): New function.
12601         (try_thread_db_load_1): If /proc is mounted and shows the
12602         process'es task list, walk over all LWPs and call thread_from_lwp
12603         instead of relying on td_ta_thr_iter.
12604         (attach_thread): Don't call check_thread_signals here.  Split the
12605         tail part of the function (which adds the thread to the core GDB
12606         thread list) to ...
12607         (record_thread): ... this function.  Call check_thread_signals
12608         here.
12609         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
12610         call thread_from_lwp.
12611         (thread_db_update_thread_list): Rename to ...
12612         (thread_db_update_thread_list_org): ... this.
12613         (thread_db_update_thread_list): New function.
12614         (thread_db_find_thread_from_tid): Delete.
12615         (thread_db_get_ada_task_ptid): Simplify.
12616         * nat/linux-procfs.c: Include <sys/stat.h>.
12617         (linux_proc_task_list_dir_exists): New function.
12618         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
12620 2015-02-20  Pedro Alves  <palves@redhat.com>
12622         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
12623         main LWP.  Handle the case of waitpid returning 0 if we're already
12624         attached to the LWP.  Don't set the LWP's last_resume_kind to
12625         resume_stop if we already knew about the LWP.
12626         (linux_nat_filter_event): Add debug logs.
12628 2015-02-20  Pedro Alves  <palves@redhat.com>
12630         * target.h (forward_target_decr_pc_after_break): Delete
12631         declaration.
12633 2015-02-20  Pedro Alves  <palves@redhat.com>
12635         PR threads/18006
12636         * linux-thread-db.c (thread_get_info_callback): Return early if
12637         the thread's lwp id is -1.
12639 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
12641         GDB 7.9 released.
12643 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
12645         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
12646         (dtrace_get_probes) Change type of variable 'dof'.
12648 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
12650         PR breakpoints/16812
12651         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
12652         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
12653         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
12655 2015-02-19  David Taylor  <dtaylor@emc.com>
12657         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
12659 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
12661         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
12662         function.
12663         (tui_putc): Don't call tui_handle_resize_during_io.
12664         (tui_getc): Likewise.
12665         (tui_mld_getc): Likewise.
12666         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
12667         (tui_sigwinch_token): New static variable.
12668         (tui_initialize_win): Adjust documentation.  Set
12669         tui_sigwinch_token.
12670         (tui_async_resize_screen): New asynchronous callback.
12671         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
12672         invoke tui_async_resize_screen.
12674 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
12676         * configure: Regenerated.
12677         * configure.ac: Use GDB_AC_TRANSFORM.
12678         * Makefile.in (aclocal_m4_deps): Added transform.m4.
12679         * acinclude.m4: sinclude transform.m4.
12680         * transform.m4: New file.
12681         (GDB_AC_TRANSFORM): New macro.
12683 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12685         * NEWS: Announce the support for DTrace SDT probes.
12687 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12689         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
12690         (amd64_dtrace_parse_probe_argument): New function.
12691         (amd64_dtrace_probe_is_enabled): Likewise.
12692         (amd64_dtrace_enable_probe): Likewise.
12693         (amd64_dtrace_disable_probe): Likewise.
12694         (amd64_linux_init_abi): Register the
12695         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
12696         `gdbarch_dtrace_disable_probe' and
12697         `gdbarch_dtrace_probe_is_enabled' hooks.
12698         (amd64_dtrace_disabled_probe_sequence_1): New constant.
12699         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
12700         (amd64_dtrace_enable_probe_sequence): Likewise.
12701         (amd64_dtrace_disable_probe_sequence): Likewise.
12703 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12705         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
12706         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
12707         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
12708         handle ELF files.
12709         * Makefile.in (SFILES): dtrace-probe.c added.
12710         * configure: Regenerate.
12711         * dtrace-probe.c: New file.
12712         (SHT_SUNW_dof): New constant.
12713         (dtrace_probe_type): New enum.
12714         (dtrace_probe_arg): New struct.
12715         (dtrace_probe_arg_s): New typedef.
12716         (struct dtrace_probe_enabler): New struct.
12717         (dtrace_probe_enabler_s): New typedef.
12718         (dtrace_probe): New struct.
12719         (dtrace_probe_is_linespec): New function.
12720         (dtrace_dof_sect_type): New enum.
12721         (dtrace_dof_dofh_ident): Likewise.
12722         (dtrace_dof_encoding): Likewise.
12723         (DTRACE_DOF_ENCODE_LSB): Likewise.
12724         (DTRACE_DOF_ENCODE_MSB): Likewise.
12725         (dtrace_dof_hdr): New struct.
12726         (dtrace_dof_sect): Likewise.
12727         (dtrace_dof_provider): Likewise.
12728         (dtrace_dof_probe): Likewise.
12729         (DOF_UINT): New macro.
12730         (DTRACE_DOF_PTR): Likewise.
12731         (DTRACE_DOF_SECT): Likewise.
12732         (dtrace_process_dof_probe): New function.
12733         (dtrace_process_dof): Likewise.
12734         (dtrace_build_arg_exprs): Likewise.
12735         (dtrace_get_arg): Likewise.
12736         (dtrace_get_probes): Likewise.
12737         (dtrace_get_probe_argument_count): Likewise.
12738         (dtrace_can_evaluate_probe_arguments): Likewise.
12739         (dtrace_evaluate_probe_argument): Likewise.
12740         (dtrace_compile_to_ax): Likewise.
12741         (dtrace_probe_destroy): Likewise.
12742         (dtrace_gen_info_probes_table_header): Likewise.
12743         (dtrace_gen_info_probes_table_values): Likewise.
12744         (dtrace_probe_is_enabled): Likewise.
12745         (dtrace_probe_ops): New variable.
12746         (info_probes_dtrace_command): New function.
12747         (_initialize_dtrace_probe): Likewise.
12748         (dtrace_type_name): Likewise.
12750 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12752         * gdbarch.sh (dtrace_parse_probe_argument): New.
12753         (dtrace_probe_is_enabled): Likewise.
12754         (dtrace_enable_probe): Likewise.
12755         (dtrace_disable_probe): Likewise.
12756         * gdbarch.c: Regenerate.
12757         * gdbarch.h: Regenerate.
12759 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12761         * stap-probe.c (stap_probe_ops): Add NULLs in the static
12762         stap_probe_ops for `enable_probe' and `disable_probe'.
12763         * probe.c (enable_probes_command): New function.
12764         (disable_probes_command): Likewise.
12765         (_initialize_probe): Define the cli commands `enable probe' and
12766         `disable probe'.
12767         (parse_probe_linespec): New function.
12768         (info_probes_for_ops): Use parse_probe_linespec.
12769         * probe.h (probe_ops): New hooks `enable_probe' and
12770         `disable_probe'.
12772 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12774         * probe.c (compute_probe_arg): Moved from stap-probe.c
12775         (compile_probe_arg): Likewise.
12776         (probe_funcs): Likewise.
12777         * stap-probe.c (compute_probe_arg): Moved to probe.c.
12778         (compile_probe_arg): Likewise.
12779         (probe_funcs): Likewise.
12781 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
12783         * probe.c (print_ui_out_not_applicables): New function.
12784         (exists_probe_with_pops): Likewise.
12785         (info_probes_for_ops): Do not include column headers for probe
12786         types for which no probe has been actually found on any object.
12787         Also invoke `print_ui_out_not_applicables' in order to match the
12788         column rows with the header when probes of several types are
12789         listed.
12790         Print the "Type" column.
12791         * probe.h (probe_ops): Added a new probe operation `type_name'.
12792         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
12793         (stap_type_name): New function.
12795 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
12797         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
12798         (key_is_command_char): Delete.
12800 2015-02-17  Pedro Alves  <palves@redhat.com>
12802         * tui/tui.c (tui_enable): Resize windows before anything
12803         might show a window.
12805 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
12807         PR gdb/17984
12808         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
12809         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
12810         call.
12811         * aarch64-tdep.h (tdesc_aarch64): Declare.
12813 2015-02-12  Mark Wielaard  <mjw@redhat.com>
12815         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
12817 2015-02-13  Doug Evans  <dje@google.com>
12819         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
12820         anonymous_namespace to is_in_anonymous for consistency with the rest
12821         of the file.
12822         (cp_lookup_bare_symbol): Fix typo in comment.
12823         (cp_search_static_and_baseclasses): Ditto.
12824         (search_symbol_list): Use vertical space in comment better.
12825         (reset_directive_searched): Ditto. Fix typo.
12826         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
12828 2015-02-13  Yao Qi  <yao.qi@arm.com>
12830         * MAINTAINERS: Update my email address.
12832 2015-02-12  Doug Evans  <dje@google.com>
12834         * symtab.c (completion_list_add_name): Fix memory leak.
12836 2015-02-12  Doug Evans  <dje@google.com>
12838         * completer.c (complete_line): Remove incorrect comment.
12840 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12842         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
12843         (py_print_frame): Use RETURN_MASK_ERROR.
12845 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12847         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
12848         function comment.  Wrap all function that can throw in cleanups.
12849         (gdbpy_apply_frame_filter): Wrap all function that can throw in
12850         cleanups.
12852 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12854         * python/py-framefilter.c (py_print_frame): Substitute goto error.
12855         Remove the error label.
12857 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12859         * python/py-framefilter.c (py_print_frame): Put conditional code paths
12860         with goto first, indent the former else codepath left.  Put variable
12861         'elided' to a new inner block.
12863 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12865         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
12867 2015-02-11  Pedro Alves  <palves@redhat.com>
12869         * xcoffread.c (within_function): Delete.
12871 2015-02-11  Tom Tromey  <tromey@redhat.com>
12872             Pedro Alves <palves@redhat.com>
12874         * breakpoint.c (base_breakpoint_ops): Delete.
12875         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
12876         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
12877         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
12878         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
12879         * python/py-arch.c (arch_object_type): Make extern.
12880         * python/py-block.c (block_syms_iterator_object_type): Make extern.
12881         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
12882         * python/py-cmd.c (cmdpy_object_type): Make extern.
12883         * python/py-continueevent.c (continue_event_object_type)
12884         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
12885         parameter.  Update all callers.
12886         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
12887         * python/py-exitedevent.c (exited_event_object_type): Make extern.
12888         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
12889         * python/py-function.c (fnpy_object_type): Make extern.
12890         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
12891         * python/py-infevents.c (call_pre_event_object_type)
12892         (inferior_call_post_event_object_type).
12893         (memory_changed_event_object_type): Make extern.
12894         * python/py-infthread.c (thread_object_type): Make extern.
12895         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
12896         * python/py-linetable.c (linetable_entry_object_type)
12897         (linetable_object_type, ltpy_iterator_object_type): Make extern.
12898         * python/py-newobjfileevent.c (new_objfile_event_object_type)
12899         (clear_objfiles_event_object_type): Make extern.
12900         * python/py-objfile.c (objfile_object_type): Make extern.
12901         * python/py-param.c (parmpy_object_type): Make extern.
12902         * python/py-progspace.c (pspace_object_type): Make extern.
12903         * python/py-signalevent.c (signal_event_object_type): Make extern.
12904         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
12905         * python/py-type.c (type_object_type, field_object_type)
12906         (type_iterator_object_type): Make extern.
12907         * python/python.c (python_extension_script_ops)
12908         (python_extension_ops): Make extern.
12909         * stap-probe.c (stap_probe_ops): Make extern.
12911 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
12913         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
12914         because the event thread is not the current thread.
12916 2015-02-11  Doug Evans  <xdje42@gmail.com>
12918         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
12919         been initialized yet, return NULL.
12921 2015-02-11  Doug Evans  <dje@google.com>
12923         * symfile.h (new_symfile_objfile): Delete.
12924         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
12925         All callers updated.
12927 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
12929         * tui/tui-io.c (tui_handle_resize_during_io): Call
12930         tui_update_gdb_sizes() after resizing the screen.
12931         * tui/tui.c (tui_enable): Resize the terminal before
12932         calling tui_update_gdb_sizes().
12934 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
12936         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
12937         line before printing a newline.
12939 2015-02-11  Mark Wielaard  <mjw@redhat.com>
12941         * utils.c (producer_is_gcc): Return true or false.
12943 2015-02-10  Mark Wielaard  <mjw@redhat.com>
12945         * utils.h (producer_is_gcc): Change return type to bool. Add major
12946         argument.
12947         * utils.c (producer_is_gcc): Likewise.
12948         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
12949         * dwarf2read.c (check_producer): Likewise.
12951 2015-02-10  Pedro Alves  <palves@redhat.com>
12953         * infrun.c (displaced_step_fixup): Switch to the event thread
12954         before calling gdbarch_displaced_step_fixup.
12956 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
12958         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
12960 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
12962         * ada-varobj.c (ada_name_of_child): Constify parent.
12963         (ada_path_expr_of_child): Same.
12964         (ada_value_of_child): Same.
12965         (ada_type_of_child): Same.
12966         * c-varobj.c (c_is_path_expr_parent): Same.
12967         (c_describe_child): Same.
12968         (c_name_of_child): Same.
12969         (c_value_of_child): Same.
12970         (c_type_of_child): Same.
12971         (cplus_number_of_children): Same.
12972         (cplus_describe_child): Constify var.
12973         (cplus_name_of_child): Constify parent.
12974         (cplus_value_of_child): Same.
12975         (cplus_type_of_child): Same.
12976         * jv-varobj.c (java_name_of_child): Same.
12977         (java_value_of_child): Same.
12978         (java_type_of_child): Same.
12979         * varobj.c (value_of_child): Same.
12980         (varobj_default_is_path_expr_parent): Constify var, parent and return
12981         value.
12982         (varobj_get_path_expr): Constify var, modify path_expr through
12983         mutable_var.
12984         (install_new_value): Constify parent.
12985         (value_of_child): Constify parent.
12986         * varobj.h (struct varobj): Constify parent.
12987         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
12988         type_of_child.
12989         (varobj_get_path_expr): Constify var.
12990         (varobj_get_path_expr_parent): Constify var and return value.
12992 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
12994         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
12995         (arm_prologue_this_id): Move PC and SP limit checks to
12996         arm_prologue_unwind_stop_reason.
12997         (arm_prologue_unwind) <stop_reason> : Set to
12998         arm_prologue_unwind_stop_reason.
13000 2015-02-09  Mark Wielaard  <mjw@redhat.com>
13002         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
13003         DW_LANG_Fortran08 as language_fortran.
13005 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
13007         PR remote/17946
13008         * remote.c (remote_parse_stop_reply): Fix wrong comparison
13009         of pointer against char.
13011 2015-02-09  Mark Wielaard  <mjw@redhat.com>
13013         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
13014         (c_type_print_modifier): Likewise.
13015         * dwarf2read.c (read_tag_atomic_type): New function.
13016         (read_type_die_1): Handle DW_TAG_atomic_type.
13017         * gdbtypes.c (make_atomic_type): New function.
13018         (recursive_dump_type): Handle TYPE_ATOMIC.
13019         * gdbtypes.h (enum type_flag_values): Renumber.
13020         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
13021         (TYPE_ATOMIC): New macro.
13022         (make_atomic_type): Declare.
13024 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13026         * btrace.c (ftrace_find_call): Skip gaps.
13027         (ftrace_new_function): Initialize level.
13028         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
13029         (ftrace_new_switch): Update
13030         level computation.
13031         (ftrace_new_gap): New.
13032         (ftrace_update_function): Create new function after gap.
13033         (btrace_compute_ftrace_bts): Create gap on error.
13034         (btrace_stitch_bts): Update parameters.  Clear trace if it
13035         becomes empty.
13036         (btrace_stitch_trace): Update parameters.  Update callers.
13037         (btrace_clear): Reset the number of gaps.
13038         (btrace_insn_get): Return NULL if the iterator points to a gap.
13039         (btrace_insn_number): Return zero if the iterator points to a gap.
13040         (btrace_insn_end): Allow gaps at the end.
13041         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
13042         (btrace_find_insn_by_number): Assert that the found iterator does
13043         not point to a gap.
13044         (btrace_call_next, btrace_call_prev): Assert that the last function
13045         is not a gap.
13046         * btrace.h (btrace_bts_error): New.
13047         (btrace_function): Update comment.
13048         (btrace_function) <insn, insn_offset, number>: Update comment.
13049         (btrace_function) <errcode>: New.
13050         (btrace_thread_info) <ngaps>: New.
13051         (btrace_thread_info) <replay>: Update comment.
13052         (btrace_insn_get): Update comment.
13053         * record-btrace.c (btrace_ui_out_decode_error): New.
13054         (record_btrace_info): Print number of gaps.
13055         (btrace_insn_history, btrace_call_history): Call
13056         btrace_ui_out_decode_error for gaps.
13057         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
13059 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13061         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
13062         * nat/linux-btrace.c: (btrace_this_cpu): New.
13063         (cpu_supports_bts): Call btrace_this_cpu.
13064         (intel_supports_bts): Add cpu parameter.
13066 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13068         * btrace.h (btrace_insn_class): New.
13069         (btrace_insn) <size, iclass>: New.
13070         * btrace.c (ftrace_find_call): Update parameters.  Update users.
13071         Use instruction classification.
13072         (ftrace_new_return): Update parameters.  Update users.
13073         (ftrace_update_function): Update parameters.  Update users.  Use
13074         instruction classification.
13075         (ftrace_update_insns): Update parameters.  Update users.
13076         (ftrace_classify_insn): New.
13077         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
13078         TRY_CATCH around call to gdb_insn_length.
13080 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13082         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
13083         Update parameters.  Update users.
13085 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13087         * btrace.c (parse_xml_btrace_conf_bts): Add size.
13088         (btrace_conf_bts_attributes): New.
13089         (btrace_conf_children): Add attributes.
13090         * common/btrace-common.h (btrace_config_bts): New.
13091         (btrace_config)<bts>: New.
13092         (btrace_config): Update comment.
13093         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
13094         Use config.
13095         * features/btrace-conf.dtd: Increment version.  Add size
13096         attribute to bts element.
13097         * record-btrace.c (set_record_btrace_bts_cmdlist,
13098         show_record_btrace_bts_cmdlist): New.
13099         (record_btrace_adjust_size, record_btrace_print_bts_conf,
13100         record_btrace_print_conf, cmd_set_record_btrace_bts,
13101         cmd_show_record_btrace_bts): New.
13102         (record_btrace_info): Call record_btrace_print_conf.
13103         (_initialize_record_btrace): Add commands.
13104         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
13105         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
13106         (btrace_sync_conf): Synchronize bts size.
13107         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
13108         * NEWS: Announce new commands and new packets.
13110 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13112         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
13113         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
13114         (x86_linux_btrace_conf): New.
13115         (x86_linux_create_target): Initialize to_btrace_conf.
13116         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
13117         Check format.  Split into this and ...
13118         (linux_enable_bts): ... this.
13119         (linux_btrace_conf): New.
13120         (perf_event_skip_record): Renamed into ...
13121         (perf_event_skip_bts_record): ... this.  Updated users.
13122         (linux_disable_btrace): Split into this and ...
13123         (linux_disable_bts): ... this.
13124         (linux_read_btrace): Check format.
13125         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
13126         (linux_btrace_conf): New.
13127         (btrace_target_info)<ptid>: Moved.
13128         (btrace_target_info)<conf>: New.
13129         (btrace_target_info): Split into this and ...
13130         (btrace_tinfo_bts): ... this.  Updated users.
13131         * btrace.c (btrace_enable): Update parameters.
13132         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
13133         (btrace_conf_children, btrace_conf_attributes)
13134         (btrace_conf_elements): New.
13135         * btrace.h (btrace_enable): Update parameters.
13136         (btrace_conf, parse_xml_btrace_conf): New.
13137         * common/btrace-common.h (btrace_config): New.
13138         * feature/btrace-conf.dtd: New.
13139         * record-btrace.c (record_btrace_conf): New.
13140         (record_btrace_cmdlist): New.
13141         (record_btrace_enable_warn, record_btrace_open): Pass
13142         &record_btrace_conf.
13143         (record_btrace_info): Print recording format.
13144         (cmd_record_btrace_bts_start): New.
13145         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
13146         (_initialize_record_btrace): Add "record btrace bts" subcommand.
13147         Add "record bts" alias command.
13148         * remote.c (remote_state)<btrace_config>: New.
13149         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
13150         (remote_protocol_features): Add qXfer:btrace-conf:read.
13151         (remote_open_1): Call remote_btrace_reset.
13152         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
13153         (btrace_target_info)<conf>: New.
13154         (btrace_sync_conf, btrace_read_config): New.
13155         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
13156         btrace_read_conf.
13157         (remote_btrace_conf): New.
13158         (init_remote_ops): Initialize to_btrace_conf.
13159         (_initialize_remote): Add qXfer:btrace-conf packet.
13160         * target.c (target_enable_btrace): Update parameters.
13161         (target_btrace_conf): New.
13162         * target.h (target_enable_btrace): Update parameters.
13163         (target_btrace_conf): New.
13164         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
13165         (target_ops)<to_enable_btrace>: Update parameters and comment.
13166         (target_ops)<to_btrace_conf>: New.
13167         * target-delegates: Regenerate.
13168         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
13169         (target_debug_print_const_struct_btrace_target_info_p): New.
13170         * NEWS: Announce new command and new packet.
13172 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13174         * nat/linux-btrace.h (perf_event_buffer): New.
13175         (btrace_target_info) <buffer, size, data_head>: Replace with ...
13176         <bts>: ... this.
13177         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
13178         (perf_event_buffer_size, perf_event_buffer_begin)
13179         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
13180         Updated users.
13181         (perf_event_new_data): New.
13183 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13185         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
13186         * record-btrace.c (record_btrace_open): Remove call to
13187         target_supports_btrace.
13188         * remote.c (remote_supports_btrace): Update parameters.
13189         * target.c (target_supports_btrace): Update parameters.
13190         * target.h (to_supports_btrace, target_supports_btrace): Update
13191         parameters.
13192         * target-delegates.c: Regenerate.
13193         * target-debug.h (target_debug_print_enum_btrace_format): New.
13194         * nat/linux-btrace.c
13195         (kernel_supports_btrace): Rename into ...
13196         (kernel_supports_bts): ... this.  Update users.  Update warning text.
13197         (intel_supports_btrace): Rename into ...
13198         (intel_supports_bts): ... this.  Update users.
13199         (cpu_supports_btrace): Rename into ...
13200         (cpu_supports_bts): ... this.  Update users.
13201         (linux_supports_btrace): Update parameters.  Split into this and ...
13202         (linux_supports_bts): ... this.
13203         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
13205 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
13207         * Makefile.in (SFILES): Add common/btrace-common.c.
13208         (COMMON_OBS): Add common/btrace-common.o.
13209         (btrace-common.o): Add build rules.
13210         * btrace.c (parse_xml_btrace): Update parameters.
13211         (parse_xml_btrace_block): Set format field.
13212         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
13213         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
13214         (btrace_compute_ftrace): Split into this and...
13215         (btrace_compute_ftrace_bts): ...this.
13216         (btrace_stitch_trace): Split into this and...
13217         (btrace_stitch_bts): ...this.
13218         * btrace.h (parse_xml_btrace): Update parameters.
13219         (make_cleanup_btrace_data): New.
13220         * common/btrace-common.c: New.
13221         * common/btrace-common.h: Include common-defs.h.
13222         (btrace_block_s): Update comment.
13223         (btrace_format): New.
13224         (btrace_format_string): New.
13225         (btrace_data_bts): New.
13226         (btrace_data): New.
13227         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
13228         * remote.c (remote_read_btrace): Update parameters.
13229         * target.c (target_read_btrace): Update parameters.
13230         * target.h (target_read_btrace): Update parameters.
13231         (target_ops)<to_read_btrace>: Update parameters.
13232         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
13233         * target-delegates.c: Regenerate.
13234         * target-debug (target_debug_print_struct_btrace_data_p): New.
13235         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
13236         (linux_read_bts): ...this.
13237         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
13239 2015-02-06  Doug Evans  <dje@google.com>
13241         * remote-m32r-sdi.c: Include symfile.h.
13243 2015-02-06  Doug Evans  <dje@google.com>
13245         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
13246         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
13247         to here.
13249 2015-02-06  Pedro Alves  <palves@redhat.com>
13251         * linux-thread-db.c (find_new_threads_callback): Add debug output.
13253 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
13255         PR gdb/15678
13256         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
13257         (enable_count_command): Check args for NULL value.
13259 2015-02-05  Doug Evans  <xdje42@gmail.com>
13261         * guile/scm-frame.c: Fix spelling errors in a comment.
13263 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
13265         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
13266         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
13267         return type.
13269 2015-02-04  Pedro Alves  <palves@redhat.com>
13271         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
13272         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
13273         returns true.
13274         (resume_stopped_resumed_lwps): Don't check whether the thread is
13275         marked as executing.
13276         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
13278 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13280         * regset.h (struct regset): Add flags field.
13281         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
13282         * corelow.c (get_core_register_section): Add warning if the size
13283         exceeds the requested size and the regset does not have the
13284         REGSET_VARIABLE_SIZE flag set.
13285         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
13286         flag.
13287         * armbsd-tdep.c (armbsd_gregset): Likewise.
13288         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
13289         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
13290         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
13291         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
13293 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13295         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
13296         For ".reg-xstate", explicitly specify the requested section size
13297         via X86_XSTATE_SIZE instead of just 0 on input and
13298         X86_XSTATE_MAX_SIZE on output.
13299         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
13300         Likewise.
13302 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13304         PR corefiles/17808:
13305         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
13306         function type, particularly its SIZE parameter.
13307         * gdbarch.h: Regenerate.
13308         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
13309         actual against required size using ">=" instead of "==".
13310         (amd64_collect_fpregset): Likewise.
13311         * i386-tdep.c (i386_supply_gregset): Likewise.
13312         (i386_collect_gregset): Likewise.
13313         (i386_supply_fpregset): Likewise.
13314         (i386_collect_fpregset): Likewise.
13315         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
13316         (mips_fill_gregset_wrapper): Likewise.
13317         (mips_supply_fpregset_wrapper): Likewise.
13318         (mips_fill_fpregset_wrapper): Likewise.
13319         (mips64_supply_gregset_wrapper): Likewise.
13320         (mips64_fill_gregset_wrapper): Likewise.
13321         (mips64_supply_fpregset_wrapper): Likewise.
13322         (mips64_fill_fpregset_wrapper): Likewise.
13323         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
13324         (am33_supply_fpregset_method): Likewise.
13325         (am33_collect_gregset_method): Likewise.
13326         (am33_collect_fpregset_method): Likewise.
13328 2015-02-04  Doug Evans  <dje@google.com>
13329             Pedro Alves  <palves@redhat.com>
13330             Eli Zaretskii  <eliz@gnu.org>
13332         PR tui/17810
13333         * tui/tui-command.c (tui_refresh_cmd_win): New function.
13334         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
13335         * tui/tui-file.c: #include tui/tui-command.h.
13336         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
13337         (tui_file_flush): Refresh command window if stream is gdb_stdout.
13338         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
13340 2015-02-04  Pedro Alves  <palves@redhat.com>
13342         Fix build breakage.
13343         * event-loop.c (gdb_do_one_event): Add default switch case.
13345 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
13347         Filter out inferior gcc option -fpreprocessed.
13348         * compile/compile.c (filter_args): New function.
13349         (get_args): Use it.
13351 2015-02-03  Pedro Alves  <palves@redhat.com>
13353         * event-loop.c: Don't declare nor define a queue type for
13354         gdb_event_p.
13355         (event_queue): Delete.
13356         (create_event, create_file_event, gdb_event_xfree)
13357         (initialize_event_loop, process_event): Delete.
13358         (gdb_do_one_event): Return as soon as one event is handled.
13359         (handle_file_event): Change prototype.  Used the passed in
13360         file_handler pointer and ready_mask instead of looping over all
13361         file handlers.
13362         (gdb_wait_for_event): Update the poll/select timeouts before
13363         blocking.  Run event handlers directly instead of queueing events.
13364         Return as soon as one event is handled.
13365         (struct async_event_handler_data): Delete.
13366         (invoke_async_event_handler): Delete.
13367         (check_async_event_handlers): Change return type to int.  Run
13368         event handlers directly instead of queueing events.  Return as
13369         soon as one event is handled.
13370         (handle_timer_event): Delete.
13371         (update_wait_timeout): New function, factored out from
13372         poll_timers.
13373         (poll_timers): Reimplement.
13374         * event-loop.h (initialize_event_loop): Delete declaration.
13375         * top.c (gdb_init): Don't call initialize_event_loop.
13377 2015-02-03  Pedro Alves  <palves@redhat.com>
13379         * event-loop.c (clear_async_event_handler): New function.
13380         * event-loop.h (clear_async_event_handler): New declaration.
13381         * record-btrace.c (record_btrace_async): New function.
13382         (init_record_btrace_ops): Install record_btrace_async.
13383         * record-full.c (record_full_async): New function.
13384         (record_full_resume): Don't mark the async event source here.
13385         (init_record_full_ops): Install record_full_async.
13386         (record_full_core_resume): Don't mark the async event source here.
13387         (init_record_full_core_ops): Install record_full_async.
13388         * remote.c (remote_async): Mark and clear the async stop reply
13389         queue event-loop token as appropriate.
13391 2015-02-03  Pedro Alves  <palves@redhat.com>
13393         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
13394         target_is_async_p instead of target_can_async.
13395         (linux_nat_wait): Use target_is_async_p instead of
13396         target_can_async.  Don't enable async here.
13397         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
13398         target_is_async_p instead of target_can_async.
13400 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
13402         * varobj.h (lang_varobj_ops): Mention which return values need
13403         to be freed.
13405 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
13407         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
13409 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
13411         PR gdb/17856:
13412         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
13413         results found in the cache.
13415 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
13417         PR gdb/17854:
13418         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
13419         when allocating a new one.
13421 2015-02-01  Tom Tromey  <tom@tromey.com>
13423         * MAINTAINERS: Remove myself.
13425 2015-01-31  Doug Evans  <xdje42@gmail.com>
13427         * dwarf2read.c (process_structure_scope): Update setting of
13428         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
13429         * gdbtypes.c (internal_type_vptr_fieldno): New function.
13430         (set_type_vptr_fieldno): New function.
13431         (internal_type_vptr_basetype): New function.
13432         (set_type_vptr_basetype): New function.
13433         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
13434         TYPE_VPTR_BASETYPE.
13435         (allocate_cplus_struct_type): Initialize vptr_fieldno.
13436         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
13437         (print_cplus_stuff): ... moved here.
13438         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
13439         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
13440         moved to ...
13441         (struct cplus_struct_type): ... here.  All uses updated.
13442         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
13443         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
13444         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
13445         * stabsread.c (read_tilde_fields): Update setting of
13446         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
13448 2015-01-31  Doug Evans  <xdje42@gmail.com>
13450         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
13451         to self_p.
13452         (cp_print_class_member): Rename local domain to self_type.
13453         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
13454         domain_type to self_type.
13455         (set_die_type) <need_gnat_info>: Handle
13456         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
13457         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
13458         TYPE_SPECIFIC_SELF_TYPE.
13459         * gdbtypes.c (internal_type_self_type): New function.
13460         (set_type_self_type): New function.
13461         (smash_to_memberptr_type): Rename parameter domain to self_type.
13462         Update setting of TYPE_SELF_TYPE.
13463         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
13464         (smash_to_method_type): Rename parameter domain to self_type.
13465         Update setting of TYPE_SELF_TYPE.
13466         (check_stub_method): Call smash_to_method_type.
13467         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
13468         (copy_type_recursive): Ditto.
13469         * gdbtypes.h (enum type_specific_kind): New value
13470         TYPE_SPECIFIC_SELF_TYPE.
13471         (struct main_type) <type_specific>: New member self_type.
13472         (struct cplus_struct_type) <fn_field.type>: Update comment.
13473         (TYPE_SELF_TYPE): Rewrite.
13474         (internal_type_self_type, set_type_self_type): Declare.
13475         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
13476         self_type.
13477         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
13478         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
13479         TYPE_TARGET_TYPE.
13480         * stabsread.c (read_member_functions): Mark methods with
13481         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
13482         TYPE_SELF_TYPE.
13484 2015-01-31  Doug Evans  <xdje42@gmail.com>
13486         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
13487         All uses updated.
13489 2015-01-31  Doug Evans  <xdje42@gmail.com>
13491         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
13492         or unions.  Return zero if union.
13493         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
13494         (gnuv3_rtti_type): Pass already-check_typedef'd value to
13495         gnuv3_get_vtable.
13496         (compute_vtable_size): Assert only passed structs.
13497         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
13499 2015-01-31  Doug Evans  <xdje42@gmail.com>
13501         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
13502         kinds.
13504 2015-01-31  Gary Benson <gbenson@redhat.com>
13505             Doug Evans  <dje@google.com>
13507         PR cli/9007
13508         PR cli/11920
13509         PR cli/15548
13510         * cli/cli-cmds.c (complete_command): Notify user if max-completions
13511         reached.
13512         * common/common-exceptions.h (enum errors)
13513         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
13514         * completer.h (get_max_completions_reached_message): New declaration.
13515         (max_completions): Likewise.
13516         (completion_tracker_t): New typedef.
13517         (new_completion_tracker): New declaration.
13518         (make_cleanup_free_completion_tracker): Likewise.
13519         (maybe_add_completion_enum): New enum.
13520         (maybe_add_completion): New declaration.
13521         (throw_max_completions_reached_error): Likewise.
13522         * completer.c (max_completions): New global variable.
13523         (new_completion_tracker): New function.
13524         (free_completion_tracker): Likewise.
13525         (make_cleanup_free_completion_tracker): Likewise.
13526         (maybe_add_completions): Likewise.
13527         (throw_max_completions_reached_error): Likewise.
13528         (complete_line): Remove duplicates and limit result to max_completions
13529         entries.
13530         (get_max_completions_reached_message): New function.
13531         (gdb_display_match_list): Handle max_completions.
13532         (_initialize_completer): New declaration and function.
13533         * symtab.c: Include completer.h.
13534         (completion_tracker): New static variable.
13535         (completion_list_add_name): Call maybe_add_completion.
13536         (default_make_symbol_completion_list_break_on_1): Renamed from
13537         default_make_symbol_completion_list_break_on.  Maintain
13538         completion_tracker across calls to completion_list_add_name.
13539         (default_make_symbol_completion_list_break_on): New function.
13540         * top.c (init_main): Set rl_completion_display_matches_hook.
13541         * tui/tui-io.c: Include completer.h.
13542         (tui_old_rl_display_matches_hook): New static global.
13543         (tui_rl_display_match_list): Notify user if max-completions reached.
13544         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
13545         * NEWS (New Options): Mention set/show max-completions.
13547 2015-01-31  Gary Benson  <gbenson@redhat.com>
13549         * symtab.c (struct add_name_data) <code>: New field.
13550         Updated comments.
13551         (add_symtab_completions): New function.
13552         (symtab_expansion_callback): Likewise.
13553         (default_make_symbol_completion_list_break_on): Set datum.code.
13554         Move minimal symbol scan before calling expand_symtabs_matching.
13555         Scan known primary symtabs for externs and statics before calling
13556         expand_symtabs_matching.  Pass symtab_expansion_callback as
13557         expansion_notify argument to expand_symtabs_matching.  Do not scan
13558         primary symtabs for externs and statics after calling
13559         expand_symtabs_matching.
13561 2015-01-31  Gary Benson  <gbenson@redhat.com>
13563         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
13564         (struct quick_symbol_functions) <expand_symtabs_matching>:
13565         New argument expansion_notify.  All uses updated.
13566         (expand_symtabs_matching): New argument expansion_notify.
13567         All uses updated.
13568         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13569         Also print expansion notify.
13570         * symtab.c (expand_symtabs_matching_via_partial): Call
13571         expansion_notify whenever a partial symbol table is expanded.
13572         * dwarf2read.c (dw2_expand_symtabs_matching): Call
13573         expansion_notify whenever a symbol table is instantiated.
13575 2015-01-31  Doug Evans  <xdje42@gmail.com>
13577         * cli-out.c: #include completer.h, readline/readline.h.
13578         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
13579         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
13580         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
13581         * cli-out.h (cli_display_match_list): Declare.
13582         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
13583         (ELLIPSIS_LEN): Ditto.
13584         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
13585         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
13586         (gdb_fnprint, gdb_print_filename): Ditto.
13587         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
13588         (gdb_display_match_list): Ditto.
13589         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
13590         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
13591         (mld_beep_ftype, mld_read_key_ftype): Ditto.
13592         (match_list_displayer): New struct.
13593         (gdb_display_match_list): Declare.
13594         * top.c (init_main): Set rl_completion_display_matches_hook.
13595         * tui/tui-io.c: #include completer.h.
13596         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
13597         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
13598         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
13599         (tui_mld_getc, tui_mld_read_key): Ditto.
13600         (tui_rl_display_match_list): Rewrite.
13601         (tui_handle_resize_during_io): New arg for_completion.  All callers
13602         updated.
13604 2015-01-31  Doug Evans  <xdje42@gmail.com>
13606         Add symbol lookup cache.
13607         * NEWS: Document new options and commands.
13608         * symtab.c (symbol_cache_key): New static global.
13609         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
13610         (SYMBOL_LOOKUP_FAILED): New macro.
13611         (symbol_cache_slot_state): New enum.
13612         (block_symbol_cache): New struct.
13613         (symbol_cache): New struct.
13614         (new_symbol_cache_size, symbol_cache_size): New static globals.
13615         (hash_symbol_entry, eq_symbol_entry): New functions.
13616         (symbol_cache_byte_size, resize_symbol_cache): New functions.
13617         (make_symbol_cache, free_symbol_cache): New functions.
13618         (get_symbol_cache, symbol_cache_cleanup): New function.
13619         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
13620         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
13621         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
13622         (symbol_cache_flush, symbol_cache_dump): New functions.
13623         (maintenance_print_symbol_cache): New function.
13624         (maintenance_flush_symbol_cache): New function.
13625         (symbol_cache_stats): New function.
13626         (maintenance_print_symbol_cache_statistics): New function.
13627         (symtab_new_objfile_observer): New function.
13628         (symtab_free_objfile_observer): New function.
13629         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
13630         (_initialize_symtab): Init symbol_cache_key.  New parameter
13631         maint symbol-cache-size.  New maint commands print symbol-cache,
13632         print symbol-cache-statistics, flush-symbol-cache.
13633         Install new_objfile, free_objfile observers.
13635 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
13637         PR symtab/17855
13638         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
13639         to end.
13641 2015-01-31  Doug Evans  <xdje42@gmail.com>
13643         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
13644         * auto-load.c: #include ctype.h.
13645         (struct auto_load_pspace_info): Replace member loaded_scripts with
13646         new members loaded_script_files, loaded_script_texts.
13647         (auto_load_pspace_data_cleanup): Update.
13648         (init_loaded_scripts_info): Update.
13649         (get_auto_load_pspace_data_for_loading): Update.
13650         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
13651         updated.
13652         (maybe_add_script_text): New function.
13653         (clear_section_scripts): Update.
13654         (source_script_file, execute_script_contents): New functions.
13655         (source_section_scripts): Add support for
13656         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
13657         (print_scripts): New function.
13658         (auto_load_info_scripts): Also print inlined scripts.
13659         (maybe_print_unsupported_script_warning): Renamed from
13660         unsupported_script_warning_print.  All callers updated.
13661         (maybe_print_script_not_found_warning): Renamed from
13662         script_not_found_warning_print.  All callers updated.
13663         * extension-priv.h (struct extension_language_script_ops): New member
13664         objfile_script_executor.
13665         * extension.c (ext_lang_objfile_script_executor): New function.
13666         * extension.h (objfile_script_executor_func): New typedef.
13667         (ext_lang_objfile_script_executor): Declare.
13668         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
13669         * guile/guile.c (guile_extension_script_ops): Update.
13670         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
13671         * python/python.c (python_extension_script_ops): Update.
13672         (gdbpy_execute_objfile_script): New function.
13674 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
13676         * tui/tui-io.c (tui_expand_tabs): New function.
13677         (tui_puts, tui_redisplay_readline): Expand TABs into the
13678         appropriate number of spaces.
13679         * tui/tui-regs.c: Include tui-io.h.
13680         (tui_register_format): Call tui_expand_tabs to expand TABs into
13681         the appropriate number of spaces.
13682         * tui/tui-io.h: Add prototype for tui_expand_tabs.
13684 2015-01-30  Doug Evans  <dje@google.com>
13686         * NEWS: "info source" command now display producer string if present.
13687         * source.c (source_info): Print producer string if present.
13689 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
13691         * varobj.c (varobj_delete): Fix comment.
13693 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
13695         * varobj.c (create_child): Modify comment.
13697 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
13699         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
13700         parameter.
13701         (ada_name_of_variable): Same.
13702         (ada_path_expr_of_child): Same.
13703         (ada_value_of_variable): Same.
13704         (ada_value_is_changeable_p): Same.
13705         (ada_value_has_mutated): Same.
13706         * c-varobj.c (varobj_is_anonymous_child): Same.
13707         (c_is_path_expr_parent): Same.
13708         (c_number_of_children): Same.
13709         (c_name_of_variable): Same.
13710         (c_path_expr_of_child): Same.
13711         (get_type): Same.
13712         (c_value_of_variable): Same.
13713         (cplus_number_of_children): Same.
13714         (cplus_name_of_variable): Same.
13715         (cplus_path_expr_of_child): Same.
13716         (cplus_value_of_variable): Same.
13717         * jv-varobj.c (java_number_of_children): Same.
13718         (java_name_of_variable): Same.
13719         (java_path_expr_of_child): Same.
13720         (java_value_of_variable): Same.
13721         * varobj.c (number_of_children): Same.
13722         (name_of_variable): Same.
13723         (is_root_p): Same.
13724         (varobj_ensure_python_env): Same.
13725         (varobj_get_objname): Same.
13726         (varobj_get_expression): Same.
13727         (varobj_get_display_format): Same.
13728         (varobj_get_display_hint): Same.
13729         (varobj_has_more): Same.
13730         (varobj_get_thread_id): Same.
13731         (varobj_get_frozen): Same.
13732         (dynamic_varobj_has_child_method): Same.
13733         (varobj_get_gdb_type): Same.
13734         (is_path_expr_parent): Same.
13735         (varobj_default_is_path_expr_parent): Same.
13736         (varobj_get_language): Same.
13737         (varobj_get_attributes): Same.
13738         (varobj_is_dynamic_p): Same.
13739         (varobj_get_child_range): Same.
13740         (varobj_value_has_mutated): Same.
13741         (varobj_get_value_type): Same.
13742         (number_of_children): Same.
13743         (name_of_variable): Same.
13744         (check_scope): Same.
13745         (varobj_editable_p): Same.
13746         (varobj_value_is_changeable_p): Same.
13747         (varobj_floating_p): Same.
13748         (varobj_default_value_is_changeable_p): Same.
13750 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
13752         * varobj.c (varobj_get_path_expr): Set var->path_expr.
13753         * c-varobj.c (c_path_expr_of_child): Set local var instead of
13754         child->path_expr.
13755         (cplus_path_expr_of_child): Same.
13757 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
13759         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
13760         result.
13761         (mi_cmd_var_info_expression): Same.
13762         * varobj.c (varobj_get_expression): Mention in the comment that
13763         the result must by freed by the caller.
13765 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
13767         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
13768         varobj_get_type.
13769         (varobj_update_one): Same.
13770         * varobj.c (update_type_if_necessary): Free curr_type_str and
13771         new_type_str.
13772         (varobj_get_type): Specify in comment that the result needs to be
13773         freed by the caller.
13775 2015-01-29  Doug Evans  <dje@google.com>
13777         PR symtab/17890
13778         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
13780 2015-01-25  Mark Wielaard  <mjw@redhat.com>
13782         * dwarf2read.c (checkproducer): Call producer_is_gcc.
13783         * utils.c (producer_is_gcc_ge_4): Likewise.
13784         (producer_is_gcc): New function.
13785         * utils.h (producer_is_gcc): New declaration.
13787 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
13789         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
13790         kind.
13791         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
13792         parameter by "addr_stack" parameter.
13793         (resolve_dynamic_range): Replace "addr" parameter by
13794         "stack_addr" parameter.  Update function documentation.
13795         Update code accordingly.
13796         (resolve_dynamic_array, resolve_dynamic_union)
13797         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
13798         (resolve_dynamic_type): Update code, following the changes made
13799         to resolve_dynamic_type_internal's interface.
13800         * dwarf2loc.h (struct property_addr_info): New.
13801         (dwarf2_evaluate_property): Replace "address" parameter
13802         by "addr_stack" parameter.  Adjust function documentation.
13803         (struct dwarf2_offset_baton): New.
13804         (struct dwarf2_property_baton): Update documentation of
13805         field "referenced_type" to be more general. New field
13806         "offset_info" in union data field.
13807         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
13808         parameter by "addr_stack" parameter.  Adjust code accordingly.
13809         Add support for PROP_ADDR_OFFSET properties.
13810         * dwarf2read.c (attr_to_dynamic_prop): Add support for
13811         DW_AT_data_member_location attributes as well.  Use case
13812         statements instead of if/else condition.
13814 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
13816         * ada-varobj.c (ada_varobj_get_array_number_of_children):
13817         Return zero if PARENT_VALUE is NULL and parent_type's
13818         range type is dynamic.
13820 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
13822         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
13823         nonzero if the type's subtype is dynamic.
13824         (resolve_dynamic_range): Also resolve the range's subtype.
13826 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
13828         Pushed by Joel Brobecker  <brobecker@adacore.com>.
13829         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
13831 2015-01-27  Doug Evans  <dje@google.com>
13833         * NEWS: Mention gdb.Objfile.username.
13834         * python/py-objfile.c (objfpy_get_username): New function.
13835         (objfile_getset): Add "username".
13837 2015-01-24  Mark Wielaard  <mjw@redhat.com>
13839         * stack.c (return_command): Markup warning message with _.
13841 2015-01-24  Doug Evans  <xdje42@gmail.com>
13843         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
13845 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
13847         Fix 100x slowdown regression on DWZ files.
13848         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
13849         (struct line_header): Add offset and offset_in_dwz.
13850         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
13851         (free_line_header_voidp): New declaration.
13852         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
13853         functions.
13854         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
13855         (handle_DW_AT_stmt_list): Use line_header_hash.
13856         (free_line_header_voidp): New function.
13857         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
13858         (dwarf_decode_lines): New parameter decode_mapping, use it.
13859         (dwarf2_free_objfile): Free line_header_hash.
13861 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
13863         PR gdb/17416
13864         * valops.c (value_rtti_indirect_type): Catch exception thrown by
13865         value_ind.
13867 2015-01-15  Mark Wielaard  <mjw@redhat.com>
13869         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
13870         DW_AT_noreturn.
13871         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
13872         calling_convention an 8 bit bit field.
13873         (TYPE_NO_RETURN): New macro.
13874         * infcmd.c (finish_command): Query if function does not return
13875         normally.
13876         * stack.c (return_command): Likewise.
13878 2015-01-23  Pedro Alves  <palves@redhat.com>
13880         * linux-nat.c (linux_is_async_p): New macro.
13881         (linux_nat_is_async_p):
13882         (linux_nat_terminal_inferior): Check whether the target can async
13883         instead of whether it is already async.
13884         (linux_nat_terminal_ours): Don't check whether the target is
13885         async.
13886         (linux_async_pipe): Use linux_is_async_p.
13888 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
13890         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
13891         '-ascending'.
13892         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
13893         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
13894         Sort tp_array using tp_array_compar.
13895         (_initialize_thread): Extend thread_apply_all_command help.
13897 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
13899         * corelow.c (core_open): Call also thread_command.
13900         * gdbthread.h (thread_command): New prototype moved from ...
13901         * thread.c (thread_command): ... here.
13902         (thread_command): Make it global.
13904 2015-01-22  Pedro Alves  <palves@redhat.com>
13906         * configure.ac [*mingw32*]: Check $curses_found instead of
13907         $prefer_curses.
13908         * configure: Regenerate.
13909         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
13910         HAVE_NCURSES_NCURSES_H checks.
13912 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
13914         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
13915         fails with the 1st arg NULL, try again with "unknown".  Don't test
13916         the "cup" capability: it isn't supported by the Windows port of
13917         ncurses, but the Windows console driver is still capable of
13918         supporting TUI.
13920 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
13922         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
13924 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
13926         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
13927         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
13928         reason that "make TAGS" is broken.
13930 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
13932         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
13933         and check additional store instructions.
13935 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
13937         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
13939 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
13941         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13942         ppc_canonicalize_syscall, ppc_linux_syscall_record,
13943         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
13944         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13945         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
13946         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
13947         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
13948         ppc_process_record_op19, ppc_process_record_op31,
13949         ppc_process_record_op59, ppc_process_record_op60,
13950         ppc_process_record_op63): Likewise.
13952 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
13954         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
13955         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
13956         strerror.
13958 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
13960         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
13961         ppc_process_record_op31, ppc_process_record_op59,
13962         ppc_process_record_op60, ppc_process_record_op63,
13963         ppc_process_record): Fix -Wformat warning.
13964         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
13965         Remove unused variables.
13967 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
13969         * MAINTAINERS (Write After Approval): Add "Chen Gang".
13971 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
13973         * configure.ac [*mingw32*]: Only add windows-termcap.o to
13974         CONFIG_OBS if not building with a curses library.
13975         * configure: Regenerate.
13977         * windows-termcap.c: Include defs.h.  Make the whole body empty if
13978         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
13979         HAVE_NCURSES_NCURSES_H is defined.
13981 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
13983         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
13984         from end of line to start of next line.
13986 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
13988         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
13989         Scan PLT stub backward for reverse debugging.
13990         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13992 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
13993             Ulrich Weigand  <uweigand@de.ibm.com>
13995         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
13996         gdb_target_obs.
13997         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
13998         record.
13999         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
14000         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
14001         (ppc_linux_init_abi): Set process_record, process_record_signal.
14002         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
14003         ppc_linux_record_tdep to gdbarch_tdep.
14004         (ppc_process_record): New declaration.
14005         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
14006         ppc_process_record_op19, ppc_process_record_op31,
14007         ppc_process_record_op59, ppc_process_record_op60,
14008         ppc_process_record_op63, ppc_process_record): New functions.
14010 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
14012         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
14013         rs6000_in_function_epilogue_frame_p and add an argument
14014         for frame_info.
14015         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
14016         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
14017         New functions.
14018         (rs6000_epilogue_frame_unwind): New.
14019         (rs6000_gdbarch_init): Append epilogue unwinder.
14021 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
14023         * nat/linux-personality.c: Replace "#ifndef
14024         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
14025         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
14026         systems.
14028 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
14030         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
14031         functions.
14032         (_initialize_tui_win) <border-kind, border-mode>:
14033         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
14034         (tui_set_tab_width_command): Fix the commentary.
14036         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
14038         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
14039         Doc fix.
14040         (tui_set_tab_width_command): Delete and recreate the source and
14041         the disassembly windows, to show the effect of the changed tab
14042         size immediately.
14044         * tui/tui-data.h (LINE_PREFIX): Make shorter
14045         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
14046         "Thread NNNNN.XXXX" thread ID notation on Windows.
14048 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14050         Fix gcc-5 compilation.
14051         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
14053 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
14055         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
14056         (linux-personality.o): New rule.
14057         * common/common-defs.h: Include <stdint.h>.
14058         * config/aarch64/linux.mh (NATDEPFILES): Include
14059         linux-personality.o.
14060         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
14061         * config/arm/linux.mh (NATDEPFILES): Likewise.
14062         * config/i386/linux64.mh (NATDEPFILES): Likewise.
14063         * config/i386/linux.mh (NATDEPFILES): Likewise.
14064         * config/ia64/linux.mh (NATDEPFILES): Likewise.
14065         * config/m32r/linux.mh (NATDEPFILES): Likewise.
14066         * config/m68k/linux.mh (NATDEPFILES): Likewise.
14067         * config/mips/linux.mh (NATDEPFILES): Likewise.
14068         * config/pa/linux.mh (NATDEPFILES): Likewise.
14069         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
14070         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
14071         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
14072         * config/s390/linux.mh (NATDEPFILES): Likewise.
14073         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
14074         * config/sparc/linux.mh (NATDEPFILES): Likewise.
14075         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
14076         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
14077         * defs.h: Remove #include <stdint.h> (moved to
14078         common/common-defs.h).
14079         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
14080         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
14081         nat/linux-personality.c).
14082         (linux_nat_create_inferior): Remove code to disable address space
14083         randomization (moved to nat/linux-personality.c).  Create cleanup
14084         to disable address space randomization.
14085         * nat/linux-personality.c: New file.
14086         * nat/linux-personality.h: Likewise.
14088 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
14090         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
14091         common/posix-strerror.c.
14092         (posix-strerror.o): New rule.
14093         (mingw-strerror.o): Likewise.
14094         * common/common-utils.h (safe_strerror): Move prototype to here,
14095         from utils.h.
14096         * common/common.host: New file.
14097         * common/mingw-strerror.c: Likewise.
14098         * common/posix-strerror.c: Likewise.
14099         * configure: Regenerated.
14100         * configure.ac: Source common/common.host.  Add variable
14101         common_host_obs to gdb_host_obs.
14102         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
14103         gdb/common/posix-strerror.c when warning about the use of
14104         strerror.
14105         * mingw-hdep.c (safe_strerror): Remove definition; move it to
14106         common/mingw-strerror.c.
14107         * posix-hdep.c (safe_strerror): Remove definition; move it to
14108         common/posix-hdep.c.
14109         * utils.h (safe_strerror): Remove prototype; move to
14110         common/common-utils.h.
14112 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
14114         GDB 7.8.2 released.
14116 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
14118         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
14119         ___XA type if the array has already been fixed.
14121 2015-01-14  Yao Qi  <yao@codesourcery.com>
14123         * Makefile.in (ppc-linux.o): New rule.
14124         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
14125         * configure.ac: AC_CHECK_FUNCS(getauxval).
14126         * config.in: Re-generated.
14127         * configure: Re-generated.
14128         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
14129         Declare.
14130         * nat/ppc-linux.c: New file.
14131         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
14132         Call ppc64_64bit_inferior_p.
14134 2015-01-14  Yao Qi  <yao@codesourcery.com>
14136         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
14137         nat/ppc-linux.h.
14138         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
14139         (PPC_FEATURE_HAS_DFP): Likewise.
14140         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
14141         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
14142         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
14143         Include "nat/ppc-linux.h".
14144         * nat/ppc-linux.h: New file.
14145         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
14147 2015-01-14  Pedro Alves  <palves@redhat.com>
14149         PR gdb/17525
14150         * breakpoint.c: Include "interps.h".
14151         (bpstat_do_actions_1): Also check whether the interpreter is
14152         async.
14154 2015-01-14  Pedro Alves  <palves@redhat.com>
14156         PR cli/17828
14157         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
14158         reinstall if the interpreter is sync.
14160 2015-01-13  Doug Evans  <dje@google.com>
14162         * objfiles.c (objfile_filename): New function.
14163         * objfiles.h (objfile_filename): Declare it.
14164         (objfile_name): Add function comment.
14165         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
14166         bfd file name (which may be realpath'd), and the original name.
14168 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
14170         * NEWS: Create a new section for the next release branch.
14171         Rename the section of the current branch, now that it has
14172         been cut.
14174 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
14176         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
14177         * version.in: Bump version to 7.9.50.DATE-cvs.
14179 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
14181         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
14182         Remove trailing new-line in argument of call to warning.
14184 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
14186         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
14187         new-line in argument of call to "warning".
14189 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
14191         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
14192         in static block, then try searching for primitive types.
14194 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
14196         * top.h (gdb_add_history): Declare.
14197         * top.c (command_count): New variable.
14198         (gdb_add_history): New function.
14199         (gdb_safe_append_history): New static function.
14200         (quit_force): Call it.
14201         (command_line_input): Use gdb_add_history instead of
14202         add_history.
14203         * event-top.c (command_line_handler): Likewise.
14205 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
14207         PR gdb/17046
14208         * darwin-nat.c: Replace <machine/setjmp.h> #include by
14209         <setjmp.h> #include.
14211 2015-01-11  Doug Evans  <xdje42@gmail.com>
14213         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
14215 2015-01-11  Doug Evans  <xdje42@gmail.com>
14217         PR gdb/15830
14218         * NEWS: The "maint demangle" command is renamed as "demangle".
14219         * demangle.c: #include cli/cli-utils.h, language.h.
14220         (demangle_command): New function.
14221         (_initialize_demangle): Add new command "demangle".
14222         * maint.c (maintenance_demangle): Stub out.
14223         (_initialize_maint_cmds): Update help text for "maint demangle",
14224         and mark as deprecated.
14226 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
14228         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
14229         inferior_thread is a function.
14231 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
14233         * Makefile.in (.y.c): Don't munge yacc's #line
14234         directives.
14236 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
14238         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
14239         to prompt for input.
14240         * tui/tui-hooks.c (tui_query_hook): Remove.
14241         (tui_install_hooks): Don't set deprecated_query_hook.
14242         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
14243         height calculation.  Always update the command window's cur_line.
14245 2015-01-09  Pedro Alves  <palves@redhat.com>
14247         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
14248         function.
14249         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
14250         declaration.
14251         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
14252         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
14253         stop_reason.
14254         (check_stopped_by_watchpoint): New function.
14255         (save_sigtrap): Reimplement.
14256         (linux_nat_stopped_by_watchpoint): Adjust.
14257         (linux_nat_lp_status_is_event): Delete.
14258         (stop_wait_callback): Only call save_sigtrap after storing the
14259         pending status.
14260         (status_callback): If the thread had been stopped for a breakpoint
14261         that has since been removed, discard the event and resume the LWP.
14262         (count_events_callback, select_event_lwp_callback): Use
14263         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
14264         (cancel_breakpoint): Rename to ...
14265         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
14266         stopped for a software breakpoint or hardware breakpoint.
14267         (select_event_lwp): Only give preference to the stepping LWP in
14268         all-stop mode.  Adjust comments.
14269         (stop_and_resume_callback): Remove references to new_pending_p.
14270         (linux_nat_filter_event): Likewise.  Leave exit events of the
14271         leader thread pending here.  Handle signal short circuiting here.
14272         Only call save_sigtrap after storing the pending waitstatus.
14273         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
14274         new_pending.  Don't handle leaving events the caller is not
14275         interested in pending here, nor handle signal short-circuiting
14276         here.  Also give equal priority to all LWPs that have had events
14277         in non-stop mode.  If reporting a software breakpoint event,
14278         unadjust the LWP's PC.
14279         * linux-nat.h (enum lwp_stop_reason): New.
14280         (struct lwp_info) <stop_pc>: New field.
14281         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
14282         (struct lwp_info) <stop_reason>: New field.
14283         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
14285 2015-01-09  Pedro Alves  <palves@redhat.com>
14287         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
14288         Set the LWP's 'resumed' flag.
14290 2015-01-09  Pedro Alves  <palves@redhat.com>
14292         * linux-nat.c (linux_resume_one_lwp): New function.
14293         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
14294         (linux_nat_resume): Use lwp_status_pending_p and
14295         linux_resume_one_lwp.
14296         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
14297         (linux_handle_extended_wait): Use linux_resume_one_lwp.
14298         (status_callback, running_callback): Use lwp_status_pending_p.
14299         (lwp_status_pending_p): New function.
14300         (stop_and_resume_callback): Use lwp_status_pending_p.
14301         (linux_nat_filter_event): Use linux_resume_one_lwp.
14302         (linux_nat_wait_1): Always use status_callback to look for an LWP
14303         with a pending status.  Use linux_resume_one_lwp.
14304         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
14305         linux_resume_one_lwp.
14307 2015-01-09  Pedro Alves  <palves@redhat.com>
14309         * breakpoint.c (bp_location_inserted_here_p): New function,
14310         factored out from ...
14311         (breakpoint_inserted_here_p): ... here.  Use
14312         ALL_BP_LOCATIONS_AT_ADDR.
14313         (software_breakpoint_inserted_here_p): Use
14314         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
14316 2014-01-09  Pedro Alves  <palves@redhat.com>
14318         Skip enabling event reporting if the kernel supports
14319         PTRACE_EVENT_CLONE.
14320         * linux-thread-db.c: Include "nat/linux-ptrace.h".
14321         (thread_db_use_events): New function.
14322         (try_thread_db_load_1): Check thread_db_use_events before enabling
14323         event reporting.
14324         (update_thread_state): New function.
14325         (attach_thread): Use it.  Check thread_db_use_events before
14326         enabling event reporting.
14327         (thread_db_detach): Check thread_db_use_events before disabling
14328         event reporting.
14329         (find_new_threads_callback): Check thread_db_use_events before
14330         enabling event reporting.  Update the thread's state if not using
14331         libthread_db events.
14333 2015-01-09  Pedro Alves  <palves@redhat.com>
14335         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
14336         about to wait for is > 0.
14337         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
14338         the kernel thread ID is -1.
14340 2015-01-09  Pedro Alves  <palves@redhat.com>
14342         * linux-nat.c (attach_proc_task_lwp_callback): New function.
14343         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
14344         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
14345         ptrace option flags.
14346         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
14347         field.
14348         * nat/linux-procfs.c: Include <dirent.h>.
14349         (linux_proc_get_int): New parameter "warn".  Handle it.
14350         (linux_proc_get_tgid): Adjust.
14351         (linux_proc_get_tracerpid): Rename to ...
14352         (linux_proc_get_tracerpid_nowarn): ... this.
14353         (linux_proc_pid_get_state): New function, factored out from
14354         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
14355         and handle it.
14356         (linux_proc_pid_is_gone): New function.
14357         (linux_proc_pid_is_stopped): Adjust.
14358         (linux_proc_pid_is_zombie_maybe_warn)
14359         (linux_proc_pid_is_zombie_nowarn): New functions.
14360         (linux_proc_pid_is_zombie): Use
14361         linux_proc_pid_is_zombie_maybe_warn.
14362         (linux_proc_attach_tgid_threads): New function.
14363         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
14364         (linux_proc_get_tracerpid): Rename to ...
14365         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
14366         (linux_proc_pid_is_gone): New declaration.
14367         (linux_proc_pid_is_zombie): Update comment.
14368         (linux_proc_pid_is_zombie_nowarn): New declaration.
14369         (linux_proc_attach_lwp_func): New typedef.
14370         (linux_proc_attach_tgid_threads): New declaration.
14371         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
14372         use nowarn functions.
14373         (linux_ptrace_attach_fail_reason_string): Move here from
14374         gdbserver/linux-low.c and rename.
14375         (ptrace_supports_feature): If the current ptrace options are not
14376         known yet, check them now, instead of asserting.
14377         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
14378         Declare.
14380 2015-01-09  Pedro Alves  <palves@redhat.com>
14382         * linux-thread-db.c (thread_db_find_new_threads_silently)
14383         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
14384         (find_new_threads_once): Print debug output on gdb_stdlog.
14386 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
14387             Pedro Alves  <palves@redhat.com>
14389         * compile/compile.c: Include "gdb_wait.h".
14390         (do_rmdir): Check return value, and free 'zap'.
14392 2015-01-08  Pedro Alves  <palves@redhat.com>
14393             Yao Qi  <yao@codesourcery.com>
14395         * dwarf2loc.c (indirect_pieced_value): Don't call
14396         gdb_sign_extend.  Call extract_signed_integer instead.
14397         * utils.c (gdb_sign_extend): Remove.
14398         * utils.h (gdb_sign_extend): Remove declaration.
14400 2015-01-07  Pierre Muller  <muller@sourceware.org>
14402         PR symtab/17811
14403         * stabsread.c (define_symbol): Set language for C++ special symbols.
14405 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
14407         * inflow.c (initial_gdb_ttystate): Tweak comment.
14409 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
14411         * inflow.c (set_initial_gdb_ttystate): Add empty line after
14412         comment documenting function.
14414 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
14416         * terminal.h (set_initial_gdb_ttystate): Declare.
14417         * inflow.c (initial_gdb_ttystate): New static variable.
14418         (set_initial_gdb_ttystate): New setter.
14419         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
14420         instead of our current terminal state.
14421         * top.c (gdb_init): Call set_initial_gdb_ttystate.
14423 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
14425         * guile/scm-type.c (tyscm_array_1): Add comment.
14426         * python/py-type.c (typy_array_1): Add comment.
14428 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
14430         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
14431         error if N2 is equal to N1 - 1.
14433 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
14435         * python/py-type.c (typy_array_1): Do not raise negative-length
14436         exception if N2 is equal to N1 - 1.
14438 2015-01-03  Doug Evans  <xdje42@gmail.com>
14440         * c-exp.y: Whitespace cleanup.
14441         (classify_inner_name): Remove extra ;.
14443 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
14445         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
14446         offset signed.
14448 2015-01-02  Doug Evans  <dje@google.com>
14450         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
14452 2015-01-02  Doug Evans  <dje@google.com>
14454         * symtab.h (struct symbol): Fix typo in comment.
14456 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
14458         Update year range in copyright notice of all files.
14460 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
14462         * top.c (print_gdb_version): Update copyright year to 2015.
14464 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
14466         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
14468 For older changes see ChangeLog-2014.
14470 Local Variables:
14471 mode: change-log
14472 left-margin: 8
14473 fill-column: 74
14474 version-control: never
14475 coding: utf-8
14476 End: