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