This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
"Info reg doesn't work"
- From: "Xinan Tang" <xinan at tidalnetworks dot net>
- To: <gdb at sources dot redhat dot com>
- Date: Mon, 14 Jun 2004 16:47:25 -0700
- Subject: "Info reg doesn't work"
Hi
I am porting gdb (6.1) to a new target. After adding a new target that is
similar to an existing RISC 32bit architecture, I found out two problems:
1. `info register' does not work. For example, if I type in `info reg',
the content of all registers are showing ZERO except PC no matter how many
instructions are executed.
2. Gdb can start execution from _start but can not enter main.
Could someone please point to me which files I should take a look to fix
this problem? Or is there any FAQ to explain how to add a new target based
on an existing architecture.
Thanks
--Xinan