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