> > On 2/9/06, Jon Ringle <[EMAIL PROTECTED]> wrote:
> > Hi Greg,
> >
> >
> > Start your program like this:
> > [sbox-arm: ~] qemu -g 1234 program args...
> >
> > Then from another sbox session do:
> > [sbox-arm: ~] gdb program
> > (gdb) target remote localhost:1234
> >
> > Jon
>
> Thanks, that does get it to connect.  It doesn't load any symbols from the
> program,though.  The program was built with debugging symbols.  If I run
> gdb on it directly I can see them, but can't run the program, and if I run
> it with remote, I can run the program, but can't see any symbols.

Are you sure that the program was built with -g and that it wasn't stripped
afterwards?
$ file program

Jon

Here's what I'm doing:

 [sbox-arm: ~] > g++ -g test.cpp -o test
 [sbox-arm: ~] > qemu -g ./test

Then, in another terminal:

[sbox-arm: ~] > gdb
(gdb) target remote :1234
Remote debugging using :1234
0x40082d00 in ?? ()
(gdb) list
No symbol table is loaded.  Use the "file" command.
(gdb)

However, if I do:

[sbox-arm: ~] > gdb ./test
(gdb) list
1       #include <iostream>
2
3       int main( int argc, char ** argv)
4       {
5           std::cout << "Hello" << std::endl;
6           return 0;
7       }


_______________________________________________
Scratchbox-users mailing list
[email protected]
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to