diff options
author | Tom Tromey <tromey@redhat.com> | 2013-03-14 20:11:12 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-03-14 20:11:12 +0000 |
commit | cc0ea93c7531fe59c4d7d2b01b01acb9bbe0b7fd (patch) | |
tree | feab4efd29d97f42e35d97c3da955b24421c7471 /bfd | |
parent | 08c23b0d0fc03ae7248e8dc5e525bec29a85d209 (diff) | |
download | gdb-cc0ea93c7531fe59c4d7d2b01b01acb9bbe0b7fd.zip gdb-cc0ea93c7531fe59c4d7d2b01b01acb9bbe0b7fd.tar.gz gdb-cc0ea93c7531fe59c4d7d2b01b01acb9bbe0b7fd.tar.bz2 |
gdb
* symfile.c (get_debug_link_info): Remove.
(find_separate_debug_file_by_debuglink): Use
bfd_get_debug_link_info.
bfd
* opncls.c (bfd_get_debug_link_info): Rename from
get_debug_link_info. Export. Update comment.
(find_separate_debug_file): Update.
* bfd-in2.h: Rebuild.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/bfd-in2.h | 2 | ||||
-rw-r--r-- | bfd/opncls.c | 18 |
3 files changed, 19 insertions, 8 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 42d6c27..40bb0a1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2013-03-14 Tom Tromey <tromey@redhat.com> + + * opncls.c (bfd_get_debug_link_info): Rename from + get_debug_link_info. Export. Update comment. + (find_separate_debug_file): Update. + * bfd-in2.h: Rebuild. + 2013-03-08 Venkataramanan Kumar <venkataramanan.kumar@linaro.org> * elf64-aarch64.c (elf_backend_can_gc_sections): Enable gc-section diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 524e97e..2f49b1d 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1049,6 +1049,8 @@ void *bfd_zalloc (bfd *abfd, bfd_size_type wanted); unsigned long bfd_calc_gnu_debuglink_crc32 (unsigned long crc, const unsigned char *buf, bfd_size_type len); +char *bfd_get_debug_link_info (bfd *abfd, unsigned long *crc32_out); + char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir); struct bfd_section *bfd_create_gnu_debuglink_section diff --git a/bfd/opncls.c b/bfd/opncls.c index 6d61191..1217cea 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -1,6 +1,6 @@ /* opncls.c -- open and close a BFD. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, - 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 + 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Free Software Foundation, Inc. Written by Cygnus Support. @@ -1140,20 +1140,22 @@ bfd_calc_gnu_debuglink_crc32 (unsigned long crc, /* -INTERNAL_FUNCTION - get_debug_link_info +FUNCTION + bfd_get_debug_link_info SYNOPSIS - char *get_debug_link_info (bfd *abfd, unsigned long *crc32_out); + char *bfd_get_debug_link_info (bfd *abfd, unsigned long *crc32_out); DESCRIPTION fetch the filename and CRC32 value for any separate debuginfo associated with @var{abfd}. Return NULL if no such info found, - otherwise return filename and update @var{crc32_out}. + otherwise return filename and update @var{crc32_out}. The + returned filename is allocated with @code{malloc}; freeing it + is the responsibility of the caller. */ -static char * -get_debug_link_info (bfd *abfd, unsigned long *crc32_out) +char * +bfd_get_debug_link_info (bfd *abfd, unsigned long *crc32_out) { asection *sect; unsigned long crc32; @@ -1261,7 +1263,7 @@ find_separate_debug_file (bfd *abfd, const char *debug_file_directory) return NULL; } - base = get_debug_link_info (abfd, & crc32); + base = bfd_get_debug_link_info (abfd, & crc32); if (base == NULL) return NULL; |