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