Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e7826da3
JB
12015-12-19 Joel Brobecker <brobecker@adacore.com>
2
3 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Remove trailing
4 newline at end of error message.
5
bc008695
SL
62015-12-18 Sandra Loosemore <sandra@codesourcery.com>
7
8 * event-top.c (command_handler): Don't require stdin to be a tty
9 for call to reinitialize_more_filter.
10 * top.c (command_loop): Likewise.
11
1690b616
SL
122015-12-18 Sandra Loosemore <sandra@codesourcery.com>
13
14 * utils.c (prompt_for_continue): Call throw_quit directly on 'q'.
15
5f2dfcfd
AT
162015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
17
18 * arm-tdep.c (arm_get_next_pcs_read_memory_unsigned_integer): Cast
19 to enum bfd_endian)
20
d9311bfa
AT
212015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
22
23 * Makefile.in (ALL_TARGET_OBS): Append arm-get-next-pcs.o,
24 arm-linux.o.
25 (ALLDEPFILES): Append arm-get-next-pcs.c, arm-linux.c
26 (arm-linux.o): New rule.
27 (arm-get-next-pcs.o): New rule.
28 * arch/arm-get-next-pcs.c: New file.
29 * arch/arm-get-next-pcs.h: New file.
30 * arch/arm-linux.h: New file.
31 * arch/arm-linux.c: New file.
32 * arm.c: Include common-regcache.c.
33 (thumb_advance_itstate): Moved from arm-tdep.c.
34 (arm_instruction_changes_pc): Likewise.
35 (thumb_instruction_changes_pc): Likewise.
36 (thumb2_instruction_changes_pc): Likewise.
37 (shifted_reg_val): Likewise.
38 * arm.h (submask): Move macro from arm-tdep.h
39 (bit): Likewise.
40 (bits): Likewise.
41 (sbits): Likewise.
42 (BranchDest): Likewise.
43 (thumb_advance_itstate): Moved declaration from arm-tdep.h
44 (arm_instruction_changes_pc): Likewise.
45 (thumb_instruction_changes_pc): Likewise.
46 (thumb2_instruction_changes_pc): Likewise.
47 (shifted_reg_val): Likewise.
48 * arm-linux-tdep.c: Include arch/arm.h, arch/arm-get-next-pcs.h
49 arch/arm-linux.h.
50 (arm_linux_get_next_pcs_ops): New struct.
51 (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT,
52 ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT,
53 ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): Move stack
54 layout defines to arch/arm-linux.h.
55 (arm_linux_sigreturn_next_pc_offset): Move to arch/arm-linux.c.
56 (arm_linux_software_single_step): Adjust for arm_get_next_pcs
57 implementation.
58 * arm-tdep.c: Include arch/arm-get-next-pcs.h.
59 (arm_get_next_pcs_ops): New struct.
60 (submask): Move macro to arm.h.
61 (bit): Likewise.
62 (bits): Likewise.
63 (sbits): Likewise.
64 (BranchDest): Likewise.
65 (thumb_instruction_changes_pc): Move to arm.c
66 (thumb2_instruction_changes_pc): Likewise.
67 (arm_instruction_changes_pc): Likewise.
68 (shifted_reg_val): Likewise.
69 (thumb_advance_itstate): Likewise.
70 (thumb_get_next_pc_raw): Move to arm-get-next-pcs.c.
71 (arm_get_next_pc_raw): Likewise.
72 (arm_get_next_pc): Likewise.
73 (thumb_deal_with_atomic_sequence_raw): Likewise.
74 (arm_deal_with_atomic_sequence_raw): Likewise.
75 (arm_deal_with_atomic_sequence): Likewise.
76 (arm_get_next_pcs_read_memory_unsigned_integer): New function.
77 (arm_get_next_pcs_addr_bits_remove): Likewise.
78 (arm_get_next_pcs_syscall_next_pc): Likewise.
79 (arm_get_next_pcs_is_thumb): Likewise.
80 (arm_software_single_step): Adjust for arm_get_next_pcs
81 implementation.
82 * arm-tdep.h: (arm_get_next_pc): Remove declaration.
83 (arm_get_next_pcs_read_memory_unsigned_integer):
84 New declaration.
85 (arm_get_next_pcs_addr_bits_remove): Likewise.
86 (arm_get_next_pcs_syscall_next_pc): Likewise.
87 (arm_get_next_pcs_is_thumb): Likewise.
88 (arm_deal_with_atomic_sequence: Remove declaration.
89 * common/gdb_vecs.h: Add CORE_ADDR vector definition.
90 * configure.tgt (aarch64*-*-linux): Add arm-get-next-pcs.o,
91 arm-linux.o.
92 (arm*-wince-pe): Add arm-get-next-pcs.o.
93 (arm*-*-linux*): Add arm-get-next-pcs.o, arm-linux.o,
94 arm-get-next-pcs.o
95 (arm*-*-netbsd*,arm*-*-knetbsd*-gnu): Add arm-get-next-pcs.o.
96 (arm*-*-openbsd*): Likewise.
97 (arm*-*-symbianelf*): Likewise.
98 (arm*-*-*): Likewise.
99 * symtab.h: Move CORE_ADDR vector definition to gdb_vecs.h.
100
68ce2059
AT
1012015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
102
103 * Makefile.in (SFILES): Append common/common-regcache.c.
104 (COMMON_OBS): Append common/common-regcache.o.
105 (common-regcache.o): New rule.
106 * common/common-regcache.h (register_status) New enum.
107 (regcache_raw_read_unsigned): New declaration.
108 * common/common-regcache.c: New file.
109 * regcache.h (enum register_status): Move to common-regcache.h.
110 (regcache_raw_read_unsigned): Likewise.
111 (regcache_raw_get_unsigned): Likewise.
112
d0e59a68
AT
1132015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
114
115 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc_offset): New function.
116 (arm_linux_sigreturn_next_pc): Likewise.
117 (arm_linux_syscall_next_pc): Use regcache instead of frame.
118 (arm_linux_software_single_step): Likewise.
119 * arm-tdep.c (arm_is_thumb): New function.
120 (shifted_reg_va): Use regcache instead of frame.
121 (thumb_get_next_pc_raw): Likewise.
122 (arm_get_next_pc_raw): Likewise.
123 (arm_get_next_pc): Likewise.
124 (thumb_deal_with_atomic_sequence_raw): Likewise.
125 (arm_deal_with_atomic_sequence_raw): Likewise.
126 (arm_deal_with_atomic_sequence): Likewise.
127 (arm_software_single_step): Likewise.
128 * arm-tdep.h (struct gdbarch_tdep): Use regcache for syscall_next_pc.
129 (arm_get_next_pc): Use regcache.
130 (arm_deal_with_atomic_sequence): Likewise.
131 (arm_is_thumb): New declaration.
132 * regcache.c (regcache_raw_get_unsigned): New function.
133 * regcache.h (regcache_raw_get_unsigned): New function declaration.
134
cba7e83f
AT
1352015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
136
137 * arch/arm.c (bitcount): Move from arm-tdep.c.
138 (condition_true): Likewise.
139 * arch/arm.h (Instruction Definitions): Move form arm-tdep.h.
140 (condition_true): Move defenition from arm-tdep.h.
141 (bitcount): Likewise.
142 * arm-tdep.c (condition_true): Move to arch/arm.c.
143 (bitcount): Likewise.
144 * arm-tdep.h (Instruction Definitions): Move to arch/arm.h.
145 * arm-wince-tdep.c: Include arch/arm.h.
146 * armnbsd-tdep.c: Likewise.
147
a6904d5a
PA
1482015-12-17 Pedro Alves <palves@redhat.com>
149
150 PR threads/19354
151 * linux-nat.c (linux_nat_update_thread_list): Update process cores
152 each lwp was last seen running on here.
153 * linux-thread-db.c (update_thread_core): Delete.
154 (thread_db_update_thread_list_td_ta_thr_iter): Rename to ...
155 (thread_db_update_thread_list): ... this. Skip inferiors with
156 execution. Also call the target beneath.
157 (thread_db_update_thread_list): Delete.
158
4a6ed09b
PA
1592015-12-17 Pedro Alves <palves@redhat.com>
160
161 * configure.ac: Remove tkill checks.
162 * configure, config.in: Regenerate.
163 * linux-nat.c: Remove HAVE_TKILL_SYSCALL check. Update top level
164 comments.
165 (linux_nat_post_attach_wait): Remove 'cloned' parameter. Use
166 __WALL.
167 (attach_proc_task_lwp_callback): Don't set the cloned flag.
168 (linux_nat_attach): Adjust.
169 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
170 to 'kill'.
171 (linux_handle_extended_wait): Use __WALL. Don't set the cloned
172 flag.
173 (wait_lwp): Use __WALL. Update comments.
174 (running_callback, stop_and_resume_callback): Delete.
175 (linux_nat_filter_event): Don't stop and resume all lwps. Don't
176 check if the event LWP has previously exited.
177 (check_zombie_leaders): Update comments.
178 (linux_nat_wait_1): Use __WALL.
179 (kill_wait_callback): Don't handle clone processes separately.
180 Use __WALL instead.
181 (linux_thread_alive): Delete.
182 (linux_nat_thread_alive): Return true as long as the LWP is in the
183 LWP list.
184 (linux_nat_update_thread_list): Assume the kernel supports
185 PTRACE_EVENT_CLONE.
186 (get_signo): Delete.
187 (lin_thread_get_thread_signals): Remove LinuxThreads references.
188 No longer check __pthread_sig_restart / __pthread_sig_cancel in
189 the inferior.
190 * linux-nat.h (struct lwp_info) <cloned>: Delete field.
191 * linux-thread-db.c: Update comments.
192 (_initialize_thread_db): Remove LinuxThreads references.
193 * nat/linux-waitpid.c (my_waitpid): No longer emulate __WALL.
194 Pass down flags unmodified.
195 * linux-waitpid.h (my_waitpid): Update documentation.
196
c3c87445
YQ
1972015-12-17 Yao Qi <yao.qi@linaro.org>
198
199 * aarch64-tdep.c (struct stack_item_t): Update comments.
200 (pass_on_stack): Set item.data to NULL.
201 (aarch64_push_dummy_call): Call write_memory if si->data
202 isn't NULL.
203
7544db95
PA
2042015-12-16 Pedro Alves <palves@redhat.com>
205
206 * configure.ac (compiler warning flags): When testing a
207 -Wno-foo option, check whether -Wfoo works instead.
208 * configure: Regenerate.
209
a4e22a5d
PA
2102015-12-16 Pedro Alves <palves@redhat.com>
211
212 * common/vec.h (vec_offset): New macro.
213 (DEF_VEC_ALLOC_FUNC_I, DEF_VEC_ALLOC_FUNC_O): Use it instead of
214 offsetof.
215
19d9d4ef
DB
2162015-12-11 Don Breazeal <donb@codesourcery.com>
217
218 * NEWS: Announce fork and exec event support for target remote.
219
8020350c
DB
2202015-12-11 Don Breazeal <donb@codesourcery.com>
221
222 * inferior.c (number_of_live_inferiors): New function.
223 (have_live_inferiors): Use number_of_live_inferiors in place
224 of duplicate code.
225 * inferior.h (number_of_live_inferiors): Declare new function.
226 * remote.c (set_general_process): Remove restriction on target
227 remote mode.
228 (remote_query_supported): Likewise.
229 (remote_detach_1): Exit in target remote mode only when there
230 is just one live inferior left.
231 (remote_disconnect): Unpush the target directly instead of
232 calling remote_mourn.
233 (remote_kill): Rewrite function to handle both target remote
234 and extended-remote. Call remote_kill_k.
235 (remote_kill_k): New function.
236 (extended_remote_kill): Delete function.
237 (remote_mourn, extended_remote_mourn): Combine functions into
238 one, remote_mourn, and enable extended functionality for target
239 remote.
240 (remote_pid_to_str): Enable "process" style ptid string for
241 target remote.
242 (remote_supports_multi_process): Remove restriction on target
243 remote mode.
244
132874d7
AB
2452015-12-14 Andrew Burgess <andrew.burgess@embecosm.com>
246
247 * i386-tdep.c (i386_mpx_info_bounds): Use TYPE_LENGTH.
248 (i386_mpx_set_bounds): Likewise.
249 * solib-darwin.c (darwin_load_image_infos): Likewise.
250 (darwin_solib_read_all_image_info_addr): Likewise.
251
4fdd372d
AB
2522015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
253
254 * cli/cli-cmds.c (_initialize_cli_cmds): Extend help text for
255 'list' command.
256
3b2464a8
AB
2572015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
258
259 * cli/cli-cmds.c (list_command): Add an error when trying to use
260 '-' to scan read off the start of the source file.
261
a0def019
AB
2622015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
263
264 * cli/cli-cmds.c (list_command): Check that the argument string is
265 a single character, either '+' or '-'.
266
1a48ce76
AB
2672015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * cli/cli-cmds.c (list_command): Move all handling of +/-
270 arguments into a single if block.
271
8c05462a
AB
2722015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
273
274 * cli/cli-cmds.c (list_command): Use NULL instead of 0 when
275 checking pointers.
276
f43f8571
AB
2772015-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
278
279 * source.c (lines_to_list): Make static.
280
60269a4a
AT
2812015-12-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
282
283 * linux-thread-db.c (find_new_threads_callback): Use record_thread.
284
c2c2a31f
AT
2852015-12-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
286
287 * breakpoint.c (remove_thread_event_breakpoints): Remove.
288 * breakpoint.h (remove_thread_event_breakpoints): Remove
289 declaration.
290 * linux-nat.c (in_pid_list_p): Remove.
291 (lin_lwp_attach_lwp): Remove.
292 * linux-nat.h (lin_lwp_attach_lwp): Remove declaration.
293 * linux-thread-db.c (thread_db_use_events): Remove.
294 (struct thread_db_info) <td_create_bp_addr>: Remove.
295 <td_death_bp_addr>: Likewise.
296 <td_ta_event_addr_p>: Likewise.
297 <td_ta_set_event_p>: Likewise.
298 <td_ta_clear_event_p>: Likewise.
299 <td_ta_event_getmsg_p>: Likewise.
300 <td_thr_event_enable_p>: Likewise.
301 (attach_thread): Likewise.
302 (detach_thread): Likewise.
303 (have_threads_callback): Likewise.
304 (have_threads): Likewise.
305 (enable_thread_event): Likewise.
306 (enable_thread_event_reporting): Likewise.
307 (try_thread_db_load_1): Remove td_ta_event_addr, td_ta_set_event,
308 td_ta_clear_event, td_ta_event_getmsg, td_thr_event_enable
309 initializations.
310 (try_thread_db_load_1): Remove enable_thread_event_reporting call.
311 (disable_thread_event_reporting): Remove.
312 (record_thread): Adapt to thread_db_use_event removal.
313 (detach_thread): Remove.
314 (thread_db_detach): Adapt to thread_db_use_event removal.
315 (check_event): Remove.
316 (thread_db_wait): Adapt to thread events support removal.
317 (thread_db_mourn_inferior): Likewise.
318 (find_new_threads_callback): Likewise.
319 (find_new_threads_once): Likewise.
320 (thread_db_update_thread_list): Likewise.
321
28d2bfb9
AB
3222015-12-10 Andrew Burgess <andrew.burgess@embecosm.com>
323
324 * dwarf2read.c (dwarf2_ranges_read): Unify and fix base address
325 reading code.
326
f56331b4
KB
3272015-12-09 Kevin Buettner <kevinb@redhat.com>
328
329 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Perform a pointer
330 to address conversion for DWARF_VALUE_MEMORY.
331
1c35a88f
LM
3322015-12-09 Luis Machado <lgustavo@codesourcery.com>
333
334 * gdb/mi/mi-cmd-var.c (mi_parse_format): Handle new "zero-hexadecimal"
335 format.
336 * gdb/varobj.c (varobj_format_string): Add "zero-hexadecimal" entry.
337 (format_code): Add 'z' entry.
338 (varobj_set_display_format): Handle FORMAT_ZHEXADECIMAL.
339 * gdb/varobj.h (varobj_display_formats) <FORMAT_ZHEXADECIMAL>: New enum
340 field.
341 * NEWS: Add new note to MI changes citing the new zero-hexadecimal
342 format for -var-set-format.
343
b593e3d9
RK
3442015-12-09 Ruslan Kabatsayev <b7.10110111@gmail.com> (tiny patch)
345
346 PR gdb/18702
347 * configure.host: Fix detection of x86_64 host when setting
348 floatformats.
349
3685b09f
PMR
3502015-12-08 Pierre-Marie de Rodat <derodat@adacore.com>
351
352 * NEWS: Announce this enhancement and the corresponding new
353 option.
354
d72413e6
PMR
3552015-12-07 Pierre-Marie de Rodat <derodat@adacore.com>
356
357 * ada-lang.c (print_signatures): New.
358 (ada_print_symbol_signature): New.
359 (user_select_syms): Add signatures to the output of candidate
360 symbols using ada_print_symbol_signature.
361 (_initialize_ada_language): Add a "set/show ada
362 print-signatures" boolean option.
363
1b36b657
AA
3642015-12-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
365
366 * MAINTAINERS (Write After Approval): Add Andreas Arnez.
367
030f17b5
JB
3682015-12-06 Mike Stump <mikestump@comcast.net>
369 Joel Brobecker <brobecker@adacore.com>
370
371 * Makefile.in (TAGS): Replace i386-nat.h by x86-nat.h.
372 * x86-nat.c: Replace remaining references to i386-nat
373 by reference to x86-nat instead.
374
a5d43209
JB
3752015-12-05 Joel Brobecker <brobecker@adacore.com>
376
377 GDB 7.10.1 released.
378
974eac9d
UW
3792015-12-01 Ulrich Weigand <uweigand@de.ibm.com>
380
381 * remote.c (remote_parse_stop_reply): Avoid GCC 4.1 "operation
382 may be undefined" warning.
383
2e3b657e
UW
3842015-12-01 Ulrich Weigand <uweigand@de.ibm.com>
385
386 * remote.c (remote_newthread_step): Initialize item.name.
387 (remote_get_threads_with_qthreadinfo): Likewise.
388
f2faf941
PA
3892015-11-30 Pedro Alves <palves@redhat.com>
390
391 PR 14618
392 * NEWS (New remote packets): Mention the N stop reply.
393 * remote.c (remote_protocol_features): Add "no-resumed" entry.
394 (remote_query_supported): Report no-resumed+ support.
395 (remote_parse_stop_reply): Handle 'N'.
396 (process_stop_reply): Handle TARGET_WAITKIND_NO_RESUMED.
397 (remote_wait_as): Handle 'N' / TARGET_WAITKIND_NO_RESUMED.
398 (_initialize_remote): Register "set/show remote
399 no-resumed-stop-reply" commands.
400
f4836ba9
PA
4012015-11-30 Pedro Alves <palves@redhat.com>
402
403 PR 14618
404 * infrun.c (handle_no_resumed): New function.
405 (handle_inferior_event_1) <TARGET_WAITKIND_NO_RESUMED>: Defer to
406 handle_no_resumed.
407
65706a29
PA
4082015-11-30 Pedro Alves <palves@redhat.com>
409
410 * NEWS (New commands): Mention "set/show remote thread-events"
411 commands.
412 (New remote packets): Mention thread created/exited stop reasons
413 and QThreadEvents packet.
414 * infrun.c (disable_thread_events): New function.
415 (stop_all_threads): Disable/enable thread create/exit events.
416 Handle TARGET_WAITKIND_THREAD_EXITED.
417 (handle_inferior_event_1): Handle TARGET_WAITKIND_THREAD_CREATED
418 and TARGET_WAITKIND_THREAD_EXITED.
419 * remote.c (remove_child_of_pending_fork): Also remove threads of
420 threads that have TARGET_WAITKIND_THREAD_EXITED events.
421 (remote_parse_stop_reply): Handle "create" magic register. Handle
422 'w' stop reply.
423 (initialize_remote): Install remote_thread_events as
424 to_thread_events target hook.
425 (remote_thread_events): New function.
426 * target-delegates.c: Regenerate.
427 * target.c (target_thread_events): New function.
428 * target.h (struct target_ops) <to_thread_events>: New field.
429 (target_thread_events): Declare.
430 * target/waitstatus.c (target_waitstatus_to_string): Handle
431 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
432 * target/waitstatus.h (enum target_waitkind)
433 <TARGET_WAITKIND_THREAD_CREATED, TARGET_WAITKIND_THREAD_EXITED):
434 New values.
435
de979965
PA
4362015-11-30 Pedro Alves <palves@redhat.com>
437
438 * NEWS (New remote packets): Mention vCtrlC.
439 * remote.c (PACKET_vCtrlC): New enum value.
440 (async_remote_interrupt): Call target_interrupt instead of
441 target_stop.
442 (remote_interrupt_as): Remove 'ptid' parameter.
443 (remote_interrupt_ns): New function.
444 (remote_stop): Adjust.
445 (remote_interrupt): If the target is in non-stop mode, try
446 interrupting with vCtrlC.
447 (initialize_remote): Install set remote ctrl-c packet.
448
799a2abe
PA
4492015-11-30 Pedro Alves <palves@redhat.com>
450
451 * remote.c (struct remote_state) <remote_watch_data_address,
452 stop_reason>: Delete fields.
453 (struct private_thread_info) <stop_reason, watch_data_address>:
454 New fields.
455 (resume_clear_thread_private_info): New function.
456 (append_pending_thread_resumptions): Call it.
457 (remote_resume): Clear all threads' private info.
458 (process_stop_reply): Adjust.
459 (remote_wait_as): Don't reference remote_state's stop_reason
460 field.
461 (remote_stopped_by_sw_breakpoint)
462 (remote_stopped_by_hw_breakpoint, remote_stopped_by_watchpoint)
463 (remote_stopped_data_address): Adjust to refer get data from the
464 current thread.
465
066f6b6e
PA
4662015-11-30 Pedro Alves <palves@redhat.com>
467
468 * infcmd.c (attach_post_wait): If the target is always in non-stop
469 mode, and the UI is in all-stop mode, stop all threads and pick
470 the one with lowest number as current.
471
6efcd9a8
PA
4722015-11-30 Pedro Alves <palves@redhat.com>
473
474 * gdbthread.h (switch_to_thread_no_regs): Declare.
475 * infcmd.c (setup_inferior): New function, factored out from ...
476 (attach_command_post_wait): ... this. Rename to ...
477 (attach_post_wait): ... this. Replace parameter async_exec with
478 attach_post_wait_mode parameter. Adjust.
479 (enum attach_post_wait_mode): New enum.
480 (struct attach_command_continuation_args): Replace 'async_exec'
481 field with 'mode' field.
482 (attach_command_continuation): Adjust.
483 (attach_command): Add comment. Mark the inferior as needing
484 setup. Adjust to use enum attach_post_wait_mode.
485 (notice_new_inferior): Use switch_to_thread_no_regs. Adjust to
486 use enum attach_post_wait_mode.
487 * inferior.h (setup_inferior): Declare.
488 (struct inferior) <needs_setup>: New field.
489 * infrun.c (set_last_target_status): Make extern.
490 (stop_all_threads): Make extern. Setup inferior, if necessary.
491 * infrun.h (set_last_target_status, stop_all_threads): Declare.
492 * remote-notif.c (remote_async_get_pending_events_handler)
493 (handle_notification): Replace non_stop checks with
494 target_is_non_stop_p() checks.
495 * remote.c (remote_notice_new_inferior): Remove non_stop check.
496 (remote_update_thread_list): Replace non_stop check with
497 target_is_non_stop_p() check.
498 (print_one_stopped_thread): New function.
499 (process_initial_stop_replies): New 'from_tty' parameter.
500 "Notice" all new live inferiors after storing initial stops as
501 pending status in each corresponding thread. If all-stop, stop
502 all threads, try picking a signalled thread as current, and print
503 the status of that one thread. Record the last target status.
504 (remote_start_remote): Replace non_stop checks with
505 target_is_non_stop_p() checks. Don't query for the remote current
506 thread of use qOffsets here. Pass from_tty to
507 process_initial_stop_replies.
508 (extended_remote_attach): Replace non_stop checks with
509 target_is_non_stop_p() checks.
510 (extended_remote_post_attach): Send qOffsets here.
511 (remote_vcont_resume, remote_resume, remote_stop)
512 (remote_interrupt, remote_parse_stop_reply, remote_wait): Replace
513 non_stop checks with target_is_non_stop_p() checks.
514 (remote_async): If target is non-stop, mark/clear the pending
515 events token.
516 * thread.c (switch_to_thread_no_regs): New function.
517
f015c27b
PA
5182015-11-30 Pedro Alves <palves@redhat.com>
519
520 * gdb.mi/mi-nonstop.exp: Append "set non-stop on" to GDBFLAGS
521 instead of issuing "-gdb-set non-stop 1" after starting gdb.
522 Use mi_is_target_remote instead of checking "is_remote target".
523 * lib/gdb.exp (gdb_is_target_remote): Rename to ...
524 (gdb_is_target_remote_prompt): ... this, and add 'prompt_regexp'
525 parameter.
526 (gdb_is_target_remote): Reimplement.
527 * lib/mi-support.exp (mi_is_target_remote): New procedure.
528
16807a48
PA
5292014-11-28 Pedro Alves <palves@redhat.com>
530
531 * cp-name-parser.y (conversion_op): Use
532 DEMANGLE_COMPONENT_CONVERSION instead of DEMANGLE_COMPONENT_CAST.
533
e1961661
SM
5342015-11-27 Simon Marchi <simon.marchi@ericsson.com>
535
536 * remote.c (start_thread): Add cast.
537
805035d7
YQ
5382015-11-27 Yao Qi <yao.qi@linaro.org>
539
540 * nat/aarch64-linux-hw-point.c (aarch64_dr_state_remove_one_point):
541 Don't assert on alignment.
542 (aarch64_handle_breakpoint): Only check alignment when IS_INSERT
543 is true.
544
cd635f74
YQ
5452015-11-27 Yao Qi <yao.qi@linaro.org>
546
547 * aarch64-tdep.c (is_hfa): Rename to ...
548 (is_hfa_or_hva): ... this. Handle vector type. All callers
549 updated.
550 (aarch64_extract_return_value): Update debugging message.
551 (aarch64_store_return_value): Likewise.
552 (aarch64_return_in_memory): Update comments.
553
238f2452
YQ
5542015-11-27 Yao Qi <yao.qi@linaro.org>
555
556 * aarch64-tdep.c (aarch64_type_align): For vector type, return
557 its length, but with the maximum of 16 bytes.
558 (is_hfa): Return zero for vector type.
559 (aarch64_push_dummy_call): Handle short vectors.
560 (aarch64_extract_return_value): Likewise.
561 (aarch64_store_return_value): Likewise.
562
79efa585
SM
5632015-11-26 Daniel Colascione <dancol@dancol.org>
5642015-11-26 Simon Marchi <simon.marchi@ericsson.com>
565
566 * linux-nat.c (linux_nat_thread_name): Replace implementation by call
567 to linux_proc_tid_get_name.
568 * nat/linux-procfs.c (linux_proc_tid_get_name): New function,
569 implementation inspired by linux_nat_thread_name.
570 * nat/linux-procfs.h (linux_proc_tid_get_name): New declaration.
571 * remote.c (struct private_thread_info) <name>: New field.
572 (free_private_thread_info): Free name field.
573 (remote_thread_name): New function.
574 (thread_item_t) <name>: New field.
575 (clear_threads_listing_context): Free name field.
576 (start_thread): Get name xml attribute.
577 (thread_attributes): Add "name" attribute.
578 (remote_update_thread_list): Copy name field.
579 (init_remote_ops): Assign remote_thread_name callback.
580 * target.h (target_thread_name): Update comment.
581 * NEWS: Mention remote thread name support.
582
73ede765
SM
5832015-11-26 Simon Marchi <simon.marchi@ericsson.com>
584
585 * linux-nat.c (linux_nat_thread_name): Constify return value.
586 * target.h (struct target_ops) <to_thread_name>: Likewise.
587 (target_thread_name): Likewise.
588 * target.c (target_thread_name): Likewise.
589 * target-delegates.c (debug_thread_name): Regenerate.
590 * python/py-infthread.c (thpy_get_name): Constify local variables.
591 * thread.c (print_thread_info): Likewise.
592 (thread_find_command): Likewise.
593
46a3515b
MM
5942015-11-26 Markus Metzger <markus.t.metzger@intel.com>
595
596 PR 19297
597 * btrace.c (btrace_enable): Check whether HAVE_LIBIPT is defined.
598
be81798b
PA
5992015-11-24 Pedro Alves <palves@redhat.com>
600
601 * NEWS: Mention that a few "info" commands now list the
602 corresponding items in ascending ID order.
603
62147a22
PA
6042015-11-24 Pedro Alves <palves@redhat.com>
605
606 PR 17539
607 * printcmd.c (display_command): Append new display at the end of
608 the list.
609
2f341b6e
PA
6102015-11-24 Pedro Alves <palves@redhat.com>
611
612 PR 17539
613 * printcmd.c (display_command): Append new display at the end of
614 the list.
615
7e0aa6aa
PA
6162015-11-24 Pedro Alves <palves@redhat.com>
617
618 PR 17539
619 * inferior.c (add_inferior_silent): Append the new inferior to the
620 end of the list.
621 * progspace.c (add_program_space): Append the new pspace to the
622 end of the list.
623 * thread.c (new_thread): Append the new thread to the end of the
624 list.
625
050c224b
PA
6262015-11-24 Pedro Alves <palves@redhat.com>
627
628 * linux-tdep.c (find_stop_signal): Delete.
629 (struct linux_corefile_thread_data) <pid>: Remove field.
630 (linux_corefile_thread_callback): Rename to ...
631 (linux_corefile_thread): ... this. Now takes a struct
632 linux_corefile_thread_data pointer rather than a void pointer.
633 Remove thread state and thread pid checks.
634 (linux_make_corefile_notes): Prefer dumping the signalled thread
635 first. Use ALL_NON_EXITED_THREADS instead of
636 iterate_over_threads.
637
980facc3 6382015-11-23 Par Olsson <par.olsson@windriver.com>
c93e8391
SM
639
640 * breakpoint.c (tracepoint_print_recreate): Fix logic error
641 if -> else if.
642
5506f9f6
KB
6432015-11-23 Kevin Buettner <kevinb@redhat.com>
644
645 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Scan backwards
646 over all zero-sized symbols.
647
16c3b12f
JB
6482015-11-23 Joel Brobecker <brobecker@adacore.com>
649
650 * stack.c (print_frame_local_vars): Temporarily set the selected
651 frame to FRAME while printing the frame's local variables.
652
a6a20ad7
JB
6532015-11-23 Joel Brobecker <brobecker@adacore.com>
654
655 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue):
656 Increment PC in while loop skipping "pop reg" instructions.
657
416dc9c6
JB
6582015-11-23 Joel Brobecker <brobecker@adacore.com>
659
660 * arm-tdep.c (arm_exidx_unwind_sniffer): Do not check for a frame
661 stuck on a system call if the given frame is the innermost frame.
662
155bfbd3
JB
6632015-11-23 Joel Brobecker <brobecker@adacore.com>
664
665 * dwarf2read.c (read_structure_type): Set the type's length
666 to zero if it has a DW_AT_byte_size attribute which is not
667 a constant.
668
aa14fb50
TG
6692015-11-23 Tristan Gingold <gingold@adacore.com>
670
671 * darwin-nat.c (darwin_ptrace): Avoid a cast.
672 (darwin_resume_thread): Ditto. And always set or reset
673 single step.
674
ad2073b0
TG
6752015-11-23 Tristan Gingold <gingold@adacore.com>
676
677 * darwin-nat.c (darwin_read_dyld_info): Write address in
678 big-endian order.
679 * solib-darwin.c (darwin_validate_exec_header): New function,
680 extracted from...
681 (darwin_read_exec_load_addr_from_dyld): ...here.
682 (darwin_read_exec_load_addr_at_init): New function.
683 (darwin_solib_read_all_image_info_addr): Adjust after
684 darwin_read_dyld_info change.
685 (darwin_solib_create_inferior_hook): Support PIE.
686
3eb831e0
TG
6872015-11-23 Tristan Gingold <gingold@adacore.com>
688
689 * darwin-nat.c (darwin_ptrace): Add a cast to fix warning.
690 (darwin_resume, cancel_breakpoint, _initialize_darwin_inferior):
691 Likewise.
692 (darwin_read_write_inferior): Rewrite using mach_vm_read_overwrite.
693
e084c964
DB
6942015-11-19 Don Breazeal <donb@codesourcery.com>
695
696 * target.c (read_memory_robust): Call read_whatever_is_readable
697 with arguments in the correct order.
698
b35d5edb
PA
6992015-11-19 Pedro Alves <palves@redhat.com>
700
701 * remote.c (remote_query_supported): Send the "xmlRegisters="
702 feature last.
703
bb82e934
SM
7042015-11-19 Simon Marchi <simon.marchi@ericsson.com>
705
706 * nat/aarch64-linux-hw-point.c (aarch64_linux_set_debug_regs): Change
707 form of iov_len computation.
708
9a084706
PA
7092015-11-19 Pedro Alves <palves@redhat.com>
710
711 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
712 mode.
713 * configure: Regenerate.
714
dad44a1f
PA
7152015-11-19 Pedro Alves <palves@redhat.com>
716
717 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Remove -fpermissive.
718 * configure: Regenerate.
719
c6d81124
PA
7202015-11-19 Pedro Alves <palves@redhat.com>
721
722 * breakpoint.c (software_watchpoint_add_no_memory_location)
723 (is_no_memory_software_watchpoint): New functions.
724 (update_watchpoint): Use
725 software_watchpoint_add_memoryless_location.
726 (breakpoint_address_bits): Use is_no_memory_software_watchpoint.
727
4d193179
SM
7282015-11-19 Simon Marchi <simon.marchi@ericsson.com>
729 Pedro Alves <palves@redhat.com>
730
731 * s390-linux-tdep.c (s390_canonicalize_syscall): Add casts and
732 intermediate 'int' variable.
733
f8708a14
PA
7342015-11-19 Pedro Alves <palves@redhat.com>
735
736 * linux-thread-db.c (try_thread_db_load_1): Add cast.
737
915ef8b1
PA
7382015-11-19 Pedro Alves <palves@redhat.com>
739
740 * remote.c (remote_unpush_target): Use
741 pop_all_targets_at_and_above instead of pop_all_targets_above.
742 * target.c (unpush_target_and_assert): New function, factored out
743 from ...
744 (pop_all_targets_above): ... here.
745 (pop_all_targets_at_and_above): New function.
746 * target.h (pop_all_targets_at_and_above): Declare.
747
7cc3f8e2
SM
7482015-11-18 Simon Marchi <simon.marchi@ericsson.com>
749
750 * valops.c (value_string): Constify 'ptr' parameter.
751 * value.h (value_string): Constify 'ptr' parameter.
752
79f33898
SM
7532015-11-18 Simon Marchi <simon.marchi@ericsson.com>
754 Pedro Alves <palves@redhat.com>
755
756 * break-catch-sig.c (signal_catchpoint_print_one): Add cast.
757 * c-exp.y (parse_string_or_char, yylex): Add casts.
758 * c-lang.c (evaluate_subexp_c): Add casts.
759 * d-exp.y (parse_string_or_char, yylex): Add casts.
760 * go-exp.y (parse_string_or_char, build_packaged_name): Add casts.
761 * p-valprint.c (pascal_object_print_value_fields): Add casts.
762 * valprint.c (generic_emit_char, generic_printstr): Add casts.
763
e3a3797e
SM
7642015-11-18 Simon Marchi <simon.marchi@ericsson.com>
765
766 * valops.c (value_cstring): Constify 'ptr' parameter.
767 * value.h (value_cstring): Constify 'ptr' parameter.
768
0735fddd
YQ
7692015-11-18 Yao Qi <yao.qi@linaro.org>
770
771 * aarch64-tdep.c (pass_in_v): Add argument len. Add local array
772 reg. Callers updated.
773
1946c4cc
YQ
7742015-11-17 Yao Qi <yao.qi@linaro.org>
775
776 * infrun.c (resume): Check control.trap_expected only
777 when deciding the set of threads to resume.
778
b6b80672
PA
7792015-11-17 Pedro Alves <palves@redhat.com>
780
781 * cp-namespace.c (cp_lookup_bare_symbol)
782 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
783 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
784 (cp_lookup_nested_symbol): Use null_block_symbol.
785 * d-namespace.c (d_lookup_symbol, d_lookup_nested_symbol)
786 (d_lookup_symbol_imports, d_lookup_symbol_module): Use
787 null_block_symbol.
788 * symtab.c (null_block_symbol): New global.
789 * symtab.h (null_block_symbol): Declare.
790
eec461d0
PA
7912015-11-17 Pedro Alves <palves@redhat.com>
792
793 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
794 (GDB_XCPT_RAW_TRY, GDB_XCPT): Define.
795 Replace __cplusplus checks with GDB_XCPT checks throughout.
796 * common/common-exceptions.c: Replace __cplusplus checks with
797 GDB_XCPT checks throughout.
798
91ee7171
PA
7992015-11-17 Pedro Alves <palves@redhat.com>
800
801 * common/common-defs.h (ATTRIBUTE_PRINTF): Redefine in terms of
802 _GL_ATTRIBUTE_FORMAT_PRINTF after including ansidecl.h.
803
e063da67
PA
8042015-11-17 Pedro Alves <palves@redhat.com>
805
806 * common/common-defs.h (__STDC_CONSTANT_MACROS)
807 (__STDC_LIMIT_MACROS): Define before including stdint.h.
808
95824559
PA
8092015-11-17 Pedro Alves <palves@redhat.com>
810
811 * windows-nat.c (handle_exception): Return 0 for first chance
812 exceptions.
813 (get_windows_debug_event): Adjust.
814
56db1d67
PA
8152015-11-17 Pedro Alves <palves@redhat.com>
816
817 * windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as
818 signal number for terminator.
819
69e976f8
PA
8202015-11-17 Pedro Alves <palves@redhat.com>
821
822 * ser-tcp.c (net_open) : Cast getsockopt argument to char *
823 instead of void *. Update comment.
824 (net_read_prim): Cast recv argument to char * instead of void *.
825 (net_write_prim): Cast send argument to char *. Add comment.
826
c3de4d92
PA
8272015-11-17 Pedro Alves <palves@redhat.com>
828
829 * win32-i386-low.c (update_debug_registers_callback)
830 (win32_get_current_dr): Add cast.
831 * win32-low.c (thread_rec, delete_thread_info)
832 (continue_one_thread): Add casts.
833 (strwinerror): Cast FormatMessage argument to LPTSTR instead of
834 LPVOID.
835 (win32_create_inferior, suspend_one_thread): Add casts.
836
43499ea3
PA
8372015-11-17 Pedro Alves <palves@redhat.com>
838
839 * windows-nat.c (AdjustTokenPrivileges_ftype)
840 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
841 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
842 (GetCurrentConsoleFont_ftype, GetModuleInformation_ftype)
843 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
844 (GetConsoleFontSize_ftype): New typedefs.
845 (AdjustTokenPrivileges, DebugActiveProcessStop)
846 (DebugBreakProcess, DebugSetProcessKillOnExit, EnumProcessModules)
847 (GetConsoleFontSize, GetCurrentConsoleFont, GetModuleInformation)
848 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize):
849 Adjust.
850 (GetModuleFileNameEx_ftype): New typedef.
851 (GetModuleFileNameEx): Use it.
852 (_initialize_loadable): Define GPA macro and use it.
853
2986367f
PA
8542015-11-17 Pedro Alves <palves@redhat.com>
855
856 * gdb-dlfcn.c (gdb_dlsym, gdb_dlclose) [__MINGW32__]: Add casts to
857 HMODULE.
858
0ae1c716
PA
8592015-11-17 Pedro Alves <palves@redhat.com>
860
861 * exec.c (exec_file_attach, symfile_bfd_open) [__GO32__ || _WIN32
862 || __CYGWIN__]: Add casts.
863 * utils.c (gdb_filename_fnmatch): Add cast.
864 * windows-nat.c (windows_create_inferior): Add cast.
865
cd78b7a1
PA
8662015-11-17 Pedro Alves <palves@redhat.com>
867
868 * ser-mingw.c (CancelIo_ftype): New typedef.
869 (CancelIo): Use CancelIo_ftype.
870 (ser_windows_close, ser_windows_wait_handle)
871 (ser_windows_read_prim, stop_select_thread)
872 (console_select_thread, pipe_select_thread, file_select_thread)
873 (ser_console_wait_handle, ser_console_done_wait_handle)
874 (ser_console_close, cleanup_pipe_state, pipe_windows_close)
875 (pipe_windows_write, pipe_wait_handle, pipe_done_wait_handle)
876 (net_windows_socket_check_pending, net_windows_select_thread)
877 (net_windows_wait_handle, net_windows_done_wait_handle)
878 (net_windows_close): Add casts.
879 (_initialize_ser_windows): Cast to CancelIo_ftype* instead of
880 void*.
881
0c801b96
SM
8822015-11-17 Simon Marchi <simon.marchi@ericsson.com>
883
884 * c-exp.y (exp): Adjust, change enum c_string_type to
885 c_string_type.
886 (parse_string_or_char): Likewise.
887 * c-lang.c (charset_for_string_type): Likewise.
888 (classify_type): Likewise.
889 (c_printchar): Likewise.
890 (c_printstr): Likewise.
891 (evaluate_subexp_c): Likewise. And change cast to enum
892 c_string_type_values.
893 * c-lang.h: Include "common/enum_flags.h".
894 (enum c_string_type): Rename to...
895 (enum c_string_type_values): ...this.
896 (c_string_type): Define new enum flags type.
897
8d297bbf
PA
8982015-11-17 Pedro Alves <palves@redhat.com>
899
900 * btrace.h: Include common/enum-flags.h.
901 (btrace_insn_flags): Define.
902 (struct btrace_insn) <flags>: Change type.
903 (btrace_function_flags): Define.
904 (struct btrace_function) <flags>: Change type.
905 (btrace_thread_flags): Define.
906 (struct btrace_thread_info) <flags>: Change type.
907 * c-exp.y (token_flags): Rename to ...
908 (token_flag): ... this.
909 (token_flags): Define.
910 (struct token) <flags>: Change type.
911 * common/enum-flags.h: New file.
912 * compile/compile-c-types.c (convert_qualified): Change type of
913 'quals' local.
914 * compile/compile-internal.h: Include "common/enum-flags.h".
915 (gcc_qualifiers_flags): Define.
916 * completer.c (enum reg_completer_targets): Rename to ...
917 (enum reg_completer_target): ... this.
918 (reg_completer_targets): Define.
919 (reg_or_group_completer_1): Change type of 'targets' parameter.
920 * disasm.c (do_mixed_source_and_assembly_deprecated): Change type
921 of 'psl_flags' local.
922 (do_mixed_source_and_assembly): Change type of 'psl_flags' local.
923 * infrun.c: Include "common/enum-flags.h".
924 (enum step_over_what): Rename to ...
925 (enum step_over_what_flag): ... this.
926 (step_over_what): Change type.
927 (start_step_over): Change type of 'step_what' local.
928 (thread_still_needs_step_over): Now returns a step_over_what.
929 Adjust.
930 (keep_going_pass_signal): Change type of 'step_what' local.
931 * linux-tdep.c: Include "common/enum-flags.h".
932 (enum filterflags): Rename to ...
933 (enum filter_flag): ... this.
934 (filter_flags): Define.
935 (dump_mapping_p): Change type of 'filterflags' parameter.
936 (linux_find_memory_regions_full): Change type of 'filterflags'
937 local.
938 (linux_find_memory_regions_full): Pass the address of an unsigned
939 int to sscanf instead of the address of an enum.
940 * record-btrace.c (btrace_print_lines): Change type of local
941 'psl_flags'.
942 (btrace_call_history): Replace 'flags' parameter
943 with 'int_flags' parameter. Adjust.
944 (record_btrace_call_history, record_btrace_call_history_range)
945 (record_btrace_call_history_from): Rename 'flags' parameter to
946 'int_flags'. Use record_print_flags.
947 * record.h: Include "common/enum-flags.h".
948 (record_print_flags): Define.
949 * source.c: Include "common/enum-flags.h".
950 (print_source_lines_base, print_source_lines): Change type of
951 flags parameter.
952 * symtab.h: Include "common/enum-flags.h".
953 (enum print_source_lines_flags): Rename to ...
954 (enum print_source_lines_flag): ... this.
955 (print_source_lines_flags): Define.
956 (print_source_lines): Change prototype.
957
9a4073e2
PA
9582015-11-17 Pedro Alves <palves@redhat.com>
959
960 * guile/scm-disasm.c (gdbscm_disasm_read_memory): Return -1 on
961 error instead of TARGET_XFER_E_IO.
962 (gdbscm_disasm_memory_error): Always pass TARGET_XFER_E_IO to
963 memory_error.
964
66c6502d
DV
9652015-11-17 Dominik Vogt <vogt@linux.vnet.ibm.com>
966
967 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
968 (prologue_inst_adjust_sp, hppa_frame_cache): Fix left shift of negative
969 value.
970 * dwarf2read.c (read_subrange_type): Likewise.
971
db3516bb
YQ
9722015-11-16 Yao Qi <yao.qi@linaro.org>
973
974 * aarch64-tdep.c (aarch64_extract_return_value): Change array
975 buf's length to V_REGISTER_SIZE.
976
8e80f9d1
YQ
9772015-11-16 Yao Qi <yao.qi@linaro.org>
978
979 * aarch64-tdep.c (pass_in_x_or_stack): Change argument type
980 from bfd_byte * to value *. Caller updated.
981 (pass_in_x): Likewise.
982 (pass_in_v_or_stack): Likewise.
983 (pass_on_stack): Likewise.
984
0d1993c0
YQ
9852015-11-16 Yao Qi <yao.qi@linaro.org>
986
987 * aarch64-tdep.c (aarch64_push_dummy_call): Call value_contents
988 instead of value_contents_writeable.
989 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
990
ef9bd0b8
YQ
9912015-11-16 Yao Qi <yao.qi@linaro.org>
992
993 * arm-tdep.c (arm_push_dummy_call): New array buf. Store regval
994 to buf. Pass buf instead of val to push_stack_item.
995
c4312b19
YQ
9962015-11-13 Yao Qi <yao.qi@linaro.org>
997
998 PR tdep/19051
999 * arm-tdep.c (arm_type_align): Return the right alignment
1000 value for vector.
1001 (arm_vfp_cprc_sub_candidate): Return true for 64-bit and
1002 128-bit vector types.
1003 (arm_return_in_memory): Handel vector type.
1004
b13c8ab2
YQ
10052015-11-13 Yao Qi <yao.qi@linaro.org>
1006
1007 * arm-tdep.c (arm_return_in_memory): Rewrite it.
1008 (arm_return_value): Call arm_return_in_memory for
1009 TYPE_CODE_COMPLEX.
1010
df3b6708
YQ
10112015-11-12 Yao Qi <yao.qi@linaro.org>
1012
1013 * arm-tdep.c (push_stack_item): Change contents type to
1014 const gdb_byte *.
1015
4397c913
SM
10162015-11-11 Simon Marchi <simon.marchi@ericsson.com>
1017
1018 * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
1019 cast to PTRACE_TYPE_RET *.
1020 (inf_ptrace_store_register): Likewise.
1021
5f515954
AB
10222015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating
1025 info sub-commands.
1026 * gnu-nat.c (add_task_commands): Likewise.
1027 * macrocmd.c (_initialize_macrocmd): Likewise.
1028
f3575e08
AB
10292015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1030
1031 * cli/cli-decode.c (add_info): Switch to class_info.
1032
dddc0e16
JB
10332015-11-09 Joel Brobecker <brobecker@adacore.com>
1034
1035 * ada-lang.c (ada_is_wrapper_field): Add special handling
1036 for fields called "RETVAL".
1037
a5eda10c
YQ
10382015-11-09 Yao Qi <yao.qi@linaro.org>
1039
1040 * arm-tdep.c (arm_exidx_new_objfile): Use
1041 ELF_STRING_ARM_unwind.
1042
c0987663
YQ
10432015-11-09 Yao Qi <yao.qi@linaro.org>
1044
1045 * infrun.c (displaced_step_in_progress_thread): New function.
1046 (handle_inferior_event_1): Call it.
1047
c86a40c6
YQ
10482015-11-05 Yao Qi <yao.qi@linaro.org>
1049
1050 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
1051 aarch64_decode_insn and decode instruction by aarch64_inst.
1052
d9ebcbce
YQ
10532015-11-05 Yao Qi <yao.qi@linaro.org>
1054
1055 * aarch64-tdep.c (extract_signed_bitfield): Remove.
1056 (decode_masked_match): Remove.
1057 (aarch64_decode_add_sub_imm): Remove.
1058 (aarch64_decode_br): Remove.
1059 (aarch64_decode_eret): Remove.
1060 (aarch64_decode_movz): Remove.
1061 (aarch64_decode_orr_shifted_register_x): Remove.
1062 (aarch64_decode_ret): Remove.
1063 (aarch64_decode_stp_offset): Remove.
1064 (aarch64_decode_stur): Remove.
1065 (aarch64_analyze_prologue): Call aarch64_decode_insn
1066 and use aarch64_inst to decode instructions.
1067
93d96012
YQ
10682015-11-05 Yao Qi <yao.qi@linaro.org>
1069
1070 * aarch64-tdep.c (aarch64_decode_stp_offset): New argument
1071 wback.
1072 (aarch64_decode_stp_offset_wb): Removed.
1073 (aarch64_analyze_prologue): Don't use
1074 aarch64_decode_stp_offset_wb.
1075
6df55226
MK
10762015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
1077
1078 PR/18376
1079 * gdb/s390-linux-tdep.c (s390_is_partial_instruction): New function.
1080 (s390_software_single_step): New function.
1081 (s390_displaced_step_hw_singlestep): New function.
1082 (s390_gdbarch_init): Fill gdbarch slots with the above.
1083
566c56c9
MK
10842015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
1085
1086 PR/18376
1087 * gdb/configure.tgt: Add linux-record.o to s390*-linux.
1088 * gdb/s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
1089 (s390_linux_record_tdep): New static global variable.
1090 (s390x_linux_record_tdep): New static global variable.
1091 (s390_all_but_pc_registers_record): New function.
1092 (s390_canonicalize_syscall): New function.
1093 (s390_linux_syscall_record): New function.
1094 (s390_linux_record_signal): New function.
1095 (s390_record_calc_disp_common): New function.
1096 (s390_record_calc_disp): New function.
1097 (s390_record_calc_disp_vsce): New function.
1098 (s390_record_calc_rl): New function.
1099 (s390_record_gpr_g): New function.
1100 (s390_record_gpr_h): New function.
1101 (s390_record_vr): New function.
1102 (s390_process_record): New function.
1103 (s390_init_linux_record_tdep): New function.
1104 (s390_gdbarch_init): Fill record function slots.
1105
394816ee
MK
11062015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
1107
1108 * record-full.c (record_full_exec_insn): Use xmalloc for temporary
1109 memory storage.
1110
0c532a29
MM
11112015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1112
1113 * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
1114 instead of DISASSEMBLY_SOURCE_DEPRECATED. Also accept /s.
1115 (_initialize_record): Document the /s modifier.
1116 * NEWS: Announce record instruction-history's new /s modifier.
1117
f94cc897
MM
11182015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1119
1120 * record-btrace.c (struct btrace_line_range): New.
1121 (btrace_mk_line_range, btrace_line_range_add)
1122 (btrace_line_range_is_empty, btrace_line_range_contains_range)
1123 (btrace_find_line_range, btrace_print_lines): New.
1124 (btrace_insn_history): Add source interleaving algorithm.
1125
a50a4026
MM
11262015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1127
1128 * disasm.h (DISASSEMBLY_SPECULATION): New.
1129 (struct disasm_insn): New.
1130 (gdb_pretty_print_insn): New.
1131 * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
1132 Update users. Print instruction number and indicate speculative
1133 execution, if requested.
1134
af70908d
MM
11352015-11-04 Markus Metzger <markus.t.metzger@intel.com>
1136
1137 * disasm.c (dump_insns): Split into this and ...
1138 (gdb_pretty_print_insn): ... this.
1139
1c215b97
SM
11402015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1141
1142 * xtensa-linux-nat.c (supply_gregset_reg): Make static.
1143 (xtensa_linux_fetch_inferior_registers): Likewise.
1144 (xtensa_linux_store_inferior_registers): Likewise.
1145
f844cf0e
SM
11462015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1147
1148 * arm-linux-nat.c (arm_linux_read_description): Add cast.
1149
f4b0a671
SM
11502015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1151
1152 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
1153 type of rw to enum target_hw_bp_type.
1154 (ppc_linux_remove_mask_watchpoint): Likewise.
1155 * target.c (target_insert_mask_watchpoint): Likewise.
1156 (target_remove_mask_watchpoint): Likewise.
1157 * target.h (target_insert_mask_watchpoint): Likewise.
1158 (target_remove_mask_watchpoint): Likewise.
1159 (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
1160 (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
1161 * target-delegates.c: Regenerate.
1162
653090d3
SM
11632015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
1164
1165 * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
1166 (get_sim_inferior_data): Likewise.
1167 (sim_inferior_data_cleanup): Likewise.
1168 (gdbsim_close_inferior): Likewise.
1169 (gdbsim_resume_inferior): Likewise.
1170 (gdbsim_wait): Likewise.
1171 (simulator_command): Likewise.
1172 (sim_command_completer): Likewise.
1173
b9559b8b
MK
11742015-11-03 Marcin Kościelnicki <koriakin@0x04.net>
1175
1176 * MAINTAINERS (Write After Approval): Add Marcin Kościelnicki.
1177
d35ae833
PA
11782015-10-30 Pedro Alves <palves@redhat.com>
1179
1180 * breakpoint.c (breakpoint_in_range_p)
1181 (breakpoint_location_address_range_overlap): New functions.
1182 * breakpoint.h (breakpoint_in_range_p): New declaration.
1183 * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
1184 in the scratch pad range, don't displaced step.
1185
10268a4c
MK
11862015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1187
1188 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
1189 size_stack_t, size_size_t, size_iovec.
1190
d9b19c49
MK
11912015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1192
1193 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
1194 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
1195 (amd64_x32_linux_init_abi): Fix size_termios.
1196
c28ebe25
MK
11972015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1198
1199 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
1200
ff83a547
MK
12012015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1202
1203 * linux-record.c (record_linux_system_call): Fix old_select.
1204
d2de23ad
MK
12052015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1206
1207 * linux-record.c (record_linux_system_call): Fix newstatat.
1208
cb658d21
MK
12092015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1210
1211 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
1212
b80d067f
MK
12132015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1214
1215 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
1216 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
1217 (amd64_x32_linux_init_abi): Add size_time_t.
1218 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
1219 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
1220 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
1221 handling.
1222 * linux-record.h (struct linux_record_tdep): Add size_time_t.
1223 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
1224
933c5a62
MK
12252015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1226
1227 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
1228
72aded86
MK
12292015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1230
1231 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
1232 size_dirent{,64}, add size_old_dirent.
1233 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
1234 add size_old_dirent.
1235 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
1236 size_old_dirent.
1237 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
1238 add size_old_dirent.
1239 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
1240 add size_old_dirent.
1241 * linux-record.c (record_linux_system_call): Fix handling of readdir
1242 and getdents{,64}.
1243 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
1244 add size_old_dirent.
1245 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
1246 size_dirent{,64}, add size_old_dirent.
1247
7571f7f2
MK
12482015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1249
1250 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
1251 size_sigset_t, size_old_sigaction, size_old_sigset_t.
1252 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
1253 size_sigset_t, size_old_sigaction, size_old_sigset_t.
1254 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
1255 size_old_sigaction, size_old_sigset_t.
1256 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
1257 size_old_sigaction, size_old_sigset_t.
1258 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
1259 size_old_sigaction, size_old_sigset_t.
1260 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
1261 size_sigset_t, size_old_sigaction, size_old_sigset_t.
1262
d625f9a9
MK
12632015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1264
1265 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
1266 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
1267
aefb52a6
MK
12682015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
1269
1270 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
1271 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
1272 (amd64_x32_linux_init_abi): Remove size_siginfo.
1273 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
1274 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
1275 * linux-record.c (record_linux_system_call): Change size_siginfo
1276 to size_siginfo_t.
1277 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
1278 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
1279
d2242e34
PA
12802015-10-29 Pedro Alves <palves@redhat.com>
1281
1282 * mdebugread.c (add_data_symbol): New function, factored out from
1283 ...
1284 (parse_symbol): ... here. Delete 'theclass' local.
1285
cb0a2700
SM
12862015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1287
1288 * jit.c (jit_target_read_impl): Add cast.
1289
15cf126c
SM
12902015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1291
1292 * jit.c (jit_reader_load): Add cast.
1293
b4069958
SM
12942015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1295
1296 * dwarf2read.c (partial_die_full_name): Add cast.
1297
7535d5ed
PA
12982015-10-29 Pedro Alves <palves@redhat.com>
1299
1300 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
1301
fa4c39cb
PA
13022015-10-29 Pedro Alves <palves@redhat.com>
1303
1304 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
1305
e681cf3f
EZ
13062015-10-29 Eli Zaretskii <eliz@gnu.org>
1307
1308 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
1309 in the environment.
1310
ebf05345
PA
13112015-10-29 Pedro Alves <palves@redhat.com>
1312
1313 * gnu-v2-abi.c (gnuv2_is_destructor_name)
1314 (gnuv2_is_constructor_name): Add casts.
1315
44a8b4df
PA
13162015-10-29 Pedro Alves <palves@redhat.com>
1317
1318 * common/common-exceptions.c (exception_none): Add cast.
1319
e3bdafe2
PA
13202015-10-29 Pedro Alves <palves@redhat.com>
1321
1322 * compile/compile-c-types.c (struct type_map_instance)
1323 <gcc_type>: Rename to gcc_type_handle.
1324 (insert_type, convert_type): Adjust.
1325
9c6595ab
PA
13262015-10-29 Pedro Alves <palves@redhat.com>
1327
1328 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
1329 assume that "break" breaks out of a TRY/CATCH.
1330 * python/py-framefilter.c (py_print_single_arg): Don't assume
1331 "continue" breaks out of a TRY/CATCH.
1332 * python/py-value.c (valpy_binop_throw): New function, factored
1333 out from ...
1334 (valpy_binop): ... this.
1335 (valpy_richcompare_throw): New function, factored
1336 out from ...
1337 (valpy_richcompare): ... this.
1338 * solib.c (solib_read_symbols): Don't assume "break" breaks out
1339 of a TRY/CATCH.
1340 * common/common-exceptions.h [USE_RAW_CXX_TRY]
1341 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
1342
93084fcd
SD
13432015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
1344
1345 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
1346 as move along with [d]addu.
1347
43cdf5ae
YQ
13482015-10-28 Yao Qi <yao.qi@linaro.org>
1349
1350 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
1351 aarch64_decode_insn.
1352
b80c3053
PA
13532015-10-27 Pedro Alves <palves@redhat.com>
1354
1355 * common/print-utils.c (host_address_to_string): Rename to ...
1356 (host_address_to_string_1): ... this.
1357 * common/print-utils.h (host_address_to_string): Reimplement as
1358 wrapper around host_address_to_string_1.
1359 * utils.c (gdb_print_host_address): Rename to ...
1360 (gdb_print_host_address_1): ... this.
1361 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
1362 around host_address_to_string_1.
1363
d09f2c3f
PA
13642015-10-27 Pedro Alves <palves@redhat.com>
1365
1366 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
1367 memory_error. Rename local 'status' to 'res'.
1368 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
1369 memory_error.
1370 * corefile.c (read_stack, read_code, write_memory): Always pass
1371 TARGET_XFER_E_IO to memory_error.
1372 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
1373 memory_error. Rename parameter 'status' to 'err'.
1374 (dump_insns): Rename local 'status' to 'err'.
1375 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
1376 to 'errp'. Rename local 'status' to 'err'. Always pass
1377 TARGET_XFER_E_IO to memory_error.
1378 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
1379 * target.c (target_read_memory, target_read_raw_memory)
1380 (target_read_stack, target_read_code, target_write_memory)
1381 (target_write_raw_memory): Return -1 on error instead of
1382 TARGET_XFER_E_IO.
1383 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
1384 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
1385
c5192092
SM
13862015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * guile/guile-internal.h (gdbscm_with_guile): Change return
1389 types to const char *.
1390 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
1391 (struct c_data) <func>: Likewise.
1392 (struct c_data) <result>: Change type to const char *.
1393 (scscm_eval_scheme_string): Change return type to
1394 const char *.
1395 (scscm_source_scheme_script): Likewise.
1396 (gdbscm_safe_eval_string): Change type of result variable to
1397 const char * and remove cast.
1398 (gdbscm_safe_source_script): Likewise.
1399 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
1400 Change return type to const char *.
1401 (gdbscm_disasm_read_memory): Change type of status to
1402 const char *.
1403
79b289e2
PA
14042015-10-27 Pedro Alves <palves@redhat.com>
1405
1406 * source.c (openp): New local 'last_errno'. Use it to
1407 save/restore errno.
1408
709b5518
PA
14092015-10-27 Pedro Alves <palves@redhat.com>
1410
1411 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
1412
e0d13cbd
SM
14132015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1414
1415 * ctf.c (SET_ENUM_FIELD): New macro.
1416 (ctf_read_status): Use it.
1417 (ctf_read_tp): Use it.
1418
c6486df5
SM
14192015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1420
1421 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
1422 scm_t_dynwind_flags casts.
1423 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1424 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
1425 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
1426
70b8286a
SM
14272015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1428
1429 * ax.h (ax_raw_byte): New declaration.
1430 * ax-general.c (ax_raw_byte): New function.
1431 (ax_simple): Use ax_raw_byte.
1432 * ax-gdb.c (gen_printf): Likewise.
1433
a480de35
SM
14342015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1435
1436 * ada-lang.h (GROW_VECT): Add cast.
1437
a04a15f5
DE
14382015-10-26 Doug Evans <xdje42@gmail.com>
1439
1440 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
1441
d7f3ff3e
SM
14422015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1443
1444 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
1445 pointer.
1446 (simple_search_memory): Cast return of memmem.
1447
bf6778da
SM
14482015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1449
1450 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
1451
c9244484
SM
14522015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1453
1454 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
1455 -1 on error.
1456
0fde2c53
DE
14572015-10-26 Doug Evans <dje@google.com>
1458
1459 PR symtab/17391
1460 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
1461 instead of gdbarch_dwarf2_reg_to_regnum.
1462 (dwarf2_frame_cache): Ditto.
1463 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
1464 gdbarch_dwarf2_reg_to_regnum.
1465 (get_reg_value): Ditto.
1466 (dwarf2_fetch_cfa_info): Ditto.
1467 (dwarf2_frame_prev_register): Ditto.
1468 * dwarf2loc.c: #include "complaints.h".
1469 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
1470 instead of gdbarch_dwarf2_reg_to_regnum.
1471 (dwarf_expr_get_reg_value): Ditto.
1472 (read_pieced_value): Ditto.
1473 (write_pieced_value): Ditto.
1474 (dwarf2_evaluate_loc_desc_full): Ditto.
1475 (dwarf_reg_to_regnum): New function.
1476 (throw_bad_regnum_error): New function.
1477 (dwarf_reg_to_regnum_or_error): Renamed from
1478 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
1479 All callers updated. Call throw_bad_regnum_error.
1480 (locexpr_regname): Improve text of bad register number.
1481 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
1482 (dwarf_reg_to_regnum_or_error): Update prototype.
1483 * dwarf2expr.c: #include "dwarf2loc.h".
1484 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
1485 gdbarch_dwarf2_reg_to_regnum.
1486 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
1487 * gdbarch.h: Regenerate.
1488 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
1489 register.
1490 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
1491 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
1492 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
1493 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
1494 Remove warning for bad register.
1495 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
1496 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
1497 i386_svr4_reg_to_regnum. Return -1 for bad registers.
1498 (i386_svr4_reg_to_regnum): New function.
1499 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
1500 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
1501 on bad registers, return -1.
1502 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
1503 Remove warning for bad register.
1504 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
1505 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
1506 Remove warning for bad register. Return -1 for bad register.
1507 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
1508 for bad register, return -1.
1509 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
1510 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
1511 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
1512 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
1513 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1514 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
1515 for bad regs.
1516 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
1517 bad regs. Fix error result.
1518 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
1519 (reg_value_complaint): Update complaint text.
1520 * mdebugread.c (reg_value_complaint): New function.
1521 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
1522
1a70ae97
DE
15232015-10-26 Doug Evans <dje@google.com>
1524
1525 PR python/18938
1526 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
1527 All callers updated.
1528
372405a5
DE
15292015-10-26 Doug Evans <dje@google.com>
1530
1531 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
1532 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
1533 (maintenance_print_psymbols): Print address map.
1534
682b2546
DE
15352015-10-26 Doug Evans <dje@google.com>
1536
1537 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
1538
963843d4
DE
15392015-10-26 Doug Evans <dje@google.com>
1540
1541 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
1542 gdbserver/linux-low.c.
1543 (WSETSTOP): Simplify.
1544
d41401ac
DE
15452015-10-26 Doug Evans <dje@google.com>
1546
1547 * linux-thread-db.c (find_new_threads_callback): Ditto.
1548 (thread_db_pid_to_str): Ditto.
1549
1522597b
SM
15502015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1551
1552 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
1553 local char array to scm_mode_bits, use a cast instead.
1554
7acd011b
SM
15552015-10-26 Simon Marchi <simon.marchi@ericsson.com>
1556
1557 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
1558 result. Change type of element_block_ptr. Change allocation to
1559 use XNEWVEC.
1560
7cc53fba
LM
15612015-10-26 Luis Machado <lgustavo@codesourcery.com>
1562
1563 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
1564 catch_errors call instead of NULL.
1565
48ffa2b8
SM
15662015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1567
1568 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
1569 char pointer to scm_mode_bits.
1570
585a269a
SM
15712015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1572
1573 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
1574 cast.
1575
e0dd41e9
SM
15762015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1577
1578 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
1579 "data" local variable and use it.
1580
74ef968f
SM
15812015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
1582
1583 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
1584 domain_enum cast.
1585 (gdbscm_lookup_symbol): Likewise.
1586
2d5a88dc
IB
15872015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
1588
1589 * d-exp.y: Remove an obsolete comment and propagate the block
1590 information to the produced expression.
1591
f4ee58bd
SM
15922015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1593
1594 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
1595 cast.
1596 (tui_add_content_elements): Likewise.
1597
1650ca11
SM
15982015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1599
1600 * cli/cli-setshow.c (do_set_command): Constify p.
1601
55e5bf59
SM
16022015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1603
1604 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
1605 (void *) cast with (gdb_byte *).
1606
49e66b4d
SM
16072015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1608
1609 * proc-service.c (ps_pdread): Add cast.
1610
cfcb22a5
SM
16112015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1612
1613 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
1614 valbuf.
1615
ce746418
SM
16162015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1617
1618 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
1619 (ia64_push_dummy_call): Remove cast and change type of "to" to
1620 array of gdb_byte.
1621
a55515ee
SM
16222015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1623
1624 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
1625
6ecf4e06
SM
16262015-10-23 Simon Marchi <simon.marchi@ericsson.com>
1627
1628 * observer.h (observer_${event}_notification_stub): Add cast.
1629
034f1a81
YQ
16302015-10-23 Yao Qi <yao.qi@linaro.org>
1631
1632 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
1633 dsd.insn_count to zero.
1634
d236ad19
PA
16352015-10-22 Pedro Alves <palves@redhat.com>
1636
1637 * infrun.c (stop_after_trap): Delete.
1638 (clear_proceed_status, handle_signal_stop, struct
1639 infcall_control_state, save_infcall_control_state)
1640 (restore_infcall_control_state): Remove references to
1641 stop_after_trap.
1642
db0f0d0c
SM
16432015-10-22 Simon Marchi <simon.marchi@ericsson.com>
1644
1645 * python/python.c (_initialize_python): Add cast.
1646
fb70bc1a
SM
16472015-10-22 Simon Marchi <simon.marchi@ericsson.com>
1648
1649 * nto-tdep.c (nto_inferior_data): Add cast.
1650
c72f45d1
PA
16512015-10-22 Pedro Alves <palves@redhat.com>
1652
1653 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
1654 windows_wait and windows_resume directly instead of
1655 wait_for_inferior and resume.
1656
60905b1e
SM
16572015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1658
1659 * xtensa-tdep.h (XTREG): Add casts.
1660 (XTREG_END): Likewise.
1661
5af9928d
SM
16622015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1663
1664 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
1665
3e45d68b
SM
16662015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1667
1668 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
1669
709476c3
SM
16702015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1671
1672 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
1673 buf to gdb_byte*.
1674 (supply_32bit_reg): Add cast.
1675 (mips64_fill_gregset): Likewise.
1676
bed91f4d
SM
16772015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1678
1679 PR python/18073
1680 * python/py-type.c (typy_get_composite): Allow returning a
1681 function type.
1682
3f2f83dd
KB
16832015-10-21 Keven Boell <keven.boell@intel.com>
1684
1685 * dwarf2read.c (set_die_type): Add read of
1686 DW_AT_allocated and DW_AT_associated.
1687 * f-typeprint.c: New include of typeprint.h
1688 (f_print_type): Add check for allocated/associated
1689 status of type.
1690 (f_type_print_varspec_suffix): Add check for
1691 * gdbtypes.c (create_array_type_with_stride):
1692 Add check for valid data location of type in
1693 case allocated or associated attributes are set.
1694 Length of an array should be only calculated if
1695 allocated or associated is resolved as true.
1696 (is_dynamic_type_internal): Add check for allocated/
1697 associated.
1698 (resolve_dynamic_array): Evaluate allocated/associated
1699 properties.
1700 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
1701 <DYN_PROP_ASSOCIATED>: New enums.
1702 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
1703 (type_not_allocated): New function.
1704 (type_not_associated): New function.
1705 * valarith.c (value_subscripted_rvalue): Add check for
1706 allocated/associated.
1707 * valprint.c: New include of typeprint.h.
1708 (valprint_check_validity): Add check for allocated/associated.
1709 (value_check_printable): Add check for allocated/
1710 associated.
1711 * typeprint.h (val_print_not_allocated): New function.
1712 (val_print_not_associated): New function.
1713 * typeprint.c (val_print_not_allocated): New function.
1714 (val_print_not_associated): New function.
1715
8689682c
AT
17162015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
1717
1718 * Makefile.in: Add arm.c/o.
1719 * arch/arm.c: New file.
1720 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
1721 (MAKE_THUMB_ADDR): Likewise.
1722 (UNMAKE_THUMB_ADDR): Likewise.
1723 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
1724 (IS_THUMB_ADDR): Move to arm.h.
1725 (MAKE_THUMB_ADDR): Likewise.
1726 (UNMAKE_THUMB_ADDR): Likewise.
1727 * configure.tgt: Add arm.o to all ARM configs.
1728
80f0110c
YQ
17292015-10-21 Yao Qi <yao.qi@linaro.org>
1730
1731 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
1732 Remove argument exp_vCont_s.
1733 * gdb.base/range-stepping.exp: Callers updated.
1734 * gdb.trace/range-stepping.exp: Likewise.
1735
d7161de4
AR
17362015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
1737
1738 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
1739 (nto_sniff_abi_note_section): New function.
1740 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
1741 binary.
1742
a9889169
AR
17432015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
1744
1745 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
1746 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
1747 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
1748 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
1749 New functions.
1750 (_initialize_nto_tdep): New forward declaration, new function.
1751 * nto-tdep.h (struct nto_inferior_data): New struct.
1752 (nto_inferior_data): New function declaration.
1753
5f3ff4f8
JK
17542015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1755
1756 * findvar.c (address_from_register): Check REGNUM validity.
1757
e5343fde
AR
17582015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1759
1760 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
1761 (init_procfs_targets): Wire new function.
1762
8a6c0ccd
AR
17632015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1764
1765 * nto-procfs.c (sys/auxv.h): Include.
1766 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
1767 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
1768 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
1769
609c3040
AR
17702015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1771
1772 * nto-procfs.c (nto_procfs_path): Rename to...
1773 (nodestr): ... this, and change type.
1774 (nto_node): Use new variable and logic accordingly.
1775 (procfs_open_1): Use new variable name. Use local buffer to construct
1776 procfrs path.
1777 (procfs_pidlist): Use NODESTR to construct procfs path.
1778 (procfs_files_info): Use NODESTR to output meaningful text.
1779 (do_attach): Construct procfs using NODESTR.
1780 (procfs_create_inferior): Compare pointer to NULL.
1781
bfd09d20
JS
17822015-10-19 Josh Stone <jistone@redhat.com>
1783
1784 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
1785 return state, even when not actively catching syscalls at all.
1786 (linux_handle_extended_wait): Mark syscall_state like an entry.
1787 (wait_lwp): Set syscall_state ignored for other traps.
1788 (linux_nat_filter_event): Likewise.
1789
29090fb6
LM
17902015-10-19 Luis Machado <lgustavo@codesourcery.com>
1791
1792 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
1793 when handling 'E', 'T', 'S', 'X' and 'W' packets.
1794 Do not set rs->waiting_for_stop_reply back to 1.
1795
774ee6d2
AR
17962015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
1797
1798 * nto-procfs.c (common/filestuff.h): Include.
1799 (procfs_can_use_hw_breakpoint): Fix enum name.
1800 (procfs_open_1): Fix compiler warning.
1801 (procfs_pidlist): Make static.
1802 (procfs_meminfo): Make static, fix type name, add missing argument.
1803 (procfs_store_registers): Make static.
1804 (procfs_thread_info): Remove unused function.
1805 (_initialize_procfs): Forward declare.
1806
e66acfb1
YQ
18072015-10-16 Yao Qi <yao.qi@arm.com>
1808
1809 * MAINTAINERS: Update my email address.
1810
8d689ee5
YQ
18112015-10-15 Yao Qi <yao.qi@linaro.org>
1812
1813 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
1814 Call gdbarch_breakpoint_from_pc to instruction length.
1815 (aarch64_linux_remove_hw_breakpoint): Likewise.
1816 * common/common-regcache.h (regcache_register_size): Declare.
1817 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
1818 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
1819 the process is 32bit, otherwise set alignment to 4.
1820 (aarch64_handle_breakpoint): Update comments.
1821 * regcache.c (regcache_register_size): New function.
1822
89fdc87f
AR
18232015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
1824
1825 * gdbarch.sh (core_regset_section): Remove.
1826 * gdbarch.h: Regenerate.
1827
6448a3e4
YQ
18282015-10-14 Yao Qi <yao.qi@linaro.org>
1829
1830 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
1831 out of it.
1832 (enum aarch64_memory_operand_type): New.
1833
33f914a1
DE
18342015-10-13 David Edelsohn <dje.gcc@gmail.com>
1835
1836 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
1837
e6a959d6
PA
18382015-10-13 Pedro Alves <palves@redhat.com>
1839
1840 * ada-lang.c (ada_enum_name): Constify local.
1841 * ada-typeprint.c (print_range_bound): Constify locals.
1842 * c-varobj.c (c_describe_child): Likewise.
1843 * cli/cli-setshow.c (do_set_command): Likewise.
1844 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1845 * dwarf2read.c (find_file_and_directory): Likewise.
1846 (anonymous_struct_prefix, dwarf2_name): Likewise.
1847 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1848 * go-lang.c (unpack_mangled_go_symbol): Likewise.
1849 * jv-typeprint.c (java_type_print_base): Likewise.
1850 * ser-tcp.c (net_open): Likewise.
1851 * symfile.c (deduce_language_from_filename): Likewise.
1852 * symtab.c (gdb_mangle_name): Likewise.
1853 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1854
170742de
PA
18552015-10-13 Pedro Alves <palves@redhat.com>
1856
1857 * infrun.c (restore_execution_direction): New function.
1858 (fetch_inferior_event): Use it instead of
1859 make_cleanup_restore_integer.
1860 (execution_direction): Change type to enum
1861 exec_direction_kind.
1862 * infrun.h (execution_direction): Likewise.
1863
bfb1c796
PA
18642015-10-13 Pedro Alves <palves@redhat.com>
1865
1866 * ada-lang.c (ada_value_primitive_packed_val): Constify
1867 locals. Use value_contents_writeable. Remove casts.
1868
aa5c10ce
PA
18692015-10-13 Pedro Alves <palves@redhat.com>
1870
1871 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
1872 and alloca calls.
1873
4666fec3
SM
18742015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1875
1876 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
1877 write_memory with write_memory_unsigned_integer.
1878
38bc8217 18792015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3953f15c
SM
1880
1881 * solib-dsbt.c (cmp_name): Constify arguments.
1882 * solib-frv.c (cmp_name): Likewise.
1883 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
1884 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1885 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1886 (gdb_bfd_lookup_symbol): Likewise.
1887 * solib.h (gdb_bfd_lookup_symbol): Likewise.
1888 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1889
a0d34a39
AB
18902015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1891
1892 * stack.c (parse_frame_specification): Remove message parameter,
1893 replace with fixed string in function body, update function
1894 comment.
1895 (frame_info): Remove message to parse_frame_specification.
1896 (select_frame_command): Likewise.
1897
edbbff4a
AB
18982015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1899
1900 * stack.c (parse_frame_specification): Delete.
1901 (parse_frame_specification_1): Rename to
1902 parse_frame_specification.
1903 (frame_info): Use parse_frame_specification.
1904 (select_frame_command): Likewise.
1905 (return_command): Use select_frame and print_stack_frame rather
1906 than frame_command and select_frame_command.
1907 (func_command): Use get_current_frame rather than
1908 parse_frame_specification.
1909
9d622bda
AB
19102015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1911
1912 * stack.c (func_command): Return early when there is no ARG
1913 string.
1914
8d3fea16
AB
19152015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1916
1917 * stack.c: Include safe-ctype.h not ctype.h.
1918 (parse_frame_specification): Use ISSPACE not isspace.
1919 (backtrace_command): Use TOLOWER not tolower.
1920
f54b226f
SM
19212015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1922
1923 * mep-tdep.c (current_me_module): Add cast.
1924 (mep_gdbarch_init): Likewise.
1925
6da660c7
SM
19262015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1927
1928 * m32c-tdep.c (m32c_move_reg_t): Replace with...
1929 (m32c_write_reg_t): ...this and...
1930 (m32c_read_reg_t): ...this.
1931 (struct m32c_reg): Update types of read and write.
1932 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
1933 adjust definition.
1934 (m32c_banked_read): Likewise.
1935 (m32c_sb_read): Likewise.
1936 (m32c_part_read): Likewise.
1937 (m32c_cat_read): Likewise.
1938 (m32c_r3r2r1r0_read): Likewise.
1939 (m32c_raw_write): Change declaration type to m32c_write_reg_t
1940 and adjust definition.
1941 (m32c_banked_write): Likewise.
1942 (m32c_sb_write): Likewise.
1943 (m32c_part_write): Likewise.
1944 (m32c_cat_write): Likewise.
1945 (m32c_r3r2r1r0_write): Likewise.
1946
1f713e48
SM
19472015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1948
1949 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
1950
cb65d272
SM
19512015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1952
1953 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
1954 gdb_sys_no_syscall instead of -1.
1955
eda14cf2
YQ
19562015-10-12 Yao Qi <yao.qi@linaro.org>
1957
1958 * NEWS: Mention the change.
1959
1c2e1515
YQ
19602015-10-12 Yao Qi <yao.qi@linaro.org>
1961
1962 * arch/aarch64-insn.c (emit_load_store): Rename to ...
1963 (aarch64_emit_load_store): ... it. All callers updated.
1964
e1c587c3
YQ
19652015-10-12 Yao Qi <yao.qi@linaro.org>
1966
1967 * arch/aarch64-insn.c (emit_insn): Rename to ...
1968 (aarch64_emit_insn): ... it. All callers updated.
1969
b6542f81
YQ
19702015-10-12 Yao Qi <yao.qi@linaro.org>
1971
1972 * aarch64-linux-tdep.c: Include arch-utils.h.
1973 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
1974 set_gdbarch_displaced_step_copy_insn,
1975 set_gdbarch_displaced_step_fixup,
1976 set_gdbarch_displaced_step_free_closure,
1977 set_gdbarch_displaced_step_location,
1978 and set_gdbarch_displaced_step_hw_singlestep.
1979 * aarch64-tdep.c (struct displaced_step_closure): New.
1980 (struct aarch64_displaced_step_data): New.
1981 (aarch64_displaced_step_b): New function.
1982 (aarch64_displaced_step_b_cond): Likewise.
1983 (aarch64_register): Likewise.
1984 (aarch64_displaced_step_cb): Likewise.
1985 (aarch64_displaced_step_tb): Likewise.
1986 (aarch64_displaced_step_adr): Likewise.
1987 (aarch64_displaced_step_ldr_literal): Likewise.
1988 (aarch64_displaced_step_others): Likewise.
1989 (aarch64_displaced_step_copy_insn): Likewise.
1990 (aarch64_displaced_step_fixup): Likewise.
1991 (aarch64_displaced_step_hw_singlestep): Likewise.
1992 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
1993 (aarch64_displaced_step_copy_insn): Declare.
1994 (aarch64_displaced_step_fixup): Declare.
1995 (aarch64_displaced_step_hw_singlestep): Declare.
1996 * arch/aarch64-insn.c (emit_insn): Moved from
1997 gdbserver/linux-aarch64-low.c.
1998 (emit_load_store): Likewise.
1999 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
2000 gdbserver/linux-aarch64-low.c.
2001 (struct aarch64_register): Likewise.
2002 (struct aarch64_memory_operand): Likewise.
2003 (ENCODE): Likewise.
2004 (can_encode_int32): New macro.
2005 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
2006 (emit_tb, emit_nop): Likewise.
2007 (emit_insn): Declare.
2008 (emit_load_store): Declare.
2009
246994ce
YQ
20102015-10-12 Yao Qi <yao.qi@linaro.org>
2011
2012 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
2013 gdbserver/linux-aarch64-low.c.
2014 (aarch64_relocate_instruction): Likewise.
2015 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
2016 (struct aarch64_insn_data): Moved from
2017 gdbserver/linux-aarch64-low.c.
2018 (struct aarch64_insn_visitor): Likewise.
2019 (aarch64_relocate_instruction): Declare.
2020
2520f728
PMR
20212015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
2022
2023 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
2024 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
2025 to the returned value.
2026
5b639dea
JB
20272015-10-09 Joel Brobecker <brobecker@adacore.com>
2028
2029 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
2030 is large enough for BIT_SIZE. Update function comment.
2031
0cafa88c
JB
20322015-10-09 Joel Brobecker <brobecker@adacore.com>
2033
2034 * ada-lang.c (ada_value_primitive_packed_val): Move
2035 src_len variable to local block where used. Override
2036 BIT_SIZE if bigger than size of resolved type.
2037
220475ed
JB
20382015-10-09 Joel Brobecker <brobecker@adacore.com>
2039
2040 * gdbtypes.h (is_scalar_type): Add extern declaration.
2041 * gdbtypes.c (is_scalar_type): Make non-static.
2042 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
2043 to compute IS_SCALAR instead of doing it ourselves.
2044
d0a9e810
JB
20452015-10-09 Joel Brobecker <brobecker@adacore.com>
2046
2047 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
2048 of case where TYPE is dynamic.
2049
f93fca70
JB
20502015-10-09 Joel Brobecker <brobecker@adacore.com>
2051
2052 * ada-lang.c (ada_unpack_from_contents): New function,
2053 extracted from ada_value_primitive_packed_val.
2054 (ada_value_primitive_packed_val): Replace extracted out code
2055 by call to ada_unpack_from_contents.
2056
a1c95e6b
JB
20572015-10-09 Joel Brobecker <brobecker@adacore.com>
2058
2059 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
2060 variable declarations.
2061
fbd000da
JB
20622015-10-09 Joel Brobecker <brobecker@adacore.com>
2063
2064 * ada-lang.c (ada_value_primitive_packed_val): Change the type
2065 of local variables src and unpacked to "gdb_type *" instead of
2066 "unsigned char *".
2067
086ca51f
JB
20682015-10-09 Joel Brobecker <brobecker@adacore.com>
2069
2070 * ada-lang.c (ada_value_primitive_packed_val): Make the name
2071 of various local variables more explicit and consistent.
2072 No real code change otherwise.
2073
c5bcd278
SM
20742015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2075
2076 * i386-tdep.h (struct gdbarch_tdep): Change type of
2077 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
2078
78c5b882
SM
20792015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2080
2081 * cris-tdep.c (struct instruction_environment): Change type of
2082 byte_order to enum bfd_endian.
2083
f9fa37b3
SM
20842015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2085
2086 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
2087 enum gdb_syscall casts.
2088
7c543f7b
SM
20892015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2090
2091 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
2092 * arm-tdep.c (struct stack_item): Likewise.
2093 (push_stack_item): Add gdb_byte* cast.
2094 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
2095 (push_stack_item): Add gdb_byte* cast.
2096 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
2097 and add cast.
2098 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
2099 (push_stack_item): Add gdb_byte* cast.
2100 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
2101 add cast.
2102 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
2103 gdb_byte*.
2104 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
2105 gdb_byte* and remove unnecessary cast.
2106 (h8300h_extract_return_value): Likewise.
2107 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
2108 (h8300h_store_return_value): Likewise.
2109 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
2110 gdb_byte* and remove unnecessary cast.
2111 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
2112 and add cast.
2113 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
2114 gdb_byte* and remove unnecessary cast.
2115 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
2116 valbuf.
2117 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
2118 (mep_pseudo_cr64_read): Likewise.
2119 (mep_pseudo_csr_write): Likewise.
2120 (mep_pseudo_cr32_write): Likewise.
2121 (mep_pseudo_cr64_write): Likewise.
2122 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
2123 gdb_byte* and add cast.
2124 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
2125 gdb_byte* and remove unnecessary cast.
2126 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
2127 valbuf.
2128 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
2129 gdb_byte*.
2130 * printcmd.c (void): Likewise.
2131 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
2132 gdb_byte* and add cast.
2133 (infpy_write_memory): Likewise.
2134 (infpy_search_memory): Likewise.
2135 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
2136 and add cast.
2137 (regcache_raw_write_unsigned): Likewise.
2138 (regcache_cooked_write_signed): Likewise.
2139 (regcache_cooked_write_unsigned): Likewise.
2140 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
2141 gdb_byte*.
2142
7567e115
SM
21432015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2144
2145 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
2146 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
2147
f9acce4a
EZ
21482015-10-09 Eli Zaretskii <eliz@gnu.org>
2149
2150 * stack.c (print_stack_frame):
2151 * utils.c (printchar): Fix typos in commentary.
2152
d5d8c4e1
IB
21532015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
2154
2155 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
2156 (PostfixExpression): Support `expr.sizeof' expressions.
2157 (PrimaryExpression): Support `typeof(expr)' expressions.
2158
4e7de155
MR
21592015-10-08 Maciej W. Rozycki <macro@imgtec.com>
2160
2161 * MAINTAINERS: Update my email address.
2162
04c4fe8c
MM
21632015-10-08 Markus Metzger <markus.t.metzger@intel.com>
2164
2165 * record-btrace.c (record_btrace_resume): Fix void return.
2166
f77ee802
YQ
21672015-10-07 Yao Qi <yao.qi@linaro.org>
2168
2169 * aarch64-tdep.c: Include opcode/aarch64.h.
2170 (submask): Move it above.
2171 (bit): Likewise.
2172 (bits): Likewise.
2173 (aarch64_software_single_step): Call aarch64_decode_insn.
2174 Decode instruction by aarch64_inst instead of using
2175 aarch64_decode_bcond and decode_masked_match.
2176
cbd641ed
PS
21772015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2178
2179 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
2180 only when the file is binary.
2181
ae4e2501 21822015-10-02 James Bowman <james.bowman@ftdichip.com>
2183
2184 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
2185 subroutine handling.
2186
dd0a637a
SM
21872015-10-01 Simon Marchi <simon.marchi@ericsson.com>
2188
2189 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
2190
1fd60fc0
DE
21912015-09-30 Doug Evans <dje@google.com>
2192
2193 * dwarf2read.c (setup_type_unit_groups): Add comment.
2194
398e0813
PA
21952015-09-30 Pedro Alves <palves@redhat.com>
2196
2197 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
2198 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
2199 (x86_linux_create_target): Don't install
2200 x86_linux_always_non_stop_p.
2201
6ab24463
DB
22022015-09-30 Don Breazeal <donb@codesourcery.com>
2203
2204 * remote.c (remote_parse_stop_reply): Call strprefix instead
2205 of strncmp.
2206
ede5f151
SM
22072015-09-30 Simon Marchi <simon.marchi@ericsson.com>
2208
2209 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
2210 * gdbarch.h: Regenerate.
2211 * i386-tdep.c (i386_gdbarch_init): Remove cast to
2212 struct gdbarch_tdep_info *.
2213 * mips-tdep.c (mips_gdbarch_init): Likewise.
2214 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
2215 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2216 * spu-multiarch.c (spu_gdbarch): Likewise.
2217
51c935fa 22182015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
2219
2220 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
2221 record a NULL value.
2222
3b1ad7d5
KB
22232015-09-29 Kevin Buettner <kevinb@redhat.com>
2224
2225 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
2226 and union arguments the same as pointer arguments when determining
2227 size of argument.
2228
86feccb9 22292015-09-29 James Bowman <james.bowman@ftdichip.com>
2230
2231 * ft32-tdep.c: #include "opcode/ft32.h".
2232 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
2233 (ft32_analyze_prologue): Use FT32_* macros.
2234
2181a6c6
SM
22352015-09-28 Simon Marchi <simon.marchi@ericsson.com>
2236
84d73afc 2237 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
2238 comment.
2239
245af596
DE
22402015-09-28 Doug Evans <dje@google.com>
2241
2242 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
2243
c402ef90
DE
22442015-09-28 Doug Evans <dje@google.com>
2245
2246 * common/filestuff.c (make_cleanup_close): Update comment.
2247
38bc8217 22482015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
bc84451b
SM
2249
2250 * btrace.c (parse_xml_btrace_block): Fix cast of
2251 xml_find_attribute's return value.
2252 * memory-map.c (memory_map_start_memory): Likewise.
2253 * solib-svr4.c (library_list_start_library): Likewise.
2254 * solib-target.c (library_list_start_segment): Likewise.
2255 (library_list_start_section): Likewise.
2256 * tracepoint.c (traceframe_info_start_memory): Likewise.
2257
ba587d55
IB
22582015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
2259
2260 * d-namespace.c (d_lookup_symbol): New arg langdef.
2261 All callers updated. Support looking up symbol as a primitive type.
2262 (lookup_module_scope): New arg langdef. All callers updated.
2263 Call d_lookup_symbol directly for simple bare symbols.
2264
19ba03f4
SM
22652015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2266
2267 * macrocmd.c (print_macro_callback): Add cast(s).
2268 * macrotab.c (macro_bcache_str): Likewise.
2269 (new_macro_definition): Likewise.
2270 * main.c (captured_main): Likewise.
2271 * maint.c (print_bfd_section_info): Likewise.
2272 * mdebugread.c (mdebug_build_psymtabs): Likewise.
2273 (basic_type): Likewise.
2274 * memattr.c (mem_region_cmp): Likewise.
2275 * memory-map.c (memory_map_start_memory): Likewise.
2276 (memory_map_end_memory): Likewise.
2277 (memory_map_start_property): Likewise.
2278 (memory_map_end_property): Likewise.
2279 (clear_result): Likewise.
2280 * memrange.c (compare_mem_ranges): Likewise.
2281 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
2282 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
2283 * mi/mi-console.c (mi_console_file_delete): Likewise.
2284 (mi_console_file_fputs): Likewise.
2285 (mi_console_raw_packet): Likewise.
2286 (mi_console_file_flush): Likewise.
2287 (mi_console_set_raw): Likewise.
2288 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
2289 (mi_new_thread): Likewise.
2290 (mi_thread_exit): Likewise.
2291 (mi_record_changed): Likewise.
2292 (mi_inferior_added): Likewise.
2293 (mi_inferior_appeared): Likewise.
2294 (mi_inferior_exit): Likewise.
2295 (mi_inferior_removed): Likewise.
2296 (mi_interp_data): Likewise.
2297 (mi_on_normal_stop): Likewise.
2298 (mi_traceframe_changed): Likewise.
2299 (mi_tsv_created): Likewise.
2300 (mi_tsv_deleted): Likewise.
2301 (mi_tsv_modified): Likewise.
2302 (mi_breakpoint_created): Likewise.
2303 (mi_breakpoint_deleted): Likewise.
2304 (mi_breakpoint_modified): Likewise.
2305 (mi_output_running_pid): Likewise.
2306 (mi_inferior_count): Likewise.
2307 (mi_solib_loaded): Likewise.
2308 (mi_solib_unloaded): Likewise.
2309 (mi_command_param_changed): Likewise.
2310 (mi_memory_changed): Likewise.
2311 (report_initial_inferior): Likewise.
2312 (mi_ui_out): Likewise.
2313 (mi_set_logging): Likewise.
2314 * mi/mi-main.c (collect_cores): Likewise.
2315 (print_one_inferior): Likewise.
2316 (free_vector_of_ints): Likewise.
2317 (free_splay_tree): Likewise.
2318 (mi_execute_command): Likewise.
2319 * mi/mi-out.c (mi_table_body): Likewise.
2320 (mi_table_end): Likewise.
2321 (mi_table_header): Likewise.
2322 (mi_begin): Likewise.
2323 (mi_end): Likewise.
2324 (mi_field_int): Likewise.
2325 (mi_field_string): Likewise.
2326 (mi_field_fmt): Likewise.
2327 (mi_flush): Likewise.
2328 (mi_redirect): Likewise.
2329 (field_separator): Likewise.
2330 (mi_open): Likewise.
2331 (mi_close): Likewise.
2332 (mi_out_buffered): Likewise.
2333 (mi_out_rewind): Likewise.
2334 (mi_out_put): Likewise.
2335 (mi_version): Likewise.
2336 (mi_out_data_dtor): Likewise.
2337 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
2338 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
2339 * minidebug.c (lzma_open): Likewise.
2340 (lzma_pread): Likewise.
2341 (lzma_close): Likewise.
2342 (lzma_stat): Likewise.
2343 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
2344 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
2345 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
2346 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
2347 (mips_micro_frame_cache): Likewise.
2348 (mips_insn32_frame_cache): Likewise.
2349 (mips_stub_frame_cache): Likewise.
2350 (gdb_print_insn_mips): Likewise.
2351 (value_of_mips_user_reg): Likewise.
2352 (mips_gdbarch_init): Likewise.
2353 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
2354 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
2355 (mipsnbsd_supply_gregset): Likewise.
2356 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
2357 (am33_collect_gregset_method): Likewise.
2358 (am33_collect_fpregset_method): Likewise.
2359 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
2360 * moxie-tdep.c (moxie_frame_cache): Likewise.
2361 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
2362 (msp430_analyze_frame_prologue): Likewise.
2363 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
2364 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
2365 (nios2_collect_gregset): Likewise.
2366 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
2367 (nios2_stub_frame_cache): Likewise.
2368 * objc-lang.c (find_methods): Likewise.
2369 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2370 (get_objfile_pspace_data): Likewise.
2371 (get_objfile_bfd_data): Likewise.
2372 (objfile_bfd_data_free): Likewise.
2373 (add_to_objfile_sections): Likewise.
2374 (do_free_objfile_cleanup): Likewise.
2375 (resume_section_map_updates_cleanup): Likewise.
2376 * opencl-lang.c (builtin_opencl_type): Likewise.
2377 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2378 * osdata.c (osdata_start_osdata): Likewise.
2379 (osdata_start_item): Likewise.
2380 (osdata_start_column): Likewise.
2381 (osdata_end_column): Likewise.
2382 (clear_parsing_data): Likewise.
2383 (osdata_free_cleanup): Likewise.
2384 * parse.c (type_stack_cleanup): Likewise.
2385 (exp_uses_objfile_iter): Likewise.
2386 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
2387 (ppc_linux_collect_gregset): Likewise.
2388 (ppu2spu_prev_arch): Likewise.
2389 (ppu2spu_this_id): Likewise.
2390 (ppu2spu_prev_register): Likewise.
2391 (ppu2spu_unwind_register): Likewise.
2392 (ppu2spu_sniffer): Likewise.
2393 (ppu2spu_dealloc_cache): Likewise.
2394 (ppc_linux_init_abi): Likewise.
2395 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
2396 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2397 * progspace.c (restore_program_space): Likewise.
2398 * psymtab.c (find_pc_sect_psymtab): Likewise.
2399 (compare_psymbols): Likewise.
2400 (psymbol_bcache_full): Likewise.
2401 (allocate_psymtab): Likewise.
2402 (discard_psymtabs_upto): Likewise.
2403 * python/py-block.c (set_block): Likewise.
2404 (del_objfile_blocks): Likewise.
2405 * python/py-breakpoint.c (build_bp_list): Likewise.
2406 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
2407 (build_inferior_list): Likewise.
2408 (py_free_inferior): Likewise.
2409 * python/py-objfile.c (py_free_objfile): Likewise.
2410 (objfile_to_objfile_object): Likewise.
2411 * python/py-prettyprint.c (py_restore_tstate): Likewise.
2412 * python/py-progspace.c (py_free_pspace): Likewise.
2413 (pspace_to_pspace_object): Likewise.
2414 * python/py-symbol.c (set_symbol): Likewise.
2415 (del_objfile_symbols): Likewise.
2416 * python/py-symtab.c (set_sal): Likewise.
2417 (set_symtab): Likewise.
2418 (del_objfile_symtab): Likewise.
2419 (del_objfile_sal): Likewise.
2420 * python/py-type.c (save_objfile_types): Likewise.
2421 (set_type): Likewise.
2422 * python/py-unwind.c (pyuw_prev_register): Likewise.
2423 (pyuw_on_new_gdbarch): Likewise.
2424 * python/py-utils.c (py_decref): Likewise.
2425 (py_xdecref): Likewise.
2426 (gdb_py_generic_dict): Likewise.
2427 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
2428 (gdbpy_clone_xmethod_worker_data): Likewise.
2429 (gdbpy_get_xmethod_arg_types): Likewise.
2430 (gdbpy_get_xmethod_result_type): Likewise.
2431 (gdbpy_invoke_xmethod): Likewise.
2432 * python/python.c (gdbpy_apply_type_printers): Likewise.
2433 (gdbpy_free_type_printers): Likewise.
2434 * record-btrace.c (record_btrace_disable_callback): Likewise.
2435 (bfcache_hash): Likewise.
2436 (bfcache_eq): Likewise.
2437 (btrace_get_frame_function): Likewise.
2438 (record_btrace_frame_unwind_stop_reason): Likewise.
2439 (record_btrace_frame_this_id): Likewise.
2440 (record_btrace_frame_prev_register): Likewise.
2441 (record_btrace_frame_dealloc_cache): Likewise.
2442 * record-full.c (record_full_message_wrapper): Likewise.
2443 (record_full_save_cleanups): Likewise.
2444 * regcache.c (regcache_descr): Likewise.
2445 (do_regcache_xfree): Likewise.
2446 (do_regcache_invalidate): Likewise.
2447 (do_cooked_read): Likewise.
2448 (regcache_transfer_regset): Likewise.
2449 * reggroups.c (reggroup_add): Likewise.
2450 (reggroup_next): Likewise.
2451 (reggroup_prev): Likewise.
2452 * remote-fileio.c (do_remote_fileio_request): Likewise.
2453 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
2454 (do_notif_event_xfree): Likewise.
2455 * remote.c (get_remote_arch_state): Likewise.
2456 (remote_pspace_data_cleanup): Likewise.
2457 (get_remote_exec_file): Likewise.
2458 (set_pspace_remote_exec_file): Likewise.
2459 (compare_pnums): Likewise.
2460 (clear_threads_listing_context): Likewise.
2461 (remote_newthread_step): Likewise.
2462 (start_thread): Likewise.
2463 (end_thread): Likewise.
2464 (remove_child_of_pending_fork): Likewise.
2465 (remove_stop_reply_for_inferior): Likewise.
2466 (remove_stop_reply_of_remote_state): Likewise.
2467 (remote_notif_remove_once_on_match): Likewise.
2468 (stop_reply_match_ptid_and_ws): Likewise.
2469 (kill_child_of_pending_fork): Likewise.
2470 (register_remote_g_packet_guess): Likewise.
2471 (remote_read_description_p): Likewise.
2472 (remote_read_description): Likewise.
2473 (free_actions_list_cleanup_wrapper): Likewise.
2474 (remote_async_serial_handler): Likewise.
2475 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
2476 (rl78_analyze_frame_prologue): Likewise.
2477 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
2478 (ppc_supply_fpregset): Likewise.
2479 (ppc_supply_vsxregset): Likewise.
2480 (ppc_supply_vrregset): Likewise.
2481 (ppc_collect_gregset): Likewise.
2482 (ppc_collect_fpregset): Likewise.
2483 (ppc_collect_vsxregset): Likewise.
2484 (ppc_collect_vrregset): Likewise.
2485 (e500_move_ev_register): Likewise.
2486 (do_regcache_raw_write): Likewise.
2487 (rs6000_frame_cache): Likewise.
2488 (rs6000_epilogue_frame_cache): Likewise.
2489 (rs6000_gdbarch_init): Likewise.
2490 * rx-tdep.c (rx_get_opcode_byte): Likewise.
2491 (rx_analyze_frame_prologue): Likewise.
2492 (rx_frame_type): Likewise.
2493 (rx_frame_sniffer_common): Likewise.
2494 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
2495 (s390_frame_unwind_cache): Likewise.
2496 (s390_stub_frame_unwind_cache): Likewise.
2497 (s390_sigtramp_frame_unwind_cache): Likewise.
2498 * score-tdep.c (score_make_prologue_cache): Likewise.
2499 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
2500 (sentinel_frame_prev_arch): Likewise.
2501 * ser-base.c (fd_event): Likewise.
2502 (push_event): Likewise.
2503 (ser_base_write): Likewise.
2504 * ser-pipe.c (pipe_close): Likewise.
2505 * serial.c (serial_write): Likewise.
2506 * sh-tdep.c (sh_frame_cache): Likewise.
2507 (sh_stub_this_id): Likewise.
2508 * sh64-tdep.c (sh64_frame_cache): Likewise.
2509 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2510 (library_list_start_library): Likewise.
2511 (library_list_start_list): Likewise.
2512 (solib_aix_free_library_list): Likewise.
2513 * solib-darwin.c (get_darwin_info): Likewise.
2514 * solib-dsbt.c (get_dsbt_info): Likewise.
2515 * solib-spu.c (append_ocl_sos): Likewise.
2516 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2517 (get_svr4_info): Likewise.
2518 (library_list_start_library): Likewise.
2519 (svr4_library_list_start_list): Likewise.
2520 (hash_probe_and_action): Likewise.
2521 (equal_probe_and_action): Likewise.
2522 (svr4_update_solib_event_breakpoint): Likewise.
2523 (set_solib_svr4_fetch_link_map_offsets): Likewise.
2524 (svr4_fetch_link_map_offsets): Likewise.
2525 (svr4_have_link_map_offsets): Likewise.
2526 * solib-target.c (library_list_start_segment): Likewise.
2527 (library_list_start_section): Likewise.
2528 (library_list_start_library): Likewise.
2529 (library_list_end_library): Likewise.
2530 (library_list_start_list): Likewise.
2531 (solib_target_free_library_list): Likewise.
2532 * solib.c (solib_ops): Likewise.
2533 (set_solib_ops): Likewise.
2534 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2535 * sparc-tdep.c (sparc_frame_cache): Likewise.
2536 (sparc32_frame_cache): Likewise.
2537 (sparc32_supply_gregset): Likewise.
2538 (sparc32_collect_gregset): Likewise.
2539 (sparc32_supply_fpregset): Likewise.
2540 (sparc32_collect_fpregset): Likewise.
2541 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2542 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2543 (sparc64_collect_gregset): Likewise.
2544 (sparc64_supply_fpregset): Likewise.
2545 (sparc64_collect_fpregset): Likewise.
2546 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
2547 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2548 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2549 (sparc64obsd_trapframe_cache): Likewise.
2550 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
2551 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2552 * spu-multiarch.c (spu_gdbarch): Likewise.
2553 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
2554 (spu2ppu_prev_arch): Likewise.
2555 (spu2ppu_this_id): Likewise.
2556 (spu2ppu_prev_register): Likewise.
2557 (spu2ppu_dealloc_cache): Likewise.
2558 (spu_dis_asm_print_address): Likewise.
2559 (gdb_print_insn_spu): Likewise.
2560 (spu_get_overlay_table): Likewise.
2561 * stabsread.c (rs6000_builtin_type): Likewise.
2562 * stack.c (do_print_variable_and_value): Likewise.
2563 * stap-probe.c (get_stap_base_address_1): Likewise.
2564 * symfile-debug.c (debug_qf_has_symbols): Likewise.
2565 (debug_qf_find_last_source_symtab): Likewise.
2566 (debug_qf_forget_cached_source_info): Likewise.
2567 (debug_qf_map_symtabs_matching_filename): Likewise.
2568 (debug_qf_lookup_symbol): Likewise.
2569 (debug_qf_print_stats): Likewise.
2570 (debug_qf_dump): Likewise.
2571 (debug_qf_relocate): Likewise.
2572 (debug_qf_expand_symtabs_for_function): Likewise.
2573 (debug_qf_expand_all_symtabs): Likewise.
2574 (debug_qf_expand_symtabs_with_fullname): Likewise.
2575 (debug_qf_map_matching_symbols): Likewise.
2576 (debug_qf_expand_symtabs_matching): Likewise.
2577 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
2578 (debug_qf_map_symbol_filenames): Likewise.
2579 (debug_sym_get_probes): Likewise.
2580 (debug_sym_new_init): Likewise.
2581 (debug_sym_init): Likewise.
2582 (debug_sym_read): Likewise.
2583 (debug_sym_read_psymbols): Likewise.
2584 (debug_sym_finish): Likewise.
2585 (debug_sym_offsets): Likewise.
2586 (debug_sym_read_linetable): Likewise.
2587 (debug_sym_relocate): Likewise.
2588 (uninstall_symfile_debug_logging): Likewise.
2589 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
2590 * symfile.c (place_section): Likewise.
2591 (add_section_size_callback): Likewise.
2592 (load_progress): Likewise.
2593 (load_section_callback): Likewise.
2594 (clear_memory_write_data): Likewise.
2595 (allocate_symtab): Likewise.
2596 * symmisc.c (maintenance_expand_file_matcher): Likewise.
2597 * symtab.c (lookup_symtab_callback): Likewise.
2598 (hash_demangled_name_entry): Likewise.
2599 (eq_demangled_name_entry): Likewise.
2600 (get_symbol_cache): Likewise.
2601 (symbol_cache_cleanup): Likewise.
2602 (set_symbol_cache_size): Likewise.
2603 (symbol_cache_flush): Likewise.
2604 (maintenance_print_symbol_cache): Likewise.
2605 (maintenance_print_symbol_cache_statistics): Likewise.
2606 (delete_filename_seen_cache): Likewise.
2607 (output_partial_symbol_filename): Likewise.
2608 (search_symbols_file_matches): Likewise.
2609 (search_symbols_name_matches): Likewise.
2610 (do_free_completion_list): Likewise.
2611 (maybe_add_partial_symtab_filename): Likewise.
2612 (get_main_info): Likewise.
2613 (main_info_cleanup): Likewise.
2614 * target-dcache.c (target_dcache_cleanup): Likewise.
2615 (target_dcache_init_p): Likewise.
2616 (target_dcache_invalidate): Likewise.
2617 (target_dcache_get): Likewise.
2618 (target_dcache_get_or_init): Likewise.
2619 * target-descriptions.c (target_find_description): Likewise.
2620 (tdesc_find_type): Likewise.
2621 (tdesc_data_cleanup): Likewise.
2622 (tdesc_find_arch_register): Likewise.
2623 (tdesc_register_name): Likewise.
2624 (tdesc_register_type): Likewise.
2625 (tdesc_register_reggroup_p): Likewise.
2626 (set_tdesc_pseudo_register_name): Likewise.
2627 (set_tdesc_pseudo_register_type): Likewise.
2628 (set_tdesc_pseudo_register_reggroup_p): Likewise.
2629 (tdesc_use_registers): Likewise.
2630 (free_target_description): Likewise.
2631 * target-memory.c (compare_block_starting_address): Likewise.
2632 (cleanup_request_data): Likewise.
2633 (cleanup_write_requests_vector): Likewise.
2634 * target.c (open_target): Likewise.
2635 (cleanup_restore_target_terminal): Likewise.
2636 (free_memory_read_result_vector): Likewise.
2637 * thread.c (disable_thread_stack_temporaries): Likewise.
2638 (finish_thread_state_cleanup): Likewise.
2639 (do_restore_current_thread_cleanup): Likewise.
2640 (restore_current_thread_cleanup_dtor): Likewise.
2641 (set_thread_refcount): Likewise.
2642 (tp_array_compar): Likewise.
2643 (do_captured_thread_select): Likewise.
2644 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
2645 (tic6x_stub_this_id): Likewise.
2646 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
2647 * top.c (do_restore_instream_cleanup): Likewise.
2648 (gdb_readline_wrapper_cleanup): Likewise.
2649 (kill_or_detach): Likewise.
2650 (print_inferior_quit_action): Likewise.
2651 * tracefile-tfile.c (match_blocktype): Likewise.
2652 (build_traceframe_info): Likewise.
2653 * tracefile.c (trace_file_writer_xfree): Likewise.
2654 * tracepoint.c (memrange_cmp): Likewise.
2655 (do_collect_symbol): Likewise.
2656 (do_clear_collection_list): Likewise.
2657 (do_restore_current_traceframe_cleanup): Likewise.
2658 (restore_current_traceframe_cleanup_dtor): Likewise.
2659 (free_current_marker): Likewise.
2660 (traceframe_info_start_memory): Likewise.
2661 (traceframe_info_start_tvar): Likewise.
2662 (free_result): Likewise.
2663 * tramp-frame.c (tramp_frame_cache): Likewise.
2664 * tui/tui-file.c (tui_file_delete): Likewise.
2665 (tui_fileopen): Likewise.
2666 (tui_sfileopen): Likewise.
2667 (tui_file_isatty): Likewise.
2668 (tui_file_rewind): Likewise.
2669 (tui_file_put): Likewise.
2670 (tui_file_fputs): Likewise.
2671 (tui_file_get_strbuf): Likewise.
2672 (tui_file_adjust_strbuf): Likewise.
2673 (tui_file_flush): Likewise.
2674 * tui/tui-layout.c (make_command_window): Likewise.
2675 (make_data_window): Likewise.
2676 (show_source_disasm_command): Likewise.
2677 (show_data): Likewise.
2678 (make_source_or_disasm_window): Likewise.
2679 (show_source_or_disasm_and_command): Likewise.
2680 * tui/tui-out.c (tui_field_int): Likewise.
2681 (tui_field_string): Likewise.
2682 (tui_field_fmt): Likewise.
2683 (tui_text): Likewise.
2684 * typeprint.c (hash_typedef_field): Likewise.
2685 (eq_typedef_field): Likewise.
2686 (do_free_typedef_hash): Likewise.
2687 (copy_typedef_hash_element): Likewise.
2688 (do_free_global_table): Likewise.
2689 (find_global_typedef): Likewise.
2690 (find_typedef_in_hash): Likewise.
2691 * ui-file.c (ui_file_write_for_put): Likewise.
2692 (do_ui_file_xstrdup): Likewise.
2693 (mem_file_delete): Likewise.
2694 (mem_file_rewind): Likewise.
2695 (mem_file_put): Likewise.
2696 (mem_file_write): Likewise.
2697 (stdio_file_delete): Likewise.
2698 (stdio_file_flush): Likewise.
2699 (stdio_file_read): Likewise.
2700 (stdio_file_write): Likewise.
2701 (stdio_file_write_async_safe): Likewise.
2702 (stdio_file_fputs): Likewise.
2703 (stdio_file_isatty): Likewise.
2704 (stdio_file_fseek): Likewise.
2705 (tee_file_delete): Likewise.
2706 (tee_file_flush): Likewise.
2707 (tee_file_write): Likewise.
2708 (tee_file_fputs): Likewise.
2709 (tee_file_isatty): Likewise.
2710 * ui-out.c (do_cleanup_table_end): Likewise.
2711 (do_cleanup_end): Likewise.
2712 * user-regs.c (user_reg_add): Likewise.
2713 (user_reg_map_name_to_regnum): Likewise.
2714 (usernum_to_user_reg): Likewise.
2715 (maintenance_print_user_registers): Likewise.
2716 * utils.c (do_bfd_close_cleanup): Likewise.
2717 (do_fclose_cleanup): Likewise.
2718 (do_obstack_free): Likewise.
2719 (do_ui_file_delete): Likewise.
2720 (do_ui_out_redirect_pop): Likewise.
2721 (do_free_section_addr_info): Likewise.
2722 (restore_integer): Likewise.
2723 (do_unpush_target): Likewise.
2724 (do_htab_delete_cleanup): Likewise.
2725 (do_restore_ui_file): Likewise.
2726 (do_value_free): Likewise.
2727 (do_free_so): Likewise.
2728 (free_current_contents): Likewise.
2729 (do_regfree_cleanup): Likewise.
2730 (core_addr_hash): Likewise.
2731 (core_addr_eq): Likewise.
2732 (do_free_char_ptr_vec): Likewise.
2733 * v850-tdep.c (v850_frame_cache): Likewise.
2734 * varobj.c (do_free_variable_cleanup): Likewise.
2735 * vax-tdep.c (vax_supply_gregset): Likewise.
2736 (vax_frame_cache): Likewise.
2737 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
2738 * xml-support.c (gdb_xml_body_text): Likewise.
2739 (gdb_xml_values_cleanup): Likewise.
2740 (gdb_xml_start_element): Likewise.
2741 (gdb_xml_start_element_wrapper): Likewise.
2742 (gdb_xml_end_element): Likewise.
2743 (gdb_xml_end_element_wrapper): Likewise.
2744 (gdb_xml_cleanup): Likewise.
2745 (gdb_xml_fetch_external_entity): Likewise.
2746 (gdb_xml_parse_attr_enum): Likewise.
2747 (xinclude_start_include): Likewise.
2748 (xinclude_end_include): Likewise.
2749 (xml_xinclude_default): Likewise.
2750 (xml_xinclude_start_doctype): Likewise.
2751 (xml_xinclude_end_doctype): Likewise.
2752 (xml_xinclude_cleanup): Likewise.
2753 (xml_fetch_content_from_file): Likewise.
2754 * xml-syscall.c (free_syscalls_info): Likewise.
2755 (syscall_start_syscall): Likewise.
2756 * xml-tdesc.c (tdesc_end_arch): Likewise.
2757 (tdesc_end_osabi): Likewise.
2758 (tdesc_end_compatible): Likewise.
2759 (tdesc_start_target): Likewise.
2760 (tdesc_start_feature): Likewise.
2761 (tdesc_start_reg): Likewise.
2762 (tdesc_start_union): Likewise.
2763 (tdesc_start_struct): Likewise.
2764 (tdesc_start_flags): Likewise.
2765 (tdesc_start_field): Likewise.
2766 (tdesc_start_vector): Likewise.
2767 (fetch_available_features_from_target): Likewise.
2768 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
2769 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
2770 (xtensa_frame_cache): Likewise.
2771 (xtensa_frame_prev_register): Likewise.
2772 (xtensa_extract_return_value): Likewise.
2773
9a3c8263
SM
27742015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2775
2776 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
2777 (aarch64_make_stub_cache): Likewise.
2778 (value_of_aarch64_user_reg): Likewise.
2779 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
2780 (get_ada_inferior_data): Likewise.
2781 (get_ada_pspace_data): Likewise.
2782 (ada_pspace_data_cleanup): Likewise.
2783 (ada_complete_symbol_matcher): Likewise.
2784 (ada_exc_search_name_matches): Likewise.
2785 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2786 (get_ada_tasks_inferior_data): Likewise.
2787 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
2788 (splay_obstack_alloc): Likewise.
2789 (splay_obstack_free): Likewise.
2790 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
2791 (alpha_linux_collect_gregset): Likewise.
2792 (alpha_linux_supply_fpregset): Likewise.
2793 (alpha_linux_collect_fpregset): Likewise.
2794 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2795 * alpha-tdep.c (alpha_lds): Likewise.
2796 (alpha_sts): Likewise.
2797 (alpha_sigtramp_frame_unwind_cache): Likewise.
2798 (alpha_heuristic_frame_unwind_cache): Likewise.
2799 (alpha_supply_int_regs): Likewise.
2800 (alpha_fill_int_regs): Likewise.
2801 (alpha_supply_fp_regs): Likewise.
2802 (alpha_fill_fp_regs): Likewise.
2803 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
2804 (alphanbsd_aout_supply_gregset): Likewise.
2805 (alphanbsd_supply_gregset): Likewise.
2806 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
2807 (amd64_x32_linux_init_abi): Likewise.
2808 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2809 (amd64_collect_native_gregset): Likewise.
2810 * amd64-tdep.c (amd64_frame_cache): Likewise.
2811 (amd64_sigtramp_frame_cache): Likewise.
2812 (amd64_epilogue_frame_cache): Likewise.
2813 (amd64_supply_fxsave): Likewise.
2814 (amd64_supply_xsave): Likewise.
2815 (amd64_collect_fxsave): Likewise.
2816 (amd64_collect_xsave): Likewise.
2817 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
2818 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
2819 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2820 (arm_linux_collect_gregset): Likewise.
2821 (arm_linux_supply_nwfpe): Likewise.
2822 (arm_linux_collect_nwfpe): Likewise.
2823 (arm_linux_supply_vfp): Likewise.
2824 (arm_linux_collect_vfp): Likewise.
2825 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
2826 (arm_prologue_unwind_stop_reason): Likewise.
2827 (arm_prologue_this_id): Likewise.
2828 (arm_prologue_prev_register): Likewise.
2829 (arm_exidx_data_free): Likewise.
2830 (arm_find_exidx_entry): Likewise.
2831 (arm_stub_this_id): Likewise.
2832 (arm_m_exception_this_id): Likewise.
2833 (arm_m_exception_prev_register): Likewise.
2834 (arm_normal_frame_base): Likewise.
2835 (gdb_print_insn_arm): Likewise.
2836 (arm_objfile_data_free): Likewise.
2837 (arm_record_special_symbol): Likewise.
2838 (value_of_arm_user_reg): Likewise.
2839 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
2840 (armbsd_supply_gregset): Likewise.
2841 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
2842 (get_auto_load_pspace_data): Likewise.
2843 (hash_loaded_script_entry): Likewise.
2844 (eq_loaded_script_entry): Likewise.
2845 (clear_section_scripts): Likewise.
2846 (collect_matching_scripts): Likewise.
2847 * auxv.c (auxv_inferior_data_cleanup): Likewise.
2848 (get_auxv_inferior_data): Likewise.
2849 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2850 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
2851 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2852 (target_bfd_xclose): Likewise.
2853 (target_bfd_get_section_table): Likewise.
2854 * bfin-tdep.c (bfin_frame_cache): Likewise.
2855 * block.c (find_block_in_blockvector): Likewise.
2856 (call_site_for_pc): Likewise.
2857 (block_find_non_opaque_type_preferred): Likewise.
2858 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
2859 (signal_catchpoint_remove_location): Likewise.
2860 (signal_catchpoint_breakpoint_hit): Likewise.
2861 (signal_catchpoint_print_one): Likewise.
2862 (signal_catchpoint_print_mention): Likewise.
2863 (signal_catchpoint_print_recreate): Likewise.
2864 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
2865 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
2866 (bp_location_compare_addrs): Likewise.
2867 (get_first_locp_gte_addr): Likewise.
2868 (check_tracepoint_command): Likewise.
2869 (do_map_commands_command): Likewise.
2870 (get_breakpoint_objfile_data): Likewise.
2871 (free_breakpoint_probes): Likewise.
2872 (do_captured_breakpoint_query): Likewise.
2873 (compare_breakpoints): Likewise.
2874 (bp_location_compare): Likewise.
2875 (bpstat_remove_breakpoint_callback): Likewise.
2876 (do_delete_breakpoint_cleanup): Likewise.
2877 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
2878 (bsd_uthread_set_collect_uthread): Likewise.
2879 (bsd_uthread_activate): Likewise.
2880 (bsd_uthread_fetch_registers): Likewise.
2881 (bsd_uthread_store_registers): Likewise.
2882 * btrace.c (check_xml_btrace_version): Likewise.
2883 (parse_xml_btrace_block): Likewise.
2884 (parse_xml_btrace_pt_config_cpu): Likewise.
2885 (parse_xml_btrace_pt_raw): Likewise.
2886 (parse_xml_btrace_pt): Likewise.
2887 (parse_xml_btrace_conf_bts): Likewise.
2888 (parse_xml_btrace_conf_pt): Likewise.
2889 (do_btrace_data_cleanup): Likewise.
2890 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
2891 * charset.c (cleanup_iconv): Likewise.
2892 (do_cleanup_iterator): Likewise.
2893 * cli-out.c (cli_uiout_dtor): Likewise.
2894 (cli_table_begin): Likewise.
2895 (cli_table_body): Likewise.
2896 (cli_table_end): Likewise.
2897 (cli_table_header): Likewise.
2898 (cli_begin): Likewise.
2899 (cli_end): Likewise.
2900 (cli_field_int): Likewise.
2901 (cli_field_skip): Likewise.
2902 (cli_field_string): Likewise.
2903 (cli_field_fmt): Likewise.
2904 (cli_spaces): Likewise.
2905 (cli_text): Likewise.
2906 (cli_message): Likewise.
2907 (cli_wrap_hint): Likewise.
2908 (cli_flush): Likewise.
2909 (cli_redirect): Likewise.
2910 (out_field_fmt): Likewise.
2911 (field_separator): Likewise.
2912 (cli_out_set_stream): Likewise.
2913 * cli/cli-cmds.c (compare_symtabs): Likewise.
2914 * cli/cli-dump.c (call_dump_func): Likewise.
2915 (restore_section_callback): Likewise.
2916 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
2917 (do_restore_user_call_depth): Likewise.
2918 (do_free_command_lines_cleanup): Likewise.
2919 * coff-pe-read.c (get_section_vmas): Likewise.
2920 (pe_as16): Likewise.
2921 (pe_as32): Likewise.
2922 * coffread.c (coff_symfile_read): Likewise.
2923 * common/agent.c (agent_look_up_symbols): Likewise.
2924 * common/filestuff.c (do_close_cleanup): Likewise.
2925 * common/format.c (free_format_pieces_cleanup): Likewise.
2926 * common/vec.c (vec_o_reserve): Likewise.
2927 * compile/compile-c-support.c (print_one_macro): Likewise.
2928 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
2929 (eq_symbol_error): Likewise.
2930 (del_symbol_error): Likewise.
2931 (error_symbol_once): Likewise.
2932 (gcc_convert_symbol): Likewise.
2933 (gcc_symbol_address): Likewise.
2934 (hash_symname): Likewise.
2935 (eq_symname): Likewise.
2936 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
2937 (eq_type_map_instance): Likewise.
2938 (insert_type): Likewise.
2939 (convert_type): Likewise.
2940 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
2941 (setup_sections): Likewise.
2942 (link_hash_table_free): Likewise.
2943 (copy_sections): Likewise.
2944 * compile/compile-object-run.c (do_module_cleanup): Likewise.
2945 * compile/compile.c (compile_print_value): Likewise.
2946 (do_rmdir): Likewise.
2947 (cleanup_compile_instance): Likewise.
2948 (cleanup_unlink_file): Likewise.
2949 * completer.c (free_completion_tracker): Likewise.
2950 * corelow.c (add_to_spuid_list): Likewise.
2951 * cp-namespace.c (reset_directive_searched): Likewise.
2952 * cp-support.c (reset_directive_searched): Likewise.
2953 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
2954 (cris_frame_unwind_cache): Likewise.
2955 * d-lang.c (builtin_d_type): Likewise.
2956 * d-namespace.c (reset_directive_searched): Likewise.
2957 * dbxread.c (dbx_free_symfile_info): Likewise.
2958 (do_free_bincl_list_cleanup): Likewise.
2959 * disasm.c (hash_dis_line_entry): Likewise.
2960 (eq_dis_line_entry): Likewise.
2961 (dis_asm_print_address): Likewise.
2962 (fprintf_disasm): Likewise.
2963 (do_ui_file_delete): Likewise.
2964 * doublest.c (convert_floatformat_to_doublest): Likewise.
2965 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
2966 (dummy_frame_prev_register): Likewise.
2967 (dummy_frame_this_id): Likewise.
2968 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
2969 (cache_eq): Likewise.
2970 (cache_find): Likewise.
2971 (tailcall_frame_this_id): Likewise.
2972 (dwarf2_tailcall_prev_register_first): Likewise.
2973 (tailcall_frame_prev_register): Likewise.
2974 (tailcall_frame_dealloc_cache): Likewise.
2975 (tailcall_frame_prev_arch): Likewise.
2976 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
2977 (dwarf2_frame_set_init_reg): Likewise.
2978 (dwarf2_frame_init_reg): Likewise.
2979 (dwarf2_frame_set_signal_frame_p): Likewise.
2980 (dwarf2_frame_signal_frame_p): Likewise.
2981 (dwarf2_frame_set_adjust_regnum): Likewise.
2982 (dwarf2_frame_adjust_regnum): Likewise.
2983 (clear_pointer_cleanup): Likewise.
2984 (dwarf2_frame_cache): Likewise.
2985 (find_cie): Likewise.
2986 (dwarf2_frame_find_fde): Likewise.
2987 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
2988 (free_dwarf_expr_context_cleanup): Likewise.
2989 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
2990 (locexpr_get_frame_base): Likewise.
2991 (loclist_find_frame_base_location): Likewise.
2992 (loclist_get_frame_base): Likewise.
2993 (dwarf_expr_dwarf_call): Likewise.
2994 (dwarf_expr_get_base_type): Likewise.
2995 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
2996 (dwarf_expr_get_obj_addr): Likewise.
2997 (entry_data_value_coerce_ref): Likewise.
2998 (entry_data_value_copy_closure): Likewise.
2999 (entry_data_value_free_closure): Likewise.
3000 (get_frame_address_in_block_wrapper): Likewise.
3001 (dwarf2_evaluate_property): Likewise.
3002 (dwarf2_compile_property_to_c): Likewise.
3003 (needs_frame_read_addr_from_reg): Likewise.
3004 (needs_frame_get_reg_value): Likewise.
3005 (needs_frame_frame_base): Likewise.
3006 (needs_frame_frame_cfa): Likewise.
3007 (needs_frame_tls_address): Likewise.
3008 (needs_frame_dwarf_call): Likewise.
3009 (needs_dwarf_reg_entry_value): Likewise.
3010 (get_ax_pc): Likewise.
3011 (locexpr_read_variable): Likewise.
3012 (locexpr_read_variable_at_entry): Likewise.
3013 (locexpr_read_needs_frame): Likewise.
3014 (locexpr_describe_location): Likewise.
3015 (locexpr_tracepoint_var_ref): Likewise.
3016 (locexpr_generate_c_location): Likewise.
3017 (loclist_read_variable): Likewise.
3018 (loclist_read_variable_at_entry): Likewise.
3019 (loclist_describe_location): Likewise.
3020 (loclist_tracepoint_var_ref): Likewise.
3021 (loclist_generate_c_location): Likewise.
3022 * dwarf2read.c (line_header_hash_voidp): Likewise.
3023 (line_header_eq_voidp): Likewise.
3024 (dwarf2_has_info): Likewise.
3025 (dwarf2_get_section_info): Likewise.
3026 (locate_dwz_sections): Likewise.
3027 (hash_file_name_entry): Likewise.
3028 (eq_file_name_entry): Likewise.
3029 (delete_file_name_entry): Likewise.
3030 (dw2_setup): Likewise.
3031 (dw2_get_file_names_reader): Likewise.
3032 (dw2_find_pc_sect_compunit_symtab): Likewise.
3033 (hash_signatured_type): Likewise.
3034 (eq_signatured_type): Likewise.
3035 (add_signatured_type_cu_to_table): Likewise.
3036 (create_debug_types_hash_table): Likewise.
3037 (lookup_dwo_signatured_type): Likewise.
3038 (lookup_dwp_signatured_type): Likewise.
3039 (lookup_signatured_type): Likewise.
3040 (hash_type_unit_group): Likewise.
3041 (eq_type_unit_group): Likewise.
3042 (get_type_unit_group): Likewise.
3043 (process_psymtab_comp_unit_reader): Likewise.
3044 (sort_tu_by_abbrev_offset): Likewise.
3045 (process_skeletonless_type_unit): Likewise.
3046 (psymtabs_addrmap_cleanup): Likewise.
3047 (dwarf2_read_symtab): Likewise.
3048 (psymtab_to_symtab_1): Likewise.
3049 (die_hash): Likewise.
3050 (die_eq): Likewise.
3051 (load_full_comp_unit_reader): Likewise.
3052 (reset_die_in_process): Likewise.
3053 (free_cu_line_header): Likewise.
3054 (handle_DW_AT_stmt_list): Likewise.
3055 (hash_dwo_file): Likewise.
3056 (eq_dwo_file): Likewise.
3057 (hash_dwo_unit): Likewise.
3058 (eq_dwo_unit): Likewise.
3059 (create_dwo_cu_reader): Likewise.
3060 (create_dwo_unit_in_dwp_v1): Likewise.
3061 (create_dwo_unit_in_dwp_v2): Likewise.
3062 (lookup_dwo_unit_in_dwp): Likewise.
3063 (dwarf2_locate_dwo_sections): Likewise.
3064 (dwarf2_locate_common_dwp_sections): Likewise.
3065 (dwarf2_locate_v2_dwp_sections): Likewise.
3066 (hash_dwp_loaded_cutus): Likewise.
3067 (eq_dwp_loaded_cutus): Likewise.
3068 (lookup_dwo_cutu): Likewise.
3069 (abbrev_table_free_cleanup): Likewise.
3070 (dwarf2_free_abbrev_table): Likewise.
3071 (find_partial_die_in_comp_unit): Likewise.
3072 (free_line_header_voidp): Likewise.
3073 (follow_die_offset): Likewise.
3074 (follow_die_sig_1): Likewise.
3075 (free_heap_comp_unit): Likewise.
3076 (free_stack_comp_unit): Likewise.
3077 (dwarf2_free_objfile): Likewise.
3078 (per_cu_offset_and_type_hash): Likewise.
3079 (per_cu_offset_and_type_eq): Likewise.
3080 (get_die_type_at_offset): Likewise.
3081 (partial_die_hash): Likewise.
3082 (partial_die_eq): Likewise.
3083 (dwarf2_per_objfile_free): Likewise.
3084 (hash_strtab_entry): Likewise.
3085 (eq_strtab_entry): Likewise.
3086 (add_string): Likewise.
3087 (hash_symtab_entry): Likewise.
3088 (eq_symtab_entry): Likewise.
3089 (delete_symtab_entry): Likewise.
3090 (cleanup_mapped_symtab): Likewise.
3091 (add_indices_to_cpool): Likewise.
3092 (hash_psymtab_cu_index): Likewise.
3093 (eq_psymtab_cu_index): Likewise.
3094 (add_address_entry_worker): Likewise.
3095 (unlink_if_set): Likewise.
3096 (write_one_signatured_type): Likewise.
3097 (save_gdb_index_command): Likewise.
3098 * elfread.c (elf_symtab_read): Likewise.
3099 (elf_gnu_ifunc_cache_hash): Likewise.
3100 (elf_gnu_ifunc_cache_eq): Likewise.
3101 (elf_gnu_ifunc_record_cache): Likewise.
3102 (elf_gnu_ifunc_resolve_by_cache): Likewise.
3103 (elf_get_probes): Likewise.
3104 (probe_key_free): Likewise.
3105 * f-lang.c (builtin_f_type): Likewise.
3106 * frame-base.c (frame_base_append_sniffer): Likewise.
3107 (frame_base_set_default): Likewise.
3108 (frame_base_find_by_frame): Likewise.
3109 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
3110 (frame_unwind_append_unwinder): Likewise.
3111 (frame_unwind_find_by_frame): Likewise.
3112 * frame.c (frame_addr_hash): Likewise.
3113 (frame_addr_hash_eq): Likewise.
3114 (frame_stash_find): Likewise.
3115 (do_frame_register_read): Likewise.
3116 (unwind_to_current_frame): Likewise.
3117 (frame_cleanup_after_sniffer): Likewise.
3118 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
3119 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
3120 * ft32-tdep.c (ft32_frame_cache): Likewise.
3121 * gcore.c (do_bfd_delete_cleanup): Likewise.
3122 (gcore_create_callback): Likewise.
3123 * gdb_bfd.c (hash_bfd): Likewise.
3124 (eq_bfd): Likewise.
3125 (gdb_bfd_open): Likewise.
3126 (free_one_bfd_section): Likewise.
3127 (gdb_bfd_ref): Likewise.
3128 (gdb_bfd_unref): Likewise.
3129 (get_section_descriptor): Likewise.
3130 (gdb_bfd_map_section): Likewise.
3131 (gdb_bfd_crc): Likewise.
3132 (gdb_bfd_mark_parent): Likewise.
3133 (gdb_bfd_record_inclusion): Likewise.
3134 (gdb_bfd_requires_relocations): Likewise.
3135 (print_one_bfd): Likewise.
3136 * gdbtypes.c (type_pair_hash): Likewise.
3137 (type_pair_eq): Likewise.
3138 (builtin_type): Likewise.
3139 (objfile_type): Likewise.
3140 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
3141 (vtable_address_point_offset): Likewise.
3142 (gnuv3_get_vtable): Likewise.
3143 (hash_value_and_voffset): Likewise.
3144 (eq_value_and_voffset): Likewise.
3145 (compare_value_and_voffset): Likewise.
3146 (compute_vtable_size): Likewise.
3147 (gnuv3_get_typeid_type): Likewise.
3148 * go-lang.c (builtin_go_type): Likewise.
3149 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
3150 (bkscm_eq_block_smob): Likewise.
3151 (bkscm_objfile_block_map): Likewise.
3152 (bkscm_del_objfile_blocks): Likewise.
3153 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
3154 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
3155 (gdbscm_disasm_print_address): Likewise.
3156 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
3157 (frscm_eq_frame_smob): Likewise.
3158 (frscm_inferior_frame_map): Likewise.
3159 (frscm_del_inferior_frames): Likewise.
3160 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
3161 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
3162 (ofscm_objfile_smob_from_objfile): Likewise.
3163 * guile/scm-ports.c (ioscm_write): Likewise.
3164 (ioscm_file_port_delete): Likewise.
3165 (ioscm_file_port_rewind): Likewise.
3166 (ioscm_file_port_put): Likewise.
3167 (ioscm_file_port_write): Likewise.
3168 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
3169 (psscm_pspace_smob_from_pspace): Likewise.
3170 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
3171 (scscm_recording_unwind_handler): Likewise.
3172 (gdbscm_with_catch): Likewise.
3173 (scscm_call_0_body): Likewise.
3174 (scscm_call_1_body): Likewise.
3175 (scscm_call_2_body): Likewise.
3176 (scscm_call_3_body): Likewise.
3177 (scscm_call_4_body): Likewise.
3178 (scscm_apply_1_body): Likewise.
3179 (scscm_eval_scheme_string): Likewise.
3180 (gdbscm_safe_eval_string): Likewise.
3181 (scscm_source_scheme_script): Likewise.
3182 (gdbscm_safe_source_script): Likewise.
3183 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
3184 (gdbscm_call_scm_from_stringn): Likewise.
3185 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
3186 (syscm_eq_symbol_smob): Likewise.
3187 (syscm_get_symbol_map): Likewise.
3188 (syscm_del_objfile_symbols): Likewise.
3189 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
3190 (stscm_eq_symtab_smob): Likewise.
3191 (stscm_objfile_symtab_map): Likewise.
3192 (stscm_del_objfile_symtabs): Likewise.
3193 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
3194 (tyscm_eq_type_smob): Likewise.
3195 (tyscm_type_map): Likewise.
3196 (tyscm_copy_type_recursive): Likewise.
3197 (save_objfile_types): Likewise.
3198 * guile/scm-utils.c (extract_arg): Likewise.
3199 * h8300-tdep.c (h8300_frame_cache): Likewise.
3200 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
3201 * hppa-tdep.c (compare_unwind_entries): Likewise.
3202 (find_unwind_entry): Likewise.
3203 (hppa_frame_cache): Likewise.
3204 (hppa_stub_frame_unwind_cache): Likewise.
3205 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
3206 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
3207 (hppaobsd_supply_fpregset): Likewise.
3208 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
3209 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3210 * i386-tdep.c (i386_frame_cache): Likewise.
3211 (i386_epilogue_frame_cache): Likewise.
3212 (i386_sigtramp_frame_cache): Likewise.
3213 (i386_supply_gregset): Likewise.
3214 (i386_collect_gregset): Likewise.
3215 (i386_gdbarch_init): Likewise.
3216 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
3217 (i386obsd_trapframe_cache): Likewise.
3218 * i387-tdep.c (i387_supply_fsave): Likewise.
3219 (i387_collect_fsave): Likewise.
3220 (i387_supply_fxsave): Likewise.
3221 (i387_collect_fxsave): Likewise.
3222 (i387_supply_xsave): Likewise.
3223 (i387_collect_xsave): Likewise.
3224 * ia64-tdep.c (ia64_frame_cache): Likewise.
3225 (ia64_sigtramp_frame_cache): Likewise.
3226 * infcmd.c (attach_command_continuation): Likewise.
3227 (attach_command_continuation_free_args): Likewise.
3228 * inferior.c (restore_inferior): Likewise.
3229 (delete_thread_of_inferior): Likewise.
3230 * inflow.c (inflow_inferior_data_cleanup): Likewise.
3231 (get_inflow_inferior_data): Likewise.
3232 (inflow_inferior_exit): Likewise.
3233 * infrun.c (displaced_step_clear_cleanup): Likewise.
3234 (restore_current_uiout_cleanup): Likewise.
3235 (release_stop_context_cleanup): Likewise.
3236 (do_restore_infcall_suspend_state_cleanup): Likewise.
3237 (do_restore_infcall_control_state_cleanup): Likewise.
3238 (restore_inferior_ptid): Likewise.
3239 * inline-frame.c (block_starting_point_at): Likewise.
3240 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
3241 * jit.c (get_jit_objfile_data): Likewise.
3242 (get_jit_program_space_data): Likewise.
3243 (jit_object_close_impl): Likewise.
3244 (jit_find_objf_with_entry_addr): Likewise.
3245 (jit_breakpoint_deleted): Likewise.
3246 (jit_unwind_reg_set_impl): Likewise.
3247 (jit_unwind_reg_get_impl): Likewise.
3248 (jit_dealloc_cache): Likewise.
3249 (jit_frame_sniffer): Likewise.
3250 (jit_frame_prev_register): Likewise.
3251 (jit_prepend_unwinder): Likewise.
3252 (jit_inferior_exit_hook): Likewise.
3253 (free_objfile_data): Likewise.
3254 * jv-lang.c (jv_per_objfile_free): Likewise.
3255 (get_dynamics_objfile): Likewise.
3256 (get_java_class_symtab): Likewise.
3257 (builtin_java_type): Likewise.
3258 * language.c (language_string_char_type): Likewise.
3259 (language_bool_type): Likewise.
3260 (language_lookup_primitive_type): Likewise.
3261 (language_lookup_primitive_type_as_symbol): Likewise.
3262 * linespec.c (hash_address_entry): Likewise.
3263 (eq_address_entry): Likewise.
3264 (iterate_inline_only): Likewise.
3265 (iterate_name_matcher): Likewise.
3266 (decode_line_2_compare_items): Likewise.
3267 (collect_one_symbol): Likewise.
3268 (compare_symbols): Likewise.
3269 (compare_msymbols): Likewise.
3270 (add_symtabs_to_list): Likewise.
3271 (collect_symbols): Likewise.
3272 (compare_msyms): Likewise.
3273 (add_minsym): Likewise.
3274 (cleanup_linespec_result): Likewise.
3275 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
3276 * linux-nat.c (delete_lwp_cleanup): Likewise.
3277 (count_events_callback): Likewise.
3278 (select_event_lwp_callback): Likewise.
3279 (resume_stopped_resumed_lwps): Likewise.
3280 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
3281 (invalidate_linux_cache_inf): Likewise.
3282 (get_linux_inferior_data): Likewise.
3283 (linux_find_memory_regions_thunk): Likewise.
3284 (linux_make_mappings_callback): Likewise.
3285 (linux_corefile_thread_callback): Likewise.
3286 (find_mapping_size): Likewise.
3287 * linux-thread-db.c (find_new_threads_callback): Likewise.
3288 * lm32-tdep.c (lm32_frame_cache): Likewise.
3289 * m2-lang.c (builtin_m2_type): Likewise.
3290 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
3291 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
3292 (m32r_linux_supply_gregset): Likewise.
3293 (m32r_linux_collect_gregset): Likewise.
3294 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3295 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3296 * m68k-tdep.c (m68k_frame_cache): Likewise.
3297 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3298 (m68kbsd_supply_gregset): Likewise.
3299 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3300 * m88k-tdep.c (m88k_frame_cache): Likewise.
3301 (m88k_supply_gregset): Likewise.
3302
224c3ddb
SM
33032015-09-25 Simon Marchi <simon.marchi@ericsson.com>
3304
3305 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
3306 to allocation result assignment.
3307 * ada-exp.y (write_object_renaming): Likewise.
3308 (write_ambiguous_var): Likewise.
3309 (ada_nget_field_index): Likewise.
3310 (write_var_or_type): Likewise.
3311 * ada-lang.c (ada_decode_symbol): Likewise.
3312 (ada_value_assign): Likewise.
3313 (value_pointer): Likewise.
3314 (cache_symbol): Likewise.
3315 (add_nonlocal_symbols): Likewise.
3316 (ada_name_for_lookup): Likewise.
3317 (symbol_completion_add): Likewise.
3318 (ada_to_fixed_type_1): Likewise.
3319 (ada_get_next_arg): Likewise.
3320 (defns_collected): Likewise.
3321 * ada-lex.l (processId): Likewise.
3322 (processString): Likewise.
3323 * ada-tasks.c (read_known_tasks_array): Likewise.
3324 (read_known_tasks_list): Likewise.
3325 * ada-typeprint.c (decoded_type_name): Likewise.
3326 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
3327 * amd64-tdep.c (amd64_push_arguments): Likewise.
3328 (amd64_displaced_step_copy_insn): Likewise.
3329 (amd64_classify_insn_at): Likewise.
3330 (amd64_relocate_instruction): Likewise.
3331 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3332 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
3333 (initialize_current_architecture): Likewise.
3334 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3335 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
3336 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
3337 (arm_push_dummy_call): Likewise.
3338 (extend_buffer_earlier): Likewise.
3339 (arm_adjust_breakpoint_address): Likewise.
3340 (arm_skip_stub): Likewise.
3341 * auto-load.c (filename_is_in_pattern): Likewise.
3342 (maybe_add_script_file): Likewise.
3343 (maybe_add_script_text): Likewise.
3344 (auto_load_objfile_script_1): Likewise.
3345 * auxv.c (ld_so_xfer_auxv): Likewise.
3346 * ax-general.c (new_agent_expr): Likewise.
3347 (grow_expr): Likewise.
3348 (ax_reg_mask): Likewise.
3349 * bcache.c (bcache_full): Likewise.
3350 * breakpoint.c (program_breakpoint_here_p): Likewise.
3351 * btrace.c (parse_xml_raw): Likewise.
3352 * build-id.c (build_id_to_debug_bfd): Likewise.
3353 * buildsym.c (end_symtab_with_blockvector): Likewise.
3354 * c-exp.y (string_exp): Likewise.
3355 (qualified_name): Likewise.
3356 (write_destructor_name): Likewise.
3357 (operator_stoken): Likewise.
3358 (parse_number): Likewise.
3359 (scan_macro_expansion): Likewise.
3360 (yylex): Likewise.
3361 (c_print_token): Likewise.
3362 * c-lang.c (c_get_string): Likewise.
3363 (emit_numeric_character): Likewise.
3364 * charset.c (wchar_iterate): Likewise.
3365 * cli/cli-cmds.c (complete_command): Likewise.
3366 (make_command): Likewise.
3367 * cli/cli-dump.c (restore_section_callback): Likewise.
3368 (restore_binary_file): Likewise.
3369 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
3370 * cli/cli-script.c (execute_control_command): Likewise.
3371 * cli/cli-setshow.c (do_set_command): Likewise.
3372 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
3373 (read_pe_exported_syms): Likewise.
3374 * coffread.c (coff_read_struct_type): Likewise.
3375 (coff_read_enum_type): Likewise.
3376 * common/btrace-common.c (btrace_data_append): Likewise.
3377 * common/buffer.c (buffer_grow): Likewise.
3378 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
3379 * common/format.c (parse_format_string): Likewise.
3380 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
3381 * common/xml-utils.c (xml_escape_text): Likewise.
3382 * compile/compile-object-load.c (copy_sections): Likewise.
3383 (compile_object_load): Likewise.
3384 * compile/compile-object-run.c (compile_object_run): Likewise.
3385 * completer.c (filename_completer): Likewise.
3386 * corefile.c (read_memory_typed_address): Likewise.
3387 (write_memory_unsigned_integer): Likewise.
3388 (write_memory_signed_integer): Likewise.
3389 (complete_set_gnutarget): Likewise.
3390 * corelow.c (get_core_register_section): Likewise.
3391 * cp-name-parser.y (d_grab): Likewise.
3392 (allocate_info): Likewise.
3393 (cp_new_demangle_parse_info): Likewise.
3394 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
3395 (cp_lookup_symbol_in_namespace): Likewise.
3396 (lookup_namespace_scope): Likewise.
3397 (find_symbol_in_baseclass): Likewise.
3398 (cp_lookup_nested_symbol): Likewise.
3399 (cp_lookup_transparent_type_loop): Likewise.
3400 * cp-support.c (copy_string_to_obstack): Likewise.
3401 (make_symbol_overload_list): Likewise.
3402 (make_symbol_overload_list_namespace): Likewise.
3403 (make_symbol_overload_list_adl_namespace): Likewise.
3404 (first_component_command): Likewise.
3405 * cp-valprint.c (cp_print_value): Likewise.
3406 * ctf.c (ctf_xfer_partial): Likewise.
3407 * d-exp.y (StringExp): Likewise.
3408 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
3409 (lookup_module_scope): Likewise.
3410 (find_symbol_in_baseclass): Likewise.
3411 (d_lookup_nested_symbol): Likewise.
3412 * dbxread.c (find_stab_function_addr): Likewise.
3413 (read_dbx_symtab): Likewise.
3414 (dbx_end_psymtab): Likewise.
3415 (cp_set_block_scope): Likewise.
3416 * dcache.c (dcache_alloc): Likewise.
3417 * demangle.c (_initialize_demangler): Likewise.
3418 * dicos-tdep.c (dicos_load_module_p): Likewise.
3419 * dictionary.c (dict_create_hashed_expandable): Likewise.
3420 (dict_create_linear_expandable): Likewise.
3421 (expand_hashtable): Likewise.
3422 (add_symbol_linear_expandable): Likewise.
3423 * dwarf2-frame.c (add_cie): Likewise.
3424 (add_fde): Likewise.
3425 (dwarf2_build_frame_info): Likewise.
3426 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
3427 (dwarf_expr_fetch_address): Likewise.
3428 (add_piece): Likewise.
3429 (execute_stack_op): Likewise.
3430 * dwarf2loc.c (chain_candidate): Likewise.
3431 (dwarf_entry_parameter_to_value): Likewise.
3432 (read_pieced_value): Likewise.
3433 (write_pieced_value): Likewise.
3434 * dwarf2read.c (dwarf2_read_section): Likewise.
3435 (add_type_unit): Likewise.
3436 (read_comp_units_from_section): Likewise.
3437 (fixup_go_packaging): Likewise.
3438 (dwarf2_compute_name): Likewise.
3439 (dwarf2_physname): Likewise.
3440 (create_dwo_unit_in_dwp_v1): Likewise.
3441 (create_dwo_unit_in_dwp_v2): Likewise.
3442 (read_func_scope): Likewise.
3443 (read_call_site_scope): Likewise.
3444 (dwarf2_attach_fields_to_type): Likewise.
3445 (process_structure_scope): Likewise.
3446 (mark_common_block_symbol_computed): Likewise.
3447 (read_common_block): Likewise.
3448 (abbrev_table_read_table): Likewise.
3449 (guess_partial_die_structure_name): Likewise.
3450 (fixup_partial_die): Likewise.
3451 (add_file_name): Likewise.
3452 (dwarf2_const_value_data): Likewise.
3453 (dwarf2_const_value_attr): Likewise.
3454 (build_error_marker_type): Likewise.
3455 (guess_full_die_structure_name): Likewise.
3456 (anonymous_struct_prefix): Likewise.
3457 (typename_concat): Likewise.
3458 (dwarf2_canonicalize_name): Likewise.
3459 (dwarf2_name): Likewise.
3460 (write_constant_as_bytes): Likewise.
3461 (dwarf2_fetch_constant_bytes): Likewise.
3462 (copy_string): Likewise.
3463 (parse_macro_definition): Likewise.
3464 * elfread.c (elf_symfile_segments): Likewise.
3465 (elf_rel_plt_read): Likewise.
3466 (elf_gnu_ifunc_resolve_by_cache): Likewise.
3467 (elf_gnu_ifunc_resolve_by_got): Likewise.
3468 (elf_read_minimal_symbols): Likewise.
3469 (elf_gnu_ifunc_record_cache): Likewise.
3470 * event-top.c (top_level_prompt): Likewise.
3471 (command_line_handler): Likewise.
3472 * exec.c (resize_section_table): Likewise.
3473 * expprint.c (print_subexp_standard): Likewise.
3474 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3475 * findcmd.c (parse_find_args): Likewise.
3476 * findvar.c (address_from_register): Likewise.
3477 * frame.c (get_prev_frame_always): Likewise.
3478 * gdb_bfd.c (gdb_bfd_ref): Likewise.
3479 (get_section_descriptor): Likewise.
3480 * gdb_obstack.c (obconcat): Likewise.
3481 (obstack_strdup): Likewise.
3482 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
3483 (create_set_type): Likewise.
3484 (lookup_unsigned_typename): Likewise.
3485 (lookup_signed_typename): Likewise.
3486 (resolve_dynamic_union): Likewise.
3487 (resolve_dynamic_struct): Likewise.
3488 (add_dyn_prop): Likewise.
3489 (copy_dynamic_prop_list): Likewise.
3490 (arch_flags_type): Likewise.
3491 (append_composite_type_field_raw): Likewise.
3492 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
3493 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
3494 * go-exp.y (string_exp): Likewise.
3495 * go-lang.c (go_demangle): Likewise.
3496 * guile/guile.c (compute_scheme_string): Likewise.
3497 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3498 (gdbscm_canonicalize_command_name): Likewise.
3499 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
3500 (ioscm_init_memory_port): Likewise.
3501 (ioscm_reinit_memory_port): Likewise.
3502 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
3503 (gdbscm_gc_dup_argv): Likewise.
3504 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3505 * hppa-tdep.c (internalize_unwinds): Likewise.
3506 (read_unwind_info): Likewise.
3507 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
3508 (windows_core_xfer_shared_libraries): Likewise.
3509 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3510 (i386_stap_parse_special_token_triplet): Likewise.
3511 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3512 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3513 * inf-child.c (inf_child_fileio_readlink): Likewise.
3514 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3515 (inf_ptrace_store_register): Likewise.
3516 * infrun.c (follow_exec): Likewise.
3517 (displaced_step_prepare_throw): Likewise.
3518 (save_stop_context): Likewise.
3519 (save_infcall_suspend_state): Likewise.
3520 * jit.c (jit_read_descriptor): Likewise.
3521 (jit_read_code_entry): Likewise.
3522 (jit_symtab_line_mapping_add_impl): Likewise.
3523 (finalize_symtab): Likewise.
3524 (jit_unwind_reg_get_impl): Likewise.
3525 * jv-exp.y (QualifiedName): Likewise.
3526 * jv-lang.c (get_java_utf8_name): Likewise.
3527 (type_from_class): Likewise.
3528 (java_demangle_type_signature): Likewise.
3529 (java_class_name_from_physname): Likewise.
3530 * jv-typeprint.c (java_type_print_base): Likewise.
3531 * jv-valprint.c (java_value_print): Likewise.
3532 * language.c (add_language): Likewise.
3533 * linespec.c (add_sal_to_sals_basic): Likewise.
3534 (add_sal_to_sals): Likewise.
3535 (decode_objc): Likewise.
3536 (find_linespec_symbols): Likewise.
3537 * linux-fork.c (fork_save_infrun_state): Likewise.
3538 * linux-nat.c (linux_nat_detach): Likewise.
3539 (linux_nat_fileio_readlink): Likewise.
3540 * linux-record.c (record_linux_sockaddr): Likewise.
3541 (record_linux_msghdr): Likewise.
3542 (Do): Likewise.
3543 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
3544 (linux_collect_regset_section_cb): Likewise.
3545 (linux_get_siginfo_data): Likewise.
3546 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
3547 (try_thread_db_load_from_dir): Likewise.
3548 (thread_db_load_search): Likewise.
3549 (info_auto_load_libthread_db): Likewise.
3550 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
3551 (m32c_m16c_pointer_to_address): Likewise.
3552 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
3553 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3554 * machoread.c (macho_check_dsym): Likewise.
3555 * macroexp.c (resize_buffer): Likewise.
3556 (gather_arguments): Likewise.
3557 (maybe_expand): Likewise.
3558 * macrotab.c (new_macro_key): Likewise.
3559 (new_source_file): Likewise.
3560 (new_macro_definition): Likewise.
3561 * mdebugread.c (parse_symbol): Likewise.
3562 (parse_type): Likewise.
3563 (parse_partial_symbols): Likewise.
3564 (psymtab_to_symtab_1): Likewise.
3565 * mem-break.c (default_memory_insert_breakpoint): Likewise.
3566 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
3567 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
3568 (mi_cmd_data_read_memory_bytes): Likewise.
3569 (mi_cmd_data_write_memory_bytes): Likewise.
3570 (mi_cmd_trace_frame_collected): Likewise.
3571 * mi/mi-parse.c (mi_parse_argv): Likewise.
3572 (mi_parse): Likewise.
3573 * minidebug.c (lzma_open): Likewise.
3574 (lzma_pread): Likewise.
3575 * mips-tdep.c (mips_read_fp_register_single): Likewise.
3576 (mips_print_fp_register): Likewise.
3577 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
3578 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3579 * mt-tdep.c (mt_register_name): Likewise.
3580 (mt_registers_info): Likewise.
3581 (mt_push_dummy_call): Likewise.
3582 * namespace.c (add_using_directive): Likewise.
3583 * nat/linux-btrace.c (perf_event_read): Likewise.
3584 (linux_enable_bts): Likewise.
3585 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
3586 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
3587 * nto-tdep.c (nto_find_and_open_solib): Likewise.
3588 (nto_parse_redirection): Likewise.
3589 * objc-lang.c (objc_demangle): Likewise.
3590 (find_methods): Likewise.
3591 * objfiles.c (get_objfile_bfd_data): Likewise.
3592 (set_objfile_main_name): Likewise.
3593 (allocate_objfile): Likewise.
3594 (objfile_relocate): Likewise.
3595 (update_section_map): Likewise.
3596 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
3597 * p-exp.y (exp): Likewise.
3598 (yylex): Likewise.
3599 * p-valprint.c (pascal_object_print_value): Likewise.
3600 * parse.c (initialize_expout): Likewise.
3601 (mark_completion_tag): Likewise.
3602 (copy_name): Likewise.
3603 (parse_float): Likewise.
3604 (type_stack_reserve): Likewise.
3605 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3606 (ppu2spu_prev_register): Likewise.
3607 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
3608 * printcmd.c (printf_wide_c_string): Likewise.
3609 (printf_pointer): Likewise.
3610 * probe.c (parse_probes): Likewise.
3611 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3612 (cmdpy_init): Likewise.
3613 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
3614 * python/py-symtab.c (set_sal): Likewise.
3615 * python/py-unwind.c (pyuw_sniffer): Likewise.
3616 * python/python.c (python_interactive_command): Likewise.
3617 (compute_python_string): Likewise.
3618 * ravenscar-thread.c (get_running_thread_id): Likewise.
3619 * record-full.c (record_full_exec_insn): Likewise.
3620 (record_full_core_open_1): Likewise.
3621 * regcache.c (regcache_raw_read_signed): Likewise.
3622 (regcache_raw_read_unsigned): Likewise.
3623 (regcache_cooked_read_signed): Likewise.
3624 (regcache_cooked_read_unsigned): Likewise.
3625 * remote-fileio.c (remote_fileio_func_open): Likewise.
3626 (remote_fileio_func_rename): Likewise.
3627 (remote_fileio_func_unlink): Likewise.
3628 (remote_fileio_func_stat): Likewise.
3629 (remote_fileio_func_system): Likewise.
3630 * remote-mips.c (mips_xfer_memory): Likewise.
3631 (mips_load_srec): Likewise.
3632 (pmon_end_download): Likewise.
3633 * remote.c (new_remote_state): Likewise.
3634 (map_regcache_remote_table): Likewise.
3635 (remote_register_number_and_offset): Likewise.
3636 (init_remote_state): Likewise.
3637 (get_memory_packet_size): Likewise.
3638 (remote_pass_signals): Likewise.
3639 (remote_program_signals): Likewise.
3640 (remote_start_remote): Likewise.
3641 (remote_check_symbols): Likewise.
3642 (remote_query_supported): Likewise.
3643 (extended_remote_attach): Likewise.
3644 (process_g_packet): Likewise.
3645 (store_registers_using_G): Likewise.
3646 (putpkt_binary): Likewise.
3647 (read_frame): Likewise.
3648 (compare_sections_command): Likewise.
3649 (remote_hostio_pread): Likewise.
3650 (remote_hostio_readlink): Likewise.
3651 (remote_file_put): Likewise.
3652 (remote_file_get): Likewise.
3653 (remote_pid_to_exec_file): Likewise.
3654 (_initialize_remote): Likewise.
3655 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3656 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3657 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3658 (bfd_uses_spe_extensions): Likewise.
3659 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
3660 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
3661 * solib-dsbt.c (decode_loadmap): Likewise.
3662 (fetch_loadmap): Likewise.
3663 (scan_dyntag): Likewise.
3664 (enable_break): Likewise.
3665 (dsbt_relocate_main_executable): Likewise.
3666 * solib-frv.c (fetch_loadmap): Likewise.
3667 (enable_break2): Likewise.
3668 (frv_relocate_main_executable): Likewise.
3669 * solib-spu.c (spu_relocate_main_executable): Likewise.
3670 (spu_bfd_open): Likewise.
3671 * solib-svr4.c (lm_info_read): Likewise.
3672 (read_program_header): Likewise.
3673 (find_program_interpreter): Likewise.
3674 (scan_dyntag): Likewise.
3675 (elf_locate_base): Likewise.
3676 (open_symbol_file_object): Likewise.
3677 (read_program_headers_from_bfd): Likewise.
3678 (svr4_relocate_main_executable): Likewise.
3679 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
3680 * solib.c (solib_find_1): Likewise.
3681 (exec_file_find): Likewise.
3682 (solib_find): Likewise.
3683 * source.c (openp): Likewise.
3684 (print_source_lines_base): Likewise.
3685 (forward_search_command): Likewise.
3686 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
3687 * spu-tdep.c (spu2ppu_prev_register): Likewise.
3688 (spu_get_overlay_table): Likewise.
3689 * stabsread.c (patch_block_stabs): Likewise.
3690 (define_symbol): Likewise.
3691 (again:): Likewise.
3692 (read_member_functions): Likewise.
3693 (read_one_struct_field): Likewise.
3694 (read_enum_type): Likewise.
3695 (common_block_start): Likewise.
3696 * stack.c (read_frame_arg): Likewise.
3697 (backtrace_command): Likewise.
3698 * stap-probe.c (stap_parse_register_operand): Likewise.
3699 * symfile.c (syms_from_objfile_1): Likewise.
3700 (find_separate_debug_file): Likewise.
3701 (load_command): Likewise.
3702 (load_progress): Likewise.
3703 (load_section_callback): Likewise.
3704 (reread_symbols): Likewise.
3705 (add_filename_language): Likewise.
3706 (allocate_compunit_symtab): Likewise.
3707 (read_target_long_array): Likewise.
3708 (simple_read_overlay_table): Likewise.
3709 * symtab.c (symbol_set_names): Likewise.
3710 (resize_symbol_cache): Likewise.
3711 (rbreak_command): Likewise.
3712 (completion_list_add_name): Likewise.
3713 (completion_list_objc_symbol): Likewise.
3714 (add_filename_to_list): Likewise.
3715 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
3716 * target-memory.c (target_write_memory_blocks): Likewise.
3717 * target.c (target_read_string): Likewise.
3718 (read_whatever_is_readable): Likewise.
3719 (target_read_alloc_1): Likewise.
3720 (simple_search_memory): Likewise.
3721 (target_fileio_read_alloc_1): Likewise.
3722 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3723 * top.c (command_line_input): Likewise.
3724 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3725 * tracefile.c (tracefile_fetch_registers): Likewise.
3726 * tracepoint.c (add_memrange): Likewise.
3727 (init_collection_list): Likewise.
3728 (add_aexpr): Likewise.
3729 (trace_dump_actions): Likewise.
3730 (parse_trace_status): Likewise.
3731 (parse_tracepoint_definition): Likewise.
3732 (parse_tsv_definition): Likewise.
3733 (parse_static_tracepoint_marker_definition): Likewise.
3734 * tui/tui-file.c (tui_sfileopen): Likewise.
3735 (tui_file_adjust_strbuf): Likewise.
3736 * tui/tui-io.c (tui_expand_tabs): Likewise.
3737 * tui/tui-source.c (tui_set_source_content): Likewise.
3738 * typeprint.c (find_global_typedef): Likewise.
3739 * ui-file.c (do_ui_file_xstrdup): Likewise.
3740 (ui_file_obsavestring): Likewise.
3741 (mem_file_write): Likewise.
3742 * utils.c (make_hex_string): Likewise.
3743 (get_regcomp_error): Likewise.
3744 (puts_filtered_tabular): Likewise.
3745 (gdb_realpath_keepfile): Likewise.
3746 (ldirname): Likewise.
3747 (gdb_bfd_errmsg): Likewise.
3748 (substitute_path_component): Likewise.
3749 * valops.c (search_struct_method): Likewise.
3750 (find_oload_champ_namespace_loop): Likewise.
3751 * valprint.c (print_decimal_chars): Likewise.
3752 (read_string): Likewise.
3753 (generic_emit_char): Likewise.
3754 * varobj.c (varobj_delete): Likewise.
3755 (varobj_value_get_print_value): Likewise.
3756 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
3757 * windows-tdep.c (display_one_tib): Likewise.
3758 * xcoffread.c (read_xcoff_symtab): Likewise.
3759 (process_xcoff_symbol): Likewise.
3760 (swap_sym): Likewise.
3761 (scan_xcoff_symtab): Likewise.
3762 (xcoff_initial_scan): Likewise.
3763 * xml-support.c (gdb_xml_end_element): Likewise.
3764 (xml_process_xincludes): Likewise.
3765 (xml_fetch_content_from_file): Likewise.
3766 * xml-syscall.c (xml_list_of_syscalls): Likewise.
3767 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3768
623fb775 37692015-09-23 James Bowman <james.bowman@ftdichip.com>
3770
3771 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
3772 instead of builtin_func_ptr.
3773 (ft32_pointer_to_address): New function.
3774 (ft32_address_class_type_flags): New function.
3775 (ft32_address_class_type_flags_to_name): New function.
3776 (ft32_address_class_name_to_type_flags): New function.
3777 (ft32_gdbarch_init): Set tdep->pc_type. Call
3778 set_gdbarch_pointer_to_address,
3779 set_gdbarch_address_class_type_flags
3780 set_gdbarch_address_class_name_to_type_flags,
3781 and set_gdbarch_address_class_type_flags_to_name.
3782 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
3783
e6c2c623
PMR
37842015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
3785
3786 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
3787 value is a reference, actually dereference it in order to get
3788 the underlying value.
3789
bc1f8cda
SM
37902015-09-22 Simon Marchi <simon.marchi@ericsson.com>
3791
3792 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
3793
acaa662f
SM
37942015-09-21 Simon Marchi <simon.marchi@ericsson.com>
3795
3796 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
3797 * linespec.c (linespec_lexer_lex_string): Same.
3798
4d9d419e
PL
37992015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3800
3801 * NEWS: Mention support for fast tracepoints on aarch64-linux.
3802
6ec5f4be
PL
38032015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3804
3805 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
3806 variable. Call aarch64_decode_adr instead of
3807 aarch64_decode_adrp.
3808 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
3809 (aarch64_decode_adr): New function declaration.
3810 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
3811 (aarch64_decode_adr): New function, factored out from
3812 aarch64_decode_adrp to decode both adr and adrp instructions.
3813
787749ea
PL
38142015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3815
3816 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
3817 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
3818 (aarch64-insn.o): New rule.
3819 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
3820 (aarch64*-*-linux*): Likewise.
3821 * arch/aarch64-insn.c: New file.
3822 * arch/aarch64-insn.h: New file.
3823 * aarch64-tdep.c: Include arch/aarch64-insn.h.
3824 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
3825 arch/aarch64-insn.h.
3826 (decode_add_sub_imm): Rename to ...
3827 (aarch64_decode_add_sub_imm): ... this.
3828 (decode_adrp): Rename to ...
3829 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
3830 Declare in arch/aarch64-insn.h.
3831 (decode_b): Rename to ...
3832 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
3833 Declare in arch/aarch64-insn.h.
3834 (decode_bcond): Rename to ...
3835 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
3836 Declare in arch/aarch64-insn.h.
3837 (decode_br): Rename to ...
3838 (aarch64_decode_br): ... this.
3839 (decode_cb): Rename to ...
3840 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
3841 Declare in arch/aarch64-insn.h.
3842 (decode_eret): Rename to ...
3843 (aarch64_decode_eret): ... this.
3844 (decode_movz): Rename to ...
3845 (aarch64_decode_movz): ... this.
3846 (decode_orr_shifted_register_x): Rename to ...
3847 (aarch64_decode_orr_shifted_register_x): ... this.
3848 (decode_ret): Rename to ...
3849 (aarch64_decode_ret): ... this.
3850 (decode_stp_offset): Rename to ...
3851 (aarch64_decode_stp_offset): ... this.
3852 (decode_stp_offset_wb): Rename to ...
3853 (aarch64_decode_stp_offset_wb): ... this.
3854 (decode_stur): Rename to ...
3855 (aarch64_decode_stur): ... this.
3856 (decode_tb): Rename to ...
3857 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
3858 Declare in arch/aarch64-insn.h.
3859 (aarch64_analyze_prologue): Adjust calls to renamed functions.
3860
183dc7ec
DE
38612015-09-20 Doug Evans <xdje42@gmail.com>
3862
3863 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
3864
2ee7123e
DE
38652015-09-20 Doug Evans <xdje42@gmail.com>
3866
3867 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
3868 variable name that collides with a parameter.
3869
7d1c9c9b
JB
38702015-09-20 Joel Brobecker <brobecker@adacore.com>
3871
3872 * dwarf2loc.c (locexpr_get_frame_base): Renames
3873 block_op_get_frame_base.
3874 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
3875 block_op_get_frame_base by reference to locexpr_get_frame_base.
3876 (loclist_get_frame_base): New function, near identical copy of
3877 locexpr_get_frame_base.
3878 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
3879 block_op_get_frame_base by reference to loclist_get_frame_base.
3880
7dc7c195
DE
38812015-09-19 Doug Evans <xdje42@gmail.com>
3882
3883 * ravenscar-thread.c (ravenscar_inferior_created): Replace
3884 current_inferior ()->gdbarch with its wrapper target_gdbarch.
3885
be550b6e
DE
38862015-09-18 Doug Evans <xdje42@gmail.com>
3887
3888 * linux-thread-db.c (record_thread): Return the created thread.
3889 (thread_from_lwp): Likewise.
3890 (thread_db_get_thread_local_address): Update.
3891
615b3f62
DE
38922015-09-18 Doug Evans <xdje42@gmail.com>
3893
3894 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
3895 move only member demangled_name up. All uses updated.
3896
015d2e7e
DE
38972015-09-18 Doug Evans <xdje42@gmail.com>
3898
3899 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
3900 kind of minimal symbol in the error message.
3901 * objfiles.c (objfile_flavour_name): New function.
3902 * objfiles.h (objfile_flavour_name): Declare.
3903
a0cc84cd
YQ
39042015-09-18 Yao Qi <yao.qi@linaro.org>
3905
3906 * nat/aarch64-linux.c: Include elf/common.h,
3907 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
3908 (aarch64_ps_get_thread_area): New function.
3909 * nat/aarch64-linux.h: Include gdb_proc_service.h.
3910 (aarch64_ps_get_thread_area): Declare.
3911 * aarch64-linux-nat.c (ps_get_thread_area): Call
3912 aarch64_ps_get_thread_area.
3913
d2939ba2
MM
39142015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3915
3916 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
3917
f2665db5
MM
39182015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3919
3920 * NEWS: Announce new scheduler-locking mode.
3921 * infrun.c (schedlock_replay): New.
3922 (scheduler_enums): Add schedlock_replay.
3923 (scheduler_mode): Change default to schedlock_replay.
3924 (user_visible_resume_ptid): Handle schedlock_replay.
3925 (clear_proceed_status_thread): Stop replaying if resumed thread is
3926 not replaying.
3927 (schedlock_applies): Handle schedlock_replay.
3928 (_initialize_infrun): Document new scheduler-locking mode.
3929 * record-btrace.c (record_btrace_resume): Remove code to stop other
3930 threads when not replaying the resumed thread.
3931
7ff27e9b
MM
39322015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3933
3934 * record-btrace.c ((record_btrace_will_replay): New.
3935 (init_record_btrace_ops): Initialize to_record_will_replay.
3936 * record-full.c ((record_full_will_replay): New.
3937 (init_record_full_ops): Initialize to_record_will_replay.
3938 * target-delegates.c: Regenerated.
3939 * target.c (target_record_will_replay): New.
3940 * target.h (struct target_ops) <to_record_will_replay>: New.
3941 (target_record_will_replay): New.
3942
797094dd
MM
39432015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3944
3945 * record-btrace.c (record_btrace_resume): Call
3946 target_record_stop_replaying.
3947 (record_btrace_stop_replaying_all): New.
3948 (init_record_btrace_ops): Initialize to_record_stop_replaying.
3949 * record-full.c (record_full_stop_replaying): New.
3950 (init_record_full_ops ): Initialize to_record_stop_replaying.
3951 * target-delegates.c: Regenerated.
3952 * target.c (target_record_stop_replaying): New.
3953 * target.h (struct target_ops) <to_record_stop_replaying>: New.
3954 (target_record_stop_replaying): New.
3955
4d10e986
MM
39562015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3957
3958 * record-btrace.c (record_btrace_xfer_partial)
3959 (record_btrace_store_registers, record_btrace_prepare_to_store):
3960 Call record_btrace_is_replaying with inferior_ptid instead of
3961 minus_one_ptid.
3962 (record_btrace_store_registers): Change error message.
3963
a52eab48
MM
39642015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3965
3966 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
3967 Update users to pass minus_one_ptid.
3968 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
3969 * record.c (cmd_record_delete): Pass inferior_ptid to
3970 target_record_is_replaying.
3971 * target-delegates.c: Regenerated.
3972 * target.c (target_record_is_replaying): Add ptid argument.
3973 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
3974 argument.
3975 (target_record_is_replaying): Add ptid argument.
3976
cbb55fa7
MM
39772015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3978
3979 * record-btrace.c (record_btrace_open): Remove non_stop check.
3980 * NEWS: Announce that record btrace supports non-stop mode.
3981
d1988021
MM
39822015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3983
3984 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
3985 in the TARKET_WAITKIND_NO_HISTORY case.
3986
a6b5be76
MM
39872015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3988
3989 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
3990 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
3991
ec71cc2f
MM
39922015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3993
3994 * record-btrace.c (get_thread_current_frame): New.
3995 (record_btrace_start_replaying): Call get_thread_current_frame.
3996
0ca912df
MM
39972015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3998
3999 * record-btrace.c (record_btrace_resume_thread): A move request
4000 overwrites a previous move request.
4001 (record_btrace_find_resume_thread): Removed.
4002 (record_btrace_resume): Resume all requested threads.
4003
e3cfc1c7
MM
40042015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4005
4006 * record-btrace.c: Include vec.h.
4007 (record_btrace_find_thread_to_move): Removed.
4008 (btrace_step_no_resumed, btrace_step_again)
4009 (record_btrace_stop_replaying_at_end): New.
4010 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
4011 (record_btrace_single_step_forward): Remove calls to
4012 record_btrace_stop_replaying.
4013 (record_btrace_step_thread): Do only one step for BTHR_CONT and
4014 BTHR_RCONT. Keep threads at the end of their history moving.
4015 (record_btrace_wait): Call record_btrace_step_thread for all threads
4016 until one reports an event. Call record_btrace_stop_replaying_at_end
4017 for the eventing thread.
4018
cf8f8f0c
MM
40192015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4020
4021 * record-btrace.c (record_btrace_single_step_forward): Return
4022 NO_HISTORY if a step brings us to the end of the execution history.
4023
011c71b6
MM
40242015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4025
4026 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
4027 to ...
4028 (record_btrace_single_step_forward): ... here and
4029 (record_btrace_single_step_backward): ... here.
4030
d825d248
MM
40312015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4032
4033 * record-btrace.c (btrace_step_spurious)
4034 (record_btrace_single_step_forward)
4035 (record_btrace_single_step_backward): New.
4036 (record_btrace_step_thread): Call record_btrace_single_step_forward
4037 and record_btrace_single_step_backward.
4038
3c615f99
MM
40392015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4040
4041 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
4042 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
4043
987e68b1
MM
40442015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4045
4046 * record-btrace.c (btrace_thread_flag_to_str)
4047 (record_btrace_cancel_resume): New.
4048 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
4049 (record_btrace_resume): Print execution direction.
4050 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
4051 (record_btrace_wait): Call record_btrace_cancel_resume.
4052
6e4879f0
MM
40532015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4054
4055 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
4056 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
4057 (record_btrace_find_thread_to_move): Also accept threads that have
4058 BTHR_STOP set.
4059 (btrace_step_stopped_on_request, record_btrace_stop): New.
4060 (record_btrace_step_thread): Support BTHR_STOP.
4061 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
4062 (init_record_btrace_ops): Initialize to_stop.
4063
5953356c
MM
40642015-09-18 Markus Metzger <markus.t.metzger@intel.com>
4065
4066 * record-btrace.c (record_btrace_wait): Replace non_stop check with
4067 target_is_non_stop_p ().
4068
bfca584f
PMR
40692015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
4070
4071 * ada-typeprint.c (print_array_type): Do not describe arrays as
4072 packed when they embed dynamic elements.
4073
5382cfab
PW
40742015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4075
4076 * symtab.h (address_class): Document that TLS variables
4077 are handled by LOC_UNRESOLVED.
4078 * findvar.c (default_read_var_value): Don't relocate TLS variables.
4079 * printcmd.c (address_info): Don't relocate TLS variables.
4080
b277c936
PL
40812015-09-15 Pierre Langlois <pierre.langlois@arm.com>
4082
4083 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
4084 (decode_adrp): Likewise.
4085 (decode_b): Likewise.
4086 (decode_bcond): Likewise.
4087 (decode_br): Likewise.
4088 (decode_cb): Likewise.
4089 (decode_eret): Likewise.
4090 (decode_movz): Likewise.
4091 (decode_orr_shifted_register_x): Likewise.
4092 (decode_ret): Likewise.
4093 (decode_stp_offset): Likewise.
4094 (decode_stp_offset_wb): Likewise.
4095 (decode_stur): Likewise.
4096 (decode_tb): Likewise.
4097 (aarch64_analyze_prologue): Likewise.
4098 (pass_in_x): Likewise.
4099 (pass_in_v): Likewise.
4100 (pass_on_stack): Likewise.
4101 (aarch64_push_dummy_call): Likewise.
4102 (aarch64_extract_return_value): Likewise.
4103 (aarch64_store_return_value): Likewise.
4104 (aarch64_return_value): Likewise.
4105 (aarch64_record_asimd_load_store): Likewise.
4106 (aarch64_record_load_store): Likewise.
4107 (aarch64_record_data_proc_simd_fp): Likewise.
4108
141c5cc4
JK
41092015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4110
4111 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
4112 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
4113 (ppc64_skip_trampoline_code_1): ... here.
4114 (ppc64_skip_trampoline_code): New wrapper function.
4115 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
4116
750ce8d1
YQ
41172015-09-15 Yao Qi <yao.qi@linaro.org>
4118
4119 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
4120 function.
4121 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
4122 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
4123 if target_can_do_single_step returns 1.
4124 * remote.c (struct vCont_action_support) <s, S>: New fields.
4125 (PACKET_vContSupported): New enum.
4126 (remote_protocol_features): New element for vContSupported.
4127 (remote_query_supported): Append "vContSupported+".
4128 (remote_vcont_probe): Remove support_s and support_S, use
4129 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
4130 vCont packet if c and C actions are not supported.
4131 (remote_can_do_single_step): New function.
4132 (init_remote_ops): Install it to to_can_do_single_step.
4133 (_initialize_remote): Call add_packet_config_cmd.
4134 * target.h (struct target_ops) <to_can_do_single_step>: New field.
4135 (target_can_do_single_step): New macro.
4136 * target-delegates.c: Re-generated.
4137
ade90bde
YQ
41382015-09-15 Yao Qi <yao.qi@linaro.org>
4139
4140 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
4141 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
4142 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
4143 New function.
4144 (aarch64_siginfo_from_compat_siginfo): New function.
4145 * nat/aarch64-linux.h: Include signal.h.
4146 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
4147 (compat_timer_t, compat_clock_t): Likewise.
4148 (struct compat_timeval): New.
4149 (union compat_sigval): New.
4150 (struct compat_siginfo): New.
4151 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
4152 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
4153 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
4154 (cpt_si_band, cpt_si_fd): Likewise.
4155
4c2f2a79
PA
41562015-09-14 Pedro Alves <palves@redhat.com>
4157
4158 * infrun.c (current_stop_id): New global.
4159 (get_stop_id, new_stop_id): New functions.
4160 (fetch_inferior_event): Handle normal_stop proceeding the target.
4161 (struct stop_context): New.
4162 (save_stop_context, release_stop_context_cleanup)
4163 (stop_context_changed): New functions.
4164 (normal_stop): Return true if the hook-stop changes the stop
4165 context.
4166 * infrun.h (get_stop_id): Declare.
4167 (normal_stop): Now returns int. Add documentation.
4168
919e6dbe
PMR
41692015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
4170
4171 * ada-lang.c (ada_value_ptr_subscript): Update the heading
4172 comment. Handle packed arrays.
4173
b027a8fa
PA
41742015-09-14 Pedro Alves <palves@redhat.com>
4175
4176 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
4177 mention of maint set/show target-non-stop.
4178
b459a59b
DB
41792015-09-11 Don Breazeal <donb@codesourcery.com>
4180
4181 * NEWS: Announce new remote packets for the exec-events
4182 feature and the exec-events feature and associated commands.
4183
d46addbb
DB
41842015-09-11 Don Breazeal <donb@codesourcery.com>
4185
4186 * remote.c (remote_exec_event_p): New function.
4187 (remote_insert_exec_catchpoint): New function.
4188 (remote_remove_exec_catchpoint): New function.
4189 (init_extended_remote_ops): Initialize extended_remote_ops
4190 members to_insert_exec_catchpoint and
4191 to_remove_exec_catchpoint.
4192
94585166
DB
41932015-09-11 Don Breazeal <donb@codesourcery.com>
4194 Luis Machado <lgustavo@codesourcery.com>
4195
4196 * infrun.c (follow_exec): Use process-style ptid for
4197 exec message. Call add_inferior_with_spaces and
4198 target_follow_exec.
4199 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
4200 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
4201 * remote.c (remote_pspace_data): New static variable.
4202 (remote_pspace_data_cleanup): New function.
4203 (get_remote_exec_file): New function.
4204 (set_remote_exec_file_1): New function.
4205 (set_remote_exec_file): New function.
4206 (show_remote_exec_file): New function.
4207 (remote_exec_file): Delete static variable.
4208 (anonymous enum) <PACKET_exec_event_feature>: New
4209 enumeration constant.
4210 (remote_protocol_features): Add entry for exec-events feature.
4211 (remote_query_supported): Add client side of qSupported query
4212 for exec-events feature.
4213 (remote_follow_exec): New function.
4214 (remote_parse_stop_reply): Handle 'exec' stop reason.
4215 (extended_remote_run, extended_remote_create_inferior): Call
4216 get_remote_exec_file and set_remote_exec_file_1.
4217 (init_extended_remote_ops) <to_follow_exec>: Initialize new
4218 member.
4219 (_initialize_remote): Call
4220 register_program_space_data_with_cleanup. Call
4221 add_packet_config_cmd for remote exec-events feature.
4222 Modify call to add_setshow_string_noescape_cmd for exec-file
4223 to use new functions set_remote_exec_file and
4224 show_remote_exec_file.
4225 * target-debug.h, target-delegates.c: Regenerated.
4226 * target.c (target_follow_exec): New function.
4227 * target.h (struct target_ops) <to_follow_exec>: New member.
4228 (target_follow_exec): Declare new function.
4229
669e74e8
PL
42302015-09-11 Pierre Langlois <pierre.langlois@arm.com>
4231
4232 * aarch64-tdep.c (decode_cb): Move up comment describing the
4233 encoding.
4234 (decode_tb): Fix a typo in comment above the function. Move up
4235 comment describing the encoding.
4236
4d50586d
PL
42372015-09-11 Pierre Langlois <pierre.langlois@arm.com>
4238
4239 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
4240
6dcaef99
MMN
42412015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
4242
4243 PR gdb/18947
4244 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
4245 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
4246
5da1a4d3
SM
42472015-09-10 Simon Marchi <simon.marchi@ericsson.com>
4248
4249 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
4250 operations.
4251
108d56a4
SM
42522015-09-10 Simon Marchi <simon.marchi@ericsson.com>
4253
4254 * ada-lang.c (ada_search_struct_field): Constify parameters
4255 and/or variables..
4256 (xget_renaming_scope): Likewise.
4257 (ada_is_redundant_range_encoding): Likewise.
4258 (scan_discrim_bound): Likewise.
4259 (to_fixed_range_type): Likewise.
4260
dd2e65cc
YQ
42612015-09-10 Yao Qi <yao.qi@linaro.org>
4262
4263 * breakpoint.c (download_tracepoint_locations): New local
4264 can_download_tracepoint. Check the result of
4265 target_can_download_tracepoint and save it in
4266 can_download_tracepoint if there are tracepoints to download.
4267 * linux-nat.h (enum tribool): Move it to ...
4268 * common/common-types.h: ... here.
4269
cfe75703
PA
42702015-09-09 Pedro Alves <palves@redhat.com>
4271
4272 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
4273 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
4274
a85a3079
PA
42752015-09-09 Pedro Alves <palves@redhat.com>
4276
4277 * continuations.c (add_continuation, restore_thread_cleanup)
4278 (do_all_continuations_ptid, do_all_continuations_thread_callback)
4279 (do_all_continuations_thread, do_all_continuations)
4280 (discard_all_continuations_thread_callback)
4281 (discard_all_continuations_thread, discard_all_continuations)
4282 (add_intermediate_continuation)
4283 (do_all_intermediate_continuations_thread_callback)
4284 (do_all_intermediate_continuations_thread)
4285 (do_all_intermediate_continuations)
4286 (discard_all_intermediate_continuations_thread_callback)
4287 (discard_all_intermediate_continuations_thread)
4288 (discard_all_intermediate_continuations): Delete.
4289 * continuations.h (add_continuation, do_all_continuations)
4290 (do_all_continuations_thread, discard_all_continuations)
4291 (discard_all_continuations_thread, add_intermediate_continuation)
4292 (do_all_intermediate_continuations)
4293 (do_all_intermediate_continuations_thread)
4294 (discard_all_intermediate_continuations)
4295 (discard_all_intermediate_continuations_thread): Delete
4296 declarations.
4297 * event-top.c (stdin_event_handler): Delete references to
4298 continuations.
4299 * gdbthread.h (struct thread_info): Delete continuations and
4300 intermediate_continuations fields.
4301 * inf-loop.c (inferior_event_handler): Remove references to
4302 continuations.
4303 * infrun.c (infrun_thread_stop_requested_callback): Remove
4304 references to continuations.
4305 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
4306 * thread.c: Don't include "continuations.h".
4307 (clear_thread_inferior_resources): Remove references to
4308 continuations.
4309
0700e23e
PA
43102015-09-09 Pedro Alves <palves@redhat.com>
4311
4312 * infcall.c (struct dummy_frame_context_saver): Delete.
4313 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
4314 (dummy_frame_context_saver_drop)
4315 (dummy_frame_context_saver_cleanup)
4316 (dummy_frame_context_saver_get_regs)
4317 (dummy_frame_context_saver_setup): Delete.
4318 * infcall.h (dummy_frame_context_saver_drop)
4319 (dummy_frame_context_saver_cleanup)
4320 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
4321 Delete.
4322 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
4323 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
4324 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
4325
cfc31633
PA
43262015-09-09 Pedro Alves <palves@redhat.com>
4327
4328 * breakpoint.c: Include "thread-fsm.h".
4329 (struct until_break_command_continuation_args): Delete.
4330 (struct until_break_fsm): New.
4331 (until_break_fsm_ops): New global.
4332 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
4333 (until_break_command_continuation): Delete.
4334 (until_break_fsm_clean_up): New function.
4335 (until_break_fsm_async_reply_reason): New function.
4336 (until_break_command): Adjust to create an until_break_fsm instead
4337 of a continuation.
4338 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
4339 here.
4340 * infcmd.c (struct until_next_fsm): New.
4341 (until_next_fsm_ops): New global.
4342 (new_until_next_fsm, until_next_fsm_should_stop): New function.
4343 (until_next_continuation): Delete.
4344 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
4345 functions.
4346 (until_next_command): Adjust to create a new until_next_fsm
4347 instead of a continuation.
4348
388a7084
PA
43492015-09-09 Pedro Alves <palves@redhat.com>
4350
4351 * infcall.c: Include thread_fsm.h.
4352 (struct call_return_meta_info): New.
4353 (get_call_return_value): New function, factored out from
4354 call_function_by_hand_dummy.
4355 (struct call_thread_fsm): New.
4356 (call_thread_fsm_ops): New global.
4357 (new_call_thread_fsm, call_thread_fsm_should_stop)
4358 (call_thread_fsm_should_notify_stop): New functions.
4359 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
4360 the thread.
4361 (call_function_by_hand_dummy): Create a new call_thread_fsm
4362 instance, associate it with the thread, and wait for the FSM to
4363 finish. If finished successfully, fetch the function's result
4364 value out of the FSM.
4365 * infrun.c (fetch_inferior_event): If the FSM says the stop
4366 shouldn't be notified, don't call normal_stop.
4367 (maybe_remove_breakpoints): New function, factored out from ...
4368 (normal_stop): ... here. Simplify.
4369 * infrun.h (maybe_remove_breakpoints): Declare.
4370 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
4371 (thread-fsm.h) <struct thread_fsm_ops>: New field.
4372 (thread_fsm_should_notify_stop): Declare.
4373
243a9253
PA
43742015-09-09 Pedro Alves <palves@redhat.com>
4375
4376 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
4377 * breakpoint.c (handle_jit_event): Print debug output.
4378 (bpstat_what): Split event callback handling to ...
4379 (bpstat_run_callbacks): ... this new function.
4380 (momentary_bkpt_print_it): No longer handle bp_finish here.
4381 * breakpoint.h (bpstat_run_callbacks): Declare.
4382 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
4383 <thread_fsm>: New field.
4384 (thread_cancel_execution_command): Declare.
4385 * infcmd.c: Include thread-fsm.h.
4386 (struct step_command_fsm): New.
4387 (step_command_fsm_ops): New global.
4388 (new_step_command_fsm, step_command_fsm_prepare): New functions.
4389 (step_1): Adjust to use step_command_fsm_prepare and
4390 prepare_one_step.
4391 (struct step_1_continuation_args): Delete.
4392 (step_1_continuation): Delete.
4393 (step_command_fsm_should_stop): New function.
4394 (step_once): Delete.
4395 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
4396 (prepare_one_step): New function, based on step_once.
4397 (until_next_command): Remove step_multi reference.
4398 (struct return_value_info): New.
4399 (print_return_value): Rename to ...
4400 (print_return_value_1): ... this. New struct return_value_info
4401 parameter. Adjust.
4402 (print_return_value): Reimplement as wrapper around
4403 print_return_value_1.
4404 (struct finish_command_fsm): New.
4405 (finish_command_continuation): Delete.
4406 (finish_command_fsm_ops): New global.
4407 (new_finish_command_fsm, finish_command_fsm_should_stop): New
4408 functions.
4409 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
4410 New.
4411 (finish_command_continuation_free_arg): Delete.
4412 (finish_command_fsm_async_reply_reason): New.
4413 (finish_backward, finish_forward): Change symbol parameter to a
4414 finish_command_fsm. Adjust.
4415 (finish_command): Create a finish_command_fsm. Adjust.
4416 * infrun.c: Include "thread-fsm.h".
4417 (clear_proceed_status_thread): Delete the thread's FSM.
4418 (infrun_thread_stop_requested_callback): Cancel the thread's
4419 execution command.
4420 (clean_up_just_stopped_threads_fsms): New function.
4421 (fetch_inferior_event): Handle the event_thread's should_stop
4422 method saying the command isn't done yet.
4423 (process_event_stop_test): Run breakpoint callbacks here.
4424 (print_stop_event): Rename to ...
4425 (print_stop_location): ... this.
4426 (restore_current_uiout_cleanup): New function.
4427 (print_stop_event): Reimplement.
4428 (normal_stop): No longer notify the end_stepping_range observers
4429 here handle "step N" nor "finish" here. No longer call
4430 print_stop_event here.
4431 * infrun.h (struct return_value_info): Forward declare.
4432 (print_return_value): Declare.
4433 (print_stop_event): Change prototype.
4434 * thread-fsm.c: New file.
4435 * thread-fsm.h: New file.
4436 * thread.c: Include "thread-fsm.h".
4437 (thread_cancel_execution_command): New function.
4438 (clear_thread_inferior_resources): Call it.
4439 * cli/cli-interp.c (cli_on_normal_stop): New function.
4440 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
4441 observer.
4442 * mi/mi-interp.c: Include "thread-fsm.h".
4443 (restore_current_uiout_cleanup): Delete.
4444 (mi_on_normal_stop): If the thread has an FSM associated, and it
4445 finished, ask it for the async-reply-reason to print. Always call
4446 print_stop_event here, regardless of the top-level interpreter.
4447 Check bpstat_what to tell whether an asynchronous breakpoint hit
4448 triggered.
4449 * tui/tui-interp.c (tui_on_normal_stop): New function.
4450 (tui_init): Install tui_on_normal_stop as normal_stop observer.
4451
0b333c5e
PA
44522015-09-09 Pedro Alves <palves@redhat.com>
4453
4454 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
4455 check whether the target can async.
4456 * inf-loop.c (inferior_event_handler): Only call target_async if
4457 the target can async.
4458 * infcall.c: Include top.h and interps.h.
4459 (run_inferior_call): For the interpreter to sync mode while
4460 running the infcall. Call wait_sync_command_done instead of
4461 wait_for_inferior plus normal_stop.
4462 * infcmd.c (prepare_execution_command): Don't check whether the
4463 target can async when running in the foreground.
4464 (step_1): Delete synchronous case handling.
4465 (step_once): Always install a continuation, even in sync mode.
4466 (until_next_command, finish_forward): Don't check whether the
4467 target can async.
4468 (attach_command_post_wait, notice_new_inferior): Always install a
4469 continuation, even in sync mode.
4470 * infrun.c (mark_infrun_async_event_handler): New function.
4471 (proceed): In sync mode, mark infrun's event source instead of
4472 waiting for events here.
4473 (fetch_inferior_event): If the target can't async, do a blocking
4474 wait.
4475 (prepare_to_wait): In sync mode, mark infrun's event source.
4476 (infrun_async_inferior_event_handler): No longer bail out if the
4477 target can't async.
4478 * infrun.h (mark_infrun_async_event_handler): New declaration.
4479 * linux-nat.c (linux_nat_wait_1): Remove calls to
4480 set_sigint_trap/clear_sigint_trap.
4481 (linux_nat_terminal_inferior): No longer check whether the target
4482 can async.
4483 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
4484 comment.
4485 (mi_execute_command_input_handler): No longer check whether the
4486 target is async. Update and simplify comment.
4487 * target.c (default_target_wait): New function.
4488 * target.h (struct target_ops) <to_wait>: Now defaults to
4489 default_target_wait.
4490 (default_target_wait): Declare.
4491 * top.c (wait_sync_command_done): New function, factored out from
4492 ...
4493 (maybe_wait_sync_command_done): ... this.
4494 * top.h (wait_sync_command_done): Declare.
4495 * target-delegates.c: Regenerate.
4496
0568462b
MM
44972015-09-09 Markus Metzger <markus.t.metzger@intel.com>
4498
4499 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
4500 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
4501 Remove include of sys/utsname.h.
4502 (linux_determine_kernel_ptr_bits): Remove.
4503 (linux_determine_kernel_start): New.
4504 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
4505 Update check.
4506 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
4507 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
4508 initialization.
4509 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
4510 assignment.
4511
72e02483
PA
45122015-09-07 Pedro Alves <palves@redhat.com>
4513
4514 * guile/guile-internal.h (as_a_scm_t_subr): New.
4515 * guile/guile.c (misc_guile_functions): Use it.
4516 * guile/scm-arch.c (arch_functions): Use it.
4517 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
4518 Use it.
4519 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
4520 * guile/scm-cmd.c (command_functions): Use it.
4521 * guile/scm-disasm.c (disasm_functions): Use it.
4522 * guile/scm-exception.c (exception_functions)
4523 (private_exception_functions): Use it.
4524 * guile/scm-frame.c (frame_functions)
4525 * guile/scm-gsmob.c (gsmob_functions): Use it.
4526 * guile/scm-iterator.c (iterator_functions): Use it.
4527 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
4528 * guile/scm-math.c (math_functions): Use it.
4529 * guile/scm-objfile.c (objfile_functions): Use it.
4530 * guile/scm-param.c (parameter_functions): Use it.
4531 * guile/scm-ports.c (port_functions, private_port_functions): Use
4532 it.
4533 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
4534 * guile/scm-progspace.c (pspace_functions): Use it.
4535 * guile/scm-string.c (string_functions): Use it.
4536 * guile/scm-symbol.c (symbol_functions): Use it.
4537 * guile/scm-symtab.c (symtab_functions): Use it.
4538 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
4539 it.
4540 * guile/scm-value.c (value_functions): Use it.
4541
e65b5245
AB
45422015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4543
4544 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
4545 (tui_next_win): Likewise.
4546 (tui_prev_win): Likewise.
4547 (tui_partial_win_by_name): Likewise.
4548 (tui_init_generic_part): Likewise.
4549 (init_content_element): Likewise.
4550 (tui_del_window): Likewise.
4551 (tui_free_window): Likewise.
4552 (tui_del_data_windows): Likewise.
4553 (tui_free_data_content): Likewise.
4554 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
4555 * tui/tui-regs.c (tui_show_register_group): Likewise.
4556 * tui/tui-win.c (tui_resize_all): Likewise.
4557 (tui_set_focus): Likewise.
4558 (tui_set_win_height): Likewise.
4559 (make_invisible_and_set_new_height): Likewise.
4560 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
4561 * tui/tui-wingeneral.c (make_visible): Likewise.
4562
b03e6ad9
AB
45632015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4564
4565 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
4566
be903358
AB
45672015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
4568
4569 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
4570 pointer.
4571 * dbxread.c (dbx_end_psymtab): Likewise.
4572 * gnu-nat.c (gnu_write_inferior): Likewise.
4573 * mdebugread.c (cross_ref): Likewise.
4574 * p-valprint.c (pascal_val_print): Likewise.
4575 * xcoffread.c (xcoff_end_psymtab): Likewise.
4576
02f024f9
YQ
45772015-09-04 Yao Qi <yao.qi@linaro.org>
4578
4579 * NEWS: Mention the aarch64 multi-arch debugging support.
4580
cd7c1778
PMR
45812015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
4582
4583 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
4584 type instead of a TYPE_CODE_INT one for the string_char_type
4585 and the ada_primitive_type_char types.
4586
39edd165
YQ
45872015-09-03 Yao Qi <yao.qi@linaro.org>
4588
4589 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4590 Move code to aarch64_linux_region_ok_for_watchpoint. Call
4591 aarch64_linux_region_ok_for_watchpoint.
4592 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
4593 New function.
4594 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
4595 Declare it.
4596
6c214e7c
PP
45972015-09-02 Patrick Palka <patrick@parcs.ath.cx>
4598
4599 * gdb_obstack.h (obstack_strdup): Declare.
4600 * gdb_obstack.c (obstack_strdup): Define.
4601 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
4602 * gdbarch.c: Regenerate.
4603 * gdbarch.h: Regenerate.
4604 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
4605
eed8b28a
PP
46062015-09-02 Patrick Palka <patrick@parcs.ath.cx>
4607
4608 * gdbtypes.c (copy_type_recursive): Update documentation.
4609
73c6b475
SDJ
46102015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4611
4612 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
4613 as zero.
4614
ad1c917a
SDJ
46152015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4616
4617 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
4618
3bd7e5b7
SDJ
46192015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4620
4621 * solib-svr4.c (solib_event_probe_action): Call
4622 get_probe_argument_count using TRY...CATCH.
4623 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
4624
f469e8ce
SDJ
46252015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4626
4627 * probe.h (struct probe_ops) <get_probe_argument_count,
4628 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
4629 the comment that the function can throw an exception.
4630 (get_probe_argument_count): Likewise.
4631 (evaluate_probe_argument): Likewise.
4632 * stap-probe.c (stap_get_opcode): Call error instead of
4633 internal_error.
4634 (stap_get_expected_argument_type): Likewise. Add argument
4635 'probe'. Improve error message by mentioning the probe's name.
4636 (stap_parse_probe_arguments): Adjust call to
4637 stap_get_expected_argument_type.
4638 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
4639 not zero. Call internal_error if GDB requests an argument but the
4640 probe has no arguments.
4641
dc5c8746
PMR
46422015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
4643
4644 * ada-lang.c (ada_resolve_function): Do not ask the user what
4645 match to use when in completion mode.
4646
136765ea
AB
46472015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
4648
4649 * tui/tui-data.c (tui_win_name): Make local variable const, remove
4650 cast of NULL.
4651
90b81c5f
MF
46522015-08-31 Max Filippov <jcmvbkbc@gmail.com>
4653
4654 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
4655 call_abi using XSHAL_ABI macro.
4656
1cd36e54
DE
46572015-08-29 Doug Evans <xdje42@gmail.com>
4658
4659 * symtab.h (struct symbol): Tweak comment.
4660
8f57eec2
PP
46612015-08-29 Patrick Palka <patrick@parcs.ath.cx>
4662
4663 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
4664 gdbarch obstack instead of on the heap. Update commentary
4665 accordingly.
4666
38eebd71
JB
46672015-08-28 Joel Brobecker <brobecker@adacore.com>
4668
4669 GDB 7.10 released.
4670
d63dd61e
SM
46712015-08-28 Simon Marchi <simon.marchi@ericsson.com>
4672
4673 * NEWS: Update entry about non-8-bits addressable memory.
4674
6f059256
UW
46752015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
4676
4677 Revert:
4678 2014-11-06 Doug Evans <xdje42@gmail.com>
4679 * solib.c (solib_global_lookup): Fetch arch from objfile,
4680 not target_gdbarch.
4681
70987a92 46822015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
4683
4684 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
4685 attempt to relocate a TLS variable offset.
4686
70987a92 46872015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
4688
4689 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
4690 registered yet. Set inferior_ptid while calling target_read_memory.
4691
70987a92 46922015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
4693
4694 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
4695 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
4696 * linux-nat.c (check_stopped_by_breakpoint): Use
4697 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
4698
70987a92 46992015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
4700
4701 * linux-thread-db.c (thread_db_get_thread_local_address): If the
4702 thread was not yet discovered, use thread_from_lwp instead of
4703 calling thread_db_find_new_threads_1.
4704
f5cdf498
SM
47052015-08-27 Simon Marchi <simon.marchi@ericsson.com>
4706
4707 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
4708 statements.
4709
fd2ae5d6
SM
47102015-08-27 Simon Marchi <simon.marchi@ericsson.com>
4711
4712 * NEWS: Document support for non-8-bits addressable memory.
4713
14d88147
PA
47142015-08-27 Pedro Alves <palves@redhat.com>
4715
4716 * configure.ac: Remove AC_TYPE_SIGNAL call.
4717 * configure, config.in: Regenerate.
4718
a40805d4
PA
47192015-08-27 Pedro Alves <palves@redhat.com>
4720
4721 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
4722 * extension-priv.h: Include signal.h.
4723 (struct signal_handler) <handler>: Change type to sighandler_t.
4724 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
4725 * inflow.c (sigint_ours, sigquit_ours): Change type to
4726 sighandler_t.
4727 (child_terminal_inferior): Remove casts.
4728 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
4729 (osig): Change type to sighandler_t.
4730 * nto-procfs.c (ofunc): Change type to sighandler_t.
4731 (procfs_wait): Remove casts.
4732 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
4733 * remote-sim.c (gdbsim_wait): Use sighandler_t.
4734 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
4735
0750520d
PA
47362015-08-27 Pedro Alves <palves@redhat.com>
4737
4738 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
4739 * gnulib/aclocal.m4: Renegerate.
4740 * gnulib/config.in: Renegerate.
4741 * gnulib/configure: Renegerate.
4742 * gnulib/import/Makefile.am: Update.
4743 * gnulib/import/Makefile.in: Regenerate.
4744 * gnulib/import/m4/gnulib-cache.m4: Update.
4745 * gnulib/import/m4/gnulib-comp.m4: Update.
4746 * gnulib/import/m4/signal_h.m4: New file.
4747 * gnulib/import/signal.in.h: New file.
4748
a5c0808e
PA
47492015-08-27 Pedro Alves <palves@redhat.com>
4750
4751 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
4752 (MIN_MEMORY_PACKET_SIZE): New.
4753 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
4754 (get_memory_packet_size): Adjust. No longer limit the max packet
4755 size.
4756 (set_memory_packet_size): Adjust, and remove dead code.
4757 (remote_check_symbols): Use xmalloc and a cleanup instead of
4758 alloca.
4759 (remote_packet_size): No longer cap the packet size.
4760 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
4761
cdaec3f3
LM
47622015-08-26 Luis Machado <lgustavo@codesourcery.com>
4763
4764 * compile/compile.c (compile_to_object): Mention language in
4765 error message.
4766
e9756d52
PP
47672015-08-26 Patrick Palka <patrick@parcs.ath.cx>
4768
4769 * target.c (target_pre_inferior): Unset attach_flag.
4770
1dc7a623
SM
47712015-08-26 Simon Marchi <simon.marchi@ericsson.com>
4772
4773 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
4774 * gdbarch.c: Re-generate.
4775
8d749320
SM
47762015-08-26 Simon Marchi <simon.marchi@ericsson.com>
4777
6711b7f8
SM
4778 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
4779 function with the XNEW-family equivalent.
8d749320
SM
4780 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
4781 * ada-exp.y (write_ambiguous_var): Likewise.
4782 * ada-lang.c (resolve_subexp): Likewise.
4783 (user_select_syms): Likewise.
4784 (assign_aggregate): Likewise.
4785 (ada_evaluate_subexp): Likewise.
4786 (cache_symbol): Likewise.
4787 * addrmap.c (allocate_key): Likewise.
4788 (addrmap_create_mutable): Likewise.
4789 * aix-thread.c (sync_threadlists): Likewise.
4790 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
4791 (alpha_gdbarch_init): Likewise.
4792 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
4793 * arm-linux-nat.c (arm_linux_add_process): Likewise.
4794 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4795 * arm-tdep.c (push_stack_item): Likewise.
4796 (arm_displaced_step_copy_insn): Likewise.
4797 (arm_gdbarch_init): Likewise.
4798 (_initialize_arm_tdep): Likewise.
4799 * avr-tdep.c (push_stack_item): Likewise.
4800 * ax-general.c (new_agent_expr): Likewise.
4801 * block.c (block_initialize_namespace): Likewise.
4802 * breakpoint.c (alloc_counted_command_line): Likewise.
4803 (update_dprintf_command_list): Likewise.
4804 (parse_breakpoint_sals): Likewise.
4805 (decode_static_tracepoint_spec): Likewise.
4806 (until_break_command): Likewise.
4807 (clear_command): Likewise.
4808 (update_global_location_list): Likewise.
4809 (get_breakpoint_objfile_data) Likewise.
4810 * btrace.c (ftrace_new_function): Likewise.
4811 (btrace_set_insn_history): Likewise.
4812 (btrace_set_call_history): Likewise.
4813 * buildsym.c (add_symbol_to_list): Likewise.
4814 (record_pending_block): Likewise.
4815 (start_subfile): Likewise.
4816 (start_buildsym_compunit): Likewise.
4817 (push_subfile): Likewise.
4818 (end_symtab_get_static_block): Likewise.
4819 (buildsym_init): Likewise.
4820 * cli/cli-cmds.c (source_command): Likewise.
4821 * cli/cli-decode.c (add_cmd): Likewise.
4822 * cli/cli-script.c (build_command_line): Likewise.
4823 (setup_user_args): Likewise.
4824 (realloc_body_list): Likewise.
4825 (process_next_line): Likewise.
4826 (copy_command_lines): Likewise.
4827 * cli/cli-setshow.c (do_set_command): Likewise.
4828 * coff-pe-read.c (read_pe_exported_syms): Likewise.
4829 * coffread.c (coff_locate_sections): Likewise.
4830 (coff_symtab_read): Likewise.
4831 (coff_read_struct_type): Likewise.
4832 * common/cleanups.c (make_my_cleanup2): Likewise.
4833 * common/common-exceptions.c (throw_it): Likewise.
4834 * common/filestuff.c (make_cleanup_close): Likewise.
4835 * common/format.c (parse_format_string): Likewise.
4836 * common/queue.h (DEFINE_QUEUE_P): Likewise.
4837 * compile/compile-object-load.c (munmap_list_add): Likewise.
4838 (compile_object_load): Likewise.
4839 * compile/compile-object-run.c (compile_object_run): Likewise.
4840 * compile/compile.c (append_args): Likewise.
4841 * corefile.c (specify_exec_file_hook): Likewise.
4842 * cp-support.c (make_symbol_overload_list): Likewise.
4843 * cris-tdep.c (push_stack_item): Likewise.
4844 (cris_gdbarch_init): Likewise.
4845 * ctf.c (ctf_trace_file_writer_new): Likewise.
4846 * dbxread.c (init_header_files): Likewise.
4847 (add_new_header_file): Likewise.
4848 (init_bincl_list): Likewise.
4849 (dbx_end_psymtab): Likewise.
4850 (start_psymtab): Likewise.
4851 (dbx_end_psymtab): Likewise.
4852 * dcache.c (dcache_init): Likewise.
4853 * dictionary.c (dict_create_hashed): Likewise.
4854 (dict_create_hashed_expandable): Likewise.
4855 (dict_create_linear): Likewise.
4856 (dict_create_linear_expandable): Likewise.
4857 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
4858 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
4859 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
4860 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4861 (decode_frame_entry_1): Likewise.
4862 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
4863 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4864 * dwarf2read.c (dwarf2_has_info): Likewise.
4865 (create_signatured_type_table_from_index): Likewise.
4866 (dwarf2_read_index): Likewise.
4867 (dw2_get_file_names_reader): Likewise.
4868 (create_all_type_units): Likewise.
4869 (read_cutu_die_from_dwo): Likewise.
4870 (init_tu_and_read_dwo_dies): Likewise.
4871 (init_cutu_and_read_dies): Likewise.
4872 (create_all_comp_units): Likewise.
4873 (queue_comp_unit): Likewise.
4874 (inherit_abstract_dies): Likewise.
4875 (read_call_site_scope): Likewise.
4876 (dwarf2_add_field): Likewise.
4877 (dwarf2_add_typedef): Likewise.
4878 (dwarf2_add_member_fn): Likewise.
4879 (attr_to_dynamic_prop): Likewise.
4880 (abbrev_table_alloc_abbrev): Likewise.
4881 (abbrev_table_read_table): Likewise.
4882 (add_include_dir): Likewise.
4883 (add_file_name): Likewise.
4884 (dwarf_decode_line_header): Likewise.
4885 (dwarf2_const_value_attr): Likewise.
4886 (dwarf_alloc_block): Likewise.
4887 (parse_macro_definition): Likewise.
4888 (set_die_type): Likewise.
4889 (write_psymtabs_to_index): Likewise.
4890 (create_cus_from_index): Likewise.
4891 (dwarf2_create_include_psymtab): Likewise.
4892 (process_psymtab_comp_unit_reader): Likewise.
4893 (build_type_psymtab_dependencies): Likewise.
4894 (read_comp_units_from_section): Likewise.
4895 (compute_compunit_symtab_includes): Likewise.
4896 (create_dwo_unit_in_dwp_v1): Likewise.
4897 (create_dwo_unit_in_dwp_v2): Likewise.
4898 (read_func_scope): Likewise.
4899 (process_structure_scope): Likewise.
4900 (mark_common_block_symbol_computed): Likewise.
4901 (load_partial_dies): Likewise.
4902 (dwarf2_symbol_mark_computed): Likewise.
4903 * elfread.c (elf_symfile_segments): Likewise.
4904 (elf_read_minimal_symbols): Likewise.
4905 * environ.c (make_environ): Likewise.
4906 * eval.c (evaluate_subexp_standard): Likewise.
4907 * event-loop.c (create_file_handler): Likewise.
4908 (create_async_signal_handler): Likewise.
4909 (create_async_event_handler): Likewise.
4910 (create_timer): Likewise.
4911 * exec.c (build_section_table): Likewise.
4912 * fbsd-nat.c (fbsd_remember_child): Likewise.
4913 * fork-child.c (fork_inferior): Likewise.
4914 * frv-tdep.c (new_variant): Likewise.
4915 * gdbarch.sh (gdbarch_alloc): Likewise.
4916 (append_name): Likewise.
4917 * gdbtypes.c (rank_function): Likewise.
4918 (copy_type_recursive): Likewise.
4919 (add_dyn_prop): Likewise.
4920 * gnu-nat.c (make_proc): Likewise.
4921 (make_inf): Likewise.
4922 (gnu_write_inferior): Likewise.
4923 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4924 (build_std_type_info_type): Likewise.
4925 * guile/scm-param.c (compute_enum_list): Likewise.
4926 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
4927 * guile/scm-value.c (gdbscm_value_call): Likewise.
4928 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4929 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4930 (read_unwind_info): Likewise.
4931 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4932 * infcall.c (dummy_frame_context_saver_setup): Likewise.
4933 (call_function_by_hand_dummy): Likewise.
4934 * infcmd.c (step_once): Likewise.
4935 (finish_forward): Likewise.
4936 (attach_command): Likewise.
4937 (notice_new_inferior): Likewise.
4938 * inferior.c (add_inferior_silent): Likewise.
4939 * infrun.c (add_displaced_stepping_state): Likewise.
4940 (save_infcall_control_state): Likewise.
4941 (save_inferior_ptid): Likewise.
4942 (_initialize_infrun): Likewise.
4943 * jit.c (bfd_open_from_target_memory): Likewise.
4944 (jit_gdbarch_data_init): Likewise.
4945 * language.c (add_language): Likewise.
4946 * linespec.c (decode_line_2): Likewise.
4947 * linux-nat.c (add_to_pid_list): Likewise.
4948 (add_initial_lwp): Likewise.
4949 * linux-thread-db.c (add_thread_db_info): Likewise.
4950 (record_thread): Likewise.
4951 (info_auto_load_libthread_db): Likewise.
4952 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
4953 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4954 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4955 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
4956 * macrocmd.c (macro_define_command): Likewise.
4957 * macroexp.c (gather_arguments): Likewise.
4958 * macroscope.c (sal_macro_scope): Likewise.
4959 * macrotab.c (new_macro_table): Likewise.
4960 * mdebugread.c (push_parse_stack): Likewise.
4961 (parse_partial_symbols): Likewise.
4962 (parse_symbol): Likewise.
4963 (psymtab_to_symtab_1): Likewise.
4964 (new_block): Likewise.
4965 (new_psymtab): Likewise.
4966 (mdebug_build_psymtabs): Likewise.
4967 (add_pending): Likewise.
4968 (elfmdebug_build_psymtabs): Likewise.
4969 * mep-tdep.c (mep_gdbarch_init): Likewise.
4970 * mi/mi-main.c (mi_execute_command): Likewise.
4971 * mi/mi-parse.c (mi_parse_argv): Likewise.
4972 * minidebug.c (lzma_open): Likewise.
4973 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4974 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
4975 * mips-tdep.c (mips_gdbarch_init): Likewise.
4976 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4977 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
4978 * mt-tdep.c (mt_registers_info): Likewise.
4979 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
4980 * nat/linux-btrace.c (linux_enable_bts): Likewise.
4981 (linux_enable_pt): Likewise.
4982 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
4983 (linux_xfer_osdata_processgroups): Likewise.
4984 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
4985 * nto-procfs.c (procfs_meminfo): Likewise.
4986 * objc-lang.c (start_msglist): Likewise.
4987 (selectors_info): Likewise.
4988 (classes_info): Likewise.
4989 (find_methods): Likewise.
4990 * objfiles.c (allocate_objfile): Likewise.
4991 (update_section_map): Likewise.
4992 * osabi.c (gdbarch_register_osabi): Likewise.
4993 (gdbarch_register_osabi_sniffer): Likewise.
4994 * parse.c (start_arglist): Likewise.
4995 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
4996 (hwdebug_insert_point): Likewise.
4997 * printcmd.c (display_command): Likewise.
4998 (ui_printf): Likewise.
4999 * procfs.c (create_procinfo): Likewise.
5000 (load_syscalls): Likewise.
5001 (proc_get_LDT_entry): Likewise.
5002 (proc_update_threads): Likewise.
5003 * prologue-value.c (make_pv_area): Likewise.
5004 (pv_area_store): Likewise.
5005 * psymtab.c (extend_psymbol_list): Likewise.
5006 (init_psymbol_list): Likewise.
5007 (allocate_psymtab): Likewise.
5008 * python/py-inferior.c (add_thread_object): Likewise.
5009 * python/py-param.c (compute_enum_values): Likewise.
5010 * python/py-value.c (valpy_call): Likewise.
5011 * python/py-varobj.c (py_varobj_iter_next): Likewise.
5012 * python/python.c (ensure_python_env): Likewise.
5013 * record-btrace.c (record_btrace_start_replaying): Likewise.
5014 * record-full.c (record_full_reg_alloc): Likewise.
5015 (record_full_mem_alloc): Likewise.
5016 (record_full_end_alloc): Likewise.
5017 (record_full_core_xfer_partial): Likewise.
5018 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
5019 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
5020 * remote-notif.c (remote_notif_state_allocate): Likewise.
5021 * remote.c (demand_private_info): Likewise.
5022 (remote_notif_stop_alloc_reply): Likewise.
5023 (remote_enable_btrace): Likewise.
5024 * reverse.c (save_bookmark_command): Likewise.
5025 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5026 * rx-tdep.c (rx_gdbarch_init): Likewise.
5027 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5028 * ser-go32.c (dos_get_tty_state): Likewise.
5029 (dos_copy_tty_state): Likewise.
5030 * ser-mingw.c (ser_windows_open): Likewise.
5031 (ser_console_wait_handle): Likewise.
5032 (ser_console_get_tty_state): Likewise.
5033 (make_pipe_state): Likewise.
5034 (net_windows_open): Likewise.
5035 * ser-unix.c (hardwire_get_tty_state): Likewise.
5036 (hardwire_copy_tty_state): Likewise.
5037 * solib-aix.c (solib_aix_new_lm_info): Likewise.
5038 * solib-dsbt.c (dsbt_current_sos): Likewise.
5039 (dsbt_relocate_main_executable): Likewise.
5040 * solib-frv.c (frv_current_sos): Likewise.
5041 (frv_relocate_main_executable): Likewise.
5042 * solib-spu.c (spu_bfd_fopen): Likewise.
5043 * solib-svr4.c (lm_info_read): Likewise.
5044 (svr4_copy_library_list): Likewise.
5045 (svr4_default_sos): Likewise.
5046 * source.c (find_source_lines): Likewise.
5047 (line_info): Likewise.
5048 (add_substitute_path_rule): Likewise.
5049 * spu-linux-nat.c (spu_bfd_open): Likewise.
5050 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
5051 * stabsread.c (dbx_lookup_type): Likewise.
5052 (read_type): Likewise.
5053 (read_member_functions): Likewise.
5054 (read_struct_fields): Likewise.
5055 (read_baseclasses): Likewise.
5056 (read_args): Likewise.
5057 (_initialize_stabsread): Likewise.
5058 * stack.c (func_command): Likewise.
5059 * stap-probe.c (handle_stap_probe): Likewise.
5060 * symfile.c (addrs_section_sort): Likewise.
5061 (addr_info_make_relative): Likewise.
5062 (load_section_callback): Likewise.
5063 (add_symbol_file_command): Likewise.
5064 (init_filename_language_table): Likewise.
5065 * symtab.c (create_filename_seen_cache): Likewise.
5066 (sort_search_symbols_remove_dups): Likewise.
5067 (search_symbols): Likewise.
5068 * target.c (make_cleanup_restore_target_terminal): Likewise.
5069 * thread.c (new_thread): Likewise.
5070 (enable_thread_stack_temporaries): Likewise.
5071 (make_cleanup_restore_current_thread): Likewise.
5072 (thread_apply_all_command): Likewise.
5073 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
5074 * top.c (gdb_readline_wrapper): Likewise.
5075 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
5076 * tracepoint.c (trace_find_line_command): Likewise.
5077 (all_tracepoint_actions_and_cleanup): Likewise.
5078 (make_cleanup_restore_current_traceframe): Likewise.
5079 (get_uploaded_tp): Likewise.
5080 (get_uploaded_tsv): Likewise.
5081 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
5082 (tui_alloc_win_info): Likewise.
5083 (tui_alloc_content): Likewise.
5084 (tui_add_content_elements): Likewise.
5085 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
5086 (tui_set_disassem_content): Likewise.
5087 * ui-file.c (ui_file_new): Likewise.
5088 (stdio_file_new): Likewise.
5089 (tee_file_new): Likewise.
5090 * utils.c (make_cleanup_restore_integer): Likewise.
5091 (add_internal_problem_command): Likewise.
5092 * v850-tdep.c (v850_gdbarch_init): Likewise.
5093 * valops.c (find_oload_champ): Likewise.
5094 * value.c (allocate_value_lazy): Likewise.
5095 (record_latest_value): Likewise.
5096 (create_internalvar): Likewise.
5097 * varobj.c (install_variable): Likewise.
5098 (new_variable): Likewise.
5099 (new_root_variable): Likewise.
5100 (cppush): Likewise.
5101 (_initialize_varobj): Likewise.
5102 * windows-nat.c (windows_make_so): Likewise.
5103 * x86-nat.c (x86_add_process): Likewise.
5104 * xcoffread.c (arrange_linetable): Likewise.
5105 (allocate_include_entry): Likewise.
5106 (process_linenos): Likewise.
5107 (SYMBOL_DUP): Likewise.
5108 (xcoff_start_psymtab): Likewise.
5109 (xcoff_end_psymtab): Likewise.
5110 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
5111 * xtensa-tdep.c (xtensa_register_type): Likewise.
5112 * gdbarch.c: Regenerate.
5113 * gdbarch.h: Regenerate.
5114
17d8546e
DB
51152015-08-25 Don Breazeal <donb@codesourcery.com>
5116
5117 * infrun.c (follow_exec): Re-order operations for
5118 handling follow-exec-mode "new".
5119 (handle_inferior_event_1): Assign ecs->event_thread
5120 to the current thread.
5121 * remote.c (get_remote_arch_state): Add an assertion.
5122
ba49e44b
PA
51232015-08-26 Pedro Alves <palves@redhat.com>
5124
5125 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
5126
7541ab03 51272015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 5128
7541ab03 5129 PR gdb/18804
abc56d60
PA
5130 * defs.h (maybe_quit): Declare.
5131 (QUIT): Now calls maybe_quit.
5132 * event-loop.c (clear_async_signal_handler)
5133 (async_signal_handler_is_marked): New functions.
5134 * event-loop.h (async_signal_handler_is_marked)
5135 (clear_async_signal_handler): New declarations.
5136 * remote.c (remote_check_pending_interrupt): New function.
5137 (interrupt_query): Use make_cleanup_restore_target_terminal. No
5138 longer check whether the target is async. If waiting for a stop
5139 reply, and a Ctrl-C as been sent to the target, offer to
5140 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
5141 Otherwise do not disconnect and throw a quit.
5142 (_initialize_remote): Install remote_check_pending_interrupt as
5143 to_check_pending_interrupt.
5144 * target.c (target_check_pending_interrupt): New function.
5145 * target.h (struct target_ops) <to_check_pending_interrupt>: New
5146 field.
5147 (target_check_pending_interrupt): New declaration.
5148 * utils.c (maybe_quit): New function.
5149 * target-delegates.c: Regenerate.
5150
dfe7f77c
YQ
51512015-08-25 Yao Qi <yao.qi@linaro.org>
5152
5153 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
5154 Rename local variable pid to tid, and get lwpid of lwp. Update
5155 debug output.
5156
63e43d3a
PMR
51572015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
5158
5159 * ada-lang.c (ada_read_var_value): Add a var_block argument
5160 and pass it to default_read_var_value.
5161 * block.c (block_static_link): New accessor.
5162 * block.h (block_static_link): Declare it.
5163 * buildsym.c (finish_block_internal): Add a static_link
5164 argument. If there is a static link, associate it to the new
5165 block.
5166 (finish_block): Add a static link argument and pass it to
5167 finish_block_internal.
5168 (end_symtab_get_static_block): Update calls to finish_block and
5169 to finish_block_internal.
5170 (end_symtab_with_blockvector): Update call to
5171 finish_block_internal.
5172 * buildsym.h: Forward-declare struct dynamic_prop.
5173 (struct context_stack): Add a static_link field.
5174 (finish_block): Add a static link argument.
5175 * c-exp.y: Remove an obsolete comment (evaluation of variables
5176 already start from the selected frame, and now they climb *up*
5177 the call stack) and propagate the block information to the
5178 produced expression.
5179 * d-exp.y: Likewise.
5180 * f-exp.y: Likewise.
5181 * go-exp.y: Likewise.
5182 * jv-exp.y: Likewise.
5183 * m2-exp.y: Likewise.
5184 * p-exp.y: Likewise.
5185 * coffread.c (coff_symtab_read): Update calls to finish_block.
5186 * dbxread.c (process_one_symbol): Likewise.
5187 * xcoffread.c (read_xcoff_symtab): Likewise.
5188 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
5189 "sym" parameter to struct block_symbol, update its uses and pass
5190 its block to calls to read_var_value.
5191 (convert_symbol_sym): Update the calls to convert_one_symbol.
5192 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
5193 call to read_var_value.
5194 * dwarf2loc.c (block_op_get_frame_base): New.
5195 (dwarf2_block_frame_base_locexpr_funcs): Implement the
5196 get_frame_base method.
5197 (dwarf2_block_frame_base_loclist_funcs): Likewise.
5198 (dwarf2locexpr_baton_eval): Add a frame argument and use it
5199 instead of the selected frame in order to evaluate the
5200 expression.
5201 (dwarf2_evaluate_property): Add a frame argument. Update call
5202 to dwarf2_locexpr_baton_eval to provide a frame in available and
5203 to handle the absence of address stack.
5204 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
5205 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
5206 declaration.
5207 (read_func_scope): Record any available static link description.
5208 Update call to finish_block.
5209 (read_lexical_block_scope): Update call to finish_block.
5210 * findvar.c (follow_static_link): New.
5211 (get_hosting_frame): New.
5212 (default_read_var_value): Add a var_block argument. Use
5213 get_hosting_frame to handle non-local references.
5214 (read_var_value): Add a var_block argument and pass it to the
5215 LA_READ_VAR_VALUE method.
5216 * gdbtypes.c (resolve_dynamic_range): Update calls to
5217 dwarf2_evaluate_property.
5218 (resolve_dynamic_type_internal): Likewise.
5219 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
5220 read_var_value, passing it the block coming from symbol lookup.
5221 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
5222 read_var_value (TODO).
5223 * infcmd.c (finish_command_continuation): Update call to
5224 read_var_value, passing it the block coming from symbol lookup.
5225 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5226 * language.h (struct language_defn): Add a var_block argument to
5227 the LA_READ_VAR_VALUE method.
5228 * objfiles.c (struct static_link_htab_entry): New.
5229 (static_link_htab_entry_hash): New.
5230 (static_link_htab_entry_eq): New.
5231 (objfile_register_static_link): New.
5232 (objfile_lookup_static_link): New.
5233 (free_objfile): Free the STATIC_LINKS hashed map if needed.
5234 * objfiles.h: Include hashtab.h.
5235 (struct objfile): Add a static_links field.
5236 (objfile_register_static_link): New.
5237 (objfile_lookup_static_link): New.
5238 * printcmd.c (print_variable_and_value): Update call to
5239 read_var_value.
5240 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
5241 * python/py-frame.c (frapy_read_var): Update call to
5242 read_var_value, passing it the block coming from symbol lookup.
5243 * python/py-framefilter.c (extract_sym): Add a sym_block
5244 parameter and set the pointed value to NULL (TODO).
5245 (enumerate_args): Update call to extract_sym.
5246 (enumerate_locals): Update calls to extract_sym and to
5247 read_var_value.
5248 * python/py-symbol.c (sympy_value): Update call to
5249 read_var_value (TODO).
5250 * stack.c (read_frame_local): Update call to read_var_value.
5251 (read_frame_arg): Likewise.
5252 (return_command): Likewise.
5253 * symtab.h (struct symbol_block_ops): Add a get_frame_base
5254 method.
5255 (struct symbol): Add a block field.
5256 (SYMBOL_BLOCK): New accessor.
5257 * valops.c (value_of_variable): Remove frame/block handling and
5258 pass the block argument to read_var_value, which does this job
5259 now.
5260 (value_struct_elt_for_reference): Update calls to
5261 read_var_value.
5262 (value_of_this): Pass the block found to read_var_value.
5263 * value.h (read_var_value): Add a var_block argument.
5264 (default_read_var_value): Likewise.
5265
ed8b7b42
YQ
52662015-08-25 Yao Qi <yao.qi@linaro.org>
5267
5268 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
5269 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
5270 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
5271
db3cb7cb
YQ
52722015-08-25 Yao Qi <yao.qi@linaro.org>
5273
5274 * Makefile.in (aarch64-liunx.o): New rule.
5275 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
5276 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
5277 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
5278 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
5279 extern.
5280 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
5281 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
5282 * nat/aarch64-linux.c: New file.
5283 * nat/aarch64-linux.h: New file.
5284
f6011a1c
YQ
52852015-08-25 Yao Qi <yao.qi@linaro.org>
5286
5287 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
5288 lwp_arch_private_info and ptid_of_lwp.
5289
5e35436e
YQ
52902015-08-25 Yao Qi <yao.qi@linaro.org>
5291
5292 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
5293 Move it to nat/aarch64-linux-hw-point.c.
5294 (debug_reg_change_callback): Likewise.
5295 (aarch64_notify_debug_reg_change): :Likewise.
5296 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
5297 (aarch64_dr_update_callback_param): New.
5298 (debug_reg_change_callback): New function.
5299 (aarch64_notify_debug_reg_change): Likewise.
5300 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
5301 Remove the declaration.
5302
4a8a7965
YQ
53032015-08-25 Yao Qi <yao.qi@linaro.org>
5304
5305 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
5306 Call current_lwp_ptid.
5307
32a271ee
YQ
53082015-08-25 Yao Qi <yao.qi@linaro.org>
5309
5310 * aarch64-linux-nat.c (debug_reg_change_callback): Use
5311 debug_printf.
5312
5e137137
YQ
53132015-08-25 Yao Qi <yao.qi@linaro.org>
5314
5315 * aarch64-linux-nat.c (debug_reg_change_callback): Call
5316 ptid_get_pid rather than ptid_get_lwp.
5317
73b8c1fd
PA
53182015-08-24 Pedro Alves <palves@redhat.com>
5319
5320 * NEWS (New commands): Mention set/show remote
5321 multiprocess-extensions-packet.
5322 * remote.c (remote_query_supported): Only tell the server to use
5323 the multiprocess extensions if the user hasn't force-disabled them
5324 with "set remote multiprocess-extensions-packet off".
5325
4a626d0a
PA
53262015-08-24 Pedro Alves <palves@redhat.com>
5327
5328 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
5329 1029a8112290f6eee9d7878a391c49db42c999bd.
5330 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
5331 Regenerate.
5332 * gnulib/import/Makefile.am: Update.
5333 * gnulib/import/Makefile.in: Update.
5334 * gnulib/import/alloca.in.h: Update.
5335 * gnulib/import/basename-lgpl.c: Update.
5336 * gnulib/import/canonicalize-lgpl.c: Update.
5337 * gnulib/import/config.charset: Update.
5338 * gnulib/import/dirent.in.h: Update.
5339 * gnulib/import/dirfd.c: Update.
5340 * gnulib/import/dirname-lgpl.c: Update.
5341 * gnulib/import/dirname.h: Update.
5342 * gnulib/import/dosname.h: Update.
5343 * gnulib/import/errno.in.h: Update.
5344 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
5345 * gnulib/import/extra/snippet/c++defs.h: Update.
5346 * gnulib/import/extra/snippet/warn-on-use.h: Update.
5347 * gnulib/import/extra/update-copyright: Update.
5348 * gnulib/import/float+.h: Update.
5349 * gnulib/import/float.c: Update.
5350 * gnulib/import/float.in.h: Update.
5351 * gnulib/import/fnmatch.c: Update.
5352 * gnulib/import/fnmatch.in.h: Update.
5353 * gnulib/import/fnmatch_loop.c: Update.
5354 * gnulib/import/fpucw.h: Update.
5355 * gnulib/import/frexp.c: Update.
5356 * gnulib/import/frexpl.c: Update.
5357 * gnulib/import/gettimeofday.c: Update.
5358 * gnulib/import/inttypes.in.h: Update.
5359 * gnulib/import/isnan.c: Update.
5360 * gnulib/import/isnand-nolibm.h: Update.
5361 * gnulib/import/isnand.c: Update.
5362 * gnulib/import/isnanl-nolibm.h: Update.
5363 * gnulib/import/isnanl.c: Update.
5364 * gnulib/import/itold.c: Update.
5365 * gnulib/import/localcharset.c: Update.
5366 * gnulib/import/localcharset.h: Update.
5367 * gnulib/import/lstat.c: Update.
5368 * gnulib/import/m4/00gnulib.m4: Update.
5369 * gnulib/import/m4/absolute-header.m4: Update.
5370 * gnulib/import/m4/alloca.m4: Update.
5371 * gnulib/import/m4/canonicalize.m4: Update.
5372 * gnulib/import/m4/codeset.m4: Update.
5373 * gnulib/import/m4/configmake.m4: Update.
5374 * gnulib/import/m4/dirent_h.m4: Update.
5375 * gnulib/import/m4/dirfd.m4: Update.
5376 * gnulib/import/m4/dirname.m4: Update.
5377 * gnulib/import/m4/double-slash-root.m4: Update.
5378 * gnulib/import/m4/eealloc.m4: Update.
5379 * gnulib/import/m4/errno_h.m4: Update.
5380 * gnulib/import/m4/exponentd.m4: Update.
5381 * gnulib/import/m4/exponentl.m4: Update.
5382 * gnulib/import/m4/extensions.m4: Update.
5383 * gnulib/import/m4/extern-inline.m4: Update.
5384 * gnulib/import/m4/fcntl-o.m4: Update.
5385 * gnulib/import/m4/float_h.m4: Update.
5386 * gnulib/import/m4/fnmatch.m4: Update.
5387 * gnulib/import/m4/fpieee.m4: Update.
5388 * gnulib/import/m4/frexp.m4: Update.
5389 * gnulib/import/m4/frexpl.m4: Update.
5390 * gnulib/import/m4/gettimeofday.m4: Update.
5391 * gnulib/import/m4/glibc21.m4: Update.
5392 * gnulib/import/m4/gnulib-cache.m4: Update.
5393 * gnulib/import/m4/gnulib-common.m4: Update.
5394 * gnulib/import/m4/gnulib-comp.m4: Update.
5395 * gnulib/import/m4/gnulib-tool.m4: Update.
5396 * gnulib/import/m4/include_next.m4: Update.
5397 * gnulib/import/m4/inttypes-pri.m4: Update.
5398 * gnulib/import/m4/inttypes.m4: Update.
5399 * gnulib/import/m4/isnand.m4: Update.
5400 * gnulib/import/m4/isnanl.m4: Update.
5401 * gnulib/import/m4/largefile.m4: Update.
5402 * gnulib/import/m4/localcharset.m4: Update.
5403 * gnulib/import/m4/locale-fr.m4: Update.
5404 * gnulib/import/m4/locale-ja.m4: Update.
5405 * gnulib/import/m4/locale-zh.m4: Update.
5406 * gnulib/import/m4/longlong.m4: Update.
5407 * gnulib/import/m4/lstat.m4: Update.
5408 * gnulib/import/m4/malloc.m4: Update.
5409 * gnulib/import/m4/malloca.m4: Update.
5410 * gnulib/import/m4/math_h.m4: Update.
5411 * gnulib/import/m4/mbrtowc.m4: Update.
5412 * gnulib/import/m4/mbsinit.m4: Update.
5413 * gnulib/import/m4/mbsrtowcs.m4: Update.
5414 * gnulib/import/m4/mbstate_t.m4: Update.
5415 * gnulib/import/m4/memchr.m4: Update.
5416 * gnulib/import/m4/memmem.m4: Update.
5417 * gnulib/import/m4/mmap-anon.m4: Update.
5418 * gnulib/import/m4/multiarch.m4: Update.
5419 * gnulib/import/m4/nocrash.m4: Update.
5420 * gnulib/import/m4/off_t.m4: Update.
5421 * gnulib/import/m4/pathmax.m4: Update.
5422 * gnulib/import/m4/readlink.m4: Update.
5423 * gnulib/import/m4/rename.m4: Update.
5424 * gnulib/import/m4/rmdir.m4: Update.
5425 * gnulib/import/m4/ssize_t.m4: Update.
5426 * gnulib/import/m4/stat.m4: Update.
5427 * gnulib/import/m4/stdbool.m4: Update.
5428 * gnulib/import/m4/stddef_h.m4: Update.
5429 * gnulib/import/m4/stdint.m4: Update.
5430 * gnulib/import/m4/stdio_h.m4: Update.
5431 * gnulib/import/m4/stdlib_h.m4: Update.
5432 * gnulib/import/m4/string_h.m4: Update.
5433 * gnulib/import/m4/strstr.m4: Update.
5434 * gnulib/import/m4/strtok_r.m4: Update.
5435 * gnulib/import/m4/sys_socket_h.m4: Update.
5436 * gnulib/import/m4/sys_stat_h.m4: Update.
5437 * gnulib/import/m4/sys_time_h.m4: Update.
5438 * gnulib/import/m4/sys_types_h.m4: Update.
5439 * gnulib/import/m4/time_h.m4: Update.
5440 * gnulib/import/m4/unistd_h.m4: Update.
5441 * gnulib/import/m4/warn-on-use.m4: Update.
5442 * gnulib/import/m4/wchar_h.m4: Update.
5443 * gnulib/import/m4/wchar_t.m4: Update.
5444 * gnulib/import/m4/wctype_h.m4: Update.
5445 * gnulib/import/m4/wint_t.m4: Update.
5446 * gnulib/import/malloc.c: Update.
5447 * gnulib/import/malloca.c: Update.
5448 * gnulib/import/malloca.h: Update.
5449 * gnulib/import/math.in.h: Update.
5450 * gnulib/import/mbrtowc.c: Update.
5451 * gnulib/import/mbsinit.c: Update.
5452 * gnulib/import/mbsrtowcs-impl.h: Update.
5453 * gnulib/import/mbsrtowcs-state.c: Update.
5454 * gnulib/import/mbsrtowcs.c: Update.
5455 * gnulib/import/memchr.c: Update.
5456 * gnulib/import/memmem.c: Update.
5457 * gnulib/import/pathmax.h: Update.
5458 * gnulib/import/readlink.c: Update.
5459 * gnulib/import/ref-add.sin: Update.
5460 * gnulib/import/ref-del.sin: Update.
5461 * gnulib/import/rename.c: Update.
5462 * gnulib/import/rmdir.c: Update.
5463 * gnulib/import/same-inode.h: Update.
5464 * gnulib/import/stat.c: Update.
5465 * gnulib/import/stdbool.in.h: Update.
5466 * gnulib/import/stddef.in.h: Update.
5467 * gnulib/import/stdint.in.h: Update.
5468 * gnulib/import/stdio.c: Update.
5469 * gnulib/import/stdio.in.h: Update.
5470 * gnulib/import/stdlib.in.h: Update.
5471 * gnulib/import/str-two-way.h: Update.
5472 * gnulib/import/streq.h: Update.
5473 * gnulib/import/string.in.h: Update.
5474 * gnulib/import/stripslash.c: Update.
5475 * gnulib/import/strnlen1.c: Update.
5476 * gnulib/import/strnlen1.h: Update.
5477 * gnulib/import/strstr.c: Update.
5478 * gnulib/import/strtok_r.c: Update.
5479 * gnulib/import/sys_stat.in.h: Update.
5480 * gnulib/import/sys_time.in.h: Update.
5481 * gnulib/import/sys_types.in.h: Update.
5482 * gnulib/import/time.in.h: Update.
5483 * gnulib/import/unistd.in.h: Update.
5484 * gnulib/import/verify.h: Update.
5485 * gnulib/import/wchar.in.h: Update.
5486 * gnulib/import/wctype.in.h: Update.
5487 * gnulib/import/gettimeofday.c: New file.
5488 * gnulib/import/m4/absolute-header.m4: New file.
5489 * gnulib/import/m4/gettimeofday.m4: New file.
5490 * gnulib/import/m4/sys_socket_h.m4: New file.
5491 * gnulib/import/m4/sys_time_h.m4: New file.
5492 * gnulib/import/stdio.c: Delete file.
5493 * gnulib/import/sys_time.in.h: New file.
5494
438e1e42
PA
54952015-08-24 Pedro Alves <palves@redhat.com>
5496
5497 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
5498 * common/gdb_sys_time.h: New file.
5499 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
5500 * gdb_select.h: Likewise.
5501 * gdb_usleep.c: Likewise.
5502 * maint.c: Likewise.
5503 * mi/mi-main.c: Likewise.
5504 * mi/mi-parse.h: Likewise.
5505 * remote-fileio.c: Likewise.
5506 * remote-m32r-sdi.c: Likewise.
5507 * remote.c: Likewise.
5508 * ser-base.c: Likewise.
5509 * ser-pipe.c: Likewise.
5510 * ser-tcp.c: Likewise.
5511 * ser-unix.c: Likewise.
5512 * symfile.c: Likewise.
5513 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
5514 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
5515 * utils.c: Likewise.
5516
40e0b271
PA
55172015-08-24 Pedro Alves <palves@redhat.com>
5518
5519 * NEWS: Mention removed support for the various ROM monitors.
5520 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
5521 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
5522 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
5523 gdb_target_obs.
5524 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
5525 gdb_target_obs.
5526 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
5527 dsrec.o from gdb_target_obs.
5528 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
5529 from gdb_target_obs.
5530 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
5531 gdb_target_obs.
5532 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
5533 dink32-rom.o from gdb_target_obs.
5534 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
5535 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
5536 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
5537 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
5538
f8904751
PA
55392015-08-21 Pedro Alves <palves@redhat.com>
5540
5541 * frame.c (null_frame_id): Explicitly zero-initialize.
5542
049412e3
TT
55432015-08-21 Tom Tromey <tromey@redhat.com>
5544
5545 * dwarf2read.c (struct dwarf2_section_info): Rename field
5546 'asection' to 'section'.
5547 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
5548 (dwarf2_locate_sections, dwarf2_locate_sections)
5549 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
5550 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
5551 (dwarf2_locate_v2_dwp_sections): Adjust.
5552
948578a9
PP
55532015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5554
5555 * top.h (gdb_in_secondary_prompt_p): Declare.
5556 * top.c (gdb_secondary_prompt_depth): Define.
5557 (gdb_in_secondary_prompt_p): Define.
5558 (gdb_readline_wrapper_cleanup): Decrement
5559 gdb_secondary_prompt_depth.
5560 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
5561 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
5562 are in a secondary prompt.
5563
7a8bcb88
PP
55642015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5565
5566 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
5567 emit the newline.
5568
2d7711a3
GB
55692015-08-21 Gary Benson <gbenson@redhat.com>
5570
5571 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
5572
4313b8c0
GB
55732015-08-21 Gary Benson <gbenson@redhat.com>
5574
5575 * target.h (struct target_ops) <to_fileio_open>: New argument
5576 warn_if_slow. Update comment. All implementations updated.
5577 (target_fileio_open_warn_if_slow): New declaration.
5578 * target.c (target_fileio_open): Renamed as...
5579 (target_fileio_open_1): ...this. New argument warn_if_slow.
5580 Pass warn_if_slow to implementation. Update debug printing.
5581 (target_fileio_open): New function.
5582 (target_fileio_open_warn_if_slow): Likewise.
5583 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
5584 target_fileio_open_warn_if_slow.
5585
f36b8719
GB
55862015-08-21 Gary Benson <gbenson@redhat.com>
5587
5588 * nat/linux-namespaces.c (linux_mntns_access_fs):
5589 Do not overwrite old_chain.
5590
40045d91
MF
55912015-08-20 Max Filippov <jcmvbkbc@gmail.com>
5592
5593 * arch/xtensa.h: New file.
5594 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
5595 (ps_get_thread_area): New function.
5596 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
5597 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
5598 * xtensa-tdep.c (osabi.h): New #include.
5599 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
5600 xtensa-specific hooks.
5601 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
5602 member and move the structure to arch/xtensa.h.
5603
80152258
PA
56042015-08-21 Pedro Alves <palves@redhat.com>
5605
5606 * remote.c (struct readahead_cache): New.
5607 (struct remote_state) <readahead_cache>: New field.
5608 (remote_open_1): Invalidate the cache.
5609 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
5610 functions.
5611 (remote_hostio_pwrite): Invalidate the readahead cache.
5612 (remote_hostio_pread): Rename to ...
5613 (remote_hostio_pread_vFile): ... this.
5614 (remote_hostio_pread_from_cache): New function.
5615 (remote_hostio_pread): Reimplement.
5616 (remote_hostio_close): Invalidate the readahead cache.
5617
88fc5eb7
MC
56182015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
5619
5620 PR build/18843
5621 * procfs.c: Include "filestuff.h".
5622
6f1cb6ea
PP
56232015-08-21 Patrick Palka <patrick@parcs.ath.cx>
5624
5625 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
5626 curch.
5627 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
5628 cur_line or curch, instead call wmove().
5629 (init_win_info) [CMD_WIN]: Likewise.
5630 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
5631 instead call getcury().
5632 (tui_redisplay_readline): Don't set cur_line or curch.
5633 (tui_mld_erase_entire_line): Don't read cur_line, instead call
5634 getcury().
5635 (tui_cont_sig): Remove call to wmove.
5636 (tui_getc): Don't read cur_line or curch, instead call getcury()
5637 or getyx(). Don't set curch.
5638 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
5639 set cur_line or curch. Always move cursor to (0,0).
5640
221e1a37
PA
56412015-08-20 Pedro Alves <palves@redhat.com>
5642
5643 * infrun.c (print_target_wait_results): Make extern.
5644 * infrun.h (print_target_wait_results): Declare.
5645 * remote.c (set_stop_requested_callback): Delete.
5646 (process_initial_stop_replies): New function.
5647 (remote_start_remote): Use it.
5648 (stop_reply_queue_length): New function.
5649
40e3ad0e
PA
56502015-08-20 Pedro Alves <palves@redhat.com>
5651
5652 * dwarf2read.c (process_full_comp_unit): To tell whether
5653 start_subfile managed to deduce a language, test for
5654 language_unknown instead of language_c.
5655
af39b327
PMR
56562015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
5657
5658 * ada-lex.l: Reset the start condition to INITIAL in the rule that
5659 matches attributes.
5660
7d45c7c3
KB
56612015-08-19 Kevin Buettner <kevinb@redhat.com>
5662
5663 * dwarf2read.c (dwarf2_string_attr): New function.
5664 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
5665 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
5666 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
5667 (anonymous_struct_prefix, prepare_one_comp_unit): Use
5668 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
5669
4d6cceb4
DE
56702015-08-18 Doug Evans <dje@google.com>
5671 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5672
5673 PR mi/18833
5674 * cli/cli-logging.c (pop_output_files): Don't restore redirection
5675 if MI-like.
5676 * mi/mi-out.c: #include "vec.h".
5677 (ui_filep): New type.
5678 (DEV_VEC_P (ui_filep)): New type.
5679 (struct ui_out_data) <buffer, original_buffer>: Delete.
5680 (struct ui_out_data) <streams>: New member.
5681 (mi_ui_out_impl): Add data_destroy field.
5682 (mi_field_string, mi_field_fmt): Update.
5683 (mi_flush, mi_redirect, field_separator): Update.
5684 (mi_open, mi_close): Update.
5685 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
5686 (mi_out_data_ctor, mi_out_data_dtor): New functions.
5687 (mi_out_new): Call mi_out_data_ctor.
5688
26d56a93
SL
56892015-08-18 Sandra Loosemore <sandra@codesourcery.com>
5690
5691 * remote.c (strprefix): New.
5692 (remote_parse_stop_reply): Use strprefix instead of strncmp
5693 to ensure exact match of keyword.
5694
566f5e3b
AB
56952015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5696
5697 * gdb_bfd.c (debug_bfd_cache): New variable.
5698 (show_bfd_cache_debug): New function.
5699 (gdb_bfd_open): Add debug logging.
5700 (gdb_bfd_ref): Likewise.
5701 (gdb_bfd_unref): Likewise.
5702 (_initialize_gdb_bfd): Add new set/show command.
5703 * NEWS: Mention new command.
5704
18989b3c
AB
57052015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5706
5707 * gdb_bfd.c (bfd_sharing): New variable.
5708 (show_bfd_sharing): New function.
5709 (gdb_bfd_open): Check bfd_sharing variable.
5710 (_initialize_gdb_bfd): Add new set/show command.
5711 * NEWS: Mention new command.
5712
c04fe68f
AB
57132015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
5714
5715 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
5716 field.
5717 (struct gdb_bfd_cache_search): Likewise.
5718 (eq_bfd): Compare the size, inode, and device id fields.
5719 (gdb_bfd_open): Initialise the size, inode, and device id fields.
5720 (gdb_bfd_ref): Likewise.
5721 (gdb_bfd_unref): Likewise.
5722
b2a33439
PA
57232015-08-18 Pedro Alves <palves@redhat.com>
5724
5725 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
5726 target implements to_always_non_stop_p, call it.
5727 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
5728 (x86_linux_create_target): Install it as to_always_non_stop_p
5729 method.
5730
71b57e37
DE
57312015-08-17 Doug Evans <dje@google.com>
5732
5733 * ui-out.c (default_ui_out_impl): Add comment.
5734
7f3706eb
IB
57352015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
5736
5737 * d-exp.y (type_aggregate_p): New function.
5738 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
5739 (classify_inner_name): Likewise.
5740 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
5741
1762568f
DE
57422015-08-15 Doug Evans <xdje42@gmail.com>
5743
5744 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
5745 updated.
5746 (add_psymbol_to_list): Ditto.
5747
8763cede
DE
57482015-08-15 Doug Evans <xdje42@gmail.com>
5749
5750 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
5751 updated. Call end_psymtab_common.
5752 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
5753 end_psymtab_common.
5754 (build_type_psymtabs_reader): Ditto.
5755 * psympriv.h (sort_pst_symbols): Delete.
5756 (end_psymtab_common): Declare.
5757 * psymtab.c (sort_pst_symbols): Make static.
5758 (end_psymtab_common): New function.
5759 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
5760
51cdc993
DE
57612015-08-15 Doug Evans <xdje42@gmail.com>
5762
5763 * defs.h (LANGUAGE_BITS): Define.
5764 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
5765 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
5766 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
5767 (minimal_symbol_type): Add nr_minsym_types.
5768 (MINSYM_TYPE_BITS): Define.
5769 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
5770 (domain_enum_tag): Add NR_DOMAINS.
5771 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
5772 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
5773
95cf5869
DE
57742015-08-15 Doug Evans <xdje42@gmail.com>
5775
5776 * objfiles.h: Whitespace cleanup.
5777 * psympriv.h: Whitespace cleanup.
5778 * psymtab.c: Whitespace/coding convention cleanup.
5779
e3ae3c43
PP
57802015-08-15 Patrick Palka <patrick@parcs.ath.cx>
5781
5782 * inferior.c (detach_inferior_command): Don't call
5783 any_thread_of_process when pid is 0.
5784 (kill_inferior_command): Likewise.
5785
6ff0ba5f
DE
57862015-08-14 Doug Evans <xdje42@gmail.com>
5787
5788 PR gdb/11833
5789 * NEWS: Document new /s modifier for the disassemble command.
5790 * cli/cli-cmds.c (disassemble_command): Add support for /s.
5791 (_initialize_cli_cmds): Update online docs of disassemble command.
5792 * disasm.c: #include "source.h".
5793 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
5794 All uses updated.
5795 (dis_line_entry): New struct.
5796 (hash_dis_line_entry, eq_dis_line_entry): New functions.
5797 (allocate_dis_line_table): New functions.
5798 (maybe_add_dis_line_entry, line_has_code_p): New functions.
5799 (dump_insns): New arg end_pc. All callers updated.
5800 (do_mixed_source_and_assembly_deprecated): Renamed from
5801 do_mixed_source_and_assembly. All callers updated.
5802 (do_mixed_source_and_assembly): New function.
5803 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
5804 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
5805 DISASSEMBLY_SOURCE. All uses updated.
5806 (DISASSEMBLY_SOURCE): New macro.
5807 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
5808
b56ccc20
KS
58092015-08-14 Keith Seitz <keiths@redhat.com>
5810
5811 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
5812 `typename' to `type_name' to avoid C++ reserved word.
5813
ebdad8fc
KS
58142015-08-14 Keith Seitz <keiths@redhat.com>
5815
5816 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
5817 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
5818 silence ARI errors.
5819
c0fe2ae7
IB
58202015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
5821
5822 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
5823 xstrprintf instead of malloc and sprintf.
5824 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
5825 (lex_one_token): Likewise.
5826
a738da3a
MF
58272015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5828
5829 * solib-svr4.c (read_program_header): Add base_addr argument to
5830 report the runtime address of the segment.
5831 (find_program_interpreter): Update read_program_header call to pass
5832 a NULL pointer for the new argument.
5833 (scan_dyntag): Add ptr_addr argument to report the runtime address
5834 of the tag payload.
5835 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
5836 read_program_header to get the base address of the dynamic segment.
5837 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
5838 read_program_header.
5839 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
5840
f8edc4ff
MF
58412015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
5842
5843 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
5844
444c1ed8
IB
58452015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5846
5847 * d-exp.y (%union): Add voidval.
5848 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
5849 name in the lexing stage.
5850 (PostfixExpression): Move symbol completion handling in grammar here
5851 from PrimaryExpression.
5852 (PrimaryExpression): Move routines to handle resolving identifier
5853 tokens in the grammar here from push_expression_name.
5854 (IdentifierExp): Remove the handling of alternating '.' and identifier
5855 tokens.
5856 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
5857 (BasicType): Remove C-style typename rules.
5858 (d_type_from_name, d_module_from_name, push_variable)
5859 (push_fieldnames, push_type_name, push_module_name)
5860 (push_expression_name): Remove.
5861 (lex_one_token): Rename from yylex. Replace pstate with par_state.
5862 (token_and_value): New type.
5863 (token_fifo, popping, name_obstack): New globals.
5864 (classify_name): New function.
5865 (classify_inner_name): Likewise.
5866 (yylex): Likewise.
5867 (d_parse): Initialize token_fifo, popping and name_obstack.
5868
bc7c9fab
IB
58692015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
5870
5871 * Makefile.in (SFILES): Add d-namespace.c.
5872 (COMMON_OBS): Add d-namespace.o.
5873 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
5874 la_lookup_symbol_nonlocal callback function pointer.
5875 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
5876 (d_lookup_nested_symbol): New declaration.
5877 * d-namespace.c: New file.
5878
3207396b
PA
58792015-08-13 Pedro Alves <palves@redhat.com>
5880
5881 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
5882 cleanup after the decref cleanup, not before.
5883
5d8c3ed3
PMR
58842015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
5885
5886 * ada-lang.c: Include namespace.h
5887 (aux_add_nonlocal_symbols): Fix a function name in comment.
5888 (ada_add_block_renamings): New.
5889 (add_nonlocal_symbols): Add global renamings handling.
5890 (ada_lookup_symbol_list_worker): Move the symbol lookup part
5891 to...
5892 (ada_add_all_symbols): ... this new function.
5893 (ada_add_block_symbols): Try to match the input name against the
5894 "using directives list", perform a recursive symbol lookup on
5895 the matched declarations.
5896 * block.h (struct block): Move the_namespace to top-level as
5897 namespace_info. Remove the language_specific field.
5898 (BLOCK_NAMESPACE): Update access to the namespace_info field.
5899 * buildsym.h (using_directives): Rename into...
5900 (local_using_directives): ... this.
5901 (global_using_directives): New.
5902 (struct context_stack): Rename the using_directives field into
5903 local_using_directives.
5904 * buildsym.c (finish_block_internal): Deal with the proper
5905 using directives repository (local or global).
5906 (prepare_for_building): Reset local_using_directives. Assert
5907 that there is no pending global using directive.
5908 (reset_symtab_globals): Reset global_using_directives and
5909 local_using_directives.
5910 (end_symtab_get_static_block): Don't ignore symtabs that have
5911 only using directives.
5912 (push_context): Update references to local_using_directives.
5913 (buildsym_init): Do not reset using_directives.
5914 * cp-support.c: Include namespace.h.
5915 * cp-support.h (struct using_direct): Move to namespace.h.
5916 (cp_add_using_directives): Move to namespace.h.
5917 * cp-namespace.c: Include namespace.h
5918 (cp_add_using_directive): Move to namespace.c, rename it to
5919 add_using_directive, add a "using_directives" argument and use
5920 it as the pending using directives repository. All callers
5921 updated.
5922 * dwarf2read.c (using_directives): New.
5923 (read_import_statement): Call using_directives.
5924 (read_func_scope): Update references to local_using_directives.
5925 (read_lexical_block_scope): Likewise.
5926 (read_namespace): Update the heading comment, call
5927 using_directives.
5928 * namespace.h: New file.
5929 * namespace.c: New file.
5930 * Makefile.in (SFILES): Add namespace.c.
5931 (COMMON_OBS): Add namespace.o
5932
4dafcdeb
JB
59332015-08-12 Joel Brobecker <brobecker@adacore.com>
5934
5935 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
5936 compute RETADDR.
5937
67994074
KS
59382015-08-12 Keith Seitz <keiths@redhat.com>
5939
5940 * break-catch-throw.c (re_set_exception_catchpoint) Rename
5941 reserved C++ keyword "explicit" to "explicit_loc".
5942 * breakpoint.c (create_overlay_event_breakpoint)
5943 (create_longjmp_master_breakpoint)
5944 (create_std_terminate_master_breakpoint)
5945 (create_exception_master_breakpoint, update_static_tracepoint):
5946 Rename reserved C++ keyword "explicit" to "explicit_loc".
5947 * completer.c (collect_explicit_location_matches)
5948 (explicit_location_completer): Rename reserved C++ keyword
5949 "explicit" to "explicit_loc".
5950 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
5951 (canonicalize_linespec, create_sals_line_offset)
5952 (convert_linespec_to_sals, convert_explicit_location_to_sals)
5953 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
5954 "explicit" to "explicit_loc".
5955 * location.c (struct event_location) <explicit>: Rename to
5956 "explicit_loc".
5957 (initialize_explicit_location, new_explicit_location)
5958 (explicit_location_to_string_internal, explicit_location_to_linespec):
5959 Rename reserved C++ keyword "explicit" to "explicit_loc".
5960 * location.h (explicit_location_to_string)
5961 (explicit_location_to_linespec, initialize_explicit_location)
5962 (new_explicit_location): Rename reserved C++ keyword "explicit"
5963 to "explicit_loc".
5964 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
5965 keyword "explicit" to "explicit_loc".
5966
59ecaff3
KS
59672015-08-12 Keith Seitz <keiths@redhat.com>
5968
5969 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
5970 and only call decode_line_1 when it is non-NULL.
5971
244558af
LM
59722015-08-12 Luis Machado <lgustavo@codesourcery.com>
5973
5974 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
5975 location address is not meaningful.
5976 (breakpoint_address_is_meaningful): Update comment.
5977
629500fa
KS
59782015-08-11 Keith Seitz <keiths@redhat.com>
5979
5980 * NEWS: Mention explicit locations.
5981 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
5982 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
5983 (_initialize_breakpoint): Update documentation for
5984 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
5985
eb8c4e2e
KS
59862015-08-11 Keith Seitz <keiths@redhat.com>
5987
5988 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
5989 explicit locations, options "--source", "--function",
5990 "--label", and "--line".
5991
87f0e720
KS
59922015-08-11 Keith Seitz <keiths@redhat.com>
5993
5994 * completer.c: Include location.h.
5995 (enum match_type): New enum.
5996 (location_completer): Rename to ...
5997 (linespec_completer): ... this.
5998 (collect_explicit_location_matches, backup_text_ptr)
5999 (explicit_location_completer): New functions.
6000 (location_completer): "New" function; handle linespec
6001 and explicit location completions.
6002 (complete_line_internal): Remove all location completer-specific
6003 handling.
6004 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
6005 (find_toplevel_char): Export.
6006 (linespec_parse_line_offset): Export.
6007 Issue error if STRING is not numerical.
6008 (gdb_get_linespec_parser_quote_characters): New function.
6009 * linespec.h (linespec_parse_line_offset): Declare.
6010 (get_gdb_linespec_parser_quote_characters): Declare.
6011 (is_ada_operator): Declare.
6012 (find_toplevel_char): Declare.
6013 (linespec_lexer_lex_keyword): Declare.
6014 * location.c (explicit_to_event_location): New function.
6015 (explicit_location_lex_one): New function.
6016 (string_to_explicit_location): New function.
6017 (string_to_event_location): Handle explicit locations.
6018 * location.h (explicit_to_event_location): Declare.
6019 (string_to_explicit_location): Declare.
6020
00e52e53
KS
60212015-08-11 Keith Seitz <keiths@redhat.com>
6022
6023 * break-catch-throw.c (re_set_exception_catchpoint): Convert
6024 linespec into explicit location.
6025 * breakpoint.c (create_overlay_breakpoint)
6026 (create_longjmp_master_breakpoint)
6027 (create_std_terminate_master_breakpoint)
6028 (create_exception_master_breakpoint): Convert linespec into explicit
6029 location.
6030 (update_static_tracepoint): Convert linespec into explicit location.
6031 * linespec.c (enum offset_relative_sign, struct line_offset): Move
6032 location.h.
6033 (struct linespec) <expression, expr_pc, source_filename>
6034 <function_name, label_name, line_offset>: Replace with ...
6035 <explicit>: ... this.
6036 <is_linespec>: New member.
6037 (PARSER_EXPLICIT): New accessor macro.
6038 (undefined_label_error): New function.
6039 (source_file_not_found_error): New function.
6040 (linespec_parse_basic): The parser result is now an explicit location.
6041 Use PARSER_EXPLICIT to access it.
6042 Use undefined_label_error.
6043 (canonicalize_linespec): Convert canonical linespec into explicit
6044 location.
6045 Move string representation of location to explicit_location_to_linespec
6046 and use it and explicit_location_to_string to save string
6047 representations of the canonical location.
6048 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
6049 explicit location. Update all references.
6050 (convert_explicit_location_to_sals): New function.
6051 (parse_linespec): Use PARSER_EXPLICIT to access the parser
6052 result's explicit location.
6053 (linespec_state_constructor): Initialize is_linespec.
6054 Use PARSER_EXPLICIT.
6055 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
6056 result.
6057 (event_location_to_sals): For linespec locations, set is_linespec.
6058 Handle explicit locations.
6059 (decode_objc): 'ls' contains an explicit location now. Update all
6060 references.
6061 (symtabs_from_filename): Use source_file_not_found_error.
6062 * location.c (struct event_location.u) <explicit>: New member.
6063 (initialize_explicit_location): New function.
6064 (initialize_event_location): Initialize explicit locations.
6065 (new_explicit_location, get_explicit_location)
6066 (get_explicit_location_const): New functions.
6067 (explicit_to_string_internal): New function; most of contents moved
6068 from canonicalize_linespec.
6069 (explicit_location_to_string): New function.
6070 (explicit_location_to_linespec): New function.
6071 (copy_event_location, delete_event_location)
6072 (event_location_to_string_const, event_location_empty_p): Handle
6073 explicit locations.
6074 * location.h (enum offset_relative_sign, struct line_offset): Move
6075 here from linespec.h.
6076 (enum event_location_type): Add EXPLICIT_LOCATION.
6077 (struct explicit_location): New structure.
6078 (explicit_location_to_string): Declare.
6079 (explicit_location_to_linespec): Declare.
6080 (new_explicit_location, get_explicit_locationp
6081 (get_explicit_location_const, initialize_explicit_location): Declare.
6082
5b56227b
KS
60832015-08-11 Keith Seitz <keiths@redhat.com>
6084
6085 * break-catch-throw.c (re_set_exception_catchpoint): Convert
6086 linespec for stap probe to probe location.
6087 * breakpoint.c (create_longjmp_master_breakpoint)
6088 (create_exception_master_breakpoint): Likewise.
6089 (break_command_1): Remove local variable `arg_cp'.
6090 Check location type to set appropriate breakpoint ops methods.
6091 (trace_command): Likewise.
6092 * linespec.c (event_location_to_sals): Assert on probe locations.
6093 * location.c (EL_PROBE): Add macro definition.
6094 (new_probe_location, get_probe_location): New functions.
6095 (copy_event_location, delete_event_location, event_location_to_string)
6096 (string_to_event_location, event_location_empty_p): Handle probe
6097 locations.
6098 * location.h (enum event_location_type): Add PROBE_LOCATION.
6099 (new_probe_location, get_probe_location): Declare.
6100 * probe.c (parse_probes): Assert that LOCATION is a probe location.
6101 Convert linespec into probe location.
6102
a06efdd6
KS
61032015-08-11 Keith Seitz <keiths@redhat.com>
6104
6105 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
6106 Convert linespec to address location.
6107 * linespec.c (canonicalize_linespec): Do not handle address
6108 locations here.
6109 (convert_address_location_to_sals): New function; contents moved
6110 from ...
6111 (convert_linespc_to_sals): ... here.
6112 (parse_linespec): Remove address locations from linespec grammar.
6113 Remove handling of address locations.
6114 (linespec_lex_to_end): Remove handling of address linespecs.
6115 (event_location_to_sals): Handle ADDRESS_LOCATION.
6116 (linespec_expression_to_pc): Export.
6117 * linespec.h (linespec_expression_to_pc): Add declaration.
6118 * location.c (struct event_location.u) <address>: New member.
6119 (new_address_location, get_address_location): New functions.
6120 (copy_event_location, delete_event_location, event_location_to_string)
6121 (string_to_event_location, event_location_empty_p): Handle address
6122 locations.
6123 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
6124 (new_address_location, get_address_location): Declare.
6125 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
6126 to address location.
6127 * spu-tdep.c (spu_catch_start): Likewise.
6128
f00aae0f
KS
61292015-08-11 Keith Seitz <keiths@redhat.com>
6130
6131 * ax-gdb.c: Include location.h.
6132 (agent_command_1) Use linespec location instead of address
6133 string.
6134 * break-catch-throw.c: Include location.h.
6135 (re_set_exception_catchpoint): Use linespec locations instead
6136 of address strings.
6137 * breakpoint.c: Include location.h.
6138 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
6139 (create_std_terminate_master_breakpoint)
6140 (create_exception_master_breakpoint, update_breakpoints_after_exec):
6141 Use linespec location instead of address string.
6142 (print_breakpoint_location): Use locations and
6143 event_location_to_string.
6144 Print extra_string for pending locations for non-MI streams.
6145 (print_one_breakpoint_location): Use locations and
6146 event_location_to_string.
6147 (init_raw_breakpoint_without_location): Initialize b->location.
6148 (create_thread_event_breakpoint): Use linespec location instead of
6149 address string.
6150 (init_breakpoint_sal): Likewise.
6151 Only save extra_string if it is non-NULL and not the empty string.
6152 Use event_location_to_string instead of `addr_string'.
6153 Constify `p' and `endp'.
6154 Use skip_spaces_const/skip_space_const instead of non-const versions.
6155 Copy the location into the breakpoint.
6156 If LOCATION is NULL, save the breakpoint address as a linespec location
6157 instead of an address string.
6158 (create_breakpoint_sal): Change `addr_string' parameter to a struct
6159 event_location. All uses updated.
6160 (create_breakpoints_sal): Likewise for local variable `addr_string'.
6161 (parse_breakpoint_sals): Use locations instead of address strings.
6162 Remove check for empty linespec with conditional.
6163 Refactor.
6164 (decode_static_tracepoint_spec): Make argument const and update
6165 function.
6166 (create_breakpoint): Change `arg' to a struct event_location and
6167 rename.
6168 Remove `copy_arg' and `addr_start'.
6169 If EXTRA_STRING is empty, set it to NULL.
6170 Don't populate `canonical' for pending breakpoints.
6171 Pass `extra_string' to find_condition_and_thread.
6172 Clear `extra_string' if `rest' was NULL.
6173 Do not error with "garbage after location" if setting a dprintf
6174 breakpoint.
6175 Copy the location into the breakpoint instead of an address string.
6176 (break_command_1): Use string_to_event_location and pass this to
6177 create_breakpoint instead of an address string.
6178 Check against `arg_cp' for a probe linespec.
6179 (dprintf_command): Use string_to_event_location and pass this to
6180 create_breakpoint instead of an address string.
6181 Throw an exception if no format string was specified.
6182 (print_recreate_ranged_breakpoint): Use event_location_to_string
6183 instead of address strings.
6184 (break_range_command, until_break_command)
6185 (init_ada_exception_breakpoint): Use locations instead
6186 of address strings.
6187 (say_where): Print out extra_string for pending locations.
6188 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
6189 the breakpoint.
6190 (base_breakpoint_create_sals_from_location): Use struct event_location
6191 instead of address string.
6192 Remove `addr_start' and `copy_arg' parameters.
6193 (base_breakpoint_decode_location): Use struct event_location instead of
6194 address string.
6195 (bkpt_re_set): Use locations instead of address strings.
6196 Use event_location_empty_p to check for unset location.
6197 (bkpt_print_recreate): Use event_location_to_string instead of
6198 an address string.
6199 Print out extra_string for pending locations.
6200 (bkpt_create_sals_from_location, bkpt_decode_location)
6201 (bkpt_probe_create_sals_from_location): Use struct event_location
6202 instead of address string.
6203 (bkpt_probe_decode_location): Use struct event_location instead of
6204 address string.
6205 (tracepoint_print_recreate): Use event_location_to_string to
6206 recreate the tracepoint.
6207 (tracepoint_create_sals_from_location, tracepoint_decode_location)
6208 (tracepoint_probe_create_sals_from_location)
6209 (tracepoint_probe_decode_location): Use struct event_location
6210 instead of address string.
6211 (dprintf_print_recreate): Use event_location_to_string to recreate
6212 the dprintf.
6213 (dprintf_re_set): Remove check for valid/missing format string.
6214 (strace_marker_create_sals_from_location)
6215 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
6216 (update_static_tracepoint): Use struct event_location instead of
6217 address string.
6218 (location_to_sals): Likewise.
6219 Pass `extra_string' to find_condition_and_thread.
6220 For newly resolved pending breakpoint locations, clear the location's
6221 string representation.
6222 Assert that the breakpoint's condition string is NULL when
6223 condition_not_parsed.
6224 (breakpoint_re_set_default, create_sals_from_location_default)
6225 (decode_location_default, trace_command, ftrace_command)
6226 (strace_command, create_tracepoint_from_upload): Use locations
6227 instead of address strings.
6228 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
6229 Use struct event_location instead of address string.
6230 Update all uses.
6231 <decode_location>: Likewise.
6232 (struct breakpoint) <addr_string>: Change to struct event_location
6233 and rename `location'.
6234 <addr_string_range_end>: Change to struct event_location and rename
6235 `location_range_end'.
6236 (create_breakpoint): Use struct event_location instead of address
6237 string.
6238 * cli/cli-cmds.c: Include location.h.
6239 (edit_command, list_command): Use locations instead of address strings.
6240 * elfread.c: Include location.h.
6241 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
6242 * guile/scm-breakpoint.c: Include location.h.
6243 (bpscm_print_breakpoint_smob): Use event_location_to_string.
6244 (gdbscm_register_breakpoint): Use locations instead of address
6245 strings.
6246 * linespec.c: Include location.h.
6247 (struct ls_parser) <stream>: Change to const char *.
6248 (PARSER_STREAM): Update.
6249 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
6250 keywords must be followed by whitespace.
6251 (canonicalize_linespec): Save a linespec location into `canonical'.
6252 Save a canonical linespec into `canonical'.
6253 (parse_linespec): Change `argptr' to const char * and rename `arg'.
6254 All uses updated.
6255 Update function description.
6256 (linespec_parser_new): Initialize `parser'.
6257 Update initialization of parsing stream.
6258 (event_location_to_sals): New function.
6259 (decode_line_full): Change `argptr' to a struct event_location and
6260 rename it `location'.
6261 Use locations instead of address strings.
6262 Call event_location_to_sals instead of parse_linespec.
6263 (decode_line_1): Likewise.
6264 (decode_line_with_current_source, decode_line_with_last_displayed)
6265 Use locations instead of address strings.
6266 (decode_objc): Likewise.
6267 Change `argptr' to const char * and rename `arg'.
6268 (destroy_linespec_result): Delete the linespec result's location
6269 instead of freeing the address string.
6270 * linespec.h (struct linespec_result) <addr_string>: Change to
6271 struct event_location and rename to ...
6272 <location>: ... this.
6273 (decode_line_1, decode_line_full): Change `argptr' to struct
6274 event_location. All callers updated.
6275 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
6276 (mi_cmd_break_insert_1): Use locations instead of address strings.
6277 Throw an error if there was "garbage" at the end of the specified
6278 linespec.
6279 * probe.c: Include location.h.
6280 (parse_probes): Change `argptr' to struct event_location.
6281 Use event locations instead of address strings.
6282 * probe.h (parse_probes): Change `argptr' to struct event_location.
6283 * python/py-breakpoint.c: Include location.h.
6284 (bppy_get_location): Constify local variable `str'.
6285 Use event_location_to_string.
6286 (bppy_init): Use locations instead of address strings.
6287 * python/py-finishbreakpoint.c: Include location.h.
6288 (bpfinishpy_init): Remove local variable `addr_str'.
6289 Use locations instead of address strings.
6290 * python/python.c: Include location.h.
6291 (gdbpy_decode_line): Use locations instead of address strings.
6292 * remote.c: Include location.h.
6293 (remote_download_tracepoint): Use locations instead of address
6294 strings.
6295 * spu-tdep.c: Include location.h.
6296 (spu_catch_start): Remove local variable `buf'.
6297 Use locations instead of address strings.
6298 * tracepoint.c: Include location.h.
6299 (scope_info): Use locations instead of address strings.
6300 (encode_source_string): Constify parameter `src'.
6301 * tracepoint.h (encode_source_string): Likewise.
6302
c7c1b3e9
KS
63032015-08-11 Keith Seitz <keiths@redhat.com>
6304
6305 * Makefile.in (SFILES): Add location.c.
6306 (HFILES_NO_SRCDIR): Add location.h.
6307 (COMMON_OBS): Add location.o.
6308 * linespec.c (linespec_lex_to_end): New function.
6309 * linespec.h (linespec_lex_to_end): Declare.
6310 * location.c: New file.
6311 * location.h: New file.
6312
5f700d83
KS
63132015-08-11 Keith Seitz <keiths@redhat.com>
6314
6315 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
6316 Renamed to create_sals_from_location.
6317 <decode_linespec>: Renamed to decode_location.
6318 Update all callers.
6319 * breakpoint.c (create_sals_from_address_default): Renamed to ...
6320 (create_sals_from_location_default): ... this.
6321 (addr_string_to_sals): Renamed to ...
6322 (location_to_sals): ... this.
6323 (decode_linespec_default): Renamed to ...
6324 (decode_location_default): ... this.
6325 (base_breakpoint_create_sals_from_address): Renamed to ...
6326 (base_breakpoint_create_sals_from_location): ... this.
6327 (bkpt_create_sals_from_address): Renamed to ...
6328 (bkpt_create_sals_from_location): ... this.
6329 (bkpt_decode_linespec): Renamed to ...
6330 (bkpt_decode_location): ... this.
6331 (bkpt_probe_create_sals_from_address): Renamed to ...
6332 (bkpt_probe_create_sals_from_location): ... this.
6333 (tracepoint_create_sals_from_address): Renamed to ...
6334 (tracepoint_create_sals_from_location): ... this.
6335 (tracepoint_decode_linespec): Renamed to ...
6336 (tracepoint_decode_location): ... this.
6337 (tracepoint_probe_create_sals_from_address): Renamed to ...
6338 (tracepoint_probe_create_sals_from_location): ... this.
6339 (tracepoint_probe_decode_linespec): Renamed to ...
6340 (tracepoint_probe_decode_location): ... this.
6341 (strace_marker_create_sals_from_address): Renamed to ...
6342 (strace_marker_create_sals_from_location): ... this.
6343 (decode_linespec_default): Renamed to ...
6344 (decode_location_default): ... this.
6345
e27852be
DE
63462015-08-10 Doug Evans <dje@google.com>
6347 Keith Seitz <keiths@redhat.com>
6348
6349 PR gdb/17960
6350 * symtab.c (make_file_symbol_completion_list_1): Renamed from
6351 make_file_symbol_completion_list and made static.
6352 (make_file_symbol_completion_list): New function.
80af41e0 6353
fd7dcb94
JB
63542015-08-10 Joel Brobecker <brobecker@adacore.com>
6355
6356 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
6357 trailing new-line at end of warning message.
6358 (proceed): Add i18n marker to error messages.
6359
f12899e9
PA
63602015-08-07 Pedro Alves <palves@redhat.com>
6361
6362 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
6363
5ac21343
PA
63642015-08-07 Pedro Alves <palves@redhat.com>
6365
6366 * s390-linux-tdep.c (is_non_branch_ril)
6367 (s390_displaced_step_copy_insn): New functions.
6368 (s390_displaced_step_fixup): Update comment.
6369 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
6370 gdbarch_displaced_step_copy_insn hook.
6371
7f03bd92
PA
63722015-08-07 Pedro Alves <palves@redhat.com>
6373
6374 * infrun.c (displaced_step_prepare_throw): Return -1 if
6375 gdbarch_displaced_step_copy_insn returns NULL. Update intro
6376 comment.
6377 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
6378 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
6379 in file.
6380 (ppc_displaced_step_copy_insn): New function.
6381 (ppc_displaced_step_fixup): Update comment.
6382 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
6383 gdbarch_displaced_step_copy_insn hook.
6384 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
6385 NULL return.
6386 * gdbarch.h: Regenerate.
6387
3fc8eb30
PA
63882015-08-07 Pedro Alves <palves@redhat.com>
6389
6390 * inferior.h (struct inferior) <displaced_stepping_failed>: New
6391 field.
6392 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
6393 Return false if dispaced stepping failed before.
6394 (resume): Pass the current inferior to
6395 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
6396 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
6397 displaced_stepping_failed flag, and fall back to an in-line
6398 step-over.
6399
bfedc46a
PA
64002015-08-07 Pedro Alves <palves@redhat.com>
6401
6402 * darwin-nat.c (darwin_stop): Rename to ...
6403 (darwin_interrupt): ... this.
6404 (_initialize_darwin_inferior): Adjust.
6405 * gnu-nat.c (gnu_stop): Delete.
6406 (gnu_target): Don't install gnu_stop.
6407 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
6408 (inf_ptrace_interrupt): ... this.
6409 (inf_ptrace_target): Adjust.
6410 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
6411 target_stop.
6412 * linux-nat (linux_nat_stop): Rename to ...
6413 (linux_nat_interrupt): ... this.
6414 (linux_nat_stop): Reimplement.
6415 (linux_nat_add_target): Install linux_nat_interrupt.
6416 * nto-procfs.c (nto_interrupt_twice): Rename to ...
6417 (nto_handle_sigint_twice): ... this.
6418 (nto_interrupt): Rename to ...
6419 (nto_handle_sigint): ... this. Call target_interrupt instead of
6420 target_stop.
6421 (procfs_wait): Adjust.
6422 (procfs_stop): Rename to ...
6423 (procfs_interrupt): ... this.
6424 (init_procfs_targets): Adjust.
6425 * procfs.c (procfs_stop): Rename to ...
6426 (procfs_interrupt): ... this.
6427 (procfs_target): Adjust.
6428 * remote-m32r-sdi.c (m32r_stop): Rename to ...
6429 (m32r_interrupt): ... this.
6430 (init_m32r_ops): Adjust.
6431 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
6432 (gdbsim_interrupt_inferior): ... this.
6433 (gdbsim_stop): Rename to ...
6434 (gdbsim_interrupt): ... this.
6435 (gdbsim_cntrl_c): Adjust.
6436 (init_gdbsim_ops): Adjust.
6437 * remote.c (sync_remote_interrupt): Adjust comments.
6438 (remote_stop_as): Rename to ...
6439 (remote_interrupt_as): ... this.
6440 (remote_stop): Adjust comment.
6441 (remote_interrupt): New function.
6442 (init_remote_ops): Install remote_interrupt.
6443 * target.c (target_interrupt): New function.
6444 * target.h (struct target_ops) <to_interrupt>: New field.
6445 (target_interrupt): New declaration.
6446 * windows-nat.c (windows_stop): Rename to ...
6447 (windows_interrupt): ... this.
6448 * target-delegates.c: Regenerate.
6449
d55007b5
PA
64502015-08-07 Pedro Alves <palves@redhat.com>
6451
6452 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
6453 threads" as alternative to "switching back to stepped thread".
6454
fbea99ea
PA
64552015-08-07 Pedro Alves <palves@redhat.com>
6456
6457 * NEWS: Mention "maint set/show target-non-stop".
6458 * breakpoint.c (update_global_location_list): Check
6459 target_is_non_stop_p instead of non_stop.
6460 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
6461 * infrun.c (show_can_use_displaced_stepping)
6462 (can_use_displaced_stepping_p, start_step_over_inferior):
6463 Likewise.
6464 (internal_resume_ptid): New function.
6465 (resume): Use it.
6466 (proceed): Check target_is_non_stop_p instead of non_stop. If in
6467 all-stop mode but the target is always in non-stop mode, start all
6468 the other threads that are implicitly resumed too.
6469 (for_each_just_stopped_thread, fetch_inferior_event)
6470 (adjust_pc_after_break, stop_all_threads): Check
6471 target_is_non_stop_p instead of non_stop.
6472 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
6473 with the target always in non-stop mode.
6474 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
6475 instead of non_stop.
6476 (switch_back_to_stepped_thread): Check target_is_non_stop_p
6477 instead of non_stop.
6478 (keep_going_stepped_thread): Use internal_resume_ptid.
6479 (stop_waiting): If in all-stop mode, and the target is in non-stop
6480 mode, stop all threads.
6481 (keep_going_pass): Likewise, when starting a new in-line step-over
6482 sequence.
6483 * linux-nat.c (get_pending_status, select_event_lwp)
6484 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
6485 target_is_non_stop_p instead of non_stop.
6486 (linux_nat_always_non_stop_p): New function.
6487 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
6488 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
6489 * target-delegates.c: Regenerate.
6490 * target.c (target_is_non_stop_p): New function.
6491 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
6492 (maint_set_target_non_stop_command)
6493 (maint_show_target_non_stop_command): New functions.
6494 (_initilize_target): Install "maint set/show target-non-stop"
6495 commands.
6496 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
6497 (target_non_stop_enabled): New declaration.
6498 (target_is_non_stop_p): New declaration.
6499
372316f1
PA
65002015-08-07 Pedro Alves <pedro@codesourcery.com>
6501
6502 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
6503 has a pending status, return true.
6504 * gdbthread.h: Include target/waitstatus.h.
6505 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
6506 stop_pc>: New fields.
6507 (struct thread_info) <resumed>: New field.
6508 (set_resumed): Declare.
6509 * infrun.c: Include "event-loop.h".
6510 (infrun_async_inferior_event_token, infrun_is_async): New globals.
6511 (infrun_async): New function.
6512 (clear_step_over_info): Add debug output.
6513 (displaced_step_in_progress_any_inferior): New function.
6514 (displaced_step_fixup): New returns int.
6515 (start_step_over): Handle in-line step-overs too. Assert the
6516 thread is marked resumed.
6517 (resume_cleanups): Clear the thread's resumed flag.
6518 (resume): Set the thread's resumed flag. Return early if the
6519 thread has a pending status. Allow stepping a breakpoint with no
6520 signal.
6521 (proceed): Adjust to check 'resumed' instead of 'executing'.
6522 (clear_proceed_status_thread): If the thread has a pending status,
6523 and that status is a finished step, discard the pending status.
6524 (clear_proceed_status): Don't clear step_over_info here.
6525 (random_pending_event_thread, do_target_wait): New functions.
6526 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
6527 do_target_wait.
6528 (wait_one): New function.
6529 (THREAD_STOPPED_BY): New macro.
6530 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6531 (thread_stopped_by_hw_breakpoint): New functions.
6532 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
6533 functions.
6534 (handle_inferior_event): Also call set_resumed(false) on all
6535 threads implicitly stopped by the event.
6536 (restart_threads, resumed_thread_with_pending_status): New
6537 functions.
6538 (finish_step_over): If we were doing an in-line step-over before,
6539 and no longer are after trying to start a new step-over, restart
6540 all threads. If we have multiple threads with pending events,
6541 save the current event and go through the event loop again.
6542 (handle_signal_stop): Return early if finish_step_over returns
6543 false.
6544 <random signal>: If we get a signal while stepping over a
6545 breakpoint in-line in non-stop mode, restart all threads. Clear
6546 step_over_info before delivering the signal.
6547 (keep_going_stepped_thread): Use internal_error instead of
6548 gdb_assert. Mark the thread as resumed.
6549 (keep_going_pass_signal): Assert the thread isn't already resumed.
6550 If some other thread is doing an in-line step-over, defer the
6551 resume. If we just started a new in-line step-over, stop all
6552 threads. Don't clear step_over_info.
6553 (infrun_async_inferior_event_handler): New function.
6554 (_initialize_infrun): Create async event handler with
6555 infrun_async_inferior_event_handler as callback.
6556 (infrun_async): New declaration.
6557 * target.c (target_async): New function.
6558 * target.h (target_async): Declare macro and readd as function
6559 declaration.
6560 * target/waitstatus.h (enum target_stop_reason)
6561 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6562 * thread.c (new_thread): Clear the new waitstatus field.
6563 (set_resumed): New function.
6564
2ac7589c
PA
65652015-08-07 Pedro Alves <palves@redhat.com>
6566
6567 * infrun.c (keep_going_stepped_thread): New function, factored out
6568 from ...
6569 (switch_back_to_stepped_thread): ... here.
6570
8b061563
PA
65712015-08-07 Pedro Alves <palves@redhat.com>
6572
6573 * infrun.c (currently_stepping): Extend intro comment.
6574 * target.h (target_resume): Extend intro comment.
6575
1afd5965
PA
65762015-08-07 Pedro Alves <palves@redhat.com>
6577
6578 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
6579 of inferior_ptid. If the stepped thread vanished, return 0
6580 instead of resuming here. Use reset_ecs. Print the prev_pc and
6581 the current stop_pc in log message. Clear trap_expected if the
6582 thread advanced. Don't pass currently_stepping to
6583 do_target_resume.
6584
4d9d9d04
PA
65852015-08-07 Pedro Alves <palves@redhat.com>
6586
6587 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
6588 * infrun.c (struct execution_control_state): Move higher up in the
6589 file.
6590 (reset_ecs): New function.
6591 (start_step_over): Now returns int. Rewrite to use
6592 keep_going_pass_signal instead of manually starting a displaced step.
6593 (resume): Don't call set_running here. If displaced stepping
6594 can't start now, clear trap_expected.
6595 (find_thread_needs_step_over): Delete function.
6596 (proceed): Set up finish_thread_state_cleanup. Call set_running.
6597 If the current thread needs a step over, push it in the step-over
6598 chain. Don't set insert breakpoints nor call resume directly
6599 here. Instead rewrite to use start_step_over and
6600 keep_going_pass_signal.
6601 (finish_step_over): New function.
6602 (handle_signal_stop): Call finish_step_over instead of
6603 start_step_over.
6604 (switch_back_to_stepped_thread): If the event thread needs another
6605 step-over do that first. Use start_step_over.
6606 (keep_going_pass_signal): New function, factored out from ...
6607 (keep_going): ... here.
6608 (_initialize_infrun): Comment moved here.
6609 * thread.c (set_running_thread): New function.
6610 (set_running, finish_thread_state): Use set_running_thread.
6611
c2829269
PA
66122015-08-07 Pedro Alves <palves@redhat.com>
6613
6614 * gdbthread.h (struct thread_info) <step_over_prev,
6615 step_over_next>: New fields.
6616 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
6617 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
6618 declarations.
6619 * infrun.c (struct displaced_step_request): Delete.
6620 (struct displaced_step_inferior_state) <step_request_queue>:
6621 Delete field.
6622 (displaced_step_prepare): Assert that trap_expected is set. Use
6623 thread_step_over_chain_enqueue. Split starting a new displaced
6624 step to ...
6625 (start_step_over): ... this new function.
6626 (resume): Assert the thread isn't waiting for a step over already.
6627 (proceed): Assert the thread isn't waiting for a step over
6628 already.
6629 (infrun_thread_stop_requested): Adjust to remove threads from the
6630 embedded step-over chain.
6631 (handle_inferior_event) <fork/vfork>: Call start_step_over after
6632 displaced_step_fixup.
6633 (handle_signal_stop): Call start_step_over after
6634 displaced_step_fixup.
6635 * infrun.h (step_over_queue_head): New declaration.
6636 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
6637 (thread_step_over_chain_next, thread_is_in_step_over_chain)
6638 (thread_step_over_chain_enqueue)
6639 (thread_step_over_chain_remove): New functions.
6640 (delete_thread_1): Remove thread from the step-over chain.
6641
6c4cfb24
PA
66422015-08-07 Pedro Alves <palves@redhat.com>
6643
6644 * infrun.c (thread_still_needs_step_over): Rename to ...
6645 (thread_still_needs_step_over_bp): ... this.
6646 (enum step_over_what): New.
6647 (thread_still_needs_step_over): Reimplement.
6648
567420d1
PA
66492015-08-07 Pedro Alves <palves@redhat.com>
6650
6651 * remote.c (remote_wait_as): If not waiting for a stop reply,
6652 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
6653 requested, don't block waiting forever.
6654
d8dd4d5f
PA
66552015-08-07 Pedro Alves <pedro@codesourcery.com>
6656
6657 * infrun.c (adjust_pc_after_break): Now takes thread_info and
6658 waitstatus pointers instead of an ecs. Adjust.
6659 (handle_inferior_event): Adjust caller.
6660
e1316e60
PA
66612015-08-07 Pedro Alves <palves@redhat.com>
6662
6663 * infrun.c (handle_inferior_event): If we get
6664 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
6665 mode, mark all threads of the exiting process as not-executing.
6666 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
6667 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
6668 exiting process, if inferior_ptid still points at a process.
6669 * thread.c (struct current_thread_cleanup) <next>: New field.
6670 (current_thread_cleanup_chain): New global.
6671 (restore_current_thread_ptid_changed): New function.
6672 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
6673 current_thread_cleanup_chain list.
6674 (make_cleanup_restore_current_thread): Add the cleanup data to the
6675 current_thread_cleanup_chain list.
6676 (_initialize_thread): Install restore_current_thread_ptid_changed
6677 as thread_ptid_changed observer.
6678
47e9c225
JB
66792015-08-07 Joel Brobecker <brobecker@adacore.com>
6680
6681 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
6682 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
6683 smaller than expected.
6684
06096720
AB
66852015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
6686
6687 * stack.c (get_frame_language): Moved ...
6688 * frame.c (get_frame_language): ... to here.
6689 * language.h (get_frame_language): Declaration moved to frame.h.
6690 * frame.h: Add language.h include, for language enum.
6691 (get_frame_language): Declaration moved from language.h.
6692 * language.c: Add frame.h include.
6693 * top.c: Add frame.h include.
6694 * symtab.h (struct obj_section): Declare.
6695 (struct cmd_list_element): Declare.
6696
7ff38b1c
AB
66972015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
6698
6699 * language.c (show_language_command): Find selected frame before
6700 asking for the language of that frame.
6701 (set_language_command): Likewise.
6702 * language.h (get_frame_language): Add frame parameter.
6703 * stack.c (get_frame_language): Add frame parameter, assert
6704 parameter is not NULL, update comment and reindent.
6705 * top.c (check_frame_language_change): Pass the selected frame
6706 into get_frame_language.
6707
da8c46d2
MM
67082015-08-07 Markus Metzger <markus.t.metzger@intel.com>
6709
6710 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
6711 (pt_btrace_insn_flags): New.
6712 (ftrace_add_pt): Call pt_btrace_insn_flags.
6713 * btrace.h (btrace_insn_flag): New.
6714 (btrace_insn) <flags>: New.
6715 * record-btrace.c (btrace_insn_history): Print insn prefix.
6716 * NEWS: Announce it.
6717
5599c404
MM
67182015-08-07 Markus Metzger <markus.t.metzger@intel.com>
6719
6720 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
6721 * configure: Regenerate.
6722
016a3251
DD
67232015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
6724
6725 * Makefile.in (LIBICONV): Define.
6726 (CLIBS): Add LIBICONV.
6727 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
6728 * configure: Regenerate.
6729
aead7601
SM
67302015-08-06 Simon Marchi <simon.marchi@ericsson.com>
6731 Pedro Alves <palves@redhat.com>
6732
6733 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
6734 (arm_set_abi): Likewise.
6735 * ax-general.c (ax_print): Likewise.
6736 * c-exp.y (exp : string_exp): Likewise.
6737 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
6738 (do_compile_dwarf_expr_to_c): Likewise.
6739 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
6740 Likewise.
6741 * dwarf2expr.c (execute_stack_op): Likewise.
6742 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
6743 (disassemble_dwarf_expression): Likewise.
6744 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
6745 (read_array_order): Likewise.
6746 (abbrev_table_read_table): Likewise.
6747 (read_attribute_value): Likewise.
6748 (skip_unknown_opcode): Likewise.
6749 (dwarf_decode_macro_bytes): Likewise.
6750 (dwarf_decode_macros): Likewise.
6751 * eval.c (value_f90_subarray): Likewise.
6752 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6753 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6754 * infrun.c (handle_command): Likewise.
6755 * memory-map.c (memory_map_start_memory): Likewise.
6756 * osabi.c (set_osabi): Likewise.
6757 * parse.c (operator_length_standard): Likewise.
6758 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
6759 single return point.
6760 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6761 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6762 (gdbpy_lookup_global_symbol): Likewise.
6763 * record-full.c (record_full_restore): Likewise.
6764 * regcache.c (regcache_register_status): Likewise.
6765 (regcache_raw_read): Likewise.
6766 (regcache_cooked_read): Likewise.
6767 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
6768 * symtab.c (initialize_ordinary_address_classes): Likewise.
6769 * target-debug.h (target_debug_print_signals): Likewise.
6770 * utils.c (do_restore_current_language): Likewise.
6771
ca0a5f0b
CD
67722015-08-06 Clem Dickey <clemd@acm.org>
6773
6774 PR python/17136
6775 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
6776
05d999b0
SM
67772015-08-06 Simon Marchi <simon.marchi@ericsson.com>
6778
6779 * complaints.c (enum complaint_series): Add newlines and remove
6780 out of date comment.
6781 (struct complaints) <series>: Change type to enum
6782 complaint_series and remove out of date comment.
6783 (symfile_complaint_hook): Use equivalent enum value
6784 ISOLATED_MESSAGE instead of 0.
6785
bf47e248
PA
67862015-08-06 Pedro Alves <palves@redhat.com>
6787
6788 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
6789 returned > 0.
6790
b6b9ffcc
PL
67912015-08-06 Pierre Langlois <pierre.langlois@arm.com>
6792
6793 * common/agent.c (symbol_list) <required>: Remove.
6794
863d01bd
PA
67952015-08-06 Pedro Alves <palves@redhat.com>
6796
6797 * target/waitstatus.h (enum target_stop_reason)
6798 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
6799
0a39bb32
PA
68002015-08-05 Pedro Alves <palves@redhat.com>
6801 Joel Brobecker <brobecker@adacore.com>
6802
9d996aba 6803 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
6804 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
6805 case where BS->STOP is not set.
6806
260439cb
UW
68072015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
6808
6809 * nat/gdb_thread_db.h: Add copyright header.
6810 Protect against multiple inclusion.
6811
d89fa914
YQ
68122015-08-05 Yao Qi <yao.qi@linaro.org>
6813
6814 * aarch64-linux-nat.c (get_thread_id): Remove.
6815 (debug_reg_change_callback): Call ptid_get_lwp instead of
6816 get_thread_id.
6817 (fetch_gregs_from_thread): Likewise.
6818 (store_gregs_to_thread): Likewise.
6819 (fetch_fpregs_from_thread): Likewise.
6820 (store_fpregs_to_thread): Likewise.
6821 (aarch64_linux_get_debug_reg_capacity): Likewise.
6822 * arm-linux-nat.c (get_thread_id): Remove.
6823 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6824 * xtensa-linux-nat.c (get_thread_id): Remove.
6825 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
6826 * arm-linux-nat.c (get_thread_id): Remove.
6827 (GET_THREAD_ID): Remove.
6828 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
6829 (store_fpregs, fetch_regs, store_regs): Likewise.
6830 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
6831 (fetch_vfp_regs, store_vfp_regs): Likewise.
6832 (arm_linux_read_description): Likewise.
6833 (arm_linux_get_hwbp_cap): Likewise.
6834 * xtensa-linux-nat.c (get_thread_id): Remove.
6835 (GET_THREAD_ID): Remove.
6836 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
6837 GET_THREAD_ID.
6838
4efd80aa
CS
68392015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
6840
6841 * python/py-linetable.c: Fix case of Linetable to LineTable
6842 in docstrings and code comments.
6843 * python/py-symtab.c: Same.
6844
c6343a91
JK
68452015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6846
6847 * infcmd.c (signal_command): Call do_cleanups for args_chain.
6848
978b9495
JK
68492015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6850
6851 PR gdb/18767
6852 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
6853 use.
6854
96e9210f
PA
68552015-08-04 Pedro Alves <palves@redhat.com>
6856
6857 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
6858 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
6859 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
6860 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
6861 (td_thr_validate_ftype, td_thr_get_info_ftype)
6862 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
6863 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
6864 New typedefs.
6865 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
6866 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
6867 local macros and use them instead of verbose_dlsym and dlsym
6868 calls.
6869
af60a1ef
SL
68702015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6871
6872 * nios2-tdep.h: Include opcode/nios2.h here.
6873 (NIOS2_CDX_OPCODE_SIZE): New.
6874 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
6875 * nios2-tdep.c: Don't include opcode/nios2.h here.
6876 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
6877 4-byte read fails.
6878 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
6879 (nios2_match_addi, nios2_match_orhi): Likewise.
6880 (nios2_match_stw, nios2_match_ldw): Likewise.
6881 (nios2_match_rdctl): Likewise.
6882 (nios2_match_stwm, nios2_match_ldwm): New.
6883 (nios2_match_branch): Add cases for R2 encodings.
6884 (nios2_match_jmpi, nios2_match_calli): Likewise.
6885 (nios2_match_jmpr, nios2_match_callr): Likewise.
6886 (nios2_match_break, nios2_match_trap): Likewise.
6887 (nios2_in_epilogue_p): Add R2 support.
6888 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
6889 prologues.
6890 (nios2_breakpoint_from_pc): Handle R2 instructions.
6891 (nios2_get_next_pc): Likewise. Adjust call to
6892 tdep->syscall_next_pc.
6893 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
6894 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
6895 instruction field macros instead of literal hex values.
6896 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
6897 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
6898 Use size field from OP instead of assuming all instructions
6899 are the same size.
6900 (nios2_linux_init_abi): Register appropriate unwinder for mach.
6901
1da03605
UW
69022015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
6903
6904 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
6905 variable warning with some compilers.
6906
8156fe7f
YQ
69072015-08-03 Yao Qi <yao.qi@linaro.org>
6908
6909 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
6910 in comment. Replace "rw" with "type".
6911 (arm_linux_remove_watchpoint): Change type of "rw" to
6912 "enum target_hw_bp_type".
6913
835a09d9
PMR
69142015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
6915
6916 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
6917 lookup_symbol.
6918 * ft32-tdep.c (ft32_skip_prologue): Likewise.
6919 * moxie-tdep.c (moxie_skip_prologue): Likewise.
6920 * mt-tdep.c (mt_skip_prologue): Likewise.
6921 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6922
d12307c1
PMR
69232015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
6924
6925 * ada-exp.y (write_object_renaming): Replace struct
6926 ada_symbol_info with struct block_symbol. Update field
6927 references accordingly.
6928 (block_lookup, select_possible_type_sym): Likewise.
6929 (find_primitive_type): Likewise. Also update call to
6930 ada_lookup_symbol to extract the symbol itself.
6931 (write_var_or_type, write_name_assoc): Likewise.
6932 * ada-lang.h (struct ada_symbol_info): Remove.
6933 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
6934 struct block_symbol.
6935 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
6936 (ada_lookup_symbol): Return struct block_symbol instead of a
6937 mere symbol.
6938 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
6939 with struct block_symbol.
6940 (resolve_subexp, ada_resolve_function, sort_choices,
6941 user_select_syms, is_nonfunction, add_defn_to_vec,
6942 num_defns_collected, defns_collected,
6943 symbols_are_identical_enums, remove_extra_symbols,
6944 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
6945 ada_lookup_symbol_list, ada_iterate_over_symbols,
6946 ada_lookup_encoded_symbol, get_var_value): Likewise.
6947 (ada_lookup_symbol): Return a block_symbol instead of a mere
6948 symbol. Replace struct ada_symbol_info with struct
6949 block_symbol.
6950 (ada_lookup_symbol_nonlocal): Likewise.
6951 (standard_lookup): Make block passing explicit through
6952 lookup_symbol_in_language.
6953 * ada-tasks.c (get_tcb_types_info): Update the calls to
6954 lookup_symbol_in_language to extract the mere symbol out of the
6955 returned value.
6956 (ada_tasks_inferior_data_sniffer): Likewise.
6957 * ax-gdb.c (gen_static_field): Likewise for the call to
6958 lookup_symbol.
a5fdf78a 6959 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
6960 lookup functions.
6961 (gen_expr): Likewise.
6962 * c-exp.y: Likewise. Remove uses of block_found.
6963 (lex_one_token, classify_inner_name, c_print_token): Likewise.
6964 (classify_name): Likewise. Rename the "sym" local variable to
6965 "bsym".
6966 * c-valprint.c (print_unpacked_pointer): Likewise.
6967 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
6968 "sym" parameter from struct symbol * to struct block_symbol.
6969 Use it to remove uses of block_found. Deal with struct
a5fdf78a 6970 block_symbol from lookup functions.
d12307c1
PMR
6971 (gcc_convert_symbol): Likewise. Update the call to
6972 convert_symbol_sym.
6973 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 6974 struct block_symbol from lookup functions.
d12307c1
PMR
6975 * cp-namespace.c (cp_lookup_nested_symbol_1,
6976 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
6977 cp_search_static_and_baseclasses,
6978 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
6979 cp_lookup_symbol_imports_or_template,
6980 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
6981 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
6982 find_symbol_in_baseclass): Return struct block_symbol instead of
6983 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
6984 functions.
6985 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 6986 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
6987 lookup functions.
6988 * cp-support.h (cp_lookup_symbol_nonlocal,
6989 cp_lookup_symbol_from_namespace,
6990 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 6991 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
6992 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
6993 push_module_name):
a5fdf78a 6994 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
6995 uses of block_found.
6996 * eval.c (evaluate_subexp_standard): Update call to
6997 cp_lookup_symbol_namespace.
a5fdf78a
PMR
6998 * f-exp.y: Deal with struct block_symbol from lookup functions.
6999 Remove uses of block_found.
d12307c1
PMR
7000 (yylex): Likewise.
7001 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
7002 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 7003 struct block_symbol from lookup functions.
d12307c1
PMR
7004 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
7005 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
7006 (gdbscm_lookup_global_symbol): Likewise.
7007 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
7008 * go-exp.y: Likewise. Remove uses of block_found.
7009 (package_name_p, classify_packaged_name, classify_name):
7010 Likewise.
7011 * infrun.c (insert_exception_resume_breakpoint): Likewise.
7012 * jv-exp.y (push_variable): Likewise.
7013 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
7014 * language.c (language_bool_type): Likewise.
7015 * language.h (struct language_defn): Update
a5fdf78a
PMR
7016 la_lookup_symbol_nonlocal to return a struct block_symbol rather
7017 than a mere symbol.
7018 * linespec.c (find_label_symbols): Deal with struct block_symbol
7019 from lookup functions.
d12307c1
PMR
7020 * m2-exp.y: Likewise. Remove uses of block_found.
7021 (yylex): Likewise.
7022 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7023 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
7024 * p-exp.y: Likewise. Remove uses of block_found.
7025 (yylex): Likewise.
7026 * p-valprint.c (pascal_val_print): Likewise.
7027 * parse.c (write_dollar_variable): Likewise. Remove uses of
7028 block_found.
7029 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
7030 struct block_symbol.
7031 * printcmd.c (address_info): Deal with struct block_symbol from
7032 lookup functions.
d12307c1
PMR
7033 * python/py-frame.c (frapy_read_var): Likewise.
7034 * python/py-symbol.c (gdbpy_lookup_symbol,
7035 gdbpy_lookup_global_symbol): Likewise.
7036 * skip.c (skip_function_command): Likewise.
7037 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 7038 block_symbol instead of a mere symbol.
d12307c1
PMR
7039 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
7040 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
7041 * solib.c (solib_global_lookup): Likewise.
7042 * solist.h (solib_global_lookup): Likewise.
7043 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
7044 return a struct block_symbol rather than a mere symbol.
7045 * source.c (select_source_symtab): Deal with struct block_symbol
7046 from lookup functions.
d12307c1
PMR
7047 * stack.c (print_frame_args, iterate_over_block_arg_vars):
7048 Likewise.
7049 * symfile.c (set_initial_language): Likewise.
7050 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 7051 block_symbol.
d12307c1
PMR
7052 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
7053 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 7054 block_symbol.
d12307c1 7055 (block_found): Remove.
a5fdf78a 7056 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 7057 cache slots.
a5fdf78a
PMR
7058 (symbol_cache_lookup): Return a struct block_symbol rather than
7059 a mere symbol.
d12307c1
PMR
7060 (symbol_cache_mark_found): Add a BLOCK parameter to fill
7061 appropriately the cache slots. Update callers.
7062 (symbol_cache_dump): Update cache slots handling to the type
7063 change.
7064 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
7065 lookup_symbol_aux, lookup_local_symbol,
7066 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
7067 lookup_symbol_in_objfile_symtabs,
7068 lookup_symbol_in_objfile_from_linkage_name,
7069 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
7070 lookup_symbol_in_static_block, lookup_static_symbol,
7071 lookup_global_symbol):
a5fdf78a
PMR
7072 Return a struct block_symbol rather than a mere symbol. Deal
7073 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
7074 uses of block_found.
7075 (lookup_symbol_in_block): Remove uses of block_found.
7076 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 7077 struct block_symbol.
d12307c1
PMR
7078 (lookup_symbol_global_iterator_cb): Update references to the
7079 RESULT field.
a5fdf78a 7080 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 7081 functions.
a5fdf78a 7082 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
7083 (block_found): Remove.
7084 (lookup_symbol_in_language, lookup_symbol,
7085 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
7086 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
7087 lookup_global_symbol_from_objfile): Return a struct block_symbol
7088 rather than just a mere symbol. Update comments to remove
7089 mentions of block_found.
d12307c1
PMR
7090 * valops.c (find_function_in_inferior,
7091 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 7092 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
7093 functions.
7094 * value.c (value_static_field, value_fn_field): Likewise.
7095
b1c59ddc
SM
70962015-07-31 Simon Marchi <simon.marchi@ericsson.com>
7097
7098 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
7099 instead of integer.
7100
f486487f 71012015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 7102 Pedro Alves <palves@redhat.com>
f486487f
SM
7103
7104 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
7105 type or value instead of integer.
7106 (aarch64_linux_insert_watchpoint): Likewise.
7107 (aarch64_linux_remove_watchpoint): Likewise.
7108 * ada-lang.c (ada_op_print_tab): Likewise.
7109 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
7110 (amd64_linux_syscall_record_common): Likewise.
7111 * arch-utils.c (target_byte_order_user): Likewise.
7112 (default_byte_order): Likewise.
7113 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
7114 (arm_linux_get_hwbp_type): Likewise.
7115 (arm_linux_hw_watchpoint_initialize): Likewise.
7116 (arm_linux_insert_watchpoint): Likewise.
7117 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
7118 (arm_linux_syscall_record): Likewise.
7119 * breakpoint.c (update_watchpoint): Likewise.
7120 (breakpoint_here_p): Likewise.
7121 (bpstat_print): Likewise.
7122 (enable_breakpoint_disp): Likewise.
7123 * c-lang.c (c_op_print_tab): Likewise.
7124 * cli/cli-decode.c (add_info_alias): Likewise.
7125 * d-lang.c (d_op_print_tab): Likewise.
7126 * eval.c (evaluate_subexp_standard): Likewise.
7127 * f-exp.y (dot_ops): Likewise.
7128 (f77_keywords): Likewise.
7129 * f-lang.c (f_op_print_tab): Likewise.
7130 * go-lang.c (go_op_print_tab): Likewise.
7131 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
7132 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
7133 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
7134 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
7135 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
7136 (struct scm_from_stringn_data): Likewise.
7137 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
7138 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
7139 (ia64_linux_remove_watchpoint): Likewise.
7140 (ia64_linux_can_use_hw_breakpoint): Likewise.
7141 * infrun.c (print_stop_event): Likewise.
7142 * jv-lang.c (java_op_print_tab): Likewise.
7143 * linux-nat.c (linux_proc_xfer_partial): Likewise.
7144 * linux-nat.h (struct lwp_info): Likewise.
7145 * linux-thread-db.c (enable_thread_event): Likewise.
7146 * m2-lang.c (m2_op_print_tab): Likewise.
7147 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
7148 (mi_cmd_stack_list_variables): Likewise.
7149 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
7150 * mi/mi-out.c (mi_table_begin): Likewise.
7151 (mi_table_header): Likewise.
7152 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
7153 (mips_linux_insert_watchpoint): Likewise.
7154 (mips_linux_remove_watchpoint): Likewise.
7155 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
7156 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
7157 (mips_linux_watch_type_to_irw): Likewise.
7158 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
7159 (procfs_insert_hw_watchpoint): Likewise.
7160 (procfs_remove_hw_watchpoint): Likewise.
7161 (procfs_hw_watchpoint): Likewise.
7162 (procfs_can_use_hw_breakpoint): Likewise.
7163 (procfs_remove_hw_watchpoint): Likewise.
7164 (procfs_insert_hw_watchpoint): Likewise.
7165 * p-lang.c (pascal_op_print_tab): Likewise.
7166 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
7167 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
7168 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
7169 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
7170 (procfs_insert_watchpoint): Likewise.
7171 (procfs_remove_watchpoint): Likewise.
7172 * psymtab.c (recursively_search_psymtabs): Likewise.
7173 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
7174 (m32r_insert_watchpoint): Likewise.
7175 * remote-mips.c (mips_can_use_watchpoint): Likewise.
7176 (mips_insert_watchpoint): Likewise.
7177 (mips_remove_watchpoint): Likewise.
7178 * remote.c (watchpoint_to_Z_packet): Likewise.
7179 (remote_insert_watchpoint): Likewise.
7180 (remote_remove_watchpoint): Likewise.
7181 (remote_check_watch_resources): Likewise.
7182 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
7183 (s390_remove_watchpoint): Likewise.
7184 (s390_can_use_hw_breakpoint): Likewise.
7185 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7186 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
7187 * target.h (struct target_ops): Likewise.
7188 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7189 * ui-out.c (struct ui_out_hdr): Likewise.
7190 (append_header_to_list): Likewise.
7191 (get_next_header): Likewise.
7192 (verify_field): Likewise.
7193 (ui_out_begin): Likewise.
7194 (ui_out_field_int): Likewise.
7195 (ui_out_field_fmt_int): Likewise.
7196 (ui_out_field_skip): Likewise.
7197 (ui_out_field_string): Likewise.
7198 (ui_out_field_fmt): Likewise.
7199 * varobj.c (new_variable): Likewise.
7200 * x86-nat.c (x86_insert_watchpoint): Likewise.
7201 (x86_remove_watchpoint): Likewise.
7202 (x86_can_use_hw_breakpoint): Likewise.
7203 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
7204 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
7205 previously anonymous enumeration type..
7206 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
7207 value.
7208 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
7209 (target_debug_print_enum_bptype): New.
7210 * target-delegates.c: Regenerate.
7211
e1b5381f
SL
72122015-07-30 Sandra Loosemore <sandra@codesourcery.com>
7213
7214 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
7215 already says and disallow non-stack memory writes in the prologue.
7216
9aaf8e3a
SL
72172015-07-30 Sandra Loosemore <sandra@codesourcery.com>
7218
7219 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
7220 reflect how current GCC emits stack overflow checks. Match
7221 both trap and break instructions for backward compatbility.
7222 Disallow other trap and break instructions in the prologue.
7223
69dde7dc
PA
72242015-07-30 Pedro Alves <palves@redhat.com>
7225
7226 PR threads/18600
7227 * linux-nat.c (wait_lwp): Report to the core when thread group
7228 leader exits.
7229
4dd63d48
PA
72302015-07-30 Pedro Alves <palves@redhat.com>
7231 Simon Marchi <simon.marchi@ericsson.com>
7232
7233 PR threads/18600
7234 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
7235 mark the new thread as resumed. Remove STOPPING parameter.
7236 (wait_lwp): Adjust call to linux_handle_extended_wait.
7237 (linux_nat_filter_event): Adjust call to
7238 linux_handle_extended_wait.
7239 (resume_stopped_resumed_lwps): Add debug output.
7240
6b940e6a
PL
72412015-07-30 Pierre Langlois <pierre.langlois@arm.com>
7242
7243 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
7244 isize argument.
7245 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
7246 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
7247 gdbarch_fast_tracepoint_valid_at.
7248 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
7249 * gdbarch.h: Regenerate.
7250 * gdbarch.c: Regenerate.
7251 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
7252 argument. Do not set it.
7253 * remote.c (remote_download_tracepoint): Adjust call to
7254 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
7255 the instruction length.
7256
ec741292
YQ
72572015-07-30 Yao Qi <yao.qi@linaro.org>
7258
7259 * arm-tdep.h (enum gdb_regnum): Move it to ...
7260 * arch/arm.h: ... here. New file.
7261 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
7262
0ea6402e
PL
72632015-07-30 Pierre Langlois <pierre.langlois@arm.com>
7264
7265 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
7266 Change its type to int *.
7267 (decode_br): Rename link argument to is_blr. Change its type to
7268 int *.
7269 (decode_cb): Rename op argument to is_cbnz. Change its type to
7270 int *.
7271 (decode_tb): Rename op argument to is_tbnz. Change its type to
7272 int *. Set is_tbnz to either 1 or 0.
7273 (aarch64_analyze_prologue): Change type of is_link to int. Add
7274 new variables is_cbnz and is_tbnz. Adjust call to
7275 aarch64_decode_cb and aarch64_decode_tb.
7276
aa58a496
SM
72772015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7278
7279 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
7280 parameter.
7281 (mips_linux_new_thread): Likewise.
7282 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
7283
18206ca3
PP
72842015-07-29 Patrick Palka <patrick@parcs.ath.cx>
7285
7286 * top.c: Include "tui/tui.h".
7287 (undo_terminal_modifications_before_exit): New static function.
7288 (quit_force): Use it.
7289
7afa63c6
PP
72902015-07-29 Patrick Palka <patrick@parcs.ath.cx>
7291
7292 * target.c (terminal_state): Initialize to terminal_is_ours.
7293
cc9f16aa
YQ
72942015-07-29 Yao Qi <yao.qi@linaro.org>
7295
7296 PR record/18691
7297 * dcache.c (dcache_read_memory_partial): Call
7298 raw_memory_xfer_partial.
7299 * target.c (raw_memory_xfer_partial): Make it non-static.
7300 * target.h (raw_memory_xfer_partial): Declare.
7301
3ae385af
SM
73022015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7303
7304 * c-valprint.c (c_val_print_array): Consider addressable memory
7305 unit size.
7306 (c_val_print_ptr): Likewise.
7307 (c_val_print_int): Likewise.
7308 * findvar.c (read_frame_register_value): Likewise.
7309 * valarith.c (find_size_for_pointer_math): Likewise.
7310 (value_ptrdiff): Likewise.
7311 (value_subscripted_rvalue): Likewise.
7312 * valops.c (read_value_memory): Likewise (and rename variables).
7313 (value_assign): Likewise.
7314 (value_repeat): Likewise.
7315 (value_array): Likewise.
7316 (value_slice): Likewise.
7317 * valprint.c (generic_val_print_ptr): Likewise.
7318 (generic_val_print_enum): Likewise.
7319 (generic_val_print_bool): Likewise.
7320 (generic_val_print_int): Likewise.
7321 (generic_val_print_char): Likewise.
7322 (generic_val_print_float): Likewise.
7323 (generic_val_print_decfloat): Likewise.
7324 (generic_val_print_complex): Likewise.
7325 (val_print_scalar_formatted): Likewise.
7326 (val_print_array_elements): Likewise.
7327 * value.c (set_value_parent): Likewise.
7328 (value_contents_copy_raw): Likewise.
7329 (set_internalvar_component): Likewise.
7330 (value_primitive_field): Likewise.
7331 (value_fetch_lazy): Likewise.
7332 * value.h (read_value_memory): Update comment.
7333
e512cdbd
SM
73342015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7335
7336 * value.c (get_value_arch): New function.
7337 * value.h (get_value_arch): New declaration.
7338
3723fda8
SM
73392015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7340
7341 * value.c (struct value): Update comments.
7342
2e056931
SM
73432015-07-28 Simon Marchi <simon.marchi@ericsson.com>
7344
7345 * gdbtypes.c (type_length_units): New function.
7346 * gdbtypes.h (type_length_units): New declaration.
7347 (struct type) <length>: Update comment.
7348
0c87c0bf
SM
73492015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7350
7351 * valprint.c (generic_val_print): Factor out complex
7352 printing code to ...
7353 (generic_val_print_complex): ... this new function.
7354
9550ae5e
SM
73552015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7356
7357 * valprint.c (generic_val_print): Factor out decfloat
7358 printing code to ...
7359 (generic_val_print_decfloat): ... this new function.
7360
7784724b
SM
73612015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7362
7363 * valprint.c (generic_val_print): Factor out float
7364 printing code to ...
7365 (generic_val_print_float): ... this new function.
7366
385f5aff
SM
73672015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7368
7369 * valprint.c (generic_val_print): Factor out char
7370 printing code to ...
7371 (generic_val_print_char): ... this new function.
7372
b21b6342
SM
73732015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7374
7375 * valprint.c (generic_val_print): Factor out integer
7376 printing code to ...
7377 (generic_val_print_int): ... this new function.
7378
e5bead4b
SM
73792015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7380
7381 * valprint.c (generic_val_print): Factor out bool
7382 printing code to ...
7383 (generic_val_print_bool): ... this new function.
7384
4a8c372f
SM
73852015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7386
7387 * valprint.c (generic_val_print): Factor out function/method
7388 printing code to ...
7389 (generic_val_print_func): ... this new function.
7390
d93880bd
SM
73912015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7392
7393 * valprint.c (generic_val_print): Factor out flags
7394 printing code to ...
7395 (generic_val_print_flags): ... this new function.
7396
ef0bc0dd
SM
73972015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7398
7399 * valprint.c (generic_val_print): Factor out enum
7400 printing code to ...
7401 (generic_val_print_enum): ... this new function.
7402
fe43fede
SM
74032015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7404
7405 * valprint.c (generic_val_print): Factor out reference
7406 printing code to ...
7407 (generic_val_print_ref): ... this new function.
7408
45000ea2
SM
74092015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7410
7411 * valprint.c (generic_val_print): Factor out memberptr
7412 printing code to ...
7413 (generic_val_print_memberptr): ... this new function.
7414
81eb921a
SM
74152015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7416
7417 * valprint.c (generic_val_print): Factor out pointer
7418 printing code to ...
7419 (generic_val_print_ptr): ... this new function.
7420
557dbe8a
SM
74212015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7422
7423 * valprint.c (generic_val_print): Factor out array
7424 printing code to ...
7425 (generic_val_print_array): ... this new function.
7426
9f436164
SM
74272015-07-27 Simon Marchi <simon.marchi@ericsson.com>
7428
7429 * valprint.c (generic_val_print): Factor out
7430 print_unpacked_pointer code to ...
7431 (print_unpacked_pointer): ... this new function.
7432
077836f7
PP
74332015-07-27 Patrick Palka <patrick@parcs.ath.cx>
7434
7435 * event-top.c (handle_sigterm): Don't inspect
7436 target_can_async_p. Always set the quit flag and always mark
7437 the async signal handler.
7438
3a60804f
YQ
74392015-07-27 Yao Qi <yao.qi@linaro.org>
7440
7441 * Makefile.in (REMOTE_EXAMPLES): Remove it.
7442
c9f35b34
KB
74432015-07-25 Kevin Buettner <kevinb@redhat.com>
7444
7445 * remote.c (read_ptid): Return null_ptid when no thread id
7446 is found.
7447 (remote_current_thread): Add log warning for malformed
7448 qC reply.
7449 (remote_start_remote): Add log warning when current thread
7450 not found.
7451
2b4cab86
PA
74522015-07-24 Pedro Alves <palves@redhat.com>
7453
7454 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
7455 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
7456 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
7457
77598427
PA
74582015-07-24 Pedro Alves <palves@redhat.com>
7459
7460 PR gdb/18717
7461 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
7462 is resumed, and extend the debug log.
7463
fe23c31f
PA
74642015-07-24 Pedro Alves <palves@redhat.com>
7465
7466 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
7467
5826e159
PA
74682015-07-24 Pedro Alves <palves@redhat.com>
7469
7470 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
7471 sys/ptrace.h.
7472 * alpha-linux-nat.c: Likewise.
7473 * amd64-linux-nat.c: Likewise.
7474 * arm-linux-nat.c: Likewise.
7475 * hppa-linux-nat.c: Likewise.
7476 * i386-linux-nat.c: Likewise.
7477 * ia64-linux-nat.c: Likewise.
7478 * linux-fork.c: Likewise.
7479 * linux-nat.c: Likewise.
7480 * m32r-linux-nat.c: Likewise.
7481 * m68klinux-nat.c: Likewise.
7482 * mips-linux-nat.c: Likewise.
7483 * nat/linux-btrace.c: Likewise.
7484 * nat/linux-ptrace.c: Likewise.
7485 * nat/linux-ptrace.h
7486 * nat/mips-linux-watch.c: Likewise.
7487 * nat/x86-linux-dregs.c: Likewise.
7488 * ppc-linux-nat.c: Likewise.
7489 * s390-linux-nat.c: Likewise.
7490 * spu-linux-nat.c: Likewise.
7491 * tilegx-linux-nat.c: Likewise.
7492 * x86-linux-nat.c: Likewise.
7493 * xtensa-linux-nat.c: Likewise.
7494
54019719
PA
74952015-07-24 Pedro Alves <palves@redhat.com>
7496
7497 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
7498 __ptrace_request as first parameter type instead of int.
7499 (PTRACE_TYPE_ARG1): Define.
7500 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
7501 that casts first argument to PTRACE_TYPE_ARG1.
7502 * config.in: Regenerate.
7503 * configure: Regenerate.
7504
e3790375
PA
75052015-07-24 Pedro Alves <palves@redhat.com>
7506
7507 * gdb_ptrace.h: Move ...
7508 * nat/gdb_ptrace.h: ... here.
7509 * inf-ptrace.c: Adjust.
7510
eb7aa561
PA
75112015-07-24 Pedro Alves <palves@redhat.com>
7512
7513 * acinclude.m4: Include ptrace.m4.
7514 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
7515 * ptrace.m4: ... to this new file.
7516
cc12ce38
DE
75172015-07-23 Doug Evans <dje@google.com>
7518
7519 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
7520 (load_cu): Handle dummy CUs.
7521 (dw2_do_instantiate_symtab, process_queuef): Ditto.
7522 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
7523
7b849db4
CS
75242015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
7525
7526 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
7527 documentation to say that it returns a list rather than
7528 a FrozenSet.
7529 (linetable_object_methods): Update the docstring of the
7530 "source_line" entry.
7531
d0d84780
PMR
75322015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
7533
7534 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
7535 type to the recursive call instead of the original (maybe
7536 TYPE_CODE_TYPEDEF) type.
7537
c2fbdc59
YQ
75382015-07-23 Yao Qi <yao.qi@linaro.org>
7539
7540 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
7541 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
7542 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
7543
af1b22f3
YQ
75442015-07-21 Yao Qi <yao.qi@linaro.org>
7545
7546 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
7547 Move it to nat/aarch64-linux-hw-point.c.
7548 (aarch64_linux_child_post_startup_inferior): Update.
7549 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
7550 New function.
7551 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
7552 Declare it.
7553
40e050d2
MM
75542015-07-21 Markus Metzger <markus.t.metzger@intel.com>
7555
7556 * common/btrace-common.c (btrace_data_append): Change case label.
7557
3675a06a
YQ
75582015-07-20 Yao Qi <yao.qi@linaro.org>
7559
7560 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
7561 Re-indent the code.
7562 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
7563 "unsigned long long".
7564
b4e1fd61
KB
75652015-07-18 Kevin Buettner <kevinb@redhat.com>
7566
7567 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
7568 to be set for SEC_ALLOC sections too.
7569
554717a3
YQ
75702015-07-17 Yao Qi <yao.qi@linaro.org>
7571
7572 * Makefile.in (HFILES_NO_SRCDIR): Add
7573 nat/aarch64-linux-hw-point.h.
7574 (aarch64-linux-hw-point.o): New rule.
7575 * nat/aarch64-linux-hw-point.h: New file.
7576 * nat/aarch64-linux-hw-point.c: New file.
7577 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
7578 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7579 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7580 (AARCH64_HWP_ALIGNMENT): Likewise.
7581 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
7582 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
7583 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
7584 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
7585 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
7586 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
7587 (struct aarch64_debug_reg_state): Likewise.
7588 (struct arch_lwp_info): Likewise.
7589 (aarch64_linux_set_debug_regs): Likewise.
7590 (aarch64_notify_debug_reg_change): Remove static.
7591 (aarch64_align_watchpoint): Likewise.
7592 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
7593 (aarch64_watchpoint_length): Likewise.
7594 (aarch64_point_encode_ctrl_reg): Likewise
7595 (aarch64_point_is_aligned): Likewise.
7596 (aarch64_dr_state_insert_one_point): Likewise.
7597 (aarch64_dr_state_remove_one_point): Likewise.
7598 (aarch64_handle_breakpoint): Likewise.
7599 (aarch64_handle_aligned_watchpoint): Likewise.
7600 (aarch64_handle_unaligned_watchpoint): Likewise.
7601 (aarch64_handle_watchpoint): Likewise.
7602 * config/aarch64/linux.mh (NAT_FILE): Add
7603 aarch64-linux-hw-point.o.
7604
c67ca4de
YQ
76052015-07-17 Yao Qi <yao.qi@linaro.org>
7606
7607 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
7608 state and don't call aarch64_get_debug_reg_state. All callers
7609 update.
7610 (aarch64_linux_insert_hw_breakpoint): Call
7611 aarch64_get_debug_reg_state earlier.
7612 (aarch64_linux_remove_hw_breakpoint): Likewise.
7613 (aarch64_handle_aligned_watchpoint): Add argument state and
7614 don't call aarch64_get_debug_reg_state. All callers update.
7615 (aarch64_handle_unaligned_watchpoint): Likewise.
7616 (aarch64_handle_watchpoint): Add argument state.
7617 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
7618 earlier.
7619 (aarch64_linux_remove_watchpoint): Likewise.
7620
25abf979
YQ
76212015-07-17 Yao Qi <yao.qi@linaro.org>
7622
7623 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
7624 debug_printf.
7625 (aarch64_handle_unaligned_watchpoint): Likewise.
7626
2ecd81c2
YQ
76272015-07-17 Yao Qi <yao.qi@linaro.org>
7628
7629 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
7630 argument type's type to 'enum target_hw_bp_type'.
7631 (aarch64_dr_state_remove_one_point): Likewise.
7632 (aarch64_handle_breakpoint): Likewise.
7633 (aarch64_linux_insert_hw_breakpoint): Likewise.
7634 (aarch64_linux_remove_hw_breakpoint): Likewise.
7635 (aarch64_handle_aligned_watchpoint): Likewise.
7636
e53b6938
YQ
76372015-07-17 Yao Qi <yao.qi@linaro.org>
7638
7639 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
7640 ptid_get_pid instead of get_thread_id.
7641
6a49a997
YQ
76422015-07-17 Yao Qi <yao.qi@linaro.org>
7643
7644 * remote.c (get_current_thread): Initialise ptid to null_ptid.
7645 (add_current_inferior_and_thread): Don't initialise ptid.
7646
4bcddace
PL
76472015-07-16 Pierre Langlois <pierre.langlois@arm.com>
7648
7649 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
7650 unavailable if invalid.
7651
db1ff28b
JK
76522015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7653
7654 Revert the previous 6 commits:
7655 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7656 Move gdb_regex* to common/
7657 Prepare linux_find_memory_regions_full & co. for move
7658 Move linux_find_memory_regions_full & co.
7659 gdbserver build-id attribute generator
7660 Validate symbol file using build-id
7661
ca5268b6
JK
76622015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7663 Jan Kratochvil <jan.kratochvil@redhat.com>
7664
7665 Validate symbol file using build-id.
7666 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
7667 and 'show validate-build-id'. Add build-id attribute.
7668 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
7669 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
7670 * solib-frv.c (_initialize_frv_solib): Ditto.
7671 * solib-spu.c (set_spu_solib_ops): Ditto.
7672 * solib-svr4.c: Include rsp-low.h.
7673 (NOTE_GNU_BUILD_ID_NAME): New define.
7674 (svr4_validate): New function.
7675 (svr4_copy_library_list): Duplicate field build_id.
7676 (library_list_start_library): Parse 'build-id' attribute.
7677 (svr4_library_attributes): Add 'build-id' attribute.
7678 (_initialize_svr4_solib): Assign validate value.
7679 * solib-target.c (solib.h): Include.
7680 (_initialize_solib_target): Assign validate value.
7681 * solib.c (validate_build_id, show_validate_build_id): New.
7682 (solib_map_sections): Use ops->validate.
7683 (clear_so): Free build_id.
7684 (default_solib_validate): New function.
7685 (_initialize_solib): Add "validate-build-id".
7686 * solib.h (default_solib_validate): New declaration.
7687 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
7688 (target_so_ops): New field 'validate'.
7689
700ca40f
JK
76902015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7691 Jan Kratochvil <jan.kratochvil@redhat.com>
7692
7693 gdbserver build-id attribute generator.
7694 * features/library-list-svr4.dtd (library-list-svr4): New
7695 'build-id' attribute.
7696
9904185c
JK
76972015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7698 Jan Kratochvil <jan.kratochvil@redhat.com>
7699
7700 Move linux_find_memory_regions_full & co.
7701 * linux-tdep.c (nat/linux-maps.h): Include.
7702 (gdb_regex.h): Remove the include.
7703 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
7704 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
7705 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
7706 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
7707 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
7708 and target/target.h.
7709 (struct smaps_vmflags, read_mapping, decode_vmflags)
7710 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
7711 (linux_find_memory_regions_full): Move from linux-tdep.c.
7712 * nat/linux-maps.h (read_mapping): New declaration.
7713 (linux_find_memory_region_ftype, enum filterflags): Moved from
7714 linux-tdep.c.
7715 (linux_find_memory_regions_full): New declaration.
7716 * target.c (target/target-utils.h): Include.
7717 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
7718 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
7719 definitions to target/target-utils.c.
7720 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
7721 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
7722 from target.c.
7723 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
7724 (read_alloc): New declaration.
7725 (read_stralloc_func_ftype): New typedef.
7726 (read_stralloc): New declaration.
7727 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
7728
f7af1fcd
JK
77292015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7730 Jan Kratochvil <jan.kratochvil@redhat.com>
7731
7732 Prepare linux_find_memory_regions_full & co. for move.
7733 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
7734 (linux_find_memory_regions_full): Change signature and prepare
7735 for moving to linux-maps.
7736 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
7737 (linux_find_memory_regions_thunk): New.
7738 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
7739 (linux_find_memory_regions_gdb): New.
7740 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
7741 (linux_make_mappings_corefile_notes): Use
7742 linux_find_memory_regions_gdb.
7743 * target.c (read_alloc_pread_ftype): New typedef.
7744 (target_fileio_read_alloc_1_pread): New function.
7745 (read_alloc): Refactor from target_fileio_read_alloc_1.
7746 (read_stralloc_func_ftype): New typedef.
7747 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
7748 (read_stralloc): Refactored from target_fileio_read_stralloc.
7749 (target_fileio_read_stralloc): New implementation, use read_stralloc.
7750
6e5b4429
JK
77512015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7752
7753 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
7754 common/gdb_regex.h.
7755 (COMMON_OBS): Add gdb_regex.o.
7756 (gdb_regex.o): New.
7757 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
7758 --without-included-regex and USE_INCLUDED_REGEX.
7759 * common/gdb_regex.c: New file from utils.c functions.
7760 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
7761 file wrapping define name.
7762 * configure: Rebuilt.
7763 * configure.ac (gdb_use_included_regex, --without-included-regex)
7764 (USE_INCLUDED_REGEX): Move them to common/common.m4.
7765 * gdb_regex.h: Move it to common/gdb_regex.h.
7766 * utils.c: Remove include gdb_regex.h.
7767 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
7768 (compile_rx_or_error): Move them to common/gdb_regex.c.
7769
ddc98fbf
JK
77702015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7771 Jan Kratochvil <jan.kratochvil@redhat.com>
7772
7773 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7774 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
7775 common/target-utils.h.
7776 (COMMON_OBS): Add target-utils.o.
7777 (linux-maps.o, target-utils.o): New.
7778 * target/target-utils.c: New file.
7779 * target/target-utils.h: New file.
7780 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
7781 * config/i386/linux64.mh (NATDEPFILES): Ditto.
7782 * nat/linux-maps.c: New file.
7783 * nat/linux-maps.h: New file.
7784
e7b01ce0
MM
77852015-07-15 Markus Metzger <markus.t.metzger@intel.com>
7786 Pedro Alves <palves@redhat.com>
7787
7788 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
7789 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
7790 (perf_event_read_bts): Change the type of SIZE and READ.
7791 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
7792 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
7793 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
7794 mmap page.
7795 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
7796 buffer size to UINT_MAX.
7797 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
7798 DATA_TAIL.
7799 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
7800 <last_head>: Change type.
7801 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
7802 * common/btrace-common.c (btrace_data_append): Change the type of
7803 SIZE.
7804 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
7805 check.
7806
f168693b
SM
78072015-07-14 Simon Marchi <simon.marchi@ericsson.com>
7808
7809 * gdbtypes.h (CHECK_TYPEDEF): Remove.
7810 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
7811 with check_typedef.
7812 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
7813 (ada_array_length): Likewise.
7814 (find_parallel_type_by_descriptive_type): Likewise.
7815 (ada_check_typedef): Likewise.
7816 * arm-tdep.c (arm_return_in_memory): Likewise.
7817 * ax-gdb.c (gen_trace_static_fields): Likewise.
7818 (gen_struct_ref_recursive): Likewise.
7819 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7820 (variable: block COLONCOLON name): Likewise.
7821 (qualified_name: TYPENAME COLONCOLON name): Likewise.
7822 * c-lang.c (classify_type): Likewise.
7823 * c-typeprint.c (c_print_type): Likewise.
7824 (c_print_typedef): Likewise.
7825 (c_type_print_base): Likewise.
7826 * c-valprint.c (c_val_print): Likewise.
7827 * compile/compile-c-types.c (convert_type): Likewise.
7828 * compile/compile-object-load.c (get_out_value_type): Likewise.
7829 * completer.c (add_struct_fields): Likewise.
7830 (expression_completer): Likewise.
7831 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
7832 (cp_lookup_nested_symbol_1): Likewise.
7833 (cp_lookup_nested_symbol): Likewise.
7834 * cp-valprint.c (cp_print_value_fields): Likewise.
7835 (cp_print_static_field): Likewise.
7836 * d-valprint.c (d_val_print): Likewise.
7837 * eval.c (evaluate_subexp_standard): Likewise.
7838 (evaluate_subexp_for_sizeof): Likewise.
7839 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
7840 * f-typeprint.c (f_type_print_base): Likewise.
7841 * f-valprint.c (f_val_print): Likewise.
7842 * gdbtypes.c (get_discrete_bounds): Likewise.
7843 (create_array_type_with_stride): Likewise.
7844 (type_name_no_tag_or_error): Likewise.
7845 (lookup_struct_elt_type): Likewise.
7846 (get_unsigned_type_max): Likewise.
7847 (internal_type_vptr_fieldno): Likewise.
7848 (set_type_vptr_fieldno): Likewise.
7849 (internal_type_vptr_basetype): Likewise.
7850 (set_type_vptr_basetype): Likewise.
7851 (get_vptr_fieldno): Likewise.
7852 (is_integral_type): Likewise.
7853 (is_scalar_type): Likewise.
7854 (is_scalar_type_recursive): Likewise.
7855 (distance_to_ancestor): Likewise.
7856 (is_unique_ancestor_worker): Likewise.
7857 (check_types_equal): Likewise.
7858 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
7859
45280282
IB
78602015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
7861
7862 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
7863 also test for language_d.
7864 (dwarf2_compute_name): Likewise.
7865 (read_func_scope): Likewise.
7866 (read_structure_type): Likewise.
7867 (new_symbol_full): Likewise.
7868 (determine_prefix): Likewise.
7869 (read_import_statement): Use dot as the separator for language_d.
7870 (typename_concat): Likewise, but don't prefix the D main function.
7871
99fe86f7
PB
78722015-07-14 Peter Bergner <bergner@vnet.ibm.com>
7873
7874 * nat/linux-namespaces.c (setns): Rename from this ...
7875 (do_setns): ... to this. Support calling setns if it exists.
7876 (mnsh_handle_setns): Call do_setns.
7877
d5131498
YQ
78782015-07-13 Yao Qi <yao.qi@linaro.org>
7879
7880 * exec.c (exec_file_attach): Add period at the end of error
7881 message.
7882
97605e61
AB
78832015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
7884
7885 * tui/tui-win.c (window_name_completer): New function.
7886 (focus_completer): Call window_name_completer. All old content
7887 moved into window_name_completer.
7888 (winheight_completer): New function.
7889 (_initialize_tui_win): Rename variable. Add completer to
7890 winheight command. Update doc string on winheight.
7891
8d6dbeb4
SL
78922015-07-12 Sandra Loosemore <sandra@codesourcery.com>
7893
7894 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
7895 all nios2 mach variants.
7896
a0e28e54
KB
78972015-07-10 Kevin Buettner <kevinb@redhat.com>
7898
7899 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
7900 of target_read_memory.
7901
c101f28f
AB
79022015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
7905 string copy.
7906 (parse_scrolling_args): Likewise.
7907
150375dc
AB
79082015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7909
7910 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
7911 names in this function.
7912
6dce28e4
AB
79132015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7914
7915 * tui/tui-data.h (SRC_NAME): Convert to lower case.
7916 (CMD_NAME): Likewise.
7917 (DATA_NAME): Likewise.
7918 (DISASSEM_NAME): Likewise.
7919 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
7920 (tui_set_win_height): Likewise.
7921 (parse_scrolling_args): Likewise.
7922
485668e5
MM
79232015-07-10 Markus Metzger <markus.t.metzger@intel.com>
7924
7925 * record-btrace.c (record_btrace_goto_begin)
7926 (record_btrace_goto_end, record_btrace_goto): Move call to
7927 print_stack_frame ...
7928 (record_btrace_set_replay): ... here. Set stop_pc.
7929 * record-full.c (record_full_goto_entry): Set stop_pc.
7930
58d2eda5
PL
79312015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7932
7933 * NEWS: Mention support for tracepoints on aarch64-linux.
7934
7671bf47
PL
79352015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7936
7937 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
7938 function. Return 1.
7939 (the_low_target): Install it.
7940
7890fb45
PL
79412015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7942
7943 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
7944 * gdb.trace/collection.exp: Likewise.
7945 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
7946 * gdb.trace/mi-trace-unavailable.exp: Likewise.
7947 * gdb.trace/report.exp: Likewise.
7948 * gdb.trace/trace-break.exp: Likewise.
7949 * gdb.trace/unavailable.exp: Likewise.
7950 * gdb.trace/while-dyn.exp: Likewise.
7951
ea873d8e
PL
79522015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7953
7954 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
7955 (aarch64_gen_return_address): New function.
7956 (aarch64_gdbarch_init): Hook it.
7957
02a2a705
PL
79582015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7959
7960 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
7961 swallow NOT_AVAILABLE_ERROR.
7962 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
7963 available_p is not set.
7964 (aarch64_stub_frame_unwind_stop_reason): New function.
7965 (aarch64_stub_unwind): Install it.
7966
7dfa3edc
PL
79672015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7968
7969 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
7970 field.
7971 (aarch64_make_prologue_cache_1): New function, factored out from
7972 aarch64_make_prologue_cache. Do not allocate cache. Set
7973 available_p.
7974 (aarch64_make_prologue_cache): Reimplement wrapping
7975 aarch64_make_prologue_cache_1, and swallowing
7976 NOT_AVAILABLE_ERROR.
7977 (aarch64_prologue_frame_unwind_stop_reason): New function.
7978 Return UNWIND_UNAVAILABLE if available_p is not set.
7979 (aarch64_prologue_unwind): Install it.
7980 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
7981 checks into aarch64_prologue_frame_unwind_stop_reason. Call
7982 frame_id_build_unavailable_stack if available_p is not set.
7983
db634143
PL
79842015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7985
7986 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
7987 fields.
7988 (aarch64_scan_prologue): Set prev_pc.
7989 (aarch64_make_prologue_cache): Set func.
7990 (aarch64_make_stub_cache): Set prev_pc.
7991 (aarch64_prologue_this_id): Remove local variables id, pc and
7992 func. Read prev_pc and func from cache.
7993 (aarch64_stub_this_id): Read prev_pc from cache.
7994
8b61f75d
PL
79952015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7996
7997 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
7998 argument this_cache. Remove unused local variables reg and
7999 unwound_fp. Return early if this_cache is already set. Set
8000 this_cache.
8001 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
8002
7c8edfae
PL
80032015-07-09 Pierre Langlois <pierre.langlois@arm.com>
8004
8005 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
8006 New argument this_cache. Return early if this_cache is already
8007 set. Set this_cache.
8008 (aarch64_prologue_this_id): Update call to
8009 aarch64_make_prologue_cache.
8010 (aarch64_prologue_prev_register): Likewise.
8011 (aarch64_normal_frame_base): Likewise.
8012
938c69a1
SM
80132015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8014
8015 * c-valprint.c (c_val_print): Factor out memberptr printing code
8016 from c_val_print to ...
8017 (c_val_print_memberptr): ... this new function.
8018
49f7fe28
SM
80192015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8020
8021 * c-valprint.c (c_val_print): Factor out int printing code to ...
8022 (c_val_print_int): ... this new function.
8023
9e4f353c
SM
80242015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8025
8026 * c-valprint.c (c_val_print): Factor out struct and union
8027 printing code to ...
8028 (c_val_print_struct): ... this new function ...
8029 (c_val_print_union): ... and this new function.
8030
1c67f032
SM
80312015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8032
8033 * c-valprint.c (c_val_print): Factor out pointer printing code
8034 to ...
8035 (c_val_print_ptr): ... this new function.
8036
0b6ef777
SM
80372015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8038
8039 * c-valprint.c (c_valprint): Factor our array printing code from
8040 c_val_print to ...
8041 (c_val_print_array): ... this new function.
8042
1033c33c
SM
80432015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8044
8045 * c-valprint.c (c_val_print): Factor out pointer printing code
8046 to ...
8047 (print_unpacked_pointer): ... this new function.
8048
f6b93c34
SM
80492015-07-09 Simon Marchi <simon.marchi@ericsson.com>
8050
8051 * c-valprint.c (c_val_print): Remove an assignment to i and move
8052 its declaration.
8053
0f4576e3
YQ
80542015-07-09 Yao Qi <yao.qi@linaro.org>
8055
8056 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
8057 argument ptid. Update comments. Caller update.
8058
37fdfe4c
MM
80592015-07-09 Markus Metzger <markus.t.metzger@intel.com>
8060
8061 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
8062 mnt packets.
8063
80a2b330
MM
80642015-07-09 Markus Metzger <markus.t.metzger@intel.com>
8065
8066 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
8067
4ab31498
SM
80682015-07-08 Simon Marchi <simon.marchi@ericsson.com>
8069
8070 * progspace.c (delete_program_space): Add missing spaces.
8071
7a41607e
SM
80722015-07-08 Simon Marchi <simon.marchi@ericsson.com>
8073
8074 * inferior.c (delete_inferior_1): Rename to ...
8075 (delete_inferior): ..., remove 'silent' parameter, delete
8076 program space when unused and remove call to prune_program_spaces.
8077 Remove the old, unused, delete_inferior.
8078 (delete_inferior_silent): Remove.
8079 (prune_inferiors): Change call from delete_inferior_1 to
8080 delete_inferior and remove 'silent' parameter. Remove call to
8081 prune_program_spaces.
8082 (remove_inferior_command): Idem.
8083 * inferior.h (delete_inferior_1): Rename to...
8084 (delete_inferior): ..., remove 'silent' parameter and remove the
8085 original delete_inferior.
8086 (delete_inferior_silent): Remove.
8087 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
8088 delete_inferior_1 to delete_inferior and remove 'silent'
8089 parameter.
8090 * progspace.c (prune_program_spaces): Remove.
8091 (pspace_empty_p): Rename to...
8092 (program_space_empty_p): ... and make non-static.
8093 (delete_program_space): New.
8094 * progspace.h (prune_program_spaces): Remove declaration.
8095 (program_space_empty_p): New declaration.
8096 (delete_program_space): New declaration.
8097 * monitor.c (monitor_close): Replace call to
8098 delete_thread_silent and delete_inferior_silent with
8099 discard_all_inferiors.
8100
a9bd710f
PP
81012015-07-08 Patrick Palka <patrick@parcs.ath.cx>
8102
8103 * defs.h (deprecated_register_changed_hook): Remove prototype.
8104 * interps.c (clear_iterpreter_hooks): Remove reference to
8105 deprecated_register_changed_hook.
8106 * top.c (deprecated_register_changed_hook): Remove prototype.
8107 * valops.c (value_assign): Remove reference to
8108 deprecated_register_changed_hook.
8109 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
8110 Add comment documenting the function.
8111 (tui_register_changed_observer): Define.
8112 (tui_install_hooks): Remove reference to
8113 deprecated_register_changed_hook. Set
8114 tui_register_changed_observer.
8115 (tui_remove_hooks): Remove reference to
8116 deprecated_register_changed_hook. Unset
8117 tui_register_changed_observer.
8118
08464196
JK
81192015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8120
8121 PR compile/18484
8122 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
8123
bcf5c1d9
RC
81242015-07-08 Robert O'Callahan <robert@ocallahan.org>
8125
8126 PR exp/18617
8127 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
8128
e8643a45
MM
81292015-07-08 Markus Metzger <markus.t.metzger@intel.com>
8130
8131 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
8132
76fb6829
MM
81332015-07-08 Markus Metzger <markus.t.metzger@intel.com>
8134
8135 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
8136 Use safe_strerror() instead of strerror().
8137
82c40d4b
YQ
81382015-07-07 Yao Qi <yao.qi@linaro.org>
8139
8140 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
8141 * features/arm-with-m-fpa-layout.c: Regenerated.
8142 * features/arm-with-m-vfp-d16.xml: Likewise.
8143 * features/arm-with-m-vfp-d16.c: Regenerated.
8144 * features/arm-with-m.xml: Likewise.
8145 * features/arm-with-m.c: Regenerated.
8146 * features/arm-with-neon.xml: Likewise.
8147 * features/arm-with-neon.c: Regenerated.
8148 * features/arm-with-vfpv2.xml: Likewise.
8149 * features/arm-with-vfpv2.c: Regenerated.
8150 * features/arm-with-vfpv3.xml: Likewise.
8151 * features/arm-with-vfpv3.c: Regenerated.
8152
607685ec
YQ
81532015-07-07 Yao Qi <yao.qi@linaro.org>
8154
8155 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
8156 arm-linux-nat.c.
8157 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
8158 elf/external.h.
8159 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
8160 if target is 32-bit.
8161 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
8162 if target is 32-bit.
8163 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
8164 if target is 32-bit.
8165 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
8166 if target is 32-bit.
8167 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
8168 (aarch64_linux_read_description): Return the right target
8169 description.
8170 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
8171 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
8172 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
8173 arm-linux-tdep.o.
8174
f1b67888
YQ
81752015-07-07 Yao Qi <yao.qi@linaro.org>
8176
8177 * aarch32-linux-nat.c: New file.
8178 * aarch32-linux-nat.h: New file.
8179 * arm-linux-nat.c: Include aarch32-linux-nat.h.
8180 (fetch_regs): Move code to aarch32-linux-nat.c. Call
8181 aarch32_gp_regcache_supply.
8182 (store_regs): Move code to aarch32-linux-nat.c. Call
8183 aarch32_gp_regcache_collect.
8184 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
8185 aarch32_vfp_regcache_supply.
8186 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
8187 aarch32_vfp_regcache_collect.
8188 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
8189
179bfe82
YQ
81902015-07-07 Yao Qi <yao.qi@linaro.org>
8191
8192 * arm-linux-nat.c (store_fpregister): Remove.
8193 (store_register): Likewise.
8194 (fetch_fpregister): Likewise.
8195 (fetch_register): Likewise.
8196 (arm_linux_store_inferior_registers): Call store_regs and
8197 store_fpregs instead.
8198 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
8199 fetch_regs instead.
8200
6008fc5f
AB
82012015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8202
8203 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
8204 and focus commands.
8205
7c79d316
JB
82062015-07-06 Joel Brobecker <brobecker@adacore.com>
8207
8208 * NEWS: Create a new section for the next release branch.
8209 Rename the section of the current branch, now that it has
8210 been cut.
8211
f2232bea
JB
82122015-07-06 Joel Brobecker <brobecker@adacore.com>
8213
8214 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
8215 * version.in: Bump version to 7.10.50.DATE-cvs.
8216
66c4b3e8
LM
82172015-07-06 Luis Machado <lgustavo@codesourcery.com>
8218
8219 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
8220 breakpoints in a special way.
8221 (remove_breakpoint): Likewise.
8222 (mark_breakpoints_out): Likewise.
8223
bcd8537c
AB
82242015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8225
8226 * doc/gdb.texinfo (TUI): Add comma after @xref.
8227
10e9aaa3
AB
82282015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8229
8230 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
8231 instead of casting the structure type.
8232
8a13d42d
SM
82332015-07-06 Simon Marchi <simon.marchi@ericsson.com>
8234
8235 * valops.c (search_struct_field): Remove OFFSET parameter.
8236 (value_cast_structs): Adjust calls to search_struct_field.
8237 (value_struct_elt): Same.
8238 (find_overload_match): Same.
8239
a844296a
SM
82402015-07-06 Simon Marchi <simon.marchi@ericsson.com>
8241
8242 * value.c (value_fetch_lazy): Update comment, change return
8243 value to void.
8244 * value.h (value_fetch_lazy): Change return value to void.
8245
f41cbf58
AB
82462015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
8247
8248 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
8249 (tui_win_name): Make parameter and result const.
8250 * tui/tui-data.h (tui_win_name): Make parameter and result const.
8251
118ca224
PP
82522015-07-06 Patrick Palka <patrick@parcs.ath.cx>
8253
8254 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
8255 use printf_unfiltered.
8256 (set_mpx_cmd): Add missing trailing space to command string
8257 literal.
8258 (_initialize_i386_tdep): Give the "mpx" prefix command its
8259 correct name.
8260
1b485e67
KB
82612015-07-02 Kevin Buettner <kevinb@redhat.com>
8262
8263 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
8264 (enum rx_frame_type): New.
8265 (struct rx_prologue): Add new field `frame_type'.
8266 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
8267 parameter in the prologue struct. Add code for recording
8268 locations of PC and PSW for fast interrupt and exception frames.
8269 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
8270 (rx_analyze_frame_prologue): Add `frame_type' parameter.
8271 (rx_frame_type): New function.
8272 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
8273 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
8274 `this_cache'.
8275 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 8276 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
8277 RX_FRAME_TYPE_FAST_INTERRUPT.
8278 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
8279 (rx_frame_sniffer, rx_exception_sniffer): New functions.
8280 (rx_frame_unwind): Use rx_frame_sniffer instead of
8281 default_frame_sniffer.
8282 (rx_frame_unwind): New unwinder.
8283 (rx_gdbarch_init): Register new unwinder.
8284
0561fea4
KB
82852015-07-02 Kevin Buettner <kevinb@redhat.com>
8286
8287 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
8288 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
8289 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
8290 and RX_FPSW_REGNUM.
8291 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
8292
decf8d9a
JK
82932015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8294
8295 Fix GCC false warning.
8296 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
8297
2fd0f80d
YQ
82982015-07-02 Yao Qi <yao.qi@linaro.org>
8299
8300 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
8301 typo in the debugging message.
8302
b0627500
MM
83032015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8304
8305 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
8306 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
8307 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
8308 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
8309 (btrace_maint_clear): New.
8310 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
8311 (pt_print_packet, btrace_maint_decode_pt)
8312 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
8313 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
8314 (maint_btrace_packet_history_cmd)
8315 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
8316 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
8317 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
8318 (maint_info_btrace_cmd, _initialize_btrace): New.
8319 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
8320 (btrace_maint_packet_history, btrace_maint_info): New.
8321 (btrace_thread_info) <maint>: New.
8322 * NEWS: Announce it.
8323
9be54cae
MM
83242015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8325
8326 * btrace.c (btrace_fetch): Append the new trace data.
8327 (btrace_clear): Clear the stored trace data.
8328 * btrace.h (btrace_thread_info) <data>: New.
8329 * common/btrace-common.h (btrace_data_clear)
8330 (btrace_data_append): New.
8331 * common/btrace-common.c (btrace_data_clear)
8332 (btrace_data_append): New.
8333
010a18a1
MM
83342015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8335
8336 * nat/linux-btrace.c (linux_enable_bts): Check for
8337 PERF_ATTR_SIZE_VER5.
8338 Check for data_offset and data_size fields. Use them.
8339
b20a6524
MM
83402015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8341
8342 * NEWS: Announce new commands "record btrace pt" and "record pt".
8343 Announce new options "set|show record btrace pt buffer-size".
8344 * btrace.c: Include "rsp-low.h".
8345 Include "inttypes.h".
8346 (btrace_add_pc): Add forward declaration.
8347 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
8348 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
8349 (btrace_compute_ftrace_pt): New.
8350 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
8351 (check_xml_btrace_version): Update version check.
8352 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
8353 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
8354 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
8355 (btrace_pt_children): New.
8356 (btrace_children): Add support for "pt".
8357 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
8358 (btrace_conf_children): Add support for "pt".
8359 * btrace.h: Include "intel-pt.h".
8360 (btrace_pt_error): New.
8361 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
8362 (btrace_data_empty): Support BTRACE_FORMAT_PT.
8363 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
8364 (struct btrace_config_pt): New.
8365 (struct btrace_config)<pt>: New.
8366 (struct btrace_data_pt_config, struct btrace_data_pt): New.
8367 (struct btrace_data)<pt>: New.
8368 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
8369 (pt): New.
8370 * features/btrace.dtd (btrace)<pt>: New.
8371 (pt, pt-config, cpu): New.
8372 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
8373 (perf_event_pt_event_type, kernel_supports_pt)
8374 (linux_supports_pt): New.
8375 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
8376 (linux_enable_bts): Free tinfo on error.
8377 (linux_enable_pt): New.
8378 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
8379 (linux_disable_pt): New.
8380 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
8381 (linux_fill_btrace_pt_config, linux_read_pt): New.
8382 (linux_read_btrace): Support BTRACE_FORMAT_PT.
8383 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
8384 (struct btrace_target_info)<pt>: New.
8385 * record-btrace.c (set_record_btrace_pt_cmdlist)
8386 (show_record_btrace_pt_cmdlist): New.
8387 (record_btrace_print_pt_conf): New.
8388 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
8389 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
8390 (cmd_record_btrace_pt_start): New.
8391 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
8392 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
8393 (_initialize_record_btrace): Add new commands.
8394 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
8395 (remote_protocol_features): Add "Qbtrace:pt".
8396 Add "Qbtrace-conf:pt:size".
8397 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
8398 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
8399 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
8400 (_initialize_remote): Add new commands.
8401
58bfce93
MM
84022015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8403
8404 * configure.ac: check for libipt
8405 * configure: Regenerate.
8406 * config.in: Regenerate.
8407 * Makefile.in (LIBIPT): New.
8408 (CLIBS): Add $LIBIPT.
8409 * NEWS: document new configure options
8410
b0fd6b30
JK
84112015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8412
8413 * compile/compile-object-load.c (compile_object_load): Replace debug
8414 message "lookup undefined ELF symbol" by 3 more specific messages.
8415
e6280369
KB
84162015-07-01 Kevin Buettner <kevinb@redhat.com>
8417
8418 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
8419 (rl78_register_type): Add case for RL78_PSW_REGNUM.
8420 (rl78_gdbarch_init): Initialize rl78_psw_type.
8421
bbcbf914
PP
84222015-07-01 Patrick Palka <patrick@parcs.ath.cx>
8423
8424 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
8425 Update commentary. Always refresh the registers when frame
8426 information has changed.
8427 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
8428 Change return type to int. Return 1 if frame information has
8429 changed, 0 otherwise.
8430 (tui_before_prompt): Update commentary.
8431 * tui/tui-stack.h (tui_show_frame_info): Change return type to
8432 int.
8433
0986c744
PP
84342015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8435
8436 PR tui/13378
8437 * frame.c (select_frame): Remove reference to
8438 deprecated_selected_frame_level_changed_hook.
8439 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
8440 declaration.
8441 * stack.c (deprecated_selected_frame_level_changed_hook):
8442 Likewise.
8443 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
8444 Rename to ...
8445 (tui_refresh_frame_and_register_information): ... this. Bail
8446 out if there is no stack. Don't update register information
8447 unless registers_too_p is true.
8448 (tui_print_frame_info_listing_hook): Rename to ...
8449 (tui_dummy_print_frame_info_listing_hook): ... this.
8450 (tui_before_prompt): New function.
8451 (tui_normal_stop): New function.
8452 (tui_before_prompt_observer): New observer.
8453 (tui_normal_stop_observer): New observer.
8454 (tui_install_hooks): Set
8455 deprecated_print_frame_info_listing_hook to
8456 tui_dummy_print_frame_info_listing_hook. Register
8457 tui_before_prompt_observer to call tui_before_prompt and
8458 tui_normal_stop_observer to call tui_normal_stop. Remove
8459 reference to deprecated_selected_frame_level_changed_hook.
8460 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
8461 and tui_normal_stop_observer. Remove reference to
8462 deprecated_selected_frame_level_changed_hook.
8463
b5fca6d7
PP
84642015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8465
8466 PR tui/13378
8467 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
8468 return an int instead of void. Return whether the locator
8469 window has changed.
8470 (tui_show_frame_info): If the locator info has not changed, then
8471 bail out early to avoid refreshing the windows.
8472
c45613e3
PP
84732015-06-30 Patrick Palka <patrick@parcs.ath.cx>
8474
8475 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
8476 LOCATOR_WIN to tui_alloc_content.
8477
7b9be803
YQ
84782015-06-30 Yao Qi <yao.qi@linaro.org>
8479
8480 PR tdep/18605
8481 * arm-tdep.c (arm_get_next_pc_raw): Break for media
8482 instructions.
8483
fd6e021d
KB
84842015-06-29 Kevin Buettner <kevinb@redhat.com>
8485
78ab7e9d
KB
8486 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
8487 (rx_dwarf_reg_to_regnum): New function.
8488 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
8489 unwinding.
fd6e021d 8490
28bf096c
PA
84912015-06-29 Pedro Alves <palves@redhat.com>
8492
8493 PR threads/18127
8494 * infcall.c (run_inferior_call): On infcall success, if the thread
8495 was marked stopped before, reset it back to stopped.
8496 * infrun.c (resume): Don't suppress the set_running calls when
8497 doing an infcall.
8498 (normal_stop): Only discard the finish_thread_state cleanup if the
8499 infcall succeeded.
8500
2880b51c 85012015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
8502
8503 * MAINTAINERS (Write After Approval): Update my email address.
8504
ee93cd5e
KS
85052015-06-26 Keith Seitz <keiths@redhat.com>
8506 Doug Evans <dje@google.com>
8507
8508 PR 16253
8509 * block.c (block_lookup_symbol): For non-function blocks,
8510 continue to search for a symbol with an exact domain match
8511 Otherwise, return any previously found "best domain" symbol.
8512 (block_lookup_symbol_primary): Likewise.
8513
fc637f04
PP
85142015-06-26 Patrick Palka <patrick@parcs.ath.cx>
8515
8516 * NEWS: Mention the new option "history remove-duplicates".
8517 * top.c (history_remove_duplicates): New static variable.
8518 (show_history_remove_duplicates): New static function.
8519 (gdb_add_history): Conditionally remove duplicate history
8520 entries.
8521 (init_main): Add "history remove-duplicates" option.
8522
2e52ae68
PP
85232015-06-26 Patrick Palka <patrick@parcs.ath.cx>
8524
8525 * tui/tui-win.c (focus_completer): New static function.
8526 (_initialize_tui_win): Set the completion function of the
8527 "focus" command to focus_completer.
8528
6e22494e
JK
85292015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8530
8531 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
8532 and language_asm..
8533 * symtab.c (find_function_start_sal): Likewise.
8534
f8773be1
GB
85352015-06-25 Gary Benson <gbenson@redhat.com>
8536
8537 * solib.c (solib_find_1): Set local variable sysroot to NULL if
8538 it is the empty string after trailing slashes have been stripped.
8539
a3be80c3
GB
85402015-06-25 Gary Benson <gbenson@redhat.com>
8541
8542 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
8543 * infrun.c (follow_exec): Likewise.
8544 * remote.c (remote_filesystem_is_local): Likewise.
8545 * solib.c (solib_find_1): Likewise.
8546
32fad71f
KS
85472015-06-24 Keith Seitz <keiths@redhat.com>
8548
8549 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
8550 return value from lrealpath.
8551
87d1b309
MF
85522015-06-24 Mike Frysinger <vapier@gentoo.org>
8553
8554 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
8555
23bf70af
MF
85562015-06-24 Mike Frysinger <vapier@gentoo.org>
8557
8558 * remote-sim.c: Include gdb_bfd.h.
8559 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
8560 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
8561
5cd867b4
YQ
85622015-06-24 Yao Qi <yao.qi@linaro.org>
8563
8564 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
8565 set_gdbarch_get_siginfo_type.
8566 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8567 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8568 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8569 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
8570 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
8571 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8572 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
8573 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
8574 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
8575 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
8576
dc06243f
GB
85772015-06-24 Gary Benson <gbenson@redhat.com>
8578
8579 * common/buffer.c (stdint.h): Do not include.
8580 * common/print-utils.c (stdint.h): Likewise.
8581 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
8582 * compile/compile-c-types.c (gdb_assert.h): Likewise.
8583 * ft32-tdep.c (gdb_assert.h): Likewise.
8584 * guile/scm-utils.c (stdint.h): Likewise.
8585 * i386-linux-tdep.c (stdint.h): Likewise.
8586 * i386-tdep.c (stdint.h): Likewise.
8587 * nat/linux-btrace.c (stdint.h): Likewise.
8588 * nat/linux-btrace.h (stdint.h): Likewise.
8589 * nat/linux-ptrace.c (stdint.h): Likewise.
8590 * nat/mips-linux-watch.h (stdint.h): Likewise.
8591 * ppc-linux-nat.c (stdint.h): Likewise.
8592 * python/python-internal.h (stdint.h): Likewise.
8593 * stub-termcap.c (stdlib.h): Likewise.
8594 * target/target.h (stdint.h): Likewise.
8595 * xtensa-linux-nat.c (stdint.h): Likewise.
8596
0fc26caf
PP
85972015-06-23 Patrick Palka <patrick@parcs.ath.cx>
8598
8599 * top.c (init_history): Look at errno after calling strtol to
8600 properly map large GDBHISTSIZE values to infinity.
8601
a38fe4fe
DE
86022015-06-23 Doug Evans <dje@google.com>
8603
8604 * inferior.h (struct inferior_suspend_state): Delete, unused.
8605 All references deleted.
8606
7564fe45
MF
86072015-06-23 Mike Frysinger <vapier@gentoo.org>
8608
8609 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
8610 (microblaze_push_dummy_call): Likewise.
8611 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
8612 and set_gdbarch_push_dummy_call.
8613
0bdb2f78
YQ
86142015-06-23 Yao Qi <yao.qi@linaro.org>
8615
8616 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
8617 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
8618 (amd64_linux_store_inferior_registers): Likewise.
8619 * arm-linux-nat.c (fetch_fpregister): Likewise.
8620 (fetch_fpregs, store_fpregister): Likewise.
8621 (store_fpregister, store_fpregs): Likewise.
8622 (fetch_register, fetch_regs): Likewise.
8623 (store_register, store_regs): Likewise.
8624 (fetch_vfp_regs, store_vfp_regs): Likewise.
8625 (arm_linux_read_description): Check have_ptrace_getregset is
8626 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
8627 or TRIBOOL_FALSE.
8628 * i386-linux-nat.c (fetch_xstateregs): Check
8629 have_ptrace_getregset is not TRIBOOL_TRUE.
8630 (store_xstateregs): Likewise.
8631 * linux-nat.c (have_ptrace_getregset): Change its type to
8632 enum tribool.
8633 * linux-nat.h (tribool): New enum.
8634 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
8635 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
8636
18a94d75
DE
86372015-06-19 Doug Evans <dje@google.com>
8638
8639 * NEWS: Mention Sun's version of stabs is no longer supported.
8640 * elfread.c (free_elfinfo): Delete. All uses updated.
8641 (elfstab_offset_sections): Delete. All uses updated.
8642 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
8643 * psympriv.h (partial_symtab) <section_offsets>: Delete.
8644 All uses updated.
8645 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
8646 All callers updated.
8647
124e13d9
SM
86482015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8649
8650 * common/rsp-low.c (needs_escaping): New.
8651 (remote_escape_output): Add unit_size parameter. Refactor to
8652 support multi-byte addressable units. Rename parameters.
8653 * common/rsp-low.h (remote_escape_output): Add unit_size
8654 parameter and rename others. Update doc.
8655 * remote.c (align_for_efficient_write): New.
8656 (remote_write_bytes_aux): Add unit_size parameter and use it.
8657 Rename some variables. Update doc.
8658 (remote_xfer_partial): Get unit size and use it.
8659 (remote_read_bytes_1): Add unit_size parameter and use it.
8660 Rename some variables. Update doc.
8661 (remote_write_bytes): Same.
8662 (remote_xfer_live_readonly_partial): Same.
8663 (remote_read_bytes): Same.
8664 (remote_flash_write): Update call to remote_write_bytes_aux.
8665 (remote_write_qxfer): Update call to remote_escape_output.
8666 (remote_search_memory): Same.
8667 (remote_hostio_pwrite): Same.
8668
6ae88661
LM
86692015-06-17 Luis Machado <lgustavo@codesourcery.com>
8670
8671 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
8672 locations as inserted.
8673 Update and expand comment about permanent locations.
8674 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
8675 Move comment to add_location_to_breakpoint.
8676 (update_global_location_list): Don't error out if a permanent
8677 breakpoint is not marked inserted.
8678 Don't error out if a non-permanent breakpoint location is inserted on
8679 top of a permanent breakpoint.
8680
da4616f6
LM
86812015-06-17 Luis Machado <lgustavo@codesourcery.com>
8682
8683 * breakpoint.c (make_breakpoint_permanent): Remove unused
8684 function.
8685 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
8686
bc460514
PP
86872015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8688
8689 PR gdb/16999
8690 * NEWS: Mention new GDBHISTSIZE behavior.
8691 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
8692 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
8693
b58c513b
PP
86942015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8695
8696 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
8697 * top.c (init_history): Read from GDBHISTSIZE instead of
8698 HISTSIZE.
8699 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
8700
2093d2d3
PP
87012015-06-17 Patrick Palka <patrick@parcs.ath.cx>
8702
8703 * top.c (gdb_safe_append_history): Do not call
8704 history_truncate_file if the history is not stifled.
8705
fc248485
AA
87062015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8707
8708 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
8709 * syscalls/s390x-linux.xml: Likewise.
8710
4da680ad
ME
87112015-06-16 Michael Eager <eager@eagercon.com>
8712
8713 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
8714
0a75489f
PP
87152015-06-16 Patrick Palka <patrick@parcs.ath.cx>
8716
8717 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
8718 target_terminal_ours_for_output() before calling
8719 tui_show_frame_info(), and restore the original terminal
8720 settings afterwards.
8721
95855ca8
MS
87222015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
8723
8724 * arm-linux-nat.c: Include nat/linux-ptrace.h.
8725
cfc32360
SM
87262015-06-15 Simon Marchi <simon.marchi@ericsson.com>
8727
8728 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
8729 memory unit size.
8730 (mi_cmd_data_write_memory_bytes): Same.
8731
cb6f16cf
SM
87322015-06-15 Simon Marchi <simon.marchi@ericsson.com>
8733
8734 * corefile.c (write_memory): Update doc.
8735 * gdbcore.h (write_memory): Same.
8736
31b7833d
JK
87372015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8738
8739 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
8740 (dump_mapping_p): Use it for parameter filterflags.
8741 (linux_find_memory_regions_full): Use it for variable filterflags.
8742
909c2cda
JK
87432015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8744 Jan Kratochvil <jan.kratochvil@redhat.com>
8745
8746 Merge multiple hex conversions.
8747 * monitor.c: Include rsp-low.h.
8748 (fromhex): Remove definition.
8749
03aef70f
JK
87502015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8751 Jan Kratochvil <jan.kratochvil@redhat.com>
8752
8753 Move utility functions to common/.
8754 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
8755 Move defs to common/common-utils.c.
8756 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
8757 (skip_to_space_const): Move decls to common/common-utils.h.
8758 * common/common-defs.h: Move include of common-types.h before
8759 common-utils.h.
8760 * common/common-utils.c: Include host-defs.h and ctype.h.
8761 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
8762 from utils.c.
8763 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
8764 cli/cli-utils.c.
8765 * common/common-utils.h (strtoulst): Move decl from utils.h.
8766 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
8767 Move from cli/cli-utils.h.
8768 * common/host-defs.h: Include limits.h.
8769 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
8770 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
8771 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
8772 common/common-utils.h.
8773 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
8774 (strtoulst): Move to common/common-utils.c.
8775 * utils.h (strtoulst): Moved decl to common/common-utils.h.
8776
d1168cc1
YQ
87772015-06-15 Yao Qi <yao.qi@linaro.org>
8778
8779 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
8780
c74f7d1c
JT
87812015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
8782
8783 * build-id.c: Don't include elf-bfd.h.
8784 (build_id_bfd_get): Use bfd_build_id.
8785 (build_id_verify): Ditto.
8786 * build-id.h: Ditto.
8787 (find_separate_debug_file_by_buildid): Ditto.
8788 * python/py-objfile.c: Don't include elf-bfd.h.
8789 (objfpy_get_build_id) Use bfd_build_id.
8790 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
8791 * coffread.c: Include build-id.h.
8792 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
8793
f20c58f5
JT
87942015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8795
8796 * windows-nat.c (do_windows_fetch_inferior_registers)
8797 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
8798 conditional with __CYGWIN__.
8799
51f0e40d
AB
88002015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
8801
8802 * completer.c: Add arch-utils.h include.
8803 (enum reg_completer_targets): New enum.
8804 (reg_or_group_completer_1): New function containing old
8805 reg_or_group_completer, add and use new parameter to control what
8806 is completed on. Use get_current_arch rather than architecture of
8807 currently selected frame.
8808 (reg_or_group_completer): Call new reg_or_group_completer_1.
8809 (reggroup_completer): Call new reg_or_group_completer_1.
8810 * completer.h (reggroup_completer): Add declaration.
8811 * tui/tui-regs.c: Add 'completer.h' include.
8812 (tui_reg_next_command): Renamed to...
8813 (tui_reg_next): ...this. Adjust parameters and return rather than
8814 display new group.
8815 (tui_reg_prev_command): Renamed to...
8816 (tui_reg_prev): ...this. Adjust parameters and return rather than
8817 display new group.
8818 (tui_reg_float_command): Delete.
8819 (tui_reg_general_command): Delete.
8820 (tui_reg_system_command): Delete.
8821 (tui_reg_command): Rewrite to perform switching of register group.
8822 Add header comment.
8823 (tuireglist): Remove.
8824 (tui_reggroup_completer): New function.
8825 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
8826 creation of 'tui reg' command.
8827 * NEWS: Add comment about 'tui reg' changes.
8828
d309493c
SM
88292015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8830
8831 * target.c (target_read): Consider addressable unit size when
8832 reading from a memory object.
8833 (read_memory_robust): Same.
8834 (read_whatever_is_readable): Same.
8835 (target_write_with_progress): Consider addressable unit size
8836 when writing to a memory object.
8837 * target.h (target_read): Update documentation.
8838 (target_write): Add documentation.
8839
3374165f
SM
88402015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8841
8842 * arch-utils.h (default_addressable_memory_unit_size): New.
8843 * arch-utils.c (default_addressable_memory_unit_size): New.
8844 * gdbarch.sh (addressable_memory_unit_size): New.
8845 * gdbarch.h: Re-generate.
8846 * gdbarch.c: Re-generate.
8847
279a6fed
SM
88482015-06-12 Simon Marchi <simon.marchi@ericsson.com>
8849
8850 * target.c (target_read): Rename variables and use
8851 TARGET_XFER_E_IO.
8852 (target_read_with_progress): Same.
8853 (read_memory_robust): Constify parameters and rename
8854 variables.
8855 (read_whatever_is_readable): Constify parameters,
8856 rename variables, adjust formatting.
8857 * target.h (read_memory_robust): Constify parameters.
8858
1e5338b6 88592015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
8860
8861 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
8862 synthetic (non-AltiVec) vector types.
8863 (ppc64_sysv_abi_return_value): Likewise.
8864
98aa42ee
AT
88652015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
8866
8867 PR breakpoints/16465
8868 * breakpoint.c (create_breakpoint): Save extra_string for
8869 pending breakpoints.
8870
966f0aef
WT
88712015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8872
8873 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
8874 and bt_mask to CORE_ADDR.
8875
6449ed0d
GB
88762015-06-11 Gary Benson <gbenson@redhat.com>
8877
8878 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
8879 (mnsh_recv_message): Likewise.
8880
34f8ac9f
WT
88812015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
8882
8883 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
8884 long long int and plongest instead of %ll.
8885
198c808c
GB
88862015-06-11 Gary Benson <gbenson@redhat.com>
8887
8888 * nat/linux-namespaces.c (gdb_wait.h): New include.
8889 (sys/wait.h): Do not include.
8890
e815d2d2
SM
88912015-06-10 Simon Marchi <simon.marchi@ericsson.com>
8892
8893 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
8894 end_sequence is true.
8895
8847cac2
JK
88962015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8897
8898 Code cleanup.
8899 * solib-target.c (library_list_start_list): Use explicit NULL
8900 comparison.
8901
24c05f46
JK
89022015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8903
8904 * solib-target.c (library_list_start_list): Do not dereference
8905 variable version in its initialization. Make the VERSION check handle
8906 NULL.
8907 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
8908
51aad7cc
GB
89092015-06-10 Gary Benson <gbenson@redhat.com>
8910
8911 * NEWS: Announce support for direct access of executable and
8912 shared library files when attaching to inferiors in containers
8913 on GNU/Linux systems.
8914
15a201c8
GB
89152015-06-10 Gary Benson <gbenson@redhat.com>
8916
8917 * remote.c (struct remote_state) <fs_pid>: New field.
8918 (new_remote_state): Initialize the above.
8919 (PACKET_vFile_setfs): New enum value.
8920 (remote_hostio_set_filesystem): New function.
8921 (remote_hostio_open): Call the above.
8922 (remote_hostio_unlink): Likewise.
8923 (remote_hostio_readlink): Likewise.
8924 (_initialize_remote): Register new "set/show remote
8925 hostio-setfs-packet" command.
8926 * NEWS: Announce new vFile:setfs packet.
8927
7a6a1731
GB
89282015-06-10 Gary Benson <gbenson@redhat.com>
8929
8930 * linux-nat.c (nat/linux-namespaces.h): New include.
8931 (fileio.h): Likewise.
8932 (linux_nat_filesystem_is_local): New function.
8933 (linux_nat_fileio_pid_of): Likewise.
8934 (linux_nat_fileio_open): Likewise.
8935 (linux_nat_fileio_readlink): Likewise.
8936 (linux_nat_fileio_unlink): Likewise.
8937 (linux_nat_add_target): Initialize to_filesystem_is_local,
8938 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
8939 (_initialize_linux_nat): New "set/show debug linux-namespaces"
8940 commands.
8941 * NEWS: Mention new "set/show debug linux-namespaces" commands.
8942
07c138c8
GB
89432015-06-10 Gary Benson <gbenson@redhat.com>
8944
8945 * target.h (struct inferior): New forward declaration.
8946 (struct target_ops) <to_filesystem_is_local>: Update comment.
8947 (struct target_ops) <to_fileio_open>: New argument inf.
8948 Update comment. All implementations updated.
8949 (struct target_ops) <to_fileio_unlink>: Likewise.
8950 (struct target_ops) <to_fileio_readlink>: Likewise.
8951 (target_filesystem_is_local): Update comment.
8952 (target_fileio_open): New argument inf. Update comment.
8953 (target_fileio_unlink): Likewise.
8954 (target_fileio_readlink): Likewise.
8955 (target_fileio_read_alloc): Likewise.
8956 (target_fileio_read_stralloc): Likewise.
8957 * target.c (target_fileio_open): New argument inf.
8958 Pass inf to implementation. Update debug printing.
8959 (target_fileio_unlink): Likewise.
8960 (target_fileio_readlink): Likewise.
8961 (target_fileio_read_alloc_1): New argument inf. Pass inf
8962 to target_fileio_open.
8963 (target_fileio_read_alloc): New argument inf. Pass inf to
8964 target_fileio_read_alloc_1.
8965 (target_fileio_read_stralloc): Likewise.
8966 * gdb_bfd.c (inferior.h): New include.
8967 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
8968 argument with new argument "inferior". Pass inferior to
8969 target_fileio_open.
8970 (gdb_bfd_open): Supply inferior argument to
8971 gdb_bfd_iovec_fileio_open.
8972 * linux-tdep.c (linux_info_proc): Supply inf argument to
8973 relevant target_fileio calls.
8974 (linux_find_memory_regions_full): Likewise.
8975 (linux_fill_prpsinfo): Likewise.
8976 * remote.c (remote_filesystem_is_local): Supply inf
8977 argument to remote_hostio_open.
8978 (remote_file_put): Likewise.
8979 (remote_file_get): Likewise.
8980 (remote_file_delete): Supply inf argument to
8981 remote_hostio_unlink.
8982
12e2a5fd
GB
89832015-06-10 Gary Benson <gbenson@redhat.com>
8984
8985 * inf-child.c (inf_child_fileio_open): Replace comment.
8986 (inf_child_fileio_pwrite): Likewise.
8987 (inf_child_fileio_pread): Likewise.
8988 (inf_child_fileio_fstat): Insert blank line before comment.
8989 (inf_child_fileio_close): Replace comment.
8990 (inf_child_fileio_unlink): Likewise.
8991 (inf_child_fileio_readlink): Likewise.
8992 * remote.c (remote_hostio_open): Likewise.
8993 (remote_hostio_pread): Likewise.
8994 (remote_hostio_pwrite): Likewise.
8995 (remote_hostio_close): Likewise.
8996 (remote_hostio_unlink): Likewise.
8997 (remote_hostio_readlink): Likewise.
8998 (remote_hostio_fstat): Likewise.
8999 (remote_filesystem_is_local): Likewise.
9000 * target.c (target_fileio_open): Likewise.
9001 (target_fileio_pwrite): Likewise.
9002 (target_fileio_pread): Likewise.
9003 (target_fileio_fstat): Insert blank line before comment.
9004 (target_fileio_close): Replace comment.
9005 (target_fileio_unlink): Likewise.
9006 (target_fileio_readlink): Likewise.
9007 (target_fileio_read_alloc): Likewise.
9008 (target_fileio_read_stralloc): Likewise.
9009
9bc3a976
GB
90102015-06-10 Gary Benson <gbenson@redhat.com>
9011
9012 * linux-thread-db.c (nat/linux-namespaces.h): New include.
9013 (check_pid_namespace_match): Use linux_ns_same rather than
9014 linux_proc_pid_get_ns to spot PID namespace mismatches.
9015 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
9016 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
9017
4b8b5e72
GB
90182015-06-10 Gary Benson <gbenson@redhat.com>
9019
9020 * configure.ac (AC_CHECK_FUNCS): Add setns.
9021 * config.in: Regenerate.
9022 * configure: Likewise.
9023 * nat/linux-namespaces.h: New file.
9024 * nat/linux-namespaces.c: Likewise.
9025 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
9026 (linux-namespaces.o): New rule.
9027 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
9028 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
9029 * config/arm/linux.mh (NATDEPFILES): Likewise.
9030 * config/i386/linux.mh (NATDEPFILES): Likewise.
9031 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9032 * config/ia64/linux.mh (NATDEPFILES): Likewise.
9033 * config/m32r/linux.mh (NATDEPFILES): Likewise.
9034 * config/m68k/linux.mh (NATDEPFILES): Likewise.
9035 * config/mips/linux.mh (NATDEPFILES): Likewise.
9036 * config/pa/linux.mh (NATDEPFILES): Likewise.
9037 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
9038 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
9039 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
9040 * config/s390/linux.mh (NATDEPFILES): Likewise.
9041 * config/sparc/linux.mh (NATDEPFILES): Likewise.
9042 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
9043 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
9044 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
9045
ca095836
GB
90462015-06-10 Gary Benson <gbenson@redhat.com>
9047
9048 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
9049 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
9050 (make_cleanup_close): Likewise.
9051 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
9052 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
9053 (make_cleanup_close): Likewise.
9054
5d9c55d3
JT
90552015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
9056
9057 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
9058 from SuspendThread().
9059
040ea00b
JT
90602015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
9061
9062 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
9063 from OutputDebugString.
9064
7d73c23c
WT
90652015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
9066 Mircea Gherzan <mircea.gherzan@intel.com>
9067
9068 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
9069 MPX_BT_MASK_32): New macros.
9070 (i386_mpx_set_bounds): New function that implements
9071 the command "set-mpx-bound".
9072 (i386_mpx_enabled): Helper function to test MPX availability.
9073 (i386_mpx_bd_base): Helper function to calculate the base directory
9074 address.
9075 (i386_mpx_get_bt_entry): Helper function to access a bound
9076 table entry.
9077 (i386_mpx_print_bounds): Effectively display bound information.
9078 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
9079 "show mpx".
9080 (_initialize_i386_tdep):
9081 Add "bound" to the commands "show mpx" and "set mpx" commands.
9082 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
9083 and "show mpx" commands.
9084 * NEWS: List new commands for MPX support.
9085
3ac2e371
GB
90862015-06-09 Gary Benson <gbenson@redhat.com>
9087
9088 * common/fileio.h (fileio_to_host_mode): New declaration.
9089 * common/fileio.c (fileio_to_host_mode): New Function.
9090 * inf-child.c (inf_child_fileio_open): Process mode argument
9091 with fileio_to_host_mode.
9092
ecef18c5
GB
90932015-06-09 Gary Benson <gbenson@redhat.com>
9094
9095 * common/fileio.c (fileio_mode_pack): Fix preprocessor
9096 conditional.
9097
e3dd7556
GB
90982015-06-05 Gary Benson <gbenson@redhat.com>
9099
9100 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
9101 * remote.c (remote_filesystem_is_local): ...here.
9102
5b74bf7d
YQ
91032015-06-04 Yao Qi <yao.qi@linaro.org>
9104
9105 * gdbarch.c: Regenerate it.
9106
7f361056
JK
91072015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9108
9109 * arch-utils.c (default_infcall_munmap): New.
9110 * arch-utils.h (default_infcall_munmap): New declaration.
9111 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
9112 (munmap_list_free, munmap_listp_free_cleanup): New.
9113 (struct setup_sections_data): Add field munmap_list_headp.
9114 (setup_sections): Call munmap_list_add.
9115 (compile_object_load): New variable munmap_list_head, initialize
9116 setup_sections_data.munmap_list_headp, return munmap_list_head.
9117 * compile/compile-object-load.h (struct munmap_list): New declaration.
9118 (struct compile_module): Add field munmap_list_head.
9119 (munmap_list_free): New declaration.
9120 * compile/compile-object-run.c (struct do_module_cleanup): Add field
9121 munmap_list_head.
9122 (do_module_cleanup): Call munmap_list_free.
9123 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
9124 * gdbarch.c: Regenerate.
9125 * gdbarch.h: Regenerate.
9126 * gdbarch.sh (infcall_munmap): New.
9127 * linux-tdep.c (linux_infcall_munmap): New.
9128 (linux_init_abi): Install it.
9129
3b462ec2
SM
91302015-06-02 Simon Marchi <simon.marchi@ericsson.com>
9131
9132 PR gdb/15564
9133 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
9134
8d683210
YQ
91352015-06-02 Yao Qi <yao.qi@linaro.org>
9136
9137 * i386-linux-nat.c: Include linux-nat.h.
9138
e0619de6
JK
91392015-06-01 Andreas Schwab <schwab@linux-m68k.org>
9140 Jan Kratochvil <jan.kratochvil@redhat.com>
9141
9142 PR symtab/18392
9143 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
9144 assertion.
9145 * dwarf2loc.c (chain_candidate): Likewise.
9146
bd16da51
YQ
91472015-06-01 Yao Qi <yao.qi@linaro.org>
9148
9149 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
9150 (store_vfp_regs): Use PTRACE_SETREGSET.
9151
df9d7ec9
YQ
91522015-06-01 Yao Qi <yao.qi@linaro.org>
9153
9154 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
9155 (fetch_fpregs): Likewise.
9156 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
9157 (store_fpregs): Likewise.
9158
10766686
YQ
91592015-06-01 Yao Qi <yao.qi@linaro.org>
9160
9161 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
9162 (fetch_regs): Likewise.
9163 (store_regs): Use PTRACE_SETREGSET.
9164 (store_register): Likewise.
9165
7efe48d1
YQ
91662015-06-01 Yao Qi <yao.qi@linaro.org>
9167
9168 * arm-linux-nat.c (arm_linux_read_description): Check whether
9169 kernel supports PTRACE_GETREGSET.
9170
433bbbf8
YQ
91712015-06-01 Yao Qi <yao.qi@linaro.org>
9172
9173 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
9174 * linux-nat.c: ... here.
9175 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
9176 to ...
9177 * linux-nat.h: ... here.
9178
ca9b78ce
YQ
91792015-06-01 Yao Qi <yao.qi@linaro.org>
9180
9181 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
9182 * i386-linux-nat.c: Likewise.
9183 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
9184 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
9185 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9186 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
9187 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
9188
99cee7b7
EZ
91892015-05-30 Eli Zaretskii <eliz@gnu.org>
9190
9191 * go32-nat.c (go32_xfer_memory): Fix the return value to be
9192 compatible to what read_child and write_child return. This
9193 unbreaks that DJGPP build of GDB which was broken since v7.7.
9194
2147f5bd
MG
91952015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
9196
9197 * MAINTAINERS (Write After Approval): Add Martin Galvan.
9198
c8f6c93c
RM
91992015-05-29 Roland McGrath <mcgrathr@google.com>
9200
9201 PR gdb/18464
9202 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
9203 rather than internal_error for an unrecognized value.
9204
8c6a948d
MF
92052015-05-29 Max Filippov <jcmvbkbc@gmail.com>
9206
9207 * xtensa-tdep.c (xtensa_pseudo_register_read)
9208 (xtensa_pseudo_register_write): Don't alias last pseudo register
9209 to a1.
9210
8dd06f7a
DB
92112015-05-28 Don Breazeal <donb@codesourcery.com>
9212
9213 * infrun.c (follow_fork_inferior): Ensure the use of
9214 process-style ptids (pid,0,0) in verbose/debug "Detaching"
9215 messages.
9216
a051152b
DE
92172015-05-28 Doug Evans <dje@google.com>
9218
9219 * dwarf2read.c (record_line_ftype): Remove, duplicate.
9220
a56cc1ce
YQ
92212015-05-28 Yao Qi <yao.qi@linaro.org>
9222
9223 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
9224 (arm_linux_fetch_inferior_registers): Use
9225 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
9226 (arm_linux_store_inferior_registers): Likewise.
9227 (arm_linux_read_description): Don't set
9228 arm_linux_has_wmmx_registers.
9229 * arm-tdep.c (arm_gdbarch_init): Set
9230 tdep->have_wmmx_registers according target descriptions.
9231 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
9232 field.
9233
330c6ca9
YQ
92342015-05-28 Yao Qi <yao.qi@linaro.org>
9235
9236 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
9237 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
9238 instead of arm_linux_vfp_register_count.
9239 (store_vfp_regs): Likewise.
9240 (arm_linux_fetch_inferior_registers): Likewise.
9241 (arm_linux_store_inferior_registers): Likewise.
9242 (arm_linux_read_description): Don't set
9243 arm_linux_vfp_register_count.
9244 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
9245 Adjust.
9246 * arm-tdep.c (arm_gdbarch_init): Add assert on
9247 vfp_register_count.
9248 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
9249 field to vfp_register_count. All users updated.
9250
d403db27
KH
92512015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
9252
9253 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
9254 ELFOSABI_GNU binaries.
9255
d9b3de22
DE
92562015-05-27 Doug Evans <dje@google.com>
9257
9258 * dwarf2read.c (lnp_state_machine): New typedef.
9259 (lnp_reader_state): New typedef.
9260 (dwarf_record_line_1): Renamed from dwarf_record_line.
9261 All callers updated.
9262 (dwarf_record_line): New function.
9263 (init_lnp_state_machine): New function.
9264 (check_line_address): Replace p_record_line parameter with state.
9265 All callers updated.
9266 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
9267 Update to record state in lnp_state_machine.
9268
924c2928
DE
92692015-05-27 Doug Evans <dje@google.com>
9270
9271 * dwarf2read.c (record_line_ftype): New typedef.
9272 (check_line_address): New function.
9273 (dwarf_decode_lines_1): Call it.
9274
27e0867f
DE
92752015-05-27 Doug Evans <dje@google.com>
9276
9277 * NEWS: Mention "set debug dwarf-line".
9278 * dwarf2read.c (dwarf_line_debug): New static global.
9279 (add_include_dir): Add debug dwarf-line support.
9280 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
9281 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
9282
4dcabcc2
DE
92832015-05-27 Doug Evans <dje@google.com>
9284
9285 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
9286 All callers updated.
9287 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
9288 * cp-support.h (cp_lookup_nested_symbol): Update.
9289
b2e2f908
DE
92902015-05-27 Doug Evans <dje@google.com>
9291
9292 PR symtab/18258
9293 * block.c (block_find_symbol): New function.
9294 (block_find_non_opaque_type): Ditto.
9295 (block_find_non_opaque_type_preferred): Ditto.
9296 * block.h (block_symbol_matcher_ftype): New typedef.
9297 (block_find_symbol): Declare.
9298 (block_find_non_opaque_type): Ditto.
9299 (block_find_non_opaque_type_preferred): Ditto.
9300 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
9301 * psymtab.c (psym_lookup_symbol): Ditto.
9302 * symtab.c (basic_lookup_transparent_type_1): New function.
9303 (basic_lookup_transparent_type): Call it.
9304
f62fce35
YQ
93052015-05-27 Yao Qi <yao.qi@linaro.org>
9306
9307 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
9308 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
9309
5d98d3cd
YQ
93102015-05-27 Yao Qi <yao.qi@linaro.org>
9311
9312 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
9313 before operator &&.
9314 (aarch64_record_load_store): Likewise.
9315
82c7be31
DE
93162015-05-26 Doug Evans <dje@google.com>
9317
9318 PR c++/18141, c++/18417.
9319 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
9320 a typedef.
9321
b4f54984
DE
93222015-05-26 Doug Evans <dje@google.com>
9323
9324 * NEWS: Add entries for command renamings.
9325 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
9326 All uses updated.
9327 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
9328 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
9329 All uses updated.
9330 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
9331 All callers updated. Fix spelling of DWARF in help text.
9332 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
9333 All uses updated.
9334 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
9335 All uses updated.
9336 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
9337 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
9338 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
9339 All uses updated.
9340 (show_dwarf_always_disassemble): Renamed from
9341 show_dwarf2_always_disassemble. All callers updated.
9342 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
9343 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
9344 "set/show dwarf max-cache-age". Rename
9345 "set/show dwarf2 always-disassemble" to
9346 "set/show dwarf always-disassemble". Rename
9347 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
9348 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
9349
4ea6efe9
DE
93502015-05-26 Doug Evans <dje@google.com>
9351
9352 PR python/18438
9353 * python/py-lazy-string.c (stpy_convert_to_value): Use
9354 gdbpy_gdb_memory_error not PyExc_MemoryError.
9355 (gdbpy_create_lazy_string_object): Ditto.
9356
b93fd21d
AB
93572015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
9358
9359 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
9360
55b40027
AB
93612015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
9362
9363 * tui/tui-regs.c (tui_reg_prev_command): New function.
9364 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
9365 * reggroups.c (reggroup_prev): New function.
9366 * reggroups.h (reggroup_prev): Add declaration. Update comment.
9367
99afc88b
OJ
93682015-05-26 Omair Javaid <omair.javaid@linaro.org>
9369 Yao Qi <yao.qi@linaro.org>
9370
9371 * aarch64-linux-tdep.c: Include linux-record.h and
9372 record-full.h.
9373 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
9374 (aarch64_syscall): New enum.
9375 (aarch64_canonicalize_syscall): New function.
9376 (aarch64_all_but_pc_registers_record): New function.
9377 (aarch64_linux_syscall_record): New function.
9378 (aarch64_linux_init_abi): Install AArch64 process record
9379 handler. Update to handle syscall recording.
9380 * aarch64-tdep.c: Include record.h and record-full.h.
9381 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
9382 (struct aarch64_mem_r): Define.
9383 (aarch64_record_result): New enum.
9384 (struct insn_decode_record): Define.
9385 (insn_decode_record): New typedef.
9386 (aarch64_record_data_proc_reg): New function.
9387 (aarch64_record_data_proc_imm): New function.
9388 (aarch64_record_branch_except_sys): New function.
9389 (aarch64_record_load_store): New function.
9390 (aarch64_record_data_proc_simd_fp): New function.
9391 (aarch64_record_asimd_load_store): New function.
9392 (aarch64_record_decode_insn_handler): New function.
9393 (deallocate_reg_mem): New function.
9394 (aarch64_process_record): New function.
9395 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
9396 New field.
9397 (aarch64_process_record): New extern declaration.
9398 * configure.tgt: Add linux-record.o to gdb_target_obs.
9399 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
9400
c16a3f52
OJ
94012015-05-26 Omair Javaid <omair.javaid@linaro.org>
9402
9403 * NEWS: Add a note on process record-replay support on aarch64*-linux*
9404 targets.
9405
c9cf6e20
MG
94062015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
9407
9408 * amd64-tdep.c: Replace in_function_epilogue_p with
9409 stack_frame_destroyed_p throughout.
9410 * arch-utils.c: Ditto.
9411 * arch-utils.h: Ditto.
9412 * arm-tdep.c: Ditto.
9413 * breakpoint.c: Ditto.
9414 * gdbarch.sh: Ditto.
9415 * hppa-tdep.c: Ditto.
9416 * i386-tdep.c: Ditto.
9417 * mips-tdep.c: Ditto.
9418 * nios2-tdep.c: Ditto.
9419 * rs6000-tdep.c: Ditto.
9420 * s390-linux-tdep.c: Ditto.
9421 * score-tdep.c: Ditto.
9422 * sh-tdep.c: Ditto.
9423 * sparc-tdep.c: Ditto.
9424 * sparc-tdep.h: Ditto.
9425 * sparc64-tdep.c: Ditto.
9426 * spu-tdep.c: Ditto.
9427 * tic6x-tdep.c: Ditto.
9428 * tilegx-tdep.c: Ditto.
9429 * xstormy16-tdep.c: Ditto.
9430 * gdbarch.c, gdbarch.h: Re-generated.
9431
a4ea0946
AB
94322015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9433
9434 * NEWS: Mention 'tui enable' and 'tui disable'.
9435 * tui/tui.c (tui_enable_command): New function.
9436 (tui_disable_command): New function.
9437 (_initialize_tui): New function.
9438
b75c69bb
AB
94392015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9440
9441 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
9442
c1b009ee
AB
94432015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9444
9445 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
9446 buf_ptr is freed.
9447
880d1e40
AB
94482015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9449
9450 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
9451 into ...
9452 (tui_set_layout_for_display_command): ...here, before calling
9453 tui_set_layout. Only set the layout if gdb has not already
9454 entered the TUI_FAILURE state.
9455
a0145030
AB
94562015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9457
9458 * tui/tui-layout.c (layout_completer): New function.
9459 (_initialize_tui_layout): Set completer on layout command.
9460
7bd0be3a
AB
94612015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9462
9463 * tui/tui-layout.c (tui_set_layout): Remove
9464 tui_register_display_type parameter. Remove all checking of this
9465 parameter, and reindent function. Update header comment.
9466 (tui_set_layout_for_display_command): Rename to...
9467 (tui_set_layout_by_name): ...this, and don't check for different
9468 register class types, don't pass a tui_register_display_type to
9469 tui_set_layout. Update header comment.
9470 (layout_names): Remove register set specific names.
9471 * tui/tui-layout.h (tui_set_layout): Remove
9472 tui_register_display_type parameter.
9473 * tui/tui.c (tui_rl_change_windows): Don't pass a
9474 tui_register_display_type to tui_set_layout.
9475 (tui_rl_delete_other_windows): Likewise.
9476 (tui_enable): Likewise.
9477 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
9478 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
9479 (TUI_GENERAL_REGS_NAME): Remove.
9480 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
9481 (TUI_SPECIAL_REGS_NAME): Remove.
9482 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
9483 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
9484 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
9485 (enum tui_register_display_type): Remove.
9486 (struct tui_layout_def): Remove regs_display_type and
9487 float_regs_display_type fields.
9488 (struct tui_data_info): Remove regs_display_type field.
9489 (tui_layout_command): Use new name for
9490 tui_set_layout_for_display_command.
9491 * tui/tui-data.c (layout_def): Don't initialise removed fields.
9492 (tui_clear_win_detail): Don't initialise removed fields of
9493 win_info.
9494 * tui/tui-regs.c (tui_show_registers): Use new name for
9495 tui_set_layout_for_display_command.
9496 * tui/tui.h (tui_set_layout_for_display_command): Rename
9497 declaration to...
9498 (tui_set_layout_by_name): ...this.
9499 * printcmd.c (display_command): Remove tui related layout call,
9500 and reindent.
9501
0b6e5e10
JB
95022015-05-20 Joel Brobecker <brobecker@adacore.com>
9503
9504 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
9505 (handle_inferior_event): New function.
9506
1da0522e
JB
95072015-05-20 Joel Brobecker <brobecker@adacore.com>
9508
9509 * ada-lang.c (to_fixed_array_type): Rename local variable
9510 typename into type_name.
9511
5fe75eec
JK
95122015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9513
9514 Fix ASAN crash for gdb.compile/compile.exp.
9515 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
9516
a4063588
JK
95172015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9518
9519 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
9520 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
9521 * compile/compile-object-load.c (setup_sections, compile_object_load):
9522 Likewise.
9523 * compile/compile.c (compile_to_object): Likewise.
9524
37442ce1
DE
95252015-05-16 Doug Evans <xdje42@gmail.com>
9526
9527 * NEWS: Mention support for unbuffered Guile memory ports.
9528 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
9529 (ioscm_lseek_address): Improve overflow calculation.
9530 (gdbscm_memory_port_fill_input): Add assert.
9531 (gdbscm_memory_port_write): Handle unbuffered ports.
9532 Handle large writes identical to Guile's fport_write.
9533 (gdbscm_memory_port_seek): Fix seeking past end check.
9534 (gdbscm_memory_port_close): Handle closing unbuffered port.
9535 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
9536 (ioscm_init_memory_port): Handle unbuffered ports.
9537 (ioscm_reinit_memory_port): Ditto.
9538 (ioscm_init_memory_port): Update size calculation.
9539 (gdbscm_open_memory): Support zero sized ports.
9540
d976bace
JK
95412015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9542
9543 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
9544 variable compiler warnings.
9545
4d18dfad
JK
95462015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9547
9548 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
9549
36de76f9
JK
95502015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9551 Phil Muldoon <pmuldoon@redhat.com>
9552
9553 * NEWS (Changes since GDB 7.9): Add compile print.
9554 * compile/compile-c-support.c (add_code_header, add_code_footer)
9555 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
9556 COMPILE_I_PRINT_VALUE_SCOPE.
9557 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
9558 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
9559 New.
9560 * compile/compile-object-load.c: Include block.h.
9561 (get_out_value_type): New function.
9562 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9563 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
9564 OUT_VALUE_TYPE.
9565 * compile/compile-object-load.h (struct compile_module): Add fields
9566 out_value_addr and out_value_type.
9567 * compile/compile-object-run.c: Include valprint.h and compile.h.
9568 (struct do_module_cleanup): Add fields out_value_addr and
9569 out_value_type.
9570 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
9571 COMPILE_I_PRINT_VALUE_SCOPE.
9572 (compile_object_run): Propagate out_value_addr and out_value_type.
9573 Pass OUT_VALUE_ADDR.
9574 * compile/compile.c: Include valprint.h.
9575 (compile_print_value, compile_print_command): New functions.
9576 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
9577 (_initialize_compile): Update compile code help text. Install
9578 compile_print_command.
9579 * compile/compile.h (compile_print_value): New prototype.
9580 * defs.h (enum compile_i_scope_types): Add
9581 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
9582
83d3415e
JK
95832015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9584
9585 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
9586 Rely on its parameter count.
9587 (compile_object_load): Replace lookup_minimal_symbol_text by
9588 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
9589 return value.
9590 * compile/compile-object-load.h (struct compile_module): Replace
9591 func_addr by func_sym.
9592 * compile/compile-object-run.c: Include block.h.
9593 (compile_object_run): Reset module variable after it is freed. Use
9594 FUNC_SYM instead of FUNC_ADDR. Rely on it.
9595
3a9558c4
JK
95962015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9597
9598 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
9599 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
9600 (c_compute_program): Call generate_register_struct after typedefs.
9601 * compile/compile-loc2c.c (push, pushf_register_address)
9602 (pushf_register): Cast to GCC_UINTPTR.
9603 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
9604 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
9605 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
9606 * compile/compile.c (_initialize_compile): Enable warnings for
9607 COMPILE_ARGS.
9608
5c65b58a
JK
96092015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9610
9611 * cli/cli-script.c (execute_control_command): Update
9612 eval_compile_command caller.
9613 * compile/compile-object-load.c (compile_object_load): Add parameters
9614 scope and scope_data. Set them.
9615 * compile/compile-object-load.h (struct compile_module): Add fields
9616 scope and scope_data.
9617 (compile_object_load): Add parameters scope and scope_data.
9618 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
9619 scope and scope_data.
9620 (compile_object_run): Propagate the fields scope and scope_data.
9621 * compile/compile.c (compile_file_command, compile_code_command):
9622 Update eval_compile_command callers.
9623 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
9624 * compile/compile.h (eval_compile_command): Add parameter scope_data.
9625 * defs.h (struct command_line): Add field scope_data.
9626
1c88ceb1
JK
96272015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9628
9629 * printcmd.c (struct format_data): Move it to valprint.h.
9630 (print_command_parse_format, print_value): New functions from ...
9631 (print_command_1): ... here. Call them.
9632 * valprint.h (struct format_data): Move it here from printcmd.c.
9633 (print_command_parse_format, print_value): New declarations.
9634
0b738f27
JK
96352015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9636
9637 * compile/compile-object-load.c (compile_object_load): Add
9638 COMPILE_DEBUG message.
9639
aa715135
JG
96402015-05-15 Jerome Guitton <guitton@adacore.com>
9641
9642 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
9643 index to get element instead of enum value.
9644 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
9645 of index to compute length, but enum values to compute bounds.
9646 (ada_array_length): Use enum position of index instead of enum value.
9647 (pos_atr): Move position computation to...
9648 (ada_evaluate_subexp): Use enum values to compute bounds.
9649 * gdbtypes.c (discrete_position): ...this new function.
9650 * gdbtypes.h (discrete_position): New function declaration.
9651 * valprint.c (val_print_array_elements): Call discrete_position
9652 to handle array indexed by non-contiguous enumeration types.
9653
931e5bc3
JG
96542015-05-15 Jerome Guitton <guitton@adacore.com>
9655
9656 * ada-lang.c (find_parallel_type_by_descriptive_type):
9657 Go through typedefs during lookup.
9658 (to_fixed_array_type): Add support for non-bit packed arrays
9659 as variable-length fields.
9660
4e63d0ac
PA
96612015-05-15 Pedro Alves <palves@redhat.com>
9662 Simon Marchi <simon.marchi@ericsson.com>
9663
9664 * event-loop.c (gdb_notifier) <next_file_handler,
9665 next_poll_fds_index>: New fields.
9666 (get_next_file_handler_to_handle_and_advance): New function.
9667 (delete_file_handler): If deleting the next file handler to
9668 handle, advance to the next file handler.
9669 (gdb_wait_for_event): Bail early if no event fired. Poll file
9670 handlers in round-robin fashion.
9671
52e48b36
PA
96722015-05-15 Pedro Alves <palves@redhat.com>
9673
9674 * linux-tdep.c (linux_find_memory_regions_full): Rename local
9675 'private' to 'priv'.
9676
2465e12e
PA
96772015-05-15 Pedro Alves <palves@redhat.com>
9678
9679 * nat/linux-nat.h: Include "target/waitstatus.h".
9680
13fa0398
YZ
96812015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
9682
9683 * python/py-unwind.c (struct reg_info): Move out of ...
9684 (struct cached_frame_info): ... this scope.
9685 (pending_frame_object_type, unwind_info_object_type): Make extern.
9686
9cd4d857
JB
96872015-05-15 Joel Brobecker <brobecker@adacore.com>
9688
9689 * ada-lang.c (ada_value_primitive_packed_val): Make sure
9690 accumSize is never negative.
9691
e3555239
PP
96922015-05-14 Patrick Palka <patrick@parcs.ath.cx>
9693
9694 * tui/tui-command.c: Remove include of <ctype.h>.
9695 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
9696
08a76f8a
MG
96972015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
9698
9699 * dwarf2read.c (die_needs_namespace): Return 1 for
9700 DW_TAG_inlined_subroutine.
9701
bd49952b
JK
97022015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9703
9704 * regcache.c (regcache_cpy_no_passthrough): New declaration.
9705 (regcache_cpy_no_passthrough): Make it static, add function comment.
9706 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
9707 (regcache_cpy_no_passthrough): Remove declaration.
9708
46c03469
JK
97092015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9710
9711 * gdbthread.h (struct thread_control_state): Update comment for
9712 proceed_to_finish.
9713 * infcall.c (run_inferior_call): Update comment about
9714 proceed_to_finish.
9715 * infcmd.c (get_return_value): Update comment about stop_registers.
9716 (finish_forward): Update comment about proceed_to_finish.
9717 * infrun.c (stop_registers): Remove.
9718 (clear_proceed_status, normal_stop): Remove stop_registers handling.
9719 * infrun.h (stop_registers): Remove.
9720
8a6c4031
JK
97212015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9722
9723 * infcall.c (struct dummy_frame_context_saver)
9724 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
9725 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9726 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9727 New.
9728 (call_function_by_hand_dummy): Move discard_cleanups of
9729 inf_status_cleanup before dummy_frame_push. Call
9730 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
9731 Use dummy_frame_context_saver_get_regs instead of stop_registers.
9732 * infcall.h (struct dummy_frame_context_saver)
9733 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
9734 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
9735 New declarations.
9736 * infcmd.c: Include infcall.h.
9737 (get_return_value): Add parameter ctx_saver, use it instead of
9738 stop_registers.
9739 (print_return_value): Add parameter ctx_saver, pass it.
9740 (struct finish_command_continuation_args): Add field ctx_saver.
9741 (finish_command_continuation): Update print_return_value caller.
9742 (finish_command_continuation_free_arg): Free also ctx_saver.
9743 (finish_forward): Call dummy_frame_context_saver_setup.
9744 * inferior.h (struct dummy_frame_context_saver): New declaration.
9745 (get_return_value): Add parameter ctx_saver.
9746 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
9747 get_return_value caller.
9748
10989690
JK
97492015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9750
9751 * dummy-frame.c (struct dummy_frame_dtor_list): New.
9752 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
9753 (remove_dummy_frame): Process dtor_list.
9754 (pop_dummy_frame): Process dtor_list.
9755 (register_dummy_frame_dtor): Maintain dtor_list.
9756 (find_dummy_frame_dtor): Handle dtor_list.
9757 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
9758 Update comments.
9759
5e970501
JK
97602015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9761
9762 * compile/compile-object-run.c (do_module_cleanup): Add parameter
9763 registers_valid.
9764 (compile_object_run): Update do_module_cleanup caller.
9765 * dummy-frame.c: Include infcall.h.
9766 (struct dummy_frame): Update dtor comment.
9767 (remove_dummy_frame): Call dtor.
9768 (pop_dummy_frame): Update dtor caller.
9769 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
9770 registers_valid.
9771
1c4eb778
JB
97722015-05-13 Joel Brobecker <brobecker@adacore.com>
9773
9774 GDB 7.9.1 released.
9775
f5f85ab9
JB
97762015-05-13 Joel Brobecker <brobecker@adacore.com>
9777
9778 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
9779 Xmethods now being able to specify a result type to that new
9780 sectioin.
9781
242cd84c
PP
97822015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9783
9784 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
9785 first before resizing the window.
e3555239 9786 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
9787
97882015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
9789
9790 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
9791 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
9792 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
9793 dummy_dtor parameter.
9794 * infcall.h: Include dummy-frame.h.
9795 (call_function_by_hand_dummy_dtor_ftype): Remove.
9796 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
9797 parameter.
9798
ebfd00d2
PP
97992015-05-13 Patrick Palka <patrick@parcs.ath.cx>
9800
9801 PR gdb/17820
9802 * top.c (history_size_setshow_var): Change type to signed.
9803 Initialize to -2. Update documentation.
9804 (set_readline_history_size): Define.
9805 (set_history_size_command): Use it. Remove logic for handling
9806 out-of-range sizes.
9807 (init_history): Use set_readline_history_size(). Test for a
9808 value of -2 instead of 0 when determining whether to set a
9809 default history size.
9810 (init_main): Decode the argument of the "size" command as a
9811 zuinteger_unlimited.
9812
83769d0b
DE
98132015-05-12 Doug Evans <dje@google.com>
9814
9815 * dwarf2read.c (struct file_entry): Tweak comments.
9816 (get_debug_line_section): Tweak comments.
9817
0d71eef5
DB
98182015-05-12 Don Breazeal <donb@codesourcery.com>
9819
9820 * NEWS: Announce fork support in the RSP and support
9821 for fork debugging in extended mode.
9822
cbb8991c
DB
98232015-05-12 Don Breazeal <donb@codesourcery.com>
9824
9825 * remote.c (remote_insert_fork_catchpoint): New function.
9826 (remote_remove_fork_catchpoint): New function.
9827 (remote_insert_vfork_catchpoint): New function.
9828 (remote_remove_vfork_catchpoint): New function.
9829 (pending_fork_parent_callback): New function.
9830 (remove_new_fork_child): New function.
9831 (remote_update_thread_list): Call remote_notif_get_pending_events
9832 and remove_new_fork_child.
9833 (extended_remote_kill): Kill fork child when killing the
9834 parent before follow_fork completes.
9835 (init_extended_remote_ops): Initialize target vector with
9836 new fork catchpoint functions.
9837
c269dbdb
DB
98382015-05-12 Don Breazeal <donb@codesourcery.com>
9839
9840 * remote.c (remove_vfork_event_p): New function.
9841 (remote_follow_fork): Add vfork event type to event checking.
9842 (remote_parse_stop_reply): New stop reasons "vfork" and
9843 "vforkdone" for RSP 'T' Stop Reply Packet.
9844
de0d863e
DB
98452015-05-12 Don Breazeal <donb@codesourcery.com>
9846
9847 * linux-nat.c (linux_nat_ptrace_options): New function.
9848 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
9849 Call linux_nat_ptrace_options and use different argument to
9850 linux_enable_event_reporting.
9851 (_initialize_linux_nat): Delete call to
9852 linux_ptrace_set_additional_flags.
c8f6c93c 9853 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
9854 supported_ptrace_options.
9855 (additional_flags): Delete variable.
9856 (linux_check_ptrace_features): Use supported_ptrace_options.
9857 (linux_test_for_tracesysgood, linux_test_for_tracefork):
9858 Likewise, and remove additional_flags check.
9859 (linux_enable_event_reporting): Change 'attached' argument to
9860 'options'. Use supported_ptrace_options.
c8f6c93c 9861 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
9862 supported_ptrace_options.
9863 (linux_ptrace_set_additional_flags): Delete function.
9864 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
9865 Delete function prototype.
9866 * remote.c (remote_fork_event_p): New function.
9867 (remote_detach_pid): New function.
9868 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
9869 if doing detach-on-fork.
9870 (remote_follow_fork): New function.
9871 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
9872 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
9873 (init_extended_remote_ops): Initialize to_follow_fork.
9874
89245bc0
DB
98752015-05-12 Don Breazeal <donb@codesourcery.com>
9876
9877 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
9878 from static to extern.
9879 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
9880 * remote.c (anonymous enum): <PACKET_fork_event_feature,
9881 * PACKET_vfork_event_feature>: New enumeration constants.
9882 (remote_protocol_features): Add table entries for new packets.
9883 (remote_query_supported): Add new feature queries to qSupported
9884 packet.
9885
835205d0
GB
98862015-05-12 Gary Benson <gbenson@redhat.com>
9887
9888 * remote.c (remote_add_inferior): Call exec_file_locate_attach
9889 for fake PIDs as well as real ones.
9890 (remote_pid_to_exec_file): Send empty annex if PID is fake.
9891
4c082a81
SC
98922015-05-09 Siva Chandra Reddy <sivachandra@google.com>
9893
9894 * NEWS (Python Scripting): Mention the new gdb.Value methods.
9895 * python/py-value.c (valpy_reference_value): New function.
9896 (valpy_const_value): Likewise.
9897 (value_object_methods): Add new methods.
9898 * value.c (make_cv_value): New function.
9899 * value.h (make_cv_value): Declare.
9900
afa6c9ab
SL
99012015-05-08 Yao Qi <yao@codesourcery.com>
9902 Sandra Loosemore <sandra@codesourcery.com>
9903
9904 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
9905 to 'lh->include_dirs' before accessing to it.
9906 (psymtab_include_file_name): Likewise.
9907 (dwarf_decode_lines_1): Likewise.
9908 (dwarf_decode_lines): Likewise.
9909 (file_file_name): Likewise.
9910
35d54293
SL
99112015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9912
9913 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
9914 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
9915 (nios2_linux_rt_sigreturn_init): Adjust base address of
9916 register save area.
9917
b73c49b7
SL
99182015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9919
9920 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
9921 "trap 31" as the breakpoint instruction on all targets.
9922
dd9f02a0
JK
99232015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9924
9925 * infcmd.c (print_return_value): Remove unused declaration.
9926
6ad395a7
JB
99272015-05-08 Joel Brobecker <brobecker@adacore.com>
9928
9929 * dwarf2read.c (attr_to_dynamic_prop)
9930 <DW_AT_data_member_location>: Use read_type_die isntead of
9931 get_die_type.
9932
8344af1e
JB
99332015-05-08 Joel Brobecker <brobecker@adacore.com>
9934
9935 * ada-lang.c (ada_convert_actual): Add handling of formals
9936 passed inside an aligner type.
9937
80b0912b
JB
99382015-05-08 Joel Brobecker <brobecker@adacore.com>
9939
9940 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
9941
df2eb078
SC
99422015-05-08 Siva Chandra Reddy <sivachandra@google.com>
9943
9944 PR python/18291
9945 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
9946 Print xmethod matcher status.
9947
2492f0d0
AA
99482015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
9949
9950 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
9951 register in the regcache when treating the PSWM register, and vice
9952 versa.
9953
1c56a84d
GB
99542015-05-07 Gary Benson <gbenson@redhat.com>
9955
9956 * linux-thread-db.c (struct thread_db_info)
9957 <td_ta_map_id2thr_p>: Remove field.
9958 (try_thread_db_load_1): Remove initialization for the above.
9959
74850322
GB
99602015-05-07 Gary Benson <gbenson@redhat.com>
9961
9962 * linux-thread-db.c (struct thread_db_info)
9963 <td_thr_validate_p>: Remove field.
9964 (try_thread_db_load_1): Remove initialization for the above.
9965
e26efa40
JK
99662015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9967
9968 * compile/compile-object-load.c (compile_object_load): Support
9969 mst_text_gnu_ifunc.
9970
851c9091
JK
99712015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9972
9973 * compile/compile.c (compile_to_object): Make the cmd_string parameter
9974 const. Use new variables for the const compatibility.
9975 (eval_compile_command): Make the cmd_string parameter const.
9976 * compile/compile.h (eval_compile_command): Make the cmd_string
9977 parameter const.
9978
f218b647
JB
99792015-05-06 Joel Brobecker <brobecker@adacore.com>
9980
9981 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
9982 comment.
9983 * top.c (deprecated_init_ui_hook): Delete.
9984 (gdb_init): Remove handling of deprecated_init_ui_hook.
9985 * interps.c (clear_interpreter_hooks): Remove handling of
9986 deprecated_init_ui_hook.
9987 * main.c (captured_main): Update comment.
9988
b30a0bc3
JB
99892015-05-06 Joel Brobecker <brobecker@adacore.com>
9990
9991 * solib.c (_initialize_solib): Add "info dll" alias creation.
9992 * windows-nat.c (set_windows_aliases): Delete.
9993 (_initialize_windows_nat): Remove deprecated_init_ui_hook
9994 assignment.
9995 * NEWS: Add news entry about "info dll" now being available
9996 on all platforms.
9997
7c512744
JB
99982015-05-05 Joel Brobecker <brobecker@adacore.com>
9999
10000 * ada-lang.c (value_assign_to_component): Reformat and improve
10001 documentation. Remove all trailing spaces.
10002
0fa7fe50
JB
100032015-05-05 Joel Brobecker <brobecker@adacore.com>
10004
10005 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
10006 Stop counting inlined frames as soon as an out-of-line function
10007 is found.
10008
3ea89b92
PMR
100092014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
10010
10011 * dwarf2read.c (inherit_abstract_dies): Skip
10012 DW_TAG_GNU_call_site dies while inheriting children of an
10013 abstract DIE into a scope.
10014 (read_lexical_block_scope): Inherit abstract DIE's for
10015 lexical scopes.
10016
2478d075
JB
100172015-05-05 Joel Brobecker <brobecker@adacore.com>
10018
10019 * ada-valprint.c (val_print_packed_array_elements): Delete
10020 variable "len". Add a type-length check when comparing two
10021 consecutive elements of the array. Use the element's actual
10022 length in call to value_contents_eq.
10023 * ada-lang.c (ada_value_primitive_packed_val): Always return
10024 a value whose type has been resolved.
10025
fc958966
JB
100262015-05-05 Joel Brobecker <brobecker@adacore.com>
10027
10028 * ada-lang.c (ada_value_primitive_packed_val): Recompute
10029 BIT_SIZE and LEN if the size of the resolved type is smaller
10030 than BIT_SIZE * HOST_CHAR_BIT.
10031
ca34b84f
JB
100322015-05-05 Joel Brobecker <brobecker@adacore.com>
10033
10034 * ada-lang.c (ada_value_primitive_packed_val): Use a more
10035 correct address in call to value_at. Adjust call to
10036 value_address accordingly.
10037
62c67f3c
JB
100382015-05-05 Joel Brobecker <brobecker@adacore.com>
10039
10040 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
10041 to print it.
10042
c3345124
JB
100432015-05-05 Joel Brobecker <brobecker@adacore.com>
10044
10045 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
10046 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
10047 pinfo->valaddr.
10048 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
10049 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
10050 (resolve_dynamic_type_internal): Set pinfo.valaddr.
10051 Add handling of addr_stack->valaddr.
10052 (resolve_dynamic_type): Add "valaddr" parameter.
10053 Set pinfo.valaddr field.
10054 * ada-lang.c (ada_discrete_type_high_bound): Update call to
10055 resolve_dynamic_type.
10056 (ada_discrete_type_low_bound): Likewise.
10057 * findvar.c (default_read_var_value): Likewise.
10058 * value.c (value_from_contents_and_address): Likewise.
10059
75ea5859
JB
100602015-05-05 Joel Brobecker <brobecker@adacore.com>
10061
10062 * gdbtypes.c (resolve_dynamic_array): Use
10063 create_array_type_with_stride instead of create_array_type.
10064
0952813b
DD
100652015-04-30 DJ Delorie <dj@redhat.com>
10066
10067 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
10068 rl78_decode_opcode
10069
2ce1cdbf
DE
100702015-04-29 Doug Evans <dje@google.com>
10071
10072 PR python/18285
10073 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
10074 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
10075 EVAL_AVOID_SIDE_EFFECTS for xmethods.
10076 * extension-priv.h (struct extension_language_ops)
10077 <get_xmethod_result_type>: New member.
10078 * extension.c (get_xmethod_result_type): New function.
10079 * extension.h (get_xmethod_result_type): Declare.
10080 * python/py-xmethods.c (get_result_type_method_name): New static
10081 global.
10082 (py_get_result_type_method_name): Ditto.
10083 (gdbpy_get_xmethod_result_type): New function.
10084 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
10085 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
10086 * python/python.c (python_extension_ops): Add
10087 gdbpy_get_xmethod_result_type.
10088 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
10089 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
10090 xmethods.
10091 (value_x_unop): Ditto.
10092 * value.c (result_type_of_xmethod): New function.
10093 * value.h (result_type_of_xmethod): Declare.
10094
998d2a3e
GB
100952015-04-29 Gary Benson <gbenson@redhat.com>
10096
10097 * solib.c (solib_find_1): Allow fd argument to be NULL.
10098 (exec_file_find): Update comment.
10099 (solib_find): Likewise.
10100 * exec.c (exec_file_locate_attach): Use NULL as fd
10101 argument to exec_file_find to avoid having to close
10102 the opened file.
10103 * infrun.c (follow_exec): Likewise.
10104
34f5f757
DE
101052015-04-28 Doug Evans <dje@google.com>
10106
10107 PR python/18299
10108 * python/lib/gdb/printing.py (register_pretty_printer): Handle
10109 name or __name__ attributes. Handle gdb module as first argument.
10110
69b4374a
DE
101112015-04-28 Doug Evans <dje@google.com>
10112
10113 PR python/18089
10114 * python/py-prettyprint.c (print_children): Verify result of children
10115 iterator. Provide better error message.
10116 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
10117 * python/python.c (gdbpy_print_python_errors_p): New function.
10118
5e7cf078
DE
101192015-04-28 Doug Evans <dje@google.com>
10120
10121 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
10122
59fb7612
SS
101232015-04-28 Sasha Smundak <asmundak@google.com>
10124
10125 * NEWS: Mention gdb.Type.optimized_out method.
10126 * python/py-type.c (typy_optimized_out): New function.
10127
cea6e4f1
JB
101282015-04-28 John Baldwin <jhb@FreeBSD.org>
10129
10130 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10131
24b73f8e
PP
101322015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10133
10134 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
10135 (initialize_utils): Move call of init_page_info() to ...
10136 * top.c (gdb_init): ... here.
10137
a88d0bb3
PP
101382015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10139
10140 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
10141 (tui_sigwinch_handler): Still update our idea of
10142 the terminal's width and height even when TUI is not active.
10143
d6e5e7f7
PP
101442015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10145
10146 * utils.h (set_screen_width_and_height): Declare.
10147 * utils.c (set_screen_width_and_height): Define.
10148 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
10149
ff862be4
GB
101502015-04-28 Gary Benson <gbenson@redhat.com>
10151
10152 * infrun.c (solist.h): New include.
10153 (follow_exec): Use exec_file_find to prefix execd_pathname
10154 with gdb_sysroot.
10155
2eb639cb
PP
101562015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10157
10158 * tui/tui-source.c (tui_set_source_content): Avoid calling
10159 strcpy() when offset is 0.
10160
97206799
PP
101612015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10162
10163 PR gdb/18155
10164 * tui/tui-data.c (tui_free_window): Don't free the locator
10165 window when passed an SRC_WIN or a DISASSEM_WIN.
10166
63ed8182
PP
101672015-04-28 Patrick Palka <patrick@parcs.ath.cx>
10168
10169 * tui/tui-data.h (struct tui_win_element): Forward-declare.
10170 (tui_win_content): Move declaration.
10171 (struct tui_gen_win_info): Give 'content' field the
10172 type tui_win_content.
10173 * tui/tui-data.c (init_content_element): Remove redundant and
10174 erroneous casts.
10175 (tui_add_content_elements): Remove erroneous cast.
10176 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
10177 casts.
10178 (tui_get_begin_asm_address): Likewise.
10179 * tui/tui-regs.c (tui_show_registers): Likewise.
10180 (tui_show_register_group): Likewise.
10181 (tui_display_registers_from): Likewise.
10182 (tui_check_register_values): Likewise.
10183 * tui/tui-source.c (tui_set_source_content): Likewise.
10184 (tui_set_source_content_nil): Likewise.
10185 (tui_source_is_displayed): Likewise.
10186 * tui/tui-stack.c (tui_show_locator_content): Likewise.
10187 (tui_set_locator_fullname): Likewise.
10188 (tui_set_locator_info): Likewise.
10189 (tui_show_frame_info): Likewise.
10190 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
10191 (tui_show_source_line): Likewise.
10192 (tui_horizontal_source_scroll): Likewise.
10193 (tui_update_breakpoint_info): Likewise.
10194 (tui_set_exec_info_content): Likewise.
10195 (tui_show_exec_info_content): Likewise.
10196 (tui_alloc_source_buffer): Likewise.
10197 (tui_line_is_displayed): Likewise.
10198 (tui_addr_is_displayed): Likewise.
10199
d2b41ca0
JB
102002015-04-27 John Baldwin <jhb@FreeBSD.org>
10201
10202 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
10203 event if PL_FLAG_EXEC is set.
10204 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
10205 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
10206 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
10207 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
10208 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
10209
e58e05d6
JB
102102015-04-27 John Baldwin <jhb@FreeBSD.org>
10211
10212 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
10213 [TDP_RFPPWAIT] New variable fbsd_pending_children.
10214 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
10215 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
10216 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
10217 [PT_LWPINFO] (fbsd_wait): New function.
10218 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
10219 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
10220 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
10221 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
10222 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
10223 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
10224 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
10225 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
10226 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
10227 "fbsd_wait".
10228 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
10229 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
10230 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
10231 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
10232 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
10233 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
10234 Set "to_post_attach" to "fbsd_post_attach".
10235
8f60fe01
JB
102362015-04-27 John Baldwin <jhb@FreeBSD.org>
10237
10238 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
10239 (fbsd_find_memory_regions): Mark static.
10240 (fbsd_nat_add_target): New function.
10241 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
10242 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
10243 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
10244 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
10245 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
10246 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
10247
5fbae7d1
GB
102482015-04-27 Gary Benson <gbenson@redhat.com>
10249
10250 * objfiles.c (allocate_objfile): Do not attempt to expand name
10251 if name is a "target:" filename.
10252 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
10253 to load auto-load scripts for objfiles with "target:" filenames.
10254
417c80f9
AA
102552015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10256
10257 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
10258 (enum s390_vector_abi_kind): New enum.
10259 (struct gdbarch_tdep)<vector_abi>: New field.
10260 (s390_effective_inner_type): Add parameter min_size. Stop
10261 unwrapping if the inner type is smaller than min_size.
10262 (s390_function_arg_float): Adjust call to
10263 s390_effective_inner_type.
10264 (s390_function_arg_vector): New function.
10265 (s390_function_arg_integer): Adjust comment.
10266 (struct s390_arg_state)<vr>: New field.
10267 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
10268 arguments according to vector ABI when appropriate.
10269 (s390_push_dummy_call): Initialize the argument state's field
10270 'vr'. Adjust calls to s390_handle_arg.
10271 (s390_register_return_value): Handle vector return values.
10272 (s390_return_value): Apply the "register" return value convention
10273 to a vector when appropriate.
10274 (s390_gdbarch_init): Initialize tdep->vector_abi.
10275 * NEWS: Announce S390 vector ABI support.
10276
4e65a17e
AA
102772015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10278
10279 * s390-linux-tdep.c (s390_return_value_convention): Remove
10280 function. Inline its logic...
10281 (s390_return_value): ...here. Instead, move the handling of the
10282 "register" return value convention...
10283 (s390_register_return_value): ...here. New function.
10284
80f75320
AA
102852015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10286
10287 * s390-linux-tdep.c
10288 (is_float_singleton): Remove function. Move the "singleton" part
10289 of the logic...
10290 (s390_effective_inner_type): ...here. New function.
10291 (is_float_like): Remove function. Inline its logic...
10292 (s390_function_arg_float): ...here.
10293 (is_pointer_like, is_integer_like, is_struct_like): Remove
10294 functions. Inline their logic...
10295 (s390_function_arg_integer): ...here.
10296 (s390_function_arg_pass_by_reference): Remove function.
10297 (extend_simple_arg): Remove function.
10298 (alignment_of): Remove function.
10299 (struct s390_arg_state): New structure.
10300 (s390_handle_arg): New function.
10301 (s390_push_dummy_call): Move parameter placement logic to the new
10302 function s390_handle_arg. Call it for calculating the stack area
10303 sizes first, and again for actually writing the parameters.
10304
6dbc9c04
AA
103052015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10306
10307 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
10308 false if the argument is zero.
10309
9e195661
PMR
103102015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
10311
10312 * ada-lang.c (template_to_static_fixed_type): Return input type
10313 when it is already fixed. Cache the input type itself when not
10314 creating a static fixed copy. Make it explicit that we never
10315 molestate the input type.
10316 * gdbtypes.c (resolve_dynamic_struct): Reset the
10317 TYPE_TARGET_TYPE field for resolved copies.
10318
460efde1
JB
103192015-04-27 Joel Brobecker <brobecker@adacore.com>
10320
10321 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
10322 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
10323 (template_to_static_fixed_type): Call ada_check_typedef only
10324 when necessary.
10325
6faec16b
AB
103262015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
10327
10328 * cli/cli-dump.c (srec_dump_command): Add internationalization
10329 mark ups.
10330 (ihex_dump_command): Likewise.
10331 (tekhex_dump_command): Likewise.
10332 (binary_dump_command): Likewise.
10333 (binary_append_command): Likewise.
10334
cf75d6c3
AB
103352015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
10336
10337 * cli/cli-dump.c (verilog_cmdlist): New variable.
10338 (dump_verilog_memory): New function.
10339 (dump_verilog_value): New function.
10340 (verilog_dump_command): New function.
10341 (_initialize_cli_dump): Add new commands to support verilog dump
10342 format.
10343 * NEWS: Add entry for "dump verilog".
10344
8cd00c59
PMR
103452015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
10346
10347 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
10348 descriptive type when there is none.
10349
8900d71e
PP
103502015-04-23 Patrick Palka <patrick@parcs.ath.cx>
10351
10352 * tui/tui-win.c (tui_async_resize_screen): Call
10353 rl_resize_terminal().
10354
f16eab5f
JT
103552015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
10356
10357 * windows-nat.c (handle_output_debug_string): Don't change
10358 current_event.dwThreadId.
10359 (get_windows_debug_event): Use thread_id, rather than relying on
10360 current_event.dwThreadId being changed.
10361
68ffc902
JT
103622015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
10363
10364 * windows-nat.c (windows_continue): Report an error if
10365 ContinueDebugEvent() fails.
10366
23942819
JT
103672015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10368
10369 * windows-nat.c (windows_resume): Fix misspelling in debug output.
10370
e6ad66bd
JT
103712015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10372
10373 * windows-nat.c (get_windows_debug_event): Replace retval with
10374 thread_id throughout. Update stale comment.
10375
776704b9
JT
103762015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
10377
10378 * windows-nat.c (get_windows_debug_event): Don't use ternary
10379 conditional operator.
10380
8aae4344
PM
103812015-04-21 Pierre Muller <muller@sourceware.org>
10382
10383 PR pascal/17815
10384 p-exp.y (yylex): Reorganize code to return the matched pattern
10385 for a field of this.
10386
819843c7
GB
103872015-04-21 Gary Benson <gbenson@redhat.com>
10388
10389 * common/fileio.h (fileio_to_host_openflags): New declaration.
10390 * common/fileio.c (fcntl.h): New include.
10391 (fileio_to_host_openflags): New function, factored out from...
10392 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
10393 Single use updated.
10394
0bca7f99
KB
103952015-04-21 Kevin Buettner <kevinb@redhat.com>
10396
10397 * rl78-tdep.c (RL78_SP_ADDR): Define.
10398 (opc_reg_to_gdb_regnum): New static function.
10399 (rl78_analyze_prologue): Recognize instructions forming slightly
10400 more interesting prologues.
10401
e771e4be
PMR
104022015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
10403
10404 Revert:
10405 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10406 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10407 TYPE_CODE_REF types so that they are not considered as dynamic
10408 depending on the referenced type.
10409 (resolve_dynamic_type_internal): Likewise.
10410
ee715b5a
PMR
104112015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
10412
10413 Revert:
10414 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10415 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10416 "top_level" parameter.
10417 (resolve_dynamic_type_internal): Remove the unused "top_level"
10418 parameter. Update call to is_dynamic_type_internal.
10419 (is_dynamic_type): Update call to is_dynamic_type_internal.
10420 (resolve_dynamic_range): Update call to
10421 resolve_dynamic_type_internal.
10422 (resolve_dynamic_union): Likewise.
10423 (resolve_dynamic_struct): Likewise.
10424 (resolve_dynamic_type): Likewise.
10425
e31d7699
GKB
104262015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
10427
10428 * breakpoint.c (update_dprintf_command_list): Remove duplicated
10429 xmalloc.
10430
d214e5e7
TS
104312015-04-20 Thomas Schwinge <thomas@codesourcery.com>
10432
110f9112
TS
10433 * reply_mig_hack.awk: Robustify parsing.
10434
d214e5e7
TS
10435 * reply_mig_hack.awk: Don't bother to declare an intermediate
10436 function pointer variable.
10437
8f61baf8
DE
104382015-04-17 Doug Evans <dje@google.com>
10439
10440 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
10441 to "exec_displacement" to avoid confusion with inner use of the name.
10442
dbbf180a
YQ
104432015-04-17 Pedro Alves <palves@redhat.com>
10444
10445 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
10446 if HW point of TYPE isn't supported.
10447
059790a0
YQ
104482015-04-17 Yao Qi <yao.qi@linaro.org>
10449 Pedro Alves <palves@redhat.com>
10450
10451 * target.h (target_can_use_hardware_watchpoint): Update comments.
10452 Remove trailing ";".
10453
1b6e6f5c
GB
104542015-04-17 Gary Benson <gbenson@redhat.com>
10455
10456 * remote.c (remote_add_inferior): New argument try_open_exec.
10457 If nonzero, attempt to open the inferior's executable file as
10458 the main executable if no main executable is open already.
10459 All callers updated.
10460 * NEWS: Mention that GDB now supports automatic location and
10461 retrieval of executable + files from remote targets.
10462
c78fa86a
GB
104632015-04-17 Gary Benson <gbenson@redhat.com>
10464
10465 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
10466 * remote.c (PACKET_qXfer_exec_file): Likewise.
10467 (remote_protocol_features): Register the
10468 "qXfer:exec-file:read" feature.
10469 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
10470 (remote_pid_to_exec_file): New function.
10471 (init_remote_ops): Initialize to_pid_to_exec_file.
10472 (_initialize_remote): Register new "set/show remote
10473 pid-to-exec-file-packet" command.
10474 * NEWS: Announce new qXfer:exec-file:read packet.
10475
e0d86d2c
GB
104762015-04-17 Gary Benson <gbenson@redhat.com>
10477
10478 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
10479 New declaration.
10480 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
10481 New function, factored out from...
10482 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
10483
a9a5a3d1
GB
104842015-04-17 Gary Benson <gbenson@redhat.com>
10485
10486 * exec.c (solist.h): New include.
10487 (exec_file_locate_attach): Prefix absolute executable
10488 paths with gdb_sysroot if set.
10489 * NEWS: Mention that executable paths may be prepended
10490 with sysroot.
10491
af1900b0
GB
104922015-04-17 Gary Benson <gbenson@redhat.com>
10493
10494 * solist.h (exec_file_find): New declaration.
10495 * solib.c (solib_find_1): New function, factored out from...
10496 (solib_find): ...here.
10497 (exec_file_find): New function.
10498
a10de604
GB
104992015-04-17 Gary Benson <gbenson@redhat.com>
10500
10501 * gdbcore.h (exec_file_locate_attach): New declaration.
10502 * exec.c (exec_file_locate_attach): New function, factored
10503 out from...
10504 * infcmd.c (attach_command_post_wait): ...here.
10505
92209ddf
MF
105062015-04-17 Mike Frysinger <vapier@gentoo.org>
10507
10508 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
10509
8550d3b3
YQ
105102015-04-16 Yao Qi <yao.qi@linaro.org>
10511
10512 * infrun.c (maybe_software_singlestep): Declare.
10513 (displaced_step_fixup): Call maybe_software_singlestep.
10514
30b3dd9d
DE
105152015-04-15 Doug Evans <dje@google.com>
10516
10517 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
10518
61d96d7e
DE
105192015-04-15 Doug Evans <dje@google.com>
10520
10521 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
10522
40d2f8d6
SM
105232015-04-15 Simon Marchi <simon.marchi@ericsson.com>
10524
10525 * python/lib/gdb/command/unwinders.py: Add parentheses.
10526
6bbbba9b
YQ
105272015-04-15 Yao Qi <yao.qi@linaro.org>
10528
10529 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
10530
2bb2dcab
YQ
105312015-04-15 Yao Qi <yao.qi@linaro.org>
10532
10533 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
10534
41f071ef
YQ
105352015-04-15 Yao Qi <yao.qi@linaro.org>
10536
10537 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
10538 dsc->insn_size instead of 4.
10539
326a5c7e
GB
105402015-04-14 Gary Benson <gbenson@redhat.com>
10541
10542 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
10543 * minidebug.c (lzma_stat): Likewise.
10544 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
10545 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
10546
dd177e81
SS
105472015-04-13 Stan Shebs <stanshebs@google.com>
10548
10549 * MAINTAINERS: Update my email address.
10550
97de3545
JB
105512015-04-13 John Baldwin <jhb@FreeBSD.org>
10552
10553 * amd64-tdep.c (amd64_target_description): New function.
10554 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
10555 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
10556 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10557 x86 extended save area.
10558 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10559 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
10560 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
10561 (_initialize_amd64fbsd_nat): Set "to_read_description" to
10562 "amd64fbsd_read_description".
10563 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
10564 (amd64fbsd_supply_xstateregset): New function.
10565 (amd64fbsd_collect_xstateregset): New function.
10566 Add "amd64fbsd_xstateregset".
10567 (amd64fbsd_iterate_over_regset_sections): New function.
10568 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
10569 "I386_FBSD_XSAVE_XCR0_OFFSET".
10570 Add "iterate_over_regset_sections" gdbarch method.
10571 Add "core_read_description" gdbarch method.
10572 * i386-tdep.c (i386_target_description): New function.
10573 * i386-tdep.h: Export i386_target_description and tdesc_i386.
10574 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
10575 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
10576 x86 extended save area.
10577 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
10578 * i386bsd-nat.h: Export i386bsd_xsave_len.
10579 * i386fbsd-nat.c (i386fbsd_read_description): New function.
10580 (_initialize_i386fbsd_nat): Set "to_read_description" to
10581 "i386fbsd_read_description".
10582 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
10583 (i386fbsd_core_read_description): New function.
10584 (i386fbsd_supply_xstateregset): New function.
10585 (i386fbsd_collect_xstateregset): New function.
10586 Add "i386fbsd_xstateregset".
10587 (i386fbsd_iterate_over_regset_sections): New function.
10588 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
10589 "I386_FBSD_XSAVE_XCR0_OFFSET".
10590 Add "iterate_over_regset_sections" gdbarch method.
10591 Add "core_read_description" gdbarch method.
10592 * i386fbsd-tdep.h: New file.
10593
4f45d445
JK
105942015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10595
10596 * NEWS (Changes since GDB 7.9): Add removed -xdb.
10597 * breakpoint.c (command_line_is_silent): Remove xdb_commands
10598 conditional.
10599 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
10600 and lb.
10601 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
10602 va.
10603 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
10604 conditional.
10605 * defs.h (xdb_commands): Remove declaration.
10606 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
10607 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
10608 * infcmd.c (run_no_args_command, go_command): Remove.
10609 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
10610 * infrun.c (xdb_handle_command): Remove.
10611 (_initialize_infrun): Remove xdb_commands for lz and z.
10612 * main.c (xdb_commands): Remove variable.
10613 (captured_main): Remove "xdb" from long_options.
10614 (print_gdb_help): Remove --xdb from help.
10615 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
10616 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
10617 * stack.c (backtrace_full_command, args_plus_locals_info)
10618 (current_frame_command): Remove.
10619 (_initialize_stack): Remove xdb_commands for t, T and l.
10620 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
10621 * thread.c (_initialize_thread): Remove xdb_commands condition.
10622 * tui/tui-layout.c (tui_toggle_layout_command)
10623 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
10624 (_initialize_tui_layout): Remove xdb_commands for td and ts.
10625 * tui/tui-regs.c (tui_scroll_regs_forward_command)
10626 (tui_scroll_regs_backward_command): Remove.
10627 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
10628 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
10629 (_initialize_tui_win): Remove xdb_commands for U and w.
10630 * utils.c (pagination_on_command, pagination_off_command): Remove.
10631 (initialize_utils): Remove xdb_commands for am and sm.
10632
cb71640d
PA
106332015-04-10 Pedro Alves <palves@redhat.com>
10634
10635 * infrun.c (displaced_step_fixup): Switch to the event ptid
10636 earlier. If the thread stopped for a watchpoint and the
10637 target/arch has non-continuable watchpoints, cancel the displaced
10638 step.
10639 (resume): Don't start a displaced step if in-line step-over info
10640 is valid.
10641
8f572e5c
PA
106422015-04-10 Pedro Alves <palves@redhat.com>
10643
10644 * infrun.c (displaced_step_in_progress): New function.
10645 (do_target_resume): Advise target to report all signals if
10646 displaced stepping.
10647
8d707a12
PA
106482015-04-10 Pedro Alves <palves@redhat.com>
10649
10650 PR gdb/18216
10651 * infrun.c (process_event_stop_test): Don't assume a step-resume
10652 is set if tp->stepped_breakpoint is true.
10653
ef713951
YQ
106542015-04-10 Yao Qi <yao.qi@linaro.org>
10655
10656 * arm-tdep.c (install_alu_reg): Update comment.
10657 (thumb_copy_alu_reg): Remove local variable rn. Update
10658 debugging message. Use r2 instead of r1 in the modified
10659 instruction.
10660
906d60cf
PA
106612015-04-10 Pedro Alves <palves@redhat.com>
10662
10663 PR gdb/13858
10664 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
10665 linux_displaced_step_location as gdbarch_displaced_step_location
10666 hook.
10667 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10668 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10669 * linux-tdep.c (linux_displaced_step_location): New function,
10670 based on ppc_linux_displaced_step_location.
10671 * linux-tdep.h (linux_displaced_step_location): New declaration.
10672 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
10673 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
10674 Delete.
10675 (ppc_linux_init_abi): Install linux_displaced_step_location as
10676 gdbarch_displaced_step_location hook, even without Cell/B.E..
10677 (_initialize_ppc_linux_tdep): Don't install
10678 ppc_linux_inferior_created as inferior_created observer.
10679 * s390-linux-tdep.c (s390_gdbarch_init): Install
10680 linux_displaced_step_location as gdbarch_displaced_step_location
10681 hook.
10682
7823a941
GB
106832015-04-09 Gary Benson <gbenson@redhat.com>
10684
10685 * common/common-remote-fileio.h: Rename to...
10686 * common/fileio.h: ...this. Update all references.
10687 (remote_fileio_to_fio_error): Rename to...
10688 (host_to_fileio_error): ...this.
10689 (remote_fileio_to_be): Rename to...
10690 (host_to_bigendian): ...this. Update all callers.
10691 (remote_fileio_to_fio_uint): Rename to...
10692 (host_to_fileio_uint): ...this. Update all callers.
10693 (remote_fileio_to_fio_time): Rename to...
10694 (host_to_fileio_time): ...this. Update all callers.
10695 (remote_fileio_to_fio_stat): Rename to...
10696 (host_to_fileio_stat): ...this.
10697 Update all references.
10698 * common/common-remote-fileio.c: Rename to...
10699 * common/fileio.c: ...this. Update all references.
10700 (remote_fileio_to_fio_error): Rename to...
10701 (host_to_fileio_error): ...this. Update all callers.
10702 (remote_fileio_mode_to_target): Rename to...
10703 (fileio_mode_pack): ...this. Update all callers.
10704 (remote_fileio_to_fio_mode): Rename to...
10705 (host_to_fileio_mode): ...this. Update all callers.
10706 (remote_fileio_to_fio_ulong): Rename to...
10707 (host_to_fileio_ulong): ...this. Update all callers.
10708 (remote_fileio_to_fio_stat): Rename to...
10709 (host_to_fileio_stat): ...this. Update all callers.
10710
f2983cc3
AW
107112015-04-09 Andy Wingo <wingo@igalia.com>
10712
10713 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
10714 (frame_functions): Bind gdbscm_frame_read_register to
10715 frame-read-register.
10716 * guile/lib/gdb.scm (frame-read-register): Export.
10717
b88bb450
GB
107182015-04-09 Gary Benson <gbenson@redhat.com>
10719
10720 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
10721 New declaration.
10722 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
10723 New function, factored out the named functions below.
10724 * inf-child.c (gdb/fileio.h): Remove include.
10725 (common-remote-fileio.h): New include.
10726 (inf_child_errno_to_fileio_error): Remove function. Update
10727 all callers to use remote_fileio_to_fio_error.
10728 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
10729
2f2680f3
AW
107302015-04-09 Andy Wingo <wingo@igalia.com>
10731
10732 * MAINTAINERS (Write After Approval): Add Andy Wingo.
10733
5a2d4533
L
107342015-04-09 H.J. Lu <hongjiu.lu@intel.com>
10735
10736 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
10737 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
10738 * configure: Regenerated.
10739
421693b0
PA
107402015-04-09 Pedro Alves <palves@redhat.com>
10741
10742 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
10743 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
10744 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
10745 * gnulib/import/Makefile.am: Update.
10746 * gnulib/import/Makefile.in: Update.
10747 * gnulib/import/m4/gnulib-cache.m4: Update.
10748 * gnulib/import/m4/gnulib-comp.m4: Update.
10749 * gnulib/import/m4/strtok_r.m4: New file.
10750 * gnulib/import/strtok_r.c: New file.
10751
f543dc83
PA
107522015-04-09 Pedro Alves <palves@redhat.com>
10753
10754 * gnulib/update-gnulib.sh (aclocal version check): Filter out
10755 "called too early to check prototype".
10756
6d62641c
SDJ
107572015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
10758
10759 PR python/16699
10760 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
10761 use a caching mechanism. Adjust comments and code to reflect
10762 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
10763 (cmdpy_completer_handle_brkchars): Adjust call to
10764 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
10765 (cmdpy_completer): Likewise.
10766
85558555
YQ
107672015-04-08 Yao Qi <yao.qi@linaro.org>
10768
10769 * spu-tdep.c (spu_gdbarch_init): Don't call
10770 set_gdbarch_cannot_step_breakpoint.
10771
d249a14a
SDJ
107722015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
10773
10774 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
10775
8a06aea7
PA
107762015-04-07 Pedro Alves <palves@redhat.com>
10777
10778 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
10779 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
10780 (delete_exited_threads): New declaration.
10781 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
10782 * linux-nat.c (linux_nat_update_thread_list): New function.
10783 (linux_nat_add_target): Install it.
10784 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
10785 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
10786 (delete_exited_threads): New function.
10787
d9b67d9f
PA
107882015-04-07 Pedro Alves <pedro@codesourcery.com>
10789
10790 * infrun.c (resume) <displaced stepping debug output>: Get the
10791 leader thread's regcache, not resume_ptid's.
10792
2c26b84f
DE
107932015-04-06 Doug Evans <xdje42@gmail.com>
10794
10795 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
10796 VAR_DOMAIN.
10797 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
10798 Include symbol domain in debugging output.
10799
7a85168d
PA
108002015-04-06 Pedro Alves <palves@redhat.com>
10801 Bernd Edlinger <bernd.edlinger@hotmail.de>
10802
10803 * configure.ac: Remove the mingw32-specific stub-termcap.o
10804 fallback, and instead fallback to the stub termcap on all hosts.
10805 * configure: Regenerate.
10806 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
10807 symbols.
10808
25755e2b
PMR
108092015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10810
10811 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
10812 "top_level" parameter.
10813 (resolve_dynamic_type_internal): Remove the unused "top_level"
10814 parameter. Update call to is_dynamic_type_internal.
10815 (is_dynamic_type): Update call to is_dynamic_type_internal.
10816 (resolve_dynamic_range): Update call to
10817 resolve_dynamic_type_internal.
10818 (resolve_dynamic_union): Likewise.
10819 (resolve_dynamic_struct): Likewise.
10820 (resolve_dynamic_type): Likewise.
10821
961f4160
PMR
108222015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
10823
10824 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
10825 TYPE_CODE_REF types so that they are not considered as dynamic
10826 depending on the referenced type.
10827 (resolve_dynamic_type_internal): Likewise.
10828
39f3de7c
L
108292015-04-02 H.J. Lu <hongjiu.lu@intel.com>
10830
10831 * Makefile.in (top_srcdir): New.
10832 * configure: Regenerated.
10833
599bd15c
GB
108342015-04-02 Gary Benson <gbenson@redhat.com>
10835
10836 * NEWS: Announce the new default sysroot of "target:".
10837
fed040c6
GB
108382015-04-02 Gary Benson <gbenson@redhat.com>
10839
10840 * main.c (captured_main): Set gdb_sysroot to "target:"
10841 if not otherwise set.
10842
64c0b5de
GB
108432015-04-02 Gary Benson <gbenson@redhat.com>
10844
10845 * exec.c (exec_file_attach): Support "target:" filenames.
10846
b57fbfba
GB
108472015-04-02 Gary Benson <gbenson@redhat.com>
10848
10849 * solib.c (solib_find): Strip "target:" prefix from sysroot
10850 if accessing local files.
10851
97a41605
GB
108522015-04-02 Gary Benson <gbenson@redhat.com>
10853
10854 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
10855 checks and error messages.
10856
2938e6cf
GB
108572015-04-02 Gary Benson <gbenson@redhat.com>
10858
10859 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
10860 (remote_filename_p): Remove declaration.
10861 (remote_bfd_open): Likewise.
10862 * remote.c (remote_bfd_iovec_open): Remove function.
10863 (remote_bfd_iovec_close): Likewise.
10864 (remote_bfd_iovec_pread): Likewise.
10865 (remote_bfd_iovec_stat): Likewise.
10866 (remote_filename_p): Likewise.
10867 (remote_bfd_open): Likewise.
10868 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
10869 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
10870 (gdb_bfd_open_maybe_remote): Remove function.
10871 (symfile_bfd_open): Replace remote filename check with
10872 target filename check.
10873 (reread_symbols): Use gdb_bfd_open.
10874 * build-id.c (gdbcore.h): New include.
10875 (build_id_to_debug_bfd): Use gdb_bfd_open.
10876 * infcmd.c (attach_command_post_wait): Remove remote filename
10877 check.
10878 * solib.c (solib_find): Replace remote-specific handling with
10879 target-specific handling. Update comments where necessary.
10880 (solib_bfd_open): Replace remote-specific handling with
10881 target-specific handling.
10882 (gdb_sysroot_changed): New function.
10883 (_initialize_solib): Call the above when gdb_sysroot changes.
10884 * windows-tdep.c (gdbcore.h): New include.
10885 (windows_xfer_shared_library): Use gdb_bfd_open.
10886
f08e97fe
GB
108872015-04-02 Gary Benson <gbenson@redhat.com>
10888
10889 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
10890 (is_target_filename): New declaration.
10891 (gdb_bfd_has_target_filename): Likewise.
10892 (gdb_bfd_open): Update documentation comment.
10893 * gdb_bfd.c (target.h): New include.
10894 (gdb/fileio.h): Likewise.
10895 (is_target_filename): New function.
10896 (gdb_bfd_has_target_filename): Likewise.
10897 (fileio_errno_to_host): Likewise.
10898 (gdb_bfd_iovec_fileio_open): Likewise.
10899 (gdb_bfd_iovec_fileio_pread): Likewise.
10900 (gdb_bfd_iovec_fileio_close): Likewise.
10901 (gdb_bfd_iovec_fileio_fstat): Likewise.
10902 (gdb_bfd_open): Use target fileio to access paths prefixed
10903 with "target:" where necessary.
10904
4bd7dc42
GB
109052015-04-02 Gary Benson <gbenson@redhat.com>
10906
10907 * target.h (struct target_ops) <to_filesystem_is_local>:
10908 New field.
10909 (target_filesystem_is_local): New macro.
10910 * target-delegates.c: Regenerate.
10911 * remote.c (remote_filesystem_is_local): New function.
10912 (init_remote_ops): Initialize to_filesystem_is_local.
10913
9b15c1f0
GB
109142015-04-02 Gary Benson <gbenson@redhat.com>
10915
10916 * target.h (struct target_ops) <to_fileio_fstat>: New field.
10917 (target_fileio_fstat): New declaration.
10918 * target.c (target_fileio_fstat): New function.
10919 * inf-child.c (inf_child_fileio_fstat): Likewise.
10920 (inf_child_target): Initialize to_fileio_fstat.
10921 * remote.c (init_remote_ops): Likewise.
10922
d11916aa
SS
109232015-04-01 Sasha Smundak <asmundak@google.com>
10924
10925 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
10926 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
10927 (py-unwind.o): New recipe.
10928 * NEWS: mention Python frame unwinding.
10929 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
10930 gdb/unwinder.py and gdb/command/unwinder.py
10931 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
10932 list.
10933 (execute_unwinders): New function.
10934 * python/lib/gdb/command/unwinders.py: New file.
10935 * python/lib/gdb/unwinder.py: New file.
10936 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
10937 (objfpy_dealloc): Decrement frame_unwinders reference count.
10938 (objfpy_initialize): Create frame_unwinders list.
10939 (objfpy_get_frame_unwinders): New function.
10940 (objfpy_set_frame_unwinders): Ditto.
10941 (objfile_getset): Add frame_unwinders attribute to Objfile.
10942 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
10943 (pspy_dealloc): Decrement frame_unwinders reference count.
10944 (pspy_initialize): Create frame_unwinders list.
10945 (pspy_get_frame_unwinders): New function.
10946 (pspy_set_frame_unwinders): Ditto.
10947 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
10948 * python/py-unwind.c: New file.
10949 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
10950 (objpy_get_frame_unwinders): New prototype.
10951 (gdbpy_initialize_unwind): New prototype.
10952 * python/python.c (gdbpy_apply_type_printers): Call
10953 gdbpy_initialize_unwind.
10954
6b403daa
PA
109552015-04-01 Pedro Alves <palves@redhat.com>
10956
10957 * infrun.c (resume): Check currently_stepping after clearing
10958 stepped_breakpoint, not before.
10959
1176ecec
PA
109602015-04-01 Pedro Alves <palves@redhat.com>
10961
10962 * infrun.c (print_target_wait_results): Print all the ptid
10963 elements.
10964
de1fe8c8
PA
109652015-04-01 Pedro Alves <palves@redhat.com>
10966
10967 * infrun.c (keep_going): Also discard cleanups if inserting
10968 breakpoints fails.
10969
e6f5c25b
PA
109702015-04-01 Pedro Alves <palves@redhat.com>
10971
10972 * infrun.c (wait_for_inferior): Install the
10973 finish_thread_state_cleanup cleanup across the whole function, not
10974 just around handle_inferior_event.
10975
1ac806b8
PA
109762015-04-01 Pedro Alves <palves@redhat.com>
10977
10978 * infrun.c (resume) <step past permanent breakpoint>: Use
10979 do_target_resume.
10980
2ee52aa4
PA
109812015-04-01 Pedro Alves <palves@redhat.com>
10982
10983 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
10984
5445da1b
PMR
109852015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
10986
10987 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
10988
4eec2deb
PA
109892015-04-01 Pedro Alves <palves@redhat.com>
10990
10991 * linux-thread-db.c (record_thread): Readd the thread to gdb's
10992 list if it was marked exited.
10993
afa59b79
L
109942015-04-01 H.J. Lu <hongjiu.lu@intel.com>
10995
10996 * configure: Regenerated.
10997
df8411da
SDJ
109982015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10999 Jan Kratochvil <jan.kratochvil@redhat.com>
11000 Oleg Nesterov <oleg@redhat.com>
11001
11002 PR corefiles/16092
11003 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
11004 New enum identifying the various options of the coredump_filter
11005 file.
11006 (struct smaps_vmflags): New struct.
11007 (use_coredump_filter): New variable.
11008 (decode_vmflags): New function.
11009 (mapping_is_anonymous_p): Likewise.
11010 (dump_mapping_p): Likewise.
11011 (linux_find_memory_regions_full): New variables
11012 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
11013 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
11014 parsing of its information. Implement memory mapping filtering
11015 based on its contents.
11016 (show_use_coredump_filter): New function.
11017 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
11018 * NEWS: Mention the possibility of using the
11019 '/proc/PID/coredump_filter' file when generating a corefile.
11020 Mention new command 'set use-coredump-filter'.
11021
416f679e
SDJ
110222015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
11023
11024 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
11025 read_memory_unsigned_integer.
11026
711a72d3
L
110272015-03-31 H.J. Lu <hongjiu.lu@intel.com>
11028
11029 * Makefile.in (ZLIB): New.
11030 (ZLIBINC): Likewise.
11031 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
11032 (CLIBS): Add $(ZLIB).
11033 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
11034 Add -lz to LIBS.
11035 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
11036 * top.c (print_gdb_configuration): Remove --with-zlib and
11037 --without-zlib.
11038 * config.in: Regenerated.
11039 * configure: Likewise.
11040
d33279b3
AT
110412015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
11042
11043 * NEWS: Mention info os cpus support.
11044 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
11045 (struct osdata_type): Add cpus entry, reorder the entries in
11046 alphabetical order.
11047
71b30f27
MK
110482015-03-31 Matthias Klose <doko@ubuntu.com>
11049
11050 * compile/compile.c (compile_to_object): Allow triplets with or
11051 without vendor set.
11052
13ce9222
DE
110532015-03-30 Doug Evans <dje@google.com>
11054
11055 PR c++/18141
11056 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
11057 klass in VAR_DOMAIN.
11058
20f796c9
GB
110592015-03-30 Gary Benson <gbenson@redhat.com>
11060
11061 * remote.c (remote_mourn_1): Remove function. Update all callers
11062 to use remote_mourn.
11063 (extended_remote_mourn_1): Remove function. Update all callers
11064 to use extended_remote_mourn.
11065 (extended_remote_attach_1): Remove function. Update all callers
11066 to use extended_remote_attach.
11067
49d45b20
JB
110682015-03-28 James Bowman <james.bowman@ftdichip.com>
11069
11070 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
11071 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
11072 (ALLDEPFILES): Add ft32-tdep.c.
11073 * configure.tgt: Add FT32 entry.
11074 * ft32-tdep.c: New file, FT32 target-dependent code.
11075 * ft32-tdep.h: New file, FT32 target-dependent code.
11076
1c4ff080
JK
110772015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11078
11079 Revert:
11080 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11081 Code cleanup.
11082 * printcmd.c (print_command_1): Move expr variable scope.
11083
79498702
JB
110842015-03-27 Joel Brobecker <brobecker@adacore.com>
11085
11086 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
11087
ce9c0ca1
AK
110882015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
11089
11090 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
11091 sections.
11092
429e1e81
JB
110932015-03-26 Joel Brobecker <brobecker@adacore.com>
11094
11095 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
11096 exception raised while parsing the probe arguments.
11097 Force parsing to be done using the C language parser.
11098 * expression.h (parse_expression_with_language): Declare.
11099 * parse.c (parse_expression_with_language): New function.
11100
4593441b
JT
111012015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
11102
11103 * MAINTAINERS (Write After Approval): Add "Jon Turney".
11104
ff908ebf
AW
111052015-03-26 Andy Wingo <wingo@igalia.com>
11106
11107 PR symtab/18148
11108 * dwarf2read.c (struct partial_die_info): Add has_const_value
11109 member.
11110 (add_partial_symbol): Don't punt on symbols that have const_value
11111 attributes.
11112 (read_partial_die): Detect DW_AT_const_value.
11113
f30d5c78
JK
111142015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11115
11116 Code cleanup.
11117 * printcmd.c (print_command_1): Move expr variable scope.
11118
8d89f51a
JK
111192015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11120
11121 Code cleanup.
11122 * printcmd.c (validate_format): Make the parameter cmdname const.
11123
0b736949
DB
111242015-03-26 Don Breazeal <donb@codesourcery.com>
11125
11126 * remote.c (_initialize_remote): Update comment.
11127
20d35291
PA
111282015-03-26 Pedro Alves <palves@redhat.com>
11129 Jon TURNEY <jon.turney@dronecode.org.uk>
11130
11131 * coffread.c (coff_symfile_read): When constructing the name of an
11132 import stub symbol from import symbol for amd64, only skip the
11133 char after _imp_ if the target is underscored (like i386) and the
11134 char is indeed the target's leading char.
11135
6a3753b3
PA
111362015-03-25 Pedro Alves <palves@redhat.com>
11137
11138 * target.h <to_async>: Replace 'callback' and 'context' parameters
11139 with boolean 'enable' parameter.
11140 (target_async): Replace CALLBACK and CONTEXT parameters with
11141 boolean ENABLE parameter.
11142 * inf-loop.c (inferior_event_handler): Adjust.
11143 * linux-nat.c (linux_nat_attach, linux_nat_resume)
11144 (linux_nat_resume): Adjust.
11145 (async_client_callback, async_client_context): Delete.
11146 (handle_target_event): Call inferior_event_handler directly.
11147 (linux_nat_async): Replace 'callback' and 'context' parameters
11148 with boolean 'enable' parameter. Adjust. Remove references to
11149 async_client_callback and async_client_context.
11150 (linux_nat_close): Adjust.
11151 * record-btrace.c (record_btrace_async): Replace 'callback' and
11152 'context' parameters with boolean 'enable' parameter. Adjust.
11153 (record_btrace_resume): Adjust.
11154 * record-full.c (record_full_async): Replace 'callback' and
11155 'context' parameters with boolean 'enable' parameter. Adjust.
11156 (record_full_resume, record_full_core_resume): Adjust.
11157 * remote.c (struct remote_state) <async_client_callback,
11158 async_client_context>: Delete fields.
11159 (remote_start_remote, extended_remote_attach_1, remote_resume)
11160 (extended_remote_create_inferior): Adjust.
11161 (remote_async_serial_handler): Call inferior_event_handler
11162 directly.
11163 (remote_async): Replace 'callback' and 'context' parameters with
11164 boolean 'enable' parameter. Adjust.
11165 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
11166 Adjust.
11167 * target-delegates.c: Regenerate.
11168
1c4b552b
GB
111692015-03-25 Gary Benson <gbenson@redhat.com>
11170 Pedro Alves <palves@redhat.com>
11171
11172 * target.c (fileio_ft_t): New typedef, define object vector.
11173 (fileio_fhandles): New static variable.
11174 (is_closed_fileio_fh): New macro.
11175 (lowest_closed_fd): New static variable.
11176 (acquire_fileio_fd): New function.
11177 (release_fileio_fd): Likewise.
11178 (fileio_fd_to_fh): New macro.
11179 (target_fileio_open): Wrap the file descriptor on success.
11180 (target_fileio_pwrite): Updated to use wrapped file descriptor.
11181 (target_fileio_pread): Likewise.
11182 (target_fileio_close): Likewise.
11183
a25d8bf9
PA
111842015-03-24 Pedro Alves <palves@redhat.com>
11185
11186 * thread.c (thread_apply_all_command): Take exited threads into
11187 account.
11188
44a1ee51
PA
111892015-03-24 Pedro Alves <palves@redhat.com>
11190
11191 * infrun.c (resume, proceed): Mention
11192 switch_back_to_stepped_thread, not switch_back_to_stepping.
11193
f3263aa4
PA
111942015-03-24 Pedro Alves <palves@redhat.com>
11195
11196 * infrun.c (user_visible_resume_ptid): Rewrite going from
11197 most-locked to unlocked instead of the opposite. Move comment ...
11198 * infrun.h (user_visible_resume_ptid): ... here.
11199
2bf6fb9d
PA
112002015-03-24 Pedro Alves <palves@redhat.com>
11201
11202 * linux-nat.c (linux_nat_resume): Output debug logs before trying
11203 to resume the event lwp. Use the lwp's ptid instead of the passed
11204 in (maybe wildcard) ptid.
11205 (stop_wait_callback): Tweak debug log output.
11206 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
11207 TRAP_TRACE.
11208 (linux_nat_filter_event): In debug output, distinguish a
11209 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
11210 before trying to resume the lwp.
11211
283a9958
JB
112122015-03-24 Joel Brobecker <brobecker@adacore.com>
11213
11214 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
11215 pointer indirection.
11216 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
11217 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
11218
93a8e227
JB
112192015-03-24 Joel Brobecker <brobecker@adacore.com>
11220
11221 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
11222 Renames DYN_ATTR_DATA_LOCATION.
11223 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
11224 DYN_ATTR_DATA_LOCATION.
11225 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
11226 instead of DYN_ATTR_DATA_LOCATION.
11227
64ce06e4
PA
112282015-03-24 Pedro Alves <palves@redhat.com>
11229
11230 * breakpoint.c (until_break_command): Adjust call to proceed.
11231 * gdbthread.h (struct thread_control_state) <stepping_command>:
11232 New field.
11233 * infcall.c (run_inferior_call): Adjust call to proceed.
11234 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
11235 Adjust calls to proceed.
11236 (set_step_frame): Set the current thread's step_start_function
11237 here.
11238 (step_once): Adjust calls to proceed.
11239 (jump_command, signal_command, until_next_command)
11240 (finish_backward, finish_forward, proceed_after_attach_callback)
11241 (attach_command_post_wait): Adjust calls to proceed.
11242 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
11243 (do_target_resume): New function, factored out from ...
11244 (resume): ... here. Remove 'step' parameter. Instead, check
11245 currently_stepping to determine whether the thread should be
11246 single-stepped.
11247 (proceed): Remove 'step' parameter and don't set the thread's
11248 step_start_function here. Adjust call to 'resume'.
11249 (handle_inferior_event): Adjust calls to 'resume'.
11250 (switch_back_to_stepped_thread): Use do_target_resume instead of
11251 'resume'.
11252 (keep_going): Adjust calls to 'resume'.
11253 * infrun.h (proceed): Remove 'step' parameter.
11254 (resume): Likewise.
11255 * windows-nat.c (do_initial_windows_stuff): Adjust call to
11256 'resume'.
11257 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
11258
856e7dd6
PA
112592015-03-24 Pedro Alves <palves@redhat.com>
11260
11261 * gdbthread.h (struct thread_control_state) <stepping_command>:
11262 New field.
11263 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
11264 the thread's stepping_command field.
11265 * infrun.c (resume): Check the thread's stepping_command flag to
11266 determine which threads should be resumed. Rename 'entry_step'
11267 local to user_step.
11268 (clear_proceed_status_thread): Clear 'stepping_command'.
11269 (schedlock_applies): Change parameter type to struct thread_info
11270 pointer. Adjust.
11271 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
11272 (switch_back_to_stepped_thread): Adjust calls to
11273 'schedlock_applies'.
11274 (_initialize_infrun): Adjust "set scheduler-locking step" help.
11275
885eeb5b
PA
112762015-03-24 Pedro Alves <palves@redhat.com>
11277
11278 * infrun.c (step_start_function): Delete and ...
11279 * gdbthread.h (struct thread_control_state) <step_start_function>:
11280 ... now a field here.
11281 * infrun.c (clear_proceed_status_thread): Clear the thread's
11282 step_start_function.
11283 (proceed, process_event_stop_test, print_stop_event): Adjust.
11284
3333f03a
PA
112852015-03-24 Pedro Alves <palves@redhat.com>
11286
11287 * infrun.c (proceed): No longer handle negative step.
11288
369f6daa
GB
112892015-03-24 Gary Benson <gbenson@redhat.com>
11290
11291 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
11292 (x86_linux_prepare_to_resume): Likewise.
11293 * x86-linux-nat.c (x86_linux_new_thread):
11294 Moved to nat/x86-linux.c.
11295 (x86_linux_prepare_to_resume): Likewise.
11296 * nat/x86-linux.c (x86_linux_new_thread): New function.
11297 (x86_linux_prepare_to_resume): Likewise.
11298
8e5d4070
GB
112992015-03-24 Gary Benson <gbenson@redhat.com>
11300
11301 * nat/x86-linux-dregs.h: New file.
11302 * nat/x86-linux-dregs.c: Likewise.
11303 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
11304 (x86-linux-dregs.o): New rule.
11305 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
11306 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11307 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
11308 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11309 (x86_linux_dr_get): Likewise.
11310 (x86_linux_dr_set): Likewise.
11311 (x86_linux_dr_get_addr): Likewise.
11312 (x86_linux_dr_get_control): Likewise.
11313 (x86_linux_dr_get_status): Likewise.
11314 (update_debug_registers_callback): Likewise.
11315 (x86_linux_dr_set_control): Likewise.
11316 (x86_linux_dr_set_addr): Likewise.
11317 (x86_linux_update_debug_registers): Likewise.
11318
2b95d440
GB
113192015-03-24 Gary Benson <gbenson@redhat.com>
11320
11321 * x86-linux-nat.c (x86_linux_update_debug_registers):
11322 New function, factored out from...
11323 (x86_linux_prepare_to_resume): ...this.
11324
14b0bc68
GB
113252015-03-24 Gary Benson <gbenson@redhat.com>
11326
11327 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
11328 (x86_linux_dr_set): Likewise.
11329 (x86_linux_dr_get_addr): Likewise.
11330 (x86_linux_dr_get_control): Likewise.
11331 (x86_linux_dr_get_status): Likewise.
11332 (update_debug_registers_callback): Likewise.
11333 (x86_linux_dr_set_control): Likewise.
11334 (x86_linux_dr_set_addr): Likewise.
11335 (x86_linux_prepare_to_resume): Likewise.
11336 (x86_linux_new_thread): Likewise.
11337
5dfe6ca8
GB
113382015-03-24 Gary Benson <gbenson@redhat.com>
11339
11340 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
11341 (x86_linux_new_thread): Rename argument.
11342
4b134ca1
GB
113432015-03-24 Gary Benson <gbenson@redhat.com>
11344
11345 * nat/x86-linux.h: New file.
11346 * nat/x86-linux.c: Likewise.
11347 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
11348 (x86-linux.o): New rule.
11349 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
11350 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11351 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
11352 (lwp_set_arch_private_info): New declaration.
11353 (lwp_arch_private_info): Likewise.
11354 * linux-nat.c (lwp_set_arch_private_info): New function.
11355 (lwp_arch_private_info): Likewise.
11356 * x86-linux-nat.c: Include nat/x86-linux.h.
11357 (arch_lwp_info): Removed structure.
11358 (update_debug_registers_callback):
11359 Use lwp_set_debug_registers_changed.
11360 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11361 and lwp_set_debug_registers_changed.
11362 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11363
cff068da
GB
113642015-03-24 Gary Benson <gbenson@redhat.com>
11365
11366 * nat/linux-nat.h (ptid_of_lwp): New declaration.
11367 (lwp_is_stopped): Likewise.
11368 (lwp_stop_reason): Likewise.
11369 * linux-nat.c (ptid_of_lwp): New function.
11370 (lwp_is_stopped): Likewise.
11371 (lwp_is_stopped_by_watchpoint): Likewise.
11372 * x86-linux-nat.c (update_debug_registers_callback):
11373 Use lwp_is_stopped.
11374 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11375 lwp_stop_reason.
11376
b2f7c7e8
GB
113772015-03-24 Gary Benson <gbenson@redhat.com>
11378
11379 * linux-nat.h (linux_stop_lwp): Move declaration to...
11380 * nat/linux-nat.h (linux_stop_lwp): New declaration.
11381
6d4ee8c6
GB
113822015-03-24 Gary Benson <gbenson@redhat.com>
11383
11384 * linux-nat.h: Include nat/linux-nat.h.
11385 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
11386 * nat/linux-nat.h (struct lwp_info): New forward declaration.
11387 (iterate_over_lwps_ftype): New typedef.
11388 (iterate_over_lwps): New declaration.
11389 * linux-nat.h (iterate_over_lwps): Update comment. Use
11390 iterate_over_lwps_ftype. Update callback return value check.
11391
70a0bb6b
GB
113922015-03-24 Gary Benson <gbenson@redhat.com>
11393
11394 * x86-nat.h (x86_debug_reg_state): Move declaration to...
11395 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
11396
7b669087
GB
113972015-03-24 Gary Benson <gbenson@redhat.com>
11398
11399 * nat/linux-nat.h (current_lwp_ptid): New declaration.
11400 * linux-nat.c (current_lwp_ptid): New function.
11401 * x86-linux-nat.c: Include nat/linux-nat.h.
11402 (x86_linux_dr_get_addr): Use current_lwp_ptid.
11403 (x86_linux_dr_get_control): Likewise.
11404 (x86_linux_dr_get_status): Likewise.
11405 (x86_linux_dr_set_control): Likewise.
11406 (x86_linux_dr_set_addr): Likewise.
11407
15630549
AT
114082015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
11409
11410 PR breakpoints/16466
11411 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
11412
8a4506c0
JB
114132015-03-23 Joel Brobecker <brobecker@adacore.com>
11414
11415 * ser-mingw.c (ser_windows_setparity): Fix indentation.
11416 * ser-unix.c (hardwire_setparity): Likewise.
11417
236af5e3
YG
114182015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
11419
11420 * NEWS: Mention set/show serial parity command.
11421 * monitor.c (monitor_open): Call serial_setparity.
11422 * remote.c (remote_open_1): Likewise.
11423 * ser-base.c (ser_base_serparity): New function.
11424 * ser-base.h (ser_base_setparity): Add declaration.
11425 * ser-go32.c (dos_ops): Set "setparity" field.
11426 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
11427 state.Parity.
11428 (ser_windows_setparity): New function.
11429 (hardwire_ops): Add ser_windows_setparity.
11430 (tty_ops): Add NULL for setparity field.
11431 (pipe_ops): Add ser_base_setparity.
11432 (tcp_ops): Likewise.
11433 * ser-pipe.c (pipe_ops): Likewise.
11434 * ser-tcp.c (tcp_ops): Likewise.
11435 * ser-unix.c (hardwire_setparity): Add declaration.
11436 (hardwire_raw): Don't reset PARENB flag.
11437 (hardwire_setparity): New function.
11438 (hardwire_ops): Add hardwire_setparity.
11439 * serial.c (serial_setparity): New function.
11440 (serial_parity): New global.
11441 (parity_none, parity_odd, parity_even, parity_enums, parity):
11442 New static globals.
11443 (set_parity): New function.
11444 (_initialize_serial): Add set/show serial parity commands.
11445 * serial.h (GDBPARITY_NONE): Define.
11446 (GDBPARITY_ODD): Define.
11447 (GDBPARITY_EVEN): Define.
11448 (serial_setparity) Add declaration.
11449 (struct serial_ops): Add setparity field.
11450 * target.h (serial_parity): Add declaration.
11451
32b40af9
KS
114522015-03-23 Keith Seitz <keiths@redhat.com>
11453
11454 * linespec.c (linespec_lexer_lex_keyword): Update comment.
11455
693dca06
KS
114562015-03-23 Keith Seitz <keiths@redhat.com>
11457
11458 * breakpoint.c (parse_breakpoint_sals): Use
11459 linespec_lexer_lex_keyword to ascertain if the user specified
11460 a NULL location.
11461 * linespec.c [IF_KEYWORD_INDEX]: Define.
11462 (linespec_lexer_lex_keyword): Export.
11463 (struct ls_parser) <keyword_ok>: Remove.
11464 A keyword is only a keyword if not followed by another keyword.
11465 (linespec_lexer_lex_one): Remove keyword_ok handling.
11466 Add comment explaining why the parsing stream is not advanced
11467 when a keyword is seen.
11468 (parse_linespec): Remove parser->keyword_ok.
11469 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
11470
7e993ebf
KS
114712015-03-23 Keith Seitz <keiths@redhat.com>
11472
11473 PR gdb/18021
11474 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
11475 if we find a static method with DW_AT_vtable_elem_location.
11476
b1a0f704
EZ
114772015-03-21 Eli Zaretskii <eliz@gnu.org>
11478
11479 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
11480 before the second loop, to avoid undefined behavior. Reported by
11481 Anton Blanchard <anton@samba.org>.
11482
d9823cbb
KB
114832015-03-20 Keven Boell <keven.boell@intel.com>
11484
11485 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
11486 data_location usage to linked list.
11487 (resolve_dynamic_type_internal): Adapt data_location to
11488 linked list.
11489 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
11490 (copy_type_recursive, copy_type): Add copy of linked list.
11491 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
11492 (struct dynamic_prop_list): New struct.
11493 * dwarf2read.c (set_die_type): Set data_location data.
11494
2e7bf1d7
PA
114952015-03-20 Pedro Alves <palves@redhat.com>
11496
11497 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
11498 inner block and make it const.
11499 * machoread.c (get_archive_prefix_len): Make "lparen" const.
11500
7a26bd4d
PA
115012015-03-20 Pedro Alves <palves@redhat.com>
11502
11503 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
11504 * breakpoint.h (set_breakpoint_condition): Update declaration.
11505
cd46431b
PA
115062015-03-20 Pedro Alves <palves@redhat.com>
11507
11508 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
11509
e28566f7
PA
115102015-03-20 Pedro Alves <palves@redhat.com>
11511
11512 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
11513
f6fc92f6
PA
115142015-03-20 Pedro Alves <palves@redhat.com>
11515
11516 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
11517
c32ed3ef
PA
115182015-03-20 Pedro Alves <palves@redhat.com>
11519
11520 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
11521 (nto_init_solib_absolute_prefix): Likewise.
11522
53e78085
PA
115232015-03-20 Pedro Alves <palves@redhat.com>
11524
11525 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
11526 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
11527
bc23328c
JK
115282015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11529
11530 * config/djgpp/README: Remove gdb.hp.
11531
e8ffc436
YQ
115322015-03-20 Yao Qi <yao.qi@linaro.org>
11533
11534 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
11535 set_gdbarch_cannot_step_breakpoint.
11536
23f238d3
PA
115372015-03-19 Pedro Alves <palves@redhat.com>
11538
11539 * linux-nat.c (linux_resume_one_lwp): Rename to ...
11540 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11541 instead call perror_with_name.
11542 (check_ptrace_stopped_lwp_gone): New function.
11543 (linux_resume_one_lwp): Reimplement as wrapper around
11544 linux_resume_one_lwp_throw that swallows errors if the LWP is
11545 gone.
11546 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
11547 swallows errors if the LWP is gone. Use
11548 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
11549
eb54c8bf
PA
115502015-03-19 Pedro Alves <palves@redhat.com>
11551
11552 * linux-nat.c (status_callback): Return early if the LWP has no
11553 status pending.
11554
b90fc188
PA
115552015-03-19 Pedro Alves <palves@redhat.com>
11556
11557 * linux-nat.c (select_event_lwp_callback): Update comment to no
11558 longer mention SIGTRAP.
11559
670f82d4
TG
115602015-03-18 Tristan Gingold <gingold@adacore.com>
11561
72f4393d
L
11562 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
11563 redirection code to ...
11564 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
11565 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 11566
464b0089
GB
115672015-03-18 Gary Benson <gbenson@redhat.com>
11568
11569 (remote_protocol_features): Remove the "vFile:fstat" feature.
11570 (remote_hostio_fstat): Probe for "vFile:fstat" support.
11571
f68f11b7
YQ
115722015-03-11 Yao Qi <yao.qi@linaro.org>
11573
11574 PR tdep/18107
11575 * aarch64-linux-tdep.c: Include xml-syscall.h
11576 (aarch64_linux_get_syscall_number): New function.
11577 (aarch64_linux_init_abi): Call
11578 set_gdbarch_get_syscall_number.
11579 * syscalls/aarch64-linux.xml: New file.
11580
393bd0c0
YG
115812015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
11582
11583 * ser-base.h (ser_base_setstopbits): Change second argument name
11584 from "rate" to "num".
11585
7f3647e2
GB
115862015-03-17 Gary Benson <gbenson@redhat.com>
11587 Luke Allardyce <lukeallardyce@gmail.com>
11588
11589 PR gdb/18131
11590 * common/common-remote-fileio.h (sys/stat.h): New include.
11591 (stuct stat): Remove forward declaration.
11592
3ce5b6e2
JB
115932015-03-16 John Baldwin <jhb@FreeBSD.org>
11594
11595 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
11596 before writing core register notes.
11597
d053f6be
YZ
115982015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
11599 Pedro Alves <palves@redhat.com>
11600
11601 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
11602 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
11603 (tgoto): Wrap with extern "C".
11604
b1a921c8
PA
116052015-03-16 Pedro Alves <palves@redhat.com>
11606 Yuanhui Zhang <asmwarrior@gmail.com>
11607
11608 * stub-termcap.c (tputs): Change prototype.
11609
876d1cd7
YZ
116102015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
11611 Pedro Alves <palves@redhat.com>
11612
11613 * windows-nat.c (struct thread_info_struct): Rename to ...
11614 (struct windows_thread_info_struct): ... this.
11615 (thread_info): Rename to ...
11616 (windows_thread_info): ... this.
11617 All users updated.
11618
0800b440
JK
116192015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11620 Pedro Alves <palves@redhat.com>
11621
11622 * NEWS: New Removed targets and native configurations.
11623
116242015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
11625
11626 Remove HPUX.
11627 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
11628 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
11629 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
11630 ia64-hpux-tdep.h, solib-ia64-hpux.h.
11631 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
11632 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
11633 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
11634 hppa-hpux-tdep.c.
11635 * config/ia64/hpux.mh: Remove file.
11636 * config/pa/hpux.mh: Remove file.
11637 * configure: Rebuilt.
11638 * configure.ac (dlgetmodinfo, somread.o): Remove.
11639 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11640 (ia64-*-hpux*): Remove its float format exception.
11641 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
11642 * hppa-hpux-nat.c: Remove file.
11643 * hppa-hpux-tdep.c: Remove file.
11644 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
11645 Move them here from hppa-tdep.h
11646 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
11647 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
11648 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
11649 Move them to hppa-tdep.c.
11650 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
11651 declarations.
11652 * ia64-hpux-nat.c: Remove file.
11653 * ia64-hpux-tdep.c: Remove file.
11654 * ia64-hpux-tdep.h: Remove file.
11655 * inf-ttrace.c: Remove file.
11656 * inf-ttrace.h: Remove file.
11657 * solib-ia64-hpux.c: Remove file.
11658 * solib-ia64-hpux.h: Remove file.
11659 * solib-pa64.c: Remove file.
11660 * solib-pa64.h: Remove file.
11661 * solib-som.c: Remove file.
11662 * solib-som.h: Remove file.
11663 * somread.c: Remove file.
11664
25268153
JB
116652015-03-13 John Baldwin <jhb@FreeBSD.org>
11666
11667 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
11668 * config.in: Regenerate.
11669 * configure: Regenerate.
11670 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 11671 define.
25268153
JB
11672 (fbsd_find_memory_regions): Use kinfo_getvmmap to
11673 enumerate memory regions if present.
11674
773eacf5
JB
116752015-03-13 John Baldwin <jhb@FreeBSD.org>
11676
11677 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
11678 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
11679 expressions.
11680 (i386fbsd_sigtramp_p): Likewise.
11681
01b6bdb0
JB
116822015-03-12 John Baldwin <jhb@FreeBSD.org>
11683
11684 * MAINTAINERS (Write After Approval): Add John Baldwin.
11685
811a659a
GB
116862015-03-12 Gary Benson <gbenson@redhat.com>
11687
11688 * solib.c (_initialize_solib): Make "set/show sysroot" use
11689 add_setshow_optional_filename_cmd so it can be restored to
11690 empty after being set.
11691
10304ef3
SDJ
116922015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
11693
11694 * Makefile.in (SFILES): New source break-catch-syscall.c.
11695 (COMMON_OBS): New object break-catch-syscall.o.
11696 * break-catch-syscall.c: New file.
11697 * breakpoint.c: Remove inclusion of "xml-syscall.h".
11698 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
11699 (struct syscall_catchpoint): Likewise.
11700 (dtor_catch_syscall): Likewise.
11701 (catch_syscall_inferior_data): Likewise.
11702 (struct catch_syscall_inferior_data): Likewise.
11703 (get_catch_syscall_inferior_data): Likewise.
11704 (catch_syscall_inferior_data_cleanup): Likewise.
11705 (insert_catch_syscall): Likewise.
11706 (remove_catch_syscall): Likewise.
11707 (breakpoint_hit_catch_syscall): Likewise.
11708 (print_it_catch_syscall): Likewise.
11709 (print_one_catch_syscall): Likewise.
11710 (print_mention_catch_syscall): Likewise.
11711 (print_recreate_catch_syscall): Likewise.
11712 (catch_syscall_breakpoint_ops): Likewise.
11713 (syscall_catchpoint_p): Likewise.
11714 (create_syscall_event_catchpoint): Likewise.
11715 (catch_syscall_split_args): Likewise.
11716 (catch_syscall_command_1): Likewise.
11717 (is_syscall_catchpoint_enabled): Likewise.
11718 (catch_syscall_enabled): Likewise.
11719 (catching_syscall_number): Likewise.
11720 (catch_syscall_completer): Likewise.
11721 (clear_syscall_counts): Likewise.
11722 (initialize_breakpoint_ops): Move initialization of syscall
11723 catchpoints to break-catch-syscall.c.
11724 (_initialize_breakpoint): Move code related to syscall catchpoints
11725 to break-catch-syscall.c.
11726
badd37ce
SDJ
117272015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
11728
11729 * breakpoint.c (breakpoint_find_if): New function.
11730 * breakpoint.h (breakpoint_find_if): New prototype.
11731
0a93529c
GB
117322015-03-11 Gary Benson <gbenson@redhat.com>
11733
11734 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
11735 * remote-fileio.c (remote_fileio_to_host_uint): New function.
11736 (remote_fileio_to_host_ulong): Likewise.
11737 (remote_fileio_to_host_mode): Likewise.
11738 (remote_fileio_to_host_time): Likewise.
11739 (remote_fileio_to_host_stat): Likewise.
11740 * remote.c (PACKET_vFile_fstat): New enum value.
11741 (remote_protocol_features): Register the "vFile:fstat" feature.
11742 (remote_hostio_fstat): New function.
11743 (remote_bfd_iovec_stat): Use the above.
11744 (_initialize_remote): Register new "set/show remote
11745 hostio-fstat-packet" command.
11746 * symfile.c (separate_debug_file_exists): Update comment.
11747 * NEWS: Announce new vFile:fstat packet.
11748
791c0056
GB
117492015-03-11 Gary Benson <gbenson@redhat.com>
11750
11751 * common/common-remote-fileio.h: New file.
11752 * common/common-remote-fileio.c: Likewise.
11753 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11754 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
11755 (COMMON_OBS): Add common-remote-fileio.o.
11756 (common-remote-fileio.o): New rule.
11757 * remote-fileio.h (common-remote-fileio.h): New include.
11758 * remote-fileio.c (gdb/fileio.h): Do not include.
11759 (remote_fileio_to_be): Moved to common-remote-fileio.h.
11760 (remote_fileio_to_fio_uint): Likewise.
11761 (remote_fileio_to_fio_time): Likewise.
11762 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
11763 (remote_fileio_to_fio_mode): Likewise.
11764 (remote_fileio_to_fio_ulong): Likewise.
11765 (remote_fileio_to_fio_stat): Likewise.
11766
1390d0ef
AW
117672015-03-11 Andy Wingo <wingo@igalia.com>
11768
11769 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
11770 we were checking the cached type, not the cached dynamic type.
11771
84a4591a
AW
117722015-03-11 Andy Wingo <wingo@igalia.com>
11773
11774 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
11775 other strings, as these are on the GC'd heap, and will be
11776 collected along with the smob.
11777
85642ba0
AW
117782015-03-11 Andy Wingo <wingo@igalia.com>
11779
11780 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
11781 (objfile_functions): Bind gdbscm_objfile_progspace to
11782 objfile-progspace.
11783 * guile/lib/gdb.scm: Add objfile-progspace to exports.
11784
92fab5a6
AW
117852015-03-11 Andy Wingo <wingo@igalia.com>
11786
11787 * guile/guile.c (_initialize_guile): Disable automatic
11788 finalization, if Guile offers us that possibility.
11789 * guile/guile.c (call_initialize_gdb_module):
11790 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
11791 finalizers in appropriate places.
11792 * configure.ac (AC_TRY_LIBGUILE): Add a check for
11793 scm_set_automatic_finalization_enabled.
11794 * configure: Regenerated.
11795
f054145e
AA
117962015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11797
11798 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
11799 SAL, if possible.
11800
18396193
AA
118012015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
11802
11803 * s390-linux-nat.c (struct arch_lwp_info): New.
11804 (s390_fix_watch_points): Rename to...
11805 (s390_prepare_to_resume): ...this. Skip the PER info update
11806 unless the watch points have changed.
11807 (s390_refresh_per_info, s390_new_thread): New functions.
11808 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
11809 s390_fix_watch_points.
11810 (s390_remove_watchpoint): Likewise.
11811 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
11812 Register s390_prepare_to_resume.
11813
9eb1356e
PA
118142015-03-09 Pedro Alves <palves@redhat.com>
11815
11816 Revert:
11817 2015-03-07 Pedro Alves <palves@redhat.com>
11818 * common/gdb_socket.h: New file.
11819 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11820 sys/socket.h.
11821 (net_open): Use union gdb_sockaddr_u.
11822
aac331e4
PA
118232015-03-07 Pedro Alves <palves@redhat.com>
11824
11825 * configure.ac (build_warnings): Move -Wmissing-prototypes
11826 -Wdeclaration-after-statement -Wmissing-parameter-type
11827 -Wold-style-declaration -Wold-style-definition to the C-specific
11828 set.
11829 * configure: Regenerate.
11830
366c75fc
PA
118312015-03-07 Pedro Alves <palves@redhat.com>
11832
11833 * common/gdb_socket.h: New file.
11834 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
11835 sys/socket.h.
11836 (net_open): Use union gdb_sockaddr_u.
11837
72df25b2
PA
118382015-03-07 Pedro Alves <palves@redhat.com>
11839
11840 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
11841 (exceptions_state_mc_action_iter)
11842 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11843 Don't define.
11844 [__cplusplus] (try_scope_depth): New global.
11845 [__cplusplus] (exception_try_scope_entry)
11846 (exception_try_scope_exit, gdb_exception_sliced_copy)
11847 (exception_rethrow): New functions.
11848 (throw_exception): In C++ mode, throw
11849 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
11850 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
11851 (throw_it): In C++ mode, use try_scope_depth.
11852 * common/common-exceptions.h [!__cplusplus]
11853 (exceptions_state_mc_action_iter)
11854 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
11855 Don't declare.
11856 [__cplusplus] (exception_try_scope_entry)
11857 (exception_try_scope_exit, exception_rethrow): Declare.
11858 [__cplusplus] (struct exception_try_scope): New struct.
11859 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
11860 C++ exceptions.
11861 (struct gdb_exception_RETURN_MASK_ALL)
11862 (struct gdb_exception_RETURN_MASK_ERROR)
11863 (struct gdb_exception_RETURN_MASK_QUIT): New types.
11864
284e6217
PA
118652015-03-07 Pedro Alves <palves@redhat.com>
11866
11867 * main.c (handle_command_errors): Remove volatile qualifier from
11868 parameter.
11869
6c63c96a
PA
118702015-03-07 Pedro Alves <palves@redhat.com>
11871
11872 * breakpoint.c (save_breakpoints): Adjust to avoid code between
11873 TRY and CATCH.
11874 * gdbtypes.c (safe_parse_type): Remove empty line.
11875 (types_deeply_equal):
11876 * guile/scm-frame.c (gdbscm_frame_name):
11877 * linux-thread-db.c (find_new_threads_once):
11878 * python/py-breakpoint.c (bppy_get_commands):
11879 * record-btrace.c (record_btrace_insert_breakpoint)
11880 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
11881 (record_btrace_start_replaying): Adjust to avoid code between TRY
11882 and CATCH.
11883
492d29ea
PA
118842015-03-07 Pedro Alves <palves@redhat.com>
11885
11886 * common/common-exceptions.c (struct catcher) <exception>: No
11887 longer a pointer to volatile exception. Now an exception value.
11888 <mask>: Delete field.
11889 (exceptions_state_mc_init): Remove all parameters. Adjust.
11890 (exceptions_state_mc): No longer pop the catcher here.
11891 (exceptions_state_mc_catch): New function.
11892 (throw_exception): Adjust.
11893 * common/common-exceptions.h (exceptions_state_mc_init): Remove
11894 all parameters.
11895 (exceptions_state_mc_catch): Declare.
11896 (TRY_CATCH): Rename to ...
11897 (TRY): ... this. Remove EXCEPTION and MASK parameters.
11898 (CATCH, END_CATCH): New.
11899 All callers adjusted.
11900
ece957c8
TT
119012015-03-07 Tom Tromey <tromey@redhat.com>
11902
11903 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
11904
7556d4a4
PA
119052015-03-07 Pedro Alves <palves@redhat.com>
11906
11907 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11908 (amd64_epilogue_frame_cache): Normal exception handling code.
11909 * break-catch-throw.c (check_status_exception_catchpoint)
11910 (re_set_exception_catchpoint): Ditto.
11911 * cli/cli-interp.c (safe_execute_command):
11912 * cli/cli-script.c (script_from_file): Ditto.
11913 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
11914 Ditto.
11915 * compile/compile-object-run.c (compile_object_run): Ditto.
11916 * cp-abi.c (baseclass_offset): Ditto.
11917 * cp-valprint.c (cp_print_value): Ditto.
11918 * exceptions.c (catch_exceptions_with_msg):
11919 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
11920 * frame.c (get_frame_address_in_block_if_available): Ditto.
11921 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11922 (i386_sigtramp_frame_cache): Ditto.
11923 * infcmd.c (post_create_inferior): Ditto.
11924 * linespec.c (parse_linespec, find_linespec_symbols):
11925 * p-valprint.c (pascal_object_print_value): Ditto.
11926 * parse.c (parse_expression_for_completion): Ditto.
11927 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
11928 * remote.c (remote_get_noisy_reply): Ditto.
11929 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
11930 * solib-svr4.c (solib_svr4_r_map): Ditto.
11931
f873665f 119322015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
11933
11934 * common/common-utils.h (startswith): New inline function.
11935 All places where this logic was used updated to use the above.
11936
68901c4d
PA
119372015-03-05 Pedro Alves <palves@redhat.com>
11938
11939 PR gdb/18002
11940 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
11941 after reading the breakpoint's shadow memory.
11942
2dcb2b1a
MK
119432015-03-05 Mark Kettenis <kettenis@gnu.org>
11944
11945 * hppabsd-nat.c: Remove file.
11946 * hppaobsd-nat.c: New file.
11947 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
11948 hppaobsd-nat.c.
11949 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
11950 hppaobsd-nat.o.
11951
527a273a
PA
119522015-03-04 Pedro Alves <palves@redhat.com>
11953
11954 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
11955 (target_decr_pc_after_break): Delete declaration.
11956 * target.c (default_target_decr_pc_after_break)
11957 (target_decr_pc_after_break): Delete.
11958 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
11959 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
11960 * linux-thread-db.c (check_event): Likewise.
11961 * infrun.c (adjust_pc_after_break): Likewise.
11962 * darwin-nat.c (cancel_breakpoint): Likewise.
11963 * aix-thread.c (aix_thread_wait): Likewise.
11964 * target-delegates.c: Regenerate.
11965
faf09f01
PA
119662015-03-04 Pedro Alves <palves@redhat.com>
11967
11968 * linux-nat.c (save_sigtrap): Check for breakpoints before
11969 checking watchpoints.
11970 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11971 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11972 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
11973 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
11974 (linux_nat_stopped_by_sw_breakpoint)
11975 (linux_nat_supports_stopped_by_sw_breakpoint)
11976 (linux_nat_stopped_by_hw_breakpoint)
11977 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
11978 (linux_nat_wait_1): Don't re-increment the PC if relying on
11979 SIGTRAP's siginfo->si_code.
11980 (linux_nat_add_target): Install new target methods.
11981 * linux-thread-db.c (check_event): Don't account for breakpoint PC
11982 offset if the target already adjusted the PC.
11983 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
11984 (GDB_ARCH_TRAP_BRKPT): New.
11985 (TRAP_HWBKPT): Define if not already defined.
11986
f7e6eed5
PA
119872015-03-04 Pedro Alves <palves@redhat.com>
11988
11989 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
11990 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
11991 Delete field.
11992 <stop_reason>: New field.
11993 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
11994 (packet_set_cmd_state): New function.
11995 (remote_protocol_features): Register the "swbreak" and "hwbreak"
11996 features.
11997 (remote_query_supported): If not disabled with the corresponding
11998 "set remote foo-packet" command, report support for the swbreak
11999 and hwbreak features.
12000 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
12001 field.
12002 <stop_reason>: New field.
12003 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
12004 (remote_wait_as): Adjust.
12005 (remote_stopped_by_sw_breakpoint)
12006 (remote_supports_stopped_by_sw_breakpoint)
12007 (remote_stopped_by_hw_breakpoint)
12008 (remote_supports_stopped_by_hw_breakpoint): New functions.
12009 (remote_stopped_by_watchpoint): New function.
12010 (init_remote_ops): Install them.
12011 (_initialize_remote): Register new "set/show remote
12012 swbreak-feature-packet" and "set/show remote
12013 swbreak-feature-packet" commands.
12014
9e8915c6
PA
120152015-03-04 Pedro Alves <palves@redhat.com>
12016
12017 * btrace.h: Include target/waitstatus.h.
12018 (struct btrace_thread_info) <stop_reason>: New field.
12019 * record-btrace.c (record_btrace_step_thread): Use
12020 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
12021 (record_btrace_decr_pc_after_break): Delete.
12022 (record_btrace_stopped_by_sw_breakpoint)
12023 (record_btrace_supports_stopped_by_sw_breakpoint)
12024 (record_btrace_stopped_by_hw_breakpoint)
12025 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
12026 (init_record_btrace_ops): Install them.
12027 * record-full.c (record_full_hw_watchpoint): Delete and replace
12028 with ...
12029 (record_full_stop_reason): ... this throughout.
12030 (record_full_exec_insn): Adjust.
12031 (record_full_wait_1): Adjust. No longer re-increment the PC.
12032 (record_full_wait_1): Adjust. Use
12033 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
12034 (record_full_stopped_by_watchpoint): Adjust.
12035 (record_full_stopped_by_sw_breakpoint)
12036 (record_full_supports_stopped_by_sw_breakpoint)
12037 (record_full_supports_stopped_by_sw_breakpoint)
12038 (record_full_stopped_by_hw_breakpoint)
12039 (record_full_supports_stopped_by_hw_breakpoint): New functions.
12040 (init_record_full_ops, init_record_full_core_ops): Install them.
12041 * record.c (record_check_stopped_by_breakpoint): New function.
12042 * record.h: Include target/waitstatus.h.
12043 (record_check_stopped_by_breakpoint): New declaration.
12044
15c66dd6
PA
120452015-03-04 Pedro Alves <palves@redhat.com>
12046
12047 enum lwp_stop_reason -> enum target_stop_reason
12048 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
12049 (linux_nat_stopped_by_watchpoint, status_callback)
12050 (linux_nat_wait_1): Adjust.
12051 * linux-nat.h (enum lwp_stop_reason): Delete.
12052 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
12053 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12054 * target/waitstatus.h (enum target_stop_reason): New.
12055
1cf4d951
PA
120562015-03-04 Pedro Alves <palves@redhat.com>
12057
12058 * breakpoint.c (need_moribund_for_location_type): New function.
12059 (bpstat_stop_status): Don't skipping checking moribund locations
12060 of breakpoint types which the target tell caused a stop.
12061 (program_breakpoint_here_p): New function, factored out from ...
12062 (bp_loc_is_permanent): ... this.
12063 (update_global_location_list): Don't create a moribund location if
12064 the target supports reporting stops of the type of the removed
12065 breakpoint.
12066 * breakpoint.h (program_breakpoint_here_p): New declaration.
12067 * infrun.c (adjust_pc_after_break): Return early if the target has
12068 already adjusted the PC. Add comments.
12069 (handle_signal_stop): If nothing explains a signal, and the target
12070 tells us the stop was caused by a software breakpoint, check if
12071 there's a breakpoint instruction in the memory. If so, adjust the
12072 PC before presenting the stop to the user. Otherwise, ignore the
12073 trap. If nothing explains a signal, and the target tells us the
12074 stop was caused by a hardware breakpoint, ignore the trap.
12075 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
12076 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
12077 to_supports_stopped_by_hw_breakpoint>: New fields.
12078 (target_stopped_by_sw_breakpoint)
12079 (target_supports_stopped_by_sw_breakpoint)
12080 (target_stopped_by_hw_breakpoint)
12081 (target_supports_stopped_by_hw_breakpoint): Define.
12082 * target-delegates.c: Regenerate.
12083
79639e11
PA
120842015-03-04 Pedro Alves <palves@redhat.com>
12085
12086 * infrun.c (follow_fork_inferior): Use the whole of the
12087 inferior_ptid and pending_follow.related_pid ptids instead of
12088 building ptids from the process components. Adjust verbose output
12089 to use target_pid_to_str.
12090 * linux-nat.c (linux_child_follow_fork): Use the whole of the
12091 inferior_ptid and pending_follow.related_pid ptids instead of
12092 building ptids from the process components.
12093
e85e8e5e
MK
120942015-03-04 Mark Kettenis <kettenis@gnu.org>
12095
12096 * inf-ptrace.c [PT_GET_PROCESS_STATE]
12097 (inf_ptrace_insert_fork_catchpoint): New function.
12098 (inf_ptrace_remove_fork_catchpoint): New function.
12099 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
12100
87de11c0
AA
121012015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12102
12103 * s390-linux-tdep.c (s390_register_name): Return empty string
12104 instead of NULL for registers that shouldn't be visible.
12105
d851a69a
AA
121062015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12107
12108 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
12109 XML file for 64-bit targets.
12110
b072f6c1
SM
121112015-03-03 Simon Marchi <simon.marchi@ericsson.com>
12112
12113 * target.h (find_default_create_inferior): Remove declaration.
12114 (find_default_attach): Likewise.
12115
c1593e4f
PA
121162015-03-03 Pedro Alves <palves@redhat.com>
12117
12118 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
12119 Use ptid_get_pid to get the overall process id when resuming all
12120 threads.
12121
90ad5e1d
PA
121222015-03-03 Pedro Alves <palves@redhat.com>
12123
12124 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
12125 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
12126 * inf-ptrace.c (get_ptrace_pid): New function.
12127 (inf_ptrace_resume): Use it.
12128 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
12129 to the lower layer.
12130
d68e53f4
MM
121312015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12132
12133 * nat/linux-btrace.c: Include sys/utsname.h.
12134 (linux_determine_kernel_ptr_bits): New.
12135 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
12136 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
12137 ptr_bits.
12138
986b6601
MM
121392015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12140
12141 * btrace.c (ftrace_update_function): Treat return as tailcall for
12142 "_dl_runtime_resolve".
12143
ce0dfbea
MM
121442015-03-03 Markus Metzger <markus.t.metzger@intel.com>
12145
12146 * btrace.h (btrace_function) <lbegin, lend>: Remove.
12147 * btrace.c (ftrace_debug): Do not print the line range.
12148 (ftrace_skip_file, ftrace_update_lines): Remove.
12149 (ftrace_new_function): Remove lbegin and lend initialization.
12150 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
12151 * record-btrace.c (btrace_compute_src_line_range): New.
12152 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
12153
95e50b27
PA
121542015-03-02 Pedro Alves <palves@redhat.com>
12155
12156 * infrun.c (follow_exec): Delete all threads of the process except
12157 the event thread. Extended comments.
12158
00e474c2
JB
121592015-03-02 Joel Brobecker <brobecker@adacore.com>
12160
12161 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
12162
cc7039d3
JB
121632015-03-02 Joel Brobecker <brobecker@adacore.com>
12164
12165 * utils.h: Remove <stdbool.h> #include.
12166 (producer_is_gcc): Change return type to "int".
12167 * utils.c (producer_is_gcc): Change return type to int.
12168 Return 1 instead of true, and 0 instead of false.
12169 Adjust function documentation accordingly.
12170
550bdf96
AA
121712015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12172
12173 * s390-linux-nat.c (have_regset_vxrs): New static variable.
12174 (s390_linux_fetch_inferior_registers): Handle vector registers, if
12175 present.
12176 (s390_linux_store_inferior_registers): Likewise.
12177 (s390_get_hwcap): Remove function. Embed its logic...
12178 (s390_read_description): ...here. Yield a target description with
12179 vector registers if applicable.
12180 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
12181 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
12182 "features/s390x-tevx-linux64.c".
12183 (struct gdbarch_tdep) <v0_full_regnum>: New field.
12184 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
12185 for "GNU/Linux-specific registers".
12186 (s390_dwarf_reg_r0l): New enum value.
12187 (s390_dwarf_reg_to_regnum): Support vector registers.
12188 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
12189 of GPR lower halves.
12190 (regnum_is_vxr_full): New function.
12191 (s390_register_name): New function.
12192 (s390_pseudo_register_name): Handle v0-v15, which are composed of
12193 f0-f15 and v0l-v15l.
12194 (s390_pseudo_register_type): Likewise.
12195 (s390_pseudo_register_read): Likewise.
12196 (s390_pseudo_register_write): Likewise.
12197 (s390_value_from_register): Account for the fact that values are
12198 placed left-justified in vector registers.
12199 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
12200 the vector reggroup and omit them from the general reggroup.
12201 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
12202 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
12203 (s390_iterate_over_regset_sections): Add iterations for the two
12204 new vector regsets.
12205 (s390_core_read_description): Yield a target description with
12206 vector registers if applicable.
12207 (s390_gdbarch_init): Handle target descriptions with vector
12208 registers. Add "register_name" gdbarch method.
12209 (_initialize_s390_tdep): Call new tdesc initialization functions.
12210 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
12211 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
12212 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
12213 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
12214 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
12215 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
12216 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
12217 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
12218 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
12219 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
12220 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
12221 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
12222 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
12223 (S390_NUM_REGS): Adjust value.
12224 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
12225 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
12226 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
12227 * NEWS: Announce S/390 vector register support.
12228
446899e4
AA
122292015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
12230
12231 * features/s390-tevx-linux64.xml: New file.
12232 * features/s390-vx-linux64.xml: New file.
12233 * features/s390-vx.xml: New file.
12234 * features/s390x-tevx-linux64.xml: New file.
12235 * features/s390x-vx-linux64.xml: New file.
12236 * features/Makefile (WHICH): Add s390-vx-linux64,
12237 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
12238 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
12239 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
12240 macros.
12241 * features/s390-tevx-linux64.c: New generated file.
12242 * features/s390-vx-linux64.c: Likewise.
12243 * features/s390x-tevx-linux64.c: Likewise.
12244 * features/s390x-vx-linux64.c: Likewise.
12245 * regformats/s390-tevx-linux64.dat: Likewise.
12246 * regformats/s390-vx-linux64.dat: Likewise.
12247 * regformats/s390x-tevx-linux64.dat: Likewise.
12248 * regformats/s390x-vx-linux64.dat: Likewise.
12249
b7236fbe
DE
122502015-02-28 Doug Evans <xdje42@gmail.com>
12251
12252 * symtab.h (struct symtab) <next>: Fix comment.
12253
02e62830
SM
122542015-02-27 Simon Marchi <simon.marchi@ericsson.com>
12255
12256 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
12257 python_GdbMethods.
12258
bf36a1e7
PA
122592015-02-27 Pedro Alves <palves@redhat.com>
12260
12261 * dtrace-probe.c (dtrace_probe_ops): Make extern.
12262
ad6aff7d
PA
122632015-02-27 Pedro Alves <palves@redhat.com>
12264
12265 * common/common-exceptions.h (exception_none): Declare.
12266 * common/common-exceptions.c (exception_none): Moved from
12267 exceptions.c.
12268 (exceptions_state_mc_init): Use exception_none.
12269 * exceptions.c (exception_none): Move to
12270 common/common-exceptions.c.
12271 * exceptions.h (exception_none): Move to
12272 common/common-exceptions.h.
12273
97c18565
PA
122742015-02-27 Pedro Alves <palves@redhat.com>
12275
12276 * main.c (catch_command_errors, catch_command_errors_const):
12277 Remove 'mask' argument. Adjust.
12278 (captured_main): Adjust callers.
12279
e992c591
PA
122802015-02-27 Pedro Alves <palves@redhat.com>
12281
12282 * python/python-internal.h: Include "extension-priv.h".
12283
64166036
PA
122842015-02-27 Pedro Alves <palves@redhat.com>
12285
12286 * breakpoint.h (enum print_stop_action): Move further up in the
12287 file.
12288
8a526fa6
PA
122892015-02-27 Pedro Alves <palves@redhat.com>
12290
12291 * gdbarch.sh: Include regcache.h.
12292 * gdbarch.h: Regenerate.
12293
0fa9c223
PA
122942015-02-27 Pedro Alves <palves@redhat.com>
12295
12296 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
12297 Remove duplicate const.
12298 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
12299 duplicate const.
12300
7cf99fb1
PA
123012015-02-27 Pedro Alves <palves@redhat.com>
12302
12303 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
12304 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
12305 * features/feature_to_c.sh: Tag the generated xml_builtin array
12306 with extern const in C++ mode.
12307
1424c16e
TT
123082015-02-27 Tom Tromey <tromey@redhat.com>
12309
12310 * minidebug.c (struct lzma_stream): Rename to ...
12311 (struct gdb_lzma_stream): ... this.
12312 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
12313
10367c7c
PA
123142015-02-27 Pedro Alves <palves@redhat.com>
12315
12316 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
12317 function.
12318 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
12319 (mi_cmd_stack_list_variables): Use it.
12320
4180215b
PA
123212015-02-27 Pedro Alves <palves@redhat.com>
12322
12323 * x86-linux-nat.c (u_debugreg_offset): New function.
12324 (x86_linux_dr_get, x86_linux_dr_set): Use it.
12325
2f56f7c3
PA
123262015-02-27 Pedro Alves <palves@redhat.com>
12327
12328 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
12329 declaration.
12330 Include break-common.h.
12331
570dc176
TT
123322015-02-27 Tom Tromey <tromey@redhat.com>
12333 Pedro Alves <palves@redhat.com>
12334
12335 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
12336 local used to iterate over enums.
12337 * completer.c (signal_completer): Likewise.
12338 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
12339 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
12340 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
12341 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
12342 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
12343 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
12344 * tui-wingeneral.c (tui_refresh_all): Likewise.
12345
68c14faa
PA
123462015-02-27 Pedro Alves <palves@redhat.com>
12347
12348 * target.h: Include "infrun.h".
12349
749bab01
PA
123502015-02-27 Pedro Alves <palves@redhat.com>
12351
12352 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
12353
3c14e5a3
PA
123542015-02-27 Pedro Alves <palves@redhat.com>
12355
12356 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
12357 (IPA_SYM): Use it.
12358 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
12359
56000a98
PA
123602015-02-27 Pedro Alves <palves@redhat.com>
12361
12362 * cli-out.c (_rl_erase_entire_line): Move declaration out of
12363 cli_mld_erase_entire_line, and make it extern "C".
12364 * common/common-defs.h (EXTERN_C): New.
12365 * completer.c (_rl_completion_prefix_display_length)
12366 (_rl_print_completions_horizontally, QSFUNC): Move declarations
12367 out of gdb_display_match_list_1.
12368 (_rl_qsort_string_compare): Move declaration out of
12369 gdb_display_match_list_1, and make it extern "C".
12370 * defs.h (re_comp): Use EXTERN_C.
12371 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
12372 and make it extern "C".
12373 (monstartup): Move declaration out of maintenance_set_profile_cmd,
12374 and make it extern "C".
12375 (main): Move declaration out of maintenance_set_profile_cmd.
12376 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
12377 EXTERN_C.
12378
bcabf420
PA
123792015-02-27 Pedro Alves <palves@redhat.com>
12380
12381 * python/python.c (GdbMethods): Rename to ...
12382 (python_GdbMethods): ... this and make extern.
12383 (GdbModuleDef): Rename to ...
12384 (python_GdbModuleDef): ... this and make extern.
12385
928dbe07
PA
123862015-02-27 Pedro Alves <palves@redhat.com>
12387
12388 * record-btrace.c (set_record_btrace_cmdlist)
12389 (show_record_btrace_cmdlist): Remove redefinitions.
12390
52059ffd
TT
123912015-02-27 Tom Tromey <tromey@redhat.com>
12392 Pedro Alves <palves@redhat.com>
12393
12394 * dwarf2-frame.c (enum cfa_how_kind, struct
12395 dwarf2_frame_state_reg_info): Move out of struct
12396 dwarf2_frame_state.
12397 * dwarf2read.c (struct tu_stats): Move out of struct
12398 dwarf2_per_objfile.
12399 (struct file_entry): Move out of struct line_header.
12400 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
12401 typedef_field_list): Move out of struct field_info.
12402 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
12403 Move out of struct dynamic_prop.
12404 (union type_owner, union field_location, struct field, struct
12405 range_bounds, union type_specific): Move out of struct main_type.
12406 (struct fn_fieldlist, struct fn_field, struct typedef_field)
12407 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
12408 (struct call_site_target, union call_site_parameter_u, struct
12409 call_site_parameter): Move out of struct call_site.
12410 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
12411 m32c_prologue.
12412 (enum srcdest_kind): Move out of struct srcdest.
12413 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
12414 * prologue-value.h (enum prologue_value_kind): Move out of struct
12415 prologue_value.
12416 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
12417 gdbarch_tdep.
12418 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
12419 out of struct field_info.
12420 * symfile.h (struct other_sections): Move out of struct
12421 section_addr_info.
12422 * symtab.c (struct symbol_cache_slot): Move out struct
12423 block_symbol_cache.
12424 * target-descriptions.c (enum tdesc_type_kind): Move out of
12425 typedef struct tdesc_type.
12426 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
12427 struct tui_line_or_address.
12428 * value.c (enum internalvar_kind, union internalvar_data): Move
12429 out of struct internalvar.
12430 * xtensa-tdep.h (struct ctype_cache): Move out of struct
12431 gdbarch_tdep.
12432
fe978cb0
PA
124332015-02-27 Tom Tromey <tromey@redhat.com>
12434 Pedro Alves <palves@redhat.com>
12435
12436 Rename symbols whose names are reserved C++ keywords throughout.
12437
3bc3d82a
PA
124382015-02-27 Pedro Alves <palves@redhat.com>
12439
12440 * Makefile.in (COMPILER): New, get it from autoconf.
12441 (COMPILE.pre, CC_LD): Use COMPILER.
12442 (CXX): Get from autoconf instead.
12443 (CXX_FOR_TARGET): Default to g++ instead of gcc.
12444 * acinclude.m4: Include build-with-cxx.m4.
12445 * build-with-cxx.m4: New file.
12446 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12447 Disable -Werror by default if building in C++ mode.
12448 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12449 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
12450 Run supported-warning-flags tests with the C++ compiler.
12451 Save/restore CXXFLAGS too.
12452 * configure: Regenerate.
12453
07697489
PA
124542015-02-27 Pedro Alves <palves@redhat.com>
12455
12456 * libiberty.m4: New file.
12457 * acinclude.m4: Include libiberty.m4.
12458 * configure.ac: Call libiberty_INIT.
12459 * config.in, configure: Regenerate.
12460
60abeae4
AA
124612015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
12462
12463 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
12464 31-bit targets, but 64-bit targets as well.
12465 (s390_gnu_triplet_regexp): New function.
12466 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
12467 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
12468 method.
12469
f44466fb 124702015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
12471
12472 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
12473 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
12474 from CONTEXT_DEBUGGER.
12475
0def5aaa
DE
124762015-02-26 Doug Evans <dje@google.com>
12477
12478 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
12479 CHECK_TYPEDEF.
12480 (set_type_vptr_fieldno): Ditto.
12481 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
12482 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
12483
77b64a49
PA
124842015-02-26 Pedro Alves <palves@redhat.com>
12485
12486 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
12487 * complaints.c (vcomplaint): Pass argument FMT directly to
12488 printf-like functions instead of complaint->fmt.
12489 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
12490 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
12491 * compile/compile-loc2c.c (pushf, unary, binary): Add
12492 ATTRIBUTE_PRINTF.
12493 (do_compile_dwarf_expr_to_c): Pass string literal as format string
12494 to pushf.
12495 (BINARY): Pass string literal as format string to 'binary'.
12496 * compile/compile-object-load.c (link_callbacks_einfo): Add
12497 ATTRIBUTE_PRINTF.
12498 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
12499
532f44ed
PA
125002015-02-26 Pedro Alves <palves@redhat.com>
12501
12502 * windows-termcap.c: Rename to ...
12503 * stub-termcap.c: ... this. Adjust header line.
12504 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
12505 windows-termcap.c.
12506 * configure: Regenerate.
12507 * configure.ac: Refer to stub-termcap.o instead of
12508 windows-termcap.o.
12509 * gdb_curses.h: Mention stub-termcap.c instead of
12510 windows-termcap.c.
12511
081a1c2c
JK
125122015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12513
12514 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
12515 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
12516
2f41223f
AT
125172015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
12518
12519 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
12520
80c57053
JK
125212015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12522
12523 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
12524 bfd_canonicalize_symtab.
12525
cf424aef
JB
125262015-02-25 John Baldwin <jhb@FreeBSD.org>
12527
12528 * amd64fbsd-nat.c: Include sys/user.h.
12529 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12530 instead of KERN_PS_STRINGS to locate the signal trampoline.
12531 * i386fbsd-nat.c: Include sys/user.h.
12532 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
12533 instead of KERN_PS_STRINGS to locate the signal trampoline.
12534 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
12535 (amd64fbsd_sigtramp_p): New.
12536 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
12537 longer set default values.
12538 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
12539 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
12540 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
12541 (i386fbsd_freebsd4_sigtramp_start)
12542 (i386fbsd_freebsd4_sigtramp_middle)
12543 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
12544 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
12545 (i386fbsd_sigtramp_p): New.
12546 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
12547 longer set default values.
12548 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
12549
c5cb74ee
JB
125502015-02-25 John Baldwin <jhb@freebsd.org>
12551
12552 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
12553 get_frame_register instead of frame_unwind_register_unsigned.
12554
17487d85
JK
125552015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12556
12557 PR build/18033
12558 * compile/compile-c-support.c (c_compute_program): Change // comment.
12559 * compile/compile-object-load.c (setup_sections): Change // comment.
12560
9357a9e6
JB
125612015-02-26 Joel Brobecker <brobecker@adacore.com>
12562
12563 PR build/18033:
12564 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
12565
1f10ba14
PA
125662015-02-23 Pedro Alves <palves@redhat.com>
12567
12568 * remote.c (skip_to_semicolon): New function.
12569 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
12570 special case the stop reasons that look like hex numbers
12571 upfront. Instead handle real register numbers after matching
12572 all the known stop reasons.
12573
96553a0c
DE
125742015-02-21 Doug Evans <dje@google.com>
12575
12576 PR c++/17976, symtab/17821
12577 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
12578 is_in_anonymous. All callers updated.
12579 (find_symbol_in_baseclass): Ditto.
12580 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
12581 for symbols in an anonymous namespace.
12582 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
12583 DW_AT_name directly.
12584 (dwarf2_name): Convert missing namespace name to
12585 CP_ANONYMOUS_NAMESPACE_STR.
12586
2db9a427
PA
125872015-02-20 Pedro Alves <palves@redhat.com>
12588
12589 * linux-nat.c (linux_handle_extended_wait): Call
12590 thread_db_notice_clone whenever a new clone LWP is detected.
12591 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
12592 functions.
12593 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
12594 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
12595 (linux_unstop_all_lwps): Declare.
12596 * linux-thread-db.c (struct thread_get_info_inout): Delete.
12597 (thread_get_info_callback): Delete.
12598 (thread_from_lwp): Use td_thr_get_info and record_thread.
12599 (thread_db_attach_lwp): Delete.
12600 (thread_db_notice_clone): New function.
12601 (try_thread_db_load_1): If /proc is mounted and shows the
12602 process'es task list, walk over all LWPs and call thread_from_lwp
12603 instead of relying on td_ta_thr_iter.
12604 (attach_thread): Don't call check_thread_signals here. Split the
12605 tail part of the function (which adds the thread to the core GDB
12606 thread list) to ...
12607 (record_thread): ... this function. Call check_thread_signals
12608 here.
12609 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
12610 call thread_from_lwp.
12611 (thread_db_update_thread_list): Rename to ...
12612 (thread_db_update_thread_list_org): ... this.
12613 (thread_db_update_thread_list): New function.
12614 (thread_db_find_thread_from_tid): Delete.
12615 (thread_db_get_ada_task_ptid): Simplify.
12616 * nat/linux-procfs.c: Include <sys/stat.h>.
12617 (linux_proc_task_list_dir_exists): New function.
12618 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
12619
3b27ef47
PA
126202015-02-20 Pedro Alves <palves@redhat.com>
12621
12622 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
12623 main LWP. Handle the case of waitpid returning 0 if we're already
12624 attached to the LWP. Don't set the LWP's last_resume_kind to
12625 resume_stop if we already knew about the LWP.
12626 (linux_nat_filter_event): Add debug logs.
12627
1cc28231
PA
126282015-02-20 Pedro Alves <palves@redhat.com>
12629
12630 * target.h (forward_target_decr_pc_after_break): Delete
12631 declaration.
12632
5c5019c2
PA
126332015-02-20 Pedro Alves <palves@redhat.com>
12634
12635 PR threads/18006
12636 * linux-thread-db.c (thread_get_info_callback): Return early if
12637 the thread's lwp id is -1.
12638
f3978e91
JB
126392015-02-20 Joel Brobecker <brobecker@adacore.com>
12640
12641 GDB 7.9 released.
12642
ffdf88ec
SE
126432015-02-19 Steve Ellcey <sellcey@imgtec.com>
12644
12645 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
12646 (dtrace_get_probes) Change type of variable 'dof'.
12647
c9587f88
AT
126482015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12649
12650 PR breakpoints/16812
12651 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
12652 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
12653 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
12654
53cf2ee0
DT
126552015-02-19 David Taylor <dtaylor@emc.com>
12656
12657 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
12658
acfe0940
PP
126592015-02-18 Patrick Palka <patrick@parcs.ath.cx>
12660
12661 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
12662 function.
12663 (tui_putc): Don't call tui_handle_resize_during_io.
12664 (tui_getc): Likewise.
12665 (tui_mld_getc): Likewise.
12666 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
12667 (tui_sigwinch_token): New static variable.
12668 (tui_initialize_win): Adjust documentation. Set
12669 tui_sigwinch_token.
12670 (tui_async_resize_screen): New asynchronous callback.
12671 (tui_sigwinch_handler): Adjust documentation. Asynchronously
12672 invoke tui_async_resize_screen.
12673
f6a88844
JM
126742015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
12675
12676 * configure: Regenerated.
12677 * configure.ac: Use GDB_AC_TRANSFORM.
12678 * Makefile.in (aclocal_m4_deps): Added transform.m4.
12679 * acinclude.m4: sinclude transform.m4.
12680 * transform.m4: New file.
12681 (GDB_AC_TRANSFORM): New macro.
12682
b05e3b0d
JM
126832015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12684
12685 * NEWS: Announce the support for DTrace SDT probes.
12686
c3e3045e
JM
126872015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12688
12689 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
12690 (amd64_dtrace_parse_probe_argument): New function.
12691 (amd64_dtrace_probe_is_enabled): Likewise.
12692 (amd64_dtrace_enable_probe): Likewise.
12693 (amd64_dtrace_disable_probe): Likewise.
12694 (amd64_linux_init_abi): Register the
12695 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
12696 `gdbarch_dtrace_disable_probe' and
12697 `gdbarch_dtrace_probe_is_enabled' hooks.
12698 (amd64_dtrace_disabled_probe_sequence_1): New constant.
12699 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
12700 (amd64_dtrace_enable_probe_sequence): Likewise.
12701 (amd64_dtrace_disable_probe_sequence): Likewise.
12702
d4777acb
JM
127032015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12704
12705 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
12706 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
12707 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
12708 handle ELF files.
12709 * Makefile.in (SFILES): dtrace-probe.c added.
12710 * configure: Regenerate.
12711 * dtrace-probe.c: New file.
12712 (SHT_SUNW_dof): New constant.
12713 (dtrace_probe_type): New enum.
12714 (dtrace_probe_arg): New struct.
12715 (dtrace_probe_arg_s): New typedef.
12716 (struct dtrace_probe_enabler): New struct.
12717 (dtrace_probe_enabler_s): New typedef.
12718 (dtrace_probe): New struct.
12719 (dtrace_probe_is_linespec): New function.
12720 (dtrace_dof_sect_type): New enum.
12721 (dtrace_dof_dofh_ident): Likewise.
12722 (dtrace_dof_encoding): Likewise.
12723 (DTRACE_DOF_ENCODE_LSB): Likewise.
12724 (DTRACE_DOF_ENCODE_MSB): Likewise.
12725 (dtrace_dof_hdr): New struct.
12726 (dtrace_dof_sect): Likewise.
12727 (dtrace_dof_provider): Likewise.
12728 (dtrace_dof_probe): Likewise.
12729 (DOF_UINT): New macro.
12730 (DTRACE_DOF_PTR): Likewise.
12731 (DTRACE_DOF_SECT): Likewise.
12732 (dtrace_process_dof_probe): New function.
12733 (dtrace_process_dof): Likewise.
12734 (dtrace_build_arg_exprs): Likewise.
12735 (dtrace_get_arg): Likewise.
12736 (dtrace_get_probes): Likewise.
12737 (dtrace_get_probe_argument_count): Likewise.
12738 (dtrace_can_evaluate_probe_arguments): Likewise.
12739 (dtrace_evaluate_probe_argument): Likewise.
12740 (dtrace_compile_to_ax): Likewise.
12741 (dtrace_probe_destroy): Likewise.
12742 (dtrace_gen_info_probes_table_header): Likewise.
12743 (dtrace_gen_info_probes_table_values): Likewise.
12744 (dtrace_probe_is_enabled): Likewise.
12745 (dtrace_probe_ops): New variable.
12746 (info_probes_dtrace_command): New function.
12747 (_initialize_dtrace_probe): Likewise.
12748 (dtrace_type_name): Likewise.
12749
8b367e17
JM
127502015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12751
12752 * gdbarch.sh (dtrace_parse_probe_argument): New.
12753 (dtrace_probe_is_enabled): Likewise.
12754 (dtrace_enable_probe): Likewise.
12755 (dtrace_disable_probe): Likewise.
12756 * gdbarch.c: Regenerate.
12757 * gdbarch.h: Regenerate.
12758
9aca2ff8
JM
127592015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12760
12761 * stap-probe.c (stap_probe_ops): Add NULLs in the static
12762 stap_probe_ops for `enable_probe' and `disable_probe'.
12763 * probe.c (enable_probes_command): New function.
12764 (disable_probes_command): Likewise.
12765 (_initialize_probe): Define the cli commands `enable probe' and
12766 `disable probe'.
12767 (parse_probe_linespec): New function.
12768 (info_probes_for_ops): Use parse_probe_linespec.
12769 * probe.h (probe_ops): New hooks `enable_probe' and
12770 `disable_probe'.
12771
03e98035
JM
127722015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12773
12774 * probe.c (compute_probe_arg): Moved from stap-probe.c
12775 (compile_probe_arg): Likewise.
12776 (probe_funcs): Likewise.
12777 * stap-probe.c (compute_probe_arg): Moved to probe.c.
12778 (compile_probe_arg): Likewise.
12779 (probe_funcs): Likewise.
12780
6f9b8491
JM
127812015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
12782
12783 * probe.c (print_ui_out_not_applicables): New function.
12784 (exists_probe_with_pops): Likewise.
12785 (info_probes_for_ops): Do not include column headers for probe
12786 types for which no probe has been actually found on any object.
12787 Also invoke `print_ui_out_not_applicables' in order to match the
12788 column rows with the header when probes of several types are
12789 listed.
12790 Print the "Type" column.
12791 * probe.h (probe_ops): Added a new probe operation `type_name'.
12792 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
12793 (stap_type_name): New function.
12794
69efdff1
PP
127952015-02-17 Patrick Palka <patrick@parcs.ath.cx>
12796
12797 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
12798 (key_is_command_char): Delete.
12799
f8e5e23e
PA
128002015-02-17 Pedro Alves <palves@redhat.com>
12801
12802 * tui/tui.c (tui_enable): Resize windows before anything
12803 might show a window.
12804
9f2e0721
MO
128052015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
12806
12807 PR gdb/17984
12808 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
12809 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
12810 call.
12811 * aarch64-tdep.h (tdesc_aarch64): Declare.
12812
171e6b1c
MW
128132015-02-12 Mark Wielaard <mjw@redhat.com>
12814
12815 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
12816
d5ff0482
DE
128172015-02-13 Doug Evans <dje@google.com>
12818
12819 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
12820 anonymous_namespace to is_in_anonymous for consistency with the rest
12821 of the file.
12822 (cp_lookup_bare_symbol): Fix typo in comment.
12823 (cp_search_static_and_baseclasses): Ditto.
12824 (search_symbol_list): Use vertical space in comment better.
12825 (reset_directive_searched): Ditto. Fix typo.
12826 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
12827
9f04ac5f
YQ
128282015-02-13 Yao Qi <yao.qi@arm.com>
12829
12830 * MAINTAINERS: Update my email address.
12831
013d0319
DE
128322015-02-12 Doug Evans <dje@google.com>
12833
b615dd20 12834 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 12835
9a7e538e
DE
128362015-02-12 Doug Evans <dje@google.com>
12837
12838 * completer.c (complete_line): Remove incorrect comment.
12839
e1fcd575
JK
128402015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12841
12842 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
12843 (py_print_frame): Use RETURN_MASK_ERROR.
12844
b99bf4e3
JK
128452015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12846
12847 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
12848 function comment. Wrap all function that can throw in cleanups.
12849 (gdbpy_apply_frame_filter): Wrap all function that can throw in
12850 cleanups.
12851
800eb1ce
JK
128522015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12853
12854 * python/py-framefilter.c (py_print_frame): Substitute goto error.
12855 Remove the error label.
12856
34019068
JK
128572015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12858
12859 * python/py-framefilter.c (py_print_frame): Put conditional code paths
12860 with goto first, indent the former else codepath left. Put variable
12861 'elided' to a new inner block.
12862
8d4a54e2
JK
128632015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12864
12865 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
12866
18ad82c1
PA
128672015-02-11 Pedro Alves <palves@redhat.com>
12868
12869 * xcoffread.c (within_function): Delete.
12870
e36122e9
TT
128712015-02-11 Tom Tromey <tromey@redhat.com>
12872 Pedro Alves <palves@redhat.com>
12873
12874 * breakpoint.c (base_breakpoint_ops): Delete.
12875 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
12876 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
12877 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
12878 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
12879 * python/py-arch.c (arch_object_type): Make extern.
12880 * python/py-block.c (block_syms_iterator_object_type): Make extern.
12881 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
12882 * python/py-cmd.c (cmdpy_object_type): Make extern.
12883 * python/py-continueevent.c (continue_event_object_type)
12884 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
12885 parameter. Update all callers.
12886 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
12887 * python/py-exitedevent.c (exited_event_object_type): Make extern.
12888 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
12889 * python/py-function.c (fnpy_object_type): Make extern.
12890 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
12891 * python/py-infevents.c (call_pre_event_object_type)
12892 (inferior_call_post_event_object_type).
12893 (memory_changed_event_object_type): Make extern.
12894 * python/py-infthread.c (thread_object_type): Make extern.
12895 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
12896 * python/py-linetable.c (linetable_entry_object_type)
12897 (linetable_object_type, ltpy_iterator_object_type): Make extern.
12898 * python/py-newobjfileevent.c (new_objfile_event_object_type)
12899 (clear_objfiles_event_object_type): Make extern.
12900 * python/py-objfile.c (objfile_object_type): Make extern.
12901 * python/py-param.c (parmpy_object_type): Make extern.
12902 * python/py-progspace.c (pspace_object_type): Make extern.
12903 * python/py-signalevent.c (signal_event_object_type): Make extern.
12904 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
12905 * python/py-type.c (type_object_type, field_object_type)
12906 (type_iterator_object_type): Make extern.
12907 * python/python.c (python_extension_script_ops)
12908 (python_extension_ops): Make extern.
12909 * stap-probe.c (stap_probe_ops): Make extern.
12910
0703599a
PA
129112015-02-11 Pedro Alves <pedro@codesourcery.com>
12912
12913 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
12914 because the event thread is not the current thread.
12915
eaaf76ab
DE
129162015-02-11 Doug Evans <xdje42@gmail.com>
12917
12918 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
12919 been initialized yet, return NULL.
12920
e7d52ed3
DE
129212015-02-11 Doug Evans <dje@google.com>
12922
12923 * symfile.h (new_symfile_objfile): Delete.
12924 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
12925 All callers updated.
12926
fc6b1256
PP
129272015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12928
12929 * tui/tui-io.c (tui_handle_resize_during_io): Call
12930 tui_update_gdb_sizes() after resizing the screen.
12931 * tui/tui.c (tui_enable): Resize the terminal before
12932 calling tui_update_gdb_sizes().
12933
d9080678
PP
129342015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12935
12936 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
12937 line before printing a newline.
12938
9f615e3a
MW
129392015-02-11 Mark Wielaard <mjw@redhat.com>
12940
12941 * utils.c (producer_is_gcc): Return true or false.
12942
d9080678 129432015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
12944
12945 * utils.h (producer_is_gcc): Change return type to bool. Add major
12946 argument.
12947 * utils.c (producer_is_gcc): Likewise.
12948 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
12949 * dwarf2read.c (check_producer): Likewise.
12950
b052c4fb
PA
129512015-02-10 Pedro Alves <palves@redhat.com>
12952
12953 * infrun.c (displaced_step_fixup): Switch to the event thread
12954 before calling gdbarch_displaced_step_fixup.
12955
3ac240d4
AT
129562015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12957
12958 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
12959
c1cc6152
SM
129602015-02-10 Simon Marchi <simon.marchi@ericsson.com>
12961
12962 * ada-varobj.c (ada_name_of_child): Constify parent.
12963 (ada_path_expr_of_child): Same.
12964 (ada_value_of_child): Same.
12965 (ada_type_of_child): Same.
12966 * c-varobj.c (c_is_path_expr_parent): Same.
12967 (c_describe_child): Same.
12968 (c_name_of_child): Same.
12969 (c_value_of_child): Same.
12970 (c_type_of_child): Same.
12971 (cplus_number_of_children): Same.
12972 (cplus_describe_child): Constify var.
12973 (cplus_name_of_child): Constify parent.
12974 (cplus_value_of_child): Same.
12975 (cplus_type_of_child): Same.
12976 * jv-varobj.c (java_name_of_child): Same.
12977 (java_value_of_child): Same.
12978 (java_type_of_child): Same.
12979 * varobj.c (value_of_child): Same.
12980 (varobj_default_is_path_expr_parent): Constify var, parent and return
12981 value.
12982 (varobj_get_path_expr): Constify var, modify path_expr through
12983 mutable_var.
12984 (install_new_value): Constify parent.
12985 (value_of_child): Constify parent.
12986 * varobj.h (struct varobj): Constify parent.
12987 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
12988 type_of_child.
12989 (varobj_get_path_expr): Constify var.
12990 (varobj_get_path_expr_parent): Constify var and return value.
12991
c1ee9414
LM
129922015-02-10 Luis Machado <lgustavo@codesourcery.com>
12993
12994 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
12995 (arm_prologue_this_id): Move PC and SP limit checks to
12996 arm_prologue_unwind_stop_reason.
12997 (arm_prologue_unwind) <stop_reason> : Set to
12998 arm_prologue_unwind_stop_reason.
12999
f7de9aab
MW
130002015-02-09 Mark Wielaard <mjw@redhat.com>
13001
13002 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
13003 DW_LANG_Fortran08 as language_fortran.
13004
0b24eb2d
SDJ
130052015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
13006
13007 PR remote/17946
13008 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
13009 of pointer against char.
13010
a2c2acaf
MW
130112015-02-09 Mark Wielaard <mjw@redhat.com>
13012
13013 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
13014 (c_type_print_modifier): Likewise.
13015 * dwarf2read.c (read_tag_atomic_type): New function.
13016 (read_type_die_1): Handle DW_TAG_atomic_type.
13017 * gdbtypes.c (make_atomic_type): New function.
13018 (recursive_dump_type): Handle TYPE_ATOMIC.
13019 * gdbtypes.h (enum type_flag_values): Renumber.
13020 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
13021 (TYPE_ATOMIC): New macro.
13022 (make_atomic_type): Declare.
13023
31fd9caa
MM
130242015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13025
13026 * btrace.c (ftrace_find_call): Skip gaps.
13027 (ftrace_new_function): Initialize level.
13028 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
13029 (ftrace_new_switch): Update
13030 level computation.
13031 (ftrace_new_gap): New.
13032 (ftrace_update_function): Create new function after gap.
13033 (btrace_compute_ftrace_bts): Create gap on error.
13034 (btrace_stitch_bts): Update parameters. Clear trace if it
13035 becomes empty.
13036 (btrace_stitch_trace): Update parameters. Update callers.
13037 (btrace_clear): Reset the number of gaps.
13038 (btrace_insn_get): Return NULL if the iterator points to a gap.
13039 (btrace_insn_number): Return zero if the iterator points to a gap.
13040 (btrace_insn_end): Allow gaps at the end.
13041 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
13042 (btrace_find_insn_by_number): Assert that the found iterator does
13043 not point to a gap.
13044 (btrace_call_next, btrace_call_prev): Assert that the last function
13045 is not a gap.
13046 * btrace.h (btrace_bts_error): New.
13047 (btrace_function): Update comment.
13048 (btrace_function) <insn, insn_offset, number>: Update comment.
13049 (btrace_function) <errcode>: New.
13050 (btrace_thread_info) <ngaps>: New.
13051 (btrace_thread_info) <replay>: Update comment.
13052 (btrace_insn_get): Update comment.
13053 * record-btrace.c (btrace_ui_out_decode_error): New.
13054 (record_btrace_info): Print number of gaps.
13055 (btrace_insn_history, btrace_call_history): Call
13056 btrace_ui_out_decode_error for gaps.
13057 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
13058
afb778a2
MM
130592015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13060
13061 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
13062 * nat/linux-btrace.c: (btrace_this_cpu): New.
13063 (cpu_supports_bts): Call btrace_this_cpu.
13064 (intel_supports_bts): Add cpu parameter.
13065
7d5c24b3
MM
130662015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13067
13068 * btrace.h (btrace_insn_class): New.
13069 (btrace_insn) <size, iclass>: New.
13070 * btrace.c (ftrace_find_call): Update parameters. Update users.
13071 Use instruction classification.
13072 (ftrace_new_return): Update parameters. Update users.
13073 (ftrace_update_function): Update parameters. Update users. Use
13074 instruction classification.
13075 (ftrace_update_insns): Update parameters. Update users.
13076 (ftrace_classify_insn): New.
13077 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
13078 TRY_CATCH around call to gdb_insn_length.
13079
76235df1
MM
130802015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13081
13082 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
13083 Update parameters. Update users.
13084
d33501a5
MM
130852015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13086
13087 * btrace.c (parse_xml_btrace_conf_bts): Add size.
13088 (btrace_conf_bts_attributes): New.
13089 (btrace_conf_children): Add attributes.
13090 * common/btrace-common.h (btrace_config_bts): New.
13091 (btrace_config)<bts>: New.
13092 (btrace_config): Update comment.
13093 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
13094 Use config.
13095 * features/btrace-conf.dtd: Increment version. Add size
13096 attribute to bts element.
13097 * record-btrace.c (set_record_btrace_bts_cmdlist,
13098 show_record_btrace_bts_cmdlist): New.
13099 (record_btrace_adjust_size, record_btrace_print_bts_conf,
13100 record_btrace_print_conf, cmd_set_record_btrace_bts,
13101 cmd_show_record_btrace_bts): New.
13102 (record_btrace_info): Call record_btrace_print_conf.
13103 (_initialize_record_btrace): Add commands.
13104 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
13105 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
13106 (btrace_sync_conf): Synchronize bts size.
13107 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
13108 * NEWS: Announce new commands and new packets.
13109
f4abbc16
MM
131102015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13111
13112 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
13113 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
13114 (x86_linux_btrace_conf): New.
13115 (x86_linux_create_target): Initialize to_btrace_conf.
13116 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
13117 Check format. Split into this and ...
13118 (linux_enable_bts): ... this.
13119 (linux_btrace_conf): New.
13120 (perf_event_skip_record): Renamed into ...
13121 (perf_event_skip_bts_record): ... this. Updated users.
13122 (linux_disable_btrace): Split into this and ...
13123 (linux_disable_bts): ... this.
13124 (linux_read_btrace): Check format.
13125 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
13126 (linux_btrace_conf): New.
13127 (btrace_target_info)<ptid>: Moved.
13128 (btrace_target_info)<conf>: New.
13129 (btrace_target_info): Split into this and ...
13130 (btrace_tinfo_bts): ... this. Updated users.
13131 * btrace.c (btrace_enable): Update parameters.
13132 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
13133 (btrace_conf_children, btrace_conf_attributes)
13134 (btrace_conf_elements): New.
13135 * btrace.h (btrace_enable): Update parameters.
13136 (btrace_conf, parse_xml_btrace_conf): New.
13137 * common/btrace-common.h (btrace_config): New.
13138 * feature/btrace-conf.dtd: New.
13139 * record-btrace.c (record_btrace_conf): New.
13140 (record_btrace_cmdlist): New.
13141 (record_btrace_enable_warn, record_btrace_open): Pass
13142 &record_btrace_conf.
13143 (record_btrace_info): Print recording format.
13144 (cmd_record_btrace_bts_start): New.
13145 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
13146 (_initialize_record_btrace): Add "record btrace bts" subcommand.
13147 Add "record bts" alias command.
13148 * remote.c (remote_state)<btrace_config>: New.
13149 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
13150 (remote_protocol_features): Add qXfer:btrace-conf:read.
13151 (remote_open_1): Call remote_btrace_reset.
13152 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
13153 (btrace_target_info)<conf>: New.
13154 (btrace_sync_conf, btrace_read_config): New.
13155 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
13156 btrace_read_conf.
13157 (remote_btrace_conf): New.
13158 (init_remote_ops): Initialize to_btrace_conf.
13159 (_initialize_remote): Add qXfer:btrace-conf packet.
13160 * target.c (target_enable_btrace): Update parameters.
13161 (target_btrace_conf): New.
13162 * target.h (target_enable_btrace): Update parameters.
13163 (target_btrace_conf): New.
13164 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
13165 (target_ops)<to_enable_btrace>: Update parameters and comment.
13166 (target_ops)<to_btrace_conf>: New.
13167 * target-delegates: Regenerate.
13168 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
13169 (target_debug_print_const_struct_btrace_target_info_p): New.
13170 * NEWS: Announce new command and new packet.
13171
aadf7753
MM
131722015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13173
13174 * nat/linux-btrace.h (perf_event_buffer): New.
13175 (btrace_target_info) <buffer, size, data_head>: Replace with ...
13176 <bts>: ... this.
13177 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
13178 (perf_event_buffer_size, perf_event_buffer_begin)
13179 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
13180 Updated users.
13181 (perf_event_new_data): New.
13182
043c3577
MM
131832015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13184
13185 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
13186 * record-btrace.c (record_btrace_open): Remove call to
13187 target_supports_btrace.
13188 * remote.c (remote_supports_btrace): Update parameters.
13189 * target.c (target_supports_btrace): Update parameters.
13190 * target.h (to_supports_btrace, target_supports_btrace): Update
13191 parameters.
13192 * target-delegates.c: Regenerate.
13193 * target-debug.h (target_debug_print_enum_btrace_format): New.
13194 * nat/linux-btrace.c
13195 (kernel_supports_btrace): Rename into ...
13196 (kernel_supports_bts): ... this. Update users. Update warning text.
13197 (intel_supports_btrace): Rename into ...
13198 (intel_supports_bts): ... this. Update users.
13199 (cpu_supports_btrace): Rename into ...
13200 (cpu_supports_bts): ... this. Update users.
13201 (linux_supports_btrace): Update parameters. Split into this and ...
13202 (linux_supports_bts): ... this.
13203 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
13204
734b0e4b
MM
132052015-02-09 Markus Metzger <markus.t.metzger@intel.com>
13206
13207 * Makefile.in (SFILES): Add common/btrace-common.c.
13208 (COMMON_OBS): Add common/btrace-common.o.
13209 (btrace-common.o): Add build rules.
13210 * btrace.c (parse_xml_btrace): Update parameters.
13211 (parse_xml_btrace_block): Set format field.
13212 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
13213 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
13214 (btrace_compute_ftrace): Split into this and...
13215 (btrace_compute_ftrace_bts): ...this.
13216 (btrace_stitch_trace): Split into this and...
13217 (btrace_stitch_bts): ...this.
13218 * btrace.h (parse_xml_btrace): Update parameters.
13219 (make_cleanup_btrace_data): New.
13220 * common/btrace-common.c: New.
13221 * common/btrace-common.h: Include common-defs.h.
13222 (btrace_block_s): Update comment.
13223 (btrace_format): New.
13224 (btrace_format_string): New.
13225 (btrace_data_bts): New.
13226 (btrace_data): New.
13227 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
13228 * remote.c (remote_read_btrace): Update parameters.
13229 * target.c (target_read_btrace): Update parameters.
13230 * target.h (target_read_btrace): Update parameters.
13231 (target_ops)<to_read_btrace>: Update parameters.
13232 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
13233 * target-delegates.c: Regenerate.
13234 * target-debug (target_debug_print_struct_btrace_data_p): New.
13235 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
13236 (linux_read_bts): ...this.
13237 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
13238
bd2e0e9e
DE
132392015-02-06 Doug Evans <dje@google.com>
13240
13241 * remote-m32r-sdi.c: Include symfile.h.
13242
f176c4b5
DE
132432015-02-06 Doug Evans <dje@google.com>
13244
13245 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
13246 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
13247 to here.
13248
d6c146e9
PA
132492015-02-06 Pedro Alves <palves@redhat.com>
13250
13251 * linux-thread-db.c (find_new_threads_callback): Add debug output.
13252
b9d61307
SM
132532015-02-06 Simon Marchi <simon.marchi@ericsson.com>
13254
13255 PR gdb/15678
13256 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
13257 (enable_count_command): Check args for NULL value.
13258
e9fbd043
DE
132592015-02-05 Doug Evans <xdje42@gmail.com>
13260
13261 * guile/scm-frame.c: Fix spelling errors in a comment.
13262
881d5d5d
JK
132632015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
13264
13265 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
13266 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
13267 return type.
13268
20ba1ce6
PA
132692015-02-04 Pedro Alves <palves@redhat.com>
13270
13271 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
13272 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
13273 returns true.
13274 (resume_stopped_resumed_lwps): Don't check whether the thread is
13275 marked as executing.
13276 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
13277
f962539a
AA
132782015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13279
13280 * regset.h (struct regset): Add flags field.
13281 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
13282 * corelow.c (get_core_register_section): Add warning if the size
13283 exceeds the requested size and the regset does not have the
13284 REGSET_VARIABLE_SIZE flag set.
13285 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
13286 flag.
13287 * armbsd-tdep.c (armbsd_gregset): Likewise.
13288 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
13289 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
13290 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
13291 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
13292
dde9acd6
AA
132932015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13294
13295 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
13296 For ".reg-xstate", explicitly specify the requested section size
13297 via X86_XSTATE_SIZE instead of just 0 on input and
13298 X86_XSTATE_MAX_SIZE on output.
13299 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
13300 Likewise.
13301
1528345d
AA
133022015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
13303
13304 PR corefiles/17808:
13305 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
13306 function type, particularly its SIZE parameter.
13307 * gdbarch.h: Regenerate.
13308 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
13309 actual against required size using ">=" instead of "==".
13310 (amd64_collect_fpregset): Likewise.
13311 * i386-tdep.c (i386_supply_gregset): Likewise.
13312 (i386_collect_gregset): Likewise.
13313 (i386_supply_fpregset): Likewise.
13314 (i386_collect_fpregset): Likewise.
13315 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
13316 (mips_fill_gregset_wrapper): Likewise.
13317 (mips_supply_fpregset_wrapper): Likewise.
13318 (mips_fill_fpregset_wrapper): Likewise.
13319 (mips64_supply_gregset_wrapper): Likewise.
13320 (mips64_fill_gregset_wrapper): Likewise.
13321 (mips64_supply_fpregset_wrapper): Likewise.
13322 (mips64_fill_fpregset_wrapper): Likewise.
13323 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
13324 (am33_supply_fpregset_method): Likewise.
13325 (am33_collect_gregset_method): Likewise.
13326 (am33_collect_fpregset_method): Likewise.
13327
518be979
DE
133282015-02-04 Doug Evans <dje@google.com>
13329 Pedro Alves <palves@redhat.com>
13330 Eli Zaretskii <eliz@gnu.org>
13331
13332 PR tui/17810
13333 * tui/tui-command.c (tui_refresh_cmd_win): New function.
13334 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
13335 * tui/tui-file.c: #include tui/tui-command.h.
13336 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
13337 (tui_file_flush): Refresh command window if stream is gdb_stdout.
13338 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
13339
80bd5fab
PA
133402015-02-04 Pedro Alves <palves@redhat.com>
13341
13342 Fix build breakage.
13343 * event-loop.c (gdb_do_one_event): Add default switch case.
13344
a7606d80
JK
133452015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
13346
13347 Filter out inferior gcc option -fpreprocessed.
13348 * compile/compile.c (filter_args): New function.
13349 (get_args): Use it.
13350
70b66289
PA
133512015-02-03 Pedro Alves <palves@redhat.com>
13352
13353 * event-loop.c: Don't declare nor define a queue type for
13354 gdb_event_p.
13355 (event_queue): Delete.
13356 (create_event, create_file_event, gdb_event_xfree)
13357 (initialize_event_loop, process_event): Delete.
13358 (gdb_do_one_event): Return as soon as one event is handled.
13359 (handle_file_event): Change prototype. Used the passed in
13360 file_handler pointer and ready_mask instead of looping over all
13361 file handlers.
13362 (gdb_wait_for_event): Update the poll/select timeouts before
13363 blocking. Run event handlers directly instead of queueing events.
13364 Return as soon as one event is handled.
13365 (struct async_event_handler_data): Delete.
13366 (invoke_async_event_handler): Delete.
13367 (check_async_event_handlers): Change return type to int. Run
13368 event handlers directly instead of queueing events. Return as
13369 soon as one event is handled.
13370 (handle_timer_event): Delete.
13371 (update_wait_timeout): New function, factored out from
13372 poll_timers.
13373 (poll_timers): Reimplement.
13374 * event-loop.h (initialize_event_loop): Delete declaration.
13375 * top.c (gdb_init): Don't call initialize_event_loop.
13376
b7d2e916
PA
133772015-02-03 Pedro Alves <palves@redhat.com>
13378
13379 * event-loop.c (clear_async_event_handler): New function.
13380 * event-loop.h (clear_async_event_handler): New declaration.
13381 * record-btrace.c (record_btrace_async): New function.
13382 (init_record_btrace_ops): Install record_btrace_async.
13383 * record-full.c (record_full_async): New function.
13384 (record_full_resume): Don't mark the async event source here.
13385 (init_record_full_ops): Install record_full_async.
13386 (record_full_core_resume): Don't mark the async event source here.
13387 (init_record_full_core_ops): Install record_full_async.
13388 * remote.c (remote_async): Mark and clear the async stop reply
13389 queue event-loop token as appropriate.
13390
d9d41e78
PA
133912015-02-03 Pedro Alves <palves@redhat.com>
13392
13393 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
13394 target_is_async_p instead of target_can_async.
13395 (linux_nat_wait): Use target_is_async_p instead of
13396 target_can_async. Don't enable async here.
13397 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
13398 target_is_async_p instead of target_can_async.
13399
aa3de267
SM
134002015-02-02 Simon Marchi <simon.marchi@ericsson.com>
13401
13402 * varobj.h (lang_varobj_ops): Mention which return values need
13403 to be freed.
13404
2c811c0f
JB
134052015-02-02 Joel Brobecker <brobecker@adacore.com>
13406
13407 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
13408
b1eedac9
JB
134092015-02-02 Joel Brobecker <brobecker@adacore.com>
13410
13411 PR gdb/17856:
13412 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
13413 results found in the cache.
13414
66c168ae
JB
134152015-02-02 Joel Brobecker <brobecker@adacore.com>
13416
13417 PR gdb/17854:
13418 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
13419 when allocating a new one.
13420
4bdc02b2
TT
134212015-02-01 Tom Tromey <tom@tromey.com>
13422
13423 * MAINTAINERS: Remove myself.
13424
ae6ae975
DE
134252015-01-31 Doug Evans <xdje42@gmail.com>
13426
13427 * dwarf2read.c (process_structure_scope): Update setting of
13428 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
13429 * gdbtypes.c (internal_type_vptr_fieldno): New function.
13430 (set_type_vptr_fieldno): New function.
13431 (internal_type_vptr_basetype): New function.
13432 (set_type_vptr_basetype): New function.
13433 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
13434 TYPE_VPTR_BASETYPE.
13435 (allocate_cplus_struct_type): Initialize vptr_fieldno.
13436 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
13437 (print_cplus_stuff): ... moved here.
13438 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
13439 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
13440 moved to ...
13441 (struct cplus_struct_type): ... here. All uses updated.
13442 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
13443 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
13444 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
13445 * stabsread.c (read_tilde_fields): Update setting of
13446 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
13447
09e2d7c7
DE
134482015-01-31 Doug Evans <xdje42@gmail.com>
13449
13450 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
13451 to self_p.
13452 (cp_print_class_member): Rename local domain to self_type.
13453 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
13454 domain_type to self_type.
13455 (set_die_type) <need_gnat_info>: Handle
13456 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
13457 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
13458 TYPE_SPECIFIC_SELF_TYPE.
13459 * gdbtypes.c (internal_type_self_type): New function.
13460 (set_type_self_type): New function.
13461 (smash_to_memberptr_type): Rename parameter domain to self_type.
13462 Update setting of TYPE_SELF_TYPE.
13463 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
13464 (smash_to_method_type): Rename parameter domain to self_type.
13465 Update setting of TYPE_SELF_TYPE.
13466 (check_stub_method): Call smash_to_method_type.
13467 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
13468 (copy_type_recursive): Ditto.
13469 * gdbtypes.h (enum type_specific_kind): New value
13470 TYPE_SPECIFIC_SELF_TYPE.
13471 (struct main_type) <type_specific>: New member self_type.
13472 (struct cplus_struct_type) <fn_field.type>: Update comment.
13473 (TYPE_SELF_TYPE): Rewrite.
13474 (internal_type_self_type, set_type_self_type): Declare.
13475 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
13476 self_type.
13477 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
13478 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
13479 TYPE_TARGET_TYPE.
13480 * stabsread.c (read_member_functions): Mark methods with
13481 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
13482 TYPE_SELF_TYPE.
13483
4bfb94b8
DE
134842015-01-31 Doug Evans <xdje42@gmail.com>
13485
13486 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
13487 All uses updated.
13488
5f4ce105
DE
134892015-01-31 Doug Evans <xdje42@gmail.com>
13490
13491 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
13492 or unions. Return zero if union.
13493 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
13494 (gnuv3_rtti_type): Pass already-check_typedef'd value to
13495 gnuv3_get_vtable.
13496 (compute_vtable_size): Assert only passed structs.
13497 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
13498
f6b3afbf
DE
134992015-01-31 Doug Evans <xdje42@gmail.com>
13500
13501 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
13502 kinds.
13503
cfb069a8
GB
135042015-01-31 Gary Benson <gbenson@redhat.com>
13505 Doug Evans <dje@google.com>
13506
13507 PR cli/9007
13508 PR cli/11920
13509 PR cli/15548
13510 * cli/cli-cmds.c (complete_command): Notify user if max-completions
13511 reached.
13512 * common/common-exceptions.h (enum errors)
13513 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
13514 * completer.h (get_max_completions_reached_message): New declaration.
13515 (max_completions): Likewise.
13516 (completion_tracker_t): New typedef.
13517 (new_completion_tracker): New declaration.
13518 (make_cleanup_free_completion_tracker): Likewise.
13519 (maybe_add_completion_enum): New enum.
13520 (maybe_add_completion): New declaration.
13521 (throw_max_completions_reached_error): Likewise.
13522 * completer.c (max_completions): New global variable.
13523 (new_completion_tracker): New function.
13524 (free_completion_tracker): Likewise.
13525 (make_cleanup_free_completion_tracker): Likewise.
13526 (maybe_add_completions): Likewise.
13527 (throw_max_completions_reached_error): Likewise.
13528 (complete_line): Remove duplicates and limit result to max_completions
13529 entries.
13530 (get_max_completions_reached_message): New function.
13531 (gdb_display_match_list): Handle max_completions.
13532 (_initialize_completer): New declaration and function.
13533 * symtab.c: Include completer.h.
13534 (completion_tracker): New static variable.
13535 (completion_list_add_name): Call maybe_add_completion.
13536 (default_make_symbol_completion_list_break_on_1): Renamed from
13537 default_make_symbol_completion_list_break_on. Maintain
13538 completion_tracker across calls to completion_list_add_name.
13539 (default_make_symbol_completion_list_break_on): New function.
13540 * top.c (init_main): Set rl_completion_display_matches_hook.
13541 * tui/tui-io.c: Include completer.h.
13542 (tui_old_rl_display_matches_hook): New static global.
13543 (tui_rl_display_match_list): Notify user if max-completions reached.
13544 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
13545 * NEWS (New Options): Mention set/show max-completions.
13546
e11c72c7
GB
135472015-01-31 Gary Benson <gbenson@redhat.com>
13548
13549 * symtab.c (struct add_name_data) <code>: New field.
13550 Updated comments.
13551 (add_symtab_completions): New function.
13552 (symtab_expansion_callback): Likewise.
13553 (default_make_symbol_completion_list_break_on): Set datum.code.
13554 Move minimal symbol scan before calling expand_symtabs_matching.
13555 Scan known primary symtabs for externs and statics before calling
13556 expand_symtabs_matching. Pass symtab_expansion_callback as
13557 expansion_notify argument to expand_symtabs_matching. Do not scan
13558 primary symtabs for externs and statics after calling
13559 expand_symtabs_matching.
13560
276d885b
GB
135612015-01-31 Gary Benson <gbenson@redhat.com>
13562
13563 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
13564 (struct quick_symbol_functions) <expand_symtabs_matching>:
13565 New argument expansion_notify. All uses updated.
13566 (expand_symtabs_matching): New argument expansion_notify.
13567 All uses updated.
13568 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13569 Also print expansion notify.
13570 * symtab.c (expand_symtabs_matching_via_partial): Call
13571 expansion_notify whenever a partial symbol table is expanded.
13572 * dwarf2read.c (dw2_expand_symtabs_matching): Call
13573 expansion_notify whenever a symbol table is instantiated.
13574
82083d6d
DE
135752015-01-31 Doug Evans <xdje42@gmail.com>
13576
13577 * cli-out.c: #include completer.h, readline/readline.h.
13578 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
13579 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
13580 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
13581 * cli-out.h (cli_display_match_list): Declare.
13582 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
13583 (ELLIPSIS_LEN): Ditto.
13584 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
13585 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
13586 (gdb_fnprint, gdb_print_filename): Ditto.
13587 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
13588 (gdb_display_match_list): Ditto.
13589 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
13590 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
13591 (mld_beep_ftype, mld_read_key_ftype): Ditto.
13592 (match_list_displayer): New struct.
13593 (gdb_display_match_list): Declare.
13594 * top.c (init_main): Set rl_completion_display_matches_hook.
13595 * tui/tui-io.c: #include completer.h.
13596 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
13597 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
13598 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
13599 (tui_mld_getc, tui_mld_read_key): Ditto.
13600 (tui_rl_display_match_list): Rewrite.
13601 (tui_handle_resize_during_io): New arg for_completion. All callers
13602 updated.
13603
f57d2163
DE
136042015-01-31 Doug Evans <xdje42@gmail.com>
13605
13606 Add symbol lookup cache.
13607 * NEWS: Document new options and commands.
13608 * symtab.c (symbol_cache_key): New static global.
13609 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
13610 (SYMBOL_LOOKUP_FAILED): New macro.
13611 (symbol_cache_slot_state): New enum.
13612 (block_symbol_cache): New struct.
13613 (symbol_cache): New struct.
13614 (new_symbol_cache_size, symbol_cache_size): New static globals.
13615 (hash_symbol_entry, eq_symbol_entry): New functions.
13616 (symbol_cache_byte_size, resize_symbol_cache): New functions.
13617 (make_symbol_cache, free_symbol_cache): New functions.
13618 (get_symbol_cache, symbol_cache_cleanup): New function.
13619 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
13620 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
13621 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
13622 (symbol_cache_flush, symbol_cache_dump): New functions.
13623 (maintenance_print_symbol_cache): New function.
13624 (maintenance_flush_symbol_cache): New function.
13625 (symbol_cache_stats): New function.
13626 (maintenance_print_symbol_cache_statistics): New function.
13627 (symtab_new_objfile_observer): New function.
13628 (symtab_free_objfile_observer): New function.
13629 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
13630 (_initialize_symtab): Init symbol_cache_key. New parameter
13631 maint symbol-cache-size. New maint commands print symbol-cache,
13632 print symbol-cache-statistics, flush-symbol-cache.
13633 Install new_objfile, free_objfile observers.
13634
e700d1b2
JB
136352015-01-31 Joel Brobecker <brobecker@adacore.com>
13636
13637 PR symtab/17855
13638 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
13639 to end.
13640
9f050062
DE
136412015-01-31 Doug Evans <xdje42@gmail.com>
13642
13643 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
13644 * auto-load.c: #include ctype.h.
13645 (struct auto_load_pspace_info): Replace member loaded_scripts with
13646 new members loaded_script_files, loaded_script_texts.
13647 (auto_load_pspace_data_cleanup): Update.
13648 (init_loaded_scripts_info): Update.
13649 (get_auto_load_pspace_data_for_loading): Update.
13650 (maybe_add_script_file): Renamed from maybe_add_script. All callers
13651 updated.
13652 (maybe_add_script_text): New function.
13653 (clear_section_scripts): Update.
13654 (source_script_file, execute_script_contents): New functions.
13655 (source_section_scripts): Add support for
13656 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
13657 (print_scripts): New function.
13658 (auto_load_info_scripts): Also print inlined scripts.
13659 (maybe_print_unsupported_script_warning): Renamed from
13660 unsupported_script_warning_print. All callers updated.
13661 (maybe_print_script_not_found_warning): Renamed from
13662 script_not_found_warning_print. All callers updated.
13663 * extension-priv.h (struct extension_language_script_ops): New member
13664 objfile_script_executor.
13665 * extension.c (ext_lang_objfile_script_executor): New function.
13666 * extension.h (objfile_script_executor_func): New typedef.
13667 (ext_lang_objfile_script_executor): Declare.
13668 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
13669 * guile/guile.c (guile_extension_script_ops): Update.
13670 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
13671 * python/python.c (python_extension_script_ops): Update.
13672 (gdbpy_execute_objfile_script): New function.
13673
312809f8
EZ
136742015-01-31 Eli Zaretskii <eliz@gnu.org>
13675
13676 * tui/tui-io.c (tui_expand_tabs): New function.
13677 (tui_puts, tui_redisplay_readline): Expand TABs into the
13678 appropriate number of spaces.
13679 * tui/tui-regs.c: Include tui-io.h.
13680 (tui_register_format): Call tui_expand_tabs to expand TABs into
13681 the appropriate number of spaces.
13682 * tui/tui-io.h: Add prototype for tui_expand_tabs.
13683
b6577aab
DE
136842015-01-30 Doug Evans <dje@google.com>
13685
13686 * NEWS: "info source" command now display producer string if present.
13687 * source.c (source_info): Print producer string if present.
13688
6da58d3e
SM
136892015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13690
13691 * varobj.c (varobj_delete): Fix comment.
13692
837ce252
SM
136932015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13694
13695 * varobj.c (create_child): Modify comment.
13696
b09e2c59
SM
136972015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13698
13699 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
13700 parameter.
13701 (ada_name_of_variable): Same.
13702 (ada_path_expr_of_child): Same.
13703 (ada_value_of_variable): Same.
13704 (ada_value_is_changeable_p): Same.
13705 (ada_value_has_mutated): Same.
13706 * c-varobj.c (varobj_is_anonymous_child): Same.
13707 (c_is_path_expr_parent): Same.
13708 (c_number_of_children): Same.
13709 (c_name_of_variable): Same.
13710 (c_path_expr_of_child): Same.
13711 (get_type): Same.
13712 (c_value_of_variable): Same.
13713 (cplus_number_of_children): Same.
13714 (cplus_name_of_variable): Same.
13715 (cplus_path_expr_of_child): Same.
13716 (cplus_value_of_variable): Same.
13717 * jv-varobj.c (java_number_of_children): Same.
13718 (java_name_of_variable): Same.
13719 (java_path_expr_of_child): Same.
13720 (java_value_of_variable): Same.
13721 * varobj.c (number_of_children): Same.
13722 (name_of_variable): Same.
13723 (is_root_p): Same.
13724 (varobj_ensure_python_env): Same.
13725 (varobj_get_objname): Same.
13726 (varobj_get_expression): Same.
13727 (varobj_get_display_format): Same.
13728 (varobj_get_display_hint): Same.
13729 (varobj_has_more): Same.
13730 (varobj_get_thread_id): Same.
13731 (varobj_get_frozen): Same.
13732 (dynamic_varobj_has_child_method): Same.
13733 (varobj_get_gdb_type): Same.
13734 (is_path_expr_parent): Same.
13735 (varobj_default_is_path_expr_parent): Same.
13736 (varobj_get_language): Same.
13737 (varobj_get_attributes): Same.
13738 (varobj_is_dynamic_p): Same.
13739 (varobj_get_child_range): Same.
13740 (varobj_value_has_mutated): Same.
13741 (varobj_get_value_type): Same.
13742 (number_of_children): Same.
13743 (name_of_variable): Same.
13744 (check_scope): Same.
13745 (varobj_editable_p): Same.
13746 (varobj_value_is_changeable_p): Same.
13747 (varobj_floating_p): Same.
13748 (varobj_default_value_is_changeable_p): Same.
13749
2568868e
SM
137502015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13751
13752 * varobj.c (varobj_get_path_expr): Set var->path_expr.
13753 * c-varobj.c (c_path_expr_of_child): Set local var instead of
13754 child->path_expr.
13755 (cplus_path_expr_of_child): Same.
13756
ca83fa81
SM
137572015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13758
13759 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
13760 result.
13761 (mi_cmd_var_info_expression): Same.
13762 * varobj.c (varobj_get_expression): Mention in the comment that
13763 the result must by freed by the caller.
13764
afa269ae
SM
137652015-01-30 Simon Marchi <simon.marchi@ericsson.com>
13766
13767 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
13768 varobj_get_type.
13769 (varobj_update_one): Same.
13770 * varobj.c (update_type_if_necessary): Free curr_type_str and
13771 new_type_str.
13772 (varobj_get_type): Specify in comment that the result needs to be
13773 freed by the caller.
13774
cd366ee8
DE
137752015-01-29 Doug Evans <dje@google.com>
13776
13777 PR symtab/17890
13778 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
13779
38360086
MW
137802015-01-25 Mark Wielaard <mjw@redhat.com>
13781
13782 * dwarf2read.c (checkproducer): Call producer_is_gcc.
13783 * utils.c (producer_is_gcc_ge_4): Likewise.
13784 (producer_is_gcc): New function.
13785 * utils.h (producer_is_gcc): New declaration.
13786
df25ebbd
JB
137872015-01-29 Joel Brobecker <brobecker@adacore.com>
13788
13789 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
13790 kind.
13791 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
13792 parameter by "addr_stack" parameter.
13793 (resolve_dynamic_range): Replace "addr" parameter by
13794 "stack_addr" parameter. Update function documentation.
13795 Update code accordingly.
13796 (resolve_dynamic_array, resolve_dynamic_union)
13797 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
13798 (resolve_dynamic_type): Update code, following the changes made
13799 to resolve_dynamic_type_internal's interface.
13800 * dwarf2loc.h (struct property_addr_info): New.
13801 (dwarf2_evaluate_property): Replace "address" parameter
13802 by "addr_stack" parameter. Adjust function documentation.
13803 (struct dwarf2_offset_baton): New.
13804 (struct dwarf2_property_baton): Update documentation of
13805 field "referenced_type" to be more general. New field
13806 "offset_info" in union data field.
13807 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
13808 parameter by "addr_stack" parameter. Adjust code accordingly.
13809 Add support for PROP_ADDR_OFFSET properties.
13810 * dwarf2read.c (attr_to_dynamic_prop): Add support for
13811 DW_AT_data_member_location attributes as well. Use case
13812 statements instead of if/else condition.
13813
4a0ca9ec
JB
138142015-01-29 Joel Brobecker <brobecker@adacore.com>
13815
13816 * ada-varobj.c (ada_varobj_get_array_number_of_children):
13817 Return zero if PARENT_VALUE is NULL and parent_type's
13818 range type is dynamic.
13819
ddb87a81
JB
138202015-01-29 Joel Brobecker <brobecker@adacore.com>
13821
13822 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
13823 nonzero if the type's subtype is dynamic.
13824 (resolve_dynamic_range): Also resolve the range's subtype.
13825
3d7ad9b4 138262015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 13827
3d7ad9b4 13828 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
13829 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
13830
3a8b707a
DE
138312015-01-27 Doug Evans <dje@google.com>
13832
13833 * NEWS: Mention gdb.Objfile.username.
13834 * python/py-objfile.c (objfpy_get_username): New function.
13835 (objfile_getset): Add "username".
13836
d35b90fb
MW
138372015-01-24 Mark Wielaard <mjw@redhat.com>
13838
13839 * stack.c (return_command): Markup warning message with _.
13840
734ae125
DE
138412015-01-24 Doug Evans <xdje42@gmail.com>
13842
13843 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
13844
527f3840
JK
138452015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13846
13847 Fix 100x slowdown regression on DWZ files.
13848 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
13849 (struct line_header): Add offset and offset_in_dwz.
13850 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
13851 (free_line_header_voidp): New declaration.
13852 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
13853 functions.
13854 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
13855 (handle_DW_AT_stmt_list): Use line_header_hash.
13856 (free_line_header_voidp): New function.
13857 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
13858 (dwarf_decode_lines): New parameter decode_mapping, use it.
13859 (dwarf2_free_objfile): Free line_header_hash.
13860
f7e5394d
SM
138612015-01-23 Simon Marchi <simon.marchi@ericsson.com>
13862
13863 PR gdb/17416
13864 * valops.c (value_rtti_indirect_type): Catch exception thrown by
13865 value_ind.
13866
743649fd
MW
138672015-01-15 Mark Wielaard <mjw@redhat.com>
13868
13869 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
13870 DW_AT_noreturn.
13871 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
13872 calling_convention an 8 bit bit field.
13873 (TYPE_NO_RETURN): New macro.
13874 * infcmd.c (finish_command): Query if function does not return
13875 normally.
13876 * stack.c (return_command): Likewise.
13877
198297aa
PA
138782015-01-23 Pedro Alves <palves@redhat.com>
13879
13880 * linux-nat.c (linux_is_async_p): New macro.
13881 (linux_nat_is_async_p):
13882 (linux_nat_terminal_inferior): Check whether the target can async
13883 instead of whether it is already async.
13884 (linux_nat_terminal_ours): Don't check whether the target is
13885 async.
13886 (linux_async_pipe): Use linux_is_async_p.
13887
253828f1
JK
138882015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13889
13890 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
13891 '-ascending'.
13892 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
13893 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
13894 Sort tp_array using tp_array_compar.
13895 (_initialize_thread): Extend thread_apply_all_command help.
13896
f0e8c4c5
JK
138972015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13898
13899 * corelow.c (core_open): Call also thread_command.
13900 * gdbthread.h (thread_command): New prototype moved from ...
13901 * thread.c (thread_command): ... here.
13902 (thread_command): Make it global.
13903
03b79603
PA
139042015-01-22 Pedro Alves <palves@redhat.com>
13905
13906 * configure.ac [*mingw32*]: Check $curses_found instead of
13907 $prefer_curses.
13908 * configure: Regenerate.
13909 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
13910 HAVE_NCURSES_NCURSES_H checks.
13911
6b8a872f
EZ
139122015-01-22 Eli Zaretskii <eliz@gnu.org>
13913
bbbbffbb 13914 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
13915 fails with the 1st arg NULL, try again with "unknown". Don't test
13916 the "cup" capability: it isn't supported by the Windows port of
13917 ncurses, but the Windows console driver is still capable of
13918 supporting TUI.
13919
4b62a76e
JK
139202015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13921
13922 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
13923
82a864f9
EZ
139242015-01-22 Eli Zaretskii <eliz@gnu.org>
13925
13926 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
13927 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
13928 reason that "make TAGS" is broken.
13929
b35018fd
CG
139302015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
13931
13932 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
13933 and check additional store instructions.
13934
ffbc4646
WW
139352015-01-21 Wei-cheng Wang <cole945@gmail.com>
13936
13937 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
13938
ddeca1df
WW
139392015-01-21 Wei-cheng Wang <cole945@gmail.com>
13940
13941 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13942 ppc_canonicalize_syscall, ppc_linux_syscall_record,
13943 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
13944 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13945 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
13946 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
13947 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
13948 ppc_process_record_op19, ppc_process_record_op31,
13949 ppc_process_record_op59, ppc_process_record_op60,
13950 ppc_process_record_op63): Likewise.
13951
049bb5de
JB
139522015-01-20 Joel Brobecker <brobecker@adacore.com>
13953
13954 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
13955 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
13956 strerror.
13957
42b87c63 139582015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
13959
13960 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
13961 ppc_process_record_op31, ppc_process_record_op59,
13962 ppc_process_record_op60, ppc_process_record_op63,
13963 ppc_process_record): Fix -Wformat warning.
13964 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
13965 Remove unused variables.
13966
569340fc
CG
139672015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
13968
13969 * MAINTAINERS (Write After Approval): Add "Chen Gang".
13970
63413d85
EZ
139712015-01-19 Eli Zaretskii <eliz@gnu.org>
13972
13973 * configure.ac [*mingw32*]: Only add windows-termcap.o to
13974 CONFIG_OBS if not building with a curses library.
13975 * configure: Regenerate.
13976
13977 * windows-termcap.c: Include defs.h. Make the whole body empty if
13978 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
13979 HAVE_NCURSES_NCURSES_H is defined.
13980
16d8013c
JB
139812015-01-19 Joel Brobecker <brobecker@adacore.com>
13982
13983 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
13984 from end of line to start of next line.
13985
cf90fd9a
WW
139862015-01-17 Wei-cheng Wang <cole945@gmail.com>
13987
13988 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
13989 Scan PLT stub backward for reverse debugging.
13990 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13991
b4cdae6f
WW
139922015-01-17 Wei-cheng Wang <cole945@gmail.com>
13993 Ulrich Weigand <uweigand@de.ibm.com>
13994
13995 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
13996 gdb_target_obs.
13997 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
13998 record.
13999 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
14000 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
14001 (ppc_linux_init_abi): Set process_record, process_record_signal.
14002 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
14003 ppc_linux_record_tdep to gdbarch_tdep.
14004 (ppc_process_record): New declaration.
14005 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
14006 ppc_process_record_op19, ppc_process_record_op31,
14007 ppc_process_record_op59, ppc_process_record_op60,
14008 ppc_process_record_op63, ppc_process_record): New functions.
14009
2608dbf8
WW
140102015-01-17 Wei-cheng Wang <cole945@gmail.com>
14011
14012 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
14013 rs6000_in_function_epilogue_frame_p and add an argument
14014 for frame_info.
14015 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
14016 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
14017 New functions.
14018 (rs6000_epilogue_frame_unwind): New.
14019 (rs6000_gdbarch_init): Append epilogue unwinder.
14020
4c347be6
SDJ
140212015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
14022
14023 * nat/linux-personality.c: Replace "#ifndef
14024 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
14025 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
14026 systems.
14027
9f2850ba
EZ
140282015-01-16 Eli Zaretskii <eliz@gnu.org>
14029
6cdb25f4
EZ
14030 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
14031 functions.
14032 (_initialize_tui_win) <border-kind, border-mode>:
14033 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
14034 (tui_set_tab_width_command): Fix the commentary.
14035
6cdb25f4
EZ
14036 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
14037
bf555842
EZ
14038 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
14039 Doc fix.
cb86fcc1
EZ
14040 (tui_set_tab_width_command): Delete and recreate the source and
14041 the disassembly windows, to show the effect of the changed tab
14042 size immediately.
bf555842 14043
9f2850ba
EZ
14044 * tui/tui-data.h (LINE_PREFIX): Make shorter
14045 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
14046 "Thread NNNNN.XXXX" thread ID notation on Windows.
14047
95761b2d
JK
140482015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14049
14050 Fix gcc-5 compilation.
14051 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
14052
8cc73a39
SDJ
140532015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
14054
14055 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
14056 (linux-personality.o): New rule.
14057 * common/common-defs.h: Include <stdint.h>.
14058 * config/aarch64/linux.mh (NATDEPFILES): Include
14059 linux-personality.o.
14060 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
14061 * config/arm/linux.mh (NATDEPFILES): Likewise.
14062 * config/i386/linux64.mh (NATDEPFILES): Likewise.
14063 * config/i386/linux.mh (NATDEPFILES): Likewise.
14064 * config/ia64/linux.mh (NATDEPFILES): Likewise.
14065 * config/m32r/linux.mh (NATDEPFILES): Likewise.
14066 * config/m68k/linux.mh (NATDEPFILES): Likewise.
14067 * config/mips/linux.mh (NATDEPFILES): Likewise.
14068 * config/pa/linux.mh (NATDEPFILES): Likewise.
14069 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
14070 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
14071 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
14072 * config/s390/linux.mh (NATDEPFILES): Likewise.
14073 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
14074 * config/sparc/linux.mh (NATDEPFILES): Likewise.
14075 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
14076 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
14077 * defs.h: Remove #include <stdint.h> (moved to
14078 common/common-defs.h).
14079 * linux-nat.c: Include nat/linux-personality.h. Remove #include
14080 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
14081 nat/linux-personality.c).
14082 (linux_nat_create_inferior): Remove code to disable address space
14083 randomization (moved to nat/linux-personality.c). Create cleanup
14084 to disable address space randomization.
14085 * nat/linux-personality.c: New file.
14086 * nat/linux-personality.h: Likewise.
14087
fb23d554
SDJ
140882015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
14089
14090 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
14091 common/posix-strerror.c.
14092 (posix-strerror.o): New rule.
14093 (mingw-strerror.o): Likewise.
14094 * common/common-utils.h (safe_strerror): Move prototype to here,
14095 from utils.h.
14096 * common/common.host: New file.
14097 * common/mingw-strerror.c: Likewise.
14098 * common/posix-strerror.c: Likewise.
14099 * configure: Regenerated.
14100 * configure.ac: Source common/common.host. Add variable
14101 common_host_obs to gdb_host_obs.
14102 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
14103 gdb/common/posix-strerror.c when warning about the use of
14104 strerror.
14105 * mingw-hdep.c (safe_strerror): Remove definition; move it to
14106 common/mingw-strerror.c.
14107 * posix-hdep.c (safe_strerror): Remove definition; move it to
14108 common/posix-hdep.c.
14109 * utils.h (safe_strerror): Remove prototype; move to
14110 common/common-utils.h.
14111
3af8af43
JB
141122015-01-15 Joel Brobecker <brobecker@adacore.com>
14113
14114 GDB 7.8.2 released.
14115
bafffb51
JB
141162015-01-15 Joel Brobecker <brobecker@adacore.com>
14117
14118 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
14119 ___XA type if the array has already been fixed.
14120
cdf43629
YQ
141212015-01-14 Yao Qi <yao@codesourcery.com>
14122
14123 * Makefile.in (ppc-linux.o): New rule.
14124 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
14125 * configure.ac: AC_CHECK_FUNCS(getauxval).
14126 * config.in: Re-generated.
14127 * configure: Re-generated.
14128 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
14129 Declare.
14130 * nat/ppc-linux.c: New file.
14131 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
14132 Call ppc64_64bit_inferior_p.
14133
514c5338
YQ
141342015-01-14 Yao Qi <yao@codesourcery.com>
14135
14136 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
14137 nat/ppc-linux.h.
14138 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
14139 (PPC_FEATURE_HAS_DFP): Likewise.
14140 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
14141 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
14142 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
14143 Include "nat/ppc-linux.h".
14144 * nat/ppc-linux.h: New file.
14145 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
14146
5589af0e
PA
141472015-01-14 Pedro Alves <palves@redhat.com>
14148
14149 PR gdb/17525
14150 * breakpoint.c: Include "interps.h".
14151 (bpstat_do_actions_1): Also check whether the interpreter is
14152 async.
14153
6c400b59
PA
141542015-01-14 Pedro Alves <palves@redhat.com>
14155
14156 PR cli/17828
14157 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
14158 reinstall if the interpreter is sync.
14159
e02c96a7
DE
141602015-01-13 Doug Evans <dje@google.com>
14161
14162 * objfiles.c (objfile_filename): New function.
14163 * objfiles.h (objfile_filename): Declare it.
14164 (objfile_name): Add function comment.
14165 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
14166 bfd file name (which may be realpath'd), and the original name.
14167
3b2f13ff
JB
141682015-01-13 Joel Brobecker <brobecker@adacore.com>
14169
14170 * NEWS: Create a new section for the next release branch.
14171 Rename the section of the current branch, now that it has
14172 been cut.
14173
b4cfe7f8
JB
141742015-01-13 Joel Brobecker <brobecker@adacore.com>
14175
14176 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
14177 * version.in: Bump version to 7.9.50.DATE-cvs.
14178
92fc2e69
JB
141792015-01-13 Joel Brobecker <brobecker@adacore.com>
14180
14181 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
14182 Remove trailing new-line in argument of call to warning.
14183
f71f0b0d
JB
141842015-01-13 Joel Brobecker <brobecker@adacore.com>
14185
14186 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
14187 new-line in argument of call to "warning".
14188
04dccad0
JB
141892015-01-13 Joel Brobecker <brobecker@adacore.com>
14190
14191 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
14192 in static block, then try searching for primitive types.
14193
08b13bdd
PP
141942015-01-12 Patrick Palka <patrick@parcs.ath.cx>
14195
14196 * top.h (gdb_add_history): Declare.
14197 * top.c (command_count): New variable.
14198 (gdb_add_history): New function.
14199 (gdb_safe_append_history): New static function.
14200 (quit_force): Call it.
14201 (command_line_input): Use gdb_add_history instead of
14202 add_history.
14203 * event-top.c (command_line_handler): Likewise.
14204
4ac15b59
JC
142052015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
14206
14207 PR gdb/17046
14208 * darwin-nat.c: Replace <machine/setjmp.h> #include by
14209 <setjmp.h> #include.
14210
005e54bb
DE
142112015-01-11 Doug Evans <xdje42@gmail.com>
14212
14213 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
14214
439250fb
DE
142152015-01-11 Doug Evans <xdje42@gmail.com>
14216
14217 PR gdb/15830
14218 * NEWS: The "maint demangle" command is renamed as "demangle".
14219 * demangle.c: #include cli/cli-utils.h, language.h.
14220 (demangle_command): New function.
14221 (_initialize_demangle): Add new command "demangle".
14222 * maint.c (maintenance_demangle): Stub out.
14223 (_initialize_maint_cmds): Update help text for "maint demangle",
14224 and mark as deprecated.
14225
ebf3aa72
MK
142262015-01-11 Mark Kettenis <kettenis@gnu.org>
14227
14228 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
14229 inferior_thread is a function.
14230
6bf045cd
PP
142312015-01-09 Patrick Palka <patrick@parcs.ath.cx>
14232
14233 * Makefile.in (.y.c): Don't munge yacc's #line
14234 directives.
14235
588dcc3e
PP
142362015-01-09 Patrick Palka <patrick@parcs.ath.cx>
14237
14238 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
14239 to prompt for input.
14240 * tui/tui-hooks.c (tui_query_hook): Remove.
14241 (tui_install_hooks): Don't set deprecated_query_hook.
14242 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
14243 height calculation. Always update the command window's cur_line.
14244
9c02b525
PA
142452015-01-09 Pedro Alves <palves@redhat.com>
14246
14247 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
14248 function.
14249 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
14250 declaration.
14251 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
14252 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
14253 stop_reason.
14254 (check_stopped_by_watchpoint): New function.
14255 (save_sigtrap): Reimplement.
14256 (linux_nat_stopped_by_watchpoint): Adjust.
14257 (linux_nat_lp_status_is_event): Delete.
14258 (stop_wait_callback): Only call save_sigtrap after storing the
14259 pending status.
14260 (status_callback): If the thread had been stopped for a breakpoint
14261 that has since been removed, discard the event and resume the LWP.
14262 (count_events_callback, select_event_lwp_callback): Use
14263 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
14264 (cancel_breakpoint): Rename to ...
14265 (check_stopped_by_breakpoint): ... this. Record whether the LWP
14266 stopped for a software breakpoint or hardware breakpoint.
14267 (select_event_lwp): Only give preference to the stepping LWP in
14268 all-stop mode. Adjust comments.
14269 (stop_and_resume_callback): Remove references to new_pending_p.
14270 (linux_nat_filter_event): Likewise. Leave exit events of the
14271 leader thread pending here. Handle signal short circuiting here.
14272 Only call save_sigtrap after storing the pending waitstatus.
14273 (linux_nat_wait_1): Remove 'retry' label. Remove references to
14274 new_pending. Don't handle leaving events the caller is not
14275 interested in pending here, nor handle signal short-circuiting
14276 here. Also give equal priority to all LWPs that have had events
14277 in non-stop mode. If reporting a software breakpoint event,
14278 unadjust the LWP's PC.
14279 * linux-nat.h (enum lwp_stop_reason): New.
14280 (struct lwp_info) <stop_pc>: New field.
14281 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
14282 (struct lwp_info) <stop_reason>: New field.
14283 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
14284
8af756ef
PA
142852015-01-09 Pedro Alves <palves@redhat.com>
14286
14287 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
14288 Set the LWP's 'resumed' flag.
14289
8a99810d
PA
142902015-01-09 Pedro Alves <palves@redhat.com>
14291
14292 * linux-nat.c (linux_resume_one_lwp): New function.
14293 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
14294 (linux_nat_resume): Use lwp_status_pending_p and
14295 linux_resume_one_lwp.
14296 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
14297 (linux_handle_extended_wait): Use linux_resume_one_lwp.
14298 (status_callback, running_callback): Use lwp_status_pending_p.
14299 (lwp_status_pending_p): New function.
14300 (stop_and_resume_callback): Use lwp_status_pending_p.
14301 (linux_nat_filter_event): Use linux_resume_one_lwp.
14302 (linux_nat_wait_1): Always use status_callback to look for an LWP
14303 with a pending status. Use linux_resume_one_lwp.
14304 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
14305 linux_resume_one_lwp.
14306
f7ce857f
PA
143072015-01-09 Pedro Alves <palves@redhat.com>
14308
14309 * breakpoint.c (bp_location_inserted_here_p): New function,
14310 factored out from ...
14311 (breakpoint_inserted_here_p): ... here. Use
14312 ALL_BP_LOCATIONS_AT_ADDR.
14313 (software_breakpoint_inserted_here_p): Use
14314 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
14315
c1a747c1
PA
143162014-01-09 Pedro Alves <palves@redhat.com>
14317
14318 Skip enabling event reporting if the kernel supports
14319 PTRACE_EVENT_CLONE.
14320 * linux-thread-db.c: Include "nat/linux-ptrace.h".
14321 (thread_db_use_events): New function.
14322 (try_thread_db_load_1): Check thread_db_use_events before enabling
14323 event reporting.
14324 (update_thread_state): New function.
14325 (attach_thread): Use it. Check thread_db_use_events before
14326 enabling event reporting.
14327 (thread_db_detach): Check thread_db_use_events before disabling
14328 event reporting.
14329 (find_new_threads_callback): Check thread_db_use_events before
14330 enabling event reporting. Update the thread's state if not using
14331 libthread_db events.
14332
a33e3959
PA
143332015-01-09 Pedro Alves <palves@redhat.com>
14334
14335 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
14336 about to wait for is > 0.
14337 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
14338 the kernel thread ID is -1.
14339
8784d563
PA
143402015-01-09 Pedro Alves <palves@redhat.com>
14341
14342 * linux-nat.c (attach_proc_task_lwp_callback): New function.
14343 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
14344 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
14345 ptrace option flags.
14346 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
14347 field.
14348 * nat/linux-procfs.c: Include <dirent.h>.
14349 (linux_proc_get_int): New parameter "warn". Handle it.
14350 (linux_proc_get_tgid): Adjust.
14351 (linux_proc_get_tracerpid): Rename to ...
14352 (linux_proc_get_tracerpid_nowarn): ... this.
14353 (linux_proc_pid_get_state): New function, factored out from
14354 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
14355 and handle it.
14356 (linux_proc_pid_is_gone): New function.
14357 (linux_proc_pid_is_stopped): Adjust.
14358 (linux_proc_pid_is_zombie_maybe_warn)
14359 (linux_proc_pid_is_zombie_nowarn): New functions.
14360 (linux_proc_pid_is_zombie): Use
14361 linux_proc_pid_is_zombie_maybe_warn.
14362 (linux_proc_attach_tgid_threads): New function.
14363 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
14364 (linux_proc_get_tracerpid): Rename to ...
14365 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
14366 (linux_proc_pid_is_gone): New declaration.
14367 (linux_proc_pid_is_zombie): Update comment.
14368 (linux_proc_pid_is_zombie_nowarn): New declaration.
14369 (linux_proc_attach_lwp_func): New typedef.
14370 (linux_proc_attach_tgid_threads): New declaration.
14371 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
14372 use nowarn functions.
14373 (linux_ptrace_attach_fail_reason_string): Move here from
14374 gdbserver/linux-low.c and rename.
14375 (ptrace_supports_feature): If the current ptrace options are not
14376 known yet, check them now, instead of asserting.
14377 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
14378 Declare.
14379
883ed13e
PA
143802015-01-09 Pedro Alves <palves@redhat.com>
14381
14382 * linux-thread-db.c (thread_db_find_new_threads_silently)
14383 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
14384 (find_new_threads_once): Print debug output on gdb_stdlog.
14385
1710aab8
CG
143862015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
14387 Pedro Alves <palves@redhat.com>
14388
14389 * compile/compile.c: Include "gdb_wait.h".
14390 (do_rmdir): Check return value, and free 'zap'.
14391
b597c318
YQ
143922015-01-08 Pedro Alves <palves@redhat.com>
14393 Yao Qi <yao@codesourcery.com>
14394
14395 * dwarf2loc.c (indirect_pieced_value): Don't call
14396 gdb_sign_extend. Call extract_signed_integer instead.
14397 * utils.c (gdb_sign_extend): Remove.
14398 * utils.h (gdb_sign_extend): Remove declaration.
14399
025ac414
PM
144002015-01-07 Pierre Muller <muller@sourceware.org>
14401
14402 PR symtab/17811
14403 * stabsread.c (define_symbol): Set language for C++ special symbols.
14404
fa5af12a
PP
144052015-01-07 Patrick Palka <patrick@parcs.ath.cx>
14406
14407 * inflow.c (initial_gdb_ttystate): Tweak comment.
14408
ea42d6f8
JB
144092015-01-07 Joel Brobecker <brobecker@adacore.com>
14410
14411 * inflow.c (set_initial_gdb_ttystate): Add empty line after
14412 comment documenting function.
14413
6a06d660
PP
144142015-01-07 Patrick Palka <patrick@parcs.ath.cx>
14415
14416 * terminal.h (set_initial_gdb_ttystate): Declare.
14417 * inflow.c (initial_gdb_ttystate): New static variable.
14418 (set_initial_gdb_ttystate): New setter.
14419 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
14420 instead of our current terminal state.
14421 * top.c (gdb_init): Call set_initial_gdb_ttystate.
14422
e810d75b
JB
144232015-01-07 Joel Brobecker <brobecker@adacore.com>
14424
14425 * guile/scm-type.c (tyscm_array_1): Add comment.
14426 * python/py-type.c (typy_array_1): Add comment.
14427
fce10a84
JB
144282015-01-06 Joel Brobecker <brobecker@adacore.com>
14429
14430 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
14431 error if N2 is equal to N1 - 1.
14432
8503d6e1
JB
144332015-01-06 Joel Brobecker <brobecker@adacore.com>
14434
14435 * python/py-type.c (typy_array_1): Do not raise negative-length
14436 exception if N2 is equal to N1 - 1.
14437
4d29c0a8
DE
144382015-01-03 Doug Evans <xdje42@gmail.com>
14439
14440 * c-exp.y: Whitespace cleanup.
14441 (classify_inner_name): Remove extra ;.
14442
eaa6a9a4
MR
144432015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
14444
14445 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
14446 offset signed.
14447
02fe9972
DE
144482015-01-02 Doug Evans <dje@google.com>
14449
14450 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
14451
e2ada9cb
DE
144522015-01-02 Doug Evans <dje@google.com>
14453
14454 * symtab.h (struct symbol): Fix typo in comment.
14455
32d0add0
JB
144562015-01-01 Joel Brobecker <brobecker@adacore.com>
14457
14458 Update year range in copyright notice of all files.
14459
76f2b779
JB
144602015-01-01 Joel Brobecker <brobecker@adacore.com>
14461
14462 * top.c (print_gdb_version): Update copyright year to 2015.
14463
077309e2 144642015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 14465
077309e2 14466 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 14467
077309e2 14468For older changes see ChangeLog-2014.
c906108c
SS
14469\f
14470Local Variables:
14471mode: change-log
14472left-margin: 8
14473fill-column: 74
14474version-control: never
57da7796 14475coding: utf-8
c906108c 14476End:
This page took 2.447482 seconds and 4 git commands to generate.