bug-ddd
[Top][All Lists]
Advanced

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

Re: DDD 3.2.92 problems on Solaris 2.6


From: Andreas Zeller
Subject: Re: DDD 3.2.92 problems on Solaris 2.6
Date: 06 Dec 2000 10:59:15 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

Hi!

Christian Stolte <address@hidden> writes:

> I have a problem after building DDD 3.2.92 on Solaris 2.6 SC4.2 with
> 
>      setenv CC cc
>      setenv CXX CC
> 
> My problems are (ok with 3.2.1):
> 
>    cannot attach with DBX:  DBX status indicator is busy and nothing happens
>    [can attach with GDB 5.0]

Can you send me a ~/.ddd/log file that illustrates this problem?


>    double click mouse button does NOT any longer
>    for print variables, set breakpoints, and step down into subroutines

Are you using the CDE window manager?  In this case, try 

        Ddd*enableBtn1Transfer: True
or
        Ddd*enableBtn1Transfer: False


in your ~/.ddd/init file and let me know if any of them helps.


> I had this `make' failure
> 
> Warning (Anachronism): Formal argument 2 of type extern "C" void(*)(int) in 
> call to std::signal(int, extern "C" void(*)(int)) is being passed 
> void(*)(int).
> "AgentM.h", line 83: Warning (Anachronism): Formal argument 2 of type extern 
> "C" void(*)(int) in call to std::signal(int, extern "C" void(*)(int)) is 
> being passed void(*)(int).
> "HandlerL.h", line 68: Warning (Anachronism): Cannot cast from 
> void(*const)(void*,void*,void*) to void*.
> "HandlerL.h", line 68: Warning (Anachronism): Cannot cast from 
> void(*const)(void*,void*,void*) to void*.
> "MString.h", line 55: Warning: String literal converted to char* in 
> initialization.
> "charsets.h", line 90: Warning: String literal converted to char* in formal
> argument charset in call to MString::MString(const string&, char*)

Please try the enclosed patch and let me know if this helps against
the warnings.

Best wishes,

Andreas

-- 
Andreas Zeller     Universitaet Passau
                   http://www.fmi.uni-passau.de/st/staff/zeller/

Index: ddd/AgentM.h
===================================================================
RCS file: /cvsroot/ddd/ddd/ddd/AgentM.h,v
retrieving revision 1.14
diff -c -2 -r1.14 AgentM.h
*** ddd/AgentM.h        1999/08/19 11:27:01     1.14
--- ddd/AgentM.h        2000/12/06 09:56:23
***************
*** 49,53 ****
--- 49,56 ----
  #endif
  
+ extern "C" {
+ // Sun C++ wants `SignalProc' to be a C funtion
  typedef void (*SignalProc)(SIGHANDLERARGS);
+ }
  
  class Agent;
***************
*** 99,101 ****
  #endif // _DDD_AgentManager_h
  // DON'T ADD ANYTHING BEHIND THIS #endif
- 
--- 102,103 ----
Index: ddd/HandlerL.h
===================================================================
RCS file: /cvsroot/ddd/ddd/ddd/HandlerL.h,v
retrieving revision 1.13
diff -c -2 -r1.13 HandlerL.h
*** ddd/HandlerL.h      1999/08/19 11:27:33     1.13
--- ddd/HandlerL.h      2000/12/06 09:56:23
***************
*** 42,47 ****
                            void *call_data);   // data supplied by caller
  
  
- 
  class HandlerList {
  private:
--- 42,50 ----
                            void *call_data);   // data supplied by caller
  
