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