• R/O
  • HTTP
  • SSH
  • HTTPS

drdeamon64: Commit

Dr.Deamon64 Git-Repository
(2014/03/01- Main-Repository: migrate from cvs)


Commit MetaInfo

Revisión6869cf5a2b6dd4a5af8be75da314a8dc52c508fc (tree)
Tiempo2019-11-04 02:48:12
AutorKoine Yuusuke(koinec) <koinec@user...>
CommiterKoine Yuusuke(koinec)

Log Message

(LibGoblin)
  • WorkBackup

Cambiar Resumen

Diferencia incremental

--- a/libgoblin/drd64_libgoblin_api.c
+++ b/libgoblin/drd64_libgoblin_api.c
@@ -103,7 +103,7 @@ int
103103
104104 // XXX: for DEBUG!
105105 Debug_ObjectInfo_Print_AllGroupLink( p_pginfo, 0xff );
106- Debug_SrcFile_PrintSrcFileTable( p_binfo, 0xff );
106+ Debug_SrcFile_PrintSrcFileTable( p_pginfo, 0xff );
107107
108108 return i_result;
109109 }
--- a/libgoblin/drd64_libgoblin_debug_srcfile.c
+++ b/libgoblin/drd64_libgoblin_debug_srcfile.c
@@ -40,9 +40,40 @@ Comment:
4040
4141 /*----------------------------------------------------------------------
4242 ----------------------------------------------------------------------*/
43+int
44+ Debug_SrcFile_PrintSrcFile_inBianryFile(
45+ LibGoblin_BinaryFile *p_bfile,
46+ Byte b_level )
47+{
48+ int i_srcid;
49+ LibGoblin_SrcFile *p_srcfile;
50+
51+ assert( NULL != p_bfile );
52+
53+ printf(" BinaryFile: %s\n", p_bfile->str_filename );
54+ if( 0 == p_bfile->srcfile.i_max ) {
55+ printf( " (Unread .debug_line section within Src.FileTable)\n");
56+ return 0x00;
57+ }
58+
59+ for( i_srcid = 0; i_srcid < p_bfile->srcfile.i_max; i_srcid++ ) {
60+ p_srcfile = SrcFile_GetSrcFile( p_bfile, i_srcid );
61+ if( NULL == p_srcfile ) { continue; }
62+
63+ printf( " [%3d] %s/%s\n",
64+ p_srcfile->i_id, p_srcfile->str_srcpath, p_srcfile->str_filename );
65+ }
66+
67+
68+ return 0x00;
69+}
70+
71+
72+/*----------------------------------------------------------------------
73+----------------------------------------------------------------------*/
4374 LIBGOBLIN_DEBUG_SRCFILE_EXTERN
4475 int
45- Debug_SrcFile_PrintSrcFileTable(
76+ Debug_SrcFile_PrintSrcFileTable_inBinaryInfo(
4677 LibGoblin_BinaryInfo *p_binfo,
4778 Byte b_level )
4879 {
@@ -55,14 +86,46 @@ int
5586
5687 if( 0x00 < b_level )
5788 { puts("[DEBUG] SrcFile Table --------------------------------------------------"); }
89+ Debug_SrcFile_PrintSrcFile_inBianryFile( p_bfile, b_level );
5890
59- for( i_srcid = 0; i_srcid < p_bfile->srcfile.i_max; i_srcid++ ) {
60- p_srcfile = SrcFile_GetSrcFile( p_bfile, i_srcid );
61- if( NULL == p_srcfile ) { continue; }
62-
63- printf( " [%3d] %s/%s\n", p_srcfile->i_id, p_srcfile->str_srcpath, p_srcfile->str_filename );
91+ if( 0x00 < b_level ) {
92+ puts("-----------------------------------------------------------------------");
93+ puts("");
6494 }
6595
96+ return 0x00;
97+}
98+
99+
100+/*----------------------------------------------------------------------
101+----------------------------------------------------------------------*/
102+LIBGOBLIN_DEBUG_SRCFILE_EXTERN
103+int
104+ Debug_SrcFile_PrintSrcFileTable(
105+ LibGoblin_ProgramInfo *p_pginfo,
106+ Byte b_level )
107+{
108+ int i_srcid;
109+ LibGoblin_BinaryInfo *p_binfo;
110+ LibGoblin_BinaryFile *p_bfile;
111+
112+ assert( NULL != p_pginfo );
113+
114+ if( 0x00 < b_level )
115+ { puts("[DEBUG] SrcFile Table --------------------------------------------------"); }
116+
117+ p_binfo = BinaryInfo_GetBinInfo( p_pginfo->i_binfo_id );
118+ assert( NULL != p_binfo );
119+
120+ do {
121+ p_bfile = BinaryFile_GetBinaryFile( p_binfo->i_binfile );
122+ assert( NULL != p_bfile );
123+
124+ Debug_SrcFile_PrintSrcFile_inBianryFile( p_bfile, b_level );
125+
126+ p_binfo = BinaryInfo_GetBinInfo( p_binfo->i_binfo_next );
127+ }while( NULL != p_binfo );
128+
66129 if( 0x00 < b_level ) {
67130 puts("-----------------------------------------------------------------------");
68131 puts("");
--- a/libgoblin/drd64_libgoblin_debug_srcfile.h
+++ b/libgoblin/drd64_libgoblin_debug_srcfile.h
@@ -46,8 +46,11 @@ Comment:
4646 #endif
4747
4848 LIBGOBLIN_DEBUG_SRCFILE_EXTERN
49- int Debug_SrcFile_PrintSrcFileTable(
49+ int Debug_SrcFile_PrintSrcFileTable_inBinaryInfo(
5050 LibGoblin_BinaryInfo *p_binfo, Byte b_level );
51+LIBGOBLIN_DEBUG_SRCFILE_EXTERN
52+ int Debug_SrcFile_PrintSrcFileTable(
53+ LibGoblin_ProgramInfo *p_pginfo, Byte b_level );
5154
5255
5356 #endif /* DRD64_HEADER_XXX */
Show on old repository browser