summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordsmith <dsmith>2007-08-20 14:03:56 +0000
committerdsmith <dsmith>2007-08-20 14:03:56 +0000
commit54dec22d3e36e7363f27a43534db4078b57d7c5e (patch)
treec8f44ecad4829c2b71c227153d39d99f7b5f35dd
parent51d74220e22628126489527776af8c13e339c1ec (diff)
downloadsystemtap-steved-54dec22d3e36e7363f27a43534db4078b57d7c5e.tar.gz
systemtap-steved-54dec22d3e36e7363f27a43534db4078b57d7c5e.tar.xz
systemtap-steved-54dec22d3e36e7363f27a43534db4078b57d7c5e.zip
2007-08-20 David Smith <dsmith@redhat.com>
From Lai Jiangshan <laijs@cn.fujitsu.com> * main.cxx (main): Make sure the '-c' and '-x' options can't be specified together.
-rw-r--r--ChangeLog6
-rw-r--r--main.cxx6
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 292b9bdc..045ca353 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-08-20 David Smith <dsmith@redhat.com>
+
+ From Lai Jiangshan <laijs@cn.fujitsu.com>
+ * main.cxx (main): Make sure the '-c' and '-x' options can't be
+ specified together.
+
2007-08-17 Frank Ch. Eigler <fche@elastic.org>
As suggested by "Zhaolei" <zhaolei@cn.fujitsu.com>:
diff --git a/main.cxx b/main.cxx
index e18a1331..eaf0a651 100644
--- a/main.cxx
+++ b/main.cxx
@@ -448,6 +448,12 @@ main (int argc, char * const argv [])
usage (s, 1);
}
+ if((s.cmd != "") && (s.target_pid))
+ {
+ cerr << "You can't specify -c and -x options together." <<endl;
+ usage (s, 1);
+ }
+
if (s.last_pass > 4 && release_changed)
{
if (s.verbose)