This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

gdbserver error

I use codeblocks to build the sample code ( from /TrainingCourse/01_Initialization ), it runs ok in release mode, but when I remote-debug  the same code, there are error messages :

Debugger name and version: GNU gdb (Sourcery G++ Lite 2010q1-202) 7.0.50.20100218-cvs

Connected

In ?? () ()

Temporary breakpoint 2 at 0x8b24: file demo.cpp, line 151.

Error while mapping shared library sections:

Error while mapping shared library sections:

Error while mapping shared library sections:

Error while mapping shared library sections:

Error while mapping shared library sections:

Error while mapping shared library sections:

Error while mapping shared library sections:

Error while mapping shared library sections:

Error while mapping shared library sections:

Error while mapping shared library sections:

Error while mapping shared library sections:

Error while mapping shared library sections:

Error while mapping shared library sections:

At /home/sa/testPrj/amg1/demo.cpp:151

Error accessing memory address 0x0:

In ?? () (/lib/libc.so.6)

Debugger finished with status 0

 

Need help, thanks

 

  • Could you provide a few more details such as the build enviroment you are using, the source of the software and the board you are developing on.

  • Schuyler Patton said:

    Could you provide a few more details such as the build enviroment you are using, the source of the software and the board you are developing on.

    This problem had been solved (almost), thanks.

    After I copied lib files from …..toolchain/arm-none-linux-gnueabi/libc/lib to target nfs/lib, I can debug in codeblocks now. But this error message still showed:

    Error while mapping shared library sections: