+
     þÎjJ  ã                   ó    € R t ^ RIHt ^ RIt^ RIt^ RIt^ RIHt ^ RIH	t	 Rt
]! R]
4      t ! R R4      tR	 tRR
 lt]R8X  d
   ]! 4        R# R# )z:Module for displaying information about Numba's gdb set up)Ú
namedtupleN)Údedent)Úconfigz4binary_loc, extension_loc, py_ver, np_ver, supportedÚ	_gdb_infoc                   ól   a € ] tR t^t o RtR tRR lt]R 4       t]	R 4       t
R tR tR tR	 tR
tV tR# )Ú_GDBTestWrapperziWraps the gdb binary and has methods for checking what the gdb binary
has support for (Python and NumPy).c                óv   € \         P                  pVf   R\         P                   2p\        V4      hWn        R # )Nz.No valid binary could be found for gdb named: )r   Ú
GDB_BINARYÚ
ValueErrorÚ_gdb_binary)ÚselfÚ
gdb_binaryÚmsgs   &  ÚN/opt/data/home/.local/lib/python3.14/site-packages/numba/misc/numba_gdbinfo.pyÚ__init__Ú_GDBTestWrapper.__init__   s9   € Ü×&Ñ&ˆ
ØÒØCÜ×'Ñ'Ð(ð*ˆCä˜S“/Ð!Ø%Öó    c                óÎ   € V P                   R .pV F%  pVP                  R4       VP                  V4       K'  	  VP                  RR.4       \        P                  ! VR^
RR7      # )z-qz-exÚqT)Úcapture_outputÚtimeoutÚtext)r   ÚappendÚextendÚ
subprocessÚrun)r   ÚcmdÚgdb_callÚxs   &&  r   Ú_run_cmdÚ_GDBTestWrapper._run_cmd   s^   € Ø—O‘O TÐ+ˆÛˆAØ�O‰O˜EÔ"Ø�O‰O˜AÖñ ð 	�‰˜ ˜Ô%Ü�~Š~˜h°tÀRØ#'ô)ð 	)r   c                ó   € V P                   # )N©r   ©r   s   &r   r   Ú_GDBTestWrapper.gdb_binary#   s   € à×ÑÐr   c                ó    € VP                   ^ 8H  # )é    )Ú
returncode)ÚclsÚstatuss   &&r   ÚsuccessÚ_GDBTestWrapper.success'   s   € à× Ñ  AÑ%Ð%r   c                ó"   € V P                  4       # )zChecks that gdb will launch ok©r   r#   s   &r   Úcheck_launchÚ_GDBTestWrapper.check_launch+   s   € à�}‰}‹Ðr   c                ó*   € R pV P                  V34      # )zUpython from __future__ import print_function; import sys; print(sys.version_info[:2])r-   ©r   r   s   & r   Úcheck_pythonÚ_GDBTestWrapper.check_python/   s   € ð9ˆà�}‰}˜c˜VÓ$Ð$r   c                ó*   € R pV P                  V34      # )ztpython from __future__ import print_function; import types; import numpy; print(isinstance(numpy, types.ModuleType))r-   r1   s   & r   Úcheck_numpyÚ_GDBTestWrapper.check_numpy4   s   € ð<ˆð �}‰}˜c˜VÓ$Ð$r   c                ó*   € R pV P                  V34      # )zapython from __future__ import print_function; import types; import numpy;print(numpy.__version__)r-   r1   s   & r   Úcheck_numpy_versionÚ#_GDBTestWrapper.check_numpy_version:   s   € ð*ˆð �}‰}˜c˜VÓ$Ð$r   r"   N)© )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   Úpropertyr   Úclassmethodr*   r.   r2   r5   r8   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      sU   ø‡ € ñ+ò&ô)ð ñ ó ð ð ñ&ó ð&òò%ò
%÷%ð %r   r   c                 ó‚  € Rp RpRpRpRp \        4       pVP                  4       pVP                  V4      '       g5   RVP                   RVP                   RVP
                   2p\        V4      hVP                  p VP                  4       pVP                  V4      '       Ed   \        P                  ! RVP                  P                  4       4      pVeå   VP                  4       w  ršV	 R	V
 2pR
pVP                  4       pVP                  V4      '       d£   RVP
                  P                  4       9  d„   VP                  P                  4       R8X  de   R
pRpVP                  4       pVP                  V4      '       d:   RVP
                  P                  4       9  d   VP                  P                  4       pT'       d   T'       d   RpMRpMRpRp\        P                   P#                  \        P                   P%                  \&        4      T4      p\)        YTYL4      #   \         d   pRT 2p  Rp?L}Rp?ii ; i)zEPrints information to stdout about the gdb setup that Numba has foundNFzNo Python supportzNo NumPy supportzgdb at 'z#' does not appear to work.
