From: ranjith kumar <ranjithproxy@gmail.com>
To: gdb@sourceware.org
Subject: gdb basic questions
Date: Sun, 15 Nov 2009 17:30:00 -0000 [thread overview]
Message-ID: <31cff80d0911150341xcbd1ec8l661fd9bbc944fa91@mail.gmail.com> (raw)
hi,
I am new to gdb. I have 3 questions.
Suppose that we want to keep a breakpoint at a function say
'myfunction', we will a gdb command
(gdb) b myfunction
at gdb command prompt.
What I want is keep breakpoints at, say, 1000 functions.
But I cant type 1000 times '(gdb) b functionname'.
1) Is there any way to keep breakpoints at 1000 functions, without
typing ?( Assume I have saved all 1000 funcion names in a file)
2) Generally, is it possible to ask gdb to go and read 'gdb commands'
from a file?
3) Another question. Sometimes gdb diplays a message like below and
waits for user to type 'y or n'.
"Make breakpoint pending on future shared library load? (y or [n]) "
How to tell gdb to not to wait for input from user and assume that
user has typed 'y' always ?
Thanks in advance.
next reply other threads:[~2009-11-15 11:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-15 17:30 ranjith kumar [this message]
2009-11-15 18:46 ` Jan Kratochvil
2009-11-16 10:23 nagaraju.m
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=31cff80d0911150341xcbd1ec8l661fd9bbc944fa91@mail.gmail.com \
--to=ranjithproxy@gmail.com \
--cc=gdb@sourceware.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox