使用KGDB进行Linux内核远程调试:GDB无法识别功能?(Linux Kernel Remote Debugging using KGDB : GDB does not recognize functions?)
我通过调试信息和KGDB交叉编译arm的内核源代码。
当我在主机中运行gdb时:
$ arm-linux-gnueabihf-gdb vmlinux ... Reading symbols from vmlinux... done. (gdb) target remote /dev/ttyUSB0 Remote debugging unsing /dev/ttyUSB0 **0xc0080480 in ?? ()**
当我尝试在函数中设置断点时,GDB表示它无法识别该函数。例如:
(gdb) b panic **Function "panic" not defined**
请帮助 !!
I cross compiled the kernel sources for arm, with debug info and KGDB.
When I run gdb in the host :
$ arm-linux-gnueabihf-gdb vmlinux ... Reading symbols from vmlinux... done. (gdb) target remote /dev/ttyUSB0 Remote debugging unsing /dev/ttyUSB0 **0xc0080480 in ?? ()**
When I try to set breakpoints in functions, GDB says that it doesn't recognize the function .For example :
(gdb) b panic **Function "panic" not defined**
HELP Please !!
原文:https://stackoverflow.com/questions/25984442
最满意答案
简单或纯粹的JavaScript方法,可以做得更好......
scheduledDate.outerHTML //HTML5
或通过呼叫
document.getElementById("scheduledDate").outerHTML //HTML4.01 -FF.
应该做/返回相同的,例如:
>> '<input id="scheduledDate" type="text" value="" calss="datetime">'
如果这是你要求的小提琴
ps:你说“calss”是什么意思? :-)
A plain or pure JavaScript method, can do better...
scheduledDate.outerHTML //HTML5
or calling by
document.getElementById("scheduledDate").outerHTML //HTML4.01 -FF.
should do/return the same, e.g.:
>> '<input id="scheduledDate" type="text" value="" calss="datetime">'
if this, is what you are asking for fiddle
p.s.: what do you mean by "calss" ? :-)
相关问答
更多-
您可以克隆它来获取整个内容,如下所示: var html = $("").append($("#div1").clone()).html(); 或者使它成为一个插件,最倾向于称之为“outerHTML”,如下所示: jQuery.fn.outerHTML = function() { return jQuery('').append(this.eq(0).clone()).html(); }; 然后你可以打电话: var html = $("#div1").outerHT ...
-
简单或纯粹的JavaScript方法,可以做得更好...... scheduledDate.outerHTML //HTML5 或通过呼叫 document.getElementById("scheduledDate").outerHTML //HTML4.01 -FF. 应该做/返回相同的,例如: >> '' 如果这是你要求的小提琴 ps:你说“calss”是什么意思? ...
-
您可以使用this关键字来引用引发事件的元素,而不是将选择器混合在一起。 从那里你可以使用DOM遍历方法来查找相关的input 。 你没有显示你的HTML所以我不能给你一个具体的例子,但它会是这样的: // your code... .click(function () { var $input = $(this).closest('tr').find('input'); console.log($input.val()); }); Instead of hacking together ...
-
我认为你需要添加一个额外的标签,这样你就可以在不触及相邻图标的情况下替换计数 1 然后你可以解决它 $(".like").click(function() { var spanEle = $(this).closest('tr').find('.like-count').first(); i ...
-
使用jQuery attr()函数。 let color = $('#foo').attr( "bgcolor"); alert(color); Use jQuery attr() function. let color = $('#foo').attr( ...
-
如何在点击时获得点击的内部html? 如果您询问如何从
标记中获取HTML,则应执行以下操作。 使用jQuery仅使用jQuery的html()附加事件并获取值: $(".tags-container > p").click(function(event) { alert($(this).html()); }); 使用混合,使用jQuery附加事件并使用JavaScript的innerHTML获取值: $(".tags-container > p").click(function(event ...
-
你可以尝试event.target.outerHTML ,但我不确定在所有浏览器中它的支持程度如何。 一个更复杂但肯定可行的解决方案是将元素包装到另一个元素中,然后获取父元素的html: $('').html($(event.target).clone()).html(); You can try event.target.outerHTML, however I'm not sure how well supported it is across all browsers. A more c ...
-
当您使用方括号访问jQuery对象的元素时,您将获得实际的DOM元素,而不是jQuery对象。 DOM节点没有text或html方法。 您可以使用eq方法获取包含指定索引处元素的jQuery对象: $(function(){ var $dvObj = $('div.desc'); alert($dvObj.eq(0)); alert($dvObj.eq(0).text()); alert($dvObj.eq(0).html()); }); When you use sq ...
-
获取元素的当前HTML(Get the current HTML of an element)[2022-03-21]
仅使用.html() 不会更改input的值。 它将继续使用初始值: 。 我建议使用.each()和.val() 。 JAVASCRIPT: $(document).ready(function(){ $('#b1').click(function(){ $('#stage input').each(function(){ $('#stage input').attr('value ... -
html元素到jQuery元素(Html element to jQuery element)[2022-04-03]
你要: $(myElement).siblings().eq(0).height() 或者使用.first() You want: $(myElement).siblings().eq(0).height() Or using .first()