🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #174

Bug report for GDB 4.6

#174
From: d90-awe
Date: Mon, 10 Aug 1992 17:02
60 lines
1832 bytes
Bug report for gdb

Version: GDB 4.6

Machine: Sun4 running SunOS 4.1.2

GDB was compiled with GCC 2.2.2.

test file:
------------------------------ cut here ------------------------------
/* unimp.s */
.text
	unimp 17
------------------------------ cut here -----------------------------

compiled with:
/usr/bin/as unimp.s -o unimp.o

input script:

bash$ gdb unimp.o
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.6, Copyright 1992 Free Software Foundation, Inc...

unimp.o has no symbol-table

(gdb) x/i
0x0:	unimp n
(gdb) quit

What's wrong:

It doesn't print the operand of unimp.

My explanation:

Argument `n' indicating 22 bit immediate value is not implemented in
the switch in sparc-pinsn.c so the arguments gets printed as `n'.

My patch:

*** sparc-pinsn.c.orig  Mon Jul  6 19:11:05 1992
--- sparc-pinsn.c       Sun Aug  9 00:11:49 1992
***************
*** 254,259 ****
--- 254,263 ----
                    }
                    break;
  
+                 case 'n': /* sak */
+                   fprintf_filtered (stream, "%#x", insn.imm22);
+                   break;
+ 
                  case 'L':
                    print_address ((CORE_ADDR) memaddr + insn.disp30 * 4,
                                   stream);

/assar
Technical Details
Message-ID: <9208101302.AA04652@flora.nada.kth.se>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!nada.kth.se!d90-awe

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!nada.kth.se!d90-awe
From: d90-awe@nada.kth.se
Subject: Bug report for GDB 4.6
Message-ID: <9208101302.AA04652@flora.nada.kth.se>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 10 Aug 1992 17:02:39 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 61