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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:22:35+00:00 2026-05-29T06:22:35+00:00

I want to use tracepoints to debug a prog on a local machine where

  • 0

I want to use tracepoints to debug a prog on a local machine where i have full access. I am able to set the tracepoint and its passcount and using info tr gives me

(gdb) info tr

Num Enb Address PassC StepC What

1 y 0x080b7529 2 0 in search_tcp at tcp_pkt.c:412

Actions for tracepoint 1:
collect flow
end

Then i run the prog, it runs as usual and in the end when i give tfind or tdump to collect the required data it shows:

(gdb) tfind 1

Trace can only be run on remote targets.

(gdb) tdump

Trace can only be run on remote targets.

Even i tried using “tstart” but it shows again “Trace can only be run on remote targets.”

Any idea on what is the meaning of this message ? Is tracepoing usage not supported currently ? OR is it for debugging some remote machine over LAN or some other network ?
Any help would be greatly appreciated.

thanks
vikas

  • 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-29T06:22:36+00:00Added an answer on May 29, 2026 at 6:22 am

    Any idea on what is the meaning of this message ?

    The meaning is exactly what the message says: the tracepoint facility is implemented only in gdbserver, and not in GDB itself, so you can’t use tstart when debugging natively (when GDB controls the inferior (being debugged) process directly).

    Instead, you need to set up a remote debugging session (which can still be done on a single machine):

    gdbserver :10000 ./a.out  # start gdbserver listening on port 10000
    

    In another window:

    gdb -ex 'target remote :10000' ./a.out
    

    Now you’ll have GDB with a remote target (which is the gdbserver running on the same host), and tstart etc. will work.

    Update:

    But now i see the following msg:
    (gdb) tstart
    Target does not support this command.
    (gdb) r
    The "remote" target does not support "run".

    Before you can use tstart, you need to set trace and actions, as documented here.

    And you can’t run because the inferior process is already running. Use continue instead.

    Update 2:

    (gdb) trace testprog.c:273
    Tracepoint 1 at 0x4578f7: file testprog.c, line 273.
    (gdb) passcount 2 1
    Setting tracepoint 1's passcount to 2
    (gdb) actions 1
    Enter actions for tracepoint 1, one per line.
    End with a line saying just "end".
    > collect id1
    > end
    (gdb) tstart
    Target does not support this command
    

    It sounds like your gdbserver is old, and does in fact not support tracing.

    What do

    gdb --version
    gdbserver --version
    

    produce?

    Update 3:

    Apparently your gdbserver is too old.

    Even though GDB itself supported tracepoints since version 4.17, gdbserver only started supporting the tracepoints with version 7.2

    Update 4:

    where to give this option “-f filename” that my program takes as input

    Simple. You can read the documentation for gdbserver, but I believe you are looking for this invocation:

    gdbserver :10000 ./a.out -f filename
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want use some data from a website with web service. i have a
I have a transaction log file in CSV format that I want use to
I have class in server side and I want use method of this class
I want to use private drawable from android. for that i have downloade androi-8.jar
I want use ORDER BY RAND() query mysql. But I have some question want
I have created NSMutale Array in HeroListViewController . I want use it in another
I have some properties defined by the user, and then I want use them
I want use i18n internationalization. CRUD its works fine, but with custom routes something
I Want Use a Panel in a Windows Form in C#.net. I Set Visible
i have an application for which i want use some reporting framework to generate

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.