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