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