* UML related query @ 2011-02-24 12:02 mohit verma 2011-02-24 12:04 ` Fwd: " mohit verma 2011-02-24 18:07 ` Michael Blizek 0 siblings, 2 replies; 3+ messages in thread From: mohit verma @ 2011-02-24 12:02 UTC (permalink / raw) To: kernelnewbies hi all if i put a break point on a function in UML and want to pass arguments to it , how can it be done? thanks in advance. -- ........................ *MOHIT VERMA* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110224/2da2cf6d/attachment.html ^ permalink raw reply [flat|nested] 3+ messages in thread
* Fwd: UML related query 2011-02-24 12:02 UML related query mohit verma @ 2011-02-24 12:04 ` mohit verma 2011-02-24 18:07 ` Michael Blizek 1 sibling, 0 replies; 3+ messages in thread From: mohit verma @ 2011-02-24 12:04 UTC (permalink / raw) To: kernelnewbies hi all if i put a break point on a function in UML and want to pass arguments to it , how can it be done? ( i am putting the breakpoint on a kernel function) thanks in advance. -- ........................ *MOHIT VERMA* -- ........................ *MOHIT VERMA* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110224/9187f133/attachment.html ^ permalink raw reply [flat|nested] 3+ messages in thread
* UML related query 2011-02-24 12:02 UML related query mohit verma 2011-02-24 12:04 ` Fwd: " mohit verma @ 2011-02-24 18:07 ` Michael Blizek 1 sibling, 0 replies; 3+ messages in thread From: Michael Blizek @ 2011-02-24 18:07 UTC (permalink / raw) To: kernelnewbies Hi! On 17:32 Thu 24 Feb , mohit verma wrote: > hi all > > if i put a break point on a function in UML and want to pass arguments to it > , how can it be done? You can start uml in gdb e.g. like this: gdb --args ./linux ubda=root.img Then use the gdb same commands you would when you debug a user space program. If you encounter segfauls during the boot of the uml, just ignore them and type "cont". They are caught by a signal handler in the uml process and do not cause any harm. But gdb will display them anyway. -Michi -- programing a layer 3+4 network protocol for mesh networks see http://michaelblizek.twilightparadox.com ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-24 18:07 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-02-24 12:02 UML related query mohit verma 2011-02-24 12:04 ` Fwd: " mohit verma 2011-02-24 18:07 ` Michael Blizek
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).