Article View: gnu.gdb.bug
Article #10052gdb Ncube port questions
From: "Bill Bailey"
Date: Tue, 19 Jun 1990 17:36
Date: Tue, 19 Jun 1990 17:36
32 lines
1948 bytes
1948 bytes
As I have mentioned in previous notes, I am working on porting gdb to the Ncube. Specifically, I am using gdb as a cross debugger. It runs on a sparc but debugs programs out on the Ncube. In order to implement this, I simply had to rewrite the ptrace() interface to sends messages to the OS running on the Ncube. The Ncube OS allows full debugging of processes in this manner. That much was easy. Currently, the biggest road block I have hit is the differing endian-ness of the two machines. There doesn't seem to be much support internal to gdb 3.5 to allow this. I have had to go into routines like read_var_value(), value_from_register(), and value_at() and put macros into the code which do byte-swapping as appropriate for the data type being read. Still, there are subtle problems. So much so that I am considering porting gdb to run on the Ncube flat out. Ncubes do not run straight Unix, so this project is a challenge in itself. My questions are: 1) Are you interested in my changes to support cross-debugging in a heterogeneous environment? 2) Do you have plans to do the above yourself? Is it in my interest to wait? Timeframe? 3) Do you think the whole cross-debugging effort is a crock and I would be better to bite the bullet and port gdb to run on Ncbue directly? thanks --bill
Technical Details
Message-ID:
<9006191736.AA08441@hqsun7.oracle.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!hqsun7.oracle.com!WBAILEY.US1.oramailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,2e749bf242a58960,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1990-06-19 10:36:14 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!hqsun7.oracle.com!WBAILEY.US1.oramail
From: WBAILEY.US1.oramail@hqsun7.oracle.com ("Bill Bailey")
Newsgroups: gnu.gdb.bug
Subject: gdb Ncube port questions
Message-ID: <9006191736.AA08441@hqsun7.oracle.com>
Date: 19 Jun 90 17:36:14 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 32
Posted: Tue Jun 19 18:36:14 1990