[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-debug-dev] Debugging an external program
|
I don't see a problem here. When debugger attaches to a running process it
interrupts the execution of the process. In your case it happens inside the
'printf' function. You cannot step in this code because there is no symbol
information. Just set a breakpoint wherever you want and resume the
execution.
Mikhail Khodjaiants
----- Original Message -----
From: "Cleber Miranda Barboza" <cleberc@xxxxxxxxxxxxxxxx>
To: <cdt-debug-dev@xxxxxxxxxxx>
Sent: Friday, August 15, 2003 5:42 PM
Subject: [cdt-debug-dev] Debugging an external program
> Hi,
>
> I' trying to debug a external program from eclipse with cdt-debug ( I'm
using the "Attach to running process" option in debug mode).
> But the Debug View has showed me the follow stack:
>
> Thread [0] (Suspended)
> 9 <symbol not available>
> 8 new_do_write()
> 7 _IO_new_do_write()
> 6 _IO_new_file_overflow()
> 5 _IO_new_file_xsputn()
> 4 vfprintf()
> 3 printf()
> 2 main() at main.c:5
> 1 __libc_start_main()
>
>
> So, when clicked in Step Over button, eclipse's showed me the follow
messages:
>
> "The execution of program is suspended because of error.
> Cannot find bounds of current function"
>
>
> Anyone can help me with that ?
>
> Thanks !
>
>
> PS: When I debug my program within eclipse, everything works.
>
>
>
> --
> Cleber Miranda Barboza.
> I'm a Computer Science student at University of São Paulo (USP).
>
> email: cleberc@xxxxxxxxxxxxxxxx
> home page: http://www.linux.ime.usp.br/~cleberc
>
> _______________________________________________
> cdt-debug-dev mailing list
> cdt-debug-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
>
>