• 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 - 16:30
    Profile