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