GDB 5.2 Line number out of range error

Derick Hammond derick at perkinstechnologies.com.au
Mon Mar 17 05:43:20 UTC 2003


Hello all:

I have recently started using the RTEMS v. 4.6.0pre1, and have spent a 
couple of days updating my tools, and bringing my Eval board BSP (M5206eC3) 
into the source tree.

However, when running:

     $m68k-bdm-rtems-gdb -x /opt/rtems/lib/gdbScripts/RTEMS5206.gdb hello.exe

and setting a break point on "bsp_cleanup" I get the following:

     Breakpoint 4 at 0x380aac: file 
../../../../../../../../../cvs_wa/rtems/c/src/lib/libbsp/m68k/m5206ec3/startup/bspclean.c, 
line 150.

Even though this file is actually only 38 lines long.

Then when I "continue" within gdb I get:

     Continuing.

     Breakpoint 4, bsp_cleanup () at 
../../../../../../../../../cvs_wa/rtems/c/src/lib/libbsp/m68k/m5206ec3/startup/bspclean.c, 
line 150.
     Line number 150 out of range; 
../../../../../../../../../cvs_wa/rtems/c/src/lib/libbsp/m68k/m5206ec3/startup/bspclean.c 
has 38 lines.

Does anyone with more experience with GDB know of any reason why this would 
be occurring?

I compiled the m68k-bdm-rtems-gdb from:

     source: gdb-5.2.tar.gz

     RTEMS patches: gdb-5.2-rtems-base-20030211.diff
                               gdb-5.2-rtems-cg-20030211.diff
                               gdb-5.2-rtems-rdbg-20030211.diff

     Cybertech patch: gdb-5.2.1.patch

Thanks in advance.

Regards,

Derick Hammond




More information about the users mailing list