public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* anybody?help!!
@ 2002-12-02 17:41 赵 民栋
  2002-12-03 12:24 ` anybody?help!! Keith Seitz
  0 siblings, 1 reply; 2+ messages in thread
From: 赵 民栋 @ 2002-12-02 17:41 UTC (permalink / raw)
  To: insight

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 1278 bytes --]

my os win2000,cygwin...
it puzzled me many days and i don't know how to solve it....anybody can 
help me?thanks,thanks,thansk a lot....
when i use my insight for M.Core....every time when i debug a simple 
example the program exit...just do like this i think you might get the 
problem...
gcc-mcore -g file.c -o file.o
and then open the file.o in insight using GUI mode.....set breakpoint at 
line 11,and the connect object target--sim,and run,then next.....the 
program exit,yes?
the example:
void my_print(char * string);
void my_print2(char * string);
#include <stdio.h>
main ()
{
char my_string[] = "God save me!";
my_print (my_string);
my_print2 (my_string);
}
void my_print (char *string)
{               /*line 11 the problem happens*/
printf ("The string is %s\n", string);}
void my_print2 (char *string)
{
char *string2;
int size, i;
size = strlen (string);
string2 = (char *) malloc (size + 1);
for (i = 0; i < size; i++)
string2[size - i] = string[i];
string2[size+1] = '\0';
printf ("The string printed backward is %s\n", string2);
}
how does this happen???thanks again....expect your reply....




_________________________________________________________________
ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.com 

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

* Re: anybody?help!!
  2002-12-02 17:41 anybody?help!! 赵 民栋
@ 2002-12-03 12:24 ` Keith Seitz
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2002-12-03 12:24 UTC (permalink / raw)
  To: 赵 民栋; +Cc: insight

On Tue, 3 Dec 2002, [gb2312] ÕÔ Ãñ¶° wrote:

> gcc-mcore -g file.c -o file.o
> and then open the file.o in insight using GUI mode.....set breakpoint at 
> line 11,and the connect object target--sim,and run,then next.....the 
> program exit,yes?

Nope. Mine doesn't. What is the output of gdb -v (or insight -v) and gcc 
-v?

Keith


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

end of thread, other threads:[~2002-12-03 20:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-02 17:41 anybody?help!! 赵 民栋
2002-12-03 12:24 ` anybody?help!! Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).