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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:34:01+00:00 2026-05-11T15:34:01+00:00

Is there a way to print a type attribute from inside GDB? E.g. Integer’Size.

  • 0

Is there a way to print a type attribute from inside GDB?
E.g. Integer’Size.

  • 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. 2026-05-11T15:34:01+00:00Added an answer on May 11, 2026 at 3:34 pm

    Yes:

    (gdb) p thing’attribute

    Some attributes are recognized, and others aren’t. (In what’s listed below, Found is a Boolean variable.)

    gdb) p integer'size Attempt to use a type name as an expression (gdb) p found'size $2 = 8 (gdb) p integer'first $3 = -2147483648 (gdb) p integer'last $4 = 2147483647 

    Here’s the list from the Ada section of Debugging with gdb:

    Only a subset of the attributes are supported:        * 'First, 'Last, and 'Length on array objects (not on types and subtypes).      * 'Min and 'Max.      * 'Pos and 'Val.      * 'Tag.      * 'Range on array objects (not subtypes), but only as the right operand of the membership (in) operator.      * 'Access, 'Unchecked_Access, and 'Unrestricted_Access (a GNAT extension).      * 'Address. 

    (Hmm, that list may be dated, since I could do Integer’Last, despite the first bullet saying that it’s not valid on types.)

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

Sidebar

Related Questions

Is there a generic way of getting an iterator that always iterates over the
I'm trying to print out an attribute value with the following code: ArrayList arrayList=new
from google.appengine.ext import db from datetime import date class Test(db.Model): title=db.StringProperty(required=True) tags=db.StringListProperty(required=True) a print
This follows on from my previous question about Moose structured types. I apologise for
I have a Book data entity that has as an attribute an int 16
I am trying to secure a controller action that is being called with the
I'm working on a project in which we will need to determine certain types
I've just come across a pretty strange problem with VS2010 and Script#, which most
I am calling an API function in the Lord of the Rings Online (LOTRO)
Is it possible to get code hints or code completion with JSTL in Netbeans?

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.