commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r9342 - gnuradio/branches/developers/trondeau/dbs/usrp


From: trondeau
Subject: [Commit-gnuradio] r9342 - gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy
Date: Tue, 19 Aug 2008 20:25:02 -0600 (MDT)

Author: trondeau
Date: 2008-08-19 20:25:00 -0600 (Tue, 19 Aug 2008)
New Revision: 9342

Modified:
   gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_base.h
   gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_basic.cc
   gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_basic.h
   gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_flexrf.cc
Log:
adding destructors (in a failed attempt at fixing a random segfault)

Modified: 
gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_base.h
===================================================================
--- gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_base.h    
2008-08-20 02:24:21 UTC (rev 9341)
+++ gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_base.h    
2008-08-20 02:25:00 UTC (rev 9342)
@@ -58,7 +58,7 @@
 {
  public:
   db_base(usrp_basic *usrp, int which, bool tx=true);
-  ~db_base();
+  virtual ~db_base();
 
   int dbid();
   std::string name();

Modified: 
gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_basic.cc
===================================================================
--- gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_basic.cc  
2008-08-20 02:24:21 UTC (rev 9341)
+++ gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_basic.cc  
2008-08-20 02:25:00 UTC (rev 9342)
@@ -39,6 +39,10 @@
   }
 }
 
+db_basic_tx::~db_basic_tx()
+{
+}
+
 float 
 db_basic_tx::freq_min() 
 {
@@ -63,7 +67,7 @@
   //   ok is True or False and indicates success or failure,
   //   actual_baseband_freq is the RF frequency that corresponds to DC in the 
IF.
   
-  struct freq_result_t args = {0, 0};
+  struct freq_result_t args = {false, 0};
   args.ok = true;
   args.baseband_freq = 0.0;
   return args;
@@ -131,6 +135,10 @@
   }
 }
 
+db_basic_rx::~db_basic_rx()
+{
+}
+
 float
 db_basic_rx::freq_min() 
 {
@@ -212,6 +220,10 @@
   // @param which: which side: 0 or 1 corresponding to RX_A or RX_B 
respectively
 }
 
+db_lf_tx::~db_lf_tx()
+{
+}
+
 float 
 db_lf_tx::freq_min() 
 {
@@ -238,6 +250,10 @@
   // @type subdev: int
 }
 
+db_lf_rx::~db_lf_rx()
+{
+}
+
 float
 db_lf_rx::freq_min() 
 {

Modified: 
gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_basic.h
===================================================================
--- gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_basic.h   
2008-08-20 02:24:21 UTC (rev 9341)
+++ gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_basic.h   
2008-08-20 02:25:00 UTC (rev 9342)
@@ -32,7 +32,8 @@
 {
 public:
   db_basic_tx(usrp_basic *usrp, int which);
-
+  ~db_basic_tx();
+  
   float gain_min();
   float gain_max();
   float gain_db_per_step();
@@ -51,6 +52,7 @@
 {
  public:
   db_basic_rx(usrp_basic *usrp, int which, int subdev);
+  ~db_basic_rx();
   
   float gain_min();
   float gain_max();
@@ -73,6 +75,7 @@
 {
  public:
   db_lf_rx(usrp_basic *usrp, int which, int subdev);
+  ~db_lf_rx();
   
   float freq_min();
   float freq_max();
@@ -86,6 +89,7 @@
 { 
  public:
   db_lf_tx(usrp_basic *usrp, int which);
+  ~db_lf_tx();
   
   float freq_min();
   float freq_max();

Modified: 
gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_flexrf.cc
===================================================================
--- gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_flexrf.cc 
2008-08-20 02:24:21 UTC (rev 9341)
+++ gnuradio/branches/developers/trondeau/dbs/usrp/host/lib/legacy/db_flexrf.cc 
2008-08-20 02:25:00 UTC (rev 9342)
@@ -62,7 +62,7 @@
   d_usrp->common_write_io((d_tx ? C_TX : C_RX), 
                          d_which, power_off(), POWER_UP);
 
-  delete d_common;
+  //delete d_common;
 }
 
 void





reply via email to

[Prev in Thread] Current Thread [Next in Thread]