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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:17:25+00:00 2026-05-13T20:17:25+00:00

I’m currently debugging a project that uses an external library ( LibFirm ). When

  • 0

I’m currently debugging a project that uses an external library (LibFirm). When i call library functions, I can’t really see what’s going on there with gdb (i.e. I can’t inspect local variables and such).

The library is open source and I compiled it myself, so I think it should be possible to let gdb look into it too. How?

What I am currently seeing is

(gdb) bt
#0  0x00994422 in __kernel_vsyscall ()
#1  0x002704d1 in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0x00273932 in *__GI_abort () at abort.c:92
#3  0x00269648 in *__GI___assert_fail (
    assertion=0xd238f4 "_get_type_state(ctx.frame_tp) == layout_fixed", 
    file=0xd23458 "be/beabi.c", line=1879, function=0xd23d0d "modify_irg")
    at assert.c:81
#4  0x00b219e3 in ?? () from /usr/local/lib/libfirm.so.0
#5  0x00b21df0 in be_abi_introduce () from /usr/local/lib/libfirm.so.0
#6  0x00b59b77 in ?? () from /usr/local/lib/libfirm.so.0
#7  0x00b5b4a5 in be_main () from /usr/local/lib/libfirm.so.0
#8  0x0807daa0 in main (argc=3, argv=0xbffff914) at main.cc:243
(gdb) frame 8
#8  0x0807daa0 in main (argc=3, argv=0xbffff914) at main.cc:243
243                 be_main(output, "a.s");
(gdb) frame 4
#4  0x00b219e3 in ?? () from /usr/local/lib/libfirm.so.

frame 8 looks nice while frame 4 doesn’t tell me anything. I added

dir /usr/local/include/libfirm
dir /home/thomas/Dev/foreign/libfirm

to my .gdbinit, so gdb should find header and source files of the lib.

  • 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-13T20:17:26+00:00Added an answer on May 13, 2026 at 8:17 pm

    I had to use ./configure --enable-debug (CFLAGS="-g" was on by default, but it may not be in other projects, so remind this one). Furthermore, you may want to use CFLAGS="-g -O0" (instead of only -g) to keep the code readable.

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

Sidebar

Ask A Question

Stats

  • Questions 306k
  • Answers 306k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Your problem is nothing to do with threads; it's that… May 13, 2026 at 9:12 pm
  • Editorial Team
    Editorial Team added an answer Ok...the simplest way.... Read the data from database from code… May 13, 2026 at 9:12 pm
  • Editorial Team
    Editorial Team added an answer This will work with bash, possibly with sh: OLDIFS="$IFS" IFS=$'\n'… May 13, 2026 at 9:12 pm

Related Questions

I want use html5's new tag to play a wav file (currently only supported
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I've got a string that has curly quotes in it. I'd like to replace
In order to apply a triggered animation to all ToolTip s in my app,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.