Debugging the gcc compiler using gdb
Surupa Biswas
surupa_biswas@hotmail.com
Mon Feb 23 18:30:00 GMT 2004
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
More information about the crossgcc
mailing list