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