All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Smith <sos22@cam.ac.uk>
To: Ivan Deras <ideras@uv.unitec.edu>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Debugging a Process ...
Date: Sat, 26 Oct 2002 08:44:21 +0100	[thread overview]
Message-ID: <20021026074421.GA328@cam.ac.uk> (raw)
In-Reply-To: <3DB86A25.5000109@uv.unitec.edu>

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

> I want to know how to debug a process in Linux, i know that in Windows i 
> can use Windows-API to attach a debugger process to the debugged 
> process, but in Linux i don't know ...
If you want to attach an existing debugger, look at the documentation
for that debugger (in gdb, it's ``gdb <program_name> <pid of program>'').
If you're thinking of writing your own, have a look at man ptrace.
This isn't the clearest of documents, so you may want to have a look
at the source to a few programs which use it, like gdb, strace, or
ltrace, before starting on your own.

Steven Smith,
sos22@cam.ac.uk.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  parent reply	other threads:[~2002-10-26  7:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-24 21:46 Debugging a Process Ivan Deras
2002-10-25 23:39 ` Damir Cosic
2002-10-26  7:44 ` Steven Smith [this message]
2002-10-28 10:14 ` Ivan Deras
2002-10-31 15:16 ` Nat Ersoz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021026074421.GA328@cam.ac.uk \
    --to=sos22@cam.ac.uk \
    --cc=ideras@uv.unitec.edu \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.