]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libebl/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 12 Oct 2012 18:43:21 +0000 (20:43 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 12 Oct 2012 18:57:26 +0000 (20:57 +0200)
2012-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>

* ebl-hooks.h (abi_cfi): Extend its comment for return value.
* eblopenbackend.c (default_abi_cfi): Return -1.
* libebl.h (ebl_abi_cfi): Extend its comment for return value.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
libebl/ChangeLog
libebl/ebl-hooks.h
libebl/eblopenbackend.c
libebl/libebl.h

index f12613a9df0a689ae43315a62066a32d6de7a692..e881ce72136f81492e631e8135b7b4179d13ea8d 100644 (file)
@@ -1,3 +1,9 @@
+2012-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * ebl-hooks.h (abi_cfi): Extend its comment for return value.
+       * eblopenbackend.c (default_abi_cfi): Return -1.
+       * libebl.h (ebl_abi_cfi): Extend its comment for return value.
+
 2012-08-30  Petr Machata  <pmachata@redhat.com>
 
        * eblcorenotetypename.c: Handle PPC_VSX, X86_XSTATE,
index f629bce7deeb14a15c80a6fbea21f53d6d675a01..d3cf3e62c7d9aed3f0650db3286d51bb3cb14681 100644 (file)
@@ -151,7 +151,8 @@ int EBLHOOK(disasm) (const uint8_t **startp, const uint8_t *end,
                     GElf_Addr addr, const char *fmt, DisasmOutputCB_t outcb,
                     DisasmGetSymCB_t symcb, void *outcbarg, void *symcbarg);
 
-/* Supply the machine-specific state of CFI before CIE initial programs.  */
+/* Supply the machine-specific state of CFI before CIE initial programs.
+   Function returns 0 on success and -1 on error.  */
 int EBLHOOK(abi_cfi) (Ebl *ebl, Dwarf_CIE *abi_info);
 
 /* Destructor for ELF backend handle.  */
index 89e5da59d9a2cd3c07538d60eea29ff423dc6dd6..ed0c0ffe21b340fc778573f91a92adfb58914f58 100644 (file)
@@ -750,5 +750,5 @@ static int
 default_abi_cfi (Ebl *ebl __attribute__ ((unused)),
                 Dwarf_CIE *abi_info __attribute__ ((unused)))
 {
-  return 0;
+  return -1;
 }
index 0d5621d61a1442b5ae6a80831663448880e64db8..cae31c9b3de1a6f06878c6d2f428f6f3b9072e88 100644 (file)
@@ -267,7 +267,10 @@ extern int ebl_syscall_abi (Ebl *ebl, int *sp, int *pc,
    DWARF register number that identifies the actual PC in machine state.
    If there is no canonical DWARF register number with that meaning, it's
    left unchanged (callers usually initialize with (Dwarf_Word) -1).
-   This value is not used by CFI per se.  */
+   This value is not used by CFI per se.
+
+   Function returns 0 on success and -1 for error or unsupported by the
+   backend.  */
 extern int ebl_abi_cfi (Ebl *ebl, Dwarf_CIE *abi_info)
   __nonnull_attribute__ (2);