[Ecls-list] Critical change

Yaroslav Kavenchuk kavenchuk at gmail.com
Mon Jan 22 07:33:22 UTC 2007


Juan Jose Garcia-Ripoll wrote:
> 2007/1/19, Yaroslav Kavenchuk <kavenchuk at jenty.by>:
>  > $ gdb --args ./ecl_min compile [...]]
>  > #4  0x00403664 in CEpackage_error (
>  >      message=0x47c504 "The symbol ~S is not accessible from ~S and
>  > cannot be exported.",
>  >      continue_message=0x47c4d4 "Import the symbol in the package and
>  > proceed.",
>  >      package=0xb34fc8, narg=2) at 
> C:/gnu/home/src/ecl/ecl/src/c/package.d:56
>  > #5  0x0040458e in cl_export2 (s=0x46d000, p=0xb34fc8)
>  >      at C:/gnu/home/src/ecl/ecl/src/c/package.d:470
>  > #6  0x0040247e in cl_boot (argc=2, argv=0x3f2630)
>  >      at C:/gnu/home/src/ecl/ecl/src/c/main.d:249
>  > #7  0x0040158b in main (argc=2, args=0x3f2630)
>  >      at C:/gnu/home/src/ecl/ecl/src/c/cinit.d:99
>  > (gdb)
>  >
>  > How debug it?
> 
> Well, you can go up to #5 and type
>     call cl_print(1,s)
>     call cl_print(1,p)
> This should output the name of the offending symbol and of the package
> where it is not found. If it turns out to be just a typo, it can be
> fixed.


(gdb) up 5
#5  0x0040458e in cl_export2 (s=0x46d000, p=0xb34fc8)
     at C:/gnu/home/src/ecl/ecl/src/c/package.d:470
470                     CEpackage_error("The symbol ~S is not accessible 
from ~S and cannot be exported.",
(gdb) call cl_print(1,s)

Breakpoint 8, FEinvalid_function (obj=0x473ea0)
     at C:/gnu/home/src/ecl/ecl/src/c/error.d:194
194             FEwrong_type_argument(@'function', obj);
The program being debugged stopped while in a function called from GDB.
When the function (cl_print) is done executing, GDB will silently
stop (instead of continuing to evaluate the expression containing
the function call).


The same result is for `call cl_print(1,p)`

Thanks!

-- 
WBR, Yaroslav Kavenchuk.




More information about the ecl-devel mailing list