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 6713617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:24:05+00:00 2026-05-26T08:24:05+00:00

See, the problem is that I’m supposed to use an executable driver program (vdriver)

  • 0

See, the problem is that I’m supposed to use an executable driver program (vdriver) to test the C source file I wrote (myfile.c) containing a collection of methods the driver program will use. I used gcc to compile them together (and also any files they depend on) and then ran “gdb vdriver”

Apparently, I am getting a segfault somewhere in myfile.c. The “dissasemble”-produced assembly code can even display the whole method in assembly and point to which instruction just segfaulted.

However, due to the complexity (and length) of the assembly code, I think it would be much more effective to view this line where the segfault occurred in C.

However, running the command “list *$eip” results in:

    No source file for address 0x804a3d3

Does anyone know how to make this work?

  • 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-05-26T08:24:06+00:00Added an answer on May 26, 2026 at 8:24 am

    Compile with debugging info.

    gcc -ggdb -c source.c -o source.o ...
    

    Update: It looks like you’re having trouble invoking GCC as well. I suggest writing a Makefile, and taking a quick look through the GCC manual for what -c and -o mean.

    CC = gcc
    CFLAGS = -ggdb -Wall # or whatever flags you want, read the manual
    
    # List all files, with *.c changed to *.o (Make will figure the rest out)
    my_app : file1.o file2.o file3.o file4.o
            $(CC) -o my_app $^
    # The above line should start with a tab, not spaces
    
    clean :
            rm -f my_app *.o
    
    # List dependencies like this (technically optional)
    # But if you don't do it, "make" might not re-make things that need it
    file1.o : file1.c header.h header2.h
    file2.o : file2.c header.h
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whenever I see a problem that would be shared by others, with a solution
The problem is that search results overlap and make it hard to see whether
Update: After some more reading I see that this problem is totally general, you
Here's a coding problem for those that like this kind of thing. Let's see
I'm using the command line compiler for builds. One problem I see is that
Does anyone see a problem with this, its not working saying bad file descriptor
Good day code knights, I have a tricky problem that I cannot see a
I am having problems having my Java programs see classes that are packaged in
I see this problem on and off again in my PHP coding, and I've
Please go to: http://jlecologia.com/page1c.html to see the problem The top box look fine but

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.