抱歉,您的浏览器无法访问本站

本页面需要浏览器支持(启用)JavaScript


了解详情 >

进程控制

进程退出12345#include <stdlib.h>void exit(int status);#include <unistd.h>void _exit(int status); 12345678910111213141516171819202122232425262728293031323334/******************************...

GDB多线程调试

GDB多进程调试使用GDB调试的时候,GDB默认只能跟踪一个进程,可以在fork函数调用之前,通过指令设置GDB调试工具跟踪父进程或者跟踪跟踪子进程,默认跟踪父进程。 设置调试父进程或者子进程: set follow-fork-mode [paren(默认) | child] 设置调试模式:set detach-on-fork [on | off] 默认 on,表示调试当前进程的时候,其他的...

进程概述

程序和进程程序是包含一系列信息的文件,这些信息描述了如何在运行时创建一个进程: 二进制格式标识:每个程序文件都包含用于描述可执行文件格式的元信息。内核利用此信息来解释文件中的其他信息。(ELF可执行连接格式) 机器语言指令:对程序算法进行编码。 程序入口地址:标识程序开始执行时的起始指令位置。 数据:程序文件包含的变量初始值和程序使用的字面量值(比如字符串)。 符号表及重定位表:描...
"#pjax-header-nav-list" ], cacheBust: false, // url 地址追加时间戳,用以避免浏览器缓存 timeout: 5000 }); }); document.addEventListener('pjax:send', function (e) { //window.stop(); // 相当于点击了浏览器的停止按钮 try { var currentUrl = window.location.pathname; var targetUrl = e.triggerElement.href; var banUrl = [""]; if (banUrl[0] != "") { banUrl.forEach(item => { if(currentUrl.indexOf(item) != -1 || targetUrl.indexOf(item) != -1) { window.location.href = targetUrl; } }); } } catch (error) {} window.subData = null; // 移除标题(用于一二级导航栏切换处) volantis.$switcher.removeClass('active'); // 关闭移动端激活的搜索框 volantis.$header.removeClass('z_search-open'); // 关闭移动端激活的搜索框 volantis.$wrapper.removeClass('sub'); // 跳转页面时关闭二级导航 // 解绑事件 避免重复监听 volantis.$topBtn.unbind('click'); $('.menu a').unbind('click'); $(window).unbind('resize'); $(window).unbind('scroll'); $(document).unbind('scroll'); $(document).unbind('click'); $('body').unbind('click'); // 使用 volantis.pjax.send 方法传入pjax:send回调函数 参见layout/_partial/scripts/global.ejs volantis.pjax.method.send.start(); }); document.addEventListener('pjax:complete', function () { $('.nav-main').find('.list-v').not('.menu-phone').removeAttr("style",""); // 移除小尾巴的移除 $('.menu-phone.list-v').removeAttr("style",""); // 移除小尾巴的移除 $('script[data-pjax], .pjax-reload script').each(function () { $(this).parent().append($(this).remove()); }); try{ // 使用 volantis.pjax.push 方法传入重载函数 参见layout/_partial/scripts/global.ejs volantis.pjax.method.complete.start(); } catch (e) { console.log(e); } }); document.addEventListener('pjax:error', function (e) { // 使用 volantis.pjax.error 方法传入pjax:error回调函数 参见layout/_partial/scripts/global.ejs volantis.pjax.method.error.start(); window.location.href = e.triggerElement.href; });