Bug 454842 - Linux process that loops in main hits an internal breakpoint always
Summary: Linux process that loops in main hits an internal breakpoint always
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Agent (show other bugs)
Version: 1.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.3   Edit
Assignee: Project Inbox CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-11 03:41 EST by xavier pouyollon CLA
Modified: 2015-06-16 03:17 EDT (History)
0 users

See Also:


Attachments
Test program / logs. (10.86 KB, application/gzip)
2014-12-11 03:41 EST, xavier pouyollon CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description xavier pouyollon CLA 2014-12-11 03:41:07 EST
Created attachment 249329 [details]
Test program / logs.

Hi,

Using kepler, latest open-source agent and the following Linux binary.

I launch the executable. I'm stopped in _start, resume again, I'm stopped in main, resume again I'm stopped in main and again and again.

Looks like the internal breakpoint set by agent to stop in main is not removed when hit.
Comment 1 Eugene Tarassov CLA 2015-03-03 16:21:58 EST
It is unwanted side effect of skipping function prologue in "main". I have changed the logic: instead of relocating breakpoint, the agent now uses stepping to skip prologue.
Fixed.
Thanks!