GDB from sdk 3.16 not working?
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 502 from 2013/5/29
    Im trying the new GDB with a simple example but I only get this error:

    ../../gdb-8.3/gdb/common/pathstuff.c:132: internal-error: gdb::unique_xmalloc_ptr<char> gdb_abspath(const char*): Assertion `path != NULL && path[0] != '\0'' failed.
    A problem internal to GDB has been detected,
    further debugging may prove unreliable.
    Quit this debugging session? (y or n)


    Well, running GDB with no parameters also show that error. No matter if I press Y or N.


    Ah! Seems Unzip is not in my SDK neither in this version. :/
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »06.01.21 - 19:53
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 2971 from 2003/3/5
    From: Canada
    Some additional details on how you get this error would be welcome. It certainly "works for me" ;)
  • »06.01.21 - 20:12
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 502 from 2013/5/29
    The easy one:
    I open a shell and write GDB to get that error.

    I.m obviously using latest MorphOS and SDK with PowerMac G5.

    Downloading the SDK again...


    [ Editado por tolkien 06.01.2021 - 20:36 ]
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »06.01.21 - 20:31
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 502 from 2013/5/29
    Looking at logtool it shows some text that really....I dont understand.

    [20210106 22:29:19] >>> Exception 7 <Program>
    ----------------------------------------------------------------------
    Quark Thread TID 0000000010020010 Name ABox
    SRR0 0x00000000 SRR1 0x0208f030
    LR 0x1e50224c CTR 0x00000000
    CR 0x22002482 XER 0x20000000
    GPR[00] 1e502234 1e15fed0 1c3ec430 1e35f410 1e35f410 1e15fe60 1e15fe80 1df0ca78
    GPR[08] 00000001 00000000 00000000 00000000 42002884 00000000 1e370000 1e370000
    GPR[16] 00000000 00000000 1be9b24c 1e34a418 1e370000 00000000 1e370000 1657c1e0
    GPR[24] 1ee0776c 1ed91a70 00000001 0000004e 00000059 00000000 1e36fba4 1e35f410
    FPSCR 82020000
    FPR[00] 53686f7720706572 6d697373696f6e20 746f207772697465 20696e746f207461
    FPR[04] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[08] 0000000000000000 0000000000000000 41e0000000000000 4330000000000000
    FPR[12] 41296ca4c838e38e 3ffa0c9cb54848ca 0000000000000000 0000000000000000
    FPR[16] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[20] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[24] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[28] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    VSAVE 00000000 VSCR 00010000
    VPR[00] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[02] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[04] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[06] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[08] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[10] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[12] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[14] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[16] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[18] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[20] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[22] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[24] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[26] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[28] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[30] 00000000000000000000000000000000 00000000000000000000000000000000
    IABR 00000000
    DABR 00000000
    MMCR0 00000000
    MMCR1 00000000
    MMCR2 00000000
    PMC1 00000000 PMC2 00000000 PMC3 00000000 PMC4 00000000
    SIA 00000000
    SDA 00000000
    >>> Quark Thread Stack History
    ----------------------------------------------------------------------
    StackFrame[ 0].LR[0x1e500a9c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x0012c6dc]
    StackFrame[ 1].LR[0x1e500d28] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x0012c968]
    StackFrame[ 2].LR[0x1e6a3844] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002cf484]
    StackFrame[ 3].LR[0x1e6bcfec] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002e8c2c]
    StackFrame[ 4].LR[0x1e6bd2fc] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002e8f3c]
    StackFrame[ 5].LR[0x1e6bdec0] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002e9b00]
    StackFrame[ 6].LR[0x1e6bdfc0] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002e9c00]
    StackFrame[ 7].LR[0x1e46a06c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x00095cac]
    StackFrame[ 8].LR[0x1e46cb4c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x0009878c]
    StackFrame[ 9].LR[0x1e46ccc8] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x00098908]
    StackFrame[10].LR[0x1e4aee00] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x000daa40]
    StackFrame[11].LR[0x1e6ddf24] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x00309b64]
    StackFrame[12].LR[0x1e6a504c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002d0c8c]
    StackFrame[13].LR[0x1e578e4c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x001a4a8c]
    StackFrame[14].LR[0x1e877568] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x004a31a8]
    StackFrame[15].LR[0x1e3d4a38] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x00000678]
    StackFrame[16].LR[0x1514d388] -> MOSSYS:LIBS/ixemul.library [Hunk 1 Offset 0x00008f00]
    StackFrame[17].LR[0x1514c808] -> MOSSYS:LIBS/ixemul.library [Hunk 1 Offset 0x00008380]
    StackFrame[18].LR[0x1515d82c] -> MOSSYS:LIBS/ixemul.library [Hunk 1 Offset 0x000193a4]
    >>> ABox State
    ----------------------------------------------------------------------
    ExecBase: SysBase 0x140019b0
    SysFlags 0x0000 AttnResched 0x0000 IDNestCnt -1 TDNestCnt -1
    ThisTask 0x1be9a168 TaskReady 0x14001b4a TaskWait 0x14011b60
    ResModules 0x140041e0
    TaskTrapCode 0x101217bc TaskExceptCode 0x101217c4 TaskExitCode 0x10121820
    TaskSigAlloc 0xffff TaskTrapAlloc 0x8000
    IdleCount 184329 DispCount 513628
    Quantum 4 Elapsed 4
    VBlankFrequency 50 PowerSupplyFrequency 50 EClockFrequency 709379
    MainTID 0x10020010 SchedulerTID 0x10020012 SchedulerSig 0x80000000
    OldSRR0 0x0
    ConfigServerTID 0x10000013
    LastIntObject 0x1415b40c
    LastIntObject 0x1415b40c <Not Valid ptr>
    Code 0x10474964 Data 0x14090ad0
    Int0: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int1: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int2: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int3: iv_Code 0x10126ccc iv_Data 0x14003c38 iv_Node 0x00000000
    Int4: iv_Code 0x10126ccc iv_Data 0x14003c58 iv_Node 0x00000000
    Int5: iv_Code 0x10126ccc iv_Data 0x14003c48 iv_Node 0x00000000
    Interrupt 0x14040266 <graphics.library>
    Code 0x10191708 Data 0x1404021c
    Interrupt 0x151c4e98 <ixemul timer interrupt>
    Code 0x151c2044 Data 0x00000000
    Int6: iv_Code 0x10191710 iv_Data 0x1404021c iv_Node 0x14040292
    Int7: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int8: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int9: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int10: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int11: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int12: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int13: iv_Code 0x10126ccc iv_Data 0x14003c68 iv_Node 0x00000000
    Int14: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int15: iv_Code 0x10126ccc iv_Data 0x14003c78 iv_Node 0x00000000


    >>> Running Task
    ----------------------------------------------------------------------
    Task 0x1be9a168 Name 0x1be9b24c <Shell Process> Type 13 Pri 0
    Flags 0x8 State 2 IDNestCnt -1 TDNestCnt -1
    SigAlloc 0xff80ffff SigWait 0xa2001000 SigRecvd 0x04804000 SigExcept 0xff00f000
    ExceptCode 0x151c1f4c ExceptData 0x00000000 TrapCode 0x101217bc TrapData 0x00000000
    Switch 0x00000000 Launch 0x00000000 UserData 0x1de28da8
    SPLower 0x1d0da58c SPUpper 0x1d0db58c SPReg 0x1d0db524
    ----------------------------------------------------------------------
    ETask 0x1be9b26c
    MemPool 0x1e360010 PPCLibData 0x00000000
    PPCSPLower 0x1e1544a4 PPCSPUpper 0x1e1604b4
    PPCTrapMsgPort 0x00000000 PPCTrapMessage 0x1beb4ce4
    PPCRegFrame 0x1c3ec040
    Private[] 0x00000000 0x00000000 0x00000000 0x00000000
    EmulHandle 0x00000000
    ----------------------------------------------------------------------
    EmulHandle 0x1c3ec430 Type 0x00000004 Flags 0x00000001
    SuperHandle 0x10001000 Type 0x00000000 WaitMask 0x00000000 SyncMask 0x00000000
    USP 0x00000000 SSP 0x14003898 VBR 0x14003d78
    SFC 0x00000000 DFC 0x00000000 CACR 0xa0808000 TC 0x00000000
    ITT0 0x00000000 ITT1 0x00000000 DTT0 0x00000000 DTT1 0x00000000
    URP 0x00000000 SRP 0x00000000 BUSCR 0x00000000 PCR 0x04310501
    >>> Task Registers Frame
    ----------------------------------------------------------------------
    SRR0 0x00000000 SRR1 0x0208f030
    LR 0x1e50224c CTR 0x00000000
    CR 0x22002482 XER 0x20000000
    GPR[00] 1e502234 1e15fed0 1c3ec430 1e35f410 1e35f410 1e15fe60 1e15fe80 1df0ca78
    GPR[08] 00000001 00000000 00000000 00000000 42002884 00000000 1e370000 1e370000
    GPR[16] 00000000 00000000 1be9b24c 1e34a418 1e370000 00000000 1e370000 1657c1e0
    GPR[24] 1ee0776c 1ed91a70 00000001 0000004e 00000059 00000000 1e36fba4 1e35f410
    FPSCR 82020000
    FPR[00] 53686f7720706572 6d697373696f6e20 746f207772697465 20696e746f207461
    FPR[04] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[08] 0000000000000000 0000000000000000 41e0000000000000 4330000000000000
    FPR[12] 41296ca4c838e38e 3ffa0c9cb54848ca 0000000000000000 0000000000000000
    FPR[16] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[20] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[24] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[28] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    VSAVE 00000000 VSCR 00010000
    VPR[00] 1133af7a000000080000000178300000 11330000000000001a1a1a1a1b1b1b1b
    VPR[02] 1c1c1c1c1d1d1d1d1e1e1e1e1f1f1f1f 1000d97000044e181e1e1e1e00000012
    VPR[04] 1515d82c1514410400000001000193a4 1133af181133af181a1a1a1a1b1b1b1b
    VPR[06] 1000d9301d1d1d1d14001bc41133ae68 1000d93000044e180000000000000000
    VPR[08] 1c1c1c1c1d1d1d1d1e1e1e1e1f1f1f1f 1000d97011006c9c1514410400000000
    VPR[10] 1515d82c1000d9781000d97c1000d980 1000d9601000d9780000000000000030
    VPR[12] 1000d970000117f01000d8d800000000 1000d98000044f380000000100000000
    VPR[14] 1000d9c0000456e02004288413131313 1000d9a0151515151000d9f00000000a
    VPR[16] 1000d9b0000117f01e1e1e1e0000000a 1000d9c0000117f01000d9f000000000
    VPR[18] 1000d9d000044f38000000001000dad0 1000da5000045fc40000000178300000
    VPR[20] 00000000000000000000000000000000 30003000336337380000000000000000
    VPR[22] 00000000000000000000000000000000 1133ae2c000000000000000000000000
    VPR[24] 113390d8000000001a1a1a1a1b1b1b1b 1c1c1c1c1d1d1d1d1a1a1a1a1b1b1b1b
    VPR[26] 1c1c1c1c1d1d1d1d1e1e1e1e1f1f1f1f 1000daf000044e180000000000000000
    VPR[28] 0000000100b5e0080000000a00001a65 11339ab800cab90b0000000000000000
    VPR[30] 00000000000000000000000000000000 00000000000000000000000000000000
    >>> Task Stack History
    ----------------------------------------------------------------------
    LR[0x1e50224c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x0012de8c]
    StackFrame[ 0].LR[0x1e500a9c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x0012c6dc]
    StackFrame[ 1].LR[0x1e500d28] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x0012c968]
    StackFrame[ 2].LR[0x1e6a3844] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002cf484]
    StackFrame[ 3].LR[0x1e6bcfec] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002e8c2c]
    StackFrame[ 4].LR[0x1e6bd2fc] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002e8f3c]
    StackFrame[ 5].LR[0x1e6bdec0] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002e9b00]
    StackFrame[ 6].LR[0x1e6bdfc0] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002e9c00]
    StackFrame[ 7].LR[0x1e46a06c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x00095cac]
    StackFrame[ 8].LR[0x1e46cb4c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x0009878c]
    StackFrame[ 9].LR[0x1e46ccc8] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x00098908]
    StackFrame[10].LR[0x1e4aee00] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x000daa40]
    StackFrame[11].LR[0x1e6ddf24] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x00309b64]
    StackFrame[12].LR[0x1e6a504c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002d0c8c]
    StackFrame[13].LR[0x1e578e4c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x001a4a8c]
    StackFrame[14].LR[0x1e877568] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x004a31a8]
    StackFrame[15].LR[0x1e3d4a38] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x00000678]
    StackFrame[16].LR[0x1514d388] -> MOSSYS:LIBS/ixemul.library [Hunk 1 Offset 0x00008f00]
    StackFrame[17].LR[0x1514c808] -> MOSSYS:LIBS/ixemul.library [Hunk 1 Offset 0x00008380]
    StackFrame[18].LR[0x1515d82c] -> MOSSYS:LIBS/ixemul.library [Hunk 1 Offset 0x000193a4]
    Stack: 0x1e15fed0
    0x1e15feb0[-0x20] 1e15fec0 1e5022b8 00000000 1657c1e0
    0x1e15fec0[-0x10] 1e15fed0 1e6bac20 00000001 0000004e
    0x1e15fed0[0x000] 1e15fef0 1e502234 ffffffff 1ea2b000
    0x1e15fee0[0x010] 1e15fef0 1dee0000 ffffffff 1ea2b000
    0x1e502234 -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x0012de74]
    0x1ea2b000 -> Work:Prog/Development/gg/bin/gdb [Hunk 10 Offset 0x000122d0]
    0x1ea2b000 -> Work:Prog/Development/gg/bin/gdb [Hunk 10 Offset 0x000122d0]
    >>> Full PPC mode: Last saved 68k context
    ----------------------------------------------------------------------
    PC 87654321 SR 0000
    Dn[0] 00004000 82001000 00000014 00000000 1e2b0310 00000026 1d0db580 1e160150
    An[0] 1e31a250 1be9a168 1e15fd90 00000000 155d66cc 1be9a24c 140019b0 1d0db584
    Stack: 0x1d0db584
    0x1d0db564[-0x20] 00000000 00000000 00000000 0000b672
    0x1d0db574[-0x10] 000000ff 1d0da568 000003d3 1133e228
    0x1d0db584[0x000] 00001000 1be9b248 00630053 1d0da568
    0x1d0db594[0x010] 00000030 1ec36170 1ec361c0 00000024
    0x1d0db5a4[0x020] 1d1bc384 00000000 1ec3614c ffffffff
    0x1d0db5b4[0x030] 50e9fac0 00000000 00000000 00008c89
    0x1d0db5c4[0x040] 0066002c 1d0db590 00000030 1ec361c0
    0x1d0db5d4[0x050] 1d0db608 00000022 446f506b 743a2072
    0x1d0db5e4[0x060] 65733120 3d202434 6537382c 20726573
    0x1d0db5f4[0x070] 32203d20 30000020 00200020 1d0db5c8
    0x1d1bc384 -> SYS:Applications/LogTool/LogTool [Hunk 8 Offset 0x000037a4]
    >>> Last saved PPCThread State
    ----------------------------------------------------------------------
    SRR0 0x101204d4 SRR1 0x0200f030
    LR 0x1010f0b8 CTR 0x00045bdc
    CR 0x82444884 XER 0x00000000
    GPR[00] 000117dc 1e15fc40 1c3ec430 00f5e000 00b5e010 00b5e00c 00b5e008 00000031
    GPR[08] 00004377 00ca57ea 00ca57e9 00b5e000 24002884 00000000 1e15fd10 1e15fcf0
    GPR[16] 00000000 02000000 1e15fc90 00000002 00000001 00000001 00000001 1e15fcf0
    GPR[24] 1e15fd10 1e15fd30 1de28efc 1de28da8 151c0000 1be9a168 1be9a168 140019b0
    FPSCR 82020000
    FPR[00] 53686f7720706572 6d697373696f6e20 746f207772697465 20696e746f207461
    FPR[04] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[08] 0000000000000000 0000000000000000 41e0000000000000 4330000000000000
    FPR[12] 41296ca4c838e38e 3ffa0c9cb54848ca 0000000000000000 0000000000000000
    FPR[16] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[20] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[24] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[28] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    VSAVE 00000000 VSCR 00010000
    VPR[00] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[02] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[04] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[06] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[08] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[10] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[12] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[14] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[16] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[18] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[20] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[22] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[24] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[26] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[28] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[30] 00000000000000000000000000000000 00000000000000000000000000000000
    SRR0[0x101204d4] -> exec_of_604e.elf [Hunk 0 Offset 0x000204d4]
    LR[0x1010f0b8] -> exec_of_604e.elf [Hunk 0 Offset 0x0000f0b8 Function Reschedule]
    StackFrame[ 0].LR[0x10116324] -> exec_of_604e.elf [Hunk 0 Offset 0x00016324 Function Permit]
    StackFrame[ 1].LR[0x1514e52c] -> MOSSYS:LIBS/ixemul.library [Hunk 1 Offset 0x0000a0a4]
    StackFrame[ 2].LR[0x1514f354] -> MOSSYS:LIBS/ixemul.library [Hunk 1 Offset 0x0000aecc]
    StackFrame[ 3].LR[0x1514f7cc] -> MOSSYS:LIBS/ixemul.library [Hunk 1 Offset 0x0000b344]
    StackFrame[ 4].LR[0x1dee0000]
    StackFrame[ 5].LR[0x1e500a9c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x0012c6dc]
    StackFrame[ 6].LR[0x1e500d28] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x0012c968]
    StackFrame[ 7].LR[0x1e6a3844] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002cf484]
    StackFrame[ 8].LR[0x1e6bcfec] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002e8c2c]
    StackFrame[ 9].LR[0x1e6bd2fc] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002e8f3c]
    StackFrame[10].LR[0x1e6bdec0] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002e9b00]
    StackFrame[11].LR[0x1e6bdfc0] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002e9c00]
    StackFrame[12].LR[0x1e46a06c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x00095cac]
    StackFrame[13].LR[0x1e46cb4c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x0009878c]
    StackFrame[14].LR[0x1e46ccc8] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x00098908]
    StackFrame[15].LR[0x1e4aee00] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x000daa40]
    StackFrame[16].LR[0x1e6ddf24] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x00309b64]
    StackFrame[17].LR[0x1e6a504c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x002d0c8c]
    StackFrame[18].LR[0x1e578e4c] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x001a4a8c]
    StackFrame[19].LR[0x1e877568] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x004a31a8]
    StackFrame[20].LR[0x1e3d4a38] -> Work:Prog/Development/gg/bin/gdb [Hunk 1 Offset 0x00000678]
    StackFrame[21].LR[0x1514d388] -> MOSSYS:LIBS/ixemul.library [Hunk 1 Offset 0x00008f00]
    StackFrame[22].LR[0x1514c808] -> MOSSYS:LIBS/ixemul.library [Hunk 1 Offset 0x00008380]
    StackFrame[23].LR[0x1515d82c] -> MOSSYS:LIBS/ixemul.library [Hunk 1 Offset 0x000193a4]

    ----------------------------------------------------------------------
    SegList 0x054ccfc0 GlobVec 0x14034f60
    StackBase 0x07436963 StackSize 0x00001000
    TaskNum 0x00000002 Result2 0x00000000
    CurrentDir 0x077663d1 CIS 0x06fad329
    COS 0x06fa6e01 CES 0x070e8573
    ConsoleTask 0x1c3ecb50 FileSystemTask 0x14527cac
    CLI 0x054ccfad ReturnAddr 0x1d0db584
    PktWait 0x00000000 WindowPtr 0x00000000
    HomeDir 0x077c7836 Flags 0x00000044
    ExitCode 0x00000000 ExitData 0x00000000
    Arguments 0x1dfc2ab4 ShellPrivate 0x00000000
    CmdName: <gdb>
    [20210106 22:29:19] >>> End of Exception State Dump
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »06.01.21 - 21:32
    Profile
  • MorphOS Developer
    zukow
    Posts: 642 from 2005/2/9
    From: Poland
    Please paste here output from Snoopium. select all functions From AllocSignal to System. Which filesystem do you use?

    [ Edited by zukow 06.01.2021 - 22:51 ]
  • »06.01.21 - 22:46
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 502 from 2013/5/29
    This is the snoopium log until the system freeze with it... :/

    GDB log

    The filesystem is SFS


    [ Editado por tolkien 07.01.2021 - 12:58 ]
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »07.01.21 - 12:50
    Profile
  • MorphOS Developer
    Piru
    Posts: 576 from 2003/2/24
    From: finland, the l...
    Quote:

    tolkien wrote:
    Im trying the new GDB with a simple example but I only get this error:

    ../../gdb-8.3/gdb/common/pathstuff.c:132: internal-error: gdb::unique_xmalloc_ptr<char> gdb_abspath(const char*): Assertion `path != NULL && path[0] != '\0'' failed.
    A problem internal to GDB has been detected,
    further debugging may prove unreliable.
    Quit this debugging session? (y or n)


    Well, running GDB with no parameters also show that error. No matter if I press Y or N.

    It appears gdb 8.3 has a bug in it. It will throw an assert() if the user has empty $HOME variable. Also due to 2nd bug, it will in this case also jump to address 0.

    Also linux gdb 8.3 is affected (it's in Debian unstable for example):
    Code:
    $ HOME= gdb
    Segmentation fault


    Anyway, a workaround is simple: set HOME env variable to some sensible value (your home directory). We'll also provide a fix in the next SDK that avoids the buggy assert in the first place.
  • »07.01.21 - 16:21
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 502 from 2013/5/29
    Thanks Piru! You are all the best! I'll try it later.
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »07.01.21 - 16:39
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    Here it's working fine:
    Code:

    Work:workspace/exdev-gfx2/lib_classic> make voxelspace_mos_gcc
    ppc-morphos-gcc-10 -o voxelspace_mos_gcc -Iinclude src/vertex3d.c src/matrix.c src/palette.c src/framebuffer_8bit.c src/framebuffer.c src/vertex2d.c src_amiga/window_amiga.c src/font.c src/heightmap.c
    src/voxelspace.c src/args.c src/helper.c src_amiga/exdev_base_amiga.c src_amiga/helper_amiga.c examples/voxelspace_main.c -O0 -noixemul -faltivec -mabi=altivec -D__AMIGA__ -g -lm
    Work:workspace/exdev-gfx2/lib_classic> gdb voxelspace_mos_gcc
    GNU gdb (GDB) 8.3
    Copyright (C) 2019 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 "ppc-morphos".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://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"...
    Reading symbols from voxelspace_mos_gcc...
    (gdb) break voxelspace
    voxelspace.c voxelspace_deinit voxelspace_init voxelspace_main.c voxelspace_render
    (gdb) break voxelspace_main.c:179
    Breakpoint 1 at 0xa60c: file examples/voxelspace_main.c, line 179.
    (gdb) r
    Starting program: /Work/workspace/exdev-gfx2/lib_classic/voxelspace_mos_gcc
    [New Task 0x216d8328]
    Breakpoint 1, main (argc=1, argv=0x22c9c010) at examples/voxelspace_main.c:179
    179 parse_args(argc, argv);
    (gdb) s
    parse_args (argc=1, argv=0x22c9c010) at examples/voxelspace_main.c:95
    95 if (args_find_option(argc, argv, 'h', "help")) {
    (gdb) s
    ...


    I compiled my binary with -O0 -g.
    BTW I did not know that we have the gdb bundled with the SDK.
    That's totally cool!

    [ Edited by eliot 07.01.2021 - 16:31 ]
    regards
    eliot
  • »07.01.21 - 17:30
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 502 from 2013/5/29
    Now that I have created HOME env variable it works great!
    What I dont know is why I dont have HOME env before...
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »07.01.21 - 17:48
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 2971 from 2003/3/5
    From: Canada
    Quote:

    tolkien wrote:
    Now that I have created HOME env variable it works great!
    What I dont know is why I dont have HOME env before...


    You actually shouldn't be doing that. Instead, open Users settings in system preferences and create a user there.
  • »07.01.21 - 18:55
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12075 from 2003/5/22
    From: Germany
    > I did not know that we have the gdb bundled with the SDK.

    It's always worthwhile to actually read the press release ;-)
  • »07.01.21 - 22:10
    Profile
  • MorphOS Developer
    Nadir
    Posts: 157 from 2003/3/17
    Quote:

    Andreas_Wolf wrote:
    It's always worthwhile to acually read the press release ;-)


    To be fair, that information was quite well hidden in the press release and that's because we decided not the make a big deal out of it for the time being. I got GDB first working about a year ago but it hasn't been publically released before now for a few reasons. First, it relies on some new OS functionality that Piru was kind enough to add for that purpose. At that time, this was not in the public MorphOS release. Secondly, this port is clearly work in progress and I have unfortunately not had as much time as I expected. However, since GDB is already quite useful for some types of debugging, it was now decided to release it "as-is" for the time being.

    The good news is that debugging of normal executables which are launched directly by GDB should work quite well. It supports both normal programs and ixemul binaries. Even for more complex applications like FlowStudio it should work. I support both the stabs debug format (which we have relied on historically for e.g. the FlowStudio debugger) or the newer DWARF format. Typical operations such as breakpoints, single stepping, tracing and printing of variable values should all work as expected but please let me know otherwise.

    I have also added experimental support to attach to existing MorphOS Tasks and even a few MorphOS specific commands to automatically attach to newly created child tasks. This is however not yet fully stable (and will probably always have some limitations), so do not ask me for details yet :-)

    Apart from this, I have not yet added support for shared libraries but this is clearly something I want to do. Also, I have started working on GDB support in FlowStudio as an alternative to built-in debugger. This should allow quite a lot of new functionality in Flow but it requires quite a bit of work and I can't promise when I find the time for that.

    I hope this gives some useful background and happy for feedback!

    Nicholai
  • »07.01.21 - 22:58
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 502 from 2013/5/29
    Thansk for the explanation. A flowstudio integration would be a really nice. Great work Nadir.
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »08.01.21 - 12:30
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ernsteiswuerfel
    Posts: 545 from 2015/6/18
    From: Funeralopolis
    Wow, great work Nadir!
    Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2]
  • »08.01.21 - 15:09
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 779 from 2007/10/23
    From: Gelsenkirchen,...
    By the way gdb also works with vbcc :-)
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »09.01.21 - 09:37
    Profile
  • MorphOS Developer
    Nadir
    Posts: 157 from 2003/3/17
    Quote:

    polluks wrote:
    By the way gdb also works with vbcc :-)


    Thanks, that's good to know. I hadn't tested this but it does make sense.
  • »09.01.21 - 12:21
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 779 from 2007/10/23
    From: Gelsenkirchen,...
    @Nadir
    vlink already supports stabs but it's disabled for PPC.
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »09.01.21 - 16:22
    Profile