public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: "赵 民栋" <foolfox008@hotmail.com>
To: insight@sources.redhat.com
Subject: anybody?help!!
Date: Mon, 02 Dec 2002 17:41:00 -0000	[thread overview]
Message-ID: <F151gHLeeytlTgy9yTa00022ff9@hotmail.com> (raw)

[-- 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 

             reply	other threads:[~2002-12-03  1:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-02 17:41 赵 民栋 [this message]
2002-12-03 12:24 ` anybody?help!! Keith Seitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F151gHLeeytlTgy9yTa00022ff9@hotmail.com \
    --to=foolfox008@hotmail.com \
    --cc=insight@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).