* inferiors.c (add_thread): Set last_status kind to

TARGET_WAITKIND_IGNORE.
	* linux-low.c (cancel_breakpoint): Remove unnecessary regcache
	fetch.  Use ptid_of.  Avoid unnecessary get_lwp_thread calls.
	(linux_wait_1): Move `thread' local definition to block that uses
	it.  Don't NULL initialize `event_child'.
	(linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
	Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
	* linux-x86-low.c (x86_breakpoint_at): Read raw memory.
This commit is contained in:
Pedro Alves
2010-04-03 23:14:18 +00:00
parent 1eed4def45
commit fc7238bbba
4 changed files with 22 additions and 11 deletions

View File

@ -325,7 +325,7 @@ x86_breakpoint_at (CORE_ADDR pc)
{
unsigned char c;
read_inferior_memory (pc, &c, 1);
(*the_target->read_memory) (pc, &c, 1);
if (c == 0xCC)
return 1;