What I need to fix to use debugger with Mod5270FactoryDemo?

Discussion to talk about software related topics only.
Post Reply
User avatar
yevgenit
Posts: 84
Joined: Fri Apr 25, 2008 12:47 am
Contact:

What I need to fix to use debugger with Mod5270FactoryDemo?

Post by yevgenit »

After duplication the project Mod5270FactoryDemo according to http://www.netburner.com/downloads/nndk ... tarted.pdf, the application stops only near the end of OSTaskIdle() at ucos.c - instead of my breakpoints. The application itself works Ok.

The console window shows:
Source directories searched: $cdir;$cwd
Current language: auto; currently c++
mi_cmd_disassemble: Invalid filename.
Yevgeni Tunik
Embedded/RealTime software engineer
https://www.linkedin.com/in/yevgenitunik/
________________________
User avatar
yevgenit
Posts: 84
Joined: Fri Apr 25, 2008 12:47 am
Contact:

Re: What I need to fix to use debugger with Mod5270FactoryDemo?

Post by yevgenit »

The issue of non-stop on breakpoint is fixed by adding C:\Nburn\MOD5270\system to the includes according to the link in the console window.

It will nice to have this include added automatically when debug configuration is built.

The fix is implemented with NDDK Rel22_rc2.

By the way: to enable breakpoints at assembler source files, -gdwarf-2 need to be added to the assembler command line.
Yevgeni Tunik
Embedded/RealTime software engineer
https://www.linkedin.com/in/yevgenitunik/
________________________
User avatar
mx270a
Posts: 80
Joined: Tue Jan 19, 2010 6:55 pm

Re: What I need to fix to use debugger with Mod5270FactoryDe

Post by mx270a »

I'm seeing the same issue with the debugger ignoring my breakpoint and instead stopping at OSTaskIdle() in the ucos.c file. This is with a PK70 app running NNDK 2.6.1 in Windows 7 x64.

I also have a virutal machine running Windows XP x32 with NNDK 2.6.1 and the exact same application. Debug works fine on this machine.
User avatar
tod
Posts: 587
Joined: Sat Apr 26, 2008 8:27 am
Location: Southern California
Contact:

Re: What I need to fix to use debugger with Mod5270FactoryDe

Post by tod »

Yevgeni - you can edit the PROPERTIES file under the nburn\MOD5270 directory to manually add an include path for any new project you create. I tried adding the path you indicated to my test debug project but it didn't help me. I still need to add an OSTimeDly(x) if I want to hit a breakpoint right after the InitializeNetworkGDB_and_Wait() call (it never actually waits on that call either).

@mx270a that's very interesting that it works under XP but not Windows 7 x64, I hope NetBurner is listening, that might be a clue to get the debugger working better. I too use Win7x64 as my standard development platform.
Post Reply