Make prompt_for_continue call throw_quit directly.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1690b616
SL
12015-12-18 Sandra Loosemore <sandra@codesourcery.com>
2
3 * utils.c (prompt_for_continue): Call throw_quit directly on 'q'.
4
5f2dfcfd
AT
52015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6
7 * arm-tdep.c (arm_get_next_pcs_read_memory_unsigned_integer): Cast
8 to enum bfd_endian)
9
d9311bfa
AT
102015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
11
12 * Makefile.in (ALL_TARGET_OBS): Append arm-get-next-pcs.o,
13 arm-linux.o.
14 (ALLDEPFILES): Append arm-get-next-pcs.c, arm-linux.c
15 (arm-linux.o): New rule.
16 (arm-get-next-pcs.o): New rule.
17 * arch/arm-get-next-pcs.c: New file.
18 * arch/arm-get-next-pcs.h: New file.
19 * arch/arm-linux.h: New file.
20 * arch/arm-linux.c: New file.
21 * arm.c: Include common-regcache.c.
22 (thumb_advance_itstate): Moved from arm-tdep.c.
23 (arm_instruction_changes_pc): Likewise.
24 (thumb_instruction_changes_pc): Likewise.
25 (thumb2_instruction_changes_pc): Likewise.
26 (shifted_reg_val): Likewise.
27 * arm.h (submask): Move macro from arm-tdep.h
28 (bit): Likewise.
29 (bits): Likewise.
30 (sbits): Likewise.
31 (BranchDest): Likewise.
32 (thumb_advance_itstate): Moved declaration from arm-tdep.h
33 (arm_instruction_changes_pc): Likewise.
34 (thumb_instruction_changes_pc): Likewise.
35 (thumb2_instruction_changes_pc): Likewise.
36 (shifted_reg_val): Likewise.
37 * arm-linux-tdep.c: Include arch/arm.h, arch/arm-get-next-pcs.h
38 arch/arm-linux.h.
39 (arm_linux_get_next_pcs_ops): New struct.
40 (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT,
41 ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT,
42 ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): Move stack
43 layout defines to arch/arm-linux.h.
44 (arm_linux_sigreturn_next_pc_offset): Move to arch/arm-linux.c.
45 (arm_linux_software_single_step): Adjust for arm_get_next_pcs
46 implementation.
47 * arm-tdep.c: Include arch/arm-get-next-pcs.h.
48 (arm_get_next_pcs_ops): New struct.
49 (submask): Move macro to arm.h.
50 (bit): Likewise.
51 (bits): Likewise.
52 (sbits): Likewise.
53 (BranchDest): Likewise.
54 (thumb_instruction_changes_pc): Move to arm.c
55 (thumb2_instruction_changes_pc): Likewise.
56 (arm_instruction_changes_pc): Likewise.
57 (shifted_reg_val): Likewise.
58 (thumb_advance_itstate): Likewise.
59 (thumb_get_next_pc_raw): Move to arm-get-next-pcs.c.
60 (arm_get_next_pc_raw): Likewise.
61 (arm_get_next_pc): Likewise.
62 (thumb_deal_with_atomic_sequence_raw): Likewise.
63 (arm_deal_with_atomic_sequence_raw): Likewise.
64 (arm_deal_with_atomic_sequence): Likewise.
65 (arm_get_next_pcs_read_memory_unsigned_integer): New function.
66 (arm_get_next_pcs_addr_bits_remove): Likewise.
67 (arm_get_next_pcs_syscall_next_pc): Likewise.
68 (arm_get_next_pcs_is_thumb): Likewise.
69 (arm_software_single_step): Adjust for arm_get_next_pcs
70 implementation.
71 * arm-tdep.h: (arm_get_next_pc): Remove declaration.
72 (arm_get_next_pcs_read_memory_unsigned_integer):
73 New declaration.
74 (arm_get_next_pcs_addr_bits_remove): Likewise.
75 (arm_get_next_pcs_syscall_next_pc): Likewise.
76 (arm_get_next_pcs_is_thumb): Likewise.
77 (arm_deal_with_atomic_sequence: Remove declaration.
78 * common/gdb_vecs.h: Add CORE_ADDR vector definition.
79 * configure.tgt (aarch64*-*-linux): Add arm-get-next-pcs.o,
80 arm-linux.o.
81 (arm*-wince-pe): Add arm-get-next-pcs.o.
82 (arm*-*-linux*): Add arm-get-next-pcs.o, arm-linux.o,
83 arm-get-next-pcs.o
84 (arm*-*-netbsd*,arm*-*-knetbsd*-gnu): Add arm-get-next-pcs.o.
85 (arm*-*-openbsd*): Likewise.
86 (arm*-*-symbianelf*): Likewise.
87 (arm*-*-*): Likewise.
88 * symtab.h: Move CORE_ADDR vector definition to gdb_vecs.h.
89
68ce2059
AT
902015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
91
92 * Makefile.in (SFILES): Append common/common-regcache.c.
93 (COMMON_OBS): Append common/common-regcache.o.
94 (common-regcache.o): New rule.
95 * common/common-regcache.h (register_status) New enum.
96 (regcache_raw_read_unsigned): New declaration.
97 * common/common-regcache.c: New file.
98 * regcache.h (enum register_status): Move to common-regcache.h.
99 (regcache_raw_read_unsigned): Likewise.
100 (regcache_raw_get_unsigned): Likewise.
101
d0e59a68
AT
1022015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
103
104 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc_offset): New function.
105 (arm_linux_sigreturn_next_pc): Likewise.
106 (arm_linux_syscall_next_pc): Use regcache instead of frame.
107 (arm_linux_software_single_step): Likewise.
108 * arm-tdep.c (arm_is_thumb): New function.
109 (shifted_reg_va): Use regcache instead of frame.
110 (thumb_get_next_pc_raw): Likewise.
111 (arm_get_next_pc_raw): Likewise.
112 (arm_get_next_pc): Likewise.
113 (thumb_deal_with_atomic_sequence_raw): Likewise.
114 (arm_deal_with_atomic_sequence_raw): Likewise.
115 (arm_deal_with_atomic_sequence): Likewise.
116 (arm_software_single_step): Likewise.
117 * arm-tdep.h (struct gdbarch_tdep): Use regcache for syscall_next_pc.
118 (arm_get_next_pc): Use regcache.
119 (arm_deal_with_atomic_sequence): Likewise.
120 (arm_is_thumb): New declaration.
121 * regcache.c (regcache_raw_get_unsigned): New function.
122 * regcache.h (regcache_raw_get_unsigned): New function declaration.
123
cba7e83f
AT
1242015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
125
126 * arch/arm.c (bitcount): Move from arm-tdep.c.
127 (condition_true): Likewise.
128 * arch/arm.h (Instruction Definitions): Move form arm-tdep.h.
129 (condition_true): Move defenition from arm-tdep.h.
130 (bitcount): Likewise.
131 * arm-tdep.c (condition_true): Move to arch/arm.c.
132 (bitcount): Likewise.
133 * arm-tdep.h (Instruction Definitions): Move to arch/arm.h.
134 * arm-wince-tdep.c: Include arch/arm.h.
135 * armnbsd-tdep.c: Likewise.
136
a6904d5a
PA
1372015-12-17 Pedro Alves <palves@redhat.com>
138
139 PR threads/19354
140 * linux-nat.c (linux_nat_update_thread_list): Update process cores
141 each lwp was last seen running on here.
142 * linux-thread-db.c (update_thread_core): Delete.
143 (thread_db_update_thread_list_td_ta_thr_iter): Rename to ...
144 (thread_db_update_thread_list): ... this. Skip inferiors with
145 execution. Also call the target beneath.
146 (thread_db_update_thread_list): Delete.
147
4a6ed09b
PA
1482015-12-17 Pedro Alves <palves@redhat.com>
149
150 * configure.ac: Remove tkill checks.
151 * configure, config.in: Regenerate.
152 * linux-nat.c: Remove HAVE_TKILL_SYSCALL check. Update top level
153 comments.
154 (linux_nat_post_attach_wait): Remove 'cloned' parameter. Use
155 __WALL.
156 (attach_proc_task_lwp_callback): Don't set the cloned flag.
157 (linux_nat_attach): Adjust.
158 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
159 to 'kill'.
160 (linux_handle_extended_wait): Use __WALL. Don't set the cloned
161 flag.
162 (wait_lwp): Use __WALL. Update comments.
163 (running_callback, stop_and_resume_callback): Delete.
164 (linux_nat_filter_event): Don't stop and resume all lwps. Don't
165 check if the event LWP has previously exited.
166 (check_zombie_leaders): Update comments.
167 (linux_nat_wait_1): Use __WALL.
168 (kill_wait_callback): Don't handle clone processes separately.
169 Use __WALL instead.
170 (linux_thread_alive): Delete.
171 (linux_nat_thread_alive): Return true as long as the LWP is in the
172 LWP list.
173 (linux_nat_update_thread_list): Assume the kernel supports
174 PTRACE_EVENT_CLONE.
175 (get_signo): Delete.
176 (lin_thread_get_thread_signals): Remove LinuxThreads references.
177 No longer check __pthread_sig_restart / __pthread_sig_cancel in
178 the inferior.
179 * linux-nat.h (struct lwp_info) <cloned>: Delete field.
180 * linux-thread-db.c: Update comments.
181 (_initialize_thread_db): Remove LinuxThreads references.
182 * nat/linux-waitpid.c (my_waitpid): No longer emulate __WALL.
183 Pass down flags unmodified.
184 * linux-waitpid.h (my_waitpid): Update documentation.
185
c3c87445
YQ
1862015-12-17 Yao Qi <yao.qi@linaro.org>
187
188 * aarch64-tdep.c (struct stack_item_t): Update comments.
189 (pass_on_stack): Set item.data to NULL.
190 (aarch64_push_dummy_call): Call write_memory if si->data
191 isn't NULL.
192
7544db95
PA
1932015-12-16 Pedro Alves <palves@redhat.com>
194
195 * configure.ac (compiler warning flags): When testing a
196 -Wno-foo option, check whether -Wfoo works instead.
197 * configure: Regenerate.
198
a4e22a5d
PA
1992015-12-16 Pedro Alves <palves@redhat.com>
200
201 * common/vec.h (vec_offset): New macro.
202 (DEF_VEC_ALLOC_FUNC_I, DEF_VEC_ALLOC_FUNC_O): Use it instead of
203 offsetof.
204
19d9d4ef
DB
2052015-12-11 Don Breazeal <donb@codesourcery.com>
206
207 * NEWS: Announce fork and exec event support for target remote.
208
8020350c
DB
2092015-12-11 Don Breazeal <donb@codesourcery.com>
210
211 * inferior.c (number_of_live_inferiors): New function.
212 (have_live_inferiors): Use number_of_live_inferiors in place
213 of duplicate code.
214 * inferior.h (number_of_live_inferiors): Declare new function.
215 * remote.c (set_general_process): Remove restriction on target
216 remote mode.
217 (remote_query_supported): Likewise.
218 (remote_detach_1): Exit in target remote mode only when there
219 is just one live inferior left.
220 (remote_disconnect): Unpush the target directly instead of
221 calling remote_mourn.
222 (remote_kill): Rewrite function to handle both target remote
223 and extended-remote. Call remote_kill_k.
224 (remote_kill_k): New function.
225 (extended_remote_kill): Delete function.
226 (remote_mourn, extended_remote_mourn): Combine functions into
227 one, remote_mourn, and enable extended functionality for target
228 remote.
229 (remote_pid_to_str): Enable "process" style ptid string for
230 target remote.
231 (remote_supports_multi_process): Remove restriction on target
232 remote mode.
233
132874d7
AB
2342015-12-14 Andrew Burgess <andrew.burgess@embecosm.com>
235
236 * i386-tdep.c (i386_mpx_info_bounds): Use TYPE_LENGTH.
237 (i386_mpx_set_bounds): Likewise.
238 * solib-darwin.c (darwin_load_image_infos): Likewise.
239 (darwin_solib_read_all_image_info_addr): Likewise.
240
4fdd372d
AB
2412015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
242
243 * cli/cli-cmds.c (_initialize_cli_cmds): Extend help text for
244 'list' command.
245
3b2464a8
AB
2462015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
247
248 * cli/cli-cmds.c (list_command): Add an error when trying to use
249 '-' to scan read off the start of the source file.
250
a0def019
AB
2512015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
252
253 * cli/cli-cmds.c (list_command): Check that the argument string is
254 a single character, either '+' or '-'.
255
1a48ce76
AB
2562015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
257
258 * cli/cli-cmds.c (list_command): Move all handling of +/-
259 arguments into a single if block.
260
8c05462a
AB
2612015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
262
263 * cli/cli-cmds.c (list_command): Use NULL instead of 0 when
264 checking pointers.
265
f43f8571
AB
2662015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
267
268 * source.c (lines_to_list): Make static.
269
60269a4a
AT
2702015-12-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
271
272 * linux-thread-db.c (find_new_threads_callback): Use record_thread.
273
c2c2a31f
AT
2742015-12-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
275
276 * breakpoint.c (remove_thread_event_breakpoints): Remove.
277 * breakpoint.h (remove_thread_event_breakpoints): Remove
278 declaration.
279 * linux-nat.c (in_pid_list_p): Remove.
280 (lin_lwp_attach_lwp): Remove.
281 * linux-nat.h (lin_lwp_attach_lwp): Remove declaration.
282 * linux-thread-db.c (thread_db_use_events): Remove.
283 (struct thread_db_info) <td_create_bp_addr>: Remove.
284 <td_death_bp_addr>: Likewise.
285 <td_ta_event_addr_p>: Likewise.
286 <td_ta_set_event_p>: Likewise.
287 <td_ta_clear_event_p>: Likewise.
288 <td_ta_event_getmsg_p>: Likewise.
289 <td_thr_event_enable_p>: Likewise.
290 (attach_thread): Likewise.
291 (detach_thread): Likewise.
292 (have_threads_callback): Likewise.
293 (have_threads): Likewise.
294 (enable_thread_event): Likewise.
295 (enable_thread_event_reporting): Likewise.
296 (try_thread_db_load_1): Remove td_ta_event_addr, td_ta_set_event,
297 td_ta_clear_event, td_ta_event_getmsg, td_thr_event_enable
298 initializations.
299 (try_thread_db_load_1): Remove enable_thread_event_reporting call.
300 (disable_thread_event_reporting): Remove.
301 (record_thread): Adapt to thread_db_use_event removal.
302 (detach_thread): Remove.
303 (thread_db_detach): Adapt to thread_db_use_event removal.
304 (check_event): Remove.
305 (thread_db_wait): Adapt to thread events support removal.
306 (thread_db_mourn_inferior): Likewise.
307 (find_new_threads_callback): Likewise.
308 (find_new_threads_once): Likewise.
309 (thread_db_update_thread_list): Likewise.
310
28d2bfb9
AB
3112015-12-10 Andrew Burgess <andrew.burgess@embecosm.com>
312
313 * dwarf2read.c (dwarf2_ranges_read): Unify and fix base address
314 reading code.
315
f56331b4
KB
3162015-12-09 Kevin Buettner <kevinb@redhat.com>
317
318 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Perform a pointer
319 to address conversion for DWARF_VALUE_MEMORY.
320
1c35a88f
LM
3212015-12-09 Luis Machado <lgustavo@codesourcery.com>
322
323 * gdb/mi/mi-cmd-var.c (mi_parse_format): Handle new "zero-hexadecimal"
324 format.
325 * gdb/varobj.c (varobj_format_string): Add "zero-hexadecimal" entry.
326 (format_code): Add 'z' entry.
327 (varobj_set_display_format): Handle FORMAT_ZHEXADECIMAL.
328 * gdb/varobj.h (varobj_display_formats) <FORMAT_ZHEXADECIMAL>: New enum
329 field.
330 * NEWS: Add new note to MI changes citing the new zero-hexadecimal
331 format for -var-set-format.
332
b593e3d9
RK
3332015-12-09 Ruslan Kabatsayev <b7.10110111@gmail.com> (tiny patch)
334
335 PR gdb/18702
336 * configure.host: Fix detection of x86_64 host when setting
337 floatformats.
338
3685b09f
PMR
3392015-12-08 Pierre-Marie de Rodat <derodat@adacore.com>
340
341 * NEWS: Announce this enhancement and the corresponding new
342 option.
343
d72413e6
PMR
3442015-12-07 Pierre-Marie de Rodat <derodat@adacore.com>
345
346 * ada-lang.c (print_signatures): New.
347 (ada_print_symbol_signature): New.
348 (user_select_syms): Add signatures to the output of candidate
349 symbols using ada_print_symbol_signature.
350 (_initialize_ada_language): Add a "set/show ada
351 print-signatures" boolean option.
352
1b36b657
AA
3532015-12-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
354
355 * MAINTAINERS (Write After Approval): Add Andreas Arnez.
356
030f17b5
JB
3572015-12-06 Mike Stump <mikestump@comcast.net>
358 Joel Brobecker <brobecker@adacore.com>
359
360 * Makefile.in (TAGS): Replace i386-nat.h by x86-nat.h.
361 * x86-nat.c: Replace remaining references to i386-nat
362 by reference to x86-nat instead.
363
a5d43209
JB
3642015-12-05 Joel Brobecker <brobecker@adacore.com>
365
366 GDB 7.10.1 released.
367
974eac9d
UW
3682015-12-01 Ulrich Weigand <uweigand@de.ibm.com>
369
370 * remote.c (remote_parse_stop_reply): Avoid GCC 4.1 "operation
371 may be undefined" warning.
372
2e3b657e
UW
3732015-12-01 Ulrich Weigand <uweigand@de.ibm.com>
374
375 * remote.c (remote_newthread_step): Initialize item.name.
376 (remote_get_threads_with_qthreadinfo): Likewise.
377
f2faf941
PA
3782015-11-30 Pedro Alves <palves@redhat.com>
379
380 PR 14618
381 * NEWS (New remote packets): Mention the N stop reply.
382 * remote.c (remote_protocol_features): Add "no-resumed" entry.
383 (remote_query_supported): Report no-resumed+ support.
384 (remote_parse_stop_reply): Handle 'N'.
385 (process_stop_reply): Handle TARGET_WAITKIND_NO_RESUMED.
386 (remote_wait_as): Handle 'N' / TARGET_WAITKIND_NO_RESUMED.
387 (_initialize_remote): Register "set/show remote
388 no-resumed-stop-reply" commands.
389
f4836ba9
PA
3902015-11-30 Pedro Alves <palves@redhat.com>
391
392 PR 14618
393 * infrun.c (handle_no_resumed): New function.
394 (handle_inferior_event_1) <TARGET_WAITKIND_NO_RESUMED>: Defer to
395 handle_no_resumed.
396
65706a29
PA
3972015-11-30 Pedro Alves <palves@redhat.com>
398
399 * NEWS (New commands): Mention "set/show remote thread-events"
400 commands.
401 (New remote packets): Mention thread created/exited stop reasons
402 and QThreadEvents packet.
403 * infrun.c (disable_thread_events): New function.
404 (stop_all_threads): Disable/enable thread create/exit events.
405 Handle TARGET_WAITKIND_THREAD_EXITED.
406 (handle_inferior_event_1): Handle TARGET_WAITKIND_THREAD_CREATED
407 and TARGET_WAITKIND_THREAD_EXITED.
408 * remote.c (remove_child_of_pending_fork): Also remove threads of
409 threads that have TARGET_WAITKIND_THREAD_EXITED events.
410 (remote_parse_stop_reply): Handle "create" magic register. Handle
411 'w' stop reply.
412 (initialize_remote): Install remote_thread_events as
413 to_thread_events target hook.
414 (remote_thread_events): New function.
415 * target-delegates.c: Regenerate.
416 * target.c (target_thread_events): New function.
417 * target.h (struct target_ops) <to_thread_events>: New field.
418 (target_thread_events): Declare.
419 * target/waitstatus.c (target_waitstatus_to_string): Handle
420 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
421 * target/waitstatus.h (enum target_waitkind)
422 <TARGET_WAITKIND_THREAD_CREATED, TARGET_WAITKIND_THREAD_EXITED):
423 New values.
424
de979965
PA
4252015-11-30 Pedro Alves <palves@redhat.com>
426
427 * NEWS (New remote packets): Mention vCtrlC.
428 * remote.c (PACKET_vCtrlC): New enum value.
429 (async_remote_interrupt): Call target_interrupt instead of
430 target_stop.
431 (remote_interrupt_as): Remove 'ptid' parameter.
432 (remote_interrupt_ns): New function.
433 (remote_stop): Adjust.
434 (remote_interrupt): If the target is in non-stop mode, try
435 interrupting with vCtrlC.
436 (initialize_remote): Install set remote ctrl-c packet.
437
799a2abe
PA
4382015-11-30 Pedro Alves <palves@redhat.com>
439
440 * remote.c (struct remote_state) <remote_watch_data_address,
441 stop_reason>: Delete fields.
442 (struct private_thread_info) <stop_reason, watch_data_address>:
443 New fields.
444 (resume_clear_thread_private_info): New function.
445 (append_pending_thread_resumptions): Call it.
446 (remote_resume): Clear all threads' private info.
447 (process_stop_reply): Adjust.
448 (remote_wait_as): Don't reference remote_state's stop_reason
449 field.
450 (remote_stopped_by_sw_breakpoint)
451 (remote_stopped_by_hw_breakpoint, remote_stopped_by_watchpoint)
452 (remote_stopped_data_address): Adjust to refer get data from the
453 current thread.
454
066f6b6e
PA
4552015-11-30 Pedro Alves <palves@redhat.com>
456
457 * infcmd.c (attach_post_wait): If the target is always in non-stop
458 mode, and the UI is in all-stop mode, stop all threads and pick
459 the one with lowest number as current.
460
6efcd9a8
PA
4612015-11-30 Pedro Alves <palves@redhat.com>
462
463 * gdbthread.h (switch_to_thread_no_regs): Declare.
464 * infcmd.c (setup_inferior): New function, factored out from ...
465 (attach_command_post_wait): ... this. Rename to ...
466 (attach_post_wait): ... this. Replace parameter async_exec with
467 attach_post_wait_mode parameter. Adjust.
468 (enum attach_post_wait_mode): New enum.
469 (struct attach_command_continuation_args): Replace 'async_exec'
470 field with 'mode' field.
471 (attach_command_continuation): Adjust.
472 (attach_command): Add comment. Mark the inferior as needing
473 setup. Adjust to use enum attach_post_wait_mode.
474 (notice_new_inferior): Use switch_to_thread_no_regs. Adjust to
475 use enum attach_post_wait_mode.
476 * inferior.h (setup_inferior): Declare.
477 (struct inferior) <needs_setup>: New field.
478 * infrun.c (set_last_target_status): Make extern.
479 (stop_all_threads): Make extern. Setup inferior, if necessary.
480 * infrun.h (set_last_target_status, stop_all_threads): Declare.
481 * remote-notif.c (remote_async_get_pending_events_handler)
482 (handle_notification): Replace non_stop checks with
483 target_is_non_stop_p() checks.
484 * remote.c (remote_notice_new_inferior): Remove non_stop check.
485 (remote_update_thread_list): Replace non_stop check with
486 target_is_non_stop_p() check.
487 (print_one_stopped_thread): New function.
488 (process_initial_stop_replies): New 'from_tty' parameter.
489 "Notice" all new live inferiors after storing initial stops as
490 pending status in each corresponding thread. If all-stop, stop
491 all threads, try picking a signalled thread as current, and print
492 the status of that one thread. Record the last target status.
493 (remote_start_remote): Replace non_stop checks with
494 target_is_non_stop_p() checks. Don't query for the remote current
495 thread of use qOffsets here. Pass from_tty to
496 process_initial_stop_replies.
497 (extended_remote_attach): Replace non_stop checks with
498 target_is_non_stop_p() checks.
499 (extended_remote_post_attach): Send qOffsets here.
500 (remote_vcont_resume, remote_resume, remote_stop)
501 (remote_interrupt, remote_parse_stop_reply, remote_wait): Replace
502 non_stop checks with target_is_non_stop_p() checks.
503 (remote_async): If target is non-stop, mark/clear the pending
504 events token.
505 * thread.c (switch_to_thread_no_regs): New function.
506
f015c27b
PA
5072015-11-30 Pedro Alves <palves@redhat.com>
508
509 * gdb.mi/mi-nonstop.exp: Append "set non-stop on" to GDBFLAGS
510 instead of issuing "-gdb-set non-stop 1" after starting gdb.
511 Use mi_is_target_remote instead of checking "is_remote target".
512 * lib/gdb.exp (gdb_is_target_remote): Rename to ...
513 (gdb_is_target_remote_prompt): ... this, and add 'prompt_regexp'
514 parameter.
515 (gdb_is_target_remote): Reimplement.
516 * lib/mi-support.exp (mi_is_target_remote): New procedure.
517
16807a48
PA
5182014-11-28 Pedro Alves <palves@redhat.com>
519
520 * cp-name-parser.y (conversion_op): Use
521 DEMANGLE_COMPONENT_CONVERSION instead of DEMANGLE_COMPONENT_CAST.
522
e1961661
SM
5232015-11-27 Simon Marchi <simon.marchi@ericsson.com>
524
525 * remote.c (start_thread): Add cast.
526
805035d7
YQ
5272015-11-27 Yao Qi <yao.qi@linaro.org>
528
529 * nat/aarch64-linux-hw-point.c (aarch64_dr_state_remove_one_point):
530 Don't assert on alignment.
531 (aarch64_handle_breakpoint): Only check alignment when IS_INSERT
532 is true.
533
cd635f74
YQ
5342015-11-27 Yao Qi <yao.qi@linaro.org>
535
536 * aarch64-tdep.c (is_hfa): Rename to ...
537 (is_hfa_or_hva): ... this. Handle vector type. All callers
538 updated.
539 (aarch64_extract_return_value): Update debugging message.
540 (aarch64_store_return_value): Likewise.
541 (aarch64_return_in_memory): Update comments.
542
238f2452
YQ
5432015-11-27 Yao Qi <yao.qi@linaro.org>
544
545 * aarch64-tdep.c (aarch64_type_align): For vector type, return
546 its length, but with the maximum of 16 bytes.
547 (is_hfa): Return zero for vector type.
548 (aarch64_push_dummy_call): Handle short vectors.
549 (aarch64_extract_return_value): Likewise.
550 (aarch64_store_return_value): Likewise.
551
79efa585
SM
5522015-11-26 Daniel Colascione <dancol@dancol.org>
5532015-11-26 Simon Marchi <simon.marchi@ericsson.com>
554
555 * linux-nat.c (linux_nat_thread_name): Replace implementation by call
556 to linux_proc_tid_get_name.
557 * nat/linux-procfs.c (linux_proc_tid_get_name): New function,
558 implementation inspired by linux_nat_thread_name.
559 * nat/linux-procfs.h (linux_proc_tid_get_name): New declaration.
560 * remote.c (struct private_thread_info) <name>: New field.
561 (free_private_thread_info): Free name field.
562 (remote_thread_name): New function.
563 (thread_item_t) <name>: New field.
564 (clear_threads_listing_context): Free name field.
565 (start_thread): Get name xml attribute.
566 (thread_attributes): Add "name" attribute.
567 (remote_update_thread_list): Copy name field.
568 (init_remote_ops): Assign remote_thread_name callback.
569 * target.h (target_thread_name): Update comment.
570 * NEWS: Mention remote thread name support.
571
73ede765
SM
5722015-11-26 Simon Marchi <simon.marchi@ericsson.com>
573
574 * linux-nat.c (linux_nat_thread_name): Constify return value.
575 * target.h (struct target_ops) <to_thread_name>: Likewise.
576 (target_thread_name): Likewise.
577 * target.c (target_thread_name): Likewise.
578 * target-delegates.c (debug_thread_name): Regenerate.
579 * python/py-infthread.c (thpy_get_name): Constify local variables.
580 * thread.c (print_thread_info): Likewise.
581 (thread_find_command): Likewise.
582
46a3515b
MM
5832015-11-26 Markus Metzger <markus.t.metzger@intel.com>
584
585 PR 19297
586 * btrace.c (btrace_enable): Check whether HAVE_LIBIPT is defined.
587
be81798b
PA
5882015-11-24 Pedro Alves <palves@redhat.com>
589
590 * NEWS: Mention that a few "info" commands now list the
591 corresponding items in ascending ID order.
592
62147a22
PA
5932015-11-24 Pedro Alves <palves@redhat.com>
594
595 PR 17539
596 * printcmd.c (display_command): Append new display at the end of
597 the list.
598
2f341b6e
PA
5992015-11-24 Pedro Alves <palves@redhat.com>
600
601 PR 17539
602 * printcmd.c (display_command): Append new display at the end of
603 the list.
604
7e0aa6aa
PA
6052015-11-24 Pedro Alves <palves@redhat.com>
606
607 PR 17539
608 * inferior.c (add_inferior_silent): Append the new inferior to the
609 end of the list.
610 * progspace.c (add_program_space): Append the new pspace to the
611 end of the list.
612 * thread.c (new_thread): Append the new thread to the end of the
613 list.
614
050c224b
PA
6152015-11-24 Pedro Alves <palves@redhat.com>
616
617 * linux-tdep.c (find_stop_signal): Delete.
618 (struct linux_corefile_thread_data) <pid>: Remove field.
619 (linux_corefile_thread_callback): Rename to ...
620 (linux_corefile_thread): ... this. Now takes a struct
621 linux_corefile_thread_data pointer rather than a void pointer.
622 Remove thread state and thread pid checks.
623 (linux_make_corefile_notes): Prefer dumping the signalled thread
624 first. Use ALL_NON_EXITED_THREADS instead of
625 iterate_over_threads.
626
980facc3 6272015-11-23 Par Olsson <par.olsson@windriver.com>
c93e8391
SM
628
629 * breakpoint.c (tracepoint_print_recreate): Fix logic error
630 if -> else if.
631
5506f9f6
KB
6322015-11-23 Kevin Buettner <kevinb@redhat.com>
633
634 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Scan backwards
635 over all zero-sized symbols.
636
16c3b12f
JB
6372015-11-23 Joel Brobecker <brobecker@adacore.com>
638
639 * stack.c (print_frame_local_vars): Temporarily set the selected
640 frame to FRAME while printing the frame's local variables.
641
a6a20ad7
JB
6422015-11-23 Joel Brobecker <brobecker@adacore.com>
643
644 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue):
645 Increment PC in while loop skipping "pop reg" instructions.
646
416dc9c6
JB
6472015-11-23 Joel Brobecker <brobecker@adacore.com>
648
649 * arm-tdep.c (arm_exidx_unwind_sniffer): Do not check for a frame
650 stuck on a system call if the given frame is the innermost frame.
651
155bfbd3
JB
6522015-11-23 Joel Brobecker <brobecker@adacore.com>
653
654 * dwarf2read.c (read_structure_type): Set the type's length
655 to zero if it has a DW_AT_byte_size attribute which is not
656 a constant.
657
aa14fb50
TG
6582015-11-23 Tristan Gingold <gingold@adacore.com>
659
660 * darwin-nat.c (darwin_ptrace): Avoid a cast.
661 (darwin_resume_thread): Ditto. And always set or reset
662 single step.
663
ad2073b0
TG
6642015-11-23 Tristan Gingold <gingold@adacore.com>
665
666 * darwin-nat.c (darwin_read_dyld_info): Write address in
667 big-endian order.
668 * solib-darwin.c (darwin_validate_exec_header): New function,
669 extracted from...
670 (darwin_read_exec_load_addr_from_dyld): ...here.
671 (darwin_read_exec_load_addr_at_init): New function.
672 (darwin_solib_read_all_image_info_addr): Adjust after
673 darwin_read_dyld_info change.
674 (darwin_solib_create_inferior_hook): Support PIE.
675
3eb831e0
TG
6762015-11-23 Tristan Gingold <gingold@adacore.com>
677
678 * darwin-nat.c (darwin_ptrace): Add a cast to fix warning.
679 (darwin_resume, cancel_breakpoint, _initialize_darwin_inferior):
680 Likewise.
681 (darwin_read_write_inferior): Rewrite using mach_vm_read_overwrite.
682
e084c964
DB
6832015-11-19 Don Breazeal <donb@codesourcery.com>
684
685 * target.c (read_memory_robust): Call read_whatever_is_readable
686 with arguments in the correct order.
687
b35d5edb
PA
6882015-11-19 Pedro Alves <palves@redhat.com>
689
690 * remote.c (remote_query_supported): Send the "xmlRegisters="
691 feature last.
692
bb82e934
SM
6932015-11-19 Simon Marchi <simon.marchi@ericsson.com>
694
695 * nat/aarch64-linux-hw-point.c (aarch64_linux_set_debug_regs): Change
696 form of iov_len computation.
697
9a084706
PA
6982015-11-19 Pedro Alves <palves@redhat.com>
699
700 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
701 mode.
702 * configure: Regenerate.
703
dad44a1f
PA
7042015-11-19 Pedro Alves <palves@redhat.com>
705
706 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Remove -fpermissive.
707 * configure: Regenerate.
708
c6d81124
PA
7092015-11-19 Pedro Alves <palves@redhat.com>
710
711 * breakpoint.c (software_watchpoint_add_no_memory_location)
712 (is_no_memory_software_watchpoint): New functions.
713 (update_watchpoint): Use
714 software_watchpoint_add_memoryless_location.
715 (breakpoint_address_bits): Use is_no_memory_software_watchpoint.
716
4d193179
SM
7172015-11-19 Simon Marchi <simon.marchi@ericsson.com>
718 Pedro Alves <palves@redhat.com>
719
720 * s390-linux-tdep.c (s390_canonicalize_syscall): Add casts and
721 intermediate 'int' variable.
722
f8708a14
PA
7232015-11-19 Pedro Alves <palves@redhat.com>
724
725 * linux-thread-db.c (try_thread_db_load_1): Add cast.
726
915ef8b1
PA
7272015-11-19 Pedro Alves <palves@redhat.com>
728
729 * remote.c (remote_unpush_target): Use
730 pop_all_targets_at_and_above instead of pop_all_targets_above.
731 * target.c (unpush_target_and_assert): New function, factored out
732 from ...
733 (pop_all_targets_above): ... here.
734 (pop_all_targets_at_and_above): New function.
735 * target.h (pop_all_targets_at_and_above): Declare.
736
7cc3f8e2
SM
7372015-11-18 Simon Marchi <simon.marchi@ericsson.com>
738
739 * valops.c (value_string): Constify 'ptr' parameter.
740 * value.h (value_string): Constify 'ptr' parameter.
741
79f33898
SM
7422015-11-18 Simon Marchi <simon.marchi@ericsson.com>
743 Pedro Alves <palves@redhat.com>
744
745 * break-catch-sig.c (signal_catchpoint_print_one): Add cast.
746 * c-exp.y (parse_string_or_char, yylex): Add casts.
747 * c-lang.c (evaluate_subexp_c): Add casts.
748 * d-exp.y (parse_string_or_char, yylex): Add casts.
749 * go-exp.y (parse_string_or_char, build_packaged_name): Add casts.
750 * p-valprint.c (pascal_object_print_value_fields): Add casts.
751 * valprint.c (generic_emit_char, generic_printstr): Add casts.
752
e3a3797e
SM
7532015-11-18 Simon Marchi <simon.marchi@ericsson.com>
754
755 * valops.c (value_cstring): Constify 'ptr' parameter.
756 * value.h (value_cstring): Constify 'ptr' parameter.
757
0735fddd
YQ
7582015-11-18 Yao Qi <yao.qi@linaro.org>
759
760 * aarch64-tdep.c (pass_in_v): Add argument len. Add local array
761 reg. Callers updated.
762
1946c4cc
YQ
7632015-11-17 Yao Qi <yao.qi@linaro.org>
764
765 * infrun.c (resume): Check control.trap_expected only
766 when deciding the set of threads to resume.
767
b6b80672
PA
7682015-11-17 Pedro Alves <palves@redhat.com>
769
770 * cp-namespace.c (cp_lookup_bare_symbol)
771 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
772 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
773 (cp_lookup_nested_symbol): Use null_block_symbol.
774 * d-namespace.c (d_lookup_symbol, d_lookup_nested_symbol)
775 (d_lookup_symbol_imports, d_lookup_symbol_module): Use
776 null_block_symbol.
777 * symtab.c (null_block_symbol): New global.
778 * symtab.h (null_block_symbol): Declare.
779
eec461d0
PA
7802015-11-17 Pedro Alves <palves@redhat.com>
781
782 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
783 (GDB_XCPT_RAW_TRY, GDB_XCPT): Define.
784 Replace __cplusplus checks with GDB_XCPT checks throughout.
785 * common/common-exceptions.c: Replace __cplusplus checks with
786 GDB_XCPT checks throughout.
787
91ee7171
PA
7882015-11-17 Pedro Alves <palves@redhat.com>
789
790 * common/common-defs.h (ATTRIBUTE_PRINTF): Redefine in terms of
791 _GL_ATTRIBUTE_FORMAT_PRINTF after including ansidecl.h.
792
e063da67
PA
7932015-11-17 Pedro Alves <palves@redhat.com>
794
795 * common/common-defs.h (__STDC_CONSTANT_MACROS)
796 (__STDC_LIMIT_MACROS): Define before including stdint.h.
797
95824559
PA
7982015-11-17 Pedro Alves <palves@redhat.com>
799
800 * windows-nat.c (handle_exception): Return 0 for first chance
801 exceptions.
802 (get_windows_debug_event): Adjust.
803
56db1d67
PA
8042015-11-17 Pedro Alves <palves@redhat.com>
805
806 * windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as
807 signal number for terminator.
808
69e976f8
PA
8092015-11-17 Pedro Alves <palves@redhat.com>
810
811 * ser-tcp.c (net_open) : Cast getsockopt argument to char *
812 instead of void *. Update comment.
813 (net_read_prim): Cast recv argument to char * instead of void *.
814 (net_write_prim): Cast send argument to char *. Add comment.
815
c3de4d92
PA
8162015-11-17 Pedro Alves <palves@redhat.com>
817
818 * win32-i386-low.c (update_debug_registers_callback)
819 (win32_get_current_dr): Add cast.
820 * win32-low.c (thread_rec, delete_thread_info)
821 (continue_one_thread): Add casts.
822 (strwinerror): Cast FormatMessage argument to LPTSTR instead of
823 LPVOID.
824 (win32_create_inferior, suspend_one_thread): Add casts.
825
43499ea3
PA
8262015-11-17 Pedro Alves <palves@redhat.com>
827
828 * windows-nat.c (AdjustTokenPrivileges_ftype)
829 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
830 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
831 (GetCurrentConsoleFont_ftype, GetModuleInformation_ftype)
832 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
833 (GetConsoleFontSize_ftype): New typedefs.
834 (AdjustTokenPrivileges, DebugActiveProcessStop)
835 (DebugBreakProcess, DebugSetProcessKillOnExit, EnumProcessModules)
836 (GetConsoleFontSize, GetCurrentConsoleFont, GetModuleInformation)
837 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize):
838 Adjust.
839 (GetModuleFileNameEx_ftype): New typedef.
840 (GetModuleFileNameEx): Use it.
841 (_initialize_loadable): Define GPA macro and use it.
842
2986367f
PA
8432015-11-17 Pedro Alves <palves@redhat.com>
844
845 * gdb-dlfcn.c (gdb_dlsym, gdb_dlclose) [__MINGW32__]: Add casts to
846 HMODULE.
847
0ae1c716
PA
8482015-11-17 Pedro Alves <palves@redhat.com>
849
850 * exec.c (exec_file_attach, symfile_bfd_open) [__GO32__ || _WIN32
851 || __CYGWIN__]: Add casts.
852 * utils.c (gdb_filename_fnmatch): Add cast.
853 * windows-nat.c (windows_create_inferior): Add cast.
854
cd78b7a1
PA
8552015-11-17 Pedro Alves <palves@redhat.com>
856
857 * ser-mingw.c (CancelIo_ftype): New typedef.
858 (CancelIo): Use CancelIo_ftype.
859 (ser_windows_close, ser_windows_wait_handle)
860 (ser_windows_read_prim, stop_select_thread)
861 (console_select_thread, pipe_select_thread, file_select_thread)
862 (ser_console_wait_handle, ser_console_done_wait_handle)
863 (ser_console_close, cleanup_pipe_state, pipe_windows_close)
864 (pipe_windows_write, pipe_wait_handle, pipe_done_wait_handle)
865 (net_windows_socket_check_pending, net_windows_select_thread)
866 (net_windows_wait_handle, net_windows_done_wait_handle)
867 (net_windows_close): Add casts.
868 (_initialize_ser_windows): Cast to CancelIo_ftype* instead of
869 void*.
870
0c801b96
SM
8712015-11-17 Simon Marchi <simon.marchi@ericsson.com>
872
873 * c-exp.y (exp): Adjust, change enum c_string_type to
874 c_string_type.
875 (parse_string_or_char): Likewise.
876 * c-lang.c (charset_for_string_type): Likewise.
877 (classify_type): Likewise.
878 (c_printchar): Likewise.
879 (c_printstr): Likewise.
880 (evaluate_subexp_c): Likewise. And change cast to enum
881 c_string_type_values.
882 * c-lang.h: Include "common/enum_flags.h".
883 (enum c_string_type): Rename to...
884 (enum c_string_type_values): ...this.
885 (c_string_type): Define new enum flags type.
886
8d297bbf
PA
8872015-11-17 Pedro Alves <palves@redhat.com>
888
889 * btrace.h: Include common/enum-flags.h.
890 (btrace_insn_flags): Define.
891 (struct btrace_insn) <flags>: Change type.
892 (btrace_function_flags): Define.
893 (struct btrace_function) <flags>: Change type.
894 (btrace_thread_flags): Define.
895 (struct btrace_thread_info) <flags>: Change type.
896 * c-exp.y (token_flags): Rename to ...
897 (token_flag): ... this.
898 (token_flags): Define.
899 (struct token) <flags>: Change type.
900 * common/enum-flags.h: New file.
901 * compile/compile-c-types.c (convert_qualified): Change type of
902 'quals' local.
903 * compile/compile-internal.h: Include "common/enum-flags.h".
904 (gcc_qualifiers_flags): Define.
905 * completer.c (enum reg_completer_targets): Rename to ...
906 (enum reg_completer_target): ... this.
907 (reg_completer_targets): Define.
908 (reg_or_group_completer_1): Change type of 'targets' parameter.
909 * disasm.c (do_mixed_source_and_assembly_deprecated): Change type
910 of 'psl_flags' local.
911 (do_mixed_source_and_assembly): Change type of 'psl_flags' local.
912 * infrun.c: Include "common/enum-flags.h".
913 (enum step_over_what): Rename to ...
914 (enum step_over_what_flag): ... this.
915 (step_over_what): Change type.
916 (start_step_over): Change type of 'step_what' local.
917 (thread_still_needs_step_over): Now returns a step_over_what.
918 Adjust.
919 (keep_going_pass_signal): Change type of 'step_what' local.
920 * linux-tdep.c: Include "common/enum-flags.h".
921 (enum filterflags): Rename to ...
922 (enum filter_flag): ... this.
923 (filter_flags): Define.
924 (dump_mapping_p): Change type of 'filterflags' parameter.
925 (linux_find_memory_regions_full): Change type of 'filterflags'
926 local.
927 (linux_find_memory_regions_full): Pass the address of an unsigned
928 int to sscanf instead of the address of an enum.
929 * record-btrace.c (btrace_print_lines): Change type of local
930 'psl_flags'.
931 (btrace_call_history): Replace 'flags' parameter
932 with 'int_flags' parameter. Adjust.
933 (record_btrace_call_history, record_btrace_call_history_range)
934 (record_btrace_call_history_from): Rename 'flags' parameter to
935 'int_flags'. Use record_print_flags.
936 * record.h: Include "common/enum-flags.h".
937 (record_print_flags): Define.
938 * source.c: Include "common/enum-flags.h".
939 (print_source_lines_base, print_source_lines): Change type of
940 flags parameter.
941 * symtab.h: Include "common/enum-flags.h".
942 (enum print_source_lines_flags): Rename to ...
943 (enum print_source_lines_flag): ... this.
944 (print_source_lines_flags): Define.
945 (print_source_lines): Change prototype.
946
9a4073e2
PA
9472015-11-17 Pedro Alves <palves@redhat.com>
948
949 * guile/scm-disasm.c (gdbscm_disasm_read_memory): Return -1 on
950 error instead of TARGET_XFER_E_IO.
951 (gdbscm_disasm_memory_error): Always pass TARGET_XFER_E_IO to
952 memory_error.
953
66c6502d
DV
9542015-11-17 Dominik Vogt <vogt@linux.vnet.ibm.com>
955
956 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
957 (prologue_inst_adjust_sp, hppa_frame_cache): Fix left shift of negative
958 value.
959 * dwarf2read.c (read_subrange_type): Likewise.
960
db3516bb
YQ
9612015-11-16 Yao Qi <yao.qi@linaro.org>
962
963 * aarch64-tdep.c (aarch64_extract_return_value): Change array
964 buf's length to V_REGISTER_SIZE.
965
8e80f9d1
YQ
9662015-11-16 Yao Qi <yao.qi@linaro.org>
967
968 * aarch64-tdep.c (pass_in_x_or_stack): Change argument type
969 from bfd_byte * to value *. Caller updated.
970 (pass_in_x): Likewise.
971 (pass_in_v_or_stack): Likewise.
972 (pass_on_stack): Likewise.
973
0d1993c0
YQ
9742015-11-16 Yao Qi <yao.qi@linaro.org>
975
976 * aarch64-tdep.c (aarch64_push_dummy_call): Call value_contents
977 instead of value_contents_writeable.
978 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
979
ef9bd0b8
YQ
9802015-11-16 Yao Qi <yao.qi@linaro.org>
981
982 * arm-tdep.c (arm_push_dummy_call): New array buf. Store regval
983 to buf. Pass buf instead of val to push_stack_item.
984
c4312b19
YQ
9852015-11-13 Yao Qi <yao.qi@linaro.org>
986
987 PR tdep/19051
988 * arm-tdep.c (arm_type_align): Return the right alignment
989 value for vector.
990 (arm_vfp_cprc_sub_candidate): Return true for 64-bit and
991 128-bit vector types.
992 (arm_return_in_memory): Handel vector type.
993
b13c8ab2
YQ
9942015-11-13 Yao Qi <yao.qi@linaro.org>
995
996 * arm-tdep.c (arm_return_in_memory): Rewrite it.
997 (arm_return_value): Call arm_return_in_memory for
998 TYPE_CODE_COMPLEX.
999
df3b6708
YQ
10002015-11-12 Yao Qi <yao.qi@linaro.org>
1001
1002 * arm-tdep.c (push_stack_item): Change contents type to
1003 const gdb_byte *.
1004
4397c913
SM
10052015-11-11 Simon Marchi <simon.marchi@ericsson.com>
1006
1007 * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
1008 cast to PTRACE_TYPE_RET *.
1009 (inf_ptrace_store_register): Likewise.
1010
5f515954
AB
10112015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1012
1013 * avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating
1014 info sub-commands.
1015 * gnu-nat.c (add_task_commands): Likewise.
1016 * macrocmd.c (_initialize_macrocmd): Likewise.
1017
f3575e08
AB
10182015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1019
1020 * cli/cli-decode.c (add_info): Switch to class_info.
1021
dddc0e16
JB
10222015-11-09 Joel Brobecker <brobecker@adacore.com>
1023
1024 * ada-lang.c (ada_is_wrapper_field): Add special handling
1025 for fields called "RETVAL".
1026
a5eda10c
YQ
10272015-11-09 Yao Qi <yao.qi@linaro.org>
1028
1029 * arm-tdep.c (arm_exidx_new_objfile): Use
1030 ELF_STRING_ARM_unwind.
1031
c0987663
YQ
10322015-11-09 Yao Qi <yao.qi@linaro.org>
1033
1034 * infrun.c (displaced_step_in_progress_thread): New function.
1035 (handle_inferior_event_1): Call it.
1036
c86a40c6
YQ
10372015-11-05 Yao Qi <yao.qi@linaro.org>
1038
1039 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
1040 aarch64_decode_insn and decode instruction by aarch64_inst.
1041
d9ebcbce
YQ
10422015-11-05 Yao Qi <yao.qi@linaro.org>
1043
1044 * aarch64-tdep.c (extract_signed_bitfield): Remove.
1045 (decode_masked_match): Remove.
1046 (aarch64_decode_add_sub_imm): Remove.
1047 (aarch64_decode_br): Remove.
1048 (aarch64_decode_eret): Remove.
1049 (aarch64_decode_movz): Remove.
1050 (aarch64_decode_orr_shifted_register_x): Remove.
1051 (aarch64_decode_ret): Remove.
1052 (aarch64_decode_stp_offset): Remove.
1053 (aarch64_decode_stur): Remove.
1054 (aarch64_analyze_prologue): Call aarch64_decode_insn
1055 and use aarch64_inst to decode instructions.
1056
93d96012
YQ
10572015-11-05 Yao Qi <yao.qi@linaro.org>
1058
1059 * aarch64-tdep.c (aarch64_decode_stp_offset): New argument
1060 wback.
1061 (aarch64_decode_stp_offset_wb): Removed.
1062 (aarch64_analyze_prologue): Don't use
1063 aarch64_decode_stp_offset_wb.
1064
6df55226
MK
10652015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
1066
1067 PR/18376
1068 * gdb/s390-linux-tdep.c (s390_is_partial_instruction): New function.
1069 (s390_software_single_step): New function.
1070 (s390_displaced_step_hw_singlestep): New function.
1071 (s390_gdbarch_init): Fill gdbarch slots with the above.
1072
566c56c9
MK
10732015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
1074
1075 PR/18376
1076 * gdb/configure.tgt: Add linux-record.o to s390*-linux.
1077 * gdb/s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
1078 (s390_linux_record_tdep): New static global variable.
1079 (s390x_linux_record_tdep): New static global variable.
1080 (s390_all_but_pc_registers_record): New function.
1081 (s390_canonicalize_syscall): New function.
1082 (s390_linux_syscall_record): New function.
1083 (s390_linux_record_signal): New function.
1084 (s390_record_calc_disp_common): New function.
1085 (s390_record_calc_disp): New function.
1086 (s390_record_calc_disp_vsce): New function.
1087 (s390_record_calc_rl): New function.
1088 (s390_record_gpr_g): New function.
1089 (s390_record_gpr_h): New function.
1090 (s390_record_vr): New function.
1091 (s390_process_record): New function.
1092 (s390_init_linux_record_tdep): New function.
1093 (s390_gdbarch_init): Fill record function slots.
1094
394816ee
MK
10952015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
1096
1097 * record-full.c (record_full_exec_insn): Use xmalloc for temporary
1098 memory storage.
1099
0c532a29
MM
11002015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1101
1102 * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
1103 instead of DISASSEMBLY_SOURCE_DEPRECATED. Also accept /s.
1104 (_initialize_record): Document the /s modifier.
1105 * NEWS: Announce record instruction-history's new /s modifier.
1106
f94cc897
MM
11072015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1108
1109 * record-btrace.c (struct btrace_line_range): New.
1110 (btrace_mk_line_range, btrace_line_range_add)
1111 (btrace_line_range_is_empty, btrace_line_range_contains_range)
1112 (btrace_find_line_range, btrace_print_lines): New.
1113 (btrace_insn_history): Add source interleaving algorithm.
1114
a50a4026
MM
11152015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1116
1117 * disasm.h (DISASSEMBLY_SPECULATION): New.
1118 (struct disasm_insn): New.
1119 (gdb_pretty_print_insn): New.
1120 * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
1121 Update users. Print instruction number and indicate speculative
1122 execution, if requested.
1123
af70908d
MM
11242015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1125
1126 * disasm.c (dump_insns): Split into this and ...
1127 (gdb_pretty_print_insn): ... this.
1128
1c215b97
SM
11292015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1130
1131 * xtensa-linux-nat.c (supply_gregset_reg): Make static.
1132 (xtensa_linux_fetch_inferior_registers): Likewise.
1133 (xtensa_linux_store_inferior_registers): Likewise.
1134
f844cf0e
SM
11352015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1136
1137 * arm-linux-nat.c (arm_linux_read_description): Add cast.
1138
f4b0a671
SM
11392015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1140
1141 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
1142 type of rw to enum target_hw_bp_type.
1143 (ppc_linux_remove_mask_watchpoint): Likewise.
1144 * target.c (target_insert_mask_watchpoint): Likewise.
1145 (target_remove_mask_watchpoint): Likewise.
1146 * target.h (target_insert_mask_watchpoint): Likewise.
1147 (target_remove_mask_watchpoint): Likewise.
1148 (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
1149 (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
1150 * target-delegates.c: Regenerate.
1151
653090d3
SM
11522015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1153
1154 * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
1155 (get_sim_inferior_data): Likewise.
1156 (sim_inferior_data_cleanup): Likewise.
1157 (gdbsim_close_inferior): Likewise.
1158 (gdbsim_resume_inferior): Likewise.
1159 (gdbsim_wait): Likewise.
1160 (simulator_command): Likewise.
1161 (sim_command_completer): Likewise.
1162
b9559b8b
MK
11632015-11-03 Marcin Kościelnicki <koriakin@0x04.net>
1164
1165 * MAINTAINERS (Write After Approval): Add Marcin Kościelnicki.
1166
d35ae833
PA
11672015-10-30 Pedro Alves <palves@redhat.com>
1168
1169 * breakpoint.c (breakpoint_in_range_p)
1170 (breakpoint_location_address_range_overlap): New functions.
1171 * breakpoint.h (breakpoint_in_range_p): New declaration.
1172 * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
1173 in the scratch pad range, don't displaced step.
1174
10268a4c
MK
11752015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1176
1177 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
1178 size_stack_t, size_size_t, size_iovec.
1179
d9b19c49
MK
11802015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1181
1182 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
1183 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
1184 (amd64_x32_linux_init_abi): Fix size_termios.
1185
c28ebe25
MK
11862015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1187
1188 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
1189
ff83a547
MK
11902015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1191
1192 * linux-record.c (record_linux_system_call): Fix old_select.
1193
d2de23ad
MK
11942015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1195
1196 * linux-record.c (record_linux_system_call): Fix newstatat.
1197
cb658d21
MK
11982015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1199
1200 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
1201
b80d067f
MK
12022015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1203
1204 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
1205 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
1206 (amd64_x32_linux_init_abi): Add size_time_t.
1207 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
1208 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
1209 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
1210 handling.
1211 * linux-record.h (struct linux_record_tdep): Add size_time_t.
1212 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
1213
933c5a62
MK
12142015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1215
1216 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
1217
72aded86
MK
12182015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1219
1220 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
1221 size_dirent{,64}, add size_old_dirent.
1222 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
1223 add size_old_dirent.
1224 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
1225 size_old_dirent.
1226 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
1227 add size_old_dirent.
1228 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
1229 add size_old_dirent.
1230 * linux-record.c (record_linux_system_call): Fix handling of readdir
1231 and getdents{,64}.
1232 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
1233 add size_old_dirent.
1234 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
1235 size_dirent{,64}, add size_old_dirent.
1236
7571f7f2
MK
12372015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1238
1239 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
1240 size_sigset_t, size_old_sigaction, size_old_sigset_t.
1241 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
1242 size_sigset_t, size_old_sigaction, size_old_sigset_t.
1243 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
1244 size_old_sigaction, size_old_sigset_t.
1245 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
1246 size_old_sigaction, size_old_sigset_t.
1247 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
1248 size_old_sigaction, size_old_sigset_t.
1249 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
1250 size_sigset_t, size_old_sigaction, size_old_sigset_t.
1251
d625f9a9
MK
12522015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1253
1254 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
1255 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
1256
aefb52a6
MK
12572015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1258
1259 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
1260 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
1261 (amd64_x32_linux_init_abi): Remove size_siginfo.
1262 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
1263 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
1264 * linux-record.c (record_linux_system_call): Change size_siginfo
1265 to size_siginfo_t.
1266 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
1267 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
1268
d2242e34
PA
12692015-10-29 Pedro Alves <palves@redhat.com>
1270
1271 * mdebugread.c (add_data_symbol): New function, factored out from
1272 ...
1273 (parse_symbol): ... here. Delete 'theclass' local.
1274
cb0a2700
SM
12752015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1276
1277 * jit.c (jit_target_read_impl): Add cast.
1278
15cf126c
SM
12792015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1280
1281 * jit.c (jit_reader_load): Add cast.
1282
b4069958
SM
12832015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1284
1285 * dwarf2read.c (partial_die_full_name): Add cast.
1286
7535d5ed
PA
12872015-10-29 Pedro Alves <palves@redhat.com>
1288
1289 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
1290
fa4c39cb
PA
12912015-10-29 Pedro Alves <palves@redhat.com>
1292
1293 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
1294
e681cf3f
EZ
12952015-10-29 Eli Zaretskii <eliz@gnu.org>
1296
1297 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
1298 in the environment.
1299
ebf05345
PA
13002015-10-29 Pedro Alves <palves@redhat.com>
1301
1302 * gnu-v2-abi.c (gnuv2_is_destructor_name)
1303 (gnuv2_is_constructor_name): Add casts.
1304
44a8b4df
PA
13052015-10-29 Pedro Alves <palves@redhat.com>
1306
1307 * common/common-exceptions.c (exception_none): Add cast.
1308
e3bdafe2
PA
13092015-10-29 Pedro Alves <palves@redhat.com>
1310
1311 * compile/compile-c-types.c (struct type_map_instance)
1312 <gcc_type>: Rename to gcc_type_handle.
1313 (insert_type, convert_type): Adjust.
1314
9c6595ab
PA
13152015-10-29 Pedro Alves <palves@redhat.com>
1316
1317 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
1318 assume that "break" breaks out of a TRY/CATCH.
1319 * python/py-framefilter.c (py_print_single_arg): Don't assume
1320 "continue" breaks out of a TRY/CATCH.
1321 * python/py-value.c (valpy_binop_throw): New function, factored
1322 out from ...
1323 (valpy_binop): ... this.
1324 (valpy_richcompare_throw): New function, factored
1325 out from ...
1326 (valpy_richcompare): ... this.
1327 * solib.c (solib_read_symbols): Don't assume "break" breaks out
1328 of a TRY/CATCH.
1329 * common/common-exceptions.h [USE_RAW_CXX_TRY]
1330 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
1331
93084fcd
SD
13322015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
1333
1334 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
1335 as move along with [d]addu.
1336
43cdf5ae
YQ
13372015-10-28 Yao Qi <yao.qi@linaro.org>
1338
1339 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
1340 aarch64_decode_insn.
1341
b80c3053
PA
13422015-10-27 Pedro Alves <palves@redhat.com>
1343
1344 * common/print-utils.c (host_address_to_string): Rename to ...
1345 (host_address_to_string_1): ... this.
1346 * common/print-utils.h (host_address_to_string): Reimplement as
1347 wrapper around host_address_to_string_1.
1348 * utils.c (gdb_print_host_address): Rename to ...
1349 (gdb_print_host_address_1): ... this.
1350 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
1351 around host_address_to_string_1.
1352
d09f2c3f
PA
13532015-10-27 Pedro Alves <palves@redhat.com>
1354
1355 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
1356 memory_error. Rename local 'status' to 'res'.
1357 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
1358 memory_error.
1359 * corefile.c (read_stack, read_code, write_memory): Always pass
1360 TARGET_XFER_E_IO to memory_error.
1361 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
1362 memory_error. Rename parameter 'status' to 'err'.
1363 (dump_insns): Rename local 'status' to 'err'.
1364 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
1365 to 'errp'. Rename local 'status' to 'err'. Always pass
1366 TARGET_XFER_E_IO to memory_error.
1367 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
1368 * target.c (target_read_memory, target_read_raw_memory)
1369 (target_read_stack, target_read_code, target_write_memory)
1370 (target_write_raw_memory): Return -1 on error instead of
1371 TARGET_XFER_E_IO.
1372 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
1373 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
1374
c5192092
SM
13752015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1376
1377 * guile/guile-internal.h (gdbscm_with_guile): Change return
1378 types to const char *.
1379 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
1380 (struct c_data) <func>: Likewise.
1381 (struct c_data) <result>: Change type to const char *.
1382 (scscm_eval_scheme_string): Change return type to
1383 const char *.
1384 (scscm_source_scheme_script): Likewise.
1385 (gdbscm_safe_eval_string): Change type of result variable to
1386 const char * and remove cast.
1387 (gdbscm_safe_source_script): Likewise.
1388 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
1389 Change return type to const char *.
1390 (gdbscm_disasm_read_memory): Change type of status to
1391 const char *.
1392
79b289e2
PA
13932015-10-27 Pedro Alves <palves@redhat.com>
1394
1395 * source.c (openp): New local 'last_errno'. Use it to
1396 save/restore errno.
1397
709b5518
PA
13982015-10-27 Pedro Alves <palves@redhat.com>
1399
1400 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
1401
e0d13cbd
SM
14022015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1403
1404 * ctf.c (SET_ENUM_FIELD): New macro.
1405 (ctf_read_status): Use it.
1406 (ctf_read_tp): Use it.
1407
c6486df5
SM
14082015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1409
1410 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
1411 scm_t_dynwind_flags casts.
1412 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1413 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
1414 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
1415
70b8286a
SM
14162015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1417
1418 * ax.h (ax_raw_byte): New declaration.
1419 * ax-general.c (ax_raw_byte): New function.
1420 (ax_simple): Use ax_raw_byte.
1421 * ax-gdb.c (gen_printf): Likewise.
1422
a480de35
SM
14232015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1424
1425 * ada-lang.h (GROW_VECT): Add cast.
1426
a04a15f5
DE
14272015-10-26 Doug Evans <xdje42@gmail.com>
1428
1429 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
1430
d7f3ff3e
SM
14312015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1432
1433 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
1434 pointer.
1435 (simple_search_memory): Cast return of memmem.
1436
bf6778da
SM
14372015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1438
1439 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
1440
c9244484
SM
14412015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1442
1443 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
1444 -1 on error.
1445
0fde2c53
DE
14462015-10-26 Doug Evans <dje@google.com>
1447
1448 PR symtab/17391
1449 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
1450 instead of gdbarch_dwarf2_reg_to_regnum.
1451 (dwarf2_frame_cache): Ditto.
1452 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
1453 gdbarch_dwarf2_reg_to_regnum.
1454 (get_reg_value): Ditto.
1455 (dwarf2_fetch_cfa_info): Ditto.
1456 (dwarf2_frame_prev_register): Ditto.
1457 * dwarf2loc.c: #include "complaints.h".
1458 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
1459 instead of gdbarch_dwarf2_reg_to_regnum.
1460 (dwarf_expr_get_reg_value): Ditto.
1461 (read_pieced_value): Ditto.
1462 (write_pieced_value): Ditto.
1463 (dwarf2_evaluate_loc_desc_full): Ditto.
1464 (dwarf_reg_to_regnum): New function.
1465 (throw_bad_regnum_error): New function.
1466 (dwarf_reg_to_regnum_or_error): Renamed from
1467 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
1468 All callers updated. Call throw_bad_regnum_error.
1469 (locexpr_regname): Improve text of bad register number.
1470 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
1471 (dwarf_reg_to_regnum_or_error): Update prototype.
1472 * dwarf2expr.c: #include "dwarf2loc.h".
1473 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
1474 gdbarch_dwarf2_reg_to_regnum.
1475 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
1476 * gdbarch.h: Regenerate.
1477 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
1478 register.
1479 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
1480 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
1481 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
1482 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
1483 Remove warning for bad register.
1484 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
1485 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
1486 i386_svr4_reg_to_regnum. Return -1 for bad registers.
1487 (i386_svr4_reg_to_regnum): New function.
1488 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
1489 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
1490 on bad registers, return -1.
1491 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
1492 Remove warning for bad register.
1493 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
1494 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
1495 Remove warning for bad register. Return -1 for bad register.
1496 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
1497 for bad register, return -1.
1498 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
1499 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
1500 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
1501 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
1502 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1503 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
1504 for bad regs.
1505 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
1506 bad regs. Fix error result.
1507 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
1508 (reg_value_complaint): Update complaint text.
1509 * mdebugread.c (reg_value_complaint): New function.
1510 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
1511
1a70ae97
DE
15122015-10-26 Doug Evans <dje@google.com>
1513
1514 PR python/18938
1515 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
1516 All callers updated.
1517
372405a5
DE
15182015-10-26 Doug Evans <dje@google.com>
1519
1520 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
1521 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
1522 (maintenance_print_psymbols): Print address map.
1523
682b2546
DE
15242015-10-26 Doug Evans <dje@google.com>
1525
1526 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
1527
963843d4
DE
15282015-10-26 Doug Evans <dje@google.com>
1529
1530 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
1531 gdbserver/linux-low.c.
1532 (WSETSTOP): Simplify.
1533
d41401ac
DE
15342015-10-26 Doug Evans <dje@google.com>
1535
1536 * linux-thread-db.c (find_new_threads_callback): Ditto.
1537 (thread_db_pid_to_str): Ditto.
1538
1522597b
SM
15392015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1540
1541 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
1542 local char array to scm_mode_bits, use a cast instead.
1543
7acd011b
SM
15442015-10-26 Simon Marchi <simon.marchi@ericsson.com>
1545
1546 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
1547 result. Change type of element_block_ptr. Change allocation to
1548 use XNEWVEC.
1549
7cc53fba
LM
15502015-10-26 Luis Machado <lgustavo@codesourcery.com>
1551
1552 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
1553 catch_errors call instead of NULL.
1554
48ffa2b8
SM
15552015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1556
1557 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
1558 char pointer to scm_mode_bits.
1559
585a269a
SM
15602015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1561
1562 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
1563 cast.
1564
e0dd41e9
SM
15652015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1566
1567 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
1568 "data" local variable and use it.
1569
74ef968f
SM
15702015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1571
1572 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
1573 domain_enum cast.
1574 (gdbscm_lookup_symbol): Likewise.
1575
2d5a88dc
IB
15762015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
1577
1578 * d-exp.y: Remove an obsolete comment and propagate the block
1579 information to the produced expression.
1580
f4ee58bd
SM
15812015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1582
1583 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
1584 cast.
1585 (tui_add_content_elements): Likewise.
1586
1650ca11
SM
15872015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1588
1589 * cli/cli-setshow.c (do_set_command): Constify p.
1590
55e5bf59
SM
15912015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1592
1593 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
1594 (void *) cast with (gdb_byte *).
1595
49e66b4d
SM
15962015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1597
1598 * proc-service.c (ps_pdread): Add cast.
1599
cfcb22a5
SM
16002015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1601
1602 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
1603 valbuf.
1604
ce746418
SM
16052015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1606
1607 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
1608 (ia64_push_dummy_call): Remove cast and change type of "to" to
1609 array of gdb_byte.
1610
a55515ee
SM
16112015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1612
1613 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
1614
6ecf4e06
SM
16152015-10-23 Simon Marchi <simon.marchi@ericsson.com>
1616
1617 * observer.h (observer_${event}_notification_stub): Add cast.
1618
034f1a81
YQ
16192015-10-23 Yao Qi <yao.qi@linaro.org>
1620
1621 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
1622 dsd.insn_count to zero.
1623
d236ad19
PA
16242015-10-22 Pedro Alves <palves@redhat.com>
1625
1626 * infrun.c (stop_after_trap): Delete.
1627 (clear_proceed_status, handle_signal_stop, struct
1628 infcall_control_state, save_infcall_control_state)
1629 (restore_infcall_control_state): Remove references to
1630 stop_after_trap.
1631
db0f0d0c
SM
16322015-10-22 Simon Marchi <simon.marchi@ericsson.com>
1633
1634 * python/python.c (_initialize_python): Add cast.
1635
fb70bc1a
SM
16362015-10-22 Simon Marchi <simon.marchi@ericsson.com>
1637
1638 * nto-tdep.c (nto_inferior_data): Add cast.
1639
c72f45d1
PA
16402015-10-22 Pedro Alves <palves@redhat.com>
1641
1642 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
1643 windows_wait and windows_resume directly instead of
1644 wait_for_inferior and resume.
1645
60905b1e
SM
16462015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1647
1648 * xtensa-tdep.h (XTREG): Add casts.
1649 (XTREG_END): Likewise.
1650
5af9928d
SM
16512015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1652
1653 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
1654
3e45d68b
SM
16552015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1656
1657 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
1658
709476c3
SM
16592015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1660
1661 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
1662 buf to gdb_byte*.
1663 (supply_32bit_reg): Add cast.
1664 (mips64_fill_gregset): Likewise.
1665
bed91f4d
SM
16662015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1667
1668 PR python/18073
1669 * python/py-type.c (typy_get_composite): Allow returning a
1670 function type.
1671
3f2f83dd
KB
16722015-10-21 Keven Boell <keven.boell@intel.com>
1673
1674 * dwarf2read.c (set_die_type): Add read of
1675 DW_AT_allocated and DW_AT_associated.
1676 * f-typeprint.c: New include of typeprint.h
1677 (f_print_type): Add check for allocated/associated
1678 status of type.
1679 (f_type_print_varspec_suffix): Add check for
1680 * gdbtypes.c (create_array_type_with_stride):
1681 Add check for valid data location of type in
1682 case allocated or associated attributes are set.
1683 Length of an array should be only calculated if
1684 allocated or associated is resolved as true.
1685 (is_dynamic_type_internal): Add check for allocated/
1686 associated.
1687 (resolve_dynamic_array): Evaluate allocated/associated
1688 properties.
1689 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
1690 <DYN_PROP_ASSOCIATED>: New enums.
1691 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
1692 (type_not_allocated): New function.
1693 (type_not_associated): New function.
1694 * valarith.c (value_subscripted_rvalue): Add check for
1695 allocated/associated.
1696 * valprint.c: New include of typeprint.h.
1697 (valprint_check_validity): Add check for allocated/associated.
1698 (value_check_printable): Add check for allocated/
1699 associated.
1700 * typeprint.h (val_print_not_allocated): New function.
1701 (val_print_not_associated): New function.
1702 * typeprint.c (val_print_not_allocated): New function.
1703 (val_print_not_associated): New function.
1704
8689682c
AT
17052015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
1706
1707 * Makefile.in: Add arm.c/o.
1708 * arch/arm.c: New file.
1709 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
1710 (MAKE_THUMB_ADDR): Likewise.
1711 (UNMAKE_THUMB_ADDR): Likewise.
1712 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
1713 (IS_THUMB_ADDR): Move to arm.h.
1714 (MAKE_THUMB_ADDR): Likewise.
1715 (UNMAKE_THUMB_ADDR): Likewise.
1716 * configure.tgt: Add arm.o to all ARM configs.
1717
80f0110c
YQ
17182015-10-21 Yao Qi <yao.qi@linaro.org>
1719
1720 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
1721 Remove argument exp_vCont_s.
1722 * gdb.base/range-stepping.exp: Callers updated.
1723 * gdb.trace/range-stepping.exp: Likewise.
1724
d7161de4
AR
17252015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
1726
1727 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
1728 (nto_sniff_abi_note_section): New function.
1729 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
1730 binary.
1731
a9889169
AR
17322015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
1733
1734 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
1735 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
1736 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
1737 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
1738 New functions.
1739 (_initialize_nto_tdep): New forward declaration, new function.
1740 * nto-tdep.h (struct nto_inferior_data): New struct.
1741 (nto_inferior_data): New function declaration.
1742
5f3ff4f8
JK
17432015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1744
1745 * findvar.c (address_from_register): Check REGNUM validity.
1746
e5343fde
AR
17472015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1748
1749 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
1750 (init_procfs_targets): Wire new function.
1751
8a6c0ccd
AR
17522015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1753
1754 * nto-procfs.c (sys/auxv.h): Include.
1755 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
1756 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
1757 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
1758
609c3040
AR
17592015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1760
1761 * nto-procfs.c (nto_procfs_path): Rename to...
1762 (nodestr): ... this, and change type.
1763 (nto_node): Use new variable and logic accordingly.
1764 (procfs_open_1): Use new variable name. Use local buffer to construct
1765 procfrs path.
1766 (procfs_pidlist): Use NODESTR to construct procfs path.
1767 (procfs_files_info): Use NODESTR to output meaningful text.
1768 (do_attach): Construct procfs using NODESTR.
1769 (procfs_create_inferior): Compare pointer to NULL.
1770
bfd09d20
JS
17712015-10-19 Josh Stone <jistone@redhat.com>
1772
1773 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
1774 return state, even when not actively catching syscalls at all.
1775 (linux_handle_extended_wait): Mark syscall_state like an entry.
1776 (wait_lwp): Set syscall_state ignored for other traps.
1777 (linux_nat_filter_event): Likewise.
1778
29090fb6
LM
17792015-10-19 Luis Machado <lgustavo@codesourcery.com>
1780
1781 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
1782 when handling 'E', 'T', 'S', 'X' and 'W' packets.
1783 Do not set rs->waiting_for_stop_reply back to 1.
1784
774ee6d2
AR
17852015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
1786
1787 * nto-procfs.c (common/filestuff.h): Include.
1788 (procfs_can_use_hw_breakpoint): Fix enum name.
1789 (procfs_open_1): Fix compiler warning.
1790 (procfs_pidlist): Make static.
1791 (procfs_meminfo): Make static, fix type name, add missing argument.
1792 (procfs_store_registers): Make static.
1793 (procfs_thread_info): Remove unused function.
1794 (_initialize_procfs): Forward declare.
1795
e66acfb1
YQ
17962015-10-16 Yao Qi <yao.qi@arm.com>
1797
1798 * MAINTAINERS: Update my email address.
1799
8d689ee5
YQ
18002015-10-15 Yao Qi <yao.qi@linaro.org>
1801
1802 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
1803 Call gdbarch_breakpoint_from_pc to instruction length.
1804 (aarch64_linux_remove_hw_breakpoint): Likewise.
1805 * common/common-regcache.h (regcache_register_size): Declare.
1806 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
1807 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
1808 the process is 32bit, otherwise set alignment to 4.
1809 (aarch64_handle_breakpoint): Update comments.
1810 * regcache.c (regcache_register_size): New function.
1811
89fdc87f
AR
18122015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
1813
1814 * gdbarch.sh (core_regset_section): Remove.
1815 * gdbarch.h: Regenerate.
1816
6448a3e4
YQ
18172015-10-14 Yao Qi <yao.qi@linaro.org>
1818
1819 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
1820 out of it.
1821 (enum aarch64_memory_operand_type): New.
1822
33f914a1
DE
18232015-10-13 David Edelsohn <dje.gcc@gmail.com>
1824
1825 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
1826
e6a959d6
PA
18272015-10-13 Pedro Alves <palves@redhat.com>
1828
1829 * ada-lang.c (ada_enum_name): Constify local.
1830 * ada-typeprint.c (print_range_bound): Constify locals.
1831 * c-varobj.c (c_describe_child): Likewise.
1832 * cli/cli-setshow.c (do_set_command): Likewise.
1833 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1834 * dwarf2read.c (find_file_and_directory): Likewise.
1835 (anonymous_struct_prefix, dwarf2_name): Likewise.
1836 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1837 * go-lang.c (unpack_mangled_go_symbol): Likewise.
1838 * jv-typeprint.c (java_type_print_base): Likewise.
1839 * ser-tcp.c (net_open): Likewise.
1840 * symfile.c (deduce_language_from_filename): Likewise.
1841 * symtab.c (gdb_mangle_name): Likewise.
1842 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1843
170742de
PA
18442015-10-13 Pedro Alves <palves@redhat.com>
1845
1846 * infrun.c (restore_execution_direction): New function.
1847 (fetch_inferior_event): Use it instead of
1848 make_cleanup_restore_integer.
1849 (execution_direction): Change type to enum
1850 exec_direction_kind.
1851 * infrun.h (execution_direction): Likewise.
1852
bfb1c796
PA
18532015-10-13 Pedro Alves <palves@redhat.com>
1854
1855 * ada-lang.c (ada_value_primitive_packed_val): Constify
1856 locals. Use value_contents_writeable. Remove casts.
1857
aa5c10ce
PA
18582015-10-13 Pedro Alves <palves@redhat.com>
1859
1860 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
1861 and alloca calls.
1862
4666fec3
SM
18632015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1864
1865 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
1866 write_memory with write_memory_unsigned_integer.
1867
38bc8217 18682015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3953f15c
SM
1869
1870 * solib-dsbt.c (cmp_name): Constify arguments.
1871 * solib-frv.c (cmp_name): Likewise.
1872 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
1873 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1874 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1875 (gdb_bfd_lookup_symbol): Likewise.
1876 * solib.h (gdb_bfd_lookup_symbol): Likewise.
1877 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1878
a0d34a39
AB
18792015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1880
1881 * stack.c (parse_frame_specification): Remove message parameter,
1882 replace with fixed string in function body, update function
1883 comment.
1884 (frame_info): Remove message to parse_frame_specification.
1885 (select_frame_command): Likewise.
1886
edbbff4a
AB
18872015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1888
1889 * stack.c (parse_frame_specification): Delete.
1890 (parse_frame_specification_1): Rename to
1891 parse_frame_specification.
1892 (frame_info): Use parse_frame_specification.
1893 (select_frame_command): Likewise.
1894 (return_command): Use select_frame and print_stack_frame rather
1895 than frame_command and select_frame_command.
1896 (func_command): Use get_current_frame rather than
1897 parse_frame_specification.
1898
9d622bda
AB
18992015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1900
1901 * stack.c (func_command): Return early when there is no ARG
1902 string.
1903
8d3fea16
AB
19042015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1905
1906 * stack.c: Include safe-ctype.h not ctype.h.
1907 (parse_frame_specification): Use ISSPACE not isspace.
1908 (backtrace_command): Use TOLOWER not tolower.
1909
f54b226f
SM
19102015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1911
1912 * mep-tdep.c (current_me_module): Add cast.
1913 (mep_gdbarch_init): Likewise.
1914
6da660c7
SM
19152015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1916
1917 * m32c-tdep.c (m32c_move_reg_t): Replace with...
1918 (m32c_write_reg_t): ...this and...
1919 (m32c_read_reg_t): ...this.
1920 (struct m32c_reg): Update types of read and write.
1921 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
1922 adjust definition.
1923 (m32c_banked_read): Likewise.
1924 (m32c_sb_read): Likewise.
1925 (m32c_part_read): Likewise.
1926 (m32c_cat_read): Likewise.
1927 (m32c_r3r2r1r0_read): Likewise.
1928 (m32c_raw_write): Change declaration type to m32c_write_reg_t
1929 and adjust definition.
1930 (m32c_banked_write): Likewise.
1931 (m32c_sb_write): Likewise.
1932 (m32c_part_write): Likewise.
1933 (m32c_cat_write): Likewise.
1934 (m32c_r3r2r1r0_write): Likewise.
1935
1f713e48
SM
19362015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1937
1938 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
1939
cb65d272
SM
19402015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1941
1942 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
1943 gdb_sys_no_syscall instead of -1.
1944
eda14cf2
YQ
19452015-10-12 Yao Qi <yao.qi@linaro.org>
1946
1947 * NEWS: Mention the change.
1948
1c2e1515
YQ
19492015-10-12 Yao Qi <yao.qi@linaro.org>
1950
1951 * arch/aarch64-insn.c (emit_load_store): Rename to ...
1952 (aarch64_emit_load_store): ... it. All callers updated.
1953
e1c587c3
YQ
19542015-10-12 Yao Qi <yao.qi@linaro.org>
1955
1956 * arch/aarch64-insn.c (emit_insn): Rename to ...
1957 (aarch64_emit_insn): ... it. All callers updated.
1958
b6542f81
YQ
19592015-10-12 Yao Qi <yao.qi@linaro.org>
1960
1961 * aarch64-linux-tdep.c: Include arch-utils.h.
1962 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
1963 set_gdbarch_displaced_step_copy_insn,
1964 set_gdbarch_displaced_step_fixup,
1965 set_gdbarch_displaced_step_free_closure,
1966 set_gdbarch_displaced_step_location,
1967 and set_gdbarch_displaced_step_hw_singlestep.
1968 * aarch64-tdep.c (struct displaced_step_closure): New.
1969 (struct aarch64_displaced_step_data): New.
1970 (aarch64_displaced_step_b): New function.
1971 (aarch64_displaced_step_b_cond): Likewise.
1972 (aarch64_register): Likewise.
1973 (aarch64_displaced_step_cb): Likewise.
1974 (aarch64_displaced_step_tb): Likewise.
1975 (aarch64_displaced_step_adr): Likewise.
1976 (aarch64_displaced_step_ldr_literal): Likewise.
1977 (aarch64_displaced_step_others): Likewise.
1978 (aarch64_displaced_step_copy_insn): Likewise.
1979 (aarch64_displaced_step_fixup): Likewise.
1980 (aarch64_displaced_step_hw_singlestep): Likewise.
1981 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
1982 (aarch64_displaced_step_copy_insn): Declare.
1983 (aarch64_displaced_step_fixup): Declare.
1984 (aarch64_displaced_step_hw_singlestep): Declare.
1985 * arch/aarch64-insn.c (emit_insn): Moved from
1986 gdbserver/linux-aarch64-low.c.
1987 (emit_load_store): Likewise.
1988 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
1989 gdbserver/linux-aarch64-low.c.
1990 (struct aarch64_register): Likewise.
1991 (struct aarch64_memory_operand): Likewise.
1992 (ENCODE): Likewise.
1993 (can_encode_int32): New macro.
1994 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
1995 (emit_tb, emit_nop): Likewise.
1996 (emit_insn): Declare.
1997 (emit_load_store): Declare.
1998
246994ce
YQ
19992015-10-12 Yao Qi <yao.qi@linaro.org>
2000
2001 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
2002 gdbserver/linux-aarch64-low.c.
2003 (aarch64_relocate_instruction): Likewise.
2004 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
2005 (struct aarch64_insn_data): Moved from
2006 gdbserver/linux-aarch64-low.c.
2007 (struct aarch64_insn_visitor): Likewise.
2008 (aarch64_relocate_instruction): Declare.
2009
2520f728
PMR
20102015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
2011
2012 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
2013 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
2014 to the returned value.
2015
5b639dea
JB
20162015-10-09 Joel Brobecker <brobecker@adacore.com>
2017
2018 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
2019 is large enough for BIT_SIZE. Update function comment.
2020
0cafa88c
JB
20212015-10-09 Joel Brobecker <brobecker@adacore.com>
2022
2023 * ada-lang.c (ada_value_primitive_packed_val): Move
2024 src_len variable to local block where used. Override
2025 BIT_SIZE if bigger than size of resolved type.
2026
220475ed
JB
20272015-10-09 Joel Brobecker <brobecker@adacore.com>
2028
2029 * gdbtypes.h (is_scalar_type): Add extern declaration.
2030 * gdbtypes.c (is_scalar_type): Make non-static.
2031 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
2032 to compute IS_SCALAR instead of doing it ourselves.
2033
d0a9e810
JB
20342015-10-09 Joel Brobecker <brobecker@adacore.com>
2035
2036 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
2037 of case where TYPE is dynamic.
2038
f93fca70
JB
20392015-10-09 Joel Brobecker <brobecker@adacore.com>
2040
2041 * ada-lang.c (ada_unpack_from_contents): New function,
2042 extracted from ada_value_primitive_packed_val.
2043 (ada_value_primitive_packed_val): Replace extracted out code
2044 by call to ada_unpack_from_contents.
2045
a1c95e6b
JB
20462015-10-09 Joel Brobecker <brobecker@adacore.com>
2047
2048 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
2049 variable declarations.
2050
fbd000da
JB
20512015-10-09 Joel Brobecker <brobecker@adacore.com>
2052
2053 * ada-lang.c (ada_value_primitive_packed_val): Change the type
2054 of local variables src and unpacked to "gdb_type *" instead of
2055 "unsigned char *".
2056
086ca51f
JB
20572015-10-09 Joel Brobecker <brobecker@adacore.com>
2058
2059 * ada-lang.c (ada_value_primitive_packed_val): Make the name
2060 of various local variables more explicit and consistent.
2061 No real code change otherwise.
2062
c5bcd278
SM
20632015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2064
2065 * i386-tdep.h (struct gdbarch_tdep): Change type of
2066 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
2067
78c5b882
SM
20682015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2069
2070 * cris-tdep.c (struct instruction_environment): Change type of
2071 byte_order to enum bfd_endian.
2072
f9fa37b3
SM
20732015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2074
2075 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
2076 enum gdb_syscall casts.
2077
7c543f7b
SM
20782015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2079
2080 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
2081 * arm-tdep.c (struct stack_item): Likewise.
2082 (push_stack_item): Add gdb_byte* cast.
2083 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
2084 (push_stack_item): Add gdb_byte* cast.
2085 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
2086 and add cast.
2087 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
2088 (push_stack_item): Add gdb_byte* cast.
2089 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
2090 add cast.
2091 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
2092 gdb_byte*.
2093 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
2094 gdb_byte* and remove unnecessary cast.
2095 (h8300h_extract_return_value): Likewise.
2096 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
2097 (h8300h_store_return_value): Likewise.
2098 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
2099 gdb_byte* and remove unnecessary cast.
2100 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
2101 and add cast.
2102 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
2103 gdb_byte* and remove unnecessary cast.
2104 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
2105 valbuf.
2106 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
2107 (mep_pseudo_cr64_read): Likewise.
2108 (mep_pseudo_csr_write): Likewise.
2109 (mep_pseudo_cr32_write): Likewise.
2110 (mep_pseudo_cr64_write): Likewise.
2111 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
2112 gdb_byte* and add cast.
2113 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
2114 gdb_byte* and remove unnecessary cast.
2115 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
2116 valbuf.
2117 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
2118 gdb_byte*.
2119 * printcmd.c (void): Likewise.
2120 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
2121 gdb_byte* and add cast.
2122 (infpy_write_memory): Likewise.
2123 (infpy_search_memory): Likewise.
2124 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
2125 and add cast.
2126 (regcache_raw_write_unsigned): Likewise.
2127 (regcache_cooked_write_signed): Likewise.
2128 (regcache_cooked_write_unsigned): Likewise.
2129 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
2130 gdb_byte*.
2131
7567e115
SM
21322015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2133
2134 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
2135 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
2136
f9acce4a
EZ
21372015-10-09 Eli Zaretskii <eliz@gnu.org>
2138
2139 * stack.c (print_stack_frame):
2140 * utils.c (printchar): Fix typos in commentary.
2141
d5d8c4e1
IB
21422015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
2143
2144 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
2145 (PostfixExpression): Support `expr.sizeof' expressions.
2146 (PrimaryExpression): Support `typeof(expr)' expressions.
2147
4e7de155
MR
21482015-10-08 Maciej W. Rozycki <macro@imgtec.com>
2149
2150 * MAINTAINERS: Update my email address.
2151
04c4fe8c
MM
21522015-10-08 Markus Metzger <markus.t.metzger@intel.com>
2153
2154 * record-btrace.c (record_btrace_resume): Fix void return.
2155
f77ee802
YQ
21562015-10-07 Yao Qi <yao.qi@linaro.org>
2157
2158 * aarch64-tdep.c: Include opcode/aarch64.h.
2159 (submask): Move it above.
2160 (bit): Likewise.
2161 (bits): Likewise.
2162 (aarch64_software_single_step): Call aarch64_decode_insn.
2163 Decode instruction by aarch64_inst instead of using
2164 aarch64_decode_bcond and decode_masked_match.
2165
cbd641ed
PS
21662015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2167
2168 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
2169 only when the file is binary.
2170
ae4e2501 21712015-10-02 James Bowman <james.bowman@ftdichip.com>
2172
2173 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
2174 subroutine handling.
2175
dd0a637a
SM
21762015-10-01 Simon Marchi <simon.marchi@ericsson.com>
2177
2178 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
2179
1fd60fc0
DE
21802015-09-30 Doug Evans <dje@google.com>
2181
2182 * dwarf2read.c (setup_type_unit_groups): Add comment.
2183
398e0813
PA
21842015-09-30 Pedro Alves <palves@redhat.com>
2185
2186 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
2187 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
2188 (x86_linux_create_target): Don't install
2189 x86_linux_always_non_stop_p.
2190
6ab24463
DB
21912015-09-30 Don Breazeal <donb@codesourcery.com>
2192
2193 * remote.c (remote_parse_stop_reply): Call strprefix instead
2194 of strncmp.
2195
ede5f151
SM
21962015-09-30 Simon Marchi <simon.marchi@ericsson.com>
2197
2198 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
2199 * gdbarch.h: Regenerate.
2200 * i386-tdep.c (i386_gdbarch_init): Remove cast to
2201 struct gdbarch_tdep_info *.
2202 * mips-tdep.c (mips_gdbarch_init): Likewise.
2203 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
2204 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2205 * spu-multiarch.c (spu_gdbarch): Likewise.
2206
51c935fa 22072015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
2208
2209 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
2210 record a NULL value.
2211
3b1ad7d5
KB
22122015-09-29 Kevin Buettner <kevinb@redhat.com>
2213
2214 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
2215 and union arguments the same as pointer arguments when determining
2216 size of argument.
2217
86feccb9 22182015-09-29 James Bowman <james.bowman@ftdichip.com>
2219
2220 * ft32-tdep.c: #include "opcode/ft32.h".
2221 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
2222 (ft32_analyze_prologue): Use FT32_* macros.
2223
2181a6c6
SM
22242015-09-28 Simon Marchi <simon.marchi@ericsson.com>
2225
84d73afc 2226 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
2227 comment.
2228
245af596
DE
22292015-09-28 Doug Evans <dje@google.com>
2230
2231 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
2232
c402ef90
DE
22332015-09-28 Doug Evans <dje@google.com>
2234
2235 * common/filestuff.c (make_cleanup_close): Update comment.
2236
38bc8217 22372015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
bc84451b
SM
2238
2239 * btrace.c (parse_xml_btrace_block): Fix cast of
2240 xml_find_attribute's return value.
2241 * memory-map.c (memory_map_start_memory): Likewise.
2242 * solib-svr4.c (library_list_start_library): Likewise.
2243 * solib-target.c (library_list_start_segment): Likewise.
2244 (library_list_start_section): Likewise.
2245 * tracepoint.c (traceframe_info_start_memory): Likewise.
2246
ba587d55
IB
22472015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
2248
2249 * d-namespace.c (d_lookup_symbol): New arg langdef.
2250 All callers updated. Support looking up symbol as a primitive type.
2251 (lookup_module_scope): New arg langdef. All callers updated.
2252 Call d_lookup_symbol directly for simple bare symbols.
2253
19ba03f4
SM
22542015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2255
2256 * macrocmd.c (print_macro_callback): Add cast(s).
2257 * macrotab.c (macro_bcache_str): Likewise.
2258 (new_macro_definition): Likewise.
2259 * main.c (captured_main): Likewise.
2260 * maint.c (print_bfd_section_info): Likewise.
2261 * mdebugread.c (mdebug_build_psymtabs): Likewise.
2262 (basic_type): Likewise.
2263 * memattr.c (mem_region_cmp): Likewise.
2264 * memory-map.c (memory_map_start_memory): Likewise.
2265 (memory_map_end_memory): Likewise.
2266 (memory_map_start_property): Likewise.
2267 (memory_map_end_property): Likewise.
2268 (clear_result): Likewise.
2269 * memrange.c (compare_mem_ranges): Likewise.
2270 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
2271 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
2272 * mi/mi-console.c (mi_console_file_delete): Likewise.
2273 (mi_console_file_fputs): Likewise.
2274 (mi_console_raw_packet): Likewise.
2275 (mi_console_file_flush): Likewise.
2276 (mi_console_set_raw): Likewise.
2277 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
2278 (mi_new_thread): Likewise.
2279 (mi_thread_exit): Likewise.
2280 (mi_record_changed): Likewise.
2281 (mi_inferior_added): Likewise.
2282 (mi_inferior_appeared): Likewise.
2283 (mi_inferior_exit): Likewise.
2284 (mi_inferior_removed): Likewise.
2285 (mi_interp_data): Likewise.
2286 (mi_on_normal_stop): Likewise.
2287 (mi_traceframe_changed): Likewise.
2288 (mi_tsv_created): Likewise.
2289 (mi_tsv_deleted): Likewise.
2290 (mi_tsv_modified): Likewise.
2291 (mi_breakpoint_created): Likewise.
2292 (mi_breakpoint_deleted): Likewise.
2293 (mi_breakpoint_modified): Likewise.
2294 (mi_output_running_pid): Likewise.
2295 (mi_inferior_count): Likewise.
2296 (mi_solib_loaded): Likewise.
2297 (mi_solib_unloaded): Likewise.
2298 (mi_command_param_changed): Likewise.
2299 (mi_memory_changed): Likewise.
2300 (report_initial_inferior): Likewise.
2301 (mi_ui_out): Likewise.
2302 (mi_set_logging): Likewise.
2303 * mi/mi-main.c (collect_cores): Likewise.
2304 (print_one_inferior): Likewise.
2305 (free_vector_of_ints): Likewise.
2306 (free_splay_tree): Likewise.
2307 (mi_execute_command): Likewise.
2308 * mi/mi-out.c (mi_table_body): Likewise.
2309 (mi_table_end): Likewise.
2310 (mi_table_header): Likewise.
2311 (mi_begin): Likewise.
2312 (mi_end): Likewise.
2313 (mi_field_int): Likewise.
2314 (mi_field_string): Likewise.
2315 (mi_field_fmt): Likewise.
2316 (mi_flush): Likewise.
2317 (mi_redirect): Likewise.
2318 (field_separator): Likewise.
2319 (mi_open): Likewise.
2320 (mi_close): Likewise.
2321 (mi_out_buffered): Likewise.
2322 (mi_out_rewind): Likewise.
2323 (mi_out_put): Likewise.
2324 (mi_version): Likewise.
2325 (mi_out_data_dtor): Likewise.
2326 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
2327 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
2328 * minidebug.c (lzma_open): Likewise.
2329 (lzma_pread): Likewise.
2330 (lzma_close): Likewise.
2331 (lzma_stat): Likewise.
2332 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
2333 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
2334 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
2335 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
2336 (mips_micro_frame_cache): Likewise.
2337 (mips_insn32_frame_cache): Likewise.
2338 (mips_stub_frame_cache): Likewise.
2339 (gdb_print_insn_mips): Likewise.
2340 (value_of_mips_user_reg): Likewise.
2341 (mips_gdbarch_init): Likewise.
2342 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
2343 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
2344 (mipsnbsd_supply_gregset): Likewise.
2345 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
2346 (am33_collect_gregset_method): Likewise.
2347 (am33_collect_fpregset_method): Likewise.
2348 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
2349 * moxie-tdep.c (moxie_frame_cache): Likewise.
2350 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
2351 (msp430_analyze_frame_prologue): Likewise.
2352 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
2353 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
2354 (nios2_collect_gregset): Likewise.
2355 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
2356 (nios2_stub_frame_cache): Likewise.
2357 * objc-lang.c (find_methods): Likewise.
2358 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2359 (get_objfile_pspace_data): Likewise.
2360 (get_objfile_bfd_data): Likewise.
2361 (objfile_bfd_data_free): Likewise.
2362 (add_to_objfile_sections): Likewise.
2363 (do_free_objfile_cleanup): Likewise.
2364 (resume_section_map_updates_cleanup): Likewise.
2365 * opencl-lang.c (builtin_opencl_type): Likewise.
2366 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2367 * osdata.c (osdata_start_osdata): Likewise.
2368 (osdata_start_item): Likewise.
2369 (osdata_start_column): Likewise.
2370 (osdata_end_column): Likewise.
2371 (clear_parsing_data): Likewise.
2372 (osdata_free_cleanup): Likewise.
2373 * parse.c (type_stack_cleanup): Likewise.
2374 (exp_uses_objfile_iter): Likewise.
2375 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
2376 (ppc_linux_collect_gregset): Likewise.
2377 (ppu2spu_prev_arch): Likewise.
2378 (ppu2spu_this_id): Likewise.
2379 (ppu2spu_prev_register): Likewise.
2380 (ppu2spu_unwind_register): Likewise.
2381 (ppu2spu_sniffer): Likewise.
2382 (ppu2spu_dealloc_cache): Likewise.
2383 (ppc_linux_init_abi): Likewise.
2384 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
2385 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2386 * progspace.c (restore_program_space): Likewise.
2387 * psymtab.c (find_pc_sect_psymtab): Likewise.
2388 (compare_psymbols): Likewise.
2389 (psymbol_bcache_full): Likewise.
2390 (allocate_psymtab): Likewise.
2391 (discard_psymtabs_upto): Likewise.
2392 * python/py-block.c (set_block): Likewise.
2393 (del_objfile_blocks): Likewise.
2394 * python/py-breakpoint.c (build_bp_list): Likewise.
2395 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
2396 (build_inferior_list): Likewise.
2397 (py_free_inferior): Likewise.
2398 * python/py-objfile.c (py_free_objfile): Likewise.
2399 (objfile_to_objfile_object): Likewise.
2400 * python/py-prettyprint.c (py_restore_tstate): Likewise.
2401 * python/py-progspace.c (py_free_pspace): Likewise.
2402 (pspace_to_pspace_object): Likewise.
2403 * python/py-symbol.c (set_symbol): Likewise.
2404 (del_objfile_symbols): Likewise.
2405 * python/py-symtab.c (set_sal): Likewise.
2406 (set_symtab): Likewise.
2407 (del_objfile_symtab): Likewise.
2408 (del_objfile_sal): Likewise.
2409 * python/py-type.c (save_objfile_types): Likewise.
2410 (set_type): Likewise.
2411 * python/py-unwind.c (pyuw_prev_register): Likewise.
2412 (pyuw_on_new_gdbarch): Likewise.
2413 * python/py-utils.c (py_decref): Likewise.
2414 (py_xdecref): Likewise.
2415 (gdb_py_generic_dict): Likewise.
2416 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
2417 (gdbpy_clone_xmethod_worker_data): Likewise.
2418 (gdbpy_get_xmethod_arg_types): Likewise.
2419 (gdbpy_get_xmethod_result_type): Likewise.
2420 (gdbpy_invoke_xmethod): Likewise.
2421 * python/python.c (gdbpy_apply_type_printers): Likewise.
2422 (gdbpy_free_type_printers): Likewise.
2423 * record-btrace.c (record_btrace_disable_callback): Likewise.
2424 (bfcache_hash): Likewise.
2425 (bfcache_eq): Likewise.
2426 (btrace_get_frame_function): Likewise.
2427 (record_btrace_frame_unwind_stop_reason): Likewise.
2428 (record_btrace_frame_this_id): Likewise.
2429 (record_btrace_frame_prev_register): Likewise.
2430 (record_btrace_frame_dealloc_cache): Likewise.
2431 * record-full.c (record_full_message_wrapper): Likewise.
2432 (record_full_save_cleanups): Likewise.
2433 * regcache.c (regcache_descr): Likewise.
2434 (do_regcache_xfree): Likewise.
2435 (do_regcache_invalidate): Likewise.
2436 (do_cooked_read): Likewise.
2437 (regcache_transfer_regset): Likewise.
2438 * reggroups.c (reggroup_add): Likewise.
2439 (reggroup_next): Likewise.
2440 (reggroup_prev): Likewise.
2441 * remote-fileio.c (do_remote_fileio_request): Likewise.
2442 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
2443 (do_notif_event_xfree): Likewise.
2444 * remote.c (get_remote_arch_state): Likewise.
2445 (remote_pspace_data_cleanup): Likewise.
2446 (get_remote_exec_file): Likewise.
2447 (set_pspace_remote_exec_file): Likewise.
2448 (compare_pnums): Likewise.
2449 (clear_threads_listing_context): Likewise.
2450 (remote_newthread_step): Likewise.
2451 (start_thread): Likewise.
2452 (end_thread): Likewise.
2453 (remove_child_of_pending_fork): Likewise.
2454 (remove_stop_reply_for_inferior): Likewise.
2455 (remove_stop_reply_of_remote_state): Likewise.
2456 (remote_notif_remove_once_on_match): Likewise.
2457 (stop_reply_match_ptid_and_ws): Likewise.
2458 (kill_child_of_pending_fork): Likewise.
2459 (register_remote_g_packet_guess): Likewise.
2460 (remote_read_description_p): Likewise.
2461 (remote_read_description): Likewise.
2462 (free_actions_list_cleanup_wrapper): Likewise.
2463 (remote_async_serial_handler): Likewise.
2464 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
2465 (rl78_analyze_frame_prologue): Likewise.
2466 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
2467 (ppc_supply_fpregset): Likewise.
2468 (ppc_supply_vsxregset): Likewise.
2469 (ppc_supply_vrregset): Likewise.
2470 (ppc_collect_gregset): Likewise.
2471 (ppc_collect_fpregset): Likewise.
2472 (ppc_collect_vsxregset): Likewise.
2473 (ppc_collect_vrregset): Likewise.
2474 (e500_move_ev_register): Likewise.
2475 (do_regcache_raw_write): Likewise.
2476 (rs6000_frame_cache): Likewise.
2477 (rs6000_epilogue_frame_cache): Likewise.
2478 (rs6000_gdbarch_init): Likewise.
2479 * rx-tdep.c (rx_get_opcode_byte): Likewise.
2480 (rx_analyze_frame_prologue): Likewise.
2481 (rx_frame_type): Likewise.
2482 (rx_frame_sniffer_common): Likewise.
2483 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
2484 (s390_frame_unwind_cache): Likewise.
2485 (s390_stub_frame_unwind_cache): Likewise.
2486 (s390_sigtramp_frame_unwind_cache): Likewise.
2487 * score-tdep.c (score_make_prologue_cache): Likewise.
2488 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
2489 (sentinel_frame_prev_arch): Likewise.
2490 * ser-base.c (fd_event): Likewise.
2491 (push_event): Likewise.
2492 (ser_base_write): Likewise.
2493 * ser-pipe.c (pipe_close): Likewise.
2494 * serial.c (serial_write): Likewise.
2495 * sh-tdep.c (sh_frame_cache): Likewise.
2496 (sh_stub_this_id): Likewise.
2497 * sh64-tdep.c (sh64_frame_cache): Likewise.
2498 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2499 (library_list_start_library): Likewise.
2500 (library_list_start_list): Likewise.
2501 (solib_aix_free_library_list): Likewise.
2502 * solib-darwin.c (get_darwin_info): Likewise.
2503 * solib-dsbt.c (get_dsbt_info): Likewise.
2504 * solib-spu.c (append_ocl_sos): Likewise.
2505 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2506 (get_svr4_info): Likewise.
2507 (library_list_start_library): Likewise.
2508 (svr4_library_list_start_list): Likewise.
2509 (hash_probe_and_action): Likewise.
2510 (equal_probe_and_action): Likewise.
2511 (svr4_update_solib_event_breakpoint): Likewise.
2512 (set_solib_svr4_fetch_link_map_offsets): Likewise.
2513 (svr4_fetch_link_map_offsets): Likewise.
2514 (svr4_have_link_map_offsets): Likewise.
2515 * solib-target.c (library_list_start_segment): Likewise.
2516 (library_list_start_section): Likewise.
2517 (library_list_start_library): Likewise.
2518 (library_list_end_library): Likewise.
2519 (library_list_start_list): Likewise.
2520 (solib_target_free_library_list): Likewise.
2521 * solib.c (solib_ops): Likewise.
2522 (set_solib_ops): Likewise.
2523 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2524 * sparc-tdep.c (sparc_frame_cache): Likewise.
2525 (sparc32_frame_cache): Likewise.
2526 (sparc32_supply_gregset): Likewise.
2527 (sparc32_collect_gregset): Likewise.
2528 (sparc32_supply_fpregset): Likewise.
2529 (sparc32_collect_fpregset): Likewise.
2530 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2531 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2532 (sparc64_collect_gregset): Likewise.
2533 (sparc64_supply_fpregset): Likewise.
2534 (sparc64_collect_fpregset): Likewise.
2535 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
2536 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2537 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2538 (sparc64obsd_trapframe_cache): Likewise.
2539 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
2540 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2541 * spu-multiarch.c (spu_gdbarch): Likewise.
2542 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
2543 (spu2ppu_prev_arch): Likewise.
2544 (spu2ppu_this_id): Likewise.
2545 (spu2ppu_prev_register): Likewise.
2546 (spu2ppu_dealloc_cache): Likewise.
2547 (spu_dis_asm_print_address): Likewise.
2548 (gdb_print_insn_spu): Likewise.
2549 (spu_get_overlay_table): Likewise.
2550 * stabsread.c (rs6000_builtin_type): Likewise.
2551 * stack.c (do_print_variable_and_value): Likewise.
2552 * stap-probe.c (get_stap_base_address_1): Likewise.
2553 * symfile-debug.c (debug_qf_has_symbols): Likewise.
2554 (debug_qf_find_last_source_symtab): Likewise.
2555 (debug_qf_forget_cached_source_info): Likewise.
2556 (debug_qf_map_symtabs_matching_filename): Likewise.
2557 (debug_qf_lookup_symbol): Likewise.
2558 (debug_qf_print_stats): Likewise.
2559 (debug_qf_dump): Likewise.
2560 (debug_qf_relocate): Likewise.
2561 (debug_qf_expand_symtabs_for_function): Likewise.
2562 (debug_qf_expand_all_symtabs): Likewise.
2563 (debug_qf_expand_symtabs_with_fullname): Likewise.
2564 (debug_qf_map_matching_symbols): Likewise.
2565 (debug_qf_expand_symtabs_matching): Likewise.
2566 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
2567 (debug_qf_map_symbol_filenames): Likewise.
2568 (debug_sym_get_probes): Likewise.
2569 (debug_sym_new_init): Likewise.
2570 (debug_sym_init): Likewise.
2571 (debug_sym_read): Likewise.
2572 (debug_sym_read_psymbols): Likewise.
2573 (debug_sym_finish): Likewise.
2574 (debug_sym_offsets): Likewise.
2575 (debug_sym_read_linetable): Likewise.
2576 (debug_sym_relocate): Likewise.
2577 (uninstall_symfile_debug_logging): Likewise.
2578 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
2579 * symfile.c (place_section): Likewise.
2580 (add_section_size_callback): Likewise.
2581 (load_progress): Likewise.
2582 (load_section_callback): Likewise.
2583 (clear_memory_write_data): Likewise.
2584 (allocate_symtab): Likewise.
2585 * symmisc.c (maintenance_expand_file_matcher): Likewise.
2586 * symtab.c (lookup_symtab_callback): Likewise.
2587 (hash_demangled_name_entry): Likewise.
2588 (eq_demangled_name_entry): Likewise.
2589 (get_symbol_cache): Likewise.
2590 (symbol_cache_cleanup): Likewise.
2591 (set_symbol_cache_size): Likewise.
2592 (symbol_cache_flush): Likewise.
2593 (maintenance_print_symbol_cache): Likewise.
2594 (maintenance_print_symbol_cache_statistics): Likewise.
2595 (delete_filename_seen_cache): Likewise.
2596 (output_partial_symbol_filename): Likewise.
2597 (search_symbols_file_matches): Likewise.
2598 (search_symbols_name_matches): Likewise.
2599 (do_free_completion_list): Likewise.
2600 (maybe_add_partial_symtab_filename): Likewise.
2601 (get_main_info): Likewise.
2602 (main_info_cleanup): Likewise.
2603 * target-dcache.c (target_dcache_cleanup): Likewise.
2604 (target_dcache_init_p): Likewise.
2605 (target_dcache_invalidate): Likewise.
2606 (target_dcache_get): Likewise.
2607 (target_dcache_get_or_init): Likewise.
2608 * target-descriptions.c (target_find_description): Likewise.
2609 (tdesc_find_type): Likewise.
2610 (tdesc_data_cleanup): Likewise.
2611 (tdesc_find_arch_register): Likewise.
2612 (tdesc_register_name): Likewise.
2613 (tdesc_register_type): Likewise.
2614 (tdesc_register_reggroup_p): Likewise.
2615 (set_tdesc_pseudo_register_name): Likewise.
2616 (set_tdesc_pseudo_register_type): Likewise.
2617 (set_tdesc_pseudo_register_reggroup_p): Likewise.
2618 (tdesc_use_registers): Likewise.
2619 (free_target_description): Likewise.
2620 * target-memory.c (compare_block_starting_address): Likewise.
2621 (cleanup_request_data): Likewise.
2622 (cleanup_write_requests_vector): Likewise.
2623 * target.c (open_target): Likewise.
2624 (cleanup_restore_target_terminal): Likewise.
2625 (free_memory_read_result_vector): Likewise.
2626 * thread.c (disable_thread_stack_temporaries): Likewise.
2627 (finish_thread_state_cleanup): Likewise.
2628 (do_restore_current_thread_cleanup): Likewise.
2629 (restore_current_thread_cleanup_dtor): Likewise.
2630 (set_thread_refcount): Likewise.
2631 (tp_array_compar): Likewise.
2632 (do_captured_thread_select): Likewise.
2633 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
2634 (tic6x_stub_this_id): Likewise.
2635 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
2636 * top.c (do_restore_instream_cleanup): Likewise.
2637 (gdb_readline_wrapper_cleanup): Likewise.
2638 (kill_or_detach): Likewise.
2639 (print_inferior_quit_action): Likewise.
2640 * tracefile-tfile.c (match_blocktype): Likewise.
2641 (build_traceframe_info): Likewise.
2642 * tracefile.c (trace_file_writer_xfree): Likewise.
2643 * tracepoint.c (memrange_cmp): Likewise.
2644 (do_collect_symbol): Likewise.
2645 (do_clear_collection_list): Likewise.
2646 (do_restore_current_traceframe_cleanup): Likewise.
2647 (restore_current_traceframe_cleanup_dtor): Likewise.
2648 (free_current_marker): Likewise.
2649 (traceframe_info_start_memory): Likewise.
2650 (traceframe_info_start_tvar): Likewise.
2651 (free_result): Likewise.
2652 * tramp-frame.c (tramp_frame_cache): Likewise.
2653 * tui/tui-file.c (tui_file_delete): Likewise.
2654 (tui_fileopen): Likewise.
2655 (tui_sfileopen): Likewise.
2656 (tui_file_isatty): Likewise.
2657 (tui_file_rewind): Likewise.
2658 (tui_file_put): Likewise.
2659 (tui_file_fputs): Likewise.
2660 (tui_file_get_strbuf): Likewise.
2661 (tui_file_adjust_strbuf): Likewise.
2662 (tui_file_flush): Likewise.
2663 * tui/tui-layout.c (make_command_window): Likewise.
2664 (make_data_window): Likewise.
2665 (show_source_disasm_command): Likewise.
2666 (show_data): Likewise.
2667 (make_source_or_disasm_window): Likewise.
2668 (show_source_or_disasm_and_command): Likewise.
2669 * tui/tui-out.c (tui_field_int): Likewise.
2670 (tui_field_string): Likewise.
2671 (tui_field_fmt): Likewise.
2672 (tui_text): Likewise.
2673 * typeprint.c (hash_typedef_field): Likewise.
2674 (eq_typedef_field): Likewise.
2675 (do_free_typedef_hash): Likewise.
2676 (copy_typedef_hash_element): Likewise.
2677 (do_free_global_table): Likewise.
2678 (find_global_typedef): Likewise.
2679 (find_typedef_in_hash): Likewise.
2680 * ui-file.c (ui_file_write_for_put): Likewise.
2681 (do_ui_file_xstrdup): Likewise.
2682 (mem_file_delete): Likewise.
2683 (mem_file_rewind): Likewise.
2684 (mem_file_put): Likewise.
2685 (mem_file_write): Likewise.
2686 (stdio_file_delete): Likewise.
2687 (stdio_file_flush): Likewise.
2688 (stdio_file_read): Likewise.
2689 (stdio_file_write): Likewise.
2690 (stdio_file_write_async_safe): Likewise.
2691 (stdio_file_fputs): Likewise.
2692 (stdio_file_isatty): Likewise.
2693 (stdio_file_fseek): Likewise.
2694 (tee_file_delete): Likewise.
2695 (tee_file_flush): Likewise.
2696 (tee_file_write): Likewise.
2697 (tee_file_fputs): Likewise.
2698 (tee_file_isatty): Likewise.
2699 * ui-out.c (do_cleanup_table_end): Likewise.
2700 (do_cleanup_end): Likewise.
2701 * user-regs.c (user_reg_add): Likewise.
2702 (user_reg_map_name_to_regnum): Likewise.
2703 (usernum_to_user_reg): Likewise.
2704 (maintenance_print_user_registers): Likewise.
2705 * utils.c (do_bfd_close_cleanup): Likewise.
2706 (do_fclose_cleanup): Likewise.
2707 (do_obstack_free): Likewise.
2708 (do_ui_file_delete): Likewise.
2709 (do_ui_out_redirect_pop): Likewise.
2710 (do_free_section_addr_info): Likewise.
2711 (restore_integer): Likewise.
2712 (do_unpush_target): Likewise.
2713 (do_htab_delete_cleanup): Likewise.
2714 (do_restore_ui_file): Likewise.
2715 (do_value_free): Likewise.
2716 (do_free_so): Likewise.
2717 (free_current_contents): Likewise.
2718 (do_regfree_cleanup): Likewise.
2719 (core_addr_hash): Likewise.
2720 (core_addr_eq): Likewise.
2721 (do_free_char_ptr_vec): Likewise.
2722 * v850-tdep.c (v850_frame_cache): Likewise.
2723 * varobj.c (do_free_variable_cleanup): Likewise.
2724 * vax-tdep.c (vax_supply_gregset): Likewise.
2725 (vax_frame_cache): Likewise.
2726 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
2727 * xml-support.c (gdb_xml_body_text): Likewise.
2728 (gdb_xml_values_cleanup): Likewise.
2729 (gdb_xml_start_element): Likewise.
2730 (gdb_xml_start_element_wrapper): Likewise.
2731 (gdb_xml_end_element): Likewise.
2732 (gdb_xml_end_element_wrapper): Likewise.
2733 (gdb_xml_cleanup): Likewise.
2734 (gdb_xml_fetch_external_entity): Likewise.
2735 (gdb_xml_parse_attr_enum): Likewise.
2736 (xinclude_start_include): Likewise.
2737 (xinclude_end_include): Likewise.
2738 (xml_xinclude_default): Likewise.
2739 (xml_xinclude_start_doctype): Likewise.
2740 (xml_xinclude_end_doctype): Likewise.
2741 (xml_xinclude_cleanup): Likewise.
2742 (xml_fetch_content_from_file): Likewise.
2743 * xml-syscall.c (free_syscalls_info): Likewise.
2744 (syscall_start_syscall): Likewise.
2745 * xml-tdesc.c (tdesc_end_arch): Likewise.
2746 (tdesc_end_osabi): Likewise.
2747 (tdesc_end_compatible): Likewise.
2748 (tdesc_start_target): Likewise.
2749 (tdesc_start_feature): Likewise.
2750 (tdesc_start_reg): Likewise.
2751 (tdesc_start_union): Likewise.
2752 (tdesc_start_struct): Likewise.
2753 (tdesc_start_flags): Likewise.
2754 (tdesc_start_field): Likewise.
2755 (tdesc_start_vector): Likewise.
2756 (fetch_available_features_from_target): Likewise.
2757 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
2758 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
2759 (xtensa_frame_cache): Likewise.
2760 (xtensa_frame_prev_register): Likewise.
2761 (xtensa_extract_return_value): Likewise.
2762
9a3c8263
SM
27632015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2764
2765 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
2766 (aarch64_make_stub_cache): Likewise.
2767 (value_of_aarch64_user_reg): Likewise.
2768 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
2769 (get_ada_inferior_data): Likewise.
2770 (get_ada_pspace_data): Likewise.
2771 (ada_pspace_data_cleanup): Likewise.
2772 (ada_complete_symbol_matcher): Likewise.
2773 (ada_exc_search_name_matches): Likewise.
2774 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2775 (get_ada_tasks_inferior_data): Likewise.
2776 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
2777 (splay_obstack_alloc): Likewise.
2778 (splay_obstack_free): Likewise.
2779 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
2780 (alpha_linux_collect_gregset): Likewise.
2781 (alpha_linux_supply_fpregset): Likewise.
2782 (alpha_linux_collect_fpregset): Likewise.
2783 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2784 * alpha-tdep.c (alpha_lds): Likewise.
2785 (alpha_sts): Likewise.
2786 (alpha_sigtramp_frame_unwind_cache): Likewise.
2787 (alpha_heuristic_frame_unwind_cache): Likewise.
2788 (alpha_supply_int_regs): Likewise.
2789 (alpha_fill_int_regs): Likewise.
2790 (alpha_supply_fp_regs): Likewise.
2791 (alpha_fill_fp_regs): Likewise.
2792 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
2793 (alphanbsd_aout_supply_gregset): Likewise.
2794 (alphanbsd_supply_gregset): Likewise.
2795 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
2796 (amd64_x32_linux_init_abi): Likewise.
2797 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2798 (amd64_collect_native_gregset): Likewise.
2799 * amd64-tdep.c (amd64_frame_cache): Likewise.
2800 (amd64_sigtramp_frame_cache): Likewise.
2801 (amd64_epilogue_frame_cache): Likewise.
2802 (amd64_supply_fxsave): Likewise.
2803 (amd64_supply_xsave): Likewise.
2804 (amd64_collect_fxsave): Likewise.
2805 (amd64_collect_xsave): Likewise.
2806 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
2807 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
2808 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2809 (arm_linux_collect_gregset): Likewise.
2810 (arm_linux_supply_nwfpe): Likewise.
2811 (arm_linux_collect_nwfpe): Likewise.
2812 (arm_linux_supply_vfp): Likewise.
2813 (arm_linux_collect_vfp): Likewise.
2814 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
2815 (arm_prologue_unwind_stop_reason): Likewise.
2816 (arm_prologue_this_id): Likewise.
2817 (arm_prologue_prev_register): Likewise.
2818 (arm_exidx_data_free): Likewise.
2819 (arm_find_exidx_entry): Likewise.
2820 (arm_stub_this_id): Likewise.
2821 (arm_m_exception_this_id): Likewise.
2822 (arm_m_exception_prev_register): Likewise.
2823 (arm_normal_frame_base): Likewise.
2824 (gdb_print_insn_arm): Likewise.
2825 (arm_objfile_data_free): Likewise.
2826 (arm_record_special_symbol): Likewise.
2827 (value_of_arm_user_reg): Likewise.
2828 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
2829 (armbsd_supply_gregset): Likewise.
2830 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
2831 (get_auto_load_pspace_data): Likewise.
2832 (hash_loaded_script_entry): Likewise.
2833 (eq_loaded_script_entry): Likewise.
2834 (clear_section_scripts): Likewise.
2835 (collect_matching_scripts): Likewise.
2836 * auxv.c (auxv_inferior_data_cleanup): Likewise.
2837 (get_auxv_inferior_data): Likewise.
2838 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2839 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
2840 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2841 (target_bfd_xclose): Likewise.
2842 (target_bfd_get_section_table): Likewise.
2843 * bfin-tdep.c (bfin_frame_cache): Likewise.
2844 * block.c (find_block_in_blockvector): Likewise.
2845 (call_site_for_pc): Likewise.
2846 (block_find_non_opaque_type_preferred): Likewise.
2847 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
2848 (signal_catchpoint_remove_location): Likewise.
2849 (signal_catchpoint_breakpoint_hit): Likewise.
2850 (signal_catchpoint_print_one): Likewise.
2851 (signal_catchpoint_print_mention): Likewise.
2852 (signal_catchpoint_print_recreate): Likewise.
2853 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
2854 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
2855 (bp_location_compare_addrs): Likewise.
2856 (get_first_locp_gte_addr): Likewise.
2857 (check_tracepoint_command): Likewise.
2858 (do_map_commands_command): Likewise.
2859 (get_breakpoint_objfile_data): Likewise.
2860 (free_breakpoint_probes): Likewise.
2861 (do_captured_breakpoint_query): Likewise.
2862 (compare_breakpoints): Likewise.
2863 (bp_location_compare): Likewise.
2864 (bpstat_remove_breakpoint_callback): Likewise.
2865 (do_delete_breakpoint_cleanup): Likewise.
2866 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
2867 (bsd_uthread_set_collect_uthread): Likewise.
2868 (bsd_uthread_activate): Likewise.
2869 (bsd_uthread_fetch_registers): Likewise.
2870 (bsd_uthread_store_registers): Likewise.
2871 * btrace.c (check_xml_btrace_version): Likewise.
2872 (parse_xml_btrace_block): Likewise.
2873 (parse_xml_btrace_pt_config_cpu): Likewise.
2874 (parse_xml_btrace_pt_raw): Likewise.
2875 (parse_xml_btrace_pt): Likewise.
2876 (parse_xml_btrace_conf_bts): Likewise.
2877 (parse_xml_btrace_conf_pt): Likewise.
2878 (do_btrace_data_cleanup): Likewise.
2879 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
2880 * charset.c (cleanup_iconv): Likewise.
2881 (do_cleanup_iterator): Likewise.
2882 * cli-out.c (cli_uiout_dtor): Likewise.
2883 (cli_table_begin): Likewise.
2884 (cli_table_body): Likewise.
2885 (cli_table_end): Likewise.
2886 (cli_table_header): Likewise.
2887 (cli_begin): Likewise.
2888 (cli_end): Likewise.
2889 (cli_field_int): Likewise.
2890 (cli_field_skip): Likewise.
2891 (cli_field_string): Likewise.
2892 (cli_field_fmt): Likewise.
2893 (cli_spaces): Likewise.
2894 (cli_text): Likewise.
2895 (cli_message): Likewise.
2896 (cli_wrap_hint): Likewise.
2897 (cli_flush): Likewise.
2898 (cli_redirect): Likewise.
2899 (out_field_fmt): Likewise.
2900 (field_separator): Likewise.
2901 (cli_out_set_stream): Likewise.
2902 * cli/cli-cmds.c (compare_symtabs): Likewise.
2903 * cli/cli-dump.c (call_dump_func): Likewise.
2904 (restore_section_callback): Likewise.
2905 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
2906 (do_restore_user_call_depth): Likewise.
2907 (do_free_command_lines_cleanup): Likewise.
2908 * coff-pe-read.c (get_section_vmas): Likewise.
2909 (pe_as16): Likewise.
2910 (pe_as32): Likewise.
2911 * coffread.c (coff_symfile_read): Likewise.
2912 * common/agent.c (agent_look_up_symbols): Likewise.
2913 * common/filestuff.c (do_close_cleanup): Likewise.
2914 * common/format.c (free_format_pieces_cleanup): Likewise.
2915 * common/vec.c (vec_o_reserve): Likewise.
2916 * compile/compile-c-support.c (print_one_macro): Likewise.
2917 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
2918 (eq_symbol_error): Likewise.
2919 (del_symbol_error): Likewise.
2920 (error_symbol_once): Likewise.
2921 (gcc_convert_symbol): Likewise.
2922 (gcc_symbol_address): Likewise.
2923 (hash_symname): Likewise.
2924 (eq_symname): Likewise.
2925 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
2926 (eq_type_map_instance): Likewise.
2927 (insert_type): Likewise.
2928 (convert_type): Likewise.
2929 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
2930 (setup_sections): Likewise.
2931 (link_hash_table_free): Likewise.
2932 (copy_sections): Likewise.
2933 * compile/compile-object-run.c (do_module_cleanup): Likewise.
2934 * compile/compile.c (compile_print_value): Likewise.
2935 (do_rmdir): Likewise.
2936 (cleanup_compile_instance): Likewise.
2937 (cleanup_unlink_file): Likewise.
2938 * completer.c (free_completion_tracker): Likewise.
2939 * corelow.c (add_to_spuid_list): Likewise.
2940 * cp-namespace.c (reset_directive_searched): Likewise.
2941 * cp-support.c (reset_directive_searched): Likewise.
2942 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
2943 (cris_frame_unwind_cache): Likewise.
2944 * d-lang.c (builtin_d_type): Likewise.
2945 * d-namespace.c (reset_directive_searched): Likewise.
2946 * dbxread.c (dbx_free_symfile_info): Likewise.
2947 (do_free_bincl_list_cleanup): Likewise.
2948 * disasm.c (hash_dis_line_entry): Likewise.
2949 (eq_dis_line_entry): Likewise.
2950 (dis_asm_print_address): Likewise.
2951 (fprintf_disasm): Likewise.
2952 (do_ui_file_delete): Likewise.
2953 * doublest.c (convert_floatformat_to_doublest): Likewise.
2954 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
2955 (dummy_frame_prev_register): Likewise.
2956 (dummy_frame_this_id): Likewise.
2957 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
2958 (cache_eq): Likewise.
2959 (cache_find): Likewise.
2960 (tailcall_frame_this_id): Likewise.
2961 (dwarf2_tailcall_prev_register_first): Likewise.
2962 (tailcall_frame_prev_register): Likewise.
2963 (tailcall_frame_dealloc_cache): Likewise.
2964 (tailcall_frame_prev_arch): Likewise.
2965 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
2966 (dwarf2_frame_set_init_reg): Likewise.
2967 (dwarf2_frame_init_reg): Likewise.
2968 (dwarf2_frame_set_signal_frame_p): Likewise.
2969 (dwarf2_frame_signal_frame_p): Likewise.
2970 (dwarf2_frame_set_adjust_regnum): Likewise.
2971 (dwarf2_frame_adjust_regnum): Likewise.
2972 (clear_pointer_cleanup): Likewise.
2973 (dwarf2_frame_cache): Likewise.
2974 (find_cie): Likewise.
2975 (dwarf2_frame_find_fde): Likewise.
2976 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
2977 (free_dwarf_expr_context_cleanup): Likewise.
2978 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
2979 (locexpr_get_frame_base): Likewise.
2980 (loclist_find_frame_base_location): Likewise.
2981 (loclist_get_frame_base): Likewise.
2982 (dwarf_expr_dwarf_call): Likewise.
2983 (dwarf_expr_get_base_type): Likewise.
2984 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
2985 (dwarf_expr_get_obj_addr): Likewise.
2986 (entry_data_value_coerce_ref): Likewise.
2987 (entry_data_value_copy_closure): Likewise.
2988 (entry_data_value_free_closure): Likewise.
2989 (get_frame_address_in_block_wrapper): Likewise.
2990 (dwarf2_evaluate_property): Likewise.
2991 (dwarf2_compile_property_to_c): Likewise.
2992 (needs_frame_read_addr_from_reg): Likewise.
2993 (needs_frame_get_reg_value): Likewise.
2994 (needs_frame_frame_base): Likewise.
2995 (needs_frame_frame_cfa): Likewise.
2996 (needs_frame_tls_address): Likewise.
2997 (needs_frame_dwarf_call): Likewise.
2998 (needs_dwarf_reg_entry_value): Likewise.
2999 (get_ax_pc): Likewise.
3000 (locexpr_read_variable): Likewise.
3001 (locexpr_read_variable_at_entry): Likewise.
3002 (locexpr_read_needs_frame): Likewise.
3003 (locexpr_describe_location): Likewise.
3004 (locexpr_tracepoint_var_ref): Likewise.
3005 (locexpr_generate_c_location): Likewise.
3006 (loclist_read_variable): Likewise.
3007 (loclist_read_variable_at_entry): Likewise.
3008 (loclist_describe_location): Likewise.
3009 (loclist_tracepoint_var_ref): Likewise.
3010 (loclist_generate_c_location): Likewise.
3011 * dwarf2read.c (line_header_hash_voidp): Likewise.
3012 (line_header_eq_voidp): Likewise.
3013 (dwarf2_has_info): Likewise.
3014 (dwarf2_get_section_info): Likewise.
3015 (locate_dwz_sections): Likewise.
3016 (hash_file_name_entry): Likewise.
3017 (eq_file_name_entry): Likewise.
3018 (delete_file_name_entry): Likewise.
3019 (dw2_setup): Likewise.
3020 (dw2_get_file_names_reader): Likewise.
3021 (dw2_find_pc_sect_compunit_symtab): Likewise.
3022 (hash_signatured_type): Likewise.
3023 (eq_signatured_type): Likewise.
3024 (add_signatured_type_cu_to_table): Likewise.
3025 (create_debug_types_hash_table): Likewise.
3026 (lookup_dwo_signatured_type): Likewise.
3027 (lookup_dwp_signatured_type): Likewise.
3028 (lookup_signatured_type): Likewise.
3029 (hash_type_unit_group): Likewise.
3030 (eq_type_unit_group): Likewise.
3031 (get_type_unit_group): Likewise.
3032 (process_psymtab_comp_unit_reader): Likewise.
3033 (sort_tu_by_abbrev_offset): Likewise.
3034 (process_skeletonless_type_unit): Likewise.
3035 (psymtabs_addrmap_cleanup): Likewise.
3036 (dwarf2_read_symtab): Likewise.
3037 (psymtab_to_symtab_1): Likewise.
3038 (die_hash): Likewise.
3039 (die_eq): Likewise.
3040 (load_full_comp_unit_reader): Likewise.
3041 (reset_die_in_process): Likewise.
3042 (free_cu_line_header): Likewise.
3043 (handle_DW_AT_stmt_list): Likewise.
3044 (hash_dwo_file): Likewise.
3045 (eq_dwo_file): Likewise.
3046 (hash_dwo_unit): Likewise.
3047 (eq_dwo_unit): Likewise.
3048 (create_dwo_cu_reader): Likewise.
3049 (create_dwo_unit_in_dwp_v1): Likewise.
3050 (create_dwo_unit_in_dwp_v2): Likewise.
3051 (lookup_dwo_unit_in_dwp): Likewise.
3052 (dwarf2_locate_dwo_sections): Likewise.
3053 (dwarf2_locate_common_dwp_sections): Likewise.
3054 (dwarf2_locate_v2_dwp_sections): Likewise.
3055 (hash_dwp_loaded_cutus): Likewise.
3056 (eq_dwp_loaded_cutus): Likewise.
3057 (lookup_dwo_cutu): Likewise.
3058 (abbrev_table_free_cleanup): Likewise.
3059 (dwarf2_free_abbrev_table): Likewise.
3060 (find_partial_die_in_comp_unit): Likewise.
3061 (free_line_header_voidp): Likewise.
3062 (follow_die_offset): Likewise.
3063 (follow_die_sig_1): Likewise.
3064 (free_heap_comp_unit): Likewise.
3065 (free_stack_comp_unit): Likewise.
3066 (dwarf2_free_objfile): Likewise.
3067 (per_cu_offset_and_type_hash): Likewise.
3068 (per_cu_offset_and_type_eq): Likewise.
3069 (get_die_type_at_offset): Likewise.
3070 (partial_die_hash): Likewise.
3071 (partial_die_eq): Likewise.
3072 (dwarf2_per_objfile_free): Likewise.
3073 (hash_strtab_entry): Likewise.
3074 (eq_strtab_entry): Likewise.
3075 (add_string): Likewise.
3076 (hash_symtab_entry): Likewise.
3077 (eq_symtab_entry): Likewise.
3078 (delete_symtab_entry): Likewise.
3079 (cleanup_mapped_symtab): Likewise.
3080 (add_indices_to_cpool): Likewise.
3081 (hash_psymtab_cu_index): Likewise.
3082 (eq_psymtab_cu_index): Likewise.
3083 (add_address_entry_worker): Likewise.
3084 (unlink_if_set): Likewise.
3085 (write_one_signatured_type): Likewise.
3086 (save_gdb_index_command): Likewise.
3087 * elfread.c (elf_symtab_read): Likewise.
3088 (elf_gnu_ifunc_cache_hash): Likewise.
3089 (elf_gnu_ifunc_cache_eq): Likewise.
3090 (elf_gnu_ifunc_record_cache): Likewise.
3091 (elf_gnu_ifunc_resolve_by_cache): Likewise.
3092 (elf_get_probes): Likewise.
3093 (probe_key_free): Likewise.
3094 * f-lang.c (builtin_f_type): Likewise.
3095 * frame-base.c (frame_base_append_sniffer): Likewise.
3096 (frame_base_set_default): Likewise.
3097 (frame_base_find_by_frame): Likewise.
3098 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
3099 (frame_unwind_append_unwinder): Likewise.
3100 (frame_unwind_find_by_frame): Likewise.
3101 * frame.c (frame_addr_hash): Likewise.
3102 (frame_addr_hash_eq): Likewise.
3103 (frame_stash_find): Likewise.
3104 (do_frame_register_read): Likewise.
3105 (unwind_to_current_frame): Likewise.
3106 (frame_cleanup_after_sniffer): Likewise.
3107 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
3108 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
3109 * ft32-tdep.c (ft32_frame_cache): Likewise.
3110 * gcore.c (do_bfd_delete_cleanup): Likewise.
3111 (gcore_create_callback): Likewise.
3112 * gdb_bfd.c (hash_bfd): Likewise.
3113 (eq_bfd): Likewise.
3114 (gdb_bfd_open): Likewise.
3115 (free_one_bfd_section): Likewise.
3116 (gdb_bfd_ref): Likewise.
3117 (gdb_bfd_unref): Likewise.
3118 (get_section_descriptor): Likewise.
3119 (gdb_bfd_map_section): Likewise.
3120 (gdb_bfd_crc): Likewise.
3121 (gdb_bfd_mark_parent): Likewise.
3122 (gdb_bfd_record_inclusion): Likewise.
3123 (gdb_bfd_requires_relocations): Likewise.
3124 (print_one_bfd): Likewise.
3125 * gdbtypes.c (type_pair_hash): Likewise.
3126 (type_pair_eq): Likewise.
3127 (builtin_type): Likewise.
3128 (objfile_type): Likewise.
3129 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
3130 (vtable_address_point_offset): Likewise.
3131 (gnuv3_get_vtable): Likewise.
3132 (hash_value_and_voffset): Likewise.
3133 (eq_value_and_voffset): Likewise.
3134 (compare_value_and_voffset): Likewise.
3135 (compute_vtable_size): Likewise.
3136 (gnuv3_get_typeid_type): Likewise.
3137 * go-lang.c (builtin_go_type): Likewise.
3138 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
3139 (bkscm_eq_block_smob): Likewise.
3140 (bkscm_objfile_block_map): Likewise.
3141 (bkscm_del_objfile_blocks): Likewise.
3142 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
3143 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
3144 (gdbscm_disasm_print_address): Likewise.
3145 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
3146 (frscm_eq_frame_smob): Likewise.
3147 (frscm_inferior_frame_map): Likewise.
3148 (frscm_del_inferior_frames): Likewise.
3149 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
3150 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
3151 (ofscm_objfile_smob_from_objfile): Likewise.
3152 * guile/scm-ports.c (ioscm_write): Likewise.
3153 (ioscm_file_port_delete): Likewise.
3154 (ioscm_file_port_rewind): Likewise.
3155 (ioscm_file_port_put): Likewise.
3156 (ioscm_file_port_write): Likewise.
3157 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
3158 (psscm_pspace_smob_from_pspace): Likewise.
3159 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
3160 (scscm_recording_unwind_handler): Likewise.
3161 (gdbscm_with_catch): Likewise.
3162 (scscm_call_0_body): Likewise.
3163 (scscm_call_1_body): Likewise.
3164 (scscm_call_2_body): Likewise.
3165 (scscm_call_3_body): Likewise.
3166 (scscm_call_4_body): Likewise.
3167 (scscm_apply_1_body): Likewise.
3168 (scscm_eval_scheme_string): Likewise.
3169 (gdbscm_safe_eval_string): Likewise.
3170 (scscm_source_scheme_script): Likewise.
3171 (gdbscm_safe_source_script): Likewise.
3172 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
3173 (gdbscm_call_scm_from_stringn): Likewise.
3174 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
3175 (syscm_eq_symbol_smob): Likewise.
3176 (syscm_get_symbol_map): Likewise.
3177 (syscm_del_objfile_symbols): Likewise.
3178 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
3179 (stscm_eq_symtab_smob): Likewise.
3180 (stscm_objfile_symtab_map): Likewise.
3181 (stscm_del_objfile_symtabs): Likewise.
3182 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
3183 (tyscm_eq_type_smob): Likewise.
3184 (tyscm_type_map): Likewise.
3185 (tyscm_copy_type_recursive): Likewise.
3186 (save_objfile_types): Likewise.
3187 * guile/scm-utils.c (extract_arg): Likewise.
3188 * h8300-tdep.c (h8300_frame_cache): Likewise.
3189 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
3190 * hppa-tdep.c (compare_unwind_entries): Likewise.
3191 (find_unwind_entry): Likewise.
3192 (hppa_frame_cache): Likewise.
3193 (hppa_stub_frame_unwind_cache): Likewise.
3194 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
3195 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
3196 (hppaobsd_supply_fpregset): Likewise.
3197 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
3198 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3199 * i386-tdep.c (i386_frame_cache): Likewise.
3200 (i386_epilogue_frame_cache): Likewise.
3201 (i386_sigtramp_frame_cache): Likewise.
3202 (i386_supply_gregset): Likewise.
3203 (i386_collect_gregset): Likewise.
3204 (i386_gdbarch_init): Likewise.
3205 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
3206 (i386obsd_trapframe_cache): Likewise.
3207 * i387-tdep.c (i387_supply_fsave): Likewise.
3208 (i387_collect_fsave): Likewise.
3209 (i387_supply_fxsave): Likewise.
3210 (i387_collect_fxsave): Likewise.
3211 (i387_supply_xsave): Likewise.
3212 (i387_collect_xsave): Likewise.
3213 * ia64-tdep.c (ia64_frame_cache): Likewise.
3214 (ia64_sigtramp_frame_cache): Likewise.
3215 * infcmd.c (attach_command_continuation): Likewise.
3216 (attach_command_continuation_free_args): Likewise.
3217 * inferior.c (restore_inferior): Likewise.
3218 (delete_thread_of_inferior): Likewise.
3219 * inflow.c (inflow_inferior_data_cleanup): Likewise.
3220 (get_inflow_inferior_data): Likewise.
3221 (inflow_inferior_exit): Likewise.
3222 * infrun.c (displaced_step_clear_cleanup): Likewise.
3223 (restore_current_uiout_cleanup): Likewise.
3224 (release_stop_context_cleanup): Likewise.
3225 (do_restore_infcall_suspend_state_cleanup): Likewise.
3226 (do_restore_infcall_control_state_cleanup): Likewise.
3227 (restore_inferior_ptid): Likewise.
3228 * inline-frame.c (block_starting_point_at): Likewise.
3229 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
3230 * jit.c (get_jit_objfile_data): Likewise.
3231 (get_jit_program_space_data): Likewise.
3232 (jit_object_close_impl): Likewise.
3233 (jit_find_objf_with_entry_addr): Likewise.
3234 (jit_breakpoint_deleted): Likewise.
3235 (jit_unwind_reg_set_impl): Likewise.
3236 (jit_unwind_reg_get_impl): Likewise.
3237 (jit_dealloc_cache): Likewise.
3238 (jit_frame_sniffer): Likewise.
3239 (jit_frame_prev_register): Likewise.
3240 (jit_prepend_unwinder): Likewise.
3241 (jit_inferior_exit_hook): Likewise.
3242 (free_objfile_data): Likewise.
3243 * jv-lang.c (jv_per_objfile_free): Likewise.
3244 (get_dynamics_objfile): Likewise.
3245 (get_java_class_symtab): Likewise.
3246 (builtin_java_type): Likewise.
3247 * language.c (language_string_char_type): Likewise.
3248 (language_bool_type): Likewise.
3249 (language_lookup_primitive_type): Likewise.
3250 (language_lookup_primitive_type_as_symbol): Likewise.
3251 * linespec.c (hash_address_entry): Likewise.
3252 (eq_address_entry): Likewise.
3253 (iterate_inline_only): Likewise.
3254 (iterate_name_matcher): Likewise.
3255 (decode_line_2_compare_items): Likewise.
3256 (collect_one_symbol): Likewise.
3257 (compare_symbols): Likewise.
3258 (compare_msymbols): Likewise.
3259 (add_symtabs_to_list): Likewise.
3260 (collect_symbols): Likewise.
3261 (compare_msyms): Likewise.
3262 (add_minsym): Likewise.
3263 (cleanup_linespec_result): Likewise.
3264 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
3265 * linux-nat.c (delete_lwp_cleanup): Likewise.
3266 (count_events_callback): Likewise.
3267 (select_event_lwp_callback): Likewise.
3268 (resume_stopped_resumed_lwps): Likewise.
3269 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
3270 (invalidate_linux_cache_inf): Likewise.
3271 (get_linux_inferior_data): Likewise.
3272 (linux_find_memory_regions_thunk): Likewise.
3273 (linux_make_mappings_callback): Likewise.
3274 (linux_corefile_thread_callback): Likewise.
3275 (find_mapping_size): Likewise.
3276 * linux-thread-db.c (find_new_threads_callback): Likewise.
3277 * lm32-tdep.c (lm32_frame_cache): Likewise.
3278 * m2-lang.c (builtin_m2_type): Likewise.
3279 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
3280 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
3281 (m32r_linux_supply_gregset): Likewise.
3282 (m32r_linux_collect_gregset): Likewise.
3283 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3284 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3285 * m68k-tdep.c (m68k_frame_cache): Likewise.
3286 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3287 (m68kbsd_supply_gregset): Likewise.
3288 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3289 * m88k-tdep.c (m88k_frame_cache): Likewise.
3290 (m88k_supply_gregset): Likewise.
3291
224c3ddb
SM
32922015-09-25 Simon Marchi <simon.marchi@ericsson.com>
3293
3294 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
3295 to allocation result assignment.
3296 * ada-exp.y (write_object_renaming): Likewise.
3297 (write_ambiguous_var): Likewise.
3298 (ada_nget_field_index): Likewise.
3299 (write_var_or_type): Likewise.
3300 * ada-lang.c (ada_decode_symbol): Likewise.
3301 (ada_value_assign): Likewise.
3302 (value_pointer): Likewise.
3303 (cache_symbol): Likewise.
3304 (add_nonlocal_symbols): Likewise.
3305 (ada_name_for_lookup): Likewise.
3306 (symbol_completion_add): Likewise.
3307 (ada_to_fixed_type_1): Likewise.
3308 (ada_get_next_arg): Likewise.
3309 (defns_collected): Likewise.
3310 * ada-lex.l (processId): Likewise.
3311 (processString): Likewise.
3312 * ada-tasks.c (read_known_tasks_array): Likewise.
3313 (read_known_tasks_list): Likewise.
3314 * ada-typeprint.c (decoded_type_name): Likewise.
3315 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
3316 * amd64-tdep.c (amd64_push_arguments): Likewise.
3317 (amd64_displaced_step_copy_insn): Likewise.
3318 (amd64_classify_insn_at): Likewise.
3319 (amd64_relocate_instruction): Likewise.
3320 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3321 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
3322 (initialize_current_architecture): Likewise.
3323 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3324 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
3325 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
3326 (arm_push_dummy_call): Likewise.
3327 (extend_buffer_earlier): Likewise.
3328 (arm_adjust_breakpoint_address): Likewise.
3329 (arm_skip_stub): Likewise.
3330 * auto-load.c (filename_is_in_pattern): Likewise.
3331 (maybe_add_script_file): Likewise.
3332 (maybe_add_script_text): Likewise.
3333 (auto_load_objfile_script_1): Likewise.
3334 * auxv.c (ld_so_xfer_auxv): Likewise.
3335 * ax-general.c (new_agent_expr): Likewise.
3336 (grow_expr): Likewise.
3337 (ax_reg_mask): Likewise.
3338 * bcache.c (bcache_full): Likewise.
3339 * breakpoint.c (program_breakpoint_here_p): Likewise.
3340 * btrace.c (parse_xml_raw): Likewise.
3341 * build-id.c (build_id_to_debug_bfd): Likewise.
3342 * buildsym.c (end_symtab_with_blockvector): Likewise.
3343 * c-exp.y (string_exp): Likewise.
3344 (qualified_name): Likewise.
3345 (write_destructor_name): Likewise.
3346 (operator_stoken): Likewise.
3347 (parse_number): Likewise.
3348 (scan_macro_expansion): Likewise.
3349 (yylex): Likewise.
3350 (c_print_token): Likewise.
3351 * c-lang.c (c_get_string): Likewise.
3352 (emit_numeric_character): Likewise.
3353 * charset.c (wchar_iterate): Likewise.
3354 * cli/cli-cmds.c (complete_command): Likewise.
3355 (make_command): Likewise.
3356 * cli/cli-dump.c (restore_section_callback): Likewise.
3357 (restore_binary_file): Likewise.
3358 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
3359 * cli/cli-script.c (execute_control_command): Likewise.
3360 * cli/cli-setshow.c (do_set_command): Likewise.
3361 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
3362 (read_pe_exported_syms): Likewise.
3363 * coffread.c (coff_read_struct_type): Likewise.
3364 (coff_read_enum_type): Likewise.
3365 * common/btrace-common.c (btrace_data_append): Likewise.
3366 * common/buffer.c (buffer_grow): Likewise.
3367 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
3368 * common/format.c (parse_format_string): Likewise.
3369 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
3370 * common/xml-utils.c (xml_escape_text): Likewise.
3371 * compile/compile-object-load.c (copy_sections): Likewise.
3372 (compile_object_load): Likewise.
3373 * compile/compile-object-run.c (compile_object_run): Likewise.
3374 * completer.c (filename_completer): Likewise.
3375 * corefile.c (read_memory_typed_address): Likewise.
3376 (write_memory_unsigned_integer): Likewise.
3377 (write_memory_signed_integer): Likewise.
3378 (complete_set_gnutarget): Likewise.
3379 * corelow.c (get_core_register_section): Likewise.
3380 * cp-name-parser.y (d_grab): Likewise.
3381 (allocate_info): Likewise.
3382 (cp_new_demangle_parse_info): Likewise.
3383 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
3384 (cp_lookup_symbol_in_namespace): Likewise.
3385 (lookup_namespace_scope): Likewise.
3386 (find_symbol_in_baseclass): Likewise.
3387 (cp_lookup_nested_symbol): Likewise.
3388 (cp_lookup_transparent_type_loop): Likewise.
3389 * cp-support.c (copy_string_to_obstack): Likewise.
3390 (make_symbol_overload_list): Likewise.
3391 (make_symbol_overload_list_namespace): Likewise.
3392 (make_symbol_overload_list_adl_namespace): Likewise.
3393 (first_component_command): Likewise.
3394 * cp-valprint.c (cp_print_value): Likewise.
3395 * ctf.c (ctf_xfer_partial): Likewise.
3396 * d-exp.y (StringExp): Likewise.
3397 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
3398 (lookup_module_scope): Likewise.
3399 (find_symbol_in_baseclass): Likewise.
3400 (d_lookup_nested_symbol): Likewise.
3401 * dbxread.c (find_stab_function_addr): Likewise.
3402 (read_dbx_symtab): Likewise.
3403 (dbx_end_psymtab): Likewise.
3404 (cp_set_block_scope): Likewise.
3405 * dcache.c (dcache_alloc): Likewise.
3406 * demangle.c (_initialize_demangler): Likewise.
3407 * dicos-tdep.c (dicos_load_module_p): Likewise.
3408 * dictionary.c (dict_create_hashed_expandable): Likewise.
3409 (dict_create_linear_expandable): Likewise.
3410 (expand_hashtable): Likewise.
3411 (add_symbol_linear_expandable): Likewise.
3412 * dwarf2-frame.c (add_cie): Likewise.
3413 (add_fde): Likewise.
3414 (dwarf2_build_frame_info): Likewise.
3415 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
3416 (dwarf_expr_fetch_address): Likewise.
3417 (add_piece): Likewise.
3418 (execute_stack_op): Likewise.
3419 * dwarf2loc.c (chain_candidate): Likewise.
3420 (dwarf_entry_parameter_to_value): Likewise.
3421 (read_pieced_value): Likewise.
3422 (write_pieced_value): Likewise.
3423 * dwarf2read.c (dwarf2_read_section): Likewise.
3424 (add_type_unit): Likewise.
3425 (read_comp_units_from_section): Likewise.
3426 (fixup_go_packaging): Likewise.
3427 (dwarf2_compute_name): Likewise.
3428 (dwarf2_physname): Likewise.
3429 (create_dwo_unit_in_dwp_v1): Likewise.
3430 (create_dwo_unit_in_dwp_v2): Likewise.
3431 (read_func_scope): Likewise.
3432 (read_call_site_scope): Likewise.
3433 (dwarf2_attach_fields_to_type): Likewise.
3434 (process_structure_scope): Likewise.
3435 (mark_common_block_symbol_computed): Likewise.
3436 (read_common_block): Likewise.
3437 (abbrev_table_read_table): Likewise.
3438 (guess_partial_die_structure_name): Likewise.
3439 (fixup_partial_die): Likewise.
3440 (add_file_name): Likewise.
3441 (dwarf2_const_value_data): Likewise.
3442 (dwarf2_const_value_attr): Likewise.
3443 (build_error_marker_type): Likewise.
3444 (guess_full_die_structure_name): Likewise.
3445 (anonymous_struct_prefix): Likewise.
3446 (typename_concat): Likewise.
3447 (dwarf2_canonicalize_name): Likewise.
3448 (dwarf2_name): Likewise.
3449 (write_constant_as_bytes): Likewise.
3450 (dwarf2_fetch_constant_bytes): Likewise.
3451 (copy_string): Likewise.
3452 (parse_macro_definition): Likewise.
3453 * elfread.c (elf_symfile_segments): Likewise.
3454 (elf_rel_plt_read): Likewise.
3455 (elf_gnu_ifunc_resolve_by_cache): Likewise.
3456 (elf_gnu_ifunc_resolve_by_got): Likewise.
3457 (elf_read_minimal_symbols): Likewise.
3458 (elf_gnu_ifunc_record_cache): Likewise.
3459 * event-top.c (top_level_prompt): Likewise.
3460 (command_line_handler): Likewise.
3461 * exec.c (resize_section_table): Likewise.
3462 * expprint.c (print_subexp_standard): Likewise.
3463 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3464 * findcmd.c (parse_find_args): Likewise.
3465 * findvar.c (address_from_register): Likewise.
3466 * frame.c (get_prev_frame_always): Likewise.
3467 * gdb_bfd.c (gdb_bfd_ref): Likewise.
3468 (get_section_descriptor): Likewise.
3469 * gdb_obstack.c (obconcat): Likewise.
3470 (obstack_strdup): Likewise.
3471 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
3472 (create_set_type): Likewise.
3473 (lookup_unsigned_typename): Likewise.
3474 (lookup_signed_typename): Likewise.
3475 (resolve_dynamic_union): Likewise.
3476 (resolve_dynamic_struct): Likewise.
3477 (add_dyn_prop): Likewise.
3478 (copy_dynamic_prop_list): Likewise.
3479 (arch_flags_type): Likewise.
3480 (append_composite_type_field_raw): Likewise.
3481 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
3482 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
3483 * go-exp.y (string_exp): Likewise.
3484 * go-lang.c (go_demangle): Likewise.
3485 * guile/guile.c (compute_scheme_string): Likewise.
3486 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3487 (gdbscm_canonicalize_command_name): Likewise.
3488 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
3489 (ioscm_init_memory_port): Likewise.
3490 (ioscm_reinit_memory_port): Likewise.
3491 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
3492 (gdbscm_gc_dup_argv): Likewise.
3493 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3494 * hppa-tdep.c (internalize_unwinds): Likewise.
3495 (read_unwind_info): Likewise.
3496 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
3497 (windows_core_xfer_shared_libraries): Likewise.
3498 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3499 (i386_stap_parse_special_token_triplet): Likewise.
3500 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3501 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3502 * inf-child.c (inf_child_fileio_readlink): Likewise.
3503 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3504 (inf_ptrace_store_register): Likewise.
3505 * infrun.c (follow_exec): Likewise.
3506 (displaced_step_prepare_throw): Likewise.
3507 (save_stop_context): Likewise.
3508 (save_infcall_suspend_state): Likewise.
3509 * jit.c (jit_read_descriptor): Likewise.
3510 (jit_read_code_entry): Likewise.
3511 (jit_symtab_line_mapping_add_impl): Likewise.
3512 (finalize_symtab): Likewise.
3513 (jit_unwind_reg_get_impl): Likewise.
3514 * jv-exp.y (QualifiedName): Likewise.
3515 * jv-lang.c (get_java_utf8_name): Likewise.
3516 (type_from_class): Likewise.
3517 (java_demangle_type_signature): Likewise.
3518 (java_class_name_from_physname): Likewise.
3519 * jv-typeprint.c (java_type_print_base): Likewise.
3520 * jv-valprint.c (java_value_print): Likewise.
3521 * language.c (add_language): Likewise.
3522 * linespec.c (add_sal_to_sals_basic): Likewise.
3523 (add_sal_to_sals): Likewise.
3524 (decode_objc): Likewise.
3525 (find_linespec_symbols): Likewise.
3526 * linux-fork.c (fork_save_infrun_state): Likewise.
3527 * linux-nat.c (linux_nat_detach): Likewise.
3528 (linux_nat_fileio_readlink): Likewise.
3529 * linux-record.c (record_linux_sockaddr): Likewise.
3530 (record_linux_msghdr): Likewise.
3531 (Do): Likewise.
3532 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
3533 (linux_collect_regset_section_cb): Likewise.
3534 (linux_get_siginfo_data): Likewise.
3535 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
3536 (try_thread_db_load_from_dir): Likewise.
3537 (thread_db_load_search): Likewise.
3538 (info_auto_load_libthread_db): Likewise.
3539 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
3540 (m32c_m16c_pointer_to_address): Likewise.
3541 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
3542 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3543 * machoread.c (macho_check_dsym): Likewise.
3544 * macroexp.c (resize_buffer): Likewise.
3545 (gather_arguments): Likewise.
3546 (maybe_expand): Likewise.
3547 * macrotab.c (new_macro_key): Likewise.
3548 (new_source_file): Likewise.
3549 (new_macro_definition): Likewise.
3550 * mdebugread.c (parse_symbol): Likewise.
3551 (parse_type): Likewise.
3552 (parse_partial_symbols): Likewise.
3553 (psymtab_to_symtab_1): Likewise.
3554 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3555 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
3556 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
3557 (mi_cmd_data_read_memory_bytes): Likewise.
3558 (mi_cmd_data_write_memory_bytes): Likewise.
3559 (mi_cmd_trace_frame_collected): Likewise.
3560 * mi/mi-parse.c (mi_parse_argv): Likewise.
3561 (mi_parse): Likewise.
3562 * minidebug.c (lzma_open): Likewise.
3563 (lzma_pread): Likewise.
3564 * mips-tdep.c (mips_read_fp_register_single): Likewise.
3565 (mips_print_fp_register): Likewise.
3566 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3567 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3568 * mt-tdep.c (mt_register_name): Likewise.
3569 (mt_registers_info): Likewise.
3570 (mt_push_dummy_call): Likewise.
3571 * namespace.c (add_using_directive): Likewise.
3572 * nat/linux-btrace.c (perf_event_read): Likewise.
3573 (linux_enable_bts): Likewise.
3574 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
3575 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
3576 * nto-tdep.c (nto_find_and_open_solib): Likewise.
3577 (nto_parse_redirection): Likewise.
3578 * objc-lang.c (objc_demangle): Likewise.
3579 (find_methods): Likewise.
3580 * objfiles.c (get_objfile_bfd_data): Likewise.
3581 (set_objfile_main_name): Likewise.
3582 (allocate_objfile): Likewise.
3583 (objfile_relocate): Likewise.
3584 (update_section_map): Likewise.
3585 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
3586 * p-exp.y (exp): Likewise.
3587 (yylex): Likewise.
3588 * p-valprint.c (pascal_object_print_value): Likewise.
3589 * parse.c (initialize_expout): Likewise.
3590 (mark_completion_tag): Likewise.
3591 (copy_name): Likewise.
3592 (parse_float): Likewise.
3593 (type_stack_reserve): Likewise.
3594 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3595 (ppu2spu_prev_register): Likewise.
3596 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
3597 * printcmd.c (printf_wide_c_string): Likewise.
3598 (printf_pointer): Likewise.
3599 * probe.c (parse_probes): Likewise.
3600 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3601 (cmdpy_init): Likewise.
3602 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
3603 * python/py-symtab.c (set_sal): Likewise.
3604 * python/py-unwind.c (pyuw_sniffer): Likewise.
3605 * python/python.c (python_interactive_command): Likewise.
3606 (compute_python_string): Likewise.
3607 * ravenscar-thread.c (get_running_thread_id): Likewise.
3608 * record-full.c (record_full_exec_insn): Likewise.
3609 (record_full_core_open_1): Likewise.
3610 * regcache.c (regcache_raw_read_signed): Likewise.
3611 (regcache_raw_read_unsigned): Likewise.
3612 (regcache_cooked_read_signed): Likewise.
3613 (regcache_cooked_read_unsigned): Likewise.
3614 * remote-fileio.c (remote_fileio_func_open): Likewise.
3615 (remote_fileio_func_rename): Likewise.
3616 (remote_fileio_func_unlink): Likewise.
3617 (remote_fileio_func_stat): Likewise.
3618 (remote_fileio_func_system): Likewise.
3619 * remote-mips.c (mips_xfer_memory): Likewise.
3620 (mips_load_srec): Likewise.
3621 (pmon_end_download): Likewise.
3622 * remote.c (new_remote_state): Likewise.
3623 (map_regcache_remote_table): Likewise.
3624 (remote_register_number_and_offset): Likewise.
3625 (init_remote_state): Likewise.
3626 (get_memory_packet_size): Likewise.
3627 (remote_pass_signals): Likewise.
3628 (remote_program_signals): Likewise.
3629 (remote_start_remote): Likewise.
3630 (remote_check_symbols): Likewise.
3631 (remote_query_supported): Likewise.
3632 (extended_remote_attach): Likewise.
3633 (process_g_packet): Likewise.
3634 (store_registers_using_G): Likewise.
3635 (putpkt_binary): Likewise.
3636 (read_frame): Likewise.
3637 (compare_sections_command): Likewise.
3638 (remote_hostio_pread): Likewise.
3639 (remote_hostio_readlink): Likewise.
3640 (remote_file_put): Likewise.
3641 (remote_file_get): Likewise.
3642 (remote_pid_to_exec_file): Likewise.
3643 (_initialize_remote): Likewise.
3644 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3645 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3646 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3647 (bfd_uses_spe_extensions): Likewise.
3648 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
3649 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
3650 * solib-dsbt.c (decode_loadmap): Likewise.
3651 (fetch_loadmap): Likewise.
3652 (scan_dyntag): Likewise.
3653 (enable_break): Likewise.
3654 (dsbt_relocate_main_executable): Likewise.
3655 * solib-frv.c (fetch_loadmap): Likewise.
3656 (enable_break2): Likewise.
3657 (frv_relocate_main_executable): Likewise.
3658 * solib-spu.c (spu_relocate_main_executable): Likewise.
3659 (spu_bfd_open): Likewise.
3660 * solib-svr4.c (lm_info_read): Likewise.
3661 (read_program_header): Likewise.
3662 (find_program_interpreter): Likewise.
3663 (scan_dyntag): Likewise.
3664 (elf_locate_base): Likewise.
3665 (open_symbol_file_object): Likewise.
3666 (read_program_headers_from_bfd): Likewise.
3667 (svr4_relocate_main_executable): Likewise.
3668 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
3669 * solib.c (solib_find_1): Likewise.
3670 (exec_file_find): Likewise.
3671 (solib_find): Likewise.
3672 * source.c (openp): Likewise.
3673 (print_source_lines_base): Likewise.
3674 (forward_search_command): Likewise.
3675 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
3676 * spu-tdep.c (spu2ppu_prev_register): Likewise.
3677 (spu_get_overlay_table): Likewise.
3678 * stabsread.c (patch_block_stabs): Likewise.
3679 (define_symbol): Likewise.
3680 (again:): Likewise.
3681 (read_member_functions): Likewise.
3682 (read_one_struct_field): Likewise.
3683 (read_enum_type): Likewise.
3684 (common_block_start): Likewise.
3685 * stack.c (read_frame_arg): Likewise.
3686 (backtrace_command): Likewise.
3687 * stap-probe.c (stap_parse_register_operand): Likewise.
3688 * symfile.c (syms_from_objfile_1): Likewise.
3689 (find_separate_debug_file): Likewise.
3690 (load_command): Likewise.
3691 (load_progress): Likewise.
3692 (load_section_callback): Likewise.
3693 (reread_symbols): Likewise.
3694 (add_filename_language): Likewise.
3695 (allocate_compunit_symtab): Likewise.
3696 (read_target_long_array): Likewise.
3697 (simple_read_overlay_table): Likewise.
3698 * symtab.c (symbol_set_names): Likewise.
3699 (resize_symbol_cache): Likewise.
3700 (rbreak_command): Likewise.
3701 (completion_list_add_name): Likewise.
3702 (completion_list_objc_symbol): Likewise.
3703 (add_filename_to_list): Likewise.
3704 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
3705 * target-memory.c (target_write_memory_blocks): Likewise.
3706 * target.c (target_read_string): Likewise.
3707 (read_whatever_is_readable): Likewise.
3708 (target_read_alloc_1): Likewise.
3709 (simple_search_memory): Likewise.
3710 (target_fileio_read_alloc_1): Likewise.
3711 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3712 * top.c (command_line_input): Likewise.
3713 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3714 * tracefile.c (tracefile_fetch_registers): Likewise.
3715 * tracepoint.c (add_memrange): Likewise.
3716 (init_collection_list): Likewise.
3717 (add_aexpr): Likewise.
3718 (trace_dump_actions): Likewise.
3719 (parse_trace_status): Likewise.
3720 (parse_tracepoint_definition): Likewise.
3721 (parse_tsv_definition): Likewise.
3722 (parse_static_tracepoint_marker_definition): Likewise.
3723 * tui/tui-file.c (tui_sfileopen): Likewise.
3724 (tui_file_adjust_strbuf): Likewise.
3725 * tui/tui-io.c (tui_expand_tabs): Likewise.
3726 * tui/tui-source.c (tui_set_source_content): Likewise.
3727 * typeprint.c (find_global_typedef): Likewise.
3728 * ui-file.c (do_ui_file_xstrdup): Likewise.
3729 (ui_file_obsavestring): Likewise.
3730 (mem_file_write): Likewise.
3731 * utils.c (make_hex_string): Likewise.
3732 (get_regcomp_error): Likewise.
3733 (puts_filtered_tabular): Likewise.
3734 (gdb_realpath_keepfile): Likewise.
3735 (ldirname): Likewise.
3736 (gdb_bfd_errmsg): Likewise.
3737 (substitute_path_component): Likewise.
3738 * valops.c (search_struct_method): Likewise.
3739 (find_oload_champ_namespace_loop): Likewise.
3740 * valprint.c (print_decimal_chars): Likewise.
3741 (read_string): Likewise.
3742 (generic_emit_char): Likewise.
3743 * varobj.c (varobj_delete): Likewise.
3744 (varobj_value_get_print_value): Likewise.
3745 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
3746 * windows-tdep.c (display_one_tib): Likewise.
3747 * xcoffread.c (read_xcoff_symtab): Likewise.
3748 (process_xcoff_symbol): Likewise.
3749 (swap_sym): Likewise.
3750 (scan_xcoff_symtab): Likewise.
3751 (xcoff_initial_scan): Likewise.
3752 * xml-support.c (gdb_xml_end_element): Likewise.
3753 (xml_process_xincludes): Likewise.
3754 (xml_fetch_content_from_file): Likewise.
3755 * xml-syscall.c (xml_list_of_syscalls): Likewise.
3756 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3757
623fb775 37582015-09-23 James Bowman <james.bowman@ftdichip.com>
3759
3760 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
3761 instead of builtin_func_ptr.
3762 (ft32_pointer_to_address): New function.
3763 (ft32_address_class_type_flags): New function.
3764 (ft32_address_class_type_flags_to_name): New function.
3765 (ft32_address_class_name_to_type_flags): New function.
3766 (ft32_gdbarch_init): Set tdep->pc_type. Call
3767 set_gdbarch_pointer_to_address,
3768 set_gdbarch_address_class_type_flags
3769 set_gdbarch_address_class_name_to_type_flags,
3770 and set_gdbarch_address_class_type_flags_to_name.
3771 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
3772
e6c2c623
PMR
37732015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
3774
3775 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
3776 value is a reference, actually dereference it in order to get
3777 the underlying value.
3778
bc1f8cda
SM
37792015-09-22 Simon Marchi <simon.marchi@ericsson.com>
3780
3781 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
3782
acaa662f
SM
37832015-09-21 Simon Marchi <simon.marchi@ericsson.com>
3784
3785 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
3786 * linespec.c (linespec_lexer_lex_string): Same.
3787
4d9d419e
PL
37882015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3789
3790 * NEWS: Mention support for fast tracepoints on aarch64-linux.
3791
6ec5f4be
PL
37922015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3793
3794 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
3795 variable. Call aarch64_decode_adr instead of
3796 aarch64_decode_adrp.
3797 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
3798 (aarch64_decode_adr): New function declaration.
3799 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
3800 (aarch64_decode_adr): New function, factored out from
3801 aarch64_decode_adrp to decode both adr and adrp instructions.
3802
787749ea
PL
38032015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3804
3805 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
3806 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
3807 (aarch64-insn.o): New rule.
3808 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
3809 (aarch64*-*-linux*): Likewise.
3810 * arch/aarch64-insn.c: New file.
3811 * arch/aarch64-insn.h: New file.
3812 * aarch64-tdep.c: Include arch/aarch64-insn.h.
3813 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
3814 arch/aarch64-insn.h.
3815 (decode_add_sub_imm): Rename to ...
3816 (aarch64_decode_add_sub_imm): ... this.
3817 (decode_adrp): Rename to ...
3818 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
3819 Declare in arch/aarch64-insn.h.
3820 (decode_b): Rename to ...
3821 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
3822 Declare in arch/aarch64-insn.h.
3823 (decode_bcond): Rename to ...
3824 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
3825 Declare in arch/aarch64-insn.h.
3826 (decode_br): Rename to ...
3827 (aarch64_decode_br): ... this.
3828 (decode_cb): Rename to ...
3829 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
3830 Declare in arch/aarch64-insn.h.
3831 (decode_eret): Rename to ...
3832 (aarch64_decode_eret): ... this.
3833 (decode_movz): Rename to ...
3834 (aarch64_decode_movz): ... this.
3835 (decode_orr_shifted_register_x): Rename to ...
3836 (aarch64_decode_orr_shifted_register_x): ... this.
3837 (decode_ret): Rename to ...
3838 (aarch64_decode_ret): ... this.
3839 (decode_stp_offset): Rename to ...
3840 (aarch64_decode_stp_offset): ... this.
3841 (decode_stp_offset_wb): Rename to ...
3842 (aarch64_decode_stp_offset_wb): ... this.
3843 (decode_stur): Rename to ...
3844 (aarch64_decode_stur): ... this.
3845 (decode_tb): Rename to ...
3846 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
3847 Declare in arch/aarch64-insn.h.
3848 (aarch64_analyze_prologue): Adjust calls to renamed functions.
3849
183dc7ec
DE
38502015-09-20 Doug Evans <xdje42@gmail.com>
3851
3852 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
3853
2ee7123e
DE
38542015-09-20 Doug Evans <xdje42@gmail.com>
3855
3856 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
3857 variable name that collides with a parameter.
3858
7d1c9c9b
JB
38592015-09-20 Joel Brobecker <brobecker@adacore.com>
3860
3861 * dwarf2loc.c (locexpr_get_frame_base): Renames
3862 block_op_get_frame_base.
3863 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
3864 block_op_get_frame_base by reference to locexpr_get_frame_base.
3865 (loclist_get_frame_base): New function, near identical copy of
3866 locexpr_get_frame_base.
3867 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
3868 block_op_get_frame_base by reference to loclist_get_frame_base.
3869
7dc7c195
DE
38702015-09-19 Doug Evans <xdje42@gmail.com>
3871
3872 * ravenscar-thread.c (ravenscar_inferior_created): Replace
3873 current_inferior ()->gdbarch with its wrapper target_gdbarch.
3874
be550b6e
DE
38752015-09-18 Doug Evans <xdje42@gmail.com>
3876
3877 * linux-thread-db.c (record_thread): Return the created thread.
3878 (thread_from_lwp): Likewise.
3879 (thread_db_get_thread_local_address): Update.
3880
615b3f62
DE
38812015-09-18 Doug Evans <xdje42@gmail.com>
3882
3883 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
3884 move only member demangled_name up. All uses updated.
3885
015d2e7e
DE
38862015-09-18 Doug Evans <xdje42@gmail.com>
3887
3888 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
3889 kind of minimal symbol in the error message.
3890 * objfiles.c (objfile_flavour_name): New function.
3891 * objfiles.h (objfile_flavour_name): Declare.
3892
a0cc84cd
YQ
38932015-09-18 Yao Qi <yao.qi@linaro.org>
3894
3895 * nat/aarch64-linux.c: Include elf/common.h,
3896 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
3897 (aarch64_ps_get_thread_area): New function.
3898 * nat/aarch64-linux.h: Include gdb_proc_service.h.
3899 (aarch64_ps_get_thread_area): Declare.
3900 * aarch64-linux-nat.c (ps_get_thread_area): Call
3901 aarch64_ps_get_thread_area.
3902
d2939ba2
MM
39032015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3904
3905 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
3906
f2665db5
MM
39072015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3908
3909 * NEWS: Announce new scheduler-locking mode.
3910 * infrun.c (schedlock_replay): New.
3911 (scheduler_enums): Add schedlock_replay.
3912 (scheduler_mode): Change default to schedlock_replay.
3913 (user_visible_resume_ptid): Handle schedlock_replay.
3914 (clear_proceed_status_thread): Stop replaying if resumed thread is
3915 not replaying.
3916 (schedlock_applies): Handle schedlock_replay.
3917 (_initialize_infrun): Document new scheduler-locking mode.
3918 * record-btrace.c (record_btrace_resume): Remove code to stop other
3919 threads when not replaying the resumed thread.
3920
7ff27e9b
MM
39212015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3922
3923 * record-btrace.c ((record_btrace_will_replay): New.
3924 (init_record_btrace_ops): Initialize to_record_will_replay.
3925 * record-full.c ((record_full_will_replay): New.
3926 (init_record_full_ops): Initialize to_record_will_replay.
3927 * target-delegates.c: Regenerated.
3928 * target.c (target_record_will_replay): New.
3929 * target.h (struct target_ops) <to_record_will_replay>: New.
3930 (target_record_will_replay): New.
3931
797094dd
MM
39322015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3933
3934 * record-btrace.c (record_btrace_resume): Call
3935 target_record_stop_replaying.
3936 (record_btrace_stop_replaying_all): New.
3937 (init_record_btrace_ops): Initialize to_record_stop_replaying.
3938 * record-full.c (record_full_stop_replaying): New.
3939 (init_record_full_ops ): Initialize to_record_stop_replaying.
3940 * target-delegates.c: Regenerated.
3941 * target.c (target_record_stop_replaying): New.
3942 * target.h (struct target_ops) <to_record_stop_replaying>: New.
3943 (target_record_stop_replaying): New.
3944
4d10e986
MM
39452015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3946
3947 * record-btrace.c (record_btrace_xfer_partial)
3948 (record_btrace_store_registers, record_btrace_prepare_to_store):
3949 Call record_btrace_is_replaying with inferior_ptid instead of
3950 minus_one_ptid.
3951 (record_btrace_store_registers): Change error message.
3952
a52eab48
MM
39532015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3954
3955 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
3956 Update users to pass minus_one_ptid.
3957 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
3958 * record.c (cmd_record_delete): Pass inferior_ptid to
3959 target_record_is_replaying.
3960 * target-delegates.c: Regenerated.
3961 * target.c (target_record_is_replaying): Add ptid argument.
3962 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
3963 argument.
3964 (target_record_is_replaying): Add ptid argument.
3965
cbb55fa7
MM
39662015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3967
3968 * record-btrace.c (record_btrace_open): Remove non_stop check.
3969 * NEWS: Announce that record btrace supports non-stop mode.
3970
d1988021
MM
39712015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3972
3973 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
3974 in the TARKET_WAITKIND_NO_HISTORY case.
3975
a6b5be76
MM
39762015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3977
3978 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
3979 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
3980
ec71cc2f
MM
39812015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3982
3983 * record-btrace.c (get_thread_current_frame): New.
3984 (record_btrace_start_replaying): Call get_thread_current_frame.
3985
0ca912df
MM
39862015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3987
3988 * record-btrace.c (record_btrace_resume_thread): A move request
3989 overwrites a previous move request.
3990 (record_btrace_find_resume_thread): Removed.
3991 (record_btrace_resume): Resume all requested threads.
3992
e3cfc1c7
MM
39932015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3994
3995 * record-btrace.c: Include vec.h.
3996 (record_btrace_find_thread_to_move): Removed.
3997 (btrace_step_no_resumed, btrace_step_again)
3998 (record_btrace_stop_replaying_at_end): New.
3999 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
4000 (record_btrace_single_step_forward): Remove calls to
4001 record_btrace_stop_replaying.
4002 (record_btrace_step_thread): Do only one step for BTHR_CONT and
4003 BTHR_RCONT. Keep threads at the end of their history moving.
4004 (record_btrace_wait): Call record_btrace_step_thread for all threads
4005 until one reports an event. Call record_btrace_stop_replaying_at_end
4006 for the eventing thread.
4007
cf8f8f0c
MM
40082015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4009
4010 * record-btrace.c (record_btrace_single_step_forward): Return
4011 NO_HISTORY if a step brings us to the end of the execution history.
4012
011c71b6
MM
40132015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4014
4015 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
4016 to ...
4017 (record_btrace_single_step_forward): ... here and
4018 (record_btrace_single_step_backward): ... here.
4019
d825d248
MM
40202015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4021
4022 * record-btrace.c (btrace_step_spurious)
4023 (record_btrace_single_step_forward)
4024 (record_btrace_single_step_backward): New.
4025 (record_btrace_step_thread): Call record_btrace_single_step_forward
4026 and record_btrace_single_step_backward.
4027
3c615f99
MM
40282015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4029
4030 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
4031 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
4032
987e68b1
MM
40332015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4034
4035 * record-btrace.c (btrace_thread_flag_to_str)
4036 (record_btrace_cancel_resume): New.
4037 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
4038 (record_btrace_resume): Print execution direction.
4039 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
4040 (record_btrace_wait): Call record_btrace_cancel_resume.
4041
6e4879f0
MM
40422015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4043
4044 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
4045 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
4046 (record_btrace_find_thread_to_move): Also accept threads that have
4047 BTHR_STOP set.
4048 (btrace_step_stopped_on_request, record_btrace_stop): New.
4049 (record_btrace_step_thread): Support BTHR_STOP.
4050 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
4051 (init_record_btrace_ops): Initialize to_stop.
4052
5953356c
MM
40532015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4054
4055 * record-btrace.c (record_btrace_wait): Replace non_stop check with
4056 target_is_non_stop_p ().
4057
bfca584f
PMR
40582015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
4059
4060 * ada-typeprint.c (print_array_type): Do not describe arrays as
4061 packed when they embed dynamic elements.
4062
5382cfab
PW
40632015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4064
4065 * symtab.h (address_class): Document that TLS variables
4066 are handled by LOC_UNRESOLVED.
4067 * findvar.c (default_read_var_value): Don't relocate TLS variables.
4068 * printcmd.c (address_info): Don't relocate TLS variables.
4069
b277c936
PL
40702015-09-15 Pierre Langlois <pierre.langlois@arm.com>
4071
4072 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
4073 (decode_adrp): Likewise.
4074 (decode_b): Likewise.
4075 (decode_bcond): Likewise.
4076 (decode_br): Likewise.
4077 (decode_cb): Likewise.
4078 (decode_eret): Likewise.
4079 (decode_movz): Likewise.
4080 (decode_orr_shifted_register_x): Likewise.
4081 (decode_ret): Likewise.
4082 (decode_stp_offset): Likewise.
4083 (decode_stp_offset_wb): Likewise.
4084 (decode_stur): Likewise.
4085 (decode_tb): Likewise.
4086 (aarch64_analyze_prologue): Likewise.
4087 (pass_in_x): Likewise.
4088 (pass_in_v): Likewise.
4089 (pass_on_stack): Likewise.
4090 (aarch64_push_dummy_call): Likewise.
4091 (aarch64_extract_return_value): Likewise.
4092 (aarch64_store_return_value): Likewise.
4093 (aarch64_return_value): Likewise.
4094 (aarch64_record_asimd_load_store): Likewise.
4095 (aarch64_record_load_store): Likewise.
4096 (aarch64_record_data_proc_simd_fp): Likewise.
4097
141c5cc4
JK
40982015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4099
4100 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
4101 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
4102 (ppc64_skip_trampoline_code_1): ... here.
4103 (ppc64_skip_trampoline_code): New wrapper function.
4104 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
4105
750ce8d1
YQ
41062015-09-15 Yao Qi <yao.qi@linaro.org>
4107
4108 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
4109 function.
4110 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
4111 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
4112 if target_can_do_single_step returns 1.
4113 * remote.c (struct vCont_action_support) <s, S>: New fields.
4114 (PACKET_vContSupported): New enum.
4115 (remote_protocol_features): New element for vContSupported.
4116 (remote_query_supported): Append "vContSupported+".
4117 (remote_vcont_probe): Remove support_s and support_S, use
4118 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
4119 vCont packet if c and C actions are not supported.
4120 (remote_can_do_single_step): New function.
4121 (init_remote_ops): Install it to to_can_do_single_step.
4122 (_initialize_remote): Call add_packet_config_cmd.
4123 * target.h (struct target_ops) <to_can_do_single_step>: New field.
4124 (target_can_do_single_step): New macro.
4125 * target-delegates.c: Re-generated.
4126
ade90bde
YQ
41272015-09-15 Yao Qi <yao.qi@linaro.org>
4128
4129 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
4130 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
4131 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
4132 New function.
4133 (aarch64_siginfo_from_compat_siginfo): New function.
4134 * nat/aarch64-linux.h: Include signal.h.
4135 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
4136 (compat_timer_t, compat_clock_t): Likewise.
4137 (struct compat_timeval): New.
4138 (union compat_sigval): New.
4139 (struct compat_siginfo): New.
4140 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
4141 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
4142 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
4143 (cpt_si_band, cpt_si_fd): Likewise.
4144
4c2f2a79
PA
41452015-09-14 Pedro Alves <palves@redhat.com>
4146
4147 * infrun.c (current_stop_id): New global.
4148 (get_stop_id, new_stop_id): New functions.
4149 (fetch_inferior_event): Handle normal_stop proceeding the target.
4150 (struct stop_context): New.
4151 (save_stop_context, release_stop_context_cleanup)
4152 (stop_context_changed): New functions.
4153 (normal_stop): Return true if the hook-stop changes the stop
4154 context.
4155 * infrun.h (get_stop_id): Declare.
4156 (normal_stop): Now returns int. Add documentation.
4157
919e6dbe
PMR
41582015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
4159
4160 * ada-lang.c (ada_value_ptr_subscript): Update the heading
4161 comment. Handle packed arrays.
4162
b027a8fa
PA
41632015-09-14 Pedro Alves <palves@redhat.com>
4164
4165 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
4166 mention of maint set/show target-non-stop.
4167
b459a59b
DB
41682015-09-11 Don Breazeal <donb@codesourcery.com>
4169
4170 * NEWS: Announce new remote packets for the exec-events
4171 feature and the exec-events feature and associated commands.
4172
d46addbb
DB
41732015-09-11 Don Breazeal <donb@codesourcery.com>
4174
4175 * remote.c (remote_exec_event_p): New function.
4176 (remote_insert_exec_catchpoint): New function.
4177 (remote_remove_exec_catchpoint): New function.
4178 (init_extended_remote_ops): Initialize extended_remote_ops
4179 members to_insert_exec_catchpoint and
4180 to_remove_exec_catchpoint.
4181
94585166
DB
41822015-09-11 Don Breazeal <donb@codesourcery.com>
4183 Luis Machado <lgustavo@codesourcery.com>
4184
4185 * infrun.c (follow_exec): Use process-style ptid for
4186 exec message. Call add_inferior_with_spaces and
4187 target_follow_exec.
4188 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
4189 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
4190 * remote.c (remote_pspace_data): New static variable.
4191 (remote_pspace_data_cleanup): New function.
4192 (get_remote_exec_file): New function.
4193 (set_remote_exec_file_1): New function.
4194 (set_remote_exec_file): New function.
4195 (show_remote_exec_file): New function.
4196 (remote_exec_file): Delete static variable.
4197 (anonymous enum) <PACKET_exec_event_feature>: New
4198 enumeration constant.
4199 (remote_protocol_features): Add entry for exec-events feature.
4200 (remote_query_supported): Add client side of qSupported query
4201 for exec-events feature.
4202 (remote_follow_exec): New function.
4203 (remote_parse_stop_reply): Handle 'exec' stop reason.
4204 (extended_remote_run, extended_remote_create_inferior): Call
4205 get_remote_exec_file and set_remote_exec_file_1.
4206 (init_extended_remote_ops) <to_follow_exec>: Initialize new
4207 member.
4208 (_initialize_remote): Call
4209 register_program_space_data_with_cleanup. Call
4210 add_packet_config_cmd for remote exec-events feature.
4211 Modify call to add_setshow_string_noescape_cmd for exec-file
4212 to use new functions set_remote_exec_file and
4213 show_remote_exec_file.
4214 * target-debug.h, target-delegates.c: Regenerated.
4215 * target.c (target_follow_exec): New function.
4216 * target.h (struct target_ops) <to_follow_exec>: New member.
4217 (target_follow_exec): Declare new function.
4218
669e74e8
PL
42192015-09-11 Pierre Langlois <pierre.langlois@arm.com>
4220
4221 * aarch64-tdep.c (decode_cb): Move up comment describing the
4222 encoding.
4223 (decode_tb): Fix a typo in comment above the function. Move up
4224 comment describing the encoding.
4225
4d50586d
PL
42262015-09-11 Pierre Langlois <pierre.langlois@arm.com>
4227
4228 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
4229
6dcaef99
MMN
42302015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
4231
4232 PR gdb/18947
4233 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
4234 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
4235
5da1a4d3
SM
42362015-09-10 Simon Marchi <simon.marchi@ericsson.com>
4237
4238 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
4239 operations.
4240
108d56a4
SM
42412015-09-10 Simon Marchi <simon.marchi@ericsson.com>
4242
4243 * ada-lang.c (ada_search_struct_field): Constify parameters
4244 and/or variables..
4245 (xget_renaming_scope): Likewise.
4246 (ada_is_redundant_range_encoding): Likewise.
4247 (scan_discrim_bound): Likewise.
4248 (to_fixed_range_type): Likewise.
4249
dd2e65cc
YQ
42502015-09-10 Yao Qi <yao.qi@linaro.org>
4251
4252 * breakpoint.c (download_tracepoint_locations): New local
4253 can_download_tracepoint. Check the result of
4254 target_can_download_tracepoint and save it in
4255 can_download_tracepoint if there are tracepoints to download.
4256 * linux-nat.h (enum tribool): Move it to ...
4257 * common/common-types.h: ... here.
4258
cfe75703
PA
42592015-09-09 Pedro Alves <palves@redhat.com>
4260
4261 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
4262 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
4263
a85a3079
PA
42642015-09-09 Pedro Alves <palves@redhat.com>
4265
4266 * continuations.c (add_continuation, restore_thread_cleanup)
4267 (do_all_continuations_ptid, do_all_continuations_thread_callback)
4268 (do_all_continuations_thread, do_all_continuations)
4269 (discard_all_continuations_thread_callback)
4270 (discard_all_continuations_thread, discard_all_continuations)
4271 (add_intermediate_continuation)
4272 (do_all_intermediate_continuations_thread_callback)
4273 (do_all_intermediate_continuations_thread)
4274 (do_all_intermediate_continuations)
4275 (discard_all_intermediate_continuations_thread_callback)
4276 (discard_all_intermediate_continuations_thread)
4277 (discard_all_intermediate_continuations): Delete.
4278 * continuations.h (add_continuation, do_all_continuations)
4279 (do_all_continuations_thread, discard_all_continuations)
4280 (discard_all_continuations_thread, add_intermediate_continuation)
4281 (do_all_intermediate_continuations)
4282 (do_all_intermediate_continuations_thread)
4283 (discard_all_intermediate_continuations)
4284 (discard_all_intermediate_continuations_thread): Delete
4285 declarations.
4286 * event-top.c (stdin_event_handler): Delete references to
4287 continuations.
4288 * gdbthread.h (struct thread_info): Delete continuations and
4289 intermediate_continuations fields.
4290 * inf-loop.c (inferior_event_handler): Remove references to
4291 continuations.
4292 * infrun.c (infrun_thread_stop_requested_callback): Remove
4293 references to continuations.
4294 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
4295 * thread.c: Don't include "continuations.h".
4296 (clear_thread_inferior_resources): Remove references to
4297 continuations.
4298
0700e23e
PA
42992015-09-09 Pedro Alves <palves@redhat.com>
4300
4301 * infcall.c (struct dummy_frame_context_saver): Delete.
4302 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
4303 (dummy_frame_context_saver_drop)
4304 (dummy_frame_context_saver_cleanup)
4305 (dummy_frame_context_saver_get_regs)
4306 (dummy_frame_context_saver_setup): Delete.
4307 * infcall.h (dummy_frame_context_saver_drop)
4308 (dummy_frame_context_saver_cleanup)
4309 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
4310 Delete.
4311 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
4312 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
4313 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
4314
cfc31633
PA
43152015-09-09 Pedro Alves <palves@redhat.com>
4316
4317 * breakpoint.c: Include "thread-fsm.h".
4318 (struct until_break_command_continuation_args): Delete.
4319 (struct until_break_fsm): New.
4320 (until_break_fsm_ops): New global.
4321 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
4322 (until_break_command_continuation): Delete.
4323 (until_break_fsm_clean_up): New function.
4324 (until_break_fsm_async_reply_reason): New function.
4325 (until_break_command): Adjust to create an until_break_fsm instead
4326 of a continuation.
4327 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
4328 here.
4329 * infcmd.c (struct until_next_fsm): New.
4330 (until_next_fsm_ops): New global.
4331 (new_until_next_fsm, until_next_fsm_should_stop): New function.
4332 (until_next_continuation): Delete.
4333 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
4334 functions.
4335 (until_next_command): Adjust to create a new until_next_fsm
4336 instead of a continuation.
4337
388a7084
PA
43382015-09-09 Pedro Alves <palves@redhat.com>
4339
4340 * infcall.c: Include thread_fsm.h.
4341 (struct call_return_meta_info): New.
4342 (get_call_return_value): New function, factored out from
4343 call_function_by_hand_dummy.
4344 (struct call_thread_fsm): New.
4345 (call_thread_fsm_ops): New global.
4346 (new_call_thread_fsm, call_thread_fsm_should_stop)
4347 (call_thread_fsm_should_notify_stop): New functions.
4348 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
4349 the thread.
4350 (call_function_by_hand_dummy): Create a new call_thread_fsm
4351 instance, associate it with the thread, and wait for the FSM to
4352 finish. If finished successfully, fetch the function's result
4353 value out of the FSM.
4354 * infrun.c (fetch_inferior_event): If the FSM says the stop
4355 shouldn't be notified, don't call normal_stop.
4356 (maybe_remove_breakpoints): New function, factored out from ...
4357 (normal_stop): ... here. Simplify.
4358 * infrun.h (maybe_remove_breakpoints): Declare.
4359 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
4360 (thread-fsm.h) <struct thread_fsm_ops>: New field.
4361 (thread_fsm_should_notify_stop): Declare.
4362
243a9253
PA
43632015-09-09 Pedro Alves <palves@redhat.com>
4364
4365 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
4366 * breakpoint.c (handle_jit_event): Print debug output.
4367 (bpstat_what): Split event callback handling to ...
4368 (bpstat_run_callbacks): ... this new function.
4369 (momentary_bkpt_print_it): No longer handle bp_finish here.
4370 * breakpoint.h (bpstat_run_callbacks): Declare.
4371 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
4372 <thread_fsm>: New field.
4373 (thread_cancel_execution_command): Declare.
4374 * infcmd.c: Include thread-fsm.h.
4375 (struct step_command_fsm): New.
4376 (step_command_fsm_ops): New global.
4377 (new_step_command_fsm, step_command_fsm_prepare): New functions.
4378 (step_1): Adjust to use step_command_fsm_prepare and
4379 prepare_one_step.
4380 (struct step_1_continuation_args): Delete.
4381 (step_1_continuation): Delete.
4382 (step_command_fsm_should_stop): New function.
4383 (step_once): Delete.
4384 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
4385 (prepare_one_step): New function, based on step_once.
4386 (until_next_command): Remove step_multi reference.
4387 (struct return_value_info): New.
4388 (print_return_value): Rename to ...
4389 (print_return_value_1): ... this. New struct return_value_info
4390 parameter. Adjust.
4391 (print_return_value): Reimplement as wrapper around
4392 print_return_value_1.
4393 (struct finish_command_fsm): New.
4394 (finish_command_continuation): Delete.
4395 (finish_command_fsm_ops): New global.
4396 (new_finish_command_fsm, finish_command_fsm_should_stop): New
4397 functions.
4398 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
4399 New.
4400 (finish_command_continuation_free_arg): Delete.
4401 (finish_command_fsm_async_reply_reason): New.
4402 (finish_backward, finish_forward): Change symbol parameter to a
4403 finish_command_fsm. Adjust.
4404 (finish_command): Create a finish_command_fsm. Adjust.
4405 * infrun.c: Include "thread-fsm.h".
4406 (clear_proceed_status_thread): Delete the thread's FSM.
4407 (infrun_thread_stop_requested_callback): Cancel the thread's
4408 execution command.
4409 (clean_up_just_stopped_threads_fsms): New function.
4410 (fetch_inferior_event): Handle the event_thread's should_stop
4411 method saying the command isn't done yet.
4412 (process_event_stop_test): Run breakpoint callbacks here.
4413 (print_stop_event): Rename to ...
4414 (print_stop_location): ... this.
4415 (restore_current_uiout_cleanup): New function.
4416 (print_stop_event): Reimplement.
4417 (normal_stop): No longer notify the end_stepping_range observers
4418 here handle "step N" nor "finish" here. No longer call
4419 print_stop_event here.
4420 * infrun.h (struct return_value_info): Forward declare.
4421 (print_return_value): Declare.
4422 (print_stop_event): Change prototype.
4423 * thread-fsm.c: New file.
4424 * thread-fsm.h: New file.
4425 * thread.c: Include "thread-fsm.h".
4426 (thread_cancel_execution_command): New function.
4427 (clear_thread_inferior_resources): Call it.
4428 * cli/cli-interp.c (cli_on_normal_stop): New function.
4429 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
4430 observer.
4431 * mi/mi-interp.c: Include "thread-fsm.h".
4432 (restore_current_uiout_cleanup): Delete.
4433 (mi_on_normal_stop): If the thread has an FSM associated, and it
4434 finished, ask it for the async-reply-reason to print. Always call
4435 print_stop_event here, regardless of the top-level interpreter.
4436 Check bpstat_what to tell whether an asynchronous breakpoint hit
4437 triggered.
4438 * tui/tui-interp.c (tui_on_normal_stop): New function.
4439 (tui_init): Install tui_on_normal_stop as normal_stop observer.
4440
0b333c5e
PA
44412015-09-09 Pedro Alves <palves@redhat.com>
4442
4443 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
4444 check whether the target can async.
4445 * inf-loop.c (inferior_event_handler): Only call target_async if
4446 the target can async.
4447 * infcall.c: Include top.h and interps.h.
4448 (run_inferior_call): For the interpreter to sync mode while
4449 running the infcall. Call wait_sync_command_done instead of
4450 wait_for_inferior plus normal_stop.
4451 * infcmd.c (prepare_execution_command): Don't check whether the
4452 target can async when running in the foreground.
4453 (step_1): Delete synchronous case handling.
4454 (step_once): Always install a continuation, even in sync mode.
4455 (until_next_command, finish_forward): Don't check whether the
4456 target can async.
4457 (attach_command_post_wait, notice_new_inferior): Always install a
4458 continuation, even in sync mode.
4459 * infrun.c (mark_infrun_async_event_handler): New function.
4460 (proceed): In sync mode, mark infrun's event source instead of
4461 waiting for events here.
4462 (fetch_inferior_event): If the target can't async, do a blocking
4463 wait.
4464 (prepare_to_wait): In sync mode, mark infrun's event source.
4465 (infrun_async_inferior_event_handler): No longer bail out if the
4466 target can't async.
4467 * infrun.h (mark_infrun_async_event_handler): New declaration.
4468 * linux-nat.c (linux_nat_wait_1): Remove calls to
4469 set_sigint_trap/clear_sigint_trap.
4470 (linux_nat_terminal_inferior): No longer check whether the target
4471 can async.
4472 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
4473 comment.
4474 (mi_execute_command_input_handler): No longer check whether the
4475 target is async. Update and simplify comment.
4476 * target.c (default_target_wait): New function.
4477 * target.h (struct target_ops) <to_wait>: Now defaults to
4478 default_target_wait.
4479 (default_target_wait): Declare.
4480 * top.c (wait_sync_command_done): New function, factored out from
4481 ...
4482 (maybe_wait_sync_command_done): ... this.
4483 * top.h (wait_sync_command_done): Declare.
4484 * target-delegates.c: Regenerate.
4485
0568462b
MM
44862015-09-09 Markus Metzger <markus.t.metzger@intel.com>
4487
4488 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
4489 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
4490 Remove include of sys/utsname.h.
4491 (linux_determine_kernel_ptr_bits): Remove.
4492 (linux_determine_kernel_start): New.
4493 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
4494 Update check.
4495 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
4496 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
4497 initialization.
4498 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
4499 assignment.
4500
72e02483
PA
45012015-09-07 Pedro Alves <palves@redhat.com>
4502
4503 * guile/guile-internal.h (as_a_scm_t_subr): New.
4504 * guile/guile.c (misc_guile_functions): Use it.
4505 * guile/scm-arch.c (arch_functions): Use it.
4506 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
4507 Use it.
4508 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
4509 * guile/scm-cmd.c (command_functions): Use it.
4510 * guile/scm-disasm.c (disasm_functions): Use it.
4511 * guile/scm-exception.c (exception_functions)
4512 (private_exception_functions): Use it.
4513 * guile/scm-frame.c (frame_functions)
4514 * guile/scm-gsmob.c (gsmob_functions): Use it.
4515 * guile/scm-iterator.c (iterator_functions): Use it.
4516 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
4517 * guile/scm-math.c (math_functions): Use it.
4518 * guile/scm-objfile.c (objfile_functions): Use it.
4519 * guile/scm-param.c (parameter_functions): Use it.
4520 * guile/scm-ports.c (port_functions, private_port_functions): Use
4521 it.
4522 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
4523 * guile/scm-progspace.c (pspace_functions): Use it.
4524 * guile/scm-string.c (string_functions): Use it.
4525 * guile/scm-symbol.c (symbol_functions): Use it.
4526 * guile/scm-symtab.c (symtab_functions): Use it.
4527 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
4528 it.
4529 * guile/scm-value.c (value_functions): Use it.
4530
e65b5245
AB
45312015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4532
4533 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
4534 (tui_next_win): Likewise.
4535 (tui_prev_win): Likewise.
4536 (tui_partial_win_by_name): Likewise.
4537 (tui_init_generic_part): Likewise.
4538 (init_content_element): Likewise.
4539 (tui_del_window): Likewise.
4540 (tui_free_window): Likewise.
4541 (tui_del_data_windows): Likewise.
4542 (tui_free_data_content): Likewise.
4543 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
4544 * tui/tui-regs.c (tui_show_register_group): Likewise.
4545 * tui/tui-win.c (tui_resize_all): Likewise.
4546 (tui_set_focus): Likewise.
4547 (tui_set_win_height): Likewise.
4548 (make_invisible_and_set_new_height): Likewise.
4549 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
4550 * tui/tui-wingeneral.c (make_visible): Likewise.
4551
b03e6ad9
AB
45522015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4553
4554 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
4555
be903358
AB
45562015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4557
4558 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
4559 pointer.
4560 * dbxread.c (dbx_end_psymtab): Likewise.
4561 * gnu-nat.c (gnu_write_inferior): Likewise.
4562 * mdebugread.c (cross_ref): Likewise.
4563 * p-valprint.c (pascal_val_print): Likewise.
4564 * xcoffread.c (xcoff_end_psymtab): Likewise.
4565
02f024f9
YQ
45662015-09-04 Yao Qi <yao.qi@linaro.org>
4567
4568 * NEWS: Mention the aarch64 multi-arch debugging support.
4569
cd7c1778
PMR
45702015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
4571
4572 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
4573 type instead of a TYPE_CODE_INT one for the string_char_type
4574 and the ada_primitive_type_char types.
4575
39edd165
YQ
45762015-09-03 Yao Qi <yao.qi@linaro.org>
4577
4578 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4579 Move code to aarch64_linux_region_ok_for_watchpoint. Call
4580 aarch64_linux_region_ok_for_watchpoint.
4581 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
4582 New function.
4583 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
4584 Declare it.
4585
6c214e7c
PP
45862015-09-02 Patrick Palka <patrick@parcs.ath.cx>
4587
4588 * gdb_obstack.h (obstack_strdup): Declare.
4589 * gdb_obstack.c (obstack_strdup): Define.
4590 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
4591 * gdbarch.c: Regenerate.
4592 * gdbarch.h: Regenerate.
4593 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
4594
eed8b28a
PP
45952015-09-02 Patrick Palka <patrick@parcs.ath.cx>
4596
4597 * gdbtypes.c (copy_type_recursive): Update documentation.
4598
73c6b475
SDJ
45992015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4600
4601 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
4602 as zero.
4603
ad1c917a
SDJ
46042015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4605
4606 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
4607
3bd7e5b7
SDJ
46082015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4609
4610 * solib-svr4.c (solib_event_probe_action): Call
4611 get_probe_argument_count using TRY...CATCH.
4612 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
4613
f469e8ce
SDJ
46142015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4615
4616 * probe.h (struct probe_ops) <get_probe_argument_count,
4617 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
4618 the comment that the function can throw an exception.
4619 (get_probe_argument_count): Likewise.
4620 (evaluate_probe_argument): Likewise.
4621 * stap-probe.c (stap_get_opcode): Call error instead of
4622 internal_error.
4623 (stap_get_expected_argument_type): Likewise. Add argument
4624 'probe'. Improve error message by mentioning the probe's name.
4625 (stap_parse_probe_arguments): Adjust call to
4626 stap_get_expected_argument_type.
4627 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
4628 not zero. Call internal_error if GDB requests an argument but the
4629 probe has no arguments.
4630
dc5c8746
PMR
46312015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
4632
4633 * ada-lang.c (ada_resolve_function): Do not ask the user what
4634 match to use when in completion mode.
4635
136765ea
AB
46362015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
4637
4638 * tui/tui-data.c (tui_win_name): Make local variable const, remove
4639 cast of NULL.
4640
90b81c5f
MF
46412015-08-31 Max Filippov <jcmvbkbc@gmail.com>
4642
4643 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
4644 call_abi using XSHAL_ABI macro.
4645
1cd36e54
DE
46462015-08-29 Doug Evans <xdje42@gmail.com>
4647
4648 * symtab.h (struct symbol): Tweak comment.
4649
8f57eec2
PP
46502015-08-29 Patrick Palka <patrick@parcs.ath.cx>
4651
4652 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
4653 gdbarch obstack instead of on the heap. Update commentary
4654 accordingly.
4655
38eebd71
JB
46562015-08-28 Joel Brobecker <brobecker@adacore.com>
4657
4658 GDB 7.10 released.
4659
d63dd61e
SM
46602015-08-28 Simon Marchi <simon.marchi@ericsson.com>
4661
4662 * NEWS: Update entry about non-8-bits addressable memory.
4663
6f059256
UW
46642015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
4665
4666 Revert:
4667 2014-11-06 Doug Evans <xdje42@gmail.com>
4668 * solib.c (solib_global_lookup): Fetch arch from objfile,
4669 not target_gdbarch.
4670
70987a92 46712015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
4672
4673 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
4674 attempt to relocate a TLS variable offset.
4675
70987a92 46762015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
4677
4678 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
4679 registered yet. Set inferior_ptid while calling target_read_memory.
4680
70987a92 46812015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
4682
4683 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
4684 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
4685 * linux-nat.c (check_stopped_by_breakpoint): Use
4686 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
4687
70987a92 46882015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
4689
4690 * linux-thread-db.c (thread_db_get_thread_local_address): If the
4691 thread was not yet discovered, use thread_from_lwp instead of
4692 calling thread_db_find_new_threads_1.
4693
f5cdf498
SM
46942015-08-27 Simon Marchi <simon.marchi@ericsson.com>
4695
4696 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
4697 statements.
4698
fd2ae5d6
SM
46992015-08-27 Simon Marchi <simon.marchi@ericsson.com>
4700
4701 * NEWS: Document support for non-8-bits addressable memory.
4702
14d88147
PA
47032015-08-27 Pedro Alves <palves@redhat.com>
4704
4705 * configure.ac: Remove AC_TYPE_SIGNAL call.
4706 * configure, config.in: Regenerate.
4707
a40805d4
PA
47082015-08-27 Pedro Alves <palves@redhat.com>
4709
4710 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
4711 * extension-priv.h: Include signal.h.
4712 (struct signal_handler) <handler>: Change type to sighandler_t.
4713 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
4714 * inflow.c (sigint_ours, sigquit_ours): Change type to
4715 sighandler_t.
4716 (child_terminal_inferior): Remove casts.
4717 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
4718 (osig): Change type to sighandler_t.
4719 * nto-procfs.c (ofunc): Change type to sighandler_t.
4720 (procfs_wait): Remove casts.
4721 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
4722 * remote-sim.c (gdbsim_wait): Use sighandler_t.
4723 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
4724
0750520d
PA
47252015-08-27 Pedro Alves <palves@redhat.com>
4726
4727 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
4728 * gnulib/aclocal.m4: Renegerate.
4729 * gnulib/config.in: Renegerate.
4730 * gnulib/configure: Renegerate.
4731 * gnulib/import/Makefile.am: Update.
4732 * gnulib/import/Makefile.in: Regenerate.
4733 * gnulib/import/m4/gnulib-cache.m4: Update.
4734 * gnulib/import/m4/gnulib-comp.m4: Update.
4735 * gnulib/import/m4/signal_h.m4: New file.
4736 * gnulib/import/signal.in.h: New file.
4737
a5c0808e
PA
47382015-08-27 Pedro Alves <palves@redhat.com>
4739
4740 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
4741 (MIN_MEMORY_PACKET_SIZE): New.
4742 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
4743 (get_memory_packet_size): Adjust. No longer limit the max packet
4744 size.
4745 (set_memory_packet_size): Adjust, and remove dead code.
4746 (remote_check_symbols): Use xmalloc and a cleanup instead of
4747 alloca.
4748 (remote_packet_size): No longer cap the packet size.
4749 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
4750
cdaec3f3
LM
47512015-08-26 Luis Machado <lgustavo@codesourcery.com>
4752
4753 * compile/compile.c (compile_to_object): Mention language in
4754 error message.
4755
e9756d52
PP
47562015-08-26 Patrick Palka <patrick@parcs.ath.cx>
4757
4758 * target.c (target_pre_inferior): Unset attach_flag.
4759
1dc7a623
SM
47602015-08-26 Simon Marchi <simon.marchi@ericsson.com>
4761
4762 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
4763 * gdbarch.c: Re-generate.
4764
8d749320
SM
47652015-08-26 Simon Marchi <simon.marchi@ericsson.com>
4766
6711b7f8
SM
4767 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
4768 function with the XNEW-family equivalent.
8d749320
SM
4769 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
4770 * ada-exp.y (write_ambiguous_var): Likewise.
4771 * ada-lang.c (resolve_subexp): Likewise.
4772 (user_select_syms): Likewise.
4773 (assign_aggregate): Likewise.
4774 (ada_evaluate_subexp): Likewise.
4775 (cache_symbol): Likewise.
4776 * addrmap.c (allocate_key): Likewise.
4777 (addrmap_create_mutable): Likewise.
4778 * aix-thread.c (sync_threadlists): Likewise.
4779 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
4780 (alpha_gdbarch_init): Likewise.
4781 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
4782 * arm-linux-nat.c (arm_linux_add_process): Likewise.
4783 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4784 * arm-tdep.c (push_stack_item): Likewise.
4785 (arm_displaced_step_copy_insn): Likewise.
4786 (arm_gdbarch_init): Likewise.
4787 (_initialize_arm_tdep): Likewise.
4788 * avr-tdep.c (push_stack_item): Likewise.
4789 * ax-general.c (new_agent_expr): Likewise.
4790 * block.c (block_initialize_namespace): Likewise.
4791 * breakpoint.c (alloc_counted_command_line): Likewise.
4792 (update_dprintf_command_list): Likewise.
4793 (parse_breakpoint_sals): Likewise.
4794 (decode_static_tracepoint_spec): Likewise.
4795 (until_break_command): Likewise.
4796 (clear_command): Likewise.
4797 (update_global_location_list): Likewise.
4798 (get_breakpoint_objfile_data) Likewise.
4799 * btrace.c (ftrace_new_function): Likewise.
4800 (btrace_set_insn_history): Likewise.
4801 (btrace_set_call_history): Likewise.
4802 * buildsym.c (add_symbol_to_list): Likewise.
4803 (record_pending_block): Likewise.
4804 (start_subfile): Likewise.
4805 (start_buildsym_compunit): Likewise.
4806 (push_subfile): Likewise.
4807 (end_symtab_get_static_block): Likewise.
4808 (buildsym_init): Likewise.
4809 * cli/cli-cmds.c (source_command): Likewise.
4810 * cli/cli-decode.c (add_cmd): Likewise.
4811 * cli/cli-script.c (build_command_line): Likewise.
4812 (setup_user_args): Likewise.
4813 (realloc_body_list): Likewise.
4814 (process_next_line): Likewise.
4815 (copy_command_lines): Likewise.
4816 * cli/cli-setshow.c (do_set_command): Likewise.
4817 * coff-pe-read.c (read_pe_exported_syms): Likewise.
4818 * coffread.c (coff_locate_sections): Likewise.
4819 (coff_symtab_read): Likewise.
4820 (coff_read_struct_type): Likewise.
4821 * common/cleanups.c (make_my_cleanup2): Likewise.
4822 * common/common-exceptions.c (throw_it): Likewise.
4823 * common/filestuff.c (make_cleanup_close): Likewise.
4824 * common/format.c (parse_format_string): Likewise.
4825 * common/queue.h (DEFINE_QUEUE_P): Likewise.
4826 * compile/compile-object-load.c (munmap_list_add): Likewise.
4827 (compile_object_load): Likewise.
4828 * compile/compile-object-run.c (compile_object_run): Likewise.
4829 * compile/compile.c (append_args): Likewise.
4830 * corefile.c (specify_exec_file_hook): Likewise.
4831 * cp-support.c (make_symbol_overload_list): Likewise.
4832 * cris-tdep.c (push_stack_item): Likewise.
4833 (cris_gdbarch_init): Likewise.
4834 * ctf.c (ctf_trace_file_writer_new): Likewise.
4835 * dbxread.c (init_header_files): Likewise.
4836 (add_new_header_file): Likewise.
4837 (init_bincl_list): Likewise.
4838 (dbx_end_psymtab): Likewise.
4839 (start_psymtab): Likewise.
4840 (dbx_end_psymtab): Likewise.
4841 * dcache.c (dcache_init): Likewise.
4842 * dictionary.c (dict_create_hashed): Likewise.
4843 (dict_create_hashed_expandable): Likewise.
4844 (dict_create_linear): Likewise.
4845 (dict_create_linear_expandable): Likewise.
4846 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
4847 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
4848 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
4849 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4850 (decode_frame_entry_1): Likewise.
4851 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
4852 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4853 * dwarf2read.c (dwarf2_has_info): Likewise.
4854 (create_signatured_type_table_from_index): Likewise.
4855 (dwarf2_read_index): Likewise.
4856 (dw2_get_file_names_reader): Likewise.
4857 (create_all_type_units): Likewise.
4858 (read_cutu_die_from_dwo): Likewise.
4859 (init_tu_and_read_dwo_dies): Likewise.
4860 (init_cutu_and_read_dies): Likewise.
4861 (create_all_comp_units): Likewise.
4862 (queue_comp_unit): Likewise.
4863 (inherit_abstract_dies): Likewise.
4864 (read_call_site_scope): Likewise.
4865 (dwarf2_add_field): Likewise.
4866 (dwarf2_add_typedef): Likewise.
4867 (dwarf2_add_member_fn): Likewise.
4868 (attr_to_dynamic_prop): Likewise.
4869 (abbrev_table_alloc_abbrev): Likewise.
4870 (abbrev_table_read_table): Likewise.
4871 (add_include_dir): Likewise.
4872 (add_file_name): Likewise.
4873 (dwarf_decode_line_header): Likewise.
4874 (dwarf2_const_value_attr): Likewise.
4875 (dwarf_alloc_block): Likewise.
4876 (parse_macro_definition): Likewise.
4877 (set_die_type): Likewise.
4878 (write_psymtabs_to_index): Likewise.
4879 (create_cus_from_index): Likewise.
4880 (dwarf2_create_include_psymtab): Likewise.
4881 (process_psymtab_comp_unit_reader): Likewise.
4882 (build_type_psymtab_dependencies): Likewise.
4883 (read_comp_units_from_section): Likewise.
4884 (compute_compunit_symtab_includes): Likewise.
4885 (create_dwo_unit_in_dwp_v1): Likewise.
4886 (create_dwo_unit_in_dwp_v2): Likewise.
4887 (read_func_scope): Likewise.
4888 (process_structure_scope): Likewise.
4889 (mark_common_block_symbol_computed): Likewise.
4890 (load_partial_dies): Likewise.
4891 (dwarf2_symbol_mark_computed): Likewise.
4892 * elfread.c (elf_symfile_segments): Likewise.
4893 (elf_read_minimal_symbols): Likewise.
4894 * environ.c (make_environ): Likewise.
4895 * eval.c (evaluate_subexp_standard): Likewise.
4896 * event-loop.c (create_file_handler): Likewise.
4897 (create_async_signal_handler): Likewise.
4898 (create_async_event_handler): Likewise.
4899 (create_timer): Likewise.
4900 * exec.c (build_section_table): Likewise.
4901 * fbsd-nat.c (fbsd_remember_child): Likewise.
4902 * fork-child.c (fork_inferior): Likewise.
4903 * frv-tdep.c (new_variant): Likewise.
4904 * gdbarch.sh (gdbarch_alloc): Likewise.
4905 (append_name): Likewise.
4906 * gdbtypes.c (rank_function): Likewise.
4907 (copy_type_recursive): Likewise.
4908 (add_dyn_prop): Likewise.
4909 * gnu-nat.c (make_proc): Likewise.
4910 (make_inf): Likewise.
4911 (gnu_write_inferior): Likewise.
4912 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4913 (build_std_type_info_type): Likewise.
4914 * guile/scm-param.c (compute_enum_list): Likewise.
4915 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
4916 * guile/scm-value.c (gdbscm_value_call): Likewise.
4917 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4918 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4919 (read_unwind_info): Likewise.
4920 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4921 * infcall.c (dummy_frame_context_saver_setup): Likewise.
4922 (call_function_by_hand_dummy): Likewise.
4923 * infcmd.c (step_once): Likewise.
4924 (finish_forward): Likewise.
4925 (attach_command): Likewise.
4926 (notice_new_inferior): Likewise.
4927 * inferior.c (add_inferior_silent): Likewise.
4928 * infrun.c (add_displaced_stepping_state): Likewise.
4929 (save_infcall_control_state): Likewise.
4930 (save_inferior_ptid): Likewise.
4931 (_initialize_infrun): Likewise.
4932 * jit.c (bfd_open_from_target_memory): Likewise.
4933 (jit_gdbarch_data_init): Likewise.
4934 * language.c (add_language): Likewise.
4935 * linespec.c (decode_line_2): Likewise.
4936 * linux-nat.c (add_to_pid_list): Likewise.
4937 (add_initial_lwp): Likewise.
4938 * linux-thread-db.c (add_thread_db_info): Likewise.
4939 (record_thread): Likewise.
4940 (info_auto_load_libthread_db): Likewise.
4941 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
4942 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4943 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4944 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
4945 * macrocmd.c (macro_define_command): Likewise.
4946 * macroexp.c (gather_arguments): Likewise.
4947 * macroscope.c (sal_macro_scope): Likewise.
4948 * macrotab.c (new_macro_table): Likewise.
4949 * mdebugread.c (push_parse_stack): Likewise.
4950 (parse_partial_symbols): Likewise.
4951 (parse_symbol): Likewise.
4952 (psymtab_to_symtab_1): Likewise.
4953 (new_block): Likewise.
4954 (new_psymtab): Likewise.
4955 (mdebug_build_psymtabs): Likewise.
4956 (add_pending): Likewise.
4957 (elfmdebug_build_psymtabs): Likewise.
4958 * mep-tdep.c (mep_gdbarch_init): Likewise.
4959 * mi/mi-main.c (mi_execute_command): Likewise.
4960 * mi/mi-parse.c (mi_parse_argv): Likewise.
4961 * minidebug.c (lzma_open): Likewise.
4962 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4963 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
4964 * mips-tdep.c (mips_gdbarch_init): Likewise.
4965 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4966 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
4967 * mt-tdep.c (mt_registers_info): Likewise.
4968 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
4969 * nat/linux-btrace.c (linux_enable_bts): Likewise.
4970 (linux_enable_pt): Likewise.
4971 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
4972 (linux_xfer_osdata_processgroups): Likewise.
4973 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
4974 * nto-procfs.c (procfs_meminfo): Likewise.
4975 * objc-lang.c (start_msglist): Likewise.
4976 (selectors_info): Likewise.
4977 (classes_info): Likewise.
4978 (find_methods): Likewise.
4979 * objfiles.c (allocate_objfile): Likewise.
4980 (update_section_map): Likewise.
4981 * osabi.c (gdbarch_register_osabi): Likewise.
4982 (gdbarch_register_osabi_sniffer): Likewise.
4983 * parse.c (start_arglist): Likewise.
4984 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
4985 (hwdebug_insert_point): Likewise.
4986 * printcmd.c (display_command): Likewise.
4987 (ui_printf): Likewise.
4988 * procfs.c (create_procinfo): Likewise.
4989 (load_syscalls): Likewise.
4990 (proc_get_LDT_entry): Likewise.
4991 (proc_update_threads): Likewise.
4992 * prologue-value.c (make_pv_area): Likewise.
4993 (pv_area_store): Likewise.
4994 * psymtab.c (extend_psymbol_list): Likewise.
4995 (init_psymbol_list): Likewise.
4996 (allocate_psymtab): Likewise.
4997 * python/py-inferior.c (add_thread_object): Likewise.
4998 * python/py-param.c (compute_enum_values): Likewise.
4999 * python/py-value.c (valpy_call): Likewise.
5000 * python/py-varobj.c (py_varobj_iter_next): Likewise.
5001 * python/python.c (ensure_python_env): Likewise.
5002 * record-btrace.c (record_btrace_start_replaying): Likewise.
5003 * record-full.c (record_full_reg_alloc): Likewise.
5004 (record_full_mem_alloc): Likewise.
5005 (record_full_end_alloc): Likewise.
5006 (record_full_core_xfer_partial): Likewise.
5007 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
5008 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
5009 * remote-notif.c (remote_notif_state_allocate): Likewise.
5010 * remote.c (demand_private_info): Likewise.
5011 (remote_notif_stop_alloc_reply): Likewise.
5012 (remote_enable_btrace): Likewise.
5013 * reverse.c (save_bookmark_command): Likewise.
5014 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5015 * rx-tdep.c (rx_gdbarch_init): Likewise.
5016 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5017 * ser-go32.c (dos_get_tty_state): Likewise.
5018 (dos_copy_tty_state): Likewise.
5019 * ser-mingw.c (ser_windows_open): Likewise.
5020 (ser_console_wait_handle): Likewise.
5021 (ser_console_get_tty_state): Likewise.
5022 (make_pipe_state): Likewise.
5023 (net_windows_open): Likewise.
5024 * ser-unix.c (hardwire_get_tty_state): Likewise.
5025 (hardwire_copy_tty_state): Likewise.
5026 * solib-aix.c (solib_aix_new_lm_info): Likewise.
5027 * solib-dsbt.c (dsbt_current_sos): Likewise.
5028 (dsbt_relocate_main_executable): Likewise.
5029 * solib-frv.c (frv_current_sos): Likewise.
5030 (frv_relocate_main_executable): Likewise.
5031 * solib-spu.c (spu_bfd_fopen): Likewise.
5032 * solib-svr4.c (lm_info_read): Likewise.
5033 (svr4_copy_library_list): Likewise.
5034 (svr4_default_sos): Likewise.
5035 * source.c (find_source_lines): Likewise.
5036 (line_info): Likewise.
5037 (add_substitute_path_rule): Likewise.
5038 * spu-linux-nat.c (spu_bfd_open): Likewise.
5039 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
5040 * stabsread.c (dbx_lookup_type): Likewise.
5041 (read_type): Likewise.
5042 (read_member_functions): Likewise.
5043 (read_struct_fields): Likewise.
5044 (read_baseclasses): Likewise.
5045 (read_args): Likewise.
5046 (_initialize_stabsread): Likewise.
5047 * stack.c (func_command): Likewise.
5048 * stap-probe.c (handle_stap_probe): Likewise.
5049 * symfile.c (addrs_section_sort): Likewise.
5050 (addr_info_make_relative): Likewise.
5051 (load_section_callback): Likewise.
5052 (add_symbol_file_command): Likewise.
5053 (init_filename_language_table): Likewise.
5054 * symtab.c (create_filename_seen_cache): Likewise.
5055 (sort_search_symbols_remove_dups): Likewise.
5056 (search_symbols): Likewise.
5057 * target.c (make_cleanup_restore_target_terminal): Likewise.
5058 * thread.c (new_thread): Likewise.
5059 (enable_thread_stack_temporaries): Likewise.
5060 (make_cleanup_restore_current_thread): Likewise.
5061 (thread_apply_all_command): Likewise.
5062 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
5063 * top.c (gdb_readline_wrapper): Likewise.
5064 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
5065 * tracepoint.c (trace_find_line_command): Likewise.
5066 (all_tracepoint_actions_and_cleanup): Likewise.
5067 (make_cleanup_restore_current_traceframe): Likewise.
5068 (get_uploaded_tp): Likewise.
5069 (get_uploaded_tsv): Likewise.
5070 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
5071 (tui_alloc_win_info): Likewise.
5072 (tui_alloc_content): Likewise.
5073 (tui_add_content_elements): Likewise.
5074 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
5075 (tui_set_disassem_content): Likewise.
5076 * ui-file.c (ui_file_new): Likewise.
5077 (stdio_file_new): Likewise.
5078 (tee_file_new): Likewise.
5079 * utils.c (make_cleanup_restore_integer): Likewise.
5080 (add_internal_problem_command): Likewise.
5081 * v850-tdep.c (v850_gdbarch_init): Likewise.
5082 * valops.c (find_oload_champ): Likewise.
5083 * value.c (allocate_value_lazy): Likewise.
5084 (record_latest_value): Likewise.
5085 (create_internalvar): Likewise.
5086 * varobj.c (install_variable): Likewise.
5087 (new_variable): Likewise.
5088 (new_root_variable): Likewise.
5089 (cppush): Likewise.
5090 (_initialize_varobj): Likewise.
5091 * windows-nat.c (windows_make_so): Likewise.
5092 * x86-nat.c (x86_add_process): Likewise.
5093 * xcoffread.c (arrange_linetable): Likewise.
5094 (allocate_include_entry): Likewise.
5095 (process_linenos): Likewise.
5096 (SYMBOL_DUP): Likewise.
5097 (xcoff_start_psymtab): Likewise.
5098 (xcoff_end_psymtab): Likewise.
5099 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
5100 * xtensa-tdep.c (xtensa_register_type): Likewise.
5101 * gdbarch.c: Regenerate.
5102 * gdbarch.h: Regenerate.
5103
17d8546e
DB
51042015-08-25 Don Breazeal <donb@codesourcery.com>
5105
5106 * infrun.c (follow_exec): Re-order operations for
5107 handling follow-exec-mode "new".
5108 (handle_inferior_event_1): Assign ecs->event_thread
5109 to the current thread.
5110 * remote.c (get_remote_arch_state): Add an assertion.
5111
ba49e44b
PA
51122015-08-26 Pedro Alves <palves@redhat.com>
5113
5114 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
5115
7541ab03 51162015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 5117
7541ab03 5118 PR gdb/18804
abc56d60
PA
5119 * defs.h (maybe_quit): Declare.
5120 (QUIT): Now calls maybe_quit.
5121 * event-loop.c (clear_async_signal_handler)
5122 (async_signal_handler_is_marked): New functions.
5123 * event-loop.h (async_signal_handler_is_marked)
5124 (clear_async_signal_handler): New declarations.
5125 * remote.c (remote_check_pending_interrupt): New function.
5126 (interrupt_query): Use make_cleanup_restore_target_terminal. No
5127 longer check whether the target is async. If waiting for a stop
5128 reply, and a Ctrl-C as been sent to the target, offer to
5129 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
5130 Otherwise do not disconnect and throw a quit.
5131 (_initialize_remote): Install remote_check_pending_interrupt as
5132 to_check_pending_interrupt.
5133 * target.c (target_check_pending_interrupt): New function.
5134 * target.h (struct target_ops) <to_check_pending_interrupt>: New
5135 field.
5136 (target_check_pending_interrupt): New declaration.
5137 * utils.c (maybe_quit): New function.
5138 * target-delegates.c: Regenerate.
5139
dfe7f77c
YQ
51402015-08-25 Yao Qi <yao.qi@linaro.org>
5141
5142 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
5143 Rename local variable pid to tid, and get lwpid of lwp. Update
5144 debug output.
5145
63e43d3a
PMR
51462015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
5147
5148 * ada-lang.c (ada_read_var_value): Add a var_block argument
5149 and pass it to default_read_var_value.
5150 * block.c (block_static_link): New accessor.
5151 * block.h (block_static_link): Declare it.
5152 * buildsym.c (finish_block_internal): Add a static_link
5153 argument. If there is a static link, associate it to the new
5154 block.
5155 (finish_block): Add a static link argument and pass it to
5156 finish_block_internal.
5157 (end_symtab_get_static_block): Update calls to finish_block and
5158 to finish_block_internal.
5159 (end_symtab_with_blockvector): Update call to
5160 finish_block_internal.
5161 * buildsym.h: Forward-declare struct dynamic_prop.
5162 (struct context_stack): Add a static_link field.
5163 (finish_block): Add a static link argument.
5164 * c-exp.y: Remove an obsolete comment (evaluation of variables
5165 already start from the selected frame, and now they climb *up*
5166 the call stack) and propagate the block information to the
5167 produced expression.
5168 * d-exp.y: Likewise.
5169 * f-exp.y: Likewise.
5170 * go-exp.y: Likewise.
5171 * jv-exp.y: Likewise.
5172 * m2-exp.y: Likewise.
5173 * p-exp.y: Likewise.
5174 * coffread.c (coff_symtab_read): Update calls to finish_block.
5175 * dbxread.c (process_one_symbol): Likewise.
5176 * xcoffread.c (read_xcoff_symtab): Likewise.
5177 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
5178 "sym" parameter to struct block_symbol, update its uses and pass
5179 its block to calls to read_var_value.
5180 (convert_symbol_sym): Update the calls to convert_one_symbol.
5181 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
5182 call to read_var_value.
5183 * dwarf2loc.c (block_op_get_frame_base): New.
5184 (dwarf2_block_frame_base_locexpr_funcs): Implement the
5185 get_frame_base method.
5186 (dwarf2_block_frame_base_loclist_funcs): Likewise.
5187 (dwarf2locexpr_baton_eval): Add a frame argument and use it
5188 instead of the selected frame in order to evaluate the
5189 expression.
5190 (dwarf2_evaluate_property): Add a frame argument. Update call
5191 to dwarf2_locexpr_baton_eval to provide a frame in available and
5192 to handle the absence of address stack.
5193 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
5194 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
5195 declaration.
5196 (read_func_scope): Record any available static link description.
5197 Update call to finish_block.
5198 (read_lexical_block_scope): Update call to finish_block.
5199 * findvar.c (follow_static_link): New.
5200 (get_hosting_frame): New.
5201 (default_read_var_value): Add a var_block argument. Use
5202 get_hosting_frame to handle non-local references.
5203 (read_var_value): Add a var_block argument and pass it to the
5204 LA_READ_VAR_VALUE method.
5205 * gdbtypes.c (resolve_dynamic_range): Update calls to
5206 dwarf2_evaluate_property.
5207 (resolve_dynamic_type_internal): Likewise.
5208 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
5209 read_var_value, passing it the block coming from symbol lookup.
5210 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
5211 read_var_value (TODO).
5212 * infcmd.c (finish_command_continuation): Update call to
5213 read_var_value, passing it the block coming from symbol lookup.
5214 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5215 * language.h (struct language_defn): Add a var_block argument to
5216 the LA_READ_VAR_VALUE method.
5217 * objfiles.c (struct static_link_htab_entry): New.
5218 (static_link_htab_entry_hash): New.
5219 (static_link_htab_entry_eq): New.
5220 (objfile_register_static_link): New.
5221 (objfile_lookup_static_link): New.
5222 (free_objfile): Free the STATIC_LINKS hashed map if needed.
5223 * objfiles.h: Include hashtab.h.
5224 (struct objfile): Add a static_links field.
5225 (objfile_register_static_link): New.
5226 (objfile_lookup_static_link): New.
5227 * printcmd.c (print_variable_and_value): Update call to
5228 read_var_value.
5229 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
5230 * python/py-frame.c (frapy_read_var): Update call to
5231 read_var_value, passing it the block coming from symbol lookup.
5232 * python/py-framefilter.c (extract_sym): Add a sym_block
5233 parameter and set the pointed value to NULL (TODO).
5234 (enumerate_args): Update call to extract_sym.
5235 (enumerate_locals): Update calls to extract_sym and to
5236 read_var_value.
5237 * python/py-symbol.c (sympy_value): Update call to
5238 read_var_value (TODO).
5239 * stack.c (read_frame_local): Update call to read_var_value.
5240 (read_frame_arg): Likewise.
5241 (return_command): Likewise.
5242 * symtab.h (struct symbol_block_ops): Add a get_frame_base
5243 method.
5244 (struct symbol): Add a block field.
5245 (SYMBOL_BLOCK): New accessor.
5246 * valops.c (value_of_variable): Remove frame/block handling and
5247 pass the block argument to read_var_value, which does this job
5248 now.
5249 (value_struct_elt_for_reference): Update calls to
5250 read_var_value.
5251 (value_of_this): Pass the block found to read_var_value.
5252 * value.h (read_var_value): Add a var_block argument.
5253 (default_read_var_value): Likewise.
5254
ed8b7b42
YQ
52552015-08-25 Yao Qi <yao.qi@linaro.org>
5256
5257 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
5258 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
5259 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
5260
db3cb7cb
YQ
52612015-08-25 Yao Qi <yao.qi@linaro.org>
5262
5263 * Makefile.in (aarch64-liunx.o): New rule.
5264 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
5265 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
5266 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
5267 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
5268 extern.
5269 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
5270 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
5271 * nat/aarch64-linux.c: New file.
5272 * nat/aarch64-linux.h: New file.
5273
f6011a1c
YQ
52742015-08-25 Yao Qi <yao.qi@linaro.org>
5275
5276 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
5277 lwp_arch_private_info and ptid_of_lwp.
5278
5e35436e
YQ
52792015-08-25 Yao Qi <yao.qi@linaro.org>
5280
5281 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
5282 Move it to nat/aarch64-linux-hw-point.c.
5283 (debug_reg_change_callback): Likewise.
5284 (aarch64_notify_debug_reg_change): :Likewise.
5285 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
5286 (aarch64_dr_update_callback_param): New.
5287 (debug_reg_change_callback): New function.
5288 (aarch64_notify_debug_reg_change): Likewise.
5289 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
5290 Remove the declaration.
5291
4a8a7965
YQ
52922015-08-25 Yao Qi <yao.qi@linaro.org>
5293
5294 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
5295 Call current_lwp_ptid.
5296
32a271ee
YQ
52972015-08-25 Yao Qi <yao.qi@linaro.org>
5298
5299 * aarch64-linux-nat.c (debug_reg_change_callback): Use
5300 debug_printf.
5301
5e137137
YQ
53022015-08-25 Yao Qi <yao.qi@linaro.org>
5303
5304 * aarch64-linux-nat.c (debug_reg_change_callback): Call
5305 ptid_get_pid rather than ptid_get_lwp.
5306
73b8c1fd
PA
53072015-08-24 Pedro Alves <palves@redhat.com>
5308
5309 * NEWS (New commands): Mention set/show remote
5310 multiprocess-extensions-packet.
5311 * remote.c (remote_query_supported): Only tell the server to use
5312 the multiprocess extensions if the user hasn't force-disabled them
5313 with "set remote multiprocess-extensions-packet off".
5314
4a626d0a
PA
53152015-08-24 Pedro Alves <palves@redhat.com>
5316
5317 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
5318 1029a8112290f6eee9d7878a391c49db42c999bd.
5319 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
5320 Regenerate.
5321 * gnulib/import/Makefile.am: Update.
5322 * gnulib/import/Makefile.in: Update.
5323 * gnulib/import/alloca.in.h: Update.
5324 * gnulib/import/basename-lgpl.c: Update.
5325 * gnulib/import/canonicalize-lgpl.c: Update.
5326 * gnulib/import/config.charset: Update.
5327 * gnulib/import/dirent.in.h: Update.
5328 * gnulib/import/dirfd.c: Update.
5329 * gnulib/import/dirname-lgpl.c: Update.
5330 * gnulib/import/dirname.h: Update.
5331 * gnulib/import/dosname.h: Update.
5332 * gnulib/import/errno.in.h: Update.
5333 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
5334 * gnulib/import/extra/snippet/c++defs.h: Update.
5335 * gnulib/import/extra/snippet/warn-on-use.h: Update.
5336 * gnulib/import/extra/update-copyright: Update.
5337 * gnulib/import/float+.h: Update.
5338 * gnulib/import/float.c: Update.
5339 * gnulib/import/float.in.h: Update.
5340 * gnulib/import/fnmatch.c: Update.
5341 * gnulib/import/fnmatch.in.h: Update.
5342 * gnulib/import/fnmatch_loop.c: Update.
5343 * gnulib/import/fpucw.h: Update.
5344 * gnulib/import/frexp.c: Update.
5345 * gnulib/import/frexpl.c: Update.
5346 * gnulib/import/gettimeofday.c: Update.
5347 * gnulib/import/inttypes.in.h: Update.
5348 * gnulib/import/isnan.c: Update.
5349 * gnulib/import/isnand-nolibm.h: Update.
5350 * gnulib/import/isnand.c: Update.
5351 * gnulib/import/isnanl-nolibm.h: Update.
5352 * gnulib/import/isnanl.c: Update.
5353 * gnulib/import/itold.c: Update.
5354 * gnulib/import/localcharset.c: Update.
5355 * gnulib/import/localcharset.h: Update.
5356 * gnulib/import/lstat.c: Update.
5357 * gnulib/import/m4/00gnulib.m4: Update.
5358 * gnulib/import/m4/absolute-header.m4: Update.
5359 * gnulib/import/m4/alloca.m4: Update.
5360 * gnulib/import/m4/canonicalize.m4: Update.
5361 * gnulib/import/m4/codeset.m4: Update.
5362 * gnulib/import/m4/configmake.m4: Update.
5363 * gnulib/import/m4/dirent_h.m4: Update.
5364 * gnulib/import/m4/dirfd.m4: Update.
5365 * gnulib/import/m4/dirname.m4: Update.
5366 * gnulib/import/m4/double-slash-root.m4: Update.
5367 * gnulib/import/m4/eealloc.m4: Update.
5368 * gnulib/import/m4/errno_h.m4: Update.
5369 * gnulib/import/m4/exponentd.m4: Update.
5370 * gnulib/import/m4/exponentl.m4: Update.
5371 * gnulib/import/m4/extensions.m4: Update.
5372 * gnulib/import/m4/extern-inline.m4: Update.
5373 * gnulib/import/m4/fcntl-o.m4: Update.
5374 * gnulib/import/m4/float_h.m4: Update.
5375 * gnulib/import/m4/fnmatch.m4: Update.
5376 * gnulib/import/m4/fpieee.m4: Update.
5377 * gnulib/import/m4/frexp.m4: Update.
5378 * gnulib/import/m4/frexpl.m4: Update.
5379 * gnulib/import/m4/gettimeofday.m4: Update.
5380 * gnulib/import/m4/glibc21.m4: Update.
5381 * gnulib/import/m4/gnulib-cache.m4: Update.
5382 * gnulib/import/m4/gnulib-common.m4: Update.
5383 * gnulib/import/m4/gnulib-comp.m4: Update.
5384 * gnulib/import/m4/gnulib-tool.m4: Update.
5385 * gnulib/import/m4/include_next.m4: Update.
5386 * gnulib/import/m4/inttypes-pri.m4: Update.
5387 * gnulib/import/m4/inttypes.m4: Update.
5388 * gnulib/import/m4/isnand.m4: Update.
5389 * gnulib/import/m4/isnanl.m4: Update.
5390 * gnulib/import/m4/largefile.m4: Update.
5391 * gnulib/import/m4/localcharset.m4: Update.
5392 * gnulib/import/m4/locale-fr.m4: Update.
5393 * gnulib/import/m4/locale-ja.m4: Update.
5394 * gnulib/import/m4/locale-zh.m4: Update.
5395 * gnulib/import/m4/longlong.m4: Update.
5396 * gnulib/import/m4/lstat.m4: Update.
5397 * gnulib/import/m4/malloc.m4: Update.
5398 * gnulib/import/m4/malloca.m4: Update.
5399 * gnulib/import/m4/math_h.m4: Update.
5400 * gnulib/import/m4/mbrtowc.m4: Update.
5401 * gnulib/import/m4/mbsinit.m4: Update.
5402 * gnulib/import/m4/mbsrtowcs.m4: Update.
5403 * gnulib/import/m4/mbstate_t.m4: Update.
5404 * gnulib/import/m4/memchr.m4: Update.
5405 * gnulib/import/m4/memmem.m4: Update.
5406 * gnulib/import/m4/mmap-anon.m4: Update.
5407 * gnulib/import/m4/multiarch.m4: Update.
5408 * gnulib/import/m4/nocrash.m4: Update.
5409 * gnulib/import/m4/off_t.m4: Update.
5410 * gnulib/import/m4/pathmax.m4: Update.
5411 * gnulib/import/m4/readlink.m4: Update.
5412 * gnulib/import/m4/rename.m4: Update.
5413 * gnulib/import/m4/rmdir.m4: Update.
5414 * gnulib/import/m4/ssize_t.m4: Update.
5415 * gnulib/import/m4/stat.m4: Update.
5416 * gnulib/import/m4/stdbool.m4: Update.
5417 * gnulib/import/m4/stddef_h.m4: Update.
5418 * gnulib/import/m4/stdint.m4: Update.
5419 * gnulib/import/m4/stdio_h.m4: Update.
5420 * gnulib/import/m4/stdlib_h.m4: Update.
5421 * gnulib/import/m4/string_h.m4: Update.
5422 * gnulib/import/m4/strstr.m4: Update.
5423 * gnulib/import/m4/strtok_r.m4: Update.
5424 * gnulib/import/m4/sys_socket_h.m4: Update.
5425 * gnulib/import/m4/sys_stat_h.m4: Update.
5426 * gnulib/import/m4/sys_time_h.m4: Update.
5427 * gnulib/import/m4/sys_types_h.m4: Update.
5428 * gnulib/import/m4/time_h.m4: Update.
5429 * gnulib/import/m4/unistd_h.m4: Update.
5430 * gnulib/import/m4/warn-on-use.m4: Update.
5431 * gnulib/import/m4/wchar_h.m4: Update.
5432 * gnulib/import/m4/wchar_t.m4: Update.
5433 * gnulib/import/m4/wctype_h.m4: Update.
5434 * gnulib/import/m4/wint_t.m4: Update.
5435 * gnulib/import/malloc.c: Update.
5436 * gnulib/import/malloca.c: Update.
5437 * gnulib/import/malloca.h: Update.
5438 * gnulib/import/math.in.h: Update.
5439 * gnulib/import/mbrtowc.c: Update.
5440 * gnulib/import/mbsinit.c: Update.
5441 * gnulib/import/mbsrtowcs-impl.h: Update.
5442 * gnulib/import/mbsrtowcs-state.c: Update.
5443 * gnulib/import/mbsrtowcs.c: Update.
5444 * gnulib/import/memchr.c: Update.
5445 * gnulib/import/memmem.c: Update.
5446 * gnulib/import/pathmax.h: Update.
5447 * gnulib/import/readlink.c: Update.
5448 * gnulib/import/ref-add.sin: Update.
5449 * gnulib/import/ref-del.sin: Update.
5450 * gnulib/import/rename.c: Update.
5451 * gnulib/import/rmdir.c: Update.
5452 * gnulib/import/same-inode.h: Update.
5453 * gnulib/import/stat.c: Update.
5454 * gnulib/import/stdbool.in.h: Update.
5455 * gnulib/import/stddef.in.h: Update.
5456 * gnulib/import/stdint.in.h: Update.
5457 * gnulib/import/stdio.c: Update.
5458 * gnulib/import/stdio.in.h: Update.
5459 * gnulib/import/stdlib.in.h: Update.
5460 * gnulib/import/str-two-way.h: Update.
5461 * gnulib/import/streq.h: Update.
5462 * gnulib/import/string.in.h: Update.
5463 * gnulib/import/stripslash.c: Update.
5464 * gnulib/import/strnlen1.c: Update.
5465 * gnulib/import/strnlen1.h: Update.
5466 * gnulib/import/strstr.c: Update.
5467 * gnulib/import/strtok_r.c: Update.
5468 * gnulib/import/sys_stat.in.h: Update.
5469 * gnulib/import/sys_time.in.h: Update.
5470 * gnulib/import/sys_types.in.h: Update.
5471 * gnulib/import/time.in.h: Update.
5472 * gnulib/import/unistd.in.h: Update.
5473 * gnulib/import/verify.h: Update.
5474 * gnulib/import/wchar.in.h: Update.
5475 * gnulib/import/wctype.in.h: Update.
5476 * gnulib/import/gettimeofday.c: New file.
5477 * gnulib/import/m4/absolute-header.m4: New file.
5478 * gnulib/import/m4/gettimeofday.m4: New file.
5479 * gnulib/import/m4/sys_socket_h.m4: New file.
5480 * gnulib/import/m4/sys_time_h.m4: New file.
5481 * gnulib/import/stdio.c: Delete file.
5482 * gnulib/import/sys_time.in.h: New file.
5483
438e1e42
PA
54842015-08-24 Pedro Alves <palves@redhat.com>
5485
5486 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
5487 * common/gdb_sys_time.h: New file.
5488 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
5489 * gdb_select.h: Likewise.
5490 * gdb_usleep.c: Likewise.
5491 * maint.c: Likewise.
5492 * mi/mi-main.c: Likewise.
5493 * mi/mi-parse.h: Likewise.
5494 * remote-fileio.c: Likewise.
5495 * remote-m32r-sdi.c: Likewise.
5496 * remote.c: Likewise.
5497 * ser-base.c: Likewise.
5498 * ser-pipe.c: Likewise.
5499 * ser-tcp.c: Likewise.
5500 * ser-unix.c: Likewise.
5501 * symfile.c: Likewise.
5502 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
5503 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
5504 * utils.c: Likewise.
5505
40e0b271
PA
55062015-08-24 Pedro Alves <palves@redhat.com>
5507
5508 * NEWS: Mention removed support for the various ROM monitors.
5509 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
5510 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
5511 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
5512 gdb_target_obs.
5513 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
5514 gdb_target_obs.
5515 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
5516 dsrec.o from gdb_target_obs.
5517 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
5518 from gdb_target_obs.
5519 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
5520 gdb_target_obs.
5521 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
5522 dink32-rom.o from gdb_target_obs.
5523 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
5524 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
5525 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
5526 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
5527
f8904751
PA
55282015-08-21 Pedro Alves <palves@redhat.com>
5529
5530 * frame.c (null_frame_id): Explicitly zero-initialize.
5531
049412e3
TT
55322015-08-21 Tom Tromey <tromey@redhat.com>
5533
5534 * dwarf2read.c (struct dwarf2_section_info): Rename field
5535 'asection' to 'section'.
5536 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
5537 (dwarf2_locate_sections, dwarf2_locate_sections)
5538 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
5539 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
5540 (dwarf2_locate_v2_dwp_sections): Adjust.
5541
948578a9
PP
55422015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5543
5544 * top.h (gdb_in_secondary_prompt_p): Declare.
5545 * top.c (gdb_secondary_prompt_depth): Define.
5546 (gdb_in_secondary_prompt_p): Define.
5547 (gdb_readline_wrapper_cleanup): Decrement
5548 gdb_secondary_prompt_depth.
5549 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
5550 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
5551 are in a secondary prompt.
5552
7a8bcb88
PP
55532015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5554
5555 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
5556 emit the newline.
5557
2d7711a3
GB
55582015-08-21 Gary Benson <gbenson@redhat.com>
5559
5560 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
5561
4313b8c0
GB
55622015-08-21 Gary Benson <gbenson@redhat.com>
5563
5564 * target.h (struct target_ops) <to_fileio_open>: New argument
5565 warn_if_slow. Update comment. All implementations updated.
5566 (target_fileio_open_warn_if_slow): New declaration.
5567 * target.c (target_fileio_open): Renamed as...
5568 (target_fileio_open_1): ...this. New argument warn_if_slow.
5569 Pass warn_if_slow to implementation. Update debug printing.
5570 (target_fileio_open): New function.
5571 (target_fileio_open_warn_if_slow): Likewise.
5572 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
5573 target_fileio_open_warn_if_slow.
5574
f36b8719
GB
55752015-08-21 Gary Benson <gbenson@redhat.com>
5576
5577 * nat/linux-namespaces.c (linux_mntns_access_fs):
5578 Do not overwrite old_chain.
5579
40045d91
MF
55802015-08-20 Max Filippov <jcmvbkbc@gmail.com>
5581
5582 * arch/xtensa.h: New file.
5583 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
5584 (ps_get_thread_area): New function.
5585 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
5586 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
5587 * xtensa-tdep.c (osabi.h): New #include.
5588 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
5589 xtensa-specific hooks.
5590 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
5591 member and move the structure to arch/xtensa.h.
5592
80152258
PA
55932015-08-21 Pedro Alves <palves@redhat.com>
5594
5595 * remote.c (struct readahead_cache): New.
5596 (struct remote_state) <readahead_cache>: New field.
5597 (remote_open_1): Invalidate the cache.
5598 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
5599 functions.
5600 (remote_hostio_pwrite): Invalidate the readahead cache.
5601 (remote_hostio_pread): Rename to ...
5602 (remote_hostio_pread_vFile): ... this.
5603 (remote_hostio_pread_from_cache): New function.
5604 (remote_hostio_pread): Reimplement.
5605 (remote_hostio_close): Invalidate the readahead cache.
5606
88fc5eb7
MC
56072015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
5608
5609 PR build/18843
5610 * procfs.c: Include "filestuff.h".
5611
6f1cb6ea
PP
56122015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5613
5614 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
5615 curch.
5616 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
5617 cur_line or curch, instead call wmove().
5618 (init_win_info) [CMD_WIN]: Likewise.
5619 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
5620 instead call getcury().
5621 (tui_redisplay_readline): Don't set cur_line or curch.
5622 (tui_mld_erase_entire_line): Don't read cur_line, instead call
5623 getcury().
5624 (tui_cont_sig): Remove call to wmove.
5625 (tui_getc): Don't read cur_line or curch, instead call getcury()
5626 or getyx(). Don't set curch.
5627 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
5628 set cur_line or curch. Always move cursor to (0,0).
5629
221e1a37
PA
56302015-08-20 Pedro Alves <palves@redhat.com>
5631
5632 * infrun.c (print_target_wait_results): Make extern.
5633 * infrun.h (print_target_wait_results): Declare.
5634 * remote.c (set_stop_requested_callback): Delete.
5635 (process_initial_stop_replies): New function.
5636 (remote_start_remote): Use it.
5637 (stop_reply_queue_length): New function.
5638
40e3ad0e
PA
56392015-08-20 Pedro Alves <palves@redhat.com>
5640
5641 * dwarf2read.c (process_full_comp_unit): To tell whether
5642 start_subfile managed to deduce a language, test for
5643 language_unknown instead of language_c.
5644
af39b327
PMR
56452015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
5646
5647 * ada-lex.l: Reset the start condition to INITIAL in the rule that
5648 matches attributes.
5649
7d45c7c3
KB
56502015-08-19 Kevin Buettner <kevinb@redhat.com>
5651
5652 * dwarf2read.c (dwarf2_string_attr): New function.
5653 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
5654 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
5655 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
5656 (anonymous_struct_prefix, prepare_one_comp_unit): Use
5657 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
5658
4d6cceb4
DE
56592015-08-18 Doug Evans <dje@google.com>
5660 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5661
5662 PR mi/18833
5663 * cli/cli-logging.c (pop_output_files): Don't restore redirection
5664 if MI-like.
5665 * mi/mi-out.c: #include "vec.h".
5666 (ui_filep): New type.
5667 (DEV_VEC_P (ui_filep)): New type.
5668 (struct ui_out_data) <buffer, original_buffer>: Delete.
5669 (struct ui_out_data) <streams>: New member.
5670 (mi_ui_out_impl): Add data_destroy field.
5671 (mi_field_string, mi_field_fmt): Update.
5672 (mi_flush, mi_redirect, field_separator): Update.
5673 (mi_open, mi_close): Update.
5674 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
5675 (mi_out_data_ctor, mi_out_data_dtor): New functions.
5676 (mi_out_new): Call mi_out_data_ctor.
5677
26d56a93
SL
56782015-08-18 Sandra Loosemore <sandra@codesourcery.com>
5679
5680 * remote.c (strprefix): New.
5681 (remote_parse_stop_reply): Use strprefix instead of strncmp
5682 to ensure exact match of keyword.
5683
566f5e3b
AB
56842015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5685
5686 * gdb_bfd.c (debug_bfd_cache): New variable.
5687 (show_bfd_cache_debug): New function.
5688 (gdb_bfd_open): Add debug logging.
5689 (gdb_bfd_ref): Likewise.
5690 (gdb_bfd_unref): Likewise.
5691 (_initialize_gdb_bfd): Add new set/show command.
5692 * NEWS: Mention new command.
5693
18989b3c
AB
56942015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5695
5696 * gdb_bfd.c (bfd_sharing): New variable.
5697 (show_bfd_sharing): New function.
5698 (gdb_bfd_open): Check bfd_sharing variable.
5699 (_initialize_gdb_bfd): Add new set/show command.
5700 * NEWS: Mention new command.
5701
c04fe68f
AB
57022015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5703
5704 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
5705 field.
5706 (struct gdb_bfd_cache_search): Likewise.
5707 (eq_bfd): Compare the size, inode, and device id fields.
5708 (gdb_bfd_open): Initialise the size, inode, and device id fields.
5709 (gdb_bfd_ref): Likewise.
5710 (gdb_bfd_unref): Likewise.
5711
b2a33439
PA
57122015-08-18 Pedro Alves <palves@redhat.com>
5713
5714 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
5715 target implements to_always_non_stop_p, call it.
5716 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
5717 (x86_linux_create_target): Install it as to_always_non_stop_p
5718 method.
5719
71b57e37
DE
57202015-08-17 Doug Evans <dje@google.com>
5721
5722 * ui-out.c (default_ui_out_impl): Add comment.
5723
7f3706eb
IB
57242015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
5725
5726 * d-exp.y (type_aggregate_p): New function.
5727 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
5728 (classify_inner_name): Likewise.
5729 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
5730
1762568f
DE
57312015-08-15 Doug Evans <xdje42@gmail.com>
5732
5733 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
5734 updated.
5735 (add_psymbol_to_list): Ditto.
5736
8763cede
DE
57372015-08-15 Doug Evans <xdje42@gmail.com>
5738
5739 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
5740 updated. Call end_psymtab_common.
5741 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
5742 end_psymtab_common.
5743 (build_type_psymtabs_reader): Ditto.
5744 * psympriv.h (sort_pst_symbols): Delete.
5745 (end_psymtab_common): Declare.
5746 * psymtab.c (sort_pst_symbols): Make static.
5747 (end_psymtab_common): New function.
5748 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
5749
51cdc993
DE
57502015-08-15 Doug Evans <xdje42@gmail.com>
5751
5752 * defs.h (LANGUAGE_BITS): Define.
5753 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
5754 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
5755 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
5756 (minimal_symbol_type): Add nr_minsym_types.
5757 (MINSYM_TYPE_BITS): Define.
5758 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
5759 (domain_enum_tag): Add NR_DOMAINS.
5760 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
5761 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
5762
95cf5869
DE
57632015-08-15 Doug Evans <xdje42@gmail.com>
5764
5765 * objfiles.h: Whitespace cleanup.
5766 * psympriv.h: Whitespace cleanup.
5767 * psymtab.c: Whitespace/coding convention cleanup.
5768
e3ae3c43
PP
57692015-08-15 Patrick Palka <patrick@parcs.ath.cx>
5770
5771 * inferior.c (detach_inferior_command): Don't call
5772 any_thread_of_process when pid is 0.
5773 (kill_inferior_command): Likewise.
5774
6ff0ba5f
DE
57752015-08-14 Doug Evans <xdje42@gmail.com>
5776
5777 PR gdb/11833
5778 * NEWS: Document new /s modifier for the disassemble command.
5779 * cli/cli-cmds.c (disassemble_command): Add support for /s.
5780 (_initialize_cli_cmds): Update online docs of disassemble command.
5781 * disasm.c: #include "source.h".
5782 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
5783 All uses updated.
5784 (dis_line_entry): New struct.
5785 (hash_dis_line_entry, eq_dis_line_entry): New functions.
5786 (allocate_dis_line_table): New functions.
5787 (maybe_add_dis_line_entry, line_has_code_p): New functions.
5788 (dump_insns): New arg end_pc. All callers updated.
5789 (do_mixed_source_and_assembly_deprecated): Renamed from
5790 do_mixed_source_and_assembly. All callers updated.
5791 (do_mixed_source_and_assembly): New function.
5792 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
5793 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
5794 DISASSEMBLY_SOURCE. All uses updated.
5795 (DISASSEMBLY_SOURCE): New macro.
5796 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
5797
b56ccc20
KS
57982015-08-14 Keith Seitz <keiths@redhat.com>
5799
5800 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
5801 `typename' to `type_name' to avoid C++ reserved word.
5802
ebdad8fc
KS
58032015-08-14 Keith Seitz <keiths@redhat.com>
5804
5805 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
5806 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
5807 silence ARI errors.
5808
c0fe2ae7
IB
58092015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
5810
5811 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
5812 xstrprintf instead of malloc and sprintf.
5813 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
5814 (lex_one_token): Likewise.
5815
a738da3a
MF
58162015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5817
5818 * solib-svr4.c (read_program_header): Add base_addr argument to
5819 report the runtime address of the segment.
5820 (find_program_interpreter): Update read_program_header call to pass
5821 a NULL pointer for the new argument.
5822 (scan_dyntag): Add ptr_addr argument to report the runtime address
5823 of the tag payload.
5824 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
5825 read_program_header to get the base address of the dynamic segment.
5826 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
5827 read_program_header.
5828 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
5829
f8edc4ff
MF
58302015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5831
5832 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
5833
444c1ed8
IB
58342015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5835
5836 * d-exp.y (%union): Add voidval.
5837 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
5838 name in the lexing stage.
5839 (PostfixExpression): Move symbol completion handling in grammar here
5840 from PrimaryExpression.
5841 (PrimaryExpression): Move routines to handle resolving identifier
5842 tokens in the grammar here from push_expression_name.
5843 (IdentifierExp): Remove the handling of alternating '.' and identifier
5844 tokens.
5845 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
5846 (BasicType): Remove C-style typename rules.
5847 (d_type_from_name, d_module_from_name, push_variable)
5848 (push_fieldnames, push_type_name, push_module_name)
5849 (push_expression_name): Remove.
5850 (lex_one_token): Rename from yylex. Replace pstate with par_state.
5851 (token_and_value): New type.
5852 (token_fifo, popping, name_obstack): New globals.
5853 (classify_name): New function.
5854 (classify_inner_name): Likewise.
5855 (yylex): Likewise.
5856 (d_parse): Initialize token_fifo, popping and name_obstack.
5857
bc7c9fab
IB
58582015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5859
5860 * Makefile.in (SFILES): Add d-namespace.c.
5861 (COMMON_OBS): Add d-namespace.o.
5862 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
5863 la_lookup_symbol_nonlocal callback function pointer.
5864 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
5865 (d_lookup_nested_symbol): New declaration.
5866 * d-namespace.c: New file.
5867
3207396b
PA
58682015-08-13 Pedro Alves <palves@redhat.com>
5869
5870 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
5871 cleanup after the decref cleanup, not before.
5872
5d8c3ed3
PMR
58732015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
5874
5875 * ada-lang.c: Include namespace.h
5876 (aux_add_nonlocal_symbols): Fix a function name in comment.
5877 (ada_add_block_renamings): New.
5878 (add_nonlocal_symbols): Add global renamings handling.
5879 (ada_lookup_symbol_list_worker): Move the symbol lookup part
5880 to...
5881 (ada_add_all_symbols): ... this new function.
5882 (ada_add_block_symbols): Try to match the input name against the
5883 "using directives list", perform a recursive symbol lookup on
5884 the matched declarations.
5885 * block.h (struct block): Move the_namespace to top-level as
5886 namespace_info. Remove the language_specific field.
5887 (BLOCK_NAMESPACE): Update access to the namespace_info field.
5888 * buildsym.h (using_directives): Rename into...
5889 (local_using_directives): ... this.
5890 (global_using_directives): New.
5891 (struct context_stack): Rename the using_directives field into
5892 local_using_directives.
5893 * buildsym.c (finish_block_internal): Deal with the proper
5894 using directives repository (local or global).
5895 (prepare_for_building): Reset local_using_directives. Assert
5896 that there is no pending global using directive.
5897 (reset_symtab_globals): Reset global_using_directives and
5898 local_using_directives.
5899 (end_symtab_get_static_block): Don't ignore symtabs that have
5900 only using directives.
5901 (push_context): Update references to local_using_directives.
5902 (buildsym_init): Do not reset using_directives.
5903 * cp-support.c: Include namespace.h.
5904 * cp-support.h (struct using_direct): Move to namespace.h.
5905 (cp_add_using_directives): Move to namespace.h.
5906 * cp-namespace.c: Include namespace.h
5907 (cp_add_using_directive): Move to namespace.c, rename it to
5908 add_using_directive, add a "using_directives" argument and use
5909 it as the pending using directives repository. All callers
5910 updated.
5911 * dwarf2read.c (using_directives): New.
5912 (read_import_statement): Call using_directives.
5913 (read_func_scope): Update references to local_using_directives.
5914 (read_lexical_block_scope): Likewise.
5915 (read_namespace): Update the heading comment, call
5916 using_directives.
5917 * namespace.h: New file.
5918 * namespace.c: New file.
5919 * Makefile.in (SFILES): Add namespace.c.
5920 (COMMON_OBS): Add namespace.o
5921
4dafcdeb
JB
59222015-08-12 Joel Brobecker <brobecker@adacore.com>
5923
5924 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
5925 compute RETADDR.
5926
67994074
KS
59272015-08-12 Keith Seitz <keiths@redhat.com>
5928
5929 * break-catch-throw.c (re_set_exception_catchpoint) Rename
5930 reserved C++ keyword "explicit" to "explicit_loc".
5931 * breakpoint.c (create_overlay_event_breakpoint)
5932 (create_longjmp_master_breakpoint)
5933 (create_std_terminate_master_breakpoint)
5934 (create_exception_master_breakpoint, update_static_tracepoint):
5935 Rename reserved C++ keyword "explicit" to "explicit_loc".
5936 * completer.c (collect_explicit_location_matches)
5937 (explicit_location_completer): Rename reserved C++ keyword
5938 "explicit" to "explicit_loc".
5939 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
5940 (canonicalize_linespec, create_sals_line_offset)
5941 (convert_linespec_to_sals, convert_explicit_location_to_sals)
5942 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
5943 "explicit" to "explicit_loc".
5944 * location.c (struct event_location) <explicit>: Rename to
5945 "explicit_loc".
5946 (initialize_explicit_location, new_explicit_location)
5947 (explicit_location_to_string_internal, explicit_location_to_linespec):
5948 Rename reserved C++ keyword "explicit" to "explicit_loc".
5949 * location.h (explicit_location_to_string)
5950 (explicit_location_to_linespec, initialize_explicit_location)
5951 (new_explicit_location): Rename reserved C++ keyword "explicit"
5952 to "explicit_loc".
5953 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
5954 keyword "explicit" to "explicit_loc".
5955
59ecaff3
KS
59562015-08-12 Keith Seitz <keiths@redhat.com>
5957
5958 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
5959 and only call decode_line_1 when it is non-NULL.
5960
244558af
LM
59612015-08-12 Luis Machado <lgustavo@codesourcery.com>
5962
5963 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
5964 location address is not meaningful.
5965 (breakpoint_address_is_meaningful): Update comment.
5966
629500fa
KS
59672015-08-11 Keith Seitz <keiths@redhat.com>
5968
5969 * NEWS: Mention explicit locations.
5970 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
5971 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
5972 (_initialize_breakpoint): Update documentation for
5973 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
5974
eb8c4e2e
KS
59752015-08-11 Keith Seitz <keiths@redhat.com>
5976
5977 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
5978 explicit locations, options "--source", "--function",
5979 "--label", and "--line".
5980
87f0e720
KS
59812015-08-11 Keith Seitz <keiths@redhat.com>
5982
5983 * completer.c: Include location.h.
5984 (enum match_type): New enum.
5985 (location_completer): Rename to ...
5986 (linespec_completer): ... this.
5987 (collect_explicit_location_matches, backup_text_ptr)
5988 (explicit_location_completer): New functions.
5989 (location_completer): "New" function; handle linespec
5990 and explicit location completions.
5991 (complete_line_internal): Remove all location completer-specific
5992 handling.
5993 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
5994 (find_toplevel_char): Export.
5995 (linespec_parse_line_offset): Export.
5996 Issue error if STRING is not numerical.
5997 (gdb_get_linespec_parser_quote_characters): New function.
5998 * linespec.h (linespec_parse_line_offset): Declare.
5999 (get_gdb_linespec_parser_quote_characters): Declare.
6000 (is_ada_operator): Declare.
6001 (find_toplevel_char): Declare.
6002 (linespec_lexer_lex_keyword): Declare.
6003 * location.c (explicit_to_event_location): New function.
6004 (explicit_location_lex_one): New function.
6005 (string_to_explicit_location): New function.
6006 (string_to_event_location): Handle explicit locations.
6007 * location.h (explicit_to_event_location): Declare.
6008 (string_to_explicit_location): Declare.
6009
00e52e53
KS
60102015-08-11 Keith Seitz <keiths@redhat.com>
6011
6012 * break-catch-throw.c (re_set_exception_catchpoint): Convert
6013 linespec into explicit location.
6014 * breakpoint.c (create_overlay_breakpoint)
6015 (create_longjmp_master_breakpoint)
6016 (create_std_terminate_master_breakpoint)
6017 (create_exception_master_breakpoint): Convert linespec into explicit
6018 location.
6019 (update_static_tracepoint): Convert linespec into explicit location.
6020 * linespec.c (enum offset_relative_sign, struct line_offset): Move
6021 location.h.
6022 (struct linespec) <expression, expr_pc, source_filename>
6023 <function_name, label_name, line_offset>: Replace with ...
6024 <explicit>: ... this.
6025 <is_linespec>: New member.
6026 (PARSER_EXPLICIT): New accessor macro.
6027 (undefined_label_error): New function.
6028 (source_file_not_found_error): New function.
6029 (linespec_parse_basic): The parser result is now an explicit location.
6030 Use PARSER_EXPLICIT to access it.
6031 Use undefined_label_error.
6032 (canonicalize_linespec): Convert canonical linespec into explicit
6033 location.
6034 Move string representation of location to explicit_location_to_linespec
6035 and use it and explicit_location_to_string to save string
6036 representations of the canonical location.
6037 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
6038 explicit location. Update all references.
6039 (convert_explicit_location_to_sals): New function.
6040 (parse_linespec): Use PARSER_EXPLICIT to access the parser
6041 result's explicit location.
6042 (linespec_state_constructor): Initialize is_linespec.
6043 Use PARSER_EXPLICIT.
6044 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
6045 result.
6046 (event_location_to_sals): For linespec locations, set is_linespec.
6047 Handle explicit locations.
6048 (decode_objc): 'ls' contains an explicit location now. Update all
6049 references.
6050 (symtabs_from_filename): Use source_file_not_found_error.
6051 * location.c (struct event_location.u) <explicit>: New member.
6052 (initialize_explicit_location): New function.
6053 (initialize_event_location): Initialize explicit locations.
6054 (new_explicit_location, get_explicit_location)
6055 (get_explicit_location_const): New functions.
6056 (explicit_to_string_internal): New function; most of contents moved
6057 from canonicalize_linespec.
6058 (explicit_location_to_string): New function.
6059 (explicit_location_to_linespec): New function.
6060 (copy_event_location, delete_event_location)
6061 (event_location_to_string_const, event_location_empty_p): Handle
6062 explicit locations.
6063 * location.h (enum offset_relative_sign, struct line_offset): Move
6064 here from linespec.h.
6065 (enum event_location_type): Add EXPLICIT_LOCATION.
6066 (struct explicit_location): New structure.
6067 (explicit_location_to_string): Declare.
6068 (explicit_location_to_linespec): Declare.
6069 (new_explicit_location, get_explicit_locationp
6070 (get_explicit_location_const, initialize_explicit_location): Declare.
6071
5b56227b
KS
60722015-08-11 Keith Seitz <keiths@redhat.com>
6073
6074 * break-catch-throw.c (re_set_exception_catchpoint): Convert
6075 linespec for stap probe to probe location.
6076 * breakpoint.c (create_longjmp_master_breakpoint)
6077 (create_exception_master_breakpoint): Likewise.
6078 (break_command_1): Remove local variable `arg_cp'.
6079 Check location type to set appropriate breakpoint ops methods.
6080 (trace_command): Likewise.
6081 * linespec.c (event_location_to_sals): Assert on probe locations.
6082 * location.c (EL_PROBE): Add macro definition.
6083 (new_probe_location, get_probe_location): New functions.
6084 (copy_event_location, delete_event_location, event_location_to_string)
6085 (string_to_event_location, event_location_empty_p): Handle probe
6086 locations.
6087 * location.h (enum event_location_type): Add PROBE_LOCATION.
6088 (new_probe_location, get_probe_location): Declare.
6089 * probe.c (parse_probes): Assert that LOCATION is a probe location.
6090 Convert linespec into probe location.
6091
a06efdd6
KS
60922015-08-11 Keith Seitz <keiths@redhat.com>
6093
6094 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
6095 Convert linespec to address location.
6096 * linespec.c (canonicalize_linespec): Do not handle address
6097 locations here.
6098 (convert_address_location_to_sals): New function; contents moved
6099 from ...
6100 (convert_linespc_to_sals): ... here.
6101 (parse_linespec): Remove address locations from linespec grammar.
6102 Remove handling of address locations.
6103 (linespec_lex_to_end): Remove handling of address linespecs.
6104 (event_location_to_sals): Handle ADDRESS_LOCATION.
6105 (linespec_expression_to_pc): Export.
6106 * linespec.h (linespec_expression_to_pc): Add declaration.
6107 * location.c (struct event_location.u) <address>: New member.
6108 (new_address_location, get_address_location): New functions.
6109 (copy_event_location, delete_event_location, event_location_to_string)
6110 (string_to_event_location, event_location_empty_p): Handle address
6111 locations.
6112 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
6113 (new_address_location, get_address_location): Declare.
6114 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
6115 to address location.
6116 * spu-tdep.c (spu_catch_start): Likewise.
6117
f00aae0f
KS
61182015-08-11 Keith Seitz <keiths@redhat.com>
6119
6120 * ax-gdb.c: Include location.h.
6121 (agent_command_1) Use linespec location instead of address
6122 string.
6123 * break-catch-throw.c: Include location.h.
6124 (re_set_exception_catchpoint): Use linespec locations instead
6125 of address strings.
6126 * breakpoint.c: Include location.h.
6127 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
6128 (create_std_terminate_master_breakpoint)
6129 (create_exception_master_breakpoint, update_breakpoints_after_exec):
6130 Use linespec location instead of address string.
6131 (print_breakpoint_location): Use locations and
6132 event_location_to_string.
6133 Print extra_string for pending locations for non-MI streams.
6134 (print_one_breakpoint_location): Use locations and
6135 event_location_to_string.
6136 (init_raw_breakpoint_without_location): Initialize b->location.
6137 (create_thread_event_breakpoint): Use linespec location instead of
6138 address string.
6139 (init_breakpoint_sal): Likewise.
6140 Only save extra_string if it is non-NULL and not the empty string.
6141 Use event_location_to_string instead of `addr_string'.
6142 Constify `p' and `endp'.
6143 Use skip_spaces_const/skip_space_const instead of non-const versions.
6144 Copy the location into the breakpoint.
6145 If LOCATION is NULL, save the breakpoint address as a linespec location
6146 instead of an address string.
6147 (create_breakpoint_sal): Change `addr_string' parameter to a struct
6148 event_location. All uses updated.
6149 (create_breakpoints_sal): Likewise for local variable `addr_string'.
6150 (parse_breakpoint_sals): Use locations instead of address strings.
6151 Remove check for empty linespec with conditional.
6152 Refactor.
6153 (decode_static_tracepoint_spec): Make argument const and update
6154 function.
6155 (create_breakpoint): Change `arg' to a struct event_location and
6156 rename.
6157 Remove `copy_arg' and `addr_start'.
6158 If EXTRA_STRING is empty, set it to NULL.
6159 Don't populate `canonical' for pending breakpoints.
6160 Pass `extra_string' to find_condition_and_thread.
6161 Clear `extra_string' if `rest' was NULL.
6162 Do not error with "garbage after location" if setting a dprintf
6163 breakpoint.
6164 Copy the location into the breakpoint instead of an address string.
6165 (break_command_1): Use string_to_event_location and pass this to
6166 create_breakpoint instead of an address string.
6167 Check against `arg_cp' for a probe linespec.
6168 (dprintf_command): Use string_to_event_location and pass this to
6169 create_breakpoint instead of an address string.
6170 Throw an exception if no format string was specified.
6171 (print_recreate_ranged_breakpoint): Use event_location_to_string
6172 instead of address strings.
6173 (break_range_command, until_break_command)
6174 (init_ada_exception_breakpoint): Use locations instead
6175 of address strings.
6176 (say_where): Print out extra_string for pending locations.
6177 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
6178 the breakpoint.
6179 (base_breakpoint_create_sals_from_location): Use struct event_location
6180 instead of address string.
6181 Remove `addr_start' and `copy_arg' parameters.
6182 (base_breakpoint_decode_location): Use struct event_location instead of
6183 address string.
6184 (bkpt_re_set): Use locations instead of address strings.
6185 Use event_location_empty_p to check for unset location.
6186 (bkpt_print_recreate): Use event_location_to_string instead of
6187 an address string.
6188 Print out extra_string for pending locations.
6189 (bkpt_create_sals_from_location, bkpt_decode_location)
6190 (bkpt_probe_create_sals_from_location): Use struct event_location
6191 instead of address string.
6192 (bkpt_probe_decode_location): Use struct event_location instead of
6193 address string.
6194 (tracepoint_print_recreate): Use event_location_to_string to
6195 recreate the tracepoint.
6196 (tracepoint_create_sals_from_location, tracepoint_decode_location)
6197 (tracepoint_probe_create_sals_from_location)
6198 (tracepoint_probe_decode_location): Use struct event_location
6199 instead of address string.
6200 (dprintf_print_recreate): Use event_location_to_string to recreate
6201 the dprintf.
6202 (dprintf_re_set): Remove check for valid/missing format string.
6203 (strace_marker_create_sals_from_location)
6204 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
6205 (update_static_tracepoint): Use struct event_location instead of
6206 address string.
6207 (location_to_sals): Likewise.
6208 Pass `extra_string' to find_condition_and_thread.
6209 For newly resolved pending breakpoint locations, clear the location's
6210 string representation.
6211 Assert that the breakpoint's condition string is NULL when
6212 condition_not_parsed.
6213 (breakpoint_re_set_default, create_sals_from_location_default)
6214 (decode_location_default, trace_command, ftrace_command)
6215 (strace_command, create_tracepoint_from_upload): Use locations
6216 instead of address strings.
6217 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
6218 Use struct event_location instead of address string.
6219 Update all uses.
6220 <decode_location>: Likewise.
6221 (struct breakpoint) <addr_string>: Change to struct event_location
6222 and rename `location'.
6223 <addr_string_range_end>: Change to struct event_location and rename
6224 `location_range_end'.
6225 (create_breakpoint): Use struct event_location instead of address
6226 string.
6227 * cli/cli-cmds.c: Include location.h.
6228 (edit_command, list_command): Use locations instead of address strings.
6229 * elfread.c: Include location.h.
6230 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
6231 * guile/scm-breakpoint.c: Include location.h.
6232 (bpscm_print_breakpoint_smob): Use event_location_to_string.
6233 (gdbscm_register_breakpoint): Use locations instead of address
6234 strings.
6235 * linespec.c: Include location.h.
6236 (struct ls_parser) <stream>: Change to const char *.
6237 (PARSER_STREAM): Update.
6238 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
6239 keywords must be followed by whitespace.
6240 (canonicalize_linespec): Save a linespec location into `canonical'.
6241 Save a canonical linespec into `canonical'.
6242 (parse_linespec): Change `argptr' to const char * and rename `arg'.
6243 All uses updated.
6244 Update function description.
6245 (linespec_parser_new): Initialize `parser'.
6246 Update initialization of parsing stream.
6247 (event_location_to_sals): New function.
6248 (decode_line_full): Change `argptr' to a struct event_location and
6249 rename it `location'.
6250 Use locations instead of address strings.
6251 Call event_location_to_sals instead of parse_linespec.
6252 (decode_line_1): Likewise.
6253 (decode_line_with_current_source, decode_line_with_last_displayed)
6254 Use locations instead of address strings.
6255 (decode_objc): Likewise.
6256 Change `argptr' to const char * and rename `arg'.
6257 (destroy_linespec_result): Delete the linespec result's location
6258 instead of freeing the address string.
6259 * linespec.h (struct linespec_result) <addr_string>: Change to
6260 struct event_location and rename to ...
6261 <location>: ... this.
6262 (decode_line_1, decode_line_full): Change `argptr' to struct
6263 event_location. All callers updated.
6264 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
6265 (mi_cmd_break_insert_1): Use locations instead of address strings.
6266 Throw an error if there was "garbage" at the end of the specified
6267 linespec.
6268 * probe.c: Include location.h.
6269 (parse_probes): Change `argptr' to struct event_location.
6270 Use event locations instead of address strings.
6271 * probe.h (parse_probes): Change `argptr' to struct event_location.
6272 * python/py-breakpoint.c: Include location.h.
6273 (bppy_get_location): Constify local variable `str'.
6274 Use event_location_to_string.
6275 (bppy_init): Use locations instead of address strings.
6276 * python/py-finishbreakpoint.c: Include location.h.
6277 (bpfinishpy_init): Remove local variable `addr_str'.
6278 Use locations instead of address strings.
6279 * python/python.c: Include location.h.
6280 (gdbpy_decode_line): Use locations instead of address strings.
6281 * remote.c: Include location.h.
6282 (remote_download_tracepoint): Use locations instead of address
6283 strings.
6284 * spu-tdep.c: Include location.h.
6285 (spu_catch_start): Remove local variable `buf'.
6286 Use locations instead of address strings.
6287 * tracepoint.c: Include location.h.
6288 (scope_info): Use locations instead of address strings.
6289 (encode_source_string): Constify parameter `src'.
6290 * tracepoint.h (encode_source_string): Likewise.
6291
c7c1b3e9
KS
62922015-08-11 Keith Seitz <keiths@redhat.com>
6293
6294 * Makefile.in (SFILES): Add location.c.
6295 (HFILES_NO_SRCDIR): Add location.h.
6296 (COMMON_OBS): Add location.o.
6297 * linespec.c (linespec_lex_to_end): New function.
6298 * linespec.h (linespec_lex_to_end): Declare.
6299 * location.c: New file.
6300 * location.h: New file.
6301
5f700d83
KS
63022015-08-11 Keith Seitz <keiths@redhat.com>
6303
6304 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
6305 Renamed to create_sals_from_location.
6306 <decode_linespec>: Renamed to decode_location.
6307 Update all callers.
6308 * breakpoint.c (create_sals_from_address_default): Renamed to ...
6309 (create_sals_from_location_default): ... this.
6310 (addr_string_to_sals): Renamed to ...
6311 (location_to_sals): ... this.
6312 (decode_linespec_default): Renamed to ...
6313 (decode_location_default): ... this.
6314 (base_breakpoint_create_sals_from_address): Renamed to ...
6315 (base_breakpoint_create_sals_from_location): ... this.
6316 (bkpt_create_sals_from_address): Renamed to ...
6317 (bkpt_create_sals_from_location): ... this.
6318 (bkpt_decode_linespec): Renamed to ...
6319 (bkpt_decode_location): ... this.
6320 (bkpt_probe_create_sals_from_address): Renamed to ...
6321 (bkpt_probe_create_sals_from_location): ... this.
6322 (tracepoint_create_sals_from_address): Renamed to ...
6323 (tracepoint_create_sals_from_location): ... this.
6324 (tracepoint_decode_linespec): Renamed to ...
6325 (tracepoint_decode_location): ... this.
6326 (tracepoint_probe_create_sals_from_address): Renamed to ...
6327 (tracepoint_probe_create_sals_from_location): ... this.
6328 (tracepoint_probe_decode_linespec): Renamed to ...
6329 (tracepoint_probe_decode_location): ... this.
6330 (strace_marker_create_sals_from_address): Renamed to ...
6331 (strace_marker_create_sals_from_location): ... this.
6332 (decode_linespec_default): Renamed to ...
6333 (decode_location_default): ... this.
6334
e27852be
DE
63352015-08-10 Doug Evans <dje@google.com>
6336 Keith Seitz <keiths@redhat.com>
6337
6338 PR gdb/17960
6339 * symtab.c (make_file_symbol_completion_list_1): Renamed from
6340 make_file_symbol_completion_list and made static.
6341 (make_file_symbol_completion_list): New function.
80af41e0 6342
fd7dcb94
JB
63432015-08-10 Joel Brobecker <brobecker@adacore.com>
6344
6345 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
6346 trailing new-line at end of warning message.
6347 (proceed): Add i18n marker to error messages.
6348
f12899e9
PA
63492015-08-07 Pedro Alves <palves@redhat.com>
6350
6351 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
6352
5ac21343
PA
63532015-08-07 Pedro Alves <palves@redhat.com>
6354
6355 * s390-linux-tdep.c (is_non_branch_ril)
6356 (s390_displaced_step_copy_insn): New functions.
6357 (s390_displaced_step_fixup): Update comment.
6358 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
6359 gdbarch_displaced_step_copy_insn hook.
6360
7f03bd92
PA
63612015-08-07 Pedro Alves <palves@redhat.com>
6362
6363 * infrun.c (displaced_step_prepare_throw): Return -1 if
6364 gdbarch_displaced_step_copy_insn returns NULL. Update intro
6365 comment.
6366 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
6367 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
6368 in file.
6369 (ppc_displaced_step_copy_insn): New function.
6370 (ppc_displaced_step_fixup): Update comment.
6371 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
6372 gdbarch_displaced_step_copy_insn hook.
6373 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
6374 NULL return.
6375 * gdbarch.h: Regenerate.
6376
3fc8eb30
PA
63772015-08-07 Pedro Alves <palves@redhat.com>
6378
6379 * inferior.h (struct inferior) <displaced_stepping_failed>: New
6380 field.
6381 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
6382 Return false if dispaced stepping failed before.
6383 (resume): Pass the current inferior to
6384 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
6385 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
6386 displaced_stepping_failed flag, and fall back to an in-line
6387 step-over.
6388
bfedc46a
PA
63892015-08-07 Pedro Alves <palves@redhat.com>
6390
6391 * darwin-nat.c (darwin_stop): Rename to ...
6392 (darwin_interrupt): ... this.
6393 (_initialize_darwin_inferior): Adjust.
6394 * gnu-nat.c (gnu_stop): Delete.
6395 (gnu_target): Don't install gnu_stop.
6396 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
6397 (inf_ptrace_interrupt): ... this.
6398 (inf_ptrace_target): Adjust.
6399 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
6400 target_stop.
6401 * linux-nat (linux_nat_stop): Rename to ...
6402 (linux_nat_interrupt): ... this.
6403 (linux_nat_stop): Reimplement.
6404 (linux_nat_add_target): Install linux_nat_interrupt.
6405 * nto-procfs.c (nto_interrupt_twice): Rename to ...
6406 (nto_handle_sigint_twice): ... this.
6407 (nto_interrupt): Rename to ...
6408 (nto_handle_sigint): ... this. Call target_interrupt instead of
6409 target_stop.
6410 (procfs_wait): Adjust.
6411 (procfs_stop): Rename to ...
6412 (procfs_interrupt): ... this.
6413 (init_procfs_targets): Adjust.
6414 * procfs.c (procfs_stop): Rename to ...
6415 (procfs_interrupt): ... this.
6416 (procfs_target): Adjust.
6417 * remote-m32r-sdi.c (m32r_stop): Rename to ...
6418 (m32r_interrupt): ... this.
6419 (init_m32r_ops): Adjust.
6420 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
6421 (gdbsim_interrupt_inferior): ... this.
6422 (gdbsim_stop): Rename to ...
6423 (gdbsim_interrupt): ... this.
6424 (gdbsim_cntrl_c): Adjust.
6425 (init_gdbsim_ops): Adjust.
6426 * remote.c (sync_remote_interrupt): Adjust comments.
6427 (remote_stop_as): Rename to ...
6428 (remote_interrupt_as): ... this.
6429 (remote_stop): Adjust comment.
6430 (remote_interrupt): New function.
6431 (init_remote_ops): Install remote_interrupt.
6432 * target.c (target_interrupt): New function.
6433 * target.h (struct target_ops) <to_interrupt>: New field.
6434 (target_interrupt): New declaration.
6435 * windows-nat.c (windows_stop): Rename to ...
6436 (windows_interrupt): ... this.
6437 * target-delegates.c: Regenerate.
6438
d55007b5
PA
64392015-08-07 Pedro Alves <palves@redhat.com>
6440
6441 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
6442 threads" as alternative to "switching back to stepped thread".
6443
fbea99ea
PA
64442015-08-07 Pedro Alves <palves@redhat.com>
6445
6446 * NEWS: Mention "maint set/show target-non-stop".
6447 * breakpoint.c (update_global_location_list): Check
6448 target_is_non_stop_p instead of non_stop.
6449 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
6450 * infrun.c (show_can_use_displaced_stepping)
6451 (can_use_displaced_stepping_p, start_step_over_inferior):
6452 Likewise.
6453 (internal_resume_ptid): New function.
6454 (resume): Use it.
6455 (proceed): Check target_is_non_stop_p instead of non_stop. If in
6456 all-stop mode but the target is always in non-stop mode, start all
6457 the other threads that are implicitly resumed too.
6458 (for_each_just_stopped_thread, fetch_inferior_event)
6459 (adjust_pc_after_break, stop_all_threads): Check
6460 target_is_non_stop_p instead of non_stop.
6461 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
6462 with the target always in non-stop mode.
6463 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
6464 instead of non_stop.
6465 (switch_back_to_stepped_thread): Check target_is_non_stop_p
6466 instead of non_stop.
6467 (keep_going_stepped_thread): Use internal_resume_ptid.
6468 (stop_waiting): If in all-stop mode, and the target is in non-stop
6469 mode, stop all threads.
6470 (keep_going_pass): Likewise, when starting a new in-line step-over
6471 sequence.
6472 * linux-nat.c (get_pending_status, select_event_lwp)
6473 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
6474 target_is_non_stop_p instead of non_stop.
6475 (linux_nat_always_non_stop_p): New function.
6476 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
6477 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
6478 * target-delegates.c: Regenerate.
6479 * target.c (target_is_non_stop_p): New function.
6480 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
6481 (maint_set_target_non_stop_command)
6482 (maint_show_target_non_stop_command): New functions.
6483 (_initilize_target): Install "maint set/show target-non-stop"
6484 commands.
6485 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
6486 (target_non_stop_enabled): New declaration.
6487 (target_is_non_stop_p): New declaration.
6488
372316f1
PA
64892015-08-07 Pedro Alves <pedro@codesourcery.com>
6490
6491 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
6492 has a pending status, return true.
6493 * gdbthread.h: Include target/waitstatus.h.
6494 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
6495 stop_pc>: New fields.
6496 (struct thread_info) <resumed>: New field.
6497 (set_resumed): Declare.
6498 * infrun.c: Include "event-loop.h".
6499 (infrun_async_inferior_event_token, infrun_is_async): New globals.
6500 (infrun_async): New function.
6501 (clear_step_over_info): Add debug output.
6502 (displaced_step_in_progress_any_inferior): New function.
6503 (displaced_step_fixup): New returns int.
6504 (start_step_over): Handle in-line step-overs too. Assert the
6505 thread is marked resumed.
6506 (resume_cleanups): Clear the thread's resumed flag.
6507 (resume): Set the thread's resumed flag. Return early if the
6508 thread has a pending status. Allow stepping a breakpoint with no
6509 signal.
6510 (proceed): Adjust to check 'resumed' instead of 'executing'.
6511 (clear_proceed_status_thread): If the thread has a pending status,
6512 and that status is a finished step, discard the pending status.
6513 (clear_proceed_status): Don't clear step_over_info here.
6514 (random_pending_event_thread, do_target_wait): New functions.
6515 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
6516 do_target_wait.
6517 (wait_one): New function.
6518 (THREAD_STOPPED_BY): New macro.
6519 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6520 (thread_stopped_by_hw_breakpoint): New functions.
6521 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
6522 functions.
6523 (handle_inferior_event): Also call set_resumed(false) on all
6524 threads implicitly stopped by the event.
6525 (restart_threads, resumed_thread_with_pending_status): New
6526 functions.
6527 (finish_step_over): If we were doing an in-line step-over before,
6528 and no longer are after trying to start a new step-over, restart
6529 all threads. If we have multiple threads with pending events,
6530 save the current event and go through the event loop again.
6531 (handle_signal_stop): Return early if finish_step_over returns
6532 false.
6533 <random signal>: If we get a signal while stepping over a
6534 breakpoint in-line in non-stop mode, restart all threads. Clear
6535 step_over_info before delivering the signal.
6536 (keep_going_stepped_thread): Use internal_error instead of
6537 gdb_assert. Mark the thread as resumed.
6538 (keep_going_pass_signal): Assert the thread isn't already resumed.
6539 If some other thread is doing an in-line step-over, defer the
6540 resume. If we just started a new in-line step-over, stop all
6541 threads. Don't clear step_over_info.
6542 (infrun_async_inferior_event_handler): New function.
6543 (_initialize_infrun): Create async event handler with
6544 infrun_async_inferior_event_handler as callback.
6545 (infrun_async): New declaration.
6546 * target.c (target_async): New function.
6547 * target.h (target_async): Declare macro and readd as function
6548 declaration.
6549 * target/waitstatus.h (enum target_stop_reason)
6550 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6551 * thread.c (new_thread): Clear the new waitstatus field.
6552 (set_resumed): New function.
6553
2ac7589c
PA
65542015-08-07 Pedro Alves <palves@redhat.com>
6555
6556 * infrun.c (keep_going_stepped_thread): New function, factored out
6557 from ...
6558 (switch_back_to_stepped_thread): ... here.
6559
8b061563
PA
65602015-08-07 Pedro Alves <palves@redhat.com>
6561
6562 * infrun.c (currently_stepping): Extend intro comment.
6563 * target.h (target_resume): Extend intro comment.
6564
1afd5965
PA
65652015-08-07 Pedro Alves <palves@redhat.com>
6566
6567 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
6568 of inferior_ptid. If the stepped thread vanished, return 0
6569 instead of resuming here. Use reset_ecs. Print the prev_pc and
6570 the current stop_pc in log message. Clear trap_expected if the
6571 thread advanced. Don't pass currently_stepping to
6572 do_target_resume.
6573
4d9d9d04
PA
65742015-08-07 Pedro Alves <palves@redhat.com>
6575
6576 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
6577 * infrun.c (struct execution_control_state): Move higher up in the
6578 file.
6579 (reset_ecs): New function.
6580 (start_step_over): Now returns int. Rewrite to use
6581 keep_going_pass_signal instead of manually starting a displaced step.
6582 (resume): Don't call set_running here. If displaced stepping
6583 can't start now, clear trap_expected.
6584 (find_thread_needs_step_over): Delete function.
6585 (proceed): Set up finish_thread_state_cleanup. Call set_running.
6586 If the current thread needs a step over, push it in the step-over
6587 chain. Don't set insert breakpoints nor call resume directly
6588 here. Instead rewrite to use start_step_over and
6589 keep_going_pass_signal.
6590 (finish_step_over): New function.
6591 (handle_signal_stop): Call finish_step_over instead of
6592 start_step_over.
6593 (switch_back_to_stepped_thread): If the event thread needs another
6594 step-over do that first. Use start_step_over.
6595 (keep_going_pass_signal): New function, factored out from ...
6596 (keep_going): ... here.
6597 (_initialize_infrun): Comment moved here.
6598 * thread.c (set_running_thread): New function.
6599 (set_running, finish_thread_state): Use set_running_thread.
6600
c2829269
PA
66012015-08-07 Pedro Alves <palves@redhat.com>
6602
6603 * gdbthread.h (struct thread_info) <step_over_prev,
6604 step_over_next>: New fields.
6605 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
6606 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
6607 declarations.
6608 * infrun.c (struct displaced_step_request): Delete.
6609 (struct displaced_step_inferior_state) <step_request_queue>:
6610 Delete field.
6611 (displaced_step_prepare): Assert that trap_expected is set. Use
6612 thread_step_over_chain_enqueue. Split starting a new displaced
6613 step to ...
6614 (start_step_over): ... this new function.
6615 (resume): Assert the thread isn't waiting for a step over already.
6616 (proceed): Assert the thread isn't waiting for a step over
6617 already.
6618 (infrun_thread_stop_requested): Adjust to remove threads from the
6619 embedded step-over chain.
6620 (handle_inferior_event) <fork/vfork>: Call start_step_over after
6621 displaced_step_fixup.
6622 (handle_signal_stop): Call start_step_over after
6623 displaced_step_fixup.
6624 * infrun.h (step_over_queue_head): New declaration.
6625 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
6626 (thread_step_over_chain_next, thread_is_in_step_over_chain)
6627 (thread_step_over_chain_enqueue)
6628 (thread_step_over_chain_remove): New functions.
6629 (delete_thread_1): Remove thread from the step-over chain.
6630
6c4cfb24
PA
66312015-08-07 Pedro Alves <palves@redhat.com>
6632
6633 * infrun.c (thread_still_needs_step_over): Rename to ...
6634 (thread_still_needs_step_over_bp): ... this.
6635 (enum step_over_what): New.
6636 (thread_still_needs_step_over): Reimplement.
6637
567420d1
PA
66382015-08-07 Pedro Alves <palves@redhat.com>
6639
6640 * remote.c (remote_wait_as): If not waiting for a stop reply,
6641 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
6642 requested, don't block waiting forever.
6643
d8dd4d5f
PA
66442015-08-07 Pedro Alves <pedro@codesourcery.com>
6645
6646 * infrun.c (adjust_pc_after_break): Now takes thread_info and
6647 waitstatus pointers instead of an ecs. Adjust.
6648 (handle_inferior_event): Adjust caller.
6649
e1316e60
PA
66502015-08-07 Pedro Alves <palves@redhat.com>
6651
6652 * infrun.c (handle_inferior_event): If we get
6653 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
6654 mode, mark all threads of the exiting process as not-executing.
6655 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
6656 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
6657 exiting process, if inferior_ptid still points at a process.
6658 * thread.c (struct current_thread_cleanup) <next>: New field.
6659 (current_thread_cleanup_chain): New global.
6660 (restore_current_thread_ptid_changed): New function.
6661 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
6662 current_thread_cleanup_chain list.
6663 (make_cleanup_restore_current_thread): Add the cleanup data to the
6664 current_thread_cleanup_chain list.
6665 (_initialize_thread): Install restore_current_thread_ptid_changed
6666 as thread_ptid_changed observer.
6667
47e9c225
JB
66682015-08-07 Joel Brobecker <brobecker@adacore.com>
6669
6670 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
6671 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
6672 smaller than expected.
6673
06096720
AB
66742015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
6675
6676 * stack.c (get_frame_language): Moved ...
6677 * frame.c (get_frame_language): ... to here.
6678 * language.h (get_frame_language): Declaration moved to frame.h.
6679 * frame.h: Add language.h include, for language enum.
6680 (get_frame_language): Declaration moved from language.h.
6681 * language.c: Add frame.h include.
6682 * top.c: Add frame.h include.
6683 * symtab.h (struct obj_section): Declare.
6684 (struct cmd_list_element): Declare.
6685
7ff38b1c
AB
66862015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
6687
6688 * language.c (show_language_command): Find selected frame before
6689 asking for the language of that frame.
6690 (set_language_command): Likewise.
6691 * language.h (get_frame_language): Add frame parameter.
6692 * stack.c (get_frame_language): Add frame parameter, assert
6693 parameter is not NULL, update comment and reindent.
6694 * top.c (check_frame_language_change): Pass the selected frame
6695 into get_frame_language.
6696
da8c46d2
MM
66972015-08-07 Markus Metzger <markus.t.metzger@intel.com>
6698
6699 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
6700 (pt_btrace_insn_flags): New.
6701 (ftrace_add_pt): Call pt_btrace_insn_flags.
6702 * btrace.h (btrace_insn_flag): New.
6703 (btrace_insn) <flags>: New.
6704 * record-btrace.c (btrace_insn_history): Print insn prefix.
6705 * NEWS: Announce it.
6706
5599c404
MM
67072015-08-07 Markus Metzger <markus.t.metzger@intel.com>
6708
6709 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
6710 * configure: Regenerate.
6711
016a3251
DD
67122015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
6713
6714 * Makefile.in (LIBICONV): Define.
6715 (CLIBS): Add LIBICONV.
6716 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
6717 * configure: Regenerate.
6718
aead7601
SM
67192015-08-06 Simon Marchi <simon.marchi@ericsson.com>
6720 Pedro Alves <palves@redhat.com>
6721
6722 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
6723 (arm_set_abi): Likewise.
6724 * ax-general.c (ax_print): Likewise.
6725 * c-exp.y (exp : string_exp): Likewise.
6726 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
6727 (do_compile_dwarf_expr_to_c): Likewise.
6728 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
6729 Likewise.
6730 * dwarf2expr.c (execute_stack_op): Likewise.
6731 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
6732 (disassemble_dwarf_expression): Likewise.
6733 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
6734 (read_array_order): Likewise.
6735 (abbrev_table_read_table): Likewise.
6736 (read_attribute_value): Likewise.
6737 (skip_unknown_opcode): Likewise.
6738 (dwarf_decode_macro_bytes): Likewise.
6739 (dwarf_decode_macros): Likewise.
6740 * eval.c (value_f90_subarray): Likewise.
6741 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6742 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6743 * infrun.c (handle_command): Likewise.
6744 * memory-map.c (memory_map_start_memory): Likewise.
6745 * osabi.c (set_osabi): Likewise.
6746 * parse.c (operator_length_standard): Likewise.
6747 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
6748 single return point.
6749 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6750 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6751 (gdbpy_lookup_global_symbol): Likewise.
6752 * record-full.c (record_full_restore): Likewise.
6753 * regcache.c (regcache_register_status): Likewise.
6754 (regcache_raw_read): Likewise.
6755 (regcache_cooked_read): Likewise.
6756 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
6757 * symtab.c (initialize_ordinary_address_classes): Likewise.
6758 * target-debug.h (target_debug_print_signals): Likewise.
6759 * utils.c (do_restore_current_language): Likewise.
6760
ca0a5f0b
CD
67612015-08-06 Clem Dickey <clemd@acm.org>
6762
6763 PR python/17136
6764 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
6765
05d999b0
SM
67662015-08-06 Simon Marchi <simon.marchi@ericsson.com>
6767
6768 * complaints.c (enum complaint_series): Add newlines and remove
6769 out of date comment.
6770 (struct complaints) <series>: Change type to enum
6771 complaint_series and remove out of date comment.
6772 (symfile_complaint_hook): Use equivalent enum value
6773 ISOLATED_MESSAGE instead of 0.
6774
bf47e248
PA
67752015-08-06 Pedro Alves <palves@redhat.com>
6776
6777 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
6778 returned > 0.
6779
b6b9ffcc
PL
67802015-08-06 Pierre Langlois <pierre.langlois@arm.com>
6781
6782 * common/agent.c (symbol_list) <required>: Remove.
6783
863d01bd
PA
67842015-08-06 Pedro Alves <palves@redhat.com>
6785
6786 * target/waitstatus.h (enum target_stop_reason)
6787 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6788
0a39bb32
PA
67892015-08-05 Pedro Alves <palves@redhat.com>
6790 Joel Brobecker <brobecker@adacore.com>
6791
9d996aba 6792 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
6793 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
6794 case where BS->STOP is not set.
6795
260439cb
UW
67962015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
6797
6798 * nat/gdb_thread_db.h: Add copyright header.
6799 Protect against multiple inclusion.
6800
d89fa914
YQ
68012015-08-05 Yao Qi <yao.qi@linaro.org>
6802
6803 * aarch64-linux-nat.c (get_thread_id): Remove.
6804 (debug_reg_change_callback): Call ptid_get_lwp instead of
6805 get_thread_id.
6806 (fetch_gregs_from_thread): Likewise.
6807 (store_gregs_to_thread): Likewise.
6808 (fetch_fpregs_from_thread): Likewise.
6809 (store_fpregs_to_thread): Likewise.
6810 (aarch64_linux_get_debug_reg_capacity): Likewise.
6811 * arm-linux-nat.c (get_thread_id): Remove.
6812 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6813 * xtensa-linux-nat.c (get_thread_id): Remove.
6814 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6815 * arm-linux-nat.c (get_thread_id): Remove.
6816 (GET_THREAD_ID): Remove.
6817 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
6818 (store_fpregs, fetch_regs, store_regs): Likewise.
6819 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
6820 (fetch_vfp_regs, store_vfp_regs): Likewise.
6821 (arm_linux_read_description): Likewise.
6822 (arm_linux_get_hwbp_cap): Likewise.
6823 * xtensa-linux-nat.c (get_thread_id): Remove.
6824 (GET_THREAD_ID): Remove.
6825 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
6826 GET_THREAD_ID.
6827
4efd80aa
CS
68282015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
6829
6830 * python/py-linetable.c: Fix case of Linetable to LineTable
6831 in docstrings and code comments.
6832 * python/py-symtab.c: Same.
6833
c6343a91
JK
68342015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6835
6836 * infcmd.c (signal_command): Call do_cleanups for args_chain.
6837
978b9495
JK
68382015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6839
6840 PR gdb/18767
6841 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
6842 use.
6843
96e9210f
PA
68442015-08-04 Pedro Alves <palves@redhat.com>
6845
6846 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
6847 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
6848 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
6849 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
6850 (td_thr_validate_ftype, td_thr_get_info_ftype)
6851 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
6852 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
6853 New typedefs.
6854 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
6855 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
6856 local macros and use them instead of verbose_dlsym and dlsym
6857 calls.
6858
af60a1ef
SL
68592015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6860
6861 * nios2-tdep.h: Include opcode/nios2.h here.
6862 (NIOS2_CDX_OPCODE_SIZE): New.
6863 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
6864 * nios2-tdep.c: Don't include opcode/nios2.h here.
6865 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
6866 4-byte read fails.
6867 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
6868 (nios2_match_addi, nios2_match_orhi): Likewise.
6869 (nios2_match_stw, nios2_match_ldw): Likewise.
6870 (nios2_match_rdctl): Likewise.
6871 (nios2_match_stwm, nios2_match_ldwm): New.
6872 (nios2_match_branch): Add cases for R2 encodings.
6873 (nios2_match_jmpi, nios2_match_calli): Likewise.
6874 (nios2_match_jmpr, nios2_match_callr): Likewise.
6875 (nios2_match_break, nios2_match_trap): Likewise.
6876 (nios2_in_epilogue_p): Add R2 support.
6877 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
6878 prologues.
6879 (nios2_breakpoint_from_pc): Handle R2 instructions.
6880 (nios2_get_next_pc): Likewise. Adjust call to
6881 tdep->syscall_next_pc.
6882 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
6883 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
6884 instruction field macros instead of literal hex values.
6885 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
6886 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
6887 Use size field from OP instead of assuming all instructions
6888 are the same size.
6889 (nios2_linux_init_abi): Register appropriate unwinder for mach.
6890
1da03605
UW
68912015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
6892
6893 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
6894 variable warning with some compilers.
6895
8156fe7f
YQ
68962015-08-03 Yao Qi <yao.qi@linaro.org>
6897
6898 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
6899 in comment. Replace "rw" with "type".
6900 (arm_linux_remove_watchpoint): Change type of "rw" to
6901 "enum target_hw_bp_type".
6902
835a09d9
PMR
69032015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
6904
6905 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
6906 lookup_symbol.
6907 * ft32-tdep.c (ft32_skip_prologue): Likewise.
6908 * moxie-tdep.c (moxie_skip_prologue): Likewise.
6909 * mt-tdep.c (mt_skip_prologue): Likewise.
6910 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6911
d12307c1
PMR
69122015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
6913
6914 * ada-exp.y (write_object_renaming): Replace struct
6915 ada_symbol_info with struct block_symbol. Update field
6916 references accordingly.
6917 (block_lookup, select_possible_type_sym): Likewise.
6918 (find_primitive_type): Likewise. Also update call to
6919 ada_lookup_symbol to extract the symbol itself.
6920 (write_var_or_type, write_name_assoc): Likewise.
6921 * ada-lang.h (struct ada_symbol_info): Remove.
6922 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
6923 struct block_symbol.
6924 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
6925 (ada_lookup_symbol): Return struct block_symbol instead of a
6926 mere symbol.
6927 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
6928 with struct block_symbol.
6929 (resolve_subexp, ada_resolve_function, sort_choices,
6930 user_select_syms, is_nonfunction, add_defn_to_vec,
6931 num_defns_collected, defns_collected,
6932 symbols_are_identical_enums, remove_extra_symbols,
6933 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
6934 ada_lookup_symbol_list, ada_iterate_over_symbols,
6935 ada_lookup_encoded_symbol, get_var_value): Likewise.
6936 (ada_lookup_symbol): Return a block_symbol instead of a mere
6937 symbol. Replace struct ada_symbol_info with struct
6938 block_symbol.
6939 (ada_lookup_symbol_nonlocal): Likewise.
6940 (standard_lookup): Make block passing explicit through
6941 lookup_symbol_in_language.
6942 * ada-tasks.c (get_tcb_types_info): Update the calls to
6943 lookup_symbol_in_language to extract the mere symbol out of the
6944 returned value.
6945 (ada_tasks_inferior_data_sniffer): Likewise.
6946 * ax-gdb.c (gen_static_field): Likewise for the call to
6947 lookup_symbol.
a5fdf78a 6948 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
6949 lookup functions.
6950 (gen_expr): Likewise.
6951 * c-exp.y: Likewise. Remove uses of block_found.
6952 (lex_one_token, classify_inner_name, c_print_token): Likewise.
6953 (classify_name): Likewise. Rename the "sym" local variable to
6954 "bsym".
6955 * c-valprint.c (print_unpacked_pointer): Likewise.
6956 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
6957 "sym" parameter from struct symbol * to struct block_symbol.
6958 Use it to remove uses of block_found. Deal with struct
a5fdf78a 6959 block_symbol from lookup functions.
d12307c1
PMR
6960 (gcc_convert_symbol): Likewise. Update the call to
6961 convert_symbol_sym.
6962 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 6963 struct block_symbol from lookup functions.
d12307c1
PMR
6964 * cp-namespace.c (cp_lookup_nested_symbol_1,
6965 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
6966 cp_search_static_and_baseclasses,
6967 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
6968 cp_lookup_symbol_imports_or_template,
6969 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
6970 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
6971 find_symbol_in_baseclass): Return struct block_symbol instead of
6972 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
6973 functions.
6974 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 6975 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
6976 lookup functions.
6977 * cp-support.h (cp_lookup_symbol_nonlocal,
6978 cp_lookup_symbol_from_namespace,
6979 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 6980 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
6981 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
6982 push_module_name):
a5fdf78a 6983 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
6984 uses of block_found.
6985 * eval.c (evaluate_subexp_standard): Update call to
6986 cp_lookup_symbol_namespace.
a5fdf78a
PMR
6987 * f-exp.y: Deal with struct block_symbol from lookup functions.
6988 Remove uses of block_found.
d12307c1
PMR
6989 (yylex): Likewise.
6990 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
6991 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 6992 struct block_symbol from lookup functions.
d12307c1
PMR
6993 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
6994 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
6995 (gdbscm_lookup_global_symbol): Likewise.
6996 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
6997 * go-exp.y: Likewise. Remove uses of block_found.
6998 (package_name_p, classify_packaged_name, classify_name):
6999 Likewise.
7000 * infrun.c (insert_exception_resume_breakpoint): Likewise.
7001 * jv-exp.y (push_variable): Likewise.
7002 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
7003 * language.c (language_bool_type): Likewise.
7004 * language.h (struct language_defn): Update
a5fdf78a
PMR
7005 la_lookup_symbol_nonlocal to return a struct block_symbol rather
7006 than a mere symbol.
7007 * linespec.c (find_label_symbols): Deal with struct block_symbol
7008 from lookup functions.
d12307c1
PMR
7009 * m2-exp.y: Likewise. Remove uses of block_found.
7010 (yylex): Likewise.
7011 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7012 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
7013 * p-exp.y: Likewise. Remove uses of block_found.
7014 (yylex): Likewise.
7015 * p-valprint.c (pascal_val_print): Likewise.
7016 * parse.c (write_dollar_variable): Likewise. Remove uses of
7017 block_found.
7018 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
7019 struct block_symbol.
7020 * printcmd.c (address_info): Deal with struct block_symbol from
7021 lookup functions.
d12307c1
PMR
7022 * python/py-frame.c (frapy_read_var): Likewise.
7023 * python/py-symbol.c (gdbpy_lookup_symbol,
7024 gdbpy_lookup_global_symbol): Likewise.
7025 * skip.c (skip_function_command): Likewise.
7026 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 7027 block_symbol instead of a mere symbol.
d12307c1
PMR
7028 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
7029 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
7030 * solib.c (solib_global_lookup): Likewise.
7031 * solist.h (solib_global_lookup): Likewise.
7032 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
7033 return a struct block_symbol rather than a mere symbol.
7034 * source.c (select_source_symtab): Deal with struct block_symbol
7035 from lookup functions.
d12307c1
PMR
7036 * stack.c (print_frame_args, iterate_over_block_arg_vars):
7037 Likewise.
7038 * symfile.c (set_initial_language): Likewise.
7039 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 7040 block_symbol.
d12307c1
PMR
7041 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
7042 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 7043 block_symbol.
d12307c1 7044 (block_found): Remove.
a5fdf78a 7045 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 7046 cache slots.
a5fdf78a
PMR
7047 (symbol_cache_lookup): Return a struct block_symbol rather than
7048 a mere symbol.
d12307c1
PMR
7049 (symbol_cache_mark_found): Add a BLOCK parameter to fill
7050 appropriately the cache slots. Update callers.
7051 (symbol_cache_dump): Update cache slots handling to the type
7052 change.
7053 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
7054 lookup_symbol_aux, lookup_local_symbol,
7055 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
7056 lookup_symbol_in_objfile_symtabs,
7057 lookup_symbol_in_objfile_from_linkage_name,
7058 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
7059 lookup_symbol_in_static_block, lookup_static_symbol,
7060 lookup_global_symbol):
a5fdf78a
PMR
7061 Return a struct block_symbol rather than a mere symbol. Deal
7062 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
7063 uses of block_found.
7064 (lookup_symbol_in_block): Remove uses of block_found.
7065 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 7066 struct block_symbol.
d12307c1
PMR
7067 (lookup_symbol_global_iterator_cb): Update references to the
7068 RESULT field.
a5fdf78a 7069 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 7070 functions.
a5fdf78a 7071 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
7072 (block_found): Remove.
7073 (lookup_symbol_in_language, lookup_symbol,
7074 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
7075 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
7076 lookup_global_symbol_from_objfile): Return a struct block_symbol
7077 rather than just a mere symbol. Update comments to remove
7078 mentions of block_found.
d12307c1
PMR
7079 * valops.c (find_function_in_inferior,
7080 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 7081 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
7082 functions.
7083 * value.c (value_static_field, value_fn_field): Likewise.
7084
b1c59ddc
SM
70852015-07-31 Simon Marchi <simon.marchi@ericsson.com>
7086
7087 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
7088 instead of integer.
7089
f486487f 70902015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 7091 Pedro Alves <palves@redhat.com>
f486487f
SM
7092
7093 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
7094 type or value instead of integer.
7095 (aarch64_linux_insert_watchpoint): Likewise.
7096 (aarch64_linux_remove_watchpoint): Likewise.
7097 * ada-lang.c (ada_op_print_tab): Likewise.
7098 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
7099 (amd64_linux_syscall_record_common): Likewise.
7100 * arch-utils.c (target_byte_order_user): Likewise.
7101 (default_byte_order): Likewise.
7102 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
7103 (arm_linux_get_hwbp_type): Likewise.
7104 (arm_linux_hw_watchpoint_initialize): Likewise.
7105 (arm_linux_insert_watchpoint): Likewise.
7106 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
7107 (arm_linux_syscall_record): Likewise.
7108 * breakpoint.c (update_watchpoint): Likewise.
7109 (breakpoint_here_p): Likewise.
7110 (bpstat_print): Likewise.
7111 (enable_breakpoint_disp): Likewise.
7112 * c-lang.c (c_op_print_tab): Likewise.
7113 * cli/cli-decode.c (add_info_alias): Likewise.
7114 * d-lang.c (d_op_print_tab): Likewise.
7115 * eval.c (evaluate_subexp_standard): Likewise.
7116 * f-exp.y (dot_ops): Likewise.
7117 (f77_keywords): Likewise.
7118 * f-lang.c (f_op_print_tab): Likewise.
7119 * go-lang.c (go_op_print_tab): Likewise.
7120 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
7121 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
7122 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
7123 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
7124 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
7125 (struct scm_from_stringn_data): Likewise.
7126 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
7127 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
7128 (ia64_linux_remove_watchpoint): Likewise.
7129 (ia64_linux_can_use_hw_breakpoint): Likewise.
7130 * infrun.c (print_stop_event): Likewise.
7131 * jv-lang.c (java_op_print_tab): Likewise.
7132 * linux-nat.c (linux_proc_xfer_partial): Likewise.
7133 * linux-nat.h (struct lwp_info): Likewise.
7134 * linux-thread-db.c (enable_thread_event): Likewise.
7135 * m2-lang.c (m2_op_print_tab): Likewise.
7136 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
7137 (mi_cmd_stack_list_variables): Likewise.
7138 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
7139 * mi/mi-out.c (mi_table_begin): Likewise.
7140 (mi_table_header): Likewise.
7141 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
7142 (mips_linux_insert_watchpoint): Likewise.
7143 (mips_linux_remove_watchpoint): Likewise.
7144 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
7145 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
7146 (mips_linux_watch_type_to_irw): Likewise.
7147 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
7148 (procfs_insert_hw_watchpoint): Likewise.
7149 (procfs_remove_hw_watchpoint): Likewise.
7150 (procfs_hw_watchpoint): Likewise.
7151 (procfs_can_use_hw_breakpoint): Likewise.
7152 (procfs_remove_hw_watchpoint): Likewise.
7153 (procfs_insert_hw_watchpoint): Likewise.
7154 * p-lang.c (pascal_op_print_tab): Likewise.
7155 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
7156 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
7157 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
7158 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
7159 (procfs_insert_watchpoint): Likewise.
7160 (procfs_remove_watchpoint): Likewise.
7161 * psymtab.c (recursively_search_psymtabs): Likewise.
7162 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
7163 (m32r_insert_watchpoint): Likewise.
7164 * remote-mips.c (mips_can_use_watchpoint): Likewise.
7165 (mips_insert_watchpoint): Likewise.
7166 (mips_remove_watchpoint): Likewise.
7167 * remote.c (watchpoint_to_Z_packet): Likewise.
7168 (remote_insert_watchpoint): Likewise.
7169 (remote_remove_watchpoint): Likewise.
7170 (remote_check_watch_resources): Likewise.
7171 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
7172 (s390_remove_watchpoint): Likewise.
7173 (s390_can_use_hw_breakpoint): Likewise.
7174 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7175 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
7176 * target.h (struct target_ops): Likewise.
7177 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7178 * ui-out.c (struct ui_out_hdr): Likewise.
7179 (append_header_to_list): Likewise.
7180 (get_next_header): Likewise.
7181 (verify_field): Likewise.
7182 (ui_out_begin): Likewise.
7183 (ui_out_field_int): Likewise.
7184 (ui_out_field_fmt_int): Likewise.
7185 (ui_out_field_skip): Likewise.
7186 (ui_out_field_string): Likewise.
7187 (ui_out_field_fmt): Likewise.
7188 * varobj.c (new_variable): Likewise.
7189 * x86-nat.c (x86_insert_watchpoint): Likewise.
7190 (x86_remove_watchpoint): Likewise.
7191 (x86_can_use_hw_breakpoint): Likewise.
7192 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
7193 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
7194 previously anonymous enumeration type..
7195 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
7196 value.
7197 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
7198 (target_debug_print_enum_bptype): New.
7199 * target-delegates.c: Regenerate.
7200
e1b5381f
SL
72012015-07-30 Sandra Loosemore <sandra@codesourcery.com>
7202
7203 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
7204 already says and disallow non-stack memory writes in the prologue.
7205
9aaf8e3a
SL
72062015-07-30 Sandra Loosemore <sandra@codesourcery.com>
7207
7208 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
7209 reflect how current GCC emits stack overflow checks. Match
7210 both trap and break instructions for backward compatbility.
7211 Disallow other trap and break instructions in the prologue.
7212
69dde7dc
PA
72132015-07-30 Pedro Alves <palves@redhat.com>
7214
7215 PR threads/18600
7216 * linux-nat.c (wait_lwp): Report to the core when thread group
7217 leader exits.
7218
4dd63d48
PA
72192015-07-30 Pedro Alves <palves@redhat.com>
7220 Simon Marchi <simon.marchi@ericsson.com>
7221
7222 PR threads/18600
7223 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
7224 mark the new thread as resumed. Remove STOPPING parameter.
7225 (wait_lwp): Adjust call to linux_handle_extended_wait.
7226 (linux_nat_filter_event): Adjust call to
7227 linux_handle_extended_wait.
7228 (resume_stopped_resumed_lwps): Add debug output.
7229
6b940e6a
PL
72302015-07-30 Pierre Langlois <pierre.langlois@arm.com>
7231
7232 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
7233 isize argument.
7234 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
7235 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
7236 gdbarch_fast_tracepoint_valid_at.
7237 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
7238 * gdbarch.h: Regenerate.
7239 * gdbarch.c: Regenerate.
7240 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
7241 argument. Do not set it.
7242 * remote.c (remote_download_tracepoint): Adjust call to
7243 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
7244 the instruction length.
7245
ec741292
YQ
72462015-07-30 Yao Qi <yao.qi@linaro.org>
7247
7248 * arm-tdep.h (enum gdb_regnum): Move it to ...
7249 * arch/arm.h: ... here. New file.
7250 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
7251
0ea6402e
PL
72522015-07-30 Pierre Langlois <pierre.langlois@arm.com>
7253
7254 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
7255 Change its type to int *.
7256 (decode_br): Rename link argument to is_blr. Change its type to
7257 int *.
7258 (decode_cb): Rename op argument to is_cbnz. Change its type to
7259 int *.
7260 (decode_tb): Rename op argument to is_tbnz. Change its type to
7261 int *. Set is_tbnz to either 1 or 0.
7262 (aarch64_analyze_prologue): Change type of is_link to int. Add
7263 new variables is_cbnz and is_tbnz. Adjust call to
7264 aarch64_decode_cb and aarch64_decode_tb.
7265
aa58a496
SM
72662015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7267
7268 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
7269 parameter.
7270 (mips_linux_new_thread): Likewise.
7271 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
7272
18206ca3
PP
72732015-07-29 Patrick Palka <patrick@parcs.ath.cx>
7274
7275 * top.c: Include "tui/tui.h".
7276 (undo_terminal_modifications_before_exit): New static function.
7277 (quit_force): Use it.
7278
7afa63c6
PP
72792015-07-29 Patrick Palka <patrick@parcs.ath.cx>
7280
7281 * target.c (terminal_state): Initialize to terminal_is_ours.
7282
cc9f16aa
YQ
72832015-07-29 Yao Qi <yao.qi@linaro.org>
7284
7285 PR record/18691
7286 * dcache.c (dcache_read_memory_partial): Call
7287 raw_memory_xfer_partial.
7288 * target.c (raw_memory_xfer_partial): Make it non-static.
7289 * target.h (raw_memory_xfer_partial): Declare.
7290
3ae385af
SM
72912015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7292
7293 * c-valprint.c (c_val_print_array): Consider addressable memory
7294 unit size.
7295 (c_val_print_ptr): Likewise.
7296 (c_val_print_int): Likewise.
7297 * findvar.c (read_frame_register_value): Likewise.
7298 * valarith.c (find_size_for_pointer_math): Likewise.
7299 (value_ptrdiff): Likewise.
7300 (value_subscripted_rvalue): Likewise.
7301 * valops.c (read_value_memory): Likewise (and rename variables).
7302 (value_assign): Likewise.
7303 (value_repeat): Likewise.
7304 (value_array): Likewise.
7305 (value_slice): Likewise.
7306 * valprint.c (generic_val_print_ptr): Likewise.
7307 (generic_val_print_enum): Likewise.
7308 (generic_val_print_bool): Likewise.
7309 (generic_val_print_int): Likewise.
7310 (generic_val_print_char): Likewise.
7311 (generic_val_print_float): Likewise.
7312 (generic_val_print_decfloat): Likewise.
7313 (generic_val_print_complex): Likewise.
7314 (val_print_scalar_formatted): Likewise.
7315 (val_print_array_elements): Likewise.
7316 * value.c (set_value_parent): Likewise.
7317 (value_contents_copy_raw): Likewise.
7318 (set_internalvar_component): Likewise.
7319 (value_primitive_field): Likewise.
7320 (value_fetch_lazy): Likewise.
7321 * value.h (read_value_memory): Update comment.
7322
e512cdbd
SM
73232015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7324
7325 * value.c (get_value_arch): New function.
7326 * value.h (get_value_arch): New declaration.
7327
3723fda8
SM
73282015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7329
7330 * value.c (struct value): Update comments.
7331
2e056931
SM
73322015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7333
7334 * gdbtypes.c (type_length_units): New function.
7335 * gdbtypes.h (type_length_units): New declaration.
7336 (struct type) <length>: Update comment.
7337
0c87c0bf
SM
73382015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7339
7340 * valprint.c (generic_val_print): Factor out complex
7341 printing code to ...
7342 (generic_val_print_complex): ... this new function.
7343
9550ae5e
SM
73442015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7345
7346 * valprint.c (generic_val_print): Factor out decfloat
7347 printing code to ...
7348 (generic_val_print_decfloat): ... this new function.
7349
7784724b
SM
73502015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7351
7352 * valprint.c (generic_val_print): Factor out float
7353 printing code to ...
7354 (generic_val_print_float): ... this new function.
7355
385f5aff
SM
73562015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7357
7358 * valprint.c (generic_val_print): Factor out char
7359 printing code to ...
7360 (generic_val_print_char): ... this new function.
7361
b21b6342
SM
73622015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7363
7364 * valprint.c (generic_val_print): Factor out integer
7365 printing code to ...
7366 (generic_val_print_int): ... this new function.
7367
e5bead4b
SM
73682015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7369
7370 * valprint.c (generic_val_print): Factor out bool
7371 printing code to ...
7372 (generic_val_print_bool): ... this new function.
7373
4a8c372f
SM
73742015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7375
7376 * valprint.c (generic_val_print): Factor out function/method
7377 printing code to ...
7378 (generic_val_print_func): ... this new function.
7379
d93880bd
SM
73802015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7381
7382 * valprint.c (generic_val_print): Factor out flags
7383 printing code to ...
7384 (generic_val_print_flags): ... this new function.
7385
ef0bc0dd
SM
73862015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7387
7388 * valprint.c (generic_val_print): Factor out enum
7389 printing code to ...
7390 (generic_val_print_enum): ... this new function.
7391
fe43fede
SM
73922015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7393
7394 * valprint.c (generic_val_print): Factor out reference
7395 printing code to ...
7396 (generic_val_print_ref): ... this new function.
7397
45000ea2
SM
73982015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7399
7400 * valprint.c (generic_val_print): Factor out memberptr
7401 printing code to ...
7402 (generic_val_print_memberptr): ... this new function.
7403
81eb921a
SM
74042015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7405
7406 * valprint.c (generic_val_print): Factor out pointer
7407 printing code to ...
7408 (generic_val_print_ptr): ... this new function.
7409
557dbe8a
SM
74102015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7411
7412 * valprint.c (generic_val_print): Factor out array
7413 printing code to ...
7414 (generic_val_print_array): ... this new function.
7415
9f436164
SM
74162015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7417
7418 * valprint.c (generic_val_print): Factor out
7419 print_unpacked_pointer code to ...
7420 (print_unpacked_pointer): ... this new function.
7421
077836f7
PP
74222015-07-27 Patrick Palka <patrick@parcs.ath.cx>
7423
7424 * event-top.c (handle_sigterm): Don't inspect
7425 target_can_async_p. Always set the quit flag and always mark
7426 the async signal handler.
7427
3a60804f
YQ
74282015-07-27 Yao Qi <yao.qi@linaro.org>
7429
7430 * Makefile.in (REMOTE_EXAMPLES): Remove it.
7431
c9f35b34
KB
74322015-07-25 Kevin Buettner <kevinb@redhat.com>
7433
7434 * remote.c (read_ptid): Return null_ptid when no thread id
7435 is found.
7436 (remote_current_thread): Add log warning for malformed
7437 qC reply.
7438 (remote_start_remote): Add log warning when current thread
7439 not found.
7440
2b4cab86
PA
74412015-07-24 Pedro Alves <palves@redhat.com>
7442
7443 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
7444 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
7445 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
7446
77598427
PA
74472015-07-24 Pedro Alves <palves@redhat.com>
7448
7449 PR gdb/18717
7450 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
7451 is resumed, and extend the debug log.
7452
fe23c31f
PA
74532015-07-24 Pedro Alves <palves@redhat.com>
7454
7455 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
7456
5826e159
PA
74572015-07-24 Pedro Alves <palves@redhat.com>
7458
7459 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
7460 sys/ptrace.h.
7461 * alpha-linux-nat.c: Likewise.
7462 * amd64-linux-nat.c: Likewise.
7463 * arm-linux-nat.c: Likewise.
7464 * hppa-linux-nat.c: Likewise.
7465 * i386-linux-nat.c: Likewise.
7466 * ia64-linux-nat.c: Likewise.
7467 * linux-fork.c: Likewise.
7468 * linux-nat.c: Likewise.
7469 * m32r-linux-nat.c: Likewise.
7470 * m68klinux-nat.c: Likewise.
7471 * mips-linux-nat.c: Likewise.
7472 * nat/linux-btrace.c: Likewise.
7473 * nat/linux-ptrace.c: Likewise.
7474 * nat/linux-ptrace.h
7475 * nat/mips-linux-watch.c: Likewise.
7476 * nat/x86-linux-dregs.c: Likewise.
7477 * ppc-linux-nat.c: Likewise.
7478 * s390-linux-nat.c: Likewise.
7479 * spu-linux-nat.c: Likewise.
7480 * tilegx-linux-nat.c: Likewise.
7481 * x86-linux-nat.c: Likewise.
7482 * xtensa-linux-nat.c: Likewise.
7483
54019719
PA
74842015-07-24 Pedro Alves <palves@redhat.com>
7485
7486 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
7487 __ptrace_request as first parameter type instead of int.
7488 (PTRACE_TYPE_ARG1): Define.
7489 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
7490 that casts first argument to PTRACE_TYPE_ARG1.
7491 * config.in: Regenerate.
7492 * configure: Regenerate.
7493
e3790375
PA
74942015-07-24 Pedro Alves <palves@redhat.com>
7495
7496 * gdb_ptrace.h: Move ...
7497 * nat/gdb_ptrace.h: ... here.
7498 * inf-ptrace.c: Adjust.
7499
eb7aa561
PA
75002015-07-24 Pedro Alves <palves@redhat.com>
7501
7502 * acinclude.m4: Include ptrace.m4.
7503 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
7504 * ptrace.m4: ... to this new file.
7505
cc12ce38
DE
75062015-07-23 Doug Evans <dje@google.com>
7507
7508 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
7509 (load_cu): Handle dummy CUs.
7510 (dw2_do_instantiate_symtab, process_queuef): Ditto.
7511 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
7512
7b849db4
CS
75132015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
7514
7515 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
7516 documentation to say that it returns a list rather than
7517 a FrozenSet.
7518 (linetable_object_methods): Update the docstring of the
7519 "source_line" entry.
7520
d0d84780
PMR
75212015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
7522
7523 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
7524 type to the recursive call instead of the original (maybe
7525 TYPE_CODE_TYPEDEF) type.
7526
c2fbdc59
YQ
75272015-07-23 Yao Qi <yao.qi@linaro.org>
7528
7529 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
7530 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
7531 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
7532
af1b22f3
YQ
75332015-07-21 Yao Qi <yao.qi@linaro.org>
7534
7535 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
7536 Move it to nat/aarch64-linux-hw-point.c.
7537 (aarch64_linux_child_post_startup_inferior): Update.
7538 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
7539 New function.
7540 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
7541 Declare it.
7542
40e050d2
MM
75432015-07-21 Markus Metzger <markus.t.metzger@intel.com>
7544
7545 * common/btrace-common.c (btrace_data_append): Change case label.
7546
3675a06a
YQ
75472015-07-20 Yao Qi <yao.qi@linaro.org>
7548
7549 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
7550 Re-indent the code.
7551 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
7552 "unsigned long long".
7553
b4e1fd61
KB
75542015-07-18 Kevin Buettner <kevinb@redhat.com>
7555
7556 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
7557 to be set for SEC_ALLOC sections too.
7558
554717a3
YQ
75592015-07-17 Yao Qi <yao.qi@linaro.org>
7560
7561 * Makefile.in (HFILES_NO_SRCDIR): Add
7562 nat/aarch64-linux-hw-point.h.
7563 (aarch64-linux-hw-point.o): New rule.
7564 * nat/aarch64-linux-hw-point.h: New file.
7565 * nat/aarch64-linux-hw-point.c: New file.
7566 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
7567 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7568 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7569 (AARCH64_HWP_ALIGNMENT): Likewise.
7570 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
7571 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
7572 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
7573 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
7574 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
7575 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
7576 (struct aarch64_debug_reg_state): Likewise.
7577 (struct arch_lwp_info): Likewise.
7578 (aarch64_linux_set_debug_regs): Likewise.
7579 (aarch64_notify_debug_reg_change): Remove static.
7580 (aarch64_align_watchpoint): Likewise.
7581 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
7582 (aarch64_watchpoint_length): Likewise.
7583 (aarch64_point_encode_ctrl_reg): Likewise
7584 (aarch64_point_is_aligned): Likewise.
7585 (aarch64_dr_state_insert_one_point): Likewise.
7586 (aarch64_dr_state_remove_one_point): Likewise.
7587 (aarch64_handle_breakpoint): Likewise.
7588 (aarch64_handle_aligned_watchpoint): Likewise.
7589 (aarch64_handle_unaligned_watchpoint): Likewise.
7590 (aarch64_handle_watchpoint): Likewise.
7591 * config/aarch64/linux.mh (NAT_FILE): Add
7592 aarch64-linux-hw-point.o.
7593
c67ca4de
YQ
75942015-07-17 Yao Qi <yao.qi@linaro.org>
7595
7596 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
7597 state and don't call aarch64_get_debug_reg_state. All callers
7598 update.
7599 (aarch64_linux_insert_hw_breakpoint): Call
7600 aarch64_get_debug_reg_state earlier.
7601 (aarch64_linux_remove_hw_breakpoint): Likewise.
7602 (aarch64_handle_aligned_watchpoint): Add argument state and
7603 don't call aarch64_get_debug_reg_state. All callers update.
7604 (aarch64_handle_unaligned_watchpoint): Likewise.
7605 (aarch64_handle_watchpoint): Add argument state.
7606 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
7607 earlier.
7608 (aarch64_linux_remove_watchpoint): Likewise.
7609
25abf979
YQ
76102015-07-17 Yao Qi <yao.qi@linaro.org>
7611
7612 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
7613 debug_printf.
7614 (aarch64_handle_unaligned_watchpoint): Likewise.
7615
2ecd81c2
YQ
76162015-07-17 Yao Qi <yao.qi@linaro.org>
7617
7618 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
7619 argument type's type to 'enum target_hw_bp_type'.
7620 (aarch64_dr_state_remove_one_point): Likewise.
7621 (aarch64_handle_breakpoint): Likewise.
7622 (aarch64_linux_insert_hw_breakpoint): Likewise.
7623 (aarch64_linux_remove_hw_breakpoint): Likewise.
7624 (aarch64_handle_aligned_watchpoint): Likewise.
7625
e53b6938
YQ
76262015-07-17 Yao Qi <yao.qi@linaro.org>
7627
7628 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
7629 ptid_get_pid instead of get_thread_id.
7630
6a49a997
YQ
76312015-07-17 Yao Qi <yao.qi@linaro.org>
7632
7633 * remote.c (get_current_thread): Initialise ptid to null_ptid.
7634 (add_current_inferior_and_thread): Don't initialise ptid.
7635
4bcddace
PL
76362015-07-16 Pierre Langlois <pierre.langlois@arm.com>
7637
7638 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
7639 unavailable if invalid.
7640
db1ff28b
JK
76412015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7642
7643 Revert the previous 6 commits:
7644 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7645 Move gdb_regex* to common/
7646 Prepare linux_find_memory_regions_full & co. for move
7647 Move linux_find_memory_regions_full & co.
7648 gdbserver build-id attribute generator
7649 Validate symbol file using build-id
7650
ca5268b6
JK
76512015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7652 Jan Kratochvil <jan.kratochvil@redhat.com>
7653
7654 Validate symbol file using build-id.
7655 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
7656 and 'show validate-build-id'. Add build-id attribute.
7657 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
7658 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
7659 * solib-frv.c (_initialize_frv_solib): Ditto.
7660 * solib-spu.c (set_spu_solib_ops): Ditto.
7661 * solib-svr4.c: Include rsp-low.h.
7662 (NOTE_GNU_BUILD_ID_NAME): New define.
7663 (svr4_validate): New function.
7664 (svr4_copy_library_list): Duplicate field build_id.
7665 (library_list_start_library): Parse 'build-id' attribute.
7666 (svr4_library_attributes): Add 'build-id' attribute.
7667 (_initialize_svr4_solib): Assign validate value.
7668 * solib-target.c (solib.h): Include.
7669 (_initialize_solib_target): Assign validate value.
7670 * solib.c (validate_build_id, show_validate_build_id): New.
7671 (solib_map_sections): Use ops->validate.
7672 (clear_so): Free build_id.
7673 (default_solib_validate): New function.
7674 (_initialize_solib): Add "validate-build-id".
7675 * solib.h (default_solib_validate): New declaration.
7676 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
7677 (target_so_ops): New field 'validate'.
7678
700ca40f
JK
76792015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7680 Jan Kratochvil <jan.kratochvil@redhat.com>
7681
7682 gdbserver build-id attribute generator.
7683 * features/library-list-svr4.dtd (library-list-svr4): New
7684 'build-id' attribute.
7685
9904185c
JK
76862015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7687 Jan Kratochvil <jan.kratochvil@redhat.com>
7688
7689 Move linux_find_memory_regions_full & co.
7690 * linux-tdep.c (nat/linux-maps.h): Include.
7691 (gdb_regex.h): Remove the include.
7692 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
7693 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
7694 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
7695 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
7696 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
7697 and target/target.h.
7698 (struct smaps_vmflags, read_mapping, decode_vmflags)
7699 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
7700 (linux_find_memory_regions_full): Move from linux-tdep.c.
7701 * nat/linux-maps.h (read_mapping): New declaration.
7702 (linux_find_memory_region_ftype, enum filterflags): Moved from
7703 linux-tdep.c.
7704 (linux_find_memory_regions_full): New declaration.
7705 * target.c (target/target-utils.h): Include.
7706 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
7707 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
7708 definitions to target/target-utils.c.
7709 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
7710 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
7711 from target.c.
7712 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
7713 (read_alloc): New declaration.
7714 (read_stralloc_func_ftype): New typedef.
7715 (read_stralloc): New declaration.
7716 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
7717
f7af1fcd
JK
77182015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7719 Jan Kratochvil <jan.kratochvil@redhat.com>
7720
7721 Prepare linux_find_memory_regions_full & co. for move.
7722 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
7723 (linux_find_memory_regions_full): Change signature and prepare
7724 for moving to linux-maps.
7725 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
7726 (linux_find_memory_regions_thunk): New.
7727 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
7728 (linux_find_memory_regions_gdb): New.
7729 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
7730 (linux_make_mappings_corefile_notes): Use
7731 linux_find_memory_regions_gdb.
7732 * target.c (read_alloc_pread_ftype): New typedef.
7733 (target_fileio_read_alloc_1_pread): New function.
7734 (read_alloc): Refactor from target_fileio_read_alloc_1.
7735 (read_stralloc_func_ftype): New typedef.
7736 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
7737 (read_stralloc): Refactored from target_fileio_read_stralloc.
7738 (target_fileio_read_stralloc): New implementation, use read_stralloc.
7739
6e5b4429
JK
77402015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7741
7742 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
7743 common/gdb_regex.h.
7744 (COMMON_OBS): Add gdb_regex.o.
7745 (gdb_regex.o): New.
7746 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
7747 --without-included-regex and USE_INCLUDED_REGEX.
7748 * common/gdb_regex.c: New file from utils.c functions.
7749 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
7750 file wrapping define name.
7751 * configure: Rebuilt.
7752 * configure.ac (gdb_use_included_regex, --without-included-regex)
7753 (USE_INCLUDED_REGEX): Move them to common/common.m4.
7754 * gdb_regex.h: Move it to common/gdb_regex.h.
7755 * utils.c: Remove include gdb_regex.h.
7756 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
7757 (compile_rx_or_error): Move them to common/gdb_regex.c.
7758
ddc98fbf
JK
77592015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7760 Jan Kratochvil <jan.kratochvil@redhat.com>
7761
7762 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7763 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
7764 common/target-utils.h.
7765 (COMMON_OBS): Add target-utils.o.
7766 (linux-maps.o, target-utils.o): New.
7767 * target/target-utils.c: New file.
7768 * target/target-utils.h: New file.
7769 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
7770 * config/i386/linux64.mh (NATDEPFILES): Ditto.
7771 * nat/linux-maps.c: New file.
7772 * nat/linux-maps.h: New file.
7773
e7b01ce0
MM
77742015-07-15 Markus Metzger <markus.t.metzger@intel.com>
7775 Pedro Alves <palves@redhat.com>
7776
7777 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
7778 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
7779 (perf_event_read_bts): Change the type of SIZE and READ.
7780 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
7781 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
7782 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
7783 mmap page.
7784 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
7785 buffer size to UINT_MAX.
7786 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
7787 DATA_TAIL.
7788 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
7789 <last_head>: Change type.
7790 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
7791 * common/btrace-common.c (btrace_data_append): Change the type of
7792 SIZE.
7793 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
7794 check.
7795
f168693b
SM
77962015-07-14 Simon Marchi <simon.marchi@ericsson.com>
7797
7798 * gdbtypes.h (CHECK_TYPEDEF): Remove.
7799 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
7800 with check_typedef.
7801 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
7802 (ada_array_length): Likewise.
7803 (find_parallel_type_by_descriptive_type): Likewise.
7804 (ada_check_typedef): Likewise.
7805 * arm-tdep.c (arm_return_in_memory): Likewise.
7806 * ax-gdb.c (gen_trace_static_fields): Likewise.
7807 (gen_struct_ref_recursive): Likewise.
7808 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7809 (variable: block COLONCOLON name): Likewise.
7810 (qualified_name: TYPENAME COLONCOLON name): Likewise.
7811 * c-lang.c (classify_type): Likewise.
7812 * c-typeprint.c (c_print_type): Likewise.
7813 (c_print_typedef): Likewise.
7814 (c_type_print_base): Likewise.
7815 * c-valprint.c (c_val_print): Likewise.
7816 * compile/compile-c-types.c (convert_type): Likewise.
7817 * compile/compile-object-load.c (get_out_value_type): Likewise.
7818 * completer.c (add_struct_fields): Likewise.
7819 (expression_completer): Likewise.
7820 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
7821 (cp_lookup_nested_symbol_1): Likewise.
7822 (cp_lookup_nested_symbol): Likewise.
7823 * cp-valprint.c (cp_print_value_fields): Likewise.
7824 (cp_print_static_field): Likewise.
7825 * d-valprint.c (d_val_print): Likewise.
7826 * eval.c (evaluate_subexp_standard): Likewise.
7827 (evaluate_subexp_for_sizeof): Likewise.
7828 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7829 * f-typeprint.c (f_type_print_base): Likewise.
7830 * f-valprint.c (f_val_print): Likewise.
7831 * gdbtypes.c (get_discrete_bounds): Likewise.
7832 (create_array_type_with_stride): Likewise.
7833 (type_name_no_tag_or_error): Likewise.
7834 (lookup_struct_elt_type): Likewise.
7835 (get_unsigned_type_max): Likewise.
7836 (internal_type_vptr_fieldno): Likewise.
7837 (set_type_vptr_fieldno): Likewise.
7838 (internal_type_vptr_basetype): Likewise.
7839 (set_type_vptr_basetype): Likewise.
7840 (get_vptr_fieldno): Likewise.
7841 (is_integral_type): Likewise.
7842 (is_scalar_type): Likewise.
7843 (is_scalar_type_recursive): Likewise.
7844 (distance_to_ancestor): Likewise.
7845 (is_unique_ancestor_worker): Likewise.
7846 (check_types_equal): Likewise.
7847 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
7848
45280282
IB
78492015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
7850
7851 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
7852 also test for language_d.
7853 (dwarf2_compute_name): Likewise.
7854 (read_func_scope): Likewise.
7855 (read_structure_type): Likewise.
7856 (new_symbol_full): Likewise.
7857 (determine_prefix): Likewise.
7858 (read_import_statement): Use dot as the separator for language_d.
7859 (typename_concat): Likewise, but don't prefix the D main function.
7860
99fe86f7
PB
78612015-07-14 Peter Bergner <bergner@vnet.ibm.com>
7862
7863 * nat/linux-namespaces.c (setns): Rename from this ...
7864 (do_setns): ... to this. Support calling setns if it exists.
7865 (mnsh_handle_setns): Call do_setns.
7866
d5131498
YQ
78672015-07-13 Yao Qi <yao.qi@linaro.org>
7868
7869 * exec.c (exec_file_attach): Add period at the end of error
7870 message.
7871
97605e61
AB
78722015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
7873
7874 * tui/tui-win.c (window_name_completer): New function.
7875 (focus_completer): Call window_name_completer. All old content
7876 moved into window_name_completer.
7877 (winheight_completer): New function.
7878 (_initialize_tui_win): Rename variable. Add completer to
7879 winheight command. Update doc string on winheight.
7880
8d6dbeb4
SL
78812015-07-12 Sandra Loosemore <sandra@codesourcery.com>
7882
7883 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
7884 all nios2 mach variants.
7885
a0e28e54
KB
78862015-07-10 Kevin Buettner <kevinb@redhat.com>
7887
7888 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
7889 of target_read_memory.
7890
c101f28f
AB
78912015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7892
7893 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
7894 string copy.
7895 (parse_scrolling_args): Likewise.
7896
150375dc
AB
78972015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7898
7899 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
7900 names in this function.
7901
6dce28e4
AB
79022015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * tui/tui-data.h (SRC_NAME): Convert to lower case.
7905 (CMD_NAME): Likewise.
7906 (DATA_NAME): Likewise.
7907 (DISASSEM_NAME): Likewise.
7908 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
7909 (tui_set_win_height): Likewise.
7910 (parse_scrolling_args): Likewise.
7911
485668e5
MM
79122015-07-10 Markus Metzger <markus.t.metzger@intel.com>
7913
7914 * record-btrace.c (record_btrace_goto_begin)
7915 (record_btrace_goto_end, record_btrace_goto): Move call to
7916 print_stack_frame ...
7917 (record_btrace_set_replay): ... here. Set stop_pc.
7918 * record-full.c (record_full_goto_entry): Set stop_pc.
7919
58d2eda5
PL
79202015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7921
7922 * NEWS: Mention support for tracepoints on aarch64-linux.
7923
7671bf47
PL
79242015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7925
7926 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
7927 function. Return 1.
7928 (the_low_target): Install it.
7929
7890fb45
PL
79302015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7931
7932 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
7933 * gdb.trace/collection.exp: Likewise.
7934 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
7935 * gdb.trace/mi-trace-unavailable.exp: Likewise.
7936 * gdb.trace/report.exp: Likewise.
7937 * gdb.trace/trace-break.exp: Likewise.
7938 * gdb.trace/unavailable.exp: Likewise.
7939 * gdb.trace/while-dyn.exp: Likewise.
7940
ea873d8e
PL
79412015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7942
7943 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
7944 (aarch64_gen_return_address): New function.
7945 (aarch64_gdbarch_init): Hook it.
7946
02a2a705
PL
79472015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7948
7949 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
7950 swallow NOT_AVAILABLE_ERROR.
7951 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
7952 available_p is not set.
7953 (aarch64_stub_frame_unwind_stop_reason): New function.
7954 (aarch64_stub_unwind): Install it.
7955
7dfa3edc
PL
79562015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7957
7958 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
7959 field.
7960 (aarch64_make_prologue_cache_1): New function, factored out from
7961 aarch64_make_prologue_cache. Do not allocate cache. Set
7962 available_p.
7963 (aarch64_make_prologue_cache): Reimplement wrapping
7964 aarch64_make_prologue_cache_1, and swallowing
7965 NOT_AVAILABLE_ERROR.
7966 (aarch64_prologue_frame_unwind_stop_reason): New function.
7967 Return UNWIND_UNAVAILABLE if available_p is not set.
7968 (aarch64_prologue_unwind): Install it.
7969 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
7970 checks into aarch64_prologue_frame_unwind_stop_reason. Call
7971 frame_id_build_unavailable_stack if available_p is not set.
7972
db634143
PL
79732015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7974
7975 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
7976 fields.
7977 (aarch64_scan_prologue): Set prev_pc.
7978 (aarch64_make_prologue_cache): Set func.
7979 (aarch64_make_stub_cache): Set prev_pc.
7980 (aarch64_prologue_this_id): Remove local variables id, pc and
7981 func. Read prev_pc and func from cache.
7982 (aarch64_stub_this_id): Read prev_pc from cache.
7983
8b61f75d
PL
79842015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7985
7986 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
7987 argument this_cache. Remove unused local variables reg and
7988 unwound_fp. Return early if this_cache is already set. Set
7989 this_cache.
7990 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
7991
7c8edfae
PL
79922015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7993
7994 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
7995 New argument this_cache. Return early if this_cache is already
7996 set. Set this_cache.
7997 (aarch64_prologue_this_id): Update call to
7998 aarch64_make_prologue_cache.
7999 (aarch64_prologue_prev_register): Likewise.
8000 (aarch64_normal_frame_base): Likewise.
8001
938c69a1
SM
80022015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8003
8004 * c-valprint.c (c_val_print): Factor out memberptr printing code
8005 from c_val_print to ...
8006 (c_val_print_memberptr): ... this new function.
8007
49f7fe28
SM
80082015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8009
8010 * c-valprint.c (c_val_print): Factor out int printing code to ...
8011 (c_val_print_int): ... this new function.
8012
9e4f353c
SM
80132015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8014
8015 * c-valprint.c (c_val_print): Factor out struct and union
8016 printing code to ...
8017 (c_val_print_struct): ... this new function ...
8018 (c_val_print_union): ... and this new function.
8019
1c67f032
SM
80202015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8021
8022 * c-valprint.c (c_val_print): Factor out pointer printing code
8023 to ...
8024 (c_val_print_ptr): ... this new function.
8025
0b6ef777
SM
80262015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8027
8028 * c-valprint.c (c_valprint): Factor our array printing code from
8029 c_val_print to ...
8030 (c_val_print_array): ... this new function.
8031
1033c33c
SM
80322015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8033
8034 * c-valprint.c (c_val_print): Factor out pointer printing code
8035 to ...
8036 (print_unpacked_pointer): ... this new function.
8037
f6b93c34
SM
80382015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8039
8040 * c-valprint.c (c_val_print): Remove an assignment to i and move
8041 its declaration.
8042
0f4576e3
YQ
80432015-07-09 Yao Qi <yao.qi@linaro.org>
8044
8045 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
8046 argument ptid. Update comments. Caller update.
8047
37fdfe4c
MM
80482015-07-09 Markus Metzger <markus.t.metzger@intel.com>
8049
8050 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
8051 mnt packets.
8052
80a2b330
MM
80532015-07-09 Markus Metzger <markus.t.metzger@intel.com>
8054
8055 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
8056
4ab31498
SM
80572015-07-08 Simon Marchi <simon.marchi@ericsson.com>
8058
8059 * progspace.c (delete_program_space): Add missing spaces.
8060
7a41607e
SM
80612015-07-08 Simon Marchi <simon.marchi@ericsson.com>
8062
8063 * inferior.c (delete_inferior_1): Rename to ...
8064 (delete_inferior): ..., remove 'silent' parameter, delete
8065 program space when unused and remove call to prune_program_spaces.
8066 Remove the old, unused, delete_inferior.
8067 (delete_inferior_silent): Remove.
8068 (prune_inferiors): Change call from delete_inferior_1 to
8069 delete_inferior and remove 'silent' parameter. Remove call to
8070 prune_program_spaces.
8071 (remove_inferior_command): Idem.
8072 * inferior.h (delete_inferior_1): Rename to...
8073 (delete_inferior): ..., remove 'silent' parameter and remove the
8074 original delete_inferior.
8075 (delete_inferior_silent): Remove.
8076 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
8077 delete_inferior_1 to delete_inferior and remove 'silent'
8078 parameter.
8079 * progspace.c (prune_program_spaces): Remove.
8080 (pspace_empty_p): Rename to...
8081 (program_space_empty_p): ... and make non-static.
8082 (delete_program_space): New.
8083 * progspace.h (prune_program_spaces): Remove declaration.
8084 (program_space_empty_p): New declaration.
8085 (delete_program_space): New declaration.
8086 * monitor.c (monitor_close): Replace call to
8087 delete_thread_silent and delete_inferior_silent with
8088 discard_all_inferiors.
8089
a9bd710f
PP
80902015-07-08 Patrick Palka <patrick@parcs.ath.cx>
8091
8092 * defs.h (deprecated_register_changed_hook): Remove prototype.
8093 * interps.c (clear_iterpreter_hooks): Remove reference to
8094 deprecated_register_changed_hook.
8095 * top.c (deprecated_register_changed_hook): Remove prototype.
8096 * valops.c (value_assign): Remove reference to
8097 deprecated_register_changed_hook.
8098 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
8099 Add comment documenting the function.
8100 (tui_register_changed_observer): Define.
8101 (tui_install_hooks): Remove reference to
8102 deprecated_register_changed_hook. Set
8103 tui_register_changed_observer.
8104 (tui_remove_hooks): Remove reference to
8105 deprecated_register_changed_hook. Unset
8106 tui_register_changed_observer.
8107
08464196
JK
81082015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8109
8110 PR compile/18484
8111 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
8112
bcf5c1d9
RC
81132015-07-08 Robert O'Callahan <robert@ocallahan.org>
8114
8115 PR exp/18617
8116 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
8117
e8643a45
MM
81182015-07-08 Markus Metzger <markus.t.metzger@intel.com>
8119
8120 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
8121
76fb6829
MM
81222015-07-08 Markus Metzger <markus.t.metzger@intel.com>
8123
8124 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
8125 Use safe_strerror() instead of strerror().
8126
82c40d4b
YQ
81272015-07-07 Yao Qi <yao.qi@linaro.org>
8128
8129 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
8130 * features/arm-with-m-fpa-layout.c: Regenerated.
8131 * features/arm-with-m-vfp-d16.xml: Likewise.
8132 * features/arm-with-m-vfp-d16.c: Regenerated.
8133 * features/arm-with-m.xml: Likewise.
8134 * features/arm-with-m.c: Regenerated.
8135 * features/arm-with-neon.xml: Likewise.
8136 * features/arm-with-neon.c: Regenerated.
8137 * features/arm-with-vfpv2.xml: Likewise.
8138 * features/arm-with-vfpv2.c: Regenerated.
8139 * features/arm-with-vfpv3.xml: Likewise.
8140 * features/arm-with-vfpv3.c: Regenerated.
8141
607685ec
YQ
81422015-07-07 Yao Qi <yao.qi@linaro.org>
8143
8144 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
8145 arm-linux-nat.c.
8146 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
8147 elf/external.h.
8148 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
8149 if target is 32-bit.
8150 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
8151 if target is 32-bit.
8152 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
8153 if target is 32-bit.
8154 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
8155 if target is 32-bit.
8156 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
8157 (aarch64_linux_read_description): Return the right target
8158 description.
8159 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
8160 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
8161 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
8162 arm-linux-tdep.o.
8163
f1b67888
YQ
81642015-07-07 Yao Qi <yao.qi@linaro.org>
8165
8166 * aarch32-linux-nat.c: New file.
8167 * aarch32-linux-nat.h: New file.
8168 * arm-linux-nat.c: Include aarch32-linux-nat.h.
8169 (fetch_regs): Move code to aarch32-linux-nat.c. Call
8170 aarch32_gp_regcache_supply.
8171 (store_regs): Move code to aarch32-linux-nat.c. Call
8172 aarch32_gp_regcache_collect.
8173 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
8174 aarch32_vfp_regcache_supply.
8175 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
8176 aarch32_vfp_regcache_collect.
8177 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
8178
179bfe82
YQ
81792015-07-07 Yao Qi <yao.qi@linaro.org>
8180
8181 * arm-linux-nat.c (store_fpregister): Remove.
8182 (store_register): Likewise.
8183 (fetch_fpregister): Likewise.
8184 (fetch_register): Likewise.
8185 (arm_linux_store_inferior_registers): Call store_regs and
8186 store_fpregs instead.
8187 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
8188 fetch_regs instead.
8189
6008fc5f
AB
81902015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8191
8192 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
8193 and focus commands.
8194
7c79d316
JB
81952015-07-06 Joel Brobecker <brobecker@adacore.com>
8196
8197 * NEWS: Create a new section for the next release branch.
8198 Rename the section of the current branch, now that it has
8199 been cut.
8200
f2232bea
JB
82012015-07-06 Joel Brobecker <brobecker@adacore.com>
8202
8203 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
8204 * version.in: Bump version to 7.10.50.DATE-cvs.
8205
66c4b3e8
LM
82062015-07-06 Luis Machado <lgustavo@codesourcery.com>
8207
8208 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
8209 breakpoints in a special way.
8210 (remove_breakpoint): Likewise.
8211 (mark_breakpoints_out): Likewise.
8212
bcd8537c
AB
82132015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8214
8215 * doc/gdb.texinfo (TUI): Add comma after @xref.
8216
10e9aaa3
AB
82172015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8218
8219 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
8220 instead of casting the structure type.
8221
8a13d42d
SM
82222015-07-06 Simon Marchi <simon.marchi@ericsson.com>
8223
8224 * valops.c (search_struct_field): Remove OFFSET parameter.
8225 (value_cast_structs): Adjust calls to search_struct_field.
8226 (value_struct_elt): Same.
8227 (find_overload_match): Same.
8228
a844296a
SM
82292015-07-06 Simon Marchi <simon.marchi@ericsson.com>
8230
8231 * value.c (value_fetch_lazy): Update comment, change return
8232 value to void.
8233 * value.h (value_fetch_lazy): Change return value to void.
8234
f41cbf58
AB
82352015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8236
8237 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
8238 (tui_win_name): Make parameter and result const.
8239 * tui/tui-data.h (tui_win_name): Make parameter and result const.
8240
118ca224
PP
82412015-07-06 Patrick Palka <patrick@parcs.ath.cx>
8242
8243 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
8244 use printf_unfiltered.
8245 (set_mpx_cmd): Add missing trailing space to command string
8246 literal.
8247 (_initialize_i386_tdep): Give the "mpx" prefix command its
8248 correct name.
8249
1b485e67
KB
82502015-07-02 Kevin Buettner <kevinb@redhat.com>
8251
8252 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
8253 (enum rx_frame_type): New.
8254 (struct rx_prologue): Add new field `frame_type'.
8255 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
8256 parameter in the prologue struct. Add code for recording
8257 locations of PC and PSW for fast interrupt and exception frames.
8258 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
8259 (rx_analyze_frame_prologue): Add `frame_type' parameter.
8260 (rx_frame_type): New function.
8261 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
8262 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
8263 `this_cache'.
8264 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 8265 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
8266 RX_FRAME_TYPE_FAST_INTERRUPT.
8267 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
8268 (rx_frame_sniffer, rx_exception_sniffer): New functions.
8269 (rx_frame_unwind): Use rx_frame_sniffer instead of
8270 default_frame_sniffer.
8271 (rx_frame_unwind): New unwinder.
8272 (rx_gdbarch_init): Register new unwinder.
8273
0561fea4
KB
82742015-07-02 Kevin Buettner <kevinb@redhat.com>
8275
8276 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
8277 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
8278 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
8279 and RX_FPSW_REGNUM.
8280 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
8281
decf8d9a
JK
82822015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8283
8284 Fix GCC false warning.
8285 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
8286
2fd0f80d
YQ
82872015-07-02 Yao Qi <yao.qi@linaro.org>
8288
8289 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
8290 typo in the debugging message.
8291
b0627500
MM
82922015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8293
8294 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
8295 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
8296 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
8297 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
8298 (btrace_maint_clear): New.
8299 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
8300 (pt_print_packet, btrace_maint_decode_pt)
8301 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
8302 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
8303 (maint_btrace_packet_history_cmd)
8304 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
8305 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
8306 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
8307 (maint_info_btrace_cmd, _initialize_btrace): New.
8308 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
8309 (btrace_maint_packet_history, btrace_maint_info): New.
8310 (btrace_thread_info) <maint>: New.
8311 * NEWS: Announce it.
8312
9be54cae
MM
83132015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8314
8315 * btrace.c (btrace_fetch): Append the new trace data.
8316 (btrace_clear): Clear the stored trace data.
8317 * btrace.h (btrace_thread_info) <data>: New.
8318 * common/btrace-common.h (btrace_data_clear)
8319 (btrace_data_append): New.
8320 * common/btrace-common.c (btrace_data_clear)
8321 (btrace_data_append): New.
8322
010a18a1
MM
83232015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8324
8325 * nat/linux-btrace.c (linux_enable_bts): Check for
8326 PERF_ATTR_SIZE_VER5.
8327 Check for data_offset and data_size fields. Use them.
8328
b20a6524
MM
83292015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8330
8331 * NEWS: Announce new commands "record btrace pt" and "record pt".
8332 Announce new options "set|show record btrace pt buffer-size".
8333 * btrace.c: Include "rsp-low.h".
8334 Include "inttypes.h".
8335 (btrace_add_pc): Add forward declaration.
8336 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
8337 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
8338 (btrace_compute_ftrace_pt): New.
8339 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
8340 (check_xml_btrace_version): Update version check.
8341 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
8342 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
8343 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
8344 (btrace_pt_children): New.
8345 (btrace_children): Add support for "pt".
8346 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
8347 (btrace_conf_children): Add support for "pt".
8348 * btrace.h: Include "intel-pt.h".
8349 (btrace_pt_error): New.
8350 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
8351 (btrace_data_empty): Support BTRACE_FORMAT_PT.
8352 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
8353 (struct btrace_config_pt): New.
8354 (struct btrace_config)<pt>: New.
8355 (struct btrace_data_pt_config, struct btrace_data_pt): New.
8356 (struct btrace_data)<pt>: New.
8357 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
8358 (pt): New.
8359 * features/btrace.dtd (btrace)<pt>: New.
8360 (pt, pt-config, cpu): New.
8361 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
8362 (perf_event_pt_event_type, kernel_supports_pt)
8363 (linux_supports_pt): New.
8364 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
8365 (linux_enable_bts): Free tinfo on error.
8366 (linux_enable_pt): New.
8367 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
8368 (linux_disable_pt): New.
8369 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
8370 (linux_fill_btrace_pt_config, linux_read_pt): New.
8371 (linux_read_btrace): Support BTRACE_FORMAT_PT.
8372 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
8373 (struct btrace_target_info)<pt>: New.
8374 * record-btrace.c (set_record_btrace_pt_cmdlist)
8375 (show_record_btrace_pt_cmdlist): New.
8376 (record_btrace_print_pt_conf): New.
8377 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
8378 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
8379 (cmd_record_btrace_pt_start): New.
8380 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
8381 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
8382 (_initialize_record_btrace): Add new commands.
8383 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
8384 (remote_protocol_features): Add "Qbtrace:pt".
8385 Add "Qbtrace-conf:pt:size".
8386 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
8387 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
8388 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
8389 (_initialize_remote): Add new commands.
8390
58bfce93
MM
83912015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8392
8393 * configure.ac: check for libipt
8394 * configure: Regenerate.
8395 * config.in: Regenerate.
8396 * Makefile.in (LIBIPT): New.
8397 (CLIBS): Add $LIBIPT.
8398 * NEWS: document new configure options
8399
b0fd6b30
JK
84002015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8401
8402 * compile/compile-object-load.c (compile_object_load): Replace debug
8403 message "lookup undefined ELF symbol" by 3 more specific messages.
8404
e6280369
KB
84052015-07-01 Kevin Buettner <kevinb@redhat.com>
8406
8407 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
8408 (rl78_register_type): Add case for RL78_PSW_REGNUM.
8409 (rl78_gdbarch_init): Initialize rl78_psw_type.
8410
bbcbf914
PP
84112015-07-01 Patrick Palka <patrick@parcs.ath.cx>
8412
8413 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
8414 Update commentary. Always refresh the registers when frame
8415 information has changed.
8416 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
8417 Change return type to int. Return 1 if frame information has
8418 changed, 0 otherwise.
8419 (tui_before_prompt): Update commentary.
8420 * tui/tui-stack.h (tui_show_frame_info): Change return type to
8421 int.
8422
0986c744
PP
84232015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8424
8425 PR tui/13378
8426 * frame.c (select_frame): Remove reference to
8427 deprecated_selected_frame_level_changed_hook.
8428 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
8429 declaration.
8430 * stack.c (deprecated_selected_frame_level_changed_hook):
8431 Likewise.
8432 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
8433 Rename to ...
8434 (tui_refresh_frame_and_register_information): ... this. Bail
8435 out if there is no stack. Don't update register information
8436 unless registers_too_p is true.
8437 (tui_print_frame_info_listing_hook): Rename to ...
8438 (tui_dummy_print_frame_info_listing_hook): ... this.
8439 (tui_before_prompt): New function.
8440 (tui_normal_stop): New function.
8441 (tui_before_prompt_observer): New observer.
8442 (tui_normal_stop_observer): New observer.
8443 (tui_install_hooks): Set
8444 deprecated_print_frame_info_listing_hook to
8445 tui_dummy_print_frame_info_listing_hook. Register
8446 tui_before_prompt_observer to call tui_before_prompt and
8447 tui_normal_stop_observer to call tui_normal_stop. Remove
8448 reference to deprecated_selected_frame_level_changed_hook.
8449 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
8450 and tui_normal_stop_observer. Remove reference to
8451 deprecated_selected_frame_level_changed_hook.
8452
b5fca6d7
PP
84532015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8454
8455 PR tui/13378
8456 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
8457 return an int instead of void. Return whether the locator
8458 window has changed.
8459 (tui_show_frame_info): If the locator info has not changed, then
8460 bail out early to avoid refreshing the windows.
8461
c45613e3
PP
84622015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8463
8464 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
8465 LOCATOR_WIN to tui_alloc_content.
8466
7b9be803
YQ
84672015-06-30 Yao Qi <yao.qi@linaro.org>
8468
8469 PR tdep/18605
8470 * arm-tdep.c (arm_get_next_pc_raw): Break for media
8471 instructions.
8472
fd6e021d
KB
84732015-06-29 Kevin Buettner <kevinb@redhat.com>
8474
78ab7e9d
KB
8475 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
8476 (rx_dwarf_reg_to_regnum): New function.
8477 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
8478 unwinding.
fd6e021d 8479
28bf096c
PA
84802015-06-29 Pedro Alves <palves@redhat.com>
8481
8482 PR threads/18127
8483 * infcall.c (run_inferior_call): On infcall success, if the thread
8484 was marked stopped before, reset it back to stopped.
8485 * infrun.c (resume): Don't suppress the set_running calls when
8486 doing an infcall.
8487 (normal_stop): Only discard the finish_thread_state cleanup if the
8488 infcall succeeded.
8489
2880b51c 84902015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
8491
8492 * MAINTAINERS (Write After Approval): Update my email address.
8493
ee93cd5e
KS
84942015-06-26 Keith Seitz <keiths@redhat.com>
8495 Doug Evans <dje@google.com>
8496
8497 PR 16253
8498 * block.c (block_lookup_symbol): For non-function blocks,
8499 continue to search for a symbol with an exact domain match
8500 Otherwise, return any previously found "best domain" symbol.
8501 (block_lookup_symbol_primary): Likewise.
8502
fc637f04
PP
85032015-06-26 Patrick Palka <patrick@parcs.ath.cx>
8504
8505 * NEWS: Mention the new option "history remove-duplicates".
8506 * top.c (history_remove_duplicates): New static variable.
8507 (show_history_remove_duplicates): New static function.
8508 (gdb_add_history): Conditionally remove duplicate history
8509 entries.
8510 (init_main): Add "history remove-duplicates" option.
8511
2e52ae68
PP
85122015-06-26 Patrick Palka <patrick@parcs.ath.cx>
8513
8514 * tui/tui-win.c (focus_completer): New static function.
8515 (_initialize_tui_win): Set the completion function of the
8516 "focus" command to focus_completer.
8517
6e22494e
JK
85182015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8519
8520 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
8521 and language_asm..
8522 * symtab.c (find_function_start_sal): Likewise.
8523
f8773be1
GB
85242015-06-25 Gary Benson <gbenson@redhat.com>
8525
8526 * solib.c (solib_find_1): Set local variable sysroot to NULL if
8527 it is the empty string after trailing slashes have been stripped.
8528
a3be80c3
GB
85292015-06-25 Gary Benson <gbenson@redhat.com>
8530
8531 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
8532 * infrun.c (follow_exec): Likewise.
8533 * remote.c (remote_filesystem_is_local): Likewise.
8534 * solib.c (solib_find_1): Likewise.
8535
32fad71f
KS
85362015-06-24 Keith Seitz <keiths@redhat.com>
8537
8538 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
8539 return value from lrealpath.
8540
87d1b309
MF
85412015-06-24 Mike Frysinger <vapier@gentoo.org>
8542
8543 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
8544
23bf70af
MF
85452015-06-24 Mike Frysinger <vapier@gentoo.org>
8546
8547 * remote-sim.c: Include gdb_bfd.h.
8548 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
8549 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
8550
5cd867b4
YQ
85512015-06-24 Yao Qi <yao.qi@linaro.org>
8552
8553 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
8554 set_gdbarch_get_siginfo_type.
8555 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8556 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8557 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8558 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
8559 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
8560 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8561 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
8562 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
8563 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
8564 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
8565
dc06243f
GB
85662015-06-24 Gary Benson <gbenson@redhat.com>
8567
8568 * common/buffer.c (stdint.h): Do not include.
8569 * common/print-utils.c (stdint.h): Likewise.
8570 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
8571 * compile/compile-c-types.c (gdb_assert.h): Likewise.
8572 * ft32-tdep.c (gdb_assert.h): Likewise.
8573 * guile/scm-utils.c (stdint.h): Likewise.
8574 * i386-linux-tdep.c (stdint.h): Likewise.
8575 * i386-tdep.c (stdint.h): Likewise.
8576 * nat/linux-btrace.c (stdint.h): Likewise.
8577 * nat/linux-btrace.h (stdint.h): Likewise.
8578 * nat/linux-ptrace.c (stdint.h): Likewise.
8579 * nat/mips-linux-watch.h (stdint.h): Likewise.
8580 * ppc-linux-nat.c (stdint.h): Likewise.
8581 * python/python-internal.h (stdint.h): Likewise.
8582 * stub-termcap.c (stdlib.h): Likewise.
8583 * target/target.h (stdint.h): Likewise.
8584 * xtensa-linux-nat.c (stdint.h): Likewise.
8585
0fc26caf
PP
85862015-06-23 Patrick Palka <patrick@parcs.ath.cx>
8587
8588 * top.c (init_history): Look at errno after calling strtol to
8589 properly map large GDBHISTSIZE values to infinity.
8590
a38fe4fe
DE
85912015-06-23 Doug Evans <dje@google.com>
8592
8593 * inferior.h (struct inferior_suspend_state): Delete, unused.
8594 All references deleted.
8595
7564fe45
MF
85962015-06-23 Mike Frysinger <vapier@gentoo.org>
8597
8598 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
8599 (microblaze_push_dummy_call): Likewise.
8600 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
8601 and set_gdbarch_push_dummy_call.
8602
0bdb2f78
YQ
86032015-06-23 Yao Qi <yao.qi@linaro.org>
8604
8605 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
8606 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
8607 (amd64_linux_store_inferior_registers): Likewise.
8608 * arm-linux-nat.c (fetch_fpregister): Likewise.
8609 (fetch_fpregs, store_fpregister): Likewise.
8610 (store_fpregister, store_fpregs): Likewise.
8611 (fetch_register, fetch_regs): Likewise.
8612 (store_register, store_regs): Likewise.
8613 (fetch_vfp_regs, store_vfp_regs): Likewise.
8614 (arm_linux_read_description): Check have_ptrace_getregset is
8615 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
8616 or TRIBOOL_FALSE.
8617 * i386-linux-nat.c (fetch_xstateregs): Check
8618 have_ptrace_getregset is not TRIBOOL_TRUE.
8619 (store_xstateregs): Likewise.
8620 * linux-nat.c (have_ptrace_getregset): Change its type to
8621 enum tribool.
8622 * linux-nat.h (tribool): New enum.
8623 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
8624 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
8625
18a94d75
DE
86262015-06-19 Doug Evans <dje@google.com>
8627
8628 * NEWS: Mention Sun's version of stabs is no longer supported.
8629 * elfread.c (free_elfinfo): Delete. All uses updated.
8630 (elfstab_offset_sections): Delete. All uses updated.
8631 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
8632 * psympriv.h (partial_symtab) <section_offsets>: Delete.
8633 All uses updated.
8634 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
8635 All callers updated.
8636
124e13d9
SM
86372015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8638
8639 * common/rsp-low.c (needs_escaping): New.
8640 (remote_escape_output): Add unit_size parameter. Refactor to
8641 support multi-byte addressable units. Rename parameters.
8642 * common/rsp-low.h (remote_escape_output): Add unit_size
8643 parameter and rename others. Update doc.
8644 * remote.c (align_for_efficient_write): New.
8645 (remote_write_bytes_aux): Add unit_size parameter and use it.
8646 Rename some variables. Update doc.
8647 (remote_xfer_partial): Get unit size and use it.
8648 (remote_read_bytes_1): Add unit_size parameter and use it.
8649 Rename some variables. Update doc.
8650 (remote_write_bytes): Same.
8651 (remote_xfer_live_readonly_partial): Same.
8652 (remote_read_bytes): Same.
8653 (remote_flash_write): Update call to remote_write_bytes_aux.
8654 (remote_write_qxfer): Update call to remote_escape_output.
8655 (remote_search_memory): Same.
8656 (remote_hostio_pwrite): Same.
8657
6ae88661
LM
86582015-06-17 Luis Machado <lgustavo@codesourcery.com>
8659
8660 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
8661 locations as inserted.
8662 Update and expand comment about permanent locations.
8663 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
8664 Move comment to add_location_to_breakpoint.
8665 (update_global_location_list): Don't error out if a permanent
8666 breakpoint is not marked inserted.
8667 Don't error out if a non-permanent breakpoint location is inserted on
8668 top of a permanent breakpoint.
8669
da4616f6
LM
86702015-06-17 Luis Machado <lgustavo@codesourcery.com>
8671
8672 * breakpoint.c (make_breakpoint_permanent): Remove unused
8673 function.
8674 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
8675
bc460514
PP
86762015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8677
8678 PR gdb/16999
8679 * NEWS: Mention new GDBHISTSIZE behavior.
8680 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
8681 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
8682
b58c513b
PP
86832015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8684
8685 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
8686 * top.c (init_history): Read from GDBHISTSIZE instead of
8687 HISTSIZE.
8688 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
8689
2093d2d3
PP
86902015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8691
8692 * top.c (gdb_safe_append_history): Do not call
8693 history_truncate_file if the history is not stifled.
8694
fc248485
AA
86952015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8696
8697 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
8698 * syscalls/s390x-linux.xml: Likewise.
8699
4da680ad
ME
87002015-06-16 Michael Eager <eager@eagercon.com>
8701
8702 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
8703
0a75489f
PP
87042015-06-16 Patrick Palka <patrick@parcs.ath.cx>
8705
8706 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
8707 target_terminal_ours_for_output() before calling
8708 tui_show_frame_info(), and restore the original terminal
8709 settings afterwards.
8710
95855ca8
MS
87112015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
8712
8713 * arm-linux-nat.c: Include nat/linux-ptrace.h.
8714
cfc32360
SM
87152015-06-15 Simon Marchi <simon.marchi@ericsson.com>
8716
8717 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
8718 memory unit size.
8719 (mi_cmd_data_write_memory_bytes): Same.
8720
cb6f16cf
SM
87212015-06-15 Simon Marchi <simon.marchi@ericsson.com>
8722
8723 * corefile.c (write_memory): Update doc.
8724 * gdbcore.h (write_memory): Same.
8725
31b7833d
JK
87262015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8727
8728 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
8729 (dump_mapping_p): Use it for parameter filterflags.
8730 (linux_find_memory_regions_full): Use it for variable filterflags.
8731
909c2cda
JK
87322015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8733 Jan Kratochvil <jan.kratochvil@redhat.com>
8734
8735 Merge multiple hex conversions.
8736 * monitor.c: Include rsp-low.h.
8737 (fromhex): Remove definition.
8738
03aef70f
JK
87392015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8740 Jan Kratochvil <jan.kratochvil@redhat.com>
8741
8742 Move utility functions to common/.
8743 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
8744 Move defs to common/common-utils.c.
8745 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
8746 (skip_to_space_const): Move decls to common/common-utils.h.
8747 * common/common-defs.h: Move include of common-types.h before
8748 common-utils.h.
8749 * common/common-utils.c: Include host-defs.h and ctype.h.
8750 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
8751 from utils.c.
8752 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
8753 cli/cli-utils.c.
8754 * common/common-utils.h (strtoulst): Move decl from utils.h.
8755 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
8756 Move from cli/cli-utils.h.
8757 * common/host-defs.h: Include limits.h.
8758 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
8759 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
8760 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
8761 common/common-utils.h.
8762 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
8763 (strtoulst): Move to common/common-utils.c.
8764 * utils.h (strtoulst): Moved decl to common/common-utils.h.
8765
d1168cc1
YQ
87662015-06-15 Yao Qi <yao.qi@linaro.org>
8767
8768 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
8769
c74f7d1c
JT
87702015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
8771
8772 * build-id.c: Don't include elf-bfd.h.
8773 (build_id_bfd_get): Use bfd_build_id.
8774 (build_id_verify): Ditto.
8775 * build-id.h: Ditto.
8776 (find_separate_debug_file_by_buildid): Ditto.
8777 * python/py-objfile.c: Don't include elf-bfd.h.
8778 (objfpy_get_build_id) Use bfd_build_id.
8779 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
8780 * coffread.c: Include build-id.h.
8781 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
8782
f20c58f5
JT
87832015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8784
8785 * windows-nat.c (do_windows_fetch_inferior_registers)
8786 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
8787 conditional with __CYGWIN__.
8788
51f0e40d
AB
87892015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
8790
8791 * completer.c: Add arch-utils.h include.
8792 (enum reg_completer_targets): New enum.
8793 (reg_or_group_completer_1): New function containing old
8794 reg_or_group_completer, add and use new parameter to control what
8795 is completed on. Use get_current_arch rather than architecture of
8796 currently selected frame.
8797 (reg_or_group_completer): Call new reg_or_group_completer_1.
8798 (reggroup_completer): Call new reg_or_group_completer_1.
8799 * completer.h (reggroup_completer): Add declaration.
8800 * tui/tui-regs.c: Add 'completer.h' include.
8801 (tui_reg_next_command): Renamed to...
8802 (tui_reg_next): ...this. Adjust parameters and return rather than
8803 display new group.
8804 (tui_reg_prev_command): Renamed to...
8805 (tui_reg_prev): ...this. Adjust parameters and return rather than
8806 display new group.
8807 (tui_reg_float_command): Delete.
8808 (tui_reg_general_command): Delete.
8809 (tui_reg_system_command): Delete.
8810 (tui_reg_command): Rewrite to perform switching of register group.
8811 Add header comment.
8812 (tuireglist): Remove.
8813 (tui_reggroup_completer): New function.
8814 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
8815 creation of 'tui reg' command.
8816 * NEWS: Add comment about 'tui reg' changes.
8817
d309493c
SM
88182015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8819
8820 * target.c (target_read): Consider addressable unit size when
8821 reading from a memory object.
8822 (read_memory_robust): Same.
8823 (read_whatever_is_readable): Same.
8824 (target_write_with_progress): Consider addressable unit size
8825 when writing to a memory object.
8826 * target.h (target_read): Update documentation.
8827 (target_write): Add documentation.
8828
3374165f
SM
88292015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8830
8831 * arch-utils.h (default_addressable_memory_unit_size): New.
8832 * arch-utils.c (default_addressable_memory_unit_size): New.
8833 * gdbarch.sh (addressable_memory_unit_size): New.
8834 * gdbarch.h: Re-generate.
8835 * gdbarch.c: Re-generate.
8836
279a6fed
SM
88372015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8838
8839 * target.c (target_read): Rename variables and use
8840 TARGET_XFER_E_IO.
8841 (target_read_with_progress): Same.
8842 (read_memory_robust): Constify parameters and rename
8843 variables.
8844 (read_whatever_is_readable): Constify parameters,
8845 rename variables, adjust formatting.
8846 * target.h (read_memory_robust): Constify parameters.
8847
1e5338b6 88482015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
8849
8850 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
8851 synthetic (non-AltiVec) vector types.
8852 (ppc64_sysv_abi_return_value): Likewise.
8853
98aa42ee
AT
88542015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
8855
8856 PR breakpoints/16465
8857 * breakpoint.c (create_breakpoint): Save extra_string for
8858 pending breakpoints.
8859
966f0aef
WT
88602015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8861
8862 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
8863 and bt_mask to CORE_ADDR.
8864
6449ed0d
GB
88652015-06-11 Gary Benson <gbenson@redhat.com>
8866
8867 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
8868 (mnsh_recv_message): Likewise.
8869
34f8ac9f
WT
88702015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
8871
8872 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
8873 long long int and plongest instead of %ll.
8874
198c808c
GB
88752015-06-11 Gary Benson <gbenson@redhat.com>
8876
8877 * nat/linux-namespaces.c (gdb_wait.h): New include.
8878 (sys/wait.h): Do not include.
8879
e815d2d2
SM
88802015-06-10 Simon Marchi <simon.marchi@ericsson.com>
8881
8882 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
8883 end_sequence is true.
8884
8847cac2
JK
88852015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8886
8887 Code cleanup.
8888 * solib-target.c (library_list_start_list): Use explicit NULL
8889 comparison.
8890
24c05f46
JK
88912015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8892
8893 * solib-target.c (library_list_start_list): Do not dereference
8894 variable version in its initialization. Make the VERSION check handle
8895 NULL.
8896 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
8897
51aad7cc
GB
88982015-06-10 Gary Benson <gbenson@redhat.com>
8899
8900 * NEWS: Announce support for direct access of executable and
8901 shared library files when attaching to inferiors in containers
8902 on GNU/Linux systems.
8903
15a201c8
GB
89042015-06-10 Gary Benson <gbenson@redhat.com>
8905
8906 * remote.c (struct remote_state) <fs_pid>: New field.
8907 (new_remote_state): Initialize the above.
8908 (PACKET_vFile_setfs): New enum value.
8909 (remote_hostio_set_filesystem): New function.
8910 (remote_hostio_open): Call the above.
8911 (remote_hostio_unlink): Likewise.
8912 (remote_hostio_readlink): Likewise.
8913 (_initialize_remote): Register new "set/show remote
8914 hostio-setfs-packet" command.
8915 * NEWS: Announce new vFile:setfs packet.
8916
7a6a1731
GB
89172015-06-10 Gary Benson <gbenson@redhat.com>
8918
8919 * linux-nat.c (nat/linux-namespaces.h): New include.
8920 (fileio.h): Likewise.
8921 (linux_nat_filesystem_is_local): New function.
8922 (linux_nat_fileio_pid_of): Likewise.
8923 (linux_nat_fileio_open): Likewise.
8924 (linux_nat_fileio_readlink): Likewise.
8925 (linux_nat_fileio_unlink): Likewise.
8926 (linux_nat_add_target): Initialize to_filesystem_is_local,
8927 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
8928 (_initialize_linux_nat): New "set/show debug linux-namespaces"
8929 commands.
8930 * NEWS: Mention new "set/show debug linux-namespaces" commands.
8931
07c138c8
GB
89322015-06-10 Gary Benson <gbenson@redhat.com>
8933
8934 * target.h (struct inferior): New forward declaration.
8935 (struct target_ops) <to_filesystem_is_local>: Update comment.
8936 (struct target_ops) <to_fileio_open>: New argument inf.
8937 Update comment. All implementations updated.
8938 (struct target_ops) <to_fileio_unlink>: Likewise.
8939 (struct target_ops) <to_fileio_readlink>: Likewise.
8940 (target_filesystem_is_local): Update comment.
8941 (target_fileio_open): New argument inf. Update comment.
8942 (target_fileio_unlink): Likewise.
8943 (target_fileio_readlink): Likewise.
8944 (target_fileio_read_alloc): Likewise.
8945 (target_fileio_read_stralloc): Likewise.
8946 * target.c (target_fileio_open): New argument inf.
8947 Pass inf to implementation. Update debug printing.
8948 (target_fileio_unlink): Likewise.
8949 (target_fileio_readlink): Likewise.
8950 (target_fileio_read_alloc_1): New argument inf. Pass inf
8951 to target_fileio_open.
8952 (target_fileio_read_alloc): New argument inf. Pass inf to
8953 target_fileio_read_alloc_1.
8954 (target_fileio_read_stralloc): Likewise.
8955 * gdb_bfd.c (inferior.h): New include.
8956 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
8957 argument with new argument "inferior". Pass inferior to
8958 target_fileio_open.
8959 (gdb_bfd_open): Supply inferior argument to
8960 gdb_bfd_iovec_fileio_open.
8961 * linux-tdep.c (linux_info_proc): Supply inf argument to
8962 relevant target_fileio calls.
8963 (linux_find_memory_regions_full): Likewise.
8964 (linux_fill_prpsinfo): Likewise.
8965 * remote.c (remote_filesystem_is_local): Supply inf
8966 argument to remote_hostio_open.
8967 (remote_file_put): Likewise.
8968 (remote_file_get): Likewise.
8969 (remote_file_delete): Supply inf argument to
8970 remote_hostio_unlink.
8971
12e2a5fd
GB
89722015-06-10 Gary Benson <gbenson@redhat.com>
8973
8974 * inf-child.c (inf_child_fileio_open): Replace comment.
8975 (inf_child_fileio_pwrite): Likewise.
8976 (inf_child_fileio_pread): Likewise.
8977 (inf_child_fileio_fstat): Insert blank line before comment.
8978 (inf_child_fileio_close): Replace comment.
8979 (inf_child_fileio_unlink): Likewise.
8980 (inf_child_fileio_readlink): Likewise.
8981 * remote.c (remote_hostio_open): Likewise.
8982 (remote_hostio_pread): Likewise.
8983 (remote_hostio_pwrite): Likewise.
8984 (remote_hostio_close): Likewise.
8985 (remote_hostio_unlink): Likewise.
8986 (remote_hostio_readlink): Likewise.
8987 (remote_hostio_fstat): Likewise.
8988 (remote_filesystem_is_local): Likewise.
8989 * target.c (target_fileio_open): Likewise.
8990 (target_fileio_pwrite): Likewise.
8991 (target_fileio_pread): Likewise.
8992 (target_fileio_fstat): Insert blank line before comment.
8993 (target_fileio_close): Replace comment.
8994 (target_fileio_unlink): Likewise.
8995 (target_fileio_readlink): Likewise.
8996 (target_fileio_read_alloc): Likewise.
8997 (target_fileio_read_stralloc): Likewise.
8998
9bc3a976
GB
89992015-06-10 Gary Benson <gbenson@redhat.com>
9000
9001 * linux-thread-db.c (nat/linux-namespaces.h): New include.
9002 (check_pid_namespace_match): Use linux_ns_same rather than
9003 linux_proc_pid_get_ns to spot PID namespace mismatches.
9004 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
9005 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
9006
4b8b5e72
GB
90072015-06-10 Gary Benson <gbenson@redhat.com>
9008
9009 * configure.ac (AC_CHECK_FUNCS): Add setns.
9010 * config.in: Regenerate.
9011 * configure: Likewise.
9012 * nat/linux-namespaces.h: New file.
9013 * nat/linux-namespaces.c: Likewise.
9014 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
9015 (linux-namespaces.o): New rule.
9016 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
9017 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
9018 * config/arm/linux.mh (NATDEPFILES): Likewise.
9019 * config/i386/linux.mh (NATDEPFILES): Likewise.
9020 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9021 * config/ia64/linux.mh (NATDEPFILES): Likewise.
9022 * config/m32r/linux.mh (NATDEPFILES): Likewise.
9023 * config/m68k/linux.mh (NATDEPFILES): Likewise.
9024 * config/mips/linux.mh (NATDEPFILES): Likewise.
9025 * config/pa/linux.mh (NATDEPFILES): Likewise.
9026 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
9027 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
9028 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
9029 * config/s390/linux.mh (NATDEPFILES): Likewise.
9030 * config/sparc/linux.mh (NATDEPFILES): Likewise.
9031 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
9032 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
9033 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
9034
ca095836
GB
90352015-06-10 Gary Benson <gbenson@redhat.com>
9036
9037 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
9038 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
9039 (make_cleanup_close): Likewise.
9040 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
9041 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
9042 (make_cleanup_close): Likewise.
9043
5d9c55d3
JT
90442015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
9045
9046 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
9047 from SuspendThread().
9048
040ea00b
JT
90492015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
9050
9051 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
9052 from OutputDebugString.
9053
7d73c23c
WT
90542015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
9055 Mircea Gherzan <mircea.gherzan@intel.com>
9056
9057 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
9058 MPX_BT_MASK_32): New macros.
9059 (i386_mpx_set_bounds): New function that implements
9060 the command "set-mpx-bound".
9061 (i386_mpx_enabled): Helper function to test MPX availability.
9062 (i386_mpx_bd_base): Helper function to calculate the base directory
9063 address.
9064 (i386_mpx_get_bt_entry): Helper function to access a bound
9065 table entry.
9066 (i386_mpx_print_bounds): Effectively display bound information.
9067 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
9068 "show mpx".
9069 (_initialize_i386_tdep):
9070 Add "bound" to the commands "show mpx" and "set mpx" commands.
9071 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
9072 and "show mpx" commands.
9073 * NEWS: List new commands for MPX support.
9074
3ac2e371
GB
90752015-06-09 Gary Benson <gbenson@redhat.com>
9076
9077 * common/fileio.h (fileio_to_host_mode): New declaration.
9078 * common/fileio.c (fileio_to_host_mode): New Function.
9079 * inf-child.c (inf_child_fileio_open): Process mode argument
9080 with fileio_to_host_mode.
9081
ecef18c5
GB
90822015-06-09 Gary Benson <gbenson@redhat.com>
9083
9084 * common/fileio.c (fileio_mode_pack): Fix preprocessor
9085 conditional.
9086
e3dd7556
GB
90872015-06-05 Gary Benson <gbenson@redhat.com>
9088
9089 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
9090 * remote.c (remote_filesystem_is_local): ...here.
9091
5b74bf7d
YQ
90922015-06-04 Yao Qi <yao.qi@linaro.org>
9093
9094 * gdbarch.c: Regenerate it.
9095
7f361056
JK
90962015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9097
9098 * arch-utils.c (default_infcall_munmap): New.
9099 * arch-utils.h (default_infcall_munmap): New declaration.
9100 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
9101 (munmap_list_free, munmap_listp_free_cleanup): New.
9102 (struct setup_sections_data): Add field munmap_list_headp.
9103 (setup_sections): Call munmap_list_add.
9104 (compile_object_load): New variable munmap_list_head, initialize
9105 setup_sections_data.munmap_list_headp, return munmap_list_head.
9106 * compile/compile-object-load.h (struct munmap_list): New declaration.
9107 (struct compile_module): Add field munmap_list_head.
9108 (munmap_list_free): New declaration.
9109 * compile/compile-object-run.c (struct do_module_cleanup): Add field
9110 munmap_list_head.
9111 (do_module_cleanup): Call munmap_list_free.
9112 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
9113 * gdbarch.c: Regenerate.
9114 * gdbarch.h: Regenerate.
9115 * gdbarch.sh (infcall_munmap): New.
9116 * linux-tdep.c (linux_infcall_munmap): New.
9117 (linux_init_abi): Install it.
9118
3b462ec2
SM
91192015-06-02 Simon Marchi <simon.marchi@ericsson.com>
9120
9121 PR gdb/15564
9122 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
9123
8d683210
YQ
91242015-06-02 Yao Qi <yao.qi@linaro.org>
9125
9126 * i386-linux-nat.c: Include linux-nat.h.
9127
e0619de6
JK
91282015-06-01 Andreas Schwab <schwab@linux-m68k.org>
9129 Jan Kratochvil <jan.kratochvil@redhat.com>
9130
9131 PR symtab/18392
9132 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
9133 assertion.
9134 * dwarf2loc.c (chain_candidate): Likewise.
9135
bd16da51
YQ
91362015-06-01 Yao Qi <yao.qi@linaro.org>
9137
9138 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
9139 (store_vfp_regs): Use PTRACE_SETREGSET.
9140
df9d7ec9
YQ
91412015-06-01 Yao Qi <yao.qi@linaro.org>
9142
9143 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
9144 (fetch_fpregs): Likewise.
9145 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
9146 (store_fpregs): Likewise.
9147
10766686
YQ
91482015-06-01 Yao Qi <yao.qi@linaro.org>
9149
9150 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
9151 (fetch_regs): Likewise.
9152 (store_regs): Use PTRACE_SETREGSET.
9153 (store_register): Likewise.
9154
7efe48d1
YQ
91552015-06-01 Yao Qi <yao.qi@linaro.org>
9156
9157 * arm-linux-nat.c (arm_linux_read_description): Check whether
9158 kernel supports PTRACE_GETREGSET.
9159
433bbbf8
YQ
91602015-06-01 Yao Qi <yao.qi@linaro.org>
9161
9162 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
9163 * linux-nat.c: ... here.
9164 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
9165 to ...
9166 * linux-nat.h: ... here.
9167
ca9b78ce
YQ
91682015-06-01 Yao Qi <yao.qi@linaro.org>
9169
9170 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
9171 * i386-linux-nat.c: Likewise.
9172 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
9173 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
9174 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9175 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
9176 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9177
99cee7b7
EZ
91782015-05-30 Eli Zaretskii <eliz@gnu.org>
9179
9180 * go32-nat.c (go32_xfer_memory): Fix the return value to be
9181 compatible to what read_child and write_child return. This
9182 unbreaks that DJGPP build of GDB which was broken since v7.7.
9183
2147f5bd
MG
91842015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
9185
9186 * MAINTAINERS (Write After Approval): Add Martin Galvan.
9187
c8f6c93c
RM
91882015-05-29 Roland McGrath <mcgrathr@google.com>
9189
9190 PR gdb/18464
9191 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
9192 rather than internal_error for an unrecognized value.
9193
8c6a948d
MF
91942015-05-29 Max Filippov <jcmvbkbc@gmail.com>
9195
9196 * xtensa-tdep.c (xtensa_pseudo_register_read)
9197 (xtensa_pseudo_register_write): Don't alias last pseudo register
9198 to a1.
9199
8dd06f7a
DB
92002015-05-28 Don Breazeal <donb@codesourcery.com>
9201
9202 * infrun.c (follow_fork_inferior): Ensure the use of
9203 process-style ptids (pid,0,0) in verbose/debug "Detaching"
9204 messages.
9205
a051152b
DE
92062015-05-28 Doug Evans <dje@google.com>
9207
9208 * dwarf2read.c (record_line_ftype): Remove, duplicate.
9209
a56cc1ce
YQ
92102015-05-28 Yao Qi <yao.qi@linaro.org>
9211
9212 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
9213 (arm_linux_fetch_inferior_registers): Use
9214 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
9215 (arm_linux_store_inferior_registers): Likewise.
9216 (arm_linux_read_description): Don't set
9217 arm_linux_has_wmmx_registers.
9218 * arm-tdep.c (arm_gdbarch_init): Set
9219 tdep->have_wmmx_registers according target descriptions.
9220 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
9221 field.
9222
330c6ca9
YQ
92232015-05-28 Yao Qi <yao.qi@linaro.org>
9224
9225 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
9226 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
9227 instead of arm_linux_vfp_register_count.
9228 (store_vfp_regs): Likewise.
9229 (arm_linux_fetch_inferior_registers): Likewise.
9230 (arm_linux_store_inferior_registers): Likewise.
9231 (arm_linux_read_description): Don't set
9232 arm_linux_vfp_register_count.
9233 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
9234 Adjust.
9235 * arm-tdep.c (arm_gdbarch_init): Add assert on
9236 vfp_register_count.
9237 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
9238 field to vfp_register_count. All users updated.
9239
d403db27
KH
92402015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
9241
9242 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
9243 ELFOSABI_GNU binaries.
9244
d9b3de22
DE
92452015-05-27 Doug Evans <dje@google.com>
9246
9247 * dwarf2read.c (lnp_state_machine): New typedef.
9248 (lnp_reader_state): New typedef.
9249 (dwarf_record_line_1): Renamed from dwarf_record_line.
9250 All callers updated.
9251 (dwarf_record_line): New function.
9252 (init_lnp_state_machine): New function.
9253 (check_line_address): Replace p_record_line parameter with state.
9254 All callers updated.
9255 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
9256 Update to record state in lnp_state_machine.
9257
924c2928
DE
92582015-05-27 Doug Evans <dje@google.com>
9259
9260 * dwarf2read.c (record_line_ftype): New typedef.
9261 (check_line_address): New function.
9262 (dwarf_decode_lines_1): Call it.
9263
27e0867f
DE
92642015-05-27 Doug Evans <dje@google.com>
9265
9266 * NEWS: Mention "set debug dwarf-line".
9267 * dwarf2read.c (dwarf_line_debug): New static global.
9268 (add_include_dir): Add debug dwarf-line support.
9269 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
9270 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
9271
4dcabcc2
DE
92722015-05-27 Doug Evans <dje@google.com>
9273
9274 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
9275 All callers updated.
9276 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
9277 * cp-support.h (cp_lookup_nested_symbol): Update.
9278
b2e2f908
DE
92792015-05-27 Doug Evans <dje@google.com>
9280
9281 PR symtab/18258
9282 * block.c (block_find_symbol): New function.
9283 (block_find_non_opaque_type): Ditto.
9284 (block_find_non_opaque_type_preferred): Ditto.
9285 * block.h (block_symbol_matcher_ftype): New typedef.
9286 (block_find_symbol): Declare.
9287 (block_find_non_opaque_type): Ditto.
9288 (block_find_non_opaque_type_preferred): Ditto.
9289 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
9290 * psymtab.c (psym_lookup_symbol): Ditto.
9291 * symtab.c (basic_lookup_transparent_type_1): New function.
9292 (basic_lookup_transparent_type): Call it.
9293
f62fce35
YQ
92942015-05-27 Yao Qi <yao.qi@linaro.org>
9295
9296 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
9297 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
9298
5d98d3cd
YQ
92992015-05-27 Yao Qi <yao.qi@linaro.org>
9300
9301 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
9302 before operator &&.
9303 (aarch64_record_load_store): Likewise.
9304
82c7be31
DE
93052015-05-26 Doug Evans <dje@google.com>
9306
9307 PR c++/18141, c++/18417.
9308 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
9309 a typedef.
9310
b4f54984
DE
93112015-05-26 Doug Evans <dje@google.com>
9312
9313 * NEWS: Add entries for command renamings.
9314 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
9315 All uses updated.
9316 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
9317 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
9318 All uses updated.
9319 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
9320 All callers updated. Fix spelling of DWARF in help text.
9321 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
9322 All uses updated.
9323 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
9324 All uses updated.
9325 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
9326 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
9327 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
9328 All uses updated.
9329 (show_dwarf_always_disassemble): Renamed from
9330 show_dwarf2_always_disassemble. All callers updated.
9331 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
9332 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
9333 "set/show dwarf max-cache-age". Rename
9334 "set/show dwarf2 always-disassemble" to
9335 "set/show dwarf always-disassemble". Rename
9336 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
9337 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
9338
4ea6efe9
DE
93392015-05-26 Doug Evans <dje@google.com>
9340
9341 PR python/18438
9342 * python/py-lazy-string.c (stpy_convert_to_value): Use
9343 gdbpy_gdb_memory_error not PyExc_MemoryError.
9344 (gdbpy_create_lazy_string_object): Ditto.
9345
b93fd21d
AB
93462015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
9347
9348 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
9349
55b40027
AB
93502015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
9351
9352 * tui/tui-regs.c (tui_reg_prev_command): New function.
9353 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
9354 * reggroups.c (reggroup_prev): New function.
9355 * reggroups.h (reggroup_prev): Add declaration. Update comment.
9356
99afc88b
OJ
93572015-05-26 Omair Javaid <omair.javaid@linaro.org>
9358 Yao Qi <yao.qi@linaro.org>
9359
9360 * aarch64-linux-tdep.c: Include linux-record.h and
9361 record-full.h.
9362 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
9363 (aarch64_syscall): New enum.
9364 (aarch64_canonicalize_syscall): New function.
9365 (aarch64_all_but_pc_registers_record): New function.
9366 (aarch64_linux_syscall_record): New function.
9367 (aarch64_linux_init_abi): Install AArch64 process record
9368 handler. Update to handle syscall recording.
9369 * aarch64-tdep.c: Include record.h and record-full.h.
9370 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
9371 (struct aarch64_mem_r): Define.
9372 (aarch64_record_result): New enum.
9373 (struct insn_decode_record): Define.
9374 (insn_decode_record): New typedef.
9375 (aarch64_record_data_proc_reg): New function.
9376 (aarch64_record_data_proc_imm): New function.
9377 (aarch64_record_branch_except_sys): New function.
9378 (aarch64_record_load_store): New function.
9379 (aarch64_record_data_proc_simd_fp): New function.
9380 (aarch64_record_asimd_load_store): New function.
9381 (aarch64_record_decode_insn_handler): New function.
9382 (deallocate_reg_mem): New function.
9383 (aarch64_process_record): New function.
9384 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
9385 New field.
9386 (aarch64_process_record): New extern declaration.
9387 * configure.tgt: Add linux-record.o to gdb_target_obs.
9388 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
9389
c16a3f52
OJ
93902015-05-26 Omair Javaid <omair.javaid@linaro.org>
9391
9392 * NEWS: Add a note on process record-replay support on aarch64*-linux*
9393 targets.
9394
c9cf6e20
MG
93952015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
9396
9397 * amd64-tdep.c: Replace in_function_epilogue_p with
9398 stack_frame_destroyed_p throughout.
9399 * arch-utils.c: Ditto.
9400 * arch-utils.h: Ditto.
9401 * arm-tdep.c: Ditto.
9402 * breakpoint.c: Ditto.
9403 * gdbarch.sh: Ditto.
9404 * hppa-tdep.c: Ditto.
9405 * i386-tdep.c: Ditto.
9406 * mips-tdep.c: Ditto.
9407 * nios2-tdep.c: Ditto.
9408 * rs6000-tdep.c: Ditto.
9409 * s390-linux-tdep.c: Ditto.
9410 * score-tdep.c: Ditto.
9411 * sh-tdep.c: Ditto.
9412 * sparc-tdep.c: Ditto.
9413 * sparc-tdep.h: Ditto.
9414 * sparc64-tdep.c: Ditto.
9415 * spu-tdep.c: Ditto.
9416 * tic6x-tdep.c: Ditto.
9417 * tilegx-tdep.c: Ditto.
9418 * xstormy16-tdep.c: Ditto.
9419 * gdbarch.c, gdbarch.h: Re-generated.
9420
a4ea0946
AB
94212015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9422
9423 * NEWS: Mention 'tui enable' and 'tui disable'.
9424 * tui/tui.c (tui_enable_command): New function.
9425 (tui_disable_command): New function.
9426 (_initialize_tui): New function.
9427
b75c69bb
AB
94282015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9429
9430 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
9431
c1b009ee
AB
94322015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9433
9434 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
9435 buf_ptr is freed.
9436
880d1e40
AB
94372015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9438
9439 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
9440 into ...
9441 (tui_set_layout_for_display_command): ...here, before calling
9442 tui_set_layout. Only set the layout if gdb has not already
9443 entered the TUI_FAILURE state.
9444
a0145030
AB
94452015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9446
9447 * tui/tui-layout.c (layout_completer): New function.
9448 (_initialize_tui_layout): Set completer on layout command.
9449
7bd0be3a
AB
94502015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9451
9452 * tui/tui-layout.c (tui_set_layout): Remove
9453 tui_register_display_type parameter. Remove all checking of this
9454 parameter, and reindent function. Update header comment.
9455 (tui_set_layout_for_display_command): Rename to...
9456 (tui_set_layout_by_name): ...this, and don't check for different
9457 register class types, don't pass a tui_register_display_type to
9458 tui_set_layout. Update header comment.
9459 (layout_names): Remove register set specific names.
9460 * tui/tui-layout.h (tui_set_layout): Remove
9461 tui_register_display_type parameter.
9462 * tui/tui.c (tui_rl_change_windows): Don't pass a
9463 tui_register_display_type to tui_set_layout.
9464 (tui_rl_delete_other_windows): Likewise.
9465 (tui_enable): Likewise.
9466 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
9467 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
9468 (TUI_GENERAL_REGS_NAME): Remove.
9469 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
9470 (TUI_SPECIAL_REGS_NAME): Remove.
9471 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
9472 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
9473 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
9474 (enum tui_register_display_type): Remove.
9475 (struct tui_layout_def): Remove regs_display_type and
9476 float_regs_display_type fields.
9477 (struct tui_data_info): Remove regs_display_type field.
9478 (tui_layout_command): Use new name for
9479 tui_set_layout_for_display_command.
9480 * tui/tui-data.c (layout_def): Don't initialise removed fields.
9481 (tui_clear_win_detail): Don't initialise removed fields of
9482 win_info.
9483 * tui/tui-regs.c (tui_show_registers): Use new name for
9484 tui_set_layout_for_display_command.
9485 * tui/tui.h (tui_set_layout_for_display_command): Rename
9486 declaration to...
9487 (tui_set_layout_by_name): ...this.
9488 * printcmd.c (display_command): Remove tui related layout call,
9489 and reindent.
9490
0b6e5e10
JB
94912015-05-20 Joel Brobecker <brobecker@adacore.com>
9492
9493 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
9494 (handle_inferior_event): New function.
9495
1da0522e
JB
94962015-05-20 Joel Brobecker <brobecker@adacore.com>
9497
9498 * ada-lang.c (to_fixed_array_type): Rename local variable
9499 typename into type_name.
9500
5fe75eec
JK
95012015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9502
9503 Fix ASAN crash for gdb.compile/compile.exp.
9504 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
9505
a4063588
JK
95062015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9507
9508 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
9509 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
9510 * compile/compile-object-load.c (setup_sections, compile_object_load):
9511 Likewise.
9512 * compile/compile.c (compile_to_object): Likewise.
9513
37442ce1
DE
95142015-05-16 Doug Evans <xdje42@gmail.com>
9515
9516 * NEWS: Mention support for unbuffered Guile memory ports.
9517 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
9518 (ioscm_lseek_address): Improve overflow calculation.
9519 (gdbscm_memory_port_fill_input): Add assert.
9520 (gdbscm_memory_port_write): Handle unbuffered ports.
9521 Handle large writes identical to Guile's fport_write.
9522 (gdbscm_memory_port_seek): Fix seeking past end check.
9523 (gdbscm_memory_port_close): Handle closing unbuffered port.
9524 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
9525 (ioscm_init_memory_port): Handle unbuffered ports.
9526 (ioscm_reinit_memory_port): Ditto.
9527 (ioscm_init_memory_port): Update size calculation.
9528 (gdbscm_open_memory): Support zero sized ports.
9529
d976bace
JK
95302015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9531
9532 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
9533 variable compiler warnings.
9534
4d18dfad
JK
95352015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9536
9537 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
9538
36de76f9
JK
95392015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9540 Phil Muldoon <pmuldoon@redhat.com>
9541
9542 * NEWS (Changes since GDB 7.9): Add compile print.
9543 * compile/compile-c-support.c (add_code_header, add_code_footer)
9544 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
9545 COMPILE_I_PRINT_VALUE_SCOPE.
9546 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
9547 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
9548 New.
9549 * compile/compile-object-load.c: Include block.h.
9550 (get_out_value_type): New function.
9551 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9552 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
9553 OUT_VALUE_TYPE.
9554 * compile/compile-object-load.h (struct compile_module): Add fields
9555 out_value_addr and out_value_type.
9556 * compile/compile-object-run.c: Include valprint.h and compile.h.
9557 (struct do_module_cleanup): Add fields out_value_addr and
9558 out_value_type.
9559 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9560 COMPILE_I_PRINT_VALUE_SCOPE.
9561 (compile_object_run): Propagate out_value_addr and out_value_type.
9562 Pass OUT_VALUE_ADDR.
9563 * compile/compile.c: Include valprint.h.
9564 (compile_print_value, compile_print_command): New functions.
9565 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
9566 (_initialize_compile): Update compile code help text. Install
9567 compile_print_command.
9568 * compile/compile.h (compile_print_value): New prototype.
9569 * defs.h (enum compile_i_scope_types): Add
9570 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
9571
83d3415e
JK
95722015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9573
9574 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
9575 Rely on its parameter count.
9576 (compile_object_load): Replace lookup_minimal_symbol_text by
9577 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
9578 return value.
9579 * compile/compile-object-load.h (struct compile_module): Replace
9580 func_addr by func_sym.
9581 * compile/compile-object-run.c: Include block.h.
9582 (compile_object_run): Reset module variable after it is freed. Use
9583 FUNC_SYM instead of FUNC_ADDR. Rely on it.
9584
3a9558c4
JK
95852015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9586
9587 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
9588 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
9589 (c_compute_program): Call generate_register_struct after typedefs.
9590 * compile/compile-loc2c.c (push, pushf_register_address)
9591 (pushf_register): Cast to GCC_UINTPTR.
9592 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
9593 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
9594 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
9595 * compile/compile.c (_initialize_compile): Enable warnings for
9596 COMPILE_ARGS.
9597
5c65b58a
JK
95982015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9599
9600 * cli/cli-script.c (execute_control_command): Update
9601 eval_compile_command caller.
9602 * compile/compile-object-load.c (compile_object_load): Add parameters
9603 scope and scope_data. Set them.
9604 * compile/compile-object-load.h (struct compile_module): Add fields
9605 scope and scope_data.
9606 (compile_object_load): Add parameters scope and scope_data.
9607 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
9608 scope and scope_data.
9609 (compile_object_run): Propagate the fields scope and scope_data.
9610 * compile/compile.c (compile_file_command, compile_code_command):
9611 Update eval_compile_command callers.
9612 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
9613 * compile/compile.h (eval_compile_command): Add parameter scope_data.
9614 * defs.h (struct command_line): Add field scope_data.
9615
1c88ceb1
JK
96162015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9617
9618 * printcmd.c (struct format_data): Move it to valprint.h.
9619 (print_command_parse_format, print_value): New functions from ...
9620 (print_command_1): ... here. Call them.
9621 * valprint.h (struct format_data): Move it here from printcmd.c.
9622 (print_command_parse_format, print_value): New declarations.
9623
0b738f27
JK
96242015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9625
9626 * compile/compile-object-load.c (compile_object_load): Add
9627 COMPILE_DEBUG message.
9628
aa715135
JG
96292015-05-15 Jerome Guitton <guitton@adacore.com>
9630
9631 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
9632 index to get element instead of enum value.
9633 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
9634 of index to compute length, but enum values to compute bounds.
9635 (ada_array_length): Use enum position of index instead of enum value.
9636 (pos_atr): Move position computation to...
9637 (ada_evaluate_subexp): Use enum values to compute bounds.
9638 * gdbtypes.c (discrete_position): ...this new function.
9639 * gdbtypes.h (discrete_position): New function declaration.
9640 * valprint.c (val_print_array_elements): Call discrete_position
9641 to handle array indexed by non-contiguous enumeration types.
9642
931e5bc3
JG
96432015-05-15 Jerome Guitton <guitton@adacore.com>
9644
9645 * ada-lang.c (find_parallel_type_by_descriptive_type):
9646 Go through typedefs during lookup.
9647 (to_fixed_array_type): Add support for non-bit packed arrays
9648 as variable-length fields.
9649
4e63d0ac
PA
96502015-05-15 Pedro Alves <palves@redhat.com>
9651 Simon Marchi <simon.marchi@ericsson.com>
9652
9653 * event-loop.c (gdb_notifier) <next_file_handler,
9654 next_poll_fds_index>: New fields.
9655 (get_next_file_handler_to_handle_and_advance): New function.
9656 (delete_file_handler): If deleting the next file handler to
9657 handle, advance to the next file handler.
9658 (gdb_wait_for_event): Bail early if no event fired. Poll file
9659 handlers in round-robin fashion.
9660
52e48b36
PA
96612015-05-15 Pedro Alves <palves@redhat.com>
9662
9663 * linux-tdep.c (linux_find_memory_regions_full): Rename local
9664 'private' to 'priv'.
9665
2465e12e
PA
96662015-05-15 Pedro Alves <palves@redhat.com>
9667
9668 * nat/linux-nat.h: Include "target/waitstatus.h".
9669
13fa0398
YZ
96702015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
9671
9672 * python/py-unwind.c (struct reg_info): Move out of ...
9673 (struct cached_frame_info): ... this scope.
9674 (pending_frame_object_type, unwind_info_object_type): Make extern.
9675
9cd4d857
JB
96762015-05-15 Joel Brobecker <brobecker@adacore.com>
9677
9678 * ada-lang.c (ada_value_primitive_packed_val): Make sure
9679 accumSize is never negative.
9680
e3555239
PP
96812015-05-14 Patrick Palka <patrick@parcs.ath.cx>
9682
9683 * tui/tui-command.c: Remove include of <ctype.h>.
9684 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
9685
08a76f8a
MG
96862015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
9687
9688 * dwarf2read.c (die_needs_namespace): Return 1 for
9689 DW_TAG_inlined_subroutine.
9690
bd49952b
JK
96912015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9692
9693 * regcache.c (regcache_cpy_no_passthrough): New declaration.
9694 (regcache_cpy_no_passthrough): Make it static, add function comment.
9695 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
9696 (regcache_cpy_no_passthrough): Remove declaration.
9697
46c03469
JK
96982015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9699
9700 * gdbthread.h (struct thread_control_state): Update comment for
9701 proceed_to_finish.
9702 * infcall.c (run_inferior_call): Update comment about
9703 proceed_to_finish.
9704 * infcmd.c (get_return_value): Update comment about stop_registers.
9705 (finish_forward): Update comment about proceed_to_finish.
9706 * infrun.c (stop_registers): Remove.
9707 (clear_proceed_status, normal_stop): Remove stop_registers handling.
9708 * infrun.h (stop_registers): Remove.
9709
8a6c4031
JK
97102015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9711
9712 * infcall.c (struct dummy_frame_context_saver)
9713 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
9714 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9715 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9716 New.
9717 (call_function_by_hand_dummy): Move discard_cleanups of
9718 inf_status_cleanup before dummy_frame_push. Call
9719 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
9720 Use dummy_frame_context_saver_get_regs instead of stop_registers.
9721 * infcall.h (struct dummy_frame_context_saver)
9722 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9723 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9724 New declarations.
9725 * infcmd.c: Include infcall.h.
9726 (get_return_value): Add parameter ctx_saver, use it instead of
9727 stop_registers.
9728 (print_return_value): Add parameter ctx_saver, pass it.
9729 (struct finish_command_continuation_args): Add field ctx_saver.
9730 (finish_command_continuation): Update print_return_value caller.
9731 (finish_command_continuation_free_arg): Free also ctx_saver.
9732 (finish_forward): Call dummy_frame_context_saver_setup.
9733 * inferior.h (struct dummy_frame_context_saver): New declaration.
9734 (get_return_value): Add parameter ctx_saver.
9735 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
9736 get_return_value caller.
9737
10989690
JK
97382015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9739
9740 * dummy-frame.c (struct dummy_frame_dtor_list): New.
9741 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
9742 (remove_dummy_frame): Process dtor_list.
9743 (pop_dummy_frame): Process dtor_list.
9744 (register_dummy_frame_dtor): Maintain dtor_list.
9745 (find_dummy_frame_dtor): Handle dtor_list.
9746 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
9747 Update comments.
9748
5e970501
JK
97492015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9750
9751 * compile/compile-object-run.c (do_module_cleanup): Add parameter
9752 registers_valid.
9753 (compile_object_run): Update do_module_cleanup caller.
9754 * dummy-frame.c: Include infcall.h.
9755 (struct dummy_frame): Update dtor comment.
9756 (remove_dummy_frame): Call dtor.
9757 (pop_dummy_frame): Update dtor caller.
9758 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
9759 registers_valid.
9760
1c4eb778
JB
97612015-05-13 Joel Brobecker <brobecker@adacore.com>
9762
9763 GDB 7.9.1 released.
9764
f5f85ab9
JB
97652015-05-13 Joel Brobecker <brobecker@adacore.com>
9766
9767 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
9768 Xmethods now being able to specify a result type to that new
9769 sectioin.
9770
242cd84c
PP
97712015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9772
9773 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
9774 first before resizing the window.
e3555239 9775 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
9776
97772015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
9778
9779 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
9780 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
9781 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
9782 dummy_dtor parameter.
9783 * infcall.h: Include dummy-frame.h.
9784 (call_function_by_hand_dummy_dtor_ftype): Remove.
9785 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
9786 parameter.
9787
ebfd00d2
PP
97882015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9789
9790 PR gdb/17820
9791 * top.c (history_size_setshow_var): Change type to signed.
9792 Initialize to -2. Update documentation.
9793 (set_readline_history_size): Define.
9794 (set_history_size_command): Use it. Remove logic for handling
9795 out-of-range sizes.
9796 (init_history): Use set_readline_history_size(). Test for a
9797 value of -2 instead of 0 when determining whether to set a
9798 default history size.
9799 (init_main): Decode the argument of the "size" command as a
9800 zuinteger_unlimited.
9801
83769d0b
DE
98022015-05-12 Doug Evans <dje@google.com>
9803
9804 * dwarf2read.c (struct file_entry): Tweak comments.
9805 (get_debug_line_section): Tweak comments.
9806
0d71eef5
DB
98072015-05-12 Don Breazeal <donb@codesourcery.com>
9808
9809 * NEWS: Announce fork support in the RSP and support
9810 for fork debugging in extended mode.
9811
cbb8991c
DB
98122015-05-12 Don Breazeal <donb@codesourcery.com>
9813
9814 * remote.c (remote_insert_fork_catchpoint): New function.
9815 (remote_remove_fork_catchpoint): New function.
9816 (remote_insert_vfork_catchpoint): New function.
9817 (remote_remove_vfork_catchpoint): New function.
9818 (pending_fork_parent_callback): New function.
9819 (remove_new_fork_child): New function.
9820 (remote_update_thread_list): Call remote_notif_get_pending_events
9821 and remove_new_fork_child.
9822 (extended_remote_kill): Kill fork child when killing the
9823 parent before follow_fork completes.
9824 (init_extended_remote_ops): Initialize target vector with
9825 new fork catchpoint functions.
9826
c269dbdb
DB
98272015-05-12 Don Breazeal <donb@codesourcery.com>
9828
9829 * remote.c (remove_vfork_event_p): New function.
9830 (remote_follow_fork): Add vfork event type to event checking.
9831 (remote_parse_stop_reply): New stop reasons "vfork" and
9832 "vforkdone" for RSP 'T' Stop Reply Packet.
9833
de0d863e
DB
98342015-05-12 Don Breazeal <donb@codesourcery.com>
9835
9836 * linux-nat.c (linux_nat_ptrace_options): New function.
9837 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
9838 Call linux_nat_ptrace_options and use different argument to
9839 linux_enable_event_reporting.
9840 (_initialize_linux_nat): Delete call to
9841 linux_ptrace_set_additional_flags.
c8f6c93c 9842 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
9843 supported_ptrace_options.
9844 (additional_flags): Delete variable.
9845 (linux_check_ptrace_features): Use supported_ptrace_options.
9846 (linux_test_for_tracesysgood, linux_test_for_tracefork):
9847 Likewise, and remove additional_flags check.
9848 (linux_enable_event_reporting): Change 'attached' argument to
9849 'options'. Use supported_ptrace_options.
c8f6c93c 9850 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
9851 supported_ptrace_options.
9852 (linux_ptrace_set_additional_flags): Delete function.
9853 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
9854 Delete function prototype.
9855 * remote.c (remote_fork_event_p): New function.
9856 (remote_detach_pid): New function.
9857 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
9858 if doing detach-on-fork.
9859 (remote_follow_fork): New function.
9860 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
9861 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
9862 (init_extended_remote_ops): Initialize to_follow_fork.
9863
89245bc0
DB
98642015-05-12 Don Breazeal <donb@codesourcery.com>
9865
9866 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
9867 from static to extern.
9868 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
9869 * remote.c (anonymous enum): <PACKET_fork_event_feature,
9870 * PACKET_vfork_event_feature>: New enumeration constants.
9871 (remote_protocol_features): Add table entries for new packets.
9872 (remote_query_supported): Add new feature queries to qSupported
9873 packet.
9874
835205d0
GB
98752015-05-12 Gary Benson <gbenson@redhat.com>
9876
9877 * remote.c (remote_add_inferior): Call exec_file_locate_attach
9878 for fake PIDs as well as real ones.
9879 (remote_pid_to_exec_file): Send empty annex if PID is fake.
9880
4c082a81
SC
98812015-05-09 Siva Chandra Reddy <sivachandra@google.com>
9882
9883 * NEWS (Python Scripting): Mention the new gdb.Value methods.
9884 * python/py-value.c (valpy_reference_value): New function.
9885 (valpy_const_value): Likewise.
9886 (value_object_methods): Add new methods.
9887 * value.c (make_cv_value): New function.
9888 * value.h (make_cv_value): Declare.
9889
afa6c9ab
SL
98902015-05-08 Yao Qi <yao@codesourcery.com>
9891 Sandra Loosemore <sandra@codesourcery.com>
9892
9893 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
9894 to 'lh->include_dirs' before accessing to it.
9895 (psymtab_include_file_name): Likewise.
9896 (dwarf_decode_lines_1): Likewise.
9897 (dwarf_decode_lines): Likewise.
9898 (file_file_name): Likewise.
9899
35d54293
SL
99002015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9901
9902 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
9903 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
9904 (nios2_linux_rt_sigreturn_init): Adjust base address of
9905 register save area.
9906
b73c49b7
SL
99072015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9908
9909 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
9910 "trap 31" as the breakpoint instruction on all targets.
9911
dd9f02a0
JK
99122015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9913
9914 * infcmd.c (print_return_value): Remove unused declaration.
9915
6ad395a7
JB
99162015-05-08 Joel Brobecker <brobecker@adacore.com>
9917
9918 * dwarf2read.c (attr_to_dynamic_prop)
9919 <DW_AT_data_member_location>: Use read_type_die isntead of
9920 get_die_type.
9921
8344af1e
JB
99222015-05-08 Joel Brobecker <brobecker@adacore.com>
9923
9924 * ada-lang.c (ada_convert_actual): Add handling of formals
9925 passed inside an aligner type.
9926
80b0912b
JB
99272015-05-08 Joel Brobecker <brobecker@adacore.com>
9928
9929 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
9930
df2eb078
SC
99312015-05-08 Siva Chandra Reddy <sivachandra@google.com>
9932
9933 PR python/18291
9934 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
9935 Print xmethod matcher status.
9936
2492f0d0
AA
99372015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
9938
9939 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
9940 register in the regcache when treating the PSWM register, and vice
9941 versa.
9942
1c56a84d
GB
99432015-05-07 Gary Benson <gbenson@redhat.com>
9944
9945 * linux-thread-db.c (struct thread_db_info)
9946 <td_ta_map_id2thr_p>: Remove field.
9947 (try_thread_db_load_1): Remove initialization for the above.
9948
74850322
GB
99492015-05-07 Gary Benson <gbenson@redhat.com>
9950
9951 * linux-thread-db.c (struct thread_db_info)
9952 <td_thr_validate_p>: Remove field.
9953 (try_thread_db_load_1): Remove initialization for the above.
9954
e26efa40
JK
99552015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9956
9957 * compile/compile-object-load.c (compile_object_load): Support
9958 mst_text_gnu_ifunc.
9959
851c9091
JK
99602015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9961
9962 * compile/compile.c (compile_to_object): Make the cmd_string parameter
9963 const. Use new variables for the const compatibility.
9964 (eval_compile_command): Make the cmd_string parameter const.
9965 * compile/compile.h (eval_compile_command): Make the cmd_string
9966 parameter const.
9967
f218b647
JB
99682015-05-06 Joel Brobecker <brobecker@adacore.com>
9969
9970 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
9971 comment.
9972 * top.c (deprecated_init_ui_hook): Delete.
9973 (gdb_init): Remove handling of deprecated_init_ui_hook.
9974 * interps.c (clear_interpreter_hooks): Remove handling of
9975 deprecated_init_ui_hook.
9976 * main.c (captured_main): Update comment.
9977
b30a0bc3
JB
99782015-05-06 Joel Brobecker <brobecker@adacore.com>
9979
9980 * solib.c (_initialize_solib): Add "info dll" alias creation.
9981 * windows-nat.c (set_windows_aliases): Delete.
9982 (_initialize_windows_nat): Remove deprecated_init_ui_hook
9983 assignment.
9984 * NEWS: Add news entry about "info dll" now being available
9985 on all platforms.
9986
7c512744
JB
99872015-05-05 Joel Brobecker <brobecker@adacore.com>
9988
9989 * ada-lang.c (value_assign_to_component): Reformat and improve
9990 documentation. Remove all trailing spaces.
9991
0fa7fe50
JB
99922015-05-05 Joel Brobecker <brobecker@adacore.com>
9993
9994 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
9995 Stop counting inlined frames as soon as an out-of-line function
9996 is found.
9997
3ea89b92
PMR
99982014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
9999
10000 * dwarf2read.c (inherit_abstract_dies): Skip
10001 DW_TAG_GNU_call_site dies while inheriting children of an
10002 abstract DIE into a scope.
10003 (read_lexical_block_scope): Inherit abstract DIE's for
10004 lexical scopes.
10005
2478d075
JB
100062015-05-05 Joel Brobecker <brobecker@adacore.com>
10007
10008 * ada-valprint.c (val_print_packed_array_elements): Delete
10009 variable "len". Add a type-length check when comparing two
10010 consecutive elements of the array. Use the element's actual
10011 length in call to value_contents_eq.
10012 * ada-lang.c (ada_value_primitive_packed_val): Always return
10013 a value whose type has been resolved.
10014
fc958966
JB
100152015-05-05 Joel Brobecker <brobecker@adacore.com>
10016
10017 * ada-lang.c (ada_value_primitive_packed_val): Recompute
10018 BIT_SIZE and LEN if the size of the resolved type is smaller
10019 than BIT_SIZE * HOST_CHAR_BIT.
10020
ca34b84f
JB
100212015-05-05 Joel Brobecker <brobecker@adacore.com>
10022
10023 * ada-lang.c (ada_value_primitive_packed_val): Use a more
10024 correct address in call to value_at. Adjust call to
10025 value_address accordingly.
10026
62c67f3c
JB
100272015-05-05 Joel Brobecker <brobecker@adacore.com>
10028
10029 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
10030 to print it.
10031
c3345124
JB
100322015-05-05 Joel Brobecker <brobecker@adacore.com>
10033
10034 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
10035 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
10036 pinfo->valaddr.
10037 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
10038 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
10039 (resolve_dynamic_type_internal): Set pinfo.valaddr.
10040 Add handling of addr_stack->valaddr.
10041 (resolve_dynamic_type): Add "valaddr" parameter.
10042 Set pinfo.valaddr field.
10043 * ada-lang.c (ada_discrete_type_high_bound): Update call to
10044 resolve_dynamic_type.
10045 (ada_discrete_type_low_bound): Likewise.
10046 * findvar.c (default_read_var_value): Likewise.
10047 * value.c (value_from_contents_and_address): Likewise.
10048
75ea5859
JB
100492015-05-05 Joel Brobecker <brobecker@adacore.com>
10050
10051 * gdbtypes.c (resolve_dynamic_array): Use
10052 create_array_type_with_stride instead of create_array_type.
10053
0952813b
DD
100542015-04-30 DJ Delorie <dj@redhat.com>
10055
10056 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
10057 rl78_decode_opcode
10058
2ce1cdbf
DE
100592015-04-29 Doug Evans <dje@google.com>
10060
10061 PR python/18285
10062 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
10063 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
10064 EVAL_AVOID_SIDE_EFFECTS for xmethods.
10065 * extension-priv.h (struct extension_language_ops)
10066 <get_xmethod_result_type>: New member.
10067 * extension.c (get_xmethod_result_type): New function.
10068 * extension.h (get_xmethod_result_type): Declare.
10069 * python/py-xmethods.c (get_result_type_method_name): New static
10070 global.
10071 (py_get_result_type_method_name): Ditto.
10072 (gdbpy_get_xmethod_result_type): New function.
10073 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
10074 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
10075 * python/python.c (python_extension_ops): Add
10076 gdbpy_get_xmethod_result_type.
10077 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
10078 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
10079 xmethods.
10080 (value_x_unop): Ditto.
10081 * value.c (result_type_of_xmethod): New function.
10082 * value.h (result_type_of_xmethod): Declare.
10083
998d2a3e
GB
100842015-04-29 Gary Benson <gbenson@redhat.com>
10085
10086 * solib.c (solib_find_1): Allow fd argument to be NULL.
10087 (exec_file_find): Update comment.
10088 (solib_find): Likewise.
10089 * exec.c (exec_file_locate_attach): Use NULL as fd
10090 argument to exec_file_find to avoid having to close
10091 the opened file.
10092 * infrun.c (follow_exec): Likewise.
10093
34f5f757
DE
100942015-04-28 Doug Evans <dje@google.com>
10095
10096 PR python/18299
10097 * python/lib/gdb/printing.py (register_pretty_printer): Handle
10098 name or __name__ attributes. Handle gdb module as first argument.
10099
69b4374a
DE
101002015-04-28 Doug Evans <dje@google.com>
10101
10102 PR python/18089
10103 * python/py-prettyprint.c (print_children): Verify result of children
10104 iterator. Provide better error message.
10105 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
10106 * python/python.c (gdbpy_print_python_errors_p): New function.
10107
5e7cf078
DE
101082015-04-28 Doug Evans <dje@google.com>
10109
10110 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
10111
59fb7612
SS
101122015-04-28 Sasha Smundak <asmundak@google.com>
10113
10114 * NEWS: Mention gdb.Type.optimized_out method.
10115 * python/py-type.c (typy_optimized_out): New function.
10116
cea6e4f1
JB
101172015-04-28 John Baldwin <jhb@FreeBSD.org>
10118
10119 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10120
24b73f8e
PP
101212015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10122
10123 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
10124 (initialize_utils): Move call of init_page_info() to ...
10125 * top.c (gdb_init): ... here.
10126
a88d0bb3
PP
101272015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10128
10129 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
10130 (tui_sigwinch_handler): Still update our idea of
10131 the terminal's width and height even when TUI is not active.
10132
d6e5e7f7
PP
101332015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10134
10135 * utils.h (set_screen_width_and_height): Declare.
10136 * utils.c (set_screen_width_and_height): Define.
10137 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
10138
ff862be4
GB
101392015-04-28 Gary Benson <gbenson@redhat.com>
10140
10141 * infrun.c (solist.h): New include.
10142 (follow_exec): Use exec_file_find to prefix execd_pathname
10143 with gdb_sysroot.
10144
2eb639cb
PP
101452015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10146
10147 * tui/tui-source.c (tui_set_source_content): Avoid calling
10148 strcpy() when offset is 0.
10149
97206799
PP
101502015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10151
10152 PR gdb/18155
10153 * tui/tui-data.c (tui_free_window): Don't free the locator
10154 window when passed an SRC_WIN or a DISASSEM_WIN.
10155
63ed8182
PP
101562015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10157
10158 * tui/tui-data.h (struct tui_win_element): Forward-declare.
10159 (tui_win_content): Move declaration.
10160 (struct tui_gen_win_info): Give 'content' field the
10161 type tui_win_content.
10162 * tui/tui-data.c (init_content_element): Remove redundant and
10163 erroneous casts.
10164 (tui_add_content_elements): Remove erroneous cast.
10165 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
10166 casts.
10167 (tui_get_begin_asm_address): Likewise.
10168 * tui/tui-regs.c (tui_show_registers): Likewise.
10169 (tui_show_register_group): Likewise.
10170 (tui_display_registers_from): Likewise.
10171 (tui_check_register_values): Likewise.
10172 * tui/tui-source.c (tui_set_source_content): Likewise.
10173 (tui_set_source_content_nil): Likewise.
10174 (tui_source_is_displayed): Likewise.
10175 * tui/tui-stack.c (tui_show_locator_content): Likewise.
10176 (tui_set_locator_fullname): Likewise.
10177 (tui_set_locator_info): Likewise.
10178 (tui_show_frame_info): Likewise.
10179 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
10180 (tui_show_source_line): Likewise.
10181 (tui_horizontal_source_scroll): Likewise.
10182 (tui_update_breakpoint_info): Likewise.
10183 (tui_set_exec_info_content): Likewise.
10184 (tui_show_exec_info_content): Likewise.
10185 (tui_alloc_source_buffer): Likewise.
10186 (tui_line_is_displayed): Likewise.
10187 (tui_addr_is_displayed): Likewise.
10188
d2b41ca0
JB
101892015-04-27 John Baldwin <jhb@FreeBSD.org>
10190
10191 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
10192 event if PL_FLAG_EXEC is set.
10193 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
10194 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
10195 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
10196 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
10197 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
10198
e58e05d6
JB
101992015-04-27 John Baldwin <jhb@FreeBSD.org>
10200
10201 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
10202 [TDP_RFPPWAIT] New variable fbsd_pending_children.
10203 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
10204 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
10205 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
10206 [PT_LWPINFO] (fbsd_wait): New function.
10207 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
10208 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
10209 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
10210 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
10211 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
10212 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
10213 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
10214 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
10215 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
10216 "fbsd_wait".
10217 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
10218 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
10219 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
10220 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
10221 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
10222 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
10223 Set "to_post_attach" to "fbsd_post_attach".
10224
8f60fe01
JB
102252015-04-27 John Baldwin <jhb@FreeBSD.org>
10226
10227 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
10228 (fbsd_find_memory_regions): Mark static.
10229 (fbsd_nat_add_target): New function.
10230 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
10231 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
10232 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
10233 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
10234 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
10235 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
10236
5fbae7d1
GB
102372015-04-27 Gary Benson <gbenson@redhat.com>
10238
10239 * objfiles.c (allocate_objfile): Do not attempt to expand name
10240 if name is a "target:" filename.
10241 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
10242 to load auto-load scripts for objfiles with "target:" filenames.
10243
417c80f9
AA
102442015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10245
10246 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
10247 (enum s390_vector_abi_kind): New enum.
10248 (struct gdbarch_tdep)<vector_abi>: New field.
10249 (s390_effective_inner_type): Add parameter min_size. Stop
10250 unwrapping if the inner type is smaller than min_size.
10251 (s390_function_arg_float): Adjust call to
10252 s390_effective_inner_type.
10253 (s390_function_arg_vector): New function.
10254 (s390_function_arg_integer): Adjust comment.
10255 (struct s390_arg_state)<vr>: New field.
10256 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
10257 arguments according to vector ABI when appropriate.
10258 (s390_push_dummy_call): Initialize the argument state's field
10259 'vr'. Adjust calls to s390_handle_arg.
10260 (s390_register_return_value): Handle vector return values.
10261 (s390_return_value): Apply the "register" return value convention
10262 to a vector when appropriate.
10263 (s390_gdbarch_init): Initialize tdep->vector_abi.
10264 * NEWS: Announce S390 vector ABI support.
10265
4e65a17e
AA
102662015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10267
10268 * s390-linux-tdep.c (s390_return_value_convention): Remove
10269 function. Inline its logic...
10270 (s390_return_value): ...here. Instead, move the handling of the
10271 "register" return value convention...
10272 (s390_register_return_value): ...here. New function.
10273
80f75320
AA
102742015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10275
10276 * s390-linux-tdep.c
10277 (is_float_singleton): Remove function. Move the "singleton" part
10278 of the logic...
10279 (s390_effective_inner_type): ...here. New function.
10280 (is_float_like): Remove function. Inline its logic...
10281 (s390_function_arg_float): ...here.
10282 (is_pointer_like, is_integer_like, is_struct_like): Remove
10283 functions. Inline their logic...
10284 (s390_function_arg_integer): ...here.
10285 (s390_function_arg_pass_by_reference): Remove function.
10286 (extend_simple_arg): Remove function.
10287 (alignment_of): Remove function.
10288 (struct s390_arg_state): New structure.
10289 (s390_handle_arg): New function.
10290 (s390_push_dummy_call): Move parameter placement logic to the new
10291 function s390_handle_arg. Call it for calculating the stack area
10292 sizes first, and again for actually writing the parameters.
10293
6dbc9c04
AA
102942015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10295
10296 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
10297 false if the argument is zero.
10298
9e195661
PMR
102992015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
10300
10301 * ada-lang.c (template_to_static_fixed_type): Return input type
10302 when it is already fixed. Cache the input type itself when not
10303 creating a static fixed copy. Make it explicit that we never
10304 molestate the input type.
10305 * gdbtypes.c (resolve_dynamic_struct): Reset the
10306 TYPE_TARGET_TYPE field for resolved copies.
10307
460efde1
JB
103082015-04-27 Joel Brobecker <brobecker@adacore.com>
10309
10310 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
10311 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
10312 (template_to_static_fixed_type): Call ada_check_typedef only
10313 when necessary.
10314
6faec16b
AB
103152015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
10316
10317 * cli/cli-dump.c (srec_dump_command): Add internationalization
10318 mark ups.
10319 (ihex_dump_command): Likewise.
10320 (tekhex_dump_command): Likewise.
10321 (binary_dump_command): Likewise.
10322 (binary_append_command): Likewise.
10323
cf75d6c3
AB
103242015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
10325
10326 * cli/cli-dump.c (verilog_cmdlist): New variable.
10327 (dump_verilog_memory): New function.
10328 (dump_verilog_value): New function.
10329 (verilog_dump_command): New function.
10330 (_initialize_cli_dump): Add new commands to support verilog dump
10331 format.
10332 * NEWS: Add entry for "dump verilog".
10333
8cd00c59
PMR
103342015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
10335
10336 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
10337 descriptive type when there is none.
10338
8900d71e
PP
103392015-04-23 Patrick Palka <patrick@parcs.ath.cx>
10340
10341 * tui/tui-win.c (tui_async_resize_screen): Call
10342 rl_resize_terminal().
10343
f16eab5f
JT
103442015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
10345
10346 * windows-nat.c (handle_output_debug_string): Don't change
10347 current_event.dwThreadId.
10348 (get_windows_debug_event): Use thread_id, rather than relying on
10349 current_event.dwThreadId being changed.
10350
68ffc902
JT
103512015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
10352
10353 * windows-nat.c (windows_continue): Report an error if
10354 ContinueDebugEvent() fails.
10355
23942819
JT
103562015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10357
10358 * windows-nat.c (windows_resume): Fix misspelling in debug output.
10359
e6ad66bd
JT
103602015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10361
10362 * windows-nat.c (get_windows_debug_event): Replace retval with
10363 thread_id throughout. Update stale comment.
10364
776704b9
JT
103652015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10366
10367 * windows-nat.c (get_windows_debug_event): Don't use ternary
10368 conditional operator.
10369
8aae4344
PM
103702015-04-21 Pierre Muller <muller@sourceware.org>
10371
10372 PR pascal/17815
10373 p-exp.y (yylex): Reorganize code to return the matched pattern
10374 for a field of this.
10375
819843c7
GB
103762015-04-21 Gary Benson <gbenson@redhat.com>
10377
10378 * common/fileio.h (fileio_to_host_openflags): New declaration.
10379 * common/fileio.c (fcntl.h): New include.
10380 (fileio_to_host_openflags): New function, factored out from...
10381 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
10382 Single use updated.
10383
0bca7f99
KB
103842015-04-21 Kevin Buettner <kevinb@redhat.com>
10385
10386 * rl78-tdep.c (RL78_SP_ADDR): Define.
10387 (opc_reg_to_gdb_regnum): New static function.
10388 (rl78_analyze_prologue): Recognize instructions forming slightly
10389 more interesting prologues.
10390
e771e4be
PMR
103912015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
10392
10393 Revert:
10394 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10395 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10396 TYPE_CODE_REF types so that they are not considered as dynamic
10397 depending on the referenced type.
10398 (resolve_dynamic_type_internal): Likewise.
10399
ee715b5a
PMR
104002015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
10401
10402 Revert:
10403 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10404 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10405 "top_level" parameter.
10406 (resolve_dynamic_type_internal): Remove the unused "top_level"
10407 parameter. Update call to is_dynamic_type_internal.
10408 (is_dynamic_type): Update call to is_dynamic_type_internal.
10409 (resolve_dynamic_range): Update call to
10410 resolve_dynamic_type_internal.
10411 (resolve_dynamic_union): Likewise.
10412 (resolve_dynamic_struct): Likewise.
10413 (resolve_dynamic_type): Likewise.
10414
e31d7699
GKB
104152015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
10416
10417 * breakpoint.c (update_dprintf_command_list): Remove duplicated
10418 xmalloc.
10419
d214e5e7
TS
104202015-04-20 Thomas Schwinge <thomas@codesourcery.com>
10421
110f9112
TS
10422 * reply_mig_hack.awk: Robustify parsing.
10423
d214e5e7
TS
10424 * reply_mig_hack.awk: Don't bother to declare an intermediate
10425 function pointer variable.
10426
8f61baf8
DE
104272015-04-17 Doug Evans <dje@google.com>
10428
10429 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
10430 to "exec_displacement" to avoid confusion with inner use of the name.
10431
dbbf180a
YQ
104322015-04-17 Pedro Alves <palves@redhat.com>
10433
10434 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
10435 if HW point of TYPE isn't supported.
10436
059790a0
YQ
104372015-04-17 Yao Qi <yao.qi@linaro.org>
10438 Pedro Alves <palves@redhat.com>
10439
10440 * target.h (target_can_use_hardware_watchpoint): Update comments.
10441 Remove trailing ";".
10442
1b6e6f5c
GB
104432015-04-17 Gary Benson <gbenson@redhat.com>
10444
10445 * remote.c (remote_add_inferior): New argument try_open_exec.
10446 If nonzero, attempt to open the inferior's executable file as
10447 the main executable if no main executable is open already.
10448 All callers updated.
10449 * NEWS: Mention that GDB now supports automatic location and
10450 retrieval of executable + files from remote targets.
10451
c78fa86a
GB
104522015-04-17 Gary Benson <gbenson@redhat.com>
10453
10454 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
10455 * remote.c (PACKET_qXfer_exec_file): Likewise.
10456 (remote_protocol_features): Register the
10457 "qXfer:exec-file:read" feature.
10458 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
10459 (remote_pid_to_exec_file): New function.
10460 (init_remote_ops): Initialize to_pid_to_exec_file.
10461 (_initialize_remote): Register new "set/show remote
10462 pid-to-exec-file-packet" command.
10463 * NEWS: Announce new qXfer:exec-file:read packet.
10464
e0d86d2c
GB
104652015-04-17 Gary Benson <gbenson@redhat.com>
10466
10467 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
10468 New declaration.
10469 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
10470 New function, factored out from...
10471 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
10472
a9a5a3d1
GB
104732015-04-17 Gary Benson <gbenson@redhat.com>
10474
10475 * exec.c (solist.h): New include.
10476 (exec_file_locate_attach): Prefix absolute executable
10477 paths with gdb_sysroot if set.
10478 * NEWS: Mention that executable paths may be prepended
10479 with sysroot.
10480
af1900b0
GB
104812015-04-17 Gary Benson <gbenson@redhat.com>
10482
10483 * solist.h (exec_file_find): New declaration.
10484 * solib.c (solib_find_1): New function, factored out from...
10485 (solib_find): ...here.
10486 (exec_file_find): New function.
10487
a10de604
GB
104882015-04-17 Gary Benson <gbenson@redhat.com>
10489
10490 * gdbcore.h (exec_file_locate_attach): New declaration.
10491 * exec.c (exec_file_locate_attach): New function, factored
10492 out from...
10493 * infcmd.c (attach_command_post_wait): ...here.
10494
92209ddf
MF
104952015-04-17 Mike Frysinger <vapier@gentoo.org>
10496
10497 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
10498
8550d3b3
YQ
104992015-04-16 Yao Qi <yao.qi@linaro.org>
10500
10501 * infrun.c (maybe_software_singlestep): Declare.
10502 (displaced_step_fixup): Call maybe_software_singlestep.
10503
30b3dd9d
DE
105042015-04-15 Doug Evans <dje@google.com>
10505
10506 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
10507
61d96d7e
DE
105082015-04-15 Doug Evans <dje@google.com>
10509
10510 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
10511
40d2f8d6
SM
105122015-04-15 Simon Marchi <simon.marchi@ericsson.com>
10513
10514 * python/lib/gdb/command/unwinders.py: Add parentheses.
10515
6bbbba9b
YQ
105162015-04-15 Yao Qi <yao.qi@linaro.org>
10517
10518 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
10519
2bb2dcab
YQ
105202015-04-15 Yao Qi <yao.qi@linaro.org>
10521
10522 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
10523
41f071ef
YQ
105242015-04-15 Yao Qi <yao.qi@linaro.org>
10525
10526 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
10527 dsc->insn_size instead of 4.
10528
326a5c7e
GB
105292015-04-14 Gary Benson <gbenson@redhat.com>
10530
10531 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
10532 * minidebug.c (lzma_stat): Likewise.
10533 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
10534 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
10535
dd177e81
SS
105362015-04-13 Stan Shebs <stanshebs@google.com>
10537
10538 * MAINTAINERS: Update my email address.
10539
97de3545
JB
105402015-04-13 John Baldwin <jhb@FreeBSD.org>
10541
10542 * amd64-tdep.c (amd64_target_description): New function.
10543 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
10544 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
10545 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10546 x86 extended save area.
10547 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10548 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
10549 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
10550 (_initialize_amd64fbsd_nat): Set "to_read_description" to
10551 "amd64fbsd_read_description".
10552 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
10553 (amd64fbsd_supply_xstateregset): New function.
10554 (amd64fbsd_collect_xstateregset): New function.
10555 Add "amd64fbsd_xstateregset".
10556 (amd64fbsd_iterate_over_regset_sections): New function.
10557 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
10558 "I386_FBSD_XSAVE_XCR0_OFFSET".
10559 Add "iterate_over_regset_sections" gdbarch method.
10560 Add "core_read_description" gdbarch method.
10561 * i386-tdep.c (i386_target_description): New function.
10562 * i386-tdep.h: Export i386_target_description and tdesc_i386.
10563 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
10564 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10565 x86 extended save area.
10566 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10567 * i386bsd-nat.h: Export i386bsd_xsave_len.
10568 * i386fbsd-nat.c (i386fbsd_read_description): New function.
10569 (_initialize_i386fbsd_nat): Set "to_read_description" to
10570 "i386fbsd_read_description".
10571 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
10572 (i386fbsd_core_read_description): New function.
10573 (i386fbsd_supply_xstateregset): New function.
10574 (i386fbsd_collect_xstateregset): New function.
10575 Add "i386fbsd_xstateregset".
10576 (i386fbsd_iterate_over_regset_sections): New function.
10577 (i386fbsd4_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 * i386fbsd-tdep.h: New file.
10582
4f45d445
JK
105832015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10584
10585 * NEWS (Changes since GDB 7.9): Add removed -xdb.
10586 * breakpoint.c (command_line_is_silent): Remove xdb_commands
10587 conditional.
10588 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
10589 and lb.
10590 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
10591 va.
10592 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
10593 conditional.
10594 * defs.h (xdb_commands): Remove declaration.
10595 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
10596 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
10597 * infcmd.c (run_no_args_command, go_command): Remove.
10598 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
10599 * infrun.c (xdb_handle_command): Remove.
10600 (_initialize_infrun): Remove xdb_commands for lz and z.
10601 * main.c (xdb_commands): Remove variable.
10602 (captured_main): Remove "xdb" from long_options.
10603 (print_gdb_help): Remove --xdb from help.
10604 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
10605 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
10606 * stack.c (backtrace_full_command, args_plus_locals_info)
10607 (current_frame_command): Remove.
10608 (_initialize_stack): Remove xdb_commands for t, T and l.
10609 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
10610 * thread.c (_initialize_thread): Remove xdb_commands condition.
10611 * tui/tui-layout.c (tui_toggle_layout_command)
10612 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
10613 (_initialize_tui_layout): Remove xdb_commands for td and ts.
10614 * tui/tui-regs.c (tui_scroll_regs_forward_command)
10615 (tui_scroll_regs_backward_command): Remove.
10616 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
10617 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
10618 (_initialize_tui_win): Remove xdb_commands for U and w.
10619 * utils.c (pagination_on_command, pagination_off_command): Remove.
10620 (initialize_utils): Remove xdb_commands for am and sm.
10621
cb71640d
PA
106222015-04-10 Pedro Alves <palves@redhat.com>
10623
10624 * infrun.c (displaced_step_fixup): Switch to the event ptid
10625 earlier. If the thread stopped for a watchpoint and the
10626 target/arch has non-continuable watchpoints, cancel the displaced
10627 step.
10628 (resume): Don't start a displaced step if in-line step-over info
10629 is valid.
10630
8f572e5c
PA
106312015-04-10 Pedro Alves <palves@redhat.com>
10632
10633 * infrun.c (displaced_step_in_progress): New function.
10634 (do_target_resume): Advise target to report all signals if
10635 displaced stepping.
10636
8d707a12
PA
106372015-04-10 Pedro Alves <palves@redhat.com>
10638
10639 PR gdb/18216
10640 * infrun.c (process_event_stop_test): Don't assume a step-resume
10641 is set if tp->stepped_breakpoint is true.
10642
ef713951
YQ
106432015-04-10 Yao Qi <yao.qi@linaro.org>
10644
10645 * arm-tdep.c (install_alu_reg): Update comment.
10646 (thumb_copy_alu_reg): Remove local variable rn. Update
10647 debugging message. Use r2 instead of r1 in the modified
10648 instruction.
10649
906d60cf
PA
106502015-04-10 Pedro Alves <palves@redhat.com>
10651
10652 PR gdb/13858
10653 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
10654 linux_displaced_step_location as gdbarch_displaced_step_location
10655 hook.
10656 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10657 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10658 * linux-tdep.c (linux_displaced_step_location): New function,
10659 based on ppc_linux_displaced_step_location.
10660 * linux-tdep.h (linux_displaced_step_location): New declaration.
10661 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
10662 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
10663 Delete.
10664 (ppc_linux_init_abi): Install linux_displaced_step_location as
10665 gdbarch_displaced_step_location hook, even without Cell/B.E..
10666 (_initialize_ppc_linux_tdep): Don't install
10667 ppc_linux_inferior_created as inferior_created observer.
10668 * s390-linux-tdep.c (s390_gdbarch_init): Install
10669 linux_displaced_step_location as gdbarch_displaced_step_location
10670 hook.
10671
7823a941
GB
106722015-04-09 Gary Benson <gbenson@redhat.com>
10673
10674 * common/common-remote-fileio.h: Rename to...
10675 * common/fileio.h: ...this. Update all references.
10676 (remote_fileio_to_fio_error): Rename to...
10677 (host_to_fileio_error): ...this.
10678 (remote_fileio_to_be): Rename to...
10679 (host_to_bigendian): ...this. Update all callers.
10680 (remote_fileio_to_fio_uint): Rename to...
10681 (host_to_fileio_uint): ...this. Update all callers.
10682 (remote_fileio_to_fio_time): Rename to...
10683 (host_to_fileio_time): ...this. Update all callers.
10684 (remote_fileio_to_fio_stat): Rename to...
10685 (host_to_fileio_stat): ...this.
10686 Update all references.
10687 * common/common-remote-fileio.c: Rename to...
10688 * common/fileio.c: ...this. Update all references.
10689 (remote_fileio_to_fio_error): Rename to...
10690 (host_to_fileio_error): ...this. Update all callers.
10691 (remote_fileio_mode_to_target): Rename to...
10692 (fileio_mode_pack): ...this. Update all callers.
10693 (remote_fileio_to_fio_mode): Rename to...
10694 (host_to_fileio_mode): ...this. Update all callers.
10695 (remote_fileio_to_fio_ulong): Rename to...
10696 (host_to_fileio_ulong): ...this. Update all callers.
10697 (remote_fileio_to_fio_stat): Rename to...
10698 (host_to_fileio_stat): ...this. Update all callers.
10699
f2983cc3
AW
107002015-04-09 Andy Wingo <wingo@igalia.com>
10701
10702 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
10703 (frame_functions): Bind gdbscm_frame_read_register to
10704 frame-read-register.
10705 * guile/lib/gdb.scm (frame-read-register): Export.
10706
b88bb450
GB
107072015-04-09 Gary Benson <gbenson@redhat.com>
10708
10709 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
10710 New declaration.
10711 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
10712 New function, factored out the named functions below.
10713 * inf-child.c (gdb/fileio.h): Remove include.
10714 (common-remote-fileio.h): New include.
10715 (inf_child_errno_to_fileio_error): Remove function. Update
10716 all callers to use remote_fileio_to_fio_error.
10717 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
10718
2f2680f3
AW
107192015-04-09 Andy Wingo <wingo@igalia.com>
10720
10721 * MAINTAINERS (Write After Approval): Add Andy Wingo.
10722
5a2d4533
L
107232015-04-09 H.J. Lu <hongjiu.lu@intel.com>
10724
10725 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
10726 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
10727 * configure: Regenerated.
10728
421693b0
PA
107292015-04-09 Pedro Alves <palves@redhat.com>
10730
10731 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
10732 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
10733 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
10734 * gnulib/import/Makefile.am: Update.
10735 * gnulib/import/Makefile.in: Update.
10736 * gnulib/import/m4/gnulib-cache.m4: Update.
10737 * gnulib/import/m4/gnulib-comp.m4: Update.
10738 * gnulib/import/m4/strtok_r.m4: New file.
10739 * gnulib/import/strtok_r.c: New file.
10740
f543dc83
PA
107412015-04-09 Pedro Alves <palves@redhat.com>
10742
10743 * gnulib/update-gnulib.sh (aclocal version check): Filter out
10744 "called too early to check prototype".
10745
6d62641c
SDJ
107462015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
10747
10748 PR python/16699
10749 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
10750 use a caching mechanism. Adjust comments and code to reflect
10751 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
10752 (cmdpy_completer_handle_brkchars): Adjust call to
10753 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
10754 (cmdpy_completer): Likewise.
10755
85558555
YQ
107562015-04-08 Yao Qi <yao.qi@linaro.org>
10757
10758 * spu-tdep.c (spu_gdbarch_init): Don't call
10759 set_gdbarch_cannot_step_breakpoint.
10760
d249a14a
SDJ
107612015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
10762
10763 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
10764
8a06aea7
PA
107652015-04-07 Pedro Alves <palves@redhat.com>
10766
10767 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
10768 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
10769 (delete_exited_threads): New declaration.
10770 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
10771 * linux-nat.c (linux_nat_update_thread_list): New function.
10772 (linux_nat_add_target): Install it.
10773 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
10774 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
10775 (delete_exited_threads): New function.
10776
d9b67d9f
PA
107772015-04-07 Pedro Alves <pedro@codesourcery.com>
10778
10779 * infrun.c (resume) <displaced stepping debug output>: Get the
10780 leader thread's regcache, not resume_ptid's.
10781
2c26b84f
DE
107822015-04-06 Doug Evans <xdje42@gmail.com>
10783
10784 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
10785 VAR_DOMAIN.
10786 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
10787 Include symbol domain in debugging output.
10788
7a85168d
PA
107892015-04-06 Pedro Alves <palves@redhat.com>
10790 Bernd Edlinger <bernd.edlinger@hotmail.de>
10791
10792 * configure.ac: Remove the mingw32-specific stub-termcap.o
10793 fallback, and instead fallback to the stub termcap on all hosts.
10794 * configure: Regenerate.
10795 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
10796 symbols.
10797
25755e2b
PMR
107982015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10799
10800 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10801 "top_level" parameter.
10802 (resolve_dynamic_type_internal): Remove the unused "top_level"
10803 parameter. Update call to is_dynamic_type_internal.
10804 (is_dynamic_type): Update call to is_dynamic_type_internal.
10805 (resolve_dynamic_range): Update call to
10806 resolve_dynamic_type_internal.
10807 (resolve_dynamic_union): Likewise.
10808 (resolve_dynamic_struct): Likewise.
10809 (resolve_dynamic_type): Likewise.
10810
961f4160
PMR
108112015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10812
10813 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10814 TYPE_CODE_REF types so that they are not considered as dynamic
10815 depending on the referenced type.
10816 (resolve_dynamic_type_internal): Likewise.
10817
39f3de7c
L
108182015-04-02 H.J. Lu <hongjiu.lu@intel.com>
10819
10820 * Makefile.in (top_srcdir): New.
10821 * configure: Regenerated.
10822
599bd15c
GB
108232015-04-02 Gary Benson <gbenson@redhat.com>
10824
10825 * NEWS: Announce the new default sysroot of "target:".
10826
fed040c6
GB
108272015-04-02 Gary Benson <gbenson@redhat.com>
10828
10829 * main.c (captured_main): Set gdb_sysroot to "target:"
10830 if not otherwise set.
10831
64c0b5de
GB
108322015-04-02 Gary Benson <gbenson@redhat.com>
10833
10834 * exec.c (exec_file_attach): Support "target:" filenames.
10835
b57fbfba
GB
108362015-04-02 Gary Benson <gbenson@redhat.com>
10837
10838 * solib.c (solib_find): Strip "target:" prefix from sysroot
10839 if accessing local files.
10840
97a41605
GB
108412015-04-02 Gary Benson <gbenson@redhat.com>
10842
10843 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
10844 checks and error messages.
10845
2938e6cf
GB
108462015-04-02 Gary Benson <gbenson@redhat.com>
10847
10848 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
10849 (remote_filename_p): Remove declaration.
10850 (remote_bfd_open): Likewise.
10851 * remote.c (remote_bfd_iovec_open): Remove function.
10852 (remote_bfd_iovec_close): Likewise.
10853 (remote_bfd_iovec_pread): Likewise.
10854 (remote_bfd_iovec_stat): Likewise.
10855 (remote_filename_p): Likewise.
10856 (remote_bfd_open): Likewise.
10857 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
10858 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
10859 (gdb_bfd_open_maybe_remote): Remove function.
10860 (symfile_bfd_open): Replace remote filename check with
10861 target filename check.
10862 (reread_symbols): Use gdb_bfd_open.
10863 * build-id.c (gdbcore.h): New include.
10864 (build_id_to_debug_bfd): Use gdb_bfd_open.
10865 * infcmd.c (attach_command_post_wait): Remove remote filename
10866 check.
10867 * solib.c (solib_find): Replace remote-specific handling with
10868 target-specific handling. Update comments where necessary.
10869 (solib_bfd_open): Replace remote-specific handling with
10870 target-specific handling.
10871 (gdb_sysroot_changed): New function.
10872 (_initialize_solib): Call the above when gdb_sysroot changes.
10873 * windows-tdep.c (gdbcore.h): New include.
10874 (windows_xfer_shared_library): Use gdb_bfd_open.
10875
f08e97fe
GB
108762015-04-02 Gary Benson <gbenson@redhat.com>
10877
10878 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
10879 (is_target_filename): New declaration.
10880 (gdb_bfd_has_target_filename): Likewise.
10881 (gdb_bfd_open): Update documentation comment.
10882 * gdb_bfd.c (target.h): New include.
10883 (gdb/fileio.h): Likewise.
10884 (is_target_filename): New function.
10885 (gdb_bfd_has_target_filename): Likewise.
10886 (fileio_errno_to_host): Likewise.
10887 (gdb_bfd_iovec_fileio_open): Likewise.
10888 (gdb_bfd_iovec_fileio_pread): Likewise.
10889 (gdb_bfd_iovec_fileio_close): Likewise.
10890 (gdb_bfd_iovec_fileio_fstat): Likewise.
10891 (gdb_bfd_open): Use target fileio to access paths prefixed
10892 with "target:" where necessary.
10893
4bd7dc42
GB
108942015-04-02 Gary Benson <gbenson@redhat.com>
10895
10896 * target.h (struct target_ops) <to_filesystem_is_local>:
10897 New field.
10898 (target_filesystem_is_local): New macro.
10899 * target-delegates.c: Regenerate.
10900 * remote.c (remote_filesystem_is_local): New function.
10901 (init_remote_ops): Initialize to_filesystem_is_local.
10902
9b15c1f0
GB
109032015-04-02 Gary Benson <gbenson@redhat.com>
10904
10905 * target.h (struct target_ops) <to_fileio_fstat>: New field.
10906 (target_fileio_fstat): New declaration.
10907 * target.c (target_fileio_fstat): New function.
10908 * inf-child.c (inf_child_fileio_fstat): Likewise.
10909 (inf_child_target): Initialize to_fileio_fstat.
10910 * remote.c (init_remote_ops): Likewise.
10911
d11916aa
SS
109122015-04-01 Sasha Smundak <asmundak@google.com>
10913
10914 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
10915 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
10916 (py-unwind.o): New recipe.
10917 * NEWS: mention Python frame unwinding.
10918 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
10919 gdb/unwinder.py and gdb/command/unwinder.py
10920 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
10921 list.
10922 (execute_unwinders): New function.
10923 * python/lib/gdb/command/unwinders.py: New file.
10924 * python/lib/gdb/unwinder.py: New file.
10925 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
10926 (objfpy_dealloc): Decrement frame_unwinders reference count.
10927 (objfpy_initialize): Create frame_unwinders list.
10928 (objfpy_get_frame_unwinders): New function.
10929 (objfpy_set_frame_unwinders): Ditto.
10930 (objfile_getset): Add frame_unwinders attribute to Objfile.
10931 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
10932 (pspy_dealloc): Decrement frame_unwinders reference count.
10933 (pspy_initialize): Create frame_unwinders list.
10934 (pspy_get_frame_unwinders): New function.
10935 (pspy_set_frame_unwinders): Ditto.
10936 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
10937 * python/py-unwind.c: New file.
10938 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
10939 (objpy_get_frame_unwinders): New prototype.
10940 (gdbpy_initialize_unwind): New prototype.
10941 * python/python.c (gdbpy_apply_type_printers): Call
10942 gdbpy_initialize_unwind.
10943
6b403daa
PA
109442015-04-01 Pedro Alves <palves@redhat.com>
10945
10946 * infrun.c (resume): Check currently_stepping after clearing
10947 stepped_breakpoint, not before.
10948
1176ecec
PA
109492015-04-01 Pedro Alves <palves@redhat.com>
10950
10951 * infrun.c (print_target_wait_results): Print all the ptid
10952 elements.
10953
de1fe8c8
PA
109542015-04-01 Pedro Alves <palves@redhat.com>
10955
10956 * infrun.c (keep_going): Also discard cleanups if inserting
10957 breakpoints fails.
10958
e6f5c25b
PA
109592015-04-01 Pedro Alves <palves@redhat.com>
10960
10961 * infrun.c (wait_for_inferior): Install the
10962 finish_thread_state_cleanup cleanup across the whole function, not
10963 just around handle_inferior_event.
10964
1ac806b8
PA
109652015-04-01 Pedro Alves <palves@redhat.com>
10966
10967 * infrun.c (resume) <step past permanent breakpoint>: Use
10968 do_target_resume.
10969
2ee52aa4
PA
109702015-04-01 Pedro Alves <palves@redhat.com>
10971
10972 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
10973
5445da1b
PMR
109742015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
10975
10976 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
10977
4eec2deb
PA
109782015-04-01 Pedro Alves <palves@redhat.com>
10979
10980 * linux-thread-db.c (record_thread): Readd the thread to gdb's
10981 list if it was marked exited.
10982
afa59b79
L
109832015-04-01 H.J. Lu <hongjiu.lu@intel.com>
10984
10985 * configure: Regenerated.
10986
df8411da
SDJ
109872015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10988 Jan Kratochvil <jan.kratochvil@redhat.com>
10989 Oleg Nesterov <oleg@redhat.com>
10990
10991 PR corefiles/16092
10992 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
10993 New enum identifying the various options of the coredump_filter
10994 file.
10995 (struct smaps_vmflags): New struct.
10996 (use_coredump_filter): New variable.
10997 (decode_vmflags): New function.
10998 (mapping_is_anonymous_p): Likewise.
10999 (dump_mapping_p): Likewise.
11000 (linux_find_memory_regions_full): New variables
11001 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
11002 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
11003 parsing of its information. Implement memory mapping filtering
11004 based on its contents.
11005 (show_use_coredump_filter): New function.
11006 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
11007 * NEWS: Mention the possibility of using the
11008 '/proc/PID/coredump_filter' file when generating a corefile.
11009 Mention new command 'set use-coredump-filter'.
11010
416f679e
SDJ
110112015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
11012
11013 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
11014 read_memory_unsigned_integer.
11015
711a72d3
L
110162015-03-31 H.J. Lu <hongjiu.lu@intel.com>
11017
11018 * Makefile.in (ZLIB): New.
11019 (ZLIBINC): Likewise.
11020 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
11021 (CLIBS): Add $(ZLIB).
11022 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
11023 Add -lz to LIBS.
11024 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
11025 * top.c (print_gdb_configuration): Remove --with-zlib and
11026 --without-zlib.
11027 * config.in: Regenerated.
11028 * configure: Likewise.
11029
d33279b3
AT
110302015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
11031
11032 * NEWS: Mention info os cpus support.
11033 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
11034 (struct osdata_type): Add cpus entry, reorder the entries in
11035 alphabetical order.
11036
71b30f27
MK
110372015-03-31 Matthias Klose <doko@ubuntu.com>
11038
11039 * compile/compile.c (compile_to_object): Allow triplets with or
11040 without vendor set.
11041
13ce9222
DE
110422015-03-30 Doug Evans <dje@google.com>
11043
11044 PR c++/18141
11045 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
11046 klass in VAR_DOMAIN.
11047
20f796c9
GB
110482015-03-30 Gary Benson <gbenson@redhat.com>
11049
11050 * remote.c (remote_mourn_1): Remove function. Update all callers
11051 to use remote_mourn.
11052 (extended_remote_mourn_1): Remove function. Update all callers
11053 to use extended_remote_mourn.
11054 (extended_remote_attach_1): Remove function. Update all callers
11055 to use extended_remote_attach.
11056
49d45b20
JB
110572015-03-28 James Bowman <james.bowman@ftdichip.com>
11058
11059 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
11060 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
11061 (ALLDEPFILES): Add ft32-tdep.c.
11062 * configure.tgt: Add FT32 entry.
11063 * ft32-tdep.c: New file, FT32 target-dependent code.
11064 * ft32-tdep.h: New file, FT32 target-dependent code.
11065
1c4ff080
JK
110662015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11067
11068 Revert:
11069 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11070 Code cleanup.
11071 * printcmd.c (print_command_1): Move expr variable scope.
11072
79498702
JB
110732015-03-27 Joel Brobecker <brobecker@adacore.com>
11074
11075 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
11076
ce9c0ca1
AK
110772015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
11078
11079 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
11080 sections.
11081
429e1e81
JB
110822015-03-26 Joel Brobecker <brobecker@adacore.com>
11083
11084 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
11085 exception raised while parsing the probe arguments.
11086 Force parsing to be done using the C language parser.
11087 * expression.h (parse_expression_with_language): Declare.
11088 * parse.c (parse_expression_with_language): New function.
11089
4593441b
JT
110902015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
11091
11092 * MAINTAINERS (Write After Approval): Add "Jon Turney".
11093
ff908ebf
AW
110942015-03-26 Andy Wingo <wingo@igalia.com>
11095
11096 PR symtab/18148
11097 * dwarf2read.c (struct partial_die_info): Add has_const_value
11098 member.
11099 (add_partial_symbol): Don't punt on symbols that have const_value
11100 attributes.
11101 (read_partial_die): Detect DW_AT_const_value.
11102
f30d5c78
JK
111032015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11104
11105 Code cleanup.
11106 * printcmd.c (print_command_1): Move expr variable scope.
11107
8d89f51a
JK
111082015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11109
11110 Code cleanup.
11111 * printcmd.c (validate_format): Make the parameter cmdname const.
11112
0b736949
DB
111132015-03-26 Don Breazeal <donb@codesourcery.com>
11114
11115 * remote.c (_initialize_remote): Update comment.
11116
20d35291
PA
111172015-03-26 Pedro Alves <palves@redhat.com>
11118 Jon TURNEY <jon.turney@dronecode.org.uk>
11119
11120 * coffread.c (coff_symfile_read): When constructing the name of an
11121 import stub symbol from import symbol for amd64, only skip the
11122 char after _imp_ if the target is underscored (like i386) and the
11123 char is indeed the target's leading char.
11124
6a3753b3
PA
111252015-03-25 Pedro Alves <palves@redhat.com>
11126
11127 * target.h <to_async>: Replace 'callback' and 'context' parameters
11128 with boolean 'enable' parameter.
11129 (target_async): Replace CALLBACK and CONTEXT parameters with
11130 boolean ENABLE parameter.
11131 * inf-loop.c (inferior_event_handler): Adjust.
11132 * linux-nat.c (linux_nat_attach, linux_nat_resume)
11133 (linux_nat_resume): Adjust.
11134 (async_client_callback, async_client_context): Delete.
11135 (handle_target_event): Call inferior_event_handler directly.
11136 (linux_nat_async): Replace 'callback' and 'context' parameters
11137 with boolean 'enable' parameter. Adjust. Remove references to
11138 async_client_callback and async_client_context.
11139 (linux_nat_close): Adjust.
11140 * record-btrace.c (record_btrace_async): Replace 'callback' and
11141 'context' parameters with boolean 'enable' parameter. Adjust.
11142 (record_btrace_resume): Adjust.
11143 * record-full.c (record_full_async): Replace 'callback' and
11144 'context' parameters with boolean 'enable' parameter. Adjust.
11145 (record_full_resume, record_full_core_resume): Adjust.
11146 * remote.c (struct remote_state) <async_client_callback,
11147 async_client_context>: Delete fields.
11148 (remote_start_remote, extended_remote_attach_1, remote_resume)
11149 (extended_remote_create_inferior): Adjust.
11150 (remote_async_serial_handler): Call inferior_event_handler
11151 directly.
11152 (remote_async): Replace 'callback' and 'context' parameters with
11153 boolean 'enable' parameter. Adjust.
11154 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
11155 Adjust.
11156 * target-delegates.c: Regenerate.
11157
1c4b552b
GB
111582015-03-25 Gary Benson <gbenson@redhat.com>
11159 Pedro Alves <palves@redhat.com>
11160
11161 * target.c (fileio_ft_t): New typedef, define object vector.
11162 (fileio_fhandles): New static variable.
11163 (is_closed_fileio_fh): New macro.
11164 (lowest_closed_fd): New static variable.
11165 (acquire_fileio_fd): New function.
11166 (release_fileio_fd): Likewise.
11167 (fileio_fd_to_fh): New macro.
11168 (target_fileio_open): Wrap the file descriptor on success.
11169 (target_fileio_pwrite): Updated to use wrapped file descriptor.
11170 (target_fileio_pread): Likewise.
11171 (target_fileio_close): Likewise.
11172
a25d8bf9
PA
111732015-03-24 Pedro Alves <palves@redhat.com>
11174
11175 * thread.c (thread_apply_all_command): Take exited threads into
11176 account.
11177
44a1ee51
PA
111782015-03-24 Pedro Alves <palves@redhat.com>
11179
11180 * infrun.c (resume, proceed): Mention
11181 switch_back_to_stepped_thread, not switch_back_to_stepping.
11182
f3263aa4
PA
111832015-03-24 Pedro Alves <palves@redhat.com>
11184
11185 * infrun.c (user_visible_resume_ptid): Rewrite going from
11186 most-locked to unlocked instead of the opposite. Move comment ...
11187 * infrun.h (user_visible_resume_ptid): ... here.
11188
2bf6fb9d
PA
111892015-03-24 Pedro Alves <palves@redhat.com>
11190
11191 * linux-nat.c (linux_nat_resume): Output debug logs before trying
11192 to resume the event lwp. Use the lwp's ptid instead of the passed
11193 in (maybe wildcard) ptid.
11194 (stop_wait_callback): Tweak debug log output.
11195 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
11196 TRAP_TRACE.
11197 (linux_nat_filter_event): In debug output, distinguish a
11198 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
11199 before trying to resume the lwp.
11200
283a9958
JB
112012015-03-24 Joel Brobecker <brobecker@adacore.com>
11202
11203 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
11204 pointer indirection.
11205 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
11206 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
11207
93a8e227
JB
112082015-03-24 Joel Brobecker <brobecker@adacore.com>
11209
11210 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
11211 Renames DYN_ATTR_DATA_LOCATION.
11212 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
11213 DYN_ATTR_DATA_LOCATION.
11214 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
11215 instead of DYN_ATTR_DATA_LOCATION.
11216
64ce06e4
PA
112172015-03-24 Pedro Alves <palves@redhat.com>
11218
11219 * breakpoint.c (until_break_command): Adjust call to proceed.
11220 * gdbthread.h (struct thread_control_state) <stepping_command>:
11221 New field.
11222 * infcall.c (run_inferior_call): Adjust call to proceed.
11223 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
11224 Adjust calls to proceed.
11225 (set_step_frame): Set the current thread's step_start_function
11226 here.
11227 (step_once): Adjust calls to proceed.
11228 (jump_command, signal_command, until_next_command)
11229 (finish_backward, finish_forward, proceed_after_attach_callback)
11230 (attach_command_post_wait): Adjust calls to proceed.
11231 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
11232 (do_target_resume): New function, factored out from ...
11233 (resume): ... here. Remove 'step' parameter. Instead, check
11234 currently_stepping to determine whether the thread should be
11235 single-stepped.
11236 (proceed): Remove 'step' parameter and don't set the thread's
11237 step_start_function here. Adjust call to 'resume'.
11238 (handle_inferior_event): Adjust calls to 'resume'.
11239 (switch_back_to_stepped_thread): Use do_target_resume instead of
11240 'resume'.
11241 (keep_going): Adjust calls to 'resume'.
11242 * infrun.h (proceed): Remove 'step' parameter.
11243 (resume): Likewise.
11244 * windows-nat.c (do_initial_windows_stuff): Adjust call to
11245 'resume'.
11246 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
11247
856e7dd6
PA
112482015-03-24 Pedro Alves <palves@redhat.com>
11249
11250 * gdbthread.h (struct thread_control_state) <stepping_command>:
11251 New field.
11252 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
11253 the thread's stepping_command field.
11254 * infrun.c (resume): Check the thread's stepping_command flag to
11255 determine which threads should be resumed. Rename 'entry_step'
11256 local to user_step.
11257 (clear_proceed_status_thread): Clear 'stepping_command'.
11258 (schedlock_applies): Change parameter type to struct thread_info
11259 pointer. Adjust.
11260 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
11261 (switch_back_to_stepped_thread): Adjust calls to
11262 'schedlock_applies'.
11263 (_initialize_infrun): Adjust "set scheduler-locking step" help.
11264
885eeb5b
PA
112652015-03-24 Pedro Alves <palves@redhat.com>
11266
11267 * infrun.c (step_start_function): Delete and ...
11268 * gdbthread.h (struct thread_control_state) <step_start_function>:
11269 ... now a field here.
11270 * infrun.c (clear_proceed_status_thread): Clear the thread's
11271 step_start_function.
11272 (proceed, process_event_stop_test, print_stop_event): Adjust.
11273
3333f03a
PA
112742015-03-24 Pedro Alves <palves@redhat.com>
11275
11276 * infrun.c (proceed): No longer handle negative step.
11277
369f6daa
GB
112782015-03-24 Gary Benson <gbenson@redhat.com>
11279
11280 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
11281 (x86_linux_prepare_to_resume): Likewise.
11282 * x86-linux-nat.c (x86_linux_new_thread):
11283 Moved to nat/x86-linux.c.
11284 (x86_linux_prepare_to_resume): Likewise.
11285 * nat/x86-linux.c (x86_linux_new_thread): New function.
11286 (x86_linux_prepare_to_resume): Likewise.
11287
8e5d4070
GB
112882015-03-24 Gary Benson <gbenson@redhat.com>
11289
11290 * nat/x86-linux-dregs.h: New file.
11291 * nat/x86-linux-dregs.c: Likewise.
11292 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
11293 (x86-linux-dregs.o): New rule.
11294 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
11295 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11296 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
11297 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11298 (x86_linux_dr_get): Likewise.
11299 (x86_linux_dr_set): Likewise.
11300 (x86_linux_dr_get_addr): Likewise.
11301 (x86_linux_dr_get_control): Likewise.
11302 (x86_linux_dr_get_status): Likewise.
11303 (update_debug_registers_callback): Likewise.
11304 (x86_linux_dr_set_control): Likewise.
11305 (x86_linux_dr_set_addr): Likewise.
11306 (x86_linux_update_debug_registers): Likewise.
11307
2b95d440
GB
113082015-03-24 Gary Benson <gbenson@redhat.com>
11309
11310 * x86-linux-nat.c (x86_linux_update_debug_registers):
11311 New function, factored out from...
11312 (x86_linux_prepare_to_resume): ...this.
11313
14b0bc68
GB
113142015-03-24 Gary Benson <gbenson@redhat.com>
11315
11316 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
11317 (x86_linux_dr_set): Likewise.
11318 (x86_linux_dr_get_addr): Likewise.
11319 (x86_linux_dr_get_control): Likewise.
11320 (x86_linux_dr_get_status): Likewise.
11321 (update_debug_registers_callback): Likewise.
11322 (x86_linux_dr_set_control): Likewise.
11323 (x86_linux_dr_set_addr): Likewise.
11324 (x86_linux_prepare_to_resume): Likewise.
11325 (x86_linux_new_thread): Likewise.
11326
5dfe6ca8
GB
113272015-03-24 Gary Benson <gbenson@redhat.com>
11328
11329 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
11330 (x86_linux_new_thread): Rename argument.
11331
4b134ca1
GB
113322015-03-24 Gary Benson <gbenson@redhat.com>
11333
11334 * nat/x86-linux.h: New file.
11335 * nat/x86-linux.c: Likewise.
11336 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
11337 (x86-linux.o): New rule.
11338 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
11339 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11340 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
11341 (lwp_set_arch_private_info): New declaration.
11342 (lwp_arch_private_info): Likewise.
11343 * linux-nat.c (lwp_set_arch_private_info): New function.
11344 (lwp_arch_private_info): Likewise.
11345 * x86-linux-nat.c: Include nat/x86-linux.h.
11346 (arch_lwp_info): Removed structure.
11347 (update_debug_registers_callback):
11348 Use lwp_set_debug_registers_changed.
11349 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11350 and lwp_set_debug_registers_changed.
11351 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11352
cff068da
GB
113532015-03-24 Gary Benson <gbenson@redhat.com>
11354
11355 * nat/linux-nat.h (ptid_of_lwp): New declaration.
11356 (lwp_is_stopped): Likewise.
11357 (lwp_stop_reason): Likewise.
11358 * linux-nat.c (ptid_of_lwp): New function.
11359 (lwp_is_stopped): Likewise.
11360 (lwp_is_stopped_by_watchpoint): Likewise.
11361 * x86-linux-nat.c (update_debug_registers_callback):
11362 Use lwp_is_stopped.
11363 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11364 lwp_stop_reason.
11365
b2f7c7e8
GB
113662015-03-24 Gary Benson <gbenson@redhat.com>
11367
11368 * linux-nat.h (linux_stop_lwp): Move declaration to...
11369 * nat/linux-nat.h (linux_stop_lwp): New declaration.
11370
6d4ee8c6
GB
113712015-03-24 Gary Benson <gbenson@redhat.com>
11372
11373 * linux-nat.h: Include nat/linux-nat.h.
11374 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
11375 * nat/linux-nat.h (struct lwp_info): New forward declaration.
11376 (iterate_over_lwps_ftype): New typedef.
11377 (iterate_over_lwps): New declaration.
11378 * linux-nat.h (iterate_over_lwps): Update comment. Use
11379 iterate_over_lwps_ftype. Update callback return value check.
11380
70a0bb6b
GB
113812015-03-24 Gary Benson <gbenson@redhat.com>
11382
11383 * x86-nat.h (x86_debug_reg_state): Move declaration to...
11384 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
11385
7b669087
GB
113862015-03-24 Gary Benson <gbenson@redhat.com>
11387
11388 * nat/linux-nat.h (current_lwp_ptid): New declaration.
11389 * linux-nat.c (current_lwp_ptid): New function.
11390 * x86-linux-nat.c: Include nat/linux-nat.h.
11391 (x86_linux_dr_get_addr): Use current_lwp_ptid.
11392 (x86_linux_dr_get_control): Likewise.
11393 (x86_linux_dr_get_status): Likewise.
11394 (x86_linux_dr_set_control): Likewise.
11395 (x86_linux_dr_set_addr): Likewise.
11396
15630549
AT
113972015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
11398
11399 PR breakpoints/16466
11400 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
11401
8a4506c0
JB
114022015-03-23 Joel Brobecker <brobecker@adacore.com>
11403
11404 * ser-mingw.c (ser_windows_setparity): Fix indentation.
11405 * ser-unix.c (hardwire_setparity): Likewise.
11406
236af5e3
YG
114072015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
11408
11409 * NEWS: Mention set/show serial parity command.
11410 * monitor.c (monitor_open): Call serial_setparity.
11411 * remote.c (remote_open_1): Likewise.
11412 * ser-base.c (ser_base_serparity): New function.
11413 * ser-base.h (ser_base_setparity): Add declaration.
11414 * ser-go32.c (dos_ops): Set "setparity" field.
11415 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
11416 state.Parity.
11417 (ser_windows_setparity): New function.
11418 (hardwire_ops): Add ser_windows_setparity.
11419 (tty_ops): Add NULL for setparity field.
11420 (pipe_ops): Add ser_base_setparity.
11421 (tcp_ops): Likewise.
11422 * ser-pipe.c (pipe_ops): Likewise.
11423 * ser-tcp.c (tcp_ops): Likewise.
11424 * ser-unix.c (hardwire_setparity): Add declaration.
11425 (hardwire_raw): Don't reset PARENB flag.
11426 (hardwire_setparity): New function.
11427 (hardwire_ops): Add hardwire_setparity.
11428 * serial.c (serial_setparity): New function.
11429 (serial_parity): New global.
11430 (parity_none, parity_odd, parity_even, parity_enums, parity):
11431 New static globals.
11432 (set_parity): New function.
11433 (_initialize_serial): Add set/show serial parity commands.
11434 * serial.h (GDBPARITY_NONE): Define.
11435 (GDBPARITY_ODD): Define.
11436 (GDBPARITY_EVEN): Define.
11437 (serial_setparity) Add declaration.
11438 (struct serial_ops): Add setparity field.
11439 * target.h (serial_parity): Add declaration.
11440
32b40af9
KS
114412015-03-23 Keith Seitz <keiths@redhat.com>
11442
11443 * linespec.c (linespec_lexer_lex_keyword): Update comment.
11444
693dca06
KS
114452015-03-23 Keith Seitz <keiths@redhat.com>
11446
11447 * breakpoint.c (parse_breakpoint_sals): Use
11448 linespec_lexer_lex_keyword to ascertain if the user specified
11449 a NULL location.
11450 * linespec.c [IF_KEYWORD_INDEX]: Define.
11451 (linespec_lexer_lex_keyword): Export.
11452 (struct ls_parser) <keyword_ok>: Remove.
11453 A keyword is only a keyword if not followed by another keyword.
11454 (linespec_lexer_lex_one): Remove keyword_ok handling.
11455 Add comment explaining why the parsing stream is not advanced
11456 when a keyword is seen.
11457 (parse_linespec): Remove parser->keyword_ok.
11458 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
11459
7e993ebf
KS
114602015-03-23 Keith Seitz <keiths@redhat.com>
11461
11462 PR gdb/18021
11463 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
11464 if we find a static method with DW_AT_vtable_elem_location.
11465
b1a0f704
EZ
114662015-03-21 Eli Zaretskii <eliz@gnu.org>
11467
11468 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
11469 before the second loop, to avoid undefined behavior. Reported by
11470 Anton Blanchard <anton@samba.org>.
11471
d9823cbb
KB
114722015-03-20 Keven Boell <keven.boell@intel.com>
11473
11474 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
11475 data_location usage to linked list.
11476 (resolve_dynamic_type_internal): Adapt data_location to
11477 linked list.
11478 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
11479 (copy_type_recursive, copy_type): Add copy of linked list.
11480 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
11481 (struct dynamic_prop_list): New struct.
11482 * dwarf2read.c (set_die_type): Set data_location data.
11483
2e7bf1d7
PA
114842015-03-20 Pedro Alves <palves@redhat.com>
11485
11486 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
11487 inner block and make it const.
11488 * machoread.c (get_archive_prefix_len): Make "lparen" const.
11489
7a26bd4d
PA
114902015-03-20 Pedro Alves <palves@redhat.com>
11491
11492 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
11493 * breakpoint.h (set_breakpoint_condition): Update declaration.
11494
cd46431b
PA
114952015-03-20 Pedro Alves <palves@redhat.com>
11496
11497 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
11498
e28566f7
PA
114992015-03-20 Pedro Alves <palves@redhat.com>
11500
11501 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
11502
f6fc92f6
PA
115032015-03-20 Pedro Alves <palves@redhat.com>
11504
11505 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
11506
c32ed3ef
PA
115072015-03-20 Pedro Alves <palves@redhat.com>
11508
11509 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
11510 (nto_init_solib_absolute_prefix): Likewise.
11511
53e78085
PA
115122015-03-20 Pedro Alves <palves@redhat.com>
11513
11514 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
11515 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
11516
bc23328c
JK
115172015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11518
11519 * config/djgpp/README: Remove gdb.hp.
11520
e8ffc436
YQ
115212015-03-20 Yao Qi <yao.qi@linaro.org>
11522
11523 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
11524 set_gdbarch_cannot_step_breakpoint.
11525
23f238d3
PA
115262015-03-19 Pedro Alves <palves@redhat.com>
11527
11528 * linux-nat.c (linux_resume_one_lwp): Rename to ...
11529 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11530 instead call perror_with_name.
11531 (check_ptrace_stopped_lwp_gone): New function.
11532 (linux_resume_one_lwp): Reimplement as wrapper around
11533 linux_resume_one_lwp_throw that swallows errors if the LWP is
11534 gone.
11535 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
11536 swallows errors if the LWP is gone. Use
11537 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
11538
eb54c8bf
PA
115392015-03-19 Pedro Alves <palves@redhat.com>
11540
11541 * linux-nat.c (status_callback): Return early if the LWP has no
11542 status pending.
11543
b90fc188
PA
115442015-03-19 Pedro Alves <palves@redhat.com>
11545
11546 * linux-nat.c (select_event_lwp_callback): Update comment to no
11547 longer mention SIGTRAP.
11548
670f82d4
TG
115492015-03-18 Tristan Gingold <gingold@adacore.com>
11550
72f4393d
L
11551 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
11552 redirection code to ...
11553 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
11554 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 11555
464b0089
GB
115562015-03-18 Gary Benson <gbenson@redhat.com>
11557
11558 (remote_protocol_features): Remove the "vFile:fstat" feature.
11559 (remote_hostio_fstat): Probe for "vFile:fstat" support.
11560
f68f11b7
YQ
115612015-03-11 Yao Qi <yao.qi@linaro.org>
11562
11563 PR tdep/18107
11564 * aarch64-linux-tdep.c: Include xml-syscall.h
11565 (aarch64_linux_get_syscall_number): New function.
11566 (aarch64_linux_init_abi): Call
11567 set_gdbarch_get_syscall_number.
11568 * syscalls/aarch64-linux.xml: New file.
11569
393bd0c0
YG
115702015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
11571
11572 * ser-base.h (ser_base_setstopbits): Change second argument name
11573 from "rate" to "num".
11574
7f3647e2
GB
115752015-03-17 Gary Benson <gbenson@redhat.com>
11576 Luke Allardyce <lukeallardyce@gmail.com>
11577
11578 PR gdb/18131
11579 * common/common-remote-fileio.h (sys/stat.h): New include.
11580 (stuct stat): Remove forward declaration.
11581
3ce5b6e2
JB
115822015-03-16 John Baldwin <jhb@FreeBSD.org>
11583
11584 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
11585 before writing core register notes.
11586
d053f6be
YZ
115872015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
11588 Pedro Alves <palves@redhat.com>
11589
11590 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
11591 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
11592 (tgoto): Wrap with extern "C".
11593
b1a921c8
PA
115942015-03-16 Pedro Alves <palves@redhat.com>
11595 Yuanhui Zhang <asmwarrior@gmail.com>
11596
11597 * stub-termcap.c (tputs): Change prototype.
11598
876d1cd7
YZ
115992015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
11600 Pedro Alves <palves@redhat.com>
11601
11602 * windows-nat.c (struct thread_info_struct): Rename to ...
11603 (struct windows_thread_info_struct): ... this.
11604 (thread_info): Rename to ...
11605 (windows_thread_info): ... this.
11606 All users updated.
11607
0800b440
JK
116082015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11609 Pedro Alves <palves@redhat.com>
11610
11611 * NEWS: New Removed targets and native configurations.
11612
116132015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
11614
11615 Remove HPUX.
11616 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
11617 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
11618 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
11619 ia64-hpux-tdep.h, solib-ia64-hpux.h.
11620 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
11621 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
11622 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
11623 hppa-hpux-tdep.c.
11624 * config/ia64/hpux.mh: Remove file.
11625 * config/pa/hpux.mh: Remove file.
11626 * configure: Rebuilt.
11627 * configure.ac (dlgetmodinfo, somread.o): Remove.
11628 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11629 (ia64-*-hpux*): Remove its float format exception.
11630 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11631 * hppa-hpux-nat.c: Remove file.
11632 * hppa-hpux-tdep.c: Remove file.
11633 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
11634 Move them here from hppa-tdep.h
11635 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
11636 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
11637 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
11638 Move them to hppa-tdep.c.
11639 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
11640 declarations.
11641 * ia64-hpux-nat.c: Remove file.
11642 * ia64-hpux-tdep.c: Remove file.
11643 * ia64-hpux-tdep.h: Remove file.
11644 * inf-ttrace.c: Remove file.
11645 * inf-ttrace.h: Remove file.
11646 * solib-ia64-hpux.c: Remove file.
11647 * solib-ia64-hpux.h: Remove file.
11648 * solib-pa64.c: Remove file.
11649 * solib-pa64.h: Remove file.
11650 * solib-som.c: Remove file.
11651 * solib-som.h: Remove file.
11652 * somread.c: Remove file.
11653
25268153
JB
116542015-03-13 John Baldwin <jhb@FreeBSD.org>
11655
11656 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
11657 * config.in: Regenerate.
11658 * configure: Regenerate.
11659 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 11660 define.
25268153
JB
11661 (fbsd_find_memory_regions): Use kinfo_getvmmap to
11662 enumerate memory regions if present.
11663
773eacf5
JB
116642015-03-13 John Baldwin <jhb@FreeBSD.org>
11665
11666 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
11667 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
11668 expressions.
11669 (i386fbsd_sigtramp_p): Likewise.
11670
01b6bdb0
JB
116712015-03-12 John Baldwin <jhb@FreeBSD.org>
11672
11673 * MAINTAINERS (Write After Approval): Add John Baldwin.
11674
811a659a
GB
116752015-03-12 Gary Benson <gbenson@redhat.com>
11676
11677 * solib.c (_initialize_solib): Make "set/show sysroot" use
11678 add_setshow_optional_filename_cmd so it can be restored to
11679 empty after being set.
11680
10304ef3
SDJ
116812015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
11682
11683 * Makefile.in (SFILES): New source break-catch-syscall.c.
11684 (COMMON_OBS): New object break-catch-syscall.o.
11685 * break-catch-syscall.c: New file.
11686 * breakpoint.c: Remove inclusion of "xml-syscall.h".
11687 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
11688 (struct syscall_catchpoint): Likewise.
11689 (dtor_catch_syscall): Likewise.
11690 (catch_syscall_inferior_data): Likewise.
11691 (struct catch_syscall_inferior_data): Likewise.
11692 (get_catch_syscall_inferior_data): Likewise.
11693 (catch_syscall_inferior_data_cleanup): Likewise.
11694 (insert_catch_syscall): Likewise.
11695 (remove_catch_syscall): Likewise.
11696 (breakpoint_hit_catch_syscall): Likewise.
11697 (print_it_catch_syscall): Likewise.
11698 (print_one_catch_syscall): Likewise.
11699 (print_mention_catch_syscall): Likewise.
11700 (print_recreate_catch_syscall): Likewise.
11701 (catch_syscall_breakpoint_ops): Likewise.
11702 (syscall_catchpoint_p): Likewise.
11703 (create_syscall_event_catchpoint): Likewise.
11704 (catch_syscall_split_args): Likewise.
11705 (catch_syscall_command_1): Likewise.
11706 (is_syscall_catchpoint_enabled): Likewise.
11707 (catch_syscall_enabled): Likewise.
11708 (catching_syscall_number): Likewise.
11709 (catch_syscall_completer): Likewise.
11710 (clear_syscall_counts): Likewise.
11711 (initialize_breakpoint_ops): Move initialization of syscall
11712 catchpoints to break-catch-syscall.c.
11713 (_initialize_breakpoint): Move code related to syscall catchpoints
11714 to break-catch-syscall.c.
11715
badd37ce
SDJ
117162015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
11717
11718 * breakpoint.c (breakpoint_find_if): New function.
11719 * breakpoint.h (breakpoint_find_if): New prototype.
11720
0a93529c
GB
117212015-03-11 Gary Benson <gbenson@redhat.com>
11722
11723 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
11724 * remote-fileio.c (remote_fileio_to_host_uint): New function.
11725 (remote_fileio_to_host_ulong): Likewise.
11726 (remote_fileio_to_host_mode): Likewise.
11727 (remote_fileio_to_host_time): Likewise.
11728 (remote_fileio_to_host_stat): Likewise.
11729 * remote.c (PACKET_vFile_fstat): New enum value.
11730 (remote_protocol_features): Register the "vFile:fstat" feature.
11731 (remote_hostio_fstat): New function.
11732 (remote_bfd_iovec_stat): Use the above.
11733 (_initialize_remote): Register new "set/show remote
11734 hostio-fstat-packet" command.
11735 * symfile.c (separate_debug_file_exists): Update comment.
11736 * NEWS: Announce new vFile:fstat packet.
11737
791c0056
GB
117382015-03-11 Gary Benson <gbenson@redhat.com>
11739
11740 * common/common-remote-fileio.h: New file.
11741 * common/common-remote-fileio.c: Likewise.
11742 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11743 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
11744 (COMMON_OBS): Add common-remote-fileio.o.
11745 (common-remote-fileio.o): New rule.
11746 * remote-fileio.h (common-remote-fileio.h): New include.
11747 * remote-fileio.c (gdb/fileio.h): Do not include.
11748 (remote_fileio_to_be): Moved to common-remote-fileio.h.
11749 (remote_fileio_to_fio_uint): Likewise.
11750 (remote_fileio_to_fio_time): Likewise.
11751 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
11752 (remote_fileio_to_fio_mode): Likewise.
11753 (remote_fileio_to_fio_ulong): Likewise.
11754 (remote_fileio_to_fio_stat): Likewise.
11755
1390d0ef
AW
117562015-03-11 Andy Wingo <wingo@igalia.com>
11757
11758 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
11759 we were checking the cached type, not the cached dynamic type.
11760
84a4591a
AW
117612015-03-11 Andy Wingo <wingo@igalia.com>
11762
11763 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
11764 other strings, as these are on the GC'd heap, and will be
11765 collected along with the smob.
11766
85642ba0
AW
117672015-03-11 Andy Wingo <wingo@igalia.com>
11768
11769 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
11770 (objfile_functions): Bind gdbscm_objfile_progspace to
11771 objfile-progspace.
11772 * guile/lib/gdb.scm: Add objfile-progspace to exports.
11773
92fab5a6
AW
117742015-03-11 Andy Wingo <wingo@igalia.com>
11775
11776 * guile/guile.c (_initialize_guile): Disable automatic
11777 finalization, if Guile offers us that possibility.
11778 * guile/guile.c (call_initialize_gdb_module):
11779 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
11780 finalizers in appropriate places.
11781 * configure.ac (AC_TRY_LIBGUILE): Add a check for
11782 scm_set_automatic_finalization_enabled.
11783 * configure: Regenerated.
11784
f054145e
AA
117852015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11786
11787 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
11788 SAL, if possible.
11789
18396193
AA
117902015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11791
11792 * s390-linux-nat.c (struct arch_lwp_info): New.
11793 (s390_fix_watch_points): Rename to...
11794 (s390_prepare_to_resume): ...this. Skip the PER info update
11795 unless the watch points have changed.
11796 (s390_refresh_per_info, s390_new_thread): New functions.
11797 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
11798 s390_fix_watch_points.
11799 (s390_remove_watchpoint): Likewise.
11800 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
11801 Register s390_prepare_to_resume.
11802
9eb1356e
PA
118032015-03-09 Pedro Alves <palves@redhat.com>
11804
11805 Revert:
11806 2015-03-07 Pedro Alves <palves@redhat.com>
11807 * common/gdb_socket.h: New file.
11808 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11809 sys/socket.h.
11810 (net_open): Use union gdb_sockaddr_u.
11811
aac331e4
PA
118122015-03-07 Pedro Alves <palves@redhat.com>
11813
11814 * configure.ac (build_warnings): Move -Wmissing-prototypes
11815 -Wdeclaration-after-statement -Wmissing-parameter-type
11816 -Wold-style-declaration -Wold-style-definition to the C-specific
11817 set.
11818 * configure: Regenerate.
11819
366c75fc
PA
118202015-03-07 Pedro Alves <palves@redhat.com>
11821
11822 * common/gdb_socket.h: New file.
11823 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11824 sys/socket.h.
11825 (net_open): Use union gdb_sockaddr_u.
11826
72df25b2
PA
118272015-03-07 Pedro Alves <palves@redhat.com>
11828
11829 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
11830 (exceptions_state_mc_action_iter)
11831 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11832 Don't define.
11833 [__cplusplus] (try_scope_depth): New global.
11834 [__cplusplus] (exception_try_scope_entry)
11835 (exception_try_scope_exit, gdb_exception_sliced_copy)
11836 (exception_rethrow): New functions.
11837 (throw_exception): In C++ mode, throw
11838 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
11839 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
11840 (throw_it): In C++ mode, use try_scope_depth.
11841 * common/common-exceptions.h [!__cplusplus]
11842 (exceptions_state_mc_action_iter)
11843 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11844 Don't declare.
11845 [__cplusplus] (exception_try_scope_entry)
11846 (exception_try_scope_exit, exception_rethrow): Declare.
11847 [__cplusplus] (struct exception_try_scope): New struct.
11848 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
11849 C++ exceptions.
11850 (struct gdb_exception_RETURN_MASK_ALL)
11851 (struct gdb_exception_RETURN_MASK_ERROR)
11852 (struct gdb_exception_RETURN_MASK_QUIT): New types.
11853
284e6217
PA
118542015-03-07 Pedro Alves <palves@redhat.com>
11855
11856 * main.c (handle_command_errors): Remove volatile qualifier from
11857 parameter.
11858
6c63c96a
PA
118592015-03-07 Pedro Alves <palves@redhat.com>
11860
11861 * breakpoint.c (save_breakpoints): Adjust to avoid code between
11862 TRY and CATCH.
11863 * gdbtypes.c (safe_parse_type): Remove empty line.
11864 (types_deeply_equal):
11865 * guile/scm-frame.c (gdbscm_frame_name):
11866 * linux-thread-db.c (find_new_threads_once):
11867 * python/py-breakpoint.c (bppy_get_commands):
11868 * record-btrace.c (record_btrace_insert_breakpoint)
11869 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
11870 (record_btrace_start_replaying): Adjust to avoid code between TRY
11871 and CATCH.
11872
492d29ea
PA
118732015-03-07 Pedro Alves <palves@redhat.com>
11874
11875 * common/common-exceptions.c (struct catcher) <exception>: No
11876 longer a pointer to volatile exception. Now an exception value.
11877 <mask>: Delete field.
11878 (exceptions_state_mc_init): Remove all parameters. Adjust.
11879 (exceptions_state_mc): No longer pop the catcher here.
11880 (exceptions_state_mc_catch): New function.
11881 (throw_exception): Adjust.
11882 * common/common-exceptions.h (exceptions_state_mc_init): Remove
11883 all parameters.
11884 (exceptions_state_mc_catch): Declare.
11885 (TRY_CATCH): Rename to ...
11886 (TRY): ... this. Remove EXCEPTION and MASK parameters.
11887 (CATCH, END_CATCH): New.
11888 All callers adjusted.
11889
ece957c8
TT
118902015-03-07 Tom Tromey <tromey@redhat.com>
11891
11892 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
11893
7556d4a4
PA
118942015-03-07 Pedro Alves <palves@redhat.com>
11895
11896 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11897 (amd64_epilogue_frame_cache): Normal exception handling code.
11898 * break-catch-throw.c (check_status_exception_catchpoint)
11899 (re_set_exception_catchpoint): Ditto.
11900 * cli/cli-interp.c (safe_execute_command):
11901 * cli/cli-script.c (script_from_file): Ditto.
11902 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
11903 Ditto.
11904 * compile/compile-object-run.c (compile_object_run): Ditto.
11905 * cp-abi.c (baseclass_offset): Ditto.
11906 * cp-valprint.c (cp_print_value): Ditto.
11907 * exceptions.c (catch_exceptions_with_msg):
11908 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
11909 * frame.c (get_frame_address_in_block_if_available): Ditto.
11910 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11911 (i386_sigtramp_frame_cache): Ditto.
11912 * infcmd.c (post_create_inferior): Ditto.
11913 * linespec.c (parse_linespec, find_linespec_symbols):
11914 * p-valprint.c (pascal_object_print_value): Ditto.
11915 * parse.c (parse_expression_for_completion): Ditto.
11916 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
11917 * remote.c (remote_get_noisy_reply): Ditto.
11918 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
11919 * solib-svr4.c (solib_svr4_r_map): Ditto.
11920
f873665f 119212015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
11922
11923 * common/common-utils.h (startswith): New inline function.
11924 All places where this logic was used updated to use the above.
11925
68901c4d
PA
119262015-03-05 Pedro Alves <palves@redhat.com>
11927
11928 PR gdb/18002
11929 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
11930 after reading the breakpoint's shadow memory.
11931
2dcb2b1a
MK
119322015-03-05 Mark Kettenis <kettenis@gnu.org>
11933
11934 * hppabsd-nat.c: Remove file.
11935 * hppaobsd-nat.c: New file.
11936 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
11937 hppaobsd-nat.c.
11938 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
11939 hppaobsd-nat.o.
11940
527a273a
PA
119412015-03-04 Pedro Alves <palves@redhat.com>
11942
11943 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
11944 (target_decr_pc_after_break): Delete declaration.
11945 * target.c (default_target_decr_pc_after_break)
11946 (target_decr_pc_after_break): Delete.
11947 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
11948 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
11949 * linux-thread-db.c (check_event): Likewise.
11950 * infrun.c (adjust_pc_after_break): Likewise.
11951 * darwin-nat.c (cancel_breakpoint): Likewise.
11952 * aix-thread.c (aix_thread_wait): Likewise.
11953 * target-delegates.c: Regenerate.
11954
faf09f01
PA
119552015-03-04 Pedro Alves <palves@redhat.com>
11956
11957 * linux-nat.c (save_sigtrap): Check for breakpoints before
11958 checking watchpoints.
11959 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11960 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11961 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
11962 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
11963 (linux_nat_stopped_by_sw_breakpoint)
11964 (linux_nat_supports_stopped_by_sw_breakpoint)
11965 (linux_nat_stopped_by_hw_breakpoint)
11966 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
11967 (linux_nat_wait_1): Don't re-increment the PC if relying on
11968 SIGTRAP's siginfo->si_code.
11969 (linux_nat_add_target): Install new target methods.
11970 * linux-thread-db.c (check_event): Don't account for breakpoint PC
11971 offset if the target already adjusted the PC.
11972 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
11973 (GDB_ARCH_TRAP_BRKPT): New.
11974 (TRAP_HWBKPT): Define if not already defined.
11975
f7e6eed5
PA
119762015-03-04 Pedro Alves <palves@redhat.com>
11977
11978 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
11979 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
11980 Delete field.
11981 <stop_reason>: New field.
11982 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
11983 (packet_set_cmd_state): New function.
11984 (remote_protocol_features): Register the "swbreak" and "hwbreak"
11985 features.
11986 (remote_query_supported): If not disabled with the corresponding
11987 "set remote foo-packet" command, report support for the swbreak
11988 and hwbreak features.
11989 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
11990 field.
11991 <stop_reason>: New field.
11992 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
11993 (remote_wait_as): Adjust.
11994 (remote_stopped_by_sw_breakpoint)
11995 (remote_supports_stopped_by_sw_breakpoint)
11996 (remote_stopped_by_hw_breakpoint)
11997 (remote_supports_stopped_by_hw_breakpoint): New functions.
11998 (remote_stopped_by_watchpoint): New function.
11999 (init_remote_ops): Install them.
12000 (_initialize_remote): Register new "set/show remote
12001 swbreak-feature-packet" and "set/show remote
12002 swbreak-feature-packet" commands.
12003
9e8915c6
PA
120042015-03-04 Pedro Alves <palves@redhat.com>
12005
12006 * btrace.h: Include target/waitstatus.h.
12007 (struct btrace_thread_info) <stop_reason>: New field.
12008 * record-btrace.c (record_btrace_step_thread): Use
12009 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
12010 (record_btrace_decr_pc_after_break): Delete.
12011 (record_btrace_stopped_by_sw_breakpoint)
12012 (record_btrace_supports_stopped_by_sw_breakpoint)
12013 (record_btrace_stopped_by_hw_breakpoint)
12014 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
12015 (init_record_btrace_ops): Install them.
12016 * record-full.c (record_full_hw_watchpoint): Delete and replace
12017 with ...
12018 (record_full_stop_reason): ... this throughout.
12019 (record_full_exec_insn): Adjust.
12020 (record_full_wait_1): Adjust. No longer re-increment the PC.
12021 (record_full_wait_1): Adjust. Use
12022 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
12023 (record_full_stopped_by_watchpoint): Adjust.
12024 (record_full_stopped_by_sw_breakpoint)
12025 (record_full_supports_stopped_by_sw_breakpoint)
12026 (record_full_supports_stopped_by_sw_breakpoint)
12027 (record_full_stopped_by_hw_breakpoint)
12028 (record_full_supports_stopped_by_hw_breakpoint): New functions.
12029 (init_record_full_ops, init_record_full_core_ops): Install them.
12030 * record.c (record_check_stopped_by_breakpoint): New function.
12031 * record.h: Include target/waitstatus.h.
12032 (record_check_stopped_by_breakpoint): New declaration.
12033
15c66dd6
PA
120342015-03-04 Pedro Alves <palves@redhat.com>
12035
12036 enum lwp_stop_reason -> enum target_stop_reason
12037 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
12038 (linux_nat_stopped_by_watchpoint, status_callback)
12039 (linux_nat_wait_1): Adjust.
12040 * linux-nat.h (enum lwp_stop_reason): Delete.
12041 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12042 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12043 * target/waitstatus.h (enum target_stop_reason): New.
12044
1cf4d951
PA
120452015-03-04 Pedro Alves <palves@redhat.com>
12046
12047 * breakpoint.c (need_moribund_for_location_type): New function.
12048 (bpstat_stop_status): Don't skipping checking moribund locations
12049 of breakpoint types which the target tell caused a stop.
12050 (program_breakpoint_here_p): New function, factored out from ...
12051 (bp_loc_is_permanent): ... this.
12052 (update_global_location_list): Don't create a moribund location if
12053 the target supports reporting stops of the type of the removed
12054 breakpoint.
12055 * breakpoint.h (program_breakpoint_here_p): New declaration.
12056 * infrun.c (adjust_pc_after_break): Return early if the target has
12057 already adjusted the PC. Add comments.
12058 (handle_signal_stop): If nothing explains a signal, and the target
12059 tells us the stop was caused by a software breakpoint, check if
12060 there's a breakpoint instruction in the memory. If so, adjust the
12061 PC before presenting the stop to the user. Otherwise, ignore the
12062 trap. If nothing explains a signal, and the target tells us the
12063 stop was caused by a hardware breakpoint, ignore the trap.
12064 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
12065 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
12066 to_supports_stopped_by_hw_breakpoint>: New fields.
12067 (target_stopped_by_sw_breakpoint)
12068 (target_supports_stopped_by_sw_breakpoint)
12069 (target_stopped_by_hw_breakpoint)
12070 (target_supports_stopped_by_hw_breakpoint): Define.
12071 * target-delegates.c: Regenerate.
12072
79639e11
PA
120732015-03-04 Pedro Alves <palves@redhat.com>
12074
12075 * infrun.c (follow_fork_inferior): Use the whole of the
12076 inferior_ptid and pending_follow.related_pid ptids instead of
12077 building ptids from the process components. Adjust verbose output
12078 to use target_pid_to_str.
12079 * linux-nat.c (linux_child_follow_fork): Use the whole of the
12080 inferior_ptid and pending_follow.related_pid ptids instead of
12081 building ptids from the process components.
12082
e85e8e5e
MK
120832015-03-04 Mark Kettenis <kettenis@gnu.org>
12084
12085 * inf-ptrace.c [PT_GET_PROCESS_STATE]
12086 (inf_ptrace_insert_fork_catchpoint): New function.
12087 (inf_ptrace_remove_fork_catchpoint): New function.
12088 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
12089
87de11c0
AA
120902015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12091
12092 * s390-linux-tdep.c (s390_register_name): Return empty string
12093 instead of NULL for registers that shouldn't be visible.
12094
d851a69a
AA
120952015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12096
12097 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
12098 XML file for 64-bit targets.
12099
b072f6c1
SM
121002015-03-03 Simon Marchi <simon.marchi@ericsson.com>
12101
12102 * target.h (find_default_create_inferior): Remove declaration.
12103 (find_default_attach): Likewise.
12104
c1593e4f
PA
121052015-03-03 Pedro Alves <palves@redhat.com>
12106
12107 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
12108 Use ptid_get_pid to get the overall process id when resuming all
12109 threads.
12110
90ad5e1d
PA
121112015-03-03 Pedro Alves <palves@redhat.com>
12112
12113 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
12114 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
12115 * inf-ptrace.c (get_ptrace_pid): New function.
12116 (inf_ptrace_resume): Use it.
12117 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
12118 to the lower layer.
12119
d68e53f4
MM
121202015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12121
12122 * nat/linux-btrace.c: Include sys/utsname.h.
12123 (linux_determine_kernel_ptr_bits): New.
12124 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
12125 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
12126 ptr_bits.
12127
986b6601
MM
121282015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12129
12130 * btrace.c (ftrace_update_function): Treat return as tailcall for
12131 "_dl_runtime_resolve".
12132
ce0dfbea
MM
121332015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12134
12135 * btrace.h (btrace_function) <lbegin, lend>: Remove.
12136 * btrace.c (ftrace_debug): Do not print the line range.
12137 (ftrace_skip_file, ftrace_update_lines): Remove.
12138 (ftrace_new_function): Remove lbegin and lend initialization.
12139 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
12140 * record-btrace.c (btrace_compute_src_line_range): New.
12141 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
12142
95e50b27
PA
121432015-03-02 Pedro Alves <palves@redhat.com>
12144
12145 * infrun.c (follow_exec): Delete all threads of the process except
12146 the event thread. Extended comments.
12147
00e474c2
JB
121482015-03-02 Joel Brobecker <brobecker@adacore.com>
12149
12150 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
12151
cc7039d3
JB
121522015-03-02 Joel Brobecker <brobecker@adacore.com>
12153
12154 * utils.h: Remove <stdbool.h> #include.
12155 (producer_is_gcc): Change return type to "int".
12156 * utils.c (producer_is_gcc): Change return type to int.
12157 Return 1 instead of true, and 0 instead of false.
12158 Adjust function documentation accordingly.
12159
550bdf96
AA
121602015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12161
12162 * s390-linux-nat.c (have_regset_vxrs): New static variable.
12163 (s390_linux_fetch_inferior_registers): Handle vector registers, if
12164 present.
12165 (s390_linux_store_inferior_registers): Likewise.
12166 (s390_get_hwcap): Remove function. Embed its logic...
12167 (s390_read_description): ...here. Yield a target description with
12168 vector registers if applicable.
12169 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
12170 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
12171 "features/s390x-tevx-linux64.c".
12172 (struct gdbarch_tdep) <v0_full_regnum>: New field.
12173 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
12174 for "GNU/Linux-specific registers".
12175 (s390_dwarf_reg_r0l): New enum value.
12176 (s390_dwarf_reg_to_regnum): Support vector registers.
12177 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
12178 of GPR lower halves.
12179 (regnum_is_vxr_full): New function.
12180 (s390_register_name): New function.
12181 (s390_pseudo_register_name): Handle v0-v15, which are composed of
12182 f0-f15 and v0l-v15l.
12183 (s390_pseudo_register_type): Likewise.
12184 (s390_pseudo_register_read): Likewise.
12185 (s390_pseudo_register_write): Likewise.
12186 (s390_value_from_register): Account for the fact that values are
12187 placed left-justified in vector registers.
12188 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
12189 the vector reggroup and omit them from the general reggroup.
12190 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
12191 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
12192 (s390_iterate_over_regset_sections): Add iterations for the two
12193 new vector regsets.
12194 (s390_core_read_description): Yield a target description with
12195 vector registers if applicable.
12196 (s390_gdbarch_init): Handle target descriptions with vector
12197 registers. Add "register_name" gdbarch method.
12198 (_initialize_s390_tdep): Call new tdesc initialization functions.
12199 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
12200 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
12201 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
12202 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
12203 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
12204 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
12205 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
12206 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
12207 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
12208 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
12209 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
12210 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
12211 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
12212 (S390_NUM_REGS): Adjust value.
12213 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
12214 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12215 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
12216 * NEWS: Announce S/390 vector register support.
12217
446899e4
AA
122182015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12219
12220 * features/s390-tevx-linux64.xml: New file.
12221 * features/s390-vx-linux64.xml: New file.
12222 * features/s390-vx.xml: New file.
12223 * features/s390x-tevx-linux64.xml: New file.
12224 * features/s390x-vx-linux64.xml: New file.
12225 * features/Makefile (WHICH): Add s390-vx-linux64,
12226 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
12227 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
12228 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
12229 macros.
12230 * features/s390-tevx-linux64.c: New generated file.
12231 * features/s390-vx-linux64.c: Likewise.
12232 * features/s390x-tevx-linux64.c: Likewise.
12233 * features/s390x-vx-linux64.c: Likewise.
12234 * regformats/s390-tevx-linux64.dat: Likewise.
12235 * regformats/s390-vx-linux64.dat: Likewise.
12236 * regformats/s390x-tevx-linux64.dat: Likewise.
12237 * regformats/s390x-vx-linux64.dat: Likewise.
12238
b7236fbe
DE
122392015-02-28 Doug Evans <xdje42@gmail.com>
12240
12241 * symtab.h (struct symtab) <next>: Fix comment.
12242
02e62830
SM
122432015-02-27 Simon Marchi <simon.marchi@ericsson.com>
12244
12245 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
12246 python_GdbMethods.
12247
bf36a1e7
PA
122482015-02-27 Pedro Alves <palves@redhat.com>
12249
12250 * dtrace-probe.c (dtrace_probe_ops): Make extern.
12251
ad6aff7d
PA
122522015-02-27 Pedro Alves <palves@redhat.com>
12253
12254 * common/common-exceptions.h (exception_none): Declare.
12255 * common/common-exceptions.c (exception_none): Moved from
12256 exceptions.c.
12257 (exceptions_state_mc_init): Use exception_none.
12258 * exceptions.c (exception_none): Move to
12259 common/common-exceptions.c.
12260 * exceptions.h (exception_none): Move to
12261 common/common-exceptions.h.
12262
97c18565
PA
122632015-02-27 Pedro Alves <palves@redhat.com>
12264
12265 * main.c (catch_command_errors, catch_command_errors_const):
12266 Remove 'mask' argument. Adjust.
12267 (captured_main): Adjust callers.
12268
e992c591
PA
122692015-02-27 Pedro Alves <palves@redhat.com>
12270
12271 * python/python-internal.h: Include "extension-priv.h".
12272
64166036
PA
122732015-02-27 Pedro Alves <palves@redhat.com>
12274
12275 * breakpoint.h (enum print_stop_action): Move further up in the
12276 file.
12277
8a526fa6
PA
122782015-02-27 Pedro Alves <palves@redhat.com>
12279
12280 * gdbarch.sh: Include regcache.h.
12281 * gdbarch.h: Regenerate.
12282
0fa9c223
PA
122832015-02-27 Pedro Alves <palves@redhat.com>
12284
12285 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
12286 Remove duplicate const.
12287 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
12288 duplicate const.
12289
7cf99fb1
PA
122902015-02-27 Pedro Alves <palves@redhat.com>
12291
12292 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
12293 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
12294 * features/feature_to_c.sh: Tag the generated xml_builtin array
12295 with extern const in C++ mode.
12296
1424c16e
TT
122972015-02-27 Tom Tromey <tromey@redhat.com>
12298
12299 * minidebug.c (struct lzma_stream): Rename to ...
12300 (struct gdb_lzma_stream): ... this.
12301 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
12302
10367c7c
PA
123032015-02-27 Pedro Alves <palves@redhat.com>
12304
12305 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
12306 function.
12307 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
12308 (mi_cmd_stack_list_variables): Use it.
12309
4180215b
PA
123102015-02-27 Pedro Alves <palves@redhat.com>
12311
12312 * x86-linux-nat.c (u_debugreg_offset): New function.
12313 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12314
2f56f7c3
PA
123152015-02-27 Pedro Alves <palves@redhat.com>
12316
12317 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
12318 declaration.
12319 Include break-common.h.
12320
570dc176
TT
123212015-02-27 Tom Tromey <tromey@redhat.com>
12322 Pedro Alves <palves@redhat.com>
12323
12324 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
12325 local used to iterate over enums.
12326 * completer.c (signal_completer): Likewise.
12327 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
12328 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
12329 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
12330 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
12331 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
12332 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
12333 * tui-wingeneral.c (tui_refresh_all): Likewise.
12334
68c14faa
PA
123352015-02-27 Pedro Alves <palves@redhat.com>
12336
12337 * target.h: Include "infrun.h".
12338
749bab01
PA
123392015-02-27 Pedro Alves <palves@redhat.com>
12340
12341 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12342
3c14e5a3
PA
123432015-02-27 Pedro Alves <palves@redhat.com>
12344
12345 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
12346 (IPA_SYM): Use it.
12347 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
12348
56000a98
PA
123492015-02-27 Pedro Alves <palves@redhat.com>
12350
12351 * cli-out.c (_rl_erase_entire_line): Move declaration out of
12352 cli_mld_erase_entire_line, and make it extern "C".
12353 * common/common-defs.h (EXTERN_C): New.
12354 * completer.c (_rl_completion_prefix_display_length)
12355 (_rl_print_completions_horizontally, QSFUNC): Move declarations
12356 out of gdb_display_match_list_1.
12357 (_rl_qsort_string_compare): Move declaration out of
12358 gdb_display_match_list_1, and make it extern "C".
12359 * defs.h (re_comp): Use EXTERN_C.
12360 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
12361 and make it extern "C".
12362 (monstartup): Move declaration out of maintenance_set_profile_cmd,
12363 and make it extern "C".
12364 (main): Move declaration out of maintenance_set_profile_cmd.
12365 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
12366 EXTERN_C.
12367
bcabf420
PA
123682015-02-27 Pedro Alves <palves@redhat.com>
12369
12370 * python/python.c (GdbMethods): Rename to ...
12371 (python_GdbMethods): ... this and make extern.
12372 (GdbModuleDef): Rename to ...
12373 (python_GdbModuleDef): ... this and make extern.
12374
928dbe07
PA
123752015-02-27 Pedro Alves <palves@redhat.com>
12376
12377 * record-btrace.c (set_record_btrace_cmdlist)
12378 (show_record_btrace_cmdlist): Remove redefinitions.
12379
52059ffd
TT
123802015-02-27 Tom Tromey <tromey@redhat.com>
12381 Pedro Alves <palves@redhat.com>
12382
12383 * dwarf2-frame.c (enum cfa_how_kind, struct
12384 dwarf2_frame_state_reg_info): Move out of struct
12385 dwarf2_frame_state.
12386 * dwarf2read.c (struct tu_stats): Move out of struct
12387 dwarf2_per_objfile.
12388 (struct file_entry): Move out of struct line_header.
12389 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
12390 typedef_field_list): Move out of struct field_info.
12391 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
12392 Move out of struct dynamic_prop.
12393 (union type_owner, union field_location, struct field, struct
12394 range_bounds, union type_specific): Move out of struct main_type.
12395 (struct fn_fieldlist, struct fn_field, struct typedef_field)
12396 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
12397 (struct call_site_target, union call_site_parameter_u, struct
12398 call_site_parameter): Move out of struct call_site.
12399 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
12400 m32c_prologue.
12401 (enum srcdest_kind): Move out of struct srcdest.
12402 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
12403 * prologue-value.h (enum prologue_value_kind): Move out of struct
12404 prologue_value.
12405 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
12406 gdbarch_tdep.
12407 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
12408 out of struct field_info.
12409 * symfile.h (struct other_sections): Move out of struct
12410 section_addr_info.
12411 * symtab.c (struct symbol_cache_slot): Move out struct
12412 block_symbol_cache.
12413 * target-descriptions.c (enum tdesc_type_kind): Move out of
12414 typedef struct tdesc_type.
12415 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
12416 struct tui_line_or_address.
12417 * value.c (enum internalvar_kind, union internalvar_data): Move
12418 out of struct internalvar.
12419 * xtensa-tdep.h (struct ctype_cache): Move out of struct
12420 gdbarch_tdep.
12421
fe978cb0
PA
124222015-02-27 Tom Tromey <tromey@redhat.com>
12423 Pedro Alves <palves@redhat.com>
12424
12425 Rename symbols whose names are reserved C++ keywords throughout.
12426
3bc3d82a
PA
124272015-02-27 Pedro Alves <palves@redhat.com>
12428
12429 * Makefile.in (COMPILER): New, get it from autoconf.
12430 (COMPILE.pre, CC_LD): Use COMPILER.
12431 (CXX): Get from autoconf instead.
12432 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12433 * acinclude.m4: Include build-with-cxx.m4.
12434 * build-with-cxx.m4: New file.
12435 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12436 Disable -Werror by default if building in C++ mode.
12437 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12438 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
12439 Run supported-warning-flags tests with the C++ compiler.
12440 Save/restore CXXFLAGS too.
12441 * configure: Regenerate.
12442
07697489
PA
124432015-02-27 Pedro Alves <palves@redhat.com>
12444
12445 * libiberty.m4: New file.
12446 * acinclude.m4: Include libiberty.m4.
12447 * configure.ac: Call libiberty_INIT.
12448 * config.in, configure: Regenerate.
12449
60abeae4
AA
124502015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
12451
12452 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
12453 31-bit targets, but 64-bit targets as well.
12454 (s390_gnu_triplet_regexp): New function.
12455 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
12456 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
12457 method.
12458
f44466fb 124592015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
12460
12461 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
12462 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
12463 from CONTEXT_DEBUGGER.
12464
0def5aaa
DE
124652015-02-26 Doug Evans <dje@google.com>
12466
12467 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
12468 CHECK_TYPEDEF.
12469 (set_type_vptr_fieldno): Ditto.
12470 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
12471 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
12472
77b64a49
PA
124732015-02-26 Pedro Alves <palves@redhat.com>
12474
12475 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
12476 * complaints.c (vcomplaint): Pass argument FMT directly to
12477 printf-like functions instead of complaint->fmt.
12478 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
12479 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
12480 * compile/compile-loc2c.c (pushf, unary, binary): Add
12481 ATTRIBUTE_PRINTF.
12482 (do_compile_dwarf_expr_to_c): Pass string literal as format string
12483 to pushf.
12484 (BINARY): Pass string literal as format string to 'binary'.
12485 * compile/compile-object-load.c (link_callbacks_einfo): Add
12486 ATTRIBUTE_PRINTF.
12487 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
12488
532f44ed
PA
124892015-02-26 Pedro Alves <palves@redhat.com>
12490
12491 * windows-termcap.c: Rename to ...
12492 * stub-termcap.c: ... this. Adjust header line.
12493 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
12494 windows-termcap.c.
12495 * configure: Regenerate.
12496 * configure.ac: Refer to stub-termcap.o instead of
12497 windows-termcap.o.
12498 * gdb_curses.h: Mention stub-termcap.c instead of
12499 windows-termcap.c.
12500
081a1c2c
JK
125012015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12502
12503 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
12504 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
12505
2f41223f
AT
125062015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
12507
12508 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
12509
80c57053
JK
125102015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12511
12512 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
12513 bfd_canonicalize_symtab.
12514
cf424aef
JB
125152015-02-25 John Baldwin <jhb@FreeBSD.org>
12516
12517 * amd64fbsd-nat.c: Include sys/user.h.
12518 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12519 instead of KERN_PS_STRINGS to locate the signal trampoline.
12520 * i386fbsd-nat.c: Include sys/user.h.
12521 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12522 instead of KERN_PS_STRINGS to locate the signal trampoline.
12523 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
12524 (amd64fbsd_sigtramp_p): New.
12525 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
12526 longer set default values.
12527 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
12528 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
12529 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
12530 (i386fbsd_freebsd4_sigtramp_start)
12531 (i386fbsd_freebsd4_sigtramp_middle)
12532 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
12533 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
12534 (i386fbsd_sigtramp_p): New.
12535 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
12536 longer set default values.
12537 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
12538
c5cb74ee
JB
125392015-02-25 John Baldwin <jhb@freebsd.org>
12540
12541 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
12542 get_frame_register instead of frame_unwind_register_unsigned.
12543
17487d85
JK
125442015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12545
12546 PR build/18033
12547 * compile/compile-c-support.c (c_compute_program): Change // comment.
12548 * compile/compile-object-load.c (setup_sections): Change // comment.
12549
9357a9e6
JB
125502015-02-26 Joel Brobecker <brobecker@adacore.com>
12551
12552 PR build/18033:
12553 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
12554
1f10ba14
PA
125552015-02-23 Pedro Alves <palves@redhat.com>
12556
12557 * remote.c (skip_to_semicolon): New function.
12558 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
12559 special case the stop reasons that look like hex numbers
12560 upfront. Instead handle real register numbers after matching
12561 all the known stop reasons.
12562
96553a0c
DE
125632015-02-21 Doug Evans <dje@google.com>
12564
12565 PR c++/17976, symtab/17821
12566 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
12567 is_in_anonymous. All callers updated.
12568 (find_symbol_in_baseclass): Ditto.
12569 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
12570 for symbols in an anonymous namespace.
12571 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
12572 DW_AT_name directly.
12573 (dwarf2_name): Convert missing namespace name to
12574 CP_ANONYMOUS_NAMESPACE_STR.
12575
2db9a427
PA
125762015-02-20 Pedro Alves <palves@redhat.com>
12577
12578 * linux-nat.c (linux_handle_extended_wait): Call
12579 thread_db_notice_clone whenever a new clone LWP is detected.
12580 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
12581 functions.
12582 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
12583 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
12584 (linux_unstop_all_lwps): Declare.
12585 * linux-thread-db.c (struct thread_get_info_inout): Delete.
12586 (thread_get_info_callback): Delete.
12587 (thread_from_lwp): Use td_thr_get_info and record_thread.
12588 (thread_db_attach_lwp): Delete.
12589 (thread_db_notice_clone): New function.
12590 (try_thread_db_load_1): If /proc is mounted and shows the
12591 process'es task list, walk over all LWPs and call thread_from_lwp
12592 instead of relying on td_ta_thr_iter.
12593 (attach_thread): Don't call check_thread_signals here. Split the
12594 tail part of the function (which adds the thread to the core GDB
12595 thread list) to ...
12596 (record_thread): ... this function. Call check_thread_signals
12597 here.
12598 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
12599 call thread_from_lwp.
12600 (thread_db_update_thread_list): Rename to ...
12601 (thread_db_update_thread_list_org): ... this.
12602 (thread_db_update_thread_list): New function.
12603 (thread_db_find_thread_from_tid): Delete.
12604 (thread_db_get_ada_task_ptid): Simplify.
12605 * nat/linux-procfs.c: Include <sys/stat.h>.
12606 (linux_proc_task_list_dir_exists): New function.
12607 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
12608
3b27ef47
PA
126092015-02-20 Pedro Alves <palves@redhat.com>
12610
12611 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
12612 main LWP. Handle the case of waitpid returning 0 if we're already
12613 attached to the LWP. Don't set the LWP's last_resume_kind to
12614 resume_stop if we already knew about the LWP.
12615 (linux_nat_filter_event): Add debug logs.
12616
1cc28231
PA
126172015-02-20 Pedro Alves <palves@redhat.com>
12618
12619 * target.h (forward_target_decr_pc_after_break): Delete
12620 declaration.
12621
5c5019c2
PA
126222015-02-20 Pedro Alves <palves@redhat.com>
12623
12624 PR threads/18006
12625 * linux-thread-db.c (thread_get_info_callback): Return early if
12626 the thread's lwp id is -1.
12627
f3978e91
JB
126282015-02-20 Joel Brobecker <brobecker@adacore.com>
12629
12630 GDB 7.9 released.
12631
ffdf88ec
SE
126322015-02-19 Steve Ellcey <sellcey@imgtec.com>
12633
12634 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
12635 (dtrace_get_probes) Change type of variable 'dof'.
12636
c9587f88
AT
126372015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12638
12639 PR breakpoints/16812
12640 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
12641 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
12642 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
12643
53cf2ee0
DT
126442015-02-19 David Taylor <dtaylor@emc.com>
12645
12646 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
12647
acfe0940
PP
126482015-02-18 Patrick Palka <patrick@parcs.ath.cx>
12649
12650 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
12651 function.
12652 (tui_putc): Don't call tui_handle_resize_during_io.
12653 (tui_getc): Likewise.
12654 (tui_mld_getc): Likewise.
12655 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
12656 (tui_sigwinch_token): New static variable.
12657 (tui_initialize_win): Adjust documentation. Set
12658 tui_sigwinch_token.
12659 (tui_async_resize_screen): New asynchronous callback.
12660 (tui_sigwinch_handler): Adjust documentation. Asynchronously
12661 invoke tui_async_resize_screen.
12662
f6a88844
JM
126632015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
12664
12665 * configure: Regenerated.
12666 * configure.ac: Use GDB_AC_TRANSFORM.
12667 * Makefile.in (aclocal_m4_deps): Added transform.m4.
12668 * acinclude.m4: sinclude transform.m4.
12669 * transform.m4: New file.
12670 (GDB_AC_TRANSFORM): New macro.
12671
b05e3b0d
JM
126722015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12673
12674 * NEWS: Announce the support for DTrace SDT probes.
12675
c3e3045e
JM
126762015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12677
12678 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
12679 (amd64_dtrace_parse_probe_argument): New function.
12680 (amd64_dtrace_probe_is_enabled): Likewise.
12681 (amd64_dtrace_enable_probe): Likewise.
12682 (amd64_dtrace_disable_probe): Likewise.
12683 (amd64_linux_init_abi): Register the
12684 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
12685 `gdbarch_dtrace_disable_probe' and
12686 `gdbarch_dtrace_probe_is_enabled' hooks.
12687 (amd64_dtrace_disabled_probe_sequence_1): New constant.
12688 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
12689 (amd64_dtrace_enable_probe_sequence): Likewise.
12690 (amd64_dtrace_disable_probe_sequence): Likewise.
12691
d4777acb
JM
126922015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12693
12694 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
12695 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
12696 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
12697 handle ELF files.
12698 * Makefile.in (SFILES): dtrace-probe.c added.
12699 * configure: Regenerate.
12700 * dtrace-probe.c: New file.
12701 (SHT_SUNW_dof): New constant.
12702 (dtrace_probe_type): New enum.
12703 (dtrace_probe_arg): New struct.
12704 (dtrace_probe_arg_s): New typedef.
12705 (struct dtrace_probe_enabler): New struct.
12706 (dtrace_probe_enabler_s): New typedef.
12707 (dtrace_probe): New struct.
12708 (dtrace_probe_is_linespec): New function.
12709 (dtrace_dof_sect_type): New enum.
12710 (dtrace_dof_dofh_ident): Likewise.
12711 (dtrace_dof_encoding): Likewise.
12712 (DTRACE_DOF_ENCODE_LSB): Likewise.
12713 (DTRACE_DOF_ENCODE_MSB): Likewise.
12714 (dtrace_dof_hdr): New struct.
12715 (dtrace_dof_sect): Likewise.
12716 (dtrace_dof_provider): Likewise.
12717 (dtrace_dof_probe): Likewise.
12718 (DOF_UINT): New macro.
12719 (DTRACE_DOF_PTR): Likewise.
12720 (DTRACE_DOF_SECT): Likewise.
12721 (dtrace_process_dof_probe): New function.
12722 (dtrace_process_dof): Likewise.
12723 (dtrace_build_arg_exprs): Likewise.
12724 (dtrace_get_arg): Likewise.
12725 (dtrace_get_probes): Likewise.
12726 (dtrace_get_probe_argument_count): Likewise.
12727 (dtrace_can_evaluate_probe_arguments): Likewise.
12728 (dtrace_evaluate_probe_argument): Likewise.
12729 (dtrace_compile_to_ax): Likewise.
12730 (dtrace_probe_destroy): Likewise.
12731 (dtrace_gen_info_probes_table_header): Likewise.
12732 (dtrace_gen_info_probes_table_values): Likewise.
12733 (dtrace_probe_is_enabled): Likewise.
12734 (dtrace_probe_ops): New variable.
12735 (info_probes_dtrace_command): New function.
12736 (_initialize_dtrace_probe): Likewise.
12737 (dtrace_type_name): Likewise.
12738
8b367e17
JM
127392015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12740
12741 * gdbarch.sh (dtrace_parse_probe_argument): New.
12742 (dtrace_probe_is_enabled): Likewise.
12743 (dtrace_enable_probe): Likewise.
12744 (dtrace_disable_probe): Likewise.
12745 * gdbarch.c: Regenerate.
12746 * gdbarch.h: Regenerate.
12747
9aca2ff8
JM
127482015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12749
12750 * stap-probe.c (stap_probe_ops): Add NULLs in the static
12751 stap_probe_ops for `enable_probe' and `disable_probe'.
12752 * probe.c (enable_probes_command): New function.
12753 (disable_probes_command): Likewise.
12754 (_initialize_probe): Define the cli commands `enable probe' and
12755 `disable probe'.
12756 (parse_probe_linespec): New function.
12757 (info_probes_for_ops): Use parse_probe_linespec.
12758 * probe.h (probe_ops): New hooks `enable_probe' and
12759 `disable_probe'.
12760
03e98035
JM
127612015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12762
12763 * probe.c (compute_probe_arg): Moved from stap-probe.c
12764 (compile_probe_arg): Likewise.
12765 (probe_funcs): Likewise.
12766 * stap-probe.c (compute_probe_arg): Moved to probe.c.
12767 (compile_probe_arg): Likewise.
12768 (probe_funcs): Likewise.
12769
6f9b8491
JM
127702015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12771
12772 * probe.c (print_ui_out_not_applicables): New function.
12773 (exists_probe_with_pops): Likewise.
12774 (info_probes_for_ops): Do not include column headers for probe
12775 types for which no probe has been actually found on any object.
12776 Also invoke `print_ui_out_not_applicables' in order to match the
12777 column rows with the header when probes of several types are
12778 listed.
12779 Print the "Type" column.
12780 * probe.h (probe_ops): Added a new probe operation `type_name'.
12781 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
12782 (stap_type_name): New function.
12783
69efdff1
PP
127842015-02-17 Patrick Palka <patrick@parcs.ath.cx>
12785
12786 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
12787 (key_is_command_char): Delete.
12788
f8e5e23e
PA
127892015-02-17 Pedro Alves <palves@redhat.com>
12790
12791 * tui/tui.c (tui_enable): Resize windows before anything
12792 might show a window.
12793
9f2e0721
MO
127942015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
12795
12796 PR gdb/17984
12797 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
12798 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
12799 call.
12800 * aarch64-tdep.h (tdesc_aarch64): Declare.
12801
171e6b1c
MW
128022015-02-12 Mark Wielaard <mjw@redhat.com>
12803
12804 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
12805
d5ff0482
DE
128062015-02-13 Doug Evans <dje@google.com>
12807
12808 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
12809 anonymous_namespace to is_in_anonymous for consistency with the rest
12810 of the file.
12811 (cp_lookup_bare_symbol): Fix typo in comment.
12812 (cp_search_static_and_baseclasses): Ditto.
12813 (search_symbol_list): Use vertical space in comment better.
12814 (reset_directive_searched): Ditto. Fix typo.
12815 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
12816
9f04ac5f
YQ
128172015-02-13 Yao Qi <yao.qi@arm.com>
12818
12819 * MAINTAINERS: Update my email address.
12820
013d0319
DE
128212015-02-12 Doug Evans <dje@google.com>
12822
b615dd20 12823 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 12824
9a7e538e
DE
128252015-02-12 Doug Evans <dje@google.com>
12826
12827 * completer.c (complete_line): Remove incorrect comment.
12828
e1fcd575
JK
128292015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12830
12831 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
12832 (py_print_frame): Use RETURN_MASK_ERROR.
12833
b99bf4e3
JK
128342015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12835
12836 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
12837 function comment. Wrap all function that can throw in cleanups.
12838 (gdbpy_apply_frame_filter): Wrap all function that can throw in
12839 cleanups.
12840
800eb1ce
JK
128412015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12842
12843 * python/py-framefilter.c (py_print_frame): Substitute goto error.
12844 Remove the error label.
12845
34019068
JK
128462015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12847
12848 * python/py-framefilter.c (py_print_frame): Put conditional code paths
12849 with goto first, indent the former else codepath left. Put variable
12850 'elided' to a new inner block.
12851
8d4a54e2
JK
128522015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12853
12854 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
12855
18ad82c1
PA
128562015-02-11 Pedro Alves <palves@redhat.com>
12857
12858 * xcoffread.c (within_function): Delete.
12859
e36122e9
TT
128602015-02-11 Tom Tromey <tromey@redhat.com>
12861 Pedro Alves <palves@redhat.com>
12862
12863 * breakpoint.c (base_breakpoint_ops): Delete.
12864 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
12865 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
12866 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
12867 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
12868 * python/py-arch.c (arch_object_type): Make extern.
12869 * python/py-block.c (block_syms_iterator_object_type): Make extern.
12870 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
12871 * python/py-cmd.c (cmdpy_object_type): Make extern.
12872 * python/py-continueevent.c (continue_event_object_type)
12873 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
12874 parameter. Update all callers.
12875 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
12876 * python/py-exitedevent.c (exited_event_object_type): Make extern.
12877 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
12878 * python/py-function.c (fnpy_object_type): Make extern.
12879 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
12880 * python/py-infevents.c (call_pre_event_object_type)
12881 (inferior_call_post_event_object_type).
12882 (memory_changed_event_object_type): Make extern.
12883 * python/py-infthread.c (thread_object_type): Make extern.
12884 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
12885 * python/py-linetable.c (linetable_entry_object_type)
12886 (linetable_object_type, ltpy_iterator_object_type): Make extern.
12887 * python/py-newobjfileevent.c (new_objfile_event_object_type)
12888 (clear_objfiles_event_object_type): Make extern.
12889 * python/py-objfile.c (objfile_object_type): Make extern.
12890 * python/py-param.c (parmpy_object_type): Make extern.
12891 * python/py-progspace.c (pspace_object_type): Make extern.
12892 * python/py-signalevent.c (signal_event_object_type): Make extern.
12893 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
12894 * python/py-type.c (type_object_type, field_object_type)
12895 (type_iterator_object_type): Make extern.
12896 * python/python.c (python_extension_script_ops)
12897 (python_extension_ops): Make extern.
12898 * stap-probe.c (stap_probe_ops): Make extern.
12899
0703599a
PA
129002015-02-11 Pedro Alves <pedro@codesourcery.com>
12901
12902 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
12903 because the event thread is not the current thread.
12904
eaaf76ab
DE
129052015-02-11 Doug Evans <xdje42@gmail.com>
12906
12907 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
12908 been initialized yet, return NULL.
12909
e7d52ed3
DE
129102015-02-11 Doug Evans <dje@google.com>
12911
12912 * symfile.h (new_symfile_objfile): Delete.
12913 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
12914 All callers updated.
12915
fc6b1256
PP
129162015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12917
12918 * tui/tui-io.c (tui_handle_resize_during_io): Call
12919 tui_update_gdb_sizes() after resizing the screen.
12920 * tui/tui.c (tui_enable): Resize the terminal before
12921 calling tui_update_gdb_sizes().
12922
d9080678
PP
129232015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12924
12925 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
12926 line before printing a newline.
12927
9f615e3a
MW
129282015-02-11 Mark Wielaard <mjw@redhat.com>
12929
12930 * utils.c (producer_is_gcc): Return true or false.
12931
d9080678 129322015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
12933
12934 * utils.h (producer_is_gcc): Change return type to bool. Add major
12935 argument.
12936 * utils.c (producer_is_gcc): Likewise.
12937 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
12938 * dwarf2read.c (check_producer): Likewise.
12939
b052c4fb
PA
129402015-02-10 Pedro Alves <palves@redhat.com>
12941
12942 * infrun.c (displaced_step_fixup): Switch to the event thread
12943 before calling gdbarch_displaced_step_fixup.
12944
3ac240d4
AT
129452015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12946
12947 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
12948
c1cc6152
SM
129492015-02-10 Simon Marchi <simon.marchi@ericsson.com>
12950
12951 * ada-varobj.c (ada_name_of_child): Constify parent.
12952 (ada_path_expr_of_child): Same.
12953 (ada_value_of_child): Same.
12954 (ada_type_of_child): Same.
12955 * c-varobj.c (c_is_path_expr_parent): Same.
12956 (c_describe_child): Same.
12957 (c_name_of_child): Same.
12958 (c_value_of_child): Same.
12959 (c_type_of_child): Same.
12960 (cplus_number_of_children): Same.
12961 (cplus_describe_child): Constify var.
12962 (cplus_name_of_child): Constify parent.
12963 (cplus_value_of_child): Same.
12964 (cplus_type_of_child): Same.
12965 * jv-varobj.c (java_name_of_child): Same.
12966 (java_value_of_child): Same.
12967 (java_type_of_child): Same.
12968 * varobj.c (value_of_child): Same.
12969 (varobj_default_is_path_expr_parent): Constify var, parent and return
12970 value.
12971 (varobj_get_path_expr): Constify var, modify path_expr through
12972 mutable_var.
12973 (install_new_value): Constify parent.
12974 (value_of_child): Constify parent.
12975 * varobj.h (struct varobj): Constify parent.
12976 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
12977 type_of_child.
12978 (varobj_get_path_expr): Constify var.
12979 (varobj_get_path_expr_parent): Constify var and return value.
12980
c1ee9414
LM
129812015-02-10 Luis Machado <lgustavo@codesourcery.com>
12982
12983 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
12984 (arm_prologue_this_id): Move PC and SP limit checks to
12985 arm_prologue_unwind_stop_reason.
12986 (arm_prologue_unwind) <stop_reason> : Set to
12987 arm_prologue_unwind_stop_reason.
12988
f7de9aab
MW
129892015-02-09 Mark Wielaard <mjw@redhat.com>
12990
12991 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
12992 DW_LANG_Fortran08 as language_fortran.
12993
0b24eb2d
SDJ
129942015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
12995
12996 PR remote/17946
12997 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
12998 of pointer against char.
12999
a2c2acaf
MW
130002015-02-09 Mark Wielaard <mjw@redhat.com>
13001
13002 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
13003 (c_type_print_modifier): Likewise.
13004 * dwarf2read.c (read_tag_atomic_type): New function.
13005 (read_type_die_1): Handle DW_TAG_atomic_type.
13006 * gdbtypes.c (make_atomic_type): New function.
13007 (recursive_dump_type): Handle TYPE_ATOMIC.
13008 * gdbtypes.h (enum type_flag_values): Renumber.
13009 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
13010 (TYPE_ATOMIC): New macro.
13011 (make_atomic_type): Declare.
13012
31fd9caa
MM
130132015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13014
13015 * btrace.c (ftrace_find_call): Skip gaps.
13016 (ftrace_new_function): Initialize level.
13017 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
13018 (ftrace_new_switch): Update
13019 level computation.
13020 (ftrace_new_gap): New.
13021 (ftrace_update_function): Create new function after gap.
13022 (btrace_compute_ftrace_bts): Create gap on error.
13023 (btrace_stitch_bts): Update parameters. Clear trace if it
13024 becomes empty.
13025 (btrace_stitch_trace): Update parameters. Update callers.
13026 (btrace_clear): Reset the number of gaps.
13027 (btrace_insn_get): Return NULL if the iterator points to a gap.
13028 (btrace_insn_number): Return zero if the iterator points to a gap.
13029 (btrace_insn_end): Allow gaps at the end.
13030 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
13031 (btrace_find_insn_by_number): Assert that the found iterator does
13032 not point to a gap.
13033 (btrace_call_next, btrace_call_prev): Assert that the last function
13034 is not a gap.
13035 * btrace.h (btrace_bts_error): New.
13036 (btrace_function): Update comment.
13037 (btrace_function) <insn, insn_offset, number>: Update comment.
13038 (btrace_function) <errcode>: New.
13039 (btrace_thread_info) <ngaps>: New.
13040 (btrace_thread_info) <replay>: Update comment.
13041 (btrace_insn_get): Update comment.
13042 * record-btrace.c (btrace_ui_out_decode_error): New.
13043 (record_btrace_info): Print number of gaps.
13044 (btrace_insn_history, btrace_call_history): Call
13045 btrace_ui_out_decode_error for gaps.
13046 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
13047
afb778a2
MM
130482015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13049
13050 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
13051 * nat/linux-btrace.c: (btrace_this_cpu): New.
13052 (cpu_supports_bts): Call btrace_this_cpu.
13053 (intel_supports_bts): Add cpu parameter.
13054
7d5c24b3
MM
130552015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13056
13057 * btrace.h (btrace_insn_class): New.
13058 (btrace_insn) <size, iclass>: New.
13059 * btrace.c (ftrace_find_call): Update parameters. Update users.
13060 Use instruction classification.
13061 (ftrace_new_return): Update parameters. Update users.
13062 (ftrace_update_function): Update parameters. Update users. Use
13063 instruction classification.
13064 (ftrace_update_insns): Update parameters. Update users.
13065 (ftrace_classify_insn): New.
13066 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
13067 TRY_CATCH around call to gdb_insn_length.
13068
76235df1
MM
130692015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13070
13071 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
13072 Update parameters. Update users.
13073
d33501a5
MM
130742015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13075
13076 * btrace.c (parse_xml_btrace_conf_bts): Add size.
13077 (btrace_conf_bts_attributes): New.
13078 (btrace_conf_children): Add attributes.
13079 * common/btrace-common.h (btrace_config_bts): New.
13080 (btrace_config)<bts>: New.
13081 (btrace_config): Update comment.
13082 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
13083 Use config.
13084 * features/btrace-conf.dtd: Increment version. Add size
13085 attribute to bts element.
13086 * record-btrace.c (set_record_btrace_bts_cmdlist,
13087 show_record_btrace_bts_cmdlist): New.
13088 (record_btrace_adjust_size, record_btrace_print_bts_conf,
13089 record_btrace_print_conf, cmd_set_record_btrace_bts,
13090 cmd_show_record_btrace_bts): New.
13091 (record_btrace_info): Call record_btrace_print_conf.
13092 (_initialize_record_btrace): Add commands.
13093 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
13094 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
13095 (btrace_sync_conf): Synchronize bts size.
13096 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
13097 * NEWS: Announce new commands and new packets.
13098
f4abbc16
MM
130992015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13100
13101 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
13102 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
13103 (x86_linux_btrace_conf): New.
13104 (x86_linux_create_target): Initialize to_btrace_conf.
13105 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
13106 Check format. Split into this and ...
13107 (linux_enable_bts): ... this.
13108 (linux_btrace_conf): New.
13109 (perf_event_skip_record): Renamed into ...
13110 (perf_event_skip_bts_record): ... this. Updated users.
13111 (linux_disable_btrace): Split into this and ...
13112 (linux_disable_bts): ... this.
13113 (linux_read_btrace): Check format.
13114 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
13115 (linux_btrace_conf): New.
13116 (btrace_target_info)<ptid>: Moved.
13117 (btrace_target_info)<conf>: New.
13118 (btrace_target_info): Split into this and ...
13119 (btrace_tinfo_bts): ... this. Updated users.
13120 * btrace.c (btrace_enable): Update parameters.
13121 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
13122 (btrace_conf_children, btrace_conf_attributes)
13123 (btrace_conf_elements): New.
13124 * btrace.h (btrace_enable): Update parameters.
13125 (btrace_conf, parse_xml_btrace_conf): New.
13126 * common/btrace-common.h (btrace_config): New.
13127 * feature/btrace-conf.dtd: New.
13128 * record-btrace.c (record_btrace_conf): New.
13129 (record_btrace_cmdlist): New.
13130 (record_btrace_enable_warn, record_btrace_open): Pass
13131 &record_btrace_conf.
13132 (record_btrace_info): Print recording format.
13133 (cmd_record_btrace_bts_start): New.
13134 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
13135 (_initialize_record_btrace): Add "record btrace bts" subcommand.
13136 Add "record bts" alias command.
13137 * remote.c (remote_state)<btrace_config>: New.
13138 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
13139 (remote_protocol_features): Add qXfer:btrace-conf:read.
13140 (remote_open_1): Call remote_btrace_reset.
13141 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
13142 (btrace_target_info)<conf>: New.
13143 (btrace_sync_conf, btrace_read_config): New.
13144 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
13145 btrace_read_conf.
13146 (remote_btrace_conf): New.
13147 (init_remote_ops): Initialize to_btrace_conf.
13148 (_initialize_remote): Add qXfer:btrace-conf packet.
13149 * target.c (target_enable_btrace): Update parameters.
13150 (target_btrace_conf): New.
13151 * target.h (target_enable_btrace): Update parameters.
13152 (target_btrace_conf): New.
13153 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
13154 (target_ops)<to_enable_btrace>: Update parameters and comment.
13155 (target_ops)<to_btrace_conf>: New.
13156 * target-delegates: Regenerate.
13157 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
13158 (target_debug_print_const_struct_btrace_target_info_p): New.
13159 * NEWS: Announce new command and new packet.
13160
aadf7753
MM
131612015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13162
13163 * nat/linux-btrace.h (perf_event_buffer): New.
13164 (btrace_target_info) <buffer, size, data_head>: Replace with ...
13165 <bts>: ... this.
13166 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
13167 (perf_event_buffer_size, perf_event_buffer_begin)
13168 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
13169 Updated users.
13170 (perf_event_new_data): New.
13171
043c3577
MM
131722015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13173
13174 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
13175 * record-btrace.c (record_btrace_open): Remove call to
13176 target_supports_btrace.
13177 * remote.c (remote_supports_btrace): Update parameters.
13178 * target.c (target_supports_btrace): Update parameters.
13179 * target.h (to_supports_btrace, target_supports_btrace): Update
13180 parameters.
13181 * target-delegates.c: Regenerate.
13182 * target-debug.h (target_debug_print_enum_btrace_format): New.
13183 * nat/linux-btrace.c
13184 (kernel_supports_btrace): Rename into ...
13185 (kernel_supports_bts): ... this. Update users. Update warning text.
13186 (intel_supports_btrace): Rename into ...
13187 (intel_supports_bts): ... this. Update users.
13188 (cpu_supports_btrace): Rename into ...
13189 (cpu_supports_bts): ... this. Update users.
13190 (linux_supports_btrace): Update parameters. Split into this and ...
13191 (linux_supports_bts): ... this.
13192 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
13193
734b0e4b
MM
131942015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13195
13196 * Makefile.in (SFILES): Add common/btrace-common.c.
13197 (COMMON_OBS): Add common/btrace-common.o.
13198 (btrace-common.o): Add build rules.
13199 * btrace.c (parse_xml_btrace): Update parameters.
13200 (parse_xml_btrace_block): Set format field.
13201 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
13202 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
13203 (btrace_compute_ftrace): Split into this and...
13204 (btrace_compute_ftrace_bts): ...this.
13205 (btrace_stitch_trace): Split into this and...
13206 (btrace_stitch_bts): ...this.
13207 * btrace.h (parse_xml_btrace): Update parameters.
13208 (make_cleanup_btrace_data): New.
13209 * common/btrace-common.c: New.
13210 * common/btrace-common.h: Include common-defs.h.
13211 (btrace_block_s): Update comment.
13212 (btrace_format): New.
13213 (btrace_format_string): New.
13214 (btrace_data_bts): New.
13215 (btrace_data): New.
13216 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
13217 * remote.c (remote_read_btrace): Update parameters.
13218 * target.c (target_read_btrace): Update parameters.
13219 * target.h (target_read_btrace): Update parameters.
13220 (target_ops)<to_read_btrace>: Update parameters.
13221 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
13222 * target-delegates.c: Regenerate.
13223 * target-debug (target_debug_print_struct_btrace_data_p): New.
13224 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
13225 (linux_read_bts): ...this.
13226 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
13227
bd2e0e9e
DE
132282015-02-06 Doug Evans <dje@google.com>
13229
13230 * remote-m32r-sdi.c: Include symfile.h.
13231
f176c4b5
DE
132322015-02-06 Doug Evans <dje@google.com>
13233
13234 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
13235 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
13236 to here.
13237
d6c146e9
PA
132382015-02-06 Pedro Alves <palves@redhat.com>
13239
13240 * linux-thread-db.c (find_new_threads_callback): Add debug output.
13241
b9d61307
SM
132422015-02-06 Simon Marchi <simon.marchi@ericsson.com>
13243
13244 PR gdb/15678
13245 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
13246 (enable_count_command): Check args for NULL value.
13247
e9fbd043
DE
132482015-02-05 Doug Evans <xdje42@gmail.com>
13249
13250 * guile/scm-frame.c: Fix spelling errors in a comment.
13251
881d5d5d
JK
132522015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
13253
13254 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
13255 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
13256 return type.
13257
20ba1ce6
PA
132582015-02-04 Pedro Alves <palves@redhat.com>
13259
13260 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
13261 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
13262 returns true.
13263 (resume_stopped_resumed_lwps): Don't check whether the thread is
13264 marked as executing.
13265 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
13266
f962539a
AA
132672015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13268
13269 * regset.h (struct regset): Add flags field.
13270 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
13271 * corelow.c (get_core_register_section): Add warning if the size
13272 exceeds the requested size and the regset does not have the
13273 REGSET_VARIABLE_SIZE flag set.
13274 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
13275 flag.
13276 * armbsd-tdep.c (armbsd_gregset): Likewise.
13277 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
13278 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
13279 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
13280 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
13281
dde9acd6
AA
132822015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13283
13284 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
13285 For ".reg-xstate", explicitly specify the requested section size
13286 via X86_XSTATE_SIZE instead of just 0 on input and
13287 X86_XSTATE_MAX_SIZE on output.
13288 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
13289 Likewise.
13290
1528345d
AA
132912015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13292
13293 PR corefiles/17808:
13294 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
13295 function type, particularly its SIZE parameter.
13296 * gdbarch.h: Regenerate.
13297 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
13298 actual against required size using ">=" instead of "==".
13299 (amd64_collect_fpregset): Likewise.
13300 * i386-tdep.c (i386_supply_gregset): Likewise.
13301 (i386_collect_gregset): Likewise.
13302 (i386_supply_fpregset): Likewise.
13303 (i386_collect_fpregset): Likewise.
13304 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
13305 (mips_fill_gregset_wrapper): Likewise.
13306 (mips_supply_fpregset_wrapper): Likewise.
13307 (mips_fill_fpregset_wrapper): Likewise.
13308 (mips64_supply_gregset_wrapper): Likewise.
13309 (mips64_fill_gregset_wrapper): Likewise.
13310 (mips64_supply_fpregset_wrapper): Likewise.
13311 (mips64_fill_fpregset_wrapper): Likewise.
13312 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
13313 (am33_supply_fpregset_method): Likewise.
13314 (am33_collect_gregset_method): Likewise.
13315 (am33_collect_fpregset_method): Likewise.
13316
518be979
DE
133172015-02-04 Doug Evans <dje@google.com>
13318 Pedro Alves <palves@redhat.com>
13319 Eli Zaretskii <eliz@gnu.org>
13320
13321 PR tui/17810
13322 * tui/tui-command.c (tui_refresh_cmd_win): New function.
13323 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
13324 * tui/tui-file.c: #include tui/tui-command.h.
13325 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
13326 (tui_file_flush): Refresh command window if stream is gdb_stdout.
13327 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
13328
80bd5fab
PA
133292015-02-04 Pedro Alves <palves@redhat.com>
13330
13331 Fix build breakage.
13332 * event-loop.c (gdb_do_one_event): Add default switch case.
13333
a7606d80
JK
133342015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
13335
13336 Filter out inferior gcc option -fpreprocessed.
13337 * compile/compile.c (filter_args): New function.
13338 (get_args): Use it.
13339
70b66289
PA
133402015-02-03 Pedro Alves <palves@redhat.com>
13341
13342 * event-loop.c: Don't declare nor define a queue type for
13343 gdb_event_p.
13344 (event_queue): Delete.
13345 (create_event, create_file_event, gdb_event_xfree)
13346 (initialize_event_loop, process_event): Delete.
13347 (gdb_do_one_event): Return as soon as one event is handled.
13348 (handle_file_event): Change prototype. Used the passed in
13349 file_handler pointer and ready_mask instead of looping over all
13350 file handlers.
13351 (gdb_wait_for_event): Update the poll/select timeouts before
13352 blocking. Run event handlers directly instead of queueing events.
13353 Return as soon as one event is handled.
13354 (struct async_event_handler_data): Delete.
13355 (invoke_async_event_handler): Delete.
13356 (check_async_event_handlers): Change return type to int. Run
13357 event handlers directly instead of queueing events. Return as
13358 soon as one event is handled.
13359 (handle_timer_event): Delete.
13360 (update_wait_timeout): New function, factored out from
13361 poll_timers.
13362 (poll_timers): Reimplement.
13363 * event-loop.h (initialize_event_loop): Delete declaration.
13364 * top.c (gdb_init): Don't call initialize_event_loop.
13365
b7d2e916
PA
133662015-02-03 Pedro Alves <palves@redhat.com>
13367
13368 * event-loop.c (clear_async_event_handler): New function.
13369 * event-loop.h (clear_async_event_handler): New declaration.
13370 * record-btrace.c (record_btrace_async): New function.
13371 (init_record_btrace_ops): Install record_btrace_async.
13372 * record-full.c (record_full_async): New function.
13373 (record_full_resume): Don't mark the async event source here.
13374 (init_record_full_ops): Install record_full_async.
13375 (record_full_core_resume): Don't mark the async event source here.
13376 (init_record_full_core_ops): Install record_full_async.
13377 * remote.c (remote_async): Mark and clear the async stop reply
13378 queue event-loop token as appropriate.
13379
d9d41e78
PA
133802015-02-03 Pedro Alves <palves@redhat.com>
13381
13382 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
13383 target_is_async_p instead of target_can_async.
13384 (linux_nat_wait): Use target_is_async_p instead of
13385 target_can_async. Don't enable async here.
13386 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
13387 target_is_async_p instead of target_can_async.
13388
aa3de267
SM
133892015-02-02 Simon Marchi <simon.marchi@ericsson.com>
13390
13391 * varobj.h (lang_varobj_ops): Mention which return values need
13392 to be freed.
13393
2c811c0f
JB
133942015-02-02 Joel Brobecker <brobecker@adacore.com>
13395
13396 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
13397
b1eedac9
JB
133982015-02-02 Joel Brobecker <brobecker@adacore.com>
13399
13400 PR gdb/17856:
13401 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
13402 results found in the cache.
13403
66c168ae
JB
134042015-02-02 Joel Brobecker <brobecker@adacore.com>
13405
13406 PR gdb/17854:
13407 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
13408 when allocating a new one.
13409
4bdc02b2
TT
134102015-02-01 Tom Tromey <tom@tromey.com>
13411
13412 * MAINTAINERS: Remove myself.
13413
ae6ae975
DE
134142015-01-31 Doug Evans <xdje42@gmail.com>
13415
13416 * dwarf2read.c (process_structure_scope): Update setting of
13417 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
13418 * gdbtypes.c (internal_type_vptr_fieldno): New function.
13419 (set_type_vptr_fieldno): New function.
13420 (internal_type_vptr_basetype): New function.
13421 (set_type_vptr_basetype): New function.
13422 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
13423 TYPE_VPTR_BASETYPE.
13424 (allocate_cplus_struct_type): Initialize vptr_fieldno.
13425 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
13426 (print_cplus_stuff): ... moved here.
13427 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
13428 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
13429 moved to ...
13430 (struct cplus_struct_type): ... here. All uses updated.
13431 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
13432 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
13433 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
13434 * stabsread.c (read_tilde_fields): Update setting of
13435 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
13436
09e2d7c7
DE
134372015-01-31 Doug Evans <xdje42@gmail.com>
13438
13439 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
13440 to self_p.
13441 (cp_print_class_member): Rename local domain to self_type.
13442 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
13443 domain_type to self_type.
13444 (set_die_type) <need_gnat_info>: Handle
13445 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
13446 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
13447 TYPE_SPECIFIC_SELF_TYPE.
13448 * gdbtypes.c (internal_type_self_type): New function.
13449 (set_type_self_type): New function.
13450 (smash_to_memberptr_type): Rename parameter domain to self_type.
13451 Update setting of TYPE_SELF_TYPE.
13452 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
13453 (smash_to_method_type): Rename parameter domain to self_type.
13454 Update setting of TYPE_SELF_TYPE.
13455 (check_stub_method): Call smash_to_method_type.
13456 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
13457 (copy_type_recursive): Ditto.
13458 * gdbtypes.h (enum type_specific_kind): New value
13459 TYPE_SPECIFIC_SELF_TYPE.
13460 (struct main_type) <type_specific>: New member self_type.
13461 (struct cplus_struct_type) <fn_field.type>: Update comment.
13462 (TYPE_SELF_TYPE): Rewrite.
13463 (internal_type_self_type, set_type_self_type): Declare.
13464 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
13465 self_type.
13466 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
13467 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
13468 TYPE_TARGET_TYPE.
13469 * stabsread.c (read_member_functions): Mark methods with
13470 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
13471 TYPE_SELF_TYPE.
13472
4bfb94b8
DE
134732015-01-31 Doug Evans <xdje42@gmail.com>
13474
13475 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
13476 All uses updated.
13477
5f4ce105
DE
134782015-01-31 Doug Evans <xdje42@gmail.com>
13479
13480 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
13481 or unions. Return zero if union.
13482 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
13483 (gnuv3_rtti_type): Pass already-check_typedef'd value to
13484 gnuv3_get_vtable.
13485 (compute_vtable_size): Assert only passed structs.
13486 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
13487
f6b3afbf
DE
134882015-01-31 Doug Evans <xdje42@gmail.com>
13489
13490 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
13491 kinds.
13492
cfb069a8
GB
134932015-01-31 Gary Benson <gbenson@redhat.com>
13494 Doug Evans <dje@google.com>
13495
13496 PR cli/9007
13497 PR cli/11920
13498 PR cli/15548
13499 * cli/cli-cmds.c (complete_command): Notify user if max-completions
13500 reached.
13501 * common/common-exceptions.h (enum errors)
13502 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
13503 * completer.h (get_max_completions_reached_message): New declaration.
13504 (max_completions): Likewise.
13505 (completion_tracker_t): New typedef.
13506 (new_completion_tracker): New declaration.
13507 (make_cleanup_free_completion_tracker): Likewise.
13508 (maybe_add_completion_enum): New enum.
13509 (maybe_add_completion): New declaration.
13510 (throw_max_completions_reached_error): Likewise.
13511 * completer.c (max_completions): New global variable.
13512 (new_completion_tracker): New function.
13513 (free_completion_tracker): Likewise.
13514 (make_cleanup_free_completion_tracker): Likewise.
13515 (maybe_add_completions): Likewise.
13516 (throw_max_completions_reached_error): Likewise.
13517 (complete_line): Remove duplicates and limit result to max_completions
13518 entries.
13519 (get_max_completions_reached_message): New function.
13520 (gdb_display_match_list): Handle max_completions.
13521 (_initialize_completer): New declaration and function.
13522 * symtab.c: Include completer.h.
13523 (completion_tracker): New static variable.
13524 (completion_list_add_name): Call maybe_add_completion.
13525 (default_make_symbol_completion_list_break_on_1): Renamed from
13526 default_make_symbol_completion_list_break_on. Maintain
13527 completion_tracker across calls to completion_list_add_name.
13528 (default_make_symbol_completion_list_break_on): New function.
13529 * top.c (init_main): Set rl_completion_display_matches_hook.
13530 * tui/tui-io.c: Include completer.h.
13531 (tui_old_rl_display_matches_hook): New static global.
13532 (tui_rl_display_match_list): Notify user if max-completions reached.
13533 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
13534 * NEWS (New Options): Mention set/show max-completions.
13535
e11c72c7
GB
135362015-01-31 Gary Benson <gbenson@redhat.com>
13537
13538 * symtab.c (struct add_name_data) <code>: New field.
13539 Updated comments.
13540 (add_symtab_completions): New function.
13541 (symtab_expansion_callback): Likewise.
13542 (default_make_symbol_completion_list_break_on): Set datum.code.
13543 Move minimal symbol scan before calling expand_symtabs_matching.
13544 Scan known primary symtabs for externs and statics before calling
13545 expand_symtabs_matching. Pass symtab_expansion_callback as
13546 expansion_notify argument to expand_symtabs_matching. Do not scan
13547 primary symtabs for externs and statics after calling
13548 expand_symtabs_matching.
13549
276d885b
GB
135502015-01-31 Gary Benson <gbenson@redhat.com>
13551
13552 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
13553 (struct quick_symbol_functions) <expand_symtabs_matching>:
13554 New argument expansion_notify. All uses updated.
13555 (expand_symtabs_matching): New argument expansion_notify.
13556 All uses updated.
13557 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13558 Also print expansion notify.
13559 * symtab.c (expand_symtabs_matching_via_partial): Call
13560 expansion_notify whenever a partial symbol table is expanded.
13561 * dwarf2read.c (dw2_expand_symtabs_matching): Call
13562 expansion_notify whenever a symbol table is instantiated.
13563
82083d6d
DE
135642015-01-31 Doug Evans <xdje42@gmail.com>
13565
13566 * cli-out.c: #include completer.h, readline/readline.h.
13567 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
13568 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
13569 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
13570 * cli-out.h (cli_display_match_list): Declare.
13571 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
13572 (ELLIPSIS_LEN): Ditto.
13573 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
13574 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
13575 (gdb_fnprint, gdb_print_filename): Ditto.
13576 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
13577 (gdb_display_match_list): Ditto.
13578 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
13579 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
13580 (mld_beep_ftype, mld_read_key_ftype): Ditto.
13581 (match_list_displayer): New struct.
13582 (gdb_display_match_list): Declare.
13583 * top.c (init_main): Set rl_completion_display_matches_hook.
13584 * tui/tui-io.c: #include completer.h.
13585 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
13586 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
13587 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
13588 (tui_mld_getc, tui_mld_read_key): Ditto.
13589 (tui_rl_display_match_list): Rewrite.
13590 (tui_handle_resize_during_io): New arg for_completion. All callers
13591 updated.
13592
f57d2163
DE
135932015-01-31 Doug Evans <xdje42@gmail.com>
13594
13595 Add symbol lookup cache.
13596 * NEWS: Document new options and commands.
13597 * symtab.c (symbol_cache_key): New static global.
13598 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
13599 (SYMBOL_LOOKUP_FAILED): New macro.
13600 (symbol_cache_slot_state): New enum.
13601 (block_symbol_cache): New struct.
13602 (symbol_cache): New struct.
13603 (new_symbol_cache_size, symbol_cache_size): New static globals.
13604 (hash_symbol_entry, eq_symbol_entry): New functions.
13605 (symbol_cache_byte_size, resize_symbol_cache): New functions.
13606 (make_symbol_cache, free_symbol_cache): New functions.
13607 (get_symbol_cache, symbol_cache_cleanup): New function.
13608 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
13609 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
13610 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
13611 (symbol_cache_flush, symbol_cache_dump): New functions.
13612 (maintenance_print_symbol_cache): New function.
13613 (maintenance_flush_symbol_cache): New function.
13614 (symbol_cache_stats): New function.
13615 (maintenance_print_symbol_cache_statistics): New function.
13616 (symtab_new_objfile_observer): New function.
13617 (symtab_free_objfile_observer): New function.
13618 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
13619 (_initialize_symtab): Init symbol_cache_key. New parameter
13620 maint symbol-cache-size. New maint commands print symbol-cache,
13621 print symbol-cache-statistics, flush-symbol-cache.
13622 Install new_objfile, free_objfile observers.
13623
e700d1b2
JB
136242015-01-31 Joel Brobecker <brobecker@adacore.com>
13625
13626 PR symtab/17855
13627 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
13628 to end.
13629
9f050062
DE
136302015-01-31 Doug Evans <xdje42@gmail.com>
13631
13632 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
13633 * auto-load.c: #include ctype.h.
13634 (struct auto_load_pspace_info): Replace member loaded_scripts with
13635 new members loaded_script_files, loaded_script_texts.
13636 (auto_load_pspace_data_cleanup): Update.
13637 (init_loaded_scripts_info): Update.
13638 (get_auto_load_pspace_data_for_loading): Update.
13639 (maybe_add_script_file): Renamed from maybe_add_script. All callers
13640 updated.
13641 (maybe_add_script_text): New function.
13642 (clear_section_scripts): Update.
13643 (source_script_file, execute_script_contents): New functions.
13644 (source_section_scripts): Add support for
13645 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
13646 (print_scripts): New function.
13647 (auto_load_info_scripts): Also print inlined scripts.
13648 (maybe_print_unsupported_script_warning): Renamed from
13649 unsupported_script_warning_print. All callers updated.
13650 (maybe_print_script_not_found_warning): Renamed from
13651 script_not_found_warning_print. All callers updated.
13652 * extension-priv.h (struct extension_language_script_ops): New member
13653 objfile_script_executor.
13654 * extension.c (ext_lang_objfile_script_executor): New function.
13655 * extension.h (objfile_script_executor_func): New typedef.
13656 (ext_lang_objfile_script_executor): Declare.
13657 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
13658 * guile/guile.c (guile_extension_script_ops): Update.
13659 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
13660 * python/python.c (python_extension_script_ops): Update.
13661 (gdbpy_execute_objfile_script): New function.
13662
312809f8
EZ
136632015-01-31 Eli Zaretskii <eliz@gnu.org>
13664
13665 * tui/tui-io.c (tui_expand_tabs): New function.
13666 (tui_puts, tui_redisplay_readline): Expand TABs into the
13667 appropriate number of spaces.
13668 * tui/tui-regs.c: Include tui-io.h.
13669 (tui_register_format): Call tui_expand_tabs to expand TABs into
13670 the appropriate number of spaces.
13671 * tui/tui-io.h: Add prototype for tui_expand_tabs.
13672
b6577aab
DE
136732015-01-30 Doug Evans <dje@google.com>
13674
13675 * NEWS: "info source" command now display producer string if present.
13676 * source.c (source_info): Print producer string if present.
13677
6da58d3e
SM
136782015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13679
13680 * varobj.c (varobj_delete): Fix comment.
13681
837ce252
SM
136822015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13683
13684 * varobj.c (create_child): Modify comment.
13685
b09e2c59
SM
136862015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13687
13688 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
13689 parameter.
13690 (ada_name_of_variable): Same.
13691 (ada_path_expr_of_child): Same.
13692 (ada_value_of_variable): Same.
13693 (ada_value_is_changeable_p): Same.
13694 (ada_value_has_mutated): Same.
13695 * c-varobj.c (varobj_is_anonymous_child): Same.
13696 (c_is_path_expr_parent): Same.
13697 (c_number_of_children): Same.
13698 (c_name_of_variable): Same.
13699 (c_path_expr_of_child): Same.
13700 (get_type): Same.
13701 (c_value_of_variable): Same.
13702 (cplus_number_of_children): Same.
13703 (cplus_name_of_variable): Same.
13704 (cplus_path_expr_of_child): Same.
13705 (cplus_value_of_variable): Same.
13706 * jv-varobj.c (java_number_of_children): Same.
13707 (java_name_of_variable): Same.
13708 (java_path_expr_of_child): Same.
13709 (java_value_of_variable): Same.
13710 * varobj.c (number_of_children): Same.
13711 (name_of_variable): Same.
13712 (is_root_p): Same.
13713 (varobj_ensure_python_env): Same.
13714 (varobj_get_objname): Same.
13715 (varobj_get_expression): Same.
13716 (varobj_get_display_format): Same.
13717 (varobj_get_display_hint): Same.
13718 (varobj_has_more): Same.
13719 (varobj_get_thread_id): Same.
13720 (varobj_get_frozen): Same.
13721 (dynamic_varobj_has_child_method): Same.
13722 (varobj_get_gdb_type): Same.
13723 (is_path_expr_parent): Same.
13724 (varobj_default_is_path_expr_parent): Same.
13725 (varobj_get_language): Same.
13726 (varobj_get_attributes): Same.
13727 (varobj_is_dynamic_p): Same.
13728 (varobj_get_child_range): Same.
13729 (varobj_value_has_mutated): Same.
13730 (varobj_get_value_type): Same.
13731 (number_of_children): Same.
13732 (name_of_variable): Same.
13733 (check_scope): Same.
13734 (varobj_editable_p): Same.
13735 (varobj_value_is_changeable_p): Same.
13736 (varobj_floating_p): Same.
13737 (varobj_default_value_is_changeable_p): Same.
13738
2568868e
SM
137392015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13740
13741 * varobj.c (varobj_get_path_expr): Set var->path_expr.
13742 * c-varobj.c (c_path_expr_of_child): Set local var instead of
13743 child->path_expr.
13744 (cplus_path_expr_of_child): Same.
13745
ca83fa81
SM
137462015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13747
13748 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
13749 result.
13750 (mi_cmd_var_info_expression): Same.
13751 * varobj.c (varobj_get_expression): Mention in the comment that
13752 the result must by freed by the caller.
13753
afa269ae
SM
137542015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13755
13756 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
13757 varobj_get_type.
13758 (varobj_update_one): Same.
13759 * varobj.c (update_type_if_necessary): Free curr_type_str and
13760 new_type_str.
13761 (varobj_get_type): Specify in comment that the result needs to be
13762 freed by the caller.
13763
cd366ee8
DE
137642015-01-29 Doug Evans <dje@google.com>
13765
13766 PR symtab/17890
13767 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
13768
38360086
MW
137692015-01-25 Mark Wielaard <mjw@redhat.com>
13770
13771 * dwarf2read.c (checkproducer): Call producer_is_gcc.
13772 * utils.c (producer_is_gcc_ge_4): Likewise.
13773 (producer_is_gcc): New function.
13774 * utils.h (producer_is_gcc): New declaration.
13775
df25ebbd
JB
137762015-01-29 Joel Brobecker <brobecker@adacore.com>
13777
13778 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
13779 kind.
13780 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
13781 parameter by "addr_stack" parameter.
13782 (resolve_dynamic_range): Replace "addr" parameter by
13783 "stack_addr" parameter. Update function documentation.
13784 Update code accordingly.
13785 (resolve_dynamic_array, resolve_dynamic_union)
13786 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
13787 (resolve_dynamic_type): Update code, following the changes made
13788 to resolve_dynamic_type_internal's interface.
13789 * dwarf2loc.h (struct property_addr_info): New.
13790 (dwarf2_evaluate_property): Replace "address" parameter
13791 by "addr_stack" parameter. Adjust function documentation.
13792 (struct dwarf2_offset_baton): New.
13793 (struct dwarf2_property_baton): Update documentation of
13794 field "referenced_type" to be more general. New field
13795 "offset_info" in union data field.
13796 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
13797 parameter by "addr_stack" parameter. Adjust code accordingly.
13798 Add support for PROP_ADDR_OFFSET properties.
13799 * dwarf2read.c (attr_to_dynamic_prop): Add support for
13800 DW_AT_data_member_location attributes as well. Use case
13801 statements instead of if/else condition.
13802
4a0ca9ec
JB
138032015-01-29 Joel Brobecker <brobecker@adacore.com>
13804
13805 * ada-varobj.c (ada_varobj_get_array_number_of_children):
13806 Return zero if PARENT_VALUE is NULL and parent_type's
13807 range type is dynamic.
13808
ddb87a81
JB
138092015-01-29 Joel Brobecker <brobecker@adacore.com>
13810
13811 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
13812 nonzero if the type's subtype is dynamic.
13813 (resolve_dynamic_range): Also resolve the range's subtype.
13814
3d7ad9b4 138152015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 13816
3d7ad9b4 13817 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
13818 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
13819
3a8b707a
DE
138202015-01-27 Doug Evans <dje@google.com>
13821
13822 * NEWS: Mention gdb.Objfile.username.
13823 * python/py-objfile.c (objfpy_get_username): New function.
13824 (objfile_getset): Add "username".
13825
d35b90fb
MW
138262015-01-24 Mark Wielaard <mjw@redhat.com>
13827
13828 * stack.c (return_command): Markup warning message with _.
13829
734ae125
DE
138302015-01-24 Doug Evans <xdje42@gmail.com>
13831
13832 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
13833
527f3840
JK
138342015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13835
13836 Fix 100x slowdown regression on DWZ files.
13837 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
13838 (struct line_header): Add offset and offset_in_dwz.
13839 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
13840 (free_line_header_voidp): New declaration.
13841 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
13842 functions.
13843 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
13844 (handle_DW_AT_stmt_list): Use line_header_hash.
13845 (free_line_header_voidp): New function.
13846 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
13847 (dwarf_decode_lines): New parameter decode_mapping, use it.
13848 (dwarf2_free_objfile): Free line_header_hash.
13849
f7e5394d
SM
138502015-01-23 Simon Marchi <simon.marchi@ericsson.com>
13851
13852 PR gdb/17416
13853 * valops.c (value_rtti_indirect_type): Catch exception thrown by
13854 value_ind.
13855
743649fd
MW
138562015-01-15 Mark Wielaard <mjw@redhat.com>
13857
13858 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
13859 DW_AT_noreturn.
13860 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
13861 calling_convention an 8 bit bit field.
13862 (TYPE_NO_RETURN): New macro.
13863 * infcmd.c (finish_command): Query if function does not return
13864 normally.
13865 * stack.c (return_command): Likewise.
13866
198297aa
PA
138672015-01-23 Pedro Alves <palves@redhat.com>
13868
13869 * linux-nat.c (linux_is_async_p): New macro.
13870 (linux_nat_is_async_p):
13871 (linux_nat_terminal_inferior): Check whether the target can async
13872 instead of whether it is already async.
13873 (linux_nat_terminal_ours): Don't check whether the target is
13874 async.
13875 (linux_async_pipe): Use linux_is_async_p.
13876
253828f1
JK
138772015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13878
13879 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
13880 '-ascending'.
13881 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
13882 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
13883 Sort tp_array using tp_array_compar.
13884 (_initialize_thread): Extend thread_apply_all_command help.
13885
f0e8c4c5
JK
138862015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13887
13888 * corelow.c (core_open): Call also thread_command.
13889 * gdbthread.h (thread_command): New prototype moved from ...
13890 * thread.c (thread_command): ... here.
13891 (thread_command): Make it global.
13892
03b79603
PA
138932015-01-22 Pedro Alves <palves@redhat.com>
13894
13895 * configure.ac [*mingw32*]: Check $curses_found instead of
13896 $prefer_curses.
13897 * configure: Regenerate.
13898 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
13899 HAVE_NCURSES_NCURSES_H checks.
13900
6b8a872f
EZ
139012015-01-22 Eli Zaretskii <eliz@gnu.org>
13902
bbbbffbb 13903 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
13904 fails with the 1st arg NULL, try again with "unknown". Don't test
13905 the "cup" capability: it isn't supported by the Windows port of
13906 ncurses, but the Windows console driver is still capable of
13907 supporting TUI.
13908
4b62a76e
JK
139092015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13910
13911 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
13912
82a864f9
EZ
139132015-01-22 Eli Zaretskii <eliz@gnu.org>
13914
13915 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
13916 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
13917 reason that "make TAGS" is broken.
13918
b35018fd
CG
139192015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
13920
13921 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
13922 and check additional store instructions.
13923
ffbc4646
WW
139242015-01-21 Wei-cheng Wang <cole945@gmail.com>
13925
13926 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
13927
ddeca1df
WW
139282015-01-21 Wei-cheng Wang <cole945@gmail.com>
13929
13930 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13931 ppc_canonicalize_syscall, ppc_linux_syscall_record,
13932 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
13933 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13934 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
13935 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
13936 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
13937 ppc_process_record_op19, ppc_process_record_op31,
13938 ppc_process_record_op59, ppc_process_record_op60,
13939 ppc_process_record_op63): Likewise.
13940
049bb5de
JB
139412015-01-20 Joel Brobecker <brobecker@adacore.com>
13942
13943 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
13944 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
13945 strerror.
13946
42b87c63 139472015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
13948
13949 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
13950 ppc_process_record_op31, ppc_process_record_op59,
13951 ppc_process_record_op60, ppc_process_record_op63,
13952 ppc_process_record): Fix -Wformat warning.
13953 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
13954 Remove unused variables.
13955
569340fc
CG
139562015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
13957
13958 * MAINTAINERS (Write After Approval): Add "Chen Gang".
13959
63413d85
EZ
139602015-01-19 Eli Zaretskii <eliz@gnu.org>
13961
13962 * configure.ac [*mingw32*]: Only add windows-termcap.o to
13963 CONFIG_OBS if not building with a curses library.
13964 * configure: Regenerate.
13965
13966 * windows-termcap.c: Include defs.h. Make the whole body empty if
13967 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
13968 HAVE_NCURSES_NCURSES_H is defined.
13969
16d8013c
JB
139702015-01-19 Joel Brobecker <brobecker@adacore.com>
13971
13972 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
13973 from end of line to start of next line.
13974
cf90fd9a
WW
139752015-01-17 Wei-cheng Wang <cole945@gmail.com>
13976
13977 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
13978 Scan PLT stub backward for reverse debugging.
13979 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13980
b4cdae6f
WW
139812015-01-17 Wei-cheng Wang <cole945@gmail.com>
13982 Ulrich Weigand <uweigand@de.ibm.com>
13983
13984 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
13985 gdb_target_obs.
13986 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
13987 record.
13988 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
13989 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
13990 (ppc_linux_init_abi): Set process_record, process_record_signal.
13991 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
13992 ppc_linux_record_tdep to gdbarch_tdep.
13993 (ppc_process_record): New declaration.
13994 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
13995 ppc_process_record_op19, ppc_process_record_op31,
13996 ppc_process_record_op59, ppc_process_record_op60,
13997 ppc_process_record_op63, ppc_process_record): New functions.
13998
2608dbf8
WW
139992015-01-17 Wei-cheng Wang <cole945@gmail.com>
14000
14001 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
14002 rs6000_in_function_epilogue_frame_p and add an argument
14003 for frame_info.
14004 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
14005 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
14006 New functions.
14007 (rs6000_epilogue_frame_unwind): New.
14008 (rs6000_gdbarch_init): Append epilogue unwinder.
14009
4c347be6
SDJ
140102015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
14011
14012 * nat/linux-personality.c: Replace "#ifndef
14013 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
14014 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
14015 systems.
14016
9f2850ba
EZ
140172015-01-16 Eli Zaretskii <eliz@gnu.org>
14018
6cdb25f4
EZ
14019 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
14020 functions.
14021 (_initialize_tui_win) <border-kind, border-mode>:
14022 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
14023 (tui_set_tab_width_command): Fix the commentary.
14024
6cdb25f4
EZ
14025 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
14026
bf555842
EZ
14027 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
14028 Doc fix.
cb86fcc1
EZ
14029 (tui_set_tab_width_command): Delete and recreate the source and
14030 the disassembly windows, to show the effect of the changed tab
14031 size immediately.
bf555842 14032
9f2850ba
EZ
14033 * tui/tui-data.h (LINE_PREFIX): Make shorter
14034 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
14035 "Thread NNNNN.XXXX" thread ID notation on Windows.
14036
95761b2d
JK
140372015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14038
14039 Fix gcc-5 compilation.
14040 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
14041
8cc73a39
SDJ
140422015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
14043
14044 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
14045 (linux-personality.o): New rule.
14046 * common/common-defs.h: Include <stdint.h>.
14047 * config/aarch64/linux.mh (NATDEPFILES): Include
14048 linux-personality.o.
14049 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
14050 * config/arm/linux.mh (NATDEPFILES): Likewise.
14051 * config/i386/linux64.mh (NATDEPFILES): Likewise.
14052 * config/i386/linux.mh (NATDEPFILES): Likewise.
14053 * config/ia64/linux.mh (NATDEPFILES): Likewise.
14054 * config/m32r/linux.mh (NATDEPFILES): Likewise.
14055 * config/m68k/linux.mh (NATDEPFILES): Likewise.
14056 * config/mips/linux.mh (NATDEPFILES): Likewise.
14057 * config/pa/linux.mh (NATDEPFILES): Likewise.
14058 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
14059 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
14060 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
14061 * config/s390/linux.mh (NATDEPFILES): Likewise.
14062 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
14063 * config/sparc/linux.mh (NATDEPFILES): Likewise.
14064 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
14065 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
14066 * defs.h: Remove #include <stdint.h> (moved to
14067 common/common-defs.h).
14068 * linux-nat.c: Include nat/linux-personality.h. Remove #include
14069 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
14070 nat/linux-personality.c).
14071 (linux_nat_create_inferior): Remove code to disable address space
14072 randomization (moved to nat/linux-personality.c). Create cleanup
14073 to disable address space randomization.
14074 * nat/linux-personality.c: New file.
14075 * nat/linux-personality.h: Likewise.
14076
fb23d554
SDJ
140772015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
14078
14079 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
14080 common/posix-strerror.c.
14081 (posix-strerror.o): New rule.
14082 (mingw-strerror.o): Likewise.
14083 * common/common-utils.h (safe_strerror): Move prototype to here,
14084 from utils.h.
14085 * common/common.host: New file.
14086 * common/mingw-strerror.c: Likewise.
14087 * common/posix-strerror.c: Likewise.
14088 * configure: Regenerated.
14089 * configure.ac: Source common/common.host. Add variable
14090 common_host_obs to gdb_host_obs.
14091 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
14092 gdb/common/posix-strerror.c when warning about the use of
14093 strerror.
14094 * mingw-hdep.c (safe_strerror): Remove definition; move it to
14095 common/mingw-strerror.c.
14096 * posix-hdep.c (safe_strerror): Remove definition; move it to
14097 common/posix-hdep.c.
14098 * utils.h (safe_strerror): Remove prototype; move to
14099 common/common-utils.h.
14100
3af8af43
JB
141012015-01-15 Joel Brobecker <brobecker@adacore.com>
14102
14103 GDB 7.8.2 released.
14104
bafffb51
JB
141052015-01-15 Joel Brobecker <brobecker@adacore.com>
14106
14107 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
14108 ___XA type if the array has already been fixed.
14109
cdf43629
YQ
141102015-01-14 Yao Qi <yao@codesourcery.com>
14111
14112 * Makefile.in (ppc-linux.o): New rule.
14113 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
14114 * configure.ac: AC_CHECK_FUNCS(getauxval).
14115 * config.in: Re-generated.
14116 * configure: Re-generated.
14117 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
14118 Declare.
14119 * nat/ppc-linux.c: New file.
14120 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
14121 Call ppc64_64bit_inferior_p.
14122
514c5338
YQ
141232015-01-14 Yao Qi <yao@codesourcery.com>
14124
14125 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
14126 nat/ppc-linux.h.
14127 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
14128 (PPC_FEATURE_HAS_DFP): Likewise.
14129 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
14130 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
14131 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
14132 Include "nat/ppc-linux.h".
14133 * nat/ppc-linux.h: New file.
14134 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
14135
5589af0e
PA
141362015-01-14 Pedro Alves <palves@redhat.com>
14137
14138 PR gdb/17525
14139 * breakpoint.c: Include "interps.h".
14140 (bpstat_do_actions_1): Also check whether the interpreter is
14141 async.
14142
6c400b59
PA
141432015-01-14 Pedro Alves <palves@redhat.com>
14144
14145 PR cli/17828
14146 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
14147 reinstall if the interpreter is sync.
14148
e02c96a7
DE
141492015-01-13 Doug Evans <dje@google.com>
14150
14151 * objfiles.c (objfile_filename): New function.
14152 * objfiles.h (objfile_filename): Declare it.
14153 (objfile_name): Add function comment.
14154 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
14155 bfd file name (which may be realpath'd), and the original name.
14156
3b2f13ff
JB
141572015-01-13 Joel Brobecker <brobecker@adacore.com>
14158
14159 * NEWS: Create a new section for the next release branch.
14160 Rename the section of the current branch, now that it has
14161 been cut.
14162
b4cfe7f8
JB
141632015-01-13 Joel Brobecker <brobecker@adacore.com>
14164
14165 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
14166 * version.in: Bump version to 7.9.50.DATE-cvs.
14167
92fc2e69
JB
141682015-01-13 Joel Brobecker <brobecker@adacore.com>
14169
14170 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
14171 Remove trailing new-line in argument of call to warning.
14172
f71f0b0d
JB
141732015-01-13 Joel Brobecker <brobecker@adacore.com>
14174
14175 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
14176 new-line in argument of call to "warning".
14177
04dccad0
JB
141782015-01-13 Joel Brobecker <brobecker@adacore.com>
14179
14180 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
14181 in static block, then try searching for primitive types.
14182
08b13bdd
PP
141832015-01-12 Patrick Palka <patrick@parcs.ath.cx>
14184
14185 * top.h (gdb_add_history): Declare.
14186 * top.c (command_count): New variable.
14187 (gdb_add_history): New function.
14188 (gdb_safe_append_history): New static function.
14189 (quit_force): Call it.
14190 (command_line_input): Use gdb_add_history instead of
14191 add_history.
14192 * event-top.c (command_line_handler): Likewise.
14193
4ac15b59
JC
141942015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
14195
14196 PR gdb/17046
14197 * darwin-nat.c: Replace <machine/setjmp.h> #include by
14198 <setjmp.h> #include.
14199
005e54bb
DE
142002015-01-11 Doug Evans <xdje42@gmail.com>
14201
14202 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
14203
439250fb
DE
142042015-01-11 Doug Evans <xdje42@gmail.com>
14205
14206 PR gdb/15830
14207 * NEWS: The "maint demangle" command is renamed as "demangle".
14208 * demangle.c: #include cli/cli-utils.h, language.h.
14209 (demangle_command): New function.
14210 (_initialize_demangle): Add new command "demangle".
14211 * maint.c (maintenance_demangle): Stub out.
14212 (_initialize_maint_cmds): Update help text for "maint demangle",
14213 and mark as deprecated.
14214
ebf3aa72
MK
142152015-01-11 Mark Kettenis <kettenis@gnu.org>
14216
14217 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
14218 inferior_thread is a function.
14219
6bf045cd
PP
142202015-01-09 Patrick Palka <patrick@parcs.ath.cx>
14221
14222 * Makefile.in (.y.c): Don't munge yacc's #line
14223 directives.
14224
588dcc3e
PP
142252015-01-09 Patrick Palka <patrick@parcs.ath.cx>
14226
14227 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
14228 to prompt for input.
14229 * tui/tui-hooks.c (tui_query_hook): Remove.
14230 (tui_install_hooks): Don't set deprecated_query_hook.
14231 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
14232 height calculation. Always update the command window's cur_line.
14233
9c02b525
PA
142342015-01-09 Pedro Alves <palves@redhat.com>
14235
14236 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
14237 function.
14238 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
14239 declaration.
14240 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
14241 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
14242 stop_reason.
14243 (check_stopped_by_watchpoint): New function.
14244 (save_sigtrap): Reimplement.
14245 (linux_nat_stopped_by_watchpoint): Adjust.
14246 (linux_nat_lp_status_is_event): Delete.
14247 (stop_wait_callback): Only call save_sigtrap after storing the
14248 pending status.
14249 (status_callback): If the thread had been stopped for a breakpoint
14250 that has since been removed, discard the event and resume the LWP.
14251 (count_events_callback, select_event_lwp_callback): Use
14252 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
14253 (cancel_breakpoint): Rename to ...
14254 (check_stopped_by_breakpoint): ... this. Record whether the LWP
14255 stopped for a software breakpoint or hardware breakpoint.
14256 (select_event_lwp): Only give preference to the stepping LWP in
14257 all-stop mode. Adjust comments.
14258 (stop_and_resume_callback): Remove references to new_pending_p.
14259 (linux_nat_filter_event): Likewise. Leave exit events of the
14260 leader thread pending here. Handle signal short circuiting here.
14261 Only call save_sigtrap after storing the pending waitstatus.
14262 (linux_nat_wait_1): Remove 'retry' label. Remove references to
14263 new_pending. Don't handle leaving events the caller is not
14264 interested in pending here, nor handle signal short-circuiting
14265 here. Also give equal priority to all LWPs that have had events
14266 in non-stop mode. If reporting a software breakpoint event,
14267 unadjust the LWP's PC.
14268 * linux-nat.h (enum lwp_stop_reason): New.
14269 (struct lwp_info) <stop_pc>: New field.
14270 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
14271 (struct lwp_info) <stop_reason>: New field.
14272 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
14273
8af756ef
PA
142742015-01-09 Pedro Alves <palves@redhat.com>
14275
14276 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
14277 Set the LWP's 'resumed' flag.
14278
8a99810d
PA
142792015-01-09 Pedro Alves <palves@redhat.com>
14280
14281 * linux-nat.c (linux_resume_one_lwp): New function.
14282 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
14283 (linux_nat_resume): Use lwp_status_pending_p and
14284 linux_resume_one_lwp.
14285 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
14286 (linux_handle_extended_wait): Use linux_resume_one_lwp.
14287 (status_callback, running_callback): Use lwp_status_pending_p.
14288 (lwp_status_pending_p): New function.
14289 (stop_and_resume_callback): Use lwp_status_pending_p.
14290 (linux_nat_filter_event): Use linux_resume_one_lwp.
14291 (linux_nat_wait_1): Always use status_callback to look for an LWP
14292 with a pending status. Use linux_resume_one_lwp.
14293 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
14294 linux_resume_one_lwp.
14295
f7ce857f
PA
142962015-01-09 Pedro Alves <palves@redhat.com>
14297
14298 * breakpoint.c (bp_location_inserted_here_p): New function,
14299 factored out from ...
14300 (breakpoint_inserted_here_p): ... here. Use
14301 ALL_BP_LOCATIONS_AT_ADDR.
14302 (software_breakpoint_inserted_here_p): Use
14303 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
14304
c1a747c1
PA
143052014-01-09 Pedro Alves <palves@redhat.com>
14306
14307 Skip enabling event reporting if the kernel supports
14308 PTRACE_EVENT_CLONE.
14309 * linux-thread-db.c: Include "nat/linux-ptrace.h".
14310 (thread_db_use_events): New function.
14311 (try_thread_db_load_1): Check thread_db_use_events before enabling
14312 event reporting.
14313 (update_thread_state): New function.
14314 (attach_thread): Use it. Check thread_db_use_events before
14315 enabling event reporting.
14316 (thread_db_detach): Check thread_db_use_events before disabling
14317 event reporting.
14318 (find_new_threads_callback): Check thread_db_use_events before
14319 enabling event reporting. Update the thread's state if not using
14320 libthread_db events.
14321
a33e3959
PA
143222015-01-09 Pedro Alves <palves@redhat.com>
14323
14324 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
14325 about to wait for is > 0.
14326 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
14327 the kernel thread ID is -1.
14328
8784d563
PA
143292015-01-09 Pedro Alves <palves@redhat.com>
14330
14331 * linux-nat.c (attach_proc_task_lwp_callback): New function.
14332 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
14333 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
14334 ptrace option flags.
14335 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
14336 field.
14337 * nat/linux-procfs.c: Include <dirent.h>.
14338 (linux_proc_get_int): New parameter "warn". Handle it.
14339 (linux_proc_get_tgid): Adjust.
14340 (linux_proc_get_tracerpid): Rename to ...
14341 (linux_proc_get_tracerpid_nowarn): ... this.
14342 (linux_proc_pid_get_state): New function, factored out from
14343 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
14344 and handle it.
14345 (linux_proc_pid_is_gone): New function.
14346 (linux_proc_pid_is_stopped): Adjust.
14347 (linux_proc_pid_is_zombie_maybe_warn)
14348 (linux_proc_pid_is_zombie_nowarn): New functions.
14349 (linux_proc_pid_is_zombie): Use
14350 linux_proc_pid_is_zombie_maybe_warn.
14351 (linux_proc_attach_tgid_threads): New function.
14352 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
14353 (linux_proc_get_tracerpid): Rename to ...
14354 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
14355 (linux_proc_pid_is_gone): New declaration.
14356 (linux_proc_pid_is_zombie): Update comment.
14357 (linux_proc_pid_is_zombie_nowarn): New declaration.
14358 (linux_proc_attach_lwp_func): New typedef.
14359 (linux_proc_attach_tgid_threads): New declaration.
14360 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
14361 use nowarn functions.
14362 (linux_ptrace_attach_fail_reason_string): Move here from
14363 gdbserver/linux-low.c and rename.
14364 (ptrace_supports_feature): If the current ptrace options are not
14365 known yet, check them now, instead of asserting.
14366 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
14367 Declare.
14368
883ed13e
PA
143692015-01-09 Pedro Alves <palves@redhat.com>
14370
14371 * linux-thread-db.c (thread_db_find_new_threads_silently)
14372 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
14373 (find_new_threads_once): Print debug output on gdb_stdlog.
14374
1710aab8
CG
143752015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
14376 Pedro Alves <palves@redhat.com>
14377
14378 * compile/compile.c: Include "gdb_wait.h".
14379 (do_rmdir): Check return value, and free 'zap'.
14380
b597c318
YQ
143812015-01-08 Pedro Alves <palves@redhat.com>
14382 Yao Qi <yao@codesourcery.com>
14383
14384 * dwarf2loc.c (indirect_pieced_value): Don't call
14385 gdb_sign_extend. Call extract_signed_integer instead.
14386 * utils.c (gdb_sign_extend): Remove.
14387 * utils.h (gdb_sign_extend): Remove declaration.
14388
025ac414
PM
143892015-01-07 Pierre Muller <muller@sourceware.org>
14390
14391 PR symtab/17811
14392 * stabsread.c (define_symbol): Set language for C++ special symbols.
14393
fa5af12a
PP
143942015-01-07 Patrick Palka <patrick@parcs.ath.cx>
14395
14396 * inflow.c (initial_gdb_ttystate): Tweak comment.
14397
ea42d6f8
JB
143982015-01-07 Joel Brobecker <brobecker@adacore.com>
14399
14400 * inflow.c (set_initial_gdb_ttystate): Add empty line after
14401 comment documenting function.
14402
6a06d660
PP
144032015-01-07 Patrick Palka <patrick@parcs.ath.cx>
14404
14405 * terminal.h (set_initial_gdb_ttystate): Declare.
14406 * inflow.c (initial_gdb_ttystate): New static variable.
14407 (set_initial_gdb_ttystate): New setter.
14408 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
14409 instead of our current terminal state.
14410 * top.c (gdb_init): Call set_initial_gdb_ttystate.
14411
e810d75b
JB
144122015-01-07 Joel Brobecker <brobecker@adacore.com>
14413
14414 * guile/scm-type.c (tyscm_array_1): Add comment.
14415 * python/py-type.c (typy_array_1): Add comment.
14416
fce10a84
JB
144172015-01-06 Joel Brobecker <brobecker@adacore.com>
14418
14419 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
14420 error if N2 is equal to N1 - 1.
14421
8503d6e1
JB
144222015-01-06 Joel Brobecker <brobecker@adacore.com>
14423
14424 * python/py-type.c (typy_array_1): Do not raise negative-length
14425 exception if N2 is equal to N1 - 1.
14426
4d29c0a8
DE
144272015-01-03 Doug Evans <xdje42@gmail.com>
14428
14429 * c-exp.y: Whitespace cleanup.
14430 (classify_inner_name): Remove extra ;.
14431
eaa6a9a4
MR
144322015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
14433
14434 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
14435 offset signed.
14436
02fe9972
DE
144372015-01-02 Doug Evans <dje@google.com>
14438
14439 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
14440
e2ada9cb
DE
144412015-01-02 Doug Evans <dje@google.com>
14442
14443 * symtab.h (struct symbol): Fix typo in comment.
14444
32d0add0
JB
144452015-01-01 Joel Brobecker <brobecker@adacore.com>
14446
14447 Update year range in copyright notice of all files.
14448
76f2b779
JB
144492015-01-01 Joel Brobecker <brobecker@adacore.com>
14450
14451 * top.c (print_gdb_version): Update copyright year to 2015.
14452
077309e2 144532015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 14454
077309e2 14455 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 14456
077309e2 14457For older changes see ChangeLog-2014.
c906108c
SS
14458\f
14459Local Variables:
14460mode: change-log
14461left-margin: 8
14462fill-column: 74
14463version-control: never
57da7796 14464coding: utf-8
c906108c 14465End:
This page took 2.579305 seconds and 4 git commands to generate.