public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "ssbssa at sourceware dot org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/13808] Get `<unavailable>' when printing variables in gdb.trace/ftrace.exp
Date: Sun, 31 Dec 2023 13:49:12 +0000	[thread overview]
Message-ID: <bug-13808-4717-M1wzZJYjIj@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-13808-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=13808

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at sourceware dot org

--- Comment #8 from Hannes Domani <ssbssa at sourceware dot org> ---
(In reply to Sourceware Commits from comment #7)
> The master branch has been updated by Marcin Ko&#347;cielnicki
> <mwk@sourceware.org>:
> 
> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;
> h=ae91f6253926e4dadebcae90772f4f5a5bd06056
> 
> commit ae91f6253926e4dadebcae90772f4f5a5bd06056
> Author: Marcin Kościelnicki <koriakin@0x04.net>
> Date:   Sun Feb 21 21:44:48 2016 +0100
> 
>     [PR gdb/13808] gdb.trace: Pass tdesc selected in gdbserver to IPA.
>     
>     If gdbserver and IPA are using different tdesc, they will disagree
>     about 'R' trace packet size.  This results in mangled traces.
>     
>     To make sure they pick the same tdesc, gdbserver pokes the tdesc
>     (specified as an index in a target-specific list) into a global
>     variable in IPA.  In theory, IPA could find out the tdesc on its
>     own, but that may be complex (in particular, I don't know how to
>     tell whether we have LAST_BREAK on s390 without messing with ptrace),
>     and we'd have to duplicate the logic.
>     
>     Tested on i386 and x86_64.  On i386, it fixes two FAILs in ftrace.exp.
>     On x86_64, these failures have been KFAILed - one of them works now,
>     but the other now fails due to an unrelated reason (ugh).
>     
>     gdb/gdbserver/ChangeLog:
>     
>     	PR gdb/13808
>     	* Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
>     	* configure.srv: Ditto.
>     	* linux-aarch64-ipa.c (get_ipa_tdesc): New function.
>     	(initialize_low_tracepoint): Remove ipa_tdesc assignment.
>     	* linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
>     	(init_registers_amd64_linux): Remove prototype.
>     	(tdesc_amd64_linux): Remove declaration.
>     	(get_ipa_tdesc): New function.
>     	(initialize_low_tracepoint): Remove ipa_tdesc assignment,
>     	initialize remaining tdescs.
>     	* linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
>     	(init_registers_i386_linux): Remove prototype.
>     	(tdesc_i386_linux): Remove declaration.
>     	(get_ipa_tdesc): New function.
>     	(initialize_low_tracepoint): Remove ipa_tdesc assignment,
>     	initialize remaining tdescs.
>     	* linux-low.c (linux_get_ipa_tdesc_idx): New function.
>     	(linux_target_ops): wire in linux_get_ipa_tdesc_idx.
>     	* linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
>     	* linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
>     	(x86_get_ipa_tdesc_idx): New function.
>     	(the_low_target): Wire in x86_get_ipa_tdesc_idx.
>     	* linux-x86-tdesc.h: New file.
>     	* target.h (struct target_ops): Add get_ipa_tdesc_idx.
>     	(target_get_ipa_tdesc_idx): New macro.
>     	* tracepoint.c (ipa_tdesc_idx): New macro.
>     	(struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
>     	(symbol_list): Add ipa_tdesc_idx.
>     	(cmd_qtstart): Write ipa_tdesc_idx in the target.
>     	(ipa_tdesc): Remove.
>     	(ipa_tdesc_idx): New variable.
>     	(get_context_regcache): Use get_ipa_tdesc.
>     	(gdb_collect): Ditto.
>     	(gdb_probe): Ditto.
>     	* tracepoint.h (get_ipa_tdesc): New prototype.
>     	(ipa_tdesc): Remove.
>     
>     gdb/testsuite/ChangeLog:
>     
>     	PR gdb/13808
>     	* gdb.trace/ftrace.exp (test_fast_tracepoints): Remove kfail.

Can this be closed now?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

      parent reply	other threads:[~2023-12-31 13:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-05 15:23 [Bug gdb/13808] New: " qiyao at gcc dot gnu.org
2012-03-05 15:24 ` [Bug gdb/13808] " qiyao at gcc dot gnu.org
2012-10-24 13:27 ` jan.kratochvil at redhat dot com
2012-11-08  3:25 ` qiyao at gcc dot gnu.org
2023-12-31 13:49 ` ssbssa at sourceware dot org [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-13808-4717-M1wzZJYjIj@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).