Repository navigation
Expand file tree
/
Copy pathgdb_helpers.po
More file actions
667 lines (581 loc) · 51.6 KB
/
Copy pathgdb_helpers.po
File metadata and controls
667 lines (581 loc) · 51.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Alireza Shabani (Revisto) <theRevisto@gmail.com>, 2025
# Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026
# arman mohebali <armanmohebali@outlook.com>, 2026
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-01 14:41+0330\n"
"PO-Revision-Date: 2024-02-25 01:11+0000\n"
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
"Language: fa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
msgid "Debugging C API extensions and CPython Internals with GDB"
msgstr "اشکالزدایی افزونههای C API و درونیهای CPython با GDB"
msgid "This document explains how the Python GDB extension, ``python-gdb.py``, can be used with the GDB debugger to debug CPython extensions and the CPython interpreter itself."
msgstr "این سند توضیح میدهد که چگونه میتوان از افزونه GDB پایتون، ``python-gdb.py``، به همراه اشکالزدای GDB برای اشکالزدایی افزونههای CPython و خود مفسر CPython استفاده کرد."
msgid "When debugging low-level problems such as crashes or deadlocks, a low-level debugger, such as GDB, is useful to diagnose and correct the issue. By default, GDB (or any of its front-ends) doesn't support high-level information specific to the CPython interpreter."
msgstr "هنگام اشکالزدایی از مشکلات سطح پایین مانند فروپاشیها یا بنبستها، یک اشکالزدای سطح پایین مانند GDB برای تشخیص و اصلاح مشکل مفید است. بهطور پیشفرض، GDB (یا هر یک از پیشانههای آن) از اطلاعات سطح بالایی که مختص مفسر CPython است پشتیبانی نمیکند."
msgid "The ``python-gdb.py`` extension adds CPython interpreter information to GDB. The extension helps introspect the stack of currently executing Python functions. Given a Python object represented by a :c:expr:`PyObject *` pointer, the extension surfaces the type and value of the object."
msgstr "افزونه ``python-gdb.py`` اطلاعات مفسر CPython را به GDB اضافه میکند. این افزونه به دروننگری پشته توابع پایتونی که در حال حاضر اجرا میشوند، کمک میکند. با داشتن یک شیء پایتون که با یک اشارهگر :c:expr:`PyObject *` نمایش داده میشود، این افزونه نوع و مقدار آن شیء را نمایان میکند."
msgid "Developers who are working on CPython extensions or tinkering with parts of CPython that are written in C can use this document to learn how to use the ``python-gdb.py`` extension with GDB."
msgstr "توسعهدهندگانی که روی افزونههای CPython کار میکنند یا بخشهایی از CPython را که به زبان C نوشته شدهاند دستکاری میکنند، میتوانند از این سند برای یادگیری نحوه استفاده از افزونه ``python-gdb.py`` در GDB استفاده کنند."
msgid "This document assumes that you are familiar with the basics of GDB and the CPython C API. It consolidates guidance from the `devguide <https://devguide.python.org>`_ and the `Python wiki <https://wiki.python.org/moin/DebuggingWithGdb>`_."
msgstr "این سند فرض میکند که شما با مبانی GDB و CPython C API آشنا هستید. این سند راهنماییهایی را از `devguide <https://devguide.python.org>`_ و `ویکی پایتون <https://wiki.python.org/moin/DebuggingWithGdb>`_ گردآوری میکند."
msgid "Prerequisites"
msgstr "پیشنیازها"
msgid "You need to have:"
msgstr "شما باید داشته باشید:"
msgid "GDB 7 or later. (For earlier versions of GDB, see ``Misc/gdbinit`` in the sources of Python 3.11 or earlier.)"
msgstr "GDB 7 یا جدیدتر. (برای نسخههای قدیمیتر GDB، به ``Misc/gdbinit`` در کد منبع پایتون 3.11 یا قدیمیتر مراجعه کنید.)"
msgid "GDB-compatible debugging information for Python and any extension you are debugging."
msgstr "اطلاعات اشکالزدایی سازگار با GDB برای پایتون و هر افزونهای که در حال اشکالزدایی آن هستید."
msgid "The ``python-gdb.py`` extension."
msgstr "افزونهی ``python-gdb.py``."
msgid "The extension is built with Python, but might be distributed separately or not at all. Below, we include tips for a few common systems as examples. Note that even if the instructions match your system, they might be outdated."
msgstr "این افزونه با پایتون ساخته میشود، اما ممکن است بهصورت جداگانه توزیع شود یا اصلاً توزیع نشود. در ادامه، نکاتی برای چند سیستم رایج بهعنوان مثال آوردهایم. توجه داشته باشید که حتی اگر دستورالعملها با سیستم شما مطابقت داشته باشند، ممکن است قدیمی باشند."
msgid "Setup with Python built from source"
msgstr "راهاندازی با پایتون ساختهشده از منبع"
msgid "When you build CPython from source, debugging information should be available, and the build should add a ``python-gdb.py`` file to the root directory of your repository."
msgstr "هنگامی که CPython را از منبع میسازید، اطلاعات اشکالزدایی باید در دسترس باشد و فرآیند ساخت باید پرونده ``python-gdb.py`` را به پوشهی ریشهی مخزن شما اضافه کند."
msgid "To activate support, you must add the directory containing ``python-gdb.py`` to GDB's \"auto-load-safe-path\". If you haven't done this, recent versions of GDB will print out a warning with instructions on how to do this."
msgstr "برای فعالسازی پشتیبانی، باید پوشهی حاوی ``python-gdb.py`` را به \"auto-load-safe-path\" در GDB اضافه کنید. اگر این کار را انجام ندادهاید، نسخههای اخیر GDB هشدار همراه با دستورالعملهایی درباره چگونگی انجام این کار نمایش میدهند."
msgid "If you do not see instructions for your version of GDB, put this in your configuration file (``~/.gdbinit`` or ``~/.config/gdb/gdbinit``)::"
msgstr "اگر دستورالعملهایی برای نسخه GDB خود نمیبینید، این را در پرونده پیکربندی خود (``~/.gdbinit`` یا ``~/.config/gdb/gdbinit``) قرار دهید::"
msgid "add-auto-load-safe-path /path/to/cpython"
msgstr "add-auto-load-safe-path /path/to/cpython"
msgid "You can also add multiple paths, separated by ``:``."
msgstr "همچنین میتوانید چندین مسیر را که با ``:`` جدا شدهاند، اضافه کنید."
msgid "Setup for Python from a Linux distro"
msgstr "راهاندازی پایتون از یک توزیع لینوکس"
msgid "Most Linux systems provide debug information for the system Python in a package called ``python-debuginfo``, ``python-dbg`` or similar. For example:"
msgstr "بیشتر سیستمهای لینوکسی اطلاعات اشکالزدایی برای پایتون سیستم را در بستهای به نام ``python-debuginfo``، ``python-dbg`` یا مشابه آن ارائه میدهند. برای مثال:"
msgid "Fedora:"
msgstr "فدورا:"
msgid ""
"sudo dnf install gdb\n"
"sudo dnf debuginfo-install python3"
msgstr ""
"sudo dnf install gdb\n"
"sudo dnf debuginfo-install python3"
msgid "Ubuntu:"
msgstr "اوبونتو:"
msgid "sudo apt install gdb python3-dbg"
msgstr "sudo apt install gdb python3-dbg"
msgid "On several recent Linux systems, GDB can download debugging symbols automatically using *debuginfod*. However, this will not install the ``python-gdb.py`` extension; you generally do need to install the debug info package separately."
msgstr "در چندین سیستم لینوکسی اخیر، GDB میتواند نمادهای اشکالزدایی را بهصورت خودکار با استفاده از *debuginfod* بارگیری کند. با این حال، این کار افزونهی ``python-gdb.py`` را نصب نمیکند؛ شما معمولاً باید بستهی اطلاعات اشکالزدایی را بهصورت جداگانه نصب کنید."
msgid "Using the Debug build and Development mode"
msgstr "استفاده از ساخت اشکالزدایی و حالت توسعه"
msgid "For easier debugging, you might want to:"
msgstr "برای اشکالزدایی آسانتر، ممکن است بخواهید:"
msgid "Use a :ref:`debug build <debug-build>` of Python. (When building from source, use ``configure --with-pydebug``. On Linux distros, install and run a package like ``python-debug`` or ``python-dbg``, if available.)"
msgstr "از یک :ref:`ساخت اشکالزدایی <debug-build>` پایتون استفاده کنید. (هنگام ساخت از منبع، از ``configure --with-pydebug`` استفاده کنید. در توزیعهای لینوکس، بستهای مانند ``python-debug`` یا ``python-dbg`` را در صورت وجود نصب و اجرا کنید.)"
msgid "Use the runtime :ref:`development mode <devmode>` (``-X dev``)."
msgstr "از :ref:`حالت توسعهی رانتایم <devmode>` (``-X dev``) استفاده کنید."
msgid "Both enable extra assertions and disable some optimizations. Sometimes this hides the bug you are trying to find, but in most cases they make the process easier."
msgstr "هر دو ادعاهای اضافی را فعال میکنند و برخی بهینهسازیها را غیرفعال میکنند. گاهی اوقات این کار، اشکالی را که سعی در یافتن آن دارید پنهان میکند، اما در بیشتر موارد فرایند را آسانتر میکنند."
msgid "Using the ``python-gdb`` extension"
msgstr "استفاده از افزونهی ``python-gdb``"
msgid "When the extension is loaded, it provides two main features: pretty printers for Python values, and additional commands."
msgstr "هنگامی که افزونه بارگذاری میشود، دو قابلیت اصلی ارائه میدهد: چاپگرهای زیبا (pretty printers) برای مقادیر پایتون و دستورات اضافی."
msgid "Pretty-printers"
msgstr "زیبانویسها (Pretty-printers)"
msgid "This is what a GDB backtrace looks like (truncated) when this extension is enabled::"
msgstr "هنگامی که این افزونه فعال باشد، یک ردگیری پشته GDB به این شکل است (کوتاهشده)::"
msgid ""
"#0 0x000000000041a6b1 in PyObject_Malloc (nbytes=Cannot access memory at address 0x7fffff7fefe8\n"
") at Objects/obmalloc.c:748\n"
"#1 0x000000000041b7c0 in _PyObject_DebugMallocApi (id=111 'o', nbytes=24) at Objects/obmalloc.c:1445\n"
"#2 0x000000000041b717 in _PyObject_DebugMalloc (nbytes=24) at Objects/obmalloc.c:1412\n"
"#3 0x000000000044060a in _PyUnicode_New (length=11) at Objects/unicodeobject.c:346\n"
"#4 0x00000000004466aa in PyUnicodeUCS2_DecodeUTF8Stateful (s=0x5c2b8d \"__lltrace__\", size=11, errors=0x0, consumed=\n"
" 0x0) at Objects/unicodeobject.c:2531\n"
"#5 0x0000000000446647 in PyUnicodeUCS2_DecodeUTF8 (s=0x5c2b8d \"__lltrace__\", size=11, errors=0x0)\n"
" at Objects/unicodeobject.c:2495\n"
"#6 0x0000000000440d1b in PyUnicodeUCS2_FromStringAndSize (u=0x5c2b8d \"__lltrace__\", size=11)\n"
" at Objects/unicodeobject.c:551\n"
"#7 0x0000000000440d94 in PyUnicodeUCS2_FromString (u=0x5c2b8d \"__lltrace__\") at Objects/unicodeobject.c:569\n"
"#8 0x0000000000584abd in PyDict_GetItemString (v=\n"
" {'Yuck': <type at remote 0xad4730>, '__builtins__': <module at remote 0x7ffff7fd5ee8>, '__file__': 'Lib/test/crashers/nasty_eq_vs_dict.py', '__package__': None, 'y': <Yuck(i=0) at remote 0xaacd80>, 'dict': {0: 0, 1: 1, 2: 2, 3: 3}, '__name__': '__main__', 'z': <Yuck(i=0) at remote 0xaace60>, '__doc__': None}, key=\n"
" 0x5c2b8d \"__lltrace__\") at Objects/dictobject.c:2171"
msgstr ""
"#0 0x000000000041a6b1 in PyObject_Malloc (nbytes=Cannot access memory at address 0x7fffff7fefe8\n"
") at Objects/obmalloc.c:748\n"
"#1 0x000000000041b7c0 in _PyObject_DebugMallocApi (id=111 'o', nbytes=24) at Objects/obmalloc.c:1445\n"
"#2 0x000000000041b717 in _PyObject_DebugMalloc (nbytes=24) at Objects/obmalloc.c:1412\n"
"#3 0x000000000044060a in _PyUnicode_New (length=11) at Objects/unicodeobject.c:346\n"
"#4 0x00000000004466aa in PyUnicodeUCS2_DecodeUTF8Stateful (s=0x5c2b8d \"__lltrace__\", size=11, errors=0x0, consumed=\n"
" 0x0) at Objects/unicodeobject.c:2531\n"
"#5 0x0000000000446647 in PyUnicodeUCS2_DecodeUTF8 (s=0x5c2b8d \"__lltrace__\", size=11, errors=0x0)\n"
" at Objects/unicodeobject.c:2495\n"
"#6 0x0000000000440d1b in PyUnicodeUCS2_FromStringAndSize (u=0x5c2b8d \"__lltrace__\", size=11)\n"
" at Objects/unicodeobject.c:551\n"
"#7 0x0000000000440d94 in PyUnicodeUCS2_FromString (u=0x5c2b8d \"__lltrace__\") at Objects/unicodeobject.c:569\n"
"#8 0x0000000000584abd in PyDict_GetItemString (v=\n"
" {'Yuck': <type at remote 0xad4730>, '__builtins__': <module at remote 0x7ffff7fd5ee8>, '__file__': 'Lib/test/crashers/nasty_eq_vs_dict.py', '__package__': None, 'y': <Yuck(i=0) at remote 0xaacd80>, 'dict': {0: 0, 1: 1, 2: 2, 3: 3}, '__name__': '__main__', 'z': <Yuck(i=0) at remote 0xaace60>, '__doc__': None}, key=\n"
" 0x5c2b8d \"__lltrace__\") at Objects/dictobject.c:2171"
msgid "Notice how the dictionary argument to ``PyDict_GetItemString`` is displayed as its ``repr()``, rather than an opaque ``PyObject *`` pointer."
msgstr "توجه کنید که چگونه آرگومان دیکشنریِ ``PyDict_GetItemString`` بهصورت ``repr()`` آن نمایش داده میشود، نه بهصورت یک اشارهگر مبهم ``PyObject *``."
msgid "The extension works by supplying a custom printing routine for values of type ``PyObject *``. If you need to access lower-level details of an object, then cast the value to a pointer of the appropriate type. For example::"
msgstr "این افزونه با ارائه یک روال چاپ سفارشی برای مقادیری از نوع ``PyObject *`` کار میکند. اگر نیاز دارید به جزئیات سطح پایینتر یک شیء دسترسی پیدا کنید، مقدار را به اشارهگری از نوع مناسب تبدیل کنید. برای مثال::"
msgid ""
"(gdb) p globals\n"
"$1 = {'__builtins__': <module at remote 0x7ffff7fb1868>, '__name__':\n"
"'__main__', 'ctypes': <module at remote 0x7ffff7f14360>, '__doc__': None,\n"
"'__package__': None}\n"
"\n"
"(gdb) p *(PyDictObject*)globals\n"
"$2 = {ob_refcnt = 3, ob_type = 0x3dbdf85820, ma_fill = 5, ma_used = 5,\n"
"ma_mask = 7, ma_table = 0x63d0f8, ma_lookup = 0x3dbdc7ea70\n"
"<lookdict_string>, ma_smalltable = {{me_hash = 7065186196740147912,\n"
"me_key = '__builtins__', me_value = <module at remote 0x7ffff7fb1868>},\n"
"{me_hash = -368181376027291943, me_key = '__name__',\n"
"me_value ='__main__'}, {me_hash = 0, me_key = 0x0, me_value = 0x0},\n"
"{me_hash = 0, me_key = 0x0, me_value = 0x0},\n"
"{me_hash = -9177857982131165996, me_key = 'ctypes',\n"
"me_value = <module at remote 0x7ffff7f14360>},\n"
"{me_hash = -8518757509529533123, me_key = '__doc__', me_value = None},\n"
"{me_hash = 0, me_key = 0x0, me_value = 0x0}, {\n"
" me_hash = 6614918939584953775, me_key = '__package__', me_value = None}}}"
msgstr ""
"(gdb) p globals\n"
"$1 = {'__builtins__': <module at remote 0x7ffff7fb1868>, '__name__':\n"
"'__main__', 'ctypes': <module at remote 0x7ffff7f14360>, '__doc__': None,\n"
"'__package__': None}\n"
"\n"
"(gdb) p *(PyDictObject*)globals\n"
"$2 = {ob_refcnt = 3, ob_type = 0x3dbdf85820, ma_fill = 5, ma_used = 5,\n"
"ma_mask = 7, ma_table = 0x63d0f8, ma_lookup = 0x3dbdc7ea70\n"
"<lookdict_string>, ma_smalltable = {{me_hash = 7065186196740147912,\n"
"me_key = '__builtins__', me_value = <module at remote 0x7ffff7fb1868>},\n"
"{me_hash = -368181376027291943, me_key = '__name__',\n"
"me_value ='__main__'}, {me_hash = 0, me_key = 0x0, me_value = 0x0},\n"
"{me_hash = 0, me_key = 0x0, me_value = 0x0},\n"
"{me_hash = -9177857982131165996, me_key = 'ctypes',\n"
"me_value = <module at remote 0x7ffff7f14360>},\n"
"{me_hash = -8518757509529533123, me_key = '__doc__', me_value = None},\n"
"{me_hash = 0, me_key = 0x0, me_value = 0x0}, {\n"
" me_hash = 6614918939584953775, me_key = '__package__', me_value = None}}}"
msgid "Note that the pretty-printers do not actually call ``repr()``. For basic types, they try to match its result closely."
msgstr "توجه داشته باشید که زیبانویسها (pretty-printers) در واقع ``repr()`` را فراخوانی نمیکنند. برای انواع پایه، آنها تلاش میکنند تا حد زیادی با نتیجهی آن مطابقت داشته باشند."
msgid "An area that can be confusing is that the custom printer for some types look a lot like GDB's built-in printer for standard types. For example, the pretty-printer for a Python ``int`` (:c:expr:`PyLongObject *`) gives a representation that is not distinguishable from one of a regular machine-level integer::"
msgstr "یکی از مواردی که ممکن است باعث سردرگمی شود این است که چاپگر سفارشی برخی از انواع، بسیار شبیه چاپگر توکار GDB برای انواع استاندارد است. برای مثال، زیبانویس (pretty-printer) برای ``int`` پایتون (:c:expr:`PyLongObject *`) نمایشی ارائه میدهد که از نمایش یک عدد صحیح معمولی در سطح ماشین قابل تشخیص نیست::"
msgid ""
"(gdb) p some_machine_integer\n"
"$3 = 42\n"
"\n"
"(gdb) p some_python_integer\n"
"$4 = 42"
msgstr ""
"(gdb) p some_machine_integer\n"
"$3 = 42\n"
"\n"
"(gdb) p some_python_integer\n"
"$4 = 42"
msgid "The internal structure can be revealed with a cast to :c:expr:`PyLongObject *`::"
msgstr "ساختار داخلی را میتوان با یک تبدیل نوع (cast) به :c:expr:`PyLongObject *` نمایان کرد::"
msgid ""
"(gdb) p *(PyLongObject*)some_python_integer\n"
"$5 = {ob_base = {ob_base = {ob_refcnt = 8, ob_type = 0x3dad39f5e0}, ob_size = 1},\n"
"ob_digit = {42}}"
msgstr ""
"(gdb) p *(PyLongObject*)some_python_integer\n"
"$5 = {ob_base = {ob_base = {ob_refcnt = 8, ob_type = 0x3dad39f5e0}, ob_size = 1},\n"
"ob_digit = {42}}"
msgid "A similar confusion can arise with the ``str`` type, where the output looks a lot like gdb's built-in printer for ``char *``::"
msgstr "ممکن است سردرگمی مشابهی در مورد نوع ``str`` پیش بیاید، که خروجی آن بسیار شبیه به چاپگر توکار gdb برای ``char *`` است::"
msgid ""
"(gdb) p ptr_to_python_str\n"
"$6 = '__builtins__'"
msgstr ""
"(gdb) p ptr_to_python_str\n"
"$6 = '__builtins__'"
msgid "The pretty-printer for ``str`` instances defaults to using single-quotes (as does Python's ``repr`` for strings) whereas the standard printer for ``char *`` values uses double-quotes and contains a hexadecimal address::"
msgstr " زیبانویس (pretty-printer) برای نمونههای ``str`` بهطور پیشفرض از علامت نقلقول تکی استفاده میکند (همانگونه که ``repr`` پایتون برای رشتهها عمل میکند)، در حالی که چاپگر استاندارد برای مقادیر ``char *`` از علامت نقلقول دوتایی استفاده میکند و شامل یک نشانی مبنای شانزده است::"
msgid ""
"(gdb) p ptr_to_char_star\n"
"$7 = 0x6d72c0 \"hello world\""
msgstr ""
"(gdb) p ptr_to_char_star\n"
"$7 = 0x6d72c0 \"hello world\""
msgid "Again, the implementation details can be revealed with a cast to :c:expr:`PyUnicodeObject *`::"
msgstr "بار دیگر، جزئیات پیادهسازی را میتوان با یک تبدیل نوع (cast) به :c:expr:`PyUnicodeObject *` آشکار کرد::"
msgid ""
"(gdb) p *(PyUnicodeObject*)$6\n"
"$8 = {ob_base = {ob_refcnt = 33, ob_type = 0x3dad3a95a0}, length = 12,\n"
"str = 0x7ffff2128500, hash = 7065186196740147912, state = 1, defenc = 0x0}"
msgstr ""
"(gdb) p *(PyUnicodeObject*)$6\n"
"$8 = {ob_base = {ob_refcnt = 33, ob_type = 0x3dad3a95a0}, length = 12,\n"
"str = 0x7ffff2128500, hash = 7065186196740147912, state = 1, defenc = 0x0}"
msgid "``py-list``"
msgstr "``py-list``"
msgid "The extension adds a ``py-list`` command, which lists the Python source code (if any) for the current frame in the selected thread. The current line is marked with a \">\"::"
msgstr "این افزونه دستور ``py-list`` را اضافه میکند، که کد منبع پایتون (در صورت وجود) برای فریم جاری در نخ انتخابشده را فهرست میکند. خط جاری با «>» مشخص میشود::"
msgid ""
"(gdb) py-list\n"
" 901 if options.profile:\n"
" 902 options.profile = False\n"
" 903 profile_me()\n"
" 904 return\n"
" 905\n"
">906 u = UI()\n"
" 907 if not u.quit:\n"
" 908 try:\n"
" 909 gtk.main()\n"
" 910 except KeyboardInterrupt:\n"
" 911 # properly quit on a keyboard interrupt..."
msgstr ""
"(gdb) py-list\n"
" 901 if options.profile:\n"
" 902 options.profile = False\n"
" 903 profile_me()\n"
" 904 return\n"
" 905\n"
">906 u = UI()\n"
" 907 if not u.quit:\n"
" 908 try:\n"
" 909 gtk.main()\n"
" 910 except KeyboardInterrupt:\n"
" 911 # properly quit on a keyboard interrupt..."
msgid "Use ``py-list START`` to list at a different line number within the Python source, and ``py-list START,END`` to list a specific range of lines within the Python source."
msgstr "برای فهرست کردن سطرها از یک شمارهخط متفاوت در کد منبع پایتون، از ``py-list START`` و برای فهرست کردن محدوده مشخصی از سطرها در کد منبع پایتون، از ``py-list START,END`` استفاده کنید."
msgid "``py-up`` and ``py-down``"
msgstr "``py-up`` و ``py-down``"
msgid "The ``py-up`` and ``py-down`` commands are analogous to GDB's regular ``up`` and ``down`` commands, but try to move at the level of CPython frames, rather than C frames."
msgstr "دستورهای ``py-up`` و ``py-down`` مشابه دستورهای معمولی ``up`` و ``down`` در GDB هستند، اما تلاش میکنند در سطح فریمهای CPython حرکت کنند، نه فریمهای C."
msgid "GDB is not always able to read the relevant frame information, depending on the optimization level with which CPython was compiled. Internally, the commands look for C frames that are executing the default frame evaluation function (that is, the core bytecode interpreter loop within CPython) and look up the value of the related ``PyFrameObject *``."
msgstr "GDB همیشه قادر به خواندن اطلاعات فریممرتبط نیست؛ این موضوع به سطح بهینهسازی مورد استفاده در کامپایل CPython بستگی دارد. در سطح داخلی، این دستورات به دنبال فریمهای C میگردند که در حال اجرای تابع ارزیابی فریم پیشفرض هستند (یعنی حلقه اصلی مفسر بایتکد در CPython) و مقدار ``PyFrameObject *`` مرتبط را پیدا میکنند."
msgid "They emit the frame number (at the C level) within the thread."
msgstr "آنها شمارهی فریم (در سطح C) را درون نخ نشان میدهد."
msgid "For example::"
msgstr "برای مثال::"
msgid ""
"(gdb) py-up\n"
"#37 Frame 0x9420b04, for file /usr/lib/python2.6/site-packages/\n"
"gnome_sudoku/main.py, line 906, in start_game ()\n"
" u = UI()\n"
"(gdb) py-up\n"
"#40 Frame 0x948e82c, for file /usr/lib/python2.6/site-packages/\n"
"gnome_sudoku/gnome_sudoku.py, line 22, in start_game(main=<module at remote 0xb771b7f4>)\n"
" main.start_game()\n"
"(gdb) py-up\n"
"Unable to find an older python frame"
msgstr ""
"(gdb) py-up\n"
"#37 Frame 0x9420b04, for file /usr/lib/python2.6/site-packages/\n"
"gnome_sudoku/main.py, line 906, in start_game ()\n"
" u = UI()\n"
"(gdb) py-up\n"
"#40 Frame 0x948e82c, for file /usr/lib/python2.6/site-packages/\n"
"gnome_sudoku/gnome_sudoku.py, line 22, in start_game(main=<module at remote 0xb771b7f4>)\n"
" main.start_game()\n"
"(gdb) py-up\n"
"Unable to find an older python frame"
msgid "so we're at the top of the Python stack."
msgstr "بنابراین، در بالای پشتهی پایتون هستیم."
msgid "The frame numbers correspond to those displayed by GDB's standard ``backtrace`` command. The command skips C frames which are not executing Python code."
msgstr "شماره فریمها با شمارههایی که توسط فرمان استاندارد ``backtrace`` در GDB نمایش داده میشوند، مطابقت دارند. این فرمان، فریمهای C را که در حال اجرای کد پایتون نیستند، نادیده میگیرد."
msgid "Going back down::"
msgstr "بازگشت به پایین::"
msgid ""
"(gdb) py-down\n"
"#37 Frame 0x9420b04, for file /usr/lib/python2.6/site-packages/gnome_sudoku/main.py, line 906, in start_game ()\n"
" u = UI()\n"
"(gdb) py-down\n"
"#34 (unable to read python frame information)\n"
"(gdb) py-down\n"
"#23 (unable to read python frame information)\n"
"(gdb) py-down\n"
"#19 (unable to read python frame information)\n"
"(gdb) py-down\n"
"#14 Frame 0x99262ac, for file /usr/lib/python2.6/site-packages/gnome_sudoku/game_selector.py, line 201, in run_swallowed_dialog (self=<NewOrSavedGameSelector(new_game_model=<gtk.ListStore at remote 0x98fab44>, puzzle=None, saved_games=[{'gsd.auto_fills': 0, 'tracking': {}, 'trackers': {}, 'notes': [], 'saved_at': 1270084485, 'game': '7 8 0 0 0 0 0 5 6 0 0 9 0 8 0 1 0 0 0 4 6 0 0 0 0 7 0 6 5 0 0 0 4 7 9 2 0 0 0 9 0 1 0 0 0 3 9 7 6 0 0 0 1 8 0 6 0 0 0 0 2 8 0 0 0 5 0 4 0 6 0 0 2 1 0 0 0 0 0 4 5\\n7 8 0 0 0 0 0 5 6 0 0 9 0 8 0 1 0 0 0 4 6 0 0 0 0 7 0 6 5 1 8 3 4 7 9 2 0 0 0 9 0 1 0 0 0 3 9 7 6 0 0 0 1 8 0 6 0 0 0 0 2 8 0 0 0 5 0 4 0 6 0 0 2 1 0 0 0 0 0 4 5', 'gsd.impossible_hints': 0, 'timer.__absolute_start_time__': <float at remote 0x984b474>, 'gsd.hints': 0, 'timer.active_time': <float at remote 0x984b494>, 'timer.total_time': <float at remote 0x984b464>}], dialog=<gtk.Dialog at remote 0x98faaa4>, saved_game_model=<gtk.ListStore at remote 0x98fad24>, sudoku_maker=<SudokuMaker(terminated=False, played=[], batch_siz...(truncated)\n"
" swallower.run_dialog(self.dialog)\n"
"(gdb) py-down\n"
"#11 Frame 0x9aead74, for file /usr/lib/python2.6/site-packages/gnome_sudoku/dialog_swallower.py, line 48, in run_dialog (self=<SwappableArea(running=<gtk.Dialog at remote 0x98faaa4>, main_page=0) at remote 0x98fa6e4>, d=<gtk.Dialog at remote 0x98faaa4>)\n"
" gtk.main()\n"
"(gdb) py-down\n"
"#8 (unable to read python frame information)\n"
"(gdb) py-down\n"
"Unable to find a newer python frame"
msgstr ""
"(gdb) py-down\n"
"#37 Frame 0x9420b04, for file /usr/lib/python2.6/site-packages/gnome_sudoku/main.py, line 906, in start_game ()\n"
" u = UI()\n"
"(gdb) py-down\n"
"#34 (unable to read python frame information)\n"
"(gdb) py-down\n"
"#23 (unable to read python frame information)\n"
"(gdb) py-down\n"
"#19 (unable to read python frame information)\n"
"(gdb) py-down\n"
"#14 Frame 0x99262ac, for file /usr/lib/python2.6/site-packages/gnome_sudoku/game_selector.py, line 201, in run_swallowed_dialog (self=<NewOrSavedGameSelector(new_game_model=<gtk.ListStore at remote 0x98fab44>, puzzle=None, saved_games=[{'gsd.auto_fills': 0, 'tracking': {}, 'trackers': {}, 'notes': [], 'saved_at': 1270084485, 'game': '7 8 0 0 0 0 0 5 6 0 0 9 0 8 0 1 0 0 0 4 6 0 0 0 0 7 0 6 5 0 0 0 4 7 9 2 0 0 0 9 0 1 0 0 0 3 9 7 6 0 0 0 1 8 0 6 0 0 0 0 2 8 0 0 0 5 0 4 0 6 0 0 2 1 0 0 0 0 0 4 5\\n7 8 0 0 0 0 0 5 6 0 0 9 0 8 0 1 0 0 0 4 6 0 0 0 0 7 0 6 5 1 8 3 4 7 9 2 0 0 0 9 0 1 0 0 0 3 9 7 6 0 0 0 1 8 0 6 0 0 0 0 2 8 0 0 0 5 0 4 0 6 0 0 2 1 0 0 0 0 0 4 5', 'gsd.impossible_hints': 0, 'timer.__absolute_start_time__': <float at remote 0x984b474>, 'gsd.hints': 0, 'timer.active_time': <float at remote 0x984b494>, 'timer.total_time': <float at remote 0x984b464>}], dialog=<gtk.Dialog at remote 0x98faaa4>, saved_game_model=<gtk.ListStore at remote 0x98fad24>, sudoku_maker=<SudokuMaker(terminated=False, played=[], batch_siz...(truncated)\n"
" swallower.run_dialog(self.dialog)\n"
"(gdb) py-down\n"
"#11 Frame 0x9aead74, for file /usr/lib/python2.6/site-packages/gnome_sudoku/dialog_swallower.py, line 48, in run_dialog (self=<SwappableArea(running=<gtk.Dialog at remote 0x98faaa4>, main_page=0) at remote 0x98fa6e4>, d=<gtk.Dialog at remote 0x98faaa4>)\n"
" gtk.main()\n"
"(gdb) py-down\n"
"#8 (unable to read python frame information)\n"
"(gdb) py-down\n"
"Unable to find a newer python frame"
msgid "and we're at the bottom of the Python stack."
msgstr "و در پایین پشتهی پایتون قرار داریم."
msgid "Note that in Python 3.12 and newer, the same C stack frame can be used for multiple Python stack frames. This means that ``py-up`` and ``py-down`` may move multiple Python frames at once. For example::"
msgstr "توجه داشته باشید که در پایتون 3.12 و نسخههای جدیدتر، میتوان از یک فریم پشتهی C برای چندین فریم پشتهی پایتون استفاده کرد. این بدان معناست که ``py-up`` و ``py-down`` ممکن است چندین فریم پایتون را همزمان جابهجا کنند. برای مثال::"
msgid ""
"(gdb) py-up\n"
"#6 Frame 0x7ffff7fb62b0, for file /tmp/rec.py, line 5, in recursive_function (n=0)\n"
" time.sleep(5)\n"
"#6 Frame 0x7ffff7fb6240, for file /tmp/rec.py, line 7, in recursive_function (n=1)\n"
" recursive_function(n-1)\n"
"#6 Frame 0x7ffff7fb61d0, for file /tmp/rec.py, line 7, in recursive_function (n=2)\n"
" recursive_function(n-1)\n"
"#6 Frame 0x7ffff7fb6160, for file /tmp/rec.py, line 7, in recursive_function (n=3)\n"
" recursive_function(n-1)\n"
"#6 Frame 0x7ffff7fb60f0, for file /tmp/rec.py, line 7, in recursive_function (n=4)\n"
" recursive_function(n-1)\n"
"#6 Frame 0x7ffff7fb6080, for file /tmp/rec.py, line 7, in recursive_function (n=5)\n"
" recursive_function(n-1)\n"
"#6 Frame 0x7ffff7fb6020, for file /tmp/rec.py, line 9, in <module> ()\n"
" recursive_function(5)\n"
"(gdb) py-up\n"
"Unable to find an older python frame"
msgstr ""
"(gdb) py-up\n"
"#6 Frame 0x7ffff7fb62b0, for file /tmp/rec.py, line 5, in recursive_function (n=0)\n"
" time.sleep(5)\n"
"#6 Frame 0x7ffff7fb6240, for file /tmp/rec.py, line 7, in recursive_function (n=1)\n"
" recursive_function(n-1)\n"
"#6 Frame 0x7ffff7fb61d0, for file /tmp/rec.py, line 7, in recursive_function (n=2)\n"
" recursive_function(n-1)\n"
"#6 Frame 0x7ffff7fb6160, for file /tmp/rec.py, line 7, in recursive_function (n=3)\n"
" recursive_function(n-1)\n"
"#6 Frame 0x7ffff7fb60f0, for file /tmp/rec.py, line 7, in recursive_function (n=4)\n"
" recursive_function(n-1)\n"
"#6 Frame 0x7ffff7fb6080, for file /tmp/rec.py, line 7, in recursive_function (n=5)\n"
" recursive_function(n-1)\n"
"#6 Frame 0x7ffff7fb6020, for file /tmp/rec.py, line 9, in <module> ()\n"
" recursive_function(5)\n"
"(gdb) py-up\n"
"Unable to find an older python frame"
msgid "``py-bt``"
msgstr "``py-bt``"
msgid "The ``py-bt`` command attempts to display a Python-level backtrace of the current thread."
msgstr "فرمان ``py-bt`` تلاش میکند یک ردگیری پشته در سطح پایتون از نخ جاری را نمایش دهد."
msgid ""
"(gdb) py-bt\n"
"#8 (unable to read python frame information)\n"
"#11 Frame 0x9aead74, for file /usr/lib/python2.6/site-packages/gnome_sudoku/dialog_swallower.py, line 48, in run_dialog (self=<SwappableArea(running=<gtk.Dialog at remote 0x98faaa4>, main_page=0) at remote 0x98fa6e4>, d=<gtk.Dialog at remote 0x98faaa4>)\n"
" gtk.main()\n"
"#14 Frame 0x99262ac, for file /usr/lib/python2.6/site-packages/gnome_sudoku/game_selector.py, line 201, in run_swallowed_dialog (self=<NewOrSavedGameSelector(new_game_model=<gtk.ListStore at remote 0x98fab44>, puzzle=None, saved_games=[{'gsd.auto_fills': 0, 'tracking': {}, 'trackers': {}, 'notes': [], 'saved_at': 1270084485, 'game': '7 8 0 0 0 0 0 5 6 0 0 9 0 8 0 1 0 0 0 4 6 0 0 0 0 7 0 6 5 0 0 0 4 7 9 2 0 0 0 9 0 1 0 0 0 3 9 7 6 0 0 0 1 8 0 6 0 0 0 0 2 8 0 0 0 5 0 4 0 6 0 0 2 1 0 0 0 0 0 4 5\\n7 8 0 0 0 0 0 5 6 0 0 9 0 8 0 1 0 0 0 4 6 0 0 0 0 7 0 6 5 1 8 3 4 7 9 2 0 0 0 9 0 1 0 0 0 3 9 7 6 0 0 0 1 8 0 6 0 0 0 0 2 8 0 0 0 5 0 4 0 6 0 0 2 1 0 0 0 0 0 4 5', 'gsd.impossible_hints': 0, 'timer.__absolute_start_time__': <float at remote 0x984b474>, 'gsd.hints': 0, 'timer.active_time': <float at remote 0x984b494>, 'timer.total_time': <float at remote 0x984b464>}], dialog=<gtk.Dialog at remote 0x98faaa4>, saved_game_model=<gtk.ListStore at remote 0x98fad24>, sudoku_maker=<SudokuMaker(terminated=False, played=[], batch_siz...(truncated)\n"
" swallower.run_dialog(self.dialog)\n"
"#19 (unable to read python frame information)\n"
"#23 (unable to read python frame information)\n"
"#34 (unable to read python frame information)\n"
"#37 Frame 0x9420b04, for file /usr/lib/python2.6/site-packages/gnome_sudoku/main.py, line 906, in start_game ()\n"
" u = UI()\n"
"#40 Frame 0x948e82c, for file /usr/lib/python2.6/site-packages/gnome_sudoku/gnome_sudoku.py, line 22, in start_game (main=<module at remote 0xb771b7f4>)\n"
" main.start_game()"
msgstr ""
"(gdb) py-bt\n"
"#8 (unable to read python frame information)\n"
"#11 Frame 0x9aead74, for file /usr/lib/python2.6/site-packages/gnome_sudoku/dialog_swallower.py, line 48, in run_dialog (self=<SwappableArea(running=<gtk.Dialog at remote 0x98faaa4>, main_page=0) at remote 0x98fa6e4>, d=<gtk.Dialog at remote 0x98faaa4>)\n"
" gtk.main()\n"
"#14 Frame 0x99262ac, for file /usr/lib/python2.6/site-packages/gnome_sudoku/game_selector.py, line 201, in run_swallowed_dialog (self=<NewOrSavedGameSelector(new_game_model=<gtk.ListStore at remote 0x98fab44>, puzzle=None, saved_games=[{'gsd.auto_fills': 0, 'tracking': {}, 'trackers': {}, 'notes': [], 'saved_at': 1270084485, 'game': '7 8 0 0 0 0 0 5 6 0 0 9 0 8 0 1 0 0 0 4 6 0 0 0 0 7 0 6 5 0 0 0 4 7 9 2 0 0 0 9 0 1 0 0 0 3 9 7 6 0 0 0 1 8 0 6 0 0 0 0 2 8 0 0 0 5 0 4 0 6 0 0 2 1 0 0 0 0 0 4 5\\n7 8 0 0 0 0 0 5 6 0 0 9 0 8 0 1 0 0 0 4 6 0 0 0 0 7 0 6 5 1 8 3 4 7 9 2 0 0 0 9 0 1 0 0 0 3 9 7 6 0 0 0 1 8 0 6 0 0 0 0 2 8 0 0 0 5 0 4 0 6 0 0 2 1 0 0 0 0 0 4 5', 'gsd.impossible_hints': 0, 'timer.__absolute_start_time__': <float at remote 0x984b474>, 'gsd.hints': 0, 'timer.active_time': <float at remote 0x984b494>, 'timer.total_time': <float at remote 0x984b464>}], dialog=<gtk.Dialog at remote 0x98faaa4>, saved_game_model=<gtk.ListStore at remote 0x98fad24>, sudoku_maker=<SudokuMaker(terminated=False, played=[], batch_siz...(truncated)\n"
" swallower.run_dialog(self.dialog)\n"
"#19 (unable to read python frame information)\n"
"#23 (unable to read python frame information)\n"
"#34 (unable to read python frame information)\n"
"#37 Frame 0x9420b04, for file /usr/lib/python2.6/site-packages/gnome_sudoku/main.py, line 906, in start_game ()\n"
" u = UI()\n"
"#40 Frame 0x948e82c, for file /usr/lib/python2.6/site-packages/gnome_sudoku/gnome_sudoku.py, line 22, in start_game (main=<module at remote 0xb771b7f4>)\n"
" main.start_game()"
msgid "The frame numbers correspond to those displayed by GDB's standard ``backtrace`` command."
msgstr "شمارههای فریم با شمارههایی که دستور استاندارد ``backtrace`` در GDB نمایش میدهد، مطابقت دارند."
msgid "``py-print``"
msgstr "``py-print``"
msgid "The ``py-print`` command looks up a Python name and tries to print it. It looks in locals within the current thread, then globals, then finally builtins::"
msgstr "فرمان ``py-print`` یک نام پایتون را جستجو میکند و سعی میکند آن را چاپ کند. این فرمان در متغیرهای محلی در نخ جاری، سپس در متغیرهای سراسری، و در نهایت در توکارها جستجو میکند::"
msgid ""
"(gdb) py-print self\n"
"local 'self' = <SwappableArea(running=<gtk.Dialog at remote 0x98faaa4>,\n"
"main_page=0) at remote 0x98fa6e4>\n"
"(gdb) py-print __name__\n"
"global '__name__' = 'gnome_sudoku.dialog_swallower'\n"
"(gdb) py-print len\n"
"builtin 'len' = <built-in function len>\n"
"(gdb) py-print scarlet_pimpernel\n"
"'scarlet_pimpernel' not found"
msgstr ""
"(gdb) py-print self\n"
"local 'self' = <SwappableArea(running=<gtk.Dialog at remote 0x98faaa4>,\n"
"main_page=0) at remote 0x98fa6e4>\n"
"(gdb) py-print __name__\n"
"global '__name__' = 'gnome_sudoku.dialog_swallower'\n"
"(gdb) py-print len\n"
"builtin 'len' = <built-in function len>\n"
"(gdb) py-print scarlet_pimpernel\n"
"'scarlet_pimpernel' not found"
msgid "If the current C frame corresponds to multiple Python frames, ``py-print`` only considers the first one."
msgstr "اگر فریم C فعلی با چندین فریم پایتون متناظر باشد، ``py-print`` فقط اولین فریم را در نظر میگیرد."
msgid "``py-locals``"
msgstr "``py-locals``"
msgid "The ``py-locals`` command looks up all Python locals within the current Python frame in the selected thread, and prints their representations::"
msgstr "دستور ``py-locals`` همهی متغیرهای محلی پایتون را در فریم پایتون جاری در نخ انتخابشده جستوجو میکند و بازنماییهای آنها را چاپ میکند::"
msgid ""
"(gdb) py-locals\n"
"self = <SwappableArea(running=<gtk.Dialog at remote 0x98faaa4>,\n"
"main_page=0) at remote 0x98fa6e4>\n"
"d = <gtk.Dialog at remote 0x98faaa4>"
msgstr ""
"(gdb) py-locals\n"
"self = <SwappableArea(running=<gtk.Dialog at remote 0x98faaa4>,\n"
"main_page=0) at remote 0x98fa6e4>\n"
"d = <gtk.Dialog at remote 0x98faaa4>"
msgid "If the current C frame corresponds to multiple Python frames, locals from all of them will be shown::"
msgstr "اگر فریم C جاری با چندین فریم پایتون متناظر باشد، متغیرهای محلی همهی آنها نمایش داده خواهند شد::"
msgid ""
"(gdb) py-locals\n"
"Locals for recursive_function\n"
"n = 0\n"
"Locals for recursive_function\n"
"n = 1\n"
"Locals for recursive_function\n"
"n = 2\n"
"Locals for recursive_function\n"
"n = 3\n"
"Locals for recursive_function\n"
"n = 4\n"
"Locals for recursive_function\n"
"n = 5\n"
"Locals for <module>"
msgstr ""
"(gdb) py-locals\n"
"Locals for recursive_function\n"
"n = 0\n"
"Locals for recursive_function\n"
"n = 1\n"
"Locals for recursive_function\n"
"n = 2\n"
"Locals for recursive_function\n"
"n = 3\n"
"Locals for recursive_function\n"
"n = 4\n"
"Locals for recursive_function\n"
"n = 5\n"
"Locals for <module>"
msgid "Use with GDB commands"
msgstr "استفاده با دستورات GDB"
msgid "The extension commands complement GDB's built-in commands. For example, you can use a frame numbers shown by ``py-bt`` with the ``frame`` command to go a specific frame within the selected thread, like this::"
msgstr "فرمانهای افزونهای، فرمانهای توکار GDB را تکمیل میکنند. برای مثال، میتوانید از شمارههای فریم نمایشدادهشده توسط ``py-bt`` همراه با فرمان ``frame`` برای رفتن به یک فریم مشخص در نخ انتخابشده استفاده کنید، به این صورت::"
msgid ""
"(gdb) py-bt\n"
"(output snipped)\n"
"#68 Frame 0xaa4560, for file Lib/test/regrtest.py, line 1548, in <module> ()\n"
" main()\n"
"(gdb) frame 68\n"
"#68 0x00000000004cd1e6 in PyEval_EvalFrameEx (f=Frame 0xaa4560, for file Lib/test/regrtest.py, line 1548, in <module> (), throwflag=0) at Python/ceval.c:2665\n"
"2665 x = call_function(&sp, oparg);\n"
"(gdb) py-list\n"
"1543 # Run the tests in a context manager that temporary changes the CWD to a\n"
"1544 # temporary and writable directory. If it's not possible to create or\n"
"1545 # change the CWD, the original CWD will be used. The original CWD is\n"
"1546 # available from test_support.SAVEDCWD.\n"
"1547 with test_support.temp_cwd(TESTCWD, quiet=True):\n"
">1548 main()"
msgstr ""
"(gdb) py-bt\n"
"(output snipped)\n"
"#68 Frame 0xaa4560, for file Lib/test/regrtest.py, line 1548, in <module> ()\n"
" main()\n"
"(gdb) frame 68\n"
"#68 0x00000000004cd1e6 in PyEval_EvalFrameEx (f=Frame 0xaa4560, for file Lib/test/regrtest.py, line 1548, in <module> (), throwflag=0) at Python/ceval.c:2665\n"
"2665 x = call_function(&sp, oparg);\n"
"(gdb) py-list\n"
"1543 # Run the tests in a context manager that temporary changes the CWD to a\n"
"1544 # temporary and writable directory. If it's not possible to create or\n"
"1545 # change the CWD, the original CWD will be used. The original CWD is\n"
"1546 # available from test_support.SAVEDCWD.\n"
"1547 with test_support.temp_cwd(TESTCWD, quiet=True):\n"
">1548 main()"
msgid "The ``info threads`` command will give you a list of the threads within the process, and you can use the ``thread`` command to select a different one::"
msgstr "دستور ``info threads`` فهرستی از نخهای درون فرایند را به شما میدهد، و میتوانید از دستور ``thread`` برای انتخاب یک نخ دیگر استفاده کنید::"
msgid ""
"(gdb) info threads\n"
" 105 Thread 0x7fffefa18710 (LWP 10260) sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86\n"
" 104 Thread 0x7fffdf5fe710 (LWP 10259) sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86\n"
"* 1 Thread 0x7ffff7fe2700 (LWP 10145) 0x00000038e46d73e3 in select () at ../sysdeps/unix/syscall-template.S:82"
msgstr ""
"(gdb) info threads\n"
" 105 Thread 0x7fffefa18710 (LWP 10260) sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86\n"
" 104 Thread 0x7fffdf5fe710 (LWP 10259) sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86\n"
"* 1 Thread 0x7ffff7fe2700 (LWP 10145) 0x00000038e46d73e3 in select () at ../sysdeps/unix/syscall-template.S:82"
msgid "You can use ``thread apply all COMMAND`` or (``t a a COMMAND`` for short) to run a command on all threads. With ``py-bt``, this lets you see what every thread is doing at the Python level::"
msgstr "میتوانید از ``thread apply all COMMAND`` یا (``t a a COMMAND`` بهصورت مخفف) برای اجرای یک دستور روی همه نخها استفاده کنید. با ``py-bt``، این کار به شما امکان میدهد ببینید هر نخ در سطح پایتون چه کاری انجام میدهد::"
msgid ""
"(gdb) t a a py-bt\n"
"\n"
"Thread 105 (Thread 0x7fffefa18710 (LWP 10260)):\n"
"#5 Frame 0x7fffd00019d0, for file /home/david/coding/python-svn/Lib/threading.py, line 155, in _acquire_restore (self=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote 0xd7ff40>, count_owner=(1, 140737213728528), count=1, owner=140737213728528)\n"
" self.__block.acquire()\n"
"#8 Frame 0x7fffac001640, for file /home/david/coding/python-svn/Lib/threading.py, line 269, in wait (self=<_Condition(_Condition__lock=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote 0xd7ff40>, acquire=<instancemethod at remote 0xd80260>, _is_owned=<instancemethod at remote 0xd80160>, _release_save=<instancemethod at remote 0xd803e0>, release=<instancemethod at remote 0xd802e0>, _acquire_restore=<instancemethod at remote 0xd7ee60>, _Verbose__verbose=False, _Condition__waiters=[]) at remote 0xd7fd10>, timeout=None, waiter=<thread.lock at remote 0x858a90>, saved_state=(1, 140737213728528))\n"
" self._acquire_restore(saved_state)\n"
"#12 Frame 0x7fffb8001a10, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 348, in f ()\n"
" cond.wait()\n"
"#16 Frame 0x7fffb8001c40, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 37, in task (tid=140737213728528)\n"
" f()\n"
"\n"
"Thread 104 (Thread 0x7fffdf5fe710 (LWP 10259)):\n"
"#5 Frame 0x7fffe4001580, for file /home/david/coding/python-svn/Lib/threading.py, line 155, in _acquire_restore (self=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote 0xd7ff40>, count_owner=(1, 140736940992272), count=1, owner=140736940992272)\n"
" self.__block.acquire()\n"
"#8 Frame 0x7fffc8002090, for file /home/david/coding/python-svn/Lib/threading.py, line 269, in wait (self=<_Condition(_Condition__lock=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote 0xd7ff40>, acquire=<instancemethod at remote 0xd80260>, _is_owned=<instancemethod at remote 0xd80160>, _release_save=<instancemethod at remote 0xd803e0>, release=<instancemethod at remote 0xd802e0>, _acquire_restore=<instancemethod at remote 0xd7ee60>, _Verbose__verbose=False, _Condition__waiters=[]) at remote 0xd7fd10>, timeout=None, waiter=<thread.lock at remote 0x858860>, saved_state=(1, 140736940992272))\n"
" self._acquire_restore(saved_state)\n"
"#12 Frame 0x7fffac001c90, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 348, in f ()\n"
" cond.wait()\n"
"#16 Frame 0x7fffac0011c0, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 37, in task (tid=140736940992272)\n"
" f()\n"
"\n"
"Thread 1 (Thread 0x7ffff7fe2700 (LWP 10145)):\n"
"#5 Frame 0xcb5380, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 16, in _wait ()\n"
" time.sleep(0.01)\n"
"#8 Frame 0x7fffd00024a0, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 378, in _check_notify (self=<ConditionTests(_testMethodName='test_notify', _resultForDoCleanups=<TestResult(_original_stdout=<cStringIO.StringO at remote 0xc191e0>, skipped=[], _mirrorOutput=False, testsRun=39, buffer=False, _original_stderr=<file at remote 0x7ffff7fc6340>, _stdout_buffer=<cStringIO.StringO at remote 0xc9c7f8>, _stderr_buffer=<cStringIO.StringO at remote 0xc9c790>, _moduleSetUpFailed=False, expectedFailures=[], errors=[], _previousTestClass=<type at remote 0x928310>, unexpectedSuccesses=[], failures=[], shouldStop=False, failfast=False) at remote 0xc185a0>, _threads=(0,), _cleanups=[], _type_equality_funcs={<type at remote 0x7eba00>: <instancemethod at remote 0xd750e0>, <type at remote 0x7e7820>: <instancemethod at remote 0xd75160>, <type at remote 0x7e30e0>: <instancemethod at remote 0xd75060>, <type at remote 0x7e7d20>: <instancemethod at remote 0xd751e0>, <type at remote 0x7f19e0...(truncated)\n"
" _wait()"
msgstr ""
"(gdb) t a a py-bt\n"
"\n"
"Thread 105 (Thread 0x7fffefa18710 (LWP 10260)):\n"
"#5 Frame 0x7fffd00019d0, for file /home/david/coding/python-svn/Lib/threading.py, line 155, in _acquire_restore (self=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote 0xd7ff40>, count_owner=(1, 140737213728528), count=1, owner=140737213728528)\n"
" self.__block.acquire()\n"
"#8 Frame 0x7fffac001640, for file /home/david/coding/python-svn/Lib/threading.py, line 269, in wait (self=<_Condition(_Condition__lock=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote 0xd7ff40>, acquire=<instancemethod at remote 0xd80260>, _is_owned=<instancemethod at remote 0xd80160>, _release_save=<instancemethod at remote 0xd803e0>, release=<instancemethod at remote 0xd802e0>, _acquire_restore=<instancemethod at remote 0xd7ee60>, _Verbose__verbose=False, _Condition__waiters=[]) at remote 0xd7fd10>, timeout=None, waiter=<thread.lock at remote 0x858a90>, saved_state=(1, 140737213728528))\n"
" self._acquire_restore(saved_state)\n"
"#12 Frame 0x7fffb8001a10, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 348, in f ()\n"
" cond.wait()\n"
"#16 Frame 0x7fffb8001c40, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 37, in task (tid=140737213728528)\n"
" f()\n"
"\n"
"Thread 104 (Thread 0x7fffdf5fe710 (LWP 10259)):\n"
"#5 Frame 0x7fffe4001580, for file /home/david/coding/python-svn/Lib/threading.py, line 155, in _acquire_restore (self=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote 0xd7ff40>, count_owner=(1, 140736940992272), count=1, owner=140736940992272)\n"
" self.__block.acquire()\n"
"#8 Frame 0x7fffc8002090, for file /home/david/coding/python-svn/Lib/threading.py, line 269, in wait (self=<_Condition(_Condition__lock=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote 0xd7ff40>, acquire=<instancemethod at remote 0xd80260>, _is_owned=<instancemethod at remote 0xd80160>, _release_save=<instancemethod at remote 0xd803e0>, release=<instancemethod at remote 0xd802e0>, _acquire_restore=<instancemethod at remote 0xd7ee60>, _Verbose__verbose=False, _Condition__waiters=[]) at remote 0xd7fd10>, timeout=None, waiter=<thread.lock at remote 0x858860>, saved_state=(1, 140736940992272))\n"
" self._acquire_restore(saved_state)\n"
"#12 Frame 0x7fffac001c90, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 348, in f ()\n"
" cond.wait()\n"
"#16 Frame 0x7fffac0011c0, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 37, in task (tid=140736940992272)\n"
" f()\n"
"\n"
"Thread 1 (Thread 0x7ffff7fe2700 (LWP 10145)):\n"
"#5 Frame 0xcb5380, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 16, in _wait ()\n"
" time.sleep(0.01)\n"
"#8 Frame 0x7fffd00024a0, for file /home/david/coding/python-svn/Lib/test/lock_tests.py, line 378, in _check_notify (self=<ConditionTests(_testMethodName='test_notify', _resultForDoCleanups=<TestResult(_original_stdout=<cStringIO.StringO at remote 0xc191e0>, skipped=[], _mirrorOutput=False, testsRun=39, buffer=False, _original_stderr=<file at remote 0x7ffff7fc6340>, _stdout_buffer=<cStringIO.StringO at remote 0xc9c7f8>, _stderr_buffer=<cStringIO.StringO at remote 0xc9c790>, _moduleSetUpFailed=False, expectedFailures=[], errors=[], _previousTestClass=<type at remote 0x928310>, unexpectedSuccesses=[], failures=[], shouldStop=False, failfast=False) at remote 0xc185a0>, _threads=(0,), _cleanups=[], _type_equality_funcs={<type at remote 0x7eba00>: <instancemethod at remote 0xd750e0>, <type at remote 0x7e7820>: <instancemethod at remote 0xd75160>, <type at remote 0x7e30e0>: <instancemethod at remote 0xd75060>, <type at remote 0x7e7d20>: <instancemethod at remote 0xd751e0>, <type at remote 0x7f19e0...(truncated)\n"
" _wait()"