Added libbarryalx.* to DEB binary package (RPM uses wildcards, so already done)
[barry.git] / tools / bdptest.cc
blob6e4932e9a0b296cc42cdfa8a33e59be4f1ce8c18
1 /**
2 * @file bdptest.cc
3 * @author Nicolas VIVIEN
4 * @date 2009-08-01
6 * @note CopyRight Nicolas VIVIEN
8 * @brief COD debug file parser
9 * RIM's JDE generates several files when you build a COD application.
10 * Indeed, with the COD files for the device, we have a ".debug" file.
11 * This file is usefull to debug an application from JVM.
12 * This tool is a parser to understand these ".debug" files.
14 * This tool is simply a test application.
16 * @par Modifications
17 * - 2009/08/01 : N. VIVIEN
18 * - First release
20 * @par Licences
21 * Copyright (C) 2009-2010, Nicolas VIVIEN
23 * This program is free software; you can redistribute it and/or modify
24 * it under the terms of the GNU General Public License as published by
25 * the Free Software Foundation; either version 2 of the License, or
26 * (at your option) any later version.
28 * This program is distributed in the hope that it will be useful,
29 * but WITHOUT ANY WARRANTY; without even the implied warranty of
30 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
32 * See the GNU General Public License in the COPYING file at the
33 * root directory of this project for more details.
38 #include <iostream>
39 #include <fstream>
40 #include <string>
41 #include "i18n.h"
43 #include <barry/barry.h>
46 using namespace std;
47 using namespace Barry;
50 int main(int argc, char *argv[], char *envp[])
52 INIT_I18N(PACKAGE);
54 Barry::Init(true, &cout);
56 JDG::DebugFileList list;
58 JDG::SearchDebugFile(list);
60 cout << "List of debug files " << endl;
61 cout << list << endl;
64 JDG::CodInfo info;
66 JDG::LoadDebugInfo(list, argv[1], info);
68 return 0;