To catch the crash you have to run from a terminal or xterm, and shouldn't that last line be:
gdb --args $APP_DIR/bin/codeblocks --prefix=$APP_DIR $@
I made the assumption that you're running the svn version of CB.
On Linux: in the /src/devel directory you'll find the distributed ./run.sh shell command.
So when I test CodeBlocks, I do the following:
I start a terminal or xterm. I then
cd /home/pecan/devel/trunk/src/devel
./run.sh
That shell I posted is just a modification ofthe run.sh.
On windows:
I start a dos session. Then issue the dos commands:
cd \usr\proj\trunk\src\devel
gdb codeblocks
Ok, I was in a hurry so couldn't post much details.
What I did was to save that content in a
run.sh file and then ran it by right-clicking on it. I know this is utterly wrong, but some Windows habits it is.
I was getting strange error that Permission denied when I was running from shell. So I changed the property of file to Executable (again Right-click) and then selected run menu option.
But I didn't notice any crash. Earlier during crash once I press Ctrl+V everything was gone.
Another point to note that after posting the crash report I downloaded the wx-2.6.3-p2 and reinstalled it.
I'm using SVN version and will try tomorrow again as you've demonstrated. Whenever I try to use
./run.sh in
src/devel folder, I get
"Permission denied" message. Even in SU mode, it throws same error. May be I need to do the Right-click again to make it executable.
Honestly speaking I'm a Newbie in Linux and I face these strange (but simple) problems.

Sorry, I don't know what the above is. Some KDE thingie ?
That is equivalent of Shortcut in Windows. This is to help Newbies like us to launch an app without using shell script.

I posted it's content to show you how I launch C::B.
Thanks again for your introduction to GDB.

Regards,
Biplab