summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorgraydon <graydon>2005-06-21 00:55:12 +0000
committergraydon <graydon>2005-06-21 00:55:12 +0000
commitbd2b1e6816b486d5c85a4693f0b3579df4376ed5 (patch)
treedf448059a9ab7ef96da21972afa47b3f165e021d /main.cxx
parent2d7f5dfb3ea63f301341a1b63c3dfa293a3abfce (diff)
downloadsystemtap-steved-bd2b1e6816b486d5c85a4693f0b3579df4376ed5.tar.gz
systemtap-steved-bd2b1e6816b486d5c85a4693f0b3579df4376ed5.tar.xz
systemtap-steved-bd2b1e6816b486d5c85a4693f0b3579df4376ed5.zip
2005-06-20 Graydon Hoare <graydon@redhat.com>
* configure.ac: Scan for libdwfl. * staptree.h (verbose): New global. * main.cxx (usage, main): Implement -v option. * tapsets.cxx (dwflpp): New struct. (query_statement): New function. (query_function): New function. (query_cu): New function. (query_module): New function. (dwarf_derived_probe): Implement primary forms.
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.cxx b/main.cxx
index e5763207..a31d53fa 100644
--- a/main.cxx
+++ b/main.cxx
@@ -23,6 +23,7 @@ extern "C" {
using namespace std;
+bool verbose = false;
void usage ()
{
@@ -37,6 +38,7 @@ void usage ()
cerr << endl;
cerr << "Arguments:" << endl;
cerr << " -- No more options after this" << endl;
+ cerr << " -v verbose" << endl;
cerr << " -p NUM Stop after pass NUM 1-3" << endl;
cerr << " (parse, elaborate, translate)" << endl;
cerr << " -I DIR Look in DIR for additional .stp script files." << endl;
@@ -61,11 +63,15 @@ main (int argc, char * const argv [])
vector<string> args; // ARGS
while (true)
{
- int grc = getopt (argc, argv, "p:I:e:o:");
+ int grc = getopt (argc, argv, "vp:I:e:o:");
if (grc < 0)
break;
switch (grc)
{
+ case 'v':
+ verbose = true;
+ break;
+
case 'p':
last_pass = atoi (optarg);
if (last_pass < 1 || last_pass > 3)