]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
RXv2 support update
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b4a7fcab
JB
12015-12-21 Joel Brobecker <brobecker@adacore.com>
2
3 * gdbtypes.c (create_array_type_with_stride): Fix indentation.
4
e7826da3
JB
52015-12-19 Joel Brobecker <brobecker@adacore.com>
6
7 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Remove trailing
8 newline at end of error message.
9
bc008695
SL
102015-12-18 Sandra Loosemore <sandra@codesourcery.com>
11
12 * event-top.c (command_handler): Don't require stdin to be a tty
13 for call to reinitialize_more_filter.
14 * top.c (command_loop): Likewise.
15
1690b616
SL
162015-12-18 Sandra Loosemore <sandra@codesourcery.com>
17
18 * utils.c (prompt_for_continue): Call throw_quit directly on 'q'.
19
5f2dfcfd
AT
202015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
21
22 * arm-tdep.c (arm_get_next_pcs_read_memory_unsigned_integer): Cast
23 to enum bfd_endian)
24
d9311bfa
AT
252015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
26
27 * Makefile.in (ALL_TARGET_OBS): Append arm-get-next-pcs.o,
28 arm-linux.o.
29 (ALLDEPFILES): Append arm-get-next-pcs.c, arm-linux.c
30 (arm-linux.o): New rule.
31 (arm-get-next-pcs.o): New rule.
32 * arch/arm-get-next-pcs.c: New file.
33 * arch/arm-get-next-pcs.h: New file.
34 * arch/arm-linux.h: New file.
35 * arch/arm-linux.c: New file.
36 * arm.c: Include common-regcache.c.
37 (thumb_advance_itstate): Moved from arm-tdep.c.
38 (arm_instruction_changes_pc): Likewise.
39 (thumb_instruction_changes_pc): Likewise.
40 (thumb2_instruction_changes_pc): Likewise.
41 (shifted_reg_val): Likewise.
42 * arm.h (submask): Move macro from arm-tdep.h
43 (bit): Likewise.
44 (bits): Likewise.
45 (sbits): Likewise.
46 (BranchDest): Likewise.
47 (thumb_advance_itstate): Moved declaration from arm-tdep.h
48 (arm_instruction_changes_pc): Likewise.
49 (thumb_instruction_changes_pc): Likewise.
50 (thumb2_instruction_changes_pc): Likewise.
51 (shifted_reg_val): Likewise.
52 * arm-linux-tdep.c: Include arch/arm.h, arch/arm-get-next-pcs.h
53 arch/arm-linux.h.
54 (arm_linux_get_next_pcs_ops): New struct.
55 (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT,
56 ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT,
57 ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): Move stack
58 layout defines to arch/arm-linux.h.
59 (arm_linux_sigreturn_next_pc_offset): Move to arch/arm-linux.c.
60 (arm_linux_software_single_step): Adjust for arm_get_next_pcs
61 implementation.
62 * arm-tdep.c: Include arch/arm-get-next-pcs.h.
63 (arm_get_next_pcs_ops): New struct.
64 (submask): Move macro to arm.h.
65 (bit): Likewise.
66 (bits): Likewise.
67 (sbits): Likewise.
68 (BranchDest): Likewise.
69 (thumb_instruction_changes_pc): Move to arm.c
70 (thumb2_instruction_changes_pc): Likewise.
71 (arm_instruction_changes_pc): Likewise.
72 (shifted_reg_val): Likewise.
73 (thumb_advance_itstate): Likewise.
74 (thumb_get_next_pc_raw): Move to arm-get-next-pcs.c.
75 (arm_get_next_pc_raw): Likewise.
76 (arm_get_next_pc): Likewise.
77 (thumb_deal_with_atomic_sequence_raw): Likewise.
78 (arm_deal_with_atomic_sequence_raw): Likewise.
79 (arm_deal_with_atomic_sequence): Likewise.
80 (arm_get_next_pcs_read_memory_unsigned_integer): New function.
81 (arm_get_next_pcs_addr_bits_remove): Likewise.
82 (arm_get_next_pcs_syscall_next_pc): Likewise.
83 (arm_get_next_pcs_is_thumb): Likewise.
84 (arm_software_single_step): Adjust for arm_get_next_pcs
85 implementation.
86 * arm-tdep.h: (arm_get_next_pc): Remove declaration.
87 (arm_get_next_pcs_read_memory_unsigned_integer):
88 New declaration.
89 (arm_get_next_pcs_addr_bits_remove): Likewise.
90 (arm_get_next_pcs_syscall_next_pc): Likewise.
91 (arm_get_next_pcs_is_thumb): Likewise.
92 (arm_deal_with_atomic_sequence: Remove declaration.
93 * common/gdb_vecs.h: Add CORE_ADDR vector definition.
94 * configure.tgt (aarch64*-*-linux): Add arm-get-next-pcs.o,
95 arm-linux.o.
96 (arm*-wince-pe): Add arm-get-next-pcs.o.
97 (arm*-*-linux*): Add arm-get-next-pcs.o, arm-linux.o,
98 arm-get-next-pcs.o
99 (arm*-*-netbsd*,arm*-*-knetbsd*-gnu): Add arm-get-next-pcs.o.
100 (arm*-*-openbsd*): Likewise.
101 (arm*-*-symbianelf*): Likewise.
102 (arm*-*-*): Likewise.
103 * symtab.h: Move CORE_ADDR vector definition to gdb_vecs.h.
104
68ce2059
AT
1052015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
106
107 * Makefile.in (SFILES): Append common/common-regcache.c.
108 (COMMON_OBS): Append common/common-regcache.o.
109 (common-regcache.o): New rule.
110 * common/common-regcache.h (register_status) New enum.
111 (regcache_raw_read_unsigned): New declaration.
112 * common/common-regcache.c: New file.
113 * regcache.h (enum register_status): Move to common-regcache.h.
114 (regcache_raw_read_unsigned): Likewise.
115 (regcache_raw_get_unsigned): Likewise.
116
d0e59a68
AT
1172015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
118
119 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc_offset): New function.
120 (arm_linux_sigreturn_next_pc): Likewise.
121 (arm_linux_syscall_next_pc): Use regcache instead of frame.
122 (arm_linux_software_single_step): Likewise.
123 * arm-tdep.c (arm_is_thumb): New function.
124 (shifted_reg_va): Use regcache instead of frame.
125 (thumb_get_next_pc_raw): Likewise.
126 (arm_get_next_pc_raw): Likewise.
127 (arm_get_next_pc): Likewise.
128 (thumb_deal_with_atomic_sequence_raw): Likewise.
129 (arm_deal_with_atomic_sequence_raw): Likewise.
130 (arm_deal_with_atomic_sequence): Likewise.
131 (arm_software_single_step): Likewise.
132 * arm-tdep.h (struct gdbarch_tdep): Use regcache for syscall_next_pc.
133 (arm_get_next_pc): Use regcache.
134 (arm_deal_with_atomic_sequence): Likewise.
135 (arm_is_thumb): New declaration.
136 * regcache.c (regcache_raw_get_unsigned): New function.
137 * regcache.h (regcache_raw_get_unsigned): New function declaration.
138
cba7e83f
AT
1392015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
140
141 * arch/arm.c (bitcount): Move from arm-tdep.c.
142 (condition_true): Likewise.
143 * arch/arm.h (Instruction Definitions): Move form arm-tdep.h.
144 (condition_true): Move defenition from arm-tdep.h.
145 (bitcount): Likewise.
146 * arm-tdep.c (condition_true): Move to arch/arm.c.
147 (bitcount): Likewise.
148 * arm-tdep.h (Instruction Definitions): Move to arch/arm.h.
149 * arm-wince-tdep.c: Include arch/arm.h.
150 * armnbsd-tdep.c: Likewise.
151
a6904d5a
PA
1522015-12-17 Pedro Alves <palves@redhat.com>
153
154 PR threads/19354
155 * linux-nat.c (linux_nat_update_thread_list): Update process cores
156 each lwp was last seen running on here.
157 * linux-thread-db.c (update_thread_core): Delete.
158 (thread_db_update_thread_list_td_ta_thr_iter): Rename to ...
159 (thread_db_update_thread_list): ... this. Skip inferiors with
160 execution. Also call the target beneath.
161 (thread_db_update_thread_list): Delete.
162
4a6ed09b
PA
1632015-12-17 Pedro Alves <palves@redhat.com>
164
165 * configure.ac: Remove tkill checks.
166 * configure, config.in: Regenerate.
167 * linux-nat.c: Remove HAVE_TKILL_SYSCALL check. Update top level
168 comments.
169 (linux_nat_post_attach_wait): Remove 'cloned' parameter. Use
170 __WALL.
171 (attach_proc_task_lwp_callback): Don't set the cloned flag.
172 (linux_nat_attach): Adjust.
173 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
174 to 'kill'.
175 (linux_handle_extended_wait): Use __WALL. Don't set the cloned
176 flag.
177 (wait_lwp): Use __WALL. Update comments.
178 (running_callback, stop_and_resume_callback): Delete.
179 (linux_nat_filter_event): Don't stop and resume all lwps. Don't
180 check if the event LWP has previously exited.
181 (check_zombie_leaders): Update comments.
182 (linux_nat_wait_1): Use __WALL.
183 (kill_wait_callback): Don't handle clone processes separately.
184 Use __WALL instead.
185 (linux_thread_alive): Delete.
186 (linux_nat_thread_alive): Return true as long as the LWP is in the
187 LWP list.
188 (linux_nat_update_thread_list): Assume the kernel supports
189 PTRACE_EVENT_CLONE.
190 (get_signo): Delete.
191 (lin_thread_get_thread_signals): Remove LinuxThreads references.
192 No longer check __pthread_sig_restart / __pthread_sig_cancel in
193 the inferior.
194 * linux-nat.h (struct lwp_info) <cloned>: Delete field.
195 * linux-thread-db.c: Update comments.
196 (_initialize_thread_db): Remove LinuxThreads references.
197 * nat/linux-waitpid.c (my_waitpid): No longer emulate __WALL.
198 Pass down flags unmodified.
199 * linux-waitpid.h (my_waitpid): Update documentation.
200
c3c87445
YQ
2012015-12-17 Yao Qi <yao.qi@linaro.org>
202
203 * aarch64-tdep.c (struct stack_item_t): Update comments.
204 (pass_on_stack): Set item.data to NULL.
205 (aarch64_push_dummy_call): Call write_memory if si->data
206 isn't NULL.
207
7544db95
PA
2082015-12-16 Pedro Alves <palves@redhat.com>
209
210 * configure.ac (compiler warning flags): When testing a
211 -Wno-foo option, check whether -Wfoo works instead.
212 * configure: Regenerate.
213
a4e22a5d
PA
2142015-12-16 Pedro Alves <palves@redhat.com>
215
216 * common/vec.h (vec_offset): New macro.
217 (DEF_VEC_ALLOC_FUNC_I, DEF_VEC_ALLOC_FUNC_O): Use it instead of
218 offsetof.
219
19d9d4ef
DB
2202015-12-11 Don Breazeal <donb@codesourcery.com>
221
222 * NEWS: Announce fork and exec event support for target remote.
223
8020350c
DB
2242015-12-11 Don Breazeal <donb@codesourcery.com>
225
226 * inferior.c (number_of_live_inferiors): New function.
227 (have_live_inferiors): Use number_of_live_inferiors in place
228 of duplicate code.
229 * inferior.h (number_of_live_inferiors): Declare new function.
230 * remote.c (set_general_process): Remove restriction on target
231 remote mode.
232 (remote_query_supported): Likewise.
233 (remote_detach_1): Exit in target remote mode only when there
234 is just one live inferior left.
235 (remote_disconnect): Unpush the target directly instead of
236 calling remote_mourn.
237 (remote_kill): Rewrite function to handle both target remote
238 and extended-remote. Call remote_kill_k.
239 (remote_kill_k): New function.
240 (extended_remote_kill): Delete function.
241 (remote_mourn, extended_remote_mourn): Combine functions into
242 one, remote_mourn, and enable extended functionality for target
243 remote.
244 (remote_pid_to_str): Enable "process" style ptid string for
245 target remote.
246 (remote_supports_multi_process): Remove restriction on target
247 remote mode.
248
132874d7
AB
2492015-12-14 Andrew Burgess <andrew.burgess@embecosm.com>
250
251 * i386-tdep.c (i386_mpx_info_bounds): Use TYPE_LENGTH.
252 (i386_mpx_set_bounds): Likewise.
253 * solib-darwin.c (darwin_load_image_infos): Likewise.
254 (darwin_solib_read_all_image_info_addr): Likewise.
255
4fdd372d
AB
2562015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
257
258 * cli/cli-cmds.c (_initialize_cli_cmds): Extend help text for
259 'list' command.
260
3b2464a8
AB
2612015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
262
263 * cli/cli-cmds.c (list_command): Add an error when trying to use
264 '-' to scan read off the start of the source file.
265
a0def019
AB
2662015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
267
268 * cli/cli-cmds.c (list_command): Check that the argument string is
269 a single character, either '+' or '-'.
270
1a48ce76
AB
2712015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
272
273 * cli/cli-cmds.c (list_command): Move all handling of +/-
274 arguments into a single if block.
275
8c05462a
AB
2762015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
277
278 * cli/cli-cmds.c (list_command): Use NULL instead of 0 when
279 checking pointers.
280
f43f8571
AB
2812015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
282
283 * source.c (lines_to_list): Make static.
284
60269a4a
AT
2852015-12-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
286
287 * linux-thread-db.c (find_new_threads_callback): Use record_thread.
288
c2c2a31f
AT
2892015-12-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
290
291 * breakpoint.c (remove_thread_event_breakpoints): Remove.
292 * breakpoint.h (remove_thread_event_breakpoints): Remove
293 declaration.
294 * linux-nat.c (in_pid_list_p): Remove.
295 (lin_lwp_attach_lwp): Remove.
296 * linux-nat.h (lin_lwp_attach_lwp): Remove declaration.
297 * linux-thread-db.c (thread_db_use_events): Remove.
298 (struct thread_db_info) <td_create_bp_addr>: Remove.
299 <td_death_bp_addr>: Likewise.
300 <td_ta_event_addr_p>: Likewise.
301 <td_ta_set_event_p>: Likewise.
302 <td_ta_clear_event_p>: Likewise.
303 <td_ta_event_getmsg_p>: Likewise.
304 <td_thr_event_enable_p>: Likewise.
305 (attach_thread): Likewise.
306 (detach_thread): Likewise.
307 (have_threads_callback): Likewise.
308 (have_threads): Likewise.
309 (enable_thread_event): Likewise.
310 (enable_thread_event_reporting): Likewise.
311 (try_thread_db_load_1): Remove td_ta_event_addr, td_ta_set_event,
312 td_ta_clear_event, td_ta_event_getmsg, td_thr_event_enable
313 initializations.
314 (try_thread_db_load_1): Remove enable_thread_event_reporting call.
315 (disable_thread_event_reporting): Remove.
316 (record_thread): Adapt to thread_db_use_event removal.
317 (detach_thread): Remove.
318 (thread_db_detach): Adapt to thread_db_use_event removal.
319 (check_event): Remove.
320 (thread_db_wait): Adapt to thread events support removal.
321 (thread_db_mourn_inferior): Likewise.
322 (find_new_threads_callback): Likewise.
323 (find_new_threads_once): Likewise.
324 (thread_db_update_thread_list): Likewise.
325
28d2bfb9
AB
3262015-12-10 Andrew Burgess <andrew.burgess@embecosm.com>
327
328 * dwarf2read.c (dwarf2_ranges_read): Unify and fix base address
329 reading code.
330
f56331b4
KB
3312015-12-09 Kevin Buettner <kevinb@redhat.com>
332
333 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Perform a pointer
334 to address conversion for DWARF_VALUE_MEMORY.
335
1c35a88f
LM
3362015-12-09 Luis Machado <lgustavo@codesourcery.com>
337
338 * gdb/mi/mi-cmd-var.c (mi_parse_format): Handle new "zero-hexadecimal"
339 format.
340 * gdb/varobj.c (varobj_format_string): Add "zero-hexadecimal" entry.
341 (format_code): Add 'z' entry.
342 (varobj_set_display_format): Handle FORMAT_ZHEXADECIMAL.
343 * gdb/varobj.h (varobj_display_formats) <FORMAT_ZHEXADECIMAL>: New enum
344 field.
345 * NEWS: Add new note to MI changes citing the new zero-hexadecimal
346 format for -var-set-format.
347
b593e3d9
RK
3482015-12-09 Ruslan Kabatsayev <b7.10110111@gmail.com> (tiny patch)
349
350 PR gdb/18702
351 * configure.host: Fix detection of x86_64 host when setting
352 floatformats.
353
3685b09f
PMR
3542015-12-08 Pierre-Marie de Rodat <derodat@adacore.com>
355
356 * NEWS: Announce this enhancement and the corresponding new
357 option.
358
d72413e6
PMR
3592015-12-07 Pierre-Marie de Rodat <derodat@adacore.com>
360
361 * ada-lang.c (print_signatures): New.
362 (ada_print_symbol_signature): New.
363 (user_select_syms): Add signatures to the output of candidate
364 symbols using ada_print_symbol_signature.
365 (_initialize_ada_language): Add a "set/show ada
366 print-signatures" boolean option.
367
1b36b657
AA
3682015-12-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
369
370 * MAINTAINERS (Write After Approval): Add Andreas Arnez.
371
030f17b5
JB
3722015-12-06 Mike Stump <mikestump@comcast.net>
373 Joel Brobecker <brobecker@adacore.com>
374
375 * Makefile.in (TAGS): Replace i386-nat.h by x86-nat.h.
376 * x86-nat.c: Replace remaining references to i386-nat
377 by reference to x86-nat instead.
378
a5d43209
JB
3792015-12-05 Joel Brobecker <brobecker@adacore.com>
380
381 GDB 7.10.1 released.
382
974eac9d
UW
3832015-12-01 Ulrich Weigand <uweigand@de.ibm.com>
384
385 * remote.c (remote_parse_stop_reply): Avoid GCC 4.1 "operation
386 may be undefined" warning.
387
2e3b657e
UW
3882015-12-01 Ulrich Weigand <uweigand@de.ibm.com>
389
390 * remote.c (remote_newthread_step): Initialize item.name.
391 (remote_get_threads_with_qthreadinfo): Likewise.
392
f2faf941
PA
3932015-11-30 Pedro Alves <palves@redhat.com>
394
395 PR 14618
396 * NEWS (New remote packets): Mention the N stop reply.
397 * remote.c (remote_protocol_features): Add "no-resumed" entry.
398 (remote_query_supported): Report no-resumed+ support.
399 (remote_parse_stop_reply): Handle 'N'.
400 (process_stop_reply): Handle TARGET_WAITKIND_NO_RESUMED.
401 (remote_wait_as): Handle 'N' / TARGET_WAITKIND_NO_RESUMED.
402 (_initialize_remote): Register "set/show remote
403 no-resumed-stop-reply" commands.
404
f4836ba9
PA
4052015-11-30 Pedro Alves <palves@redhat.com>
406
407 PR 14618
408 * infrun.c (handle_no_resumed): New function.
409 (handle_inferior_event_1) <TARGET_WAITKIND_NO_RESUMED>: Defer to
410 handle_no_resumed.
411
65706a29
PA
4122015-11-30 Pedro Alves <palves@redhat.com>
413
414 * NEWS (New commands): Mention "set/show remote thread-events"
415 commands.
416 (New remote packets): Mention thread created/exited stop reasons
417 and QThreadEvents packet.
418 * infrun.c (disable_thread_events): New function.
419 (stop_all_threads): Disable/enable thread create/exit events.
420 Handle TARGET_WAITKIND_THREAD_EXITED.
421 (handle_inferior_event_1): Handle TARGET_WAITKIND_THREAD_CREATED
422 and TARGET_WAITKIND_THREAD_EXITED.
423 * remote.c (remove_child_of_pending_fork): Also remove threads of
424 threads that have TARGET_WAITKIND_THREAD_EXITED events.
425 (remote_parse_stop_reply): Handle "create" magic register. Handle
426 'w' stop reply.
427 (initialize_remote): Install remote_thread_events as
428 to_thread_events target hook.
429 (remote_thread_events): New function.
430 * target-delegates.c: Regenerate.
431 * target.c (target_thread_events): New function.
432 * target.h (struct target_ops) <to_thread_events>: New field.
433 (target_thread_events): Declare.
434 * target/waitstatus.c (target_waitstatus_to_string): Handle
435 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
436 * target/waitstatus.h (enum target_waitkind)
437 <TARGET_WAITKIND_THREAD_CREATED, TARGET_WAITKIND_THREAD_EXITED):
438 New values.
439
de979965
PA
4402015-11-30 Pedro Alves <palves@redhat.com>
441
442 * NEWS (New remote packets): Mention vCtrlC.
443 * remote.c (PACKET_vCtrlC): New enum value.
444 (async_remote_interrupt): Call target_interrupt instead of
445 target_stop.
446 (remote_interrupt_as): Remove 'ptid' parameter.
447 (remote_interrupt_ns): New function.
448 (remote_stop): Adjust.
449 (remote_interrupt): If the target is in non-stop mode, try
450 interrupting with vCtrlC.
451 (initialize_remote): Install set remote ctrl-c packet.
452
799a2abe
PA
4532015-11-30 Pedro Alves <palves@redhat.com>
454
455 * remote.c (struct remote_state) <remote_watch_data_address,
456 stop_reason>: Delete fields.
457 (struct private_thread_info) <stop_reason, watch_data_address>:
458 New fields.
459 (resume_clear_thread_private_info): New function.
460 (append_pending_thread_resumptions): Call it.
461 (remote_resume): Clear all threads' private info.
462 (process_stop_reply): Adjust.
463 (remote_wait_as): Don't reference remote_state's stop_reason
464 field.
465 (remote_stopped_by_sw_breakpoint)
466 (remote_stopped_by_hw_breakpoint, remote_stopped_by_watchpoint)
467 (remote_stopped_data_address): Adjust to refer get data from the
468 current thread.
469
066f6b6e
PA
4702015-11-30 Pedro Alves <palves@redhat.com>
471
472 * infcmd.c (attach_post_wait): If the target is always in non-stop
473 mode, and the UI is in all-stop mode, stop all threads and pick
474 the one with lowest number as current.
475
6efcd9a8
PA
4762015-11-30 Pedro Alves <palves@redhat.com>
477
478 * gdbthread.h (switch_to_thread_no_regs): Declare.
479 * infcmd.c (setup_inferior): New function, factored out from ...
480 (attach_command_post_wait): ... this. Rename to ...
481 (attach_post_wait): ... this. Replace parameter async_exec with
482 attach_post_wait_mode parameter. Adjust.
483 (enum attach_post_wait_mode): New enum.
484 (struct attach_command_continuation_args): Replace 'async_exec'
485 field with 'mode' field.
486 (attach_command_continuation): Adjust.
487 (attach_command): Add comment. Mark the inferior as needing
488 setup. Adjust to use enum attach_post_wait_mode.
489 (notice_new_inferior): Use switch_to_thread_no_regs. Adjust to
490 use enum attach_post_wait_mode.
491 * inferior.h (setup_inferior): Declare.
492 (struct inferior) <needs_setup>: New field.
493 * infrun.c (set_last_target_status): Make extern.
494 (stop_all_threads): Make extern. Setup inferior, if necessary.
495 * infrun.h (set_last_target_status, stop_all_threads): Declare.
496 * remote-notif.c (remote_async_get_pending_events_handler)
497 (handle_notification): Replace non_stop checks with
498 target_is_non_stop_p() checks.
499 * remote.c (remote_notice_new_inferior): Remove non_stop check.
500 (remote_update_thread_list): Replace non_stop check with
501 target_is_non_stop_p() check.
502 (print_one_stopped_thread): New function.
503 (process_initial_stop_replies): New 'from_tty' parameter.
504 "Notice" all new live inferiors after storing initial stops as
505 pending status in each corresponding thread. If all-stop, stop
506 all threads, try picking a signalled thread as current, and print
507 the status of that one thread. Record the last target status.
508 (remote_start_remote): Replace non_stop checks with
509 target_is_non_stop_p() checks. Don't query for the remote current
510 thread of use qOffsets here. Pass from_tty to
511 process_initial_stop_replies.
512 (extended_remote_attach): Replace non_stop checks with
513 target_is_non_stop_p() checks.
514 (extended_remote_post_attach): Send qOffsets here.
515 (remote_vcont_resume, remote_resume, remote_stop)
516 (remote_interrupt, remote_parse_stop_reply, remote_wait): Replace
517 non_stop checks with target_is_non_stop_p() checks.
518 (remote_async): If target is non-stop, mark/clear the pending
519 events token.
520 * thread.c (switch_to_thread_no_regs): New function.
521
f015c27b
PA
5222015-11-30 Pedro Alves <palves@redhat.com>
523
524 * gdb.mi/mi-nonstop.exp: Append "set non-stop on" to GDBFLAGS
525 instead of issuing "-gdb-set non-stop 1" after starting gdb.
526 Use mi_is_target_remote instead of checking "is_remote target".
527 * lib/gdb.exp (gdb_is_target_remote): Rename to ...
528 (gdb_is_target_remote_prompt): ... this, and add 'prompt_regexp'
529 parameter.
530 (gdb_is_target_remote): Reimplement.
531 * lib/mi-support.exp (mi_is_target_remote): New procedure.
532
16807a48
PA
5332014-11-28 Pedro Alves <palves@redhat.com>
534
535 * cp-name-parser.y (conversion_op): Use
536 DEMANGLE_COMPONENT_CONVERSION instead of DEMANGLE_COMPONENT_CAST.
537
e1961661
SM
5382015-11-27 Simon Marchi <simon.marchi@ericsson.com>
539
540 * remote.c (start_thread): Add cast.
541
805035d7
YQ
5422015-11-27 Yao Qi <yao.qi@linaro.org>
543
544 * nat/aarch64-linux-hw-point.c (aarch64_dr_state_remove_one_point):
545 Don't assert on alignment.
546 (aarch64_handle_breakpoint): Only check alignment when IS_INSERT
547 is true.
548
cd635f74
YQ
5492015-11-27 Yao Qi <yao.qi@linaro.org>
550
551 * aarch64-tdep.c (is_hfa): Rename to ...
552 (is_hfa_or_hva): ... this. Handle vector type. All callers
553 updated.
554 (aarch64_extract_return_value): Update debugging message.
555 (aarch64_store_return_value): Likewise.
556 (aarch64_return_in_memory): Update comments.
557
238f2452
YQ
5582015-11-27 Yao Qi <yao.qi@linaro.org>
559
560 * aarch64-tdep.c (aarch64_type_align): For vector type, return
561 its length, but with the maximum of 16 bytes.
562 (is_hfa): Return zero for vector type.
563 (aarch64_push_dummy_call): Handle short vectors.
564 (aarch64_extract_return_value): Likewise.
565 (aarch64_store_return_value): Likewise.
566
79efa585
SM
5672015-11-26 Daniel Colascione <dancol@dancol.org>
5682015-11-26 Simon Marchi <simon.marchi@ericsson.com>
569
570 * linux-nat.c (linux_nat_thread_name): Replace implementation by call
571 to linux_proc_tid_get_name.
572 * nat/linux-procfs.c (linux_proc_tid_get_name): New function,
573 implementation inspired by linux_nat_thread_name.
574 * nat/linux-procfs.h (linux_proc_tid_get_name): New declaration.
575 * remote.c (struct private_thread_info) <name>: New field.
576 (free_private_thread_info): Free name field.
577 (remote_thread_name): New function.
578 (thread_item_t) <name>: New field.
579 (clear_threads_listing_context): Free name field.
580 (start_thread): Get name xml attribute.
581 (thread_attributes): Add "name" attribute.
582 (remote_update_thread_list): Copy name field.
583 (init_remote_ops): Assign remote_thread_name callback.
584 * target.h (target_thread_name): Update comment.
585 * NEWS: Mention remote thread name support.
586
73ede765
SM
5872015-11-26 Simon Marchi <simon.marchi@ericsson.com>
588
589 * linux-nat.c (linux_nat_thread_name): Constify return value.
590 * target.h (struct target_ops) <to_thread_name>: Likewise.
591 (target_thread_name): Likewise.
592 * target.c (target_thread_name): Likewise.
593 * target-delegates.c (debug_thread_name): Regenerate.
594 * python/py-infthread.c (thpy_get_name): Constify local variables.
595 * thread.c (print_thread_info): Likewise.
596 (thread_find_command): Likewise.
597
46a3515b
MM
5982015-11-26 Markus Metzger <markus.t.metzger@intel.com>
599
600 PR 19297
601 * btrace.c (btrace_enable): Check whether HAVE_LIBIPT is defined.
602
be81798b
PA
6032015-11-24 Pedro Alves <palves@redhat.com>
604
605 * NEWS: Mention that a few "info" commands now list the
606 corresponding items in ascending ID order.
607
62147a22
PA
6082015-11-24 Pedro Alves <palves@redhat.com>
609
610 PR 17539
611 * printcmd.c (display_command): Append new display at the end of
612 the list.
613
2f341b6e
PA
6142015-11-24 Pedro Alves <palves@redhat.com>
615
616 PR 17539
617 * printcmd.c (display_command): Append new display at the end of
618 the list.
619
7e0aa6aa
PA
6202015-11-24 Pedro Alves <palves@redhat.com>
621
622 PR 17539
623 * inferior.c (add_inferior_silent): Append the new inferior to the
624 end of the list.
625 * progspace.c (add_program_space): Append the new pspace to the
626 end of the list.
627 * thread.c (new_thread): Append the new thread to the end of the
628 list.
629
050c224b
PA
6302015-11-24 Pedro Alves <palves@redhat.com>
631
632 * linux-tdep.c (find_stop_signal): Delete.
633 (struct linux_corefile_thread_data) <pid>: Remove field.
634 (linux_corefile_thread_callback): Rename to ...
635 (linux_corefile_thread): ... this. Now takes a struct
636 linux_corefile_thread_data pointer rather than a void pointer.
637 Remove thread state and thread pid checks.
638 (linux_make_corefile_notes): Prefer dumping the signalled thread
639 first. Use ALL_NON_EXITED_THREADS instead of
640 iterate_over_threads.
641
980facc3 6422015-11-23 Par Olsson <par.olsson@windriver.com>
c93e8391
SM
643
644 * breakpoint.c (tracepoint_print_recreate): Fix logic error
645 if -> else if.
646
5506f9f6
KB
6472015-11-23 Kevin Buettner <kevinb@redhat.com>
648
649 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Scan backwards
650 over all zero-sized symbols.
651
16c3b12f
JB
6522015-11-23 Joel Brobecker <brobecker@adacore.com>
653
654 * stack.c (print_frame_local_vars): Temporarily set the selected
655 frame to FRAME while printing the frame's local variables.
656
a6a20ad7
JB
6572015-11-23 Joel Brobecker <brobecker@adacore.com>
658
659 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue):
660 Increment PC in while loop skipping "pop reg" instructions.
661
416dc9c6
JB
6622015-11-23 Joel Brobecker <brobecker@adacore.com>
663
664 * arm-tdep.c (arm_exidx_unwind_sniffer): Do not check for a frame
665 stuck on a system call if the given frame is the innermost frame.
666
155bfbd3
JB
6672015-11-23 Joel Brobecker <brobecker@adacore.com>
668
669 * dwarf2read.c (read_structure_type): Set the type's length
670 to zero if it has a DW_AT_byte_size attribute which is not
671 a constant.
672
aa14fb50
TG
6732015-11-23 Tristan Gingold <gingold@adacore.com>
674
675 * darwin-nat.c (darwin_ptrace): Avoid a cast.
676 (darwin_resume_thread): Ditto. And always set or reset
677 single step.
678
ad2073b0
TG
6792015-11-23 Tristan Gingold <gingold@adacore.com>
680
681 * darwin-nat.c (darwin_read_dyld_info): Write address in
682 big-endian order.
683 * solib-darwin.c (darwin_validate_exec_header): New function,
684 extracted from...
685 (darwin_read_exec_load_addr_from_dyld): ...here.
686 (darwin_read_exec_load_addr_at_init): New function.
687 (darwin_solib_read_all_image_info_addr): Adjust after
688 darwin_read_dyld_info change.
689 (darwin_solib_create_inferior_hook): Support PIE.
690
3eb831e0
TG
6912015-11-23 Tristan Gingold <gingold@adacore.com>
692
693 * darwin-nat.c (darwin_ptrace): Add a cast to fix warning.
694 (darwin_resume, cancel_breakpoint, _initialize_darwin_inferior):
695 Likewise.
696 (darwin_read_write_inferior): Rewrite using mach_vm_read_overwrite.
697
e084c964
DB
6982015-11-19 Don Breazeal <donb@codesourcery.com>
699
700 * target.c (read_memory_robust): Call read_whatever_is_readable
701 with arguments in the correct order.
702
b35d5edb
PA
7032015-11-19 Pedro Alves <palves@redhat.com>
704
705 * remote.c (remote_query_supported): Send the "xmlRegisters="
706 feature last.
707
bb82e934
SM
7082015-11-19 Simon Marchi <simon.marchi@ericsson.com>
709
710 * nat/aarch64-linux-hw-point.c (aarch64_linux_set_debug_regs): Change
711 form of iov_len computation.
712
9a084706
PA
7132015-11-19 Pedro Alves <palves@redhat.com>
714
715 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
716 mode.
717 * configure: Regenerate.
718
dad44a1f
PA
7192015-11-19 Pedro Alves <palves@redhat.com>
720
721 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Remove -fpermissive.
722 * configure: Regenerate.
723
c6d81124
PA
7242015-11-19 Pedro Alves <palves@redhat.com>
725
726 * breakpoint.c (software_watchpoint_add_no_memory_location)
727 (is_no_memory_software_watchpoint): New functions.
728 (update_watchpoint): Use
729 software_watchpoint_add_memoryless_location.
730 (breakpoint_address_bits): Use is_no_memory_software_watchpoint.
731
4d193179
SM
7322015-11-19 Simon Marchi <simon.marchi@ericsson.com>
733 Pedro Alves <palves@redhat.com>
734
735 * s390-linux-tdep.c (s390_canonicalize_syscall): Add casts and
736 intermediate 'int' variable.
737
f8708a14
PA
7382015-11-19 Pedro Alves <palves@redhat.com>
739
740 * linux-thread-db.c (try_thread_db_load_1): Add cast.
741
915ef8b1
PA
7422015-11-19 Pedro Alves <palves@redhat.com>
743
744 * remote.c (remote_unpush_target): Use
745 pop_all_targets_at_and_above instead of pop_all_targets_above.
746 * target.c (unpush_target_and_assert): New function, factored out
747 from ...
748 (pop_all_targets_above): ... here.
749 (pop_all_targets_at_and_above): New function.
750 * target.h (pop_all_targets_at_and_above): Declare.
751
7cc3f8e2
SM
7522015-11-18 Simon Marchi <simon.marchi@ericsson.com>
753
754 * valops.c (value_string): Constify 'ptr' parameter.
755 * value.h (value_string): Constify 'ptr' parameter.
756
79f33898
SM
7572015-11-18 Simon Marchi <simon.marchi@ericsson.com>
758 Pedro Alves <palves@redhat.com>
759
760 * break-catch-sig.c (signal_catchpoint_print_one): Add cast.
761 * c-exp.y (parse_string_or_char, yylex): Add casts.
762 * c-lang.c (evaluate_subexp_c): Add casts.
763 * d-exp.y (parse_string_or_char, yylex): Add casts.
764 * go-exp.y (parse_string_or_char, build_packaged_name): Add casts.
765 * p-valprint.c (pascal_object_print_value_fields): Add casts.
766 * valprint.c (generic_emit_char, generic_printstr): Add casts.
767
e3a3797e
SM
7682015-11-18 Simon Marchi <simon.marchi@ericsson.com>
769
770 * valops.c (value_cstring): Constify 'ptr' parameter.
771 * value.h (value_cstring): Constify 'ptr' parameter.
772
0735fddd
YQ
7732015-11-18 Yao Qi <yao.qi@linaro.org>
774
775 * aarch64-tdep.c (pass_in_v): Add argument len. Add local array
776 reg. Callers updated.
777
1946c4cc
YQ
7782015-11-17 Yao Qi <yao.qi@linaro.org>
779
780 * infrun.c (resume): Check control.trap_expected only
781 when deciding the set of threads to resume.
782
b6b80672
PA
7832015-11-17 Pedro Alves <palves@redhat.com>
784
785 * cp-namespace.c (cp_lookup_bare_symbol)
786 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
787 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
788 (cp_lookup_nested_symbol): Use null_block_symbol.
789 * d-namespace.c (d_lookup_symbol, d_lookup_nested_symbol)
790 (d_lookup_symbol_imports, d_lookup_symbol_module): Use
791 null_block_symbol.
792 * symtab.c (null_block_symbol): New global.
793 * symtab.h (null_block_symbol): Declare.
794
eec461d0
PA
7952015-11-17 Pedro Alves <palves@redhat.com>
796
797 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
798 (GDB_XCPT_RAW_TRY, GDB_XCPT): Define.
799 Replace __cplusplus checks with GDB_XCPT checks throughout.
800 * common/common-exceptions.c: Replace __cplusplus checks with
801 GDB_XCPT checks throughout.
802
91ee7171
PA
8032015-11-17 Pedro Alves <palves@redhat.com>
804
805 * common/common-defs.h (ATTRIBUTE_PRINTF): Redefine in terms of
806 _GL_ATTRIBUTE_FORMAT_PRINTF after including ansidecl.h.
807
e063da67
PA
8082015-11-17 Pedro Alves <palves@redhat.com>
809
810 * common/common-defs.h (__STDC_CONSTANT_MACROS)
811 (__STDC_LIMIT_MACROS): Define before including stdint.h.
812
95824559
PA
8132015-11-17 Pedro Alves <palves@redhat.com>
814
815 * windows-nat.c (handle_exception): Return 0 for first chance
816 exceptions.
817 (get_windows_debug_event): Adjust.
818
56db1d67
PA
8192015-11-17 Pedro Alves <palves@redhat.com>
820
821 * windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as
822 signal number for terminator.
823
69e976f8
PA
8242015-11-17 Pedro Alves <palves@redhat.com>
825
826 * ser-tcp.c (net_open) : Cast getsockopt argument to char *
827 instead of void *. Update comment.
828 (net_read_prim): Cast recv argument to char * instead of void *.
829 (net_write_prim): Cast send argument to char *. Add comment.
830
c3de4d92
PA
8312015-11-17 Pedro Alves <palves@redhat.com>
832
833 * win32-i386-low.c (update_debug_registers_callback)
834 (win32_get_current_dr): Add cast.
835 * win32-low.c (thread_rec, delete_thread_info)
836 (continue_one_thread): Add casts.
837 (strwinerror): Cast FormatMessage argument to LPTSTR instead of
838 LPVOID.
839 (win32_create_inferior, suspend_one_thread): Add casts.
840
43499ea3
PA
8412015-11-17 Pedro Alves <palves@redhat.com>
842
843 * windows-nat.c (AdjustTokenPrivileges_ftype)
844 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
845 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
846 (GetCurrentConsoleFont_ftype, GetModuleInformation_ftype)
847 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
848 (GetConsoleFontSize_ftype): New typedefs.
849 (AdjustTokenPrivileges, DebugActiveProcessStop)
850 (DebugBreakProcess, DebugSetProcessKillOnExit, EnumProcessModules)
851 (GetConsoleFontSize, GetCurrentConsoleFont, GetModuleInformation)
852 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize):
853 Adjust.
854 (GetModuleFileNameEx_ftype): New typedef.
855 (GetModuleFileNameEx): Use it.
856 (_initialize_loadable): Define GPA macro and use it.
857
2986367f
PA
8582015-11-17 Pedro Alves <palves@redhat.com>
859
860 * gdb-dlfcn.c (gdb_dlsym, gdb_dlclose) [__MINGW32__]: Add casts to
861 HMODULE.
862
0ae1c716
PA
8632015-11-17 Pedro Alves <palves@redhat.com>
864
865 * exec.c (exec_file_attach, symfile_bfd_open) [__GO32__ || _WIN32
866 || __CYGWIN__]: Add casts.
867 * utils.c (gdb_filename_fnmatch): Add cast.
868 * windows-nat.c (windows_create_inferior): Add cast.
869
cd78b7a1
PA
8702015-11-17 Pedro Alves <palves@redhat.com>
871
872 * ser-mingw.c (CancelIo_ftype): New typedef.
873 (CancelIo): Use CancelIo_ftype.
874 (ser_windows_close, ser_windows_wait_handle)
875 (ser_windows_read_prim, stop_select_thread)
876 (console_select_thread, pipe_select_thread, file_select_thread)
877 (ser_console_wait_handle, ser_console_done_wait_handle)
878 (ser_console_close, cleanup_pipe_state, pipe_windows_close)
879 (pipe_windows_write, pipe_wait_handle, pipe_done_wait_handle)
880 (net_windows_socket_check_pending, net_windows_select_thread)
881 (net_windows_wait_handle, net_windows_done_wait_handle)
882 (net_windows_close): Add casts.
883 (_initialize_ser_windows): Cast to CancelIo_ftype* instead of
884 void*.
885
0c801b96
SM
8862015-11-17 Simon Marchi <simon.marchi@ericsson.com>
887
888 * c-exp.y (exp): Adjust, change enum c_string_type to
889 c_string_type.
890 (parse_string_or_char): Likewise.
891 * c-lang.c (charset_for_string_type): Likewise.
892 (classify_type): Likewise.
893 (c_printchar): Likewise.
894 (c_printstr): Likewise.
895 (evaluate_subexp_c): Likewise. And change cast to enum
896 c_string_type_values.
897 * c-lang.h: Include "common/enum_flags.h".
898 (enum c_string_type): Rename to...
899 (enum c_string_type_values): ...this.
900 (c_string_type): Define new enum flags type.
901
8d297bbf
PA
9022015-11-17 Pedro Alves <palves@redhat.com>
903
904 * btrace.h: Include common/enum-flags.h.
905 (btrace_insn_flags): Define.
906 (struct btrace_insn) <flags>: Change type.
907 (btrace_function_flags): Define.
908 (struct btrace_function) <flags>: Change type.
909 (btrace_thread_flags): Define.
910 (struct btrace_thread_info) <flags>: Change type.
911 * c-exp.y (token_flags): Rename to ...
912 (token_flag): ... this.
913 (token_flags): Define.
914 (struct token) <flags>: Change type.
915 * common/enum-flags.h: New file.
916 * compile/compile-c-types.c (convert_qualified): Change type of
917 'quals' local.
918 * compile/compile-internal.h: Include "common/enum-flags.h".
919 (gcc_qualifiers_flags): Define.
920 * completer.c (enum reg_completer_targets): Rename to ...
921 (enum reg_completer_target): ... this.
922 (reg_completer_targets): Define.
923 (reg_or_group_completer_1): Change type of 'targets' parameter.
924 * disasm.c (do_mixed_source_and_assembly_deprecated): Change type
925 of 'psl_flags' local.
926 (do_mixed_source_and_assembly): Change type of 'psl_flags' local.
927 * infrun.c: Include "common/enum-flags.h".
928 (enum step_over_what): Rename to ...
929 (enum step_over_what_flag): ... this.
930 (step_over_what): Change type.
931 (start_step_over): Change type of 'step_what' local.
932 (thread_still_needs_step_over): Now returns a step_over_what.
933 Adjust.
934 (keep_going_pass_signal): Change type of 'step_what' local.
935 * linux-tdep.c: Include "common/enum-flags.h".
936 (enum filterflags): Rename to ...
937 (enum filter_flag): ... this.
938 (filter_flags): Define.
939 (dump_mapping_p): Change type of 'filterflags' parameter.
940 (linux_find_memory_regions_full): Change type of 'filterflags'
941 local.
942 (linux_find_memory_regions_full): Pass the address of an unsigned
943 int to sscanf instead of the address of an enum.
944 * record-btrace.c (btrace_print_lines): Change type of local
945 'psl_flags'.
946 (btrace_call_history): Replace 'flags' parameter
947 with 'int_flags' parameter. Adjust.
948 (record_btrace_call_history, record_btrace_call_history_range)
949 (record_btrace_call_history_from): Rename 'flags' parameter to
950 'int_flags'. Use record_print_flags.
951 * record.h: Include "common/enum-flags.h".
952 (record_print_flags): Define.
953 * source.c: Include "common/enum-flags.h".
954 (print_source_lines_base, print_source_lines): Change type of
955 flags parameter.
956 * symtab.h: Include "common/enum-flags.h".
957 (enum print_source_lines_flags): Rename to ...
958 (enum print_source_lines_flag): ... this.
959 (print_source_lines_flags): Define.
960 (print_source_lines): Change prototype.
961
9a4073e2
PA
9622015-11-17 Pedro Alves <palves@redhat.com>
963
964 * guile/scm-disasm.c (gdbscm_disasm_read_memory): Return -1 on
965 error instead of TARGET_XFER_E_IO.
966 (gdbscm_disasm_memory_error): Always pass TARGET_XFER_E_IO to
967 memory_error.
968
66c6502d
DV
9692015-11-17 Dominik Vogt <vogt@linux.vnet.ibm.com>
970
971 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
972 (prologue_inst_adjust_sp, hppa_frame_cache): Fix left shift of negative
973 value.
974 * dwarf2read.c (read_subrange_type): Likewise.
975
db3516bb
YQ
9762015-11-16 Yao Qi <yao.qi@linaro.org>
977
978 * aarch64-tdep.c (aarch64_extract_return_value): Change array
979 buf's length to V_REGISTER_SIZE.
980
8e80f9d1
YQ
9812015-11-16 Yao Qi <yao.qi@linaro.org>
982
983 * aarch64-tdep.c (pass_in_x_or_stack): Change argument type
984 from bfd_byte * to value *. Caller updated.
985 (pass_in_x): Likewise.
986 (pass_in_v_or_stack): Likewise.
987 (pass_on_stack): Likewise.
988
0d1993c0
YQ
9892015-11-16 Yao Qi <yao.qi@linaro.org>
990
991 * aarch64-tdep.c (aarch64_push_dummy_call): Call value_contents
992 instead of value_contents_writeable.
993 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
994
ef9bd0b8
YQ
9952015-11-16 Yao Qi <yao.qi@linaro.org>
996
997 * arm-tdep.c (arm_push_dummy_call): New array buf. Store regval
998 to buf. Pass buf instead of val to push_stack_item.
999
c4312b19
YQ
10002015-11-13 Yao Qi <yao.qi@linaro.org>
1001
1002 PR tdep/19051
1003 * arm-tdep.c (arm_type_align): Return the right alignment
1004 value for vector.
1005 (arm_vfp_cprc_sub_candidate): Return true for 64-bit and
1006 128-bit vector types.
1007 (arm_return_in_memory): Handel vector type.
1008
b13c8ab2
YQ
10092015-11-13 Yao Qi <yao.qi@linaro.org>
1010
1011 * arm-tdep.c (arm_return_in_memory): Rewrite it.
1012 (arm_return_value): Call arm_return_in_memory for
1013 TYPE_CODE_COMPLEX.
1014
df3b6708
YQ
10152015-11-12 Yao Qi <yao.qi@linaro.org>
1016
1017 * arm-tdep.c (push_stack_item): Change contents type to
1018 const gdb_byte *.
1019
4397c913
SM
10202015-11-11 Simon Marchi <simon.marchi@ericsson.com>
1021
1022 * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
1023 cast to PTRACE_TYPE_RET *.
1024 (inf_ptrace_store_register): Likewise.
1025
5f515954
AB
10262015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1027
1028 * avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating
1029 info sub-commands.
1030 * gnu-nat.c (add_task_commands): Likewise.
1031 * macrocmd.c (_initialize_macrocmd): Likewise.
1032
f3575e08
AB
10332015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * cli/cli-decode.c (add_info): Switch to class_info.
1036
dddc0e16
JB
10372015-11-09 Joel Brobecker <brobecker@adacore.com>
1038
1039 * ada-lang.c (ada_is_wrapper_field): Add special handling
1040 for fields called "RETVAL".
1041
a5eda10c
YQ
10422015-11-09 Yao Qi <yao.qi@linaro.org>
1043
1044 * arm-tdep.c (arm_exidx_new_objfile): Use
1045 ELF_STRING_ARM_unwind.
1046
c0987663
YQ
10472015-11-09 Yao Qi <yao.qi@linaro.org>
1048
1049 * infrun.c (displaced_step_in_progress_thread): New function.
1050 (handle_inferior_event_1): Call it.
1051
c86a40c6
YQ
10522015-11-05 Yao Qi <yao.qi@linaro.org>
1053
1054 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
1055 aarch64_decode_insn and decode instruction by aarch64_inst.
1056
d9ebcbce
YQ
10572015-11-05 Yao Qi <yao.qi@linaro.org>
1058
1059 * aarch64-tdep.c (extract_signed_bitfield): Remove.
1060 (decode_masked_match): Remove.
1061 (aarch64_decode_add_sub_imm): Remove.
1062 (aarch64_decode_br): Remove.
1063 (aarch64_decode_eret): Remove.
1064 (aarch64_decode_movz): Remove.
1065 (aarch64_decode_orr_shifted_register_x): Remove.
1066 (aarch64_decode_ret): Remove.
1067 (aarch64_decode_stp_offset): Remove.
1068 (aarch64_decode_stur): Remove.
1069 (aarch64_analyze_prologue): Call aarch64_decode_insn
1070 and use aarch64_inst to decode instructions.
1071
93d96012
YQ
10722015-11-05 Yao Qi <yao.qi@linaro.org>
1073
1074 * aarch64-tdep.c (aarch64_decode_stp_offset): New argument
1075 wback.
1076 (aarch64_decode_stp_offset_wb): Removed.
1077 (aarch64_analyze_prologue): Don't use
1078 aarch64_decode_stp_offset_wb.
1079
6df55226
MK
10802015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
1081
1082 PR/18376
1083 * gdb/s390-linux-tdep.c (s390_is_partial_instruction): New function.
1084 (s390_software_single_step): New function.
1085 (s390_displaced_step_hw_singlestep): New function.
1086 (s390_gdbarch_init): Fill gdbarch slots with the above.
1087
566c56c9
MK
10882015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
1089
1090 PR/18376
1091 * gdb/configure.tgt: Add linux-record.o to s390*-linux.
1092 * gdb/s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
1093 (s390_linux_record_tdep): New static global variable.
1094 (s390x_linux_record_tdep): New static global variable.
1095 (s390_all_but_pc_registers_record): New function.
1096 (s390_canonicalize_syscall): New function.
1097 (s390_linux_syscall_record): New function.
1098 (s390_linux_record_signal): New function.
1099 (s390_record_calc_disp_common): New function.
1100 (s390_record_calc_disp): New function.
1101 (s390_record_calc_disp_vsce): New function.
1102 (s390_record_calc_rl): New function.
1103 (s390_record_gpr_g): New function.
1104 (s390_record_gpr_h): New function.
1105 (s390_record_vr): New function.
1106 (s390_process_record): New function.
1107 (s390_init_linux_record_tdep): New function.
1108 (s390_gdbarch_init): Fill record function slots.
1109
394816ee
MK
11102015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
1111
1112 * record-full.c (record_full_exec_insn): Use xmalloc for temporary
1113 memory storage.
1114
0c532a29
MM
11152015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1116
1117 * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
1118 instead of DISASSEMBLY_SOURCE_DEPRECATED. Also accept /s.
1119 (_initialize_record): Document the /s modifier.
1120 * NEWS: Announce record instruction-history's new /s modifier.
1121
f94cc897
MM
11222015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1123
1124 * record-btrace.c (struct btrace_line_range): New.
1125 (btrace_mk_line_range, btrace_line_range_add)
1126 (btrace_line_range_is_empty, btrace_line_range_contains_range)
1127 (btrace_find_line_range, btrace_print_lines): New.
1128 (btrace_insn_history): Add source interleaving algorithm.
1129
a50a4026
MM
11302015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1131
1132 * disasm.h (DISASSEMBLY_SPECULATION): New.
1133 (struct disasm_insn): New.
1134 (gdb_pretty_print_insn): New.
1135 * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
1136 Update users. Print instruction number and indicate speculative
1137 execution, if requested.
1138
af70908d
MM
11392015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1140
1141 * disasm.c (dump_insns): Split into this and ...
1142 (gdb_pretty_print_insn): ... this.
1143
1c215b97
SM
11442015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1145
1146 * xtensa-linux-nat.c (supply_gregset_reg): Make static.
1147 (xtensa_linux_fetch_inferior_registers): Likewise.
1148 (xtensa_linux_store_inferior_registers): Likewise.
1149
f844cf0e
SM
11502015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1151
1152 * arm-linux-nat.c (arm_linux_read_description): Add cast.
1153
f4b0a671
SM
11542015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1155
1156 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
1157 type of rw to enum target_hw_bp_type.
1158 (ppc_linux_remove_mask_watchpoint): Likewise.
1159 * target.c (target_insert_mask_watchpoint): Likewise.
1160 (target_remove_mask_watchpoint): Likewise.
1161 * target.h (target_insert_mask_watchpoint): Likewise.
1162 (target_remove_mask_watchpoint): Likewise.
1163 (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
1164 (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
1165 * target-delegates.c: Regenerate.
1166
653090d3
SM
11672015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1168
1169 * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
1170 (get_sim_inferior_data): Likewise.
1171 (sim_inferior_data_cleanup): Likewise.
1172 (gdbsim_close_inferior): Likewise.
1173 (gdbsim_resume_inferior): Likewise.
1174 (gdbsim_wait): Likewise.
1175 (simulator_command): Likewise.
1176 (sim_command_completer): Likewise.
1177
b9559b8b
MK
11782015-11-03 Marcin Kościelnicki <koriakin@0x04.net>
1179
1180 * MAINTAINERS (Write After Approval): Add Marcin Kościelnicki.
1181
d35ae833
PA
11822015-10-30 Pedro Alves <palves@redhat.com>
1183
1184 * breakpoint.c (breakpoint_in_range_p)
1185 (breakpoint_location_address_range_overlap): New functions.
1186 * breakpoint.h (breakpoint_in_range_p): New declaration.
1187 * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
1188 in the scratch pad range, don't displaced step.
1189
10268a4c
MK
11902015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1191
1192 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
1193 size_stack_t, size_size_t, size_iovec.
1194
d9b19c49
MK
11952015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1196
1197 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
1198 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
1199 (amd64_x32_linux_init_abi): Fix size_termios.
1200
c28ebe25
MK
12012015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1202
1203 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
1204
ff83a547
MK
12052015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1206
1207 * linux-record.c (record_linux_system_call): Fix old_select.
1208
d2de23ad
MK
12092015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1210
1211 * linux-record.c (record_linux_system_call): Fix newstatat.
1212
cb658d21
MK
12132015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1214
1215 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
1216
b80d067f
MK
12172015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1218
1219 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
1220 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
1221 (amd64_x32_linux_init_abi): Add size_time_t.
1222 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
1223 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
1224 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
1225 handling.
1226 * linux-record.h (struct linux_record_tdep): Add size_time_t.
1227 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
1228
933c5a62
MK
12292015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1230
1231 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
1232
72aded86
MK
12332015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1234
1235 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
1236 size_dirent{,64}, add size_old_dirent.
1237 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
1238 add size_old_dirent.
1239 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
1240 size_old_dirent.
1241 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
1242 add size_old_dirent.
1243 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
1244 add size_old_dirent.
1245 * linux-record.c (record_linux_system_call): Fix handling of readdir
1246 and getdents{,64}.
1247 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
1248 add size_old_dirent.
1249 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
1250 size_dirent{,64}, add size_old_dirent.
1251
7571f7f2
MK
12522015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1253
1254 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
1255 size_sigset_t, size_old_sigaction, size_old_sigset_t.
1256 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
1257 size_sigset_t, size_old_sigaction, size_old_sigset_t.
1258 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
1259 size_old_sigaction, size_old_sigset_t.
1260 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
1261 size_old_sigaction, size_old_sigset_t.
1262 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
1263 size_old_sigaction, size_old_sigset_t.
1264 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
1265 size_sigset_t, size_old_sigaction, size_old_sigset_t.
1266
d625f9a9
MK
12672015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1268
1269 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
1270 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
1271
aefb52a6
MK
12722015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1273
1274 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
1275 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
1276 (amd64_x32_linux_init_abi): Remove size_siginfo.
1277 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
1278 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
1279 * linux-record.c (record_linux_system_call): Change size_siginfo
1280 to size_siginfo_t.
1281 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
1282 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
1283
d2242e34
PA
12842015-10-29 Pedro Alves <palves@redhat.com>
1285
1286 * mdebugread.c (add_data_symbol): New function, factored out from
1287 ...
1288 (parse_symbol): ... here. Delete 'theclass' local.
1289
cb0a2700
SM
12902015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1291
1292 * jit.c (jit_target_read_impl): Add cast.
1293
15cf126c
SM
12942015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1295
1296 * jit.c (jit_reader_load): Add cast.
1297
b4069958
SM
12982015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1299
1300 * dwarf2read.c (partial_die_full_name): Add cast.
1301
7535d5ed
PA
13022015-10-29 Pedro Alves <palves@redhat.com>
1303
1304 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
1305
fa4c39cb
PA
13062015-10-29 Pedro Alves <palves@redhat.com>
1307
1308 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
1309
e681cf3f
EZ
13102015-10-29 Eli Zaretskii <eliz@gnu.org>
1311
1312 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
1313 in the environment.
1314
ebf05345
PA
13152015-10-29 Pedro Alves <palves@redhat.com>
1316
1317 * gnu-v2-abi.c (gnuv2_is_destructor_name)
1318 (gnuv2_is_constructor_name): Add casts.
1319
44a8b4df
PA
13202015-10-29 Pedro Alves <palves@redhat.com>
1321
1322 * common/common-exceptions.c (exception_none): Add cast.
1323
e3bdafe2
PA
13242015-10-29 Pedro Alves <palves@redhat.com>
1325
1326 * compile/compile-c-types.c (struct type_map_instance)
1327 <gcc_type>: Rename to gcc_type_handle.
1328 (insert_type, convert_type): Adjust.
1329
9c6595ab
PA
13302015-10-29 Pedro Alves <palves@redhat.com>
1331
1332 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
1333 assume that "break" breaks out of a TRY/CATCH.
1334 * python/py-framefilter.c (py_print_single_arg): Don't assume
1335 "continue" breaks out of a TRY/CATCH.
1336 * python/py-value.c (valpy_binop_throw): New function, factored
1337 out from ...
1338 (valpy_binop): ... this.
1339 (valpy_richcompare_throw): New function, factored
1340 out from ...
1341 (valpy_richcompare): ... this.
1342 * solib.c (solib_read_symbols): Don't assume "break" breaks out
1343 of a TRY/CATCH.
1344 * common/common-exceptions.h [USE_RAW_CXX_TRY]
1345 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
1346
93084fcd
SD
13472015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
1348
1349 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
1350 as move along with [d]addu.
1351
43cdf5ae
YQ
13522015-10-28 Yao Qi <yao.qi@linaro.org>
1353
1354 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
1355 aarch64_decode_insn.
1356
b80c3053
PA
13572015-10-27 Pedro Alves <palves@redhat.com>
1358
1359 * common/print-utils.c (host_address_to_string): Rename to ...
1360 (host_address_to_string_1): ... this.
1361 * common/print-utils.h (host_address_to_string): Reimplement as
1362 wrapper around host_address_to_string_1.
1363 * utils.c (gdb_print_host_address): Rename to ...
1364 (gdb_print_host_address_1): ... this.
1365 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
1366 around host_address_to_string_1.
1367
d09f2c3f
PA
13682015-10-27 Pedro Alves <palves@redhat.com>
1369
1370 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
1371 memory_error. Rename local 'status' to 'res'.
1372 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
1373 memory_error.
1374 * corefile.c (read_stack, read_code, write_memory): Always pass
1375 TARGET_XFER_E_IO to memory_error.
1376 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
1377 memory_error. Rename parameter 'status' to 'err'.
1378 (dump_insns): Rename local 'status' to 'err'.
1379 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
1380 to 'errp'. Rename local 'status' to 'err'. Always pass
1381 TARGET_XFER_E_IO to memory_error.
1382 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
1383 * target.c (target_read_memory, target_read_raw_memory)
1384 (target_read_stack, target_read_code, target_write_memory)
1385 (target_write_raw_memory): Return -1 on error instead of
1386 TARGET_XFER_E_IO.
1387 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
1388 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
1389
c5192092
SM
13902015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1391
1392 * guile/guile-internal.h (gdbscm_with_guile): Change return
1393 types to const char *.
1394 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
1395 (struct c_data) <func>: Likewise.
1396 (struct c_data) <result>: Change type to const char *.
1397 (scscm_eval_scheme_string): Change return type to
1398 const char *.
1399 (scscm_source_scheme_script): Likewise.
1400 (gdbscm_safe_eval_string): Change type of result variable to
1401 const char * and remove cast.
1402 (gdbscm_safe_source_script): Likewise.
1403 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
1404 Change return type to const char *.
1405 (gdbscm_disasm_read_memory): Change type of status to
1406 const char *.
1407
79b289e2
PA
14082015-10-27 Pedro Alves <palves@redhat.com>
1409
1410 * source.c (openp): New local 'last_errno'. Use it to
1411 save/restore errno.
1412
709b5518
PA
14132015-10-27 Pedro Alves <palves@redhat.com>
1414
1415 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
1416
e0d13cbd
SM
14172015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1418
1419 * ctf.c (SET_ENUM_FIELD): New macro.
1420 (ctf_read_status): Use it.
1421 (ctf_read_tp): Use it.
1422
c6486df5
SM
14232015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1424
1425 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
1426 scm_t_dynwind_flags casts.
1427 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1428 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
1429 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
1430
70b8286a
SM
14312015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1432
1433 * ax.h (ax_raw_byte): New declaration.
1434 * ax-general.c (ax_raw_byte): New function.
1435 (ax_simple): Use ax_raw_byte.
1436 * ax-gdb.c (gen_printf): Likewise.
1437
a480de35
SM
14382015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1439
1440 * ada-lang.h (GROW_VECT): Add cast.
1441
a04a15f5
DE
14422015-10-26 Doug Evans <xdje42@gmail.com>
1443
1444 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
1445
d7f3ff3e
SM
14462015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1447
1448 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
1449 pointer.
1450 (simple_search_memory): Cast return of memmem.
1451
bf6778da
SM
14522015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1453
1454 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
1455
c9244484
SM
14562015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1457
1458 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
1459 -1 on error.
1460
0fde2c53
DE
14612015-10-26 Doug Evans <dje@google.com>
1462
1463 PR symtab/17391
1464 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
1465 instead of gdbarch_dwarf2_reg_to_regnum.
1466 (dwarf2_frame_cache): Ditto.
1467 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
1468 gdbarch_dwarf2_reg_to_regnum.
1469 (get_reg_value): Ditto.
1470 (dwarf2_fetch_cfa_info): Ditto.
1471 (dwarf2_frame_prev_register): Ditto.
1472 * dwarf2loc.c: #include "complaints.h".
1473 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
1474 instead of gdbarch_dwarf2_reg_to_regnum.
1475 (dwarf_expr_get_reg_value): Ditto.
1476 (read_pieced_value): Ditto.
1477 (write_pieced_value): Ditto.
1478 (dwarf2_evaluate_loc_desc_full): Ditto.
1479 (dwarf_reg_to_regnum): New function.
1480 (throw_bad_regnum_error): New function.
1481 (dwarf_reg_to_regnum_or_error): Renamed from
1482 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
1483 All callers updated. Call throw_bad_regnum_error.
1484 (locexpr_regname): Improve text of bad register number.
1485 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
1486 (dwarf_reg_to_regnum_or_error): Update prototype.
1487 * dwarf2expr.c: #include "dwarf2loc.h".
1488 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
1489 gdbarch_dwarf2_reg_to_regnum.
1490 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
1491 * gdbarch.h: Regenerate.
1492 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
1493 register.
1494 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
1495 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
1496 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
1497 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
1498 Remove warning for bad register.
1499 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
1500 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
1501 i386_svr4_reg_to_regnum. Return -1 for bad registers.
1502 (i386_svr4_reg_to_regnum): New function.
1503 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
1504 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
1505 on bad registers, return -1.
1506 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
1507 Remove warning for bad register.
1508 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
1509 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
1510 Remove warning for bad register. Return -1 for bad register.
1511 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
1512 for bad register, return -1.
1513 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
1514 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
1515 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
1516 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
1517 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1518 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
1519 for bad regs.
1520 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
1521 bad regs. Fix error result.
1522 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
1523 (reg_value_complaint): Update complaint text.
1524 * mdebugread.c (reg_value_complaint): New function.
1525 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
1526
1a70ae97
DE
15272015-10-26 Doug Evans <dje@google.com>
1528
1529 PR python/18938
1530 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
1531 All callers updated.
1532
372405a5
DE
15332015-10-26 Doug Evans <dje@google.com>
1534
1535 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
1536 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
1537 (maintenance_print_psymbols): Print address map.
1538
682b2546
DE
15392015-10-26 Doug Evans <dje@google.com>
1540
1541 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
1542
963843d4
DE
15432015-10-26 Doug Evans <dje@google.com>
1544
1545 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
1546 gdbserver/linux-low.c.
1547 (WSETSTOP): Simplify.
1548
d41401ac
DE
15492015-10-26 Doug Evans <dje@google.com>
1550
1551 * linux-thread-db.c (find_new_threads_callback): Ditto.
1552 (thread_db_pid_to_str): Ditto.
1553
1522597b
SM
15542015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1555
1556 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
1557 local char array to scm_mode_bits, use a cast instead.
1558
7acd011b
SM
15592015-10-26 Simon Marchi <simon.marchi@ericsson.com>
1560
1561 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
1562 result. Change type of element_block_ptr. Change allocation to
1563 use XNEWVEC.
1564
7cc53fba
LM
15652015-10-26 Luis Machado <lgustavo@codesourcery.com>
1566
1567 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
1568 catch_errors call instead of NULL.
1569
48ffa2b8
SM
15702015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1571
1572 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
1573 char pointer to scm_mode_bits.
1574
585a269a
SM
15752015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1576
1577 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
1578 cast.
1579
e0dd41e9
SM
15802015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1581
1582 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
1583 "data" local variable and use it.
1584
74ef968f
SM
15852015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1586
1587 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
1588 domain_enum cast.
1589 (gdbscm_lookup_symbol): Likewise.
1590
2d5a88dc
IB
15912015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
1592
1593 * d-exp.y: Remove an obsolete comment and propagate the block
1594 information to the produced expression.
1595
f4ee58bd
SM
15962015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1597
1598 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
1599 cast.
1600 (tui_add_content_elements): Likewise.
1601
1650ca11
SM
16022015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1603
1604 * cli/cli-setshow.c (do_set_command): Constify p.
1605
55e5bf59
SM
16062015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1607
1608 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
1609 (void *) cast with (gdb_byte *).
1610
49e66b4d
SM
16112015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1612
1613 * proc-service.c (ps_pdread): Add cast.
1614
cfcb22a5
SM
16152015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1616
1617 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
1618 valbuf.
1619
ce746418
SM
16202015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1621
1622 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
1623 (ia64_push_dummy_call): Remove cast and change type of "to" to
1624 array of gdb_byte.
1625
a55515ee
SM
16262015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1627
1628 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
1629
6ecf4e06
SM
16302015-10-23 Simon Marchi <simon.marchi@ericsson.com>
1631
1632 * observer.h (observer_${event}_notification_stub): Add cast.
1633
034f1a81
YQ
16342015-10-23 Yao Qi <yao.qi@linaro.org>
1635
1636 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
1637 dsd.insn_count to zero.
1638
d236ad19
PA
16392015-10-22 Pedro Alves <palves@redhat.com>
1640
1641 * infrun.c (stop_after_trap): Delete.
1642 (clear_proceed_status, handle_signal_stop, struct
1643 infcall_control_state, save_infcall_control_state)
1644 (restore_infcall_control_state): Remove references to
1645 stop_after_trap.
1646
db0f0d0c
SM
16472015-10-22 Simon Marchi <simon.marchi@ericsson.com>
1648
1649 * python/python.c (_initialize_python): Add cast.
1650
fb70bc1a
SM
16512015-10-22 Simon Marchi <simon.marchi@ericsson.com>
1652
1653 * nto-tdep.c (nto_inferior_data): Add cast.
1654
c72f45d1
PA
16552015-10-22 Pedro Alves <palves@redhat.com>
1656
1657 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
1658 windows_wait and windows_resume directly instead of
1659 wait_for_inferior and resume.
1660
60905b1e
SM
16612015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1662
1663 * xtensa-tdep.h (XTREG): Add casts.
1664 (XTREG_END): Likewise.
1665
5af9928d
SM
16662015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1667
1668 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
1669
3e45d68b
SM
16702015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1671
1672 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
1673
709476c3
SM
16742015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1675
1676 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
1677 buf to gdb_byte*.
1678 (supply_32bit_reg): Add cast.
1679 (mips64_fill_gregset): Likewise.
1680
bed91f4d
SM
16812015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1682
1683 PR python/18073
1684 * python/py-type.c (typy_get_composite): Allow returning a
1685 function type.
1686
3f2f83dd
KB
16872015-10-21 Keven Boell <keven.boell@intel.com>
1688
1689 * dwarf2read.c (set_die_type): Add read of
1690 DW_AT_allocated and DW_AT_associated.
1691 * f-typeprint.c: New include of typeprint.h
1692 (f_print_type): Add check for allocated/associated
1693 status of type.
1694 (f_type_print_varspec_suffix): Add check for
1695 * gdbtypes.c (create_array_type_with_stride):
1696 Add check for valid data location of type in
1697 case allocated or associated attributes are set.
1698 Length of an array should be only calculated if
1699 allocated or associated is resolved as true.
1700 (is_dynamic_type_internal): Add check for allocated/
1701 associated.
1702 (resolve_dynamic_array): Evaluate allocated/associated
1703 properties.
1704 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
1705 <DYN_PROP_ASSOCIATED>: New enums.
1706 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
1707 (type_not_allocated): New function.
1708 (type_not_associated): New function.
1709 * valarith.c (value_subscripted_rvalue): Add check for
1710 allocated/associated.
1711 * valprint.c: New include of typeprint.h.
1712 (valprint_check_validity): Add check for allocated/associated.
1713 (value_check_printable): Add check for allocated/
1714 associated.
1715 * typeprint.h (val_print_not_allocated): New function.
1716 (val_print_not_associated): New function.
1717 * typeprint.c (val_print_not_allocated): New function.
1718 (val_print_not_associated): New function.
1719
8689682c
AT
17202015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
1721
1722 * Makefile.in: Add arm.c/o.
1723 * arch/arm.c: New file.
1724 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
1725 (MAKE_THUMB_ADDR): Likewise.
1726 (UNMAKE_THUMB_ADDR): Likewise.
1727 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
1728 (IS_THUMB_ADDR): Move to arm.h.
1729 (MAKE_THUMB_ADDR): Likewise.
1730 (UNMAKE_THUMB_ADDR): Likewise.
1731 * configure.tgt: Add arm.o to all ARM configs.
1732
80f0110c
YQ
17332015-10-21 Yao Qi <yao.qi@linaro.org>
1734
1735 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
1736 Remove argument exp_vCont_s.
1737 * gdb.base/range-stepping.exp: Callers updated.
1738 * gdb.trace/range-stepping.exp: Likewise.
1739
d7161de4
AR
17402015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
1741
1742 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
1743 (nto_sniff_abi_note_section): New function.
1744 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
1745 binary.
1746
a9889169
AR
17472015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
1748
1749 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
1750 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
1751 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
1752 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
1753 New functions.
1754 (_initialize_nto_tdep): New forward declaration, new function.
1755 * nto-tdep.h (struct nto_inferior_data): New struct.
1756 (nto_inferior_data): New function declaration.
1757
5f3ff4f8
JK
17582015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1759
1760 * findvar.c (address_from_register): Check REGNUM validity.
1761
e5343fde
AR
17622015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1763
1764 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
1765 (init_procfs_targets): Wire new function.
1766
8a6c0ccd
AR
17672015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1768
1769 * nto-procfs.c (sys/auxv.h): Include.
1770 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
1771 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
1772 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
1773
609c3040
AR
17742015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1775
1776 * nto-procfs.c (nto_procfs_path): Rename to...
1777 (nodestr): ... this, and change type.
1778 (nto_node): Use new variable and logic accordingly.
1779 (procfs_open_1): Use new variable name. Use local buffer to construct
1780 procfrs path.
1781 (procfs_pidlist): Use NODESTR to construct procfs path.
1782 (procfs_files_info): Use NODESTR to output meaningful text.
1783 (do_attach): Construct procfs using NODESTR.
1784 (procfs_create_inferior): Compare pointer to NULL.
1785
bfd09d20
JS
17862015-10-19 Josh Stone <jistone@redhat.com>
1787
1788 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
1789 return state, even when not actively catching syscalls at all.
1790 (linux_handle_extended_wait): Mark syscall_state like an entry.
1791 (wait_lwp): Set syscall_state ignored for other traps.
1792 (linux_nat_filter_event): Likewise.
1793
29090fb6
LM
17942015-10-19 Luis Machado <lgustavo@codesourcery.com>
1795
1796 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
1797 when handling 'E', 'T', 'S', 'X' and 'W' packets.
1798 Do not set rs->waiting_for_stop_reply back to 1.
1799
774ee6d2
AR
18002015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
1801
1802 * nto-procfs.c (common/filestuff.h): Include.
1803 (procfs_can_use_hw_breakpoint): Fix enum name.
1804 (procfs_open_1): Fix compiler warning.
1805 (procfs_pidlist): Make static.
1806 (procfs_meminfo): Make static, fix type name, add missing argument.
1807 (procfs_store_registers): Make static.
1808 (procfs_thread_info): Remove unused function.
1809 (_initialize_procfs): Forward declare.
1810
e66acfb1
YQ
18112015-10-16 Yao Qi <yao.qi@arm.com>
1812
1813 * MAINTAINERS: Update my email address.
1814
8d689ee5
YQ
18152015-10-15 Yao Qi <yao.qi@linaro.org>
1816
1817 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
1818 Call gdbarch_breakpoint_from_pc to instruction length.
1819 (aarch64_linux_remove_hw_breakpoint): Likewise.
1820 * common/common-regcache.h (regcache_register_size): Declare.
1821 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
1822 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
1823 the process is 32bit, otherwise set alignment to 4.
1824 (aarch64_handle_breakpoint): Update comments.
1825 * regcache.c (regcache_register_size): New function.
1826
89fdc87f
AR
18272015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
1828
1829 * gdbarch.sh (core_regset_section): Remove.
1830 * gdbarch.h: Regenerate.
1831
6448a3e4
YQ
18322015-10-14 Yao Qi <yao.qi@linaro.org>
1833
1834 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
1835 out of it.
1836 (enum aarch64_memory_operand_type): New.
1837
33f914a1
DE
18382015-10-13 David Edelsohn <dje.gcc@gmail.com>
1839
1840 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
1841
e6a959d6
PA
18422015-10-13 Pedro Alves <palves@redhat.com>
1843
1844 * ada-lang.c (ada_enum_name): Constify local.
1845 * ada-typeprint.c (print_range_bound): Constify locals.
1846 * c-varobj.c (c_describe_child): Likewise.
1847 * cli/cli-setshow.c (do_set_command): Likewise.
1848 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1849 * dwarf2read.c (find_file_and_directory): Likewise.
1850 (anonymous_struct_prefix, dwarf2_name): Likewise.
1851 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1852 * go-lang.c (unpack_mangled_go_symbol): Likewise.
1853 * jv-typeprint.c (java_type_print_base): Likewise.
1854 * ser-tcp.c (net_open): Likewise.
1855 * symfile.c (deduce_language_from_filename): Likewise.
1856 * symtab.c (gdb_mangle_name): Likewise.
1857 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1858
170742de
PA
18592015-10-13 Pedro Alves <palves@redhat.com>
1860
1861 * infrun.c (restore_execution_direction): New function.
1862 (fetch_inferior_event): Use it instead of
1863 make_cleanup_restore_integer.
1864 (execution_direction): Change type to enum
1865 exec_direction_kind.
1866 * infrun.h (execution_direction): Likewise.
1867
bfb1c796
PA
18682015-10-13 Pedro Alves <palves@redhat.com>
1869
1870 * ada-lang.c (ada_value_primitive_packed_val): Constify
1871 locals. Use value_contents_writeable. Remove casts.
1872
aa5c10ce
PA
18732015-10-13 Pedro Alves <palves@redhat.com>
1874
1875 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
1876 and alloca calls.
1877
4666fec3
SM
18782015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1879
1880 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
1881 write_memory with write_memory_unsigned_integer.
1882
38bc8217 18832015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3953f15c
SM
1884
1885 * solib-dsbt.c (cmp_name): Constify arguments.
1886 * solib-frv.c (cmp_name): Likewise.
1887 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
1888 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1889 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1890 (gdb_bfd_lookup_symbol): Likewise.
1891 * solib.h (gdb_bfd_lookup_symbol): Likewise.
1892 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1893
a0d34a39
AB
18942015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1895
1896 * stack.c (parse_frame_specification): Remove message parameter,
1897 replace with fixed string in function body, update function
1898 comment.
1899 (frame_info): Remove message to parse_frame_specification.
1900 (select_frame_command): Likewise.
1901
edbbff4a
AB
19022015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1903
1904 * stack.c (parse_frame_specification): Delete.
1905 (parse_frame_specification_1): Rename to
1906 parse_frame_specification.
1907 (frame_info): Use parse_frame_specification.
1908 (select_frame_command): Likewise.
1909 (return_command): Use select_frame and print_stack_frame rather
1910 than frame_command and select_frame_command.
1911 (func_command): Use get_current_frame rather than
1912 parse_frame_specification.
1913
9d622bda
AB
19142015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1915
1916 * stack.c (func_command): Return early when there is no ARG
1917 string.
1918
8d3fea16
AB
19192015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1920
1921 * stack.c: Include safe-ctype.h not ctype.h.
1922 (parse_frame_specification): Use ISSPACE not isspace.
1923 (backtrace_command): Use TOLOWER not tolower.
1924
f54b226f
SM
19252015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1926
1927 * mep-tdep.c (current_me_module): Add cast.
1928 (mep_gdbarch_init): Likewise.
1929
6da660c7
SM
19302015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1931
1932 * m32c-tdep.c (m32c_move_reg_t): Replace with...
1933 (m32c_write_reg_t): ...this and...
1934 (m32c_read_reg_t): ...this.
1935 (struct m32c_reg): Update types of read and write.
1936 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
1937 adjust definition.
1938 (m32c_banked_read): Likewise.
1939 (m32c_sb_read): Likewise.
1940 (m32c_part_read): Likewise.
1941 (m32c_cat_read): Likewise.
1942 (m32c_r3r2r1r0_read): Likewise.
1943 (m32c_raw_write): Change declaration type to m32c_write_reg_t
1944 and adjust definition.
1945 (m32c_banked_write): Likewise.
1946 (m32c_sb_write): Likewise.
1947 (m32c_part_write): Likewise.
1948 (m32c_cat_write): Likewise.
1949 (m32c_r3r2r1r0_write): Likewise.
1950
1f713e48
SM
19512015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1952
1953 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
1954
cb65d272
SM
19552015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1956
1957 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
1958 gdb_sys_no_syscall instead of -1.
1959
eda14cf2
YQ
19602015-10-12 Yao Qi <yao.qi@linaro.org>
1961
1962 * NEWS: Mention the change.
1963
1c2e1515
YQ
19642015-10-12 Yao Qi <yao.qi@linaro.org>
1965
1966 * arch/aarch64-insn.c (emit_load_store): Rename to ...
1967 (aarch64_emit_load_store): ... it. All callers updated.
1968
e1c587c3
YQ
19692015-10-12 Yao Qi <yao.qi@linaro.org>
1970
1971 * arch/aarch64-insn.c (emit_insn): Rename to ...
1972 (aarch64_emit_insn): ... it. All callers updated.
1973
b6542f81
YQ
19742015-10-12 Yao Qi <yao.qi@linaro.org>
1975
1976 * aarch64-linux-tdep.c: Include arch-utils.h.
1977 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
1978 set_gdbarch_displaced_step_copy_insn,
1979 set_gdbarch_displaced_step_fixup,
1980 set_gdbarch_displaced_step_free_closure,
1981 set_gdbarch_displaced_step_location,
1982 and set_gdbarch_displaced_step_hw_singlestep.
1983 * aarch64-tdep.c (struct displaced_step_closure): New.
1984 (struct aarch64_displaced_step_data): New.
1985 (aarch64_displaced_step_b): New function.
1986 (aarch64_displaced_step_b_cond): Likewise.
1987 (aarch64_register): Likewise.
1988 (aarch64_displaced_step_cb): Likewise.
1989 (aarch64_displaced_step_tb): Likewise.
1990 (aarch64_displaced_step_adr): Likewise.
1991 (aarch64_displaced_step_ldr_literal): Likewise.
1992 (aarch64_displaced_step_others): Likewise.
1993 (aarch64_displaced_step_copy_insn): Likewise.
1994 (aarch64_displaced_step_fixup): Likewise.
1995 (aarch64_displaced_step_hw_singlestep): Likewise.
1996 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
1997 (aarch64_displaced_step_copy_insn): Declare.
1998 (aarch64_displaced_step_fixup): Declare.
1999 (aarch64_displaced_step_hw_singlestep): Declare.
2000 * arch/aarch64-insn.c (emit_insn): Moved from
2001 gdbserver/linux-aarch64-low.c.
2002 (emit_load_store): Likewise.
2003 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
2004 gdbserver/linux-aarch64-low.c.
2005 (struct aarch64_register): Likewise.
2006 (struct aarch64_memory_operand): Likewise.
2007 (ENCODE): Likewise.
2008 (can_encode_int32): New macro.
2009 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
2010 (emit_tb, emit_nop): Likewise.
2011 (emit_insn): Declare.
2012 (emit_load_store): Declare.
2013
246994ce
YQ
20142015-10-12 Yao Qi <yao.qi@linaro.org>
2015
2016 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
2017 gdbserver/linux-aarch64-low.c.
2018 (aarch64_relocate_instruction): Likewise.
2019 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
2020 (struct aarch64_insn_data): Moved from
2021 gdbserver/linux-aarch64-low.c.
2022 (struct aarch64_insn_visitor): Likewise.
2023 (aarch64_relocate_instruction): Declare.
2024
2520f728
PMR
20252015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
2026
2027 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
2028 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
2029 to the returned value.
2030
5b639dea
JB
20312015-10-09 Joel Brobecker <brobecker@adacore.com>
2032
2033 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
2034 is large enough for BIT_SIZE. Update function comment.
2035
0cafa88c
JB
20362015-10-09 Joel Brobecker <brobecker@adacore.com>
2037
2038 * ada-lang.c (ada_value_primitive_packed_val): Move
2039 src_len variable to local block where used. Override
2040 BIT_SIZE if bigger than size of resolved type.
2041
220475ed
JB
20422015-10-09 Joel Brobecker <brobecker@adacore.com>
2043
2044 * gdbtypes.h (is_scalar_type): Add extern declaration.
2045 * gdbtypes.c (is_scalar_type): Make non-static.
2046 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
2047 to compute IS_SCALAR instead of doing it ourselves.
2048
d0a9e810
JB
20492015-10-09 Joel Brobecker <brobecker@adacore.com>
2050
2051 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
2052 of case where TYPE is dynamic.
2053
f93fca70
JB
20542015-10-09 Joel Brobecker <brobecker@adacore.com>
2055
2056 * ada-lang.c (ada_unpack_from_contents): New function,
2057 extracted from ada_value_primitive_packed_val.
2058 (ada_value_primitive_packed_val): Replace extracted out code
2059 by call to ada_unpack_from_contents.
2060
a1c95e6b
JB
20612015-10-09 Joel Brobecker <brobecker@adacore.com>
2062
2063 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
2064 variable declarations.
2065
fbd000da
JB
20662015-10-09 Joel Brobecker <brobecker@adacore.com>
2067
2068 * ada-lang.c (ada_value_primitive_packed_val): Change the type
2069 of local variables src and unpacked to "gdb_type *" instead of
2070 "unsigned char *".
2071
086ca51f
JB
20722015-10-09 Joel Brobecker <brobecker@adacore.com>
2073
2074 * ada-lang.c (ada_value_primitive_packed_val): Make the name
2075 of various local variables more explicit and consistent.
2076 No real code change otherwise.
2077
c5bcd278
SM
20782015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2079
2080 * i386-tdep.h (struct gdbarch_tdep): Change type of
2081 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
2082
78c5b882
SM
20832015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2084
2085 * cris-tdep.c (struct instruction_environment): Change type of
2086 byte_order to enum bfd_endian.
2087
f9fa37b3
SM
20882015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2089
2090 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
2091 enum gdb_syscall casts.
2092
7c543f7b
SM
20932015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2094
2095 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
2096 * arm-tdep.c (struct stack_item): Likewise.
2097 (push_stack_item): Add gdb_byte* cast.
2098 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
2099 (push_stack_item): Add gdb_byte* cast.
2100 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
2101 and add cast.
2102 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
2103 (push_stack_item): Add gdb_byte* cast.
2104 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
2105 add cast.
2106 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
2107 gdb_byte*.
2108 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
2109 gdb_byte* and remove unnecessary cast.
2110 (h8300h_extract_return_value): Likewise.
2111 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
2112 (h8300h_store_return_value): Likewise.
2113 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
2114 gdb_byte* and remove unnecessary cast.
2115 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
2116 and add cast.
2117 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
2118 gdb_byte* and remove unnecessary cast.
2119 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
2120 valbuf.
2121 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
2122 (mep_pseudo_cr64_read): Likewise.
2123 (mep_pseudo_csr_write): Likewise.
2124 (mep_pseudo_cr32_write): Likewise.
2125 (mep_pseudo_cr64_write): Likewise.
2126 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
2127 gdb_byte* and add cast.
2128 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
2129 gdb_byte* and remove unnecessary cast.
2130 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
2131 valbuf.
2132 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
2133 gdb_byte*.
2134 * printcmd.c (void): Likewise.
2135 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
2136 gdb_byte* and add cast.
2137 (infpy_write_memory): Likewise.
2138 (infpy_search_memory): Likewise.
2139 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
2140 and add cast.
2141 (regcache_raw_write_unsigned): Likewise.
2142 (regcache_cooked_write_signed): Likewise.
2143 (regcache_cooked_write_unsigned): Likewise.
2144 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
2145 gdb_byte*.
2146
7567e115
SM
21472015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2148
2149 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
2150 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
2151
f9acce4a
EZ
21522015-10-09 Eli Zaretskii <eliz@gnu.org>
2153
2154 * stack.c (print_stack_frame):
2155 * utils.c (printchar): Fix typos in commentary.
2156
d5d8c4e1
IB
21572015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
2158
2159 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
2160 (PostfixExpression): Support `expr.sizeof' expressions.
2161 (PrimaryExpression): Support `typeof(expr)' expressions.
2162
4e7de155
MR
21632015-10-08 Maciej W. Rozycki <macro@imgtec.com>
2164
2165 * MAINTAINERS: Update my email address.
2166
04c4fe8c
MM
21672015-10-08 Markus Metzger <markus.t.metzger@intel.com>
2168
2169 * record-btrace.c (record_btrace_resume): Fix void return.
2170
f77ee802
YQ
21712015-10-07 Yao Qi <yao.qi@linaro.org>
2172
2173 * aarch64-tdep.c: Include opcode/aarch64.h.
2174 (submask): Move it above.
2175 (bit): Likewise.
2176 (bits): Likewise.
2177 (aarch64_software_single_step): Call aarch64_decode_insn.
2178 Decode instruction by aarch64_inst instead of using
2179 aarch64_decode_bcond and decode_masked_match.
2180
cbd641ed
PS
21812015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2182
2183 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
2184 only when the file is binary.
2185
ae4e2501 21862015-10-02 James Bowman <james.bowman@ftdichip.com>
2187
2188 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
2189 subroutine handling.
2190
dd0a637a
SM
21912015-10-01 Simon Marchi <simon.marchi@ericsson.com>
2192
2193 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
2194
1fd60fc0
DE
21952015-09-30 Doug Evans <dje@google.com>
2196
2197 * dwarf2read.c (setup_type_unit_groups): Add comment.
2198
398e0813
PA
21992015-09-30 Pedro Alves <palves@redhat.com>
2200
2201 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
2202 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
2203 (x86_linux_create_target): Don't install
2204 x86_linux_always_non_stop_p.
2205
6ab24463
DB
22062015-09-30 Don Breazeal <donb@codesourcery.com>
2207
2208 * remote.c (remote_parse_stop_reply): Call strprefix instead
2209 of strncmp.
2210
ede5f151
SM
22112015-09-30 Simon Marchi <simon.marchi@ericsson.com>
2212
2213 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
2214 * gdbarch.h: Regenerate.
2215 * i386-tdep.c (i386_gdbarch_init): Remove cast to
2216 struct gdbarch_tdep_info *.
2217 * mips-tdep.c (mips_gdbarch_init): Likewise.
2218 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
2219 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2220 * spu-multiarch.c (spu_gdbarch): Likewise.
2221
51c935fa 22222015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
2223
2224 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
2225 record a NULL value.
2226
3b1ad7d5
KB
22272015-09-29 Kevin Buettner <kevinb@redhat.com>
2228
2229 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
2230 and union arguments the same as pointer arguments when determining
2231 size of argument.
2232
86feccb9 22332015-09-29 James Bowman <james.bowman@ftdichip.com>
2234
2235 * ft32-tdep.c: #include "opcode/ft32.h".
2236 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
2237 (ft32_analyze_prologue): Use FT32_* macros.
2238
2181a6c6
SM
22392015-09-28 Simon Marchi <simon.marchi@ericsson.com>
2240
84d73afc 2241 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
2242 comment.
2243
245af596
DE
22442015-09-28 Doug Evans <dje@google.com>
2245
2246 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
2247
c402ef90
DE
22482015-09-28 Doug Evans <dje@google.com>
2249
2250 * common/filestuff.c (make_cleanup_close): Update comment.
2251
38bc8217 22522015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
bc84451b
SM
2253
2254 * btrace.c (parse_xml_btrace_block): Fix cast of
2255 xml_find_attribute's return value.
2256 * memory-map.c (memory_map_start_memory): Likewise.
2257 * solib-svr4.c (library_list_start_library): Likewise.
2258 * solib-target.c (library_list_start_segment): Likewise.
2259 (library_list_start_section): Likewise.
2260 * tracepoint.c (traceframe_info_start_memory): Likewise.
2261
ba587d55
IB
22622015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
2263
2264 * d-namespace.c (d_lookup_symbol): New arg langdef.
2265 All callers updated. Support looking up symbol as a primitive type.
2266 (lookup_module_scope): New arg langdef. All callers updated.
2267 Call d_lookup_symbol directly for simple bare symbols.
2268
19ba03f4
SM
22692015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2270
2271 * macrocmd.c (print_macro_callback): Add cast(s).
2272 * macrotab.c (macro_bcache_str): Likewise.
2273 (new_macro_definition): Likewise.
2274 * main.c (captured_main): Likewise.
2275 * maint.c (print_bfd_section_info): Likewise.
2276 * mdebugread.c (mdebug_build_psymtabs): Likewise.
2277 (basic_type): Likewise.
2278 * memattr.c (mem_region_cmp): Likewise.
2279 * memory-map.c (memory_map_start_memory): Likewise.
2280 (memory_map_end_memory): Likewise.
2281 (memory_map_start_property): Likewise.
2282 (memory_map_end_property): Likewise.
2283 (clear_result): Likewise.
2284 * memrange.c (compare_mem_ranges): Likewise.
2285 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
2286 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
2287 * mi/mi-console.c (mi_console_file_delete): Likewise.
2288 (mi_console_file_fputs): Likewise.
2289 (mi_console_raw_packet): Likewise.
2290 (mi_console_file_flush): Likewise.
2291 (mi_console_set_raw): Likewise.
2292 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
2293 (mi_new_thread): Likewise.
2294 (mi_thread_exit): Likewise.
2295 (mi_record_changed): Likewise.
2296 (mi_inferior_added): Likewise.
2297 (mi_inferior_appeared): Likewise.
2298 (mi_inferior_exit): Likewise.
2299 (mi_inferior_removed): Likewise.
2300 (mi_interp_data): Likewise.
2301 (mi_on_normal_stop): Likewise.
2302 (mi_traceframe_changed): Likewise.
2303 (mi_tsv_created): Likewise.
2304 (mi_tsv_deleted): Likewise.
2305 (mi_tsv_modified): Likewise.
2306 (mi_breakpoint_created): Likewise.
2307 (mi_breakpoint_deleted): Likewise.
2308 (mi_breakpoint_modified): Likewise.
2309 (mi_output_running_pid): Likewise.
2310 (mi_inferior_count): Likewise.
2311 (mi_solib_loaded): Likewise.
2312 (mi_solib_unloaded): Likewise.
2313 (mi_command_param_changed): Likewise.
2314 (mi_memory_changed): Likewise.
2315 (report_initial_inferior): Likewise.
2316 (mi_ui_out): Likewise.
2317 (mi_set_logging): Likewise.
2318 * mi/mi-main.c (collect_cores): Likewise.
2319 (print_one_inferior): Likewise.
2320 (free_vector_of_ints): Likewise.
2321 (free_splay_tree): Likewise.
2322 (mi_execute_command): Likewise.
2323 * mi/mi-out.c (mi_table_body): Likewise.
2324 (mi_table_end): Likewise.
2325 (mi_table_header): Likewise.
2326 (mi_begin): Likewise.
2327 (mi_end): Likewise.
2328 (mi_field_int): Likewise.
2329 (mi_field_string): Likewise.
2330 (mi_field_fmt): Likewise.
2331 (mi_flush): Likewise.
2332 (mi_redirect): Likewise.
2333 (field_separator): Likewise.
2334 (mi_open): Likewise.
2335 (mi_close): Likewise.
2336 (mi_out_buffered): Likewise.
2337 (mi_out_rewind): Likewise.
2338 (mi_out_put): Likewise.
2339 (mi_version): Likewise.
2340 (mi_out_data_dtor): Likewise.
2341 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
2342 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
2343 * minidebug.c (lzma_open): Likewise.
2344 (lzma_pread): Likewise.
2345 (lzma_close): Likewise.
2346 (lzma_stat): Likewise.
2347 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
2348 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
2349 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
2350 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
2351 (mips_micro_frame_cache): Likewise.
2352 (mips_insn32_frame_cache): Likewise.
2353 (mips_stub_frame_cache): Likewise.
2354 (gdb_print_insn_mips): Likewise.
2355 (value_of_mips_user_reg): Likewise.
2356 (mips_gdbarch_init): Likewise.
2357 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
2358 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
2359 (mipsnbsd_supply_gregset): Likewise.
2360 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
2361 (am33_collect_gregset_method): Likewise.
2362 (am33_collect_fpregset_method): Likewise.
2363 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
2364 * moxie-tdep.c (moxie_frame_cache): Likewise.
2365 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
2366 (msp430_analyze_frame_prologue): Likewise.
2367 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
2368 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
2369 (nios2_collect_gregset): Likewise.
2370 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
2371 (nios2_stub_frame_cache): Likewise.
2372 * objc-lang.c (find_methods): Likewise.
2373 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2374 (get_objfile_pspace_data): Likewise.
2375 (get_objfile_bfd_data): Likewise.
2376 (objfile_bfd_data_free): Likewise.
2377 (add_to_objfile_sections): Likewise.
2378 (do_free_objfile_cleanup): Likewise.
2379 (resume_section_map_updates_cleanup): Likewise.
2380 * opencl-lang.c (builtin_opencl_type): Likewise.
2381 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2382 * osdata.c (osdata_start_osdata): Likewise.
2383 (osdata_start_item): Likewise.
2384 (osdata_start_column): Likewise.
2385 (osdata_end_column): Likewise.
2386 (clear_parsing_data): Likewise.
2387 (osdata_free_cleanup): Likewise.
2388 * parse.c (type_stack_cleanup): Likewise.
2389 (exp_uses_objfile_iter): Likewise.
2390 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
2391 (ppc_linux_collect_gregset): Likewise.
2392 (ppu2spu_prev_arch): Likewise.
2393 (ppu2spu_this_id): Likewise.
2394 (ppu2spu_prev_register): Likewise.
2395 (ppu2spu_unwind_register): Likewise.
2396 (ppu2spu_sniffer): Likewise.
2397 (ppu2spu_dealloc_cache): Likewise.
2398 (ppc_linux_init_abi): Likewise.
2399 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
2400 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2401 * progspace.c (restore_program_space): Likewise.
2402 * psymtab.c (find_pc_sect_psymtab): Likewise.
2403 (compare_psymbols): Likewise.
2404 (psymbol_bcache_full): Likewise.
2405 (allocate_psymtab): Likewise.
2406 (discard_psymtabs_upto): Likewise.
2407 * python/py-block.c (set_block): Likewise.
2408 (del_objfile_blocks): Likewise.
2409 * python/py-breakpoint.c (build_bp_list): Likewise.
2410 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
2411 (build_inferior_list): Likewise.
2412 (py_free_inferior): Likewise.
2413 * python/py-objfile.c (py_free_objfile): Likewise.
2414 (objfile_to_objfile_object): Likewise.
2415 * python/py-prettyprint.c (py_restore_tstate): Likewise.
2416 * python/py-progspace.c (py_free_pspace): Likewise.
2417 (pspace_to_pspace_object): Likewise.
2418 * python/py-symbol.c (set_symbol): Likewise.
2419 (del_objfile_symbols): Likewise.
2420 * python/py-symtab.c (set_sal): Likewise.
2421 (set_symtab): Likewise.
2422 (del_objfile_symtab): Likewise.
2423 (del_objfile_sal): Likewise.
2424 * python/py-type.c (save_objfile_types): Likewise.
2425 (set_type): Likewise.
2426 * python/py-unwind.c (pyuw_prev_register): Likewise.
2427 (pyuw_on_new_gdbarch): Likewise.
2428 * python/py-utils.c (py_decref): Likewise.
2429 (py_xdecref): Likewise.
2430 (gdb_py_generic_dict): Likewise.
2431 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
2432 (gdbpy_clone_xmethod_worker_data): Likewise.
2433 (gdbpy_get_xmethod_arg_types): Likewise.
2434 (gdbpy_get_xmethod_result_type): Likewise.
2435 (gdbpy_invoke_xmethod): Likewise.
2436 * python/python.c (gdbpy_apply_type_printers): Likewise.
2437 (gdbpy_free_type_printers): Likewise.
2438 * record-btrace.c (record_btrace_disable_callback): Likewise.
2439 (bfcache_hash): Likewise.
2440 (bfcache_eq): Likewise.
2441 (btrace_get_frame_function): Likewise.
2442 (record_btrace_frame_unwind_stop_reason): Likewise.
2443 (record_btrace_frame_this_id): Likewise.
2444 (record_btrace_frame_prev_register): Likewise.
2445 (record_btrace_frame_dealloc_cache): Likewise.
2446 * record-full.c (record_full_message_wrapper): Likewise.
2447 (record_full_save_cleanups): Likewise.
2448 * regcache.c (regcache_descr): Likewise.
2449 (do_regcache_xfree): Likewise.
2450 (do_regcache_invalidate): Likewise.
2451 (do_cooked_read): Likewise.
2452 (regcache_transfer_regset): Likewise.
2453 * reggroups.c (reggroup_add): Likewise.
2454 (reggroup_next): Likewise.
2455 (reggroup_prev): Likewise.
2456 * remote-fileio.c (do_remote_fileio_request): Likewise.
2457 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
2458 (do_notif_event_xfree): Likewise.
2459 * remote.c (get_remote_arch_state): Likewise.
2460 (remote_pspace_data_cleanup): Likewise.
2461 (get_remote_exec_file): Likewise.
2462 (set_pspace_remote_exec_file): Likewise.
2463 (compare_pnums): Likewise.
2464 (clear_threads_listing_context): Likewise.
2465 (remote_newthread_step): Likewise.
2466 (start_thread): Likewise.
2467 (end_thread): Likewise.
2468 (remove_child_of_pending_fork): Likewise.
2469 (remove_stop_reply_for_inferior): Likewise.
2470 (remove_stop_reply_of_remote_state): Likewise.
2471 (remote_notif_remove_once_on_match): Likewise.
2472 (stop_reply_match_ptid_and_ws): Likewise.
2473 (kill_child_of_pending_fork): Likewise.
2474 (register_remote_g_packet_guess): Likewise.
2475 (remote_read_description_p): Likewise.
2476 (remote_read_description): Likewise.
2477 (free_actions_list_cleanup_wrapper): Likewise.
2478 (remote_async_serial_handler): Likewise.
2479 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
2480 (rl78_analyze_frame_prologue): Likewise.
2481 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
2482 (ppc_supply_fpregset): Likewise.
2483 (ppc_supply_vsxregset): Likewise.
2484 (ppc_supply_vrregset): Likewise.
2485 (ppc_collect_gregset): Likewise.
2486 (ppc_collect_fpregset): Likewise.
2487 (ppc_collect_vsxregset): Likewise.
2488 (ppc_collect_vrregset): Likewise.
2489 (e500_move_ev_register): Likewise.
2490 (do_regcache_raw_write): Likewise.
2491 (rs6000_frame_cache): Likewise.
2492 (rs6000_epilogue_frame_cache): Likewise.
2493 (rs6000_gdbarch_init): Likewise.
2494 * rx-tdep.c (rx_get_opcode_byte): Likewise.
2495 (rx_analyze_frame_prologue): Likewise.
2496 (rx_frame_type): Likewise.
2497 (rx_frame_sniffer_common): Likewise.
2498 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
2499 (s390_frame_unwind_cache): Likewise.
2500 (s390_stub_frame_unwind_cache): Likewise.
2501 (s390_sigtramp_frame_unwind_cache): Likewise.
2502 * score-tdep.c (score_make_prologue_cache): Likewise.
2503 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
2504 (sentinel_frame_prev_arch): Likewise.
2505 * ser-base.c (fd_event): Likewise.
2506 (push_event): Likewise.
2507 (ser_base_write): Likewise.
2508 * ser-pipe.c (pipe_close): Likewise.
2509 * serial.c (serial_write): Likewise.
2510 * sh-tdep.c (sh_frame_cache): Likewise.
2511 (sh_stub_this_id): Likewise.
2512 * sh64-tdep.c (sh64_frame_cache): Likewise.
2513 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2514 (library_list_start_library): Likewise.
2515 (library_list_start_list): Likewise.
2516 (solib_aix_free_library_list): Likewise.
2517 * solib-darwin.c (get_darwin_info): Likewise.
2518 * solib-dsbt.c (get_dsbt_info): Likewise.
2519 * solib-spu.c (append_ocl_sos): Likewise.
2520 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2521 (get_svr4_info): Likewise.
2522 (library_list_start_library): Likewise.
2523 (svr4_library_list_start_list): Likewise.
2524 (hash_probe_and_action): Likewise.
2525 (equal_probe_and_action): Likewise.
2526 (svr4_update_solib_event_breakpoint): Likewise.
2527 (set_solib_svr4_fetch_link_map_offsets): Likewise.
2528 (svr4_fetch_link_map_offsets): Likewise.
2529 (svr4_have_link_map_offsets): Likewise.
2530 * solib-target.c (library_list_start_segment): Likewise.
2531 (library_list_start_section): Likewise.
2532 (library_list_start_library): Likewise.
2533 (library_list_end_library): Likewise.
2534 (library_list_start_list): Likewise.
2535 (solib_target_free_library_list): Likewise.
2536 * solib.c (solib_ops): Likewise.
2537 (set_solib_ops): Likewise.
2538 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2539 * sparc-tdep.c (sparc_frame_cache): Likewise.
2540 (sparc32_frame_cache): Likewise.
2541 (sparc32_supply_gregset): Likewise.
2542 (sparc32_collect_gregset): Likewise.
2543 (sparc32_supply_fpregset): Likewise.
2544 (sparc32_collect_fpregset): Likewise.
2545 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2546 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2547 (sparc64_collect_gregset): Likewise.
2548 (sparc64_supply_fpregset): Likewise.
2549 (sparc64_collect_fpregset): Likewise.
2550 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
2551 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2552 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2553 (sparc64obsd_trapframe_cache): Likewise.
2554 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
2555 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2556 * spu-multiarch.c (spu_gdbarch): Likewise.
2557 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
2558 (spu2ppu_prev_arch): Likewise.
2559 (spu2ppu_this_id): Likewise.
2560 (spu2ppu_prev_register): Likewise.
2561 (spu2ppu_dealloc_cache): Likewise.
2562 (spu_dis_asm_print_address): Likewise.
2563 (gdb_print_insn_spu): Likewise.
2564 (spu_get_overlay_table): Likewise.
2565 * stabsread.c (rs6000_builtin_type): Likewise.
2566 * stack.c (do_print_variable_and_value): Likewise.
2567 * stap-probe.c (get_stap_base_address_1): Likewise.
2568 * symfile-debug.c (debug_qf_has_symbols): Likewise.
2569 (debug_qf_find_last_source_symtab): Likewise.
2570 (debug_qf_forget_cached_source_info): Likewise.
2571 (debug_qf_map_symtabs_matching_filename): Likewise.
2572 (debug_qf_lookup_symbol): Likewise.
2573 (debug_qf_print_stats): Likewise.
2574 (debug_qf_dump): Likewise.
2575 (debug_qf_relocate): Likewise.
2576 (debug_qf_expand_symtabs_for_function): Likewise.
2577 (debug_qf_expand_all_symtabs): Likewise.
2578 (debug_qf_expand_symtabs_with_fullname): Likewise.
2579 (debug_qf_map_matching_symbols): Likewise.
2580 (debug_qf_expand_symtabs_matching): Likewise.
2581 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
2582 (debug_qf_map_symbol_filenames): Likewise.
2583 (debug_sym_get_probes): Likewise.
2584 (debug_sym_new_init): Likewise.
2585 (debug_sym_init): Likewise.
2586 (debug_sym_read): Likewise.
2587 (debug_sym_read_psymbols): Likewise.
2588 (debug_sym_finish): Likewise.
2589 (debug_sym_offsets): Likewise.
2590 (debug_sym_read_linetable): Likewise.
2591 (debug_sym_relocate): Likewise.
2592 (uninstall_symfile_debug_logging): Likewise.
2593 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
2594 * symfile.c (place_section): Likewise.
2595 (add_section_size_callback): Likewise.
2596 (load_progress): Likewise.
2597 (load_section_callback): Likewise.
2598 (clear_memory_write_data): Likewise.
2599 (allocate_symtab): Likewise.
2600 * symmisc.c (maintenance_expand_file_matcher): Likewise.
2601 * symtab.c (lookup_symtab_callback): Likewise.
2602 (hash_demangled_name_entry): Likewise.
2603 (eq_demangled_name_entry): Likewise.
2604 (get_symbol_cache): Likewise.
2605 (symbol_cache_cleanup): Likewise.
2606 (set_symbol_cache_size): Likewise.
2607 (symbol_cache_flush): Likewise.
2608 (maintenance_print_symbol_cache): Likewise.
2609 (maintenance_print_symbol_cache_statistics): Likewise.
2610 (delete_filename_seen_cache): Likewise.
2611 (output_partial_symbol_filename): Likewise.
2612 (search_symbols_file_matches): Likewise.
2613 (search_symbols_name_matches): Likewise.
2614 (do_free_completion_list): Likewise.
2615 (maybe_add_partial_symtab_filename): Likewise.
2616 (get_main_info): Likewise.
2617 (main_info_cleanup): Likewise.
2618 * target-dcache.c (target_dcache_cleanup): Likewise.
2619 (target_dcache_init_p): Likewise.
2620 (target_dcache_invalidate): Likewise.
2621 (target_dcache_get): Likewise.
2622 (target_dcache_get_or_init): Likewise.
2623 * target-descriptions.c (target_find_description): Likewise.
2624 (tdesc_find_type): Likewise.
2625 (tdesc_data_cleanup): Likewise.
2626 (tdesc_find_arch_register): Likewise.
2627 (tdesc_register_name): Likewise.
2628 (tdesc_register_type): Likewise.
2629 (tdesc_register_reggroup_p): Likewise.
2630 (set_tdesc_pseudo_register_name): Likewise.
2631 (set_tdesc_pseudo_register_type): Likewise.
2632 (set_tdesc_pseudo_register_reggroup_p): Likewise.
2633 (tdesc_use_registers): Likewise.
2634 (free_target_description): Likewise.
2635 * target-memory.c (compare_block_starting_address): Likewise.
2636 (cleanup_request_data): Likewise.
2637 (cleanup_write_requests_vector): Likewise.
2638 * target.c (open_target): Likewise.
2639 (cleanup_restore_target_terminal): Likewise.
2640 (free_memory_read_result_vector): Likewise.
2641 * thread.c (disable_thread_stack_temporaries): Likewise.
2642 (finish_thread_state_cleanup): Likewise.
2643 (do_restore_current_thread_cleanup): Likewise.
2644 (restore_current_thread_cleanup_dtor): Likewise.
2645 (set_thread_refcount): Likewise.
2646 (tp_array_compar): Likewise.
2647 (do_captured_thread_select): Likewise.
2648 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
2649 (tic6x_stub_this_id): Likewise.
2650 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
2651 * top.c (do_restore_instream_cleanup): Likewise.
2652 (gdb_readline_wrapper_cleanup): Likewise.
2653 (kill_or_detach): Likewise.
2654 (print_inferior_quit_action): Likewise.
2655 * tracefile-tfile.c (match_blocktype): Likewise.
2656 (build_traceframe_info): Likewise.
2657 * tracefile.c (trace_file_writer_xfree): Likewise.
2658 * tracepoint.c (memrange_cmp): Likewise.
2659 (do_collect_symbol): Likewise.
2660 (do_clear_collection_list): Likewise.
2661 (do_restore_current_traceframe_cleanup): Likewise.
2662 (restore_current_traceframe_cleanup_dtor): Likewise.
2663 (free_current_marker): Likewise.
2664 (traceframe_info_start_memory): Likewise.
2665 (traceframe_info_start_tvar): Likewise.
2666 (free_result): Likewise.
2667 * tramp-frame.c (tramp_frame_cache): Likewise.
2668 * tui/tui-file.c (tui_file_delete): Likewise.
2669 (tui_fileopen): Likewise.
2670 (tui_sfileopen): Likewise.
2671 (tui_file_isatty): Likewise.
2672 (tui_file_rewind): Likewise.
2673 (tui_file_put): Likewise.
2674 (tui_file_fputs): Likewise.
2675 (tui_file_get_strbuf): Likewise.
2676 (tui_file_adjust_strbuf): Likewise.
2677 (tui_file_flush): Likewise.
2678 * tui/tui-layout.c (make_command_window): Likewise.
2679 (make_data_window): Likewise.
2680 (show_source_disasm_command): Likewise.
2681 (show_data): Likewise.
2682 (make_source_or_disasm_window): Likewise.
2683 (show_source_or_disasm_and_command): Likewise.
2684 * tui/tui-out.c (tui_field_int): Likewise.
2685 (tui_field_string): Likewise.
2686 (tui_field_fmt): Likewise.
2687 (tui_text): Likewise.
2688 * typeprint.c (hash_typedef_field): Likewise.
2689 (eq_typedef_field): Likewise.
2690 (do_free_typedef_hash): Likewise.
2691 (copy_typedef_hash_element): Likewise.
2692 (do_free_global_table): Likewise.
2693 (find_global_typedef): Likewise.
2694 (find_typedef_in_hash): Likewise.
2695 * ui-file.c (ui_file_write_for_put): Likewise.
2696 (do_ui_file_xstrdup): Likewise.
2697 (mem_file_delete): Likewise.
2698 (mem_file_rewind): Likewise.
2699 (mem_file_put): Likewise.
2700 (mem_file_write): Likewise.
2701 (stdio_file_delete): Likewise.
2702 (stdio_file_flush): Likewise.
2703 (stdio_file_read): Likewise.
2704 (stdio_file_write): Likewise.
2705 (stdio_file_write_async_safe): Likewise.
2706 (stdio_file_fputs): Likewise.
2707 (stdio_file_isatty): Likewise.
2708 (stdio_file_fseek): Likewise.
2709 (tee_file_delete): Likewise.
2710 (tee_file_flush): Likewise.
2711 (tee_file_write): Likewise.
2712 (tee_file_fputs): Likewise.
2713 (tee_file_isatty): Likewise.
2714 * ui-out.c (do_cleanup_table_end): Likewise.
2715 (do_cleanup_end): Likewise.
2716 * user-regs.c (user_reg_add): Likewise.
2717 (user_reg_map_name_to_regnum): Likewise.
2718 (usernum_to_user_reg): Likewise.
2719 (maintenance_print_user_registers): Likewise.
2720 * utils.c (do_bfd_close_cleanup): Likewise.
2721 (do_fclose_cleanup): Likewise.
2722 (do_obstack_free): Likewise.
2723 (do_ui_file_delete): Likewise.
2724 (do_ui_out_redirect_pop): Likewise.
2725 (do_free_section_addr_info): Likewise.
2726 (restore_integer): Likewise.
2727 (do_unpush_target): Likewise.
2728 (do_htab_delete_cleanup): Likewise.
2729 (do_restore_ui_file): Likewise.
2730 (do_value_free): Likewise.
2731 (do_free_so): Likewise.
2732 (free_current_contents): Likewise.
2733 (do_regfree_cleanup): Likewise.
2734 (core_addr_hash): Likewise.
2735 (core_addr_eq): Likewise.
2736 (do_free_char_ptr_vec): Likewise.
2737 * v850-tdep.c (v850_frame_cache): Likewise.
2738 * varobj.c (do_free_variable_cleanup): Likewise.
2739 * vax-tdep.c (vax_supply_gregset): Likewise.
2740 (vax_frame_cache): Likewise.
2741 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
2742 * xml-support.c (gdb_xml_body_text): Likewise.
2743 (gdb_xml_values_cleanup): Likewise.
2744 (gdb_xml_start_element): Likewise.
2745 (gdb_xml_start_element_wrapper): Likewise.
2746 (gdb_xml_end_element): Likewise.
2747 (gdb_xml_end_element_wrapper): Likewise.
2748 (gdb_xml_cleanup): Likewise.
2749 (gdb_xml_fetch_external_entity): Likewise.
2750 (gdb_xml_parse_attr_enum): Likewise.
2751 (xinclude_start_include): Likewise.
2752 (xinclude_end_include): Likewise.
2753 (xml_xinclude_default): Likewise.
2754 (xml_xinclude_start_doctype): Likewise.
2755 (xml_xinclude_end_doctype): Likewise.
2756 (xml_xinclude_cleanup): Likewise.
2757 (xml_fetch_content_from_file): Likewise.
2758 * xml-syscall.c (free_syscalls_info): Likewise.
2759 (syscall_start_syscall): Likewise.
2760 * xml-tdesc.c (tdesc_end_arch): Likewise.
2761 (tdesc_end_osabi): Likewise.
2762 (tdesc_end_compatible): Likewise.
2763 (tdesc_start_target): Likewise.
2764 (tdesc_start_feature): Likewise.
2765 (tdesc_start_reg): Likewise.
2766 (tdesc_start_union): Likewise.
2767 (tdesc_start_struct): Likewise.
2768 (tdesc_start_flags): Likewise.
2769 (tdesc_start_field): Likewise.
2770 (tdesc_start_vector): Likewise.
2771 (fetch_available_features_from_target): Likewise.
2772 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
2773 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
2774 (xtensa_frame_cache): Likewise.
2775 (xtensa_frame_prev_register): Likewise.
2776 (xtensa_extract_return_value): Likewise.
2777
9a3c8263
SM
27782015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2779
2780 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
2781 (aarch64_make_stub_cache): Likewise.
2782 (value_of_aarch64_user_reg): Likewise.
2783 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
2784 (get_ada_inferior_data): Likewise.
2785 (get_ada_pspace_data): Likewise.
2786 (ada_pspace_data_cleanup): Likewise.
2787 (ada_complete_symbol_matcher): Likewise.
2788 (ada_exc_search_name_matches): Likewise.
2789 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2790 (get_ada_tasks_inferior_data): Likewise.
2791 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
2792 (splay_obstack_alloc): Likewise.
2793 (splay_obstack_free): Likewise.
2794 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
2795 (alpha_linux_collect_gregset): Likewise.
2796 (alpha_linux_supply_fpregset): Likewise.
2797 (alpha_linux_collect_fpregset): Likewise.
2798 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2799 * alpha-tdep.c (alpha_lds): Likewise.
2800 (alpha_sts): Likewise.
2801 (alpha_sigtramp_frame_unwind_cache): Likewise.
2802 (alpha_heuristic_frame_unwind_cache): Likewise.
2803 (alpha_supply_int_regs): Likewise.
2804 (alpha_fill_int_regs): Likewise.
2805 (alpha_supply_fp_regs): Likewise.
2806 (alpha_fill_fp_regs): Likewise.
2807 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
2808 (alphanbsd_aout_supply_gregset): Likewise.
2809 (alphanbsd_supply_gregset): Likewise.
2810 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
2811 (amd64_x32_linux_init_abi): Likewise.
2812 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2813 (amd64_collect_native_gregset): Likewise.
2814 * amd64-tdep.c (amd64_frame_cache): Likewise.
2815 (amd64_sigtramp_frame_cache): Likewise.
2816 (amd64_epilogue_frame_cache): Likewise.
2817 (amd64_supply_fxsave): Likewise.
2818 (amd64_supply_xsave): Likewise.
2819 (amd64_collect_fxsave): Likewise.
2820 (amd64_collect_xsave): Likewise.
2821 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
2822 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
2823 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2824 (arm_linux_collect_gregset): Likewise.
2825 (arm_linux_supply_nwfpe): Likewise.
2826 (arm_linux_collect_nwfpe): Likewise.
2827 (arm_linux_supply_vfp): Likewise.
2828 (arm_linux_collect_vfp): Likewise.
2829 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
2830 (arm_prologue_unwind_stop_reason): Likewise.
2831 (arm_prologue_this_id): Likewise.
2832 (arm_prologue_prev_register): Likewise.
2833 (arm_exidx_data_free): Likewise.
2834 (arm_find_exidx_entry): Likewise.
2835 (arm_stub_this_id): Likewise.
2836 (arm_m_exception_this_id): Likewise.
2837 (arm_m_exception_prev_register): Likewise.
2838 (arm_normal_frame_base): Likewise.
2839 (gdb_print_insn_arm): Likewise.
2840 (arm_objfile_data_free): Likewise.
2841 (arm_record_special_symbol): Likewise.
2842 (value_of_arm_user_reg): Likewise.
2843 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
2844 (armbsd_supply_gregset): Likewise.
2845 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
2846 (get_auto_load_pspace_data): Likewise.
2847 (hash_loaded_script_entry): Likewise.
2848 (eq_loaded_script_entry): Likewise.
2849 (clear_section_scripts): Likewise.
2850 (collect_matching_scripts): Likewise.
2851 * auxv.c (auxv_inferior_data_cleanup): Likewise.
2852 (get_auxv_inferior_data): Likewise.
2853 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2854 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
2855 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2856 (target_bfd_xclose): Likewise.
2857 (target_bfd_get_section_table): Likewise.
2858 * bfin-tdep.c (bfin_frame_cache): Likewise.
2859 * block.c (find_block_in_blockvector): Likewise.
2860 (call_site_for_pc): Likewise.
2861 (block_find_non_opaque_type_preferred): Likewise.
2862 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
2863 (signal_catchpoint_remove_location): Likewise.
2864 (signal_catchpoint_breakpoint_hit): Likewise.
2865 (signal_catchpoint_print_one): Likewise.
2866 (signal_catchpoint_print_mention): Likewise.
2867 (signal_catchpoint_print_recreate): Likewise.
2868 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
2869 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
2870 (bp_location_compare_addrs): Likewise.
2871 (get_first_locp_gte_addr): Likewise.
2872 (check_tracepoint_command): Likewise.
2873 (do_map_commands_command): Likewise.
2874 (get_breakpoint_objfile_data): Likewise.
2875 (free_breakpoint_probes): Likewise.
2876 (do_captured_breakpoint_query): Likewise.
2877 (compare_breakpoints): Likewise.
2878 (bp_location_compare): Likewise.
2879 (bpstat_remove_breakpoint_callback): Likewise.
2880 (do_delete_breakpoint_cleanup): Likewise.
2881 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
2882 (bsd_uthread_set_collect_uthread): Likewise.
2883 (bsd_uthread_activate): Likewise.
2884 (bsd_uthread_fetch_registers): Likewise.
2885 (bsd_uthread_store_registers): Likewise.
2886 * btrace.c (check_xml_btrace_version): Likewise.
2887 (parse_xml_btrace_block): Likewise.
2888 (parse_xml_btrace_pt_config_cpu): Likewise.
2889 (parse_xml_btrace_pt_raw): Likewise.
2890 (parse_xml_btrace_pt): Likewise.
2891 (parse_xml_btrace_conf_bts): Likewise.
2892 (parse_xml_btrace_conf_pt): Likewise.
2893 (do_btrace_data_cleanup): Likewise.
2894 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
2895 * charset.c (cleanup_iconv): Likewise.
2896 (do_cleanup_iterator): Likewise.
2897 * cli-out.c (cli_uiout_dtor): Likewise.
2898 (cli_table_begin): Likewise.
2899 (cli_table_body): Likewise.
2900 (cli_table_end): Likewise.
2901 (cli_table_header): Likewise.
2902 (cli_begin): Likewise.
2903 (cli_end): Likewise.
2904 (cli_field_int): Likewise.
2905 (cli_field_skip): Likewise.
2906 (cli_field_string): Likewise.
2907 (cli_field_fmt): Likewise.
2908 (cli_spaces): Likewise.
2909 (cli_text): Likewise.
2910 (cli_message): Likewise.
2911 (cli_wrap_hint): Likewise.
2912 (cli_flush): Likewise.
2913 (cli_redirect): Likewise.
2914 (out_field_fmt): Likewise.
2915 (field_separator): Likewise.
2916 (cli_out_set_stream): Likewise.
2917 * cli/cli-cmds.c (compare_symtabs): Likewise.
2918 * cli/cli-dump.c (call_dump_func): Likewise.
2919 (restore_section_callback): Likewise.
2920 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
2921 (do_restore_user_call_depth): Likewise.
2922 (do_free_command_lines_cleanup): Likewise.
2923 * coff-pe-read.c (get_section_vmas): Likewise.
2924 (pe_as16): Likewise.
2925 (pe_as32): Likewise.
2926 * coffread.c (coff_symfile_read): Likewise.
2927 * common/agent.c (agent_look_up_symbols): Likewise.
2928 * common/filestuff.c (do_close_cleanup): Likewise.
2929 * common/format.c (free_format_pieces_cleanup): Likewise.
2930 * common/vec.c (vec_o_reserve): Likewise.
2931 * compile/compile-c-support.c (print_one_macro): Likewise.
2932 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
2933 (eq_symbol_error): Likewise.
2934 (del_symbol_error): Likewise.
2935 (error_symbol_once): Likewise.
2936 (gcc_convert_symbol): Likewise.
2937 (gcc_symbol_address): Likewise.
2938 (hash_symname): Likewise.
2939 (eq_symname): Likewise.
2940 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
2941 (eq_type_map_instance): Likewise.
2942 (insert_type): Likewise.
2943 (convert_type): Likewise.
2944 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
2945 (setup_sections): Likewise.
2946 (link_hash_table_free): Likewise.
2947 (copy_sections): Likewise.
2948 * compile/compile-object-run.c (do_module_cleanup): Likewise.
2949 * compile/compile.c (compile_print_value): Likewise.
2950 (do_rmdir): Likewise.
2951 (cleanup_compile_instance): Likewise.
2952 (cleanup_unlink_file): Likewise.
2953 * completer.c (free_completion_tracker): Likewise.
2954 * corelow.c (add_to_spuid_list): Likewise.
2955 * cp-namespace.c (reset_directive_searched): Likewise.
2956 * cp-support.c (reset_directive_searched): Likewise.
2957 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
2958 (cris_frame_unwind_cache): Likewise.
2959 * d-lang.c (builtin_d_type): Likewise.
2960 * d-namespace.c (reset_directive_searched): Likewise.
2961 * dbxread.c (dbx_free_symfile_info): Likewise.
2962 (do_free_bincl_list_cleanup): Likewise.
2963 * disasm.c (hash_dis_line_entry): Likewise.
2964 (eq_dis_line_entry): Likewise.
2965 (dis_asm_print_address): Likewise.
2966 (fprintf_disasm): Likewise.
2967 (do_ui_file_delete): Likewise.
2968 * doublest.c (convert_floatformat_to_doublest): Likewise.
2969 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
2970 (dummy_frame_prev_register): Likewise.
2971 (dummy_frame_this_id): Likewise.
2972 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
2973 (cache_eq): Likewise.
2974 (cache_find): Likewise.
2975 (tailcall_frame_this_id): Likewise.
2976 (dwarf2_tailcall_prev_register_first): Likewise.
2977 (tailcall_frame_prev_register): Likewise.
2978 (tailcall_frame_dealloc_cache): Likewise.
2979 (tailcall_frame_prev_arch): Likewise.
2980 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
2981 (dwarf2_frame_set_init_reg): Likewise.
2982 (dwarf2_frame_init_reg): Likewise.
2983 (dwarf2_frame_set_signal_frame_p): Likewise.
2984 (dwarf2_frame_signal_frame_p): Likewise.
2985 (dwarf2_frame_set_adjust_regnum): Likewise.
2986 (dwarf2_frame_adjust_regnum): Likewise.
2987 (clear_pointer_cleanup): Likewise.
2988 (dwarf2_frame_cache): Likewise.
2989 (find_cie): Likewise.
2990 (dwarf2_frame_find_fde): Likewise.
2991 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
2992 (free_dwarf_expr_context_cleanup): Likewise.
2993 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
2994 (locexpr_get_frame_base): Likewise.
2995 (loclist_find_frame_base_location): Likewise.
2996 (loclist_get_frame_base): Likewise.
2997 (dwarf_expr_dwarf_call): Likewise.
2998 (dwarf_expr_get_base_type): Likewise.
2999 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
3000 (dwarf_expr_get_obj_addr): Likewise.
3001 (entry_data_value_coerce_ref): Likewise.
3002 (entry_data_value_copy_closure): Likewise.
3003 (entry_data_value_free_closure): Likewise.
3004 (get_frame_address_in_block_wrapper): Likewise.
3005 (dwarf2_evaluate_property): Likewise.
3006 (dwarf2_compile_property_to_c): Likewise.
3007 (needs_frame_read_addr_from_reg): Likewise.
3008 (needs_frame_get_reg_value): Likewise.
3009 (needs_frame_frame_base): Likewise.
3010 (needs_frame_frame_cfa): Likewise.
3011 (needs_frame_tls_address): Likewise.
3012 (needs_frame_dwarf_call): Likewise.
3013 (needs_dwarf_reg_entry_value): Likewise.
3014 (get_ax_pc): Likewise.
3015 (locexpr_read_variable): Likewise.
3016 (locexpr_read_variable_at_entry): Likewise.
3017 (locexpr_read_needs_frame): Likewise.
3018 (locexpr_describe_location): Likewise.
3019 (locexpr_tracepoint_var_ref): Likewise.
3020 (locexpr_generate_c_location): Likewise.
3021 (loclist_read_variable): Likewise.
3022 (loclist_read_variable_at_entry): Likewise.
3023 (loclist_describe_location): Likewise.
3024 (loclist_tracepoint_var_ref): Likewise.
3025 (loclist_generate_c_location): Likewise.
3026 * dwarf2read.c (line_header_hash_voidp): Likewise.
3027 (line_header_eq_voidp): Likewise.
3028 (dwarf2_has_info): Likewise.
3029 (dwarf2_get_section_info): Likewise.
3030 (locate_dwz_sections): Likewise.
3031 (hash_file_name_entry): Likewise.
3032 (eq_file_name_entry): Likewise.
3033 (delete_file_name_entry): Likewise.
3034 (dw2_setup): Likewise.
3035 (dw2_get_file_names_reader): Likewise.
3036 (dw2_find_pc_sect_compunit_symtab): Likewise.
3037 (hash_signatured_type): Likewise.
3038 (eq_signatured_type): Likewise.
3039 (add_signatured_type_cu_to_table): Likewise.
3040 (create_debug_types_hash_table): Likewise.
3041 (lookup_dwo_signatured_type): Likewise.
3042 (lookup_dwp_signatured_type): Likewise.
3043 (lookup_signatured_type): Likewise.
3044 (hash_type_unit_group): Likewise.
3045 (eq_type_unit_group): Likewise.
3046 (get_type_unit_group): Likewise.
3047 (process_psymtab_comp_unit_reader): Likewise.
3048 (sort_tu_by_abbrev_offset): Likewise.
3049 (process_skeletonless_type_unit): Likewise.
3050 (psymtabs_addrmap_cleanup): Likewise.
3051 (dwarf2_read_symtab): Likewise.
3052 (psymtab_to_symtab_1): Likewise.
3053 (die_hash): Likewise.
3054 (die_eq): Likewise.
3055 (load_full_comp_unit_reader): Likewise.
3056 (reset_die_in_process): Likewise.
3057 (free_cu_line_header): Likewise.
3058 (handle_DW_AT_stmt_list): Likewise.
3059 (hash_dwo_file): Likewise.
3060 (eq_dwo_file): Likewise.
3061 (hash_dwo_unit): Likewise.
3062 (eq_dwo_unit): Likewise.
3063 (create_dwo_cu_reader): Likewise.
3064 (create_dwo_unit_in_dwp_v1): Likewise.
3065 (create_dwo_unit_in_dwp_v2): Likewise.
3066 (lookup_dwo_unit_in_dwp): Likewise.
3067 (dwarf2_locate_dwo_sections): Likewise.
3068 (dwarf2_locate_common_dwp_sections): Likewise.
3069 (dwarf2_locate_v2_dwp_sections): Likewise.
3070 (hash_dwp_loaded_cutus): Likewise.
3071 (eq_dwp_loaded_cutus): Likewise.
3072 (lookup_dwo_cutu): Likewise.
3073 (abbrev_table_free_cleanup): Likewise.
3074 (dwarf2_free_abbrev_table): Likewise.
3075 (find_partial_die_in_comp_unit): Likewise.
3076 (free_line_header_voidp): Likewise.
3077 (follow_die_offset): Likewise.
3078 (follow_die_sig_1): Likewise.
3079 (free_heap_comp_unit): Likewise.
3080 (free_stack_comp_unit): Likewise.
3081 (dwarf2_free_objfile): Likewise.
3082 (per_cu_offset_and_type_hash): Likewise.
3083 (per_cu_offset_and_type_eq): Likewise.
3084 (get_die_type_at_offset): Likewise.
3085 (partial_die_hash): Likewise.
3086 (partial_die_eq): Likewise.
3087 (dwarf2_per_objfile_free): Likewise.
3088 (hash_strtab_entry): Likewise.
3089 (eq_strtab_entry): Likewise.
3090 (add_string): Likewise.
3091 (hash_symtab_entry): Likewise.
3092 (eq_symtab_entry): Likewise.
3093 (delete_symtab_entry): Likewise.
3094 (cleanup_mapped_symtab): Likewise.
3095 (add_indices_to_cpool): Likewise.
3096 (hash_psymtab_cu_index): Likewise.
3097 (eq_psymtab_cu_index): Likewise.
3098 (add_address_entry_worker): Likewise.
3099 (unlink_if_set): Likewise.
3100 (write_one_signatured_type): Likewise.
3101 (save_gdb_index_command): Likewise.
3102 * elfread.c (elf_symtab_read): Likewise.
3103 (elf_gnu_ifunc_cache_hash): Likewise.
3104 (elf_gnu_ifunc_cache_eq): Likewise.
3105 (elf_gnu_ifunc_record_cache): Likewise.
3106 (elf_gnu_ifunc_resolve_by_cache): Likewise.
3107 (elf_get_probes): Likewise.
3108 (probe_key_free): Likewise.
3109 * f-lang.c (builtin_f_type): Likewise.
3110 * frame-base.c (frame_base_append_sniffer): Likewise.
3111 (frame_base_set_default): Likewise.
3112 (frame_base_find_by_frame): Likewise.
3113 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
3114 (frame_unwind_append_unwinder): Likewise.
3115 (frame_unwind_find_by_frame): Likewise.
3116 * frame.c (frame_addr_hash): Likewise.
3117 (frame_addr_hash_eq): Likewise.
3118 (frame_stash_find): Likewise.
3119 (do_frame_register_read): Likewise.
3120 (unwind_to_current_frame): Likewise.
3121 (frame_cleanup_after_sniffer): Likewise.
3122 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
3123 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
3124 * ft32-tdep.c (ft32_frame_cache): Likewise.
3125 * gcore.c (do_bfd_delete_cleanup): Likewise.
3126 (gcore_create_callback): Likewise.
3127 * gdb_bfd.c (hash_bfd): Likewise.
3128 (eq_bfd): Likewise.
3129 (gdb_bfd_open): Likewise.
3130 (free_one_bfd_section): Likewise.
3131 (gdb_bfd_ref): Likewise.
3132 (gdb_bfd_unref): Likewise.
3133 (get_section_descriptor): Likewise.
3134 (gdb_bfd_map_section): Likewise.
3135 (gdb_bfd_crc): Likewise.
3136 (gdb_bfd_mark_parent): Likewise.
3137 (gdb_bfd_record_inclusion): Likewise.
3138 (gdb_bfd_requires_relocations): Likewise.
3139 (print_one_bfd): Likewise.
3140 * gdbtypes.c (type_pair_hash): Likewise.
3141 (type_pair_eq): Likewise.
3142 (builtin_type): Likewise.
3143 (objfile_type): Likewise.
3144 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
3145 (vtable_address_point_offset): Likewise.
3146 (gnuv3_get_vtable): Likewise.
3147 (hash_value_and_voffset): Likewise.
3148 (eq_value_and_voffset): Likewise.
3149 (compare_value_and_voffset): Likewise.
3150 (compute_vtable_size): Likewise.
3151 (gnuv3_get_typeid_type): Likewise.
3152 * go-lang.c (builtin_go_type): Likewise.
3153 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
3154 (bkscm_eq_block_smob): Likewise.
3155 (bkscm_objfile_block_map): Likewise.
3156 (bkscm_del_objfile_blocks): Likewise.
3157 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
3158 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
3159 (gdbscm_disasm_print_address): Likewise.
3160 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
3161 (frscm_eq_frame_smob): Likewise.
3162 (frscm_inferior_frame_map): Likewise.
3163 (frscm_del_inferior_frames): Likewise.
3164 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
3165 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
3166 (ofscm_objfile_smob_from_objfile): Likewise.
3167 * guile/scm-ports.c (ioscm_write): Likewise.
3168 (ioscm_file_port_delete): Likewise.
3169 (ioscm_file_port_rewind): Likewise.
3170 (ioscm_file_port_put): Likewise.
3171 (ioscm_file_port_write): Likewise.
3172 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
3173 (psscm_pspace_smob_from_pspace): Likewise.
3174 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
3175 (scscm_recording_unwind_handler): Likewise.
3176 (gdbscm_with_catch): Likewise.
3177 (scscm_call_0_body): Likewise.
3178 (scscm_call_1_body): Likewise.
3179 (scscm_call_2_body): Likewise.
3180 (scscm_call_3_body): Likewise.
3181 (scscm_call_4_body): Likewise.
3182 (scscm_apply_1_body): Likewise.
3183 (scscm_eval_scheme_string): Likewise.
3184 (gdbscm_safe_eval_string): Likewise.
3185 (scscm_source_scheme_script): Likewise.
3186 (gdbscm_safe_source_script): Likewise.
3187 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
3188 (gdbscm_call_scm_from_stringn): Likewise.
3189 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
3190 (syscm_eq_symbol_smob): Likewise.
3191 (syscm_get_symbol_map): Likewise.
3192 (syscm_del_objfile_symbols): Likewise.
3193 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
3194 (stscm_eq_symtab_smob): Likewise.
3195 (stscm_objfile_symtab_map): Likewise.
3196 (stscm_del_objfile_symtabs): Likewise.
3197 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
3198 (tyscm_eq_type_smob): Likewise.
3199 (tyscm_type_map): Likewise.
3200 (tyscm_copy_type_recursive): Likewise.
3201 (save_objfile_types): Likewise.
3202 * guile/scm-utils.c (extract_arg): Likewise.
3203 * h8300-tdep.c (h8300_frame_cache): Likewise.
3204 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
3205 * hppa-tdep.c (compare_unwind_entries): Likewise.
3206 (find_unwind_entry): Likewise.
3207 (hppa_frame_cache): Likewise.
3208 (hppa_stub_frame_unwind_cache): Likewise.
3209 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
3210 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
3211 (hppaobsd_supply_fpregset): Likewise.
3212 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
3213 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3214 * i386-tdep.c (i386_frame_cache): Likewise.
3215 (i386_epilogue_frame_cache): Likewise.
3216 (i386_sigtramp_frame_cache): Likewise.
3217 (i386_supply_gregset): Likewise.
3218 (i386_collect_gregset): Likewise.
3219 (i386_gdbarch_init): Likewise.
3220 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
3221 (i386obsd_trapframe_cache): Likewise.
3222 * i387-tdep.c (i387_supply_fsave): Likewise.
3223 (i387_collect_fsave): Likewise.
3224 (i387_supply_fxsave): Likewise.
3225 (i387_collect_fxsave): Likewise.
3226 (i387_supply_xsave): Likewise.
3227 (i387_collect_xsave): Likewise.
3228 * ia64-tdep.c (ia64_frame_cache): Likewise.
3229 (ia64_sigtramp_frame_cache): Likewise.
3230 * infcmd.c (attach_command_continuation): Likewise.
3231 (attach_command_continuation_free_args): Likewise.
3232 * inferior.c (restore_inferior): Likewise.
3233 (delete_thread_of_inferior): Likewise.
3234 * inflow.c (inflow_inferior_data_cleanup): Likewise.
3235 (get_inflow_inferior_data): Likewise.
3236 (inflow_inferior_exit): Likewise.
3237 * infrun.c (displaced_step_clear_cleanup): Likewise.
3238 (restore_current_uiout_cleanup): Likewise.
3239 (release_stop_context_cleanup): Likewise.
3240 (do_restore_infcall_suspend_state_cleanup): Likewise.
3241 (do_restore_infcall_control_state_cleanup): Likewise.
3242 (restore_inferior_ptid): Likewise.
3243 * inline-frame.c (block_starting_point_at): Likewise.
3244 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
3245 * jit.c (get_jit_objfile_data): Likewise.
3246 (get_jit_program_space_data): Likewise.
3247 (jit_object_close_impl): Likewise.
3248 (jit_find_objf_with_entry_addr): Likewise.
3249 (jit_breakpoint_deleted): Likewise.
3250 (jit_unwind_reg_set_impl): Likewise.
3251 (jit_unwind_reg_get_impl): Likewise.
3252 (jit_dealloc_cache): Likewise.
3253 (jit_frame_sniffer): Likewise.
3254 (jit_frame_prev_register): Likewise.
3255 (jit_prepend_unwinder): Likewise.
3256 (jit_inferior_exit_hook): Likewise.
3257 (free_objfile_data): Likewise.
3258 * jv-lang.c (jv_per_objfile_free): Likewise.
3259 (get_dynamics_objfile): Likewise.
3260 (get_java_class_symtab): Likewise.
3261 (builtin_java_type): Likewise.
3262 * language.c (language_string_char_type): Likewise.
3263 (language_bool_type): Likewise.
3264 (language_lookup_primitive_type): Likewise.
3265 (language_lookup_primitive_type_as_symbol): Likewise.
3266 * linespec.c (hash_address_entry): Likewise.
3267 (eq_address_entry): Likewise.
3268 (iterate_inline_only): Likewise.
3269 (iterate_name_matcher): Likewise.
3270 (decode_line_2_compare_items): Likewise.
3271 (collect_one_symbol): Likewise.
3272 (compare_symbols): Likewise.
3273 (compare_msymbols): Likewise.
3274 (add_symtabs_to_list): Likewise.
3275 (collect_symbols): Likewise.
3276 (compare_msyms): Likewise.
3277 (add_minsym): Likewise.
3278 (cleanup_linespec_result): Likewise.
3279 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
3280 * linux-nat.c (delete_lwp_cleanup): Likewise.
3281 (count_events_callback): Likewise.
3282 (select_event_lwp_callback): Likewise.
3283 (resume_stopped_resumed_lwps): Likewise.
3284 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
3285 (invalidate_linux_cache_inf): Likewise.
3286 (get_linux_inferior_data): Likewise.
3287 (linux_find_memory_regions_thunk): Likewise.
3288 (linux_make_mappings_callback): Likewise.
3289 (linux_corefile_thread_callback): Likewise.
3290 (find_mapping_size): Likewise.
3291 * linux-thread-db.c (find_new_threads_callback): Likewise.
3292 * lm32-tdep.c (lm32_frame_cache): Likewise.
3293 * m2-lang.c (builtin_m2_type): Likewise.
3294 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
3295 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
3296 (m32r_linux_supply_gregset): Likewise.
3297 (m32r_linux_collect_gregset): Likewise.
3298 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3299 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3300 * m68k-tdep.c (m68k_frame_cache): Likewise.
3301 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3302 (m68kbsd_supply_gregset): Likewise.
3303 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3304 * m88k-tdep.c (m88k_frame_cache): Likewise.
3305 (m88k_supply_gregset): Likewise.
3306
224c3ddb
SM
33072015-09-25 Simon Marchi <simon.marchi@ericsson.com>
3308
3309 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
3310 to allocation result assignment.
3311 * ada-exp.y (write_object_renaming): Likewise.
3312 (write_ambiguous_var): Likewise.
3313 (ada_nget_field_index): Likewise.
3314 (write_var_or_type): Likewise.
3315 * ada-lang.c (ada_decode_symbol): Likewise.
3316 (ada_value_assign): Likewise.
3317 (value_pointer): Likewise.
3318 (cache_symbol): Likewise.
3319 (add_nonlocal_symbols): Likewise.
3320 (ada_name_for_lookup): Likewise.
3321 (symbol_completion_add): Likewise.
3322 (ada_to_fixed_type_1): Likewise.
3323 (ada_get_next_arg): Likewise.
3324 (defns_collected): Likewise.
3325 * ada-lex.l (processId): Likewise.
3326 (processString): Likewise.
3327 * ada-tasks.c (read_known_tasks_array): Likewise.
3328 (read_known_tasks_list): Likewise.
3329 * ada-typeprint.c (decoded_type_name): Likewise.
3330 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
3331 * amd64-tdep.c (amd64_push_arguments): Likewise.
3332 (amd64_displaced_step_copy_insn): Likewise.
3333 (amd64_classify_insn_at): Likewise.
3334 (amd64_relocate_instruction): Likewise.
3335 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3336 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
3337 (initialize_current_architecture): Likewise.
3338 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3339 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
3340 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
3341 (arm_push_dummy_call): Likewise.
3342 (extend_buffer_earlier): Likewise.
3343 (arm_adjust_breakpoint_address): Likewise.
3344 (arm_skip_stub): Likewise.
3345 * auto-load.c (filename_is_in_pattern): Likewise.
3346 (maybe_add_script_file): Likewise.
3347 (maybe_add_script_text): Likewise.
3348 (auto_load_objfile_script_1): Likewise.
3349 * auxv.c (ld_so_xfer_auxv): Likewise.
3350 * ax-general.c (new_agent_expr): Likewise.
3351 (grow_expr): Likewise.
3352 (ax_reg_mask): Likewise.
3353 * bcache.c (bcache_full): Likewise.
3354 * breakpoint.c (program_breakpoint_here_p): Likewise.
3355 * btrace.c (parse_xml_raw): Likewise.
3356 * build-id.c (build_id_to_debug_bfd): Likewise.
3357 * buildsym.c (end_symtab_with_blockvector): Likewise.
3358 * c-exp.y (string_exp): Likewise.
3359 (qualified_name): Likewise.
3360 (write_destructor_name): Likewise.
3361 (operator_stoken): Likewise.
3362 (parse_number): Likewise.
3363 (scan_macro_expansion): Likewise.
3364 (yylex): Likewise.
3365 (c_print_token): Likewise.
3366 * c-lang.c (c_get_string): Likewise.
3367 (emit_numeric_character): Likewise.
3368 * charset.c (wchar_iterate): Likewise.
3369 * cli/cli-cmds.c (complete_command): Likewise.
3370 (make_command): Likewise.
3371 * cli/cli-dump.c (restore_section_callback): Likewise.
3372 (restore_binary_file): Likewise.
3373 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
3374 * cli/cli-script.c (execute_control_command): Likewise.
3375 * cli/cli-setshow.c (do_set_command): Likewise.
3376 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
3377 (read_pe_exported_syms): Likewise.
3378 * coffread.c (coff_read_struct_type): Likewise.
3379 (coff_read_enum_type): Likewise.
3380 * common/btrace-common.c (btrace_data_append): Likewise.
3381 * common/buffer.c (buffer_grow): Likewise.
3382 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
3383 * common/format.c (parse_format_string): Likewise.
3384 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
3385 * common/xml-utils.c (xml_escape_text): Likewise.
3386 * compile/compile-object-load.c (copy_sections): Likewise.
3387 (compile_object_load): Likewise.
3388 * compile/compile-object-run.c (compile_object_run): Likewise.
3389 * completer.c (filename_completer): Likewise.
3390 * corefile.c (read_memory_typed_address): Likewise.
3391 (write_memory_unsigned_integer): Likewise.
3392 (write_memory_signed_integer): Likewise.
3393 (complete_set_gnutarget): Likewise.
3394 * corelow.c (get_core_register_section): Likewise.
3395 * cp-name-parser.y (d_grab): Likewise.
3396 (allocate_info): Likewise.
3397 (cp_new_demangle_parse_info): Likewise.
3398 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
3399 (cp_lookup_symbol_in_namespace): Likewise.
3400 (lookup_namespace_scope): Likewise.
3401 (find_symbol_in_baseclass): Likewise.
3402 (cp_lookup_nested_symbol): Likewise.
3403 (cp_lookup_transparent_type_loop): Likewise.
3404 * cp-support.c (copy_string_to_obstack): Likewise.
3405 (make_symbol_overload_list): Likewise.
3406 (make_symbol_overload_list_namespace): Likewise.
3407 (make_symbol_overload_list_adl_namespace): Likewise.
3408 (first_component_command): Likewise.
3409 * cp-valprint.c (cp_print_value): Likewise.
3410 * ctf.c (ctf_xfer_partial): Likewise.
3411 * d-exp.y (StringExp): Likewise.
3412 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
3413 (lookup_module_scope): Likewise.
3414 (find_symbol_in_baseclass): Likewise.
3415 (d_lookup_nested_symbol): Likewise.
3416 * dbxread.c (find_stab_function_addr): Likewise.
3417 (read_dbx_symtab): Likewise.
3418 (dbx_end_psymtab): Likewise.
3419 (cp_set_block_scope): Likewise.
3420 * dcache.c (dcache_alloc): Likewise.
3421 * demangle.c (_initialize_demangler): Likewise.
3422 * dicos-tdep.c (dicos_load_module_p): Likewise.
3423 * dictionary.c (dict_create_hashed_expandable): Likewise.
3424 (dict_create_linear_expandable): Likewise.
3425 (expand_hashtable): Likewise.
3426 (add_symbol_linear_expandable): Likewise.
3427 * dwarf2-frame.c (add_cie): Likewise.
3428 (add_fde): Likewise.
3429 (dwarf2_build_frame_info): Likewise.
3430 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
3431 (dwarf_expr_fetch_address): Likewise.
3432 (add_piece): Likewise.
3433 (execute_stack_op): Likewise.
3434 * dwarf2loc.c (chain_candidate): Likewise.
3435 (dwarf_entry_parameter_to_value): Likewise.
3436 (read_pieced_value): Likewise.
3437 (write_pieced_value): Likewise.
3438 * dwarf2read.c (dwarf2_read_section): Likewise.
3439 (add_type_unit): Likewise.
3440 (read_comp_units_from_section): Likewise.
3441 (fixup_go_packaging): Likewise.
3442 (dwarf2_compute_name): Likewise.
3443 (dwarf2_physname): Likewise.
3444 (create_dwo_unit_in_dwp_v1): Likewise.
3445 (create_dwo_unit_in_dwp_v2): Likewise.
3446 (read_func_scope): Likewise.
3447 (read_call_site_scope): Likewise.
3448 (dwarf2_attach_fields_to_type): Likewise.
3449 (process_structure_scope): Likewise.
3450 (mark_common_block_symbol_computed): Likewise.
3451 (read_common_block): Likewise.
3452 (abbrev_table_read_table): Likewise.
3453 (guess_partial_die_structure_name): Likewise.
3454 (fixup_partial_die): Likewise.
3455 (add_file_name): Likewise.
3456 (dwarf2_const_value_data): Likewise.
3457 (dwarf2_const_value_attr): Likewise.
3458 (build_error_marker_type): Likewise.
3459 (guess_full_die_structure_name): Likewise.
3460 (anonymous_struct_prefix): Likewise.
3461 (typename_concat): Likewise.
3462 (dwarf2_canonicalize_name): Likewise.
3463 (dwarf2_name): Likewise.
3464 (write_constant_as_bytes): Likewise.
3465 (dwarf2_fetch_constant_bytes): Likewise.
3466 (copy_string): Likewise.
3467 (parse_macro_definition): Likewise.
3468 * elfread.c (elf_symfile_segments): Likewise.
3469 (elf_rel_plt_read): Likewise.
3470 (elf_gnu_ifunc_resolve_by_cache): Likewise.
3471 (elf_gnu_ifunc_resolve_by_got): Likewise.
3472 (elf_read_minimal_symbols): Likewise.
3473 (elf_gnu_ifunc_record_cache): Likewise.
3474 * event-top.c (top_level_prompt): Likewise.
3475 (command_line_handler): Likewise.
3476 * exec.c (resize_section_table): Likewise.
3477 * expprint.c (print_subexp_standard): Likewise.
3478 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3479 * findcmd.c (parse_find_args): Likewise.
3480 * findvar.c (address_from_register): Likewise.
3481 * frame.c (get_prev_frame_always): Likewise.
3482 * gdb_bfd.c (gdb_bfd_ref): Likewise.
3483 (get_section_descriptor): Likewise.
3484 * gdb_obstack.c (obconcat): Likewise.
3485 (obstack_strdup): Likewise.
3486 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
3487 (create_set_type): Likewise.
3488 (lookup_unsigned_typename): Likewise.
3489 (lookup_signed_typename): Likewise.
3490 (resolve_dynamic_union): Likewise.
3491 (resolve_dynamic_struct): Likewise.
3492 (add_dyn_prop): Likewise.
3493 (copy_dynamic_prop_list): Likewise.
3494 (arch_flags_type): Likewise.
3495 (append_composite_type_field_raw): Likewise.
3496 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
3497 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
3498 * go-exp.y (string_exp): Likewise.
3499 * go-lang.c (go_demangle): Likewise.
3500 * guile/guile.c (compute_scheme_string): Likewise.
3501 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3502 (gdbscm_canonicalize_command_name): Likewise.
3503 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
3504 (ioscm_init_memory_port): Likewise.
3505 (ioscm_reinit_memory_port): Likewise.
3506 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
3507 (gdbscm_gc_dup_argv): Likewise.
3508 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3509 * hppa-tdep.c (internalize_unwinds): Likewise.
3510 (read_unwind_info): Likewise.
3511 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
3512 (windows_core_xfer_shared_libraries): Likewise.
3513 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3514 (i386_stap_parse_special_token_triplet): Likewise.
3515 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3516 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3517 * inf-child.c (inf_child_fileio_readlink): Likewise.
3518 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3519 (inf_ptrace_store_register): Likewise.
3520 * infrun.c (follow_exec): Likewise.
3521 (displaced_step_prepare_throw): Likewise.
3522 (save_stop_context): Likewise.
3523 (save_infcall_suspend_state): Likewise.
3524 * jit.c (jit_read_descriptor): Likewise.
3525 (jit_read_code_entry): Likewise.
3526 (jit_symtab_line_mapping_add_impl): Likewise.
3527 (finalize_symtab): Likewise.
3528 (jit_unwind_reg_get_impl): Likewise.
3529 * jv-exp.y (QualifiedName): Likewise.
3530 * jv-lang.c (get_java_utf8_name): Likewise.
3531 (type_from_class): Likewise.
3532 (java_demangle_type_signature): Likewise.
3533 (java_class_name_from_physname): Likewise.
3534 * jv-typeprint.c (java_type_print_base): Likewise.
3535 * jv-valprint.c (java_value_print): Likewise.
3536 * language.c (add_language): Likewise.
3537 * linespec.c (add_sal_to_sals_basic): Likewise.
3538 (add_sal_to_sals): Likewise.
3539 (decode_objc): Likewise.
3540 (find_linespec_symbols): Likewise.
3541 * linux-fork.c (fork_save_infrun_state): Likewise.
3542 * linux-nat.c (linux_nat_detach): Likewise.
3543 (linux_nat_fileio_readlink): Likewise.
3544 * linux-record.c (record_linux_sockaddr): Likewise.
3545 (record_linux_msghdr): Likewise.
3546 (Do): Likewise.
3547 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
3548 (linux_collect_regset_section_cb): Likewise.
3549 (linux_get_siginfo_data): Likewise.
3550 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
3551 (try_thread_db_load_from_dir): Likewise.
3552 (thread_db_load_search): Likewise.
3553 (info_auto_load_libthread_db): Likewise.
3554 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
3555 (m32c_m16c_pointer_to_address): Likewise.
3556 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
3557 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3558 * machoread.c (macho_check_dsym): Likewise.
3559 * macroexp.c (resize_buffer): Likewise.
3560 (gather_arguments): Likewise.
3561 (maybe_expand): Likewise.
3562 * macrotab.c (new_macro_key): Likewise.
3563 (new_source_file): Likewise.
3564 (new_macro_definition): Likewise.
3565 * mdebugread.c (parse_symbol): Likewise.
3566 (parse_type): Likewise.
3567 (parse_partial_symbols): Likewise.
3568 (psymtab_to_symtab_1): Likewise.
3569 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3570 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
3571 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
3572 (mi_cmd_data_read_memory_bytes): Likewise.
3573 (mi_cmd_data_write_memory_bytes): Likewise.
3574 (mi_cmd_trace_frame_collected): Likewise.
3575 * mi/mi-parse.c (mi_parse_argv): Likewise.
3576 (mi_parse): Likewise.
3577 * minidebug.c (lzma_open): Likewise.
3578 (lzma_pread): Likewise.
3579 * mips-tdep.c (mips_read_fp_register_single): Likewise.
3580 (mips_print_fp_register): Likewise.
3581 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3582 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3583 * mt-tdep.c (mt_register_name): Likewise.
3584 (mt_registers_info): Likewise.
3585 (mt_push_dummy_call): Likewise.
3586 * namespace.c (add_using_directive): Likewise.
3587 * nat/linux-btrace.c (perf_event_read): Likewise.
3588 (linux_enable_bts): Likewise.
3589 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
3590 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
3591 * nto-tdep.c (nto_find_and_open_solib): Likewise.
3592 (nto_parse_redirection): Likewise.
3593 * objc-lang.c (objc_demangle): Likewise.
3594 (find_methods): Likewise.
3595 * objfiles.c (get_objfile_bfd_data): Likewise.
3596 (set_objfile_main_name): Likewise.
3597 (allocate_objfile): Likewise.
3598 (objfile_relocate): Likewise.
3599 (update_section_map): Likewise.
3600 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
3601 * p-exp.y (exp): Likewise.
3602 (yylex): Likewise.
3603 * p-valprint.c (pascal_object_print_value): Likewise.
3604 * parse.c (initialize_expout): Likewise.
3605 (mark_completion_tag): Likewise.
3606 (copy_name): Likewise.
3607 (parse_float): Likewise.
3608 (type_stack_reserve): Likewise.
3609 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3610 (ppu2spu_prev_register): Likewise.
3611 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
3612 * printcmd.c (printf_wide_c_string): Likewise.
3613 (printf_pointer): Likewise.
3614 * probe.c (parse_probes): Likewise.
3615 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3616 (cmdpy_init): Likewise.
3617 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
3618 * python/py-symtab.c (set_sal): Likewise.
3619 * python/py-unwind.c (pyuw_sniffer): Likewise.
3620 * python/python.c (python_interactive_command): Likewise.
3621 (compute_python_string): Likewise.
3622 * ravenscar-thread.c (get_running_thread_id): Likewise.
3623 * record-full.c (record_full_exec_insn): Likewise.
3624 (record_full_core_open_1): Likewise.
3625 * regcache.c (regcache_raw_read_signed): Likewise.
3626 (regcache_raw_read_unsigned): Likewise.
3627 (regcache_cooked_read_signed): Likewise.
3628 (regcache_cooked_read_unsigned): Likewise.
3629 * remote-fileio.c (remote_fileio_func_open): Likewise.
3630 (remote_fileio_func_rename): Likewise.
3631 (remote_fileio_func_unlink): Likewise.
3632 (remote_fileio_func_stat): Likewise.
3633 (remote_fileio_func_system): Likewise.
3634 * remote-mips.c (mips_xfer_memory): Likewise.
3635 (mips_load_srec): Likewise.
3636 (pmon_end_download): Likewise.
3637 * remote.c (new_remote_state): Likewise.
3638 (map_regcache_remote_table): Likewise.
3639 (remote_register_number_and_offset): Likewise.
3640 (init_remote_state): Likewise.
3641 (get_memory_packet_size): Likewise.
3642 (remote_pass_signals): Likewise.
3643 (remote_program_signals): Likewise.
3644 (remote_start_remote): Likewise.
3645 (remote_check_symbols): Likewise.
3646 (remote_query_supported): Likewise.
3647 (extended_remote_attach): Likewise.
3648 (process_g_packet): Likewise.
3649 (store_registers_using_G): Likewise.
3650 (putpkt_binary): Likewise.
3651 (read_frame): Likewise.
3652 (compare_sections_command): Likewise.
3653 (remote_hostio_pread): Likewise.
3654 (remote_hostio_readlink): Likewise.
3655 (remote_file_put): Likewise.
3656 (remote_file_get): Likewise.
3657 (remote_pid_to_exec_file): Likewise.
3658 (_initialize_remote): Likewise.
3659 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3660 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3661 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3662 (bfd_uses_spe_extensions): Likewise.
3663 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
3664 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
3665 * solib-dsbt.c (decode_loadmap): Likewise.
3666 (fetch_loadmap): Likewise.
3667 (scan_dyntag): Likewise.
3668 (enable_break): Likewise.
3669 (dsbt_relocate_main_executable): Likewise.
3670 * solib-frv.c (fetch_loadmap): Likewise.
3671 (enable_break2): Likewise.
3672 (frv_relocate_main_executable): Likewise.
3673 * solib-spu.c (spu_relocate_main_executable): Likewise.
3674 (spu_bfd_open): Likewise.
3675 * solib-svr4.c (lm_info_read): Likewise.
3676 (read_program_header): Likewise.
3677 (find_program_interpreter): Likewise.
3678 (scan_dyntag): Likewise.
3679 (elf_locate_base): Likewise.
3680 (open_symbol_file_object): Likewise.
3681 (read_program_headers_from_bfd): Likewise.
3682 (svr4_relocate_main_executable): Likewise.
3683 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
3684 * solib.c (solib_find_1): Likewise.
3685 (exec_file_find): Likewise.
3686 (solib_find): Likewise.
3687 * source.c (openp): Likewise.
3688 (print_source_lines_base): Likewise.
3689 (forward_search_command): Likewise.
3690 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
3691 * spu-tdep.c (spu2ppu_prev_register): Likewise.
3692 (spu_get_overlay_table): Likewise.
3693 * stabsread.c (patch_block_stabs): Likewise.
3694 (define_symbol): Likewise.
3695 (again:): Likewise.
3696 (read_member_functions): Likewise.
3697 (read_one_struct_field): Likewise.
3698 (read_enum_type): Likewise.
3699 (common_block_start): Likewise.
3700 * stack.c (read_frame_arg): Likewise.
3701 (backtrace_command): Likewise.
3702 * stap-probe.c (stap_parse_register_operand): Likewise.
3703 * symfile.c (syms_from_objfile_1): Likewise.
3704 (find_separate_debug_file): Likewise.
3705 (load_command): Likewise.
3706 (load_progress): Likewise.
3707 (load_section_callback): Likewise.
3708 (reread_symbols): Likewise.
3709 (add_filename_language): Likewise.
3710 (allocate_compunit_symtab): Likewise.
3711 (read_target_long_array): Likewise.
3712 (simple_read_overlay_table): Likewise.
3713 * symtab.c (symbol_set_names): Likewise.
3714 (resize_symbol_cache): Likewise.
3715 (rbreak_command): Likewise.
3716 (completion_list_add_name): Likewise.
3717 (completion_list_objc_symbol): Likewise.
3718 (add_filename_to_list): Likewise.
3719 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
3720 * target-memory.c (target_write_memory_blocks): Likewise.
3721 * target.c (target_read_string): Likewise.
3722 (read_whatever_is_readable): Likewise.
3723 (target_read_alloc_1): Likewise.
3724 (simple_search_memory): Likewise.
3725 (target_fileio_read_alloc_1): Likewise.
3726 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3727 * top.c (command_line_input): Likewise.
3728 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3729 * tracefile.c (tracefile_fetch_registers): Likewise.
3730 * tracepoint.c (add_memrange): Likewise.
3731 (init_collection_list): Likewise.
3732 (add_aexpr): Likewise.
3733 (trace_dump_actions): Likewise.
3734 (parse_trace_status): Likewise.
3735 (parse_tracepoint_definition): Likewise.
3736 (parse_tsv_definition): Likewise.
3737 (parse_static_tracepoint_marker_definition): Likewise.
3738 * tui/tui-file.c (tui_sfileopen): Likewise.
3739 (tui_file_adjust_strbuf): Likewise.
3740 * tui/tui-io.c (tui_expand_tabs): Likewise.
3741 * tui/tui-source.c (tui_set_source_content): Likewise.
3742 * typeprint.c (find_global_typedef): Likewise.
3743 * ui-file.c (do_ui_file_xstrdup): Likewise.
3744 (ui_file_obsavestring): Likewise.
3745 (mem_file_write): Likewise.
3746 * utils.c (make_hex_string): Likewise.
3747 (get_regcomp_error): Likewise.
3748 (puts_filtered_tabular): Likewise.
3749 (gdb_realpath_keepfile): Likewise.
3750 (ldirname): Likewise.
3751 (gdb_bfd_errmsg): Likewise.
3752 (substitute_path_component): Likewise.
3753 * valops.c (search_struct_method): Likewise.
3754 (find_oload_champ_namespace_loop): Likewise.
3755 * valprint.c (print_decimal_chars): Likewise.
3756 (read_string): Likewise.
3757 (generic_emit_char): Likewise.
3758 * varobj.c (varobj_delete): Likewise.
3759 (varobj_value_get_print_value): Likewise.
3760 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
3761 * windows-tdep.c (display_one_tib): Likewise.
3762 * xcoffread.c (read_xcoff_symtab): Likewise.
3763 (process_xcoff_symbol): Likewise.
3764 (swap_sym): Likewise.
3765 (scan_xcoff_symtab): Likewise.
3766 (xcoff_initial_scan): Likewise.
3767 * xml-support.c (gdb_xml_end_element): Likewise.
3768 (xml_process_xincludes): Likewise.
3769 (xml_fetch_content_from_file): Likewise.
3770 * xml-syscall.c (xml_list_of_syscalls): Likewise.
3771 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3772
623fb775 37732015-09-23 James Bowman <james.bowman@ftdichip.com>
3774
3775 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
3776 instead of builtin_func_ptr.
3777 (ft32_pointer_to_address): New function.
3778 (ft32_address_class_type_flags): New function.
3779 (ft32_address_class_type_flags_to_name): New function.
3780 (ft32_address_class_name_to_type_flags): New function.
3781 (ft32_gdbarch_init): Set tdep->pc_type. Call
3782 set_gdbarch_pointer_to_address,
3783 set_gdbarch_address_class_type_flags
3784 set_gdbarch_address_class_name_to_type_flags,
3785 and set_gdbarch_address_class_type_flags_to_name.
3786 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
3787
e6c2c623
PMR
37882015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
3789
3790 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
3791 value is a reference, actually dereference it in order to get
3792 the underlying value.
3793
bc1f8cda
SM
37942015-09-22 Simon Marchi <simon.marchi@ericsson.com>
3795
3796 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
3797
acaa662f
SM
37982015-09-21 Simon Marchi <simon.marchi@ericsson.com>
3799
3800 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
3801 * linespec.c (linespec_lexer_lex_string): Same.
3802
4d9d419e
PL
38032015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3804
3805 * NEWS: Mention support for fast tracepoints on aarch64-linux.
3806
6ec5f4be
PL
38072015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3808
3809 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
3810 variable. Call aarch64_decode_adr instead of
3811 aarch64_decode_adrp.
3812 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
3813 (aarch64_decode_adr): New function declaration.
3814 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
3815 (aarch64_decode_adr): New function, factored out from
3816 aarch64_decode_adrp to decode both adr and adrp instructions.
3817
787749ea
PL
38182015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3819
3820 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
3821 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
3822 (aarch64-insn.o): New rule.
3823 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
3824 (aarch64*-*-linux*): Likewise.
3825 * arch/aarch64-insn.c: New file.
3826 * arch/aarch64-insn.h: New file.
3827 * aarch64-tdep.c: Include arch/aarch64-insn.h.
3828 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
3829 arch/aarch64-insn.h.
3830 (decode_add_sub_imm): Rename to ...
3831 (aarch64_decode_add_sub_imm): ... this.
3832 (decode_adrp): Rename to ...
3833 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
3834 Declare in arch/aarch64-insn.h.
3835 (decode_b): Rename to ...
3836 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
3837 Declare in arch/aarch64-insn.h.
3838 (decode_bcond): Rename to ...
3839 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
3840 Declare in arch/aarch64-insn.h.
3841 (decode_br): Rename to ...
3842 (aarch64_decode_br): ... this.
3843 (decode_cb): Rename to ...
3844 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
3845 Declare in arch/aarch64-insn.h.
3846 (decode_eret): Rename to ...
3847 (aarch64_decode_eret): ... this.
3848 (decode_movz): Rename to ...
3849 (aarch64_decode_movz): ... this.
3850 (decode_orr_shifted_register_x): Rename to ...
3851 (aarch64_decode_orr_shifted_register_x): ... this.
3852 (decode_ret): Rename to ...
3853 (aarch64_decode_ret): ... this.
3854 (decode_stp_offset): Rename to ...
3855 (aarch64_decode_stp_offset): ... this.
3856 (decode_stp_offset_wb): Rename to ...
3857 (aarch64_decode_stp_offset_wb): ... this.
3858 (decode_stur): Rename to ...
3859 (aarch64_decode_stur): ... this.
3860 (decode_tb): Rename to ...
3861 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
3862 Declare in arch/aarch64-insn.h.
3863 (aarch64_analyze_prologue): Adjust calls to renamed functions.
3864
183dc7ec
DE
38652015-09-20 Doug Evans <xdje42@gmail.com>
3866
3867 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
3868
2ee7123e
DE
38692015-09-20 Doug Evans <xdje42@gmail.com>
3870
3871 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
3872 variable name that collides with a parameter.
3873
7d1c9c9b
JB
38742015-09-20 Joel Brobecker <brobecker@adacore.com>
3875
3876 * dwarf2loc.c (locexpr_get_frame_base): Renames
3877 block_op_get_frame_base.
3878 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
3879 block_op_get_frame_base by reference to locexpr_get_frame_base.
3880 (loclist_get_frame_base): New function, near identical copy of
3881 locexpr_get_frame_base.
3882 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
3883 block_op_get_frame_base by reference to loclist_get_frame_base.
3884
7dc7c195
DE
38852015-09-19 Doug Evans <xdje42@gmail.com>
3886
3887 * ravenscar-thread.c (ravenscar_inferior_created): Replace
3888 current_inferior ()->gdbarch with its wrapper target_gdbarch.
3889
be550b6e
DE
38902015-09-18 Doug Evans <xdje42@gmail.com>
3891
3892 * linux-thread-db.c (record_thread): Return the created thread.
3893 (thread_from_lwp): Likewise.
3894 (thread_db_get_thread_local_address): Update.
3895
615b3f62
DE
38962015-09-18 Doug Evans <xdje42@gmail.com>
3897
3898 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
3899 move only member demangled_name up. All uses updated.
3900
015d2e7e
DE
39012015-09-18 Doug Evans <xdje42@gmail.com>
3902
3903 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
3904 kind of minimal symbol in the error message.
3905 * objfiles.c (objfile_flavour_name): New function.
3906 * objfiles.h (objfile_flavour_name): Declare.
3907
a0cc84cd
YQ
39082015-09-18 Yao Qi <yao.qi@linaro.org>
3909
3910 * nat/aarch64-linux.c: Include elf/common.h,
3911 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
3912 (aarch64_ps_get_thread_area): New function.
3913 * nat/aarch64-linux.h: Include gdb_proc_service.h.
3914 (aarch64_ps_get_thread_area): Declare.
3915 * aarch64-linux-nat.c (ps_get_thread_area): Call
3916 aarch64_ps_get_thread_area.
3917
d2939ba2
MM
39182015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3919
3920 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
3921
f2665db5
MM
39222015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3923
3924 * NEWS: Announce new scheduler-locking mode.
3925 * infrun.c (schedlock_replay): New.
3926 (scheduler_enums): Add schedlock_replay.
3927 (scheduler_mode): Change default to schedlock_replay.
3928 (user_visible_resume_ptid): Handle schedlock_replay.
3929 (clear_proceed_status_thread): Stop replaying if resumed thread is
3930 not replaying.
3931 (schedlock_applies): Handle schedlock_replay.
3932 (_initialize_infrun): Document new scheduler-locking mode.
3933 * record-btrace.c (record_btrace_resume): Remove code to stop other
3934 threads when not replaying the resumed thread.
3935
7ff27e9b
MM
39362015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3937
3938 * record-btrace.c ((record_btrace_will_replay): New.
3939 (init_record_btrace_ops): Initialize to_record_will_replay.
3940 * record-full.c ((record_full_will_replay): New.
3941 (init_record_full_ops): Initialize to_record_will_replay.
3942 * target-delegates.c: Regenerated.
3943 * target.c (target_record_will_replay): New.
3944 * target.h (struct target_ops) <to_record_will_replay>: New.
3945 (target_record_will_replay): New.
3946
797094dd
MM
39472015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3948
3949 * record-btrace.c (record_btrace_resume): Call
3950 target_record_stop_replaying.
3951 (record_btrace_stop_replaying_all): New.
3952 (init_record_btrace_ops): Initialize to_record_stop_replaying.
3953 * record-full.c (record_full_stop_replaying): New.
3954 (init_record_full_ops ): Initialize to_record_stop_replaying.
3955 * target-delegates.c: Regenerated.
3956 * target.c (target_record_stop_replaying): New.
3957 * target.h (struct target_ops) <to_record_stop_replaying>: New.
3958 (target_record_stop_replaying): New.
3959
4d10e986
MM
39602015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3961
3962 * record-btrace.c (record_btrace_xfer_partial)
3963 (record_btrace_store_registers, record_btrace_prepare_to_store):
3964 Call record_btrace_is_replaying with inferior_ptid instead of
3965 minus_one_ptid.
3966 (record_btrace_store_registers): Change error message.
3967
a52eab48
MM
39682015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3969
3970 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
3971 Update users to pass minus_one_ptid.
3972 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
3973 * record.c (cmd_record_delete): Pass inferior_ptid to
3974 target_record_is_replaying.
3975 * target-delegates.c: Regenerated.
3976 * target.c (target_record_is_replaying): Add ptid argument.
3977 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
3978 argument.
3979 (target_record_is_replaying): Add ptid argument.
3980
cbb55fa7
MM
39812015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3982
3983 * record-btrace.c (record_btrace_open): Remove non_stop check.
3984 * NEWS: Announce that record btrace supports non-stop mode.
3985
d1988021
MM
39862015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3987
3988 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
3989 in the TARKET_WAITKIND_NO_HISTORY case.
3990
a6b5be76
MM
39912015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3992
3993 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
3994 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
3995
ec71cc2f
MM
39962015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3997
3998 * record-btrace.c (get_thread_current_frame): New.
3999 (record_btrace_start_replaying): Call get_thread_current_frame.
4000
0ca912df
MM
40012015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4002
4003 * record-btrace.c (record_btrace_resume_thread): A move request
4004 overwrites a previous move request.
4005 (record_btrace_find_resume_thread): Removed.
4006 (record_btrace_resume): Resume all requested threads.
4007
e3cfc1c7
MM
40082015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4009
4010 * record-btrace.c: Include vec.h.
4011 (record_btrace_find_thread_to_move): Removed.
4012 (btrace_step_no_resumed, btrace_step_again)
4013 (record_btrace_stop_replaying_at_end): New.
4014 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
4015 (record_btrace_single_step_forward): Remove calls to
4016 record_btrace_stop_replaying.
4017 (record_btrace_step_thread): Do only one step for BTHR_CONT and
4018 BTHR_RCONT. Keep threads at the end of their history moving.
4019 (record_btrace_wait): Call record_btrace_step_thread for all threads
4020 until one reports an event. Call record_btrace_stop_replaying_at_end
4021 for the eventing thread.
4022
cf8f8f0c
MM
40232015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4024
4025 * record-btrace.c (record_btrace_single_step_forward): Return
4026 NO_HISTORY if a step brings us to the end of the execution history.
4027
011c71b6
MM
40282015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4029
4030 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
4031 to ...
4032 (record_btrace_single_step_forward): ... here and
4033 (record_btrace_single_step_backward): ... here.
4034
d825d248
MM
40352015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4036
4037 * record-btrace.c (btrace_step_spurious)
4038 (record_btrace_single_step_forward)
4039 (record_btrace_single_step_backward): New.
4040 (record_btrace_step_thread): Call record_btrace_single_step_forward
4041 and record_btrace_single_step_backward.
4042
3c615f99
MM
40432015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4044
4045 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
4046 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
4047
987e68b1
MM
40482015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4049
4050 * record-btrace.c (btrace_thread_flag_to_str)
4051 (record_btrace_cancel_resume): New.
4052 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
4053 (record_btrace_resume): Print execution direction.
4054 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
4055 (record_btrace_wait): Call record_btrace_cancel_resume.
4056
6e4879f0
MM
40572015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4058
4059 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
4060 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
4061 (record_btrace_find_thread_to_move): Also accept threads that have
4062 BTHR_STOP set.
4063 (btrace_step_stopped_on_request, record_btrace_stop): New.
4064 (record_btrace_step_thread): Support BTHR_STOP.
4065 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
4066 (init_record_btrace_ops): Initialize to_stop.
4067
5953356c
MM
40682015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4069
4070 * record-btrace.c (record_btrace_wait): Replace non_stop check with
4071 target_is_non_stop_p ().
4072
bfca584f
PMR
40732015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
4074
4075 * ada-typeprint.c (print_array_type): Do not describe arrays as
4076 packed when they embed dynamic elements.
4077
5382cfab
PW
40782015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4079
4080 * symtab.h (address_class): Document that TLS variables
4081 are handled by LOC_UNRESOLVED.
4082 * findvar.c (default_read_var_value): Don't relocate TLS variables.
4083 * printcmd.c (address_info): Don't relocate TLS variables.
4084
b277c936
PL
40852015-09-15 Pierre Langlois <pierre.langlois@arm.com>
4086
4087 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
4088 (decode_adrp): Likewise.
4089 (decode_b): Likewise.
4090 (decode_bcond): Likewise.
4091 (decode_br): Likewise.
4092 (decode_cb): Likewise.
4093 (decode_eret): Likewise.
4094 (decode_movz): Likewise.
4095 (decode_orr_shifted_register_x): Likewise.
4096 (decode_ret): Likewise.
4097 (decode_stp_offset): Likewise.
4098 (decode_stp_offset_wb): Likewise.
4099 (decode_stur): Likewise.
4100 (decode_tb): Likewise.
4101 (aarch64_analyze_prologue): Likewise.
4102 (pass_in_x): Likewise.
4103 (pass_in_v): Likewise.
4104 (pass_on_stack): Likewise.
4105 (aarch64_push_dummy_call): Likewise.
4106 (aarch64_extract_return_value): Likewise.
4107 (aarch64_store_return_value): Likewise.
4108 (aarch64_return_value): Likewise.
4109 (aarch64_record_asimd_load_store): Likewise.
4110 (aarch64_record_load_store): Likewise.
4111 (aarch64_record_data_proc_simd_fp): Likewise.
4112
141c5cc4
JK
41132015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4114
4115 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
4116 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
4117 (ppc64_skip_trampoline_code_1): ... here.
4118 (ppc64_skip_trampoline_code): New wrapper function.
4119 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
4120
750ce8d1
YQ
41212015-09-15 Yao Qi <yao.qi@linaro.org>
4122
4123 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
4124 function.
4125 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
4126 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
4127 if target_can_do_single_step returns 1.
4128 * remote.c (struct vCont_action_support) <s, S>: New fields.
4129 (PACKET_vContSupported): New enum.
4130 (remote_protocol_features): New element for vContSupported.
4131 (remote_query_supported): Append "vContSupported+".
4132 (remote_vcont_probe): Remove support_s and support_S, use
4133 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
4134 vCont packet if c and C actions are not supported.
4135 (remote_can_do_single_step): New function.
4136 (init_remote_ops): Install it to to_can_do_single_step.
4137 (_initialize_remote): Call add_packet_config_cmd.
4138 * target.h (struct target_ops) <to_can_do_single_step>: New field.
4139 (target_can_do_single_step): New macro.
4140 * target-delegates.c: Re-generated.
4141
ade90bde
YQ
41422015-09-15 Yao Qi <yao.qi@linaro.org>
4143
4144 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
4145 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
4146 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
4147 New function.
4148 (aarch64_siginfo_from_compat_siginfo): New function.
4149 * nat/aarch64-linux.h: Include signal.h.
4150 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
4151 (compat_timer_t, compat_clock_t): Likewise.
4152 (struct compat_timeval): New.
4153 (union compat_sigval): New.
4154 (struct compat_siginfo): New.
4155 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
4156 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
4157 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
4158 (cpt_si_band, cpt_si_fd): Likewise.
4159
4c2f2a79
PA
41602015-09-14 Pedro Alves <palves@redhat.com>
4161
4162 * infrun.c (current_stop_id): New global.
4163 (get_stop_id, new_stop_id): New functions.
4164 (fetch_inferior_event): Handle normal_stop proceeding the target.
4165 (struct stop_context): New.
4166 (save_stop_context, release_stop_context_cleanup)
4167 (stop_context_changed): New functions.
4168 (normal_stop): Return true if the hook-stop changes the stop
4169 context.
4170 * infrun.h (get_stop_id): Declare.
4171 (normal_stop): Now returns int. Add documentation.
4172
919e6dbe
PMR
41732015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
4174
4175 * ada-lang.c (ada_value_ptr_subscript): Update the heading
4176 comment. Handle packed arrays.
4177
b027a8fa
PA
41782015-09-14 Pedro Alves <palves@redhat.com>
4179
4180 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
4181 mention of maint set/show target-non-stop.
4182
b459a59b
DB
41832015-09-11 Don Breazeal <donb@codesourcery.com>
4184
4185 * NEWS: Announce new remote packets for the exec-events
4186 feature and the exec-events feature and associated commands.
4187
d46addbb
DB
41882015-09-11 Don Breazeal <donb@codesourcery.com>
4189
4190 * remote.c (remote_exec_event_p): New function.
4191 (remote_insert_exec_catchpoint): New function.
4192 (remote_remove_exec_catchpoint): New function.
4193 (init_extended_remote_ops): Initialize extended_remote_ops
4194 members to_insert_exec_catchpoint and
4195 to_remove_exec_catchpoint.
4196
94585166
DB
41972015-09-11 Don Breazeal <donb@codesourcery.com>
4198 Luis Machado <lgustavo@codesourcery.com>
4199
4200 * infrun.c (follow_exec): Use process-style ptid for
4201 exec message. Call add_inferior_with_spaces and
4202 target_follow_exec.
4203 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
4204 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
4205 * remote.c (remote_pspace_data): New static variable.
4206 (remote_pspace_data_cleanup): New function.
4207 (get_remote_exec_file): New function.
4208 (set_remote_exec_file_1): New function.
4209 (set_remote_exec_file): New function.
4210 (show_remote_exec_file): New function.
4211 (remote_exec_file): Delete static variable.
4212 (anonymous enum) <PACKET_exec_event_feature>: New
4213 enumeration constant.
4214 (remote_protocol_features): Add entry for exec-events feature.
4215 (remote_query_supported): Add client side of qSupported query
4216 for exec-events feature.
4217 (remote_follow_exec): New function.
4218 (remote_parse_stop_reply): Handle 'exec' stop reason.
4219 (extended_remote_run, extended_remote_create_inferior): Call
4220 get_remote_exec_file and set_remote_exec_file_1.
4221 (init_extended_remote_ops) <to_follow_exec>: Initialize new
4222 member.
4223 (_initialize_remote): Call
4224 register_program_space_data_with_cleanup. Call
4225 add_packet_config_cmd for remote exec-events feature.
4226 Modify call to add_setshow_string_noescape_cmd for exec-file
4227 to use new functions set_remote_exec_file and
4228 show_remote_exec_file.
4229 * target-debug.h, target-delegates.c: Regenerated.
4230 * target.c (target_follow_exec): New function.
4231 * target.h (struct target_ops) <to_follow_exec>: New member.
4232 (target_follow_exec): Declare new function.
4233
669e74e8
PL
42342015-09-11 Pierre Langlois <pierre.langlois@arm.com>
4235
4236 * aarch64-tdep.c (decode_cb): Move up comment describing the
4237 encoding.
4238 (decode_tb): Fix a typo in comment above the function. Move up
4239 comment describing the encoding.
4240
4d50586d
PL
42412015-09-11 Pierre Langlois <pierre.langlois@arm.com>
4242
4243 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
4244
6dcaef99
MMN
42452015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
4246
4247 PR gdb/18947
4248 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
4249 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
4250
5da1a4d3
SM
42512015-09-10 Simon Marchi <simon.marchi@ericsson.com>
4252
4253 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
4254 operations.
4255
108d56a4
SM
42562015-09-10 Simon Marchi <simon.marchi@ericsson.com>
4257
4258 * ada-lang.c (ada_search_struct_field): Constify parameters
4259 and/or variables..
4260 (xget_renaming_scope): Likewise.
4261 (ada_is_redundant_range_encoding): Likewise.
4262 (scan_discrim_bound): Likewise.
4263 (to_fixed_range_type): Likewise.
4264
dd2e65cc
YQ
42652015-09-10 Yao Qi <yao.qi@linaro.org>
4266
4267 * breakpoint.c (download_tracepoint_locations): New local
4268 can_download_tracepoint. Check the result of
4269 target_can_download_tracepoint and save it in
4270 can_download_tracepoint if there are tracepoints to download.
4271 * linux-nat.h (enum tribool): Move it to ...
4272 * common/common-types.h: ... here.
4273
cfe75703
PA
42742015-09-09 Pedro Alves <palves@redhat.com>
4275
4276 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
4277 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
4278
a85a3079
PA
42792015-09-09 Pedro Alves <palves@redhat.com>
4280
4281 * continuations.c (add_continuation, restore_thread_cleanup)
4282 (do_all_continuations_ptid, do_all_continuations_thread_callback)
4283 (do_all_continuations_thread, do_all_continuations)
4284 (discard_all_continuations_thread_callback)
4285 (discard_all_continuations_thread, discard_all_continuations)
4286 (add_intermediate_continuation)
4287 (do_all_intermediate_continuations_thread_callback)
4288 (do_all_intermediate_continuations_thread)
4289 (do_all_intermediate_continuations)
4290 (discard_all_intermediate_continuations_thread_callback)
4291 (discard_all_intermediate_continuations_thread)
4292 (discard_all_intermediate_continuations): Delete.
4293 * continuations.h (add_continuation, do_all_continuations)
4294 (do_all_continuations_thread, discard_all_continuations)
4295 (discard_all_continuations_thread, add_intermediate_continuation)
4296 (do_all_intermediate_continuations)
4297 (do_all_intermediate_continuations_thread)
4298 (discard_all_intermediate_continuations)
4299 (discard_all_intermediate_continuations_thread): Delete
4300 declarations.
4301 * event-top.c (stdin_event_handler): Delete references to
4302 continuations.
4303 * gdbthread.h (struct thread_info): Delete continuations and
4304 intermediate_continuations fields.
4305 * inf-loop.c (inferior_event_handler): Remove references to
4306 continuations.
4307 * infrun.c (infrun_thread_stop_requested_callback): Remove
4308 references to continuations.
4309 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
4310 * thread.c: Don't include "continuations.h".
4311 (clear_thread_inferior_resources): Remove references to
4312 continuations.
4313
0700e23e
PA
43142015-09-09 Pedro Alves <palves@redhat.com>
4315
4316 * infcall.c (struct dummy_frame_context_saver): Delete.
4317 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
4318 (dummy_frame_context_saver_drop)
4319 (dummy_frame_context_saver_cleanup)
4320 (dummy_frame_context_saver_get_regs)
4321 (dummy_frame_context_saver_setup): Delete.
4322 * infcall.h (dummy_frame_context_saver_drop)
4323 (dummy_frame_context_saver_cleanup)
4324 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
4325 Delete.
4326 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
4327 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
4328 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
4329
cfc31633
PA
43302015-09-09 Pedro Alves <palves@redhat.com>
4331
4332 * breakpoint.c: Include "thread-fsm.h".
4333 (struct until_break_command_continuation_args): Delete.
4334 (struct until_break_fsm): New.
4335 (until_break_fsm_ops): New global.
4336 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
4337 (until_break_command_continuation): Delete.
4338 (until_break_fsm_clean_up): New function.
4339 (until_break_fsm_async_reply_reason): New function.
4340 (until_break_command): Adjust to create an until_break_fsm instead
4341 of a continuation.
4342 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
4343 here.
4344 * infcmd.c (struct until_next_fsm): New.
4345 (until_next_fsm_ops): New global.
4346 (new_until_next_fsm, until_next_fsm_should_stop): New function.
4347 (until_next_continuation): Delete.
4348 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
4349 functions.
4350 (until_next_command): Adjust to create a new until_next_fsm
4351 instead of a continuation.
4352
388a7084
PA
43532015-09-09 Pedro Alves <palves@redhat.com>
4354
4355 * infcall.c: Include thread_fsm.h.
4356 (struct call_return_meta_info): New.
4357 (get_call_return_value): New function, factored out from
4358 call_function_by_hand_dummy.
4359 (struct call_thread_fsm): New.
4360 (call_thread_fsm_ops): New global.
4361 (new_call_thread_fsm, call_thread_fsm_should_stop)
4362 (call_thread_fsm_should_notify_stop): New functions.
4363 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
4364 the thread.
4365 (call_function_by_hand_dummy): Create a new call_thread_fsm
4366 instance, associate it with the thread, and wait for the FSM to
4367 finish. If finished successfully, fetch the function's result
4368 value out of the FSM.
4369 * infrun.c (fetch_inferior_event): If the FSM says the stop
4370 shouldn't be notified, don't call normal_stop.
4371 (maybe_remove_breakpoints): New function, factored out from ...
4372 (normal_stop): ... here. Simplify.
4373 * infrun.h (maybe_remove_breakpoints): Declare.
4374 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
4375 (thread-fsm.h) <struct thread_fsm_ops>: New field.
4376 (thread_fsm_should_notify_stop): Declare.
4377
243a9253
PA
43782015-09-09 Pedro Alves <palves@redhat.com>
4379
4380 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
4381 * breakpoint.c (handle_jit_event): Print debug output.
4382 (bpstat_what): Split event callback handling to ...
4383 (bpstat_run_callbacks): ... this new function.
4384 (momentary_bkpt_print_it): No longer handle bp_finish here.
4385 * breakpoint.h (bpstat_run_callbacks): Declare.
4386 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
4387 <thread_fsm>: New field.
4388 (thread_cancel_execution_command): Declare.
4389 * infcmd.c: Include thread-fsm.h.
4390 (struct step_command_fsm): New.
4391 (step_command_fsm_ops): New global.
4392 (new_step_command_fsm, step_command_fsm_prepare): New functions.
4393 (step_1): Adjust to use step_command_fsm_prepare and
4394 prepare_one_step.
4395 (struct step_1_continuation_args): Delete.
4396 (step_1_continuation): Delete.
4397 (step_command_fsm_should_stop): New function.
4398 (step_once): Delete.
4399 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
4400 (prepare_one_step): New function, based on step_once.
4401 (until_next_command): Remove step_multi reference.
4402 (struct return_value_info): New.
4403 (print_return_value): Rename to ...
4404 (print_return_value_1): ... this. New struct return_value_info
4405 parameter. Adjust.
4406 (print_return_value): Reimplement as wrapper around
4407 print_return_value_1.
4408 (struct finish_command_fsm): New.
4409 (finish_command_continuation): Delete.
4410 (finish_command_fsm_ops): New global.
4411 (new_finish_command_fsm, finish_command_fsm_should_stop): New
4412 functions.
4413 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
4414 New.
4415 (finish_command_continuation_free_arg): Delete.
4416 (finish_command_fsm_async_reply_reason): New.
4417 (finish_backward, finish_forward): Change symbol parameter to a
4418 finish_command_fsm. Adjust.
4419 (finish_command): Create a finish_command_fsm. Adjust.
4420 * infrun.c: Include "thread-fsm.h".
4421 (clear_proceed_status_thread): Delete the thread's FSM.
4422 (infrun_thread_stop_requested_callback): Cancel the thread's
4423 execution command.
4424 (clean_up_just_stopped_threads_fsms): New function.
4425 (fetch_inferior_event): Handle the event_thread's should_stop
4426 method saying the command isn't done yet.
4427 (process_event_stop_test): Run breakpoint callbacks here.
4428 (print_stop_event): Rename to ...
4429 (print_stop_location): ... this.
4430 (restore_current_uiout_cleanup): New function.
4431 (print_stop_event): Reimplement.
4432 (normal_stop): No longer notify the end_stepping_range observers
4433 here handle "step N" nor "finish" here. No longer call
4434 print_stop_event here.
4435 * infrun.h (struct return_value_info): Forward declare.
4436 (print_return_value): Declare.
4437 (print_stop_event): Change prototype.
4438 * thread-fsm.c: New file.
4439 * thread-fsm.h: New file.
4440 * thread.c: Include "thread-fsm.h".
4441 (thread_cancel_execution_command): New function.
4442 (clear_thread_inferior_resources): Call it.
4443 * cli/cli-interp.c (cli_on_normal_stop): New function.
4444 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
4445 observer.
4446 * mi/mi-interp.c: Include "thread-fsm.h".
4447 (restore_current_uiout_cleanup): Delete.
4448 (mi_on_normal_stop): If the thread has an FSM associated, and it
4449 finished, ask it for the async-reply-reason to print. Always call
4450 print_stop_event here, regardless of the top-level interpreter.
4451 Check bpstat_what to tell whether an asynchronous breakpoint hit
4452 triggered.
4453 * tui/tui-interp.c (tui_on_normal_stop): New function.
4454 (tui_init): Install tui_on_normal_stop as normal_stop observer.
4455
0b333c5e
PA
44562015-09-09 Pedro Alves <palves@redhat.com>
4457
4458 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
4459 check whether the target can async.
4460 * inf-loop.c (inferior_event_handler): Only call target_async if
4461 the target can async.
4462 * infcall.c: Include top.h and interps.h.
4463 (run_inferior_call): For the interpreter to sync mode while
4464 running the infcall. Call wait_sync_command_done instead of
4465 wait_for_inferior plus normal_stop.
4466 * infcmd.c (prepare_execution_command): Don't check whether the
4467 target can async when running in the foreground.
4468 (step_1): Delete synchronous case handling.
4469 (step_once): Always install a continuation, even in sync mode.
4470 (until_next_command, finish_forward): Don't check whether the
4471 target can async.
4472 (attach_command_post_wait, notice_new_inferior): Always install a
4473 continuation, even in sync mode.
4474 * infrun.c (mark_infrun_async_event_handler): New function.
4475 (proceed): In sync mode, mark infrun's event source instead of
4476 waiting for events here.
4477 (fetch_inferior_event): If the target can't async, do a blocking
4478 wait.
4479 (prepare_to_wait): In sync mode, mark infrun's event source.
4480 (infrun_async_inferior_event_handler): No longer bail out if the
4481 target can't async.
4482 * infrun.h (mark_infrun_async_event_handler): New declaration.
4483 * linux-nat.c (linux_nat_wait_1): Remove calls to
4484 set_sigint_trap/clear_sigint_trap.
4485 (linux_nat_terminal_inferior): No longer check whether the target
4486 can async.
4487 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
4488 comment.
4489 (mi_execute_command_input_handler): No longer check whether the
4490 target is async. Update and simplify comment.
4491 * target.c (default_target_wait): New function.
4492 * target.h (struct target_ops) <to_wait>: Now defaults to
4493 default_target_wait.
4494 (default_target_wait): Declare.
4495 * top.c (wait_sync_command_done): New function, factored out from
4496 ...
4497 (maybe_wait_sync_command_done): ... this.
4498 * top.h (wait_sync_command_done): Declare.
4499 * target-delegates.c: Regenerate.
4500
0568462b
MM
45012015-09-09 Markus Metzger <markus.t.metzger@intel.com>
4502
4503 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
4504 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
4505 Remove include of sys/utsname.h.
4506 (linux_determine_kernel_ptr_bits): Remove.
4507 (linux_determine_kernel_start): New.
4508 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
4509 Update check.
4510 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
4511 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
4512 initialization.
4513 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
4514 assignment.
4515
72e02483
PA
45162015-09-07 Pedro Alves <palves@redhat.com>
4517
4518 * guile/guile-internal.h (as_a_scm_t_subr): New.
4519 * guile/guile.c (misc_guile_functions): Use it.
4520 * guile/scm-arch.c (arch_functions): Use it.
4521 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
4522 Use it.
4523 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
4524 * guile/scm-cmd.c (command_functions): Use it.
4525 * guile/scm-disasm.c (disasm_functions): Use it.
4526 * guile/scm-exception.c (exception_functions)
4527 (private_exception_functions): Use it.
4528 * guile/scm-frame.c (frame_functions)
4529 * guile/scm-gsmob.c (gsmob_functions): Use it.
4530 * guile/scm-iterator.c (iterator_functions): Use it.
4531 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
4532 * guile/scm-math.c (math_functions): Use it.
4533 * guile/scm-objfile.c (objfile_functions): Use it.
4534 * guile/scm-param.c (parameter_functions): Use it.
4535 * guile/scm-ports.c (port_functions, private_port_functions): Use
4536 it.
4537 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
4538 * guile/scm-progspace.c (pspace_functions): Use it.
4539 * guile/scm-string.c (string_functions): Use it.
4540 * guile/scm-symbol.c (symbol_functions): Use it.
4541 * guile/scm-symtab.c (symtab_functions): Use it.
4542 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
4543 it.
4544 * guile/scm-value.c (value_functions): Use it.
4545
e65b5245
AB
45462015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4547
4548 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
4549 (tui_next_win): Likewise.
4550 (tui_prev_win): Likewise.
4551 (tui_partial_win_by_name): Likewise.
4552 (tui_init_generic_part): Likewise.
4553 (init_content_element): Likewise.
4554 (tui_del_window): Likewise.
4555 (tui_free_window): Likewise.
4556 (tui_del_data_windows): Likewise.
4557 (tui_free_data_content): Likewise.
4558 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
4559 * tui/tui-regs.c (tui_show_register_group): Likewise.
4560 * tui/tui-win.c (tui_resize_all): Likewise.
4561 (tui_set_focus): Likewise.
4562 (tui_set_win_height): Likewise.
4563 (make_invisible_and_set_new_height): Likewise.
4564 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
4565 * tui/tui-wingeneral.c (make_visible): Likewise.
4566
b03e6ad9
AB
45672015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4568
4569 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
4570
be903358
AB
45712015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4572
4573 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
4574 pointer.
4575 * dbxread.c (dbx_end_psymtab): Likewise.
4576 * gnu-nat.c (gnu_write_inferior): Likewise.
4577 * mdebugread.c (cross_ref): Likewise.
4578 * p-valprint.c (pascal_val_print): Likewise.
4579 * xcoffread.c (xcoff_end_psymtab): Likewise.
4580
02f024f9
YQ
45812015-09-04 Yao Qi <yao.qi@linaro.org>
4582
4583 * NEWS: Mention the aarch64 multi-arch debugging support.
4584
cd7c1778
PMR
45852015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
4586
4587 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
4588 type instead of a TYPE_CODE_INT one for the string_char_type
4589 and the ada_primitive_type_char types.
4590
39edd165
YQ
45912015-09-03 Yao Qi <yao.qi@linaro.org>
4592
4593 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4594 Move code to aarch64_linux_region_ok_for_watchpoint. Call
4595 aarch64_linux_region_ok_for_watchpoint.
4596 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
4597 New function.
4598 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
4599 Declare it.
4600
6c214e7c
PP
46012015-09-02 Patrick Palka <patrick@parcs.ath.cx>
4602
4603 * gdb_obstack.h (obstack_strdup): Declare.
4604 * gdb_obstack.c (obstack_strdup): Define.
4605 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
4606 * gdbarch.c: Regenerate.
4607 * gdbarch.h: Regenerate.
4608 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
4609
eed8b28a
PP
46102015-09-02 Patrick Palka <patrick@parcs.ath.cx>
4611
4612 * gdbtypes.c (copy_type_recursive): Update documentation.
4613
73c6b475
SDJ
46142015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4615
4616 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
4617 as zero.
4618
ad1c917a
SDJ
46192015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4620
4621 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
4622
3bd7e5b7
SDJ
46232015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4624
4625 * solib-svr4.c (solib_event_probe_action): Call
4626 get_probe_argument_count using TRY...CATCH.
4627 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
4628
f469e8ce
SDJ
46292015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4630
4631 * probe.h (struct probe_ops) <get_probe_argument_count,
4632 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
4633 the comment that the function can throw an exception.
4634 (get_probe_argument_count): Likewise.
4635 (evaluate_probe_argument): Likewise.
4636 * stap-probe.c (stap_get_opcode): Call error instead of
4637 internal_error.
4638 (stap_get_expected_argument_type): Likewise. Add argument
4639 'probe'. Improve error message by mentioning the probe's name.
4640 (stap_parse_probe_arguments): Adjust call to
4641 stap_get_expected_argument_type.
4642 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
4643 not zero. Call internal_error if GDB requests an argument but the
4644 probe has no arguments.
4645
dc5c8746
PMR
46462015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
4647
4648 * ada-lang.c (ada_resolve_function): Do not ask the user what
4649 match to use when in completion mode.
4650
136765ea
AB
46512015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
4652
4653 * tui/tui-data.c (tui_win_name): Make local variable const, remove
4654 cast of NULL.
4655
90b81c5f
MF
46562015-08-31 Max Filippov <jcmvbkbc@gmail.com>
4657
4658 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
4659 call_abi using XSHAL_ABI macro.
4660
1cd36e54
DE
46612015-08-29 Doug Evans <xdje42@gmail.com>
4662
4663 * symtab.h (struct symbol): Tweak comment.
4664
8f57eec2
PP
46652015-08-29 Patrick Palka <patrick@parcs.ath.cx>
4666
4667 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
4668 gdbarch obstack instead of on the heap. Update commentary
4669 accordingly.
4670
38eebd71
JB
46712015-08-28 Joel Brobecker <brobecker@adacore.com>
4672
4673 GDB 7.10 released.
4674
d63dd61e
SM
46752015-08-28 Simon Marchi <simon.marchi@ericsson.com>
4676
4677 * NEWS: Update entry about non-8-bits addressable memory.
4678
6f059256
UW
46792015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
4680
4681 Revert:
4682 2014-11-06 Doug Evans <xdje42@gmail.com>
4683 * solib.c (solib_global_lookup): Fetch arch from objfile,
4684 not target_gdbarch.
4685
70987a92 46862015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
4687
4688 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
4689 attempt to relocate a TLS variable offset.
4690
70987a92 46912015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
4692
4693 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
4694 registered yet. Set inferior_ptid while calling target_read_memory.
4695
70987a92 46962015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
4697
4698 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
4699 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
4700 * linux-nat.c (check_stopped_by_breakpoint): Use
4701 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
4702
70987a92 47032015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
4704
4705 * linux-thread-db.c (thread_db_get_thread_local_address): If the
4706 thread was not yet discovered, use thread_from_lwp instead of
4707 calling thread_db_find_new_threads_1.
4708
f5cdf498
SM
47092015-08-27 Simon Marchi <simon.marchi@ericsson.com>
4710
4711 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
4712 statements.
4713
fd2ae5d6
SM
47142015-08-27 Simon Marchi <simon.marchi@ericsson.com>
4715
4716 * NEWS: Document support for non-8-bits addressable memory.
4717
14d88147
PA
47182015-08-27 Pedro Alves <palves@redhat.com>
4719
4720 * configure.ac: Remove AC_TYPE_SIGNAL call.
4721 * configure, config.in: Regenerate.
4722
a40805d4
PA
47232015-08-27 Pedro Alves <palves@redhat.com>
4724
4725 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
4726 * extension-priv.h: Include signal.h.
4727 (struct signal_handler) <handler>: Change type to sighandler_t.
4728 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
4729 * inflow.c (sigint_ours, sigquit_ours): Change type to
4730 sighandler_t.
4731 (child_terminal_inferior): Remove casts.
4732 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
4733 (osig): Change type to sighandler_t.
4734 * nto-procfs.c (ofunc): Change type to sighandler_t.
4735 (procfs_wait): Remove casts.
4736 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
4737 * remote-sim.c (gdbsim_wait): Use sighandler_t.
4738 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
4739
0750520d
PA
47402015-08-27 Pedro Alves <palves@redhat.com>
4741
4742 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
4743 * gnulib/aclocal.m4: Renegerate.
4744 * gnulib/config.in: Renegerate.
4745 * gnulib/configure: Renegerate.
4746 * gnulib/import/Makefile.am: Update.
4747 * gnulib/import/Makefile.in: Regenerate.
4748 * gnulib/import/m4/gnulib-cache.m4: Update.
4749 * gnulib/import/m4/gnulib-comp.m4: Update.
4750 * gnulib/import/m4/signal_h.m4: New file.
4751 * gnulib/import/signal.in.h: New file.
4752
a5c0808e
PA
47532015-08-27 Pedro Alves <palves@redhat.com>
4754
4755 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
4756 (MIN_MEMORY_PACKET_SIZE): New.
4757 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
4758 (get_memory_packet_size): Adjust. No longer limit the max packet
4759 size.
4760 (set_memory_packet_size): Adjust, and remove dead code.
4761 (remote_check_symbols): Use xmalloc and a cleanup instead of
4762 alloca.
4763 (remote_packet_size): No longer cap the packet size.
4764 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
4765
cdaec3f3
LM
47662015-08-26 Luis Machado <lgustavo@codesourcery.com>
4767
4768 * compile/compile.c (compile_to_object): Mention language in
4769 error message.
4770
e9756d52
PP
47712015-08-26 Patrick Palka <patrick@parcs.ath.cx>
4772
4773 * target.c (target_pre_inferior): Unset attach_flag.
4774
1dc7a623
SM
47752015-08-26 Simon Marchi <simon.marchi@ericsson.com>
4776
4777 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
4778 * gdbarch.c: Re-generate.
4779
8d749320
SM
47802015-08-26 Simon Marchi <simon.marchi@ericsson.com>
4781
6711b7f8
SM
4782 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
4783 function with the XNEW-family equivalent.
8d749320
SM
4784 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
4785 * ada-exp.y (write_ambiguous_var): Likewise.
4786 * ada-lang.c (resolve_subexp): Likewise.
4787 (user_select_syms): Likewise.
4788 (assign_aggregate): Likewise.
4789 (ada_evaluate_subexp): Likewise.
4790 (cache_symbol): Likewise.
4791 * addrmap.c (allocate_key): Likewise.
4792 (addrmap_create_mutable): Likewise.
4793 * aix-thread.c (sync_threadlists): Likewise.
4794 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
4795 (alpha_gdbarch_init): Likewise.
4796 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
4797 * arm-linux-nat.c (arm_linux_add_process): Likewise.
4798 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4799 * arm-tdep.c (push_stack_item): Likewise.
4800 (arm_displaced_step_copy_insn): Likewise.
4801 (arm_gdbarch_init): Likewise.
4802 (_initialize_arm_tdep): Likewise.
4803 * avr-tdep.c (push_stack_item): Likewise.
4804 * ax-general.c (new_agent_expr): Likewise.
4805 * block.c (block_initialize_namespace): Likewise.
4806 * breakpoint.c (alloc_counted_command_line): Likewise.
4807 (update_dprintf_command_list): Likewise.
4808 (parse_breakpoint_sals): Likewise.
4809 (decode_static_tracepoint_spec): Likewise.
4810 (until_break_command): Likewise.
4811 (clear_command): Likewise.
4812 (update_global_location_list): Likewise.
4813 (get_breakpoint_objfile_data) Likewise.
4814 * btrace.c (ftrace_new_function): Likewise.
4815 (btrace_set_insn_history): Likewise.
4816 (btrace_set_call_history): Likewise.
4817 * buildsym.c (add_symbol_to_list): Likewise.
4818 (record_pending_block): Likewise.
4819 (start_subfile): Likewise.
4820 (start_buildsym_compunit): Likewise.
4821 (push_subfile): Likewise.
4822 (end_symtab_get_static_block): Likewise.
4823 (buildsym_init): Likewise.
4824 * cli/cli-cmds.c (source_command): Likewise.
4825 * cli/cli-decode.c (add_cmd): Likewise.
4826 * cli/cli-script.c (build_command_line): Likewise.
4827 (setup_user_args): Likewise.
4828 (realloc_body_list): Likewise.
4829 (process_next_line): Likewise.
4830 (copy_command_lines): Likewise.
4831 * cli/cli-setshow.c (do_set_command): Likewise.
4832 * coff-pe-read.c (read_pe_exported_syms): Likewise.
4833 * coffread.c (coff_locate_sections): Likewise.
4834 (coff_symtab_read): Likewise.
4835 (coff_read_struct_type): Likewise.
4836 * common/cleanups.c (make_my_cleanup2): Likewise.
4837 * common/common-exceptions.c (throw_it): Likewise.
4838 * common/filestuff.c (make_cleanup_close): Likewise.
4839 * common/format.c (parse_format_string): Likewise.
4840 * common/queue.h (DEFINE_QUEUE_P): Likewise.
4841 * compile/compile-object-load.c (munmap_list_add): Likewise.
4842 (compile_object_load): Likewise.
4843 * compile/compile-object-run.c (compile_object_run): Likewise.
4844 * compile/compile.c (append_args): Likewise.
4845 * corefile.c (specify_exec_file_hook): Likewise.
4846 * cp-support.c (make_symbol_overload_list): Likewise.
4847 * cris-tdep.c (push_stack_item): Likewise.
4848 (cris_gdbarch_init): Likewise.
4849 * ctf.c (ctf_trace_file_writer_new): Likewise.
4850 * dbxread.c (init_header_files): Likewise.
4851 (add_new_header_file): Likewise.
4852 (init_bincl_list): Likewise.
4853 (dbx_end_psymtab): Likewise.
4854 (start_psymtab): Likewise.
4855 (dbx_end_psymtab): Likewise.
4856 * dcache.c (dcache_init): Likewise.
4857 * dictionary.c (dict_create_hashed): Likewise.
4858 (dict_create_hashed_expandable): Likewise.
4859 (dict_create_linear): Likewise.
4860 (dict_create_linear_expandable): Likewise.
4861 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
4862 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
4863 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
4864 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4865 (decode_frame_entry_1): Likewise.
4866 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
4867 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4868 * dwarf2read.c (dwarf2_has_info): Likewise.
4869 (create_signatured_type_table_from_index): Likewise.
4870 (dwarf2_read_index): Likewise.
4871 (dw2_get_file_names_reader): Likewise.
4872 (create_all_type_units): Likewise.
4873 (read_cutu_die_from_dwo): Likewise.
4874 (init_tu_and_read_dwo_dies): Likewise.
4875 (init_cutu_and_read_dies): Likewise.
4876 (create_all_comp_units): Likewise.
4877 (queue_comp_unit): Likewise.
4878 (inherit_abstract_dies): Likewise.
4879 (read_call_site_scope): Likewise.
4880 (dwarf2_add_field): Likewise.
4881 (dwarf2_add_typedef): Likewise.
4882 (dwarf2_add_member_fn): Likewise.
4883 (attr_to_dynamic_prop): Likewise.
4884 (abbrev_table_alloc_abbrev): Likewise.
4885 (abbrev_table_read_table): Likewise.
4886 (add_include_dir): Likewise.
4887 (add_file_name): Likewise.
4888 (dwarf_decode_line_header): Likewise.
4889 (dwarf2_const_value_attr): Likewise.
4890 (dwarf_alloc_block): Likewise.
4891 (parse_macro_definition): Likewise.
4892 (set_die_type): Likewise.
4893 (write_psymtabs_to_index): Likewise.
4894 (create_cus_from_index): Likewise.
4895 (dwarf2_create_include_psymtab): Likewise.
4896 (process_psymtab_comp_unit_reader): Likewise.
4897 (build_type_psymtab_dependencies): Likewise.
4898 (read_comp_units_from_section): Likewise.
4899 (compute_compunit_symtab_includes): Likewise.
4900 (create_dwo_unit_in_dwp_v1): Likewise.
4901 (create_dwo_unit_in_dwp_v2): Likewise.
4902 (read_func_scope): Likewise.
4903 (process_structure_scope): Likewise.
4904 (mark_common_block_symbol_computed): Likewise.
4905 (load_partial_dies): Likewise.
4906 (dwarf2_symbol_mark_computed): Likewise.
4907 * elfread.c (elf_symfile_segments): Likewise.
4908 (elf_read_minimal_symbols): Likewise.
4909 * environ.c (make_environ): Likewise.
4910 * eval.c (evaluate_subexp_standard): Likewise.
4911 * event-loop.c (create_file_handler): Likewise.
4912 (create_async_signal_handler): Likewise.
4913 (create_async_event_handler): Likewise.
4914 (create_timer): Likewise.
4915 * exec.c (build_section_table): Likewise.
4916 * fbsd-nat.c (fbsd_remember_child): Likewise.
4917 * fork-child.c (fork_inferior): Likewise.
4918 * frv-tdep.c (new_variant): Likewise.
4919 * gdbarch.sh (gdbarch_alloc): Likewise.
4920 (append_name): Likewise.
4921 * gdbtypes.c (rank_function): Likewise.
4922 (copy_type_recursive): Likewise.
4923 (add_dyn_prop): Likewise.
4924 * gnu-nat.c (make_proc): Likewise.
4925 (make_inf): Likewise.
4926 (gnu_write_inferior): Likewise.
4927 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4928 (build_std_type_info_type): Likewise.
4929 * guile/scm-param.c (compute_enum_list): Likewise.
4930 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
4931 * guile/scm-value.c (gdbscm_value_call): Likewise.
4932 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4933 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4934 (read_unwind_info): Likewise.
4935 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4936 * infcall.c (dummy_frame_context_saver_setup): Likewise.
4937 (call_function_by_hand_dummy): Likewise.
4938 * infcmd.c (step_once): Likewise.
4939 (finish_forward): Likewise.
4940 (attach_command): Likewise.
4941 (notice_new_inferior): Likewise.
4942 * inferior.c (add_inferior_silent): Likewise.
4943 * infrun.c (add_displaced_stepping_state): Likewise.
4944 (save_infcall_control_state): Likewise.
4945 (save_inferior_ptid): Likewise.
4946 (_initialize_infrun): Likewise.
4947 * jit.c (bfd_open_from_target_memory): Likewise.
4948 (jit_gdbarch_data_init): Likewise.
4949 * language.c (add_language): Likewise.
4950 * linespec.c (decode_line_2): Likewise.
4951 * linux-nat.c (add_to_pid_list): Likewise.
4952 (add_initial_lwp): Likewise.
4953 * linux-thread-db.c (add_thread_db_info): Likewise.
4954 (record_thread): Likewise.
4955 (info_auto_load_libthread_db): Likewise.
4956 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
4957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4958 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4959 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
4960 * macrocmd.c (macro_define_command): Likewise.
4961 * macroexp.c (gather_arguments): Likewise.
4962 * macroscope.c (sal_macro_scope): Likewise.
4963 * macrotab.c (new_macro_table): Likewise.
4964 * mdebugread.c (push_parse_stack): Likewise.
4965 (parse_partial_symbols): Likewise.
4966 (parse_symbol): Likewise.
4967 (psymtab_to_symtab_1): Likewise.
4968 (new_block): Likewise.
4969 (new_psymtab): Likewise.
4970 (mdebug_build_psymtabs): Likewise.
4971 (add_pending): Likewise.
4972 (elfmdebug_build_psymtabs): Likewise.
4973 * mep-tdep.c (mep_gdbarch_init): Likewise.
4974 * mi/mi-main.c (mi_execute_command): Likewise.
4975 * mi/mi-parse.c (mi_parse_argv): Likewise.
4976 * minidebug.c (lzma_open): Likewise.
4977 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4978 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
4979 * mips-tdep.c (mips_gdbarch_init): Likewise.
4980 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4981 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
4982 * mt-tdep.c (mt_registers_info): Likewise.
4983 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
4984 * nat/linux-btrace.c (linux_enable_bts): Likewise.
4985 (linux_enable_pt): Likewise.
4986 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
4987 (linux_xfer_osdata_processgroups): Likewise.
4988 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
4989 * nto-procfs.c (procfs_meminfo): Likewise.
4990 * objc-lang.c (start_msglist): Likewise.
4991 (selectors_info): Likewise.
4992 (classes_info): Likewise.
4993 (find_methods): Likewise.
4994 * objfiles.c (allocate_objfile): Likewise.
4995 (update_section_map): Likewise.
4996 * osabi.c (gdbarch_register_osabi): Likewise.
4997 (gdbarch_register_osabi_sniffer): Likewise.
4998 * parse.c (start_arglist): Likewise.
4999 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
5000 (hwdebug_insert_point): Likewise.
5001 * printcmd.c (display_command): Likewise.
5002 (ui_printf): Likewise.
5003 * procfs.c (create_procinfo): Likewise.
5004 (load_syscalls): Likewise.
5005 (proc_get_LDT_entry): Likewise.
5006 (proc_update_threads): Likewise.
5007 * prologue-value.c (make_pv_area): Likewise.
5008 (pv_area_store): Likewise.
5009 * psymtab.c (extend_psymbol_list): Likewise.
5010 (init_psymbol_list): Likewise.
5011 (allocate_psymtab): Likewise.
5012 * python/py-inferior.c (add_thread_object): Likewise.
5013 * python/py-param.c (compute_enum_values): Likewise.
5014 * python/py-value.c (valpy_call): Likewise.
5015 * python/py-varobj.c (py_varobj_iter_next): Likewise.
5016 * python/python.c (ensure_python_env): Likewise.
5017 * record-btrace.c (record_btrace_start_replaying): Likewise.
5018 * record-full.c (record_full_reg_alloc): Likewise.
5019 (record_full_mem_alloc): Likewise.
5020 (record_full_end_alloc): Likewise.
5021 (record_full_core_xfer_partial): Likewise.
5022 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
5023 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
5024 * remote-notif.c (remote_notif_state_allocate): Likewise.
5025 * remote.c (demand_private_info): Likewise.
5026 (remote_notif_stop_alloc_reply): Likewise.
5027 (remote_enable_btrace): Likewise.
5028 * reverse.c (save_bookmark_command): Likewise.
5029 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5030 * rx-tdep.c (rx_gdbarch_init): Likewise.
5031 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5032 * ser-go32.c (dos_get_tty_state): Likewise.
5033 (dos_copy_tty_state): Likewise.
5034 * ser-mingw.c (ser_windows_open): Likewise.
5035 (ser_console_wait_handle): Likewise.
5036 (ser_console_get_tty_state): Likewise.
5037 (make_pipe_state): Likewise.
5038 (net_windows_open): Likewise.
5039 * ser-unix.c (hardwire_get_tty_state): Likewise.
5040 (hardwire_copy_tty_state): Likewise.
5041 * solib-aix.c (solib_aix_new_lm_info): Likewise.
5042 * solib-dsbt.c (dsbt_current_sos): Likewise.
5043 (dsbt_relocate_main_executable): Likewise.
5044 * solib-frv.c (frv_current_sos): Likewise.
5045 (frv_relocate_main_executable): Likewise.
5046 * solib-spu.c (spu_bfd_fopen): Likewise.
5047 * solib-svr4.c (lm_info_read): Likewise.
5048 (svr4_copy_library_list): Likewise.
5049 (svr4_default_sos): Likewise.
5050 * source.c (find_source_lines): Likewise.
5051 (line_info): Likewise.
5052 (add_substitute_path_rule): Likewise.
5053 * spu-linux-nat.c (spu_bfd_open): Likewise.
5054 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
5055 * stabsread.c (dbx_lookup_type): Likewise.
5056 (read_type): Likewise.
5057 (read_member_functions): Likewise.
5058 (read_struct_fields): Likewise.
5059 (read_baseclasses): Likewise.
5060 (read_args): Likewise.
5061 (_initialize_stabsread): Likewise.
5062 * stack.c (func_command): Likewise.
5063 * stap-probe.c (handle_stap_probe): Likewise.
5064 * symfile.c (addrs_section_sort): Likewise.
5065 (addr_info_make_relative): Likewise.
5066 (load_section_callback): Likewise.
5067 (add_symbol_file_command): Likewise.
5068 (init_filename_language_table): Likewise.
5069 * symtab.c (create_filename_seen_cache): Likewise.
5070 (sort_search_symbols_remove_dups): Likewise.
5071 (search_symbols): Likewise.
5072 * target.c (make_cleanup_restore_target_terminal): Likewise.
5073 * thread.c (new_thread): Likewise.
5074 (enable_thread_stack_temporaries): Likewise.
5075 (make_cleanup_restore_current_thread): Likewise.
5076 (thread_apply_all_command): Likewise.
5077 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
5078 * top.c (gdb_readline_wrapper): Likewise.
5079 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
5080 * tracepoint.c (trace_find_line_command): Likewise.
5081 (all_tracepoint_actions_and_cleanup): Likewise.
5082 (make_cleanup_restore_current_traceframe): Likewise.
5083 (get_uploaded_tp): Likewise.
5084 (get_uploaded_tsv): Likewise.
5085 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
5086 (tui_alloc_win_info): Likewise.
5087 (tui_alloc_content): Likewise.
5088 (tui_add_content_elements): Likewise.
5089 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
5090 (tui_set_disassem_content): Likewise.
5091 * ui-file.c (ui_file_new): Likewise.
5092 (stdio_file_new): Likewise.
5093 (tee_file_new): Likewise.
5094 * utils.c (make_cleanup_restore_integer): Likewise.
5095 (add_internal_problem_command): Likewise.
5096 * v850-tdep.c (v850_gdbarch_init): Likewise.
5097 * valops.c (find_oload_champ): Likewise.
5098 * value.c (allocate_value_lazy): Likewise.
5099 (record_latest_value): Likewise.
5100 (create_internalvar): Likewise.
5101 * varobj.c (install_variable): Likewise.
5102 (new_variable): Likewise.
5103 (new_root_variable): Likewise.
5104 (cppush): Likewise.
5105 (_initialize_varobj): Likewise.
5106 * windows-nat.c (windows_make_so): Likewise.
5107 * x86-nat.c (x86_add_process): Likewise.
5108 * xcoffread.c (arrange_linetable): Likewise.
5109 (allocate_include_entry): Likewise.
5110 (process_linenos): Likewise.
5111 (SYMBOL_DUP): Likewise.
5112 (xcoff_start_psymtab): Likewise.
5113 (xcoff_end_psymtab): Likewise.
5114 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
5115 * xtensa-tdep.c (xtensa_register_type): Likewise.
5116 * gdbarch.c: Regenerate.
5117 * gdbarch.h: Regenerate.
5118
17d8546e
DB
51192015-08-25 Don Breazeal <donb@codesourcery.com>
5120
5121 * infrun.c (follow_exec): Re-order operations for
5122 handling follow-exec-mode "new".
5123 (handle_inferior_event_1): Assign ecs->event_thread
5124 to the current thread.
5125 * remote.c (get_remote_arch_state): Add an assertion.
5126
ba49e44b
PA
51272015-08-26 Pedro Alves <palves@redhat.com>
5128
5129 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
5130
7541ab03 51312015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 5132
7541ab03 5133 PR gdb/18804
abc56d60
PA
5134 * defs.h (maybe_quit): Declare.
5135 (QUIT): Now calls maybe_quit.
5136 * event-loop.c (clear_async_signal_handler)
5137 (async_signal_handler_is_marked): New functions.
5138 * event-loop.h (async_signal_handler_is_marked)
5139 (clear_async_signal_handler): New declarations.
5140 * remote.c (remote_check_pending_interrupt): New function.
5141 (interrupt_query): Use make_cleanup_restore_target_terminal. No
5142 longer check whether the target is async. If waiting for a stop
5143 reply, and a Ctrl-C as been sent to the target, offer to
5144 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
5145 Otherwise do not disconnect and throw a quit.
5146 (_initialize_remote): Install remote_check_pending_interrupt as
5147 to_check_pending_interrupt.
5148 * target.c (target_check_pending_interrupt): New function.
5149 * target.h (struct target_ops) <to_check_pending_interrupt>: New
5150 field.
5151 (target_check_pending_interrupt): New declaration.
5152 * utils.c (maybe_quit): New function.
5153 * target-delegates.c: Regenerate.
5154
dfe7f77c
YQ
51552015-08-25 Yao Qi <yao.qi@linaro.org>
5156
5157 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
5158 Rename local variable pid to tid, and get lwpid of lwp. Update
5159 debug output.
5160
63e43d3a
PMR
51612015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
5162
5163 * ada-lang.c (ada_read_var_value): Add a var_block argument
5164 and pass it to default_read_var_value.
5165 * block.c (block_static_link): New accessor.
5166 * block.h (block_static_link): Declare it.
5167 * buildsym.c (finish_block_internal): Add a static_link
5168 argument. If there is a static link, associate it to the new
5169 block.
5170 (finish_block): Add a static link argument and pass it to
5171 finish_block_internal.
5172 (end_symtab_get_static_block): Update calls to finish_block and
5173 to finish_block_internal.
5174 (end_symtab_with_blockvector): Update call to
5175 finish_block_internal.
5176 * buildsym.h: Forward-declare struct dynamic_prop.
5177 (struct context_stack): Add a static_link field.
5178 (finish_block): Add a static link argument.
5179 * c-exp.y: Remove an obsolete comment (evaluation of variables
5180 already start from the selected frame, and now they climb *up*
5181 the call stack) and propagate the block information to the
5182 produced expression.
5183 * d-exp.y: Likewise.
5184 * f-exp.y: Likewise.
5185 * go-exp.y: Likewise.
5186 * jv-exp.y: Likewise.
5187 * m2-exp.y: Likewise.
5188 * p-exp.y: Likewise.
5189 * coffread.c (coff_symtab_read): Update calls to finish_block.
5190 * dbxread.c (process_one_symbol): Likewise.
5191 * xcoffread.c (read_xcoff_symtab): Likewise.
5192 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
5193 "sym" parameter to struct block_symbol, update its uses and pass
5194 its block to calls to read_var_value.
5195 (convert_symbol_sym): Update the calls to convert_one_symbol.
5196 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
5197 call to read_var_value.
5198 * dwarf2loc.c (block_op_get_frame_base): New.
5199 (dwarf2_block_frame_base_locexpr_funcs): Implement the
5200 get_frame_base method.
5201 (dwarf2_block_frame_base_loclist_funcs): Likewise.
5202 (dwarf2locexpr_baton_eval): Add a frame argument and use it
5203 instead of the selected frame in order to evaluate the
5204 expression.
5205 (dwarf2_evaluate_property): Add a frame argument. Update call
5206 to dwarf2_locexpr_baton_eval to provide a frame in available and
5207 to handle the absence of address stack.
5208 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
5209 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
5210 declaration.
5211 (read_func_scope): Record any available static link description.
5212 Update call to finish_block.
5213 (read_lexical_block_scope): Update call to finish_block.
5214 * findvar.c (follow_static_link): New.
5215 (get_hosting_frame): New.
5216 (default_read_var_value): Add a var_block argument. Use
5217 get_hosting_frame to handle non-local references.
5218 (read_var_value): Add a var_block argument and pass it to the
5219 LA_READ_VAR_VALUE method.
5220 * gdbtypes.c (resolve_dynamic_range): Update calls to
5221 dwarf2_evaluate_property.
5222 (resolve_dynamic_type_internal): Likewise.
5223 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
5224 read_var_value, passing it the block coming from symbol lookup.
5225 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
5226 read_var_value (TODO).
5227 * infcmd.c (finish_command_continuation): Update call to
5228 read_var_value, passing it the block coming from symbol lookup.
5229 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5230 * language.h (struct language_defn): Add a var_block argument to
5231 the LA_READ_VAR_VALUE method.
5232 * objfiles.c (struct static_link_htab_entry): New.
5233 (static_link_htab_entry_hash): New.
5234 (static_link_htab_entry_eq): New.
5235 (objfile_register_static_link): New.
5236 (objfile_lookup_static_link): New.
5237 (free_objfile): Free the STATIC_LINKS hashed map if needed.
5238 * objfiles.h: Include hashtab.h.
5239 (struct objfile): Add a static_links field.
5240 (objfile_register_static_link): New.
5241 (objfile_lookup_static_link): New.
5242 * printcmd.c (print_variable_and_value): Update call to
5243 read_var_value.
5244 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
5245 * python/py-frame.c (frapy_read_var): Update call to
5246 read_var_value, passing it the block coming from symbol lookup.
5247 * python/py-framefilter.c (extract_sym): Add a sym_block
5248 parameter and set the pointed value to NULL (TODO).
5249 (enumerate_args): Update call to extract_sym.
5250 (enumerate_locals): Update calls to extract_sym and to
5251 read_var_value.
5252 * python/py-symbol.c (sympy_value): Update call to
5253 read_var_value (TODO).
5254 * stack.c (read_frame_local): Update call to read_var_value.
5255 (read_frame_arg): Likewise.
5256 (return_command): Likewise.
5257 * symtab.h (struct symbol_block_ops): Add a get_frame_base
5258 method.
5259 (struct symbol): Add a block field.
5260 (SYMBOL_BLOCK): New accessor.
5261 * valops.c (value_of_variable): Remove frame/block handling and
5262 pass the block argument to read_var_value, which does this job
5263 now.
5264 (value_struct_elt_for_reference): Update calls to
5265 read_var_value.
5266 (value_of_this): Pass the block found to read_var_value.
5267 * value.h (read_var_value): Add a var_block argument.
5268 (default_read_var_value): Likewise.
5269
ed8b7b42
YQ
52702015-08-25 Yao Qi <yao.qi@linaro.org>
5271
5272 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
5273 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
5274 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
5275
db3cb7cb
YQ
52762015-08-25 Yao Qi <yao.qi@linaro.org>
5277
5278 * Makefile.in (aarch64-liunx.o): New rule.
5279 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
5280 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
5281 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
5282 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
5283 extern.
5284 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
5285 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
5286 * nat/aarch64-linux.c: New file.
5287 * nat/aarch64-linux.h: New file.
5288
f6011a1c
YQ
52892015-08-25 Yao Qi <yao.qi@linaro.org>
5290
5291 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
5292 lwp_arch_private_info and ptid_of_lwp.
5293
5e35436e
YQ
52942015-08-25 Yao Qi <yao.qi@linaro.org>
5295
5296 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
5297 Move it to nat/aarch64-linux-hw-point.c.
5298 (debug_reg_change_callback): Likewise.
5299 (aarch64_notify_debug_reg_change): :Likewise.
5300 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
5301 (aarch64_dr_update_callback_param): New.
5302 (debug_reg_change_callback): New function.
5303 (aarch64_notify_debug_reg_change): Likewise.
5304 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
5305 Remove the declaration.
5306
4a8a7965
YQ
53072015-08-25 Yao Qi <yao.qi@linaro.org>
5308
5309 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
5310 Call current_lwp_ptid.
5311
32a271ee
YQ
53122015-08-25 Yao Qi <yao.qi@linaro.org>
5313
5314 * aarch64-linux-nat.c (debug_reg_change_callback): Use
5315 debug_printf.
5316
5e137137
YQ
53172015-08-25 Yao Qi <yao.qi@linaro.org>
5318
5319 * aarch64-linux-nat.c (debug_reg_change_callback): Call
5320 ptid_get_pid rather than ptid_get_lwp.
5321
73b8c1fd
PA
53222015-08-24 Pedro Alves <palves@redhat.com>
5323
5324 * NEWS (New commands): Mention set/show remote
5325 multiprocess-extensions-packet.
5326 * remote.c (remote_query_supported): Only tell the server to use
5327 the multiprocess extensions if the user hasn't force-disabled them
5328 with "set remote multiprocess-extensions-packet off".
5329
4a626d0a
PA
53302015-08-24 Pedro Alves <palves@redhat.com>
5331
5332 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
5333 1029a8112290f6eee9d7878a391c49db42c999bd.
5334 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
5335 Regenerate.
5336 * gnulib/import/Makefile.am: Update.
5337 * gnulib/import/Makefile.in: Update.
5338 * gnulib/import/alloca.in.h: Update.
5339 * gnulib/import/basename-lgpl.c: Update.
5340 * gnulib/import/canonicalize-lgpl.c: Update.
5341 * gnulib/import/config.charset: Update.
5342 * gnulib/import/dirent.in.h: Update.
5343 * gnulib/import/dirfd.c: Update.
5344 * gnulib/import/dirname-lgpl.c: Update.
5345 * gnulib/import/dirname.h: Update.
5346 * gnulib/import/dosname.h: Update.
5347 * gnulib/import/errno.in.h: Update.
5348 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
5349 * gnulib/import/extra/snippet/c++defs.h: Update.
5350 * gnulib/import/extra/snippet/warn-on-use.h: Update.
5351 * gnulib/import/extra/update-copyright: Update.
5352 * gnulib/import/float+.h: Update.
5353 * gnulib/import/float.c: Update.
5354 * gnulib/import/float.in.h: Update.
5355 * gnulib/import/fnmatch.c: Update.
5356 * gnulib/import/fnmatch.in.h: Update.
5357 * gnulib/import/fnmatch_loop.c: Update.
5358 * gnulib/import/fpucw.h: Update.
5359 * gnulib/import/frexp.c: Update.
5360 * gnulib/import/frexpl.c: Update.
5361 * gnulib/import/gettimeofday.c: Update.
5362 * gnulib/import/inttypes.in.h: Update.
5363 * gnulib/import/isnan.c: Update.
5364 * gnulib/import/isnand-nolibm.h: Update.
5365 * gnulib/import/isnand.c: Update.
5366 * gnulib/import/isnanl-nolibm.h: Update.
5367 * gnulib/import/isnanl.c: Update.
5368 * gnulib/import/itold.c: Update.
5369 * gnulib/import/localcharset.c: Update.
5370 * gnulib/import/localcharset.h: Update.
5371 * gnulib/import/lstat.c: Update.
5372 * gnulib/import/m4/00gnulib.m4: Update.
5373 * gnulib/import/m4/absolute-header.m4: Update.
5374 * gnulib/import/m4/alloca.m4: Update.
5375 * gnulib/import/m4/canonicalize.m4: Update.
5376 * gnulib/import/m4/codeset.m4: Update.
5377 * gnulib/import/m4/configmake.m4: Update.
5378 * gnulib/import/m4/dirent_h.m4: Update.
5379 * gnulib/import/m4/dirfd.m4: Update.
5380 * gnulib/import/m4/dirname.m4: Update.
5381 * gnulib/import/m4/double-slash-root.m4: Update.
5382 * gnulib/import/m4/eealloc.m4: Update.
5383 * gnulib/import/m4/errno_h.m4: Update.
5384 * gnulib/import/m4/exponentd.m4: Update.
5385 * gnulib/import/m4/exponentl.m4: Update.
5386 * gnulib/import/m4/extensions.m4: Update.
5387 * gnulib/import/m4/extern-inline.m4: Update.
5388 * gnulib/import/m4/fcntl-o.m4: Update.
5389 * gnulib/import/m4/float_h.m4: Update.
5390 * gnulib/import/m4/fnmatch.m4: Update.
5391 * gnulib/import/m4/fpieee.m4: Update.
5392 * gnulib/import/m4/frexp.m4: Update.
5393 * gnulib/import/m4/frexpl.m4: Update.
5394 * gnulib/import/m4/gettimeofday.m4: Update.
5395 * gnulib/import/m4/glibc21.m4: Update.
5396 * gnulib/import/m4/gnulib-cache.m4: Update.
5397 * gnulib/import/m4/gnulib-common.m4: Update.
5398 * gnulib/import/m4/gnulib-comp.m4: Update.
5399 * gnulib/import/m4/gnulib-tool.m4: Update.
5400 * gnulib/import/m4/include_next.m4: Update.
5401 * gnulib/import/m4/inttypes-pri.m4: Update.
5402 * gnulib/import/m4/inttypes.m4: Update.
5403 * gnulib/import/m4/isnand.m4: Update.
5404 * gnulib/import/m4/isnanl.m4: Update.
5405 * gnulib/import/m4/largefile.m4: Update.
5406 * gnulib/import/m4/localcharset.m4: Update.
5407 * gnulib/import/m4/locale-fr.m4: Update.
5408 * gnulib/import/m4/locale-ja.m4: Update.
5409 * gnulib/import/m4/locale-zh.m4: Update.
5410 * gnulib/import/m4/longlong.m4: Update.
5411 * gnulib/import/m4/lstat.m4: Update.
5412 * gnulib/import/m4/malloc.m4: Update.
5413 * gnulib/import/m4/malloca.m4: Update.
5414 * gnulib/import/m4/math_h.m4: Update.
5415 * gnulib/import/m4/mbrtowc.m4: Update.
5416 * gnulib/import/m4/mbsinit.m4: Update.
5417 * gnulib/import/m4/mbsrtowcs.m4: Update.
5418 * gnulib/import/m4/mbstate_t.m4: Update.
5419 * gnulib/import/m4/memchr.m4: Update.
5420 * gnulib/import/m4/memmem.m4: Update.
5421 * gnulib/import/m4/mmap-anon.m4: Update.
5422 * gnulib/import/m4/multiarch.m4: Update.
5423 * gnulib/import/m4/nocrash.m4: Update.
5424 * gnulib/import/m4/off_t.m4: Update.
5425 * gnulib/import/m4/pathmax.m4: Update.
5426 * gnulib/import/m4/readlink.m4: Update.
5427 * gnulib/import/m4/rename.m4: Update.
5428 * gnulib/import/m4/rmdir.m4: Update.
5429 * gnulib/import/m4/ssize_t.m4: Update.
5430 * gnulib/import/m4/stat.m4: Update.
5431 * gnulib/import/m4/stdbool.m4: Update.
5432 * gnulib/import/m4/stddef_h.m4: Update.
5433 * gnulib/import/m4/stdint.m4: Update.
5434 * gnulib/import/m4/stdio_h.m4: Update.
5435 * gnulib/import/m4/stdlib_h.m4: Update.
5436 * gnulib/import/m4/string_h.m4: Update.
5437 * gnulib/import/m4/strstr.m4: Update.
5438 * gnulib/import/m4/strtok_r.m4: Update.
5439 * gnulib/import/m4/sys_socket_h.m4: Update.
5440 * gnulib/import/m4/sys_stat_h.m4: Update.
5441 * gnulib/import/m4/sys_time_h.m4: Update.
5442 * gnulib/import/m4/sys_types_h.m4: Update.
5443 * gnulib/import/m4/time_h.m4: Update.
5444 * gnulib/import/m4/unistd_h.m4: Update.
5445 * gnulib/import/m4/warn-on-use.m4: Update.
5446 * gnulib/import/m4/wchar_h.m4: Update.
5447 * gnulib/import/m4/wchar_t.m4: Update.
5448 * gnulib/import/m4/wctype_h.m4: Update.
5449 * gnulib/import/m4/wint_t.m4: Update.
5450 * gnulib/import/malloc.c: Update.
5451 * gnulib/import/malloca.c: Update.
5452 * gnulib/import/malloca.h: Update.
5453 * gnulib/import/math.in.h: Update.
5454 * gnulib/import/mbrtowc.c: Update.
5455 * gnulib/import/mbsinit.c: Update.
5456 * gnulib/import/mbsrtowcs-impl.h: Update.
5457 * gnulib/import/mbsrtowcs-state.c: Update.
5458 * gnulib/import/mbsrtowcs.c: Update.
5459 * gnulib/import/memchr.c: Update.
5460 * gnulib/import/memmem.c: Update.
5461 * gnulib/import/pathmax.h: Update.
5462 * gnulib/import/readlink.c: Update.
5463 * gnulib/import/ref-add.sin: Update.
5464 * gnulib/import/ref-del.sin: Update.
5465 * gnulib/import/rename.c: Update.
5466 * gnulib/import/rmdir.c: Update.
5467 * gnulib/import/same-inode.h: Update.
5468 * gnulib/import/stat.c: Update.
5469 * gnulib/import/stdbool.in.h: Update.
5470 * gnulib/import/stddef.in.h: Update.
5471 * gnulib/import/stdint.in.h: Update.
5472 * gnulib/import/stdio.c: Update.
5473 * gnulib/import/stdio.in.h: Update.
5474 * gnulib/import/stdlib.in.h: Update.
5475 * gnulib/import/str-two-way.h: Update.
5476 * gnulib/import/streq.h: Update.
5477 * gnulib/import/string.in.h: Update.
5478 * gnulib/import/stripslash.c: Update.
5479 * gnulib/import/strnlen1.c: Update.
5480 * gnulib/import/strnlen1.h: Update.
5481 * gnulib/import/strstr.c: Update.
5482 * gnulib/import/strtok_r.c: Update.
5483 * gnulib/import/sys_stat.in.h: Update.
5484 * gnulib/import/sys_time.in.h: Update.
5485 * gnulib/import/sys_types.in.h: Update.
5486 * gnulib/import/time.in.h: Update.
5487 * gnulib/import/unistd.in.h: Update.
5488 * gnulib/import/verify.h: Update.
5489 * gnulib/import/wchar.in.h: Update.
5490 * gnulib/import/wctype.in.h: Update.
5491 * gnulib/import/gettimeofday.c: New file.
5492 * gnulib/import/m4/absolute-header.m4: New file.
5493 * gnulib/import/m4/gettimeofday.m4: New file.
5494 * gnulib/import/m4/sys_socket_h.m4: New file.
5495 * gnulib/import/m4/sys_time_h.m4: New file.
5496 * gnulib/import/stdio.c: Delete file.
5497 * gnulib/import/sys_time.in.h: New file.
5498
438e1e42
PA
54992015-08-24 Pedro Alves <palves@redhat.com>
5500
5501 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
5502 * common/gdb_sys_time.h: New file.
5503 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
5504 * gdb_select.h: Likewise.
5505 * gdb_usleep.c: Likewise.
5506 * maint.c: Likewise.
5507 * mi/mi-main.c: Likewise.
5508 * mi/mi-parse.h: Likewise.
5509 * remote-fileio.c: Likewise.
5510 * remote-m32r-sdi.c: Likewise.
5511 * remote.c: Likewise.
5512 * ser-base.c: Likewise.
5513 * ser-pipe.c: Likewise.
5514 * ser-tcp.c: Likewise.
5515 * ser-unix.c: Likewise.
5516 * symfile.c: Likewise.
5517 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
5518 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
5519 * utils.c: Likewise.
5520
40e0b271
PA
55212015-08-24 Pedro Alves <palves@redhat.com>
5522
5523 * NEWS: Mention removed support for the various ROM monitors.
5524 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
5525 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
5526 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
5527 gdb_target_obs.
5528 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
5529 gdb_target_obs.
5530 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
5531 dsrec.o from gdb_target_obs.
5532 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
5533 from gdb_target_obs.
5534 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
5535 gdb_target_obs.
5536 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
5537 dink32-rom.o from gdb_target_obs.
5538 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
5539 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
5540 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
5541 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
5542
f8904751
PA
55432015-08-21 Pedro Alves <palves@redhat.com>
5544
5545 * frame.c (null_frame_id): Explicitly zero-initialize.
5546
049412e3
TT
55472015-08-21 Tom Tromey <tromey@redhat.com>
5548
5549 * dwarf2read.c (struct dwarf2_section_info): Rename field
5550 'asection' to 'section'.
5551 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
5552 (dwarf2_locate_sections, dwarf2_locate_sections)
5553 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
5554 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
5555 (dwarf2_locate_v2_dwp_sections): Adjust.
5556
948578a9
PP
55572015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5558
5559 * top.h (gdb_in_secondary_prompt_p): Declare.
5560 * top.c (gdb_secondary_prompt_depth): Define.
5561 (gdb_in_secondary_prompt_p): Define.
5562 (gdb_readline_wrapper_cleanup): Decrement
5563 gdb_secondary_prompt_depth.
5564 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
5565 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
5566 are in a secondary prompt.
5567
7a8bcb88
PP
55682015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5569
5570 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
5571 emit the newline.
5572
2d7711a3
GB
55732015-08-21 Gary Benson <gbenson@redhat.com>
5574
5575 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
5576
4313b8c0
GB
55772015-08-21 Gary Benson <gbenson@redhat.com>
5578
5579 * target.h (struct target_ops) <to_fileio_open>: New argument
5580 warn_if_slow. Update comment. All implementations updated.
5581 (target_fileio_open_warn_if_slow): New declaration.
5582 * target.c (target_fileio_open): Renamed as...
5583 (target_fileio_open_1): ...this. New argument warn_if_slow.
5584 Pass warn_if_slow to implementation. Update debug printing.
5585 (target_fileio_open): New function.
5586 (target_fileio_open_warn_if_slow): Likewise.
5587 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
5588 target_fileio_open_warn_if_slow.
5589
f36b8719
GB
55902015-08-21 Gary Benson <gbenson@redhat.com>
5591
5592 * nat/linux-namespaces.c (linux_mntns_access_fs):
5593 Do not overwrite old_chain.
5594
40045d91
MF
55952015-08-20 Max Filippov <jcmvbkbc@gmail.com>
5596
5597 * arch/xtensa.h: New file.
5598 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
5599 (ps_get_thread_area): New function.
5600 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
5601 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
5602 * xtensa-tdep.c (osabi.h): New #include.
5603 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
5604 xtensa-specific hooks.
5605 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
5606 member and move the structure to arch/xtensa.h.
5607
80152258
PA
56082015-08-21 Pedro Alves <palves@redhat.com>
5609
5610 * remote.c (struct readahead_cache): New.
5611 (struct remote_state) <readahead_cache>: New field.
5612 (remote_open_1): Invalidate the cache.
5613 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
5614 functions.
5615 (remote_hostio_pwrite): Invalidate the readahead cache.
5616 (remote_hostio_pread): Rename to ...
5617 (remote_hostio_pread_vFile): ... this.
5618 (remote_hostio_pread_from_cache): New function.
5619 (remote_hostio_pread): Reimplement.
5620 (remote_hostio_close): Invalidate the readahead cache.
5621
88fc5eb7
MC
56222015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
5623
5624 PR build/18843
5625 * procfs.c: Include "filestuff.h".
5626
6f1cb6ea
PP
56272015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5628
5629 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
5630 curch.
5631 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
5632 cur_line or curch, instead call wmove().
5633 (init_win_info) [CMD_WIN]: Likewise.
5634 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
5635 instead call getcury().
5636 (tui_redisplay_readline): Don't set cur_line or curch.
5637 (tui_mld_erase_entire_line): Don't read cur_line, instead call
5638 getcury().
5639 (tui_cont_sig): Remove call to wmove.
5640 (tui_getc): Don't read cur_line or curch, instead call getcury()
5641 or getyx(). Don't set curch.
5642 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
5643 set cur_line or curch. Always move cursor to (0,0).
5644
221e1a37
PA
56452015-08-20 Pedro Alves <palves@redhat.com>
5646
5647 * infrun.c (print_target_wait_results): Make extern.
5648 * infrun.h (print_target_wait_results): Declare.
5649 * remote.c (set_stop_requested_callback): Delete.
5650 (process_initial_stop_replies): New function.
5651 (remote_start_remote): Use it.
5652 (stop_reply_queue_length): New function.
5653
40e3ad0e
PA
56542015-08-20 Pedro Alves <palves@redhat.com>
5655
5656 * dwarf2read.c (process_full_comp_unit): To tell whether
5657 start_subfile managed to deduce a language, test for
5658 language_unknown instead of language_c.
5659
af39b327
PMR
56602015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
5661
5662 * ada-lex.l: Reset the start condition to INITIAL in the rule that
5663 matches attributes.
5664
7d45c7c3
KB
56652015-08-19 Kevin Buettner <kevinb@redhat.com>
5666
5667 * dwarf2read.c (dwarf2_string_attr): New function.
5668 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
5669 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
5670 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
5671 (anonymous_struct_prefix, prepare_one_comp_unit): Use
5672 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
5673
4d6cceb4
DE
56742015-08-18 Doug Evans <dje@google.com>
5675 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5676
5677 PR mi/18833
5678 * cli/cli-logging.c (pop_output_files): Don't restore redirection
5679 if MI-like.
5680 * mi/mi-out.c: #include "vec.h".
5681 (ui_filep): New type.
5682 (DEV_VEC_P (ui_filep)): New type.
5683 (struct ui_out_data) <buffer, original_buffer>: Delete.
5684 (struct ui_out_data) <streams>: New member.
5685 (mi_ui_out_impl): Add data_destroy field.
5686 (mi_field_string, mi_field_fmt): Update.
5687 (mi_flush, mi_redirect, field_separator): Update.
5688 (mi_open, mi_close): Update.
5689 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
5690 (mi_out_data_ctor, mi_out_data_dtor): New functions.
5691 (mi_out_new): Call mi_out_data_ctor.
5692
26d56a93
SL
56932015-08-18 Sandra Loosemore <sandra@codesourcery.com>
5694
5695 * remote.c (strprefix): New.
5696 (remote_parse_stop_reply): Use strprefix instead of strncmp
5697 to ensure exact match of keyword.
5698
566f5e3b
AB
56992015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5700
5701 * gdb_bfd.c (debug_bfd_cache): New variable.
5702 (show_bfd_cache_debug): New function.
5703 (gdb_bfd_open): Add debug logging.
5704 (gdb_bfd_ref): Likewise.
5705 (gdb_bfd_unref): Likewise.
5706 (_initialize_gdb_bfd): Add new set/show command.
5707 * NEWS: Mention new command.
5708
18989b3c
AB
57092015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5710
5711 * gdb_bfd.c (bfd_sharing): New variable.
5712 (show_bfd_sharing): New function.
5713 (gdb_bfd_open): Check bfd_sharing variable.
5714 (_initialize_gdb_bfd): Add new set/show command.
5715 * NEWS: Mention new command.
5716
c04fe68f
AB
57172015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5718
5719 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
5720 field.
5721 (struct gdb_bfd_cache_search): Likewise.
5722 (eq_bfd): Compare the size, inode, and device id fields.
5723 (gdb_bfd_open): Initialise the size, inode, and device id fields.
5724 (gdb_bfd_ref): Likewise.
5725 (gdb_bfd_unref): Likewise.
5726
b2a33439
PA
57272015-08-18 Pedro Alves <palves@redhat.com>
5728
5729 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
5730 target implements to_always_non_stop_p, call it.
5731 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
5732 (x86_linux_create_target): Install it as to_always_non_stop_p
5733 method.
5734
71b57e37
DE
57352015-08-17 Doug Evans <dje@google.com>
5736
5737 * ui-out.c (default_ui_out_impl): Add comment.
5738
7f3706eb
IB
57392015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
5740
5741 * d-exp.y (type_aggregate_p): New function.
5742 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
5743 (classify_inner_name): Likewise.
5744 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
5745
1762568f
DE
57462015-08-15 Doug Evans <xdje42@gmail.com>
5747
5748 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
5749 updated.
5750 (add_psymbol_to_list): Ditto.
5751
8763cede
DE
57522015-08-15 Doug Evans <xdje42@gmail.com>
5753
5754 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
5755 updated. Call end_psymtab_common.
5756 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
5757 end_psymtab_common.
5758 (build_type_psymtabs_reader): Ditto.
5759 * psympriv.h (sort_pst_symbols): Delete.
5760 (end_psymtab_common): Declare.
5761 * psymtab.c (sort_pst_symbols): Make static.
5762 (end_psymtab_common): New function.
5763 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
5764
51cdc993
DE
57652015-08-15 Doug Evans <xdje42@gmail.com>
5766
5767 * defs.h (LANGUAGE_BITS): Define.
5768 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
5769 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
5770 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
5771 (minimal_symbol_type): Add nr_minsym_types.
5772 (MINSYM_TYPE_BITS): Define.
5773 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
5774 (domain_enum_tag): Add NR_DOMAINS.
5775 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
5776 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
5777
95cf5869
DE
57782015-08-15 Doug Evans <xdje42@gmail.com>
5779
5780 * objfiles.h: Whitespace cleanup.
5781 * psympriv.h: Whitespace cleanup.
5782 * psymtab.c: Whitespace/coding convention cleanup.
5783
e3ae3c43
PP
57842015-08-15 Patrick Palka <patrick@parcs.ath.cx>
5785
5786 * inferior.c (detach_inferior_command): Don't call
5787 any_thread_of_process when pid is 0.
5788 (kill_inferior_command): Likewise.
5789
6ff0ba5f
DE
57902015-08-14 Doug Evans <xdje42@gmail.com>
5791
5792 PR gdb/11833
5793 * NEWS: Document new /s modifier for the disassemble command.
5794 * cli/cli-cmds.c (disassemble_command): Add support for /s.
5795 (_initialize_cli_cmds): Update online docs of disassemble command.
5796 * disasm.c: #include "source.h".
5797 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
5798 All uses updated.
5799 (dis_line_entry): New struct.
5800 (hash_dis_line_entry, eq_dis_line_entry): New functions.
5801 (allocate_dis_line_table): New functions.
5802 (maybe_add_dis_line_entry, line_has_code_p): New functions.
5803 (dump_insns): New arg end_pc. All callers updated.
5804 (do_mixed_source_and_assembly_deprecated): Renamed from
5805 do_mixed_source_and_assembly. All callers updated.
5806 (do_mixed_source_and_assembly): New function.
5807 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
5808 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
5809 DISASSEMBLY_SOURCE. All uses updated.
5810 (DISASSEMBLY_SOURCE): New macro.
5811 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
5812
b56ccc20
KS
58132015-08-14 Keith Seitz <keiths@redhat.com>
5814
5815 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
5816 `typename' to `type_name' to avoid C++ reserved word.
5817
ebdad8fc
KS
58182015-08-14 Keith Seitz <keiths@redhat.com>
5819
5820 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
5821 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
5822 silence ARI errors.
5823
c0fe2ae7
IB
58242015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
5825
5826 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
5827 xstrprintf instead of malloc and sprintf.
5828 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
5829 (lex_one_token): Likewise.
5830
a738da3a
MF
58312015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5832
5833 * solib-svr4.c (read_program_header): Add base_addr argument to
5834 report the runtime address of the segment.
5835 (find_program_interpreter): Update read_program_header call to pass
5836 a NULL pointer for the new argument.
5837 (scan_dyntag): Add ptr_addr argument to report the runtime address
5838 of the tag payload.
5839 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
5840 read_program_header to get the base address of the dynamic segment.
5841 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
5842 read_program_header.
5843 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
5844
f8edc4ff
MF
58452015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5846
5847 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
5848
444c1ed8
IB
58492015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5850
5851 * d-exp.y (%union): Add voidval.
5852 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
5853 name in the lexing stage.
5854 (PostfixExpression): Move symbol completion handling in grammar here
5855 from PrimaryExpression.
5856 (PrimaryExpression): Move routines to handle resolving identifier
5857 tokens in the grammar here from push_expression_name.
5858 (IdentifierExp): Remove the handling of alternating '.' and identifier
5859 tokens.
5860 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
5861 (BasicType): Remove C-style typename rules.
5862 (d_type_from_name, d_module_from_name, push_variable)
5863 (push_fieldnames, push_type_name, push_module_name)
5864 (push_expression_name): Remove.
5865 (lex_one_token): Rename from yylex. Replace pstate with par_state.
5866 (token_and_value): New type.
5867 (token_fifo, popping, name_obstack): New globals.
5868 (classify_name): New function.
5869 (classify_inner_name): Likewise.
5870 (yylex): Likewise.
5871 (d_parse): Initialize token_fifo, popping and name_obstack.
5872
bc7c9fab
IB
58732015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5874
5875 * Makefile.in (SFILES): Add d-namespace.c.
5876 (COMMON_OBS): Add d-namespace.o.
5877 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
5878 la_lookup_symbol_nonlocal callback function pointer.
5879 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
5880 (d_lookup_nested_symbol): New declaration.
5881 * d-namespace.c: New file.
5882
3207396b
PA
58832015-08-13 Pedro Alves <palves@redhat.com>
5884
5885 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
5886 cleanup after the decref cleanup, not before.
5887
5d8c3ed3
PMR
58882015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
5889
5890 * ada-lang.c: Include namespace.h
5891 (aux_add_nonlocal_symbols): Fix a function name in comment.
5892 (ada_add_block_renamings): New.
5893 (add_nonlocal_symbols): Add global renamings handling.
5894 (ada_lookup_symbol_list_worker): Move the symbol lookup part
5895 to...
5896 (ada_add_all_symbols): ... this new function.
5897 (ada_add_block_symbols): Try to match the input name against the
5898 "using directives list", perform a recursive symbol lookup on
5899 the matched declarations.
5900 * block.h (struct block): Move the_namespace to top-level as
5901 namespace_info. Remove the language_specific field.
5902 (BLOCK_NAMESPACE): Update access to the namespace_info field.
5903 * buildsym.h (using_directives): Rename into...
5904 (local_using_directives): ... this.
5905 (global_using_directives): New.
5906 (struct context_stack): Rename the using_directives field into
5907 local_using_directives.
5908 * buildsym.c (finish_block_internal): Deal with the proper
5909 using directives repository (local or global).
5910 (prepare_for_building): Reset local_using_directives. Assert
5911 that there is no pending global using directive.
5912 (reset_symtab_globals): Reset global_using_directives and
5913 local_using_directives.
5914 (end_symtab_get_static_block): Don't ignore symtabs that have
5915 only using directives.
5916 (push_context): Update references to local_using_directives.
5917 (buildsym_init): Do not reset using_directives.
5918 * cp-support.c: Include namespace.h.
5919 * cp-support.h (struct using_direct): Move to namespace.h.
5920 (cp_add_using_directives): Move to namespace.h.
5921 * cp-namespace.c: Include namespace.h
5922 (cp_add_using_directive): Move to namespace.c, rename it to
5923 add_using_directive, add a "using_directives" argument and use
5924 it as the pending using directives repository. All callers
5925 updated.
5926 * dwarf2read.c (using_directives): New.
5927 (read_import_statement): Call using_directives.
5928 (read_func_scope): Update references to local_using_directives.
5929 (read_lexical_block_scope): Likewise.
5930 (read_namespace): Update the heading comment, call
5931 using_directives.
5932 * namespace.h: New file.
5933 * namespace.c: New file.
5934 * Makefile.in (SFILES): Add namespace.c.
5935 (COMMON_OBS): Add namespace.o
5936
4dafcdeb
JB
59372015-08-12 Joel Brobecker <brobecker@adacore.com>
5938
5939 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
5940 compute RETADDR.
5941
67994074
KS
59422015-08-12 Keith Seitz <keiths@redhat.com>
5943
5944 * break-catch-throw.c (re_set_exception_catchpoint) Rename
5945 reserved C++ keyword "explicit" to "explicit_loc".
5946 * breakpoint.c (create_overlay_event_breakpoint)
5947 (create_longjmp_master_breakpoint)
5948 (create_std_terminate_master_breakpoint)
5949 (create_exception_master_breakpoint, update_static_tracepoint):
5950 Rename reserved C++ keyword "explicit" to "explicit_loc".
5951 * completer.c (collect_explicit_location_matches)
5952 (explicit_location_completer): Rename reserved C++ keyword
5953 "explicit" to "explicit_loc".
5954 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
5955 (canonicalize_linespec, create_sals_line_offset)
5956 (convert_linespec_to_sals, convert_explicit_location_to_sals)
5957 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
5958 "explicit" to "explicit_loc".
5959 * location.c (struct event_location) <explicit>: Rename to
5960 "explicit_loc".
5961 (initialize_explicit_location, new_explicit_location)
5962 (explicit_location_to_string_internal, explicit_location_to_linespec):
5963 Rename reserved C++ keyword "explicit" to "explicit_loc".
5964 * location.h (explicit_location_to_string)
5965 (explicit_location_to_linespec, initialize_explicit_location)
5966 (new_explicit_location): Rename reserved C++ keyword "explicit"
5967 to "explicit_loc".
5968 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
5969 keyword "explicit" to "explicit_loc".
5970
59ecaff3
KS
59712015-08-12 Keith Seitz <keiths@redhat.com>
5972
5973 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
5974 and only call decode_line_1 when it is non-NULL.
5975
244558af
LM
59762015-08-12 Luis Machado <lgustavo@codesourcery.com>
5977
5978 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
5979 location address is not meaningful.
5980 (breakpoint_address_is_meaningful): Update comment.
5981
629500fa
KS
59822015-08-11 Keith Seitz <keiths@redhat.com>
5983
5984 * NEWS: Mention explicit locations.
5985 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
5986 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
5987 (_initialize_breakpoint): Update documentation for
5988 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
5989
eb8c4e2e
KS
59902015-08-11 Keith Seitz <keiths@redhat.com>
5991
5992 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
5993 explicit locations, options "--source", "--function",
5994 "--label", and "--line".
5995
87f0e720
KS
59962015-08-11 Keith Seitz <keiths@redhat.com>
5997
5998 * completer.c: Include location.h.
5999 (enum match_type): New enum.
6000 (location_completer): Rename to ...
6001 (linespec_completer): ... this.
6002 (collect_explicit_location_matches, backup_text_ptr)
6003 (explicit_location_completer): New functions.
6004 (location_completer): "New" function; handle linespec
6005 and explicit location completions.
6006 (complete_line_internal): Remove all location completer-specific
6007 handling.
6008 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
6009 (find_toplevel_char): Export.
6010 (linespec_parse_line_offset): Export.
6011 Issue error if STRING is not numerical.
6012 (gdb_get_linespec_parser_quote_characters): New function.
6013 * linespec.h (linespec_parse_line_offset): Declare.
6014 (get_gdb_linespec_parser_quote_characters): Declare.
6015 (is_ada_operator): Declare.
6016 (find_toplevel_char): Declare.
6017 (linespec_lexer_lex_keyword): Declare.
6018 * location.c (explicit_to_event_location): New function.
6019 (explicit_location_lex_one): New function.
6020 (string_to_explicit_location): New function.
6021 (string_to_event_location): Handle explicit locations.
6022 * location.h (explicit_to_event_location): Declare.
6023 (string_to_explicit_location): Declare.
6024
00e52e53
KS
60252015-08-11 Keith Seitz <keiths@redhat.com>
6026
6027 * break-catch-throw.c (re_set_exception_catchpoint): Convert
6028 linespec into explicit location.
6029 * breakpoint.c (create_overlay_breakpoint)
6030 (create_longjmp_master_breakpoint)
6031 (create_std_terminate_master_breakpoint)
6032 (create_exception_master_breakpoint): Convert linespec into explicit
6033 location.
6034 (update_static_tracepoint): Convert linespec into explicit location.
6035 * linespec.c (enum offset_relative_sign, struct line_offset): Move
6036 location.h.
6037 (struct linespec) <expression, expr_pc, source_filename>
6038 <function_name, label_name, line_offset>: Replace with ...
6039 <explicit>: ... this.
6040 <is_linespec>: New member.
6041 (PARSER_EXPLICIT): New accessor macro.
6042 (undefined_label_error): New function.
6043 (source_file_not_found_error): New function.
6044 (linespec_parse_basic): The parser result is now an explicit location.
6045 Use PARSER_EXPLICIT to access it.
6046 Use undefined_label_error.
6047 (canonicalize_linespec): Convert canonical linespec into explicit
6048 location.
6049 Move string representation of location to explicit_location_to_linespec
6050 and use it and explicit_location_to_string to save string
6051 representations of the canonical location.
6052 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
6053 explicit location. Update all references.
6054 (convert_explicit_location_to_sals): New function.
6055 (parse_linespec): Use PARSER_EXPLICIT to access the parser
6056 result's explicit location.
6057 (linespec_state_constructor): Initialize is_linespec.
6058 Use PARSER_EXPLICIT.
6059 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
6060 result.
6061 (event_location_to_sals): For linespec locations, set is_linespec.
6062 Handle explicit locations.
6063 (decode_objc): 'ls' contains an explicit location now. Update all
6064 references.
6065 (symtabs_from_filename): Use source_file_not_found_error.
6066 * location.c (struct event_location.u) <explicit>: New member.
6067 (initialize_explicit_location): New function.
6068 (initialize_event_location): Initialize explicit locations.
6069 (new_explicit_location, get_explicit_location)
6070 (get_explicit_location_const): New functions.
6071 (explicit_to_string_internal): New function; most of contents moved
6072 from canonicalize_linespec.
6073 (explicit_location_to_string): New function.
6074 (explicit_location_to_linespec): New function.
6075 (copy_event_location, delete_event_location)
6076 (event_location_to_string_const, event_location_empty_p): Handle
6077 explicit locations.
6078 * location.h (enum offset_relative_sign, struct line_offset): Move
6079 here from linespec.h.
6080 (enum event_location_type): Add EXPLICIT_LOCATION.
6081 (struct explicit_location): New structure.
6082 (explicit_location_to_string): Declare.
6083 (explicit_location_to_linespec): Declare.
6084 (new_explicit_location, get_explicit_locationp
6085 (get_explicit_location_const, initialize_explicit_location): Declare.
6086
5b56227b
KS
60872015-08-11 Keith Seitz <keiths@redhat.com>
6088
6089 * break-catch-throw.c (re_set_exception_catchpoint): Convert
6090 linespec for stap probe to probe location.
6091 * breakpoint.c (create_longjmp_master_breakpoint)
6092 (create_exception_master_breakpoint): Likewise.
6093 (break_command_1): Remove local variable `arg_cp'.
6094 Check location type to set appropriate breakpoint ops methods.
6095 (trace_command): Likewise.
6096 * linespec.c (event_location_to_sals): Assert on probe locations.
6097 * location.c (EL_PROBE): Add macro definition.
6098 (new_probe_location, get_probe_location): New functions.
6099 (copy_event_location, delete_event_location, event_location_to_string)
6100 (string_to_event_location, event_location_empty_p): Handle probe
6101 locations.
6102 * location.h (enum event_location_type): Add PROBE_LOCATION.
6103 (new_probe_location, get_probe_location): Declare.
6104 * probe.c (parse_probes): Assert that LOCATION is a probe location.
6105 Convert linespec into probe location.
6106
a06efdd6
KS
61072015-08-11 Keith Seitz <keiths@redhat.com>
6108
6109 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
6110 Convert linespec to address location.
6111 * linespec.c (canonicalize_linespec): Do not handle address
6112 locations here.
6113 (convert_address_location_to_sals): New function; contents moved
6114 from ...
6115 (convert_linespc_to_sals): ... here.
6116 (parse_linespec): Remove address locations from linespec grammar.
6117 Remove handling of address locations.
6118 (linespec_lex_to_end): Remove handling of address linespecs.
6119 (event_location_to_sals): Handle ADDRESS_LOCATION.
6120 (linespec_expression_to_pc): Export.
6121 * linespec.h (linespec_expression_to_pc): Add declaration.
6122 * location.c (struct event_location.u) <address>: New member.
6123 (new_address_location, get_address_location): New functions.
6124 (copy_event_location, delete_event_location, event_location_to_string)
6125 (string_to_event_location, event_location_empty_p): Handle address
6126 locations.
6127 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
6128 (new_address_location, get_address_location): Declare.
6129 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
6130 to address location.
6131 * spu-tdep.c (spu_catch_start): Likewise.
6132
f00aae0f
KS
61332015-08-11 Keith Seitz <keiths@redhat.com>
6134
6135 * ax-gdb.c: Include location.h.
6136 (agent_command_1) Use linespec location instead of address
6137 string.
6138 * break-catch-throw.c: Include location.h.
6139 (re_set_exception_catchpoint): Use linespec locations instead
6140 of address strings.
6141 * breakpoint.c: Include location.h.
6142 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
6143 (create_std_terminate_master_breakpoint)
6144 (create_exception_master_breakpoint, update_breakpoints_after_exec):
6145 Use linespec location instead of address string.
6146 (print_breakpoint_location): Use locations and
6147 event_location_to_string.
6148 Print extra_string for pending locations for non-MI streams.
6149 (print_one_breakpoint_location): Use locations and
6150 event_location_to_string.
6151 (init_raw_breakpoint_without_location): Initialize b->location.
6152 (create_thread_event_breakpoint): Use linespec location instead of
6153 address string.
6154 (init_breakpoint_sal): Likewise.
6155 Only save extra_string if it is non-NULL and not the empty string.
6156 Use event_location_to_string instead of `addr_string'.
6157 Constify `p' and `endp'.
6158 Use skip_spaces_const/skip_space_const instead of non-const versions.
6159 Copy the location into the breakpoint.
6160 If LOCATION is NULL, save the breakpoint address as a linespec location
6161 instead of an address string.
6162 (create_breakpoint_sal): Change `addr_string' parameter to a struct
6163 event_location. All uses updated.
6164 (create_breakpoints_sal): Likewise for local variable `addr_string'.
6165 (parse_breakpoint_sals): Use locations instead of address strings.
6166 Remove check for empty linespec with conditional.
6167 Refactor.
6168 (decode_static_tracepoint_spec): Make argument const and update
6169 function.
6170 (create_breakpoint): Change `arg' to a struct event_location and
6171 rename.
6172 Remove `copy_arg' and `addr_start'.
6173 If EXTRA_STRING is empty, set it to NULL.
6174 Don't populate `canonical' for pending breakpoints.
6175 Pass `extra_string' to find_condition_and_thread.
6176 Clear `extra_string' if `rest' was NULL.
6177 Do not error with "garbage after location" if setting a dprintf
6178 breakpoint.
6179 Copy the location into the breakpoint instead of an address string.
6180 (break_command_1): Use string_to_event_location and pass this to
6181 create_breakpoint instead of an address string.
6182 Check against `arg_cp' for a probe linespec.
6183 (dprintf_command): Use string_to_event_location and pass this to
6184 create_breakpoint instead of an address string.
6185 Throw an exception if no format string was specified.
6186 (print_recreate_ranged_breakpoint): Use event_location_to_string
6187 instead of address strings.
6188 (break_range_command, until_break_command)
6189 (init_ada_exception_breakpoint): Use locations instead
6190 of address strings.
6191 (say_where): Print out extra_string for pending locations.
6192 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
6193 the breakpoint.
6194 (base_breakpoint_create_sals_from_location): Use struct event_location
6195 instead of address string.
6196 Remove `addr_start' and `copy_arg' parameters.
6197 (base_breakpoint_decode_location): Use struct event_location instead of
6198 address string.
6199 (bkpt_re_set): Use locations instead of address strings.
6200 Use event_location_empty_p to check for unset location.
6201 (bkpt_print_recreate): Use event_location_to_string instead of
6202 an address string.
6203 Print out extra_string for pending locations.
6204 (bkpt_create_sals_from_location, bkpt_decode_location)
6205 (bkpt_probe_create_sals_from_location): Use struct event_location
6206 instead of address string.
6207 (bkpt_probe_decode_location): Use struct event_location instead of
6208 address string.
6209 (tracepoint_print_recreate): Use event_location_to_string to
6210 recreate the tracepoint.
6211 (tracepoint_create_sals_from_location, tracepoint_decode_location)
6212 (tracepoint_probe_create_sals_from_location)
6213 (tracepoint_probe_decode_location): Use struct event_location
6214 instead of address string.
6215 (dprintf_print_recreate): Use event_location_to_string to recreate
6216 the dprintf.
6217 (dprintf_re_set): Remove check for valid/missing format string.
6218 (strace_marker_create_sals_from_location)
6219 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
6220 (update_static_tracepoint): Use struct event_location instead of
6221 address string.
6222 (location_to_sals): Likewise.
6223 Pass `extra_string' to find_condition_and_thread.
6224 For newly resolved pending breakpoint locations, clear the location's
6225 string representation.
6226 Assert that the breakpoint's condition string is NULL when
6227 condition_not_parsed.
6228 (breakpoint_re_set_default, create_sals_from_location_default)
6229 (decode_location_default, trace_command, ftrace_command)
6230 (strace_command, create_tracepoint_from_upload): Use locations
6231 instead of address strings.
6232 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
6233 Use struct event_location instead of address string.
6234 Update all uses.
6235 <decode_location>: Likewise.
6236 (struct breakpoint) <addr_string>: Change to struct event_location
6237 and rename `location'.
6238 <addr_string_range_end>: Change to struct event_location and rename
6239 `location_range_end'.
6240 (create_breakpoint): Use struct event_location instead of address
6241 string.
6242 * cli/cli-cmds.c: Include location.h.
6243 (edit_command, list_command): Use locations instead of address strings.
6244 * elfread.c: Include location.h.
6245 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
6246 * guile/scm-breakpoint.c: Include location.h.
6247 (bpscm_print_breakpoint_smob): Use event_location_to_string.
6248 (gdbscm_register_breakpoint): Use locations instead of address
6249 strings.
6250 * linespec.c: Include location.h.
6251 (struct ls_parser) <stream>: Change to const char *.
6252 (PARSER_STREAM): Update.
6253 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
6254 keywords must be followed by whitespace.
6255 (canonicalize_linespec): Save a linespec location into `canonical'.
6256 Save a canonical linespec into `canonical'.
6257 (parse_linespec): Change `argptr' to const char * and rename `arg'.
6258 All uses updated.
6259 Update function description.
6260 (linespec_parser_new): Initialize `parser'.
6261 Update initialization of parsing stream.
6262 (event_location_to_sals): New function.
6263 (decode_line_full): Change `argptr' to a struct event_location and
6264 rename it `location'.
6265 Use locations instead of address strings.
6266 Call event_location_to_sals instead of parse_linespec.
6267 (decode_line_1): Likewise.
6268 (decode_line_with_current_source, decode_line_with_last_displayed)
6269 Use locations instead of address strings.
6270 (decode_objc): Likewise.
6271 Change `argptr' to const char * and rename `arg'.
6272 (destroy_linespec_result): Delete the linespec result's location
6273 instead of freeing the address string.
6274 * linespec.h (struct linespec_result) <addr_string>: Change to
6275 struct event_location and rename to ...
6276 <location>: ... this.
6277 (decode_line_1, decode_line_full): Change `argptr' to struct
6278 event_location. All callers updated.
6279 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
6280 (mi_cmd_break_insert_1): Use locations instead of address strings.
6281 Throw an error if there was "garbage" at the end of the specified
6282 linespec.
6283 * probe.c: Include location.h.
6284 (parse_probes): Change `argptr' to struct event_location.
6285 Use event locations instead of address strings.
6286 * probe.h (parse_probes): Change `argptr' to struct event_location.
6287 * python/py-breakpoint.c: Include location.h.
6288 (bppy_get_location): Constify local variable `str'.
6289 Use event_location_to_string.
6290 (bppy_init): Use locations instead of address strings.
6291 * python/py-finishbreakpoint.c: Include location.h.
6292 (bpfinishpy_init): Remove local variable `addr_str'.
6293 Use locations instead of address strings.
6294 * python/python.c: Include location.h.
6295 (gdbpy_decode_line): Use locations instead of address strings.
6296 * remote.c: Include location.h.
6297 (remote_download_tracepoint): Use locations instead of address
6298 strings.
6299 * spu-tdep.c: Include location.h.
6300 (spu_catch_start): Remove local variable `buf'.
6301 Use locations instead of address strings.
6302 * tracepoint.c: Include location.h.
6303 (scope_info): Use locations instead of address strings.
6304 (encode_source_string): Constify parameter `src'.
6305 * tracepoint.h (encode_source_string): Likewise.
6306
c7c1b3e9
KS
63072015-08-11 Keith Seitz <keiths@redhat.com>
6308
6309 * Makefile.in (SFILES): Add location.c.
6310 (HFILES_NO_SRCDIR): Add location.h.
6311 (COMMON_OBS): Add location.o.
6312 * linespec.c (linespec_lex_to_end): New function.
6313 * linespec.h (linespec_lex_to_end): Declare.
6314 * location.c: New file.
6315 * location.h: New file.
6316
5f700d83
KS
63172015-08-11 Keith Seitz <keiths@redhat.com>
6318
6319 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
6320 Renamed to create_sals_from_location.
6321 <decode_linespec>: Renamed to decode_location.
6322 Update all callers.
6323 * breakpoint.c (create_sals_from_address_default): Renamed to ...
6324 (create_sals_from_location_default): ... this.
6325 (addr_string_to_sals): Renamed to ...
6326 (location_to_sals): ... this.
6327 (decode_linespec_default): Renamed to ...
6328 (decode_location_default): ... this.
6329 (base_breakpoint_create_sals_from_address): Renamed to ...
6330 (base_breakpoint_create_sals_from_location): ... this.
6331 (bkpt_create_sals_from_address): Renamed to ...
6332 (bkpt_create_sals_from_location): ... this.
6333 (bkpt_decode_linespec): Renamed to ...
6334 (bkpt_decode_location): ... this.
6335 (bkpt_probe_create_sals_from_address): Renamed to ...
6336 (bkpt_probe_create_sals_from_location): ... this.
6337 (tracepoint_create_sals_from_address): Renamed to ...
6338 (tracepoint_create_sals_from_location): ... this.
6339 (tracepoint_decode_linespec): Renamed to ...
6340 (tracepoint_decode_location): ... this.
6341 (tracepoint_probe_create_sals_from_address): Renamed to ...
6342 (tracepoint_probe_create_sals_from_location): ... this.
6343 (tracepoint_probe_decode_linespec): Renamed to ...
6344 (tracepoint_probe_decode_location): ... this.
6345 (strace_marker_create_sals_from_address): Renamed to ...
6346 (strace_marker_create_sals_from_location): ... this.
6347 (decode_linespec_default): Renamed to ...
6348 (decode_location_default): ... this.
6349
e27852be
DE
63502015-08-10 Doug Evans <dje@google.com>
6351 Keith Seitz <keiths@redhat.com>
6352
6353 PR gdb/17960
6354 * symtab.c (make_file_symbol_completion_list_1): Renamed from
6355 make_file_symbol_completion_list and made static.
6356 (make_file_symbol_completion_list): New function.
80af41e0 6357
fd7dcb94
JB
63582015-08-10 Joel Brobecker <brobecker@adacore.com>
6359
6360 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
6361 trailing new-line at end of warning message.
6362 (proceed): Add i18n marker to error messages.
6363
f12899e9
PA
63642015-08-07 Pedro Alves <palves@redhat.com>
6365
6366 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
6367
5ac21343
PA
63682015-08-07 Pedro Alves <palves@redhat.com>
6369
6370 * s390-linux-tdep.c (is_non_branch_ril)
6371 (s390_displaced_step_copy_insn): New functions.
6372 (s390_displaced_step_fixup): Update comment.
6373 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
6374 gdbarch_displaced_step_copy_insn hook.
6375
7f03bd92
PA
63762015-08-07 Pedro Alves <palves@redhat.com>
6377
6378 * infrun.c (displaced_step_prepare_throw): Return -1 if
6379 gdbarch_displaced_step_copy_insn returns NULL. Update intro
6380 comment.
6381 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
6382 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
6383 in file.
6384 (ppc_displaced_step_copy_insn): New function.
6385 (ppc_displaced_step_fixup): Update comment.
6386 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
6387 gdbarch_displaced_step_copy_insn hook.
6388 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
6389 NULL return.
6390 * gdbarch.h: Regenerate.
6391
3fc8eb30
PA
63922015-08-07 Pedro Alves <palves@redhat.com>
6393
6394 * inferior.h (struct inferior) <displaced_stepping_failed>: New
6395 field.
6396 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
6397 Return false if dispaced stepping failed before.
6398 (resume): Pass the current inferior to
6399 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
6400 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
6401 displaced_stepping_failed flag, and fall back to an in-line
6402 step-over.
6403
bfedc46a
PA
64042015-08-07 Pedro Alves <palves@redhat.com>
6405
6406 * darwin-nat.c (darwin_stop): Rename to ...
6407 (darwin_interrupt): ... this.
6408 (_initialize_darwin_inferior): Adjust.
6409 * gnu-nat.c (gnu_stop): Delete.
6410 (gnu_target): Don't install gnu_stop.
6411 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
6412 (inf_ptrace_interrupt): ... this.
6413 (inf_ptrace_target): Adjust.
6414 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
6415 target_stop.
6416 * linux-nat (linux_nat_stop): Rename to ...
6417 (linux_nat_interrupt): ... this.
6418 (linux_nat_stop): Reimplement.
6419 (linux_nat_add_target): Install linux_nat_interrupt.
6420 * nto-procfs.c (nto_interrupt_twice): Rename to ...
6421 (nto_handle_sigint_twice): ... this.
6422 (nto_interrupt): Rename to ...
6423 (nto_handle_sigint): ... this. Call target_interrupt instead of
6424 target_stop.
6425 (procfs_wait): Adjust.
6426 (procfs_stop): Rename to ...
6427 (procfs_interrupt): ... this.
6428 (init_procfs_targets): Adjust.
6429 * procfs.c (procfs_stop): Rename to ...
6430 (procfs_interrupt): ... this.
6431 (procfs_target): Adjust.
6432 * remote-m32r-sdi.c (m32r_stop): Rename to ...
6433 (m32r_interrupt): ... this.
6434 (init_m32r_ops): Adjust.
6435 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
6436 (gdbsim_interrupt_inferior): ... this.
6437 (gdbsim_stop): Rename to ...
6438 (gdbsim_interrupt): ... this.
6439 (gdbsim_cntrl_c): Adjust.
6440 (init_gdbsim_ops): Adjust.
6441 * remote.c (sync_remote_interrupt): Adjust comments.
6442 (remote_stop_as): Rename to ...
6443 (remote_interrupt_as): ... this.
6444 (remote_stop): Adjust comment.
6445 (remote_interrupt): New function.
6446 (init_remote_ops): Install remote_interrupt.
6447 * target.c (target_interrupt): New function.
6448 * target.h (struct target_ops) <to_interrupt>: New field.
6449 (target_interrupt): New declaration.
6450 * windows-nat.c (windows_stop): Rename to ...
6451 (windows_interrupt): ... this.
6452 * target-delegates.c: Regenerate.
6453
d55007b5
PA
64542015-08-07 Pedro Alves <palves@redhat.com>
6455
6456 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
6457 threads" as alternative to "switching back to stepped thread".
6458
fbea99ea
PA
64592015-08-07 Pedro Alves <palves@redhat.com>
6460
6461 * NEWS: Mention "maint set/show target-non-stop".
6462 * breakpoint.c (update_global_location_list): Check
6463 target_is_non_stop_p instead of non_stop.
6464 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
6465 * infrun.c (show_can_use_displaced_stepping)
6466 (can_use_displaced_stepping_p, start_step_over_inferior):
6467 Likewise.
6468 (internal_resume_ptid): New function.
6469 (resume): Use it.
6470 (proceed): Check target_is_non_stop_p instead of non_stop. If in
6471 all-stop mode but the target is always in non-stop mode, start all
6472 the other threads that are implicitly resumed too.
6473 (for_each_just_stopped_thread, fetch_inferior_event)
6474 (adjust_pc_after_break, stop_all_threads): Check
6475 target_is_non_stop_p instead of non_stop.
6476 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
6477 with the target always in non-stop mode.
6478 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
6479 instead of non_stop.
6480 (switch_back_to_stepped_thread): Check target_is_non_stop_p
6481 instead of non_stop.
6482 (keep_going_stepped_thread): Use internal_resume_ptid.
6483 (stop_waiting): If in all-stop mode, and the target is in non-stop
6484 mode, stop all threads.
6485 (keep_going_pass): Likewise, when starting a new in-line step-over
6486 sequence.
6487 * linux-nat.c (get_pending_status, select_event_lwp)
6488 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
6489 target_is_non_stop_p instead of non_stop.
6490 (linux_nat_always_non_stop_p): New function.
6491 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
6492 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
6493 * target-delegates.c: Regenerate.
6494 * target.c (target_is_non_stop_p): New function.
6495 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
6496 (maint_set_target_non_stop_command)
6497 (maint_show_target_non_stop_command): New functions.
6498 (_initilize_target): Install "maint set/show target-non-stop"
6499 commands.
6500 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
6501 (target_non_stop_enabled): New declaration.
6502 (target_is_non_stop_p): New declaration.
6503
372316f1
PA
65042015-08-07 Pedro Alves <pedro@codesourcery.com>
6505
6506 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
6507 has a pending status, return true.
6508 * gdbthread.h: Include target/waitstatus.h.
6509 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
6510 stop_pc>: New fields.
6511 (struct thread_info) <resumed>: New field.
6512 (set_resumed): Declare.
6513 * infrun.c: Include "event-loop.h".
6514 (infrun_async_inferior_event_token, infrun_is_async): New globals.
6515 (infrun_async): New function.
6516 (clear_step_over_info): Add debug output.
6517 (displaced_step_in_progress_any_inferior): New function.
6518 (displaced_step_fixup): New returns int.
6519 (start_step_over): Handle in-line step-overs too. Assert the
6520 thread is marked resumed.
6521 (resume_cleanups): Clear the thread's resumed flag.
6522 (resume): Set the thread's resumed flag. Return early if the
6523 thread has a pending status. Allow stepping a breakpoint with no
6524 signal.
6525 (proceed): Adjust to check 'resumed' instead of 'executing'.
6526 (clear_proceed_status_thread): If the thread has a pending status,
6527 and that status is a finished step, discard the pending status.
6528 (clear_proceed_status): Don't clear step_over_info here.
6529 (random_pending_event_thread, do_target_wait): New functions.
6530 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
6531 do_target_wait.
6532 (wait_one): New function.
6533 (THREAD_STOPPED_BY): New macro.
6534 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6535 (thread_stopped_by_hw_breakpoint): New functions.
6536 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
6537 functions.
6538 (handle_inferior_event): Also call set_resumed(false) on all
6539 threads implicitly stopped by the event.
6540 (restart_threads, resumed_thread_with_pending_status): New
6541 functions.
6542 (finish_step_over): If we were doing an in-line step-over before,
6543 and no longer are after trying to start a new step-over, restart
6544 all threads. If we have multiple threads with pending events,
6545 save the current event and go through the event loop again.
6546 (handle_signal_stop): Return early if finish_step_over returns
6547 false.
6548 <random signal>: If we get a signal while stepping over a
6549 breakpoint in-line in non-stop mode, restart all threads. Clear
6550 step_over_info before delivering the signal.
6551 (keep_going_stepped_thread): Use internal_error instead of
6552 gdb_assert. Mark the thread as resumed.
6553 (keep_going_pass_signal): Assert the thread isn't already resumed.
6554 If some other thread is doing an in-line step-over, defer the
6555 resume. If we just started a new in-line step-over, stop all
6556 threads. Don't clear step_over_info.
6557 (infrun_async_inferior_event_handler): New function.
6558 (_initialize_infrun): Create async event handler with
6559 infrun_async_inferior_event_handler as callback.
6560 (infrun_async): New declaration.
6561 * target.c (target_async): New function.
6562 * target.h (target_async): Declare macro and readd as function
6563 declaration.
6564 * target/waitstatus.h (enum target_stop_reason)
6565 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6566 * thread.c (new_thread): Clear the new waitstatus field.
6567 (set_resumed): New function.
6568
2ac7589c
PA
65692015-08-07 Pedro Alves <palves@redhat.com>
6570
6571 * infrun.c (keep_going_stepped_thread): New function, factored out
6572 from ...
6573 (switch_back_to_stepped_thread): ... here.
6574
8b061563
PA
65752015-08-07 Pedro Alves <palves@redhat.com>
6576
6577 * infrun.c (currently_stepping): Extend intro comment.
6578 * target.h (target_resume): Extend intro comment.
6579
1afd5965
PA
65802015-08-07 Pedro Alves <palves@redhat.com>
6581
6582 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
6583 of inferior_ptid. If the stepped thread vanished, return 0
6584 instead of resuming here. Use reset_ecs. Print the prev_pc and
6585 the current stop_pc in log message. Clear trap_expected if the
6586 thread advanced. Don't pass currently_stepping to
6587 do_target_resume.
6588
4d9d9d04
PA
65892015-08-07 Pedro Alves <palves@redhat.com>
6590
6591 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
6592 * infrun.c (struct execution_control_state): Move higher up in the
6593 file.
6594 (reset_ecs): New function.
6595 (start_step_over): Now returns int. Rewrite to use
6596 keep_going_pass_signal instead of manually starting a displaced step.
6597 (resume): Don't call set_running here. If displaced stepping
6598 can't start now, clear trap_expected.
6599 (find_thread_needs_step_over): Delete function.
6600 (proceed): Set up finish_thread_state_cleanup. Call set_running.
6601 If the current thread needs a step over, push it in the step-over
6602 chain. Don't set insert breakpoints nor call resume directly
6603 here. Instead rewrite to use start_step_over and
6604 keep_going_pass_signal.
6605 (finish_step_over): New function.
6606 (handle_signal_stop): Call finish_step_over instead of
6607 start_step_over.
6608 (switch_back_to_stepped_thread): If the event thread needs another
6609 step-over do that first. Use start_step_over.
6610 (keep_going_pass_signal): New function, factored out from ...
6611 (keep_going): ... here.
6612 (_initialize_infrun): Comment moved here.
6613 * thread.c (set_running_thread): New function.
6614 (set_running, finish_thread_state): Use set_running_thread.
6615
c2829269
PA
66162015-08-07 Pedro Alves <palves@redhat.com>
6617
6618 * gdbthread.h (struct thread_info) <step_over_prev,
6619 step_over_next>: New fields.
6620 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
6621 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
6622 declarations.
6623 * infrun.c (struct displaced_step_request): Delete.
6624 (struct displaced_step_inferior_state) <step_request_queue>:
6625 Delete field.
6626 (displaced_step_prepare): Assert that trap_expected is set. Use
6627 thread_step_over_chain_enqueue. Split starting a new displaced
6628 step to ...
6629 (start_step_over): ... this new function.
6630 (resume): Assert the thread isn't waiting for a step over already.
6631 (proceed): Assert the thread isn't waiting for a step over
6632 already.
6633 (infrun_thread_stop_requested): Adjust to remove threads from the
6634 embedded step-over chain.
6635 (handle_inferior_event) <fork/vfork>: Call start_step_over after
6636 displaced_step_fixup.
6637 (handle_signal_stop): Call start_step_over after
6638 displaced_step_fixup.
6639 * infrun.h (step_over_queue_head): New declaration.
6640 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
6641 (thread_step_over_chain_next, thread_is_in_step_over_chain)
6642 (thread_step_over_chain_enqueue)
6643 (thread_step_over_chain_remove): New functions.
6644 (delete_thread_1): Remove thread from the step-over chain.
6645
6c4cfb24
PA
66462015-08-07 Pedro Alves <palves@redhat.com>
6647
6648 * infrun.c (thread_still_needs_step_over): Rename to ...
6649 (thread_still_needs_step_over_bp): ... this.
6650 (enum step_over_what): New.
6651 (thread_still_needs_step_over): Reimplement.
6652
567420d1
PA
66532015-08-07 Pedro Alves <palves@redhat.com>
6654
6655 * remote.c (remote_wait_as): If not waiting for a stop reply,
6656 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
6657 requested, don't block waiting forever.
6658
d8dd4d5f
PA
66592015-08-07 Pedro Alves <pedro@codesourcery.com>
6660
6661 * infrun.c (adjust_pc_after_break): Now takes thread_info and
6662 waitstatus pointers instead of an ecs. Adjust.
6663 (handle_inferior_event): Adjust caller.
6664
e1316e60
PA
66652015-08-07 Pedro Alves <palves@redhat.com>
6666
6667 * infrun.c (handle_inferior_event): If we get
6668 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
6669 mode, mark all threads of the exiting process as not-executing.
6670 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
6671 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
6672 exiting process, if inferior_ptid still points at a process.
6673 * thread.c (struct current_thread_cleanup) <next>: New field.
6674 (current_thread_cleanup_chain): New global.
6675 (restore_current_thread_ptid_changed): New function.
6676 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
6677 current_thread_cleanup_chain list.
6678 (make_cleanup_restore_current_thread): Add the cleanup data to the
6679 current_thread_cleanup_chain list.
6680 (_initialize_thread): Install restore_current_thread_ptid_changed
6681 as thread_ptid_changed observer.
6682
47e9c225
JB
66832015-08-07 Joel Brobecker <brobecker@adacore.com>
6684
6685 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
6686 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
6687 smaller than expected.
6688
06096720
AB
66892015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
6690
6691 * stack.c (get_frame_language): Moved ...
6692 * frame.c (get_frame_language): ... to here.
6693 * language.h (get_frame_language): Declaration moved to frame.h.
6694 * frame.h: Add language.h include, for language enum.
6695 (get_frame_language): Declaration moved from language.h.
6696 * language.c: Add frame.h include.
6697 * top.c: Add frame.h include.
6698 * symtab.h (struct obj_section): Declare.
6699 (struct cmd_list_element): Declare.
6700
7ff38b1c
AB
67012015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
6702
6703 * language.c (show_language_command): Find selected frame before
6704 asking for the language of that frame.
6705 (set_language_command): Likewise.
6706 * language.h (get_frame_language): Add frame parameter.
6707 * stack.c (get_frame_language): Add frame parameter, assert
6708 parameter is not NULL, update comment and reindent.
6709 * top.c (check_frame_language_change): Pass the selected frame
6710 into get_frame_language.
6711
da8c46d2
MM
67122015-08-07 Markus Metzger <markus.t.metzger@intel.com>
6713
6714 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
6715 (pt_btrace_insn_flags): New.
6716 (ftrace_add_pt): Call pt_btrace_insn_flags.
6717 * btrace.h (btrace_insn_flag): New.
6718 (btrace_insn) <flags>: New.
6719 * record-btrace.c (btrace_insn_history): Print insn prefix.
6720 * NEWS: Announce it.
6721
5599c404
MM
67222015-08-07 Markus Metzger <markus.t.metzger@intel.com>
6723
6724 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
6725 * configure: Regenerate.
6726
016a3251
DD
67272015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
6728
6729 * Makefile.in (LIBICONV): Define.
6730 (CLIBS): Add LIBICONV.
6731 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
6732 * configure: Regenerate.
6733
aead7601
SM
67342015-08-06 Simon Marchi <simon.marchi@ericsson.com>
6735 Pedro Alves <palves@redhat.com>
6736
6737 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
6738 (arm_set_abi): Likewise.
6739 * ax-general.c (ax_print): Likewise.
6740 * c-exp.y (exp : string_exp): Likewise.
6741 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
6742 (do_compile_dwarf_expr_to_c): Likewise.
6743 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
6744 Likewise.
6745 * dwarf2expr.c (execute_stack_op): Likewise.
6746 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
6747 (disassemble_dwarf_expression): Likewise.
6748 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
6749 (read_array_order): Likewise.
6750 (abbrev_table_read_table): Likewise.
6751 (read_attribute_value): Likewise.
6752 (skip_unknown_opcode): Likewise.
6753 (dwarf_decode_macro_bytes): Likewise.
6754 (dwarf_decode_macros): Likewise.
6755 * eval.c (value_f90_subarray): Likewise.
6756 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6757 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6758 * infrun.c (handle_command): Likewise.
6759 * memory-map.c (memory_map_start_memory): Likewise.
6760 * osabi.c (set_osabi): Likewise.
6761 * parse.c (operator_length_standard): Likewise.
6762 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
6763 single return point.
6764 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6765 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6766 (gdbpy_lookup_global_symbol): Likewise.
6767 * record-full.c (record_full_restore): Likewise.
6768 * regcache.c (regcache_register_status): Likewise.
6769 (regcache_raw_read): Likewise.
6770 (regcache_cooked_read): Likewise.
6771 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
6772 * symtab.c (initialize_ordinary_address_classes): Likewise.
6773 * target-debug.h (target_debug_print_signals): Likewise.
6774 * utils.c (do_restore_current_language): Likewise.
6775
ca0a5f0b
CD
67762015-08-06 Clem Dickey <clemd@acm.org>
6777
6778 PR python/17136
6779 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
6780
05d999b0
SM
67812015-08-06 Simon Marchi <simon.marchi@ericsson.com>
6782
6783 * complaints.c (enum complaint_series): Add newlines and remove
6784 out of date comment.
6785 (struct complaints) <series>: Change type to enum
6786 complaint_series and remove out of date comment.
6787 (symfile_complaint_hook): Use equivalent enum value
6788 ISOLATED_MESSAGE instead of 0.
6789
bf47e248
PA
67902015-08-06 Pedro Alves <palves@redhat.com>
6791
6792 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
6793 returned > 0.
6794
b6b9ffcc
PL
67952015-08-06 Pierre Langlois <pierre.langlois@arm.com>
6796
6797 * common/agent.c (symbol_list) <required>: Remove.
6798
863d01bd
PA
67992015-08-06 Pedro Alves <palves@redhat.com>
6800
6801 * target/waitstatus.h (enum target_stop_reason)
6802 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6803
0a39bb32
PA
68042015-08-05 Pedro Alves <palves@redhat.com>
6805 Joel Brobecker <brobecker@adacore.com>
6806
9d996aba 6807 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
6808 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
6809 case where BS->STOP is not set.
6810
260439cb
UW
68112015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
6812
6813 * nat/gdb_thread_db.h: Add copyright header.
6814 Protect against multiple inclusion.
6815
d89fa914
YQ
68162015-08-05 Yao Qi <yao.qi@linaro.org>
6817
6818 * aarch64-linux-nat.c (get_thread_id): Remove.
6819 (debug_reg_change_callback): Call ptid_get_lwp instead of
6820 get_thread_id.
6821 (fetch_gregs_from_thread): Likewise.
6822 (store_gregs_to_thread): Likewise.
6823 (fetch_fpregs_from_thread): Likewise.
6824 (store_fpregs_to_thread): Likewise.
6825 (aarch64_linux_get_debug_reg_capacity): Likewise.
6826 * arm-linux-nat.c (get_thread_id): Remove.
6827 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6828 * xtensa-linux-nat.c (get_thread_id): Remove.
6829 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6830 * arm-linux-nat.c (get_thread_id): Remove.
6831 (GET_THREAD_ID): Remove.
6832 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
6833 (store_fpregs, fetch_regs, store_regs): Likewise.
6834 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
6835 (fetch_vfp_regs, store_vfp_regs): Likewise.
6836 (arm_linux_read_description): Likewise.
6837 (arm_linux_get_hwbp_cap): Likewise.
6838 * xtensa-linux-nat.c (get_thread_id): Remove.
6839 (GET_THREAD_ID): Remove.
6840 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
6841 GET_THREAD_ID.
6842
4efd80aa
CS
68432015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
6844
6845 * python/py-linetable.c: Fix case of Linetable to LineTable
6846 in docstrings and code comments.
6847 * python/py-symtab.c: Same.
6848
c6343a91
JK
68492015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6850
6851 * infcmd.c (signal_command): Call do_cleanups for args_chain.
6852
978b9495
JK
68532015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6854
6855 PR gdb/18767
6856 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
6857 use.
6858
96e9210f
PA
68592015-08-04 Pedro Alves <palves@redhat.com>
6860
6861 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
6862 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
6863 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
6864 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
6865 (td_thr_validate_ftype, td_thr_get_info_ftype)
6866 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
6867 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
6868 New typedefs.
6869 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
6870 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
6871 local macros and use them instead of verbose_dlsym and dlsym
6872 calls.
6873
af60a1ef
SL
68742015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6875
6876 * nios2-tdep.h: Include opcode/nios2.h here.
6877 (NIOS2_CDX_OPCODE_SIZE): New.
6878 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
6879 * nios2-tdep.c: Don't include opcode/nios2.h here.
6880 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
6881 4-byte read fails.
6882 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
6883 (nios2_match_addi, nios2_match_orhi): Likewise.
6884 (nios2_match_stw, nios2_match_ldw): Likewise.
6885 (nios2_match_rdctl): Likewise.
6886 (nios2_match_stwm, nios2_match_ldwm): New.
6887 (nios2_match_branch): Add cases for R2 encodings.
6888 (nios2_match_jmpi, nios2_match_calli): Likewise.
6889 (nios2_match_jmpr, nios2_match_callr): Likewise.
6890 (nios2_match_break, nios2_match_trap): Likewise.
6891 (nios2_in_epilogue_p): Add R2 support.
6892 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
6893 prologues.
6894 (nios2_breakpoint_from_pc): Handle R2 instructions.
6895 (nios2_get_next_pc): Likewise. Adjust call to
6896 tdep->syscall_next_pc.
6897 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
6898 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
6899 instruction field macros instead of literal hex values.
6900 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
6901 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
6902 Use size field from OP instead of assuming all instructions
6903 are the same size.
6904 (nios2_linux_init_abi): Register appropriate unwinder for mach.
6905
1da03605
UW
69062015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
6907
6908 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
6909 variable warning with some compilers.
6910
8156fe7f
YQ
69112015-08-03 Yao Qi <yao.qi@linaro.org>
6912
6913 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
6914 in comment. Replace "rw" with "type".
6915 (arm_linux_remove_watchpoint): Change type of "rw" to
6916 "enum target_hw_bp_type".
6917
835a09d9
PMR
69182015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
6919
6920 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
6921 lookup_symbol.
6922 * ft32-tdep.c (ft32_skip_prologue): Likewise.
6923 * moxie-tdep.c (moxie_skip_prologue): Likewise.
6924 * mt-tdep.c (mt_skip_prologue): Likewise.
6925 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6926
d12307c1
PMR
69272015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
6928
6929 * ada-exp.y (write_object_renaming): Replace struct
6930 ada_symbol_info with struct block_symbol. Update field
6931 references accordingly.
6932 (block_lookup, select_possible_type_sym): Likewise.
6933 (find_primitive_type): Likewise. Also update call to
6934 ada_lookup_symbol to extract the symbol itself.
6935 (write_var_or_type, write_name_assoc): Likewise.
6936 * ada-lang.h (struct ada_symbol_info): Remove.
6937 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
6938 struct block_symbol.
6939 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
6940 (ada_lookup_symbol): Return struct block_symbol instead of a
6941 mere symbol.
6942 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
6943 with struct block_symbol.
6944 (resolve_subexp, ada_resolve_function, sort_choices,
6945 user_select_syms, is_nonfunction, add_defn_to_vec,
6946 num_defns_collected, defns_collected,
6947 symbols_are_identical_enums, remove_extra_symbols,
6948 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
6949 ada_lookup_symbol_list, ada_iterate_over_symbols,
6950 ada_lookup_encoded_symbol, get_var_value): Likewise.
6951 (ada_lookup_symbol): Return a block_symbol instead of a mere
6952 symbol. Replace struct ada_symbol_info with struct
6953 block_symbol.
6954 (ada_lookup_symbol_nonlocal): Likewise.
6955 (standard_lookup): Make block passing explicit through
6956 lookup_symbol_in_language.
6957 * ada-tasks.c (get_tcb_types_info): Update the calls to
6958 lookup_symbol_in_language to extract the mere symbol out of the
6959 returned value.
6960 (ada_tasks_inferior_data_sniffer): Likewise.
6961 * ax-gdb.c (gen_static_field): Likewise for the call to
6962 lookup_symbol.
a5fdf78a 6963 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
6964 lookup functions.
6965 (gen_expr): Likewise.
6966 * c-exp.y: Likewise. Remove uses of block_found.
6967 (lex_one_token, classify_inner_name, c_print_token): Likewise.
6968 (classify_name): Likewise. Rename the "sym" local variable to
6969 "bsym".
6970 * c-valprint.c (print_unpacked_pointer): Likewise.
6971 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
6972 "sym" parameter from struct symbol * to struct block_symbol.
6973 Use it to remove uses of block_found. Deal with struct
a5fdf78a 6974 block_symbol from lookup functions.
d12307c1
PMR
6975 (gcc_convert_symbol): Likewise. Update the call to
6976 convert_symbol_sym.
6977 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 6978 struct block_symbol from lookup functions.
d12307c1
PMR
6979 * cp-namespace.c (cp_lookup_nested_symbol_1,
6980 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
6981 cp_search_static_and_baseclasses,
6982 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
6983 cp_lookup_symbol_imports_or_template,
6984 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
6985 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
6986 find_symbol_in_baseclass): Return struct block_symbol instead of
6987 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
6988 functions.
6989 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 6990 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
6991 lookup functions.
6992 * cp-support.h (cp_lookup_symbol_nonlocal,
6993 cp_lookup_symbol_from_namespace,
6994 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 6995 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
6996 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
6997 push_module_name):
a5fdf78a 6998 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
6999 uses of block_found.
7000 * eval.c (evaluate_subexp_standard): Update call to
7001 cp_lookup_symbol_namespace.
a5fdf78a
PMR
7002 * f-exp.y: Deal with struct block_symbol from lookup functions.
7003 Remove uses of block_found.
d12307c1
PMR
7004 (yylex): Likewise.
7005 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
7006 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 7007 struct block_symbol from lookup functions.
d12307c1
PMR
7008 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
7009 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
7010 (gdbscm_lookup_global_symbol): Likewise.
7011 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
7012 * go-exp.y: Likewise. Remove uses of block_found.
7013 (package_name_p, classify_packaged_name, classify_name):
7014 Likewise.
7015 * infrun.c (insert_exception_resume_breakpoint): Likewise.
7016 * jv-exp.y (push_variable): Likewise.
7017 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
7018 * language.c (language_bool_type): Likewise.
7019 * language.h (struct language_defn): Update
a5fdf78a
PMR
7020 la_lookup_symbol_nonlocal to return a struct block_symbol rather
7021 than a mere symbol.
7022 * linespec.c (find_label_symbols): Deal with struct block_symbol
7023 from lookup functions.
d12307c1
PMR
7024 * m2-exp.y: Likewise. Remove uses of block_found.
7025 (yylex): Likewise.
7026 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7027 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
7028 * p-exp.y: Likewise. Remove uses of block_found.
7029 (yylex): Likewise.
7030 * p-valprint.c (pascal_val_print): Likewise.
7031 * parse.c (write_dollar_variable): Likewise. Remove uses of
7032 block_found.
7033 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
7034 struct block_symbol.
7035 * printcmd.c (address_info): Deal with struct block_symbol from
7036 lookup functions.
d12307c1
PMR
7037 * python/py-frame.c (frapy_read_var): Likewise.
7038 * python/py-symbol.c (gdbpy_lookup_symbol,
7039 gdbpy_lookup_global_symbol): Likewise.
7040 * skip.c (skip_function_command): Likewise.
7041 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 7042 block_symbol instead of a mere symbol.
d12307c1
PMR
7043 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
7044 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
7045 * solib.c (solib_global_lookup): Likewise.
7046 * solist.h (solib_global_lookup): Likewise.
7047 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
7048 return a struct block_symbol rather than a mere symbol.
7049 * source.c (select_source_symtab): Deal with struct block_symbol
7050 from lookup functions.
d12307c1
PMR
7051 * stack.c (print_frame_args, iterate_over_block_arg_vars):
7052 Likewise.
7053 * symfile.c (set_initial_language): Likewise.
7054 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 7055 block_symbol.
d12307c1
PMR
7056 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
7057 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 7058 block_symbol.
d12307c1 7059 (block_found): Remove.
a5fdf78a 7060 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 7061 cache slots.
a5fdf78a
PMR
7062 (symbol_cache_lookup): Return a struct block_symbol rather than
7063 a mere symbol.
d12307c1
PMR
7064 (symbol_cache_mark_found): Add a BLOCK parameter to fill
7065 appropriately the cache slots. Update callers.
7066 (symbol_cache_dump): Update cache slots handling to the type
7067 change.
7068 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
7069 lookup_symbol_aux, lookup_local_symbol,
7070 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
7071 lookup_symbol_in_objfile_symtabs,
7072 lookup_symbol_in_objfile_from_linkage_name,
7073 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
7074 lookup_symbol_in_static_block, lookup_static_symbol,
7075 lookup_global_symbol):
a5fdf78a
PMR
7076 Return a struct block_symbol rather than a mere symbol. Deal
7077 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
7078 uses of block_found.
7079 (lookup_symbol_in_block): Remove uses of block_found.
7080 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 7081 struct block_symbol.
d12307c1
PMR
7082 (lookup_symbol_global_iterator_cb): Update references to the
7083 RESULT field.
a5fdf78a 7084 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 7085 functions.
a5fdf78a 7086 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
7087 (block_found): Remove.
7088 (lookup_symbol_in_language, lookup_symbol,
7089 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
7090 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
7091 lookup_global_symbol_from_objfile): Return a struct block_symbol
7092 rather than just a mere symbol. Update comments to remove
7093 mentions of block_found.
d12307c1
PMR
7094 * valops.c (find_function_in_inferior,
7095 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 7096 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
7097 functions.
7098 * value.c (value_static_field, value_fn_field): Likewise.
7099
b1c59ddc
SM
71002015-07-31 Simon Marchi <simon.marchi@ericsson.com>
7101
7102 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
7103 instead of integer.
7104
f486487f 71052015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 7106 Pedro Alves <palves@redhat.com>
f486487f
SM
7107
7108 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
7109 type or value instead of integer.
7110 (aarch64_linux_insert_watchpoint): Likewise.
7111 (aarch64_linux_remove_watchpoint): Likewise.
7112 * ada-lang.c (ada_op_print_tab): Likewise.
7113 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
7114 (amd64_linux_syscall_record_common): Likewise.
7115 * arch-utils.c (target_byte_order_user): Likewise.
7116 (default_byte_order): Likewise.
7117 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
7118 (arm_linux_get_hwbp_type): Likewise.
7119 (arm_linux_hw_watchpoint_initialize): Likewise.
7120 (arm_linux_insert_watchpoint): Likewise.
7121 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
7122 (arm_linux_syscall_record): Likewise.
7123 * breakpoint.c (update_watchpoint): Likewise.
7124 (breakpoint_here_p): Likewise.
7125 (bpstat_print): Likewise.
7126 (enable_breakpoint_disp): Likewise.
7127 * c-lang.c (c_op_print_tab): Likewise.
7128 * cli/cli-decode.c (add_info_alias): Likewise.
7129 * d-lang.c (d_op_print_tab): Likewise.
7130 * eval.c (evaluate_subexp_standard): Likewise.
7131 * f-exp.y (dot_ops): Likewise.
7132 (f77_keywords): Likewise.
7133 * f-lang.c (f_op_print_tab): Likewise.
7134 * go-lang.c (go_op_print_tab): Likewise.
7135 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
7136 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
7137 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
7138 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
7139 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
7140 (struct scm_from_stringn_data): Likewise.
7141 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
7142 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
7143 (ia64_linux_remove_watchpoint): Likewise.
7144 (ia64_linux_can_use_hw_breakpoint): Likewise.
7145 * infrun.c (print_stop_event): Likewise.
7146 * jv-lang.c (java_op_print_tab): Likewise.
7147 * linux-nat.c (linux_proc_xfer_partial): Likewise.
7148 * linux-nat.h (struct lwp_info): Likewise.
7149 * linux-thread-db.c (enable_thread_event): Likewise.
7150 * m2-lang.c (m2_op_print_tab): Likewise.
7151 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
7152 (mi_cmd_stack_list_variables): Likewise.
7153 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
7154 * mi/mi-out.c (mi_table_begin): Likewise.
7155 (mi_table_header): Likewise.
7156 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
7157 (mips_linux_insert_watchpoint): Likewise.
7158 (mips_linux_remove_watchpoint): Likewise.
7159 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
7160 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
7161 (mips_linux_watch_type_to_irw): Likewise.
7162 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
7163 (procfs_insert_hw_watchpoint): Likewise.
7164 (procfs_remove_hw_watchpoint): Likewise.
7165 (procfs_hw_watchpoint): Likewise.
7166 (procfs_can_use_hw_breakpoint): Likewise.
7167 (procfs_remove_hw_watchpoint): Likewise.
7168 (procfs_insert_hw_watchpoint): Likewise.
7169 * p-lang.c (pascal_op_print_tab): Likewise.
7170 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
7171 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
7172 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
7173 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
7174 (procfs_insert_watchpoint): Likewise.
7175 (procfs_remove_watchpoint): Likewise.
7176 * psymtab.c (recursively_search_psymtabs): Likewise.
7177 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
7178 (m32r_insert_watchpoint): Likewise.
7179 * remote-mips.c (mips_can_use_watchpoint): Likewise.
7180 (mips_insert_watchpoint): Likewise.
7181 (mips_remove_watchpoint): Likewise.
7182 * remote.c (watchpoint_to_Z_packet): Likewise.
7183 (remote_insert_watchpoint): Likewise.
7184 (remote_remove_watchpoint): Likewise.
7185 (remote_check_watch_resources): Likewise.
7186 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
7187 (s390_remove_watchpoint): Likewise.
7188 (s390_can_use_hw_breakpoint): Likewise.
7189 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7190 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
7191 * target.h (struct target_ops): Likewise.
7192 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7193 * ui-out.c (struct ui_out_hdr): Likewise.
7194 (append_header_to_list): Likewise.
7195 (get_next_header): Likewise.
7196 (verify_field): Likewise.
7197 (ui_out_begin): Likewise.
7198 (ui_out_field_int): Likewise.
7199 (ui_out_field_fmt_int): Likewise.
7200 (ui_out_field_skip): Likewise.
7201 (ui_out_field_string): Likewise.
7202 (ui_out_field_fmt): Likewise.
7203 * varobj.c (new_variable): Likewise.
7204 * x86-nat.c (x86_insert_watchpoint): Likewise.
7205 (x86_remove_watchpoint): Likewise.
7206 (x86_can_use_hw_breakpoint): Likewise.
7207 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
7208 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
7209 previously anonymous enumeration type..
7210 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
7211 value.
7212 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
7213 (target_debug_print_enum_bptype): New.
7214 * target-delegates.c: Regenerate.
7215
e1b5381f
SL
72162015-07-30 Sandra Loosemore <sandra@codesourcery.com>
7217
7218 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
7219 already says and disallow non-stack memory writes in the prologue.
7220
9aaf8e3a
SL
72212015-07-30 Sandra Loosemore <sandra@codesourcery.com>
7222
7223 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
7224 reflect how current GCC emits stack overflow checks. Match
7225 both trap and break instructions for backward compatbility.
7226 Disallow other trap and break instructions in the prologue.
7227
69dde7dc
PA
72282015-07-30 Pedro Alves <palves@redhat.com>
7229
7230 PR threads/18600
7231 * linux-nat.c (wait_lwp): Report to the core when thread group
7232 leader exits.
7233
4dd63d48
PA
72342015-07-30 Pedro Alves <palves@redhat.com>
7235 Simon Marchi <simon.marchi@ericsson.com>
7236
7237 PR threads/18600
7238 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
7239 mark the new thread as resumed. Remove STOPPING parameter.
7240 (wait_lwp): Adjust call to linux_handle_extended_wait.
7241 (linux_nat_filter_event): Adjust call to
7242 linux_handle_extended_wait.
7243 (resume_stopped_resumed_lwps): Add debug output.
7244
6b940e6a
PL
72452015-07-30 Pierre Langlois <pierre.langlois@arm.com>
7246
7247 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
7248 isize argument.
7249 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
7250 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
7251 gdbarch_fast_tracepoint_valid_at.
7252 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
7253 * gdbarch.h: Regenerate.
7254 * gdbarch.c: Regenerate.
7255 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
7256 argument. Do not set it.
7257 * remote.c (remote_download_tracepoint): Adjust call to
7258 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
7259 the instruction length.
7260
ec741292
YQ
72612015-07-30 Yao Qi <yao.qi@linaro.org>
7262
7263 * arm-tdep.h (enum gdb_regnum): Move it to ...
7264 * arch/arm.h: ... here. New file.
7265 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
7266
0ea6402e
PL
72672015-07-30 Pierre Langlois <pierre.langlois@arm.com>
7268
7269 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
7270 Change its type to int *.
7271 (decode_br): Rename link argument to is_blr. Change its type to
7272 int *.
7273 (decode_cb): Rename op argument to is_cbnz. Change its type to
7274 int *.
7275 (decode_tb): Rename op argument to is_tbnz. Change its type to
7276 int *. Set is_tbnz to either 1 or 0.
7277 (aarch64_analyze_prologue): Change type of is_link to int. Add
7278 new variables is_cbnz and is_tbnz. Adjust call to
7279 aarch64_decode_cb and aarch64_decode_tb.
7280
aa58a496
SM
72812015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7282
7283 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
7284 parameter.
7285 (mips_linux_new_thread): Likewise.
7286 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
7287
18206ca3
PP
72882015-07-29 Patrick Palka <patrick@parcs.ath.cx>
7289
7290 * top.c: Include "tui/tui.h".
7291 (undo_terminal_modifications_before_exit): New static function.
7292 (quit_force): Use it.
7293
7afa63c6
PP
72942015-07-29 Patrick Palka <patrick@parcs.ath.cx>
7295
7296 * target.c (terminal_state): Initialize to terminal_is_ours.
7297
cc9f16aa
YQ
72982015-07-29 Yao Qi <yao.qi@linaro.org>
7299
7300 PR record/18691
7301 * dcache.c (dcache_read_memory_partial): Call
7302 raw_memory_xfer_partial.
7303 * target.c (raw_memory_xfer_partial): Make it non-static.
7304 * target.h (raw_memory_xfer_partial): Declare.
7305
3ae385af
SM
73062015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7307
7308 * c-valprint.c (c_val_print_array): Consider addressable memory
7309 unit size.
7310 (c_val_print_ptr): Likewise.
7311 (c_val_print_int): Likewise.
7312 * findvar.c (read_frame_register_value): Likewise.
7313 * valarith.c (find_size_for_pointer_math): Likewise.
7314 (value_ptrdiff): Likewise.
7315 (value_subscripted_rvalue): Likewise.
7316 * valops.c (read_value_memory): Likewise (and rename variables).
7317 (value_assign): Likewise.
7318 (value_repeat): Likewise.
7319 (value_array): Likewise.
7320 (value_slice): Likewise.
7321 * valprint.c (generic_val_print_ptr): Likewise.
7322 (generic_val_print_enum): Likewise.
7323 (generic_val_print_bool): Likewise.
7324 (generic_val_print_int): Likewise.
7325 (generic_val_print_char): Likewise.
7326 (generic_val_print_float): Likewise.
7327 (generic_val_print_decfloat): Likewise.
7328 (generic_val_print_complex): Likewise.
7329 (val_print_scalar_formatted): Likewise.
7330 (val_print_array_elements): Likewise.
7331 * value.c (set_value_parent): Likewise.
7332 (value_contents_copy_raw): Likewise.
7333 (set_internalvar_component): Likewise.
7334 (value_primitive_field): Likewise.
7335 (value_fetch_lazy): Likewise.
7336 * value.h (read_value_memory): Update comment.
7337
e512cdbd
SM
73382015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7339
7340 * value.c (get_value_arch): New function.
7341 * value.h (get_value_arch): New declaration.
7342
3723fda8
SM
73432015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7344
7345 * value.c (struct value): Update comments.
7346
2e056931
SM
73472015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7348
7349 * gdbtypes.c (type_length_units): New function.
7350 * gdbtypes.h (type_length_units): New declaration.
7351 (struct type) <length>: Update comment.
7352
0c87c0bf
SM
73532015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7354
7355 * valprint.c (generic_val_print): Factor out complex
7356 printing code to ...
7357 (generic_val_print_complex): ... this new function.
7358
9550ae5e
SM
73592015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7360
7361 * valprint.c (generic_val_print): Factor out decfloat
7362 printing code to ...
7363 (generic_val_print_decfloat): ... this new function.
7364
7784724b
SM
73652015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7366
7367 * valprint.c (generic_val_print): Factor out float
7368 printing code to ...
7369 (generic_val_print_float): ... this new function.
7370
385f5aff
SM
73712015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7372
7373 * valprint.c (generic_val_print): Factor out char
7374 printing code to ...
7375 (generic_val_print_char): ... this new function.
7376
b21b6342
SM
73772015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7378
7379 * valprint.c (generic_val_print): Factor out integer
7380 printing code to ...
7381 (generic_val_print_int): ... this new function.
7382
e5bead4b
SM
73832015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7384
7385 * valprint.c (generic_val_print): Factor out bool
7386 printing code to ...
7387 (generic_val_print_bool): ... this new function.
7388
4a8c372f
SM
73892015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7390
7391 * valprint.c (generic_val_print): Factor out function/method
7392 printing code to ...
7393 (generic_val_print_func): ... this new function.
7394
d93880bd
SM
73952015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7396
7397 * valprint.c (generic_val_print): Factor out flags
7398 printing code to ...
7399 (generic_val_print_flags): ... this new function.
7400
ef0bc0dd
SM
74012015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7402
7403 * valprint.c (generic_val_print): Factor out enum
7404 printing code to ...
7405 (generic_val_print_enum): ... this new function.
7406
fe43fede
SM
74072015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7408
7409 * valprint.c (generic_val_print): Factor out reference
7410 printing code to ...
7411 (generic_val_print_ref): ... this new function.
7412
45000ea2
SM
74132015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7414
7415 * valprint.c (generic_val_print): Factor out memberptr
7416 printing code to ...
7417 (generic_val_print_memberptr): ... this new function.
7418
81eb921a
SM
74192015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7420
7421 * valprint.c (generic_val_print): Factor out pointer
7422 printing code to ...
7423 (generic_val_print_ptr): ... this new function.
7424
557dbe8a
SM
74252015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7426
7427 * valprint.c (generic_val_print): Factor out array
7428 printing code to ...
7429 (generic_val_print_array): ... this new function.
7430
9f436164
SM
74312015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7432
7433 * valprint.c (generic_val_print): Factor out
7434 print_unpacked_pointer code to ...
7435 (print_unpacked_pointer): ... this new function.
7436
077836f7
PP
74372015-07-27 Patrick Palka <patrick@parcs.ath.cx>
7438
7439 * event-top.c (handle_sigterm): Don't inspect
7440 target_can_async_p. Always set the quit flag and always mark
7441 the async signal handler.
7442
3a60804f
YQ
74432015-07-27 Yao Qi <yao.qi@linaro.org>
7444
7445 * Makefile.in (REMOTE_EXAMPLES): Remove it.
7446
c9f35b34
KB
74472015-07-25 Kevin Buettner <kevinb@redhat.com>
7448
7449 * remote.c (read_ptid): Return null_ptid when no thread id
7450 is found.
7451 (remote_current_thread): Add log warning for malformed
7452 qC reply.
7453 (remote_start_remote): Add log warning when current thread
7454 not found.
7455
2b4cab86
PA
74562015-07-24 Pedro Alves <palves@redhat.com>
7457
7458 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
7459 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
7460 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
7461
77598427
PA
74622015-07-24 Pedro Alves <palves@redhat.com>
7463
7464 PR gdb/18717
7465 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
7466 is resumed, and extend the debug log.
7467
fe23c31f
PA
74682015-07-24 Pedro Alves <palves@redhat.com>
7469
7470 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
7471
5826e159
PA
74722015-07-24 Pedro Alves <palves@redhat.com>
7473
7474 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
7475 sys/ptrace.h.
7476 * alpha-linux-nat.c: Likewise.
7477 * amd64-linux-nat.c: Likewise.
7478 * arm-linux-nat.c: Likewise.
7479 * hppa-linux-nat.c: Likewise.
7480 * i386-linux-nat.c: Likewise.
7481 * ia64-linux-nat.c: Likewise.
7482 * linux-fork.c: Likewise.
7483 * linux-nat.c: Likewise.
7484 * m32r-linux-nat.c: Likewise.
7485 * m68klinux-nat.c: Likewise.
7486 * mips-linux-nat.c: Likewise.
7487 * nat/linux-btrace.c: Likewise.
7488 * nat/linux-ptrace.c: Likewise.
7489 * nat/linux-ptrace.h
7490 * nat/mips-linux-watch.c: Likewise.
7491 * nat/x86-linux-dregs.c: Likewise.
7492 * ppc-linux-nat.c: Likewise.
7493 * s390-linux-nat.c: Likewise.
7494 * spu-linux-nat.c: Likewise.
7495 * tilegx-linux-nat.c: Likewise.
7496 * x86-linux-nat.c: Likewise.
7497 * xtensa-linux-nat.c: Likewise.
7498
54019719
PA
74992015-07-24 Pedro Alves <palves@redhat.com>
7500
7501 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
7502 __ptrace_request as first parameter type instead of int.
7503 (PTRACE_TYPE_ARG1): Define.
7504 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
7505 that casts first argument to PTRACE_TYPE_ARG1.
7506 * config.in: Regenerate.
7507 * configure: Regenerate.
7508
e3790375
PA
75092015-07-24 Pedro Alves <palves@redhat.com>
7510
7511 * gdb_ptrace.h: Move ...
7512 * nat/gdb_ptrace.h: ... here.
7513 * inf-ptrace.c: Adjust.
7514
eb7aa561
PA
75152015-07-24 Pedro Alves <palves@redhat.com>
7516
7517 * acinclude.m4: Include ptrace.m4.
7518 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
7519 * ptrace.m4: ... to this new file.
7520
cc12ce38
DE
75212015-07-23 Doug Evans <dje@google.com>
7522
7523 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
7524 (load_cu): Handle dummy CUs.
7525 (dw2_do_instantiate_symtab, process_queuef): Ditto.
7526 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
7527
7b849db4
CS
75282015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
7529
7530 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
7531 documentation to say that it returns a list rather than
7532 a FrozenSet.
7533 (linetable_object_methods): Update the docstring of the
7534 "source_line" entry.
7535
d0d84780
PMR
75362015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
7537
7538 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
7539 type to the recursive call instead of the original (maybe
7540 TYPE_CODE_TYPEDEF) type.
7541
c2fbdc59
YQ
75422015-07-23 Yao Qi <yao.qi@linaro.org>
7543
7544 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
7545 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
7546 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
7547
af1b22f3
YQ
75482015-07-21 Yao Qi <yao.qi@linaro.org>
7549
7550 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
7551 Move it to nat/aarch64-linux-hw-point.c.
7552 (aarch64_linux_child_post_startup_inferior): Update.
7553 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
7554 New function.
7555 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
7556 Declare it.
7557
40e050d2
MM
75582015-07-21 Markus Metzger <markus.t.metzger@intel.com>
7559
7560 * common/btrace-common.c (btrace_data_append): Change case label.
7561
3675a06a
YQ
75622015-07-20 Yao Qi <yao.qi@linaro.org>
7563
7564 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
7565 Re-indent the code.
7566 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
7567 "unsigned long long".
7568
b4e1fd61
KB
75692015-07-18 Kevin Buettner <kevinb@redhat.com>
7570
7571 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
7572 to be set for SEC_ALLOC sections too.
7573
554717a3
YQ
75742015-07-17 Yao Qi <yao.qi@linaro.org>
7575
7576 * Makefile.in (HFILES_NO_SRCDIR): Add
7577 nat/aarch64-linux-hw-point.h.
7578 (aarch64-linux-hw-point.o): New rule.
7579 * nat/aarch64-linux-hw-point.h: New file.
7580 * nat/aarch64-linux-hw-point.c: New file.
7581 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
7582 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7583 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7584 (AARCH64_HWP_ALIGNMENT): Likewise.
7585 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
7586 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
7587 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
7588 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
7589 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
7590 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
7591 (struct aarch64_debug_reg_state): Likewise.
7592 (struct arch_lwp_info): Likewise.
7593 (aarch64_linux_set_debug_regs): Likewise.
7594 (aarch64_notify_debug_reg_change): Remove static.
7595 (aarch64_align_watchpoint): Likewise.
7596 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
7597 (aarch64_watchpoint_length): Likewise.
7598 (aarch64_point_encode_ctrl_reg): Likewise
7599 (aarch64_point_is_aligned): Likewise.
7600 (aarch64_dr_state_insert_one_point): Likewise.
7601 (aarch64_dr_state_remove_one_point): Likewise.
7602 (aarch64_handle_breakpoint): Likewise.
7603 (aarch64_handle_aligned_watchpoint): Likewise.
7604 (aarch64_handle_unaligned_watchpoint): Likewise.
7605 (aarch64_handle_watchpoint): Likewise.
7606 * config/aarch64/linux.mh (NAT_FILE): Add
7607 aarch64-linux-hw-point.o.
7608
c67ca4de
YQ
76092015-07-17 Yao Qi <yao.qi@linaro.org>
7610
7611 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
7612 state and don't call aarch64_get_debug_reg_state. All callers
7613 update.
7614 (aarch64_linux_insert_hw_breakpoint): Call
7615 aarch64_get_debug_reg_state earlier.
7616 (aarch64_linux_remove_hw_breakpoint): Likewise.
7617 (aarch64_handle_aligned_watchpoint): Add argument state and
7618 don't call aarch64_get_debug_reg_state. All callers update.
7619 (aarch64_handle_unaligned_watchpoint): Likewise.
7620 (aarch64_handle_watchpoint): Add argument state.
7621 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
7622 earlier.
7623 (aarch64_linux_remove_watchpoint): Likewise.
7624
25abf979
YQ
76252015-07-17 Yao Qi <yao.qi@linaro.org>
7626
7627 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
7628 debug_printf.
7629 (aarch64_handle_unaligned_watchpoint): Likewise.
7630
2ecd81c2
YQ
76312015-07-17 Yao Qi <yao.qi@linaro.org>
7632
7633 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
7634 argument type's type to 'enum target_hw_bp_type'.
7635 (aarch64_dr_state_remove_one_point): Likewise.
7636 (aarch64_handle_breakpoint): Likewise.
7637 (aarch64_linux_insert_hw_breakpoint): Likewise.
7638 (aarch64_linux_remove_hw_breakpoint): Likewise.
7639 (aarch64_handle_aligned_watchpoint): Likewise.
7640
e53b6938
YQ
76412015-07-17 Yao Qi <yao.qi@linaro.org>
7642
7643 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
7644 ptid_get_pid instead of get_thread_id.
7645
6a49a997
YQ
76462015-07-17 Yao Qi <yao.qi@linaro.org>
7647
7648 * remote.c (get_current_thread): Initialise ptid to null_ptid.
7649 (add_current_inferior_and_thread): Don't initialise ptid.
7650
4bcddace
PL
76512015-07-16 Pierre Langlois <pierre.langlois@arm.com>
7652
7653 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
7654 unavailable if invalid.
7655
db1ff28b
JK
76562015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7657
7658 Revert the previous 6 commits:
7659 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7660 Move gdb_regex* to common/
7661 Prepare linux_find_memory_regions_full & co. for move
7662 Move linux_find_memory_regions_full & co.
7663 gdbserver build-id attribute generator
7664 Validate symbol file using build-id
7665
ca5268b6
JK
76662015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7667 Jan Kratochvil <jan.kratochvil@redhat.com>
7668
7669 Validate symbol file using build-id.
7670 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
7671 and 'show validate-build-id'. Add build-id attribute.
7672 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
7673 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
7674 * solib-frv.c (_initialize_frv_solib): Ditto.
7675 * solib-spu.c (set_spu_solib_ops): Ditto.
7676 * solib-svr4.c: Include rsp-low.h.
7677 (NOTE_GNU_BUILD_ID_NAME): New define.
7678 (svr4_validate): New function.
7679 (svr4_copy_library_list): Duplicate field build_id.
7680 (library_list_start_library): Parse 'build-id' attribute.
7681 (svr4_library_attributes): Add 'build-id' attribute.
7682 (_initialize_svr4_solib): Assign validate value.
7683 * solib-target.c (solib.h): Include.
7684 (_initialize_solib_target): Assign validate value.
7685 * solib.c (validate_build_id, show_validate_build_id): New.
7686 (solib_map_sections): Use ops->validate.
7687 (clear_so): Free build_id.
7688 (default_solib_validate): New function.
7689 (_initialize_solib): Add "validate-build-id".
7690 * solib.h (default_solib_validate): New declaration.
7691 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
7692 (target_so_ops): New field 'validate'.
7693
700ca40f
JK
76942015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7695 Jan Kratochvil <jan.kratochvil@redhat.com>
7696
7697 gdbserver build-id attribute generator.
7698 * features/library-list-svr4.dtd (library-list-svr4): New
7699 'build-id' attribute.
7700
9904185c
JK
77012015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7702 Jan Kratochvil <jan.kratochvil@redhat.com>
7703
7704 Move linux_find_memory_regions_full & co.
7705 * linux-tdep.c (nat/linux-maps.h): Include.
7706 (gdb_regex.h): Remove the include.
7707 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
7708 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
7709 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
7710 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
7711 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
7712 and target/target.h.
7713 (struct smaps_vmflags, read_mapping, decode_vmflags)
7714 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
7715 (linux_find_memory_regions_full): Move from linux-tdep.c.
7716 * nat/linux-maps.h (read_mapping): New declaration.
7717 (linux_find_memory_region_ftype, enum filterflags): Moved from
7718 linux-tdep.c.
7719 (linux_find_memory_regions_full): New declaration.
7720 * target.c (target/target-utils.h): Include.
7721 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
7722 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
7723 definitions to target/target-utils.c.
7724 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
7725 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
7726 from target.c.
7727 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
7728 (read_alloc): New declaration.
7729 (read_stralloc_func_ftype): New typedef.
7730 (read_stralloc): New declaration.
7731 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
7732
f7af1fcd
JK
77332015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7734 Jan Kratochvil <jan.kratochvil@redhat.com>
7735
7736 Prepare linux_find_memory_regions_full & co. for move.
7737 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
7738 (linux_find_memory_regions_full): Change signature and prepare
7739 for moving to linux-maps.
7740 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
7741 (linux_find_memory_regions_thunk): New.
7742 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
7743 (linux_find_memory_regions_gdb): New.
7744 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
7745 (linux_make_mappings_corefile_notes): Use
7746 linux_find_memory_regions_gdb.
7747 * target.c (read_alloc_pread_ftype): New typedef.
7748 (target_fileio_read_alloc_1_pread): New function.
7749 (read_alloc): Refactor from target_fileio_read_alloc_1.
7750 (read_stralloc_func_ftype): New typedef.
7751 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
7752 (read_stralloc): Refactored from target_fileio_read_stralloc.
7753 (target_fileio_read_stralloc): New implementation, use read_stralloc.
7754
6e5b4429
JK
77552015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7756
7757 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
7758 common/gdb_regex.h.
7759 (COMMON_OBS): Add gdb_regex.o.
7760 (gdb_regex.o): New.
7761 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
7762 --without-included-regex and USE_INCLUDED_REGEX.
7763 * common/gdb_regex.c: New file from utils.c functions.
7764 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
7765 file wrapping define name.
7766 * configure: Rebuilt.
7767 * configure.ac (gdb_use_included_regex, --without-included-regex)
7768 (USE_INCLUDED_REGEX): Move them to common/common.m4.
7769 * gdb_regex.h: Move it to common/gdb_regex.h.
7770 * utils.c: Remove include gdb_regex.h.
7771 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
7772 (compile_rx_or_error): Move them to common/gdb_regex.c.
7773
ddc98fbf
JK
77742015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7775 Jan Kratochvil <jan.kratochvil@redhat.com>
7776
7777 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7778 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
7779 common/target-utils.h.
7780 (COMMON_OBS): Add target-utils.o.
7781 (linux-maps.o, target-utils.o): New.
7782 * target/target-utils.c: New file.
7783 * target/target-utils.h: New file.
7784 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
7785 * config/i386/linux64.mh (NATDEPFILES): Ditto.
7786 * nat/linux-maps.c: New file.
7787 * nat/linux-maps.h: New file.
7788
e7b01ce0
MM
77892015-07-15 Markus Metzger <markus.t.metzger@intel.com>
7790 Pedro Alves <palves@redhat.com>
7791
7792 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
7793 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
7794 (perf_event_read_bts): Change the type of SIZE and READ.
7795 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
7796 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
7797 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
7798 mmap page.
7799 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
7800 buffer size to UINT_MAX.
7801 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
7802 DATA_TAIL.
7803 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
7804 <last_head>: Change type.
7805 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
7806 * common/btrace-common.c (btrace_data_append): Change the type of
7807 SIZE.
7808 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
7809 check.
7810
f168693b
SM
78112015-07-14 Simon Marchi <simon.marchi@ericsson.com>
7812
7813 * gdbtypes.h (CHECK_TYPEDEF): Remove.
7814 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
7815 with check_typedef.
7816 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
7817 (ada_array_length): Likewise.
7818 (find_parallel_type_by_descriptive_type): Likewise.
7819 (ada_check_typedef): Likewise.
7820 * arm-tdep.c (arm_return_in_memory): Likewise.
7821 * ax-gdb.c (gen_trace_static_fields): Likewise.
7822 (gen_struct_ref_recursive): Likewise.
7823 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7824 (variable: block COLONCOLON name): Likewise.
7825 (qualified_name: TYPENAME COLONCOLON name): Likewise.
7826 * c-lang.c (classify_type): Likewise.
7827 * c-typeprint.c (c_print_type): Likewise.
7828 (c_print_typedef): Likewise.
7829 (c_type_print_base): Likewise.
7830 * c-valprint.c (c_val_print): Likewise.
7831 * compile/compile-c-types.c (convert_type): Likewise.
7832 * compile/compile-object-load.c (get_out_value_type): Likewise.
7833 * completer.c (add_struct_fields): Likewise.
7834 (expression_completer): Likewise.
7835 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
7836 (cp_lookup_nested_symbol_1): Likewise.
7837 (cp_lookup_nested_symbol): Likewise.
7838 * cp-valprint.c (cp_print_value_fields): Likewise.
7839 (cp_print_static_field): Likewise.
7840 * d-valprint.c (d_val_print): Likewise.
7841 * eval.c (evaluate_subexp_standard): Likewise.
7842 (evaluate_subexp_for_sizeof): Likewise.
7843 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7844 * f-typeprint.c (f_type_print_base): Likewise.
7845 * f-valprint.c (f_val_print): Likewise.
7846 * gdbtypes.c (get_discrete_bounds): Likewise.
7847 (create_array_type_with_stride): Likewise.
7848 (type_name_no_tag_or_error): Likewise.
7849 (lookup_struct_elt_type): Likewise.
7850 (get_unsigned_type_max): Likewise.
7851 (internal_type_vptr_fieldno): Likewise.
7852 (set_type_vptr_fieldno): Likewise.
7853 (internal_type_vptr_basetype): Likewise.
7854 (set_type_vptr_basetype): Likewise.
7855 (get_vptr_fieldno): Likewise.
7856 (is_integral_type): Likewise.
7857 (is_scalar_type): Likewise.
7858 (is_scalar_type_recursive): Likewise.
7859 (distance_to_ancestor): Likewise.
7860 (is_unique_ancestor_worker): Likewise.
7861 (check_types_equal): Likewise.
7862 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
7863
45280282
IB
78642015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
7865
7866 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
7867 also test for language_d.
7868 (dwarf2_compute_name): Likewise.
7869 (read_func_scope): Likewise.
7870 (read_structure_type): Likewise.
7871 (new_symbol_full): Likewise.
7872 (determine_prefix): Likewise.
7873 (read_import_statement): Use dot as the separator for language_d.
7874 (typename_concat): Likewise, but don't prefix the D main function.
7875
99fe86f7
PB
78762015-07-14 Peter Bergner <bergner@vnet.ibm.com>
7877
7878 * nat/linux-namespaces.c (setns): Rename from this ...
7879 (do_setns): ... to this. Support calling setns if it exists.
7880 (mnsh_handle_setns): Call do_setns.
7881
d5131498
YQ
78822015-07-13 Yao Qi <yao.qi@linaro.org>
7883
7884 * exec.c (exec_file_attach): Add period at the end of error
7885 message.
7886
97605e61
AB
78872015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
7888
7889 * tui/tui-win.c (window_name_completer): New function.
7890 (focus_completer): Call window_name_completer. All old content
7891 moved into window_name_completer.
7892 (winheight_completer): New function.
7893 (_initialize_tui_win): Rename variable. Add completer to
7894 winheight command. Update doc string on winheight.
7895
8d6dbeb4
SL
78962015-07-12 Sandra Loosemore <sandra@codesourcery.com>
7897
7898 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
7899 all nios2 mach variants.
7900
a0e28e54
KB
79012015-07-10 Kevin Buettner <kevinb@redhat.com>
7902
7903 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
7904 of target_read_memory.
7905
c101f28f
AB
79062015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7907
7908 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
7909 string copy.
7910 (parse_scrolling_args): Likewise.
7911
150375dc
AB
79122015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7913
7914 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
7915 names in this function.
7916
6dce28e4
AB
79172015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7918
7919 * tui/tui-data.h (SRC_NAME): Convert to lower case.
7920 (CMD_NAME): Likewise.
7921 (DATA_NAME): Likewise.
7922 (DISASSEM_NAME): Likewise.
7923 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
7924 (tui_set_win_height): Likewise.
7925 (parse_scrolling_args): Likewise.
7926
485668e5
MM
79272015-07-10 Markus Metzger <markus.t.metzger@intel.com>
7928
7929 * record-btrace.c (record_btrace_goto_begin)
7930 (record_btrace_goto_end, record_btrace_goto): Move call to
7931 print_stack_frame ...
7932 (record_btrace_set_replay): ... here. Set stop_pc.
7933 * record-full.c (record_full_goto_entry): Set stop_pc.
7934
58d2eda5
PL
79352015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7936
7937 * NEWS: Mention support for tracepoints on aarch64-linux.
7938
7671bf47
PL
79392015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7940
7941 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
7942 function. Return 1.
7943 (the_low_target): Install it.
7944
7890fb45
PL
79452015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7946
7947 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
7948 * gdb.trace/collection.exp: Likewise.
7949 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
7950 * gdb.trace/mi-trace-unavailable.exp: Likewise.
7951 * gdb.trace/report.exp: Likewise.
7952 * gdb.trace/trace-break.exp: Likewise.
7953 * gdb.trace/unavailable.exp: Likewise.
7954 * gdb.trace/while-dyn.exp: Likewise.
7955
ea873d8e
PL
79562015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7957
7958 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
7959 (aarch64_gen_return_address): New function.
7960 (aarch64_gdbarch_init): Hook it.
7961
02a2a705
PL
79622015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7963
7964 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
7965 swallow NOT_AVAILABLE_ERROR.
7966 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
7967 available_p is not set.
7968 (aarch64_stub_frame_unwind_stop_reason): New function.
7969 (aarch64_stub_unwind): Install it.
7970
7dfa3edc
PL
79712015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7972
7973 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
7974 field.
7975 (aarch64_make_prologue_cache_1): New function, factored out from
7976 aarch64_make_prologue_cache. Do not allocate cache. Set
7977 available_p.
7978 (aarch64_make_prologue_cache): Reimplement wrapping
7979 aarch64_make_prologue_cache_1, and swallowing
7980 NOT_AVAILABLE_ERROR.
7981 (aarch64_prologue_frame_unwind_stop_reason): New function.
7982 Return UNWIND_UNAVAILABLE if available_p is not set.
7983 (aarch64_prologue_unwind): Install it.
7984 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
7985 checks into aarch64_prologue_frame_unwind_stop_reason. Call
7986 frame_id_build_unavailable_stack if available_p is not set.
7987
db634143
PL
79882015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7989
7990 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
7991 fields.
7992 (aarch64_scan_prologue): Set prev_pc.
7993 (aarch64_make_prologue_cache): Set func.
7994 (aarch64_make_stub_cache): Set prev_pc.
7995 (aarch64_prologue_this_id): Remove local variables id, pc and
7996 func. Read prev_pc and func from cache.
7997 (aarch64_stub_this_id): Read prev_pc from cache.
7998
8b61f75d
PL
79992015-07-09 Pierre Langlois <pierre.langlois@arm.com>
8000
8001 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
8002 argument this_cache. Remove unused local variables reg and
8003 unwound_fp. Return early if this_cache is already set. Set
8004 this_cache.
8005 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
8006
7c8edfae
PL
80072015-07-09 Pierre Langlois <pierre.langlois@arm.com>
8008
8009 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
8010 New argument this_cache. Return early if this_cache is already
8011 set. Set this_cache.
8012 (aarch64_prologue_this_id): Update call to
8013 aarch64_make_prologue_cache.
8014 (aarch64_prologue_prev_register): Likewise.
8015 (aarch64_normal_frame_base): Likewise.
8016
938c69a1
SM
80172015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8018
8019 * c-valprint.c (c_val_print): Factor out memberptr printing code
8020 from c_val_print to ...
8021 (c_val_print_memberptr): ... this new function.
8022
49f7fe28
SM
80232015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8024
8025 * c-valprint.c (c_val_print): Factor out int printing code to ...
8026 (c_val_print_int): ... this new function.
8027
9e4f353c
SM
80282015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8029
8030 * c-valprint.c (c_val_print): Factor out struct and union
8031 printing code to ...
8032 (c_val_print_struct): ... this new function ...
8033 (c_val_print_union): ... and this new function.
8034
1c67f032
SM
80352015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8036
8037 * c-valprint.c (c_val_print): Factor out pointer printing code
8038 to ...
8039 (c_val_print_ptr): ... this new function.
8040
0b6ef777
SM
80412015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8042
8043 * c-valprint.c (c_valprint): Factor our array printing code from
8044 c_val_print to ...
8045 (c_val_print_array): ... this new function.
8046
1033c33c
SM
80472015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8048
8049 * c-valprint.c (c_val_print): Factor out pointer printing code
8050 to ...
8051 (print_unpacked_pointer): ... this new function.
8052
f6b93c34
SM
80532015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8054
8055 * c-valprint.c (c_val_print): Remove an assignment to i and move
8056 its declaration.
8057
0f4576e3
YQ
80582015-07-09 Yao Qi <yao.qi@linaro.org>
8059
8060 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
8061 argument ptid. Update comments. Caller update.
8062
37fdfe4c
MM
80632015-07-09 Markus Metzger <markus.t.metzger@intel.com>
8064
8065 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
8066 mnt packets.
8067
80a2b330
MM
80682015-07-09 Markus Metzger <markus.t.metzger@intel.com>
8069
8070 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
8071
4ab31498
SM
80722015-07-08 Simon Marchi <simon.marchi@ericsson.com>
8073
8074 * progspace.c (delete_program_space): Add missing spaces.
8075
7a41607e
SM
80762015-07-08 Simon Marchi <simon.marchi@ericsson.com>
8077
8078 * inferior.c (delete_inferior_1): Rename to ...
8079 (delete_inferior): ..., remove 'silent' parameter, delete
8080 program space when unused and remove call to prune_program_spaces.
8081 Remove the old, unused, delete_inferior.
8082 (delete_inferior_silent): Remove.
8083 (prune_inferiors): Change call from delete_inferior_1 to
8084 delete_inferior and remove 'silent' parameter. Remove call to
8085 prune_program_spaces.
8086 (remove_inferior_command): Idem.
8087 * inferior.h (delete_inferior_1): Rename to...
8088 (delete_inferior): ..., remove 'silent' parameter and remove the
8089 original delete_inferior.
8090 (delete_inferior_silent): Remove.
8091 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
8092 delete_inferior_1 to delete_inferior and remove 'silent'
8093 parameter.
8094 * progspace.c (prune_program_spaces): Remove.
8095 (pspace_empty_p): Rename to...
8096 (program_space_empty_p): ... and make non-static.
8097 (delete_program_space): New.
8098 * progspace.h (prune_program_spaces): Remove declaration.
8099 (program_space_empty_p): New declaration.
8100 (delete_program_space): New declaration.
8101 * monitor.c (monitor_close): Replace call to
8102 delete_thread_silent and delete_inferior_silent with
8103 discard_all_inferiors.
8104
a9bd710f
PP
81052015-07-08 Patrick Palka <patrick@parcs.ath.cx>
8106
8107 * defs.h (deprecated_register_changed_hook): Remove prototype.
8108 * interps.c (clear_iterpreter_hooks): Remove reference to
8109 deprecated_register_changed_hook.
8110 * top.c (deprecated_register_changed_hook): Remove prototype.
8111 * valops.c (value_assign): Remove reference to
8112 deprecated_register_changed_hook.
8113 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
8114 Add comment documenting the function.
8115 (tui_register_changed_observer): Define.
8116 (tui_install_hooks): Remove reference to
8117 deprecated_register_changed_hook. Set
8118 tui_register_changed_observer.
8119 (tui_remove_hooks): Remove reference to
8120 deprecated_register_changed_hook. Unset
8121 tui_register_changed_observer.
8122
08464196
JK
81232015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8124
8125 PR compile/18484
8126 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
8127
bcf5c1d9
RC
81282015-07-08 Robert O'Callahan <robert@ocallahan.org>
8129
8130 PR exp/18617
8131 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
8132
e8643a45
MM
81332015-07-08 Markus Metzger <markus.t.metzger@intel.com>
8134
8135 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
8136
76fb6829
MM
81372015-07-08 Markus Metzger <markus.t.metzger@intel.com>
8138
8139 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
8140 Use safe_strerror() instead of strerror().
8141
82c40d4b
YQ
81422015-07-07 Yao Qi <yao.qi@linaro.org>
8143
8144 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
8145 * features/arm-with-m-fpa-layout.c: Regenerated.
8146 * features/arm-with-m-vfp-d16.xml: Likewise.
8147 * features/arm-with-m-vfp-d16.c: Regenerated.
8148 * features/arm-with-m.xml: Likewise.
8149 * features/arm-with-m.c: Regenerated.
8150 * features/arm-with-neon.xml: Likewise.
8151 * features/arm-with-neon.c: Regenerated.
8152 * features/arm-with-vfpv2.xml: Likewise.
8153 * features/arm-with-vfpv2.c: Regenerated.
8154 * features/arm-with-vfpv3.xml: Likewise.
8155 * features/arm-with-vfpv3.c: Regenerated.
8156
607685ec
YQ
81572015-07-07 Yao Qi <yao.qi@linaro.org>
8158
8159 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
8160 arm-linux-nat.c.
8161 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
8162 elf/external.h.
8163 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
8164 if target is 32-bit.
8165 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
8166 if target is 32-bit.
8167 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
8168 if target is 32-bit.
8169 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
8170 if target is 32-bit.
8171 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
8172 (aarch64_linux_read_description): Return the right target
8173 description.
8174 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
8175 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
8176 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
8177 arm-linux-tdep.o.
8178
f1b67888
YQ
81792015-07-07 Yao Qi <yao.qi@linaro.org>
8180
8181 * aarch32-linux-nat.c: New file.
8182 * aarch32-linux-nat.h: New file.
8183 * arm-linux-nat.c: Include aarch32-linux-nat.h.
8184 (fetch_regs): Move code to aarch32-linux-nat.c. Call
8185 aarch32_gp_regcache_supply.
8186 (store_regs): Move code to aarch32-linux-nat.c. Call
8187 aarch32_gp_regcache_collect.
8188 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
8189 aarch32_vfp_regcache_supply.
8190 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
8191 aarch32_vfp_regcache_collect.
8192 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
8193
179bfe82
YQ
81942015-07-07 Yao Qi <yao.qi@linaro.org>
8195
8196 * arm-linux-nat.c (store_fpregister): Remove.
8197 (store_register): Likewise.
8198 (fetch_fpregister): Likewise.
8199 (fetch_register): Likewise.
8200 (arm_linux_store_inferior_registers): Call store_regs and
8201 store_fpregs instead.
8202 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
8203 fetch_regs instead.
8204
6008fc5f
AB
82052015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8206
8207 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
8208 and focus commands.
8209
7c79d316
JB
82102015-07-06 Joel Brobecker <brobecker@adacore.com>
8211
8212 * NEWS: Create a new section for the next release branch.
8213 Rename the section of the current branch, now that it has
8214 been cut.
8215
f2232bea
JB
82162015-07-06 Joel Brobecker <brobecker@adacore.com>
8217
8218 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
8219 * version.in: Bump version to 7.10.50.DATE-cvs.
8220
66c4b3e8
LM
82212015-07-06 Luis Machado <lgustavo@codesourcery.com>
8222
8223 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
8224 breakpoints in a special way.
8225 (remove_breakpoint): Likewise.
8226 (mark_breakpoints_out): Likewise.
8227
bcd8537c
AB
82282015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8229
8230 * doc/gdb.texinfo (TUI): Add comma after @xref.
8231
10e9aaa3
AB
82322015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8233
8234 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
8235 instead of casting the structure type.
8236
8a13d42d
SM
82372015-07-06 Simon Marchi <simon.marchi@ericsson.com>
8238
8239 * valops.c (search_struct_field): Remove OFFSET parameter.
8240 (value_cast_structs): Adjust calls to search_struct_field.
8241 (value_struct_elt): Same.
8242 (find_overload_match): Same.
8243
a844296a
SM
82442015-07-06 Simon Marchi <simon.marchi@ericsson.com>
8245
8246 * value.c (value_fetch_lazy): Update comment, change return
8247 value to void.
8248 * value.h (value_fetch_lazy): Change return value to void.
8249
f41cbf58
AB
82502015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8251
8252 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
8253 (tui_win_name): Make parameter and result const.
8254 * tui/tui-data.h (tui_win_name): Make parameter and result const.
8255
118ca224
PP
82562015-07-06 Patrick Palka <patrick@parcs.ath.cx>
8257
8258 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
8259 use printf_unfiltered.
8260 (set_mpx_cmd): Add missing trailing space to command string
8261 literal.
8262 (_initialize_i386_tdep): Give the "mpx" prefix command its
8263 correct name.
8264
1b485e67
KB
82652015-07-02 Kevin Buettner <kevinb@redhat.com>
8266
8267 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
8268 (enum rx_frame_type): New.
8269 (struct rx_prologue): Add new field `frame_type'.
8270 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
8271 parameter in the prologue struct. Add code for recording
8272 locations of PC and PSW for fast interrupt and exception frames.
8273 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
8274 (rx_analyze_frame_prologue): Add `frame_type' parameter.
8275 (rx_frame_type): New function.
8276 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
8277 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
8278 `this_cache'.
8279 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 8280 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
8281 RX_FRAME_TYPE_FAST_INTERRUPT.
8282 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
8283 (rx_frame_sniffer, rx_exception_sniffer): New functions.
8284 (rx_frame_unwind): Use rx_frame_sniffer instead of
8285 default_frame_sniffer.
8286 (rx_frame_unwind): New unwinder.
8287 (rx_gdbarch_init): Register new unwinder.
8288
0561fea4
KB
82892015-07-02 Kevin Buettner <kevinb@redhat.com>
8290
8291 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
8292 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
8293 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
8294 and RX_FPSW_REGNUM.
8295 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
8296
decf8d9a
JK
82972015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8298
8299 Fix GCC false warning.
8300 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
8301
2fd0f80d
YQ
83022015-07-02 Yao Qi <yao.qi@linaro.org>
8303
8304 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
8305 typo in the debugging message.
8306
b0627500
MM
83072015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8308
8309 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
8310 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
8311 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
8312 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
8313 (btrace_maint_clear): New.
8314 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
8315 (pt_print_packet, btrace_maint_decode_pt)
8316 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
8317 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
8318 (maint_btrace_packet_history_cmd)
8319 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
8320 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
8321 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
8322 (maint_info_btrace_cmd, _initialize_btrace): New.
8323 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
8324 (btrace_maint_packet_history, btrace_maint_info): New.
8325 (btrace_thread_info) <maint>: New.
8326 * NEWS: Announce it.
8327
9be54cae
MM
83282015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8329
8330 * btrace.c (btrace_fetch): Append the new trace data.
8331 (btrace_clear): Clear the stored trace data.
8332 * btrace.h (btrace_thread_info) <data>: New.
8333 * common/btrace-common.h (btrace_data_clear)
8334 (btrace_data_append): New.
8335 * common/btrace-common.c (btrace_data_clear)
8336 (btrace_data_append): New.
8337
010a18a1
MM
83382015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8339
8340 * nat/linux-btrace.c (linux_enable_bts): Check for
8341 PERF_ATTR_SIZE_VER5.
8342 Check for data_offset and data_size fields. Use them.
8343
b20a6524
MM
83442015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8345
8346 * NEWS: Announce new commands "record btrace pt" and "record pt".
8347 Announce new options "set|show record btrace pt buffer-size".
8348 * btrace.c: Include "rsp-low.h".
8349 Include "inttypes.h".
8350 (btrace_add_pc): Add forward declaration.
8351 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
8352 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
8353 (btrace_compute_ftrace_pt): New.
8354 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
8355 (check_xml_btrace_version): Update version check.
8356 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
8357 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
8358 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
8359 (btrace_pt_children): New.
8360 (btrace_children): Add support for "pt".
8361 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
8362 (btrace_conf_children): Add support for "pt".
8363 * btrace.h: Include "intel-pt.h".
8364 (btrace_pt_error): New.
8365 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
8366 (btrace_data_empty): Support BTRACE_FORMAT_PT.
8367 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
8368 (struct btrace_config_pt): New.
8369 (struct btrace_config)<pt>: New.
8370 (struct btrace_data_pt_config, struct btrace_data_pt): New.
8371 (struct btrace_data)<pt>: New.
8372 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
8373 (pt): New.
8374 * features/btrace.dtd (btrace)<pt>: New.
8375 (pt, pt-config, cpu): New.
8376 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
8377 (perf_event_pt_event_type, kernel_supports_pt)
8378 (linux_supports_pt): New.
8379 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
8380 (linux_enable_bts): Free tinfo on error.
8381 (linux_enable_pt): New.
8382 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
8383 (linux_disable_pt): New.
8384 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
8385 (linux_fill_btrace_pt_config, linux_read_pt): New.
8386 (linux_read_btrace): Support BTRACE_FORMAT_PT.
8387 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
8388 (struct btrace_target_info)<pt>: New.
8389 * record-btrace.c (set_record_btrace_pt_cmdlist)
8390 (show_record_btrace_pt_cmdlist): New.
8391 (record_btrace_print_pt_conf): New.
8392 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
8393 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
8394 (cmd_record_btrace_pt_start): New.
8395 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
8396 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
8397 (_initialize_record_btrace): Add new commands.
8398 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
8399 (remote_protocol_features): Add "Qbtrace:pt".
8400 Add "Qbtrace-conf:pt:size".
8401 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
8402 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
8403 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
8404 (_initialize_remote): Add new commands.
8405
58bfce93
MM
84062015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8407
8408 * configure.ac: check for libipt
8409 * configure: Regenerate.
8410 * config.in: Regenerate.
8411 * Makefile.in (LIBIPT): New.
8412 (CLIBS): Add $LIBIPT.
8413 * NEWS: document new configure options
8414
b0fd6b30
JK
84152015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8416
8417 * compile/compile-object-load.c (compile_object_load): Replace debug
8418 message "lookup undefined ELF symbol" by 3 more specific messages.
8419
e6280369
KB
84202015-07-01 Kevin Buettner <kevinb@redhat.com>
8421
8422 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
8423 (rl78_register_type): Add case for RL78_PSW_REGNUM.
8424 (rl78_gdbarch_init): Initialize rl78_psw_type.
8425
bbcbf914
PP
84262015-07-01 Patrick Palka <patrick@parcs.ath.cx>
8427
8428 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
8429 Update commentary. Always refresh the registers when frame
8430 information has changed.
8431 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
8432 Change return type to int. Return 1 if frame information has
8433 changed, 0 otherwise.
8434 (tui_before_prompt): Update commentary.
8435 * tui/tui-stack.h (tui_show_frame_info): Change return type to
8436 int.
8437
0986c744
PP
84382015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8439
8440 PR tui/13378
8441 * frame.c (select_frame): Remove reference to
8442 deprecated_selected_frame_level_changed_hook.
8443 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
8444 declaration.
8445 * stack.c (deprecated_selected_frame_level_changed_hook):
8446 Likewise.
8447 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
8448 Rename to ...
8449 (tui_refresh_frame_and_register_information): ... this. Bail
8450 out if there is no stack. Don't update register information
8451 unless registers_too_p is true.
8452 (tui_print_frame_info_listing_hook): Rename to ...
8453 (tui_dummy_print_frame_info_listing_hook): ... this.
8454 (tui_before_prompt): New function.
8455 (tui_normal_stop): New function.
8456 (tui_before_prompt_observer): New observer.
8457 (tui_normal_stop_observer): New observer.
8458 (tui_install_hooks): Set
8459 deprecated_print_frame_info_listing_hook to
8460 tui_dummy_print_frame_info_listing_hook. Register
8461 tui_before_prompt_observer to call tui_before_prompt and
8462 tui_normal_stop_observer to call tui_normal_stop. Remove
8463 reference to deprecated_selected_frame_level_changed_hook.
8464 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
8465 and tui_normal_stop_observer. Remove reference to
8466 deprecated_selected_frame_level_changed_hook.
8467
b5fca6d7
PP
84682015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8469
8470 PR tui/13378
8471 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
8472 return an int instead of void. Return whether the locator
8473 window has changed.
8474 (tui_show_frame_info): If the locator info has not changed, then
8475 bail out early to avoid refreshing the windows.
8476
c45613e3
PP
84772015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8478
8479 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
8480 LOCATOR_WIN to tui_alloc_content.
8481
7b9be803
YQ
84822015-06-30 Yao Qi <yao.qi@linaro.org>
8483
8484 PR tdep/18605
8485 * arm-tdep.c (arm_get_next_pc_raw): Break for media
8486 instructions.
8487
fd6e021d
KB
84882015-06-29 Kevin Buettner <kevinb@redhat.com>
8489
78ab7e9d
KB
8490 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
8491 (rx_dwarf_reg_to_regnum): New function.
8492 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
8493 unwinding.
fd6e021d 8494
28bf096c
PA
84952015-06-29 Pedro Alves <palves@redhat.com>
8496
8497 PR threads/18127
8498 * infcall.c (run_inferior_call): On infcall success, if the thread
8499 was marked stopped before, reset it back to stopped.
8500 * infrun.c (resume): Don't suppress the set_running calls when
8501 doing an infcall.
8502 (normal_stop): Only discard the finish_thread_state cleanup if the
8503 infcall succeeded.
8504
2880b51c 85052015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
8506
8507 * MAINTAINERS (Write After Approval): Update my email address.
8508
ee93cd5e
KS
85092015-06-26 Keith Seitz <keiths@redhat.com>
8510 Doug Evans <dje@google.com>
8511
8512 PR 16253
8513 * block.c (block_lookup_symbol): For non-function blocks,
8514 continue to search for a symbol with an exact domain match
8515 Otherwise, return any previously found "best domain" symbol.
8516 (block_lookup_symbol_primary): Likewise.
8517
fc637f04
PP
85182015-06-26 Patrick Palka <patrick@parcs.ath.cx>
8519
8520 * NEWS: Mention the new option "history remove-duplicates".
8521 * top.c (history_remove_duplicates): New static variable.
8522 (show_history_remove_duplicates): New static function.
8523 (gdb_add_history): Conditionally remove duplicate history
8524 entries.
8525 (init_main): Add "history remove-duplicates" option.
8526
2e52ae68
PP
85272015-06-26 Patrick Palka <patrick@parcs.ath.cx>
8528
8529 * tui/tui-win.c (focus_completer): New static function.
8530 (_initialize_tui_win): Set the completion function of the
8531 "focus" command to focus_completer.
8532
6e22494e
JK
85332015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8534
8535 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
8536 and language_asm..
8537 * symtab.c (find_function_start_sal): Likewise.
8538
f8773be1
GB
85392015-06-25 Gary Benson <gbenson@redhat.com>
8540
8541 * solib.c (solib_find_1): Set local variable sysroot to NULL if
8542 it is the empty string after trailing slashes have been stripped.
8543
a3be80c3
GB
85442015-06-25 Gary Benson <gbenson@redhat.com>
8545
8546 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
8547 * infrun.c (follow_exec): Likewise.
8548 * remote.c (remote_filesystem_is_local): Likewise.
8549 * solib.c (solib_find_1): Likewise.
8550
32fad71f
KS
85512015-06-24 Keith Seitz <keiths@redhat.com>
8552
8553 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
8554 return value from lrealpath.
8555
87d1b309
MF
85562015-06-24 Mike Frysinger <vapier@gentoo.org>
8557
8558 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
8559
23bf70af
MF
85602015-06-24 Mike Frysinger <vapier@gentoo.org>
8561
8562 * remote-sim.c: Include gdb_bfd.h.
8563 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
8564 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
8565
5cd867b4
YQ
85662015-06-24 Yao Qi <yao.qi@linaro.org>
8567
8568 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
8569 set_gdbarch_get_siginfo_type.
8570 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8571 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8572 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8573 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
8574 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
8575 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8576 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
8577 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
8578 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
8579 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
8580
dc06243f
GB
85812015-06-24 Gary Benson <gbenson@redhat.com>
8582
8583 * common/buffer.c (stdint.h): Do not include.
8584 * common/print-utils.c (stdint.h): Likewise.
8585 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
8586 * compile/compile-c-types.c (gdb_assert.h): Likewise.
8587 * ft32-tdep.c (gdb_assert.h): Likewise.
8588 * guile/scm-utils.c (stdint.h): Likewise.
8589 * i386-linux-tdep.c (stdint.h): Likewise.
8590 * i386-tdep.c (stdint.h): Likewise.
8591 * nat/linux-btrace.c (stdint.h): Likewise.
8592 * nat/linux-btrace.h (stdint.h): Likewise.
8593 * nat/linux-ptrace.c (stdint.h): Likewise.
8594 * nat/mips-linux-watch.h (stdint.h): Likewise.
8595 * ppc-linux-nat.c (stdint.h): Likewise.
8596 * python/python-internal.h (stdint.h): Likewise.
8597 * stub-termcap.c (stdlib.h): Likewise.
8598 * target/target.h (stdint.h): Likewise.
8599 * xtensa-linux-nat.c (stdint.h): Likewise.
8600
0fc26caf
PP
86012015-06-23 Patrick Palka <patrick@parcs.ath.cx>
8602
8603 * top.c (init_history): Look at errno after calling strtol to
8604 properly map large GDBHISTSIZE values to infinity.
8605
a38fe4fe
DE
86062015-06-23 Doug Evans <dje@google.com>
8607
8608 * inferior.h (struct inferior_suspend_state): Delete, unused.
8609 All references deleted.
8610
7564fe45
MF
86112015-06-23 Mike Frysinger <vapier@gentoo.org>
8612
8613 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
8614 (microblaze_push_dummy_call): Likewise.
8615 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
8616 and set_gdbarch_push_dummy_call.
8617
0bdb2f78
YQ
86182015-06-23 Yao Qi <yao.qi@linaro.org>
8619
8620 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
8621 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
8622 (amd64_linux_store_inferior_registers): Likewise.
8623 * arm-linux-nat.c (fetch_fpregister): Likewise.
8624 (fetch_fpregs, store_fpregister): Likewise.
8625 (store_fpregister, store_fpregs): Likewise.
8626 (fetch_register, fetch_regs): Likewise.
8627 (store_register, store_regs): Likewise.
8628 (fetch_vfp_regs, store_vfp_regs): Likewise.
8629 (arm_linux_read_description): Check have_ptrace_getregset is
8630 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
8631 or TRIBOOL_FALSE.
8632 * i386-linux-nat.c (fetch_xstateregs): Check
8633 have_ptrace_getregset is not TRIBOOL_TRUE.
8634 (store_xstateregs): Likewise.
8635 * linux-nat.c (have_ptrace_getregset): Change its type to
8636 enum tribool.
8637 * linux-nat.h (tribool): New enum.
8638 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
8639 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
8640
18a94d75
DE
86412015-06-19 Doug Evans <dje@google.com>
8642
8643 * NEWS: Mention Sun's version of stabs is no longer supported.
8644 * elfread.c (free_elfinfo): Delete. All uses updated.
8645 (elfstab_offset_sections): Delete. All uses updated.
8646 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
8647 * psympriv.h (partial_symtab) <section_offsets>: Delete.
8648 All uses updated.
8649 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
8650 All callers updated.
8651
124e13d9
SM
86522015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8653
8654 * common/rsp-low.c (needs_escaping): New.
8655 (remote_escape_output): Add unit_size parameter. Refactor to
8656 support multi-byte addressable units. Rename parameters.
8657 * common/rsp-low.h (remote_escape_output): Add unit_size
8658 parameter and rename others. Update doc.
8659 * remote.c (align_for_efficient_write): New.
8660 (remote_write_bytes_aux): Add unit_size parameter and use it.
8661 Rename some variables. Update doc.
8662 (remote_xfer_partial): Get unit size and use it.
8663 (remote_read_bytes_1): Add unit_size parameter and use it.
8664 Rename some variables. Update doc.
8665 (remote_write_bytes): Same.
8666 (remote_xfer_live_readonly_partial): Same.
8667 (remote_read_bytes): Same.
8668 (remote_flash_write): Update call to remote_write_bytes_aux.
8669 (remote_write_qxfer): Update call to remote_escape_output.
8670 (remote_search_memory): Same.
8671 (remote_hostio_pwrite): Same.
8672
6ae88661
LM
86732015-06-17 Luis Machado <lgustavo@codesourcery.com>
8674
8675 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
8676 locations as inserted.
8677 Update and expand comment about permanent locations.
8678 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
8679 Move comment to add_location_to_breakpoint.
8680 (update_global_location_list): Don't error out if a permanent
8681 breakpoint is not marked inserted.
8682 Don't error out if a non-permanent breakpoint location is inserted on
8683 top of a permanent breakpoint.
8684
da4616f6
LM
86852015-06-17 Luis Machado <lgustavo@codesourcery.com>
8686
8687 * breakpoint.c (make_breakpoint_permanent): Remove unused
8688 function.
8689 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
8690
bc460514
PP
86912015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8692
8693 PR gdb/16999
8694 * NEWS: Mention new GDBHISTSIZE behavior.
8695 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
8696 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
8697
b58c513b
PP
86982015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8699
8700 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
8701 * top.c (init_history): Read from GDBHISTSIZE instead of
8702 HISTSIZE.
8703 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
8704
2093d2d3
PP
87052015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8706
8707 * top.c (gdb_safe_append_history): Do not call
8708 history_truncate_file if the history is not stifled.
8709
fc248485
AA
87102015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8711
8712 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
8713 * syscalls/s390x-linux.xml: Likewise.
8714
4da680ad
ME
87152015-06-16 Michael Eager <eager@eagercon.com>
8716
8717 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
8718
0a75489f
PP
87192015-06-16 Patrick Palka <patrick@parcs.ath.cx>
8720
8721 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
8722 target_terminal_ours_for_output() before calling
8723 tui_show_frame_info(), and restore the original terminal
8724 settings afterwards.
8725
95855ca8
MS
87262015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
8727
8728 * arm-linux-nat.c: Include nat/linux-ptrace.h.
8729
cfc32360
SM
87302015-06-15 Simon Marchi <simon.marchi@ericsson.com>
8731
8732 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
8733 memory unit size.
8734 (mi_cmd_data_write_memory_bytes): Same.
8735
cb6f16cf
SM
87362015-06-15 Simon Marchi <simon.marchi@ericsson.com>
8737
8738 * corefile.c (write_memory): Update doc.
8739 * gdbcore.h (write_memory): Same.
8740
31b7833d
JK
87412015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8742
8743 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
8744 (dump_mapping_p): Use it for parameter filterflags.
8745 (linux_find_memory_regions_full): Use it for variable filterflags.
8746
909c2cda
JK
87472015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8748 Jan Kratochvil <jan.kratochvil@redhat.com>
8749
8750 Merge multiple hex conversions.
8751 * monitor.c: Include rsp-low.h.
8752 (fromhex): Remove definition.
8753
03aef70f
JK
87542015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8755 Jan Kratochvil <jan.kratochvil@redhat.com>
8756
8757 Move utility functions to common/.
8758 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
8759 Move defs to common/common-utils.c.
8760 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
8761 (skip_to_space_const): Move decls to common/common-utils.h.
8762 * common/common-defs.h: Move include of common-types.h before
8763 common-utils.h.
8764 * common/common-utils.c: Include host-defs.h and ctype.h.
8765 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
8766 from utils.c.
8767 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
8768 cli/cli-utils.c.
8769 * common/common-utils.h (strtoulst): Move decl from utils.h.
8770 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
8771 Move from cli/cli-utils.h.
8772 * common/host-defs.h: Include limits.h.
8773 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
8774 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
8775 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
8776 common/common-utils.h.
8777 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
8778 (strtoulst): Move to common/common-utils.c.
8779 * utils.h (strtoulst): Moved decl to common/common-utils.h.
8780
d1168cc1
YQ
87812015-06-15 Yao Qi <yao.qi@linaro.org>
8782
8783 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
8784
c74f7d1c
JT
87852015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
8786
8787 * build-id.c: Don't include elf-bfd.h.
8788 (build_id_bfd_get): Use bfd_build_id.
8789 (build_id_verify): Ditto.
8790 * build-id.h: Ditto.
8791 (find_separate_debug_file_by_buildid): Ditto.
8792 * python/py-objfile.c: Don't include elf-bfd.h.
8793 (objfpy_get_build_id) Use bfd_build_id.
8794 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
8795 * coffread.c: Include build-id.h.
8796 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
8797
f20c58f5
JT
87982015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8799
8800 * windows-nat.c (do_windows_fetch_inferior_registers)
8801 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
8802 conditional with __CYGWIN__.
8803
51f0e40d
AB
88042015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
8805
8806 * completer.c: Add arch-utils.h include.
8807 (enum reg_completer_targets): New enum.
8808 (reg_or_group_completer_1): New function containing old
8809 reg_or_group_completer, add and use new parameter to control what
8810 is completed on. Use get_current_arch rather than architecture of
8811 currently selected frame.
8812 (reg_or_group_completer): Call new reg_or_group_completer_1.
8813 (reggroup_completer): Call new reg_or_group_completer_1.
8814 * completer.h (reggroup_completer): Add declaration.
8815 * tui/tui-regs.c: Add 'completer.h' include.
8816 (tui_reg_next_command): Renamed to...
8817 (tui_reg_next): ...this. Adjust parameters and return rather than
8818 display new group.
8819 (tui_reg_prev_command): Renamed to...
8820 (tui_reg_prev): ...this. Adjust parameters and return rather than
8821 display new group.
8822 (tui_reg_float_command): Delete.
8823 (tui_reg_general_command): Delete.
8824 (tui_reg_system_command): Delete.
8825 (tui_reg_command): Rewrite to perform switching of register group.
8826 Add header comment.
8827 (tuireglist): Remove.
8828 (tui_reggroup_completer): New function.
8829 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
8830 creation of 'tui reg' command.
8831 * NEWS: Add comment about 'tui reg' changes.
8832
d309493c
SM
88332015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8834
8835 * target.c (target_read): Consider addressable unit size when
8836 reading from a memory object.
8837 (read_memory_robust): Same.
8838 (read_whatever_is_readable): Same.
8839 (target_write_with_progress): Consider addressable unit size
8840 when writing to a memory object.
8841 * target.h (target_read): Update documentation.
8842 (target_write): Add documentation.
8843
3374165f
SM
88442015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8845
8846 * arch-utils.h (default_addressable_memory_unit_size): New.
8847 * arch-utils.c (default_addressable_memory_unit_size): New.
8848 * gdbarch.sh (addressable_memory_unit_size): New.
8849 * gdbarch.h: Re-generate.
8850 * gdbarch.c: Re-generate.
8851
279a6fed
SM
88522015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8853
8854 * target.c (target_read): Rename variables and use
8855 TARGET_XFER_E_IO.
8856 (target_read_with_progress): Same.
8857 (read_memory_robust): Constify parameters and rename
8858 variables.
8859 (read_whatever_is_readable): Constify parameters,
8860 rename variables, adjust formatting.
8861 * target.h (read_memory_robust): Constify parameters.
8862
1e5338b6 88632015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
8864
8865 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
8866 synthetic (non-AltiVec) vector types.
8867 (ppc64_sysv_abi_return_value): Likewise.
8868
98aa42ee
AT
88692015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
8870
8871 PR breakpoints/16465
8872 * breakpoint.c (create_breakpoint): Save extra_string for
8873 pending breakpoints.
8874
966f0aef
WT
88752015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8876
8877 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
8878 and bt_mask to CORE_ADDR.
8879
6449ed0d
GB
88802015-06-11 Gary Benson <gbenson@redhat.com>
8881
8882 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
8883 (mnsh_recv_message): Likewise.
8884
34f8ac9f
WT
88852015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
8886
8887 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
8888 long long int and plongest instead of %ll.
8889
198c808c
GB
88902015-06-11 Gary Benson <gbenson@redhat.com>
8891
8892 * nat/linux-namespaces.c (gdb_wait.h): New include.
8893 (sys/wait.h): Do not include.
8894
e815d2d2
SM
88952015-06-10 Simon Marchi <simon.marchi@ericsson.com>
8896
8897 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
8898 end_sequence is true.
8899
8847cac2
JK
89002015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8901
8902 Code cleanup.
8903 * solib-target.c (library_list_start_list): Use explicit NULL
8904 comparison.
8905
24c05f46
JK
89062015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8907
8908 * solib-target.c (library_list_start_list): Do not dereference
8909 variable version in its initialization. Make the VERSION check handle
8910 NULL.
8911 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
8912
51aad7cc
GB
89132015-06-10 Gary Benson <gbenson@redhat.com>
8914
8915 * NEWS: Announce support for direct access of executable and
8916 shared library files when attaching to inferiors in containers
8917 on GNU/Linux systems.
8918
15a201c8
GB
89192015-06-10 Gary Benson <gbenson@redhat.com>
8920
8921 * remote.c (struct remote_state) <fs_pid>: New field.
8922 (new_remote_state): Initialize the above.
8923 (PACKET_vFile_setfs): New enum value.
8924 (remote_hostio_set_filesystem): New function.
8925 (remote_hostio_open): Call the above.
8926 (remote_hostio_unlink): Likewise.
8927 (remote_hostio_readlink): Likewise.
8928 (_initialize_remote): Register new "set/show remote
8929 hostio-setfs-packet" command.
8930 * NEWS: Announce new vFile:setfs packet.
8931
7a6a1731
GB
89322015-06-10 Gary Benson <gbenson@redhat.com>
8933
8934 * linux-nat.c (nat/linux-namespaces.h): New include.
8935 (fileio.h): Likewise.
8936 (linux_nat_filesystem_is_local): New function.
8937 (linux_nat_fileio_pid_of): Likewise.
8938 (linux_nat_fileio_open): Likewise.
8939 (linux_nat_fileio_readlink): Likewise.
8940 (linux_nat_fileio_unlink): Likewise.
8941 (linux_nat_add_target): Initialize to_filesystem_is_local,
8942 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
8943 (_initialize_linux_nat): New "set/show debug linux-namespaces"
8944 commands.
8945 * NEWS: Mention new "set/show debug linux-namespaces" commands.
8946
07c138c8
GB
89472015-06-10 Gary Benson <gbenson@redhat.com>
8948
8949 * target.h (struct inferior): New forward declaration.
8950 (struct target_ops) <to_filesystem_is_local>: Update comment.
8951 (struct target_ops) <to_fileio_open>: New argument inf.
8952 Update comment. All implementations updated.
8953 (struct target_ops) <to_fileio_unlink>: Likewise.
8954 (struct target_ops) <to_fileio_readlink>: Likewise.
8955 (target_filesystem_is_local): Update comment.
8956 (target_fileio_open): New argument inf. Update comment.
8957 (target_fileio_unlink): Likewise.
8958 (target_fileio_readlink): Likewise.
8959 (target_fileio_read_alloc): Likewise.
8960 (target_fileio_read_stralloc): Likewise.
8961 * target.c (target_fileio_open): New argument inf.
8962 Pass inf to implementation. Update debug printing.
8963 (target_fileio_unlink): Likewise.
8964 (target_fileio_readlink): Likewise.
8965 (target_fileio_read_alloc_1): New argument inf. Pass inf
8966 to target_fileio_open.
8967 (target_fileio_read_alloc): New argument inf. Pass inf to
8968 target_fileio_read_alloc_1.
8969 (target_fileio_read_stralloc): Likewise.
8970 * gdb_bfd.c (inferior.h): New include.
8971 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
8972 argument with new argument "inferior". Pass inferior to
8973 target_fileio_open.
8974 (gdb_bfd_open): Supply inferior argument to
8975 gdb_bfd_iovec_fileio_open.
8976 * linux-tdep.c (linux_info_proc): Supply inf argument to
8977 relevant target_fileio calls.
8978 (linux_find_memory_regions_full): Likewise.
8979 (linux_fill_prpsinfo): Likewise.
8980 * remote.c (remote_filesystem_is_local): Supply inf
8981 argument to remote_hostio_open.
8982 (remote_file_put): Likewise.
8983 (remote_file_get): Likewise.
8984 (remote_file_delete): Supply inf argument to
8985 remote_hostio_unlink.
8986
12e2a5fd
GB
89872015-06-10 Gary Benson <gbenson@redhat.com>
8988
8989 * inf-child.c (inf_child_fileio_open): Replace comment.
8990 (inf_child_fileio_pwrite): Likewise.
8991 (inf_child_fileio_pread): Likewise.
8992 (inf_child_fileio_fstat): Insert blank line before comment.
8993 (inf_child_fileio_close): Replace comment.
8994 (inf_child_fileio_unlink): Likewise.
8995 (inf_child_fileio_readlink): Likewise.
8996 * remote.c (remote_hostio_open): Likewise.
8997 (remote_hostio_pread): Likewise.
8998 (remote_hostio_pwrite): Likewise.
8999 (remote_hostio_close): Likewise.
9000 (remote_hostio_unlink): Likewise.
9001 (remote_hostio_readlink): Likewise.
9002 (remote_hostio_fstat): Likewise.
9003 (remote_filesystem_is_local): Likewise.
9004 * target.c (target_fileio_open): Likewise.
9005 (target_fileio_pwrite): Likewise.
9006 (target_fileio_pread): Likewise.
9007 (target_fileio_fstat): Insert blank line before comment.
9008 (target_fileio_close): Replace comment.
9009 (target_fileio_unlink): Likewise.
9010 (target_fileio_readlink): Likewise.
9011 (target_fileio_read_alloc): Likewise.
9012 (target_fileio_read_stralloc): Likewise.
9013
9bc3a976
GB
90142015-06-10 Gary Benson <gbenson@redhat.com>
9015
9016 * linux-thread-db.c (nat/linux-namespaces.h): New include.
9017 (check_pid_namespace_match): Use linux_ns_same rather than
9018 linux_proc_pid_get_ns to spot PID namespace mismatches.
9019 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
9020 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
9021
4b8b5e72
GB
90222015-06-10 Gary Benson <gbenson@redhat.com>
9023
9024 * configure.ac (AC_CHECK_FUNCS): Add setns.
9025 * config.in: Regenerate.
9026 * configure: Likewise.
9027 * nat/linux-namespaces.h: New file.
9028 * nat/linux-namespaces.c: Likewise.
9029 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
9030 (linux-namespaces.o): New rule.
9031 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
9032 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
9033 * config/arm/linux.mh (NATDEPFILES): Likewise.
9034 * config/i386/linux.mh (NATDEPFILES): Likewise.
9035 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9036 * config/ia64/linux.mh (NATDEPFILES): Likewise.
9037 * config/m32r/linux.mh (NATDEPFILES): Likewise.
9038 * config/m68k/linux.mh (NATDEPFILES): Likewise.
9039 * config/mips/linux.mh (NATDEPFILES): Likewise.
9040 * config/pa/linux.mh (NATDEPFILES): Likewise.
9041 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
9042 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
9043 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
9044 * config/s390/linux.mh (NATDEPFILES): Likewise.
9045 * config/sparc/linux.mh (NATDEPFILES): Likewise.
9046 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
9047 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
9048 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
9049
ca095836
GB
90502015-06-10 Gary Benson <gbenson@redhat.com>
9051
9052 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
9053 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
9054 (make_cleanup_close): Likewise.
9055 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
9056 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
9057 (make_cleanup_close): Likewise.
9058
5d9c55d3
JT
90592015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
9060
9061 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
9062 from SuspendThread().
9063
040ea00b
JT
90642015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
9065
9066 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
9067 from OutputDebugString.
9068
7d73c23c
WT
90692015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
9070 Mircea Gherzan <mircea.gherzan@intel.com>
9071
9072 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
9073 MPX_BT_MASK_32): New macros.
9074 (i386_mpx_set_bounds): New function that implements
9075 the command "set-mpx-bound".
9076 (i386_mpx_enabled): Helper function to test MPX availability.
9077 (i386_mpx_bd_base): Helper function to calculate the base directory
9078 address.
9079 (i386_mpx_get_bt_entry): Helper function to access a bound
9080 table entry.
9081 (i386_mpx_print_bounds): Effectively display bound information.
9082 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
9083 "show mpx".
9084 (_initialize_i386_tdep):
9085 Add "bound" to the commands "show mpx" and "set mpx" commands.
9086 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
9087 and "show mpx" commands.
9088 * NEWS: List new commands for MPX support.
9089
3ac2e371
GB
90902015-06-09 Gary Benson <gbenson@redhat.com>
9091
9092 * common/fileio.h (fileio_to_host_mode): New declaration.
9093 * common/fileio.c (fileio_to_host_mode): New Function.
9094 * inf-child.c (inf_child_fileio_open): Process mode argument
9095 with fileio_to_host_mode.
9096
ecef18c5
GB
90972015-06-09 Gary Benson <gbenson@redhat.com>
9098
9099 * common/fileio.c (fileio_mode_pack): Fix preprocessor
9100 conditional.
9101
e3dd7556
GB
91022015-06-05 Gary Benson <gbenson@redhat.com>
9103
9104 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
9105 * remote.c (remote_filesystem_is_local): ...here.
9106
5b74bf7d
YQ
91072015-06-04 Yao Qi <yao.qi@linaro.org>
9108
9109 * gdbarch.c: Regenerate it.
9110
7f361056
JK
91112015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9112
9113 * arch-utils.c (default_infcall_munmap): New.
9114 * arch-utils.h (default_infcall_munmap): New declaration.
9115 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
9116 (munmap_list_free, munmap_listp_free_cleanup): New.
9117 (struct setup_sections_data): Add field munmap_list_headp.
9118 (setup_sections): Call munmap_list_add.
9119 (compile_object_load): New variable munmap_list_head, initialize
9120 setup_sections_data.munmap_list_headp, return munmap_list_head.
9121 * compile/compile-object-load.h (struct munmap_list): New declaration.
9122 (struct compile_module): Add field munmap_list_head.
9123 (munmap_list_free): New declaration.
9124 * compile/compile-object-run.c (struct do_module_cleanup): Add field
9125 munmap_list_head.
9126 (do_module_cleanup): Call munmap_list_free.
9127 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
9128 * gdbarch.c: Regenerate.
9129 * gdbarch.h: Regenerate.
9130 * gdbarch.sh (infcall_munmap): New.
9131 * linux-tdep.c (linux_infcall_munmap): New.
9132 (linux_init_abi): Install it.
9133
3b462ec2
SM
91342015-06-02 Simon Marchi <simon.marchi@ericsson.com>
9135
9136 PR gdb/15564
9137 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
9138
8d683210
YQ
91392015-06-02 Yao Qi <yao.qi@linaro.org>
9140
9141 * i386-linux-nat.c: Include linux-nat.h.
9142
e0619de6
JK
91432015-06-01 Andreas Schwab <schwab@linux-m68k.org>
9144 Jan Kratochvil <jan.kratochvil@redhat.com>
9145
9146 PR symtab/18392
9147 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
9148 assertion.
9149 * dwarf2loc.c (chain_candidate): Likewise.
9150
bd16da51
YQ
91512015-06-01 Yao Qi <yao.qi@linaro.org>
9152
9153 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
9154 (store_vfp_regs): Use PTRACE_SETREGSET.
9155
df9d7ec9
YQ
91562015-06-01 Yao Qi <yao.qi@linaro.org>
9157
9158 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
9159 (fetch_fpregs): Likewise.
9160 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
9161 (store_fpregs): Likewise.
9162
10766686
YQ
91632015-06-01 Yao Qi <yao.qi@linaro.org>
9164
9165 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
9166 (fetch_regs): Likewise.
9167 (store_regs): Use PTRACE_SETREGSET.
9168 (store_register): Likewise.
9169
7efe48d1
YQ
91702015-06-01 Yao Qi <yao.qi@linaro.org>
9171
9172 * arm-linux-nat.c (arm_linux_read_description): Check whether
9173 kernel supports PTRACE_GETREGSET.
9174
433bbbf8
YQ
91752015-06-01 Yao Qi <yao.qi@linaro.org>
9176
9177 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
9178 * linux-nat.c: ... here.
9179 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
9180 to ...
9181 * linux-nat.h: ... here.
9182
ca9b78ce
YQ
91832015-06-01 Yao Qi <yao.qi@linaro.org>
9184
9185 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
9186 * i386-linux-nat.c: Likewise.
9187 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
9188 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
9189 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9190 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
9191 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9192
99cee7b7
EZ
91932015-05-30 Eli Zaretskii <eliz@gnu.org>
9194
9195 * go32-nat.c (go32_xfer_memory): Fix the return value to be
9196 compatible to what read_child and write_child return. This
9197 unbreaks that DJGPP build of GDB which was broken since v7.7.
9198
2147f5bd
MG
91992015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
9200
9201 * MAINTAINERS (Write After Approval): Add Martin Galvan.
9202
c8f6c93c
RM
92032015-05-29 Roland McGrath <mcgrathr@google.com>
9204
9205 PR gdb/18464
9206 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
9207 rather than internal_error for an unrecognized value.
9208
8c6a948d
MF
92092015-05-29 Max Filippov <jcmvbkbc@gmail.com>
9210
9211 * xtensa-tdep.c (xtensa_pseudo_register_read)
9212 (xtensa_pseudo_register_write): Don't alias last pseudo register
9213 to a1.
9214
8dd06f7a
DB
92152015-05-28 Don Breazeal <donb@codesourcery.com>
9216
9217 * infrun.c (follow_fork_inferior): Ensure the use of
9218 process-style ptids (pid,0,0) in verbose/debug "Detaching"
9219 messages.
9220
a051152b
DE
92212015-05-28 Doug Evans <dje@google.com>
9222
9223 * dwarf2read.c (record_line_ftype): Remove, duplicate.
9224
a56cc1ce
YQ
92252015-05-28 Yao Qi <yao.qi@linaro.org>
9226
9227 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
9228 (arm_linux_fetch_inferior_registers): Use
9229 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
9230 (arm_linux_store_inferior_registers): Likewise.
9231 (arm_linux_read_description): Don't set
9232 arm_linux_has_wmmx_registers.
9233 * arm-tdep.c (arm_gdbarch_init): Set
9234 tdep->have_wmmx_registers according target descriptions.
9235 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
9236 field.
9237
330c6ca9
YQ
92382015-05-28 Yao Qi <yao.qi@linaro.org>
9239
9240 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
9241 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
9242 instead of arm_linux_vfp_register_count.
9243 (store_vfp_regs): Likewise.
9244 (arm_linux_fetch_inferior_registers): Likewise.
9245 (arm_linux_store_inferior_registers): Likewise.
9246 (arm_linux_read_description): Don't set
9247 arm_linux_vfp_register_count.
9248 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
9249 Adjust.
9250 * arm-tdep.c (arm_gdbarch_init): Add assert on
9251 vfp_register_count.
9252 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
9253 field to vfp_register_count. All users updated.
9254
d403db27
KH
92552015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
9256
9257 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
9258 ELFOSABI_GNU binaries.
9259
d9b3de22
DE
92602015-05-27 Doug Evans <dje@google.com>
9261
9262 * dwarf2read.c (lnp_state_machine): New typedef.
9263 (lnp_reader_state): New typedef.
9264 (dwarf_record_line_1): Renamed from dwarf_record_line.
9265 All callers updated.
9266 (dwarf_record_line): New function.
9267 (init_lnp_state_machine): New function.
9268 (check_line_address): Replace p_record_line parameter with state.
9269 All callers updated.
9270 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
9271 Update to record state in lnp_state_machine.
9272
924c2928
DE
92732015-05-27 Doug Evans <dje@google.com>
9274
9275 * dwarf2read.c (record_line_ftype): New typedef.
9276 (check_line_address): New function.
9277 (dwarf_decode_lines_1): Call it.
9278
27e0867f
DE
92792015-05-27 Doug Evans <dje@google.com>
9280
9281 * NEWS: Mention "set debug dwarf-line".
9282 * dwarf2read.c (dwarf_line_debug): New static global.
9283 (add_include_dir): Add debug dwarf-line support.
9284 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
9285 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
9286
4dcabcc2
DE
92872015-05-27 Doug Evans <dje@google.com>
9288
9289 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
9290 All callers updated.
9291 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
9292 * cp-support.h (cp_lookup_nested_symbol): Update.
9293
b2e2f908
DE
92942015-05-27 Doug Evans <dje@google.com>
9295
9296 PR symtab/18258
9297 * block.c (block_find_symbol): New function.
9298 (block_find_non_opaque_type): Ditto.
9299 (block_find_non_opaque_type_preferred): Ditto.
9300 * block.h (block_symbol_matcher_ftype): New typedef.
9301 (block_find_symbol): Declare.
9302 (block_find_non_opaque_type): Ditto.
9303 (block_find_non_opaque_type_preferred): Ditto.
9304 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
9305 * psymtab.c (psym_lookup_symbol): Ditto.
9306 * symtab.c (basic_lookup_transparent_type_1): New function.
9307 (basic_lookup_transparent_type): Call it.
9308
f62fce35
YQ
93092015-05-27 Yao Qi <yao.qi@linaro.org>
9310
9311 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
9312 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
9313
5d98d3cd
YQ
93142015-05-27 Yao Qi <yao.qi@linaro.org>
9315
9316 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
9317 before operator &&.
9318 (aarch64_record_load_store): Likewise.
9319
82c7be31
DE
93202015-05-26 Doug Evans <dje@google.com>
9321
9322 PR c++/18141, c++/18417.
9323 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
9324 a typedef.
9325
b4f54984
DE
93262015-05-26 Doug Evans <dje@google.com>
9327
9328 * NEWS: Add entries for command renamings.
9329 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
9330 All uses updated.
9331 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
9332 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
9333 All uses updated.
9334 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
9335 All callers updated. Fix spelling of DWARF in help text.
9336 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
9337 All uses updated.
9338 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
9339 All uses updated.
9340 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
9341 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
9342 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
9343 All uses updated.
9344 (show_dwarf_always_disassemble): Renamed from
9345 show_dwarf2_always_disassemble. All callers updated.
9346 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
9347 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
9348 "set/show dwarf max-cache-age". Rename
9349 "set/show dwarf2 always-disassemble" to
9350 "set/show dwarf always-disassemble". Rename
9351 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
9352 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
9353
4ea6efe9
DE
93542015-05-26 Doug Evans <dje@google.com>
9355
9356 PR python/18438
9357 * python/py-lazy-string.c (stpy_convert_to_value): Use
9358 gdbpy_gdb_memory_error not PyExc_MemoryError.
9359 (gdbpy_create_lazy_string_object): Ditto.
9360
b93fd21d
AB
93612015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
9362
9363 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
9364
55b40027
AB
93652015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
9366
9367 * tui/tui-regs.c (tui_reg_prev_command): New function.
9368 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
9369 * reggroups.c (reggroup_prev): New function.
9370 * reggroups.h (reggroup_prev): Add declaration. Update comment.
9371
99afc88b
OJ
93722015-05-26 Omair Javaid <omair.javaid@linaro.org>
9373 Yao Qi <yao.qi@linaro.org>
9374
9375 * aarch64-linux-tdep.c: Include linux-record.h and
9376 record-full.h.
9377 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
9378 (aarch64_syscall): New enum.
9379 (aarch64_canonicalize_syscall): New function.
9380 (aarch64_all_but_pc_registers_record): New function.
9381 (aarch64_linux_syscall_record): New function.
9382 (aarch64_linux_init_abi): Install AArch64 process record
9383 handler. Update to handle syscall recording.
9384 * aarch64-tdep.c: Include record.h and record-full.h.
9385 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
9386 (struct aarch64_mem_r): Define.
9387 (aarch64_record_result): New enum.
9388 (struct insn_decode_record): Define.
9389 (insn_decode_record): New typedef.
9390 (aarch64_record_data_proc_reg): New function.
9391 (aarch64_record_data_proc_imm): New function.
9392 (aarch64_record_branch_except_sys): New function.
9393 (aarch64_record_load_store): New function.
9394 (aarch64_record_data_proc_simd_fp): New function.
9395 (aarch64_record_asimd_load_store): New function.
9396 (aarch64_record_decode_insn_handler): New function.
9397 (deallocate_reg_mem): New function.
9398 (aarch64_process_record): New function.
9399 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
9400 New field.
9401 (aarch64_process_record): New extern declaration.
9402 * configure.tgt: Add linux-record.o to gdb_target_obs.
9403 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
9404
c16a3f52
OJ
94052015-05-26 Omair Javaid <omair.javaid@linaro.org>
9406
9407 * NEWS: Add a note on process record-replay support on aarch64*-linux*
9408 targets.
9409
c9cf6e20
MG
94102015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
9411
9412 * amd64-tdep.c: Replace in_function_epilogue_p with
9413 stack_frame_destroyed_p throughout.
9414 * arch-utils.c: Ditto.
9415 * arch-utils.h: Ditto.
9416 * arm-tdep.c: Ditto.
9417 * breakpoint.c: Ditto.
9418 * gdbarch.sh: Ditto.
9419 * hppa-tdep.c: Ditto.
9420 * i386-tdep.c: Ditto.
9421 * mips-tdep.c: Ditto.
9422 * nios2-tdep.c: Ditto.
9423 * rs6000-tdep.c: Ditto.
9424 * s390-linux-tdep.c: Ditto.
9425 * score-tdep.c: Ditto.
9426 * sh-tdep.c: Ditto.
9427 * sparc-tdep.c: Ditto.
9428 * sparc-tdep.h: Ditto.
9429 * sparc64-tdep.c: Ditto.
9430 * spu-tdep.c: Ditto.
9431 * tic6x-tdep.c: Ditto.
9432 * tilegx-tdep.c: Ditto.
9433 * xstormy16-tdep.c: Ditto.
9434 * gdbarch.c, gdbarch.h: Re-generated.
9435
a4ea0946
AB
94362015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9437
9438 * NEWS: Mention 'tui enable' and 'tui disable'.
9439 * tui/tui.c (tui_enable_command): New function.
9440 (tui_disable_command): New function.
9441 (_initialize_tui): New function.
9442
b75c69bb
AB
94432015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9444
9445 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
9446
c1b009ee
AB
94472015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9448
9449 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
9450 buf_ptr is freed.
9451
880d1e40
AB
94522015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9453
9454 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
9455 into ...
9456 (tui_set_layout_for_display_command): ...here, before calling
9457 tui_set_layout. Only set the layout if gdb has not already
9458 entered the TUI_FAILURE state.
9459
a0145030
AB
94602015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9461
9462 * tui/tui-layout.c (layout_completer): New function.
9463 (_initialize_tui_layout): Set completer on layout command.
9464
7bd0be3a
AB
94652015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9466
9467 * tui/tui-layout.c (tui_set_layout): Remove
9468 tui_register_display_type parameter. Remove all checking of this
9469 parameter, and reindent function. Update header comment.
9470 (tui_set_layout_for_display_command): Rename to...
9471 (tui_set_layout_by_name): ...this, and don't check for different
9472 register class types, don't pass a tui_register_display_type to
9473 tui_set_layout. Update header comment.
9474 (layout_names): Remove register set specific names.
9475 * tui/tui-layout.h (tui_set_layout): Remove
9476 tui_register_display_type parameter.
9477 * tui/tui.c (tui_rl_change_windows): Don't pass a
9478 tui_register_display_type to tui_set_layout.
9479 (tui_rl_delete_other_windows): Likewise.
9480 (tui_enable): Likewise.
9481 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
9482 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
9483 (TUI_GENERAL_REGS_NAME): Remove.
9484 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
9485 (TUI_SPECIAL_REGS_NAME): Remove.
9486 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
9487 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
9488 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
9489 (enum tui_register_display_type): Remove.
9490 (struct tui_layout_def): Remove regs_display_type and
9491 float_regs_display_type fields.
9492 (struct tui_data_info): Remove regs_display_type field.
9493 (tui_layout_command): Use new name for
9494 tui_set_layout_for_display_command.
9495 * tui/tui-data.c (layout_def): Don't initialise removed fields.
9496 (tui_clear_win_detail): Don't initialise removed fields of
9497 win_info.
9498 * tui/tui-regs.c (tui_show_registers): Use new name for
9499 tui_set_layout_for_display_command.
9500 * tui/tui.h (tui_set_layout_for_display_command): Rename
9501 declaration to...
9502 (tui_set_layout_by_name): ...this.
9503 * printcmd.c (display_command): Remove tui related layout call,
9504 and reindent.
9505
0b6e5e10
JB
95062015-05-20 Joel Brobecker <brobecker@adacore.com>
9507
9508 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
9509 (handle_inferior_event): New function.
9510
1da0522e
JB
95112015-05-20 Joel Brobecker <brobecker@adacore.com>
9512
9513 * ada-lang.c (to_fixed_array_type): Rename local variable
9514 typename into type_name.
9515
5fe75eec
JK
95162015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9517
9518 Fix ASAN crash for gdb.compile/compile.exp.
9519 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
9520
a4063588
JK
95212015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9522
9523 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
9524 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
9525 * compile/compile-object-load.c (setup_sections, compile_object_load):
9526 Likewise.
9527 * compile/compile.c (compile_to_object): Likewise.
9528
37442ce1
DE
95292015-05-16 Doug Evans <xdje42@gmail.com>
9530
9531 * NEWS: Mention support for unbuffered Guile memory ports.
9532 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
9533 (ioscm_lseek_address): Improve overflow calculation.
9534 (gdbscm_memory_port_fill_input): Add assert.
9535 (gdbscm_memory_port_write): Handle unbuffered ports.
9536 Handle large writes identical to Guile's fport_write.
9537 (gdbscm_memory_port_seek): Fix seeking past end check.
9538 (gdbscm_memory_port_close): Handle closing unbuffered port.
9539 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
9540 (ioscm_init_memory_port): Handle unbuffered ports.
9541 (ioscm_reinit_memory_port): Ditto.
9542 (ioscm_init_memory_port): Update size calculation.
9543 (gdbscm_open_memory): Support zero sized ports.
9544
d976bace
JK
95452015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9546
9547 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
9548 variable compiler warnings.
9549
4d18dfad
JK
95502015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9551
9552 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
9553
36de76f9
JK
95542015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9555 Phil Muldoon <pmuldoon@redhat.com>
9556
9557 * NEWS (Changes since GDB 7.9): Add compile print.
9558 * compile/compile-c-support.c (add_code_header, add_code_footer)
9559 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
9560 COMPILE_I_PRINT_VALUE_SCOPE.
9561 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
9562 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
9563 New.
9564 * compile/compile-object-load.c: Include block.h.
9565 (get_out_value_type): New function.
9566 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9567 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
9568 OUT_VALUE_TYPE.
9569 * compile/compile-object-load.h (struct compile_module): Add fields
9570 out_value_addr and out_value_type.
9571 * compile/compile-object-run.c: Include valprint.h and compile.h.
9572 (struct do_module_cleanup): Add fields out_value_addr and
9573 out_value_type.
9574 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9575 COMPILE_I_PRINT_VALUE_SCOPE.
9576 (compile_object_run): Propagate out_value_addr and out_value_type.
9577 Pass OUT_VALUE_ADDR.
9578 * compile/compile.c: Include valprint.h.
9579 (compile_print_value, compile_print_command): New functions.
9580 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
9581 (_initialize_compile): Update compile code help text. Install
9582 compile_print_command.
9583 * compile/compile.h (compile_print_value): New prototype.
9584 * defs.h (enum compile_i_scope_types): Add
9585 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
9586
83d3415e
JK
95872015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9588
9589 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
9590 Rely on its parameter count.
9591 (compile_object_load): Replace lookup_minimal_symbol_text by
9592 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
9593 return value.
9594 * compile/compile-object-load.h (struct compile_module): Replace
9595 func_addr by func_sym.
9596 * compile/compile-object-run.c: Include block.h.
9597 (compile_object_run): Reset module variable after it is freed. Use
9598 FUNC_SYM instead of FUNC_ADDR. Rely on it.
9599
3a9558c4
JK
96002015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9601
9602 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
9603 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
9604 (c_compute_program): Call generate_register_struct after typedefs.
9605 * compile/compile-loc2c.c (push, pushf_register_address)
9606 (pushf_register): Cast to GCC_UINTPTR.
9607 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
9608 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
9609 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
9610 * compile/compile.c (_initialize_compile): Enable warnings for
9611 COMPILE_ARGS.
9612
5c65b58a
JK
96132015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9614
9615 * cli/cli-script.c (execute_control_command): Update
9616 eval_compile_command caller.
9617 * compile/compile-object-load.c (compile_object_load): Add parameters
9618 scope and scope_data. Set them.
9619 * compile/compile-object-load.h (struct compile_module): Add fields
9620 scope and scope_data.
9621 (compile_object_load): Add parameters scope and scope_data.
9622 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
9623 scope and scope_data.
9624 (compile_object_run): Propagate the fields scope and scope_data.
9625 * compile/compile.c (compile_file_command, compile_code_command):
9626 Update eval_compile_command callers.
9627 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
9628 * compile/compile.h (eval_compile_command): Add parameter scope_data.
9629 * defs.h (struct command_line): Add field scope_data.
9630
1c88ceb1
JK
96312015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9632
9633 * printcmd.c (struct format_data): Move it to valprint.h.
9634 (print_command_parse_format, print_value): New functions from ...
9635 (print_command_1): ... here. Call them.
9636 * valprint.h (struct format_data): Move it here from printcmd.c.
9637 (print_command_parse_format, print_value): New declarations.
9638
0b738f27
JK
96392015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9640
9641 * compile/compile-object-load.c (compile_object_load): Add
9642 COMPILE_DEBUG message.
9643
aa715135
JG
96442015-05-15 Jerome Guitton <guitton@adacore.com>
9645
9646 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
9647 index to get element instead of enum value.
9648 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
9649 of index to compute length, but enum values to compute bounds.
9650 (ada_array_length): Use enum position of index instead of enum value.
9651 (pos_atr): Move position computation to...
9652 (ada_evaluate_subexp): Use enum values to compute bounds.
9653 * gdbtypes.c (discrete_position): ...this new function.
9654 * gdbtypes.h (discrete_position): New function declaration.
9655 * valprint.c (val_print_array_elements): Call discrete_position
9656 to handle array indexed by non-contiguous enumeration types.
9657
931e5bc3
JG
96582015-05-15 Jerome Guitton <guitton@adacore.com>
9659
9660 * ada-lang.c (find_parallel_type_by_descriptive_type):
9661 Go through typedefs during lookup.
9662 (to_fixed_array_type): Add support for non-bit packed arrays
9663 as variable-length fields.
9664
4e63d0ac
PA
96652015-05-15 Pedro Alves <palves@redhat.com>
9666 Simon Marchi <simon.marchi@ericsson.com>
9667
9668 * event-loop.c (gdb_notifier) <next_file_handler,
9669 next_poll_fds_index>: New fields.
9670 (get_next_file_handler_to_handle_and_advance): New function.
9671 (delete_file_handler): If deleting the next file handler to
9672 handle, advance to the next file handler.
9673 (gdb_wait_for_event): Bail early if no event fired. Poll file
9674 handlers in round-robin fashion.
9675
52e48b36
PA
96762015-05-15 Pedro Alves <palves@redhat.com>
9677
9678 * linux-tdep.c (linux_find_memory_regions_full): Rename local
9679 'private' to 'priv'.
9680
2465e12e
PA
96812015-05-15 Pedro Alves <palves@redhat.com>
9682
9683 * nat/linux-nat.h: Include "target/waitstatus.h".
9684
13fa0398
YZ
96852015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
9686
9687 * python/py-unwind.c (struct reg_info): Move out of ...
9688 (struct cached_frame_info): ... this scope.
9689 (pending_frame_object_type, unwind_info_object_type): Make extern.
9690
9cd4d857
JB
96912015-05-15 Joel Brobecker <brobecker@adacore.com>
9692
9693 * ada-lang.c (ada_value_primitive_packed_val): Make sure
9694 accumSize is never negative.
9695
e3555239
PP
96962015-05-14 Patrick Palka <patrick@parcs.ath.cx>
9697
9698 * tui/tui-command.c: Remove include of <ctype.h>.
9699 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
9700
08a76f8a
MG
97012015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
9702
9703 * dwarf2read.c (die_needs_namespace): Return 1 for
9704 DW_TAG_inlined_subroutine.
9705
bd49952b
JK
97062015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9707
9708 * regcache.c (regcache_cpy_no_passthrough): New declaration.
9709 (regcache_cpy_no_passthrough): Make it static, add function comment.
9710 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
9711 (regcache_cpy_no_passthrough): Remove declaration.
9712
46c03469
JK
97132015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9714
9715 * gdbthread.h (struct thread_control_state): Update comment for
9716 proceed_to_finish.
9717 * infcall.c (run_inferior_call): Update comment about
9718 proceed_to_finish.
9719 * infcmd.c (get_return_value): Update comment about stop_registers.
9720 (finish_forward): Update comment about proceed_to_finish.
9721 * infrun.c (stop_registers): Remove.
9722 (clear_proceed_status, normal_stop): Remove stop_registers handling.
9723 * infrun.h (stop_registers): Remove.
9724
8a6c4031
JK
97252015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9726
9727 * infcall.c (struct dummy_frame_context_saver)
9728 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
9729 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9730 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9731 New.
9732 (call_function_by_hand_dummy): Move discard_cleanups of
9733 inf_status_cleanup before dummy_frame_push. Call
9734 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
9735 Use dummy_frame_context_saver_get_regs instead of stop_registers.
9736 * infcall.h (struct dummy_frame_context_saver)
9737 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9738 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9739 New declarations.
9740 * infcmd.c: Include infcall.h.
9741 (get_return_value): Add parameter ctx_saver, use it instead of
9742 stop_registers.
9743 (print_return_value): Add parameter ctx_saver, pass it.
9744 (struct finish_command_continuation_args): Add field ctx_saver.
9745 (finish_command_continuation): Update print_return_value caller.
9746 (finish_command_continuation_free_arg): Free also ctx_saver.
9747 (finish_forward): Call dummy_frame_context_saver_setup.
9748 * inferior.h (struct dummy_frame_context_saver): New declaration.
9749 (get_return_value): Add parameter ctx_saver.
9750 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
9751 get_return_value caller.
9752
10989690
JK
97532015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9754
9755 * dummy-frame.c (struct dummy_frame_dtor_list): New.
9756 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
9757 (remove_dummy_frame): Process dtor_list.
9758 (pop_dummy_frame): Process dtor_list.
9759 (register_dummy_frame_dtor): Maintain dtor_list.
9760 (find_dummy_frame_dtor): Handle dtor_list.
9761 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
9762 Update comments.
9763
5e970501
JK
97642015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9765
9766 * compile/compile-object-run.c (do_module_cleanup): Add parameter
9767 registers_valid.
9768 (compile_object_run): Update do_module_cleanup caller.
9769 * dummy-frame.c: Include infcall.h.
9770 (struct dummy_frame): Update dtor comment.
9771 (remove_dummy_frame): Call dtor.
9772 (pop_dummy_frame): Update dtor caller.
9773 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
9774 registers_valid.
9775
1c4eb778
JB
97762015-05-13 Joel Brobecker <brobecker@adacore.com>
9777
9778 GDB 7.9.1 released.
9779
f5f85ab9
JB
97802015-05-13 Joel Brobecker <brobecker@adacore.com>
9781
9782 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
9783 Xmethods now being able to specify a result type to that new
9784 sectioin.
9785
242cd84c
PP
97862015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9787
9788 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
9789 first before resizing the window.
e3555239 9790 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
9791
97922015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
9793
9794 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
9795 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
9796 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
9797 dummy_dtor parameter.
9798 * infcall.h: Include dummy-frame.h.
9799 (call_function_by_hand_dummy_dtor_ftype): Remove.
9800 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
9801 parameter.
9802
ebfd00d2
PP
98032015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9804
9805 PR gdb/17820
9806 * top.c (history_size_setshow_var): Change type to signed.
9807 Initialize to -2. Update documentation.
9808 (set_readline_history_size): Define.
9809 (set_history_size_command): Use it. Remove logic for handling
9810 out-of-range sizes.
9811 (init_history): Use set_readline_history_size(). Test for a
9812 value of -2 instead of 0 when determining whether to set a
9813 default history size.
9814 (init_main): Decode the argument of the "size" command as a
9815 zuinteger_unlimited.
9816
83769d0b
DE
98172015-05-12 Doug Evans <dje@google.com>
9818
9819 * dwarf2read.c (struct file_entry): Tweak comments.
9820 (get_debug_line_section): Tweak comments.
9821
0d71eef5
DB
98222015-05-12 Don Breazeal <donb@codesourcery.com>
9823
9824 * NEWS: Announce fork support in the RSP and support
9825 for fork debugging in extended mode.
9826
cbb8991c
DB
98272015-05-12 Don Breazeal <donb@codesourcery.com>
9828
9829 * remote.c (remote_insert_fork_catchpoint): New function.
9830 (remote_remove_fork_catchpoint): New function.
9831 (remote_insert_vfork_catchpoint): New function.
9832 (remote_remove_vfork_catchpoint): New function.
9833 (pending_fork_parent_callback): New function.
9834 (remove_new_fork_child): New function.
9835 (remote_update_thread_list): Call remote_notif_get_pending_events
9836 and remove_new_fork_child.
9837 (extended_remote_kill): Kill fork child when killing the
9838 parent before follow_fork completes.
9839 (init_extended_remote_ops): Initialize target vector with
9840 new fork catchpoint functions.
9841
c269dbdb
DB
98422015-05-12 Don Breazeal <donb@codesourcery.com>
9843
9844 * remote.c (remove_vfork_event_p): New function.
9845 (remote_follow_fork): Add vfork event type to event checking.
9846 (remote_parse_stop_reply): New stop reasons "vfork" and
9847 "vforkdone" for RSP 'T' Stop Reply Packet.
9848
de0d863e
DB
98492015-05-12 Don Breazeal <donb@codesourcery.com>
9850
9851 * linux-nat.c (linux_nat_ptrace_options): New function.
9852 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
9853 Call linux_nat_ptrace_options and use different argument to
9854 linux_enable_event_reporting.
9855 (_initialize_linux_nat): Delete call to
9856 linux_ptrace_set_additional_flags.
c8f6c93c 9857 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
9858 supported_ptrace_options.
9859 (additional_flags): Delete variable.
9860 (linux_check_ptrace_features): Use supported_ptrace_options.
9861 (linux_test_for_tracesysgood, linux_test_for_tracefork):
9862 Likewise, and remove additional_flags check.
9863 (linux_enable_event_reporting): Change 'attached' argument to
9864 'options'. Use supported_ptrace_options.
c8f6c93c 9865 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
9866 supported_ptrace_options.
9867 (linux_ptrace_set_additional_flags): Delete function.
9868 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
9869 Delete function prototype.
9870 * remote.c (remote_fork_event_p): New function.
9871 (remote_detach_pid): New function.
9872 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
9873 if doing detach-on-fork.
9874 (remote_follow_fork): New function.
9875 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
9876 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
9877 (init_extended_remote_ops): Initialize to_follow_fork.
9878
89245bc0
DB
98792015-05-12 Don Breazeal <donb@codesourcery.com>
9880
9881 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
9882 from static to extern.
9883 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
9884 * remote.c (anonymous enum): <PACKET_fork_event_feature,
9885 * PACKET_vfork_event_feature>: New enumeration constants.
9886 (remote_protocol_features): Add table entries for new packets.
9887 (remote_query_supported): Add new feature queries to qSupported
9888 packet.
9889
835205d0
GB
98902015-05-12 Gary Benson <gbenson@redhat.com>
9891
9892 * remote.c (remote_add_inferior): Call exec_file_locate_attach
9893 for fake PIDs as well as real ones.
9894 (remote_pid_to_exec_file): Send empty annex if PID is fake.
9895
4c082a81
SC
98962015-05-09 Siva Chandra Reddy <sivachandra@google.com>
9897
9898 * NEWS (Python Scripting): Mention the new gdb.Value methods.
9899 * python/py-value.c (valpy_reference_value): New function.
9900 (valpy_const_value): Likewise.
9901 (value_object_methods): Add new methods.
9902 * value.c (make_cv_value): New function.
9903 * value.h (make_cv_value): Declare.
9904
afa6c9ab
SL
99052015-05-08 Yao Qi <yao@codesourcery.com>
9906 Sandra Loosemore <sandra@codesourcery.com>
9907
9908 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
9909 to 'lh->include_dirs' before accessing to it.
9910 (psymtab_include_file_name): Likewise.
9911 (dwarf_decode_lines_1): Likewise.
9912 (dwarf_decode_lines): Likewise.
9913 (file_file_name): Likewise.
9914
35d54293
SL
99152015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9916
9917 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
9918 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
9919 (nios2_linux_rt_sigreturn_init): Adjust base address of
9920 register save area.
9921
b73c49b7
SL
99222015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9923
9924 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
9925 "trap 31" as the breakpoint instruction on all targets.
9926
dd9f02a0
JK
99272015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9928
9929 * infcmd.c (print_return_value): Remove unused declaration.
9930
6ad395a7
JB
99312015-05-08 Joel Brobecker <brobecker@adacore.com>
9932
9933 * dwarf2read.c (attr_to_dynamic_prop)
9934 <DW_AT_data_member_location>: Use read_type_die isntead of
9935 get_die_type.
9936
8344af1e
JB
99372015-05-08 Joel Brobecker <brobecker@adacore.com>
9938
9939 * ada-lang.c (ada_convert_actual): Add handling of formals
9940 passed inside an aligner type.
9941
80b0912b
JB
99422015-05-08 Joel Brobecker <brobecker@adacore.com>
9943
9944 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
9945
df2eb078
SC
99462015-05-08 Siva Chandra Reddy <sivachandra@google.com>
9947
9948 PR python/18291
9949 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
9950 Print xmethod matcher status.
9951
2492f0d0
AA
99522015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
9953
9954 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
9955 register in the regcache when treating the PSWM register, and vice
9956 versa.
9957
1c56a84d
GB
99582015-05-07 Gary Benson <gbenson@redhat.com>
9959
9960 * linux-thread-db.c (struct thread_db_info)
9961 <td_ta_map_id2thr_p>: Remove field.
9962 (try_thread_db_load_1): Remove initialization for the above.
9963
74850322
GB
99642015-05-07 Gary Benson <gbenson@redhat.com>
9965
9966 * linux-thread-db.c (struct thread_db_info)
9967 <td_thr_validate_p>: Remove field.
9968 (try_thread_db_load_1): Remove initialization for the above.
9969
e26efa40
JK
99702015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9971
9972 * compile/compile-object-load.c (compile_object_load): Support
9973 mst_text_gnu_ifunc.
9974
851c9091
JK
99752015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9976
9977 * compile/compile.c (compile_to_object): Make the cmd_string parameter
9978 const. Use new variables for the const compatibility.
9979 (eval_compile_command): Make the cmd_string parameter const.
9980 * compile/compile.h (eval_compile_command): Make the cmd_string
9981 parameter const.
9982
f218b647
JB
99832015-05-06 Joel Brobecker <brobecker@adacore.com>
9984
9985 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
9986 comment.
9987 * top.c (deprecated_init_ui_hook): Delete.
9988 (gdb_init): Remove handling of deprecated_init_ui_hook.
9989 * interps.c (clear_interpreter_hooks): Remove handling of
9990 deprecated_init_ui_hook.
9991 * main.c (captured_main): Update comment.
9992
b30a0bc3
JB
99932015-05-06 Joel Brobecker <brobecker@adacore.com>
9994
9995 * solib.c (_initialize_solib): Add "info dll" alias creation.
9996 * windows-nat.c (set_windows_aliases): Delete.
9997 (_initialize_windows_nat): Remove deprecated_init_ui_hook
9998 assignment.
9999 * NEWS: Add news entry about "info dll" now being available
10000 on all platforms.
10001
7c512744
JB
100022015-05-05 Joel Brobecker <brobecker@adacore.com>
10003
10004 * ada-lang.c (value_assign_to_component): Reformat and improve
10005 documentation. Remove all trailing spaces.
10006
0fa7fe50
JB
100072015-05-05 Joel Brobecker <brobecker@adacore.com>
10008
10009 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
10010 Stop counting inlined frames as soon as an out-of-line function
10011 is found.
10012
3ea89b92
PMR
100132014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
10014
10015 * dwarf2read.c (inherit_abstract_dies): Skip
10016 DW_TAG_GNU_call_site dies while inheriting children of an
10017 abstract DIE into a scope.
10018 (read_lexical_block_scope): Inherit abstract DIE's for
10019 lexical scopes.
10020
2478d075
JB
100212015-05-05 Joel Brobecker <brobecker@adacore.com>
10022
10023 * ada-valprint.c (val_print_packed_array_elements): Delete
10024 variable "len". Add a type-length check when comparing two
10025 consecutive elements of the array. Use the element's actual
10026 length in call to value_contents_eq.
10027 * ada-lang.c (ada_value_primitive_packed_val): Always return
10028 a value whose type has been resolved.
10029
fc958966
JB
100302015-05-05 Joel Brobecker <brobecker@adacore.com>
10031
10032 * ada-lang.c (ada_value_primitive_packed_val): Recompute
10033 BIT_SIZE and LEN if the size of the resolved type is smaller
10034 than BIT_SIZE * HOST_CHAR_BIT.
10035
ca34b84f
JB
100362015-05-05 Joel Brobecker <brobecker@adacore.com>
10037
10038 * ada-lang.c (ada_value_primitive_packed_val): Use a more
10039 correct address in call to value_at. Adjust call to
10040 value_address accordingly.
10041
62c67f3c
JB
100422015-05-05 Joel Brobecker <brobecker@adacore.com>
10043
10044 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
10045 to print it.
10046
c3345124
JB
100472015-05-05 Joel Brobecker <brobecker@adacore.com>
10048
10049 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
10050 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
10051 pinfo->valaddr.
10052 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
10053 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
10054 (resolve_dynamic_type_internal): Set pinfo.valaddr.
10055 Add handling of addr_stack->valaddr.
10056 (resolve_dynamic_type): Add "valaddr" parameter.
10057 Set pinfo.valaddr field.
10058 * ada-lang.c (ada_discrete_type_high_bound): Update call to
10059 resolve_dynamic_type.
10060 (ada_discrete_type_low_bound): Likewise.
10061 * findvar.c (default_read_var_value): Likewise.
10062 * value.c (value_from_contents_and_address): Likewise.
10063
75ea5859
JB
100642015-05-05 Joel Brobecker <brobecker@adacore.com>
10065
10066 * gdbtypes.c (resolve_dynamic_array): Use
10067 create_array_type_with_stride instead of create_array_type.
10068
0952813b
DD
100692015-04-30 DJ Delorie <dj@redhat.com>
10070
10071 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
10072 rl78_decode_opcode
10073
2ce1cdbf
DE
100742015-04-29 Doug Evans <dje@google.com>
10075
10076 PR python/18285
10077 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
10078 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
10079 EVAL_AVOID_SIDE_EFFECTS for xmethods.
10080 * extension-priv.h (struct extension_language_ops)
10081 <get_xmethod_result_type>: New member.
10082 * extension.c (get_xmethod_result_type): New function.
10083 * extension.h (get_xmethod_result_type): Declare.
10084 * python/py-xmethods.c (get_result_type_method_name): New static
10085 global.
10086 (py_get_result_type_method_name): Ditto.
10087 (gdbpy_get_xmethod_result_type): New function.
10088 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
10089 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
10090 * python/python.c (python_extension_ops): Add
10091 gdbpy_get_xmethod_result_type.
10092 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
10093 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
10094 xmethods.
10095 (value_x_unop): Ditto.
10096 * value.c (result_type_of_xmethod): New function.
10097 * value.h (result_type_of_xmethod): Declare.
10098
998d2a3e
GB
100992015-04-29 Gary Benson <gbenson@redhat.com>
10100
10101 * solib.c (solib_find_1): Allow fd argument to be NULL.
10102 (exec_file_find): Update comment.
10103 (solib_find): Likewise.
10104 * exec.c (exec_file_locate_attach): Use NULL as fd
10105 argument to exec_file_find to avoid having to close
10106 the opened file.
10107 * infrun.c (follow_exec): Likewise.
10108
34f5f757
DE
101092015-04-28 Doug Evans <dje@google.com>
10110
10111 PR python/18299
10112 * python/lib/gdb/printing.py (register_pretty_printer): Handle
10113 name or __name__ attributes. Handle gdb module as first argument.
10114
69b4374a
DE
101152015-04-28 Doug Evans <dje@google.com>
10116
10117 PR python/18089
10118 * python/py-prettyprint.c (print_children): Verify result of children
10119 iterator. Provide better error message.
10120 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
10121 * python/python.c (gdbpy_print_python_errors_p): New function.
10122
5e7cf078
DE
101232015-04-28 Doug Evans <dje@google.com>
10124
10125 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
10126
59fb7612
SS
101272015-04-28 Sasha Smundak <asmundak@google.com>
10128
10129 * NEWS: Mention gdb.Type.optimized_out method.
10130 * python/py-type.c (typy_optimized_out): New function.
10131
cea6e4f1
JB
101322015-04-28 John Baldwin <jhb@FreeBSD.org>
10133
10134 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10135
24b73f8e
PP
101362015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10137
10138 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
10139 (initialize_utils): Move call of init_page_info() to ...
10140 * top.c (gdb_init): ... here.
10141
a88d0bb3
PP
101422015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10143
10144 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
10145 (tui_sigwinch_handler): Still update our idea of
10146 the terminal's width and height even when TUI is not active.
10147
d6e5e7f7
PP
101482015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10149
10150 * utils.h (set_screen_width_and_height): Declare.
10151 * utils.c (set_screen_width_and_height): Define.
10152 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
10153
ff862be4
GB
101542015-04-28 Gary Benson <gbenson@redhat.com>
10155
10156 * infrun.c (solist.h): New include.
10157 (follow_exec): Use exec_file_find to prefix execd_pathname
10158 with gdb_sysroot.
10159
2eb639cb
PP
101602015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10161
10162 * tui/tui-source.c (tui_set_source_content): Avoid calling
10163 strcpy() when offset is 0.
10164
97206799
PP
101652015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10166
10167 PR gdb/18155
10168 * tui/tui-data.c (tui_free_window): Don't free the locator
10169 window when passed an SRC_WIN or a DISASSEM_WIN.
10170
63ed8182
PP
101712015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10172
10173 * tui/tui-data.h (struct tui_win_element): Forward-declare.
10174 (tui_win_content): Move declaration.
10175 (struct tui_gen_win_info): Give 'content' field the
10176 type tui_win_content.
10177 * tui/tui-data.c (init_content_element): Remove redundant and
10178 erroneous casts.
10179 (tui_add_content_elements): Remove erroneous cast.
10180 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
10181 casts.
10182 (tui_get_begin_asm_address): Likewise.
10183 * tui/tui-regs.c (tui_show_registers): Likewise.
10184 (tui_show_register_group): Likewise.
10185 (tui_display_registers_from): Likewise.
10186 (tui_check_register_values): Likewise.
10187 * tui/tui-source.c (tui_set_source_content): Likewise.
10188 (tui_set_source_content_nil): Likewise.
10189 (tui_source_is_displayed): Likewise.
10190 * tui/tui-stack.c (tui_show_locator_content): Likewise.
10191 (tui_set_locator_fullname): Likewise.
10192 (tui_set_locator_info): Likewise.
10193 (tui_show_frame_info): Likewise.
10194 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
10195 (tui_show_source_line): Likewise.
10196 (tui_horizontal_source_scroll): Likewise.
10197 (tui_update_breakpoint_info): Likewise.
10198 (tui_set_exec_info_content): Likewise.
10199 (tui_show_exec_info_content): Likewise.
10200 (tui_alloc_source_buffer): Likewise.
10201 (tui_line_is_displayed): Likewise.
10202 (tui_addr_is_displayed): Likewise.
10203
d2b41ca0
JB
102042015-04-27 John Baldwin <jhb@FreeBSD.org>
10205
10206 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
10207 event if PL_FLAG_EXEC is set.
10208 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
10209 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
10210 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
10211 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
10212 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
10213
e58e05d6
JB
102142015-04-27 John Baldwin <jhb@FreeBSD.org>
10215
10216 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
10217 [TDP_RFPPWAIT] New variable fbsd_pending_children.
10218 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
10219 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
10220 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
10221 [PT_LWPINFO] (fbsd_wait): New function.
10222 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
10223 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
10224 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
10225 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
10226 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
10227 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
10228 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
10229 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
10230 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
10231 "fbsd_wait".
10232 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
10233 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
10234 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
10235 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
10236 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
10237 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
10238 Set "to_post_attach" to "fbsd_post_attach".
10239
8f60fe01
JB
102402015-04-27 John Baldwin <jhb@FreeBSD.org>
10241
10242 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
10243 (fbsd_find_memory_regions): Mark static.
10244 (fbsd_nat_add_target): New function.
10245 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
10246 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
10247 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
10248 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
10249 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
10250 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
10251
5fbae7d1
GB
102522015-04-27 Gary Benson <gbenson@redhat.com>
10253
10254 * objfiles.c (allocate_objfile): Do not attempt to expand name
10255 if name is a "target:" filename.
10256 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
10257 to load auto-load scripts for objfiles with "target:" filenames.
10258
417c80f9
AA
102592015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10260
10261 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
10262 (enum s390_vector_abi_kind): New enum.
10263 (struct gdbarch_tdep)<vector_abi>: New field.
10264 (s390_effective_inner_type): Add parameter min_size. Stop
10265 unwrapping if the inner type is smaller than min_size.
10266 (s390_function_arg_float): Adjust call to
10267 s390_effective_inner_type.
10268 (s390_function_arg_vector): New function.
10269 (s390_function_arg_integer): Adjust comment.
10270 (struct s390_arg_state)<vr>: New field.
10271 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
10272 arguments according to vector ABI when appropriate.
10273 (s390_push_dummy_call): Initialize the argument state's field
10274 'vr'. Adjust calls to s390_handle_arg.
10275 (s390_register_return_value): Handle vector return values.
10276 (s390_return_value): Apply the "register" return value convention
10277 to a vector when appropriate.
10278 (s390_gdbarch_init): Initialize tdep->vector_abi.
10279 * NEWS: Announce S390 vector ABI support.
10280
4e65a17e
AA
102812015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10282
10283 * s390-linux-tdep.c (s390_return_value_convention): Remove
10284 function. Inline its logic...
10285 (s390_return_value): ...here. Instead, move the handling of the
10286 "register" return value convention...
10287 (s390_register_return_value): ...here. New function.
10288
80f75320
AA
102892015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10290
10291 * s390-linux-tdep.c
10292 (is_float_singleton): Remove function. Move the "singleton" part
10293 of the logic...
10294 (s390_effective_inner_type): ...here. New function.
10295 (is_float_like): Remove function. Inline its logic...
10296 (s390_function_arg_float): ...here.
10297 (is_pointer_like, is_integer_like, is_struct_like): Remove
10298 functions. Inline their logic...
10299 (s390_function_arg_integer): ...here.
10300 (s390_function_arg_pass_by_reference): Remove function.
10301 (extend_simple_arg): Remove function.
10302 (alignment_of): Remove function.
10303 (struct s390_arg_state): New structure.
10304 (s390_handle_arg): New function.
10305 (s390_push_dummy_call): Move parameter placement logic to the new
10306 function s390_handle_arg. Call it for calculating the stack area
10307 sizes first, and again for actually writing the parameters.
10308
6dbc9c04
AA
103092015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10310
10311 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
10312 false if the argument is zero.
10313
9e195661
PMR
103142015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
10315
10316 * ada-lang.c (template_to_static_fixed_type): Return input type
10317 when it is already fixed. Cache the input type itself when not
10318 creating a static fixed copy. Make it explicit that we never
10319 molestate the input type.
10320 * gdbtypes.c (resolve_dynamic_struct): Reset the
10321 TYPE_TARGET_TYPE field for resolved copies.
10322
460efde1
JB
103232015-04-27 Joel Brobecker <brobecker@adacore.com>
10324
10325 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
10326 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
10327 (template_to_static_fixed_type): Call ada_check_typedef only
10328 when necessary.
10329
6faec16b
AB
103302015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
10331
10332 * cli/cli-dump.c (srec_dump_command): Add internationalization
10333 mark ups.
10334 (ihex_dump_command): Likewise.
10335 (tekhex_dump_command): Likewise.
10336 (binary_dump_command): Likewise.
10337 (binary_append_command): Likewise.
10338
cf75d6c3
AB
103392015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
10340
10341 * cli/cli-dump.c (verilog_cmdlist): New variable.
10342 (dump_verilog_memory): New function.
10343 (dump_verilog_value): New function.
10344 (verilog_dump_command): New function.
10345 (_initialize_cli_dump): Add new commands to support verilog dump
10346 format.
10347 * NEWS: Add entry for "dump verilog".
10348
8cd00c59
PMR
103492015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
10350
10351 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
10352 descriptive type when there is none.
10353
8900d71e
PP
103542015-04-23 Patrick Palka <patrick@parcs.ath.cx>
10355
10356 * tui/tui-win.c (tui_async_resize_screen): Call
10357 rl_resize_terminal().
10358
f16eab5f
JT
103592015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
10360
10361 * windows-nat.c (handle_output_debug_string): Don't change
10362 current_event.dwThreadId.
10363 (get_windows_debug_event): Use thread_id, rather than relying on
10364 current_event.dwThreadId being changed.
10365
68ffc902
JT
103662015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
10367
10368 * windows-nat.c (windows_continue): Report an error if
10369 ContinueDebugEvent() fails.
10370
23942819
JT
103712015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10372
10373 * windows-nat.c (windows_resume): Fix misspelling in debug output.
10374
e6ad66bd
JT
103752015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10376
10377 * windows-nat.c (get_windows_debug_event): Replace retval with
10378 thread_id throughout. Update stale comment.
10379
776704b9
JT
103802015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10381
10382 * windows-nat.c (get_windows_debug_event): Don't use ternary
10383 conditional operator.
10384
8aae4344
PM
103852015-04-21 Pierre Muller <muller@sourceware.org>
10386
10387 PR pascal/17815
10388 p-exp.y (yylex): Reorganize code to return the matched pattern
10389 for a field of this.
10390
819843c7
GB
103912015-04-21 Gary Benson <gbenson@redhat.com>
10392
10393 * common/fileio.h (fileio_to_host_openflags): New declaration.
10394 * common/fileio.c (fcntl.h): New include.
10395 (fileio_to_host_openflags): New function, factored out from...
10396 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
10397 Single use updated.
10398
0bca7f99
KB
103992015-04-21 Kevin Buettner <kevinb@redhat.com>
10400
10401 * rl78-tdep.c (RL78_SP_ADDR): Define.
10402 (opc_reg_to_gdb_regnum): New static function.
10403 (rl78_analyze_prologue): Recognize instructions forming slightly
10404 more interesting prologues.
10405
e771e4be
PMR
104062015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
10407
10408 Revert:
10409 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10410 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10411 TYPE_CODE_REF types so that they are not considered as dynamic
10412 depending on the referenced type.
10413 (resolve_dynamic_type_internal): Likewise.
10414
ee715b5a
PMR
104152015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
10416
10417 Revert:
10418 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10419 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10420 "top_level" parameter.
10421 (resolve_dynamic_type_internal): Remove the unused "top_level"
10422 parameter. Update call to is_dynamic_type_internal.
10423 (is_dynamic_type): Update call to is_dynamic_type_internal.
10424 (resolve_dynamic_range): Update call to
10425 resolve_dynamic_type_internal.
10426 (resolve_dynamic_union): Likewise.
10427 (resolve_dynamic_struct): Likewise.
10428 (resolve_dynamic_type): Likewise.
10429
e31d7699
GKB
104302015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
10431
10432 * breakpoint.c (update_dprintf_command_list): Remove duplicated
10433 xmalloc.
10434
d214e5e7
TS
104352015-04-20 Thomas Schwinge <thomas@codesourcery.com>
10436
110f9112
TS
10437 * reply_mig_hack.awk: Robustify parsing.
10438
d214e5e7
TS
10439 * reply_mig_hack.awk: Don't bother to declare an intermediate
10440 function pointer variable.
10441
8f61baf8
DE
104422015-04-17 Doug Evans <dje@google.com>
10443
10444 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
10445 to "exec_displacement" to avoid confusion with inner use of the name.
10446
dbbf180a
YQ
104472015-04-17 Pedro Alves <palves@redhat.com>
10448
10449 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
10450 if HW point of TYPE isn't supported.
10451
059790a0
YQ
104522015-04-17 Yao Qi <yao.qi@linaro.org>
10453 Pedro Alves <palves@redhat.com>
10454
10455 * target.h (target_can_use_hardware_watchpoint): Update comments.
10456 Remove trailing ";".
10457
1b6e6f5c
GB
104582015-04-17 Gary Benson <gbenson@redhat.com>
10459
10460 * remote.c (remote_add_inferior): New argument try_open_exec.
10461 If nonzero, attempt to open the inferior's executable file as
10462 the main executable if no main executable is open already.
10463 All callers updated.
10464 * NEWS: Mention that GDB now supports automatic location and
10465 retrieval of executable + files from remote targets.
10466
c78fa86a
GB
104672015-04-17 Gary Benson <gbenson@redhat.com>
10468
10469 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
10470 * remote.c (PACKET_qXfer_exec_file): Likewise.
10471 (remote_protocol_features): Register the
10472 "qXfer:exec-file:read" feature.
10473 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
10474 (remote_pid_to_exec_file): New function.
10475 (init_remote_ops): Initialize to_pid_to_exec_file.
10476 (_initialize_remote): Register new "set/show remote
10477 pid-to-exec-file-packet" command.
10478 * NEWS: Announce new qXfer:exec-file:read packet.
10479
e0d86d2c
GB
104802015-04-17 Gary Benson <gbenson@redhat.com>
10481
10482 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
10483 New declaration.
10484 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
10485 New function, factored out from...
10486 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
10487
a9a5a3d1
GB
104882015-04-17 Gary Benson <gbenson@redhat.com>
10489
10490 * exec.c (solist.h): New include.
10491 (exec_file_locate_attach): Prefix absolute executable
10492 paths with gdb_sysroot if set.
10493 * NEWS: Mention that executable paths may be prepended
10494 with sysroot.
10495
af1900b0
GB
104962015-04-17 Gary Benson <gbenson@redhat.com>
10497
10498 * solist.h (exec_file_find): New declaration.
10499 * solib.c (solib_find_1): New function, factored out from...
10500 (solib_find): ...here.
10501 (exec_file_find): New function.
10502
a10de604
GB
105032015-04-17 Gary Benson <gbenson@redhat.com>
10504
10505 * gdbcore.h (exec_file_locate_attach): New declaration.
10506 * exec.c (exec_file_locate_attach): New function, factored
10507 out from...
10508 * infcmd.c (attach_command_post_wait): ...here.
10509
92209ddf
MF
105102015-04-17 Mike Frysinger <vapier@gentoo.org>
10511
10512 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
10513
8550d3b3
YQ
105142015-04-16 Yao Qi <yao.qi@linaro.org>
10515
10516 * infrun.c (maybe_software_singlestep): Declare.
10517 (displaced_step_fixup): Call maybe_software_singlestep.
10518
30b3dd9d
DE
105192015-04-15 Doug Evans <dje@google.com>
10520
10521 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
10522
61d96d7e
DE
105232015-04-15 Doug Evans <dje@google.com>
10524
10525 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
10526
40d2f8d6
SM
105272015-04-15 Simon Marchi <simon.marchi@ericsson.com>
10528
10529 * python/lib/gdb/command/unwinders.py: Add parentheses.
10530
6bbbba9b
YQ
105312015-04-15 Yao Qi <yao.qi@linaro.org>
10532
10533 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
10534
2bb2dcab
YQ
105352015-04-15 Yao Qi <yao.qi@linaro.org>
10536
10537 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
10538
41f071ef
YQ
105392015-04-15 Yao Qi <yao.qi@linaro.org>
10540
10541 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
10542 dsc->insn_size instead of 4.
10543
326a5c7e
GB
105442015-04-14 Gary Benson <gbenson@redhat.com>
10545
10546 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
10547 * minidebug.c (lzma_stat): Likewise.
10548 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
10549 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
10550
dd177e81
SS
105512015-04-13 Stan Shebs <stanshebs@google.com>
10552
10553 * MAINTAINERS: Update my email address.
10554
97de3545
JB
105552015-04-13 John Baldwin <jhb@FreeBSD.org>
10556
10557 * amd64-tdep.c (amd64_target_description): New function.
10558 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
10559 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
10560 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10561 x86 extended save area.
10562 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10563 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
10564 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
10565 (_initialize_amd64fbsd_nat): Set "to_read_description" to
10566 "amd64fbsd_read_description".
10567 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
10568 (amd64fbsd_supply_xstateregset): New function.
10569 (amd64fbsd_collect_xstateregset): New function.
10570 Add "amd64fbsd_xstateregset".
10571 (amd64fbsd_iterate_over_regset_sections): New function.
10572 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
10573 "I386_FBSD_XSAVE_XCR0_OFFSET".
10574 Add "iterate_over_regset_sections" gdbarch method.
10575 Add "core_read_description" gdbarch method.
10576 * i386-tdep.c (i386_target_description): New function.
10577 * i386-tdep.h: Export i386_target_description and tdesc_i386.
10578 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
10579 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10580 x86 extended save area.
10581 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10582 * i386bsd-nat.h: Export i386bsd_xsave_len.
10583 * i386fbsd-nat.c (i386fbsd_read_description): New function.
10584 (_initialize_i386fbsd_nat): Set "to_read_description" to
10585 "i386fbsd_read_description".
10586 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
10587 (i386fbsd_core_read_description): New function.
10588 (i386fbsd_supply_xstateregset): New function.
10589 (i386fbsd_collect_xstateregset): New function.
10590 Add "i386fbsd_xstateregset".
10591 (i386fbsd_iterate_over_regset_sections): New function.
10592 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
10593 "I386_FBSD_XSAVE_XCR0_OFFSET".
10594 Add "iterate_over_regset_sections" gdbarch method.
10595 Add "core_read_description" gdbarch method.
10596 * i386fbsd-tdep.h: New file.
10597
4f45d445
JK
105982015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10599
10600 * NEWS (Changes since GDB 7.9): Add removed -xdb.
10601 * breakpoint.c (command_line_is_silent): Remove xdb_commands
10602 conditional.
10603 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
10604 and lb.
10605 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
10606 va.
10607 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
10608 conditional.
10609 * defs.h (xdb_commands): Remove declaration.
10610 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
10611 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
10612 * infcmd.c (run_no_args_command, go_command): Remove.
10613 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
10614 * infrun.c (xdb_handle_command): Remove.
10615 (_initialize_infrun): Remove xdb_commands for lz and z.
10616 * main.c (xdb_commands): Remove variable.
10617 (captured_main): Remove "xdb" from long_options.
10618 (print_gdb_help): Remove --xdb from help.
10619 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
10620 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
10621 * stack.c (backtrace_full_command, args_plus_locals_info)
10622 (current_frame_command): Remove.
10623 (_initialize_stack): Remove xdb_commands for t, T and l.
10624 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
10625 * thread.c (_initialize_thread): Remove xdb_commands condition.
10626 * tui/tui-layout.c (tui_toggle_layout_command)
10627 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
10628 (_initialize_tui_layout): Remove xdb_commands for td and ts.
10629 * tui/tui-regs.c (tui_scroll_regs_forward_command)
10630 (tui_scroll_regs_backward_command): Remove.
10631 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
10632 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
10633 (_initialize_tui_win): Remove xdb_commands for U and w.
10634 * utils.c (pagination_on_command, pagination_off_command): Remove.
10635 (initialize_utils): Remove xdb_commands for am and sm.
10636
cb71640d
PA
106372015-04-10 Pedro Alves <palves@redhat.com>
10638
10639 * infrun.c (displaced_step_fixup): Switch to the event ptid
10640 earlier. If the thread stopped for a watchpoint and the
10641 target/arch has non-continuable watchpoints, cancel the displaced
10642 step.
10643 (resume): Don't start a displaced step if in-line step-over info
10644 is valid.
10645
8f572e5c
PA
106462015-04-10 Pedro Alves <palves@redhat.com>
10647
10648 * infrun.c (displaced_step_in_progress): New function.
10649 (do_target_resume): Advise target to report all signals if
10650 displaced stepping.
10651
8d707a12
PA
106522015-04-10 Pedro Alves <palves@redhat.com>
10653
10654 PR gdb/18216
10655 * infrun.c (process_event_stop_test): Don't assume a step-resume
10656 is set if tp->stepped_breakpoint is true.
10657
ef713951
YQ
106582015-04-10 Yao Qi <yao.qi@linaro.org>
10659
10660 * arm-tdep.c (install_alu_reg): Update comment.
10661 (thumb_copy_alu_reg): Remove local variable rn. Update
10662 debugging message. Use r2 instead of r1 in the modified
10663 instruction.
10664
906d60cf
PA
106652015-04-10 Pedro Alves <palves@redhat.com>
10666
10667 PR gdb/13858
10668 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
10669 linux_displaced_step_location as gdbarch_displaced_step_location
10670 hook.
10671 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10672 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10673 * linux-tdep.c (linux_displaced_step_location): New function,
10674 based on ppc_linux_displaced_step_location.
10675 * linux-tdep.h (linux_displaced_step_location): New declaration.
10676 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
10677 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
10678 Delete.
10679 (ppc_linux_init_abi): Install linux_displaced_step_location as
10680 gdbarch_displaced_step_location hook, even without Cell/B.E..
10681 (_initialize_ppc_linux_tdep): Don't install
10682 ppc_linux_inferior_created as inferior_created observer.
10683 * s390-linux-tdep.c (s390_gdbarch_init): Install
10684 linux_displaced_step_location as gdbarch_displaced_step_location
10685 hook.
10686
7823a941
GB
106872015-04-09 Gary Benson <gbenson@redhat.com>
10688
10689 * common/common-remote-fileio.h: Rename to...
10690 * common/fileio.h: ...this. Update all references.
10691 (remote_fileio_to_fio_error): Rename to...
10692 (host_to_fileio_error): ...this.
10693 (remote_fileio_to_be): Rename to...
10694 (host_to_bigendian): ...this. Update all callers.
10695 (remote_fileio_to_fio_uint): Rename to...
10696 (host_to_fileio_uint): ...this. Update all callers.
10697 (remote_fileio_to_fio_time): Rename to...
10698 (host_to_fileio_time): ...this. Update all callers.
10699 (remote_fileio_to_fio_stat): Rename to...
10700 (host_to_fileio_stat): ...this.
10701 Update all references.
10702 * common/common-remote-fileio.c: Rename to...
10703 * common/fileio.c: ...this. Update all references.
10704 (remote_fileio_to_fio_error): Rename to...
10705 (host_to_fileio_error): ...this. Update all callers.
10706 (remote_fileio_mode_to_target): Rename to...
10707 (fileio_mode_pack): ...this. Update all callers.
10708 (remote_fileio_to_fio_mode): Rename to...
10709 (host_to_fileio_mode): ...this. Update all callers.
10710 (remote_fileio_to_fio_ulong): Rename to...
10711 (host_to_fileio_ulong): ...this. Update all callers.
10712 (remote_fileio_to_fio_stat): Rename to...
10713 (host_to_fileio_stat): ...this. Update all callers.
10714
f2983cc3
AW
107152015-04-09 Andy Wingo <wingo@igalia.com>
10716
10717 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
10718 (frame_functions): Bind gdbscm_frame_read_register to
10719 frame-read-register.
10720 * guile/lib/gdb.scm (frame-read-register): Export.
10721
b88bb450
GB
107222015-04-09 Gary Benson <gbenson@redhat.com>
10723
10724 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
10725 New declaration.
10726 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
10727 New function, factored out the named functions below.
10728 * inf-child.c (gdb/fileio.h): Remove include.
10729 (common-remote-fileio.h): New include.
10730 (inf_child_errno_to_fileio_error): Remove function. Update
10731 all callers to use remote_fileio_to_fio_error.
10732 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
10733
2f2680f3
AW
107342015-04-09 Andy Wingo <wingo@igalia.com>
10735
10736 * MAINTAINERS (Write After Approval): Add Andy Wingo.
10737
5a2d4533
L
107382015-04-09 H.J. Lu <hongjiu.lu@intel.com>
10739
10740 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
10741 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
10742 * configure: Regenerated.
10743
421693b0
PA
107442015-04-09 Pedro Alves <palves@redhat.com>
10745
10746 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
10747 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
10748 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
10749 * gnulib/import/Makefile.am: Update.
10750 * gnulib/import/Makefile.in: Update.
10751 * gnulib/import/m4/gnulib-cache.m4: Update.
10752 * gnulib/import/m4/gnulib-comp.m4: Update.
10753 * gnulib/import/m4/strtok_r.m4: New file.
10754 * gnulib/import/strtok_r.c: New file.
10755
f543dc83
PA
107562015-04-09 Pedro Alves <palves@redhat.com>
10757
10758 * gnulib/update-gnulib.sh (aclocal version check): Filter out
10759 "called too early to check prototype".
10760
6d62641c
SDJ
107612015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
10762
10763 PR python/16699
10764 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
10765 use a caching mechanism. Adjust comments and code to reflect
10766 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
10767 (cmdpy_completer_handle_brkchars): Adjust call to
10768 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
10769 (cmdpy_completer): Likewise.
10770
85558555
YQ
107712015-04-08 Yao Qi <yao.qi@linaro.org>
10772
10773 * spu-tdep.c (spu_gdbarch_init): Don't call
10774 set_gdbarch_cannot_step_breakpoint.
10775
d249a14a
SDJ
107762015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
10777
10778 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
10779
8a06aea7
PA
107802015-04-07 Pedro Alves <palves@redhat.com>
10781
10782 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
10783 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
10784 (delete_exited_threads): New declaration.
10785 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
10786 * linux-nat.c (linux_nat_update_thread_list): New function.
10787 (linux_nat_add_target): Install it.
10788 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
10789 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
10790 (delete_exited_threads): New function.
10791
d9b67d9f
PA
107922015-04-07 Pedro Alves <pedro@codesourcery.com>
10793
10794 * infrun.c (resume) <displaced stepping debug output>: Get the
10795 leader thread's regcache, not resume_ptid's.
10796
2c26b84f
DE
107972015-04-06 Doug Evans <xdje42@gmail.com>
10798
10799 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
10800 VAR_DOMAIN.
10801 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
10802 Include symbol domain in debugging output.
10803
7a85168d
PA
108042015-04-06 Pedro Alves <palves@redhat.com>
10805 Bernd Edlinger <bernd.edlinger@hotmail.de>
10806
10807 * configure.ac: Remove the mingw32-specific stub-termcap.o
10808 fallback, and instead fallback to the stub termcap on all hosts.
10809 * configure: Regenerate.
10810 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
10811 symbols.
10812
25755e2b
PMR
108132015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10814
10815 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10816 "top_level" parameter.
10817 (resolve_dynamic_type_internal): Remove the unused "top_level"
10818 parameter. Update call to is_dynamic_type_internal.
10819 (is_dynamic_type): Update call to is_dynamic_type_internal.
10820 (resolve_dynamic_range): Update call to
10821 resolve_dynamic_type_internal.
10822 (resolve_dynamic_union): Likewise.
10823 (resolve_dynamic_struct): Likewise.
10824 (resolve_dynamic_type): Likewise.
10825
961f4160
PMR
108262015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10827
10828 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10829 TYPE_CODE_REF types so that they are not considered as dynamic
10830 depending on the referenced type.
10831 (resolve_dynamic_type_internal): Likewise.
10832
39f3de7c
L
108332015-04-02 H.J. Lu <hongjiu.lu@intel.com>
10834
10835 * Makefile.in (top_srcdir): New.
10836 * configure: Regenerated.
10837
599bd15c
GB
108382015-04-02 Gary Benson <gbenson@redhat.com>
10839
10840 * NEWS: Announce the new default sysroot of "target:".
10841
fed040c6
GB
108422015-04-02 Gary Benson <gbenson@redhat.com>
10843
10844 * main.c (captured_main): Set gdb_sysroot to "target:"
10845 if not otherwise set.
10846
64c0b5de
GB
108472015-04-02 Gary Benson <gbenson@redhat.com>
10848
10849 * exec.c (exec_file_attach): Support "target:" filenames.
10850
b57fbfba
GB
108512015-04-02 Gary Benson <gbenson@redhat.com>
10852
10853 * solib.c (solib_find): Strip "target:" prefix from sysroot
10854 if accessing local files.
10855
97a41605
GB
108562015-04-02 Gary Benson <gbenson@redhat.com>
10857
10858 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
10859 checks and error messages.
10860
2938e6cf
GB
108612015-04-02 Gary Benson <gbenson@redhat.com>
10862
10863 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
10864 (remote_filename_p): Remove declaration.
10865 (remote_bfd_open): Likewise.
10866 * remote.c (remote_bfd_iovec_open): Remove function.
10867 (remote_bfd_iovec_close): Likewise.
10868 (remote_bfd_iovec_pread): Likewise.
10869 (remote_bfd_iovec_stat): Likewise.
10870 (remote_filename_p): Likewise.
10871 (remote_bfd_open): Likewise.
10872 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
10873 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
10874 (gdb_bfd_open_maybe_remote): Remove function.
10875 (symfile_bfd_open): Replace remote filename check with
10876 target filename check.
10877 (reread_symbols): Use gdb_bfd_open.
10878 * build-id.c (gdbcore.h): New include.
10879 (build_id_to_debug_bfd): Use gdb_bfd_open.
10880 * infcmd.c (attach_command_post_wait): Remove remote filename
10881 check.
10882 * solib.c (solib_find): Replace remote-specific handling with
10883 target-specific handling. Update comments where necessary.
10884 (solib_bfd_open): Replace remote-specific handling with
10885 target-specific handling.
10886 (gdb_sysroot_changed): New function.
10887 (_initialize_solib): Call the above when gdb_sysroot changes.
10888 * windows-tdep.c (gdbcore.h): New include.
10889 (windows_xfer_shared_library): Use gdb_bfd_open.
10890
f08e97fe
GB
108912015-04-02 Gary Benson <gbenson@redhat.com>
10892
10893 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
10894 (is_target_filename): New declaration.
10895 (gdb_bfd_has_target_filename): Likewise.
10896 (gdb_bfd_open): Update documentation comment.
10897 * gdb_bfd.c (target.h): New include.
10898 (gdb/fileio.h): Likewise.
10899 (is_target_filename): New function.
10900 (gdb_bfd_has_target_filename): Likewise.
10901 (fileio_errno_to_host): Likewise.
10902 (gdb_bfd_iovec_fileio_open): Likewise.
10903 (gdb_bfd_iovec_fileio_pread): Likewise.
10904 (gdb_bfd_iovec_fileio_close): Likewise.
10905 (gdb_bfd_iovec_fileio_fstat): Likewise.
10906 (gdb_bfd_open): Use target fileio to access paths prefixed
10907 with "target:" where necessary.
10908
4bd7dc42
GB
109092015-04-02 Gary Benson <gbenson@redhat.com>
10910
10911 * target.h (struct target_ops) <to_filesystem_is_local>:
10912 New field.
10913 (target_filesystem_is_local): New macro.
10914 * target-delegates.c: Regenerate.
10915 * remote.c (remote_filesystem_is_local): New function.
10916 (init_remote_ops): Initialize to_filesystem_is_local.
10917
9b15c1f0
GB
109182015-04-02 Gary Benson <gbenson@redhat.com>
10919
10920 * target.h (struct target_ops) <to_fileio_fstat>: New field.
10921 (target_fileio_fstat): New declaration.
10922 * target.c (target_fileio_fstat): New function.
10923 * inf-child.c (inf_child_fileio_fstat): Likewise.
10924 (inf_child_target): Initialize to_fileio_fstat.
10925 * remote.c (init_remote_ops): Likewise.
10926
d11916aa
SS
109272015-04-01 Sasha Smundak <asmundak@google.com>
10928
10929 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
10930 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
10931 (py-unwind.o): New recipe.
10932 * NEWS: mention Python frame unwinding.
10933 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
10934 gdb/unwinder.py and gdb/command/unwinder.py
10935 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
10936 list.
10937 (execute_unwinders): New function.
10938 * python/lib/gdb/command/unwinders.py: New file.
10939 * python/lib/gdb/unwinder.py: New file.
10940 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
10941 (objfpy_dealloc): Decrement frame_unwinders reference count.
10942 (objfpy_initialize): Create frame_unwinders list.
10943 (objfpy_get_frame_unwinders): New function.
10944 (objfpy_set_frame_unwinders): Ditto.
10945 (objfile_getset): Add frame_unwinders attribute to Objfile.
10946 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
10947 (pspy_dealloc): Decrement frame_unwinders reference count.
10948 (pspy_initialize): Create frame_unwinders list.
10949 (pspy_get_frame_unwinders): New function.
10950 (pspy_set_frame_unwinders): Ditto.
10951 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
10952 * python/py-unwind.c: New file.
10953 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
10954 (objpy_get_frame_unwinders): New prototype.
10955 (gdbpy_initialize_unwind): New prototype.
10956 * python/python.c (gdbpy_apply_type_printers): Call
10957 gdbpy_initialize_unwind.
10958
6b403daa
PA
109592015-04-01 Pedro Alves <palves@redhat.com>
10960
10961 * infrun.c (resume): Check currently_stepping after clearing
10962 stepped_breakpoint, not before.
10963
1176ecec
PA
109642015-04-01 Pedro Alves <palves@redhat.com>
10965
10966 * infrun.c (print_target_wait_results): Print all the ptid
10967 elements.
10968
de1fe8c8
PA
109692015-04-01 Pedro Alves <palves@redhat.com>
10970
10971 * infrun.c (keep_going): Also discard cleanups if inserting
10972 breakpoints fails.
10973
e6f5c25b
PA
109742015-04-01 Pedro Alves <palves@redhat.com>
10975
10976 * infrun.c (wait_for_inferior): Install the
10977 finish_thread_state_cleanup cleanup across the whole function, not
10978 just around handle_inferior_event.
10979
1ac806b8
PA
109802015-04-01 Pedro Alves <palves@redhat.com>
10981
10982 * infrun.c (resume) <step past permanent breakpoint>: Use
10983 do_target_resume.
10984
2ee52aa4
PA
109852015-04-01 Pedro Alves <palves@redhat.com>
10986
10987 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
10988
5445da1b
PMR
109892015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
10990
10991 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
10992
4eec2deb
PA
109932015-04-01 Pedro Alves <palves@redhat.com>
10994
10995 * linux-thread-db.c (record_thread): Readd the thread to gdb's
10996 list if it was marked exited.
10997
afa59b79
L
109982015-04-01 H.J. Lu <hongjiu.lu@intel.com>
10999
11000 * configure: Regenerated.
11001
df8411da
SDJ
110022015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
11003 Jan Kratochvil <jan.kratochvil@redhat.com>
11004 Oleg Nesterov <oleg@redhat.com>
11005
11006 PR corefiles/16092
11007 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
11008 New enum identifying the various options of the coredump_filter
11009 file.
11010 (struct smaps_vmflags): New struct.
11011 (use_coredump_filter): New variable.
11012 (decode_vmflags): New function.
11013 (mapping_is_anonymous_p): Likewise.
11014 (dump_mapping_p): Likewise.
11015 (linux_find_memory_regions_full): New variables
11016 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
11017 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
11018 parsing of its information. Implement memory mapping filtering
11019 based on its contents.
11020 (show_use_coredump_filter): New function.
11021 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
11022 * NEWS: Mention the possibility of using the
11023 '/proc/PID/coredump_filter' file when generating a corefile.
11024 Mention new command 'set use-coredump-filter'.
11025
416f679e
SDJ
110262015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
11027
11028 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
11029 read_memory_unsigned_integer.
11030
711a72d3
L
110312015-03-31 H.J. Lu <hongjiu.lu@intel.com>
11032
11033 * Makefile.in (ZLIB): New.
11034 (ZLIBINC): Likewise.
11035 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
11036 (CLIBS): Add $(ZLIB).
11037 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
11038 Add -lz to LIBS.
11039 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
11040 * top.c (print_gdb_configuration): Remove --with-zlib and
11041 --without-zlib.
11042 * config.in: Regenerated.
11043 * configure: Likewise.
11044
d33279b3
AT
110452015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
11046
11047 * NEWS: Mention info os cpus support.
11048 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
11049 (struct osdata_type): Add cpus entry, reorder the entries in
11050 alphabetical order.
11051
71b30f27
MK
110522015-03-31 Matthias Klose <doko@ubuntu.com>
11053
11054 * compile/compile.c (compile_to_object): Allow triplets with or
11055 without vendor set.
11056
13ce9222
DE
110572015-03-30 Doug Evans <dje@google.com>
11058
11059 PR c++/18141
11060 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
11061 klass in VAR_DOMAIN.
11062
20f796c9
GB
110632015-03-30 Gary Benson <gbenson@redhat.com>
11064
11065 * remote.c (remote_mourn_1): Remove function. Update all callers
11066 to use remote_mourn.
11067 (extended_remote_mourn_1): Remove function. Update all callers
11068 to use extended_remote_mourn.
11069 (extended_remote_attach_1): Remove function. Update all callers
11070 to use extended_remote_attach.
11071
49d45b20
JB
110722015-03-28 James Bowman <james.bowman@ftdichip.com>
11073
11074 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
11075 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
11076 (ALLDEPFILES): Add ft32-tdep.c.
11077 * configure.tgt: Add FT32 entry.
11078 * ft32-tdep.c: New file, FT32 target-dependent code.
11079 * ft32-tdep.h: New file, FT32 target-dependent code.
11080
1c4ff080
JK
110812015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11082
11083 Revert:
11084 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11085 Code cleanup.
11086 * printcmd.c (print_command_1): Move expr variable scope.
11087
79498702
JB
110882015-03-27 Joel Brobecker <brobecker@adacore.com>
11089
11090 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
11091
ce9c0ca1
AK
110922015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
11093
11094 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
11095 sections.
11096
429e1e81
JB
110972015-03-26 Joel Brobecker <brobecker@adacore.com>
11098
11099 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
11100 exception raised while parsing the probe arguments.
11101 Force parsing to be done using the C language parser.
11102 * expression.h (parse_expression_with_language): Declare.
11103 * parse.c (parse_expression_with_language): New function.
11104
4593441b
JT
111052015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
11106
11107 * MAINTAINERS (Write After Approval): Add "Jon Turney".
11108
ff908ebf
AW
111092015-03-26 Andy Wingo <wingo@igalia.com>
11110
11111 PR symtab/18148
11112 * dwarf2read.c (struct partial_die_info): Add has_const_value
11113 member.
11114 (add_partial_symbol): Don't punt on symbols that have const_value
11115 attributes.
11116 (read_partial_die): Detect DW_AT_const_value.
11117
f30d5c78
JK
111182015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11119
11120 Code cleanup.
11121 * printcmd.c (print_command_1): Move expr variable scope.
11122
8d89f51a
JK
111232015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11124
11125 Code cleanup.
11126 * printcmd.c (validate_format): Make the parameter cmdname const.
11127
0b736949
DB
111282015-03-26 Don Breazeal <donb@codesourcery.com>
11129
11130 * remote.c (_initialize_remote): Update comment.
11131
20d35291
PA
111322015-03-26 Pedro Alves <palves@redhat.com>
11133 Jon TURNEY <jon.turney@dronecode.org.uk>
11134
11135 * coffread.c (coff_symfile_read): When constructing the name of an
11136 import stub symbol from import symbol for amd64, only skip the
11137 char after _imp_ if the target is underscored (like i386) and the
11138 char is indeed the target's leading char.
11139
6a3753b3
PA
111402015-03-25 Pedro Alves <palves@redhat.com>
11141
11142 * target.h <to_async>: Replace 'callback' and 'context' parameters
11143 with boolean 'enable' parameter.
11144 (target_async): Replace CALLBACK and CONTEXT parameters with
11145 boolean ENABLE parameter.
11146 * inf-loop.c (inferior_event_handler): Adjust.
11147 * linux-nat.c (linux_nat_attach, linux_nat_resume)
11148 (linux_nat_resume): Adjust.
11149 (async_client_callback, async_client_context): Delete.
11150 (handle_target_event): Call inferior_event_handler directly.
11151 (linux_nat_async): Replace 'callback' and 'context' parameters
11152 with boolean 'enable' parameter. Adjust. Remove references to
11153 async_client_callback and async_client_context.
11154 (linux_nat_close): Adjust.
11155 * record-btrace.c (record_btrace_async): Replace 'callback' and
11156 'context' parameters with boolean 'enable' parameter. Adjust.
11157 (record_btrace_resume): Adjust.
11158 * record-full.c (record_full_async): Replace 'callback' and
11159 'context' parameters with boolean 'enable' parameter. Adjust.
11160 (record_full_resume, record_full_core_resume): Adjust.
11161 * remote.c (struct remote_state) <async_client_callback,
11162 async_client_context>: Delete fields.
11163 (remote_start_remote, extended_remote_attach_1, remote_resume)
11164 (extended_remote_create_inferior): Adjust.
11165 (remote_async_serial_handler): Call inferior_event_handler
11166 directly.
11167 (remote_async): Replace 'callback' and 'context' parameters with
11168 boolean 'enable' parameter. Adjust.
11169 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
11170 Adjust.
11171 * target-delegates.c: Regenerate.
11172
1c4b552b
GB
111732015-03-25 Gary Benson <gbenson@redhat.com>
11174 Pedro Alves <palves@redhat.com>
11175
11176 * target.c (fileio_ft_t): New typedef, define object vector.
11177 (fileio_fhandles): New static variable.
11178 (is_closed_fileio_fh): New macro.
11179 (lowest_closed_fd): New static variable.
11180 (acquire_fileio_fd): New function.
11181 (release_fileio_fd): Likewise.
11182 (fileio_fd_to_fh): New macro.
11183 (target_fileio_open): Wrap the file descriptor on success.
11184 (target_fileio_pwrite): Updated to use wrapped file descriptor.
11185 (target_fileio_pread): Likewise.
11186 (target_fileio_close): Likewise.
11187
a25d8bf9
PA
111882015-03-24 Pedro Alves <palves@redhat.com>
11189
11190 * thread.c (thread_apply_all_command): Take exited threads into
11191 account.
11192
44a1ee51
PA
111932015-03-24 Pedro Alves <palves@redhat.com>
11194
11195 * infrun.c (resume, proceed): Mention
11196 switch_back_to_stepped_thread, not switch_back_to_stepping.
11197
f3263aa4
PA
111982015-03-24 Pedro Alves <palves@redhat.com>
11199
11200 * infrun.c (user_visible_resume_ptid): Rewrite going from
11201 most-locked to unlocked instead of the opposite. Move comment ...
11202 * infrun.h (user_visible_resume_ptid): ... here.
11203
2bf6fb9d
PA
112042015-03-24 Pedro Alves <palves@redhat.com>
11205
11206 * linux-nat.c (linux_nat_resume): Output debug logs before trying
11207 to resume the event lwp. Use the lwp's ptid instead of the passed
11208 in (maybe wildcard) ptid.
11209 (stop_wait_callback): Tweak debug log output.
11210 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
11211 TRAP_TRACE.
11212 (linux_nat_filter_event): In debug output, distinguish a
11213 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
11214 before trying to resume the lwp.
11215
283a9958
JB
112162015-03-24 Joel Brobecker <brobecker@adacore.com>
11217
11218 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
11219 pointer indirection.
11220 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
11221 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
11222
93a8e227
JB
112232015-03-24 Joel Brobecker <brobecker@adacore.com>
11224
11225 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
11226 Renames DYN_ATTR_DATA_LOCATION.
11227 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
11228 DYN_ATTR_DATA_LOCATION.
11229 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
11230 instead of DYN_ATTR_DATA_LOCATION.
11231
64ce06e4
PA
112322015-03-24 Pedro Alves <palves@redhat.com>
11233
11234 * breakpoint.c (until_break_command): Adjust call to proceed.
11235 * gdbthread.h (struct thread_control_state) <stepping_command>:
11236 New field.
11237 * infcall.c (run_inferior_call): Adjust call to proceed.
11238 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
11239 Adjust calls to proceed.
11240 (set_step_frame): Set the current thread's step_start_function
11241 here.
11242 (step_once): Adjust calls to proceed.
11243 (jump_command, signal_command, until_next_command)
11244 (finish_backward, finish_forward, proceed_after_attach_callback)
11245 (attach_command_post_wait): Adjust calls to proceed.
11246 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
11247 (do_target_resume): New function, factored out from ...
11248 (resume): ... here. Remove 'step' parameter. Instead, check
11249 currently_stepping to determine whether the thread should be
11250 single-stepped.
11251 (proceed): Remove 'step' parameter and don't set the thread's
11252 step_start_function here. Adjust call to 'resume'.
11253 (handle_inferior_event): Adjust calls to 'resume'.
11254 (switch_back_to_stepped_thread): Use do_target_resume instead of
11255 'resume'.
11256 (keep_going): Adjust calls to 'resume'.
11257 * infrun.h (proceed): Remove 'step' parameter.
11258 (resume): Likewise.
11259 * windows-nat.c (do_initial_windows_stuff): Adjust call to
11260 'resume'.
11261 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
11262
856e7dd6
PA
112632015-03-24 Pedro Alves <palves@redhat.com>
11264
11265 * gdbthread.h (struct thread_control_state) <stepping_command>:
11266 New field.
11267 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
11268 the thread's stepping_command field.
11269 * infrun.c (resume): Check the thread's stepping_command flag to
11270 determine which threads should be resumed. Rename 'entry_step'
11271 local to user_step.
11272 (clear_proceed_status_thread): Clear 'stepping_command'.
11273 (schedlock_applies): Change parameter type to struct thread_info
11274 pointer. Adjust.
11275 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
11276 (switch_back_to_stepped_thread): Adjust calls to
11277 'schedlock_applies'.
11278 (_initialize_infrun): Adjust "set scheduler-locking step" help.
11279
885eeb5b
PA
112802015-03-24 Pedro Alves <palves@redhat.com>
11281
11282 * infrun.c (step_start_function): Delete and ...
11283 * gdbthread.h (struct thread_control_state) <step_start_function>:
11284 ... now a field here.
11285 * infrun.c (clear_proceed_status_thread): Clear the thread's
11286 step_start_function.
11287 (proceed, process_event_stop_test, print_stop_event): Adjust.
11288
3333f03a
PA
112892015-03-24 Pedro Alves <palves@redhat.com>
11290
11291 * infrun.c (proceed): No longer handle negative step.
11292
369f6daa
GB
112932015-03-24 Gary Benson <gbenson@redhat.com>
11294
11295 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
11296 (x86_linux_prepare_to_resume): Likewise.
11297 * x86-linux-nat.c (x86_linux_new_thread):
11298 Moved to nat/x86-linux.c.
11299 (x86_linux_prepare_to_resume): Likewise.
11300 * nat/x86-linux.c (x86_linux_new_thread): New function.
11301 (x86_linux_prepare_to_resume): Likewise.
11302
8e5d4070
GB
113032015-03-24 Gary Benson <gbenson@redhat.com>
11304
11305 * nat/x86-linux-dregs.h: New file.
11306 * nat/x86-linux-dregs.c: Likewise.
11307 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
11308 (x86-linux-dregs.o): New rule.
11309 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
11310 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11311 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
11312 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11313 (x86_linux_dr_get): Likewise.
11314 (x86_linux_dr_set): Likewise.
11315 (x86_linux_dr_get_addr): Likewise.
11316 (x86_linux_dr_get_control): Likewise.
11317 (x86_linux_dr_get_status): Likewise.
11318 (update_debug_registers_callback): Likewise.
11319 (x86_linux_dr_set_control): Likewise.
11320 (x86_linux_dr_set_addr): Likewise.
11321 (x86_linux_update_debug_registers): Likewise.
11322
2b95d440
GB
113232015-03-24 Gary Benson <gbenson@redhat.com>
11324
11325 * x86-linux-nat.c (x86_linux_update_debug_registers):
11326 New function, factored out from...
11327 (x86_linux_prepare_to_resume): ...this.
11328
14b0bc68
GB
113292015-03-24 Gary Benson <gbenson@redhat.com>
11330
11331 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
11332 (x86_linux_dr_set): Likewise.
11333 (x86_linux_dr_get_addr): Likewise.
11334 (x86_linux_dr_get_control): Likewise.
11335 (x86_linux_dr_get_status): Likewise.
11336 (update_debug_registers_callback): Likewise.
11337 (x86_linux_dr_set_control): Likewise.
11338 (x86_linux_dr_set_addr): Likewise.
11339 (x86_linux_prepare_to_resume): Likewise.
11340 (x86_linux_new_thread): Likewise.
11341
5dfe6ca8
GB
113422015-03-24 Gary Benson <gbenson@redhat.com>
11343
11344 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
11345 (x86_linux_new_thread): Rename argument.
11346
4b134ca1
GB
113472015-03-24 Gary Benson <gbenson@redhat.com>
11348
11349 * nat/x86-linux.h: New file.
11350 * nat/x86-linux.c: Likewise.
11351 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
11352 (x86-linux.o): New rule.
11353 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
11354 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11355 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
11356 (lwp_set_arch_private_info): New declaration.
11357 (lwp_arch_private_info): Likewise.
11358 * linux-nat.c (lwp_set_arch_private_info): New function.
11359 (lwp_arch_private_info): Likewise.
11360 * x86-linux-nat.c: Include nat/x86-linux.h.
11361 (arch_lwp_info): Removed structure.
11362 (update_debug_registers_callback):
11363 Use lwp_set_debug_registers_changed.
11364 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11365 and lwp_set_debug_registers_changed.
11366 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11367
cff068da
GB
113682015-03-24 Gary Benson <gbenson@redhat.com>
11369
11370 * nat/linux-nat.h (ptid_of_lwp): New declaration.
11371 (lwp_is_stopped): Likewise.
11372 (lwp_stop_reason): Likewise.
11373 * linux-nat.c (ptid_of_lwp): New function.
11374 (lwp_is_stopped): Likewise.
11375 (lwp_is_stopped_by_watchpoint): Likewise.
11376 * x86-linux-nat.c (update_debug_registers_callback):
11377 Use lwp_is_stopped.
11378 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11379 lwp_stop_reason.
11380
b2f7c7e8
GB
113812015-03-24 Gary Benson <gbenson@redhat.com>
11382
11383 * linux-nat.h (linux_stop_lwp): Move declaration to...
11384 * nat/linux-nat.h (linux_stop_lwp): New declaration.
11385
6d4ee8c6
GB
113862015-03-24 Gary Benson <gbenson@redhat.com>
11387
11388 * linux-nat.h: Include nat/linux-nat.h.
11389 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
11390 * nat/linux-nat.h (struct lwp_info): New forward declaration.
11391 (iterate_over_lwps_ftype): New typedef.
11392 (iterate_over_lwps): New declaration.
11393 * linux-nat.h (iterate_over_lwps): Update comment. Use
11394 iterate_over_lwps_ftype. Update callback return value check.
11395
70a0bb6b
GB
113962015-03-24 Gary Benson <gbenson@redhat.com>
11397
11398 * x86-nat.h (x86_debug_reg_state): Move declaration to...
11399 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
11400
7b669087
GB
114012015-03-24 Gary Benson <gbenson@redhat.com>
11402
11403 * nat/linux-nat.h (current_lwp_ptid): New declaration.
11404 * linux-nat.c (current_lwp_ptid): New function.
11405 * x86-linux-nat.c: Include nat/linux-nat.h.
11406 (x86_linux_dr_get_addr): Use current_lwp_ptid.
11407 (x86_linux_dr_get_control): Likewise.
11408 (x86_linux_dr_get_status): Likewise.
11409 (x86_linux_dr_set_control): Likewise.
11410 (x86_linux_dr_set_addr): Likewise.
11411
15630549
AT
114122015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
11413
11414 PR breakpoints/16466
11415 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
11416
8a4506c0
JB
114172015-03-23 Joel Brobecker <brobecker@adacore.com>
11418
11419 * ser-mingw.c (ser_windows_setparity): Fix indentation.
11420 * ser-unix.c (hardwire_setparity): Likewise.
11421
236af5e3
YG
114222015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
11423
11424 * NEWS: Mention set/show serial parity command.
11425 * monitor.c (monitor_open): Call serial_setparity.
11426 * remote.c (remote_open_1): Likewise.
11427 * ser-base.c (ser_base_serparity): New function.
11428 * ser-base.h (ser_base_setparity): Add declaration.
11429 * ser-go32.c (dos_ops): Set "setparity" field.
11430 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
11431 state.Parity.
11432 (ser_windows_setparity): New function.
11433 (hardwire_ops): Add ser_windows_setparity.
11434 (tty_ops): Add NULL for setparity field.
11435 (pipe_ops): Add ser_base_setparity.
11436 (tcp_ops): Likewise.
11437 * ser-pipe.c (pipe_ops): Likewise.
11438 * ser-tcp.c (tcp_ops): Likewise.
11439 * ser-unix.c (hardwire_setparity): Add declaration.
11440 (hardwire_raw): Don't reset PARENB flag.
11441 (hardwire_setparity): New function.
11442 (hardwire_ops): Add hardwire_setparity.
11443 * serial.c (serial_setparity): New function.
11444 (serial_parity): New global.
11445 (parity_none, parity_odd, parity_even, parity_enums, parity):
11446 New static globals.
11447 (set_parity): New function.
11448 (_initialize_serial): Add set/show serial parity commands.
11449 * serial.h (GDBPARITY_NONE): Define.
11450 (GDBPARITY_ODD): Define.
11451 (GDBPARITY_EVEN): Define.
11452 (serial_setparity) Add declaration.
11453 (struct serial_ops): Add setparity field.
11454 * target.h (serial_parity): Add declaration.
11455
32b40af9
KS
114562015-03-23 Keith Seitz <keiths@redhat.com>
11457
11458 * linespec.c (linespec_lexer_lex_keyword): Update comment.
11459
693dca06
KS
114602015-03-23 Keith Seitz <keiths@redhat.com>
11461
11462 * breakpoint.c (parse_breakpoint_sals): Use
11463 linespec_lexer_lex_keyword to ascertain if the user specified
11464 a NULL location.
11465 * linespec.c [IF_KEYWORD_INDEX]: Define.
11466 (linespec_lexer_lex_keyword): Export.
11467 (struct ls_parser) <keyword_ok>: Remove.
11468 A keyword is only a keyword if not followed by another keyword.
11469 (linespec_lexer_lex_one): Remove keyword_ok handling.
11470 Add comment explaining why the parsing stream is not advanced
11471 when a keyword is seen.
11472 (parse_linespec): Remove parser->keyword_ok.
11473 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
11474
7e993ebf
KS
114752015-03-23 Keith Seitz <keiths@redhat.com>
11476
11477 PR gdb/18021
11478 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
11479 if we find a static method with DW_AT_vtable_elem_location.
11480
b1a0f704
EZ
114812015-03-21 Eli Zaretskii <eliz@gnu.org>
11482
11483 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
11484 before the second loop, to avoid undefined behavior. Reported by
11485 Anton Blanchard <anton@samba.org>.
11486
d9823cbb
KB
114872015-03-20 Keven Boell <keven.boell@intel.com>
11488
11489 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
11490 data_location usage to linked list.
11491 (resolve_dynamic_type_internal): Adapt data_location to
11492 linked list.
11493 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
11494 (copy_type_recursive, copy_type): Add copy of linked list.
11495 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
11496 (struct dynamic_prop_list): New struct.
11497 * dwarf2read.c (set_die_type): Set data_location data.
11498
2e7bf1d7
PA
114992015-03-20 Pedro Alves <palves@redhat.com>
11500
11501 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
11502 inner block and make it const.
11503 * machoread.c (get_archive_prefix_len): Make "lparen" const.
11504
7a26bd4d
PA
115052015-03-20 Pedro Alves <palves@redhat.com>
11506
11507 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
11508 * breakpoint.h (set_breakpoint_condition): Update declaration.
11509
cd46431b
PA
115102015-03-20 Pedro Alves <palves@redhat.com>
11511
11512 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
11513
e28566f7
PA
115142015-03-20 Pedro Alves <palves@redhat.com>
11515
11516 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
11517
f6fc92f6
PA
115182015-03-20 Pedro Alves <palves@redhat.com>
11519
11520 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
11521
c32ed3ef
PA
115222015-03-20 Pedro Alves <palves@redhat.com>
11523
11524 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
11525 (nto_init_solib_absolute_prefix): Likewise.
11526
53e78085
PA
115272015-03-20 Pedro Alves <palves@redhat.com>
11528
11529 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
11530 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
11531
bc23328c
JK
115322015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11533
11534 * config/djgpp/README: Remove gdb.hp.
11535
e8ffc436
YQ
115362015-03-20 Yao Qi <yao.qi@linaro.org>
11537
11538 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
11539 set_gdbarch_cannot_step_breakpoint.
11540
23f238d3
PA
115412015-03-19 Pedro Alves <palves@redhat.com>
11542
11543 * linux-nat.c (linux_resume_one_lwp): Rename to ...
11544 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11545 instead call perror_with_name.
11546 (check_ptrace_stopped_lwp_gone): New function.
11547 (linux_resume_one_lwp): Reimplement as wrapper around
11548 linux_resume_one_lwp_throw that swallows errors if the LWP is
11549 gone.
11550 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
11551 swallows errors if the LWP is gone. Use
11552 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
11553
eb54c8bf
PA
115542015-03-19 Pedro Alves <palves@redhat.com>
11555
11556 * linux-nat.c (status_callback): Return early if the LWP has no
11557 status pending.
11558
b90fc188
PA
115592015-03-19 Pedro Alves <palves@redhat.com>
11560
11561 * linux-nat.c (select_event_lwp_callback): Update comment to no
11562 longer mention SIGTRAP.
11563
670f82d4
TG
115642015-03-18 Tristan Gingold <gingold@adacore.com>
11565
72f4393d
L
11566 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
11567 redirection code to ...
11568 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
11569 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 11570
464b0089
GB
115712015-03-18 Gary Benson <gbenson@redhat.com>
11572
11573 (remote_protocol_features): Remove the "vFile:fstat" feature.
11574 (remote_hostio_fstat): Probe for "vFile:fstat" support.
11575
f68f11b7
YQ
115762015-03-11 Yao Qi <yao.qi@linaro.org>
11577
11578 PR tdep/18107
11579 * aarch64-linux-tdep.c: Include xml-syscall.h
11580 (aarch64_linux_get_syscall_number): New function.
11581 (aarch64_linux_init_abi): Call
11582 set_gdbarch_get_syscall_number.
11583 * syscalls/aarch64-linux.xml: New file.
11584
393bd0c0
YG
115852015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
11586
11587 * ser-base.h (ser_base_setstopbits): Change second argument name
11588 from "rate" to "num".
11589
7f3647e2
GB
115902015-03-17 Gary Benson <gbenson@redhat.com>
11591 Luke Allardyce <lukeallardyce@gmail.com>
11592
11593 PR gdb/18131
11594 * common/common-remote-fileio.h (sys/stat.h): New include.
11595 (stuct stat): Remove forward declaration.
11596
3ce5b6e2
JB
115972015-03-16 John Baldwin <jhb@FreeBSD.org>
11598
11599 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
11600 before writing core register notes.
11601
d053f6be
YZ
116022015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
11603 Pedro Alves <palves@redhat.com>
11604
11605 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
11606 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
11607 (tgoto): Wrap with extern "C".
11608
b1a921c8
PA
116092015-03-16 Pedro Alves <palves@redhat.com>
11610 Yuanhui Zhang <asmwarrior@gmail.com>
11611
11612 * stub-termcap.c (tputs): Change prototype.
11613
876d1cd7
YZ
116142015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
11615 Pedro Alves <palves@redhat.com>
11616
11617 * windows-nat.c (struct thread_info_struct): Rename to ...
11618 (struct windows_thread_info_struct): ... this.
11619 (thread_info): Rename to ...
11620 (windows_thread_info): ... this.
11621 All users updated.
11622
0800b440
JK
116232015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11624 Pedro Alves <palves@redhat.com>
11625
11626 * NEWS: New Removed targets and native configurations.
11627
116282015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
11629
11630 Remove HPUX.
11631 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
11632 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
11633 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
11634 ia64-hpux-tdep.h, solib-ia64-hpux.h.
11635 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
11636 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
11637 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
11638 hppa-hpux-tdep.c.
11639 * config/ia64/hpux.mh: Remove file.
11640 * config/pa/hpux.mh: Remove file.
11641 * configure: Rebuilt.
11642 * configure.ac (dlgetmodinfo, somread.o): Remove.
11643 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11644 (ia64-*-hpux*): Remove its float format exception.
11645 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11646 * hppa-hpux-nat.c: Remove file.
11647 * hppa-hpux-tdep.c: Remove file.
11648 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
11649 Move them here from hppa-tdep.h
11650 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
11651 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
11652 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
11653 Move them to hppa-tdep.c.
11654 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
11655 declarations.
11656 * ia64-hpux-nat.c: Remove file.
11657 * ia64-hpux-tdep.c: Remove file.
11658 * ia64-hpux-tdep.h: Remove file.
11659 * inf-ttrace.c: Remove file.
11660 * inf-ttrace.h: Remove file.
11661 * solib-ia64-hpux.c: Remove file.
11662 * solib-ia64-hpux.h: Remove file.
11663 * solib-pa64.c: Remove file.
11664 * solib-pa64.h: Remove file.
11665 * solib-som.c: Remove file.
11666 * solib-som.h: Remove file.
11667 * somread.c: Remove file.
11668
25268153
JB
116692015-03-13 John Baldwin <jhb@FreeBSD.org>
11670
11671 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
11672 * config.in: Regenerate.
11673 * configure: Regenerate.
11674 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 11675 define.
25268153
JB
11676 (fbsd_find_memory_regions): Use kinfo_getvmmap to
11677 enumerate memory regions if present.
11678
773eacf5
JB
116792015-03-13 John Baldwin <jhb@FreeBSD.org>
11680
11681 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
11682 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
11683 expressions.
11684 (i386fbsd_sigtramp_p): Likewise.
11685
01b6bdb0
JB
116862015-03-12 John Baldwin <jhb@FreeBSD.org>
11687
11688 * MAINTAINERS (Write After Approval): Add John Baldwin.
11689
811a659a
GB
116902015-03-12 Gary Benson <gbenson@redhat.com>
11691
11692 * solib.c (_initialize_solib): Make "set/show sysroot" use
11693 add_setshow_optional_filename_cmd so it can be restored to
11694 empty after being set.
11695
10304ef3
SDJ
116962015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
11697
11698 * Makefile.in (SFILES): New source break-catch-syscall.c.
11699 (COMMON_OBS): New object break-catch-syscall.o.
11700 * break-catch-syscall.c: New file.
11701 * breakpoint.c: Remove inclusion of "xml-syscall.h".
11702 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
11703 (struct syscall_catchpoint): Likewise.
11704 (dtor_catch_syscall): Likewise.
11705 (catch_syscall_inferior_data): Likewise.
11706 (struct catch_syscall_inferior_data): Likewise.
11707 (get_catch_syscall_inferior_data): Likewise.
11708 (catch_syscall_inferior_data_cleanup): Likewise.
11709 (insert_catch_syscall): Likewise.
11710 (remove_catch_syscall): Likewise.
11711 (breakpoint_hit_catch_syscall): Likewise.
11712 (print_it_catch_syscall): Likewise.
11713 (print_one_catch_syscall): Likewise.
11714 (print_mention_catch_syscall): Likewise.
11715 (print_recreate_catch_syscall): Likewise.
11716 (catch_syscall_breakpoint_ops): Likewise.
11717 (syscall_catchpoint_p): Likewise.
11718 (create_syscall_event_catchpoint): Likewise.
11719 (catch_syscall_split_args): Likewise.
11720 (catch_syscall_command_1): Likewise.
11721 (is_syscall_catchpoint_enabled): Likewise.
11722 (catch_syscall_enabled): Likewise.
11723 (catching_syscall_number): Likewise.
11724 (catch_syscall_completer): Likewise.
11725 (clear_syscall_counts): Likewise.
11726 (initialize_breakpoint_ops): Move initialization of syscall
11727 catchpoints to break-catch-syscall.c.
11728 (_initialize_breakpoint): Move code related to syscall catchpoints
11729 to break-catch-syscall.c.
11730
badd37ce
SDJ
117312015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
11732
11733 * breakpoint.c (breakpoint_find_if): New function.
11734 * breakpoint.h (breakpoint_find_if): New prototype.
11735
0a93529c
GB
117362015-03-11 Gary Benson <gbenson@redhat.com>
11737
11738 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
11739 * remote-fileio.c (remote_fileio_to_host_uint): New function.
11740 (remote_fileio_to_host_ulong): Likewise.
11741 (remote_fileio_to_host_mode): Likewise.
11742 (remote_fileio_to_host_time): Likewise.
11743 (remote_fileio_to_host_stat): Likewise.
11744 * remote.c (PACKET_vFile_fstat): New enum value.
11745 (remote_protocol_features): Register the "vFile:fstat" feature.
11746 (remote_hostio_fstat): New function.
11747 (remote_bfd_iovec_stat): Use the above.
11748 (_initialize_remote): Register new "set/show remote
11749 hostio-fstat-packet" command.
11750 * symfile.c (separate_debug_file_exists): Update comment.
11751 * NEWS: Announce new vFile:fstat packet.
11752
791c0056
GB
117532015-03-11 Gary Benson <gbenson@redhat.com>
11754
11755 * common/common-remote-fileio.h: New file.
11756 * common/common-remote-fileio.c: Likewise.
11757 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11758 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
11759 (COMMON_OBS): Add common-remote-fileio.o.
11760 (common-remote-fileio.o): New rule.
11761 * remote-fileio.h (common-remote-fileio.h): New include.
11762 * remote-fileio.c (gdb/fileio.h): Do not include.
11763 (remote_fileio_to_be): Moved to common-remote-fileio.h.
11764 (remote_fileio_to_fio_uint): Likewise.
11765 (remote_fileio_to_fio_time): Likewise.
11766 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
11767 (remote_fileio_to_fio_mode): Likewise.
11768 (remote_fileio_to_fio_ulong): Likewise.
11769 (remote_fileio_to_fio_stat): Likewise.
11770
1390d0ef
AW
117712015-03-11 Andy Wingo <wingo@igalia.com>
11772
11773 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
11774 we were checking the cached type, not the cached dynamic type.
11775
84a4591a
AW
117762015-03-11 Andy Wingo <wingo@igalia.com>
11777
11778 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
11779 other strings, as these are on the GC'd heap, and will be
11780 collected along with the smob.
11781
85642ba0
AW
117822015-03-11 Andy Wingo <wingo@igalia.com>
11783
11784 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
11785 (objfile_functions): Bind gdbscm_objfile_progspace to
11786 objfile-progspace.
11787 * guile/lib/gdb.scm: Add objfile-progspace to exports.
11788
92fab5a6
AW
117892015-03-11 Andy Wingo <wingo@igalia.com>
11790
11791 * guile/guile.c (_initialize_guile): Disable automatic
11792 finalization, if Guile offers us that possibility.
11793 * guile/guile.c (call_initialize_gdb_module):
11794 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
11795 finalizers in appropriate places.
11796 * configure.ac (AC_TRY_LIBGUILE): Add a check for
11797 scm_set_automatic_finalization_enabled.
11798 * configure: Regenerated.
11799
f054145e
AA
118002015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11801
11802 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
11803 SAL, if possible.
11804
18396193
AA
118052015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11806
11807 * s390-linux-nat.c (struct arch_lwp_info): New.
11808 (s390_fix_watch_points): Rename to...
11809 (s390_prepare_to_resume): ...this. Skip the PER info update
11810 unless the watch points have changed.
11811 (s390_refresh_per_info, s390_new_thread): New functions.
11812 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
11813 s390_fix_watch_points.
11814 (s390_remove_watchpoint): Likewise.
11815 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
11816 Register s390_prepare_to_resume.
11817
9eb1356e
PA
118182015-03-09 Pedro Alves <palves@redhat.com>
11819
11820 Revert:
11821 2015-03-07 Pedro Alves <palves@redhat.com>
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
aac331e4
PA
118272015-03-07 Pedro Alves <palves@redhat.com>
11828
11829 * configure.ac (build_warnings): Move -Wmissing-prototypes
11830 -Wdeclaration-after-statement -Wmissing-parameter-type
11831 -Wold-style-declaration -Wold-style-definition to the C-specific
11832 set.
11833 * configure: Regenerate.
11834
366c75fc
PA
118352015-03-07 Pedro Alves <palves@redhat.com>
11836
11837 * common/gdb_socket.h: New file.
11838 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11839 sys/socket.h.
11840 (net_open): Use union gdb_sockaddr_u.
11841
72df25b2
PA
118422015-03-07 Pedro Alves <palves@redhat.com>
11843
11844 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
11845 (exceptions_state_mc_action_iter)
11846 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11847 Don't define.
11848 [__cplusplus] (try_scope_depth): New global.
11849 [__cplusplus] (exception_try_scope_entry)
11850 (exception_try_scope_exit, gdb_exception_sliced_copy)
11851 (exception_rethrow): New functions.
11852 (throw_exception): In C++ mode, throw
11853 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
11854 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
11855 (throw_it): In C++ mode, use try_scope_depth.
11856 * common/common-exceptions.h [!__cplusplus]
11857 (exceptions_state_mc_action_iter)
11858 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11859 Don't declare.
11860 [__cplusplus] (exception_try_scope_entry)
11861 (exception_try_scope_exit, exception_rethrow): Declare.
11862 [__cplusplus] (struct exception_try_scope): New struct.
11863 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
11864 C++ exceptions.
11865 (struct gdb_exception_RETURN_MASK_ALL)
11866 (struct gdb_exception_RETURN_MASK_ERROR)
11867 (struct gdb_exception_RETURN_MASK_QUIT): New types.
11868
284e6217
PA
118692015-03-07 Pedro Alves <palves@redhat.com>
11870
11871 * main.c (handle_command_errors): Remove volatile qualifier from
11872 parameter.
11873
6c63c96a
PA
118742015-03-07 Pedro Alves <palves@redhat.com>
11875
11876 * breakpoint.c (save_breakpoints): Adjust to avoid code between
11877 TRY and CATCH.
11878 * gdbtypes.c (safe_parse_type): Remove empty line.
11879 (types_deeply_equal):
11880 * guile/scm-frame.c (gdbscm_frame_name):
11881 * linux-thread-db.c (find_new_threads_once):
11882 * python/py-breakpoint.c (bppy_get_commands):
11883 * record-btrace.c (record_btrace_insert_breakpoint)
11884 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
11885 (record_btrace_start_replaying): Adjust to avoid code between TRY
11886 and CATCH.
11887
492d29ea
PA
118882015-03-07 Pedro Alves <palves@redhat.com>
11889
11890 * common/common-exceptions.c (struct catcher) <exception>: No
11891 longer a pointer to volatile exception. Now an exception value.
11892 <mask>: Delete field.
11893 (exceptions_state_mc_init): Remove all parameters. Adjust.
11894 (exceptions_state_mc): No longer pop the catcher here.
11895 (exceptions_state_mc_catch): New function.
11896 (throw_exception): Adjust.
11897 * common/common-exceptions.h (exceptions_state_mc_init): Remove
11898 all parameters.
11899 (exceptions_state_mc_catch): Declare.
11900 (TRY_CATCH): Rename to ...
11901 (TRY): ... this. Remove EXCEPTION and MASK parameters.
11902 (CATCH, END_CATCH): New.
11903 All callers adjusted.
11904
ece957c8
TT
119052015-03-07 Tom Tromey <tromey@redhat.com>
11906
11907 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
11908
7556d4a4
PA
119092015-03-07 Pedro Alves <palves@redhat.com>
11910
11911 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11912 (amd64_epilogue_frame_cache): Normal exception handling code.
11913 * break-catch-throw.c (check_status_exception_catchpoint)
11914 (re_set_exception_catchpoint): Ditto.
11915 * cli/cli-interp.c (safe_execute_command):
11916 * cli/cli-script.c (script_from_file): Ditto.
11917 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
11918 Ditto.
11919 * compile/compile-object-run.c (compile_object_run): Ditto.
11920 * cp-abi.c (baseclass_offset): Ditto.
11921 * cp-valprint.c (cp_print_value): Ditto.
11922 * exceptions.c (catch_exceptions_with_msg):
11923 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
11924 * frame.c (get_frame_address_in_block_if_available): Ditto.
11925 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11926 (i386_sigtramp_frame_cache): Ditto.
11927 * infcmd.c (post_create_inferior): Ditto.
11928 * linespec.c (parse_linespec, find_linespec_symbols):
11929 * p-valprint.c (pascal_object_print_value): Ditto.
11930 * parse.c (parse_expression_for_completion): Ditto.
11931 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
11932 * remote.c (remote_get_noisy_reply): Ditto.
11933 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
11934 * solib-svr4.c (solib_svr4_r_map): Ditto.
11935
f873665f 119362015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
11937
11938 * common/common-utils.h (startswith): New inline function.
11939 All places where this logic was used updated to use the above.
11940
68901c4d
PA
119412015-03-05 Pedro Alves <palves@redhat.com>
11942
11943 PR gdb/18002
11944 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
11945 after reading the breakpoint's shadow memory.
11946
2dcb2b1a
MK
119472015-03-05 Mark Kettenis <kettenis@gnu.org>
11948
11949 * hppabsd-nat.c: Remove file.
11950 * hppaobsd-nat.c: New file.
11951 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
11952 hppaobsd-nat.c.
11953 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
11954 hppaobsd-nat.o.
11955
527a273a
PA
119562015-03-04 Pedro Alves <palves@redhat.com>
11957
11958 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
11959 (target_decr_pc_after_break): Delete declaration.
11960 * target.c (default_target_decr_pc_after_break)
11961 (target_decr_pc_after_break): Delete.
11962 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
11963 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
11964 * linux-thread-db.c (check_event): Likewise.
11965 * infrun.c (adjust_pc_after_break): Likewise.
11966 * darwin-nat.c (cancel_breakpoint): Likewise.
11967 * aix-thread.c (aix_thread_wait): Likewise.
11968 * target-delegates.c: Regenerate.
11969
faf09f01
PA
119702015-03-04 Pedro Alves <palves@redhat.com>
11971
11972 * linux-nat.c (save_sigtrap): Check for breakpoints before
11973 checking watchpoints.
11974 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11975 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11976 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
11977 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
11978 (linux_nat_stopped_by_sw_breakpoint)
11979 (linux_nat_supports_stopped_by_sw_breakpoint)
11980 (linux_nat_stopped_by_hw_breakpoint)
11981 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
11982 (linux_nat_wait_1): Don't re-increment the PC if relying on
11983 SIGTRAP's siginfo->si_code.
11984 (linux_nat_add_target): Install new target methods.
11985 * linux-thread-db.c (check_event): Don't account for breakpoint PC
11986 offset if the target already adjusted the PC.
11987 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
11988 (GDB_ARCH_TRAP_BRKPT): New.
11989 (TRAP_HWBKPT): Define if not already defined.
11990
f7e6eed5
PA
119912015-03-04 Pedro Alves <palves@redhat.com>
11992
11993 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
11994 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
11995 Delete field.
11996 <stop_reason>: New field.
11997 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
11998 (packet_set_cmd_state): New function.
11999 (remote_protocol_features): Register the "swbreak" and "hwbreak"
12000 features.
12001 (remote_query_supported): If not disabled with the corresponding
12002 "set remote foo-packet" command, report support for the swbreak
12003 and hwbreak features.
12004 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
12005 field.
12006 <stop_reason>: New field.
12007 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
12008 (remote_wait_as): Adjust.
12009 (remote_stopped_by_sw_breakpoint)
12010 (remote_supports_stopped_by_sw_breakpoint)
12011 (remote_stopped_by_hw_breakpoint)
12012 (remote_supports_stopped_by_hw_breakpoint): New functions.
12013 (remote_stopped_by_watchpoint): New function.
12014 (init_remote_ops): Install them.
12015 (_initialize_remote): Register new "set/show remote
12016 swbreak-feature-packet" and "set/show remote
12017 swbreak-feature-packet" commands.
12018
9e8915c6
PA
120192015-03-04 Pedro Alves <palves@redhat.com>
12020
12021 * btrace.h: Include target/waitstatus.h.
12022 (struct btrace_thread_info) <stop_reason>: New field.
12023 * record-btrace.c (record_btrace_step_thread): Use
12024 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
12025 (record_btrace_decr_pc_after_break): Delete.
12026 (record_btrace_stopped_by_sw_breakpoint)
12027 (record_btrace_supports_stopped_by_sw_breakpoint)
12028 (record_btrace_stopped_by_hw_breakpoint)
12029 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
12030 (init_record_btrace_ops): Install them.
12031 * record-full.c (record_full_hw_watchpoint): Delete and replace
12032 with ...
12033 (record_full_stop_reason): ... this throughout.
12034 (record_full_exec_insn): Adjust.
12035 (record_full_wait_1): Adjust. No longer re-increment the PC.
12036 (record_full_wait_1): Adjust. Use
12037 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
12038 (record_full_stopped_by_watchpoint): Adjust.
12039 (record_full_stopped_by_sw_breakpoint)
12040 (record_full_supports_stopped_by_sw_breakpoint)
12041 (record_full_supports_stopped_by_sw_breakpoint)
12042 (record_full_stopped_by_hw_breakpoint)
12043 (record_full_supports_stopped_by_hw_breakpoint): New functions.
12044 (init_record_full_ops, init_record_full_core_ops): Install them.
12045 * record.c (record_check_stopped_by_breakpoint): New function.
12046 * record.h: Include target/waitstatus.h.
12047 (record_check_stopped_by_breakpoint): New declaration.
12048
15c66dd6
PA
120492015-03-04 Pedro Alves <palves@redhat.com>
12050
12051 enum lwp_stop_reason -> enum target_stop_reason
12052 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
12053 (linux_nat_stopped_by_watchpoint, status_callback)
12054 (linux_nat_wait_1): Adjust.
12055 * linux-nat.h (enum lwp_stop_reason): Delete.
12056 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12057 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12058 * target/waitstatus.h (enum target_stop_reason): New.
12059
1cf4d951
PA
120602015-03-04 Pedro Alves <palves@redhat.com>
12061
12062 * breakpoint.c (need_moribund_for_location_type): New function.
12063 (bpstat_stop_status): Don't skipping checking moribund locations
12064 of breakpoint types which the target tell caused a stop.
12065 (program_breakpoint_here_p): New function, factored out from ...
12066 (bp_loc_is_permanent): ... this.
12067 (update_global_location_list): Don't create a moribund location if
12068 the target supports reporting stops of the type of the removed
12069 breakpoint.
12070 * breakpoint.h (program_breakpoint_here_p): New declaration.
12071 * infrun.c (adjust_pc_after_break): Return early if the target has
12072 already adjusted the PC. Add comments.
12073 (handle_signal_stop): If nothing explains a signal, and the target
12074 tells us the stop was caused by a software breakpoint, check if
12075 there's a breakpoint instruction in the memory. If so, adjust the
12076 PC before presenting the stop to the user. Otherwise, ignore the
12077 trap. If nothing explains a signal, and the target tells us the
12078 stop was caused by a hardware breakpoint, ignore the trap.
12079 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
12080 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
12081 to_supports_stopped_by_hw_breakpoint>: New fields.
12082 (target_stopped_by_sw_breakpoint)
12083 (target_supports_stopped_by_sw_breakpoint)
12084 (target_stopped_by_hw_breakpoint)
12085 (target_supports_stopped_by_hw_breakpoint): Define.
12086 * target-delegates.c: Regenerate.
12087
79639e11
PA
120882015-03-04 Pedro Alves <palves@redhat.com>
12089
12090 * infrun.c (follow_fork_inferior): Use the whole of the
12091 inferior_ptid and pending_follow.related_pid ptids instead of
12092 building ptids from the process components. Adjust verbose output
12093 to use target_pid_to_str.
12094 * linux-nat.c (linux_child_follow_fork): Use the whole of the
12095 inferior_ptid and pending_follow.related_pid ptids instead of
12096 building ptids from the process components.
12097
e85e8e5e
MK
120982015-03-04 Mark Kettenis <kettenis@gnu.org>
12099
12100 * inf-ptrace.c [PT_GET_PROCESS_STATE]
12101 (inf_ptrace_insert_fork_catchpoint): New function.
12102 (inf_ptrace_remove_fork_catchpoint): New function.
12103 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
12104
87de11c0
AA
121052015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12106
12107 * s390-linux-tdep.c (s390_register_name): Return empty string
12108 instead of NULL for registers that shouldn't be visible.
12109
d851a69a
AA
121102015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12111
12112 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
12113 XML file for 64-bit targets.
12114
b072f6c1
SM
121152015-03-03 Simon Marchi <simon.marchi@ericsson.com>
12116
12117 * target.h (find_default_create_inferior): Remove declaration.
12118 (find_default_attach): Likewise.
12119
c1593e4f
PA
121202015-03-03 Pedro Alves <palves@redhat.com>
12121
12122 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
12123 Use ptid_get_pid to get the overall process id when resuming all
12124 threads.
12125
90ad5e1d
PA
121262015-03-03 Pedro Alves <palves@redhat.com>
12127
12128 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
12129 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
12130 * inf-ptrace.c (get_ptrace_pid): New function.
12131 (inf_ptrace_resume): Use it.
12132 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
12133 to the lower layer.
12134
d68e53f4
MM
121352015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12136
12137 * nat/linux-btrace.c: Include sys/utsname.h.
12138 (linux_determine_kernel_ptr_bits): New.
12139 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
12140 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
12141 ptr_bits.
12142
986b6601
MM
121432015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12144
12145 * btrace.c (ftrace_update_function): Treat return as tailcall for
12146 "_dl_runtime_resolve".
12147
ce0dfbea
MM
121482015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12149
12150 * btrace.h (btrace_function) <lbegin, lend>: Remove.
12151 * btrace.c (ftrace_debug): Do not print the line range.
12152 (ftrace_skip_file, ftrace_update_lines): Remove.
12153 (ftrace_new_function): Remove lbegin and lend initialization.
12154 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
12155 * record-btrace.c (btrace_compute_src_line_range): New.
12156 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
12157
95e50b27
PA
121582015-03-02 Pedro Alves <palves@redhat.com>
12159
12160 * infrun.c (follow_exec): Delete all threads of the process except
12161 the event thread. Extended comments.
12162
00e474c2
JB
121632015-03-02 Joel Brobecker <brobecker@adacore.com>
12164
12165 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
12166
cc7039d3
JB
121672015-03-02 Joel Brobecker <brobecker@adacore.com>
12168
12169 * utils.h: Remove <stdbool.h> #include.
12170 (producer_is_gcc): Change return type to "int".
12171 * utils.c (producer_is_gcc): Change return type to int.
12172 Return 1 instead of true, and 0 instead of false.
12173 Adjust function documentation accordingly.
12174
550bdf96
AA
121752015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12176
12177 * s390-linux-nat.c (have_regset_vxrs): New static variable.
12178 (s390_linux_fetch_inferior_registers): Handle vector registers, if
12179 present.
12180 (s390_linux_store_inferior_registers): Likewise.
12181 (s390_get_hwcap): Remove function. Embed its logic...
12182 (s390_read_description): ...here. Yield a target description with
12183 vector registers if applicable.
12184 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
12185 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
12186 "features/s390x-tevx-linux64.c".
12187 (struct gdbarch_tdep) <v0_full_regnum>: New field.
12188 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
12189 for "GNU/Linux-specific registers".
12190 (s390_dwarf_reg_r0l): New enum value.
12191 (s390_dwarf_reg_to_regnum): Support vector registers.
12192 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
12193 of GPR lower halves.
12194 (regnum_is_vxr_full): New function.
12195 (s390_register_name): New function.
12196 (s390_pseudo_register_name): Handle v0-v15, which are composed of
12197 f0-f15 and v0l-v15l.
12198 (s390_pseudo_register_type): Likewise.
12199 (s390_pseudo_register_read): Likewise.
12200 (s390_pseudo_register_write): Likewise.
12201 (s390_value_from_register): Account for the fact that values are
12202 placed left-justified in vector registers.
12203 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
12204 the vector reggroup and omit them from the general reggroup.
12205 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
12206 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
12207 (s390_iterate_over_regset_sections): Add iterations for the two
12208 new vector regsets.
12209 (s390_core_read_description): Yield a target description with
12210 vector registers if applicable.
12211 (s390_gdbarch_init): Handle target descriptions with vector
12212 registers. Add "register_name" gdbarch method.
12213 (_initialize_s390_tdep): Call new tdesc initialization functions.
12214 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
12215 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
12216 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
12217 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
12218 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
12219 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
12220 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
12221 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
12222 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
12223 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
12224 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
12225 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
12226 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
12227 (S390_NUM_REGS): Adjust value.
12228 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
12229 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12230 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
12231 * NEWS: Announce S/390 vector register support.
12232
446899e4
AA
122332015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12234
12235 * features/s390-tevx-linux64.xml: New file.
12236 * features/s390-vx-linux64.xml: New file.
12237 * features/s390-vx.xml: New file.
12238 * features/s390x-tevx-linux64.xml: New file.
12239 * features/s390x-vx-linux64.xml: New file.
12240 * features/Makefile (WHICH): Add s390-vx-linux64,
12241 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
12242 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
12243 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
12244 macros.
12245 * features/s390-tevx-linux64.c: New generated file.
12246 * features/s390-vx-linux64.c: Likewise.
12247 * features/s390x-tevx-linux64.c: Likewise.
12248 * features/s390x-vx-linux64.c: Likewise.
12249 * regformats/s390-tevx-linux64.dat: Likewise.
12250 * regformats/s390-vx-linux64.dat: Likewise.
12251 * regformats/s390x-tevx-linux64.dat: Likewise.
12252 * regformats/s390x-vx-linux64.dat: Likewise.
12253
b7236fbe
DE
122542015-02-28 Doug Evans <xdje42@gmail.com>
12255
12256 * symtab.h (struct symtab) <next>: Fix comment.
12257
02e62830
SM
122582015-02-27 Simon Marchi <simon.marchi@ericsson.com>
12259
12260 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
12261 python_GdbMethods.
12262
bf36a1e7
PA
122632015-02-27 Pedro Alves <palves@redhat.com>
12264
12265 * dtrace-probe.c (dtrace_probe_ops): Make extern.
12266
ad6aff7d
PA
122672015-02-27 Pedro Alves <palves@redhat.com>
12268
12269 * common/common-exceptions.h (exception_none): Declare.
12270 * common/common-exceptions.c (exception_none): Moved from
12271 exceptions.c.
12272 (exceptions_state_mc_init): Use exception_none.
12273 * exceptions.c (exception_none): Move to
12274 common/common-exceptions.c.
12275 * exceptions.h (exception_none): Move to
12276 common/common-exceptions.h.
12277
97c18565
PA
122782015-02-27 Pedro Alves <palves@redhat.com>
12279
12280 * main.c (catch_command_errors, catch_command_errors_const):
12281 Remove 'mask' argument. Adjust.
12282 (captured_main): Adjust callers.
12283
e992c591
PA
122842015-02-27 Pedro Alves <palves@redhat.com>
12285
12286 * python/python-internal.h: Include "extension-priv.h".
12287
64166036
PA
122882015-02-27 Pedro Alves <palves@redhat.com>
12289
12290 * breakpoint.h (enum print_stop_action): Move further up in the
12291 file.
12292
8a526fa6
PA
122932015-02-27 Pedro Alves <palves@redhat.com>
12294
12295 * gdbarch.sh: Include regcache.h.
12296 * gdbarch.h: Regenerate.
12297
0fa9c223
PA
122982015-02-27 Pedro Alves <palves@redhat.com>
12299
12300 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
12301 Remove duplicate const.
12302 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
12303 duplicate const.
12304
7cf99fb1
PA
123052015-02-27 Pedro Alves <palves@redhat.com>
12306
12307 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
12308 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
12309 * features/feature_to_c.sh: Tag the generated xml_builtin array
12310 with extern const in C++ mode.
12311
1424c16e
TT
123122015-02-27 Tom Tromey <tromey@redhat.com>
12313
12314 * minidebug.c (struct lzma_stream): Rename to ...
12315 (struct gdb_lzma_stream): ... this.
12316 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
12317
10367c7c
PA
123182015-02-27 Pedro Alves <palves@redhat.com>
12319
12320 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
12321 function.
12322 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
12323 (mi_cmd_stack_list_variables): Use it.
12324
4180215b
PA
123252015-02-27 Pedro Alves <palves@redhat.com>
12326
12327 * x86-linux-nat.c (u_debugreg_offset): New function.
12328 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12329
2f56f7c3
PA
123302015-02-27 Pedro Alves <palves@redhat.com>
12331
12332 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
12333 declaration.
12334 Include break-common.h.
12335
570dc176
TT
123362015-02-27 Tom Tromey <tromey@redhat.com>
12337 Pedro Alves <palves@redhat.com>
12338
12339 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
12340 local used to iterate over enums.
12341 * completer.c (signal_completer): Likewise.
12342 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
12343 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
12344 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
12345 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
12346 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
12347 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
12348 * tui-wingeneral.c (tui_refresh_all): Likewise.
12349
68c14faa
PA
123502015-02-27 Pedro Alves <palves@redhat.com>
12351
12352 * target.h: Include "infrun.h".
12353
749bab01
PA
123542015-02-27 Pedro Alves <palves@redhat.com>
12355
12356 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12357
3c14e5a3
PA
123582015-02-27 Pedro Alves <palves@redhat.com>
12359
12360 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
12361 (IPA_SYM): Use it.
12362 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
12363
56000a98
PA
123642015-02-27 Pedro Alves <palves@redhat.com>
12365
12366 * cli-out.c (_rl_erase_entire_line): Move declaration out of
12367 cli_mld_erase_entire_line, and make it extern "C".
12368 * common/common-defs.h (EXTERN_C): New.
12369 * completer.c (_rl_completion_prefix_display_length)
12370 (_rl_print_completions_horizontally, QSFUNC): Move declarations
12371 out of gdb_display_match_list_1.
12372 (_rl_qsort_string_compare): Move declaration out of
12373 gdb_display_match_list_1, and make it extern "C".
12374 * defs.h (re_comp): Use EXTERN_C.
12375 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
12376 and make it extern "C".
12377 (monstartup): Move declaration out of maintenance_set_profile_cmd,
12378 and make it extern "C".
12379 (main): Move declaration out of maintenance_set_profile_cmd.
12380 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
12381 EXTERN_C.
12382
bcabf420
PA
123832015-02-27 Pedro Alves <palves@redhat.com>
12384
12385 * python/python.c (GdbMethods): Rename to ...
12386 (python_GdbMethods): ... this and make extern.
12387 (GdbModuleDef): Rename to ...
12388 (python_GdbModuleDef): ... this and make extern.
12389
928dbe07
PA
123902015-02-27 Pedro Alves <palves@redhat.com>
12391
12392 * record-btrace.c (set_record_btrace_cmdlist)
12393 (show_record_btrace_cmdlist): Remove redefinitions.
12394
52059ffd
TT
123952015-02-27 Tom Tromey <tromey@redhat.com>
12396 Pedro Alves <palves@redhat.com>
12397
12398 * dwarf2-frame.c (enum cfa_how_kind, struct
12399 dwarf2_frame_state_reg_info): Move out of struct
12400 dwarf2_frame_state.
12401 * dwarf2read.c (struct tu_stats): Move out of struct
12402 dwarf2_per_objfile.
12403 (struct file_entry): Move out of struct line_header.
12404 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
12405 typedef_field_list): Move out of struct field_info.
12406 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
12407 Move out of struct dynamic_prop.
12408 (union type_owner, union field_location, struct field, struct
12409 range_bounds, union type_specific): Move out of struct main_type.
12410 (struct fn_fieldlist, struct fn_field, struct typedef_field)
12411 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
12412 (struct call_site_target, union call_site_parameter_u, struct
12413 call_site_parameter): Move out of struct call_site.
12414 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
12415 m32c_prologue.
12416 (enum srcdest_kind): Move out of struct srcdest.
12417 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
12418 * prologue-value.h (enum prologue_value_kind): Move out of struct
12419 prologue_value.
12420 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
12421 gdbarch_tdep.
12422 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
12423 out of struct field_info.
12424 * symfile.h (struct other_sections): Move out of struct
12425 section_addr_info.
12426 * symtab.c (struct symbol_cache_slot): Move out struct
12427 block_symbol_cache.
12428 * target-descriptions.c (enum tdesc_type_kind): Move out of
12429 typedef struct tdesc_type.
12430 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
12431 struct tui_line_or_address.
12432 * value.c (enum internalvar_kind, union internalvar_data): Move
12433 out of struct internalvar.
12434 * xtensa-tdep.h (struct ctype_cache): Move out of struct
12435 gdbarch_tdep.
12436
fe978cb0
PA
124372015-02-27 Tom Tromey <tromey@redhat.com>
12438 Pedro Alves <palves@redhat.com>
12439
12440 Rename symbols whose names are reserved C++ keywords throughout.
12441
3bc3d82a
PA
124422015-02-27 Pedro Alves <palves@redhat.com>
12443
12444 * Makefile.in (COMPILER): New, get it from autoconf.
12445 (COMPILE.pre, CC_LD): Use COMPILER.
12446 (CXX): Get from autoconf instead.
12447 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12448 * acinclude.m4: Include build-with-cxx.m4.
12449 * build-with-cxx.m4: New file.
12450 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12451 Disable -Werror by default if building in C++ mode.
12452 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12453 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
12454 Run supported-warning-flags tests with the C++ compiler.
12455 Save/restore CXXFLAGS too.
12456 * configure: Regenerate.
12457
07697489
PA
124582015-02-27 Pedro Alves <palves@redhat.com>
12459
12460 * libiberty.m4: New file.
12461 * acinclude.m4: Include libiberty.m4.
12462 * configure.ac: Call libiberty_INIT.
12463 * config.in, configure: Regenerate.
12464
60abeae4
AA
124652015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
12466
12467 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
12468 31-bit targets, but 64-bit targets as well.
12469 (s390_gnu_triplet_regexp): New function.
12470 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
12471 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
12472 method.
12473
f44466fb 124742015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
12475
12476 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
12477 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
12478 from CONTEXT_DEBUGGER.
12479
0def5aaa
DE
124802015-02-26 Doug Evans <dje@google.com>
12481
12482 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
12483 CHECK_TYPEDEF.
12484 (set_type_vptr_fieldno): Ditto.
12485 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
12486 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
12487
77b64a49
PA
124882015-02-26 Pedro Alves <palves@redhat.com>
12489
12490 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
12491 * complaints.c (vcomplaint): Pass argument FMT directly to
12492 printf-like functions instead of complaint->fmt.
12493 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
12494 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
12495 * compile/compile-loc2c.c (pushf, unary, binary): Add
12496 ATTRIBUTE_PRINTF.
12497 (do_compile_dwarf_expr_to_c): Pass string literal as format string
12498 to pushf.
12499 (BINARY): Pass string literal as format string to 'binary'.
12500 * compile/compile-object-load.c (link_callbacks_einfo): Add
12501 ATTRIBUTE_PRINTF.
12502 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
12503
532f44ed
PA
125042015-02-26 Pedro Alves <palves@redhat.com>
12505
12506 * windows-termcap.c: Rename to ...
12507 * stub-termcap.c: ... this. Adjust header line.
12508 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
12509 windows-termcap.c.
12510 * configure: Regenerate.
12511 * configure.ac: Refer to stub-termcap.o instead of
12512 windows-termcap.o.
12513 * gdb_curses.h: Mention stub-termcap.c instead of
12514 windows-termcap.c.
12515
081a1c2c
JK
125162015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12517
12518 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
12519 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
12520
2f41223f
AT
125212015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
12522
12523 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
12524
80c57053
JK
125252015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12526
12527 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
12528 bfd_canonicalize_symtab.
12529
cf424aef
JB
125302015-02-25 John Baldwin <jhb@FreeBSD.org>
12531
12532 * amd64fbsd-nat.c: Include sys/user.h.
12533 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12534 instead of KERN_PS_STRINGS to locate the signal trampoline.
12535 * i386fbsd-nat.c: Include sys/user.h.
12536 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12537 instead of KERN_PS_STRINGS to locate the signal trampoline.
12538 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
12539 (amd64fbsd_sigtramp_p): New.
12540 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
12541 longer set default values.
12542 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
12543 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
12544 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
12545 (i386fbsd_freebsd4_sigtramp_start)
12546 (i386fbsd_freebsd4_sigtramp_middle)
12547 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
12548 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
12549 (i386fbsd_sigtramp_p): New.
12550 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
12551 longer set default values.
12552 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
12553
c5cb74ee
JB
125542015-02-25 John Baldwin <jhb@freebsd.org>
12555
12556 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
12557 get_frame_register instead of frame_unwind_register_unsigned.
12558
17487d85
JK
125592015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12560
12561 PR build/18033
12562 * compile/compile-c-support.c (c_compute_program): Change // comment.
12563 * compile/compile-object-load.c (setup_sections): Change // comment.
12564
9357a9e6
JB
125652015-02-26 Joel Brobecker <brobecker@adacore.com>
12566
12567 PR build/18033:
12568 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
12569
1f10ba14
PA
125702015-02-23 Pedro Alves <palves@redhat.com>
12571
12572 * remote.c (skip_to_semicolon): New function.
12573 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
12574 special case the stop reasons that look like hex numbers
12575 upfront. Instead handle real register numbers after matching
12576 all the known stop reasons.
12577
96553a0c
DE
125782015-02-21 Doug Evans <dje@google.com>
12579
12580 PR c++/17976, symtab/17821
12581 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
12582 is_in_anonymous. All callers updated.
12583 (find_symbol_in_baseclass): Ditto.
12584 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
12585 for symbols in an anonymous namespace.
12586 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
12587 DW_AT_name directly.
12588 (dwarf2_name): Convert missing namespace name to
12589 CP_ANONYMOUS_NAMESPACE_STR.
12590
2db9a427
PA
125912015-02-20 Pedro Alves <palves@redhat.com>
12592
12593 * linux-nat.c (linux_handle_extended_wait): Call
12594 thread_db_notice_clone whenever a new clone LWP is detected.
12595 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
12596 functions.
12597 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
12598 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
12599 (linux_unstop_all_lwps): Declare.
12600 * linux-thread-db.c (struct thread_get_info_inout): Delete.
12601 (thread_get_info_callback): Delete.
12602 (thread_from_lwp): Use td_thr_get_info and record_thread.
12603 (thread_db_attach_lwp): Delete.
12604 (thread_db_notice_clone): New function.
12605 (try_thread_db_load_1): If /proc is mounted and shows the
12606 process'es task list, walk over all LWPs and call thread_from_lwp
12607 instead of relying on td_ta_thr_iter.
12608 (attach_thread): Don't call check_thread_signals here. Split the
12609 tail part of the function (which adds the thread to the core GDB
12610 thread list) to ...
12611 (record_thread): ... this function. Call check_thread_signals
12612 here.
12613 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
12614 call thread_from_lwp.
12615 (thread_db_update_thread_list): Rename to ...
12616 (thread_db_update_thread_list_org): ... this.
12617 (thread_db_update_thread_list): New function.
12618 (thread_db_find_thread_from_tid): Delete.
12619 (thread_db_get_ada_task_ptid): Simplify.
12620 * nat/linux-procfs.c: Include <sys/stat.h>.
12621 (linux_proc_task_list_dir_exists): New function.
12622 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
12623
3b27ef47
PA
126242015-02-20 Pedro Alves <palves@redhat.com>
12625
12626 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
12627 main LWP. Handle the case of waitpid returning 0 if we're already
12628 attached to the LWP. Don't set the LWP's last_resume_kind to
12629 resume_stop if we already knew about the LWP.
12630 (linux_nat_filter_event): Add debug logs.
12631
1cc28231
PA
126322015-02-20 Pedro Alves <palves@redhat.com>
12633
12634 * target.h (forward_target_decr_pc_after_break): Delete
12635 declaration.
12636
5c5019c2
PA
126372015-02-20 Pedro Alves <palves@redhat.com>
12638
12639 PR threads/18006
12640 * linux-thread-db.c (thread_get_info_callback): Return early if
12641 the thread's lwp id is -1.
12642
f3978e91
JB
126432015-02-20 Joel Brobecker <brobecker@adacore.com>
12644
12645 GDB 7.9 released.
12646
ffdf88ec
SE
126472015-02-19 Steve Ellcey <sellcey@imgtec.com>
12648
12649 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
12650 (dtrace_get_probes) Change type of variable 'dof'.
12651
c9587f88
AT
126522015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12653
12654 PR breakpoints/16812
12655 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
12656 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
12657 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
12658
53cf2ee0
DT
126592015-02-19 David Taylor <dtaylor@emc.com>
12660
12661 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
12662
acfe0940
PP
126632015-02-18 Patrick Palka <patrick@parcs.ath.cx>
12664
12665 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
12666 function.
12667 (tui_putc): Don't call tui_handle_resize_during_io.
12668 (tui_getc): Likewise.
12669 (tui_mld_getc): Likewise.
12670 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
12671 (tui_sigwinch_token): New static variable.
12672 (tui_initialize_win): Adjust documentation. Set
12673 tui_sigwinch_token.
12674 (tui_async_resize_screen): New asynchronous callback.
12675 (tui_sigwinch_handler): Adjust documentation. Asynchronously
12676 invoke tui_async_resize_screen.
12677
f6a88844
JM
126782015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
12679
12680 * configure: Regenerated.
12681 * configure.ac: Use GDB_AC_TRANSFORM.
12682 * Makefile.in (aclocal_m4_deps): Added transform.m4.
12683 * acinclude.m4: sinclude transform.m4.
12684 * transform.m4: New file.
12685 (GDB_AC_TRANSFORM): New macro.
12686
b05e3b0d
JM
126872015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12688
12689 * NEWS: Announce the support for DTrace SDT probes.
12690
c3e3045e
JM
126912015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12692
12693 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
12694 (amd64_dtrace_parse_probe_argument): New function.
12695 (amd64_dtrace_probe_is_enabled): Likewise.
12696 (amd64_dtrace_enable_probe): Likewise.
12697 (amd64_dtrace_disable_probe): Likewise.
12698 (amd64_linux_init_abi): Register the
12699 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
12700 `gdbarch_dtrace_disable_probe' and
12701 `gdbarch_dtrace_probe_is_enabled' hooks.
12702 (amd64_dtrace_disabled_probe_sequence_1): New constant.
12703 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
12704 (amd64_dtrace_enable_probe_sequence): Likewise.
12705 (amd64_dtrace_disable_probe_sequence): Likewise.
12706
d4777acb
JM
127072015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12708
12709 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
12710 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
12711 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
12712 handle ELF files.
12713 * Makefile.in (SFILES): dtrace-probe.c added.
12714 * configure: Regenerate.
12715 * dtrace-probe.c: New file.
12716 (SHT_SUNW_dof): New constant.
12717 (dtrace_probe_type): New enum.
12718 (dtrace_probe_arg): New struct.
12719 (dtrace_probe_arg_s): New typedef.
12720 (struct dtrace_probe_enabler): New struct.
12721 (dtrace_probe_enabler_s): New typedef.
12722 (dtrace_probe): New struct.
12723 (dtrace_probe_is_linespec): New function.
12724 (dtrace_dof_sect_type): New enum.
12725 (dtrace_dof_dofh_ident): Likewise.
12726 (dtrace_dof_encoding): Likewise.
12727 (DTRACE_DOF_ENCODE_LSB): Likewise.
12728 (DTRACE_DOF_ENCODE_MSB): Likewise.
12729 (dtrace_dof_hdr): New struct.
12730 (dtrace_dof_sect): Likewise.
12731 (dtrace_dof_provider): Likewise.
12732 (dtrace_dof_probe): Likewise.
12733 (DOF_UINT): New macro.
12734 (DTRACE_DOF_PTR): Likewise.
12735 (DTRACE_DOF_SECT): Likewise.
12736 (dtrace_process_dof_probe): New function.
12737 (dtrace_process_dof): Likewise.
12738 (dtrace_build_arg_exprs): Likewise.
12739 (dtrace_get_arg): Likewise.
12740 (dtrace_get_probes): Likewise.
12741 (dtrace_get_probe_argument_count): Likewise.
12742 (dtrace_can_evaluate_probe_arguments): Likewise.
12743 (dtrace_evaluate_probe_argument): Likewise.
12744 (dtrace_compile_to_ax): Likewise.
12745 (dtrace_probe_destroy): Likewise.
12746 (dtrace_gen_info_probes_table_header): Likewise.
12747 (dtrace_gen_info_probes_table_values): Likewise.
12748 (dtrace_probe_is_enabled): Likewise.
12749 (dtrace_probe_ops): New variable.
12750 (info_probes_dtrace_command): New function.
12751 (_initialize_dtrace_probe): Likewise.
12752 (dtrace_type_name): Likewise.
12753
8b367e17
JM
127542015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12755
12756 * gdbarch.sh (dtrace_parse_probe_argument): New.
12757 (dtrace_probe_is_enabled): Likewise.
12758 (dtrace_enable_probe): Likewise.
12759 (dtrace_disable_probe): Likewise.
12760 * gdbarch.c: Regenerate.
12761 * gdbarch.h: Regenerate.
12762
9aca2ff8
JM
127632015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12764
12765 * stap-probe.c (stap_probe_ops): Add NULLs in the static
12766 stap_probe_ops for `enable_probe' and `disable_probe'.
12767 * probe.c (enable_probes_command): New function.
12768 (disable_probes_command): Likewise.
12769 (_initialize_probe): Define the cli commands `enable probe' and
12770 `disable probe'.
12771 (parse_probe_linespec): New function.
12772 (info_probes_for_ops): Use parse_probe_linespec.
12773 * probe.h (probe_ops): New hooks `enable_probe' and
12774 `disable_probe'.
12775
03e98035
JM
127762015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12777
12778 * probe.c (compute_probe_arg): Moved from stap-probe.c
12779 (compile_probe_arg): Likewise.
12780 (probe_funcs): Likewise.
12781 * stap-probe.c (compute_probe_arg): Moved to probe.c.
12782 (compile_probe_arg): Likewise.
12783 (probe_funcs): Likewise.
12784
6f9b8491
JM
127852015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12786
12787 * probe.c (print_ui_out_not_applicables): New function.
12788 (exists_probe_with_pops): Likewise.
12789 (info_probes_for_ops): Do not include column headers for probe
12790 types for which no probe has been actually found on any object.
12791 Also invoke `print_ui_out_not_applicables' in order to match the
12792 column rows with the header when probes of several types are
12793 listed.
12794 Print the "Type" column.
12795 * probe.h (probe_ops): Added a new probe operation `type_name'.
12796 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
12797 (stap_type_name): New function.
12798
69efdff1
PP
127992015-02-17 Patrick Palka <patrick@parcs.ath.cx>
12800
12801 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
12802 (key_is_command_char): Delete.
12803
f8e5e23e
PA
128042015-02-17 Pedro Alves <palves@redhat.com>
12805
12806 * tui/tui.c (tui_enable): Resize windows before anything
12807 might show a window.
12808
9f2e0721
MO
128092015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
12810
12811 PR gdb/17984
12812 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
12813 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
12814 call.
12815 * aarch64-tdep.h (tdesc_aarch64): Declare.
12816
171e6b1c
MW
128172015-02-12 Mark Wielaard <mjw@redhat.com>
12818
12819 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
12820
d5ff0482
DE
128212015-02-13 Doug Evans <dje@google.com>
12822
12823 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
12824 anonymous_namespace to is_in_anonymous for consistency with the rest
12825 of the file.
12826 (cp_lookup_bare_symbol): Fix typo in comment.
12827 (cp_search_static_and_baseclasses): Ditto.
12828 (search_symbol_list): Use vertical space in comment better.
12829 (reset_directive_searched): Ditto. Fix typo.
12830 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
12831
9f04ac5f
YQ
128322015-02-13 Yao Qi <yao.qi@arm.com>
12833
12834 * MAINTAINERS: Update my email address.
12835
013d0319
DE
128362015-02-12 Doug Evans <dje@google.com>
12837
b615dd20 12838 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 12839
9a7e538e
DE
128402015-02-12 Doug Evans <dje@google.com>
12841
12842 * completer.c (complete_line): Remove incorrect comment.
12843
e1fcd575
JK
128442015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12845
12846 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
12847 (py_print_frame): Use RETURN_MASK_ERROR.
12848
b99bf4e3
JK
128492015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12850
12851 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
12852 function comment. Wrap all function that can throw in cleanups.
12853 (gdbpy_apply_frame_filter): Wrap all function that can throw in
12854 cleanups.
12855
800eb1ce
JK
128562015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12857
12858 * python/py-framefilter.c (py_print_frame): Substitute goto error.
12859 Remove the error label.
12860
34019068
JK
128612015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12862
12863 * python/py-framefilter.c (py_print_frame): Put conditional code paths
12864 with goto first, indent the former else codepath left. Put variable
12865 'elided' to a new inner block.
12866
8d4a54e2
JK
128672015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12868
12869 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
12870
18ad82c1
PA
128712015-02-11 Pedro Alves <palves@redhat.com>
12872
12873 * xcoffread.c (within_function): Delete.
12874
e36122e9
TT
128752015-02-11 Tom Tromey <tromey@redhat.com>
12876 Pedro Alves <palves@redhat.com>
12877
12878 * breakpoint.c (base_breakpoint_ops): Delete.
12879 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
12880 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
12881 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
12882 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
12883 * python/py-arch.c (arch_object_type): Make extern.
12884 * python/py-block.c (block_syms_iterator_object_type): Make extern.
12885 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
12886 * python/py-cmd.c (cmdpy_object_type): Make extern.
12887 * python/py-continueevent.c (continue_event_object_type)
12888 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
12889 parameter. Update all callers.
12890 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
12891 * python/py-exitedevent.c (exited_event_object_type): Make extern.
12892 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
12893 * python/py-function.c (fnpy_object_type): Make extern.
12894 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
12895 * python/py-infevents.c (call_pre_event_object_type)
12896 (inferior_call_post_event_object_type).
12897 (memory_changed_event_object_type): Make extern.
12898 * python/py-infthread.c (thread_object_type): Make extern.
12899 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
12900 * python/py-linetable.c (linetable_entry_object_type)
12901 (linetable_object_type, ltpy_iterator_object_type): Make extern.
12902 * python/py-newobjfileevent.c (new_objfile_event_object_type)
12903 (clear_objfiles_event_object_type): Make extern.
12904 * python/py-objfile.c (objfile_object_type): Make extern.
12905 * python/py-param.c (parmpy_object_type): Make extern.
12906 * python/py-progspace.c (pspace_object_type): Make extern.
12907 * python/py-signalevent.c (signal_event_object_type): Make extern.
12908 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
12909 * python/py-type.c (type_object_type, field_object_type)
12910 (type_iterator_object_type): Make extern.
12911 * python/python.c (python_extension_script_ops)
12912 (python_extension_ops): Make extern.
12913 * stap-probe.c (stap_probe_ops): Make extern.
12914
0703599a
PA
129152015-02-11 Pedro Alves <pedro@codesourcery.com>
12916
12917 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
12918 because the event thread is not the current thread.
12919
eaaf76ab
DE
129202015-02-11 Doug Evans <xdje42@gmail.com>
12921
12922 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
12923 been initialized yet, return NULL.
12924
e7d52ed3
DE
129252015-02-11 Doug Evans <dje@google.com>
12926
12927 * symfile.h (new_symfile_objfile): Delete.
12928 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
12929 All callers updated.
12930
fc6b1256
PP
129312015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12932
12933 * tui/tui-io.c (tui_handle_resize_during_io): Call
12934 tui_update_gdb_sizes() after resizing the screen.
12935 * tui/tui.c (tui_enable): Resize the terminal before
12936 calling tui_update_gdb_sizes().
12937
d9080678
PP
129382015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12939
12940 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
12941 line before printing a newline.
12942
9f615e3a
MW
129432015-02-11 Mark Wielaard <mjw@redhat.com>
12944
12945 * utils.c (producer_is_gcc): Return true or false.
12946
d9080678 129472015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
12948
12949 * utils.h (producer_is_gcc): Change return type to bool. Add major
12950 argument.
12951 * utils.c (producer_is_gcc): Likewise.
12952 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
12953 * dwarf2read.c (check_producer): Likewise.
12954
b052c4fb
PA
129552015-02-10 Pedro Alves <palves@redhat.com>
12956
12957 * infrun.c (displaced_step_fixup): Switch to the event thread
12958 before calling gdbarch_displaced_step_fixup.
12959
3ac240d4
AT
129602015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12961
12962 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
12963
c1cc6152
SM
129642015-02-10 Simon Marchi <simon.marchi@ericsson.com>
12965
12966 * ada-varobj.c (ada_name_of_child): Constify parent.
12967 (ada_path_expr_of_child): Same.
12968 (ada_value_of_child): Same.
12969 (ada_type_of_child): Same.
12970 * c-varobj.c (c_is_path_expr_parent): Same.
12971 (c_describe_child): Same.
12972 (c_name_of_child): Same.
12973 (c_value_of_child): Same.
12974 (c_type_of_child): Same.
12975 (cplus_number_of_children): Same.
12976 (cplus_describe_child): Constify var.
12977 (cplus_name_of_child): Constify parent.
12978 (cplus_value_of_child): Same.
12979 (cplus_type_of_child): Same.
12980 * jv-varobj.c (java_name_of_child): Same.
12981 (java_value_of_child): Same.
12982 (java_type_of_child): Same.
12983 * varobj.c (value_of_child): Same.
12984 (varobj_default_is_path_expr_parent): Constify var, parent and return
12985 value.
12986 (varobj_get_path_expr): Constify var, modify path_expr through
12987 mutable_var.
12988 (install_new_value): Constify parent.
12989 (value_of_child): Constify parent.
12990 * varobj.h (struct varobj): Constify parent.
12991 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
12992 type_of_child.
12993 (varobj_get_path_expr): Constify var.
12994 (varobj_get_path_expr_parent): Constify var and return value.
12995
c1ee9414
LM
129962015-02-10 Luis Machado <lgustavo@codesourcery.com>
12997
12998 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
12999 (arm_prologue_this_id): Move PC and SP limit checks to
13000 arm_prologue_unwind_stop_reason.
13001 (arm_prologue_unwind) <stop_reason> : Set to
13002 arm_prologue_unwind_stop_reason.
13003
f7de9aab
MW
130042015-02-09 Mark Wielaard <mjw@redhat.com>
13005
13006 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
13007 DW_LANG_Fortran08 as language_fortran.
13008
0b24eb2d
SDJ
130092015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
13010
13011 PR remote/17946
13012 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
13013 of pointer against char.
13014
a2c2acaf
MW
130152015-02-09 Mark Wielaard <mjw@redhat.com>
13016
13017 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
13018 (c_type_print_modifier): Likewise.
13019 * dwarf2read.c (read_tag_atomic_type): New function.
13020 (read_type_die_1): Handle DW_TAG_atomic_type.
13021 * gdbtypes.c (make_atomic_type): New function.
13022 (recursive_dump_type): Handle TYPE_ATOMIC.
13023 * gdbtypes.h (enum type_flag_values): Renumber.
13024 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
13025 (TYPE_ATOMIC): New macro.
13026 (make_atomic_type): Declare.
13027
31fd9caa
MM
130282015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13029
13030 * btrace.c (ftrace_find_call): Skip gaps.
13031 (ftrace_new_function): Initialize level.
13032 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
13033 (ftrace_new_switch): Update
13034 level computation.
13035 (ftrace_new_gap): New.
13036 (ftrace_update_function): Create new function after gap.
13037 (btrace_compute_ftrace_bts): Create gap on error.
13038 (btrace_stitch_bts): Update parameters. Clear trace if it
13039 becomes empty.
13040 (btrace_stitch_trace): Update parameters. Update callers.
13041 (btrace_clear): Reset the number of gaps.
13042 (btrace_insn_get): Return NULL if the iterator points to a gap.
13043 (btrace_insn_number): Return zero if the iterator points to a gap.
13044 (btrace_insn_end): Allow gaps at the end.
13045 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
13046 (btrace_find_insn_by_number): Assert that the found iterator does
13047 not point to a gap.
13048 (btrace_call_next, btrace_call_prev): Assert that the last function
13049 is not a gap.
13050 * btrace.h (btrace_bts_error): New.
13051 (btrace_function): Update comment.
13052 (btrace_function) <insn, insn_offset, number>: Update comment.
13053 (btrace_function) <errcode>: New.
13054 (btrace_thread_info) <ngaps>: New.
13055 (btrace_thread_info) <replay>: Update comment.
13056 (btrace_insn_get): Update comment.
13057 * record-btrace.c (btrace_ui_out_decode_error): New.
13058 (record_btrace_info): Print number of gaps.
13059 (btrace_insn_history, btrace_call_history): Call
13060 btrace_ui_out_decode_error for gaps.
13061 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
13062
afb778a2
MM
130632015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13064
13065 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
13066 * nat/linux-btrace.c: (btrace_this_cpu): New.
13067 (cpu_supports_bts): Call btrace_this_cpu.
13068 (intel_supports_bts): Add cpu parameter.
13069
7d5c24b3
MM
130702015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13071
13072 * btrace.h (btrace_insn_class): New.
13073 (btrace_insn) <size, iclass>: New.
13074 * btrace.c (ftrace_find_call): Update parameters. Update users.
13075 Use instruction classification.
13076 (ftrace_new_return): Update parameters. Update users.
13077 (ftrace_update_function): Update parameters. Update users. Use
13078 instruction classification.
13079 (ftrace_update_insns): Update parameters. Update users.
13080 (ftrace_classify_insn): New.
13081 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
13082 TRY_CATCH around call to gdb_insn_length.
13083
76235df1
MM
130842015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13085
13086 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
13087 Update parameters. Update users.
13088
d33501a5
MM
130892015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13090
13091 * btrace.c (parse_xml_btrace_conf_bts): Add size.
13092 (btrace_conf_bts_attributes): New.
13093 (btrace_conf_children): Add attributes.
13094 * common/btrace-common.h (btrace_config_bts): New.
13095 (btrace_config)<bts>: New.
13096 (btrace_config): Update comment.
13097 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
13098 Use config.
13099 * features/btrace-conf.dtd: Increment version. Add size
13100 attribute to bts element.
13101 * record-btrace.c (set_record_btrace_bts_cmdlist,
13102 show_record_btrace_bts_cmdlist): New.
13103 (record_btrace_adjust_size, record_btrace_print_bts_conf,
13104 record_btrace_print_conf, cmd_set_record_btrace_bts,
13105 cmd_show_record_btrace_bts): New.
13106 (record_btrace_info): Call record_btrace_print_conf.
13107 (_initialize_record_btrace): Add commands.
13108 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
13109 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
13110 (btrace_sync_conf): Synchronize bts size.
13111 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
13112 * NEWS: Announce new commands and new packets.
13113
f4abbc16
MM
131142015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13115
13116 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
13117 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
13118 (x86_linux_btrace_conf): New.
13119 (x86_linux_create_target): Initialize to_btrace_conf.
13120 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
13121 Check format. Split into this and ...
13122 (linux_enable_bts): ... this.
13123 (linux_btrace_conf): New.
13124 (perf_event_skip_record): Renamed into ...
13125 (perf_event_skip_bts_record): ... this. Updated users.
13126 (linux_disable_btrace): Split into this and ...
13127 (linux_disable_bts): ... this.
13128 (linux_read_btrace): Check format.
13129 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
13130 (linux_btrace_conf): New.
13131 (btrace_target_info)<ptid>: Moved.
13132 (btrace_target_info)<conf>: New.
13133 (btrace_target_info): Split into this and ...
13134 (btrace_tinfo_bts): ... this. Updated users.
13135 * btrace.c (btrace_enable): Update parameters.
13136 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
13137 (btrace_conf_children, btrace_conf_attributes)
13138 (btrace_conf_elements): New.
13139 * btrace.h (btrace_enable): Update parameters.
13140 (btrace_conf, parse_xml_btrace_conf): New.
13141 * common/btrace-common.h (btrace_config): New.
13142 * feature/btrace-conf.dtd: New.
13143 * record-btrace.c (record_btrace_conf): New.
13144 (record_btrace_cmdlist): New.
13145 (record_btrace_enable_warn, record_btrace_open): Pass
13146 &record_btrace_conf.
13147 (record_btrace_info): Print recording format.
13148 (cmd_record_btrace_bts_start): New.
13149 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
13150 (_initialize_record_btrace): Add "record btrace bts" subcommand.
13151 Add "record bts" alias command.
13152 * remote.c (remote_state)<btrace_config>: New.
13153 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
13154 (remote_protocol_features): Add qXfer:btrace-conf:read.
13155 (remote_open_1): Call remote_btrace_reset.
13156 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
13157 (btrace_target_info)<conf>: New.
13158 (btrace_sync_conf, btrace_read_config): New.
13159 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
13160 btrace_read_conf.
13161 (remote_btrace_conf): New.
13162 (init_remote_ops): Initialize to_btrace_conf.
13163 (_initialize_remote): Add qXfer:btrace-conf packet.
13164 * target.c (target_enable_btrace): Update parameters.
13165 (target_btrace_conf): New.
13166 * target.h (target_enable_btrace): Update parameters.
13167 (target_btrace_conf): New.
13168 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
13169 (target_ops)<to_enable_btrace>: Update parameters and comment.
13170 (target_ops)<to_btrace_conf>: New.
13171 * target-delegates: Regenerate.
13172 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
13173 (target_debug_print_const_struct_btrace_target_info_p): New.
13174 * NEWS: Announce new command and new packet.
13175
aadf7753
MM
131762015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13177
13178 * nat/linux-btrace.h (perf_event_buffer): New.
13179 (btrace_target_info) <buffer, size, data_head>: Replace with ...
13180 <bts>: ... this.
13181 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
13182 (perf_event_buffer_size, perf_event_buffer_begin)
13183 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
13184 Updated users.
13185 (perf_event_new_data): New.
13186
043c3577
MM
131872015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13188
13189 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
13190 * record-btrace.c (record_btrace_open): Remove call to
13191 target_supports_btrace.
13192 * remote.c (remote_supports_btrace): Update parameters.
13193 * target.c (target_supports_btrace): Update parameters.
13194 * target.h (to_supports_btrace, target_supports_btrace): Update
13195 parameters.
13196 * target-delegates.c: Regenerate.
13197 * target-debug.h (target_debug_print_enum_btrace_format): New.
13198 * nat/linux-btrace.c
13199 (kernel_supports_btrace): Rename into ...
13200 (kernel_supports_bts): ... this. Update users. Update warning text.
13201 (intel_supports_btrace): Rename into ...
13202 (intel_supports_bts): ... this. Update users.
13203 (cpu_supports_btrace): Rename into ...
13204 (cpu_supports_bts): ... this. Update users.
13205 (linux_supports_btrace): Update parameters. Split into this and ...
13206 (linux_supports_bts): ... this.
13207 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
13208
734b0e4b
MM
132092015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13210
13211 * Makefile.in (SFILES): Add common/btrace-common.c.
13212 (COMMON_OBS): Add common/btrace-common.o.
13213 (btrace-common.o): Add build rules.
13214 * btrace.c (parse_xml_btrace): Update parameters.
13215 (parse_xml_btrace_block): Set format field.
13216 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
13217 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
13218 (btrace_compute_ftrace): Split into this and...
13219 (btrace_compute_ftrace_bts): ...this.
13220 (btrace_stitch_trace): Split into this and...
13221 (btrace_stitch_bts): ...this.
13222 * btrace.h (parse_xml_btrace): Update parameters.
13223 (make_cleanup_btrace_data): New.
13224 * common/btrace-common.c: New.
13225 * common/btrace-common.h: Include common-defs.h.
13226 (btrace_block_s): Update comment.
13227 (btrace_format): New.
13228 (btrace_format_string): New.
13229 (btrace_data_bts): New.
13230 (btrace_data): New.
13231 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
13232 * remote.c (remote_read_btrace): Update parameters.
13233 * target.c (target_read_btrace): Update parameters.
13234 * target.h (target_read_btrace): Update parameters.
13235 (target_ops)<to_read_btrace>: Update parameters.
13236 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
13237 * target-delegates.c: Regenerate.
13238 * target-debug (target_debug_print_struct_btrace_data_p): New.
13239 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
13240 (linux_read_bts): ...this.
13241 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
13242
bd2e0e9e
DE
132432015-02-06 Doug Evans <dje@google.com>
13244
13245 * remote-m32r-sdi.c: Include symfile.h.
13246
f176c4b5
DE
132472015-02-06 Doug Evans <dje@google.com>
13248
13249 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
13250 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
13251 to here.
13252
d6c146e9
PA
132532015-02-06 Pedro Alves <palves@redhat.com>
13254
13255 * linux-thread-db.c (find_new_threads_callback): Add debug output.
13256
b9d61307
SM
132572015-02-06 Simon Marchi <simon.marchi@ericsson.com>
13258
13259 PR gdb/15678
13260 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
13261 (enable_count_command): Check args for NULL value.
13262
e9fbd043
DE
132632015-02-05 Doug Evans <xdje42@gmail.com>
13264
13265 * guile/scm-frame.c: Fix spelling errors in a comment.
13266
881d5d5d
JK
132672015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
13268
13269 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
13270 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
13271 return type.
13272
20ba1ce6
PA
132732015-02-04 Pedro Alves <palves@redhat.com>
13274
13275 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
13276 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
13277 returns true.
13278 (resume_stopped_resumed_lwps): Don't check whether the thread is
13279 marked as executing.
13280 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
13281
f962539a
AA
132822015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13283
13284 * regset.h (struct regset): Add flags field.
13285 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
13286 * corelow.c (get_core_register_section): Add warning if the size
13287 exceeds the requested size and the regset does not have the
13288 REGSET_VARIABLE_SIZE flag set.
13289 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
13290 flag.
13291 * armbsd-tdep.c (armbsd_gregset): Likewise.
13292 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
13293 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
13294 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
13295 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
13296
dde9acd6
AA
132972015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13298
13299 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
13300 For ".reg-xstate", explicitly specify the requested section size
13301 via X86_XSTATE_SIZE instead of just 0 on input and
13302 X86_XSTATE_MAX_SIZE on output.
13303 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
13304 Likewise.
13305
1528345d
AA
133062015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13307
13308 PR corefiles/17808:
13309 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
13310 function type, particularly its SIZE parameter.
13311 * gdbarch.h: Regenerate.
13312 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
13313 actual against required size using ">=" instead of "==".
13314 (amd64_collect_fpregset): Likewise.
13315 * i386-tdep.c (i386_supply_gregset): Likewise.
13316 (i386_collect_gregset): Likewise.
13317 (i386_supply_fpregset): Likewise.
13318 (i386_collect_fpregset): Likewise.
13319 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
13320 (mips_fill_gregset_wrapper): Likewise.
13321 (mips_supply_fpregset_wrapper): Likewise.
13322 (mips_fill_fpregset_wrapper): Likewise.
13323 (mips64_supply_gregset_wrapper): Likewise.
13324 (mips64_fill_gregset_wrapper): Likewise.
13325 (mips64_supply_fpregset_wrapper): Likewise.
13326 (mips64_fill_fpregset_wrapper): Likewise.
13327 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
13328 (am33_supply_fpregset_method): Likewise.
13329 (am33_collect_gregset_method): Likewise.
13330 (am33_collect_fpregset_method): Likewise.
13331
518be979
DE
133322015-02-04 Doug Evans <dje@google.com>
13333 Pedro Alves <palves@redhat.com>
13334 Eli Zaretskii <eliz@gnu.org>
13335
13336 PR tui/17810
13337 * tui/tui-command.c (tui_refresh_cmd_win): New function.
13338 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
13339 * tui/tui-file.c: #include tui/tui-command.h.
13340 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
13341 (tui_file_flush): Refresh command window if stream is gdb_stdout.
13342 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
13343
80bd5fab
PA
133442015-02-04 Pedro Alves <palves@redhat.com>
13345
13346 Fix build breakage.
13347 * event-loop.c (gdb_do_one_event): Add default switch case.
13348
a7606d80
JK
133492015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
13350
13351 Filter out inferior gcc option -fpreprocessed.
13352 * compile/compile.c (filter_args): New function.
13353 (get_args): Use it.
13354
70b66289
PA
133552015-02-03 Pedro Alves <palves@redhat.com>
13356
13357 * event-loop.c: Don't declare nor define a queue type for
13358 gdb_event_p.
13359 (event_queue): Delete.
13360 (create_event, create_file_event, gdb_event_xfree)
13361 (initialize_event_loop, process_event): Delete.
13362 (gdb_do_one_event): Return as soon as one event is handled.
13363 (handle_file_event): Change prototype. Used the passed in
13364 file_handler pointer and ready_mask instead of looping over all
13365 file handlers.
13366 (gdb_wait_for_event): Update the poll/select timeouts before
13367 blocking. Run event handlers directly instead of queueing events.
13368 Return as soon as one event is handled.
13369 (struct async_event_handler_data): Delete.
13370 (invoke_async_event_handler): Delete.
13371 (check_async_event_handlers): Change return type to int. Run
13372 event handlers directly instead of queueing events. Return as
13373 soon as one event is handled.
13374 (handle_timer_event): Delete.
13375 (update_wait_timeout): New function, factored out from
13376 poll_timers.
13377 (poll_timers): Reimplement.
13378 * event-loop.h (initialize_event_loop): Delete declaration.
13379 * top.c (gdb_init): Don't call initialize_event_loop.
13380
b7d2e916
PA
133812015-02-03 Pedro Alves <palves@redhat.com>
13382
13383 * event-loop.c (clear_async_event_handler): New function.
13384 * event-loop.h (clear_async_event_handler): New declaration.
13385 * record-btrace.c (record_btrace_async): New function.
13386 (init_record_btrace_ops): Install record_btrace_async.
13387 * record-full.c (record_full_async): New function.
13388 (record_full_resume): Don't mark the async event source here.
13389 (init_record_full_ops): Install record_full_async.
13390 (record_full_core_resume): Don't mark the async event source here.
13391 (init_record_full_core_ops): Install record_full_async.
13392 * remote.c (remote_async): Mark and clear the async stop reply
13393 queue event-loop token as appropriate.
13394
d9d41e78
PA
133952015-02-03 Pedro Alves <palves@redhat.com>
13396
13397 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
13398 target_is_async_p instead of target_can_async.
13399 (linux_nat_wait): Use target_is_async_p instead of
13400 target_can_async. Don't enable async here.
13401 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
13402 target_is_async_p instead of target_can_async.
13403
aa3de267
SM
134042015-02-02 Simon Marchi <simon.marchi@ericsson.com>
13405
13406 * varobj.h (lang_varobj_ops): Mention which return values need
13407 to be freed.
13408
2c811c0f
JB
134092015-02-02 Joel Brobecker <brobecker@adacore.com>
13410
13411 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
13412
b1eedac9
JB
134132015-02-02 Joel Brobecker <brobecker@adacore.com>
13414
13415 PR gdb/17856:
13416 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
13417 results found in the cache.
13418
66c168ae
JB
134192015-02-02 Joel Brobecker <brobecker@adacore.com>
13420
13421 PR gdb/17854:
13422 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
13423 when allocating a new one.
13424
4bdc02b2
TT
134252015-02-01 Tom Tromey <tom@tromey.com>
13426
13427 * MAINTAINERS: Remove myself.
13428
ae6ae975
DE
134292015-01-31 Doug Evans <xdje42@gmail.com>
13430
13431 * dwarf2read.c (process_structure_scope): Update setting of
13432 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
13433 * gdbtypes.c (internal_type_vptr_fieldno): New function.
13434 (set_type_vptr_fieldno): New function.
13435 (internal_type_vptr_basetype): New function.
13436 (set_type_vptr_basetype): New function.
13437 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
13438 TYPE_VPTR_BASETYPE.
13439 (allocate_cplus_struct_type): Initialize vptr_fieldno.
13440 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
13441 (print_cplus_stuff): ... moved here.
13442 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
13443 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
13444 moved to ...
13445 (struct cplus_struct_type): ... here. All uses updated.
13446 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
13447 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
13448 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
13449 * stabsread.c (read_tilde_fields): Update setting of
13450 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
13451
09e2d7c7
DE
134522015-01-31 Doug Evans <xdje42@gmail.com>
13453
13454 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
13455 to self_p.
13456 (cp_print_class_member): Rename local domain to self_type.
13457 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
13458 domain_type to self_type.
13459 (set_die_type) <need_gnat_info>: Handle
13460 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
13461 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
13462 TYPE_SPECIFIC_SELF_TYPE.
13463 * gdbtypes.c (internal_type_self_type): New function.
13464 (set_type_self_type): New function.
13465 (smash_to_memberptr_type): Rename parameter domain to self_type.
13466 Update setting of TYPE_SELF_TYPE.
13467 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
13468 (smash_to_method_type): Rename parameter domain to self_type.
13469 Update setting of TYPE_SELF_TYPE.
13470 (check_stub_method): Call smash_to_method_type.
13471 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
13472 (copy_type_recursive): Ditto.
13473 * gdbtypes.h (enum type_specific_kind): New value
13474 TYPE_SPECIFIC_SELF_TYPE.
13475 (struct main_type) <type_specific>: New member self_type.
13476 (struct cplus_struct_type) <fn_field.type>: Update comment.
13477 (TYPE_SELF_TYPE): Rewrite.
13478 (internal_type_self_type, set_type_self_type): Declare.
13479 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
13480 self_type.
13481 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
13482 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
13483 TYPE_TARGET_TYPE.
13484 * stabsread.c (read_member_functions): Mark methods with
13485 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
13486 TYPE_SELF_TYPE.
13487
4bfb94b8
DE
134882015-01-31 Doug Evans <xdje42@gmail.com>
13489
13490 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
13491 All uses updated.
13492
5f4ce105
DE
134932015-01-31 Doug Evans <xdje42@gmail.com>
13494
13495 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
13496 or unions. Return zero if union.
13497 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
13498 (gnuv3_rtti_type): Pass already-check_typedef'd value to
13499 gnuv3_get_vtable.
13500 (compute_vtable_size): Assert only passed structs.
13501 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
13502
f6b3afbf
DE
135032015-01-31 Doug Evans <xdje42@gmail.com>
13504
13505 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
13506 kinds.
13507
cfb069a8
GB
135082015-01-31 Gary Benson <gbenson@redhat.com>
13509 Doug Evans <dje@google.com>
13510
13511 PR cli/9007
13512 PR cli/11920
13513 PR cli/15548
13514 * cli/cli-cmds.c (complete_command): Notify user if max-completions
13515 reached.
13516 * common/common-exceptions.h (enum errors)
13517 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
13518 * completer.h (get_max_completions_reached_message): New declaration.
13519 (max_completions): Likewise.
13520 (completion_tracker_t): New typedef.
13521 (new_completion_tracker): New declaration.
13522 (make_cleanup_free_completion_tracker): Likewise.
13523 (maybe_add_completion_enum): New enum.
13524 (maybe_add_completion): New declaration.
13525 (throw_max_completions_reached_error): Likewise.
13526 * completer.c (max_completions): New global variable.
13527 (new_completion_tracker): New function.
13528 (free_completion_tracker): Likewise.
13529 (make_cleanup_free_completion_tracker): Likewise.
13530 (maybe_add_completions): Likewise.
13531 (throw_max_completions_reached_error): Likewise.
13532 (complete_line): Remove duplicates and limit result to max_completions
13533 entries.
13534 (get_max_completions_reached_message): New function.
13535 (gdb_display_match_list): Handle max_completions.
13536 (_initialize_completer): New declaration and function.
13537 * symtab.c: Include completer.h.
13538 (completion_tracker): New static variable.
13539 (completion_list_add_name): Call maybe_add_completion.
13540 (default_make_symbol_completion_list_break_on_1): Renamed from
13541 default_make_symbol_completion_list_break_on. Maintain
13542 completion_tracker across calls to completion_list_add_name.
13543 (default_make_symbol_completion_list_break_on): New function.
13544 * top.c (init_main): Set rl_completion_display_matches_hook.
13545 * tui/tui-io.c: Include completer.h.
13546 (tui_old_rl_display_matches_hook): New static global.
13547 (tui_rl_display_match_list): Notify user if max-completions reached.
13548 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
13549 * NEWS (New Options): Mention set/show max-completions.
13550
e11c72c7
GB
135512015-01-31 Gary Benson <gbenson@redhat.com>
13552
13553 * symtab.c (struct add_name_data) <code>: New field.
13554 Updated comments.
13555 (add_symtab_completions): New function.
13556 (symtab_expansion_callback): Likewise.
13557 (default_make_symbol_completion_list_break_on): Set datum.code.
13558 Move minimal symbol scan before calling expand_symtabs_matching.
13559 Scan known primary symtabs for externs and statics before calling
13560 expand_symtabs_matching. Pass symtab_expansion_callback as
13561 expansion_notify argument to expand_symtabs_matching. Do not scan
13562 primary symtabs for externs and statics after calling
13563 expand_symtabs_matching.
13564
276d885b
GB
135652015-01-31 Gary Benson <gbenson@redhat.com>
13566
13567 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
13568 (struct quick_symbol_functions) <expand_symtabs_matching>:
13569 New argument expansion_notify. All uses updated.
13570 (expand_symtabs_matching): New argument expansion_notify.
13571 All uses updated.
13572 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13573 Also print expansion notify.
13574 * symtab.c (expand_symtabs_matching_via_partial): Call
13575 expansion_notify whenever a partial symbol table is expanded.
13576 * dwarf2read.c (dw2_expand_symtabs_matching): Call
13577 expansion_notify whenever a symbol table is instantiated.
13578
82083d6d
DE
135792015-01-31 Doug Evans <xdje42@gmail.com>
13580
13581 * cli-out.c: #include completer.h, readline/readline.h.
13582 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
13583 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
13584 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
13585 * cli-out.h (cli_display_match_list): Declare.
13586 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
13587 (ELLIPSIS_LEN): Ditto.
13588 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
13589 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
13590 (gdb_fnprint, gdb_print_filename): Ditto.
13591 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
13592 (gdb_display_match_list): Ditto.
13593 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
13594 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
13595 (mld_beep_ftype, mld_read_key_ftype): Ditto.
13596 (match_list_displayer): New struct.
13597 (gdb_display_match_list): Declare.
13598 * top.c (init_main): Set rl_completion_display_matches_hook.
13599 * tui/tui-io.c: #include completer.h.
13600 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
13601 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
13602 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
13603 (tui_mld_getc, tui_mld_read_key): Ditto.
13604 (tui_rl_display_match_list): Rewrite.
13605 (tui_handle_resize_during_io): New arg for_completion. All callers
13606 updated.
13607
f57d2163
DE
136082015-01-31 Doug Evans <xdje42@gmail.com>
13609
13610 Add symbol lookup cache.
13611 * NEWS: Document new options and commands.
13612 * symtab.c (symbol_cache_key): New static global.
13613 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
13614 (SYMBOL_LOOKUP_FAILED): New macro.
13615 (symbol_cache_slot_state): New enum.
13616 (block_symbol_cache): New struct.
13617 (symbol_cache): New struct.
13618 (new_symbol_cache_size, symbol_cache_size): New static globals.
13619 (hash_symbol_entry, eq_symbol_entry): New functions.
13620 (symbol_cache_byte_size, resize_symbol_cache): New functions.
13621 (make_symbol_cache, free_symbol_cache): New functions.
13622 (get_symbol_cache, symbol_cache_cleanup): New function.
13623 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
13624 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
13625 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
13626 (symbol_cache_flush, symbol_cache_dump): New functions.
13627 (maintenance_print_symbol_cache): New function.
13628 (maintenance_flush_symbol_cache): New function.
13629 (symbol_cache_stats): New function.
13630 (maintenance_print_symbol_cache_statistics): New function.
13631 (symtab_new_objfile_observer): New function.
13632 (symtab_free_objfile_observer): New function.
13633 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
13634 (_initialize_symtab): Init symbol_cache_key. New parameter
13635 maint symbol-cache-size. New maint commands print symbol-cache,
13636 print symbol-cache-statistics, flush-symbol-cache.
13637 Install new_objfile, free_objfile observers.
13638
e700d1b2
JB
136392015-01-31 Joel Brobecker <brobecker@adacore.com>
13640
13641 PR symtab/17855
13642 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
13643 to end.
13644
9f050062
DE
136452015-01-31 Doug Evans <xdje42@gmail.com>
13646
13647 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
13648 * auto-load.c: #include ctype.h.
13649 (struct auto_load_pspace_info): Replace member loaded_scripts with
13650 new members loaded_script_files, loaded_script_texts.
13651 (auto_load_pspace_data_cleanup): Update.
13652 (init_loaded_scripts_info): Update.
13653 (get_auto_load_pspace_data_for_loading): Update.
13654 (maybe_add_script_file): Renamed from maybe_add_script. All callers
13655 updated.
13656 (maybe_add_script_text): New function.
13657 (clear_section_scripts): Update.
13658 (source_script_file, execute_script_contents): New functions.
13659 (source_section_scripts): Add support for
13660 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
13661 (print_scripts): New function.
13662 (auto_load_info_scripts): Also print inlined scripts.
13663 (maybe_print_unsupported_script_warning): Renamed from
13664 unsupported_script_warning_print. All callers updated.
13665 (maybe_print_script_not_found_warning): Renamed from
13666 script_not_found_warning_print. All callers updated.
13667 * extension-priv.h (struct extension_language_script_ops): New member
13668 objfile_script_executor.
13669 * extension.c (ext_lang_objfile_script_executor): New function.
13670 * extension.h (objfile_script_executor_func): New typedef.
13671 (ext_lang_objfile_script_executor): Declare.
13672 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
13673 * guile/guile.c (guile_extension_script_ops): Update.
13674 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
13675 * python/python.c (python_extension_script_ops): Update.
13676 (gdbpy_execute_objfile_script): New function.
13677
312809f8
EZ
136782015-01-31 Eli Zaretskii <eliz@gnu.org>
13679
13680 * tui/tui-io.c (tui_expand_tabs): New function.
13681 (tui_puts, tui_redisplay_readline): Expand TABs into the
13682 appropriate number of spaces.
13683 * tui/tui-regs.c: Include tui-io.h.
13684 (tui_register_format): Call tui_expand_tabs to expand TABs into
13685 the appropriate number of spaces.
13686 * tui/tui-io.h: Add prototype for tui_expand_tabs.
13687
b6577aab
DE
136882015-01-30 Doug Evans <dje@google.com>
13689
13690 * NEWS: "info source" command now display producer string if present.
13691 * source.c (source_info): Print producer string if present.
13692
6da58d3e
SM
136932015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13694
13695 * varobj.c (varobj_delete): Fix comment.
13696
837ce252
SM
136972015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13698
13699 * varobj.c (create_child): Modify comment.
13700
b09e2c59
SM
137012015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13702
13703 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
13704 parameter.
13705 (ada_name_of_variable): Same.
13706 (ada_path_expr_of_child): Same.
13707 (ada_value_of_variable): Same.
13708 (ada_value_is_changeable_p): Same.
13709 (ada_value_has_mutated): Same.
13710 * c-varobj.c (varobj_is_anonymous_child): Same.
13711 (c_is_path_expr_parent): Same.
13712 (c_number_of_children): Same.
13713 (c_name_of_variable): Same.
13714 (c_path_expr_of_child): Same.
13715 (get_type): Same.
13716 (c_value_of_variable): Same.
13717 (cplus_number_of_children): Same.
13718 (cplus_name_of_variable): Same.
13719 (cplus_path_expr_of_child): Same.
13720 (cplus_value_of_variable): Same.
13721 * jv-varobj.c (java_number_of_children): Same.
13722 (java_name_of_variable): Same.
13723 (java_path_expr_of_child): Same.
13724 (java_value_of_variable): Same.
13725 * varobj.c (number_of_children): Same.
13726 (name_of_variable): Same.
13727 (is_root_p): Same.
13728 (varobj_ensure_python_env): Same.
13729 (varobj_get_objname): Same.
13730 (varobj_get_expression): Same.
13731 (varobj_get_display_format): Same.
13732 (varobj_get_display_hint): Same.
13733 (varobj_has_more): Same.
13734 (varobj_get_thread_id): Same.
13735 (varobj_get_frozen): Same.
13736 (dynamic_varobj_has_child_method): Same.
13737 (varobj_get_gdb_type): Same.
13738 (is_path_expr_parent): Same.
13739 (varobj_default_is_path_expr_parent): Same.
13740 (varobj_get_language): Same.
13741 (varobj_get_attributes): Same.
13742 (varobj_is_dynamic_p): Same.
13743 (varobj_get_child_range): Same.
13744 (varobj_value_has_mutated): Same.
13745 (varobj_get_value_type): Same.
13746 (number_of_children): Same.
13747 (name_of_variable): Same.
13748 (check_scope): Same.
13749 (varobj_editable_p): Same.
13750 (varobj_value_is_changeable_p): Same.
13751 (varobj_floating_p): Same.
13752 (varobj_default_value_is_changeable_p): Same.
13753
2568868e
SM
137542015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13755
13756 * varobj.c (varobj_get_path_expr): Set var->path_expr.
13757 * c-varobj.c (c_path_expr_of_child): Set local var instead of
13758 child->path_expr.
13759 (cplus_path_expr_of_child): Same.
13760
ca83fa81
SM
137612015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13762
13763 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
13764 result.
13765 (mi_cmd_var_info_expression): Same.
13766 * varobj.c (varobj_get_expression): Mention in the comment that
13767 the result must by freed by the caller.
13768
afa269ae
SM
137692015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13770
13771 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
13772 varobj_get_type.
13773 (varobj_update_one): Same.
13774 * varobj.c (update_type_if_necessary): Free curr_type_str and
13775 new_type_str.
13776 (varobj_get_type): Specify in comment that the result needs to be
13777 freed by the caller.
13778
cd366ee8
DE
137792015-01-29 Doug Evans <dje@google.com>
13780
13781 PR symtab/17890
13782 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
13783
38360086
MW
137842015-01-25 Mark Wielaard <mjw@redhat.com>
13785
13786 * dwarf2read.c (checkproducer): Call producer_is_gcc.
13787 * utils.c (producer_is_gcc_ge_4): Likewise.
13788 (producer_is_gcc): New function.
13789 * utils.h (producer_is_gcc): New declaration.
13790
df25ebbd
JB
137912015-01-29 Joel Brobecker <brobecker@adacore.com>
13792
13793 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
13794 kind.
13795 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
13796 parameter by "addr_stack" parameter.
13797 (resolve_dynamic_range): Replace "addr" parameter by
13798 "stack_addr" parameter. Update function documentation.
13799 Update code accordingly.
13800 (resolve_dynamic_array, resolve_dynamic_union)
13801 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
13802 (resolve_dynamic_type): Update code, following the changes made
13803 to resolve_dynamic_type_internal's interface.
13804 * dwarf2loc.h (struct property_addr_info): New.
13805 (dwarf2_evaluate_property): Replace "address" parameter
13806 by "addr_stack" parameter. Adjust function documentation.
13807 (struct dwarf2_offset_baton): New.
13808 (struct dwarf2_property_baton): Update documentation of
13809 field "referenced_type" to be more general. New field
13810 "offset_info" in union data field.
13811 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
13812 parameter by "addr_stack" parameter. Adjust code accordingly.
13813 Add support for PROP_ADDR_OFFSET properties.
13814 * dwarf2read.c (attr_to_dynamic_prop): Add support for
13815 DW_AT_data_member_location attributes as well. Use case
13816 statements instead of if/else condition.
13817
4a0ca9ec
JB
138182015-01-29 Joel Brobecker <brobecker@adacore.com>
13819
13820 * ada-varobj.c (ada_varobj_get_array_number_of_children):
13821 Return zero if PARENT_VALUE is NULL and parent_type's
13822 range type is dynamic.
13823
ddb87a81
JB
138242015-01-29 Joel Brobecker <brobecker@adacore.com>
13825
13826 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
13827 nonzero if the type's subtype is dynamic.
13828 (resolve_dynamic_range): Also resolve the range's subtype.
13829
3d7ad9b4 138302015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 13831
3d7ad9b4 13832 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
13833 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
13834
3a8b707a
DE
138352015-01-27 Doug Evans <dje@google.com>
13836
13837 * NEWS: Mention gdb.Objfile.username.
13838 * python/py-objfile.c (objfpy_get_username): New function.
13839 (objfile_getset): Add "username".
13840
d35b90fb
MW
138412015-01-24 Mark Wielaard <mjw@redhat.com>
13842
13843 * stack.c (return_command): Markup warning message with _.
13844
734ae125
DE
138452015-01-24 Doug Evans <xdje42@gmail.com>
13846
13847 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
13848
527f3840
JK
138492015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13850
13851 Fix 100x slowdown regression on DWZ files.
13852 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
13853 (struct line_header): Add offset and offset_in_dwz.
13854 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
13855 (free_line_header_voidp): New declaration.
13856 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
13857 functions.
13858 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
13859 (handle_DW_AT_stmt_list): Use line_header_hash.
13860 (free_line_header_voidp): New function.
13861 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
13862 (dwarf_decode_lines): New parameter decode_mapping, use it.
13863 (dwarf2_free_objfile): Free line_header_hash.
13864
f7e5394d
SM
138652015-01-23 Simon Marchi <simon.marchi@ericsson.com>
13866
13867 PR gdb/17416
13868 * valops.c (value_rtti_indirect_type): Catch exception thrown by
13869 value_ind.
13870
743649fd
MW
138712015-01-15 Mark Wielaard <mjw@redhat.com>
13872
13873 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
13874 DW_AT_noreturn.
13875 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
13876 calling_convention an 8 bit bit field.
13877 (TYPE_NO_RETURN): New macro.
13878 * infcmd.c (finish_command): Query if function does not return
13879 normally.
13880 * stack.c (return_command): Likewise.
13881
198297aa
PA
138822015-01-23 Pedro Alves <palves@redhat.com>
13883
13884 * linux-nat.c (linux_is_async_p): New macro.
13885 (linux_nat_is_async_p):
13886 (linux_nat_terminal_inferior): Check whether the target can async
13887 instead of whether it is already async.
13888 (linux_nat_terminal_ours): Don't check whether the target is
13889 async.
13890 (linux_async_pipe): Use linux_is_async_p.
13891
253828f1
JK
138922015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13893
13894 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
13895 '-ascending'.
13896 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
13897 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
13898 Sort tp_array using tp_array_compar.
13899 (_initialize_thread): Extend thread_apply_all_command help.
13900
f0e8c4c5
JK
139012015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13902
13903 * corelow.c (core_open): Call also thread_command.
13904 * gdbthread.h (thread_command): New prototype moved from ...
13905 * thread.c (thread_command): ... here.
13906 (thread_command): Make it global.
13907
03b79603
PA
139082015-01-22 Pedro Alves <palves@redhat.com>
13909
13910 * configure.ac [*mingw32*]: Check $curses_found instead of
13911 $prefer_curses.
13912 * configure: Regenerate.
13913 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
13914 HAVE_NCURSES_NCURSES_H checks.
13915
6b8a872f
EZ
139162015-01-22 Eli Zaretskii <eliz@gnu.org>
13917
bbbbffbb 13918 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
13919 fails with the 1st arg NULL, try again with "unknown". Don't test
13920 the "cup" capability: it isn't supported by the Windows port of
13921 ncurses, but the Windows console driver is still capable of
13922 supporting TUI.
13923
4b62a76e
JK
139242015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13925
13926 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
13927
82a864f9
EZ
139282015-01-22 Eli Zaretskii <eliz@gnu.org>
13929
13930 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
13931 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
13932 reason that "make TAGS" is broken.
13933
b35018fd
CG
139342015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
13935
13936 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
13937 and check additional store instructions.
13938
ffbc4646
WW
139392015-01-21 Wei-cheng Wang <cole945@gmail.com>
13940
13941 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
13942
ddeca1df
WW
139432015-01-21 Wei-cheng Wang <cole945@gmail.com>
13944
13945 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13946 ppc_canonicalize_syscall, ppc_linux_syscall_record,
13947 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
13948 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13949 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
13950 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
13951 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
13952 ppc_process_record_op19, ppc_process_record_op31,
13953 ppc_process_record_op59, ppc_process_record_op60,
13954 ppc_process_record_op63): Likewise.
13955
049bb5de
JB
139562015-01-20 Joel Brobecker <brobecker@adacore.com>
13957
13958 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
13959 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
13960 strerror.
13961
42b87c63 139622015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
13963
13964 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
13965 ppc_process_record_op31, ppc_process_record_op59,
13966 ppc_process_record_op60, ppc_process_record_op63,
13967 ppc_process_record): Fix -Wformat warning.
13968 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
13969 Remove unused variables.
13970
569340fc
CG
139712015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
13972
13973 * MAINTAINERS (Write After Approval): Add "Chen Gang".
13974
63413d85
EZ
139752015-01-19 Eli Zaretskii <eliz@gnu.org>
13976
13977 * configure.ac [*mingw32*]: Only add windows-termcap.o to
13978 CONFIG_OBS if not building with a curses library.
13979 * configure: Regenerate.
13980
13981 * windows-termcap.c: Include defs.h. Make the whole body empty if
13982 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
13983 HAVE_NCURSES_NCURSES_H is defined.
13984
16d8013c
JB
139852015-01-19 Joel Brobecker <brobecker@adacore.com>
13986
13987 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
13988 from end of line to start of next line.
13989
cf90fd9a
WW
139902015-01-17 Wei-cheng Wang <cole945@gmail.com>
13991
13992 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
13993 Scan PLT stub backward for reverse debugging.
13994 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13995
b4cdae6f
WW
139962015-01-17 Wei-cheng Wang <cole945@gmail.com>
13997 Ulrich Weigand <uweigand@de.ibm.com>
13998
13999 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
14000 gdb_target_obs.
14001 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
14002 record.
14003 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
14004 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
14005 (ppc_linux_init_abi): Set process_record, process_record_signal.
14006 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
14007 ppc_linux_record_tdep to gdbarch_tdep.
14008 (ppc_process_record): New declaration.
14009 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
14010 ppc_process_record_op19, ppc_process_record_op31,
14011 ppc_process_record_op59, ppc_process_record_op60,
14012 ppc_process_record_op63, ppc_process_record): New functions.
14013
2608dbf8
WW
140142015-01-17 Wei-cheng Wang <cole945@gmail.com>
14015
14016 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
14017 rs6000_in_function_epilogue_frame_p and add an argument
14018 for frame_info.
14019 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
14020 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
14021 New functions.
14022 (rs6000_epilogue_frame_unwind): New.
14023 (rs6000_gdbarch_init): Append epilogue unwinder.
14024
4c347be6
SDJ
140252015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
14026
14027 * nat/linux-personality.c: Replace "#ifndef
14028 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
14029 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
14030 systems.
14031
9f2850ba
EZ
140322015-01-16 Eli Zaretskii <eliz@gnu.org>
14033
6cdb25f4
EZ
14034 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
14035 functions.
14036 (_initialize_tui_win) <border-kind, border-mode>:
14037 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
14038 (tui_set_tab_width_command): Fix the commentary.
14039
6cdb25f4
EZ
14040 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
14041
bf555842
EZ
14042 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
14043 Doc fix.
cb86fcc1
EZ
14044 (tui_set_tab_width_command): Delete and recreate the source and
14045 the disassembly windows, to show the effect of the changed tab
14046 size immediately.
bf555842 14047
9f2850ba
EZ
14048 * tui/tui-data.h (LINE_PREFIX): Make shorter
14049 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
14050 "Thread NNNNN.XXXX" thread ID notation on Windows.
14051
95761b2d
JK
140522015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14053
14054 Fix gcc-5 compilation.
14055 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
14056
8cc73a39
SDJ
140572015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
14058
14059 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
14060 (linux-personality.o): New rule.
14061 * common/common-defs.h: Include <stdint.h>.
14062 * config/aarch64/linux.mh (NATDEPFILES): Include
14063 linux-personality.o.
14064 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
14065 * config/arm/linux.mh (NATDEPFILES): Likewise.
14066 * config/i386/linux64.mh (NATDEPFILES): Likewise.
14067 * config/i386/linux.mh (NATDEPFILES): Likewise.
14068 * config/ia64/linux.mh (NATDEPFILES): Likewise.
14069 * config/m32r/linux.mh (NATDEPFILES): Likewise.
14070 * config/m68k/linux.mh (NATDEPFILES): Likewise.
14071 * config/mips/linux.mh (NATDEPFILES): Likewise.
14072 * config/pa/linux.mh (NATDEPFILES): Likewise.
14073 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
14074 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
14075 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
14076 * config/s390/linux.mh (NATDEPFILES): Likewise.
14077 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
14078 * config/sparc/linux.mh (NATDEPFILES): Likewise.
14079 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
14080 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
14081 * defs.h: Remove #include <stdint.h> (moved to
14082 common/common-defs.h).
14083 * linux-nat.c: Include nat/linux-personality.h. Remove #include
14084 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
14085 nat/linux-personality.c).
14086 (linux_nat_create_inferior): Remove code to disable address space
14087 randomization (moved to nat/linux-personality.c). Create cleanup
14088 to disable address space randomization.
14089 * nat/linux-personality.c: New file.
14090 * nat/linux-personality.h: Likewise.
14091
fb23d554
SDJ
140922015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
14093
14094 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
14095 common/posix-strerror.c.
14096 (posix-strerror.o): New rule.
14097 (mingw-strerror.o): Likewise.
14098 * common/common-utils.h (safe_strerror): Move prototype to here,
14099 from utils.h.
14100 * common/common.host: New file.
14101 * common/mingw-strerror.c: Likewise.
14102 * common/posix-strerror.c: Likewise.
14103 * configure: Regenerated.
14104 * configure.ac: Source common/common.host. Add variable
14105 common_host_obs to gdb_host_obs.
14106 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
14107 gdb/common/posix-strerror.c when warning about the use of
14108 strerror.
14109 * mingw-hdep.c (safe_strerror): Remove definition; move it to
14110 common/mingw-strerror.c.
14111 * posix-hdep.c (safe_strerror): Remove definition; move it to
14112 common/posix-hdep.c.
14113 * utils.h (safe_strerror): Remove prototype; move to
14114 common/common-utils.h.
14115
3af8af43
JB
141162015-01-15 Joel Brobecker <brobecker@adacore.com>
14117
14118 GDB 7.8.2 released.
14119
bafffb51
JB
141202015-01-15 Joel Brobecker <brobecker@adacore.com>
14121
14122 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
14123 ___XA type if the array has already been fixed.
14124
cdf43629
YQ
141252015-01-14 Yao Qi <yao@codesourcery.com>
14126
14127 * Makefile.in (ppc-linux.o): New rule.
14128 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
14129 * configure.ac: AC_CHECK_FUNCS(getauxval).
14130 * config.in: Re-generated.
14131 * configure: Re-generated.
14132 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
14133 Declare.
14134 * nat/ppc-linux.c: New file.
14135 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
14136 Call ppc64_64bit_inferior_p.
14137
514c5338
YQ
141382015-01-14 Yao Qi <yao@codesourcery.com>
14139
14140 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
14141 nat/ppc-linux.h.
14142 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
14143 (PPC_FEATURE_HAS_DFP): Likewise.
14144 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
14145 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
14146 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
14147 Include "nat/ppc-linux.h".
14148 * nat/ppc-linux.h: New file.
14149 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
14150
5589af0e
PA
141512015-01-14 Pedro Alves <palves@redhat.com>
14152
14153 PR gdb/17525
14154 * breakpoint.c: Include "interps.h".
14155 (bpstat_do_actions_1): Also check whether the interpreter is
14156 async.
14157
6c400b59
PA
141582015-01-14 Pedro Alves <palves@redhat.com>
14159
14160 PR cli/17828
14161 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
14162 reinstall if the interpreter is sync.
14163
e02c96a7
DE
141642015-01-13 Doug Evans <dje@google.com>
14165
14166 * objfiles.c (objfile_filename): New function.
14167 * objfiles.h (objfile_filename): Declare it.
14168 (objfile_name): Add function comment.
14169 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
14170 bfd file name (which may be realpath'd), and the original name.
14171
3b2f13ff
JB
141722015-01-13 Joel Brobecker <brobecker@adacore.com>
14173
14174 * NEWS: Create a new section for the next release branch.
14175 Rename the section of the current branch, now that it has
14176 been cut.
14177
b4cfe7f8
JB
141782015-01-13 Joel Brobecker <brobecker@adacore.com>
14179
14180 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
14181 * version.in: Bump version to 7.9.50.DATE-cvs.
14182
92fc2e69
JB
141832015-01-13 Joel Brobecker <brobecker@adacore.com>
14184
14185 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
14186 Remove trailing new-line in argument of call to warning.
14187
f71f0b0d
JB
141882015-01-13 Joel Brobecker <brobecker@adacore.com>
14189
14190 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
14191 new-line in argument of call to "warning".
14192
04dccad0
JB
141932015-01-13 Joel Brobecker <brobecker@adacore.com>
14194
14195 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
14196 in static block, then try searching for primitive types.
14197
08b13bdd
PP
141982015-01-12 Patrick Palka <patrick@parcs.ath.cx>
14199
14200 * top.h (gdb_add_history): Declare.
14201 * top.c (command_count): New variable.
14202 (gdb_add_history): New function.
14203 (gdb_safe_append_history): New static function.
14204 (quit_force): Call it.
14205 (command_line_input): Use gdb_add_history instead of
14206 add_history.
14207 * event-top.c (command_line_handler): Likewise.
14208
4ac15b59
JC
142092015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
14210
14211 PR gdb/17046
14212 * darwin-nat.c: Replace <machine/setjmp.h> #include by
14213 <setjmp.h> #include.
14214
005e54bb
DE
142152015-01-11 Doug Evans <xdje42@gmail.com>
14216
14217 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
14218
439250fb
DE
142192015-01-11 Doug Evans <xdje42@gmail.com>
14220
14221 PR gdb/15830
14222 * NEWS: The "maint demangle" command is renamed as "demangle".
14223 * demangle.c: #include cli/cli-utils.h, language.h.
14224 (demangle_command): New function.
14225 (_initialize_demangle): Add new command "demangle".
14226 * maint.c (maintenance_demangle): Stub out.
14227 (_initialize_maint_cmds): Update help text for "maint demangle",
14228 and mark as deprecated.
14229
ebf3aa72
MK
142302015-01-11 Mark Kettenis <kettenis@gnu.org>
14231
14232 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
14233 inferior_thread is a function.
14234
6bf045cd
PP
142352015-01-09 Patrick Palka <patrick@parcs.ath.cx>
14236
14237 * Makefile.in (.y.c): Don't munge yacc's #line
14238 directives.
14239
588dcc3e
PP
142402015-01-09 Patrick Palka <patrick@parcs.ath.cx>
14241
14242 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
14243 to prompt for input.
14244 * tui/tui-hooks.c (tui_query_hook): Remove.
14245 (tui_install_hooks): Don't set deprecated_query_hook.
14246 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
14247 height calculation. Always update the command window's cur_line.
14248
9c02b525
PA
142492015-01-09 Pedro Alves <palves@redhat.com>
14250
14251 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
14252 function.
14253 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
14254 declaration.
14255 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
14256 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
14257 stop_reason.
14258 (check_stopped_by_watchpoint): New function.
14259 (save_sigtrap): Reimplement.
14260 (linux_nat_stopped_by_watchpoint): Adjust.
14261 (linux_nat_lp_status_is_event): Delete.
14262 (stop_wait_callback): Only call save_sigtrap after storing the
14263 pending status.
14264 (status_callback): If the thread had been stopped for a breakpoint
14265 that has since been removed, discard the event and resume the LWP.
14266 (count_events_callback, select_event_lwp_callback): Use
14267 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
14268 (cancel_breakpoint): Rename to ...
14269 (check_stopped_by_breakpoint): ... this. Record whether the LWP
14270 stopped for a software breakpoint or hardware breakpoint.
14271 (select_event_lwp): Only give preference to the stepping LWP in
14272 all-stop mode. Adjust comments.
14273 (stop_and_resume_callback): Remove references to new_pending_p.
14274 (linux_nat_filter_event): Likewise. Leave exit events of the
14275 leader thread pending here. Handle signal short circuiting here.
14276 Only call save_sigtrap after storing the pending waitstatus.
14277 (linux_nat_wait_1): Remove 'retry' label. Remove references to
14278 new_pending. Don't handle leaving events the caller is not
14279 interested in pending here, nor handle signal short-circuiting
14280 here. Also give equal priority to all LWPs that have had events
14281 in non-stop mode. If reporting a software breakpoint event,
14282 unadjust the LWP's PC.
14283 * linux-nat.h (enum lwp_stop_reason): New.
14284 (struct lwp_info) <stop_pc>: New field.
14285 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
14286 (struct lwp_info) <stop_reason>: New field.
14287 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
14288
8af756ef
PA
142892015-01-09 Pedro Alves <palves@redhat.com>
14290
14291 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
14292 Set the LWP's 'resumed' flag.
14293
8a99810d
PA
142942015-01-09 Pedro Alves <palves@redhat.com>
14295
14296 * linux-nat.c (linux_resume_one_lwp): New function.
14297 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
14298 (linux_nat_resume): Use lwp_status_pending_p and
14299 linux_resume_one_lwp.
14300 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
14301 (linux_handle_extended_wait): Use linux_resume_one_lwp.
14302 (status_callback, running_callback): Use lwp_status_pending_p.
14303 (lwp_status_pending_p): New function.
14304 (stop_and_resume_callback): Use lwp_status_pending_p.
14305 (linux_nat_filter_event): Use linux_resume_one_lwp.
14306 (linux_nat_wait_1): Always use status_callback to look for an LWP
14307 with a pending status. Use linux_resume_one_lwp.
14308 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
14309 linux_resume_one_lwp.
14310
f7ce857f
PA
143112015-01-09 Pedro Alves <palves@redhat.com>
14312
14313 * breakpoint.c (bp_location_inserted_here_p): New function,
14314 factored out from ...
14315 (breakpoint_inserted_here_p): ... here. Use
14316 ALL_BP_LOCATIONS_AT_ADDR.
14317 (software_breakpoint_inserted_here_p): Use
14318 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
14319
c1a747c1
PA
143202014-01-09 Pedro Alves <palves@redhat.com>
14321
14322 Skip enabling event reporting if the kernel supports
14323 PTRACE_EVENT_CLONE.
14324 * linux-thread-db.c: Include "nat/linux-ptrace.h".
14325 (thread_db_use_events): New function.
14326 (try_thread_db_load_1): Check thread_db_use_events before enabling
14327 event reporting.
14328 (update_thread_state): New function.
14329 (attach_thread): Use it. Check thread_db_use_events before
14330 enabling event reporting.
14331 (thread_db_detach): Check thread_db_use_events before disabling
14332 event reporting.
14333 (find_new_threads_callback): Check thread_db_use_events before
14334 enabling event reporting. Update the thread's state if not using
14335 libthread_db events.
14336
a33e3959
PA
143372015-01-09 Pedro Alves <palves@redhat.com>
14338
14339 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
14340 about to wait for is > 0.
14341 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
14342 the kernel thread ID is -1.
14343
8784d563
PA
143442015-01-09 Pedro Alves <palves@redhat.com>
14345
14346 * linux-nat.c (attach_proc_task_lwp_callback): New function.
14347 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
14348 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
14349 ptrace option flags.
14350 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
14351 field.
14352 * nat/linux-procfs.c: Include <dirent.h>.
14353 (linux_proc_get_int): New parameter "warn". Handle it.
14354 (linux_proc_get_tgid): Adjust.
14355 (linux_proc_get_tracerpid): Rename to ...
14356 (linux_proc_get_tracerpid_nowarn): ... this.
14357 (linux_proc_pid_get_state): New function, factored out from
14358 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
14359 and handle it.
14360 (linux_proc_pid_is_gone): New function.
14361 (linux_proc_pid_is_stopped): Adjust.
14362 (linux_proc_pid_is_zombie_maybe_warn)
14363 (linux_proc_pid_is_zombie_nowarn): New functions.
14364 (linux_proc_pid_is_zombie): Use
14365 linux_proc_pid_is_zombie_maybe_warn.
14366 (linux_proc_attach_tgid_threads): New function.
14367 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
14368 (linux_proc_get_tracerpid): Rename to ...
14369 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
14370 (linux_proc_pid_is_gone): New declaration.
14371 (linux_proc_pid_is_zombie): Update comment.
14372 (linux_proc_pid_is_zombie_nowarn): New declaration.
14373 (linux_proc_attach_lwp_func): New typedef.
14374 (linux_proc_attach_tgid_threads): New declaration.
14375 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
14376 use nowarn functions.
14377 (linux_ptrace_attach_fail_reason_string): Move here from
14378 gdbserver/linux-low.c and rename.
14379 (ptrace_supports_feature): If the current ptrace options are not
14380 known yet, check them now, instead of asserting.
14381 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
14382 Declare.
14383
883ed13e
PA
143842015-01-09 Pedro Alves <palves@redhat.com>
14385
14386 * linux-thread-db.c (thread_db_find_new_threads_silently)
14387 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
14388 (find_new_threads_once): Print debug output on gdb_stdlog.
14389
1710aab8
CG
143902015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
14391 Pedro Alves <palves@redhat.com>
14392
14393 * compile/compile.c: Include "gdb_wait.h".
14394 (do_rmdir): Check return value, and free 'zap'.
14395
b597c318
YQ
143962015-01-08 Pedro Alves <palves@redhat.com>
14397 Yao Qi <yao@codesourcery.com>
14398
14399 * dwarf2loc.c (indirect_pieced_value): Don't call
14400 gdb_sign_extend. Call extract_signed_integer instead.
14401 * utils.c (gdb_sign_extend): Remove.
14402 * utils.h (gdb_sign_extend): Remove declaration.
14403
025ac414
PM
144042015-01-07 Pierre Muller <muller@sourceware.org>
14405
14406 PR symtab/17811
14407 * stabsread.c (define_symbol): Set language for C++ special symbols.
14408
fa5af12a
PP
144092015-01-07 Patrick Palka <patrick@parcs.ath.cx>
14410
14411 * inflow.c (initial_gdb_ttystate): Tweak comment.
14412
ea42d6f8
JB
144132015-01-07 Joel Brobecker <brobecker@adacore.com>
14414
14415 * inflow.c (set_initial_gdb_ttystate): Add empty line after
14416 comment documenting function.
14417
6a06d660
PP
144182015-01-07 Patrick Palka <patrick@parcs.ath.cx>
14419
14420 * terminal.h (set_initial_gdb_ttystate): Declare.
14421 * inflow.c (initial_gdb_ttystate): New static variable.
14422 (set_initial_gdb_ttystate): New setter.
14423 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
14424 instead of our current terminal state.
14425 * top.c (gdb_init): Call set_initial_gdb_ttystate.
14426
e810d75b
JB
144272015-01-07 Joel Brobecker <brobecker@adacore.com>
14428
14429 * guile/scm-type.c (tyscm_array_1): Add comment.
14430 * python/py-type.c (typy_array_1): Add comment.
14431
fce10a84
JB
144322015-01-06 Joel Brobecker <brobecker@adacore.com>
14433
14434 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
14435 error if N2 is equal to N1 - 1.
14436
8503d6e1
JB
144372015-01-06 Joel Brobecker <brobecker@adacore.com>
14438
14439 * python/py-type.c (typy_array_1): Do not raise negative-length
14440 exception if N2 is equal to N1 - 1.
14441
4d29c0a8
DE
144422015-01-03 Doug Evans <xdje42@gmail.com>
14443
14444 * c-exp.y: Whitespace cleanup.
14445 (classify_inner_name): Remove extra ;.
14446
eaa6a9a4
MR
144472015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
14448
14449 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
14450 offset signed.
14451
02fe9972
DE
144522015-01-02 Doug Evans <dje@google.com>
14453
14454 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
14455
e2ada9cb
DE
144562015-01-02 Doug Evans <dje@google.com>
14457
14458 * symtab.h (struct symbol): Fix typo in comment.
14459
32d0add0
JB
144602015-01-01 Joel Brobecker <brobecker@adacore.com>
14461
14462 Update year range in copyright notice of all files.
14463
76f2b779
JB
144642015-01-01 Joel Brobecker <brobecker@adacore.com>
14465
14466 * top.c (print_gdb_version): Update copyright year to 2015.
14467
077309e2 144682015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 14469
077309e2 14470 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 14471
077309e2 14472For older changes see ChangeLog-2014.
c906108c
SS
14473\f
14474Local Variables:
14475mode: change-log
14476left-margin: 8
14477fill-column: 74
14478version-control: never
57da7796 14479coding: utf-8
c906108c 14480End: