This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: V850E simulator, assembler single-step never returns?!?


Hi,

i just single-stepped in the console (si).  It shows the same result
plus:
The last line in the console i see is:
[not visible]../../../../newlib-1.14.0/newlib/libc/stdlib/mlock.c:51
I attached the part from mlock.c below with line 51 marked.
Though i don't think it can be related to that, as in the assembler
this line just results to "jmp [lp]", also when i look at it in
gdb console with "l *0x11f4".

I made a screenshot of the whole thing (128k).  Is it of any help if i
send it to anybody?

Please note that i'm not sure if code generation for the target
is perfect.  But i'm sure that i did not apply any changes to
insight.  I configured in a bash script:

function do_gdb ( ) {
    mkdir -p gdb
    cd gdb
    rm -rf *
    ../../insight-6.4/configure \
    --target=v850-unknown-elf \
    --prefix=/opt/v850e \
    --with-newlib \
    --enable-sim \
    --disable-nls
#    make all-sim
#    make install    
    cd ..
}

regarding the combination of "make" i'm not really sure, i only
compiled and installed the simulator.

I directly posted to the gdb list because i think this is
related to the underlying gdb/simulator.

Would it be of any help if i supply the ELF file to anybody?


Best regards,
Torsten.

FILE mlock.c
void
__malloc_lock (ptr)
     struct _reent *ptr;
{
#ifndef __SINGLE_THREAD__
  __lock_acquire_recursive (__malloc_lock_object); // line 51
#endif
}



> Daniel Jacobowitz wrote:
> > Have you considered reporting problems with Insight to the Insight
> > list?
>
> Better yet, try opening a console and stepping manually (or use
> v850-elf-gdb). At least then you'll know that it is or is not a problem
> with insight vs gdb.
>
> Keith


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]