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