bug-glibc
[Top][All Lists]
Advanced

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

Re: some questions about the complex datatype


From: Andreas Jaeger
Subject: Re: some questions about the complex datatype
Date: Fri, 18 Jan 2002 11:11:37 +0100
User-agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux)

Peter Jay Salzman <address@hidden> writes:

> andreas, just to be clear:
>
> begin Andreas Jaeger <address@hidden> 
>> Peter Jay Salzman <address@hidden> writes:
>> 
>> > how can i get gdb to print out the value of a long double complex?  i
>> > tried everything that was obvious to me.  for a long double complex a:
>> 
>> Create your own subroutine and call it.  
>
> debugging by printing values?  no way to view it in gdb?   (i never
> heard of subroutines in gdb).

You can call your own subroutines from gdb. 

Do something like:
printf ("%f + i %f", __real__ a, __imag__ a);

> lastly, are there any future plans to have complex support for I/O
> functions like printf() and scanf()?

No.  Those should be standarized first.  But for glibc you can add
your own printf extensions, read the manual.


> having a native complex datatype is very exciting for me.  it was one of
> the few reasons i was writing code in fortran and c++.


Andreas
-- 
 Andreas Jaeger
  SuSE Labs address@hidden
   private address@hidden
    http://www.suse.de/~aj



reply via email to

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