News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

yasm and gdb on Windows

Started by goetz, April 08, 2013, 05:10:29 PM

Previous topic - Next topic

goetz

We are trying to use Code::Blocks for assembly language.

I setup a new project using the yasm compiler and gcc as the linker. This is the command to do the "compile":
$compiler -f win32 -g dwarf2  $file -o $object

It is using the dwarf2 debug format, however gdb doesn't find the debugging symbols. cv8 format gdb doesn't complain about. However in either case when I do debug from Code::Blocks, the debugger never stops at the break point (or when Run to Cursor).

The debugger works fine when doing C++. My guess is that the debugging format from yasm is not compatible with gdb. Any way to use the debugger with yasm?

Update:
I just tried yasm on Ubuntu using -f elf64 -g dwarf2 and it worked fine there. Something odd about gdb on Windows perhaps?

Thanks,

Lawrence