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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:06:05+00:00 2026-05-22T19:06:05+00:00

The mysql has the following code: table->file->ha_write_row(table->record[0])) where table->record[0] is a buffer whose size

  • 0

The mysql has the following code:
table->file->ha_write_row(table->record[0]))

where table->record[0] is a buffer whose size is determined by another variable reclength. Now I know the reclength, see it’s 203. And I want to see the value (table->record[0])[0..202], which means from the first byte to the last byte. If I just put (table->record[0]) in the watch, it only display several chars as there are many 0 inside table->record[0], say it could be like “xxx\\0\\0\\0yyy…”, In this case, eclipse only show “xxx” in the watch window as it thinks “xxx\0” is the complete string terminated by “\\0”, but actually I want to see more buffer value. So I used (table->record[0])[i] in the watch, i is 0 , 1, 2 .., but that’s boring, is there any good way to see all of them?

  • 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-22T19:06:06+00:00Added an answer on May 22, 2026 at 7:06 pm

    Use the gdb syntax for printing array values, for array whose first element is pointed to by pointer p, use:

    p@100
    

    To see first 100 elements. In your case, edit your watch expression (left click -> Edit Watch Expression) to:

    table->record@100
    

    You didn’t mention the type of table->record — I am assuming it holds the pointer (and not the pointer-to-pointer).

    And btw, you can cast your pointer to any data type, exactly as in a gdb console.

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

Sidebar

Related Questions

I have an table in my MySql database that has the following columns: -
I have a table in MySQL that has 3 fields and I want to
I inherited MYSQL database that has lots of tables with data like CREATE TABLE
I have a user table in my mysql database that has a password column.
Our application runs off MySQL, but a client has another application that requires SQL.
I was using the following code to retrieve HTML snippets from a database table
I have the following code: $sql = INSERT INTO table VALUES ('', ...); $result
I am using this code to insert some values in MySql table: <?php mysql_connect(localhost,root,root);
I am using an MySQL table with the following structure: `login` ( `loginid` int(11)
I want to take back up of mysql database table in sql file through

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.