[gnu.gdb.bug] problem setting breakpoints

david@wiley.UUCP (David Hull) (02/11/89)

I'm in the process of porting gdb 3.1 to a new processor, the
Intergraph CLIPPER.  The system is running CLIX 3.0, which is based on
SVR3.  I'm currently trying to get breakpoints working.  The problem is
that the break command seems to be picking the wrong address to insert the
breakpoint at.  The following excerpt from a gdb session shows what I
mean:

(gdb) b main
Breakpoint 1 at 0x1560000: file hello.c, line 7.
(gdb) p main
$1 = {int ()} 0x148

Unfortunately, the CLIPPER doesn't currently have a working debugger
(it has sdb, but it doesn't work).  If anyone has any idea what the
problem might be, please send me mail.  My guess is that it is a
big-endian/little-endian problem (the CLIPPER is little-endian),
but I don't know where to look.

Also, if someone would like to collaborate with me on the port, let me know!

-David

P.S. Did I do right posting to gnu.gdb.bug, or should I have mailed this
to bug-gdb@somewhere?
-- 
					---------------------------------------
					David Hull  TRW Inc.  Redondo Beach, CA
					  ...!{uunet,cit-vax,trwrb}!wiley!david
					     david%wiley.uucp@csvax.caltech.edu