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