[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-devtools
Subject: RE: HPUX-DEVTOOLS: What is the symbol "$lr_na_4_Alt"
From: "Cao, Da-Shi \(TSG-SMO-GSS-GZ\)" <thomas-ds.cao () hp ! com>
Date: 2008-04-03 2:31:20
Message-ID: 9564AA8DE605AD4988E8A35515D176B12CC4546180 () G1W0490 ! americas ! hpqcorp ! net
[Download RAW message or body]
Hi Masters,
The root cause has been identified, thanks to your opinions.
There is a dead loop, under certain circumstances, in the function calling \
"RemoveHead". I benefit very much from this discussion list.
Thomas
-----Original Message-----
From: Dennis Handly [mailto:dhandly@cup.hp.com]
Sent: Thursday, April 03, 2008 10:06
To: Cao, Da-Shi (TSG-SMO-GSS-GZ)
Cc: hpux-devtools@cxx.cup.hp.com; sieler@allegro.com
Subject: RE: HPUX-DEVTOOLS: What is the symbol "$lr_na_4_Alt"
> From: "Cao, Da-Shi (TSG-SMO-GSS-GZ)" <thomas-ds.cao@hp.com> I can not
> decipher those machine instructions of PA-RISC.
It's pretty easy, the length is 33 bytes.
> I'd appreciate very much if something could be told from the listings
The listings aren't as good as a .i file.
template<class TYPE, class ARG_TYPE>
AFX_INLINE TYPE CListx<TYPE, ARG_TYPE>::RemoveHead() {
TYPE returnValue = pOldNode->data;
...
return returnValue; // line 494, where it hang.
So it is copying the 33 byte TYPE struct. Note this is inefficient, you are copying \
it twice. You should turn on +nrv. It isn't hanging. You should do some single \
steps to show you do return to RemoveHead then AppendingResourceReqHandle.
(gdb) disas 0x47779c-10*4 0x4777b8
;;; File: ../../unixmfc/listx.h Line: 494
0x477774 <CListx<...>::RemoveHead(void)
0x47778c <CRH+0x270>: ldi 0x21,%r24 len
0x477790 <CRH+0x274>: ldo -0x53(%sp),%r26 src
0x477794 <CRH+0x278>: b,l 0x477504,%r31 millicode call
0x477798 <CRH+0x27c>: copy %r3,%r25 target
0x47779c <CRH+0x280>: Return from call point
r3: 7a22a3e0
arg1/r25: 7a22a400 arg0/r26: 7a22a508
ret1/ap/r29: 1 sp/r30: 7a22a540
mrp/r31: 47779f sar/cr11: 38
So R3 is the target. SP-0x53 is the source.
_________________________________________________________________
To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
with the message UNSUBSCRIBE hpux-devtools
_________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic