Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* RE: Problem using gdbserver
@ 2003-08-29  8:22 Niu Liang-yong-A16450
  2003-08-29  9:43 ` Satheesha.T.N
  0 siblings, 1 reply; 6+ messages in thread
From: Niu Liang-yong-A16450 @ 2003-08-29  8:22 UTC (permalink / raw)
  To: Balarama Krishna; +Cc: gdb

gdb@sources.redhat.com


I can debug is on Linux pc,  the issue ocurres on solaris

BR

-----Original Message-----
From: Balarama Krishna [mailto:balaram@samsung.com]
Sent: 2003年8月28日 19:04
To: Niu Liang-yong-A16450
Subject: Re: Problem using gdbserver


> When I want to debug a file, but things happen:
>
> GNU gdb 5.0
> Copyright 2000 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
are
> welcome to change it and/or distribute copies of it under certain
conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
details.
> This GDB was configured as "sparc-sun-solaris2.7".
> (gdb) file filegen
> Reading symbols from filegen...done.
> (gdb) run
> Starting program: /home/a16450/filegen/filegen
> chdir: Too many arguments.
>
> Program exited with code 01.
> You can't do that without a process to debug.
>
>

The problem may be with the application, as "chdir" failed, not with the
gdb.

Regards,
Balaram.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem using gdbserver
  2003-08-29  8:22 Problem using gdbserver Niu Liang-yong-A16450
@ 2003-08-29  9:43 ` Satheesha.T.N
  2003-08-29 13:55   ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Satheesha.T.N @ 2003-08-29  9:43 UTC (permalink / raw)
  To: Niu Liang-yong-A16450, Balarama Krishna; +Cc: gdb

