Setting breakpoings in GDB on windows?

Discussion about writing code for Inkscape.
mathog
Posts: 82
Joined: Tue Feb 08, 2011 6:05 am

Setting breakpoings in GDB on windows?

Postby mathog » Fri Jan 27, 2012 2:19 am

Inkscape downloaded and built in mingw on Windows XP SP3. It runs. Now I want to trace a problem back into the code. The
problem occurs before PrintEmfWin32::text, so I want to set a breakpoint there and use bt.

Start it in GDB as shown here
http://wiki.inkscape.org/wiki/index.php ... or_Windows

gdb
file inkscape.exe inkscape.dbg

it picks up symbols from the second file. Now try to set a breakpoint - no joy:

(gdb) b PrintEmfWin32::text
Can't find member of namespace, class, struct, or union named "PrintEmfWin32::text"
Hint: try 'PrintEmfWin32::text<TAB> or 'PrintEmfWin32::text<ESC-?>
(Note leading single quote.)
(gdb) b 'PrintEmfWind32:text<tab>
(it beeps and does nothing. Yes, that was a ^I tab character and not literally the string "<tab>")

What am I missing?

Thanks.

Return to “Programming”