i386-gdb-stub compile error And rtems_shell _init error

Joel Sherrill joel.sherrill at OARcorp.com
Wed Jul 1 12:00:59 UTC 2009


lee wrote:
> Hi...
>
> Excuse all the questions all two of them... 
>
> 1.) When I try to start the rtems shell with: 
>
> rtems_shell_init("SHLL",RTEMS_MINIMUM_STACK_SIZE *
> 4,100,"/dev/console",0,1);
>
> the compiler gives me this warning:
>
> test.c:195: error: too few arguments to function 'rtems_shell_init'
>
> I've checked rtems/shell.h for the correct usage, and this is from a
> exact example again... not sure what the problem is... clearly compiling
> is using something else as rtems_shell_init or not?
>
>   
The calling sequence changed in the past few months on the
CVS head.  If you are looking at the telnetd example for the call,
you will need to update your tree.  testsuites/samples/fileio
also calls it.
> 2.) When I try to compile the gdb debugging example given in
> i386/shared/comm/GDB-HOWTO , the compiler gives me this error :
>
> opt/rtems-4.10/i386-rtems4.10/pc386/lib/librtemsbsp.a(i386-stub.o): In
> function `debug_error':
> /opt/rtems/c/src/lib/libbsp/i386/pc386/../../i386/shared/comm/i386-stub.c:575: undefined reference to `remote_debug'
> /opt/rtems-4.10/i386-rtems4.10/pc386/lib/librtemsbsp.a(i386-stub.o): In
> function `getpacket':
> /opt/rtems/c/src/lib/libbsp/i386/pc386/../../i386/shared/comm/i386-stub.c:504: undefined reference to `remote_debug'
> /opt/rtems/c/src/lib/libbsp/i386/pc386/../../i386/shared/comm/i386-stub.c:504: undefined reference to `remote_debug'
> /opt/rtems-4.10/i386-rtems4.10/pc386/lib/librtemsbsp.a(i386-stub.o): In
> function `handle_exception':
> /opt/rtems/c/src/lib/libbsp/i386/pc386/../../i386/shared/comm/i386-stub.c:758: undefined reference to `remote_debug'
> /opt/rtems/c/src/lib/libbsp/i386/pc386/../../i386/shared/comm/i386-stub.c:808: undefined reference to `remote_debug'
>
>   
extern int remote_debug;
/*  debug >  0 prints ill-formed commands in valid packets & checksum 
errors */

You will have to declare this in your program somewhere so
you can set the initial gdb protocol debug level.

> Im busy figuring out what this means... not having much luck... anyone
> got any ideas... "extern int remote_debug"?? what is the use for this
> variable....
>
>
> Kind Regards Much Love
> Lee
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>   
--joel



More information about the users mailing list