亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? linux-xen-low.c

?? xen 3.2.2 源碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* Low level interface to ptrace, for the remote server for GDB.   Copyright 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004   Free Software Foundation, Inc.   This file is part of GDB.   This program is free software; you can redistribute it and/or modify   it under the terms of the GNU General Public License as published by   the Free Software Foundation; either version 2 of the License, or   (at your option) any later version.   This program is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   GNU General Public License for more details.   You should have received a copy of the GNU General Public License   along with this program; if not, write to the Free Software   Foundation, Inc., 59 Temple Place - Suite 330,   Boston, MA 02111-1307, USA.  */#include "server.h"#include "linux-low.h"#include <sys/wait.h>#include <stdio.h>#include <sys/param.h>#include <sys/dir.h>#include <sys/ptrace.h>#include <sys/user.h>#include <signal.h>#include <sys/ioctl.h>#include <fcntl.h>#include <string.h>#include <stdlib.h>#include <unistd.h>#include <errno.h>#include <xenctrl.h>#define TRACE_ENTER /* printf("enter %s\n", __FUNCTION__) */static int xc_handle;static inline intcurvcpuid(){  struct process_info *process;  if (current_inferior == NULL)      return 0;  process = get_thread_process(current_inferior);  return (process->thread_known ? process->tid : 0);}struct inferior_list all_processes;static int current_domid;static int expect_signal = 0;static int signal_to_send = 0; static void linux_resume (struct thread_resume *resume_info);static void linux_set_inferior (void);int debug_threads;int using_threads;extern int isfile;struct pending_signals{  int signal;  struct pending_signals *prev;};#define PTRACE_ARG3_TYPE long#define PTRACE_XFER_TYPE longstatic int use_regsets_p = 1;#define pid_of(proc) ((proc)->head.id)/* FIXME: Delete eventually.  */#define inferior_pid (pid_of (get_thread_process (current_inferior)))/* This function should only be called if the process got a SIGTRAP.   The SIGTRAP could mean several things.   On i386, where decr_pc_after_break is non-zero:   If we were single-stepping this process using PTRACE_SINGLESTEP,   we will get only the one SIGTRAP (even if the instruction we   stepped over was a breakpoint).  The value of $eip will be the   next instruction.   If we continue the process using PTRACE_CONT, we will get a   SIGTRAP when we hit a breakpoint.  The value of $eip will be   the instruction after the breakpoint (i.e. needs to be   decremented).  If we report the SIGTRAP to GDB, we must also   report the undecremented PC.  If we cancel the SIGTRAP, we   must resume at the decremented PC.   (Presumably, not yet tested) On a non-decr_pc_after_break machine   with hardware or kernel single-step:   If we single-step over a breakpoint instruction, our PC will   point at the following instruction.  If we continue and hit a   breakpoint instruction, our PC will point at the breakpoint   instruction.  */static CORE_ADDRget_stop_pc (void){  CORE_ADDR stop_pc = (*the_low_target.get_pc) ();  if (get_thread_process (current_inferior)->stepping)    return stop_pc;  else    return stop_pc - the_low_target.decr_pc_after_break;}static void *add_process (int pid, long tid){  struct process_info *process;  process = (struct process_info *) malloc (sizeof (*process));  memset (process, 0, sizeof (*process));  process->head.id = pid;  process->tid = tid;  process->lwpid = tid;  add_inferior_to_list (&all_processes, &process->head);  return process;}/* Start an inferior process and returns its pid.   ALLARGS is a vector of program-name and args. */static intlinux_create_inferior (char *program, char **allargs){  fprintf (stderr, "Cannot exec %s: %s.\n", program,	   strerror (errno));  fflush (stderr);  _exit (0177);  /* NOT REACHED */  return -1;}intlinux_attach (int domid){    struct process_info *new_process;    current_domid = domid;    /* this is handled for all active vcpus in PTRACE_ATTACH via the thread_create_callback */    new_process = (struct process_info *) add_process (domid, curvcpuid());    /* Don't ignore the initial SIGSTOP if we just attached to this process.  */    /* vcpuid == 0 */    add_thread (0, new_process);    new_process->stop_expected = 0;    if (xc_ptrace (xc_handle, PTRACE_ATTACH, domid, 0, isfile) != 0) {	fprintf (stderr, "Cannot attach to domain %d: %s (%d)\n", domid,		 strerror (errno), errno);	fflush (stderr);	if (!using_threads)	    _exit (0177);    }    return 0;}/* Kill the inferior process.  Make us have no inferior.  */static voidlinux_kill_one_process (struct inferior_list_entry *entry){  struct thread_info *thread = (struct thread_info *) entry;  struct process_info *process = get_thread_process (thread);  xc_ptrace (xc_handle, PTRACE_KILL, pid_of (process), 0, 0);}static voidlinux_kill (void){  for_each_inferior (&all_threads, linux_kill_one_process);}static voidlinux_detach_one_process (struct inferior_list_entry *entry){  xc_ptrace (xc_handle, PTRACE_DETACH, current_domid, 0, 0);}static voidlinux_detach (void){  for_each_inferior (&all_threads, linux_detach_one_process);}/* Return nonzero if the given thread is still alive.  */static intlinux_thread_alive (int tid){    if (find_inferior_id (&all_threads, tid) != NULL)	return 1;    else	return 0;}/* Wait for process, returns status.  */static unsigned charlinux_wait (char *status){  int w;  if (xc_waitdomain(xc_handle, current_domid, &w, 0))      return -1;    *status = 'T';  if (expect_signal)      return expect_signal;  else      return SIGTRAP;}static voidlinux_resume (struct thread_resume *resume_info){  int step = resume_info->step;  TRACE_ENTER;  expect_signal = resume_info->sig;  for_each_inferior(&all_threads, regcache_invalidate_one);  if (debug_threads)    fprintf(stderr, "step: %d\n", step);  xc_ptrace (xc_handle, step ? PTRACE_SINGLESTEP : PTRACE_CONT, 	    resume_info->thread, 0, 0);}static intregsets_fetch_inferior_registers (){  struct regset_info *regset;  TRACE_ENTER;  regset = target_regsets;  while (regset->size >= 0)    {      void *buf;      int res;      if (regset->size == 0)	{	  regset ++;	  continue;	}      buf = malloc (regset->size);      res = xc_ptrace (xc_handle, regset->get_request, 		      curvcpuid(),		      0, (PTRACE_XFER_TYPE)buf);      if (res < 0)	{	  if (errno == EIO)	    {	      /* If we get EIO on the first regset, do not try regsets again.		 If we get EIO on a later regset, disable that regset.  */	      if (regset == target_regsets)		{		  use_regsets_p = 0;		  return -1;		}	      else		{		  regset->size = 0;		  continue;		}	    }	  else	    {	      char s[256];	      sprintf (s, "ptrace(regsets_fetch_inferior_registers) PID=%d",		       inferior_pid);	      perror (s);	    }	}      regset->store_function (buf);      regset ++;    }  return 0;}static intregsets_store_inferior_registers (){  struct regset_info *regset;  TRACE_ENTER;  regset = target_regsets;  while (regset->size >= 0)    {      void *buf;      int res;      if (regset->size == 0)	{	  regset ++;	  continue;	}      buf = malloc (regset->size);      regset->fill_function (buf);      res = xc_ptrace (xc_handle, regset->set_request, curvcpuid(), 0, (PTRACE_XFER_TYPE)buf);      if (res < 0)	{	  if (errno == EIO)	    {	      /* If we get EIO on the first regset, do not try regsets again.		 If we get EIO on a later regset, disable that regset.  */	      if (regset == target_regsets)		{		  use_regsets_p = 0;		  return -1;		}	      else		{		  regset->size = 0;		  continue;		}	    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合天天综合给合国产| 亚洲动漫第一页| 色综合久久久久久久久| 亚洲人成人一区二区在线观看| 不卡电影免费在线播放一区| 亚洲日本在线视频观看| 欧美图片一区二区三区| 七七婷婷婷婷精品国产| 久久久www成人免费无遮挡大片| 高清国产午夜精品久久久久久| 亚洲欧洲综合另类在线| 欧美精品久久久久久久久老牛影院| 精品一区二区国语对白| 亚洲婷婷综合久久一本伊一区| 欧美日本高清视频在线观看| 精品一区二区国语对白| 一区二区三区在线视频免费 | 亚洲免费观看高清完整版在线观看 | 久久99热狠狠色一区二区| 精品久久久三级丝袜| 经典三级一区二区| 亚洲三级电影网站| 3d成人h动漫网站入口| 成人小视频在线| 午夜av区久久| 国产精品成人免费在线| 欧美一级日韩不卡播放免费| 99re这里只有精品首页| 久久激情五月激情| 午夜视频一区在线观看| 中文字幕一区二区三中文字幕| 欧美精品在线一区二区| 色婷婷精品大视频在线蜜桃视频| 激情偷乱视频一区二区三区| 亚洲亚洲精品在线观看| 中文字幕一区二区三区在线观看| 久久综合久久综合九色| 日韩欧美在线不卡| 69成人精品免费视频| 精品视频一区 二区 三区| 色综合av在线| 色欲综合视频天天天| 成人高清免费在线播放| 黄网站免费久久| 日韩av一区二区在线影视| 亚洲123区在线观看| 亚洲国产视频直播| 亚洲午夜免费视频| 国产精品免费久久久久| 日韩一区二区三区电影在线观看| 欧美美女一区二区在线观看| 在线一区二区三区| 99精品国产99久久久久久白柏| 国产成人亚洲综合色影视| 国产黄人亚洲片| 国产成人在线看| 不卡电影一区二区三区| 91麻豆国产精品久久| 一本大道久久a久久精二百| 91国偷自产一区二区三区观看| 日本韩国视频一区二区| 欧美日韩国产首页| 日韩亚洲欧美高清| 中文字幕一区免费在线观看| 亚洲色欲色欲www在线观看| 一区二区三区四区乱视频| 日韩极品在线观看| 国产成人免费视频网站 | 久久99国产精品久久99果冻传媒| 蜜臀久久99精品久久久久久9| 激情综合一区二区三区| 成人精品免费网站| 在线日韩av片| 欧美精品一区二区精品网| 国产情人综合久久777777| 亚洲精品中文字幕在线观看| 秋霞午夜av一区二区三区| 免费久久99精品国产| 国产91在线|亚洲| 欧美情侣在线播放| 中文字幕一区在线观看| 丝袜脚交一区二区| 粉嫩久久99精品久久久久久夜| 欧美色成人综合| 国产欧美日韩综合| 一区二区日韩av| 成人午夜激情片| 欧美一级高清片| 伊人性伊人情综合网| 国产精品影视在线| 538prom精品视频线放| 亚洲人成精品久久久久| 大胆欧美人体老妇| 精品国产乱码久久久久久影片| 亚洲地区一二三色| 色综合欧美在线| 中文av字幕一区| 国内精品免费**视频| 日韩网站在线看片你懂的| 亚洲一区中文在线| 色综合咪咪久久| 成人免费在线观看入口| 国产69精品一区二区亚洲孕妇 | 亚洲第一会所有码转帖| 色综合咪咪久久| 亚洲精品伦理在线| 色综合欧美在线视频区| 中文字幕一区二区不卡 | 蜜乳av一区二区| 欧美一级国产精品| 日韩综合小视频| 日韩精品一区二| 精油按摩中文字幕久久| 久久人人爽爽爽人久久久| 国产一区不卡视频| 久久久久久久久伊人| 国产精品一区免费在线观看| 国产欧美日本一区视频| 9l国产精品久久久久麻豆| 久久久久久久网| 免费一级欧美片在线观看| 欧美一区二区日韩一区二区| 日本一区中文字幕| 欧美草草影院在线视频| 国产不卡在线一区| 亚洲品质自拍视频| 91精品国产综合久久精品| 国产精品乡下勾搭老头1| 中文字幕一区二区三区在线不卡| 91成人在线观看喷潮| 国产精品一区二区你懂的| 欧美精品电影在线播放| 久久国产婷婷国产香蕉| 一区二区三区色| 久久精品视频在线免费观看| 欧美日韩亚洲不卡| 91在线看国产| 国产成人精品一区二区三区四区 | 99久久精品一区二区| 美女精品一区二区| 天涯成人国产亚洲精品一区av| 亚洲精品视频免费看| 国产精品天美传媒| 国产亚洲精品aa午夜观看| 日韩一区二区三区免费看| 欧美视频一区二区三区四区| 色吊一区二区三区| 色婷婷亚洲综合| 91浏览器打开| 色综合久久综合网欧美综合网| 国产成人午夜精品影院观看视频 | 国产乱码字幕精品高清av | 国产69精品一区二区亚洲孕妇| 国精产品一区一区三区mba视频| 免费日本视频一区| 日韩国产在线一| 蜜桃免费网站一区二区三区| 青青草国产精品97视觉盛宴| 欧美bbbbb| 国产成人精品免费一区二区| 岛国精品在线播放| 91最新地址在线播放| 色综合欧美在线视频区| 欧美情侣在线播放| 精品国精品国产尤物美女| 日本一区二区电影| 日韩毛片在线免费观看| 亚洲一二三区不卡| 精品一区免费av| 男人的j进女人的j一区| 蜜臀久久99精品久久久久久9| 激情文学综合插| 91麻豆免费视频| 在线播放中文字幕一区| 26uuu精品一区二区| 国产精品久久久久影院亚瑟| 一区二区三区四区蜜桃| 精品在线亚洲视频| 99这里都是精品| 在线综合视频播放| 国产日韩欧美精品综合| 亚洲国产精品一区二区尤物区| 国产综合色产在线精品 | 美女一区二区久久| 成人三级伦理片| 777色狠狠一区二区三区| 欧美国产成人精品| 日韩成人午夜电影| 99久久婷婷国产综合精品| 日韩一区二区视频| 亚洲精品乱码久久久久久久久 | 欧美一区二区三区视频在线观看| 欧美激情综合在线| 日韩经典一区二区| 91网站最新地址| 国产精品人成在线观看免费| 日本美女一区二区三区视频| 欧洲一区二区三区在线| 国产精品三级电影| 精品在线一区二区三区|