aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2011-11-24 15:56:25 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2011-11-24 15:56:25 +0000
commit130854dfe4d67cad84a7ce94b7f61ea90435933a (patch)
tree5132cd95fc39c4de7d319a3a04e56758461448d2 /gdb/mips-tdep.c
parentcdedd3feb49f51455ef53bb451ebb8ad2e441399 (diff)
downloadgdb-130854dfe4d67cad84a7ce94b7f61ea90435933a.zip
gdb-130854dfe4d67cad84a7ce94b7f61ea90435933a.tar.gz
gdb-130854dfe4d67cad84a7ce94b7f61ea90435933a.tar.bz2
* mips-tdep.c (extended_offset): Fix formatting.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 47d9182..7e74bc4 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -1321,11 +1321,13 @@ static CORE_ADDR
extended_offset (unsigned int extension)
{
CORE_ADDR value;
- value = (extension >> 21) & 0x3f; /* * extract 15:11 */
+
+ value = (extension >> 21) & 0x3f; /* Extract 15:11. */
value = value << 6;
- value |= (extension >> 16) & 0x1f; /* extract 10:5 */
+ value |= (extension >> 16) & 0x1f; /* Extract 10:5. */
value = value << 5;
- value |= extension & 0x01f; /* extract 4:0 */
+ value |= extension & 0x1f; /* Extract 4:0. */
+
return value;
}