Fix library segment-address for 64bit values
[deliverable/binutils-gdb.git] / gdb / ChangeLog-2015
CommitLineData
0f7b3ef4
JB
12015-12-22 Joel Brobecker <brobecker@adacore.com>
2
3 * windows-nat.c (_initialize_loadable): Fix computing of
4 GetModuleFileNameEx.
5
62015-12-21 Joel Brobecker <brobecker@adacore.com>
7
8 * gdbtypes.c (create_array_type_with_stride): Fix indentation.
9
102015-12-19 Joel Brobecker <brobecker@adacore.com>
11
12 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Remove trailing
13 newline at end of error message.
14
152015-12-18 Sandra Loosemore <sandra@codesourcery.com>
16
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.
20
212015-12-18 Sandra Loosemore <sandra@codesourcery.com>
22
23 * utils.c (prompt_for_continue): Call throw_quit directly on 'q'.
24
252015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
26
27 * arm-tdep.c (arm_get_next_pcs_read_memory_unsigned_integer): Cast
28 to enum bfd_endian)
29
302015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
31
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.
109
1102015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
111
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.
121
1222015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
123
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.
143
1442015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
145
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.
156
1572015-12-17 Pedro Alves <palves@redhat.com>
158
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.
167
1682015-12-17 Pedro Alves <palves@redhat.com>
169
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.
205
2062015-12-17 Yao Qi <yao.qi@linaro.org>
207
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.
212
2132015-12-16 Pedro Alves <palves@redhat.com>
214
215 * configure.ac (compiler warning flags): When testing a
216 -Wno-foo option, check whether -Wfoo works instead.
217 * configure: Regenerate.
218
2192015-12-16 Pedro Alves <palves@redhat.com>
220
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.
224
2252015-12-11 Don Breazeal <donb@codesourcery.com>
226
227 * NEWS: Announce fork and exec event support for target remote.
228
2292015-12-11 Don Breazeal <donb@codesourcery.com>
230
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.
253
2542015-12-14 Andrew Burgess <andrew.burgess@embecosm.com>
255
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.
260
2612015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
262
263 * cli/cli-cmds.c (_initialize_cli_cmds): Extend help text for
264 'list' command.
265
2662015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
267
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.
270
2712015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
272
273 * cli/cli-cmds.c (list_command): Check that the argument string is
274 a single character, either '+' or '-'.
275
2762015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
277
278 * cli/cli-cmds.c (list_command): Move all handling of +/-
279 arguments into a single if block.
280
2812015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
282
283 * cli/cli-cmds.c (list_command): Use NULL instead of 0 when
284 checking pointers.
285
2862015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
287
288 * source.c (lines_to_list): Make static.
289
2902015-12-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
291
292 * linux-thread-db.c (find_new_threads_callback): Use record_thread.
293
2942015-12-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
295
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.
330
3312015-12-10 Andrew Burgess <andrew.burgess@embecosm.com>
332
333 * dwarf2read.c (dwarf2_ranges_read): Unify and fix base address
334 reading code.
335
3362015-12-09 Kevin Buettner <kevinb@redhat.com>
337
338 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Perform a pointer
339 to address conversion for DWARF_VALUE_MEMORY.
340
3412015-12-09 Luis Machado <lgustavo@codesourcery.com>
342
343 * gdb/mi/mi-cmd-var.c (mi_parse_format): Handle new "zero-hexadecimal"
344 format.
345 * gdb/varobj.c (varobj_format_string): Add "zero-hexadecimal" entry.
346 (format_code): Add 'z' entry.
347 (varobj_set_display_format): Handle FORMAT_ZHEXADECIMAL.
348 * gdb/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.
352
3532015-12-09 Ruslan Kabatsayev <b7.10110111@gmail.com> (tiny patch)
354
355 PR gdb/18702
356 * configure.host: Fix detection of x86_64 host when setting
357 floatformats.
358
3592015-12-08 Pierre-Marie de Rodat <derodat@adacore.com>
360
361 * NEWS: Announce this enhancement and the corresponding new
362 option.
363
3642015-12-07 Pierre-Marie de Rodat <derodat@adacore.com>
365
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.
372
3732015-12-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
374
375 * MAINTAINERS (Write After Approval): Add Andreas Arnez.
376
3772015-12-06 Mike Stump <mikestump@comcast.net>
378 Joel Brobecker <brobecker@adacore.com>
379
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.
383
3842015-12-05 Joel Brobecker <brobecker@adacore.com>
385
386 GDB 7.10.1 released.
387
3882015-12-01 Ulrich Weigand <uweigand@de.ibm.com>
389
390 * remote.c (remote_parse_stop_reply): Avoid GCC 4.1 "operation
391 may be undefined" warning.
392
3932015-12-01 Ulrich Weigand <uweigand@de.ibm.com>
394
395 * remote.c (remote_newthread_step): Initialize item.name.
396 (remote_get_threads_with_qthreadinfo): Likewise.
397
3982015-11-30 Pedro Alves <palves@redhat.com>
399
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.
409
4102015-11-30 Pedro Alves <palves@redhat.com>
411
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.
416
4172015-11-30 Pedro Alves <palves@redhat.com>
418
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.
444
4452015-11-30 Pedro Alves <palves@redhat.com>
446
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.
457
4582015-11-30 Pedro Alves <palves@redhat.com>
459
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.
474
4752015-11-30 Pedro Alves <palves@redhat.com>
476
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.
480
4812015-11-30 Pedro Alves <palves@redhat.com>
482
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.
526
5272015-11-30 Pedro Alves <palves@redhat.com>
528
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.
537
5382014-11-28 Pedro Alves <palves@redhat.com>
539
540 * cp-name-parser.y (conversion_op): Use
541 DEMANGLE_COMPONENT_CONVERSION instead of DEMANGLE_COMPONENT_CAST.
542
5432015-11-27 Simon Marchi <simon.marchi@ericsson.com>
544
545 * remote.c (start_thread): Add cast.
546
5472015-11-27 Yao Qi <yao.qi@linaro.org>
548
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.
553
5542015-11-27 Yao Qi <yao.qi@linaro.org>
555
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.
562
5632015-11-27 Yao Qi <yao.qi@linaro.org>
564
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.
571
5722015-11-26 Daniel Colascione <dancol@dancol.org>
5732015-11-26 Simon Marchi <simon.marchi@ericsson.com>
574
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.
591
5922015-11-26 Simon Marchi <simon.marchi@ericsson.com>
593
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.
602
6032015-11-26 Markus Metzger <markus.t.metzger@intel.com>
604
605 PR 19297
606 * btrace.c (btrace_enable): Check whether HAVE_LIBIPT is defined.
607
6082015-11-24 Pedro Alves <palves@redhat.com>
609
610 * NEWS: Mention that a few "info" commands now list the
611 corresponding items in ascending ID order.
612
6132015-11-24 Pedro Alves <palves@redhat.com>
614
615 PR 17539
616 * printcmd.c (display_command): Append new display at the end of
617 the list.
618
6192015-11-24 Pedro Alves <palves@redhat.com>
620
621 PR 17539
622 * printcmd.c (display_command): Append new display at the end of
623 the list.
624
6252015-11-24 Pedro Alves <palves@redhat.com>
626
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.
634
6352015-11-24 Pedro Alves <palves@redhat.com>
636
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.
646
6472015-11-23 Par Olsson <par.olsson@windriver.com>
648
649 * breakpoint.c (tracepoint_print_recreate): Fix logic error
650 if -> else if.
651
6522015-11-23 Kevin Buettner <kevinb@redhat.com>
653
654 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Scan backwards
655 over all zero-sized symbols.
656
6572015-11-23 Joel Brobecker <brobecker@adacore.com>
658
659 * stack.c (print_frame_local_vars): Temporarily set the selected
660 frame to FRAME while printing the frame's local variables.
661
6622015-11-23 Joel Brobecker <brobecker@adacore.com>
663
664 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue):
665 Increment PC in while loop skipping "pop reg" instructions.
666
6672015-11-23 Joel Brobecker <brobecker@adacore.com>
668
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.
671
6722015-11-23 Joel Brobecker <brobecker@adacore.com>
673
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.
677
6782015-11-23 Tristan Gingold <gingold@adacore.com>
679
680 * darwin-nat.c (darwin_ptrace): Avoid a cast.
681 (darwin_resume_thread): Ditto. And always set or reset
682 single step.
683
6842015-11-23 Tristan Gingold <gingold@adacore.com>
685
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.
695
6962015-11-23 Tristan Gingold <gingold@adacore.com>
697
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.
702
7032015-11-19 Don Breazeal <donb@codesourcery.com>
704
705 * target.c (read_memory_robust): Call read_whatever_is_readable
706 with arguments in the correct order.
707
7082015-11-19 Pedro Alves <palves@redhat.com>
709
710 * remote.c (remote_query_supported): Send the "xmlRegisters="
711 feature last.
712
7132015-11-19 Simon Marchi <simon.marchi@ericsson.com>
714
715 * nat/aarch64-linux-hw-point.c (aarch64_linux_set_debug_regs): Change
716 form of iov_len computation.
717
7182015-11-19 Pedro Alves <palves@redhat.com>
719
720 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
721 mode.
722 * configure: Regenerate.
723
7242015-11-19 Pedro Alves <palves@redhat.com>
725
726 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Remove -fpermissive.
727 * configure: Regenerate.
728
7292015-11-19 Pedro Alves <palves@redhat.com>
730
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.
736
7372015-11-19 Simon Marchi <simon.marchi@ericsson.com>
738 Pedro Alves <palves@redhat.com>
739
740 * s390-linux-tdep.c (s390_canonicalize_syscall): Add casts and
741 intermediate 'int' variable.
742
7432015-11-19 Pedro Alves <palves@redhat.com>
744
745 * linux-thread-db.c (try_thread_db_load_1): Add cast.
746
7472015-11-19 Pedro Alves <palves@redhat.com>
748
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.
756
7572015-11-18 Simon Marchi <simon.marchi@ericsson.com>
758
759 * valops.c (value_string): Constify 'ptr' parameter.
760 * value.h (value_string): Constify 'ptr' parameter.
761
7622015-11-18 Simon Marchi <simon.marchi@ericsson.com>
763 Pedro Alves <palves@redhat.com>
764
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.
772
7732015-11-18 Simon Marchi <simon.marchi@ericsson.com>
774
775 * valops.c (value_cstring): Constify 'ptr' parameter.
776 * value.h (value_cstring): Constify 'ptr' parameter.
777
7782015-11-18 Yao Qi <yao.qi@linaro.org>
779
780 * aarch64-tdep.c (pass_in_v): Add argument len. Add local array
781 reg. Callers updated.
782
7832015-11-17 Yao Qi <yao.qi@linaro.org>
784
785 * infrun.c (resume): Check control.trap_expected only
786 when deciding the set of threads to resume.
787
7882015-11-17 Pedro Alves <palves@redhat.com>
789
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.
799
8002015-11-17 Pedro Alves <palves@redhat.com>
801
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.
807
8082015-11-17 Pedro Alves <palves@redhat.com>
809
810 * common/common-defs.h (ATTRIBUTE_PRINTF): Redefine in terms of
811 _GL_ATTRIBUTE_FORMAT_PRINTF after including ansidecl.h.
812
8132015-11-17 Pedro Alves <palves@redhat.com>
814
815 * common/common-defs.h (__STDC_CONSTANT_MACROS)
816 (__STDC_LIMIT_MACROS): Define before including stdint.h.
817
8182015-11-17 Pedro Alves <palves@redhat.com>
819
820 * windows-nat.c (handle_exception): Return 0 for first chance
821 exceptions.
822 (get_windows_debug_event): Adjust.
823
8242015-11-17 Pedro Alves <palves@redhat.com>
825
826 * windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as
827 signal number for terminator.
828
8292015-11-17 Pedro Alves <palves@redhat.com>
830
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.
835
8362015-11-17 Pedro Alves <palves@redhat.com>
837
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.
845
8462015-11-17 Pedro Alves <palves@redhat.com>
847
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.
862
8632015-11-17 Pedro Alves <palves@redhat.com>
864
865 * gdb-dlfcn.c (gdb_dlsym, gdb_dlclose) [__MINGW32__]: Add casts to
866 HMODULE.
867
8682015-11-17 Pedro Alves <palves@redhat.com>
869
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.
874
8752015-11-17 Pedro Alves <palves@redhat.com>
876
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*.
890
8912015-11-17 Simon Marchi <simon.marchi@ericsson.com>
892
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.
906
9072015-11-17 Pedro Alves <palves@redhat.com>
908
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.
966
9672015-11-17 Pedro Alves <palves@redhat.com>
968
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.
973
9742015-11-17 Dominik Vogt <vogt@linux.vnet.ibm.com>
975
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.
980
9812015-11-16 Yao Qi <yao.qi@linaro.org>
982
983 * aarch64-tdep.c (aarch64_extract_return_value): Change array
984 buf's length to V_REGISTER_SIZE.
985
9862015-11-16 Yao Qi <yao.qi@linaro.org>
987
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.
993
9942015-11-16 Yao Qi <yao.qi@linaro.org>
995
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.
999
10002015-11-16 Yao Qi <yao.qi@linaro.org>
1001
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.
1004
10052015-11-13 Yao Qi <yao.qi@linaro.org>
1006
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.
1013
10142015-11-13 Yao Qi <yao.qi@linaro.org>
1015
1016 * arm-tdep.c (arm_return_in_memory): Rewrite it.
1017 (arm_return_value): Call arm_return_in_memory for
1018 TYPE_CODE_COMPLEX.
1019
10202015-11-12 Yao Qi <yao.qi@linaro.org>
1021
1022 * arm-tdep.c (push_stack_item): Change contents type to
1023 const gdb_byte *.
1024
10252015-11-11 Simon Marchi <simon.marchi@ericsson.com>
1026
1027 * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
1028 cast to PTRACE_TYPE_RET *.
1029 (inf_ptrace_store_register): Likewise.
1030
10312015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1032
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.
1037
10382015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1039
1040 * cli/cli-decode.c (add_info): Switch to class_info.
1041
10422015-11-09 Joel Brobecker <brobecker@adacore.com>
1043
1044 * ada-lang.c (ada_is_wrapper_field): Add special handling
1045 for fields called "RETVAL".
1046
10472015-11-09 Yao Qi <yao.qi@linaro.org>
1048
1049 * arm-tdep.c (arm_exidx_new_objfile): Use
1050 ELF_STRING_ARM_unwind.
1051
10522015-11-09 Yao Qi <yao.qi@linaro.org>
1053
1054 * infrun.c (displaced_step_in_progress_thread): New function.
1055 (handle_inferior_event_1): Call it.
1056
10572015-11-05 Yao Qi <yao.qi@linaro.org>
1058
1059 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
1060 aarch64_decode_insn and decode instruction by aarch64_inst.
1061
10622015-11-05 Yao Qi <yao.qi@linaro.org>
1063
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.
1076
10772015-11-05 Yao Qi <yao.qi@linaro.org>
1078
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.
1084
10852015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
1086
1087 PR/18376
1088 * gdb/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.
1092
10932015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
1094
1095 PR/18376
1096 * gdb/configure.tgt: Add linux-record.o to s390*-linux.
1097 * gdb/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.
1114
11152015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
1116
1117 * record-full.c (record_full_exec_insn): Use xmalloc for temporary
1118 memory storage.
1119
11202015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1121
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.
1126
11272015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1128
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.
1134
11352015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1136
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.
1143
11442015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1145
1146 * disasm.c (dump_insns): Split into this and ...
1147 (gdb_pretty_print_insn): ... this.
1148
11492015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1150
1151 * xtensa-linux-nat.c (supply_gregset_reg): Make static.
1152 (xtensa_linux_fetch_inferior_registers): Likewise.
1153 (xtensa_linux_store_inferior_registers): Likewise.
1154
11552015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1156
1157 * arm-linux-nat.c (arm_linux_read_description): Add cast.
1158
11592015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1160
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.
1171
11722015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1173
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.
1182
11832015-11-03 Marcin Kościelnicki <koriakin@0x04.net>
1184
1185 * MAINTAINERS (Write After Approval): Add Marcin Kościelnicki.
1186
11872015-10-30 Pedro Alves <palves@redhat.com>
1188
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.
1194
11952015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1196
1197 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
1198 size_stack_t, size_size_t, size_iovec.
1199
12002015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1201
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.
1205
12062015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1207
1208 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
1209
12102015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1211
1212 * linux-record.c (record_linux_system_call): Fix old_select.
1213
12142015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1215
1216 * linux-record.c (record_linux_system_call): Fix newstatat.
1217
12182015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1219
1220 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
1221
12222015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1223
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.
1233
12342015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1235
1236 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
1237
12382015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1239
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.
1256
12572015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1258
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.
1271
12722015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1273
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.
1276
12772015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1278
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.
1288
12892015-10-29 Pedro Alves <palves@redhat.com>
1290
1291 * mdebugread.c (add_data_symbol): New function, factored out from
1292 ...
1293 (parse_symbol): ... here. Delete 'theclass' local.
1294
12952015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * jit.c (jit_target_read_impl): Add cast.
1298
12992015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1300
1301 * jit.c (jit_reader_load): Add cast.
1302
13032015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1304
1305 * dwarf2read.c (partial_die_full_name): Add cast.
1306
13072015-10-29 Pedro Alves <palves@redhat.com>
1308
1309 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
1310
13112015-10-29 Pedro Alves <palves@redhat.com>
1312
1313 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
1314
13152015-10-29 Eli Zaretskii <eliz@gnu.org>
1316
1317 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
1318 in the environment.
1319
13202015-10-29 Pedro Alves <palves@redhat.com>
1321
1322 * gnu-v2-abi.c (gnuv2_is_destructor_name)
1323 (gnuv2_is_constructor_name): Add casts.
1324
13252015-10-29 Pedro Alves <palves@redhat.com>
1326
1327 * common/common-exceptions.c (exception_none): Add cast.
1328
13292015-10-29 Pedro Alves <palves@redhat.com>
1330
1331 * compile/compile-c-types.c (struct type_map_instance)
1332 <gcc_type>: Rename to gcc_type_handle.
1333 (insert_type, convert_type): Adjust.
1334
13352015-10-29 Pedro Alves <palves@redhat.com>
1336
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.
1351
13522015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
1353
1354 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
1355 as move along with [d]addu.
1356
13572015-10-28 Yao Qi <yao.qi@linaro.org>
1358
1359 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
1360 aarch64_decode_insn.
1361
13622015-10-27 Pedro Alves <palves@redhat.com>
1363
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.
1372
13732015-10-27 Pedro Alves <palves@redhat.com>
1374
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.
1394
13952015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1396
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 *.
1412
14132015-10-27 Pedro Alves <palves@redhat.com>
1414
1415 * source.c (openp): New local 'last_errno'. Use it to
1416 save/restore errno.
1417
14182015-10-27 Pedro Alves <palves@redhat.com>
1419
1420 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
1421
14222015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1423
1424 * ctf.c (SET_ENUM_FIELD): New macro.
1425 (ctf_read_status): Use it.
1426 (ctf_read_tp): Use it.
1427
14282015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1429
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.
1435
14362015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1437
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.
1442
14432015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1444
1445 * ada-lang.h (GROW_VECT): Add cast.
1446
14472015-10-26 Doug Evans <xdje42@gmail.com>
1448
1449 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
1450
14512015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1452
1453 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
1454 pointer.
1455 (simple_search_memory): Cast return of memmem.
1456
14572015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1458
1459 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
1460
14612015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1462
1463 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
1464 -1 on error.
1465
14662015-10-26 Doug Evans <dje@google.com>
1467
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.
1531
15322015-10-26 Doug Evans <dje@google.com>
1533
1534 PR python/18938
1535 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
1536 All callers updated.
1537
15382015-10-26 Doug Evans <dje@google.com>
1539
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.
1543
15442015-10-26 Doug Evans <dje@google.com>
1545
1546 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
1547
15482015-10-26 Doug Evans <dje@google.com>
1549
1550 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
1551 gdbserver/linux-low.c.
1552 (WSETSTOP): Simplify.
1553
15542015-10-26 Doug Evans <dje@google.com>
1555
1556 * linux-thread-db.c (find_new_threads_callback): Ditto.
1557 (thread_db_pid_to_str): Ditto.
1558
15592015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1560
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.
1563
15642015-10-26 Simon Marchi <simon.marchi@ericsson.com>
1565
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.
1569
15702015-10-26 Luis Machado <lgustavo@codesourcery.com>
1571
1572 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
1573 catch_errors call instead of NULL.
1574
15752015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1576
1577 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
1578 char pointer to scm_mode_bits.
1579
15802015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1581
1582 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
1583 cast.
1584
15852015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1586
1587 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
1588 "data" local variable and use it.
1589
15902015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1591
1592 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
1593 domain_enum cast.
1594 (gdbscm_lookup_symbol): Likewise.
1595
15962015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
1597
1598 * d-exp.y: Remove an obsolete comment and propagate the block
1599 information to the produced expression.
1600
16012015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1602
1603 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
1604 cast.
1605 (tui_add_content_elements): Likewise.
1606
16072015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1608
1609 * cli/cli-setshow.c (do_set_command): Constify p.
1610
16112015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1612
1613 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
1614 (void *) cast with (gdb_byte *).
1615
16162015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1617
1618 * proc-service.c (ps_pdread): Add cast.
1619
16202015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1621
1622 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
1623 valbuf.
1624
16252015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1626
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.
1630
16312015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1632
1633 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
1634
16352015-10-23 Simon Marchi <simon.marchi@ericsson.com>
1636
1637 * observer.h (observer_${event}_notification_stub): Add cast.
1638
16392015-10-23 Yao Qi <yao.qi@linaro.org>
1640
1641 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
1642 dsd.insn_count to zero.
1643
16442015-10-22 Pedro Alves <palves@redhat.com>
1645
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.
1651
16522015-10-22 Simon Marchi <simon.marchi@ericsson.com>
1653
1654 * python/python.c (_initialize_python): Add cast.
1655
16562015-10-22 Simon Marchi <simon.marchi@ericsson.com>
1657
1658 * nto-tdep.c (nto_inferior_data): Add cast.
1659
16602015-10-22 Pedro Alves <palves@redhat.com>
1661
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.
1665
16662015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1667
1668 * xtensa-tdep.h (XTREG): Add casts.
1669 (XTREG_END): Likewise.
1670
16712015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1672
1673 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
1674
16752015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1676
1677 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
1678
16792015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1680
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.
1685
16862015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1687
1688 PR python/18073
1689 * python/py-type.c (typy_get_composite): Allow returning a
1690 function type.
1691
16922015-10-21 Keven Boell <keven.boell@intel.com>
1693
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.
1724
17252015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
1726
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.
1737
17382015-10-21 Yao Qi <yao.qi@linaro.org>
1739
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.
1744
17452015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
1746
1747 * gdb/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.
1751
17522015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
1753
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.
1762
17632015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1764
1765 * findvar.c (address_from_register): Check REGNUM validity.
1766
17672015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1768
1769 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
1770 (init_procfs_targets): Wire new function.
1771
17722015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1773
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.
1778
17792015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1780
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.
1790
17912015-10-19 Josh Stone <jistone@redhat.com>
1792
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.
1798
17992015-10-19 Luis Machado <lgustavo@codesourcery.com>
1800
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.
1804
18052015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
1806
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.
1815
18162015-10-16 Yao Qi <yao.qi@arm.com>
1817
1818 * MAINTAINERS: Update my email address.
1819
18202015-10-15 Yao Qi <yao.qi@linaro.org>
1821
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.
1831
18322015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
1833
1834 * gdbarch.sh (core_regset_section): Remove.
1835 * gdbarch.h: Regenerate.
1836
18372015-10-14 Yao Qi <yao.qi@linaro.org>
1838
1839 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
1840 out of it.
1841 (enum aarch64_memory_operand_type): New.
1842
18432015-10-13 David Edelsohn <dje.gcc@gmail.com>
1844
1845 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
1846
18472015-10-13 Pedro Alves <palves@redhat.com>
1848
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.
1863
18642015-10-13 Pedro Alves <palves@redhat.com>
1865
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.
1872
18732015-10-13 Pedro Alves <palves@redhat.com>
1874
1875 * ada-lang.c (ada_value_primitive_packed_val): Constify
1876 locals. Use value_contents_writeable. Remove casts.
1877
18782015-10-13 Pedro Alves <palves@redhat.com>
1879
1880 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
1881 and alloca calls.
1882
18832015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1884
1885 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
1886 write_memory with write_memory_unsigned_integer.
1887
18882015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1889
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.
1898
18992015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1900
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.
1906
19072015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1908
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.
1918
19192015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1920
1921 * stack.c (func_command): Return early when there is no ARG
1922 string.
1923
19242015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1925
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.
1929
19302015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1931
1932 * mep-tdep.c (current_me_module): Add cast.
1933 (mep_gdbarch_init): Likewise.
1934
19352015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1936
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.
1955
19562015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1957
1958 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
1959
19602015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1961
1962 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
1963 gdb_sys_no_syscall instead of -1.
1964
19652015-10-12 Yao Qi <yao.qi@linaro.org>
1966
1967 * NEWS: Mention the change.
1968
19692015-10-12 Yao Qi <yao.qi@linaro.org>
1970
1971 * arch/aarch64-insn.c (emit_load_store): Rename to ...
1972 (aarch64_emit_load_store): ... it. All callers updated.
1973
19742015-10-12 Yao Qi <yao.qi@linaro.org>
1975
1976 * arch/aarch64-insn.c (emit_insn): Rename to ...
1977 (aarch64_emit_insn): ... it. All callers updated.
1978
19792015-10-12 Yao Qi <yao.qi@linaro.org>
1980
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.
2018
20192015-10-12 Yao Qi <yao.qi@linaro.org>
2020
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.
2029
20302015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
2031
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.
2035
20362015-10-09 Joel Brobecker <brobecker@adacore.com>
2037
2038 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
2039 is large enough for BIT_SIZE. Update function comment.
2040
20412015-10-09 Joel Brobecker <brobecker@adacore.com>
2042
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.
2046
20472015-10-09 Joel Brobecker <brobecker@adacore.com>
2048
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.
2053
20542015-10-09 Joel Brobecker <brobecker@adacore.com>
2055
2056 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
2057 of case where TYPE is dynamic.
2058
20592015-10-09 Joel Brobecker <brobecker@adacore.com>
2060
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.
2065
20662015-10-09 Joel Brobecker <brobecker@adacore.com>
2067
2068 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
2069 variable declarations.
2070
20712015-10-09 Joel Brobecker <brobecker@adacore.com>
2072
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 *".
2076
20772015-10-09 Joel Brobecker <brobecker@adacore.com>
2078
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.
2082
20832015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2084
2085 * i386-tdep.h (struct gdbarch_tdep): Change type of
2086 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
2087
20882015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2089
2090 * cris-tdep.c (struct instruction_environment): Change type of
2091 byte_order to enum bfd_endian.
2092
20932015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2094
2095 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
2096 enum gdb_syscall casts.
2097
20982015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2099
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*.
2151
21522015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2153
2154 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
2155 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
2156
21572015-10-09 Eli Zaretskii <eliz@gnu.org>
2158
2159 * stack.c (print_stack_frame):
2160 * utils.c (printchar): Fix typos in commentary.
2161
21622015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
2163
2164 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
2165 (PostfixExpression): Support `expr.sizeof' expressions.
2166 (PrimaryExpression): Support `typeof(expr)' expressions.
2167
21682015-10-08 Maciej W. Rozycki <macro@imgtec.com>
2169
2170 * MAINTAINERS: Update my email address.
2171
21722015-10-08 Markus Metzger <markus.t.metzger@intel.com>
2173
2174 * record-btrace.c (record_btrace_resume): Fix void return.
2175
21762015-10-07 Yao Qi <yao.qi@linaro.org>
2177
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.
2185
21862015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2187
2188 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
2189 only when the file is binary.
2190
21912015-10-02 James Bowman <james.bowman@ftdichip.com>
2192
2193 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
2194 subroutine handling.
2195
21962015-10-01 Simon Marchi <simon.marchi@ericsson.com>
2197
2198 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
2199
22002015-09-30 Doug Evans <dje@google.com>
2201
2202 * dwarf2read.c (setup_type_unit_groups): Add comment.
2203
22042015-09-30 Pedro Alves <palves@redhat.com>
2205
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.
2210
22112015-09-30 Don Breazeal <donb@codesourcery.com>
2212
2213 * remote.c (remote_parse_stop_reply): Call strprefix instead
2214 of strncmp.
2215
22162015-09-30 Simon Marchi <simon.marchi@ericsson.com>
2217
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.
2226
22272015-09-30 Kevin Buettner <kevinb@redhat.com>
2228
2229 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
2230 record a NULL value.
2231
22322015-09-29 Kevin Buettner <kevinb@redhat.com>
2233
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.
2237
22382015-09-29 James Bowman <james.bowman@ftdichip.com>
2239
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.
2243
22442015-09-28 Simon Marchi <simon.marchi@ericsson.com>
2245
2246 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2247 comment.
2248
22492015-09-28 Doug Evans <dje@google.com>
2250
2251 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
2252
22532015-09-28 Doug Evans <dje@google.com>
2254
2255 * common/filestuff.c (make_cleanup_close): Update comment.
2256
22572015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
2258
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.
2266
22672015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
2268
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.
2273
22742015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2275
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.
2782
27832015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2784
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.
3311
33122015-09-25 Simon Marchi <simon.marchi@ericsson.com>
3313
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.
3777
37782015-09-23 James Bowman <james.bowman@ftdichip.com>
3779
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.
3792
37932015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
3794
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.
3798
37992015-09-22 Simon Marchi <simon.marchi@ericsson.com>
3800
3801 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
3802
38032015-09-21 Simon Marchi <simon.marchi@ericsson.com>
3804
3805 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
3806 * linespec.c (linespec_lexer_lex_string): Same.
3807
38082015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3809
3810 * NEWS: Mention support for fast tracepoints on aarch64-linux.
3811
38122015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3813
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.
3822
38232015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3824
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.
3869
38702015-09-20 Doug Evans <xdje42@gmail.com>
3871
3872 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
3873
38742015-09-20 Doug Evans <xdje42@gmail.com>
3875
3876 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
3877 variable name that collides with a parameter.
3878
38792015-09-20 Joel Brobecker <brobecker@adacore.com>
3880
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.
3889
38902015-09-19 Doug Evans <xdje42@gmail.com>
3891
3892 * ravenscar-thread.c (ravenscar_inferior_created): Replace
3893 current_inferior ()->gdbarch with its wrapper target_gdbarch.
3894
38952015-09-18 Doug Evans <xdje42@gmail.com>
3896
3897 * linux-thread-db.c (record_thread): Return the created thread.
3898 (thread_from_lwp): Likewise.
3899 (thread_db_get_thread_local_address): Update.
3900
39012015-09-18 Doug Evans <xdje42@gmail.com>
3902
3903 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
3904 move only member demangled_name up. All uses updated.
3905
39062015-09-18 Doug Evans <xdje42@gmail.com>
3907
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.
3912
39132015-09-18 Yao Qi <yao.qi@linaro.org>
3914
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.
3922
39232015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3924
3925 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
3926
39272015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3928
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.
3940
39412015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3942
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.
3951
39522015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3953
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.
3964
39652015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3966
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.
3972
39732015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3974
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.
3985
39862015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3987
3988 * record-btrace.c (record_btrace_open): Remove non_stop check.
3989 * NEWS: Announce that record btrace supports non-stop mode.
3990
39912015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3992
3993 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
3994 in the TARKET_WAITKIND_NO_HISTORY case.
3995
39962015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3997
3998 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
3999 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
4000
40012015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4002
4003 * record-btrace.c (get_thread_current_frame): New.
4004 (record_btrace_start_replaying): Call get_thread_current_frame.
4005
40062015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4007
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.
4012
40132015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4014
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.
4027
40282015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4029
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.
4032
40332015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4034
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.
4039
40402015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4041
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.
4047
40482015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4049
4050 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
4051 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
4052
40532015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4054
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.
4061
40622015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4063
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.
4072
40732015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4074
4075 * record-btrace.c (record_btrace_wait): Replace non_stop check with
4076 target_is_non_stop_p ().
4077
40782015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
4079
4080 * ada-typeprint.c (print_array_type): Do not describe arrays as
4081 packed when they embed dynamic elements.
4082
40832015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4084
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.
4089
40902015-09-15 Pierre Langlois <pierre.langlois@arm.com>
4091
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.
4117
41182015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4119
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.
4125
41262015-09-15 Yao Qi <yao.qi@linaro.org>
4127
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.
4146
41472015-09-15 Yao Qi <yao.qi@linaro.org>
4148
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.
4164
41652015-09-14 Pedro Alves <palves@redhat.com>
4166
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.
4177
41782015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
4179
4180 * ada-lang.c (ada_value_ptr_subscript): Update the heading
4181 comment. Handle packed arrays.
4182
41832015-09-14 Pedro Alves <palves@redhat.com>
4184
4185 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
4186 mention of maint set/show target-non-stop.
4187
41882015-09-11 Don Breazeal <donb@codesourcery.com>
4189
4190 * NEWS: Announce new remote packets for the exec-events
4191 feature and the exec-events feature and associated commands.
4192
41932015-09-11 Don Breazeal <donb@codesourcery.com>
4194
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.
4201
42022015-09-11 Don Breazeal <donb@codesourcery.com>
4203 Luis Machado <lgustavo@codesourcery.com>
4204
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.
4238
42392015-09-11 Pierre Langlois <pierre.langlois@arm.com>
4240
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.
4245
42462015-09-11 Pierre Langlois <pierre.langlois@arm.com>
4247
4248 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
4249
42502015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
4251
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.
4255
42562015-09-10 Simon Marchi <simon.marchi@ericsson.com>
4257
4258 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
4259 operations.
4260
42612015-09-10 Simon Marchi <simon.marchi@ericsson.com>
4262
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.
4269
42702015-09-10 Yao Qi <yao.qi@linaro.org>
4271
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.
4278
42792015-09-09 Pedro Alves <palves@redhat.com>
4280
4281 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
4282 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
4283
42842015-09-09 Pedro Alves <palves@redhat.com>
4285
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.
4318
43192015-09-09 Pedro Alves <palves@redhat.com>
4320
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.
4334
43352015-09-09 Pedro Alves <palves@redhat.com>
4336
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.
4357
43582015-09-09 Pedro Alves <palves@redhat.com>
4359
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.
4382
43832015-09-09 Pedro Alves <palves@redhat.com>
4384
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.
4460
44612015-09-09 Pedro Alves <palves@redhat.com>
4462
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.
4505
45062015-09-09 Markus Metzger <markus.t.metzger@intel.com>
4507
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.
4520
45212015-09-07 Pedro Alves <palves@redhat.com>
4522
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.
4550
45512015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4552
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.
4571
45722015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4573
4574 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
4575
45762015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4577
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.
4585
45862015-09-04 Yao Qi <yao.qi@linaro.org>
4587
4588 * NEWS: Mention the aarch64 multi-arch debugging support.
4589
45902015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
4591
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.
4595
45962015-09-03 Yao Qi <yao.qi@linaro.org>
4597
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.
4605
46062015-09-02 Patrick Palka <patrick@parcs.ath.cx>
4607
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.
4614
46152015-09-02 Patrick Palka <patrick@parcs.ath.cx>
4616
4617 * gdbtypes.c (copy_type_recursive): Update documentation.
4618
46192015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4620
4621 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
4622 as zero.
4623
46242015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4625
4626 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
4627
46282015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4629
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.
4633
46342015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4635
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.
4650
46512015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
4652
4653 * ada-lang.c (ada_resolve_function): Do not ask the user what
4654 match to use when in completion mode.
4655
46562015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
4657
4658 * tui/tui-data.c (tui_win_name): Make local variable const, remove
4659 cast of NULL.
4660
46612015-08-31 Max Filippov <jcmvbkbc@gmail.com>
4662
4663 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
4664 call_abi using XSHAL_ABI macro.
4665
46662015-08-29 Doug Evans <xdje42@gmail.com>
4667
4668 * symtab.h (struct symbol): Tweak comment.
4669
46702015-08-29 Patrick Palka <patrick@parcs.ath.cx>
4671
4672 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
4673 gdbarch obstack instead of on the heap. Update commentary
4674 accordingly.
4675
46762015-08-28 Joel Brobecker <brobecker@adacore.com>
4677
4678 GDB 7.10 released.
4679
46802015-08-28 Simon Marchi <simon.marchi@ericsson.com>
4681
4682 * NEWS: Update entry about non-8-bits addressable memory.
4683
46842015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
4685
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.
4690
46912015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4692
4693 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
4694 attempt to relocate a TLS variable offset.
4695
46962015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4697
4698 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
4699 registered yet. Set inferior_ptid while calling target_read_memory.
4700
47012015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4702
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.
4707
47082015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
4709
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.
4713
47142015-08-27 Simon Marchi <simon.marchi@ericsson.com>
4715
4716 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
4717 statements.
4718
47192015-08-27 Simon Marchi <simon.marchi@ericsson.com>
4720
4721 * NEWS: Document support for non-8-bits addressable memory.
4722
47232015-08-27 Pedro Alves <palves@redhat.com>
4724
4725 * configure.ac: Remove AC_TYPE_SIGNAL call.
4726 * configure, config.in: Regenerate.
4727
47282015-08-27 Pedro Alves <palves@redhat.com>
4729
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.
4744
47452015-08-27 Pedro Alves <palves@redhat.com>
4746
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.
4757
47582015-08-27 Pedro Alves <palves@redhat.com>
4759
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.
4770
47712015-08-26 Luis Machado <lgustavo@codesourcery.com>
4772
4773 * compile/compile.c (compile_to_object): Mention language in
4774 error message.
4775
47762015-08-26 Patrick Palka <patrick@parcs.ath.cx>
4777
4778 * target.c (target_pre_inferior): Unset attach_flag.
4779
47802015-08-26 Simon Marchi <simon.marchi@ericsson.com>
4781
4782 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
4783 * gdbarch.c: Re-generate.
4784
47852015-08-26 Simon Marchi <simon.marchi@ericsson.com>
4786
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.
5123
51242015-08-25 Don Breazeal <donb@codesourcery.com>
5125
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.
5131
51322015-08-26 Pedro Alves <palves@redhat.com>
5133
5134 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
5135
51362015-08-25 Pedro Alves <palves@redhat.com>
5137
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.
5159
51602015-08-25 Yao Qi <yao.qi@linaro.org>
5161
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.
5165
51662015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
5167
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.
5274
52752015-08-25 Yao Qi <yao.qi@linaro.org>
5276
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.
5280
52812015-08-25 Yao Qi <yao.qi@linaro.org>
5282
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.
5293
52942015-08-25 Yao Qi <yao.qi@linaro.org>
5295
5296 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
5297 lwp_arch_private_info and ptid_of_lwp.
5298
52992015-08-25 Yao Qi <yao.qi@linaro.org>
5300
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.
5311
53122015-08-25 Yao Qi <yao.qi@linaro.org>
5313
5314 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
5315 Call current_lwp_ptid.
5316
53172015-08-25 Yao Qi <yao.qi@linaro.org>
5318
5319 * aarch64-linux-nat.c (debug_reg_change_callback): Use
5320 debug_printf.
5321
53222015-08-25 Yao Qi <yao.qi@linaro.org>
5323
5324 * aarch64-linux-nat.c (debug_reg_change_callback): Call
5325 ptid_get_pid rather than ptid_get_lwp.
5326
53272015-08-24 Pedro Alves <palves@redhat.com>
5328
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".
5334
53352015-08-24 Pedro Alves <palves@redhat.com>
5336
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.
5503
55042015-08-24 Pedro Alves <palves@redhat.com>
5505
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.
5525
55262015-08-24 Pedro Alves <palves@redhat.com>
5527
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.
5547
55482015-08-21 Pedro Alves <palves@redhat.com>
5549
5550 * frame.c (null_frame_id): Explicitly zero-initialize.
5551
55522015-08-21 Tom Tromey <tromey@redhat.com>
5553
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.
5561
55622015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5563
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.
5572
55732015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5574
5575 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
5576 emit the newline.
5577
55782015-08-21 Gary Benson <gbenson@redhat.com>
5579
5580 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
5581
55822015-08-21 Gary Benson <gbenson@redhat.com>
5583
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.
5594
55952015-08-21 Gary Benson <gbenson@redhat.com>
5596
5597 * nat/linux-namespaces.c (linux_mntns_access_fs):
5598 Do not overwrite old_chain.
5599
56002015-08-20 Max Filippov <jcmvbkbc@gmail.com>
5601
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.
5612
56132015-08-21 Pedro Alves <palves@redhat.com>
5614
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.
5626
56272015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
5628
5629 PR build/18843
5630 * procfs.c: Include "filestuff.h".
5631
56322015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5633
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).
5649
56502015-08-20 Pedro Alves <palves@redhat.com>
5651
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.
5658
56592015-08-20 Pedro Alves <palves@redhat.com>
5660
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.
5664
56652015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
5666
5667 * ada-lex.l: Reset the start condition to INITIAL in the rule that
5668 matches attributes.
5669
56702015-08-19 Kevin Buettner <kevinb@redhat.com>
5671
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.
5678
56792015-08-18 Doug Evans <dje@google.com>
5680 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5681
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.
5697
56982015-08-18 Sandra Loosemore <sandra@codesourcery.com>
5699
5700 * remote.c (strprefix): New.
5701 (remote_parse_stop_reply): Use strprefix instead of strncmp
5702 to ensure exact match of keyword.
5703
57042015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5705
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.
5713
57142015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5715
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.
5721
57222015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5723
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.
5731
57322015-08-18 Pedro Alves <palves@redhat.com>
5733
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.
5739
57402015-08-17 Doug Evans <dje@google.com>
5741
5742 * ui-out.c (default_ui_out_impl): Add comment.
5743
57442015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
5745
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.
5750
57512015-08-15 Doug Evans <xdje42@gmail.com>
5752
5753 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
5754 updated.
5755 (add_psymbol_to_list): Ditto.
5756
57572015-08-15 Doug Evans <xdje42@gmail.com>
5758
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.
5769
57702015-08-15 Doug Evans <xdje42@gmail.com>
5771
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.
5782
57832015-08-15 Doug Evans <xdje42@gmail.com>
5784
5785 * objfiles.h: Whitespace cleanup.
5786 * psympriv.h: Whitespace cleanup.
5787 * psymtab.c: Whitespace/coding convention cleanup.
5788
57892015-08-15 Patrick Palka <patrick@parcs.ath.cx>
5790
5791 * inferior.c (detach_inferior_command): Don't call
5792 any_thread_of_process when pid is 0.
5793 (kill_inferior_command): Likewise.
5794
57952015-08-14 Doug Evans <xdje42@gmail.com>
5796
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.
5817
58182015-08-14 Keith Seitz <keiths@redhat.com>
5819
5820 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
5821 `typename' to `type_name' to avoid C++ reserved word.
5822
58232015-08-14 Keith Seitz <keiths@redhat.com>
5824
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.
5828
58292015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
5830
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.
5835
58362015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5837
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.
5849
58502015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5851
5852 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
5853
58542015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5855
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.
5877
58782015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5879
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.
5887
58882015-08-13 Pedro Alves <palves@redhat.com>
5889
5890 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
5891 cleanup after the decref cleanup, not before.
5892
58932015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
5894
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
5941
59422015-08-12 Joel Brobecker <brobecker@adacore.com>
5943
5944 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
5945 compute RETADDR.
5946
59472015-08-12 Keith Seitz <keiths@redhat.com>
5948
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".
5975
59762015-08-12 Keith Seitz <keiths@redhat.com>
5977
5978 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
5979 and only call decode_line_1 when it is non-NULL.
5980
59812015-08-12 Luis Machado <lgustavo@codesourcery.com>
5982
5983 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
5984 location address is not meaningful.
5985 (breakpoint_address_is_meaningful): Update comment.
5986
59872015-08-11 Keith Seitz <keiths@redhat.com>
5988
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".
5994
59952015-08-11 Keith Seitz <keiths@redhat.com>
5996
5997 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
5998 explicit locations, options "--source", "--function",
5999 "--label", and "--line".
6000
60012015-08-11 Keith Seitz <keiths@redhat.com>
6002
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.
6029
60302015-08-11 Keith Seitz <keiths@redhat.com>
6031
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.
6091
60922015-08-11 Keith Seitz <keiths@redhat.com>
6093
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.
6111
61122015-08-11 Keith Seitz <keiths@redhat.com>
6113
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.
6137
61382015-08-11 Keith Seitz <keiths@redhat.com>
6139
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.
6311
63122015-08-11 Keith Seitz <keiths@redhat.com>
6313
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.
6321
63222015-08-11 Keith Seitz <keiths@redhat.com>
6323
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.
6354
63552015-08-10 Doug Evans <dje@google.com>
6356 Keith Seitz <keiths@redhat.com>
6357
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.
6362
63632015-08-10 Joel Brobecker <brobecker@adacore.com>
6364
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.
6368
63692015-08-07 Pedro Alves <palves@redhat.com>
6370
6371 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
6372
63732015-08-07 Pedro Alves <palves@redhat.com>
6374
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.
6380
63812015-08-07 Pedro Alves <palves@redhat.com>
6382
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.
6396
63972015-08-07 Pedro Alves <palves@redhat.com>
6398
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.
6408
64092015-08-07 Pedro Alves <palves@redhat.com>
6410
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.
6458
64592015-08-07 Pedro Alves <palves@redhat.com>
6460
6461 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
6462 threads" as alternative to "switching back to stepped thread".
6463
64642015-08-07 Pedro Alves <palves@redhat.com>
6465
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.
6508
65092015-08-07 Pedro Alves <pedro@codesourcery.com>
6510
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.
6573
65742015-08-07 Pedro Alves <palves@redhat.com>
6575
6576 * infrun.c (keep_going_stepped_thread): New function, factored out
6577 from ...
6578 (switch_back_to_stepped_thread): ... here.
6579
65802015-08-07 Pedro Alves <palves@redhat.com>
6581
6582 * infrun.c (currently_stepping): Extend intro comment.
6583 * target.h (target_resume): Extend intro comment.
6584
65852015-08-07 Pedro Alves <palves@redhat.com>
6586
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.
6593
65942015-08-07 Pedro Alves <palves@redhat.com>
6595
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.
6620
66212015-08-07 Pedro Alves <palves@redhat.com>
6622
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.
6650
66512015-08-07 Pedro Alves <palves@redhat.com>
6652
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.
6657
66582015-08-07 Pedro Alves <palves@redhat.com>
6659
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.
6663
66642015-08-07 Pedro Alves <pedro@codesourcery.com>
6665
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.
6669
66702015-08-07 Pedro Alves <palves@redhat.com>
6671
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.
6687
66882015-08-07 Joel Brobecker <brobecker@adacore.com>
6689
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.
6693
66942015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
6695
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.
6705
67062015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
6707
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.
6716
67172015-08-07 Markus Metzger <markus.t.metzger@intel.com>
6718
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.
6726
67272015-08-07 Markus Metzger <markus.t.metzger@intel.com>
6728
6729 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
6730 * configure: Regenerate.
6731
67322015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
6733
6734 * Makefile.in (LIBICONV): Define.
6735 (CLIBS): Add LIBICONV.
6736 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
6737 * configure: Regenerate.
6738
67392015-08-06 Simon Marchi <simon.marchi@ericsson.com>
6740 Pedro Alves <palves@redhat.com>
6741
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.
6780
67812015-08-06 Clem Dickey <clemd@acm.org>
6782
6783 PR python/17136
6784 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
6785
67862015-08-06 Simon Marchi <simon.marchi@ericsson.com>
6787
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.
6794
67952015-08-06 Pedro Alves <palves@redhat.com>
6796
6797 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
6798 returned > 0.
6799
68002015-08-06 Pierre Langlois <pierre.langlois@arm.com>
6801
6802 * common/agent.c (symbol_list) <required>: Remove.
6803
68042015-08-06 Pedro Alves <palves@redhat.com>
6805
6806 * target/waitstatus.h (enum target_stop_reason)
6807 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6808
68092015-08-05 Pedro Alves <palves@redhat.com>
6810 Joel Brobecker <brobecker@adacore.com>
6811
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.
6815
68162015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
6817
6818 * nat/gdb_thread_db.h: Add copyright header.
6819 Protect against multiple inclusion.
6820
68212015-08-05 Yao Qi <yao.qi@linaro.org>
6822
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.
6847
68482015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
6849
6850 * python/py-linetable.c: Fix case of Linetable to LineTable
6851 in docstrings and code comments.
6852 * python/py-symtab.c: Same.
6853
68542015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6855
6856 * infcmd.c (signal_command): Call do_cleanups for args_chain.
6857
68582015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6859
6860 PR gdb/18767
6861 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
6862 use.
6863
68642015-08-04 Pedro Alves <palves@redhat.com>
6865
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.
6878
68792015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6880
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.
6910
69112015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
6912
6913 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
6914 variable warning with some compilers.
6915
69162015-08-03 Yao Qi <yao.qi@linaro.org>
6917
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".
6922
69232015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
6924
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.
6931
69322015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
6933
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.
7104
71052015-07-31 Simon Marchi <simon.marchi@ericsson.com>
7106
7107 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
7108 instead of integer.
7109
71102015-07-31 Simon Marchi <simon.marchi@ericsson.com>
7111 Pedro Alves <palves@redhat.com>
7112
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.
7220
72212015-07-30 Sandra Loosemore <sandra@codesourcery.com>
7222
7223 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
7224 already says and disallow non-stack memory writes in the prologue.
7225
72262015-07-30 Sandra Loosemore <sandra@codesourcery.com>
7227
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.
7232
72332015-07-30 Pedro Alves <palves@redhat.com>
7234
7235 PR threads/18600
7236 * linux-nat.c (wait_lwp): Report to the core when thread group
7237 leader exits.
7238
72392015-07-30 Pedro Alves <palves@redhat.com>
7240 Simon Marchi <simon.marchi@ericsson.com>
7241
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.
7249
72502015-07-30 Pierre Langlois <pierre.langlois@arm.com>
7251
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.
7265
72662015-07-30 Yao Qi <yao.qi@linaro.org>
7267
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.
7271
72722015-07-30 Pierre Langlois <pierre.langlois@arm.com>
7273
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.
7285
72862015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7287
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.
7292
72932015-07-29 Patrick Palka <patrick@parcs.ath.cx>
7294
7295 * top.c: Include "tui/tui.h".
7296 (undo_terminal_modifications_before_exit): New static function.
7297 (quit_force): Use it.
7298
72992015-07-29 Patrick Palka <patrick@parcs.ath.cx>
7300
7301 * target.c (terminal_state): Initialize to terminal_is_ours.
7302
73032015-07-29 Yao Qi <yao.qi@linaro.org>
7304
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.
7310
73112015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7312
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.
7342
73432015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7344
7345 * value.c (get_value_arch): New function.
7346 * value.h (get_value_arch): New declaration.
7347
73482015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7349
7350 * value.c (struct value): Update comments.
7351
73522015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7353
7354 * gdbtypes.c (type_length_units): New function.
7355 * gdbtypes.h (type_length_units): New declaration.
7356 (struct type) <length>: Update comment.
7357
73582015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7359
7360 * valprint.c (generic_val_print): Factor out complex
7361 printing code to ...
7362 (generic_val_print_complex): ... this new function.
7363
73642015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7365
7366 * valprint.c (generic_val_print): Factor out decfloat
7367 printing code to ...
7368 (generic_val_print_decfloat): ... this new function.
7369
73702015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7371
7372 * valprint.c (generic_val_print): Factor out float
7373 printing code to ...
7374 (generic_val_print_float): ... this new function.
7375
73762015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7377
7378 * valprint.c (generic_val_print): Factor out char
7379 printing code to ...
7380 (generic_val_print_char): ... this new function.
7381
73822015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7383
7384 * valprint.c (generic_val_print): Factor out integer
7385 printing code to ...
7386 (generic_val_print_int): ... this new function.
7387
73882015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7389
7390 * valprint.c (generic_val_print): Factor out bool
7391 printing code to ...
7392 (generic_val_print_bool): ... this new function.
7393
73942015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7395
7396 * valprint.c (generic_val_print): Factor out function/method
7397 printing code to ...
7398 (generic_val_print_func): ... this new function.
7399
74002015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7401
7402 * valprint.c (generic_val_print): Factor out flags
7403 printing code to ...
7404 (generic_val_print_flags): ... this new function.
7405
74062015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7407
7408 * valprint.c (generic_val_print): Factor out enum
7409 printing code to ...
7410 (generic_val_print_enum): ... this new function.
7411
74122015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7413
7414 * valprint.c (generic_val_print): Factor out reference
7415 printing code to ...
7416 (generic_val_print_ref): ... this new function.
7417
74182015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7419
7420 * valprint.c (generic_val_print): Factor out memberptr
7421 printing code to ...
7422 (generic_val_print_memberptr): ... this new function.
7423
74242015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7425
7426 * valprint.c (generic_val_print): Factor out pointer
7427 printing code to ...
7428 (generic_val_print_ptr): ... this new function.
7429
74302015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7431
7432 * valprint.c (generic_val_print): Factor out array
7433 printing code to ...
7434 (generic_val_print_array): ... this new function.
7435
74362015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7437
7438 * valprint.c (generic_val_print): Factor out
7439 print_unpacked_pointer code to ...
7440 (print_unpacked_pointer): ... this new function.
7441
74422015-07-27 Patrick Palka <patrick@parcs.ath.cx>
7443
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.
7447
74482015-07-27 Yao Qi <yao.qi@linaro.org>
7449
7450 * Makefile.in (REMOTE_EXAMPLES): Remove it.
7451
74522015-07-25 Kevin Buettner <kevinb@redhat.com>
7453
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.
7460
74612015-07-24 Pedro Alves <palves@redhat.com>
7462
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.
7466
74672015-07-24 Pedro Alves <palves@redhat.com>
7468
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.
7472
74732015-07-24 Pedro Alves <palves@redhat.com>
7474
7475 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
7476
74772015-07-24 Pedro Alves <palves@redhat.com>
7478
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.
7503
75042015-07-24 Pedro Alves <palves@redhat.com>
7505
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.
7513
75142015-07-24 Pedro Alves <palves@redhat.com>
7515
7516 * gdb_ptrace.h: Move ...
7517 * nat/gdb_ptrace.h: ... here.
7518 * inf-ptrace.c: Adjust.
7519
75202015-07-24 Pedro Alves <palves@redhat.com>
7521
7522 * acinclude.m4: Include ptrace.m4.
7523 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
7524 * ptrace.m4: ... to this new file.
7525
75262015-07-23 Doug Evans <dje@google.com>
7527
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.
7532
75332015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
7534
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.
7540
75412015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
7542
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.
7546
75472015-07-23 Yao Qi <yao.qi@linaro.org>
7548
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.
7552
75532015-07-21 Yao Qi <yao.qi@linaro.org>
7554
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.
7562
75632015-07-21 Markus Metzger <markus.t.metzger@intel.com>
7564
7565 * common/btrace-common.c (btrace_data_append): Change case label.
7566
75672015-07-20 Yao Qi <yao.qi@linaro.org>
7568
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".
7573
75742015-07-18 Kevin Buettner <kevinb@redhat.com>
7575
7576 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
7577 to be set for SEC_ALLOC sections too.
7578
75792015-07-17 Yao Qi <yao.qi@linaro.org>
7580
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.
7613
76142015-07-17 Yao Qi <yao.qi@linaro.org>
7615
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.
7629
76302015-07-17 Yao Qi <yao.qi@linaro.org>
7631
7632 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
7633 debug_printf.
7634 (aarch64_handle_unaligned_watchpoint): Likewise.
7635
76362015-07-17 Yao Qi <yao.qi@linaro.org>
7637
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.
7645
76462015-07-17 Yao Qi <yao.qi@linaro.org>
7647
7648 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
7649 ptid_get_pid instead of get_thread_id.
7650
76512015-07-17 Yao Qi <yao.qi@linaro.org>
7652
7653 * remote.c (get_current_thread): Initialise ptid to null_ptid.
7654 (add_current_inferior_and_thread): Don't initialise ptid.
7655
76562015-07-16 Pierre Langlois <pierre.langlois@arm.com>
7657
7658 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
7659 unavailable if invalid.
7660
76612015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7662
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
7670
76712015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7672 Jan Kratochvil <jan.kratochvil@redhat.com>
7673
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'.
7698
76992015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7700 Jan Kratochvil <jan.kratochvil@redhat.com>
7701
7702 gdbserver build-id attribute generator.
7703 * features/library-list-svr4.dtd (library-list-svr4): New
7704 'build-id' attribute.
7705
77062015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7707 Jan Kratochvil <jan.kratochvil@redhat.com>
7708
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.
7737
77382015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7739 Jan Kratochvil <jan.kratochvil@redhat.com>
7740
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.
7759
77602015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7761
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.
7778
77792015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7780 Jan Kratochvil <jan.kratochvil@redhat.com>
7781
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.
7793
77942015-07-15 Markus Metzger <markus.t.metzger@intel.com>
7795 Pedro Alves <palves@redhat.com>
7796
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.
7815
78162015-07-14 Simon Marchi <simon.marchi@ericsson.com>
7817
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.
7868
78692015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
7870
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.
7880
78812015-07-14 Peter Bergner <bergner@vnet.ibm.com>
7882
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.
7886
78872015-07-13 Yao Qi <yao.qi@linaro.org>
7888
7889 * exec.c (exec_file_attach): Add period at the end of error
7890 message.
7891
78922015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
7893
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.
7900
79012015-07-12 Sandra Loosemore <sandra@codesourcery.com>
7902
7903 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
7904 all nios2 mach variants.
7905
79062015-07-10 Kevin Buettner <kevinb@redhat.com>
7907
7908 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
7909 of target_read_memory.
7910
79112015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7912
7913 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
7914 string copy.
7915 (parse_scrolling_args): Likewise.
7916
79172015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7918
7919 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
7920 names in this function.
7921
79222015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7923
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.
7931
79322015-07-10 Markus Metzger <markus.t.metzger@intel.com>
7933
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.
7939
79402015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7941
7942 * NEWS: Mention support for tracepoints on aarch64-linux.
7943
79442015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7945
7946 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
7947 function. Return 1.
7948 (the_low_target): Install it.
7949
79502015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7951
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.
7960
79612015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7962
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.
7966
79672015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7968
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.
7975
79762015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7977
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.
7992
79932015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7994
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.
8003
80042015-07-09 Pierre Langlois <pierre.langlois@arm.com>
8005
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.
8011
80122015-07-09 Pierre Langlois <pierre.langlois@arm.com>
8013
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.
8021
80222015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8023
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.
8027
80282015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8029
8030 * c-valprint.c (c_val_print): Factor out int printing code to ...
8031 (c_val_print_int): ... this new function.
8032
80332015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8034
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.
8039
80402015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8041
8042 * c-valprint.c (c_val_print): Factor out pointer printing code
8043 to ...
8044 (c_val_print_ptr): ... this new function.
8045
80462015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8047
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.
8051
80522015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8053
8054 * c-valprint.c (c_val_print): Factor out pointer printing code
8055 to ...
8056 (print_unpacked_pointer): ... this new function.
8057
80582015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8059
8060 * c-valprint.c (c_val_print): Remove an assignment to i and move
8061 its declaration.
8062
80632015-07-09 Yao Qi <yao.qi@linaro.org>
8064
8065 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
8066 argument ptid. Update comments. Caller update.
8067
80682015-07-09 Markus Metzger <markus.t.metzger@intel.com>
8069
8070 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
8071 mnt packets.
8072
80732015-07-09 Markus Metzger <markus.t.metzger@intel.com>
8074
8075 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
8076
80772015-07-08 Simon Marchi <simon.marchi@ericsson.com>
8078
8079 * progspace.c (delete_program_space): Add missing spaces.
8080
80812015-07-08 Simon Marchi <simon.marchi@ericsson.com>
8082
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.
8109
81102015-07-08 Patrick Palka <patrick@parcs.ath.cx>
8111
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.
8127
81282015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8129
8130 PR compile/18484
8131 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
8132
81332015-07-08 Robert O'Callahan <robert@ocallahan.org>
8134
8135 PR exp/18617
8136 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
8137
81382015-07-08 Markus Metzger <markus.t.metzger@intel.com>
8139
8140 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
8141
81422015-07-08 Markus Metzger <markus.t.metzger@intel.com>
8143
8144 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
8145 Use safe_strerror() instead of strerror().
8146
81472015-07-07 Yao Qi <yao.qi@linaro.org>
8148
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.
8161
81622015-07-07 Yao Qi <yao.qi@linaro.org>
8163
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.
8183
81842015-07-07 Yao Qi <yao.qi@linaro.org>
8185
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.
8198
81992015-07-07 Yao Qi <yao.qi@linaro.org>
8200
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.
8209
82102015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8211
8212 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
8213 and focus commands.
8214
82152015-07-06 Joel Brobecker <brobecker@adacore.com>
8216
8217 * NEWS: Create a new section for the next release branch.
8218 Rename the section of the current branch, now that it has
8219 been cut.
8220
82212015-07-06 Joel Brobecker <brobecker@adacore.com>
8222
8223 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
8224 * version.in: Bump version to 7.10.50.DATE-cvs.
8225
82262015-07-06 Luis Machado <lgustavo@codesourcery.com>
8227
8228 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
8229 breakpoints in a special way.
8230 (remove_breakpoint): Likewise.
8231 (mark_breakpoints_out): Likewise.
8232
82332015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8234
8235 * doc/gdb.texinfo (TUI): Add comma after @xref.
8236
82372015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8238
8239 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
8240 instead of casting the structure type.
8241
82422015-07-06 Simon Marchi <simon.marchi@ericsson.com>
8243
8244 * valops.c (search_struct_field): Remove OFFSET parameter.
8245 (value_cast_structs): Adjust calls to search_struct_field.
8246 (value_struct_elt): Same.
8247 (find_overload_match): Same.
8248
82492015-07-06 Simon Marchi <simon.marchi@ericsson.com>
8250
8251 * value.c (value_fetch_lazy): Update comment, change return
8252 value to void.
8253 * value.h (value_fetch_lazy): Change return value to void.
8254
82552015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8256
8257 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
8258 (tui_win_name): Make parameter and result const.
8259 * tui/tui-data.h (tui_win_name): Make parameter and result const.
8260
82612015-07-06 Patrick Palka <patrick@parcs.ath.cx>
8262
8263 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
8264 use printf_unfiltered.
8265 (set_mpx_cmd): Add missing trailing space to command string
8266 literal.
8267 (_initialize_i386_tdep): Give the "mpx" prefix command its
8268 correct name.
8269
82702015-07-02 Kevin Buettner <kevinb@redhat.com>
8271
8272 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
8273 (enum rx_frame_type): New.
8274 (struct rx_prologue): Add new field `frame_type'.
8275 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
8276 parameter in the prologue struct. Add code for recording
8277 locations of PC and PSW for fast interrupt and exception frames.
8278 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
8279 (rx_analyze_frame_prologue): Add `frame_type' parameter.
8280 (rx_frame_type): New function.
8281 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
8282 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
8283 `this_cache'.
8284 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
8285 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
8286 RX_FRAME_TYPE_FAST_INTERRUPT.
8287 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
8288 (rx_frame_sniffer, rx_exception_sniffer): New functions.
8289 (rx_frame_unwind): Use rx_frame_sniffer instead of
8290 default_frame_sniffer.
8291 (rx_frame_unwind): New unwinder.
8292 (rx_gdbarch_init): Register new unwinder.
8293
82942015-07-02 Kevin Buettner <kevinb@redhat.com>
8295
8296 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
8297 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
8298 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
8299 and RX_FPSW_REGNUM.
8300 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
8301
83022015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8303
8304 Fix GCC false warning.
8305 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
8306
83072015-07-02 Yao Qi <yao.qi@linaro.org>
8308
8309 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
8310 typo in the debugging message.
8311
83122015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8313
8314 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
8315 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
8316 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
8317 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
8318 (btrace_maint_clear): New.
8319 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
8320 (pt_print_packet, btrace_maint_decode_pt)
8321 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
8322 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
8323 (maint_btrace_packet_history_cmd)
8324 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
8325 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
8326 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
8327 (maint_info_btrace_cmd, _initialize_btrace): New.
8328 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
8329 (btrace_maint_packet_history, btrace_maint_info): New.
8330 (btrace_thread_info) <maint>: New.
8331 * NEWS: Announce it.
8332
83332015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8334
8335 * btrace.c (btrace_fetch): Append the new trace data.
8336 (btrace_clear): Clear the stored trace data.
8337 * btrace.h (btrace_thread_info) <data>: New.
8338 * common/btrace-common.h (btrace_data_clear)
8339 (btrace_data_append): New.
8340 * common/btrace-common.c (btrace_data_clear)
8341 (btrace_data_append): New.
8342
83432015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8344
8345 * nat/linux-btrace.c (linux_enable_bts): Check for
8346 PERF_ATTR_SIZE_VER5.
8347 Check for data_offset and data_size fields. Use them.
8348
83492015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8350
8351 * NEWS: Announce new commands "record btrace pt" and "record pt".
8352 Announce new options "set|show record btrace pt buffer-size".
8353 * btrace.c: Include "rsp-low.h".
8354 Include "inttypes.h".
8355 (btrace_add_pc): Add forward declaration.
8356 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
8357 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
8358 (btrace_compute_ftrace_pt): New.
8359 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
8360 (check_xml_btrace_version): Update version check.
8361 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
8362 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
8363 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
8364 (btrace_pt_children): New.
8365 (btrace_children): Add support for "pt".
8366 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
8367 (btrace_conf_children): Add support for "pt".
8368 * btrace.h: Include "intel-pt.h".
8369 (btrace_pt_error): New.
8370 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
8371 (btrace_data_empty): Support BTRACE_FORMAT_PT.
8372 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
8373 (struct btrace_config_pt): New.
8374 (struct btrace_config)<pt>: New.
8375 (struct btrace_data_pt_config, struct btrace_data_pt): New.
8376 (struct btrace_data)<pt>: New.
8377 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
8378 (pt): New.
8379 * features/btrace.dtd (btrace)<pt>: New.
8380 (pt, pt-config, cpu): New.
8381 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
8382 (perf_event_pt_event_type, kernel_supports_pt)
8383 (linux_supports_pt): New.
8384 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
8385 (linux_enable_bts): Free tinfo on error.
8386 (linux_enable_pt): New.
8387 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
8388 (linux_disable_pt): New.
8389 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
8390 (linux_fill_btrace_pt_config, linux_read_pt): New.
8391 (linux_read_btrace): Support BTRACE_FORMAT_PT.
8392 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
8393 (struct btrace_target_info)<pt>: New.
8394 * record-btrace.c (set_record_btrace_pt_cmdlist)
8395 (show_record_btrace_pt_cmdlist): New.
8396 (record_btrace_print_pt_conf): New.
8397 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
8398 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
8399 (cmd_record_btrace_pt_start): New.
8400 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
8401 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
8402 (_initialize_record_btrace): Add new commands.
8403 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
8404 (remote_protocol_features): Add "Qbtrace:pt".
8405 Add "Qbtrace-conf:pt:size".
8406 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
8407 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
8408 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
8409 (_initialize_remote): Add new commands.
8410
84112015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8412
8413 * configure.ac: check for libipt
8414 * configure: Regenerate.
8415 * config.in: Regenerate.
8416 * Makefile.in (LIBIPT): New.
8417 (CLIBS): Add $LIBIPT.
8418 * NEWS: document new configure options
8419
84202015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8421
8422 * compile/compile-object-load.c (compile_object_load): Replace debug
8423 message "lookup undefined ELF symbol" by 3 more specific messages.
8424
84252015-07-01 Kevin Buettner <kevinb@redhat.com>
8426
8427 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
8428 (rl78_register_type): Add case for RL78_PSW_REGNUM.
8429 (rl78_gdbarch_init): Initialize rl78_psw_type.
8430
84312015-07-01 Patrick Palka <patrick@parcs.ath.cx>
8432
8433 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
8434 Update commentary. Always refresh the registers when frame
8435 information has changed.
8436 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
8437 Change return type to int. Return 1 if frame information has
8438 changed, 0 otherwise.
8439 (tui_before_prompt): Update commentary.
8440 * tui/tui-stack.h (tui_show_frame_info): Change return type to
8441 int.
8442
84432015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8444
8445 PR tui/13378
8446 * frame.c (select_frame): Remove reference to
8447 deprecated_selected_frame_level_changed_hook.
8448 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
8449 declaration.
8450 * stack.c (deprecated_selected_frame_level_changed_hook):
8451 Likewise.
8452 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
8453 Rename to ...
8454 (tui_refresh_frame_and_register_information): ... this. Bail
8455 out if there is no stack. Don't update register information
8456 unless registers_too_p is true.
8457 (tui_print_frame_info_listing_hook): Rename to ...
8458 (tui_dummy_print_frame_info_listing_hook): ... this.
8459 (tui_before_prompt): New function.
8460 (tui_normal_stop): New function.
8461 (tui_before_prompt_observer): New observer.
8462 (tui_normal_stop_observer): New observer.
8463 (tui_install_hooks): Set
8464 deprecated_print_frame_info_listing_hook to
8465 tui_dummy_print_frame_info_listing_hook. Register
8466 tui_before_prompt_observer to call tui_before_prompt and
8467 tui_normal_stop_observer to call tui_normal_stop. Remove
8468 reference to deprecated_selected_frame_level_changed_hook.
8469 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
8470 and tui_normal_stop_observer. Remove reference to
8471 deprecated_selected_frame_level_changed_hook.
8472
84732015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8474
8475 PR tui/13378
8476 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
8477 return an int instead of void. Return whether the locator
8478 window has changed.
8479 (tui_show_frame_info): If the locator info has not changed, then
8480 bail out early to avoid refreshing the windows.
8481
84822015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8483
8484 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
8485 LOCATOR_WIN to tui_alloc_content.
8486
84872015-06-30 Yao Qi <yao.qi@linaro.org>
8488
8489 PR tdep/18605
8490 * arm-tdep.c (arm_get_next_pc_raw): Break for media
8491 instructions.
8492
84932015-06-29 Kevin Buettner <kevinb@redhat.com>
8494
8495 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
8496 (rx_dwarf_reg_to_regnum): New function.
8497 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
8498 unwinding.
8499
85002015-06-29 Pedro Alves <palves@redhat.com>
8501
8502 PR threads/18127
8503 * infcall.c (run_inferior_call): On infcall success, if the thread
8504 was marked stopped before, reset it back to stopped.
8505 * infrun.c (resume): Don't suppress the set_running calls when
8506 doing an infcall.
8507 (normal_stop): Only discard the finish_thread_state cleanup if the
8508 infcall succeeded.
8509
85102015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8511
8512 * MAINTAINERS (Write After Approval): Update my email address.
8513
85142015-06-26 Keith Seitz <keiths@redhat.com>
8515 Doug Evans <dje@google.com>
8516
8517 PR 16253
8518 * block.c (block_lookup_symbol): For non-function blocks,
8519 continue to search for a symbol with an exact domain match
8520 Otherwise, return any previously found "best domain" symbol.
8521 (block_lookup_symbol_primary): Likewise.
8522
85232015-06-26 Patrick Palka <patrick@parcs.ath.cx>
8524
8525 * NEWS: Mention the new option "history remove-duplicates".
8526 * top.c (history_remove_duplicates): New static variable.
8527 (show_history_remove_duplicates): New static function.
8528 (gdb_add_history): Conditionally remove duplicate history
8529 entries.
8530 (init_main): Add "history remove-duplicates" option.
8531
85322015-06-26 Patrick Palka <patrick@parcs.ath.cx>
8533
8534 * tui/tui-win.c (focus_completer): New static function.
8535 (_initialize_tui_win): Set the completion function of the
8536 "focus" command to focus_completer.
8537
85382015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8539
8540 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
8541 and language_asm..
8542 * symtab.c (find_function_start_sal): Likewise.
8543
85442015-06-25 Gary Benson <gbenson@redhat.com>
8545
8546 * solib.c (solib_find_1): Set local variable sysroot to NULL if
8547 it is the empty string after trailing slashes have been stripped.
8548
85492015-06-25 Gary Benson <gbenson@redhat.com>
8550
8551 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
8552 * infrun.c (follow_exec): Likewise.
8553 * remote.c (remote_filesystem_is_local): Likewise.
8554 * solib.c (solib_find_1): Likewise.
8555
85562015-06-24 Keith Seitz <keiths@redhat.com>
8557
8558 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
8559 return value from lrealpath.
8560
85612015-06-24 Mike Frysinger <vapier@gentoo.org>
8562
8563 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
8564
85652015-06-24 Mike Frysinger <vapier@gentoo.org>
8566
8567 * remote-sim.c: Include gdb_bfd.h.
8568 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
8569 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
8570
85712015-06-24 Yao Qi <yao.qi@linaro.org>
8572
8573 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
8574 set_gdbarch_get_siginfo_type.
8575 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8576 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8577 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8578 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
8579 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
8580 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8581 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
8582 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
8583 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
8584 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
8585
85862015-06-24 Gary Benson <gbenson@redhat.com>
8587
8588 * common/buffer.c (stdint.h): Do not include.
8589 * common/print-utils.c (stdint.h): Likewise.
8590 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
8591 * compile/compile-c-types.c (gdb_assert.h): Likewise.
8592 * ft32-tdep.c (gdb_assert.h): Likewise.
8593 * guile/scm-utils.c (stdint.h): Likewise.
8594 * i386-linux-tdep.c (stdint.h): Likewise.
8595 * i386-tdep.c (stdint.h): Likewise.
8596 * nat/linux-btrace.c (stdint.h): Likewise.
8597 * nat/linux-btrace.h (stdint.h): Likewise.
8598 * nat/linux-ptrace.c (stdint.h): Likewise.
8599 * nat/mips-linux-watch.h (stdint.h): Likewise.
8600 * ppc-linux-nat.c (stdint.h): Likewise.
8601 * python/python-internal.h (stdint.h): Likewise.
8602 * stub-termcap.c (stdlib.h): Likewise.
8603 * target/target.h (stdint.h): Likewise.
8604 * xtensa-linux-nat.c (stdint.h): Likewise.
8605
86062015-06-23 Patrick Palka <patrick@parcs.ath.cx>
8607
8608 * top.c (init_history): Look at errno after calling strtol to
8609 properly map large GDBHISTSIZE values to infinity.
8610
86112015-06-23 Doug Evans <dje@google.com>
8612
8613 * inferior.h (struct inferior_suspend_state): Delete, unused.
8614 All references deleted.
8615
86162015-06-23 Mike Frysinger <vapier@gentoo.org>
8617
8618 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
8619 (microblaze_push_dummy_call): Likewise.
8620 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
8621 and set_gdbarch_push_dummy_call.
8622
86232015-06-23 Yao Qi <yao.qi@linaro.org>
8624
8625 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
8626 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
8627 (amd64_linux_store_inferior_registers): Likewise.
8628 * arm-linux-nat.c (fetch_fpregister): Likewise.
8629 (fetch_fpregs, store_fpregister): Likewise.
8630 (store_fpregister, store_fpregs): Likewise.
8631 (fetch_register, fetch_regs): Likewise.
8632 (store_register, store_regs): Likewise.
8633 (fetch_vfp_regs, store_vfp_regs): Likewise.
8634 (arm_linux_read_description): Check have_ptrace_getregset is
8635 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
8636 or TRIBOOL_FALSE.
8637 * i386-linux-nat.c (fetch_xstateregs): Check
8638 have_ptrace_getregset is not TRIBOOL_TRUE.
8639 (store_xstateregs): Likewise.
8640 * linux-nat.c (have_ptrace_getregset): Change its type to
8641 enum tribool.
8642 * linux-nat.h (tribool): New enum.
8643 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
8644 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
8645
86462015-06-19 Doug Evans <dje@google.com>
8647
8648 * NEWS: Mention Sun's version of stabs is no longer supported.
8649 * elfread.c (free_elfinfo): Delete. All uses updated.
8650 (elfstab_offset_sections): Delete. All uses updated.
8651 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
8652 * psympriv.h (partial_symtab) <section_offsets>: Delete.
8653 All uses updated.
8654 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
8655 All callers updated.
8656
86572015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8658
8659 * common/rsp-low.c (needs_escaping): New.
8660 (remote_escape_output): Add unit_size parameter. Refactor to
8661 support multi-byte addressable units. Rename parameters.
8662 * common/rsp-low.h (remote_escape_output): Add unit_size
8663 parameter and rename others. Update doc.
8664 * remote.c (align_for_efficient_write): New.
8665 (remote_write_bytes_aux): Add unit_size parameter and use it.
8666 Rename some variables. Update doc.
8667 (remote_xfer_partial): Get unit size and use it.
8668 (remote_read_bytes_1): Add unit_size parameter and use it.
8669 Rename some variables. Update doc.
8670 (remote_write_bytes): Same.
8671 (remote_xfer_live_readonly_partial): Same.
8672 (remote_read_bytes): Same.
8673 (remote_flash_write): Update call to remote_write_bytes_aux.
8674 (remote_write_qxfer): Update call to remote_escape_output.
8675 (remote_search_memory): Same.
8676 (remote_hostio_pwrite): Same.
8677
86782015-06-17 Luis Machado <lgustavo@codesourcery.com>
8679
8680 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
8681 locations as inserted.
8682 Update and expand comment about permanent locations.
8683 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
8684 Move comment to add_location_to_breakpoint.
8685 (update_global_location_list): Don't error out if a permanent
8686 breakpoint is not marked inserted.
8687 Don't error out if a non-permanent breakpoint location is inserted on
8688 top of a permanent breakpoint.
8689
86902015-06-17 Luis Machado <lgustavo@codesourcery.com>
8691
8692 * breakpoint.c (make_breakpoint_permanent): Remove unused
8693 function.
8694 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
8695
86962015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8697
8698 PR gdb/16999
8699 * NEWS: Mention new GDBHISTSIZE behavior.
8700 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
8701 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
8702
87032015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8704
8705 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
8706 * top.c (init_history): Read from GDBHISTSIZE instead of
8707 HISTSIZE.
8708 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
8709
87102015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8711
8712 * top.c (gdb_safe_append_history): Do not call
8713 history_truncate_file if the history is not stifled.
8714
87152015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8716
8717 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
8718 * syscalls/s390x-linux.xml: Likewise.
8719
87202015-06-16 Michael Eager <eager@eagercon.com>
8721
8722 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
8723
87242015-06-16 Patrick Palka <patrick@parcs.ath.cx>
8725
8726 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
8727 target_terminal_ours_for_output() before calling
8728 tui_show_frame_info(), and restore the original terminal
8729 settings afterwards.
8730
87312015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
8732
8733 * arm-linux-nat.c: Include nat/linux-ptrace.h.
8734
87352015-06-15 Simon Marchi <simon.marchi@ericsson.com>
8736
8737 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
8738 memory unit size.
8739 (mi_cmd_data_write_memory_bytes): Same.
8740
87412015-06-15 Simon Marchi <simon.marchi@ericsson.com>
8742
8743 * corefile.c (write_memory): Update doc.
8744 * gdbcore.h (write_memory): Same.
8745
87462015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8747
8748 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
8749 (dump_mapping_p): Use it for parameter filterflags.
8750 (linux_find_memory_regions_full): Use it for variable filterflags.
8751
87522015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8753 Jan Kratochvil <jan.kratochvil@redhat.com>
8754
8755 Merge multiple hex conversions.
8756 * monitor.c: Include rsp-low.h.
8757 (fromhex): Remove definition.
8758
87592015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8760 Jan Kratochvil <jan.kratochvil@redhat.com>
8761
8762 Move utility functions to common/.
8763 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
8764 Move defs to common/common-utils.c.
8765 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
8766 (skip_to_space_const): Move decls to common/common-utils.h.
8767 * common/common-defs.h: Move include of common-types.h before
8768 common-utils.h.
8769 * common/common-utils.c: Include host-defs.h and ctype.h.
8770 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
8771 from utils.c.
8772 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
8773 cli/cli-utils.c.
8774 * common/common-utils.h (strtoulst): Move decl from utils.h.
8775 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
8776 Move from cli/cli-utils.h.
8777 * common/host-defs.h: Include limits.h.
8778 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
8779 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
8780 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
8781 common/common-utils.h.
8782 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
8783 (strtoulst): Move to common/common-utils.c.
8784 * utils.h (strtoulst): Moved decl to common/common-utils.h.
8785
87862015-06-15 Yao Qi <yao.qi@linaro.org>
8787
8788 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
8789
87902015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
8791
8792 * build-id.c: Don't include elf-bfd.h.
8793 (build_id_bfd_get): Use bfd_build_id.
8794 (build_id_verify): Ditto.
8795 * build-id.h: Ditto.
8796 (find_separate_debug_file_by_buildid): Ditto.
8797 * python/py-objfile.c: Don't include elf-bfd.h.
8798 (objfpy_get_build_id) Use bfd_build_id.
8799 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
8800 * coffread.c: Include build-id.h.
8801 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
8802
88032015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8804
8805 * windows-nat.c (do_windows_fetch_inferior_registers)
8806 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
8807 conditional with __CYGWIN__.
8808
88092015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
8810
8811 * completer.c: Add arch-utils.h include.
8812 (enum reg_completer_targets): New enum.
8813 (reg_or_group_completer_1): New function containing old
8814 reg_or_group_completer, add and use new parameter to control what
8815 is completed on. Use get_current_arch rather than architecture of
8816 currently selected frame.
8817 (reg_or_group_completer): Call new reg_or_group_completer_1.
8818 (reggroup_completer): Call new reg_or_group_completer_1.
8819 * completer.h (reggroup_completer): Add declaration.
8820 * tui/tui-regs.c: Add 'completer.h' include.
8821 (tui_reg_next_command): Renamed to...
8822 (tui_reg_next): ...this. Adjust parameters and return rather than
8823 display new group.
8824 (tui_reg_prev_command): Renamed to...
8825 (tui_reg_prev): ...this. Adjust parameters and return rather than
8826 display new group.
8827 (tui_reg_float_command): Delete.
8828 (tui_reg_general_command): Delete.
8829 (tui_reg_system_command): Delete.
8830 (tui_reg_command): Rewrite to perform switching of register group.
8831 Add header comment.
8832 (tuireglist): Remove.
8833 (tui_reggroup_completer): New function.
8834 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
8835 creation of 'tui reg' command.
8836 * NEWS: Add comment about 'tui reg' changes.
8837
88382015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8839
8840 * target.c (target_read): Consider addressable unit size when
8841 reading from a memory object.
8842 (read_memory_robust): Same.
8843 (read_whatever_is_readable): Same.
8844 (target_write_with_progress): Consider addressable unit size
8845 when writing to a memory object.
8846 * target.h (target_read): Update documentation.
8847 (target_write): Add documentation.
8848
88492015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8850
8851 * arch-utils.h (default_addressable_memory_unit_size): New.
8852 * arch-utils.c (default_addressable_memory_unit_size): New.
8853 * gdbarch.sh (addressable_memory_unit_size): New.
8854 * gdbarch.h: Re-generate.
8855 * gdbarch.c: Re-generate.
8856
88572015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8858
8859 * target.c (target_read): Rename variables and use
8860 TARGET_XFER_E_IO.
8861 (target_read_with_progress): Same.
8862 (read_memory_robust): Constify parameters and rename
8863 variables.
8864 (read_whatever_is_readable): Constify parameters,
8865 rename variables, adjust formatting.
8866 * target.h (read_memory_robust): Constify parameters.
8867
88682015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
8869
8870 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
8871 synthetic (non-AltiVec) vector types.
8872 (ppc64_sysv_abi_return_value): Likewise.
8873
88742015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
8875
8876 PR breakpoints/16465
8877 * breakpoint.c (create_breakpoint): Save extra_string for
8878 pending breakpoints.
8879
88802015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8881
8882 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
8883 and bt_mask to CORE_ADDR.
8884
88852015-06-11 Gary Benson <gbenson@redhat.com>
8886
8887 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
8888 (mnsh_recv_message): Likewise.
8889
88902015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
8891
8892 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
8893 long long int and plongest instead of %ll.
8894
88952015-06-11 Gary Benson <gbenson@redhat.com>
8896
8897 * nat/linux-namespaces.c (gdb_wait.h): New include.
8898 (sys/wait.h): Do not include.
8899
89002015-06-10 Simon Marchi <simon.marchi@ericsson.com>
8901
8902 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
8903 end_sequence is true.
8904
89052015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8906
8907 Code cleanup.
8908 * solib-target.c (library_list_start_list): Use explicit NULL
8909 comparison.
8910
89112015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8912
8913 * solib-target.c (library_list_start_list): Do not dereference
8914 variable version in its initialization. Make the VERSION check handle
8915 NULL.
8916 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
8917
89182015-06-10 Gary Benson <gbenson@redhat.com>
8919
8920 * NEWS: Announce support for direct access of executable and
8921 shared library files when attaching to inferiors in containers
8922 on GNU/Linux systems.
8923
89242015-06-10 Gary Benson <gbenson@redhat.com>
8925
8926 * remote.c (struct remote_state) <fs_pid>: New field.
8927 (new_remote_state): Initialize the above.
8928 (PACKET_vFile_setfs): New enum value.
8929 (remote_hostio_set_filesystem): New function.
8930 (remote_hostio_open): Call the above.
8931 (remote_hostio_unlink): Likewise.
8932 (remote_hostio_readlink): Likewise.
8933 (_initialize_remote): Register new "set/show remote
8934 hostio-setfs-packet" command.
8935 * NEWS: Announce new vFile:setfs packet.
8936
89372015-06-10 Gary Benson <gbenson@redhat.com>
8938
8939 * linux-nat.c (nat/linux-namespaces.h): New include.
8940 (fileio.h): Likewise.
8941 (linux_nat_filesystem_is_local): New function.
8942 (linux_nat_fileio_pid_of): Likewise.
8943 (linux_nat_fileio_open): Likewise.
8944 (linux_nat_fileio_readlink): Likewise.
8945 (linux_nat_fileio_unlink): Likewise.
8946 (linux_nat_add_target): Initialize to_filesystem_is_local,
8947 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
8948 (_initialize_linux_nat): New "set/show debug linux-namespaces"
8949 commands.
8950 * NEWS: Mention new "set/show debug linux-namespaces" commands.
8951
89522015-06-10 Gary Benson <gbenson@redhat.com>
8953
8954 * target.h (struct inferior): New forward declaration.
8955 (struct target_ops) <to_filesystem_is_local>: Update comment.
8956 (struct target_ops) <to_fileio_open>: New argument inf.
8957 Update comment. All implementations updated.
8958 (struct target_ops) <to_fileio_unlink>: Likewise.
8959 (struct target_ops) <to_fileio_readlink>: Likewise.
8960 (target_filesystem_is_local): Update comment.
8961 (target_fileio_open): New argument inf. Update comment.
8962 (target_fileio_unlink): Likewise.
8963 (target_fileio_readlink): Likewise.
8964 (target_fileio_read_alloc): Likewise.
8965 (target_fileio_read_stralloc): Likewise.
8966 * target.c (target_fileio_open): New argument inf.
8967 Pass inf to implementation. Update debug printing.
8968 (target_fileio_unlink): Likewise.
8969 (target_fileio_readlink): Likewise.
8970 (target_fileio_read_alloc_1): New argument inf. Pass inf
8971 to target_fileio_open.
8972 (target_fileio_read_alloc): New argument inf. Pass inf to
8973 target_fileio_read_alloc_1.
8974 (target_fileio_read_stralloc): Likewise.
8975 * gdb_bfd.c (inferior.h): New include.
8976 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
8977 argument with new argument "inferior". Pass inferior to
8978 target_fileio_open.
8979 (gdb_bfd_open): Supply inferior argument to
8980 gdb_bfd_iovec_fileio_open.
8981 * linux-tdep.c (linux_info_proc): Supply inf argument to
8982 relevant target_fileio calls.
8983 (linux_find_memory_regions_full): Likewise.
8984 (linux_fill_prpsinfo): Likewise.
8985 * remote.c (remote_filesystem_is_local): Supply inf
8986 argument to remote_hostio_open.
8987 (remote_file_put): Likewise.
8988 (remote_file_get): Likewise.
8989 (remote_file_delete): Supply inf argument to
8990 remote_hostio_unlink.
8991
89922015-06-10 Gary Benson <gbenson@redhat.com>
8993
8994 * inf-child.c (inf_child_fileio_open): Replace comment.
8995 (inf_child_fileio_pwrite): Likewise.
8996 (inf_child_fileio_pread): Likewise.
8997 (inf_child_fileio_fstat): Insert blank line before comment.
8998 (inf_child_fileio_close): Replace comment.
8999 (inf_child_fileio_unlink): Likewise.
9000 (inf_child_fileio_readlink): Likewise.
9001 * remote.c (remote_hostio_open): Likewise.
9002 (remote_hostio_pread): Likewise.
9003 (remote_hostio_pwrite): Likewise.
9004 (remote_hostio_close): Likewise.
9005 (remote_hostio_unlink): Likewise.
9006 (remote_hostio_readlink): Likewise.
9007 (remote_hostio_fstat): Likewise.
9008 (remote_filesystem_is_local): Likewise.
9009 * target.c (target_fileio_open): Likewise.
9010 (target_fileio_pwrite): Likewise.
9011 (target_fileio_pread): Likewise.
9012 (target_fileio_fstat): Insert blank line before comment.
9013 (target_fileio_close): Replace comment.
9014 (target_fileio_unlink): Likewise.
9015 (target_fileio_readlink): Likewise.
9016 (target_fileio_read_alloc): Likewise.
9017 (target_fileio_read_stralloc): Likewise.
9018
90192015-06-10 Gary Benson <gbenson@redhat.com>
9020
9021 * linux-thread-db.c (nat/linux-namespaces.h): New include.
9022 (check_pid_namespace_match): Use linux_ns_same rather than
9023 linux_proc_pid_get_ns to spot PID namespace mismatches.
9024 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
9025 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
9026
90272015-06-10 Gary Benson <gbenson@redhat.com>
9028
9029 * configure.ac (AC_CHECK_FUNCS): Add setns.
9030 * config.in: Regenerate.
9031 * configure: Likewise.
9032 * nat/linux-namespaces.h: New file.
9033 * nat/linux-namespaces.c: Likewise.
9034 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
9035 (linux-namespaces.o): New rule.
9036 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
9037 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
9038 * config/arm/linux.mh (NATDEPFILES): Likewise.
9039 * config/i386/linux.mh (NATDEPFILES): Likewise.
9040 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9041 * config/ia64/linux.mh (NATDEPFILES): Likewise.
9042 * config/m32r/linux.mh (NATDEPFILES): Likewise.
9043 * config/m68k/linux.mh (NATDEPFILES): Likewise.
9044 * config/mips/linux.mh (NATDEPFILES): Likewise.
9045 * config/pa/linux.mh (NATDEPFILES): Likewise.
9046 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
9047 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
9048 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
9049 * config/s390/linux.mh (NATDEPFILES): Likewise.
9050 * config/sparc/linux.mh (NATDEPFILES): Likewise.
9051 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
9052 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
9053 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
9054
90552015-06-10 Gary Benson <gbenson@redhat.com>
9056
9057 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
9058 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
9059 (make_cleanup_close): Likewise.
9060 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
9061 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
9062 (make_cleanup_close): Likewise.
9063
90642015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
9065
9066 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
9067 from SuspendThread().
9068
90692015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
9070
9071 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
9072 from OutputDebugString.
9073
90742015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
9075 Mircea Gherzan <mircea.gherzan@intel.com>
9076
9077 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
9078 MPX_BT_MASK_32): New macros.
9079 (i386_mpx_set_bounds): New function that implements
9080 the command "set-mpx-bound".
9081 (i386_mpx_enabled): Helper function to test MPX availability.
9082 (i386_mpx_bd_base): Helper function to calculate the base directory
9083 address.
9084 (i386_mpx_get_bt_entry): Helper function to access a bound
9085 table entry.
9086 (i386_mpx_print_bounds): Effectively display bound information.
9087 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
9088 "show mpx".
9089 (_initialize_i386_tdep):
9090 Add "bound" to the commands "show mpx" and "set mpx" commands.
9091 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
9092 and "show mpx" commands.
9093 * NEWS: List new commands for MPX support.
9094
90952015-06-09 Gary Benson <gbenson@redhat.com>
9096
9097 * common/fileio.h (fileio_to_host_mode): New declaration.
9098 * common/fileio.c (fileio_to_host_mode): New Function.
9099 * inf-child.c (inf_child_fileio_open): Process mode argument
9100 with fileio_to_host_mode.
9101
91022015-06-09 Gary Benson <gbenson@redhat.com>
9103
9104 * common/fileio.c (fileio_mode_pack): Fix preprocessor
9105 conditional.
9106
91072015-06-05 Gary Benson <gbenson@redhat.com>
9108
9109 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
9110 * remote.c (remote_filesystem_is_local): ...here.
9111
91122015-06-04 Yao Qi <yao.qi@linaro.org>
9113
9114 * gdbarch.c: Regenerate it.
9115
91162015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9117
9118 * arch-utils.c (default_infcall_munmap): New.
9119 * arch-utils.h (default_infcall_munmap): New declaration.
9120 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
9121 (munmap_list_free, munmap_listp_free_cleanup): New.
9122 (struct setup_sections_data): Add field munmap_list_headp.
9123 (setup_sections): Call munmap_list_add.
9124 (compile_object_load): New variable munmap_list_head, initialize
9125 setup_sections_data.munmap_list_headp, return munmap_list_head.
9126 * compile/compile-object-load.h (struct munmap_list): New declaration.
9127 (struct compile_module): Add field munmap_list_head.
9128 (munmap_list_free): New declaration.
9129 * compile/compile-object-run.c (struct do_module_cleanup): Add field
9130 munmap_list_head.
9131 (do_module_cleanup): Call munmap_list_free.
9132 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
9133 * gdbarch.c: Regenerate.
9134 * gdbarch.h: Regenerate.
9135 * gdbarch.sh (infcall_munmap): New.
9136 * linux-tdep.c (linux_infcall_munmap): New.
9137 (linux_init_abi): Install it.
9138
91392015-06-02 Simon Marchi <simon.marchi@ericsson.com>
9140
9141 PR gdb/15564
9142 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
9143
91442015-06-02 Yao Qi <yao.qi@linaro.org>
9145
9146 * i386-linux-nat.c: Include linux-nat.h.
9147
91482015-06-01 Andreas Schwab <schwab@linux-m68k.org>
9149 Jan Kratochvil <jan.kratochvil@redhat.com>
9150
9151 PR symtab/18392
9152 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
9153 assertion.
9154 * dwarf2loc.c (chain_candidate): Likewise.
9155
91562015-06-01 Yao Qi <yao.qi@linaro.org>
9157
9158 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
9159 (store_vfp_regs): Use PTRACE_SETREGSET.
9160
91612015-06-01 Yao Qi <yao.qi@linaro.org>
9162
9163 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
9164 (fetch_fpregs): Likewise.
9165 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
9166 (store_fpregs): Likewise.
9167
91682015-06-01 Yao Qi <yao.qi@linaro.org>
9169
9170 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
9171 (fetch_regs): Likewise.
9172 (store_regs): Use PTRACE_SETREGSET.
9173 (store_register): Likewise.
9174
91752015-06-01 Yao Qi <yao.qi@linaro.org>
9176
9177 * arm-linux-nat.c (arm_linux_read_description): Check whether
9178 kernel supports PTRACE_GETREGSET.
9179
91802015-06-01 Yao Qi <yao.qi@linaro.org>
9181
9182 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
9183 * linux-nat.c: ... here.
9184 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
9185 to ...
9186 * linux-nat.h: ... here.
9187
91882015-06-01 Yao Qi <yao.qi@linaro.org>
9189
9190 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
9191 * i386-linux-nat.c: Likewise.
9192 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
9193 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
9194 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9195 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
9196 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9197
91982015-05-30 Eli Zaretskii <eliz@gnu.org>
9199
9200 * go32-nat.c (go32_xfer_memory): Fix the return value to be
9201 compatible to what read_child and write_child return. This
9202 unbreaks that DJGPP build of GDB which was broken since v7.7.
9203
92042015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
9205
9206 * MAINTAINERS (Write After Approval): Add Martin Galvan.
9207
92082015-05-29 Roland McGrath <mcgrathr@google.com>
9209
9210 PR gdb/18464
9211 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
9212 rather than internal_error for an unrecognized value.
9213
92142015-05-29 Max Filippov <jcmvbkbc@gmail.com>
9215
9216 * xtensa-tdep.c (xtensa_pseudo_register_read)
9217 (xtensa_pseudo_register_write): Don't alias last pseudo register
9218 to a1.
9219
92202015-05-28 Don Breazeal <donb@codesourcery.com>
9221
9222 * infrun.c (follow_fork_inferior): Ensure the use of
9223 process-style ptids (pid,0,0) in verbose/debug "Detaching"
9224 messages.
9225
92262015-05-28 Doug Evans <dje@google.com>
9227
9228 * dwarf2read.c (record_line_ftype): Remove, duplicate.
9229
92302015-05-28 Yao Qi <yao.qi@linaro.org>
9231
9232 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
9233 (arm_linux_fetch_inferior_registers): Use
9234 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
9235 (arm_linux_store_inferior_registers): Likewise.
9236 (arm_linux_read_description): Don't set
9237 arm_linux_has_wmmx_registers.
9238 * arm-tdep.c (arm_gdbarch_init): Set
9239 tdep->have_wmmx_registers according target descriptions.
9240 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
9241 field.
9242
92432015-05-28 Yao Qi <yao.qi@linaro.org>
9244
9245 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
9246 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
9247 instead of arm_linux_vfp_register_count.
9248 (store_vfp_regs): Likewise.
9249 (arm_linux_fetch_inferior_registers): Likewise.
9250 (arm_linux_store_inferior_registers): Likewise.
9251 (arm_linux_read_description): Don't set
9252 arm_linux_vfp_register_count.
9253 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
9254 Adjust.
9255 * arm-tdep.c (arm_gdbarch_init): Add assert on
9256 vfp_register_count.
9257 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
9258 field to vfp_register_count. All users updated.
9259
92602015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
9261
9262 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
9263 ELFOSABI_GNU binaries.
9264
92652015-05-27 Doug Evans <dje@google.com>
9266
9267 * dwarf2read.c (lnp_state_machine): New typedef.
9268 (lnp_reader_state): New typedef.
9269 (dwarf_record_line_1): Renamed from dwarf_record_line.
9270 All callers updated.
9271 (dwarf_record_line): New function.
9272 (init_lnp_state_machine): New function.
9273 (check_line_address): Replace p_record_line parameter with state.
9274 All callers updated.
9275 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
9276 Update to record state in lnp_state_machine.
9277
92782015-05-27 Doug Evans <dje@google.com>
9279
9280 * dwarf2read.c (record_line_ftype): New typedef.
9281 (check_line_address): New function.
9282 (dwarf_decode_lines_1): Call it.
9283
92842015-05-27 Doug Evans <dje@google.com>
9285
9286 * NEWS: Mention "set debug dwarf-line".
9287 * dwarf2read.c (dwarf_line_debug): New static global.
9288 (add_include_dir): Add debug dwarf-line support.
9289 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
9290 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
9291
92922015-05-27 Doug Evans <dje@google.com>
9293
9294 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
9295 All callers updated.
9296 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
9297 * cp-support.h (cp_lookup_nested_symbol): Update.
9298
92992015-05-27 Doug Evans <dje@google.com>
9300
9301 PR symtab/18258
9302 * block.c (block_find_symbol): New function.
9303 (block_find_non_opaque_type): Ditto.
9304 (block_find_non_opaque_type_preferred): Ditto.
9305 * block.h (block_symbol_matcher_ftype): New typedef.
9306 (block_find_symbol): Declare.
9307 (block_find_non_opaque_type): Ditto.
9308 (block_find_non_opaque_type_preferred): Ditto.
9309 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
9310 * psymtab.c (psym_lookup_symbol): Ditto.
9311 * symtab.c (basic_lookup_transparent_type_1): New function.
9312 (basic_lookup_transparent_type): Call it.
9313
93142015-05-27 Yao Qi <yao.qi@linaro.org>
9315
9316 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
9317 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
9318
93192015-05-27 Yao Qi <yao.qi@linaro.org>
9320
9321 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
9322 before operator &&.
9323 (aarch64_record_load_store): Likewise.
9324
93252015-05-26 Doug Evans <dje@google.com>
9326
9327 PR c++/18141, c++/18417.
9328 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
9329 a typedef.
9330
93312015-05-26 Doug Evans <dje@google.com>
9332
9333 * NEWS: Add entries for command renamings.
9334 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
9335 All uses updated.
9336 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
9337 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
9338 All uses updated.
9339 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
9340 All callers updated. Fix spelling of DWARF in help text.
9341 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
9342 All uses updated.
9343 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
9344 All uses updated.
9345 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
9346 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
9347 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
9348 All uses updated.
9349 (show_dwarf_always_disassemble): Renamed from
9350 show_dwarf2_always_disassemble. All callers updated.
9351 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
9352 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
9353 "set/show dwarf max-cache-age". Rename
9354 "set/show dwarf2 always-disassemble" to
9355 "set/show dwarf always-disassemble". Rename
9356 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
9357 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
9358
93592015-05-26 Doug Evans <dje@google.com>
9360
9361 PR python/18438
9362 * python/py-lazy-string.c (stpy_convert_to_value): Use
9363 gdbpy_gdb_memory_error not PyExc_MemoryError.
9364 (gdbpy_create_lazy_string_object): Ditto.
9365
93662015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
9367
9368 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
9369
93702015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
9371
9372 * tui/tui-regs.c (tui_reg_prev_command): New function.
9373 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
9374 * reggroups.c (reggroup_prev): New function.
9375 * reggroups.h (reggroup_prev): Add declaration. Update comment.
9376
93772015-05-26 Omair Javaid <omair.javaid@linaro.org>
9378 Yao Qi <yao.qi@linaro.org>
9379
9380 * aarch64-linux-tdep.c: Include linux-record.h and
9381 record-full.h.
9382 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
9383 (aarch64_syscall): New enum.
9384 (aarch64_canonicalize_syscall): New function.
9385 (aarch64_all_but_pc_registers_record): New function.
9386 (aarch64_linux_syscall_record): New function.
9387 (aarch64_linux_init_abi): Install AArch64 process record
9388 handler. Update to handle syscall recording.
9389 * aarch64-tdep.c: Include record.h and record-full.h.
9390 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
9391 (struct aarch64_mem_r): Define.
9392 (aarch64_record_result): New enum.
9393 (struct insn_decode_record): Define.
9394 (insn_decode_record): New typedef.
9395 (aarch64_record_data_proc_reg): New function.
9396 (aarch64_record_data_proc_imm): New function.
9397 (aarch64_record_branch_except_sys): New function.
9398 (aarch64_record_load_store): New function.
9399 (aarch64_record_data_proc_simd_fp): New function.
9400 (aarch64_record_asimd_load_store): New function.
9401 (aarch64_record_decode_insn_handler): New function.
9402 (deallocate_reg_mem): New function.
9403 (aarch64_process_record): New function.
9404 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
9405 New field.
9406 (aarch64_process_record): New extern declaration.
9407 * configure.tgt: Add linux-record.o to gdb_target_obs.
9408 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
9409
94102015-05-26 Omair Javaid <omair.javaid@linaro.org>
9411
9412 * NEWS: Add a note on process record-replay support on aarch64*-linux*
9413 targets.
9414
94152015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
9416
9417 * amd64-tdep.c: Replace in_function_epilogue_p with
9418 stack_frame_destroyed_p throughout.
9419 * arch-utils.c: Ditto.
9420 * arch-utils.h: Ditto.
9421 * arm-tdep.c: Ditto.
9422 * breakpoint.c: Ditto.
9423 * gdbarch.sh: Ditto.
9424 * hppa-tdep.c: Ditto.
9425 * i386-tdep.c: Ditto.
9426 * mips-tdep.c: Ditto.
9427 * nios2-tdep.c: Ditto.
9428 * rs6000-tdep.c: Ditto.
9429 * s390-linux-tdep.c: Ditto.
9430 * score-tdep.c: Ditto.
9431 * sh-tdep.c: Ditto.
9432 * sparc-tdep.c: Ditto.
9433 * sparc-tdep.h: Ditto.
9434 * sparc64-tdep.c: Ditto.
9435 * spu-tdep.c: Ditto.
9436 * tic6x-tdep.c: Ditto.
9437 * tilegx-tdep.c: Ditto.
9438 * xstormy16-tdep.c: Ditto.
9439 * gdbarch.c, gdbarch.h: Re-generated.
9440
94412015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9442
9443 * NEWS: Mention 'tui enable' and 'tui disable'.
9444 * tui/tui.c (tui_enable_command): New function.
9445 (tui_disable_command): New function.
9446 (_initialize_tui): New function.
9447
94482015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9449
9450 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
9451
94522015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9453
9454 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
9455 buf_ptr is freed.
9456
94572015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9458
9459 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
9460 into ...
9461 (tui_set_layout_for_display_command): ...here, before calling
9462 tui_set_layout. Only set the layout if gdb has not already
9463 entered the TUI_FAILURE state.
9464
94652015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9466
9467 * tui/tui-layout.c (layout_completer): New function.
9468 (_initialize_tui_layout): Set completer on layout command.
9469
94702015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9471
9472 * tui/tui-layout.c (tui_set_layout): Remove
9473 tui_register_display_type parameter. Remove all checking of this
9474 parameter, and reindent function. Update header comment.
9475 (tui_set_layout_for_display_command): Rename to...
9476 (tui_set_layout_by_name): ...this, and don't check for different
9477 register class types, don't pass a tui_register_display_type to
9478 tui_set_layout. Update header comment.
9479 (layout_names): Remove register set specific names.
9480 * tui/tui-layout.h (tui_set_layout): Remove
9481 tui_register_display_type parameter.
9482 * tui/tui.c (tui_rl_change_windows): Don't pass a
9483 tui_register_display_type to tui_set_layout.
9484 (tui_rl_delete_other_windows): Likewise.
9485 (tui_enable): Likewise.
9486 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
9487 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
9488 (TUI_GENERAL_REGS_NAME): Remove.
9489 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
9490 (TUI_SPECIAL_REGS_NAME): Remove.
9491 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
9492 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
9493 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
9494 (enum tui_register_display_type): Remove.
9495 (struct tui_layout_def): Remove regs_display_type and
9496 float_regs_display_type fields.
9497 (struct tui_data_info): Remove regs_display_type field.
9498 (tui_layout_command): Use new name for
9499 tui_set_layout_for_display_command.
9500 * tui/tui-data.c (layout_def): Don't initialise removed fields.
9501 (tui_clear_win_detail): Don't initialise removed fields of
9502 win_info.
9503 * tui/tui-regs.c (tui_show_registers): Use new name for
9504 tui_set_layout_for_display_command.
9505 * tui/tui.h (tui_set_layout_for_display_command): Rename
9506 declaration to...
9507 (tui_set_layout_by_name): ...this.
9508 * printcmd.c (display_command): Remove tui related layout call,
9509 and reindent.
9510
95112015-05-20 Joel Brobecker <brobecker@adacore.com>
9512
9513 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
9514 (handle_inferior_event): New function.
9515
95162015-05-20 Joel Brobecker <brobecker@adacore.com>
9517
9518 * ada-lang.c (to_fixed_array_type): Rename local variable
9519 typename into type_name.
9520
95212015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9522
9523 Fix ASAN crash for gdb.compile/compile.exp.
9524 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
9525
95262015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9527
9528 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
9529 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
9530 * compile/compile-object-load.c (setup_sections, compile_object_load):
9531 Likewise.
9532 * compile/compile.c (compile_to_object): Likewise.
9533
95342015-05-16 Doug Evans <xdje42@gmail.com>
9535
9536 * NEWS: Mention support for unbuffered Guile memory ports.
9537 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
9538 (ioscm_lseek_address): Improve overflow calculation.
9539 (gdbscm_memory_port_fill_input): Add assert.
9540 (gdbscm_memory_port_write): Handle unbuffered ports.
9541 Handle large writes identical to Guile's fport_write.
9542 (gdbscm_memory_port_seek): Fix seeking past end check.
9543 (gdbscm_memory_port_close): Handle closing unbuffered port.
9544 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
9545 (ioscm_init_memory_port): Handle unbuffered ports.
9546 (ioscm_reinit_memory_port): Ditto.
9547 (ioscm_init_memory_port): Update size calculation.
9548 (gdbscm_open_memory): Support zero sized ports.
9549
95502015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9551
9552 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
9553 variable compiler warnings.
9554
95552015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9556
9557 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
9558
95592015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9560 Phil Muldoon <pmuldoon@redhat.com>
9561
9562 * NEWS (Changes since GDB 7.9): Add compile print.
9563 * compile/compile-c-support.c (add_code_header, add_code_footer)
9564 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
9565 COMPILE_I_PRINT_VALUE_SCOPE.
9566 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
9567 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
9568 New.
9569 * compile/compile-object-load.c: Include block.h.
9570 (get_out_value_type): New function.
9571 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9572 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
9573 OUT_VALUE_TYPE.
9574 * compile/compile-object-load.h (struct compile_module): Add fields
9575 out_value_addr and out_value_type.
9576 * compile/compile-object-run.c: Include valprint.h and compile.h.
9577 (struct do_module_cleanup): Add fields out_value_addr and
9578 out_value_type.
9579 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9580 COMPILE_I_PRINT_VALUE_SCOPE.
9581 (compile_object_run): Propagate out_value_addr and out_value_type.
9582 Pass OUT_VALUE_ADDR.
9583 * compile/compile.c: Include valprint.h.
9584 (compile_print_value, compile_print_command): New functions.
9585 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
9586 (_initialize_compile): Update compile code help text. Install
9587 compile_print_command.
9588 * compile/compile.h (compile_print_value): New prototype.
9589 * defs.h (enum compile_i_scope_types): Add
9590 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
9591
95922015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9593
9594 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
9595 Rely on its parameter count.
9596 (compile_object_load): Replace lookup_minimal_symbol_text by
9597 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
9598 return value.
9599 * compile/compile-object-load.h (struct compile_module): Replace
9600 func_addr by func_sym.
9601 * compile/compile-object-run.c: Include block.h.
9602 (compile_object_run): Reset module variable after it is freed. Use
9603 FUNC_SYM instead of FUNC_ADDR. Rely on it.
9604
96052015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9606
9607 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
9608 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
9609 (c_compute_program): Call generate_register_struct after typedefs.
9610 * compile/compile-loc2c.c (push, pushf_register_address)
9611 (pushf_register): Cast to GCC_UINTPTR.
9612 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
9613 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
9614 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
9615 * compile/compile.c (_initialize_compile): Enable warnings for
9616 COMPILE_ARGS.
9617
96182015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9619
9620 * cli/cli-script.c (execute_control_command): Update
9621 eval_compile_command caller.
9622 * compile/compile-object-load.c (compile_object_load): Add parameters
9623 scope and scope_data. Set them.
9624 * compile/compile-object-load.h (struct compile_module): Add fields
9625 scope and scope_data.
9626 (compile_object_load): Add parameters scope and scope_data.
9627 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
9628 scope and scope_data.
9629 (compile_object_run): Propagate the fields scope and scope_data.
9630 * compile/compile.c (compile_file_command, compile_code_command):
9631 Update eval_compile_command callers.
9632 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
9633 * compile/compile.h (eval_compile_command): Add parameter scope_data.
9634 * defs.h (struct command_line): Add field scope_data.
9635
96362015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9637
9638 * printcmd.c (struct format_data): Move it to valprint.h.
9639 (print_command_parse_format, print_value): New functions from ...
9640 (print_command_1): ... here. Call them.
9641 * valprint.h (struct format_data): Move it here from printcmd.c.
9642 (print_command_parse_format, print_value): New declarations.
9643
96442015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9645
9646 * compile/compile-object-load.c (compile_object_load): Add
9647 COMPILE_DEBUG message.
9648
96492015-05-15 Jerome Guitton <guitton@adacore.com>
9650
9651 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
9652 index to get element instead of enum value.
9653 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
9654 of index to compute length, but enum values to compute bounds.
9655 (ada_array_length): Use enum position of index instead of enum value.
9656 (pos_atr): Move position computation to...
9657 (ada_evaluate_subexp): Use enum values to compute bounds.
9658 * gdbtypes.c (discrete_position): ...this new function.
9659 * gdbtypes.h (discrete_position): New function declaration.
9660 * valprint.c (val_print_array_elements): Call discrete_position
9661 to handle array indexed by non-contiguous enumeration types.
9662
96632015-05-15 Jerome Guitton <guitton@adacore.com>
9664
9665 * ada-lang.c (find_parallel_type_by_descriptive_type):
9666 Go through typedefs during lookup.
9667 (to_fixed_array_type): Add support for non-bit packed arrays
9668 as variable-length fields.
9669
96702015-05-15 Pedro Alves <palves@redhat.com>
9671 Simon Marchi <simon.marchi@ericsson.com>
9672
9673 * event-loop.c (gdb_notifier) <next_file_handler,
9674 next_poll_fds_index>: New fields.
9675 (get_next_file_handler_to_handle_and_advance): New function.
9676 (delete_file_handler): If deleting the next file handler to
9677 handle, advance to the next file handler.
9678 (gdb_wait_for_event): Bail early if no event fired. Poll file
9679 handlers in round-robin fashion.
9680
96812015-05-15 Pedro Alves <palves@redhat.com>
9682
9683 * linux-tdep.c (linux_find_memory_regions_full): Rename local
9684 'private' to 'priv'.
9685
96862015-05-15 Pedro Alves <palves@redhat.com>
9687
9688 * nat/linux-nat.h: Include "target/waitstatus.h".
9689
96902015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
9691
9692 * python/py-unwind.c (struct reg_info): Move out of ...
9693 (struct cached_frame_info): ... this scope.
9694 (pending_frame_object_type, unwind_info_object_type): Make extern.
9695
96962015-05-15 Joel Brobecker <brobecker@adacore.com>
9697
9698 * ada-lang.c (ada_value_primitive_packed_val): Make sure
9699 accumSize is never negative.
9700
97012015-05-14 Patrick Palka <patrick@parcs.ath.cx>
9702
9703 * tui/tui-command.c: Remove include of <ctype.h>.
9704 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
9705
97062015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
9707
9708 * dwarf2read.c (die_needs_namespace): Return 1 for
9709 DW_TAG_inlined_subroutine.
9710
97112015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9712
9713 * regcache.c (regcache_cpy_no_passthrough): New declaration.
9714 (regcache_cpy_no_passthrough): Make it static, add function comment.
9715 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
9716 (regcache_cpy_no_passthrough): Remove declaration.
9717
97182015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9719
9720 * gdbthread.h (struct thread_control_state): Update comment for
9721 proceed_to_finish.
9722 * infcall.c (run_inferior_call): Update comment about
9723 proceed_to_finish.
9724 * infcmd.c (get_return_value): Update comment about stop_registers.
9725 (finish_forward): Update comment about proceed_to_finish.
9726 * infrun.c (stop_registers): Remove.
9727 (clear_proceed_status, normal_stop): Remove stop_registers handling.
9728 * infrun.h (stop_registers): Remove.
9729
97302015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9731
9732 * infcall.c (struct dummy_frame_context_saver)
9733 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
9734 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9735 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9736 New.
9737 (call_function_by_hand_dummy): Move discard_cleanups of
9738 inf_status_cleanup before dummy_frame_push. Call
9739 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
9740 Use dummy_frame_context_saver_get_regs instead of stop_registers.
9741 * infcall.h (struct dummy_frame_context_saver)
9742 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9743 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9744 New declarations.
9745 * infcmd.c: Include infcall.h.
9746 (get_return_value): Add parameter ctx_saver, use it instead of
9747 stop_registers.
9748 (print_return_value): Add parameter ctx_saver, pass it.
9749 (struct finish_command_continuation_args): Add field ctx_saver.
9750 (finish_command_continuation): Update print_return_value caller.
9751 (finish_command_continuation_free_arg): Free also ctx_saver.
9752 (finish_forward): Call dummy_frame_context_saver_setup.
9753 * inferior.h (struct dummy_frame_context_saver): New declaration.
9754 (get_return_value): Add parameter ctx_saver.
9755 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
9756 get_return_value caller.
9757
97582015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9759
9760 * dummy-frame.c (struct dummy_frame_dtor_list): New.
9761 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
9762 (remove_dummy_frame): Process dtor_list.
9763 (pop_dummy_frame): Process dtor_list.
9764 (register_dummy_frame_dtor): Maintain dtor_list.
9765 (find_dummy_frame_dtor): Handle dtor_list.
9766 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
9767 Update comments.
9768
97692015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9770
9771 * compile/compile-object-run.c (do_module_cleanup): Add parameter
9772 registers_valid.
9773 (compile_object_run): Update do_module_cleanup caller.
9774 * dummy-frame.c: Include infcall.h.
9775 (struct dummy_frame): Update dtor comment.
9776 (remove_dummy_frame): Call dtor.
9777 (pop_dummy_frame): Update dtor caller.
9778 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
9779 registers_valid.
9780
97812015-05-13 Joel Brobecker <brobecker@adacore.com>
9782
9783 GDB 7.9.1 released.
9784
97852015-05-13 Joel Brobecker <brobecker@adacore.com>
9786
9787 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
9788 Xmethods now being able to specify a result type to that new
9789 sectioin.
9790
97912015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9792
9793 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
9794 first before resizing the window.
9795 * tui/tui.c (tui_enable): Likewise.
9796
97972015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9798
9799 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
9800 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
9801 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
9802 dummy_dtor parameter.
9803 * infcall.h: Include dummy-frame.h.
9804 (call_function_by_hand_dummy_dtor_ftype): Remove.
9805 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
9806 parameter.
9807
98082015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9809
9810 PR gdb/17820
9811 * top.c (history_size_setshow_var): Change type to signed.
9812 Initialize to -2. Update documentation.
9813 (set_readline_history_size): Define.
9814 (set_history_size_command): Use it. Remove logic for handling
9815 out-of-range sizes.
9816 (init_history): Use set_readline_history_size(). Test for a
9817 value of -2 instead of 0 when determining whether to set a
9818 default history size.
9819 (init_main): Decode the argument of the "size" command as a
9820 zuinteger_unlimited.
9821
98222015-05-12 Doug Evans <dje@google.com>
9823
9824 * dwarf2read.c (struct file_entry): Tweak comments.
9825 (get_debug_line_section): Tweak comments.
9826
98272015-05-12 Don Breazeal <donb@codesourcery.com>
9828
9829 * NEWS: Announce fork support in the RSP and support
9830 for fork debugging in extended mode.
9831
98322015-05-12 Don Breazeal <donb@codesourcery.com>
9833
9834 * remote.c (remote_insert_fork_catchpoint): New function.
9835 (remote_remove_fork_catchpoint): New function.
9836 (remote_insert_vfork_catchpoint): New function.
9837 (remote_remove_vfork_catchpoint): New function.
9838 (pending_fork_parent_callback): New function.
9839 (remove_new_fork_child): New function.
9840 (remote_update_thread_list): Call remote_notif_get_pending_events
9841 and remove_new_fork_child.
9842 (extended_remote_kill): Kill fork child when killing the
9843 parent before follow_fork completes.
9844 (init_extended_remote_ops): Initialize target vector with
9845 new fork catchpoint functions.
9846
98472015-05-12 Don Breazeal <donb@codesourcery.com>
9848
9849 * remote.c (remove_vfork_event_p): New function.
9850 (remote_follow_fork): Add vfork event type to event checking.
9851 (remote_parse_stop_reply): New stop reasons "vfork" and
9852 "vforkdone" for RSP 'T' Stop Reply Packet.
9853
98542015-05-12 Don Breazeal <donb@codesourcery.com>
9855
9856 * linux-nat.c (linux_nat_ptrace_options): New function.
9857 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
9858 Call linux_nat_ptrace_options and use different argument to
9859 linux_enable_event_reporting.
9860 (_initialize_linux_nat): Delete call to
9861 linux_ptrace_set_additional_flags.
9862 * nat/linux-ptrace.c (current_ptrace_options): Rename to
9863 supported_ptrace_options.
9864 (additional_flags): Delete variable.
9865 (linux_check_ptrace_features): Use supported_ptrace_options.
9866 (linux_test_for_tracesysgood, linux_test_for_tracefork):
9867 Likewise, and remove additional_flags check.
9868 (linux_enable_event_reporting): Change 'attached' argument to
9869 'options'. Use supported_ptrace_options.
9870 (ptrace_supports_feature): Change comment. Use
9871 supported_ptrace_options.
9872 (linux_ptrace_set_additional_flags): Delete function.
9873 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
9874 Delete function prototype.
9875 * remote.c (remote_fork_event_p): New function.
9876 (remote_detach_pid): New function.
9877 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
9878 if doing detach-on-fork.
9879 (remote_follow_fork): New function.
9880 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
9881 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
9882 (init_extended_remote_ops): Initialize to_follow_fork.
9883
98842015-05-12 Don Breazeal <donb@codesourcery.com>
9885
9886 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
9887 from static to extern.
9888 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
9889 * remote.c (anonymous enum): <PACKET_fork_event_feature,
9890 * PACKET_vfork_event_feature>: New enumeration constants.
9891 (remote_protocol_features): Add table entries for new packets.
9892 (remote_query_supported): Add new feature queries to qSupported
9893 packet.
9894
98952015-05-12 Gary Benson <gbenson@redhat.com>
9896
9897 * remote.c (remote_add_inferior): Call exec_file_locate_attach
9898 for fake PIDs as well as real ones.
9899 (remote_pid_to_exec_file): Send empty annex if PID is fake.
9900
99012015-05-09 Siva Chandra Reddy <sivachandra@google.com>
9902
9903 * NEWS (Python Scripting): Mention the new gdb.Value methods.
9904 * python/py-value.c (valpy_reference_value): New function.
9905 (valpy_const_value): Likewise.
9906 (value_object_methods): Add new methods.
9907 * value.c (make_cv_value): New function.
9908 * value.h (make_cv_value): Declare.
9909
99102015-05-08 Yao Qi <yao@codesourcery.com>
9911 Sandra Loosemore <sandra@codesourcery.com>
9912
9913 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
9914 to 'lh->include_dirs' before accessing to it.
9915 (psymtab_include_file_name): Likewise.
9916 (dwarf_decode_lines_1): Likewise.
9917 (dwarf_decode_lines): Likewise.
9918 (file_file_name): Likewise.
9919
99202015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9921
9922 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
9923 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
9924 (nios2_linux_rt_sigreturn_init): Adjust base address of
9925 register save area.
9926
99272015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9928
9929 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
9930 "trap 31" as the breakpoint instruction on all targets.
9931
99322015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9933
9934 * infcmd.c (print_return_value): Remove unused declaration.
9935
99362015-05-08 Joel Brobecker <brobecker@adacore.com>
9937
9938 * dwarf2read.c (attr_to_dynamic_prop)
9939 <DW_AT_data_member_location>: Use read_type_die isntead of
9940 get_die_type.
9941
99422015-05-08 Joel Brobecker <brobecker@adacore.com>
9943
9944 * ada-lang.c (ada_convert_actual): Add handling of formals
9945 passed inside an aligner type.
9946
99472015-05-08 Joel Brobecker <brobecker@adacore.com>
9948
9949 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
9950
99512015-05-08 Siva Chandra Reddy <sivachandra@google.com>
9952
9953 PR python/18291
9954 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
9955 Print xmethod matcher status.
9956
99572015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
9958
9959 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
9960 register in the regcache when treating the PSWM register, and vice
9961 versa.
9962
99632015-05-07 Gary Benson <gbenson@redhat.com>
9964
9965 * linux-thread-db.c (struct thread_db_info)
9966 <td_ta_map_id2thr_p>: Remove field.
9967 (try_thread_db_load_1): Remove initialization for the above.
9968
99692015-05-07 Gary Benson <gbenson@redhat.com>
9970
9971 * linux-thread-db.c (struct thread_db_info)
9972 <td_thr_validate_p>: Remove field.
9973 (try_thread_db_load_1): Remove initialization for the above.
9974
99752015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9976
9977 * compile/compile-object-load.c (compile_object_load): Support
9978 mst_text_gnu_ifunc.
9979
99802015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9981
9982 * compile/compile.c (compile_to_object): Make the cmd_string parameter
9983 const. Use new variables for the const compatibility.
9984 (eval_compile_command): Make the cmd_string parameter const.
9985 * compile/compile.h (eval_compile_command): Make the cmd_string
9986 parameter const.
9987
99882015-05-06 Joel Brobecker <brobecker@adacore.com>
9989
9990 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
9991 comment.
9992 * top.c (deprecated_init_ui_hook): Delete.
9993 (gdb_init): Remove handling of deprecated_init_ui_hook.
9994 * interps.c (clear_interpreter_hooks): Remove handling of
9995 deprecated_init_ui_hook.
9996 * main.c (captured_main): Update comment.
9997
99982015-05-06 Joel Brobecker <brobecker@adacore.com>
9999
10000 * solib.c (_initialize_solib): Add "info dll" alias creation.
10001 * windows-nat.c (set_windows_aliases): Delete.
10002 (_initialize_windows_nat): Remove deprecated_init_ui_hook
10003 assignment.
10004 * NEWS: Add news entry about "info dll" now being available
10005 on all platforms.
10006
100072015-05-05 Joel Brobecker <brobecker@adacore.com>
10008
10009 * ada-lang.c (value_assign_to_component): Reformat and improve
10010 documentation. Remove all trailing spaces.
10011
100122015-05-05 Joel Brobecker <brobecker@adacore.com>
10013
10014 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
10015 Stop counting inlined frames as soon as an out-of-line function
10016 is found.
10017
100182014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
10019
10020 * dwarf2read.c (inherit_abstract_dies): Skip
10021 DW_TAG_GNU_call_site dies while inheriting children of an
10022 abstract DIE into a scope.
10023 (read_lexical_block_scope): Inherit abstract DIE's for
10024 lexical scopes.
10025
100262015-05-05 Joel Brobecker <brobecker@adacore.com>
10027
10028 * ada-valprint.c (val_print_packed_array_elements): Delete
10029 variable "len". Add a type-length check when comparing two
10030 consecutive elements of the array. Use the element's actual
10031 length in call to value_contents_eq.
10032 * ada-lang.c (ada_value_primitive_packed_val): Always return
10033 a value whose type has been resolved.
10034
100352015-05-05 Joel Brobecker <brobecker@adacore.com>
10036
10037 * ada-lang.c (ada_value_primitive_packed_val): Recompute
10038 BIT_SIZE and LEN if the size of the resolved type is smaller
10039 than BIT_SIZE * HOST_CHAR_BIT.
10040
100412015-05-05 Joel Brobecker <brobecker@adacore.com>
10042
10043 * ada-lang.c (ada_value_primitive_packed_val): Use a more
10044 correct address in call to value_at. Adjust call to
10045 value_address accordingly.
10046
100472015-05-05 Joel Brobecker <brobecker@adacore.com>
10048
10049 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
10050 to print it.
10051
100522015-05-05 Joel Brobecker <brobecker@adacore.com>
10053
10054 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
10055 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
10056 pinfo->valaddr.
10057 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
10058 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
10059 (resolve_dynamic_type_internal): Set pinfo.valaddr.
10060 Add handling of addr_stack->valaddr.
10061 (resolve_dynamic_type): Add "valaddr" parameter.
10062 Set pinfo.valaddr field.
10063 * ada-lang.c (ada_discrete_type_high_bound): Update call to
10064 resolve_dynamic_type.
10065 (ada_discrete_type_low_bound): Likewise.
10066 * findvar.c (default_read_var_value): Likewise.
10067 * value.c (value_from_contents_and_address): Likewise.
10068
100692015-05-05 Joel Brobecker <brobecker@adacore.com>
10070
10071 * gdbtypes.c (resolve_dynamic_array): Use
10072 create_array_type_with_stride instead of create_array_type.
10073
100742015-04-30 DJ Delorie <dj@redhat.com>
10075
10076 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
10077 rl78_decode_opcode
10078
100792015-04-29 Doug Evans <dje@google.com>
10080
10081 PR python/18285
10082 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
10083 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
10084 EVAL_AVOID_SIDE_EFFECTS for xmethods.
10085 * extension-priv.h (struct extension_language_ops)
10086 <get_xmethod_result_type>: New member.
10087 * extension.c (get_xmethod_result_type): New function.
10088 * extension.h (get_xmethod_result_type): Declare.
10089 * python/py-xmethods.c (get_result_type_method_name): New static
10090 global.
10091 (py_get_result_type_method_name): Ditto.
10092 (gdbpy_get_xmethod_result_type): New function.
10093 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
10094 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
10095 * python/python.c (python_extension_ops): Add
10096 gdbpy_get_xmethod_result_type.
10097 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
10098 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
10099 xmethods.
10100 (value_x_unop): Ditto.
10101 * value.c (result_type_of_xmethod): New function.
10102 * value.h (result_type_of_xmethod): Declare.
10103
101042015-04-29 Gary Benson <gbenson@redhat.com>
10105
10106 * solib.c (solib_find_1): Allow fd argument to be NULL.
10107 (exec_file_find): Update comment.
10108 (solib_find): Likewise.
10109 * exec.c (exec_file_locate_attach): Use NULL as fd
10110 argument to exec_file_find to avoid having to close
10111 the opened file.
10112 * infrun.c (follow_exec): Likewise.
10113
101142015-04-28 Doug Evans <dje@google.com>
10115
10116 PR python/18299
10117 * python/lib/gdb/printing.py (register_pretty_printer): Handle
10118 name or __name__ attributes. Handle gdb module as first argument.
10119
101202015-04-28 Doug Evans <dje@google.com>
10121
10122 PR python/18089
10123 * python/py-prettyprint.c (print_children): Verify result of children
10124 iterator. Provide better error message.
10125 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
10126 * python/python.c (gdbpy_print_python_errors_p): New function.
10127
101282015-04-28 Doug Evans <dje@google.com>
10129
10130 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
10131
101322015-04-28 Sasha Smundak <asmundak@google.com>
10133
10134 * NEWS: Mention gdb.Type.optimized_out method.
10135 * python/py-type.c (typy_optimized_out): New function.
10136
101372015-04-28 John Baldwin <jhb@FreeBSD.org>
10138
10139 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10140
101412015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10142
10143 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
10144 (initialize_utils): Move call of init_page_info() to ...
10145 * top.c (gdb_init): ... here.
10146
101472015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10148
10149 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
10150 (tui_sigwinch_handler): Still update our idea of
10151 the terminal's width and height even when TUI is not active.
10152
101532015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10154
10155 * utils.h (set_screen_width_and_height): Declare.
10156 * utils.c (set_screen_width_and_height): Define.
10157 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
10158
101592015-04-28 Gary Benson <gbenson@redhat.com>
10160
10161 * infrun.c (solist.h): New include.
10162 (follow_exec): Use exec_file_find to prefix execd_pathname
10163 with gdb_sysroot.
10164
101652015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10166
10167 * tui/tui-source.c (tui_set_source_content): Avoid calling
10168 strcpy() when offset is 0.
10169
101702015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10171
10172 PR gdb/18155
10173 * tui/tui-data.c (tui_free_window): Don't free the locator
10174 window when passed an SRC_WIN or a DISASSEM_WIN.
10175
101762015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10177
10178 * tui/tui-data.h (struct tui_win_element): Forward-declare.
10179 (tui_win_content): Move declaration.
10180 (struct tui_gen_win_info): Give 'content' field the
10181 type tui_win_content.
10182 * tui/tui-data.c (init_content_element): Remove redundant and
10183 erroneous casts.
10184 (tui_add_content_elements): Remove erroneous cast.
10185 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
10186 casts.
10187 (tui_get_begin_asm_address): Likewise.
10188 * tui/tui-regs.c (tui_show_registers): Likewise.
10189 (tui_show_register_group): Likewise.
10190 (tui_display_registers_from): Likewise.
10191 (tui_check_register_values): Likewise.
10192 * tui/tui-source.c (tui_set_source_content): Likewise.
10193 (tui_set_source_content_nil): Likewise.
10194 (tui_source_is_displayed): Likewise.
10195 * tui/tui-stack.c (tui_show_locator_content): Likewise.
10196 (tui_set_locator_fullname): Likewise.
10197 (tui_set_locator_info): Likewise.
10198 (tui_show_frame_info): Likewise.
10199 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
10200 (tui_show_source_line): Likewise.
10201 (tui_horizontal_source_scroll): Likewise.
10202 (tui_update_breakpoint_info): Likewise.
10203 (tui_set_exec_info_content): Likewise.
10204 (tui_show_exec_info_content): Likewise.
10205 (tui_alloc_source_buffer): Likewise.
10206 (tui_line_is_displayed): Likewise.
10207 (tui_addr_is_displayed): Likewise.
10208
102092015-04-27 John Baldwin <jhb@FreeBSD.org>
10210
10211 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
10212 event if PL_FLAG_EXEC is set.
10213 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
10214 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
10215 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
10216 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
10217 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
10218
102192015-04-27 John Baldwin <jhb@FreeBSD.org>
10220
10221 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
10222 [TDP_RFPPWAIT] New variable fbsd_pending_children.
10223 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
10224 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
10225 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
10226 [PT_LWPINFO] (fbsd_wait): New function.
10227 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
10228 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
10229 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
10230 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
10231 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
10232 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
10233 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
10234 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
10235 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
10236 "fbsd_wait".
10237 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
10238 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
10239 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
10240 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
10241 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
10242 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
10243 Set "to_post_attach" to "fbsd_post_attach".
10244
102452015-04-27 John Baldwin <jhb@FreeBSD.org>
10246
10247 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
10248 (fbsd_find_memory_regions): Mark static.
10249 (fbsd_nat_add_target): New function.
10250 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
10251 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
10252 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
10253 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
10254 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
10255 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
10256
102572015-04-27 Gary Benson <gbenson@redhat.com>
10258
10259 * objfiles.c (allocate_objfile): Do not attempt to expand name
10260 if name is a "target:" filename.
10261 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
10262 to load auto-load scripts for objfiles with "target:" filenames.
10263
102642015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10265
10266 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
10267 (enum s390_vector_abi_kind): New enum.
10268 (struct gdbarch_tdep)<vector_abi>: New field.
10269 (s390_effective_inner_type): Add parameter min_size. Stop
10270 unwrapping if the inner type is smaller than min_size.
10271 (s390_function_arg_float): Adjust call to
10272 s390_effective_inner_type.
10273 (s390_function_arg_vector): New function.
10274 (s390_function_arg_integer): Adjust comment.
10275 (struct s390_arg_state)<vr>: New field.
10276 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
10277 arguments according to vector ABI when appropriate.
10278 (s390_push_dummy_call): Initialize the argument state's field
10279 'vr'. Adjust calls to s390_handle_arg.
10280 (s390_register_return_value): Handle vector return values.
10281 (s390_return_value): Apply the "register" return value convention
10282 to a vector when appropriate.
10283 (s390_gdbarch_init): Initialize tdep->vector_abi.
10284 * NEWS: Announce S390 vector ABI support.
10285
102862015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10287
10288 * s390-linux-tdep.c (s390_return_value_convention): Remove
10289 function. Inline its logic...
10290 (s390_return_value): ...here. Instead, move the handling of the
10291 "register" return value convention...
10292 (s390_register_return_value): ...here. New function.
10293
102942015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10295
10296 * s390-linux-tdep.c
10297 (is_float_singleton): Remove function. Move the "singleton" part
10298 of the logic...
10299 (s390_effective_inner_type): ...here. New function.
10300 (is_float_like): Remove function. Inline its logic...
10301 (s390_function_arg_float): ...here.
10302 (is_pointer_like, is_integer_like, is_struct_like): Remove
10303 functions. Inline their logic...
10304 (s390_function_arg_integer): ...here.
10305 (s390_function_arg_pass_by_reference): Remove function.
10306 (extend_simple_arg): Remove function.
10307 (alignment_of): Remove function.
10308 (struct s390_arg_state): New structure.
10309 (s390_handle_arg): New function.
10310 (s390_push_dummy_call): Move parameter placement logic to the new
10311 function s390_handle_arg. Call it for calculating the stack area
10312 sizes first, and again for actually writing the parameters.
10313
103142015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10315
10316 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
10317 false if the argument is zero.
10318
103192015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
10320
10321 * ada-lang.c (template_to_static_fixed_type): Return input type
10322 when it is already fixed. Cache the input type itself when not
10323 creating a static fixed copy. Make it explicit that we never
10324 molestate the input type.
10325 * gdbtypes.c (resolve_dynamic_struct): Reset the
10326 TYPE_TARGET_TYPE field for resolved copies.
10327
103282015-04-27 Joel Brobecker <brobecker@adacore.com>
10329
10330 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
10331 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
10332 (template_to_static_fixed_type): Call ada_check_typedef only
10333 when necessary.
10334
103352015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
10336
10337 * cli/cli-dump.c (srec_dump_command): Add internationalization
10338 mark ups.
10339 (ihex_dump_command): Likewise.
10340 (tekhex_dump_command): Likewise.
10341 (binary_dump_command): Likewise.
10342 (binary_append_command): Likewise.
10343
103442015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
10345
10346 * cli/cli-dump.c (verilog_cmdlist): New variable.
10347 (dump_verilog_memory): New function.
10348 (dump_verilog_value): New function.
10349 (verilog_dump_command): New function.
10350 (_initialize_cli_dump): Add new commands to support verilog dump
10351 format.
10352 * NEWS: Add entry for "dump verilog".
10353
103542015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
10355
10356 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
10357 descriptive type when there is none.
10358
103592015-04-23 Patrick Palka <patrick@parcs.ath.cx>
10360
10361 * tui/tui-win.c (tui_async_resize_screen): Call
10362 rl_resize_terminal().
10363
103642015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
10365
10366 * windows-nat.c (handle_output_debug_string): Don't change
10367 current_event.dwThreadId.
10368 (get_windows_debug_event): Use thread_id, rather than relying on
10369 current_event.dwThreadId being changed.
10370
103712015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
10372
10373 * windows-nat.c (windows_continue): Report an error if
10374 ContinueDebugEvent() fails.
10375
103762015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10377
10378 * windows-nat.c (windows_resume): Fix misspelling in debug output.
10379
103802015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10381
10382 * windows-nat.c (get_windows_debug_event): Replace retval with
10383 thread_id throughout. Update stale comment.
10384
103852015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10386
10387 * windows-nat.c (get_windows_debug_event): Don't use ternary
10388 conditional operator.
10389
103902015-04-21 Pierre Muller <muller@sourceware.org>
10391
10392 PR pascal/17815
10393 p-exp.y (yylex): Reorganize code to return the matched pattern
10394 for a field of this.
10395
103962015-04-21 Gary Benson <gbenson@redhat.com>
10397
10398 * common/fileio.h (fileio_to_host_openflags): New declaration.
10399 * common/fileio.c (fcntl.h): New include.
10400 (fileio_to_host_openflags): New function, factored out from...
10401 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
10402 Single use updated.
10403
104042015-04-21 Kevin Buettner <kevinb@redhat.com>
10405
10406 * rl78-tdep.c (RL78_SP_ADDR): Define.
10407 (opc_reg_to_gdb_regnum): New static function.
10408 (rl78_analyze_prologue): Recognize instructions forming slightly
10409 more interesting prologues.
10410
104112015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
10412
10413 Revert:
10414 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10415 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10416 TYPE_CODE_REF types so that they are not considered as dynamic
10417 depending on the referenced type.
10418 (resolve_dynamic_type_internal): Likewise.
10419
104202015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
10421
10422 Revert:
10423 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10424 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10425 "top_level" parameter.
10426 (resolve_dynamic_type_internal): Remove the unused "top_level"
10427 parameter. Update call to is_dynamic_type_internal.
10428 (is_dynamic_type): Update call to is_dynamic_type_internal.
10429 (resolve_dynamic_range): Update call to
10430 resolve_dynamic_type_internal.
10431 (resolve_dynamic_union): Likewise.
10432 (resolve_dynamic_struct): Likewise.
10433 (resolve_dynamic_type): Likewise.
10434
104352015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
10436
10437 * breakpoint.c (update_dprintf_command_list): Remove duplicated
10438 xmalloc.
10439
104402015-04-20 Thomas Schwinge <thomas@codesourcery.com>
10441
10442 * reply_mig_hack.awk: Robustify parsing.
10443
10444 * reply_mig_hack.awk: Don't bother to declare an intermediate
10445 function pointer variable.
10446
104472015-04-17 Doug Evans <dje@google.com>
10448
10449 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
10450 to "exec_displacement" to avoid confusion with inner use of the name.
10451
104522015-04-17 Pedro Alves <palves@redhat.com>
10453
10454 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
10455 if HW point of TYPE isn't supported.
10456
104572015-04-17 Yao Qi <yao.qi@linaro.org>
10458 Pedro Alves <palves@redhat.com>
10459
10460 * target.h (target_can_use_hardware_watchpoint): Update comments.
10461 Remove trailing ";".
10462
104632015-04-17 Gary Benson <gbenson@redhat.com>
10464
10465 * remote.c (remote_add_inferior): New argument try_open_exec.
10466 If nonzero, attempt to open the inferior's executable file as
10467 the main executable if no main executable is open already.
10468 All callers updated.
10469 * NEWS: Mention that GDB now supports automatic location and
10470 retrieval of executable + files from remote targets.
10471
104722015-04-17 Gary Benson <gbenson@redhat.com>
10473
10474 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
10475 * remote.c (PACKET_qXfer_exec_file): Likewise.
10476 (remote_protocol_features): Register the
10477 "qXfer:exec-file:read" feature.
10478 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
10479 (remote_pid_to_exec_file): New function.
10480 (init_remote_ops): Initialize to_pid_to_exec_file.
10481 (_initialize_remote): Register new "set/show remote
10482 pid-to-exec-file-packet" command.
10483 * NEWS: Announce new qXfer:exec-file:read packet.
10484
104852015-04-17 Gary Benson <gbenson@redhat.com>
10486
10487 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
10488 New declaration.
10489 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
10490 New function, factored out from...
10491 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
10492
104932015-04-17 Gary Benson <gbenson@redhat.com>
10494
10495 * exec.c (solist.h): New include.
10496 (exec_file_locate_attach): Prefix absolute executable
10497 paths with gdb_sysroot if set.
10498 * NEWS: Mention that executable paths may be prepended
10499 with sysroot.
10500
105012015-04-17 Gary Benson <gbenson@redhat.com>
10502
10503 * solist.h (exec_file_find): New declaration.
10504 * solib.c (solib_find_1): New function, factored out from...
10505 (solib_find): ...here.
10506 (exec_file_find): New function.
10507
105082015-04-17 Gary Benson <gbenson@redhat.com>
10509
10510 * gdbcore.h (exec_file_locate_attach): New declaration.
10511 * exec.c (exec_file_locate_attach): New function, factored
10512 out from...
10513 * infcmd.c (attach_command_post_wait): ...here.
10514
105152015-04-17 Mike Frysinger <vapier@gentoo.org>
10516
10517 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
10518
105192015-04-16 Yao Qi <yao.qi@linaro.org>
10520
10521 * infrun.c (maybe_software_singlestep): Declare.
10522 (displaced_step_fixup): Call maybe_software_singlestep.
10523
105242015-04-15 Doug Evans <dje@google.com>
10525
10526 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
10527
105282015-04-15 Doug Evans <dje@google.com>
10529
10530 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
10531
105322015-04-15 Simon Marchi <simon.marchi@ericsson.com>
10533
10534 * python/lib/gdb/command/unwinders.py: Add parentheses.
10535
105362015-04-15 Yao Qi <yao.qi@linaro.org>
10537
10538 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
10539
105402015-04-15 Yao Qi <yao.qi@linaro.org>
10541
10542 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
10543
105442015-04-15 Yao Qi <yao.qi@linaro.org>
10545
10546 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
10547 dsc->insn_size instead of 4.
10548
105492015-04-14 Gary Benson <gbenson@redhat.com>
10550
10551 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
10552 * minidebug.c (lzma_stat): Likewise.
10553 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
10554 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
10555
105562015-04-13 Stan Shebs <stanshebs@google.com>
10557
10558 * MAINTAINERS: Update my email address.
10559
105602015-04-13 John Baldwin <jhb@FreeBSD.org>
10561
10562 * amd64-tdep.c (amd64_target_description): New function.
10563 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
10564 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
10565 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10566 x86 extended save area.
10567 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10568 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
10569 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
10570 (_initialize_amd64fbsd_nat): Set "to_read_description" to
10571 "amd64fbsd_read_description".
10572 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
10573 (amd64fbsd_supply_xstateregset): New function.
10574 (amd64fbsd_collect_xstateregset): New function.
10575 Add "amd64fbsd_xstateregset".
10576 (amd64fbsd_iterate_over_regset_sections): New function.
10577 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
10578 "I386_FBSD_XSAVE_XCR0_OFFSET".
10579 Add "iterate_over_regset_sections" gdbarch method.
10580 Add "core_read_description" gdbarch method.
10581 * i386-tdep.c (i386_target_description): New function.
10582 * i386-tdep.h: Export i386_target_description and tdesc_i386.
10583 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
10584 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10585 x86 extended save area.
10586 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10587 * i386bsd-nat.h: Export i386bsd_xsave_len.
10588 * i386fbsd-nat.c (i386fbsd_read_description): New function.
10589 (_initialize_i386fbsd_nat): Set "to_read_description" to
10590 "i386fbsd_read_description".
10591 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
10592 (i386fbsd_core_read_description): New function.
10593 (i386fbsd_supply_xstateregset): New function.
10594 (i386fbsd_collect_xstateregset): New function.
10595 Add "i386fbsd_xstateregset".
10596 (i386fbsd_iterate_over_regset_sections): New function.
10597 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
10598 "I386_FBSD_XSAVE_XCR0_OFFSET".
10599 Add "iterate_over_regset_sections" gdbarch method.
10600 Add "core_read_description" gdbarch method.
10601 * i386fbsd-tdep.h: New file.
10602
106032015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10604
10605 * NEWS (Changes since GDB 7.9): Add removed -xdb.
10606 * breakpoint.c (command_line_is_silent): Remove xdb_commands
10607 conditional.
10608 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
10609 and lb.
10610 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
10611 va.
10612 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
10613 conditional.
10614 * defs.h (xdb_commands): Remove declaration.
10615 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
10616 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
10617 * infcmd.c (run_no_args_command, go_command): Remove.
10618 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
10619 * infrun.c (xdb_handle_command): Remove.
10620 (_initialize_infrun): Remove xdb_commands for lz and z.
10621 * main.c (xdb_commands): Remove variable.
10622 (captured_main): Remove "xdb" from long_options.
10623 (print_gdb_help): Remove --xdb from help.
10624 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
10625 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
10626 * stack.c (backtrace_full_command, args_plus_locals_info)
10627 (current_frame_command): Remove.
10628 (_initialize_stack): Remove xdb_commands for t, T and l.
10629 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
10630 * thread.c (_initialize_thread): Remove xdb_commands condition.
10631 * tui/tui-layout.c (tui_toggle_layout_command)
10632 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
10633 (_initialize_tui_layout): Remove xdb_commands for td and ts.
10634 * tui/tui-regs.c (tui_scroll_regs_forward_command)
10635 (tui_scroll_regs_backward_command): Remove.
10636 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
10637 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
10638 (_initialize_tui_win): Remove xdb_commands for U and w.
10639 * utils.c (pagination_on_command, pagination_off_command): Remove.
10640 (initialize_utils): Remove xdb_commands for am and sm.
10641
106422015-04-10 Pedro Alves <palves@redhat.com>
10643
10644 * infrun.c (displaced_step_fixup): Switch to the event ptid
10645 earlier. If the thread stopped for a watchpoint and the
10646 target/arch has non-continuable watchpoints, cancel the displaced
10647 step.
10648 (resume): Don't start a displaced step if in-line step-over info
10649 is valid.
10650
106512015-04-10 Pedro Alves <palves@redhat.com>
10652
10653 * infrun.c (displaced_step_in_progress): New function.
10654 (do_target_resume): Advise target to report all signals if
10655 displaced stepping.
10656
106572015-04-10 Pedro Alves <palves@redhat.com>
10658
10659 PR gdb/18216
10660 * infrun.c (process_event_stop_test): Don't assume a step-resume
10661 is set if tp->stepped_breakpoint is true.
10662
106632015-04-10 Yao Qi <yao.qi@linaro.org>
10664
10665 * arm-tdep.c (install_alu_reg): Update comment.
10666 (thumb_copy_alu_reg): Remove local variable rn. Update
10667 debugging message. Use r2 instead of r1 in the modified
10668 instruction.
10669
106702015-04-10 Pedro Alves <palves@redhat.com>
10671
10672 PR gdb/13858
10673 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
10674 linux_displaced_step_location as gdbarch_displaced_step_location
10675 hook.
10676 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10677 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10678 * linux-tdep.c (linux_displaced_step_location): New function,
10679 based on ppc_linux_displaced_step_location.
10680 * linux-tdep.h (linux_displaced_step_location): New declaration.
10681 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
10682 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
10683 Delete.
10684 (ppc_linux_init_abi): Install linux_displaced_step_location as
10685 gdbarch_displaced_step_location hook, even without Cell/B.E..
10686 (_initialize_ppc_linux_tdep): Don't install
10687 ppc_linux_inferior_created as inferior_created observer.
10688 * s390-linux-tdep.c (s390_gdbarch_init): Install
10689 linux_displaced_step_location as gdbarch_displaced_step_location
10690 hook.
10691
106922015-04-09 Gary Benson <gbenson@redhat.com>
10693
10694 * common/common-remote-fileio.h: Rename to...
10695 * common/fileio.h: ...this. Update all references.
10696 (remote_fileio_to_fio_error): Rename to...
10697 (host_to_fileio_error): ...this.
10698 (remote_fileio_to_be): Rename to...
10699 (host_to_bigendian): ...this. Update all callers.
10700 (remote_fileio_to_fio_uint): Rename to...
10701 (host_to_fileio_uint): ...this. Update all callers.
10702 (remote_fileio_to_fio_time): Rename to...
10703 (host_to_fileio_time): ...this. Update all callers.
10704 (remote_fileio_to_fio_stat): Rename to...
10705 (host_to_fileio_stat): ...this.
10706 Update all references.
10707 * common/common-remote-fileio.c: Rename to...
10708 * common/fileio.c: ...this. Update all references.
10709 (remote_fileio_to_fio_error): Rename to...
10710 (host_to_fileio_error): ...this. Update all callers.
10711 (remote_fileio_mode_to_target): Rename to...
10712 (fileio_mode_pack): ...this. Update all callers.
10713 (remote_fileio_to_fio_mode): Rename to...
10714 (host_to_fileio_mode): ...this. Update all callers.
10715 (remote_fileio_to_fio_ulong): Rename to...
10716 (host_to_fileio_ulong): ...this. Update all callers.
10717 (remote_fileio_to_fio_stat): Rename to...
10718 (host_to_fileio_stat): ...this. Update all callers.
10719
107202015-04-09 Andy Wingo <wingo@igalia.com>
10721
10722 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
10723 (frame_functions): Bind gdbscm_frame_read_register to
10724 frame-read-register.
10725 * guile/lib/gdb.scm (frame-read-register): Export.
10726
107272015-04-09 Gary Benson <gbenson@redhat.com>
10728
10729 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
10730 New declaration.
10731 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
10732 New function, factored out the named functions below.
10733 * inf-child.c (gdb/fileio.h): Remove include.
10734 (common-remote-fileio.h): New include.
10735 (inf_child_errno_to_fileio_error): Remove function. Update
10736 all callers to use remote_fileio_to_fio_error.
10737 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
10738
107392015-04-09 Andy Wingo <wingo@igalia.com>
10740
10741 * MAINTAINERS (Write After Approval): Add Andy Wingo.
10742
107432015-04-09 H.J. Lu <hongjiu.lu@intel.com>
10744
10745 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
10746 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
10747 * configure: Regenerated.
10748
107492015-04-09 Pedro Alves <palves@redhat.com>
10750
10751 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
10752 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
10753 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
10754 * gnulib/import/Makefile.am: Update.
10755 * gnulib/import/Makefile.in: Update.
10756 * gnulib/import/m4/gnulib-cache.m4: Update.
10757 * gnulib/import/m4/gnulib-comp.m4: Update.
10758 * gnulib/import/m4/strtok_r.m4: New file.
10759 * gnulib/import/strtok_r.c: New file.
10760
107612015-04-09 Pedro Alves <palves@redhat.com>
10762
10763 * gnulib/update-gnulib.sh (aclocal version check): Filter out
10764 "called too early to check prototype".
10765
107662015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
10767
10768 PR python/16699
10769 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
10770 use a caching mechanism. Adjust comments and code to reflect
10771 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
10772 (cmdpy_completer_handle_brkchars): Adjust call to
10773 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
10774 (cmdpy_completer): Likewise.
10775
107762015-04-08 Yao Qi <yao.qi@linaro.org>
10777
10778 * spu-tdep.c (spu_gdbarch_init): Don't call
10779 set_gdbarch_cannot_step_breakpoint.
10780
107812015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
10782
10783 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
10784
107852015-04-07 Pedro Alves <palves@redhat.com>
10786
10787 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
10788 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
10789 (delete_exited_threads): New declaration.
10790 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
10791 * linux-nat.c (linux_nat_update_thread_list): New function.
10792 (linux_nat_add_target): Install it.
10793 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
10794 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
10795 (delete_exited_threads): New function.
10796
107972015-04-07 Pedro Alves <pedro@codesourcery.com>
10798
10799 * infrun.c (resume) <displaced stepping debug output>: Get the
10800 leader thread's regcache, not resume_ptid's.
10801
108022015-04-06 Doug Evans <xdje42@gmail.com>
10803
10804 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
10805 VAR_DOMAIN.
10806 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
10807 Include symbol domain in debugging output.
10808
108092015-04-06 Pedro Alves <palves@redhat.com>
10810 Bernd Edlinger <bernd.edlinger@hotmail.de>
10811
10812 * configure.ac: Remove the mingw32-specific stub-termcap.o
10813 fallback, and instead fallback to the stub termcap on all hosts.
10814 * configure: Regenerate.
10815 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
10816 symbols.
10817
108182015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10819
10820 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10821 "top_level" parameter.
10822 (resolve_dynamic_type_internal): Remove the unused "top_level"
10823 parameter. Update call to is_dynamic_type_internal.
10824 (is_dynamic_type): Update call to is_dynamic_type_internal.
10825 (resolve_dynamic_range): Update call to
10826 resolve_dynamic_type_internal.
10827 (resolve_dynamic_union): Likewise.
10828 (resolve_dynamic_struct): Likewise.
10829 (resolve_dynamic_type): Likewise.
10830
108312015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10832
10833 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10834 TYPE_CODE_REF types so that they are not considered as dynamic
10835 depending on the referenced type.
10836 (resolve_dynamic_type_internal): Likewise.
10837
108382015-04-02 H.J. Lu <hongjiu.lu@intel.com>
10839
10840 * Makefile.in (top_srcdir): New.
10841 * configure: Regenerated.
10842
108432015-04-02 Gary Benson <gbenson@redhat.com>
10844
10845 * NEWS: Announce the new default sysroot of "target:".
10846
108472015-04-02 Gary Benson <gbenson@redhat.com>
10848
10849 * main.c (captured_main): Set gdb_sysroot to "target:"
10850 if not otherwise set.
10851
108522015-04-02 Gary Benson <gbenson@redhat.com>
10853
10854 * exec.c (exec_file_attach): Support "target:" filenames.
10855
108562015-04-02 Gary Benson <gbenson@redhat.com>
10857
10858 * solib.c (solib_find): Strip "target:" prefix from sysroot
10859 if accessing local files.
10860
108612015-04-02 Gary Benson <gbenson@redhat.com>
10862
10863 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
10864 checks and error messages.
10865
108662015-04-02 Gary Benson <gbenson@redhat.com>
10867
10868 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
10869 (remote_filename_p): Remove declaration.
10870 (remote_bfd_open): Likewise.
10871 * remote.c (remote_bfd_iovec_open): Remove function.
10872 (remote_bfd_iovec_close): Likewise.
10873 (remote_bfd_iovec_pread): Likewise.
10874 (remote_bfd_iovec_stat): Likewise.
10875 (remote_filename_p): Likewise.
10876 (remote_bfd_open): Likewise.
10877 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
10878 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
10879 (gdb_bfd_open_maybe_remote): Remove function.
10880 (symfile_bfd_open): Replace remote filename check with
10881 target filename check.
10882 (reread_symbols): Use gdb_bfd_open.
10883 * build-id.c (gdbcore.h): New include.
10884 (build_id_to_debug_bfd): Use gdb_bfd_open.
10885 * infcmd.c (attach_command_post_wait): Remove remote filename
10886 check.
10887 * solib.c (solib_find): Replace remote-specific handling with
10888 target-specific handling. Update comments where necessary.
10889 (solib_bfd_open): Replace remote-specific handling with
10890 target-specific handling.
10891 (gdb_sysroot_changed): New function.
10892 (_initialize_solib): Call the above when gdb_sysroot changes.
10893 * windows-tdep.c (gdbcore.h): New include.
10894 (windows_xfer_shared_library): Use gdb_bfd_open.
10895
108962015-04-02 Gary Benson <gbenson@redhat.com>
10897
10898 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
10899 (is_target_filename): New declaration.
10900 (gdb_bfd_has_target_filename): Likewise.
10901 (gdb_bfd_open): Update documentation comment.
10902 * gdb_bfd.c (target.h): New include.
10903 (gdb/fileio.h): Likewise.
10904 (is_target_filename): New function.
10905 (gdb_bfd_has_target_filename): Likewise.
10906 (fileio_errno_to_host): Likewise.
10907 (gdb_bfd_iovec_fileio_open): Likewise.
10908 (gdb_bfd_iovec_fileio_pread): Likewise.
10909 (gdb_bfd_iovec_fileio_close): Likewise.
10910 (gdb_bfd_iovec_fileio_fstat): Likewise.
10911 (gdb_bfd_open): Use target fileio to access paths prefixed
10912 with "target:" where necessary.
10913
109142015-04-02 Gary Benson <gbenson@redhat.com>
10915
10916 * target.h (struct target_ops) <to_filesystem_is_local>:
10917 New field.
10918 (target_filesystem_is_local): New macro.
10919 * target-delegates.c: Regenerate.
10920 * remote.c (remote_filesystem_is_local): New function.
10921 (init_remote_ops): Initialize to_filesystem_is_local.
10922
109232015-04-02 Gary Benson <gbenson@redhat.com>
10924
10925 * target.h (struct target_ops) <to_fileio_fstat>: New field.
10926 (target_fileio_fstat): New declaration.
10927 * target.c (target_fileio_fstat): New function.
10928 * inf-child.c (inf_child_fileio_fstat): Likewise.
10929 (inf_child_target): Initialize to_fileio_fstat.
10930 * remote.c (init_remote_ops): Likewise.
10931
109322015-04-01 Sasha Smundak <asmundak@google.com>
10933
10934 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
10935 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
10936 (py-unwind.o): New recipe.
10937 * NEWS: mention Python frame unwinding.
10938 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
10939 gdb/unwinder.py and gdb/command/unwinder.py
10940 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
10941 list.
10942 (execute_unwinders): New function.
10943 * python/lib/gdb/command/unwinders.py: New file.
10944 * python/lib/gdb/unwinder.py: New file.
10945 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
10946 (objfpy_dealloc): Decrement frame_unwinders reference count.
10947 (objfpy_initialize): Create frame_unwinders list.
10948 (objfpy_get_frame_unwinders): New function.
10949 (objfpy_set_frame_unwinders): Ditto.
10950 (objfile_getset): Add frame_unwinders attribute to Objfile.
10951 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
10952 (pspy_dealloc): Decrement frame_unwinders reference count.
10953 (pspy_initialize): Create frame_unwinders list.
10954 (pspy_get_frame_unwinders): New function.
10955 (pspy_set_frame_unwinders): Ditto.
10956 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
10957 * python/py-unwind.c: New file.
10958 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
10959 (objpy_get_frame_unwinders): New prototype.
10960 (gdbpy_initialize_unwind): New prototype.
10961 * python/python.c (gdbpy_apply_type_printers): Call
10962 gdbpy_initialize_unwind.
10963
109642015-04-01 Pedro Alves <palves@redhat.com>
10965
10966 * infrun.c (resume): Check currently_stepping after clearing
10967 stepped_breakpoint, not before.
10968
109692015-04-01 Pedro Alves <palves@redhat.com>
10970
10971 * infrun.c (print_target_wait_results): Print all the ptid
10972 elements.
10973
109742015-04-01 Pedro Alves <palves@redhat.com>
10975
10976 * infrun.c (keep_going): Also discard cleanups if inserting
10977 breakpoints fails.
10978
109792015-04-01 Pedro Alves <palves@redhat.com>
10980
10981 * infrun.c (wait_for_inferior): Install the
10982 finish_thread_state_cleanup cleanup across the whole function, not
10983 just around handle_inferior_event.
10984
109852015-04-01 Pedro Alves <palves@redhat.com>
10986
10987 * infrun.c (resume) <step past permanent breakpoint>: Use
10988 do_target_resume.
10989
109902015-04-01 Pedro Alves <palves@redhat.com>
10991
10992 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
10993
109942015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
10995
10996 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
10997
109982015-04-01 Pedro Alves <palves@redhat.com>
10999
11000 * linux-thread-db.c (record_thread): Readd the thread to gdb's
11001 list if it was marked exited.
11002
110032015-04-01 H.J. Lu <hongjiu.lu@intel.com>
11004
11005 * configure: Regenerated.
11006
110072015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
11008 Jan Kratochvil <jan.kratochvil@redhat.com>
11009 Oleg Nesterov <oleg@redhat.com>
11010
11011 PR corefiles/16092
11012 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
11013 New enum identifying the various options of the coredump_filter
11014 file.
11015 (struct smaps_vmflags): New struct.
11016 (use_coredump_filter): New variable.
11017 (decode_vmflags): New function.
11018 (mapping_is_anonymous_p): Likewise.
11019 (dump_mapping_p): Likewise.
11020 (linux_find_memory_regions_full): New variables
11021 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
11022 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
11023 parsing of its information. Implement memory mapping filtering
11024 based on its contents.
11025 (show_use_coredump_filter): New function.
11026 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
11027 * NEWS: Mention the possibility of using the
11028 '/proc/PID/coredump_filter' file when generating a corefile.
11029 Mention new command 'set use-coredump-filter'.
11030
110312015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
11032
11033 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
11034 read_memory_unsigned_integer.
11035
110362015-03-31 H.J. Lu <hongjiu.lu@intel.com>
11037
11038 * Makefile.in (ZLIB): New.
11039 (ZLIBINC): Likewise.
11040 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
11041 (CLIBS): Add $(ZLIB).
11042 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
11043 Add -lz to LIBS.
11044 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
11045 * top.c (print_gdb_configuration): Remove --with-zlib and
11046 --without-zlib.
11047 * config.in: Regenerated.
11048 * configure: Likewise.
11049
110502015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
11051
11052 * NEWS: Mention info os cpus support.
11053 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
11054 (struct osdata_type): Add cpus entry, reorder the entries in
11055 alphabetical order.
11056
110572015-03-31 Matthias Klose <doko@ubuntu.com>
11058
11059 * compile/compile.c (compile_to_object): Allow triplets with or
11060 without vendor set.
11061
110622015-03-30 Doug Evans <dje@google.com>
11063
11064 PR c++/18141
11065 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
11066 klass in VAR_DOMAIN.
11067
110682015-03-30 Gary Benson <gbenson@redhat.com>
11069
11070 * remote.c (remote_mourn_1): Remove function. Update all callers
11071 to use remote_mourn.
11072 (extended_remote_mourn_1): Remove function. Update all callers
11073 to use extended_remote_mourn.
11074 (extended_remote_attach_1): Remove function. Update all callers
11075 to use extended_remote_attach.
11076
110772015-03-28 James Bowman <james.bowman@ftdichip.com>
11078
11079 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
11080 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
11081 (ALLDEPFILES): Add ft32-tdep.c.
11082 * configure.tgt: Add FT32 entry.
11083 * ft32-tdep.c: New file, FT32 target-dependent code.
11084 * ft32-tdep.h: New file, FT32 target-dependent code.
11085
110862015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11087
11088 Revert:
11089 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11090 Code cleanup.
11091 * printcmd.c (print_command_1): Move expr variable scope.
11092
110932015-03-27 Joel Brobecker <brobecker@adacore.com>
11094
11095 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
11096
110972015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
11098
11099 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
11100 sections.
11101
111022015-03-26 Joel Brobecker <brobecker@adacore.com>
11103
11104 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
11105 exception raised while parsing the probe arguments.
11106 Force parsing to be done using the C language parser.
11107 * expression.h (parse_expression_with_language): Declare.
11108 * parse.c (parse_expression_with_language): New function.
11109
111102015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
11111
11112 * MAINTAINERS (Write After Approval): Add "Jon Turney".
11113
111142015-03-26 Andy Wingo <wingo@igalia.com>
11115
11116 PR symtab/18148
11117 * dwarf2read.c (struct partial_die_info): Add has_const_value
11118 member.
11119 (add_partial_symbol): Don't punt on symbols that have const_value
11120 attributes.
11121 (read_partial_die): Detect DW_AT_const_value.
11122
111232015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11124
11125 Code cleanup.
11126 * printcmd.c (print_command_1): Move expr variable scope.
11127
111282015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11129
11130 Code cleanup.
11131 * printcmd.c (validate_format): Make the parameter cmdname const.
11132
111332015-03-26 Don Breazeal <donb@codesourcery.com>
11134
11135 * remote.c (_initialize_remote): Update comment.
11136
111372015-03-26 Pedro Alves <palves@redhat.com>
11138 Jon TURNEY <jon.turney@dronecode.org.uk>
11139
11140 * coffread.c (coff_symfile_read): When constructing the name of an
11141 import stub symbol from import symbol for amd64, only skip the
11142 char after _imp_ if the target is underscored (like i386) and the
11143 char is indeed the target's leading char.
11144
111452015-03-25 Pedro Alves <palves@redhat.com>
11146
11147 * target.h <to_async>: Replace 'callback' and 'context' parameters
11148 with boolean 'enable' parameter.
11149 (target_async): Replace CALLBACK and CONTEXT parameters with
11150 boolean ENABLE parameter.
11151 * inf-loop.c (inferior_event_handler): Adjust.
11152 * linux-nat.c (linux_nat_attach, linux_nat_resume)
11153 (linux_nat_resume): Adjust.
11154 (async_client_callback, async_client_context): Delete.
11155 (handle_target_event): Call inferior_event_handler directly.
11156 (linux_nat_async): Replace 'callback' and 'context' parameters
11157 with boolean 'enable' parameter. Adjust. Remove references to
11158 async_client_callback and async_client_context.
11159 (linux_nat_close): Adjust.
11160 * record-btrace.c (record_btrace_async): Replace 'callback' and
11161 'context' parameters with boolean 'enable' parameter. Adjust.
11162 (record_btrace_resume): Adjust.
11163 * record-full.c (record_full_async): Replace 'callback' and
11164 'context' parameters with boolean 'enable' parameter. Adjust.
11165 (record_full_resume, record_full_core_resume): Adjust.
11166 * remote.c (struct remote_state) <async_client_callback,
11167 async_client_context>: Delete fields.
11168 (remote_start_remote, extended_remote_attach_1, remote_resume)
11169 (extended_remote_create_inferior): Adjust.
11170 (remote_async_serial_handler): Call inferior_event_handler
11171 directly.
11172 (remote_async): Replace 'callback' and 'context' parameters with
11173 boolean 'enable' parameter. Adjust.
11174 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
11175 Adjust.
11176 * target-delegates.c: Regenerate.
11177
111782015-03-25 Gary Benson <gbenson@redhat.com>
11179 Pedro Alves <palves@redhat.com>
11180
11181 * target.c (fileio_ft_t): New typedef, define object vector.
11182 (fileio_fhandles): New static variable.
11183 (is_closed_fileio_fh): New macro.
11184 (lowest_closed_fd): New static variable.
11185 (acquire_fileio_fd): New function.
11186 (release_fileio_fd): Likewise.
11187 (fileio_fd_to_fh): New macro.
11188 (target_fileio_open): Wrap the file descriptor on success.
11189 (target_fileio_pwrite): Updated to use wrapped file descriptor.
11190 (target_fileio_pread): Likewise.
11191 (target_fileio_close): Likewise.
11192
111932015-03-24 Pedro Alves <palves@redhat.com>
11194
11195 * thread.c (thread_apply_all_command): Take exited threads into
11196 account.
11197
111982015-03-24 Pedro Alves <palves@redhat.com>
11199
11200 * infrun.c (resume, proceed): Mention
11201 switch_back_to_stepped_thread, not switch_back_to_stepping.
11202
112032015-03-24 Pedro Alves <palves@redhat.com>
11204
11205 * infrun.c (user_visible_resume_ptid): Rewrite going from
11206 most-locked to unlocked instead of the opposite. Move comment ...
11207 * infrun.h (user_visible_resume_ptid): ... here.
11208
112092015-03-24 Pedro Alves <palves@redhat.com>
11210
11211 * linux-nat.c (linux_nat_resume): Output debug logs before trying
11212 to resume the event lwp. Use the lwp's ptid instead of the passed
11213 in (maybe wildcard) ptid.
11214 (stop_wait_callback): Tweak debug log output.
11215 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
11216 TRAP_TRACE.
11217 (linux_nat_filter_event): In debug output, distinguish a
11218 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
11219 before trying to resume the lwp.
11220
112212015-03-24 Joel Brobecker <brobecker@adacore.com>
11222
11223 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
11224 pointer indirection.
11225 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
11226 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
11227
112282015-03-24 Joel Brobecker <brobecker@adacore.com>
11229
11230 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
11231 Renames DYN_ATTR_DATA_LOCATION.
11232 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
11233 DYN_ATTR_DATA_LOCATION.
11234 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
11235 instead of DYN_ATTR_DATA_LOCATION.
11236
112372015-03-24 Pedro Alves <palves@redhat.com>
11238
11239 * breakpoint.c (until_break_command): Adjust call to proceed.
11240 * gdbthread.h (struct thread_control_state) <stepping_command>:
11241 New field.
11242 * infcall.c (run_inferior_call): Adjust call to proceed.
11243 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
11244 Adjust calls to proceed.
11245 (set_step_frame): Set the current thread's step_start_function
11246 here.
11247 (step_once): Adjust calls to proceed.
11248 (jump_command, signal_command, until_next_command)
11249 (finish_backward, finish_forward, proceed_after_attach_callback)
11250 (attach_command_post_wait): Adjust calls to proceed.
11251 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
11252 (do_target_resume): New function, factored out from ...
11253 (resume): ... here. Remove 'step' parameter. Instead, check
11254 currently_stepping to determine whether the thread should be
11255 single-stepped.
11256 (proceed): Remove 'step' parameter and don't set the thread's
11257 step_start_function here. Adjust call to 'resume'.
11258 (handle_inferior_event): Adjust calls to 'resume'.
11259 (switch_back_to_stepped_thread): Use do_target_resume instead of
11260 'resume'.
11261 (keep_going): Adjust calls to 'resume'.
11262 * infrun.h (proceed): Remove 'step' parameter.
11263 (resume): Likewise.
11264 * windows-nat.c (do_initial_windows_stuff): Adjust call to
11265 'resume'.
11266 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
11267
112682015-03-24 Pedro Alves <palves@redhat.com>
11269
11270 * gdbthread.h (struct thread_control_state) <stepping_command>:
11271 New field.
11272 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
11273 the thread's stepping_command field.
11274 * infrun.c (resume): Check the thread's stepping_command flag to
11275 determine which threads should be resumed. Rename 'entry_step'
11276 local to user_step.
11277 (clear_proceed_status_thread): Clear 'stepping_command'.
11278 (schedlock_applies): Change parameter type to struct thread_info
11279 pointer. Adjust.
11280 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
11281 (switch_back_to_stepped_thread): Adjust calls to
11282 'schedlock_applies'.
11283 (_initialize_infrun): Adjust "set scheduler-locking step" help.
11284
112852015-03-24 Pedro Alves <palves@redhat.com>
11286
11287 * infrun.c (step_start_function): Delete and ...
11288 * gdbthread.h (struct thread_control_state) <step_start_function>:
11289 ... now a field here.
11290 * infrun.c (clear_proceed_status_thread): Clear the thread's
11291 step_start_function.
11292 (proceed, process_event_stop_test, print_stop_event): Adjust.
11293
112942015-03-24 Pedro Alves <palves@redhat.com>
11295
11296 * infrun.c (proceed): No longer handle negative step.
11297
112982015-03-24 Gary Benson <gbenson@redhat.com>
11299
11300 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
11301 (x86_linux_prepare_to_resume): Likewise.
11302 * x86-linux-nat.c (x86_linux_new_thread):
11303 Moved to nat/x86-linux.c.
11304 (x86_linux_prepare_to_resume): Likewise.
11305 * nat/x86-linux.c (x86_linux_new_thread): New function.
11306 (x86_linux_prepare_to_resume): Likewise.
11307
113082015-03-24 Gary Benson <gbenson@redhat.com>
11309
11310 * nat/x86-linux-dregs.h: New file.
11311 * nat/x86-linux-dregs.c: Likewise.
11312 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
11313 (x86-linux-dregs.o): New rule.
11314 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
11315 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11316 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
11317 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11318 (x86_linux_dr_get): Likewise.
11319 (x86_linux_dr_set): Likewise.
11320 (x86_linux_dr_get_addr): Likewise.
11321 (x86_linux_dr_get_control): Likewise.
11322 (x86_linux_dr_get_status): Likewise.
11323 (update_debug_registers_callback): Likewise.
11324 (x86_linux_dr_set_control): Likewise.
11325 (x86_linux_dr_set_addr): Likewise.
11326 (x86_linux_update_debug_registers): Likewise.
11327
113282015-03-24 Gary Benson <gbenson@redhat.com>
11329
11330 * x86-linux-nat.c (x86_linux_update_debug_registers):
11331 New function, factored out from...
11332 (x86_linux_prepare_to_resume): ...this.
11333
113342015-03-24 Gary Benson <gbenson@redhat.com>
11335
11336 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
11337 (x86_linux_dr_set): Likewise.
11338 (x86_linux_dr_get_addr): Likewise.
11339 (x86_linux_dr_get_control): Likewise.
11340 (x86_linux_dr_get_status): Likewise.
11341 (update_debug_registers_callback): Likewise.
11342 (x86_linux_dr_set_control): Likewise.
11343 (x86_linux_dr_set_addr): Likewise.
11344 (x86_linux_prepare_to_resume): Likewise.
11345 (x86_linux_new_thread): Likewise.
11346
113472015-03-24 Gary Benson <gbenson@redhat.com>
11348
11349 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
11350 (x86_linux_new_thread): Rename argument.
11351
113522015-03-24 Gary Benson <gbenson@redhat.com>
11353
11354 * nat/x86-linux.h: New file.
11355 * nat/x86-linux.c: Likewise.
11356 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
11357 (x86-linux.o): New rule.
11358 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
11359 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11360 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
11361 (lwp_set_arch_private_info): New declaration.
11362 (lwp_arch_private_info): Likewise.
11363 * linux-nat.c (lwp_set_arch_private_info): New function.
11364 (lwp_arch_private_info): Likewise.
11365 * x86-linux-nat.c: Include nat/x86-linux.h.
11366 (arch_lwp_info): Removed structure.
11367 (update_debug_registers_callback):
11368 Use lwp_set_debug_registers_changed.
11369 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11370 and lwp_set_debug_registers_changed.
11371 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11372
113732015-03-24 Gary Benson <gbenson@redhat.com>
11374
11375 * nat/linux-nat.h (ptid_of_lwp): New declaration.
11376 (lwp_is_stopped): Likewise.
11377 (lwp_stop_reason): Likewise.
11378 * linux-nat.c (ptid_of_lwp): New function.
11379 (lwp_is_stopped): Likewise.
11380 (lwp_is_stopped_by_watchpoint): Likewise.
11381 * x86-linux-nat.c (update_debug_registers_callback):
11382 Use lwp_is_stopped.
11383 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11384 lwp_stop_reason.
11385
113862015-03-24 Gary Benson <gbenson@redhat.com>
11387
11388 * linux-nat.h (linux_stop_lwp): Move declaration to...
11389 * nat/linux-nat.h (linux_stop_lwp): New declaration.
11390
113912015-03-24 Gary Benson <gbenson@redhat.com>
11392
11393 * linux-nat.h: Include nat/linux-nat.h.
11394 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
11395 * nat/linux-nat.h (struct lwp_info): New forward declaration.
11396 (iterate_over_lwps_ftype): New typedef.
11397 (iterate_over_lwps): New declaration.
11398 * linux-nat.h (iterate_over_lwps): Update comment. Use
11399 iterate_over_lwps_ftype. Update callback return value check.
11400
114012015-03-24 Gary Benson <gbenson@redhat.com>
11402
11403 * x86-nat.h (x86_debug_reg_state): Move declaration to...
11404 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
11405
114062015-03-24 Gary Benson <gbenson@redhat.com>
11407
11408 * nat/linux-nat.h (current_lwp_ptid): New declaration.
11409 * linux-nat.c (current_lwp_ptid): New function.
11410 * x86-linux-nat.c: Include nat/linux-nat.h.
11411 (x86_linux_dr_get_addr): Use current_lwp_ptid.
11412 (x86_linux_dr_get_control): Likewise.
11413 (x86_linux_dr_get_status): Likewise.
11414 (x86_linux_dr_set_control): Likewise.
11415 (x86_linux_dr_set_addr): Likewise.
11416
114172015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
11418
11419 PR breakpoints/16466
11420 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
11421
114222015-03-23 Joel Brobecker <brobecker@adacore.com>
11423
11424 * ser-mingw.c (ser_windows_setparity): Fix indentation.
11425 * ser-unix.c (hardwire_setparity): Likewise.
11426
114272015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
11428
11429 * NEWS: Mention set/show serial parity command.
11430 * monitor.c (monitor_open): Call serial_setparity.
11431 * remote.c (remote_open_1): Likewise.
11432 * ser-base.c (ser_base_serparity): New function.
11433 * ser-base.h (ser_base_setparity): Add declaration.
11434 * ser-go32.c (dos_ops): Set "setparity" field.
11435 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
11436 state.Parity.
11437 (ser_windows_setparity): New function.
11438 (hardwire_ops): Add ser_windows_setparity.
11439 (tty_ops): Add NULL for setparity field.
11440 (pipe_ops): Add ser_base_setparity.
11441 (tcp_ops): Likewise.
11442 * ser-pipe.c (pipe_ops): Likewise.
11443 * ser-tcp.c (tcp_ops): Likewise.
11444 * ser-unix.c (hardwire_setparity): Add declaration.
11445 (hardwire_raw): Don't reset PARENB flag.
11446 (hardwire_setparity): New function.
11447 (hardwire_ops): Add hardwire_setparity.
11448 * serial.c (serial_setparity): New function.
11449 (serial_parity): New global.
11450 (parity_none, parity_odd, parity_even, parity_enums, parity):
11451 New static globals.
11452 (set_parity): New function.
11453 (_initialize_serial): Add set/show serial parity commands.
11454 * serial.h (GDBPARITY_NONE): Define.
11455 (GDBPARITY_ODD): Define.
11456 (GDBPARITY_EVEN): Define.
11457 (serial_setparity) Add declaration.
11458 (struct serial_ops): Add setparity field.
11459 * target.h (serial_parity): Add declaration.
11460
114612015-03-23 Keith Seitz <keiths@redhat.com>
11462
11463 * linespec.c (linespec_lexer_lex_keyword): Update comment.
11464
114652015-03-23 Keith Seitz <keiths@redhat.com>
11466
11467 * breakpoint.c (parse_breakpoint_sals): Use
11468 linespec_lexer_lex_keyword to ascertain if the user specified
11469 a NULL location.
11470 * linespec.c [IF_KEYWORD_INDEX]: Define.
11471 (linespec_lexer_lex_keyword): Export.
11472 (struct ls_parser) <keyword_ok>: Remove.
11473 A keyword is only a keyword if not followed by another keyword.
11474 (linespec_lexer_lex_one): Remove keyword_ok handling.
11475 Add comment explaining why the parsing stream is not advanced
11476 when a keyword is seen.
11477 (parse_linespec): Remove parser->keyword_ok.
11478 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
11479
114802015-03-23 Keith Seitz <keiths@redhat.com>
11481
11482 PR gdb/18021
11483 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
11484 if we find a static method with DW_AT_vtable_elem_location.
11485
114862015-03-21 Eli Zaretskii <eliz@gnu.org>
11487
11488 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
11489 before the second loop, to avoid undefined behavior. Reported by
11490 Anton Blanchard <anton@samba.org>.
11491
114922015-03-20 Keven Boell <keven.boell@intel.com>
11493
11494 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
11495 data_location usage to linked list.
11496 (resolve_dynamic_type_internal): Adapt data_location to
11497 linked list.
11498 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
11499 (copy_type_recursive, copy_type): Add copy of linked list.
11500 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
11501 (struct dynamic_prop_list): New struct.
11502 * dwarf2read.c (set_die_type): Set data_location data.
11503
115042015-03-20 Pedro Alves <palves@redhat.com>
11505
11506 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
11507 inner block and make it const.
11508 * machoread.c (get_archive_prefix_len): Make "lparen" const.
11509
115102015-03-20 Pedro Alves <palves@redhat.com>
11511
11512 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
11513 * breakpoint.h (set_breakpoint_condition): Update declaration.
11514
115152015-03-20 Pedro Alves <palves@redhat.com>
11516
11517 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
11518
115192015-03-20 Pedro Alves <palves@redhat.com>
11520
11521 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
11522
115232015-03-20 Pedro Alves <palves@redhat.com>
11524
11525 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
11526
115272015-03-20 Pedro Alves <palves@redhat.com>
11528
11529 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
11530 (nto_init_solib_absolute_prefix): Likewise.
11531
115322015-03-20 Pedro Alves <palves@redhat.com>
11533
11534 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
11535 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
11536
115372015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11538
11539 * config/djgpp/README: Remove gdb.hp.
11540
115412015-03-20 Yao Qi <yao.qi@linaro.org>
11542
11543 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
11544 set_gdbarch_cannot_step_breakpoint.
11545
115462015-03-19 Pedro Alves <palves@redhat.com>
11547
11548 * linux-nat.c (linux_resume_one_lwp): Rename to ...
11549 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11550 instead call perror_with_name.
11551 (check_ptrace_stopped_lwp_gone): New function.
11552 (linux_resume_one_lwp): Reimplement as wrapper around
11553 linux_resume_one_lwp_throw that swallows errors if the LWP is
11554 gone.
11555 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
11556 swallows errors if the LWP is gone. Use
11557 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
11558
115592015-03-19 Pedro Alves <palves@redhat.com>
11560
11561 * linux-nat.c (status_callback): Return early if the LWP has no
11562 status pending.
11563
115642015-03-19 Pedro Alves <palves@redhat.com>
11565
11566 * linux-nat.c (select_event_lwp_callback): Update comment to no
11567 longer mention SIGTRAP.
11568
115692015-03-18 Tristan Gingold <gingold@adacore.com>
11570
11571 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
11572 redirection code to ...
11573 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
11574 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
11575
115762015-03-18 Gary Benson <gbenson@redhat.com>
11577
11578 (remote_protocol_features): Remove the "vFile:fstat" feature.
11579 (remote_hostio_fstat): Probe for "vFile:fstat" support.
11580
115812015-03-11 Yao Qi <yao.qi@linaro.org>
11582
11583 PR tdep/18107
11584 * aarch64-linux-tdep.c: Include xml-syscall.h
11585 (aarch64_linux_get_syscall_number): New function.
11586 (aarch64_linux_init_abi): Call
11587 set_gdbarch_get_syscall_number.
11588 * syscalls/aarch64-linux.xml: New file.
11589
115902015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
11591
11592 * ser-base.h (ser_base_setstopbits): Change second argument name
11593 from "rate" to "num".
11594
115952015-03-17 Gary Benson <gbenson@redhat.com>
11596 Luke Allardyce <lukeallardyce@gmail.com>
11597
11598 PR gdb/18131
11599 * common/common-remote-fileio.h (sys/stat.h): New include.
11600 (stuct stat): Remove forward declaration.
11601
116022015-03-16 John Baldwin <jhb@FreeBSD.org>
11603
11604 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
11605 before writing core register notes.
11606
116072015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
11608 Pedro Alves <palves@redhat.com>
11609
11610 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
11611 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
11612 (tgoto): Wrap with extern "C".
11613
116142015-03-16 Pedro Alves <palves@redhat.com>
11615 Yuanhui Zhang <asmwarrior@gmail.com>
11616
11617 * stub-termcap.c (tputs): Change prototype.
11618
116192015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
11620 Pedro Alves <palves@redhat.com>
11621
11622 * windows-nat.c (struct thread_info_struct): Rename to ...
11623 (struct windows_thread_info_struct): ... this.
11624 (thread_info): Rename to ...
11625 (windows_thread_info): ... this.
11626 All users updated.
11627
116282015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11629 Pedro Alves <palves@redhat.com>
11630
11631 * NEWS: New Removed targets and native configurations.
11632
116332015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11634
11635 Remove HPUX.
11636 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
11637 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
11638 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
11639 ia64-hpux-tdep.h, solib-ia64-hpux.h.
11640 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
11641 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
11642 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
11643 hppa-hpux-tdep.c.
11644 * config/ia64/hpux.mh: Remove file.
11645 * config/pa/hpux.mh: Remove file.
11646 * configure: Rebuilt.
11647 * configure.ac (dlgetmodinfo, somread.o): Remove.
11648 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11649 (ia64-*-hpux*): Remove its float format exception.
11650 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11651 * hppa-hpux-nat.c: Remove file.
11652 * hppa-hpux-tdep.c: Remove file.
11653 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
11654 Move them here from hppa-tdep.h
11655 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
11656 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
11657 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
11658 Move them to hppa-tdep.c.
11659 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
11660 declarations.
11661 * ia64-hpux-nat.c: Remove file.
11662 * ia64-hpux-tdep.c: Remove file.
11663 * ia64-hpux-tdep.h: Remove file.
11664 * inf-ttrace.c: Remove file.
11665 * inf-ttrace.h: Remove file.
11666 * solib-ia64-hpux.c: Remove file.
11667 * solib-ia64-hpux.h: Remove file.
11668 * solib-pa64.c: Remove file.
11669 * solib-pa64.h: Remove file.
11670 * solib-som.c: Remove file.
11671 * solib-som.h: Remove file.
11672 * somread.c: Remove file.
11673
116742015-03-13 John Baldwin <jhb@FreeBSD.org>
11675
11676 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
11677 * config.in: Regenerate.
11678 * configure: Regenerate.
11679 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
11680 define.
11681 (fbsd_find_memory_regions): Use kinfo_getvmmap to
11682 enumerate memory regions if present.
11683
116842015-03-13 John Baldwin <jhb@FreeBSD.org>
11685
11686 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
11687 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
11688 expressions.
11689 (i386fbsd_sigtramp_p): Likewise.
11690
116912015-03-12 John Baldwin <jhb@FreeBSD.org>
11692
11693 * MAINTAINERS (Write After Approval): Add John Baldwin.
11694
116952015-03-12 Gary Benson <gbenson@redhat.com>
11696
11697 * solib.c (_initialize_solib): Make "set/show sysroot" use
11698 add_setshow_optional_filename_cmd so it can be restored to
11699 empty after being set.
11700
117012015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
11702
11703 * Makefile.in (SFILES): New source break-catch-syscall.c.
11704 (COMMON_OBS): New object break-catch-syscall.o.
11705 * break-catch-syscall.c: New file.
11706 * breakpoint.c: Remove inclusion of "xml-syscall.h".
11707 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
11708 (struct syscall_catchpoint): Likewise.
11709 (dtor_catch_syscall): Likewise.
11710 (catch_syscall_inferior_data): Likewise.
11711 (struct catch_syscall_inferior_data): Likewise.
11712 (get_catch_syscall_inferior_data): Likewise.
11713 (catch_syscall_inferior_data_cleanup): Likewise.
11714 (insert_catch_syscall): Likewise.
11715 (remove_catch_syscall): Likewise.
11716 (breakpoint_hit_catch_syscall): Likewise.
11717 (print_it_catch_syscall): Likewise.
11718 (print_one_catch_syscall): Likewise.
11719 (print_mention_catch_syscall): Likewise.
11720 (print_recreate_catch_syscall): Likewise.
11721 (catch_syscall_breakpoint_ops): Likewise.
11722 (syscall_catchpoint_p): Likewise.
11723 (create_syscall_event_catchpoint): Likewise.
11724 (catch_syscall_split_args): Likewise.
11725 (catch_syscall_command_1): Likewise.
11726 (is_syscall_catchpoint_enabled): Likewise.
11727 (catch_syscall_enabled): Likewise.
11728 (catching_syscall_number): Likewise.
11729 (catch_syscall_completer): Likewise.
11730 (clear_syscall_counts): Likewise.
11731 (initialize_breakpoint_ops): Move initialization of syscall
11732 catchpoints to break-catch-syscall.c.
11733 (_initialize_breakpoint): Move code related to syscall catchpoints
11734 to break-catch-syscall.c.
11735
117362015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
11737
11738 * breakpoint.c (breakpoint_find_if): New function.
11739 * breakpoint.h (breakpoint_find_if): New prototype.
11740
117412015-03-11 Gary Benson <gbenson@redhat.com>
11742
11743 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
11744 * remote-fileio.c (remote_fileio_to_host_uint): New function.
11745 (remote_fileio_to_host_ulong): Likewise.
11746 (remote_fileio_to_host_mode): Likewise.
11747 (remote_fileio_to_host_time): Likewise.
11748 (remote_fileio_to_host_stat): Likewise.
11749 * remote.c (PACKET_vFile_fstat): New enum value.
11750 (remote_protocol_features): Register the "vFile:fstat" feature.
11751 (remote_hostio_fstat): New function.
11752 (remote_bfd_iovec_stat): Use the above.
11753 (_initialize_remote): Register new "set/show remote
11754 hostio-fstat-packet" command.
11755 * symfile.c (separate_debug_file_exists): Update comment.
11756 * NEWS: Announce new vFile:fstat packet.
11757
117582015-03-11 Gary Benson <gbenson@redhat.com>
11759
11760 * common/common-remote-fileio.h: New file.
11761 * common/common-remote-fileio.c: Likewise.
11762 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11763 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
11764 (COMMON_OBS): Add common-remote-fileio.o.
11765 (common-remote-fileio.o): New rule.
11766 * remote-fileio.h (common-remote-fileio.h): New include.
11767 * remote-fileio.c (gdb/fileio.h): Do not include.
11768 (remote_fileio_to_be): Moved to common-remote-fileio.h.
11769 (remote_fileio_to_fio_uint): Likewise.
11770 (remote_fileio_to_fio_time): Likewise.
11771 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
11772 (remote_fileio_to_fio_mode): Likewise.
11773 (remote_fileio_to_fio_ulong): Likewise.
11774 (remote_fileio_to_fio_stat): Likewise.
11775
117762015-03-11 Andy Wingo <wingo@igalia.com>
11777
11778 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
11779 we were checking the cached type, not the cached dynamic type.
11780
117812015-03-11 Andy Wingo <wingo@igalia.com>
11782
11783 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
11784 other strings, as these are on the GC'd heap, and will be
11785 collected along with the smob.
11786
117872015-03-11 Andy Wingo <wingo@igalia.com>
11788
11789 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
11790 (objfile_functions): Bind gdbscm_objfile_progspace to
11791 objfile-progspace.
11792 * guile/lib/gdb.scm: Add objfile-progspace to exports.
11793
117942015-03-11 Andy Wingo <wingo@igalia.com>
11795
11796 * guile/guile.c (_initialize_guile): Disable automatic
11797 finalization, if Guile offers us that possibility.
11798 * guile/guile.c (call_initialize_gdb_module):
11799 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
11800 finalizers in appropriate places.
11801 * configure.ac (AC_TRY_LIBGUILE): Add a check for
11802 scm_set_automatic_finalization_enabled.
11803 * configure: Regenerated.
11804
118052015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11806
11807 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
11808 SAL, if possible.
11809
118102015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11811
11812 * s390-linux-nat.c (struct arch_lwp_info): New.
11813 (s390_fix_watch_points): Rename to...
11814 (s390_prepare_to_resume): ...this. Skip the PER info update
11815 unless the watch points have changed.
11816 (s390_refresh_per_info, s390_new_thread): New functions.
11817 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
11818 s390_fix_watch_points.
11819 (s390_remove_watchpoint): Likewise.
11820 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
11821 Register s390_prepare_to_resume.
11822
118232015-03-09 Pedro Alves <palves@redhat.com>
11824
11825 Revert:
11826 2015-03-07 Pedro Alves <palves@redhat.com>
11827 * common/gdb_socket.h: New file.
11828 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11829 sys/socket.h.
11830 (net_open): Use union gdb_sockaddr_u.
11831
118322015-03-07 Pedro Alves <palves@redhat.com>
11833
11834 * configure.ac (build_warnings): Move -Wmissing-prototypes
11835 -Wdeclaration-after-statement -Wmissing-parameter-type
11836 -Wold-style-declaration -Wold-style-definition to the C-specific
11837 set.
11838 * configure: Regenerate.
11839
118402015-03-07 Pedro Alves <palves@redhat.com>
11841
11842 * common/gdb_socket.h: New file.
11843 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11844 sys/socket.h.
11845 (net_open): Use union gdb_sockaddr_u.
11846
118472015-03-07 Pedro Alves <palves@redhat.com>
11848
11849 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
11850 (exceptions_state_mc_action_iter)
11851 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11852 Don't define.
11853 [__cplusplus] (try_scope_depth): New global.
11854 [__cplusplus] (exception_try_scope_entry)
11855 (exception_try_scope_exit, gdb_exception_sliced_copy)
11856 (exception_rethrow): New functions.
11857 (throw_exception): In C++ mode, throw
11858 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
11859 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
11860 (throw_it): In C++ mode, use try_scope_depth.
11861 * common/common-exceptions.h [!__cplusplus]
11862 (exceptions_state_mc_action_iter)
11863 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11864 Don't declare.
11865 [__cplusplus] (exception_try_scope_entry)
11866 (exception_try_scope_exit, exception_rethrow): Declare.
11867 [__cplusplus] (struct exception_try_scope): New struct.
11868 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
11869 C++ exceptions.
11870 (struct gdb_exception_RETURN_MASK_ALL)
11871 (struct gdb_exception_RETURN_MASK_ERROR)
11872 (struct gdb_exception_RETURN_MASK_QUIT): New types.
11873
118742015-03-07 Pedro Alves <palves@redhat.com>
11875
11876 * main.c (handle_command_errors): Remove volatile qualifier from
11877 parameter.
11878
118792015-03-07 Pedro Alves <palves@redhat.com>
11880
11881 * breakpoint.c (save_breakpoints): Adjust to avoid code between
11882 TRY and CATCH.
11883 * gdbtypes.c (safe_parse_type): Remove empty line.
11884 (types_deeply_equal):
11885 * guile/scm-frame.c (gdbscm_frame_name):
11886 * linux-thread-db.c (find_new_threads_once):
11887 * python/py-breakpoint.c (bppy_get_commands):
11888 * record-btrace.c (record_btrace_insert_breakpoint)
11889 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
11890 (record_btrace_start_replaying): Adjust to avoid code between TRY
11891 and CATCH.
11892
118932015-03-07 Pedro Alves <palves@redhat.com>
11894
11895 * common/common-exceptions.c (struct catcher) <exception>: No
11896 longer a pointer to volatile exception. Now an exception value.
11897 <mask>: Delete field.
11898 (exceptions_state_mc_init): Remove all parameters. Adjust.
11899 (exceptions_state_mc): No longer pop the catcher here.
11900 (exceptions_state_mc_catch): New function.
11901 (throw_exception): Adjust.
11902 * common/common-exceptions.h (exceptions_state_mc_init): Remove
11903 all parameters.
11904 (exceptions_state_mc_catch): Declare.
11905 (TRY_CATCH): Rename to ...
11906 (TRY): ... this. Remove EXCEPTION and MASK parameters.
11907 (CATCH, END_CATCH): New.
11908 All callers adjusted.
11909
119102015-03-07 Tom Tromey <tromey@redhat.com>
11911
11912 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
11913
119142015-03-07 Pedro Alves <palves@redhat.com>
11915
11916 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11917 (amd64_epilogue_frame_cache): Normal exception handling code.
11918 * break-catch-throw.c (check_status_exception_catchpoint)
11919 (re_set_exception_catchpoint): Ditto.
11920 * cli/cli-interp.c (safe_execute_command):
11921 * cli/cli-script.c (script_from_file): Ditto.
11922 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
11923 Ditto.
11924 * compile/compile-object-run.c (compile_object_run): Ditto.
11925 * cp-abi.c (baseclass_offset): Ditto.
11926 * cp-valprint.c (cp_print_value): Ditto.
11927 * exceptions.c (catch_exceptions_with_msg):
11928 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
11929 * frame.c (get_frame_address_in_block_if_available): Ditto.
11930 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11931 (i386_sigtramp_frame_cache): Ditto.
11932 * infcmd.c (post_create_inferior): Ditto.
11933 * linespec.c (parse_linespec, find_linespec_symbols):
11934 * p-valprint.c (pascal_object_print_value): Ditto.
11935 * parse.c (parse_expression_for_completion): Ditto.
11936 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
11937 * remote.c (remote_get_noisy_reply): Ditto.
11938 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
11939 * solib-svr4.c (solib_svr4_r_map): Ditto.
11940
119412015-03-06 Gary Benson <gbenson@redhat.com>
11942
11943 * common/common-utils.h (startswith): New inline function.
11944 All places where this logic was used updated to use the above.
11945
119462015-03-05 Pedro Alves <palves@redhat.com>
11947
11948 PR gdb/18002
11949 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
11950 after reading the breakpoint's shadow memory.
11951
119522015-03-05 Mark Kettenis <kettenis@gnu.org>
11953
11954 * hppabsd-nat.c: Remove file.
11955 * hppaobsd-nat.c: New file.
11956 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
11957 hppaobsd-nat.c.
11958 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
11959 hppaobsd-nat.o.
11960
119612015-03-04 Pedro Alves <palves@redhat.com>
11962
11963 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
11964 (target_decr_pc_after_break): Delete declaration.
11965 * target.c (default_target_decr_pc_after_break)
11966 (target_decr_pc_after_break): Delete.
11967 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
11968 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
11969 * linux-thread-db.c (check_event): Likewise.
11970 * infrun.c (adjust_pc_after_break): Likewise.
11971 * darwin-nat.c (cancel_breakpoint): Likewise.
11972 * aix-thread.c (aix_thread_wait): Likewise.
11973 * target-delegates.c: Regenerate.
11974
119752015-03-04 Pedro Alves <palves@redhat.com>
11976
11977 * linux-nat.c (save_sigtrap): Check for breakpoints before
11978 checking watchpoints.
11979 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11980 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11981 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
11982 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
11983 (linux_nat_stopped_by_sw_breakpoint)
11984 (linux_nat_supports_stopped_by_sw_breakpoint)
11985 (linux_nat_stopped_by_hw_breakpoint)
11986 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
11987 (linux_nat_wait_1): Don't re-increment the PC if relying on
11988 SIGTRAP's siginfo->si_code.
11989 (linux_nat_add_target): Install new target methods.
11990 * linux-thread-db.c (check_event): Don't account for breakpoint PC
11991 offset if the target already adjusted the PC.
11992 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
11993 (GDB_ARCH_TRAP_BRKPT): New.
11994 (TRAP_HWBKPT): Define if not already defined.
11995
119962015-03-04 Pedro Alves <palves@redhat.com>
11997
11998 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
11999 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
12000 Delete field.
12001 <stop_reason>: New field.
12002 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
12003 (packet_set_cmd_state): New function.
12004 (remote_protocol_features): Register the "swbreak" and "hwbreak"
12005 features.
12006 (remote_query_supported): If not disabled with the corresponding
12007 "set remote foo-packet" command, report support for the swbreak
12008 and hwbreak features.
12009 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
12010 field.
12011 <stop_reason>: New field.
12012 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
12013 (remote_wait_as): Adjust.
12014 (remote_stopped_by_sw_breakpoint)
12015 (remote_supports_stopped_by_sw_breakpoint)
12016 (remote_stopped_by_hw_breakpoint)
12017 (remote_supports_stopped_by_hw_breakpoint): New functions.
12018 (remote_stopped_by_watchpoint): New function.
12019 (init_remote_ops): Install them.
12020 (_initialize_remote): Register new "set/show remote
12021 swbreak-feature-packet" and "set/show remote
12022 swbreak-feature-packet" commands.
12023
120242015-03-04 Pedro Alves <palves@redhat.com>
12025
12026 * btrace.h: Include target/waitstatus.h.
12027 (struct btrace_thread_info) <stop_reason>: New field.
12028 * record-btrace.c (record_btrace_step_thread): Use
12029 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
12030 (record_btrace_decr_pc_after_break): Delete.
12031 (record_btrace_stopped_by_sw_breakpoint)
12032 (record_btrace_supports_stopped_by_sw_breakpoint)
12033 (record_btrace_stopped_by_hw_breakpoint)
12034 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
12035 (init_record_btrace_ops): Install them.
12036 * record-full.c (record_full_hw_watchpoint): Delete and replace
12037 with ...
12038 (record_full_stop_reason): ... this throughout.
12039 (record_full_exec_insn): Adjust.
12040 (record_full_wait_1): Adjust. No longer re-increment the PC.
12041 (record_full_wait_1): Adjust. Use
12042 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
12043 (record_full_stopped_by_watchpoint): Adjust.
12044 (record_full_stopped_by_sw_breakpoint)
12045 (record_full_supports_stopped_by_sw_breakpoint)
12046 (record_full_supports_stopped_by_sw_breakpoint)
12047 (record_full_stopped_by_hw_breakpoint)
12048 (record_full_supports_stopped_by_hw_breakpoint): New functions.
12049 (init_record_full_ops, init_record_full_core_ops): Install them.
12050 * record.c (record_check_stopped_by_breakpoint): New function.
12051 * record.h: Include target/waitstatus.h.
12052 (record_check_stopped_by_breakpoint): New declaration.
12053
120542015-03-04 Pedro Alves <palves@redhat.com>
12055
12056 enum lwp_stop_reason -> enum target_stop_reason
12057 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
12058 (linux_nat_stopped_by_watchpoint, status_callback)
12059 (linux_nat_wait_1): Adjust.
12060 * linux-nat.h (enum lwp_stop_reason): Delete.
12061 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12062 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12063 * target/waitstatus.h (enum target_stop_reason): New.
12064
120652015-03-04 Pedro Alves <palves@redhat.com>
12066
12067 * breakpoint.c (need_moribund_for_location_type): New function.
12068 (bpstat_stop_status): Don't skipping checking moribund locations
12069 of breakpoint types which the target tell caused a stop.
12070 (program_breakpoint_here_p): New function, factored out from ...
12071 (bp_loc_is_permanent): ... this.
12072 (update_global_location_list): Don't create a moribund location if
12073 the target supports reporting stops of the type of the removed
12074 breakpoint.
12075 * breakpoint.h (program_breakpoint_here_p): New declaration.
12076 * infrun.c (adjust_pc_after_break): Return early if the target has
12077 already adjusted the PC. Add comments.
12078 (handle_signal_stop): If nothing explains a signal, and the target
12079 tells us the stop was caused by a software breakpoint, check if
12080 there's a breakpoint instruction in the memory. If so, adjust the
12081 PC before presenting the stop to the user. Otherwise, ignore the
12082 trap. If nothing explains a signal, and the target tells us the
12083 stop was caused by a hardware breakpoint, ignore the trap.
12084 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
12085 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
12086 to_supports_stopped_by_hw_breakpoint>: New fields.
12087 (target_stopped_by_sw_breakpoint)
12088 (target_supports_stopped_by_sw_breakpoint)
12089 (target_stopped_by_hw_breakpoint)
12090 (target_supports_stopped_by_hw_breakpoint): Define.
12091 * target-delegates.c: Regenerate.
12092
120932015-03-04 Pedro Alves <palves@redhat.com>
12094
12095 * infrun.c (follow_fork_inferior): Use the whole of the
12096 inferior_ptid and pending_follow.related_pid ptids instead of
12097 building ptids from the process components. Adjust verbose output
12098 to use target_pid_to_str.
12099 * linux-nat.c (linux_child_follow_fork): Use the whole of the
12100 inferior_ptid and pending_follow.related_pid ptids instead of
12101 building ptids from the process components.
12102
121032015-03-04 Mark Kettenis <kettenis@gnu.org>
12104
12105 * inf-ptrace.c [PT_GET_PROCESS_STATE]
12106 (inf_ptrace_insert_fork_catchpoint): New function.
12107 (inf_ptrace_remove_fork_catchpoint): New function.
12108 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
12109
121102015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12111
12112 * s390-linux-tdep.c (s390_register_name): Return empty string
12113 instead of NULL for registers that shouldn't be visible.
12114
121152015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12116
12117 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
12118 XML file for 64-bit targets.
12119
121202015-03-03 Simon Marchi <simon.marchi@ericsson.com>
12121
12122 * target.h (find_default_create_inferior): Remove declaration.
12123 (find_default_attach): Likewise.
12124
121252015-03-03 Pedro Alves <palves@redhat.com>
12126
12127 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
12128 Use ptid_get_pid to get the overall process id when resuming all
12129 threads.
12130
121312015-03-03 Pedro Alves <palves@redhat.com>
12132
12133 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
12134 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
12135 * inf-ptrace.c (get_ptrace_pid): New function.
12136 (inf_ptrace_resume): Use it.
12137 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
12138 to the lower layer.
12139
121402015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12141
12142 * nat/linux-btrace.c: Include sys/utsname.h.
12143 (linux_determine_kernel_ptr_bits): New.
12144 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
12145 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
12146 ptr_bits.
12147
121482015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12149
12150 * btrace.c (ftrace_update_function): Treat return as tailcall for
12151 "_dl_runtime_resolve".
12152
121532015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12154
12155 * btrace.h (btrace_function) <lbegin, lend>: Remove.
12156 * btrace.c (ftrace_debug): Do not print the line range.
12157 (ftrace_skip_file, ftrace_update_lines): Remove.
12158 (ftrace_new_function): Remove lbegin and lend initialization.
12159 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
12160 * record-btrace.c (btrace_compute_src_line_range): New.
12161 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
12162
121632015-03-02 Pedro Alves <palves@redhat.com>
12164
12165 * infrun.c (follow_exec): Delete all threads of the process except
12166 the event thread. Extended comments.
12167
121682015-03-02 Joel Brobecker <brobecker@adacore.com>
12169
12170 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
12171
121722015-03-02 Joel Brobecker <brobecker@adacore.com>
12173
12174 * utils.h: Remove <stdbool.h> #include.
12175 (producer_is_gcc): Change return type to "int".
12176 * utils.c (producer_is_gcc): Change return type to int.
12177 Return 1 instead of true, and 0 instead of false.
12178 Adjust function documentation accordingly.
12179
121802015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12181
12182 * s390-linux-nat.c (have_regset_vxrs): New static variable.
12183 (s390_linux_fetch_inferior_registers): Handle vector registers, if
12184 present.
12185 (s390_linux_store_inferior_registers): Likewise.
12186 (s390_get_hwcap): Remove function. Embed its logic...
12187 (s390_read_description): ...here. Yield a target description with
12188 vector registers if applicable.
12189 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
12190 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
12191 "features/s390x-tevx-linux64.c".
12192 (struct gdbarch_tdep) <v0_full_regnum>: New field.
12193 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
12194 for "GNU/Linux-specific registers".
12195 (s390_dwarf_reg_r0l): New enum value.
12196 (s390_dwarf_reg_to_regnum): Support vector registers.
12197 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
12198 of GPR lower halves.
12199 (regnum_is_vxr_full): New function.
12200 (s390_register_name): New function.
12201 (s390_pseudo_register_name): Handle v0-v15, which are composed of
12202 f0-f15 and v0l-v15l.
12203 (s390_pseudo_register_type): Likewise.
12204 (s390_pseudo_register_read): Likewise.
12205 (s390_pseudo_register_write): Likewise.
12206 (s390_value_from_register): Account for the fact that values are
12207 placed left-justified in vector registers.
12208 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
12209 the vector reggroup and omit them from the general reggroup.
12210 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
12211 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
12212 (s390_iterate_over_regset_sections): Add iterations for the two
12213 new vector regsets.
12214 (s390_core_read_description): Yield a target description with
12215 vector registers if applicable.
12216 (s390_gdbarch_init): Handle target descriptions with vector
12217 registers. Add "register_name" gdbarch method.
12218 (_initialize_s390_tdep): Call new tdesc initialization functions.
12219 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
12220 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
12221 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
12222 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
12223 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
12224 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
12225 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
12226 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
12227 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
12228 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
12229 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
12230 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
12231 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
12232 (S390_NUM_REGS): Adjust value.
12233 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
12234 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12235 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
12236 * NEWS: Announce S/390 vector register support.
12237
122382015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12239
12240 * features/s390-tevx-linux64.xml: New file.
12241 * features/s390-vx-linux64.xml: New file.
12242 * features/s390-vx.xml: New file.
12243 * features/s390x-tevx-linux64.xml: New file.
12244 * features/s390x-vx-linux64.xml: New file.
12245 * features/Makefile (WHICH): Add s390-vx-linux64,
12246 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
12247 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
12248 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
12249 macros.
12250 * features/s390-tevx-linux64.c: New generated file.
12251 * features/s390-vx-linux64.c: Likewise.
12252 * features/s390x-tevx-linux64.c: Likewise.
12253 * features/s390x-vx-linux64.c: Likewise.
12254 * regformats/s390-tevx-linux64.dat: Likewise.
12255 * regformats/s390-vx-linux64.dat: Likewise.
12256 * regformats/s390x-tevx-linux64.dat: Likewise.
12257 * regformats/s390x-vx-linux64.dat: Likewise.
12258
122592015-02-28 Doug Evans <xdje42@gmail.com>
12260
12261 * symtab.h (struct symtab) <next>: Fix comment.
12262
122632015-02-27 Simon Marchi <simon.marchi@ericsson.com>
12264
12265 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
12266 python_GdbMethods.
12267
122682015-02-27 Pedro Alves <palves@redhat.com>
12269
12270 * dtrace-probe.c (dtrace_probe_ops): Make extern.
12271
122722015-02-27 Pedro Alves <palves@redhat.com>
12273
12274 * common/common-exceptions.h (exception_none): Declare.
12275 * common/common-exceptions.c (exception_none): Moved from
12276 exceptions.c.
12277 (exceptions_state_mc_init): Use exception_none.
12278 * exceptions.c (exception_none): Move to
12279 common/common-exceptions.c.
12280 * exceptions.h (exception_none): Move to
12281 common/common-exceptions.h.
12282
122832015-02-27 Pedro Alves <palves@redhat.com>
12284
12285 * main.c (catch_command_errors, catch_command_errors_const):
12286 Remove 'mask' argument. Adjust.
12287 (captured_main): Adjust callers.
12288
122892015-02-27 Pedro Alves <palves@redhat.com>
12290
12291 * python/python-internal.h: Include "extension-priv.h".
12292
122932015-02-27 Pedro Alves <palves@redhat.com>
12294
12295 * breakpoint.h (enum print_stop_action): Move further up in the
12296 file.
12297
122982015-02-27 Pedro Alves <palves@redhat.com>
12299
12300 * gdbarch.sh: Include regcache.h.
12301 * gdbarch.h: Regenerate.
12302
123032015-02-27 Pedro Alves <palves@redhat.com>
12304
12305 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
12306 Remove duplicate const.
12307 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
12308 duplicate const.
12309
123102015-02-27 Pedro Alves <palves@redhat.com>
12311
12312 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
12313 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
12314 * features/feature_to_c.sh: Tag the generated xml_builtin array
12315 with extern const in C++ mode.
12316
123172015-02-27 Tom Tromey <tromey@redhat.com>
12318
12319 * minidebug.c (struct lzma_stream): Rename to ...
12320 (struct gdb_lzma_stream): ... this.
12321 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
12322
123232015-02-27 Pedro Alves <palves@redhat.com>
12324
12325 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
12326 function.
12327 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
12328 (mi_cmd_stack_list_variables): Use it.
12329
123302015-02-27 Pedro Alves <palves@redhat.com>
12331
12332 * x86-linux-nat.c (u_debugreg_offset): New function.
12333 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12334
123352015-02-27 Pedro Alves <palves@redhat.com>
12336
12337 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
12338 declaration.
12339 Include break-common.h.
12340
123412015-02-27 Tom Tromey <tromey@redhat.com>
12342 Pedro Alves <palves@redhat.com>
12343
12344 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
12345 local used to iterate over enums.
12346 * completer.c (signal_completer): Likewise.
12347 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
12348 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
12349 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
12350 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
12351 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
12352 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
12353 * tui-wingeneral.c (tui_refresh_all): Likewise.
12354
123552015-02-27 Pedro Alves <palves@redhat.com>
12356
12357 * target.h: Include "infrun.h".
12358
123592015-02-27 Pedro Alves <palves@redhat.com>
12360
12361 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12362
123632015-02-27 Pedro Alves <palves@redhat.com>
12364
12365 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
12366 (IPA_SYM): Use it.
12367 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
12368
123692015-02-27 Pedro Alves <palves@redhat.com>
12370
12371 * cli-out.c (_rl_erase_entire_line): Move declaration out of
12372 cli_mld_erase_entire_line, and make it extern "C".
12373 * common/common-defs.h (EXTERN_C): New.
12374 * completer.c (_rl_completion_prefix_display_length)
12375 (_rl_print_completions_horizontally, QSFUNC): Move declarations
12376 out of gdb_display_match_list_1.
12377 (_rl_qsort_string_compare): Move declaration out of
12378 gdb_display_match_list_1, and make it extern "C".
12379 * defs.h (re_comp): Use EXTERN_C.
12380 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
12381 and make it extern "C".
12382 (monstartup): Move declaration out of maintenance_set_profile_cmd,
12383 and make it extern "C".
12384 (main): Move declaration out of maintenance_set_profile_cmd.
12385 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
12386 EXTERN_C.
12387
123882015-02-27 Pedro Alves <palves@redhat.com>
12389
12390 * python/python.c (GdbMethods): Rename to ...
12391 (python_GdbMethods): ... this and make extern.
12392 (GdbModuleDef): Rename to ...
12393 (python_GdbModuleDef): ... this and make extern.
12394
123952015-02-27 Pedro Alves <palves@redhat.com>
12396
12397 * record-btrace.c (set_record_btrace_cmdlist)
12398 (show_record_btrace_cmdlist): Remove redefinitions.
12399
124002015-02-27 Tom Tromey <tromey@redhat.com>
12401 Pedro Alves <palves@redhat.com>
12402
12403 * dwarf2-frame.c (enum cfa_how_kind, struct
12404 dwarf2_frame_state_reg_info): Move out of struct
12405 dwarf2_frame_state.
12406 * dwarf2read.c (struct tu_stats): Move out of struct
12407 dwarf2_per_objfile.
12408 (struct file_entry): Move out of struct line_header.
12409 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
12410 typedef_field_list): Move out of struct field_info.
12411 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
12412 Move out of struct dynamic_prop.
12413 (union type_owner, union field_location, struct field, struct
12414 range_bounds, union type_specific): Move out of struct main_type.
12415 (struct fn_fieldlist, struct fn_field, struct typedef_field)
12416 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
12417 (struct call_site_target, union call_site_parameter_u, struct
12418 call_site_parameter): Move out of struct call_site.
12419 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
12420 m32c_prologue.
12421 (enum srcdest_kind): Move out of struct srcdest.
12422 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
12423 * prologue-value.h (enum prologue_value_kind): Move out of struct
12424 prologue_value.
12425 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
12426 gdbarch_tdep.
12427 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
12428 out of struct field_info.
12429 * symfile.h (struct other_sections): Move out of struct
12430 section_addr_info.
12431 * symtab.c (struct symbol_cache_slot): Move out struct
12432 block_symbol_cache.
12433 * target-descriptions.c (enum tdesc_type_kind): Move out of
12434 typedef struct tdesc_type.
12435 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
12436 struct tui_line_or_address.
12437 * value.c (enum internalvar_kind, union internalvar_data): Move
12438 out of struct internalvar.
12439 * xtensa-tdep.h (struct ctype_cache): Move out of struct
12440 gdbarch_tdep.
12441
124422015-02-27 Tom Tromey <tromey@redhat.com>
12443 Pedro Alves <palves@redhat.com>
12444
12445 Rename symbols whose names are reserved C++ keywords throughout.
12446
124472015-02-27 Pedro Alves <palves@redhat.com>
12448
12449 * Makefile.in (COMPILER): New, get it from autoconf.
12450 (COMPILE.pre, CC_LD): Use COMPILER.
12451 (CXX): Get from autoconf instead.
12452 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12453 * acinclude.m4: Include build-with-cxx.m4.
12454 * build-with-cxx.m4: New file.
12455 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12456 Disable -Werror by default if building in C++ mode.
12457 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12458 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
12459 Run supported-warning-flags tests with the C++ compiler.
12460 Save/restore CXXFLAGS too.
12461 * configure: Regenerate.
12462
124632015-02-27 Pedro Alves <palves@redhat.com>
12464
12465 * libiberty.m4: New file.
12466 * acinclude.m4: Include libiberty.m4.
12467 * configure.ac: Call libiberty_INIT.
12468 * config.in, configure: Regenerate.
12469
124702015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
12471
12472 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
12473 31-bit targets, but 64-bit targets as well.
12474 (s390_gnu_triplet_regexp): New function.
12475 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
12476 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
12477 method.
12478
124792015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
12480
12481 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
12482 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
12483 from CONTEXT_DEBUGGER.
12484
124852015-02-26 Doug Evans <dje@google.com>
12486
12487 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
12488 CHECK_TYPEDEF.
12489 (set_type_vptr_fieldno): Ditto.
12490 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
12491 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
12492
124932015-02-26 Pedro Alves <palves@redhat.com>
12494
12495 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
12496 * complaints.c (vcomplaint): Pass argument FMT directly to
12497 printf-like functions instead of complaint->fmt.
12498 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
12499 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
12500 * compile/compile-loc2c.c (pushf, unary, binary): Add
12501 ATTRIBUTE_PRINTF.
12502 (do_compile_dwarf_expr_to_c): Pass string literal as format string
12503 to pushf.
12504 (BINARY): Pass string literal as format string to 'binary'.
12505 * compile/compile-object-load.c (link_callbacks_einfo): Add
12506 ATTRIBUTE_PRINTF.
12507 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
12508
125092015-02-26 Pedro Alves <palves@redhat.com>
12510
12511 * windows-termcap.c: Rename to ...
12512 * stub-termcap.c: ... this. Adjust header line.
12513 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
12514 windows-termcap.c.
12515 * configure: Regenerate.
12516 * configure.ac: Refer to stub-termcap.o instead of
12517 windows-termcap.o.
12518 * gdb_curses.h: Mention stub-termcap.c instead of
12519 windows-termcap.c.
12520
125212015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12522
12523 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
12524 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
12525
125262015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
12527
12528 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
12529
125302015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12531
12532 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
12533 bfd_canonicalize_symtab.
12534
125352015-02-25 John Baldwin <jhb@FreeBSD.org>
12536
12537 * amd64fbsd-nat.c: Include sys/user.h.
12538 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12539 instead of KERN_PS_STRINGS to locate the signal trampoline.
12540 * i386fbsd-nat.c: Include sys/user.h.
12541 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12542 instead of KERN_PS_STRINGS to locate the signal trampoline.
12543 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
12544 (amd64fbsd_sigtramp_p): New.
12545 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
12546 longer set default values.
12547 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
12548 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
12549 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
12550 (i386fbsd_freebsd4_sigtramp_start)
12551 (i386fbsd_freebsd4_sigtramp_middle)
12552 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
12553 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
12554 (i386fbsd_sigtramp_p): New.
12555 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
12556 longer set default values.
12557 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
12558
125592015-02-25 John Baldwin <jhb@freebsd.org>
12560
12561 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
12562 get_frame_register instead of frame_unwind_register_unsigned.
12563
125642015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12565
12566 PR build/18033
12567 * compile/compile-c-support.c (c_compute_program): Change // comment.
12568 * compile/compile-object-load.c (setup_sections): Change // comment.
12569
125702015-02-26 Joel Brobecker <brobecker@adacore.com>
12571
12572 PR build/18033:
12573 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
12574
125752015-02-23 Pedro Alves <palves@redhat.com>
12576
12577 * remote.c (skip_to_semicolon): New function.
12578 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
12579 special case the stop reasons that look like hex numbers
12580 upfront. Instead handle real register numbers after matching
12581 all the known stop reasons.
12582
125832015-02-21 Doug Evans <dje@google.com>
12584
12585 PR c++/17976, symtab/17821
12586 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
12587 is_in_anonymous. All callers updated.
12588 (find_symbol_in_baseclass): Ditto.
12589 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
12590 for symbols in an anonymous namespace.
12591 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
12592 DW_AT_name directly.
12593 (dwarf2_name): Convert missing namespace name to
12594 CP_ANONYMOUS_NAMESPACE_STR.
12595
125962015-02-20 Pedro Alves <palves@redhat.com>
12597
12598 * linux-nat.c (linux_handle_extended_wait): Call
12599 thread_db_notice_clone whenever a new clone LWP is detected.
12600 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
12601 functions.
12602 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
12603 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
12604 (linux_unstop_all_lwps): Declare.
12605 * linux-thread-db.c (struct thread_get_info_inout): Delete.
12606 (thread_get_info_callback): Delete.
12607 (thread_from_lwp): Use td_thr_get_info and record_thread.
12608 (thread_db_attach_lwp): Delete.
12609 (thread_db_notice_clone): New function.
12610 (try_thread_db_load_1): If /proc is mounted and shows the
12611 process'es task list, walk over all LWPs and call thread_from_lwp
12612 instead of relying on td_ta_thr_iter.
12613 (attach_thread): Don't call check_thread_signals here. Split the
12614 tail part of the function (which adds the thread to the core GDB
12615 thread list) to ...
12616 (record_thread): ... this function. Call check_thread_signals
12617 here.
12618 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
12619 call thread_from_lwp.
12620 (thread_db_update_thread_list): Rename to ...
12621 (thread_db_update_thread_list_org): ... this.
12622 (thread_db_update_thread_list): New function.
12623 (thread_db_find_thread_from_tid): Delete.
12624 (thread_db_get_ada_task_ptid): Simplify.
12625 * nat/linux-procfs.c: Include <sys/stat.h>.
12626 (linux_proc_task_list_dir_exists): New function.
12627 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
12628
126292015-02-20 Pedro Alves <palves@redhat.com>
12630
12631 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
12632 main LWP. Handle the case of waitpid returning 0 if we're already
12633 attached to the LWP. Don't set the LWP's last_resume_kind to
12634 resume_stop if we already knew about the LWP.
12635 (linux_nat_filter_event): Add debug logs.
12636
126372015-02-20 Pedro Alves <palves@redhat.com>
12638
12639 * target.h (forward_target_decr_pc_after_break): Delete
12640 declaration.
12641
126422015-02-20 Pedro Alves <palves@redhat.com>
12643
12644 PR threads/18006
12645 * linux-thread-db.c (thread_get_info_callback): Return early if
12646 the thread's lwp id is -1.
12647
126482015-02-20 Joel Brobecker <brobecker@adacore.com>
12649
12650 GDB 7.9 released.
12651
126522015-02-19 Steve Ellcey <sellcey@imgtec.com>
12653
12654 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
12655 (dtrace_get_probes) Change type of variable 'dof'.
12656
126572015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12658
12659 PR breakpoints/16812
12660 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
12661 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
12662 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
12663
126642015-02-19 David Taylor <dtaylor@emc.com>
12665
12666 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
12667
126682015-02-18 Patrick Palka <patrick@parcs.ath.cx>
12669
12670 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
12671 function.
12672 (tui_putc): Don't call tui_handle_resize_during_io.
12673 (tui_getc): Likewise.
12674 (tui_mld_getc): Likewise.
12675 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
12676 (tui_sigwinch_token): New static variable.
12677 (tui_initialize_win): Adjust documentation. Set
12678 tui_sigwinch_token.
12679 (tui_async_resize_screen): New asynchronous callback.
12680 (tui_sigwinch_handler): Adjust documentation. Asynchronously
12681 invoke tui_async_resize_screen.
12682
126832015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
12684
12685 * configure: Regenerated.
12686 * configure.ac: Use GDB_AC_TRANSFORM.
12687 * Makefile.in (aclocal_m4_deps): Added transform.m4.
12688 * acinclude.m4: sinclude transform.m4.
12689 * transform.m4: New file.
12690 (GDB_AC_TRANSFORM): New macro.
12691
126922015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12693
12694 * NEWS: Announce the support for DTrace SDT probes.
12695
126962015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12697
12698 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
12699 (amd64_dtrace_parse_probe_argument): New function.
12700 (amd64_dtrace_probe_is_enabled): Likewise.
12701 (amd64_dtrace_enable_probe): Likewise.
12702 (amd64_dtrace_disable_probe): Likewise.
12703 (amd64_linux_init_abi): Register the
12704 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
12705 `gdbarch_dtrace_disable_probe' and
12706 `gdbarch_dtrace_probe_is_enabled' hooks.
12707 (amd64_dtrace_disabled_probe_sequence_1): New constant.
12708 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
12709 (amd64_dtrace_enable_probe_sequence): Likewise.
12710 (amd64_dtrace_disable_probe_sequence): Likewise.
12711
127122015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12713
12714 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
12715 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
12716 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
12717 handle ELF files.
12718 * Makefile.in (SFILES): dtrace-probe.c added.
12719 * configure: Regenerate.
12720 * dtrace-probe.c: New file.
12721 (SHT_SUNW_dof): New constant.
12722 (dtrace_probe_type): New enum.
12723 (dtrace_probe_arg): New struct.
12724 (dtrace_probe_arg_s): New typedef.
12725 (struct dtrace_probe_enabler): New struct.
12726 (dtrace_probe_enabler_s): New typedef.
12727 (dtrace_probe): New struct.
12728 (dtrace_probe_is_linespec): New function.
12729 (dtrace_dof_sect_type): New enum.
12730 (dtrace_dof_dofh_ident): Likewise.
12731 (dtrace_dof_encoding): Likewise.
12732 (DTRACE_DOF_ENCODE_LSB): Likewise.
12733 (DTRACE_DOF_ENCODE_MSB): Likewise.
12734 (dtrace_dof_hdr): New struct.
12735 (dtrace_dof_sect): Likewise.
12736 (dtrace_dof_provider): Likewise.
12737 (dtrace_dof_probe): Likewise.
12738 (DOF_UINT): New macro.
12739 (DTRACE_DOF_PTR): Likewise.
12740 (DTRACE_DOF_SECT): Likewise.
12741 (dtrace_process_dof_probe): New function.
12742 (dtrace_process_dof): Likewise.
12743 (dtrace_build_arg_exprs): Likewise.
12744 (dtrace_get_arg): Likewise.
12745 (dtrace_get_probes): Likewise.
12746 (dtrace_get_probe_argument_count): Likewise.
12747 (dtrace_can_evaluate_probe_arguments): Likewise.
12748 (dtrace_evaluate_probe_argument): Likewise.
12749 (dtrace_compile_to_ax): Likewise.
12750 (dtrace_probe_destroy): Likewise.
12751 (dtrace_gen_info_probes_table_header): Likewise.
12752 (dtrace_gen_info_probes_table_values): Likewise.
12753 (dtrace_probe_is_enabled): Likewise.
12754 (dtrace_probe_ops): New variable.
12755 (info_probes_dtrace_command): New function.
12756 (_initialize_dtrace_probe): Likewise.
12757 (dtrace_type_name): Likewise.
12758
127592015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12760
12761 * gdbarch.sh (dtrace_parse_probe_argument): New.
12762 (dtrace_probe_is_enabled): Likewise.
12763 (dtrace_enable_probe): Likewise.
12764 (dtrace_disable_probe): Likewise.
12765 * gdbarch.c: Regenerate.
12766 * gdbarch.h: Regenerate.
12767
127682015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12769
12770 * stap-probe.c (stap_probe_ops): Add NULLs in the static
12771 stap_probe_ops for `enable_probe' and `disable_probe'.
12772 * probe.c (enable_probes_command): New function.
12773 (disable_probes_command): Likewise.
12774 (_initialize_probe): Define the cli commands `enable probe' and
12775 `disable probe'.
12776 (parse_probe_linespec): New function.
12777 (info_probes_for_ops): Use parse_probe_linespec.
12778 * probe.h (probe_ops): New hooks `enable_probe' and
12779 `disable_probe'.
12780
127812015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12782
12783 * probe.c (compute_probe_arg): Moved from stap-probe.c
12784 (compile_probe_arg): Likewise.
12785 (probe_funcs): Likewise.
12786 * stap-probe.c (compute_probe_arg): Moved to probe.c.
12787 (compile_probe_arg): Likewise.
12788 (probe_funcs): Likewise.
12789
127902015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12791
12792 * probe.c (print_ui_out_not_applicables): New function.
12793 (exists_probe_with_pops): Likewise.
12794 (info_probes_for_ops): Do not include column headers for probe
12795 types for which no probe has been actually found on any object.
12796 Also invoke `print_ui_out_not_applicables' in order to match the
12797 column rows with the header when probes of several types are
12798 listed.
12799 Print the "Type" column.
12800 * probe.h (probe_ops): Added a new probe operation `type_name'.
12801 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
12802 (stap_type_name): New function.
12803
128042015-02-17 Patrick Palka <patrick@parcs.ath.cx>
12805
12806 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
12807 (key_is_command_char): Delete.
12808
128092015-02-17 Pedro Alves <palves@redhat.com>
12810
12811 * tui/tui.c (tui_enable): Resize windows before anything
12812 might show a window.
12813
128142015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
12815
12816 PR gdb/17984
12817 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
12818 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
12819 call.
12820 * aarch64-tdep.h (tdesc_aarch64): Declare.
12821
128222015-02-12 Mark Wielaard <mjw@redhat.com>
12823
12824 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
12825
128262015-02-13 Doug Evans <dje@google.com>
12827
12828 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
12829 anonymous_namespace to is_in_anonymous for consistency with the rest
12830 of the file.
12831 (cp_lookup_bare_symbol): Fix typo in comment.
12832 (cp_search_static_and_baseclasses): Ditto.
12833 (search_symbol_list): Use vertical space in comment better.
12834 (reset_directive_searched): Ditto. Fix typo.
12835 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
12836
128372015-02-13 Yao Qi <yao.qi@arm.com>
12838
12839 * MAINTAINERS: Update my email address.
12840
128412015-02-12 Doug Evans <dje@google.com>
12842
12843 * symtab.c (completion_list_add_name): Fix memory leak.
12844
128452015-02-12 Doug Evans <dje@google.com>
12846
12847 * completer.c (complete_line): Remove incorrect comment.
12848
128492015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12850
12851 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
12852 (py_print_frame): Use RETURN_MASK_ERROR.
12853
128542015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12855
12856 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
12857 function comment. Wrap all function that can throw in cleanups.
12858 (gdbpy_apply_frame_filter): Wrap all function that can throw in
12859 cleanups.
12860
128612015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12862
12863 * python/py-framefilter.c (py_print_frame): Substitute goto error.
12864 Remove the error label.
12865
128662015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12867
12868 * python/py-framefilter.c (py_print_frame): Put conditional code paths
12869 with goto first, indent the former else codepath left. Put variable
12870 'elided' to a new inner block.
12871
128722015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12873
12874 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
12875
128762015-02-11 Pedro Alves <palves@redhat.com>
12877
12878 * xcoffread.c (within_function): Delete.
12879
128802015-02-11 Tom Tromey <tromey@redhat.com>
12881 Pedro Alves <palves@redhat.com>
12882
12883 * breakpoint.c (base_breakpoint_ops): Delete.
12884 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
12885 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
12886 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
12887 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
12888 * python/py-arch.c (arch_object_type): Make extern.
12889 * python/py-block.c (block_syms_iterator_object_type): Make extern.
12890 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
12891 * python/py-cmd.c (cmdpy_object_type): Make extern.
12892 * python/py-continueevent.c (continue_event_object_type)
12893 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
12894 parameter. Update all callers.
12895 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
12896 * python/py-exitedevent.c (exited_event_object_type): Make extern.
12897 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
12898 * python/py-function.c (fnpy_object_type): Make extern.
12899 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
12900 * python/py-infevents.c (call_pre_event_object_type)
12901 (inferior_call_post_event_object_type).
12902 (memory_changed_event_object_type): Make extern.
12903 * python/py-infthread.c (thread_object_type): Make extern.
12904 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
12905 * python/py-linetable.c (linetable_entry_object_type)
12906 (linetable_object_type, ltpy_iterator_object_type): Make extern.
12907 * python/py-newobjfileevent.c (new_objfile_event_object_type)
12908 (clear_objfiles_event_object_type): Make extern.
12909 * python/py-objfile.c (objfile_object_type): Make extern.
12910 * python/py-param.c (parmpy_object_type): Make extern.
12911 * python/py-progspace.c (pspace_object_type): Make extern.
12912 * python/py-signalevent.c (signal_event_object_type): Make extern.
12913 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
12914 * python/py-type.c (type_object_type, field_object_type)
12915 (type_iterator_object_type): Make extern.
12916 * python/python.c (python_extension_script_ops)
12917 (python_extension_ops): Make extern.
12918 * stap-probe.c (stap_probe_ops): Make extern.
12919
129202015-02-11 Pedro Alves <pedro@codesourcery.com>
12921
12922 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
12923 because the event thread is not the current thread.
12924
129252015-02-11 Doug Evans <xdje42@gmail.com>
12926
12927 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
12928 been initialized yet, return NULL.
12929
129302015-02-11 Doug Evans <dje@google.com>
12931
12932 * symfile.h (new_symfile_objfile): Delete.
12933 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
12934 All callers updated.
12935
129362015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12937
12938 * tui/tui-io.c (tui_handle_resize_during_io): Call
12939 tui_update_gdb_sizes() after resizing the screen.
12940 * tui/tui.c (tui_enable): Resize the terminal before
12941 calling tui_update_gdb_sizes().
12942
129432015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12944
12945 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
12946 line before printing a newline.
12947
129482015-02-11 Mark Wielaard <mjw@redhat.com>
12949
12950 * utils.c (producer_is_gcc): Return true or false.
12951
129522015-02-10 Mark Wielaard <mjw@redhat.com>
12953
12954 * utils.h (producer_is_gcc): Change return type to bool. Add major
12955 argument.
12956 * utils.c (producer_is_gcc): Likewise.
12957 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
12958 * dwarf2read.c (check_producer): Likewise.
12959
129602015-02-10 Pedro Alves <palves@redhat.com>
12961
12962 * infrun.c (displaced_step_fixup): Switch to the event thread
12963 before calling gdbarch_displaced_step_fixup.
12964
129652015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12966
12967 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
12968
129692015-02-10 Simon Marchi <simon.marchi@ericsson.com>
12970
12971 * ada-varobj.c (ada_name_of_child): Constify parent.
12972 (ada_path_expr_of_child): Same.
12973 (ada_value_of_child): Same.
12974 (ada_type_of_child): Same.
12975 * c-varobj.c (c_is_path_expr_parent): Same.
12976 (c_describe_child): Same.
12977 (c_name_of_child): Same.
12978 (c_value_of_child): Same.
12979 (c_type_of_child): Same.
12980 (cplus_number_of_children): Same.
12981 (cplus_describe_child): Constify var.
12982 (cplus_name_of_child): Constify parent.
12983 (cplus_value_of_child): Same.
12984 (cplus_type_of_child): Same.
12985 * jv-varobj.c (java_name_of_child): Same.
12986 (java_value_of_child): Same.
12987 (java_type_of_child): Same.
12988 * varobj.c (value_of_child): Same.
12989 (varobj_default_is_path_expr_parent): Constify var, parent and return
12990 value.
12991 (varobj_get_path_expr): Constify var, modify path_expr through
12992 mutable_var.
12993 (install_new_value): Constify parent.
12994 (value_of_child): Constify parent.
12995 * varobj.h (struct varobj): Constify parent.
12996 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
12997 type_of_child.
12998 (varobj_get_path_expr): Constify var.
12999 (varobj_get_path_expr_parent): Constify var and return value.
13000
130012015-02-10 Luis Machado <lgustavo@codesourcery.com>
13002
13003 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
13004 (arm_prologue_this_id): Move PC and SP limit checks to
13005 arm_prologue_unwind_stop_reason.
13006 (arm_prologue_unwind) <stop_reason> : Set to
13007 arm_prologue_unwind_stop_reason.
13008
130092015-02-09 Mark Wielaard <mjw@redhat.com>
13010
13011 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
13012 DW_LANG_Fortran08 as language_fortran.
13013
130142015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
13015
13016 PR remote/17946
13017 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
13018 of pointer against char.
13019
130202015-02-09 Mark Wielaard <mjw@redhat.com>
13021
13022 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
13023 (c_type_print_modifier): Likewise.
13024 * dwarf2read.c (read_tag_atomic_type): New function.
13025 (read_type_die_1): Handle DW_TAG_atomic_type.
13026 * gdbtypes.c (make_atomic_type): New function.
13027 (recursive_dump_type): Handle TYPE_ATOMIC.
13028 * gdbtypes.h (enum type_flag_values): Renumber.
13029 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
13030 (TYPE_ATOMIC): New macro.
13031 (make_atomic_type): Declare.
13032
130332015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13034
13035 * btrace.c (ftrace_find_call): Skip gaps.
13036 (ftrace_new_function): Initialize level.
13037 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
13038 (ftrace_new_switch): Update
13039 level computation.
13040 (ftrace_new_gap): New.
13041 (ftrace_update_function): Create new function after gap.
13042 (btrace_compute_ftrace_bts): Create gap on error.
13043 (btrace_stitch_bts): Update parameters. Clear trace if it
13044 becomes empty.
13045 (btrace_stitch_trace): Update parameters. Update callers.
13046 (btrace_clear): Reset the number of gaps.
13047 (btrace_insn_get): Return NULL if the iterator points to a gap.
13048 (btrace_insn_number): Return zero if the iterator points to a gap.
13049 (btrace_insn_end): Allow gaps at the end.
13050 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
13051 (btrace_find_insn_by_number): Assert that the found iterator does
13052 not point to a gap.
13053 (btrace_call_next, btrace_call_prev): Assert that the last function
13054 is not a gap.
13055 * btrace.h (btrace_bts_error): New.
13056 (btrace_function): Update comment.
13057 (btrace_function) <insn, insn_offset, number>: Update comment.
13058 (btrace_function) <errcode>: New.
13059 (btrace_thread_info) <ngaps>: New.
13060 (btrace_thread_info) <replay>: Update comment.
13061 (btrace_insn_get): Update comment.
13062 * record-btrace.c (btrace_ui_out_decode_error): New.
13063 (record_btrace_info): Print number of gaps.
13064 (btrace_insn_history, btrace_call_history): Call
13065 btrace_ui_out_decode_error for gaps.
13066 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
13067
130682015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13069
13070 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
13071 * nat/linux-btrace.c: (btrace_this_cpu): New.
13072 (cpu_supports_bts): Call btrace_this_cpu.
13073 (intel_supports_bts): Add cpu parameter.
13074
130752015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13076
13077 * btrace.h (btrace_insn_class): New.
13078 (btrace_insn) <size, iclass>: New.
13079 * btrace.c (ftrace_find_call): Update parameters. Update users.
13080 Use instruction classification.
13081 (ftrace_new_return): Update parameters. Update users.
13082 (ftrace_update_function): Update parameters. Update users. Use
13083 instruction classification.
13084 (ftrace_update_insns): Update parameters. Update users.
13085 (ftrace_classify_insn): New.
13086 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
13087 TRY_CATCH around call to gdb_insn_length.
13088
130892015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13090
13091 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
13092 Update parameters. Update users.
13093
130942015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13095
13096 * btrace.c (parse_xml_btrace_conf_bts): Add size.
13097 (btrace_conf_bts_attributes): New.
13098 (btrace_conf_children): Add attributes.
13099 * common/btrace-common.h (btrace_config_bts): New.
13100 (btrace_config)<bts>: New.
13101 (btrace_config): Update comment.
13102 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
13103 Use config.
13104 * features/btrace-conf.dtd: Increment version. Add size
13105 attribute to bts element.
13106 * record-btrace.c (set_record_btrace_bts_cmdlist,
13107 show_record_btrace_bts_cmdlist): New.
13108 (record_btrace_adjust_size, record_btrace_print_bts_conf,
13109 record_btrace_print_conf, cmd_set_record_btrace_bts,
13110 cmd_show_record_btrace_bts): New.
13111 (record_btrace_info): Call record_btrace_print_conf.
13112 (_initialize_record_btrace): Add commands.
13113 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
13114 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
13115 (btrace_sync_conf): Synchronize bts size.
13116 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
13117 * NEWS: Announce new commands and new packets.
13118
131192015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13120
13121 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
13122 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
13123 (x86_linux_btrace_conf): New.
13124 (x86_linux_create_target): Initialize to_btrace_conf.
13125 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
13126 Check format. Split into this and ...
13127 (linux_enable_bts): ... this.
13128 (linux_btrace_conf): New.
13129 (perf_event_skip_record): Renamed into ...
13130 (perf_event_skip_bts_record): ... this. Updated users.
13131 (linux_disable_btrace): Split into this and ...
13132 (linux_disable_bts): ... this.
13133 (linux_read_btrace): Check format.
13134 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
13135 (linux_btrace_conf): New.
13136 (btrace_target_info)<ptid>: Moved.
13137 (btrace_target_info)<conf>: New.
13138 (btrace_target_info): Split into this and ...
13139 (btrace_tinfo_bts): ... this. Updated users.
13140 * btrace.c (btrace_enable): Update parameters.
13141 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
13142 (btrace_conf_children, btrace_conf_attributes)
13143 (btrace_conf_elements): New.
13144 * btrace.h (btrace_enable): Update parameters.
13145 (btrace_conf, parse_xml_btrace_conf): New.
13146 * common/btrace-common.h (btrace_config): New.
13147 * feature/btrace-conf.dtd: New.
13148 * record-btrace.c (record_btrace_conf): New.
13149 (record_btrace_cmdlist): New.
13150 (record_btrace_enable_warn, record_btrace_open): Pass
13151 &record_btrace_conf.
13152 (record_btrace_info): Print recording format.
13153 (cmd_record_btrace_bts_start): New.
13154 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
13155 (_initialize_record_btrace): Add "record btrace bts" subcommand.
13156 Add "record bts" alias command.
13157 * remote.c (remote_state)<btrace_config>: New.
13158 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
13159 (remote_protocol_features): Add qXfer:btrace-conf:read.
13160 (remote_open_1): Call remote_btrace_reset.
13161 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
13162 (btrace_target_info)<conf>: New.
13163 (btrace_sync_conf, btrace_read_config): New.
13164 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
13165 btrace_read_conf.
13166 (remote_btrace_conf): New.
13167 (init_remote_ops): Initialize to_btrace_conf.
13168 (_initialize_remote): Add qXfer:btrace-conf packet.
13169 * target.c (target_enable_btrace): Update parameters.
13170 (target_btrace_conf): New.
13171 * target.h (target_enable_btrace): Update parameters.
13172 (target_btrace_conf): New.
13173 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
13174 (target_ops)<to_enable_btrace>: Update parameters and comment.
13175 (target_ops)<to_btrace_conf>: New.
13176 * target-delegates: Regenerate.
13177 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
13178 (target_debug_print_const_struct_btrace_target_info_p): New.
13179 * NEWS: Announce new command and new packet.
13180
131812015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13182
13183 * nat/linux-btrace.h (perf_event_buffer): New.
13184 (btrace_target_info) <buffer, size, data_head>: Replace with ...
13185 <bts>: ... this.
13186 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
13187 (perf_event_buffer_size, perf_event_buffer_begin)
13188 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
13189 Updated users.
13190 (perf_event_new_data): New.
13191
131922015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13193
13194 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
13195 * record-btrace.c (record_btrace_open): Remove call to
13196 target_supports_btrace.
13197 * remote.c (remote_supports_btrace): Update parameters.
13198 * target.c (target_supports_btrace): Update parameters.
13199 * target.h (to_supports_btrace, target_supports_btrace): Update
13200 parameters.
13201 * target-delegates.c: Regenerate.
13202 * target-debug.h (target_debug_print_enum_btrace_format): New.
13203 * nat/linux-btrace.c
13204 (kernel_supports_btrace): Rename into ...
13205 (kernel_supports_bts): ... this. Update users. Update warning text.
13206 (intel_supports_btrace): Rename into ...
13207 (intel_supports_bts): ... this. Update users.
13208 (cpu_supports_btrace): Rename into ...
13209 (cpu_supports_bts): ... this. Update users.
13210 (linux_supports_btrace): Update parameters. Split into this and ...
13211 (linux_supports_bts): ... this.
13212 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
13213
132142015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13215
13216 * Makefile.in (SFILES): Add common/btrace-common.c.
13217 (COMMON_OBS): Add common/btrace-common.o.
13218 (btrace-common.o): Add build rules.
13219 * btrace.c (parse_xml_btrace): Update parameters.
13220 (parse_xml_btrace_block): Set format field.
13221 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
13222 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
13223 (btrace_compute_ftrace): Split into this and...
13224 (btrace_compute_ftrace_bts): ...this.
13225 (btrace_stitch_trace): Split into this and...
13226 (btrace_stitch_bts): ...this.
13227 * btrace.h (parse_xml_btrace): Update parameters.
13228 (make_cleanup_btrace_data): New.
13229 * common/btrace-common.c: New.
13230 * common/btrace-common.h: Include common-defs.h.
13231 (btrace_block_s): Update comment.
13232 (btrace_format): New.
13233 (btrace_format_string): New.
13234 (btrace_data_bts): New.
13235 (btrace_data): New.
13236 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
13237 * remote.c (remote_read_btrace): Update parameters.
13238 * target.c (target_read_btrace): Update parameters.
13239 * target.h (target_read_btrace): Update parameters.
13240 (target_ops)<to_read_btrace>: Update parameters.
13241 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
13242 * target-delegates.c: Regenerate.
13243 * target-debug (target_debug_print_struct_btrace_data_p): New.
13244 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
13245 (linux_read_bts): ...this.
13246 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
13247
132482015-02-06 Doug Evans <dje@google.com>
13249
13250 * remote-m32r-sdi.c: Include symfile.h.
13251
132522015-02-06 Doug Evans <dje@google.com>
13253
13254 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
13255 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
13256 to here.
13257
132582015-02-06 Pedro Alves <palves@redhat.com>
13259
13260 * linux-thread-db.c (find_new_threads_callback): Add debug output.
13261
132622015-02-06 Simon Marchi <simon.marchi@ericsson.com>
13263
13264 PR gdb/15678
13265 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
13266 (enable_count_command): Check args for NULL value.
13267
132682015-02-05 Doug Evans <xdje42@gmail.com>
13269
13270 * guile/scm-frame.c: Fix spelling errors in a comment.
13271
132722015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
13273
13274 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
13275 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
13276 return type.
13277
132782015-02-04 Pedro Alves <palves@redhat.com>
13279
13280 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
13281 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
13282 returns true.
13283 (resume_stopped_resumed_lwps): Don't check whether the thread is
13284 marked as executing.
13285 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
13286
132872015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13288
13289 * regset.h (struct regset): Add flags field.
13290 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
13291 * corelow.c (get_core_register_section): Add warning if the size
13292 exceeds the requested size and the regset does not have the
13293 REGSET_VARIABLE_SIZE flag set.
13294 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
13295 flag.
13296 * armbsd-tdep.c (armbsd_gregset): Likewise.
13297 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
13298 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
13299 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
13300 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
13301
133022015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13303
13304 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
13305 For ".reg-xstate", explicitly specify the requested section size
13306 via X86_XSTATE_SIZE instead of just 0 on input and
13307 X86_XSTATE_MAX_SIZE on output.
13308 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
13309 Likewise.
13310
133112015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13312
13313 PR corefiles/17808:
13314 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
13315 function type, particularly its SIZE parameter.
13316 * gdbarch.h: Regenerate.
13317 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
13318 actual against required size using ">=" instead of "==".
13319 (amd64_collect_fpregset): Likewise.
13320 * i386-tdep.c (i386_supply_gregset): Likewise.
13321 (i386_collect_gregset): Likewise.
13322 (i386_supply_fpregset): Likewise.
13323 (i386_collect_fpregset): Likewise.
13324 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
13325 (mips_fill_gregset_wrapper): Likewise.
13326 (mips_supply_fpregset_wrapper): Likewise.
13327 (mips_fill_fpregset_wrapper): Likewise.
13328 (mips64_supply_gregset_wrapper): Likewise.
13329 (mips64_fill_gregset_wrapper): Likewise.
13330 (mips64_supply_fpregset_wrapper): Likewise.
13331 (mips64_fill_fpregset_wrapper): Likewise.
13332 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
13333 (am33_supply_fpregset_method): Likewise.
13334 (am33_collect_gregset_method): Likewise.
13335 (am33_collect_fpregset_method): Likewise.
13336
133372015-02-04 Doug Evans <dje@google.com>
13338 Pedro Alves <palves@redhat.com>
13339 Eli Zaretskii <eliz@gnu.org>
13340
13341 PR tui/17810
13342 * tui/tui-command.c (tui_refresh_cmd_win): New function.
13343 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
13344 * tui/tui-file.c: #include tui/tui-command.h.
13345 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
13346 (tui_file_flush): Refresh command window if stream is gdb_stdout.
13347 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
13348
133492015-02-04 Pedro Alves <palves@redhat.com>
13350
13351 Fix build breakage.
13352 * event-loop.c (gdb_do_one_event): Add default switch case.
13353
133542015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
13355
13356 Filter out inferior gcc option -fpreprocessed.
13357 * compile/compile.c (filter_args): New function.
13358 (get_args): Use it.
13359
133602015-02-03 Pedro Alves <palves@redhat.com>
13361
13362 * event-loop.c: Don't declare nor define a queue type for
13363 gdb_event_p.
13364 (event_queue): Delete.
13365 (create_event, create_file_event, gdb_event_xfree)
13366 (initialize_event_loop, process_event): Delete.
13367 (gdb_do_one_event): Return as soon as one event is handled.
13368 (handle_file_event): Change prototype. Used the passed in
13369 file_handler pointer and ready_mask instead of looping over all
13370 file handlers.
13371 (gdb_wait_for_event): Update the poll/select timeouts before
13372 blocking. Run event handlers directly instead of queueing events.
13373 Return as soon as one event is handled.
13374 (struct async_event_handler_data): Delete.
13375 (invoke_async_event_handler): Delete.
13376 (check_async_event_handlers): Change return type to int. Run
13377 event handlers directly instead of queueing events. Return as
13378 soon as one event is handled.
13379 (handle_timer_event): Delete.
13380 (update_wait_timeout): New function, factored out from
13381 poll_timers.
13382 (poll_timers): Reimplement.
13383 * event-loop.h (initialize_event_loop): Delete declaration.
13384 * top.c (gdb_init): Don't call initialize_event_loop.
13385
133862015-02-03 Pedro Alves <palves@redhat.com>
13387
13388 * event-loop.c (clear_async_event_handler): New function.
13389 * event-loop.h (clear_async_event_handler): New declaration.
13390 * record-btrace.c (record_btrace_async): New function.
13391 (init_record_btrace_ops): Install record_btrace_async.
13392 * record-full.c (record_full_async): New function.
13393 (record_full_resume): Don't mark the async event source here.
13394 (init_record_full_ops): Install record_full_async.
13395 (record_full_core_resume): Don't mark the async event source here.
13396 (init_record_full_core_ops): Install record_full_async.
13397 * remote.c (remote_async): Mark and clear the async stop reply
13398 queue event-loop token as appropriate.
13399
134002015-02-03 Pedro Alves <palves@redhat.com>
13401
13402 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
13403 target_is_async_p instead of target_can_async.
13404 (linux_nat_wait): Use target_is_async_p instead of
13405 target_can_async. Don't enable async here.
13406 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
13407 target_is_async_p instead of target_can_async.
13408
134092015-02-02 Simon Marchi <simon.marchi@ericsson.com>
13410
13411 * varobj.h (lang_varobj_ops): Mention which return values need
13412 to be freed.
13413
134142015-02-02 Joel Brobecker <brobecker@adacore.com>
13415
13416 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
13417
134182015-02-02 Joel Brobecker <brobecker@adacore.com>
13419
13420 PR gdb/17856:
13421 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
13422 results found in the cache.
13423
134242015-02-02 Joel Brobecker <brobecker@adacore.com>
13425
13426 PR gdb/17854:
13427 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
13428 when allocating a new one.
13429
134302015-02-01 Tom Tromey <tom@tromey.com>
13431
13432 * MAINTAINERS: Remove myself.
13433
134342015-01-31 Doug Evans <xdje42@gmail.com>
13435
13436 * dwarf2read.c (process_structure_scope): Update setting of
13437 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
13438 * gdbtypes.c (internal_type_vptr_fieldno): New function.
13439 (set_type_vptr_fieldno): New function.
13440 (internal_type_vptr_basetype): New function.
13441 (set_type_vptr_basetype): New function.
13442 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
13443 TYPE_VPTR_BASETYPE.
13444 (allocate_cplus_struct_type): Initialize vptr_fieldno.
13445 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
13446 (print_cplus_stuff): ... moved here.
13447 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
13448 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
13449 moved to ...
13450 (struct cplus_struct_type): ... here. All uses updated.
13451 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
13452 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
13453 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
13454 * stabsread.c (read_tilde_fields): Update setting of
13455 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
13456
134572015-01-31 Doug Evans <xdje42@gmail.com>
13458
13459 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
13460 to self_p.
13461 (cp_print_class_member): Rename local domain to self_type.
13462 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
13463 domain_type to self_type.
13464 (set_die_type) <need_gnat_info>: Handle
13465 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
13466 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
13467 TYPE_SPECIFIC_SELF_TYPE.
13468 * gdbtypes.c (internal_type_self_type): New function.
13469 (set_type_self_type): New function.
13470 (smash_to_memberptr_type): Rename parameter domain to self_type.
13471 Update setting of TYPE_SELF_TYPE.
13472 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
13473 (smash_to_method_type): Rename parameter domain to self_type.
13474 Update setting of TYPE_SELF_TYPE.
13475 (check_stub_method): Call smash_to_method_type.
13476 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
13477 (copy_type_recursive): Ditto.
13478 * gdbtypes.h (enum type_specific_kind): New value
13479 TYPE_SPECIFIC_SELF_TYPE.
13480 (struct main_type) <type_specific>: New member self_type.
13481 (struct cplus_struct_type) <fn_field.type>: Update comment.
13482 (TYPE_SELF_TYPE): Rewrite.
13483 (internal_type_self_type, set_type_self_type): Declare.
13484 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
13485 self_type.
13486 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
13487 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
13488 TYPE_TARGET_TYPE.
13489 * stabsread.c (read_member_functions): Mark methods with
13490 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
13491 TYPE_SELF_TYPE.
13492
134932015-01-31 Doug Evans <xdje42@gmail.com>
13494
13495 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
13496 All uses updated.
13497
134982015-01-31 Doug Evans <xdje42@gmail.com>
13499
13500 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
13501 or unions. Return zero if union.
13502 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
13503 (gnuv3_rtti_type): Pass already-check_typedef'd value to
13504 gnuv3_get_vtable.
13505 (compute_vtable_size): Assert only passed structs.
13506 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
13507
135082015-01-31 Doug Evans <xdje42@gmail.com>
13509
13510 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
13511 kinds.
13512
135132015-01-31 Gary Benson <gbenson@redhat.com>
13514 Doug Evans <dje@google.com>
13515
13516 PR cli/9007
13517 PR cli/11920
13518 PR cli/15548
13519 * cli/cli-cmds.c (complete_command): Notify user if max-completions
13520 reached.
13521 * common/common-exceptions.h (enum errors)
13522 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
13523 * completer.h (get_max_completions_reached_message): New declaration.
13524 (max_completions): Likewise.
13525 (completion_tracker_t): New typedef.
13526 (new_completion_tracker): New declaration.
13527 (make_cleanup_free_completion_tracker): Likewise.
13528 (maybe_add_completion_enum): New enum.
13529 (maybe_add_completion): New declaration.
13530 (throw_max_completions_reached_error): Likewise.
13531 * completer.c (max_completions): New global variable.
13532 (new_completion_tracker): New function.
13533 (free_completion_tracker): Likewise.
13534 (make_cleanup_free_completion_tracker): Likewise.
13535 (maybe_add_completions): Likewise.
13536 (throw_max_completions_reached_error): Likewise.
13537 (complete_line): Remove duplicates and limit result to max_completions
13538 entries.
13539 (get_max_completions_reached_message): New function.
13540 (gdb_display_match_list): Handle max_completions.
13541 (_initialize_completer): New declaration and function.
13542 * symtab.c: Include completer.h.
13543 (completion_tracker): New static variable.
13544 (completion_list_add_name): Call maybe_add_completion.
13545 (default_make_symbol_completion_list_break_on_1): Renamed from
13546 default_make_symbol_completion_list_break_on. Maintain
13547 completion_tracker across calls to completion_list_add_name.
13548 (default_make_symbol_completion_list_break_on): New function.
13549 * top.c (init_main): Set rl_completion_display_matches_hook.
13550 * tui/tui-io.c: Include completer.h.
13551 (tui_old_rl_display_matches_hook): New static global.
13552 (tui_rl_display_match_list): Notify user if max-completions reached.
13553 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
13554 * NEWS (New Options): Mention set/show max-completions.
13555
135562015-01-31 Gary Benson <gbenson@redhat.com>
13557
13558 * symtab.c (struct add_name_data) <code>: New field.
13559 Updated comments.
13560 (add_symtab_completions): New function.
13561 (symtab_expansion_callback): Likewise.
13562 (default_make_symbol_completion_list_break_on): Set datum.code.
13563 Move minimal symbol scan before calling expand_symtabs_matching.
13564 Scan known primary symtabs for externs and statics before calling
13565 expand_symtabs_matching. Pass symtab_expansion_callback as
13566 expansion_notify argument to expand_symtabs_matching. Do not scan
13567 primary symtabs for externs and statics after calling
13568 expand_symtabs_matching.
13569
135702015-01-31 Gary Benson <gbenson@redhat.com>
13571
13572 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
13573 (struct quick_symbol_functions) <expand_symtabs_matching>:
13574 New argument expansion_notify. All uses updated.
13575 (expand_symtabs_matching): New argument expansion_notify.
13576 All uses updated.
13577 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13578 Also print expansion notify.
13579 * symtab.c (expand_symtabs_matching_via_partial): Call
13580 expansion_notify whenever a partial symbol table is expanded.
13581 * dwarf2read.c (dw2_expand_symtabs_matching): Call
13582 expansion_notify whenever a symbol table is instantiated.
13583
135842015-01-31 Doug Evans <xdje42@gmail.com>
13585
13586 * cli-out.c: #include completer.h, readline/readline.h.
13587 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
13588 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
13589 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
13590 * cli-out.h (cli_display_match_list): Declare.
13591 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
13592 (ELLIPSIS_LEN): Ditto.
13593 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
13594 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
13595 (gdb_fnprint, gdb_print_filename): Ditto.
13596 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
13597 (gdb_display_match_list): Ditto.
13598 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
13599 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
13600 (mld_beep_ftype, mld_read_key_ftype): Ditto.
13601 (match_list_displayer): New struct.
13602 (gdb_display_match_list): Declare.
13603 * top.c (init_main): Set rl_completion_display_matches_hook.
13604 * tui/tui-io.c: #include completer.h.
13605 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
13606 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
13607 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
13608 (tui_mld_getc, tui_mld_read_key): Ditto.
13609 (tui_rl_display_match_list): Rewrite.
13610 (tui_handle_resize_during_io): New arg for_completion. All callers
13611 updated.
13612
136132015-01-31 Doug Evans <xdje42@gmail.com>
13614
13615 Add symbol lookup cache.
13616 * NEWS: Document new options and commands.
13617 * symtab.c (symbol_cache_key): New static global.
13618 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
13619 (SYMBOL_LOOKUP_FAILED): New macro.
13620 (symbol_cache_slot_state): New enum.
13621 (block_symbol_cache): New struct.
13622 (symbol_cache): New struct.
13623 (new_symbol_cache_size, symbol_cache_size): New static globals.
13624 (hash_symbol_entry, eq_symbol_entry): New functions.
13625 (symbol_cache_byte_size, resize_symbol_cache): New functions.
13626 (make_symbol_cache, free_symbol_cache): New functions.
13627 (get_symbol_cache, symbol_cache_cleanup): New function.
13628 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
13629 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
13630 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
13631 (symbol_cache_flush, symbol_cache_dump): New functions.
13632 (maintenance_print_symbol_cache): New function.
13633 (maintenance_flush_symbol_cache): New function.
13634 (symbol_cache_stats): New function.
13635 (maintenance_print_symbol_cache_statistics): New function.
13636 (symtab_new_objfile_observer): New function.
13637 (symtab_free_objfile_observer): New function.
13638 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
13639 (_initialize_symtab): Init symbol_cache_key. New parameter
13640 maint symbol-cache-size. New maint commands print symbol-cache,
13641 print symbol-cache-statistics, flush-symbol-cache.
13642 Install new_objfile, free_objfile observers.
13643
136442015-01-31 Joel Brobecker <brobecker@adacore.com>
13645
13646 PR symtab/17855
13647 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
13648 to end.
13649
136502015-01-31 Doug Evans <xdje42@gmail.com>
13651
13652 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
13653 * auto-load.c: #include ctype.h.
13654 (struct auto_load_pspace_info): Replace member loaded_scripts with
13655 new members loaded_script_files, loaded_script_texts.
13656 (auto_load_pspace_data_cleanup): Update.
13657 (init_loaded_scripts_info): Update.
13658 (get_auto_load_pspace_data_for_loading): Update.
13659 (maybe_add_script_file): Renamed from maybe_add_script. All callers
13660 updated.
13661 (maybe_add_script_text): New function.
13662 (clear_section_scripts): Update.
13663 (source_script_file, execute_script_contents): New functions.
13664 (source_section_scripts): Add support for
13665 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
13666 (print_scripts): New function.
13667 (auto_load_info_scripts): Also print inlined scripts.
13668 (maybe_print_unsupported_script_warning): Renamed from
13669 unsupported_script_warning_print. All callers updated.
13670 (maybe_print_script_not_found_warning): Renamed from
13671 script_not_found_warning_print. All callers updated.
13672 * extension-priv.h (struct extension_language_script_ops): New member
13673 objfile_script_executor.
13674 * extension.c (ext_lang_objfile_script_executor): New function.
13675 * extension.h (objfile_script_executor_func): New typedef.
13676 (ext_lang_objfile_script_executor): Declare.
13677 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
13678 * guile/guile.c (guile_extension_script_ops): Update.
13679 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
13680 * python/python.c (python_extension_script_ops): Update.
13681 (gdbpy_execute_objfile_script): New function.
13682
136832015-01-31 Eli Zaretskii <eliz@gnu.org>
13684
13685 * tui/tui-io.c (tui_expand_tabs): New function.
13686 (tui_puts, tui_redisplay_readline): Expand TABs into the
13687 appropriate number of spaces.
13688 * tui/tui-regs.c: Include tui-io.h.
13689 (tui_register_format): Call tui_expand_tabs to expand TABs into
13690 the appropriate number of spaces.
13691 * tui/tui-io.h: Add prototype for tui_expand_tabs.
13692
136932015-01-30 Doug Evans <dje@google.com>
13694
13695 * NEWS: "info source" command now display producer string if present.
13696 * source.c (source_info): Print producer string if present.
13697
136982015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13699
13700 * varobj.c (varobj_delete): Fix comment.
13701
137022015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13703
13704 * varobj.c (create_child): Modify comment.
13705
137062015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13707
13708 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
13709 parameter.
13710 (ada_name_of_variable): Same.
13711 (ada_path_expr_of_child): Same.
13712 (ada_value_of_variable): Same.
13713 (ada_value_is_changeable_p): Same.
13714 (ada_value_has_mutated): Same.
13715 * c-varobj.c (varobj_is_anonymous_child): Same.
13716 (c_is_path_expr_parent): Same.
13717 (c_number_of_children): Same.
13718 (c_name_of_variable): Same.
13719 (c_path_expr_of_child): Same.
13720 (get_type): Same.
13721 (c_value_of_variable): Same.
13722 (cplus_number_of_children): Same.
13723 (cplus_name_of_variable): Same.
13724 (cplus_path_expr_of_child): Same.
13725 (cplus_value_of_variable): Same.
13726 * jv-varobj.c (java_number_of_children): Same.
13727 (java_name_of_variable): Same.
13728 (java_path_expr_of_child): Same.
13729 (java_value_of_variable): Same.
13730 * varobj.c (number_of_children): Same.
13731 (name_of_variable): Same.
13732 (is_root_p): Same.
13733 (varobj_ensure_python_env): Same.
13734 (varobj_get_objname): Same.
13735 (varobj_get_expression): Same.
13736 (varobj_get_display_format): Same.
13737 (varobj_get_display_hint): Same.
13738 (varobj_has_more): Same.
13739 (varobj_get_thread_id): Same.
13740 (varobj_get_frozen): Same.
13741 (dynamic_varobj_has_child_method): Same.
13742 (varobj_get_gdb_type): Same.
13743 (is_path_expr_parent): Same.
13744 (varobj_default_is_path_expr_parent): Same.
13745 (varobj_get_language): Same.
13746 (varobj_get_attributes): Same.
13747 (varobj_is_dynamic_p): Same.
13748 (varobj_get_child_range): Same.
13749 (varobj_value_has_mutated): Same.
13750 (varobj_get_value_type): Same.
13751 (number_of_children): Same.
13752 (name_of_variable): Same.
13753 (check_scope): Same.
13754 (varobj_editable_p): Same.
13755 (varobj_value_is_changeable_p): Same.
13756 (varobj_floating_p): Same.
13757 (varobj_default_value_is_changeable_p): Same.
13758
137592015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13760
13761 * varobj.c (varobj_get_path_expr): Set var->path_expr.
13762 * c-varobj.c (c_path_expr_of_child): Set local var instead of
13763 child->path_expr.
13764 (cplus_path_expr_of_child): Same.
13765
137662015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13767
13768 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
13769 result.
13770 (mi_cmd_var_info_expression): Same.
13771 * varobj.c (varobj_get_expression): Mention in the comment that
13772 the result must by freed by the caller.
13773
137742015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13775
13776 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
13777 varobj_get_type.
13778 (varobj_update_one): Same.
13779 * varobj.c (update_type_if_necessary): Free curr_type_str and
13780 new_type_str.
13781 (varobj_get_type): Specify in comment that the result needs to be
13782 freed by the caller.
13783
137842015-01-29 Doug Evans <dje@google.com>
13785
13786 PR symtab/17890
13787 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
13788
137892015-01-25 Mark Wielaard <mjw@redhat.com>
13790
13791 * dwarf2read.c (checkproducer): Call producer_is_gcc.
13792 * utils.c (producer_is_gcc_ge_4): Likewise.
13793 (producer_is_gcc): New function.
13794 * utils.h (producer_is_gcc): New declaration.
13795
137962015-01-29 Joel Brobecker <brobecker@adacore.com>
13797
13798 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
13799 kind.
13800 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
13801 parameter by "addr_stack" parameter.
13802 (resolve_dynamic_range): Replace "addr" parameter by
13803 "stack_addr" parameter. Update function documentation.
13804 Update code accordingly.
13805 (resolve_dynamic_array, resolve_dynamic_union)
13806 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
13807 (resolve_dynamic_type): Update code, following the changes made
13808 to resolve_dynamic_type_internal's interface.
13809 * dwarf2loc.h (struct property_addr_info): New.
13810 (dwarf2_evaluate_property): Replace "address" parameter
13811 by "addr_stack" parameter. Adjust function documentation.
13812 (struct dwarf2_offset_baton): New.
13813 (struct dwarf2_property_baton): Update documentation of
13814 field "referenced_type" to be more general. New field
13815 "offset_info" in union data field.
13816 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
13817 parameter by "addr_stack" parameter. Adjust code accordingly.
13818 Add support for PROP_ADDR_OFFSET properties.
13819 * dwarf2read.c (attr_to_dynamic_prop): Add support for
13820 DW_AT_data_member_location attributes as well. Use case
13821 statements instead of if/else condition.
13822
138232015-01-29 Joel Brobecker <brobecker@adacore.com>
13824
13825 * ada-varobj.c (ada_varobj_get_array_number_of_children):
13826 Return zero if PARENT_VALUE is NULL and parent_type's
13827 range type is dynamic.
13828
138292015-01-29 Joel Brobecker <brobecker@adacore.com>
13830
13831 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
13832 nonzero if the type's subtype is dynamic.
13833 (resolve_dynamic_range): Also resolve the range's subtype.
13834
138352015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
13836
13837 Pushed by Joel Brobecker <brobecker@adacore.com>.
13838 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
13839
138402015-01-27 Doug Evans <dje@google.com>
13841
13842 * NEWS: Mention gdb.Objfile.username.
13843 * python/py-objfile.c (objfpy_get_username): New function.
13844 (objfile_getset): Add "username".
13845
138462015-01-24 Mark Wielaard <mjw@redhat.com>
13847
13848 * stack.c (return_command): Markup warning message with _.
13849
138502015-01-24 Doug Evans <xdje42@gmail.com>
13851
13852 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
13853
138542015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13855
13856 Fix 100x slowdown regression on DWZ files.
13857 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
13858 (struct line_header): Add offset and offset_in_dwz.
13859 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
13860 (free_line_header_voidp): New declaration.
13861 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
13862 functions.
13863 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
13864 (handle_DW_AT_stmt_list): Use line_header_hash.
13865 (free_line_header_voidp): New function.
13866 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
13867 (dwarf_decode_lines): New parameter decode_mapping, use it.
13868 (dwarf2_free_objfile): Free line_header_hash.
13869
138702015-01-23 Simon Marchi <simon.marchi@ericsson.com>
13871
13872 PR gdb/17416
13873 * valops.c (value_rtti_indirect_type): Catch exception thrown by
13874 value_ind.
13875
138762015-01-15 Mark Wielaard <mjw@redhat.com>
13877
13878 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
13879 DW_AT_noreturn.
13880 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
13881 calling_convention an 8 bit bit field.
13882 (TYPE_NO_RETURN): New macro.
13883 * infcmd.c (finish_command): Query if function does not return
13884 normally.
13885 * stack.c (return_command): Likewise.
13886
138872015-01-23 Pedro Alves <palves@redhat.com>
13888
13889 * linux-nat.c (linux_is_async_p): New macro.
13890 (linux_nat_is_async_p):
13891 (linux_nat_terminal_inferior): Check whether the target can async
13892 instead of whether it is already async.
13893 (linux_nat_terminal_ours): Don't check whether the target is
13894 async.
13895 (linux_async_pipe): Use linux_is_async_p.
13896
138972015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13898
13899 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
13900 '-ascending'.
13901 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
13902 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
13903 Sort tp_array using tp_array_compar.
13904 (_initialize_thread): Extend thread_apply_all_command help.
13905
139062015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13907
13908 * corelow.c (core_open): Call also thread_command.
13909 * gdbthread.h (thread_command): New prototype moved from ...
13910 * thread.c (thread_command): ... here.
13911 (thread_command): Make it global.
13912
139132015-01-22 Pedro Alves <palves@redhat.com>
13914
13915 * configure.ac [*mingw32*]: Check $curses_found instead of
13916 $prefer_curses.
13917 * configure: Regenerate.
13918 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
13919 HAVE_NCURSES_NCURSES_H checks.
13920
139212015-01-22 Eli Zaretskii <eliz@gnu.org>
13922
13923 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
13924 fails with the 1st arg NULL, try again with "unknown". Don't test
13925 the "cup" capability: it isn't supported by the Windows port of
13926 ncurses, but the Windows console driver is still capable of
13927 supporting TUI.
13928
139292015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13930
13931 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
13932
139332015-01-22 Eli Zaretskii <eliz@gnu.org>
13934
13935 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
13936 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
13937 reason that "make TAGS" is broken.
13938
139392015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
13940
13941 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
13942 and check additional store instructions.
13943
139442015-01-21 Wei-cheng Wang <cole945@gmail.com>
13945
13946 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
13947
139482015-01-21 Wei-cheng Wang <cole945@gmail.com>
13949
13950 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13951 ppc_canonicalize_syscall, ppc_linux_syscall_record,
13952 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
13953 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13954 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
13955 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
13956 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
13957 ppc_process_record_op19, ppc_process_record_op31,
13958 ppc_process_record_op59, ppc_process_record_op60,
13959 ppc_process_record_op63): Likewise.
13960
139612015-01-20 Joel Brobecker <brobecker@adacore.com>
13962
13963 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
13964 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
13965 strerror.
13966
139672015-01-20 Wei-cheng Wang <cole945@gmail.com>
13968
13969 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
13970 ppc_process_record_op31, ppc_process_record_op59,
13971 ppc_process_record_op60, ppc_process_record_op63,
13972 ppc_process_record): Fix -Wformat warning.
13973 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
13974 Remove unused variables.
13975
139762015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
13977
13978 * MAINTAINERS (Write After Approval): Add "Chen Gang".
13979
139802015-01-19 Eli Zaretskii <eliz@gnu.org>
13981
13982 * configure.ac [*mingw32*]: Only add windows-termcap.o to
13983 CONFIG_OBS if not building with a curses library.
13984 * configure: Regenerate.
13985
13986 * windows-termcap.c: Include defs.h. Make the whole body empty if
13987 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
13988 HAVE_NCURSES_NCURSES_H is defined.
13989
139902015-01-19 Joel Brobecker <brobecker@adacore.com>
13991
13992 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
13993 from end of line to start of next line.
13994
139952015-01-17 Wei-cheng Wang <cole945@gmail.com>
13996
13997 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
13998 Scan PLT stub backward for reverse debugging.
13999 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
14000
140012015-01-17 Wei-cheng Wang <cole945@gmail.com>
14002 Ulrich Weigand <uweigand@de.ibm.com>
14003
14004 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
14005 gdb_target_obs.
14006 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
14007 record.
14008 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
14009 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
14010 (ppc_linux_init_abi): Set process_record, process_record_signal.
14011 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
14012 ppc_linux_record_tdep to gdbarch_tdep.
14013 (ppc_process_record): New declaration.
14014 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
14015 ppc_process_record_op19, ppc_process_record_op31,
14016 ppc_process_record_op59, ppc_process_record_op60,
14017 ppc_process_record_op63, ppc_process_record): New functions.
14018
140192015-01-17 Wei-cheng Wang <cole945@gmail.com>
14020
14021 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
14022 rs6000_in_function_epilogue_frame_p and add an argument
14023 for frame_info.
14024 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
14025 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
14026 New functions.
14027 (rs6000_epilogue_frame_unwind): New.
14028 (rs6000_gdbarch_init): Append epilogue unwinder.
14029
140302015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
14031
14032 * nat/linux-personality.c: Replace "#ifndef
14033 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
14034 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
14035 systems.
14036
140372015-01-16 Eli Zaretskii <eliz@gnu.org>
14038
14039 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
14040 functions.
14041 (_initialize_tui_win) <border-kind, border-mode>:
14042 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
14043 (tui_set_tab_width_command): Fix the commentary.
14044
14045 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
14046
14047 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
14048 Doc fix.
14049 (tui_set_tab_width_command): Delete and recreate the source and
14050 the disassembly windows, to show the effect of the changed tab
14051 size immediately.
14052
14053 * tui/tui-data.h (LINE_PREFIX): Make shorter
14054 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
14055 "Thread NNNNN.XXXX" thread ID notation on Windows.
14056
140572015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14058
14059 Fix gcc-5 compilation.
14060 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
14061
140622015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
14063
14064 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
14065 (linux-personality.o): New rule.
14066 * common/common-defs.h: Include <stdint.h>.
14067 * config/aarch64/linux.mh (NATDEPFILES): Include
14068 linux-personality.o.
14069 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
14070 * config/arm/linux.mh (NATDEPFILES): Likewise.
14071 * config/i386/linux64.mh (NATDEPFILES): Likewise.
14072 * config/i386/linux.mh (NATDEPFILES): Likewise.
14073 * config/ia64/linux.mh (NATDEPFILES): Likewise.
14074 * config/m32r/linux.mh (NATDEPFILES): Likewise.
14075 * config/m68k/linux.mh (NATDEPFILES): Likewise.
14076 * config/mips/linux.mh (NATDEPFILES): Likewise.
14077 * config/pa/linux.mh (NATDEPFILES): Likewise.
14078 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
14079 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
14080 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
14081 * config/s390/linux.mh (NATDEPFILES): Likewise.
14082 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
14083 * config/sparc/linux.mh (NATDEPFILES): Likewise.
14084 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
14085 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
14086 * defs.h: Remove #include <stdint.h> (moved to
14087 common/common-defs.h).
14088 * linux-nat.c: Include nat/linux-personality.h. Remove #include
14089 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
14090 nat/linux-personality.c).
14091 (linux_nat_create_inferior): Remove code to disable address space
14092 randomization (moved to nat/linux-personality.c). Create cleanup
14093 to disable address space randomization.
14094 * nat/linux-personality.c: New file.
14095 * nat/linux-personality.h: Likewise.
14096
140972015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
14098
14099 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
14100 common/posix-strerror.c.
14101 (posix-strerror.o): New rule.
14102 (mingw-strerror.o): Likewise.
14103 * common/common-utils.h (safe_strerror): Move prototype to here,
14104 from utils.h.
14105 * common/common.host: New file.
14106 * common/mingw-strerror.c: Likewise.
14107 * common/posix-strerror.c: Likewise.
14108 * configure: Regenerated.
14109 * configure.ac: Source common/common.host. Add variable
14110 common_host_obs to gdb_host_obs.
14111 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
14112 gdb/common/posix-strerror.c when warning about the use of
14113 strerror.
14114 * mingw-hdep.c (safe_strerror): Remove definition; move it to
14115 common/mingw-strerror.c.
14116 * posix-hdep.c (safe_strerror): Remove definition; move it to
14117 common/posix-hdep.c.
14118 * utils.h (safe_strerror): Remove prototype; move to
14119 common/common-utils.h.
14120
141212015-01-15 Joel Brobecker <brobecker@adacore.com>
14122
14123 GDB 7.8.2 released.
14124
141252015-01-15 Joel Brobecker <brobecker@adacore.com>
14126
14127 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
14128 ___XA type if the array has already been fixed.
14129
141302015-01-14 Yao Qi <yao@codesourcery.com>
14131
14132 * Makefile.in (ppc-linux.o): New rule.
14133 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
14134 * configure.ac: AC_CHECK_FUNCS(getauxval).
14135 * config.in: Re-generated.
14136 * configure: Re-generated.
14137 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
14138 Declare.
14139 * nat/ppc-linux.c: New file.
14140 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
14141 Call ppc64_64bit_inferior_p.
14142
141432015-01-14 Yao Qi <yao@codesourcery.com>
14144
14145 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
14146 nat/ppc-linux.h.
14147 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
14148 (PPC_FEATURE_HAS_DFP): Likewise.
14149 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
14150 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
14151 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
14152 Include "nat/ppc-linux.h".
14153 * nat/ppc-linux.h: New file.
14154 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
14155
141562015-01-14 Pedro Alves <palves@redhat.com>
14157
14158 PR gdb/17525
14159 * breakpoint.c: Include "interps.h".
14160 (bpstat_do_actions_1): Also check whether the interpreter is
14161 async.
14162
141632015-01-14 Pedro Alves <palves@redhat.com>
14164
14165 PR cli/17828
14166 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
14167 reinstall if the interpreter is sync.
14168
141692015-01-13 Doug Evans <dje@google.com>
14170
14171 * objfiles.c (objfile_filename): New function.
14172 * objfiles.h (objfile_filename): Declare it.
14173 (objfile_name): Add function comment.
14174 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
14175 bfd file name (which may be realpath'd), and the original name.
14176
141772015-01-13 Joel Brobecker <brobecker@adacore.com>
14178
14179 * NEWS: Create a new section for the next release branch.
14180 Rename the section of the current branch, now that it has
14181 been cut.
14182
141832015-01-13 Joel Brobecker <brobecker@adacore.com>
14184
14185 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
14186 * version.in: Bump version to 7.9.50.DATE-cvs.
14187
141882015-01-13 Joel Brobecker <brobecker@adacore.com>
14189
14190 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
14191 Remove trailing new-line in argument of call to warning.
14192
141932015-01-13 Joel Brobecker <brobecker@adacore.com>
14194
14195 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
14196 new-line in argument of call to "warning".
14197
141982015-01-13 Joel Brobecker <brobecker@adacore.com>
14199
14200 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
14201 in static block, then try searching for primitive types.
14202
142032015-01-12 Patrick Palka <patrick@parcs.ath.cx>
14204
14205 * top.h (gdb_add_history): Declare.
14206 * top.c (command_count): New variable.
14207 (gdb_add_history): New function.
14208 (gdb_safe_append_history): New static function.
14209 (quit_force): Call it.
14210 (command_line_input): Use gdb_add_history instead of
14211 add_history.
14212 * event-top.c (command_line_handler): Likewise.
14213
142142015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
14215
14216 PR gdb/17046
14217 * darwin-nat.c: Replace <machine/setjmp.h> #include by
14218 <setjmp.h> #include.
14219
142202015-01-11 Doug Evans <xdje42@gmail.com>
14221
14222 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
14223
142242015-01-11 Doug Evans <xdje42@gmail.com>
14225
14226 PR gdb/15830
14227 * NEWS: The "maint demangle" command is renamed as "demangle".
14228 * demangle.c: #include cli/cli-utils.h, language.h.
14229 (demangle_command): New function.
14230 (_initialize_demangle): Add new command "demangle".
14231 * maint.c (maintenance_demangle): Stub out.
14232 (_initialize_maint_cmds): Update help text for "maint demangle",
14233 and mark as deprecated.
14234
142352015-01-11 Mark Kettenis <kettenis@gnu.org>
14236
14237 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
14238 inferior_thread is a function.
14239
142402015-01-09 Patrick Palka <patrick@parcs.ath.cx>
14241
14242 * Makefile.in (.y.c): Don't munge yacc's #line
14243 directives.
14244
142452015-01-09 Patrick Palka <patrick@parcs.ath.cx>
14246
14247 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
14248 to prompt for input.
14249 * tui/tui-hooks.c (tui_query_hook): Remove.
14250 (tui_install_hooks): Don't set deprecated_query_hook.
14251 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
14252 height calculation. Always update the command window's cur_line.
14253
142542015-01-09 Pedro Alves <palves@redhat.com>
14255
14256 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
14257 function.
14258 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
14259 declaration.
14260 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
14261 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
14262 stop_reason.
14263 (check_stopped_by_watchpoint): New function.
14264 (save_sigtrap): Reimplement.
14265 (linux_nat_stopped_by_watchpoint): Adjust.
14266 (linux_nat_lp_status_is_event): Delete.
14267 (stop_wait_callback): Only call save_sigtrap after storing the
14268 pending status.
14269 (status_callback): If the thread had been stopped for a breakpoint
14270 that has since been removed, discard the event and resume the LWP.
14271 (count_events_callback, select_event_lwp_callback): Use
14272 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
14273 (cancel_breakpoint): Rename to ...
14274 (check_stopped_by_breakpoint): ... this. Record whether the LWP
14275 stopped for a software breakpoint or hardware breakpoint.
14276 (select_event_lwp): Only give preference to the stepping LWP in
14277 all-stop mode. Adjust comments.
14278 (stop_and_resume_callback): Remove references to new_pending_p.
14279 (linux_nat_filter_event): Likewise. Leave exit events of the
14280 leader thread pending here. Handle signal short circuiting here.
14281 Only call save_sigtrap after storing the pending waitstatus.
14282 (linux_nat_wait_1): Remove 'retry' label. Remove references to
14283 new_pending. Don't handle leaving events the caller is not
14284 interested in pending here, nor handle signal short-circuiting
14285 here. Also give equal priority to all LWPs that have had events
14286 in non-stop mode. If reporting a software breakpoint event,
14287 unadjust the LWP's PC.
14288 * linux-nat.h (enum lwp_stop_reason): New.
14289 (struct lwp_info) <stop_pc>: New field.
14290 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
14291 (struct lwp_info) <stop_reason>: New field.
14292 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
14293
142942015-01-09 Pedro Alves <palves@redhat.com>
14295
14296 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
14297 Set the LWP's 'resumed' flag.
14298
142992015-01-09 Pedro Alves <palves@redhat.com>
14300
14301 * linux-nat.c (linux_resume_one_lwp): New function.
14302 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
14303 (linux_nat_resume): Use lwp_status_pending_p and
14304 linux_resume_one_lwp.
14305 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
14306 (linux_handle_extended_wait): Use linux_resume_one_lwp.
14307 (status_callback, running_callback): Use lwp_status_pending_p.
14308 (lwp_status_pending_p): New function.
14309 (stop_and_resume_callback): Use lwp_status_pending_p.
14310 (linux_nat_filter_event): Use linux_resume_one_lwp.
14311 (linux_nat_wait_1): Always use status_callback to look for an LWP
14312 with a pending status. Use linux_resume_one_lwp.
14313 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
14314 linux_resume_one_lwp.
14315
143162015-01-09 Pedro Alves <palves@redhat.com>
14317
14318 * breakpoint.c (bp_location_inserted_here_p): New function,
14319 factored out from ...
14320 (breakpoint_inserted_here_p): ... here. Use
14321 ALL_BP_LOCATIONS_AT_ADDR.
14322 (software_breakpoint_inserted_here_p): Use
14323 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
14324
143252014-01-09 Pedro Alves <palves@redhat.com>
14326
14327 Skip enabling event reporting if the kernel supports
14328 PTRACE_EVENT_CLONE.
14329 * linux-thread-db.c: Include "nat/linux-ptrace.h".
14330 (thread_db_use_events): New function.
14331 (try_thread_db_load_1): Check thread_db_use_events before enabling
14332 event reporting.
14333 (update_thread_state): New function.
14334 (attach_thread): Use it. Check thread_db_use_events before
14335 enabling event reporting.
14336 (thread_db_detach): Check thread_db_use_events before disabling
14337 event reporting.
14338 (find_new_threads_callback): Check thread_db_use_events before
14339 enabling event reporting. Update the thread's state if not using
14340 libthread_db events.
14341
143422015-01-09 Pedro Alves <palves@redhat.com>
14343
14344 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
14345 about to wait for is > 0.
14346 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
14347 the kernel thread ID is -1.
14348
143492015-01-09 Pedro Alves <palves@redhat.com>
14350
14351 * linux-nat.c (attach_proc_task_lwp_callback): New function.
14352 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
14353 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
14354 ptrace option flags.
14355 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
14356 field.
14357 * nat/linux-procfs.c: Include <dirent.h>.
14358 (linux_proc_get_int): New parameter "warn". Handle it.
14359 (linux_proc_get_tgid): Adjust.
14360 (linux_proc_get_tracerpid): Rename to ...
14361 (linux_proc_get_tracerpid_nowarn): ... this.
14362 (linux_proc_pid_get_state): New function, factored out from
14363 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
14364 and handle it.
14365 (linux_proc_pid_is_gone): New function.
14366 (linux_proc_pid_is_stopped): Adjust.
14367 (linux_proc_pid_is_zombie_maybe_warn)
14368 (linux_proc_pid_is_zombie_nowarn): New functions.
14369 (linux_proc_pid_is_zombie): Use
14370 linux_proc_pid_is_zombie_maybe_warn.
14371 (linux_proc_attach_tgid_threads): New function.
14372 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
14373 (linux_proc_get_tracerpid): Rename to ...
14374 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
14375 (linux_proc_pid_is_gone): New declaration.
14376 (linux_proc_pid_is_zombie): Update comment.
14377 (linux_proc_pid_is_zombie_nowarn): New declaration.
14378 (linux_proc_attach_lwp_func): New typedef.
14379 (linux_proc_attach_tgid_threads): New declaration.
14380 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
14381 use nowarn functions.
14382 (linux_ptrace_attach_fail_reason_string): Move here from
14383 gdbserver/linux-low.c and rename.
14384 (ptrace_supports_feature): If the current ptrace options are not
14385 known yet, check them now, instead of asserting.
14386 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
14387 Declare.
14388
143892015-01-09 Pedro Alves <palves@redhat.com>
14390
14391 * linux-thread-db.c (thread_db_find_new_threads_silently)
14392 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
14393 (find_new_threads_once): Print debug output on gdb_stdlog.
14394
143952015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
14396 Pedro Alves <palves@redhat.com>
14397
14398 * compile/compile.c: Include "gdb_wait.h".
14399 (do_rmdir): Check return value, and free 'zap'.
14400
144012015-01-08 Pedro Alves <palves@redhat.com>
14402 Yao Qi <yao@codesourcery.com>
14403
14404 * dwarf2loc.c (indirect_pieced_value): Don't call
14405 gdb_sign_extend. Call extract_signed_integer instead.
14406 * utils.c (gdb_sign_extend): Remove.
14407 * utils.h (gdb_sign_extend): Remove declaration.
14408
144092015-01-07 Pierre Muller <muller@sourceware.org>
14410
14411 PR symtab/17811
14412 * stabsread.c (define_symbol): Set language for C++ special symbols.
14413
144142015-01-07 Patrick Palka <patrick@parcs.ath.cx>
14415
14416 * inflow.c (initial_gdb_ttystate): Tweak comment.
14417
144182015-01-07 Joel Brobecker <brobecker@adacore.com>
14419
14420 * inflow.c (set_initial_gdb_ttystate): Add empty line after
14421 comment documenting function.
14422
144232015-01-07 Patrick Palka <patrick@parcs.ath.cx>
14424
14425 * terminal.h (set_initial_gdb_ttystate): Declare.
14426 * inflow.c (initial_gdb_ttystate): New static variable.
14427 (set_initial_gdb_ttystate): New setter.
14428 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
14429 instead of our current terminal state.
14430 * top.c (gdb_init): Call set_initial_gdb_ttystate.
14431
144322015-01-07 Joel Brobecker <brobecker@adacore.com>
14433
14434 * guile/scm-type.c (tyscm_array_1): Add comment.
14435 * python/py-type.c (typy_array_1): Add comment.
14436
144372015-01-06 Joel Brobecker <brobecker@adacore.com>
14438
14439 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
14440 error if N2 is equal to N1 - 1.
14441
144422015-01-06 Joel Brobecker <brobecker@adacore.com>
14443
14444 * python/py-type.c (typy_array_1): Do not raise negative-length
14445 exception if N2 is equal to N1 - 1.
14446
144472015-01-03 Doug Evans <xdje42@gmail.com>
14448
14449 * c-exp.y: Whitespace cleanup.
14450 (classify_inner_name): Remove extra ;.
14451
144522015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
14453
14454 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
14455 offset signed.
14456
144572015-01-02 Doug Evans <dje@google.com>
14458
14459 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
14460
144612015-01-02 Doug Evans <dje@google.com>
14462
14463 * symtab.h (struct symbol): Fix typo in comment.
14464
144652015-01-01 Joel Brobecker <brobecker@adacore.com>
14466
14467 Update year range in copyright notice of all files.
14468
144692015-01-01 Joel Brobecker <brobecker@adacore.com>
14470
14471 * top.c (print_gdb_version): Update copyright year to 2015.
14472
144732015-01-01 Joel Brobecker <brobecker@adacore.com>
14474
14475 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
14476
14477For older changes see ChangeLog-2014.
14478\f
14479Local Variables:
14480mode: change-log
14481left-margin: 8
14482fill-column: 74
14483version-control: never
14484coding: utf-8
14485End:
This page took 0.818136 seconds and 4 git commands to generate.