Author Topic: [? - Gdb] What does the examine command do?  (Read 4414 times)

0 Members and 1 Guest are viewing this topic.

Offline WirelessDesert

  • Knight
  • **
  • Posts: 356
  • Cookies: 10
  • I think...
    • View Profile
[? - Gdb] What does the examine command do?
« on: February 01, 2013, 12:18:41 pm »
I don't understand how the (e)x(amine) command works in gdb, if someone could explain it for me I'd be very pleased.

Also interested in how for example "x/3w" would show for example the eip at "for(int i=0; i !=3; i++)", and sorry if it doesn't  work like that :3, I started with debugging for real two days ago.
Check out my arduino project: Moving car - School project!
"I'm like current, I always take the easiest route."

Offline Xires

  • Noob Eater
  • Administrator
  • Knight
  • *
  • Posts: 379
  • Cookies: 149
    • View Profile
    • Feed The Trolls - Xires
Re: [? - Gdb] What does the examine command do?
« Reply #1 on: February 05, 2013, 10:14:51 am »
'eXamine' is used, normally, for memory inspection.  It permits you to view memory at a given location.  Using different syntax for the command permits you to designate different sections and methods to view specified memory.  You can specify memory location by literal address, offset, reference from variable, reference to memory reference within variable, reference within a register, etc.

I strongly recommend both in-depth research on the command(aka RTFM) as well as trial & error experimentation.  Keep notes if you have to; they could come in handy later if you need to review.
-Xires

Offline WirelessDesert

  • Knight
  • **
  • Posts: 356
  • Cookies: 10
  • I think...
    • View Profile
Re: [? - Gdb] What does the examine command do?
« Reply #2 on: February 05, 2013, 10:18:38 am »
Finally someone answered! Thank you soooooo much!!
I'll be sure to keep notes from now on.
Check out my arduino project: Moving car - School project!
"I'm like current, I always take the easiest route."

Offline 0poitr

  • Peasant
  • *
  • Posts: 149
  • Cookies: 64
    • View Profile
Imagination is the first step towards Creation.