All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] gdb ignoring skas breakpoints?
@ 2005-08-27  1:49 Allan Graves
  2005-08-27  9:26 ` Blaisorblade
  0 siblings, 1 reply; 3+ messages in thread
From: Allan Graves @ 2005-08-27  1:49 UTC (permalink / raw)
  To: user-mode-linux-devel

Jeff,
I thought i had this thread trace thing several times, but I couldn't 
get gdb to stop on breakpoints, its like it was ignoring them....   it 
thought everything was in thread_info.h.  And it listed the right code, 
and i could do like b 26, and it would set a breakpoint for line 26 of 
the correct function with the correct filename, and then just ignore it. 

(gdb) info b
Num Type           Disp Enb Address    What
1   breakpoint     keep y   0x0806f607 in panic at kernel/panic.c:74
2   breakpoint     keep y   0x0805c254 in switch_to_skas at 
arch/um/kernel/skas/process_kern.c:29
3   breakpoint     keep y   0x081e5ac5 in schedule at thread_info.h:50
4   breakpoint     keep y   0x081e6037 in schedule at kernel/sched.c:2747



Any suggestions?
Allan


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] gdb ignoring skas breakpoints?
  2005-08-27  1:49 [uml-devel] gdb ignoring skas breakpoints? Allan Graves
@ 2005-08-27  9:26 ` Blaisorblade
  2005-08-28 13:40   ` Jeff Dike
  0 siblings, 1 reply; 3+ messages in thread
From: Blaisorblade @ 2005-08-27  9:26 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Allan Graves, Jeff Dike

On Saturday 27 August 2005 03:49, Allan Graves wrote:
> Jeff,
> I thought i had this thread trace thing several times, but I couldn't
> get gdb to stop on breakpoints, its like it was ignoring them....   it
> thought everything was in thread_info.h.  And it listed the right code,
> and i could do like b 26, and it would set a breakpoint for line 26 of
> the correct function with the correct filename, and then just ignore it.
If you break on an exact line, then it may still be that you found a "no-op" 
line (which means for instance comments, but GCC optimization may make you 
wonder).

However, apart from that, I've seen that happen too when trying to do things 
like break panic. I think I've never seen it working. I don't know if Jeff 
has it working (he's been staying with gdb 5.x to avoid lots of problems in 
new releases).

However, please first disable TT mode and checks if that changes anything...
> (gdb) info b
> Num Type           Disp Enb Address    What
> 1   breakpoint     keep y   0x0806f607 in panic at kernel/panic.c:74
> 2   breakpoint     keep y   0x0805c254 in switch_to_skas at
> arch/um/kernel/skas/process_kern.c:29
> 3   breakpoint     keep y   0x081e5ac5 in schedule at thread_info.h:50
> 4   breakpoint     keep y   0x081e6037 in schedule at kernel/sched.c:2747
>
>
>
> Any suggestions?
> Allan
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> User-mode-linux-devel mailing list
> User-mode-linux-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] gdb ignoring skas breakpoints?
  2005-08-27  9:26 ` Blaisorblade
@ 2005-08-28 13:40   ` Jeff Dike
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Dike @ 2005-08-28 13:40 UTC (permalink / raw)
  To: Blaisorblade; +Cc: user-mode-linux-devel, Allan Graves

On Sat, Aug 27, 2005 at 11:26:10AM +0200, Blaisorblade wrote:
> However, apart from that, I've seen that happen too when trying to do things 
> like break panic. I think I've never seen it working. I don't know if Jeff 
> has it working (he's been staying with gdb 5.x to avoid lots of problems in 
> new releases).

I'm now suffering with a modern breakpoint-missing gdb just like
everyone else.  What I do is stick a
	while(stop_here) sleep(1);
at the point where I want to stop, and rebuild and reboot.

When it freezes at the sleep, I attach gdb to it, set stop_here=0,
finish my way out of the sleep, and continue debugging from there.

				Jeff


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

end of thread, other threads:[~2005-08-28 13:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-27  1:49 [uml-devel] gdb ignoring skas breakpoints? Allan Graves
2005-08-27  9:26 ` Blaisorblade
2005-08-28 13:40   ` Jeff Dike

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.