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