00001 /** 00002 * @file bdptest.cc 00003 * @author Nicolas VIVIEN 00004 * @date 2009-08-01 00005 * 00006 * @note CopyRight Nicolas VIVIEN 00007 * 00008 * @brief COD debug file parser 00009 * RIM's JDE generates several files when you build a COD application. 00010 * Indeed, with the COD files for the device, we have a ".debug" file. 00011 * This file is usefull to debug an application from JVM. 00012 * This tool is a parser to understand these ".debug" files. 00013 * 00014 * This tool is simply a test application. 00015 * 00016 * @par Modifications 00017 * - 2009/08/01 : N. VIVIEN 00018 * - First release 00019 * 00020 * @par Licences 00021 * Copyright (C) 2009-2010, Nicolas VIVIEN 00022 * 00023 * This program is free software; you can redistribute it and/or modify 00024 * it under the terms of the GNU General Public License as published by 00025 * the Free Software Foundation; either version 2 of the License, or 00026 * (at your option) any later version. 00027 * 00028 * This program is distributed in the hope that it will be useful, 00029 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00030 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00031 * 00032 * See the GNU General Public License in the COPYING file at the 00033 * root directory of this project for more details. 00034 */ 00035 00036 00037 00038 #include <iostream> 00039 #include <fstream> 00040 #include <string> 00041 #include "i18n.h" 00042 00043 #include <barry/barry.h> 00044 00045 00046 using namespace std; 00047 using namespace Barry; 00048 00049 00050 int main(int argc, char *argv[], char *envp[]) 00051 { 00052 INIT_I18N(PACKAGE); 00053 00054 Barry::Init(true, &cout); 00055 00056 JDG::DebugFileList list; 00057 00058 JDG::SearchDebugFile(list); 00059 00060 cout << "List of debug files " << endl; 00061 cout << list << endl; 00062 00063 00064 JDG::CodInfo info; 00065 00066 JDG::LoadDebugInfo(list, argv[1], info); 00067 00068 return 0; 00069 } 00070