Is there anything like sdb in OS X?

Discussion in 'Programmer Misc' started by Robert Peirce, Feb 12, 2008.

  1. I need to debug a C program and am at a loss how to do it short of
    sticking debug print statements in it. I used to use sdb to get a quick
    stack trace or to single step through a program. Is there anything like
    that in OS X?

    --
    Robert B. Peirce, Venetia, PA 724-941-6883
    bob AT peirce-family.com [Mac]
    rbp AT cooksonpeirce.com [Office]
     
    Robert Peirce, Feb 12, 2008
    #1
    1. Advertisements

  2. In article <>,
    Robert Peirce <> wrote:

    > I need to debug a C program and am at a loss how to do it short of
    > sticking debug print statements in it. I used to use sdb to get a quick
    > stack trace or to single step through a program. Is there anything like
    > that in OS X?


    gdb
     
    David Phillip Oster, Feb 12, 2008
    #2
    1. Advertisements

  3. In article <>,
    David Phillip Oster <> wrote:

    > In article <>,
    > Robert Peirce <> wrote:
    >
    > > I need to debug a C program and am at a loss how to do it short of
    > > sticking debug print statements in it. I used to use sdb to get a quick
    > > stack trace or to single step through a program. Is there anything like
    > > that in OS X?

    >
    > gdb


    Thanks. That should do it. I tried adb and sdb but not gdb!!

    --
    Robert B. Peirce, Venetia, PA 724-941-6883
    bob AT peirce-family.com [Mac]
    rbp AT cooksonpeirce.com [Office]
     
    Robert Peirce, Feb 12, 2008
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Robert Peirce

    Does OS X have adb or sdb?

    Robert Peirce, Feb 19, 2004, in forum: Apps
    Replies:
    1
    Views:
    99
    Robert Peirce
    Feb 19, 2004
  2. Steve
    Replies:
    14
    Views:
    127
    Per Rønne
    May 14, 2004
  3. Groucho

    Mac-like app like Swishmax?

    Groucho, Sep 30, 2007, in forum: Apps
    Replies:
    0
    Views:
    228
    Groucho
    Sep 30, 2007
  4. Justin
    Replies:
    1
    Views:
    293
    nospam
    Mar 27, 2009
  5. Replies:
    2
    Views:
    140
    Lorenzo
    Sep 19, 2006
  6. Keep it to Usenet please

    Anything like 'ps' or 'top' for OS 9?

    Keep it to Usenet please, Feb 28, 2004, in forum: Mac
    Replies:
    3
    Views:
    139
    Van Bagnol
    Feb 29, 2004
  7. Yeric

    Anything like knode for OS X ??

    Yeric, Nov 28, 2003, in forum: UK Macs
    Replies:
    6
    Views:
    136
    Chris Ridd
    Nov 30, 2003
  8. mojofilter
    Replies:
    6
    Views:
    297
    Peter Ceresole
    Mar 1, 2004
Loading...