8AB8=3  3 6 . 2 0 .   ;NG52>9  D@03<5=B  DC=:F88  e l f _ c o r e _ d u m p ( ) ,   ?>425@65==>9  ?5@5?>;=5=8N
 
 
 
 s t a t i c   i n t   e l f _ c o r e _ d u m p ( l o n g   s i g n r ,   s t r u c t   p t _ r e g s   *   r e g s ,   s t r u c t   f i l e   *   f i l e ) 
 
 { 	 	 
 
 	 s t r u c t   e l f _ p r p s i n f o   p s i n f o ;   / *   N T _ P R P S I N F O   * / 
 
 	 	 
 
 	 / *   f i r s t   c o p y   t h e   p a r a m e t e r s   f r o m   u s e r   s p a c e   * / 
 
 	 m e m s e t ( & p s i n f o ,   0 ,   s i z e o f ( p s i n f o ) ) ; 
 
 	 { 	 
 
 	 	 i n t   i ,   l e n ; 	   / *   1   * / 
 
 	 	 l e n   =   c u r r e n t - > m m - > a r g _ e n d   -   c u r r e n t - > m m - > a r g _ s t a r t ; 
 
 	 	 i f   ( l e n   > =   E L F _ P R A R G S Z )   	 /   *   2   *   / 
 
 	 	 	 l e n   =   E L F _ P R A R G S Z - 1 ; 
 
 	 	 c o p y _ f r o m _ u s e r ( & p s i n f o . p r _ p s a r g s , / *   1 1 6 7   * / 
 
 	 	   ( c o n s t   c h a r   * ) c u r r e n t - > m m - > a r g _ s t a r t ,   l e n ) ; 
 
 	 & 	 
 
 	 } 	 
 
 & 	 	 
 
 } 	 	 
 
 
 
 