[-- Attachment #1: Type: text/plain, Size: 2011 bytes --]

Hi Friends
  Can u tell me how to build gdbserver for solaris2.8 using gdb5.3

regards
Satheesha

----- Original Message -----
From: "Niu Liang-yong-A16450" <A16450@motorola.com>
To: "Balarama Krishna" <balaram@samsung.com>
Cc: <gdb@sources.redhat.com>
Sent: Friday, August 29, 2003 1:52 PM
Subject: RE: Problem using gdbserver


gdb@sources.redhat.com


I can debug is on Linux pc,  the issue ocurres on solaris

BR

-----Original Message-----
From: Balarama Krishna [mailto:balaram@samsung.com]
Sent: 2003年8月28日 19:04
To: Niu Liang-yong-A16450
Subject: Re: Problem using gdbserver


> When I want to debug a file, but things happen:
>
> GNU gdb 5.0
> Copyright 2000 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
are
> welcome to change it and/or distribute copies of it under certain
conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
details.
> This GDB was configured as "sparc-sun-solaris2.7".
> (gdb) file filegen
> Reading symbols from filegen...done.
> (gdb) run
> Starting program: /home/a16450/filegen/filegen
> chdir: Too many arguments.
>
> Program exited with code 01.
> You can't do that without a process to debug.
>
>

The problem may be with the application, as "chdir" failed, not with the
gdb.

Regards,
Balaram.


********************************DISCLAIMER**********************************

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege of Deccanet Designs Ltd.
If you have received this message in error, please notify the originator
immediately. If you are not the intended recipient, you are notified that
you are strictly prohibited from retaining, using, copying, altering or
disclosing the contents of this message.

****************************************************************************

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem using gdbserver
  2003-08-29  9:43 ` Satheesha.T.N
@ 2003-08-29 13:55   ` Daniel Jacobowitz
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2003-08-29 13:55 UTC (permalink / raw)
  To: Satheesha.T.N; +Cc: Niu Liang-yong-A16450, Balarama Krishna, gdb

On Fri, Aug 29, 2003 at 03:15:45PM +0530, Satheesha.T.N wrote:
> Hi Friends
>   Can u tell me how to build gdbserver for solaris2.8 using gdb5.3

Gdbserver does not support Solaris.

> 
> regards
> Satheesha
> 
> ----- Original Message -----
> From: "Niu Liang-yong-A16450" <A16450@motorola.com>
> To: "Balarama Krishna" <balaram@samsung.com>
> Cc: <gdb@sources.redhat.com>
> Sent: Friday, August 29, 2003 1:52 PM
> Subject: RE: Problem using gdbserver
> 
> 
> gdb@sources.redhat.com
> 
> 
> I can debug is on Linux pc,  the issue ocurres on solaris
> 
> BR
> 
> -----Original Message-----
> From: Balarama Krishna [mailto:balaram@samsung.com]
> Sent: 2003???8???28??? 19:04
> To: Niu Liang-yong-A16450
> Subject: Re: Problem using gdbserver
> 
> 
> > When I want to debug a file, but things happen:
> >
> > GNU gdb 5.0
> > Copyright 2000 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public License, and you
> are
> > welcome to change it and/or distribute copies of it under certain
> conditions.
> > Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB.  Type "show warranty" for
> details.
> > This GDB was configured as "sparc-sun-solaris2.7".
> > (gdb) file filegen
> > Reading symbols from filegen...done.
> > (gdb) run
> > Starting program: /home/a16450/filegen/filegen
> > chdir: Too many arguments.
> >
> > Program exited with code 01.
> > You can't do that without a process to debug.
> >
> >
> 
> The problem may be with the application, as "chdir" failed, not with the
> gdb.
> 
> Regards,
> Balaram.
> 
> 
> ********************************DISCLAIMER**********************************
> 
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege of Deccanet Designs Ltd.
> If you have received this message in error, please notify the originator
> immediately. If you are not the intended recipient, you are notified that
> you are strictly prohibited from retaining, using, copying, altering or
> disclosing the contents of this message.
> 
> ****************************************************************************

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Problem using gdbserver
@ 2003-08-28 11:00 Niu Liang-yong-A16450
  0 siblings, 0 replies; 6+ messages in thread
From: Niu Liang-yong-A16450 @ 2003-08-28 11:00 UTC (permalink / raw)
  To: gdb

When I want to debug a file, but things happen:

GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.7".
(gdb) file filegen
Reading symbols from filegen...done.
(gdb) run
Starting program: /home/a16450/filegen/filegen 
chdir: Too many arguments.

Program exited with code 01.
You can't do that without a process to debug.


I need your help

BR
NiuEric


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem using gdbserver
  2003-08-28  6:58   ` Problem using gdbserver Balarama Krishna
@ 2003-08-28 10:51     ` Balarama Krishna
  0 siblings, 0 replies; 6+ messages in thread
From: Balarama Krishna @ 2003-08-28 10:51 UTC (permalink / raw)
  To: gdb

The problem is solved by using the command "(gdb) file <executable-name>"
instead of "(gdb) symbol-file <executable-name>" and by interchanging the
order of execution of this command and "(gdb) target remote
107.108.3.197:2020"

> Hi,
>
> The set up for GDB as remote debugger (target=arm-linux, host=i386) is
> successful.
> The following is my sample test program "test.c"
> /******************************************************/
> #include <stdio.h>
> int main()
> {
>         int i;
>         printf("Hello World \n");
>         for(i=0; i<3; i++)
>                 printf("Checking counter %d \n", i);
>         return 0;
> }
> /***************************************************/
>
> I compiled the above program using arm-linux-gcc with -g option and kept
in
> the target.
> These are the following snap shots while debugging this program
>
> /********************************* TARGET*********************** *****/
> [root@Linux /mnt]$./gdbserver 107.108.3.197:2020 test
> Process test created; pid = 227
> Remote debugging from host 107.108.4.244
> Hellotest (227): undefined instruction: pc=02000354
> Code: e59f003c ebffffc8 (e7ffdefe) e50b3010 e51b3010
>  World
> test (227): undefined instruction: pc=02000358
> Code: ebffffc8 e3a03000 (e7ffdefe) e51b3010 e3530002
>
> Child terminated with signal = 4
>
> Child terminated with signal = 0x4
> GDBserver exiting
> [root@Linux /mnt]$
>
> /**** ******************************HOST********************* ******/
> (gdb) target remote 107.108.3.197:2020
> Remote debugging using 107.108.3.197:2020
> 0x40002560 in ?? ()
> (gdb) symbol-file test
> Reading symbols from test...done.
> (gdb) list
> 1       #include <stdio.h>
> 2
> 3       int main()
> 4       {
> 5
> 6               int i;
> 7
> 8               printf("Hello World \n");
> 9
> 10
> (gdb) list
> 11              for(i=0; i<3; i++)
> 12                      printf("Checking counter %d \n", i);
> 13
> 14              return 0;
> 15      }
> 16
> (gdb) break 11
> Breakpoint 1 at 0x2000354: file test.c, line 11.
> (gdb) cont
> Continuing.
>
> Breakpoint 1, main () at test.c:11
> 11              for(i=0; i<3; i++)
> (gdb) n
>
> Program received signal SIGILL, Illegal instruction.
> 0x02000358 in main () at test.c:11
> 11              for(i=0; i<3; i++)
> (gdb) n
>
> Program terminated with signal SIGILL, Illegal instruction.
> The program no longer exists.
> (gdb)
>
>
/***************************************************************************
> ******/
>
> I don't know why things are going wrong. Am I missing some thing?? One can
> observe that "Hello World" is printed seperately on the Target. Any kind
of
> help is appreciated in this regard.
>
> Thanks & Regards,
> Balaram.
>
>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Problem using gdbserver
  2003-08-26 14:17 ` Daniel Jacobowitz
@ 2003-08-28  6:58   ` Balarama Krishna
  2003-08-28 10:51     ` Balarama Krishna
  0 siblings, 1 reply; 6+ messages in thread
From: Balarama Krishna @ 2003-08-28  6:58 UTC (permalink / raw)
  To: gdb

Hi,

The set up for GDB as remote debugger (target=arm-linux, host=i386) is
successful.
The following is my sample test program "test.c"
/******************************************************/
#include <stdio.h>
int main()
{
        int i;
        printf("Hello World \n");
        for(i=0; i<3; i++)
                printf("Checking counter %d \n", i);
        return 0;
}
/***************************************************/

I compiled the above program using arm-linux-gcc with -g option and kept in
the target.
These are the following snap shots while debugging this program

/********************************* TARGET*********************** *****/
[root@Linux /mnt]$./gdbserver 107.108.3.197:2020 test
Process test created; pid = 227
Remote debugging from host 107.108.4.244
Hellotest (227): undefined instruction: pc=02000354
Code: e59f003c ebffffc8 (e7ffdefe) e50b3010 e51b3010
 World
test (227): undefined instruction: pc=02000358
Code: ebffffc8 e3a03000 (e7ffdefe) e51b3010 e3530002

Child terminated with signal = 4

Child terminated with signal = 0x4
GDBserver exiting
[root@Linux /mnt]$

/**** ******************************HOST********************* ******/
(gdb) target remote 107.108.3.197:2020
Remote debugging using 107.108.3.197:2020
0x40002560 in ?? ()
(gdb) symbol-file test
Reading symbols from test...done.
(gdb) list
1       #include <stdio.h>
2
3       int main()
4       {
5
6               int i;
7
8               printf("Hello World \n");
9
10
(gdb) list
11              for(i=0; i<3; i++)
12                      printf("Checking counter %d \n", i);
13
14              return 0;
15      }
16
(gdb) break 11
Breakpoint 1 at 0x2000354: file test.c, line 11.
(gdb) cont
Continuing.

Breakpoint 1, main () at test.c:11
11              for(i=0; i<3; i++)
(gdb) n

Program received signal SIGILL, Illegal instruction.
0x02000358 in main () at test.c:11
11              for(i=0; i<3; i++)
(gdb) n

Program terminated with signal SIGILL, Illegal instruction.
The program no longer exists.
(gdb)

/***************************************************************************
******/

I don't know why things are going wrong. Am I missing some thing?? One can
observe that "Hello World" is printed seperately on the Target. Any kind of
help is appreciated in this regard.

Thanks & Regards,
Balaram.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-08-29 13:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-29  8:22 Problem using gdbserver Niu Liang-yong-A16450
2003-08-29  9:43 ` Satheesha.T.N
2003-08-29 13:55   ` Daniel Jacobowitz
  -- strict thread matches above, loose matches on Subject: below --
2003-08-28 11:00 Niu Liang-yong-A16450
2003-08-26 14:14 Help Needed: set up GDB Remote Debugger (arm-linux) Balarama Krishna
2003-08-26 14:17 ` Daniel Jacobowitz
2003-08-28  6:58   ` Problem using gdbserver Balarama Krishna
2003-08-28 10:51     ` Balarama Krishna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox