MantisBT - Ecere SDK
View Issue Details
0000938Ecere SDKide:debuggerpublic2013-06-12 23:292013-08-09 10:53
redj 
redj 
lowminoralways
closedfixed 
0.44.07 
0.44.080.44.08 
0000938: gdb doesn't hit on a breakpoint in the beginning of main in x.main.ec when a bp is placed inside __ecere_COM_Initialize
bp in instance.c hits and prevents bp in main (x.main.ec) from hitting.

old summary:
suspect user breakpoints are ignored if placed at same location as internal breakpoints


bp on
__thisModule = __currentModule = module = __ecere_COM_Initialize(1, _argc, (void *)_argv);

in .main.ec file will be ignored


same thing for
__ecereRegisterModule_ecp(module);
No tags attached.
related to 0000332closed  Debugger Breakpoints Jammed (Initial Step over...) 
related to 0000986closed redj More troubles with initial internal breakpoints 
Issue History
2013-06-12 23:29redjNew Issue
2013-06-12 23:35redjDescription Updated
2013-06-12 23:36redjStatusnew => assigned
2013-06-12 23:36redjAssigned To => redj
2013-06-17 20:00redjNote Added: 0000902
2013-06-17 20:00redjPrioritynormal => low
2013-06-17 20:00redjTarget Version0.44.10 64 => 0.44.50 Debug
2013-06-17 20:00redjNote Edited: 0000902
2013-06-17 20:01redjAssigned Toredj =>
2013-06-17 20:04redjNote Edited: 0000902
2013-06-17 20:06redjSummarysuspect user breakpoints are ignored if placed at same location as internal breakpoints => gdb doesn't hit on a breakpoint in the beginning of main in x.main.ec when a bp is placed inside __ecere_COM_Initialize
2013-06-17 20:06redjDescription Updated
2013-06-18 01:03redjStatusassigned => resolved
2013-06-18 01:03redjFixed in Version => 0.44.10 64
2013-06-18 01:03redjResolutionopen => fixed
2013-06-18 01:03redjAssigned To => redj
2013-06-18 01:03redjNote Added: 0000908
2013-06-28 22:43redjNote Added: 0000915
2013-06-28 22:43redjStatusresolved => feedback
2013-06-28 22:43redjResolutionfixed => reopened
2013-07-06 06:32redjRelationship addedrelated to 0000332
2013-07-08 20:27jeromeStatusfeedback => assigned
2013-07-08 20:27jeromeTarget Version0.44.50 Debug => 0.44.10 64
2013-08-07 02:33jeromeFixed in Version0.44.10 64 => 0.44.08
2013-08-07 02:33jeromeTarget Version0.44.10 64 => 0.44.08
2013-08-08 20:04redjStatusassigned => resolved
2013-08-08 20:04redjResolutionreopened => fixed
2013-08-08 20:04redjNote Added: 0000983
2013-08-09 10:53jeromeStatusresolved => closed
2013-08-24 09:20jeromeRelationship addedrelated to 0000986

Notes
(0000902)
redj   
2013-06-17 20:00   
(edited on: 2013-06-17 20:04)
if you set a breakpoint in Instance_COM_Initialize first, then the bp on __thisModule = __currentModule = module = __ecere_COM_Initialize(1, _argc, (void *)_argv); will not hit.

this seems to be an issue in gdb or in the information given to gdb by the #line directives in .c files perhaps?

I find this only occurs in the beginning of the main function in x.main.ec

will move this to target "Debug" issue and change priority to low.

(0000908)
redj   
2013-06-18 01:03   
fixed by https://github.com/redj/ecere-sdk/commit/7eeb24abfa46462cba5dcbab568c5dd781f053d4 [^]
(0000915)
redj   
2013-06-28 22:43   
Stepping over eModule_Load(module, "ecere", privateAccess); still doesn't work
And I think it's because it sees it as the internal breakpoint and just keeps going
not realizing it was a step over that was done
(0000983)
redj   
2013-08-08 20:04   
https://github.com/redj/ecere-sdk/commit/98fe0afeaf4e98c40882e242d035827c7d2c32d9 [^]