C/C++
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives FAQs C/C++

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 6th, 2008, 06:00 AM
Ron Ford
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
target exec, gdb, gfortran


I thought I would ask a question that is decidedly non-political, although
I will admit that a frenchman made my fourth. As well as infinite
cheeseburgers, and, of course, jenny.

When I believe to be issuing commands to dos that will step me through gdb,
I receive counter-communication that talks of target exec.

What do I need to do to not read of "target exec" and step through?

Dankenstein,
--
Nevertheless, it is even harder for the average ape to believe that he has
descended from man.
H. L. Mencken

Reply With Quote
  #2  
Old July 6th, 2008, 06:00 AM
Antoninus Twink
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
target exec, gdb, gfortran

6 Jul 2008 at 6:16, Ron Ford wrote:
When I believe to be issuing commands to dos that will step me through gdb,
I receive counter-communication that talks of target exec.

What exactly does the error message say?

What do I need to do to not read of "target exec" and step through?

What are you doing at the moment? Try something like

gdb ./myprog
[snip guff]
(gdb) b main
Breakpoint 1 at [wherever]
(gdb) r

Then use step/next/etc.


Reply With Quote
  #3  
Old July 6th, 2008, 06:00 AM
Ron Ford
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
target exec, gdb, gfortran

Sun, 6 Jul 2008 07:35:34 +0000 (UTC), Antoninus Twink posted:

(gdb) b main

I hang with gdb( foo) >text42.txt . Frenchman must be at fualt.
--
Wealth - any income that is at least one hundred dollars more a year than
the income of one's wife's sister's husband.
H. L. Mencken

Reply With Quote
  #4  
Old July 7th, 2008, 08:00 PM
santosh
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
target exec, gdb, gfortran

Ron Ford wrote:

<snip>

Since gdb is bigger than just one syntax, is there an ng where they
talk about it more thoroughly?

gnu.gdb and gnu.gdb.bug.


Reply With Quote
  #5  
Old July 7th, 2008, 08:00 PM
Ron Ford
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
target exec, gdb, gfortran

Sun, 6 Jul 2008 07:35:34 +0000 (UTC), Antoninus Twink posted:

6 Jul 2008 at 6:16, Ron Ford wrote:
>When I believe to be issuing commands to dos that will step me through gdb,
>I receive counter-communication that talks of target exec.
>

What exactly does the error message say?
>
>What do I need to do to not read of "target exec" and step through?
>

What are you doing at the moment? Try something like
>

gdb ./myprog
[snip guff]
(gdb) b main
Breakpoint 1 at [wherever]
(gdb) r
>

Then use step/next/etc.

Thanks for the tips, Anton. I was doing a lot of things wrong
simultaneously. I can step through it now, but the only information it
tells me is what line I'm on and that I'm in fmain.c . The source is in
fortran, and I misposted to clc.

Since gdb is bigger than just one syntax, is there an ng where they talk
about it more thoroughly?
--
All men are frauds. The only difference between them is that some admit it.
I myself deny it.
H. L. Mencken

Reply With Quote
  #6  
Old July 8th, 2008, 02:19 PM
Antoninus Twink
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
target exec, gdb, gfortran

8 Jul 2008 at 0:37, Ron Ford wrote:
Thanks for the tips, Anton. I was doing a lot of things wrong
simultaneously. I can step through it now, but the only information it
tells me is what line I'm on and that I'm in fmain.c . The source is in
fortran, and I misposted to clc.

It may be that you haven't included debugging symbols in your executable
- try investigating compilation options (e.g. -g).

Since gdb is bigger than just one syntax, is there an ng where they talk
about it more thoroughly?

I'd recommend here if you're debugging C code, or comp.lang.fortran if
you're debugging Fortran.


Reply With Quote
Reply

Viewing: Web Development Archives FAQs C/C++ > target exec, gdb, gfortran


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT