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