* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
[not found] <20070903103005.07EAD98109@nan.false.org>
@ 2007-09-03 14:49 ` 'Daniel Jacobowitz'
2007-09-04 10:46 ` (Rising Spam Alert)Re: " xchen
` (29 more replies)
0 siblings, 30 replies; 31+ messages in thread
From: 'Daniel Jacobowitz' @ 2007-09-03 14:49 UTC (permalink / raw)
To: xchen; +Cc: gdb
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the library.
> Bad luck! New errors occured include Malformed packet(b) (missing colon)
> and Invalid remote reply when I continue to debug my peogram. Belowed is the
> snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/devkit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB,
too. This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (21 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (6 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (24 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (3 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (13 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (14 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (18 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (9 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (25 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (2 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
2007-09-04 10:46 ` (Rising Spam Alert)Re: " xchen
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (26 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (3 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (24 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (7 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (20 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (10 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (17 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (26 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (19 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (8 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (23 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (4 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (17 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (10 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (20 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (7 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (28 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (27 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (16 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (11 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (5 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (22 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
2007-09-04 10:46 ` (Rising Spam Alert)Re: " xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (27 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (4 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (23 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (2 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (25 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (12 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (15 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (11 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (16 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (8 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (19 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (28 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (9 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (18 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (6 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (21 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (15 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (12 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (14 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (13 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
` (22 preceding siblings ...)
2007-09-04 10:46 ` xchen
@ 2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
` (5 subsequent siblings)
29 siblings, 0 replies; 31+ messages in thread
From: xchen @ 2007-09-04 10:46 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
Huh! I set solib-absolute-prefix
/opt/montavista/pro/devkit/ppc/8xx/target and create /mnt/cf/shared/lib
under this path. All library can be loaded successfully. Thank you very
much. But there is another error when I debug the program. When the program
step to the system(), it hang and display "Detaching after fork from child
process 275."
(gdb) n
95 char bDhcpFail=0;
(gdb) n
100 if (g_profile->ipSetup.ucImode == MODE_STATIC)
(gdb) n
122 sprintf(cRdBuf, "dhcpcd -t 10");
(gdb) n
123 rc = system(cRdBuf);
(gdb) n
Detaching after fork from child process 275.
======================================
Waitting for a long time
=======================================
Remote communication error: No route to host.
I use x86 gdb debug the test program which include system call, it didn't
display "Detaching after fork from child process xxx".
8 printf("please show me\n");
(gdb) n
please show me
9 system("ls");
(gdb) n
hellogdb hellogdb.c makefile
10 return 0;
(gdb) n
11 }
Thx,
Xi
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
'Daniel Jacobowitz'
发送时间: 2007年9月3日 22:50
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: (Rising Spam Alert)Re: (Rising Spam Alert)Re:
wrong lib address
On Mon, Sep 03, 2007 at 06:30:58PM +0800, xchen wrote:
>
> Hi Daniel
>
> I have resolved this problem. I misunderstood the mean of
> solib-absolute-prefix. And now I use solib-search-path to load the
library.
> Bad luck! New errors occured include Malformed packet(b) (missing
> colon) and Invalid remote reply when I continue to debug my peogram.
> Belowed is the snapshot
>
> (gdb) set solib-absolute-prefix /root/
> (gdb) set solib-search-path
> /opt/montavista/pro/devkit/ppc/8xx/target/lib/:/opt/montavista/pro/dev
> kit/pp
> c/8xx/target/usr/lib/
No. Don't use solib-search-path for this.
Use:
set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target
> (gdb) n
> warning: Invalid remote reply: n8003
You are using MontaVista's gdbserver. You should be using their GDB, too.
This only works with both.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 31+ messages in thread
end of thread, other threads:[~2007-09-04 10:46 UTC | newest]
Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20070903103005.07EAD98109@nan.false.org>
2007-09-03 14:49 ` (Rising Spam Alert)Re: (Rising Spam Alert)Re: wrong lib address 'Daniel Jacobowitz'
2007-09-04 10:46 ` (Rising Spam Alert)Re: " xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
2007-09-04 10:46 ` xchen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox