`
haoningabc
  • 浏览: 1465853 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

value optimized out

    博客分类:
  • gdb
阅读更多
gdb -d ../nginx_10081/sbin/ nginx 8751 |tee ./gdb.log
打印log


gcore生成core文件或
generate-core-file

http://stackoverflow.com/questions/1345338/gdb-behavior-value-optimized-out

ctrl+x 2

To debug optimized code, learn assembly/machine language.

Use the GDB TUI mode. My copy of GDB enables it when I type the minus and Enter. Then type C-x 2 (that is hold down Control and press X, release both and then press 2). That will put it into split source and disassembly display. Then use stepi and nexti to move one machine instruction at a time. Use C-x o to switch between the TUI windows.

Download a PDF about your CPU's machine language and the function calling conventions. You will quickly learn to recognize what is being done with function arguments and return values.

You can display the value of a register by using a GDB command like p $eax
分享到:
评论

相关推荐

    eclipse生成库和调用方式

    在调试过程中,可能会遇到变量值无法正确显示的问题,即“value optimized out”。这通常是由于编译器优化级别设置不当导致的。解决办法是调整编译器优化级别。 - **步骤**: - 在“C/C++ Build”-> “Settings”->...

    瑞萨片上调试仿真器E1/E20故障处理指南(适用于RX600和RX200系列)

    【瑞萨片上调试仿真器E1/E20故障处理指南(适用于RX600和RX200系列)】是一份专为使用E1或E20芯片级调试仿真器与瑞萨的CubeSuite+工具配合RX600和RX200系列微控制器(MCU)进行开发时遇到问题的用户提供的文档。...

    BobBuilder_app

    To get the most out of RaptorDB you can tune some parameters specific to your hardware. PageItemCount : controls the size of each page. Here are some of my results: I have chosen the 10000 number...

    微软内部资料-SQL性能优化5

     Describe how queries are optimized.  Analyze the information collected from various tools.  Formulate resolution to query performance problems. Lesson 1: Index Concepts Indexes are the...

    永旺超市运营管理优化设计毕业设计定稿.docx

    4. 深加工环节 (Deep Processing Link): If necessary, AEON could consider implementing light processing, such as cutting, washing, or packaging, to extend the shelf life of products and add value....

    Git-2.21.0-64-bit.zip

    * "git for-each-ref" with multiple patterns have been optimized. * The tree-walk API learned to pass an in-core repository instance throughout more codepaths. * When one step in multi step ...

    Amplify Shader Editor1.5.4 最新版

    MINIMALISTIC toolbars and menus have been optimized to maximize workspace area without large intrusive nodes or menus. Creating nodes or new Shaders is as intuitive as creating a new Unity Material in...

    设置Android系统永不锁屏永不休眠的方法

    随后,清除设备的OAT(Optimized Dalvik bytecode)目录,并重启设备。首次启动时,可能会先显示状态栏,而启动器稍后才会出现。之后的重启将直接进入启动器,此时设备将默认保持不锁屏状态,但仍然会进入休眠状态。...

    Dundas.Chart.for.Winform.Enterprise.v7.1.0.1812.for.VS2008

    When set to false and all points have an x-value of 0, the points will not index but all draw at 0 What’s new in Dundas Chart V7.0? Silverlight Add-On - Version 7 gives developers a novel wrapper ...

    acpi控制笔记本风扇转速

    Optimized the Load ASL operator in the case where the source operand is an operation region. Simply map the operation region memory, instead of performing a bytewise read. (Region must be of type ...

    UG6.0快捷键大全

    POPUP_LABEL Edit Value... POPUP_MESSAGE Edits the selected feature dimension. ACTIONS STANDARD BUTTON/HIDE UG_MODELING_EDIT_DIMENSION LABEL Edit Dimension MESSAGE Edits the preferences or ...

    计算机网络第六版答案

    Computer Networking: A Top-Down Approach, 6th Edition Solutions to Review Questions and Problems Version Date: May 2012 ...This document contains the solutions to review questions and problems for...

    曲线拟合工具CurveExpert 1.0

    + QuickCalc has been expanded to find the x-value, given the y-value. + Optimizations have been applied to many routines, making the user interface more responsive and the algorithms quicker. ...

    eac3to V3.17

    * Blu-Ray subtitle demuxing: PTS value is now written to both PTS + DTS * joining MKV files is now declined with a proper error message * last chapter is now removed, if it's less than 10 seconds from...

    VclZip pro v3.10.1

    New ZLib methods for optimized compression and decompression of single entities of data in standard ZLib format, without the overhead of the PKZip format. This is excellent for compression of data to ...

    Bochs - The cross platform IA-32 (x86) emulator

    The default stepping value is 3. - Added ability to disable MONITOR/MWAIT support through .bochsrc CPUID option. The option is available only if compiled with --enable-monitor-mwait configure ...

    新版Android开发教程.rar

    ----------------------------------- Android 编程基础 1 封面----------------------------------- Android 编程基础 2 开放手机联盟 --Open --Open --Open --Open Handset Handset Handset Handset Alliance ...

    Debugging with GDB --2007年

    Getting In and Out of GDB . . . . . . . . . . . . . . . 11 2.1 Invoking GDB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1.1 Choosing files . . . . . . . . . . ....

Global site tag (gtag.js) - Google Analytics