Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* adding comments/labels?
@ 2007-08-29 21:06 jf
  2007-08-29 21:13 ` Daniel Jacobowitz
  2007-08-30 14:28 ` Baurzhan Ismagulov
  0 siblings, 2 replies; 6+ messages in thread
From: jf @ 2007-08-29 21:06 UTC (permalink / raw)
  To: gdb

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-08-30 14:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-29 21:06 adding comments/labels? jf
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox