54824

Display callstack without method names

Question:

In WinDbg, I can get the callstack using the k command. For DLLs without symbols, it displays an incorrect method name and a large offset, e.g.

0018f9f0 77641148 syncSourceDll_x86!CreateTimerSyncBridge+0xc76a

Since I don't have symbols, I have to give this information to the developer of the DLL. I don't know who will work on the bug and how much debugging knowledge he has. I want to avoid that the developer thinks the problem is in the CreateTimerSyncBridge() method.

<strong>Is there a way to get the callstack without method names, just with offsets?</strong>

At the moment I'm using the following workaround:

0:000> ? syncSourceDll_x86!CreateTimerSyncBridge+0xc76a Evaluate expression: 1834469050 = 6d57c6ba 0:000> ? syncSourceDll_x86 Evaluate expression: 1834287104 = 6d550000 0:000> ? 6d57c6ba-6d550000 Evaluate expression: 181946 = 0002c6ba

So I can modify the callstack manually to

0018f9f0 77641148 syncSourceDll_x86!+0x2c6ba

But that's really hard to do for a lot of frames in a lot of threads.

Answer1:

You can specify that the symbols must match exactly using a stricter evaluation, either by starting windbg with command line parameter -ses or issuing the command:

.symopt +0x400

The default is false for the debugger, if you wish to reset this then just remove the option:

.symopt -0x400

See the msdn docs: <a href="https://msdn.microsoft.com/en-us/library/windows/hardware/ff558827(v=vs.85).aspx#symopt_exact_symbols" rel="nofollow">https://msdn.microsoft.com/en-us/library/windows/hardware/ff558827(v=vs.85).aspx#symopt_exact_symbols</a>

Recommend

  • An equivalent of javax.nio.Buffer.flip() in c#
  • Calculate the Average Based on Date in a Column in r
  • Kafka reassignment of __consumer_offsets incorrect?
  • Accessing environment variables set using mod_rewrite in PHP
  • Resource for understanding view, projection, 'virtual camera' in OpenGL or graphics in gen
  • C: Method that handles pointer
  • How to detect if user cancel auto-renewable subscriptions during the free trial period?
  • Using Google Api: Speech To Text on PC Version
  • different results with and without SSE ( float arrays multiplication)
  • How to shorten this expression using regex
  • Tracking screen recorder in windows app
  • iPhone - UIWebView multiple locks
  • Sql indexes vs full table scan
  • Cannot convert a char value to money. The char value has incorrect syntax
  • How to get to older Xcode beta version?
  • Safari PHP form submission -file upload hangs
  • Is there a chance to get -splash: work for SWT applications that require -XstartOnFirstThread?
  • include dlls in visual studio c++ 2008
  • PHP multiple file uploads
  • Javascript/Jquery runs fast in desktop browsers, but slow in mobile/smartphone browsers…should I spl
  • Spring integration inbound-gateway Fire an event when queue is empty
  • R Split data.frame using a column that represents and on/off switch
  • Android changing fragment order inside FragmentPagerAdapter
  • Debugging VB6 Code From Visual Studio 2010
  • how to avoid repetitive constructor in children
  • Installed module is empty
  • How to get Eclipse Oxygen to run on Java 9
  • debug library loaded with ctypes using gdb
  • Control modification in presentation layer
  • Debugging ASP.NET on a built-in web server suddenly stops
  • Regex thinks I'm nesting, but I'm not
  • RectangularRangeIndicator format like triangular using dojo
  • Join two tables and save into third-sql
  • How to model a transition system with SPIN
  • ORA-29908: missing primary invocation for ancillary operator
  • VB.net deserialize, JSON Conversion from type 'Dictionary(Of String,Object)' to type '
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • Unable to use reactive element in my shiny app
  • Converting MP3 duration time
  • jQuery Masonry / Isotope and fluid images: Momentary overlap on window resize