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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:02:49+00:00 2026-06-10T01:02:49+00:00

When using GDB (using text interface, TTY, and SSH on Gentoo Linux) for debugging

  • 0

When using GDB (using text interface, TTY, and SSH on Gentoo Linux) for debugging C code, I want to print the data in objects. When I try using print-object <objectname>, I get the message

evaluation of this expression requires the program to have a function “_NSPrintForDebugger”

I can’t find any documentation or examples (is it me, or is Linux documentation very short on examples?) of how to create such a function. I would like an example(s) of NSPrintForDebugger functions for gdb that I can model. Note that I am new to C, Linux, MPI, emacs, and gdb.

To make this a little more difficult, I can’t find the definition of all the objects I want to print.

If it helps make an example, some of the objects I’d like to print-object are:

  1. UserData

    typedef struct {
    realtype dx, hdcoef, hacoef;
    int npes, my_pe
    MPI_Comm comm;
    realtype z[100];
    } *UserData;
    UserData data;

  2. N_Vector (part of SUNDIALS, may have varying definitions).

  3. void *cvode_mem (any pointer to void)
  4. realtype (floats of varying size, also part of SUNDIALS)
  5. MPI_Comm (which might be just an integer)

P.S. I have noticed that, for instance, p *data displays a lot of information. But I want more.

  • 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-10T01:02:51+00:00Added an answer on June 10, 2026 at 1:02 am

    The NSPrintForDebugger function that the GDB print-object command is calling is part of the Objective-C runtime. Since you aren’t using Objective-C, ignore it.

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

Sidebar

Related Questions

So I wrote the following code in linux(Ubuntu) using the emacs text editor it
Can anyone guide on how to debug a JNI code on Linux using GDB
I am trying to debug code using gdb, but when I try to watch
I know how to get the assembly code of my program using gdb but
Do we have a way to view assembly and c code both using gdb.
I'm working on a multithreaded application, and I want to debug it using GDB.
I'm using gdb to connect to a 2.6.31.13 linux kernel patched with KGDB over
I'm trying to print an object's vtable using gdb; I found the show print
I've run into some problems debugging a multi-threaded process using GDB. I have a
I've just tried using gdb on BackTrack Linux and I must say that its

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.