LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-17-2004, 10:46 PM   #1
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
gdb steps BACKWARDS!!!


hi,
it's been driving me nuts: i press "n" (next) or "s" (step), gdb steps back up to some lines above the line it's at. and sometimes, it does this a couple of times before really stepping forward. it's like it's going through a loop. i've heard about a "bs" (backstep) command, but i'm sure i'm pressing "n."
for example, take this snippet:

somestruct->a = b ; // line 1
function(somestruct); // line 2

say, i'm at line 1 -> press "n" -> i'm at line 2 -> press "n" -> i'm back at line 1...
well, it's being behaving this way a couple of weeks. i guess i didn't mind.
but now, when it goes back up to line 1, it corrupts somestruct->a.

please. what's going on? i'm being driven nuts, insane, mad....
thanks.
 
Old 08-18-2004, 08:51 PM   #2
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
i've read about compiling with optimization would cause this behavior. so i modified all the Makefiles, taking out all the "-O2" in the CC commands, but it still doesn't fix the problem.
 
Old 08-20-2004, 03:30 AM   #3
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
bump
 
Old 01-12-2017, 09:40 PM   #4
lindsayad
LQ Newbie
 
Registered: Jan 2017
Posts: 3

Rep: Reputation: Disabled
I feel your pain rgiggs. I have a very large library compiled without any optimizations and often observe backward stepping myself. I've never been able to find any satisfactory answers while googling...and it's been twelve years since you posted this.
 
Old 01-12-2017, 09:43 PM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
and why would you need to bump this old thread again?
 
Old 01-12-2017, 09:53 PM   #6
lindsayad
LQ Newbie
 
Registered: Jan 2017
Posts: 3

Rep: Reputation: Disabled
In the simple hope of getting a constructive response
 
Old 01-13-2017, 01:21 AM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by lindsayad View Post
In the simple hope of getting a constructive response
For whom? The original poster didn't show since 06-02-11 17:48 according to this page.

If you want a constructive (and up to date) response, better open a new thread.

Also, I think that this question would be better addressed upstream. Maybe that's why it was never answered here.
 
Old 01-13-2017, 02:04 AM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by lindsayad View Post
In the simple hope of getting a constructive response
A constructive response depends on a well framed question, which seems lacking in this case.

If you are looking for a solution to your own problem you are always encouraged to open your own thread with a clear description of your own difficulty, preferably with a simple and reproducible test example. That will give your question the best exposure to active members with current applicable knowledge.

Please see the Site FAQs, and in particular this page for guidance in asking your questions to receive the most constructive response.

And welcome to LQ!
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Time goes backwards DoubleLetter Linux - General 6 11-02-2007 05:38 PM
normal gdb and spec gdb for kgdb Igor007 Programming 1 09-23-2005 04:15 PM
normal gdb and spec gdb for kgdb Igor007 Linux - Newbie 1 09-23-2005 01:41 PM
gdb .. looking for 32 bit gdb.. for ia64 suse.. nkshirsagar SUSE / openSUSE 0 12-09-2004 03:02 AM
one step ahead...two steps backwards dbear Linux - Newbie 1 07-07-2003 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration