+
     þÎj}   ã                   ó|  € R t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RI	H
t
HtHtHtHt ^ RIHt ^ RI	Ht ^ RIHtHtHtHt ^ RIHt ^ RIt]P                  t]P7                  R4      ;'       g    ]P7                  R	4      ;'       g    R
]9   t]P:                  ! ]R4      t]P>                  ! ]R4      t ]PB                  ! 4       t"]"R!9   t#]P>                  ! ]#R4      t$]PJ                  PM                  RR4      R8H  t']P:                  ! ]'R4      t(]! R4      t)]
! RR7      t*]! RRR7      t+R t,R t-R t.]$] ! R R]4      4       4       t/]$]] ! R R]4      4       4       4       t0]0Pc                  4        ]$]] ! R R]4      4       4       4       t2]  ! R R]4      4       t3]4R 8X  d   ]Pj                  ! 4        R# R# )"z
Tests gdb bindings
N)Úpermutations)ÚnjitÚgdbÚgdb_initÚgdb_breakpointÚprange)Úerrors)Újit)ÚTestCaseÚcaptured_stdoutÚtagÚskip_parfors_unsupported)Ú	needs_gdbÚlinuxÚdarwinÚbsdzunix-like OS is requiredznon unix-like OS is requiredztesting disabled on ARMÚGDB_TESTÚ1zneeds gdb harnessÚlong_runningT)Údebug)Úforceobjr   c                 ój   € \        R RR RR R4       V ^,           pV R,          pWV3p\        WW#4       R# ©z-exzset confirm offÚcÚqg¸…ëQ¸@N)r   Úprint©ÚaÚbr   Úds   &   ÚS/opt/data/home/.local/lib/python3.14/site-packages/numba/tests/test_gdb_bindings.pyÚimpl_gdb_callr!   ,   s:   € ÜˆÐ  %¨¨e°SÔ9Ø	ˆA�€AØ	ˆD�€AØ	
ˆqˆ	€AÜ	ˆ!�Öó    c                 ó~   € \        R RR RR R4       V ^,           pV R,          pWV3p\        4        \        WW#4       R# r   )r   r   r   r   s   &   r    Úimpl_gdb_call_w_bpr$   4   s@   € ÜˆUÐ% u¨c°5¸#Ô>Ø	ˆA�€AØ	ˆD�€AØ	
ˆqˆ	€AÜÔÜ	ˆ!�Ör"   c                 ó´   € \        R RR RR R4       V ^,          p \        ^4       F/  pV ^,           pV R,          pWV3p\        4        \        WW44       K1  	  R# r   )r   r   r   r   )r   Úir   r   r   s   &    r    Ú(impl_gdb_split_init_and_break_w_parallelr'   =   sW   € ÜˆUÐ% u¨c°5¸#Ô>Øˆ…F€AÜ�AŽYˆØ��EˆØ��HˆØ�1ˆIˆÜÔÜˆa�AÖó r"   c                   óÒ   a € ] tR t^Ht o Rt]R 4       t]R 4       t]R 4       t]R 4       t	]R 4       t
]R 4       t]]R 4       4       t]]R	 4       4       t]]R
 4       4       tRtV tR# )ÚTestGdbBindImplsaö  
Contains unit test implementations for gdb binding testing. Test must be
decorated with `@needs_gdb_harness` to prevent their running under normal
test conditions, the test methods must also end with `_impl` to be
considered for execution. The tests themselves are invoked by the
`TestGdbBinding` test class through the parsing of this class for test
methods and then running the discovered tests in a separate process. Test
names not including the word `quick` will be tagged as @tag('long_running')
c                óz   € \        4       ;_uu_ 4        \        ^
4       RRR4       R#   + '       g   i     R# ; i©é
   N)r   r!   ©Úselfs   &r    Ú$test_gdb_cmd_lang_cpython_quick_implÚ5TestGdbBindImpls.test_gdb_cmd_lang_cpython_quick_implU   s"   € ä×ÕÜ˜"Ô÷ ××Òúó   “)©:	c                óŽ   € \        4       ;_uu_ 4        \        \        4      ! ^
4       RRR4       R#   + '       g   i     R# ; ir+   )r   Ú	_dbg_njitr!   r-   s   &r    Ú%test_gdb_cmd_lang_nopython_quick_implÚ6TestGdbBindImpls.test_gdb_cmd_lang_nopython_quick_implZ   s'   € ä×ÕÜ”mÔ$ RÔ(÷ ××Òúó	   “3³A	c                óŽ   € \        4       ;_uu_ 4        \        \        4      ! ^
4       RRR4       R#   + '       g   i     R# ; ir+   )r   Ú_dbg_jitr!   r-   s   &r    Ú$test_gdb_cmd_lang_objmode_quick_implÚ5TestGdbBindImpls.test_gdb_cmd_lang_objmode_quick_impl_   s'   € ä×ÕÜ”]Ô# BÔ'÷ ××Òúr6   c                óz   € \        4       ;_uu_ 4        \        ^
4       RRR4       R#   + '       g   i     R# ; ir+   )r   r$   r-   s   &r    Ú*test_gdb_split_init_and_break_cpython_implÚ;TestGdbBindImpls.test_gdb_split_init_and_break_cpython_impld   s"   € ä×ÕÜ˜rÔ"÷ ××Òúr1   c                óŽ   € \        4       ;_uu_ 4        \        \        4      ! ^
4       RRR4       R#   + '       g   i     R# ; ir+   )r   r3   r$   r-   s   &r    Ú+test_gdb_split_init_and_break_nopython_implÚ<TestGdbBindImpls.test_gdb_split_init_and_break_nopython_impli   s(   € ä×ÕÜÔ(Ô)¨"Ô-÷ ××Òúr6   c                óŽ   € \        4       ;_uu_ 4        \        \        4      ! ^
4       RRR4       R#   + '       g   i     R# ; ir+   )r   r8   r$   r-   s   &r    Ú*test_gdb_split_init_and_break_objmode_implÚ;TestGdbBindImpls.test_gdb_split_init_and_break_objmode_impln   s(   € ä×ÕÜÔ'Ô(¨Ô,÷ ××Òúr6   c                óz   € \        4       ;_uu_ 4        \        ^
4       RRR4       R#   + '       g   i     R# ; ir+   )r   r'   r-   s   &r    Ú5test_gdb_split_init_and_break_w_parallel_cpython_implÚFTestGdbBindImpls.test_gdb_split_init_and_break_w_parallel_cpython_impls   s$   € ô ×ÕÜ4°RÔ8÷ ××Òúr1   c                óŽ   € \        4       ;_uu_ 4        \        \        4      ! ^
4       RRR4       R#   + '       g   i     R# ; ir+   )r   r3   r'   r-   s   &r    Ú6test_gdb_split_init_and_break_w_parallel_nopython_implÚGTestGdbBindImpls.test_gdb_split_init_and_break_w_parallel_nopython_imply   s*   € ô ×ÕÜÔ>Ô?ÀÔC÷ ××Òúr6   c                óŽ   € \        4       ;_uu_ 4        \        \        4      ! ^
4       RRR4       R#   + '       g   i     R# ; ir+   )r   r8   r'   r-   s   &r    Ú5test_gdb_split_init_and_break_w_parallel_objmode_implÚFTestGdbBindImpls.test_gdb_split_init_and_break_w_parallel_objmode_impl   s*   € ô ×ÕÜÔ=Ô>¸rÔB÷ ××Òúr6   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úneeds_gdb_harnessr/   r4   r9   r<   r?   rB   r   rE   rH   rK   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r    r)   r)   H   sÚ   ø‡ € ñð ñó ðð ñ)ó ð)ð ñ(ó ð(ð ñ#ó ð#ð ñ.ó ð.ð ñ-ó ð-ð Øñ9ó ó ð9ð ØñDó ó ðDð ØñCó ó öCr"   r)   c                   ó\   a € ] tR t^†t o RtRtRtR
R ltR t]	R 4       t
]	R 4       tRtV tR	# )ÚTestGdbBindingz¯
This test class is used to generate tests which will run the test cases
defined in TestGdbBindImpls in isolated subprocesses, this is for safety
in case something goes awry.
FTc           	     ó  a	€ \         P                  ! V\         P                  \         P                  VR R7      o	V	3R lp\        P                  ! RV4      p VP                  4        S	P                  4       w  rgS	P                  pV^ 8w  d4   \        RV: RVP                  4       : RVP                  4       : 24      hVP                  4       VP                  4       3VP                  4        #   TP                  4        i ; i)T)ÚstdoutÚstderrÚenvÚshellc                  ó�   <€ S P                   P                  4        S P                  P                  4        S P                  4        R # ©N)r[   Úflushr\   Úkill)Úpopens   €r    rb   Ú$TestGdbBinding.run_cmd.<locals>.kill�   s,   ø€ Ø�L‰L×ÑÔ Ø�L‰L×ÑÔ Ø�J‰JŽLr"   g      4@zprocess failed with code z: stderr follows
z	
stdout :)Ú
subprocessÚPopenÚPIPEÚ	threadingÚTimerÚstartÚcommunicateÚ
returncodeÚAssertionErrorÚdecodeÚcancel)
r.   Úcmdliner]   Ú
kill_is_okrb   ÚtimeoutÚoutÚerrÚretcoderc   s
   &&&&     @r    Úrun_cmdÚTestGdbBinding.run_cmd•   sÅ   ø€ Ü× Ò  Ü(2¯©Ü(2¯©Ø%(Ø'+ô	-ˆõ	ô —/’/ # tÓ,ˆð	Ø�M‰MŒOØ×(Ñ(Ó*‰HˆCØ×&Ñ&ˆGØ˜!Œ|Ý$ó %,¨S¯Z©Z®\¸3¿:¹:½<ðIóJð Jð —:‘:“< §¡£Ð-à�N‰NÕøˆG�N‰NÕús   ÁBC/ Ã/Dc                óÀ   € \         P                  P                  4       pR VR&   R VR&   \        P                  RRV.pV P
                  ! RP                  V4      V3/ VB # )r   Ú	NUMBA_OPTr   z-mznumba.runtestsÚ )ÚosÚenvironÚcopyÚsysÚ
executablerv   Újoin)r.   ÚtestÚkwargsÚenv_copyrp   s   &&,  r    Úrun_test_in_separate_processÚ+TestGdbBinding.run_test_in_separate_process°   sZ   € Ü—:‘:—?‘?Ó$ˆØ #ˆ�Ñð  #ˆ�ÑÜ—>‘> 4Ð)9¸4Ð@ˆØ�|Š|˜CŸH™H WÓ-¨xÑB¸6ÑBÐBr"   c                ó  a€ \         P                  p\         P                  pVP                  R 4      '       g   Q hVP	                  R R4      pV: RV: RV: 2oV3R lpRV9   d   \        WV4       R# \        W\        V4      4       R# )Ú_implÚ Ú.c                 óN  <€ V P                  S4      w  rR V RV R2p\        P                  ! RV4      pVe!   V P                  VP	                  ^4      4       V P                  RWR7       V P                  RW#R7       V P                  RW#R7       V P                  R	W#R7       R# )
z
STDOUT=z
STDERR=Ú
z\.\.\. skipped '(.*?)'NzGNU gdb)ÚmsgÚOKÚFAILÚERROR)r„   ÚreÚsearchÚskipTestÚgroupÚassertInÚassertNotIn)r.   ÚoÚeÚdbgmsgÚmÚinjected_methods   &    €r    Útest_templateÚ-TestGdbBinding._inject.<locals>.test_templateÂ   s›   ø€ Ø×4Ñ4°_ÓE‰DˆAØ    9¨Q¨C¨rÐ2ˆFô —	’	Ð3°QÓ7ˆAØŠ}Ø—‘˜aŸg™g a›jÔ)Ø�M‰M˜) QˆMÔ3Ø�M‰M˜$ ˆMÔ.Ø×Ñ˜V QÐÔ3Ø×Ñ˜W aÐÖ4r"   ÚquickN)r)   rO   rN   ÚendswithÚreplaceÚsetattrr   )ÚclsÚnameÚthemodÚtheclsÚmethnamer›   rš   s   &&    @r    Ú_injectÚTestGdbBinding._inject¹   sq   ø€ ä!×,Ñ,ˆÜ!×*Ñ*ˆà�}‰}˜W×%Ò%Ð%Ð%Ø—<‘< ¨Ó,ˆÛ(.³ºÐ=ˆõ	5ð �dŒ?Ü�C =Ö1ä�C¤<°Ó#>Ö?r"   c                ó†   € \        \        4       F-  pVP                  R 4      '       g   K  V P                  V4       K/  	  R# )Útest_gdbN)Údirr)   Ú
startswithr¦   )r¡   r¢   s   & r    ÚgenerateÚTestGdbBinding.generateÓ   s-   € äÔ(Ö)ˆDØ�‰˜z×*Ô*Ø—‘˜DÖ!ó *r"   rM   N)F)rN   rO   rP   rQ   rR   Ú_numba_parallel_test_Ú_DEBUGrv   r„   Úclassmethodr¦   r¬   rT   rU   rV   s   @r    rY   rY   †   sL   ø‡ € ñð "Ðà€Fôò6Cð ñ@ó ð@ð2 ñ"ó ö"r"   rY   c                   ó0   a € ] tR t^Ýt o ]R 4       tRtV tR# )ÚTestGdbMiscc                ó¦   a a€ R  pRoVV 3R lp\        \        \        .4       F  w  r4V! W44      pV! V4       K  	  \        R 4       pV! V4       R# )c                 ó*   a a€ \         V V3R  l4       pV# )c                  ó8   <€ ^p S! 4        ^pS! 4        W,           # ©é   rM   )r   r   Úf1Úf2s     €€r    ÚimplÚ:TestGdbMisc.test_call_gdb_twice.<locals>.gen.<locals>.implå   s   ø€ à�Ù”Ø�Ù”Ø•u�r"   )r   )r¸   r¹   rº   s   ff r    ÚgenÚ,TestGdbMisc.test_call_gdb_twice.<locals>.genä   s   ù€ Üõó ðð ˆKr"   z8Calling either numba.gdb() or numba.gdb_init() more thanc                 óæ   <€ SP                  \        P                  4      ;_uu_ 4       pV ! 4        R R R 4       SP                  S\	        XP
                  4      4       R #   + '       g   i     L7; ir`   )ÚassertRaisesr   ÚUnsupportedErrorr”   ÚstrÚ	exception)ÚfuncÚraisesÚmsg_headr.   s   & €€r    ÚcheckÚ.TestGdbMisc.test_call_gdb_twice.<locals>.checkð   sH   ø€ Ø×"Ñ"¤6×#:Ñ#:×;Ô;¸vÙ”÷ <à�M‰M˜(¤C¨×(8Ñ(8Ó$9Ö:÷ <×;ús   ©A Á A0	c                  óB   € ^p \        4        ^p\        4        W,           # r¶   )r   r   )r   r   s     r    Úuse_globalsÚ4TestGdbMisc.test_call_gdb_twice.<locals>.use_globalsù   s   € àˆAÜŒEØˆAÜŒJØ•5ˆLr"   N)r   r   r   r   )r.   r¼   rÆ   Úg1Úg2rÃ   rÉ   rÅ   s   f      @r    Útest_call_gdb_twiceÚTestGdbMisc.test_call_gdb_twiceâ   sZ   ù€ ò	ð Nˆö	;ô
 #¤C¬ ?Ö3‰FˆBÙ�r“;ˆDÙ�$ŽKñ 4ô 
ñ	ó 
ð	ñ 	ˆkÖr"   rM   N)rN   rO   rP   rQ   r   rÍ   rT   rU   rV   s   @r    r²   r²   Ý   s   ø‡ € ð
 ñó ör"   r²   c                   ó&   a € ] tR tRt o R tRtV tR# )ÚTestGdbExceptionsi  c           	     ób  a€ R  pV\        RR7      \        3 F€  p\        \        3 Fm  oV3R lpV P	                  \
        P                  4      ;_uu_ 4       pV! V4      ! 4        RRR4       RpV P                  V\        XP                  4      4       Ko  	  K‚  	  R#   + '       g   i     LA; i)c                 ó   € V # r`   rM   )Úxs   &r    Únop_compilerÚ5TestGdbExceptions.test_call_gdb.<locals>.nop_compiler  s   € ØˆHr"   T)r   c                  ó   <€ S ! 4        R # r`   rM   )Úmeths   €r    Úpython_funcÚ4TestGdbExceptions.test_call_gdb.<locals>.python_func  s   ø€ Ù–Fr"   Nz2gdb support is only available on unix-like systems)
r	   r   r   r   r¿   r   ÚTypingErrorr”   rÁ   rÂ   )r.   rÔ   ÚcompilerrØ   rÄ   rŒ   r×   s   &     @r    Útest_call_gdbÚTestGdbExceptions.test_call_gdb  s‚   ø€ ò	à%¤s°DÔ'9¼4Ó@ˆHÜœh›�õà×&Ñ&¤v×'9Ñ'9×:Ô:¸fÙ˜[Ô)Ô+÷ ;àJ�Ø—‘˜c¤3 v×'7Ñ'7Ó#8Ö9ó (ó A÷ ;×:ús   ÁB	ÂB.rM   N)rN   rO   rP   rQ   rÜ   rT   rU   rV   s   @r    rÐ   rÐ     s   ø‡ € ÷
:ð 
:r"   rÐ   Ú__main__>   Úarmv7lÚaarch64)6rR   r{   Úplatformr�   re   r~   rh   Ú	itertoolsr   Únumbar   r   r   r   r   Ú
numba.corer   r	   Únumba.tests.supportr
   r   r   r   Únumba.tests.gdb_supportr   ÚunittestÚ	_platformr«   Ú
_unix_likeÚ
skipUnlessÚ	unix_onlyÚskipIfÚnot_unixÚmachineÚ
_arch_nameÚ_is_armÚnot_armr|   ÚgetÚ	_gdb_condrS   r   r3   r8   r!   r$   r'   r)   rY   r¬   r²   rÐ   rN   ÚmainrM   r"   r    Ú<module>rõ      sô  ðñó 
Û Û 	Û Û 
Û Ý "ç =Õ =Ý Ý ÷;ó ;å -Û ð �L‰L€	à×"Ñ" 7Ó+÷ &ð &Ø×%Ñ% hÓ/÷&ð &à˜9Ñ$ð ð ×Ò 
Ð,FÓG€	Ø�?Š?˜:Ð'EÓF€à×ÒÓ€
Ø
Ð-Ñ
-€Ø
�/Š/˜'Ð#<Ó
=€à�J‰J�N‰N˜: tÓ,°Ñ3€	Ø×'Ò'¨	Ð3FÓGÐ á�>Ó"€á�tÔ€	Ù˜ DÔ)€òòòð 	Ø
ô9C�xó 9Có ó 	ð9Cðx 	Ø
Ø
ôN"�Xó N"ó ó ó 	ðN"ðb × Ñ Ô ð 	Ø
Ø
ô!�(ó !ó ó ó 	ð!ðH 
ô:˜ó :ó 
ð:ð ˆzÔØ‡M‚M†Oñ r"   