stdout: z	
stderr: z\((\d+),\s+(\d+)\)Ú.TÚ	TracebackÚTrueÚUnknownz+Testing gdb binary failed. Reported Error: z!Full (Python and NumPy supported)z'Partial (Python only, no NumPy support)ÚNonezgdb_print_extension.py)r   r.   r*   r   ÚstdoutÚstderrr
   r2   ÚreÚmatchÚstripÚgroupsr5   r8   Ú	ExceptionÚosÚpathÚjoinÚdirnameÚ__file__r   )Ú	gdb_stateÚgdb_has_pythonÚgdb_has_numpyÚgdb_python_versionÚgdb_python_numpy_versionÚgdb_wrapperr)   r   Úversion_matchÚpymajorÚpyminorÚeÚprint_ext_supportedÚprint_ext_fileÚprint_ext_paths                  r   Úcollect_gdbinford   A   s  € ð €IØ€NØ€MØ,ÐØ1Ðð
#>ä%Ó'ˆð ×)Ñ)Ó+ˆØ×"Ñ" 6×*Ò*Ø˜k×4Ñ4Ð5ð 6 Ø &§¡˜¨j¸¿¹¸ðIˆCä˜S“/Ð!Ø×*Ñ*ˆ	ð
 ×)Ñ)Ó+ˆØ×Ñ˜v×&Ó&ÜŸHšHÐ%:Ø%+§]¡]×%8Ñ%8Ó%:ó<ˆMàÒ(Ø#0×#7Ñ#7Ó#9Ñ �Ø(/ y°°'°Ð%;Ð"Ø!%�à$×0Ñ0Ó2�Ø×&Ñ& v×.Ò.Ø"¨&¯-©-×*=Ñ*=Ó*?Ô?Ø!Ÿ=™=×.Ñ.Ó0°FÔ:Ø,0˜MØ7@Ð4à%0×%DÑ%DÓ%F˜FØ*×2Ñ2°6×:Ò:Ø#.°f·m±m×6IÑ6IÓ6KÔ#Kà(.¯©×(;Ñ(;Ó(=ð %=÷ ßØ"EÑà"KÑà$Ðð .€NÜ—W‘W—\‘\¤"§'¡'§/¡/´(Ó";¸^ÓL€Nô �YÐ0BØ-óDð DøôQ ô FØAÀ!ÀÐE�	ûðFús   ŒA1H$ È$H>È/H9È9H>c                ó  € \        4       p\        R4       RV  R2p\        VRVP                  3,          4       \        VRVP                  3,          4       \        VRVP                  3,          4       \        VRVP
                  3,          4       \        VRVP                  3,          4       \        R4       \        R	4       \        R
VP                   R24       \        R4       Rp\        \        V4      4       R# )z;Displays the information collected by collect_gdbinfo.
    z%-zs : %-szBinary locationzPrint extension locationzPython versionzNumPy versionz Numba printing extension supportÚ zTTo load the Numba gdb printing extension, execute the following from the gdb prompt:z
source Ú
a  
    =============================================================
    IMPORTANT: Before sharing you should remove any information
    in the above that you wish to keep private e.g. paths.
    =============================================================
    NzP--------------------------------------------------------------------------------)rd   ÚprintÚ
binary_locÚextension_locÚpy_verÚnp_verÚ	supportedr   )Úsep_posÚgdb_infoÚfmtÚwarns   &   r   Údisplay_gdbinforr   …   sá   € ô Ó €HÜ	ˆ(„OØˆwˆi�wÐ
€Cä	ˆ#Ð" H×$7Ñ$7Ð8Õ
8Ô9Ü	ˆ#Ð+¨X×-CÑ-CÐDÕ
DÔEÜ	ˆ#Ð! 8§?¡?Ð3Õ
3Ô4Ü	ˆ#� (§/¡/Ð2Õ
2Ô3Ü	ˆ#Ð3°X×5GÑ5GÐHÕ
HÔIä	ˆ"„IÜ	ð !ô "ä	ˆI�h×,Ñ,Ð-¨RÐ
0Ô1Ü	ˆ(„Oð€Dô 
Œ&�‹,Ör   Ú__main__)é-   )r?   Úcollectionsr   rR   rM   r   Útextwrapr   Únumbar   Ú_fieldsr   r   rd   rr   r;   r:   r   r   Ú<module>ry      s[   ðÙ @Ý "Û 	Û 	Û Ý Ý ð B€Ù�{ GÓ,€	÷0%ñ 0%òfADôHð6 ˆzÔÙÖñ r   