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

  • Home
  • SEARCH
  • 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 7845105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:07:01+00:00 2026-06-02T17:07:01+00:00

I am debugging a c program in assembly to understand how the gcc complier

  • 0

I am debugging a c program in assembly to understand how the gcc complier works. I want to read my $fs segment register so I use x/x $fs, however it tells me it can’t access the memory. How can I get a read out on any register which includes segment, general purpose, and control registers on the i386:86_64?

  • 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-02T17:07:04+00:00Added an answer on June 2, 2026 at 5:07 pm

    info registers prints out registers values for me which is what you are asking I think:

    (gdb) info registers
    rax            0x7ffff7731ec8   140737344904904
    rbx            0x0  0
    rcx            0x0  0
    rdx            0x7fffffffd618   140737488344600
    rsi            0x7fffffffd608   140737488344584
    rdi            0x1  1
    rbp            0x0  0x0
    rsp            0x7fffffffd528   0x7fffffffd528
    r8             0x7ffff7730300   140737344897792
    r9             0x7ffff7dec250   140737351959120
    r10            0x7fffffffd390   140737488343952
    r11            0x7ffff73d0b50   140737341360976
    r12            0x400be0 4197344
    r13            0x7fffffffd600   140737488344576
    r14            0x0  0
    r15            0x0  0
    rip            0x402330 0x402330 <main>
    eflags         0x246    [ PF ZF IF ]
    cs             0x33 51
    ss             0x2b 43
    ds             0x0  0
    es             0x0  0
    fs             0x0  0
    gs             0x0  0
    (gdb) 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wondering which debugging tool I can use for an assembly program and
Debugging a PHP program, is there any add-on/plug-in for browser which I can view
When debugging a java program in netbeans, I want the debugger to stop on
I am debugging a program and want to set a break point at Secur32!ImpersonateSecurityContext
When I am debugging a program in Xcode, I can pause execution in there
I have a debugging program which I've written to attach to a process and
while debugging a C++ program with GDB, is it possible somehow to add comments
I'm having trouble debugging a C++ program in Eclipse (the latest RC of Helios,
I have a C/ncurses program that I'm debugging/maintaining. This program does ripoffline twice: first,
I am debugging with GDB a crunching number C++ program. It takes 10 minutes

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.