[uClinux-dev] problem of setjmp

lmc83 lmc83 at faraday.com.tw
Tue Mar 25 06:55:51 EST 2003


hi,
    When I want to run gdbserver:
        server.c
            printf("before setjmp\n");
            if (setjmp(toplevel))
            {
                ...
            }
            printf("after setjmp\n");

    the resule is:
        before setjmp
        pid 618: failed 11


    the distribution I use is uClinux-dist-20030305.tar.gz
    the uClibc/.config is:
        UCLIBC_HAS_FLOATS=y
        UCLIBC_HAS_SOFT_FLOAT=y

    the disassemble code of gdbserver is:
        00005050 <__sigsetjmp>:
               5050: e2800030  add r0, r0, #48 ; 0x30
               5054: e8806ff0  stmia r0, {r4, r5, r6, r7, r8, r9, r10, r11, sp, lr}
               5058: e2400030  sub r0, r0, #48 ; 0x30
               505c: ea000004  b 5074 <__sigjmp_save>
        
    What's the possible reason will cause setjmp() to be broken?

    Thanks in advance for your help.

    Liang Ming-Chung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20030325/287c6c08/attachment.html>


More information about the uClinux-dev mailing list