ChinaUnix.net
相关文章推荐:

ARM FP stack frame

take IA32 as example, and the theory is the same as that on arm-based platforms. ---------------------------------------------------------- There are two articles describing the stack frame and function call on X86 platform, but list the difference between them in theory. Article 1: ===http://www.unixwiz.net/techtips/win32-callconv-asm.html=== Intel x86 Function-call Conventions - Assembly...

by wqhl.mark - Linux文档专区 - 2009-03-11 16:44:56 阅读(1857) 回复(0)

相关讨论

前言 对于每个C 语言开发者来说中,内存错误(内存泄漏,内存越界,野指针,空指针等)恐怕是再熟悉不过了。这些错误通常严重级别很高,隐藏很深而且会产生随机错误,即便在很多调试工具的帮助下,为了找到重现的路径,也需要花费大量的时间。对于uClinux来说,情况就更糟糕了,那些在x86上能够导致程序退出的错误,在uClinux中大多数情况下并不会退出而只是产生奇怪的运行结果. 我们知道,这类错误尽管可以在编码时尽量减少却无...

by xwills - Linux文档专区 - 2009-07-25 10:41:41 阅读(3339) 回复(0)

如题, 我知道在X86系统下, 可以利用ebp, esp打出stack frame, 以解析出all the variants, parameters and return address. 如果是PowerPC的CPU, 该如何打出stack frame呢? 请大牛们支招. 附在x86下dump stack frame 的代码: ...... frame = (DCF_REGISTER *) regs->ebp; fcn_addr = regs->ra; stk_addr = regs->esp; for( cntr = 0; cntr < 2; cntr++ ) { // Format captions for stack dump. sprintf( out_bffr,...

by liuke432 - C/C++ - 2013-02-28 12:03:48 阅读(1310) 回复(2)

我现在维护一个嵌入式平台,有一个随机发生段错误的程序,想定位,使用backtrace函数,可是frame stack一直为空,但是我把测试程序在pc上编译运行,frame stack是存在在。请问哪个编译器选项控制frame stack的优化 这是在嵌入式平台上的log Backtrace (1 deep): 0:./test [0x4011fc] 这是在pc上编译运行的情况 Backtrace (24 deep): 0:./segf.run(DebugBacktrace+0x39) [0x8048ac2] 1:[0x110400] 2:./segf.run(func_19+0x2d) [0x804...

by fedorayang - CPU与编译器 - 2013-01-22 12:13:59 阅读(5501) 回复(0)

有如下编译错误: ERROR: XXX uses software fp, whereas XXX uses hardware fp 请问怎么解决?谢谢。 ps:其实,我找到了 -mhard-float 和 -msoft-float 两个编译选项,但是没用。

by tassard - 嵌入式开发 - 2010-02-03 10:32:07 阅读(3526) 回复(4)

我用kill -SIGSEGV 产生了一个core文件,然后用gdb察看这个core文件,却得不到源文件的信息: (gdb) info threads 12 process 9730 0xffffe410 in ?? () 11 process 9731 0xffffe410 in ?? () 10 process 9732 0xffffe410 in ?? () 9 process 9733 0xffffe410 in ?? () 8 process 9734 0xffffe410 in ?? () 7 process 9735 0xffffe410 in ?? () 6 process 9765 0xffffe410 in ?? () 5 process 9766 0...

by rc_hz - C/C++ - 2010-08-20 13:01:30 阅读(4860) 回复(10)
by jato - C/C++ - 2006-10-09 11:50:15 阅读(1020) 回复(1)

#Lable demonstration. from Tkinter import * class LabelDemo( frame ): """Demonstrate Labels""" def _init_ ( self ): """Create three Labels and pack them""" frame._init_( self ) & initializes frame object # frame file available space self.pack(expand = YES. file = BOTH ) self.Label1 = Label( self, text = "Label with text" ) # resize frame t...

by rubee - Python - 2007-07-28 07:30:37 阅读(2475) 回复(1)

我在用kgdb调试内核时,查看堆栈出现Previous frame inner to this frame(corrupt stack?),该如何解决

by benbenhuhu - 内核源码 - 2008-03-14 20:33:15 阅读(3397) 回复(0)

举报: http://bbs2.chinaunix.net/thread-1442034-1-1.html

by izhier - 站务交流 - 2009-04-29 16:31:19 阅读(1247) 回复(2)

本帖最后由 xdsupermanli 于 2011-07-04 17:32 编辑 各位XDJM: 大家好! 我最近在做arm平台上uclinux kernel方面的工作。现在碰到一个问题,望各位高手能指点一二,先谢过。 我所用的arm平台上的uclinux 版本为2.6.25, 当前的kernel stack size 为8KB,也即2个PAGE,其定义在include/asm-arm/thread_info.h中,使用宏: #define THREAD_SIZE_ORDER 1 #define THREAD_SIZE ...

4096ARMkernelstackuclinux

by xdsupermanli - 内核源码 - 2011-07-05 11:04:01 阅读(4162) 回复(5)