+ inline int compare(HandlerProc p1, HandlerProc p2)
+ {
+     return compare((unsigned long)p1, (unsigned long)p2);
+ }
  
  class HandlerList {
  private:
***************
*** 66,70 ****
      static int compare(const HandlerRec& l1, const HandlerRec& l2)
      {
!       int c = ::compare((void *)l1.proc, (void *)l2.proc);
        return c ? c : ::compare(l1.client_data, l2.client_data);
      }
--- 69,73 ----
      static int compare(const HandlerRec& l1, const HandlerRec& l2)
      {
!       int c = ::compare(l1.proc, l2.proc);
        return c ? c : ::compare(l1.client_data, l2.client_data);
      }
Index: ddd/MString.h
===================================================================
RCS file: /cvsroot/ddd/ddd/ddd/MString.h,v
retrieving revision 1.26
diff -c -2 -r1.26 MString.h
*** ddd/MString.h       2000/05/23 11:54:58     1.26
--- ddd/MString.h       2000/12/06 09:56:23
***************
*** 53,66 ****
  public:
      // Constructors
!     MString(char *text = "",
            XmStringCharSet charset = MSTRING_DEFAULT_CHARSET):
!       _mstring(text ? XmStringCreateLtoR(text, charset) : 0)
      {
        assert(OK());
      }
  
!     MString(const char *text,
            XmStringCharSet charset = MSTRING_DEFAULT_CHARSET):
!       _mstring(text ? XmStringCreateLtoR((char *)text, charset) : 0)
      {
        assert(OK());
--- 53,66 ----
  public:
      // Constructors
!     MString(const char *text = "",
            XmStringCharSet charset = MSTRING_DEFAULT_CHARSET):
!       _mstring(text ? XmStringCreateLtoR((char *)text, charset) : 0)
      {
        assert(OK());
      }
  
!     MString(char *text,
            XmStringCharSet charset = MSTRING_DEFAULT_CHARSET):
!       _mstring(text ? XmStringCreateLtoR(text, charset) : 0)
      {
        assert(OK());
Index: ddd/charsets.h
===================================================================
RCS file: /cvsroot/ddd/ddd/ddd/charsets.h,v
retrieving revision 1.10
diff -c -2 -r1.10 charsets.h
*** ddd/charsets.h      2000/05/23 11:55:03     1.10
--- ddd/charsets.h      2000/12/06 09:56:23
***************
*** 88,97 ****
  
  // Convenience functions
! inline MString tt(const string& text) { return MString(text, CHARSET_TT); }
! inline MString tb(const string& text) { return MString(text, CHARSET_TB); }
! inline MString rm(const string& text) { return MString(text, CHARSET_RM); }
! inline MString sl(const string& text) { return MString(text, CHARSET_SL); }
! inline MString bf(const string& text) { return MString(text, CHARSET_BF); }
! inline MString bs(const string& text) { return MString(text, CHARSET_BS); }
  
  // Newline function
--- 88,121 ----
  
  // Convenience functions
! inline MString tt(const string& text) 
! {
!     return MString(text, (const char *)CHARSET_TT);
! }
! 
! inline MString tb(const string& text) 
! {
!     return MString(text, (const char *)CHARSET_TB);
! }
! 
! inline MString rm(const string& text) 
! {
!     return MString(text, (const char *)CHARSET_RM);
! }
! 
! inline MString sl(const string& text) 
! {
!     return MString(text, (const char *)CHARSET_SL);
! }
! 
! inline MString bf(const string& text) 
! {
!     return MString(text, (const char *)CHARSET_BF);
! }
! 
! inline MString bs(const string& text) 
! {
!     return MString(text, (const char *)CHARSET_BS);
! }
! 
  
  // Newline function
Index: ddd/logplayer.C
===================================================================
RCS file: /cvsroot/ddd/ddd/ddd/logplayer.C,v
retrieving revision 1.17
diff -c -2 -r1.17 logplayer.C
*** ddd/logplayer.C     2000/01/17 14:53:42     1.17
--- ddd/logplayer.C     2000/12/06 09:56:23
***************
*** 87,91 ****
--- 87,93 ----
  #endif
  
+ extern "C" {
  typedef void (*SignalProc)(SIGHANDLERARGS);
+ }
  
  static jmp_buf main_loop_env;



reply via email to

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