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