Codesigned gdb,但我仍然收到相同的错误消息(MacOS Big Sur)

时间:2021-01-27 15:22:36

标签: macos gdb macos-big-sur

这是我在“gdb -p 'myPid'”之后得到的

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
    
    Const sCell As String = "G2" ' Source First Cell
    Const dCol As Variant = "J" ' Destination Column Id (String or Index) 
    
    Dim irg As Range ' Intersect Range
    Dim cOffset As Long ' Column Offset
    With Range(sCell)
        Set irg = Intersect(.Resize(.Worksheet.Rows.Count - .Row + 1), Target)
        If irg Is Nothing Then Exit Sub
        cOffset = Columns(dCol).Column - .Column
    End With
    
    Dim arg As Range ' Current Area of Intersect Range
    Dim cel As Range ' Current Cell in Current Area of Intersect Range
    For Each arg In irg.Areas
        For Each cel In arg.Cells
            If Not IsError(cel.Value) Then
                cel.Offset(, cOffset).Value = cel.Value
            End If
        Next cel
    Next arg
    
End Sub

这就是我在“codesign -vv $(which gdb)”之后得到的

Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin20.1.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 1202
Unable to find Mach task port for process-id 1202: (os/kern) failure (0x5).
 (please check gdb is codesigned - see taskgated(8))

我不知道该怎么做才能让它发挥作用。

我也尝试过所有这些链接:

https://sourceware.org/gdb/wiki/BuildingOnDarwin

gdb: "No symbol table is loaded"

这里有人在 Big Sur 上使用 gdb 取得成功吗?有谁知道我做错了什么?

0 个答案:

没有答案