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