Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] Remote debug problems

I tested with the program:

line 1 #include <stdio.h>
line 2 #include <string.h>
line 3
line 4 int main()
line 5 {
line 6    char string[20];
line 7
line 8    strcpy(string, "Hello World!");
line 9    printf("%s\n", string);
line10    return 0;
line11 }

set breakpoint at line 8
when execute debug the cursor stop at line 8, variable string display in variables tab at top-right corner ,when I press keyboard F5 to debug step by step, it suspended without display variable "string" in variables tab. why it suspended? when I move the mouse upon source code at "string" on line 8, the console tab has message:Stopped due to shared library event. I remote-debug with gdb and gdbserver ,it work well.



From: "Mikhail Khodjaiants" <mikhailk@xxxxxxx>
Reply-To: CDT Debug developers list <cdt-debug-dev@xxxxxxxxxxx>
To: "CDT Debug developers list" <cdt-debug-dev@xxxxxxxxxxx>
Subject: Re: [cdt-debug-dev] Remote debug problems
Date: Tue, 22 Nov 2005 10:53:04 -0500

Does the message affect your debugging? It's not an error, the CDT debugger uses some gdb commands to handle deferred breakpoints.

----- Original Message ----- From: "yang xiaoli" <alula418@xxxxxxxxxxx>
To: <cdt-debug-dev@xxxxxxxxxxx>
Sent: Tuesday, November 22, 2005 3:42 AM
Subject: [cdt-debug-dev] Remote debug problems


I build eclipse-3.1 from source and add cdt plugins, there is no problem

with x86-x86 remote debug use gdb and gdbserver and eclipse3.1 and
gdbserver. I have tested it.

When I remote debug x86-arm it has the message in console window below:
"Stopped due to shared library event"
If I did not debug step by step and run directly in debug mode ,the
gdbserver will display the string normally as I needed. How to set
shared
library for x86-arm remote debug? I set shared libraries in debug option
on
debug tab, but no difference.

debuger tab setting:
Debugger:GDB Server
Main tab:
GDB Debugger:/usr/local/arm-linux/bin/arm-linux-gdb
GDB command line:target remote 192.168.1.101:5000
Connection:TCP
HOST name or IP Address:192.168.1.101
Port number:5000

_________________________________________________________________
浜���ㄤ�����涓����澶х����靛�����浠剁郴缁���?MSN Hotmail��? http://www.hotmail.com

_______________________________________________
cdt-debug-dev mailing list
cdt-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev

_______________________________________________
cdt-debug-dev mailing list
cdt-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev

_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/


Back to the top