* findvar.c (find_var_value): Handle &function better.
[deliverable/binutils-gdb.git] / gdb / TODO
index 93dce626fe0bcbd126443eafbd06b169999257b2..45b780f39f594b6f2723f4534ee024d571bca04b 100644 (file)
--- a/gdb/TODO
+++ b/gdb/TODO
@@ -316,9 +316,16 @@ struct with a field name that matches the superclass name.  This can
 happen when the struct was defined before the superclass (before the
 name became a typedef).
 
-For "float point[15];":
+Handling of "&" address-of operator needs some serious overhaul
+for ANSI C and consistency on arrays and functions.
+  For "float point[15];":
 ptype &point[4]   ==> Attempt to take address of non-lvalue.
 p     &point[4]   ==> Dereferences point[4] rather than giving you point+4.
+  For "char *malloc();":
+ptype malloc     ==> "char *()";  should be same as
+ptype &malloc     ==> "char *(*)()"
+call printf ("%x\n", malloc)   ==> wierd value, should be same as
+call printf ("%x\n", &malloc)  ==> correct value
 
 Fix symbol reading in the presence of interrupts.  It currently leaves a
 cleanup to blow away the entire symbol table when a QUIT occurs.
This page took 0.022365 seconds and 4 git commands to generate.