Port-vax archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Building current...
On 2015-12-02 19:52, Christos Zoulas wrote:
On Dec 2, 7:39pm, bqt%update.uu.se@localhost (Johnny Billquist) wrote:
-- Subject: Re: Building current...
| I'm really rusty on gdb. How do I do that?
"disassemble"? With the pc address (info reg)? I think it defaults to
that.
Actually, just disassemble will do it, as it picks the surroundings of
the PC...
(gdb) disass
Dump of assembler code for function htab_find_slot_with_hash:
0x004455a4 <+2>: subl2 $0x8,sp
0x004455a7 <+5>: movl 0x4(ap),r7
0x004455ab <+9>: movl 0xc(ap),r10
0x004455af <+13>: movl 0x10(r7),r9
0x004455b3 <+17>: cmpl 0x10(ap),$0x1
0x004455b7 <+21>: bneq 0x4455dc <htab_find_slot_with_hash+58>
0x004455b9 <+23>: addl3 r9,r9,r1
0x004455bd <+27>: addl2 r9,r1
0x004455c0 <+30>: ashl $0x2,0x14(r7),r0
0x004455c5 <+35>: cmpl r1,r0
0x004455c8 <+38>: bgtru 0x4455dc <htab_find_slot_with_hash+58>
0x004455ca <+40>: pushl r7
0x004455cc <+42>: calls $0x1,0x444fca
0x004455d1 <+47>: tstl r0
0x004455d3 <+49>: bneq 0x4455d8 <htab_find_slot_with_hash+54>
0x004455d5 <+51>: brw 0x445721 <htab_find_slot_with_hash+383>
0x004455d8 <+54>: movl 0x10(r7),r9
0x004455dc <+58>: ashl $0x4,0x38(r7),r3
0x004455e1 <+63>: movab 0x527a3c[r3],r2
0x004455e9 <+71>: movl 0x4(r2),r0
=> 0x004455ed <+75>: extzv $0x1f,$0x1,r10,0xfffffff8(fp)
0x004455f3 <+81>: mull3 0xfffffff8(fp),r0,r1
---Type <return> to continue, or q <return> to quit---
0x004455f8 <+86>: rotl $0x1,r0,r4
0x004455fc <+90>: bicl2 $0xfffffffe,r4
0x00445603 <+97>: mull2 r10,r4
0x00445606 <+100>: addl2 r1,r4
0x00445609 <+103>: emul r10,r0,$0x0,r0
0x0044560e <+108>: addl3 r4,r1,r0
0x00445612 <+112>: subl3 r0,r10,r6
0x00445616 <+116>: rotl $0x1f,r6,r6
Hmm, I can't see what's wrong. extzv with those arguments should be ok
according to VARM. But maybe I'm confused...?
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt%softjar.se@localhost || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
Home |
Main Index |
Thread Index |
Old Index