Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7775347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:36:28+00:00 2026-06-01T17:36:28+00:00

I have encounter a problem using gdb to debug vlc.exe in windows environment. I

  • 0

I have encounter a problem using gdb to debug vlc.exe in windows environment. I follow the instruction on http://wiki.videolan.org/Win32Compile and successfully compiled and packaged VLC under linux.

The program is running fine and I got the symbol table in the project folder too. However I’m not able to let the gdb load the necessary symbol files to set up break point and stuff.

Under the vlc folder, the object file is listed under like

./win32/*/*/*.o

and the executable is stored in

./win32/vlc-2.1.0-git/vlc.exe

“gdb vlc.exe” in Cygwin shell loads not much useful symbols.

I tried symbol-table command to load a specific symbol file. It loads file and I can see the function in the break prompt. But when I run the program I got the warning:

Cannot insert breakpoint 1.

Error accessing memory address 0x2800: Input/Output error.

Is there a way to feed gdb with the symbol files so that I can debug it like in linux environment?

Here’s a little background if anyone’s interested in why am I doing this.

I’m studying the VLC codebase about its wrap over DXVA2 interface. The project is pretty big and complex with lots of function pointers trying to mimic a C++ inheritance and encapsulation which makes it hard to understand.

My purpose is to step through the VLC source code on the DXVA2 (Microsoft DirectX Video Acceleration 2) h264 path, which only runs on windows platform. AFAIK vlc don’t have a IDE project file that I could use for compile and debugging. I choose cross compilation because VLC website suggests it and I thought if I can get the symbol file, source code and the executable, I can debug it.

Help will be much appreciated. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T17:36:30+00:00Added an answer on June 1, 2026 at 5:36 pm

    I found out the solution.

    gdb needs to know where to load the symbol file, which can be done using the path function or adding the symbol files location at path.

    gdb also needs to know where to load the source file, which can be done directory function or specify when the program starts.

    This is what I do:

    Add this in my .bashrc file:

    PATH=$PATH:[vlc proj folder]
    
    export PATH
    

    Then start gdb like:

    gdb `find [vlc proj folder] -type d -printf '-d %p '` vlc.exe
    

    🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I encounter some problem when using useDelimiter from the Scanner class. Scanner sc =
I've been using implode function of php and suddenly I encounter a problem regarding
We're using Entity Framework 4.0. When we encounter a problem in production, we'd like
I encounter this problem : I have a django (python) server that serve XML
I have encounter a problem which can be summarized as follows, #include <stdio.h> int
I have a problem with ecrypting data using AES-128/ecb/PKCS5Padding+base64. I am using the following
I have encountered a problem twice now whereby a producer thread produces N work
I have encountered a problem of placing data into the Table View. Here is
I have encountered a problem in my application. I have two forms, one that
I have encountered the problem to start different version of jboss in the same

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.