This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/1591: [Don't know how to run. Try "help target".] Error


>Number:         1591
>Category:       gdb
>Synopsis:       [Don't know how to run.  Try "help target".] Error
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 22 23:38:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     supae@cs.arizona.edu
>Release:        gdb-6.0
>Organization:
>Environment:
Compaq Tru64 UNIX V5.1A
>Description:
When I try to run gdb to debug ANY program, this message comes:-

Starting program: /db/smaitra/work/data/Zenrin_Buildings/a.out 
Don't know how to run.  Try "help target".

For example, I have a program 1.c:

#include<stdio.h>
main(){
      printf("hello world\n");
}

And I do these sequence of commands:-
bash$
bash$
bash$
bash$ cc -g 1.c
bash$
bash$
bash$
bash$ gdb a.out
GNU gdb 6.0
Copyright 2003 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 "alphaev68-dec-osf5.1"...
(gdb) r
Starting program: /db/smaitra/work/data/Zenrin_Buildings/a.out 
Don't know how to run.  Try "help target".
(gdb) q
bash$
bash$
bash$
bash$

I checked the documentation but couldn't find a way to make it work! Should I try the earlier versions of gdb ? Please suggest.
>How-To-Repeat:
file 1.c:-

#include<stdio.h>
main(){
      printf("hello world\n");
}

On command prompt:-
bash$
bash$
bash$
bash$ cc -g 1.c
bash$
bash$
bash$
bash$ gdb a.out
GNU gdb 6.0
Copyright 2003 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 "alphaev68-dec-osf5.1"...
(gdb) r
Starting program: /db/smaitra/work/data/Zenrin_Buildings/a.out 
Don't know how to run.  Try "help target".
(gdb) q
bash$
bash$
bash$
bash$
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]