This is the mail archive of the
crossgcc@sources.redhat.com
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
Debugging the gcc compiler using gdb
- From: "Surupa Biswas" <surupa_biswas at hotmail dot com>
- To: crossgcc at sources dot redhat dot com
- Date: Mon, 23 Feb 2004 18:08:29 +0000
- Subject: Debugging the gcc compiler using gdb
- Bcc:
Hi,
I am trying to debug the gcc 3.2 compiler for mcore under gdb 5.2.1-2mdk (on
Mandrake 9.1). I want to set breakpoints on some functions inside a
particular file that I have written and integrated into the compiler.
I run gdb gcc-mcore
when I type break my_func, it says function not defined.
So, I do add-symbol-file my_file and now if I type break my_func, it says
error accessing memory at adress xyz (I have verified by looking at the
object dump that the address does correspond to my_func)
How do I run gcc-mcore and have breakpoints inside my_file ?
Any help will be greatly appreciated.
Surupa
_________________________________________________________________
Oscar fever is on! It's Hollywood's biggest party.
http://server1.msn.co.in/sp04/oscars/index.asp Get all the dope here.
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com