Debug How to

Joe Samuel sjoe2 at yahoo.com
Wed Nov 20 08:30:01 UTC 2002


Thank you all for the support. I've fixed the problem
with remote GDB. It seems that a call to
rtems_task_wake_after(30) hangs my system for ever(?).
Once I removed that from the GDB initialization part,
everything works fine.
   Now another one, is it necessary to make a DEBUG
variant while making the executive, for better
debugging support? I assumed so and did make the bsp
with VARIANT=DEBUG. Everything went fine. But when I
tried to make my executive with the VARIANT=DEBUG
option, make returned an error, no rule to make target
/opt/rtems/i386-rtems/pc386/lib/start_g.o. I examined
the location, there exists start.o but no start_g.o.
Is this because of some problem related to the BSP
installation? Btw, I'm using ss-20021111.
thank you,
Joe



 --- Camilo Alejandro Arboleda
<CamiloAlejo at netscape.net> wrote: 
<HR>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
Did you set a breakpoint?  You cannot connect to
gdb server if your target
is running.<br>
<br>
I don't have RTEMS installed in my machine now but, as
far as I remember,
gdb initailization for i386 is something like:<br>
<br>
    comm_init(com_port);<br>
    GDB_Init(com_port);<br>
    breakpoint(); // generates int
3<br>
<br>
If you have a console (monitor) you should see a
message like<br>
        Waiting for
remote gdb connection....<br>
<br>
look at gdb_stub.c for the actual names of the
functions.<br>
<br>
Joe Samuel wrote:<br>
<blockquote type="cite" 
cite="mid20021119161608.59437.qmail at web40709.mail.yahoo.com">
  <pre wrap="">I also agree that Eric Norum's mail was
more than
helpful to me, but still I'm got stuck somewhere. The
remote debugger stub prints out messages to indicate
that it has been started on COM2. But when I tried to
connect to it from my Linux host, nothing works.
I used
#i386-rtems-gdb -b 38400

  >target remote /dev/ttyS1

Then GDB just keeps mum. When I press cntrl+c it says
could not connect to remote target. 
  I ensured the physical link using miniterm. What
should be wrong with gdb? Can anyone help out?
thanks
Joe
  </pre>
</blockquote>
<br>
</body>
</html>
 

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com



More information about the users mailing list