亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
色94色欧美sute亚洲线路一久 | 欧美aa在线视频| 毛片av一区二区| 国产白丝精品91爽爽久久| 99久久精品国产观看| 欧美日韩一区二区三区不卡| 欧美大片一区二区| 国产精品久久久久久久久晋中 | 9191国产精品| 久久精品人人做人人爽人人| 一区二区三区不卡视频在线观看| 日韩在线卡一卡二| 大胆欧美人体老妇| 91麻豆精品国产91久久久久久久久| 久久综合狠狠综合| 亚洲一区二区三区四区在线观看| 久久99日本精品| 在线观看亚洲成人| 国产欧美日韩视频在线观看| 一区二区三区中文免费| 久久99精品久久久久| 欧洲视频一区二区| 欧美国产日本视频| 日韩黄色在线观看| 色综合久久天天综合网| 久久亚洲综合色| 亚洲成人动漫在线观看| av电影在线观看完整版一区二区| 日韩一级黄色大片| 一区二区不卡在线视频 午夜欧美不卡在 | 风间由美中文字幕在线看视频国产欧美| 欧美亚一区二区| 国产精品久久久久永久免费观看 | 26uuu国产一区二区三区| 亚洲欧美日韩在线| 韩国视频一区二区| 精品1区2区3区| 亚洲欧美日韩国产成人精品影院| 精品系列免费在线观看| 欧美日韩亚洲不卡| 亚洲免费在线电影| 粉嫩av一区二区三区粉嫩| 精品国产一区久久| 日韩精品一二三四| 欧美艳星brazzers| 亚洲乱码国产乱码精品精小说| 国产成人精品一区二区三区网站观看| 欧美日韩成人在线一区| 一区二区三区四区国产精品| 丁香一区二区三区| 久久久久国产成人精品亚洲午夜| 日韩精品福利网| 欧美日韩在线三级| 一区二区三区四区蜜桃| 色综合久久久久网| 中文无字幕一区二区三区| 精品一区二区三区视频在线观看 | 久久99在线观看| 欧美一级免费观看| 午夜精品久久久久久久| 欧美性视频一区二区三区| 亚洲欧美日韩久久| 91麻豆精品国产91| 亚洲一区二区三区在线看| 97se亚洲国产综合自在线观| 国产精品天美传媒沈樵| 国产91丝袜在线播放0| 日本一区二区免费在线观看视频| 激情综合色丁香一区二区| 欧美一区二区三区视频在线| 日韩电影在线一区| 88在线观看91蜜桃国自产| 午夜激情久久久| 91精品国产高清一区二区三区| 日本欧洲一区二区| 日韩一级免费一区| 激情欧美一区二区三区在线观看| 精品剧情v国产在线观看在线| 国内精品久久久久影院色| 日韩免费在线观看| 九色porny丨国产精品| 精品国产乱码久久久久久老虎| 久久激五月天综合精品| 久久中文娱乐网| 国产99一区视频免费| 中文字幕永久在线不卡| 91麻豆福利精品推荐| 亚洲福利一区二区| 日韩免费福利电影在线观看| 国产乱码精品一品二品| 中文无字幕一区二区三区| 91麻豆swag| 视频在线观看国产精品| 精品久久久久av影院| 成人av免费网站| 夜夜爽夜夜爽精品视频| 欧美一二三四区在线| 国产成人一区二区精品非洲| 亚洲欧洲av一区二区三区久久| 在线视频观看一区| 日本视频中文字幕一区二区三区| 精品国产乱码久久久久久蜜臀| 国产成人免费在线| 亚洲精品国产无天堂网2021| 欧美一区二区三区在线观看视频| 国产精品一二三四| 一区二区三区国产精品| 精品国产乱码久久久久久影片| 国产不卡视频在线播放| 夜夜嗨av一区二区三区| 欧美电影免费观看高清完整版在线| 国产一区 二区| 亚洲图片有声小说| 精品对白一区国产伦| 成人高清视频在线| 日韩高清在线电影| 日本一区免费视频| 欧美片网站yy| 国产a级毛片一区| 视频一区国产视频| 欧美激情一区二区在线| 欧美日本一区二区三区四区| 国产麻豆9l精品三级站| 亚洲国产一区视频| 欧美极品xxx| 欧美一区二区精品在线| 99久久免费国产| 成人精品亚洲人成在线| 日韩综合一区二区| 国产精品二三区| 精品精品国产高清一毛片一天堂| 色综合久久九月婷婷色综合| 国内精品在线播放| 亚洲高清免费视频| 中文字幕一区在线观看| 7777精品伊人久久久大香线蕉完整版| 日韩视频不卡中文| 色综合久久中文综合久久97| 精品在线播放午夜| 国产精品天干天干在观线| 一本久道久久综合中文字幕| 亚洲美女一区二区三区| 在线精品观看国产| 大白屁股一区二区视频| 美腿丝袜亚洲一区| 日韩理论在线观看| 国产亚洲精品福利| 欧美一区二区三区思思人| 在线观看亚洲一区| 成人av影视在线观看| 激情综合网激情| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲裸体在线观看| 中文字幕不卡一区| 国产亚洲短视频| 亚洲精品一线二线三线无人区| 精品视频一区二区不卡| 91天堂素人约啪| 国产 欧美在线| 国产精品99精品久久免费| 日本视频免费一区| 午夜精彩视频在线观看不卡| 一区二区三区四区在线| 亚洲免费在线观看| 亚洲人成人一区二区在线观看 | 国产精品白丝jk黑袜喷水| 人禽交欧美网站| 日日夜夜一区二区| 亚洲成人资源在线| 亚洲午夜激情网页| 一区二区三区免费在线观看| 亚洲乱码中文字幕| 一区二区久久久久| 亚洲一区二区三区影院| 亚洲一区二区三区影院| 亚洲中国最大av网站| 亚洲激情五月婷婷| 亚洲欧美日韩系列| 亚洲综合区在线| 亚洲午夜激情网站| 日韩黄色片在线观看| 日本成人在线不卡视频| 日本不卡123| 激情成人午夜视频| 国产精品一线二线三线精华| 国产福利一区在线| 成人精品免费网站| 9人人澡人人爽人人精品| 91首页免费视频| 在线看国产一区| 717成人午夜免费福利电影| 91麻豆精品国产无毒不卡在线观看| 欧美放荡的少妇| 日韩免费一区二区三区在线播放| 日韩欧美高清一区| 国产片一区二区| 亚洲欧美视频在线观看| 亚洲动漫第一页| 久久se这里有精品| 成人性色生活片免费看爆迷你毛片|