summaryrefslogtreecommitdiffhomepage
path: root/src/output
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-24 00:00:52 -0400
committermidipix <writeonce@midipix.org>2016-11-11 00:22:49 -0500
commit63e310c13e8a82f429c98c27211639db09c18775 (patch)
tree9c12092278d1831d2015ad6e5cb899d611d0f445 /src/output
parent51430e224464219f5b0bb94465eb9a3e2930cabd (diff)
downloadmdso-63e310c13e8a82f429c98c27211639db09c18775.tar.bz2
mdso-63e310c13e8a82f429c98c27211639db09c18775.tar.xz
mdso_output_export_symbols(): added error trace support.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/mdso_output_export_symbols.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/output/mdso_output_export_symbols.c b/src/output/mdso_output_export_symbols.c
index 234fce9..097b8a2 100644
--- a/src/output/mdso_output_export_symbols.c
+++ b/src/output/mdso_output_export_symbols.c
@@ -12,6 +12,7 @@
#include <mdso/mdso.h>
#include <mdso/mdso_output.h>
+#include "mdso_errinfo_impl.h"
static int pretty_header(const struct mdso_common_ctx * cctx, FILE * fout)
{
@@ -29,8 +30,8 @@ static int pretty_export_item(const struct mdso_common_ctx * cctx, const char *
}
int mdso_output_export_symbols(
+ const struct mdso_driver_ctx * dctx,
const struct mdso_unit_ctx * uctx,
- const struct mdso_common_ctx * cctx,
FILE * fout)
{
const char * const * sym;
@@ -38,12 +39,12 @@ int mdso_output_export_symbols(
if (!uctx->syms[0])
return 0;
- if ((pretty_header(cctx,fout)) < 0)
- return -1;
+ if ((pretty_header(dctx->cctx,fout)) < 0)
+ return MDSO_FILE_ERROR(dctx);
for (sym=uctx->syms; *sym; sym++)
- if ((pretty_export_item(cctx,*sym,fout)) < 0)
- return -1;
+ if ((pretty_export_item(dctx->cctx,*sym,fout)) < 0)
+ return MDSO_FILE_ERROR(dctx);
return 0;
}