public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Smita <smita@cse.ucsc.edu>
To: gdb@sources.redhat.com
Subject: GDB Help
Date: Sat, 22 Mar 2003 01:16:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.44.0303211710480.153-100000@sundance.cse.ucsc.edu> (raw)

Hi want to write a trcing utility using gdb.
For this I am constructing a gdb script to collect tracing data and later
parsing the output to get required information.

I want to be able to set breakpoints at function enrty points and exit
points, and specify commands for these breakpoints.

Breakpoints at the function entry points can be set before invoking gdb
(since I know what all functions are to be traced). Within the commands
for the breakpoints at function entry, I am putting breakpoint at the
return address of the function. This can be done dynmically aftr gdb is
invoked. But I am not able to specify commands for the breakpoint at
return address. I can't nest commands. I tried using user-defined commands
but that didn't work either.
Aby ideas would be appreciated.
Thanks
Smita

             reply	other threads:[~2003-03-22  1:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-22  1:16 Smita [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-12-06  2:32 GDB : help Ajjaiah B M
2001-12-06  3:04 ` Eli Zaretskii

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=Pine.GSO.4.44.0303211710480.153-100000@sundance.cse.ucsc.edu \
    --to=smita@cse.ucsc.edu \
    --cc=gdb@sources.redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).