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