Hi All,
In http://wiki.gnucash.org/wiki/Windows#Debugging_with_gdb I read
If you build gnucash with the help of install.sh, make sure you export
DISABLE_OPTIMIZATIONS=yes in packaging/win32/custom.sh to include debugging
symbols and avoid optimizations that complicate debugging.
In custom.sh I have
GLOBAL_DIR=C:\\soft
DOWNLOAD_DIR=/Z/GNUCash_Downloads
AQBANKING_WITH_QT=yes
# set -x
QTDIR=/c/QT/4.4.3
export DISABLE_OPTIMIZATIONS=yes
In an msys shell I see
---------------------------------------------------------------------------------------------------------------------------------------------
gnuc...@elshadai ~
$ ps
PID PPID PGID WINPID TTY UID STIME COMMAND
1936 1 1936 1936 con 500 22:48:36 /usr/bin/rxvt
1444 1936 1444 1632 0 500 22:48:36 /usr/bin/sh
2040 1444 2040 3280 0 500 08:52:45
/c/soft/gnucash/inst/bin/gnucash-bin
4076 1 4076 4076 con 500 08:55:49 /usr/bin/rxvt
2140 4076 2140 2320 1 500 08:55:49 /usr/bin/sh
1656 2140 1656 2036 1 500 08:55:57 /usr/bin/ps
gnuc...@elshadai ~
$ gdb
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
(gdb) attach 3280
Attaching to process 3280
gdb: do_initial_child_stuff: process 3280
gdb: kernel event for pid=3280 tid=1636 code=CREATE_PROCESS_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0x664
ContinueDebugEvent (cpid=3280, ctid=1636, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=db4 code=CREATE_THREAD_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0xdb4
ContinueDebugEvent (cpid=3280, ctid=3508, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=1636 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0x664
ContinueDebugEvent (cpid=3280, ctid=1636, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=1636 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0x664
ContinueDebugEvent (cpid=3280, ctid=1636, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=1636 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0x664
ContinueDebugEvent (cpid=3280, ctid=1636, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=1636 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0x664
ContinueDebugEvent (cpid=3280, ctid=1636, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=1636 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0x664
ContinueDebugEvent (cpid=3280, ctid=1636, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=1636 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0x664
ContinueDebugEvent (cpid=3280, ctid=1636, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=1636 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0x664
ContinueDebugEvent (cpid=3280, ctid=1636, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=1636 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0x664
ContinueDebugEvent (cpid=3280, ctid=1636, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=1636 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0x664
ContinueDebugEvent (cpid=3280, ctid=1636, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=1636 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0x664
ContinueDebugEvent (cpid=3280, ctid=1636, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=1636 code=LOAD_DLL_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0x664
ContinueDebugEvent (cpid=3280, ctid=1636, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=b94 code=CREATE_THREAD_DEBUG_EVENT)
gdb: child_resume.SetThreadContext: thread 3280.0xb94
ContinueDebugEvent (cpid=3280, ctid=2964, DBG_CONTINUE);
gdb: kernel event for pid=3280 tid=2964 code=EXCEPTION_DEBUG_EVENT)
gdb: Target exception EXCEPTION_BREAKPOINT at 0x7c90120e
Reading symbols from C:\soft\msys\bin\sh.exe...(no debugging symbols
found)...done.
[Switching to thread 3280.0xb94]
(gdb) exit
(gdb) Undefined command: "exit". Try "help".
quit
ContinueDebugEvent (cpid=3280, ctid=2964, DBG_CONTINUE);
Detaching from program: C:\soft\msys\bin\sh.exe, Pid 3280
gdb: child_close, inferior_ptid=0
gnuc...@elshadai ~
$
---------------------------------------------------------------------------------------------------------------------------------------------
I another msys shell I see
----------------------------------------------------------------------------------------------------------------------------------------------
############################################################
### Inno Setup Compiler
############################################################
Inno Setup Compiler already installed. skipping.
############################################################
### Finish...
############################################################
gnuc...@elshadai ~/Packaging
$ gnucash
(gnucash-bin.exe:2264): GLib-WARNING **: Passing a non-NULL package to
g_win32_get_package_installation_directory() is deprecated and will not work in
GLib after 2.18.
This is a development version. It may or may not work.
Report bugs and other problems to [email protected].
You can also lookup and file bug reports at http://bugzilla.gnome.org
The last stable version was GnuCash 2.2.8
The next stable version will be GnuCash 2.4
Error: xaccOpenLog(): cannot open journal
22 Invalid argument
Error: xaccOpenLog(): cannot open journal
22 Invalid argument
Error: xaccOpenLog(): cannot open journal
22 Invalid argument
Error: xaccOpenLog(): cannot open journal
22 Invalid argument
Error: xaccOpenLog(): cannot open journal
22 Invalid argument
gnuc...@elshadai ~/Packaging
$ gnucash --version
(gnucash-bin.exe:3516): GLib-WARNING **: Passing a non-NULL package to
g_win32_get_package_installation_directory() is deprecated and will not work in
GLib after 2.18.
GnuCash 2.2.99 development version
Built 2009-04-11 from r18033
gnuc...@elshadai ~/Packaging
$
--------------------------------------------------------------------------------------------------------------------------------------
Why am I still seeing the message
Reading symbols from C:\soft\msys\bin\sh.exe...(no debugging symbols
found)...done. ?
Yours Sincerely Stephen Grant Brown
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel