Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Translatehowto/gdb_helpers.po#903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mattwang44 merged 3 commits intopython:3.12frommattwang44:howto/gdb_helpers
Sep 11, 2024

Conversation

mattwang44
Copy link
Collaborator

resolve#902

Detailsimageimageimage

Copy link
Collaborator

@ken71301ken71301 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

review p1.

Copy link
Collaborator

@ken71301ken71301 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

late review p2


#: ../../howto/gdb_helpers.rst:189
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`` 型別也會出現類似的混亂,其中的輸出看起來很像對於 ``char *`` 的 gdb 內"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

看這樣會不會比較順

Suggested change
"``str``型別也會出現類似的混亂,其中的輸出看起來很像對於 ``char *`` 的 gdb 內"
"使用``str``型別時也會出現類似的困惑,其中的輸出看起來很像對於 ``char *`` 的 gdb 內"


#: ../../howto/gdb_helpers.rst:261
msgid "so we're at the top of the Python stack."
msgstr ""
msgstr "所以我們處於 Python 堆疊的頂端。"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

語意上這邊要不要加個現在,看了一下原文排版,如果只打所以的話好像跟上面的code block連接不太起來
so (now) we're at the top of the Python stack.

mattwang44 reacted with heart emoji

#: ../../howto/gdb_helpers.rst:289
msgid "and we're at the bottom of the Python stack."
msgstr ""
msgstr "我們處於 Python 堆疊的底部。"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

一樣看要不要補個 now ,只是因為順暢度


#: ../../howto/gdb_helpers.rst:392
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 編號"
"和 ``frame`` 命令來轉到所選執行緒中的特定 frame ,如下所示: ::"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

這邊的 with theframe command,應該比較接近於 frame 編號會跟frame 命令一同出現吧?
你可以使用 ``py-bt`` 中與 ``frame`` 命令一同顯示的 frame 編號...
我看原文應該比較像是這樣

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

py-bt 會顯示 frame number,而GDB 的frame 則是會跳到給定 frame no 的 frame 上方便查看該 frame。這邊的敘述應該是可以拿這個py-bt 輸出的 frame no 來和frame 一起使用。小修一下使其更貼近原意。

image

@mattwang44mattwang44enabled auto-merge (squash)August 26, 2024 17:03
@mattwang44mattwang44 merged commitd30872c intopython:3.12Sep 11, 2024
1 check passed
@mattwang44mattwang44 deleted the howto/gdb_helpers branchSeptember 11, 2024 15:52
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ken71301ken71301Awaiting requested review from ken71301

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Translatehowto/gdb_helpers.po
2 participants
@mattwang44@ken71301

[8]ページ先頭

©2009-2025 Movatter.jp