终于把bochs和gdb连起来了,下面描述下步骤以作记录。
1.安装bochs
前面有篇文章介绍了bochs源码编译安装过程,这里安装也非常相似,只是命令稍微有些不同
./configure --enable-gdb-stub
make
make install
2.下载调试映像
http://oldlinux.org/Linux.old/bochs/linux-0.11-gdb-r...
分类:
数据库 时间:
2014-05-22 11:51:56
阅读次数:
341
Gallery和swithcer联合使用
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complian...
分类:
其他好文 时间:
2014-05-22 11:19:05
阅读次数:
288
8.5 日志
Logging模块提供了一些功能全面和灵活的日志系统。最简单的形式就是把日志信息发送到一个文件或sys.stderr;
import logging
logging.debug(’Debugging information’)
logging.info(’Informational message’)
logging.warning(’Warning:config file...
分类:
编程语言 时间:
2014-05-22 10:45:11
阅读次数:
379
命令历史
以:和/开头的命令都有历史纪录,可以首先键入:或/然后按上下箭头来选择某个历史命令。
启动vim
在命令行窗口中输入以下命令即可
vim 直接启动vim
vim filename 打开vim并创建名为filename的文件
文件命令
打开单个文件
vim file...
分类:
其他好文 时间:
2014-05-22 09:25:43
阅读次数:
215
第一种:
1、进旧站后台:系统管理→数据库备份。单击下部“全选”后“提交”进行备份;
2、将旧站的所有文件上传到新站点,删除install目录下的install.lock文件;
3、象安装全新站点一样进行网站初始化安装;
4、进入新站后台:系统管理→数据库还原。同样“全选”,然后单击“提交”进行数据库还原。
5、后台进入“HTML更新”,选择“一键更新网站”。
OK...
分类:
其他好文 时间:
2014-05-22 08:59:15
阅读次数:
453
<!--
Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the L...
分类:
移动开发 时间:
2014-05-22 08:41:44
阅读次数:
377
两种方法:
一、File→ArcGIS Online→影像图→Open。
二、
效果:...
分类:
其他好文 时间:
2014-05-20 14:33:54
阅读次数:
310
oracle提供非常精确、有效的row level
lock机制,多个用户同时修改数据时,为了保护数据,以块为单位挂起锁的情况不会发生。但这不太正确。以块为单位的锁虽然不存在,但正因为oracle
I/O以块为单位组成,所以块单位锁是必要的。假设row1、row2两个行位于同一个块内,两名用户(用户...
分类:
其他好文 时间:
2014-05-20 13:11:01
阅读次数:
259
struct dx_rootHtree的内部节点:struct
dx_nodeHtree树根和节点中都存在的Hash map:struct
dx_entry1.20扩展属性EA扩展属性(xattrs)通常存储在磁盘上的一个单独的数据块中,通过inode.i_file_acl*引用。扩展属性的第一应用...
分类:
其他好文 时间:
2014-05-20 11:07:57
阅读次数:
675
这个类实现了一些工具性质的方法,正如其名。记下自己觉得有意思的方法:readFileAsString(path: String, charset:
Charset = Charset.defaultCharset()): String /** * Attempt to read a file ...
分类:
其他好文 时间:
2014-05-20 08:01:50
阅读次数:
223