Find the answer to your Linux question:
Results 1 to 5 of 5
i have to create a simple gdb like debugger it should have the following functionalities: ->set or clear breakpoints ->stop at that particular breakpoint. the problem is that i am ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    3

    can anyone please help me URGENT

    i have to create a simple gdb like debugger
    it should have the following functionalities:
    ->set or clear breakpoints
    ->stop at that particular breakpoint.

    the problem is that i am new to linux programming .
    and i am not able to do this .
    can anyone help me with this .

  2. #2
    Just Joined!
    Join Date
    Feb 2009
    Posts
    12
    The GDB or GNU Project Debugger is released under the GNU Public License (duh.) This means taht its source code is available for anyone to look at. If you want to make application that is similar, you are permitted to use the source of the GDB, as long as you follow the terms of the GPL.

    The GNU Project Debugger

    The GNU Public License

  3. #3
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,392
    Why re-invent the wheel? Why don't you just use gdb?
    Linux user #126863 - see http://linuxcounter.net/

  4. #4
    Just Joined!
    Join Date
    Feb 2009
    Posts
    3
    the thing is we have to develop a debugger..
    its kind of an assignment
    i have downloaded the gdb source code
    but its too huge to go thru it ..
    i just want to know how i can set a breakpoint . is it using interrupts or exception

  5. #5
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    Homework assignments are not allowed on this forum, as per the forum rules.

    Debuggers are very complicated programs, and if you don't know anything about Linux development, it seems that this is a poor program to attempt to design.

    Having said that, if you're truly interested, gdb accomplishes what it does by using the ptrace system call. You may run the command "man ptrace" for more information.

    If you eventually have more specific questions, please ask them.
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...