From: jf <jf@danglingpointers.net>
To: gdb@sourceware.org
Subject: adding comments/labels?
Date: Wed, 29 Aug 2007 21:06:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.64.0708300433280.11509@localhost.localdomain> (raw)
After digging through the documentation some and realizing how futile
google is when you search for things like 'gdb comments' or 'gdb
labels'/et cetera, I turn to you all ;]
Is there any way to add a label/comment/rename a symbol in gdb?
specifically what I'd like to do is add symbol resolution to addresses,
i.e.
call 0x12345678
I disassemble the code at 0x12345678 and see that it just does:
mov $0x04, %al
sysenter
cmp [...]
and I can say, oh thats a sys_write wrapper, so I'd like to relabel it as
'sys_write', so now when I run across a call to it i see:
call <sys_write_wrapper>
I'm assuming no such functionality exists, as I can find nothing about it,
so that said, can anyone direct me to where I should touch gdb to add such
functionality?
thanks.
next reply other threads:[~2007-08-29 21:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-29 21:06 jf [this message]
2007-08-29 21:13 ` Daniel Jacobowitz
2007-08-29 21:18 ` jf
2007-08-29 21:25 ` Daniel Jacobowitz
2007-08-29 21:30 ` Joel Brobecker
2007-08-30 14:28 ` Baurzhan Ismagulov
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.LNX.4.64.0708300433280.11509@localhost.localdomain \
--to=jf@danglingpointers.net \
--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