]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Add target_ops argument to to_extra_thread_info
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c15906d8
TT
12014-02-19 Tom Tromey <tromey@redhat.com>
2
3 * target.h (struct target_ops) <to_extra_thread_info>: Add
4 argument.
5 (target_extra_thread_info): Add argument.
6 * target.c (update_current_target): Update.
7 * remote.c (remote_threads_extra_info): Add 'self' argument.
8 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9 argument.
10 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13 argument.
14 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
15 argument.
16 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
17 argument.
18 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
19 argument.
20
daf5e9b6
TT
212014-02-19 Tom Tromey <tromey@redhat.com>
22
23 * target.h (struct target_ops) <to_program_signals>: Add argument.
24 * target.c (target_program_signals): Add argument.
25 * remote.c (remote_program_signals): Add 'self' argument.
26
94bedb42
TT
272014-02-19 Tom Tromey <tromey@redhat.com>
28
29 * target.h (struct target_ops) <to_pass_signals>: Add argument.
30 * target.c (target_pass_signals): Add argument.
31 * remote.c (remote_pass_signals): Add 'self' argument.
32 (remote_start_remote): Update.
33 * procfs.c (procfs_pass_signals): Add 'self' argument.
34 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
35 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
36 (linux_nat_create_inferior, linux_nat_attach): Update.
37
da82bd6b
TT
382014-02-19 Tom Tromey <tromey@redhat.com>
39
40 * windows-nat.c (windows_can_run): Add 'self' argument.
41 * target.h (struct target_ops) <to_can_run>: Add argument.
42 (target_can_run): Add argument.
43 * target.c (debug_to_can_run): Add argument.
44 (update_current_target): Update.
45 * nto-procfs.c (procfs_can_run): Add 'self' argument.
46 * inf-child.c (inf_child_can_run): Add 'self' argument.
47 * go32-nat.c (go32_can_run): Add 'self' argument.
48
d796e1d6
TT
492014-02-19 Tom Tromey <tromey@redhat.com>
50
51 * target.h (struct target_ops) <to_has_exited>: Add argument.
52 (target_has_exited): Add argument.
53 * target.c (debug_to_has_exited): Add argument.
54 (update_current_target): Update.
55
ff214e67
TT
562014-02-19 Tom Tromey <tromey@redhat.com>
57
58 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
59 argument.
60 (target_set_syscall_catchpoint): Add argument.
61 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
62 argument.
63 * target.c (update_current_target): Update.
64
758e29d2
TT
652014-02-19 Tom Tromey <tromey@redhat.com>
66
67 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
68 argument.
69 (target_remove_exec_catchpoint): Add argument.
70 * target.c (debug_to_remove_exec_catchpoint): Add argument.
71 (update_current_target): Update.
72 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
73 argument.
74
ba025e51
TT
752014-02-19 Tom Tromey <tromey@redhat.com>
76
77 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
78 argument.
79 (target_insert_exec_catchpoint): Add argument.
80 * target.c (debug_to_insert_exec_catchpoint): Add argument.
81 (update_current_target): Update.
82 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
83 argument.
84
e98cf0cd
TT
852014-02-19 Tom Tromey <tromey@redhat.com>
86
87 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
88 argument.
89 (target_remove_vfork_catchpoint): Add argument.
90 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
91 (update_current_target): Update.
92 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
93 argument.
94
3ecc7da0
TT
952014-02-19 Tom Tromey <tromey@redhat.com>
96
97 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
98 argument.
99 (target_insert_vfork_catchpoint): Add argument.
100 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
101 (update_current_target): Update.
102 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
103 argument.
104
973fc227
TT
1052014-02-19 Tom Tromey <tromey@redhat.com>
106
107 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
108 argument.
109 (target_remove_fork_catchpoint): Add argument.
110 * target.c (debug_to_remove_fork_catchpoint): Add argument.
111 (update_current_target): Update.
112 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
113 argument.
114
a863b201
TT
1152014-02-19 Tom Tromey <tromey@redhat.com>
116
117 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
118 argument.
119 (target_insert_fork_catchpoint): Add argument.
120 * target.c (debug_to_insert_fork_catchpoint): Add argument.
121 (update_current_target): Update.
122 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
123 argument.
124
2e97a79e
TT
1252014-02-19 Tom Tromey <tromey@redhat.com>
126
127 * target.h (struct target_ops) <to_post_startup_inferior>: Add
128 argument.
129 (target_post_startup_inferior): Add argument.
130 * target.c (debug_to_post_startup_inferior): Add argument.
131 (update_current_target): Update.
132 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
133 argument.
134 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
135 argument.
136 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
137 argument.
138 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
139 argument.
140 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
141 'self' argument.
142 (super_post_startup_inferior): Likewise.
143 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
144 'self' argument.
145 (super_post_startup_inferior): Likewise.
146 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
147 Add 'self' argument.
148 (super_post_startup_inferior): Likewise.
149
71a9f134
TT
1502014-02-19 Tom Tromey <tromey@redhat.com>
151
152 * target.h (struct target_ops) <to_load>: Add argument.
153 * target.c (target_load): Add argument.
154 (debug_to_load): Add argument.
155 (update_current_target): Update.
156 * remote.c (remote_load): Add 'self' argument.
157 * remote-sim.c (gdbsim_load): Add 'self' argument.
158 * remote-mips.c (mips_load): Add 'self' argument.
159 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
160 * monitor.c (monitor_load): Add 'self' argument.
161 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
162
0a4f40a2
TT
1632014-02-19 Tom Tromey <tromey@redhat.com>
164
165 * target.h (struct target_ops) <to_terminal_info>: Add argument.
166 (target_terminal_info): Add argument.
167 * target.c (debug_to_terminal_info): Add argument.
168 (default_terminal_info): Likewise.
169 * inflow.c (child_terminal_info): Add 'self' argument.
170 * inferior.h (child_terminal_info): Add 'self' argument.
171 * go32-nat.c (go32_terminal_info): Add 'self' argument.
172
ae3bd431
TT
1732014-02-19 Tom Tromey <tromey@redhat.com>
174
175 * target.h (struct target_ops) <to_terminal_save_ours>: Add
176 argument.
177 (target_terminal_save_ours): Add argument.
178 * target.c (debug_to_terminal_save_ours): Add argument.
179 (update_current_target): Update.
180 * inflow.c (terminal_save_ours): Add 'self' argument.
181 * inferior.h (terminal_save_ours): Add 'self' argument.
182
e3594fd1
TT
1832014-02-19 Tom Tromey <tromey@redhat.com>
184
185 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
186 (target_terminal_ours): Add argument.
187 * target.c (debug_to_terminal_ours): Add argument.
188 (update_current_target): Update.
189 * remote.c (remote_terminal_ours): Add 'self' argument.
190 (remote_close): Update.
191 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
192 * inflow.c (terminal_ours): Add 'self' argument.
193 * inferior.h (terminal_ours): Add 'self' argument.
194 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
195
2e1e1a19
TT
1962014-02-19 Pedro Alves <palves@redhat.com>
197 Tom Tromey <tromey@redhat.com>
198
199 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
200 argument.
201 (target_terminal_ours_for_output): Add argument.
202 * target.c (debug_to_terminal_ours_for_output): Add argument.
203 (update_current_target): Update.
204 * inflow.c (terminal_ours_for_output): Add 'self' argument.
205 * inferior.h (terminal_ours_for_output): Add 'self' argument.
206 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
207
d2f640d4
TT
2082014-02-19 Tom Tromey <tromey@redhat.com>
209
210 * target.h (struct target_ops) <to_terminal_inferior>: Add
211 argument.
212 * target.c (target_terminal_inferior): Add argument.
213 (update_current_target): Update.
214 * remote.c (remote_terminal_inferior): Add 'self' argument.
215 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
216 * inflow.c (terminal_inferior): Add 'self' argument.
217 * inferior.h (terminal_inferior): Add 'self' argument.
218 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
219 (go32_terminal_inferior): Add 'self' argument.
220
c42bf286
TT
2212014-02-19 Tom Tromey <tromey@redhat.com>
222
223 * target.h (struct target_ops) <to_terminal_init>: Add argument.
224 (target_terminal_init): Add argument.
225 * target.c (debug_to_terminal_init): Add argument.
226 (update_current_target): Update.
227 * inflow.c (terminal_init_inferior): Add 'self' argument.
228 * inferior.h (terminal_init_inferior): Add 'self' argument.
229 * go32-nat.c (go32_terminal_init): Add 'self' argument.
230 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
231
c3a5ff89
TT
2322014-02-19 Tom Tromey <tromey@redhat.com>
233
234 * target.h (struct target_ops)
235 <to_can_accel_watchpoint_condition>: Add argument.
236 (target_can_accel_watchpoint_condition): Add argument.
237 * target.c (debug_to_can_accel_watchpoint_condition): Add
238 argument.
239 (update_current_target): Update.
240 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
241 'self' argument.
242
31568a15
TT
2432014-02-19 Tom Tromey <tromey@redhat.com>
244
245 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
246 Add argument.
247 (target_region_ok_for_hw_watchpoint): Add argument.
248 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
249 (default_region_ok_for_hw_watchpoint): Add argument.
250 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
251 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
252 argument.
253 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
254 argument.
255 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
256 argument.
257 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
258 'self' argument.
259 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
260 'self' argument.
261 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
262 'self' argument.
263 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
264 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
265 'self' argument.
266 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
267 Add 'self' argument.
268
7bb99c53
TT
2692014-02-19 Tom Tromey <tromey@redhat.com>
270
271 * target.h (struct target_ops) <to_insert_watchpoint>: Add
272 argument.
273 (target_insert_watchpoint): Add argument.
274 * target.c (debug_to_insert_watchpoint): Add argument.
275 (update_current_target): Update.
276 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
277 * remote.c (remote_insert_watchpoint): Add 'self' argument.
278 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
279 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
280 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
281 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
282 argument.
283 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
284 (procfs_insert_hw_watchpoint): Add 'self' argument.
285 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
286 argument.
287 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
288 argument.
289 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
290 argument.
291 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
292 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
293 argument.
294 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
295 'self' argument.
296
11b5219a
TT
2972014-02-19 Tom Tromey <tromey@redhat.com>
298
299 * target.h (struct target_ops) <to_remove_watchpoint>: Add
300 argument.
301 (target_remove_watchpoint): Add argument.
302 * target.c (debug_to_remove_watchpoint): Add argument.
303 (update_current_target): Update.
304 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
305 * remote.c (remote_remove_watchpoint): Add 'self' argument.
306 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
307 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
308 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
309 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
310 argument.
311 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
312 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
313 argument.
314 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
315 argument.
316 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
317 argument.
318 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
319 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
320 argument.
321 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
322 'self' argument.
323
a64dc96c
TT
3242014-02-19 Tom Tromey <tromey@redhat.com>
325
326 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
327 argument.
328 (target_remove_hw_breakpoint): Add argument.
329 * target.c (debug_to_remove_hw_breakpoint): Add argument.
330 (update_current_target): Update.
331 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
332 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
333 argument.
334 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
335 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
336 argument.
337 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
338 'self' argument.
339
23a26771
TT
3402014-02-19 Tom Tromey <tromey@redhat.com>
341
342 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
343 argument.
344 (target_insert_hw_breakpoint): Add argument.
345 * target.c (debug_to_insert_hw_breakpoint): Add argument.
346 (update_current_target): Update.
347 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
348 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
349 argument.
350 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
351 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
352 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
353 argument.
354 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
355 'self' argument.
356
5461485a
TT
3572014-02-19 Tom Tromey <tromey@redhat.com>
358
359 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
360 argument.
361 (target_can_use_hardware_watchpoint): Add argument.
362 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
363 (update_current_target): Update.
364 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
365 argument.
366 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
367 argument.
368 * remote.c (remote_check_watch_resources): Add 'self' argument.
369 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
370 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
371 argument.
372 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
373 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
374 argument.
375 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
376 argument.
377 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
378 argument.
379 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
380 argument.
381 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
382 argument.
383 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
384 argument.
385 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
386 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
387 argument.
388 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
389 'self' argument.
390
f045800c
TT
3912014-02-19 Tom Tromey <tromey@redhat.com>
392
393 * target.h (struct target_ops) <to_post_attach>: Add argument.
394 (target_post_attach): Add argument.
395 * target.c (debug_to_post_attach): Add argument.
396 (update_current_target): Update.
397 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
398 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
399 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
400 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
401 * inf-child.c (inf_child_post_attach): Add 'self' argument.
402
de90e03d
TT
4032014-02-19 Tom Tromey <tromey@redhat.com>
404
405 * windows-nat.c (windows_close): Add 'self' argument.
406 * tracepoint.c (tfile_close): Add 'self' argument.
407 * target.h (struct target_ops) <to_close>: Add argument.
408 * target.c (target_close): Add argument.
409 (update_current_target): Update.
410 * remote.c (remote_close): Add 'self' argument.
411 * remote-sim.c (gdbsim_close): Add 'self' argument.
412 * remote-mips.c (mips_close): Add 'self' argument.
413 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
414 * record-full.c (record_full_close): Add 'self' argument.
415 * record-btrace.c (record_btrace_close): Add 'self' argument.
416 * monitor.h (monitor_close): Add 'self' argument.
417 * monitor.c (monitor_close): Add 'self' argument.
418 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
419 * linux-nat.c (linux_nat_close): Add argument.
420 * go32-nat.c (go32_close): Add 'self' argument.
421 * exec.c (exec_close_1): Add 'self' argument.
422 * ctf.c (ctf_close): Add 'self' argument.
423 * corelow.c (core_close): Add 'self' argument.
424 (core_close_cleanup): Update.
425 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
426 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
427
9dd130a0
TT
4282014-02-19 Tom Tromey <tromey@redhat.com>
429
430 * remote.c (remote_load): New function.
431 (init_remote_ops): Use it.
432
46917d26
TT
4332014-02-19 Tom Tromey <tromey@redhat.com>
434
435 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
436 argument.
437 * common/linux-btrace.h (linux_supports_btrace): Update.
438 * remote.c (remote_supports_btrace): Add "self" argument.
439 * target-delegates.c: Rebuild.
440 * target.c (target_supports_btrace): Remove.
441 * target.h (struct target_ops) <to_supports_btrace>: Add
442 target_ops argument.
443 (target_supports_btrace): New define.
444
6b84065d
TT
4452014-02-19 Tom Tromey <tromey@redhat.com>
446
447 * record-full.c (record_full_beneath_to_resume_ops)
448 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
449 (record_full_beneath_to_wait)
450 (record_full_beneath_to_store_registers_ops)
451 (record_full_beneath_to_store_registers)
452 (record_full_beneath_to_xfer_partial_ops)
453 (record_full_beneath_to_xfer_partial)
454 (record_full_beneath_to_insert_breakpoint_ops)
455 (record_full_beneath_to_insert_breakpoint)
456 (record_full_beneath_to_remove_breakpoint_ops)
457 (record_full_beneath_to_remove_breakpoint)
458 (record_full_beneath_to_stopped_by_watchpoint)
459 (record_full_beneath_to_stopped_data_address)
460 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
461 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
462 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
463 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
464 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
465 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
466 (tmp_to_stopped_data_address, tmp_to_async): Remove.
467 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
468 (record_full_resume, record_full_wait_1)
469 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
470 (record_full_store_registers, record_full_xfer_partial)
471 (record_full_insert_breakpoint, record_full_remove_breakpoint)
472 (record_full_async, record_full_core_xfer_partial): Use target
473 delegation.
474 * target-delegates.c: Rebuild.
475 * target.c (current_xfer_partial): Remove.
476 (update_current_target): Do not INHERIT or de_fault
477 to_insert_breakpoint, to_remove_breakpoint,
478 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
479 to_is_async_p, to_async. Do not set to_xfer_partial field.
480 (default_xfer_partial): Simplify.
481 (current_xfer_partial): Remove.
482 (target_wait, target_resume): Simplify.
483 (find_default_can_async_p, find_default_is_async_p): Update.
484 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
485 to_xfer_partial, to_stopped_by_watchpoint,
486 to_stopped_data_address.
487 (target_store_registers): Simplify.
488 (forward_target_remove_breakpoint)
489 (forward_target_insert_breakpoint): Remove.
490 (target_remove_breakpoint, target_insert_breakpoint)
491 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
492 * target.h (struct target_ops) <to_resume, to_wait,
493 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
494 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
495 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
496 markup.
497 (forward_target_remove_breakpoint)
498 (forward_target_insert_breakpoint): Remove.
499 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
500 directly.
501 (record_btrace_insert_breakpoint): Delegate directly.
502
1101cb7b
TT
5032014-02-19 Tom Tromey <tromey@redhat.com>
504
505 PR build/7701:
506 * target-delegates.c: New file.
507 * target.c: Include target-delegates.c.
508 (init_dummy_target): Call install_dummy_methods.
509 (complete_target_initialization): Call install_delegators.
510 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
511 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
512 * make-target-delegates: New file.
513
8b06beed
TT
5142014-02-19 Tom Tromey <tromey@redhat.com>
515
516 * record.c (find_record_target): Use find_target_at.
517 * target.c (find_target_at): New function.
518 * target.h (find_target_at): Declare.
519
6a109b6b
TT
5202014-02-19 Tom Tromey <tromey@redhat.com>
521
522 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
523 Add 'ops' argument.
524 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
525 'ops' argument.
526 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
527 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
528 'ops' argument.
529 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
530 argument.
531 * linux-nat.c (save_sigtrap): Update.
532 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
533 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
534 (linux_nat_close): Update.
535 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
536 argument.
537 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
538 argument.
539 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
540 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
541 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
542 (tmp_to_async): Add 'ops' argument.
543 (record_full_stopped_by_watchpoint, record_full_async)
544 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
545 argument.
546 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
547 (m32r_stopped_by_watchpoint): Add 'ops' argument.
548 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
549 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
550 (remote_is_async_p, remote_async): Add 'ops' argument.
551 (remote_stopped_data_address): Update.
552 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
553 * target.c (update_current_target)
554 (find_default_can_async_p, find_default_is_async_p): Update.
555 (init_dummy_target): Update.
556 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
557 * target.h (struct target_ops) <to_stopped_by_watchpoint,
558 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
559 (target_can_async_p, target_is_async_p, target_async)
560 (target_stopped_by_watchpoint): Update.
561
e095146b
YQ
5622014-02-19 Yao Qi <yao@codesourcery.com>
563
564 PR gdb/16220
565 * gdbarch.sh: Remove startup_gdbarch.
566 * gdbarch.c: Regenerated.
567 * gdbarch.h: Likewise.
568
bc3c6b36
KB
5692014-02-17 Kevin Buettner <kevinb@redhat.com>
570
571 * rl78-tdep.c (rl78_g10_register_name): New function.
572 (rl78_return_value): Add g10 support.
573 (rl78_gdbarch_init): Register rl78_g10_register_name for the
574 g10.
575
98dc0167 5762014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
577
578 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
579 (SUBDIR_GUILE_SRCS): Ditto.
580 (scm-gsmob.o): Ditto.
581
842c05cd
YQ
5822014-02-17 Yao Qi <yao@codesourcery.com>
583
584 * gnu-nat.c (ILL_RPC): Declare defined function.
585
25c0bd04
YQ
5862014-02-17 Yao Qi <yao@codesourcery.com>
587
588 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
589 mach_msg_type_number_t.
590 (gnu_write_inferior): Likewise.
591
a9a758e3
YQ
5922014-02-17 Yao Qi <yao@codesourcery.com>
593
594 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
595 in format string.
596 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
597 (inf_validate_procs, inf_signal): Likewise.
598 (S_exception_raise_request): Likewise.
599 (do_mach_notify_dead_name): Likewise.
600 (steal_exc_port): Likewise.
601 (gnu_read_inferior): Change 'copy_count''s type to
602 mach_msg_type_number_t.
603 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
604 format string.
605
bae8023e
TS
6062014-02-16 Thomas Schwinge <thomas@codesourcery.com>
607
c82f56d9
TS
608 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
609 flag. Adjust all users; in particular...
610 (gnu_wait): ..., don't decrement its value in here...
611 (gnu_create_inferior): ..., and instead set the flag in here,
612 around the startup_inferior call, and call that one with
613 START_INFERIOR_TRAPS_EXPECTED.
614
3398af6a
TS
615 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
616 (ILL_RPC): ... new macro.
617 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
618 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
619 (do_mach_notify_send_once, S_proc_setmsgport_reply)
620 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
621 functions with ILL_RPC macro.
622 (S_proc_pid2task_reply, S_proc_task2pid_reply)
623 (S_proc_task2proc_reply, S_proc_proc2task_reply)
624 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
625 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
626 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
627 (S_proc_getlogin_reply, S_proc_getsid_reply)
628 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
629 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
630 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
631 (S_proc_getnports_reply, S_proc_is_important_reply)
632 (S_proc_get_code_reply): New stub functions, generated with
633 ILL_RPC macro.
634
d47642c9
TS
635 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
636 collected the type check structures.
637
bae8023e
TS
638 * reply_mig_hack.awk: Don't expect to see the auto keyword.
639
8a55ffb0
DE
6402014-02-14 Doug Evans <dje@google.com>
641
642 * target.c (target_write_partial): Fix result type.
643
c2853f3d
JM
6442014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
645
646 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
647 the proper offsets to access fpregset_t.
648
ac61d2db
SA
6492014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
650
651 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
652 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
653 * h8300-tdep.c (setmachinelist): Remove global.
654 * hppa-tdep.c (hppa_sigtramp): Remove global.
655 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
656 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
657 * ravenscar-thread.c (update_target_observer): Remove global.
658 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
659
9d2d0b8b
TT
6602014-02-12 Tom Tromey <tromey@redhat.com>
661
662 * common/rsp-low.c: Update comments.
663 * common/rsp-low.h: Update comments.
664
a7191e8b
TT
6652014-02-12 Tom Tromey <tromey@redhat.com>
666
667 * common/rsp-low.c (convert_ascii_to_int): Remove.
668 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
669
ff0e980e
TT
6702014-02-12 Tom Tromey <tromey@redhat.com>
671
672 * common/rsp-low.h (unhexify): Don't declare.
673 * common/rsp-low.c (unhexify): Remove.
674
e9371aff
TT
6752014-02-12 Tom Tromey <tromey@redhat.com>
676
677 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
678 * common/rsp-low.c (convert_int_to_ascii): Remove.
679
971dc0b8
TT
6802014-02-12 Tom Tromey <tromey@redhat.com>
681
682 * common/rsp-low.h (hexify): Don't declare.
683 * common/rsp-low.c (hexify): Remove.
684
0a822afb
TT
6852014-02-12 Tom Tromey <tromey@redhat.com>
686
687 * common/rsp-low.c (hexify): Never take strlen of argument.
688
9f1b45b0
TT
6892014-02-12 Tom Tromey <tromey@redhat.com>
690
691 * common/rsp-low.c (bin2hex): Never take strlen of argument.
692 * remote.c (extended_remote_run, remote_rcmd)
693 (remote_download_trace_state_variable, remote_save_trace_data)
694 (remote_set_trace_notes): Update.
695 * tracepoint.c (encode_source_string, tfile_write_status)
696 (tfile_write_uploaded_tsv): Update.
697
9c3d6531
TT
6982014-02-12 Tom Tromey <tromey@redhat.com>
699
700 * tracepoint.c: Include rsp-low.h.
701 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
702 * remote.c: Include rsp-low.h.
703 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
704 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
705 (remote_unescape_input): Move to common/rsp-low.c.
706 * common/rsp-low.h: New file.
707 * common/rsp-low.c: New file.
708 * Makefile.in (SFILES): Add common/rsp-low.c.
709 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
710 (COMMON_OBS): Add rsp-low.o.
711 (rsp-low.o): New target.
712
01fd3ea5
TT
7132014-02-12 Tom Tromey <tromey@redhat.com>
714
715 * utils.h: Include print-utils.h.
716 (host_address_to_string, plongest, pulongest, phex, phex_nz)
717 (int_string, core_addr_to_string, core_addr_to_string_nz)
718 (hex_string, hex_string_custom): Don't declare.
719 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
720 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
721 (hex_string_custom, int_string, core_addr_to_string)
722 (core_addr_to_string_nz, host_address_to_string): Move to
723 common/print-utils.c.
724 * common/print-utils.h: New file.
725 * common/print-utils.c: New file
726 * Makefile.in (SFILES): Add common/print-utils.c.
727 (HFILES_NO_SRCDIR): Add common/print-utils.h.
728 (COMMON_OBS): Add print-utils.o.
729 (print-utils.o): New target.
730
9fb50108
TT
7312014-02-12 Tom Tromey <tromey@redhat.com>
732
733 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
734
0548b5db
MK
7352014-02-12 Mark Kettenis <kettenis@gnu.org>
736
737 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
738
493443a4
MK
7392014-02-12 Mark Kettenis <kettenis@gnu.org>
740
741 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
742 if a PT_IO ptrace request returns sucessfully but indicates that 0
743 bytes were transferred.
744
706d0883
PA
7452014-02-12 Pedro Alves <palves@redhat.com>
746 Kevin Buettner <kevinb@redhat.com>
747
748 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
749 TYPE_INSTANCE_FLAG_CODE_SPACE.
750
5caa2f0b
PA
7512014-02-12 Pedro Alves <palves@redhat.com>
752
753 * h8300-tdep.c (pseudo_from_raw_register)
754 (raw_from_pseudo_register): New functions.
755 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
756 them.
757
76fd5f74
PA
7582014-02-12 Pedro Alves <palves@redhat.com>
759
760 * h8300-tdep.c (h8300_register_sim_regno): New function.
761 (h8300_gdbarch_init): Install h8300_register_sim_regno as
762 gdbarch_register_sim_regno hook.
763
8f008406
SA
7642014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
765
766 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
767
195abc10
SA
7682014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
769
770 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
771
93ffa5b9
MK
7722014-02-12 Mark Kettenis <kettenis@gnu.org>
773
774 * obsd-tdep.h (obsd_init_abi): New prototype.
775 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
776 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
777 (obsd_init_abi): New functions.
778 * i386obsd-tdep.c: Include "obsd-tdep.h".
779 (i386obsd_init_abi): Call obsd_init_abi.
780 * amd64obsd-tdep.c: Include "obsd-tdep.h".
781 (amd64obsd_init_abi): Call obsd_init_abi.
782 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
783 obsd-tdep.c to gdb_target_obs.
784
49caec94
JM
7852014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
786
787 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
788 double float arguments to 16-byte in the argument slots.
789
e1402065
DE
7902014-02-11 Doug Evans <xdje42@gmail.com>
791
792 * configure.ac: Don't crash if pkg-config is not found and guile
793 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
794 in guile checks.
795 * configure: Regenerate.
796
edcc890f
YQ
7972014-02-11 Yao Qi <yao@codesourcery.com>
798
799 * aix-thread.c (aix_thread_xfer_partial): Update comments.
800 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
801 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
802 * gnu-nat.c (gnu_xfer_memory): Likewise.
803 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
804 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
805 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
806 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
807
9b409511
YQ
8082014-02-11 Yao Qi <yao@codesourcery.com>
809
810 * target.h (enum target_xfer_error): Rename to ...
811 (enum target_xfer_status): ... it. New. All users updated.
812 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
813 New.
814 (TARGET_XFER_STATUS_ERROR_P): New macro.
815 (target_xfer_error_to_string): Remove declaration.
816 (target_xfer_status_to_string): Declare.
817 (target_xfer_partial_ftype): Adjust it.
818 (struct target_ops) <to_xfer_partial>: Return
819 target_xfer_status. Add argument xfered_len. Update
820 comments.
821 * target.c (target_xfer_error_to_string): Rename to ...
822 (target_xfer_status_to_string): ... it. New. All callers
823 updated.
824 (target_read_live_memory): Likewise. Call target_xfer_partial
825 instead of target_read.
826 (memory_xfer_live_readonly_partial): Return
827 target_xfer_status. Add argument xfered_len.
828 (raw_memory_xfer_partial): Likewise.
829 (memory_xfer_partial_1): Likewise.
830 (memory_xfer_partial): Likewise.
831 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
832 properly. Update debug message.
833 (default_xfer_partial, current_xfer_partial): Likewise.
834 (target_write_partial): Likewise.
835 (target_read_partial): Likewise. All callers updated.
836 (read_whatever_is_readable): Likewise.
837 (target_write_with_progress): Likewise.
838 (target_read_alloc_1): Likewise.
839
840 * aix-thread.c (aix_thread_xfer_partial): Likewise.
841 * auxv.c (procfs_xfer_auxv): Likewise.
842 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
843 * bfd-target.c (target_bfd_xfer_partial): Likewise.
844 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
845 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
846 * corefile.c (read_memory): Adjust.
847 * corelow.c (core_xfer_partial): Likewise.
848 * ctf.c (ctf_xfer_partial): Likewise.
849 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
850 updated.
851 (darwin_xfer_partial): Likewise.
852 * exec.c (section_table_xfer_memory_partial): Likewise. All
853 callers updated.
854 (exec_xfer_partial): Likewise.
855 * exec.h (section_table_xfer_memory_partial): Update
856 declaration.
857 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
858 negative.
859 (gnu_xfer_partial): Likewise.
860 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
861 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
862 (ia64_hpux_xfer_solib_got): Likewise.
863 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
864 type of 'partial_len' to ULONGEST.
865 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
866 * linux-nat.c (linux_xfer_siginfo ): Likewise.
867 (linux_nat_xfer_partial): Likewise.
868 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
869 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
870 * monitor.c (monitor_xfer_memory): Likewise.
871 (monitor_xfer_partial): Likewise.
872 * procfs.c (procfs_xfer_partial): Likewise.
873 * record-btrace.c (record_btrace_xfer_partial): Likewise.
874 * record-full.c (record_full_xfer_partial): Likewise.
875 (record_full_core_xfer_partial): Likewise.
876 * remote-sim.c (gdbsim_xfer_memory): Likewise.
877 (gdbsim_xfer_partial): Likewise.
878 * remote.c (remote_write_bytes_aux): Likewise. All callers
879 updated.
880 (remote_write_bytes, remote_read_bytes): Likewise. All
881 callers updated.
882 (remote_flash_erase): Likewise. All callers updated.
883 (remote_write_qxfer): Likewise. All callers updated.
884 (remote_read_qxfer): Likewise. All callers updated.
885 (remote_xfer_partial): Likewise.
886 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
887 (rs6000_xfer_shared_libraries): Likewise.
888 * sol-thread.c (sol_thread_xfer_partial): Likewise.
889 (sol_thread_xfer_partial): Likewise.
890 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
891 (sparc_xfer_partial): Likewise.
892 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
893 updated.
894 (spu_xfer_partial): Likewise.
895 * spu-multiarch.c (spu_xfer_partial): Likewise.
896 * tracepoint.c (tfile_xfer_partial): Likewise.
897 * windows-nat.c (windows_xfer_memory): Likewise.
898 (windows_xfer_shared_libraries): Likewise.
899 (windows_xfer_partial): Likewise.
900 * valprint.c: Replace 'target_xfer_error' with
901 'target_xfer_status' in comments.
902
a8e63083
JB
9032014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
904
905 Checked in by Joel Brobecker <brobecker@adacore.com>.
906 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
907
e86b67d3
JB
9082014-02-11 Joel Brobecker <brobecker@adacore.com>
909
910 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
911 function parameters.
912
4b7d1f7f
WN
9132014-02-10 Will Newton <will.newton@linaro.org>
914
915 * elfread.c (elf_rel_plt_read): Look for a .got section if
916 looking up .got.plt fails.
917 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
918 on address passed to elf_gnu_ifunc_record_cache.
919 (elf_gnu_ifunc_resolve_addr): Likewise.
920 (elf_gnu_ifunc_resolver_return_stop): Likewise.
921
961842b2
JM
9222014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
923
924 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
925 (X_RETTURN): New macro.
926 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
927
928 * sparc64-tdep.c (sparc64_init_abi): Hook
929 sparc_in_function_epilogue_p.
930
3f03e7b1
GB
9312014-02-10 Gary Benson <gbenson@redhat.com>
932
933 * symfile-debug.c (debug_qf_expand_symtabs_matching):
934 Rename name_matcher to symbol_matcher.
935
96f861ef
GB
9362014-02-10 Gary Benson <gbenson@redhat.com>
937
938 * symfile-debug.c (debug_qf_expand_symtabs_matching):
939 Use expand_symtabs_file_matcher_ftype and
940 expand_symtabs_symbol_matcher_ftype.
941
ee01b665
JB
9422014-02-10 Joel Brobecker <brobecker@adacore.com>
943
944 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
945 (struct ada_symbol_cache): New.
946 (ada_free_symbol_cache): Forward declare.
947 (struct ada_pspace_data): New.
948 (ada_pspace_data_handle): New static global.
949 (get_ada_pspace_data, ada_pspace_data_cleanup)
950 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
951 (cache_space, cache): Delete, now folded inside struct
952 ada_pspace_data.
953 (ada_get_symbol_cache): New function.
954 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
955 implementation.
956 (_initialize_ada_language): Remove initialization of cache_space.
957 Move call to observer_attach_inferior_exit up, grouping it
958 with the other observer registrations inside this function.
959 Rename command to be more general. Add call to
960 register_program_space_data_with_cleanup.
961
143adbbf
JB
9622014-02-10 Joel Brobecker <brobecker@adacore.com>
963
964 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
965 ada_new_objfile_observer.
966 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
967 (_initialize_tasks): Update uses of ada_new_objfile_observer
968 and ada_tasks_normal_stop_observer.
969
aa4fb036
JB
9702014-02-10 Joel Brobecker <brobecker@adacore.com>
971
972 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
973 returned by the 'Length attribute to integer.
974
9dee8cc6
JB
9752014-02-10 Joel Brobecker <brobecker@adacore.com>
976
977 * ada-lang.c (_initialize_ada_language): Initialize
978 cache_space obstack.
979
3d9434b5
JB
9802014-02-10 Joel Brobecker <brobecker@adacore.com>
981
982 * ada-lang.c (HASH_SIZE): New macro.
983 (struct cache_entry): New type.
984 (cache_space, cache): New static globals.
985 (ada_clear_symbol_cache, find_entry): New functions.
986 (lookup_cached_symbol, cache_symbol): Implement.
987 (ada_new_objfile_observer, ada_free_objfile_observer): New.
988 (_initialize_ada_language): Attach ada_new_objfile_observer
989 and ada_free_objfile_observer.
990
f0c5f9b2
JB
9912014-02-10 Joel Brobecker <brobecker@adacore.com>
992
993 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
994 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
995 struct block * parameter.
996 (ada_lookup_symbol_list_worker): Constify local variable "block".
997 Remove cast which is no longer necessary.
998
ed3ef339
DE
9992014-02-10 Doug Evans <xdje42@gmail.com>
1000
1001 Add Guile as an extension language.
1002 * NEWS: Mention Guile scripting.
1003 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
1004 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
1005 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
1006 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
1007 (CLIBS): Add GUILE_LIBS.
1008 (install-guile): New rule.
1009 (guile.o): New rule.
1010 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
1011 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
1012 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
1013 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
1014 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
1015 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
1016 (scm-type.o, scm-utils.o, scm-value.o): New rules.
1017 * configure.ac: New option --with-guile.
1018 * configure: Regenerate.
1019 * config.in: Regenerate.
1020 * auto-load.c: Remove #include "python/python.h". Add #include
1021 "gdb/section-scripts.h".
1022 (source_section_scripts): Handle Guile scripts.
1023 (_initialize_auto_load): Add name of Guile objfile script to
1024 scripts-directory help text.
1025 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1026 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1027 (struct breakpoint): New member scm_bp_object.
1028 * defs.h (enum command_control_type): New value guile_control.
1029 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1030 "extension.h".
1031 (show_user): Update comment.
1032 (_initialize_cli_cmds): Update help text for "show user". Update help
1033 text for max-user-call-depth.
1034 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1035 "extension.h".
1036 (multi_line_command_p): Add guile_control.
1037 (print_command_lines): Handle guile_control.
1038 (execute_control_command, recurse_read_control_structure): Ditto.
1039 (process_next_line): Recognize "guile" commands.
1040 * disasm.c (gdb_disassemble_info): Make non-static.
1041 * disasm.h: #include "dis-asm.h".
1042 (struct gdbarch): Add forward decl.
1043 (gdb_disassemble_info): Declare.
1044 * extension.c: #include "guile/guile.h".
1045 (extension_languages): Add guile.
1046 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1047 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1048 * gdbtypes.c (get_unsigned_type_max): New function.
1049 (get_signed_type_minmax): New function.
1050 * gdbtypes.h (get_unsigned_type_max): Declare.
1051 (get_signed_type_minmax): Declare.
1052 * guile/README: New file.
1053 * guile/guile-internal.h: New file.
1054 * guile/guile.c: New file.
1055 * guile/guile.h: New file.
1056 * guile/scm-arch.c: New file.
1057 * guile/scm-auto-load.c: New file.
1058 * guile/scm-block.c: New file.
1059 * guile/scm-breakpoint.c: New file.
1060 * guile/scm-disasm.c: New file.
1061 * guile/scm-exception.c: New file.
1062 * guile/scm-frame.c: New file.
1063 * guile/scm-gsmob.c: New file.
1064 * guile/scm-iterator.c: New file.
1065 * guile/scm-lazy-string.c: New file.
1066 * guile/scm-math.c: New file.
1067 * guile/scm-objfile.c: New file.
1068 * guile/scm-ports.c: New file.
1069 * guile/scm-pretty-print.c: New file.
1070 * guile/scm-safe-call.c: New file.
1071 * guile/scm-string.c: New file.
1072 * guile/scm-symbol.c: New file.
1073 * guile/scm-symtab.c: New file.
1074 * guile/scm-type.c: New file.
1075 * guile/scm-utils.c: New file.
1076 * guile/scm-value.c: New file.
1077 * guile/lib/gdb.scm: New file.
1078 * guile/lib/gdb/boot.scm: New file.
1079 * guile/lib/gdb/experimental.scm: New file.
1080 * guile/lib/gdb/init.scm: New file.
1081 * guile/lib/gdb/iterator.scm: New file.
1082 * guile/lib/gdb/printing.scm: New file.
1083 * guile/lib/gdb/types.scm: New file.
1084 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1085 (VPATH): Add $(GUILE_SRCDIR).
1086 (GUILE_DIR): New variable.
1087 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1088 (all): Add stamp-guile dependency.
1089 (stamp-guile): New rule.
1090 (clean-guile, install-guile, uninstall-guile): New rules.
1091 (install-only): Add install-guile dependency.
1092 (uninstall): Add uninstall-guile dependency.
1093 (clean): Add clean-guile dependency.
1094
ac020ec5
DE
10952014-02-09 Doug Evans <xdje42@gmail.com>
1096
1097 Revert this patch (which I approved, mea culpa).
1098
1099 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1100
1101 * Makefile.in (all-lib): Remove.
1102 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1103
2a081c59
JK
11042014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1105
1106 Fix Python stack corruption.
1107 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1108 gdb_py_longest.
1109
0a6bd22d
MK
11102014-02-08 Mark Kettenis <kettenis@gnu.org>
1111
1112 * Makefile.in (all-lib): Remove.
1113 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1114
1a860409
DE
11152014-02-07 Doug Evans <dje@google.com>
1116
1117 * extension-priv.h (extension_language_script_ops): Add comment.
1118 (extension_language_ops): Add comment.
caf5a491 1119 (active_ext_lang_state): Fix typo in comment.
1a860409 1120
d137e6dc
PA
11212014-02-07 Pedro Alves <palves@redhat.com>
1122
1123 * infrun.c (handle_signal_stop) <signal arrives while stepping
1124 over a breakpoint>: Switch back to the stepping thread.
1125
ce6d0892
YQ
11262014-02-07 Yao Qi <yao@codesourcery.com>
1127
1128 * target.c (target_xfer_partial): Return zero if LEN is zero.
1129
2ed4b548
YQ
11302014-02-07 Yao Qi <yao@codesourcery.com>
1131
1132 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1133 (ld_so_xfer_auxv): Likewise.
1134 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1135 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1136 * corelow.c (core_xfer_partial): Likewise.
1137 * ctf.c (ctf_xfer_partial): Likewise.
1138 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1139 (darwin_xfer_partial): Likewise.
1140 * exec.c (exec_xfer_partial): Likewise.
1141 * gnu-nat.c (gnu_xfer_partial): Likewise.
1142 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1143 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1144 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1145 * linux-nat.c (linux_xfer_siginfo): Likewise.
1146 (linux_proc_xfer_spu): Likewise.
1147 * procfs.c (procfs_xfer_partial): Likewise.
1148 * record-full.c (record_full_xfer_partial): Likewise.
1149 (record_full_core_xfer_partial): Likewise.
1150 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1151 * remote.c (remote_write_qxfer): Likewise.
1152 (remote_write_qxfer, remote_read_qxfer): Likewise.
1153 (remote_xfer_partial): Likewise.
1154 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1155 (rs6000_xfer_shared_libraries): Likewise.
1156 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1157 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1158 (spu_xfer_partial): Likewise.
1159 * target.c (memory_xfer_partial_1): Likewise.
1160 * tracepoint.c (tfile_xfer_partial): Likewise.
1161 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1162 (windows_xfer_partial): Likewise.
1163
c09f20e4
YQ
11642014-02-07 Yao Qi <yao@codesourcery.com>
1165
1166 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1167 comments.
1168 (core_xfer_shared_libraries_aix): Likewise.
1169 * gdbarch.c, gdbarch.h: Regenerated.
1170 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1171 ULONGEST. Change 'len_avail' type to ULONGEST.
1172 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1173 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1174 declaration.
1175 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1176
8635b3bf
YQ
11772014-02-07 Yao Qi <yao@codesourcery.com>
1178
1179 * corefile.c (memory_error): Get 'exception' from ERR and pass
1180 'exception' to throw_error.
1181
6dddc817
DE
11822014-02-06 Doug Evans <xdje42@gmail.com>
1183
1184 * configure.ac (libpython checking): Remove all but python.o from
1185 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1186 * configure: Regenerate.
1187
1188 * Makefile.in (SFILES): Add extension.c.
1189 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1190 (COMMON_OBS): Add extension.o.
1191 * extension.h: New file.
1192 * extension-priv.h: New file.
1193 * extension.c: New file.
1194
1195 * python/python-internal.h: #include "extension.h".
1196 (gdbpy_auto_load_enabled): Declare.
1197 (gdbpy_apply_val_pretty_printer): Declare.
1198 (gdbpy_apply_frame_filter): Declare.
1199 (gdbpy_preserve_values): Declare.
1200 (gdbpy_breakpoint_cond_says_stop): Declare.
1201 (gdbpy_breakpoint_has_cond): Declare.
1202 (void source_python_script_for_objfile): Delete.
1203 * python/python.c: #include "extension-priv.h".
1204 Delete inclusion of "observer.h".
1205 (extension_language_python): Moved here and renamed from
1206 script_language_python in py-auto-load.c.
1207 Redefined to be of type extension_language_defn.
1208 (python_extension_script_ops): New global.
1209 (python_extension_ops): New global.
1210 (struct python_env): New member previous_active.
1211 (restore_python_env): Call restore_active_ext_lang.
1212 (ensure_python_env): Call set_active_ext_lang.
1213 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1214 New arg extlang.
1215 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1216 New arg extlang.
1217 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1218 New arg extlang.
1219 (gdbpy_eval_from_control_command): Renamed from
1220 eval_python_from_control_command, made static. New arg extlang.
1221 (gdbpy_source_script) Renamed from source_python_script, made static.
1222 New arg extlang.
1223 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1224 result to int. New arg extlang.
1225 (gdbpy_source_objfile_script): Renamed from
1226 source_python_script_for_objfile, made static. New arg extlang.
1227 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1228 static. New args extlang, extlang_printers. Change result type to
1229 "void".
1230 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1231 static. New arg extlang. Rename arg printers to extlang_printers
1232 and change type to ext_lang_type_printers *.
1233 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1234 static. Replace argument arg with extlang, extlang_printers.
1235 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1236 (!HAVE_PYTHON, source_python_script): Delete.
1237 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1238 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1239 (!HAVE_PYTHON, start_type_printers): Delete.
1240 (!HAVE_PYTHON, apply_type_printers): Delete.
1241 (!HAVE_PYTHON, free_type_printers): Delete.
1242 (_initialize_python): Delete call to observer_attach_before_prompt.
1243 (finalize_python): Set/restore active extension language.
1244 (gdbpy_finish_initialization) Renamed from
1245 finish_python_initialization, made static. New arg extlang.
1246 (gdbpy_initialized): New function.
1247 * python/python.h: #include "extension.h". Delete #include
1248 "value.h", "mi/mi-cmds.h".
1249 (extension_language_python): Declare.
1250 (GDBPY_AUTO_FILE_NAME): Delete.
1251 (enum py_bt_status): Moved to extension.h and renamed to
1252 ext_lang_bt_status.
1253 (enum frame_filter_flags): Moved to extension.h.
1254 (enum py_frame_args): Moved to extension.h and renamed to
1255 ext_lang_frame_args.
1256 (finish_python_initialization): Delete.
1257 (eval_python_from_control_command): Delete.
1258 (source_python_script): Delete.
1259 (apply_val_pretty_printer): Delete.
1260 (apply_frame_filter): Delete.
1261 (preserve_python_values): Delete.
1262 (gdbpy_script_language_defn): Delete.
1263 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1264 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1265
1266 * auto-load.c: #include "extension.h".
1267 (GDB_AUTO_FILE_NAME): Delete.
1268 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1269 (script_language_gdb): Delete, moved to extension.c and renamed to
1270 extension_language_gdb.
1271 (source_gdb_script_for_objfile): Delete.
1272 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1273 (loaded_script): Change type of language member to
1274 struct extension_language_defn *.
1275 (init_loaded_scripts_info): Initialize
1276 unsupported_script_warning_printed.
1277 (maybe_add_script): Make static. Change type of language arg to
1278 struct extension_language_defn *.
1279 (clear_section_scripts): Reset unsupported_script_warning_printed.
1280 (auto_load_objfile_script_1): Rewrite to use extension language API.
1281 (auto_load_objfile_script): Make public. Remove support-compiled-in
1282 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1283 (source_section_scripts): Rewrite to use extension language API.
1284 (load_auto_scripts_for_objfile): Rewrite to use
1285 auto_load_scripts_for_objfile.
1286 (collect_matching_scripts_data): Change type of language member to
1287 struct extension_language_defn *.
1288 (auto_load_info_scripts): Change type of language arg to
1289 struct extension_language_defn *.
1290 (unsupported_script_warning_print): New function.
1291 (script_not_found_warning_print): Make static.
1292 (_initialize_auto_load): Rewrite construction of scripts-directory
1293 help.
1294 * auto-load.h (struct objfile): Add forward decl.
1295 (struct script_language): Delete.
1296 (struct auto_load_pspace_info): Add forward decl.
1297 (struct extension_language_defn): Add forward decl.
1298 (maybe_add_script): Delete.
1299 (auto_load_objfile_script): Declare.
1300 (script_not_found_warning_print): Delete.
1301 (auto_load_info_scripts): Update prototype.
1302 (auto_load_gdb_scripts_enabled): Declare.
1303 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1304 auto_load_python_scripts_enabled and made public.
1305 (script_language_python): Delete, moved to python.c.
1306 (gdbpy_script_language_defn): Delete.
1307 (info_auto_load_python_scripts): Update to use
1308 extension_language_python.
1309
1310 * breakpoint.c (condition_command): Replace call to
1311 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1312 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1313 with call to breakpoint_ext_lang_cond_says_stop.
1314 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1315 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
1316 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1317 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1318 New arg slang.
1319 (local_setattro): Print name of extension language with existing
1320 stop condition.
1321
1322 * valprint.c (val_print, value_print): Update to call
1323 apply_ext_lang_val_pretty_printer.
1324 * cp-valprint.c (cp_print_value): Update call to
1325 apply_ext_lang_val_pretty_printer.
1326 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1327 (gdbpy_apply_val_pretty_printer): Renamed from
1328 apply_val_pretty_printer. New arg extlang.
1329 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1330
1331 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1332 extension language API.
1333 * cli/cli-script.c (execute_control_command): Update to call
1334 eval_ext_lang_from_control_command.
1335
1336 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1337 enum ext_lang_bt_status values. Update call to
1338 apply_ext_lang_frame_filter.
1339 (mi_cmd_stack_list_locals): Ditto.
1340 (mi_cmd_stack_list_args): Ditto.
1341 (mi_cmd_stack_list_variables): Ditto.
1342 * mi/mi-main.c: Delete #include "python/python-internal.h".
1343 Add #include "extension.h".
1344 (mi_cmd_list_features): Replace reference to python internal variable
1345 gdb_python_initialized with call to ext_lang_initialized_p.
1346
1347 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
1348 Update to use enum ext_lang_frame_args. Update to call
1349 apply_ext_lang_frame_filter.
1350 * python/py-framefilter.c (extract_sym): Update to use enum
1351 ext_lang_bt_status.
1352 (extract_value, py_print_type, py_print_value): Ditto.
1353 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
1354 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
1355 (py_print_frame): Ditto.
1356 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1357 New arg extlang. Update to use enum ext_lang_bt_status.
1358
1359 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1360 finish_python_initialization. Replace with call to
1361 finish_ext_lang_initialization.
1362
1363 * typeprint.c (do_free_global_table): Update to call
1364 free_ext_lang_type_printers.
1365 (create_global_typedef_table): Update to call
1366 start_ext_lang_type_printers.
1367 (find_global_typedef): Update to call apply_ext_lang_type_printers.
1368 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1369 (type_print_options): Change type of global_printers from "void *"
1370 to "struct ext_lang_type_printers *".
1371
1372 * value.c (preserve_values): Update to call preserve_ext_lang_values.
1373 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1374 (gdbpy_preserve_values): Renamed from preserve_python_values.
1375 New arg extlang.
1376 (!HAVE_PYTHON, preserve_python_values): Delete.
1377
1378 * utils.c (quit_flag): Delete, moved to extension.c.
1379 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1380 extension.c.
1381
1382 * eval.c: Delete #include "python/python.h".
1383 * main.c: Delete #include "python/python.h".
1384
1385 * defs.h: Update comment.
1386
6af79985
JB
13872014-02-06 Joel Brobecker <brobecker@adacore.com>
1388
1389 GDB 7.7 released.
1390
12c5175d
MK
13912014-02-05 Mark Kettenis <kettenis@gnu.org>
1392
1393 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1394 defined.
1395
8dc5b319
YQ
13962014-02-05 Yao Qi <yao@codesourcery.com>
1397
1398 * remote.c (remote_pass_signals): Remove local 'buf' and use
1399 rs->buf.
1400 (remote_program_signals): Likewise.
1401
de7b2893
YQ
14022014-02-05 Yao Qi <yao@codesourcery.com>
1403
1404 * ctf.c: Include "inferior.h" and "gdbthread.h".
1405 (CTF_PID): A new macro.
1406 (ctf_open): Call inferior_appeared and add_thread_silent.
1407 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1408 (ctf_thread_alive): New function.
1409 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1410
66d032ac
YQ
14112014-02-05 Yao Qi <yao@codesourcery.com>
1412
1413 Revert this patch:
1414
1415 2013-05-24 Yao Qi <yao@codesourcery.com>
1416
1417 * tracepoint.c (TFILE_PID): Remove.
1418 (tfile_open): Don't add thread and inferior.
1419 (tfile_close): Don't set 'inferior_ptid'. Don't call
1420 exit_inferior_silent.
1421 (tfile_thread_alive): Remove.
1422 (init_tfile_ops): Don't set field 'to_thread_alive' of
1423 tfile_ops.
1424
f4ccffad
CE
14252014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
1426
1427 * remote.c (remote_start_remote): Call remote_check_symbols even
1428 if only symbol-file (not file) has been given.
1429
591a12a1
UW
14302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1431
1432 * gdbarch.sh (skip_entrypoint): New callback.
1433 * gdbarch.c, gdbarch.h: Regenerate.
1434 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1435 * infrun.c (fill_in_stop_func): Likewise.
1436 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1437 (ppc_elfv2_elf_make_msymbol_special): New function.
1438 (ppc_elfv2_skip_entrypoint): Likewise.
1439 (ppc_linux_init_abi): Install them for ELFv2.
1440
cc0e89c5
UW
14412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1442
1443 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1444 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1445 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1446 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1447 structures returned in GPRs.
1448
52f548e4
UW
14492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1450
1451 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1452 offset to the stack parameter list for the ELFv2 ABI.
1453
d4094b6a
UW
14542014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1455
1456 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1457 set_gdbarch_convert_from_func_ptr_addr and
1458 set_gdbarch_elf_make_msymbol_special for ELFv1.
1459 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1460 function descriptors on ELFv1.
1461 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1462 set up r12 at function entry.
1463
cd453cd0
UW
14642014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1465
1466 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1467 (struct gdbarch_tdep): New member elf_abi.
1468
1469 * rs6000-tdep.c: Include "elf/ppc64.h".
1470 (rs6000_gdbarch_init): Detect ELF ABI version.
1471
0ff3e01f
UW
14722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1473
1474 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1475 within a register pair holding a DFP 128-bit value on little-endian.
1476 (ppc64_sysv_abi_return_value_base): Likewise.
1477 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1478 (dfp_pseudo_register_write): Likewise.
1479
5b757e5d
UW
14802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1481
1482 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1483 offset on little-endian when passing _Decimal32.
1484 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1485
084ee545
UW
14862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1487
1488 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
1489 of the overlapped FP register within the VSX register on little-
1490 endian platforms.
1491 (efpr_pseudo_register_write): Likewise.
1492
d63167af
UW
14932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1494
1495 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
1496 offset on little-endian when passing small structures.
1497
e765b44c
UW
14982014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1499
1500 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
1501 (struct ppc64_sysv_argpos): New data structure.
1502 (ppc64_sysv_abi_push_float): Remove.
1503 (ppc64_sysv_abi_push_val): New function.
1504 (ppc64_sysv_abi_push_integer): Likewise.
1505 (ppc64_sysv_abi_push_freg): Likewise.
1506 (ppc64_sysv_abi_push_vreg): Likewise.
1507 (ppc64_sysv_abi_push_param): Likewise.
1508 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
1509 (ppc64_sysv_abi_return_value_base): New function.
1510 (ppc64_sysv_abi_return_value): Refactor to use it.
1511
36c24d95
UW
15122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
1513
1514 * NEWS: Document new target powerpc64le-*-linux*.
1515
26fd9228
MK
15162014-02-04 Mark Kettenis <kettenis@gnu.org>
1517
1518 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
1519 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
1520 core dumps.
1521 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
1522 register set used in ELF core dumps. Add floating-point register set.
1523
c5bb7362
KB
15242014-02-03 Kevin Buettner <kevinb@redhat.com>
1525
1526 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
1527 dwarf2_to_gdb[] table using symbolic constants. Adjust
1528 penultimate entry from number representing the PC register
1529 to symbolic constant representing the MDR register. Add
1530 constant for the PC register to the end of the table.
1531
af09351e
MK
15322014-02-03 Mark Kettenis <kettenis@gnu.org>
1533
1534 * bsd-kvm.c: Include <sys/param.h>
1535
8507e05d
MK
15362014-02-03 Mark Kettenis <kettenis@gnu.org>
1537
1538 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
1539
ae56bfb8
JB
15402014-01-31 Joel Brobecker <brobecker@adacore.com>
1541
1542 * ada-lang.h (clear_ada_sym_cache): Delete.
1543
718ee4dc
UW
15442014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
1545
1546 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
1547
401e27fd
JM
15482014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
1549
1550 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
1551 the sigreturn register save area only if the syscall is
1552 sigreturn.
1553
a7c88acd
JB
15542014-01-29 Joel Brobecker <brobecker@adacore.com>
1555
1556 * valops.c (value_slice): Minor reformatting.
1557
fa0079ea
UW
15582014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
1559
1560 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
1561
c6044dd1
JB
15622014-01-28 Joel Brobecker <brobecker@adacore.com>
1563
1564 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
1565 New static globals.
1566 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
1567 (ada_ignore_descriptive_types_p): New static global.
1568 (find_parallel_type_by_descriptive_type): Return immediately
1569 if ada_ignore_descriptive_types_p is set.
1570 (_initialize_ada_language): Register new commands "maintenance
1571 set ada", "maintenance show ada", "maintenance set ada
1572 ignore-descriptive-types" and "maintenance show ada
1573 ignore-descriptive-types".
1574 * NEWS: Add entry for new "maint ada set/show
1575 ignore-descriptive-types" commands.
1576
568e808b
MM
15772014-01-27 Markus Metzger <markus.t.metzger@intel.com>
1578
1579 * record-btrace.c (record_btrace_close): Call btrace_teardown
1580 for all threads.
1581
467d141b
JB
15822014-01-27 Joel Brobecker <brobecker@adacore.com>
1583
1584 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
1585 "ui-out.h".
1586
fb151210
JB
15872014-01-27 Joel Brobecker <brobecker@adacore.com>
1588
1589 * ada-typeprint (type_is_full_subrange_of_target_type):
1590 New function.
1591 (print_range): Add parameter bounds_prefered_p. If not set,
1592 try printing range types using the name of their base type.
1593 (print_range_type): Add parameter bounds_prefered_p.
1594 Use it in call to print_range.
1595 (print_array_type, ada_print_type): Update calls to print_range
1596 and print_range_type.
1597
aba02109
JB
15982014-01-27 Joel Brobecker <brobecker@adacore.com>
1599
1600 * ada-typeprint.c (print_array_type, print_choices, print_range)
1601 (print_range_bound, print_dynamic_range_bound, print_range_type):
1602 Remove declaration.
1603
e62e21fd
JB
16042014-01-27 Joel Brobecker <brobecker@adacore.com>
1605
1606 * ada-typeprint.c (print_range): Add missing empty line
1607 after local declaration.
1608
859cf5d1
JB
16092014-01-27 Joel Brobecker <brobecker@adacore.com>
1610
1611 * ada-valprint.c (print_optional_low_bound): Get index_type's
1612 target type for as long as it is a TYPE_CODE_RANGE.
1613
25790f6f
JB
16142014-01-27 Joel Brobecker <brobecker@adacore.com>
1615
1616 * procfs.c (procfs_make_note_section): Remove assertion and
1617 associated comment.
1618
6b6aa828
YQ
16192014-01-24 Yao Qi <yao@codesourcery.com>
1620
1621 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
1622 * corelow.c (get_core_siginfo): Likewise.
1623
5d6df423
YQ
16242014-01-24 Yao Qi <yao@codesourcery.com>
1625
1626 * remote.c (remote_write_bytes_aux): Change type of 'len' to
1627 ULONGEST. Don't check 'len' is negative.
1628 (remote_write_bytes): Change type of 'len' to ULONGEST.
1629
83b645b8
TT
16302014-01-23 Tom Tromey <tromey@redhat.com>
1631
1632 PR python/16485:
1633 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
1634 Handle exception from frame.block.
1635 (FrameVars.fetch_frame_locals): Likewise.
1636
0740f8d8
TT
16372014-01-23 Tom Tromey <tromey@redhat.com>
1638
1639 PR python/16487:
1640 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
1641 on a NULL pointer. Move "goto error" to correct place.
1642
21909fa1
TT
16432014-01-23 Tom Tromey <tromey@redhat.com>
1644
1645 PR python/16491:
1646 * python/py-framefilter.c (apply_frame_filter): Call
1647 ensure_python_env after computing gdbarch.
1648
17fde6d0
YQ
16492014-01-23 Yao Qi <yao@codesourcery.com>
1650
1651 * target.c (raw_memory_xfer_partial): Change argument type
1652 from void * to gdb_byte *.
1653 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
1654
87ce2a04
DE
16552014-01-22 Doug Evans <dje@google.com>
1656
1657 New gdbserver option --debug-format=timestamp.
1658 * NEWS: Mention it.
1659
237b092b
AA
16602014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
1661
1662 * syscalls/s390x-linux.xml: New file.
1663 * syscalls/s390-linux.xml: New file.
1664 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
1665 (XML_SYSCALL_FILENAME_S390X): Likewise.
1666 (op_svc): New enum value for SVC opcode.
1667 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
1668 (s390_linux_get_syscall_number): New function.
1669 (s390_gdbarch_init): Register '*get_syscall_number' and the
1670 syscall xml file name.
1671 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1672 "s390-linux.xml" and "s390x-linux.xml".
1673 * NEWS: Announce new feature.
1674
54bff650
BS
16752014-01-22 Baruch Siach <baruch@tkos.co.il>
1676
1677 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
1678
14e361d7
PA
16792014-01-22 Pedro Alves <palves@redhat.com>
1680
1681 * xtensa-config.c: Include defs.h.
1682
46bbb3ed
JB
16832014-01-22 Joel Brobecker <brobecker@adacore.com>
1684
1685 * common/common-utils.h: Add "ARI:" comment beside __func__
1686 reference.
1687
3a80edfc
JB
16882014-01-22 Joel Brobecker <brobecker@adacore.com>
1689
1690 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
1691 documentation a bit.
1692
4869db5e
RM
16932014-01-21 Roland McGrath <mcgrathr@google.com>
1694
1695 * configure.ac: Call AM_PROG_INSTALL_STRIP.
1696 * configure: Regenerate.
1697 * aclocal.m4: Regenerate.
1698 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
1699 New substituted variables.
1700 (install-strip): New target.
1701 (INSTALL_SCRIPT): New substituted variable.
1702 (FLAGS_TO_PASS): Add it.
1703 (install-only): Use $(INSTALL_SCRIPT) rather than
1704 $(INSTALL_PROGRAM) for gcore.
1705
9ea4267d
TT
17062014-01-20 Tom Tromey <tromey@redhat.com>
1707
1708 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
1709 together.
1710
1f2bdf09
TT
17112014-01-20 Tom Tromey <tromey@redhat.com>
1712
1713 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
1714 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
1715 (deprecated_cmd_warning, complete_on_cmdlist): Update.
1716 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
1717 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
1718 (struct cmd_list_element) <flags>: Remove.
1719 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
1720 doc_allocated>: New fields.
1721 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
1722 bitfields.
1723 * maint.c (maintenance_do_deprecate): Update.
1724 * top.c (execute_command): Update.
1725
e671835b
BS
17262014-01-20 Baruch Siach <baruch@tkos.co.il>
1727
1728 * xtensa-linux-nat.c: Include asm/ptrace.h.
1729
50367cd2
IB
17302014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1731
1732 * Makefile.in (SFILES): Add d-support.c.
1733 (COMMON_OBS): Add d-support.o.
1734 * d-lang.h (d_parse_symbol): Add comment, now defined in
1735 d-support.c.
1736 * d-lang.c (parse_call_convention)
1737 (parse_attributes, parse_function_types)
1738 (parse_function_args, parse_type, parse_identifier)
1739 (call_convention_p, d_parse_symbol): Move functions to ...
1740 * d-support.c: ... New file.
1741
ec9f644a
IB
17422014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1743
1744 * d-lang.h (d_parse_symbol): Add declaration.
1745 * d-lang.c (extract_identifiers)
1746 (extract_type_info): Remove functions.
1747 (parse_call_convention, parse_attributes)
1748 (parse_function_types, parse_function_args)
1749 (parse_type, parse_identifier, call_convention_p)
1750 (d_parse_symbol): New functions.
1751 (d_demangle): Use d_parse_symbol to demangle D symbols.
1752
94b1b47e
IB
17532014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1754
1755 * d-lang.h (struct builtin_d_type): New data type.
1756 (builtin_d_type): Add declaration.
1757 * d-lang.c (d_language_arch_info, build_d_types)
1758 (builtin_d_type): New functions.
1759 (enum d_primitive_types): New data type.
1760 (d_language_defn): Change c_language_arch_info to
1761 d_language_arch_info.
1762 (d_type_data): New static variable.
1763 (_initialize_d_language): Initialize d_type_data.
1764
63778547
IB
17652014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1766
1767 * d-lang.h (d_main_name): Add declaration.
1768 * d-lang.c (d_main_name): New function.
1769 * symtab.c (find_main_name): Add call to d_main_name.
1770
3271ba66
IB
17712014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1772
1773 * d-lang.c (d_language_defn): Change macro_expansion_c to
1774 macro_expansion_no.
1775
d36b3012
IB
17762014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1777
1778 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1779
c90a6fb7
SDJ
17802014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1781
1782 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
1783 gdb_exception" declaration.
1784 * remote.c (getpkt_or_notif_sane): Likewise.
1785
749234e5
DE
17862014-01-17 Doug Evans <dje@google.com>
1787
1788 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
1789 function, contents of dirnames_to_char_ptr_vec_append moved here.
1790 (delim_string_to_char_ptr_vec): New function.
1791 (dirnames_to_char_ptr_vec_append): Rewrite.
1792 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
1793
df049a58
DE
17942014-01-17 Doug Evans <dje@google.com>
1795
1796 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
1797 and moved here ...
1798 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
1799 #include "common-utils.h".
1800 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
1801 * common/vec.h (VEC_ASSERT_PASS): Update.
1802 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
1803 (MACH_CHECK_ERROR): Update.
1804
69f97648
SM
18052014-01-17 Simon Marchi <simon.marchi@ericsson.com>
1806
1807 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
1808 comments.
1809 * gdbarch.h: Regenerate.
1810
98b1cfdc
TT
18112014-01-16 Tom Tromey <tromey@redhat.com>
1812
1813 * value.c (struct value) <regnum>: Move earlier.
1814
77a19445
TT
18152014-01-16 Tom Tromey <tromey@redhat.com>
1816
1817 * remote.c (extended_remote_create_inferior): Rename from
1818 extended_remote_create_inferior_1. Add "ops" argument. Remove
1819 old implementation.
1820
62261490
PA
18212014-01-16 Pedro Alves <palves@redhat.com>
1822
1823 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
1824 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
1825 the backchain.
1826
4d65956b
DE
18272014-01-16 Doug Evans <dje@google.com>
1828
1829 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
1830
52834460
MM
18312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1832
1833 * btrace.h (btrace_thread_flag): New.
1834 (struct btrace_thread_info) <flags>: New.
1835 * record-btrace.c (record_btrace_resume_thread)
1836 (record_btrace_find_thread_to_move, btrace_step_no_history)
1837 (btrace_step_stopped, record_btrace_start_replaying)
1838 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
1839 (record_btrace_find_resume_thread): New.
1840 (record_btrace_resume, record_btrace_wait): Extend.
1841 (record_btrace_can_execute_reverse): New.
1842 (record_btrace_open): Fail in non-stop mode.
1843 (record_btrace_set_replay): Split into this, ...
1844 (record_btrace_stop_replaying): ... this, ...
1845 (record_btrace_clear_histories): ... and this.
1846 (init_record_btrace_ops): Init to_can_execute_reverse.
1847 * NEWS: Announce it.
1848
118e6252
MM
18492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1850
1851 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
1852 (forward_target_decr_pc_after_break)
1853 (target_decr_pc_after_break): New.
1854 * target.c (forward_target_decr_pc_after_break)
1855 (target_decr_pc_after_break): New.
1856 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
1857 instead of gdbarch_decr_pc_after_break.
1858 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1859 instead of gdbarch_decr_pc_after_break.
1860 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
1861 instead of gdbarch_decr_pc_after_break.
1862 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1863 instead of gdbarch_decr_pc_after_break.
1864 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
1865 instead of gdbarch_decr_pc_after_break.
1866 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
1867 instead of gdbarch_decr_pc_after_break.
1868
6e07b1d2
MM
18692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1870
1871 * btrace.c: Include regcache.h.
1872 (btrace_add_pc): New.
1873 (btrace_enable): Call btrace_add_pc.
1874 (btrace_is_empty): New.
1875 * btrace.h (btrace_is_empty): New.
1876 * record-btrace.c (require_btrace, record_btrace_info): Call
1877 btrace_is_empty.
1878
969c39fb
MM
18792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1880
1881 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
1882 Support delta reads.
1883 (linux_disable_btrace): Change return type.
1884 * common/linux-btrace.h (linux_read_btrace): Change parameters
1885 and return type to allow error reporting. Update users.
1886 (linux_disable_btrace): Change return type. Update users.
1887 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
1888 New.
1889 (btrace_error): New.
1890 (btrace_block) <begin>: Comment on BEGIN == 0.
1891 * btrace.c (btrace_compute_ftrace): Start from the end of
1892 the current trace.
1893 (btrace_stitch_trace, btrace_clear_history): New.
1894 (btrace_fetch): Read delta trace, return if replaying.
1895 (btrace_clear): Move clear history code to btrace_clear_history.
1896 (parse_xml_btrace): Throw an error if parsing failed.
1897 * target.h (struct target_ops) <to_read_btrace>: Change parameters
1898 and return type to allow error reporting.
1899 (target_read_btrace): Change parameters and return type to allow
1900 error reporting.
1901 * target.c (target_read_btrace): Update.
1902 * remote.c (remote_read_btrace): Support delta reads. Pass
1903 errors on.
1904 * NEWS: Announce it.
1905
0b722aec
MM
19062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1907
1908 * record.h (record_btrace_frame_unwind)
1909 (record_btrace_tailcall_frame_unwind): New declarations.
1910 * dwarf2-frame: Include record.h
1911 (dwarf2_frame_cfa): Throw an error for btrace frames.
1912 * record-btrace.c: Include hashtab.h.
1913 (btrace_get_bfun_name): New.
1914 (btrace_call_history): Call btrace_get_bfun_name.
1915 (struct btrace_frame_cache): New.
1916 (bfcache): New.
1917 (bfcache_hash, bfcache_eq, bfcache_new): New.
1918 (btrace_get_frame_function): New.
1919 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
1920 (record_btrace_frame_this_id): Compute own id.
1921 (record_btrace_frame_prev_register): Provide PC, throw_error
1922 for all other registers.
1923 (record_btrace_frame_sniffer): Detect btrace frames.
1924 (record_btrace_tailcall_frame_sniffer): New.
1925 (record_btrace_frame_dealloc_cache): New.
1926 (record_btrace_frame_unwind): Add new functions.
1927 (record_btrace_tailcall_frame_unwind): New.
1928 (_initialize_record_btrace): Allocate cache.
1929 * btrace.c (btrace_clear): Call reinit_frame_cache.
1930 * NEWS: Announce it.
1931
066ce621
MM
19322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1933
1934 * record-btrace.c (record_btrace_set_replay)
1935 (record_btrace_goto_begin, record_btrace_goto_end)
1936 (record_btrace_goto): New.
1937 (init_record_btrace_ops): Initialize them.
1938 * NEWS: Announce it.
1939
e2887aa3
MM
19402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1941
1942 * record-btrace.c (record_btrace_find_new_threads)
1943 (record_btrace_thread_alive): New.
1944 (init_record_btrace_ops): Initialize to_find_new_threads and
1945 to_thread_alive.
1946
b2f4cfde
MM
19472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1948
1949 * record-btrace.c (record_btrace_resume): New.
1950 (record_btrace_wait): New.
1951 (init_record_btrace_ops): Initialize to_wait and to_resume.
1952
633785ff
MM
19532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1954
1955 * record-btrace.c (record_btrace_xfer_partial)
1956 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
1957 (record_btrace_allow_memory_access): New.
1958 (init_record_btrace_ops): Initialize new methods.
1959 * target.c (raw_memory_xfer_partial): Bail out if target reports
1960 that this memory is not available.
1961
3db08215
MM
19622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1963
1964 * target.h (target_ops) <to_insert_breakpoint>
1965 <to_remove_breakpoint>: Add target_ops parameter.
1966 (forward_target_insert_breakpoint): New.
1967 (forward_target_remove_breakpoint): New.
1968 (memory_remove_breakpoint, memory_insert_breakpoint):
1969 Add target_ops parameter.
1970 * target.c (target_insert_breakpoint): Split into this and ...
1971 (forward_target_insert_breakpoint): ... this.
1972 (target_remove_breakpoint): Split into this and ...
1973 (forward_target_remove_breakpoint): ... this.
1974 (debug_to_insert_breakpoint): Add target_ops parameter.
1975 Call forward_target_insert_breakpoint.
1976 (debug_to_remove_breakpoint): Add target_ops parameter.
1977 Call forward_target_remove_breakpoint.
1978 (update_current_target): Do not inherit or default to_insert_breakpoint
1979 and to_remove_breakpoint.
1980 * corelow.c (ignore): Add target_ops parameter.
1981 * exec.c (ignore): Add target_ops parameter.
1982 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
1983 Add target_ops parameter.
1984 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1985 Add target_ops parameter.
1986 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
1987 Add target_ops parameter.
1988 * record-full.c (record_full_beneath_to_insert_breakpoint)
1989 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
1990 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
1991 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
1992 (record_full_core_remove_breakpoint): Add target_ops parameter.
1993 Update users.
1994 (record_full_beneath_to_insert_breakpoint_ops)
1995 (record_full_beneath_to_remove_breakpoint_ops)
1996 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
1997 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
1998 tmp_to_remove_breakpoint_ops,
1999 record_full_beneath_to_insert_breakpoint_ops, and
2000 record_full_beneath_to_remove_breakpoint_ops.
2001 * remote-m32r-sdi.c (m32r_insert_breakpoint)
2002 (m32r_remove_breakpoint): Add target_ops parameter.
2003 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2004 Add target_ops parameter.
2005 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
2006 Add target_ops parameter.
2007
cecac1ab
MM
20082014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2009 Markus Metzger <markus.t.metzger@intel.com>
2010
2011 * record-btrace.c: Include frame-unwind.h.
2012 (record_btrace_frame_unwind_stop_reason)
2013 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
2014 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
2015 New.
2016 (init_record_btrace_ops): Install it.
2017
824344ca
MM
20182014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2019
2020 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
2021 get_prev_frame_1.
2022
32261e52
MM
20232014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2024
2025 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2026 earlier.
2027
ea001bdc
MM
20282014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2029
2030 * frame-unwind.c: Include target.h.
2031 (frame_unwind_try_unwinder): New function with code from ...
2032 (frame_unwind_find_by_frame): ... here. New variable
2033 unwinder_from_target, call also target_get_unwinder)
2034 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2035 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2036 * target.h (struct target_ops): New fields to_get_unwinder and
2037 to_get_tailcall_unwinder.
2038 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2039
1f3ef581
MM
20402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2041
2042 * record-btrace.c (record_btrace_fetch_registers)
2043 (record_btrace_store_registers)
2044 (record_btrace_to_prepare_to_store): New.
2045 (init_record_btrace_ops): Add the above.
2046
f32dbf8c
MM
20472014-01-16 Tom Tromey <tromey@redhat.com>
2048
2049 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2050 * target.h (struct target_ops) <to_prepare_to_store>: Add
2051 argument.
2052 (target_prepare_to_store): Add argument.
2053 * target.c (debug_to_prepare_to_store): Add argument.
2054 (update_current_target): Update.
2055 * remote.c (remote_prepare_to_store): Add 'self' argument.
2056 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2057 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2058 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2059 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2060 argument.
2061 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2062 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2063 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2064 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2065 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2066
07bbe694
MM
20672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2068
2069 * btrace.h (replay) <replay>: New.
2070 (btrace_is_replaying): New.
2071 * btrace.c (btrace_clear): Free replay iterator.
2072 (btrace_is_replaying): New.
2073 * record-btrace.c (record_btrace_is_replaying): New.
2074 (record_btrace_info): Print insn number if replaying.
2075 (record_btrace_insn_history): Start at replay position.
2076 (record_btrace_call_history): Start at replay position.
2077 (init_record_btrace_ops): Init to_record_is_replaying.
2078
0688d04e
MM
20792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2080
2081 * record-btrace.c (record_btrace_insn_history_range): Include
2082 end.
2083 (record_btrace_insn_history_from): Adjust range.
2084 (record_btrace_call_history_range): Include
2085 end.
2086 (record_btrace_call_history_from): Adjust range.
2087 * NEWS: Announce changes.
2088
8710b709
MM
20892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2090
2091 * record.h (enum record_print_flag)
2092 <record_print_indent_calls>: New.
2093 * record.c (get_call_history_modifiers): Recognize /c modifier.
2094 (_initialize_record): Document /c modifier.
2095 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2096 Reorder fields. Optionally indent the function name. Update
2097 all users.
2098 * NEWS: Announce changes.
2099
d0fa7535
MM
21002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2101
2102 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2103
5de9129b
MM
21042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2105
2106 * btrace.c (ftrace_new_function): Start counting at one.
2107 * record-btrace.c (record_btrace_info): Adjust number of calls
2108 and insns.
2109 * NEWS: Announce it.
2110
7acbe133
MM
21112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2112
2113 * record-btrace.c (btrace_call_history_insn_range): Print
2114 insn range as [begin, end].
2115
23a7fe75
MM
21162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2117
2118 * btrace.h (struct btrace_func_link): New.
2119 (enum btrace_function_flag): New.
2120 (struct btrace_inst): Rename to ...
2121 (struct btrace_insn): ...this. Update all users.
2122 (struct btrace_func) <ibegin, iend>: Remove.
2123 (struct btrace_func_link): New.
2124 (struct btrace_func): Rename to ...
2125 (struct btrace_function): ...this. Update all users.
2126 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2127 (number, level, flags>: New.
2128 (struct btrace_insn_iterator): Rename to ...
2129 (struct btrace_insn_history): ...this.
2130 Update all users.
2131 (struct btrace_insn_iterator, btrace_call_iterator): New.
2132 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2133 (struct btrace_target_info) <begin, end, level>
2134 <insn_history, call_history>: New.
2135 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2136 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2137 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2138 (btrace_call_number, btrace_call_begin, btrace_call_end)
2139 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2140 (btrace_find_function_by_number, btrace_set_insn_history)
2141 (btrace_set_call_history): New.
2142 * btrace.c (btrace_init_insn_iterator)
2143 (btrace_init_func_iterator, compute_itrace): Remove.
2144 (ftrace_print_function_name, ftrace_print_filename)
2145 (ftrace_skip_file): Change
2146 parameter to const.
2147 (ftrace_init_func): Remove.
2148 (ftrace_debug): Use new btrace_function fields.
2149 (ftrace_function_switched): Also consider gaining and
2150 losing symbol information).
2151 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2152 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2153 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2154 New.
2155 (ftrace_new_function): Move. Remove debug print.
2156 (ftrace_update_lines, ftrace_update_insns): New.
2157 (ftrace_update_function): Check for call, ret, and jump.
2158 (compute_ftrace): Renamed to ...
2159 (btrace_compute_ftrace): ...this. Rewritten to compute call
2160 stack.
2161 (btrace_fetch, btrace_clear): Updated.
2162 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2163 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2164 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2165 (btrace_call_number, btrace_call_begin, btrace_call_end)
2166 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2167 (btrace_find_function_by_number, btrace_set_insn_history)
2168 (btrace_set_call_history): New.
2169 * record-btrace.c (require_btrace): Use new btrace thread
2170 info fields.
2171 (record_btrace_info, btrace_insn_history)
2172 (record_btrace_insn_history, record_btrace_insn_history_range):
2173 Use new btrace thread info fields and new iterator.
2174 (btrace_func_history_src_line): Rename to ...
2175 (btrace_call_history_src_line): ...this. Use new btrace
2176 thread info fields.
2177 (btrace_func_history): Rename to ...
2178 (btrace_call_history): ...this. Use new btrace thread info
2179 fields and new iterator.
2180 (record_btrace_call_history, record_btrace_call_history_range):
2181 Use new btrace thread info fields and new iterator.
2182
8372a7cb
MM
21832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2184
2185 * frame.h (frame_id_build_unavailable_stack_special): New.
2186 * frame.c (frame_id_build_unavailable_stack_special): New.
2187
c2170eef
MM
21882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2189
2190 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2191 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2192 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2193 to gdbarch.
2194 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2195 (i386_insn_is_jump, i386_jmp_p): New.
2196 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2197 insn_is_jump to gdbarch.
2198 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2199 * gdbarch.h: Regenerated.
2200 * gdbarch.c: Regenerated.
2201 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2202 (default_insn_is_jump): New.
2203 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2204 (default_insn_is_jump): New.
2205
864089d2
MM
22062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2207
2208 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2209 Change to ...
2210 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2211 (btrace_read_type) <btrace_read_new>: Change to ...
2212 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2213
ed9edfb5
MM
22142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2215
2216 * common/linux-btrace.c (linux_read_btrace): Free trace from
2217 previous iteration.
2218
fbcbc3fd
DE
22192014-01-15 Doug Evans <dje@google.com>
2220
2221 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2222 uint32_t.
2223
3d548a53
TT
22242014-01-15 Tom Tromey <tromey@redhat.com>
2225
2226 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2227 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2228 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2229 (set_objfile_main_name): New function.
2230 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2231 language_of_main>: New fields.
2232 (set_objfile_main_name): Declare.
2233 * symtab.c (find_main_name): Loop over objfiles to find the main
2234 name and language.
2235 (set_main_name): Now static.
2236 (get_main_info): Add comment.
2237 * symtab.h (set_main_name): Don't declare.
2238
32ac0d11
TT
22392014-01-15 Tom Tromey <tromey@redhat.com>
2240
2241 * symtab.c (main_progspace_key): New global.
2242 (struct main_info): New.
2243 (name_of_main, language_of_main): Remove.
2244 (get_main_info, main_info_cleanup): New function.
2245 (set_main_name, main_name, main_language): Use get_main_info.
2246 (_initialize_symtab): Initialize main_progspace_key.
2247
9e6c82ad
TT
22482014-01-15 Tom Tromey <tromey@redhat.com>
2249
2250 * dbxread.c (process_one_symbol): Update.
2251 * dwarf2read.c (read_partial_die): Update.
2252 * symfile.c (set_initial_language): Call main_language.
2253 * symtab.c (language_of_main): Now static.
2254 (set_main_name): Add 'lang' parameter.
2255 (find_main_name): Update.
2256 (main_language): New function.
2257 (symtab_observer_executable_changed): Update.
2258 * symtab.h (set_main_name): Update.
2259 (language_of_main): Remove.
2260 (main_language): Declare.
2261
6ef55de7
TT
22622014-01-15 Tom Tromey <tromey@redhat.com>
2263
2264 * symfile.c (init_entry_point_info): Use new "initialized" field.
2265 Update.
2266 * objfiles.h (struct entry_point) <initialized>: New field.
2267 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2268 (struct objfile) <ei>: ...here. Remove.
2269 * objfiles.c (entry_point_address_query): Update.
2270
53eddfa6
TT
22712014-01-15 Tom Tromey <tromey@redhat.com>
2272
2273 * objfiles.c (entry_point_address_query): Relocate entry point
2274 address.
2275 (objfile_relocate1): Do not relocate entry point address.
2276 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2277 <the_bfd_section_index>: New field.
2278 * symfile.c (init_entry_point_info): Find the entry point's
2279 section.
2280
d56e56aa
TT
22812014-01-15 Tom Tromey <tromey@redhat.com>
2282
2283 * solib-frv.c (enable_break): Use entry_point_address_query.
2284
33a97bbe
OJ
22852014-01-15 Omair Javaid <omair.javaid@linaro.org>
2286
2287 * NEWS: Add note on improved process record-replay on
2288 arm*-linux* targets.
2289
c6ec2b30
OJ
22902014-01-15 Omair Javaid <omair.javaid@linaro.org>
2291
2292 * arm-tdep.c (enum arm_record_result): New enum.
2293 (arm_record_unsupported_insn): New function.
2294 (arm_record_coproc_data_proc): Removed.
2295 (thumb2_record_ld_st_multiple): New function.
2296 (thumb2_record_ld_st_dual_ex_tbb): New function.
2297 (thumb2_record_data_proc_sreg_mimm): New function.
2298 (thumb2_record_ps_dest_generic): New function.
2299 (thumb2_record_branch_misc_cntrl): New function.
2300 (thumb2_record_str_single_data): New function.
2301 (thumb2_record_ld_mem_hints): New function.
2302 (thumb2_record_ld_word): New function.
2303 (thumb2_record_lmul_lmla_div): New function.
2304 (thumb2_record_decode_insn_handler): New function.
2305 (decode_insn): Add thumb32 instruction handlers.
2306
97dfe206
OJ
23072014-01-15 Omair Javaid <omair.javaid@linaro.org>
2308
2309 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2310 (struct arm_linux_record_tdep): Declare.
2311 (arm_canonicalize_syscall): New function.
2312 (arm_all_but_pc_registers_record): New function.
2313 (arm_linux_syscall_record): New function.
2314 (arm_linux_init_abi): Add syscall recording constructs.
2315 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2316 decoding. (arm_record_coproc_data_proc): Update arm syscall
2317 decoding.
2318 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2319 <arm_syscall_record>: New field.
2320 * configure.tgt (arm*-*-linux*): Add linux-record.o to
2321 gdb_target_obs.
2322
9904a494
OJ
23232014-01-15 Omair Javaid <omair.javaid@linaro.org>
2324
2325 * arm-tdep.c (thumb_record_misc): Update to use sp as base
2326 register for push instruction recording.
2327
f969241e
OJ
23282014-01-15 Omair Javaid <omair.javaid@linaro.org>
2329
2330 * arm-tdep.c (thumb_record_misc): Update to correct logical
2331 error while recording ldm, ldmia and pop instructions.
2332
bfbbec00
OJ
23332014-01-15 Omair Javaid <omair.javaid@linaro.org>
2334
2335 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2336
e40adcc9
PA
23372014-01-15 Pedro Alves <palves@redhat.com>
2338
2339 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2340 (go32_resume, go32_fetch_registers, store_register)
2341 (go32_store_registers, go32_prepare_to_store)
2342 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
2343 (go32_create_inferior, go32_can_run, go32_terminal_init)
2344 (go32_terminal_inferior, go32_terminal_ours): Delete forward
2345 declarations.
2346
b0a16e66
TT
23472014-01-15 Tom Tromey <tromey@redhat.com>
2348
2349 * target.h (async_callback_ftype): New typedef.
2350 (struct target_ops) <to_async>: Use it.
2351
bf7105a4
JB
23522014-01-15 Joel Brobecker <brobecker@adacore.com>
2353
2354 * python/py-value.c (get_field_type): Remove unnecessary curly
2355 braces for single-statement if block.
2356
a8f35c2e
JB
23572014-01-15 Joel Brobecker <brobecker@adacore.com>
2358
2359 * python/py-type.c (convert_field): Add missing empty line
2360 after declarations.
2361
bb4142cf
DE
23622014-01-14 Doug Evans <dje@google.com>
2363
2364 * symfile.h (expand_symtabs_matching): Renamed from
2365 expand_partial_symbol_names. Update prototype.
2366 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2367 * symfile.c (expand_symtabs_matching): Renamed from
2368 expand_partial_symbol_names. New args file_matcher, kind.
2369 Rename arg fun to symbol_matcher.
2370 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2371 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2372 ada_expand_partial_symbol_name.
2373 (ada_make_symbol_completion_list): Update to call
2374 expand_symtabs_matching.
2375 (ada_add_global_exceptions): Call expand_symtabs_matching.
2376 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2377 call map_symbol_filenames.
2378 * symtab.c (sources_info): Update to call map_symbol_filenames.
2379 (search_symbols): Call expand_symtabs_matching.
2380 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2381 (default_make_symbol_completion_list_break_on): Update to call
2382 expand_symtabs_matching.
2383 (make_source_files_completion_list): Update to call
2384 map_symbol_filenames.
2385
206f2a57
DE
23862014-01-14 Doug Evans <dje@google.com>
2387
2388 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2389 (expand_symtabs_symbol_matcher_ftype): New typedef.
2390 (quick_symbol_functions.expand_symtabs_matching): Update to use.
2391 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2392 * symfile.c (expand_partial_symbol_names): Update to use
2393 expand_symtabs_symbol_matcher_ftype.
2394 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2395 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2396 Arg name_matcher renamed to symbol_matcher.
2397 * psymtab.c (recursively_search_psymtabs): Update to use
2398 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
2399 sym_matcher.
2400 (expand_symtabs_matching_via_partial): Update to use
2401 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2402 Arg name_matcher renamed to symbol_matcher.
2403
540c2971
DE
24042014-01-14 Doug Evans <dje@google.com>
2405
2406 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2407 (map_partial_symbol_filenames): Ditto.
2408 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2409 (map_partial_symbol_filenames): Ditto.
2410 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2411 (map_partial_symbol_filenames): Ditto.
2412 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2413 (map_partial_symbol_filenames): Ditto.
2414 * symtab.c: Delete #include "psymtab.h".
2415
8213266a
PA
24162014-01-14 Pedro Alves <palves@redhat.com>
2417 Tom Tromey <tromey@redhat.com>
2418
2419 * infrun.c (use_displaced_stepping): Use find_record_target
2420 instead of RECORD_IS_USED.
2421 (adjust_pc_after_break): Use record_full_is_used instead of
2422 RECORD_IS_USED.
2423 * record-btrace.c (record_btrace_open): Call record_preopen
2424 instead of checking RECORD_IS_USED.
2425 * record-full.c (record_full_shortname)
2426 (record_full_core_shortname): New globals.
2427 (record_full_is_used): New function.
2428 (find_full_open): Call record_preopen instead of checking
2429 RECORD_IS_USED.
2430 (init_record_full_ops): Set the target's shortname to
2431 record_full_shortname.
2432 (init_record_full_core_ops): Set the target's shortname to
2433 record_full_core_shortname.
2434 * record-full.h (record_full_is_used): Declare.
2435 * record.c (find_record_target): Make extern.
2436 (record_preopen): New function.
2437 * record.h (RECORD_IS_USED): Delete macro.
2438 (find_record_target, record_preopen): Declare functions.
2439
7ec1862d
YQ
24402014-01-14 Yao Qi <yao@codesourcery.com>
2441
2442 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2443 'len''s type to ULONGEST.
2444 (core_xfer_shared_libraries_aix): Likewise.
2445 * gdbarch.c, gdbarch.h: Regenerated.
2446 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2447 Change type of 'len' to ULONGEST.
2448 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2449 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2450
dea80a27
YQ
24512014-01-14 Yao Qi <yao@codesourcery.com>
2452
2453 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2454 type of 'len' to ULONGEST.
2455 (linux_xfer_osdata_processgroups): Likewise.
2456 (linux_xfer_osdata_threads): Likewise.
2457 (linux_xfer_osdata_fds): Likewise.
2458 (linux_xfer_osdata_isockets): Likewise.
2459 (linux_xfer_osdata_shm): Likewise.
2460 (linux_xfer_osdata_sem): Likewise.
2461 (linux_xfer_osdata_msg): Likewise.
2462 (linux_common_xfer_osdata): Likewise.
2463 (struct osdata_type) <getter>: Likewise.
2464 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2465 the declaration.
2466
b55e14c7
YQ
24672014-01-14 Yao Qi <yao@codesourcery.com>
2468
2469 * target.h (target_xfer_partial_ftype): Update.
2470 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2471 ULONGEST.
2472 * aix-thread.c (aix_thread_xfer_partial): Change type of
2473 argument 'len' to ULONGEST.
2474 * auxv.c (procfs_xfer_auxv): Likewise.
2475 (ld_so_xfer_auxv): Likewise.
2476 (memory_xfer_auxv): Likewise.
2477 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2478 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2479 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2480 * corelow.c (core_xfer_partial): Likewise.
2481 * ctf.c (ctf_xfer_partial): Likewise.
2482 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2483 '%u'.
2484 (darwin_read_dyld_info): Likewise.
2485 (darwin_xfer_partial): Likewise.
2486 * exec.c (section_table_xfer_memory_partial): Likewise.
2487 (exec_xfer_partial): Likewise.
2488 * exec.h (section_table_xfer_memory_partial): Update
2489 declaration.
2490 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
2491 instead of plongest.
2492 (gnu_xfer_partial): Likewise.
2493 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
2494 (ia64_hpux_xfer_solib_got): Likewise.
2495 (ia64_hpux_xfer_partial): Likewise.
2496 * ia64-linux-nat.c (ia64_linux_xfer_partial):
2497 * inf-ptrace.c (inf_ptrace_xfer_partial):
2498 * inf-ttrace.c (inf_ttrace_xfer_partial):
2499 * linux-nat.c (linux_xfer_siginfo): Likewise.
2500 (linux_nat_xfer_partial): Likewise.
2501 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
2502 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
2503 * monitor.c (monitor_xfer_memory): Likewise.
2504 (monitor_xfer_partial): Likewise.
2505 * procfs.c (procfs_xfer_partial): Likewise.
2506 * record-full.c (record_full_xfer_partial): Likewise.
2507 (record_full_core_xfer_partial): Likewise.
2508 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
2509 instead of plongest.
2510 (gdbsim_xfer_partial): Likewise.
2511 * remote.c (remote_xfer_partial): Likewise.
2512 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2513 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2514 declaration.
2515 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2516 (rs6000_xfer_shared_libraries): Likewise.
2517 * sol-thread.c (sol_thread_xfer_partial): Likewise.
2518 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2519 (sparc_xfer_partial): Likewise.
2520 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2521 (spu_xfer_partial): Likewise.
2522 * spu-multiarch.c (spu_xfer_partial): Likewise.
2523 * target.c (target_read_live_memory): Likewise.
2524 (memory_xfer_live_readonly_partial): Likewise.
2525 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
2526 (target_xfer_partial, default_xfer_partial): Likewise.
2527 (current_xfer_partial): Likewise.
2528 * tracepoint.c (tfile_xfer_partial): Likewise.
2529 * windows-nat.c (windows_xfer_memory): Likewise. Call
2530 pulongest instead of plongest.
2531 (windows_xfer_partial): Likewise.
2532 (windows_xfer_shared_libraries): Likewise.
2533
05804640
YQ
25342014-01-14 Yao Qi <yao@codesourcery.com>
2535
2536 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
2537 target_xfer_partial_ftype.
2538
b5b08fb4
SC
25392014-01-13 Siva Chandra Reddy <sivachandra@google.com>
2540
2541 PR python/15464
2542 PR python/16113
2543 * valops.c (value_struct_elt_bitpos): New function
2544 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
2545 object to 'None' if the field name is an empty string ("").
2546 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
2547 attribute to look for a field when 'name' is 'None'.
2548 (get_field_type): New function
2549
13aaf454
DE
25502014-01-13 Doug Evans <dje@google.com>
2551
2552 PR symtab/16426
2553 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
2554 (try_open_dwop_file): Ditto.
2555 * gdb_bfd.c: #include "vec.h".
2556 (bfdp): New typedef.
2557 (struct gdb_bfd_data): New member included_bfds.
2558 (gdb_bfd_unref): Unref all included bfds.
2559 (gdb_bfd_record_inclusion): New function.
2560 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
2561
c2cec97c
TT
25622014-01-13 Tom Tromey <tromey@redhat.com>
2563
2564 * gdbcore.h (deprecated_core_resize_section_table): Remove.
2565
78e5999d
TT
25662014-01-13 Tom Tromey <tromey@redhat.com>
2567
2568 * defs.h (use_windows): Remove.
2569 * gdb.c (main): Update.
2570 * main.c (captured_main, gdb_main): Update.
2571 * main.h (struct captured_main_args) <use_windows>: Remove.
2572 * top.c (use_windows): Remove.
2573
f2052bbe
TT
25742014-01-13 Tom Tromey <tromey@redhat.com>
2575
2576 * defs.h (deprecated_flush_hook): Remove.
2577
fde4f8ed
JK
25782014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2579
2580 PR threads/16216
2581 * linux-thread-db.c (try_thread_db_load): Add parameter
2582 check_auto_load_safe. Move here the file_is_auto_load_safe call.
2583 (try_thread_db_load_from_pdir_1): Move it there from here.
2584 (try_thread_db_load_from_sdir): Update caller.
2585 (try_thread_db_load_from_dir): Move it there from here.
2586
bdf61915
PP
25872014-01-13 Patrick Palka <patrick@parcs.ath.cx>
2588
2589 * regformats/regdat.sh: Always rewrite the register file.
2590
f71e1a8d
PA
25912014-01-13 Pedro Alves <palves@redhat.com>
2592
2593 * Makefile.in (CHECK_HEADERS): New variable.
2594 (check-headers:): New rule.
2595
42c85435
TT
25962014-01-13 Tom Tromey <tromey@redhat.com>
2597
2598 * cli/cli-setshow.c (do_set_command): Update.
2599 * defs.h (deprecated_set_hook): Remove.
2600 * top.c (deprecated_set_hook): Remove.
2601
f8de5129
PA
26022014-01-13 Pedro Alves <palves@redhat.com>
2603
2604 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
2605 the tracepoint if the PC is a pseudo-register.
2606
fc270c35
TT
26072014-01-13 Tom Tromey <tromey@redhat.com>
2608
2609 * defs.h (XCALLOC): Remove.
2610 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
2611 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
2612 * dwarf2loc.c (allocate_piece_closure): Likewise.
2613 * elfread.c (elf_symfile_segments): Likewise.
2614 (elf_symfile_segments): Likewise.
2615 * gdbtypes.c (copy_type_recursive): Likewise.
2616 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
2617 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
2618 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
2619 XCALLOC.
2620 * mt-tdep.c (mt_gdbarch_init): Likewise.
2621 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
2622 XCALLOC.
2623 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
2624 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
2625 * registry.c (registry_alloc_data): Likewise.
2626 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
2627 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2628 * serial.c (serial_fdopen_ops): Likewise.
2629 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
2630 XCALLOC.
2631 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
2632 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
2633 not XCALLOC.
2634
70ba0933
TT
26352014-01-13 Tom Tromey <tromey@redhat.com>
2636
2637 * defs.h (XMALLOC): Remove.
2638 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
2639 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2640 * cli-out.c (struct ui_out *): Likewise.
2641 * cli/cli-dump.c (add_dump_command): Likewise.
2642 (add_dump_command): Likewise.
2643 * complaints.c (get_complaints): Likewise.
2644 (find_complaint): Likewise.
2645 * dwarf2-frame.c (execute_cfa_program): Likewise.
2646 * dwarf2read.c (abbrev_table_read_table): Likewise.
2647 * gdbarch.sh: Likewise.
2648 * gdbarch.c: Rebuild.
2649 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
2650 * interps.c (interp_new): Likewise.
2651 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
2652 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2653 * mi/mi-console.c (mi_console_file_new): Likewise.
2654 * mi/mi-interp.c (mi_interpreter_init): Likewise.
2655 * mi/mi-out.c (mi_out_new): Likewise.
2656 * mi/mi-parse.c (mi_parse): Likewise.
2657 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
2658 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
2659 * observer.c (xalloc_observer_list_node): Likewise.
2660 * regcache.c (regcache_xmalloc_1): Likewise.
2661 * reggroups.c (reggroup_new): Likewise.
2662 (_initialize_reggroup): Likewise.
2663 * registry.c (register_data_with_cleanup): Likewise.
2664 * remote.c (remote_notif_stop_alloc_reply): Likewise.
2665 * ser-base.c (serial_ttystate): Likewise.
2666 * ser-mingw.c (make_pipe_state): Likewise.
2667 * ser-pipe.c (pipe_open): Likewise.
2668 * serial.c (serial_open): Likewise.
2669 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2670 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2671 (tui_alloc_win_info): Likewise.
2672 (tui_add_content_elements): Likewise.
2673 * tui/tui-file.c (tui_file_new): Likewise.
2674 * tui/tui-out.c (tui_out_new): Likewise.
2675 * ui-file.c (mem_file_new): Likewise.
2676 * ui-out.c (push_level): Likewise.
2677 (make_cleanup_ui_out_end): Likewise.
2678 (append_header_to_list): Likewise.
2679 (ui_out_new): Likewise.
2680 * user-regs.c (user_reg_add_builtin): Likewise.
2681
41bf6aca
TT
26822014-01-13 Tom Tromey <tromey@redhat.com>
2683
2684 * defs.h (XZALLOC): Remove.
2685 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
2686 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2687 (get_ada_tasks_inferior_data): Likewise.
2688 * auto-load.c (get_auto_load_pspace_data): Likewise.
2689 * auxv.c (get_auxv_inferior_data): Likewise.
2690 * bfd-target.c (target_bfd_reopen): Likewise.
2691 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
2692 (deprecated_insert_raw_breakpoint): Likewise.
2693 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
2694 * corelow.c (core_open): Likewise.
2695 * darwin-nat.c (darwin_check_new_threads): Likewise.
2696 (darwin_attach_pid): Likewise.
2697 * dummy-frame.c (dummy_frame_push): Likewise.
2698 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2699 * dwarf2loc.c (allocate_piece_closure): Likewise.
2700 * elfread.c (elf_symfile_segments): Likewise.
2701 * eval.c (ptrmath_type_p): Likewise.
2702 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
2703 * gdbtypes.c (alloc_type_arch): Likewise.
2704 (alloc_type_instance): Likewise.
2705 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2706 * inf-child.c (inf_child_can_use_agent): Likewise.
2707 * inflow.c (get_inflow_inferior_data): Likewise.
2708 * infrun.c (save_infcall_suspend_state): Likewise.
2709 * jit.c (jit_reader_load): Likewise.
2710 (get_jit_objfile_data): Likewise.
2711 (get_jit_program_space_data): Likewise.
2712 (jit_object_open_impl): Likewise.
2713 (jit_symtab_open_impl): Likewise.
2714 (jit_block_open_impl): Likewise.
2715 (jit_frame_sniffer): Likewise.
2716 * linux-fork.c (add_fork): Likewise.
2717 * maint.c (make_command_stats_cleanup): Likewise.
2718 * objfiles.c (get_objfile_pspace_data): Likewise.
2719 * opencl-lang.c (struct lval_closure): Likewise.
2720 * osdata.c (osdata_start_osdata): Likewise.
2721 * progspace.c (new_address_space): Likewise.
2722 (add_program_space): Likewise.
2723 * remote-sim.c (get_sim_inferior_data): Likewise.
2724 * sh-tdep.c (sh_gdbarch_init): Likewise.
2725 * skip.c (Ignore): Likewise.
2726 (skip_delete_command): Likewise.
2727 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2728 (library_list_start_library): Likewise.
2729 (solib_aix_current_sos): Likewise.
2730 * solib-darwin.c (get_darwin_info): Likewise.
2731 (darwin_current_sos): Likewise.
2732 * solib-dsbt.c (get_dsbt_info): Likewise.
2733 * solib-ia64-hpux.c (new_so_list): Likewise.
2734 (ia64_hpux_get_solib_linkage_addr): Likewise.
2735 * solib-spu.c (append_ocl_sos): Likewise.
2736 (spu_current_sos): Likewise.
2737 * solib-svr4.c (get_svr4_info): Likewise.
2738 (svr4_keep_data_in_core): Likewise.
2739 (library_list_start_library): Likewise.
2740 (svr4_default_sos): Likewise.
2741 (svr4_read_so_list): Likewise.
2742 * solib-target.c (library_list_start_library): Likewise.
2743 (solib_target_current_sos): Likewise.
2744 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2745 * symfile-debug.c (install_symfile_debug_logging): Likewise.
2746 * symfile.c (default_symfile_segments): Likewise.
2747 * target-descriptions.c (tdesc_data_init): Likewise.
2748 (tdesc_create_reg): Likewise.
2749 (struct tdesc_type *): Likewise.
2750 (tdesc_create_vector): Likewise.
2751 (tdesc_set_struct_size): Likewise.
2752 (struct tdesc_type *): Likewise.
2753 (tdesc_free_feature): Likewise.
2754 (tdesc_create_feature): Likewise.
2755 * windows-nat.c (windows_add_thread): Likewise.
2756 (windows_make_so): Likewise.
2757 * xml-support.c (gdb_xml_body_text): Likewise.
2758 (gdb_xml_create_parser_and_cleanup): Likewise.
2759 (xml_process_xincludes): Likewise.
2760 * xml-syscall.c (allocate_syscalls_info): Likewise.
2761 (syscall_create_syscall_desc): Likewise.
2762
5acfdbae
SDJ
27632014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
2764
2765 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
2766 function, with code from i386_stap_parse_special_token.
2767 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2768 (i386_stap_parse_special_token): Move code to the two functions
2769 above; simplify it.
2770
0000e5cc
PA
27712014-01-09 Pedro Alves <palves@redhat.com>
2772 Hui Zhu <hui@codesourcery.com>
2773
2774 PR gdb/16101
2775 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
2776 bp_err_string. Don't mark the location shlib_disabled if the
2777 error thrown wasn't a generic or memory error. Catch errors
2778 thrown while inserting breakpoints in overlayed code. Output
2779 error message of software breakpoints.
2780 * remote.c (remote_insert_breakpoint): If this breakpoint has
2781 target-side commands but this stub doesn't support Z0 packets,
2782 throw NOT_SUPPORTED_ERROR error.
2783 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
2784 * target.h (target_insert_breakpoint): Extend comment.
2785 (target_insert_hw_breakpoint): Add comment.
2786
b7ea362b
PA
27872014-01-08 Pedro Alves <palves@redhat.com>
2788
2789 * remote.c (remote_add_thread): Add threads silently if starting
2790 up.
2791 (remote_notice_new_inferior): If in all-stop, and starting up,
2792 don't call notice_new_inferior.
2793 (get_current_thread): New function, factored out from ...
2794 (add_current_inferior_and_thread): ... this. Adjust.
2795 (remote_start_remote) <all-stop>: Fetch the thread list. If we
2796 found any thread, then select the remote's current thread as GDB's
2797 current thread too.
2798
b7bba001
JB
27992014-01-08 Joel Brobecker <brobecker@adacore.com>
2800
2801 * NEWS: Create a new section for the next release branch.
2802 Rename the section of the current branch, now that it has
2803 been cut.
2804
16dfbded
JB
28052014-01-08 Joel Brobecker <brobecker@adacore.com>
2806
2807 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
2808 * version.in: Bump version to 7.7.50.DATE-cvs.
2809
22c90ac1
YQ
28102014-01-08 Yao Qi <yao@codesourcery.com>
2811
2812 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
2813 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
2814 (spu_xfer_partial): Cast 'buf' to 'const char *'.
2815
d64ad97c
YQ
28162014-01-08 Yao Qi <yao@codesourcery.com>
2817
2818 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
2819 return value of bfd_get_filename to symbol_file_add_from_bfd.
2820
f93ba80c
PM
28212014-01-08 Pierre Muller <muller@sourceware.org>
2822
2823 Fix PR16201.
2824 * coff-pe-read.c (struct read_pe_section_data): Add index field.
2825 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
2826 to prim_record_mininal_symbol_and_info.
2827 (add_pe_forwarded_sym): Use known section number of forwarded symbol
2828 in call to prim_record_minimal_symbol_and_info.
2829 (read_pe_exported_syms): Set index field of section_data.
2830
a4d9ba85
AP
28312014-01-07 Andrew Pinski <apinski@cavium.com>
2832
2833 * features/aarch64-core.xml (cpsr): Change to be 64bit.
2834 * features/aarch64.c: Regenerate.
2835
1b67eb02
AS
28362014-01-07 Andreas Schwab <schwab@linux-m68k.org>
2837
2838 * target.c (return_null): Define.
2839 (update_current_target): Use it instead of return_zero for
2840 functions that return a pointer.
2841
5e3f4fab
EBM
28422014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2843
2844 * source.c (add_path): Fix check for duplicated paths in the previously
2845 included paths.
2846
e2616788
HK
28472014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
2848
2849 * ada-lang.c: Remove duplicated include statements.
2850 * alphabsd-nat.c: Ditto.
2851 * amd64-darwin-tdep.c: Ditto.
2852 * amd64fbsd-nat.c: Ditto.
2853 * auto-load.c: Ditto.
2854 * ax-gdb.c: Ditto.
2855 * breakpoint.c: Ditto.
2856 * dbxread.c: Ditto.
2857 * fork-child.c: Ditto.
2858 * gdb_usleep.c: Ditto.
2859 * i386-darwin-tdep.c: Ditto.
2860 * i386fbsd-nat.c: Ditto.
2861 * infcmd.c: Ditto.
2862 * inferior.c: Ditto.
2863 * jv-lang.c: Ditto.
2864 * linux-nat.c: Ditto.
2865 * linux-tdep.c: Ditto.
2866 * m68kbsd-nat.c: Ditto.
2867 * m68klinux-nat.c: Ditto.
2868 * microblaze-tdep.c: Ditto.
2869 * mips-linux-tdep.c: Ditto.
2870 * mn10300-tdep.c: Ditto.
2871 * nto-tdep.c: Ditto.
2872 * opencl-lang.c: Ditto.
2873 * osdata.c: Ditto.
2874 * printcmd.c: Ditto.
2875 * regcache.c: Ditto.
2876 * remote-m32r-sdi.c: Ditto.
2877 * remote.c: Ditto.
2878 * symfile.c: Ditto.
2879 * symtab.c: Ditto.
2880 * tilegx-linux-nat.c: Ditto.
2881 * tilegx-tdep.c: Ditto.
2882 * tracepoint.c: Ditto.
2883 * valops.c: Ditto.
2884 * vaxbsd-nat.c: Ditto.
2885 * windows-nat.c: Ditto.
2886 * xtensa-tdep.c: Ditto.
2887
bd1f7788
YQ
28882014-01-07 Yao Qi <yao@codesourcery.com>
2889
2890 * spu-linux-nat.c (_initialize_spu_nat): Declare.
2891
79301218
JB
28922014-01-07 Yao Qi <yao@codesourcery.com>
2893 Joel Brobecker <brobecker@adacore.com>
2894
2895 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
2896 (pdc_write_regs): Likewise.
2897 (fetch_regs_kernel_thread): Likewise.
2898 (store_regs_kernel_thread): Likewise.
2899
29002014-01-07 Joel Brobecker <brobecker@adacore.com>
2901
2902 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
2903 tagged type objects to their actual type.
2904
8e355c5d
JB
29052014-01-07 Joel Brobecker <brobecker@adacore.com>
2906
2907 * ada-valprint.c (print_field_values): Add "language" parameter.
2908 Update calls to print_field_values and print_variant_part.
2909 Pass new parameter "language" in call to val_print instead
2910 of "current_language". Replace call to ada_val_print by call
2911 to val_print.
2912 (print_variant_part): Add "language" parameter.
2913 (ada_val_print_struct_union): Update call to print_field_values.
2914
4fbf5aa5
JB
29152014-01-07 Joel Brobecker <brobecker@adacore.com>
2916
2917 * ada-valprint.c (ui_memcpy): Delete.
2918 (ada_print_floating): Update documentation. Add empty line
2919 between between function documentation and implementation.
2920 Delete variable "buffer". Use ui_file_xstrdup in place of
2921 ui_file_put. Minor adjustments following this change.
2922
71855601
JB
29232014-01-07 Joel Brobecker <brobecker@adacore.com>
2924
2925 * ada-valprint.c (ada_val_print_string): New function,
2926 extracted from ada_val_print_array.
2927 (ada_val_print_array): Replace extracted code by call
2928 to ada_val_print_string followed by a return. Move
2929 "else" branch to the function's top block.
2930
4eb27a30
JB
29312014-01-07 Joel Brobecker <brobecker@adacore.com>
2932
2933 * ada-valprint.c (ada_val_print_array): Move implementation
2934 down. Rename parameter "offset" and "val" into "offset_aligned"
2935 and "original_value" respectively. Add parameter "offset".
2936
34b27950
JB
29372014-01-07 Joel Brobecker <brobecker@adacore.com>
2938
2939 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
2940 re-organizing the code. Change the "???" message printed
2941 when target type is a TYPE_CODE_UNDEF into
2942 "<ref to undefined type>".
2943
079e4591
JB
29442014-01-07 Joel Brobecker <brobecker@adacore.com>
2945
2946 * ada-valprint.c (print_record): Delete, implementation inlined...
2947 (ada_val_print_struct_union): ... here. Remove call to
2948 ada_check_typedef in inlined implementation.
2949
8004dfd1
JB
29502014-01-07 Joel Brobecker <brobecker@adacore.com>
2951
2952 * ada-valprint.c (ada_val_print_gnat_array): New function,
2953 extracted from ada_val_print_1;
2954 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
2955 (ada_val_print_flt, ada_val_print_struct_union)
2956 (ada_val_print_ref): Likewise.
2957 (ada_val_print_1): Delete variables i and elttype.
2958 Replace extracted-out code by call to corresponding
2959 new functions.
2960
760a2db0
JB
29612014-01-07 Joel Brobecker <brobecker@adacore.com>
2962
2963 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
2964
3a92c861
JB
29652014-01-07 Joel Brobecker <brobecker@adacore.com>
2966
2967 * ada-valprint.c (ada_val_print_1): Replace calls to
2968 ada_val_print_1 by calls to val_print.
2969
cd1630f9
JB
29702014-01-07 Joel Brobecker <brobecker@adacore.com>
2971
2972 * ada-valprint.c (ada_val_print_1): Add parameter "language".
2973 Update calls to self accordingly. Replace calls to c_val_print
2974 by calls to val_print.
2975
bdf779a0
JB
29762014-01-07 Joel Brobecker <brobecker@adacore.com>
2977
2978 * ada-valprint.c (print_record): Delete declaration.
2979 (adjust_type_signedness, ada_val_print_1): Likewise.
2980 (ada_val_print): Move function implementation down.
2981 (print_variant_part, print_field_values, print_record):
2982 Move function implementation up.
2983
c0d48811
JB
29842014-01-07 Joel Brobecker <brobecker@adacore.com>
2985
2986 * python/py-type.c (typy_get_name): New function.
2987 (type_object_getset): Add entry for attribute "name".
2988 * NEWS: Add entry mentioning this new attribute.
2989
c26e9cbb
YQ
29902014-01-07 Yao Qi <yao@codesourcery.com>
2991
2992 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
2993 statement.
2994
0cc6f43d
YQ
29952014-01-07 Yao Qi <yao@codesourcery.com>
2996
2997 * gnu-nat.c (info_port_rights): Add qualifier const to
2998 argument args.
2999
eec03155
YQ
30002014-01-07 Yao Qi <yao@codesourcery.com>
3001
3002 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
3003
f04a82ef
YQ
30042014-01-07 Yao Qi <yao@codesourcery.com>
3005
3006 * gnu-nat.c (make_inf) Update declaration.
3007 (make_inf): Make it static.
3008 (inf_set_traced): Likewise.
3009 (inf_port_to_thread, inf_task_died_status): Likewise.
3010
d57dda0a
YQ
30112014-01-07 Yao Qi <yao@codesourcery.com>
3012
3013 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
3014
3aa8c969
YQ
30152014-01-07 Yao Qi <yao@codesourcery.com>
3016
3017 * gnu-nat.c (_initialize_gnu_nat): Declare.
3018
94123b4f
YQ
30192014-01-07 Yao Qi <yao@codesourcery.com>
3020
3021 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
3022 'enum bfd_endian'.
3023 (struct gdbarch_info) <byte_order>: Change type to
3024 'enum bfd_endian'.
3025 <byte_order_for_code>: Likewise.
3026 * gdbarch.c, gdbarch.h: Regenerated.
3027
dc81d70a
TT
30282014-01-06 Sasha Smundak <asmundak@google.com>
3029
3030 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3031
cc2f3c35
TT
30322014-01-06 Tom Tromey <tromey@redhat.com>
3033
3034 * doublest.c (convert_doublest_to_floatformat): Use const, not
3035 CONST.
3036 * somread.c (som_symtab_read): Likewise.
3037
adcf2eed
HZ
30382014-01-07 Hui Zhu <hui@codesourcery.com>
3039
3040 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3041 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3042 (gdb_bfd_fopen): Ditto.
3043 (gdb_bfd_openr): Ditto.
3044 (gdb_bfd_openw): Ditto.
3045 (gdb_bfd_openr_iovec): Ditto.
3046 (gdb_bfd_fdopenr): Ditto.
3047 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3048 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3049 with xstrdup.
3050 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3051 with xstrdup.
3052 * symfile-mem.c (symbol_file_add_from_memory): Removed
3053 gdb_bfd_stash_filename.
3054
50722198
DE
30552014-01-03 Doug Evans <dje@google.com>
3056
3057 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3058 output.
3059
2fa4b862
JB
30602014-01-01 Joel Brobecker <brobecker@adacore.com>
3061
3062 Update year range in copyright notice of all files.
3063
28498c42
JB
30642014-01-01 Joel Brobecker <brobecker@adacore.com>
3065
3066 * top.c (print_gdb_version): Set copyright year to 2014.
3067
7b6e1046
JB
30682014-01-01 Joel Brobecker <brobecker@adacore.com>
3069
3070 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3071
df96af55 3072For older changes see ChangeLog-2013.
c906108c
SS
3073\f
3074Local Variables:
3075mode: change-log
3076left-margin: 8
3077fill-column: 74
3078version-control: never
57da7796 3079coding: utf-8
c906108c 3080End: