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