No problem, I should have given you an example =)
Anyway it's solved now!

Max
Op 16-apr-10, om 15:36 heeft Korey Sewell het volgende geschreven:

Oh wow, Can't believe I missed that...Sorry Max, I didnt follow your instructions correctly.

Scratch case # 10456.7A out the "annoying things" file ...haha

On Fri, Apr 16, 2010 at 9:27 AM, soumyaroop roy <[email protected]> wrote:
Hey Korey,

Use 'p inst.data->seqNum' and 'p inst.data->readTid()'.

regards,
Soumyaroop


On Fri, Apr 16, 2010 at 9:15 AM, Korey Sewell <[email protected]> wrote:
Thanks for the response Max.

Unfortunately, that's not working. Am I missing something? This is a quick example of my problem: I place an "assert(0)" on line 938 of src/cpu/inorder/ pipeline_stage.cc right after a inst->readTid() statedment. So we know the ptr is valid.

in GDB, I can run m5.debug or m5.opt and the sim will stop there. Once you backtrace to frame 4(?), you should *hopefully* be able to just check any variables here.

But, all of the following wont work:
p inst->seqNum
p inst.seqNum
p inst->readTid()
p inst.readTid()

The error message is:
"There is no member or method named seqNum"
for the first 2 and
"Couldn't find method ThePipeline::DynInstPtr::readTid"

So I (or M5) am doing something here to make GDB unable to deference this pointer or even identify the methods in the object.

If anyone has any ideas or sees any obvious "gotchas" I'm missing , let me know.


On Fri, Apr 16, 2010 at 3:15 AM, Maximilien Breughe <[email protected] > wrote:
Try inst.data-> :-)

Max

On 04/16/2010 06:59 AM, Korey Sewell wrote:
Hey all,
Is there a good way to access a DynInstPtr in GDB? For the most part "inst->___" won't work, which forces more roundabout debugging then probably has to be necessary.

If someone has a good way to get around this, I'll happily post it on the M5 wiki for them :)

--
- Korey

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev



_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev




--
- Korey

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev




--
Soumyaroop Roy
Ph.D. Candidate
Department of Computer Science and Engineering
University of South Florida, Tampa
http://www.csee.usf.edu/~sroy

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev




--
- Korey
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to